diff --git a/actions/plan/dist/index.js b/actions/plan/dist/index.js index 670eed95..3e1e66c9 100644 --- a/actions/plan/dist/index.js +++ b/actions/plan/dist/index.js @@ -45667,6 +45667,20 @@ function generateOptions(options, defaults) { //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3BhcmFtcy5qcyJdLCJuYW1lcyI6WyJnZW5lcmF0ZU9wdGlvbnMiLCJvcHRpb25zIiwiZGVmYXVsdHMiLCJjYWxsYmFjayIsIm5hbWUiLCJoYXNPd25Qcm9wZXJ0eSJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQU8sU0FBU0EsZUFBVCxDQUF5QkMsT0FBekIsRUFBa0NDLFFBQWxDLEVBQTRDO0FBQ2pELE1BQUksT0FBT0QsT0FBUCxLQUFtQixVQUF2QixFQUFtQztBQUNqQ0MsSUFBQUEsUUFBUSxDQUFDQyxRQUFULEdBQW9CRixPQUFwQjtBQUNELEdBRkQsTUFFTyxJQUFJQSxPQUFKLEVBQWE7QUFDbEIsU0FBSyxJQUFJRyxJQUFULElBQWlCSCxPQUFqQixFQUEwQjtBQUN4QjtBQUNBLFVBQUlBLE9BQU8sQ0FBQ0ksY0FBUixDQUF1QkQsSUFBdkIsQ0FBSixFQUFrQztBQUNoQ0YsUUFBQUEsUUFBUSxDQUFDRSxJQUFELENBQVIsR0FBaUJILE9BQU8sQ0FBQ0csSUFBRCxDQUF4QjtBQUNEO0FBQ0Y7QUFDRjs7QUFDRCxTQUFPRixRQUFQO0FBQ0QiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gZ2VuZXJhdGVPcHRpb25zKG9wdGlvbnMsIGRlZmF1bHRzKSB7XG4gIGlmICh0eXBlb2Ygb3B0aW9ucyA9PT0gJ2Z1bmN0aW9uJykge1xuICAgIGRlZmF1bHRzLmNhbGxiYWNrID0gb3B0aW9ucztcbiAgfSBlbHNlIGlmIChvcHRpb25zKSB7XG4gICAgZm9yIChsZXQgbmFtZSBpbiBvcHRpb25zKSB7XG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgZWxzZSAqL1xuICAgICAgaWYgKG9wdGlvbnMuaGFzT3duUHJvcGVydHkobmFtZSkpIHtcbiAgICAgICAgZGVmYXVsdHNbbmFtZV0gPSBvcHRpb25zW25hbWVdO1xuICAgICAgfVxuICAgIH1cbiAgfVxuICByZXR1cm4gZGVmYXVsdHM7XG59XG4iXX0= +/***/ }), + +/***/ 18212: +/***/ ((module) => { + +"use strict"; + + +module.exports = function () { + // https://mths.be/emoji + return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g; +}; + + /***/ }), /***/ 81205: @@ -54721,6 +54735,64 @@ if (typeof Object.create === 'function') { } +/***/ }), + +/***/ 64882: +/***/ ((module) => { + +"use strict"; +/* eslint-disable yoda */ + + +const isFullwidthCodePoint = codePoint => { + if (Number.isNaN(codePoint)) { + return false; + } + + // Code points are derived from: + // http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt + if ( + codePoint >= 0x1100 && ( + codePoint <= 0x115F || // Hangul Jamo + codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET + codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET + // CJK Radicals Supplement .. Enclosed CJK Letters and Months + (0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F) || + // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A + (0x3250 <= codePoint && codePoint <= 0x4DBF) || + // CJK Unified Ideographs .. Yi Radicals + (0x4E00 <= codePoint && codePoint <= 0xA4C6) || + // Hangul Jamo Extended-A + (0xA960 <= codePoint && codePoint <= 0xA97C) || + // Hangul Syllables + (0xAC00 <= codePoint && codePoint <= 0xD7A3) || + // CJK Compatibility Ideographs + (0xF900 <= codePoint && codePoint <= 0xFAFF) || + // Vertical Forms + (0xFE10 <= codePoint && codePoint <= 0xFE19) || + // CJK Compatibility Forms .. Small Form Variants + (0xFE30 <= codePoint && codePoint <= 0xFE6B) || + // Halfwidth and Fullwidth Forms + (0xFF01 <= codePoint && codePoint <= 0xFF60) || + (0xFFE0 <= codePoint && codePoint <= 0xFFE6) || + // Kana Supplement + (0x1B000 <= codePoint && codePoint <= 0x1B001) || + // Enclosed Ideographic Supplement + (0x1F200 <= codePoint && codePoint <= 0x1F251) || + // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane + (0x20000 <= codePoint && codePoint <= 0x3FFFD) + ) + ) { + return true; + } + + return false; +}; + +module.exports = isFullwidthCodePoint; +module.exports["default"] = isFullwidthCodePoint; + + /***/ }), /***/ 86904: @@ -65314,19987 +65386,29350 @@ rimraf.sync = rimrafSync /***/ }), -/***/ 21867: -/***/ ((module, exports, __nccwpck_require__) => { - -/*! safe-buffer. MIT License. Feross Aboukhadijeh */ -/* eslint-disable node/no-deprecated-api */ -var buffer = __nccwpck_require__(14300) -var Buffer = buffer.Buffer +/***/ 1752: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -// alternative to using Object.keys for old browsers -function copyProps (src, dst) { - for (var key in src) { - dst[key] = src[key] - } -} -if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { - module.exports = buffer -} else { - // Copy properties from require('buffer') - copyProps(buffer, exports) - exports.Buffer = SafeBuffer -} +"use strict"; -function SafeBuffer (arg, encodingOrOffset, length) { - return Buffer(arg, encodingOrOffset, length) -} +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.interval = exports.iif = exports.generate = exports.fromEventPattern = exports.fromEvent = exports.from = exports.forkJoin = exports.empty = exports.defer = exports.connectable = exports.concat = exports.combineLatest = exports.bindNodeCallback = exports.bindCallback = exports.UnsubscriptionError = exports.TimeoutError = exports.SequenceError = exports.ObjectUnsubscribedError = exports.NotFoundError = exports.EmptyError = exports.ArgumentOutOfRangeError = exports.firstValueFrom = exports.lastValueFrom = exports.isObservable = exports.identity = exports.noop = exports.pipe = exports.NotificationKind = exports.Notification = exports.Subscriber = exports.Subscription = exports.Scheduler = exports.VirtualAction = exports.VirtualTimeScheduler = exports.animationFrameScheduler = exports.animationFrame = exports.queueScheduler = exports.queue = exports.asyncScheduler = exports.async = exports.asapScheduler = exports.asap = exports.AsyncSubject = exports.ReplaySubject = exports.BehaviorSubject = exports.Subject = exports.animationFrames = exports.observable = exports.ConnectableObservable = exports.Observable = void 0; +exports.filter = exports.expand = exports.exhaustMap = exports.exhaustAll = exports.exhaust = exports.every = exports.endWith = exports.elementAt = exports.distinctUntilKeyChanged = exports.distinctUntilChanged = exports.distinct = exports.dematerialize = exports.delayWhen = exports.delay = exports.defaultIfEmpty = exports.debounceTime = exports.debounce = exports.count = exports.connect = exports.concatWith = exports.concatMapTo = exports.concatMap = exports.concatAll = exports.combineLatestWith = exports.combineLatestAll = exports.combineAll = exports.catchError = exports.bufferWhen = exports.bufferToggle = exports.bufferTime = exports.bufferCount = exports.buffer = exports.auditTime = exports.audit = exports.config = exports.NEVER = exports.EMPTY = exports.scheduled = exports.zip = exports.using = exports.timer = exports.throwError = exports.range = exports.race = exports.partition = exports.pairs = exports.onErrorResumeNext = exports.of = exports.never = exports.merge = void 0; +exports.switchMap = exports.switchAll = exports.subscribeOn = exports.startWith = exports.skipWhile = exports.skipUntil = exports.skipLast = exports.skip = exports.single = exports.shareReplay = exports.share = exports.sequenceEqual = exports.scan = exports.sampleTime = exports.sample = exports.refCount = exports.retryWhen = exports.retry = exports.repeatWhen = exports.repeat = exports.reduce = exports.raceWith = exports.publishReplay = exports.publishLast = exports.publishBehavior = exports.publish = exports.pluck = exports.pairwise = exports.onErrorResumeNextWith = exports.observeOn = exports.multicast = exports.min = exports.mergeWith = exports.mergeScan = exports.mergeMapTo = exports.mergeMap = exports.flatMap = exports.mergeAll = exports.max = exports.materialize = exports.mapTo = exports.map = exports.last = exports.isEmpty = exports.ignoreElements = exports.groupBy = exports.first = exports.findIndex = exports.find = exports.finalize = void 0; +exports.zipWith = exports.zipAll = exports.withLatestFrom = exports.windowWhen = exports.windowToggle = exports.windowTime = exports.windowCount = exports.window = exports.toArray = exports.timestamp = exports.timeoutWith = exports.timeout = exports.timeInterval = exports.throwIfEmpty = exports.throttleTime = exports.throttle = exports.tap = exports.takeWhile = exports.takeUntil = exports.takeLast = exports.take = exports.switchScan = exports.switchMapTo = void 0; +var Observable_1 = __nccwpck_require__(53014); +Object.defineProperty(exports, "Observable", ({ enumerable: true, get: function () { return Observable_1.Observable; } })); +var ConnectableObservable_1 = __nccwpck_require__(30420); +Object.defineProperty(exports, "ConnectableObservable", ({ enumerable: true, get: function () { return ConnectableObservable_1.ConnectableObservable; } })); +var observable_1 = __nccwpck_require__(17186); +Object.defineProperty(exports, "observable", ({ enumerable: true, get: function () { return observable_1.observable; } })); +var animationFrames_1 = __nccwpck_require__(38197); +Object.defineProperty(exports, "animationFrames", ({ enumerable: true, get: function () { return animationFrames_1.animationFrames; } })); +var Subject_1 = __nccwpck_require__(49944); +Object.defineProperty(exports, "Subject", ({ enumerable: true, get: function () { return Subject_1.Subject; } })); +var BehaviorSubject_1 = __nccwpck_require__(23473); +Object.defineProperty(exports, "BehaviorSubject", ({ enumerable: true, get: function () { return BehaviorSubject_1.BehaviorSubject; } })); +var ReplaySubject_1 = __nccwpck_require__(22351); +Object.defineProperty(exports, "ReplaySubject", ({ enumerable: true, get: function () { return ReplaySubject_1.ReplaySubject; } })); +var AsyncSubject_1 = __nccwpck_require__(9747); +Object.defineProperty(exports, "AsyncSubject", ({ enumerable: true, get: function () { return AsyncSubject_1.AsyncSubject; } })); +var asap_1 = __nccwpck_require__(43905); +Object.defineProperty(exports, "asap", ({ enumerable: true, get: function () { return asap_1.asap; } })); +Object.defineProperty(exports, "asapScheduler", ({ enumerable: true, get: function () { return asap_1.asapScheduler; } })); +var async_1 = __nccwpck_require__(76072); +Object.defineProperty(exports, "async", ({ enumerable: true, get: function () { return async_1.async; } })); +Object.defineProperty(exports, "asyncScheduler", ({ enumerable: true, get: function () { return async_1.asyncScheduler; } })); +var queue_1 = __nccwpck_require__(82059); +Object.defineProperty(exports, "queue", ({ enumerable: true, get: function () { return queue_1.queue; } })); +Object.defineProperty(exports, "queueScheduler", ({ enumerable: true, get: function () { return queue_1.queueScheduler; } })); +var animationFrame_1 = __nccwpck_require__(51359); +Object.defineProperty(exports, "animationFrame", ({ enumerable: true, get: function () { return animationFrame_1.animationFrame; } })); +Object.defineProperty(exports, "animationFrameScheduler", ({ enumerable: true, get: function () { return animationFrame_1.animationFrameScheduler; } })); +var VirtualTimeScheduler_1 = __nccwpck_require__(75348); +Object.defineProperty(exports, "VirtualTimeScheduler", ({ enumerable: true, get: function () { return VirtualTimeScheduler_1.VirtualTimeScheduler; } })); +Object.defineProperty(exports, "VirtualAction", ({ enumerable: true, get: function () { return VirtualTimeScheduler_1.VirtualAction; } })); +var Scheduler_1 = __nccwpck_require__(76243); +Object.defineProperty(exports, "Scheduler", ({ enumerable: true, get: function () { return Scheduler_1.Scheduler; } })); +var Subscription_1 = __nccwpck_require__(79548); +Object.defineProperty(exports, "Subscription", ({ enumerable: true, get: function () { return Subscription_1.Subscription; } })); +var Subscriber_1 = __nccwpck_require__(67121); +Object.defineProperty(exports, "Subscriber", ({ enumerable: true, get: function () { return Subscriber_1.Subscriber; } })); +var Notification_1 = __nccwpck_require__(12241); +Object.defineProperty(exports, "Notification", ({ enumerable: true, get: function () { return Notification_1.Notification; } })); +Object.defineProperty(exports, "NotificationKind", ({ enumerable: true, get: function () { return Notification_1.NotificationKind; } })); +var pipe_1 = __nccwpck_require__(49587); +Object.defineProperty(exports, "pipe", ({ enumerable: true, get: function () { return pipe_1.pipe; } })); +var noop_1 = __nccwpck_require__(11642); +Object.defineProperty(exports, "noop", ({ enumerable: true, get: function () { return noop_1.noop; } })); +var identity_1 = __nccwpck_require__(60283); +Object.defineProperty(exports, "identity", ({ enumerable: true, get: function () { return identity_1.identity; } })); +var isObservable_1 = __nccwpck_require__(72259); +Object.defineProperty(exports, "isObservable", ({ enumerable: true, get: function () { return isObservable_1.isObservable; } })); +var lastValueFrom_1 = __nccwpck_require__(49713); +Object.defineProperty(exports, "lastValueFrom", ({ enumerable: true, get: function () { return lastValueFrom_1.lastValueFrom; } })); +var firstValueFrom_1 = __nccwpck_require__(19369); +Object.defineProperty(exports, "firstValueFrom", ({ enumerable: true, get: function () { return firstValueFrom_1.firstValueFrom; } })); +var ArgumentOutOfRangeError_1 = __nccwpck_require__(49796); +Object.defineProperty(exports, "ArgumentOutOfRangeError", ({ enumerable: true, get: function () { return ArgumentOutOfRangeError_1.ArgumentOutOfRangeError; } })); +var EmptyError_1 = __nccwpck_require__(99391); +Object.defineProperty(exports, "EmptyError", ({ enumerable: true, get: function () { return EmptyError_1.EmptyError; } })); +var NotFoundError_1 = __nccwpck_require__(74431); +Object.defineProperty(exports, "NotFoundError", ({ enumerable: true, get: function () { return NotFoundError_1.NotFoundError; } })); +var ObjectUnsubscribedError_1 = __nccwpck_require__(95266); +Object.defineProperty(exports, "ObjectUnsubscribedError", ({ enumerable: true, get: function () { return ObjectUnsubscribedError_1.ObjectUnsubscribedError; } })); +var SequenceError_1 = __nccwpck_require__(49048); +Object.defineProperty(exports, "SequenceError", ({ enumerable: true, get: function () { return SequenceError_1.SequenceError; } })); +var timeout_1 = __nccwpck_require__(12051); +Object.defineProperty(exports, "TimeoutError", ({ enumerable: true, get: function () { return timeout_1.TimeoutError; } })); +var UnsubscriptionError_1 = __nccwpck_require__(56776); +Object.defineProperty(exports, "UnsubscriptionError", ({ enumerable: true, get: function () { return UnsubscriptionError_1.UnsubscriptionError; } })); +var bindCallback_1 = __nccwpck_require__(16949); +Object.defineProperty(exports, "bindCallback", ({ enumerable: true, get: function () { return bindCallback_1.bindCallback; } })); +var bindNodeCallback_1 = __nccwpck_require__(51150); +Object.defineProperty(exports, "bindNodeCallback", ({ enumerable: true, get: function () { return bindNodeCallback_1.bindNodeCallback; } })); +var combineLatest_1 = __nccwpck_require__(46843); +Object.defineProperty(exports, "combineLatest", ({ enumerable: true, get: function () { return combineLatest_1.combineLatest; } })); +var concat_1 = __nccwpck_require__(4675); +Object.defineProperty(exports, "concat", ({ enumerable: true, get: function () { return concat_1.concat; } })); +var connectable_1 = __nccwpck_require__(13152); +Object.defineProperty(exports, "connectable", ({ enumerable: true, get: function () { return connectable_1.connectable; } })); +var defer_1 = __nccwpck_require__(27672); +Object.defineProperty(exports, "defer", ({ enumerable: true, get: function () { return defer_1.defer; } })); +var empty_1 = __nccwpck_require__(70437); +Object.defineProperty(exports, "empty", ({ enumerable: true, get: function () { return empty_1.empty; } })); +var forkJoin_1 = __nccwpck_require__(47358); +Object.defineProperty(exports, "forkJoin", ({ enumerable: true, get: function () { return forkJoin_1.forkJoin; } })); +var from_1 = __nccwpck_require__(18309); +Object.defineProperty(exports, "from", ({ enumerable: true, get: function () { return from_1.from; } })); +var fromEvent_1 = __nccwpck_require__(93238); +Object.defineProperty(exports, "fromEvent", ({ enumerable: true, get: function () { return fromEvent_1.fromEvent; } })); +var fromEventPattern_1 = __nccwpck_require__(65680); +Object.defineProperty(exports, "fromEventPattern", ({ enumerable: true, get: function () { return fromEventPattern_1.fromEventPattern; } })); +var generate_1 = __nccwpck_require__(52668); +Object.defineProperty(exports, "generate", ({ enumerable: true, get: function () { return generate_1.generate; } })); +var iif_1 = __nccwpck_require__(26514); +Object.defineProperty(exports, "iif", ({ enumerable: true, get: function () { return iif_1.iif; } })); +var interval_1 = __nccwpck_require__(20029); +Object.defineProperty(exports, "interval", ({ enumerable: true, get: function () { return interval_1.interval; } })); +var merge_1 = __nccwpck_require__(75122); +Object.defineProperty(exports, "merge", ({ enumerable: true, get: function () { return merge_1.merge; } })); +var never_1 = __nccwpck_require__(6228); +Object.defineProperty(exports, "never", ({ enumerable: true, get: function () { return never_1.never; } })); +var of_1 = __nccwpck_require__(72163); +Object.defineProperty(exports, "of", ({ enumerable: true, get: function () { return of_1.of; } })); +var onErrorResumeNext_1 = __nccwpck_require__(16089); +Object.defineProperty(exports, "onErrorResumeNext", ({ enumerable: true, get: function () { return onErrorResumeNext_1.onErrorResumeNext; } })); +var pairs_1 = __nccwpck_require__(30505); +Object.defineProperty(exports, "pairs", ({ enumerable: true, get: function () { return pairs_1.pairs; } })); +var partition_1 = __nccwpck_require__(15506); +Object.defineProperty(exports, "partition", ({ enumerable: true, get: function () { return partition_1.partition; } })); +var race_1 = __nccwpck_require__(16940); +Object.defineProperty(exports, "race", ({ enumerable: true, get: function () { return race_1.race; } })); +var range_1 = __nccwpck_require__(88538); +Object.defineProperty(exports, "range", ({ enumerable: true, get: function () { return range_1.range; } })); +var throwError_1 = __nccwpck_require__(66381); +Object.defineProperty(exports, "throwError", ({ enumerable: true, get: function () { return throwError_1.throwError; } })); +var timer_1 = __nccwpck_require__(59757); +Object.defineProperty(exports, "timer", ({ enumerable: true, get: function () { return timer_1.timer; } })); +var using_1 = __nccwpck_require__(8445); +Object.defineProperty(exports, "using", ({ enumerable: true, get: function () { return using_1.using; } })); +var zip_1 = __nccwpck_require__(62504); +Object.defineProperty(exports, "zip", ({ enumerable: true, get: function () { return zip_1.zip; } })); +var scheduled_1 = __nccwpck_require__(6151); +Object.defineProperty(exports, "scheduled", ({ enumerable: true, get: function () { return scheduled_1.scheduled; } })); +var empty_2 = __nccwpck_require__(70437); +Object.defineProperty(exports, "EMPTY", ({ enumerable: true, get: function () { return empty_2.EMPTY; } })); +var never_2 = __nccwpck_require__(6228); +Object.defineProperty(exports, "NEVER", ({ enumerable: true, get: function () { return never_2.NEVER; } })); +__exportStar(__nccwpck_require__(36639), exports); +var config_1 = __nccwpck_require__(92233); +Object.defineProperty(exports, "config", ({ enumerable: true, get: function () { return config_1.config; } })); +var audit_1 = __nccwpck_require__(82704); +Object.defineProperty(exports, "audit", ({ enumerable: true, get: function () { return audit_1.audit; } })); +var auditTime_1 = __nccwpck_require__(18780); +Object.defineProperty(exports, "auditTime", ({ enumerable: true, get: function () { return auditTime_1.auditTime; } })); +var buffer_1 = __nccwpck_require__(34253); +Object.defineProperty(exports, "buffer", ({ enumerable: true, get: function () { return buffer_1.buffer; } })); +var bufferCount_1 = __nccwpck_require__(17253); +Object.defineProperty(exports, "bufferCount", ({ enumerable: true, get: function () { return bufferCount_1.bufferCount; } })); +var bufferTime_1 = __nccwpck_require__(73102); +Object.defineProperty(exports, "bufferTime", ({ enumerable: true, get: function () { return bufferTime_1.bufferTime; } })); +var bufferToggle_1 = __nccwpck_require__(83781); +Object.defineProperty(exports, "bufferToggle", ({ enumerable: true, get: function () { return bufferToggle_1.bufferToggle; } })); +var bufferWhen_1 = __nccwpck_require__(82855); +Object.defineProperty(exports, "bufferWhen", ({ enumerable: true, get: function () { return bufferWhen_1.bufferWhen; } })); +var catchError_1 = __nccwpck_require__(37765); +Object.defineProperty(exports, "catchError", ({ enumerable: true, get: function () { return catchError_1.catchError; } })); +var combineAll_1 = __nccwpck_require__(88817); +Object.defineProperty(exports, "combineAll", ({ enumerable: true, get: function () { return combineAll_1.combineAll; } })); +var combineLatestAll_1 = __nccwpck_require__(91063); +Object.defineProperty(exports, "combineLatestAll", ({ enumerable: true, get: function () { return combineLatestAll_1.combineLatestAll; } })); +var combineLatestWith_1 = __nccwpck_require__(19044); +Object.defineProperty(exports, "combineLatestWith", ({ enumerable: true, get: function () { return combineLatestWith_1.combineLatestWith; } })); +var concatAll_1 = __nccwpck_require__(88049); +Object.defineProperty(exports, "concatAll", ({ enumerable: true, get: function () { return concatAll_1.concatAll; } })); +var concatMap_1 = __nccwpck_require__(19130); +Object.defineProperty(exports, "concatMap", ({ enumerable: true, get: function () { return concatMap_1.concatMap; } })); +var concatMapTo_1 = __nccwpck_require__(61596); +Object.defineProperty(exports, "concatMapTo", ({ enumerable: true, get: function () { return concatMapTo_1.concatMapTo; } })); +var concatWith_1 = __nccwpck_require__(97998); +Object.defineProperty(exports, "concatWith", ({ enumerable: true, get: function () { return concatWith_1.concatWith; } })); +var connect_1 = __nccwpck_require__(51101); +Object.defineProperty(exports, "connect", ({ enumerable: true, get: function () { return connect_1.connect; } })); +var count_1 = __nccwpck_require__(36571); +Object.defineProperty(exports, "count", ({ enumerable: true, get: function () { return count_1.count; } })); +var debounce_1 = __nccwpck_require__(19348); +Object.defineProperty(exports, "debounce", ({ enumerable: true, get: function () { return debounce_1.debounce; } })); +var debounceTime_1 = __nccwpck_require__(62379); +Object.defineProperty(exports, "debounceTime", ({ enumerable: true, get: function () { return debounceTime_1.debounceTime; } })); +var defaultIfEmpty_1 = __nccwpck_require__(30621); +Object.defineProperty(exports, "defaultIfEmpty", ({ enumerable: true, get: function () { return defaultIfEmpty_1.defaultIfEmpty; } })); +var delay_1 = __nccwpck_require__(99818); +Object.defineProperty(exports, "delay", ({ enumerable: true, get: function () { return delay_1.delay; } })); +var delayWhen_1 = __nccwpck_require__(16994); +Object.defineProperty(exports, "delayWhen", ({ enumerable: true, get: function () { return delayWhen_1.delayWhen; } })); +var dematerialize_1 = __nccwpck_require__(95338); +Object.defineProperty(exports, "dematerialize", ({ enumerable: true, get: function () { return dematerialize_1.dematerialize; } })); +var distinct_1 = __nccwpck_require__(52594); +Object.defineProperty(exports, "distinct", ({ enumerable: true, get: function () { return distinct_1.distinct; } })); +var distinctUntilChanged_1 = __nccwpck_require__(20632); +Object.defineProperty(exports, "distinctUntilChanged", ({ enumerable: true, get: function () { return distinctUntilChanged_1.distinctUntilChanged; } })); +var distinctUntilKeyChanged_1 = __nccwpck_require__(13809); +Object.defineProperty(exports, "distinctUntilKeyChanged", ({ enumerable: true, get: function () { return distinctUntilKeyChanged_1.distinctUntilKeyChanged; } })); +var elementAt_1 = __nccwpck_require__(73381); +Object.defineProperty(exports, "elementAt", ({ enumerable: true, get: function () { return elementAt_1.elementAt; } })); +var endWith_1 = __nccwpck_require__(42961); +Object.defineProperty(exports, "endWith", ({ enumerable: true, get: function () { return endWith_1.endWith; } })); +var every_1 = __nccwpck_require__(69559); +Object.defineProperty(exports, "every", ({ enumerable: true, get: function () { return every_1.every; } })); +var exhaust_1 = __nccwpck_require__(75686); +Object.defineProperty(exports, "exhaust", ({ enumerable: true, get: function () { return exhaust_1.exhaust; } })); +var exhaustAll_1 = __nccwpck_require__(79777); +Object.defineProperty(exports, "exhaustAll", ({ enumerable: true, get: function () { return exhaustAll_1.exhaustAll; } })); +var exhaustMap_1 = __nccwpck_require__(21527); +Object.defineProperty(exports, "exhaustMap", ({ enumerable: true, get: function () { return exhaustMap_1.exhaustMap; } })); +var expand_1 = __nccwpck_require__(21585); +Object.defineProperty(exports, "expand", ({ enumerable: true, get: function () { return expand_1.expand; } })); +var filter_1 = __nccwpck_require__(36894); +Object.defineProperty(exports, "filter", ({ enumerable: true, get: function () { return filter_1.filter; } })); +var finalize_1 = __nccwpck_require__(4013); +Object.defineProperty(exports, "finalize", ({ enumerable: true, get: function () { return finalize_1.finalize; } })); +var find_1 = __nccwpck_require__(28981); +Object.defineProperty(exports, "find", ({ enumerable: true, get: function () { return find_1.find; } })); +var findIndex_1 = __nccwpck_require__(92602); +Object.defineProperty(exports, "findIndex", ({ enumerable: true, get: function () { return findIndex_1.findIndex; } })); +var first_1 = __nccwpck_require__(63345); +Object.defineProperty(exports, "first", ({ enumerable: true, get: function () { return first_1.first; } })); +var groupBy_1 = __nccwpck_require__(51650); +Object.defineProperty(exports, "groupBy", ({ enumerable: true, get: function () { return groupBy_1.groupBy; } })); +var ignoreElements_1 = __nccwpck_require__(31062); +Object.defineProperty(exports, "ignoreElements", ({ enumerable: true, get: function () { return ignoreElements_1.ignoreElements; } })); +var isEmpty_1 = __nccwpck_require__(77722); +Object.defineProperty(exports, "isEmpty", ({ enumerable: true, get: function () { return isEmpty_1.isEmpty; } })); +var last_1 = __nccwpck_require__(46831); +Object.defineProperty(exports, "last", ({ enumerable: true, get: function () { return last_1.last; } })); +var map_1 = __nccwpck_require__(5987); +Object.defineProperty(exports, "map", ({ enumerable: true, get: function () { return map_1.map; } })); +var mapTo_1 = __nccwpck_require__(52300); +Object.defineProperty(exports, "mapTo", ({ enumerable: true, get: function () { return mapTo_1.mapTo; } })); +var materialize_1 = __nccwpck_require__(67108); +Object.defineProperty(exports, "materialize", ({ enumerable: true, get: function () { return materialize_1.materialize; } })); +var max_1 = __nccwpck_require__(17314); +Object.defineProperty(exports, "max", ({ enumerable: true, get: function () { return max_1.max; } })); +var mergeAll_1 = __nccwpck_require__(2057); +Object.defineProperty(exports, "mergeAll", ({ enumerable: true, get: function () { return mergeAll_1.mergeAll; } })); +var flatMap_1 = __nccwpck_require__(40186); +Object.defineProperty(exports, "flatMap", ({ enumerable: true, get: function () { return flatMap_1.flatMap; } })); +var mergeMap_1 = __nccwpck_require__(69914); +Object.defineProperty(exports, "mergeMap", ({ enumerable: true, get: function () { return mergeMap_1.mergeMap; } })); +var mergeMapTo_1 = __nccwpck_require__(49151); +Object.defineProperty(exports, "mergeMapTo", ({ enumerable: true, get: function () { return mergeMapTo_1.mergeMapTo; } })); +var mergeScan_1 = __nccwpck_require__(11519); +Object.defineProperty(exports, "mergeScan", ({ enumerable: true, get: function () { return mergeScan_1.mergeScan; } })); +var mergeWith_1 = __nccwpck_require__(31564); +Object.defineProperty(exports, "mergeWith", ({ enumerable: true, get: function () { return mergeWith_1.mergeWith; } })); +var min_1 = __nccwpck_require__(87641); +Object.defineProperty(exports, "min", ({ enumerable: true, get: function () { return min_1.min; } })); +var multicast_1 = __nccwpck_require__(65457); +Object.defineProperty(exports, "multicast", ({ enumerable: true, get: function () { return multicast_1.multicast; } })); +var observeOn_1 = __nccwpck_require__(22451); +Object.defineProperty(exports, "observeOn", ({ enumerable: true, get: function () { return observeOn_1.observeOn; } })); +var onErrorResumeNextWith_1 = __nccwpck_require__(33569); +Object.defineProperty(exports, "onErrorResumeNextWith", ({ enumerable: true, get: function () { return onErrorResumeNextWith_1.onErrorResumeNextWith; } })); +var pairwise_1 = __nccwpck_require__(52206); +Object.defineProperty(exports, "pairwise", ({ enumerable: true, get: function () { return pairwise_1.pairwise; } })); +var pluck_1 = __nccwpck_require__(16073); +Object.defineProperty(exports, "pluck", ({ enumerable: true, get: function () { return pluck_1.pluck; } })); +var publish_1 = __nccwpck_require__(84084); +Object.defineProperty(exports, "publish", ({ enumerable: true, get: function () { return publish_1.publish; } })); +var publishBehavior_1 = __nccwpck_require__(40045); +Object.defineProperty(exports, "publishBehavior", ({ enumerable: true, get: function () { return publishBehavior_1.publishBehavior; } })); +var publishLast_1 = __nccwpck_require__(84149); +Object.defineProperty(exports, "publishLast", ({ enumerable: true, get: function () { return publishLast_1.publishLast; } })); +var publishReplay_1 = __nccwpck_require__(47656); +Object.defineProperty(exports, "publishReplay", ({ enumerable: true, get: function () { return publishReplay_1.publishReplay; } })); +var raceWith_1 = __nccwpck_require__(58008); +Object.defineProperty(exports, "raceWith", ({ enumerable: true, get: function () { return raceWith_1.raceWith; } })); +var reduce_1 = __nccwpck_require__(62087); +Object.defineProperty(exports, "reduce", ({ enumerable: true, get: function () { return reduce_1.reduce; } })); +var repeat_1 = __nccwpck_require__(22418); +Object.defineProperty(exports, "repeat", ({ enumerable: true, get: function () { return repeat_1.repeat; } })); +var repeatWhen_1 = __nccwpck_require__(70754); +Object.defineProperty(exports, "repeatWhen", ({ enumerable: true, get: function () { return repeatWhen_1.repeatWhen; } })); +var retry_1 = __nccwpck_require__(56251); +Object.defineProperty(exports, "retry", ({ enumerable: true, get: function () { return retry_1.retry; } })); +var retryWhen_1 = __nccwpck_require__(69018); +Object.defineProperty(exports, "retryWhen", ({ enumerable: true, get: function () { return retryWhen_1.retryWhen; } })); +var refCount_1 = __nccwpck_require__(2331); +Object.defineProperty(exports, "refCount", ({ enumerable: true, get: function () { return refCount_1.refCount; } })); +var sample_1 = __nccwpck_require__(13774); +Object.defineProperty(exports, "sample", ({ enumerable: true, get: function () { return sample_1.sample; } })); +var sampleTime_1 = __nccwpck_require__(49807); +Object.defineProperty(exports, "sampleTime", ({ enumerable: true, get: function () { return sampleTime_1.sampleTime; } })); +var scan_1 = __nccwpck_require__(25578); +Object.defineProperty(exports, "scan", ({ enumerable: true, get: function () { return scan_1.scan; } })); +var sequenceEqual_1 = __nccwpck_require__(16126); +Object.defineProperty(exports, "sequenceEqual", ({ enumerable: true, get: function () { return sequenceEqual_1.sequenceEqual; } })); +var share_1 = __nccwpck_require__(48960); +Object.defineProperty(exports, "share", ({ enumerable: true, get: function () { return share_1.share; } })); +var shareReplay_1 = __nccwpck_require__(92118); +Object.defineProperty(exports, "shareReplay", ({ enumerable: true, get: function () { return shareReplay_1.shareReplay; } })); +var single_1 = __nccwpck_require__(58441); +Object.defineProperty(exports, "single", ({ enumerable: true, get: function () { return single_1.single; } })); +var skip_1 = __nccwpck_require__(80947); +Object.defineProperty(exports, "skip", ({ enumerable: true, get: function () { return skip_1.skip; } })); +var skipLast_1 = __nccwpck_require__(65865); +Object.defineProperty(exports, "skipLast", ({ enumerable: true, get: function () { return skipLast_1.skipLast; } })); +var skipUntil_1 = __nccwpck_require__(41110); +Object.defineProperty(exports, "skipUntil", ({ enumerable: true, get: function () { return skipUntil_1.skipUntil; } })); +var skipWhile_1 = __nccwpck_require__(92550); +Object.defineProperty(exports, "skipWhile", ({ enumerable: true, get: function () { return skipWhile_1.skipWhile; } })); +var startWith_1 = __nccwpck_require__(25471); +Object.defineProperty(exports, "startWith", ({ enumerable: true, get: function () { return startWith_1.startWith; } })); +var subscribeOn_1 = __nccwpck_require__(7224); +Object.defineProperty(exports, "subscribeOn", ({ enumerable: true, get: function () { return subscribeOn_1.subscribeOn; } })); +var switchAll_1 = __nccwpck_require__(40327); +Object.defineProperty(exports, "switchAll", ({ enumerable: true, get: function () { return switchAll_1.switchAll; } })); +var switchMap_1 = __nccwpck_require__(26704); +Object.defineProperty(exports, "switchMap", ({ enumerable: true, get: function () { return switchMap_1.switchMap; } })); +var switchMapTo_1 = __nccwpck_require__(1713); +Object.defineProperty(exports, "switchMapTo", ({ enumerable: true, get: function () { return switchMapTo_1.switchMapTo; } })); +var switchScan_1 = __nccwpck_require__(13355); +Object.defineProperty(exports, "switchScan", ({ enumerable: true, get: function () { return switchScan_1.switchScan; } })); +var take_1 = __nccwpck_require__(33698); +Object.defineProperty(exports, "take", ({ enumerable: true, get: function () { return take_1.take; } })); +var takeLast_1 = __nccwpck_require__(65041); +Object.defineProperty(exports, "takeLast", ({ enumerable: true, get: function () { return takeLast_1.takeLast; } })); +var takeUntil_1 = __nccwpck_require__(55150); +Object.defineProperty(exports, "takeUntil", ({ enumerable: true, get: function () { return takeUntil_1.takeUntil; } })); +var takeWhile_1 = __nccwpck_require__(76700); +Object.defineProperty(exports, "takeWhile", ({ enumerable: true, get: function () { return takeWhile_1.takeWhile; } })); +var tap_1 = __nccwpck_require__(48845); +Object.defineProperty(exports, "tap", ({ enumerable: true, get: function () { return tap_1.tap; } })); +var throttle_1 = __nccwpck_require__(36713); +Object.defineProperty(exports, "throttle", ({ enumerable: true, get: function () { return throttle_1.throttle; } })); +var throttleTime_1 = __nccwpck_require__(83435); +Object.defineProperty(exports, "throttleTime", ({ enumerable: true, get: function () { return throttleTime_1.throttleTime; } })); +var throwIfEmpty_1 = __nccwpck_require__(91566); +Object.defineProperty(exports, "throwIfEmpty", ({ enumerable: true, get: function () { return throwIfEmpty_1.throwIfEmpty; } })); +var timeInterval_1 = __nccwpck_require__(14643); +Object.defineProperty(exports, "timeInterval", ({ enumerable: true, get: function () { return timeInterval_1.timeInterval; } })); +var timeout_2 = __nccwpck_require__(12051); +Object.defineProperty(exports, "timeout", ({ enumerable: true, get: function () { return timeout_2.timeout; } })); +var timeoutWith_1 = __nccwpck_require__(43540); +Object.defineProperty(exports, "timeoutWith", ({ enumerable: true, get: function () { return timeoutWith_1.timeoutWith; } })); +var timestamp_1 = __nccwpck_require__(75518); +Object.defineProperty(exports, "timestamp", ({ enumerable: true, get: function () { return timestamp_1.timestamp; } })); +var toArray_1 = __nccwpck_require__(35114); +Object.defineProperty(exports, "toArray", ({ enumerable: true, get: function () { return toArray_1.toArray; } })); +var window_1 = __nccwpck_require__(98255); +Object.defineProperty(exports, "window", ({ enumerable: true, get: function () { return window_1.window; } })); +var windowCount_1 = __nccwpck_require__(73144); +Object.defineProperty(exports, "windowCount", ({ enumerable: true, get: function () { return windowCount_1.windowCount; } })); +var windowTime_1 = __nccwpck_require__(2738); +Object.defineProperty(exports, "windowTime", ({ enumerable: true, get: function () { return windowTime_1.windowTime; } })); +var windowToggle_1 = __nccwpck_require__(52741); +Object.defineProperty(exports, "windowToggle", ({ enumerable: true, get: function () { return windowToggle_1.windowToggle; } })); +var windowWhen_1 = __nccwpck_require__(82645); +Object.defineProperty(exports, "windowWhen", ({ enumerable: true, get: function () { return windowWhen_1.windowWhen; } })); +var withLatestFrom_1 = __nccwpck_require__(20501); +Object.defineProperty(exports, "withLatestFrom", ({ enumerable: true, get: function () { return withLatestFrom_1.withLatestFrom; } })); +var zipAll_1 = __nccwpck_require__(92335); +Object.defineProperty(exports, "zipAll", ({ enumerable: true, get: function () { return zipAll_1.zipAll; } })); +var zipWith_1 = __nccwpck_require__(95520); +Object.defineProperty(exports, "zipWith", ({ enumerable: true, get: function () { return zipWith_1.zipWith; } })); +//# sourceMappingURL=index.js.map -SafeBuffer.prototype = Object.create(Buffer.prototype) +/***/ }), -// Copy static methods from Buffer -copyProps(Buffer, SafeBuffer) +/***/ 9747: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -SafeBuffer.from = function (arg, encodingOrOffset, length) { - if (typeof arg === 'number') { - throw new TypeError('Argument must not be a number') - } - return Buffer(arg, encodingOrOffset, length) -} +"use strict"; -SafeBuffer.alloc = function (size, fill, encoding) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - var buf = Buffer(size) - if (fill !== undefined) { - if (typeof encoding === 'string') { - buf.fill(fill, encoding) - } else { - buf.fill(fill) +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AsyncSubject = void 0; +var Subject_1 = __nccwpck_require__(49944); +var AsyncSubject = (function (_super) { + __extends(AsyncSubject, _super); + function AsyncSubject() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this._value = null; + _this._hasValue = false; + _this._isComplete = false; + return _this; } - } else { - buf.fill(0) - } - return buf -} + AsyncSubject.prototype._checkFinalizedStatuses = function (subscriber) { + var _a = this, hasError = _a.hasError, _hasValue = _a._hasValue, _value = _a._value, thrownError = _a.thrownError, isStopped = _a.isStopped, _isComplete = _a._isComplete; + if (hasError) { + subscriber.error(thrownError); + } + else if (isStopped || _isComplete) { + _hasValue && subscriber.next(_value); + subscriber.complete(); + } + }; + AsyncSubject.prototype.next = function (value) { + if (!this.isStopped) { + this._value = value; + this._hasValue = true; + } + }; + AsyncSubject.prototype.complete = function () { + var _a = this, _hasValue = _a._hasValue, _value = _a._value, _isComplete = _a._isComplete; + if (!_isComplete) { + this._isComplete = true; + _hasValue && _super.prototype.next.call(this, _value); + _super.prototype.complete.call(this); + } + }; + return AsyncSubject; +}(Subject_1.Subject)); +exports.AsyncSubject = AsyncSubject; +//# sourceMappingURL=AsyncSubject.js.map -SafeBuffer.allocUnsafe = function (size) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - return Buffer(size) -} +/***/ }), -SafeBuffer.allocUnsafeSlow = function (size) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - return buffer.SlowBuffer(size) -} +/***/ 23473: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +"use strict"; -/***/ }), +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BehaviorSubject = void 0; +var Subject_1 = __nccwpck_require__(49944); +var BehaviorSubject = (function (_super) { + __extends(BehaviorSubject, _super); + function BehaviorSubject(_value) { + var _this = _super.call(this) || this; + _this._value = _value; + return _this; + } + Object.defineProperty(BehaviorSubject.prototype, "value", { + get: function () { + return this.getValue(); + }, + enumerable: false, + configurable: true + }); + BehaviorSubject.prototype._subscribe = function (subscriber) { + var subscription = _super.prototype._subscribe.call(this, subscriber); + !subscription.closed && subscriber.next(this._value); + return subscription; + }; + BehaviorSubject.prototype.getValue = function () { + var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, _value = _a._value; + if (hasError) { + throw thrownError; + } + this._throwIfClosed(); + return _value; + }; + BehaviorSubject.prototype.next = function (value) { + _super.prototype.next.call(this, (this._value = value)); + }; + return BehaviorSubject; +}(Subject_1.Subject)); +exports.BehaviorSubject = BehaviorSubject; +//# sourceMappingURL=BehaviorSubject.js.map -/***/ 91532: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ }), -const ANY = Symbol('SemVer ANY') -// hoisted class for cyclic dependency -class Comparator { - static get ANY () { - return ANY - } +/***/ 12241: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - constructor (comp, options) { - options = parseOptions(options) +"use strict"; - if (comp instanceof Comparator) { - if (comp.loose === !!options.loose) { - return comp - } else { - comp = comp.value - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.observeNotification = exports.Notification = exports.NotificationKind = void 0; +var empty_1 = __nccwpck_require__(70437); +var of_1 = __nccwpck_require__(72163); +var throwError_1 = __nccwpck_require__(66381); +var isFunction_1 = __nccwpck_require__(67206); +var NotificationKind; +(function (NotificationKind) { + NotificationKind["NEXT"] = "N"; + NotificationKind["ERROR"] = "E"; + NotificationKind["COMPLETE"] = "C"; +})(NotificationKind = exports.NotificationKind || (exports.NotificationKind = {})); +var Notification = (function () { + function Notification(kind, value, error) { + this.kind = kind; + this.value = value; + this.error = error; + this.hasValue = kind === 'N'; + } + Notification.prototype.observe = function (observer) { + return observeNotification(this, observer); + }; + Notification.prototype.do = function (nextHandler, errorHandler, completeHandler) { + var _a = this, kind = _a.kind, value = _a.value, error = _a.error; + return kind === 'N' ? nextHandler === null || nextHandler === void 0 ? void 0 : nextHandler(value) : kind === 'E' ? errorHandler === null || errorHandler === void 0 ? void 0 : errorHandler(error) : completeHandler === null || completeHandler === void 0 ? void 0 : completeHandler(); + }; + Notification.prototype.accept = function (nextOrObserver, error, complete) { + var _a; + return isFunction_1.isFunction((_a = nextOrObserver) === null || _a === void 0 ? void 0 : _a.next) + ? this.observe(nextOrObserver) + : this.do(nextOrObserver, error, complete); + }; + Notification.prototype.toObservable = function () { + var _a = this, kind = _a.kind, value = _a.value, error = _a.error; + var result = kind === 'N' + ? + of_1.of(value) + : + kind === 'E' + ? + throwError_1.throwError(function () { return error; }) + : + kind === 'C' + ? + empty_1.EMPTY + : + 0; + if (!result) { + throw new TypeError("Unexpected notification kind " + kind); + } + return result; + }; + Notification.createNext = function (value) { + return new Notification('N', value); + }; + Notification.createError = function (err) { + return new Notification('E', undefined, err); + }; + Notification.createComplete = function () { + return Notification.completeNotification; + }; + Notification.completeNotification = new Notification('C'); + return Notification; +}()); +exports.Notification = Notification; +function observeNotification(notification, observer) { + var _a, _b, _c; + var _d = notification, kind = _d.kind, value = _d.value, error = _d.error; + if (typeof kind !== 'string') { + throw new TypeError('Invalid notification, missing "kind"'); } + kind === 'N' ? (_a = observer.next) === null || _a === void 0 ? void 0 : _a.call(observer, value) : kind === 'E' ? (_b = observer.error) === null || _b === void 0 ? void 0 : _b.call(observer, error) : (_c = observer.complete) === null || _c === void 0 ? void 0 : _c.call(observer); +} +exports.observeNotification = observeNotification; +//# sourceMappingURL=Notification.js.map - comp = comp.trim().split(/\s+/).join(' ') - debug('comparator', comp, options) - this.options = options - this.loose = !!options.loose - this.parse(comp) +/***/ }), - if (this.semver === ANY) { - this.value = '' - } else { - this.value = this.operator + this.semver.version - } +/***/ 2500: +/***/ ((__unused_webpack_module, exports) => { - debug('comp', this) - } +"use strict"; - parse (comp) { - const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR] - const m = comp.match(r) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createNotification = exports.nextNotification = exports.errorNotification = exports.COMPLETE_NOTIFICATION = void 0; +exports.COMPLETE_NOTIFICATION = (function () { return createNotification('C', undefined, undefined); })(); +function errorNotification(error) { + return createNotification('E', undefined, error); +} +exports.errorNotification = errorNotification; +function nextNotification(value) { + return createNotification('N', value, undefined); +} +exports.nextNotification = nextNotification; +function createNotification(kind, value, error) { + return { + kind: kind, + value: value, + error: error, + }; +} +exports.createNotification = createNotification; +//# sourceMappingURL=NotificationFactories.js.map - if (!m) { - throw new TypeError(`Invalid comparator: ${comp}`) - } +/***/ }), - this.operator = m[1] !== undefined ? m[1] : '' - if (this.operator === '=') { - this.operator = '' - } +/***/ 53014: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // if it literally is just '>' or '' then allow anything. - if (!m[2]) { - this.semver = ANY - } else { - this.semver = new SemVer(m[2], this.options.loose) - } - } +"use strict"; - toString () { - return this.value - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Observable = void 0; +var Subscriber_1 = __nccwpck_require__(67121); +var Subscription_1 = __nccwpck_require__(79548); +var observable_1 = __nccwpck_require__(17186); +var pipe_1 = __nccwpck_require__(49587); +var config_1 = __nccwpck_require__(92233); +var isFunction_1 = __nccwpck_require__(67206); +var errorContext_1 = __nccwpck_require__(31199); +var Observable = (function () { + function Observable(subscribe) { + if (subscribe) { + this._subscribe = subscribe; + } + } + Observable.prototype.lift = function (operator) { + var observable = new Observable(); + observable.source = this; + observable.operator = operator; + return observable; + }; + Observable.prototype.subscribe = function (observerOrNext, error, complete) { + var _this = this; + var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new Subscriber_1.SafeSubscriber(observerOrNext, error, complete); + errorContext_1.errorContext(function () { + var _a = _this, operator = _a.operator, source = _a.source; + subscriber.add(operator + ? + operator.call(subscriber, source) + : source + ? + _this._subscribe(subscriber) + : + _this._trySubscribe(subscriber)); + }); + return subscriber; + }; + Observable.prototype._trySubscribe = function (sink) { + try { + return this._subscribe(sink); + } + catch (err) { + sink.error(err); + } + }; + Observable.prototype.forEach = function (next, promiseCtor) { + var _this = this; + promiseCtor = getPromiseCtor(promiseCtor); + return new promiseCtor(function (resolve, reject) { + var subscriber = new Subscriber_1.SafeSubscriber({ + next: function (value) { + try { + next(value); + } + catch (err) { + reject(err); + subscriber.unsubscribe(); + } + }, + error: reject, + complete: resolve, + }); + _this.subscribe(subscriber); + }); + }; + Observable.prototype._subscribe = function (subscriber) { + var _a; + return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber); + }; + Observable.prototype[observable_1.observable] = function () { + return this; + }; + Observable.prototype.pipe = function () { + var operations = []; + for (var _i = 0; _i < arguments.length; _i++) { + operations[_i] = arguments[_i]; + } + return pipe_1.pipeFromArray(operations)(this); + }; + Observable.prototype.toPromise = function (promiseCtor) { + var _this = this; + promiseCtor = getPromiseCtor(promiseCtor); + return new promiseCtor(function (resolve, reject) { + var value; + _this.subscribe(function (x) { return (value = x); }, function (err) { return reject(err); }, function () { return resolve(value); }); + }); + }; + Observable.create = function (subscribe) { + return new Observable(subscribe); + }; + return Observable; +}()); +exports.Observable = Observable; +function getPromiseCtor(promiseCtor) { + var _a; + return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config_1.config.Promise) !== null && _a !== void 0 ? _a : Promise; +} +function isObserver(value) { + return value && isFunction_1.isFunction(value.next) && isFunction_1.isFunction(value.error) && isFunction_1.isFunction(value.complete); +} +function isSubscriber(value) { + return (value && value instanceof Subscriber_1.Subscriber) || (isObserver(value) && Subscription_1.isSubscription(value)); +} +//# sourceMappingURL=Observable.js.map - test (version) { - debug('Comparator.test', version, this.options.loose) +/***/ }), - if (this.semver === ANY || version === ANY) { - return true - } +/***/ 22351: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - if (typeof version === 'string') { - try { - version = new SemVer(version, this.options) - } catch (er) { - return false - } +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ReplaySubject = void 0; +var Subject_1 = __nccwpck_require__(49944); +var dateTimestampProvider_1 = __nccwpck_require__(91395); +var ReplaySubject = (function (_super) { + __extends(ReplaySubject, _super); + function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) { + if (_bufferSize === void 0) { _bufferSize = Infinity; } + if (_windowTime === void 0) { _windowTime = Infinity; } + if (_timestampProvider === void 0) { _timestampProvider = dateTimestampProvider_1.dateTimestampProvider; } + var _this = _super.call(this) || this; + _this._bufferSize = _bufferSize; + _this._windowTime = _windowTime; + _this._timestampProvider = _timestampProvider; + _this._buffer = []; + _this._infiniteTimeWindow = true; + _this._infiniteTimeWindow = _windowTime === Infinity; + _this._bufferSize = Math.max(1, _bufferSize); + _this._windowTime = Math.max(1, _windowTime); + return _this; } + ReplaySubject.prototype.next = function (value) { + var _a = this, isStopped = _a.isStopped, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow, _timestampProvider = _a._timestampProvider, _windowTime = _a._windowTime; + if (!isStopped) { + _buffer.push(value); + !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime); + } + this._trimBuffer(); + _super.prototype.next.call(this, value); + }; + ReplaySubject.prototype._subscribe = function (subscriber) { + this._throwIfClosed(); + this._trimBuffer(); + var subscription = this._innerSubscribe(subscriber); + var _a = this, _infiniteTimeWindow = _a._infiniteTimeWindow, _buffer = _a._buffer; + var copy = _buffer.slice(); + for (var i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) { + subscriber.next(copy[i]); + } + this._checkFinalizedStatuses(subscriber); + return subscription; + }; + ReplaySubject.prototype._trimBuffer = function () { + var _a = this, _bufferSize = _a._bufferSize, _timestampProvider = _a._timestampProvider, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow; + var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize; + _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize); + if (!_infiniteTimeWindow) { + var now = _timestampProvider.now(); + var last = 0; + for (var i = 1; i < _buffer.length && _buffer[i] <= now; i += 2) { + last = i; + } + last && _buffer.splice(0, last + 1); + } + }; + return ReplaySubject; +}(Subject_1.Subject)); +exports.ReplaySubject = ReplaySubject; +//# sourceMappingURL=ReplaySubject.js.map - return cmp(version, this.operator, this.semver, this.options) - } +/***/ }), - intersects (comp, options) { - if (!(comp instanceof Comparator)) { - throw new TypeError('a Comparator is required') - } +/***/ 76243: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (this.operator === '') { - if (this.value === '') { - return true - } - return new Range(comp.value, options).test(this.value) - } else if (comp.operator === '') { - if (comp.value === '') { - return true - } - return new Range(this.value, options).test(comp.semver) - } +"use strict"; - options = parseOptions(options) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Scheduler = void 0; +var dateTimestampProvider_1 = __nccwpck_require__(91395); +var Scheduler = (function () { + function Scheduler(schedulerActionCtor, now) { + if (now === void 0) { now = Scheduler.now; } + this.schedulerActionCtor = schedulerActionCtor; + this.now = now; + } + Scheduler.prototype.schedule = function (work, delay, state) { + if (delay === void 0) { delay = 0; } + return new this.schedulerActionCtor(this, work).schedule(state, delay); + }; + Scheduler.now = dateTimestampProvider_1.dateTimestampProvider.now; + return Scheduler; +}()); +exports.Scheduler = Scheduler; +//# sourceMappingURL=Scheduler.js.map - // Special cases where nothing can possibly be lower - if (options.includePrerelease && - (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) { - return false +/***/ }), + +/***/ 49944: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AnonymousSubject = exports.Subject = void 0; +var Observable_1 = __nccwpck_require__(53014); +var Subscription_1 = __nccwpck_require__(79548); +var ObjectUnsubscribedError_1 = __nccwpck_require__(95266); +var arrRemove_1 = __nccwpck_require__(68499); +var errorContext_1 = __nccwpck_require__(31199); +var Subject = (function (_super) { + __extends(Subject, _super); + function Subject() { + var _this = _super.call(this) || this; + _this.closed = false; + _this.currentObservers = null; + _this.observers = []; + _this.isStopped = false; + _this.hasError = false; + _this.thrownError = null; + return _this; } - if (!options.includePrerelease && - (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) { - return false + Subject.prototype.lift = function (operator) { + var subject = new AnonymousSubject(this, this); + subject.operator = operator; + return subject; + }; + Subject.prototype._throwIfClosed = function () { + if (this.closed) { + throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError(); + } + }; + Subject.prototype.next = function (value) { + var _this = this; + errorContext_1.errorContext(function () { + var e_1, _a; + _this._throwIfClosed(); + if (!_this.isStopped) { + if (!_this.currentObservers) { + _this.currentObservers = Array.from(_this.observers); + } + try { + for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) { + var observer = _c.value; + observer.next(value); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (_c && !_c.done && (_a = _b.return)) _a.call(_b); + } + finally { if (e_1) throw e_1.error; } + } + } + }); + }; + Subject.prototype.error = function (err) { + var _this = this; + errorContext_1.errorContext(function () { + _this._throwIfClosed(); + if (!_this.isStopped) { + _this.hasError = _this.isStopped = true; + _this.thrownError = err; + var observers = _this.observers; + while (observers.length) { + observers.shift().error(err); + } + } + }); + }; + Subject.prototype.complete = function () { + var _this = this; + errorContext_1.errorContext(function () { + _this._throwIfClosed(); + if (!_this.isStopped) { + _this.isStopped = true; + var observers = _this.observers; + while (observers.length) { + observers.shift().complete(); + } + } + }); + }; + Subject.prototype.unsubscribe = function () { + this.isStopped = this.closed = true; + this.observers = this.currentObservers = null; + }; + Object.defineProperty(Subject.prototype, "observed", { + get: function () { + var _a; + return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0; + }, + enumerable: false, + configurable: true + }); + Subject.prototype._trySubscribe = function (subscriber) { + this._throwIfClosed(); + return _super.prototype._trySubscribe.call(this, subscriber); + }; + Subject.prototype._subscribe = function (subscriber) { + this._throwIfClosed(); + this._checkFinalizedStatuses(subscriber); + return this._innerSubscribe(subscriber); + }; + Subject.prototype._innerSubscribe = function (subscriber) { + var _this = this; + var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers; + if (hasError || isStopped) { + return Subscription_1.EMPTY_SUBSCRIPTION; + } + this.currentObservers = null; + observers.push(subscriber); + return new Subscription_1.Subscription(function () { + _this.currentObservers = null; + arrRemove_1.arrRemove(observers, subscriber); + }); + }; + Subject.prototype._checkFinalizedStatuses = function (subscriber) { + var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped; + if (hasError) { + subscriber.error(thrownError); + } + else if (isStopped) { + subscriber.complete(); + } + }; + Subject.prototype.asObservable = function () { + var observable = new Observable_1.Observable(); + observable.source = this; + return observable; + }; + Subject.create = function (destination, source) { + return new AnonymousSubject(destination, source); + }; + return Subject; +}(Observable_1.Observable)); +exports.Subject = Subject; +var AnonymousSubject = (function (_super) { + __extends(AnonymousSubject, _super); + function AnonymousSubject(destination, source) { + var _this = _super.call(this) || this; + _this.destination = destination; + _this.source = source; + return _this; } + AnonymousSubject.prototype.next = function (value) { + var _a, _b; + (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value); + }; + AnonymousSubject.prototype.error = function (err) { + var _a, _b; + (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err); + }; + AnonymousSubject.prototype.complete = function () { + var _a, _b; + (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a); + }; + AnonymousSubject.prototype._subscribe = function (subscriber) { + var _a, _b; + return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : Subscription_1.EMPTY_SUBSCRIPTION; + }; + return AnonymousSubject; +}(Subject)); +exports.AnonymousSubject = AnonymousSubject; +//# sourceMappingURL=Subject.js.map - // Same direction increasing (> or >=) - if (this.operator.startsWith('>') && comp.operator.startsWith('>')) { - return true - } - // Same direction decreasing (< or <=) - if (this.operator.startsWith('<') && comp.operator.startsWith('<')) { - return true +/***/ }), + +/***/ 67121: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.EMPTY_OBSERVER = exports.SafeSubscriber = exports.Subscriber = void 0; +var isFunction_1 = __nccwpck_require__(67206); +var Subscription_1 = __nccwpck_require__(79548); +var config_1 = __nccwpck_require__(92233); +var reportUnhandledError_1 = __nccwpck_require__(92445); +var noop_1 = __nccwpck_require__(11642); +var NotificationFactories_1 = __nccwpck_require__(2500); +var timeoutProvider_1 = __nccwpck_require__(1613); +var errorContext_1 = __nccwpck_require__(31199); +var Subscriber = (function (_super) { + __extends(Subscriber, _super); + function Subscriber(destination) { + var _this = _super.call(this) || this; + _this.isStopped = false; + if (destination) { + _this.destination = destination; + if (Subscription_1.isSubscription(destination)) { + destination.add(_this); + } + } + else { + _this.destination = exports.EMPTY_OBSERVER; + } + return _this; } - // same SemVer and both sides are inclusive (<= or >=) - if ( - (this.semver.version === comp.semver.version) && - this.operator.includes('=') && comp.operator.includes('=')) { - return true + Subscriber.create = function (next, error, complete) { + return new SafeSubscriber(next, error, complete); + }; + Subscriber.prototype.next = function (value) { + if (this.isStopped) { + handleStoppedNotification(NotificationFactories_1.nextNotification(value), this); + } + else { + this._next(value); + } + }; + Subscriber.prototype.error = function (err) { + if (this.isStopped) { + handleStoppedNotification(NotificationFactories_1.errorNotification(err), this); + } + else { + this.isStopped = true; + this._error(err); + } + }; + Subscriber.prototype.complete = function () { + if (this.isStopped) { + handleStoppedNotification(NotificationFactories_1.COMPLETE_NOTIFICATION, this); + } + else { + this.isStopped = true; + this._complete(); + } + }; + Subscriber.prototype.unsubscribe = function () { + if (!this.closed) { + this.isStopped = true; + _super.prototype.unsubscribe.call(this); + this.destination = null; + } + }; + Subscriber.prototype._next = function (value) { + this.destination.next(value); + }; + Subscriber.prototype._error = function (err) { + try { + this.destination.error(err); + } + finally { + this.unsubscribe(); + } + }; + Subscriber.prototype._complete = function () { + try { + this.destination.complete(); + } + finally { + this.unsubscribe(); + } + }; + return Subscriber; +}(Subscription_1.Subscription)); +exports.Subscriber = Subscriber; +var _bind = Function.prototype.bind; +function bind(fn, thisArg) { + return _bind.call(fn, thisArg); +} +var ConsumerObserver = (function () { + function ConsumerObserver(partialObserver) { + this.partialObserver = partialObserver; + } + ConsumerObserver.prototype.next = function (value) { + var partialObserver = this.partialObserver; + if (partialObserver.next) { + try { + partialObserver.next(value); + } + catch (error) { + handleUnhandledError(error); + } + } + }; + ConsumerObserver.prototype.error = function (err) { + var partialObserver = this.partialObserver; + if (partialObserver.error) { + try { + partialObserver.error(err); + } + catch (error) { + handleUnhandledError(error); + } + } + else { + handleUnhandledError(err); + } + }; + ConsumerObserver.prototype.complete = function () { + var partialObserver = this.partialObserver; + if (partialObserver.complete) { + try { + partialObserver.complete(); + } + catch (error) { + handleUnhandledError(error); + } + } + }; + return ConsumerObserver; +}()); +var SafeSubscriber = (function (_super) { + __extends(SafeSubscriber, _super); + function SafeSubscriber(observerOrNext, error, complete) { + var _this = _super.call(this) || this; + var partialObserver; + if (isFunction_1.isFunction(observerOrNext) || !observerOrNext) { + partialObserver = { + next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined), + error: error !== null && error !== void 0 ? error : undefined, + complete: complete !== null && complete !== void 0 ? complete : undefined, + }; + } + else { + var context_1; + if (_this && config_1.config.useDeprecatedNextContext) { + context_1 = Object.create(observerOrNext); + context_1.unsubscribe = function () { return _this.unsubscribe(); }; + partialObserver = { + next: observerOrNext.next && bind(observerOrNext.next, context_1), + error: observerOrNext.error && bind(observerOrNext.error, context_1), + complete: observerOrNext.complete && bind(observerOrNext.complete, context_1), + }; + } + else { + partialObserver = observerOrNext; + } + } + _this.destination = new ConsumerObserver(partialObserver); + return _this; } - // opposite directions less than - if (cmp(this.semver, '<', comp.semver, options) && - this.operator.startsWith('>') && comp.operator.startsWith('<')) { - return true + return SafeSubscriber; +}(Subscriber)); +exports.SafeSubscriber = SafeSubscriber; +function handleUnhandledError(error) { + if (config_1.config.useDeprecatedSynchronousErrorHandling) { + errorContext_1.captureError(error); } - // opposite directions greater than - if (cmp(this.semver, '>', comp.semver, options) && - this.operator.startsWith('<') && comp.operator.startsWith('>')) { - return true + else { + reportUnhandledError_1.reportUnhandledError(error); } - return false - } } +function defaultErrorHandler(err) { + throw err; +} +function handleStoppedNotification(notification, subscriber) { + var onStoppedNotification = config_1.config.onStoppedNotification; + onStoppedNotification && timeoutProvider_1.timeoutProvider.setTimeout(function () { return onStoppedNotification(notification, subscriber); }); +} +exports.EMPTY_OBSERVER = { + closed: true, + next: noop_1.noop, + error: defaultErrorHandler, + complete: noop_1.noop, +}; +//# sourceMappingURL=Subscriber.js.map -module.exports = Comparator +/***/ }), -const parseOptions = __nccwpck_require__(40785) -const { safeRe: re, t } = __nccwpck_require__(9523) -const cmp = __nccwpck_require__(75098) -const debug = __nccwpck_require__(50427) -const SemVer = __nccwpck_require__(48088) -const Range = __nccwpck_require__(9828) +/***/ 79548: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; +var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +}; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isSubscription = exports.EMPTY_SUBSCRIPTION = exports.Subscription = void 0; +var isFunction_1 = __nccwpck_require__(67206); +var UnsubscriptionError_1 = __nccwpck_require__(56776); +var arrRemove_1 = __nccwpck_require__(68499); +var Subscription = (function () { + function Subscription(initialTeardown) { + this.initialTeardown = initialTeardown; + this.closed = false; + this._parentage = null; + this._finalizers = null; + } + Subscription.prototype.unsubscribe = function () { + var e_1, _a, e_2, _b; + var errors; + if (!this.closed) { + this.closed = true; + var _parentage = this._parentage; + if (_parentage) { + this._parentage = null; + if (Array.isArray(_parentage)) { + try { + for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) { + var parent_1 = _parentage_1_1.value; + parent_1.remove(this); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return)) _a.call(_parentage_1); + } + finally { if (e_1) throw e_1.error; } + } + } + else { + _parentage.remove(this); + } + } + var initialFinalizer = this.initialTeardown; + if (isFunction_1.isFunction(initialFinalizer)) { + try { + initialFinalizer(); + } + catch (e) { + errors = e instanceof UnsubscriptionError_1.UnsubscriptionError ? e.errors : [e]; + } + } + var _finalizers = this._finalizers; + if (_finalizers) { + this._finalizers = null; + try { + for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) { + var finalizer = _finalizers_1_1.value; + try { + execFinalizer(finalizer); + } + catch (err) { + errors = errors !== null && errors !== void 0 ? errors : []; + if (err instanceof UnsubscriptionError_1.UnsubscriptionError) { + errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors)); + } + else { + errors.push(err); + } + } + } + } + catch (e_2_1) { e_2 = { error: e_2_1 }; } + finally { + try { + if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1); + } + finally { if (e_2) throw e_2.error; } + } + } + if (errors) { + throw new UnsubscriptionError_1.UnsubscriptionError(errors); + } + } + }; + Subscription.prototype.add = function (teardown) { + var _a; + if (teardown && teardown !== this) { + if (this.closed) { + execFinalizer(teardown); + } + else { + if (teardown instanceof Subscription) { + if (teardown.closed || teardown._hasParent(this)) { + return; + } + teardown._addParent(this); + } + (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown); + } + } + }; + Subscription.prototype._hasParent = function (parent) { + var _parentage = this._parentage; + return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent)); + }; + Subscription.prototype._addParent = function (parent) { + var _parentage = this._parentage; + this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent; + }; + Subscription.prototype._removeParent = function (parent) { + var _parentage = this._parentage; + if (_parentage === parent) { + this._parentage = null; + } + else if (Array.isArray(_parentage)) { + arrRemove_1.arrRemove(_parentage, parent); + } + }; + Subscription.prototype.remove = function (teardown) { + var _finalizers = this._finalizers; + _finalizers && arrRemove_1.arrRemove(_finalizers, teardown); + if (teardown instanceof Subscription) { + teardown._removeParent(this); + } + }; + Subscription.EMPTY = (function () { + var empty = new Subscription(); + empty.closed = true; + return empty; + })(); + return Subscription; +}()); +exports.Subscription = Subscription; +exports.EMPTY_SUBSCRIPTION = Subscription.EMPTY; +function isSubscription(value) { + return (value instanceof Subscription || + (value && 'closed' in value && isFunction_1.isFunction(value.remove) && isFunction_1.isFunction(value.add) && isFunction_1.isFunction(value.unsubscribe))); +} +exports.isSubscription = isSubscription; +function execFinalizer(finalizer) { + if (isFunction_1.isFunction(finalizer)) { + finalizer(); + } + else { + finalizer.unsubscribe(); + } +} +//# sourceMappingURL=Subscription.js.map /***/ }), -/***/ 9828: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 92233: +/***/ ((__unused_webpack_module, exports) => { -// hoisted class for cyclic dependency -class Range { - constructor (range, options) { - options = parseOptions(options) +"use strict"; - if (range instanceof Range) { - if ( - range.loose === !!options.loose && - range.includePrerelease === !!options.includePrerelease - ) { - return range - } else { - return new Range(range.raw, options) - } - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.config = void 0; +exports.config = { + onUnhandledError: null, + onStoppedNotification: null, + Promise: undefined, + useDeprecatedSynchronousErrorHandling: false, + useDeprecatedNextContext: false, +}; +//# sourceMappingURL=config.js.map - if (range instanceof Comparator) { - // just put it in the set and return - this.raw = range.value - this.set = [[range]] - this.format() - return this - } +/***/ }), - this.options = options - this.loose = !!options.loose - this.includePrerelease = !!options.includePrerelease +/***/ 19369: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // First reduce all whitespace as much as possible so we do not have to rely - // on potentially slow regexes like \s*. This is then stored and used for - // future error messages as well. - this.raw = range - .trim() - .split(/\s+/) - .join(' ') +"use strict"; - // First, split on || - this.set = this.raw - .split('||') - // map the range to a 2d array of comparators - .map(r => this.parseRange(r.trim())) - // throw out any comparator lists that are empty - // this generally means that it was not a valid range, which is allowed - // in loose mode, but will still throw if the WHOLE range is invalid. - .filter(c => c.length) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.firstValueFrom = void 0; +var EmptyError_1 = __nccwpck_require__(99391); +var Subscriber_1 = __nccwpck_require__(67121); +function firstValueFrom(source, config) { + var hasConfig = typeof config === 'object'; + return new Promise(function (resolve, reject) { + var subscriber = new Subscriber_1.SafeSubscriber({ + next: function (value) { + resolve(value); + subscriber.unsubscribe(); + }, + error: reject, + complete: function () { + if (hasConfig) { + resolve(config.defaultValue); + } + else { + reject(new EmptyError_1.EmptyError()); + } + }, + }); + source.subscribe(subscriber); + }); +} +exports.firstValueFrom = firstValueFrom; +//# sourceMappingURL=firstValueFrom.js.map - if (!this.set.length) { - throw new TypeError(`Invalid SemVer Range: ${this.raw}`) - } +/***/ }), - // if we have any that are not the null set, throw out null sets. - if (this.set.length > 1) { - // keep the first one, in case they're all null sets - const first = this.set[0] - this.set = this.set.filter(c => !isNullSet(c[0])) - if (this.set.length === 0) { - this.set = [first] - } else if (this.set.length > 1) { - // if we have any that are *, then the range is just * - for (const c of this.set) { - if (c.length === 1 && isAny(c[0])) { - this.set = [c] - break - } - } - } - } +/***/ 49713: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - this.format() - } +"use strict"; - format () { - this.range = this.set - .map((comps) => comps.join(' ').trim()) - .join('||') - .trim() - return this.range - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.lastValueFrom = void 0; +var EmptyError_1 = __nccwpck_require__(99391); +function lastValueFrom(source, config) { + var hasConfig = typeof config === 'object'; + return new Promise(function (resolve, reject) { + var _hasValue = false; + var _value; + source.subscribe({ + next: function (value) { + _value = value; + _hasValue = true; + }, + error: reject, + complete: function () { + if (_hasValue) { + resolve(_value); + } + else if (hasConfig) { + resolve(config.defaultValue); + } + else { + reject(new EmptyError_1.EmptyError()); + } + }, + }); + }); +} +exports.lastValueFrom = lastValueFrom; +//# sourceMappingURL=lastValueFrom.js.map - toString () { - return this.range - } +/***/ }), - parseRange (range) { - // memoize range parsing for performance. - // this is a very hot path, and fully deterministic. - const memoOpts = - (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | - (this.options.loose && FLAG_LOOSE) - const memoKey = memoOpts + ':' + range - const cached = cache.get(memoKey) - if (cached) { - return cached +/***/ 30420: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConnectableObservable = void 0; +var Observable_1 = __nccwpck_require__(53014); +var Subscription_1 = __nccwpck_require__(79548); +var refCount_1 = __nccwpck_require__(2331); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var lift_1 = __nccwpck_require__(38669); +var ConnectableObservable = (function (_super) { + __extends(ConnectableObservable, _super); + function ConnectableObservable(source, subjectFactory) { + var _this = _super.call(this) || this; + _this.source = source; + _this.subjectFactory = subjectFactory; + _this._subject = null; + _this._refCount = 0; + _this._connection = null; + if (lift_1.hasLift(source)) { + _this.lift = source.lift; + } + return _this; } + ConnectableObservable.prototype._subscribe = function (subscriber) { + return this.getSubject().subscribe(subscriber); + }; + ConnectableObservable.prototype.getSubject = function () { + var subject = this._subject; + if (!subject || subject.isStopped) { + this._subject = this.subjectFactory(); + } + return this._subject; + }; + ConnectableObservable.prototype._teardown = function () { + this._refCount = 0; + var _connection = this._connection; + this._subject = this._connection = null; + _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe(); + }; + ConnectableObservable.prototype.connect = function () { + var _this = this; + var connection = this._connection; + if (!connection) { + connection = this._connection = new Subscription_1.Subscription(); + var subject_1 = this.getSubject(); + connection.add(this.source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subject_1, undefined, function () { + _this._teardown(); + subject_1.complete(); + }, function (err) { + _this._teardown(); + subject_1.error(err); + }, function () { return _this._teardown(); }))); + if (connection.closed) { + this._connection = null; + connection = Subscription_1.Subscription.EMPTY; + } + } + return connection; + }; + ConnectableObservable.prototype.refCount = function () { + return refCount_1.refCount()(this); + }; + return ConnectableObservable; +}(Observable_1.Observable)); +exports.ConnectableObservable = ConnectableObservable; +//# sourceMappingURL=ConnectableObservable.js.map - const loose = this.options.loose - // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` - const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE] - range = range.replace(hr, hyphenReplace(this.options.includePrerelease)) - debug('hyphen replace', range) +/***/ }), - // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` - range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace) - debug('comparator trim', range) +/***/ 16949: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // `~ 1.2.3` => `~1.2.3` - range = range.replace(re[t.TILDETRIM], tildeTrimReplace) - debug('tilde trim', range) +"use strict"; - // `^ 1.2.3` => `^1.2.3` - range = range.replace(re[t.CARETTRIM], caretTrimReplace) - debug('caret trim', range) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bindCallback = void 0; +var bindCallbackInternals_1 = __nccwpck_require__(30585); +function bindCallback(callbackFunc, resultSelector, scheduler) { + return bindCallbackInternals_1.bindCallbackInternals(false, callbackFunc, resultSelector, scheduler); +} +exports.bindCallback = bindCallback; +//# sourceMappingURL=bindCallback.js.map - // At this point, the range is completely trimmed and - // ready to be split into comparators. +/***/ }), - let rangeList = range - .split(' ') - .map(comp => parseComparator(comp, this.options)) - .join(' ') - .split(/\s+/) - // >=0.0.0 is equivalent to * - .map(comp => replaceGTE0(comp, this.options)) +/***/ 30585: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - if (loose) { - // in loose mode, throw out any that are not valid comparators - rangeList = rangeList.filter(comp => { - debug('loose invalid filter', comp, this.options) - return !!comp.match(re[t.COMPARATORLOOSE]) - }) - } - debug('range list', rangeList) +"use strict"; - // if any comparators are the null set, then replace with JUST null set - // if more than one comparator, remove any * comparators - // also, don't include the same comparator more than once - const rangeMap = new Map() - const comparators = rangeList.map(comp => new Comparator(comp, this.options)) - for (const comp of comparators) { - if (isNullSet(comp)) { - return [comp] - } - rangeMap.set(comp.value, comp) +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } - if (rangeMap.size > 1 && rangeMap.has('')) { - rangeMap.delete('') + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bindCallbackInternals = void 0; +var isScheduler_1 = __nccwpck_require__(84078); +var Observable_1 = __nccwpck_require__(53014); +var subscribeOn_1 = __nccwpck_require__(7224); +var mapOneOrManyArgs_1 = __nccwpck_require__(78934); +var observeOn_1 = __nccwpck_require__(22451); +var AsyncSubject_1 = __nccwpck_require__(9747); +function bindCallbackInternals(isNodeStyle, callbackFunc, resultSelector, scheduler) { + if (resultSelector) { + if (isScheduler_1.isScheduler(resultSelector)) { + scheduler = resultSelector; + } + else { + return function () { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + return bindCallbackInternals(isNodeStyle, callbackFunc, scheduler) + .apply(this, args) + .pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)); + }; + } + } + if (scheduler) { + return function () { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + return bindCallbackInternals(isNodeStyle, callbackFunc) + .apply(this, args) + .pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler)); + }; } + return function () { + var _this = this; + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var subject = new AsyncSubject_1.AsyncSubject(); + var uninitialized = true; + return new Observable_1.Observable(function (subscriber) { + var subs = subject.subscribe(subscriber); + if (uninitialized) { + uninitialized = false; + var isAsync_1 = false; + var isComplete_1 = false; + callbackFunc.apply(_this, __spreadArray(__spreadArray([], __read(args)), [ + function () { + var results = []; + for (var _i = 0; _i < arguments.length; _i++) { + results[_i] = arguments[_i]; + } + if (isNodeStyle) { + var err = results.shift(); + if (err != null) { + subject.error(err); + return; + } + } + subject.next(1 < results.length ? results : results[0]); + isComplete_1 = true; + if (isAsync_1) { + subject.complete(); + } + }, + ])); + if (isComplete_1) { + subject.complete(); + } + isAsync_1 = true; + } + return subs; + }); + }; +} +exports.bindCallbackInternals = bindCallbackInternals; +//# sourceMappingURL=bindCallbackInternals.js.map - const result = [...rangeMap.values()] - cache.set(memoKey, result) - return result - } +/***/ }), - intersects (range, options) { - if (!(range instanceof Range)) { - throw new TypeError('a Range is required') - } +/***/ 51150: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - return this.set.some((thisComparators) => { - return ( - isSatisfiable(thisComparators, options) && - range.set.some((rangeComparators) => { - return ( - isSatisfiable(rangeComparators, options) && - thisComparators.every((thisComparator) => { - return rangeComparators.every((rangeComparator) => { - return thisComparator.intersects(rangeComparator, options) - }) - }) - ) - }) - ) - }) - } +"use strict"; - // if ANY of the sets match ALL of its comparators, then pass - test (version) { - if (!version) { - return false - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bindNodeCallback = void 0; +var bindCallbackInternals_1 = __nccwpck_require__(30585); +function bindNodeCallback(callbackFunc, resultSelector, scheduler) { + return bindCallbackInternals_1.bindCallbackInternals(true, callbackFunc, resultSelector, scheduler); +} +exports.bindNodeCallback = bindNodeCallback; +//# sourceMappingURL=bindNodeCallback.js.map - if (typeof version === 'string') { - try { - version = new SemVer(version, this.options) - } catch (er) { - return false - } - } +/***/ }), - for (let i = 0; i < this.set.length; i++) { - if (testSet(this.set[i], version, this.options)) { - return true - } +/***/ 46843: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.combineLatestInit = exports.combineLatest = void 0; +var Observable_1 = __nccwpck_require__(53014); +var argsArgArrayOrObject_1 = __nccwpck_require__(12920); +var from_1 = __nccwpck_require__(18309); +var identity_1 = __nccwpck_require__(60283); +var mapOneOrManyArgs_1 = __nccwpck_require__(78934); +var args_1 = __nccwpck_require__(34890); +var createObject_1 = __nccwpck_require__(57834); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var executeSchedule_1 = __nccwpck_require__(82877); +function combineLatest() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var scheduler = args_1.popScheduler(args); + var resultSelector = args_1.popResultSelector(args); + var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), observables = _a.args, keys = _a.keys; + if (observables.length === 0) { + return from_1.from([], scheduler); + } + var result = new Observable_1.Observable(combineLatestInit(observables, scheduler, keys + ? + function (values) { return createObject_1.createObject(keys, values); } + : + identity_1.identity)); + return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result; +} +exports.combineLatest = combineLatest; +function combineLatestInit(observables, scheduler, valueTransform) { + if (valueTransform === void 0) { valueTransform = identity_1.identity; } + return function (subscriber) { + maybeSchedule(scheduler, function () { + var length = observables.length; + var values = new Array(length); + var active = length; + var remainingFirstValues = length; + var _loop_1 = function (i) { + maybeSchedule(scheduler, function () { + var source = from_1.from(observables[i], scheduler); + var hasFirstValue = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + values[i] = value; + if (!hasFirstValue) { + hasFirstValue = true; + remainingFirstValues--; + } + if (!remainingFirstValues) { + subscriber.next(valueTransform(values.slice())); + } + }, function () { + if (!--active) { + subscriber.complete(); + } + })); + }, subscriber); + }; + for (var i = 0; i < length; i++) { + _loop_1(i); + } + }, subscriber); + }; +} +exports.combineLatestInit = combineLatestInit; +function maybeSchedule(scheduler, execute, subscription) { + if (scheduler) { + executeSchedule_1.executeSchedule(subscription, scheduler, execute); + } + else { + execute(); } - return false - } } +//# sourceMappingURL=combineLatest.js.map -module.exports = Range +/***/ }), -const LRU = __nccwpck_require__(81196) -const cache = new LRU({ max: 1000 }) +/***/ 4675: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const parseOptions = __nccwpck_require__(40785) -const Comparator = __nccwpck_require__(91532) -const debug = __nccwpck_require__(50427) -const SemVer = __nccwpck_require__(48088) -const { - safeRe: re, - t, - comparatorTrimReplace, - tildeTrimReplace, - caretTrimReplace, -} = __nccwpck_require__(9523) -const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = __nccwpck_require__(42293) +"use strict"; -const isNullSet = c => c.value === '<0.0.0-0' -const isAny = c => c.value === '' +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.concat = void 0; +var concatAll_1 = __nccwpck_require__(88049); +var args_1 = __nccwpck_require__(34890); +var from_1 = __nccwpck_require__(18309); +function concat() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + return concatAll_1.concatAll()(from_1.from(args, args_1.popScheduler(args))); +} +exports.concat = concat; +//# sourceMappingURL=concat.js.map -// take a set of comparators and determine whether there -// exists a version which can satisfy it -const isSatisfiable = (comparators, options) => { - let result = true - const remainingComparators = comparators.slice() - let testComparator = remainingComparators.pop() +/***/ }), - while (result && remainingComparators.length) { - result = remainingComparators.every((otherComparator) => { - return testComparator.intersects(otherComparator, options) - }) +/***/ 13152: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - testComparator = remainingComparators.pop() - } +"use strict"; - return result +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.connectable = void 0; +var Subject_1 = __nccwpck_require__(49944); +var Observable_1 = __nccwpck_require__(53014); +var defer_1 = __nccwpck_require__(27672); +var DEFAULT_CONFIG = { + connector: function () { return new Subject_1.Subject(); }, + resetOnDisconnect: true, +}; +function connectable(source, config) { + if (config === void 0) { config = DEFAULT_CONFIG; } + var connection = null; + var connector = config.connector, _a = config.resetOnDisconnect, resetOnDisconnect = _a === void 0 ? true : _a; + var subject = connector(); + var result = new Observable_1.Observable(function (subscriber) { + return subject.subscribe(subscriber); + }); + result.connect = function () { + if (!connection || connection.closed) { + connection = defer_1.defer(function () { return source; }).subscribe(subject); + if (resetOnDisconnect) { + connection.add(function () { return (subject = connector()); }); + } + } + return connection; + }; + return result; } +exports.connectable = connectable; +//# sourceMappingURL=connectable.js.map -// comprised of xranges, tildes, stars, and gtlt's at this point. -// already replaced the hyphen ranges -// turn into a set of JUST comparators. -const parseComparator = (comp, options) => { - debug('comp', comp, options) - comp = replaceCarets(comp, options) - debug('caret', comp) - comp = replaceTildes(comp, options) - debug('tildes', comp) - comp = replaceXRanges(comp, options) - debug('xrange', comp) - comp = replaceStars(comp, options) - debug('stars', comp) - return comp -} +/***/ }), -const isX = id => !id || id.toLowerCase() === 'x' || id === '*' +/***/ 27672: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// ~, ~> --> * (any, kinda silly) -// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0 -// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0 -// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0 -// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0 -// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0 -// ~0.0.1 --> >=0.0.1 <0.1.0-0 -const replaceTildes = (comp, options) => { - return comp - .trim() - .split(/\s+/) - .map((c) => replaceTilde(c, options)) - .join(' ') +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.defer = void 0; +var Observable_1 = __nccwpck_require__(53014); +var innerFrom_1 = __nccwpck_require__(57105); +function defer(observableFactory) { + return new Observable_1.Observable(function (subscriber) { + innerFrom_1.innerFrom(observableFactory()).subscribe(subscriber); + }); } +exports.defer = defer; +//# sourceMappingURL=defer.js.map -const replaceTilde = (comp, options) => { - const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE] - return comp.replace(r, (_, M, m, p, pr) => { - debug('tilde', comp, _, M, m, p, pr) - let ret +/***/ }), - if (isX(M)) { - ret = '' - } else if (isX(m)) { - ret = `>=${M}.0.0 <${+M + 1}.0.0-0` - } else if (isX(p)) { - // ~1.2 == >=1.2.0 <1.3.0-0 - ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0` - } else if (pr) { - debug('replaceTilde pr', pr) - ret = `>=${M}.${m}.${p}-${pr - } <${M}.${+m + 1}.0-0` - } else { - // ~1.2.3 == >=1.2.3 <1.3.0-0 - ret = `>=${M}.${m}.${p - } <${M}.${+m + 1}.0-0` - } +/***/ 38197: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - debug('tilde return', ret) - return ret - }) -} +"use strict"; -// ^ --> * (any, kinda silly) -// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0 -// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0 -// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0 -// ^1.2.3 --> >=1.2.3 <2.0.0-0 -// ^1.2.0 --> >=1.2.0 <2.0.0-0 -// ^0.0.1 --> >=0.0.1 <0.0.2-0 -// ^0.1.0 --> >=0.1.0 <0.2.0-0 -const replaceCarets = (comp, options) => { - return comp - .trim() - .split(/\s+/) - .map((c) => replaceCaret(c, options)) - .join(' ') +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.animationFrames = void 0; +var Observable_1 = __nccwpck_require__(53014); +var performanceTimestampProvider_1 = __nccwpck_require__(70143); +var animationFrameProvider_1 = __nccwpck_require__(62738); +function animationFrames(timestampProvider) { + return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES; +} +exports.animationFrames = animationFrames; +function animationFramesFactory(timestampProvider) { + return new Observable_1.Observable(function (subscriber) { + var provider = timestampProvider || performanceTimestampProvider_1.performanceTimestampProvider; + var start = provider.now(); + var id = 0; + var run = function () { + if (!subscriber.closed) { + id = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function (timestamp) { + id = 0; + var now = provider.now(); + subscriber.next({ + timestamp: timestampProvider ? now : timestamp, + elapsed: now - start, + }); + run(); + }); + } + }; + run(); + return function () { + if (id) { + animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id); + } + }; + }); } +var DEFAULT_ANIMATION_FRAMES = animationFramesFactory(); +//# sourceMappingURL=animationFrames.js.map -const replaceCaret = (comp, options) => { - debug('caret', comp, options) - const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET] - const z = options.includePrerelease ? '-0' : '' - return comp.replace(r, (_, M, m, p, pr) => { - debug('caret', comp, _, M, m, p, pr) - let ret +/***/ }), - if (isX(M)) { - ret = '' - } else if (isX(m)) { - ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0` - } else if (isX(p)) { - if (M === '0') { - ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0` - } else { - ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0` - } - } else if (pr) { - debug('replaceCaret pr', pr) - if (M === '0') { - if (m === '0') { - ret = `>=${M}.${m}.${p}-${pr - } <${M}.${m}.${+p + 1}-0` - } else { - ret = `>=${M}.${m}.${p}-${pr - } <${M}.${+m + 1}.0-0` - } - } else { - ret = `>=${M}.${m}.${p}-${pr - } <${+M + 1}.0.0-0` - } - } else { - debug('no pr') - if (M === '0') { - if (m === '0') { - ret = `>=${M}.${m}.${p - }${z} <${M}.${m}.${+p + 1}-0` - } else { - ret = `>=${M}.${m}.${p - }${z} <${M}.${+m + 1}.0-0` - } - } else { - ret = `>=${M}.${m}.${p - } <${+M + 1}.0.0-0` - } - } +/***/ 70437: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - debug('caret return', ret) - return ret - }) -} +"use strict"; -const replaceXRanges = (comp, options) => { - debug('replaceXRanges', comp, options) - return comp - .split(/\s+/) - .map((c) => replaceXRange(c, options)) - .join(' ') +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.empty = exports.EMPTY = void 0; +var Observable_1 = __nccwpck_require__(53014); +exports.EMPTY = new Observable_1.Observable(function (subscriber) { return subscriber.complete(); }); +function empty(scheduler) { + return scheduler ? emptyScheduled(scheduler) : exports.EMPTY; +} +exports.empty = empty; +function emptyScheduled(scheduler) { + return new Observable_1.Observable(function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); }); } +//# sourceMappingURL=empty.js.map -const replaceXRange = (comp, options) => { - comp = comp.trim() - const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE] - return comp.replace(r, (ret, gtlt, M, m, p, pr) => { - debug('xRange', comp, ret, gtlt, M, m, p, pr) - const xM = isX(M) - const xm = xM || isX(m) - const xp = xm || isX(p) - const anyX = xp +/***/ }), - if (gtlt === '=' && anyX) { - gtlt = '' - } +/***/ 47358: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // if we're including prereleases in the match, then we need - // to fix this to -0, the lowest possible prerelease value - pr = options.includePrerelease ? '-0' : '' +"use strict"; - if (xM) { - if (gtlt === '>' || gtlt === '<') { - // nothing is allowed - ret = '<0.0.0-0' - } else { - // nothing is forbidden - ret = '*' - } - } else if (gtlt && anyX) { - // we know patch is an x, because we have any x at all. - // replace X with 0 - if (xm) { - m = 0 - } - p = 0 - - if (gtlt === '>') { - // >1 => >=2.0.0 - // >1.2 => >=1.3.0 - gtlt = '>=' - if (xm) { - M = +M + 1 - m = 0 - p = 0 - } else { - m = +m + 1 - p = 0 +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.forkJoin = void 0; +var Observable_1 = __nccwpck_require__(53014); +var argsArgArrayOrObject_1 = __nccwpck_require__(12920); +var innerFrom_1 = __nccwpck_require__(57105); +var args_1 = __nccwpck_require__(34890); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var mapOneOrManyArgs_1 = __nccwpck_require__(78934); +var createObject_1 = __nccwpck_require__(57834); +function forkJoin() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var resultSelector = args_1.popResultSelector(args); + var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), sources = _a.args, keys = _a.keys; + var result = new Observable_1.Observable(function (subscriber) { + var length = sources.length; + if (!length) { + subscriber.complete(); + return; } - } else if (gtlt === '<=') { - // <=0.7.x is actually <0.8.0, since any 0.7.x should - // pass. Similarly, <=7.x is actually <8.0.0, etc. - gtlt = '<' - if (xm) { - M = +M + 1 - } else { - m = +m + 1 + var values = new Array(length); + var remainingCompletions = length; + var remainingEmissions = length; + var _loop_1 = function (sourceIndex) { + var hasValue = false; + innerFrom_1.innerFrom(sources[sourceIndex]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + if (!hasValue) { + hasValue = true; + remainingEmissions--; + } + values[sourceIndex] = value; + }, function () { return remainingCompletions--; }, undefined, function () { + if (!remainingCompletions || !hasValue) { + if (!remainingEmissions) { + subscriber.next(keys ? createObject_1.createObject(keys, values) : values); + } + subscriber.complete(); + } + })); + }; + for (var sourceIndex = 0; sourceIndex < length; sourceIndex++) { + _loop_1(sourceIndex); } - } - - if (gtlt === '<') { - pr = '-0' - } - - ret = `${gtlt + M}.${m}.${p}${pr}` - } else if (xm) { - ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0` - } else if (xp) { - ret = `>=${M}.${m}.0${pr - } <${M}.${+m + 1}.0-0` - } + }); + return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result; +} +exports.forkJoin = forkJoin; +//# sourceMappingURL=forkJoin.js.map - debug('xRange return', ret) +/***/ }), - return ret - }) -} +/***/ 18309: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// Because * is AND-ed with everything else in the comparator, -// and '' means "any version", just remove the *s entirely. -const replaceStars = (comp, options) => { - debug('replaceStars', comp, options) - // Looseness is ignored here. star is always as loose as it gets! - return comp - .trim() - .replace(re[t.STAR], '') -} +"use strict"; -const replaceGTE0 = (comp, options) => { - debug('replaceGTE0', comp, options) - return comp - .trim() - .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '') +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.from = void 0; +var scheduled_1 = __nccwpck_require__(6151); +var innerFrom_1 = __nccwpck_require__(57105); +function from(input, scheduler) { + return scheduler ? scheduled_1.scheduled(input, scheduler) : innerFrom_1.innerFrom(input); } +exports.from = from; +//# sourceMappingURL=from.js.map -// This function is passed to string.replace(re[t.HYPHENRANGE]) -// M, m, patch, prerelease, build -// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 -// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do -// 1.2 - 3.4 => >=1.2.0 <3.5.0-0 -const hyphenReplace = incPr => ($0, - from, fM, fm, fp, fpr, fb, - to, tM, tm, tp, tpr, tb) => { - if (isX(fM)) { - from = '' - } else if (isX(fm)) { - from = `>=${fM}.0.0${incPr ? '-0' : ''}` - } else if (isX(fp)) { - from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}` - } else if (fpr) { - from = `>=${from}` - } else { - from = `>=${from}${incPr ? '-0' : ''}` - } +/***/ }), - if (isX(tM)) { - to = '' - } else if (isX(tm)) { - to = `<${+tM + 1}.0.0-0` - } else if (isX(tp)) { - to = `<${tM}.${+tm + 1}.0-0` - } else if (tpr) { - to = `<=${tM}.${tm}.${tp}-${tpr}` - } else if (incPr) { - to = `<${tM}.${tm}.${+tp + 1}-0` - } else { - to = `<=${to}` - } +/***/ 93238: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - return `${from} ${to}`.trim() -} +"use strict"; -const testSet = (set, version, options) => { - for (let i = 0; i < set.length; i++) { - if (!set[i].test(version)) { - return false +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } - } - - if (version.prerelease.length && !options.includePrerelease) { - // Find the set of versions that are allowed to have prereleases - // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0 - // That should allow `1.2.3-pr.2` to pass. - // However, `1.2.4-alpha.notready` should NOT be allowed, - // even though it's within the range set by the comparators. - for (let i = 0; i < set.length; i++) { - debug(set[i].semver) - if (set[i].semver === Comparator.ANY) { - continue - } - - if (set[i].semver.prerelease.length > 0) { - const allowed = set[i].semver - if (allowed.major === version.major && - allowed.minor === version.minor && - allowed.patch === version.patch) { - return true + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); } - } + finally { if (e) throw e.error; } } - - // Version has a -pre, but it's not one of the ones we like. - return false - } - - return true + return ar; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromEvent = void 0; +var innerFrom_1 = __nccwpck_require__(57105); +var Observable_1 = __nccwpck_require__(53014); +var mergeMap_1 = __nccwpck_require__(69914); +var isArrayLike_1 = __nccwpck_require__(24461); +var isFunction_1 = __nccwpck_require__(67206); +var mapOneOrManyArgs_1 = __nccwpck_require__(78934); +var nodeEventEmitterMethods = ['addListener', 'removeListener']; +var eventTargetMethods = ['addEventListener', 'removeEventListener']; +var jqueryMethods = ['on', 'off']; +function fromEvent(target, eventName, options, resultSelector) { + if (isFunction_1.isFunction(options)) { + resultSelector = options; + options = undefined; + } + if (resultSelector) { + return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)); + } + var _a = __read(isEventTarget(target) + ? eventTargetMethods.map(function (methodName) { return function (handler) { return target[methodName](eventName, handler, options); }; }) + : + isNodeStyleEventEmitter(target) + ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) + : isJQueryStyleEventEmitter(target) + ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) + : [], 2), add = _a[0], remove = _a[1]; + if (!add) { + if (isArrayLike_1.isArrayLike(target)) { + return mergeMap_1.mergeMap(function (subTarget) { return fromEvent(subTarget, eventName, options); })(innerFrom_1.innerFrom(target)); + } + } + if (!add) { + throw new TypeError('Invalid event target'); + } + return new Observable_1.Observable(function (subscriber) { + var handler = function () { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + return subscriber.next(1 < args.length ? args : args[0]); + }; + add(handler); + return function () { return remove(handler); }; + }); } - +exports.fromEvent = fromEvent; +function toCommonHandlerRegistry(target, eventName) { + return function (methodName) { return function (handler) { return target[methodName](eventName, handler); }; }; +} +function isNodeStyleEventEmitter(target) { + return isFunction_1.isFunction(target.addListener) && isFunction_1.isFunction(target.removeListener); +} +function isJQueryStyleEventEmitter(target) { + return isFunction_1.isFunction(target.on) && isFunction_1.isFunction(target.off); +} +function isEventTarget(target) { + return isFunction_1.isFunction(target.addEventListener) && isFunction_1.isFunction(target.removeEventListener); +} +//# sourceMappingURL=fromEvent.js.map /***/ }), -/***/ 48088: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -const debug = __nccwpck_require__(50427) -const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(42293) -const { safeRe: re, t } = __nccwpck_require__(9523) +/***/ 65680: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const parseOptions = __nccwpck_require__(40785) -const { compareIdentifiers } = __nccwpck_require__(92463) -class SemVer { - constructor (version, options) { - options = parseOptions(options) +"use strict"; - if (version instanceof SemVer) { - if (version.loose === !!options.loose && - version.includePrerelease === !!options.includePrerelease) { - return version - } else { - version = version.version - } - } else if (typeof version !== 'string') { - throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`) - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromEventPattern = void 0; +var Observable_1 = __nccwpck_require__(53014); +var isFunction_1 = __nccwpck_require__(67206); +var mapOneOrManyArgs_1 = __nccwpck_require__(78934); +function fromEventPattern(addHandler, removeHandler, resultSelector) { + if (resultSelector) { + return fromEventPattern(addHandler, removeHandler).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)); + } + return new Observable_1.Observable(function (subscriber) { + var handler = function () { + var e = []; + for (var _i = 0; _i < arguments.length; _i++) { + e[_i] = arguments[_i]; + } + return subscriber.next(e.length === 1 ? e[0] : e); + }; + var retValue = addHandler(handler); + return isFunction_1.isFunction(removeHandler) ? function () { return removeHandler(handler, retValue); } : undefined; + }); +} +exports.fromEventPattern = fromEventPattern; +//# sourceMappingURL=fromEventPattern.js.map - if (version.length > MAX_LENGTH) { - throw new TypeError( - `version is longer than ${MAX_LENGTH} characters` - ) - } +/***/ }), - debug('SemVer', version, options) - this.options = options - this.loose = !!options.loose - // this isn't actually relevant for versions, but keep it so that we - // don't run into trouble passing this.options around. - this.includePrerelease = !!options.includePrerelease +/***/ 66513: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]) +"use strict"; - if (!m) { - throw new TypeError(`Invalid Version: ${version}`) - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromSubscribable = void 0; +var Observable_1 = __nccwpck_require__(53014); +function fromSubscribable(subscribable) { + return new Observable_1.Observable(function (subscriber) { return subscribable.subscribe(subscriber); }); +} +exports.fromSubscribable = fromSubscribable; +//# sourceMappingURL=fromSubscribable.js.map - this.raw = version +/***/ }), - // these are actually numbers - this.major = +m[1] - this.minor = +m[2] - this.patch = +m[3] +/***/ 52668: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError('Invalid major version') - } +"use strict"; - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError('Invalid minor version') +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } - - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError('Invalid patch version') +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.generate = void 0; +var identity_1 = __nccwpck_require__(60283); +var isScheduler_1 = __nccwpck_require__(84078); +var defer_1 = __nccwpck_require__(27672); +var scheduleIterable_1 = __nccwpck_require__(59461); +function generate(initialStateOrOptions, condition, iterate, resultSelectorOrScheduler, scheduler) { + var _a, _b; + var resultSelector; + var initialState; + if (arguments.length === 1) { + (_a = initialStateOrOptions, initialState = _a.initialState, condition = _a.condition, iterate = _a.iterate, _b = _a.resultSelector, resultSelector = _b === void 0 ? identity_1.identity : _b, scheduler = _a.scheduler); } - - // numberify any prerelease numeric ids - if (!m[4]) { - this.prerelease = [] - } else { - this.prerelease = m[4].split('.').map((id) => { - if (/^[0-9]+$/.test(id)) { - const num = +id - if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num - } + else { + initialState = initialStateOrOptions; + if (!resultSelectorOrScheduler || isScheduler_1.isScheduler(resultSelectorOrScheduler)) { + resultSelector = identity_1.identity; + scheduler = resultSelectorOrScheduler; } - return id - }) - } - - this.build = m[5] ? m[5].split('.') : [] - this.format() - } - - format () { - this.version = `${this.major}.${this.minor}.${this.patch}` - if (this.prerelease.length) { - this.version += `-${this.prerelease.join('.')}` + else { + resultSelector = resultSelectorOrScheduler; + } + } + function gen() { + var state; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + state = initialState; + _a.label = 1; + case 1: + if (!(!condition || condition(state))) return [3, 4]; + return [4, resultSelector(state)]; + case 2: + _a.sent(); + _a.label = 3; + case 3: + state = iterate(state); + return [3, 1]; + case 4: return [2]; + } + }); } - return this.version - } + return defer_1.defer((scheduler + ? + function () { return scheduleIterable_1.scheduleIterable(gen(), scheduler); } + : + gen)); +} +exports.generate = generate; +//# sourceMappingURL=generate.js.map - toString () { - return this.version - } +/***/ }), - compare (other) { - debug('SemVer.compare', this.version, this.options, other) - if (!(other instanceof SemVer)) { - if (typeof other === 'string' && other === this.version) { - return 0 - } - other = new SemVer(other, this.options) - } +/***/ 26514: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (other.version === this.version) { - return 0 - } +"use strict"; - return this.compareMain(other) || this.comparePre(other) - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.iif = void 0; +var defer_1 = __nccwpck_require__(27672); +function iif(condition, trueResult, falseResult) { + return defer_1.defer(function () { return (condition() ? trueResult : falseResult); }); +} +exports.iif = iif; +//# sourceMappingURL=iif.js.map - compareMain (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } +/***/ }), - return ( - compareIdentifiers(this.major, other.major) || - compareIdentifiers(this.minor, other.minor) || - compareIdentifiers(this.patch, other.patch) - ) - } +/***/ 57105: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - comparePre (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } +"use strict"; - // NOT having a prerelease is > having one - if (this.prerelease.length && !other.prerelease.length) { - return -1 - } else if (!this.prerelease.length && other.prerelease.length) { - return 1 - } else if (!this.prerelease.length && !other.prerelease.length) { - return 0 +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } - - let i = 0 - do { - const a = this.prerelease[i] - const b = other.prerelease[i] - debug('prerelease compare', i, a, b) - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) - } - - compareBuild (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) +}; +var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +}; +var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromReadableStreamLike = exports.fromAsyncIterable = exports.fromIterable = exports.fromPromise = exports.fromArrayLike = exports.fromInteropObservable = exports.innerFrom = void 0; +var isArrayLike_1 = __nccwpck_require__(24461); +var isPromise_1 = __nccwpck_require__(65585); +var Observable_1 = __nccwpck_require__(53014); +var isInteropObservable_1 = __nccwpck_require__(67984); +var isAsyncIterable_1 = __nccwpck_require__(44408); +var throwUnobservableError_1 = __nccwpck_require__(97364); +var isIterable_1 = __nccwpck_require__(94292); +var isReadableStreamLike_1 = __nccwpck_require__(99621); +var isFunction_1 = __nccwpck_require__(67206); +var reportUnhandledError_1 = __nccwpck_require__(92445); +var observable_1 = __nccwpck_require__(17186); +function innerFrom(input) { + if (input instanceof Observable_1.Observable) { + return input; } - - let i = 0 - do { - const a = this.build[i] - const b = other.build[i] - debug('prerelease compare', i, a, b) - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) - } - - // preminor will bump the version up to the next minor release, and immediately - // down to pre-release. premajor and prepatch work the same way. - inc (release, identifier, identifierBase) { - switch (release) { - case 'premajor': - this.prerelease.length = 0 - this.patch = 0 - this.minor = 0 - this.major++ - this.inc('pre', identifier, identifierBase) - break - case 'preminor': - this.prerelease.length = 0 - this.patch = 0 - this.minor++ - this.inc('pre', identifier, identifierBase) - break - case 'prepatch': - // If this is already a prerelease, it will bump to the next version - // drop any prereleases that might already exist, since they are not - // relevant at this point. - this.prerelease.length = 0 - this.inc('patch', identifier, identifierBase) - this.inc('pre', identifier, identifierBase) - break - // If the input is a non-prerelease version, this acts the same as - // prepatch. - case 'prerelease': - if (this.prerelease.length === 0) { - this.inc('patch', identifier, identifierBase) + if (input != null) { + if (isInteropObservable_1.isInteropObservable(input)) { + return fromInteropObservable(input); } - this.inc('pre', identifier, identifierBase) - break - - case 'major': - // If this is a pre-major version, bump up to the same major version. - // Otherwise increment major. - // 1.0.0-5 bumps to 1.0.0 - // 1.1.0 bumps to 2.0.0 - if ( - this.minor !== 0 || - this.patch !== 0 || - this.prerelease.length === 0 - ) { - this.major++ + if (isArrayLike_1.isArrayLike(input)) { + return fromArrayLike(input); } - this.minor = 0 - this.patch = 0 - this.prerelease = [] - break - case 'minor': - // If this is a pre-minor version, bump up to the same minor version. - // Otherwise increment minor. - // 1.2.0-5 bumps to 1.2.0 - // 1.2.1 bumps to 1.3.0 - if (this.patch !== 0 || this.prerelease.length === 0) { - this.minor++ + if (isPromise_1.isPromise(input)) { + return fromPromise(input); } - this.patch = 0 - this.prerelease = [] - break - case 'patch': - // If this is not a pre-release version, it will increment the patch. - // If it is a pre-release it will bump up to the same patch version. - // 1.2.0-5 patches to 1.2.0 - // 1.2.0 patches to 1.2.1 - if (this.prerelease.length === 0) { - this.patch++ + if (isAsyncIterable_1.isAsyncIterable(input)) { + return fromAsyncIterable(input); } - this.prerelease = [] - break - // This probably shouldn't be used publicly. - // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction. - case 'pre': { - const base = Number(identifierBase) ? 1 : 0 - - if (!identifier && identifierBase === false) { - throw new Error('invalid increment argument: identifier is empty') + if (isIterable_1.isIterable(input)) { + return fromIterable(input); } - - if (this.prerelease.length === 0) { - this.prerelease = [base] - } else { - let i = this.prerelease.length - while (--i >= 0) { - if (typeof this.prerelease[i] === 'number') { - this.prerelease[i]++ - i = -2 - } - } - if (i === -1) { - // didn't increment anything - if (identifier === this.prerelease.join('.') && identifierBase === false) { - throw new Error('invalid increment argument: identifier already exists') + if (isReadableStreamLike_1.isReadableStreamLike(input)) { + return fromReadableStreamLike(input); + } + } + throw throwUnobservableError_1.createInvalidObservableTypeError(input); +} +exports.innerFrom = innerFrom; +function fromInteropObservable(obj) { + return new Observable_1.Observable(function (subscriber) { + var obs = obj[observable_1.observable](); + if (isFunction_1.isFunction(obs.subscribe)) { + return obs.subscribe(subscriber); + } + throw new TypeError('Provided object does not correctly implement Symbol.observable'); + }); +} +exports.fromInteropObservable = fromInteropObservable; +function fromArrayLike(array) { + return new Observable_1.Observable(function (subscriber) { + for (var i = 0; i < array.length && !subscriber.closed; i++) { + subscriber.next(array[i]); + } + subscriber.complete(); + }); +} +exports.fromArrayLike = fromArrayLike; +function fromPromise(promise) { + return new Observable_1.Observable(function (subscriber) { + promise + .then(function (value) { + if (!subscriber.closed) { + subscriber.next(value); + subscriber.complete(); + } + }, function (err) { return subscriber.error(err); }) + .then(null, reportUnhandledError_1.reportUnhandledError); + }); +} +exports.fromPromise = fromPromise; +function fromIterable(iterable) { + return new Observable_1.Observable(function (subscriber) { + var e_1, _a; + try { + for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) { + var value = iterable_1_1.value; + subscriber.next(value); + if (subscriber.closed) { + return; + } } - this.prerelease.push(base) - } } - if (identifier) { - // 1.2.0-beta.1 bumps to 1.2.0-beta.2, - // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 - let prerelease = [identifier, base] - if (identifierBase === false) { - prerelease = [identifier] - } - if (compareIdentifiers(this.prerelease[0], identifier) === 0) { - if (isNaN(this.prerelease[1])) { - this.prerelease = prerelease + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return)) _a.call(iterable_1); } - } else { - this.prerelease = prerelease - } + finally { if (e_1) throw e_1.error; } } - break - } - default: - throw new Error(`invalid increment argument: ${release}`) - } - this.raw = this.format() - if (this.build.length) { - this.raw += `+${this.build.join('.')}` - } - return this - } + subscriber.complete(); + }); } +exports.fromIterable = fromIterable; +function fromAsyncIterable(asyncIterable) { + return new Observable_1.Observable(function (subscriber) { + process(asyncIterable, subscriber).catch(function (err) { return subscriber.error(err); }); + }); +} +exports.fromAsyncIterable = fromAsyncIterable; +function fromReadableStreamLike(readableStream) { + return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream)); +} +exports.fromReadableStreamLike = fromReadableStreamLike; +function process(asyncIterable, subscriber) { + var asyncIterable_1, asyncIterable_1_1; + var e_2, _a; + return __awaiter(this, void 0, void 0, function () { + var value, e_2_1; + return __generator(this, function (_b) { + switch (_b.label) { + case 0: + _b.trys.push([0, 5, 6, 11]); + asyncIterable_1 = __asyncValues(asyncIterable); + _b.label = 1; + case 1: return [4, asyncIterable_1.next()]; + case 2: + if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done)) return [3, 4]; + value = asyncIterable_1_1.value; + subscriber.next(value); + if (subscriber.closed) { + return [2]; + } + _b.label = 3; + case 3: return [3, 1]; + case 4: return [3, 11]; + case 5: + e_2_1 = _b.sent(); + e_2 = { error: e_2_1 }; + return [3, 11]; + case 6: + _b.trys.push([6, , 9, 10]); + if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return))) return [3, 8]; + return [4, _a.call(asyncIterable_1)]; + case 7: + _b.sent(); + _b.label = 8; + case 8: return [3, 10]; + case 9: + if (e_2) throw e_2.error; + return [7]; + case 10: return [7]; + case 11: + subscriber.complete(); + return [2]; + } + }); + }); +} +//# sourceMappingURL=innerFrom.js.map -module.exports = SemVer +/***/ }), + +/***/ 20029: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.interval = void 0; +var async_1 = __nccwpck_require__(76072); +var timer_1 = __nccwpck_require__(59757); +function interval(period, scheduler) { + if (period === void 0) { period = 0; } + if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } + if (period < 0) { + period = 0; + } + return timer_1.timer(period, period, scheduler); +} +exports.interval = interval; +//# sourceMappingURL=interval.js.map /***/ }), -/***/ 48848: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 75122: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const parse = __nccwpck_require__(75925) -const clean = (version, options) => { - const s = parse(version.trim().replace(/^[=v]+/, ''), options) - return s ? s.version : null -} -module.exports = clean +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.merge = void 0; +var mergeAll_1 = __nccwpck_require__(2057); +var innerFrom_1 = __nccwpck_require__(57105); +var empty_1 = __nccwpck_require__(70437); +var args_1 = __nccwpck_require__(34890); +var from_1 = __nccwpck_require__(18309); +function merge() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var scheduler = args_1.popScheduler(args); + var concurrent = args_1.popNumber(args, Infinity); + var sources = args; + return !sources.length + ? + empty_1.EMPTY + : sources.length === 1 + ? + innerFrom_1.innerFrom(sources[0]) + : + mergeAll_1.mergeAll(concurrent)(from_1.from(sources, scheduler)); +} +exports.merge = merge; +//# sourceMappingURL=merge.js.map /***/ }), -/***/ 75098: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 6228: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const eq = __nccwpck_require__(91898) -const neq = __nccwpck_require__(6017) -const gt = __nccwpck_require__(84123) -const gte = __nccwpck_require__(15522) -const lt = __nccwpck_require__(80194) -const lte = __nccwpck_require__(77520) +"use strict"; -const cmp = (a, op, b, loose) => { - switch (op) { - case '===': - if (typeof a === 'object') { - a = a.version - } - if (typeof b === 'object') { - b = b.version - } - return a === b +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.never = exports.NEVER = void 0; +var Observable_1 = __nccwpck_require__(53014); +var noop_1 = __nccwpck_require__(11642); +exports.NEVER = new Observable_1.Observable(noop_1.noop); +function never() { + return exports.NEVER; +} +exports.never = never; +//# sourceMappingURL=never.js.map - case '!==': - if (typeof a === 'object') { - a = a.version - } - if (typeof b === 'object') { - b = b.version - } - return a !== b +/***/ }), - case '': - case '=': - case '==': - return eq(a, b, loose) +/***/ 72163: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - case '!=': - return neq(a, b, loose) +"use strict"; - case '>': - return gt(a, b, loose) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.of = void 0; +var args_1 = __nccwpck_require__(34890); +var from_1 = __nccwpck_require__(18309); +function of() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var scheduler = args_1.popScheduler(args); + return from_1.from(args, scheduler); +} +exports.of = of; +//# sourceMappingURL=of.js.map - case '>=': - return gte(a, b, loose) +/***/ }), - case '<': - return lt(a, b, loose) +/***/ 16089: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - case '<=': - return lte(a, b, loose) +"use strict"; - default: - throw new TypeError(`Invalid operator: ${op}`) - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.onErrorResumeNext = void 0; +var Observable_1 = __nccwpck_require__(53014); +var argsOrArgArray_1 = __nccwpck_require__(18824); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var noop_1 = __nccwpck_require__(11642); +var innerFrom_1 = __nccwpck_require__(57105); +function onErrorResumeNext() { + var sources = []; + for (var _i = 0; _i < arguments.length; _i++) { + sources[_i] = arguments[_i]; + } + var nextSources = argsOrArgArray_1.argsOrArgArray(sources); + return new Observable_1.Observable(function (subscriber) { + var sourceIndex = 0; + var subscribeNext = function () { + if (sourceIndex < nextSources.length) { + var nextSource = void 0; + try { + nextSource = innerFrom_1.innerFrom(nextSources[sourceIndex++]); + } + catch (err) { + subscribeNext(); + return; + } + var innerSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, undefined, noop_1.noop, noop_1.noop); + nextSource.subscribe(innerSubscriber); + innerSubscriber.add(subscribeNext); + } + else { + subscriber.complete(); + } + }; + subscribeNext(); + }); } -module.exports = cmp - +exports.onErrorResumeNext = onErrorResumeNext; +//# sourceMappingURL=onErrorResumeNext.js.map /***/ }), -/***/ 13466: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 30505: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const SemVer = __nccwpck_require__(48088) -const parse = __nccwpck_require__(75925) -const { safeRe: re, t } = __nccwpck_require__(9523) +"use strict"; -const coerce = (version, options) => { - if (version instanceof SemVer) { - return version - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.pairs = void 0; +var from_1 = __nccwpck_require__(18309); +function pairs(obj, scheduler) { + return from_1.from(Object.entries(obj), scheduler); +} +exports.pairs = pairs; +//# sourceMappingURL=pairs.js.map - if (typeof version === 'number') { - version = String(version) - } +/***/ }), - if (typeof version !== 'string') { - return null - } +/***/ 15506: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - options = options || {} +"use strict"; - let match = null - if (!options.rtl) { - match = version.match(re[t.COERCE]) - } else { - // Find the right-most coercible string that does not share - // a terminus with a more left-ward coercible string. - // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4' - // - // Walk through the string checking with a /g regexp - // Manually set the index so as to pick up overlapping matches. - // Stop when we get a match that ends at the string end, since no - // coercible string can be more right-ward without the same terminus. - let next - while ((next = re[t.COERCERTL].exec(version)) && - (!match || match.index + match[0].length !== version.length) - ) { - if (!match || - next.index + next[0].length !== match.index + match[0].length) { - match = next - } - re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length - } - // leave it in a clean state - re[t.COERCERTL].lastIndex = -1 - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.partition = void 0; +var not_1 = __nccwpck_require__(54338); +var filter_1 = __nccwpck_require__(36894); +var innerFrom_1 = __nccwpck_require__(57105); +function partition(source, predicate, thisArg) { + return [filter_1.filter(predicate, thisArg)(innerFrom_1.innerFrom(source)), filter_1.filter(not_1.not(predicate, thisArg))(innerFrom_1.innerFrom(source))]; +} +exports.partition = partition; +//# sourceMappingURL=partition.js.map - if (match === null) { - return null - } +/***/ }), - return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options) -} -module.exports = coerce +/***/ 16940: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.raceInit = exports.race = void 0; +var Observable_1 = __nccwpck_require__(53014); +var innerFrom_1 = __nccwpck_require__(57105); +var argsOrArgArray_1 = __nccwpck_require__(18824); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function race() { + var sources = []; + for (var _i = 0; _i < arguments.length; _i++) { + sources[_i] = arguments[_i]; + } + sources = argsOrArgArray_1.argsOrArgArray(sources); + return sources.length === 1 ? innerFrom_1.innerFrom(sources[0]) : new Observable_1.Observable(raceInit(sources)); +} +exports.race = race; +function raceInit(sources) { + return function (subscriber) { + var subscriptions = []; + var _loop_1 = function (i) { + subscriptions.push(innerFrom_1.innerFrom(sources[i]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + if (subscriptions) { + for (var s = 0; s < subscriptions.length; s++) { + s !== i && subscriptions[s].unsubscribe(); + } + subscriptions = null; + } + subscriber.next(value); + }))); + }; + for (var i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) { + _loop_1(i); + } + }; +} +exports.raceInit = raceInit; +//# sourceMappingURL=race.js.map /***/ }), -/***/ 92156: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 88538: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const SemVer = __nccwpck_require__(48088) -const compareBuild = (a, b, loose) => { - const versionA = new SemVer(a, loose) - const versionB = new SemVer(b, loose) - return versionA.compare(versionB) || versionA.compareBuild(versionB) -} -module.exports = compareBuild +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.range = void 0; +var Observable_1 = __nccwpck_require__(53014); +var empty_1 = __nccwpck_require__(70437); +function range(start, count, scheduler) { + if (count == null) { + count = start; + start = 0; + } + if (count <= 0) { + return empty_1.EMPTY; + } + var end = count + start; + return new Observable_1.Observable(scheduler + ? + function (subscriber) { + var n = start; + return scheduler.schedule(function () { + if (n < end) { + subscriber.next(n++); + this.schedule(); + } + else { + subscriber.complete(); + } + }); + } + : + function (subscriber) { + var n = start; + while (n < end && !subscriber.closed) { + subscriber.next(n++); + } + subscriber.complete(); + }); +} +exports.range = range; +//# sourceMappingURL=range.js.map /***/ }), -/***/ 62804: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 66381: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const compare = __nccwpck_require__(44309) -const compareLoose = (a, b) => compare(a, b, true) -module.exports = compareLoose +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.throwError = void 0; +var Observable_1 = __nccwpck_require__(53014); +var isFunction_1 = __nccwpck_require__(67206); +function throwError(errorOrErrorFactory, scheduler) { + var errorFactory = isFunction_1.isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function () { return errorOrErrorFactory; }; + var init = function (subscriber) { return subscriber.error(errorFactory()); }; + return new Observable_1.Observable(scheduler ? function (subscriber) { return scheduler.schedule(init, 0, subscriber); } : init); +} +exports.throwError = throwError; +//# sourceMappingURL=throwError.js.map /***/ }), -/***/ 44309: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -const SemVer = __nccwpck_require__(48088) -const compare = (a, b, loose) => - new SemVer(a, loose).compare(new SemVer(b, loose)) +/***/ 59757: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -module.exports = compare +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.timer = void 0; +var Observable_1 = __nccwpck_require__(53014); +var async_1 = __nccwpck_require__(76072); +var isScheduler_1 = __nccwpck_require__(84078); +var isDate_1 = __nccwpck_require__(60935); +function timer(dueTime, intervalOrScheduler, scheduler) { + if (dueTime === void 0) { dueTime = 0; } + if (scheduler === void 0) { scheduler = async_1.async; } + var intervalDuration = -1; + if (intervalOrScheduler != null) { + if (isScheduler_1.isScheduler(intervalOrScheduler)) { + scheduler = intervalOrScheduler; + } + else { + intervalDuration = intervalOrScheduler; + } + } + return new Observable_1.Observable(function (subscriber) { + var due = isDate_1.isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime; + if (due < 0) { + due = 0; + } + var n = 0; + return scheduler.schedule(function () { + if (!subscriber.closed) { + subscriber.next(n++); + if (0 <= intervalDuration) { + this.schedule(undefined, intervalDuration); + } + else { + subscriber.complete(); + } + } + }, due); + }); +} +exports.timer = timer; +//# sourceMappingURL=timer.js.map /***/ }), -/***/ 64297: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 8445: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const parse = __nccwpck_require__(75925) +"use strict"; -const diff = (version1, version2) => { - const v1 = parse(version1, null, true) - const v2 = parse(version2, null, true) - const comparison = v1.compare(v2) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.using = void 0; +var Observable_1 = __nccwpck_require__(53014); +var innerFrom_1 = __nccwpck_require__(57105); +var empty_1 = __nccwpck_require__(70437); +function using(resourceFactory, observableFactory) { + return new Observable_1.Observable(function (subscriber) { + var resource = resourceFactory(); + var result = observableFactory(resource); + var source = result ? innerFrom_1.innerFrom(result) : empty_1.EMPTY; + source.subscribe(subscriber); + return function () { + if (resource) { + resource.unsubscribe(); + } + }; + }); +} +exports.using = using; +//# sourceMappingURL=using.js.map - if (comparison === 0) { - return null - } +/***/ }), - const v1Higher = comparison > 0 - const highVersion = v1Higher ? v1 : v2 - const lowVersion = v1Higher ? v2 : v1 - const highHasPre = !!highVersion.prerelease.length - const lowHasPre = !!lowVersion.prerelease.length +/***/ 62504: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - if (lowHasPre && !highHasPre) { - // Going from prerelease -> no prerelease requires some special casing +"use strict"; - // If the low version has only a major, then it will always be a major - // Some examples: - // 1.0.0-1 -> 1.0.0 - // 1.0.0-1 -> 1.1.1 - // 1.0.0-1 -> 2.0.0 - if (!lowVersion.patch && !lowVersion.minor) { - return 'major' +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.zip = void 0; +var Observable_1 = __nccwpck_require__(53014); +var innerFrom_1 = __nccwpck_require__(57105); +var argsOrArgArray_1 = __nccwpck_require__(18824); +var empty_1 = __nccwpck_require__(70437); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var args_1 = __nccwpck_require__(34890); +function zip() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var resultSelector = args_1.popResultSelector(args); + var sources = argsOrArgArray_1.argsOrArgArray(args); + return sources.length + ? new Observable_1.Observable(function (subscriber) { + var buffers = sources.map(function () { return []; }); + var completed = sources.map(function () { return false; }); + subscriber.add(function () { + buffers = completed = null; + }); + var _loop_1 = function (sourceIndex) { + innerFrom_1.innerFrom(sources[sourceIndex]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + buffers[sourceIndex].push(value); + if (buffers.every(function (buffer) { return buffer.length; })) { + var result = buffers.map(function (buffer) { return buffer.shift(); }); + subscriber.next(resultSelector ? resultSelector.apply(void 0, __spreadArray([], __read(result))) : result); + if (buffers.some(function (buffer, i) { return !buffer.length && completed[i]; })) { + subscriber.complete(); + } + } + }, function () { + completed[sourceIndex] = true; + !buffers[sourceIndex].length && subscriber.complete(); + })); + }; + for (var sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) { + _loop_1(sourceIndex); + } + return function () { + buffers = completed = null; + }; + }) + : empty_1.EMPTY; +} +exports.zip = zip; +//# sourceMappingURL=zip.js.map - // Otherwise it can be determined by checking the high version +/***/ }), - if (highVersion.patch) { - // anything higher than a patch bump would result in the wrong version - return 'patch' - } +/***/ 69549: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - if (highVersion.minor) { - // anything higher than a minor bump would result in the wrong version - return 'minor' +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OperatorSubscriber = exports.createOperatorSubscriber = void 0; +var Subscriber_1 = __nccwpck_require__(67121); +function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) { + return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize); +} +exports.createOperatorSubscriber = createOperatorSubscriber; +var OperatorSubscriber = (function (_super) { + __extends(OperatorSubscriber, _super); + function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) { + var _this = _super.call(this, destination) || this; + _this.onFinalize = onFinalize; + _this.shouldUnsubscribe = shouldUnsubscribe; + _this._next = onNext + ? function (value) { + try { + onNext(value); + } + catch (err) { + destination.error(err); + } + } + : _super.prototype._next; + _this._error = onError + ? function (err) { + try { + onError(err); + } + catch (err) { + destination.error(err); + } + finally { + this.unsubscribe(); + } + } + : _super.prototype._error; + _this._complete = onComplete + ? function () { + try { + onComplete(); + } + catch (err) { + destination.error(err); + } + finally { + this.unsubscribe(); + } + } + : _super.prototype._complete; + return _this; } + OperatorSubscriber.prototype.unsubscribe = function () { + var _a; + if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { + var closed_1 = this.closed; + _super.prototype.unsubscribe.call(this); + !closed_1 && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this)); + } + }; + return OperatorSubscriber; +}(Subscriber_1.Subscriber)); +exports.OperatorSubscriber = OperatorSubscriber; +//# sourceMappingURL=OperatorSubscriber.js.map - // bumping major/minor/patch all have same result - return 'major' - } +/***/ }), - // add the `pre` prefix if we are going to a prerelease version - const prefix = highHasPre ? 'pre' : '' +/***/ 82704: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (v1.major !== v2.major) { - return prefix + 'major' - } +"use strict"; - if (v1.minor !== v2.minor) { - return prefix + 'minor' - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.audit = void 0; +var lift_1 = __nccwpck_require__(38669); +var innerFrom_1 = __nccwpck_require__(57105); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function audit(durationSelector) { + return lift_1.operate(function (source, subscriber) { + var hasValue = false; + var lastValue = null; + var durationSubscriber = null; + var isComplete = false; + var endDuration = function () { + durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); + durationSubscriber = null; + if (hasValue) { + hasValue = false; + var value = lastValue; + lastValue = null; + subscriber.next(value); + } + isComplete && subscriber.complete(); + }; + var cleanupDuration = function () { + durationSubscriber = null; + isComplete && subscriber.complete(); + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + hasValue = true; + lastValue = value; + if (!durationSubscriber) { + innerFrom_1.innerFrom(durationSelector(value)).subscribe((durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, endDuration, cleanupDuration))); + } + }, function () { + isComplete = true; + (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete(); + })); + }); +} +exports.audit = audit; +//# sourceMappingURL=audit.js.map - if (v1.patch !== v2.patch) { - return prefix + 'patch' - } +/***/ }), - // high and low are preleases - return 'prerelease' -} +/***/ 18780: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -module.exports = diff +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auditTime = void 0; +var async_1 = __nccwpck_require__(76072); +var audit_1 = __nccwpck_require__(82704); +var timer_1 = __nccwpck_require__(59757); +function auditTime(duration, scheduler) { + if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } + return audit_1.audit(function () { return timer_1.timer(duration, scheduler); }); +} +exports.auditTime = auditTime; +//# sourceMappingURL=auditTime.js.map /***/ }), -/***/ 91898: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 34253: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const compare = __nccwpck_require__(44309) -const eq = (a, b, loose) => compare(a, b, loose) === 0 -module.exports = eq +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.buffer = void 0; +var lift_1 = __nccwpck_require__(38669); +var noop_1 = __nccwpck_require__(11642); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var innerFrom_1 = __nccwpck_require__(57105); +function buffer(closingNotifier) { + return lift_1.operate(function (source, subscriber) { + var currentBuffer = []; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return currentBuffer.push(value); }, function () { + subscriber.next(currentBuffer); + subscriber.complete(); + })); + innerFrom_1.innerFrom(closingNotifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { + var b = currentBuffer; + currentBuffer = []; + subscriber.next(b); + }, noop_1.noop)); + return function () { + currentBuffer = null; + }; + }); +} +exports.buffer = buffer; +//# sourceMappingURL=buffer.js.map /***/ }), -/***/ 84123: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 17253: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -const compare = __nccwpck_require__(44309) -const gt = (a, b, loose) => compare(a, b, loose) > 0 -module.exports = gt +"use strict"; +var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bufferCount = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var arrRemove_1 = __nccwpck_require__(68499); +function bufferCount(bufferSize, startBufferEvery) { + if (startBufferEvery === void 0) { startBufferEvery = null; } + startBufferEvery = startBufferEvery !== null && startBufferEvery !== void 0 ? startBufferEvery : bufferSize; + return lift_1.operate(function (source, subscriber) { + var buffers = []; + var count = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + var e_1, _a, e_2, _b; + var toEmit = null; + if (count++ % startBufferEvery === 0) { + buffers.push([]); + } + try { + for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) { + var buffer = buffers_1_1.value; + buffer.push(value); + if (bufferSize <= buffer.length) { + toEmit = toEmit !== null && toEmit !== void 0 ? toEmit : []; + toEmit.push(buffer); + } + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1); + } + finally { if (e_1) throw e_1.error; } + } + if (toEmit) { + try { + for (var toEmit_1 = __values(toEmit), toEmit_1_1 = toEmit_1.next(); !toEmit_1_1.done; toEmit_1_1 = toEmit_1.next()) { + var buffer = toEmit_1_1.value; + arrRemove_1.arrRemove(buffers, buffer); + subscriber.next(buffer); + } + } + catch (e_2_1) { e_2 = { error: e_2_1 }; } + finally { + try { + if (toEmit_1_1 && !toEmit_1_1.done && (_b = toEmit_1.return)) _b.call(toEmit_1); + } + finally { if (e_2) throw e_2.error; } + } + } + }, function () { + var e_3, _a; + try { + for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) { + var buffer = buffers_2_1.value; + subscriber.next(buffer); + } + } + catch (e_3_1) { e_3 = { error: e_3_1 }; } + finally { + try { + if (buffers_2_1 && !buffers_2_1.done && (_a = buffers_2.return)) _a.call(buffers_2); + } + finally { if (e_3) throw e_3.error; } + } + subscriber.complete(); + }, undefined, function () { + buffers = null; + })); + }); +} +exports.bufferCount = bufferCount; +//# sourceMappingURL=bufferCount.js.map /***/ }), -/***/ 15522: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 73102: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -const compare = __nccwpck_require__(44309) -const gte = (a, b, loose) => compare(a, b, loose) >= 0 -module.exports = gte +"use strict"; +var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bufferTime = void 0; +var Subscription_1 = __nccwpck_require__(79548); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var arrRemove_1 = __nccwpck_require__(68499); +var async_1 = __nccwpck_require__(76072); +var args_1 = __nccwpck_require__(34890); +var executeSchedule_1 = __nccwpck_require__(82877); +function bufferTime(bufferTimeSpan) { + var _a, _b; + var otherArgs = []; + for (var _i = 1; _i < arguments.length; _i++) { + otherArgs[_i - 1] = arguments[_i]; + } + var scheduler = (_a = args_1.popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : async_1.asyncScheduler; + var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null; + var maxBufferSize = otherArgs[1] || Infinity; + return lift_1.operate(function (source, subscriber) { + var bufferRecords = []; + var restartOnEmit = false; + var emit = function (record) { + var buffer = record.buffer, subs = record.subs; + subs.unsubscribe(); + arrRemove_1.arrRemove(bufferRecords, record); + subscriber.next(buffer); + restartOnEmit && startBuffer(); + }; + var startBuffer = function () { + if (bufferRecords) { + var subs = new Subscription_1.Subscription(); + subscriber.add(subs); + var buffer = []; + var record_1 = { + buffer: buffer, + subs: subs, + }; + bufferRecords.push(record_1); + executeSchedule_1.executeSchedule(subs, scheduler, function () { return emit(record_1); }, bufferTimeSpan); + } + }; + if (bufferCreationInterval !== null && bufferCreationInterval >= 0) { + executeSchedule_1.executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true); + } + else { + restartOnEmit = true; + } + startBuffer(); + var bufferTimeSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + var e_1, _a; + var recordsCopy = bufferRecords.slice(); + try { + for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) { + var record = recordsCopy_1_1.value; + var buffer = record.buffer; + buffer.push(value); + maxBufferSize <= buffer.length && emit(record); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a = recordsCopy_1.return)) _a.call(recordsCopy_1); + } + finally { if (e_1) throw e_1.error; } + } + }, function () { + while (bufferRecords === null || bufferRecords === void 0 ? void 0 : bufferRecords.length) { + subscriber.next(bufferRecords.shift().buffer); + } + bufferTimeSubscriber === null || bufferTimeSubscriber === void 0 ? void 0 : bufferTimeSubscriber.unsubscribe(); + subscriber.complete(); + subscriber.unsubscribe(); + }, undefined, function () { return (bufferRecords = null); }); + source.subscribe(bufferTimeSubscriber); + }); +} +exports.bufferTime = bufferTime; +//# sourceMappingURL=bufferTime.js.map /***/ }), -/***/ 30900: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -const SemVer = __nccwpck_require__(48088) +/***/ 83781: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -const inc = (version, release, options, identifier, identifierBase) => { - if (typeof (options) === 'string') { - identifierBase = identifier - identifier = options - options = undefined - } +"use strict"; - try { - return new SemVer( - version instanceof SemVer ? version.version : version, - options - ).inc(release, identifier, identifierBase).version - } catch (er) { - return null - } +var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bufferToggle = void 0; +var Subscription_1 = __nccwpck_require__(79548); +var lift_1 = __nccwpck_require__(38669); +var innerFrom_1 = __nccwpck_require__(57105); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var noop_1 = __nccwpck_require__(11642); +var arrRemove_1 = __nccwpck_require__(68499); +function bufferToggle(openings, closingSelector) { + return lift_1.operate(function (source, subscriber) { + var buffers = []; + innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (openValue) { + var buffer = []; + buffers.push(buffer); + var closingSubscription = new Subscription_1.Subscription(); + var emitBuffer = function () { + arrRemove_1.arrRemove(buffers, buffer); + subscriber.next(buffer); + closingSubscription.unsubscribe(); + }; + closingSubscription.add(innerFrom_1.innerFrom(closingSelector(openValue)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, emitBuffer, noop_1.noop))); + }, noop_1.noop)); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + var e_1, _a; + try { + for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) { + var buffer = buffers_1_1.value; + buffer.push(value); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1); + } + finally { if (e_1) throw e_1.error; } + } + }, function () { + while (buffers.length > 0) { + subscriber.next(buffers.shift()); + } + subscriber.complete(); + })); + }); } -module.exports = inc - +exports.bufferToggle = bufferToggle; +//# sourceMappingURL=bufferToggle.js.map /***/ }), -/***/ 80194: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 82855: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const compare = __nccwpck_require__(44309) -const lt = (a, b, loose) => compare(a, b, loose) < 0 -module.exports = lt +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bufferWhen = void 0; +var lift_1 = __nccwpck_require__(38669); +var noop_1 = __nccwpck_require__(11642); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var innerFrom_1 = __nccwpck_require__(57105); +function bufferWhen(closingSelector) { + return lift_1.operate(function (source, subscriber) { + var buffer = null; + var closingSubscriber = null; + var openBuffer = function () { + closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); + var b = buffer; + buffer = []; + b && subscriber.next(b); + innerFrom_1.innerFrom(closingSelector()).subscribe((closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openBuffer, noop_1.noop))); + }; + openBuffer(); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return buffer === null || buffer === void 0 ? void 0 : buffer.push(value); }, function () { + buffer && subscriber.next(buffer); + subscriber.complete(); + }, undefined, function () { return (buffer = closingSubscriber = null); })); + }); +} +exports.bufferWhen = bufferWhen; +//# sourceMappingURL=bufferWhen.js.map /***/ }), -/***/ 77520: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 37765: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const compare = __nccwpck_require__(44309) -const lte = (a, b, loose) => compare(a, b, loose) <= 0 -module.exports = lte +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.catchError = void 0; +var innerFrom_1 = __nccwpck_require__(57105); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var lift_1 = __nccwpck_require__(38669); +function catchError(selector) { + return lift_1.operate(function (source, subscriber) { + var innerSub = null; + var syncUnsub = false; + var handledResult; + innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, undefined, function (err) { + handledResult = innerFrom_1.innerFrom(selector(err, catchError(selector)(source))); + if (innerSub) { + innerSub.unsubscribe(); + innerSub = null; + handledResult.subscribe(subscriber); + } + else { + syncUnsub = true; + } + })); + if (syncUnsub) { + innerSub.unsubscribe(); + innerSub = null; + handledResult.subscribe(subscriber); + } + }); +} +exports.catchError = catchError; +//# sourceMappingURL=catchError.js.map /***/ }), -/***/ 76688: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 88817: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const SemVer = __nccwpck_require__(48088) -const major = (a, loose) => new SemVer(a, loose).major -module.exports = major +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.combineAll = void 0; +var combineLatestAll_1 = __nccwpck_require__(91063); +exports.combineAll = combineLatestAll_1.combineLatestAll; +//# sourceMappingURL=combineAll.js.map /***/ }), -/***/ 38447: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 96008: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -const SemVer = __nccwpck_require__(48088) -const minor = (a, loose) => new SemVer(a, loose).minor -module.exports = minor +"use strict"; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.combineLatest = void 0; +var combineLatest_1 = __nccwpck_require__(46843); +var lift_1 = __nccwpck_require__(38669); +var argsOrArgArray_1 = __nccwpck_require__(18824); +var mapOneOrManyArgs_1 = __nccwpck_require__(78934); +var pipe_1 = __nccwpck_require__(49587); +var args_1 = __nccwpck_require__(34890); +function combineLatest() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var resultSelector = args_1.popResultSelector(args); + return resultSelector + ? pipe_1.pipe(combineLatest.apply(void 0, __spreadArray([], __read(args))), mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) + : lift_1.operate(function (source, subscriber) { + combineLatest_1.combineLatestInit(__spreadArray([source], __read(argsOrArgArray_1.argsOrArgArray(args))))(subscriber); + }); +} +exports.combineLatest = combineLatest; +//# sourceMappingURL=combineLatest.js.map /***/ }), -/***/ 6017: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 91063: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const compare = __nccwpck_require__(44309) -const neq = (a, b, loose) => compare(a, b, loose) !== 0 -module.exports = neq +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.combineLatestAll = void 0; +var combineLatest_1 = __nccwpck_require__(46843); +var joinAllInternals_1 = __nccwpck_require__(29341); +function combineLatestAll(project) { + return joinAllInternals_1.joinAllInternals(combineLatest_1.combineLatest, project); +} +exports.combineLatestAll = combineLatestAll; +//# sourceMappingURL=combineLatestAll.js.map /***/ }), -/***/ 75925: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 19044: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -const SemVer = __nccwpck_require__(48088) -const parse = (version, options, throwErrors = false) => { - if (version instanceof SemVer) { - return version - } - try { - return new SemVer(version, options) - } catch (er) { - if (!throwErrors) { - return null +"use strict"; + +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } - throw er - } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.combineLatestWith = void 0; +var combineLatest_1 = __nccwpck_require__(96008); +function combineLatestWith() { + var otherSources = []; + for (var _i = 0; _i < arguments.length; _i++) { + otherSources[_i] = arguments[_i]; + } + return combineLatest_1.combineLatest.apply(void 0, __spreadArray([], __read(otherSources))); } - -module.exports = parse - +exports.combineLatestWith = combineLatestWith; +//# sourceMappingURL=combineLatestWith.js.map /***/ }), -/***/ 42866: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 18500: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -const SemVer = __nccwpck_require__(48088) -const patch = (a, loose) => new SemVer(a, loose).patch -module.exports = patch +"use strict"; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.concat = void 0; +var lift_1 = __nccwpck_require__(38669); +var concatAll_1 = __nccwpck_require__(88049); +var args_1 = __nccwpck_require__(34890); +var from_1 = __nccwpck_require__(18309); +function concat() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var scheduler = args_1.popScheduler(args); + return lift_1.operate(function (source, subscriber) { + concatAll_1.concatAll()(from_1.from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber); + }); +} +exports.concat = concat; +//# sourceMappingURL=concat.js.map /***/ }), -/***/ 24016: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 88049: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const parse = __nccwpck_require__(75925) -const prerelease = (version, options) => { - const parsed = parse(version, options) - return (parsed && parsed.prerelease.length) ? parsed.prerelease : null -} -module.exports = prerelease +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.concatAll = void 0; +var mergeAll_1 = __nccwpck_require__(2057); +function concatAll() { + return mergeAll_1.mergeAll(1); +} +exports.concatAll = concatAll; +//# sourceMappingURL=concatAll.js.map /***/ }), -/***/ 76417: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 19130: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const compare = __nccwpck_require__(44309) -const rcompare = (a, b, loose) => compare(b, a, loose) -module.exports = rcompare +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.concatMap = void 0; +var mergeMap_1 = __nccwpck_require__(69914); +var isFunction_1 = __nccwpck_require__(67206); +function concatMap(project, resultSelector) { + return isFunction_1.isFunction(resultSelector) ? mergeMap_1.mergeMap(project, resultSelector, 1) : mergeMap_1.mergeMap(project, 1); +} +exports.concatMap = concatMap; +//# sourceMappingURL=concatMap.js.map /***/ }), -/***/ 8701: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 61596: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const compareBuild = __nccwpck_require__(92156) -const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose)) -module.exports = rsort +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.concatMapTo = void 0; +var concatMap_1 = __nccwpck_require__(19130); +var isFunction_1 = __nccwpck_require__(67206); +function concatMapTo(innerObservable, resultSelector) { + return isFunction_1.isFunction(resultSelector) ? concatMap_1.concatMap(function () { return innerObservable; }, resultSelector) : concatMap_1.concatMap(function () { return innerObservable; }); +} +exports.concatMapTo = concatMapTo; +//# sourceMappingURL=concatMapTo.js.map /***/ }), -/***/ 6055: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 97998: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -const Range = __nccwpck_require__(9828) -const satisfies = (version, range, options) => { - try { - range = new Range(range, options) - } catch (er) { - return false - } - return range.test(version) -} -module.exports = satisfies +"use strict"; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.concatWith = void 0; +var concat_1 = __nccwpck_require__(18500); +function concatWith() { + var otherSources = []; + for (var _i = 0; _i < arguments.length; _i++) { + otherSources[_i] = arguments[_i]; + } + return concat_1.concat.apply(void 0, __spreadArray([], __read(otherSources))); +} +exports.concatWith = concatWith; +//# sourceMappingURL=concatWith.js.map /***/ }), -/***/ 61426: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 51101: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const compareBuild = __nccwpck_require__(92156) -const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose)) -module.exports = sort +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.connect = void 0; +var Subject_1 = __nccwpck_require__(49944); +var innerFrom_1 = __nccwpck_require__(57105); +var lift_1 = __nccwpck_require__(38669); +var fromSubscribable_1 = __nccwpck_require__(66513); +var DEFAULT_CONFIG = { + connector: function () { return new Subject_1.Subject(); }, +}; +function connect(selector, config) { + if (config === void 0) { config = DEFAULT_CONFIG; } + var connector = config.connector; + return lift_1.operate(function (source, subscriber) { + var subject = connector(); + innerFrom_1.innerFrom(selector(fromSubscribable_1.fromSubscribable(subject))).subscribe(subscriber); + subscriber.add(source.subscribe(subject)); + }); +} +exports.connect = connect; +//# sourceMappingURL=connect.js.map /***/ }), -/***/ 19601: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 36571: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const parse = __nccwpck_require__(75925) -const valid = (version, options) => { - const v = parse(version, options) - return v ? v.version : null -} -module.exports = valid +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.count = void 0; +var reduce_1 = __nccwpck_require__(62087); +function count(predicate) { + return reduce_1.reduce(function (total, value, i) { return (!predicate || predicate(value, i) ? total + 1 : total); }, 0); +} +exports.count = count; +//# sourceMappingURL=count.js.map /***/ }), -/***/ 11383: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 19348: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// just pre-load all the stuff that index.js lazily exports -const internalRe = __nccwpck_require__(9523) -const constants = __nccwpck_require__(42293) -const SemVer = __nccwpck_require__(48088) -const identifiers = __nccwpck_require__(92463) -const parse = __nccwpck_require__(75925) -const valid = __nccwpck_require__(19601) -const clean = __nccwpck_require__(48848) -const inc = __nccwpck_require__(30900) -const diff = __nccwpck_require__(64297) -const major = __nccwpck_require__(76688) -const minor = __nccwpck_require__(38447) -const patch = __nccwpck_require__(42866) -const prerelease = __nccwpck_require__(24016) -const compare = __nccwpck_require__(44309) -const rcompare = __nccwpck_require__(76417) -const compareLoose = __nccwpck_require__(62804) -const compareBuild = __nccwpck_require__(92156) -const sort = __nccwpck_require__(61426) -const rsort = __nccwpck_require__(8701) -const gt = __nccwpck_require__(84123) -const lt = __nccwpck_require__(80194) -const eq = __nccwpck_require__(91898) -const neq = __nccwpck_require__(6017) -const gte = __nccwpck_require__(15522) -const lte = __nccwpck_require__(77520) -const cmp = __nccwpck_require__(75098) -const coerce = __nccwpck_require__(13466) -const Comparator = __nccwpck_require__(91532) -const Range = __nccwpck_require__(9828) -const satisfies = __nccwpck_require__(6055) -const toComparators = __nccwpck_require__(52706) -const maxSatisfying = __nccwpck_require__(20579) -const minSatisfying = __nccwpck_require__(10832) -const minVersion = __nccwpck_require__(34179) -const validRange = __nccwpck_require__(2098) -const outside = __nccwpck_require__(60420) -const gtr = __nccwpck_require__(9380) -const ltr = __nccwpck_require__(33323) -const intersects = __nccwpck_require__(27008) -const simplifyRange = __nccwpck_require__(56561) -const subset = __nccwpck_require__(7863) -module.exports = { - parse, - valid, - clean, - inc, - diff, - major, - minor, - patch, - prerelease, - compare, - rcompare, - compareLoose, - compareBuild, - sort, - rsort, - gt, - lt, - eq, - neq, - gte, - lte, - cmp, - coerce, - Comparator, - Range, - satisfies, - toComparators, - maxSatisfying, - minSatisfying, - minVersion, - validRange, - outside, - gtr, - ltr, - intersects, - simplifyRange, - subset, - SemVer, - re: internalRe.re, - src: internalRe.src, - tokens: internalRe.t, - SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION, - RELEASE_TYPES: constants.RELEASE_TYPES, - compareIdentifiers: identifiers.compareIdentifiers, - rcompareIdentifiers: identifiers.rcompareIdentifiers, -} +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.debounce = void 0; +var lift_1 = __nccwpck_require__(38669); +var noop_1 = __nccwpck_require__(11642); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var innerFrom_1 = __nccwpck_require__(57105); +function debounce(durationSelector) { + return lift_1.operate(function (source, subscriber) { + var hasValue = false; + var lastValue = null; + var durationSubscriber = null; + var emit = function () { + durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); + durationSubscriber = null; + if (hasValue) { + hasValue = false; + var value = lastValue; + lastValue = null; + subscriber.next(value); + } + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); + hasValue = true; + lastValue = value; + durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, emit, noop_1.noop); + innerFrom_1.innerFrom(durationSelector(value)).subscribe(durationSubscriber); + }, function () { + emit(); + subscriber.complete(); + }, undefined, function () { + lastValue = durationSubscriber = null; + })); + }); +} +exports.debounce = debounce; +//# sourceMappingURL=debounce.js.map /***/ }), -/***/ 42293: -/***/ ((module) => { +/***/ 62379: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// Note: this is the semver.org version of the spec that it implements -// Not necessarily the package version of this code. -const SEMVER_SPEC_VERSION = '2.0.0' +"use strict"; -const MAX_LENGTH = 256 -const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || -/* istanbul ignore next */ 9007199254740991 +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.debounceTime = void 0; +var async_1 = __nccwpck_require__(76072); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function debounceTime(dueTime, scheduler) { + if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } + return lift_1.operate(function (source, subscriber) { + var activeTask = null; + var lastValue = null; + var lastTime = null; + var emit = function () { + if (activeTask) { + activeTask.unsubscribe(); + activeTask = null; + var value = lastValue; + lastValue = null; + subscriber.next(value); + } + }; + function emitWhenIdle() { + var targetTime = lastTime + dueTime; + var now = scheduler.now(); + if (now < targetTime) { + activeTask = this.schedule(undefined, targetTime - now); + subscriber.add(activeTask); + return; + } + emit(); + } + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + lastValue = value; + lastTime = scheduler.now(); + if (!activeTask) { + activeTask = scheduler.schedule(emitWhenIdle, dueTime); + subscriber.add(activeTask); + } + }, function () { + emit(); + subscriber.complete(); + }, undefined, function () { + lastValue = activeTask = null; + })); + }); +} +exports.debounceTime = debounceTime; +//# sourceMappingURL=debounceTime.js.map -// Max safe segment length for coercion. -const MAX_SAFE_COMPONENT_LENGTH = 16 +/***/ }), -// Max safe length for a build identifier. The max length minus 6 characters for -// the shortest version with a build 0.0.0+BUILD. -const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6 +/***/ 30621: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const RELEASE_TYPES = [ - 'major', - 'premajor', - 'minor', - 'preminor', - 'patch', - 'prepatch', - 'prerelease', -] +"use strict"; -module.exports = { - MAX_LENGTH, - MAX_SAFE_COMPONENT_LENGTH, - MAX_SAFE_BUILD_LENGTH, - MAX_SAFE_INTEGER, - RELEASE_TYPES, - SEMVER_SPEC_VERSION, - FLAG_INCLUDE_PRERELEASE: 0b001, - FLAG_LOOSE: 0b010, +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.defaultIfEmpty = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function defaultIfEmpty(defaultValue) { + return lift_1.operate(function (source, subscriber) { + var hasValue = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + hasValue = true; + subscriber.next(value); + }, function () { + if (!hasValue) { + subscriber.next(defaultValue); + } + subscriber.complete(); + })); + }); } - +exports.defaultIfEmpty = defaultIfEmpty; +//# sourceMappingURL=defaultIfEmpty.js.map /***/ }), -/***/ 50427: -/***/ ((module) => { - -const debug = ( - typeof process === 'object' && - process.env && - process.env.NODE_DEBUG && - /\bsemver\b/i.test(process.env.NODE_DEBUG) -) ? (...args) => console.error('SEMVER', ...args) - : () => {} +/***/ 99818: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -module.exports = debug +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.delay = void 0; +var async_1 = __nccwpck_require__(76072); +var delayWhen_1 = __nccwpck_require__(16994); +var timer_1 = __nccwpck_require__(59757); +function delay(due, scheduler) { + if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } + var duration = timer_1.timer(due, scheduler); + return delayWhen_1.delayWhen(function () { return duration; }); +} +exports.delay = delay; +//# sourceMappingURL=delay.js.map /***/ }), -/***/ 92463: -/***/ ((module) => { - -const numeric = /^[0-9]+$/ -const compareIdentifiers = (a, b) => { - const anum = numeric.test(a) - const bnum = numeric.test(b) +/***/ 16994: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (anum && bnum) { - a = +a - b = +b - } +"use strict"; - return a === b ? 0 - : (anum && !bnum) ? -1 - : (bnum && !anum) ? 1 - : a < b ? -1 - : 1 +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.delayWhen = void 0; +var concat_1 = __nccwpck_require__(4675); +var take_1 = __nccwpck_require__(33698); +var ignoreElements_1 = __nccwpck_require__(31062); +var mapTo_1 = __nccwpck_require__(52300); +var mergeMap_1 = __nccwpck_require__(69914); +var innerFrom_1 = __nccwpck_require__(57105); +function delayWhen(delayDurationSelector, subscriptionDelay) { + if (subscriptionDelay) { + return function (source) { + return concat_1.concat(subscriptionDelay.pipe(take_1.take(1), ignoreElements_1.ignoreElements()), source.pipe(delayWhen(delayDurationSelector))); + }; + } + return mergeMap_1.mergeMap(function (value, index) { return innerFrom_1.innerFrom(delayDurationSelector(value, index)).pipe(take_1.take(1), mapTo_1.mapTo(value)); }); } +exports.delayWhen = delayWhen; +//# sourceMappingURL=delayWhen.js.map -const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a) +/***/ }), -module.exports = { - compareIdentifiers, - rcompareIdentifiers, -} +/***/ 95338: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dematerialize = void 0; +var Notification_1 = __nccwpck_require__(12241); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function dematerialize() { + return lift_1.operate(function (source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (notification) { return Notification_1.observeNotification(notification, subscriber); })); + }); +} +exports.dematerialize = dematerialize; +//# sourceMappingURL=dematerialize.js.map /***/ }), -/***/ 40785: -/***/ ((module) => { - -// parse out just the options we care about -const looseOption = Object.freeze({ loose: true }) -const emptyOpts = Object.freeze({ }) -const parseOptions = options => { - if (!options) { - return emptyOpts - } +/***/ 52594: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (typeof options !== 'object') { - return looseOption - } +"use strict"; - return options +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.distinct = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var noop_1 = __nccwpck_require__(11642); +var innerFrom_1 = __nccwpck_require__(57105); +function distinct(keySelector, flushes) { + return lift_1.operate(function (source, subscriber) { + var distinctKeys = new Set(); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + var key = keySelector ? keySelector(value) : value; + if (!distinctKeys.has(key)) { + distinctKeys.add(key); + subscriber.next(value); + } + })); + flushes && innerFrom_1.innerFrom(flushes).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { return distinctKeys.clear(); }, noop_1.noop)); + }); } -module.exports = parseOptions - +exports.distinct = distinct; +//# sourceMappingURL=distinct.js.map /***/ }), -/***/ 9523: -/***/ ((module, exports, __nccwpck_require__) => { +/***/ 20632: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const { - MAX_SAFE_COMPONENT_LENGTH, - MAX_SAFE_BUILD_LENGTH, - MAX_LENGTH, -} = __nccwpck_require__(42293) -const debug = __nccwpck_require__(50427) -exports = module.exports = {} +"use strict"; -// The actual regexps go on exports.re -const re = exports.re = [] -const safeRe = exports.safeRe = [] -const src = exports.src = [] -const t = exports.t = {} -let R = 0 +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.distinctUntilChanged = void 0; +var identity_1 = __nccwpck_require__(60283); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function distinctUntilChanged(comparator, keySelector) { + if (keySelector === void 0) { keySelector = identity_1.identity; } + comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare; + return lift_1.operate(function (source, subscriber) { + var previousKey; + var first = true; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + var currentKey = keySelector(value); + if (first || !comparator(previousKey, currentKey)) { + first = false; + previousKey = currentKey; + subscriber.next(value); + } + })); + }); +} +exports.distinctUntilChanged = distinctUntilChanged; +function defaultCompare(a, b) { + return a === b; +} +//# sourceMappingURL=distinctUntilChanged.js.map -const LETTERDASHNUMBER = '[a-zA-Z0-9-]' +/***/ }), -// Replace some greedy regex tokens to prevent regex dos issues. These regex are -// used internally via the safeRe object since all inputs in this library get -// normalized first to trim and collapse all extra whitespace. The original -// regexes are exported for userland consumption and lower level usage. A -// future breaking change could export the safer regex only with a note that -// all input should have extra whitespace removed. -const safeRegexReplacements = [ - ['\\s', 1], - ['\\d', MAX_LENGTH], - [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH], -] +/***/ 13809: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const makeSafeRegex = (value) => { - for (const [token, max] of safeRegexReplacements) { - value = value - .split(`${token}*`).join(`${token}{0,${max}}`) - .split(`${token}+`).join(`${token}{1,${max}}`) - } - return value -} +"use strict"; -const createToken = (name, value, isGlobal) => { - const safe = makeSafeRegex(value) - const index = R++ - debug(name, index, value) - t[name] = index - src[index] = value - re[index] = new RegExp(value, isGlobal ? 'g' : undefined) - safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.distinctUntilKeyChanged = void 0; +var distinctUntilChanged_1 = __nccwpck_require__(20632); +function distinctUntilKeyChanged(key, compare) { + return distinctUntilChanged_1.distinctUntilChanged(function (x, y) { return compare ? compare(x[key], y[key]) : x[key] === y[key]; }); } +exports.distinctUntilKeyChanged = distinctUntilKeyChanged; +//# sourceMappingURL=distinctUntilKeyChanged.js.map -// The following Regular Expressions can be used for tokenizing, -// validating, and parsing SemVer version strings. +/***/ }), -// ## Numeric Identifier -// A single `0`, or a non-zero digit followed by zero or more digits. +/***/ 73381: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*') -createToken('NUMERICIDENTIFIERLOOSE', '\\d+') +"use strict"; -// ## Non-numeric Identifier -// Zero or more digits, followed by a letter or hyphen, and then zero or -// more letters, digits, or hyphens. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.elementAt = void 0; +var ArgumentOutOfRangeError_1 = __nccwpck_require__(49796); +var filter_1 = __nccwpck_require__(36894); +var throwIfEmpty_1 = __nccwpck_require__(91566); +var defaultIfEmpty_1 = __nccwpck_require__(30621); +var take_1 = __nccwpck_require__(33698); +function elementAt(index, defaultValue) { + if (index < 0) { + throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError(); + } + var hasDefaultValue = arguments.length >= 2; + return function (source) { + return source.pipe(filter_1.filter(function (v, i) { return i === index; }), take_1.take(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function () { return new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError(); })); + }; +} +exports.elementAt = elementAt; +//# sourceMappingURL=elementAt.js.map -createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`) +/***/ }), -// ## Main Version -// Three dot-separated numeric identifiers. +/***/ 42961: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` + - `(${src[t.NUMERICIDENTIFIER]})\\.` + - `(${src[t.NUMERICIDENTIFIER]})`) +"use strict"; -createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + - `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + - `(${src[t.NUMERICIDENTIFIERLOOSE]})`) +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.endWith = void 0; +var concat_1 = __nccwpck_require__(4675); +var of_1 = __nccwpck_require__(72163); +function endWith() { + var values = []; + for (var _i = 0; _i < arguments.length; _i++) { + values[_i] = arguments[_i]; + } + return function (source) { return concat_1.concat(source, of_1.of.apply(void 0, __spreadArray([], __read(values)))); }; +} +exports.endWith = endWith; +//# sourceMappingURL=endWith.js.map -// ## Pre-release Version Identifier -// A numeric identifier, or a non-numeric identifier. +/***/ }), -createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER] -}|${src[t.NONNUMERICIDENTIFIER]})`) +/***/ 69559: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE] -}|${src[t.NONNUMERICIDENTIFIER]})`) +"use strict"; -// ## Pre-release Version -// Hyphen, followed by one or more dot-separated pre-release version -// identifiers. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.every = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function every(predicate, thisArg) { + return lift_1.operate(function (source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + if (!predicate.call(thisArg, value, index++, source)) { + subscriber.next(false); + subscriber.complete(); + } + }, function () { + subscriber.next(true); + subscriber.complete(); + })); + }); +} +exports.every = every; +//# sourceMappingURL=every.js.map -createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER] -}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`) +/***/ }), -createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE] -}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`) +/***/ 75686: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// ## Build Metadata Identifier -// Any combination of digits, letters, or hyphens. +"use strict"; -createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.exhaust = void 0; +var exhaustAll_1 = __nccwpck_require__(79777); +exports.exhaust = exhaustAll_1.exhaustAll; +//# sourceMappingURL=exhaust.js.map -// ## Build Metadata -// Plus sign, followed by one or more period-separated build metadata -// identifiers. +/***/ }), -createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER] -}(?:\\.${src[t.BUILDIDENTIFIER]})*))`) +/***/ 79777: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// ## Full Version String -// A main version, followed optionally by a pre-release version and -// build metadata. +"use strict"; -// Note that the only major, minor, patch, and pre-release sections of -// the version string are capturing groups. The build metadata is not a -// capturing group, because it should not ever be used in version -// comparison. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.exhaustAll = void 0; +var exhaustMap_1 = __nccwpck_require__(21527); +var identity_1 = __nccwpck_require__(60283); +function exhaustAll() { + return exhaustMap_1.exhaustMap(identity_1.identity); +} +exports.exhaustAll = exhaustAll; +//# sourceMappingURL=exhaustAll.js.map -createToken('FULLPLAIN', `v?${src[t.MAINVERSION] -}${src[t.PRERELEASE]}?${ - src[t.BUILD]}?`) +/***/ }), -createToken('FULL', `^${src[t.FULLPLAIN]}$`) +/***/ 21527: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. -// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty -// common in the npm registry. -createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE] -}${src[t.PRERELEASELOOSE]}?${ - src[t.BUILD]}?`) +"use strict"; -createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.exhaustMap = void 0; +var map_1 = __nccwpck_require__(5987); +var innerFrom_1 = __nccwpck_require__(57105); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function exhaustMap(project, resultSelector) { + if (resultSelector) { + return function (source) { + return source.pipe(exhaustMap(function (a, i) { return innerFrom_1.innerFrom(project(a, i)).pipe(map_1.map(function (b, ii) { return resultSelector(a, b, i, ii); })); })); + }; + } + return lift_1.operate(function (source, subscriber) { + var index = 0; + var innerSub = null; + var isComplete = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (outerValue) { + if (!innerSub) { + innerSub = OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, function () { + innerSub = null; + isComplete && subscriber.complete(); + }); + innerFrom_1.innerFrom(project(outerValue, index++)).subscribe(innerSub); + } + }, function () { + isComplete = true; + !innerSub && subscriber.complete(); + })); + }); +} +exports.exhaustMap = exhaustMap; +//# sourceMappingURL=exhaustMap.js.map -createToken('GTLT', '((?:<|>)?=?)') +/***/ }), -// Something like "2.*" or "1.2.x". -// Note that "x.x" is a valid xRange identifer, meaning "any version" -// Only the first item is strictly required. -createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`) -createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`) +/***/ 21585: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + - `(?:${src[t.PRERELEASE]})?${ - src[t.BUILD]}?` + - `)?)?`) +"use strict"; -createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + - `(?:${src[t.PRERELEASELOOSE]})?${ - src[t.BUILD]}?` + - `)?)?`) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.expand = void 0; +var lift_1 = __nccwpck_require__(38669); +var mergeInternals_1 = __nccwpck_require__(48246); +function expand(project, concurrent, scheduler) { + if (concurrent === void 0) { concurrent = Infinity; } + concurrent = (concurrent || 0) < 1 ? Infinity : concurrent; + return lift_1.operate(function (source, subscriber) { + return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent, undefined, true, scheduler); + }); +} +exports.expand = expand; +//# sourceMappingURL=expand.js.map -createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`) -createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`) +/***/ }), -// Coercion. -// Extract anything that could conceivably be a part of a valid semver -createToken('COERCE', `${'(^|[^\\d])' + - '(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` + - `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + - `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + - `(?:$|[^\\d])`) -createToken('COERCERTL', src[t.COERCE], true) +/***/ 36894: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// Tilde ranges. -// Meaning is "reasonably at or greater than" -createToken('LONETILDE', '(?:~>?)') +"use strict"; -createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true) -exports.tildeTrimReplace = '$1~' +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.filter = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function filter(predicate, thisArg) { + return lift_1.operate(function (source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return predicate.call(thisArg, value, index++) && subscriber.next(value); })); + }); +} +exports.filter = filter; +//# sourceMappingURL=filter.js.map -createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`) -createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`) +/***/ }), -// Caret ranges. -// Meaning is "at least and backwards compatible with" -createToken('LONECARET', '(?:\\^)') +/***/ 4013: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true) -exports.caretTrimReplace = '$1^' +"use strict"; -createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`) -createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.finalize = void 0; +var lift_1 = __nccwpck_require__(38669); +function finalize(callback) { + return lift_1.operate(function (source, subscriber) { + try { + source.subscribe(subscriber); + } + finally { + subscriber.add(callback); + } + }); +} +exports.finalize = finalize; +//# sourceMappingURL=finalize.js.map -// A simple gt/lt/eq thing, or just "" to indicate "any version" -createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`) -createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`) +/***/ }), -// An expression to strip any whitespace between the gtlt and the thing -// it modifies, so that `> 1.2.3` ==> `>1.2.3` -createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT] -}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true) -exports.comparatorTrimReplace = '$1$2$3' +/***/ 28981: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// Something like `1.2.3 - 1.2.4` -// Note that these all use the loose form, because they'll be -// checked against either the strict or loose comparator form -// later. -createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})` + - `\\s+-\\s+` + - `(${src[t.XRANGEPLAIN]})` + - `\\s*$`) +"use strict"; -createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})` + - `\\s+-\\s+` + - `(${src[t.XRANGEPLAINLOOSE]})` + - `\\s*$`) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createFind = exports.find = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function find(predicate, thisArg) { + return lift_1.operate(createFind(predicate, thisArg, 'value')); +} +exports.find = find; +function createFind(predicate, thisArg, emit) { + var findIndex = emit === 'index'; + return function (source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + var i = index++; + if (predicate.call(thisArg, value, i, source)) { + subscriber.next(findIndex ? i : value); + subscriber.complete(); + } + }, function () { + subscriber.next(findIndex ? -1 : undefined); + subscriber.complete(); + })); + }; +} +exports.createFind = createFind; +//# sourceMappingURL=find.js.map -// Star ranges basically just allow anything at all. -createToken('STAR', '(<|>)?=?\\s*\\*') -// >=0.0.0 is like a star -createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$') -createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$') +/***/ }), + +/***/ 92602: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.findIndex = void 0; +var lift_1 = __nccwpck_require__(38669); +var find_1 = __nccwpck_require__(28981); +function findIndex(predicate, thisArg) { + return lift_1.operate(find_1.createFind(predicate, thisArg, 'index')); +} +exports.findIndex = findIndex; +//# sourceMappingURL=findIndex.js.map /***/ }), -/***/ 81196: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 63345: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.first = void 0; +var EmptyError_1 = __nccwpck_require__(99391); +var filter_1 = __nccwpck_require__(36894); +var take_1 = __nccwpck_require__(33698); +var defaultIfEmpty_1 = __nccwpck_require__(30621); +var throwIfEmpty_1 = __nccwpck_require__(91566); +var identity_1 = __nccwpck_require__(60283); +function first(predicate, defaultValue) { + var hasDefaultValue = arguments.length >= 2; + return function (source) { + return source.pipe(predicate ? filter_1.filter(function (v, i) { return predicate(v, i, source); }) : identity_1.identity, take_1.take(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function () { return new EmptyError_1.EmptyError(); })); + }; +} +exports.first = first; +//# sourceMappingURL=first.js.map -// A linked list to keep track of recently-used-ness -const Yallist = __nccwpck_require__(40665) +/***/ }), -const MAX = Symbol('max') -const LENGTH = Symbol('length') -const LENGTH_CALCULATOR = Symbol('lengthCalculator') -const ALLOW_STALE = Symbol('allowStale') -const MAX_AGE = Symbol('maxAge') -const DISPOSE = Symbol('dispose') -const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet') -const LRU_LIST = Symbol('lruList') -const CACHE = Symbol('cache') -const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet') +/***/ 40186: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const naiveLength = () => 1 +"use strict"; -// lruList is a yallist where the head is the youngest -// item, and the tail is the oldest. the list contains the Hit -// objects as the entries. -// Each Hit object has a reference to its Yallist.Node. This -// never changes. -// -// cache is a Map (or PseudoMap) that matches the keys to -// the Yallist.Node object. -class LRUCache { - constructor (options) { - if (typeof options === 'number') - options = { max: options } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.flatMap = void 0; +var mergeMap_1 = __nccwpck_require__(69914); +exports.flatMap = mergeMap_1.mergeMap; +//# sourceMappingURL=flatMap.js.map - if (!options) - options = {} +/***/ }), - if (options.max && (typeof options.max !== 'number' || options.max < 0)) - throw new TypeError('max must be a non-negative number') - // Kind of weird to have a default max of Infinity, but oh well. - const max = this[MAX] = options.max || Infinity +/***/ 51650: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - const lc = options.length || naiveLength - this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc - this[ALLOW_STALE] = options.stale || false - if (options.maxAge && typeof options.maxAge !== 'number') - throw new TypeError('maxAge must be a number') - this[MAX_AGE] = options.maxAge || 0 - this[DISPOSE] = options.dispose - this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false - this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false - this.reset() - } +"use strict"; - // resize the cache when the max changes. - set max (mL) { - if (typeof mL !== 'number' || mL < 0) - throw new TypeError('max must be a non-negative number') +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.groupBy = void 0; +var Observable_1 = __nccwpck_require__(53014); +var innerFrom_1 = __nccwpck_require__(57105); +var Subject_1 = __nccwpck_require__(49944); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function groupBy(keySelector, elementOrOptions, duration, connector) { + return lift_1.operate(function (source, subscriber) { + var element; + if (!elementOrOptions || typeof elementOrOptions === 'function') { + element = elementOrOptions; + } + else { + (duration = elementOrOptions.duration, element = elementOrOptions.element, connector = elementOrOptions.connector); + } + var groups = new Map(); + var notify = function (cb) { + groups.forEach(cb); + cb(subscriber); + }; + var handleError = function (err) { return notify(function (consumer) { return consumer.error(err); }); }; + var activeGroups = 0; + var teardownAttempted = false; + var groupBySourceSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, function (value) { + try { + var key_1 = keySelector(value); + var group_1 = groups.get(key_1); + if (!group_1) { + groups.set(key_1, (group_1 = connector ? connector() : new Subject_1.Subject())); + var grouped = createGroupedObservable(key_1, group_1); + subscriber.next(grouped); + if (duration) { + var durationSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(group_1, function () { + group_1.complete(); + durationSubscriber_1 === null || durationSubscriber_1 === void 0 ? void 0 : durationSubscriber_1.unsubscribe(); + }, undefined, undefined, function () { return groups.delete(key_1); }); + groupBySourceSubscriber.add(innerFrom_1.innerFrom(duration(grouped)).subscribe(durationSubscriber_1)); + } + } + group_1.next(element ? element(value) : value); + } + catch (err) { + handleError(err); + } + }, function () { return notify(function (consumer) { return consumer.complete(); }); }, handleError, function () { return groups.clear(); }, function () { + teardownAttempted = true; + return activeGroups === 0; + }); + source.subscribe(groupBySourceSubscriber); + function createGroupedObservable(key, groupSubject) { + var result = new Observable_1.Observable(function (groupSubscriber) { + activeGroups++; + var innerSub = groupSubject.subscribe(groupSubscriber); + return function () { + innerSub.unsubscribe(); + --activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe(); + }; + }); + result.key = key; + return result; + } + }); +} +exports.groupBy = groupBy; +//# sourceMappingURL=groupBy.js.map - this[MAX] = mL || Infinity - trim(this) - } - get max () { - return this[MAX] - } +/***/ }), - set allowStale (allowStale) { - this[ALLOW_STALE] = !!allowStale - } - get allowStale () { - return this[ALLOW_STALE] - } +/***/ 31062: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - set maxAge (mA) { - if (typeof mA !== 'number') - throw new TypeError('maxAge must be a non-negative number') +"use strict"; - this[MAX_AGE] = mA - trim(this) - } - get maxAge () { - return this[MAX_AGE] - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ignoreElements = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var noop_1 = __nccwpck_require__(11642); +function ignoreElements() { + return lift_1.operate(function (source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, noop_1.noop)); + }); +} +exports.ignoreElements = ignoreElements; +//# sourceMappingURL=ignoreElements.js.map - // resize the cache when the lengthCalculator changes. - set lengthCalculator (lC) { - if (typeof lC !== 'function') - lC = naiveLength +/***/ }), - if (lC !== this[LENGTH_CALCULATOR]) { - this[LENGTH_CALCULATOR] = lC - this[LENGTH] = 0 - this[LRU_LIST].forEach(hit => { - hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) - this[LENGTH] += hit.length - }) - } - trim(this) - } - get lengthCalculator () { return this[LENGTH_CALCULATOR] } +/***/ 77722: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - get length () { return this[LENGTH] } - get itemCount () { return this[LRU_LIST].length } +"use strict"; - rforEach (fn, thisp) { - thisp = thisp || this - for (let walker = this[LRU_LIST].tail; walker !== null;) { - const prev = walker.prev - forEachStep(this, fn, walker, thisp) - walker = prev - } - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isEmpty = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function isEmpty() { + return lift_1.operate(function (source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { + subscriber.next(false); + subscriber.complete(); + }, function () { + subscriber.next(true); + subscriber.complete(); + })); + }); +} +exports.isEmpty = isEmpty; +//# sourceMappingURL=isEmpty.js.map - forEach (fn, thisp) { - thisp = thisp || this - for (let walker = this[LRU_LIST].head; walker !== null;) { - const next = walker.next - forEachStep(this, fn, walker, thisp) - walker = next - } - } +/***/ }), - keys () { - return this[LRU_LIST].toArray().map(k => k.key) - } +/***/ 29341: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - values () { - return this[LRU_LIST].toArray().map(k => k.value) - } +"use strict"; - reset () { - if (this[DISPOSE] && - this[LRU_LIST] && - this[LRU_LIST].length) { - this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value)) - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.joinAllInternals = void 0; +var identity_1 = __nccwpck_require__(60283); +var mapOneOrManyArgs_1 = __nccwpck_require__(78934); +var pipe_1 = __nccwpck_require__(49587); +var mergeMap_1 = __nccwpck_require__(69914); +var toArray_1 = __nccwpck_require__(35114); +function joinAllInternals(joinFn, project) { + return pipe_1.pipe(toArray_1.toArray(), mergeMap_1.mergeMap(function (sources) { return joinFn(sources); }), project ? mapOneOrManyArgs_1.mapOneOrManyArgs(project) : identity_1.identity); +} +exports.joinAllInternals = joinAllInternals; +//# sourceMappingURL=joinAllInternals.js.map - this[CACHE] = new Map() // hash of items by key - this[LRU_LIST] = new Yallist() // list of items in order of use recency - this[LENGTH] = 0 // length of items in the list - } +/***/ }), - dump () { - return this[LRU_LIST].map(hit => - isStale(this, hit) ? false : { - k: hit.key, - v: hit.value, - e: hit.now + (hit.maxAge || 0) - }).toArray().filter(h => h) - } +/***/ 46831: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - dumpLru () { - return this[LRU_LIST] - } +"use strict"; - set (key, value, maxAge) { - maxAge = maxAge || this[MAX_AGE] +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.last = void 0; +var EmptyError_1 = __nccwpck_require__(99391); +var filter_1 = __nccwpck_require__(36894); +var takeLast_1 = __nccwpck_require__(65041); +var throwIfEmpty_1 = __nccwpck_require__(91566); +var defaultIfEmpty_1 = __nccwpck_require__(30621); +var identity_1 = __nccwpck_require__(60283); +function last(predicate, defaultValue) { + var hasDefaultValue = arguments.length >= 2; + return function (source) { + return source.pipe(predicate ? filter_1.filter(function (v, i) { return predicate(v, i, source); }) : identity_1.identity, takeLast_1.takeLast(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function () { return new EmptyError_1.EmptyError(); })); + }; +} +exports.last = last; +//# sourceMappingURL=last.js.map - if (maxAge && typeof maxAge !== 'number') - throw new TypeError('maxAge must be a number') +/***/ }), - const now = maxAge ? Date.now() : 0 - const len = this[LENGTH_CALCULATOR](value, key) +/***/ 5987: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (this[CACHE].has(key)) { - if (len > this[MAX]) { - del(this, this[CACHE].get(key)) - return false - } +"use strict"; - const node = this[CACHE].get(key) - const item = node.value +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.map = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function map(project, thisArg) { + return lift_1.operate(function (source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + subscriber.next(project.call(thisArg, value, index++)); + })); + }); +} +exports.map = map; +//# sourceMappingURL=map.js.map - // dispose of the old one before overwriting - // split out into 2 ifs for better coverage tracking - if (this[DISPOSE]) { - if (!this[NO_DISPOSE_ON_SET]) - this[DISPOSE](key, item.value) - } +/***/ }), - item.now = now - item.maxAge = maxAge - item.value = value - this[LENGTH] += len - item.length - item.length = len - this.get(key) - trim(this) - return true - } +/***/ 52300: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - const hit = new Entry(key, value, len, now, maxAge) +"use strict"; - // oversized objects fall out of cache automatically. - if (hit.length > this[MAX]) { - if (this[DISPOSE]) - this[DISPOSE](key, value) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.mapTo = void 0; +var map_1 = __nccwpck_require__(5987); +function mapTo(value) { + return map_1.map(function () { return value; }); +} +exports.mapTo = mapTo; +//# sourceMappingURL=mapTo.js.map - return false - } +/***/ }), - this[LENGTH] += hit.length - this[LRU_LIST].unshift(hit) - this[CACHE].set(key, this[LRU_LIST].head) - trim(this) - return true - } +/***/ 67108: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - has (key) { - if (!this[CACHE].has(key)) return false - const hit = this[CACHE].get(key).value - return !isStale(this, hit) - } +"use strict"; - get (key) { - return get(this, key, true) - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.materialize = void 0; +var Notification_1 = __nccwpck_require__(12241); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function materialize() { + return lift_1.operate(function (source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + subscriber.next(Notification_1.Notification.createNext(value)); + }, function () { + subscriber.next(Notification_1.Notification.createComplete()); + subscriber.complete(); + }, function (err) { + subscriber.next(Notification_1.Notification.createError(err)); + subscriber.complete(); + })); + }); +} +exports.materialize = materialize; +//# sourceMappingURL=materialize.js.map - peek (key) { - return get(this, key, false) - } +/***/ }), - pop () { - const node = this[LRU_LIST].tail - if (!node) - return null +/***/ 17314: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - del(this, node) - return node.value - } +"use strict"; - del (key) { - del(this, this[CACHE].get(key)) - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.max = void 0; +var reduce_1 = __nccwpck_require__(62087); +var isFunction_1 = __nccwpck_require__(67206); +function max(comparer) { + return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function (x, y) { return (comparer(x, y) > 0 ? x : y); } : function (x, y) { return (x > y ? x : y); }); +} +exports.max = max; +//# sourceMappingURL=max.js.map - load (arr) { - // reset the cache - this.reset() +/***/ }), - const now = Date.now() - // A previous serialized cache has the most recent items first - for (let l = arr.length - 1; l >= 0; l--) { - const hit = arr[l] - const expiresAt = hit.e || 0 - if (expiresAt === 0) - // the item was created without expiration in a non aged cache - this.set(hit.k, hit.v) - else { - const maxAge = expiresAt - now - // dont add already expired items - if (maxAge > 0) { - this.set(hit.k, hit.v, maxAge) - } - } - } - } +/***/ 39510: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - prune () { - this[CACHE].forEach((value, key) => get(this, key, false)) - } -} +"use strict"; -const get = (self, key, doUse) => { - const node = self[CACHE].get(key) - if (node) { - const hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) - return undefined - } else { - if (doUse) { - if (self[UPDATE_AGE_ON_GET]) - node.value.now = Date.now() - self[LRU_LIST].unshiftNode(node) - } +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } - return hit.value - } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.merge = void 0; +var lift_1 = __nccwpck_require__(38669); +var argsOrArgArray_1 = __nccwpck_require__(18824); +var mergeAll_1 = __nccwpck_require__(2057); +var args_1 = __nccwpck_require__(34890); +var from_1 = __nccwpck_require__(18309); +function merge() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var scheduler = args_1.popScheduler(args); + var concurrent = args_1.popNumber(args, Infinity); + args = argsOrArgArray_1.argsOrArgArray(args); + return lift_1.operate(function (source, subscriber) { + mergeAll_1.mergeAll(concurrent)(from_1.from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber); + }); } +exports.merge = merge; +//# sourceMappingURL=merge.js.map -const isStale = (self, hit) => { - if (!hit || (!hit.maxAge && !self[MAX_AGE])) - return false +/***/ }), - const diff = Date.now() - hit.now - return hit.maxAge ? diff > hit.maxAge - : self[MAX_AGE] && (diff > self[MAX_AGE]) -} +/***/ 2057: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const trim = self => { - if (self[LENGTH] > self[MAX]) { - for (let walker = self[LRU_LIST].tail; - self[LENGTH] > self[MAX] && walker !== null;) { - // We know that we're about to delete this one, and also - // what the next least recently used key will be, so just - // go ahead and set it now. - const prev = walker.prev - del(self, walker) - walker = prev - } - } +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.mergeAll = void 0; +var mergeMap_1 = __nccwpck_require__(69914); +var identity_1 = __nccwpck_require__(60283); +function mergeAll(concurrent) { + if (concurrent === void 0) { concurrent = Infinity; } + return mergeMap_1.mergeMap(identity_1.identity, concurrent); } +exports.mergeAll = mergeAll; +//# sourceMappingURL=mergeAll.js.map -const del = (self, node) => { - if (node) { - const hit = node.value - if (self[DISPOSE]) - self[DISPOSE](hit.key, hit.value) +/***/ }), - self[LENGTH] -= hit.length - self[CACHE].delete(hit.key) - self[LRU_LIST].removeNode(node) - } -} +/***/ 48246: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -class Entry { - constructor (key, value, length, now, maxAge) { - this.key = key - this.value = value - this.length = length - this.now = now - this.maxAge = maxAge || 0 - } -} +"use strict"; -const forEachStep = (self, fn, node, thisp) => { - let hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) - hit = undefined - } - if (hit) - fn.call(thisp, hit.value, hit.key, self) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.mergeInternals = void 0; +var innerFrom_1 = __nccwpck_require__(57105); +var executeSchedule_1 = __nccwpck_require__(82877); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) { + var buffer = []; + var active = 0; + var index = 0; + var isComplete = false; + var checkComplete = function () { + if (isComplete && !buffer.length && !active) { + subscriber.complete(); + } + }; + var outerNext = function (value) { return (active < concurrent ? doInnerSub(value) : buffer.push(value)); }; + var doInnerSub = function (value) { + expand && subscriber.next(value); + active++; + var innerComplete = false; + innerFrom_1.innerFrom(project(value, index++)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (innerValue) { + onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue); + if (expand) { + outerNext(innerValue); + } + else { + subscriber.next(innerValue); + } + }, function () { + innerComplete = true; + }, undefined, function () { + if (innerComplete) { + try { + active--; + var _loop_1 = function () { + var bufferedValue = buffer.shift(); + if (innerSubScheduler) { + executeSchedule_1.executeSchedule(subscriber, innerSubScheduler, function () { return doInnerSub(bufferedValue); }); + } + else { + doInnerSub(bufferedValue); + } + }; + while (buffer.length && active < concurrent) { + _loop_1(); + } + checkComplete(); + } + catch (err) { + subscriber.error(err); + } + } + })); + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, outerNext, function () { + isComplete = true; + checkComplete(); + })); + return function () { + additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer(); + }; } +exports.mergeInternals = mergeInternals; +//# sourceMappingURL=mergeInternals.js.map -module.exports = LRUCache +/***/ }), + +/***/ 69914: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.mergeMap = void 0; +var map_1 = __nccwpck_require__(5987); +var innerFrom_1 = __nccwpck_require__(57105); +var lift_1 = __nccwpck_require__(38669); +var mergeInternals_1 = __nccwpck_require__(48246); +var isFunction_1 = __nccwpck_require__(67206); +function mergeMap(project, resultSelector, concurrent) { + if (concurrent === void 0) { concurrent = Infinity; } + if (isFunction_1.isFunction(resultSelector)) { + return mergeMap(function (a, i) { return map_1.map(function (b, ii) { return resultSelector(a, b, i, ii); })(innerFrom_1.innerFrom(project(a, i))); }, concurrent); + } + else if (typeof resultSelector === 'number') { + concurrent = resultSelector; + } + return lift_1.operate(function (source, subscriber) { return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent); }); +} +exports.mergeMap = mergeMap; +//# sourceMappingURL=mergeMap.js.map /***/ }), -/***/ 9380: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 49151: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// Determine if version is greater than all the versions possible in the range. -const outside = __nccwpck_require__(60420) -const gtr = (version, range, options) => outside(version, range, '>', options) -module.exports = gtr +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.mergeMapTo = void 0; +var mergeMap_1 = __nccwpck_require__(69914); +var isFunction_1 = __nccwpck_require__(67206); +function mergeMapTo(innerObservable, resultSelector, concurrent) { + if (concurrent === void 0) { concurrent = Infinity; } + if (isFunction_1.isFunction(resultSelector)) { + return mergeMap_1.mergeMap(function () { return innerObservable; }, resultSelector, concurrent); + } + if (typeof resultSelector === 'number') { + concurrent = resultSelector; + } + return mergeMap_1.mergeMap(function () { return innerObservable; }, concurrent); +} +exports.mergeMapTo = mergeMapTo; +//# sourceMappingURL=mergeMapTo.js.map /***/ }), -/***/ 27008: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 11519: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const Range = __nccwpck_require__(9828) -const intersects = (r1, r2, options) => { - r1 = new Range(r1, options) - r2 = new Range(r2, options) - return r1.intersects(r2, options) -} -module.exports = intersects +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.mergeScan = void 0; +var lift_1 = __nccwpck_require__(38669); +var mergeInternals_1 = __nccwpck_require__(48246); +function mergeScan(accumulator, seed, concurrent) { + if (concurrent === void 0) { concurrent = Infinity; } + return lift_1.operate(function (source, subscriber) { + var state = seed; + return mergeInternals_1.mergeInternals(source, subscriber, function (value, index) { return accumulator(state, value, index); }, concurrent, function (value) { + state = value; + }, false, undefined, function () { return (state = null); }); + }); +} +exports.mergeScan = mergeScan; +//# sourceMappingURL=mergeScan.js.map /***/ }), -/***/ 33323: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 31564: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -const outside = __nccwpck_require__(60420) -// Determine if version is less than all the versions possible in the range -const ltr = (version, range, options) => outside(version, range, '<', options) -module.exports = ltr +"use strict"; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.mergeWith = void 0; +var merge_1 = __nccwpck_require__(39510); +function mergeWith() { + var otherSources = []; + for (var _i = 0; _i < arguments.length; _i++) { + otherSources[_i] = arguments[_i]; + } + return merge_1.merge.apply(void 0, __spreadArray([], __read(otherSources))); +} +exports.mergeWith = mergeWith; +//# sourceMappingURL=mergeWith.js.map /***/ }), -/***/ 20579: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 87641: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const SemVer = __nccwpck_require__(48088) -const Range = __nccwpck_require__(9828) +"use strict"; -const maxSatisfying = (versions, range, options) => { - let max = null - let maxSV = null - let rangeObj = null - try { - rangeObj = new Range(range, options) - } catch (er) { - return null - } - versions.forEach((v) => { - if (rangeObj.test(v)) { - // satisfies(v, range, options) - if (!max || maxSV.compare(v) === -1) { - // compare(max, v, true) - max = v - maxSV = new SemVer(max, options) - } - } - }) - return max +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.min = void 0; +var reduce_1 = __nccwpck_require__(62087); +var isFunction_1 = __nccwpck_require__(67206); +function min(comparer) { + return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function (x, y) { return (comparer(x, y) < 0 ? x : y); } : function (x, y) { return (x < y ? x : y); }); } -module.exports = maxSatisfying - +exports.min = min; +//# sourceMappingURL=min.js.map /***/ }), -/***/ 10832: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 65457: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const SemVer = __nccwpck_require__(48088) -const Range = __nccwpck_require__(9828) -const minSatisfying = (versions, range, options) => { - let min = null - let minSV = null - let rangeObj = null - try { - rangeObj = new Range(range, options) - } catch (er) { - return null - } - versions.forEach((v) => { - if (rangeObj.test(v)) { - // satisfies(v, range, options) - if (!min || minSV.compare(v) === 1) { - // compare(min, v, true) - min = v - minSV = new SemVer(min, options) - } +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.multicast = void 0; +var ConnectableObservable_1 = __nccwpck_require__(30420); +var isFunction_1 = __nccwpck_require__(67206); +var connect_1 = __nccwpck_require__(51101); +function multicast(subjectOrSubjectFactory, selector) { + var subjectFactory = isFunction_1.isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function () { return subjectOrSubjectFactory; }; + if (isFunction_1.isFunction(selector)) { + return connect_1.connect(selector, { + connector: subjectFactory, + }); } - }) - return min + return function (source) { return new ConnectableObservable_1.ConnectableObservable(source, subjectFactory); }; } -module.exports = minSatisfying - +exports.multicast = multicast; +//# sourceMappingURL=multicast.js.map /***/ }), -/***/ 34179: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 22451: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const SemVer = __nccwpck_require__(48088) -const Range = __nccwpck_require__(9828) -const gt = __nccwpck_require__(84123) +"use strict"; -const minVersion = (range, loose) => { - range = new Range(range, loose) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.observeOn = void 0; +var executeSchedule_1 = __nccwpck_require__(82877); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function observeOn(scheduler, delay) { + if (delay === void 0) { delay = 0; } + return lift_1.operate(function (source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return executeSchedule_1.executeSchedule(subscriber, scheduler, function () { return subscriber.next(value); }, delay); }, function () { return executeSchedule_1.executeSchedule(subscriber, scheduler, function () { return subscriber.complete(); }, delay); }, function (err) { return executeSchedule_1.executeSchedule(subscriber, scheduler, function () { return subscriber.error(err); }, delay); })); + }); +} +exports.observeOn = observeOn; +//# sourceMappingURL=observeOn.js.map - let minver = new SemVer('0.0.0') - if (range.test(minver)) { - return minver - } +/***/ }), - minver = new SemVer('0.0.0-0') - if (range.test(minver)) { - return minver - } +/***/ 33569: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - minver = null - for (let i = 0; i < range.set.length; ++i) { - const comparators = range.set[i] +"use strict"; - let setMin = null - comparators.forEach((comparator) => { - // Clone to avoid manipulating the comparator's semver object. - const compver = new SemVer(comparator.semver.version) - switch (comparator.operator) { - case '>': - if (compver.prerelease.length === 0) { - compver.patch++ - } else { - compver.prerelease.push(0) - } - compver.raw = compver.format() - /* fallthrough */ - case '': - case '>=': - if (!setMin || gt(compver, setMin)) { - setMin = compver - } - break - case '<': - case '<=': - /* Ignore maximum versions */ - break - /* istanbul ignore next */ - default: - throw new Error(`Unexpected operation: ${comparator.operator}`) - } - }) - if (setMin && (!minver || gt(minver, setMin))) { - minver = setMin +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } - } - - if (minver && range.test(minver)) { - return minver - } - - return null + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.onErrorResumeNext = exports.onErrorResumeNextWith = void 0; +var argsOrArgArray_1 = __nccwpck_require__(18824); +var onErrorResumeNext_1 = __nccwpck_require__(16089); +function onErrorResumeNextWith() { + var sources = []; + for (var _i = 0; _i < arguments.length; _i++) { + sources[_i] = arguments[_i]; + } + var nextSources = argsOrArgArray_1.argsOrArgArray(sources); + return function (source) { return onErrorResumeNext_1.onErrorResumeNext.apply(void 0, __spreadArray([source], __read(nextSources))); }; } -module.exports = minVersion - +exports.onErrorResumeNextWith = onErrorResumeNextWith; +exports.onErrorResumeNext = onErrorResumeNextWith; +//# sourceMappingURL=onErrorResumeNextWith.js.map /***/ }), -/***/ 60420: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 52206: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const SemVer = __nccwpck_require__(48088) -const Comparator = __nccwpck_require__(91532) -const { ANY } = Comparator -const Range = __nccwpck_require__(9828) -const satisfies = __nccwpck_require__(6055) -const gt = __nccwpck_require__(84123) -const lt = __nccwpck_require__(80194) -const lte = __nccwpck_require__(77520) -const gte = __nccwpck_require__(15522) +"use strict"; -const outside = (version, range, hilo, options) => { - version = new SemVer(version, options) - range = new Range(range, options) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.pairwise = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function pairwise() { + return lift_1.operate(function (source, subscriber) { + var prev; + var hasPrev = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + var p = prev; + prev = value; + hasPrev && subscriber.next([p, value]); + hasPrev = true; + })); + }); +} +exports.pairwise = pairwise; +//# sourceMappingURL=pairwise.js.map - let gtfn, ltefn, ltfn, comp, ecomp - switch (hilo) { - case '>': - gtfn = gt - ltefn = lte - ltfn = lt - comp = '>' - ecomp = '>=' - break - case '<': - gtfn = lt - ltefn = gte - ltfn = gt - comp = '<' - ecomp = '<=' - break - default: - throw new TypeError('Must provide a hilo val of "<" or ">"') - } +/***/ }), - // If it satisfies the range it is not outside - if (satisfies(version, range, options)) { - return false - } +/***/ 55949: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // From now on, variable terms are as if we're in "gtr" mode. - // but note that everything is flipped for the "ltr" function. +"use strict"; - for (let i = 0; i < range.set.length; ++i) { - const comparators = range.set[i] +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.partition = void 0; +var not_1 = __nccwpck_require__(54338); +var filter_1 = __nccwpck_require__(36894); +function partition(predicate, thisArg) { + return function (source) { + return [filter_1.filter(predicate, thisArg)(source), filter_1.filter(not_1.not(predicate, thisArg))(source)]; + }; +} +exports.partition = partition; +//# sourceMappingURL=partition.js.map - let high = null - let low = null +/***/ }), - comparators.forEach((comparator) => { - if (comparator.semver === ANY) { - comparator = new Comparator('>=0.0.0') - } - high = high || comparator - low = low || comparator - if (gtfn(comparator.semver, high.semver, options)) { - high = comparator - } else if (ltfn(comparator.semver, low.semver, options)) { - low = comparator - } - }) +/***/ 16073: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // If the edge version comparator has a operator then our version - // isn't outside it - if (high.operator === comp || high.operator === ecomp) { - return false - } +"use strict"; - // If the lowest version comparator has an operator and our version - // is less than it then it isn't higher than the range - if ((!low.operator || low.operator === comp) && - ltefn(version, low.semver)) { - return false - } else if (low.operator === ecomp && ltfn(version, low.semver)) { - return false - } - } - return true +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.pluck = void 0; +var map_1 = __nccwpck_require__(5987); +function pluck() { + var properties = []; + for (var _i = 0; _i < arguments.length; _i++) { + properties[_i] = arguments[_i]; + } + var length = properties.length; + if (length === 0) { + throw new Error('list of properties cannot be empty.'); + } + return map_1.map(function (x) { + var currentProp = x; + for (var i = 0; i < length; i++) { + var p = currentProp === null || currentProp === void 0 ? void 0 : currentProp[properties[i]]; + if (typeof p !== 'undefined') { + currentProp = p; + } + else { + return undefined; + } + } + return currentProp; + }); } - -module.exports = outside - +exports.pluck = pluck; +//# sourceMappingURL=pluck.js.map /***/ }), -/***/ 56561: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 84084: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// given a set of versions and a range, create a "simplified" range -// that includes the same versions that the original range does -// If the original range is shorter than the simplified one, return that. -const satisfies = __nccwpck_require__(6055) -const compare = __nccwpck_require__(44309) -module.exports = (versions, range, options) => { - const set = [] - let first = null - let prev = null - const v = versions.sort((a, b) => compare(a, b, options)) - for (const version of v) { - const included = satisfies(version, range, options) - if (included) { - prev = version - if (!first) { - first = version - } - } else { - if (prev) { - set.push([first, prev]) - } - prev = null - first = null - } - } - if (first) { - set.push([first, null]) - } +"use strict"; - const ranges = [] - for (const [min, max] of set) { - if (min === max) { - ranges.push(min) - } else if (!max && min === v[0]) { - ranges.push('*') - } else if (!max) { - ranges.push(`>=${min}`) - } else if (min === v[0]) { - ranges.push(`<=${max}`) - } else { - ranges.push(`${min} - ${max}`) - } - } - const simplified = ranges.join(' || ') - const original = typeof range.raw === 'string' ? range.raw : String(range) - return simplified.length < original.length ? simplified : range +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.publish = void 0; +var Subject_1 = __nccwpck_require__(49944); +var multicast_1 = __nccwpck_require__(65457); +var connect_1 = __nccwpck_require__(51101); +function publish(selector) { + return selector ? function (source) { return connect_1.connect(selector)(source); } : function (source) { return multicast_1.multicast(new Subject_1.Subject())(source); }; } - +exports.publish = publish; +//# sourceMappingURL=publish.js.map /***/ }), -/***/ 7863: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 40045: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const Range = __nccwpck_require__(9828) -const Comparator = __nccwpck_require__(91532) -const { ANY } = Comparator -const satisfies = __nccwpck_require__(6055) -const compare = __nccwpck_require__(44309) +"use strict"; -// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff: -// - Every simple range `r1, r2, ...` is a null set, OR -// - Every simple range `r1, r2, ...` which is not a null set is a subset of -// some `R1, R2, ...` -// -// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff: -// - If c is only the ANY comparator -// - If C is only the ANY comparator, return true -// - Else if in prerelease mode, return false -// - else replace c with `[>=0.0.0]` -// - If C is only the ANY comparator -// - if in prerelease mode, return true -// - else replace C with `[>=0.0.0]` -// - Let EQ be the set of = comparators in c -// - If EQ is more than one, return true (null set) -// - Let GT be the highest > or >= comparator in c -// - Let LT be the lowest < or <= comparator in c -// - If GT and LT, and GT.semver > LT.semver, return true (null set) -// - If any C is a = range, and GT or LT are set, return false -// - If EQ -// - If GT, and EQ does not satisfy GT, return true (null set) -// - If LT, and EQ does not satisfy LT, return true (null set) -// - If EQ satisfies every C, return true -// - Else return false -// - If GT -// - If GT.semver is lower than any > or >= comp in C, return false -// - If GT is >=, and GT.semver does not satisfy every C, return false -// - If GT.semver has a prerelease, and not in prerelease mode -// - If no C has a prerelease and the GT.semver tuple, return false -// - If LT -// - If LT.semver is greater than any < or <= comp in C, return false -// - If LT is <=, and LT.semver does not satisfy every C, return false -// - If GT.semver has a prerelease, and not in prerelease mode -// - If no C has a prerelease and the LT.semver tuple, return false -// - Else return true +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.publishBehavior = void 0; +var BehaviorSubject_1 = __nccwpck_require__(23473); +var ConnectableObservable_1 = __nccwpck_require__(30420); +function publishBehavior(initialValue) { + return function (source) { + var subject = new BehaviorSubject_1.BehaviorSubject(initialValue); + return new ConnectableObservable_1.ConnectableObservable(source, function () { return subject; }); + }; +} +exports.publishBehavior = publishBehavior; +//# sourceMappingURL=publishBehavior.js.map -const subset = (sub, dom, options = {}) => { - if (sub === dom) { - return true - } +/***/ }), - sub = new Range(sub, options) - dom = new Range(dom, options) - let sawNonNull = false +/***/ 84149: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - OUTER: for (const simpleSub of sub.set) { - for (const simpleDom of dom.set) { - const isSub = simpleSubset(simpleSub, simpleDom, options) - sawNonNull = sawNonNull || isSub !== null - if (isSub) { - continue OUTER - } - } - // the null set is a subset of everything, but null simple ranges in - // a complex range should be ignored. so if we saw a non-null range, - // then we know this isn't a subset, but if EVERY simple range was null, - // then it is a subset. - if (sawNonNull) { - return false - } - } - return true +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.publishLast = void 0; +var AsyncSubject_1 = __nccwpck_require__(9747); +var ConnectableObservable_1 = __nccwpck_require__(30420); +function publishLast() { + return function (source) { + var subject = new AsyncSubject_1.AsyncSubject(); + return new ConnectableObservable_1.ConnectableObservable(source, function () { return subject; }); + }; } +exports.publishLast = publishLast; +//# sourceMappingURL=publishLast.js.map -const minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')] -const minimumVersion = [new Comparator('>=0.0.0')] +/***/ }), -const simpleSubset = (sub, dom, options) => { - if (sub === dom) { - return true - } +/***/ 47656: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (sub.length === 1 && sub[0].semver === ANY) { - if (dom.length === 1 && dom[0].semver === ANY) { - return true - } else if (options.includePrerelease) { - sub = minimumVersionWithPreRelease - } else { - sub = minimumVersion - } - } +"use strict"; - if (dom.length === 1 && dom[0].semver === ANY) { - if (options.includePrerelease) { - return true - } else { - dom = minimumVersion +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.publishReplay = void 0; +var ReplaySubject_1 = __nccwpck_require__(22351); +var multicast_1 = __nccwpck_require__(65457); +var isFunction_1 = __nccwpck_require__(67206); +function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) { + if (selectorOrScheduler && !isFunction_1.isFunction(selectorOrScheduler)) { + timestampProvider = selectorOrScheduler; } - } + var selector = isFunction_1.isFunction(selectorOrScheduler) ? selectorOrScheduler : undefined; + return function (source) { return multicast_1.multicast(new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, timestampProvider), selector)(source); }; +} +exports.publishReplay = publishReplay; +//# sourceMappingURL=publishReplay.js.map - const eqSet = new Set() - let gt, lt - for (const c of sub) { - if (c.operator === '>' || c.operator === '>=') { - gt = higherGT(gt, c, options) - } else if (c.operator === '<' || c.operator === '<=') { - lt = lowerLT(lt, c, options) - } else { - eqSet.add(c.semver) - } - } +/***/ }), - if (eqSet.size > 1) { - return null - } +/***/ 85846: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - let gtltComp - if (gt && lt) { - gtltComp = compare(gt.semver, lt.semver, options) - if (gtltComp > 0) { - return null - } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) { - return null - } - } +"use strict"; - // will iterate one or zero times - for (const eq of eqSet) { - if (gt && !satisfies(eq, String(gt), options)) { - return null +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } - - if (lt && !satisfies(eq, String(lt), options)) { - return null + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } } - - for (const c of dom) { - if (!satisfies(eq, String(c), options)) { - return false - } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.race = void 0; +var argsOrArgArray_1 = __nccwpck_require__(18824); +var raceWith_1 = __nccwpck_require__(58008); +function race() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; } + return raceWith_1.raceWith.apply(void 0, __spreadArray([], __read(argsOrArgArray_1.argsOrArgArray(args)))); +} +exports.race = race; +//# sourceMappingURL=race.js.map - return true - } +/***/ }), - let higher, lower - let hasDomLT, hasDomGT - // if the subset has a prerelease, we need a comparator in the superset - // with the same tuple and a prerelease, or it's not a subset - let needDomLTPre = lt && - !options.includePrerelease && - lt.semver.prerelease.length ? lt.semver : false - let needDomGTPre = gt && - !options.includePrerelease && - gt.semver.prerelease.length ? gt.semver : false - // exception: <1.2.3-0 is the same as <1.2.3 - if (needDomLTPre && needDomLTPre.prerelease.length === 1 && - lt.operator === '<' && needDomLTPre.prerelease[0] === 0) { - needDomLTPre = false - } +/***/ 58008: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - for (const c of dom) { - hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>=' - hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<=' - if (gt) { - if (needDomGTPre) { - if (c.semver.prerelease && c.semver.prerelease.length && - c.semver.major === needDomGTPre.major && - c.semver.minor === needDomGTPre.minor && - c.semver.patch === needDomGTPre.patch) { - needDomGTPre = false - } - } - if (c.operator === '>' || c.operator === '>=') { - higher = higherGT(gt, c, options) - if (higher === c && higher !== gt) { - return false - } - } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) { - return false - } +"use strict"; + +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } - if (lt) { - if (needDomLTPre) { - if (c.semver.prerelease && c.semver.prerelease.length && - c.semver.major === needDomLTPre.major && - c.semver.minor === needDomLTPre.minor && - c.semver.patch === needDomLTPre.patch) { - needDomLTPre = false - } - } - if (c.operator === '<' || c.operator === '<=') { - lower = lowerLT(lt, c, options) - if (lower === c && lower !== lt) { - return false + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); } - } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) { - return false - } - } - if (!c.operator && (lt || gt) && gtltComp !== 0) { - return false + finally { if (e) throw e.error; } } - } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.raceWith = void 0; +var race_1 = __nccwpck_require__(16940); +var lift_1 = __nccwpck_require__(38669); +var identity_1 = __nccwpck_require__(60283); +function raceWith() { + var otherSources = []; + for (var _i = 0; _i < arguments.length; _i++) { + otherSources[_i] = arguments[_i]; + } + return !otherSources.length + ? identity_1.identity + : lift_1.operate(function (source, subscriber) { + race_1.raceInit(__spreadArray([source], __read(otherSources)))(subscriber); + }); +} +exports.raceWith = raceWith; +//# sourceMappingURL=raceWith.js.map - // if there was a < or >, and nothing in the dom, then must be false - // UNLESS it was limited by another range in the other direction. - // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0 - if (gt && hasDomLT && !lt && gtltComp !== 0) { - return false - } +/***/ }), - if (lt && hasDomGT && !gt && gtltComp !== 0) { - return false - } +/***/ 62087: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // we needed a prerelease range in a specific tuple, but didn't get one - // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0, - // because it includes prereleases in the 1.2.3 tuple - if (needDomGTPre || needDomLTPre) { - return false - } +"use strict"; - return true +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.reduce = void 0; +var scanInternals_1 = __nccwpck_require__(20998); +var lift_1 = __nccwpck_require__(38669); +function reduce(accumulator, seed) { + return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, false, true)); } +exports.reduce = reduce; +//# sourceMappingURL=reduce.js.map -// >=1.2.3 is lower than >1.2.3 -const higherGT = (a, b, options) => { - if (!a) { - return b - } - const comp = compare(a.semver, b.semver, options) - return comp > 0 ? a - : comp < 0 ? b - : b.operator === '>' && a.operator === '>=' ? b - : a -} +/***/ }), -// <=1.2.3 is higher than <1.2.3 -const lowerLT = (a, b, options) => { - if (!a) { - return b - } - const comp = compare(a.semver, b.semver, options) - return comp < 0 ? a - : comp > 0 ? b - : b.operator === '<' && a.operator === '<=' ? b - : a -} +/***/ 2331: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -module.exports = subset +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.refCount = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function refCount() { + return lift_1.operate(function (source, subscriber) { + var connection = null; + source._refCount++; + var refCounter = OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, undefined, undefined, function () { + if (!source || source._refCount <= 0 || 0 < --source._refCount) { + connection = null; + return; + } + var sharedConnection = source._connection; + var conn = connection; + connection = null; + if (sharedConnection && (!conn || sharedConnection === conn)) { + sharedConnection.unsubscribe(); + } + subscriber.unsubscribe(); + }); + source.subscribe(refCounter); + if (!refCounter.closed) { + connection = source.connect(); + } + }); +} +exports.refCount = refCount; +//# sourceMappingURL=refCount.js.map /***/ }), -/***/ 52706: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 22418: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const Range = __nccwpck_require__(9828) +"use strict"; -// Mostly just for testing and legacy API reasons -const toComparators = (range, options) => - new Range(range, options).set - .map(comp => comp.map(c => c.value).join(' ').trim().split(' ')) +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.repeat = void 0; +var empty_1 = __nccwpck_require__(70437); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var innerFrom_1 = __nccwpck_require__(57105); +var timer_1 = __nccwpck_require__(59757); +function repeat(countOrConfig) { + var _a; + var count = Infinity; + var delay; + if (countOrConfig != null) { + if (typeof countOrConfig === 'object') { + (_a = countOrConfig.count, count = _a === void 0 ? Infinity : _a, delay = countOrConfig.delay); + } + else { + count = countOrConfig; + } + } + return count <= 0 + ? function () { return empty_1.EMPTY; } + : lift_1.operate(function (source, subscriber) { + var soFar = 0; + var sourceSub; + var resubscribe = function () { + sourceSub === null || sourceSub === void 0 ? void 0 : sourceSub.unsubscribe(); + sourceSub = null; + if (delay != null) { + var notifier = typeof delay === 'number' ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(soFar)); + var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { + notifierSubscriber_1.unsubscribe(); + subscribeToSource(); + }); + notifier.subscribe(notifierSubscriber_1); + } + else { + subscribeToSource(); + } + }; + var subscribeToSource = function () { + var syncUnsub = false; + sourceSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, function () { + if (++soFar < count) { + if (sourceSub) { + resubscribe(); + } + else { + syncUnsub = true; + } + } + else { + subscriber.complete(); + } + })); + if (syncUnsub) { + resubscribe(); + } + }; + subscribeToSource(); + }); +} +exports.repeat = repeat; +//# sourceMappingURL=repeat.js.map -module.exports = toComparators +/***/ }), +/***/ 70754: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.repeatWhen = void 0; +var innerFrom_1 = __nccwpck_require__(57105); +var Subject_1 = __nccwpck_require__(49944); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function repeatWhen(notifier) { + return lift_1.operate(function (source, subscriber) { + var innerSub; + var syncResub = false; + var completions$; + var isNotifierComplete = false; + var isMainComplete = false; + var checkComplete = function () { return isMainComplete && isNotifierComplete && (subscriber.complete(), true); }; + var getCompletionSubject = function () { + if (!completions$) { + completions$ = new Subject_1.Subject(); + innerFrom_1.innerFrom(notifier(completions$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { + if (innerSub) { + subscribeForRepeatWhen(); + } + else { + syncResub = true; + } + }, function () { + isNotifierComplete = true; + checkComplete(); + })); + } + return completions$; + }; + var subscribeForRepeatWhen = function () { + isMainComplete = false; + innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, function () { + isMainComplete = true; + !checkComplete() && getCompletionSubject().next(); + })); + if (syncResub) { + innerSub.unsubscribe(); + innerSub = null; + syncResub = false; + subscribeForRepeatWhen(); + } + }; + subscribeForRepeatWhen(); + }); +} +exports.repeatWhen = repeatWhen; +//# sourceMappingURL=repeatWhen.js.map /***/ }), -/***/ 2098: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 56251: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const Range = __nccwpck_require__(9828) -const validRange = (range, options) => { - try { - // Return '*' instead of '' so that truthiness works. - // This will throw if it's invalid anyway - return new Range(range, options).range || '*' - } catch (er) { - return null - } -} -module.exports = validRange +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.retry = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var identity_1 = __nccwpck_require__(60283); +var timer_1 = __nccwpck_require__(59757); +var innerFrom_1 = __nccwpck_require__(57105); +function retry(configOrCount) { + if (configOrCount === void 0) { configOrCount = Infinity; } + var config; + if (configOrCount && typeof configOrCount === 'object') { + config = configOrCount; + } + else { + config = { + count: configOrCount, + }; + } + var _a = config.count, count = _a === void 0 ? Infinity : _a, delay = config.delay, _b = config.resetOnSuccess, resetOnSuccess = _b === void 0 ? false : _b; + return count <= 0 + ? identity_1.identity + : lift_1.operate(function (source, subscriber) { + var soFar = 0; + var innerSub; + var subscribeForRetry = function () { + var syncUnsub = false; + innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + if (resetOnSuccess) { + soFar = 0; + } + subscriber.next(value); + }, undefined, function (err) { + if (soFar++ < count) { + var resub_1 = function () { + if (innerSub) { + innerSub.unsubscribe(); + innerSub = null; + subscribeForRetry(); + } + else { + syncUnsub = true; + } + }; + if (delay != null) { + var notifier = typeof delay === 'number' ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(err, soFar)); + var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { + notifierSubscriber_1.unsubscribe(); + resub_1(); + }, function () { + subscriber.complete(); + }); + notifier.subscribe(notifierSubscriber_1); + } + else { + resub_1(); + } + } + else { + subscriber.error(err); + } + })); + if (syncUnsub) { + innerSub.unsubscribe(); + innerSub = null; + subscribeForRetry(); + } + }; + subscribeForRetry(); + }); +} +exports.retry = retry; +//# sourceMappingURL=retry.js.map /***/ }), -/***/ 45123: -/***/ ((module) => { +/***/ 69018: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -module.exports = [ - 'cat', - 'cd', - 'chmod', - 'cp', - 'dirs', - 'echo', - 'exec', - 'find', - 'grep', - 'head', - 'ln', - 'ls', - 'mkdir', - 'mv', - 'pwd', - 'rm', - 'sed', - 'set', - 'sort', - 'tail', - 'tempdir', - 'test', - 'to', - 'toEnd', - 'touch', - 'uniq', - 'which', -]; +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.retryWhen = void 0; +var innerFrom_1 = __nccwpck_require__(57105); +var Subject_1 = __nccwpck_require__(49944); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function retryWhen(notifier) { + return lift_1.operate(function (source, subscriber) { + var innerSub; + var syncResub = false; + var errors$; + var subscribeForRetryWhen = function () { + innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, undefined, function (err) { + if (!errors$) { + errors$ = new Subject_1.Subject(); + innerFrom_1.innerFrom(notifier(errors$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { + return innerSub ? subscribeForRetryWhen() : (syncResub = true); + })); + } + if (errors$) { + errors$.next(err); + } + })); + if (syncResub) { + innerSub.unsubscribe(); + innerSub = null; + syncResub = false; + subscribeForRetryWhen(); + } + }; + subscribeForRetryWhen(); + }); +} +exports.retryWhen = retryWhen; +//# sourceMappingURL=retryWhen.js.map /***/ }), -/***/ 33516: +/***/ 13774: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// -// ShellJS -// Unix shell commands on top of Node's API -// -// Copyright (c) 2012 Artur Adib -// http://github.com/shelljs/shelljs -// +"use strict"; -function __ncc_wildcard$0 (arg) { - if (arg === "cat.js" || arg === "cat") return __nccwpck_require__(30271); - else if (arg === "cd.js" || arg === "cd") return __nccwpck_require__(42051); - else if (arg === "chmod.js" || arg === "chmod") return __nccwpck_require__(24975); - else if (arg === "common.js" || arg === "common") return __nccwpck_require__(53687); - else if (arg === "cp.js" || arg === "cp") return __nccwpck_require__(34932); - else if (arg === "dirs.js" || arg === "dirs") return __nccwpck_require__(41178); - else if (arg === "echo.js" || arg === "echo") return __nccwpck_require__(10243); - else if (arg === "error.js" || arg === "error") return __nccwpck_require__(10232); - else if (arg === "exec-child.js" || arg === "exec-child") return __nccwpck_require__(69607); - else if (arg === "exec.js" || arg === "exec") return __nccwpck_require__(10896); - else if (arg === "find.js" || arg === "find") return __nccwpck_require__(47838); - else if (arg === "grep.js" || arg === "grep") return __nccwpck_require__(17417); - else if (arg === "head.js" || arg === "head") return __nccwpck_require__(6613); - else if (arg === "ln.js" || arg === "ln") return __nccwpck_require__(15787); - else if (arg === "ls.js" || arg === "ls") return __nccwpck_require__(35561); - else if (arg === "mkdir.js" || arg === "mkdir") return __nccwpck_require__(72695); - else if (arg === "mv.js" || arg === "mv") return __nccwpck_require__(39849); - else if (arg === "popd.js" || arg === "popd") return __nccwpck_require__(50227); - else if (arg === "pushd.js" || arg === "pushd") return __nccwpck_require__(44177); - else if (arg === "pwd.js" || arg === "pwd") return __nccwpck_require__(58553); - else if (arg === "rm.js" || arg === "rm") return __nccwpck_require__(22830); - else if (arg === "sed.js" || arg === "sed") return __nccwpck_require__(25899); - else if (arg === "set.js" || arg === "set") return __nccwpck_require__(11411); - else if (arg === "sort.js" || arg === "sort") return __nccwpck_require__(72116); - else if (arg === "tail.js" || arg === "tail") return __nccwpck_require__(42284); - else if (arg === "tempdir.js" || arg === "tempdir") return __nccwpck_require__(76150); - else if (arg === "test.js" || arg === "test") return __nccwpck_require__(79723); - else if (arg === "to.js" || arg === "to") return __nccwpck_require__(71961); - else if (arg === "toEnd.js" || arg === "toEnd") return __nccwpck_require__(33736); - else if (arg === "touch.js" || arg === "touch") return __nccwpck_require__(28358); - else if (arg === "uniq.js" || arg === "uniq") return __nccwpck_require__(77286); - else if (arg === "which.js" || arg === "which") return __nccwpck_require__(64766); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.sample = void 0; +var innerFrom_1 = __nccwpck_require__(57105); +var lift_1 = __nccwpck_require__(38669); +var noop_1 = __nccwpck_require__(11642); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function sample(notifier) { + return lift_1.operate(function (source, subscriber) { + var hasValue = false; + var lastValue = null; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + hasValue = true; + lastValue = value; + })); + innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { + if (hasValue) { + hasValue = false; + var value = lastValue; + lastValue = null; + subscriber.next(value); + } + }, noop_1.noop)); + }); } -var common = __nccwpck_require__(53687); +exports.sample = sample; +//# sourceMappingURL=sample.js.map -//@ -//@ All commands run synchronously, unless otherwise stated. -//@ All commands accept standard bash globbing characters (`*`, `?`, etc.), -//@ compatible with the [node `glob` module](https://github.com/isaacs/node-glob). -//@ -//@ For less-commonly used commands and features, please check out our [wiki -//@ page](https://github.com/shelljs/shelljs/wiki). -//@ +/***/ }), -// Include the docs for all the default commands -//@commands +/***/ 49807: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// Load all default commands -(__nccwpck_require__(45123).forEach)(function (command) { - __ncc_wildcard$0(command); -}); +"use strict"; -//@ -//@ ### exit(code) -//@ -//@ Exits the current process with the given exit `code`. -exports.exit = process.exit; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.sampleTime = void 0; +var async_1 = __nccwpck_require__(76072); +var sample_1 = __nccwpck_require__(13774); +var interval_1 = __nccwpck_require__(20029); +function sampleTime(period, scheduler) { + if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } + return sample_1.sample(interval_1.interval(period, scheduler)); +} +exports.sampleTime = sampleTime; +//# sourceMappingURL=sampleTime.js.map -//@include ./src/error -exports.error = __nccwpck_require__(10232); +/***/ }), -//@include ./src/common -exports.ShellString = common.ShellString; +/***/ 25578: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -//@ -//@ ### env['VAR_NAME'] -//@ -//@ Object containing environment variables (both getter and setter). Shortcut -//@ to `process.env`. -exports.env = process.env; +"use strict"; -//@ -//@ ### Pipes -//@ -//@ Examples: -//@ -//@ ```javascript -//@ grep('foo', 'file1.txt', 'file2.txt').sed(/o/g, 'a').to('output.txt'); -//@ echo('files with o\'s in the name:\n' + ls().grep('o')); -//@ cat('test.js').exec('node'); // pipe to exec() call -//@ ``` -//@ -//@ Commands can send their output to another command in a pipe-like fashion. -//@ `sed`, `grep`, `cat`, `exec`, `to`, and `toEnd` can appear on the right-hand -//@ side of a pipe. Pipes can be chained. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.scan = void 0; +var lift_1 = __nccwpck_require__(38669); +var scanInternals_1 = __nccwpck_require__(20998); +function scan(accumulator, seed) { + return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, true)); +} +exports.scan = scan; +//# sourceMappingURL=scan.js.map -//@ -//@ ## Configuration -//@ +/***/ }), -exports.config = common.config; +/***/ 20998: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -//@ -//@ ### config.silent -//@ -//@ Example: -//@ -//@ ```javascript -//@ var sh = require('shelljs'); -//@ var silentState = sh.config.silent; // save old silent state -//@ sh.config.silent = true; -//@ /* ... */ -//@ sh.config.silent = silentState; // restore old silent state -//@ ``` -//@ -//@ Suppresses all command output if `true`, except for `echo()` calls. -//@ Default is `false`. +"use strict"; -//@ -//@ ### config.fatal -//@ -//@ Example: -//@ -//@ ```javascript -//@ require('shelljs/global'); -//@ config.fatal = true; // or set('-e'); -//@ cp('this_file_does_not_exist', '/dev/null'); // throws Error here -//@ /* more commands... */ -//@ ``` -//@ -//@ If `true`, the script will throw a Javascript error when any shell.js -//@ command encounters an error. Default is `false`. This is analogous to -//@ Bash's `set -e`. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.scanInternals = void 0; +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) { + return function (source, subscriber) { + var hasState = hasSeed; + var state = seed; + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + var i = index++; + state = hasState + ? + accumulator(state, value, i) + : + ((hasState = true), value); + emitOnNext && subscriber.next(state); + }, emitBeforeComplete && + (function () { + hasState && subscriber.next(state); + subscriber.complete(); + }))); + }; +} +exports.scanInternals = scanInternals; +//# sourceMappingURL=scanInternals.js.map -//@ -//@ ### config.verbose -//@ -//@ Example: -//@ -//@ ```javascript -//@ config.verbose = true; // or set('-v'); -//@ cd('dir/'); -//@ rm('-rf', 'foo.txt', 'bar.txt'); -//@ exec('echo hello'); -//@ ``` -//@ -//@ Will print each command as follows: -//@ -//@ ``` -//@ cd dir/ -//@ rm -rf foo.txt bar.txt -//@ exec echo hello -//@ ``` +/***/ }), -//@ -//@ ### config.globOptions -//@ -//@ Example: -//@ -//@ ```javascript -//@ config.globOptions = {nodir: true}; -//@ ``` -//@ -//@ Use this value for calls to `glob.sync()` instead of the default options. +/***/ 16126: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -//@ -//@ ### config.reset() -//@ -//@ Example: -//@ -//@ ```javascript -//@ var shell = require('shelljs'); -//@ // Make changes to shell.config, and do stuff... -//@ /* ... */ -//@ shell.config.reset(); // reset to original state -//@ // Do more stuff, but with original settings -//@ /* ... */ -//@ ``` -//@ -//@ Reset `shell.config` to the defaults: -//@ -//@ ```javascript -//@ { -//@ fatal: false, -//@ globOptions: {}, -//@ maxdepth: 255, -//@ noglob: false, -//@ silent: false, -//@ verbose: false, -//@ } -//@ ``` +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.sequenceEqual = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var innerFrom_1 = __nccwpck_require__(57105); +function sequenceEqual(compareTo, comparator) { + if (comparator === void 0) { comparator = function (a, b) { return a === b; }; } + return lift_1.operate(function (source, subscriber) { + var aState = createState(); + var bState = createState(); + var emit = function (isEqual) { + subscriber.next(isEqual); + subscriber.complete(); + }; + var createSubscriber = function (selfState, otherState) { + var sequenceEqualSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (a) { + var buffer = otherState.buffer, complete = otherState.complete; + if (buffer.length === 0) { + complete ? emit(false) : selfState.buffer.push(a); + } + else { + !comparator(a, buffer.shift()) && emit(false); + } + }, function () { + selfState.complete = true; + var complete = otherState.complete, buffer = otherState.buffer; + complete && emit(buffer.length === 0); + sequenceEqualSubscriber === null || sequenceEqualSubscriber === void 0 ? void 0 : sequenceEqualSubscriber.unsubscribe(); + }); + return sequenceEqualSubscriber; + }; + source.subscribe(createSubscriber(aState, bState)); + innerFrom_1.innerFrom(compareTo).subscribe(createSubscriber(bState, aState)); + }); +} +exports.sequenceEqual = sequenceEqual; +function createState() { + return { + buffer: [], + complete: false, + }; +} +//# sourceMappingURL=sequenceEqual.js.map /***/ }), -/***/ 30271: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 48960: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); +"use strict"; -common.register('cat', _cat, { - canReceivePipe: true, - cmdOptions: { - 'n': 'number', - }, -}); +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.share = void 0; +var innerFrom_1 = __nccwpck_require__(57105); +var Subject_1 = __nccwpck_require__(49944); +var Subscriber_1 = __nccwpck_require__(67121); +var lift_1 = __nccwpck_require__(38669); +function share(options) { + if (options === void 0) { options = {}; } + var _a = options.connector, connector = _a === void 0 ? function () { return new Subject_1.Subject(); } : _a, _b = options.resetOnError, resetOnError = _b === void 0 ? true : _b, _c = options.resetOnComplete, resetOnComplete = _c === void 0 ? true : _c, _d = options.resetOnRefCountZero, resetOnRefCountZero = _d === void 0 ? true : _d; + return function (wrapperSource) { + var connection; + var resetConnection; + var subject; + var refCount = 0; + var hasCompleted = false; + var hasErrored = false; + var cancelReset = function () { + resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe(); + resetConnection = undefined; + }; + var reset = function () { + cancelReset(); + connection = subject = undefined; + hasCompleted = hasErrored = false; + }; + var resetAndUnsubscribe = function () { + var conn = connection; + reset(); + conn === null || conn === void 0 ? void 0 : conn.unsubscribe(); + }; + return lift_1.operate(function (source, subscriber) { + refCount++; + if (!hasErrored && !hasCompleted) { + cancelReset(); + } + var dest = (subject = subject !== null && subject !== void 0 ? subject : connector()); + subscriber.add(function () { + refCount--; + if (refCount === 0 && !hasErrored && !hasCompleted) { + resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero); + } + }); + dest.subscribe(subscriber); + if (!connection && + refCount > 0) { + connection = new Subscriber_1.SafeSubscriber({ + next: function (value) { return dest.next(value); }, + error: function (err) { + hasErrored = true; + cancelReset(); + resetConnection = handleReset(reset, resetOnError, err); + dest.error(err); + }, + complete: function () { + hasCompleted = true; + cancelReset(); + resetConnection = handleReset(reset, resetOnComplete); + dest.complete(); + }, + }); + innerFrom_1.innerFrom(source).subscribe(connection); + } + })(wrapperSource); + }; +} +exports.share = share; +function handleReset(reset, on) { + var args = []; + for (var _i = 2; _i < arguments.length; _i++) { + args[_i - 2] = arguments[_i]; + } + if (on === true) { + reset(); + return; + } + if (on === false) { + return; + } + var onSubscriber = new Subscriber_1.SafeSubscriber({ + next: function () { + onSubscriber.unsubscribe(); + reset(); + }, + }); + return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber); +} +//# sourceMappingURL=share.js.map -//@ -//@ ### cat([options,] file [, file ...]) -//@ ### cat([options,] file_array) -//@ -//@ Available options: -//@ -//@ + `-n`: number all output lines -//@ -//@ Examples: -//@ -//@ ```javascript -//@ var str = cat('file*.txt'); -//@ var str = cat('file1', 'file2'); -//@ var str = cat(['file1', 'file2']); // same as above -//@ ``` -//@ -//@ Returns a string containing the given file, or a concatenated string -//@ containing the files if more than one file is given (a new line character is -//@ introduced between each file). -function _cat(options, files) { - var cat = common.readFromPipe(); +/***/ }), - if (!files && !cat) common.error('no paths given'); +/***/ 92118: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - files = [].slice.call(arguments, 1); +"use strict"; - files.forEach(function (file) { - if (!fs.existsSync(file)) { - common.error('no such file or directory: ' + file); - } else if (common.statFollowLinks(file).isDirectory()) { - common.error(file + ': Is a directory'); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.shareReplay = void 0; +var ReplaySubject_1 = __nccwpck_require__(22351); +var share_1 = __nccwpck_require__(48960); +function shareReplay(configOrBufferSize, windowTime, scheduler) { + var _a, _b, _c; + var bufferSize; + var refCount = false; + if (configOrBufferSize && typeof configOrBufferSize === 'object') { + (_a = configOrBufferSize.bufferSize, bufferSize = _a === void 0 ? Infinity : _a, _b = configOrBufferSize.windowTime, windowTime = _b === void 0 ? Infinity : _b, _c = configOrBufferSize.refCount, refCount = _c === void 0 ? false : _c, scheduler = configOrBufferSize.scheduler); + } + else { + bufferSize = (configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity); } + return share_1.share({ + connector: function () { return new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, scheduler); }, + resetOnError: true, + resetOnComplete: false, + resetOnRefCountZero: refCount, + }); +} +exports.shareReplay = shareReplay; +//# sourceMappingURL=shareReplay.js.map - cat += fs.readFileSync(file, 'utf8'); - }); +/***/ }), - if (options.number) { - cat = addNumbers(cat); - } +/***/ 58441: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - return cat; +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.single = void 0; +var EmptyError_1 = __nccwpck_require__(99391); +var SequenceError_1 = __nccwpck_require__(49048); +var NotFoundError_1 = __nccwpck_require__(74431); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function single(predicate) { + return lift_1.operate(function (source, subscriber) { + var hasValue = false; + var singleValue; + var seenValue = false; + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + seenValue = true; + if (!predicate || predicate(value, index++, source)) { + hasValue && subscriber.error(new SequenceError_1.SequenceError('Too many matching values')); + hasValue = true; + singleValue = value; + } + }, function () { + if (hasValue) { + subscriber.next(singleValue); + subscriber.complete(); + } + else { + subscriber.error(seenValue ? new NotFoundError_1.NotFoundError('No matching values') : new EmptyError_1.EmptyError()); + } + })); + }); } -module.exports = _cat; +exports.single = single; +//# sourceMappingURL=single.js.map -function addNumbers(cat) { - var lines = cat.split('\n'); - var lastLine = lines.pop(); +/***/ }), - lines = lines.map(function (line, i) { - return numberedLine(i + 1, line); - }); +/***/ 80947: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (lastLine.length) { - lastLine = numberedLine(lines.length + 1, lastLine); - } - lines.push(lastLine); +"use strict"; - return lines.join('\n'); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.skip = void 0; +var filter_1 = __nccwpck_require__(36894); +function skip(count) { + return filter_1.filter(function (_, index) { return count <= index; }); } +exports.skip = skip; +//# sourceMappingURL=skip.js.map -function numberedLine(n, line) { - // GNU cat use six pad start number + tab. See http://lingrok.org/xref/coreutils/src/cat.c#57 - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart - var number = (' ' + n).slice(-6) + '\t'; - return number + line; -} +/***/ }), + +/***/ 65865: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.skipLast = void 0; +var identity_1 = __nccwpck_require__(60283); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function skipLast(skipCount) { + return skipCount <= 0 + ? + identity_1.identity + : lift_1.operate(function (source, subscriber) { + var ring = new Array(skipCount); + var seen = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + var valueIndex = seen++; + if (valueIndex < skipCount) { + ring[valueIndex] = value; + } + else { + var index = valueIndex % skipCount; + var oldValue = ring[index]; + ring[index] = value; + subscriber.next(oldValue); + } + })); + return function () { + ring = null; + }; + }); +} +exports.skipLast = skipLast; +//# sourceMappingURL=skipLast.js.map /***/ }), -/***/ 42051: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 41110: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var os = __nccwpck_require__(22037); -var common = __nccwpck_require__(53687); +"use strict"; -common.register('cd', _cd, {}); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.skipUntil = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var innerFrom_1 = __nccwpck_require__(57105); +var noop_1 = __nccwpck_require__(11642); +function skipUntil(notifier) { + return lift_1.operate(function (source, subscriber) { + var taking = false; + var skipSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { + skipSubscriber === null || skipSubscriber === void 0 ? void 0 : skipSubscriber.unsubscribe(); + taking = true; + }, noop_1.noop); + innerFrom_1.innerFrom(notifier).subscribe(skipSubscriber); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return taking && subscriber.next(value); })); + }); +} +exports.skipUntil = skipUntil; +//# sourceMappingURL=skipUntil.js.map -//@ -//@ ### cd([dir]) -//@ -//@ Changes to directory `dir` for the duration of the script. Changes to home -//@ directory if no argument is supplied. -function _cd(options, dir) { - if (!dir) dir = os.homedir(); +/***/ }), - if (dir === '-') { - if (!process.env.OLDPWD) { - common.error('could not find previous directory'); - } else { - dir = process.env.OLDPWD; - } - } +/***/ 92550: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - try { - var curDir = process.cwd(); - process.chdir(dir); - process.env.OLDPWD = curDir; - } catch (e) { - // something went wrong, let's figure out the error - var err; - try { - common.statFollowLinks(dir); // if this succeeds, it must be some sort of file - err = 'not a directory: ' + dir; - } catch (e2) { - err = 'no such file or directory: ' + dir; - } - if (err) common.error(err); - } - return ''; -} -module.exports = _cd; +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.skipWhile = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function skipWhile(predicate) { + return lift_1.operate(function (source, subscriber) { + var taking = false; + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return (taking || (taking = !predicate(value, index++))) && subscriber.next(value); })); + }); +} +exports.skipWhile = skipWhile; +//# sourceMappingURL=skipWhile.js.map /***/ }), -/***/ 24975: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 25471: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); -var path = __nccwpck_require__(71017); +"use strict"; -var PERMS = (function (base) { - return { - OTHER_EXEC: base.EXEC, - OTHER_WRITE: base.WRITE, - OTHER_READ: base.READ, +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.startWith = void 0; +var concat_1 = __nccwpck_require__(4675); +var args_1 = __nccwpck_require__(34890); +var lift_1 = __nccwpck_require__(38669); +function startWith() { + var values = []; + for (var _i = 0; _i < arguments.length; _i++) { + values[_i] = arguments[_i]; + } + var scheduler = args_1.popScheduler(values); + return lift_1.operate(function (source, subscriber) { + (scheduler ? concat_1.concat(values, source, scheduler) : concat_1.concat(values, source)).subscribe(subscriber); + }); +} +exports.startWith = startWith; +//# sourceMappingURL=startWith.js.map - GROUP_EXEC: base.EXEC << 3, - GROUP_WRITE: base.WRITE << 3, - GROUP_READ: base.READ << 3, +/***/ }), - OWNER_EXEC: base.EXEC << 6, - OWNER_WRITE: base.WRITE << 6, - OWNER_READ: base.READ << 6, +/***/ 7224: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // Literal octal numbers are apparently not allowed in "strict" javascript. - STICKY: parseInt('01000', 8), - SETGID: parseInt('02000', 8), - SETUID: parseInt('04000', 8), +"use strict"; - TYPE_MASK: parseInt('0770000', 8), - }; -}({ - EXEC: 1, - WRITE: 2, - READ: 4, -})); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.subscribeOn = void 0; +var lift_1 = __nccwpck_require__(38669); +function subscribeOn(scheduler, delay) { + if (delay === void 0) { delay = 0; } + return lift_1.operate(function (source, subscriber) { + subscriber.add(scheduler.schedule(function () { return source.subscribe(subscriber); }, delay)); + }); +} +exports.subscribeOn = subscribeOn; +//# sourceMappingURL=subscribeOn.js.map -common.register('chmod', _chmod, { -}); +/***/ }), -//@ -//@ ### chmod([options,] octal_mode || octal_string, file) -//@ ### chmod([options,] symbolic_mode, file) -//@ -//@ Available options: -//@ -//@ + `-v`: output a diagnostic for every file processed//@ -//@ + `-c`: like verbose, but report only when a change is made//@ -//@ + `-R`: change files and directories recursively//@ -//@ -//@ Examples: -//@ -//@ ```javascript -//@ chmod(755, '/Users/brandon'); -//@ chmod('755', '/Users/brandon'); // same as above -//@ chmod('u+x', '/Users/brandon'); -//@ chmod('-R', 'a-w', '/Users/brandon'); -//@ ``` -//@ -//@ Alters the permissions of a file or directory by either specifying the -//@ absolute permissions in octal form or expressing the changes in symbols. -//@ This command tries to mimic the POSIX behavior as much as possible. -//@ Notable exceptions: -//@ -//@ + In symbolic modes, `a-r` and `-r` are identical. No consideration is -//@ given to the `umask`. -//@ + There is no "quiet" option, since default behavior is to run silent. -function _chmod(options, mode, filePattern) { - if (!filePattern) { - if (options.length > 0 && options.charAt(0) === '-') { - // Special case where the specified file permissions started with - to subtract perms, which - // get picked up by the option parser as command flags. - // If we are down by one argument and options starts with -, shift everything over. - [].unshift.call(arguments, ''); - } else { - common.error('You must specify a file.'); - } - } +/***/ 40327: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - options = common.parseOptions(options, { - 'R': 'recursive', - 'c': 'changes', - 'v': 'verbose', - }); +"use strict"; - filePattern = [].slice.call(arguments, 2); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.switchAll = void 0; +var switchMap_1 = __nccwpck_require__(26704); +var identity_1 = __nccwpck_require__(60283); +function switchAll() { + return switchMap_1.switchMap(identity_1.identity); +} +exports.switchAll = switchAll; +//# sourceMappingURL=switchAll.js.map - var files; +/***/ }), - // TODO: replace this with a call to common.expand() - if (options.recursive) { - files = []; - filePattern.forEach(function addFile(expandedFile) { - var stat = common.statNoFollowLinks(expandedFile); +/***/ 26704: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (!stat.isSymbolicLink()) { - files.push(expandedFile); +"use strict"; - if (stat.isDirectory()) { // intentionally does not follow symlinks. - fs.readdirSync(expandedFile).forEach(function (child) { - addFile(expandedFile + '/' + child); - }); - } - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.switchMap = void 0; +var innerFrom_1 = __nccwpck_require__(57105); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function switchMap(project, resultSelector) { + return lift_1.operate(function (source, subscriber) { + var innerSubscriber = null; + var index = 0; + var isComplete = false; + var checkComplete = function () { return isComplete && !innerSubscriber && subscriber.complete(); }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe(); + var innerIndex = 0; + var outerIndex = index++; + innerFrom_1.innerFrom(project(value, outerIndex)).subscribe((innerSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (innerValue) { return subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue); }, function () { + innerSubscriber = null; + checkComplete(); + }))); + }, function () { + isComplete = true; + checkComplete(); + })); }); - } else { - files = filePattern; - } - - files.forEach(function innerChmod(file) { - file = path.resolve(file); - if (!fs.existsSync(file)) { - common.error('File not found: ' + file); - } +} +exports.switchMap = switchMap; +//# sourceMappingURL=switchMap.js.map - // When recursing, don't follow symlinks. - if (options.recursive && common.statNoFollowLinks(file).isSymbolicLink()) { - return; - } +/***/ }), - var stat = common.statFollowLinks(file); - var isDir = stat.isDirectory(); - var perms = stat.mode; - var type = perms & PERMS.TYPE_MASK; +/***/ 1713: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - var newPerms = perms; +"use strict"; - if (isNaN(parseInt(mode, 8))) { - // parse options - mode.split(',').forEach(function (symbolicMode) { - var pattern = /([ugoa]*)([=\+-])([rwxXst]*)/i; - var matches = pattern.exec(symbolicMode); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.switchMapTo = void 0; +var switchMap_1 = __nccwpck_require__(26704); +var isFunction_1 = __nccwpck_require__(67206); +function switchMapTo(innerObservable, resultSelector) { + return isFunction_1.isFunction(resultSelector) ? switchMap_1.switchMap(function () { return innerObservable; }, resultSelector) : switchMap_1.switchMap(function () { return innerObservable; }); +} +exports.switchMapTo = switchMapTo; +//# sourceMappingURL=switchMapTo.js.map - if (matches) { - var applyTo = matches[1]; - var operator = matches[2]; - var change = matches[3]; +/***/ }), - var changeOwner = applyTo.indexOf('u') !== -1 || applyTo === 'a' || applyTo === ''; - var changeGroup = applyTo.indexOf('g') !== -1 || applyTo === 'a' || applyTo === ''; - var changeOther = applyTo.indexOf('o') !== -1 || applyTo === 'a' || applyTo === ''; +/***/ 13355: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - var changeRead = change.indexOf('r') !== -1; - var changeWrite = change.indexOf('w') !== -1; - var changeExec = change.indexOf('x') !== -1; - var changeExecDir = change.indexOf('X') !== -1; - var changeSticky = change.indexOf('t') !== -1; - var changeSetuid = change.indexOf('s') !== -1; +"use strict"; - if (changeExecDir && isDir) { - changeExec = true; - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.switchScan = void 0; +var switchMap_1 = __nccwpck_require__(26704); +var lift_1 = __nccwpck_require__(38669); +function switchScan(accumulator, seed) { + return lift_1.operate(function (source, subscriber) { + var state = seed; + switchMap_1.switchMap(function (value, index) { return accumulator(state, value, index); }, function (_, innerValue) { return ((state = innerValue), innerValue); })(source).subscribe(subscriber); + return function () { + state = null; + }; + }); +} +exports.switchScan = switchScan; +//# sourceMappingURL=switchScan.js.map - var mask = 0; - if (changeOwner) { - mask |= (changeRead ? PERMS.OWNER_READ : 0) + (changeWrite ? PERMS.OWNER_WRITE : 0) + (changeExec ? PERMS.OWNER_EXEC : 0) + (changeSetuid ? PERMS.SETUID : 0); - } - if (changeGroup) { - mask |= (changeRead ? PERMS.GROUP_READ : 0) + (changeWrite ? PERMS.GROUP_WRITE : 0) + (changeExec ? PERMS.GROUP_EXEC : 0) + (changeSetuid ? PERMS.SETGID : 0); - } - if (changeOther) { - mask |= (changeRead ? PERMS.OTHER_READ : 0) + (changeWrite ? PERMS.OTHER_WRITE : 0) + (changeExec ? PERMS.OTHER_EXEC : 0); - } +/***/ }), - // Sticky bit is special - it's not tied to user, group or other. - if (changeSticky) { - mask |= PERMS.STICKY; - } +/***/ 33698: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - switch (operator) { - case '+': - newPerms |= mask; - break; +"use strict"; - case '-': - newPerms &= ~mask; - break; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.take = void 0; +var empty_1 = __nccwpck_require__(70437); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function take(count) { + return count <= 0 + ? + function () { return empty_1.EMPTY; } + : lift_1.operate(function (source, subscriber) { + var seen = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + if (++seen <= count) { + subscriber.next(value); + if (count <= seen) { + subscriber.complete(); + } + } + })); + }); +} +exports.take = take; +//# sourceMappingURL=take.js.map - case '=': - newPerms = type + mask; +/***/ }), - // According to POSIX, when using = to explicitly set the - // permissions, setuid and setgid can never be cleared. - if (common.statFollowLinks(file).isDirectory()) { - newPerms |= (PERMS.SETUID + PERMS.SETGID) & perms; - } - break; - default: - common.error('Could not recognize operator: `' + operator + '`'); - } +/***/ 65041: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - if (options.verbose) { - console.log(file + ' -> ' + newPerms.toString(8)); - } +"use strict"; - if (perms !== newPerms) { - if (!options.verbose && options.changes) { - console.log(file + ' -> ' + newPerms.toString(8)); - } - fs.chmodSync(file, newPerms); - perms = newPerms; // for the next round of changes! - } - } else { - common.error('Invalid symbolic mode change: ' + symbolicMode); +var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; } - }); - } else { - // they gave us a full number - newPerms = type + parseInt(mode, 8); - - // POSIX rules are that setuid and setgid can only be added using numeric - // form, but not cleared. - if (common.statFollowLinks(file).isDirectory()) { - newPerms |= (PERMS.SETUID + PERMS.SETGID) & perms; - } - - fs.chmodSync(file, newPerms); - } - }); - return ''; + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.takeLast = void 0; +var empty_1 = __nccwpck_require__(70437); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function takeLast(count) { + return count <= 0 + ? function () { return empty_1.EMPTY; } + : lift_1.operate(function (source, subscriber) { + var buffer = []; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + buffer.push(value); + count < buffer.length && buffer.shift(); + }, function () { + var e_1, _a; + try { + for (var buffer_1 = __values(buffer), buffer_1_1 = buffer_1.next(); !buffer_1_1.done; buffer_1_1 = buffer_1.next()) { + var value = buffer_1_1.value; + subscriber.next(value); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (buffer_1_1 && !buffer_1_1.done && (_a = buffer_1.return)) _a.call(buffer_1); + } + finally { if (e_1) throw e_1.error; } + } + subscriber.complete(); + }, undefined, function () { + buffer = null; + })); + }); } -module.exports = _chmod; - +exports.takeLast = takeLast; +//# sourceMappingURL=takeLast.js.map /***/ }), -/***/ 53687: +/***/ 55150: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Ignore warning about 'new String()' -/* eslint no-new-wrappers: 0 */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.takeUntil = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var innerFrom_1 = __nccwpck_require__(57105); +var noop_1 = __nccwpck_require__(11642); +function takeUntil(notifier) { + return lift_1.operate(function (source, subscriber) { + innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { return subscriber.complete(); }, noop_1.noop)); + !subscriber.closed && source.subscribe(subscriber); + }); +} +exports.takeUntil = takeUntil; +//# sourceMappingURL=takeUntil.js.map -var os = __nccwpck_require__(22037); -var fs = __nccwpck_require__(57147); -var glob = __nccwpck_require__(91957); -var shell = __nccwpck_require__(33516); +/***/ }), -var shellMethods = Object.create(shell); +/***/ 76700: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -exports.extend = Object.assign; +"use strict"; -// Check if we're running under electron -var isElectron = Boolean(process.versions.electron); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.takeWhile = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function takeWhile(predicate, inclusive) { + if (inclusive === void 0) { inclusive = false; } + return lift_1.operate(function (source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + var result = predicate(value, index++); + (result || inclusive) && subscriber.next(value); + !result && subscriber.complete(); + })); + }); +} +exports.takeWhile = takeWhile; +//# sourceMappingURL=takeWhile.js.map -// Module globals (assume no execPath by default) -var DEFAULT_CONFIG = { - fatal: false, - globOptions: {}, - maxdepth: 255, - noglob: false, - silent: false, - verbose: false, - execPath: null, - bufLength: 64 * 1024, // 64KB -}; +/***/ }), -var config = { - reset: function () { - Object.assign(this, DEFAULT_CONFIG); - if (!isElectron) { - this.execPath = process.execPath; - } - }, - resetForTesting: function () { - this.reset(); - this.silent = true; - }, -}; +/***/ 48845: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -config.reset(); -exports.config = config; +"use strict"; -// Note: commands should generally consider these as read-only values. -var state = { - error: null, - errorCode: 0, - currentCmd: 'shell.js', -}; -exports.state = state; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.tap = void 0; +var isFunction_1 = __nccwpck_require__(67206); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var identity_1 = __nccwpck_require__(60283); +function tap(observerOrNext, error, complete) { + var tapObserver = isFunction_1.isFunction(observerOrNext) || error || complete + ? + { next: observerOrNext, error: error, complete: complete } + : observerOrNext; + return tapObserver + ? lift_1.operate(function (source, subscriber) { + var _a; + (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver); + var isUnsub = true; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + var _a; + (_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value); + subscriber.next(value); + }, function () { + var _a; + isUnsub = false; + (_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver); + subscriber.complete(); + }, function (err) { + var _a; + isUnsub = false; + (_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err); + subscriber.error(err); + }, function () { + var _a, _b; + if (isUnsub) { + (_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver); + } + (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver); + })); + }) + : + identity_1.identity; +} +exports.tap = tap; +//# sourceMappingURL=tap.js.map -delete process.env.OLDPWD; // initially, there's no previous directory +/***/ }), -// Reliably test if something is any sort of javascript object -function isObject(a) { - return typeof a === 'object' && a !== null; -} -exports.isObject = isObject; +/***/ 36713: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -function log() { - /* istanbul ignore next */ - if (!config.silent) { - console.error.apply(console, arguments); - } -} -exports.log = log; +"use strict"; -// Converts strings to be equivalent across all platforms. Primarily responsible -// for making sure we use '/' instead of '\' as path separators, but this may be -// expanded in the future if necessary -function convertErrorOutput(msg) { - if (typeof msg !== 'string') { - throw new TypeError('input must be a string'); - } - return msg.replace(/\\/g, '/'); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.throttle = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var innerFrom_1 = __nccwpck_require__(57105); +function throttle(durationSelector, config) { + return lift_1.operate(function (source, subscriber) { + var _a = config !== null && config !== void 0 ? config : {}, _b = _a.leading, leading = _b === void 0 ? true : _b, _c = _a.trailing, trailing = _c === void 0 ? false : _c; + var hasValue = false; + var sendValue = null; + var throttled = null; + var isComplete = false; + var endThrottling = function () { + throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe(); + throttled = null; + if (trailing) { + send(); + isComplete && subscriber.complete(); + } + }; + var cleanupThrottling = function () { + throttled = null; + isComplete && subscriber.complete(); + }; + var startThrottle = function (value) { + return (throttled = innerFrom_1.innerFrom(durationSelector(value)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling))); + }; + var send = function () { + if (hasValue) { + hasValue = false; + var value = sendValue; + sendValue = null; + subscriber.next(value); + !isComplete && startThrottle(value); + } + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + hasValue = true; + sendValue = value; + !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value)); + }, function () { + isComplete = true; + !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete(); + })); + }); } -exports.convertErrorOutput = convertErrorOutput; +exports.throttle = throttle; +//# sourceMappingURL=throttle.js.map -// Shows error message. Throws if config.fatal is true -function error(msg, _code, options) { - // Validate input - if (typeof msg !== 'string') throw new Error('msg must be a string'); +/***/ }), - var DEFAULT_OPTIONS = { - continue: false, - code: 1, - prefix: state.currentCmd + ': ', - silent: false, - }; +/***/ 83435: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (typeof _code === 'number' && isObject(options)) { - options.code = _code; - } else if (isObject(_code)) { // no 'code' - options = _code; - } else if (typeof _code === 'number') { // no 'options' - options = { code: _code }; - } else if (typeof _code !== 'number') { // only 'msg' - options = {}; - } - options = Object.assign({}, DEFAULT_OPTIONS, options); +"use strict"; - if (!state.errorCode) state.errorCode = options.code; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.throttleTime = void 0; +var async_1 = __nccwpck_require__(76072); +var throttle_1 = __nccwpck_require__(36713); +var timer_1 = __nccwpck_require__(59757); +function throttleTime(duration, scheduler, config) { + if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } + var duration$ = timer_1.timer(duration, scheduler); + return throttle_1.throttle(function () { return duration$; }, config); +} +exports.throttleTime = throttleTime; +//# sourceMappingURL=throttleTime.js.map - var logEntry = convertErrorOutput(options.prefix + msg); - state.error = state.error ? state.error + '\n' : ''; - state.error += logEntry; +/***/ }), - // Throw an error, or log the entry - if (config.fatal) throw new Error(logEntry); - if (msg.length > 0 && !options.silent) log(logEntry); +/***/ 91566: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (!options.continue) { - throw { - msg: 'earlyExit', - retValue: (new ShellString('', state.error, state.errorCode)), - }; - } -} -exports.error = error; +"use strict"; -//@ -//@ ### ShellString(str) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ var foo = ShellString('hello world'); -//@ ``` -//@ -//@ Turns a regular string into a string-like object similar to what each -//@ command returns. This has special methods, like `.to()` and `.toEnd()`. -function ShellString(stdout, stderr, code) { - var that; - if (stdout instanceof Array) { - that = stdout; - that.stdout = stdout.join('\n'); - if (stdout.length > 0) that.stdout += '\n'; - } else { - that = new String(stdout); - that.stdout = stdout; - } - that.stderr = stderr; - that.code = code; - // A list of all commands that can appear on the right-hand side of a pipe - // (populated by calls to common.wrap()) - pipeMethods.forEach(function (cmd) { - that[cmd] = shellMethods[cmd].bind(that); - }); - return that; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.throwIfEmpty = void 0; +var EmptyError_1 = __nccwpck_require__(99391); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function throwIfEmpty(errorFactory) { + if (errorFactory === void 0) { errorFactory = defaultErrorFactory; } + return lift_1.operate(function (source, subscriber) { + var hasValue = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + hasValue = true; + subscriber.next(value); + }, function () { return (hasValue ? subscriber.complete() : subscriber.error(errorFactory())); })); + }); } +exports.throwIfEmpty = throwIfEmpty; +function defaultErrorFactory() { + return new EmptyError_1.EmptyError(); +} +//# sourceMappingURL=throwIfEmpty.js.map -exports.ShellString = ShellString; +/***/ }), -// Returns {'alice': true, 'bob': false} when passed a string and dictionary as follows: -// parseOptions('-a', {'a':'alice', 'b':'bob'}); -// Returns {'reference': 'string-value', 'bob': false} when passed two dictionaries of the form: -// parseOptions({'-r': 'string-value'}, {'r':'reference', 'b':'bob'}); -// Throws an error when passed a string that does not start with '-': -// parseOptions('a', {'a':'alice'}); // throws -function parseOptions(opt, map, errorOptions) { - // Validate input - if (typeof opt !== 'string' && !isObject(opt)) { - throw new Error('options must be strings or key-value pairs'); - } else if (!isObject(map)) { - throw new Error('parseOptions() internal error: map must be an object'); - } else if (errorOptions && !isObject(errorOptions)) { - throw new Error('parseOptions() internal error: errorOptions must be object'); - } +/***/ 14643: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (opt === '--') { - // This means there are no options. - return {}; - } +"use strict"; - // All options are false by default - var options = {}; - Object.keys(map).forEach(function (letter) { - var optName = map[letter]; - if (optName[0] !== '!') { - options[optName] = false; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TimeInterval = exports.timeInterval = void 0; +var async_1 = __nccwpck_require__(76072); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function timeInterval(scheduler) { + if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } + return lift_1.operate(function (source, subscriber) { + var last = scheduler.now(); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + var now = scheduler.now(); + var interval = now - last; + last = now; + subscriber.next(new TimeInterval(value, interval)); + })); + }); +} +exports.timeInterval = timeInterval; +var TimeInterval = (function () { + function TimeInterval(value, interval) { + this.value = value; + this.interval = interval; } - }); + return TimeInterval; +}()); +exports.TimeInterval = TimeInterval; +//# sourceMappingURL=timeInterval.js.map - if (opt === '') return options; // defaults +/***/ }), - if (typeof opt === 'string') { - if (opt[0] !== '-') { - throw new Error("Options string must start with a '-'"); - } +/***/ 12051: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // e.g. chars = ['R', 'f'] - var chars = opt.slice(1).split(''); +"use strict"; - chars.forEach(function (c) { - if (c in map) { - var optionName = map[c]; - if (optionName[0] === '!') { - options[optionName.slice(1)] = false; - } else { - options[optionName] = true; - } - } else { - error('option not recognized: ' + c, errorOptions || {}); - } - }); - } else { // opt is an Object - Object.keys(opt).forEach(function (key) { - // key is a string of the form '-r', '-d', etc. - var c = key[1]; - if (c in map) { - var optionName = map[c]; - options[optionName] = opt[key]; // assign the given value - } else { - error('option not recognized: ' + c, errorOptions || {}); - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.timeout = exports.TimeoutError = void 0; +var async_1 = __nccwpck_require__(76072); +var isDate_1 = __nccwpck_require__(60935); +var lift_1 = __nccwpck_require__(38669); +var innerFrom_1 = __nccwpck_require__(57105); +var createErrorClass_1 = __nccwpck_require__(8858); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var executeSchedule_1 = __nccwpck_require__(82877); +exports.TimeoutError = createErrorClass_1.createErrorClass(function (_super) { + return function TimeoutErrorImpl(info) { + if (info === void 0) { info = null; } + _super(this); + this.message = 'Timeout has occurred'; + this.name = 'TimeoutError'; + this.info = info; + }; +}); +function timeout(config, schedulerArg) { + var _a = (isDate_1.isValidDate(config) ? { first: config } : typeof config === 'number' ? { each: config } : config), first = _a.first, each = _a.each, _b = _a.with, _with = _b === void 0 ? timeoutErrorFactory : _b, _c = _a.scheduler, scheduler = _c === void 0 ? schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : async_1.asyncScheduler : _c, _d = _a.meta, meta = _d === void 0 ? null : _d; + if (first == null && each == null) { + throw new TypeError('No timeout provided.'); + } + return lift_1.operate(function (source, subscriber) { + var originalSourceSubscription; + var timerSubscription; + var lastValue = null; + var seen = 0; + var startTimer = function (delay) { + timerSubscription = executeSchedule_1.executeSchedule(subscriber, scheduler, function () { + try { + originalSourceSubscription.unsubscribe(); + innerFrom_1.innerFrom(_with({ + meta: meta, + lastValue: lastValue, + seen: seen, + })).subscribe(subscriber); + } + catch (err) { + subscriber.error(err); + } + }, delay); + }; + originalSourceSubscription = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); + seen++; + subscriber.next((lastValue = value)); + each > 0 && startTimer(each); + }, undefined, undefined, function () { + if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) { + timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); + } + lastValue = null; + })); + !seen && startTimer(first != null ? (typeof first === 'number' ? first : +first - scheduler.now()) : each); }); - } - return options; } -exports.parseOptions = parseOptions; - -// Expands wildcards with matching (ie. existing) file names. -// For example: -// expand(['file*.js']) = ['file1.js', 'file2.js', ...] -// (if the files 'file1.js', 'file2.js', etc, exist in the current dir) -function expand(list) { - if (!Array.isArray(list)) { - throw new TypeError('must be an array'); - } - var expanded = []; - list.forEach(function (listEl) { - // Don't expand non-strings - if (typeof listEl !== 'string') { - expanded.push(listEl); - } else { - var ret; - try { - ret = glob.sync(listEl, config.globOptions); - // if nothing matched, interpret the string literally - ret = ret.length > 0 ? ret : [listEl]; - } catch (e) { - // if glob fails, interpret the string literally - ret = [listEl]; - } - expanded = expanded.concat(ret); - } - }); - return expanded; +exports.timeout = timeout; +function timeoutErrorFactory(info) { + throw new exports.TimeoutError(info); } -exports.expand = expand; +//# sourceMappingURL=timeout.js.map -// Normalizes Buffer creation, using Buffer.alloc if possible. -// Also provides a good default buffer length for most use cases. -var buffer = typeof Buffer.alloc === 'function' ? - function (len) { - return Buffer.alloc(len || config.bufLength); - } : - function (len) { - return new Buffer(len || config.bufLength); - }; -exports.buffer = buffer; +/***/ }), -// Normalizes _unlinkSync() across platforms to match Unix behavior, i.e. -// file can be unlinked even if it's read-only, see https://github.com/joyent/node/issues/3006 -function unlinkSync(file) { - try { - fs.unlinkSync(file); - } catch (e) { - // Try to override file permission - /* istanbul ignore next */ - if (e.code === 'EPERM') { - fs.chmodSync(file, '0666'); - fs.unlinkSync(file); - } else { - throw e; +/***/ 43540: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.timeoutWith = void 0; +var async_1 = __nccwpck_require__(76072); +var isDate_1 = __nccwpck_require__(60935); +var timeout_1 = __nccwpck_require__(12051); +function timeoutWith(due, withObservable, scheduler) { + var first; + var each; + var _with; + scheduler = scheduler !== null && scheduler !== void 0 ? scheduler : async_1.async; + if (isDate_1.isValidDate(due)) { + first = due; + } + else if (typeof due === 'number') { + each = due; + } + if (withObservable) { + _with = function () { return withObservable; }; } - } + else { + throw new TypeError('No observable provided to switch to'); + } + if (first == null && each == null) { + throw new TypeError('No timeout provided.'); + } + return timeout_1.timeout({ + first: first, + each: each, + scheduler: scheduler, + with: _with, + }); } -exports.unlinkSync = unlinkSync; +exports.timeoutWith = timeoutWith; +//# sourceMappingURL=timeoutWith.js.map -// wrappers around common.statFollowLinks and common.statNoFollowLinks that clarify intent -// and improve readability -function statFollowLinks() { - return fs.statSync.apply(fs, arguments); -} -exports.statFollowLinks = statFollowLinks; +/***/ }), -function statNoFollowLinks() { - return fs.lstatSync.apply(fs, arguments); +/***/ 75518: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.timestamp = void 0; +var dateTimestampProvider_1 = __nccwpck_require__(91395); +var map_1 = __nccwpck_require__(5987); +function timestamp(timestampProvider) { + if (timestampProvider === void 0) { timestampProvider = dateTimestampProvider_1.dateTimestampProvider; } + return map_1.map(function (value) { return ({ value: value, timestamp: timestampProvider.now() }); }); } -exports.statNoFollowLinks = statNoFollowLinks; +exports.timestamp = timestamp; +//# sourceMappingURL=timestamp.js.map -// e.g. 'shelljs_a5f185d0443ca...' -function randomFileName() { - function randomHash(count) { - if (count === 1) { - return parseInt(16 * Math.random(), 10).toString(16); - } - var hash = ''; - for (var i = 0; i < count; i++) { - hash += randomHash(1); - } - return hash; - } +/***/ }), - return 'shelljs_' + randomHash(20); +/***/ 35114: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toArray = void 0; +var reduce_1 = __nccwpck_require__(62087); +var lift_1 = __nccwpck_require__(38669); +var arrReducer = function (arr, value) { return (arr.push(value), arr); }; +function toArray() { + return lift_1.operate(function (source, subscriber) { + reduce_1.reduce(arrReducer, [])(source).subscribe(subscriber); + }); } -exports.randomFileName = randomFileName; +exports.toArray = toArray; +//# sourceMappingURL=toArray.js.map -// Common wrapper for all Unix-like commands that performs glob expansion, -// command-logging, and other nice things -function wrap(cmd, fn, options) { - options = options || {}; - return function () { - var retValue = null; +/***/ }), - state.currentCmd = cmd; - state.error = null; - state.errorCode = 0; +/***/ 98255: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - try { - var args = [].slice.call(arguments, 0); +"use strict"; - // Log the command to stderr, if appropriate - if (config.verbose) { - console.error.apply(console, [cmd].concat(args)); - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.window = void 0; +var Subject_1 = __nccwpck_require__(49944); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var noop_1 = __nccwpck_require__(11642); +var innerFrom_1 = __nccwpck_require__(57105); +function window(windowBoundaries) { + return lift_1.operate(function (source, subscriber) { + var windowSubject = new Subject_1.Subject(); + subscriber.next(windowSubject.asObservable()); + var errorHandler = function (err) { + windowSubject.error(err); + subscriber.error(err); + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.next(value); }, function () { + windowSubject.complete(); + subscriber.complete(); + }, errorHandler)); + innerFrom_1.innerFrom(windowBoundaries).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { + windowSubject.complete(); + subscriber.next((windowSubject = new Subject_1.Subject())); + }, noop_1.noop, errorHandler)); + return function () { + windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.unsubscribe(); + windowSubject = null; + }; + }); +} +exports.window = window; +//# sourceMappingURL=window.js.map - // If this is coming from a pipe, let's set the pipedValue (otherwise, set - // it to the empty string) - state.pipedValue = (this && typeof this.stdout === 'string') ? this.stdout : ''; +/***/ }), - if (options.unix === false) { // this branch is for exec() - retValue = fn.apply(this, args); - } else { // and this branch is for everything else - if (isObject(args[0]) && args[0].constructor.name === 'Object') { - // a no-op, allowing the syntax `touch({'-r': file}, ...)` - } else if (args.length === 0 || typeof args[0] !== 'string' || args[0].length <= 1 || args[0][0] !== '-') { - args.unshift(''); // only add dummy option if '-option' not already present +/***/ 73144: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.windowCount = void 0; +var Subject_1 = __nccwpck_require__(49944); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +function windowCount(windowSize, startWindowEvery) { + if (startWindowEvery === void 0) { startWindowEvery = 0; } + var startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize; + return lift_1.operate(function (source, subscriber) { + var windows = [new Subject_1.Subject()]; + var starts = []; + var count = 0; + subscriber.next(windows[0].asObservable()); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + var e_1, _a; + try { + for (var windows_1 = __values(windows), windows_1_1 = windows_1.next(); !windows_1_1.done; windows_1_1 = windows_1.next()) { + var window_1 = windows_1_1.value; + window_1.next(value); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (windows_1_1 && !windows_1_1.done && (_a = windows_1.return)) _a.call(windows_1); + } + finally { if (e_1) throw e_1.error; } + } + var c = count - windowSize + 1; + if (c >= 0 && c % startEvery === 0) { + windows.shift().complete(); + } + if (++count % startEvery === 0) { + var window_2 = new Subject_1.Subject(); + windows.push(window_2); + subscriber.next(window_2.asObservable()); + } + }, function () { + while (windows.length > 0) { + windows.shift().complete(); + } + subscriber.complete(); + }, function (err) { + while (windows.length > 0) { + windows.shift().error(err); + } + subscriber.error(err); + }, function () { + starts = null; + windows = null; + })); + }); +} +exports.windowCount = windowCount; +//# sourceMappingURL=windowCount.js.map - // flatten out arrays that are arguments, to make the syntax: - // `cp([file1, file2, file3], dest);` - // equivalent to: - // `cp(file1, file2, file3, dest);` - args = args.reduce(function (accum, cur) { - if (Array.isArray(cur)) { - return accum.concat(cur); - } - accum.push(cur); - return accum; - }, []); +/***/ }), - // Convert ShellStrings (basically just String objects) to regular strings - args = args.map(function (arg) { - if (isObject(arg) && arg.constructor.name === 'String') { - return arg.toString(); - } - return arg; - }); +/***/ 2738: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // Expand the '~' if appropriate - var homeDir = os.homedir(); - args = args.map(function (arg) { - if (typeof arg === 'string' && arg.slice(0, 2) === '~/' || arg === '~') { - return arg.replace(/^~/, homeDir); - } - return arg; - }); +"use strict"; - // Perform glob-expansion on all arguments after globStart, but preserve - // the arguments before it (like regexes for sed and grep) - if (!config.noglob && options.allowGlobbing === true) { - args = args.slice(0, options.globStart).concat(expand(args.slice(options.globStart))); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.windowTime = void 0; +var Subject_1 = __nccwpck_require__(49944); +var async_1 = __nccwpck_require__(76072); +var Subscription_1 = __nccwpck_require__(79548); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var arrRemove_1 = __nccwpck_require__(68499); +var args_1 = __nccwpck_require__(34890); +var executeSchedule_1 = __nccwpck_require__(82877); +function windowTime(windowTimeSpan) { + var _a, _b; + var otherArgs = []; + for (var _i = 1; _i < arguments.length; _i++) { + otherArgs[_i - 1] = arguments[_i]; + } + var scheduler = (_a = args_1.popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : async_1.asyncScheduler; + var windowCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null; + var maxWindowSize = otherArgs[1] || Infinity; + return lift_1.operate(function (source, subscriber) { + var windowRecords = []; + var restartOnClose = false; + var closeWindow = function (record) { + var window = record.window, subs = record.subs; + window.complete(); + subs.unsubscribe(); + arrRemove_1.arrRemove(windowRecords, record); + restartOnClose && startWindow(); + }; + var startWindow = function () { + if (windowRecords) { + var subs = new Subscription_1.Subscription(); + subscriber.add(subs); + var window_1 = new Subject_1.Subject(); + var record_1 = { + window: window_1, + subs: subs, + seen: 0, + }; + windowRecords.push(record_1); + subscriber.next(window_1.asObservable()); + executeSchedule_1.executeSchedule(subs, scheduler, function () { return closeWindow(record_1); }, windowTimeSpan); + } + }; + if (windowCreationInterval !== null && windowCreationInterval >= 0) { + executeSchedule_1.executeSchedule(subscriber, scheduler, startWindow, windowCreationInterval, true); } + else { + restartOnClose = true; + } + startWindow(); + var loop = function (cb) { return windowRecords.slice().forEach(cb); }; + var terminate = function (cb) { + loop(function (_a) { + var window = _a.window; + return cb(window); + }); + cb(subscriber); + subscriber.unsubscribe(); + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + loop(function (record) { + record.window.next(value); + maxWindowSize <= ++record.seen && closeWindow(record); + }); + }, function () { return terminate(function (consumer) { return consumer.complete(); }); }, function (err) { return terminate(function (consumer) { return consumer.error(err); }); })); + return function () { + windowRecords = null; + }; + }); +} +exports.windowTime = windowTime; +//# sourceMappingURL=windowTime.js.map - try { - // parse options if options are provided - if (isObject(options.cmdOptions)) { - args[0] = parseOptions(args[0], options.cmdOptions); - } +/***/ }), - retValue = fn.apply(this, args); - } catch (e) { - /* istanbul ignore else */ - if (e.msg === 'earlyExit') { - retValue = e.retValue; - } else { - throw e; // this is probably a bug that should be thrown up the call stack - } +/***/ 52741: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; } - } - } catch (e) { - /* istanbul ignore next */ - if (!state.error) { - // If state.error hasn't been set it's an error thrown by Node, not us - probably a bug... - e.name = 'ShellJSInternalError'; - throw e; - } - if (config.fatal) throw e; - } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.windowToggle = void 0; +var Subject_1 = __nccwpck_require__(49944); +var Subscription_1 = __nccwpck_require__(79548); +var lift_1 = __nccwpck_require__(38669); +var innerFrom_1 = __nccwpck_require__(57105); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var noop_1 = __nccwpck_require__(11642); +var arrRemove_1 = __nccwpck_require__(68499); +function windowToggle(openings, closingSelector) { + return lift_1.operate(function (source, subscriber) { + var windows = []; + var handleError = function (err) { + while (0 < windows.length) { + windows.shift().error(err); + } + subscriber.error(err); + }; + innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (openValue) { + var window = new Subject_1.Subject(); + windows.push(window); + var closingSubscription = new Subscription_1.Subscription(); + var closeWindow = function () { + arrRemove_1.arrRemove(windows, window); + window.complete(); + closingSubscription.unsubscribe(); + }; + var closingNotifier; + try { + closingNotifier = innerFrom_1.innerFrom(closingSelector(openValue)); + } + catch (err) { + handleError(err); + return; + } + subscriber.next(window.asObservable()); + closingSubscription.add(closingNotifier.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, closeWindow, noop_1.noop, handleError))); + }, noop_1.noop)); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + var e_1, _a; + var windowsCopy = windows.slice(); + try { + for (var windowsCopy_1 = __values(windowsCopy), windowsCopy_1_1 = windowsCopy_1.next(); !windowsCopy_1_1.done; windowsCopy_1_1 = windowsCopy_1.next()) { + var window_1 = windowsCopy_1_1.value; + window_1.next(value); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (windowsCopy_1_1 && !windowsCopy_1_1.done && (_a = windowsCopy_1.return)) _a.call(windowsCopy_1); + } + finally { if (e_1) throw e_1.error; } + } + }, function () { + while (0 < windows.length) { + windows.shift().complete(); + } + subscriber.complete(); + }, handleError, function () { + while (0 < windows.length) { + windows.shift().unsubscribe(); + } + })); + }); +} +exports.windowToggle = windowToggle; +//# sourceMappingURL=windowToggle.js.map - if (options.wrapOutput && - (typeof retValue === 'string' || Array.isArray(retValue))) { - retValue = new ShellString(retValue, state.error, state.errorCode); - } +/***/ }), - state.currentCmd = 'shell.js'; - return retValue; - }; -} // wrap -exports.wrap = wrap; +/***/ 82645: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// This returns all the input that is piped into the current command (or the -// empty string, if this isn't on the right-hand side of a pipe -function _readFromPipe() { - return state.pipedValue; +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.windowWhen = void 0; +var Subject_1 = __nccwpck_require__(49944); +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var innerFrom_1 = __nccwpck_require__(57105); +function windowWhen(closingSelector) { + return lift_1.operate(function (source, subscriber) { + var window; + var closingSubscriber; + var handleError = function (err) { + window.error(err); + subscriber.error(err); + }; + var openWindow = function () { + closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); + window === null || window === void 0 ? void 0 : window.complete(); + window = new Subject_1.Subject(); + subscriber.next(window.asObservable()); + var closingNotifier; + try { + closingNotifier = innerFrom_1.innerFrom(closingSelector()); + } + catch (err) { + handleError(err); + return; + } + closingNotifier.subscribe((closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openWindow, openWindow, handleError))); + }; + openWindow(); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return window.next(value); }, function () { + window.complete(); + subscriber.complete(); + }, handleError, function () { + closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); + window = null; + })); + }); } -exports.readFromPipe = _readFromPipe; +exports.windowWhen = windowWhen; +//# sourceMappingURL=windowWhen.js.map -var DEFAULT_WRAP_OPTIONS = { - allowGlobbing: true, - canReceivePipe: false, - cmdOptions: null, - globStart: 1, - pipeOnly: false, - wrapOutput: true, - unix: true, -}; +/***/ }), -// This is populated during plugin registration -var pipeMethods = []; +/***/ 20501: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -// Register a new ShellJS command -function _register(name, implementation, wrapOptions) { - wrapOptions = wrapOptions || {}; +"use strict"; - // Validate options - Object.keys(wrapOptions).forEach(function (option) { - if (!DEFAULT_WRAP_OPTIONS.hasOwnProperty(option)) { - throw new Error("Unknown option '" + option + "'"); +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } - if (typeof wrapOptions[option] !== typeof DEFAULT_WRAP_OPTIONS[option]) { - throw new TypeError("Unsupported type '" + typeof wrapOptions[option] + - "' for option '" + option + "'"); + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } } - }); + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.withLatestFrom = void 0; +var lift_1 = __nccwpck_require__(38669); +var OperatorSubscriber_1 = __nccwpck_require__(69549); +var innerFrom_1 = __nccwpck_require__(57105); +var identity_1 = __nccwpck_require__(60283); +var noop_1 = __nccwpck_require__(11642); +var args_1 = __nccwpck_require__(34890); +function withLatestFrom() { + var inputs = []; + for (var _i = 0; _i < arguments.length; _i++) { + inputs[_i] = arguments[_i]; + } + var project = args_1.popResultSelector(inputs); + return lift_1.operate(function (source, subscriber) { + var len = inputs.length; + var otherValues = new Array(len); + var hasValue = inputs.map(function () { return false; }); + var ready = false; + var _loop_1 = function (i) { + innerFrom_1.innerFrom(inputs[i]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + otherValues[i] = value; + if (!ready && !hasValue[i]) { + hasValue[i] = true; + (ready = hasValue.every(identity_1.identity)) && (hasValue = null); + } + }, noop_1.noop)); + }; + for (var i = 0; i < len; i++) { + _loop_1(i); + } + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { + if (ready) { + var values = __spreadArray([value], __read(otherValues)); + subscriber.next(project ? project.apply(void 0, __spreadArray([], __read(values))) : values); + } + })); + }); +} +exports.withLatestFrom = withLatestFrom; +//# sourceMappingURL=withLatestFrom.js.map - // If an option isn't specified, use the default - wrapOptions = Object.assign({}, DEFAULT_WRAP_OPTIONS, wrapOptions); +/***/ }), - if (shell.hasOwnProperty(name)) { - throw new Error('Command `' + name + '` already exists'); - } +/***/ 17600: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - if (wrapOptions.pipeOnly) { - wrapOptions.canReceivePipe = true; - shellMethods[name] = wrap(name, implementation, wrapOptions); - } else { - shell[name] = wrap(name, implementation, wrapOptions); - } +"use strict"; - if (wrapOptions.canReceivePipe) { - pipeMethods.push(name); - } +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.zip = void 0; +var zip_1 = __nccwpck_require__(62504); +var lift_1 = __nccwpck_require__(38669); +function zip() { + var sources = []; + for (var _i = 0; _i < arguments.length; _i++) { + sources[_i] = arguments[_i]; + } + return lift_1.operate(function (source, subscriber) { + zip_1.zip.apply(void 0, __spreadArray([source], __read(sources))).subscribe(subscriber); + }); } -exports.register = _register; - +exports.zip = zip; +//# sourceMappingURL=zip.js.map /***/ }), -/***/ 34932: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 92335: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var fs = __nccwpck_require__(57147); -var path = __nccwpck_require__(71017); -var common = __nccwpck_require__(53687); +"use strict"; -common.register('cp', _cp, { - cmdOptions: { - 'f': '!no_force', - 'n': 'no_force', - 'u': 'update', - 'R': 'recursive', - 'r': 'recursive', - 'L': 'followsymlink', - 'P': 'noFollowsymlink', - }, - wrapOutput: false, -}); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.zipAll = void 0; +var zip_1 = __nccwpck_require__(62504); +var joinAllInternals_1 = __nccwpck_require__(29341); +function zipAll(project) { + return joinAllInternals_1.joinAllInternals(zip_1.zip, project); +} +exports.zipAll = zipAll; +//# sourceMappingURL=zipAll.js.map -// Buffered file copy, synchronous -// (Using readFileSync() + writeFileSync() could easily cause a memory overflow -// with large files) -function copyFileSync(srcFile, destFile, options) { - if (!fs.existsSync(srcFile)) { - common.error('copyFileSync: no such file or directory: ' + srcFile); - } +/***/ }), - var isWindows = process.platform === 'win32'; +/***/ 95520: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - // Check the mtimes of the files if the '-u' flag is provided - try { - if (options.update && common.statFollowLinks(srcFile).mtime < fs.statSync(destFile).mtime) { - return; - } - } catch (e) { - // If we're here, destFile probably doesn't exist, so just do a normal copy - } +"use strict"; - if (common.statNoFollowLinks(srcFile).isSymbolicLink() && !options.followsymlink) { +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; try { - common.statNoFollowLinks(destFile); - common.unlinkSync(destFile); // re-link it - } catch (e) { - // it doesn't exist, so no work needs to be done + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } - - var symlinkFull = fs.readlinkSync(srcFile); - fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null); - } else { - var buf = common.buffer(); - var bufLength = buf.length; - var bytesRead = bufLength; - var pos = 0; - var fdr = null; - var fdw = null; - - try { - fdr = fs.openSync(srcFile, 'r'); - } catch (e) { - /* istanbul ignore next */ - common.error('copyFileSync: could not read src file (' + srcFile + ')'); + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } } - - try { - fdw = fs.openSync(destFile, 'w'); - } catch (e) { - /* istanbul ignore next */ - common.error('copyFileSync: could not write to dest file (code=' + e.code + '):' + destFile); + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.zipWith = void 0; +var zip_1 = __nccwpck_require__(17600); +function zipWith() { + var otherInputs = []; + for (var _i = 0; _i < arguments.length; _i++) { + otherInputs[_i] = arguments[_i]; } + return zip_1.zip.apply(void 0, __spreadArray([], __read(otherInputs))); +} +exports.zipWith = zipWith; +//# sourceMappingURL=zipWith.js.map - while (bytesRead === bufLength) { - bytesRead = fs.readSync(fdr, buf, 0, bufLength, pos); - fs.writeSync(fdw, buf, 0, bytesRead); - pos += bytesRead; - } +/***/ }), - fs.closeSync(fdr); - fs.closeSync(fdw); +/***/ 11348: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - fs.chmodSync(destFile, common.statFollowLinks(srcFile).mode); - } +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.scheduleArray = void 0; +var Observable_1 = __nccwpck_require__(53014); +function scheduleArray(input, scheduler) { + return new Observable_1.Observable(function (subscriber) { + var i = 0; + return scheduler.schedule(function () { + if (i === input.length) { + subscriber.complete(); + } + else { + subscriber.next(input[i++]); + if (!subscriber.closed) { + this.schedule(); + } + } + }); + }); } +exports.scheduleArray = scheduleArray; +//# sourceMappingURL=scheduleArray.js.map -// Recursively copies 'sourceDir' into 'destDir' -// Adapted from https://github.com/ryanmcgrath/wrench-js -// -// Copyright (c) 2010 Ryan McGrath -// Copyright (c) 2012 Artur Adib -// -// Licensed under the MIT License -// http://www.opensource.org/licenses/mit-license.php -function cpdirSyncRecursive(sourceDir, destDir, currentDepth, opts) { - if (!opts) opts = {}; +/***/ }), - // Ensure there is not a run away recursive copy - if (currentDepth >= common.config.maxdepth) return; - currentDepth++; - - var isWindows = process.platform === 'win32'; - - // Create the directory where all our junk is moving to; read the mode of the - // source directory and mirror it - try { - fs.mkdirSync(destDir); - } catch (e) { - // if the directory already exists, that's okay - if (e.code !== 'EEXIST') throw e; - } +/***/ 75347: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - var files = fs.readdirSync(sourceDir); +"use strict"; - for (var i = 0; i < files.length; i++) { - var srcFile = sourceDir + '/' + files[i]; - var destFile = destDir + '/' + files[i]; - var srcFileStat = common.statNoFollowLinks(srcFile); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.scheduleAsyncIterable = void 0; +var Observable_1 = __nccwpck_require__(53014); +var executeSchedule_1 = __nccwpck_require__(82877); +function scheduleAsyncIterable(input, scheduler) { + if (!input) { + throw new Error('Iterable cannot be null'); + } + return new Observable_1.Observable(function (subscriber) { + executeSchedule_1.executeSchedule(subscriber, scheduler, function () { + var iterator = input[Symbol.asyncIterator](); + executeSchedule_1.executeSchedule(subscriber, scheduler, function () { + iterator.next().then(function (result) { + if (result.done) { + subscriber.complete(); + } + else { + subscriber.next(result.value); + } + }); + }, 0, true); + }); + }); +} +exports.scheduleAsyncIterable = scheduleAsyncIterable; +//# sourceMappingURL=scheduleAsyncIterable.js.map - var symlinkFull; - if (opts.followsymlink) { - if (cpcheckcycle(sourceDir, srcFile)) { - // Cycle link found. - console.error('Cycle link found.'); - symlinkFull = fs.readlinkSync(srcFile); - fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null); - continue; - } - } - if (srcFileStat.isDirectory()) { - /* recursion this thing right on back. */ - cpdirSyncRecursive(srcFile, destFile, currentDepth, opts); - } else if (srcFileStat.isSymbolicLink() && !opts.followsymlink) { - symlinkFull = fs.readlinkSync(srcFile); - try { - common.statNoFollowLinks(destFile); - common.unlinkSync(destFile); // re-link it - } catch (e) { - // it doesn't exist, so no work needs to be done - } - fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null); - } else if (srcFileStat.isSymbolicLink() && opts.followsymlink) { - srcFileStat = common.statFollowLinks(srcFile); - if (srcFileStat.isDirectory()) { - cpdirSyncRecursive(srcFile, destFile, currentDepth, opts); - } else { - copyFileSync(srcFile, destFile, opts); - } - } else { - /* At this point, we've hit a file actually worth copying... so copy it on over. */ - if (fs.existsSync(destFile) && opts.no_force) { - common.log('skipping existing file: ' + files[i]); - } else { - copyFileSync(srcFile, destFile, opts); - } - } - } // for files +/***/ }), - // finally change the mode for the newly created directory (otherwise, we - // couldn't add files to a read-only directory). - var checkDir = common.statFollowLinks(sourceDir); - fs.chmodSync(destDir, checkDir.mode); -} // cpdirSyncRecursive +/***/ 59461: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// Checks if cureent file was created recently -function checkRecentCreated(sources, index) { - var lookedSource = sources[index]; - return sources.slice(0, index).some(function (src) { - return path.basename(src) === path.basename(lookedSource); - }); -} +"use strict"; -function cpcheckcycle(sourceDir, srcFile) { - var srcFileStat = common.statNoFollowLinks(srcFile); - if (srcFileStat.isSymbolicLink()) { - // Do cycle check. For example: - // $ mkdir -p 1/2/3/4 - // $ cd 1/2/3/4 - // $ ln -s ../../3 link - // $ cd ../../../.. - // $ cp -RL 1 copy - var cyclecheck = common.statFollowLinks(srcFile); - if (cyclecheck.isDirectory()) { - var sourcerealpath = fs.realpathSync(sourceDir); - var symlinkrealpath = fs.realpathSync(srcFile); - var re = new RegExp(symlinkrealpath); - if (re.test(sourcerealpath)) { - return true; - } - } - } - return false; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.scheduleIterable = void 0; +var Observable_1 = __nccwpck_require__(53014); +var iterator_1 = __nccwpck_require__(85517); +var isFunction_1 = __nccwpck_require__(67206); +var executeSchedule_1 = __nccwpck_require__(82877); +function scheduleIterable(input, scheduler) { + return new Observable_1.Observable(function (subscriber) { + var iterator; + executeSchedule_1.executeSchedule(subscriber, scheduler, function () { + iterator = input[iterator_1.iterator](); + executeSchedule_1.executeSchedule(subscriber, scheduler, function () { + var _a; + var value; + var done; + try { + (_a = iterator.next(), value = _a.value, done = _a.done); + } + catch (err) { + subscriber.error(err); + return; + } + if (done) { + subscriber.complete(); + } + else { + subscriber.next(value); + } + }, 0, true); + }); + return function () { return isFunction_1.isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return(); }; + }); } +exports.scheduleIterable = scheduleIterable; +//# sourceMappingURL=scheduleIterable.js.map -//@ -//@ ### cp([options,] source [, source ...], dest) -//@ ### cp([options,] source_array, dest) -//@ -//@ Available options: -//@ -//@ + `-f`: force (default behavior) -//@ + `-n`: no-clobber -//@ + `-u`: only copy if `source` is newer than `dest` -//@ + `-r`, `-R`: recursive -//@ + `-L`: follow symlinks -//@ + `-P`: don't follow symlinks -//@ -//@ Examples: -//@ -//@ ```javascript -//@ cp('file1', 'dir1'); -//@ cp('-R', 'path/to/dir/', '~/newCopy/'); -//@ cp('-Rf', '/tmp/*', '/usr/local/*', '/home/tmp'); -//@ cp('-Rf', ['/tmp/*', '/usr/local/*'], '/home/tmp'); // same as above -//@ ``` -//@ -//@ Copies files. -function _cp(options, sources, dest) { - // If we're missing -R, it actually implies -L (unless -P is explicit) - if (options.followsymlink) { - options.noFollowsymlink = false; - } - if (!options.recursive && !options.noFollowsymlink) { - options.followsymlink = true; - } - - // Get sources, dest - if (arguments.length < 3) { - common.error('missing and/or '); - } else { - sources = [].slice.call(arguments, 1, arguments.length - 1); - dest = arguments[arguments.length - 1]; - } +/***/ }), - var destExists = fs.existsSync(dest); - var destStat = destExists && common.statFollowLinks(dest); +/***/ 17096: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // Dest is not existing dir, but multiple sources given - if ((!destExists || !destStat.isDirectory()) && sources.length > 1) { - common.error('dest is not a directory (too many sources)'); - } +"use strict"; - // Dest is an existing file, but -n is given - if (destExists && destStat.isFile() && options.no_force) { - return new common.ShellString('', '', 0); - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.scheduleObservable = void 0; +var innerFrom_1 = __nccwpck_require__(57105); +var observeOn_1 = __nccwpck_require__(22451); +var subscribeOn_1 = __nccwpck_require__(7224); +function scheduleObservable(input, scheduler) { + return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler)); +} +exports.scheduleObservable = scheduleObservable; +//# sourceMappingURL=scheduleObservable.js.map - sources.forEach(function (src, srcIndex) { - if (!fs.existsSync(src)) { - if (src === '') src = "''"; // if src was empty string, display empty string - common.error('no such file or directory: ' + src, { continue: true }); - return; // skip file - } - var srcStat = common.statFollowLinks(src); - if (!options.noFollowsymlink && srcStat.isDirectory()) { - if (!options.recursive) { - // Non-Recursive - common.error("omitting directory '" + src + "'", { continue: true }); - } else { - // Recursive - // 'cp /a/source dest' should create 'source' in 'dest' - var newDest = (destStat && destStat.isDirectory()) ? - path.join(dest, path.basename(src)) : - dest; +/***/ }), - try { - common.statFollowLinks(path.dirname(dest)); - cpdirSyncRecursive(src, newDest, 0, { no_force: options.no_force, followsymlink: options.followsymlink }); - } catch (e) { - /* istanbul ignore next */ - common.error("cannot create directory '" + dest + "': No such file or directory"); - } - } - } else { - // If here, src is a file +/***/ 24087: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // When copying to '/path/dir': - // thisDest = '/path/dir/file1' - var thisDest = dest; - if (destStat && destStat.isDirectory()) { - thisDest = path.normalize(dest + '/' + path.basename(src)); - } +"use strict"; - var thisDestExists = fs.existsSync(thisDest); - if (thisDestExists && checkRecentCreated(sources, srcIndex)) { - // cannot overwrite file created recently in current execution, but we want to continue copying other files - if (!options.no_force) { - common.error("will not overwrite just-created '" + thisDest + "' with '" + src + "'", { continue: true }); - } - return; - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.schedulePromise = void 0; +var innerFrom_1 = __nccwpck_require__(57105); +var observeOn_1 = __nccwpck_require__(22451); +var subscribeOn_1 = __nccwpck_require__(7224); +function schedulePromise(input, scheduler) { + return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler)); +} +exports.schedulePromise = schedulePromise; +//# sourceMappingURL=schedulePromise.js.map - if (thisDestExists && options.no_force) { - return; // skip file - } +/***/ }), - if (path.relative(src, thisDest) === '') { - // a file cannot be copied to itself, but we want to continue copying other files - common.error("'" + thisDest + "' and '" + src + "' are the same file", { continue: true }); - return; - } +/***/ 5967: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - copyFileSync(src, thisDest, options); - } - }); // forEach(src) +"use strict"; - return new common.ShellString('', common.state.error, common.state.errorCode); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.scheduleReadableStreamLike = void 0; +var scheduleAsyncIterable_1 = __nccwpck_require__(75347); +var isReadableStreamLike_1 = __nccwpck_require__(99621); +function scheduleReadableStreamLike(input, scheduler) { + return scheduleAsyncIterable_1.scheduleAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(input), scheduler); } -module.exports = _cp; - +exports.scheduleReadableStreamLike = scheduleReadableStreamLike; +//# sourceMappingURL=scheduleReadableStreamLike.js.map /***/ }), -/***/ 41178: +/***/ 6151: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var common = __nccwpck_require__(53687); -var _cd = __nccwpck_require__(42051); -var path = __nccwpck_require__(71017); +"use strict"; -common.register('dirs', _dirs, { - wrapOutput: false, -}); -common.register('pushd', _pushd, { - wrapOutput: false, -}); -common.register('popd', _popd, { - wrapOutput: false, -}); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.scheduled = void 0; +var scheduleObservable_1 = __nccwpck_require__(17096); +var schedulePromise_1 = __nccwpck_require__(24087); +var scheduleArray_1 = __nccwpck_require__(11348); +var scheduleIterable_1 = __nccwpck_require__(59461); +var scheduleAsyncIterable_1 = __nccwpck_require__(75347); +var isInteropObservable_1 = __nccwpck_require__(67984); +var isPromise_1 = __nccwpck_require__(65585); +var isArrayLike_1 = __nccwpck_require__(24461); +var isIterable_1 = __nccwpck_require__(94292); +var isAsyncIterable_1 = __nccwpck_require__(44408); +var throwUnobservableError_1 = __nccwpck_require__(97364); +var isReadableStreamLike_1 = __nccwpck_require__(99621); +var scheduleReadableStreamLike_1 = __nccwpck_require__(5967); +function scheduled(input, scheduler) { + if (input != null) { + if (isInteropObservable_1.isInteropObservable(input)) { + return scheduleObservable_1.scheduleObservable(input, scheduler); + } + if (isArrayLike_1.isArrayLike(input)) { + return scheduleArray_1.scheduleArray(input, scheduler); + } + if (isPromise_1.isPromise(input)) { + return schedulePromise_1.schedulePromise(input, scheduler); + } + if (isAsyncIterable_1.isAsyncIterable(input)) { + return scheduleAsyncIterable_1.scheduleAsyncIterable(input, scheduler); + } + if (isIterable_1.isIterable(input)) { + return scheduleIterable_1.scheduleIterable(input, scheduler); + } + if (isReadableStreamLike_1.isReadableStreamLike(input)) { + return scheduleReadableStreamLike_1.scheduleReadableStreamLike(input, scheduler); + } + } + throw throwUnobservableError_1.createInvalidObservableTypeError(input); +} +exports.scheduled = scheduled; +//# sourceMappingURL=scheduled.js.map -// Pushd/popd/dirs internals -var _dirStack = []; +/***/ }), -function _isStackIndex(index) { - return (/^[\-+]\d+$/).test(index); -} +/***/ 83848: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -function _parseStackIndex(index) { - if (_isStackIndex(index)) { - if (Math.abs(index) < _dirStack.length + 1) { // +1 for pwd - return (/^-/).test(index) ? Number(index) - 1 : Number(index); - } - common.error(index + ': directory stack index out of range'); - } else { - common.error(index + ': invalid number'); - } -} +"use strict"; -function _actualDirStack() { - return [process.cwd()].concat(_dirStack); -} +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Action = void 0; +var Subscription_1 = __nccwpck_require__(79548); +var Action = (function (_super) { + __extends(Action, _super); + function Action(scheduler, work) { + return _super.call(this) || this; + } + Action.prototype.schedule = function (state, delay) { + if (delay === void 0) { delay = 0; } + return this; + }; + return Action; +}(Subscription_1.Subscription)); +exports.Action = Action; +//# sourceMappingURL=Action.js.map -//@ -//@ ### pushd([options,] [dir | '-N' | '+N']) -//@ -//@ Available options: -//@ -//@ + `-n`: Suppresses the normal change of directory when adding directories to the stack, so that only the stack is manipulated. -//@ + `-q`: Supresses output to the console. -//@ -//@ Arguments: -//@ -//@ + `dir`: Sets the current working directory to the top of the stack, then executes the equivalent of `cd dir`. -//@ + `+N`: Brings the Nth directory (counting from the left of the list printed by dirs, starting with zero) to the top of the list by rotating the stack. -//@ + `-N`: Brings the Nth directory (counting from the right of the list printed by dirs, starting with zero) to the top of the list by rotating the stack. -//@ -//@ Examples: -//@ -//@ ```javascript -//@ // process.cwd() === '/usr' -//@ pushd('/etc'); // Returns /etc /usr -//@ pushd('+1'); // Returns /usr /etc -//@ ``` -//@ -//@ Save the current directory on the top of the directory stack and then `cd` to `dir`. With no arguments, `pushd` exchanges the top two directories. Returns an array of paths in the stack. -function _pushd(options, dir) { - if (_isStackIndex(options)) { - dir = options; - options = ''; - } +/***/ }), - options = common.parseOptions(options, { - 'n': 'no-cd', - 'q': 'quiet', - }); +/***/ 95991: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - var dirs = _actualDirStack(); +"use strict"; - if (dir === '+0') { - return dirs; // +0 is a noop - } else if (!dir) { - if (dirs.length > 1) { - dirs = dirs.splice(1, 1).concat(dirs); - } else { - return common.error('no other directory'); - } - } else if (_isStackIndex(dir)) { - var n = _parseStackIndex(dir); - dirs = dirs.slice(n).concat(dirs.slice(0, n)); - } else { - if (options['no-cd']) { - dirs.splice(1, 0, dir); - } else { - dirs.unshift(dir); +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AnimationFrameAction = void 0; +var AsyncAction_1 = __nccwpck_require__(13280); +var animationFrameProvider_1 = __nccwpck_require__(62738); +var AnimationFrameAction = (function (_super) { + __extends(AnimationFrameAction, _super); + function AnimationFrameAction(scheduler, work) { + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + return _this; } - } + AnimationFrameAction.prototype.requestAsyncId = function (scheduler, id, delay) { + if (delay === void 0) { delay = 0; } + if (delay !== null && delay > 0) { + return _super.prototype.requestAsyncId.call(this, scheduler, id, delay); + } + scheduler.actions.push(this); + return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function () { return scheduler.flush(undefined); })); + }; + AnimationFrameAction.prototype.recycleAsyncId = function (scheduler, id, delay) { + var _a; + if (delay === void 0) { delay = 0; } + if (delay != null ? delay > 0 : this.delay > 0) { + return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay); + } + var actions = scheduler.actions; + if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) { + animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id); + scheduler._scheduled = undefined; + } + return undefined; + }; + return AnimationFrameAction; +}(AsyncAction_1.AsyncAction)); +exports.AnimationFrameAction = AnimationFrameAction; +//# sourceMappingURL=AnimationFrameAction.js.map - if (options['no-cd']) { - dirs = dirs.slice(1); - } else { - dir = path.resolve(dirs.shift()); - _cd('', dir); - } +/***/ }), - _dirStack = dirs; - return _dirs(options.quiet ? '-q' : ''); -} -exports.pushd = _pushd; +/***/ 98768: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -//@ -//@ -//@ ### popd([options,] ['-N' | '+N']) -//@ -//@ Available options: -//@ -//@ + `-n`: Suppress the normal directory change when removing directories from the stack, so that only the stack is manipulated. -//@ + `-q`: Supresses output to the console. -//@ -//@ Arguments: -//@ -//@ + `+N`: Removes the Nth directory (counting from the left of the list printed by dirs), starting with zero. -//@ + `-N`: Removes the Nth directory (counting from the right of the list printed by dirs), starting with zero. -//@ -//@ Examples: -//@ -//@ ```javascript -//@ echo(process.cwd()); // '/usr' -//@ pushd('/etc'); // '/etc /usr' -//@ echo(process.cwd()); // '/etc' -//@ popd(); // '/usr' -//@ echo(process.cwd()); // '/usr' -//@ ``` -//@ -//@ When no arguments are given, `popd` removes the top directory from the stack and performs a `cd` to the new top directory. The elements are numbered from 0, starting at the first directory listed with dirs (i.e., `popd` is equivalent to `popd +0`). Returns an array of paths in the stack. -function _popd(options, index) { - if (_isStackIndex(options)) { - index = options; - options = ''; - } +"use strict"; - options = common.parseOptions(options, { - 'n': 'no-cd', - 'q': 'quiet', - }); +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AnimationFrameScheduler = void 0; +var AsyncScheduler_1 = __nccwpck_require__(61673); +var AnimationFrameScheduler = (function (_super) { + __extends(AnimationFrameScheduler, _super); + function AnimationFrameScheduler() { + return _super !== null && _super.apply(this, arguments) || this; + } + AnimationFrameScheduler.prototype.flush = function (action) { + this._active = true; + var flushId = this._scheduled; + this._scheduled = undefined; + var actions = this.actions; + var error; + action = action || actions.shift(); + do { + if ((error = action.execute(action.state, action.delay))) { + break; + } + } while ((action = actions[0]) && action.id === flushId && actions.shift()); + this._active = false; + if (error) { + while ((action = actions[0]) && action.id === flushId && actions.shift()) { + action.unsubscribe(); + } + throw error; + } + }; + return AnimationFrameScheduler; +}(AsyncScheduler_1.AsyncScheduler)); +exports.AnimationFrameScheduler = AnimationFrameScheduler; +//# sourceMappingURL=AnimationFrameScheduler.js.map - if (!_dirStack.length) { - return common.error('directory stack empty'); - } +/***/ }), - index = _parseStackIndex(index || '+0'); +/***/ 12424: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - if (options['no-cd'] || index > 0 || _dirStack.length + index === 0) { - index = index > 0 ? index - 1 : index; - _dirStack.splice(index, 1); - } else { - var dir = path.resolve(_dirStack.shift()); - _cd('', dir); - } +"use strict"; - return _dirs(options.quiet ? '-q' : ''); -} -exports.popd = _popd; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AsapAction = void 0; +var AsyncAction_1 = __nccwpck_require__(13280); +var immediateProvider_1 = __nccwpck_require__(63475); +var AsapAction = (function (_super) { + __extends(AsapAction, _super); + function AsapAction(scheduler, work) { + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + return _this; + } + AsapAction.prototype.requestAsyncId = function (scheduler, id, delay) { + if (delay === void 0) { delay = 0; } + if (delay !== null && delay > 0) { + return _super.prototype.requestAsyncId.call(this, scheduler, id, delay); + } + scheduler.actions.push(this); + return scheduler._scheduled || (scheduler._scheduled = immediateProvider_1.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined))); + }; + AsapAction.prototype.recycleAsyncId = function (scheduler, id, delay) { + var _a; + if (delay === void 0) { delay = 0; } + if (delay != null ? delay > 0 : this.delay > 0) { + return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay); + } + var actions = scheduler.actions; + if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) { + immediateProvider_1.immediateProvider.clearImmediate(id); + if (scheduler._scheduled === id) { + scheduler._scheduled = undefined; + } + } + return undefined; + }; + return AsapAction; +}(AsyncAction_1.AsyncAction)); +exports.AsapAction = AsapAction; +//# sourceMappingURL=AsapAction.js.map -//@ -//@ -//@ ### dirs([options | '+N' | '-N']) -//@ -//@ Available options: -//@ -//@ + `-c`: Clears the directory stack by deleting all of the elements. -//@ + `-q`: Supresses output to the console. -//@ -//@ Arguments: -//@ -//@ + `+N`: Displays the Nth directory (counting from the left of the list printed by dirs when invoked without options), starting with zero. -//@ + `-N`: Displays the Nth directory (counting from the right of the list printed by dirs when invoked without options), starting with zero. -//@ -//@ Display the list of currently remembered directories. Returns an array of paths in the stack, or a single path if `+N` or `-N` was specified. -//@ -//@ See also: `pushd`, `popd` -function _dirs(options, index) { - if (_isStackIndex(options)) { - index = options; - options = ''; - } +/***/ }), - options = common.parseOptions(options, { - 'c': 'clear', - 'q': 'quiet', - }); +/***/ 76641: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - if (options.clear) { - _dirStack = []; - return _dirStack; - } +"use strict"; - var stack = _actualDirStack(); +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AsapScheduler = void 0; +var AsyncScheduler_1 = __nccwpck_require__(61673); +var AsapScheduler = (function (_super) { + __extends(AsapScheduler, _super); + function AsapScheduler() { + return _super !== null && _super.apply(this, arguments) || this; + } + AsapScheduler.prototype.flush = function (action) { + this._active = true; + var flushId = this._scheduled; + this._scheduled = undefined; + var actions = this.actions; + var error; + action = action || actions.shift(); + do { + if ((error = action.execute(action.state, action.delay))) { + break; + } + } while ((action = actions[0]) && action.id === flushId && actions.shift()); + this._active = false; + if (error) { + while ((action = actions[0]) && action.id === flushId && actions.shift()) { + action.unsubscribe(); + } + throw error; + } + }; + return AsapScheduler; +}(AsyncScheduler_1.AsyncScheduler)); +exports.AsapScheduler = AsapScheduler; +//# sourceMappingURL=AsapScheduler.js.map - if (index) { - index = _parseStackIndex(index); +/***/ }), - if (index < 0) { - index = stack.length + index; +/***/ 13280: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AsyncAction = void 0; +var Action_1 = __nccwpck_require__(83848); +var intervalProvider_1 = __nccwpck_require__(55341); +var arrRemove_1 = __nccwpck_require__(68499); +var AsyncAction = (function (_super) { + __extends(AsyncAction, _super); + function AsyncAction(scheduler, work) { + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + _this.pending = false; + return _this; } + AsyncAction.prototype.schedule = function (state, delay) { + var _a; + if (delay === void 0) { delay = 0; } + if (this.closed) { + return this; + } + this.state = state; + var id = this.id; + var scheduler = this.scheduler; + if (id != null) { + this.id = this.recycleAsyncId(scheduler, id, delay); + } + this.pending = true; + this.delay = delay; + this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay); + return this; + }; + AsyncAction.prototype.requestAsyncId = function (scheduler, _id, delay) { + if (delay === void 0) { delay = 0; } + return intervalProvider_1.intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay); + }; + AsyncAction.prototype.recycleAsyncId = function (_scheduler, id, delay) { + if (delay === void 0) { delay = 0; } + if (delay != null && this.delay === delay && this.pending === false) { + return id; + } + if (id != null) { + intervalProvider_1.intervalProvider.clearInterval(id); + } + return undefined; + }; + AsyncAction.prototype.execute = function (state, delay) { + if (this.closed) { + return new Error('executing a cancelled action'); + } + this.pending = false; + var error = this._execute(state, delay); + if (error) { + return error; + } + else if (this.pending === false && this.id != null) { + this.id = this.recycleAsyncId(this.scheduler, this.id, null); + } + }; + AsyncAction.prototype._execute = function (state, _delay) { + var errored = false; + var errorValue; + try { + this.work(state); + } + catch (e) { + errored = true; + errorValue = e ? e : new Error('Scheduled action threw falsy error'); + } + if (errored) { + this.unsubscribe(); + return errorValue; + } + }; + AsyncAction.prototype.unsubscribe = function () { + if (!this.closed) { + var _a = this, id = _a.id, scheduler = _a.scheduler; + var actions = scheduler.actions; + this.work = this.state = this.scheduler = null; + this.pending = false; + arrRemove_1.arrRemove(actions, this); + if (id != null) { + this.id = this.recycleAsyncId(scheduler, id, null); + } + this.delay = null; + _super.prototype.unsubscribe.call(this); + } + }; + return AsyncAction; +}(Action_1.Action)); +exports.AsyncAction = AsyncAction; +//# sourceMappingURL=AsyncAction.js.map - if (!options.quiet) { - common.log(stack[index]); +/***/ }), + +/***/ 61673: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AsyncScheduler = void 0; +var Scheduler_1 = __nccwpck_require__(76243); +var AsyncScheduler = (function (_super) { + __extends(AsyncScheduler, _super); + function AsyncScheduler(SchedulerAction, now) { + if (now === void 0) { now = Scheduler_1.Scheduler.now; } + var _this = _super.call(this, SchedulerAction, now) || this; + _this.actions = []; + _this._active = false; + return _this; } - return stack[index]; - } + AsyncScheduler.prototype.flush = function (action) { + var actions = this.actions; + if (this._active) { + actions.push(action); + return; + } + var error; + this._active = true; + do { + if ((error = action.execute(action.state, action.delay))) { + break; + } + } while ((action = actions.shift())); + this._active = false; + if (error) { + while ((action = actions.shift())) { + action.unsubscribe(); + } + throw error; + } + }; + return AsyncScheduler; +}(Scheduler_1.Scheduler)); +exports.AsyncScheduler = AsyncScheduler; +//# sourceMappingURL=AsyncScheduler.js.map - if (!options.quiet) { - common.log(stack.join(' ')); - } +/***/ }), - return stack; -} -exports.dirs = _dirs; +/***/ 32161: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.QueueAction = void 0; +var AsyncAction_1 = __nccwpck_require__(13280); +var QueueAction = (function (_super) { + __extends(QueueAction, _super); + function QueueAction(scheduler, work) { + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + return _this; + } + QueueAction.prototype.schedule = function (state, delay) { + if (delay === void 0) { delay = 0; } + if (delay > 0) { + return _super.prototype.schedule.call(this, state, delay); + } + this.delay = delay; + this.state = state; + this.scheduler.flush(this); + return this; + }; + QueueAction.prototype.execute = function (state, delay) { + return delay > 0 || this.closed ? _super.prototype.execute.call(this, state, delay) : this._execute(state, delay); + }; + QueueAction.prototype.requestAsyncId = function (scheduler, id, delay) { + if (delay === void 0) { delay = 0; } + if ((delay != null && delay > 0) || (delay == null && this.delay > 0)) { + return _super.prototype.requestAsyncId.call(this, scheduler, id, delay); + } + scheduler.flush(this); + return 0; + }; + return QueueAction; +}(AsyncAction_1.AsyncAction)); +exports.QueueAction = QueueAction; +//# sourceMappingURL=QueueAction.js.map /***/ }), -/***/ 10243: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 48527: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -var format = (__nccwpck_require__(73837).format); +"use strict"; -var common = __nccwpck_require__(53687); +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.QueueScheduler = void 0; +var AsyncScheduler_1 = __nccwpck_require__(61673); +var QueueScheduler = (function (_super) { + __extends(QueueScheduler, _super); + function QueueScheduler() { + return _super !== null && _super.apply(this, arguments) || this; + } + return QueueScheduler; +}(AsyncScheduler_1.AsyncScheduler)); +exports.QueueScheduler = QueueScheduler; +//# sourceMappingURL=QueueScheduler.js.map -common.register('echo', _echo, { - allowGlobbing: false, -}); +/***/ }), -//@ -//@ ### echo([options,] string [, string ...]) -//@ -//@ Available options: -//@ -//@ + `-e`: interpret backslash escapes (default) -//@ + `-n`: remove trailing newline from output -//@ -//@ Examples: -//@ -//@ ```javascript -//@ echo('hello world'); -//@ var str = echo('hello world'); -//@ echo('-n', 'no newline at end'); -//@ ``` -//@ -//@ Prints `string` to stdout, and returns string with additional utility methods -//@ like `.to()`. -function _echo(opts) { - // allow strings starting with '-', see issue #20 - var messages = [].slice.call(arguments, opts ? 0 : 1); - var options = {}; +/***/ 75348: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - // If the first argument starts with '-', parse it as options string. - // If parseOptions throws, it wasn't an options string. - try { - options = common.parseOptions(messages[0], { - 'e': 'escapes', - 'n': 'no_newline', - }, { - silent: true, - }); +"use strict"; - // Allow null to be echoed - if (messages[0]) { - messages.shift(); +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.VirtualAction = exports.VirtualTimeScheduler = void 0; +var AsyncAction_1 = __nccwpck_require__(13280); +var Subscription_1 = __nccwpck_require__(79548); +var AsyncScheduler_1 = __nccwpck_require__(61673); +var VirtualTimeScheduler = (function (_super) { + __extends(VirtualTimeScheduler, _super); + function VirtualTimeScheduler(schedulerActionCtor, maxFrames) { + if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; } + if (maxFrames === void 0) { maxFrames = Infinity; } + var _this = _super.call(this, schedulerActionCtor, function () { return _this.frame; }) || this; + _this.maxFrames = maxFrames; + _this.frame = 0; + _this.index = -1; + return _this; } - } catch (_) { - // Clear out error if an error occurred - common.state.error = null; - } + VirtualTimeScheduler.prototype.flush = function () { + var _a = this, actions = _a.actions, maxFrames = _a.maxFrames; + var error; + var action; + while ((action = actions[0]) && action.delay <= maxFrames) { + actions.shift(); + this.frame = action.delay; + if ((error = action.execute(action.state, action.delay))) { + break; + } + } + if (error) { + while ((action = actions.shift())) { + action.unsubscribe(); + } + throw error; + } + }; + VirtualTimeScheduler.frameTimeFactor = 10; + return VirtualTimeScheduler; +}(AsyncScheduler_1.AsyncScheduler)); +exports.VirtualTimeScheduler = VirtualTimeScheduler; +var VirtualAction = (function (_super) { + __extends(VirtualAction, _super); + function VirtualAction(scheduler, work, index) { + if (index === void 0) { index = (scheduler.index += 1); } + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + _this.index = index; + _this.active = true; + _this.index = scheduler.index = index; + return _this; + } + VirtualAction.prototype.schedule = function (state, delay) { + if (delay === void 0) { delay = 0; } + if (Number.isFinite(delay)) { + if (!this.id) { + return _super.prototype.schedule.call(this, state, delay); + } + this.active = false; + var action = new VirtualAction(this.scheduler, this.work); + this.add(action); + return action.schedule(state, delay); + } + else { + return Subscription_1.Subscription.EMPTY; + } + }; + VirtualAction.prototype.requestAsyncId = function (scheduler, id, delay) { + if (delay === void 0) { delay = 0; } + this.delay = scheduler.frame + delay; + var actions = scheduler.actions; + actions.push(this); + actions.sort(VirtualAction.sortActions); + return 1; + }; + VirtualAction.prototype.recycleAsyncId = function (scheduler, id, delay) { + if (delay === void 0) { delay = 0; } + return undefined; + }; + VirtualAction.prototype._execute = function (state, delay) { + if (this.active === true) { + return _super.prototype._execute.call(this, state, delay); + } + }; + VirtualAction.sortActions = function (a, b) { + if (a.delay === b.delay) { + if (a.index === b.index) { + return 0; + } + else if (a.index > b.index) { + return 1; + } + else { + return -1; + } + } + else if (a.delay > b.delay) { + return 1; + } + else { + return -1; + } + }; + return VirtualAction; +}(AsyncAction_1.AsyncAction)); +exports.VirtualAction = VirtualAction; +//# sourceMappingURL=VirtualTimeScheduler.js.map - var output = format.apply(null, messages); +/***/ }), - // Add newline if -n is not passed. - if (!options.no_newline) { - output += '\n'; - } +/***/ 51359: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - process.stdout.write(output); +"use strict"; - return output; -} +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.animationFrame = exports.animationFrameScheduler = void 0; +var AnimationFrameAction_1 = __nccwpck_require__(95991); +var AnimationFrameScheduler_1 = __nccwpck_require__(98768); +exports.animationFrameScheduler = new AnimationFrameScheduler_1.AnimationFrameScheduler(AnimationFrameAction_1.AnimationFrameAction); +exports.animationFrame = exports.animationFrameScheduler; +//# sourceMappingURL=animationFrame.js.map -module.exports = _echo; +/***/ }), +/***/ 62738: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -/***/ }), +"use strict"; -/***/ 10232: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.animationFrameProvider = void 0; +var Subscription_1 = __nccwpck_require__(79548); +exports.animationFrameProvider = { + schedule: function (callback) { + var request = requestAnimationFrame; + var cancel = cancelAnimationFrame; + var delegate = exports.animationFrameProvider.delegate; + if (delegate) { + request = delegate.requestAnimationFrame; + cancel = delegate.cancelAnimationFrame; + } + var handle = request(function (timestamp) { + cancel = undefined; + callback(timestamp); + }); + return new Subscription_1.Subscription(function () { return cancel === null || cancel === void 0 ? void 0 : cancel(handle); }); + }, + requestAnimationFrame: function () { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var delegate = exports.animationFrameProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame).apply(void 0, __spreadArray([], __read(args))); + }, + cancelAnimationFrame: function () { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var delegate = exports.animationFrameProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame).apply(void 0, __spreadArray([], __read(args))); + }, + delegate: undefined, +}; +//# sourceMappingURL=animationFrameProvider.js.map -var common = __nccwpck_require__(53687); +/***/ }), -//@ -//@ ### error() -//@ -//@ Tests if error occurred in the last command. Returns a truthy value if an -//@ error returned, or a falsy value otherwise. -//@ -//@ **Note**: do not rely on the -//@ return value to be an error message. If you need the last error message, use -//@ the `.stderr` attribute from the last command's return value instead. -function error() { - return common.state.error; -} -module.exports = error; +/***/ 43905: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.asap = exports.asapScheduler = void 0; +var AsapAction_1 = __nccwpck_require__(12424); +var AsapScheduler_1 = __nccwpck_require__(76641); +exports.asapScheduler = new AsapScheduler_1.AsapScheduler(AsapAction_1.AsapAction); +exports.asap = exports.asapScheduler; +//# sourceMappingURL=asap.js.map /***/ }), -/***/ 69607: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 76072: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/* module decorator */ module = __nccwpck_require__.nmd(module); -if (require.main !== module) { - throw new Error('This file should not be required'); -} +"use strict"; -var childProcess = __nccwpck_require__(32081); -var fs = __nccwpck_require__(57147); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.async = exports.asyncScheduler = void 0; +var AsyncAction_1 = __nccwpck_require__(13280); +var AsyncScheduler_1 = __nccwpck_require__(61673); +exports.asyncScheduler = new AsyncScheduler_1.AsyncScheduler(AsyncAction_1.AsyncAction); +exports.async = exports.asyncScheduler; +//# sourceMappingURL=async.js.map -var paramFilePath = process.argv[2]; +/***/ }), -var serializedParams = fs.readFileSync(paramFilePath, 'utf8'); -var params = JSON.parse(serializedParams); +/***/ 91395: +/***/ ((__unused_webpack_module, exports) => { -var cmd = params.command; -var execOptions = params.execOptions; -var pipe = params.pipe; -var stdoutFile = params.stdoutFile; -var stderrFile = params.stderrFile; +"use strict"; -var c = childProcess.exec(cmd, execOptions, function (err) { - if (!err) { - process.exitCode = 0; - } else if (err.code === undefined) { - process.exitCode = 1; - } else { - process.exitCode = err.code; - } -}); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dateTimestampProvider = void 0; +exports.dateTimestampProvider = { + now: function () { + return (exports.dateTimestampProvider.delegate || Date).now(); + }, + delegate: undefined, +}; +//# sourceMappingURL=dateTimestampProvider.js.map -var stdoutStream = fs.createWriteStream(stdoutFile); -var stderrStream = fs.createWriteStream(stderrFile); +/***/ }), -c.stdout.pipe(stdoutStream); -c.stderr.pipe(stderrStream); -c.stdout.pipe(process.stdout); -c.stderr.pipe(process.stderr); +/***/ 63475: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -if (pipe) { - c.stdin.end(pipe); -} +"use strict"; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.immediateProvider = void 0; +var Immediate_1 = __nccwpck_require__(73555); +var setImmediate = Immediate_1.Immediate.setImmediate, clearImmediate = Immediate_1.Immediate.clearImmediate; +exports.immediateProvider = { + setImmediate: function () { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var delegate = exports.immediateProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate).apply(void 0, __spreadArray([], __read(args))); + }, + clearImmediate: function (handle) { + var delegate = exports.immediateProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle); + }, + delegate: undefined, +}; +//# sourceMappingURL=immediateProvider.js.map /***/ }), -/***/ 10896: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 55341: +/***/ (function(__unused_webpack_module, exports) { -var common = __nccwpck_require__(53687); -var _tempDir = (__nccwpck_require__(76150).tempDir); -var _pwd = __nccwpck_require__(58553); -var path = __nccwpck_require__(71017); -var fs = __nccwpck_require__(57147); -var child = __nccwpck_require__(32081); +"use strict"; -var DEFAULT_MAXBUFFER_SIZE = 20 * 1024 * 1024; -var DEFAULT_ERROR_CODE = 1; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.intervalProvider = void 0; +exports.intervalProvider = { + setInterval: function (handler, timeout) { + var args = []; + for (var _i = 2; _i < arguments.length; _i++) { + args[_i - 2] = arguments[_i]; + } + var delegate = exports.intervalProvider.delegate; + if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) { + return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout], __read(args))); + } + return setInterval.apply(void 0, __spreadArray([handler, timeout], __read(args))); + }, + clearInterval: function (handle) { + var delegate = exports.intervalProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle); + }, + delegate: undefined, +}; +//# sourceMappingURL=intervalProvider.js.map -common.register('exec', _exec, { - unix: false, - canReceivePipe: true, - wrapOutput: false, -}); +/***/ }), -// We use this function to run `exec` synchronously while also providing realtime -// output. -function execSync(cmd, opts, pipe) { - if (!common.config.execPath) { - common.error('Unable to find a path to the node binary. Please manually set config.execPath'); - } +/***/ 70143: +/***/ ((__unused_webpack_module, exports) => { - var tempDir = _tempDir(); - var paramsFile = path.resolve(tempDir + '/' + common.randomFileName()); - var stderrFile = path.resolve(tempDir + '/' + common.randomFileName()); - var stdoutFile = path.resolve(tempDir + '/' + common.randomFileName()); +"use strict"; - opts = common.extend({ - silent: common.config.silent, - cwd: _pwd().toString(), - env: process.env, - maxBuffer: DEFAULT_MAXBUFFER_SIZE, - encoding: 'utf8', - }, opts); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.performanceTimestampProvider = void 0; +exports.performanceTimestampProvider = { + now: function () { + return (exports.performanceTimestampProvider.delegate || performance).now(); + }, + delegate: undefined, +}; +//# sourceMappingURL=performanceTimestampProvider.js.map - if (fs.existsSync(paramsFile)) common.unlinkSync(paramsFile); - if (fs.existsSync(stderrFile)) common.unlinkSync(stderrFile); - if (fs.existsSync(stdoutFile)) common.unlinkSync(stdoutFile); +/***/ }), - opts.cwd = path.resolve(opts.cwd); +/***/ 82059: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - var paramsToSerialize = { - command: cmd, - execOptions: opts, - pipe: pipe, - stdoutFile: stdoutFile, - stderrFile: stderrFile, - }; +"use strict"; - // Create the files and ensure these are locked down (for read and write) to - // the current user. The main concerns here are: - // - // * If we execute a command which prints sensitive output, then - // stdoutFile/stderrFile must not be readable by other users. - // * paramsFile must not be readable by other users, or else they can read it - // to figure out the path for stdoutFile/stderrFile and create these first - // (locked down to their own access), which will crash exec() when it tries - // to write to the files. - function writeFileLockedDown(filePath, data) { - fs.writeFileSync(filePath, data, { - encoding: 'utf8', - mode: parseInt('600', 8), - }); - } - writeFileLockedDown(stdoutFile, ''); - writeFileLockedDown(stderrFile, ''); - writeFileLockedDown(paramsFile, JSON.stringify(paramsToSerialize)); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.queue = exports.queueScheduler = void 0; +var QueueAction_1 = __nccwpck_require__(32161); +var QueueScheduler_1 = __nccwpck_require__(48527); +exports.queueScheduler = new QueueScheduler_1.QueueScheduler(QueueAction_1.QueueAction); +exports.queue = exports.queueScheduler; +//# sourceMappingURL=queue.js.map - var execArgs = [ - __nccwpck_require__.ab + "exec-child.js", - paramsFile, - ]; +/***/ }), - /* istanbul ignore else */ - if (opts.silent) { - opts.stdio = 'ignore'; - } else { - opts.stdio = [0, 1, 2]; - } +/***/ 1613: +/***/ (function(__unused_webpack_module, exports) { - var code = 0; +"use strict"; - // Welcome to the future - try { - // Bad things if we pass in a `shell` option to child_process.execFileSync, - // so we need to explicitly remove it here. - delete opts.shell; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.timeoutProvider = void 0; +exports.timeoutProvider = { + setTimeout: function (handler, timeout) { + var args = []; + for (var _i = 2; _i < arguments.length; _i++) { + args[_i - 2] = arguments[_i]; + } + var delegate = exports.timeoutProvider.delegate; + if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) { + return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args))); + } + return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args))); + }, + clearTimeout: function (handle) { + var delegate = exports.timeoutProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle); + }, + delegate: undefined, +}; +//# sourceMappingURL=timeoutProvider.js.map - child.execFileSync(common.config.execPath, execArgs, opts); - } catch (e) { - // Commands with non-zero exit code raise an exception. - code = e.status || DEFAULT_ERROR_CODE; - } +/***/ }), - // fs.readFileSync uses buffer encoding by default, so call - // it without the encoding option if the encoding is 'buffer'. - // Also, if the exec timeout is too short for node to start up, - // the files will not be created, so these calls will throw. - var stdout = ''; - var stderr = ''; - if (opts.encoding === 'buffer') { - stdout = fs.readFileSync(stdoutFile); - stderr = fs.readFileSync(stderrFile); - } else { - stdout = fs.readFileSync(stdoutFile, opts.encoding); - stderr = fs.readFileSync(stderrFile, opts.encoding); - } +/***/ 85517: +/***/ ((__unused_webpack_module, exports) => { - // No biggie if we can't erase the files now -- they're in a temp dir anyway - // and we locked down permissions (see the note above). - try { common.unlinkSync(paramsFile); } catch (e) {} - try { common.unlinkSync(stderrFile); } catch (e) {} - try { common.unlinkSync(stdoutFile); } catch (e) {} +"use strict"; - if (code !== 0) { - // Note: `silent` should be unconditionally true to avoid double-printing - // the command's stderr, and to avoid printing any stderr when the user has - // set `shell.config.silent`. - common.error(stderr, code, { continue: true, silent: true }); - } - var obj = common.ShellString(stdout, stderr, code); - return obj; -} // execSync() +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.iterator = exports.getSymbolIterator = void 0; +function getSymbolIterator() { + if (typeof Symbol !== 'function' || !Symbol.iterator) { + return '@@iterator'; + } + return Symbol.iterator; +} +exports.getSymbolIterator = getSymbolIterator; +exports.iterator = getSymbolIterator(); +//# sourceMappingURL=iterator.js.map -// Wrapper around exec() to enable echoing output to console in real time -function execAsync(cmd, opts, pipe, callback) { - opts = common.extend({ - silent: common.config.silent, - cwd: _pwd().toString(), - env: process.env, - maxBuffer: DEFAULT_MAXBUFFER_SIZE, - encoding: 'utf8', - }, opts); +/***/ }), - var c = child.exec(cmd, opts, function (err, stdout, stderr) { - if (callback) { - if (!err) { - callback(0, stdout, stderr); - } else if (err.code === undefined) { - // See issue #536 - /* istanbul ignore next */ - callback(1, stdout, stderr); - } else { - callback(err.code, stdout, stderr); - } - } - }); +/***/ 17186: +/***/ ((__unused_webpack_module, exports) => { - if (pipe) c.stdin.end(pipe); +"use strict"; - if (!opts.silent) { - c.stdout.pipe(process.stdout); - c.stderr.pipe(process.stderr); - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.observable = void 0; +exports.observable = (function () { return (typeof Symbol === 'function' && Symbol.observable) || '@@observable'; })(); +//# sourceMappingURL=observable.js.map - return c; -} +/***/ }), -//@ -//@ ### exec(command [, options] [, callback]) -//@ -//@ Available options: -//@ -//@ + `async`: Asynchronous execution. If a callback is provided, it will be set to -//@ `true`, regardless of the passed value (default: `false`). -//@ + `silent`: Do not echo program output to console (default: `false`). -//@ + `encoding`: Character encoding to use. Affects the values returned to stdout and stderr, and -//@ what is written to stdout and stderr when not in silent mode (default: `'utf8'`). -//@ + and any option available to Node.js's -//@ [`child_process.exec()`](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ var version = exec('node --version', {silent:true}).stdout; -//@ -//@ var child = exec('some_long_running_process', {async:true}); -//@ child.stdout.on('data', function(data) { -//@ /* ... do something with data ... */ -//@ }); -//@ -//@ exec('some_long_running_process', function(code, stdout, stderr) { -//@ console.log('Exit code:', code); -//@ console.log('Program output:', stdout); -//@ console.log('Program stderr:', stderr); -//@ }); -//@ ``` -//@ -//@ Executes the given `command` _synchronously_, unless otherwise specified. When in synchronous -//@ mode, this returns a `ShellString` (compatible with ShellJS v0.6.x, which returns an object -//@ of the form `{ code:..., stdout:... , stderr:... }`). Otherwise, this returns the child process -//@ object, and the `callback` receives the arguments `(code, stdout, stderr)`. -//@ -//@ Not seeing the behavior you want? `exec()` runs everything through `sh` -//@ by default (or `cmd.exe` on Windows), which differs from `bash`. If you -//@ need bash-specific behavior, try out the `{shell: 'path/to/bash'}` option. -function _exec(command, options, callback) { - options = options || {}; - if (!command) common.error('must specify command'); +/***/ 36639: +/***/ ((__unused_webpack_module, exports) => { - var pipe = common.readFromPipe(); +"use strict"; - // Callback is defined instead of options. - if (typeof options === 'function') { - callback = options; - options = { async: true }; - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +//# sourceMappingURL=types.js.map - // Callback is defined with options. - if (typeof options === 'object' && typeof callback === 'function') { - options.async = true; - } +/***/ }), - options = common.extend({ - silent: common.config.silent, - async: false, - }, options); +/***/ 49796: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (options.async) { - return execAsync(command, options, pipe, callback); - } else { - return execSync(command, options, pipe); - } -} -module.exports = _exec; +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ArgumentOutOfRangeError = void 0; +var createErrorClass_1 = __nccwpck_require__(8858); +exports.ArgumentOutOfRangeError = createErrorClass_1.createErrorClass(function (_super) { + return function ArgumentOutOfRangeErrorImpl() { + _super(this); + this.name = 'ArgumentOutOfRangeError'; + this.message = 'argument out of range'; + }; +}); +//# sourceMappingURL=ArgumentOutOfRangeError.js.map /***/ }), -/***/ 47838: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 99391: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var path = __nccwpck_require__(71017); -var common = __nccwpck_require__(53687); -var _ls = __nccwpck_require__(35561); - -common.register('find', _find, {}); - -//@ -//@ ### find(path [, path ...]) -//@ ### find(path_array) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ find('src', 'lib'); -//@ find(['src', 'lib']); // same as above -//@ find('.').filter(function(file) { return file.match(/\.js$/); }); -//@ ``` -//@ -//@ Returns array of all files (however deep) in the given paths. -//@ -//@ The main difference from `ls('-R', path)` is that the resulting file names -//@ include the base directories (e.g., `lib/resources/file1` instead of just `file1`). -function _find(options, paths) { - if (!paths) { - common.error('no path specified'); - } else if (typeof paths === 'string') { - paths = [].slice.call(arguments, 1); - } - - var list = []; +"use strict"; - function pushFile(file) { - if (process.platform === 'win32') { - file = file.replace(/\\/g, '/'); - } - list.push(file); - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.EmptyError = void 0; +var createErrorClass_1 = __nccwpck_require__(8858); +exports.EmptyError = createErrorClass_1.createErrorClass(function (_super) { return function EmptyErrorImpl() { + _super(this); + this.name = 'EmptyError'; + this.message = 'no elements in sequence'; +}; }); +//# sourceMappingURL=EmptyError.js.map - // why not simply do `ls('-R', paths)`? because the output wouldn't give the base dirs - // to get the base dir in the output, we need instead `ls('-R', 'dir/*')` for every directory +/***/ }), - paths.forEach(function (file) { - var stat; - try { - stat = common.statFollowLinks(file); - } catch (e) { - common.error('no such file or directory: ' + file); - } +/***/ 73555: +/***/ ((__unused_webpack_module, exports) => { - pushFile(file); +"use strict"; - if (stat.isDirectory()) { - _ls({ recursive: true, all: true }, file).forEach(function (subfile) { - pushFile(path.join(file, subfile)); - }); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TestTools = exports.Immediate = void 0; +var nextHandle = 1; +var resolved; +var activeHandles = {}; +function findAndClearHandle(handle) { + if (handle in activeHandles) { + delete activeHandles[handle]; + return true; } - }); - - return list; + return false; } -module.exports = _find; - +exports.Immediate = { + setImmediate: function (cb) { + var handle = nextHandle++; + activeHandles[handle] = true; + if (!resolved) { + resolved = Promise.resolve(); + } + resolved.then(function () { return findAndClearHandle(handle) && cb(); }); + return handle; + }, + clearImmediate: function (handle) { + findAndClearHandle(handle); + }, +}; +exports.TestTools = { + pending: function () { + return Object.keys(activeHandles).length; + } +}; +//# sourceMappingURL=Immediate.js.map /***/ }), -/***/ 17417: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 74431: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); +"use strict"; -common.register('grep', _grep, { - globStart: 2, // don't glob-expand the regex - canReceivePipe: true, - cmdOptions: { - 'v': 'inverse', - 'l': 'nameOnly', - 'i': 'ignoreCase', - }, +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotFoundError = void 0; +var createErrorClass_1 = __nccwpck_require__(8858); +exports.NotFoundError = createErrorClass_1.createErrorClass(function (_super) { + return function NotFoundErrorImpl(message) { + _super(this); + this.name = 'NotFoundError'; + this.message = message; + }; }); +//# sourceMappingURL=NotFoundError.js.map -//@ -//@ ### grep([options,] regex_filter, file [, file ...]) -//@ ### grep([options,] regex_filter, file_array) -//@ -//@ Available options: -//@ -//@ + `-v`: Invert `regex_filter` (only print non-matching lines). -//@ + `-l`: Print only filenames of matching files. -//@ + `-i`: Ignore case. -//@ -//@ Examples: -//@ -//@ ```javascript -//@ grep('-v', 'GLOBAL_VARIABLE', '*.js'); -//@ grep('GLOBAL_VARIABLE', '*.js'); -//@ ``` -//@ -//@ Reads input string from given files and returns a string containing all lines of the -//@ file that match the given `regex_filter`. -function _grep(options, regex, files) { - // Check if this is coming from a pipe - var pipe = common.readFromPipe(); +/***/ }), - if (!files && !pipe) common.error('no paths given', 2); +/***/ 95266: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - files = [].slice.call(arguments, 2); +"use strict"; - if (pipe) { - files.unshift('-'); - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ObjectUnsubscribedError = void 0; +var createErrorClass_1 = __nccwpck_require__(8858); +exports.ObjectUnsubscribedError = createErrorClass_1.createErrorClass(function (_super) { + return function ObjectUnsubscribedErrorImpl() { + _super(this); + this.name = 'ObjectUnsubscribedError'; + this.message = 'object unsubscribed'; + }; +}); +//# sourceMappingURL=ObjectUnsubscribedError.js.map - var grep = []; - if (options.ignoreCase) { - regex = new RegExp(regex, 'i'); - } - files.forEach(function (file) { - if (!fs.existsSync(file) && file !== '-') { - common.error('no such file or directory: ' + file, 2, { continue: true }); - return; - } +/***/ }), - var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8'); - if (options.nameOnly) { - if (contents.match(regex)) { - grep.push(file); - } - } else { - var lines = contents.split('\n'); - lines.forEach(function (line) { - var matched = line.match(regex); - if ((options.inverse && !matched) || (!options.inverse && matched)) { - grep.push(line); - } - }); - } - }); +/***/ 49048: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - return grep.join('\n') + '\n'; -} -module.exports = _grep; +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SequenceError = void 0; +var createErrorClass_1 = __nccwpck_require__(8858); +exports.SequenceError = createErrorClass_1.createErrorClass(function (_super) { + return function SequenceErrorImpl(message) { + _super(this); + this.name = 'SequenceError'; + this.message = message; + }; +}); +//# sourceMappingURL=SequenceError.js.map /***/ }), -/***/ 6613: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 56776: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); +"use strict"; -common.register('head', _head, { - canReceivePipe: true, - cmdOptions: { - 'n': 'numLines', - }, +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UnsubscriptionError = void 0; +var createErrorClass_1 = __nccwpck_require__(8858); +exports.UnsubscriptionError = createErrorClass_1.createErrorClass(function (_super) { + return function UnsubscriptionErrorImpl(errors) { + _super(this); + this.message = errors + ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function (err, i) { return i + 1 + ") " + err.toString(); }).join('\n ') + : ''; + this.name = 'UnsubscriptionError'; + this.errors = errors; + }; }); +//# sourceMappingURL=UnsubscriptionError.js.map -// Reads |numLines| lines or the entire file, whichever is less. -function readSomeLines(file, numLines) { - var buf = common.buffer(); - var bufLength = buf.length; - var bytesRead = bufLength; - var pos = 0; +/***/ }), - var fdr = fs.openSync(file, 'r'); - var numLinesRead = 0; - var ret = ''; - while (bytesRead === bufLength && numLinesRead < numLines) { - bytesRead = fs.readSync(fdr, buf, 0, bufLength, pos); - var bufStr = buf.toString('utf8', 0, bytesRead); - numLinesRead += bufStr.split('\n').length - 1; - ret += bufStr; - pos += bytesRead; - } +/***/ 34890: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - fs.closeSync(fdr); - return ret; -} +"use strict"; -//@ -//@ ### head([{'-n': \},] file [, file ...]) -//@ ### head([{'-n': \},] file_array) -//@ -//@ Available options: -//@ -//@ + `-n `: Show the first `` lines of the files -//@ -//@ Examples: -//@ -//@ ```javascript -//@ var str = head({'-n': 1}, 'file*.txt'); -//@ var str = head('file1', 'file2'); -//@ var str = head(['file1', 'file2']); // same as above -//@ ``` -//@ -//@ Read the start of a file. -function _head(options, files) { - var head = []; - var pipe = common.readFromPipe(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.popNumber = exports.popScheduler = exports.popResultSelector = void 0; +var isFunction_1 = __nccwpck_require__(67206); +var isScheduler_1 = __nccwpck_require__(84078); +function last(arr) { + return arr[arr.length - 1]; +} +function popResultSelector(args) { + return isFunction_1.isFunction(last(args)) ? args.pop() : undefined; +} +exports.popResultSelector = popResultSelector; +function popScheduler(args) { + return isScheduler_1.isScheduler(last(args)) ? args.pop() : undefined; +} +exports.popScheduler = popScheduler; +function popNumber(args, defaultValue) { + return typeof last(args) === 'number' ? args.pop() : defaultValue; +} +exports.popNumber = popNumber; +//# sourceMappingURL=args.js.map - if (!files && !pipe) common.error('no paths given'); +/***/ }), - var idx = 1; - if (options.numLines === true) { - idx = 2; - options.numLines = Number(arguments[1]); - } else if (options.numLines === false) { - options.numLines = 10; - } - files = [].slice.call(arguments, idx); +/***/ 12920: +/***/ ((__unused_webpack_module, exports) => { - if (pipe) { - files.unshift('-'); - } +"use strict"; - var shouldAppendNewline = false; - files.forEach(function (file) { - if (file !== '-') { - if (!fs.existsSync(file)) { - common.error('no such file or directory: ' + file, { continue: true }); - return; - } else if (common.statFollowLinks(file).isDirectory()) { - common.error("error reading '" + file + "': Is a directory", { - continue: true, - }); - return; - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.argsArgArrayOrObject = void 0; +var isArray = Array.isArray; +var getPrototypeOf = Object.getPrototypeOf, objectProto = Object.prototype, getKeys = Object.keys; +function argsArgArrayOrObject(args) { + if (args.length === 1) { + var first_1 = args[0]; + if (isArray(first_1)) { + return { args: first_1, keys: null }; + } + if (isPOJO(first_1)) { + var keys = getKeys(first_1); + return { + args: keys.map(function (key) { return first_1[key]; }), + keys: keys, + }; + } } + return { args: args, keys: null }; +} +exports.argsArgArrayOrObject = argsArgArrayOrObject; +function isPOJO(obj) { + return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto; +} +//# sourceMappingURL=argsArgArrayOrObject.js.map - var contents; - if (file === '-') { - contents = pipe; - } else if (options.numLines < 0) { - contents = fs.readFileSync(file, 'utf8'); - } else { - contents = readSomeLines(file, options.numLines); - } +/***/ }), - var lines = contents.split('\n'); - var hasTrailingNewline = (lines[lines.length - 1] === ''); - if (hasTrailingNewline) { - lines.pop(); - } - shouldAppendNewline = (hasTrailingNewline || options.numLines < lines.length); +/***/ 18824: +/***/ ((__unused_webpack_module, exports) => { - head = head.concat(lines.slice(0, options.numLines)); - }); +"use strict"; - if (shouldAppendNewline) { - head.push(''); // to add a trailing newline once we join - } - return head.join('\n'); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.argsOrArgArray = void 0; +var isArray = Array.isArray; +function argsOrArgArray(args) { + return args.length === 1 && isArray(args[0]) ? args[0] : args; } -module.exports = _head; +exports.argsOrArgArray = argsOrArgArray; +//# sourceMappingURL=argsOrArgArray.js.map + +/***/ }), + +/***/ 68499: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.arrRemove = void 0; +function arrRemove(arr, item) { + if (arr) { + var index = arr.indexOf(item); + 0 <= index && arr.splice(index, 1); + } +} +exports.arrRemove = arrRemove; +//# sourceMappingURL=arrRemove.js.map /***/ }), -/***/ 15787: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 8858: +/***/ ((__unused_webpack_module, exports) => { -var fs = __nccwpck_require__(57147); -var path = __nccwpck_require__(71017); -var common = __nccwpck_require__(53687); +"use strict"; -common.register('ln', _ln, { - cmdOptions: { - 's': 'symlink', - 'f': 'force', - }, -}); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createErrorClass = void 0; +function createErrorClass(createImpl) { + var _super = function (instance) { + Error.call(instance); + instance.stack = new Error().stack; + }; + var ctorFunc = createImpl(_super); + ctorFunc.prototype = Object.create(Error.prototype); + ctorFunc.prototype.constructor = ctorFunc; + return ctorFunc; +} +exports.createErrorClass = createErrorClass; +//# sourceMappingURL=createErrorClass.js.map -//@ -//@ ### ln([options,] source, dest) -//@ -//@ Available options: -//@ -//@ + `-s`: symlink -//@ + `-f`: force -//@ -//@ Examples: -//@ -//@ ```javascript -//@ ln('file', 'newlink'); -//@ ln('-sf', 'file', 'existing'); -//@ ``` -//@ -//@ Links `source` to `dest`. Use `-f` to force the link, should `dest` already exist. -function _ln(options, source, dest) { - if (!source || !dest) { - common.error('Missing and/or '); - } +/***/ }), - source = String(source); - var sourcePath = path.normalize(source).replace(RegExp(path.sep + '$'), ''); - var isAbsolute = (path.resolve(source) === sourcePath); - dest = path.resolve(process.cwd(), String(dest)); +/***/ 57834: +/***/ ((__unused_webpack_module, exports) => { - if (fs.existsSync(dest)) { - if (!options.force) { - common.error('Destination file exists', { continue: true }); - } +"use strict"; - fs.unlinkSync(dest); - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createObject = void 0; +function createObject(keys, values) { + return keys.reduce(function (result, key, i) { return ((result[key] = values[i]), result); }, {}); +} +exports.createObject = createObject; +//# sourceMappingURL=createObject.js.map - if (options.symlink) { - var isWindows = process.platform === 'win32'; - var linkType = isWindows ? 'file' : null; - var resolvedSourcePath = isAbsolute ? sourcePath : path.resolve(process.cwd(), path.dirname(dest), source); - if (!fs.existsSync(resolvedSourcePath)) { - common.error('Source file does not exist', { continue: true }); - } else if (isWindows && common.statFollowLinks(resolvedSourcePath).isDirectory()) { - linkType = 'junction'; - } +/***/ }), - try { - fs.symlinkSync(linkType === 'junction' ? resolvedSourcePath : source, dest, linkType); - } catch (err) { - common.error(err.message); +/***/ 31199: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.captureError = exports.errorContext = void 0; +var config_1 = __nccwpck_require__(92233); +var context = null; +function errorContext(cb) { + if (config_1.config.useDeprecatedSynchronousErrorHandling) { + var isRoot = !context; + if (isRoot) { + context = { errorThrown: false, error: null }; + } + cb(); + if (isRoot) { + var _a = context, errorThrown = _a.errorThrown, error = _a.error; + context = null; + if (errorThrown) { + throw error; + } + } } - } else { - if (!fs.existsSync(source)) { - common.error('Source file does not exist', { continue: true }); + else { + cb(); } - try { - fs.linkSync(source, dest); - } catch (err) { - common.error(err.message); +} +exports.errorContext = errorContext; +function captureError(err) { + if (config_1.config.useDeprecatedSynchronousErrorHandling && context) { + context.errorThrown = true; + context.error = err; } - } - return ''; } -module.exports = _ln; - +exports.captureError = captureError; +//# sourceMappingURL=errorContext.js.map /***/ }), -/***/ 35561: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 82877: +/***/ ((__unused_webpack_module, exports) => { -var path = __nccwpck_require__(71017); -var fs = __nccwpck_require__(57147); -var common = __nccwpck_require__(53687); -var glob = __nccwpck_require__(91957); +"use strict"; -var globPatternRecursive = path.sep + '**'; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.executeSchedule = void 0; +function executeSchedule(parentSubscription, scheduler, work, delay, repeat) { + if (delay === void 0) { delay = 0; } + if (repeat === void 0) { repeat = false; } + var scheduleSubscription = scheduler.schedule(function () { + work(); + if (repeat) { + parentSubscription.add(this.schedule(null, delay)); + } + else { + this.unsubscribe(); + } + }, delay); + parentSubscription.add(scheduleSubscription); + if (!repeat) { + return scheduleSubscription; + } +} +exports.executeSchedule = executeSchedule; +//# sourceMappingURL=executeSchedule.js.map -common.register('ls', _ls, { - cmdOptions: { - 'R': 'recursive', - 'A': 'all', - 'L': 'link', - 'a': 'all_deprecated', - 'd': 'directory', - 'l': 'long', - }, -}); +/***/ }), -//@ -//@ ### ls([options,] [path, ...]) -//@ ### ls([options,] path_array) -//@ -//@ Available options: -//@ -//@ + `-R`: recursive -//@ + `-A`: all files (include files beginning with `.`, except for `.` and `..`) -//@ + `-L`: follow symlinks -//@ + `-d`: list directories themselves, not their contents -//@ + `-l`: list objects representing each file, each with fields containing `ls -//@ -l` output fields. See -//@ [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) -//@ for more info -//@ -//@ Examples: -//@ -//@ ```javascript -//@ ls('projs/*.js'); -//@ ls('-R', '/users/me', '/tmp'); -//@ ls('-R', ['/users/me', '/tmp']); // same as above -//@ ls('-l', 'file.txt'); // { name: 'file.txt', mode: 33188, nlink: 1, ...} -//@ ``` -//@ -//@ Returns array of files in the given `path`, or files in -//@ the current directory if no `path` is provided. -function _ls(options, paths) { - if (options.all_deprecated) { - // We won't support the -a option as it's hard to image why it's useful - // (it includes '.' and '..' in addition to '.*' files) - // For backwards compatibility we'll dump a deprecated message and proceed as before - common.log('ls: Option -a is deprecated. Use -A instead'); - options.all = true; - } +/***/ 60283: +/***/ ((__unused_webpack_module, exports) => { - if (!paths) { - paths = ['.']; - } else { - paths = [].slice.call(arguments, 1); - } +"use strict"; - var list = []; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.identity = void 0; +function identity(x) { + return x; +} +exports.identity = identity; +//# sourceMappingURL=identity.js.map - function pushFile(abs, relName, stat) { - if (process.platform === 'win32') { - relName = relName.replace(/\\/g, '/'); - } - if (options.long) { - stat = stat || (options.link ? common.statFollowLinks(abs) : common.statNoFollowLinks(abs)); - list.push(addLsAttributes(relName, stat)); - } else { - // list.push(path.relative(rel || '.', file)); - list.push(relName); - } - } +/***/ }), - paths.forEach(function (p) { - var stat; +/***/ 24461: +/***/ ((__unused_webpack_module, exports) => { - try { - stat = options.link ? common.statFollowLinks(p) : common.statNoFollowLinks(p); - // follow links to directories by default - if (stat.isSymbolicLink()) { - /* istanbul ignore next */ - // workaround for https://github.com/shelljs/shelljs/issues/795 - // codecov seems to have a bug that miscalculate this block as uncovered. - // but according to nyc report this block does get covered. - try { - var _stat = common.statFollowLinks(p); - if (_stat.isDirectory()) { - stat = _stat; - } - } catch (_) {} // bad symlink, treat it like a file - } - } catch (e) { - common.error('no such file or directory: ' + p, 2, { continue: true }); - return; - } +"use strict"; - // If the stat succeeded - if (stat.isDirectory() && !options.directory) { - if (options.recursive) { - // use glob, because it's simple - glob.sync(p + globPatternRecursive, { dot: options.all, follow: options.link }) - .forEach(function (item) { - // Glob pattern returns the directory itself and needs to be filtered out. - if (path.relative(p, item)) { - pushFile(item, path.relative(p, item)); - } - }); - } else if (options.all) { - // use fs.readdirSync, because it's fast - fs.readdirSync(p).forEach(function (item) { - pushFile(path.join(p, item), item); - }); - } else { - // use fs.readdirSync and then filter out secret files - fs.readdirSync(p).forEach(function (item) { - if (item[0] !== '.') { - pushFile(path.join(p, item), item); - } - }); - } - } else { - pushFile(p, p, stat); - } - }); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isArrayLike = void 0; +exports.isArrayLike = (function (x) { return x && typeof x.length === 'number' && typeof x !== 'function'; }); +//# sourceMappingURL=isArrayLike.js.map - // Add methods, to make this more compatible with ShellStrings - return list; -} +/***/ }), -function addLsAttributes(pathName, stats) { - // Note: this object will contain more information than .toString() returns - stats.name = pathName; - stats.toString = function () { - // Return a string resembling unix's `ls -l` format - return [this.mode, this.nlink, this.uid, this.gid, this.size, this.mtime, this.name].join(' '); - }; - return stats; -} +/***/ 44408: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -module.exports = _ls; +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isAsyncIterable = void 0; +var isFunction_1 = __nccwpck_require__(67206); +function isAsyncIterable(obj) { + return Symbol.asyncIterator && isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]); +} +exports.isAsyncIterable = isAsyncIterable; +//# sourceMappingURL=isAsyncIterable.js.map /***/ }), -/***/ 72695: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 60935: +/***/ ((__unused_webpack_module, exports) => { -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); -var path = __nccwpck_require__(71017); +"use strict"; -common.register('mkdir', _mkdir, { - cmdOptions: { - 'p': 'fullpath', - }, -}); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isValidDate = void 0; +function isValidDate(value) { + return value instanceof Date && !isNaN(value); +} +exports.isValidDate = isValidDate; +//# sourceMappingURL=isDate.js.map -// Recursively creates `dir` -function mkdirSyncRecursive(dir) { - var baseDir = path.dirname(dir); +/***/ }), - // Prevents some potential problems arising from malformed UNCs or - // insufficient permissions. - /* istanbul ignore next */ - if (baseDir === dir) { - common.error('dirname() failed: [' + dir + ']'); - } +/***/ 67206: +/***/ ((__unused_webpack_module, exports) => { - // Base dir exists, no recursion necessary - if (fs.existsSync(baseDir)) { - fs.mkdirSync(dir, parseInt('0777', 8)); - return; - } +"use strict"; - // Base dir does not exist, go recursive - mkdirSyncRecursive(baseDir); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isFunction = void 0; +function isFunction(value) { + return typeof value === 'function'; +} +exports.isFunction = isFunction; +//# sourceMappingURL=isFunction.js.map - // Base dir created, can create dir - fs.mkdirSync(dir, parseInt('0777', 8)); +/***/ }), + +/***/ 67984: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isInteropObservable = void 0; +var observable_1 = __nccwpck_require__(17186); +var isFunction_1 = __nccwpck_require__(67206); +function isInteropObservable(input) { + return isFunction_1.isFunction(input[observable_1.observable]); } +exports.isInteropObservable = isInteropObservable; +//# sourceMappingURL=isInteropObservable.js.map -//@ -//@ ### mkdir([options,] dir [, dir ...]) -//@ ### mkdir([options,] dir_array) -//@ -//@ Available options: -//@ -//@ + `-p`: full path (and create intermediate directories, if necessary) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ mkdir('-p', '/tmp/a/b/c/d', '/tmp/e/f/g'); -//@ mkdir('-p', ['/tmp/a/b/c/d', '/tmp/e/f/g']); // same as above -//@ ``` -//@ -//@ Creates directories. -function _mkdir(options, dirs) { - if (!dirs) common.error('no paths given'); +/***/ }), - if (typeof dirs === 'string') { - dirs = [].slice.call(arguments, 1); - } - // if it's array leave it as it is +/***/ 94292: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - dirs.forEach(function (dir) { - try { - var stat = common.statNoFollowLinks(dir); - if (!options.fullpath) { - common.error('path already exists: ' + dir, { continue: true }); - } else if (stat.isFile()) { - common.error('cannot create directory ' + dir + ': File exists', { continue: true }); - } - return; // skip dir - } catch (e) { - // do nothing - } +"use strict"; - // Base dir does not exist, and no -p option given - var baseDir = path.dirname(dir); - if (!fs.existsSync(baseDir) && !options.fullpath) { - common.error('no such file or directory: ' + baseDir, { continue: true }); - return; // skip dir - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isIterable = void 0; +var iterator_1 = __nccwpck_require__(85517); +var isFunction_1 = __nccwpck_require__(67206); +function isIterable(input) { + return isFunction_1.isFunction(input === null || input === void 0 ? void 0 : input[iterator_1.iterator]); +} +exports.isIterable = isIterable; +//# sourceMappingURL=isIterable.js.map - try { - if (options.fullpath) { - mkdirSyncRecursive(path.resolve(dir)); - } else { - fs.mkdirSync(dir, parseInt('0777', 8)); - } - } catch (e) { - var reason; - if (e.code === 'EACCES') { - reason = 'Permission denied'; - } else if (e.code === 'ENOTDIR' || e.code === 'ENOENT') { - reason = 'Not a directory'; - } else { - /* istanbul ignore next */ - throw e; - } - common.error('cannot create directory ' + dir + ': ' + reason, { continue: true }); - } - }); - return ''; -} // mkdir -module.exports = _mkdir; +/***/ }), + +/***/ 72259: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isObservable = void 0; +var Observable_1 = __nccwpck_require__(53014); +var isFunction_1 = __nccwpck_require__(67206); +function isObservable(obj) { + return !!obj && (obj instanceof Observable_1.Observable || (isFunction_1.isFunction(obj.lift) && isFunction_1.isFunction(obj.subscribe))); +} +exports.isObservable = isObservable; +//# sourceMappingURL=isObservable.js.map /***/ }), -/***/ 39849: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 65585: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var fs = __nccwpck_require__(57147); -var path = __nccwpck_require__(71017); -var common = __nccwpck_require__(53687); -var cp = __nccwpck_require__(34932); -var rm = __nccwpck_require__(22830); +"use strict"; -common.register('mv', _mv, { - cmdOptions: { - 'f': '!no_force', - 'n': 'no_force', - }, -}); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isPromise = void 0; +var isFunction_1 = __nccwpck_require__(67206); +function isPromise(value) { + return isFunction_1.isFunction(value === null || value === void 0 ? void 0 : value.then); +} +exports.isPromise = isPromise; +//# sourceMappingURL=isPromise.js.map -// Checks if cureent file was created recently -function checkRecentCreated(sources, index) { - var lookedSource = sources[index]; - return sources.slice(0, index).some(function (src) { - return path.basename(src) === path.basename(lookedSource); - }); +/***/ }), + +/***/ 99621: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isReadableStreamLike = exports.readableStreamLikeToAsyncGenerator = void 0; +var isFunction_1 = __nccwpck_require__(67206); +function readableStreamLikeToAsyncGenerator(readableStream) { + return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() { + var reader, _a, value, done; + return __generator(this, function (_b) { + switch (_b.label) { + case 0: + reader = readableStream.getReader(); + _b.label = 1; + case 1: + _b.trys.push([1, , 9, 10]); + _b.label = 2; + case 2: + if (false) {} + return [4, __await(reader.read())]; + case 3: + _a = _b.sent(), value = _a.value, done = _a.done; + if (!done) return [3, 5]; + return [4, __await(void 0)]; + case 4: return [2, _b.sent()]; + case 5: return [4, __await(value)]; + case 6: return [4, _b.sent()]; + case 7: + _b.sent(); + return [3, 2]; + case 8: return [3, 10]; + case 9: + reader.releaseLock(); + return [7]; + case 10: return [2]; + } + }); + }); } +exports.readableStreamLikeToAsyncGenerator = readableStreamLikeToAsyncGenerator; +function isReadableStreamLike(obj) { + return isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader); +} +exports.isReadableStreamLike = isReadableStreamLike; +//# sourceMappingURL=isReadableStreamLike.js.map -//@ -//@ ### mv([options ,] source [, source ...], dest') -//@ ### mv([options ,] source_array, dest') -//@ -//@ Available options: -//@ -//@ + `-f`: force (default behavior) -//@ + `-n`: no-clobber -//@ -//@ Examples: -//@ -//@ ```javascript -//@ mv('-n', 'file', 'dir/'); -//@ mv('file1', 'file2', 'dir/'); -//@ mv(['file1', 'file2'], 'dir/'); // same as above -//@ ``` -//@ -//@ Moves `source` file(s) to `dest`. -function _mv(options, sources, dest) { - // Get sources, dest - if (arguments.length < 3) { - common.error('missing and/or '); - } else if (arguments.length > 3) { - sources = [].slice.call(arguments, 1, arguments.length - 1); - dest = arguments[arguments.length - 1]; - } else if (typeof sources === 'string') { - sources = [sources]; - } else { - // TODO(nate): figure out if we actually need this line - common.error('invalid arguments'); - } +/***/ }), - var exists = fs.existsSync(dest); - var stats = exists && common.statFollowLinks(dest); +/***/ 84078: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // Dest is not existing dir, but multiple sources given - if ((!exists || !stats.isDirectory()) && sources.length > 1) { - common.error('dest is not a directory (too many sources)'); - } +"use strict"; - // Dest is an existing file, but no -f given - if (exists && stats.isFile() && options.no_force) { - common.error('dest file already exists: ' + dest); - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isScheduler = void 0; +var isFunction_1 = __nccwpck_require__(67206); +function isScheduler(value) { + return value && isFunction_1.isFunction(value.schedule); +} +exports.isScheduler = isScheduler; +//# sourceMappingURL=isScheduler.js.map - sources.forEach(function (src, srcIndex) { - if (!fs.existsSync(src)) { - common.error('no such file or directory: ' + src, { continue: true }); - return; // skip file - } +/***/ }), - // If here, src exists +/***/ 38669: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // When copying to '/path/dir': - // thisDest = '/path/dir/file1' - var thisDest = dest; - if (fs.existsSync(dest) && common.statFollowLinks(dest).isDirectory()) { - thisDest = path.normalize(dest + '/' + path.basename(src)); - } +"use strict"; - var thisDestExists = fs.existsSync(thisDest); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.operate = exports.hasLift = void 0; +var isFunction_1 = __nccwpck_require__(67206); +function hasLift(source) { + return isFunction_1.isFunction(source === null || source === void 0 ? void 0 : source.lift); +} +exports.hasLift = hasLift; +function operate(init) { + return function (source) { + if (hasLift(source)) { + return source.lift(function (liftedSource) { + try { + return init(liftedSource, this); + } + catch (err) { + this.error(err); + } + }); + } + throw new TypeError('Unable to lift unknown Observable type'); + }; +} +exports.operate = operate; +//# sourceMappingURL=lift.js.map - if (thisDestExists && checkRecentCreated(sources, srcIndex)) { - // cannot overwrite file created recently in current execution, but we want to continue copying other files - if (!options.no_force) { - common.error("will not overwrite just-created '" + thisDest + "' with '" + src + "'", { continue: true }); - } - return; - } +/***/ }), - if (fs.existsSync(thisDest) && options.no_force) { - common.error('dest file already exists: ' + thisDest, { continue: true }); - return; // skip file - } +/***/ 78934: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - if (path.resolve(src) === path.dirname(path.resolve(thisDest))) { - common.error('cannot move to self: ' + src, { continue: true }); - return; // skip file - } +"use strict"; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; try { - fs.renameSync(src, thisDest); - } catch (e) { - /* istanbul ignore next */ - if (e.code === 'EXDEV') { - // If we're trying to `mv` to an external partition, we'll actually need - // to perform a copy and then clean up the original file. If either the - // copy or the rm fails with an exception, we should allow this - // exception to pass up to the top level. - cp('-r', src, thisDest); - rm('-rf', src); - } + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } - }); // forEach(src) - return ''; -} // mv -module.exports = _mv; - + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.mapOneOrManyArgs = void 0; +var map_1 = __nccwpck_require__(5987); +var isArray = Array.isArray; +function callOrApply(fn, args) { + return isArray(args) ? fn.apply(void 0, __spreadArray([], __read(args))) : fn(args); +} +function mapOneOrManyArgs(fn) { + return map_1.map(function (args) { return callOrApply(fn, args); }); +} +exports.mapOneOrManyArgs = mapOneOrManyArgs; +//# sourceMappingURL=mapOneOrManyArgs.js.map /***/ }), -/***/ 50227: -/***/ (() => { +/***/ 11642: +/***/ ((__unused_webpack_module, exports) => { -// see dirs.js +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.noop = void 0; +function noop() { } +exports.noop = noop; +//# sourceMappingURL=noop.js.map /***/ }), -/***/ 44177: -/***/ (() => { +/***/ 54338: +/***/ ((__unused_webpack_module, exports) => { -// see dirs.js +"use strict"; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.not = void 0; +function not(pred, thisArg) { + return function (value, index) { return !pred.call(thisArg, value, index); }; +} +exports.not = not; +//# sourceMappingURL=not.js.map /***/ }), -/***/ 58553: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var path = __nccwpck_require__(71017); -var common = __nccwpck_require__(53687); +/***/ 49587: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -common.register('pwd', _pwd, { - allowGlobbing: false, -}); +"use strict"; -//@ -//@ ### pwd() -//@ -//@ Returns the current directory. -function _pwd() { - var pwd = path.resolve(process.cwd()); - return pwd; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.pipeFromArray = exports.pipe = void 0; +var identity_1 = __nccwpck_require__(60283); +function pipe() { + var fns = []; + for (var _i = 0; _i < arguments.length; _i++) { + fns[_i] = arguments[_i]; + } + return pipeFromArray(fns); } -module.exports = _pwd; - +exports.pipe = pipe; +function pipeFromArray(fns) { + if (fns.length === 0) { + return identity_1.identity; + } + if (fns.length === 1) { + return fns[0]; + } + return function piped(input) { + return fns.reduce(function (prev, fn) { return fn(prev); }, input); + }; +} +exports.pipeFromArray = pipeFromArray; +//# sourceMappingURL=pipe.js.map /***/ }), -/***/ 22830: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 92445: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); +"use strict"; -common.register('rm', _rm, { - cmdOptions: { - 'f': 'force', - 'r': 'recursive', - 'R': 'recursive', - }, -}); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.reportUnhandledError = void 0; +var config_1 = __nccwpck_require__(92233); +var timeoutProvider_1 = __nccwpck_require__(1613); +function reportUnhandledError(err) { + timeoutProvider_1.timeoutProvider.setTimeout(function () { + var onUnhandledError = config_1.config.onUnhandledError; + if (onUnhandledError) { + onUnhandledError(err); + } + else { + throw err; + } + }); +} +exports.reportUnhandledError = reportUnhandledError; +//# sourceMappingURL=reportUnhandledError.js.map -// Recursively removes 'dir' -// Adapted from https://github.com/ryanmcgrath/wrench-js -// -// Copyright (c) 2010 Ryan McGrath -// Copyright (c) 2012 Artur Adib -// -// Licensed under the MIT License -// http://www.opensource.org/licenses/mit-license.php -function rmdirSyncRecursive(dir, force, fromSymlink) { - var files; +/***/ }), - files = fs.readdirSync(dir); +/***/ 97364: +/***/ ((__unused_webpack_module, exports) => { - // Loop through and delete everything in the sub-tree after checking it - for (var i = 0; i < files.length; i++) { - var file = dir + '/' + files[i]; - var currFile = common.statNoFollowLinks(file); +"use strict"; - if (currFile.isDirectory()) { // Recursive function back to the beginning - rmdirSyncRecursive(file, force); - } else { // Assume it's a file - perhaps a try/catch belongs here? - if (force || isWriteable(file)) { - try { - common.unlinkSync(file); - } catch (e) { - /* istanbul ignore next */ - common.error('could not remove file (code ' + e.code + '): ' + file, { - continue: true, - }); - } - } - } - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createInvalidObservableTypeError = void 0; +function createInvalidObservableTypeError(input) { + return new TypeError("You provided " + (input !== null && typeof input === 'object' ? 'an invalid object' : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."); +} +exports.createInvalidObservableTypeError = createInvalidObservableTypeError; +//# sourceMappingURL=throwUnobservableError.js.map - // if was directory was referenced through a symbolic link, - // the contents should be removed, but not the directory itself - if (fromSymlink) return; +/***/ }), - // Now that we know everything in the sub-tree has been deleted, we can delete the main directory. - // Huzzah for the shopkeep. +/***/ 50749: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - var result; - try { - // Retry on windows, sometimes it takes a little time before all the files in the directory are gone - var start = Date.now(); +"use strict"; - // TODO: replace this with a finite loop - for (;;) { - try { - result = fs.rmdirSync(dir); - if (fs.existsSync(dir)) throw { code: 'EAGAIN' }; - break; - } catch (er) { - /* istanbul ignore next */ - // In addition to error codes, also check if the directory still exists and loop again if true - if (process.platform === 'win32' && (er.code === 'ENOTEMPTY' || er.code === 'EBUSY' || er.code === 'EPERM' || er.code === 'EAGAIN')) { - if (Date.now() - start > 1000) throw er; - } else if (er.code === 'ENOENT') { - // Directory did not exist, deletion was successful - break; - } else { - throw er; - } - } - } - } catch (e) { - common.error('could not remove directory (code ' + e.code + '): ' + dir, { continue: true }); - } +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.mergeAll = exports.merge = exports.max = exports.materialize = exports.mapTo = exports.map = exports.last = exports.isEmpty = exports.ignoreElements = exports.groupBy = exports.first = exports.findIndex = exports.find = exports.finalize = exports.filter = exports.expand = exports.exhaustMap = exports.exhaustAll = exports.exhaust = exports.every = exports.endWith = exports.elementAt = exports.distinctUntilKeyChanged = exports.distinctUntilChanged = exports.distinct = exports.dematerialize = exports.delayWhen = exports.delay = exports.defaultIfEmpty = exports.debounceTime = exports.debounce = exports.count = exports.connect = exports.concatWith = exports.concatMapTo = exports.concatMap = exports.concatAll = exports.concat = exports.combineLatestWith = exports.combineLatest = exports.combineLatestAll = exports.combineAll = exports.catchError = exports.bufferWhen = exports.bufferToggle = exports.bufferTime = exports.bufferCount = exports.buffer = exports.auditTime = exports.audit = void 0; +exports.timeInterval = exports.throwIfEmpty = exports.throttleTime = exports.throttle = exports.tap = exports.takeWhile = exports.takeUntil = exports.takeLast = exports.take = exports.switchScan = exports.switchMapTo = exports.switchMap = exports.switchAll = exports.subscribeOn = exports.startWith = exports.skipWhile = exports.skipUntil = exports.skipLast = exports.skip = exports.single = exports.shareReplay = exports.share = exports.sequenceEqual = exports.scan = exports.sampleTime = exports.sample = exports.refCount = exports.retryWhen = exports.retry = exports.repeatWhen = exports.repeat = exports.reduce = exports.raceWith = exports.race = exports.publishReplay = exports.publishLast = exports.publishBehavior = exports.publish = exports.pluck = exports.partition = exports.pairwise = exports.onErrorResumeNext = exports.observeOn = exports.multicast = exports.min = exports.mergeWith = exports.mergeScan = exports.mergeMapTo = exports.mergeMap = exports.flatMap = void 0; +exports.zipWith = exports.zipAll = exports.zip = exports.withLatestFrom = exports.windowWhen = exports.windowToggle = exports.windowTime = exports.windowCount = exports.window = exports.toArray = exports.timestamp = exports.timeoutWith = exports.timeout = void 0; +var audit_1 = __nccwpck_require__(82704); +Object.defineProperty(exports, "audit", ({ enumerable: true, get: function () { return audit_1.audit; } })); +var auditTime_1 = __nccwpck_require__(18780); +Object.defineProperty(exports, "auditTime", ({ enumerable: true, get: function () { return auditTime_1.auditTime; } })); +var buffer_1 = __nccwpck_require__(34253); +Object.defineProperty(exports, "buffer", ({ enumerable: true, get: function () { return buffer_1.buffer; } })); +var bufferCount_1 = __nccwpck_require__(17253); +Object.defineProperty(exports, "bufferCount", ({ enumerable: true, get: function () { return bufferCount_1.bufferCount; } })); +var bufferTime_1 = __nccwpck_require__(73102); +Object.defineProperty(exports, "bufferTime", ({ enumerable: true, get: function () { return bufferTime_1.bufferTime; } })); +var bufferToggle_1 = __nccwpck_require__(83781); +Object.defineProperty(exports, "bufferToggle", ({ enumerable: true, get: function () { return bufferToggle_1.bufferToggle; } })); +var bufferWhen_1 = __nccwpck_require__(82855); +Object.defineProperty(exports, "bufferWhen", ({ enumerable: true, get: function () { return bufferWhen_1.bufferWhen; } })); +var catchError_1 = __nccwpck_require__(37765); +Object.defineProperty(exports, "catchError", ({ enumerable: true, get: function () { return catchError_1.catchError; } })); +var combineAll_1 = __nccwpck_require__(88817); +Object.defineProperty(exports, "combineAll", ({ enumerable: true, get: function () { return combineAll_1.combineAll; } })); +var combineLatestAll_1 = __nccwpck_require__(91063); +Object.defineProperty(exports, "combineLatestAll", ({ enumerable: true, get: function () { return combineLatestAll_1.combineLatestAll; } })); +var combineLatest_1 = __nccwpck_require__(96008); +Object.defineProperty(exports, "combineLatest", ({ enumerable: true, get: function () { return combineLatest_1.combineLatest; } })); +var combineLatestWith_1 = __nccwpck_require__(19044); +Object.defineProperty(exports, "combineLatestWith", ({ enumerable: true, get: function () { return combineLatestWith_1.combineLatestWith; } })); +var concat_1 = __nccwpck_require__(18500); +Object.defineProperty(exports, "concat", ({ enumerable: true, get: function () { return concat_1.concat; } })); +var concatAll_1 = __nccwpck_require__(88049); +Object.defineProperty(exports, "concatAll", ({ enumerable: true, get: function () { return concatAll_1.concatAll; } })); +var concatMap_1 = __nccwpck_require__(19130); +Object.defineProperty(exports, "concatMap", ({ enumerable: true, get: function () { return concatMap_1.concatMap; } })); +var concatMapTo_1 = __nccwpck_require__(61596); +Object.defineProperty(exports, "concatMapTo", ({ enumerable: true, get: function () { return concatMapTo_1.concatMapTo; } })); +var concatWith_1 = __nccwpck_require__(97998); +Object.defineProperty(exports, "concatWith", ({ enumerable: true, get: function () { return concatWith_1.concatWith; } })); +var connect_1 = __nccwpck_require__(51101); +Object.defineProperty(exports, "connect", ({ enumerable: true, get: function () { return connect_1.connect; } })); +var count_1 = __nccwpck_require__(36571); +Object.defineProperty(exports, "count", ({ enumerable: true, get: function () { return count_1.count; } })); +var debounce_1 = __nccwpck_require__(19348); +Object.defineProperty(exports, "debounce", ({ enumerable: true, get: function () { return debounce_1.debounce; } })); +var debounceTime_1 = __nccwpck_require__(62379); +Object.defineProperty(exports, "debounceTime", ({ enumerable: true, get: function () { return debounceTime_1.debounceTime; } })); +var defaultIfEmpty_1 = __nccwpck_require__(30621); +Object.defineProperty(exports, "defaultIfEmpty", ({ enumerable: true, get: function () { return defaultIfEmpty_1.defaultIfEmpty; } })); +var delay_1 = __nccwpck_require__(99818); +Object.defineProperty(exports, "delay", ({ enumerable: true, get: function () { return delay_1.delay; } })); +var delayWhen_1 = __nccwpck_require__(16994); +Object.defineProperty(exports, "delayWhen", ({ enumerable: true, get: function () { return delayWhen_1.delayWhen; } })); +var dematerialize_1 = __nccwpck_require__(95338); +Object.defineProperty(exports, "dematerialize", ({ enumerable: true, get: function () { return dematerialize_1.dematerialize; } })); +var distinct_1 = __nccwpck_require__(52594); +Object.defineProperty(exports, "distinct", ({ enumerable: true, get: function () { return distinct_1.distinct; } })); +var distinctUntilChanged_1 = __nccwpck_require__(20632); +Object.defineProperty(exports, "distinctUntilChanged", ({ enumerable: true, get: function () { return distinctUntilChanged_1.distinctUntilChanged; } })); +var distinctUntilKeyChanged_1 = __nccwpck_require__(13809); +Object.defineProperty(exports, "distinctUntilKeyChanged", ({ enumerable: true, get: function () { return distinctUntilKeyChanged_1.distinctUntilKeyChanged; } })); +var elementAt_1 = __nccwpck_require__(73381); +Object.defineProperty(exports, "elementAt", ({ enumerable: true, get: function () { return elementAt_1.elementAt; } })); +var endWith_1 = __nccwpck_require__(42961); +Object.defineProperty(exports, "endWith", ({ enumerable: true, get: function () { return endWith_1.endWith; } })); +var every_1 = __nccwpck_require__(69559); +Object.defineProperty(exports, "every", ({ enumerable: true, get: function () { return every_1.every; } })); +var exhaust_1 = __nccwpck_require__(75686); +Object.defineProperty(exports, "exhaust", ({ enumerable: true, get: function () { return exhaust_1.exhaust; } })); +var exhaustAll_1 = __nccwpck_require__(79777); +Object.defineProperty(exports, "exhaustAll", ({ enumerable: true, get: function () { return exhaustAll_1.exhaustAll; } })); +var exhaustMap_1 = __nccwpck_require__(21527); +Object.defineProperty(exports, "exhaustMap", ({ enumerable: true, get: function () { return exhaustMap_1.exhaustMap; } })); +var expand_1 = __nccwpck_require__(21585); +Object.defineProperty(exports, "expand", ({ enumerable: true, get: function () { return expand_1.expand; } })); +var filter_1 = __nccwpck_require__(36894); +Object.defineProperty(exports, "filter", ({ enumerable: true, get: function () { return filter_1.filter; } })); +var finalize_1 = __nccwpck_require__(4013); +Object.defineProperty(exports, "finalize", ({ enumerable: true, get: function () { return finalize_1.finalize; } })); +var find_1 = __nccwpck_require__(28981); +Object.defineProperty(exports, "find", ({ enumerable: true, get: function () { return find_1.find; } })); +var findIndex_1 = __nccwpck_require__(92602); +Object.defineProperty(exports, "findIndex", ({ enumerable: true, get: function () { return findIndex_1.findIndex; } })); +var first_1 = __nccwpck_require__(63345); +Object.defineProperty(exports, "first", ({ enumerable: true, get: function () { return first_1.first; } })); +var groupBy_1 = __nccwpck_require__(51650); +Object.defineProperty(exports, "groupBy", ({ enumerable: true, get: function () { return groupBy_1.groupBy; } })); +var ignoreElements_1 = __nccwpck_require__(31062); +Object.defineProperty(exports, "ignoreElements", ({ enumerable: true, get: function () { return ignoreElements_1.ignoreElements; } })); +var isEmpty_1 = __nccwpck_require__(77722); +Object.defineProperty(exports, "isEmpty", ({ enumerable: true, get: function () { return isEmpty_1.isEmpty; } })); +var last_1 = __nccwpck_require__(46831); +Object.defineProperty(exports, "last", ({ enumerable: true, get: function () { return last_1.last; } })); +var map_1 = __nccwpck_require__(5987); +Object.defineProperty(exports, "map", ({ enumerable: true, get: function () { return map_1.map; } })); +var mapTo_1 = __nccwpck_require__(52300); +Object.defineProperty(exports, "mapTo", ({ enumerable: true, get: function () { return mapTo_1.mapTo; } })); +var materialize_1 = __nccwpck_require__(67108); +Object.defineProperty(exports, "materialize", ({ enumerable: true, get: function () { return materialize_1.materialize; } })); +var max_1 = __nccwpck_require__(17314); +Object.defineProperty(exports, "max", ({ enumerable: true, get: function () { return max_1.max; } })); +var merge_1 = __nccwpck_require__(39510); +Object.defineProperty(exports, "merge", ({ enumerable: true, get: function () { return merge_1.merge; } })); +var mergeAll_1 = __nccwpck_require__(2057); +Object.defineProperty(exports, "mergeAll", ({ enumerable: true, get: function () { return mergeAll_1.mergeAll; } })); +var flatMap_1 = __nccwpck_require__(40186); +Object.defineProperty(exports, "flatMap", ({ enumerable: true, get: function () { return flatMap_1.flatMap; } })); +var mergeMap_1 = __nccwpck_require__(69914); +Object.defineProperty(exports, "mergeMap", ({ enumerable: true, get: function () { return mergeMap_1.mergeMap; } })); +var mergeMapTo_1 = __nccwpck_require__(49151); +Object.defineProperty(exports, "mergeMapTo", ({ enumerable: true, get: function () { return mergeMapTo_1.mergeMapTo; } })); +var mergeScan_1 = __nccwpck_require__(11519); +Object.defineProperty(exports, "mergeScan", ({ enumerable: true, get: function () { return mergeScan_1.mergeScan; } })); +var mergeWith_1 = __nccwpck_require__(31564); +Object.defineProperty(exports, "mergeWith", ({ enumerable: true, get: function () { return mergeWith_1.mergeWith; } })); +var min_1 = __nccwpck_require__(87641); +Object.defineProperty(exports, "min", ({ enumerable: true, get: function () { return min_1.min; } })); +var multicast_1 = __nccwpck_require__(65457); +Object.defineProperty(exports, "multicast", ({ enumerable: true, get: function () { return multicast_1.multicast; } })); +var observeOn_1 = __nccwpck_require__(22451); +Object.defineProperty(exports, "observeOn", ({ enumerable: true, get: function () { return observeOn_1.observeOn; } })); +var onErrorResumeNextWith_1 = __nccwpck_require__(33569); +Object.defineProperty(exports, "onErrorResumeNext", ({ enumerable: true, get: function () { return onErrorResumeNextWith_1.onErrorResumeNext; } })); +var pairwise_1 = __nccwpck_require__(52206); +Object.defineProperty(exports, "pairwise", ({ enumerable: true, get: function () { return pairwise_1.pairwise; } })); +var partition_1 = __nccwpck_require__(55949); +Object.defineProperty(exports, "partition", ({ enumerable: true, get: function () { return partition_1.partition; } })); +var pluck_1 = __nccwpck_require__(16073); +Object.defineProperty(exports, "pluck", ({ enumerable: true, get: function () { return pluck_1.pluck; } })); +var publish_1 = __nccwpck_require__(84084); +Object.defineProperty(exports, "publish", ({ enumerable: true, get: function () { return publish_1.publish; } })); +var publishBehavior_1 = __nccwpck_require__(40045); +Object.defineProperty(exports, "publishBehavior", ({ enumerable: true, get: function () { return publishBehavior_1.publishBehavior; } })); +var publishLast_1 = __nccwpck_require__(84149); +Object.defineProperty(exports, "publishLast", ({ enumerable: true, get: function () { return publishLast_1.publishLast; } })); +var publishReplay_1 = __nccwpck_require__(47656); +Object.defineProperty(exports, "publishReplay", ({ enumerable: true, get: function () { return publishReplay_1.publishReplay; } })); +var race_1 = __nccwpck_require__(85846); +Object.defineProperty(exports, "race", ({ enumerable: true, get: function () { return race_1.race; } })); +var raceWith_1 = __nccwpck_require__(58008); +Object.defineProperty(exports, "raceWith", ({ enumerable: true, get: function () { return raceWith_1.raceWith; } })); +var reduce_1 = __nccwpck_require__(62087); +Object.defineProperty(exports, "reduce", ({ enumerable: true, get: function () { return reduce_1.reduce; } })); +var repeat_1 = __nccwpck_require__(22418); +Object.defineProperty(exports, "repeat", ({ enumerable: true, get: function () { return repeat_1.repeat; } })); +var repeatWhen_1 = __nccwpck_require__(70754); +Object.defineProperty(exports, "repeatWhen", ({ enumerable: true, get: function () { return repeatWhen_1.repeatWhen; } })); +var retry_1 = __nccwpck_require__(56251); +Object.defineProperty(exports, "retry", ({ enumerable: true, get: function () { return retry_1.retry; } })); +var retryWhen_1 = __nccwpck_require__(69018); +Object.defineProperty(exports, "retryWhen", ({ enumerable: true, get: function () { return retryWhen_1.retryWhen; } })); +var refCount_1 = __nccwpck_require__(2331); +Object.defineProperty(exports, "refCount", ({ enumerable: true, get: function () { return refCount_1.refCount; } })); +var sample_1 = __nccwpck_require__(13774); +Object.defineProperty(exports, "sample", ({ enumerable: true, get: function () { return sample_1.sample; } })); +var sampleTime_1 = __nccwpck_require__(49807); +Object.defineProperty(exports, "sampleTime", ({ enumerable: true, get: function () { return sampleTime_1.sampleTime; } })); +var scan_1 = __nccwpck_require__(25578); +Object.defineProperty(exports, "scan", ({ enumerable: true, get: function () { return scan_1.scan; } })); +var sequenceEqual_1 = __nccwpck_require__(16126); +Object.defineProperty(exports, "sequenceEqual", ({ enumerable: true, get: function () { return sequenceEqual_1.sequenceEqual; } })); +var share_1 = __nccwpck_require__(48960); +Object.defineProperty(exports, "share", ({ enumerable: true, get: function () { return share_1.share; } })); +var shareReplay_1 = __nccwpck_require__(92118); +Object.defineProperty(exports, "shareReplay", ({ enumerable: true, get: function () { return shareReplay_1.shareReplay; } })); +var single_1 = __nccwpck_require__(58441); +Object.defineProperty(exports, "single", ({ enumerable: true, get: function () { return single_1.single; } })); +var skip_1 = __nccwpck_require__(80947); +Object.defineProperty(exports, "skip", ({ enumerable: true, get: function () { return skip_1.skip; } })); +var skipLast_1 = __nccwpck_require__(65865); +Object.defineProperty(exports, "skipLast", ({ enumerable: true, get: function () { return skipLast_1.skipLast; } })); +var skipUntil_1 = __nccwpck_require__(41110); +Object.defineProperty(exports, "skipUntil", ({ enumerable: true, get: function () { return skipUntil_1.skipUntil; } })); +var skipWhile_1 = __nccwpck_require__(92550); +Object.defineProperty(exports, "skipWhile", ({ enumerable: true, get: function () { return skipWhile_1.skipWhile; } })); +var startWith_1 = __nccwpck_require__(25471); +Object.defineProperty(exports, "startWith", ({ enumerable: true, get: function () { return startWith_1.startWith; } })); +var subscribeOn_1 = __nccwpck_require__(7224); +Object.defineProperty(exports, "subscribeOn", ({ enumerable: true, get: function () { return subscribeOn_1.subscribeOn; } })); +var switchAll_1 = __nccwpck_require__(40327); +Object.defineProperty(exports, "switchAll", ({ enumerable: true, get: function () { return switchAll_1.switchAll; } })); +var switchMap_1 = __nccwpck_require__(26704); +Object.defineProperty(exports, "switchMap", ({ enumerable: true, get: function () { return switchMap_1.switchMap; } })); +var switchMapTo_1 = __nccwpck_require__(1713); +Object.defineProperty(exports, "switchMapTo", ({ enumerable: true, get: function () { return switchMapTo_1.switchMapTo; } })); +var switchScan_1 = __nccwpck_require__(13355); +Object.defineProperty(exports, "switchScan", ({ enumerable: true, get: function () { return switchScan_1.switchScan; } })); +var take_1 = __nccwpck_require__(33698); +Object.defineProperty(exports, "take", ({ enumerable: true, get: function () { return take_1.take; } })); +var takeLast_1 = __nccwpck_require__(65041); +Object.defineProperty(exports, "takeLast", ({ enumerable: true, get: function () { return takeLast_1.takeLast; } })); +var takeUntil_1 = __nccwpck_require__(55150); +Object.defineProperty(exports, "takeUntil", ({ enumerable: true, get: function () { return takeUntil_1.takeUntil; } })); +var takeWhile_1 = __nccwpck_require__(76700); +Object.defineProperty(exports, "takeWhile", ({ enumerable: true, get: function () { return takeWhile_1.takeWhile; } })); +var tap_1 = __nccwpck_require__(48845); +Object.defineProperty(exports, "tap", ({ enumerable: true, get: function () { return tap_1.tap; } })); +var throttle_1 = __nccwpck_require__(36713); +Object.defineProperty(exports, "throttle", ({ enumerable: true, get: function () { return throttle_1.throttle; } })); +var throttleTime_1 = __nccwpck_require__(83435); +Object.defineProperty(exports, "throttleTime", ({ enumerable: true, get: function () { return throttleTime_1.throttleTime; } })); +var throwIfEmpty_1 = __nccwpck_require__(91566); +Object.defineProperty(exports, "throwIfEmpty", ({ enumerable: true, get: function () { return throwIfEmpty_1.throwIfEmpty; } })); +var timeInterval_1 = __nccwpck_require__(14643); +Object.defineProperty(exports, "timeInterval", ({ enumerable: true, get: function () { return timeInterval_1.timeInterval; } })); +var timeout_1 = __nccwpck_require__(12051); +Object.defineProperty(exports, "timeout", ({ enumerable: true, get: function () { return timeout_1.timeout; } })); +var timeoutWith_1 = __nccwpck_require__(43540); +Object.defineProperty(exports, "timeoutWith", ({ enumerable: true, get: function () { return timeoutWith_1.timeoutWith; } })); +var timestamp_1 = __nccwpck_require__(75518); +Object.defineProperty(exports, "timestamp", ({ enumerable: true, get: function () { return timestamp_1.timestamp; } })); +var toArray_1 = __nccwpck_require__(35114); +Object.defineProperty(exports, "toArray", ({ enumerable: true, get: function () { return toArray_1.toArray; } })); +var window_1 = __nccwpck_require__(98255); +Object.defineProperty(exports, "window", ({ enumerable: true, get: function () { return window_1.window; } })); +var windowCount_1 = __nccwpck_require__(73144); +Object.defineProperty(exports, "windowCount", ({ enumerable: true, get: function () { return windowCount_1.windowCount; } })); +var windowTime_1 = __nccwpck_require__(2738); +Object.defineProperty(exports, "windowTime", ({ enumerable: true, get: function () { return windowTime_1.windowTime; } })); +var windowToggle_1 = __nccwpck_require__(52741); +Object.defineProperty(exports, "windowToggle", ({ enumerable: true, get: function () { return windowToggle_1.windowToggle; } })); +var windowWhen_1 = __nccwpck_require__(82645); +Object.defineProperty(exports, "windowWhen", ({ enumerable: true, get: function () { return windowWhen_1.windowWhen; } })); +var withLatestFrom_1 = __nccwpck_require__(20501); +Object.defineProperty(exports, "withLatestFrom", ({ enumerable: true, get: function () { return withLatestFrom_1.withLatestFrom; } })); +var zip_1 = __nccwpck_require__(17600); +Object.defineProperty(exports, "zip", ({ enumerable: true, get: function () { return zip_1.zip; } })); +var zipAll_1 = __nccwpck_require__(92335); +Object.defineProperty(exports, "zipAll", ({ enumerable: true, get: function () { return zipAll_1.zipAll; } })); +var zipWith_1 = __nccwpck_require__(95520); +Object.defineProperty(exports, "zipWith", ({ enumerable: true, get: function () { return zipWith_1.zipWith; } })); +//# sourceMappingURL=index.js.map - return result; -} // rmdirSyncRecursive +/***/ }), -// Hack to determine if file has write permissions for current user -// Avoids having to check user, group, etc, but it's probably slow -function isWriteable(file) { - var writePermission = true; - try { - var __fd = fs.openSync(file, 'a'); - fs.closeSync(__fd); - } catch (e) { - writePermission = false; - } +/***/ 21867: +/***/ ((module, exports, __nccwpck_require__) => { - return writePermission; -} +/*! safe-buffer. MIT License. Feross Aboukhadijeh */ +/* eslint-disable node/no-deprecated-api */ +var buffer = __nccwpck_require__(14300) +var Buffer = buffer.Buffer -function handleFile(file, options) { - if (options.force || isWriteable(file)) { - // -f was passed, or file is writable, so it can be removed - common.unlinkSync(file); - } else { - common.error('permission denied: ' + file, { continue: true }); +// alternative to using Object.keys for old browsers +function copyProps (src, dst) { + for (var key in src) { + dst[key] = src[key] } } +if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { + module.exports = buffer +} else { + // Copy properties from require('buffer') + copyProps(buffer, exports) + exports.Buffer = SafeBuffer +} -function handleDirectory(file, options) { - if (options.recursive) { - // -r was passed, so directory can be removed - rmdirSyncRecursive(file, options.force); - } else { - common.error('path is a directory', { continue: true }); - } +function SafeBuffer (arg, encodingOrOffset, length) { + return Buffer(arg, encodingOrOffset, length) } -function handleSymbolicLink(file, options) { - var stats; - try { - stats = common.statFollowLinks(file); - } catch (e) { - // symlink is broken, so remove the symlink itself - common.unlinkSync(file); - return; +SafeBuffer.prototype = Object.create(Buffer.prototype) + +// Copy static methods from Buffer +copyProps(Buffer, SafeBuffer) + +SafeBuffer.from = function (arg, encodingOrOffset, length) { + if (typeof arg === 'number') { + throw new TypeError('Argument must not be a number') } + return Buffer(arg, encodingOrOffset, length) +} - if (stats.isFile()) { - common.unlinkSync(file); - } else if (stats.isDirectory()) { - if (file[file.length - 1] === '/') { - // trailing separator, so remove the contents, not the link - if (options.recursive) { - // -r was passed, so directory can be removed - var fromSymlink = true; - rmdirSyncRecursive(file, options.force, fromSymlink); - } else { - common.error('path is a directory', { continue: true }); - } +SafeBuffer.alloc = function (size, fill, encoding) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + var buf = Buffer(size) + if (fill !== undefined) { + if (typeof encoding === 'string') { + buf.fill(fill, encoding) } else { - // no trailing separator, so remove the link - common.unlinkSync(file); + buf.fill(fill) } + } else { + buf.fill(0) } + return buf } -function handleFIFO(file) { - common.unlinkSync(file); +SafeBuffer.allocUnsafe = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return Buffer(size) } -//@ -//@ ### rm([options,] file [, file ...]) -//@ ### rm([options,] file_array) -//@ -//@ Available options: -//@ -//@ + `-f`: force -//@ + `-r, -R`: recursive -//@ -//@ Examples: -//@ -//@ ```javascript -//@ rm('-rf', '/tmp/*'); -//@ rm('some_file.txt', 'another_file.txt'); -//@ rm(['some_file.txt', 'another_file.txt']); // same as above -//@ ``` -//@ -//@ Removes files. -function _rm(options, files) { - if (!files) common.error('no paths given'); - - // Convert to array - files = [].slice.call(arguments, 1); - - files.forEach(function (file) { - var lstats; - try { - var filepath = (file[file.length - 1] === '/') - ? file.slice(0, -1) // remove the '/' so lstatSync can detect symlinks - : file; - lstats = common.statNoFollowLinks(filepath); // test for existence - } catch (e) { - // Path does not exist, no force flag given - if (!options.force) { - common.error('no such file or directory: ' + file, { continue: true }); - } - return; // skip file - } - - // If here, path exists - if (lstats.isFile()) { - handleFile(file, options); - } else if (lstats.isDirectory()) { - handleDirectory(file, options); - } else if (lstats.isSymbolicLink()) { - handleSymbolicLink(file, options); - } else if (lstats.isFIFO()) { - handleFIFO(file); - } - }); // forEach(file) - return ''; -} // rm -module.exports = _rm; +SafeBuffer.allocUnsafeSlow = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return buffer.SlowBuffer(size) +} /***/ }), -/***/ 25899: +/***/ 91532: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); +const ANY = Symbol('SemVer ANY') +// hoisted class for cyclic dependency +class Comparator { + static get ANY () { + return ANY + } -common.register('sed', _sed, { - globStart: 3, // don't glob-expand regexes - canReceivePipe: true, - cmdOptions: { - 'i': 'inplace', - }, -}); + constructor (comp, options) { + options = parseOptions(options) -//@ -//@ ### sed([options,] search_regex, replacement, file [, file ...]) -//@ ### sed([options,] search_regex, replacement, file_array) -//@ -//@ Available options: -//@ -//@ + `-i`: Replace contents of `file` in-place. _Note that no backups will be created!_ -//@ -//@ Examples: -//@ -//@ ```javascript -//@ sed('-i', 'PROGRAM_VERSION', 'v0.1.3', 'source.js'); -//@ sed(/.*DELETE_THIS_LINE.*\n/, '', 'source.js'); -//@ ``` -//@ -//@ Reads an input string from `file`s, and performs a JavaScript `replace()` on the input -//@ using the given `search_regex` and `replacement` string or function. Returns the new string after replacement. -//@ -//@ Note: -//@ -//@ Like unix `sed`, ShellJS `sed` supports capture groups. Capture groups are specified -//@ using the `$n` syntax: -//@ -//@ ```javascript -//@ sed(/(\w+)\s(\w+)/, '$2, $1', 'file.txt'); -//@ ``` -function _sed(options, regex, replacement, files) { - // Check if this is coming from a pipe - var pipe = common.readFromPipe(); + if (comp instanceof Comparator) { + if (comp.loose === !!options.loose) { + return comp + } else { + comp = comp.value + } + } - if (typeof replacement !== 'string' && typeof replacement !== 'function') { - if (typeof replacement === 'number') { - replacement = replacement.toString(); // fallback + comp = comp.trim().split(/\s+/).join(' ') + debug('comparator', comp, options) + this.options = options + this.loose = !!options.loose + this.parse(comp) + + if (this.semver === ANY) { + this.value = '' } else { - common.error('invalid replacement string'); + this.value = this.operator + this.semver.version } - } - // Convert all search strings to RegExp - if (typeof regex === 'string') { - regex = RegExp(regex); + debug('comp', this) } - if (!files && !pipe) { - common.error('no files given'); - } + parse (comp) { + const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR] + const m = comp.match(r) - files = [].slice.call(arguments, 3); + if (!m) { + throw new TypeError(`Invalid comparator: ${comp}`) + } - if (pipe) { - files.unshift('-'); - } + this.operator = m[1] !== undefined ? m[1] : '' + if (this.operator === '=') { + this.operator = '' + } - var sed = []; - files.forEach(function (file) { - if (!fs.existsSync(file) && file !== '-') { - common.error('no such file or directory: ' + file, 2, { continue: true }); - return; + // if it literally is just '>' or '' then allow anything. + if (!m[2]) { + this.semver = ANY + } else { + this.semver = new SemVer(m[2], this.options.loose) } + } - var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8'); - var lines = contents.split('\n'); - var result = lines.map(function (line) { - return line.replace(regex, replacement); - }).join('\n'); + toString () { + return this.value + } - sed.push(result); + test (version) { + debug('Comparator.test', version, this.options.loose) - if (options.inplace) { - fs.writeFileSync(file, result, 'utf8'); + if (this.semver === ANY || version === ANY) { + return true } - }); - return sed.join('\n'); -} -module.exports = _sed; + if (typeof version === 'string') { + try { + version = new SemVer(version, this.options) + } catch (er) { + return false + } + } + return cmp(version, this.operator, this.semver, this.options) + } -/***/ }), + intersects (comp, options) { + if (!(comp instanceof Comparator)) { + throw new TypeError('a Comparator is required') + } -/***/ 11411: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (this.operator === '') { + if (this.value === '') { + return true + } + return new Range(comp.value, options).test(this.value) + } else if (comp.operator === '') { + if (comp.value === '') { + return true + } + return new Range(this.value, options).test(comp.semver) + } -var common = __nccwpck_require__(53687); + options = parseOptions(options) -common.register('set', _set, { - allowGlobbing: false, - wrapOutput: false, -}); + // Special cases where nothing can possibly be lower + if (options.includePrerelease && + (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) { + return false + } + if (!options.includePrerelease && + (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) { + return false + } -//@ -//@ ### set(options) -//@ -//@ Available options: -//@ -//@ + `+/-e`: exit upon error (`config.fatal`) -//@ + `+/-v`: verbose: show all commands (`config.verbose`) -//@ + `+/-f`: disable filename expansion (globbing) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ set('-e'); // exit upon first error -//@ set('+e'); // this undoes a "set('-e')" -//@ ``` -//@ -//@ Sets global configuration variables. -function _set(options) { - if (!options) { - var args = [].slice.call(arguments, 0); - if (args.length < 2) common.error('must provide an argument'); - options = args[1]; - } - var negate = (options[0] === '+'); - if (negate) { - options = '-' + options.slice(1); // parseOptions needs a '-' prefix + // Same direction increasing (> or >=) + if (this.operator.startsWith('>') && comp.operator.startsWith('>')) { + return true + } + // Same direction decreasing (< or <=) + if (this.operator.startsWith('<') && comp.operator.startsWith('<')) { + return true + } + // same SemVer and both sides are inclusive (<= or >=) + if ( + (this.semver.version === comp.semver.version) && + this.operator.includes('=') && comp.operator.includes('=')) { + return true + } + // opposite directions less than + if (cmp(this.semver, '<', comp.semver, options) && + this.operator.startsWith('>') && comp.operator.startsWith('<')) { + return true + } + // opposite directions greater than + if (cmp(this.semver, '>', comp.semver, options) && + this.operator.startsWith('<') && comp.operator.startsWith('>')) { + return true + } + return false } - options = common.parseOptions(options, { - 'e': 'fatal', - 'v': 'verbose', - 'f': 'noglob', - }); +} - if (negate) { - Object.keys(options).forEach(function (key) { - options[key] = !options[key]; - }); - } +module.exports = Comparator - Object.keys(options).forEach(function (key) { - // Only change the global config if `negate` is false and the option is true - // or if `negate` is true and the option is false (aka negate !== option) - if (negate !== options[key]) { - common.config[key] = options[key]; - } - }); - return; -} -module.exports = _set; +const parseOptions = __nccwpck_require__(40785) +const { safeRe: re, t } = __nccwpck_require__(9523) +const cmp = __nccwpck_require__(75098) +const debug = __nccwpck_require__(50427) +const SemVer = __nccwpck_require__(48088) +const Range = __nccwpck_require__(9828) /***/ }), -/***/ 72116: +/***/ 9828: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); - -common.register('sort', _sort, { - canReceivePipe: true, - cmdOptions: { - 'r': 'reverse', - 'n': 'numerical', - }, -}); - -// parse out the number prefix of a line -function parseNumber(str) { - var match = str.match(/^\s*(\d*)\s*(.*)$/); - return { num: Number(match[1]), value: match[2] }; -} +// hoisted class for cyclic dependency +class Range { + constructor (range, options) { + options = parseOptions(options) -// compare two strings case-insensitively, but examine case for strings that are -// case-insensitive equivalent -function unixCmp(a, b) { - var aLower = a.toLowerCase(); - var bLower = b.toLowerCase(); - return (aLower === bLower ? - -1 * a.localeCompare(b) : // unix sort treats case opposite how javascript does - aLower.localeCompare(bLower)); -} + if (range instanceof Range) { + if ( + range.loose === !!options.loose && + range.includePrerelease === !!options.includePrerelease + ) { + return range + } else { + return new Range(range.raw, options) + } + } -// compare two strings in the fashion that unix sort's -n option works -function numericalCmp(a, b) { - var objA = parseNumber(a); - var objB = parseNumber(b); - if (objA.hasOwnProperty('num') && objB.hasOwnProperty('num')) { - return ((objA.num !== objB.num) ? - (objA.num - objB.num) : - unixCmp(objA.value, objB.value)); - } else { - return unixCmp(objA.value, objB.value); - } -} + if (range instanceof Comparator) { + // just put it in the set and return + this.raw = range.value + this.set = [[range]] + this.format() + return this + } -//@ -//@ ### sort([options,] file [, file ...]) -//@ ### sort([options,] file_array) -//@ -//@ Available options: -//@ -//@ + `-r`: Reverse the results -//@ + `-n`: Compare according to numerical value -//@ -//@ Examples: -//@ -//@ ```javascript -//@ sort('foo.txt', 'bar.txt'); -//@ sort('-r', 'foo.txt'); -//@ ``` -//@ -//@ Return the contents of the `file`s, sorted line-by-line. Sorting multiple -//@ files mixes their content (just as unix `sort` does). -function _sort(options, files) { - // Check if this is coming from a pipe - var pipe = common.readFromPipe(); + this.options = options + this.loose = !!options.loose + this.includePrerelease = !!options.includePrerelease - if (!files && !pipe) common.error('no files given'); + // First reduce all whitespace as much as possible so we do not have to rely + // on potentially slow regexes like \s*. This is then stored and used for + // future error messages as well. + this.raw = range + .trim() + .split(/\s+/) + .join(' ') - files = [].slice.call(arguments, 1); + // First, split on || + this.set = this.raw + .split('||') + // map the range to a 2d array of comparators + .map(r => this.parseRange(r.trim())) + // throw out any comparator lists that are empty + // this generally means that it was not a valid range, which is allowed + // in loose mode, but will still throw if the WHOLE range is invalid. + .filter(c => c.length) - if (pipe) { - files.unshift('-'); - } + if (!this.set.length) { + throw new TypeError(`Invalid SemVer Range: ${this.raw}`) + } - var lines = files.reduce(function (accum, file) { - if (file !== '-') { - if (!fs.existsSync(file)) { - common.error('no such file or directory: ' + file, { continue: true }); - return accum; - } else if (common.statFollowLinks(file).isDirectory()) { - common.error('read failed: ' + file + ': Is a directory', { - continue: true, - }); - return accum; + // if we have any that are not the null set, throw out null sets. + if (this.set.length > 1) { + // keep the first one, in case they're all null sets + const first = this.set[0] + this.set = this.set.filter(c => !isNullSet(c[0])) + if (this.set.length === 0) { + this.set = [first] + } else if (this.set.length > 1) { + // if we have any that are *, then the range is just * + for (const c of this.set) { + if (c.length === 1 && isAny(c[0])) { + this.set = [c] + break + } + } } } - var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8'); - return accum.concat(contents.trimRight().split('\n')); - }, []); - - var sorted = lines.sort(options.numerical ? numericalCmp : unixCmp); + this.format() + } - if (options.reverse) { - sorted = sorted.reverse(); + format () { + this.range = this.set + .map((comps) => comps.join(' ').trim()) + .join('||') + .trim() + return this.range } - return sorted.join('\n') + '\n'; -} + toString () { + return this.range + } -module.exports = _sort; + parseRange (range) { + // memoize range parsing for performance. + // this is a very hot path, and fully deterministic. + const memoOpts = + (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | + (this.options.loose && FLAG_LOOSE) + const memoKey = memoOpts + ':' + range + const cached = cache.get(memoKey) + if (cached) { + return cached + } + const loose = this.options.loose + // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` + const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE] + range = range.replace(hr, hyphenReplace(this.options.includePrerelease)) + debug('hyphen replace', range) -/***/ }), + // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` + range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace) + debug('comparator trim', range) -/***/ 42284: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // `~ 1.2.3` => `~1.2.3` + range = range.replace(re[t.TILDETRIM], tildeTrimReplace) + debug('tilde trim', range) -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); + // `^ 1.2.3` => `^1.2.3` + range = range.replace(re[t.CARETTRIM], caretTrimReplace) + debug('caret trim', range) -common.register('tail', _tail, { - canReceivePipe: true, - cmdOptions: { - 'n': 'numLines', - }, -}); + // At this point, the range is completely trimmed and + // ready to be split into comparators. -//@ -//@ ### tail([{'-n': \},] file [, file ...]) -//@ ### tail([{'-n': \},] file_array) -//@ -//@ Available options: -//@ -//@ + `-n `: Show the last `` lines of `file`s -//@ -//@ Examples: -//@ -//@ ```javascript -//@ var str = tail({'-n': 1}, 'file*.txt'); -//@ var str = tail('file1', 'file2'); -//@ var str = tail(['file1', 'file2']); // same as above -//@ ``` -//@ -//@ Read the end of a `file`. -function _tail(options, files) { - var tail = []; - var pipe = common.readFromPipe(); + let rangeList = range + .split(' ') + .map(comp => parseComparator(comp, this.options)) + .join(' ') + .split(/\s+/) + // >=0.0.0 is equivalent to * + .map(comp => replaceGTE0(comp, this.options)) - if (!files && !pipe) common.error('no paths given'); + if (loose) { + // in loose mode, throw out any that are not valid comparators + rangeList = rangeList.filter(comp => { + debug('loose invalid filter', comp, this.options) + return !!comp.match(re[t.COMPARATORLOOSE]) + }) + } + debug('range list', rangeList) - var idx = 1; - if (options.numLines === true) { - idx = 2; - options.numLines = Number(arguments[1]); - } else if (options.numLines === false) { - options.numLines = 10; - } - options.numLines = -1 * Math.abs(options.numLines); - files = [].slice.call(arguments, idx); + // if any comparators are the null set, then replace with JUST null set + // if more than one comparator, remove any * comparators + // also, don't include the same comparator more than once + const rangeMap = new Map() + const comparators = rangeList.map(comp => new Comparator(comp, this.options)) + for (const comp of comparators) { + if (isNullSet(comp)) { + return [comp] + } + rangeMap.set(comp.value, comp) + } + if (rangeMap.size > 1 && rangeMap.has('')) { + rangeMap.delete('') + } - if (pipe) { - files.unshift('-'); + const result = [...rangeMap.values()] + cache.set(memoKey, result) + return result } - var shouldAppendNewline = false; - files.forEach(function (file) { - if (file !== '-') { - if (!fs.existsSync(file)) { - common.error('no such file or directory: ' + file, { continue: true }); - return; - } else if (common.statFollowLinks(file).isDirectory()) { - common.error("error reading '" + file + "': Is a directory", { - continue: true, - }); - return; - } + intersects (range, options) { + if (!(range instanceof Range)) { + throw new TypeError('a Range is required') } - var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8'); + return this.set.some((thisComparators) => { + return ( + isSatisfiable(thisComparators, options) && + range.set.some((rangeComparators) => { + return ( + isSatisfiable(rangeComparators, options) && + thisComparators.every((thisComparator) => { + return rangeComparators.every((rangeComparator) => { + return thisComparator.intersects(rangeComparator, options) + }) + }) + ) + }) + ) + }) + } - var lines = contents.split('\n'); - if (lines[lines.length - 1] === '') { - lines.pop(); - shouldAppendNewline = true; - } else { - shouldAppendNewline = false; + // if ANY of the sets match ALL of its comparators, then pass + test (version) { + if (!version) { + return false } - tail = tail.concat(lines.slice(options.numLines)); - }); + if (typeof version === 'string') { + try { + version = new SemVer(version, this.options) + } catch (er) { + return false + } + } - if (shouldAppendNewline) { - tail.push(''); // to add a trailing newline once we join + for (let i = 0; i < this.set.length; i++) { + if (testSet(this.set[i], version, this.options)) { + return true + } + } + return false } - return tail.join('\n'); } -module.exports = _tail; - -/***/ }), +module.exports = Range -/***/ 76150: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +const LRU = __nccwpck_require__(81196) +const cache = new LRU({ max: 1000 }) -var common = __nccwpck_require__(53687); -var os = __nccwpck_require__(22037); -var fs = __nccwpck_require__(57147); +const parseOptions = __nccwpck_require__(40785) +const Comparator = __nccwpck_require__(91532) +const debug = __nccwpck_require__(50427) +const SemVer = __nccwpck_require__(48088) +const { + safeRe: re, + t, + comparatorTrimReplace, + tildeTrimReplace, + caretTrimReplace, +} = __nccwpck_require__(9523) +const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = __nccwpck_require__(42293) -common.register('tempdir', _tempDir, { - allowGlobbing: false, - wrapOutput: false, -}); +const isNullSet = c => c.value === '<0.0.0-0' +const isAny = c => c.value === '' -// Returns false if 'dir' is not a writeable directory, 'dir' otherwise -function writeableDir(dir) { - if (!dir || !fs.existsSync(dir)) return false; +// take a set of comparators and determine whether there +// exists a version which can satisfy it +const isSatisfiable = (comparators, options) => { + let result = true + const remainingComparators = comparators.slice() + let testComparator = remainingComparators.pop() - if (!common.statFollowLinks(dir).isDirectory()) return false; + while (result && remainingComparators.length) { + result = remainingComparators.every((otherComparator) => { + return testComparator.intersects(otherComparator, options) + }) - var testFile = dir + '/' + common.randomFileName(); - try { - fs.writeFileSync(testFile, ' '); - common.unlinkSync(testFile); - return dir; - } catch (e) { - /* istanbul ignore next */ - return false; + testComparator = remainingComparators.pop() } -} - -// Variable to cache the tempdir value for successive lookups. -var cachedTempDir; - -//@ -//@ ### tempdir() -//@ -//@ Examples: -//@ -//@ ```javascript -//@ var tmp = tempdir(); // "/tmp" for most *nix platforms -//@ ``` -//@ -//@ Searches and returns string containing a writeable, platform-dependent temporary directory. -//@ Follows Python's [tempfile algorithm](http://docs.python.org/library/tempfile.html#tempfile.tempdir). -function _tempDir() { - if (cachedTempDir) return cachedTempDir; - - cachedTempDir = writeableDir(os.tmpdir()) || - writeableDir(process.env.TMPDIR) || - writeableDir(process.env.TEMP) || - writeableDir(process.env.TMP) || - writeableDir(process.env.Wimp$ScrapDir) || // RiscOS - writeableDir('C:\\TEMP') || // Windows - writeableDir('C:\\TMP') || // Windows - writeableDir('\\TEMP') || // Windows - writeableDir('\\TMP') || // Windows - writeableDir('/tmp') || - writeableDir('/var/tmp') || - writeableDir('/usr/tmp') || - writeableDir('.'); // last resort - return cachedTempDir; + return result } -// Indicates if the tempdir value is currently cached. This is exposed for tests -// only. The return value should only be tested for truthiness. -function isCached() { - return cachedTempDir; +// comprised of xranges, tildes, stars, and gtlt's at this point. +// already replaced the hyphen ranges +// turn into a set of JUST comparators. +const parseComparator = (comp, options) => { + debug('comp', comp, options) + comp = replaceCarets(comp, options) + debug('caret', comp) + comp = replaceTildes(comp, options) + debug('tildes', comp) + comp = replaceXRanges(comp, options) + debug('xrange', comp) + comp = replaceStars(comp, options) + debug('stars', comp) + return comp } -// Clears the cached tempDir value, if one is cached. This is exposed for tests -// only. -function clearCache() { - cachedTempDir = undefined; -} +const isX = id => !id || id.toLowerCase() === 'x' || id === '*' -module.exports.tempDir = _tempDir; -module.exports.isCached = isCached; -module.exports.clearCache = clearCache; +// ~, ~> --> * (any, kinda silly) +// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0 +// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0 +// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0 +// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0 +// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0 +// ~0.0.1 --> >=0.0.1 <0.1.0-0 +const replaceTildes = (comp, options) => { + return comp + .trim() + .split(/\s+/) + .map((c) => replaceTilde(c, options)) + .join(' ') +} +const replaceTilde = (comp, options) => { + const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE] + return comp.replace(r, (_, M, m, p, pr) => { + debug('tilde', comp, _, M, m, p, pr) + let ret -/***/ }), + if (isX(M)) { + ret = '' + } else if (isX(m)) { + ret = `>=${M}.0.0 <${+M + 1}.0.0-0` + } else if (isX(p)) { + // ~1.2 == >=1.2.0 <1.3.0-0 + ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0` + } else if (pr) { + debug('replaceTilde pr', pr) + ret = `>=${M}.${m}.${p}-${pr + } <${M}.${+m + 1}.0-0` + } else { + // ~1.2.3 == >=1.2.3 <1.3.0-0 + ret = `>=${M}.${m}.${p + } <${M}.${+m + 1}.0-0` + } -/***/ 79723: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + debug('tilde return', ret) + return ret + }) +} -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); +// ^ --> * (any, kinda silly) +// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0 +// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0 +// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0 +// ^1.2.3 --> >=1.2.3 <2.0.0-0 +// ^1.2.0 --> >=1.2.0 <2.0.0-0 +// ^0.0.1 --> >=0.0.1 <0.0.2-0 +// ^0.1.0 --> >=0.1.0 <0.2.0-0 +const replaceCarets = (comp, options) => { + return comp + .trim() + .split(/\s+/) + .map((c) => replaceCaret(c, options)) + .join(' ') +} -common.register('test', _test, { - cmdOptions: { - 'b': 'block', - 'c': 'character', - 'd': 'directory', - 'e': 'exists', - 'f': 'file', - 'L': 'link', - 'p': 'pipe', - 'S': 'socket', - }, - wrapOutput: false, - allowGlobbing: false, -}); +const replaceCaret = (comp, options) => { + debug('caret', comp, options) + const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET] + const z = options.includePrerelease ? '-0' : '' + return comp.replace(r, (_, M, m, p, pr) => { + debug('caret', comp, _, M, m, p, pr) + let ret + if (isX(M)) { + ret = '' + } else if (isX(m)) { + ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0` + } else if (isX(p)) { + if (M === '0') { + ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0` + } else { + ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0` + } + } else if (pr) { + debug('replaceCaret pr', pr) + if (M === '0') { + if (m === '0') { + ret = `>=${M}.${m}.${p}-${pr + } <${M}.${m}.${+p + 1}-0` + } else { + ret = `>=${M}.${m}.${p}-${pr + } <${M}.${+m + 1}.0-0` + } + } else { + ret = `>=${M}.${m}.${p}-${pr + } <${+M + 1}.0.0-0` + } + } else { + debug('no pr') + if (M === '0') { + if (m === '0') { + ret = `>=${M}.${m}.${p + }${z} <${M}.${m}.${+p + 1}-0` + } else { + ret = `>=${M}.${m}.${p + }${z} <${M}.${+m + 1}.0-0` + } + } else { + ret = `>=${M}.${m}.${p + } <${+M + 1}.0.0-0` + } + } -//@ -//@ ### test(expression) -//@ -//@ Available expression primaries: -//@ -//@ + `'-b', 'path'`: true if path is a block device -//@ + `'-c', 'path'`: true if path is a character device -//@ + `'-d', 'path'`: true if path is a directory -//@ + `'-e', 'path'`: true if path exists -//@ + `'-f', 'path'`: true if path is a regular file -//@ + `'-L', 'path'`: true if path is a symbolic link -//@ + `'-p', 'path'`: true if path is a pipe (FIFO) -//@ + `'-S', 'path'`: true if path is a socket -//@ -//@ Examples: -//@ -//@ ```javascript -//@ if (test('-d', path)) { /* do something with dir */ }; -//@ if (!test('-f', path)) continue; // skip if it's a regular file -//@ ``` -//@ -//@ Evaluates `expression` using the available primaries and returns corresponding value. -function _test(options, path) { - if (!path) common.error('no path given'); + debug('caret return', ret) + return ret + }) +} - var canInterpret = false; - Object.keys(options).forEach(function (key) { - if (options[key] === true) { - canInterpret = true; - } - }); +const replaceXRanges = (comp, options) => { + debug('replaceXRanges', comp, options) + return comp + .split(/\s+/) + .map((c) => replaceXRange(c, options)) + .join(' ') +} - if (!canInterpret) common.error('could not interpret expression'); +const replaceXRange = (comp, options) => { + comp = comp.trim() + const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE] + return comp.replace(r, (ret, gtlt, M, m, p, pr) => { + debug('xRange', comp, ret, gtlt, M, m, p, pr) + const xM = isX(M) + const xm = xM || isX(m) + const xp = xm || isX(p) + const anyX = xp - if (options.link) { - try { - return common.statNoFollowLinks(path).isSymbolicLink(); - } catch (e) { - return false; + if (gtlt === '=' && anyX) { + gtlt = '' } - } - if (!fs.existsSync(path)) return false; + // if we're including prereleases in the match, then we need + // to fix this to -0, the lowest possible prerelease value + pr = options.includePrerelease ? '-0' : '' - if (options.exists) return true; + if (xM) { + if (gtlt === '>' || gtlt === '<') { + // nothing is allowed + ret = '<0.0.0-0' + } else { + // nothing is forbidden + ret = '*' + } + } else if (gtlt && anyX) { + // we know patch is an x, because we have any x at all. + // replace X with 0 + if (xm) { + m = 0 + } + p = 0 - var stats = common.statFollowLinks(path); + if (gtlt === '>') { + // >1 => >=2.0.0 + // >1.2 => >=1.3.0 + gtlt = '>=' + if (xm) { + M = +M + 1 + m = 0 + p = 0 + } else { + m = +m + 1 + p = 0 + } + } else if (gtlt === '<=') { + // <=0.7.x is actually <0.8.0, since any 0.7.x should + // pass. Similarly, <=7.x is actually <8.0.0, etc. + gtlt = '<' + if (xm) { + M = +M + 1 + } else { + m = +m + 1 + } + } - if (options.block) return stats.isBlockDevice(); + if (gtlt === '<') { + pr = '-0' + } - if (options.character) return stats.isCharacterDevice(); + ret = `${gtlt + M}.${m}.${p}${pr}` + } else if (xm) { + ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0` + } else if (xp) { + ret = `>=${M}.${m}.0${pr + } <${M}.${+m + 1}.0-0` + } - if (options.directory) return stats.isDirectory(); + debug('xRange return', ret) - if (options.file) return stats.isFile(); + return ret + }) +} - /* istanbul ignore next */ - if (options.pipe) return stats.isFIFO(); +// Because * is AND-ed with everything else in the comparator, +// and '' means "any version", just remove the *s entirely. +const replaceStars = (comp, options) => { + debug('replaceStars', comp, options) + // Looseness is ignored here. star is always as loose as it gets! + return comp + .trim() + .replace(re[t.STAR], '') +} - /* istanbul ignore next */ - if (options.socket) return stats.isSocket(); +const replaceGTE0 = (comp, options) => { + debug('replaceGTE0', comp, options) + return comp + .trim() + .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '') +} - /* istanbul ignore next */ - return false; // fallback -} // test -module.exports = _test; +// This function is passed to string.replace(re[t.HYPHENRANGE]) +// M, m, patch, prerelease, build +// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 +// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do +// 1.2 - 3.4 => >=1.2.0 <3.5.0-0 +const hyphenReplace = incPr => ($0, + from, fM, fm, fp, fpr, fb, + to, tM, tm, tp, tpr, tb) => { + if (isX(fM)) { + from = '' + } else if (isX(fm)) { + from = `>=${fM}.0.0${incPr ? '-0' : ''}` + } else if (isX(fp)) { + from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}` + } else if (fpr) { + from = `>=${from}` + } else { + from = `>=${from}${incPr ? '-0' : ''}` + } + if (isX(tM)) { + to = '' + } else if (isX(tm)) { + to = `<${+tM + 1}.0.0-0` + } else if (isX(tp)) { + to = `<${tM}.${+tm + 1}.0-0` + } else if (tpr) { + to = `<=${tM}.${tm}.${tp}-${tpr}` + } else if (incPr) { + to = `<${tM}.${tm}.${+tp + 1}-0` + } else { + to = `<=${to}` + } -/***/ }), + return `${from} ${to}`.trim() +} -/***/ 71961: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); -var path = __nccwpck_require__(71017); +const testSet = (set, version, options) => { + for (let i = 0; i < set.length; i++) { + if (!set[i].test(version)) { + return false + } + } -common.register('to', _to, { - pipeOnly: true, - wrapOutput: false, -}); + if (version.prerelease.length && !options.includePrerelease) { + // Find the set of versions that are allowed to have prereleases + // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0 + // That should allow `1.2.3-pr.2` to pass. + // However, `1.2.4-alpha.notready` should NOT be allowed, + // even though it's within the range set by the comparators. + for (let i = 0; i < set.length; i++) { + debug(set[i].semver) + if (set[i].semver === Comparator.ANY) { + continue + } -//@ -//@ ### ShellString.prototype.to(file) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ cat('input.txt').to('output.txt'); -//@ ``` -//@ -//@ Analogous to the redirection operator `>` in Unix, but works with -//@ `ShellStrings` (such as those returned by `cat`, `grep`, etc.). _Like Unix -//@ redirections, `to()` will overwrite any existing file!_ -function _to(options, file) { - if (!file) common.error('wrong arguments'); + if (set[i].semver.prerelease.length > 0) { + const allowed = set[i].semver + if (allowed.major === version.major && + allowed.minor === version.minor && + allowed.patch === version.patch) { + return true + } + } + } - if (!fs.existsSync(path.dirname(file))) { - common.error('no such file or directory: ' + path.dirname(file)); + // Version has a -pre, but it's not one of the ones we like. + return false } - try { - fs.writeFileSync(file, this.stdout || this.toString(), 'utf8'); - return this; - } catch (e) { - /* istanbul ignore next */ - common.error('could not write to file (code ' + e.code + '): ' + file, { continue: true }); - } + return true } -module.exports = _to; /***/ }), -/***/ 33736: +/***/ 48088: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); -var path = __nccwpck_require__(71017); +const debug = __nccwpck_require__(50427) +const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(42293) +const { safeRe: re, t } = __nccwpck_require__(9523) -common.register('toEnd', _toEnd, { - pipeOnly: true, - wrapOutput: false, -}); +const parseOptions = __nccwpck_require__(40785) +const { compareIdentifiers } = __nccwpck_require__(92463) +class SemVer { + constructor (version, options) { + options = parseOptions(options) -//@ -//@ ### ShellString.prototype.toEnd(file) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ cat('input.txt').toEnd('output.txt'); -//@ ``` -//@ -//@ Analogous to the redirect-and-append operator `>>` in Unix, but works with -//@ `ShellStrings` (such as those returned by `cat`, `grep`, etc.). -function _toEnd(options, file) { - if (!file) common.error('wrong arguments'); + if (version instanceof SemVer) { + if (version.loose === !!options.loose && + version.includePrerelease === !!options.includePrerelease) { + return version + } else { + version = version.version + } + } else if (typeof version !== 'string') { + throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`) + } - if (!fs.existsSync(path.dirname(file))) { - common.error('no such file or directory: ' + path.dirname(file)); - } + if (version.length > MAX_LENGTH) { + throw new TypeError( + `version is longer than ${MAX_LENGTH} characters` + ) + } - try { - fs.appendFileSync(file, this.stdout || this.toString(), 'utf8'); - return this; - } catch (e) { - /* istanbul ignore next */ - common.error('could not append to file (code ' + e.code + '): ' + file, { continue: true }); - } -} -module.exports = _toEnd; + debug('SemVer', version, options) + this.options = options + this.loose = !!options.loose + // this isn't actually relevant for versions, but keep it so that we + // don't run into trouble passing this.options around. + this.includePrerelease = !!options.includePrerelease + const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]) -/***/ }), + if (!m) { + throw new TypeError(`Invalid Version: ${version}`) + } -/***/ 28358: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + this.raw = version -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); + // these are actually numbers + this.major = +m[1] + this.minor = +m[2] + this.patch = +m[3] -common.register('touch', _touch, { - cmdOptions: { - 'a': 'atime_only', - 'c': 'no_create', - 'd': 'date', - 'm': 'mtime_only', - 'r': 'reference', - }, -}); + if (this.major > MAX_SAFE_INTEGER || this.major < 0) { + throw new TypeError('Invalid major version') + } -//@ -//@ ### touch([options,] file [, file ...]) -//@ ### touch([options,] file_array) -//@ -//@ Available options: -//@ -//@ + `-a`: Change only the access time -//@ + `-c`: Do not create any files -//@ + `-m`: Change only the modification time -//@ + `-d DATE`: Parse `DATE` and use it instead of current time -//@ + `-r FILE`: Use `FILE`'s times instead of current time -//@ -//@ Examples: -//@ -//@ ```javascript -//@ touch('source.js'); -//@ touch('-c', '/path/to/some/dir/source.js'); -//@ touch({ '-r': FILE }, '/path/to/some/dir/source.js'); -//@ ``` -//@ -//@ Update the access and modification times of each `FILE` to the current time. -//@ A `FILE` argument that does not exist is created empty, unless `-c` is supplied. -//@ This is a partial implementation of [`touch(1)`](http://linux.die.net/man/1/touch). -function _touch(opts, files) { - if (!files) { - common.error('no files given'); - } else if (typeof files === 'string') { - files = [].slice.call(arguments, 1); - } else { - common.error('file arg should be a string file path or an Array of string file paths'); - } + if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { + throw new TypeError('Invalid minor version') + } - files.forEach(function (f) { - touchFile(opts, f); - }); - return ''; -} + if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { + throw new TypeError('Invalid patch version') + } -function touchFile(opts, file) { - var stat = tryStatFile(file); + // numberify any prerelease numeric ids + if (!m[4]) { + this.prerelease = [] + } else { + this.prerelease = m[4].split('.').map((id) => { + if (/^[0-9]+$/.test(id)) { + const num = +id + if (num >= 0 && num < MAX_SAFE_INTEGER) { + return num + } + } + return id + }) + } - if (stat && stat.isDirectory()) { - // don't error just exit - return; + this.build = m[5] ? m[5].split('.') : [] + this.format() } - // if the file doesn't already exist and the user has specified --no-create then - // this script is finished - if (!stat && opts.no_create) { - return; + format () { + this.version = `${this.major}.${this.minor}.${this.patch}` + if (this.prerelease.length) { + this.version += `-${this.prerelease.join('.')}` + } + return this.version } - // open the file and then close it. this will create it if it doesn't exist but will - // not truncate the file - fs.closeSync(fs.openSync(file, 'a')); - - // - // Set timestamps - // + toString () { + return this.version + } - // setup some defaults - var now = new Date(); - var mtime = opts.date || now; - var atime = opts.date || now; + compare (other) { + debug('SemVer.compare', this.version, this.options, other) + if (!(other instanceof SemVer)) { + if (typeof other === 'string' && other === this.version) { + return 0 + } + other = new SemVer(other, this.options) + } - // use reference file - if (opts.reference) { - var refStat = tryStatFile(opts.reference); - if (!refStat) { - common.error('failed to get attributess of ' + opts.reference); + if (other.version === this.version) { + return 0 } - mtime = refStat.mtime; - atime = refStat.atime; - } else if (opts.date) { - mtime = opts.date; - atime = opts.date; - } - if (opts.atime_only && opts.mtime_only) { - // keep the new values of mtime and atime like GNU - } else if (opts.atime_only) { - mtime = stat.mtime; - } else if (opts.mtime_only) { - atime = stat.atime; + return this.compareMain(other) || this.comparePre(other) } - fs.utimesSync(file, atime, mtime); -} - -module.exports = _touch; + compareMain (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } -function tryStatFile(filePath) { - try { - return common.statFollowLinks(filePath); - } catch (e) { - return null; + return ( + compareIdentifiers(this.major, other.major) || + compareIdentifiers(this.minor, other.minor) || + compareIdentifiers(this.patch, other.patch) + ) } -} + comparePre (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } -/***/ }), + // NOT having a prerelease is > having one + if (this.prerelease.length && !other.prerelease.length) { + return -1 + } else if (!this.prerelease.length && other.prerelease.length) { + return 1 + } else if (!this.prerelease.length && !other.prerelease.length) { + return 0 + } -/***/ 77286: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + let i = 0 + do { + const a = this.prerelease[i] + const b = other.prerelease[i] + debug('prerelease compare', i, a, b) + if (a === undefined && b === undefined) { + return 0 + } else if (b === undefined) { + return 1 + } else if (a === undefined) { + return -1 + } else if (a === b) { + continue + } else { + return compareIdentifiers(a, b) + } + } while (++i) + } -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); + compareBuild (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } -// add c spaces to the left of str -function lpad(c, str) { - var res = '' + str; - if (res.length < c) { - res = Array((c - res.length) + 1).join(' ') + res; + let i = 0 + do { + const a = this.build[i] + const b = other.build[i] + debug('prerelease compare', i, a, b) + if (a === undefined && b === undefined) { + return 0 + } else if (b === undefined) { + return 1 + } else if (a === undefined) { + return -1 + } else if (a === b) { + continue + } else { + return compareIdentifiers(a, b) + } + } while (++i) } - return res; -} -common.register('uniq', _uniq, { - canReceivePipe: true, - cmdOptions: { - 'i': 'ignoreCase', - 'c': 'count', - 'd': 'duplicates', - }, -}); + // preminor will bump the version up to the next minor release, and immediately + // down to pre-release. premajor and prepatch work the same way. + inc (release, identifier, identifierBase) { + switch (release) { + case 'premajor': + this.prerelease.length = 0 + this.patch = 0 + this.minor = 0 + this.major++ + this.inc('pre', identifier, identifierBase) + break + case 'preminor': + this.prerelease.length = 0 + this.patch = 0 + this.minor++ + this.inc('pre', identifier, identifierBase) + break + case 'prepatch': + // If this is already a prerelease, it will bump to the next version + // drop any prereleases that might already exist, since they are not + // relevant at this point. + this.prerelease.length = 0 + this.inc('patch', identifier, identifierBase) + this.inc('pre', identifier, identifierBase) + break + // If the input is a non-prerelease version, this acts the same as + // prepatch. + case 'prerelease': + if (this.prerelease.length === 0) { + this.inc('patch', identifier, identifierBase) + } + this.inc('pre', identifier, identifierBase) + break -//@ -//@ ### uniq([options,] [input, [output]]) -//@ -//@ Available options: -//@ -//@ + `-i`: Ignore case while comparing -//@ + `-c`: Prefix lines by the number of occurrences -//@ + `-d`: Only print duplicate lines, one for each group of identical lines -//@ -//@ Examples: -//@ -//@ ```javascript -//@ uniq('foo.txt'); -//@ uniq('-i', 'foo.txt'); -//@ uniq('-cd', 'foo.txt', 'bar.txt'); -//@ ``` -//@ -//@ Filter adjacent matching lines from `input`. -function _uniq(options, input, output) { - // Check if this is coming from a pipe - var pipe = common.readFromPipe(); + case 'major': + // If this is a pre-major version, bump up to the same major version. + // Otherwise increment major. + // 1.0.0-5 bumps to 1.0.0 + // 1.1.0 bumps to 2.0.0 + if ( + this.minor !== 0 || + this.patch !== 0 || + this.prerelease.length === 0 + ) { + this.major++ + } + this.minor = 0 + this.patch = 0 + this.prerelease = [] + break + case 'minor': + // If this is a pre-minor version, bump up to the same minor version. + // Otherwise increment minor. + // 1.2.0-5 bumps to 1.2.0 + // 1.2.1 bumps to 1.3.0 + if (this.patch !== 0 || this.prerelease.length === 0) { + this.minor++ + } + this.patch = 0 + this.prerelease = [] + break + case 'patch': + // If this is not a pre-release version, it will increment the patch. + // If it is a pre-release it will bump up to the same patch version. + // 1.2.0-5 patches to 1.2.0 + // 1.2.0 patches to 1.2.1 + if (this.prerelease.length === 0) { + this.patch++ + } + this.prerelease = [] + break + // This probably shouldn't be used publicly. + // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction. + case 'pre': { + const base = Number(identifierBase) ? 1 : 0 - if (!pipe) { - if (!input) common.error('no input given'); + if (!identifier && identifierBase === false) { + throw new Error('invalid increment argument: identifier is empty') + } - if (!fs.existsSync(input)) { - common.error(input + ': No such file or directory'); - } else if (common.statFollowLinks(input).isDirectory()) { - common.error("error reading '" + input + "'"); + if (this.prerelease.length === 0) { + this.prerelease = [base] + } else { + let i = this.prerelease.length + while (--i >= 0) { + if (typeof this.prerelease[i] === 'number') { + this.prerelease[i]++ + i = -2 + } + } + if (i === -1) { + // didn't increment anything + if (identifier === this.prerelease.join('.') && identifierBase === false) { + throw new Error('invalid increment argument: identifier already exists') + } + this.prerelease.push(base) + } + } + if (identifier) { + // 1.2.0-beta.1 bumps to 1.2.0-beta.2, + // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 + let prerelease = [identifier, base] + if (identifierBase === false) { + prerelease = [identifier] + } + if (compareIdentifiers(this.prerelease[0], identifier) === 0) { + if (isNaN(this.prerelease[1])) { + this.prerelease = prerelease + } + } else { + this.prerelease = prerelease + } + } + break + } + default: + throw new Error(`invalid increment argument: ${release}`) } + this.raw = this.format() + if (this.build.length) { + this.raw += `+${this.build.join('.')}` + } + return this } - if (output && fs.existsSync(output) && common.statFollowLinks(output).isDirectory()) { - common.error(output + ': Is a directory'); - } +} - var lines = (input ? fs.readFileSync(input, 'utf8') : pipe). - trimRight(). - split('\n'); +module.exports = SemVer - var compare = function (a, b) { - return options.ignoreCase ? - a.toLocaleLowerCase().localeCompare(b.toLocaleLowerCase()) : - a.localeCompare(b); - }; - var uniqed = lines.reduceRight(function (res, e) { - // Perform uniq -c on the input - if (res.length === 0) { - return [{ count: 1, ln: e }]; - } else if (compare(res[0].ln, e) === 0) { - return [{ count: res[0].count + 1, ln: e }].concat(res.slice(1)); - } else { - return [{ count: 1, ln: e }].concat(res); - } - }, []).filter(function (obj) { - // Do we want only duplicated objects? - return options.duplicates ? obj.count > 1 : true; - }).map(function (obj) { - // Are we tracking the counts of each line? - return (options.count ? (lpad(7, obj.count) + ' ') : '') + obj.ln; - }).join('\n') + '\n'; - if (output) { - (new common.ShellString(uniqed)).to(output); - // if uniq writes to output, nothing is passed to the next command in the pipeline (if any) - return ''; - } else { - return uniqed; - } -} +/***/ }), -module.exports = _uniq; +/***/ 48848: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const parse = __nccwpck_require__(75925) +const clean = (version, options) => { + const s = parse(version.trim().replace(/^[=v]+/, ''), options) + return s ? s.version : null +} +module.exports = clean /***/ }), -/***/ 64766: +/***/ 75098: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var common = __nccwpck_require__(53687); -var fs = __nccwpck_require__(57147); -var path = __nccwpck_require__(71017); +const eq = __nccwpck_require__(91898) +const neq = __nccwpck_require__(6017) +const gt = __nccwpck_require__(84123) +const gte = __nccwpck_require__(15522) +const lt = __nccwpck_require__(80194) +const lte = __nccwpck_require__(77520) -common.register('which', _which, { - allowGlobbing: false, - cmdOptions: { - 'a': 'all', - }, -}); +const cmp = (a, op, b, loose) => { + switch (op) { + case '===': + if (typeof a === 'object') { + a = a.version + } + if (typeof b === 'object') { + b = b.version + } + return a === b -// XP's system default value for `PATHEXT` system variable, just in case it's not -// set on Windows. -var XP_DEFAULT_PATHEXT = '.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh'; + case '!==': + if (typeof a === 'object') { + a = a.version + } + if (typeof b === 'object') { + b = b.version + } + return a !== b -// For earlier versions of NodeJS that doesn't have a list of constants (< v6) -var FILE_EXECUTABLE_MODE = 1; + case '': + case '=': + case '==': + return eq(a, b, loose) -function isWindowsPlatform() { - return process.platform === 'win32'; -} + case '!=': + return neq(a, b, loose) -// Cross-platform method for splitting environment `PATH` variables -function splitPath(p) { - return p ? p.split(path.delimiter) : []; -} + case '>': + return gt(a, b, loose) -// Tests are running all cases for this func but it stays uncovered by codecov due to unknown reason -/* istanbul ignore next */ -function isExecutable(pathName) { - try { - // TODO(node-support): replace with fs.constants.X_OK once remove support for node < v6 - fs.accessSync(pathName, FILE_EXECUTABLE_MODE); - } catch (err) { - return false; + case '>=': + return gte(a, b, loose) + + case '<': + return lt(a, b, loose) + + case '<=': + return lte(a, b, loose) + + default: + throw new TypeError(`Invalid operator: ${op}`) } - return true; } +module.exports = cmp -function checkPath(pathName) { - return fs.existsSync(pathName) && !common.statFollowLinks(pathName).isDirectory() - && (isWindowsPlatform() || isExecutable(pathName)); -} -//@ -//@ ### which(command) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ var nodeExec = which('node'); -//@ ``` -//@ -//@ Searches for `command` in the system's `PATH`. On Windows, this uses the -//@ `PATHEXT` variable to append the extension if it's not already executable. -//@ Returns string containing the absolute path to `command`. -function _which(options, cmd) { - if (!cmd) common.error('must specify command'); +/***/ }), - var isWindows = isWindowsPlatform(); - var pathArray = splitPath(process.env.PATH); +/***/ 13466: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - var queryMatches = []; +const SemVer = __nccwpck_require__(48088) +const parse = __nccwpck_require__(75925) +const { safeRe: re, t } = __nccwpck_require__(9523) - // No relative/absolute paths provided? - if (cmd.indexOf('/') === -1) { - // Assume that there are no extensions to append to queries (this is the - // case for unix) - var pathExtArray = ['']; - if (isWindows) { - // In case the PATHEXT variable is somehow not set (e.g. - // child_process.spawn with an empty environment), use the XP default. - var pathExtEnv = process.env.PATHEXT || XP_DEFAULT_PATHEXT; - pathExtArray = splitPath(pathExtEnv.toUpperCase()); - } +const coerce = (version, options) => { + if (version instanceof SemVer) { + return version + } - // Search for command in PATH - for (var k = 0; k < pathArray.length; k++) { - // already found it - if (queryMatches.length > 0 && !options.all) break; + if (typeof version === 'number') { + version = String(version) + } - var attempt = path.resolve(pathArray[k], cmd); + if (typeof version !== 'string') { + return null + } - if (isWindows) { - attempt = attempt.toUpperCase(); - } + options = options || {} - var match = attempt.match(/\.[^<>:"/\|?*.]+$/); - if (match && pathExtArray.indexOf(match[0]) >= 0) { // this is Windows-only - // The user typed a query with the file extension, like - // `which('node.exe')` - if (checkPath(attempt)) { - queryMatches.push(attempt); - break; - } - } else { // All-platforms - // Cycle through the PATHEXT array, and check each extension - // Note: the array is always [''] on Unix - for (var i = 0; i < pathExtArray.length; i++) { - var ext = pathExtArray[i]; - var newAttempt = attempt + ext; - if (checkPath(newAttempt)) { - queryMatches.push(newAttempt); - break; - } - } + let match = null + if (!options.rtl) { + match = version.match(re[t.COERCE]) + } else { + // Find the right-most coercible string that does not share + // a terminus with a more left-ward coercible string. + // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4' + // + // Walk through the string checking with a /g regexp + // Manually set the index so as to pick up overlapping matches. + // Stop when we get a match that ends at the string end, since no + // coercible string can be more right-ward without the same terminus. + let next + while ((next = re[t.COERCERTL].exec(version)) && + (!match || match.index + match[0].length !== version.length) + ) { + if (!match || + next.index + next[0].length !== match.index + match[0].length) { + match = next } + re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length } - } else if (checkPath(cmd)) { // a valid absolute or relative path - queryMatches.push(path.resolve(cmd)); + // leave it in a clean state + re[t.COERCERTL].lastIndex = -1 } - if (queryMatches.length > 0) { - return options.all ? queryMatches : queryMatches[0]; + if (match === null) { + return null } - return options.all ? [] : null; + + return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options) } -module.exports = _which; +module.exports = coerce /***/ }), -/***/ 9249: -/***/ ((module, exports, __nccwpck_require__) => { - -/* module decorator */ module = __nccwpck_require__.nmd(module); -var SourceMapConsumer = (__nccwpck_require__(56594).SourceMapConsumer); -var path = __nccwpck_require__(71017); +/***/ 92156: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var fs; -try { - fs = __nccwpck_require__(57147); - if (!fs.existsSync || !fs.readFileSync) { - // fs doesn't have all methods we need - fs = null; - } -} catch (err) { - /* nop */ +const SemVer = __nccwpck_require__(48088) +const compareBuild = (a, b, loose) => { + const versionA = new SemVer(a, loose) + const versionB = new SemVer(b, loose) + return versionA.compare(versionB) || versionA.compareBuild(versionB) } +module.exports = compareBuild -var bufferFrom = __nccwpck_require__(93018); -/** - * Requires a module which is protected against bundler minification. - * - * @param {NodeModule} mod - * @param {string} request - */ -function dynamicRequire(mod, request) { - return mod.require(request); -} +/***/ }), -// Only install once if called multiple times -var errorFormatterInstalled = false; -var uncaughtShimInstalled = false; +/***/ 62804: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -// If true, the caches are reset before a stack trace formatting operation -var emptyCacheBetweenOperations = false; +const compare = __nccwpck_require__(44309) +const compareLoose = (a, b) => compare(a, b, true) +module.exports = compareLoose -// Supports {browser, node, auto} -var environment = "auto"; -// Maps a file path to a string containing the file contents -var fileContentsCache = {}; +/***/ }), -// Maps a file path to a source map for that file -var sourceMapCache = {}; +/***/ 44309: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -// Regex for detecting source maps -var reSourceMap = /^data:application\/json[^,]+base64,/; +const SemVer = __nccwpck_require__(48088) +const compare = (a, b, loose) => + new SemVer(a, loose).compare(new SemVer(b, loose)) -// Priority list of retrieve handlers -var retrieveFileHandlers = []; -var retrieveMapHandlers = []; +module.exports = compare -function isInBrowser() { - if (environment === "browser") - return true; - if (environment === "node") - return false; - return ((typeof window !== 'undefined') && (typeof XMLHttpRequest === 'function') && !(window.require && window.module && window.process && window.process.type === "renderer")); -} -function hasGlobalProcessEventEmitter() { - return ((typeof process === 'object') && (process !== null) && (typeof process.on === 'function')); -} +/***/ }), -function globalProcessVersion() { - if ((typeof process === 'object') && (process !== null)) { - return process.version; - } else { - return ''; - } -} +/***/ 64297: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -function globalProcessStderr() { - if ((typeof process === 'object') && (process !== null)) { - return process.stderr; - } -} +const parse = __nccwpck_require__(75925) -function globalProcessExit(code) { - if ((typeof process === 'object') && (process !== null) && (typeof process.exit === 'function')) { - return process.exit(code); +const diff = (version1, version2) => { + const v1 = parse(version1, null, true) + const v2 = parse(version2, null, true) + const comparison = v1.compare(v2) + + if (comparison === 0) { + return null } -} -function handlerExec(list) { - return function(arg) { - for (var i = 0; i < list.length; i++) { - var ret = list[i](arg); - if (ret) { - return ret; - } + const v1Higher = comparison > 0 + const highVersion = v1Higher ? v1 : v2 + const lowVersion = v1Higher ? v2 : v1 + const highHasPre = !!highVersion.prerelease.length + const lowHasPre = !!lowVersion.prerelease.length + + if (lowHasPre && !highHasPre) { + // Going from prerelease -> no prerelease requires some special casing + + // If the low version has only a major, then it will always be a major + // Some examples: + // 1.0.0-1 -> 1.0.0 + // 1.0.0-1 -> 1.1.1 + // 1.0.0-1 -> 2.0.0 + if (!lowVersion.patch && !lowVersion.minor) { + return 'major' } - return null; - }; -} -var retrieveFile = handlerExec(retrieveFileHandlers); + // Otherwise it can be determined by checking the high version -retrieveFileHandlers.push(function(path) { - // Trim the path to make sure there is no extra whitespace. - path = path.trim(); - if (/^file:/.test(path)) { - // existsSync/readFileSync can't handle file protocol, but once stripped, it works - path = path.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) { - return drive ? - '' : // file:///C:/dir/file -> C:/dir/file - '/'; // file:///root-dir/file -> /root-dir/file - }); - } - if (path in fileContentsCache) { - return fileContentsCache[path]; - } + if (highVersion.patch) { + // anything higher than a patch bump would result in the wrong version + return 'patch' + } - var contents = ''; - try { - if (!fs) { - // Use SJAX if we are in the browser - var xhr = new XMLHttpRequest(); - xhr.open('GET', path, /** async */ false); - xhr.send(null); - if (xhr.readyState === 4 && xhr.status === 200) { - contents = xhr.responseText; - } - } else if (fs.existsSync(path)) { - // Otherwise, use the filesystem - contents = fs.readFileSync(path, 'utf8'); + if (highVersion.minor) { + // anything higher than a minor bump would result in the wrong version + return 'minor' } - } catch (er) { - /* ignore any errors */ + + // bumping major/minor/patch all have same result + return 'major' } - return fileContentsCache[path] = contents; -}); + // add the `pre` prefix if we are going to a prerelease version + const prefix = highHasPre ? 'pre' : '' -// Support URLs relative to a directory, but be careful about a protocol prefix -// in case we are in the browser (i.e. directories may start with "http://" or "file:///") -function supportRelativeURL(file, url) { - if (!file) return url; - var dir = path.dirname(file); - var match = /^\w+:\/\/[^\/]*/.exec(dir); - var protocol = match ? match[0] : ''; - var startPath = dir.slice(protocol.length); - if (protocol && /^\/\w\:/.test(startPath)) { - // handle file:///C:/ paths - protocol += '/'; - return protocol + path.resolve(dir.slice(protocol.length), url).replace(/\\/g, '/'); + if (v1.major !== v2.major) { + return prefix + 'major' } - return protocol + path.resolve(dir.slice(protocol.length), url); -} - -function retrieveSourceMapURL(source) { - var fileData; - if (isInBrowser()) { - try { - var xhr = new XMLHttpRequest(); - xhr.open('GET', source, false); - xhr.send(null); - fileData = xhr.readyState === 4 ? xhr.responseText : null; + if (v1.minor !== v2.minor) { + return prefix + 'minor' + } - // Support providing a sourceMappingURL via the SourceMap header - var sourceMapHeader = xhr.getResponseHeader("SourceMap") || - xhr.getResponseHeader("X-SourceMap"); - if (sourceMapHeader) { - return sourceMapHeader; - } - } catch (e) { - } + if (v1.patch !== v2.patch) { + return prefix + 'patch' } - // Get the URL of the source map - fileData = retrieveFile(source); - var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg; - // Keep executing the search to find the *last* sourceMappingURL to avoid - // picking up sourceMappingURLs from comments, strings, etc. - var lastMatch, match; - while (match = re.exec(fileData)) lastMatch = match; - if (!lastMatch) return null; - return lastMatch[1]; -}; + // high and low are preleases + return 'prerelease' +} -// Can be overridden by the retrieveSourceMap option to install. Takes a -// generated source filename; returns a {map, optional url} object, or null if -// there is no source map. The map field may be either a string or the parsed -// JSON object (ie, it must be a valid argument to the SourceMapConsumer -// constructor). -var retrieveSourceMap = handlerExec(retrieveMapHandlers); -retrieveMapHandlers.push(function(source) { - var sourceMappingURL = retrieveSourceMapURL(source); - if (!sourceMappingURL) return null; +module.exports = diff - // Read the contents of the source map - var sourceMapData; - if (reSourceMap.test(sourceMappingURL)) { - // Support source map URL as a data url - var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1); - sourceMapData = bufferFrom(rawData, "base64").toString(); - sourceMappingURL = source; - } else { - // Support source map URLs relative to the source URL - sourceMappingURL = supportRelativeURL(source, sourceMappingURL); - sourceMapData = retrieveFile(sourceMappingURL); - } - if (!sourceMapData) { - return null; - } +/***/ }), - return { - url: sourceMappingURL, - map: sourceMapData - }; -}); +/***/ 91898: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -function mapSourcePosition(position) { - var sourceMap = sourceMapCache[position.source]; - if (!sourceMap) { - // Call the (overrideable) retrieveSourceMap function to get the source map. - var urlAndMap = retrieveSourceMap(position.source); - if (urlAndMap) { - sourceMap = sourceMapCache[position.source] = { - url: urlAndMap.url, - map: new SourceMapConsumer(urlAndMap.map) - }; +const compare = __nccwpck_require__(44309) +const eq = (a, b, loose) => compare(a, b, loose) === 0 +module.exports = eq - // Load all sources stored inline with the source map into the file cache - // to pretend like they are already loaded. They may not exist on disk. - if (sourceMap.map.sourcesContent) { - sourceMap.map.sources.forEach(function(source, i) { - var contents = sourceMap.map.sourcesContent[i]; - if (contents) { - var url = supportRelativeURL(sourceMap.url, source); - fileContentsCache[url] = contents; - } - }); - } - } else { - sourceMap = sourceMapCache[position.source] = { - url: null, - map: null - }; - } - } - // Resolve the source URL relative to the URL of the source map - if (sourceMap && sourceMap.map && typeof sourceMap.map.originalPositionFor === 'function') { - var originalPosition = sourceMap.map.originalPositionFor(position); +/***/ }), - // Only return the original position if a matching line was found. If no - // matching line is found then we return position instead, which will cause - // the stack trace to print the path and line for the compiled file. It is - // better to give a precise location in the compiled file than a vague - // location in the original file. - if (originalPosition.source !== null) { - originalPosition.source = supportRelativeURL( - sourceMap.url, originalPosition.source); - return originalPosition; - } - } +/***/ 84123: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - return position; -} +const compare = __nccwpck_require__(44309) +const gt = (a, b, loose) => compare(a, b, loose) > 0 +module.exports = gt -// Parses code generated by FormatEvalOrigin(), a function inside V8: -// https://code.google.com/p/v8/source/browse/trunk/src/messages.js -function mapEvalOrigin(origin) { - // Most eval() calls are in this format - var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin); - if (match) { - var position = mapSourcePosition({ - source: match[2], - line: +match[3], - column: match[4] - 1 - }); - return 'eval at ' + match[1] + ' (' + position.source + ':' + - position.line + ':' + (position.column + 1) + ')'; - } - // Parse nested eval() calls using recursion - match = /^eval at ([^(]+) \((.+)\)$/.exec(origin); - if (match) { - return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')'; - } +/***/ }), - // Make sure we still return useful information if we didn't find anything - return origin; -} +/***/ 15522: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -// This is copied almost verbatim from the V8 source code at -// https://code.google.com/p/v8/source/browse/trunk/src/messages.js. The -// implementation of wrapCallSite() used to just forward to the actual source -// code of CallSite.prototype.toString but unfortunately a new release of V8 -// did something to the prototype chain and broke the shim. The only fix I -// could find was copy/paste. -function CallSiteToString() { - var fileName; - var fileLocation = ""; - if (this.isNative()) { - fileLocation = "native"; - } else { - fileName = this.getScriptNameOrSourceURL(); - if (!fileName && this.isEval()) { - fileLocation = this.getEvalOrigin(); - fileLocation += ", "; // Expecting source position to follow. - } +const compare = __nccwpck_require__(44309) +const gte = (a, b, loose) => compare(a, b, loose) >= 0 +module.exports = gte - if (fileName) { - fileLocation += fileName; - } else { - // Source code does not originate from a file and is not native, but we - // can still get the source position inside the source string, e.g. in - // an eval string. - fileLocation += ""; - } - var lineNumber = this.getLineNumber(); - if (lineNumber != null) { - fileLocation += ":" + lineNumber; - var columnNumber = this.getColumnNumber(); - if (columnNumber) { - fileLocation += ":" + columnNumber; - } - } - } - var line = ""; - var functionName = this.getFunctionName(); - var addSuffix = true; - var isConstructor = this.isConstructor(); - var isMethodCall = !(this.isToplevel() || isConstructor); - if (isMethodCall) { - var typeName = this.getTypeName(); - // Fixes shim to be backward compatable with Node v0 to v4 - if (typeName === "[object Object]") { - typeName = "null"; - } - var methodName = this.getMethodName(); - if (functionName) { - if (typeName && functionName.indexOf(typeName) != 0) { - line += typeName + "."; - } - line += functionName; - if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) { - line += " [as " + methodName + "]"; - } - } else { - line += typeName + "." + (methodName || ""); - } - } else if (isConstructor) { - line += "new " + (functionName || ""); - } else if (functionName) { - line += functionName; - } else { - line += fileLocation; - addSuffix = false; +/***/ }), + +/***/ 30900: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const SemVer = __nccwpck_require__(48088) + +const inc = (version, release, options, identifier, identifierBase) => { + if (typeof (options) === 'string') { + identifierBase = identifier + identifier = options + options = undefined } - if (addSuffix) { - line += " (" + fileLocation + ")"; + + try { + return new SemVer( + version instanceof SemVer ? version.version : version, + options + ).inc(release, identifier, identifierBase).version + } catch (er) { + return null } - return line; } +module.exports = inc -function cloneCallSite(frame) { - var object = {}; - Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) { - object[name] = /^(?:is|get)/.test(name) ? function() { return frame[name].call(frame); } : frame[name]; - }); - object.toString = CallSiteToString; - return object; -} -function wrapCallSite(frame, state) { - // provides interface backward compatibility - if (state === undefined) { - state = { nextPosition: null, curPosition: null } - } - if(frame.isNative()) { - state.curPosition = null; - return frame; - } +/***/ }), - // Most call sites will return the source file from getFileName(), but code - // passed to eval() ending in "//# sourceURL=..." will return the source file - // from getScriptNameOrSourceURL() instead - var source = frame.getFileName() || frame.getScriptNameOrSourceURL(); - if (source) { - var line = frame.getLineNumber(); - var column = frame.getColumnNumber() - 1; +/***/ 80194: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // Fix position in Node where some (internal) code is prepended. - // See https://github.com/evanw/node-source-map-support/issues/36 - // Header removed in node at ^10.16 || >=11.11.0 - // v11 is not an LTS candidate, we can just test the one version with it. - // Test node versions for: 10.16-19, 10.20+, 12-19, 20-99, 100+, or 11.11 - var noHeader = /^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/; - var headerLength = noHeader.test(globalProcessVersion()) ? 0 : 62; - if (line === 1 && column > headerLength && !isInBrowser() && !frame.isEval()) { - column -= headerLength; - } +const compare = __nccwpck_require__(44309) +const lt = (a, b, loose) => compare(a, b, loose) < 0 +module.exports = lt - var position = mapSourcePosition({ - source: source, - line: line, - column: column - }); - state.curPosition = position; - frame = cloneCallSite(frame); - var originalFunctionName = frame.getFunctionName; - frame.getFunctionName = function() { - if (state.nextPosition == null) { - return originalFunctionName(); - } - return state.nextPosition.name || originalFunctionName(); - }; - frame.getFileName = function() { return position.source; }; - frame.getLineNumber = function() { return position.line; }; - frame.getColumnNumber = function() { return position.column + 1; }; - frame.getScriptNameOrSourceURL = function() { return position.source; }; - return frame; - } - // Code called using eval() needs special handling - var origin = frame.isEval() && frame.getEvalOrigin(); - if (origin) { - origin = mapEvalOrigin(origin); - frame = cloneCallSite(frame); - frame.getEvalOrigin = function() { return origin; }; - return frame; - } +/***/ }), - // If we get here then we were unable to change the source position - return frame; -} +/***/ 77520: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -// This function is part of the V8 stack trace API, for more info see: -// https://v8.dev/docs/stack-trace-api -function prepareStackTrace(error, stack) { - if (emptyCacheBetweenOperations) { - fileContentsCache = {}; - sourceMapCache = {}; - } +const compare = __nccwpck_require__(44309) +const lte = (a, b, loose) => compare(a, b, loose) <= 0 +module.exports = lte - var name = error.name || 'Error'; - var message = error.message || ''; - var errorString = name + ": " + message; - var state = { nextPosition: null, curPosition: null }; - var processedStack = []; - for (var i = stack.length - 1; i >= 0; i--) { - processedStack.push('\n at ' + wrapCallSite(stack[i], state)); - state.nextPosition = state.curPosition; - } - state.curPosition = state.nextPosition = null; - return errorString + processedStack.reverse().join(''); -} +/***/ }), -// Generate position and snippet of original source with pointer -function getErrorSource(error) { - var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack); - if (match) { - var source = match[1]; - var line = +match[2]; - var column = +match[3]; +/***/ 76688: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // Support the inline sourceContents inside the source map - var contents = fileContentsCache[source]; +const SemVer = __nccwpck_require__(48088) +const major = (a, loose) => new SemVer(a, loose).major +module.exports = major - // Support files on disk - if (!contents && fs && fs.existsSync(source)) { - try { - contents = fs.readFileSync(source, 'utf8'); - } catch (er) { - contents = ''; - } - } - // Format the line from the original source code like node does - if (contents) { - var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1]; - if (code) { - return source + ':' + line + '\n' + code + '\n' + - new Array(column).join(' ') + '^'; - } +/***/ }), + +/***/ 38447: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const SemVer = __nccwpck_require__(48088) +const minor = (a, loose) => new SemVer(a, loose).minor +module.exports = minor + + +/***/ }), + +/***/ 6017: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const compare = __nccwpck_require__(44309) +const neq = (a, b, loose) => compare(a, b, loose) !== 0 +module.exports = neq + + +/***/ }), + +/***/ 75925: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const SemVer = __nccwpck_require__(48088) +const parse = (version, options, throwErrors = false) => { + if (version instanceof SemVer) { + return version + } + try { + return new SemVer(version, options) + } catch (er) { + if (!throwErrors) { + return null } + throw er } - return null; } -function printErrorAndExit (error) { - var source = getErrorSource(error); +module.exports = parse - // Ensure error is printed synchronously and not truncated - var stderr = globalProcessStderr(); - if (stderr && stderr._handle && stderr._handle.setBlocking) { - stderr._handle.setBlocking(true); - } - if (source) { - console.error(); - console.error(source); - } +/***/ }), - console.error(error.stack); - globalProcessExit(1); -} +/***/ 42866: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -function shimEmitUncaughtException () { - var origEmit = process.emit; +const SemVer = __nccwpck_require__(48088) +const patch = (a, loose) => new SemVer(a, loose).patch +module.exports = patch - process.emit = function (type) { - if (type === 'uncaughtException') { - var hasStack = (arguments[1] && arguments[1].stack); - var hasListeners = (this.listeners(type).length > 0); - if (hasStack && !hasListeners) { - return printErrorAndExit(arguments[1]); - } - } +/***/ }), - return origEmit.apply(this, arguments); - }; +/***/ 24016: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const parse = __nccwpck_require__(75925) +const prerelease = (version, options) => { + const parsed = parse(version, options) + return (parsed && parsed.prerelease.length) ? parsed.prerelease : null } +module.exports = prerelease -var originalRetrieveFileHandlers = retrieveFileHandlers.slice(0); -var originalRetrieveMapHandlers = retrieveMapHandlers.slice(0); -exports.wrapCallSite = wrapCallSite; -exports.getErrorSource = getErrorSource; -exports.mapSourcePosition = mapSourcePosition; -exports.retrieveSourceMap = retrieveSourceMap; +/***/ }), -exports.install = function(options) { - options = options || {}; +/***/ 76417: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (options.environment) { - environment = options.environment; - if (["node", "browser", "auto"].indexOf(environment) === -1) { - throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}") - } - } +const compare = __nccwpck_require__(44309) +const rcompare = (a, b, loose) => compare(b, a, loose) +module.exports = rcompare - // Allow sources to be found by methods other than reading the files - // directly from disk. - if (options.retrieveFile) { - if (options.overrideRetrieveFile) { - retrieveFileHandlers.length = 0; - } - retrieveFileHandlers.unshift(options.retrieveFile); - } +/***/ }), - // Allow source maps to be found by methods other than reading the files - // directly from disk. - if (options.retrieveSourceMap) { - if (options.overrideRetrieveSourceMap) { - retrieveMapHandlers.length = 0; - } +/***/ 8701: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - retrieveMapHandlers.unshift(options.retrieveSourceMap); - } +const compareBuild = __nccwpck_require__(92156) +const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose)) +module.exports = rsort - // Support runtime transpilers that include inline source maps - if (options.hookRequire && !isInBrowser()) { - // Use dynamicRequire to avoid including in browser bundles - var Module = dynamicRequire(module, 'module'); - var $compile = Module.prototype._compile; - if (!$compile.__sourceMapSupport) { - Module.prototype._compile = function(content, filename) { - fileContentsCache[filename] = content; - sourceMapCache[filename] = undefined; - return $compile.call(this, content, filename); - }; +/***/ }), - Module.prototype._compile.__sourceMapSupport = true; - } - } +/***/ 6055: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // Configure options - if (!emptyCacheBetweenOperations) { - emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ? - options.emptyCacheBetweenOperations : false; +const Range = __nccwpck_require__(9828) +const satisfies = (version, range, options) => { + try { + range = new Range(range, options) + } catch (er) { + return false } + return range.test(version) +} +module.exports = satisfies - // Install the error reformatter - if (!errorFormatterInstalled) { - errorFormatterInstalled = true; - Error.prepareStackTrace = prepareStackTrace; - } - if (!uncaughtShimInstalled) { - var installHandler = 'handleUncaughtExceptions' in options ? - options.handleUncaughtExceptions : true; +/***/ }), - // Do not override 'uncaughtException' with our own handler in Node.js - // Worker threads. Workers pass the error to the main thread as an event, - // rather than printing something to stderr and exiting. - try { - // We need to use `dynamicRequire` because `require` on it's own will be optimized by WebPack/Browserify. - var worker_threads = dynamicRequire(module, 'worker_threads'); - if (worker_threads.isMainThread === false) { - installHandler = false; - } - } catch(e) {} +/***/ 61426: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // Provide the option to not install the uncaught exception handler. This is - // to support other uncaught exception handlers (in test frameworks, for - // example). If this handler is not installed and there are no other uncaught - // exception handlers, uncaught exceptions will be caught by node's built-in - // exception handler and the process will still be terminated. However, the - // generated JavaScript code will be shown above the stack trace instead of - // the original source code. - if (installHandler && hasGlobalProcessEventEmitter()) { - uncaughtShimInstalled = true; - shimEmitUncaughtException(); - } - } -}; +const compareBuild = __nccwpck_require__(92156) +const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose)) +module.exports = sort -exports.resetRetrieveHandlers = function() { - retrieveFileHandlers.length = 0; - retrieveMapHandlers.length = 0; - retrieveFileHandlers = originalRetrieveFileHandlers.slice(0); - retrieveMapHandlers = originalRetrieveMapHandlers.slice(0); +/***/ }), - retrieveSourceMap = handlerExec(retrieveMapHandlers); - retrieveFile = handlerExec(retrieveFileHandlers); +/***/ 19601: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const parse = __nccwpck_require__(75925) +const valid = (version, options) => { + const v = parse(version, options) + return v ? v.version : null } +module.exports = valid /***/ }), -/***/ 26375: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var util = __nccwpck_require__(12344); -var has = Object.prototype.hasOwnProperty; -var hasNativeMap = typeof Map !== "undefined"; +/***/ 11383: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * A data structure which is a combination of an array and a set. Adding a new - * member is O(1), testing for membership is O(1), and finding the index of an - * element is O(1). Removing elements from the set is not supported. Only - * strings are supported for membership. - */ -function ArraySet() { - this._array = []; - this._set = hasNativeMap ? new Map() : Object.create(null); +// just pre-load all the stuff that index.js lazily exports +const internalRe = __nccwpck_require__(9523) +const constants = __nccwpck_require__(42293) +const SemVer = __nccwpck_require__(48088) +const identifiers = __nccwpck_require__(92463) +const parse = __nccwpck_require__(75925) +const valid = __nccwpck_require__(19601) +const clean = __nccwpck_require__(48848) +const inc = __nccwpck_require__(30900) +const diff = __nccwpck_require__(64297) +const major = __nccwpck_require__(76688) +const minor = __nccwpck_require__(38447) +const patch = __nccwpck_require__(42866) +const prerelease = __nccwpck_require__(24016) +const compare = __nccwpck_require__(44309) +const rcompare = __nccwpck_require__(76417) +const compareLoose = __nccwpck_require__(62804) +const compareBuild = __nccwpck_require__(92156) +const sort = __nccwpck_require__(61426) +const rsort = __nccwpck_require__(8701) +const gt = __nccwpck_require__(84123) +const lt = __nccwpck_require__(80194) +const eq = __nccwpck_require__(91898) +const neq = __nccwpck_require__(6017) +const gte = __nccwpck_require__(15522) +const lte = __nccwpck_require__(77520) +const cmp = __nccwpck_require__(75098) +const coerce = __nccwpck_require__(13466) +const Comparator = __nccwpck_require__(91532) +const Range = __nccwpck_require__(9828) +const satisfies = __nccwpck_require__(6055) +const toComparators = __nccwpck_require__(52706) +const maxSatisfying = __nccwpck_require__(20579) +const minSatisfying = __nccwpck_require__(10832) +const minVersion = __nccwpck_require__(34179) +const validRange = __nccwpck_require__(2098) +const outside = __nccwpck_require__(60420) +const gtr = __nccwpck_require__(9380) +const ltr = __nccwpck_require__(33323) +const intersects = __nccwpck_require__(27008) +const simplifyRange = __nccwpck_require__(56561) +const subset = __nccwpck_require__(7863) +module.exports = { + parse, + valid, + clean, + inc, + diff, + major, + minor, + patch, + prerelease, + compare, + rcompare, + compareLoose, + compareBuild, + sort, + rsort, + gt, + lt, + eq, + neq, + gte, + lte, + cmp, + coerce, + Comparator, + Range, + satisfies, + toComparators, + maxSatisfying, + minSatisfying, + minVersion, + validRange, + outside, + gtr, + ltr, + intersects, + simplifyRange, + subset, + SemVer, + re: internalRe.re, + src: internalRe.src, + tokens: internalRe.t, + SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION, + RELEASE_TYPES: constants.RELEASE_TYPES, + compareIdentifiers: identifiers.compareIdentifiers, + rcompareIdentifiers: identifiers.rcompareIdentifiers, } -/** - * Static method for creating ArraySet instances from an existing array. - */ -ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { - var set = new ArraySet(); - for (var i = 0, len = aArray.length; i < len; i++) { - set.add(aArray[i], aAllowDuplicates); - } - return set; -}; -/** - * Return how many unique items are in this ArraySet. If duplicates have been - * added, than those do not count towards the size. - * - * @returns Number - */ -ArraySet.prototype.size = function ArraySet_size() { - return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; -}; +/***/ }), -/** - * Add the given string to this set. - * - * @param String aStr - */ -ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { - var sStr = hasNativeMap ? aStr : util.toSetString(aStr); - var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr); - var idx = this._array.length; - if (!isDuplicate || aAllowDuplicates) { - this._array.push(aStr); - } - if (!isDuplicate) { - if (hasNativeMap) { - this._set.set(aStr, idx); - } else { - this._set[sStr] = idx; - } - } -}; +/***/ 42293: +/***/ ((module) => { -/** - * Is the given string a member of this set? - * - * @param String aStr - */ -ArraySet.prototype.has = function ArraySet_has(aStr) { - if (hasNativeMap) { - return this._set.has(aStr); - } else { - var sStr = util.toSetString(aStr); - return has.call(this._set, sStr); - } -}; +// Note: this is the semver.org version of the spec that it implements +// Not necessarily the package version of this code. +const SEMVER_SPEC_VERSION = '2.0.0' -/** - * What is the index of the given string in the array? - * - * @param String aStr - */ -ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { - if (hasNativeMap) { - var idx = this._set.get(aStr); - if (idx >= 0) { - return idx; - } - } else { - var sStr = util.toSetString(aStr); - if (has.call(this._set, sStr)) { - return this._set[sStr]; - } - } +const MAX_LENGTH = 256 +const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || +/* istanbul ignore next */ 9007199254740991 - throw new Error('"' + aStr + '" is not in the set.'); -}; +// Max safe segment length for coercion. +const MAX_SAFE_COMPONENT_LENGTH = 16 -/** - * What is the element at the given index? - * - * @param Number aIdx - */ -ArraySet.prototype.at = function ArraySet_at(aIdx) { - if (aIdx >= 0 && aIdx < this._array.length) { - return this._array[aIdx]; - } - throw new Error('No element indexed by ' + aIdx); -}; +// Max safe length for a build identifier. The max length minus 6 characters for +// the shortest version with a build 0.0.0+BUILD. +const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6 -/** - * Returns the array representation of this set (which has the proper indices - * indicated by indexOf). Note that this is a copy of the internal array used - * for storing the members so that no one can mess with internal state. - */ -ArraySet.prototype.toArray = function ArraySet_toArray() { - return this._array.slice(); -}; +const RELEASE_TYPES = [ + 'major', + 'premajor', + 'minor', + 'preminor', + 'patch', + 'prepatch', + 'prerelease', +] -exports.I = ArraySet; +module.exports = { + MAX_LENGTH, + MAX_SAFE_COMPONENT_LENGTH, + MAX_SAFE_BUILD_LENGTH, + MAX_SAFE_INTEGER, + RELEASE_TYPES, + SEMVER_SPEC_VERSION, + FLAG_INCLUDE_PRERELEASE: 0b001, + FLAG_LOOSE: 0b010, +} /***/ }), -/***/ 10975: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ 50427: +/***/ ((module) => { -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - * - * Based on the Base 64 VLQ implementation in Closure Compiler: - * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java - * - * Copyright 2011 The Closure Compiler Authors. All rights reserved. - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ +const debug = ( + typeof process === 'object' && + process.env && + process.env.NODE_DEBUG && + /\bsemver\b/i.test(process.env.NODE_DEBUG) +) ? (...args) => console.error('SEMVER', ...args) + : () => {} -var base64 = __nccwpck_require__(6156); +module.exports = debug -// A single base 64 digit can contain 6 bits of data. For the base 64 variable -// length quantities we use in the source map spec, the first bit is the sign, -// the next four bits are the actual value, and the 6th bit is the -// continuation bit. The continuation bit tells us whether there are more -// digits in this value following this digit. -// -// Continuation -// | Sign -// | | -// V V -// 101011 -var VLQ_BASE_SHIFT = 5; +/***/ }), -// binary: 100000 -var VLQ_BASE = 1 << VLQ_BASE_SHIFT; +/***/ 92463: +/***/ ((module) => { -// binary: 011111 -var VLQ_BASE_MASK = VLQ_BASE - 1; +const numeric = /^[0-9]+$/ +const compareIdentifiers = (a, b) => { + const anum = numeric.test(a) + const bnum = numeric.test(b) -// binary: 100000 -var VLQ_CONTINUATION_BIT = VLQ_BASE; + if (anum && bnum) { + a = +a + b = +b + } -/** - * Converts from a two-complement value to a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary) - * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) - */ -function toVLQSigned(aValue) { - return aValue < 0 - ? ((-aValue) << 1) + 1 - : (aValue << 1) + 0; + return a === b ? 0 + : (anum && !bnum) ? -1 + : (bnum && !anum) ? 1 + : a < b ? -1 + : 1 } -/** - * Converts to a two-complement value from a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 - * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 - */ -function fromVLQSigned(aValue) { - var isNegative = (aValue & 1) === 1; - var shifted = aValue >> 1; - return isNegative - ? -shifted - : shifted; -} +const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a) -/** - * Returns the base 64 VLQ encoded value. - */ -exports.encode = function base64VLQ_encode(aValue) { - var encoded = ""; - var digit; +module.exports = { + compareIdentifiers, + rcompareIdentifiers, +} - var vlq = toVLQSigned(aValue); - do { - digit = vlq & VLQ_BASE_MASK; - vlq >>>= VLQ_BASE_SHIFT; - if (vlq > 0) { - // There are still more digits in this value, so we must make sure the - // continuation bit is marked. - digit |= VLQ_CONTINUATION_BIT; - } - encoded += base64.encode(digit); - } while (vlq > 0); +/***/ }), - return encoded; -}; +/***/ 40785: +/***/ ((module) => { -/** - * Decodes the next base 64 VLQ value from the given string and returns the - * value and the rest of the string via the out parameter. - */ -exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { - var strLen = aStr.length; - var result = 0; - var shift = 0; - var continuation, digit; +// parse out just the options we care about +const looseOption = Object.freeze({ loose: true }) +const emptyOpts = Object.freeze({ }) +const parseOptions = options => { + if (!options) { + return emptyOpts + } - do { - if (aIndex >= strLen) { - throw new Error("Expected more digits in base 64 VLQ value."); - } + if (typeof options !== 'object') { + return looseOption + } - digit = base64.decode(aStr.charCodeAt(aIndex++)); - if (digit === -1) { - throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); - } + return options +} +module.exports = parseOptions - continuation = !!(digit & VLQ_CONTINUATION_BIT); - digit &= VLQ_BASE_MASK; - result = result + (digit << shift); - shift += VLQ_BASE_SHIFT; - } while (continuation); - aOutParam.value = fromVLQSigned(result); - aOutParam.rest = aIndex; -}; +/***/ }), +/***/ 9523: +/***/ ((module, exports, __nccwpck_require__) => { -/***/ }), +const { + MAX_SAFE_COMPONENT_LENGTH, + MAX_SAFE_BUILD_LENGTH, + MAX_LENGTH, +} = __nccwpck_require__(42293) +const debug = __nccwpck_require__(50427) +exports = module.exports = {} -/***/ 6156: -/***/ ((__unused_webpack_module, exports) => { +// The actual regexps go on exports.re +const re = exports.re = [] +const safeRe = exports.safeRe = [] +const src = exports.src = [] +const t = exports.t = {} +let R = 0 -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ +const LETTERDASHNUMBER = '[a-zA-Z0-9-]' -var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); +// Replace some greedy regex tokens to prevent regex dos issues. These regex are +// used internally via the safeRe object since all inputs in this library get +// normalized first to trim and collapse all extra whitespace. The original +// regexes are exported for userland consumption and lower level usage. A +// future breaking change could export the safer regex only with a note that +// all input should have extra whitespace removed. +const safeRegexReplacements = [ + ['\\s', 1], + ['\\d', MAX_LENGTH], + [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH], +] -/** - * Encode an integer in the range of 0 to 63 to a single base 64 digit. - */ -exports.encode = function (number) { - if (0 <= number && number < intToCharMap.length) { - return intToCharMap[number]; +const makeSafeRegex = (value) => { + for (const [token, max] of safeRegexReplacements) { + value = value + .split(`${token}*`).join(`${token}{0,${max}}`) + .split(`${token}+`).join(`${token}{1,${max}}`) } - throw new TypeError("Must be between 0 and 63: " + number); -}; + return value +} -/** - * Decode a single base 64 character code digit to an integer. Returns -1 on - * failure. - */ -exports.decode = function (charCode) { - var bigA = 65; // 'A' - var bigZ = 90; // 'Z' +const createToken = (name, value, isGlobal) => { + const safe = makeSafeRegex(value) + const index = R++ + debug(name, index, value) + t[name] = index + src[index] = value + re[index] = new RegExp(value, isGlobal ? 'g' : undefined) + safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined) +} - var littleA = 97; // 'a' - var littleZ = 122; // 'z' +// The following Regular Expressions can be used for tokenizing, +// validating, and parsing SemVer version strings. - var zero = 48; // '0' - var nine = 57; // '9' +// ## Numeric Identifier +// A single `0`, or a non-zero digit followed by zero or more digits. - var plus = 43; // '+' - var slash = 47; // '/' +createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*') +createToken('NUMERICIDENTIFIERLOOSE', '\\d+') - var littleOffset = 26; - var numberOffset = 52; +// ## Non-numeric Identifier +// Zero or more digits, followed by a letter or hyphen, and then zero or +// more letters, digits, or hyphens. - // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ - if (bigA <= charCode && charCode <= bigZ) { - return (charCode - bigA); - } +createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`) - // 26 - 51: abcdefghijklmnopqrstuvwxyz - if (littleA <= charCode && charCode <= littleZ) { - return (charCode - littleA + littleOffset); - } +// ## Main Version +// Three dot-separated numeric identifiers. - // 52 - 61: 0123456789 - if (zero <= charCode && charCode <= nine) { - return (charCode - zero + numberOffset); - } +createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` + + `(${src[t.NUMERICIDENTIFIER]})\\.` + + `(${src[t.NUMERICIDENTIFIER]})`) - // 62: + - if (charCode == plus) { - return 62; - } +createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + + `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + + `(${src[t.NUMERICIDENTIFIERLOOSE]})`) - // 63: / - if (charCode == slash) { - return 63; - } +// ## Pre-release Version Identifier +// A numeric identifier, or a non-numeric identifier. - // Invalid base64 digit. - return -1; -}; +createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER] +}|${src[t.NONNUMERICIDENTIFIER]})`) +createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE] +}|${src[t.NONNUMERICIDENTIFIER]})`) -/***/ }), +// ## Pre-release Version +// Hyphen, followed by one or more dot-separated pre-release version +// identifiers. -/***/ 33600: -/***/ ((__unused_webpack_module, exports) => { +createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER] +}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`) -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ +createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE] +}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`) -exports.GREATEST_LOWER_BOUND = 1; -exports.LEAST_UPPER_BOUND = 2; +// ## Build Metadata Identifier +// Any combination of digits, letters, or hyphens. -/** - * Recursive implementation of binary search. - * - * @param aLow Indices here and lower do not contain the needle. - * @param aHigh Indices here and higher do not contain the needle. - * @param aNeedle The element being searched for. - * @param aHaystack The non-empty array being searched. - * @param aCompare Function which takes two elements and returns -1, 0, or 1. - * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or - * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - */ -function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { - // This function terminates when one of the following is true: - // - // 1. We find the exact element we are looking for. - // - // 2. We did not find the exact element, but we can return the index of - // the next-closest element. - // - // 3. We did not find the exact element, and there is no next-closest - // element than the one we are searching for, so we return -1. - var mid = Math.floor((aHigh - aLow) / 2) + aLow; - var cmp = aCompare(aNeedle, aHaystack[mid], true); - if (cmp === 0) { - // Found the element we are looking for. - return mid; - } - else if (cmp > 0) { - // Our needle is greater than aHaystack[mid]. - if (aHigh - mid > 1) { - // The element is in the upper half. - return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); - } +createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`) - // The exact needle element was not found in this haystack. Determine if - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return aHigh < aHaystack.length ? aHigh : -1; - } else { - return mid; - } - } - else { - // Our needle is less than aHaystack[mid]. - if (mid - aLow > 1) { - // The element is in the lower half. - return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); - } +// ## Build Metadata +// Plus sign, followed by one or more period-separated build metadata +// identifiers. - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return mid; - } else { - return aLow < 0 ? -1 : aLow; - } - } -} +createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER] +}(?:\\.${src[t.BUILDIDENTIFIER]})*))`) -/** - * This is an implementation of binary search which will always try and return - * the index of the closest element if there is no exact hit. This is because - * mappings between original and generated line/col pairs are single points, - * and there is an implicit region between each of them, so a miss just means - * that you aren't on the very start of a region. - * - * @param aNeedle The element you are looking for. - * @param aHaystack The array that is being searched. - * @param aCompare A function which takes the needle and an element in the - * array and returns -1, 0, or 1 depending on whether the needle is less - * than, equal to, or greater than the element, respectively. - * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or - * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'. - */ -exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { - if (aHaystack.length === 0) { - return -1; - } +// ## Full Version String +// A main version, followed optionally by a pre-release version and +// build metadata. - var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, - aCompare, aBias || exports.GREATEST_LOWER_BOUND); - if (index < 0) { - return -1; - } +// Note that the only major, minor, patch, and pre-release sections of +// the version string are capturing groups. The build metadata is not a +// capturing group, because it should not ever be used in version +// comparison. - // We have found either the exact element, or the next-closest element than - // the one we are searching for. However, there may be more than one such - // element. Make sure we always return the smallest of these. - while (index - 1 >= 0) { - if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { - break; - } - --index; - } +createToken('FULLPLAIN', `v?${src[t.MAINVERSION] +}${src[t.PRERELEASE]}?${ + src[t.BUILD]}?`) - return index; -}; +createToken('FULL', `^${src[t.FULLPLAIN]}$`) +// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. +// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty +// common in the npm registry. +createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE] +}${src[t.PRERELEASELOOSE]}?${ + src[t.BUILD]}?`) -/***/ }), +createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`) -/***/ 86817: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +createToken('GTLT', '((?:<|>)?=?)') -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2014 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ +// Something like "2.*" or "1.2.x". +// Note that "x.x" is a valid xRange identifer, meaning "any version" +// Only the first item is strictly required. +createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`) +createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`) -var util = __nccwpck_require__(12344); +createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` + + `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + + `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + + `(?:${src[t.PRERELEASE]})?${ + src[t.BUILD]}?` + + `)?)?`) -/** - * Determine whether mappingB is after mappingA with respect to generated - * position. - */ -function generatedPositionAfter(mappingA, mappingB) { - // Optimized for most common case - var lineA = mappingA.generatedLine; - var lineB = mappingB.generatedLine; - var columnA = mappingA.generatedColumn; - var columnB = mappingB.generatedColumn; - return lineB > lineA || lineB == lineA && columnB >= columnA || - util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; -} +createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + + `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + + `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + + `(?:${src[t.PRERELEASELOOSE]})?${ + src[t.BUILD]}?` + + `)?)?`) -/** - * A data structure to provide a sorted view of accumulated mappings in a - * performance conscious manner. It trades a neglibable overhead in general - * case for a large speedup in case of mappings being added in order. - */ -function MappingList() { - this._array = []; - this._sorted = true; - // Serves as infimum - this._last = {generatedLine: -1, generatedColumn: 0}; -} +createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`) +createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`) -/** - * Iterate through internal items. This method takes the same arguments that - * `Array.prototype.forEach` takes. - * - * NOTE: The order of the mappings is NOT guaranteed. - */ -MappingList.prototype.unsortedForEach = - function MappingList_forEach(aCallback, aThisArg) { - this._array.forEach(aCallback, aThisArg); - }; +// Coercion. +// Extract anything that could conceivably be a part of a valid semver +createToken('COERCE', `${'(^|[^\\d])' + + '(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` + + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + + `(?:$|[^\\d])`) +createToken('COERCERTL', src[t.COERCE], true) -/** - * Add the given source mapping. - * - * @param Object aMapping - */ -MappingList.prototype.add = function MappingList_add(aMapping) { - if (generatedPositionAfter(this._last, aMapping)) { - this._last = aMapping; - this._array.push(aMapping); - } else { - this._sorted = false; - this._array.push(aMapping); - } -}; +// Tilde ranges. +// Meaning is "reasonably at or greater than" +createToken('LONETILDE', '(?:~>?)') -/** - * Returns the flat, sorted array of mappings. The mappings are sorted by - * generated position. - * - * WARNING: This method returns internal data without copying, for - * performance. The return value must NOT be mutated, and should be treated as - * an immutable borrow. If you want to take ownership, you must make your own - * copy. - */ -MappingList.prototype.toArray = function MappingList_toArray() { - if (!this._sorted) { - this._array.sort(util.compareByGeneratedPositionsInflated); - this._sorted = true; - } - return this._array; -}; +createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true) +exports.tildeTrimReplace = '$1~' -exports.H = MappingList; +createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`) +createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`) +// Caret ranges. +// Meaning is "at least and backwards compatible with" +createToken('LONECARET', '(?:\\^)') -/***/ }), +createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true) +exports.caretTrimReplace = '$1^' -/***/ 73254: -/***/ ((__unused_webpack_module, exports) => { +createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`) +createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`) -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ +// A simple gt/lt/eq thing, or just "" to indicate "any version" +createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`) +createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`) -// It turns out that some (most?) JavaScript engines don't self-host -// `Array.prototype.sort`. This makes sense because C++ will likely remain -// faster than JS when doing raw CPU-intensive sorting. However, when using a -// custom comparator function, calling back and forth between the VM's C++ and -// JIT'd JS is rather slow *and* loses JIT type information, resulting in -// worse generated code for the comparator function than would be optimal. In -// fact, when sorting with a comparator, these costs outweigh the benefits of -// sorting in C++. By using our own JS-implemented Quick Sort (below), we get -// a ~3500ms mean speed-up in `bench/bench.html`. +// An expression to strip any whitespace between the gtlt and the thing +// it modifies, so that `> 1.2.3` ==> `>1.2.3` +createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT] +}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true) +exports.comparatorTrimReplace = '$1$2$3' -/** - * Swap the elements indexed by `x` and `y` in the array `ary`. - * - * @param {Array} ary - * The array. - * @param {Number} x - * The index of the first item. - * @param {Number} y - * The index of the second item. - */ -function swap(ary, x, y) { - var temp = ary[x]; - ary[x] = ary[y]; - ary[y] = temp; -} +// Something like `1.2.3 - 1.2.4` +// Note that these all use the loose form, because they'll be +// checked against either the strict or loose comparator form +// later. +createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})` + + `\\s+-\\s+` + + `(${src[t.XRANGEPLAIN]})` + + `\\s*$`) -/** - * Returns a random integer within the range `low .. high` inclusive. - * - * @param {Number} low - * The lower bound on the range. - * @param {Number} high - * The upper bound on the range. - */ -function randomIntInRange(low, high) { - return Math.round(low + (Math.random() * (high - low))); -} +createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})` + + `\\s+-\\s+` + + `(${src[t.XRANGEPLAINLOOSE]})` + + `\\s*$`) -/** - * The Quick Sort algorithm. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - * @param {Number} p - * Start index of the array - * @param {Number} r - * End index of the array - */ -function doQuickSort(ary, comparator, p, r) { - // If our lower bound is less than our upper bound, we (1) partition the - // array into two pieces and (2) recurse on each half. If it is not, this is - // the empty array and our base case. +// Star ranges basically just allow anything at all. +createToken('STAR', '(<|>)?=?\\s*\\*') +// >=0.0.0 is like a star +createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$') +createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$') - if (p < r) { - // (1) Partitioning. - // - // The partitioning chooses a pivot between `p` and `r` and moves all - // elements that are less than or equal to the pivot to the before it, and - // all the elements that are greater than it after it. The effect is that - // once partition is done, the pivot is in the exact place it will be when - // the array is put in sorted order, and it will not need to be moved - // again. This runs in O(n) time. - // Always choose a random pivot so that an input array which is reverse - // sorted does not cause O(n^2) running time. - var pivotIndex = randomIntInRange(p, r); - var i = p - 1; +/***/ }), - swap(ary, pivotIndex, r); - var pivot = ary[r]; +/***/ 81196: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // Immediately after `j` is incremented in this loop, the following hold - // true: - // - // * Every element in `ary[p .. i]` is less than or equal to the pivot. - // - // * Every element in `ary[i+1 .. j-1]` is greater than the pivot. - for (var j = p; j < r; j++) { - if (comparator(ary[j], pivot) <= 0) { - i += 1; - swap(ary, i, j); - } - } +"use strict"; - swap(ary, i + 1, j); - var q = i + 1; - // (2) Recurse on each half. +// A linked list to keep track of recently-used-ness +const Yallist = __nccwpck_require__(40665) - doQuickSort(ary, comparator, p, q - 1); - doQuickSort(ary, comparator, q + 1, r); - } -} +const MAX = Symbol('max') +const LENGTH = Symbol('length') +const LENGTH_CALCULATOR = Symbol('lengthCalculator') +const ALLOW_STALE = Symbol('allowStale') +const MAX_AGE = Symbol('maxAge') +const DISPOSE = Symbol('dispose') +const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet') +const LRU_LIST = Symbol('lruList') +const CACHE = Symbol('cache') +const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet') -/** - * Sort the given array in-place with the given comparator function. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - */ -exports.U = function (ary, comparator) { - doQuickSort(ary, comparator, 0, ary.length - 1); -}; +const naiveLength = () => 1 +// lruList is a yallist where the head is the youngest +// item, and the tail is the oldest. the list contains the Hit +// objects as the entries. +// Each Hit object has a reference to its Yallist.Node. This +// never changes. +// +// cache is a Map (or PseudoMap) that matches the keys to +// the Yallist.Node object. +class LRUCache { + constructor (options) { + if (typeof options === 'number') + options = { max: options } -/***/ }), + if (!options) + options = {} -/***/ 75155: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (options.max && (typeof options.max !== 'number' || options.max < 0)) + throw new TypeError('max must be a non-negative number') + // Kind of weird to have a default max of Infinity, but oh well. + const max = this[MAX] = options.max || Infinity -var __webpack_unused_export__; -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ + const lc = options.length || naiveLength + this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc + this[ALLOW_STALE] = options.stale || false + if (options.maxAge && typeof options.maxAge !== 'number') + throw new TypeError('maxAge must be a number') + this[MAX_AGE] = options.maxAge || 0 + this[DISPOSE] = options.dispose + this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false + this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false + this.reset() + } -var util = __nccwpck_require__(12344); -var binarySearch = __nccwpck_require__(33600); -var ArraySet = (__nccwpck_require__(26375)/* .ArraySet */ .I); -var base64VLQ = __nccwpck_require__(10975); -var quickSort = (__nccwpck_require__(73254)/* .quickSort */ .U); + // resize the cache when the max changes. + set max (mL) { + if (typeof mL !== 'number' || mL < 0) + throw new TypeError('max must be a non-negative number') -function SourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); + this[MAX] = mL || Infinity + trim(this) + } + get max () { + return this[MAX] } - return sourceMap.sections != null - ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) - : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); -} + set allowStale (allowStale) { + this[ALLOW_STALE] = !!allowStale + } + get allowStale () { + return this[ALLOW_STALE] + } -SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) { - return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); -} + set maxAge (mA) { + if (typeof mA !== 'number') + throw new TypeError('maxAge must be a non-negative number') -/** - * The version of the source mapping spec that we are consuming. - */ -SourceMapConsumer.prototype._version = 3; + this[MAX_AGE] = mA + trim(this) + } + get maxAge () { + return this[MAX_AGE] + } -// `__generatedMappings` and `__originalMappings` are arrays that hold the -// parsed mapping coordinates from the source map's "mappings" attribute. They -// are lazily instantiated, accessed via the `_generatedMappings` and -// `_originalMappings` getters respectively, and we only parse the mappings -// and create these arrays once queried for a source location. We jump through -// these hoops because there can be many thousands of mappings, and parsing -// them is expensive, so we only want to do it if we must. -// -// Each object in the arrays is of the form: -// -// { -// generatedLine: The line number in the generated code, -// generatedColumn: The column number in the generated code, -// source: The path to the original source file that generated this -// chunk of code, -// originalLine: The line number in the original source that -// corresponds to this chunk of generated code, -// originalColumn: The column number in the original source that -// corresponds to this chunk of generated code, -// name: The name of the original symbol which generated this chunk of -// code. -// } -// -// All properties except for `generatedLine` and `generatedColumn` can be -// `null`. -// -// `_generatedMappings` is ordered by the generated positions. -// -// `_originalMappings` is ordered by the original positions. + // resize the cache when the lengthCalculator changes. + set lengthCalculator (lC) { + if (typeof lC !== 'function') + lC = naiveLength -SourceMapConsumer.prototype.__generatedMappings = null; -Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { - configurable: true, - enumerable: true, - get: function () { - if (!this.__generatedMappings) { - this._parseMappings(this._mappings, this.sourceRoot); + if (lC !== this[LENGTH_CALCULATOR]) { + this[LENGTH_CALCULATOR] = lC + this[LENGTH] = 0 + this[LRU_LIST].forEach(hit => { + hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) + this[LENGTH] += hit.length + }) } + trim(this) + } + get lengthCalculator () { return this[LENGTH_CALCULATOR] } - return this.__generatedMappings; + get length () { return this[LENGTH] } + get itemCount () { return this[LRU_LIST].length } + + rforEach (fn, thisp) { + thisp = thisp || this + for (let walker = this[LRU_LIST].tail; walker !== null;) { + const prev = walker.prev + forEachStep(this, fn, walker, thisp) + walker = prev + } } -}); -SourceMapConsumer.prototype.__originalMappings = null; -Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { - configurable: true, - enumerable: true, - get: function () { - if (!this.__originalMappings) { - this._parseMappings(this._mappings, this.sourceRoot); + forEach (fn, thisp) { + thisp = thisp || this + for (let walker = this[LRU_LIST].head; walker !== null;) { + const next = walker.next + forEachStep(this, fn, walker, thisp) + walker = next } + } - return this.__originalMappings; + keys () { + return this[LRU_LIST].toArray().map(k => k.key) } -}); -SourceMapConsumer.prototype._charIsMappingSeparator = - function SourceMapConsumer_charIsMappingSeparator(aStr, index) { - var c = aStr.charAt(index); - return c === ";" || c === ","; - }; + values () { + return this[LRU_LIST].toArray().map(k => k.value) + } -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -SourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - throw new Error("Subclasses must implement _parseMappings"); - }; + reset () { + if (this[DISPOSE] && + this[LRU_LIST] && + this[LRU_LIST].length) { + this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value)) + } -SourceMapConsumer.GENERATED_ORDER = 1; -SourceMapConsumer.ORIGINAL_ORDER = 2; + this[CACHE] = new Map() // hash of items by key + this[LRU_LIST] = new Yallist() // list of items in order of use recency + this[LENGTH] = 0 // length of items in the list + } -SourceMapConsumer.GREATEST_LOWER_BOUND = 1; -SourceMapConsumer.LEAST_UPPER_BOUND = 2; + dump () { + return this[LRU_LIST].map(hit => + isStale(this, hit) ? false : { + k: hit.key, + v: hit.value, + e: hit.now + (hit.maxAge || 0) + }).toArray().filter(h => h) + } -/** - * Iterate over each mapping between an original source/line/column and a - * generated line/column in this source map. - * - * @param Function aCallback - * The function that is called with each mapping. - * @param Object aContext - * Optional. If specified, this object will be the value of `this` every - * time that `aCallback` is called. - * @param aOrder - * Either `SourceMapConsumer.GENERATED_ORDER` or - * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to - * iterate over the mappings sorted by the generated file's line/column - * order or the original's source/line/column order, respectively. Defaults to - * `SourceMapConsumer.GENERATED_ORDER`. - */ -SourceMapConsumer.prototype.eachMapping = - function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { - var context = aContext || null; - var order = aOrder || SourceMapConsumer.GENERATED_ORDER; + dumpLru () { + return this[LRU_LIST] + } - var mappings; - switch (order) { - case SourceMapConsumer.GENERATED_ORDER: - mappings = this._generatedMappings; - break; - case SourceMapConsumer.ORIGINAL_ORDER: - mappings = this._originalMappings; - break; - default: - throw new Error("Unknown order of iteration."); - } + set (key, value, maxAge) { + maxAge = maxAge || this[MAX_AGE] - var sourceRoot = this.sourceRoot; - mappings.map(function (mapping) { - var source = mapping.source === null ? null : this._sources.at(mapping.source); - source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL); - return { - source: source, - generatedLine: mapping.generatedLine, - generatedColumn: mapping.generatedColumn, - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: mapping.name === null ? null : this._names.at(mapping.name) - }; - }, this).forEach(aCallback, context); - }; + if (maxAge && typeof maxAge !== 'number') + throw new TypeError('maxAge must be a number') -/** - * Returns all generated line and column information for the original source, - * line, and column provided. If no column is provided, returns all mappings - * corresponding to a either the line we are searching for or the next - * closest line that has any mappings. Otherwise, returns all mappings - * corresponding to the given line and either the column we are searching for - * or the next closest column that has any offsets. - * - * The only argument is an object with the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number is 1-based. - * - column: Optional. the column number in the original source. - * The column number is 0-based. - * - * and an array of objects is returned, each with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ -SourceMapConsumer.prototype.allGeneratedPositionsFor = - function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { - var line = util.getArg(aArgs, 'line'); + const now = maxAge ? Date.now() : 0 + const len = this[LENGTH_CALCULATOR](value, key) - // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping - // returns the index of the closest mapping less than the needle. By - // setting needle.originalColumn to 0, we thus find the last mapping for - // the given line, provided such a mapping exists. - var needle = { - source: util.getArg(aArgs, 'source'), - originalLine: line, - originalColumn: util.getArg(aArgs, 'column', 0) - }; + if (this[CACHE].has(key)) { + if (len > this[MAX]) { + del(this, this[CACHE].get(key)) + return false + } - needle.source = this._findSourceIndex(needle.source); - if (needle.source < 0) { - return []; + const node = this[CACHE].get(key) + const item = node.value + + // dispose of the old one before overwriting + // split out into 2 ifs for better coverage tracking + if (this[DISPOSE]) { + if (!this[NO_DISPOSE_ON_SET]) + this[DISPOSE](key, item.value) + } + + item.now = now + item.maxAge = maxAge + item.value = value + this[LENGTH] += len - item.length + item.length = len + this.get(key) + trim(this) + return true } - var mappings = []; + const hit = new Entry(key, value, len, now, maxAge) - var index = this._findMapping(needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - binarySearch.LEAST_UPPER_BOUND); - if (index >= 0) { - var mapping = this._originalMappings[index]; + // oversized objects fall out of cache automatically. + if (hit.length > this[MAX]) { + if (this[DISPOSE]) + this[DISPOSE](key, value) - if (aArgs.column === undefined) { - var originalLine = mapping.originalLine; + return false + } - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we found. Since - // mappings are sorted, this is guaranteed to find all mappings for - // the line we found. - while (mapping && mapping.originalLine === originalLine) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); + this[LENGTH] += hit.length + this[LRU_LIST].unshift(hit) + this[CACHE].set(key, this[LRU_LIST].head) + trim(this) + return true + } - mapping = this._originalMappings[++index]; - } - } else { - var originalColumn = mapping.originalColumn; + has (key) { + if (!this[CACHE].has(key)) return false + const hit = this[CACHE].get(key).value + return !isStale(this, hit) + } - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we were searching for. - // Since mappings are sorted, this is guaranteed to find all mappings for - // the line we are searching for. - while (mapping && - mapping.originalLine === line && - mapping.originalColumn == originalColumn) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); + get (key) { + return get(this, key, true) + } - mapping = this._originalMappings[++index]; - } - } - } + peek (key) { + return get(this, key, false) + } - return mappings; - }; + pop () { + const node = this[LRU_LIST].tail + if (!node) + return null -exports.SourceMapConsumer = SourceMapConsumer; + del(this, node) + return node.value + } -/** - * A BasicSourceMapConsumer instance represents a parsed source map which we can - * query for information about the original file positions by giving it a file - * position in the generated source. - * - * The first parameter is the raw source map (either as a JSON string, or - * already parsed to an object). According to the spec, source maps have the - * following attributes: - * - * - version: Which version of the source map spec this map is following. - * - sources: An array of URLs to the original source files. - * - names: An array of identifiers which can be referrenced by individual mappings. - * - sourceRoot: Optional. The URL root from which all sources are relative. - * - sourcesContent: Optional. An array of contents of the original source files. - * - mappings: A string of base64 VLQs which contain the actual mappings. - * - file: Optional. The generated file this source map is associated with. - * - * Here is an example source map, taken from the source map spec[0]: - * - * { - * version : 3, - * file: "out.js", - * sourceRoot : "", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AA,AB;;ABCDE;" - * } - * - * The second parameter, if given, is a string whose value is the URL - * at which the source map was found. This URL is used to compute the - * sources array. - * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# - */ -function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); + del (key) { + del(this, this[CACHE].get(key)) } - var version = util.getArg(sourceMap, 'version'); - var sources = util.getArg(sourceMap, 'sources'); - // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which - // requires the array) to play nice here. - var names = util.getArg(sourceMap, 'names', []); - var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); - var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); - var mappings = util.getArg(sourceMap, 'mappings'); - var file = util.getArg(sourceMap, 'file', null); + load (arr) { + // reset the cache + this.reset() - // Once again, Sass deviates from the spec and supplies the version as a - // string rather than a number, so we use loose equality checking here. - if (version != this._version) { - throw new Error('Unsupported version: ' + version); + const now = Date.now() + // A previous serialized cache has the most recent items first + for (let l = arr.length - 1; l >= 0; l--) { + const hit = arr[l] + const expiresAt = hit.e || 0 + if (expiresAt === 0) + // the item was created without expiration in a non aged cache + this.set(hit.k, hit.v) + else { + const maxAge = expiresAt - now + // dont add already expired items + if (maxAge > 0) { + this.set(hit.k, hit.v, maxAge) + } + } + } } - if (sourceRoot) { - sourceRoot = util.normalize(sourceRoot); + prune () { + this[CACHE].forEach((value, key) => get(this, key, false)) } +} - sources = sources - .map(String) - // Some source maps produce relative source paths like "./foo.js" instead of - // "foo.js". Normalize these first so that future comparisons will succeed. - // See bugzil.la/1090768. - .map(util.normalize) - // Always ensure that absolute sources are internally stored relative to - // the source root, if the source root is absolute. Not doing this would - // be particularly problematic when the source root is a prefix of the - // source (valid, but why??). See github issue #199 and bugzil.la/1188982. - .map(function (source) { - return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) - ? util.relative(sourceRoot, source) - : source; - }); +const get = (self, key, doUse) => { + const node = self[CACHE].get(key) + if (node) { + const hit = node.value + if (isStale(self, hit)) { + del(self, node) + if (!self[ALLOW_STALE]) + return undefined + } else { + if (doUse) { + if (self[UPDATE_AGE_ON_GET]) + node.value.now = Date.now() + self[LRU_LIST].unshiftNode(node) + } + } + return hit.value + } +} - // Pass `true` below to allow duplicate names and sources. While source maps - // are intended to be compressed and deduplicated, the TypeScript compiler - // sometimes generates source maps with duplicates in them. See Github issue - // #72 and bugzil.la/889492. - this._names = ArraySet.fromArray(names.map(String), true); - this._sources = ArraySet.fromArray(sources, true); +const isStale = (self, hit) => { + if (!hit || (!hit.maxAge && !self[MAX_AGE])) + return false - this._absoluteSources = this._sources.toArray().map(function (s) { - return util.computeSourceURL(sourceRoot, s, aSourceMapURL); - }); + const diff = Date.now() - hit.now + return hit.maxAge ? diff > hit.maxAge + : self[MAX_AGE] && (diff > self[MAX_AGE]) +} - this.sourceRoot = sourceRoot; - this.sourcesContent = sourcesContent; - this._mappings = mappings; - this._sourceMapURL = aSourceMapURL; - this.file = file; +const trim = self => { + if (self[LENGTH] > self[MAX]) { + for (let walker = self[LRU_LIST].tail; + self[LENGTH] > self[MAX] && walker !== null;) { + // We know that we're about to delete this one, and also + // what the next least recently used key will be, so just + // go ahead and set it now. + const prev = walker.prev + del(self, walker) + walker = prev + } + } } -BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); -BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; +const del = (self, node) => { + if (node) { + const hit = node.value + if (self[DISPOSE]) + self[DISPOSE](hit.key, hit.value) -/** - * Utility function to find the index of a source. Returns -1 if not - * found. - */ -BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) { - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); + self[LENGTH] -= hit.length + self[CACHE].delete(hit.key) + self[LRU_LIST].removeNode(node) } +} - if (this._sources.has(relativeSource)) { - return this._sources.indexOf(relativeSource); +class Entry { + constructor (key, value, length, now, maxAge) { + this.key = key + this.value = value + this.length = length + this.now = now + this.maxAge = maxAge || 0 } +} - // Maybe aSource is an absolute URL as returned by |sources|. In - // this case we can't simply undo the transform. - var i; - for (i = 0; i < this._absoluteSources.length; ++i) { - if (this._absoluteSources[i] == aSource) { - return i; - } +const forEachStep = (self, fn, node, thisp) => { + let hit = node.value + if (isStale(self, hit)) { + del(self, node) + if (!self[ALLOW_STALE]) + hit = undefined } + if (hit) + fn.call(thisp, hit.value, hit.key, self) +} - return -1; -}; - -/** - * Create a BasicSourceMapConsumer from a SourceMapGenerator. - * - * @param SourceMapGenerator aSourceMap - * The source map that will be consumed. - * @param String aSourceMapURL - * The URL at which the source map can be found (optional) - * @returns BasicSourceMapConsumer - */ -BasicSourceMapConsumer.fromSourceMap = - function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) { - var smc = Object.create(BasicSourceMapConsumer.prototype); +module.exports = LRUCache - var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); - var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); - smc.sourceRoot = aSourceMap._sourceRoot; - smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), - smc.sourceRoot); - smc.file = aSourceMap._file; - smc._sourceMapURL = aSourceMapURL; - smc._absoluteSources = smc._sources.toArray().map(function (s) { - return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); - }); - // Because we are modifying the entries (by converting string sources and - // names to indices into the sources and names ArraySets), we have to make - // a copy of the entry or else bad things happen. Shared mutable state - // strikes again! See github issue #191. +/***/ }), - var generatedMappings = aSourceMap._mappings.toArray().slice(); - var destGeneratedMappings = smc.__generatedMappings = []; - var destOriginalMappings = smc.__originalMappings = []; +/***/ 9380: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - for (var i = 0, length = generatedMappings.length; i < length; i++) { - var srcMapping = generatedMappings[i]; - var destMapping = new Mapping; - destMapping.generatedLine = srcMapping.generatedLine; - destMapping.generatedColumn = srcMapping.generatedColumn; +// Determine if version is greater than all the versions possible in the range. +const outside = __nccwpck_require__(60420) +const gtr = (version, range, options) => outside(version, range, '>', options) +module.exports = gtr - if (srcMapping.source) { - destMapping.source = sources.indexOf(srcMapping.source); - destMapping.originalLine = srcMapping.originalLine; - destMapping.originalColumn = srcMapping.originalColumn; - if (srcMapping.name) { - destMapping.name = names.indexOf(srcMapping.name); - } +/***/ }), - destOriginalMappings.push(destMapping); - } +/***/ 27008: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - destGeneratedMappings.push(destMapping); - } +const Range = __nccwpck_require__(9828) +const intersects = (r1, r2, options) => { + r1 = new Range(r1, options) + r2 = new Range(r2, options) + return r1.intersects(r2, options) +} +module.exports = intersects - quickSort(smc.__originalMappings, util.compareByOriginalPositions); - return smc; - }; +/***/ }), -/** - * The version of the source mapping spec that we are consuming. - */ -BasicSourceMapConsumer.prototype._version = 3; +/***/ 33323: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * The list of original sources. - */ -Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', { - get: function () { - return this._absoluteSources.slice(); - } -}); +const outside = __nccwpck_require__(60420) +// Determine if version is less than all the versions possible in the range +const ltr = (version, range, options) => outside(version, range, '<', options) +module.exports = ltr -/** - * Provide the JIT with a nice shape / hidden class. - */ -function Mapping() { - this.generatedLine = 0; - this.generatedColumn = 0; - this.source = null; - this.originalLine = null; - this.originalColumn = null; - this.name = null; -} -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -BasicSourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - var generatedLine = 1; - var previousGeneratedColumn = 0; - var previousOriginalLine = 0; - var previousOriginalColumn = 0; - var previousSource = 0; - var previousName = 0; - var length = aStr.length; - var index = 0; - var cachedSegments = {}; - var temp = {}; - var originalMappings = []; - var generatedMappings = []; - var mapping, str, segment, end, value; +/***/ }), - while (index < length) { - if (aStr.charAt(index) === ';') { - generatedLine++; - index++; - previousGeneratedColumn = 0; - } - else if (aStr.charAt(index) === ',') { - index++; +/***/ 20579: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const SemVer = __nccwpck_require__(48088) +const Range = __nccwpck_require__(9828) + +const maxSatisfying = (versions, range, options) => { + let max = null + let maxSV = null + let rangeObj = null + try { + rangeObj = new Range(range, options) + } catch (er) { + return null + } + versions.forEach((v) => { + if (rangeObj.test(v)) { + // satisfies(v, range, options) + if (!max || maxSV.compare(v) === -1) { + // compare(max, v, true) + max = v + maxSV = new SemVer(max, options) } - else { - mapping = new Mapping(); - mapping.generatedLine = generatedLine; + } + }) + return max +} +module.exports = maxSatisfying - // Because each offset is encoded relative to the previous one, - // many segments often have the same encoding. We can exploit this - // fact by caching the parsed variable length fields of each segment, - // allowing us to avoid a second parse if we encounter the same - // segment again. - for (end = index; end < length; end++) { - if (this._charIsMappingSeparator(aStr, end)) { - break; - } - } - str = aStr.slice(index, end); - segment = cachedSegments[str]; - if (segment) { - index += str.length; - } else { - segment = []; - while (index < end) { - base64VLQ.decode(aStr, index, temp); - value = temp.value; - index = temp.rest; - segment.push(value); - } +/***/ }), - if (segment.length === 2) { - throw new Error('Found a source, but no line and column'); - } +/***/ 10832: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (segment.length === 3) { - throw new Error('Found a source and line, but no column'); - } +const SemVer = __nccwpck_require__(48088) +const Range = __nccwpck_require__(9828) +const minSatisfying = (versions, range, options) => { + let min = null + let minSV = null + let rangeObj = null + try { + rangeObj = new Range(range, options) + } catch (er) { + return null + } + versions.forEach((v) => { + if (rangeObj.test(v)) { + // satisfies(v, range, options) + if (!min || minSV.compare(v) === 1) { + // compare(min, v, true) + min = v + minSV = new SemVer(min, options) + } + } + }) + return min +} +module.exports = minSatisfying - cachedSegments[str] = segment; - } - // Generated column. - mapping.generatedColumn = previousGeneratedColumn + segment[0]; - previousGeneratedColumn = mapping.generatedColumn; +/***/ }), - if (segment.length > 1) { - // Original source. - mapping.source = previousSource + segment[1]; - previousSource += segment[1]; +/***/ 34179: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // Original line. - mapping.originalLine = previousOriginalLine + segment[2]; - previousOriginalLine = mapping.originalLine; - // Lines are stored 0-based - mapping.originalLine += 1; +const SemVer = __nccwpck_require__(48088) +const Range = __nccwpck_require__(9828) +const gt = __nccwpck_require__(84123) - // Original column. - mapping.originalColumn = previousOriginalColumn + segment[3]; - previousOriginalColumn = mapping.originalColumn; +const minVersion = (range, loose) => { + range = new Range(range, loose) - if (segment.length > 4) { - // Original name. - mapping.name = previousName + segment[4]; - previousName += segment[4]; - } - } + let minver = new SemVer('0.0.0') + if (range.test(minver)) { + return minver + } - generatedMappings.push(mapping); - if (typeof mapping.originalLine === 'number') { - originalMappings.push(mapping); - } + minver = new SemVer('0.0.0-0') + if (range.test(minver)) { + return minver + } + + minver = null + for (let i = 0; i < range.set.length; ++i) { + const comparators = range.set[i] + + let setMin = null + comparators.forEach((comparator) => { + // Clone to avoid manipulating the comparator's semver object. + const compver = new SemVer(comparator.semver.version) + switch (comparator.operator) { + case '>': + if (compver.prerelease.length === 0) { + compver.patch++ + } else { + compver.prerelease.push(0) + } + compver.raw = compver.format() + /* fallthrough */ + case '': + case '>=': + if (!setMin || gt(compver, setMin)) { + setMin = compver + } + break + case '<': + case '<=': + /* Ignore maximum versions */ + break + /* istanbul ignore next */ + default: + throw new Error(`Unexpected operation: ${comparator.operator}`) } + }) + if (setMin && (!minver || gt(minver, setMin))) { + minver = setMin } + } - quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); - this.__generatedMappings = generatedMappings; + if (minver && range.test(minver)) { + return minver + } - quickSort(originalMappings, util.compareByOriginalPositions); - this.__originalMappings = originalMappings; - }; + return null +} +module.exports = minVersion -/** - * Find the mapping that best matches the hypothetical "needle" mapping that - * we are searching for in the given "haystack" of mappings. - */ -BasicSourceMapConsumer.prototype._findMapping = - function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, - aColumnName, aComparator, aBias) { - // To return the position we are searching for, we must first find the - // mapping for the given position and then return the opposite position it - // points to. Because the mappings are sorted, we can use binary search to - // find the best mapping. - if (aNeedle[aLineName] <= 0) { - throw new TypeError('Line must be greater than or equal to 1, got ' - + aNeedle[aLineName]); - } - if (aNeedle[aColumnName] < 0) { - throw new TypeError('Column must be greater than or equal to 0, got ' - + aNeedle[aColumnName]); - } +/***/ }), - return binarySearch.search(aNeedle, aMappings, aComparator, aBias); - }; +/***/ 60420: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * Compute the last column for each generated mapping. The last column is - * inclusive. - */ -BasicSourceMapConsumer.prototype.computeColumnSpans = - function SourceMapConsumer_computeColumnSpans() { - for (var index = 0; index < this._generatedMappings.length; ++index) { - var mapping = this._generatedMappings[index]; +const SemVer = __nccwpck_require__(48088) +const Comparator = __nccwpck_require__(91532) +const { ANY } = Comparator +const Range = __nccwpck_require__(9828) +const satisfies = __nccwpck_require__(6055) +const gt = __nccwpck_require__(84123) +const lt = __nccwpck_require__(80194) +const lte = __nccwpck_require__(77520) +const gte = __nccwpck_require__(15522) - // Mappings do not contain a field for the last generated columnt. We - // can come up with an optimistic estimate, however, by assuming that - // mappings are contiguous (i.e. given two consecutive mappings, the - // first mapping ends where the second one starts). - if (index + 1 < this._generatedMappings.length) { - var nextMapping = this._generatedMappings[index + 1]; +const outside = (version, range, hilo, options) => { + version = new SemVer(version, options) + range = new Range(range, options) - if (mapping.generatedLine === nextMapping.generatedLine) { - mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; - continue; - } - } + let gtfn, ltefn, ltfn, comp, ecomp + switch (hilo) { + case '>': + gtfn = gt + ltefn = lte + ltfn = lt + comp = '>' + ecomp = '>=' + break + case '<': + gtfn = lt + ltefn = gte + ltfn = gt + comp = '<' + ecomp = '<=' + break + default: + throw new TypeError('Must provide a hilo val of "<" or ">"') + } - // The last mapping for each line spans the entire line. - mapping.lastGeneratedColumn = Infinity; - } - }; + // If it satisfies the range it is not outside + if (satisfies(version, range, options)) { + return false + } -/** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. The line number - * is 1-based. - * - column: The column number in the generated source. The column - * number is 0-based. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. The - * line number is 1-based. - * - column: The column number in the original source, or null. The - * column number is 0-based. - * - name: The original identifier, or null. - */ -BasicSourceMapConsumer.prototype.originalPositionFor = - function SourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; + // From now on, variable terms are as if we're in "gtr" mode. + // but note that everything is flipped for the "ltr" function. - var index = this._findMapping( - needle, - this._generatedMappings, - "generatedLine", - "generatedColumn", - util.compareByGeneratedPositionsDeflated, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); + for (let i = 0; i < range.set.length; ++i) { + const comparators = range.set[i] - if (index >= 0) { - var mapping = this._generatedMappings[index]; + let high = null + let low = null - if (mapping.generatedLine === needle.generatedLine) { - var source = util.getArg(mapping, 'source', null); - if (source !== null) { - source = this._sources.at(source); - source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL); - } - var name = util.getArg(mapping, 'name', null); - if (name !== null) { - name = this._names.at(name); - } - return { - source: source, - line: util.getArg(mapping, 'originalLine', null), - column: util.getArg(mapping, 'originalColumn', null), - name: name - }; + comparators.forEach((comparator) => { + if (comparator.semver === ANY) { + comparator = new Comparator('>=0.0.0') } - } - - return { - source: null, - line: null, - column: null, - name: null - }; - }; + high = high || comparator + low = low || comparator + if (gtfn(comparator.semver, high.semver, options)) { + high = comparator + } else if (ltfn(comparator.semver, low.semver, options)) { + low = comparator + } + }) -/** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ -BasicSourceMapConsumer.prototype.hasContentsOfAllSources = - function BasicSourceMapConsumer_hasContentsOfAllSources() { - if (!this.sourcesContent) { - return false; + // If the edge version comparator has a operator then our version + // isn't outside it + if (high.operator === comp || high.operator === ecomp) { + return false } - return this.sourcesContent.length >= this._sources.size() && - !this.sourcesContent.some(function (sc) { return sc == null; }); - }; -/** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ -BasicSourceMapConsumer.prototype.sourceContentFor = - function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - if (!this.sourcesContent) { - return null; + // If the lowest version comparator has an operator and our version + // is less than it then it isn't higher than the range + if ((!low.operator || low.operator === comp) && + ltefn(version, low.semver)) { + return false + } else if (low.operator === ecomp && ltfn(version, low.semver)) { + return false } + } + return true +} - var index = this._findSourceIndex(aSource); - if (index >= 0) { - return this.sourcesContent[index]; - } +module.exports = outside - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); - } - var url; - if (this.sourceRoot != null - && (url = util.urlParse(this.sourceRoot))) { - // XXX: file:// URIs and absolute paths lead to unexpected behavior for - // many users. We can help them out when they expect file:// URIs to - // behave like it would if they were running a local HTTP server. See - // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. - var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); - if (url.scheme == "file" - && this._sources.has(fileUriAbsPath)) { - return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] - } +/***/ }), - if ((!url.path || url.path == "/") - && this._sources.has("/" + relativeSource)) { - return this.sourcesContent[this._sources.indexOf("/" + relativeSource)]; +/***/ 56561: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +// given a set of versions and a range, create a "simplified" range +// that includes the same versions that the original range does +// If the original range is shorter than the simplified one, return that. +const satisfies = __nccwpck_require__(6055) +const compare = __nccwpck_require__(44309) +module.exports = (versions, range, options) => { + const set = [] + let first = null + let prev = null + const v = versions.sort((a, b) => compare(a, b, options)) + for (const version of v) { + const included = satisfies(version, range, options) + if (included) { + prev = version + if (!first) { + first = version + } + } else { + if (prev) { + set.push([first, prev]) } + prev = null + first = null } + } + if (first) { + set.push([first, null]) + } - // This function is used recursively from - // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we - // don't want to throw if we can't find the source - we just want to - // return null, so we provide a flag to exit gracefully. - if (nullOnMissing) { - return null; - } - else { - throw new Error('"' + relativeSource + '" is not in the SourceMap.'); + const ranges = [] + for (const [min, max] of set) { + if (min === max) { + ranges.push(min) + } else if (!max && min === v[0]) { + ranges.push('*') + } else if (!max) { + ranges.push(`>=${min}`) + } else if (min === v[0]) { + ranges.push(`<=${max}`) + } else { + ranges.push(`${min} - ${max}`) } - }; + } + const simplified = ranges.join(' || ') + const original = typeof range.raw === 'string' ? range.raw : String(range) + return simplified.length < original.length ? simplified : range +} -/** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number - * is 1-based. - * - column: The column number in the original source. The column - * number is 0-based. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ -BasicSourceMapConsumer.prototype.generatedPositionFor = - function SourceMapConsumer_generatedPositionFor(aArgs) { - var source = util.getArg(aArgs, 'source'); - source = this._findSourceIndex(source); - if (source < 0) { - return { - line: null, - column: null, - lastColumn: null - }; - } - var needle = { - source: source, - originalLine: util.getArg(aArgs, 'line'), - originalColumn: util.getArg(aArgs, 'column') - }; +/***/ }), - var index = this._findMapping( - needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); +/***/ 7863: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (index >= 0) { - var mapping = this._originalMappings[index]; +const Range = __nccwpck_require__(9828) +const Comparator = __nccwpck_require__(91532) +const { ANY } = Comparator +const satisfies = __nccwpck_require__(6055) +const compare = __nccwpck_require__(44309) - if (mapping.source === needle.source) { - return { - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }; - } - } +// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff: +// - Every simple range `r1, r2, ...` is a null set, OR +// - Every simple range `r1, r2, ...` which is not a null set is a subset of +// some `R1, R2, ...` +// +// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff: +// - If c is only the ANY comparator +// - If C is only the ANY comparator, return true +// - Else if in prerelease mode, return false +// - else replace c with `[>=0.0.0]` +// - If C is only the ANY comparator +// - if in prerelease mode, return true +// - else replace C with `[>=0.0.0]` +// - Let EQ be the set of = comparators in c +// - If EQ is more than one, return true (null set) +// - Let GT be the highest > or >= comparator in c +// - Let LT be the lowest < or <= comparator in c +// - If GT and LT, and GT.semver > LT.semver, return true (null set) +// - If any C is a = range, and GT or LT are set, return false +// - If EQ +// - If GT, and EQ does not satisfy GT, return true (null set) +// - If LT, and EQ does not satisfy LT, return true (null set) +// - If EQ satisfies every C, return true +// - Else return false +// - If GT +// - If GT.semver is lower than any > or >= comp in C, return false +// - If GT is >=, and GT.semver does not satisfy every C, return false +// - If GT.semver has a prerelease, and not in prerelease mode +// - If no C has a prerelease and the GT.semver tuple, return false +// - If LT +// - If LT.semver is greater than any < or <= comp in C, return false +// - If LT is <=, and LT.semver does not satisfy every C, return false +// - If GT.semver has a prerelease, and not in prerelease mode +// - If no C has a prerelease and the LT.semver tuple, return false +// - Else return true - return { - line: null, - column: null, - lastColumn: null - }; - }; +const subset = (sub, dom, options = {}) => { + if (sub === dom) { + return true + } -__webpack_unused_export__ = BasicSourceMapConsumer; + sub = new Range(sub, options) + dom = new Range(dom, options) + let sawNonNull = false -/** - * An IndexedSourceMapConsumer instance represents a parsed source map which - * we can query for information. It differs from BasicSourceMapConsumer in - * that it takes "indexed" source maps (i.e. ones with a "sections" field) as - * input. - * - * The first parameter is a raw source map (either as a JSON string, or already - * parsed to an object). According to the spec for indexed source maps, they - * have the following attributes: - * - * - version: Which version of the source map spec this map is following. - * - file: Optional. The generated file this source map is associated with. - * - sections: A list of section definitions. - * - * Each value under the "sections" field has two fields: - * - offset: The offset into the original specified at which this section - * begins to apply, defined as an object with a "line" and "column" - * field. - * - map: A source map definition. This source map could also be indexed, - * but doesn't have to be. - * - * Instead of the "map" field, it's also possible to have a "url" field - * specifying a URL to retrieve a source map from, but that's currently - * unsupported. - * - * Here's an example source map, taken from the source map spec[0], but - * modified to omit a section which uses the "url" field. - * - * { - * version : 3, - * file: "app.js", - * sections: [{ - * offset: {line:100, column:10}, - * map: { - * version : 3, - * file: "section.js", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AAAA,E;;ABCDE;" - * } - * }], - * } - * - * The second parameter, if given, is a string whose value is the URL - * at which the source map was found. This URL is used to compute the - * sources array. - * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt - */ -function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); + OUTER: for (const simpleSub of sub.set) { + for (const simpleDom of dom.set) { + const isSub = simpleSubset(simpleSub, simpleDom, options) + sawNonNull = sawNonNull || isSub !== null + if (isSub) { + continue OUTER + } + } + // the null set is a subset of everything, but null simple ranges in + // a complex range should be ignored. so if we saw a non-null range, + // then we know this isn't a subset, but if EVERY simple range was null, + // then it is a subset. + if (sawNonNull) { + return false + } } + return true +} - var version = util.getArg(sourceMap, 'version'); - var sections = util.getArg(sourceMap, 'sections'); +const minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')] +const minimumVersion = [new Comparator('>=0.0.0')] - if (version != this._version) { - throw new Error('Unsupported version: ' + version); +const simpleSubset = (sub, dom, options) => { + if (sub === dom) { + return true } - this._sources = new ArraySet(); - this._names = new ArraySet(); - - var lastOffset = { - line: -1, - column: 0 - }; - this._sections = sections.map(function (s) { - if (s.url) { - // The url field will require support for asynchronicity. - // See https://github.com/mozilla/source-map/issues/16 - throw new Error('Support for url field in sections not implemented.'); + if (sub.length === 1 && sub[0].semver === ANY) { + if (dom.length === 1 && dom[0].semver === ANY) { + return true + } else if (options.includePrerelease) { + sub = minimumVersionWithPreRelease + } else { + sub = minimumVersion } - var offset = util.getArg(s, 'offset'); - var offsetLine = util.getArg(offset, 'line'); - var offsetColumn = util.getArg(offset, 'column'); + } - if (offsetLine < lastOffset.line || - (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) { - throw new Error('Section offsets must be ordered and non-overlapping.'); + if (dom.length === 1 && dom[0].semver === ANY) { + if (options.includePrerelease) { + return true + } else { + dom = minimumVersion } - lastOffset = offset; + } - return { - generatedOffset: { - // The offset fields are 0-based, but we use 1-based indices when - // encoding/decoding from VLQ. - generatedLine: offsetLine + 1, - generatedColumn: offsetColumn + 1 - }, - consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL) + const eqSet = new Set() + let gt, lt + for (const c of sub) { + if (c.operator === '>' || c.operator === '>=') { + gt = higherGT(gt, c, options) + } else if (c.operator === '<' || c.operator === '<=') { + lt = lowerLT(lt, c, options) + } else { + eqSet.add(c.semver) } - }); -} - -IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); -IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; + } -/** - * The version of the source mapping spec that we are consuming. - */ -IndexedSourceMapConsumer.prototype._version = 3; + if (eqSet.size > 1) { + return null + } -/** - * The list of original sources. - */ -Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', { - get: function () { - var sources = []; - for (var i = 0; i < this._sections.length; i++) { - for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { - sources.push(this._sections[i].consumer.sources[j]); - } + let gtltComp + if (gt && lt) { + gtltComp = compare(gt.semver, lt.semver, options) + if (gtltComp > 0) { + return null + } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) { + return null } - return sources; } -}); - -/** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. The line number - * is 1-based. - * - column: The column number in the generated source. The column - * number is 0-based. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. The - * line number is 1-based. - * - column: The column number in the original source, or null. The - * column number is 0-based. - * - name: The original identifier, or null. - */ -IndexedSourceMapConsumer.prototype.originalPositionFor = - function IndexedSourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; - - // Find the section containing the generated position we're trying to map - // to an original position. - var sectionIndex = binarySearch.search(needle, this._sections, - function(needle, section) { - var cmp = needle.generatedLine - section.generatedOffset.generatedLine; - if (cmp) { - return cmp; - } - return (needle.generatedColumn - - section.generatedOffset.generatedColumn); - }); - var section = this._sections[sectionIndex]; + // will iterate one or zero times + for (const eq of eqSet) { + if (gt && !satisfies(eq, String(gt), options)) { + return null + } - if (!section) { - return { - source: null, - line: null, - column: null, - name: null - }; + if (lt && !satisfies(eq, String(lt), options)) { + return null } - return section.consumer.originalPositionFor({ - line: needle.generatedLine - - (section.generatedOffset.generatedLine - 1), - column: needle.generatedColumn - - (section.generatedOffset.generatedLine === needle.generatedLine - ? section.generatedOffset.generatedColumn - 1 - : 0), - bias: aArgs.bias - }); - }; + for (const c of dom) { + if (!satisfies(eq, String(c), options)) { + return false + } + } -/** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ -IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = - function IndexedSourceMapConsumer_hasContentsOfAllSources() { - return this._sections.every(function (s) { - return s.consumer.hasContentsOfAllSources(); - }); - }; + return true + } -/** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ -IndexedSourceMapConsumer.prototype.sourceContentFor = - function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; + let higher, lower + let hasDomLT, hasDomGT + // if the subset has a prerelease, we need a comparator in the superset + // with the same tuple and a prerelease, or it's not a subset + let needDomLTPre = lt && + !options.includePrerelease && + lt.semver.prerelease.length ? lt.semver : false + let needDomGTPre = gt && + !options.includePrerelease && + gt.semver.prerelease.length ? gt.semver : false + // exception: <1.2.3-0 is the same as <1.2.3 + if (needDomLTPre && needDomLTPre.prerelease.length === 1 && + lt.operator === '<' && needDomLTPre.prerelease[0] === 0) { + needDomLTPre = false + } - var content = section.consumer.sourceContentFor(aSource, true); - if (content) { - return content; + for (const c of dom) { + hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>=' + hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<=' + if (gt) { + if (needDomGTPre) { + if (c.semver.prerelease && c.semver.prerelease.length && + c.semver.major === needDomGTPre.major && + c.semver.minor === needDomGTPre.minor && + c.semver.patch === needDomGTPre.patch) { + needDomGTPre = false + } + } + if (c.operator === '>' || c.operator === '>=') { + higher = higherGT(gt, c, options) + if (higher === c && higher !== gt) { + return false + } + } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) { + return false } } - if (nullOnMissing) { - return null; - } - else { - throw new Error('"' + aSource + '" is not in the SourceMap.'); - } - }; - -/** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number - * is 1-based. - * - column: The column number in the original source. The column - * number is 0-based. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ -IndexedSourceMapConsumer.prototype.generatedPositionFor = - function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - - // Only consider this section if the requested source is in the list of - // sources of the consumer. - if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) { - continue; + if (lt) { + if (needDomLTPre) { + if (c.semver.prerelease && c.semver.prerelease.length && + c.semver.major === needDomLTPre.major && + c.semver.minor === needDomLTPre.minor && + c.semver.patch === needDomLTPre.patch) { + needDomLTPre = false + } } - var generatedPosition = section.consumer.generatedPositionFor(aArgs); - if (generatedPosition) { - var ret = { - line: generatedPosition.line + - (section.generatedOffset.generatedLine - 1), - column: generatedPosition.column + - (section.generatedOffset.generatedLine === generatedPosition.line - ? section.generatedOffset.generatedColumn - 1 - : 0) - }; - return ret; + if (c.operator === '<' || c.operator === '<=') { + lower = lowerLT(lt, c, options) + if (lower === c && lower !== lt) { + return false + } + } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) { + return false } } + if (!c.operator && (lt || gt) && gtltComp !== 0) { + return false + } + } - return { - line: null, - column: null - }; - }; + // if there was a < or >, and nothing in the dom, then must be false + // UNLESS it was limited by another range in the other direction. + // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0 + if (gt && hasDomLT && !lt && gtltComp !== 0) { + return false + } -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -IndexedSourceMapConsumer.prototype._parseMappings = - function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { - this.__generatedMappings = []; - this.__originalMappings = []; - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - var sectionMappings = section.consumer._generatedMappings; - for (var j = 0; j < sectionMappings.length; j++) { - var mapping = sectionMappings[j]; + if (lt && hasDomGT && !gt && gtltComp !== 0) { + return false + } - var source = section.consumer._sources.at(mapping.source); - source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL); - this._sources.add(source); - source = this._sources.indexOf(source); + // we needed a prerelease range in a specific tuple, but didn't get one + // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0, + // because it includes prereleases in the 1.2.3 tuple + if (needDomGTPre || needDomLTPre) { + return false + } - var name = null; - if (mapping.name) { - name = section.consumer._names.at(mapping.name); - this._names.add(name); - name = this._names.indexOf(name); - } + return true +} - // The mappings coming from the consumer for the section have - // generated positions relative to the start of the section, so we - // need to offset them to be relative to the start of the concatenated - // generated file. - var adjustedMapping = { - source: source, - generatedLine: mapping.generatedLine + - (section.generatedOffset.generatedLine - 1), - generatedColumn: mapping.generatedColumn + - (section.generatedOffset.generatedLine === mapping.generatedLine - ? section.generatedOffset.generatedColumn - 1 - : 0), - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: name - }; - - this.__generatedMappings.push(adjustedMapping); - if (typeof adjustedMapping.originalLine === 'number') { - this.__originalMappings.push(adjustedMapping); - } - } - } +// >=1.2.3 is lower than >1.2.3 +const higherGT = (a, b, options) => { + if (!a) { + return b + } + const comp = compare(a.semver, b.semver, options) + return comp > 0 ? a + : comp < 0 ? b + : b.operator === '>' && a.operator === '>=' ? b + : a +} - quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); - quickSort(this.__originalMappings, util.compareByOriginalPositions); - }; +// <=1.2.3 is higher than <1.2.3 +const lowerLT = (a, b, options) => { + if (!a) { + return b + } + const comp = compare(a.semver, b.semver, options) + return comp < 0 ? a + : comp > 0 ? b + : b.operator === '<' && a.operator === '<=' ? b + : a +} -__webpack_unused_export__ = IndexedSourceMapConsumer; +module.exports = subset /***/ }), -/***/ 69425: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ 52706: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ +const Range = __nccwpck_require__(9828) -var base64VLQ = __nccwpck_require__(10975); -var util = __nccwpck_require__(12344); -var ArraySet = (__nccwpck_require__(26375)/* .ArraySet */ .I); -var MappingList = (__nccwpck_require__(86817)/* .MappingList */ .H); +// Mostly just for testing and legacy API reasons +const toComparators = (range, options) => + new Range(range, options).set + .map(comp => comp.map(c => c.value).join(' ').trim().split(' ')) -/** - * An instance of the SourceMapGenerator represents a source map which is - * being built incrementally. You may pass an object with the following - * properties: - * - * - file: The filename of the generated source. - * - sourceRoot: A root for all relative URLs in this source map. - */ -function SourceMapGenerator(aArgs) { - if (!aArgs) { - aArgs = {}; +module.exports = toComparators + + +/***/ }), + +/***/ 2098: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const Range = __nccwpck_require__(9828) +const validRange = (range, options) => { + try { + // Return '*' instead of '' so that truthiness works. + // This will throw if it's invalid anyway + return new Range(range, options).range || '*' + } catch (er) { + return null } - this._file = util.getArg(aArgs, 'file', null); - this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); - this._skipValidation = util.getArg(aArgs, 'skipValidation', false); - this._sources = new ArraySet(); - this._names = new ArraySet(); - this._mappings = new MappingList(); - this._sourcesContents = null; } +module.exports = validRange -SourceMapGenerator.prototype._version = 3; -/** - * Creates a new SourceMapGenerator based on a SourceMapConsumer - * - * @param aSourceMapConsumer The SourceMap. - */ -SourceMapGenerator.fromSourceMap = - function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { - var sourceRoot = aSourceMapConsumer.sourceRoot; - var generator = new SourceMapGenerator({ - file: aSourceMapConsumer.file, - sourceRoot: sourceRoot - }); - aSourceMapConsumer.eachMapping(function (mapping) { - var newMapping = { - generated: { - line: mapping.generatedLine, - column: mapping.generatedColumn - } - }; +/***/ }), - if (mapping.source != null) { - newMapping.source = mapping.source; - if (sourceRoot != null) { - newMapping.source = util.relative(sourceRoot, newMapping.source); - } +/***/ 45123: +/***/ ((module) => { - newMapping.original = { - line: mapping.originalLine, - column: mapping.originalColumn - }; +module.exports = [ + 'cat', + 'cd', + 'chmod', + 'cp', + 'dirs', + 'echo', + 'exec', + 'find', + 'grep', + 'head', + 'ln', + 'ls', + 'mkdir', + 'mv', + 'pwd', + 'rm', + 'sed', + 'set', + 'sort', + 'tail', + 'tempdir', + 'test', + 'to', + 'toEnd', + 'touch', + 'uniq', + 'which', +]; - if (mapping.name != null) { - newMapping.name = mapping.name; - } - } - generator.addMapping(newMapping); - }); - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var sourceRelative = sourceFile; - if (sourceRoot !== null) { - sourceRelative = util.relative(sourceRoot, sourceFile); - } +/***/ }), - if (!generator._sources.has(sourceRelative)) { - generator._sources.add(sourceRelative); - } +/***/ 33516: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - generator.setSourceContent(sourceFile, content); - } - }); - return generator; - }; +// +// ShellJS +// Unix shell commands on top of Node's API +// +// Copyright (c) 2012 Artur Adib +// http://github.com/shelljs/shelljs +// -/** - * Add a single mapping from original source line and column to the generated - * source's line and column for this source map being created. The mapping - * object should have the following properties: - * - * - generated: An object with the generated line and column positions. - * - original: An object with the original line and column positions. - * - source: The original source file (relative to the sourceRoot). - * - name: An optional original token name for this mapping. - */ -SourceMapGenerator.prototype.addMapping = - function SourceMapGenerator_addMapping(aArgs) { - var generated = util.getArg(aArgs, 'generated'); - var original = util.getArg(aArgs, 'original', null); - var source = util.getArg(aArgs, 'source', null); - var name = util.getArg(aArgs, 'name', null); +function __ncc_wildcard$0 (arg) { + if (arg === "cat.js" || arg === "cat") return __nccwpck_require__(30271); + else if (arg === "cd.js" || arg === "cd") return __nccwpck_require__(42051); + else if (arg === "chmod.js" || arg === "chmod") return __nccwpck_require__(24975); + else if (arg === "common.js" || arg === "common") return __nccwpck_require__(53687); + else if (arg === "cp.js" || arg === "cp") return __nccwpck_require__(34932); + else if (arg === "dirs.js" || arg === "dirs") return __nccwpck_require__(41178); + else if (arg === "echo.js" || arg === "echo") return __nccwpck_require__(10243); + else if (arg === "error.js" || arg === "error") return __nccwpck_require__(10232); + else if (arg === "exec-child.js" || arg === "exec-child") return __nccwpck_require__(69607); + else if (arg === "exec.js" || arg === "exec") return __nccwpck_require__(10896); + else if (arg === "find.js" || arg === "find") return __nccwpck_require__(47838); + else if (arg === "grep.js" || arg === "grep") return __nccwpck_require__(17417); + else if (arg === "head.js" || arg === "head") return __nccwpck_require__(6613); + else if (arg === "ln.js" || arg === "ln") return __nccwpck_require__(15787); + else if (arg === "ls.js" || arg === "ls") return __nccwpck_require__(35561); + else if (arg === "mkdir.js" || arg === "mkdir") return __nccwpck_require__(72695); + else if (arg === "mv.js" || arg === "mv") return __nccwpck_require__(39849); + else if (arg === "popd.js" || arg === "popd") return __nccwpck_require__(50227); + else if (arg === "pushd.js" || arg === "pushd") return __nccwpck_require__(44177); + else if (arg === "pwd.js" || arg === "pwd") return __nccwpck_require__(58553); + else if (arg === "rm.js" || arg === "rm") return __nccwpck_require__(22830); + else if (arg === "sed.js" || arg === "sed") return __nccwpck_require__(25899); + else if (arg === "set.js" || arg === "set") return __nccwpck_require__(11411); + else if (arg === "sort.js" || arg === "sort") return __nccwpck_require__(72116); + else if (arg === "tail.js" || arg === "tail") return __nccwpck_require__(42284); + else if (arg === "tempdir.js" || arg === "tempdir") return __nccwpck_require__(76150); + else if (arg === "test.js" || arg === "test") return __nccwpck_require__(79723); + else if (arg === "to.js" || arg === "to") return __nccwpck_require__(71961); + else if (arg === "toEnd.js" || arg === "toEnd") return __nccwpck_require__(33736); + else if (arg === "touch.js" || arg === "touch") return __nccwpck_require__(28358); + else if (arg === "uniq.js" || arg === "uniq") return __nccwpck_require__(77286); + else if (arg === "which.js" || arg === "which") return __nccwpck_require__(64766); +} +var common = __nccwpck_require__(53687); - if (!this._skipValidation) { - this._validateMapping(generated, original, source, name); - } +//@ +//@ All commands run synchronously, unless otherwise stated. +//@ All commands accept standard bash globbing characters (`*`, `?`, etc.), +//@ compatible with the [node `glob` module](https://github.com/isaacs/node-glob). +//@ +//@ For less-commonly used commands and features, please check out our [wiki +//@ page](https://github.com/shelljs/shelljs/wiki). +//@ - if (source != null) { - source = String(source); - if (!this._sources.has(source)) { - this._sources.add(source); - } - } +// Include the docs for all the default commands +//@commands - if (name != null) { - name = String(name); - if (!this._names.has(name)) { - this._names.add(name); - } - } +// Load all default commands +(__nccwpck_require__(45123).forEach)(function (command) { + __ncc_wildcard$0(command); +}); - this._mappings.add({ - generatedLine: generated.line, - generatedColumn: generated.column, - originalLine: original != null && original.line, - originalColumn: original != null && original.column, - source: source, - name: name - }); - }; +//@ +//@ ### exit(code) +//@ +//@ Exits the current process with the given exit `code`. +exports.exit = process.exit; -/** - * Set the source content for a source file. - */ -SourceMapGenerator.prototype.setSourceContent = - function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { - var source = aSourceFile; - if (this._sourceRoot != null) { - source = util.relative(this._sourceRoot, source); - } +//@include ./src/error +exports.error = __nccwpck_require__(10232); - if (aSourceContent != null) { - // Add the source content to the _sourcesContents map. - // Create a new _sourcesContents map if the property is null. - if (!this._sourcesContents) { - this._sourcesContents = Object.create(null); - } - this._sourcesContents[util.toSetString(source)] = aSourceContent; - } else if (this._sourcesContents) { - // Remove the source file from the _sourcesContents map. - // If the _sourcesContents map is empty, set the property to null. - delete this._sourcesContents[util.toSetString(source)]; - if (Object.keys(this._sourcesContents).length === 0) { - this._sourcesContents = null; - } - } - }; +//@include ./src/common +exports.ShellString = common.ShellString; -/** - * Applies the mappings of a sub-source-map for a specific source file to the - * source map being generated. Each mapping to the supplied source file is - * rewritten using the supplied source map. Note: The resolution for the - * resulting mappings is the minimium of this map and the supplied map. - * - * @param aSourceMapConsumer The source map to be applied. - * @param aSourceFile Optional. The filename of the source file. - * If omitted, SourceMapConsumer's file property will be used. - * @param aSourceMapPath Optional. The dirname of the path to the source map - * to be applied. If relative, it is relative to the SourceMapConsumer. - * This parameter is needed when the two source maps aren't in the same - * directory, and the source map to be applied contains relative source - * paths. If so, those relative source paths need to be rewritten - * relative to the SourceMapGenerator. - */ -SourceMapGenerator.prototype.applySourceMap = - function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { - var sourceFile = aSourceFile; - // If aSourceFile is omitted, we will use the file property of the SourceMap - if (aSourceFile == null) { - if (aSourceMapConsumer.file == null) { - throw new Error( - 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + - 'or the source map\'s "file" property. Both were omitted.' - ); - } - sourceFile = aSourceMapConsumer.file; - } - var sourceRoot = this._sourceRoot; - // Make "sourceFile" relative if an absolute Url is passed. - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - // Applying the SourceMap can add and remove items from the sources and - // the names array. - var newSources = new ArraySet(); - var newNames = new ArraySet(); +//@ +//@ ### env['VAR_NAME'] +//@ +//@ Object containing environment variables (both getter and setter). Shortcut +//@ to `process.env`. +exports.env = process.env; - // Find mappings for the "sourceFile" - this._mappings.unsortedForEach(function (mapping) { - if (mapping.source === sourceFile && mapping.originalLine != null) { - // Check if it can be mapped by the source map, then update the mapping. - var original = aSourceMapConsumer.originalPositionFor({ - line: mapping.originalLine, - column: mapping.originalColumn - }); - if (original.source != null) { - // Copy mapping - mapping.source = original.source; - if (aSourceMapPath != null) { - mapping.source = util.join(aSourceMapPath, mapping.source) - } - if (sourceRoot != null) { - mapping.source = util.relative(sourceRoot, mapping.source); - } - mapping.originalLine = original.line; - mapping.originalColumn = original.column; - if (original.name != null) { - mapping.name = original.name; - } - } - } +//@ +//@ ### Pipes +//@ +//@ Examples: +//@ +//@ ```javascript +//@ grep('foo', 'file1.txt', 'file2.txt').sed(/o/g, 'a').to('output.txt'); +//@ echo('files with o\'s in the name:\n' + ls().grep('o')); +//@ cat('test.js').exec('node'); // pipe to exec() call +//@ ``` +//@ +//@ Commands can send their output to another command in a pipe-like fashion. +//@ `sed`, `grep`, `cat`, `exec`, `to`, and `toEnd` can appear on the right-hand +//@ side of a pipe. Pipes can be chained. - var source = mapping.source; - if (source != null && !newSources.has(source)) { - newSources.add(source); - } +//@ +//@ ## Configuration +//@ - var name = mapping.name; - if (name != null && !newNames.has(name)) { - newNames.add(name); - } +exports.config = common.config; - }, this); - this._sources = newSources; - this._names = newNames; +//@ +//@ ### config.silent +//@ +//@ Example: +//@ +//@ ```javascript +//@ var sh = require('shelljs'); +//@ var silentState = sh.config.silent; // save old silent state +//@ sh.config.silent = true; +//@ /* ... */ +//@ sh.config.silent = silentState; // restore old silent state +//@ ``` +//@ +//@ Suppresses all command output if `true`, except for `echo()` calls. +//@ Default is `false`. - // Copy sourcesContents of applied map. - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aSourceMapPath != null) { - sourceFile = util.join(aSourceMapPath, sourceFile); - } - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - this.setSourceContent(sourceFile, content); - } - }, this); - }; +//@ +//@ ### config.fatal +//@ +//@ Example: +//@ +//@ ```javascript +//@ require('shelljs/global'); +//@ config.fatal = true; // or set('-e'); +//@ cp('this_file_does_not_exist', '/dev/null'); // throws Error here +//@ /* more commands... */ +//@ ``` +//@ +//@ If `true`, the script will throw a Javascript error when any shell.js +//@ command encounters an error. Default is `false`. This is analogous to +//@ Bash's `set -e`. -/** - * A mapping can have one of the three levels of data: - * - * 1. Just the generated position. - * 2. The Generated position, original position, and original source. - * 3. Generated and original position, original source, as well as a name - * token. - * - * To maintain consistency, we validate that any new mapping being added falls - * in to one of these categories. - */ -SourceMapGenerator.prototype._validateMapping = - function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, - aName) { - // When aOriginal is truthy but has empty values for .line and .column, - // it is most likely a programmer error. In this case we throw a very - // specific error message to try to guide them the right way. - // For example: https://github.com/Polymer/polymer-bundler/pull/519 - if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') { - throw new Error( - 'original.line and original.column are not numbers -- you probably meant to omit ' + - 'the original mapping entirely and only map the generated position. If so, pass ' + - 'null for the original mapping instead of an object with empty or null values.' - ); - } +//@ +//@ ### config.verbose +//@ +//@ Example: +//@ +//@ ```javascript +//@ config.verbose = true; // or set('-v'); +//@ cd('dir/'); +//@ rm('-rf', 'foo.txt', 'bar.txt'); +//@ exec('echo hello'); +//@ ``` +//@ +//@ Will print each command as follows: +//@ +//@ ``` +//@ cd dir/ +//@ rm -rf foo.txt bar.txt +//@ exec echo hello +//@ ``` - if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aGenerated.line > 0 && aGenerated.column >= 0 - && !aOriginal && !aSource && !aName) { - // Case 1. - return; - } - else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aOriginal && 'line' in aOriginal && 'column' in aOriginal - && aGenerated.line > 0 && aGenerated.column >= 0 - && aOriginal.line > 0 && aOriginal.column >= 0 - && aSource) { - // Cases 2 and 3. - return; - } - else { - throw new Error('Invalid mapping: ' + JSON.stringify({ - generated: aGenerated, - source: aSource, - original: aOriginal, - name: aName - })); - } - }; +//@ +//@ ### config.globOptions +//@ +//@ Example: +//@ +//@ ```javascript +//@ config.globOptions = {nodir: true}; +//@ ``` +//@ +//@ Use this value for calls to `glob.sync()` instead of the default options. -/** - * Serialize the accumulated mappings in to the stream of base 64 VLQs - * specified by the source map format. - */ -SourceMapGenerator.prototype._serializeMappings = - function SourceMapGenerator_serializeMappings() { - var previousGeneratedColumn = 0; - var previousGeneratedLine = 1; - var previousOriginalColumn = 0; - var previousOriginalLine = 0; - var previousName = 0; - var previousSource = 0; - var result = ''; - var next; - var mapping; - var nameIdx; - var sourceIdx; +//@ +//@ ### config.reset() +//@ +//@ Example: +//@ +//@ ```javascript +//@ var shell = require('shelljs'); +//@ // Make changes to shell.config, and do stuff... +//@ /* ... */ +//@ shell.config.reset(); // reset to original state +//@ // Do more stuff, but with original settings +//@ /* ... */ +//@ ``` +//@ +//@ Reset `shell.config` to the defaults: +//@ +//@ ```javascript +//@ { +//@ fatal: false, +//@ globOptions: {}, +//@ maxdepth: 255, +//@ noglob: false, +//@ silent: false, +//@ verbose: false, +//@ } +//@ ``` - var mappings = this._mappings.toArray(); - for (var i = 0, len = mappings.length; i < len; i++) { - mapping = mappings[i]; - next = '' - if (mapping.generatedLine !== previousGeneratedLine) { - previousGeneratedColumn = 0; - while (mapping.generatedLine !== previousGeneratedLine) { - next += ';'; - previousGeneratedLine++; - } - } - else { - if (i > 0) { - if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { - continue; - } - next += ','; - } - } +/***/ }), - next += base64VLQ.encode(mapping.generatedColumn - - previousGeneratedColumn); - previousGeneratedColumn = mapping.generatedColumn; +/***/ 30271: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (mapping.source != null) { - sourceIdx = this._sources.indexOf(mapping.source); - next += base64VLQ.encode(sourceIdx - previousSource); - previousSource = sourceIdx; +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); - // lines are stored 0-based in SourceMap spec version 3 - next += base64VLQ.encode(mapping.originalLine - 1 - - previousOriginalLine); - previousOriginalLine = mapping.originalLine - 1; +common.register('cat', _cat, { + canReceivePipe: true, + cmdOptions: { + 'n': 'number', + }, +}); - next += base64VLQ.encode(mapping.originalColumn - - previousOriginalColumn); - previousOriginalColumn = mapping.originalColumn; +//@ +//@ ### cat([options,] file [, file ...]) +//@ ### cat([options,] file_array) +//@ +//@ Available options: +//@ +//@ + `-n`: number all output lines +//@ +//@ Examples: +//@ +//@ ```javascript +//@ var str = cat('file*.txt'); +//@ var str = cat('file1', 'file2'); +//@ var str = cat(['file1', 'file2']); // same as above +//@ ``` +//@ +//@ Returns a string containing the given file, or a concatenated string +//@ containing the files if more than one file is given (a new line character is +//@ introduced between each file). +function _cat(options, files) { + var cat = common.readFromPipe(); - if (mapping.name != null) { - nameIdx = this._names.indexOf(mapping.name); - next += base64VLQ.encode(nameIdx - previousName); - previousName = nameIdx; - } - } + if (!files && !cat) common.error('no paths given'); - result += next; + files = [].slice.call(arguments, 1); + + files.forEach(function (file) { + if (!fs.existsSync(file)) { + common.error('no such file or directory: ' + file); + } else if (common.statFollowLinks(file).isDirectory()) { + common.error(file + ': Is a directory'); } - return result; - }; + cat += fs.readFileSync(file, 'utf8'); + }); -SourceMapGenerator.prototype._generateSourcesContent = - function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { - return aSources.map(function (source) { - if (!this._sourcesContents) { - return null; - } - if (aSourceRoot != null) { - source = util.relative(aSourceRoot, source); - } - var key = util.toSetString(source); - return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) - ? this._sourcesContents[key] - : null; - }, this); - }; + if (options.number) { + cat = addNumbers(cat); + } -/** - * Externalize the source map. - */ -SourceMapGenerator.prototype.toJSON = - function SourceMapGenerator_toJSON() { - var map = { - version: this._version, - sources: this._sources.toArray(), - names: this._names.toArray(), - mappings: this._serializeMappings() - }; - if (this._file != null) { - map.file = this._file; - } - if (this._sourceRoot != null) { - map.sourceRoot = this._sourceRoot; - } - if (this._sourcesContents) { - map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); - } + return cat; +} +module.exports = _cat; - return map; - }; +function addNumbers(cat) { + var lines = cat.split('\n'); + var lastLine = lines.pop(); -/** - * Render the source map being generated to a string. - */ -SourceMapGenerator.prototype.toString = - function SourceMapGenerator_toString() { - return JSON.stringify(this.toJSON()); - }; + lines = lines.map(function (line, i) { + return numberedLine(i + 1, line); + }); -exports.h = SourceMapGenerator; + if (lastLine.length) { + lastLine = numberedLine(lines.length + 1, lastLine); + } + lines.push(lastLine); + return lines.join('\n'); +} -/***/ }), +function numberedLine(n, line) { + // GNU cat use six pad start number + tab. See http://lingrok.org/xref/coreutils/src/cat.c#57 + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart + var number = (' ' + n).slice(-6) + '\t'; + return number + line; +} -/***/ 92616: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var __webpack_unused_export__; -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ +/***/ }), -var SourceMapGenerator = (__nccwpck_require__(69425)/* .SourceMapGenerator */ .h); -var util = __nccwpck_require__(12344); +/***/ 42051: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other -// operating systems these days (capturing the result). -var REGEX_NEWLINE = /(\r?\n)/; +var os = __nccwpck_require__(22037); +var common = __nccwpck_require__(53687); -// Newline character code for charCodeAt() comparisons -var NEWLINE_CODE = 10; +common.register('cd', _cd, {}); -// Private symbol for identifying `SourceNode`s when multiple versions of -// the source-map library are loaded. This MUST NOT CHANGE across -// versions! -var isSourceNode = "$$$isSourceNode$$$"; +//@ +//@ ### cd([dir]) +//@ +//@ Changes to directory `dir` for the duration of the script. Changes to home +//@ directory if no argument is supplied. +function _cd(options, dir) { + if (!dir) dir = os.homedir(); -/** - * SourceNodes provide a way to abstract over interpolating/concatenating - * snippets of generated JavaScript source code while maintaining the line and - * column information associated with the original source code. - * - * @param aLine The original line number. - * @param aColumn The original column number. - * @param aSource The original source's filename. - * @param aChunks Optional. An array of strings which are snippets of - * generated JS, or other SourceNodes. - * @param aName The original identifier. - */ -function SourceNode(aLine, aColumn, aSource, aChunks, aName) { - this.children = []; - this.sourceContents = {}; - this.line = aLine == null ? null : aLine; - this.column = aColumn == null ? null : aColumn; - this.source = aSource == null ? null : aSource; - this.name = aName == null ? null : aName; - this[isSourceNode] = true; - if (aChunks != null) this.add(aChunks); + if (dir === '-') { + if (!process.env.OLDPWD) { + common.error('could not find previous directory'); + } else { + dir = process.env.OLDPWD; + } + } + + try { + var curDir = process.cwd(); + process.chdir(dir); + process.env.OLDPWD = curDir; + } catch (e) { + // something went wrong, let's figure out the error + var err; + try { + common.statFollowLinks(dir); // if this succeeds, it must be some sort of file + err = 'not a directory: ' + dir; + } catch (e2) { + err = 'no such file or directory: ' + dir; + } + if (err) common.error(err); + } + return ''; } +module.exports = _cd; -/** - * Creates a SourceNode from generated code and a SourceMapConsumer. - * - * @param aGeneratedCode The generated code - * @param aSourceMapConsumer The SourceMap for the generated code - * @param aRelativePath Optional. The path that relative sources in the - * SourceMapConsumer should be relative to. - */ -SourceNode.fromStringWithSourceMap = - function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { - // The SourceNode we want to fill with the generated code - // and the SourceMap - var node = new SourceNode(); - // All even indices of this array are one line of the generated code, - // while all odd indices are the newlines between two adjacent lines - // (since `REGEX_NEWLINE` captures its match). - // Processed fragments are accessed by calling `shiftNextLine`. - var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); - var remainingLinesIndex = 0; - var shiftNextLine = function() { - var lineContents = getNextLine(); - // The last line of a file might not have a newline. - var newLine = getNextLine() || ""; - return lineContents + newLine; +/***/ }), - function getNextLine() { - return remainingLinesIndex < remainingLines.length ? - remainingLines[remainingLinesIndex++] : undefined; - } - }; +/***/ 24975: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // We need to remember the position of "remainingLines" - var lastGeneratedLine = 1, lastGeneratedColumn = 0; +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); +var path = __nccwpck_require__(71017); - // The generate SourceNodes we need a code range. - // To extract it current and last mapping is used. - // Here we store the last mapping. - var lastMapping = null; +var PERMS = (function (base) { + return { + OTHER_EXEC: base.EXEC, + OTHER_WRITE: base.WRITE, + OTHER_READ: base.READ, - aSourceMapConsumer.eachMapping(function (mapping) { - if (lastMapping !== null) { - // We add the code from "lastMapping" to "mapping": - // First check if there is a new line in between. - if (lastGeneratedLine < mapping.generatedLine) { - // Associate first line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - lastGeneratedLine++; - lastGeneratedColumn = 0; - // The remaining code is added without mapping - } else { - // There is no new line in between. - // Associate the code between "lastGeneratedColumn" and - // "mapping.generatedColumn" with "lastMapping" - var nextLine = remainingLines[remainingLinesIndex] || ''; - var code = nextLine.substr(0, mapping.generatedColumn - - lastGeneratedColumn); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - - lastGeneratedColumn); - lastGeneratedColumn = mapping.generatedColumn; - addMappingWithCode(lastMapping, code); - // No more remaining code, continue - lastMapping = mapping; - return; - } - } - // We add the generated code until the first mapping - // to the SourceNode without any mapping. - // Each line is added as separate string. - while (lastGeneratedLine < mapping.generatedLine) { - node.add(shiftNextLine()); - lastGeneratedLine++; - } - if (lastGeneratedColumn < mapping.generatedColumn) { - var nextLine = remainingLines[remainingLinesIndex] || ''; - node.add(nextLine.substr(0, mapping.generatedColumn)); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn); - lastGeneratedColumn = mapping.generatedColumn; - } - lastMapping = mapping; - }, this); - // We have processed all mappings. - if (remainingLinesIndex < remainingLines.length) { - if (lastMapping) { - // Associate the remaining code in the current line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - } - // and add the remaining lines without any mapping - node.add(remainingLines.splice(remainingLinesIndex).join("")); + GROUP_EXEC: base.EXEC << 3, + GROUP_WRITE: base.WRITE << 3, + GROUP_READ: base.READ << 3, + + OWNER_EXEC: base.EXEC << 6, + OWNER_WRITE: base.WRITE << 6, + OWNER_READ: base.READ << 6, + + // Literal octal numbers are apparently not allowed in "strict" javascript. + STICKY: parseInt('01000', 8), + SETGID: parseInt('02000', 8), + SETUID: parseInt('04000', 8), + + TYPE_MASK: parseInt('0770000', 8), + }; +}({ + EXEC: 1, + WRITE: 2, + READ: 4, +})); + +common.register('chmod', _chmod, { +}); + +//@ +//@ ### chmod([options,] octal_mode || octal_string, file) +//@ ### chmod([options,] symbolic_mode, file) +//@ +//@ Available options: +//@ +//@ + `-v`: output a diagnostic for every file processed//@ +//@ + `-c`: like verbose, but report only when a change is made//@ +//@ + `-R`: change files and directories recursively//@ +//@ +//@ Examples: +//@ +//@ ```javascript +//@ chmod(755, '/Users/brandon'); +//@ chmod('755', '/Users/brandon'); // same as above +//@ chmod('u+x', '/Users/brandon'); +//@ chmod('-R', 'a-w', '/Users/brandon'); +//@ ``` +//@ +//@ Alters the permissions of a file or directory by either specifying the +//@ absolute permissions in octal form or expressing the changes in symbols. +//@ This command tries to mimic the POSIX behavior as much as possible. +//@ Notable exceptions: +//@ +//@ + In symbolic modes, `a-r` and `-r` are identical. No consideration is +//@ given to the `umask`. +//@ + There is no "quiet" option, since default behavior is to run silent. +function _chmod(options, mode, filePattern) { + if (!filePattern) { + if (options.length > 0 && options.charAt(0) === '-') { + // Special case where the specified file permissions started with - to subtract perms, which + // get picked up by the option parser as command flags. + // If we are down by one argument and options starts with -, shift everything over. + [].unshift.call(arguments, ''); + } else { + common.error('You must specify a file.'); } + } - // Copy sourcesContent into SourceNode - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aRelativePath != null) { - sourceFile = util.join(aRelativePath, sourceFile); + options = common.parseOptions(options, { + 'R': 'recursive', + 'c': 'changes', + 'v': 'verbose', + }); + + filePattern = [].slice.call(arguments, 2); + + var files; + + // TODO: replace this with a call to common.expand() + if (options.recursive) { + files = []; + filePattern.forEach(function addFile(expandedFile) { + var stat = common.statNoFollowLinks(expandedFile); + + if (!stat.isSymbolicLink()) { + files.push(expandedFile); + + if (stat.isDirectory()) { // intentionally does not follow symlinks. + fs.readdirSync(expandedFile).forEach(function (child) { + addFile(expandedFile + '/' + child); + }); } - node.setSourceContent(sourceFile, content); } }); + } else { + files = filePattern; + } - return node; + files.forEach(function innerChmod(file) { + file = path.resolve(file); + if (!fs.existsSync(file)) { + common.error('File not found: ' + file); + } - function addMappingWithCode(mapping, code) { - if (mapping === null || mapping.source === undefined) { - node.add(code); - } else { - var source = aRelativePath - ? util.join(aRelativePath, mapping.source) - : mapping.source; - node.add(new SourceNode(mapping.originalLine, - mapping.originalColumn, - source, - code, - mapping.name)); - } + // When recursing, don't follow symlinks. + if (options.recursive && common.statNoFollowLinks(file).isSymbolicLink()) { + return; } - }; -/** - * Add a chunk of generated JS to this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ -SourceNode.prototype.add = function SourceNode_add(aChunk) { - if (Array.isArray(aChunk)) { - aChunk.forEach(function (chunk) { - this.add(chunk); - }, this); - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - if (aChunk) { - this.children.push(aChunk); - } - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; -}; - -/** - * Add a chunk of generated JS to the beginning of this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ -SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { - if (Array.isArray(aChunk)) { - for (var i = aChunk.length-1; i >= 0; i--) { - this.prepend(aChunk[i]); - } - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - this.children.unshift(aChunk); - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; -}; - -/** - * Walk over the tree of JS snippets in this node and its children. The - * walking function is called once for each snippet of JS and is passed that - * snippet and the its original associated source's line/column location. - * - * @param aFn The traversal function. - */ -SourceNode.prototype.walk = function SourceNode_walk(aFn) { - var chunk; - for (var i = 0, len = this.children.length; i < len; i++) { - chunk = this.children[i]; - if (chunk[isSourceNode]) { - chunk.walk(aFn); - } - else { - if (chunk !== '') { - aFn(chunk, { source: this.source, - line: this.line, - column: this.column, - name: this.name }); - } - } - } -}; - -/** - * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between - * each of `this.children`. - * - * @param aSep The separator. - */ -SourceNode.prototype.join = function SourceNode_join(aSep) { - var newChildren; - var i; - var len = this.children.length; - if (len > 0) { - newChildren = []; - for (i = 0; i < len-1; i++) { - newChildren.push(this.children[i]); - newChildren.push(aSep); - } - newChildren.push(this.children[i]); - this.children = newChildren; - } - return this; -}; - -/** - * Call String.prototype.replace on the very right-most source snippet. Useful - * for trimming whitespace from the end of a source node, etc. - * - * @param aPattern The pattern to replace. - * @param aReplacement The thing to replace the pattern with. - */ -SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { - var lastChild = this.children[this.children.length - 1]; - if (lastChild[isSourceNode]) { - lastChild.replaceRight(aPattern, aReplacement); - } - else if (typeof lastChild === 'string') { - this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); - } - else { - this.children.push(''.replace(aPattern, aReplacement)); - } - return this; -}; - -/** - * Set the source content for a source file. This will be added to the SourceMapGenerator - * in the sourcesContent field. - * - * @param aSourceFile The filename of the source file - * @param aSourceContent The content of the source file - */ -SourceNode.prototype.setSourceContent = - function SourceNode_setSourceContent(aSourceFile, aSourceContent) { - this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; - }; - -/** - * Walk over the tree of SourceNodes. The walking function is called for each - * source file content and is passed the filename and source content. - * - * @param aFn The traversal function. - */ -SourceNode.prototype.walkSourceContents = - function SourceNode_walkSourceContents(aFn) { - for (var i = 0, len = this.children.length; i < len; i++) { - if (this.children[i][isSourceNode]) { - this.children[i].walkSourceContents(aFn); - } - } + var stat = common.statFollowLinks(file); + var isDir = stat.isDirectory(); + var perms = stat.mode; + var type = perms & PERMS.TYPE_MASK; - var sources = Object.keys(this.sourceContents); - for (var i = 0, len = sources.length; i < len; i++) { - aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); - } - }; + var newPerms = perms; -/** - * Return the string representation of this source node. Walks over the tree - * and concatenates all the various snippets together to one string. - */ -SourceNode.prototype.toString = function SourceNode_toString() { - var str = ""; - this.walk(function (chunk) { - str += chunk; - }); - return str; -}; + if (isNaN(parseInt(mode, 8))) { + // parse options + mode.split(',').forEach(function (symbolicMode) { + var pattern = /([ugoa]*)([=\+-])([rwxXst]*)/i; + var matches = pattern.exec(symbolicMode); -/** - * Returns the string representation of this source node along with a source - * map. - */ -SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { - var generated = { - code: "", - line: 1, - column: 0 - }; - var map = new SourceMapGenerator(aArgs); - var sourceMappingActive = false; - var lastOriginalSource = null; - var lastOriginalLine = null; - var lastOriginalColumn = null; - var lastOriginalName = null; - this.walk(function (chunk, original) { - generated.code += chunk; - if (original.source !== null - && original.line !== null - && original.column !== null) { - if(lastOriginalSource !== original.source - || lastOriginalLine !== original.line - || lastOriginalColumn !== original.column - || lastOriginalName !== original.name) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - lastOriginalSource = original.source; - lastOriginalLine = original.line; - lastOriginalColumn = original.column; - lastOriginalName = original.name; - sourceMappingActive = true; - } else if (sourceMappingActive) { - map.addMapping({ - generated: { - line: generated.line, - column: generated.column - } - }); - lastOriginalSource = null; - sourceMappingActive = false; - } - for (var idx = 0, length = chunk.length; idx < length; idx++) { - if (chunk.charCodeAt(idx) === NEWLINE_CODE) { - generated.line++; - generated.column = 0; - // Mappings end at eol - if (idx + 1 === length) { - lastOriginalSource = null; - sourceMappingActive = false; - } else if (sourceMappingActive) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - } else { - generated.column++; - } - } - }); - this.walkSourceContents(function (sourceFile, sourceContent) { - map.setSourceContent(sourceFile, sourceContent); - }); + if (matches) { + var applyTo = matches[1]; + var operator = matches[2]; + var change = matches[3]; - return { code: generated.code, map: map }; -}; + var changeOwner = applyTo.indexOf('u') !== -1 || applyTo === 'a' || applyTo === ''; + var changeGroup = applyTo.indexOf('g') !== -1 || applyTo === 'a' || applyTo === ''; + var changeOther = applyTo.indexOf('o') !== -1 || applyTo === 'a' || applyTo === ''; -__webpack_unused_export__ = SourceNode; + var changeRead = change.indexOf('r') !== -1; + var changeWrite = change.indexOf('w') !== -1; + var changeExec = change.indexOf('x') !== -1; + var changeExecDir = change.indexOf('X') !== -1; + var changeSticky = change.indexOf('t') !== -1; + var changeSetuid = change.indexOf('s') !== -1; + if (changeExecDir && isDir) { + changeExec = true; + } -/***/ }), + var mask = 0; + if (changeOwner) { + mask |= (changeRead ? PERMS.OWNER_READ : 0) + (changeWrite ? PERMS.OWNER_WRITE : 0) + (changeExec ? PERMS.OWNER_EXEC : 0) + (changeSetuid ? PERMS.SETUID : 0); + } + if (changeGroup) { + mask |= (changeRead ? PERMS.GROUP_READ : 0) + (changeWrite ? PERMS.GROUP_WRITE : 0) + (changeExec ? PERMS.GROUP_EXEC : 0) + (changeSetuid ? PERMS.SETGID : 0); + } + if (changeOther) { + mask |= (changeRead ? PERMS.OTHER_READ : 0) + (changeWrite ? PERMS.OTHER_WRITE : 0) + (changeExec ? PERMS.OTHER_EXEC : 0); + } -/***/ 12344: -/***/ ((__unused_webpack_module, exports) => { + // Sticky bit is special - it's not tied to user, group or other. + if (changeSticky) { + mask |= PERMS.STICKY; + } -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ + switch (operator) { + case '+': + newPerms |= mask; + break; -/** - * This is a helper function for getting values from parameter/options - * objects. - * - * @param args The object we are extracting values from - * @param name The name of the property we are getting. - * @param defaultValue An optional value to return if the property is missing - * from the object. If this is not specified and the property is missing, an - * error will be thrown. - */ -function getArg(aArgs, aName, aDefaultValue) { - if (aName in aArgs) { - return aArgs[aName]; - } else if (arguments.length === 3) { - return aDefaultValue; - } else { - throw new Error('"' + aName + '" is a required argument.'); - } -} -exports.getArg = getArg; + case '-': + newPerms &= ~mask; + break; -var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; -var dataUrlRegexp = /^data:.+\,.+$/; + case '=': + newPerms = type + mask; -function urlParse(aUrl) { - var match = aUrl.match(urlRegexp); - if (!match) { - return null; - } - return { - scheme: match[1], - auth: match[2], - host: match[3], - port: match[4], - path: match[5] - }; -} -exports.urlParse = urlParse; + // According to POSIX, when using = to explicitly set the + // permissions, setuid and setgid can never be cleared. + if (common.statFollowLinks(file).isDirectory()) { + newPerms |= (PERMS.SETUID + PERMS.SETGID) & perms; + } + break; + default: + common.error('Could not recognize operator: `' + operator + '`'); + } -function urlGenerate(aParsedUrl) { - var url = ''; - if (aParsedUrl.scheme) { - url += aParsedUrl.scheme + ':'; - } - url += '//'; - if (aParsedUrl.auth) { - url += aParsedUrl.auth + '@'; - } - if (aParsedUrl.host) { - url += aParsedUrl.host; - } - if (aParsedUrl.port) { - url += ":" + aParsedUrl.port - } - if (aParsedUrl.path) { - url += aParsedUrl.path; - } - return url; -} -exports.urlGenerate = urlGenerate; + if (options.verbose) { + console.log(file + ' -> ' + newPerms.toString(8)); + } -/** - * Normalizes a path, or the path portion of a URL: - * - * - Replaces consecutive slashes with one slash. - * - Removes unnecessary '.' parts. - * - Removes unnecessary '/..' parts. - * - * Based on code in the Node.js 'path' core module. - * - * @param aPath The path or url to normalize. - */ -function normalize(aPath) { - var path = aPath; - var url = urlParse(aPath); - if (url) { - if (!url.path) { - return aPath; - } - path = url.path; - } - var isAbsolute = exports.isAbsolute(path); + if (perms !== newPerms) { + if (!options.verbose && options.changes) { + console.log(file + ' -> ' + newPerms.toString(8)); + } + fs.chmodSync(file, newPerms); + perms = newPerms; // for the next round of changes! + } + } else { + common.error('Invalid symbolic mode change: ' + symbolicMode); + } + }); + } else { + // they gave us a full number + newPerms = type + parseInt(mode, 8); - var parts = path.split(/\/+/); - for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { - part = parts[i]; - if (part === '.') { - parts.splice(i, 1); - } else if (part === '..') { - up++; - } else if (up > 0) { - if (part === '') { - // The first part is blank if the path is absolute. Trying to go - // above the root is a no-op. Therefore we can remove all '..' parts - // directly after the root. - parts.splice(i + 1, up); - up = 0; - } else { - parts.splice(i, 2); - up--; + // POSIX rules are that setuid and setgid can only be added using numeric + // form, but not cleared. + if (common.statFollowLinks(file).isDirectory()) { + newPerms |= (PERMS.SETUID + PERMS.SETGID) & perms; } - } - } - path = parts.join('/'); - - if (path === '') { - path = isAbsolute ? '/' : '.'; - } - if (url) { - url.path = path; - return urlGenerate(url); - } - return path; + fs.chmodSync(file, newPerms); + } + }); + return ''; } -exports.normalize = normalize; +module.exports = _chmod; -/** - * Joins two paths/URLs. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be joined with the root. - * - * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a - * scheme-relative URL: Then the scheme of aRoot, if any, is prepended - * first. - * - Otherwise aPath is a path. If aRoot is a URL, then its path portion - * is updated with the result and aRoot is returned. Otherwise the result - * is returned. - * - If aPath is absolute, the result is aPath. - * - Otherwise the two paths are joined with a slash. - * - Joining for example 'http://' and 'www.example.com' is also supported. - */ -function join(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - if (aPath === "") { - aPath = "."; - } - var aPathUrl = urlParse(aPath); - var aRootUrl = urlParse(aRoot); - if (aRootUrl) { - aRoot = aRootUrl.path || '/'; - } - // `join(foo, '//www.example.org')` - if (aPathUrl && !aPathUrl.scheme) { - if (aRootUrl) { - aPathUrl.scheme = aRootUrl.scheme; - } - return urlGenerate(aPathUrl); - } +/***/ }), - if (aPathUrl || aPath.match(dataUrlRegexp)) { - return aPath; - } +/***/ 53687: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // `join('http://', 'www.example.com')` - if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { - aRootUrl.host = aPath; - return urlGenerate(aRootUrl); - } +"use strict"; +// Ignore warning about 'new String()' +/* eslint no-new-wrappers: 0 */ - var joined = aPath.charAt(0) === '/' - ? aPath - : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); - if (aRootUrl) { - aRootUrl.path = joined; - return urlGenerate(aRootUrl); - } - return joined; -} -exports.join = join; +var os = __nccwpck_require__(22037); +var fs = __nccwpck_require__(57147); +var glob = __nccwpck_require__(91957); +var shell = __nccwpck_require__(33516); -exports.isAbsolute = function (aPath) { - return aPath.charAt(0) === '/' || urlRegexp.test(aPath); -}; +var shellMethods = Object.create(shell); -/** - * Make a path relative to a URL or another path. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be made relative to aRoot. - */ -function relative(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } +exports.extend = Object.assign; - aRoot = aRoot.replace(/\/$/, ''); +// Check if we're running under electron +var isElectron = Boolean(process.versions.electron); - // It is possible for the path to be above the root. In this case, simply - // checking whether the root is a prefix of the path won't work. Instead, we - // need to remove components from the root one by one, until either we find - // a prefix that fits, or we run out of components to remove. - var level = 0; - while (aPath.indexOf(aRoot + '/') !== 0) { - var index = aRoot.lastIndexOf("/"); - if (index < 0) { - return aPath; - } +// Module globals (assume no execPath by default) +var DEFAULT_CONFIG = { + fatal: false, + globOptions: {}, + maxdepth: 255, + noglob: false, + silent: false, + verbose: false, + execPath: null, + bufLength: 64 * 1024, // 64KB +}; - // If the only part of the root that is left is the scheme (i.e. http://, - // file:///, etc.), one or more slashes (/), or simply nothing at all, we - // have exhausted all components, so the path is not relative to the root. - aRoot = aRoot.slice(0, index); - if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { - return aPath; +var config = { + reset: function () { + Object.assign(this, DEFAULT_CONFIG); + if (!isElectron) { + this.execPath = process.execPath; } + }, + resetForTesting: function () { + this.reset(); + this.silent = true; + }, +}; - ++level; - } +config.reset(); +exports.config = config; - // Make sure we add a "../" for each component we removed from the root. - return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); -} -exports.relative = relative; +// Note: commands should generally consider these as read-only values. +var state = { + error: null, + errorCode: 0, + currentCmd: 'shell.js', +}; +exports.state = state; -var supportsNullProto = (function () { - var obj = Object.create(null); - return !('__proto__' in obj); -}()); +delete process.env.OLDPWD; // initially, there's no previous directory -function identity (s) { - return s; +// Reliably test if something is any sort of javascript object +function isObject(a) { + return typeof a === 'object' && a !== null; } +exports.isObject = isObject; -/** - * Because behavior goes wacky when you set `__proto__` on objects, we - * have to prefix all the strings in our set with an arbitrary character. - * - * See https://github.com/mozilla/source-map/pull/31 and - * https://github.com/mozilla/source-map/issues/30 - * - * @param String aStr - */ -function toSetString(aStr) { - if (isProtoString(aStr)) { - return '$' + aStr; +function log() { + /* istanbul ignore next */ + if (!config.silent) { + console.error.apply(console, arguments); } - - return aStr; } -exports.toSetString = supportsNullProto ? identity : toSetString; +exports.log = log; -function fromSetString(aStr) { - if (isProtoString(aStr)) { - return aStr.slice(1); +// Converts strings to be equivalent across all platforms. Primarily responsible +// for making sure we use '/' instead of '\' as path separators, but this may be +// expanded in the future if necessary +function convertErrorOutput(msg) { + if (typeof msg !== 'string') { + throw new TypeError('input must be a string'); } - - return aStr; + return msg.replace(/\\/g, '/'); } -exports.fromSetString = supportsNullProto ? identity : fromSetString; - -function isProtoString(s) { - if (!s) { - return false; - } - - var length = s.length; - - if (length < 9 /* "__proto__".length */) { - return false; - } - - if (s.charCodeAt(length - 1) !== 95 /* '_' */ || - s.charCodeAt(length - 2) !== 95 /* '_' */ || - s.charCodeAt(length - 3) !== 111 /* 'o' */ || - s.charCodeAt(length - 4) !== 116 /* 't' */ || - s.charCodeAt(length - 5) !== 111 /* 'o' */ || - s.charCodeAt(length - 6) !== 114 /* 'r' */ || - s.charCodeAt(length - 7) !== 112 /* 'p' */ || - s.charCodeAt(length - 8) !== 95 /* '_' */ || - s.charCodeAt(length - 9) !== 95 /* '_' */) { - return false; - } +exports.convertErrorOutput = convertErrorOutput; - for (var i = length - 10; i >= 0; i--) { - if (s.charCodeAt(i) !== 36 /* '$' */) { - return false; - } - } +// Shows error message. Throws if config.fatal is true +function error(msg, _code, options) { + // Validate input + if (typeof msg !== 'string') throw new Error('msg must be a string'); - return true; -} + var DEFAULT_OPTIONS = { + continue: false, + code: 1, + prefix: state.currentCmd + ': ', + silent: false, + }; -/** - * Comparator between two mappings where the original positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same original source/line/column, but different generated - * line and column the same. Useful when searching for a mapping with a - * stubbed out mapping. - */ -function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { - var cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; + if (typeof _code === 'number' && isObject(options)) { + options.code = _code; + } else if (isObject(_code)) { // no 'code' + options = _code; + } else if (typeof _code === 'number') { // no 'options' + options = { code: _code }; + } else if (typeof _code !== 'number') { // only 'msg' + options = {}; } + options = Object.assign({}, DEFAULT_OPTIONS, options); - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } + if (!state.errorCode) state.errorCode = options.code; - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0 || onlyCompareOriginal) { - return cmp; - } + var logEntry = convertErrorOutput(options.prefix + msg); + state.error = state.error ? state.error + '\n' : ''; + state.error += logEntry; - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } + // Throw an error, or log the entry + if (config.fatal) throw new Error(logEntry); + if (msg.length > 0 && !options.silent) log(logEntry); - cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; + if (!options.continue) { + throw { + msg: 'earlyExit', + retValue: (new ShellString('', state.error, state.errorCode)), + }; } - - return strcmp(mappingA.name, mappingB.name); } -exports.compareByOriginalPositions = compareByOriginalPositions; - -/** - * Comparator between two mappings with deflated source and name indices where - * the generated positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same generated line and column, but different - * source/name/original line and column the same. Useful when searching for a - * mapping with a stubbed out mapping. - */ -function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } +exports.error = error; - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0 || onlyCompareGenerated) { - return cmp; +//@ +//@ ### ShellString(str) +//@ +//@ Examples: +//@ +//@ ```javascript +//@ var foo = ShellString('hello world'); +//@ ``` +//@ +//@ Turns a regular string into a string-like object similar to what each +//@ command returns. This has special methods, like `.to()` and `.toEnd()`. +function ShellString(stdout, stderr, code) { + var that; + if (stdout instanceof Array) { + that = stdout; + that.stdout = stdout.join('\n'); + if (stdout.length > 0) that.stdout += '\n'; + } else { + that = new String(stdout); + that.stdout = stdout; } + that.stderr = stderr; + that.code = code; + // A list of all commands that can appear on the right-hand side of a pipe + // (populated by calls to common.wrap()) + pipeMethods.forEach(function (cmd) { + that[cmd] = shellMethods[cmd].bind(that); + }); + return that; +} - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } +exports.ShellString = ShellString; - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; +// Returns {'alice': true, 'bob': false} when passed a string and dictionary as follows: +// parseOptions('-a', {'a':'alice', 'b':'bob'}); +// Returns {'reference': 'string-value', 'bob': false} when passed two dictionaries of the form: +// parseOptions({'-r': 'string-value'}, {'r':'reference', 'b':'bob'}); +// Throws an error when passed a string that does not start with '-': +// parseOptions('a', {'a':'alice'}); // throws +function parseOptions(opt, map, errorOptions) { + // Validate input + if (typeof opt !== 'string' && !isObject(opt)) { + throw new Error('options must be strings or key-value pairs'); + } else if (!isObject(map)) { + throw new Error('parseOptions() internal error: map must be an object'); + } else if (errorOptions && !isObject(errorOptions)) { + throw new Error('parseOptions() internal error: errorOptions must be object'); } - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; + if (opt === '--') { + // This means there are no options. + return {}; } - return strcmp(mappingA.name, mappingB.name); -} -exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; + // All options are false by default + var options = {}; + Object.keys(map).forEach(function (letter) { + var optName = map[letter]; + if (optName[0] !== '!') { + options[optName] = false; + } + }); -function strcmp(aStr1, aStr2) { - if (aStr1 === aStr2) { - return 0; - } + if (opt === '') return options; // defaults - if (aStr1 === null) { - return 1; // aStr2 !== null - } + if (typeof opt === 'string') { + if (opt[0] !== '-') { + throw new Error("Options string must start with a '-'"); + } - if (aStr2 === null) { - return -1; // aStr1 !== null - } + // e.g. chars = ['R', 'f'] + var chars = opt.slice(1).split(''); - if (aStr1 > aStr2) { - return 1; + chars.forEach(function (c) { + if (c in map) { + var optionName = map[c]; + if (optionName[0] === '!') { + options[optionName.slice(1)] = false; + } else { + options[optionName] = true; + } + } else { + error('option not recognized: ' + c, errorOptions || {}); + } + }); + } else { // opt is an Object + Object.keys(opt).forEach(function (key) { + // key is a string of the form '-r', '-d', etc. + var c = key[1]; + if (c in map) { + var optionName = map[c]; + options[optionName] = opt[key]; // assign the given value + } else { + error('option not recognized: ' + c, errorOptions || {}); + } + }); } - - return -1; + return options; } +exports.parseOptions = parseOptions; -/** - * Comparator between two mappings with inflated source and name strings where - * the generated positions are compared. - */ -function compareByGeneratedPositionsInflated(mappingA, mappingB) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; +// Expands wildcards with matching (ie. existing) file names. +// For example: +// expand(['file*.js']) = ['file1.js', 'file2.js', ...] +// (if the files 'file1.js', 'file2.js', etc, exist in the current dir) +function expand(list) { + if (!Array.isArray(list)) { + throw new TypeError('must be an array'); } + var expanded = []; + list.forEach(function (listEl) { + // Don't expand non-strings + if (typeof listEl !== 'string') { + expanded.push(listEl); + } else { + var ret; + try { + ret = glob.sync(listEl, config.globOptions); + // if nothing matched, interpret the string literally + ret = ret.length > 0 ? ret : [listEl]; + } catch (e) { + // if glob fails, interpret the string literally + ret = [listEl]; + } + expanded = expanded.concat(ret); + } + }); + return expanded; +} +exports.expand = expand; - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } +// Normalizes Buffer creation, using Buffer.alloc if possible. +// Also provides a good default buffer length for most use cases. +var buffer = typeof Buffer.alloc === 'function' ? + function (len) { + return Buffer.alloc(len || config.bufLength); + } : + function (len) { + return new Buffer(len || config.bufLength); + }; +exports.buffer = buffer; - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; +// Normalizes _unlinkSync() across platforms to match Unix behavior, i.e. +// file can be unlinked even if it's read-only, see https://github.com/joyent/node/issues/3006 +function unlinkSync(file) { + try { + fs.unlinkSync(file); + } catch (e) { + // Try to override file permission + /* istanbul ignore next */ + if (e.code === 'EPERM') { + fs.chmodSync(file, '0666'); + fs.unlinkSync(file); + } else { + throw e; + } } - - return strcmp(mappingA.name, mappingB.name); } -exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; +exports.unlinkSync = unlinkSync; -/** - * Strip any JSON XSSI avoidance prefix from the string (as documented - * in the source maps specification), and then parse the string as - * JSON. - */ -function parseSourceMapInput(str) { - return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, '')); +// wrappers around common.statFollowLinks and common.statNoFollowLinks that clarify intent +// and improve readability +function statFollowLinks() { + return fs.statSync.apply(fs, arguments); } -exports.parseSourceMapInput = parseSourceMapInput; - -/** - * Compute the URL of a source given the the source root, the source's - * URL, and the source map's URL. - */ -function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { - sourceURL = sourceURL || ''; +exports.statFollowLinks = statFollowLinks; - if (sourceRoot) { - // This follows what Chrome does. - if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') { - sourceRoot += '/'; - } - // The spec says: - // Line 4: An optional source root, useful for relocating source - // files on a server or removing repeated values in the - // “sources” entry. This value is prepended to the individual - // entries in the “source” field. - sourceURL = sourceRoot + sourceURL; - } +function statNoFollowLinks() { + return fs.lstatSync.apply(fs, arguments); +} +exports.statNoFollowLinks = statNoFollowLinks; - // Historically, SourceMapConsumer did not take the sourceMapURL as - // a parameter. This mode is still somewhat supported, which is why - // this code block is conditional. However, it's preferable to pass - // the source map URL to SourceMapConsumer, so that this function - // can implement the source URL resolution algorithm as outlined in - // the spec. This block is basically the equivalent of: - // new URL(sourceURL, sourceMapURL).toString() - // ... except it avoids using URL, which wasn't available in the - // older releases of node still supported by this library. - // - // The spec says: - // If the sources are not absolute URLs after prepending of the - // “sourceRoot”, the sources are resolved relative to the - // SourceMap (like resolving script src in a html document). - if (sourceMapURL) { - var parsed = urlParse(sourceMapURL); - if (!parsed) { - throw new Error("sourceMapURL could not be parsed"); +// e.g. 'shelljs_a5f185d0443ca...' +function randomFileName() { + function randomHash(count) { + if (count === 1) { + return parseInt(16 * Math.random(), 10).toString(16); } - if (parsed.path) { - // Strip the last path component, but keep the "/". - var index = parsed.path.lastIndexOf('/'); - if (index >= 0) { - parsed.path = parsed.path.substring(0, index + 1); - } + var hash = ''; + for (var i = 0; i < count; i++) { + hash += randomHash(1); } - sourceURL = join(urlGenerate(parsed), sourceURL); + return hash; } - return normalize(sourceURL); + return 'shelljs_' + randomHash(20); } -exports.computeSourceURL = computeSourceURL; +exports.randomFileName = randomFileName; +// Common wrapper for all Unix-like commands that performs glob expansion, +// command-logging, and other nice things +function wrap(cmd, fn, options) { + options = options || {}; + return function () { + var retValue = null; -/***/ }), + state.currentCmd = cmd; + state.error = null; + state.errorCode = 0; -/***/ 56594: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -/* - * Copyright 2009-2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE.txt or: - * http://opensource.org/licenses/BSD-3-Clause - */ -/* unused reexport */ __nccwpck_require__(69425)/* .SourceMapGenerator */ .h; -exports.SourceMapConsumer = __nccwpck_require__(75155).SourceMapConsumer; -/* unused reexport */ __nccwpck_require__(92616); + try { + var args = [].slice.call(arguments, 0); + // Log the command to stderr, if appropriate + if (config.verbose) { + console.error.apply(console, [cmd].concat(args)); + } -/***/ }), + // If this is coming from a pipe, let's set the pipedValue (otherwise, set + // it to the empty string) + state.pipedValue = (this && typeof this.stdout === 'string') ? this.stdout : ''; -/***/ 94841: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (options.unix === false) { // this branch is for exec() + retValue = fn.apply(this, args); + } else { // and this branch is for everything else + if (isObject(args[0]) && args[0].constructor.name === 'Object') { + // a no-op, allowing the syntax `touch({'-r': file}, ...)` + } else if (args.length === 0 || typeof args[0] !== 'string' || args[0].length <= 1 || args[0][0] !== '-') { + args.unshift(''); // only add dummy option if '-option' not already present + } -"use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. + // flatten out arrays that are arguments, to make the syntax: + // `cp([file1, file2, file3], dest);` + // equivalent to: + // `cp(file1, file2, file3, dest);` + args = args.reduce(function (accum, cur) { + if (Array.isArray(cur)) { + return accum.concat(cur); + } + accum.push(cur); + return accum; + }, []); + // Convert ShellStrings (basically just String objects) to regular strings + args = args.map(function (arg) { + if (isObject(arg) && arg.constructor.name === 'String') { + return arg.toString(); + } + return arg; + }); + // Expand the '~' if appropriate + var homeDir = os.homedir(); + args = args.map(function (arg) { + if (typeof arg === 'string' && arg.slice(0, 2) === '~/' || arg === '~') { + return arg.replace(/^~/, homeDir); + } + return arg; + }); -/**/ + // Perform glob-expansion on all arguments after globStart, but preserve + // the arguments before it (like regexes for sed and grep) + if (!config.noglob && options.allowGlobbing === true) { + args = args.slice(0, options.globStart).concat(expand(args.slice(options.globStart))); + } -var Buffer = (__nccwpck_require__(21867).Buffer); -/**/ + try { + // parse options if options are provided + if (isObject(options.cmdOptions)) { + args[0] = parseOptions(args[0], options.cmdOptions); + } -var isEncoding = Buffer.isEncoding || function (encoding) { - encoding = '' + encoding; - switch (encoding && encoding.toLowerCase()) { - case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw': - return true; - default: - return false; - } -}; + retValue = fn.apply(this, args); + } catch (e) { + /* istanbul ignore else */ + if (e.msg === 'earlyExit') { + retValue = e.retValue; + } else { + throw e; // this is probably a bug that should be thrown up the call stack + } + } + } + } catch (e) { + /* istanbul ignore next */ + if (!state.error) { + // If state.error hasn't been set it's an error thrown by Node, not us - probably a bug... + e.name = 'ShellJSInternalError'; + throw e; + } + if (config.fatal) throw e; + } -function _normalizeEncoding(enc) { - if (!enc) return 'utf8'; - var retried; - while (true) { - switch (enc) { - case 'utf8': - case 'utf-8': - return 'utf8'; - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return 'utf16le'; - case 'latin1': - case 'binary': - return 'latin1'; - case 'base64': - case 'ascii': - case 'hex': - return enc; - default: - if (retried) return; // undefined - enc = ('' + enc).toLowerCase(); - retried = true; + if (options.wrapOutput && + (typeof retValue === 'string' || Array.isArray(retValue))) { + retValue = new ShellString(retValue, state.error, state.errorCode); } - } -}; -// Do not cache `Buffer.isEncoding` when checking encoding names as some -// modules monkey-patch it to support additional encodings -function normalizeEncoding(enc) { - var nenc = _normalizeEncoding(enc); - if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc); - return nenc || enc; -} + state.currentCmd = 'shell.js'; + return retValue; + }; +} // wrap +exports.wrap = wrap; -// StringDecoder provides an interface for efficiently splitting a series of -// buffers into a series of JS strings without breaking apart multi-byte -// characters. -exports.s = StringDecoder; -function StringDecoder(encoding) { - this.encoding = normalizeEncoding(encoding); - var nb; - switch (this.encoding) { - case 'utf16le': - this.text = utf16Text; - this.end = utf16End; - nb = 4; - break; - case 'utf8': - this.fillLast = utf8FillLast; - nb = 4; - break; - case 'base64': - this.text = base64Text; - this.end = base64End; - nb = 3; - break; - default: - this.write = simpleWrite; - this.end = simpleEnd; - return; - } - this.lastNeed = 0; - this.lastTotal = 0; - this.lastChar = Buffer.allocUnsafe(nb); +// This returns all the input that is piped into the current command (or the +// empty string, if this isn't on the right-hand side of a pipe +function _readFromPipe() { + return state.pipedValue; } +exports.readFromPipe = _readFromPipe; -StringDecoder.prototype.write = function (buf) { - if (buf.length === 0) return ''; - var r; - var i; - if (this.lastNeed) { - r = this.fillLast(buf); - if (r === undefined) return ''; - i = this.lastNeed; - this.lastNeed = 0; - } else { - i = 0; - } - if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i); - return r || ''; +var DEFAULT_WRAP_OPTIONS = { + allowGlobbing: true, + canReceivePipe: false, + cmdOptions: null, + globStart: 1, + pipeOnly: false, + wrapOutput: true, + unix: true, }; -StringDecoder.prototype.end = utf8End; +// This is populated during plugin registration +var pipeMethods = []; -// Returns only complete characters in a Buffer -StringDecoder.prototype.text = utf8Text; +// Register a new ShellJS command +function _register(name, implementation, wrapOptions) { + wrapOptions = wrapOptions || {}; -// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer -StringDecoder.prototype.fillLast = function (buf) { - if (this.lastNeed <= buf.length) { - buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed); - return this.lastChar.toString(this.encoding, 0, this.lastTotal); - } - buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length); - this.lastNeed -= buf.length; -}; + // Validate options + Object.keys(wrapOptions).forEach(function (option) { + if (!DEFAULT_WRAP_OPTIONS.hasOwnProperty(option)) { + throw new Error("Unknown option '" + option + "'"); + } + if (typeof wrapOptions[option] !== typeof DEFAULT_WRAP_OPTIONS[option]) { + throw new TypeError("Unsupported type '" + typeof wrapOptions[option] + + "' for option '" + option + "'"); + } + }); -// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a -// continuation byte. If an invalid byte is detected, -2 is returned. -function utf8CheckByte(byte) { - if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4; - return byte >> 6 === 0x02 ? -1 : -2; -} + // If an option isn't specified, use the default + wrapOptions = Object.assign({}, DEFAULT_WRAP_OPTIONS, wrapOptions); -// Checks at most 3 bytes at the end of a Buffer in order to detect an -// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4) -// needed to complete the UTF-8 character (if applicable) are returned. -function utf8CheckIncomplete(self, buf, i) { - var j = buf.length - 1; - if (j < i) return 0; - var nb = utf8CheckByte(buf[j]); - if (nb >= 0) { - if (nb > 0) self.lastNeed = nb - 1; - return nb; + if (shell.hasOwnProperty(name)) { + throw new Error('Command `' + name + '` already exists'); } - if (--j < i || nb === -2) return 0; - nb = utf8CheckByte(buf[j]); - if (nb >= 0) { - if (nb > 0) self.lastNeed = nb - 2; - return nb; + + if (wrapOptions.pipeOnly) { + wrapOptions.canReceivePipe = true; + shellMethods[name] = wrap(name, implementation, wrapOptions); + } else { + shell[name] = wrap(name, implementation, wrapOptions); } - if (--j < i || nb === -2) return 0; - nb = utf8CheckByte(buf[j]); - if (nb >= 0) { - if (nb > 0) { - if (nb === 2) nb = 0;else self.lastNeed = nb - 3; - } - return nb; + + if (wrapOptions.canReceivePipe) { + pipeMethods.push(name); } - return 0; } +exports.register = _register; -// Validates as many continuation bytes for a multi-byte UTF-8 character as -// needed or are available. If we see a non-continuation byte where we expect -// one, we "replace" the validated continuation bytes we've seen so far with -// a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding -// behavior. The continuation byte check is included three times in the case -// where all of the continuation bytes for a character exist in the same buffer. -// It is also done this way as a slight performance increase instead of using a -// loop. -function utf8CheckExtraBytes(self, buf, p) { - if ((buf[0] & 0xC0) !== 0x80) { - self.lastNeed = 0; - return '\ufffd'; + +/***/ }), + +/***/ 34932: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var fs = __nccwpck_require__(57147); +var path = __nccwpck_require__(71017); +var common = __nccwpck_require__(53687); + +common.register('cp', _cp, { + cmdOptions: { + 'f': '!no_force', + 'n': 'no_force', + 'u': 'update', + 'R': 'recursive', + 'r': 'recursive', + 'L': 'followsymlink', + 'P': 'noFollowsymlink', + }, + wrapOutput: false, +}); + +// Buffered file copy, synchronous +// (Using readFileSync() + writeFileSync() could easily cause a memory overflow +// with large files) +function copyFileSync(srcFile, destFile, options) { + if (!fs.existsSync(srcFile)) { + common.error('copyFileSync: no such file or directory: ' + srcFile); } - if (self.lastNeed > 1 && buf.length > 1) { - if ((buf[1] & 0xC0) !== 0x80) { - self.lastNeed = 1; - return '\ufffd'; - } - if (self.lastNeed > 2 && buf.length > 2) { - if ((buf[2] & 0xC0) !== 0x80) { - self.lastNeed = 2; - return '\ufffd'; - } + + var isWindows = process.platform === 'win32'; + + // Check the mtimes of the files if the '-u' flag is provided + try { + if (options.update && common.statFollowLinks(srcFile).mtime < fs.statSync(destFile).mtime) { + return; } + } catch (e) { + // If we're here, destFile probably doesn't exist, so just do a normal copy } -} -// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer. -function utf8FillLast(buf) { - var p = this.lastTotal - this.lastNeed; - var r = utf8CheckExtraBytes(this, buf, p); - if (r !== undefined) return r; - if (this.lastNeed <= buf.length) { - buf.copy(this.lastChar, p, 0, this.lastNeed); - return this.lastChar.toString(this.encoding, 0, this.lastTotal); - } - buf.copy(this.lastChar, p, 0, buf.length); - this.lastNeed -= buf.length; -} + if (common.statNoFollowLinks(srcFile).isSymbolicLink() && !options.followsymlink) { + try { + common.statNoFollowLinks(destFile); + common.unlinkSync(destFile); // re-link it + } catch (e) { + // it doesn't exist, so no work needs to be done + } -// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a -// partial character, the character's bytes are buffered until the required -// number of bytes are available. -function utf8Text(buf, i) { - var total = utf8CheckIncomplete(this, buf, i); - if (!this.lastNeed) return buf.toString('utf8', i); - this.lastTotal = total; - var end = buf.length - (total - this.lastNeed); - buf.copy(this.lastChar, 0, end); - return buf.toString('utf8', i, end); -} + var symlinkFull = fs.readlinkSync(srcFile); + fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null); + } else { + var buf = common.buffer(); + var bufLength = buf.length; + var bytesRead = bufLength; + var pos = 0; + var fdr = null; + var fdw = null; -// For UTF-8, a replacement character is added when ending on a partial -// character. -function utf8End(buf) { - var r = buf && buf.length ? this.write(buf) : ''; - if (this.lastNeed) return r + '\ufffd'; - return r; -} + try { + fdr = fs.openSync(srcFile, 'r'); + } catch (e) { + /* istanbul ignore next */ + common.error('copyFileSync: could not read src file (' + srcFile + ')'); + } -// UTF-16LE typically needs two bytes per character, but even if we have an even -// number of bytes available, we need to check if we end on a leading/high -// surrogate. In that case, we need to wait for the next two bytes in order to -// decode the last character properly. -function utf16Text(buf, i) { - if ((buf.length - i) % 2 === 0) { - var r = buf.toString('utf16le', i); - if (r) { - var c = r.charCodeAt(r.length - 1); - if (c >= 0xD800 && c <= 0xDBFF) { - this.lastNeed = 2; - this.lastTotal = 4; - this.lastChar[0] = buf[buf.length - 2]; - this.lastChar[1] = buf[buf.length - 1]; - return r.slice(0, -1); - } + try { + fdw = fs.openSync(destFile, 'w'); + } catch (e) { + /* istanbul ignore next */ + common.error('copyFileSync: could not write to dest file (code=' + e.code + '):' + destFile); } - return r; - } - this.lastNeed = 1; - this.lastTotal = 2; - this.lastChar[0] = buf[buf.length - 1]; - return buf.toString('utf16le', i, buf.length - 1); -} -// For UTF-16LE we do not explicitly append special replacement characters if we -// end on a partial character, we simply let v8 handle that. -function utf16End(buf) { - var r = buf && buf.length ? this.write(buf) : ''; - if (this.lastNeed) { - var end = this.lastTotal - this.lastNeed; - return r + this.lastChar.toString('utf16le', 0, end); - } - return r; -} + while (bytesRead === bufLength) { + bytesRead = fs.readSync(fdr, buf, 0, bufLength, pos); + fs.writeSync(fdw, buf, 0, bytesRead); + pos += bytesRead; + } -function base64Text(buf, i) { - var n = (buf.length - i) % 3; - if (n === 0) return buf.toString('base64', i); - this.lastNeed = 3 - n; - this.lastTotal = 3; - if (n === 1) { - this.lastChar[0] = buf[buf.length - 1]; - } else { - this.lastChar[0] = buf[buf.length - 2]; - this.lastChar[1] = buf[buf.length - 1]; + fs.closeSync(fdr); + fs.closeSync(fdw); + + fs.chmodSync(destFile, common.statFollowLinks(srcFile).mode); } - return buf.toString('base64', i, buf.length - n); } -function base64End(buf) { - var r = buf && buf.length ? this.write(buf) : ''; - if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed); - return r; -} +// Recursively copies 'sourceDir' into 'destDir' +// Adapted from https://github.com/ryanmcgrath/wrench-js +// +// Copyright (c) 2010 Ryan McGrath +// Copyright (c) 2012 Artur Adib +// +// Licensed under the MIT License +// http://www.opensource.org/licenses/mit-license.php +function cpdirSyncRecursive(sourceDir, destDir, currentDepth, opts) { + if (!opts) opts = {}; -// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex) -function simpleWrite(buf) { - return buf.toString(this.encoding); -} + // Ensure there is not a run away recursive copy + if (currentDepth >= common.config.maxdepth) return; + currentDepth++; -function simpleEnd(buf) { - return buf && buf.length ? this.write(buf) : ''; -} + var isWindows = process.platform === 'win32'; -/***/ }), + // Create the directory where all our junk is moving to; read the mode of the + // source directory and mirror it + try { + fs.mkdirSync(destDir); + } catch (e) { + // if the directory already exists, that's okay + if (e.code !== 'EEXIST') throw e; + } -/***/ 59318: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + var files = fs.readdirSync(sourceDir); -"use strict"; + for (var i = 0; i < files.length; i++) { + var srcFile = sourceDir + '/' + files[i]; + var destFile = destDir + '/' + files[i]; + var srcFileStat = common.statNoFollowLinks(srcFile); -const os = __nccwpck_require__(22037); -const hasFlag = __nccwpck_require__(81533); + var symlinkFull; + if (opts.followsymlink) { + if (cpcheckcycle(sourceDir, srcFile)) { + // Cycle link found. + console.error('Cycle link found.'); + symlinkFull = fs.readlinkSync(srcFile); + fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null); + continue; + } + } + if (srcFileStat.isDirectory()) { + /* recursion this thing right on back. */ + cpdirSyncRecursive(srcFile, destFile, currentDepth, opts); + } else if (srcFileStat.isSymbolicLink() && !opts.followsymlink) { + symlinkFull = fs.readlinkSync(srcFile); + try { + common.statNoFollowLinks(destFile); + common.unlinkSync(destFile); // re-link it + } catch (e) { + // it doesn't exist, so no work needs to be done + } + fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null); + } else if (srcFileStat.isSymbolicLink() && opts.followsymlink) { + srcFileStat = common.statFollowLinks(srcFile); + if (srcFileStat.isDirectory()) { + cpdirSyncRecursive(srcFile, destFile, currentDepth, opts); + } else { + copyFileSync(srcFile, destFile, opts); + } + } else { + /* At this point, we've hit a file actually worth copying... so copy it on over. */ + if (fs.existsSync(destFile) && opts.no_force) { + common.log('skipping existing file: ' + files[i]); + } else { + copyFileSync(srcFile, destFile, opts); + } + } + } // for files -const env = process.env; + // finally change the mode for the newly created directory (otherwise, we + // couldn't add files to a read-only directory). + var checkDir = common.statFollowLinks(sourceDir); + fs.chmodSync(destDir, checkDir.mode); +} // cpdirSyncRecursive -let forceColor; -if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false')) { - forceColor = false; -} else if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - forceColor = true; +// Checks if cureent file was created recently +function checkRecentCreated(sources, index) { + var lookedSource = sources[index]; + return sources.slice(0, index).some(function (src) { + return path.basename(src) === path.basename(lookedSource); + }); } -if ('FORCE_COLOR' in env) { - forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0; + +function cpcheckcycle(sourceDir, srcFile) { + var srcFileStat = common.statNoFollowLinks(srcFile); + if (srcFileStat.isSymbolicLink()) { + // Do cycle check. For example: + // $ mkdir -p 1/2/3/4 + // $ cd 1/2/3/4 + // $ ln -s ../../3 link + // $ cd ../../../.. + // $ cp -RL 1 copy + var cyclecheck = common.statFollowLinks(srcFile); + if (cyclecheck.isDirectory()) { + var sourcerealpath = fs.realpathSync(sourceDir); + var symlinkrealpath = fs.realpathSync(srcFile); + var re = new RegExp(symlinkrealpath); + if (re.test(sourcerealpath)) { + return true; + } + } + } + return false; } -function translateLevel(level) { - if (level === 0) { - return false; - } +//@ +//@ ### cp([options,] source [, source ...], dest) +//@ ### cp([options,] source_array, dest) +//@ +//@ Available options: +//@ +//@ + `-f`: force (default behavior) +//@ + `-n`: no-clobber +//@ + `-u`: only copy if `source` is newer than `dest` +//@ + `-r`, `-R`: recursive +//@ + `-L`: follow symlinks +//@ + `-P`: don't follow symlinks +//@ +//@ Examples: +//@ +//@ ```javascript +//@ cp('file1', 'dir1'); +//@ cp('-R', 'path/to/dir/', '~/newCopy/'); +//@ cp('-Rf', '/tmp/*', '/usr/local/*', '/home/tmp'); +//@ cp('-Rf', ['/tmp/*', '/usr/local/*'], '/home/tmp'); // same as above +//@ ``` +//@ +//@ Copies files. +function _cp(options, sources, dest) { + // If we're missing -R, it actually implies -L (unless -P is explicit) + if (options.followsymlink) { + options.noFollowsymlink = false; + } + if (!options.recursive && !options.noFollowsymlink) { + options.followsymlink = true; + } - return { - level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; -} + // Get sources, dest + if (arguments.length < 3) { + common.error('missing and/or '); + } else { + sources = [].slice.call(arguments, 1, arguments.length - 1); + dest = arguments[arguments.length - 1]; + } -function supportsColor(stream) { - if (forceColor === false) { - return 0; - } + var destExists = fs.existsSync(dest); + var destStat = destExists && common.statFollowLinks(dest); - if (hasFlag('color=16m') || - hasFlag('color=full') || - hasFlag('color=truecolor')) { - return 3; - } + // Dest is not existing dir, but multiple sources given + if ((!destExists || !destStat.isDirectory()) && sources.length > 1) { + common.error('dest is not a directory (too many sources)'); + } - if (hasFlag('color=256')) { - return 2; - } + // Dest is an existing file, but -n is given + if (destExists && destStat.isFile() && options.no_force) { + return new common.ShellString('', '', 0); + } - if (stream && !stream.isTTY && forceColor !== true) { - return 0; - } + sources.forEach(function (src, srcIndex) { + if (!fs.existsSync(src)) { + if (src === '') src = "''"; // if src was empty string, display empty string + common.error('no such file or directory: ' + src, { continue: true }); + return; // skip file + } + var srcStat = common.statFollowLinks(src); + if (!options.noFollowsymlink && srcStat.isDirectory()) { + if (!options.recursive) { + // Non-Recursive + common.error("omitting directory '" + src + "'", { continue: true }); + } else { + // Recursive + // 'cp /a/source dest' should create 'source' in 'dest' + var newDest = (destStat && destStat.isDirectory()) ? + path.join(dest, path.basename(src)) : + dest; - const min = forceColor ? 1 : 0; + try { + common.statFollowLinks(path.dirname(dest)); + cpdirSyncRecursive(src, newDest, 0, { no_force: options.no_force, followsymlink: options.followsymlink }); + } catch (e) { + /* istanbul ignore next */ + common.error("cannot create directory '" + dest + "': No such file or directory"); + } + } + } else { + // If here, src is a file - if (process.platform === 'win32') { - // Node.js 7.5.0 is the first version of Node.js to include a patch to - // libuv that enables 256 color output on Windows. Anything earlier and it - // won't work. However, here we target Node.js 8 at minimum as it is an LTS - // release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows - // release that supports 256 colors. Windows 10 build 14931 is the first release - // that supports 16m/TrueColor. - const osRelease = os.release().split('.'); - if ( - Number(process.versions.node.split('.')[0]) >= 8 && - Number(osRelease[0]) >= 10 && - Number(osRelease[2]) >= 10586 - ) { - return Number(osRelease[2]) >= 14931 ? 3 : 2; - } + // When copying to '/path/dir': + // thisDest = '/path/dir/file1' + var thisDest = dest; + if (destStat && destStat.isDirectory()) { + thisDest = path.normalize(dest + '/' + path.basename(src)); + } - return 1; - } + var thisDestExists = fs.existsSync(thisDest); + if (thisDestExists && checkRecentCreated(sources, srcIndex)) { + // cannot overwrite file created recently in current execution, but we want to continue copying other files + if (!options.no_force) { + common.error("will not overwrite just-created '" + thisDest + "' with '" + src + "'", { continue: true }); + } + return; + } - if ('CI' in env) { - if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') { - return 1; - } + if (thisDestExists && options.no_force) { + return; // skip file + } - return min; - } + if (path.relative(src, thisDest) === '') { + // a file cannot be copied to itself, but we want to continue copying other files + common.error("'" + thisDest + "' and '" + src + "' are the same file", { continue: true }); + return; + } - if ('TEAMCITY_VERSION' in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; - } + copyFileSync(src, thisDest, options); + } + }); // forEach(src) - if (env.COLORTERM === 'truecolor') { - return 3; - } + return new common.ShellString('', common.state.error, common.state.errorCode); +} +module.exports = _cp; - if ('TERM_PROGRAM' in env) { - const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); - switch (env.TERM_PROGRAM) { - case 'iTerm.app': - return version >= 3 ? 3 : 2; - case 'Apple_Terminal': - return 2; - // No default - } - } +/***/ }), - if (/-256(color)?$/i.test(env.TERM)) { - return 2; - } +/***/ 41178: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { - return 1; - } +var common = __nccwpck_require__(53687); +var _cd = __nccwpck_require__(42051); +var path = __nccwpck_require__(71017); - if ('COLORTERM' in env) { - return 1; - } +common.register('dirs', _dirs, { + wrapOutput: false, +}); +common.register('pushd', _pushd, { + wrapOutput: false, +}); +common.register('popd', _popd, { + wrapOutput: false, +}); - if (env.TERM === 'dumb') { - return min; - } +// Pushd/popd/dirs internals +var _dirStack = []; - return min; +function _isStackIndex(index) { + return (/^[\-+]\d+$/).test(index); } -function getSupportLevel(stream) { - const level = supportsColor(stream); - return translateLevel(level); +function _parseStackIndex(index) { + if (_isStackIndex(index)) { + if (Math.abs(index) < _dirStack.length + 1) { // +1 for pwd + return (/^-/).test(index) ? Number(index) - 1 : Number(index); + } + common.error(index + ': directory stack index out of range'); + } else { + common.error(index + ': invalid number'); + } } -module.exports = { - supportsColor: getSupportLevel, - stdout: getSupportLevel(process.stdout), - stderr: getSupportLevel(process.stderr) -}; +function _actualDirStack() { + return [process.cwd()].concat(_dirStack); +} +//@ +//@ ### pushd([options,] [dir | '-N' | '+N']) +//@ +//@ Available options: +//@ +//@ + `-n`: Suppresses the normal change of directory when adding directories to the stack, so that only the stack is manipulated. +//@ + `-q`: Supresses output to the console. +//@ +//@ Arguments: +//@ +//@ + `dir`: Sets the current working directory to the top of the stack, then executes the equivalent of `cd dir`. +//@ + `+N`: Brings the Nth directory (counting from the left of the list printed by dirs, starting with zero) to the top of the list by rotating the stack. +//@ + `-N`: Brings the Nth directory (counting from the right of the list printed by dirs, starting with zero) to the top of the list by rotating the stack. +//@ +//@ Examples: +//@ +//@ ```javascript +//@ // process.cwd() === '/usr' +//@ pushd('/etc'); // Returns /etc /usr +//@ pushd('+1'); // Returns /usr /etc +//@ ``` +//@ +//@ Save the current directory on the top of the directory stack and then `cd` to `dir`. With no arguments, `pushd` exchanges the top two directories. Returns an array of paths in the stack. +function _pushd(options, dir) { + if (_isStackIndex(options)) { + dir = options; + options = ''; + } -/***/ }), + options = common.parseOptions(options, { + 'n': 'no-cd', + 'q': 'quiet', + }); -/***/ 81533: -/***/ ((module) => { + var dirs = _actualDirStack(); -"use strict"; + if (dir === '+0') { + return dirs; // +0 is a noop + } else if (!dir) { + if (dirs.length > 1) { + dirs = dirs.splice(1, 1).concat(dirs); + } else { + return common.error('no other directory'); + } + } else if (_isStackIndex(dir)) { + var n = _parseStackIndex(dir); + dirs = dirs.slice(n).concat(dirs.slice(0, n)); + } else { + if (options['no-cd']) { + dirs.splice(1, 0, dir); + } else { + dirs.unshift(dir); + } + } -module.exports = (flag, argv) => { - argv = argv || process.argv; - const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); - const pos = argv.indexOf(prefix + flag); - const terminatorPos = argv.indexOf('--'); - return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); -}; + if (options['no-cd']) { + dirs = dirs.slice(1); + } else { + dir = path.resolve(dirs.shift()); + _cd('', dir); + } + _dirStack = dirs; + return _dirs(options.quiet ? '-q' : ''); +} +exports.pushd = _pushd; -/***/ }), +//@ +//@ +//@ ### popd([options,] ['-N' | '+N']) +//@ +//@ Available options: +//@ +//@ + `-n`: Suppress the normal directory change when removing directories from the stack, so that only the stack is manipulated. +//@ + `-q`: Supresses output to the console. +//@ +//@ Arguments: +//@ +//@ + `+N`: Removes the Nth directory (counting from the left of the list printed by dirs), starting with zero. +//@ + `-N`: Removes the Nth directory (counting from the right of the list printed by dirs), starting with zero. +//@ +//@ Examples: +//@ +//@ ```javascript +//@ echo(process.cwd()); // '/usr' +//@ pushd('/etc'); // '/etc /usr' +//@ echo(process.cwd()); // '/etc' +//@ popd(); // '/usr' +//@ echo(process.cwd()); // '/usr' +//@ ``` +//@ +//@ When no arguments are given, `popd` removes the top directory from the stack and performs a `cd` to the new top directory. The elements are numbered from 0, starting at the first directory listed with dirs (i.e., `popd` is equivalent to `popd +0`). Returns an array of paths in the stack. +function _popd(options, index) { + if (_isStackIndex(options)) { + index = options; + options = ''; + } -/***/ 57882: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + options = common.parseOptions(options, { + 'n': 'no-cd', + 'q': 'quiet', + }); -var util = __nccwpck_require__(73837) -var bl = __nccwpck_require__(20336) -var headers = __nccwpck_require__(68860) + if (!_dirStack.length) { + return common.error('directory stack empty'); + } -var Writable = (__nccwpck_require__(51642).Writable) -var PassThrough = (__nccwpck_require__(51642).PassThrough) + index = _parseStackIndex(index || '+0'); -var noop = function () {} + if (options['no-cd'] || index > 0 || _dirStack.length + index === 0) { + index = index > 0 ? index - 1 : index; + _dirStack.splice(index, 1); + } else { + var dir = path.resolve(_dirStack.shift()); + _cd('', dir); + } -var overflow = function (size) { - size &= 511 - return size && 512 - size + return _dirs(options.quiet ? '-q' : ''); } +exports.popd = _popd; -var emptyStream = function (self, offset) { - var s = new Source(self, offset) - s.end() - return s -} +//@ +//@ +//@ ### dirs([options | '+N' | '-N']) +//@ +//@ Available options: +//@ +//@ + `-c`: Clears the directory stack by deleting all of the elements. +//@ + `-q`: Supresses output to the console. +//@ +//@ Arguments: +//@ +//@ + `+N`: Displays the Nth directory (counting from the left of the list printed by dirs when invoked without options), starting with zero. +//@ + `-N`: Displays the Nth directory (counting from the right of the list printed by dirs when invoked without options), starting with zero. +//@ +//@ Display the list of currently remembered directories. Returns an array of paths in the stack, or a single path if `+N` or `-N` was specified. +//@ +//@ See also: `pushd`, `popd` +function _dirs(options, index) { + if (_isStackIndex(options)) { + index = options; + options = ''; + } -var mixinPax = function (header, pax) { - if (pax.path) header.name = pax.path - if (pax.linkpath) header.linkname = pax.linkpath - if (pax.size) header.size = parseInt(pax.size, 10) - header.pax = pax - return header -} + options = common.parseOptions(options, { + 'c': 'clear', + 'q': 'quiet', + }); -var Source = function (self, offset) { - this._parent = self - this.offset = offset - PassThrough.call(this, { autoDestroy: false }) -} + if (options.clear) { + _dirStack = []; + return _dirStack; + } -util.inherits(Source, PassThrough) + var stack = _actualDirStack(); -Source.prototype.destroy = function (err) { - this._parent.destroy(err) -} + if (index) { + index = _parseStackIndex(index); -var Extract = function (opts) { - if (!(this instanceof Extract)) return new Extract(opts) - Writable.call(this, opts) + if (index < 0) { + index = stack.length + index; + } - opts = opts || {} + if (!options.quiet) { + common.log(stack[index]); + } + return stack[index]; + } - this._offset = 0 - this._buffer = bl() - this._missing = 0 - this._partial = false - this._onparse = noop - this._header = null - this._stream = null - this._overflow = null - this._cb = null - this._locked = false - this._destroyed = false - this._pax = null - this._paxGlobal = null - this._gnuLongPath = null - this._gnuLongLinkPath = null + if (!options.quiet) { + common.log(stack.join(' ')); + } - var self = this - var b = self._buffer + return stack; +} +exports.dirs = _dirs; - var oncontinue = function () { - self._continue() - } - var onunlock = function (err) { - self._locked = false - if (err) return self.destroy(err) - if (!self._stream) oncontinue() - } +/***/ }), - var onstreamend = function () { - self._stream = null - var drain = overflow(self._header.size) - if (drain) self._parse(drain, ondrain) - else self._parse(512, onheader) - if (!self._locked) oncontinue() - } - - var ondrain = function () { - self._buffer.consume(overflow(self._header.size)) - self._parse(512, onheader) - oncontinue() - } - - var onpaxglobalheader = function () { - var size = self._header.size - self._paxGlobal = headers.decodePax(b.slice(0, size)) - b.consume(size) - onstreamend() - } +/***/ 10243: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - var onpaxheader = function () { - var size = self._header.size - self._pax = headers.decodePax(b.slice(0, size)) - if (self._paxGlobal) self._pax = Object.assign({}, self._paxGlobal, self._pax) - b.consume(size) - onstreamend() - } +var format = (__nccwpck_require__(73837).format); - var ongnulongpath = function () { - var size = self._header.size - this._gnuLongPath = headers.decodeLongPath(b.slice(0, size), opts.filenameEncoding) - b.consume(size) - onstreamend() - } +var common = __nccwpck_require__(53687); - var ongnulonglinkpath = function () { - var size = self._header.size - this._gnuLongLinkPath = headers.decodeLongPath(b.slice(0, size), opts.filenameEncoding) - b.consume(size) - onstreamend() - } +common.register('echo', _echo, { + allowGlobbing: false, +}); - var onheader = function () { - var offset = self._offset - var header - try { - header = self._header = headers.decode(b.slice(0, 512), opts.filenameEncoding, opts.allowUnknownFormat) - } catch (err) { - self.emit('error', err) - } - b.consume(512) +//@ +//@ ### echo([options,] string [, string ...]) +//@ +//@ Available options: +//@ +//@ + `-e`: interpret backslash escapes (default) +//@ + `-n`: remove trailing newline from output +//@ +//@ Examples: +//@ +//@ ```javascript +//@ echo('hello world'); +//@ var str = echo('hello world'); +//@ echo('-n', 'no newline at end'); +//@ ``` +//@ +//@ Prints `string` to stdout, and returns string with additional utility methods +//@ like `.to()`. +function _echo(opts) { + // allow strings starting with '-', see issue #20 + var messages = [].slice.call(arguments, opts ? 0 : 1); + var options = {}; - if (!header) { - self._parse(512, onheader) - oncontinue() - return - } - if (header.type === 'gnu-long-path') { - self._parse(header.size, ongnulongpath) - oncontinue() - return - } - if (header.type === 'gnu-long-link-path') { - self._parse(header.size, ongnulonglinkpath) - oncontinue() - return - } - if (header.type === 'pax-global-header') { - self._parse(header.size, onpaxglobalheader) - oncontinue() - return - } - if (header.type === 'pax-header') { - self._parse(header.size, onpaxheader) - oncontinue() - return - } + // If the first argument starts with '-', parse it as options string. + // If parseOptions throws, it wasn't an options string. + try { + options = common.parseOptions(messages[0], { + 'e': 'escapes', + 'n': 'no_newline', + }, { + silent: true, + }); - if (self._gnuLongPath) { - header.name = self._gnuLongPath - self._gnuLongPath = null + // Allow null to be echoed + if (messages[0]) { + messages.shift(); } + } catch (_) { + // Clear out error if an error occurred + common.state.error = null; + } - if (self._gnuLongLinkPath) { - header.linkname = self._gnuLongLinkPath - self._gnuLongLinkPath = null - } + var output = format.apply(null, messages); - if (self._pax) { - self._header = header = mixinPax(header, self._pax) - self._pax = null - } + // Add newline if -n is not passed. + if (!options.no_newline) { + output += '\n'; + } - self._locked = true + process.stdout.write(output); - if (!header.size || header.type === 'directory') { - self._parse(512, onheader) - self.emit('entry', header, emptyStream(self, offset), onunlock) - return - } + return output; +} - self._stream = new Source(self, offset) +module.exports = _echo; - self.emit('entry', header, self._stream, onunlock) - self._parse(header.size, onstreamend) - oncontinue() - } - this._onheader = onheader - this._parse(512, onheader) -} +/***/ }), -util.inherits(Extract, Writable) +/***/ 10232: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -Extract.prototype.destroy = function (err) { - if (this._destroyed) return - this._destroyed = true +var common = __nccwpck_require__(53687); - if (err) this.emit('error', err) - this.emit('close') - if (this._stream) this._stream.emit('close') +//@ +//@ ### error() +//@ +//@ Tests if error occurred in the last command. Returns a truthy value if an +//@ error returned, or a falsy value otherwise. +//@ +//@ **Note**: do not rely on the +//@ return value to be an error message. If you need the last error message, use +//@ the `.stderr` attribute from the last command's return value instead. +function error() { + return common.state.error; } +module.exports = error; -Extract.prototype._parse = function (size, onparse) { - if (this._destroyed) return - this._offset += size - this._missing = size - if (onparse === this._onheader) this._partial = false - this._onparse = onparse -} -Extract.prototype._continue = function () { - if (this._destroyed) return - var cb = this._cb - this._cb = noop - if (this._overflow) this._write(this._overflow, undefined, cb) - else cb() -} +/***/ }), -Extract.prototype._write = function (data, enc, cb) { - if (this._destroyed) return +/***/ 69607: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - var s = this._stream - var b = this._buffer - var missing = this._missing - if (data.length) this._partial = true +/* module decorator */ module = __nccwpck_require__.nmd(module); +if (require.main !== module) { + throw new Error('This file should not be required'); +} - // we do not reach end-of-chunk now. just forward it +var childProcess = __nccwpck_require__(32081); +var fs = __nccwpck_require__(57147); - if (data.length < missing) { - this._missing -= data.length - this._overflow = null - if (s) return s.write(data, cb) - b.append(data) - return cb() - } +var paramFilePath = process.argv[2]; - // end-of-chunk. the parser should call cb. +var serializedParams = fs.readFileSync(paramFilePath, 'utf8'); +var params = JSON.parse(serializedParams); - this._cb = cb - this._missing = 0 +var cmd = params.command; +var execOptions = params.execOptions; +var pipe = params.pipe; +var stdoutFile = params.stdoutFile; +var stderrFile = params.stderrFile; - var overflow = null - if (data.length > missing) { - overflow = data.slice(missing) - data = data.slice(0, missing) +var c = childProcess.exec(cmd, execOptions, function (err) { + if (!err) { + process.exitCode = 0; + } else if (err.code === undefined) { + process.exitCode = 1; + } else { + process.exitCode = err.code; } +}); - if (s) s.end(data) - else b.append(data) +var stdoutStream = fs.createWriteStream(stdoutFile); +var stderrStream = fs.createWriteStream(stderrFile); - this._overflow = overflow - this._onparse() -} +c.stdout.pipe(stdoutStream); +c.stderr.pipe(stderrStream); +c.stdout.pipe(process.stdout); +c.stderr.pipe(process.stderr); -Extract.prototype._final = function (cb) { - if (this._partial) return this.destroy(new Error('Unexpected end of data')) - cb() +if (pipe) { + c.stdin.end(pipe); } -module.exports = Extract - /***/ }), -/***/ 68860: -/***/ ((__unused_webpack_module, exports) => { +/***/ 10896: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var alloc = Buffer.alloc +var common = __nccwpck_require__(53687); +var _tempDir = (__nccwpck_require__(76150).tempDir); +var _pwd = __nccwpck_require__(58553); +var path = __nccwpck_require__(71017); +var fs = __nccwpck_require__(57147); +var child = __nccwpck_require__(32081); -var ZEROS = '0000000000000000000' -var SEVENS = '7777777777777777777' -var ZERO_OFFSET = '0'.charCodeAt(0) -var USTAR_MAGIC = Buffer.from('ustar\x00', 'binary') -var USTAR_VER = Buffer.from('00', 'binary') -var GNU_MAGIC = Buffer.from('ustar\x20', 'binary') -var GNU_VER = Buffer.from('\x20\x00', 'binary') -var MASK = parseInt('7777', 8) -var MAGIC_OFFSET = 257 -var VERSION_OFFSET = 263 +var DEFAULT_MAXBUFFER_SIZE = 20 * 1024 * 1024; +var DEFAULT_ERROR_CODE = 1; -var clamp = function (index, len, defaultValue) { - if (typeof index !== 'number') return defaultValue - index = ~~index // Coerce to integer. - if (index >= len) return len - if (index >= 0) return index - index += len - if (index >= 0) return index - return 0 -} +common.register('exec', _exec, { + unix: false, + canReceivePipe: true, + wrapOutput: false, +}); -var toType = function (flag) { - switch (flag) { - case 0: - return 'file' - case 1: - return 'link' - case 2: - return 'symlink' - case 3: - return 'character-device' - case 4: - return 'block-device' - case 5: - return 'directory' - case 6: - return 'fifo' - case 7: - return 'contiguous-file' - case 72: - return 'pax-header' - case 55: - return 'pax-global-header' - case 27: - return 'gnu-long-link-path' - case 28: - case 30: - return 'gnu-long-path' +// We use this function to run `exec` synchronously while also providing realtime +// output. +function execSync(cmd, opts, pipe) { + if (!common.config.execPath) { + common.error('Unable to find a path to the node binary. Please manually set config.execPath'); } - return null -} + var tempDir = _tempDir(); + var paramsFile = path.resolve(tempDir + '/' + common.randomFileName()); + var stderrFile = path.resolve(tempDir + '/' + common.randomFileName()); + var stdoutFile = path.resolve(tempDir + '/' + common.randomFileName()); -var toTypeflag = function (flag) { - switch (flag) { - case 'file': - return 0 - case 'link': - return 1 - case 'symlink': - return 2 - case 'character-device': - return 3 - case 'block-device': - return 4 - case 'directory': - return 5 - case 'fifo': - return 6 - case 'contiguous-file': - return 7 - case 'pax-header': - return 72 - } + opts = common.extend({ + silent: common.config.silent, + cwd: _pwd().toString(), + env: process.env, + maxBuffer: DEFAULT_MAXBUFFER_SIZE, + encoding: 'utf8', + }, opts); - return 0 -} + if (fs.existsSync(paramsFile)) common.unlinkSync(paramsFile); + if (fs.existsSync(stderrFile)) common.unlinkSync(stderrFile); + if (fs.existsSync(stdoutFile)) common.unlinkSync(stdoutFile); -var indexOf = function (block, num, offset, end) { - for (; offset < end; offset++) { - if (block[offset] === num) return offset - } - return end -} + opts.cwd = path.resolve(opts.cwd); -var cksum = function (block) { - var sum = 8 * 32 - for (var i = 0; i < 148; i++) sum += block[i] - for (var j = 156; j < 512; j++) sum += block[j] - return sum -} + var paramsToSerialize = { + command: cmd, + execOptions: opts, + pipe: pipe, + stdoutFile: stdoutFile, + stderrFile: stderrFile, + }; -var encodeOct = function (val, n) { - val = val.toString(8) - if (val.length > n) return SEVENS.slice(0, n) + ' ' - else return ZEROS.slice(0, n - val.length) + val + ' ' -} + // Create the files and ensure these are locked down (for read and write) to + // the current user. The main concerns here are: + // + // * If we execute a command which prints sensitive output, then + // stdoutFile/stderrFile must not be readable by other users. + // * paramsFile must not be readable by other users, or else they can read it + // to figure out the path for stdoutFile/stderrFile and create these first + // (locked down to their own access), which will crash exec() when it tries + // to write to the files. + function writeFileLockedDown(filePath, data) { + fs.writeFileSync(filePath, data, { + encoding: 'utf8', + mode: parseInt('600', 8), + }); + } + writeFileLockedDown(stdoutFile, ''); + writeFileLockedDown(stderrFile, ''); + writeFileLockedDown(paramsFile, JSON.stringify(paramsToSerialize)); -/* Copied from the node-tar repo and modified to meet - * tar-stream coding standard. - * - * Source: https://github.com/npm/node-tar/blob/51b6627a1f357d2eb433e7378e5f05e83b7aa6cd/lib/header.js#L349 - */ -function parse256 (buf) { - // first byte MUST be either 80 or FF - // 80 for positive, FF for 2's comp - var positive - if (buf[0] === 0x80) positive = true - else if (buf[0] === 0xFF) positive = false - else return null + var execArgs = [ + __nccwpck_require__.ab + "exec-child.js", + paramsFile, + ]; - // build up a base-256 tuple from the least sig to the highest - var tuple = [] - for (var i = buf.length - 1; i > 0; i--) { - var byte = buf[i] - if (positive) tuple.push(byte) - else tuple.push(0xFF - byte) + /* istanbul ignore else */ + if (opts.silent) { + opts.stdio = 'ignore'; + } else { + opts.stdio = [0, 1, 2]; } - var sum = 0 - var l = tuple.length - for (i = 0; i < l; i++) { - sum += tuple[i] * Math.pow(256, i) - } + var code = 0; - return positive ? sum : -1 * sum -} + // Welcome to the future + try { + // Bad things if we pass in a `shell` option to child_process.execFileSync, + // so we need to explicitly remove it here. + delete opts.shell; -var decodeOct = function (val, offset, length) { - val = val.slice(offset, offset + length) - offset = 0 + child.execFileSync(common.config.execPath, execArgs, opts); + } catch (e) { + // Commands with non-zero exit code raise an exception. + code = e.status || DEFAULT_ERROR_CODE; + } - // If prefixed with 0x80 then parse as a base-256 integer - if (val[offset] & 0x80) { - return parse256(val) + // fs.readFileSync uses buffer encoding by default, so call + // it without the encoding option if the encoding is 'buffer'. + // Also, if the exec timeout is too short for node to start up, + // the files will not be created, so these calls will throw. + var stdout = ''; + var stderr = ''; + if (opts.encoding === 'buffer') { + stdout = fs.readFileSync(stdoutFile); + stderr = fs.readFileSync(stderrFile); } else { - // Older versions of tar can prefix with spaces - while (offset < val.length && val[offset] === 32) offset++ - var end = clamp(indexOf(val, 32, offset, val.length), val.length, val.length) - while (offset < end && val[offset] === 0) offset++ - if (end === offset) return 0 - return parseInt(val.slice(offset, end).toString(), 8) + stdout = fs.readFileSync(stdoutFile, opts.encoding); + stderr = fs.readFileSync(stderrFile, opts.encoding); } -} - -var decodeStr = function (val, offset, length, encoding) { - return val.slice(offset, indexOf(val, 0, offset, offset + length)).toString(encoding) -} - -var addLength = function (str) { - var len = Buffer.byteLength(str) - var digits = Math.floor(Math.log(len) / Math.log(10)) + 1 - if (len + digits >= Math.pow(10, digits)) digits++ - - return (len + digits) + str -} -exports.decodeLongPath = function (buf, encoding) { - return decodeStr(buf, 0, buf.length, encoding) -} + // No biggie if we can't erase the files now -- they're in a temp dir anyway + // and we locked down permissions (see the note above). + try { common.unlinkSync(paramsFile); } catch (e) {} + try { common.unlinkSync(stderrFile); } catch (e) {} + try { common.unlinkSync(stdoutFile); } catch (e) {} -exports.encodePax = function (opts) { // TODO: encode more stuff in pax - var result = '' - if (opts.name) result += addLength(' path=' + opts.name + '\n') - if (opts.linkname) result += addLength(' linkpath=' + opts.linkname + '\n') - var pax = opts.pax - if (pax) { - for (var key in pax) { - result += addLength(' ' + key + '=' + pax[key] + '\n') - } + if (code !== 0) { + // Note: `silent` should be unconditionally true to avoid double-printing + // the command's stderr, and to avoid printing any stderr when the user has + // set `shell.config.silent`. + common.error(stderr, code, { continue: true, silent: true }); } - return Buffer.from(result) -} + var obj = common.ShellString(stdout, stderr, code); + return obj; +} // execSync() -exports.decodePax = function (buf) { - var result = {} +// Wrapper around exec() to enable echoing output to console in real time +function execAsync(cmd, opts, pipe, callback) { + opts = common.extend({ + silent: common.config.silent, + cwd: _pwd().toString(), + env: process.env, + maxBuffer: DEFAULT_MAXBUFFER_SIZE, + encoding: 'utf8', + }, opts); - while (buf.length) { - var i = 0 - while (i < buf.length && buf[i] !== 32) i++ - var len = parseInt(buf.slice(0, i).toString(), 10) - if (!len) return result + var c = child.exec(cmd, opts, function (err, stdout, stderr) { + if (callback) { + if (!err) { + callback(0, stdout, stderr); + } else if (err.code === undefined) { + // See issue #536 + /* istanbul ignore next */ + callback(1, stdout, stderr); + } else { + callback(err.code, stdout, stderr); + } + } + }); - var b = buf.slice(i + 1, len - 1).toString() - var keyIndex = b.indexOf('=') - if (keyIndex === -1) return result - result[b.slice(0, keyIndex)] = b.slice(keyIndex + 1) + if (pipe) c.stdin.end(pipe); - buf = buf.slice(len) + if (!opts.silent) { + c.stdout.pipe(process.stdout); + c.stderr.pipe(process.stderr); } - return result + return c; } -exports.encode = function (opts) { - var buf = alloc(512) - var name = opts.name - var prefix = '' +//@ +//@ ### exec(command [, options] [, callback]) +//@ +//@ Available options: +//@ +//@ + `async`: Asynchronous execution. If a callback is provided, it will be set to +//@ `true`, regardless of the passed value (default: `false`). +//@ + `silent`: Do not echo program output to console (default: `false`). +//@ + `encoding`: Character encoding to use. Affects the values returned to stdout and stderr, and +//@ what is written to stdout and stderr when not in silent mode (default: `'utf8'`). +//@ + and any option available to Node.js's +//@ [`child_process.exec()`](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback) +//@ +//@ Examples: +//@ +//@ ```javascript +//@ var version = exec('node --version', {silent:true}).stdout; +//@ +//@ var child = exec('some_long_running_process', {async:true}); +//@ child.stdout.on('data', function(data) { +//@ /* ... do something with data ... */ +//@ }); +//@ +//@ exec('some_long_running_process', function(code, stdout, stderr) { +//@ console.log('Exit code:', code); +//@ console.log('Program output:', stdout); +//@ console.log('Program stderr:', stderr); +//@ }); +//@ ``` +//@ +//@ Executes the given `command` _synchronously_, unless otherwise specified. When in synchronous +//@ mode, this returns a `ShellString` (compatible with ShellJS v0.6.x, which returns an object +//@ of the form `{ code:..., stdout:... , stderr:... }`). Otherwise, this returns the child process +//@ object, and the `callback` receives the arguments `(code, stdout, stderr)`. +//@ +//@ Not seeing the behavior you want? `exec()` runs everything through `sh` +//@ by default (or `cmd.exe` on Windows), which differs from `bash`. If you +//@ need bash-specific behavior, try out the `{shell: 'path/to/bash'}` option. +function _exec(command, options, callback) { + options = options || {}; + if (!command) common.error('must specify command'); - if (opts.typeflag === 5 && name[name.length - 1] !== '/') name += '/' - if (Buffer.byteLength(name) !== name.length) return null // utf-8 + var pipe = common.readFromPipe(); - while (Buffer.byteLength(name) > 100) { - var i = name.indexOf('/') - if (i === -1) return null - prefix += prefix ? '/' + name.slice(0, i) : name.slice(0, i) - name = name.slice(i + 1) + // Callback is defined instead of options. + if (typeof options === 'function') { + callback = options; + options = { async: true }; } - if (Buffer.byteLength(name) > 100 || Buffer.byteLength(prefix) > 155) return null - if (opts.linkname && Buffer.byteLength(opts.linkname) > 100) return null - - buf.write(name) - buf.write(encodeOct(opts.mode & MASK, 6), 100) - buf.write(encodeOct(opts.uid, 6), 108) - buf.write(encodeOct(opts.gid, 6), 116) - buf.write(encodeOct(opts.size, 11), 124) - buf.write(encodeOct((opts.mtime.getTime() / 1000) | 0, 11), 136) - - buf[156] = ZERO_OFFSET + toTypeflag(opts.type) - - if (opts.linkname) buf.write(opts.linkname, 157) - - USTAR_MAGIC.copy(buf, MAGIC_OFFSET) - USTAR_VER.copy(buf, VERSION_OFFSET) - if (opts.uname) buf.write(opts.uname, 265) - if (opts.gname) buf.write(opts.gname, 297) - buf.write(encodeOct(opts.devmajor || 0, 6), 329) - buf.write(encodeOct(opts.devminor || 0, 6), 337) - - if (prefix) buf.write(prefix, 345) + // Callback is defined with options. + if (typeof options === 'object' && typeof callback === 'function') { + options.async = true; + } - buf.write(encodeOct(cksum(buf), 6), 148) + options = common.extend({ + silent: common.config.silent, + async: false, + }, options); - return buf + if (options.async) { + return execAsync(command, options, pipe, callback); + } else { + return execSync(command, options, pipe); + } } +module.exports = _exec; -exports.decode = function (buf, filenameEncoding, allowUnknownFormat) { - var typeflag = buf[156] === 0 ? 0 : buf[156] - ZERO_OFFSET - var name = decodeStr(buf, 0, 100, filenameEncoding) - var mode = decodeOct(buf, 100, 8) - var uid = decodeOct(buf, 108, 8) - var gid = decodeOct(buf, 116, 8) - var size = decodeOct(buf, 124, 12) - var mtime = decodeOct(buf, 136, 12) - var type = toType(typeflag) - var linkname = buf[157] === 0 ? null : decodeStr(buf, 157, 100, filenameEncoding) - var uname = decodeStr(buf, 265, 32) - var gname = decodeStr(buf, 297, 32) - var devmajor = decodeOct(buf, 329, 8) - var devminor = decodeOct(buf, 337, 8) +/***/ }), - var c = cksum(buf) +/***/ 47838: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // checksum is still initial value if header was null. - if (c === 8 * 32) return null +var path = __nccwpck_require__(71017); +var common = __nccwpck_require__(53687); +var _ls = __nccwpck_require__(35561); - // valid checksum - if (c !== decodeOct(buf, 148, 8)) throw new Error('Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?') +common.register('find', _find, {}); - if (USTAR_MAGIC.compare(buf, MAGIC_OFFSET, MAGIC_OFFSET + 6) === 0) { - // ustar (posix) format. - // prepend prefix, if present. - if (buf[345]) name = decodeStr(buf, 345, 155, filenameEncoding) + '/' + name - } else if (GNU_MAGIC.compare(buf, MAGIC_OFFSET, MAGIC_OFFSET + 6) === 0 && - GNU_VER.compare(buf, VERSION_OFFSET, VERSION_OFFSET + 2) === 0) { - // 'gnu'/'oldgnu' format. Similar to ustar, but has support for incremental and - // multi-volume tarballs. - } else { - if (!allowUnknownFormat) { - throw new Error('Invalid tar header: unknown format.') - } +//@ +//@ ### find(path [, path ...]) +//@ ### find(path_array) +//@ +//@ Examples: +//@ +//@ ```javascript +//@ find('src', 'lib'); +//@ find(['src', 'lib']); // same as above +//@ find('.').filter(function(file) { return file.match(/\.js$/); }); +//@ ``` +//@ +//@ Returns array of all files (however deep) in the given paths. +//@ +//@ The main difference from `ls('-R', path)` is that the resulting file names +//@ include the base directories (e.g., `lib/resources/file1` instead of just `file1`). +function _find(options, paths) { + if (!paths) { + common.error('no path specified'); + } else if (typeof paths === 'string') { + paths = [].slice.call(arguments, 1); } - // to support old tar versions that use trailing / to indicate dirs - if (typeflag === 0 && name && name[name.length - 1] === '/') typeflag = 5 + var list = []; - return { - name, - mode, - uid, - gid, - size, - mtime: new Date(1000 * mtime), - type, - linkname, - uname, - gname, - devmajor, - devminor + function pushFile(file) { + if (process.platform === 'win32') { + file = file.replace(/\\/g, '/'); + } + list.push(file); } -} + // why not simply do `ls('-R', paths)`? because the output wouldn't give the base dirs + // to get the base dir in the output, we need instead `ls('-R', 'dir/*')` for every directory -/***/ }), + paths.forEach(function (file) { + var stat; + try { + stat = common.statFollowLinks(file); + } catch (e) { + common.error('no such file or directory: ' + file); + } -/***/ 2283: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + pushFile(file); -exports.extract = __nccwpck_require__(57882) -exports.pack = __nccwpck_require__(94930) + if (stat.isDirectory()) { + _ls({ recursive: true, all: true }, file).forEach(function (subfile) { + pushFile(path.join(file, subfile)); + }); + } + }); + + return list; +} +module.exports = _find; /***/ }), -/***/ 94930: +/***/ 17417: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var constants = __nccwpck_require__(73186) -var eos = __nccwpck_require__(81205) -var inherits = __nccwpck_require__(44124) -var alloc = Buffer.alloc - -var Readable = (__nccwpck_require__(51642).Readable) -var Writable = (__nccwpck_require__(51642).Writable) -var StringDecoder = (__nccwpck_require__(71576).StringDecoder) +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); -var headers = __nccwpck_require__(68860) +common.register('grep', _grep, { + globStart: 2, // don't glob-expand the regex + canReceivePipe: true, + cmdOptions: { + 'v': 'inverse', + 'l': 'nameOnly', + 'i': 'ignoreCase', + }, +}); -var DMODE = parseInt('755', 8) -var FMODE = parseInt('644', 8) +//@ +//@ ### grep([options,] regex_filter, file [, file ...]) +//@ ### grep([options,] regex_filter, file_array) +//@ +//@ Available options: +//@ +//@ + `-v`: Invert `regex_filter` (only print non-matching lines). +//@ + `-l`: Print only filenames of matching files. +//@ + `-i`: Ignore case. +//@ +//@ Examples: +//@ +//@ ```javascript +//@ grep('-v', 'GLOBAL_VARIABLE', '*.js'); +//@ grep('GLOBAL_VARIABLE', '*.js'); +//@ ``` +//@ +//@ Reads input string from given files and returns a string containing all lines of the +//@ file that match the given `regex_filter`. +function _grep(options, regex, files) { + // Check if this is coming from a pipe + var pipe = common.readFromPipe(); -var END_OF_TAR = alloc(1024) + if (!files && !pipe) common.error('no paths given', 2); -var noop = function () {} + files = [].slice.call(arguments, 2); -var overflow = function (self, size) { - size &= 511 - if (size) self.push(END_OF_TAR.slice(0, 512 - size)) -} + if (pipe) { + files.unshift('-'); + } -function modeToType (mode) { - switch (mode & constants.S_IFMT) { - case constants.S_IFBLK: return 'block-device' - case constants.S_IFCHR: return 'character-device' - case constants.S_IFDIR: return 'directory' - case constants.S_IFIFO: return 'fifo' - case constants.S_IFLNK: return 'symlink' + var grep = []; + if (options.ignoreCase) { + regex = new RegExp(regex, 'i'); } + files.forEach(function (file) { + if (!fs.existsSync(file) && file !== '-') { + common.error('no such file or directory: ' + file, 2, { continue: true }); + return; + } - return 'file' -} + var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8'); + if (options.nameOnly) { + if (contents.match(regex)) { + grep.push(file); + } + } else { + var lines = contents.split('\n'); + lines.forEach(function (line) { + var matched = line.match(regex); + if ((options.inverse && !matched) || (!options.inverse && matched)) { + grep.push(line); + } + }); + } + }); -var Sink = function (to) { - Writable.call(this) - this.written = 0 - this._to = to - this._destroyed = false + return grep.join('\n') + '\n'; } +module.exports = _grep; -inherits(Sink, Writable) -Sink.prototype._write = function (data, enc, cb) { - this.written += data.length - if (this._to.push(data)) return cb() - this._to._drain = cb -} +/***/ }), -Sink.prototype.destroy = function () { - if (this._destroyed) return - this._destroyed = true - this.emit('close') -} +/***/ 6613: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var LinkSink = function () { - Writable.call(this) - this.linkname = '' - this._decoder = new StringDecoder('utf-8') - this._destroyed = false -} +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); -inherits(LinkSink, Writable) +common.register('head', _head, { + canReceivePipe: true, + cmdOptions: { + 'n': 'numLines', + }, +}); -LinkSink.prototype._write = function (data, enc, cb) { - this.linkname += this._decoder.write(data) - cb() -} +// Reads |numLines| lines or the entire file, whichever is less. +function readSomeLines(file, numLines) { + var buf = common.buffer(); + var bufLength = buf.length; + var bytesRead = bufLength; + var pos = 0; -LinkSink.prototype.destroy = function () { - if (this._destroyed) return - this._destroyed = true - this.emit('close') -} + var fdr = fs.openSync(file, 'r'); + var numLinesRead = 0; + var ret = ''; + while (bytesRead === bufLength && numLinesRead < numLines) { + bytesRead = fs.readSync(fdr, buf, 0, bufLength, pos); + var bufStr = buf.toString('utf8', 0, bytesRead); + numLinesRead += bufStr.split('\n').length - 1; + ret += bufStr; + pos += bytesRead; + } -var Void = function () { - Writable.call(this) - this._destroyed = false + fs.closeSync(fdr); + return ret; } -inherits(Void, Writable) +//@ +//@ ### head([{'-n': \},] file [, file ...]) +//@ ### head([{'-n': \},] file_array) +//@ +//@ Available options: +//@ +//@ + `-n `: Show the first `` lines of the files +//@ +//@ Examples: +//@ +//@ ```javascript +//@ var str = head({'-n': 1}, 'file*.txt'); +//@ var str = head('file1', 'file2'); +//@ var str = head(['file1', 'file2']); // same as above +//@ ``` +//@ +//@ Read the start of a file. +function _head(options, files) { + var head = []; + var pipe = common.readFromPipe(); -Void.prototype._write = function (data, enc, cb) { - cb(new Error('No body allowed for this entry')) -} + if (!files && !pipe) common.error('no paths given'); -Void.prototype.destroy = function () { - if (this._destroyed) return - this._destroyed = true - this.emit('close') -} + var idx = 1; + if (options.numLines === true) { + idx = 2; + options.numLines = Number(arguments[1]); + } else if (options.numLines === false) { + options.numLines = 10; + } + files = [].slice.call(arguments, idx); -var Pack = function (opts) { - if (!(this instanceof Pack)) return new Pack(opts) - Readable.call(this, opts) + if (pipe) { + files.unshift('-'); + } - this._drain = noop - this._finalized = false - this._finalizing = false - this._destroyed = false - this._stream = null -} + var shouldAppendNewline = false; + files.forEach(function (file) { + if (file !== '-') { + if (!fs.existsSync(file)) { + common.error('no such file or directory: ' + file, { continue: true }); + return; + } else if (common.statFollowLinks(file).isDirectory()) { + common.error("error reading '" + file + "': Is a directory", { + continue: true, + }); + return; + } + } -inherits(Pack, Readable) + var contents; + if (file === '-') { + contents = pipe; + } else if (options.numLines < 0) { + contents = fs.readFileSync(file, 'utf8'); + } else { + contents = readSomeLines(file, options.numLines); + } -Pack.prototype.entry = function (header, buffer, callback) { - if (this._stream) throw new Error('already piping an entry') - if (this._finalized || this._destroyed) return + var lines = contents.split('\n'); + var hasTrailingNewline = (lines[lines.length - 1] === ''); + if (hasTrailingNewline) { + lines.pop(); + } + shouldAppendNewline = (hasTrailingNewline || options.numLines < lines.length); - if (typeof buffer === 'function') { - callback = buffer - buffer = null + head = head.concat(lines.slice(0, options.numLines)); + }); + + if (shouldAppendNewline) { + head.push(''); // to add a trailing newline once we join } + return head.join('\n'); +} +module.exports = _head; - if (!callback) callback = noop - var self = this +/***/ }), - if (!header.size || header.type === 'symlink') header.size = 0 - if (!header.type) header.type = modeToType(header.mode) - if (!header.mode) header.mode = header.type === 'directory' ? DMODE : FMODE - if (!header.uid) header.uid = 0 - if (!header.gid) header.gid = 0 - if (!header.mtime) header.mtime = new Date() +/***/ 15787: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (typeof buffer === 'string') buffer = Buffer.from(buffer) - if (Buffer.isBuffer(buffer)) { - header.size = buffer.length - this._encode(header) - var ok = this.push(buffer) - overflow(self, header.size) - if (ok) process.nextTick(callback) - else this._drain = callback - return new Void() - } +var fs = __nccwpck_require__(57147); +var path = __nccwpck_require__(71017); +var common = __nccwpck_require__(53687); - if (header.type === 'symlink' && !header.linkname) { - var linkSink = new LinkSink() - eos(linkSink, function (err) { - if (err) { // stream was closed - self.destroy() - return callback(err) - } - - header.linkname = linkSink.linkname - self._encode(header) - callback() - }) +common.register('ln', _ln, { + cmdOptions: { + 's': 'symlink', + 'f': 'force', + }, +}); - return linkSink +//@ +//@ ### ln([options,] source, dest) +//@ +//@ Available options: +//@ +//@ + `-s`: symlink +//@ + `-f`: force +//@ +//@ Examples: +//@ +//@ ```javascript +//@ ln('file', 'newlink'); +//@ ln('-sf', 'file', 'existing'); +//@ ``` +//@ +//@ Links `source` to `dest`. Use `-f` to force the link, should `dest` already exist. +function _ln(options, source, dest) { + if (!source || !dest) { + common.error('Missing and/or '); } - this._encode(header) + source = String(source); + var sourcePath = path.normalize(source).replace(RegExp(path.sep + '$'), ''); + var isAbsolute = (path.resolve(source) === sourcePath); + dest = path.resolve(process.cwd(), String(dest)); - if (header.type !== 'file' && header.type !== 'contiguous-file') { - process.nextTick(callback) - return new Void() + if (fs.existsSync(dest)) { + if (!options.force) { + common.error('Destination file exists', { continue: true }); + } + + fs.unlinkSync(dest); } - var sink = new Sink(this) + if (options.symlink) { + var isWindows = process.platform === 'win32'; + var linkType = isWindows ? 'file' : null; + var resolvedSourcePath = isAbsolute ? sourcePath : path.resolve(process.cwd(), path.dirname(dest), source); + if (!fs.existsSync(resolvedSourcePath)) { + common.error('Source file does not exist', { continue: true }); + } else if (isWindows && common.statFollowLinks(resolvedSourcePath).isDirectory()) { + linkType = 'junction'; + } - this._stream = sink + try { + fs.symlinkSync(linkType === 'junction' ? resolvedSourcePath : source, dest, linkType); + } catch (err) { + common.error(err.message); + } + } else { + if (!fs.existsSync(source)) { + common.error('Source file does not exist', { continue: true }); + } + try { + fs.linkSync(source, dest); + } catch (err) { + common.error(err.message); + } + } + return ''; +} +module.exports = _ln; - eos(sink, function (err) { - self._stream = null - if (err) { // stream was closed - self.destroy() - return callback(err) - } +/***/ }), - if (sink.written !== header.size) { // corrupting tar - self.destroy() - return callback(new Error('size mismatch')) - } +/***/ 35561: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - overflow(self, header.size) - if (self._finalizing) self.finalize() - callback() - }) +var path = __nccwpck_require__(71017); +var fs = __nccwpck_require__(57147); +var common = __nccwpck_require__(53687); +var glob = __nccwpck_require__(91957); - return sink -} +var globPatternRecursive = path.sep + '**'; -Pack.prototype.finalize = function () { - if (this._stream) { - this._finalizing = true - return - } +common.register('ls', _ls, { + cmdOptions: { + 'R': 'recursive', + 'A': 'all', + 'L': 'link', + 'a': 'all_deprecated', + 'd': 'directory', + 'l': 'long', + }, +}); - if (this._finalized) return - this._finalized = true - this.push(END_OF_TAR) - this.push(null) -} +//@ +//@ ### ls([options,] [path, ...]) +//@ ### ls([options,] path_array) +//@ +//@ Available options: +//@ +//@ + `-R`: recursive +//@ + `-A`: all files (include files beginning with `.`, except for `.` and `..`) +//@ + `-L`: follow symlinks +//@ + `-d`: list directories themselves, not their contents +//@ + `-l`: list objects representing each file, each with fields containing `ls +//@ -l` output fields. See +//@ [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) +//@ for more info +//@ +//@ Examples: +//@ +//@ ```javascript +//@ ls('projs/*.js'); +//@ ls('-R', '/users/me', '/tmp'); +//@ ls('-R', ['/users/me', '/tmp']); // same as above +//@ ls('-l', 'file.txt'); // { name: 'file.txt', mode: 33188, nlink: 1, ...} +//@ ``` +//@ +//@ Returns array of files in the given `path`, or files in +//@ the current directory if no `path` is provided. +function _ls(options, paths) { + if (options.all_deprecated) { + // We won't support the -a option as it's hard to image why it's useful + // (it includes '.' and '..' in addition to '.*' files) + // For backwards compatibility we'll dump a deprecated message and proceed as before + common.log('ls: Option -a is deprecated. Use -A instead'); + options.all = true; + } -Pack.prototype.destroy = function (err) { - if (this._destroyed) return - this._destroyed = true + if (!paths) { + paths = ['.']; + } else { + paths = [].slice.call(arguments, 1); + } - if (err) this.emit('error', err) - this.emit('close') - if (this._stream && this._stream.destroy) this._stream.destroy() -} + var list = []; -Pack.prototype._encode = function (header) { - if (!header.pax) { - var buf = headers.encode(header) - if (buf) { - this.push(buf) - return + function pushFile(abs, relName, stat) { + if (process.platform === 'win32') { + relName = relName.replace(/\\/g, '/'); + } + if (options.long) { + stat = stat || (options.link ? common.statFollowLinks(abs) : common.statNoFollowLinks(abs)); + list.push(addLsAttributes(relName, stat)); + } else { + // list.push(path.relative(rel || '.', file)); + list.push(relName); } } - this._encodePax(header) -} -Pack.prototype._encodePax = function (header) { - var paxHeader = headers.encodePax({ - name: header.name, - linkname: header.linkname, - pax: header.pax - }) + paths.forEach(function (p) { + var stat; - var newHeader = { - name: 'PaxHeader', - mode: header.mode, - uid: header.uid, - gid: header.gid, - size: paxHeader.length, - mtime: header.mtime, - type: 'pax-header', - linkname: header.linkname && 'PaxHeader', - uname: header.uname, - gname: header.gname, - devmajor: header.devmajor, - devminor: header.devminor - } + try { + stat = options.link ? common.statFollowLinks(p) : common.statNoFollowLinks(p); + // follow links to directories by default + if (stat.isSymbolicLink()) { + /* istanbul ignore next */ + // workaround for https://github.com/shelljs/shelljs/issues/795 + // codecov seems to have a bug that miscalculate this block as uncovered. + // but according to nyc report this block does get covered. + try { + var _stat = common.statFollowLinks(p); + if (_stat.isDirectory()) { + stat = _stat; + } + } catch (_) {} // bad symlink, treat it like a file + } + } catch (e) { + common.error('no such file or directory: ' + p, 2, { continue: true }); + return; + } - this.push(headers.encode(newHeader)) - this.push(paxHeader) - overflow(this, paxHeader.length) + // If the stat succeeded + if (stat.isDirectory() && !options.directory) { + if (options.recursive) { + // use glob, because it's simple + glob.sync(p + globPatternRecursive, { dot: options.all, follow: options.link }) + .forEach(function (item) { + // Glob pattern returns the directory itself and needs to be filtered out. + if (path.relative(p, item)) { + pushFile(item, path.relative(p, item)); + } + }); + } else if (options.all) { + // use fs.readdirSync, because it's fast + fs.readdirSync(p).forEach(function (item) { + pushFile(path.join(p, item), item); + }); + } else { + // use fs.readdirSync and then filter out secret files + fs.readdirSync(p).forEach(function (item) { + if (item[0] !== '.') { + pushFile(path.join(p, item), item); + } + }); + } + } else { + pushFile(p, p, stat); + } + }); - newHeader.size = header.size - newHeader.type = header.type - this.push(headers.encode(newHeader)) + // Add methods, to make this more compatible with ShellStrings + return list; } -Pack.prototype._read = function (n) { - var drain = this._drain - this._drain = noop - drain() +function addLsAttributes(pathName, stats) { + // Note: this object will contain more information than .toString() returns + stats.name = pathName; + stats.toString = function () { + // Return a string resembling unix's `ls -l` format + return [this.mode, this.nlink, this.uid, this.gid, this.size, this.mtime, this.name].join(' '); + }; + return stats; } -module.exports = Pack +module.exports = _ls; /***/ }), -/***/ 8517: +/***/ 72695: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/*! - * Tmp - * - * Copyright (c) 2011-2017 KARASZI Istvan - * - * MIT Licensed - */ +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); +var path = __nccwpck_require__(71017); -/* - * Module dependencies. - */ -const fs = __nccwpck_require__(57147); -const os = __nccwpck_require__(22037); -const path = __nccwpck_require__(71017); -const crypto = __nccwpck_require__(6113); -const _c = { fs: fs.constants, os: os.constants }; -const rimraf = __nccwpck_require__(14959); +common.register('mkdir', _mkdir, { + cmdOptions: { + 'p': 'fullpath', + }, +}); -/* - * The working inner variables. - */ -const - // the random characters to choose from - RANDOM_CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', +// Recursively creates `dir` +function mkdirSyncRecursive(dir) { + var baseDir = path.dirname(dir); - TEMPLATE_PATTERN = /XXXXXX/, + // Prevents some potential problems arising from malformed UNCs or + // insufficient permissions. + /* istanbul ignore next */ + if (baseDir === dir) { + common.error('dirname() failed: [' + dir + ']'); + } - DEFAULT_TRIES = 3, + // Base dir exists, no recursion necessary + if (fs.existsSync(baseDir)) { + fs.mkdirSync(dir, parseInt('0777', 8)); + return; + } - CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR), + // Base dir does not exist, go recursive + mkdirSyncRecursive(baseDir); - // constants are off on the windows platform and will not match the actual errno codes - IS_WIN32 = os.platform() === 'win32', - EBADF = _c.EBADF || _c.os.errno.EBADF, - ENOENT = _c.ENOENT || _c.os.errno.ENOENT, + // Base dir created, can create dir + fs.mkdirSync(dir, parseInt('0777', 8)); +} - DIR_MODE = 0o700 /* 448 */, - FILE_MODE = 0o600 /* 384 */, +//@ +//@ ### mkdir([options,] dir [, dir ...]) +//@ ### mkdir([options,] dir_array) +//@ +//@ Available options: +//@ +//@ + `-p`: full path (and create intermediate directories, if necessary) +//@ +//@ Examples: +//@ +//@ ```javascript +//@ mkdir('-p', '/tmp/a/b/c/d', '/tmp/e/f/g'); +//@ mkdir('-p', ['/tmp/a/b/c/d', '/tmp/e/f/g']); // same as above +//@ ``` +//@ +//@ Creates directories. +function _mkdir(options, dirs) { + if (!dirs) common.error('no paths given'); - EXIT = 'exit', + if (typeof dirs === 'string') { + dirs = [].slice.call(arguments, 1); + } + // if it's array leave it as it is - // this will hold the objects need to be removed on exit - _removeObjects = [], + dirs.forEach(function (dir) { + try { + var stat = common.statNoFollowLinks(dir); + if (!options.fullpath) { + common.error('path already exists: ' + dir, { continue: true }); + } else if (stat.isFile()) { + common.error('cannot create directory ' + dir + ': File exists', { continue: true }); + } + return; // skip dir + } catch (e) { + // do nothing + } - // API change in fs.rmdirSync leads to error when passing in a second parameter, e.g. the callback - FN_RMDIR_SYNC = fs.rmdirSync.bind(fs), - FN_RIMRAF_SYNC = rimraf.sync; + // Base dir does not exist, and no -p option given + var baseDir = path.dirname(dir); + if (!fs.existsSync(baseDir) && !options.fullpath) { + common.error('no such file or directory: ' + baseDir, { continue: true }); + return; // skip dir + } -let - _gracefulCleanup = false; + try { + if (options.fullpath) { + mkdirSyncRecursive(path.resolve(dir)); + } else { + fs.mkdirSync(dir, parseInt('0777', 8)); + } + } catch (e) { + var reason; + if (e.code === 'EACCES') { + reason = 'Permission denied'; + } else if (e.code === 'ENOTDIR' || e.code === 'ENOENT') { + reason = 'Not a directory'; + } else { + /* istanbul ignore next */ + throw e; + } + common.error('cannot create directory ' + dir + ': ' + reason, { continue: true }); + } + }); + return ''; +} // mkdir +module.exports = _mkdir; -/** - * Gets a temporary file name. - * - * @param {(Options|tmpNameCallback)} options options or callback - * @param {?tmpNameCallback} callback the callback function - */ -function tmpName(options, callback) { - const - args = _parseArguments(options, callback), - opts = args[0], - cb = args[1]; - try { - _assertAndSanitizeOptions(opts); - } catch (err) { - return cb(err); - } +/***/ }), - let tries = opts.tries; - (function _getUniqueName() { - try { - const name = _generateTmpName(opts); +/***/ 39849: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // check whether the path exists then retry if needed - fs.stat(name, function (err) { - /* istanbul ignore else */ - if (!err) { - /* istanbul ignore else */ - if (tries-- > 0) return _getUniqueName(); +var fs = __nccwpck_require__(57147); +var path = __nccwpck_require__(71017); +var common = __nccwpck_require__(53687); +var cp = __nccwpck_require__(34932); +var rm = __nccwpck_require__(22830); - return cb(new Error('Could not get a unique tmp filename, max tries reached ' + name)); - } +common.register('mv', _mv, { + cmdOptions: { + 'f': '!no_force', + 'n': 'no_force', + }, +}); - cb(null, name); - }); - } catch (err) { - cb(err); - } - }()); +// Checks if cureent file was created recently +function checkRecentCreated(sources, index) { + var lookedSource = sources[index]; + return sources.slice(0, index).some(function (src) { + return path.basename(src) === path.basename(lookedSource); + }); } -/** - * Synchronous version of tmpName. - * - * @param {Object} options - * @returns {string} the generated random name - * @throws {Error} if the options are invalid or could not generate a filename - */ -function tmpNameSync(options) { - const - args = _parseArguments(options), - opts = args[0]; +//@ +//@ ### mv([options ,] source [, source ...], dest') +//@ ### mv([options ,] source_array, dest') +//@ +//@ Available options: +//@ +//@ + `-f`: force (default behavior) +//@ + `-n`: no-clobber +//@ +//@ Examples: +//@ +//@ ```javascript +//@ mv('-n', 'file', 'dir/'); +//@ mv('file1', 'file2', 'dir/'); +//@ mv(['file1', 'file2'], 'dir/'); // same as above +//@ ``` +//@ +//@ Moves `source` file(s) to `dest`. +function _mv(options, sources, dest) { + // Get sources, dest + if (arguments.length < 3) { + common.error('missing and/or '); + } else if (arguments.length > 3) { + sources = [].slice.call(arguments, 1, arguments.length - 1); + dest = arguments[arguments.length - 1]; + } else if (typeof sources === 'string') { + sources = [sources]; + } else { + // TODO(nate): figure out if we actually need this line + common.error('invalid arguments'); + } - _assertAndSanitizeOptions(opts); + var exists = fs.existsSync(dest); + var stats = exists && common.statFollowLinks(dest); - let tries = opts.tries; - do { - const name = _generateTmpName(opts); - try { - fs.statSync(name); - } catch (e) { - return name; + // Dest is not existing dir, but multiple sources given + if ((!exists || !stats.isDirectory()) && sources.length > 1) { + common.error('dest is not a directory (too many sources)'); + } + + // Dest is an existing file, but no -f given + if (exists && stats.isFile() && options.no_force) { + common.error('dest file already exists: ' + dest); + } + + sources.forEach(function (src, srcIndex) { + if (!fs.existsSync(src)) { + common.error('no such file or directory: ' + src, { continue: true }); + return; // skip file } - } while (tries-- > 0); - throw new Error('Could not get a unique tmp filename, max tries reached'); -} + // If here, src exists -/** - * Creates and opens a temporary file. - * - * @param {(Options|null|undefined|fileCallback)} options the config options or the callback function or null or undefined - * @param {?fileCallback} callback - */ -function file(options, callback) { - const - args = _parseArguments(options, callback), - opts = args[0], - cb = args[1]; + // When copying to '/path/dir': + // thisDest = '/path/dir/file1' + var thisDest = dest; + if (fs.existsSync(dest) && common.statFollowLinks(dest).isDirectory()) { + thisDest = path.normalize(dest + '/' + path.basename(src)); + } - // gets a temporary filename - tmpName(opts, function _tmpNameCreated(err, name) { - /* istanbul ignore else */ - if (err) return cb(err); + var thisDestExists = fs.existsSync(thisDest); - // create and open the file - fs.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err, fd) { - /* istanbu ignore else */ - if (err) return cb(err); + if (thisDestExists && checkRecentCreated(sources, srcIndex)) { + // cannot overwrite file created recently in current execution, but we want to continue copying other files + if (!options.no_force) { + common.error("will not overwrite just-created '" + thisDest + "' with '" + src + "'", { continue: true }); + } + return; + } - if (opts.discardDescriptor) { - return fs.close(fd, function _discardCallback(possibleErr) { - // the chance of getting an error on close here is rather low and might occur in the most edgiest cases only - return cb(possibleErr, name, undefined, _prepareTmpFileRemoveCallback(name, -1, opts, false)); - }); - } else { - // detachDescriptor passes the descriptor whereas discardDescriptor closes it, either way, we no longer care - // about the descriptor - const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor; - cb(null, name, fd, _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, false)); + if (fs.existsSync(thisDest) && options.no_force) { + common.error('dest file already exists: ' + thisDest, { continue: true }); + return; // skip file + } + + if (path.resolve(src) === path.dirname(path.resolve(thisDest))) { + common.error('cannot move to self: ' + src, { continue: true }); + return; // skip file + } + + try { + fs.renameSync(src, thisDest); + } catch (e) { + /* istanbul ignore next */ + if (e.code === 'EXDEV') { + // If we're trying to `mv` to an external partition, we'll actually need + // to perform a copy and then clean up the original file. If either the + // copy or the rm fails with an exception, we should allow this + // exception to pass up to the top level. + cp('-r', src, thisDest); + rm('-rf', src); } - }); - }); -} + } + }); // forEach(src) + return ''; +} // mv +module.exports = _mv; -/** - * Synchronous version of file. - * - * @param {Options} options - * @returns {FileSyncObject} object consists of name, fd and removeCallback - * @throws {Error} if cannot create a file - */ -function fileSync(options) { - const - args = _parseArguments(options), - opts = args[0]; - const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor; - const name = tmpNameSync(opts); - var fd = fs.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE); - /* istanbul ignore else */ - if (opts.discardDescriptor) { - fs.closeSync(fd); - fd = undefined; - } +/***/ }), - return { - name: name, - fd: fd, - removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, true) - }; -} +/***/ 50227: +/***/ (() => { -/** - * Creates a temporary directory. - * - * @param {(Options|dirCallback)} options the options or the callback function - * @param {?dirCallback} callback - */ -function dir(options, callback) { - const - args = _parseArguments(options, callback), - opts = args[0], - cb = args[1]; +// see dirs.js - // gets a temporary filename - tmpName(opts, function _tmpNameCreated(err, name) { - /* istanbul ignore else */ - if (err) return cb(err); - // create the directory - fs.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err) { - /* istanbul ignore else */ - if (err) return cb(err); +/***/ }), - cb(null, name, _prepareTmpDirRemoveCallback(name, opts, false)); - }); - }); -} +/***/ 44177: +/***/ (() => { -/** - * Synchronous version of dir. - * - * @param {Options} options - * @returns {DirSyncObject} object consists of name and removeCallback - * @throws {Error} if it cannot create a directory - */ -function dirSync(options) { - const - args = _parseArguments(options), - opts = args[0]; +// see dirs.js - const name = tmpNameSync(opts); - fs.mkdirSync(name, opts.mode || DIR_MODE); - return { - name: name, - removeCallback: _prepareTmpDirRemoveCallback(name, opts, true) - }; -} +/***/ }), -/** - * Removes files asynchronously. - * - * @param {Object} fdPath - * @param {Function} next - * @private - */ -function _removeFileAsync(fdPath, next) { - const _handler = function (err) { - if (err && !_isENOENT(err)) { - // reraise any unanticipated error - return next(err); - } - next(); - }; +/***/ 58553: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (0 <= fdPath[0]) - fs.close(fdPath[0], function () { - fs.unlink(fdPath[1], _handler); - }); - else fs.unlink(fdPath[1], _handler); -} +var path = __nccwpck_require__(71017); +var common = __nccwpck_require__(53687); -/** - * Removes files synchronously. - * - * @param {Object} fdPath - * @private - */ -function _removeFileSync(fdPath) { - let rethrownException = null; - try { - if (0 <= fdPath[0]) fs.closeSync(fdPath[0]); - } catch (e) { - // reraise any unanticipated error - if (!_isEBADF(e) && !_isENOENT(e)) throw e; - } finally { - try { - fs.unlinkSync(fdPath[1]); - } - catch (e) { - // reraise any unanticipated error - if (!_isENOENT(e)) rethrownException = e; - } - } - if (rethrownException !== null) { - throw rethrownException; - } +common.register('pwd', _pwd, { + allowGlobbing: false, +}); + +//@ +//@ ### pwd() +//@ +//@ Returns the current directory. +function _pwd() { + var pwd = path.resolve(process.cwd()); + return pwd; } +module.exports = _pwd; -/** - * Prepares the callback for removal of the temporary file. - * - * Returns either a sync callback or a async callback depending on whether - * fileSync or file was called, which is expressed by the sync parameter. - * - * @param {string} name the path of the file - * @param {number} fd file descriptor - * @param {Object} opts - * @param {boolean} sync - * @returns {fileCallback | fileCallbackSync} - * @private - */ -function _prepareTmpFileRemoveCallback(name, fd, opts, sync) { - const removeCallbackSync = _prepareRemoveCallback(_removeFileSync, [fd, name], sync); - const removeCallback = _prepareRemoveCallback(_removeFileAsync, [fd, name], sync, removeCallbackSync); - if (!opts.keep) _removeObjects.unshift(removeCallbackSync); +/***/ }), - return sync ? removeCallbackSync : removeCallback; -} +/***/ 22830: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * Prepares the callback for removal of the temporary directory. - * - * Returns either a sync callback or a async callback depending on whether - * tmpFileSync or tmpFile was called, which is expressed by the sync parameter. - * - * @param {string} name - * @param {Object} opts - * @param {boolean} sync - * @returns {Function} the callback - * @private - */ -function _prepareTmpDirRemoveCallback(name, opts, sync) { - const removeFunction = opts.unsafeCleanup ? rimraf : fs.rmdir.bind(fs); - const removeFunctionSync = opts.unsafeCleanup ? FN_RIMRAF_SYNC : FN_RMDIR_SYNC; - const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name, sync); - const removeCallback = _prepareRemoveCallback(removeFunction, name, sync, removeCallbackSync); - if (!opts.keep) _removeObjects.unshift(removeCallbackSync); +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); - return sync ? removeCallbackSync : removeCallback; -} +common.register('rm', _rm, { + cmdOptions: { + 'f': 'force', + 'r': 'recursive', + 'R': 'recursive', + }, +}); -/** - * Creates a guarded function wrapping the removeFunction call. - * - * The cleanup callback is save to be called multiple times. - * Subsequent invocations will be ignored. - * - * @param {Function} removeFunction - * @param {string} fileOrDirName - * @param {boolean} sync - * @param {cleanupCallbackSync?} cleanupCallbackSync - * @returns {cleanupCallback | cleanupCallbackSync} - * @private - */ -function _prepareRemoveCallback(removeFunction, fileOrDirName, sync, cleanupCallbackSync) { - let called = false; +// Recursively removes 'dir' +// Adapted from https://github.com/ryanmcgrath/wrench-js +// +// Copyright (c) 2010 Ryan McGrath +// Copyright (c) 2012 Artur Adib +// +// Licensed under the MIT License +// http://www.opensource.org/licenses/mit-license.php +function rmdirSyncRecursive(dir, force, fromSymlink) { + var files; - // if sync is true, the next parameter will be ignored - return function _cleanupCallback(next) { + files = fs.readdirSync(dir); - /* istanbul ignore else */ - if (!called) { - // remove cleanupCallback from cache - const toRemove = cleanupCallbackSync || _cleanupCallback; - const index = _removeObjects.indexOf(toRemove); - /* istanbul ignore else */ - if (index >= 0) _removeObjects.splice(index, 1); + // Loop through and delete everything in the sub-tree after checking it + for (var i = 0; i < files.length; i++) { + var file = dir + '/' + files[i]; + var currFile = common.statNoFollowLinks(file); - called = true; - if (sync || removeFunction === FN_RMDIR_SYNC || removeFunction === FN_RIMRAF_SYNC) { - return removeFunction(fileOrDirName); - } else { - return removeFunction(fileOrDirName, next || function() {}); + if (currFile.isDirectory()) { // Recursive function back to the beginning + rmdirSyncRecursive(file, force); + } else { // Assume it's a file - perhaps a try/catch belongs here? + if (force || isWriteable(file)) { + try { + common.unlinkSync(file); + } catch (e) { + /* istanbul ignore next */ + common.error('could not remove file (code ' + e.code + '): ' + file, { + continue: true, + }); + } } } - }; -} + } -/** - * The garbage collector. - * - * @private - */ -function _garbageCollector() { - /* istanbul ignore else */ - if (!_gracefulCleanup) return; + // if was directory was referenced through a symbolic link, + // the contents should be removed, but not the directory itself + if (fromSymlink) return; - // the function being called removes itself from _removeObjects, - // loop until _removeObjects is empty - while (_removeObjects.length) { - try { - _removeObjects[0](); - } catch (e) { - // already removed? + // Now that we know everything in the sub-tree has been deleted, we can delete the main directory. + // Huzzah for the shopkeep. + + var result; + try { + // Retry on windows, sometimes it takes a little time before all the files in the directory are gone + var start = Date.now(); + + // TODO: replace this with a finite loop + for (;;) { + try { + result = fs.rmdirSync(dir); + if (fs.existsSync(dir)) throw { code: 'EAGAIN' }; + break; + } catch (er) { + /* istanbul ignore next */ + // In addition to error codes, also check if the directory still exists and loop again if true + if (process.platform === 'win32' && (er.code === 'ENOTEMPTY' || er.code === 'EBUSY' || er.code === 'EPERM' || er.code === 'EAGAIN')) { + if (Date.now() - start > 1000) throw er; + } else if (er.code === 'ENOENT') { + // Directory did not exist, deletion was successful + break; + } else { + throw er; + } + } } + } catch (e) { + common.error('could not remove directory (code ' + e.code + '): ' + dir, { continue: true }); } -} -/** - * Random name generator based on crypto. - * Adapted from http://blog.tompawlak.org/how-to-generate-random-values-nodejs-javascript - * - * @param {number} howMany - * @returns {string} the generated random name - * @private - */ -function _randomChars(howMany) { - let - value = [], - rnd = null; + return result; +} // rmdirSyncRecursive - // make sure that we do not fail because we ran out of entropy +// Hack to determine if file has write permissions for current user +// Avoids having to check user, group, etc, but it's probably slow +function isWriteable(file) { + var writePermission = true; try { - rnd = crypto.randomBytes(howMany); + var __fd = fs.openSync(file, 'a'); + fs.closeSync(__fd); } catch (e) { - rnd = crypto.pseudoRandomBytes(howMany); - } - - for (var i = 0; i < howMany; i++) { - value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]); + writePermission = false; } - return value.join(''); -} - -/** - * Helper which determines whether a string s is blank, that is undefined, or empty or null. - * - * @private - * @param {string} s - * @returns {Boolean} true whether the string s is blank, false otherwise - */ -function _isBlank(s) { - return s === null || _isUndefined(s) || !s.trim(); + return writePermission; } -/** - * Checks whether the `obj` parameter is defined or not. - * - * @param {Object} obj - * @returns {boolean} true if the object is undefined - * @private - */ -function _isUndefined(obj) { - return typeof obj === 'undefined'; +function handleFile(file, options) { + if (options.force || isWriteable(file)) { + // -f was passed, or file is writable, so it can be removed + common.unlinkSync(file); + } else { + common.error('permission denied: ' + file, { continue: true }); + } } -/** - * Parses the function arguments. - * - * This function helps to have optional arguments. - * - * @param {(Options|null|undefined|Function)} options - * @param {?Function} callback - * @returns {Array} parsed arguments - * @private - */ -function _parseArguments(options, callback) { - /* istanbul ignore else */ - if (typeof options === 'function') { - return [{}, options]; +function handleDirectory(file, options) { + if (options.recursive) { + // -r was passed, so directory can be removed + rmdirSyncRecursive(file, options.force); + } else { + common.error('path is a directory', { continue: true }); } +} - /* istanbul ignore else */ - if (_isUndefined(options)) { - return [{}, callback]; +function handleSymbolicLink(file, options) { + var stats; + try { + stats = common.statFollowLinks(file); + } catch (e) { + // symlink is broken, so remove the symlink itself + common.unlinkSync(file); + return; } - // copy options so we do not leak the changes we make internally - const actualOptions = {}; - for (const key of Object.getOwnPropertyNames(options)) { - actualOptions[key] = options[key]; + if (stats.isFile()) { + common.unlinkSync(file); + } else if (stats.isDirectory()) { + if (file[file.length - 1] === '/') { + // trailing separator, so remove the contents, not the link + if (options.recursive) { + // -r was passed, so directory can be removed + var fromSymlink = true; + rmdirSyncRecursive(file, options.force, fromSymlink); + } else { + common.error('path is a directory', { continue: true }); + } + } else { + // no trailing separator, so remove the link + common.unlinkSync(file); + } } - - return [actualOptions, callback]; } -/** - * Generates a new temporary name. - * - * @param {Object} opts - * @returns {string} the new random name according to opts - * @private - */ -function _generateTmpName(opts) { +function handleFIFO(file) { + common.unlinkSync(file); +} - const tmpDir = opts.tmpdir; +//@ +//@ ### rm([options,] file [, file ...]) +//@ ### rm([options,] file_array) +//@ +//@ Available options: +//@ +//@ + `-f`: force +//@ + `-r, -R`: recursive +//@ +//@ Examples: +//@ +//@ ```javascript +//@ rm('-rf', '/tmp/*'); +//@ rm('some_file.txt', 'another_file.txt'); +//@ rm(['some_file.txt', 'another_file.txt']); // same as above +//@ ``` +//@ +//@ Removes files. +function _rm(options, files) { + if (!files) common.error('no paths given'); - /* istanbul ignore else */ - if (!_isUndefined(opts.name)) - return path.join(tmpDir, opts.dir, opts.name); + // Convert to array + files = [].slice.call(arguments, 1); - /* istanbul ignore else */ - if (!_isUndefined(opts.template)) - return path.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6)); + files.forEach(function (file) { + var lstats; + try { + var filepath = (file[file.length - 1] === '/') + ? file.slice(0, -1) // remove the '/' so lstatSync can detect symlinks + : file; + lstats = common.statNoFollowLinks(filepath); // test for existence + } catch (e) { + // Path does not exist, no force flag given + if (!options.force) { + common.error('no such file or directory: ' + file, { continue: true }); + } + return; // skip file + } - // prefix and postfix - const name = [ - opts.prefix ? opts.prefix : 'tmp', - '-', - process.pid, - '-', - _randomChars(12), - opts.postfix ? '-' + opts.postfix : '' - ].join(''); + // If here, path exists + if (lstats.isFile()) { + handleFile(file, options); + } else if (lstats.isDirectory()) { + handleDirectory(file, options); + } else if (lstats.isSymbolicLink()) { + handleSymbolicLink(file, options); + } else if (lstats.isFIFO()) { + handleFIFO(file); + } + }); // forEach(file) + return ''; +} // rm +module.exports = _rm; - return path.join(tmpDir, opts.dir, name); -} -/** - * Asserts whether the specified options are valid, also sanitizes options and provides sane defaults for missing - * options. - * - * @param {Options} options - * @private - */ -function _assertAndSanitizeOptions(options) { +/***/ }), - options.tmpdir = _getTmpDir(options); +/***/ 25899: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - const tmpDir = options.tmpdir; +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); - /* istanbul ignore else */ - if (!_isUndefined(options.name)) - _assertIsRelative(options.name, 'name', tmpDir); - /* istanbul ignore else */ - if (!_isUndefined(options.dir)) - _assertIsRelative(options.dir, 'dir', tmpDir); - /* istanbul ignore else */ - if (!_isUndefined(options.template)) { - _assertIsRelative(options.template, 'template', tmpDir); - if (!options.template.match(TEMPLATE_PATTERN)) - throw new Error(`Invalid template, found "${options.template}".`); +common.register('sed', _sed, { + globStart: 3, // don't glob-expand regexes + canReceivePipe: true, + cmdOptions: { + 'i': 'inplace', + }, +}); + +//@ +//@ ### sed([options,] search_regex, replacement, file [, file ...]) +//@ ### sed([options,] search_regex, replacement, file_array) +//@ +//@ Available options: +//@ +//@ + `-i`: Replace contents of `file` in-place. _Note that no backups will be created!_ +//@ +//@ Examples: +//@ +//@ ```javascript +//@ sed('-i', 'PROGRAM_VERSION', 'v0.1.3', 'source.js'); +//@ sed(/.*DELETE_THIS_LINE.*\n/, '', 'source.js'); +//@ ``` +//@ +//@ Reads an input string from `file`s, and performs a JavaScript `replace()` on the input +//@ using the given `search_regex` and `replacement` string or function. Returns the new string after replacement. +//@ +//@ Note: +//@ +//@ Like unix `sed`, ShellJS `sed` supports capture groups. Capture groups are specified +//@ using the `$n` syntax: +//@ +//@ ```javascript +//@ sed(/(\w+)\s(\w+)/, '$2, $1', 'file.txt'); +//@ ``` +function _sed(options, regex, replacement, files) { + // Check if this is coming from a pipe + var pipe = common.readFromPipe(); + + if (typeof replacement !== 'string' && typeof replacement !== 'function') { + if (typeof replacement === 'number') { + replacement = replacement.toString(); // fallback + } else { + common.error('invalid replacement string'); + } } - /* istanbul ignore else */ - if (!_isUndefined(options.tries) && isNaN(options.tries) || options.tries < 0) - throw new Error(`Invalid tries, found "${options.tries}".`); - // if a name was specified we will try once - options.tries = _isUndefined(options.name) ? options.tries || DEFAULT_TRIES : 1; - options.keep = !!options.keep; - options.detachDescriptor = !!options.detachDescriptor; - options.discardDescriptor = !!options.discardDescriptor; - options.unsafeCleanup = !!options.unsafeCleanup; + // Convert all search strings to RegExp + if (typeof regex === 'string') { + regex = RegExp(regex); + } - // sanitize dir, also keep (multiple) blanks if the user, purportedly sane, requests us to - options.dir = _isUndefined(options.dir) ? '' : path.relative(tmpDir, _resolvePath(options.dir, tmpDir)); - options.template = _isUndefined(options.template) ? undefined : path.relative(tmpDir, _resolvePath(options.template, tmpDir)); - // sanitize further if template is relative to options.dir - options.template = _isBlank(options.template) ? undefined : path.relative(options.dir, options.template); + if (!files && !pipe) { + common.error('no files given'); + } - // for completeness' sake only, also keep (multiple) blanks if the user, purportedly sane, requests us to - options.name = _isUndefined(options.name) ? undefined : _sanitizeName(options.name); - options.prefix = _isUndefined(options.prefix) ? '' : options.prefix; - options.postfix = _isUndefined(options.postfix) ? '' : options.postfix; -} + files = [].slice.call(arguments, 3); -/** - * Resolve the specified path name in respect to tmpDir. - * - * The specified name might include relative path components, e.g. ../ - * so we need to resolve in order to be sure that is is located inside tmpDir - * - * @param name - * @param tmpDir - * @returns {string} - * @private - */ -function _resolvePath(name, tmpDir) { - const sanitizedName = _sanitizeName(name); - if (sanitizedName.startsWith(tmpDir)) { - return path.resolve(sanitizedName); - } else { - return path.resolve(path.join(tmpDir, sanitizedName)); + if (pipe) { + files.unshift('-'); } + + var sed = []; + files.forEach(function (file) { + if (!fs.existsSync(file) && file !== '-') { + common.error('no such file or directory: ' + file, 2, { continue: true }); + return; + } + + var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8'); + var lines = contents.split('\n'); + var result = lines.map(function (line) { + return line.replace(regex, replacement); + }).join('\n'); + + sed.push(result); + + if (options.inplace) { + fs.writeFileSync(file, result, 'utf8'); + } + }); + + return sed.join('\n'); } +module.exports = _sed; -/** - * Sanitize the specified path name by removing all quote characters. - * - * @param name - * @returns {string} - * @private - */ -function _sanitizeName(name) { - if (_isBlank(name)) { - return name; + +/***/ }), + +/***/ 11411: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var common = __nccwpck_require__(53687); + +common.register('set', _set, { + allowGlobbing: false, + wrapOutput: false, +}); + +//@ +//@ ### set(options) +//@ +//@ Available options: +//@ +//@ + `+/-e`: exit upon error (`config.fatal`) +//@ + `+/-v`: verbose: show all commands (`config.verbose`) +//@ + `+/-f`: disable filename expansion (globbing) +//@ +//@ Examples: +//@ +//@ ```javascript +//@ set('-e'); // exit upon first error +//@ set('+e'); // this undoes a "set('-e')" +//@ ``` +//@ +//@ Sets global configuration variables. +function _set(options) { + if (!options) { + var args = [].slice.call(arguments, 0); + if (args.length < 2) common.error('must provide an argument'); + options = args[1]; } - return name.replace(/["']/g, ''); -} + var negate = (options[0] === '+'); + if (negate) { + options = '-' + options.slice(1); // parseOptions needs a '-' prefix + } + options = common.parseOptions(options, { + 'e': 'fatal', + 'v': 'verbose', + 'f': 'noglob', + }); -/** - * Asserts whether specified name is relative to the specified tmpDir. - * - * @param {string} name - * @param {string} option - * @param {string} tmpDir - * @throws {Error} - * @private - */ -function _assertIsRelative(name, option, tmpDir) { - if (option === 'name') { - // assert that name is not absolute and does not contain a path - if (path.isAbsolute(name)) - throw new Error(`${option} option must not contain an absolute path, found "${name}".`); - // must not fail on valid . or .. or similar such constructs - let basename = path.basename(name); - if (basename === '..' || basename === '.' || basename !== name) - throw new Error(`${option} option must not contain a path, found "${name}".`); + if (negate) { + Object.keys(options).forEach(function (key) { + options[key] = !options[key]; + }); } - else { // if (option === 'dir' || option === 'template') { - // assert that dir or template are relative to tmpDir - if (path.isAbsolute(name) && !name.startsWith(tmpDir)) { - throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`); + + Object.keys(options).forEach(function (key) { + // Only change the global config if `negate` is false and the option is true + // or if `negate` is true and the option is false (aka negate !== option) + if (negate !== options[key]) { + common.config[key] = options[key]; } - let resolvedPath = _resolvePath(name, tmpDir); - if (!resolvedPath.startsWith(tmpDir)) - throw new Error(`${option} option must be relative to "${tmpDir}", found "${resolvedPath}".`); - } + }); + return; } +module.exports = _set; -/** - * Helper for testing against EBADF to compensate changes made to Node 7.x under Windows. - * - * @private - */ -function _isEBADF(error) { - return _isExpectedError(error, -EBADF, 'EBADF'); -} -/** - * Helper for testing against ENOENT to compensate changes made to Node 7.x under Windows. - * - * @private - */ -function _isENOENT(error) { - return _isExpectedError(error, -ENOENT, 'ENOENT'); -} +/***/ }), -/** - * Helper to determine whether the expected error code matches the actual code and errno, - * which will differ between the supported node versions. - * - * - Node >= 7.0: - * error.code {string} - * error.errno {number} any numerical value will be negated - * - * CAVEAT - * - * On windows, the errno for EBADF is -4083 but os.constants.errno.EBADF is different and we must assume that ENOENT - * is no different here. - * - * @param {SystemError} error - * @param {number} errno - * @param {string} code - * @private - */ -function _isExpectedError(error, errno, code) { - return IS_WIN32 ? error.code === code : error.code === code && error.errno === errno; +/***/ 72116: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); + +common.register('sort', _sort, { + canReceivePipe: true, + cmdOptions: { + 'r': 'reverse', + 'n': 'numerical', + }, +}); + +// parse out the number prefix of a line +function parseNumber(str) { + var match = str.match(/^\s*(\d*)\s*(.*)$/); + return { num: Number(match[1]), value: match[2] }; } -/** - * Sets the graceful cleanup. - * - * If graceful cleanup is set, tmp will remove all controlled temporary objects on process exit, otherwise the - * temporary objects will remain in place, waiting to be cleaned up on system restart or otherwise scheduled temporary - * object removals. - */ -function setGracefulCleanup() { - _gracefulCleanup = true; +// compare two strings case-insensitively, but examine case for strings that are +// case-insensitive equivalent +function unixCmp(a, b) { + var aLower = a.toLowerCase(); + var bLower = b.toLowerCase(); + return (aLower === bLower ? + -1 * a.localeCompare(b) : // unix sort treats case opposite how javascript does + aLower.localeCompare(bLower)); } -/** - * Returns the currently configured tmp dir from os.tmpdir(). - * - * @private - * @param {?Options} options - * @returns {string} the currently configured tmp dir - */ -function _getTmpDir(options) { - return path.resolve(_sanitizeName(options && options.tmpdir || os.tmpdir())); +// compare two strings in the fashion that unix sort's -n option works +function numericalCmp(a, b) { + var objA = parseNumber(a); + var objB = parseNumber(b); + if (objA.hasOwnProperty('num') && objB.hasOwnProperty('num')) { + return ((objA.num !== objB.num) ? + (objA.num - objB.num) : + unixCmp(objA.value, objB.value)); + } else { + return unixCmp(objA.value, objB.value); + } } -// Install process exit listener -process.addListener(EXIT, _garbageCollector); +//@ +//@ ### sort([options,] file [, file ...]) +//@ ### sort([options,] file_array) +//@ +//@ Available options: +//@ +//@ + `-r`: Reverse the results +//@ + `-n`: Compare according to numerical value +//@ +//@ Examples: +//@ +//@ ```javascript +//@ sort('foo.txt', 'bar.txt'); +//@ sort('-r', 'foo.txt'); +//@ ``` +//@ +//@ Return the contents of the `file`s, sorted line-by-line. Sorting multiple +//@ files mixes their content (just as unix `sort` does). +function _sort(options, files) { + // Check if this is coming from a pipe + var pipe = common.readFromPipe(); -/** - * Configuration options. - * - * @typedef {Object} Options - * @property {?boolean} keep the temporary object (file or dir) will not be garbage collected - * @property {?number} tries the number of tries before give up the name generation - * @property (?int) mode the access mode, defaults are 0o700 for directories and 0o600 for files - * @property {?string} template the "mkstemp" like filename template - * @property {?string} name fixed name relative to tmpdir or the specified dir option - * @property {?string} dir tmp directory relative to the root tmp directory in use - * @property {?string} prefix prefix for the generated name - * @property {?string} postfix postfix for the generated name - * @property {?string} tmpdir the root tmp directory which overrides the os tmpdir - * @property {?boolean} unsafeCleanup recursively removes the created temporary directory, even when it's not empty - * @property {?boolean} detachDescriptor detaches the file descriptor, caller is responsible for closing the file, tmp will no longer try closing the file during garbage collection - * @property {?boolean} discardDescriptor discards the file descriptor (closes file, fd is -1), tmp will no longer try closing the file during garbage collection - */ + if (!files && !pipe) common.error('no files given'); -/** - * @typedef {Object} FileSyncObject - * @property {string} name the name of the file - * @property {string} fd the file descriptor or -1 if the fd has been discarded - * @property {fileCallback} removeCallback the callback function to remove the file - */ + files = [].slice.call(arguments, 1); -/** - * @typedef {Object} DirSyncObject - * @property {string} name the name of the directory - * @property {fileCallback} removeCallback the callback function to remove the directory - */ + if (pipe) { + files.unshift('-'); + } -/** - * @callback tmpNameCallback - * @param {?Error} err the error object if anything goes wrong - * @param {string} name the temporary file name - */ + var lines = files.reduce(function (accum, file) { + if (file !== '-') { + if (!fs.existsSync(file)) { + common.error('no such file or directory: ' + file, { continue: true }); + return accum; + } else if (common.statFollowLinks(file).isDirectory()) { + common.error('read failed: ' + file + ': Is a directory', { + continue: true, + }); + return accum; + } + } -/** - * @callback fileCallback - * @param {?Error} err the error object if anything goes wrong - * @param {string} name the temporary file name - * @param {number} fd the file descriptor or -1 if the fd had been discarded - * @param {cleanupCallback} fn the cleanup callback function - */ + var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8'); + return accum.concat(contents.trimRight().split('\n')); + }, []); -/** - * @callback fileCallbackSync - * @param {?Error} err the error object if anything goes wrong - * @param {string} name the temporary file name - * @param {number} fd the file descriptor or -1 if the fd had been discarded - * @param {cleanupCallbackSync} fn the cleanup callback function - */ + var sorted = lines.sort(options.numerical ? numericalCmp : unixCmp); -/** - * @callback dirCallback - * @param {?Error} err the error object if anything goes wrong - * @param {string} name the temporary file name - * @param {cleanupCallback} fn the cleanup callback function - */ + if (options.reverse) { + sorted = sorted.reverse(); + } -/** - * @callback dirCallbackSync - * @param {?Error} err the error object if anything goes wrong - * @param {string} name the temporary file name - * @param {cleanupCallbackSync} fn the cleanup callback function - */ + return sorted.join('\n') + '\n'; +} -/** - * Removes the temporary created file or directory. - * - * @callback cleanupCallback - * @param {simpleCallback} [next] function to call whenever the tmp object needs to be removed - */ +module.exports = _sort; -/** - * Removes the temporary created file or directory. - * - * @callback cleanupCallbackSync - */ -/** - * Callback function for function composition. - * @see {@link https://github.com/raszi/node-tmp/issues/57|raszi/node-tmp#57} - * - * @callback simpleCallback - */ +/***/ }), -// exporting all the needed methods +/***/ 42284: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -// evaluate _getTmpDir() lazily, mainly for simplifying testing but it also will -// allow users to reconfigure the temporary directory -Object.defineProperty(module.exports, "tmpdir", ({ - enumerable: true, - configurable: false, - get: function () { - return _getTmpDir(); - } -})); +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); -module.exports.dir = dir; -module.exports.dirSync = dirSync; +common.register('tail', _tail, { + canReceivePipe: true, + cmdOptions: { + 'n': 'numLines', + }, +}); -module.exports.file = file; -module.exports.fileSync = fileSync; +//@ +//@ ### tail([{'-n': \},] file [, file ...]) +//@ ### tail([{'-n': \},] file_array) +//@ +//@ Available options: +//@ +//@ + `-n `: Show the last `` lines of `file`s +//@ +//@ Examples: +//@ +//@ ```javascript +//@ var str = tail({'-n': 1}, 'file*.txt'); +//@ var str = tail('file1', 'file2'); +//@ var str = tail(['file1', 'file2']); // same as above +//@ ``` +//@ +//@ Read the end of a `file`. +function _tail(options, files) { + var tail = []; + var pipe = common.readFromPipe(); -module.exports.tmpName = tmpName; -module.exports.tmpNameSync = tmpNameSync; + if (!files && !pipe) common.error('no paths given'); -module.exports.setGracefulCleanup = setGracefulCleanup; + var idx = 1; + if (options.numLines === true) { + idx = 2; + options.numLines = Number(arguments[1]); + } else if (options.numLines === false) { + options.numLines = 10; + } + options.numLines = -1 * Math.abs(options.numLines); + files = [].slice.call(arguments, idx); + if (pipe) { + files.unshift('-'); + } -/***/ }), + var shouldAppendNewline = false; + files.forEach(function (file) { + if (file !== '-') { + if (!fs.existsSync(file)) { + common.error('no such file or directory: ' + file, { continue: true }); + return; + } else if (common.statFollowLinks(file).isDirectory()) { + common.error("error reading '" + file + "': Is a directory", { + continue: true, + }); + return; + } + } -/***/ 88375: -/***/ ((module) => { + var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8'); -// Copied from https://github.com/nodejs/node/blob/master/lib/internal/constants.js -module.exports = { - CHAR_FORWARD_SLASH: 47, /* / */ -}; + var lines = contents.split('\n'); + if (lines[lines.length - 1] === '') { + lines.pop(); + shouldAppendNewline = true; + } else { + shouldAppendNewline = false; + } + + tail = tail.concat(lines.slice(options.numLines)); + }); + + if (shouldAppendNewline) { + tail.push(''); // to add a trailing newline once we join + } + return tail.join('\n'); +} +module.exports = _tail; /***/ }), -/***/ 61858: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ 76150: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +var common = __nccwpck_require__(53687); +var os = __nccwpck_require__(22037); +var fs = __nccwpck_require__(57147); +common.register('tempdir', _tempDir, { + allowGlobbing: false, + wrapOutput: false, +}); -const path = __nccwpck_require__(71017); +// Returns false if 'dir' is not a writeable directory, 'dir' otherwise +function writeableDir(dir) { + if (!dir || !fs.existsSync(dir)) return false; -exports.codes = { - ERR_INPUT_TYPE_NOT_ALLOWED: createErrorCtor(joinArgs('ERR_INPUT_TYPE_NOT_ALLOWED')), - ERR_INVALID_ARG_VALUE: createErrorCtor(joinArgs('ERR_INVALID_ARG_VALUE')), - ERR_INVALID_MODULE_SPECIFIER: createErrorCtor(joinArgs('ERR_INVALID_MODULE_SPECIFIER')), - ERR_INVALID_PACKAGE_CONFIG: createErrorCtor(joinArgs('ERR_INVALID_PACKAGE_CONFIG')), - ERR_INVALID_PACKAGE_TARGET: createErrorCtor(joinArgs('ERR_INVALID_PACKAGE_TARGET')), - ERR_MANIFEST_DEPENDENCY_MISSING: createErrorCtor(joinArgs('ERR_MANIFEST_DEPENDENCY_MISSING')), - ERR_MODULE_NOT_FOUND: createErrorCtor((path, base, type = 'package') => { - return `Cannot find ${type} '${path}' imported from ${base}` - }), - ERR_PACKAGE_IMPORT_NOT_DEFINED: createErrorCtor(joinArgs('ERR_PACKAGE_IMPORT_NOT_DEFINED')), - ERR_PACKAGE_PATH_NOT_EXPORTED: createErrorCtor(joinArgs('ERR_PACKAGE_PATH_NOT_EXPORTED')), - ERR_UNSUPPORTED_DIR_IMPORT: createErrorCtor(joinArgs('ERR_UNSUPPORTED_DIR_IMPORT')), - ERR_UNSUPPORTED_ESM_URL_SCHEME: createErrorCtor(joinArgs('ERR_UNSUPPORTED_ESM_URL_SCHEME')), - ERR_UNKNOWN_FILE_EXTENSION: createErrorCtor(joinArgs('ERR_UNKNOWN_FILE_EXTENSION')), -} + if (!common.statFollowLinks(dir).isDirectory()) return false; -function joinArgs(name) { - return (...args) => { - return [name, ...args].join(' ') + var testFile = dir + '/' + common.randomFileName(); + try { + fs.writeFileSync(testFile, ' '); + common.unlinkSync(testFile); + return dir; + } catch (e) { + /* istanbul ignore next */ + return false; } } -function createErrorCtor(errorMessageCreator) { - return class CustomError extends Error { - constructor(...args) { - super(errorMessageCreator(...args)) - } - } -} -exports.createErrRequireEsm = createErrRequireEsm; +// Variable to cache the tempdir value for successive lookups. +var cachedTempDir; -// Native ERR_REQUIRE_ESM Error is declared here: -// https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/errors.js#L1294-L1313 -// Error class factory is implemented here: -// function E: https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/errors.js#L323-L341 -// function makeNodeErrorWithCode: https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/errors.js#L251-L278 -// The code below should create an error that matches the native error as closely as possible. -// Third-party libraries which attempt to catch the native ERR_REQUIRE_ESM should recognize our imitation error. -function createErrRequireEsm(filename, parentPath, packageJsonPath) { - const code = 'ERR_REQUIRE_ESM' - const err = new Error(getErrRequireEsmMessage(filename, parentPath, packageJsonPath)) - // Set `name` to be used in stack trace, generate stack trace with that name baked in, then re-declare the `name` field. - // This trick is copied from node's source. - err.name = `Error [${ code }]` - err.stack - Object.defineProperty(err, 'name', { - value: 'Error', - enumerable: false, - writable: true, - configurable: true - }) - err.code = code - return err -} +//@ +//@ ### tempdir() +//@ +//@ Examples: +//@ +//@ ```javascript +//@ var tmp = tempdir(); // "/tmp" for most *nix platforms +//@ ``` +//@ +//@ Searches and returns string containing a writeable, platform-dependent temporary directory. +//@ Follows Python's [tempfile algorithm](http://docs.python.org/library/tempfile.html#tempfile.tempdir). +function _tempDir() { + if (cachedTempDir) return cachedTempDir; -// Copy-pasted from https://github.com/nodejs/node/blob/b533fb3508009e5f567cc776daba8fbf665386a6/lib/internal/errors.js#L1293-L1311 -// so that our error message is identical to the native message. -function getErrRequireEsmMessage(filename, parentPath = null, packageJsonPath = null) { - const ext = path.extname(filename) - let msg = `Must use import to load ES Module: ${filename}`; - if (parentPath && packageJsonPath) { - const path = __nccwpck_require__(71017); - const basename = path.basename(filename) === path.basename(parentPath) ? - filename : path.basename(filename); - msg += - '\nrequire() of ES modules is not supported.\nrequire() of ' + - `${filename} ${parentPath ? `from ${parentPath} ` : ''}` + - `is an ES module file as it is a ${ext} file whose nearest parent ` + - `package.json contains "type": "module" which defines all ${ext} ` + - 'files in that package scope as ES modules.\nInstead ' + - 'change the requiring code to use ' + - 'import(), or remove "type": "module" from ' + - `${packageJsonPath}.\n`; - return msg; - } - return msg; + cachedTempDir = writeableDir(os.tmpdir()) || + writeableDir(process.env.TMPDIR) || + writeableDir(process.env.TEMP) || + writeableDir(process.env.TMP) || + writeableDir(process.env.Wimp$ScrapDir) || // RiscOS + writeableDir('C:\\TEMP') || // Windows + writeableDir('C:\\TMP') || // Windows + writeableDir('\\TEMP') || // Windows + writeableDir('\\TMP') || // Windows + writeableDir('/tmp') || + writeableDir('/var/tmp') || + writeableDir('/usr/tmp') || + writeableDir('.'); // last resort + + return cachedTempDir; } +// Indicates if the tempdir value is currently cached. This is exposed for tests +// only. The return value should only be tested for truthiness. +function isCached() { + return cachedTempDir; +} -/***/ }), +// Clears the cached tempDir value, if one is cached. This is exposed for tests +// only. +function clearCache() { + cachedTempDir = undefined; +} -/***/ 66755: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +module.exports.tempDir = _tempDir; +module.exports.isCached = isCached; +module.exports.clearCache = clearCache; -"use strict"; -// Copied from https://github.com/nodejs/node/blob/v17.0.1/lib/internal/modules/cjs/helpers.js +/***/ }), +/***/ 79723: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -const { - ArrayPrototypeForEach, - ObjectDefineProperty, - ObjectPrototypeHasOwnProperty, - SafeSet, - StringPrototypeIncludes, - StringPrototypeStartsWith, -} = __nccwpck_require__(26326); +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); -const { getOptionValue } = __nccwpck_require__(40690); -const userConditions = getOptionValue('--conditions'); +common.register('test', _test, { + cmdOptions: { + 'b': 'block', + 'c': 'character', + 'd': 'directory', + 'e': 'exists', + 'f': 'file', + 'L': 'link', + 'p': 'pipe', + 'S': 'socket', + }, + wrapOutput: false, + allowGlobbing: false, +}); -const noAddons = getOptionValue('--no-addons'); -const addonConditions = noAddons ? [] : ['node-addons']; -// TODO: Use this set when resolving pkg#exports conditions in loader.js. -const cjsConditions = new SafeSet([ - 'require', - 'node', - ...addonConditions, - ...userConditions, -]); +//@ +//@ ### test(expression) +//@ +//@ Available expression primaries: +//@ +//@ + `'-b', 'path'`: true if path is a block device +//@ + `'-c', 'path'`: true if path is a character device +//@ + `'-d', 'path'`: true if path is a directory +//@ + `'-e', 'path'`: true if path exists +//@ + `'-f', 'path'`: true if path is a regular file +//@ + `'-L', 'path'`: true if path is a symbolic link +//@ + `'-p', 'path'`: true if path is a pipe (FIFO) +//@ + `'-S', 'path'`: true if path is a socket +//@ +//@ Examples: +//@ +//@ ```javascript +//@ if (test('-d', path)) { /* do something with dir */ }; +//@ if (!test('-f', path)) continue; // skip if it's a regular file +//@ ``` +//@ +//@ Evaluates `expression` using the available primaries and returns corresponding value. +function _test(options, path) { + if (!path) common.error('no path given'); -/** - * @param {any} object - * @param {string} [dummyModuleName] - * @return {void} - */ -function addBuiltinLibsToObject(object, dummyModuleName) { - // Make built-in modules available directly (loaded lazily). - const Module = (__nccwpck_require__(98188).Module); - const { builtinModules } = Module; + var canInterpret = false; + Object.keys(options).forEach(function (key) { + if (options[key] === true) { + canInterpret = true; + } + }); - // To require built-in modules in user-land and ignore modules whose - // `canBeRequiredByUsers` is false. So we create a dummy module object and not - // use `require()` directly. - const dummyModule = new Module(dummyModuleName); + if (!canInterpret) common.error('could not interpret expression'); - ArrayPrototypeForEach(builtinModules, (name) => { - // Neither add underscored modules, nor ones that contain slashes (e.g., - // 'fs/promises') or ones that are already defined. - if (StringPrototypeStartsWith(name, '_') || - StringPrototypeIncludes(name, '/') || - ObjectPrototypeHasOwnProperty(object, name)) { - return; + if (options.link) { + try { + return common.statNoFollowLinks(path).isSymbolicLink(); + } catch (e) { + return false; } - // Goals of this mechanism are: - // - Lazy loading of built-in modules - // - Having all built-in modules available as non-enumerable properties - // - Allowing the user to re-assign these variables as if there were no - // pre-existing globals with the same name. + } - const setReal = (val) => { - // Deleting the property before re-assigning it disables the - // getter/setter mechanism. - delete object[name]; - object[name] = val; - }; + if (!fs.existsSync(path)) return false; - ObjectDefineProperty(object, name, { - get: () => { - // Node 12 hack; remove when we drop node12 support - const lib = (dummyModule.require || require)(name); + if (options.exists) return true; - // Disable the current getter/setter and set up a new - // non-enumerable property. - delete object[name]; - ObjectDefineProperty(object, name, { - get: () => lib, - set: setReal, - configurable: true, - enumerable: false - }); + var stats = common.statFollowLinks(path); - return lib; - }, - set: setReal, - configurable: true, - enumerable: false - }); - }); -} + if (options.block) return stats.isBlockDevice(); -exports.addBuiltinLibsToObject = addBuiltinLibsToObject; -exports.cjsConditions = cjsConditions; + if (options.character) return stats.isCharacterDevice(); + if (options.directory) return stats.isDirectory(); -/***/ }), + if (options.file) return stats.isFile(); -/***/ 51633: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + /* istanbul ignore next */ + if (options.pipe) return stats.isFIFO(); -"use strict"; -// Copied from several files in node's source code. -// https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/modules/cjs/loader.js -// Each function and variable below must have a comment linking to the source in node's github repo. + /* istanbul ignore next */ + if (options.socket) return stats.isSocket(); + /* istanbul ignore next */ + return false; // fallback +} // test +module.exports = _test; -const { - ArrayIsArray, - ArrayPrototypeIncludes, - ArrayPrototypeJoin, - ArrayPrototypePush, - JSONParse, - ObjectKeys, - RegExpPrototypeTest, - SafeMap, - SafeWeakMap, - StringPrototypeCharCodeAt, - StringPrototypeEndsWith, - StringPrototypeLastIndexOf, - StringPrototypeIndexOf, - StringPrototypeMatch, - StringPrototypeSlice, - StringPrototypeStartsWith, -} = __nccwpck_require__(26326); -const { NativeModule } = __nccwpck_require__(81597); -const { pathToFileURL, fileURLToPath } = __nccwpck_require__(57310); -const fs = __nccwpck_require__(57147); -const path = __nccwpck_require__(71017); -const { sep } = path; -const { internalModuleStat } = __nccwpck_require__(3601); -const packageJsonReader = __nccwpck_require__(53348); -const { - cjsConditions, -} = __nccwpck_require__(66755); -const { getOptionValue } = __nccwpck_require__(40690); -const preserveSymlinks = getOptionValue('--preserve-symlinks'); -const preserveSymlinksMain = getOptionValue('--preserve-symlinks-main'); -const {normalizeSlashes} = __nccwpck_require__(64745); -const {createErrRequireEsm} = __nccwpck_require__(61858); -const { - codes: { - ERR_INVALID_MODULE_SPECIFIER, - }, -} = __nccwpck_require__(61858); +/***/ }), -const { - CHAR_FORWARD_SLASH, -} = __nccwpck_require__(88375); +/***/ 71961: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -const Module = __nccwpck_require__(98188); +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); +var path = __nccwpck_require__(71017); -const isWindows = process.platform === 'win32'; +common.register('to', _to, { + pipeOnly: true, + wrapOutput: false, +}); -let statCache = null; +//@ +//@ ### ShellString.prototype.to(file) +//@ +//@ Examples: +//@ +//@ ```javascript +//@ cat('input.txt').to('output.txt'); +//@ ``` +//@ +//@ Analogous to the redirection operator `>` in Unix, but works with +//@ `ShellStrings` (such as those returned by `cat`, `grep`, etc.). _Like Unix +//@ redirections, `to()` will overwrite any existing file!_ +function _to(options, file) { + if (!file) common.error('wrong arguments'); -function stat(filename) { - filename = path.toNamespacedPath(filename); - if (statCache !== null) { - const result = statCache.get(filename); - if (result !== undefined) return result; + if (!fs.existsSync(path.dirname(file))) { + common.error('no such file or directory: ' + path.dirname(file)); } - const result = internalModuleStat(filename); - if (statCache !== null && result >= 0) { - // Only set cache when `internalModuleStat(filename)` succeeds. - statCache.set(filename, result); + + try { + fs.writeFileSync(file, this.stdout || this.toString(), 'utf8'); + return this; + } catch (e) { + /* istanbul ignore next */ + common.error('could not write to file (code ' + e.code + '): ' + file, { continue: true }); } - return result; } +module.exports = _to; -// Note: -// we cannot get access to node's internal cache, which is populated from -// within node's Module constructor. So the cache here will always be empty. -// It's possible we could approximate our own cache by building it up with -// hacky workarounds, but it's not worth the complexity and flakiness. -const moduleParentCache = new SafeWeakMap(); - -// Given a module name, and a list of paths to test, returns the first -// matching file in the following precedence. -// -// require("a.") -// -> a. -// -// require("a") -// -> a -// -> a. -// -> a/index. -const packageJsonCache = new SafeMap(); +/***/ }), -function readPackage(requestPath) { - const jsonPath = path.resolve(requestPath, 'package.json'); +/***/ 33736: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - const existing = packageJsonCache.get(jsonPath); - if (existing !== undefined) return existing; +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); +var path = __nccwpck_require__(71017); - const result = packageJsonReader.read(jsonPath); - const json = result.containsKeys === false ? '{}' : result.string; - if (json === undefined) { - packageJsonCache.set(jsonPath, false); - return false; +common.register('toEnd', _toEnd, { + pipeOnly: true, + wrapOutput: false, +}); + +//@ +//@ ### ShellString.prototype.toEnd(file) +//@ +//@ Examples: +//@ +//@ ```javascript +//@ cat('input.txt').toEnd('output.txt'); +//@ ``` +//@ +//@ Analogous to the redirect-and-append operator `>>` in Unix, but works with +//@ `ShellStrings` (such as those returned by `cat`, `grep`, etc.). +function _toEnd(options, file) { + if (!file) common.error('wrong arguments'); + + if (!fs.existsSync(path.dirname(file))) { + common.error('no such file or directory: ' + path.dirname(file)); } try { - const parsed = JSONParse(json); - const filtered = { - name: parsed.name, - main: parsed.main, - exports: parsed.exports, - imports: parsed.imports, - type: parsed.type - }; - packageJsonCache.set(jsonPath, filtered); - return filtered; + fs.appendFileSync(file, this.stdout || this.toString(), 'utf8'); + return this; } catch (e) { - e.path = jsonPath; - e.message = 'Error parsing ' + jsonPath + ': ' + e.message; - throw e; + /* istanbul ignore next */ + common.error('could not append to file (code ' + e.code + '): ' + file, { continue: true }); } } +module.exports = _toEnd; -function readPackageScope(checkPath) { - const rootSeparatorIndex = StringPrototypeIndexOf(checkPath, sep); - let separatorIndex; - do { - separatorIndex = StringPrototypeLastIndexOf(checkPath, sep); - checkPath = StringPrototypeSlice(checkPath, 0, separatorIndex); - if (StringPrototypeEndsWith(checkPath, sep + 'node_modules')) - return false; - const pjson = readPackage(checkPath + sep); - if (pjson) return { - data: pjson, - path: checkPath, - }; - } while (separatorIndex > rootSeparatorIndex); - return false; -} -/** - * @param {{ - * nodeEsmResolver: ReturnType, - * extensions: import('../src/file-extensions').Extensions, - * preferTsExts - * }} opts - */ -function createCjsLoader(opts) { -const {nodeEsmResolver, preferTsExts} = opts; -const {replacementsForCjs, replacementsForJs, replacementsForMjs, replacementsForJsx} = opts.extensions; -const { - encodedSepRegEx, - packageExportsResolve, - packageImportsResolve -} = nodeEsmResolver; +/***/ }), -function tryPackage(requestPath, exts, isMain, originalPath) { - // const pkg = readPackage(requestPath)?.main; - const tmp = readPackage(requestPath) - const pkg = tmp != null ? tmp.main : undefined; +/***/ 28358: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (!pkg) { - return tryExtensions(path.resolve(requestPath, 'index'), exts, isMain); - } +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); - const filename = path.resolve(requestPath, pkg); - let actual = tryReplacementExtensions(filename, isMain) || - tryFile(filename, isMain) || - tryExtensions(filename, exts, isMain) || - tryExtensions(path.resolve(filename, 'index'), exts, isMain); - if (actual === false) { - actual = tryExtensions(path.resolve(requestPath, 'index'), exts, isMain); - if (!actual) { - // eslint-disable-next-line no-restricted-syntax - const err = new Error( - `Cannot find module '${filename}'. ` + - 'Please verify that the package.json has a valid "main" entry' - ); - err.code = 'MODULE_NOT_FOUND'; - err.path = path.resolve(requestPath, 'package.json'); - err.requestPath = originalPath; - // TODO(BridgeAR): Add the requireStack as well. - throw err; - } else { - const jsonPath = path.resolve(requestPath, 'package.json'); - process.emitWarning( - `Invalid 'main' field in '${jsonPath}' of '${pkg}'. ` + - 'Please either fix that or report it to the module author', - 'DeprecationWarning', - 'DEP0128' - ); - } +common.register('touch', _touch, { + cmdOptions: { + 'a': 'atime_only', + 'c': 'no_create', + 'd': 'date', + 'm': 'mtime_only', + 'r': 'reference', + }, +}); + +//@ +//@ ### touch([options,] file [, file ...]) +//@ ### touch([options,] file_array) +//@ +//@ Available options: +//@ +//@ + `-a`: Change only the access time +//@ + `-c`: Do not create any files +//@ + `-m`: Change only the modification time +//@ + `-d DATE`: Parse `DATE` and use it instead of current time +//@ + `-r FILE`: Use `FILE`'s times instead of current time +//@ +//@ Examples: +//@ +//@ ```javascript +//@ touch('source.js'); +//@ touch('-c', '/path/to/some/dir/source.js'); +//@ touch({ '-r': FILE }, '/path/to/some/dir/source.js'); +//@ ``` +//@ +//@ Update the access and modification times of each `FILE` to the current time. +//@ A `FILE` argument that does not exist is created empty, unless `-c` is supplied. +//@ This is a partial implementation of [`touch(1)`](http://linux.die.net/man/1/touch). +function _touch(opts, files) { + if (!files) { + common.error('no files given'); + } else if (typeof files === 'string') { + files = [].slice.call(arguments, 1); + } else { + common.error('file arg should be a string file path or an Array of string file paths'); } - return actual; + + files.forEach(function (f) { + touchFile(opts, f); + }); + return ''; } -// In order to minimize unnecessary lstat() calls, -// this cache is a list of known-real paths. -// Set to an empty Map to reset. -const realpathCache = new SafeMap(); +function touchFile(opts, file) { + var stat = tryStatFile(file); -// Check if the file exists and is not a directory -// if using --preserve-symlinks and isMain is false, -// keep symlinks intact, otherwise resolve to the -// absolute realpath. -function tryFile(requestPath, isMain) { - const rc = stat(requestPath); - if (rc !== 0) return; - if (preserveSymlinks && !isMain) { - return path.resolve(requestPath); + if (stat && stat.isDirectory()) { + // don't error just exit + return; } - return toRealPath(requestPath); -} -function toRealPath(requestPath) { - return fs.realpathSync(requestPath, { - // [internalFS.realpathCacheKey]: realpathCache - }); -} + // if the file doesn't already exist and the user has specified --no-create then + // this script is finished + if (!stat && opts.no_create) { + return; + } -function statReplacementExtensions(p) { - const lastDotIndex = p.lastIndexOf('.'); - if(lastDotIndex >= 0) { - const ext = p.slice(lastDotIndex); - if (ext === '.js' || ext === '.jsx' || ext === '.mjs' || ext === '.cjs') { - const pathnameWithoutExtension = p.slice(0, lastDotIndex); - const replacementExts = - ext === '.js' ? replacementsForJs - : ext === '.jsx' ? replacementsForJsx - : ext === '.mjs' ? replacementsForMjs - : replacementsForCjs; - for (let i = 0; i < replacementExts.length; i++) { - const filename = pathnameWithoutExtension + replacementExts[i]; - const rc = stat(filename); - if (rc === 0) { - return [rc, filename]; - } - } + // open the file and then close it. this will create it if it doesn't exist but will + // not truncate the file + fs.closeSync(fs.openSync(file, 'a')); + + // + // Set timestamps + // + + // setup some defaults + var now = new Date(); + var mtime = opts.date || now; + var atime = opts.date || now; + + // use reference file + if (opts.reference) { + var refStat = tryStatFile(opts.reference); + if (!refStat) { + common.error('failed to get attributess of ' + opts.reference); } + mtime = refStat.mtime; + atime = refStat.atime; + } else if (opts.date) { + mtime = opts.date; + atime = opts.date; } - return [stat(p), p]; -} -function tryReplacementExtensions(p, isMain) { - const lastDotIndex = p.lastIndexOf('.'); - if(lastDotIndex >= 0) { - const ext = p.slice(lastDotIndex); - if (ext === '.js' || ext === '.jsx' || ext === '.mjs' || ext === '.cjs') { - const pathnameWithoutExtension = p.slice(0, lastDotIndex); - const replacementExts = - ext === '.js' ? replacementsForJs - : ext === '.jsx' ? replacementsForJsx - : ext === '.mjs' ? replacementsForMjs - : replacementsForCjs; - for (let i = 0; i < replacementExts.length; i++) { - const filename = tryFile(pathnameWithoutExtension + replacementExts[i], isMain); - if (filename) { - return filename; - } - } - } + + if (opts.atime_only && opts.mtime_only) { + // keep the new values of mtime and atime like GNU + } else if (opts.atime_only) { + mtime = stat.mtime; + } else if (opts.mtime_only) { + atime = stat.atime; } - return false; + + fs.utimesSync(file, atime, mtime); } -// Given a path, check if the file exists with any of the set extensions -function tryExtensions(p, exts, isMain) { - for (let i = 0; i < exts.length; i++) { - const filename = tryFile(p + exts[i], isMain); +module.exports = _touch; - if (filename) { - return filename; - } +function tryStatFile(filePath) { + try { + return common.statFollowLinks(filePath); + } catch (e) { + return null; } - return false; } -function trySelfParentPath(parent) { - if (!parent) return false; - if (parent.filename) { - return parent.filename; - } else if (parent.id === '' || parent.id === 'internal/preload') { - try { - return process.cwd() + path.sep; - } catch { - return false; - } +/***/ }), + +/***/ 77286: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); + +// add c spaces to the left of str +function lpad(c, str) { + var res = '' + str; + if (res.length < c) { + res = Array((c - res.length) + 1).join(' ') + res; } + return res; } -function trySelf(parentPath, request) { - if (!parentPath) return false; +common.register('uniq', _uniq, { + canReceivePipe: true, + cmdOptions: { + 'i': 'ignoreCase', + 'c': 'count', + 'd': 'duplicates', + }, +}); - const { data: pkg, path: pkgPath } = readPackageScope(parentPath) || {}; - if (!pkg || pkg.exports === undefined) return false; - if (typeof pkg.name !== 'string') return false; +//@ +//@ ### uniq([options,] [input, [output]]) +//@ +//@ Available options: +//@ +//@ + `-i`: Ignore case while comparing +//@ + `-c`: Prefix lines by the number of occurrences +//@ + `-d`: Only print duplicate lines, one for each group of identical lines +//@ +//@ Examples: +//@ +//@ ```javascript +//@ uniq('foo.txt'); +//@ uniq('-i', 'foo.txt'); +//@ uniq('-cd', 'foo.txt', 'bar.txt'); +//@ ``` +//@ +//@ Filter adjacent matching lines from `input`. +function _uniq(options, input, output) { + // Check if this is coming from a pipe + var pipe = common.readFromPipe(); - let expansion; - if (request === pkg.name) { - expansion = '.'; - } else if (StringPrototypeStartsWith(request, `${pkg.name}/`)) { - expansion = '.' + StringPrototypeSlice(request, pkg.name.length); - } else { - return false; - } + if (!pipe) { + if (!input) common.error('no input given'); - try { - return finalizeEsmResolution(packageExportsResolve( - pathToFileURL(pkgPath + '/package.json'), expansion, pkg, - pathToFileURL(parentPath), cjsConditions).resolved, parentPath, pkgPath); - } catch (e) { - if (e.code === 'ERR_MODULE_NOT_FOUND') - throw createEsmNotFoundErr(request, pkgPath + '/package.json'); - throw e; + if (!fs.existsSync(input)) { + common.error(input + ': No such file or directory'); + } else if (common.statFollowLinks(input).isDirectory()) { + common.error("error reading '" + input + "'"); + } + } + if (output && fs.existsSync(output) && common.statFollowLinks(output).isDirectory()) { + common.error(output + ': Is a directory'); } -} -// This only applies to requests of a specific form: -// 1. name/.* -// 2. @scope/name/.* -const EXPORTS_PATTERN = /^((?:@[^/\\%]+\/)?[^./\\%][^/\\%]*)(\/.*)?$/; -function resolveExports(nmPath, request) { - // The implementation's behavior is meant to mirror resolution in ESM. - const { 1: name, 2: expansion = '' } = - StringPrototypeMatch(request, EXPORTS_PATTERN) || []; - if (!name) - return; - const pkgPath = path.resolve(nmPath, name); - const pkg = readPackage(pkgPath); - // if (pkg?.exports != null) { - if (pkg != null && pkg.exports != null) { - try { - return finalizeEsmResolution(packageExportsResolve( - pathToFileURL(pkgPath + '/package.json'), '.' + expansion, pkg, null, - cjsConditions).resolved, null, pkgPath); - } catch (e) { - if (e.code === 'ERR_MODULE_NOT_FOUND') - throw createEsmNotFoundErr(request, pkgPath + '/package.json'); - throw e; + var lines = (input ? fs.readFileSync(input, 'utf8') : pipe). + trimRight(). + split('\n'); + + var compare = function (a, b) { + return options.ignoreCase ? + a.toLocaleLowerCase().localeCompare(b.toLocaleLowerCase()) : + a.localeCompare(b); + }; + var uniqed = lines.reduceRight(function (res, e) { + // Perform uniq -c on the input + if (res.length === 0) { + return [{ count: 1, ln: e }]; + } else if (compare(res[0].ln, e) === 0) { + return [{ count: res[0].count + 1, ln: e }].concat(res.slice(1)); + } else { + return [{ count: 1, ln: e }].concat(res); } + }, []).filter(function (obj) { + // Do we want only duplicated objects? + return options.duplicates ? obj.count > 1 : true; + }).map(function (obj) { + // Are we tracking the counts of each line? + return (options.count ? (lpad(7, obj.count) + ' ') : '') + obj.ln; + }).join('\n') + '\n'; + + if (output) { + (new common.ShellString(uniqed)).to(output); + // if uniq writes to output, nothing is passed to the next command in the pipeline (if any) + return ''; + } else { + return uniqed; } } -// Backwards compat for old node versions -const hasModulePathCache = !!(__nccwpck_require__(98188)._pathCache); -const Module_pathCache = Object.create(null); -const Module_pathCache_get = hasModulePathCache ? (cacheKey) => Module._pathCache[cacheKey] : (cacheKey) => Module_pathCache[cacheKey]; -const Module_pathCache_set = hasModulePathCache ? (cacheKey, value) => (Module._pathCache[cacheKey] = value) : (cacheKey) => (Module_pathCache[cacheKey] = value); +module.exports = _uniq; -const trailingSlashRegex = /(?:^|\/)\.?\.$/; -const Module_findPath = function _findPath(request, paths, isMain) { - const absoluteRequest = path.isAbsolute(request); - if (absoluteRequest) { - paths = ['']; - } else if (!paths || paths.length === 0) { - return false; - } - const cacheKey = request + '\x00' + ArrayPrototypeJoin(paths, '\x00'); - const entry = Module_pathCache_get(cacheKey); - if (entry) - return entry; +/***/ }), - let exts; - let trailingSlash = request.length > 0 && - StringPrototypeCharCodeAt(request, request.length - 1) === - CHAR_FORWARD_SLASH; - if (!trailingSlash) { - trailingSlash = RegExpPrototypeTest(trailingSlashRegex, request); - } +/***/ 64766: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // For each path - for (let i = 0; i < paths.length; i++) { - // Don't search further if path doesn't exist - const curPath = paths[i]; - if (curPath && stat(curPath) < 1) continue; +var common = __nccwpck_require__(53687); +var fs = __nccwpck_require__(57147); +var path = __nccwpck_require__(71017); - if (!absoluteRequest) { - const exportsResolved = resolveExports(curPath, request); - if (exportsResolved) - return exportsResolved; - } +common.register('which', _which, { + allowGlobbing: false, + cmdOptions: { + 'a': 'all', + }, +}); - const _basePath = path.resolve(curPath, request); - let filename; +// XP's system default value for `PATHEXT` system variable, just in case it's not +// set on Windows. +var XP_DEFAULT_PATHEXT = '.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh'; - const [rc, basePath] = statReplacementExtensions(_basePath); - if (!trailingSlash) { - if (rc === 0) { // File. - if (!isMain) { - if (preserveSymlinks) { - filename = path.resolve(basePath); - } else { - filename = toRealPath(basePath); - } - } else if (preserveSymlinksMain) { - // For the main module, we use the preserveSymlinksMain flag instead - // mainly for backward compatibility, as the preserveSymlinks flag - // historically has not applied to the main module. Most likely this - // was intended to keep .bin/ binaries working, as following those - // symlinks is usually required for the imports in the corresponding - // files to resolve; that said, in some use cases following symlinks - // causes bigger problems which is why the preserveSymlinksMain option - // is needed. - filename = path.resolve(basePath); - } else { - filename = toRealPath(basePath); - } - } +// For earlier versions of NodeJS that doesn't have a list of constants (< v6) +var FILE_EXECUTABLE_MODE = 1; - if (!filename) { - // Try it with each of the extensions - if (exts === undefined) - exts = ObjectKeys(Module._extensions); - filename = tryExtensions(basePath, exts, isMain); - } - } +function isWindowsPlatform() { + return process.platform === 'win32'; +} - if (!filename && rc === 1) { // Directory. - // try it with each of the extensions at "index" - if (exts === undefined) - exts = ObjectKeys(Module._extensions); - filename = tryPackage(basePath, exts, isMain, request); - } +// Cross-platform method for splitting environment `PATH` variables +function splitPath(p) { + return p ? p.split(path.delimiter) : []; +} - if (filename) { - Module_pathCache_set(cacheKey, filename); - return filename; - } +// Tests are running all cases for this func but it stays uncovered by codecov due to unknown reason +/* istanbul ignore next */ +function isExecutable(pathName) { + try { + // TODO(node-support): replace with fs.constants.X_OK once remove support for node < v6 + fs.accessSync(pathName, FILE_EXECUTABLE_MODE); + } catch (err) { + return false; } + return true; +} - return false; -}; +function checkPath(pathName) { + return fs.existsSync(pathName) && !common.statFollowLinks(pathName).isDirectory() + && (isWindowsPlatform() || isExecutable(pathName)); +} -const Module_resolveFilename = function _resolveFilename(request, parent, isMain, options) { - if (StringPrototypeStartsWith(request, 'node:') || - NativeModule.canBeRequiredByUsers(request)) { - return request; - } +//@ +//@ ### which(command) +//@ +//@ Examples: +//@ +//@ ```javascript +//@ var nodeExec = which('node'); +//@ ``` +//@ +//@ Searches for `command` in the system's `PATH`. On Windows, this uses the +//@ `PATHEXT` variable to append the extension if it's not already executable. +//@ Returns string containing the absolute path to `command`. +function _which(options, cmd) { + if (!cmd) common.error('must specify command'); - let paths; + var isWindows = isWindowsPlatform(); + var pathArray = splitPath(process.env.PATH); - if (typeof options === 'object' && options !== null) { - if (ArrayIsArray(options.paths)) { - const isRelative = StringPrototypeStartsWith(request, './') || - StringPrototypeStartsWith(request, '../') || - ((isWindows && StringPrototypeStartsWith(request, '.\\')) || - StringPrototypeStartsWith(request, '..\\')); + var queryMatches = []; - if (isRelative) { - paths = options.paths; - } else { - const fakeParent = new Module('', null); + // No relative/absolute paths provided? + if (cmd.indexOf('/') === -1) { + // Assume that there are no extensions to append to queries (this is the + // case for unix) + var pathExtArray = ['']; + if (isWindows) { + // In case the PATHEXT variable is somehow not set (e.g. + // child_process.spawn with an empty environment), use the XP default. + var pathExtEnv = process.env.PATHEXT || XP_DEFAULT_PATHEXT; + pathExtArray = splitPath(pathExtEnv.toUpperCase()); + } - paths = []; + // Search for command in PATH + for (var k = 0; k < pathArray.length; k++) { + // already found it + if (queryMatches.length > 0 && !options.all) break; - for (let i = 0; i < options.paths.length; i++) { - const path = options.paths[i]; - fakeParent.paths = Module._nodeModulePaths(path); - const lookupPaths = Module._resolveLookupPaths(request, fakeParent); + var attempt = path.resolve(pathArray[k], cmd); - for (let j = 0; j < lookupPaths.length; j++) { - if (!ArrayPrototypeIncludes(paths, lookupPaths[j])) - ArrayPrototypePush(paths, lookupPaths[j]); - } - } + if (isWindows) { + attempt = attempt.toUpperCase(); } - } else if (options.paths === undefined) { - paths = Module._resolveLookupPaths(request, parent); - } else { - throw new ERR_INVALID_ARG_VALUE('options.paths', options.paths); - } - } else { - paths = Module._resolveLookupPaths(request, parent); - } - - // if (parent?.filename) { - // node 12 hack - if (parent != null && parent.filename) { - if (request[0] === '#') { - const pkg = readPackageScope(parent.filename) || {}; - // if (pkg.data?.imports != null) { - // node 12 hack - if (pkg.data != null && pkg.data.imports != null) { - try { - return finalizeEsmResolution( - packageImportsResolve(request, pathToFileURL(parent.filename), - cjsConditions), parent.filename, - pkg.path); - } catch (e) { - if (e.code === 'ERR_MODULE_NOT_FOUND') - throw createEsmNotFoundErr(request); - throw e; + var match = attempt.match(/\.[^<>:"/\|?*.]+$/); + if (match && pathExtArray.indexOf(match[0]) >= 0) { // this is Windows-only + // The user typed a query with the file extension, like + // `which('node.exe')` + if (checkPath(attempt)) { + queryMatches.push(attempt); + break; + } + } else { // All-platforms + // Cycle through the PATHEXT array, and check each extension + // Note: the array is always [''] on Unix + for (var i = 0; i < pathExtArray.length; i++) { + var ext = pathExtArray[i]; + var newAttempt = attempt + ext; + if (checkPath(newAttempt)) { + queryMatches.push(newAttempt); + break; + } } } } + } else if (checkPath(cmd)) { // a valid absolute or relative path + queryMatches.push(path.resolve(cmd)); } - // Try module self resolution first - const parentPath = trySelfParentPath(parent); - const selfResolved = trySelf(parentPath, request); - if (selfResolved) { - const cacheKey = request + '\x00' + - (paths.length === 1 ? paths[0] : ArrayPrototypeJoin(paths, '\x00')); - Module._pathCache[cacheKey] = selfResolved; - return selfResolved; + if (queryMatches.length > 0) { + return options.all ? queryMatches : queryMatches[0]; } + return options.all ? [] : null; +} +module.exports = _which; - // Look up the filename first, since that's the cache key. - const filename = Module._findPath(request, paths, isMain, false); - if (filename) return filename; - const requireStack = []; - for (let cursor = parent; - cursor; - cursor = moduleParentCache.get(cursor)) { - ArrayPrototypePush(requireStack, cursor.filename || cursor.id); - } - let message = `Cannot find module '${request}'`; - if (requireStack.length > 0) { - message = message + '\nRequire stack:\n- ' + - ArrayPrototypeJoin(requireStack, '\n- '); - } - // eslint-disable-next-line no-restricted-syntax - const err = new Error(message); - err.code = 'MODULE_NOT_FOUND'; - err.requireStack = requireStack; - throw err; -}; -function finalizeEsmResolution(resolved, parentPath, pkgPath) { - if (RegExpPrototypeTest(encodedSepRegEx, resolved)) - throw new ERR_INVALID_MODULE_SPECIFIER( - resolved, 'must not include encoded "/" or "\\" characters', parentPath); - const filename = fileURLToPath(resolved); - const actual = tryReplacementExtensions(filename) || tryFile(filename); - if (actual) - return actual; - const err = createEsmNotFoundErr(filename, - path.resolve(pkgPath, 'package.json')); - throw err; -} +/***/ }), -function createEsmNotFoundErr(request, path) { - // eslint-disable-next-line no-restricted-syntax - const err = new Error(`Cannot find module '${request}'`); - err.code = 'MODULE_NOT_FOUND'; - if (path) - err.path = path; - // TODO(BridgeAR): Add the requireStack as well. - return err; -} +/***/ 9249: +/***/ ((module, exports, __nccwpck_require__) => { +/* module decorator */ module = __nccwpck_require__.nmd(module); +var SourceMapConsumer = (__nccwpck_require__(56594).SourceMapConsumer); +var path = __nccwpck_require__(71017); -return { - Module_findPath, - Module_resolveFilename +var fs; +try { + fs = __nccwpck_require__(57147); + if (!fs.existsSync || !fs.readFileSync) { + // fs doesn't have all methods we need + fs = null; + } +} catch (err) { + /* nop */ } -} +var bufferFrom = __nccwpck_require__(93018); /** - * copied from Module._extensions['.js'] - * https://github.com/nodejs/node/blob/v15.3.0/lib/internal/modules/cjs/loader.js#L1113-L1120 - * @param {import('../src/index').Service} service - * @param {NodeJS.Module} module - * @param {string} filename + * Requires a module which is protected against bundler minification. + * + * @param {NodeModule} mod + * @param {string} request */ -function assertScriptCanLoadAsCJSImpl(service, module, filename) { - const pkg = readPackageScope(filename); - - // ts-node modification: allow our configuration to override - const tsNodeClassification = service.moduleTypeClassifier.classifyModuleByModuleTypeOverrides(normalizeSlashes(filename)); - if(tsNodeClassification.moduleType === 'cjs') return; - - // ignore package.json when file extension is ESM-only or CJS-only - // [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS] - const lastDotIndex = filename.lastIndexOf('.'); - const ext = lastDotIndex >= 0 ? filename.slice(lastDotIndex) : ''; - - if((ext === '.cts' || ext === '.cjs') && tsNodeClassification.moduleType === 'auto') return; - - // Function require shouldn't be used in ES modules. - if (ext === '.mts' || ext === '.mjs' || tsNodeClassification.moduleType === 'esm' || (pkg && pkg.data && pkg.data.type === 'module')) { - const parentPath = module.parent && module.parent.filename; - const packageJsonPath = pkg ? path.resolve(pkg.path, 'package.json') : null; - throw createErrRequireEsm(filename, parentPath, packageJsonPath); - } +function dynamicRequire(mod, request) { + return mod.require(request); } +// Only install once if called multiple times +var errorFormatterInstalled = false; +var uncaughtShimInstalled = false; -module.exports = { - createCjsLoader, - assertScriptCanLoadAsCJSImpl, - readPackageScope -}; +// If true, the caches are reset before a stack trace formatting operation +var emptyCacheBetweenOperations = false; +// Supports {browser, node, auto} +var environment = "auto"; -/***/ }), +// Maps a file path to a string containing the file contents +var fileContentsCache = {}; -/***/ 37207: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +// Maps a file path to a source map for that file +var sourceMapCache = {}; -"use strict"; -// Copied from https://raw.githubusercontent.com/nodejs/node/v15.3.0/lib/internal/modules/esm/get_format.js +// Regex for detecting source maps +var reSourceMap = /^data:application\/json[^,]+base64,/; +// Priority list of retrieve handlers +var retrieveFileHandlers = []; +var retrieveMapHandlers = []; -const { - RegExpPrototypeExec, - StringPrototypeStartsWith, -} = __nccwpck_require__(26326); -const { extname } = __nccwpck_require__(71017); -const { getOptionValue } = __nccwpck_require__(40690); +function isInBrowser() { + if (environment === "browser") + return true; + if (environment === "node") + return false; + return ((typeof window !== 'undefined') && (typeof XMLHttpRequest === 'function') && !(window.require && window.module && window.process && window.process.type === "renderer")); +} -const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(s => parseInt(s, 10)); -const experimentalJsonModules = - nodeMajor > 17 - || (nodeMajor === 17 && nodeMinor >= 5) - || (nodeMajor === 16 && nodeMinor >= 15) - || getOptionValue('--experimental-json-modules'); -const experimentalWasmModules = getOptionValue('--experimental-wasm-modules'); -const { URL, fileURLToPath } = __nccwpck_require__(57310); -const { ERR_UNKNOWN_FILE_EXTENSION } = (__nccwpck_require__(61858).codes); +function hasGlobalProcessEventEmitter() { + return ((typeof process === 'object') && (process !== null) && (typeof process.on === 'function')); +} -const extensionFormatMap = { - '__proto__': null, - '.cjs': 'commonjs', - '.js': 'module', - '.mjs': 'module' -}; +function globalProcessVersion() { + if ((typeof process === 'object') && (process !== null)) { + return process.version; + } else { + return ''; + } +} -const legacyExtensionFormatMap = { - '__proto__': null, - '.cjs': 'commonjs', - '.js': 'commonjs', - '.json': 'commonjs', - '.mjs': 'module', - '.node': 'commonjs' -}; +function globalProcessStderr() { + if ((typeof process === 'object') && (process !== null)) { + return process.stderr; + } +} -if (experimentalWasmModules) - extensionFormatMap['.wasm'] = legacyExtensionFormatMap['.wasm'] = 'wasm'; +function globalProcessExit(code) { + if ((typeof process === 'object') && (process !== null) && (typeof process.exit === 'function')) { + return process.exit(code); + } +} -if (experimentalJsonModules) - extensionFormatMap['.json'] = legacyExtensionFormatMap['.json'] = 'json'; +function handlerExec(list) { + return function(arg) { + for (var i = 0; i < list.length; i++) { + var ret = list[i](arg); + if (ret) { + return ret; + } + } + return null; + }; +} -/** - * - * @param {'node' | 'explicit'} [tsNodeExperimentalSpecifierResolution] - * @param {ReturnType< - * typeof import('../dist-raw/node-internal-modules-esm-resolve').createResolve - * >} nodeEsmResolver - */ -function createGetFormat(tsNodeExperimentalSpecifierResolution, nodeEsmResolver) { -// const experimentalSpeciferResolution = tsNodeExperimentalSpecifierResolution ?? getOptionValue('--experimental-specifier-resolution'); -let experimentalSpeciferResolution = tsNodeExperimentalSpecifierResolution != null ? tsNodeExperimentalSpecifierResolution : getOptionValue('--experimental-specifier-resolution'); -const { getPackageType } = nodeEsmResolver; +var retrieveFile = handlerExec(retrieveFileHandlers); -/** - * @param {string} url - * @param {{}} context - * @param {any} defaultGetFormatUnused - * @returns {ReturnType} - */ -function defaultGetFormat(url, context, defaultGetFormatUnused) { - if (StringPrototypeStartsWith(url, 'node:')) { - return { format: 'builtin' }; +retrieveFileHandlers.push(function(path) { + // Trim the path to make sure there is no extra whitespace. + path = path.trim(); + if (/^file:/.test(path)) { + // existsSync/readFileSync can't handle file protocol, but once stripped, it works + path = path.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) { + return drive ? + '' : // file:///C:/dir/file -> C:/dir/file + '/'; // file:///root-dir/file -> /root-dir/file + }); } - const parsed = new URL(url); - if (parsed.protocol === 'data:') { - const [ , mime ] = RegExpPrototypeExec( - /^([^/]+\/[^;,]+)(?:[^,]*?)(;base64)?,/, - parsed.pathname, - ) || [ null, null, null ]; - const format = ({ - '__proto__': null, - 'text/javascript': 'module', - 'application/json': experimentalJsonModules ? 'json' : null, - 'application/wasm': experimentalWasmModules ? 'wasm' : null - })[mime] || null; - return { format }; - } else if (parsed.protocol === 'file:') { - const ext = extname(parsed.pathname); - let format; - if (ext === '.js') { - format = getPackageType(parsed.href) === 'module' ? 'module' : 'commonjs'; - } else { - format = extensionFormatMap[ext]; - } - if (!format) { - if (experimentalSpeciferResolution === 'node') { - process.emitWarning( - 'The Node.js specifier resolution in ESM is experimental.', - 'ExperimentalWarning'); - format = legacyExtensionFormatMap[ext]; - } else { - throw new ERR_UNKNOWN_FILE_EXTENSION(ext, fileURLToPath(url)); + if (path in fileContentsCache) { + return fileContentsCache[path]; + } + + var contents = ''; + try { + if (!fs) { + // Use SJAX if we are in the browser + var xhr = new XMLHttpRequest(); + xhr.open('GET', path, /** async */ false); + xhr.send(null); + if (xhr.readyState === 4 && xhr.status === 200) { + contents = xhr.responseText; } + } else if (fs.existsSync(path)) { + // Otherwise, use the filesystem + contents = fs.readFileSync(path, 'utf8'); } - return { format: format || null }; + } catch (er) { + /* ignore any errors */ } - return { format: null }; -} -return {defaultGetFormat}; + return fileContentsCache[path] = contents; +}); + +// Support URLs relative to a directory, but be careful about a protocol prefix +// in case we are in the browser (i.e. directories may start with "http://" or "file:///") +function supportRelativeURL(file, url) { + if (!file) return url; + var dir = path.dirname(file); + var match = /^\w+:\/\/[^\/]*/.exec(dir); + var protocol = match ? match[0] : ''; + var startPath = dir.slice(protocol.length); + if (protocol && /^\/\w\:/.test(startPath)) { + // handle file:///C:/ paths + protocol += '/'; + return protocol + path.resolve(dir.slice(protocol.length), url).replace(/\\/g, '/'); + } + return protocol + path.resolve(dir.slice(protocol.length), url); } -module.exports = { - createGetFormat -}; +function retrieveSourceMapURL(source) { + var fileData; + if (isInBrowser()) { + try { + var xhr = new XMLHttpRequest(); + xhr.open('GET', source, false); + xhr.send(null); + fileData = xhr.readyState === 4 ? xhr.responseText : null; -/***/ }), + // Support providing a sourceMappingURL via the SourceMap header + var sourceMapHeader = xhr.getResponseHeader("SourceMap") || + xhr.getResponseHeader("X-SourceMap"); + if (sourceMapHeader) { + return sourceMapHeader; + } + } catch (e) { + } + } -/***/ 67968: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // Get the URL of the source map + fileData = retrieveFile(source); + var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg; + // Keep executing the search to find the *last* sourceMappingURL to avoid + // picking up sourceMappingURLs from comments, strings, etc. + var lastMatch, match; + while (match = re.exec(fileData)) lastMatch = match; + if (!lastMatch) return null; + return lastMatch[1]; +}; -"use strict"; -// Copied from https://raw.githubusercontent.com/nodejs/node/v15.3.0/lib/internal/modules/esm/resolve.js +// Can be overridden by the retrieveSourceMap option to install. Takes a +// generated source filename; returns a {map, optional url} object, or null if +// there is no source map. The map field may be either a string or the parsed +// JSON object (ie, it must be a valid argument to the SourceMapConsumer +// constructor). +var retrieveSourceMap = handlerExec(retrieveMapHandlers); +retrieveMapHandlers.push(function(source) { + var sourceMappingURL = retrieveSourceMapURL(source); + if (!sourceMappingURL) return null; + // Read the contents of the source map + var sourceMapData; + if (reSourceMap.test(sourceMappingURL)) { + // Support source map URL as a data url + var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1); + sourceMapData = bufferFrom(rawData, "base64").toString(); + sourceMappingURL = source; + } else { + // Support source map URLs relative to the source URL + sourceMappingURL = supportRelativeURL(source, sourceMappingURL); + sourceMapData = retrieveFile(sourceMappingURL); + } + if (!sourceMapData) { + return null; + } -const {versionGteLt} = __nccwpck_require__(64745); + return { + url: sourceMappingURL, + map: sourceMapData + }; +}); -// Test for node >14.13.1 || (>=12.20.0 && <13) -const builtinModuleProtocol = - versionGteLt(process.versions.node, '14.13.1') || - versionGteLt(process.versions.node, '12.20.0', '13.0.0') - ? 'node:' - : 'nodejs:'; +function mapSourcePosition(position) { + var sourceMap = sourceMapCache[position.source]; + if (!sourceMap) { + // Call the (overrideable) retrieveSourceMap function to get the source map. + var urlAndMap = retrieveSourceMap(position.source); + if (urlAndMap) { + sourceMap = sourceMapCache[position.source] = { + url: urlAndMap.url, + map: new SourceMapConsumer(urlAndMap.map) + }; -const { - ArrayIsArray, - ArrayPrototypeJoin, - ArrayPrototypeShift, - JSONParse, - JSONStringify, - ObjectFreeze, - ObjectGetOwnPropertyNames, - ObjectPrototypeHasOwnProperty, - RegExpPrototypeTest, - SafeMap, - SafeSet, - StringPrototypeEndsWith, - StringPrototypeIndexOf, - StringPrototypeLastIndexOf, - StringPrototypeReplace, - StringPrototypeSlice, - StringPrototypeSplit, - StringPrototypeStartsWith, - StringPrototypeSubstr, -} = __nccwpck_require__(26326); - -// const internalFS = require('internal/fs/utils'); -const Module = __nccwpck_require__(98188); -const { NativeModule } = __nccwpck_require__(81597); -const { - realpathSync, - statSync, - Stats, -} = __nccwpck_require__(57147); -// const { getOptionValue } = require('internal/options'); -const { getOptionValue } = __nccwpck_require__(40690); -// // Do not eagerly grab .manifest, it may be in TDZ -// const policy = getOptionValue('--experimental-policy') ? -// require('internal/process/policy') : -// null; -// disabled for now. I am not sure if/how we should support this -const policy = null; -const { sep, relative } = __nccwpck_require__(71017); -const preserveSymlinks = getOptionValue('--preserve-symlinks'); -const preserveSymlinksMain = getOptionValue('--preserve-symlinks-main'); -const typeFlag = getOptionValue('--input-type'); -// const { URL, pathToFileURL, fileURLToPath } = require('internal/url'); -const { URL, pathToFileURL, fileURLToPath } = __nccwpck_require__(57310); -const { - ERR_INPUT_TYPE_NOT_ALLOWED, - ERR_INVALID_ARG_VALUE, - ERR_INVALID_MODULE_SPECIFIER, - ERR_INVALID_PACKAGE_CONFIG, - ERR_INVALID_PACKAGE_TARGET, - ERR_MANIFEST_DEPENDENCY_MISSING, - ERR_MODULE_NOT_FOUND, - ERR_PACKAGE_IMPORT_NOT_DEFINED, - ERR_PACKAGE_PATH_NOT_EXPORTED, - ERR_UNSUPPORTED_DIR_IMPORT, - ERR_UNSUPPORTED_ESM_URL_SCHEME, -// } = require('internal/errors').codes; -} = (__nccwpck_require__(61858).codes); - -// const { Module: CJSModule } = require('internal/modules/cjs/loader'); -const CJSModule = Module; - -// const packageJsonReader = require('internal/modules/package_json_reader'); -const packageJsonReader = __nccwpck_require__(53348); -const userConditions = getOptionValue('--conditions'); -const DEFAULT_CONDITIONS = ObjectFreeze(['node', 'import', ...userConditions]); -const DEFAULT_CONDITIONS_SET = new SafeSet(DEFAULT_CONDITIONS); - -const pendingDeprecation = getOptionValue('--pending-deprecation'); - -/** - * @param {{ - * extensions: import('../src/file-extensions').Extensions, - * preferTsExts: boolean | undefined; - * tsNodeExperimentalSpecifierResolution: import('../src/index').ExperimentalSpecifierResolution | undefined; - * }} opts - */ -function createResolve(opts) { -// TODO receive cached fs implementations here -const {preferTsExts, tsNodeExperimentalSpecifierResolution, extensions} = opts; -const esrnExtensions = extensions.experimentalSpecifierResolutionAddsIfOmitted; -const {legacyMainResolveAddsIfOmitted, replacementsForCjs, replacementsForJs, replacementsForMjs, replacementsForJsx} = extensions; -// const experimentalSpecifierResolution = tsNodeExperimentalSpecifierResolution ?? getOptionValue('--experimental-specifier-resolution'); -const experimentalSpecifierResolution = tsNodeExperimentalSpecifierResolution != null ? tsNodeExperimentalSpecifierResolution : getOptionValue('--experimental-specifier-resolution'); - -const emittedPackageWarnings = new SafeSet(); -function emitFolderMapDeprecation(match, pjsonUrl, isExports, base) { - const pjsonPath = fileURLToPath(pjsonUrl); - if (!pendingDeprecation) { - const nodeModulesIndex = StringPrototypeLastIndexOf(pjsonPath, - '/node_modules/'); - if (nodeModulesIndex !== -1) { - const afterNodeModulesPath = StringPrototypeSlice(pjsonPath, - nodeModulesIndex + 14, - -13); - try { - const { packageSubpath } = parsePackageName(afterNodeModulesPath); - if (packageSubpath === '.') - return; - } catch {} + // Load all sources stored inline with the source map into the file cache + // to pretend like they are already loaded. They may not exist on disk. + if (sourceMap.map.sourcesContent) { + sourceMap.map.sources.forEach(function(source, i) { + var contents = sourceMap.map.sourcesContent[i]; + if (contents) { + var url = supportRelativeURL(sourceMap.url, source); + fileContentsCache[url] = contents; + } + }); + } + } else { + sourceMap = sourceMapCache[position.source] = { + url: null, + map: null + }; } } - if (emittedPackageWarnings.has(pjsonPath + '|' + match)) - return; - emittedPackageWarnings.add(pjsonPath + '|' + match); - process.emitWarning( - `Use of deprecated folder mapping "${match}" in the ${isExports ? - '"exports"' : '"imports"'} field module resolution of the package at ${ - pjsonPath}${base ? ` imported from ${fileURLToPath(base)}` : ''}.\n` + - `Update this package.json to use a subpath pattern like "${match}*".`, - 'DeprecationWarning', - 'DEP0148' - ); -} -function getConditionsSet(conditions) { - if (conditions !== undefined && conditions !== DEFAULT_CONDITIONS) { - if (!ArrayIsArray(conditions)) { - throw new ERR_INVALID_ARG_VALUE('conditions', conditions, - 'expected an array'); + // Resolve the source URL relative to the URL of the source map + if (sourceMap && sourceMap.map && typeof sourceMap.map.originalPositionFor === 'function') { + var originalPosition = sourceMap.map.originalPositionFor(position); + + // Only return the original position if a matching line was found. If no + // matching line is found then we return position instead, which will cause + // the stack trace to print the path and line for the compiled file. It is + // better to give a precise location in the compiled file than a vague + // location in the original file. + if (originalPosition.source !== null) { + originalPosition.source = supportRelativeURL( + sourceMap.url, originalPosition.source); + return originalPosition; } - return new SafeSet(conditions); } - return DEFAULT_CONDITIONS_SET; -} - -const realpathCache = new SafeMap(); -const packageJSONCache = new SafeMap(); /* string -> PackageConfig */ -const statSupportsThrowIfNoEntry = versionGteLt(process.versions.node, '15.3.0') || - versionGteLt(process.versions.node, '14.17.0', '15.0.0'); -const tryStatSync = statSupportsThrowIfNoEntry ? tryStatSyncWithoutErrors : tryStatSyncWithErrors; -const statsIfNotFound = new Stats(); -function tryStatSyncWithoutErrors(path) { - const stats = statSync(path, { throwIfNoEntry: false }); - if(stats != null) return stats; - return statsIfNotFound; -} -function tryStatSyncWithErrors(path) { - try { - return statSync(path); - } catch { - return statsIfNotFound; - } + return position; } -function getPackageConfig(path, specifier, base) { - const existing = packageJSONCache.get(path); - if (existing !== undefined) { - return existing; - } - const source = packageJsonReader.read(path).string; - if (source === undefined) { - const packageConfig = { - pjsonPath: path, - exists: false, - main: undefined, - name: undefined, - type: 'none', - exports: undefined, - imports: undefined, - }; - packageJSONCache.set(path, packageConfig); - return packageConfig; +// Parses code generated by FormatEvalOrigin(), a function inside V8: +// https://code.google.com/p/v8/source/browse/trunk/src/messages.js +function mapEvalOrigin(origin) { + // Most eval() calls are in this format + var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin); + if (match) { + var position = mapSourcePosition({ + source: match[2], + line: +match[3], + column: match[4] - 1 + }); + return 'eval at ' + match[1] + ' (' + position.source + ':' + + position.line + ':' + (position.column + 1) + ')'; } - let packageJSON; - try { - packageJSON = JSONParse(source); - } catch (error) { - throw new ERR_INVALID_PACKAGE_CONFIG( - path, - (base ? `"${specifier}" from ` : '') + fileURLToPath(base || specifier), - error.message - ); + // Parse nested eval() calls using recursion + match = /^eval at ([^(]+) \((.+)\)$/.exec(origin); + if (match) { + return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')'; } - let { imports, main, name, type } = packageJSON; - const { exports } = packageJSON; - if (typeof imports !== 'object' || imports === null) imports = undefined; - if (typeof main !== 'string') main = undefined; - if (typeof name !== 'string') name = undefined; - // Ignore unknown types for forwards compatibility - if (type !== 'module' && type !== 'commonjs') type = 'none'; - - const packageConfig = { - pjsonPath: path, - exists: true, - main, - name, - type, - exports, - imports, - }; - packageJSONCache.set(path, packageConfig); - return packageConfig; + // Make sure we still return useful information if we didn't find anything + return origin; } -function getPackageScopeConfig(resolved) { - let packageJSONUrl = new URL('./package.json', resolved); - while (true) { - const packageJSONPath = packageJSONUrl.pathname; - if (StringPrototypeEndsWith(packageJSONPath, 'node_modules/package.json')) - break; - const packageConfig = getPackageConfig(fileURLToPath(packageJSONUrl), - resolved); - if (packageConfig.exists) return packageConfig; - - const lastPackageJSONUrl = packageJSONUrl; - packageJSONUrl = new URL('../package.json', packageJSONUrl); +// This is copied almost verbatim from the V8 source code at +// https://code.google.com/p/v8/source/browse/trunk/src/messages.js. The +// implementation of wrapCallSite() used to just forward to the actual source +// code of CallSite.prototype.toString but unfortunately a new release of V8 +// did something to the prototype chain and broke the shim. The only fix I +// could find was copy/paste. +function CallSiteToString() { + var fileName; + var fileLocation = ""; + if (this.isNative()) { + fileLocation = "native"; + } else { + fileName = this.getScriptNameOrSourceURL(); + if (!fileName && this.isEval()) { + fileLocation = this.getEvalOrigin(); + fileLocation += ", "; // Expecting source position to follow. + } - // Terminates at root where ../package.json equals ../../package.json - // (can't just check "/package.json" for Windows support). - if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) break; + if (fileName) { + fileLocation += fileName; + } else { + // Source code does not originate from a file and is not native, but we + // can still get the source position inside the source string, e.g. in + // an eval string. + fileLocation += ""; + } + var lineNumber = this.getLineNumber(); + if (lineNumber != null) { + fileLocation += ":" + lineNumber; + var columnNumber = this.getColumnNumber(); + if (columnNumber) { + fileLocation += ":" + columnNumber; + } + } } - const packageJSONPath = fileURLToPath(packageJSONUrl); - const packageConfig = { - pjsonPath: packageJSONPath, - exists: false, - main: undefined, - name: undefined, - type: 'none', - exports: undefined, - imports: undefined, - }; - packageJSONCache.set(packageJSONPath, packageConfig); - return packageConfig; -} - -/* - * Legacy CommonJS main resolution: - * 1. let M = pkg_url + (json main field) - * 2. TRY(M, M.js, M.json, M.node) - * 3. TRY(M/index.js, M/index.json, M/index.node) - * 4. TRY(pkg_url/index.js, pkg_url/index.json, pkg_url/index.node) - * 5. NOT_FOUND - */ -function fileExists(url) { - return tryStatSync(fileURLToPath(url)).isFile(); -} -function legacyMainResolve(packageJSONUrl, packageConfig, base) { - let guess; - if (packageConfig.main !== undefined) { - // Note: fs check redundances will be handled by Descriptor cache here. - if(guess = resolveReplacementExtensions(new URL(`./${packageConfig.main}`, packageJSONUrl))) { - return guess; - } - if (fileExists(guess = new URL(`./${packageConfig.main}`, - packageJSONUrl))) { - return guess; + var line = ""; + var functionName = this.getFunctionName(); + var addSuffix = true; + var isConstructor = this.isConstructor(); + var isMethodCall = !(this.isToplevel() || isConstructor); + if (isMethodCall) { + var typeName = this.getTypeName(); + // Fixes shim to be backward compatable with Node v0 to v4 + if (typeName === "[object Object]") { + typeName = "null"; } - for(const extension of legacyMainResolveAddsIfOmitted) { - if (fileExists(guess = new URL(`./${packageConfig.main}${extension}`, - packageJSONUrl))) { - return guess; + var methodName = this.getMethodName(); + if (functionName) { + if (typeName && functionName.indexOf(typeName) != 0) { + line += typeName + "."; } - } - for(const extension of legacyMainResolveAddsIfOmitted) { - if (fileExists(guess = new URL(`./${packageConfig.main}/index${extension}`, - packageJSONUrl))) { - return guess; + line += functionName; + if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) { + line += " [as " + methodName + "]"; } + } else { + line += typeName + "." + (methodName || ""); } - // Fallthrough. + } else if (isConstructor) { + line += "new " + (functionName || ""); + } else if (functionName) { + line += functionName; + } else { + line += fileLocation; + addSuffix = false; } - for(const extension of legacyMainResolveAddsIfOmitted) { - if (fileExists(guess = new URL(`./index${extension}`, packageJSONUrl))) { - return guess; - } + if (addSuffix) { + line += " (" + fileLocation + ")"; } - // Not found. - throw new ERR_MODULE_NOT_FOUND( - fileURLToPath(new URL('.', packageJSONUrl)), fileURLToPath(base)); + return line; } -/** attempts replacement extensions, then tries exact name, then attempts appending extensions */ -function resolveExtensionsWithTryExactName(search) { - const resolvedReplacementExtension = resolveReplacementExtensions(search); - if(resolvedReplacementExtension) return resolvedReplacementExtension; - if (fileExists(search)) return search; - return resolveExtensions(search); +function cloneCallSite(frame) { + var object = {}; + Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) { + object[name] = /^(?:is|get)/.test(name) ? function() { return frame[name].call(frame); } : frame[name]; + }); + object.toString = CallSiteToString; + return object; } -// This appends missing extensions -function resolveExtensions(search) { - for (let i = 0; i < esrnExtensions.length; i++) { - const extension = esrnExtensions[i]; - const guess = new URL(`${search.pathname}${extension}`, search); - if (fileExists(guess)) return guess; +function wrapCallSite(frame, state) { + // provides interface backward compatibility + if (state === undefined) { + state = { nextPosition: null, curPosition: null } } - return undefined; -} - -/** This replaces JS with TS extensions */ -function resolveReplacementExtensions(search) { - const lastDotIndex = search.pathname.lastIndexOf('.'); - if(lastDotIndex >= 0) { - const ext = search.pathname.slice(lastDotIndex); - if (ext === '.js' || ext === '.jsx' || ext === '.mjs' || ext === '.cjs') { - const pathnameWithoutExtension = search.pathname.slice(0, lastDotIndex); - const replacementExts = - ext === '.js' ? replacementsForJs - : ext === '.jsx' ? replacementsForJsx - : ext === '.mjs' ? replacementsForMjs - : replacementsForCjs; - const guess = new URL(search.toString()); - for (let i = 0; i < replacementExts.length; i++) { - const extension = replacementExts[i]; - guess.pathname = `${pathnameWithoutExtension}${extension}`; - if (fileExists(guess)) return guess; - } - } + if(frame.isNative()) { + state.curPosition = null; + return frame; } - return undefined; -} - -function resolveIndex(search) { - return resolveExtensions(new URL('index', search)); -} -const encodedSepRegEx = /%2F|%2C/i; -function finalizeResolution(resolved, base) { - if (RegExpPrototypeTest(encodedSepRegEx, resolved.pathname)) - throw new ERR_INVALID_MODULE_SPECIFIER( - resolved.pathname, 'must not include encoded "/" or "\\" characters', - fileURLToPath(base)); + // Most call sites will return the source file from getFileName(), but code + // passed to eval() ending in "//# sourceURL=..." will return the source file + // from getScriptNameOrSourceURL() instead + var source = frame.getFileName() || frame.getScriptNameOrSourceURL(); + if (source) { + var line = frame.getLineNumber(); + var column = frame.getColumnNumber() - 1; - if (experimentalSpecifierResolution === 'node') { - const path = fileURLToPath(resolved); - let file = resolveExtensionsWithTryExactName(resolved); - if (file !== undefined) return file; - if (!StringPrototypeEndsWith(path, '/')) { - file = resolveIndex(new URL(`${resolved}/`)); - if (file !== undefined) return file; - } else { - return resolveIndex(resolved) || resolved; + // Fix position in Node where some (internal) code is prepended. + // See https://github.com/evanw/node-source-map-support/issues/36 + // Header removed in node at ^10.16 || >=11.11.0 + // v11 is not an LTS candidate, we can just test the one version with it. + // Test node versions for: 10.16-19, 10.20+, 12-19, 20-99, 100+, or 11.11 + var noHeader = /^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/; + var headerLength = noHeader.test(globalProcessVersion()) ? 0 : 62; + if (line === 1 && column > headerLength && !isInBrowser() && !frame.isEval()) { + column -= headerLength; } - throw new ERR_MODULE_NOT_FOUND( - resolved.pathname, fileURLToPath(base), 'module'); - } - - const file = resolveReplacementExtensions(resolved) || resolved; - const path = fileURLToPath(file); - const stats = tryStatSync(StringPrototypeEndsWith(path, '/') ? - StringPrototypeSlice(path, -1) : path); - if (stats.isDirectory()) { - const err = new ERR_UNSUPPORTED_DIR_IMPORT(path, fileURLToPath(base)); - err.url = String(resolved); - throw err; - } else if (!stats.isFile()) { - throw new ERR_MODULE_NOT_FOUND( - path || resolved.pathname, fileURLToPath(base), 'module'); + var position = mapSourcePosition({ + source: source, + line: line, + column: column + }); + state.curPosition = position; + frame = cloneCallSite(frame); + var originalFunctionName = frame.getFunctionName; + frame.getFunctionName = function() { + if (state.nextPosition == null) { + return originalFunctionName(); + } + return state.nextPosition.name || originalFunctionName(); + }; + frame.getFileName = function() { return position.source; }; + frame.getLineNumber = function() { return position.line; }; + frame.getColumnNumber = function() { return position.column + 1; }; + frame.getScriptNameOrSourceURL = function() { return position.source; }; + return frame; } - return file; -} + // Code called using eval() needs special handling + var origin = frame.isEval() && frame.getEvalOrigin(); + if (origin) { + origin = mapEvalOrigin(origin); + frame = cloneCallSite(frame); + frame.getEvalOrigin = function() { return origin; }; + return frame; + } -function throwImportNotDefined(specifier, packageJSONUrl, base) { - throw new ERR_PACKAGE_IMPORT_NOT_DEFINED( - specifier, packageJSONUrl && fileURLToPath(new URL('.', packageJSONUrl)), - fileURLToPath(base)); + // If we get here then we were unable to change the source position + return frame; } -function throwExportsNotFound(subpath, packageJSONUrl, base) { - throw new ERR_PACKAGE_PATH_NOT_EXPORTED( - fileURLToPath(new URL('.', packageJSONUrl)), subpath, - base && fileURLToPath(base)); -} +// This function is part of the V8 stack trace API, for more info see: +// https://v8.dev/docs/stack-trace-api +function prepareStackTrace(error, stack) { + if (emptyCacheBetweenOperations) { + fileContentsCache = {}; + sourceMapCache = {}; + } -function throwInvalidSubpath(subpath, packageJSONUrl, internal, base) { - const reason = `request is not a valid subpath for the "${internal ? - 'imports' : 'exports'}" resolution of ${fileURLToPath(packageJSONUrl)}`; - throw new ERR_INVALID_MODULE_SPECIFIER(subpath, reason, - base && fileURLToPath(base)); -} + var name = error.name || 'Error'; + var message = error.message || ''; + var errorString = name + ": " + message; -function throwInvalidPackageTarget( - subpath, target, packageJSONUrl, internal, base) { - if (typeof target === 'object' && target !== null) { - target = JSONStringify(target, null, ''); - } else { - target = `${target}`; + var state = { nextPosition: null, curPosition: null }; + var processedStack = []; + for (var i = stack.length - 1; i >= 0; i--) { + processedStack.push('\n at ' + wrapCallSite(stack[i], state)); + state.nextPosition = state.curPosition; } - throw new ERR_INVALID_PACKAGE_TARGET( - fileURLToPath(new URL('.', packageJSONUrl)), subpath, target, - internal, base && fileURLToPath(base)); + state.curPosition = state.nextPosition = null; + return errorString + processedStack.reverse().join(''); } -const invalidSegmentRegEx = /(^|\\|\/)(\.\.?|node_modules)(\\|\/|$)/; -const patternRegEx = /\*/g; +// Generate position and snippet of original source with pointer +function getErrorSource(error) { + var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack); + if (match) { + var source = match[1]; + var line = +match[2]; + var column = +match[3]; -function resolvePackageTargetString( - target, subpath, match, packageJSONUrl, base, pattern, internal, conditions) { - if (subpath !== '' && !pattern && target[target.length - 1] !== '/') - throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base); + // Support the inline sourceContents inside the source map + var contents = fileContentsCache[source]; - if (!StringPrototypeStartsWith(target, './')) { - if (internal && !StringPrototypeStartsWith(target, '../') && - !StringPrototypeStartsWith(target, '/')) { - let isURL = false; + // Support files on disk + if (!contents && fs && fs.existsSync(source)) { try { - new URL(target); - isURL = true; - } catch {} - if (!isURL) { - const exportTarget = pattern ? - StringPrototypeReplace(target, patternRegEx, subpath) : - target + subpath; - return packageResolve(exportTarget, packageJSONUrl, conditions); + contents = fs.readFileSync(source, 'utf8'); + } catch (er) { + contents = ''; } } - throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base); - } - if (RegExpPrototypeTest(invalidSegmentRegEx, StringPrototypeSlice(target, 2))) - throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base); - - const resolved = new URL(target, packageJSONUrl); - const resolvedPath = resolved.pathname; - const packagePath = new URL('.', packageJSONUrl).pathname; + // Format the line from the original source code like node does + if (contents) { + var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1]; + if (code) { + return source + ':' + line + '\n' + code + '\n' + + new Array(column).join(' ') + '^'; + } + } + } + return null; +} - if (!StringPrototypeStartsWith(resolvedPath, packagePath)) - throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base); +function printErrorAndExit (error) { + var source = getErrorSource(error); - if (subpath === '') return resolved; + // Ensure error is printed synchronously and not truncated + var stderr = globalProcessStderr(); + if (stderr && stderr._handle && stderr._handle.setBlocking) { + stderr._handle.setBlocking(true); + } - if (RegExpPrototypeTest(invalidSegmentRegEx, subpath)) - throwInvalidSubpath(match + subpath, packageJSONUrl, internal, base); + if (source) { + console.error(); + console.error(source); + } - if (pattern) - return new URL(StringPrototypeReplace(resolved.href, patternRegEx, - subpath)); - return new URL(subpath, resolved); + console.error(error.stack); + globalProcessExit(1); } -/** - * @param {string} key - * @returns {boolean} - */ -function isArrayIndex(key) { - const keyNum = +key; - if (`${keyNum}` !== key) return false; - return keyNum >= 0 && keyNum < 0xFFFF_FFFF; -} +function shimEmitUncaughtException () { + var origEmit = process.emit; -function resolvePackageTarget(packageJSONUrl, target, subpath, packageSubpath, - base, pattern, internal, conditions) { - if (typeof target === 'string') { - return resolvePackageTargetString( - target, subpath, packageSubpath, packageJSONUrl, base, pattern, internal, - conditions); - } else if (ArrayIsArray(target)) { - if (target.length === 0) - return null; + process.emit = function (type) { + if (type === 'uncaughtException') { + var hasStack = (arguments[1] && arguments[1].stack); + var hasListeners = (this.listeners(type).length > 0); - let lastException; - for (let i = 0; i < target.length; i++) { - const targetItem = target[i]; - let resolved; - try { - resolved = resolvePackageTarget( - packageJSONUrl, targetItem, subpath, packageSubpath, base, pattern, - internal, conditions); - } catch (e) { - lastException = e; - if (e.code === 'ERR_INVALID_PACKAGE_TARGET') - continue; - throw e; - } - if (resolved === undefined) - continue; - if (resolved === null) { - lastException = null; - continue; - } - return resolved; - } - if (lastException === undefined || lastException === null) - return lastException; - throw lastException; - } else if (typeof target === 'object' && target !== null) { - const keys = ObjectGetOwnPropertyNames(target); - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - if (isArrayIndex(key)) { - throw new ERR_INVALID_PACKAGE_CONFIG( - fileURLToPath(packageJSONUrl), base, - '"exports" cannot contain numeric property keys.'); - } - } - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - if (key === 'default' || conditions.has(key)) { - const conditionalTarget = target[key]; - const resolved = resolvePackageTarget( - packageJSONUrl, conditionalTarget, subpath, packageSubpath, base, - pattern, internal, conditions); - if (resolved === undefined) - continue; - return resolved; + if (hasStack && !hasListeners) { + return printErrorAndExit(arguments[1]); } } - return undefined; - } else if (target === null) { - return null; - } - throwInvalidPackageTarget(packageSubpath, target, packageJSONUrl, internal, - base); + + return origEmit.apply(this, arguments); + }; } -function isConditionalExportsMainSugar(exports, packageJSONUrl, base) { - if (typeof exports === 'string' || ArrayIsArray(exports)) return true; - if (typeof exports !== 'object' || exports === null) return false; +var originalRetrieveFileHandlers = retrieveFileHandlers.slice(0); +var originalRetrieveMapHandlers = retrieveMapHandlers.slice(0); - const keys = ObjectGetOwnPropertyNames(exports); - let isConditionalSugar = false; - let i = 0; - for (let j = 0; j < keys.length; j++) { - const key = keys[j]; - const curIsConditionalSugar = key === '' || key[0] !== '.'; - if (i++ === 0) { - isConditionalSugar = curIsConditionalSugar; - } else if (isConditionalSugar !== curIsConditionalSugar) { - throw new ERR_INVALID_PACKAGE_CONFIG( - fileURLToPath(packageJSONUrl), base, - '"exports" cannot contain some keys starting with \'.\' and some not.' + - ' The exports object must either be an object of package subpath keys' + - ' or an object of main entry condition name keys only.'); +exports.wrapCallSite = wrapCallSite; +exports.getErrorSource = getErrorSource; +exports.mapSourcePosition = mapSourcePosition; +exports.retrieveSourceMap = retrieveSourceMap; + +exports.install = function(options) { + options = options || {}; + + if (options.environment) { + environment = options.environment; + if (["node", "browser", "auto"].indexOf(environment) === -1) { + throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}") } } - return isConditionalSugar; -} -/** - * @param {URL} packageJSONUrl - * @param {string} packageSubpath - * @param {object} packageConfig - * @param {string} base - * @param {Set} conditions - * @returns {{resolved: URL, exact: boolean}} - */ -function packageExportsResolve( - packageJSONUrl, packageSubpath, packageConfig, base, conditions) { - let exports = packageConfig.exports; - if (isConditionalExportsMainSugar(exports, packageJSONUrl, base)) - exports = { '.': exports }; + // Allow sources to be found by methods other than reading the files + // directly from disk. + if (options.retrieveFile) { + if (options.overrideRetrieveFile) { + retrieveFileHandlers.length = 0; + } - if (ObjectPrototypeHasOwnProperty(exports, packageSubpath)) { - const target = exports[packageSubpath]; - const resolved = resolvePackageTarget( - packageJSONUrl, target, '', packageSubpath, base, false, false, conditions - ); - if (resolved === null || resolved === undefined) - throwExportsNotFound(packageSubpath, packageJSONUrl, base); - return { resolved, exact: true }; + retrieveFileHandlers.unshift(options.retrieveFile); } - let bestMatch = ''; - const keys = ObjectGetOwnPropertyNames(exports); - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - if (key[key.length - 1] === '*' && - StringPrototypeStartsWith(packageSubpath, - StringPrototypeSlice(key, 0, -1)) && - packageSubpath.length >= key.length && - key.length > bestMatch.length) { - bestMatch = key; - } else if (key[key.length - 1] === '/' && - StringPrototypeStartsWith(packageSubpath, key) && - key.length > bestMatch.length) { - bestMatch = key; + // Allow source maps to be found by methods other than reading the files + // directly from disk. + if (options.retrieveSourceMap) { + if (options.overrideRetrieveSourceMap) { + retrieveMapHandlers.length = 0; } - } - if (bestMatch) { - const target = exports[bestMatch]; - const pattern = bestMatch[bestMatch.length - 1] === '*'; - const subpath = StringPrototypeSubstr(packageSubpath, bestMatch.length - - (pattern ? 1 : 0)); - const resolved = resolvePackageTarget(packageJSONUrl, target, subpath, - bestMatch, base, pattern, false, - conditions); - if (resolved === null || resolved === undefined) - throwExportsNotFound(packageSubpath, packageJSONUrl, base); - if (!pattern) - emitFolderMapDeprecation(bestMatch, packageJSONUrl, true, base); - return { resolved, exact: pattern }; + retrieveMapHandlers.unshift(options.retrieveSourceMap); } - throwExportsNotFound(packageSubpath, packageJSONUrl, base); -} + // Support runtime transpilers that include inline source maps + if (options.hookRequire && !isInBrowser()) { + // Use dynamicRequire to avoid including in browser bundles + var Module = dynamicRequire(module, 'module'); + var $compile = Module.prototype._compile; -function packageImportsResolve(name, base, conditions) { - if (name === '#' || StringPrototypeStartsWith(name, '#/')) { - const reason = 'is not a valid internal imports specifier name'; - throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, fileURLToPath(base)); - } - let packageJSONUrl; - const packageConfig = getPackageScopeConfig(base); - if (packageConfig.exists) { - packageJSONUrl = pathToFileURL(packageConfig.pjsonPath); - const imports = packageConfig.imports; - if (imports) { - if (ObjectPrototypeHasOwnProperty(imports, name)) { - const resolved = resolvePackageTarget( - packageJSONUrl, imports[name], '', name, base, false, true, conditions - ); - if (resolved !== null) - return { resolved, exact: true }; - } else { - let bestMatch = ''; - const keys = ObjectGetOwnPropertyNames(imports); - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - if (key[key.length - 1] === '*' && - StringPrototypeStartsWith(name, - StringPrototypeSlice(key, 0, -1)) && - name.length >= key.length && - key.length > bestMatch.length) { - bestMatch = key; - } else if (key[key.length - 1] === '/' && - StringPrototypeStartsWith(name, key) && - key.length > bestMatch.length) { - bestMatch = key; - } - } + if (!$compile.__sourceMapSupport) { + Module.prototype._compile = function(content, filename) { + fileContentsCache[filename] = content; + sourceMapCache[filename] = undefined; + return $compile.call(this, content, filename); + }; - if (bestMatch) { - const target = imports[bestMatch]; - const pattern = bestMatch[bestMatch.length - 1] === '*'; - const subpath = StringPrototypeSubstr(name, bestMatch.length - - (pattern ? 1 : 0)); - const resolved = resolvePackageTarget( - packageJSONUrl, target, subpath, bestMatch, base, pattern, true, - conditions); - if (resolved !== null) { - if (!pattern) - emitFolderMapDeprecation(bestMatch, packageJSONUrl, false, base); - return { resolved, exact: pattern }; - } - } - } + Module.prototype._compile.__sourceMapSupport = true; } } - throwImportNotDefined(name, packageJSONUrl, base); -} -function getPackageType(url) { - const packageConfig = getPackageScopeConfig(url); - return packageConfig.type; -} + // Configure options + if (!emptyCacheBetweenOperations) { + emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ? + options.emptyCacheBetweenOperations : false; + } -function parsePackageName(specifier, base) { - let separatorIndex = StringPrototypeIndexOf(specifier, '/'); - let validPackageName = true; - let isScoped = false; - if (specifier[0] === '@') { - isScoped = true; - if (separatorIndex === -1 || specifier.length === 0) { - validPackageName = false; - } else { - separatorIndex = StringPrototypeIndexOf( - specifier, '/', separatorIndex + 1); - } + // Install the error reformatter + if (!errorFormatterInstalled) { + errorFormatterInstalled = true; + Error.prepareStackTrace = prepareStackTrace; } - const packageName = separatorIndex === -1 ? - specifier : StringPrototypeSlice(specifier, 0, separatorIndex); + if (!uncaughtShimInstalled) { + var installHandler = 'handleUncaughtExceptions' in options ? + options.handleUncaughtExceptions : true; - // Package name cannot have leading . and cannot have percent-encoding or - // separators. - for (let i = 0; i < packageName.length; i++) { - if (packageName[i] === '%' || packageName[i] === '\\') { - validPackageName = false; - break; + // Do not override 'uncaughtException' with our own handler in Node.js + // Worker threads. Workers pass the error to the main thread as an event, + // rather than printing something to stderr and exiting. + try { + // We need to use `dynamicRequire` because `require` on it's own will be optimized by WebPack/Browserify. + var worker_threads = dynamicRequire(module, 'worker_threads'); + if (worker_threads.isMainThread === false) { + installHandler = false; + } + } catch(e) {} + + // Provide the option to not install the uncaught exception handler. This is + // to support other uncaught exception handlers (in test frameworks, for + // example). If this handler is not installed and there are no other uncaught + // exception handlers, uncaught exceptions will be caught by node's built-in + // exception handler and the process will still be terminated. However, the + // generated JavaScript code will be shown above the stack trace instead of + // the original source code. + if (installHandler && hasGlobalProcessEventEmitter()) { + uncaughtShimInstalled = true; + shimEmitUncaughtException(); } } +}; - if (!validPackageName) { - throw new ERR_INVALID_MODULE_SPECIFIER( - specifier, 'is not a valid package name', fileURLToPath(base)); - } +exports.resetRetrieveHandlers = function() { + retrieveFileHandlers.length = 0; + retrieveMapHandlers.length = 0; - const packageSubpath = '.' + (separatorIndex === -1 ? '' : - StringPrototypeSlice(specifier, separatorIndex)); + retrieveFileHandlers = originalRetrieveFileHandlers.slice(0); + retrieveMapHandlers = originalRetrieveMapHandlers.slice(0); - return { packageName, packageSubpath, isScoped }; + retrieveSourceMap = handlerExec(retrieveMapHandlers); + retrieveFile = handlerExec(retrieveFileHandlers); } -/** - * @param {string} specifier - * @param {URL} base - * @param {Set} conditions - * @returns {URL} - */ -function packageResolve(specifier, base, conditions) { - const { packageName, packageSubpath, isScoped } = - parsePackageName(specifier, base); - // ResolveSelf - const packageConfig = getPackageScopeConfig(base); - if (packageConfig.exists) { - const packageJSONUrl = pathToFileURL(packageConfig.pjsonPath); - if (packageConfig.name === packageName && - packageConfig.exports !== undefined && packageConfig.exports !== null) { - return packageExportsResolve( - packageJSONUrl, packageSubpath, packageConfig, base, conditions - ).resolved; - } - } +/***/ }), - let packageJSONUrl = - new URL('./node_modules/' + packageName + '/package.json', base); - let packageJSONPath = fileURLToPath(packageJSONUrl); - let lastPath; - do { - const stat = tryStatSync(StringPrototypeSlice(packageJSONPath, 0, - packageJSONPath.length - 13)); - if (!stat.isDirectory()) { - lastPath = packageJSONPath; - packageJSONUrl = new URL((isScoped ? - '../../../../node_modules/' : '../../../node_modules/') + - packageName + '/package.json', packageJSONUrl); - packageJSONPath = fileURLToPath(packageJSONUrl); - continue; - } +/***/ 26375: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // Package match. - const packageConfig = getPackageConfig(packageJSONPath, specifier, base); - if (packageConfig.exports !== undefined && packageConfig.exports !== null) - return packageExportsResolve( - packageJSONUrl, packageSubpath, packageConfig, base, conditions - ).resolved; - if (packageSubpath === '.') - return legacyMainResolve(packageJSONUrl, packageConfig, base); - return new URL(packageSubpath, packageJSONUrl); - // Cross-platform root check. - } while (packageJSONPath.length !== lastPath.length); +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ - // eslint can't handle the above code. - // eslint-disable-next-line no-unreachable - throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base)); -} +var util = __nccwpck_require__(12344); +var has = Object.prototype.hasOwnProperty; +var hasNativeMap = typeof Map !== "undefined"; -function isBareSpecifier(specifier) { - return specifier[0] && specifier[0] !== '/' && specifier[0] !== '.'; +/** + * A data structure which is a combination of an array and a set. Adding a new + * member is O(1), testing for membership is O(1), and finding the index of an + * element is O(1). Removing elements from the set is not supported. Only + * strings are supported for membership. + */ +function ArraySet() { + this._array = []; + this._set = hasNativeMap ? new Map() : Object.create(null); } -function isRelativeSpecifier(specifier) { - if (specifier[0] === '.') { - if (specifier.length === 1 || specifier[1] === '/') return true; - if (specifier[1] === '.') { - if (specifier.length === 2 || specifier[2] === '/') return true; - } +/** + * Static method for creating ArraySet instances from an existing array. + */ +ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { + var set = new ArraySet(); + for (var i = 0, len = aArray.length; i < len; i++) { + set.add(aArray[i], aAllowDuplicates); } - return false; -} - -function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) { - if (specifier === '') return false; - if (specifier[0] === '/') return true; - return isRelativeSpecifier(specifier); -} + return set; +}; /** - * @param {string} specifier - * @param {URL} base - * @param {Set} conditions - * @returns {URL} + * Return how many unique items are in this ArraySet. If duplicates have been + * added, than those do not count towards the size. + * + * @returns Number */ -function moduleResolve(specifier, base, conditions) { - // Order swapped from spec for minor perf gain. - // Ok since relative URLs cannot parse as URLs. - let resolved; - if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) { - resolved = new URL(specifier, base); - } else if (specifier[0] === '#') { - ({ resolved } = packageImportsResolve(specifier, base, conditions)); - } else { - try { - resolved = new URL(specifier); - } catch { - resolved = packageResolve(specifier, base, conditions); +ArraySet.prototype.size = function ArraySet_size() { + return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; +}; + +/** + * Add the given string to this set. + * + * @param String aStr + */ +ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { + var sStr = hasNativeMap ? aStr : util.toSetString(aStr); + var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr); + var idx = this._array.length; + if (!isDuplicate || aAllowDuplicates) { + this._array.push(aStr); + } + if (!isDuplicate) { + if (hasNativeMap) { + this._set.set(aStr, idx); + } else { + this._set[sStr] = idx; } } - return finalizeResolution(resolved, base); -} +}; /** - * Try to resolve an import as a CommonJS module - * @param {string} specifier - * @param {string} parentURL - * @returns {boolean|string} + * Is the given string a member of this set? + * + * @param String aStr */ -function resolveAsCommonJS(specifier, parentURL) { - try { - const parent = fileURLToPath(parentURL); - const tmpModule = new CJSModule(parent, null); - tmpModule.paths = CJSModule._nodeModulePaths(parent); - - let found = CJSModule._resolveFilename(specifier, tmpModule, false); - - // If it is a relative specifier return the relative path - // to the parent - if (isRelativeSpecifier(specifier)) { - found = relative(parent, found); - // Add '.separator if the path does not start with '..separator' - // This should be a safe assumption because when loading - // esm modules there should be always a file specified so - // there should not be a specifier like '..' or '.' - if (!StringPrototypeStartsWith(found, `..${sep}`)) { - found = `.${sep}${found}`; - } - } else if (isBareSpecifier(specifier)) { - // If it is a bare specifier return the relative path within the - // module - const pkg = StringPrototypeSplit(specifier, '/')[0]; - const index = StringPrototypeIndexOf(found, pkg); - if (index !== -1) { - found = StringPrototypeSlice(found, index); - } - } - // Normalize the path separator to give a valid suggestion - // on Windows - if (process.platform === 'win32') { - found = StringPrototypeReplace(found, new RegExp(`\\${sep}`, 'g'), '/'); - } - return found; - } catch { - return false; +ArraySet.prototype.has = function ArraySet_has(aStr) { + if (hasNativeMap) { + return this._set.has(aStr); + } else { + var sStr = util.toSetString(aStr); + return has.call(this._set, sStr); } -} +}; -function defaultResolve(specifier, context = {}, defaultResolveUnused) { - let { parentURL, conditions } = context; - if (parentURL && policy != null && policy.manifest) { - const redirects = policy.manifest.getDependencyMapper(parentURL); - if (redirects) { - const { resolve, reaction } = redirects; - const destination = resolve(specifier, new SafeSet(conditions)); - let missing = true; - if (destination === true) { - missing = false; - } else if (destination) { - const href = destination.href; - return { url: href }; - } - if (missing) { - reaction(new ERR_MANIFEST_DEPENDENCY_MISSING( - parentURL, - specifier, - ArrayPrototypeJoin([...conditions], ', ')) - ); - } +/** + * What is the index of the given string in the array? + * + * @param String aStr + */ +ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { + if (hasNativeMap) { + var idx = this._set.get(aStr); + if (idx >= 0) { + return idx; } - } - let parsed; - try { - parsed = new URL(specifier); - if (parsed.protocol === 'data:') { - return { - url: specifier - }; + } else { + var sStr = util.toSetString(aStr); + if (has.call(this._set, sStr)) { + return this._set[sStr]; } - } catch {} - if (parsed && parsed.protocol === builtinModuleProtocol) - return { url: specifier }; - if (parsed && parsed.protocol !== 'file:' && parsed.protocol !== 'data:') - throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(parsed); - if (NativeModule.canBeRequiredByUsers(specifier)) { - return { - url: builtinModuleProtocol + specifier - }; - } - if (parentURL && StringPrototypeStartsWith(parentURL, 'data:')) { - // This is gonna blow up, we want the error - new URL(specifier, parentURL); } - const isMain = parentURL === undefined; - if (isMain) { - parentURL = pathToFileURL(`${process.cwd()}/`).href; + throw new Error('"' + aStr + '" is not in the set.'); +}; - // This is the initial entry point to the program, and --input-type has - // been passed as an option; but --input-type can only be used with - // --eval, --print or STDIN string input. It is not allowed with file - // input, to avoid user confusion over how expansive the effect of the - // flag should be (i.e. entry point only, package scope surrounding the - // entry point, etc.). - if (typeFlag) - throw new ERR_INPUT_TYPE_NOT_ALLOWED(); +/** + * What is the element at the given index? + * + * @param Number aIdx + */ +ArraySet.prototype.at = function ArraySet_at(aIdx) { + if (aIdx >= 0 && aIdx < this._array.length) { + return this._array[aIdx]; } + throw new Error('No element indexed by ' + aIdx); +}; - conditions = getConditionsSet(conditions); - let url; - try { - url = moduleResolve(specifier, parentURL, conditions); - } catch (error) { - // Try to give the user a hint of what would have been the - // resolved CommonJS module - if (error.code === 'ERR_MODULE_NOT_FOUND' || - error.code === 'ERR_UNSUPPORTED_DIR_IMPORT') { - if (StringPrototypeStartsWith(specifier, 'file://')) { - specifier = fileURLToPath(specifier); - } - const found = resolveAsCommonJS(specifier, parentURL); - if (found) { - // Modify the stack and message string to include the hint - const lines = StringPrototypeSplit(error.stack, '\n'); - const hint = `Did you mean to import ${found}?`; - error.stack = - ArrayPrototypeShift(lines) + '\n' + - hint + '\n' + - ArrayPrototypeJoin(lines, '\n'); - error.message += `\n${hint}`; - } - } - throw error; - } +/** + * Returns the array representation of this set (which has the proper indices + * indicated by indexOf). Note that this is a copy of the internal array used + * for storing the members so that no one can mess with internal state. + */ +ArraySet.prototype.toArray = function ArraySet_toArray() { + return this._array.slice(); +}; - if (isMain ? !preserveSymlinksMain : !preserveSymlinks) { - const urlPath = fileURLToPath(url); - const real = realpathSync(urlPath, { - // [internalFS.realpathCacheKey]: realpathCache - }); - const old = url; - url = pathToFileURL( - real + (StringPrototypeEndsWith(urlPath, sep) ? '/' : '')); - url.search = old.search; - url.hash = old.hash; - } +exports.I = ArraySet; - return { url: `${url}` }; -} -return { - DEFAULT_CONDITIONS, - defaultResolve, - encodedSepRegEx, - getPackageType, - packageExportsResolve, - packageImportsResolve -}; -} -module.exports = { - createResolve -}; +/***/ }), +/***/ 10975: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/***/ }), +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + * + * Based on the Base 64 VLQ implementation in Closure Compiler: + * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java + * + * Copyright 2011 The Closure Compiler Authors. All rights reserved. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of Google Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ -/***/ 53348: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +var base64 = __nccwpck_require__(6156); -"use strict"; -// copied from https://github.com/nodejs/node/blob/v15.3.0/lib/internal/modules/package_json_reader.js +// A single base 64 digit can contain 6 bits of data. For the base 64 variable +// length quantities we use in the source map spec, the first bit is the sign, +// the next four bits are the actual value, and the 6th bit is the +// continuation bit. The continuation bit tells us whether there are more +// digits in this value following this digit. +// +// Continuation +// | Sign +// | | +// V V +// 101011 +var VLQ_BASE_SHIFT = 5; -const { SafeMap } = __nccwpck_require__(26326); -const { internalModuleReadJSON } = __nccwpck_require__(3601); -const { pathToFileURL } = __nccwpck_require__(57310); -const { toNamespacedPath } = __nccwpck_require__(71017); -// const { getOptionValue } = require('./node-options'); +// binary: 100000 +var VLQ_BASE = 1 << VLQ_BASE_SHIFT; -const cache = new SafeMap(); +// binary: 011111 +var VLQ_BASE_MASK = VLQ_BASE - 1; -let manifest; +// binary: 100000 +var VLQ_CONTINUATION_BIT = VLQ_BASE; /** - * @param {string} jsonPath - * @return {{string: string, containsKeys: boolean}} + * Converts from a two-complement value to a value where the sign bit is + * placed in the least significant bit. For example, as decimals: + * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary) + * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) */ -function read(jsonPath) { - if (cache.has(jsonPath)) { - return cache.get(jsonPath); - } - - const [string, containsKeys] = internalModuleReadJSON( - toNamespacedPath(jsonPath) - ); - const result = { string, containsKeys }; - if (string !== undefined) { - if (manifest === undefined) { - // manifest = getOptionValue('--experimental-policy') ? - // require('internal/process/policy').manifest : - // null; - // disabled for now. I am not sure if/how we should support this - manifest = null; - } - if (manifest !== null) { - const jsonURL = pathToFileURL(jsonPath); - manifest.assertIntegrity(jsonURL, string); - } - } - cache.set(jsonPath, result); - return result; +function toVLQSigned(aValue) { + return aValue < 0 + ? ((-aValue) << 1) + 1 + : (aValue << 1) + 0; } -module.exports = { read }; - - -/***/ }), - -/***/ 75818: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/** + * Converts to a two-complement value from a value where the sign bit is + * placed in the least significant bit. For example, as decimals: + * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 + * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 + */ +function fromVLQSigned(aValue) { + var isNegative = (aValue & 1) === 1; + var shifted = aValue >> 1; + return isNegative + ? -shifted + : shifted; +} -"use strict"; -// copied from https://github.com/nodejs/node/blob/88799930794045795e8abac874730f9eba7e2300/lib/internal/repl/await.js +/** + * Returns the base 64 VLQ encoded value. + */ +exports.encode = function base64VLQ_encode(aValue) { + var encoded = ""; + var digit; + var vlq = toVLQSigned(aValue); -const { - ArrayFrom, - ArrayPrototypeForEach, - ArrayPrototypeIncludes, - ArrayPrototypeJoin, - ArrayPrototypePop, - ArrayPrototypePush, - FunctionPrototype, - ObjectKeys, - RegExpPrototypeSymbolReplace, - StringPrototypeEndsWith, - StringPrototypeIncludes, - StringPrototypeIndexOf, - StringPrototypeRepeat, - StringPrototypeSplit, - StringPrototypeStartsWith, - SyntaxError, -} = __nccwpck_require__(26326); + do { + digit = vlq & VLQ_BASE_MASK; + vlq >>>= VLQ_BASE_SHIFT; + if (vlq > 0) { + // There are still more digits in this value, so we must make sure the + // continuation bit is marked. + digit |= VLQ_CONTINUATION_BIT; + } + encoded += base64.encode(digit); + } while (vlq > 0); -const parser = (__nccwpck_require__(80390).Parser); -const walk = __nccwpck_require__(88390); -const { Recoverable } = __nccwpck_require__(38102); + return encoded; +}; -function isTopLevelDeclaration(state) { - return state.ancestors[state.ancestors.length - 2] === state.body; -} +/** + * Decodes the next base 64 VLQ value from the given string and returns the + * value and the rest of the string via the out parameter. + */ +exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { + var strLen = aStr.length; + var result = 0; + var shift = 0; + var continuation, digit; -const noop = FunctionPrototype; -const visitorsWithoutAncestors = { - ClassDeclaration(node, state, c) { - if (isTopLevelDeclaration(state)) { - state.prepend(node, `${node.id.name}=`); - ArrayPrototypePush( - state.hoistedDeclarationStatements, - `let ${node.id.name}; ` - ); + do { + if (aIndex >= strLen) { + throw new Error("Expected more digits in base 64 VLQ value."); } - walk.base.ClassDeclaration(node, state, c); - }, - ForOfStatement(node, state, c) { - if (node.await === true) { - state.containsAwait = true; + digit = base64.decode(aStr.charCodeAt(aIndex++)); + if (digit === -1) { + throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); } - walk.base.ForOfStatement(node, state, c); - }, - FunctionDeclaration(node, state, c) { - state.prepend(node, `${node.id.name}=`); - ArrayPrototypePush( - state.hoistedDeclarationStatements, - `var ${node.id.name}; ` - ); - }, - FunctionExpression: noop, - ArrowFunctionExpression: noop, - MethodDefinition: noop, - AwaitExpression(node, state, c) { - state.containsAwait = true; - walk.base.AwaitExpression(node, state, c); - }, - ReturnStatement(node, state, c) { - state.containsReturn = true; - walk.base.ReturnStatement(node, state, c); - }, - VariableDeclaration(node, state, c) { - const variableKind = node.kind; - const isIterableForDeclaration = ArrayPrototypeIncludes( - ['ForOfStatement', 'ForInStatement'], - state.ancestors[state.ancestors.length - 2].type - ); - if (variableKind === 'var' || isTopLevelDeclaration(state)) { - state.replace( - node.start, - node.start + variableKind.length + (isIterableForDeclaration ? 1 : 0), - variableKind === 'var' && isIterableForDeclaration ? - '' : - 'void' + (node.declarations.length === 1 ? '' : ' (') - ); + continuation = !!(digit & VLQ_CONTINUATION_BIT); + digit &= VLQ_BASE_MASK; + result = result + (digit << shift); + shift += VLQ_BASE_SHIFT; + } while (continuation); - if (!isIterableForDeclaration) { - ArrayPrototypeForEach(node.declarations, (decl) => { - state.prepend(decl, '('); - state.append(decl, decl.init ? ')' : '=undefined)'); - }); + aOutParam.value = fromVLQSigned(result); + aOutParam.rest = aIndex; +}; - if (node.declarations.length !== 1) { - state.append(node.declarations[node.declarations.length - 1], ')'); - } - } - const variableIdentifiersToHoist = [ - ['var', []], - ['let', []], - ]; - function registerVariableDeclarationIdentifiers(node) { - switch (node.type) { - case 'Identifier': - ArrayPrototypePush( - variableIdentifiersToHoist[variableKind === 'var' ? 0 : 1][1], - node.name - ); - break; - case 'ObjectPattern': - ArrayPrototypeForEach(node.properties, (property) => { - registerVariableDeclarationIdentifiers(property.value); - }); - break; - case 'ArrayPattern': - ArrayPrototypeForEach(node.elements, (element) => { - registerVariableDeclarationIdentifiers(element); - }); - break; - } - } +/***/ }), - ArrayPrototypeForEach(node.declarations, (decl) => { - registerVariableDeclarationIdentifiers(decl.id); - }); +/***/ 6156: +/***/ ((__unused_webpack_module, exports) => { - ArrayPrototypeForEach( - variableIdentifiersToHoist, - ({ 0: kind, 1: identifiers }) => { - if (identifiers.length > 0) { - ArrayPrototypePush( - state.hoistedDeclarationStatements, - `${kind} ${ArrayPrototypeJoin(identifiers, ', ')}; ` - ); - } - } - ); - } +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ - walk.base.VariableDeclaration(node, state, c); +var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); + +/** + * Encode an integer in the range of 0 to 63 to a single base 64 digit. + */ +exports.encode = function (number) { + if (0 <= number && number < intToCharMap.length) { + return intToCharMap[number]; } + throw new TypeError("Must be between 0 and 63: " + number); }; -const visitors = {}; -for (const nodeType of ObjectKeys(walk.base)) { - const callback = visitorsWithoutAncestors[nodeType] || walk.base[nodeType]; - visitors[nodeType] = (node, state, c) => { - const isNew = node !== state.ancestors[state.ancestors.length - 1]; - if (isNew) { - ArrayPrototypePush(state.ancestors, node); - } - callback(node, state, c); - if (isNew) { - ArrayPrototypePop(state.ancestors); - } - }; -} +/** + * Decode a single base 64 character code digit to an integer. Returns -1 on + * failure. + */ +exports.decode = function (charCode) { + var bigA = 65; // 'A' + var bigZ = 90; // 'Z' -function processTopLevelAwait(src) { - const wrapPrefix = '(async () => { '; - const wrapped = `${wrapPrefix}${src} })()`; - const wrappedArray = ArrayFrom(wrapped); - let root; - try { - root = parser.parse(wrapped, { ecmaVersion: 'latest' }); - } catch (e) { - if (StringPrototypeStartsWith(e.message, 'Unterminated ')) - throw new Recoverable(e); - // If the parse error is before the first "await", then use the execution - // error. Otherwise we must emit this parse error, making it look like a - // proper syntax error. - const awaitPos = StringPrototypeIndexOf(src, 'await'); - const errPos = e.pos - wrapPrefix.length; - if (awaitPos > errPos) - return null; - // Convert keyword parse errors on await into their original errors when - // possible. - if (errPos === awaitPos + 6 && - StringPrototypeIncludes(e.message, 'Expecting Unicode escape sequence')) - return null; - if (errPos === awaitPos + 7 && - StringPrototypeIncludes(e.message, 'Unexpected token')) - return null; - const line = e.loc.line; - const column = line === 1 ? e.loc.column - wrapPrefix.length : e.loc.column; - let message = '\n' + StringPrototypeSplit(src, '\n')[line - 1] + '\n' + - StringPrototypeRepeat(' ', column) + - '^\n\n' + RegExpPrototypeSymbolReplace(/ \([^)]+\)/, e.message, ''); - // V8 unexpected token errors include the token string. - if (StringPrototypeEndsWith(message, 'Unexpected token')) - message += " '" + - // Wrapper end may cause acorn to report error position after the source - ((src.length - 1) >= (e.pos - wrapPrefix.length) - ? src[e.pos - wrapPrefix.length] - : src[src.length - 1]) + - "'"; - // eslint-disable-next-line no-restricted-syntax - throw new SyntaxError(message); + var littleA = 97; // 'a' + var littleZ = 122; // 'z' + + var zero = 48; // '0' + var nine = 57; // '9' + + var plus = 43; // '+' + var slash = 47; // '/' + + var littleOffset = 26; + var numberOffset = 52; + + // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ + if (bigA <= charCode && charCode <= bigZ) { + return (charCode - bigA); } - const body = root.body[0].expression.callee.body; - const state = { - body, - ancestors: [], - hoistedDeclarationStatements: [], - replace(from, to, str) { - for (let i = from; i < to; i++) { - wrappedArray[i] = ''; - } - if (from === to) str += wrappedArray[from]; - wrappedArray[from] = str; - }, - prepend(node, str) { - wrappedArray[node.start] = str + wrappedArray[node.start]; - }, - append(node, str) { - wrappedArray[node.end - 1] += str; - }, - containsAwait: false, - containsReturn: false - }; - walk.recursive(body, state, visitors); + // 26 - 51: abcdefghijklmnopqrstuvwxyz + if (littleA <= charCode && charCode <= littleZ) { + return (charCode - littleA + littleOffset); + } - // Do not transform if - // 1. False alarm: there isn't actually an await expression. - // 2. There is a top-level return, which is not allowed. - if (!state.containsAwait || state.containsReturn) { - return null; + // 52 - 61: 0123456789 + if (zero <= charCode && charCode <= nine) { + return (charCode - zero + numberOffset); } - const last = body.body[body.body.length - 1]; - if (last.type === 'ExpressionStatement') { - // For an expression statement of the form - // ( expr ) ; - // ^^^^^^^^^^ // last - // ^^^^ // last.expression - // - // We do not want the left parenthesis before the `return` keyword; - // therefore we prepend the `return (` to `last`. - // - // On the other hand, we do not want the right parenthesis after the - // semicolon. Since there can only be more right parentheses between - // last.expression.end and the semicolon, appending one more to - // last.expression should be fine. - state.prepend(last, 'return ('); - state.append(last.expression, ')'); + // 62: + + if (charCode == plus) { + return 62; } - return ( - ArrayPrototypeJoin(state.hoistedDeclarationStatements, '') + - ArrayPrototypeJoin(wrappedArray, '') - ); -} + // 63: / + if (charCode == slash) { + return 63; + } -module.exports = { - processTopLevelAwait + // Invalid base64 digit. + return -1; }; /***/ }), -/***/ 3601: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 33600: +/***/ ((__unused_webpack_module, exports) => { -const fs = __nccwpck_require__(57147); -const {versionGteLt} = __nccwpck_require__(64745); +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + +exports.GREATEST_LOWER_BOUND = 1; +exports.LEAST_UPPER_BOUND = 2; -// In node's core, this is implemented in C -// https://github.com/nodejs/node/blob/v15.3.0/src/node_file.cc#L891-L985 /** - * @param {string} path - * @returns {[] | [string, boolean]} + * Recursive implementation of binary search. + * + * @param aLow Indices here and lower do not contain the needle. + * @param aHigh Indices here and higher do not contain the needle. + * @param aNeedle The element being searched for. + * @param aHaystack The non-empty array being searched. + * @param aCompare Function which takes two elements and returns -1, 0, or 1. + * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or + * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. */ -function internalModuleReadJSON(path) { - let string - try { - string = fs.readFileSync(path, 'utf8') - } catch (e) { - if (e.code === 'ENOENT') return [] - throw e +function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { + // This function terminates when one of the following is true: + // + // 1. We find the exact element we are looking for. + // + // 2. We did not find the exact element, but we can return the index of + // the next-closest element. + // + // 3. We did not find the exact element, and there is no next-closest + // element than the one we are searching for, so we return -1. + var mid = Math.floor((aHigh - aLow) / 2) + aLow; + var cmp = aCompare(aNeedle, aHaystack[mid], true); + if (cmp === 0) { + // Found the element we are looking for. + return mid; } - // Node's implementation checks for the presence of relevant keys: main, name, type, exports, imports - // Node does this for performance to skip unnecessary parsing. - // This would slow us down and, based on our usage, we can skip it. - const containsKeys = true - return [string, containsKeys] -} + else if (cmp > 0) { + // Our needle is greater than aHaystack[mid]. + if (aHigh - mid > 1) { + // The element is in the upper half. + return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); + } -// In node's core, this is implemented in C -// https://github.com/nodejs/node/blob/63e7dc1e5c71b70c80ed9eda230991edb00811e2/src/node_file.cc#L987-L1005 -/** - * @param {string} path - * @returns {number} 0 = file, 1 = dir, negative = error - */ -function internalModuleStat(path) { - const stat = fs.statSync(path, { throwIfNoEntry: false }); - if(!stat) return -1; - if(stat.isFile()) return 0; - if(stat.isDirectory()) return 1; + // The exact needle element was not found in this haystack. Determine if + // we are in termination case (3) or (2) and return the appropriate thing. + if (aBias == exports.LEAST_UPPER_BOUND) { + return aHigh < aHaystack.length ? aHigh : -1; + } else { + return mid; + } + } + else { + // Our needle is less than aHaystack[mid]. + if (mid - aLow > 1) { + // The element is in the lower half. + return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); + } + + // we are in termination case (3) or (2) and return the appropriate thing. + if (aBias == exports.LEAST_UPPER_BOUND) { + return mid; + } else { + return aLow < 0 ? -1 : aLow; + } + } } /** - * @param {string} path - * @returns {number} 0 = file, 1 = dir, negative = error + * This is an implementation of binary search which will always try and return + * the index of the closest element if there is no exact hit. This is because + * mappings between original and generated line/col pairs are single points, + * and there is an implicit region between each of them, so a miss just means + * that you aren't on the very start of a region. + * + * @param aNeedle The element you are looking for. + * @param aHaystack The array that is being searched. + * @param aCompare A function which takes the needle and an element in the + * array and returns -1, 0, or 1 depending on whether the needle is less + * than, equal to, or greater than the element, respectively. + * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or + * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'. */ -function internalModuleStatInefficient(path) { - try { - const stat = fs.statSync(path); - if(stat.isFile()) return 0; - if(stat.isDirectory()) return 1; - } catch(e) { - return -e.errno || -1; +exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { + if (aHaystack.length === 0) { + return -1; } -} - -const statSupportsThrowIfNoEntry = versionGteLt(process.versions.node, '15.3.0') || - versionGteLt(process.versions.node, '14.17.0', '15.0.0'); - -module.exports = { - internalModuleReadJSON, - internalModuleStat: statSupportsThrowIfNoEntry ? internalModuleStat : internalModuleStatInefficient -}; - - -/***/ }), - -/***/ 81597: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, + aCompare, aBias || exports.GREATEST_LOWER_BOUND); + if (index < 0) { + return -1; + } -// Node imports this from 'internal/bootstrap/loaders' -const Module = __nccwpck_require__(98188); -const NativeModule = { - canBeRequiredByUsers(specifier) { - return Module.builtinModules.includes(specifier) + // We have found either the exact element, or the next-closest element than + // the one we are searching for. However, there may be more than one such + // element. Make sure we always return the smallest of these. + while (index - 1 >= 0) { + if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { + break; + } + --index; } + + return index; }; -exports.NativeModule = NativeModule; /***/ }), -/***/ 40690: +/***/ 86817: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// Replacement for node's internal 'internal/options' module - -exports.getOptionValue = getOptionValue; -function getOptionValue(opt) { - parseOptions(); - return options[opt]; -} +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2014 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ -let options; -function parseOptions() { - if (!options) { - options = { - '--preserve-symlinks': false, - '--preserve-symlinks-main': false, - '--input-type': undefined, - '--experimental-specifier-resolution': 'explicit', - '--experimental-policy': undefined, - '--conditions': [], - '--pending-deprecation': false, - ...parseArgv(getNodeOptionsEnvArgv()), - ...parseArgv(process.execArgv), - ...getOptionValuesFromOtherEnvVars() - } - } -} +var util = __nccwpck_require__(12344); -function parseArgv(argv) { - return __nccwpck_require__(59482)({ - '--preserve-symlinks': Boolean, - '--preserve-symlinks-main': Boolean, - '--input-type': String, - '--experimental-specifier-resolution': String, - // Legacy alias for node versions prior to 12.16 - '--es-module-specifier-resolution': '--experimental-specifier-resolution', - '--experimental-policy': String, - '--conditions': [String], - '--pending-deprecation': Boolean, - '--experimental-json-modules': Boolean, - '--experimental-wasm-modules': Boolean, - }, { - argv, - permissive: true - }); +/** + * Determine whether mappingB is after mappingA with respect to generated + * position. + */ +function generatedPositionAfter(mappingA, mappingB) { + // Optimized for most common case + var lineA = mappingA.generatedLine; + var lineB = mappingB.generatedLine; + var columnA = mappingA.generatedColumn; + var columnB = mappingB.generatedColumn; + return lineB > lineA || lineB == lineA && columnB >= columnA || + util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; } -function getNodeOptionsEnvArgv() { - const errors = []; - const envArgv = ParseNodeOptionsEnvVar(process.env.NODE_OPTIONS || '', errors); - if (errors.length !== 0) { - // TODO: handle errors somehow - } - return envArgv; +/** + * A data structure to provide a sorted view of accumulated mappings in a + * performance conscious manner. It trades a neglibable overhead in general + * case for a large speedup in case of mappings being added in order. + */ +function MappingList() { + this._array = []; + this._sorted = true; + // Serves as infimum + this._last = {generatedLine: -1, generatedColumn: 0}; } -// Direct JS port of C implementation: https://github.com/nodejs/node/blob/67ba825037b4082d5d16f922fb9ce54516b4a869/src/node_options.cc#L1024-L1063 -function ParseNodeOptionsEnvVar(node_options, errors) { - const env_argv = []; - - let is_in_string = false; - let will_start_new_arg = true; - for (let index = 0; index < node_options.length; ++index) { - let c = node_options[index]; - - // Backslashes escape the following character - if (c === '\\' && is_in_string) { - if (index + 1 === node_options.length) { - errors.push("invalid value for NODE_OPTIONS " + - "(invalid escape)\n"); - return env_argv; - } else { - c = node_options[++index]; - } - } else if (c === ' ' && !is_in_string) { - will_start_new_arg = true; - continue; - } else if (c === '"') { - is_in_string = !is_in_string; - continue; - } +/** + * Iterate through internal items. This method takes the same arguments that + * `Array.prototype.forEach` takes. + * + * NOTE: The order of the mappings is NOT guaranteed. + */ +MappingList.prototype.unsortedForEach = + function MappingList_forEach(aCallback, aThisArg) { + this._array.forEach(aCallback, aThisArg); + }; - if (will_start_new_arg) { - env_argv.push(c); - will_start_new_arg = false; - } else { - env_argv[env_argv.length - 1] += c; - } +/** + * Add the given source mapping. + * + * @param Object aMapping + */ +MappingList.prototype.add = function MappingList_add(aMapping) { + if (generatedPositionAfter(this._last, aMapping)) { + this._last = aMapping; + this._array.push(aMapping); + } else { + this._sorted = false; + this._array.push(aMapping); } +}; - if (is_in_string) { - errors.push("invalid value for NODE_OPTIONS " + - "(unterminated string)\n"); +/** + * Returns the flat, sorted array of mappings. The mappings are sorted by + * generated position. + * + * WARNING: This method returns internal data without copying, for + * performance. The return value must NOT be mutated, and should be treated as + * an immutable borrow. If you want to take ownership, you must make your own + * copy. + */ +MappingList.prototype.toArray = function MappingList_toArray() { + if (!this._sorted) { + this._array.sort(util.compareByGeneratedPositionsInflated); + this._sorted = true; } - return env_argv; -} + return this._array; +}; -// Get option values that can be specified via env vars besides NODE_OPTIONS -function getOptionValuesFromOtherEnvVars() { - const options = {}; - if(process.env.NODE_PENDING_DEPRECATION === '1') { - options['--pending-deprecation'] = true; - } - return options; -} +exports.H = MappingList; /***/ }), -/***/ 26326: -/***/ ((module) => { +/***/ 73254: +/***/ ((__unused_webpack_module, exports) => { -module.exports = { - ArrayFrom: Array.from, - ArrayIsArray: Array.isArray, - ArrayPrototypeShift: (obj) => Array.prototype.shift.call(obj), - ArrayPrototypeForEach: (arr, ...rest) => Array.prototype.forEach.apply(arr, rest), - ArrayPrototypeIncludes: (arr, ...rest) => Array.prototype.includes.apply(arr, rest), - ArrayPrototypeJoin: (arr, ...rest) => Array.prototype.join.apply(arr, rest), - ArrayPrototypePop: (arr, ...rest) => Array.prototype.pop.apply(arr, rest), - ArrayPrototypePush: (arr, ...rest) => Array.prototype.push.apply(arr, rest), - FunctionPrototype: Function.prototype, - JSONParse: JSON.parse, - JSONStringify: JSON.stringify, - ObjectFreeze: Object.freeze, - ObjectKeys: Object.keys, - ObjectGetOwnPropertyNames: Object.getOwnPropertyNames, - ObjectDefineProperty: Object.defineProperty, - ObjectPrototypeHasOwnProperty: (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop), - RegExpPrototypeExec: (obj, string) => RegExp.prototype.exec.call(obj, string), - RegExpPrototypeTest: (obj, string) => RegExp.prototype.test.call(obj, string), - RegExpPrototypeSymbolReplace: (obj, ...rest) => RegExp.prototype[Symbol.replace].apply(obj, rest), - SafeMap: Map, - SafeSet: Set, - SafeWeakMap: WeakMap, - StringPrototypeEndsWith: (str, ...rest) => String.prototype.endsWith.apply(str, rest), - StringPrototypeIncludes: (str, ...rest) => String.prototype.includes.apply(str, rest), - StringPrototypeLastIndexOf: (str, ...rest) => String.prototype.lastIndexOf.apply(str, rest), - StringPrototypeIndexOf: (str, ...rest) => String.prototype.indexOf.apply(str, rest), - StringPrototypeRepeat: (str, ...rest) => String.prototype.repeat.apply(str, rest), - StringPrototypeReplace: (str, ...rest) => String.prototype.replace.apply(str, rest), - StringPrototypeSlice: (str, ...rest) => String.prototype.slice.apply(str, rest), - StringPrototypeSplit: (str, ...rest) => String.prototype.split.apply(str, rest), - StringPrototypeStartsWith: (str, ...rest) => String.prototype.startsWith.apply(str, rest), - StringPrototypeSubstr: (str, ...rest) => String.prototype.substr.apply(str, rest), - StringPrototypeCharCodeAt: (str, ...rest) => String.prototype.charCodeAt.apply(str, rest), - StringPrototypeMatch: (str, ...rest) => String.prototype.match.apply(str, rest), - SyntaxError: SyntaxError -}; - - -/***/ }), - -/***/ 64414: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ -"use strict"; +// It turns out that some (most?) JavaScript engines don't self-host +// `Array.prototype.sort`. This makes sense because C++ will likely remain +// faster than JS when doing raw CPU-intensive sorting. However, when using a +// custom comparator function, calling back and forth between the VM's C++ and +// JIT'd JS is rather slow *and* loses JIT type information, resulting in +// worse generated code for the comparator function than would be optimal. In +// fact, when sorting with a comparator, these costs outweigh the benefits of +// sorting in C++. By using our own JS-implemented Quick Sort (below), we get +// a ~3500ms mean speed-up in `bench/bench.html`. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.installCommonjsResolveHooksIfNecessary = void 0; /** - * @internal + * Swap the elements indexed by `x` and `y` in the array `ary`. + * + * @param {Array} ary + * The array. + * @param {Number} x + * The index of the first item. + * @param {Number} y + * The index of the second item. */ -function installCommonjsResolveHooksIfNecessary(tsNodeService) { - const Module = __nccwpck_require__(98188); - const originalResolveFilename = Module._resolveFilename; - const originalFindPath = Module._findPath; - const shouldInstallHook = tsNodeService.options.experimentalResolver; - if (shouldInstallHook) { - const { Module_findPath, Module_resolveFilename } = tsNodeService.getNodeCjsLoader(); - Module._resolveFilename = _resolveFilename; - Module._findPath = _findPath; - function _resolveFilename(request, parent, isMain, options, ...rest) { - if (!tsNodeService.enabled()) - return originalResolveFilename.call(this, request, parent, isMain, options, ...rest); - return Module_resolveFilename.call(this, request, parent, isMain, options, ...rest); - } - function _findPath() { - if (!tsNodeService.enabled()) - return originalFindPath.apply(this, arguments); - return Module_findPath.apply(this, arguments); - } - } +function swap(ary, x, y) { + var temp = ary[x]; + ary[x] = ary[y]; + ary[y] = temp; } -exports.installCommonjsResolveHooksIfNecessary = installCommonjsResolveHooksIfNecessary; -//# sourceMappingURL=cjs-resolve-hooks.js.map - -/***/ }), - -/***/ 29906: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getTsConfigDefaults = exports.ComputeAsCommonRootOfFiles = exports.loadCompiler = exports.resolveAndLoadCompiler = exports.readConfig = exports.findAndReadConfig = void 0; -const path_1 = __nccwpck_require__(71017); -const index_1 = __nccwpck_require__(72719); -const ts_internals_1 = __nccwpck_require__(14851); -const tsconfigs_1 = __nccwpck_require__(91533); -const util_1 = __nccwpck_require__(64745); /** - * TypeScript compiler option values required by `ts-node` which cannot be overridden. - */ -const TS_NODE_COMPILER_OPTIONS = { - sourceMap: true, - inlineSourceMap: false, - inlineSources: true, - declaration: false, - noEmit: false, - outDir: '.ts-node', -}; -/* - * Do post-processing on config options to support `ts-node`. + * Returns a random integer within the range `low .. high` inclusive. + * + * @param {Number} low + * The lower bound on the range. + * @param {Number} high + * The upper bound on the range. */ -function fixConfig(ts, config) { - // Delete options that *should not* be passed through. - delete config.options.out; - delete config.options.outFile; - delete config.options.composite; - delete config.options.declarationDir; - delete config.options.declarationMap; - delete config.options.emitDeclarationOnly; - // Target ES5 output by default (instead of ES3). - if (config.options.target === undefined) { - config.options.target = ts.ScriptTarget.ES5; - } - // Target CommonJS modules by default (instead of magically switching to ES6 when the target is ES6). - if (config.options.module === undefined) { - config.options.module = ts.ModuleKind.CommonJS; - } - return config; -} -/** @internal */ -function findAndReadConfig(rawOptions) { - var _a, _b, _c, _d, _e; - const cwd = (0, path_1.resolve)((_c = (_b = (_a = rawOptions.cwd) !== null && _a !== void 0 ? _a : rawOptions.dir) !== null && _b !== void 0 ? _b : index_1.DEFAULTS.cwd) !== null && _c !== void 0 ? _c : process.cwd()); - const compilerName = (_d = rawOptions.compiler) !== null && _d !== void 0 ? _d : index_1.DEFAULTS.compiler; - // Compute minimum options to read the config file. - let projectLocalResolveDir = (0, util_1.getBasePathForProjectLocalDependencyResolution)(undefined, rawOptions.projectSearchDir, rawOptions.project, cwd); - let { compiler, ts } = resolveAndLoadCompiler(compilerName, projectLocalResolveDir); - // Read config file and merge new options between env and CLI options. - const { configFilePath, config, tsNodeOptionsFromTsconfig, optionBasePaths } = readConfig(cwd, ts, rawOptions); - const options = (0, util_1.assign)({}, index_1.DEFAULTS, tsNodeOptionsFromTsconfig || {}, { optionBasePaths }, rawOptions); - options.require = [ - ...(tsNodeOptionsFromTsconfig.require || []), - ...(rawOptions.require || []), - ]; - // Re-resolve the compiler in case it has changed. - // Compiler is loaded relative to tsconfig.json, so tsconfig discovery may cause us to load a - // different compiler than we did above, even if the name has not changed. - if (configFilePath) { - projectLocalResolveDir = (0, util_1.getBasePathForProjectLocalDependencyResolution)(configFilePath, rawOptions.projectSearchDir, rawOptions.project, cwd); - ({ compiler } = resolveCompiler(options.compiler, (_e = optionBasePaths.compiler) !== null && _e !== void 0 ? _e : projectLocalResolveDir)); - } - return { - options, - config, - projectLocalResolveDir, - optionBasePaths, - configFilePath, - cwd, - compiler, - }; +function randomIntInRange(low, high) { + return Math.round(low + (Math.random() * (high - low))); } -exports.findAndReadConfig = findAndReadConfig; + /** - * Load TypeScript configuration. Returns the parsed TypeScript config and - * any `ts-node` options specified in the config file. - * - * Even when a tsconfig.json is not loaded, this function still handles merging - * compilerOptions from various sources: API, environment variables, etc. + * The Quick Sort algorithm. * - * @internal + * @param {Array} ary + * An array to sort. + * @param {function} comparator + * Function to use to compare two items. + * @param {Number} p + * Start index of the array + * @param {Number} r + * End index of the array */ -function readConfig(cwd, ts, rawApiOptions) { - var _a, _b, _c; - // Ordered [a, b, c] where config a extends b extends c - const configChain = []; - let config = { compilerOptions: {} }; - let basePath = cwd; - let configFilePath = undefined; - const projectSearchDir = (0, path_1.resolve)(cwd, (_a = rawApiOptions.projectSearchDir) !== null && _a !== void 0 ? _a : cwd); - const { fileExists = ts.sys.fileExists, readFile = ts.sys.readFile, skipProject = index_1.DEFAULTS.skipProject, project = index_1.DEFAULTS.project, tsTrace = index_1.DEFAULTS.tsTrace, } = rawApiOptions; - // Read project configuration when available. - if (!skipProject) { - if (project) { - const resolved = (0, path_1.resolve)(cwd, project); - const nested = (0, path_1.join)(resolved, 'tsconfig.json'); - configFilePath = fileExists(nested) ? nested : resolved; - } - else { - configFilePath = ts.findConfigFile(projectSearchDir, fileExists); - } - if (configFilePath) { - let pathToNextConfigInChain = configFilePath; - const tsInternals = (0, ts_internals_1.createTsInternals)(ts); - const errors = []; - // Follow chain of "extends" - while (true) { - const result = ts.readConfigFile(pathToNextConfigInChain, readFile); - // Return diagnostics. - if (result.error) { - return { - configFilePath, - config: { errors: [result.error], fileNames: [], options: {} }, - tsNodeOptionsFromTsconfig: {}, - optionBasePaths: {}, - }; - } - const c = result.config; - const bp = (0, path_1.dirname)(pathToNextConfigInChain); - configChain.push({ - config: c, - basePath: bp, - configPath: pathToNextConfigInChain, - }); - if (c.extends == null) - break; - const resolvedExtendedConfigPath = tsInternals.getExtendsConfigPath(c.extends, { - fileExists, - readDirectory: ts.sys.readDirectory, - readFile, - useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames, - trace: tsTrace, - }, bp, errors, ts.createCompilerDiagnostic); - if (errors.length) { - return { - configFilePath, - config: { errors, fileNames: [], options: {} }, - tsNodeOptionsFromTsconfig: {}, - optionBasePaths: {}, - }; - } - if (resolvedExtendedConfigPath == null) - break; - pathToNextConfigInChain = resolvedExtendedConfigPath; - } - ({ config, basePath } = configChain[0]); - } - } - // Merge and fix ts-node options that come from tsconfig.json(s) - const tsNodeOptionsFromTsconfig = {}; - const optionBasePaths = {}; - for (let i = configChain.length - 1; i >= 0; i--) { - const { config, basePath, configPath } = configChain[i]; - const options = filterRecognizedTsConfigTsNodeOptions(config['ts-node']).recognized; - // Some options are relative to the config file, so must be converted to absolute paths here - if (options.require) { - // Modules are found relative to the tsconfig file, not the `dir` option - const tsconfigRelativeResolver = (0, util_1.createProjectLocalResolveHelper)((0, path_1.dirname)(configPath)); - options.require = options.require.map((path) => tsconfigRelativeResolver(path, false)); - } - if (options.scopeDir) { - options.scopeDir = (0, path_1.resolve)(basePath, options.scopeDir); - } - // Downstream code uses the basePath; we do not do that here. - if (options.moduleTypes) { - optionBasePaths.moduleTypes = basePath; - } - if (options.transpiler != null) { - optionBasePaths.transpiler = basePath; - } - if (options.compiler != null) { - optionBasePaths.compiler = basePath; - } - if (options.swc != null) { - optionBasePaths.swc = basePath; - } - (0, util_1.assign)(tsNodeOptionsFromTsconfig, options); +function doQuickSort(ary, comparator, p, r) { + // If our lower bound is less than our upper bound, we (1) partition the + // array into two pieces and (2) recurse on each half. If it is not, this is + // the empty array and our base case. + + if (p < r) { + // (1) Partitioning. + // + // The partitioning chooses a pivot between `p` and `r` and moves all + // elements that are less than or equal to the pivot to the before it, and + // all the elements that are greater than it after it. The effect is that + // once partition is done, the pivot is in the exact place it will be when + // the array is put in sorted order, and it will not need to be moved + // again. This runs in O(n) time. + + // Always choose a random pivot so that an input array which is reverse + // sorted does not cause O(n^2) running time. + var pivotIndex = randomIntInRange(p, r); + var i = p - 1; + + swap(ary, pivotIndex, r); + var pivot = ary[r]; + + // Immediately after `j` is incremented in this loop, the following hold + // true: + // + // * Every element in `ary[p .. i]` is less than or equal to the pivot. + // + // * Every element in `ary[i+1 .. j-1]` is greater than the pivot. + for (var j = p; j < r; j++) { + if (comparator(ary[j], pivot) <= 0) { + i += 1; + swap(ary, i, j); + } } - // Remove resolution of "files". - const files = (_c = (_b = rawApiOptions.files) !== null && _b !== void 0 ? _b : tsNodeOptionsFromTsconfig.files) !== null && _c !== void 0 ? _c : index_1.DEFAULTS.files; - // Only if a config file is *not* loaded, load an implicit configuration from @tsconfig/bases - const skipDefaultCompilerOptions = configFilePath != null; - const defaultCompilerOptionsForNodeVersion = skipDefaultCompilerOptions - ? undefined - : { - ...(0, tsconfigs_1.getDefaultTsconfigJsonForNodeVersion)(ts).compilerOptions, - types: ['node'], - }; - // Merge compilerOptions from all sources - config.compilerOptions = Object.assign({}, - // automatically-applied options from @tsconfig/bases - defaultCompilerOptionsForNodeVersion, - // tsconfig.json "compilerOptions" - config.compilerOptions, - // from env var - index_1.DEFAULTS.compilerOptions, - // tsconfig.json "ts-node": "compilerOptions" - tsNodeOptionsFromTsconfig.compilerOptions, - // passed programmatically - rawApiOptions.compilerOptions, - // overrides required by ts-node, cannot be changed - TS_NODE_COMPILER_OPTIONS); - const fixedConfig = fixConfig(ts, ts.parseJsonConfigFileContent(config, { - fileExists, - readFile, - // Only used for globbing "files", "include", "exclude" - // When `files` option disabled, we want to avoid the fs calls - readDirectory: files ? ts.sys.readDirectory : () => [], - useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames, - }, basePath, undefined, configFilePath)); - return { - configFilePath, - config: fixedConfig, - tsNodeOptionsFromTsconfig, - optionBasePaths, - }; -} -exports.readConfig = readConfig; -/** - * Load the typescript compiler. It is required to load the tsconfig but might - * be changed by the tsconfig, so we have to do this twice. - * @internal - */ -function resolveAndLoadCompiler(name, relativeToPath) { - const { compiler } = resolveCompiler(name, relativeToPath); - const ts = loadCompiler(compiler); - return { compiler, ts }; -} -exports.resolveAndLoadCompiler = resolveAndLoadCompiler; -function resolveCompiler(name, relativeToPath) { - const projectLocalResolveHelper = (0, util_1.createProjectLocalResolveHelper)(relativeToPath); - const compiler = projectLocalResolveHelper(name || 'typescript', true); - return { compiler }; -} -/** @internal */ -function loadCompiler(compiler) { - return (0, util_1.attemptRequireWithV8CompileCache)(require, compiler); -} -exports.loadCompiler = loadCompiler; -/** - * Given the raw "ts-node" sub-object from a tsconfig, return an object with only the properties - * recognized by "ts-node" - */ -function filterRecognizedTsConfigTsNodeOptions(jsonObject) { - if (jsonObject == null) - return { recognized: {}, unrecognized: {} }; - const { compiler, compilerHost, compilerOptions, emit, files, ignore, ignoreDiagnostics, logError, preferTsExts, pretty, require, skipIgnore, transpileOnly, typeCheck, transpiler, scope, scopeDir, moduleTypes, experimentalReplAwait, swc, experimentalResolver, esm, experimentalSpecifierResolution, experimentalTsImportSpecifiers, ...unrecognized } = jsonObject; - const filteredTsConfigOptions = { - compiler, - compilerHost, - compilerOptions, - emit, - experimentalReplAwait, - files, - ignore, - ignoreDiagnostics, - logError, - preferTsExts, - pretty, - require, - skipIgnore, - transpileOnly, - typeCheck, - transpiler, - scope, - scopeDir, - moduleTypes, - swc, - experimentalResolver, - esm, - experimentalSpecifierResolution, - experimentalTsImportSpecifiers, - }; - // Use the typechecker to make sure this implementation has the correct set of properties - const catchExtraneousProps = null; - const catchMissingProps = null; - return { recognized: filteredTsConfigOptions, unrecognized }; + + swap(ary, i + 1, j); + var q = i + 1; + + // (2) Recurse on each half. + + doQuickSort(ary, comparator, p, q - 1); + doQuickSort(ary, comparator, q + 1, r); + } } -/** @internal */ -exports.ComputeAsCommonRootOfFiles = Symbol(); + /** - * Some TS compiler options have defaults which are not provided by TS's config parsing functions. - * This function centralizes the logic for computing those defaults. - * @internal + * Sort the given array in-place with the given comparator function. + * + * @param {Array} ary + * An array to sort. + * @param {function} comparator + * Function to use to compare two items. */ -function getTsConfigDefaults(config, basePath, _files, _include, _exclude) { - const { composite = false } = config.options; - let rootDir = config.options.rootDir; - if (rootDir == null) { - if (composite) - rootDir = basePath; - // Return this symbol to avoid computing from `files`, which would require fs calls - else - rootDir = exports.ComputeAsCommonRootOfFiles; - } - const { outDir = rootDir } = config.options; - // Docs are wrong: https://www.typescriptlang.org/tsconfig#include - // Docs say **, but it's actually **/*; compiler throws error for ** - const include = _files ? [] : ['**/*']; - const files = _files !== null && _files !== void 0 ? _files : []; - // Docs are misleading: https://www.typescriptlang.org/tsconfig#exclude - // Docs say it excludes node_modules, bower_components, jspm_packages, but actually those are excluded via behavior of "include" - const exclude = _exclude !== null && _exclude !== void 0 ? _exclude : [outDir]; // TODO technically, outDir is absolute path, but exclude should be relative glob pattern? - // TODO compute baseUrl - return { rootDir, outDir, include, files, exclude, composite }; -} -exports.getTsConfigDefaults = getTsConfigDefaults; -//# sourceMappingURL=configuration.js.map +exports.U = function (ary, comparator) { + doQuickSort(ary, comparator, 0, ary.length - 1); +}; + /***/ }), -/***/ 84998: +/***/ 75155: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; var __webpack_unused_export__; +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ -__webpack_unused_export__ = ({ value: true }); -exports.lT = __webpack_unused_export__ = __webpack_unused_export__ = void 0; -const index_1 = __nccwpck_require__(72719); -const url_1 = __nccwpck_require__(57310); -const path_1 = __nccwpck_require__(71017); -const assert = __nccwpck_require__(39491); -const util_1 = __nccwpck_require__(64745); -const module_1 = __nccwpck_require__(98188); -// The hooks API changed in node version X so we need to check for backwards compatibility. -const newHooksAPI = (0, util_1.versionGteLt)(process.versions.node, '16.12.0'); -/** @internal */ -function filterHooksByAPIVersion(hooks) { - const { getFormat, load, resolve, transformSource } = hooks; - // Explicit return type to avoid TS's non-ideal inferred type - const hooksAPI = newHooksAPI - ? { resolve, load, getFormat: undefined, transformSource: undefined } - : { resolve, getFormat, transformSource, load: undefined }; - return hooksAPI; -} -__webpack_unused_export__ = filterHooksByAPIVersion; -/** @internal */ -function registerAndCreateEsmHooks(opts) { - // Automatically performs registration just like `-r ts-node/register` - const tsNodeInstance = (0, index_1.register)(opts); - return createEsmHooks(tsNodeInstance); -} -__webpack_unused_export__ = registerAndCreateEsmHooks; -function createEsmHooks(tsNodeService) { - tsNodeService.enableExperimentalEsmLoaderInterop(); - // Custom implementation that considers additional file extensions and automatically adds file extensions - const nodeResolveImplementation = tsNodeService.getNodeEsmResolver(); - const nodeGetFormatImplementation = tsNodeService.getNodeEsmGetFormat(); - const extensions = tsNodeService.extensions; - const hooksAPI = filterHooksByAPIVersion({ - resolve, - load, - getFormat, - transformSource, - }); - function isFileUrlOrNodeStyleSpecifier(parsed) { - // We only understand file:// URLs, but in node, the specifier can be a node-style `./foo` or `foo` - const { protocol } = parsed; - return protocol === null || protocol === 'file:'; - } - /** - * Named "probably" as a reminder that this is a guess. - * node does not explicitly tell us if we're resolving the entrypoint or not. - */ - function isProbablyEntrypoint(specifier, parentURL) { - return parentURL === undefined && specifier.startsWith('file://'); - } - // Side-channel between `resolve()` and `load()` hooks - const rememberIsProbablyEntrypoint = new Set(); - const rememberResolvedViaCommonjsFallback = new Set(); - async function resolve(specifier, context, defaultResolve) { - const defer = async () => { - const r = await defaultResolve(specifier, context, defaultResolve); - return r; - }; - // See: https://github.com/nodejs/node/discussions/41711 - // nodejs will likely implement a similar fallback. Till then, we can do our users a favor and fallback today. - async function entrypointFallback(cb) { - try { - const resolution = await cb(); - if ((resolution === null || resolution === void 0 ? void 0 : resolution.url) && - isProbablyEntrypoint(specifier, context.parentURL)) - rememberIsProbablyEntrypoint.add(resolution.url); - return resolution; - } - catch (esmResolverError) { - if (!isProbablyEntrypoint(specifier, context.parentURL)) - throw esmResolverError; - try { - let cjsSpecifier = specifier; - // Attempt to convert from ESM file:// to CommonJS path - try { - if (specifier.startsWith('file://')) - cjsSpecifier = (0, url_1.fileURLToPath)(specifier); - } - catch { } - const resolution = (0, url_1.pathToFileURL)((0, module_1.createRequire)(process.cwd()).resolve(cjsSpecifier)).toString(); - rememberIsProbablyEntrypoint.add(resolution); - rememberResolvedViaCommonjsFallback.add(resolution); - return { url: resolution, format: 'commonjs' }; - } - catch (commonjsResolverError) { - throw esmResolverError; - } - } - } - return addShortCircuitFlag(async () => { - const parsed = (0, url_1.parse)(specifier); - const { pathname, protocol, hostname } = parsed; - if (!isFileUrlOrNodeStyleSpecifier(parsed)) { - return entrypointFallback(defer); - } - if (protocol !== null && protocol !== 'file:') { - return entrypointFallback(defer); - } - // Malformed file:// URL? We should always see `null` or `''` - if (hostname) { - // TODO file://./foo sets `hostname` to `'.'`. Perhaps we should special-case this. - return entrypointFallback(defer); - } - // pathname is the path to be resolved - return entrypointFallback(() => nodeResolveImplementation.defaultResolve(specifier, context, defaultResolve)); - }); - } - // `load` from new loader hook API (See description at the top of this file) - async function load(url, context, defaultLoad) { - return addShortCircuitFlag(async () => { - var _a; - // If we get a format hint from resolve() on the context then use it - // otherwise call the old getFormat() hook using node's old built-in defaultGetFormat() that ships with ts-node - const format = (_a = context.format) !== null && _a !== void 0 ? _a : (await getFormat(url, context, nodeGetFormatImplementation.defaultGetFormat)).format; - let source = undefined; - if (format !== 'builtin' && format !== 'commonjs') { - // Call the new defaultLoad() to get the source - const { source: rawSource } = await defaultLoad(url, { - ...context, - format, - }, defaultLoad); - if (rawSource === undefined || rawSource === null) { - throw new Error(`Failed to load raw source: Format was '${format}' and url was '${url}''.`); - } - // Emulate node's built-in old defaultTransformSource() so we can re-use the old transformSource() hook - const defaultTransformSource = async (source, _context, _defaultTransformSource) => ({ source }); - // Call the old hook - const { source: transformedSource } = await transformSource(rawSource, { url, format }, defaultTransformSource); - source = transformedSource; - } - return { format, source }; - }); - } - async function getFormat(url, context, defaultGetFormat) { - const defer = (overrideUrl = url) => defaultGetFormat(overrideUrl, context, defaultGetFormat); - // See: https://github.com/nodejs/node/discussions/41711 - // nodejs will likely implement a similar fallback. Till then, we can do our users a favor and fallback today. - async function entrypointFallback(cb) { - try { - return await cb(); - } - catch (getFormatError) { - if (!rememberIsProbablyEntrypoint.has(url)) - throw getFormatError; - return { format: 'commonjs' }; - } - } - const parsed = (0, url_1.parse)(url); - if (!isFileUrlOrNodeStyleSpecifier(parsed)) { - return entrypointFallback(defer); - } - const { pathname } = parsed; - assert(pathname !== null, 'ESM getFormat() hook: URL should never have null pathname'); - const nativePath = (0, url_1.fileURLToPath)(url); - let nodeSays; - // If file has extension not understood by node, then ask node how it would treat the emitted extension. - // E.g. .mts compiles to .mjs, so ask node how to classify an .mjs file. - const ext = (0, path_1.extname)(nativePath); - const tsNodeIgnored = tsNodeService.ignored(nativePath); - const nodeEquivalentExt = extensions.nodeEquivalents.get(ext); - if (nodeEquivalentExt && !tsNodeIgnored) { - nodeSays = await entrypointFallback(() => defer((0, url_1.format)((0, url_1.pathToFileURL)(nativePath + nodeEquivalentExt)))); - } - else { - try { - nodeSays = await entrypointFallback(defer); - } - catch (e) { - if (e instanceof Error && - tsNodeIgnored && - extensions.nodeDoesNotUnderstand.includes(ext)) { - e.message += - `\n\n` + - `Hint:\n` + - `ts-node is configured to ignore this file.\n` + - `If you want ts-node to handle this file, consider enabling the "skipIgnore" option or adjusting your "ignore" patterns.\n` + - `https://typestrong.org/ts-node/docs/scope\n`; - } - throw e; - } - } - // For files compiled by ts-node that node believes are either CJS or ESM, check if we should override that classification - if (!tsNodeService.ignored(nativePath) && - (nodeSays.format === 'commonjs' || nodeSays.format === 'module')) { - const { moduleType } = tsNodeService.moduleTypeClassifier.classifyModuleByModuleTypeOverrides((0, util_1.normalizeSlashes)(nativePath)); - if (moduleType === 'cjs') { - return { format: 'commonjs' }; - } - else if (moduleType === 'esm') { - return { format: 'module' }; - } - } - return nodeSays; - } - async function transformSource(source, context, defaultTransformSource) { - if (source === null || source === undefined) { - throw new Error('No source'); - } - const defer = () => defaultTransformSource(source, context, defaultTransformSource); - const sourceAsString = typeof source === 'string' ? source : source.toString('utf8'); - const { url } = context; - const parsed = (0, url_1.parse)(url); - if (!isFileUrlOrNodeStyleSpecifier(parsed)) { - return defer(); - } - const nativePath = (0, url_1.fileURLToPath)(url); - if (tsNodeService.ignored(nativePath)) { - return defer(); - } - const emittedJs = tsNodeService.compile(sourceAsString, nativePath); - return { source: emittedJs }; - } - return hooksAPI; -} -exports.lT = createEsmHooks; -async function addShortCircuitFlag(fn) { - const ret = await fn(); - // Not sure if this is necessary; being lazy. Can revisit in the future. - if (ret == null) - return ret; - return { - ...ret, - shortCircuit: true, - }; -} -//# sourceMappingURL=esm.js.map +var util = __nccwpck_require__(12344); +var binarySearch = __nccwpck_require__(33600); +var ArraySet = (__nccwpck_require__(26375)/* .ArraySet */ .I); +var base64VLQ = __nccwpck_require__(10975); +var quickSort = (__nccwpck_require__(73254)/* .quickSort */ .U); -/***/ }), +function SourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); + } -/***/ 5183: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + return sourceMap.sections != null + ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) + : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); +} -"use strict"; +SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) { + return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); +} -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getExtensions = void 0; -const util_1 = __nccwpck_require__(64745); -const nodeEquivalents = new Map([ - ['.ts', '.js'], - ['.tsx', '.js'], - ['.jsx', '.js'], - ['.mts', '.mjs'], - ['.cts', '.cjs'], -]); -const tsResolverEquivalents = new Map([ - ['.ts', ['.js']], - ['.tsx', ['.js', '.jsx']], - ['.mts', ['.mjs']], - ['.cts', ['.cjs']], -]); -// All extensions understood by vanilla node -const vanillaNodeExtensions = [ - '.js', - '.json', - '.node', - '.mjs', - '.cjs', -]; -// Extensions added by vanilla node's require() if you omit them: -// js, json, node -// Extensions added by vanilla node if you omit them with --experimental-specifier-resolution=node -// js, json, node, mjs -// Extensions added by ESM codepath's legacy package.json "main" resolver -// js, json, node (not mjs!) -const nodeDoesNotUnderstand = [ - '.ts', - '.tsx', - '.jsx', - '.cts', - '.mts', -]; /** - * [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS] - * @internal + * The version of the source mapping spec that we are consuming. */ -function getExtensions(config, options, tsVersion) { - // TS 4.5 is first version to understand .cts, .mts, .cjs, and .mjs extensions - const tsSupportsMtsCtsExts = (0, util_1.versionGteLt)(tsVersion, '4.5.0'); - const requiresHigherTypescriptVersion = []; - if (!tsSupportsMtsCtsExts) - requiresHigherTypescriptVersion.push('.cts', '.cjs', '.mts', '.mjs'); - const allPossibleExtensionsSortedByPreference = Array.from(new Set([ - ...(options.preferTsExts ? nodeDoesNotUnderstand : []), - ...vanillaNodeExtensions, - ...nodeDoesNotUnderstand, - ])); - const compiledJsUnsorted = ['.ts']; - const compiledJsxUnsorted = []; - if (config.options.jsx) - compiledJsxUnsorted.push('.tsx'); - if (tsSupportsMtsCtsExts) - compiledJsUnsorted.push('.mts', '.cts'); - if (config.options.allowJs) { - compiledJsUnsorted.push('.js'); - if (config.options.jsx) - compiledJsxUnsorted.push('.jsx'); - if (tsSupportsMtsCtsExts) - compiledJsUnsorted.push('.mjs', '.cjs'); +SourceMapConsumer.prototype._version = 3; + +// `__generatedMappings` and `__originalMappings` are arrays that hold the +// parsed mapping coordinates from the source map's "mappings" attribute. They +// are lazily instantiated, accessed via the `_generatedMappings` and +// `_originalMappings` getters respectively, and we only parse the mappings +// and create these arrays once queried for a source location. We jump through +// these hoops because there can be many thousands of mappings, and parsing +// them is expensive, so we only want to do it if we must. +// +// Each object in the arrays is of the form: +// +// { +// generatedLine: The line number in the generated code, +// generatedColumn: The column number in the generated code, +// source: The path to the original source file that generated this +// chunk of code, +// originalLine: The line number in the original source that +// corresponds to this chunk of generated code, +// originalColumn: The column number in the original source that +// corresponds to this chunk of generated code, +// name: The name of the original symbol which generated this chunk of +// code. +// } +// +// All properties except for `generatedLine` and `generatedColumn` can be +// `null`. +// +// `_generatedMappings` is ordered by the generated positions. +// +// `_originalMappings` is ordered by the original positions. + +SourceMapConsumer.prototype.__generatedMappings = null; +Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { + configurable: true, + enumerable: true, + get: function () { + if (!this.__generatedMappings) { + this._parseMappings(this._mappings, this.sourceRoot); } - const compiledUnsorted = [...compiledJsUnsorted, ...compiledJsxUnsorted]; - const compiled = allPossibleExtensionsSortedByPreference.filter((ext) => compiledUnsorted.includes(ext)); - const compiledNodeDoesNotUnderstand = nodeDoesNotUnderstand.filter((ext) => compiled.includes(ext)); - /** - * TS's resolver can resolve foo.js to foo.ts, by replacing .js extension with several source extensions. - * IMPORTANT: Must preserve ordering according to preferTsExts! - * Must include the .js/.mjs/.cjs extension in the array! - * This affects resolution behavior! - * [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS] - */ - const r = allPossibleExtensionsSortedByPreference.filter((ext) => [...compiledUnsorted, '.js', '.mjs', '.cjs', '.mts', '.cts'].includes(ext)); - const replacementsForJs = r.filter((ext) => ['.js', '.jsx', '.ts', '.tsx'].includes(ext)); - const replacementsForJsx = r.filter((ext) => ['.jsx', '.tsx'].includes(ext)); - const replacementsForMjs = r.filter((ext) => ['.mjs', '.mts'].includes(ext)); - const replacementsForCjs = r.filter((ext) => ['.cjs', '.cts'].includes(ext)); - const replacementsForJsOrMjs = r.filter((ext) => ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.mts'].includes(ext)); - // Node allows omitting .js or .mjs extension in certain situations (CJS, ESM w/experimental flag) - // So anything that compiles to .js or .mjs can also be omitted. - const experimentalSpecifierResolutionAddsIfOmitted = Array.from(new Set([...replacementsForJsOrMjs, '.json', '.node'])); - // Same as above, except node curiuosly doesn't do .mjs here - const legacyMainResolveAddsIfOmitted = Array.from(new Set([...replacementsForJs, '.json', '.node'])); - return { - /** All file extensions we transform, ordered by resolution preference according to preferTsExts */ - compiled, - /** Resolved extensions that vanilla node will not understand; we should handle them */ - nodeDoesNotUnderstand, - /** Like the above, but only the ones we're compiling */ - compiledNodeDoesNotUnderstand, - /** - * Mapping from extensions understood by tsc to the equivalent for node, - * as far as getFormat is concerned. - */ - nodeEquivalents, - /** - * Mapping from extensions rejected by TSC in import specifiers, to the - * possible alternatives that TS's resolver will accept. - * - * When we allow users to opt-in to .ts extensions in import specifiers, TS's - * resolver requires us to replace the .ts extensions with .js alternatives. - * Otherwise, resolution fails. - * - * Note TS's resolver is only used by, and only required for, typechecking. - * This is separate from node's resolver, which we hook separately and which - * does not require this mapping. - */ - tsResolverEquivalents, - /** - * Extensions that we can support if the user upgrades their typescript version. - * Used when raising hints. - */ - requiresHigherTypescriptVersion, - /** - * --experimental-specifier-resolution=node will add these extensions. - */ - experimentalSpecifierResolutionAddsIfOmitted, - /** - * ESM loader will add these extensions to package.json "main" field - */ - legacyMainResolveAddsIfOmitted, - replacementsForMjs, - replacementsForCjs, - replacementsForJsx, - replacementsForJs, - }; -} -exports.getExtensions = getExtensions; -//# sourceMappingURL=file-extensions.js.map -/***/ }), + return this.__generatedMappings; + } +}); -/***/ 72719: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +SourceMapConsumer.prototype.__originalMappings = null; +Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { + configurable: true, + enumerable: true, + get: function () { + if (!this.__originalMappings) { + this._parseMappings(this._mappings, this.sourceRoot); + } -"use strict"; + return this.__originalMappings; + } +}); + +SourceMapConsumer.prototype._charIsMappingSeparator = + function SourceMapConsumer_charIsMappingSeparator(aStr, index) { + var c = aStr.charAt(index); + return c === ";" || c === ","; + }; -var _a, _b; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.createEsmHooks = exports.createFromPreloadedConfig = exports.create = exports.register = exports.TSError = exports.DEFAULTS = exports.VERSION = exports.debug = exports.INSPECT_CUSTOM = exports.env = exports.REGISTER_INSTANCE = exports.createRepl = void 0; -const path_1 = __nccwpck_require__(71017); -const module_1 = __nccwpck_require__(98188); -const util = __nccwpck_require__(73837); -const url_1 = __nccwpck_require__(57310); -const make_error_1 = __nccwpck_require__(21381); -const util_1 = __nccwpck_require__(64745); -const configuration_1 = __nccwpck_require__(29906); -const module_type_classifier_1 = __nccwpck_require__(23922); -const resolver_functions_1 = __nccwpck_require__(19148); -const cjs_resolve_hooks_1 = __nccwpck_require__(64414); -const node_module_type_classifier_1 = __nccwpck_require__(80812); -const file_extensions_1 = __nccwpck_require__(5183); -const ts_transpile_module_1 = __nccwpck_require__(4444); -var repl_1 = __nccwpck_require__(10204); -Object.defineProperty(exports, "createRepl", ({ enumerable: true, get: function () { return repl_1.createRepl; } })); /** - * Does this version of node obey the package.json "type" field - * and throw ERR_REQUIRE_ESM when attempting to require() an ESM modules. + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). */ -const engineSupportsPackageTypeField = parseInt(process.versions.node.split('.')[0], 10) >= 12; +SourceMapConsumer.prototype._parseMappings = + function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { + throw new Error("Subclasses must implement _parseMappings"); + }; + +SourceMapConsumer.GENERATED_ORDER = 1; +SourceMapConsumer.ORIGINAL_ORDER = 2; + +SourceMapConsumer.GREATEST_LOWER_BOUND = 1; +SourceMapConsumer.LEAST_UPPER_BOUND = 2; + /** - * Assert that script can be loaded as CommonJS when we attempt to require it. - * If it should be loaded as ESM, throw ERR_REQUIRE_ESM like node does. + * Iterate over each mapping between an original source/line/column and a + * generated line/column in this source map. * - * Loaded conditionally so we don't need to support older node versions - */ -let assertScriptCanLoadAsCJS = engineSupportsPackageTypeField - ? (__nccwpck_require__(51633).assertScriptCanLoadAsCJSImpl) - : () => { - /* noop */ - }; -/** - * Registered `ts-node` instance information. - */ -exports.REGISTER_INSTANCE = Symbol.for('ts-node.register.instance'); -/** @internal */ -exports.env = process.env; -/** - * @internal - */ -exports.INSPECT_CUSTOM = util.inspect.custom || 'inspect'; -/** - * Debugging `ts-node`. + * @param Function aCallback + * The function that is called with each mapping. + * @param Object aContext + * Optional. If specified, this object will be the value of `this` every + * time that `aCallback` is called. + * @param aOrder + * Either `SourceMapConsumer.GENERATED_ORDER` or + * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to + * iterate over the mappings sorted by the generated file's line/column + * order or the original's source/line/column order, respectively. Defaults to + * `SourceMapConsumer.GENERATED_ORDER`. */ -const shouldDebug = (0, util_1.yn)(exports.env.TS_NODE_DEBUG); -/** @internal */ -exports.debug = shouldDebug - ? (...args) => console.log(`[ts-node ${new Date().toISOString()}]`, ...args) - : () => undefined; -const debugFn = shouldDebug - ? (key, fn) => { - let i = 0; - return (x) => { - (0, exports.debug)(key, x, ++i); - return fn(x); - }; +SourceMapConsumer.prototype.eachMapping = + function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { + var context = aContext || null; + var order = aOrder || SourceMapConsumer.GENERATED_ORDER; + + var mappings; + switch (order) { + case SourceMapConsumer.GENERATED_ORDER: + mappings = this._generatedMappings; + break; + case SourceMapConsumer.ORIGINAL_ORDER: + mappings = this._originalMappings; + break; + default: + throw new Error("Unknown order of iteration."); } - : (_, fn) => fn; -/** - * Export the current version. - */ -exports.VERSION = __nccwpck_require__(46686).version; + + var sourceRoot = this.sourceRoot; + mappings.map(function (mapping) { + var source = mapping.source === null ? null : this._sources.at(mapping.source); + source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL); + return { + source: source, + generatedLine: mapping.generatedLine, + generatedColumn: mapping.generatedColumn, + originalLine: mapping.originalLine, + originalColumn: mapping.originalColumn, + name: mapping.name === null ? null : this._names.at(mapping.name) + }; + }, this).forEach(aCallback, context); + }; + /** - * Default register options, including values specified via environment - * variables. - * @internal - */ -exports.DEFAULTS = { - cwd: (_a = exports.env.TS_NODE_CWD) !== null && _a !== void 0 ? _a : exports.env.TS_NODE_DIR, - emit: (0, util_1.yn)(exports.env.TS_NODE_EMIT), - scope: (0, util_1.yn)(exports.env.TS_NODE_SCOPE), - scopeDir: exports.env.TS_NODE_SCOPE_DIR, - files: (0, util_1.yn)(exports.env.TS_NODE_FILES), - pretty: (0, util_1.yn)(exports.env.TS_NODE_PRETTY), - compiler: exports.env.TS_NODE_COMPILER, - compilerOptions: (0, util_1.parse)(exports.env.TS_NODE_COMPILER_OPTIONS), - ignore: (0, util_1.split)(exports.env.TS_NODE_IGNORE), - project: exports.env.TS_NODE_PROJECT, - skipProject: (0, util_1.yn)(exports.env.TS_NODE_SKIP_PROJECT), - skipIgnore: (0, util_1.yn)(exports.env.TS_NODE_SKIP_IGNORE), - preferTsExts: (0, util_1.yn)(exports.env.TS_NODE_PREFER_TS_EXTS), - ignoreDiagnostics: (0, util_1.split)(exports.env.TS_NODE_IGNORE_DIAGNOSTICS), - transpileOnly: (0, util_1.yn)(exports.env.TS_NODE_TRANSPILE_ONLY), - typeCheck: (0, util_1.yn)(exports.env.TS_NODE_TYPE_CHECK), - compilerHost: (0, util_1.yn)(exports.env.TS_NODE_COMPILER_HOST), - logError: (0, util_1.yn)(exports.env.TS_NODE_LOG_ERROR), - experimentalReplAwait: (_b = (0, util_1.yn)(exports.env.TS_NODE_EXPERIMENTAL_REPL_AWAIT)) !== null && _b !== void 0 ? _b : undefined, - tsTrace: console.log.bind(console), -}; -/** - * TypeScript diagnostics error. + * Returns all generated line and column information for the original source, + * line, and column provided. If no column is provided, returns all mappings + * corresponding to a either the line we are searching for or the next + * closest line that has any mappings. Otherwise, returns all mappings + * corresponding to the given line and either the column we are searching for + * or the next closest column that has any offsets. + * + * The only argument is an object with the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number is 1-based. + * - column: Optional. the column number in the original source. + * The column number is 0-based. + * + * and an array of objects is returned, each with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. */ -class TSError extends make_error_1.BaseError { - constructor(diagnosticText, diagnosticCodes, diagnostics = []) { - super(`⨯ Unable to compile TypeScript:\n${diagnosticText}`); - this.diagnosticCodes = diagnosticCodes; - this.name = 'TSError'; - Object.defineProperty(this, 'diagnosticText', { - configurable: true, - writable: true, - value: diagnosticText, - }); - Object.defineProperty(this, 'diagnostics', { - configurable: true, - writable: true, - value: diagnostics, - }); +SourceMapConsumer.prototype.allGeneratedPositionsFor = + function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { + var line = util.getArg(aArgs, 'line'); + + // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping + // returns the index of the closest mapping less than the needle. By + // setting needle.originalColumn to 0, we thus find the last mapping for + // the given line, provided such a mapping exists. + var needle = { + source: util.getArg(aArgs, 'source'), + originalLine: line, + originalColumn: util.getArg(aArgs, 'column', 0) + }; + + needle.source = this._findSourceIndex(needle.source); + if (needle.source < 0) { + return []; } - /** - * @internal - */ - [exports.INSPECT_CUSTOM]() { - return this.diagnosticText; + + var mappings = []; + + var index = this._findMapping(needle, + this._originalMappings, + "originalLine", + "originalColumn", + util.compareByOriginalPositions, + binarySearch.LEAST_UPPER_BOUND); + if (index >= 0) { + var mapping = this._originalMappings[index]; + + if (aArgs.column === undefined) { + var originalLine = mapping.originalLine; + + // Iterate until either we run out of mappings, or we run into + // a mapping for a different line than the one we found. Since + // mappings are sorted, this is guaranteed to find all mappings for + // the line we found. + while (mapping && mapping.originalLine === originalLine) { + mappings.push({ + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }); + + mapping = this._originalMappings[++index]; + } + } else { + var originalColumn = mapping.originalColumn; + + // Iterate until either we run out of mappings, or we run into + // a mapping for a different line than the one we were searching for. + // Since mappings are sorted, this is guaranteed to find all mappings for + // the line we are searching for. + while (mapping && + mapping.originalLine === line && + mapping.originalColumn == originalColumn) { + mappings.push({ + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }); + + mapping = this._originalMappings[++index]; + } + } } + + return mappings; + }; + +exports.SourceMapConsumer = SourceMapConsumer; + +/** + * A BasicSourceMapConsumer instance represents a parsed source map which we can + * query for information about the original file positions by giving it a file + * position in the generated source. + * + * The first parameter is the raw source map (either as a JSON string, or + * already parsed to an object). According to the spec, source maps have the + * following attributes: + * + * - version: Which version of the source map spec this map is following. + * - sources: An array of URLs to the original source files. + * - names: An array of identifiers which can be referrenced by individual mappings. + * - sourceRoot: Optional. The URL root from which all sources are relative. + * - sourcesContent: Optional. An array of contents of the original source files. + * - mappings: A string of base64 VLQs which contain the actual mappings. + * - file: Optional. The generated file this source map is associated with. + * + * Here is an example source map, taken from the source map spec[0]: + * + * { + * version : 3, + * file: "out.js", + * sourceRoot : "", + * sources: ["foo.js", "bar.js"], + * names: ["src", "maps", "are", "fun"], + * mappings: "AA,AB;;ABCDE;" + * } + * + * The second parameter, if given, is a string whose value is the URL + * at which the source map was found. This URL is used to compute the + * sources array. + * + * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# + */ +function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); + } + + var version = util.getArg(sourceMap, 'version'); + var sources = util.getArg(sourceMap, 'sources'); + // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which + // requires the array) to play nice here. + var names = util.getArg(sourceMap, 'names', []); + var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); + var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); + var mappings = util.getArg(sourceMap, 'mappings'); + var file = util.getArg(sourceMap, 'file', null); + + // Once again, Sass deviates from the spec and supplies the version as a + // string rather than a number, so we use loose equality checking here. + if (version != this._version) { + throw new Error('Unsupported version: ' + version); + } + + if (sourceRoot) { + sourceRoot = util.normalize(sourceRoot); + } + + sources = sources + .map(String) + // Some source maps produce relative source paths like "./foo.js" instead of + // "foo.js". Normalize these first so that future comparisons will succeed. + // See bugzil.la/1090768. + .map(util.normalize) + // Always ensure that absolute sources are internally stored relative to + // the source root, if the source root is absolute. Not doing this would + // be particularly problematic when the source root is a prefix of the + // source (valid, but why??). See github issue #199 and bugzil.la/1188982. + .map(function (source) { + return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) + ? util.relative(sourceRoot, source) + : source; + }); + + // Pass `true` below to allow duplicate names and sources. While source maps + // are intended to be compressed and deduplicated, the TypeScript compiler + // sometimes generates source maps with duplicates in them. See Github issue + // #72 and bugzil.la/889492. + this._names = ArraySet.fromArray(names.map(String), true); + this._sources = ArraySet.fromArray(sources, true); + + this._absoluteSources = this._sources.toArray().map(function (s) { + return util.computeSourceURL(sourceRoot, s, aSourceMapURL); + }); + + this.sourceRoot = sourceRoot; + this.sourcesContent = sourcesContent; + this._mappings = mappings; + this._sourceMapURL = aSourceMapURL; + this.file = file; } -exports.TSError = TSError; -const TS_NODE_SERVICE_BRAND = Symbol('TS_NODE_SERVICE_BRAND'); -function register(serviceOrOpts) { - // Is this a Service or a RegisterOptions? - let service = serviceOrOpts; - if (!(serviceOrOpts === null || serviceOrOpts === void 0 ? void 0 : serviceOrOpts[TS_NODE_SERVICE_BRAND])) { - // Not a service; is options - service = create((serviceOrOpts !== null && serviceOrOpts !== void 0 ? serviceOrOpts : {})); + +BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); +BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; + +/** + * Utility function to find the index of a source. Returns -1 if not + * found. + */ +BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) { + var relativeSource = aSource; + if (this.sourceRoot != null) { + relativeSource = util.relative(this.sourceRoot, relativeSource); + } + + if (this._sources.has(relativeSource)) { + return this._sources.indexOf(relativeSource); + } + + // Maybe aSource is an absolute URL as returned by |sources|. In + // this case we can't simply undo the transform. + var i; + for (i = 0; i < this._absoluteSources.length; ++i) { + if (this._absoluteSources[i] == aSource) { + return i; } - const originalJsHandler = require.extensions['.js']; - // Expose registered instance globally. - process[exports.REGISTER_INSTANCE] = service; - // Register the extensions. - registerExtensions(service.options.preferTsExts, service.extensions.compiled, service, originalJsHandler); - (0, cjs_resolve_hooks_1.installCommonjsResolveHooksIfNecessary)(service); - // Require specified modules before start-up. - module_1.Module._preloadModules(service.options.require); - return service; -} -exports.register = register; + } + + return -1; +}; + /** - * Create TypeScript compiler instance. + * Create a BasicSourceMapConsumer from a SourceMapGenerator. * - * @category Basic + * @param SourceMapGenerator aSourceMap + * The source map that will be consumed. + * @param String aSourceMapURL + * The URL at which the source map can be found (optional) + * @returns BasicSourceMapConsumer */ -function create(rawOptions = {}) { - const foundConfigResult = (0, configuration_1.findAndReadConfig)(rawOptions); - return createFromPreloadedConfig(foundConfigResult); +BasicSourceMapConsumer.fromSourceMap = + function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) { + var smc = Object.create(BasicSourceMapConsumer.prototype); + + var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); + var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); + smc.sourceRoot = aSourceMap._sourceRoot; + smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), + smc.sourceRoot); + smc.file = aSourceMap._file; + smc._sourceMapURL = aSourceMapURL; + smc._absoluteSources = smc._sources.toArray().map(function (s) { + return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); + }); + + // Because we are modifying the entries (by converting string sources and + // names to indices into the sources and names ArraySets), we have to make + // a copy of the entry or else bad things happen. Shared mutable state + // strikes again! See github issue #191. + + var generatedMappings = aSourceMap._mappings.toArray().slice(); + var destGeneratedMappings = smc.__generatedMappings = []; + var destOriginalMappings = smc.__originalMappings = []; + + for (var i = 0, length = generatedMappings.length; i < length; i++) { + var srcMapping = generatedMappings[i]; + var destMapping = new Mapping; + destMapping.generatedLine = srcMapping.generatedLine; + destMapping.generatedColumn = srcMapping.generatedColumn; + + if (srcMapping.source) { + destMapping.source = sources.indexOf(srcMapping.source); + destMapping.originalLine = srcMapping.originalLine; + destMapping.originalColumn = srcMapping.originalColumn; + + if (srcMapping.name) { + destMapping.name = names.indexOf(srcMapping.name); + } + + destOriginalMappings.push(destMapping); + } + + destGeneratedMappings.push(destMapping); + } + + quickSort(smc.__originalMappings, util.compareByOriginalPositions); + + return smc; + }; + +/** + * The version of the source mapping spec that we are consuming. + */ +BasicSourceMapConsumer.prototype._version = 3; + +/** + * The list of original sources. + */ +Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', { + get: function () { + return this._absoluteSources.slice(); + } +}); + +/** + * Provide the JIT with a nice shape / hidden class. + */ +function Mapping() { + this.generatedLine = 0; + this.generatedColumn = 0; + this.source = null; + this.originalLine = null; + this.originalColumn = null; + this.name = null; } -exports.create = create; -/** @internal */ -function createFromPreloadedConfig(foundConfigResult) { - var _a, _b, _c, _d; - const { configFilePath, cwd, options, config, compiler, projectLocalResolveDir, optionBasePaths, } = foundConfigResult; - const projectLocalResolveHelper = (0, util_1.createProjectLocalResolveHelper)(projectLocalResolveDir); - const ts = (0, configuration_1.loadCompiler)(compiler); - // Experimental REPL await is not compatible targets lower than ES2018 - const targetSupportsTla = config.options.target >= ts.ScriptTarget.ES2018; - if (options.experimentalReplAwait === true && !targetSupportsTla) { - throw new Error('Experimental REPL await is not compatible with targets lower than ES2018'); + +/** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ +BasicSourceMapConsumer.prototype._parseMappings = + function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { + var generatedLine = 1; + var previousGeneratedColumn = 0; + var previousOriginalLine = 0; + var previousOriginalColumn = 0; + var previousSource = 0; + var previousName = 0; + var length = aStr.length; + var index = 0; + var cachedSegments = {}; + var temp = {}; + var originalMappings = []; + var generatedMappings = []; + var mapping, str, segment, end, value; + + while (index < length) { + if (aStr.charAt(index) === ';') { + generatedLine++; + index++; + previousGeneratedColumn = 0; + } + else if (aStr.charAt(index) === ',') { + index++; + } + else { + mapping = new Mapping(); + mapping.generatedLine = generatedLine; + + // Because each offset is encoded relative to the previous one, + // many segments often have the same encoding. We can exploit this + // fact by caching the parsed variable length fields of each segment, + // allowing us to avoid a second parse if we encounter the same + // segment again. + for (end = index; end < length; end++) { + if (this._charIsMappingSeparator(aStr, end)) { + break; + } + } + str = aStr.slice(index, end); + + segment = cachedSegments[str]; + if (segment) { + index += str.length; + } else { + segment = []; + while (index < end) { + base64VLQ.decode(aStr, index, temp); + value = temp.value; + index = temp.rest; + segment.push(value); + } + + if (segment.length === 2) { + throw new Error('Found a source, but no line and column'); + } + + if (segment.length === 3) { + throw new Error('Found a source and line, but no column'); + } + + cachedSegments[str] = segment; + } + + // Generated column. + mapping.generatedColumn = previousGeneratedColumn + segment[0]; + previousGeneratedColumn = mapping.generatedColumn; + + if (segment.length > 1) { + // Original source. + mapping.source = previousSource + segment[1]; + previousSource += segment[1]; + + // Original line. + mapping.originalLine = previousOriginalLine + segment[2]; + previousOriginalLine = mapping.originalLine; + // Lines are stored 0-based + mapping.originalLine += 1; + + // Original column. + mapping.originalColumn = previousOriginalColumn + segment[3]; + previousOriginalColumn = mapping.originalColumn; + + if (segment.length > 4) { + // Original name. + mapping.name = previousName + segment[4]; + previousName += segment[4]; + } + } + + generatedMappings.push(mapping); + if (typeof mapping.originalLine === 'number') { + originalMappings.push(mapping); + } + } } - // Top-level await was added in TS 3.8 - const tsVersionSupportsTla = (0, util_1.versionGteLt)(ts.version, '3.8.0'); - if (options.experimentalReplAwait === true && !tsVersionSupportsTla) { - throw new Error('Experimental REPL await is not compatible with TypeScript versions older than 3.8'); + + quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); + this.__generatedMappings = generatedMappings; + + quickSort(originalMappings, util.compareByOriginalPositions); + this.__originalMappings = originalMappings; + }; + +/** + * Find the mapping that best matches the hypothetical "needle" mapping that + * we are searching for in the given "haystack" of mappings. + */ +BasicSourceMapConsumer.prototype._findMapping = + function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, + aColumnName, aComparator, aBias) { + // To return the position we are searching for, we must first find the + // mapping for the given position and then return the opposite position it + // points to. Because the mappings are sorted, we can use binary search to + // find the best mapping. + + if (aNeedle[aLineName] <= 0) { + throw new TypeError('Line must be greater than or equal to 1, got ' + + aNeedle[aLineName]); } - const shouldReplAwait = options.experimentalReplAwait !== false && - tsVersionSupportsTla && - targetSupportsTla; - // swc implies two other options - // typeCheck option was implemented specifically to allow overriding tsconfig transpileOnly from the command-line - // So we should allow using typeCheck to override swc - if (options.swc && !options.typeCheck) { - if (options.transpileOnly === false) { - throw new Error("Cannot enable 'swc' option with 'transpileOnly: false'. 'swc' implies 'transpileOnly'."); + if (aNeedle[aColumnName] < 0) { + throw new TypeError('Column must be greater than or equal to 0, got ' + + aNeedle[aColumnName]); + } + + return binarySearch.search(aNeedle, aMappings, aComparator, aBias); + }; + +/** + * Compute the last column for each generated mapping. The last column is + * inclusive. + */ +BasicSourceMapConsumer.prototype.computeColumnSpans = + function SourceMapConsumer_computeColumnSpans() { + for (var index = 0; index < this._generatedMappings.length; ++index) { + var mapping = this._generatedMappings[index]; + + // Mappings do not contain a field for the last generated columnt. We + // can come up with an optimistic estimate, however, by assuming that + // mappings are contiguous (i.e. given two consecutive mappings, the + // first mapping ends where the second one starts). + if (index + 1 < this._generatedMappings.length) { + var nextMapping = this._generatedMappings[index + 1]; + + if (mapping.generatedLine === nextMapping.generatedLine) { + mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; + continue; } - if (options.transpiler) { - throw new Error("Cannot specify both 'swc' and 'transpiler' options. 'swc' uses the built-in swc transpiler."); + } + + // The last mapping for each line spans the entire line. + mapping.lastGeneratedColumn = Infinity; + } + }; + +/** + * Returns the original source, line, and column information for the generated + * source's line and column positions provided. The only argument is an object + * with the following properties: + * + * - line: The line number in the generated source. The line number + * is 1-based. + * - column: The column number in the generated source. The column + * number is 0-based. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - source: The original source file, or null. + * - line: The line number in the original source, or null. The + * line number is 1-based. + * - column: The column number in the original source, or null. The + * column number is 0-based. + * - name: The original identifier, or null. + */ +BasicSourceMapConsumer.prototype.originalPositionFor = + function SourceMapConsumer_originalPositionFor(aArgs) { + var needle = { + generatedLine: util.getArg(aArgs, 'line'), + generatedColumn: util.getArg(aArgs, 'column') + }; + + var index = this._findMapping( + needle, + this._generatedMappings, + "generatedLine", + "generatedColumn", + util.compareByGeneratedPositionsDeflated, + util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) + ); + + if (index >= 0) { + var mapping = this._generatedMappings[index]; + + if (mapping.generatedLine === needle.generatedLine) { + var source = util.getArg(mapping, 'source', null); + if (source !== null) { + source = this._sources.at(source); + source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL); + } + var name = util.getArg(mapping, 'name', null); + if (name !== null) { + name = this._names.at(name); } + return { + source: source, + line: util.getArg(mapping, 'originalLine', null), + column: util.getArg(mapping, 'originalColumn', null), + name: name + }; + } } - const readFile = options.readFile || ts.sys.readFile; - const fileExists = options.fileExists || ts.sys.fileExists; - // typeCheck can override transpileOnly, useful for CLI flag to override config file - const transpileOnly = (options.transpileOnly === true || options.swc === true) && - options.typeCheck !== true; - let transpiler = undefined; - let transpilerBasePath = undefined; - if (options.transpiler) { - transpiler = options.transpiler; - transpilerBasePath = optionBasePaths.transpiler; + + return { + source: null, + line: null, + column: null, + name: null + }; + }; + +/** + * Return true if we have the source content for every source in the source + * map, false otherwise. + */ +BasicSourceMapConsumer.prototype.hasContentsOfAllSources = + function BasicSourceMapConsumer_hasContentsOfAllSources() { + if (!this.sourcesContent) { + return false; } - else if (options.swc) { - transpiler = __nccwpck_require__.ab + "swc.js"; - transpilerBasePath = optionBasePaths.swc; + return this.sourcesContent.length >= this._sources.size() && + !this.sourcesContent.some(function (sc) { return sc == null; }); + }; + +/** + * Returns the original source content. The only argument is the url of the + * original source file. Returns null if no original source content is + * available. + */ +BasicSourceMapConsumer.prototype.sourceContentFor = + function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { + if (!this.sourcesContent) { + return null; } - const transformers = options.transformers || undefined; - const diagnosticFilters = [ - { - appliesToAllFiles: true, - filenamesAbsolute: [], - diagnosticsIgnored: [ - 6059, - 18002, - 18003, - ...(options.experimentalTsImportSpecifiers - ? [ - 2691, // "An import path cannot end with a '.ts' extension. Consider importing '' instead." - ] - : []), - ...(options.ignoreDiagnostics || []), - ].map(Number), - }, - ]; - const configDiagnosticList = filterDiagnostics(config.errors, diagnosticFilters); - const outputCache = new Map(); - const configFileDirname = configFilePath ? (0, path_1.dirname)(configFilePath) : null; - const scopeDir = (_c = (_b = (_a = options.scopeDir) !== null && _a !== void 0 ? _a : config.options.rootDir) !== null && _b !== void 0 ? _b : configFileDirname) !== null && _c !== void 0 ? _c : cwd; - const ignoreBaseDir = configFileDirname !== null && configFileDirname !== void 0 ? configFileDirname : cwd; - const isScoped = options.scope - ? (fileName) => (0, path_1.relative)(scopeDir, fileName).charAt(0) !== '.' - : () => true; - const shouldIgnore = createIgnore(ignoreBaseDir, options.skipIgnore - ? [] - : (options.ignore || ['(?:^|/)node_modules/']).map((str) => new RegExp(str))); - const diagnosticHost = { - getNewLine: () => ts.sys.newLine, - getCurrentDirectory: () => cwd, - // TODO switch to getCanonicalFileName we already create later in scope - getCanonicalFileName: ts.sys.useCaseSensitiveFileNames - ? (x) => x - : (x) => x.toLowerCase(), - }; - if (options.transpileOnly && typeof transformers === 'function') { - throw new TypeError('Transformers function is unavailable in "--transpile-only"'); + + var index = this._findSourceIndex(aSource); + if (index >= 0) { + return this.sourcesContent[index]; } - let createTranspiler = initializeTranspilerFactory(); - function initializeTranspilerFactory() { - var _a; - if (__nccwpck_require__.ab + "swc.js") { - if (!transpileOnly) - throw new Error('Custom transpiler can only be used when transpileOnly is enabled.'); - const transpilerName = typeof transpiler === 'string' ? transpiler : transpiler[0]; - const transpilerOptions = typeof transpiler === 'string' ? {} : (_a = transpiler[1]) !== null && _a !== void 0 ? _a : {}; - const transpilerConfigLocalResolveHelper = transpilerBasePath - ? (0, util_1.createProjectLocalResolveHelper)(transpilerBasePath) - : projectLocalResolveHelper; - const transpilerPath = transpilerConfigLocalResolveHelper(transpilerName, true); - const transpilerFactory = __nccwpck_require__(3833)(transpilerPath) - .create; - return createTranspiler; - function createTranspiler(compilerOptions, nodeModuleEmitKind) { - return transpilerFactory === null || transpilerFactory === void 0 ? void 0 : transpilerFactory({ - service: { - options, - config: { - ...config, - options: compilerOptions, - }, - projectLocalResolveHelper, - }, - transpilerConfigLocalResolveHelper, - nodeModuleEmitKind, - ...transpilerOptions, - }); - } - } + + var relativeSource = aSource; + if (this.sourceRoot != null) { + relativeSource = util.relative(this.sourceRoot, relativeSource); } - /** - * True if require() hooks should interop with experimental ESM loader. - * Enabled explicitly via a flag since it is a breaking change. - */ - let experimentalEsmLoader = false; - function enableExperimentalEsmLoaderInterop() { - experimentalEsmLoader = true; + + var url; + if (this.sourceRoot != null + && (url = util.urlParse(this.sourceRoot))) { + // XXX: file:// URIs and absolute paths lead to unexpected behavior for + // many users. We can help them out when they expect file:// URIs to + // behave like it would if they were running a local HTTP server. See + // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. + var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); + if (url.scheme == "file" + && this._sources.has(fileUriAbsPath)) { + return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] + } + + if ((!url.path || url.path == "/") + && this._sources.has("/" + relativeSource)) { + return this.sourcesContent[this._sources.indexOf("/" + relativeSource)]; + } } - // Install source map support and read from memory cache. - installSourceMapSupport(); - function installSourceMapSupport() { - const sourceMapSupport = __nccwpck_require__(99964); - sourceMapSupport.install({ - environment: 'node', - retrieveFile(pathOrUrl) { - var _a; - let path = pathOrUrl; - // If it's a file URL, convert to local path - // Note: fileURLToPath does not exist on early node v10 - // I could not find a way to handle non-URLs except to swallow an error - if (experimentalEsmLoader && path.startsWith('file://')) { - try { - path = (0, url_1.fileURLToPath)(path); - } - catch (e) { - /* swallow error */ - } - } - path = (0, util_1.normalizeSlashes)(path); - return ((_a = outputCache.get(path)) === null || _a === void 0 ? void 0 : _a.content) || ''; - }, - redirectConflictingLibrary: true, - onConflictingLibraryRedirect(request, parent, isMain, options, redirectedRequest) { - (0, exports.debug)(`Redirected an attempt to require source-map-support to instead receive @cspotcode/source-map-support. "${parent.filename}" attempted to require or resolve "${request}" and was redirected to "${redirectedRequest}".`); - }, - }); + + // This function is used recursively from + // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we + // don't want to throw if we can't find the source - we just want to + // return null, so we provide a flag to exit gracefully. + if (nullOnMissing) { + return null; } - const shouldHavePrettyErrors = options.pretty === undefined ? process.stdout.isTTY : options.pretty; - const formatDiagnostics = shouldHavePrettyErrors - ? ts.formatDiagnosticsWithColorAndContext || ts.formatDiagnostics - : ts.formatDiagnostics; - function createTSError(diagnostics) { - const diagnosticText = formatDiagnostics(diagnostics, diagnosticHost); - const diagnosticCodes = diagnostics.map((x) => x.code); - return new TSError(diagnosticText, diagnosticCodes, diagnostics); + else { + throw new Error('"' + relativeSource + '" is not in the SourceMap.'); } - function reportTSError(configDiagnosticList) { - const error = createTSError(configDiagnosticList); - if (options.logError) { - // Print error in red color and continue execution. - console.error('\x1b[31m%s\x1b[0m', error); - } - else { - // Throw error and exit the script. - throw error; - } + }; + +/** + * Returns the generated line and column information for the original source, + * line, and column positions provided. The only argument is an object with + * the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number + * is 1-based. + * - column: The column number in the original source. The column + * number is 0-based. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ +BasicSourceMapConsumer.prototype.generatedPositionFor = + function SourceMapConsumer_generatedPositionFor(aArgs) { + var source = util.getArg(aArgs, 'source'); + source = this._findSourceIndex(source); + if (source < 0) { + return { + line: null, + column: null, + lastColumn: null + }; } - // Render the configuration errors. - if (configDiagnosticList.length) - reportTSError(configDiagnosticList); - const jsxEmitPreserve = config.options.jsx === ts.JsxEmit.Preserve; - /** - * Get the extension for a transpiled file. - * [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS] - */ - function getEmitExtension(path) { - const lastDotIndex = path.lastIndexOf('.'); - if (lastDotIndex >= 0) { - const ext = path.slice(lastDotIndex); - switch (ext) { - case '.js': - case '.ts': - return '.js'; - case '.jsx': - case '.tsx': - return jsxEmitPreserve ? '.jsx' : '.js'; - case '.mjs': - case '.mts': - return '.mjs'; - case '.cjs': - case '.cts': - return '.cjs'; - } - } - return '.js'; + + var needle = { + source: source, + originalLine: util.getArg(aArgs, 'line'), + originalColumn: util.getArg(aArgs, 'column') + }; + + var index = this._findMapping( + needle, + this._originalMappings, + "originalLine", + "originalColumn", + util.compareByOriginalPositions, + util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) + ); + + if (index >= 0) { + var mapping = this._originalMappings[index]; + + if (mapping.source === needle.source) { + return { + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }; + } } - /** - * Get output from TS compiler w/typechecking. `undefined` in `transpileOnly` - * mode. - */ - let getOutput; - let getTypeInfo; - const getCanonicalFileName = ts.createGetCanonicalFileName(ts.sys.useCaseSensitiveFileNames); - const moduleTypeClassifier = (0, module_type_classifier_1.createModuleTypeClassifier)({ - basePath: (_d = options.optionBasePaths) === null || _d === void 0 ? void 0 : _d.moduleTypes, - patterns: options.moduleTypes, - }); - const extensions = (0, file_extensions_1.getExtensions)(config, options, ts.version); - // Use full language services when the fast option is disabled. - if (!transpileOnly) { - const fileContents = new Map(); - const rootFileNames = new Set(config.fileNames); - const cachedReadFile = (0, util_1.cachedLookup)(debugFn('readFile', readFile)); - // Use language services by default - if (!options.compilerHost) { - let projectVersion = 1; - const fileVersions = new Map(Array.from(rootFileNames).map((fileName) => [fileName, 0])); - const getCustomTransformers = () => { - if (typeof transformers === 'function') { - const program = service.getProgram(); - return program ? transformers(program) : undefined; - } - return transformers; - }; - // Create the compiler host for type checking. - const serviceHost = { - getProjectVersion: () => String(projectVersion), - getScriptFileNames: () => Array.from(rootFileNames), - getScriptVersion: (fileName) => { - const version = fileVersions.get(fileName); - return version ? version.toString() : ''; - }, - getScriptSnapshot(fileName) { - // TODO ordering of this with getScriptVersion? Should they sync up? - let contents = fileContents.get(fileName); - // Read contents into TypeScript memory cache. - if (contents === undefined) { - contents = cachedReadFile(fileName); - if (contents === undefined) - return; - fileVersions.set(fileName, 1); - fileContents.set(fileName, contents); - projectVersion++; - } - return ts.ScriptSnapshot.fromString(contents); - }, - readFile: cachedReadFile, - readDirectory: ts.sys.readDirectory, - getDirectories: (0, util_1.cachedLookup)(debugFn('getDirectories', ts.sys.getDirectories)), - fileExists: (0, util_1.cachedLookup)(debugFn('fileExists', fileExists)), - directoryExists: (0, util_1.cachedLookup)(debugFn('directoryExists', ts.sys.directoryExists)), - realpath: ts.sys.realpath - ? (0, util_1.cachedLookup)(debugFn('realpath', ts.sys.realpath)) - : undefined, - getNewLine: () => ts.sys.newLine, - useCaseSensitiveFileNames: () => ts.sys.useCaseSensitiveFileNames, - getCurrentDirectory: () => cwd, - getCompilationSettings: () => config.options, - getDefaultLibFileName: () => ts.getDefaultLibFilePath(config.options), - getCustomTransformers: getCustomTransformers, - trace: options.tsTrace, - }; - const { resolveModuleNames, getResolvedModuleWithFailedLookupLocationsFromCache, resolveTypeReferenceDirectives, isFileKnownToBeInternal, markBucketOfFilenameInternal, } = (0, resolver_functions_1.createResolverFunctions)({ - host: serviceHost, - getCanonicalFileName, - ts, - cwd, - config, - projectLocalResolveHelper, - options, - extensions, - }); - serviceHost.resolveModuleNames = resolveModuleNames; - serviceHost.getResolvedModuleWithFailedLookupLocationsFromCache = - getResolvedModuleWithFailedLookupLocationsFromCache; - serviceHost.resolveTypeReferenceDirectives = - resolveTypeReferenceDirectives; - const registry = ts.createDocumentRegistry(ts.sys.useCaseSensitiveFileNames, cwd); - const service = ts.createLanguageService(serviceHost, registry); - const updateMemoryCache = (contents, fileName) => { - // Add to `rootFiles` as necessary, either to make TS include a file it has not seen, - // or to trigger a re-classification of files from external to internal. - if (!rootFileNames.has(fileName) && - !isFileKnownToBeInternal(fileName)) { - markBucketOfFilenameInternal(fileName); - rootFileNames.add(fileName); - // Increment project version for every change to rootFileNames. - projectVersion++; - } - const previousVersion = fileVersions.get(fileName) || 0; - const previousContents = fileContents.get(fileName); - // Avoid incrementing cache when nothing has changed. - if (contents !== previousContents) { - fileVersions.set(fileName, previousVersion + 1); - fileContents.set(fileName, contents); - // Increment project version for every file change. - projectVersion++; - } - }; - let previousProgram = undefined; - getOutput = (code, fileName) => { - updateMemoryCache(code, fileName); - const programBefore = service.getProgram(); - if (programBefore !== previousProgram) { - (0, exports.debug)(`compiler rebuilt Program instance when getting output for ${fileName}`); - } - const output = service.getEmitOutput(fileName); - // Get the relevant diagnostics - this is 3x faster than `getPreEmitDiagnostics`. - const diagnostics = service - .getSemanticDiagnostics(fileName) - .concat(service.getSyntacticDiagnostics(fileName)); - const programAfter = service.getProgram(); - (0, exports.debug)('invariant: Is service.getProject() identical before and after getting emit output and diagnostics? (should always be true) ', programBefore === programAfter); - previousProgram = programAfter; - const diagnosticList = filterDiagnostics(diagnostics, diagnosticFilters); - if (diagnosticList.length) - reportTSError(diagnosticList); - if (output.emitSkipped) { - return [undefined, undefined, true]; - } - // Throw an error when requiring `.d.ts` files. - if (output.outputFiles.length === 0) { - throw new TypeError(`Unable to require file: ${(0, path_1.relative)(cwd, fileName)}\n` + - 'This is usually the result of a faulty configuration or import. ' + - 'Make sure there is a `.js`, `.json` or other executable extension with ' + - 'loader attached before `ts-node` available.'); - } - return [output.outputFiles[1].text, output.outputFiles[0].text, false]; - }; - getTypeInfo = (code, fileName, position) => { - const normalizedFileName = (0, util_1.normalizeSlashes)(fileName); - updateMemoryCache(code, normalizedFileName); - const info = service.getQuickInfoAtPosition(normalizedFileName, position); - const name = ts.displayPartsToString(info ? info.displayParts : []); - const comment = ts.displayPartsToString(info ? info.documentation : []); - return { name, comment }; - }; - } - else { - const sys = { - ...ts.sys, - ...diagnosticHost, - readFile: (fileName) => { - const cacheContents = fileContents.get(fileName); - if (cacheContents !== undefined) - return cacheContents; - const contents = cachedReadFile(fileName); - if (contents) - fileContents.set(fileName, contents); - return contents; - }, - readDirectory: ts.sys.readDirectory, - getDirectories: (0, util_1.cachedLookup)(debugFn('getDirectories', ts.sys.getDirectories)), - fileExists: (0, util_1.cachedLookup)(debugFn('fileExists', fileExists)), - directoryExists: (0, util_1.cachedLookup)(debugFn('directoryExists', ts.sys.directoryExists)), - resolvePath: (0, util_1.cachedLookup)(debugFn('resolvePath', ts.sys.resolvePath)), - realpath: ts.sys.realpath - ? (0, util_1.cachedLookup)(debugFn('realpath', ts.sys.realpath)) - : undefined, - }; - const host = ts.createIncrementalCompilerHost - ? ts.createIncrementalCompilerHost(config.options, sys) - : { - ...sys, - getSourceFile: (fileName, languageVersion) => { - const contents = sys.readFile(fileName); - if (contents === undefined) - return; - return ts.createSourceFile(fileName, contents, languageVersion); - }, - getDefaultLibLocation: () => (0, util_1.normalizeSlashes)((0, path_1.dirname)(compiler)), - getDefaultLibFileName: () => (0, util_1.normalizeSlashes)((0, path_1.join)((0, path_1.dirname)(compiler), ts.getDefaultLibFileName(config.options))), - useCaseSensitiveFileNames: () => sys.useCaseSensitiveFileNames, - }; - host.trace = options.tsTrace; - const { resolveModuleNames, resolveTypeReferenceDirectives, isFileKnownToBeInternal, markBucketOfFilenameInternal, } = (0, resolver_functions_1.createResolverFunctions)({ - host, - cwd, - config, - ts, - getCanonicalFileName, - projectLocalResolveHelper, - options, - extensions, - }); - host.resolveModuleNames = resolveModuleNames; - host.resolveTypeReferenceDirectives = resolveTypeReferenceDirectives; - // Fallback for older TypeScript releases without incremental API. - let builderProgram = ts.createIncrementalProgram - ? ts.createIncrementalProgram({ - rootNames: Array.from(rootFileNames), - options: config.options, - host, - configFileParsingDiagnostics: config.errors, - projectReferences: config.projectReferences, - }) - : ts.createEmitAndSemanticDiagnosticsBuilderProgram(Array.from(rootFileNames), config.options, host, undefined, config.errors, config.projectReferences); - // Read and cache custom transformers. - const customTransformers = typeof transformers === 'function' - ? transformers(builderProgram.getProgram()) - : transformers; - // Set the file contents into cache manually. - const updateMemoryCache = (contents, fileName) => { - const previousContents = fileContents.get(fileName); - const contentsChanged = previousContents !== contents; - if (contentsChanged) { - fileContents.set(fileName, contents); - } - // Add to `rootFiles` when discovered by compiler for the first time. - let addedToRootFileNames = false; - if (!rootFileNames.has(fileName) && - !isFileKnownToBeInternal(fileName)) { - markBucketOfFilenameInternal(fileName); - rootFileNames.add(fileName); - addedToRootFileNames = true; - } - // Update program when file changes. - if (addedToRootFileNames || contentsChanged) { - builderProgram = ts.createEmitAndSemanticDiagnosticsBuilderProgram(Array.from(rootFileNames), config.options, host, builderProgram, config.errors, config.projectReferences); - } - }; - getOutput = (code, fileName) => { - let outText = ''; - let outMap = ''; - updateMemoryCache(code, fileName); - const sourceFile = builderProgram.getSourceFile(fileName); - if (!sourceFile) - throw new TypeError(`Unable to read file: ${fileName}`); - const program = builderProgram.getProgram(); - const diagnostics = ts.getPreEmitDiagnostics(program, sourceFile); - const diagnosticList = filterDiagnostics(diagnostics, diagnosticFilters); - if (diagnosticList.length) - reportTSError(diagnosticList); - const result = builderProgram.emit(sourceFile, (path, file, writeByteOrderMark) => { - if (path.endsWith('.map')) { - outMap = file; - } - else { - outText = file; - } - if (options.emit) - sys.writeFile(path, file, writeByteOrderMark); - }, undefined, undefined, customTransformers); - if (result.emitSkipped) { - return [undefined, undefined, true]; - } - // Throw an error when requiring files that cannot be compiled. - if (outText === '') { - if (program.isSourceFileFromExternalLibrary(sourceFile)) { - throw new TypeError(`Unable to compile file from external library: ${(0, path_1.relative)(cwd, fileName)}`); - } - throw new TypeError(`Unable to require file: ${(0, path_1.relative)(cwd, fileName)}\n` + - 'This is usually the result of a faulty configuration or import. ' + - 'Make sure there is a `.js`, `.json` or other executable extension with ' + - 'loader attached before `ts-node` available.'); - } - return [outText, outMap, false]; - }; - getTypeInfo = (code, fileName, position) => { - const normalizedFileName = (0, util_1.normalizeSlashes)(fileName); - updateMemoryCache(code, normalizedFileName); - const sourceFile = builderProgram.getSourceFile(normalizedFileName); - if (!sourceFile) - throw new TypeError(`Unable to read file: ${fileName}`); - const node = getTokenAtPosition(ts, sourceFile, position); - const checker = builderProgram.getProgram().getTypeChecker(); - const symbol = checker.getSymbolAtLocation(node); - if (!symbol) - return { name: '', comment: '' }; - const type = checker.getTypeOfSymbolAtLocation(symbol, node); - const signatures = [ - ...type.getConstructSignatures(), - ...type.getCallSignatures(), - ]; - return { - name: signatures.length - ? signatures.map((x) => checker.signatureToString(x)).join('\n') - : checker.typeToString(type), - comment: ts.displayPartsToString(symbol ? symbol.getDocumentationComment(checker) : []), - }; - }; - // Write `.tsbuildinfo` when `--build` is enabled. - if (options.emit && config.options.incremental) { - process.on('exit', () => { - // Emits `.tsbuildinfo` to filesystem. - builderProgram.getProgram().emitBuildInfo(); - }); - } - } - } - else { - getTypeInfo = () => { - throw new TypeError('Type information is unavailable in "--transpile-only"'); - }; - } - function createTranspileOnlyGetOutputFunction(overrideModuleType, nodeModuleEmitKind) { - const compilerOptions = { ...config.options }; - if (overrideModuleType !== undefined) - compilerOptions.module = overrideModuleType; - let customTranspiler = createTranspiler === null || createTranspiler === void 0 ? void 0 : createTranspiler(compilerOptions, nodeModuleEmitKind); - let tsTranspileModule = (0, util_1.versionGteLt)(ts.version, '4.7.0') - ? (0, ts_transpile_module_1.createTsTranspileModule)(ts, { - compilerOptions, - reportDiagnostics: true, - transformers: transformers, - }) - : undefined; - return (code, fileName) => { - let result; - if (customTranspiler) { - result = customTranspiler.transpile(code, { - fileName, - }); - } - else if (tsTranspileModule) { - result = tsTranspileModule(code, { - fileName, - }, nodeModuleEmitKind === 'nodeesm' ? 'module' : 'commonjs'); - } - else { - result = ts.transpileModule(code, { - fileName, - compilerOptions, - reportDiagnostics: true, - transformers: transformers, - }); - } - const diagnosticList = filterDiagnostics(result.diagnostics || [], diagnosticFilters); - if (diagnosticList.length) - reportTSError(diagnosticList); - return [result.outputText, result.sourceMapText, false]; - }; - } - // When true, these mean that a `moduleType` override will cause a different emit - // than the TypeScript compiler, so we *must* overwrite the emit. - const shouldOverwriteEmitWhenForcingCommonJS = config.options.module !== ts.ModuleKind.CommonJS; - // [MUST_UPDATE_FOR_NEW_MODULEKIND] - const shouldOverwriteEmitWhenForcingEsm = !(config.options.module === ts.ModuleKind.ES2015 || - (ts.ModuleKind.ES2020 && config.options.module === ts.ModuleKind.ES2020) || - (ts.ModuleKind.ES2022 && config.options.module === ts.ModuleKind.ES2022) || - config.options.module === ts.ModuleKind.ESNext); - /** - * node16 or nodenext - * [MUST_UPDATE_FOR_NEW_MODULEKIND] - */ - const isNodeModuleType = (ts.ModuleKind.Node16 && config.options.module === ts.ModuleKind.Node16) || - (ts.ModuleKind.NodeNext && - config.options.module === ts.ModuleKind.NodeNext); - const getOutputForceCommonJS = createTranspileOnlyGetOutputFunction(ts.ModuleKind.CommonJS); - const getOutputForceNodeCommonJS = createTranspileOnlyGetOutputFunction(ts.ModuleKind.NodeNext, 'nodecjs'); - const getOutputForceNodeESM = createTranspileOnlyGetOutputFunction(ts.ModuleKind.NodeNext, 'nodeesm'); - // [MUST_UPDATE_FOR_NEW_MODULEKIND] - const getOutputForceESM = createTranspileOnlyGetOutputFunction(ts.ModuleKind.ES2022 || ts.ModuleKind.ES2020 || ts.ModuleKind.ES2015); - const getOutputTranspileOnly = createTranspileOnlyGetOutputFunction(); - // Create a simple TypeScript compiler proxy. - function compile(code, fileName, lineOffset = 0) { - const normalizedFileName = (0, util_1.normalizeSlashes)(fileName); - const classification = moduleTypeClassifier.classifyModuleByModuleTypeOverrides(normalizedFileName); - let value = ''; - let sourceMap = ''; - let emitSkipped = true; - if (getOutput) { - // Must always call normal getOutput to throw typechecking errors - [value, sourceMap, emitSkipped] = getOutput(code, normalizedFileName); - } - // If module classification contradicts the above, call the relevant transpiler - if (classification.moduleType === 'cjs' && - (shouldOverwriteEmitWhenForcingCommonJS || emitSkipped)) { - [value, sourceMap] = getOutputForceCommonJS(code, normalizedFileName); - } - else if (classification.moduleType === 'esm' && - (shouldOverwriteEmitWhenForcingEsm || emitSkipped)) { - [value, sourceMap] = getOutputForceESM(code, normalizedFileName); - } - else if (emitSkipped) { - // Happens when ts compiler skips emit or in transpileOnly mode - const classification = (0, node_module_type_classifier_1.classifyModule)(fileName, isNodeModuleType); - [value, sourceMap] = - classification === 'nodecjs' - ? getOutputForceNodeCommonJS(code, normalizedFileName) - : classification === 'nodeesm' - ? getOutputForceNodeESM(code, normalizedFileName) - : classification === 'cjs' - ? getOutputForceCommonJS(code, normalizedFileName) - : classification === 'esm' - ? getOutputForceESM(code, normalizedFileName) - : getOutputTranspileOnly(code, normalizedFileName); - } - const output = updateOutput(value, normalizedFileName, sourceMap, getEmitExtension); - outputCache.set(normalizedFileName, { content: output }); - return output; - } - let active = true; - const enabled = (enabled) => enabled === undefined ? active : (active = !!enabled); - const ignored = (fileName) => { - if (!active) - return true; - const ext = (0, path_1.extname)(fileName); - if (extensions.compiled.includes(ext)) { - return !isScoped(fileName) || shouldIgnore(fileName); - } - return true; - }; - function addDiagnosticFilter(filter) { - diagnosticFilters.push({ - ...filter, - filenamesAbsolute: filter.filenamesAbsolute.map((f) => (0, util_1.normalizeSlashes)(f)), - }); - } - const getNodeEsmResolver = (0, util_1.once)(() => (__nccwpck_require__(67968).createResolve)({ - extensions, - preferTsExts: options.preferTsExts, - tsNodeExperimentalSpecifierResolution: options.experimentalSpecifierResolution, - })); - const getNodeEsmGetFormat = (0, util_1.once)(() => (__nccwpck_require__(37207).createGetFormat)(options.experimentalSpecifierResolution, getNodeEsmResolver())); - const getNodeCjsLoader = (0, util_1.once)(() => (__nccwpck_require__(51633).createCjsLoader)({ - extensions, - preferTsExts: options.preferTsExts, - nodeEsmResolver: getNodeEsmResolver(), - })); + return { - [TS_NODE_SERVICE_BRAND]: true, - ts, - compilerPath: compiler, - config, - compile, - getTypeInfo, - ignored, - enabled, - options, - configFilePath, - moduleTypeClassifier, - shouldReplAwait, - addDiagnosticFilter, - installSourceMapSupport, - enableExperimentalEsmLoaderInterop, - transpileOnly, - projectLocalResolveHelper, - getNodeEsmResolver, - getNodeEsmGetFormat, - getNodeCjsLoader, - extensions, - }; -} -exports.createFromPreloadedConfig = createFromPreloadedConfig; -/** - * Check if the filename should be ignored. - */ -function createIgnore(ignoreBaseDir, ignore) { - return (fileName) => { - const relname = (0, path_1.relative)(ignoreBaseDir, fileName); - const path = (0, util_1.normalizeSlashes)(relname); - return ignore.some((x) => x.test(path)); + line: null, + column: null, + lastColumn: null }; -} + }; + +__webpack_unused_export__ = BasicSourceMapConsumer; + /** - * Register the extensions to support when importing files. + * An IndexedSourceMapConsumer instance represents a parsed source map which + * we can query for information. It differs from BasicSourceMapConsumer in + * that it takes "indexed" source maps (i.e. ones with a "sections" field) as + * input. + * + * The first parameter is a raw source map (either as a JSON string, or already + * parsed to an object). According to the spec for indexed source maps, they + * have the following attributes: + * + * - version: Which version of the source map spec this map is following. + * - file: Optional. The generated file this source map is associated with. + * - sections: A list of section definitions. + * + * Each value under the "sections" field has two fields: + * - offset: The offset into the original specified at which this section + * begins to apply, defined as an object with a "line" and "column" + * field. + * - map: A source map definition. This source map could also be indexed, + * but doesn't have to be. + * + * Instead of the "map" field, it's also possible to have a "url" field + * specifying a URL to retrieve a source map from, but that's currently + * unsupported. + * + * Here's an example source map, taken from the source map spec[0], but + * modified to omit a section which uses the "url" field. + * + * { + * version : 3, + * file: "app.js", + * sections: [{ + * offset: {line:100, column:10}, + * map: { + * version : 3, + * file: "section.js", + * sources: ["foo.js", "bar.js"], + * names: ["src", "maps", "are", "fun"], + * mappings: "AAAA,E;;ABCDE;" + * } + * }], + * } + * + * The second parameter, if given, is a string whose value is the URL + * at which the source map was found. This URL is used to compute the + * sources array. + * + * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt */ -function registerExtensions(preferTsExts, extensions, service, originalJsHandler) { - const exts = new Set(extensions); - // Can't add these extensions cuz would allow omitting file extension; node requires ext for .cjs and .mjs - // Unless they're already registered by something else (nyc does this): - // then we *must* hook them or else our transformer will not be called. - for (const cannotAdd of ['.mts', '.cts', '.mjs', '.cjs']) { - if (exts.has(cannotAdd) && !(0, util_1.hasOwnProperty)(require.extensions, cannotAdd)) { - // Unrecognized file exts can be transformed via the `.js` handler. - exts.add('.js'); - exts.delete(cannotAdd); - } +function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); + } + + var version = util.getArg(sourceMap, 'version'); + var sections = util.getArg(sourceMap, 'sections'); + + if (version != this._version) { + throw new Error('Unsupported version: ' + version); + } + + this._sources = new ArraySet(); + this._names = new ArraySet(); + + var lastOffset = { + line: -1, + column: 0 + }; + this._sections = sections.map(function (s) { + if (s.url) { + // The url field will require support for asynchronicity. + // See https://github.com/mozilla/source-map/issues/16 + throw new Error('Support for url field in sections not implemented.'); } - // Register new extensions. - for (const ext of exts) { - registerExtension(ext, service, originalJsHandler); + var offset = util.getArg(s, 'offset'); + var offsetLine = util.getArg(offset, 'line'); + var offsetColumn = util.getArg(offset, 'column'); + + if (offsetLine < lastOffset.line || + (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) { + throw new Error('Section offsets must be ordered and non-overlapping.'); } - if (preferTsExts) { - const preferredExtensions = new Set([ - ...exts, - ...Object.keys(require.extensions), - ]); - // Re-sort iteration order of Object.keys() - for (const ext of preferredExtensions) { - const old = Object.getOwnPropertyDescriptor(require.extensions, ext); - delete require.extensions[ext]; - Object.defineProperty(require.extensions, ext, old); - } + lastOffset = offset; + + return { + generatedOffset: { + // The offset fields are 0-based, but we use 1-based indices when + // encoding/decoding from VLQ. + generatedLine: offsetLine + 1, + generatedColumn: offsetColumn + 1 + }, + consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL) } + }); } + +IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); +IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; + /** - * Register the extension for node. + * The version of the source mapping spec that we are consuming. */ -function registerExtension(ext, service, originalHandler) { - const old = require.extensions[ext] || originalHandler; - require.extensions[ext] = function (m, filename) { - if (service.ignored(filename)) - return old(m, filename); - assertScriptCanLoadAsCJS(service, m, filename); - const _compile = m._compile; - m._compile = function (code, fileName) { - (0, exports.debug)('module._compile', fileName); - const result = service.compile(code, fileName); - return _compile.call(this, result, fileName); - }; - return old(m, filename); - }; -} +IndexedSourceMapConsumer.prototype._version = 3; + /** - * Update the output remapping the source map. + * The list of original sources. */ -function updateOutput(outputText, fileName, sourceMap, getEmitExtension) { - const base64Map = Buffer.from(updateSourceMap(sourceMap, fileName), 'utf8').toString('base64'); - const sourceMapContent = `//# sourceMappingURL=data:application/json;charset=utf-8;base64,${base64Map}`; - // Expected form: `//# sourceMappingURL=foo bar.js.map` or `//# sourceMappingURL=foo%20bar.js.map` for input file "foo bar.tsx" - // Percent-encoding behavior added in TS 4.1.1: https://github.com/microsoft/TypeScript/issues/40951 - const prefix = '//# sourceMappingURL='; - const prefixLength = prefix.length; - const baseName = /*foo.tsx*/ (0, path_1.basename)(fileName); - const extName = /*.tsx*/ (0, path_1.extname)(fileName); - const extension = /*.js*/ getEmitExtension(fileName); - const sourcemapFilename = baseName.slice(0, -extName.length) + extension + '.map'; - const sourceMapLengthWithoutPercentEncoding = prefixLength + sourcemapFilename.length; - /* - * Only rewrite if existing directive exists at the location we expect, to support: - * a) compilers that do not append a sourcemap directive - * b) situations where we did the math wrong - * Not ideal, but appending our sourcemap *after* a pre-existing sourcemap still overrides, so the end-user is happy. - */ - if (outputText.substr(-sourceMapLengthWithoutPercentEncoding, prefixLength) === - prefix) { - return (outputText.slice(0, -sourceMapLengthWithoutPercentEncoding) + - sourceMapContent); - } - // If anyone asks why we're not using URL, the URL equivalent is: `u = new URL('http://d'); u.pathname = "/" + sourcemapFilename; return u.pathname.slice(1); - const sourceMapLengthWithPercentEncoding = prefixLength + encodeURI(sourcemapFilename).length; - if (outputText.substr(-sourceMapLengthWithPercentEncoding, prefixLength) === - prefix) { - return (outputText.slice(0, -sourceMapLengthWithPercentEncoding) + - sourceMapContent); +Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', { + get: function () { + var sources = []; + for (var i = 0; i < this._sections.length; i++) { + for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { + sources.push(this._sections[i].consumer.sources[j]); + } } - return `${outputText}\n${sourceMapContent}`; -} + return sources; + } +}); + /** - * Update the source map contents for improved output. + * Returns the original source, line, and column information for the generated + * source's line and column positions provided. The only argument is an object + * with the following properties: + * + * - line: The line number in the generated source. The line number + * is 1-based. + * - column: The column number in the generated source. The column + * number is 0-based. + * + * and an object is returned with the following properties: + * + * - source: The original source file, or null. + * - line: The line number in the original source, or null. The + * line number is 1-based. + * - column: The column number in the original source, or null. The + * column number is 0-based. + * - name: The original identifier, or null. */ -function updateSourceMap(sourceMapText, fileName) { - const sourceMap = JSON.parse(sourceMapText); - sourceMap.file = fileName; - sourceMap.sources = [fileName]; - delete sourceMap.sourceRoot; - return JSON.stringify(sourceMap); -} +IndexedSourceMapConsumer.prototype.originalPositionFor = + function IndexedSourceMapConsumer_originalPositionFor(aArgs) { + var needle = { + generatedLine: util.getArg(aArgs, 'line'), + generatedColumn: util.getArg(aArgs, 'column') + }; + + // Find the section containing the generated position we're trying to map + // to an original position. + var sectionIndex = binarySearch.search(needle, this._sections, + function(needle, section) { + var cmp = needle.generatedLine - section.generatedOffset.generatedLine; + if (cmp) { + return cmp; + } + + return (needle.generatedColumn - + section.generatedOffset.generatedColumn); + }); + var section = this._sections[sectionIndex]; + + if (!section) { + return { + source: null, + line: null, + column: null, + name: null + }; + } + + return section.consumer.originalPositionFor({ + line: needle.generatedLine - + (section.generatedOffset.generatedLine - 1), + column: needle.generatedColumn - + (section.generatedOffset.generatedLine === needle.generatedLine + ? section.generatedOffset.generatedColumn - 1 + : 0), + bias: aArgs.bias + }); + }; + /** - * Filter diagnostics. + * Return true if we have the source content for every source in the source + * map, false otherwise. */ -function filterDiagnostics(diagnostics, filters) { - return diagnostics.filter((d) => filters.every((f) => { - var _a; - return (!f.appliesToAllFiles && - f.filenamesAbsolute.indexOf((_a = d.file) === null || _a === void 0 ? void 0 : _a.fileName) === -1) || - f.diagnosticsIgnored.indexOf(d.code) === -1; - })); -} +IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = + function IndexedSourceMapConsumer_hasContentsOfAllSources() { + return this._sections.every(function (s) { + return s.consumer.hasContentsOfAllSources(); + }); + }; + /** - * Get token at file position. - * - * Reference: https://github.com/microsoft/TypeScript/blob/fcd9334f57d85b73dd66ad2d21c02e84822f4841/src/services/utilities.ts#L705-L731 + * Returns the original source content. The only argument is the url of the + * original source file. Returns null if no original source content is + * available. */ -function getTokenAtPosition(ts, sourceFile, position) { - let current = sourceFile; - outer: while (true) { - for (const child of current.getChildren(sourceFile)) { - const start = child.getFullStart(); - if (start > position) - break; - const end = child.getEnd(); - if (position <= end) { - current = child; - continue outer; - } - } - return current; +IndexedSourceMapConsumer.prototype.sourceContentFor = + function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; + + var content = section.consumer.sourceContentFor(aSource, true); + if (content) { + return content; + } } -} + if (nullOnMissing) { + return null; + } + else { + throw new Error('"' + aSource + '" is not in the SourceMap.'); + } + }; + /** - * Create an implementation of node's ESM loader hooks. + * Returns the generated line and column information for the original source, + * line, and column positions provided. The only argument is an object with + * the following properties: * - * This may be useful if you - * want to wrap or compose the loader hooks to add additional functionality or - * combine with another loader. + * - source: The filename of the original source. + * - line: The line number in the original source. The line number + * is 1-based. + * - column: The column number in the original source. The column + * number is 0-based. * - * Node changed the hooks API, so there are two possible APIs. This function - * detects your node version and returns the appropriate API. + * and an object is returned with the following properties: * - * @category ESM Loader + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. */ -const createEsmHooks = (tsNodeService) => (__nccwpck_require__(84998)/* .createEsmHooks */ .lT)(tsNodeService); -exports.createEsmHooks = createEsmHooks; -//# sourceMappingURL=index.js.map - -/***/ }), +IndexedSourceMapConsumer.prototype.generatedPositionFor = + function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; -/***/ 23922: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + // Only consider this section if the requested source is in the list of + // sources of the consumer. + if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) { + continue; + } + var generatedPosition = section.consumer.generatedPositionFor(aArgs); + if (generatedPosition) { + var ret = { + line: generatedPosition.line + + (section.generatedOffset.generatedLine - 1), + column: generatedPosition.column + + (section.generatedOffset.generatedLine === generatedPosition.line + ? section.generatedOffset.generatedColumn - 1 + : 0) + }; + return ret; + } + } -"use strict"; + return { + line: null, + column: null + }; + }; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.createModuleTypeClassifier = void 0; -const ts_internals_1 = __nccwpck_require__(14851); -const util_1 = __nccwpck_require__(64745); /** - * @internal - * May receive non-normalized options -- basePath and patterns -- and will normalize them - * internally. - * However, calls to `classifyModule` must pass pre-normalized paths! + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). */ -function createModuleTypeClassifier(options) { - const { patterns, basePath: _basePath } = options; - const basePath = _basePath !== undefined - ? (0, util_1.normalizeSlashes)(_basePath).replace(/\/$/, '') - : undefined; - const patternTypePairs = Object.entries(patterns !== null && patterns !== void 0 ? patterns : []).map(([_pattern, type]) => { - const pattern = (0, util_1.normalizeSlashes)(_pattern); - return { pattern: parsePattern(basePath, pattern), type }; - }); - const classifications = { - package: { - moduleType: 'auto', - }, - cjs: { - moduleType: 'cjs', - }, - esm: { - moduleType: 'esm', - }, - }; - const auto = classifications.package; - // Passed path must be normalized! - function classifyModuleNonCached(path) { - const matched = matchPatterns(patternTypePairs, (_) => _.pattern, path); - if (matched) - return classifications[matched.type]; - return auto; - } - const classifyModule = (0, util_1.cachedLookup)(classifyModuleNonCached); - function classifyModuleAuto(path) { - return auto; - } - return { - classifyModuleByModuleTypeOverrides: patternTypePairs.length - ? classifyModule - : classifyModuleAuto, - }; -} -exports.createModuleTypeClassifier = createModuleTypeClassifier; -function parsePattern(basePath, patternString) { - const pattern = (0, ts_internals_1.getPatternFromSpec)(patternString, basePath); - return pattern !== undefined ? new RegExp(pattern) : /(?:)/; -} -function matchPatterns(objects, getPattern, candidate) { - for (let i = objects.length - 1; i >= 0; i--) { - const object = objects[i]; - const pattern = getPattern(object); - if (pattern === null || pattern === void 0 ? void 0 : pattern.test(candidate)) { - return object; +IndexedSourceMapConsumer.prototype._parseMappings = + function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { + this.__generatedMappings = []; + this.__originalMappings = []; + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; + var sectionMappings = section.consumer._generatedMappings; + for (var j = 0; j < sectionMappings.length; j++) { + var mapping = sectionMappings[j]; + + var source = section.consumer._sources.at(mapping.source); + source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL); + this._sources.add(source); + source = this._sources.indexOf(source); + + var name = null; + if (mapping.name) { + name = section.consumer._names.at(mapping.name); + this._names.add(name); + name = this._names.indexOf(name); + } + + // The mappings coming from the consumer for the section have + // generated positions relative to the start of the section, so we + // need to offset them to be relative to the start of the concatenated + // generated file. + var adjustedMapping = { + source: source, + generatedLine: mapping.generatedLine + + (section.generatedOffset.generatedLine - 1), + generatedColumn: mapping.generatedColumn + + (section.generatedOffset.generatedLine === mapping.generatedLine + ? section.generatedOffset.generatedColumn - 1 + : 0), + originalLine: mapping.originalLine, + originalColumn: mapping.originalColumn, + name: name + }; + + this.__generatedMappings.push(adjustedMapping); + if (typeof adjustedMapping.originalLine === 'number') { + this.__originalMappings.push(adjustedMapping); } + } } -} -//# sourceMappingURL=module-type-classifier.js.map + + quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); + quickSort(this.__originalMappings, util.compareByOriginalPositions); + }; + +__webpack_unused_export__ = IndexedSourceMapConsumer; + /***/ }), -/***/ 80812: +/***/ 69425: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + +var base64VLQ = __nccwpck_require__(10975); +var util = __nccwpck_require__(12344); +var ArraySet = (__nccwpck_require__(26375)/* .ArraySet */ .I); +var MappingList = (__nccwpck_require__(86817)/* .MappingList */ .H); -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.classifyModule = void 0; -const node_internal_modules_cjs_loader_1 = __nccwpck_require__(51633); /** - * Determine how to emit a module based on tsconfig "module" and package.json "type" - * - * Supports module=nodenext/node16 with transpileOnly, where we cannot ask the - * TS typechecker to tell us if a file is CJS or ESM. + * An instance of the SourceMapGenerator represents a source map which is + * being built incrementally. You may pass an object with the following + * properties: * - * Return values indicate: - * - cjs - * - esm - * - nodecjs == node-flavored cjs where dynamic imports are *not* transformed into `require()` - * - undefined == emit according to tsconfig `module` config, whatever that is - * @internal + * - file: The filename of the generated source. + * - sourceRoot: A root for all relative URLs in this source map. */ -function classifyModule(nativeFilename, isNodeModuleType) { - // [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS] - const lastDotIndex = nativeFilename.lastIndexOf('.'); - const ext = lastDotIndex >= 0 ? nativeFilename.slice(lastDotIndex) : ''; - switch (ext) { - case '.cjs': - case '.cts': - return isNodeModuleType ? 'nodecjs' : 'cjs'; - case '.mjs': - case '.mts': - return isNodeModuleType ? 'nodeesm' : 'esm'; - } - if (isNodeModuleType) { - const packageScope = (0, node_internal_modules_cjs_loader_1.readPackageScope)(nativeFilename); - if (packageScope && packageScope.data.type === 'module') - return 'nodeesm'; - return 'nodecjs'; - } - return undefined; +function SourceMapGenerator(aArgs) { + if (!aArgs) { + aArgs = {}; + } + this._file = util.getArg(aArgs, 'file', null); + this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); + this._skipValidation = util.getArg(aArgs, 'skipValidation', false); + this._sources = new ArraySet(); + this._names = new ArraySet(); + this._mappings = new MappingList(); + this._sourcesContents = null; } -exports.classifyModule = classifyModule; -//# sourceMappingURL=node-module-type-classifier.js.map -/***/ }), +SourceMapGenerator.prototype._version = 3; -/***/ 10204: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/** + * Creates a new SourceMapGenerator based on a SourceMapConsumer + * + * @param aSourceMapConsumer The SourceMap. + */ +SourceMapGenerator.fromSourceMap = + function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { + var sourceRoot = aSourceMapConsumer.sourceRoot; + var generator = new SourceMapGenerator({ + file: aSourceMapConsumer.file, + sourceRoot: sourceRoot + }); + aSourceMapConsumer.eachMapping(function (mapping) { + var newMapping = { + generated: { + line: mapping.generatedLine, + column: mapping.generatedColumn + } + }; -"use strict"; + if (mapping.source != null) { + newMapping.source = mapping.source; + if (sourceRoot != null) { + newMapping.source = util.relative(sourceRoot, newMapping.source); + } -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.setupContext = exports.createEvalAwarePartialHost = exports.EvalState = exports.createRepl = exports.REPL_NAME = exports.REPL_FILENAME = exports.STDIN_NAME = exports.STDIN_FILENAME = exports.EVAL_NAME = exports.EVAL_FILENAME = void 0; -const os_1 = __nccwpck_require__(22037); -const path_1 = __nccwpck_require__(71017); -const repl_1 = __nccwpck_require__(38102); -const vm_1 = __nccwpck_require__(26144); -const index_1 = __nccwpck_require__(72719); -const fs_1 = __nccwpck_require__(57147); -const console_1 = __nccwpck_require__(51807); -const assert = __nccwpck_require__(39491); -const module_1 = __nccwpck_require__(98188); -// Lazy-loaded. -let _processTopLevelAwait; -function getProcessTopLevelAwait() { - if (_processTopLevelAwait === undefined) { - ({ - processTopLevelAwait: _processTopLevelAwait, - } = __nccwpck_require__(75818)); + newMapping.original = { + line: mapping.originalLine, + column: mapping.originalColumn + }; + + if (mapping.name != null) { + newMapping.name = mapping.name; + } + } + + generator.addMapping(newMapping); + }); + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var sourceRelative = sourceFile; + if (sourceRoot !== null) { + sourceRelative = util.relative(sourceRoot, sourceFile); + } + + if (!generator._sources.has(sourceRelative)) { + generator._sources.add(sourceRelative); + } + + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + generator.setSourceContent(sourceFile, content); + } + }); + return generator; + }; + +/** + * Add a single mapping from original source line and column to the generated + * source's line and column for this source map being created. The mapping + * object should have the following properties: + * + * - generated: An object with the generated line and column positions. + * - original: An object with the original line and column positions. + * - source: The original source file (relative to the sourceRoot). + * - name: An optional original token name for this mapping. + */ +SourceMapGenerator.prototype.addMapping = + function SourceMapGenerator_addMapping(aArgs) { + var generated = util.getArg(aArgs, 'generated'); + var original = util.getArg(aArgs, 'original', null); + var source = util.getArg(aArgs, 'source', null); + var name = util.getArg(aArgs, 'name', null); + + if (!this._skipValidation) { + this._validateMapping(generated, original, source, name); } - return _processTopLevelAwait; -} -let diff; -function getDiffLines() { - if (diff === undefined) { - diff = __nccwpck_require__(71672); + + if (source != null) { + source = String(source); + if (!this._sources.has(source)) { + this._sources.add(source); + } } - return diff.diffLines; -} -/** @internal */ -exports.EVAL_FILENAME = `[eval].ts`; -/** @internal */ -exports.EVAL_NAME = `[eval]`; -/** @internal */ -exports.STDIN_FILENAME = `[stdin].ts`; -/** @internal */ -exports.STDIN_NAME = `[stdin]`; -/** @internal */ -exports.REPL_FILENAME = '.ts'; -/** @internal */ -exports.REPL_NAME = ''; + + if (name != null) { + name = String(name); + if (!this._names.has(name)) { + this._names.add(name); + } + } + + this._mappings.add({ + generatedLine: generated.line, + generatedColumn: generated.column, + originalLine: original != null && original.line, + originalColumn: original != null && original.column, + source: source, + name: name + }); + }; + /** - * Create a ts-node REPL instance. - * - * Pay close attention to the example below. Today, the API requires a few lines - * of boilerplate to correctly bind the `ReplService` to the ts-node `Service` and - * vice-versa. - * - * Usage example: - * - * const repl = tsNode.createRepl(); - * const service = tsNode.create({...repl.evalAwarePartialHost}); - * repl.setService(service); - * repl.start(); - * - * @category REPL + * Set the source content for a source file. */ -function createRepl(options = {}) { - var _a, _b, _c, _d, _e; - const { ignoreDiagnosticsThatAreAnnoyingInInteractiveRepl = true } = options; - let service = options.service; - let nodeReplServer; - // If `useGlobal` is not true, then REPL creates a context when started. - // This stores a reference to it or to `global`, whichever is used, after REPL has started. - let context; - const state = (_a = options.state) !== null && _a !== void 0 ? _a : new EvalState((0, path_1.join)(process.cwd(), exports.REPL_FILENAME)); - const evalAwarePartialHost = createEvalAwarePartialHost(state, options.composeWithEvalAwarePartialHost); - const stdin = (_b = options.stdin) !== null && _b !== void 0 ? _b : process.stdin; - const stdout = (_c = options.stdout) !== null && _c !== void 0 ? _c : process.stdout; - const stderr = (_d = options.stderr) !== null && _d !== void 0 ? _d : process.stderr; - const _console = stdout === process.stdout && stderr === process.stderr - ? console - : new console_1.Console(stdout, stderr); - const replService = { - state: (_e = options.state) !== null && _e !== void 0 ? _e : new EvalState((0, path_1.join)(process.cwd(), exports.EVAL_FILENAME)), - setService, - evalCode, - evalCodeInternal, - nodeEval, - evalAwarePartialHost, - start, - startInternal, - stdin, - stdout, - stderr, - console: _console, - }; - return replService; - function setService(_service) { - service = _service; - if (ignoreDiagnosticsThatAreAnnoyingInInteractiveRepl) { - service.addDiagnosticFilter({ - appliesToAllFiles: false, - filenamesAbsolute: [state.path], - diagnosticsIgnored: [ - 2393, - 6133, - 7027, - ...(service.shouldReplAwait ? topLevelAwaitDiagnosticCodes : []), - ], - }); - } +SourceMapGenerator.prototype.setSourceContent = + function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { + var source = aSourceFile; + if (this._sourceRoot != null) { + source = util.relative(this._sourceRoot, source); } - function evalCode(code) { - const result = appendCompileAndEvalInput({ - service: service, - state, - input: code, - context, - overrideIsCompletion: false, - }); - assert(result.containsTopLevelAwait === false); - return result.value; + + if (aSourceContent != null) { + // Add the source content to the _sourcesContents map. + // Create a new _sourcesContents map if the property is null. + if (!this._sourcesContents) { + this._sourcesContents = Object.create(null); + } + this._sourcesContents[util.toSetString(source)] = aSourceContent; + } else if (this._sourcesContents) { + // Remove the source file from the _sourcesContents map. + // If the _sourcesContents map is empty, set the property to null. + delete this._sourcesContents[util.toSetString(source)]; + if (Object.keys(this._sourcesContents).length === 0) { + this._sourcesContents = null; + } } - function evalCodeInternal(options) { - const { code, enableTopLevelAwait, context } = options; - return appendCompileAndEvalInput({ - service: service, - state, - input: code, - enableTopLevelAwait, - context, - }); + }; + +/** + * Applies the mappings of a sub-source-map for a specific source file to the + * source map being generated. Each mapping to the supplied source file is + * rewritten using the supplied source map. Note: The resolution for the + * resulting mappings is the minimium of this map and the supplied map. + * + * @param aSourceMapConsumer The source map to be applied. + * @param aSourceFile Optional. The filename of the source file. + * If omitted, SourceMapConsumer's file property will be used. + * @param aSourceMapPath Optional. The dirname of the path to the source map + * to be applied. If relative, it is relative to the SourceMapConsumer. + * This parameter is needed when the two source maps aren't in the same + * directory, and the source map to be applied contains relative source + * paths. If so, those relative source paths need to be rewritten + * relative to the SourceMapGenerator. + */ +SourceMapGenerator.prototype.applySourceMap = + function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { + var sourceFile = aSourceFile; + // If aSourceFile is omitted, we will use the file property of the SourceMap + if (aSourceFile == null) { + if (aSourceMapConsumer.file == null) { + throw new Error( + 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + + 'or the source map\'s "file" property. Both were omitted.' + ); + } + sourceFile = aSourceMapConsumer.file; } - function nodeEval(code, context, _filename, callback) { - // TODO: Figure out how to handle completion here. - if (code === '.scope') { - callback(null); - return; - } - try { - const evalResult = evalCodeInternal({ - code, - enableTopLevelAwait: true, - context, - }); - if (evalResult.containsTopLevelAwait) { - (async () => { - try { - callback(null, await evalResult.valuePromise); - } - catch (promiseError) { - handleError(promiseError); - } - })(); - } - else { - callback(null, evalResult.value); - } - } - catch (error) { - handleError(error); + var sourceRoot = this._sourceRoot; + // Make "sourceFile" relative if an absolute Url is passed. + if (sourceRoot != null) { + sourceFile = util.relative(sourceRoot, sourceFile); + } + // Applying the SourceMap can add and remove items from the sources and + // the names array. + var newSources = new ArraySet(); + var newNames = new ArraySet(); + + // Find mappings for the "sourceFile" + this._mappings.unsortedForEach(function (mapping) { + if (mapping.source === sourceFile && mapping.originalLine != null) { + // Check if it can be mapped by the source map, then update the mapping. + var original = aSourceMapConsumer.originalPositionFor({ + line: mapping.originalLine, + column: mapping.originalColumn + }); + if (original.source != null) { + // Copy mapping + mapping.source = original.source; + if (aSourceMapPath != null) { + mapping.source = util.join(aSourceMapPath, mapping.source) + } + if (sourceRoot != null) { + mapping.source = util.relative(sourceRoot, mapping.source); + } + mapping.originalLine = original.line; + mapping.originalColumn = original.column; + if (original.name != null) { + mapping.name = original.name; + } } - // Log TSErrors, check if they're recoverable, log helpful hints for certain - // well-known errors, and invoke `callback()` - // TODO should evalCode API get the same error-handling benefits? - function handleError(error) { - var _a, _b; - // Don't show TLA hint if the user explicitly disabled repl top level await - const canLogTopLevelAwaitHint = service.options.experimentalReplAwait !== false && - !service.shouldReplAwait; - if (error instanceof index_1.TSError) { - // Support recoverable compilations using >= node 6. - if (repl_1.Recoverable && isRecoverable(error)) { - callback(new repl_1.Recoverable(error)); - return; - } - else { - _console.error(error); - if (canLogTopLevelAwaitHint && - error.diagnosticCodes.some((dC) => topLevelAwaitDiagnosticCodes.includes(dC))) { - _console.error(getTopLevelAwaitHint()); - } - callback(null); - } - } - else { - let _error = error; - if (canLogTopLevelAwaitHint && - _error instanceof SyntaxError && - ((_a = _error.message) === null || _a === void 0 ? void 0 : _a.includes('await is only valid'))) { - try { - // Only way I know to make our hint appear after the error - _error.message += `\n\n${getTopLevelAwaitHint()}`; - _error.stack = (_b = _error.stack) === null || _b === void 0 ? void 0 : _b.replace(/(SyntaxError:.*)/, (_, $1) => `${$1}\n\n${getTopLevelAwaitHint()}`); - } - catch { } - } - callback(_error); - } + } + + var source = mapping.source; + if (source != null && !newSources.has(source)) { + newSources.add(source); + } + + var name = mapping.name; + if (name != null && !newNames.has(name)) { + newNames.add(name); + } + + }, this); + this._sources = newSources; + this._names = newNames; + + // Copy sourcesContents of applied map. + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + if (aSourceMapPath != null) { + sourceFile = util.join(aSourceMapPath, sourceFile); } - function getTopLevelAwaitHint() { - return `Hint: REPL top-level await requires TypeScript version 3.8 or higher and target ES2018 or higher. You are using TypeScript ${service.ts.version} and target ${service.ts.ScriptTarget[service.config.options.target]}.`; + if (sourceRoot != null) { + sourceFile = util.relative(sourceRoot, sourceFile); } + this.setSourceContent(sourceFile, content); + } + }, this); + }; + +/** + * A mapping can have one of the three levels of data: + * + * 1. Just the generated position. + * 2. The Generated position, original position, and original source. + * 3. Generated and original position, original source, as well as a name + * token. + * + * To maintain consistency, we validate that any new mapping being added falls + * in to one of these categories. + */ +SourceMapGenerator.prototype._validateMapping = + function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, + aName) { + // When aOriginal is truthy but has empty values for .line and .column, + // it is most likely a programmer error. In this case we throw a very + // specific error message to try to guide them the right way. + // For example: https://github.com/Polymer/polymer-bundler/pull/519 + if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') { + throw new Error( + 'original.line and original.column are not numbers -- you probably meant to omit ' + + 'the original mapping entirely and only map the generated position. If so, pass ' + + 'null for the original mapping instead of an object with empty or null values.' + ); } - // Note: `code` argument is deprecated - function start(code) { - startInternal({ code }); + + if (aGenerated && 'line' in aGenerated && 'column' in aGenerated + && aGenerated.line > 0 && aGenerated.column >= 0 + && !aOriginal && !aSource && !aName) { + // Case 1. + return; } - // Note: `code` argument is deprecated - function startInternal(options) { - const { code, forceToBeModule = true, ...optionsOverride } = options !== null && options !== void 0 ? options : {}; - // TODO assert that `service` is set; remove all `service!` non-null assertions - // Eval incoming code before the REPL starts. - // Note: deprecated - if (code) { - try { - evalCode(`${code}\n`); - } - catch (err) { - _console.error(err); - // Note: should not be killing the process here, but this codepath is deprecated anyway - process.exit(1); - } + else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated + && aOriginal && 'line' in aOriginal && 'column' in aOriginal + && aGenerated.line > 0 && aGenerated.column >= 0 + && aOriginal.line > 0 && aOriginal.column >= 0 + && aSource) { + // Cases 2 and 3. + return; + } + else { + throw new Error('Invalid mapping: ' + JSON.stringify({ + generated: aGenerated, + source: aSource, + original: aOriginal, + name: aName + })); + } + }; + +/** + * Serialize the accumulated mappings in to the stream of base 64 VLQs + * specified by the source map format. + */ +SourceMapGenerator.prototype._serializeMappings = + function SourceMapGenerator_serializeMappings() { + var previousGeneratedColumn = 0; + var previousGeneratedLine = 1; + var previousOriginalColumn = 0; + var previousOriginalLine = 0; + var previousName = 0; + var previousSource = 0; + var result = ''; + var next; + var mapping; + var nameIdx; + var sourceIdx; + + var mappings = this._mappings.toArray(); + for (var i = 0, len = mappings.length; i < len; i++) { + mapping = mappings[i]; + next = '' + + if (mapping.generatedLine !== previousGeneratedLine) { + previousGeneratedColumn = 0; + while (mapping.generatedLine !== previousGeneratedLine) { + next += ';'; + previousGeneratedLine++; } - // In case the typescript compiler hasn't compiled anything yet, - // make it run though compilation at least one time before - // the REPL starts for a snappier user experience on startup. - service === null || service === void 0 ? void 0 : service.compile('', state.path); - const repl = (0, repl_1.start)({ - prompt: '> ', - input: replService.stdin, - output: replService.stdout, - // Mimicking node's REPL implementation: https://github.com/nodejs/node/blob/168b22ba073ee1cbf8d0bcb4ded7ff3099335d04/lib/internal/repl.js#L28-L30 - terminal: stdout.isTTY && - !parseInt(index_1.env.NODE_NO_READLINE, 10), - eval: nodeEval, - useGlobal: true, - ...optionsOverride, - }); - nodeReplServer = repl; - context = repl.context; - // Bookmark the point where we should reset the REPL state. - const resetEval = appendToEvalState(state, ''); - function reset() { - resetEval(); - // Hard fix for TypeScript forcing `Object.defineProperty(exports, ...)`. - runInContext('exports = module.exports', state.path, context); - if (forceToBeModule) { - state.input += 'export {};void 0;\n'; - } - // Declare node builtins. - // Skip the same builtins as `addBuiltinLibsToObject`: - // those starting with _ - // those containing / - // those that already exist as globals - // Intentionally suppress type errors in case @types/node does not declare any of them, and because - // `declare import` is technically invalid syntax. - // Avoid this when in transpileOnly, because third-party transpilers may not handle `declare import`. - if (!(service === null || service === void 0 ? void 0 : service.transpileOnly)) { - state.input += `// @ts-ignore\n${module_1.builtinModules - .filter((name) => !name.startsWith('_') && - !name.includes('/') && - !['console', 'module', 'process'].includes(name)) - .map((name) => `declare import ${name} = require('${name}')`) - .join(';')}\n`; - } + } + else { + if (i > 0) { + if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { + continue; + } + next += ','; } - reset(); - repl.on('reset', reset); - repl.defineCommand('type', { - help: 'Check the type of a TypeScript identifier', - action: function (identifier) { - if (!identifier) { - repl.displayPrompt(); - return; - } - const undo = appendToEvalState(state, identifier); - const { name, comment } = service.getTypeInfo(state.input, state.path, state.input.length); - undo(); - if (name) - repl.outputStream.write(`${name}\n`); - if (comment) - repl.outputStream.write(`${comment}\n`); - repl.displayPrompt(); - }, - }); - // Set up REPL history when available natively via node.js >= 11. - if (repl.setupHistory) { - const historyPath = index_1.env.TS_NODE_HISTORY || (0, path_1.join)((0, os_1.homedir)(), '.ts_node_repl_history'); - repl.setupHistory(historyPath, (err) => { - if (!err) - return; - _console.error(err); - process.exit(1); - }); + } + + next += base64VLQ.encode(mapping.generatedColumn + - previousGeneratedColumn); + previousGeneratedColumn = mapping.generatedColumn; + + if (mapping.source != null) { + sourceIdx = this._sources.indexOf(mapping.source); + next += base64VLQ.encode(sourceIdx - previousSource); + previousSource = sourceIdx; + + // lines are stored 0-based in SourceMap spec version 3 + next += base64VLQ.encode(mapping.originalLine - 1 + - previousOriginalLine); + previousOriginalLine = mapping.originalLine - 1; + + next += base64VLQ.encode(mapping.originalColumn + - previousOriginalColumn); + previousOriginalColumn = mapping.originalColumn; + + if (mapping.name != null) { + nameIdx = this._names.indexOf(mapping.name); + next += base64VLQ.encode(nameIdx - previousName); + previousName = nameIdx; } - return repl; + } + + result += next; } -} -exports.createRepl = createRepl; + + return result; + }; + +SourceMapGenerator.prototype._generateSourcesContent = + function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { + return aSources.map(function (source) { + if (!this._sourcesContents) { + return null; + } + if (aSourceRoot != null) { + source = util.relative(aSourceRoot, source); + } + var key = util.toSetString(source); + return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) + ? this._sourcesContents[key] + : null; + }, this); + }; + /** - * Eval state management. Stores virtual `[eval].ts` file + * Externalize the source map. */ -class EvalState { - constructor(path) { - this.path = path; - /** @internal */ - this.input = ''; - /** @internal */ - this.output = ''; - /** @internal */ - this.version = 0; - /** @internal */ - this.lines = 0; +SourceMapGenerator.prototype.toJSON = + function SourceMapGenerator_toJSON() { + var map = { + version: this._version, + sources: this._sources.toArray(), + names: this._names.toArray(), + mappings: this._serializeMappings() + }; + if (this._file != null) { + map.file = this._file; } -} -exports.EvalState = EvalState; -function createEvalAwarePartialHost(state, composeWith) { - function readFile(path) { - if (path === state.path) - return state.input; - if (composeWith === null || composeWith === void 0 ? void 0 : composeWith.readFile) - return composeWith.readFile(path); - try { - return (0, fs_1.readFileSync)(path, 'utf8'); - } - catch (err) { - /* Ignore. */ - } + if (this._sourceRoot != null) { + map.sourceRoot = this._sourceRoot; } - function fileExists(path) { - if (path === state.path) - return true; - if (composeWith === null || composeWith === void 0 ? void 0 : composeWith.fileExists) - return composeWith.fileExists(path); - try { - const stats = (0, fs_1.statSync)(path); - return stats.isFile() || stats.isFIFO(); - } - catch (err) { - return false; - } + if (this._sourcesContents) { + map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); } - return { readFile, fileExists }; + + return map; + }; + +/** + * Render the source map being generated to a string. + */ +SourceMapGenerator.prototype.toString = + function SourceMapGenerator_toString() { + return JSON.stringify(this.toJSON()); + }; + +exports.h = SourceMapGenerator; + + +/***/ }), + +/***/ 92616: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +var __webpack_unused_export__; +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + +var SourceMapGenerator = (__nccwpck_require__(69425)/* .SourceMapGenerator */ .h); +var util = __nccwpck_require__(12344); + +// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other +// operating systems these days (capturing the result). +var REGEX_NEWLINE = /(\r?\n)/; + +// Newline character code for charCodeAt() comparisons +var NEWLINE_CODE = 10; + +// Private symbol for identifying `SourceNode`s when multiple versions of +// the source-map library are loaded. This MUST NOT CHANGE across +// versions! +var isSourceNode = "$$$isSourceNode$$$"; + +/** + * SourceNodes provide a way to abstract over interpolating/concatenating + * snippets of generated JavaScript source code while maintaining the line and + * column information associated with the original source code. + * + * @param aLine The original line number. + * @param aColumn The original column number. + * @param aSource The original source's filename. + * @param aChunks Optional. An array of strings which are snippets of + * generated JS, or other SourceNodes. + * @param aName The original identifier. + */ +function SourceNode(aLine, aColumn, aSource, aChunks, aName) { + this.children = []; + this.sourceContents = {}; + this.line = aLine == null ? null : aLine; + this.column = aColumn == null ? null : aColumn; + this.source = aSource == null ? null : aSource; + this.name = aName == null ? null : aName; + this[isSourceNode] = true; + if (aChunks != null) this.add(aChunks); } -exports.createEvalAwarePartialHost = createEvalAwarePartialHost; -const sourcemapCommentRe = /\/\/# ?sourceMappingURL=\S+[\s\r\n]*$/; + /** - * Evaluate the code snippet. + * Creates a SourceNode from generated code and a SourceMapConsumer. * - * Append it to virtual .ts file, compile, handle compiler errors, compute a diff of the JS, and eval any code that - * appears as "added" in the diff. + * @param aGeneratedCode The generated code + * @param aSourceMapConsumer The SourceMap for the generated code + * @param aRelativePath Optional. The path that relative sources in the + * SourceMapConsumer should be relative to. */ -function appendCompileAndEvalInput(options) { - const { service, state, wrappedErr, enableTopLevelAwait = false, context, overrideIsCompletion, } = options; - let { input } = options; - // It's confusing for `{ a: 1 }` to be interpreted as a block statement - // rather than an object literal. So, we first try to wrap it in - // parentheses, so that it will be interpreted as an expression. - // Based on https://github.com/nodejs/node/blob/c2e6822153bad023ab7ebd30a6117dcc049e475c/lib/repl.js#L413-L422 - let wrappedCmd = false; - if (!wrappedErr && /^\s*{/.test(input) && !/;\s*$/.test(input)) { - input = `(${input.trim()})\n`; - wrappedCmd = true; - } - const lines = state.lines; - const isCompletion = overrideIsCompletion !== null && overrideIsCompletion !== void 0 ? overrideIsCompletion : !/\n$/.test(input); - const undo = appendToEvalState(state, input); - let output; - // Based on https://github.com/nodejs/node/blob/92573721c7cff104ccb82b6ed3e8aa69c4b27510/lib/repl.js#L457-L461 - function adjustUseStrict(code) { - // "void 0" keeps the repl from returning "use strict" as the result - // value for statements and declarations that don't return a value. - return code.replace(/^"use strict";/, '"use strict"; void 0;'); - } - try { - output = service.compile(state.input, state.path, -lines); - } - catch (err) { - undo(); - if (wrappedCmd) { - if (err instanceof index_1.TSError && err.diagnosticCodes[0] === 2339) { - // Ensure consistent and more sane behavior between { a: 1 }['b'] and ({ a: 1 }['b']) - throw err; - } - // Unwrap and try again - return appendCompileAndEvalInput({ - ...options, - wrappedErr: err, - }); +SourceNode.fromStringWithSourceMap = + function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { + // The SourceNode we want to fill with the generated code + // and the SourceMap + var node = new SourceNode(); + + // All even indices of this array are one line of the generated code, + // while all odd indices are the newlines between two adjacent lines + // (since `REGEX_NEWLINE` captures its match). + // Processed fragments are accessed by calling `shiftNextLine`. + var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); + var remainingLinesIndex = 0; + var shiftNextLine = function() { + var lineContents = getNextLine(); + // The last line of a file might not have a newline. + var newLine = getNextLine() || ""; + return lineContents + newLine; + + function getNextLine() { + return remainingLinesIndex < remainingLines.length ? + remainingLines[remainingLinesIndex++] : undefined; + } + }; + + // We need to remember the position of "remainingLines" + var lastGeneratedLine = 1, lastGeneratedColumn = 0; + + // The generate SourceNodes we need a code range. + // To extract it current and last mapping is used. + // Here we store the last mapping. + var lastMapping = null; + + aSourceMapConsumer.eachMapping(function (mapping) { + if (lastMapping !== null) { + // We add the code from "lastMapping" to "mapping": + // First check if there is a new line in between. + if (lastGeneratedLine < mapping.generatedLine) { + // Associate first line with "lastMapping" + addMappingWithCode(lastMapping, shiftNextLine()); + lastGeneratedLine++; + lastGeneratedColumn = 0; + // The remaining code is added without mapping + } else { + // There is no new line in between. + // Associate the code between "lastGeneratedColumn" and + // "mapping.generatedColumn" with "lastMapping" + var nextLine = remainingLines[remainingLinesIndex] || ''; + var code = nextLine.substr(0, mapping.generatedColumn - + lastGeneratedColumn); + remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - + lastGeneratedColumn); + lastGeneratedColumn = mapping.generatedColumn; + addMappingWithCode(lastMapping, code); + // No more remaining code, continue + lastMapping = mapping; + return; } - if (wrappedErr) - throw wrappedErr; - throw err; - } - output = adjustUseStrict(output); - // Note: REPL does not respect sourcemaps! - // To properly do that, we'd need to prefix the code we eval -- which comes - // from `diffLines` -- with newlines so that it's at the proper line numbers. - // Then we'd need to ensure each bit of eval-ed code, if there are multiples, - // has the sourcemap appended to it. - // We might also need to integrate with our sourcemap hooks' cache; I'm not sure. - const outputWithoutSourcemapComment = output.replace(sourcemapCommentRe, ''); - const oldOutputWithoutSourcemapComment = state.output.replace(sourcemapCommentRe, ''); - // Use `diff` to check for new JavaScript to execute. - const changes = getDiffLines()(oldOutputWithoutSourcemapComment, outputWithoutSourcemapComment); - if (isCompletion) { - undo(); - } - else { - state.output = output; - // Insert a semicolon to make sure that the code doesn't interact with the next line, - // for example to prevent `2\n+ 2` from producing 4. - // This is safe since the output will not change since we can only get here with successful inputs, - // and adding a semicolon to the end of a successful input won't ever change the output. - state.input = state.input.replace(/([^\n\s])([\n\s]*)$/, (all, lastChar, whitespace) => { - if (lastChar !== ';') - return `${lastChar};${whitespace}`; - return all; - }); + } + // We add the generated code until the first mapping + // to the SourceNode without any mapping. + // Each line is added as separate string. + while (lastGeneratedLine < mapping.generatedLine) { + node.add(shiftNextLine()); + lastGeneratedLine++; + } + if (lastGeneratedColumn < mapping.generatedColumn) { + var nextLine = remainingLines[remainingLinesIndex] || ''; + node.add(nextLine.substr(0, mapping.generatedColumn)); + remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn); + lastGeneratedColumn = mapping.generatedColumn; + } + lastMapping = mapping; + }, this); + // We have processed all mappings. + if (remainingLinesIndex < remainingLines.length) { + if (lastMapping) { + // Associate the remaining code in the current line with "lastMapping" + addMappingWithCode(lastMapping, shiftNextLine()); + } + // and add the remaining lines without any mapping + node.add(remainingLines.splice(remainingLinesIndex).join("")); } - let commands = []; - let containsTopLevelAwait = false; - // Build a list of "commands": bits of JS code in the diff that must be executed. - for (const change of changes) { - if (change.added) { - if (enableTopLevelAwait && - service.shouldReplAwait && - change.value.indexOf('await') > -1) { - const processTopLevelAwait = getProcessTopLevelAwait(); - // Newline prevents comments to mess with wrapper - const wrappedResult = processTopLevelAwait(change.value + '\n'); - if (wrappedResult !== null) { - containsTopLevelAwait = true; - commands.push({ - mustAwait: true, - execCommand: () => runInContext(wrappedResult, state.path, context), - }); - continue; - } - } - commands.push({ - execCommand: () => runInContext(change.value, state.path, context), - }); + + // Copy sourcesContent into SourceNode + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + if (aRelativePath != null) { + sourceFile = util.join(aRelativePath, sourceFile); } + node.setSourceContent(sourceFile, content); + } + }); + + return node; + + function addMappingWithCode(mapping, code) { + if (mapping === null || mapping.source === undefined) { + node.add(code); + } else { + var source = aRelativePath + ? util.join(aRelativePath, mapping.source) + : mapping.source; + node.add(new SourceNode(mapping.originalLine, + mapping.originalColumn, + source, + code, + mapping.name)); + } } - // Execute all commands asynchronously if necessary, returning the result or a - // promise of the result. - if (containsTopLevelAwait) { - return { - containsTopLevelAwait, - valuePromise: (async () => { - let value; - for (const command of commands) { - const r = command.execCommand(); - value = command.mustAwait ? await r : r; - } - return value; - })(), - }; - } - else { - return { - containsTopLevelAwait: false, - value: commands.reduce((_, c) => c.execCommand(), undefined), - }; - } -} + }; + /** - * Low-level execution of JS code in context + * Add a chunk of generated JS to this source node. + * + * @param aChunk A string snippet of generated JS code, another instance of + * SourceNode, or an array where each member is one of those things. */ -function runInContext(code, filename, context) { - const script = new vm_1.Script(code, { filename }); - if (context === undefined || context === global) { - return script.runInThisContext(); - } - else { - return script.runInContext(context); +SourceNode.prototype.add = function SourceNode_add(aChunk) { + if (Array.isArray(aChunk)) { + aChunk.forEach(function (chunk) { + this.add(chunk); + }, this); + } + else if (aChunk[isSourceNode] || typeof aChunk === "string") { + if (aChunk) { + this.children.push(aChunk); } -} + } + else { + throw new TypeError( + "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk + ); + } + return this; +}; + /** - * Append to the eval instance and return an undo function. + * Add a chunk of generated JS to the beginning of this source node. + * + * @param aChunk A string snippet of generated JS code, another instance of + * SourceNode, or an array where each member is one of those things. */ -function appendToEvalState(state, input) { - const undoInput = state.input; - const undoVersion = state.version; - const undoOutput = state.output; - const undoLines = state.lines; - state.input += input; - state.lines += lineCount(input); - state.version++; - return function () { - state.input = undoInput; - state.output = undoOutput; - state.version = undoVersion; - state.lines = undoLines; - }; -} +SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { + if (Array.isArray(aChunk)) { + for (var i = aChunk.length-1; i >= 0; i--) { + this.prepend(aChunk[i]); + } + } + else if (aChunk[isSourceNode] || typeof aChunk === "string") { + this.children.unshift(aChunk); + } + else { + throw new TypeError( + "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk + ); + } + return this; +}; + /** - * Count the number of lines. + * Walk over the tree of JS snippets in this node and its children. The + * walking function is called once for each snippet of JS and is passed that + * snippet and the its original associated source's line/column location. + * + * @param aFn The traversal function. */ -function lineCount(value) { - let count = 0; - for (const char of value) { - if (char === '\n') { - count++; - } +SourceNode.prototype.walk = function SourceNode_walk(aFn) { + var chunk; + for (var i = 0, len = this.children.length; i < len; i++) { + chunk = this.children[i]; + if (chunk[isSourceNode]) { + chunk.walk(aFn); } - return count; -} + else { + if (chunk !== '') { + aFn(chunk, { source: this.source, + line: this.line, + column: this.column, + name: this.name }); + } + } + } +}; + /** - * TS diagnostic codes which are recoverable, meaning that the user likely entered an incomplete line of code - * and should be prompted for the next. For example, starting a multi-line for() loop and not finishing it. - * null value means code is always recoverable. `Set` means code is only recoverable when occurring alongside at least one - * of the other codes. + * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between + * each of `this.children`. + * + * @param aSep The separator. */ -const RECOVERY_CODES = new Map([ - [1003, null], - [1005, null], - [1109, null], - [1126, null], - [ - 1136, - new Set([1005]), // happens when typing out an object literal or block scope across multiple lines: '{ foo: 123,' - ], - [1160, null], - [1161, null], - [2355, null], - [2391, null], - [ - 7010, - new Set([1005]), // happens when fn signature spread across multiple lines: 'function a(\nb: any\n) {' - ], -]); +SourceNode.prototype.join = function SourceNode_join(aSep) { + var newChildren; + var i; + var len = this.children.length; + if (len > 0) { + newChildren = []; + for (i = 0; i < len-1; i++) { + newChildren.push(this.children[i]); + newChildren.push(aSep); + } + newChildren.push(this.children[i]); + this.children = newChildren; + } + return this; +}; + /** - * Diagnostic codes raised when using top-level await. - * These are suppressed when top-level await is enabled. - * When it is *not* enabled, these trigger a helpful hint about enabling top-level await. + * Call String.prototype.replace on the very right-most source snippet. Useful + * for trimming whitespace from the end of a source node, etc. + * + * @param aPattern The pattern to replace. + * @param aReplacement The thing to replace the pattern with. */ -const topLevelAwaitDiagnosticCodes = [ - 1375, - 1378, - 1431, - 1432, // Top-level 'for await' loops are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher. -]; +SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { + var lastChild = this.children[this.children.length - 1]; + if (lastChild[isSourceNode]) { + lastChild.replaceRight(aPattern, aReplacement); + } + else if (typeof lastChild === 'string') { + this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); + } + else { + this.children.push(''.replace(aPattern, aReplacement)); + } + return this; +}; + /** - * Check if a function can recover gracefully. + * Set the source content for a source file. This will be added to the SourceMapGenerator + * in the sourcesContent field. + * + * @param aSourceFile The filename of the source file + * @param aSourceContent The content of the source file */ -function isRecoverable(error) { - return error.diagnosticCodes.every((code) => { - const deps = RECOVERY_CODES.get(code); - return (deps === null || - (deps && error.diagnosticCodes.some((code) => deps.has(code)))); - }); -} +SourceNode.prototype.setSourceContent = + function SourceNode_setSourceContent(aSourceFile, aSourceContent) { + this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; + }; + /** - * @internal - * Set properties on `context` before eval-ing [stdin] or [eval] input. + * Walk over the tree of SourceNodes. The walking function is called for each + * source file content and is passed the filename and source content. + * + * @param aFn The traversal function. */ -function setupContext(context, module, filenameAndDirname) { - if (filenameAndDirname) { - context.__dirname = '.'; - context.__filename = `[${filenameAndDirname}]`; +SourceNode.prototype.walkSourceContents = + function SourceNode_walkSourceContents(aFn) { + for (var i = 0, len = this.children.length; i < len; i++) { + if (this.children[i][isSourceNode]) { + this.children[i].walkSourceContents(aFn); + } } - context.module = module; - context.exports = module.exports; - context.require = __nccwpck_require__(3833).bind(module); -} -exports.setupContext = setupContext; -//# sourceMappingURL=repl.js.map -/***/ }), + var sources = Object.keys(this.sourceContents); + for (var i = 0, len = sources.length; i < len; i++) { + aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); + } + }; -/***/ 19148: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; +/** + * Return the string representation of this source node. Walks over the tree + * and concatenates all the various snippets together to one string. + */ +SourceNode.prototype.toString = function SourceNode_toString() { + var str = ""; + this.walk(function (chunk) { + str += chunk; + }); + return str; +}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.createResolverFunctions = void 0; -const path_1 = __nccwpck_require__(71017); /** - * @internal - * In a factory because these are shared across both CompilerHost and LanguageService codepaths + * Returns the string representation of this source node along with a source + * map. */ -function createResolverFunctions(kwargs) { - const { host, ts, config, cwd, getCanonicalFileName, projectLocalResolveHelper, options, extensions, } = kwargs; - const moduleResolutionCache = ts.createModuleResolutionCache(cwd, getCanonicalFileName, config.options); - const knownInternalFilenames = new Set(); - /** "Buckets" (module directories) whose contents should be marked "internal" */ - const internalBuckets = new Set(); - // Get bucket for a source filename. Bucket is the containing `./node_modules/*/` directory - // For '/project/node_modules/foo/node_modules/bar/lib/index.js' bucket is '/project/node_modules/foo/node_modules/bar/' - // For '/project/node_modules/foo/node_modules/@scope/bar/lib/index.js' bucket is '/project/node_modules/foo/node_modules/@scope/bar/' - const moduleBucketRe = /.*\/node_modules\/(?:@[^\/]+\/)?[^\/]+\//; - function getModuleBucket(filename) { - const find = moduleBucketRe.exec(filename); - if (find) - return find[0]; - return ''; - } - // Mark that this file and all siblings in its bucket should be "internal" - function markBucketOfFilenameInternal(filename) { - internalBuckets.add(getModuleBucket(filename)); - } - function isFileInInternalBucket(filename) { - return internalBuckets.has(getModuleBucket(filename)); - } - function isFileKnownToBeInternal(filename) { - return knownInternalFilenames.has(filename); - } - /** - * If we need to emit JS for a file, force TS to consider it non-external - */ - const fixupResolvedModule = (resolvedModule) => { - const { resolvedFileName } = resolvedModule; - if (resolvedFileName === undefined) - return; - // [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS] - // .ts,.mts,.cts is always switched to internal - // .js is switched on-demand - if (resolvedModule.isExternalLibraryImport && - ((resolvedFileName.endsWith('.ts') && - !resolvedFileName.endsWith('.d.ts')) || - (resolvedFileName.endsWith('.cts') && - !resolvedFileName.endsWith('.d.cts')) || - (resolvedFileName.endsWith('.mts') && - !resolvedFileName.endsWith('.d.mts')) || - isFileKnownToBeInternal(resolvedFileName) || - isFileInInternalBucket(resolvedFileName))) { - resolvedModule.isExternalLibraryImport = false; - } - if (!resolvedModule.isExternalLibraryImport) { - knownInternalFilenames.add(resolvedFileName); - } - }; - /* - * NOTE: - * Older ts versions do not pass `redirectedReference` nor `options`. - * We must pass `redirectedReference` to newer ts versions, but cannot rely on `options`, hence the weird argument name - */ - const resolveModuleNames = (moduleNames, containingFile, reusedNames, redirectedReference, optionsOnlyWithNewerTsVersions, containingSourceFile) => { - return moduleNames.map((moduleName, i) => { - var _a, _b; - const mode = containingSourceFile - ? (_b = (_a = ts).getModeForResolutionAtIndex) === null || _b === void 0 ? void 0 : _b.call(_a, containingSourceFile, i) - : undefined; - let { resolvedModule } = ts.resolveModuleName(moduleName, containingFile, config.options, host, moduleResolutionCache, redirectedReference, mode); - if (!resolvedModule && options.experimentalTsImportSpecifiers) { - const lastDotIndex = moduleName.lastIndexOf('.'); - const ext = lastDotIndex >= 0 ? moduleName.slice(lastDotIndex) : ''; - if (ext) { - const replacements = extensions.tsResolverEquivalents.get(ext); - for (const replacementExt of replacements !== null && replacements !== void 0 ? replacements : []) { - ({ resolvedModule } = ts.resolveModuleName(moduleName.slice(0, -ext.length) + replacementExt, containingFile, config.options, host, moduleResolutionCache, redirectedReference, mode)); - if (resolvedModule) - break; - } - } - } - if (resolvedModule) { - fixupResolvedModule(resolvedModule); - } - return resolvedModule; +SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { + var generated = { + code: "", + line: 1, + column: 0 + }; + var map = new SourceMapGenerator(aArgs); + var sourceMappingActive = false; + var lastOriginalSource = null; + var lastOriginalLine = null; + var lastOriginalColumn = null; + var lastOriginalName = null; + this.walk(function (chunk, original) { + generated.code += chunk; + if (original.source !== null + && original.line !== null + && original.column !== null) { + if(lastOriginalSource !== original.source + || lastOriginalLine !== original.line + || lastOriginalColumn !== original.column + || lastOriginalName !== original.name) { + map.addMapping({ + source: original.source, + original: { + line: original.line, + column: original.column + }, + generated: { + line: generated.line, + column: generated.column + }, + name: original.name }); - }; - // language service never calls this, but TS docs recommend that we implement it - const getResolvedModuleWithFailedLookupLocationsFromCache = (moduleName, containingFile, resolutionMode) => { - const ret = ts.resolveModuleNameFromCache(moduleName, containingFile, moduleResolutionCache, resolutionMode); - if (ret && ret.resolvedModule) { - fixupResolvedModule(ret.resolvedModule); + } + lastOriginalSource = original.source; + lastOriginalLine = original.line; + lastOriginalColumn = original.column; + lastOriginalName = original.name; + sourceMappingActive = true; + } else if (sourceMappingActive) { + map.addMapping({ + generated: { + line: generated.line, + column: generated.column } - return ret; - }; - const resolveTypeReferenceDirectives = (typeDirectiveNames, containingFile, redirectedReference, options, containingFileMode // new impliedNodeFormat is accepted by compilerHost - ) => { - // Note: seems to be called with empty typeDirectiveNames array for all files. - // TODO consider using `ts.loadWithTypeDirectiveCache` - return typeDirectiveNames.map((typeDirectiveName) => { - // Copy-pasted from TS source: - const nameIsString = typeof typeDirectiveName === 'string'; - const mode = nameIsString - ? undefined - : ts.getModeForFileReference(typeDirectiveName, containingFileMode); - const strName = nameIsString - ? typeDirectiveName - : typeDirectiveName.fileName.toLowerCase(); - let { resolvedTypeReferenceDirective } = ts.resolveTypeReferenceDirective(strName, containingFile, config.options, host, redirectedReference, undefined, mode); - if (typeDirectiveName === 'node' && !resolvedTypeReferenceDirective) { - // Resolve @types/node relative to project first, then __dirname (copy logic from elsewhere / refactor into reusable function) - let typesNodePackageJsonPath; - try { - typesNodePackageJsonPath = projectLocalResolveHelper('@types/node/package.json', true); - } - catch { } // gracefully do nothing when @types/node is not installed for any reason - if (typesNodePackageJsonPath) { - const typeRoots = [(0, path_1.resolve)(typesNodePackageJsonPath, '../..')]; - ({ resolvedTypeReferenceDirective } = - ts.resolveTypeReferenceDirective(typeDirectiveName, containingFile, { - ...config.options, - typeRoots, - }, host, redirectedReference)); - } - } - if (resolvedTypeReferenceDirective) { - fixupResolvedModule(resolvedTypeReferenceDirective); - } - return resolvedTypeReferenceDirective; - }); - }; - return { - resolveModuleNames, - getResolvedModuleWithFailedLookupLocationsFromCache, - resolveTypeReferenceDirectives, - isFileKnownToBeInternal, - markBucketOfFilenameInternal, - }; -} -exports.createResolverFunctions = createResolverFunctions; -//# sourceMappingURL=resolver-functions.js.map + }); + lastOriginalSource = null; + sourceMappingActive = false; + } + for (var idx = 0, length = chunk.length; idx < length; idx++) { + if (chunk.charCodeAt(idx) === NEWLINE_CODE) { + generated.line++; + generated.column = 0; + // Mappings end at eol + if (idx + 1 === length) { + lastOriginalSource = null; + sourceMappingActive = false; + } else if (sourceMappingActive) { + map.addMapping({ + source: original.source, + original: { + line: original.line, + column: original.column + }, + generated: { + line: generated.line, + column: generated.column + }, + name: original.name + }); + } + } else { + generated.column++; + } + } + }); + this.walkSourceContents(function (sourceFile, sourceContent) { + map.setSourceContent(sourceFile, sourceContent); + }); + + return { code: generated.code, map: map }; +}; + +__webpack_unused_export__ = SourceNode; + /***/ }), -/***/ 14851: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ 12344: +/***/ ((__unused_webpack_module, exports) => { -"use strict"; +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getEmitScriptTarget = exports.getUseDefineForClassFields = exports.getPatternFromSpec = exports.createTsInternals = void 0; -const path_1 = __nccwpck_require__(71017); -const util_1 = __nccwpck_require__(64745); -/** @internal */ -exports.createTsInternals = (0, util_1.cachedLookup)(createTsInternalsUncached); /** - * Given a reference to the TS compiler, return some TS internal functions that we - * could not or did not want to grab off the `ts` object. - * These have been copy-pasted from TS's source and tweaked as necessary. + * This is a helper function for getting values from parameter/options + * objects. * - * NOTE: This factory returns *only* functions which need a reference to the TS - * compiler. Other functions do not need a reference to the TS compiler so are - * exported directly from this file. + * @param args The object we are extracting values from + * @param name The name of the property we are getting. + * @param defaultValue An optional value to return if the property is missing + * from the object. If this is not specified and the property is missing, an + * error will be thrown. */ -function createTsInternalsUncached(_ts) { - const ts = _ts; - /** - * Copied from: - * https://github.com/microsoft/TypeScript/blob/v4.3.2/src/compiler/commandLineParser.ts#L2821-L2846 - */ - function getExtendsConfigPath(extendedConfig, host, basePath, errors, createDiagnostic) { - extendedConfig = (0, util_1.normalizeSlashes)(extendedConfig); - if (isRootedDiskPath(extendedConfig) || - startsWith(extendedConfig, './') || - startsWith(extendedConfig, '../')) { - let extendedConfigPath = getNormalizedAbsolutePath(extendedConfig, basePath); - if (!host.fileExists(extendedConfigPath) && - !endsWith(extendedConfigPath, ts.Extension.Json)) { - extendedConfigPath = `${extendedConfigPath}.json`; - if (!host.fileExists(extendedConfigPath)) { - errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig)); - return undefined; - } - } - return extendedConfigPath; - } - // If the path isn't a rooted or relative path, resolve like a module - const tsGte5_3_0 = (0, util_1.versionGteLt)(ts.version, '5.3.0'); - const resolved = ts.nodeModuleNameResolver(extendedConfig, combinePaths(basePath, 'tsconfig.json'), { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host, - /*cache*/ undefined, - /*projectRefs*/ undefined, - /*conditionsOrIsConfigLookup*/ tsGte5_3_0 ? undefined : true, - /*isConfigLookup*/ tsGte5_3_0 ? true : undefined); - if (resolved.resolvedModule) { - return resolved.resolvedModule.resolvedFileName; - } - errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig)); - return undefined; - } - return { getExtendsConfigPath }; -} -// These functions have alternative implementation to avoid copying too much from TS -function isRootedDiskPath(path) { - return (0, path_1.isAbsolute)(path); -} -function combinePaths(path, ...paths) { - return (0, util_1.normalizeSlashes)((0, path_1.resolve)(path, ...paths.filter((path) => path))); -} -function getNormalizedAbsolutePath(fileName, currentDirectory) { - return (0, util_1.normalizeSlashes)(currentDirectory != null - ? (0, path_1.resolve)(currentDirectory, fileName) - : (0, path_1.resolve)(fileName)); +function getArg(aArgs, aName, aDefaultValue) { + if (aName in aArgs) { + return aArgs[aName]; + } else if (arguments.length === 3) { + return aDefaultValue; + } else { + throw new Error('"' + aName + '" is a required argument.'); + } } -function startsWith(str, prefix) { - return str.lastIndexOf(prefix, 0) === 0; +exports.getArg = getArg; + +var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; +var dataUrlRegexp = /^data:.+\,.+$/; + +function urlParse(aUrl) { + var match = aUrl.match(urlRegexp); + if (!match) { + return null; + } + return { + scheme: match[1], + auth: match[2], + host: match[3], + port: match[4], + path: match[5] + }; } -function endsWith(str, suffix) { - const expectedPos = str.length - suffix.length; - return expectedPos >= 0 && str.indexOf(suffix, expectedPos) === expectedPos; +exports.urlParse = urlParse; + +function urlGenerate(aParsedUrl) { + var url = ''; + if (aParsedUrl.scheme) { + url += aParsedUrl.scheme + ':'; + } + url += '//'; + if (aParsedUrl.auth) { + url += aParsedUrl.auth + '@'; + } + if (aParsedUrl.host) { + url += aParsedUrl.host; + } + if (aParsedUrl.port) { + url += ":" + aParsedUrl.port + } + if (aParsedUrl.path) { + url += aParsedUrl.path; + } + return url; } -// Reserved characters, forces escaping of any non-word (or digit), non-whitespace character. -// It may be inefficient (we could just match (/[-[\]{}()*+?.,\\^$|#\s]/g), but this is future -// proof. -const reservedCharacterPattern = /[^\w\s\/]/g; +exports.urlGenerate = urlGenerate; + /** - * @internal - * See also: getRegularExpressionForWildcard, which seems to do almost the same thing + * Normalizes a path, or the path portion of a URL: + * + * - Replaces consecutive slashes with one slash. + * - Removes unnecessary '.' parts. + * - Removes unnecessary '/..' parts. + * + * Based on code in the Node.js 'path' core module. + * + * @param aPath The path or url to normalize. */ -function getPatternFromSpec(spec, basePath) { - const pattern = spec && getSubPatternFromSpec(spec, basePath, excludeMatcher); - return pattern && `^(${pattern})${'($|/)'}`; -} -exports.getPatternFromSpec = getPatternFromSpec; -function getSubPatternFromSpec(spec, basePath, { singleAsteriskRegexFragment, doubleAsteriskRegexFragment, replaceWildcardCharacter, }) { - let subpattern = ''; - let hasWrittenComponent = false; - const components = getNormalizedPathComponents(spec, basePath); - const lastComponent = last(components); - // getNormalizedPathComponents includes the separator for the root component. - // We need to remove to create our regex correctly. - components[0] = removeTrailingDirectorySeparator(components[0]); - if (isImplicitGlob(lastComponent)) { - components.push('**', '*'); - } - let optionalCount = 0; - for (let component of components) { - if (component === '**') { - subpattern += doubleAsteriskRegexFragment; - } - else { - if (hasWrittenComponent) { - subpattern += directorySeparator; - } - subpattern += component.replace(reservedCharacterPattern, replaceWildcardCharacter); - } - hasWrittenComponent = true; - } - while (optionalCount > 0) { - subpattern += ')?'; - optionalCount--; - } - return subpattern; -} -const directoriesMatcher = { - singleAsteriskRegexFragment: '[^/]*', - /** - * Regex for the ** wildcard. Matches any num of subdirectories. When used for including - * files or directories, does not match subdirectories that start with a . character - */ - doubleAsteriskRegexFragment: `(/[^/.][^/]*)*?`, - replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment), -}; -const excludeMatcher = { - singleAsteriskRegexFragment: '[^/]*', - doubleAsteriskRegexFragment: '(/.+?)?', - replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, excludeMatcher.singleAsteriskRegexFragment), -}; -function getNormalizedPathComponents(path, currentDirectory) { - return reducePathComponents(getPathComponents(path, currentDirectory)); -} -function getPathComponents(path, currentDirectory = '') { - path = combinePaths(currentDirectory, path); - return pathComponents(path, getRootLength(path)); -} -function reducePathComponents(components) { - if (!some(components)) - return []; - const reduced = [components[0]]; - for (let i = 1; i < components.length; i++) { - const component = components[i]; - if (!component) - continue; - if (component === '.') - continue; - if (component === '..') { - if (reduced.length > 1) { - if (reduced[reduced.length - 1] !== '..') { - reduced.pop(); - continue; - } - } - else if (reduced[0]) - continue; - } - reduced.push(component); - } - return reduced; -} -function getRootLength(path) { - const rootLength = getEncodedRootLength(path); - return rootLength < 0 ? ~rootLength : rootLength; -} -function getEncodedRootLength(path) { - if (!path) - return 0; - const ch0 = path.charCodeAt(0); - // POSIX or UNC - if (ch0 === 47 /* CharacterCodes.slash */ || ch0 === 92 /* CharacterCodes.backslash */) { - if (path.charCodeAt(1) !== ch0) - return 1; // POSIX: "/" (or non-normalized "\") - const p1 = path.indexOf(ch0 === 47 /* CharacterCodes.slash */ ? directorySeparator : altDirectorySeparator, 2); - if (p1 < 0) - return path.length; // UNC: "//server" or "\\server" - return p1 + 1; // UNC: "//server/" or "\\server\" - } - // DOS - if (isVolumeCharacter(ch0) && path.charCodeAt(1) === 58 /* CharacterCodes.colon */) { - const ch2 = path.charCodeAt(2); - if (ch2 === 47 /* CharacterCodes.slash */ || ch2 === 92 /* CharacterCodes.backslash */) - return 3; // DOS: "c:/" or "c:\" - if (path.length === 2) - return 2; // DOS: "c:" (but not "c:d") - } - // URL - const schemeEnd = path.indexOf(urlSchemeSeparator); - if (schemeEnd !== -1) { - const authorityStart = schemeEnd + urlSchemeSeparator.length; - const authorityEnd = path.indexOf(directorySeparator, authorityStart); - if (authorityEnd !== -1) { - // URL: "file:///", "file://server/", "file://server/path" - // For local "file" URLs, include the leading DOS volume (if present). - // Per https://www.ietf.org/rfc/rfc1738.txt, a host of "" or "localhost" is a - // special case interpreted as "the machine from which the URL is being interpreted". - const scheme = path.slice(0, schemeEnd); - const authority = path.slice(authorityStart, authorityEnd); - if (scheme === 'file' && - (authority === '' || authority === 'localhost') && - isVolumeCharacter(path.charCodeAt(authorityEnd + 1))) { - const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path, authorityEnd + 2); - if (volumeSeparatorEnd !== -1) { - if (path.charCodeAt(volumeSeparatorEnd) === 47 /* CharacterCodes.slash */) { - // URL: "file:///c:/", "file://localhost/c:/", "file:///c%3a/", "file://localhost/c%3a/" - return ~(volumeSeparatorEnd + 1); - } - if (volumeSeparatorEnd === path.length) { - // URL: "file:///c:", "file://localhost/c:", "file:///c$3a", "file://localhost/c%3a" - // but not "file:///c:d" or "file:///c%3ad" - return ~volumeSeparatorEnd; - } - } - } - return ~(authorityEnd + 1); // URL: "file://server/", "http://server/" - } - return ~path.length; // URL: "file://server", "http://server" - } - // relative - return 0; -} -function ensureTrailingDirectorySeparator(path) { - if (!hasTrailingDirectorySeparator(path)) { - return path + directorySeparator; - } - return path; -} -function hasTrailingDirectorySeparator(path) { - return (path.length > 0 && isAnyDirectorySeparator(path.charCodeAt(path.length - 1))); -} -function isAnyDirectorySeparator(charCode) { - return (charCode === 47 /* CharacterCodes.slash */ || charCode === 92 /* CharacterCodes.backslash */); -} -function removeTrailingDirectorySeparator(path) { - if (hasTrailingDirectorySeparator(path)) { - return path.substr(0, path.length - 1); - } - return path; -} -const directorySeparator = '/'; -const altDirectorySeparator = '\\'; -const urlSchemeSeparator = '://'; -function isVolumeCharacter(charCode) { - return ((charCode >= 97 /* CharacterCodes.a */ && charCode <= 122 /* CharacterCodes.z */) || - (charCode >= 65 /* CharacterCodes.A */ && charCode <= 90 /* CharacterCodes.Z */)); -} -function getFileUrlVolumeSeparatorEnd(url, start) { - const ch0 = url.charCodeAt(start); - if (ch0 === 58 /* CharacterCodes.colon */) - return start + 1; - if (ch0 === 37 /* CharacterCodes.percent */ && - url.charCodeAt(start + 1) === 51 /* CharacterCodes._3 */) { - const ch2 = url.charCodeAt(start + 2); - if (ch2 === 97 /* CharacterCodes.a */ || ch2 === 65 /* CharacterCodes.A */) - return start + 3; +function normalize(aPath) { + var path = aPath; + var url = urlParse(aPath); + if (url) { + if (!url.path) { + return aPath; } - return -1; -} -function some(array, predicate) { - if (array) { - if (predicate) { - for (const v of array) { - if (predicate(v)) { - return true; - } - } - } - else { - return array.length > 0; - } + path = url.path; + } + var isAbsolute = exports.isAbsolute(path); + + var parts = path.split(/\/+/); + for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { + part = parts[i]; + if (part === '.') { + parts.splice(i, 1); + } else if (part === '..') { + up++; + } else if (up > 0) { + if (part === '') { + // The first part is blank if the path is absolute. Trying to go + // above the root is a no-op. Therefore we can remove all '..' parts + // directly after the root. + parts.splice(i + 1, up); + up = 0; + } else { + parts.splice(i, 2); + up--; + } } - return false; -} -function pathComponents(path, rootLength) { - const root = path.substring(0, rootLength); - const rest = path.substring(rootLength).split(directorySeparator); - if (rest.length && !lastOrUndefined(rest)) - rest.pop(); - return [root, ...rest]; -} -function lastOrUndefined(array) { - return array.length === 0 ? undefined : array[array.length - 1]; -} -function last(array) { - // Debug.assert(array.length !== 0); - return array[array.length - 1]; -} -function replaceWildcardCharacter(match, singleAsteriskRegexFragment) { - return match === '*' - ? singleAsteriskRegexFragment - : match === '?' - ? '[^/]' - : '\\' + match; + } + path = parts.join('/'); + + if (path === '') { + path = isAbsolute ? '/' : '.'; + } + + if (url) { + url.path = path; + return urlGenerate(url); + } + return path; } +exports.normalize = normalize; + /** - * An "includes" path "foo" is implicitly a glob "foo/** /*" (without the space) if its last component has no extension, - * and does not contain any glob characters itself. + * Joins two paths/URLs. + * + * @param aRoot The root path or URL. + * @param aPath The path or URL to be joined with the root. + * + * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a + * scheme-relative URL: Then the scheme of aRoot, if any, is prepended + * first. + * - Otherwise aPath is a path. If aRoot is a URL, then its path portion + * is updated with the result and aRoot is returned. Otherwise the result + * is returned. + * - If aPath is absolute, the result is aPath. + * - Otherwise the two paths are joined with a slash. + * - Joining for example 'http://' and 'www.example.com' is also supported. */ -function isImplicitGlob(lastPathComponent) { - return !/[.*?]/.test(lastPathComponent); -} -const ts_ScriptTarget_ES5 = 1; -const ts_ScriptTarget_ES2022 = 9; -const ts_ScriptTarget_ESNext = 99; -const ts_ModuleKind_Node16 = 100; -const ts_ModuleKind_NodeNext = 199; -// https://github.com/microsoft/TypeScript/blob/fc418a2e611c88cf9afa0115ff73490b2397d311/src/compiler/utilities.ts#L8761 -function getUseDefineForClassFields(compilerOptions) { - return compilerOptions.useDefineForClassFields === undefined - ? getEmitScriptTarget(compilerOptions) >= ts_ScriptTarget_ES2022 - : compilerOptions.useDefineForClassFields; -} -exports.getUseDefineForClassFields = getUseDefineForClassFields; -// https://github.com/microsoft/TypeScript/blob/fc418a2e611c88cf9afa0115ff73490b2397d311/src/compiler/utilities.ts#L8556 -function getEmitScriptTarget(compilerOptions) { - var _a; - return ((_a = compilerOptions.target) !== null && _a !== void 0 ? _a : ((compilerOptions.module === ts_ModuleKind_Node16 && ts_ScriptTarget_ES2022) || - (compilerOptions.module === ts_ModuleKind_NodeNext && ts_ScriptTarget_ESNext) || - ts_ScriptTarget_ES5)); -} -exports.getEmitScriptTarget = getEmitScriptTarget; -//# sourceMappingURL=ts-internals.js.map - -/***/ }), +function join(aRoot, aPath) { + if (aRoot === "") { + aRoot = "."; + } + if (aPath === "") { + aPath = "."; + } + var aPathUrl = urlParse(aPath); + var aRootUrl = urlParse(aRoot); + if (aRootUrl) { + aRoot = aRootUrl.path || '/'; + } -/***/ 4444: -/***/ ((__unused_webpack_module, exports) => { + // `join(foo, '//www.example.org')` + if (aPathUrl && !aPathUrl.scheme) { + if (aRootUrl) { + aPathUrl.scheme = aRootUrl.scheme; + } + return urlGenerate(aPathUrl); + } -"use strict"; + if (aPathUrl || aPath.match(dataUrlRegexp)) { + return aPath; + } -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.createTsTranspileModule = void 0; -/** @internal */ -function createTsTranspileModule(ts, transpileOptions) { - const { createProgram, createSourceFile, getDefaultCompilerOptions, getImpliedNodeFormatForFile, fixupCompilerOptions, transpileOptionValueCompilerOptions, getNewLineCharacter, fileExtensionIs, normalizePath, Debug, toPath, getSetExternalModuleIndicator, getEntries, addRange, hasProperty, getEmitScriptTarget, getDirectoryPath, } = ts; - const compilerOptionsDiagnostics = []; - const options = transpileOptions.compilerOptions - ? fixupCompilerOptions(transpileOptions.compilerOptions, compilerOptionsDiagnostics) - : {}; - // mix in default options - const defaultOptions = getDefaultCompilerOptions(); - for (const key in defaultOptions) { - if (hasProperty(defaultOptions, key) && options[key] === undefined) { - options[key] = defaultOptions[key]; - } - } - for (const option of transpileOptionValueCompilerOptions) { - options[option.name] = option.transpileOptionValue; - } - // transpileModule does not write anything to disk so there is no need to verify that there are no conflicts between input and output paths. - options.suppressOutputPathCheck = true; - // Filename can be non-ts file. - options.allowNonTsExtensions = true; - const newLine = getNewLineCharacter(options); - // Create a compilerHost object to allow the compiler to read and write files - const compilerHost = { - getSourceFile: (fileName) => fileName === normalizePath(inputFileName) ? sourceFile : undefined, - writeFile: (name, text) => { - if (fileExtensionIs(name, '.map')) { - Debug.assertEqual(sourceMapText, undefined, 'Unexpected multiple source map outputs, file:', name); - sourceMapText = text; - } - else { - Debug.assertEqual(outputText, undefined, 'Unexpected multiple outputs, file:', name); - outputText = text; - } - }, - getDefaultLibFileName: () => 'lib.d.ts', - useCaseSensitiveFileNames: () => true, - getCanonicalFileName: (fileName) => fileName, - getCurrentDirectory: () => '', - getNewLine: () => newLine, - fileExists: (fileName) => fileName === inputFileName || fileName === packageJsonFileName, - readFile: (fileName) => fileName === packageJsonFileName ? `{"type": "${_packageJsonType}"}` : '', - directoryExists: () => true, - getDirectories: () => [], - }; - let inputFileName; - let packageJsonFileName; - let _packageJsonType; - let sourceFile; - let outputText; - let sourceMapText; - return transpileModule; - function transpileModule(input, transpileOptions2, packageJsonType = 'commonjs') { - // if jsx is specified then treat file as .tsx - inputFileName = - transpileOptions2.fileName || - (transpileOptions.compilerOptions && transpileOptions.compilerOptions.jsx - ? 'module.tsx' - : 'module.ts'); - packageJsonFileName = getDirectoryPath(inputFileName) + '/package.json'; - _packageJsonType = packageJsonType; - sourceFile = createSourceFile(inputFileName, input, { - languageVersion: getEmitScriptTarget(options), - impliedNodeFormat: getImpliedNodeFormatForFile(toPath(inputFileName, '', compilerHost.getCanonicalFileName), - /*cache*/ undefined, compilerHost, options), - setExternalModuleIndicator: getSetExternalModuleIndicator(options), - }); - if (transpileOptions2.moduleName) { - sourceFile.moduleName = transpileOptions2.moduleName; - } - if (transpileOptions2.renamedDependencies) { - sourceFile.renamedDependencies = new Map(getEntries(transpileOptions2.renamedDependencies)); - } - // Output - outputText = undefined; - sourceMapText = undefined; - const program = createProgram([inputFileName], options, compilerHost); - const diagnostics = compilerOptionsDiagnostics.slice(); - if (transpileOptions.reportDiagnostics) { - addRange( - /*to*/ diagnostics, - /*from*/ program.getSyntacticDiagnostics(sourceFile)); - addRange(/*to*/ diagnostics, /*from*/ program.getOptionsDiagnostics()); - } - // Emit - program.emit( - /*targetSourceFile*/ undefined, - /*writeFile*/ undefined, - /*cancellationToken*/ undefined, - /*emitOnlyDtsFiles*/ undefined, transpileOptions.transformers); - if (outputText === undefined) - return Debug.fail('Output generation failed'); - return { outputText, diagnostics, sourceMapText }; - } -} -exports.createTsTranspileModule = createTsTranspileModule; -//# sourceMappingURL=ts-transpile-module.js.map + // `join('http://', 'www.example.com')` + if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { + aRootUrl.host = aPath; + return urlGenerate(aRootUrl); + } -/***/ }), + var joined = aPath.charAt(0) === '/' + ? aPath + : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); -/***/ 91533: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (aRootUrl) { + aRootUrl.path = joined; + return urlGenerate(aRootUrl); + } + return joined; +} +exports.join = join; -"use strict"; +exports.isAbsolute = function (aPath) { + return aPath.charAt(0) === '/' || urlRegexp.test(aPath); +}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getDefaultTsconfigJsonForNodeVersion = void 0; -const nodeMajor = parseInt(process.versions.node.split('.')[0], 10); /** - * return parsed JSON of the bundled @tsconfig/bases config appropriate for the - * running version of nodejs - * @internal + * Make a path relative to a URL or another path. + * + * @param aRoot The root path or URL. + * @param aPath The path or URL to be made relative to aRoot. */ -function getDefaultTsconfigJsonForNodeVersion(ts) { - const tsInternal = ts; - if (nodeMajor >= 16) { - const config = __nccwpck_require__(39777); - if (configCompatible(config)) - return config; - } - if (nodeMajor >= 14) { - const config = __nccwpck_require__(83754); - if (configCompatible(config)) - return config; - } - if (nodeMajor >= 12) { - const config = __nccwpck_require__(56049); - if (configCompatible(config)) - return config; +function relative(aRoot, aPath) { + if (aRoot === "") { + aRoot = "."; + } + + aRoot = aRoot.replace(/\/$/, ''); + + // It is possible for the path to be above the root. In this case, simply + // checking whether the root is a prefix of the path won't work. Instead, we + // need to remove components from the root one by one, until either we find + // a prefix that fits, or we run out of components to remove. + var level = 0; + while (aPath.indexOf(aRoot + '/') !== 0) { + var index = aRoot.lastIndexOf("/"); + if (index < 0) { + return aPath; } - return __nccwpck_require__(78250); - // Verify that tsconfig target and lib options are compatible with TypeScript compiler - function configCompatible(config) { - return (typeof ts.ScriptTarget[config.compilerOptions.target.toUpperCase()] === 'number' && - tsInternal.libs && - config.compilerOptions.lib.every((lib) => tsInternal.libs.includes(lib))); + + // If the only part of the root that is left is the scheme (i.e. http://, + // file:///, etc.), one or more slashes (/), or simply nothing at all, we + // have exhausted all components, so the path is not relative to the root. + aRoot = aRoot.slice(0, index); + if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { + return aPath; } -} -exports.getDefaultTsconfigJsonForNodeVersion = getDefaultTsconfigJsonForNodeVersion; -//# sourceMappingURL=tsconfigs.js.map -/***/ }), + ++level; + } -/***/ 64745: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + // Make sure we add a "../" for each component we removed from the root. + return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); +} +exports.relative = relative; -"use strict"; +var supportsNullProto = (function () { + var obj = Object.create(null); + return !('__proto__' in obj); +}()); -var _a; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.versionGteLt = exports.once = exports.getBasePathForProjectLocalDependencyResolution = exports.createProjectLocalResolveHelper = exports.attemptRequireWithV8CompileCache = exports.cachedLookup = exports.hasOwnProperty = exports.normalizeSlashes = exports.parse = exports.split = exports.assign = exports.yn = exports.createRequire = void 0; -const module_1 = __nccwpck_require__(98188); -const ynModule = __nccwpck_require__(79647); -const path_1 = __nccwpck_require__(71017); -/** @internal */ -exports.createRequire = (_a = module_1.createRequire !== null && module_1.createRequire !== void 0 ? module_1.createRequire : module_1.createRequireFromPath) !== null && _a !== void 0 ? _a : __nccwpck_require__(45830); -/** - * Wrapper around yn module that returns `undefined` instead of `null`. - * This is implemented by yn v4, but we're staying on v3 to avoid v4's node 10 requirement. - * @internal - */ -function yn(value) { - var _a; - return (_a = ynModule(value)) !== null && _a !== void 0 ? _a : undefined; +function identity (s) { + return s; } -exports.yn = yn; + /** - * Like `Object.assign`, but ignores `undefined` properties. + * Because behavior goes wacky when you set `__proto__` on objects, we + * have to prefix all the strings in our set with an arbitrary character. * - * @internal + * See https://github.com/mozilla/source-map/pull/31 and + * https://github.com/mozilla/source-map/issues/30 + * + * @param String aStr */ -function assign(initialValue, ...sources) { - for (const source of sources) { - for (const key of Object.keys(source)) { - const value = source[key]; - if (value !== undefined) - initialValue[key] = value; - } +function toSetString(aStr) { + if (isProtoString(aStr)) { + return '$' + aStr; + } + + return aStr; +} +exports.toSetString = supportsNullProto ? identity : toSetString; + +function fromSetString(aStr) { + if (isProtoString(aStr)) { + return aStr.slice(1); + } + + return aStr; +} +exports.fromSetString = supportsNullProto ? identity : fromSetString; + +function isProtoString(s) { + if (!s) { + return false; + } + + var length = s.length; + + if (length < 9 /* "__proto__".length */) { + return false; + } + + if (s.charCodeAt(length - 1) !== 95 /* '_' */ || + s.charCodeAt(length - 2) !== 95 /* '_' */ || + s.charCodeAt(length - 3) !== 111 /* 'o' */ || + s.charCodeAt(length - 4) !== 116 /* 't' */ || + s.charCodeAt(length - 5) !== 111 /* 'o' */ || + s.charCodeAt(length - 6) !== 114 /* 'r' */ || + s.charCodeAt(length - 7) !== 112 /* 'p' */ || + s.charCodeAt(length - 8) !== 95 /* '_' */ || + s.charCodeAt(length - 9) !== 95 /* '_' */) { + return false; + } + + for (var i = length - 10; i >= 0; i--) { + if (s.charCodeAt(i) !== 36 /* '$' */) { + return false; } - return initialValue; + } + + return true; } -exports.assign = assign; + /** - * Split a string array of values - * and remove empty strings from the resulting array. - * @internal + * Comparator between two mappings where the original positions are compared. + * + * Optionally pass in `true` as `onlyCompareGenerated` to consider two + * mappings with the same original source/line/column, but different generated + * line and column the same. Useful when searching for a mapping with a + * stubbed out mapping. */ -function split(value) { - return typeof value === 'string' - ? value.split(/ *, */g).filter((v) => v !== '') - : undefined; +function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { + var cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0 || onlyCompareOriginal) { + return cmp; + } + + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); } -exports.split = split; +exports.compareByOriginalPositions = compareByOriginalPositions; + /** - * Parse a string as JSON. - * @internal - */ -function parse(value) { - return typeof value === 'string' ? JSON.parse(value) : undefined; -} -exports.parse = parse; -const directorySeparator = '/'; -const backslashRegExp = /\\/g; -/** - * Replace backslashes with forward slashes. - * @internal - */ -function normalizeSlashes(value) { - return value.replace(backslashRegExp, directorySeparator); -} -exports.normalizeSlashes = normalizeSlashes; -/** - * Safe `hasOwnProperty` - * @internal + * Comparator between two mappings with deflated source and name indices where + * the generated positions are compared. + * + * Optionally pass in `true` as `onlyCompareGenerated` to consider two + * mappings with the same generated line and column, but different + * source/name/original line and column the same. Useful when searching for a + * mapping with a stubbed out mapping. */ -function hasOwnProperty(object, property) { - return Object.prototype.hasOwnProperty.call(object, property); +function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { + var cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0 || onlyCompareGenerated) { + return cmp; + } + + cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); } -exports.hasOwnProperty = hasOwnProperty; -/** - * Cached fs operation wrapper. - */ -function cachedLookup(fn) { - const cache = new Map(); - return (arg) => { - if (!cache.has(arg)) { - const v = fn(arg); - cache.set(arg, v); - return v; - } - return cache.get(arg); - }; +exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; + +function strcmp(aStr1, aStr2) { + if (aStr1 === aStr2) { + return 0; + } + + if (aStr1 === null) { + return 1; // aStr2 !== null + } + + if (aStr2 === null) { + return -1; // aStr1 !== null + } + + if (aStr1 > aStr2) { + return 1; + } + + return -1; } -exports.cachedLookup = cachedLookup; + /** - * @internal - * Require something with v8-compile-cache, which should make subsequent requires faster. - * Do lots of error-handling so that, worst case, we require without the cache, and users are not blocked. + * Comparator between two mappings with inflated source and name strings where + * the generated positions are compared. */ -function attemptRequireWithV8CompileCache(requireFn, specifier) { - try { - const v8CC = (__nccwpck_require__(70416).install)(); - try { - return requireFn(specifier); - } - finally { - v8CC === null || v8CC === void 0 ? void 0 : v8CC.uninstall(); - } - } - catch (e) { - return requireFn(specifier); - } +function compareByGeneratedPositionsInflated(mappingA, mappingB) { + var cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0) { + return cmp; + } + + cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); } -exports.attemptRequireWithV8CompileCache = attemptRequireWithV8CompileCache; +exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; + /** - * Helper to discover dependencies relative to a user's project, optionally - * falling back to relative to ts-node. This supports global installations of - * ts-node, for example where someone does `#!/usr/bin/env -S ts-node --swc` and - * we need to fallback to a global install of @swc/core - * @internal + * Strip any JSON XSSI avoidance prefix from the string (as documented + * in the source maps specification), and then parse the string as + * JSON. */ -function createProjectLocalResolveHelper(localDirectory) { - return function projectLocalResolveHelper(specifier, fallbackToTsNodeRelative) { - return require.resolve(specifier, { - paths: fallbackToTsNodeRelative - ? [localDirectory, __dirname] - : [localDirectory], - }); - }; +function parseSourceMapInput(str) { + return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, '')); } -exports.createProjectLocalResolveHelper = createProjectLocalResolveHelper; +exports.parseSourceMapInput = parseSourceMapInput; + /** - * Used as a reminder of all the factors we must consider when finding project-local dependencies and when a config file - * on disk may or may not exist. - * @internal + * Compute the URL of a source given the the source root, the source's + * URL, and the source map's URL. */ -function getBasePathForProjectLocalDependencyResolution(configFilePath, projectSearchDirOption, projectOption, cwdOption) { - var _a; - if (configFilePath != null) - return (0, path_1.dirname)(configFilePath); - return (_a = projectSearchDirOption !== null && projectSearchDirOption !== void 0 ? projectSearchDirOption : projectOption) !== null && _a !== void 0 ? _a : cwdOption; - // TODO technically breaks if projectOption is path to a file, not a directory, - // and we attempt to resolve relative specifiers. By the time we resolve relative specifiers, - // should have configFilePath, so not reach this codepath. -} -exports.getBasePathForProjectLocalDependencyResolution = getBasePathForProjectLocalDependencyResolution; -/** @internal */ -function once(fn) { - let value; - let ran = false; - function onceFn(...args) { - if (ran) - return value; - value = fn(...args); - ran = true; - return value; +function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { + sourceURL = sourceURL || ''; + + if (sourceRoot) { + // This follows what Chrome does. + if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') { + sourceRoot += '/'; } - return onceFn; -} -exports.once = once; -/** @internal */ -function versionGteLt(version, gteRequirement, ltRequirement) { - const [major, minor, patch, extra] = parse(version); - const [gteMajor, gteMinor, gtePatch] = parse(gteRequirement); - const isGte = major > gteMajor || - (major === gteMajor && - (minor > gteMinor || (minor === gteMinor && patch >= gtePatch))); - let isLt = true; - if (ltRequirement) { - const [ltMajor, ltMinor, ltPatch] = parse(ltRequirement); - isLt = - major < ltMajor || - (major === ltMajor && - (minor < ltMinor || (minor === ltMinor && patch < ltPatch))); + // The spec says: + // Line 4: An optional source root, useful for relocating source + // files on a server or removing repeated values in the + // “sources” entry. This value is prepended to the individual + // entries in the “source” field. + sourceURL = sourceRoot + sourceURL; + } + + // Historically, SourceMapConsumer did not take the sourceMapURL as + // a parameter. This mode is still somewhat supported, which is why + // this code block is conditional. However, it's preferable to pass + // the source map URL to SourceMapConsumer, so that this function + // can implement the source URL resolution algorithm as outlined in + // the spec. This block is basically the equivalent of: + // new URL(sourceURL, sourceMapURL).toString() + // ... except it avoids using URL, which wasn't available in the + // older releases of node still supported by this library. + // + // The spec says: + // If the sources are not absolute URLs after prepending of the + // “sourceRoot”, the sources are resolved relative to the + // SourceMap (like resolving script src in a html document). + if (sourceMapURL) { + var parsed = urlParse(sourceMapURL); + if (!parsed) { + throw new Error("sourceMapURL could not be parsed"); } - return isGte && isLt; - function parse(requirement) { - return requirement.split(/[\.-]/).map((s) => parseInt(s, 10)); + if (parsed.path) { + // Strip the last path component, but keep the "/". + var index = parsed.path.lastIndexOf('/'); + if (index >= 0) { + parsed.path = parsed.path.substring(0, index + 1); + } } + sourceURL = join(urlGenerate(parsed), sourceURL); + } + + return normalize(sourceURL); } -exports.versionGteLt = versionGteLt; -//# sourceMappingURL=util.js.map +exports.computeSourceURL = computeSourceURL; + /***/ }), -/***/ 12077: +/***/ 56594: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; +/* + * Copyright 2009-2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE.txt or: + * http://opensource.org/licenses/BSD-3-Clause + */ +/* unused reexport */ __nccwpck_require__(69425)/* .SourceMapGenerator */ .h; +exports.SourceMapConsumer = __nccwpck_require__(75155).SourceMapConsumer; +/* unused reexport */ __nccwpck_require__(92616); -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.configLoader = exports.loadConfig = void 0; -var TsConfigLoader2 = __nccwpck_require__(5214); -var path = __nccwpck_require__(71017); -function loadConfig(cwd) { - if (cwd === void 0) { cwd = process.cwd(); } - return configLoader({ cwd: cwd }); -} -exports.loadConfig = loadConfig; -function configLoader(_a) { - var cwd = _a.cwd, explicitParams = _a.explicitParams, _b = _a.tsConfigLoader, tsConfigLoader = _b === void 0 ? TsConfigLoader2.tsConfigLoader : _b; - if (explicitParams) { - var absoluteBaseUrl = path.isAbsolute(explicitParams.baseUrl) - ? explicitParams.baseUrl - : path.join(cwd, explicitParams.baseUrl); - return { - resultType: "success", - configFileAbsolutePath: "", - baseUrl: explicitParams.baseUrl, - absoluteBaseUrl: absoluteBaseUrl, - paths: explicitParams.paths, - mainFields: explicitParams.mainFields, - addMatchAll: explicitParams.addMatchAll, - }; - } - // Load tsconfig and create path matching function - var loadResult = tsConfigLoader({ - cwd: cwd, - getEnv: function (key) { return process.env[key]; }, - }); - if (!loadResult.tsConfigPath) { - return { - resultType: "failed", - message: "Couldn't find tsconfig.json", - }; - } - return { - resultType: "success", - configFileAbsolutePath: loadResult.tsConfigPath, - baseUrl: loadResult.baseUrl, - absoluteBaseUrl: path.resolve(path.dirname(loadResult.tsConfigPath), loadResult.baseUrl || ""), - paths: loadResult.paths || {}, - addMatchAll: loadResult.baseUrl !== undefined, - }; -} -exports.configLoader = configLoader; -//# sourceMappingURL=config-loader.js.map /***/ }), -/***/ 55775: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ 42577: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.removeExtension = exports.fileExistsAsync = exports.readJsonFromDiskAsync = exports.readJsonFromDiskSync = exports.fileExistsSync = void 0; -var fs = __nccwpck_require__(57147); -function fileExistsSync(path) { - // If the file doesn't exist, avoid throwing an exception over the native barrier for every miss - if (!fs.existsSync(path)) { - return false; - } - try { - var stats = fs.statSync(path); - return stats.isFile(); - } - catch (err) { - // If error, assume file did not exist - return false; - } -} -exports.fileExistsSync = fileExistsSync; -/** - * Reads package.json from disk - * - * @param file Path to package.json - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function readJsonFromDiskSync(packageJsonPath) { - if (!fs.existsSync(packageJsonPath)) { - return undefined; - } - // eslint-disable-next-line @typescript-eslint/no-require-imports - return require(packageJsonPath); -} -exports.readJsonFromDiskSync = readJsonFromDiskSync; -function readJsonFromDiskAsync(path, -// eslint-disable-next-line @typescript-eslint/no-explicit-any -callback) { - fs.readFile(path, "utf8", function (err, result) { - // If error, assume file did not exist - if (err || !result) { - return callback(); - } - var json = JSON.parse(result); - return callback(undefined, json); - }); -} -exports.readJsonFromDiskAsync = readJsonFromDiskAsync; -function fileExistsAsync(path2, callback2) { - fs.stat(path2, function (err, stats) { - if (err) { - // If error assume file does not exist - return callback2(undefined, false); - } - callback2(undefined, stats ? stats.isFile() : false); - }); -} -exports.fileExistsAsync = fileExistsAsync; -function removeExtension(path) { - return path.substring(0, path.lastIndexOf(".")) || path; -} -exports.removeExtension = removeExtension; -//# sourceMappingURL=filesystem.js.map +const stripAnsi = __nccwpck_require__(45591); +const isFullwidthCodePoint = __nccwpck_require__(64882); +const emojiRegex = __nccwpck_require__(18212); -/***/ }), +const stringWidth = string => { + if (typeof string !== 'string' || string.length === 0) { + return 0; + } -/***/ 56143: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + string = stripAnsi(string); -"use strict"; + if (string.length === 0) { + return 0; + } + + string = string.replace(emojiRegex(), ' '); + + let width = 0; + + for (let i = 0; i < string.length; i++) { + const code = string.codePointAt(i); + + // Ignore control characters + if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) { + continue; + } + + // Ignore combining characters + if (code >= 0x300 && code <= 0x36F) { + continue; + } + + // Surrogates + if (code > 0xFFFF) { + i++; + } + + width += isFullwidthCodePoint(code) ? 2 : 1; + } + + return width; +}; + +module.exports = stringWidth; +// TODO: remove this in the next major version +module.exports["default"] = stringWidth; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.loadConfig = exports.register = exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = exports.matchFromAbsolutePaths = exports.createMatchPath = void 0; -// register is used from register.js in root dir -var match_path_sync_1 = __nccwpck_require__(21810); -Object.defineProperty(exports, "createMatchPath", ({ enumerable: true, get: function () { return match_path_sync_1.createMatchPath; } })); -Object.defineProperty(exports, "matchFromAbsolutePaths", ({ enumerable: true, get: function () { return match_path_sync_1.matchFromAbsolutePaths; } })); -var match_path_async_1 = __nccwpck_require__(74479); -Object.defineProperty(exports, "createMatchPathAsync", ({ enumerable: true, get: function () { return match_path_async_1.createMatchPathAsync; } })); -Object.defineProperty(exports, "matchFromAbsolutePathsAsync", ({ enumerable: true, get: function () { return match_path_async_1.matchFromAbsolutePathsAsync; } })); -var register_1 = __nccwpck_require__(25174); -Object.defineProperty(exports, "register", ({ enumerable: true, get: function () { return register_1.register; } })); -var config_loader_1 = __nccwpck_require__(12077); -Object.defineProperty(exports, "loadConfig", ({ enumerable: true, get: function () { return config_loader_1.loadConfig; } })); -//# sourceMappingURL=index.js.map /***/ }), -/***/ 25121: +/***/ 94841: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getAbsoluteMappingEntries = void 0; -var path = __nccwpck_require__(71017); -/** - * Converts an absolute baseUrl and paths to an array of absolute mapping entries. - * The array is sorted by longest prefix. - * Having an array with entries allows us to keep a sorting order rather than - * sort by keys each time we use the mappings. - * - * @param absoluteBaseUrl - * @param paths - * @param addMatchAll - */ -function getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll) { - // Resolve all paths to absolute form once here, and sort them by - // longest prefix once here, this saves time on each request later. - // We need to put them in an array to preserve the sorting order. - var sortedKeys = sortByLongestPrefix(Object.keys(paths)); - var absolutePaths = []; - for (var _i = 0, sortedKeys_1 = sortedKeys; _i < sortedKeys_1.length; _i++) { - var key = sortedKeys_1[_i]; - absolutePaths.push({ - pattern: key, - paths: paths[key].map(function (pathToResolve) { - return path.resolve(absoluteBaseUrl, pathToResolve); - }), - }); - } - // If there is no match-all path specified in the paths section of tsconfig, then try to match - // all paths relative to baseUrl, this is how typescript works. - if (!paths["*"] && addMatchAll) { - absolutePaths.push({ - pattern: "*", - paths: ["".concat(absoluteBaseUrl.replace(/\/$/, ""), "/*")], - }); + + +/**/ + +var Buffer = (__nccwpck_require__(21867).Buffer); +/**/ + +var isEncoding = Buffer.isEncoding || function (encoding) { + encoding = '' + encoding; + switch (encoding && encoding.toLowerCase()) { + case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw': + return true; + default: + return false; + } +}; + +function _normalizeEncoding(enc) { + if (!enc) return 'utf8'; + var retried; + while (true) { + switch (enc) { + case 'utf8': + case 'utf-8': + return 'utf8'; + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return 'utf16le'; + case 'latin1': + case 'binary': + return 'latin1'; + case 'base64': + case 'ascii': + case 'hex': + return enc; + default: + if (retried) return; // undefined + enc = ('' + enc).toLowerCase(); + retried = true; } - return absolutePaths; -} -exports.getAbsoluteMappingEntries = getAbsoluteMappingEntries; -/** - * Sort path patterns. - * If a module name can be matched with multiple patterns then pattern with the longest prefix will be picked. - */ -function sortByLongestPrefix(arr) { - return arr - .concat() - .sort(function (a, b) { return getPrefixLength(b) - getPrefixLength(a); }); + } +}; + +// Do not cache `Buffer.isEncoding` when checking encoding names as some +// modules monkey-patch it to support additional encodings +function normalizeEncoding(enc) { + var nenc = _normalizeEncoding(enc); + if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc); + return nenc || enc; } -function getPrefixLength(pattern) { - var prefixLength = pattern.indexOf("*"); - return pattern.substr(0, prefixLength).length; + +// StringDecoder provides an interface for efficiently splitting a series of +// buffers into a series of JS strings without breaking apart multi-byte +// characters. +exports.s = StringDecoder; +function StringDecoder(encoding) { + this.encoding = normalizeEncoding(encoding); + var nb; + switch (this.encoding) { + case 'utf16le': + this.text = utf16Text; + this.end = utf16End; + nb = 4; + break; + case 'utf8': + this.fillLast = utf8FillLast; + nb = 4; + break; + case 'base64': + this.text = base64Text; + this.end = base64End; + nb = 3; + break; + default: + this.write = simpleWrite; + this.end = simpleEnd; + return; + } + this.lastNeed = 0; + this.lastTotal = 0; + this.lastChar = Buffer.allocUnsafe(nb); } -//# sourceMappingURL=mapping-entry.js.map -/***/ }), +StringDecoder.prototype.write = function (buf) { + if (buf.length === 0) return ''; + var r; + var i; + if (this.lastNeed) { + r = this.fillLast(buf); + if (r === undefined) return ''; + i = this.lastNeed; + this.lastNeed = 0; + } else { + i = 0; + } + if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i); + return r || ''; +}; -/***/ 74479: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +StringDecoder.prototype.end = utf8End; -"use strict"; +// Returns only complete characters in a Buffer +StringDecoder.prototype.text = utf8Text; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = void 0; -var path = __nccwpck_require__(71017); -var TryPath = __nccwpck_require__(44231); -var MappingEntry = __nccwpck_require__(25121); -var Filesystem = __nccwpck_require__(55775); -/** - * See the sync version for docs. - */ -function createMatchPathAsync(absoluteBaseUrl, paths, mainFields, addMatchAll) { - if (mainFields === void 0) { mainFields = ["main"]; } - if (addMatchAll === void 0) { addMatchAll = true; } - var absolutePaths = MappingEntry.getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll); - return function (requestedModule, readJson, fileExists, extensions, callback) { - return matchFromAbsolutePathsAsync(absolutePaths, requestedModule, readJson, fileExists, extensions, callback, mainFields); - }; +// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer +StringDecoder.prototype.fillLast = function (buf) { + if (this.lastNeed <= buf.length) { + buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed); + return this.lastChar.toString(this.encoding, 0, this.lastTotal); + } + buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length); + this.lastNeed -= buf.length; +}; + +// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a +// continuation byte. If an invalid byte is detected, -2 is returned. +function utf8CheckByte(byte) { + if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4; + return byte >> 6 === 0x02 ? -1 : -2; } -exports.createMatchPathAsync = createMatchPathAsync; -/** - * See the sync version for docs. - */ -function matchFromAbsolutePathsAsync(absolutePathMappings, requestedModule, readJson, fileExists, extensions, callback, mainFields) { - if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskAsync; } - if (fileExists === void 0) { fileExists = Filesystem.fileExistsAsync; } - if (extensions === void 0) { extensions = Object.keys(require.extensions); } - if (mainFields === void 0) { mainFields = ["main"]; } - var tryPaths = TryPath.getPathsToTry(extensions, absolutePathMappings, requestedModule); - if (!tryPaths) { - return callback(); + +// Checks at most 3 bytes at the end of a Buffer in order to detect an +// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4) +// needed to complete the UTF-8 character (if applicable) are returned. +function utf8CheckIncomplete(self, buf, i) { + var j = buf.length - 1; + if (j < i) return 0; + var nb = utf8CheckByte(buf[j]); + if (nb >= 0) { + if (nb > 0) self.lastNeed = nb - 1; + return nb; + } + if (--j < i || nb === -2) return 0; + nb = utf8CheckByte(buf[j]); + if (nb >= 0) { + if (nb > 0) self.lastNeed = nb - 2; + return nb; + } + if (--j < i || nb === -2) return 0; + nb = utf8CheckByte(buf[j]); + if (nb >= 0) { + if (nb > 0) { + if (nb === 2) nb = 0;else self.lastNeed = nb - 3; } - findFirstExistingPath(tryPaths, readJson, fileExists, callback, 0, mainFields); + return nb; + } + return 0; } -exports.matchFromAbsolutePathsAsync = matchFromAbsolutePathsAsync; -function findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExistsAsync, doneCallback, index) { - if (index === void 0) { index = 0; } - if (index >= mainFields.length) { - return doneCallback(undefined, undefined); + +// Validates as many continuation bytes for a multi-byte UTF-8 character as +// needed or are available. If we see a non-continuation byte where we expect +// one, we "replace" the validated continuation bytes we've seen so far with +// a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding +// behavior. The continuation byte check is included three times in the case +// where all of the continuation bytes for a character exist in the same buffer. +// It is also done this way as a slight performance increase instead of using a +// loop. +function utf8CheckExtraBytes(self, buf, p) { + if ((buf[0] & 0xC0) !== 0x80) { + self.lastNeed = 0; + return '\ufffd'; + } + if (self.lastNeed > 1 && buf.length > 1) { + if ((buf[1] & 0xC0) !== 0x80) { + self.lastNeed = 1; + return '\ufffd'; } - var tryNext = function () { - return findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExistsAsync, doneCallback, index + 1); - }; - var mainFieldSelector = mainFields[index]; - var mainFieldMapping = typeof mainFieldSelector === "string" - ? packageJson[mainFieldSelector] - : mainFieldSelector.reduce(function (obj, key) { return obj[key]; }, packageJson); - if (typeof mainFieldMapping !== "string") { - // Skip mappings that are not pointers to replacement files - return tryNext(); + if (self.lastNeed > 2 && buf.length > 2) { + if ((buf[2] & 0xC0) !== 0x80) { + self.lastNeed = 2; + return '\ufffd'; + } } - var mappedFilePath = path.join(path.dirname(packageJsonPath), mainFieldMapping); - fileExistsAsync(mappedFilePath, function (err, exists) { - if (err) { - return doneCallback(err); - } - if (exists) { - return doneCallback(undefined, mappedFilePath); - } - return tryNext(); - }); + } } -// Recursive loop to probe for physical files -function findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index, mainFields) { - if (index === void 0) { index = 0; } - if (mainFields === void 0) { mainFields = ["main"]; } - var tryPath = tryPaths[index]; - if (tryPath.type === "file" || - tryPath.type === "extension" || - tryPath.type === "index") { - fileExists(tryPath.path, function (err, exists) { - if (err) { - return doneCallback(err); - } - if (exists) { - return doneCallback(undefined, TryPath.getStrippedPath(tryPath)); - } - if (index === tryPaths.length - 1) { - return doneCallback(); - } - // Continue with the next path - return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields); - }); - } - else if (tryPath.type === "package") { - readJson(tryPath.path, function (err, packageJson) { - if (err) { - return doneCallback(err); - } - if (packageJson) { - return findFirstExistingMainFieldMappedFile(packageJson, mainFields, tryPath.path, fileExists, function (mainFieldErr, mainFieldMappedFile) { - if (mainFieldErr) { - return doneCallback(mainFieldErr); - } - if (mainFieldMappedFile) { - return doneCallback(undefined, mainFieldMappedFile); - } - // No field in package json was a valid option. Continue with the next path. - return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields); - }); - } - // This is async code, we need to return unconditionally, otherwise the code still falls - // through and keeps recursing. While this might work in general, libraries that use neo-async - // like Webpack will actually not allow you to call the same callback twice. - // - // An example of where this caused issues: - // https://github.com/dividab/tsconfig-paths-webpack-plugin/issues/11 - // - // Continue with the next path - return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields); - }); - } - else { - TryPath.exhaustiveTypeException(tryPath.type); - } + +// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer. +function utf8FillLast(buf) { + var p = this.lastTotal - this.lastNeed; + var r = utf8CheckExtraBytes(this, buf, p); + if (r !== undefined) return r; + if (this.lastNeed <= buf.length) { + buf.copy(this.lastChar, p, 0, this.lastNeed); + return this.lastChar.toString(this.encoding, 0, this.lastTotal); + } + buf.copy(this.lastChar, p, 0, buf.length); + this.lastNeed -= buf.length; } -//# sourceMappingURL=match-path-async.js.map -/***/ }), +// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a +// partial character, the character's bytes are buffered until the required +// number of bytes are available. +function utf8Text(buf, i) { + var total = utf8CheckIncomplete(this, buf, i); + if (!this.lastNeed) return buf.toString('utf8', i); + this.lastTotal = total; + var end = buf.length - (total - this.lastNeed); + buf.copy(this.lastChar, 0, end); + return buf.toString('utf8', i, end); +} -/***/ 21810: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +// For UTF-8, a replacement character is added when ending on a partial +// character. +function utf8End(buf) { + var r = buf && buf.length ? this.write(buf) : ''; + if (this.lastNeed) return r + '\ufffd'; + return r; +} -"use strict"; +// UTF-16LE typically needs two bytes per character, but even if we have an even +// number of bytes available, we need to check if we end on a leading/high +// surrogate. In that case, we need to wait for the next two bytes in order to +// decode the last character properly. +function utf16Text(buf, i) { + if ((buf.length - i) % 2 === 0) { + var r = buf.toString('utf16le', i); + if (r) { + var c = r.charCodeAt(r.length - 1); + if (c >= 0xD800 && c <= 0xDBFF) { + this.lastNeed = 2; + this.lastTotal = 4; + this.lastChar[0] = buf[buf.length - 2]; + this.lastChar[1] = buf[buf.length - 1]; + return r.slice(0, -1); + } + } + return r; + } + this.lastNeed = 1; + this.lastTotal = 2; + this.lastChar[0] = buf[buf.length - 1]; + return buf.toString('utf16le', i, buf.length - 1); +} -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.matchFromAbsolutePaths = exports.createMatchPath = void 0; -var path = __nccwpck_require__(71017); -var Filesystem = __nccwpck_require__(55775); -var MappingEntry = __nccwpck_require__(25121); -var TryPath = __nccwpck_require__(44231); -/** - * Creates a function that can resolve paths according to tsconfig paths property. - * - * @param absoluteBaseUrl Absolute version of baseUrl as specified in tsconfig. - * @param paths The paths as specified in tsconfig. - * @param mainFields A list of package.json field names to try when resolving module files. Select a nested field using an array of field names. - * @param addMatchAll Add a match-all "*" rule if none is present - * @returns a function that can resolve paths. - */ -function createMatchPath(absoluteBaseUrl, paths, mainFields, addMatchAll) { - if (mainFields === void 0) { mainFields = ["main"]; } - if (addMatchAll === void 0) { addMatchAll = true; } - var absolutePaths = MappingEntry.getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll); - return function (requestedModule, readJson, fileExists, extensions) { - return matchFromAbsolutePaths(absolutePaths, requestedModule, readJson, fileExists, extensions, mainFields); - }; +// For UTF-16LE we do not explicitly append special replacement characters if we +// end on a partial character, we simply let v8 handle that. +function utf16End(buf) { + var r = buf && buf.length ? this.write(buf) : ''; + if (this.lastNeed) { + var end = this.lastTotal - this.lastNeed; + return r + this.lastChar.toString('utf16le', 0, end); + } + return r; } -exports.createMatchPath = createMatchPath; -/** - * Finds a path from tsconfig that matches a module load request. - * - * @param absolutePathMappings The paths to try as specified in tsconfig but resolved to absolute form. - * @param requestedModule The required module name. - * @param readJson Function that can read json from a path (useful for testing). - * @param fileExists Function that checks for existence of a file at a path (useful for testing). - * @param extensions File extensions to probe for (useful for testing). - * @param mainFields A list of package.json field names to try when resolving module files. Select a nested field using an array of field names. - * @returns the found path, or undefined if no path was found. - */ -function matchFromAbsolutePaths(absolutePathMappings, requestedModule, readJson, fileExists, extensions, mainFields) { - if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskSync; } - if (fileExists === void 0) { fileExists = Filesystem.fileExistsSync; } - if (extensions === void 0) { extensions = Object.keys(require.extensions); } - if (mainFields === void 0) { mainFields = ["main"]; } - var tryPaths = TryPath.getPathsToTry(extensions, absolutePathMappings, requestedModule); - if (!tryPaths) { - return undefined; - } - return findFirstExistingPath(tryPaths, readJson, fileExists, mainFields); + +function base64Text(buf, i) { + var n = (buf.length - i) % 3; + if (n === 0) return buf.toString('base64', i); + this.lastNeed = 3 - n; + this.lastTotal = 3; + if (n === 1) { + this.lastChar[0] = buf[buf.length - 1]; + } else { + this.lastChar[0] = buf[buf.length - 2]; + this.lastChar[1] = buf[buf.length - 1]; + } + return buf.toString('base64', i, buf.length - n); } -exports.matchFromAbsolutePaths = matchFromAbsolutePaths; -function findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExists) { - for (var index = 0; index < mainFields.length; index++) { - var mainFieldSelector = mainFields[index]; - var candidateMapping = typeof mainFieldSelector === "string" - ? packageJson[mainFieldSelector] - : mainFieldSelector.reduce(function (obj, key) { return obj[key]; }, packageJson); - if (candidateMapping && typeof candidateMapping === "string") { - var candidateFilePath = path.join(path.dirname(packageJsonPath), candidateMapping); - if (fileExists(candidateFilePath)) { - return candidateFilePath; - } - } - } - return undefined; + +function base64End(buf) { + var r = buf && buf.length ? this.write(buf) : ''; + if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed); + return r; } -function findFirstExistingPath(tryPaths, readJson, fileExists, mainFields) { - if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskSync; } - if (mainFields === void 0) { mainFields = ["main"]; } - for (var _i = 0, tryPaths_1 = tryPaths; _i < tryPaths_1.length; _i++) { - var tryPath = tryPaths_1[_i]; - if (tryPath.type === "file" || - tryPath.type === "extension" || - tryPath.type === "index") { - if (fileExists(tryPath.path)) { - return TryPath.getStrippedPath(tryPath); - } - } - else if (tryPath.type === "package") { - var packageJson = readJson(tryPath.path); - if (packageJson) { - var mainFieldMappedFile = findFirstExistingMainFieldMappedFile(packageJson, mainFields, tryPath.path, fileExists); - if (mainFieldMappedFile) { - return mainFieldMappedFile; - } - } - } - else { - TryPath.exhaustiveTypeException(tryPath.type); - } - } - return undefined; + +// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex) +function simpleWrite(buf) { + return buf.toString(this.encoding); +} + +function simpleEnd(buf) { + return buf && buf.length ? this.write(buf) : ''; } -//# sourceMappingURL=match-path-sync.js.map /***/ }), -/***/ 25174: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 45591: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); +const ansiRegex = __nccwpck_require__(35465); + +module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string; + + +/***/ }), + +/***/ 35465: +/***/ ((module) => { + +"use strict"; + + +module.exports = ({onlyFirst = false} = {}) => { + const pattern = [ + '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', + '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))' + ].join('|'); + + return new RegExp(pattern, onlyFirst ? undefined : 'g'); }; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.register = void 0; -var match_path_sync_1 = __nccwpck_require__(21810); -var config_loader_1 = __nccwpck_require__(12077); -var noOp = function () { return void 0; }; -function getCoreModules(builtinModules) { - builtinModules = builtinModules || [ - "assert", - "buffer", - "child_process", - "cluster", - "crypto", - "dgram", - "dns", - "domain", - "events", - "fs", - "http", - "https", - "net", - "os", - "path", - "punycode", - "querystring", - "readline", - "stream", - "string_decoder", - "tls", - "tty", - "url", - "util", - "v8", - "vm", - "zlib", - ]; - var coreModules = {}; - for (var _i = 0, builtinModules_1 = builtinModules; _i < builtinModules_1.length; _i++) { - var module_1 = builtinModules_1[_i]; - coreModules[module_1] = true; - } - return coreModules; -} -/** - * Installs a custom module load function that can adhere to paths in tsconfig. - * Returns a function to undo paths registration. - */ -function register(params) { - var cwd; - var explicitParams; - if (params) { - cwd = params.cwd; - if (params.baseUrl || params.paths) { - explicitParams = params; - } - } - else { - // eslint-disable-next-line - var minimist = __nccwpck_require__(35871); - var argv = minimist(process.argv.slice(2), { - // eslint-disable-next-line id-denylist - string: ["project"], - alias: { - project: ["P"], - }, - }); - cwd = argv.project; - } - var configLoaderResult = (0, config_loader_1.configLoader)({ - cwd: cwd !== null && cwd !== void 0 ? cwd : process.cwd(), - explicitParams: explicitParams, - }); - if (configLoaderResult.resultType === "failed") { - console.warn("".concat(configLoaderResult.message, ". tsconfig-paths will be skipped")); - return noOp; - } - var matchPath = (0, match_path_sync_1.createMatchPath)(configLoaderResult.absoluteBaseUrl, configLoaderResult.paths, configLoaderResult.mainFields, configLoaderResult.addMatchAll); - // Patch node's module loading - // eslint-disable-next-line @typescript-eslint/no-require-imports,@typescript-eslint/no-var-requires - var Module = __nccwpck_require__(98188); - // eslint-disable-next-line no-underscore-dangle - var originalResolveFilename = Module._resolveFilename; - var coreModules = getCoreModules(Module.builtinModules); - // eslint-disable-next-line @typescript-eslint/no-explicit-any,no-underscore-dangle - Module._resolveFilename = function (request, _parent) { - var isCoreModule = coreModules.hasOwnProperty(request); - if (!isCoreModule) { - var found = matchPath(request); - if (found) { - var modifiedArguments = __spreadArray([found], [].slice.call(arguments, 1), true); // Passes all arguments. Even those that is not specified above. - return originalResolveFilename.apply(this, modifiedArguments); - } - } - return originalResolveFilename.apply(this, arguments); - }; - return function () { - // Return node's module loading to original state. - // eslint-disable-next-line no-underscore-dangle - Module._resolveFilename = originalResolveFilename; - }; -} -exports.register = register; -//# sourceMappingURL=register.js.map + /***/ }), -/***/ 44231: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ 59318: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.exhaustiveTypeException = exports.getStrippedPath = exports.getPathsToTry = void 0; -var path = __nccwpck_require__(71017); -var path_1 = __nccwpck_require__(71017); -var filesystem_1 = __nccwpck_require__(55775); -/** - * Builds a list of all physical paths to try by: - * 1. Check for file named exactly as request. - * 2. Check for files named as request ending in any of the extensions. - * 3. Check for file specified in package.json's main property. - * 4. Check for files named as request ending in "index" with any of the extensions. - */ -function getPathsToTry(extensions, absolutePathMappings, requestedModule) { - if (!absolutePathMappings || !requestedModule || requestedModule[0] === ".") { - return undefined; - } - var pathsToTry = []; - for (var _i = 0, absolutePathMappings_1 = absolutePathMappings; _i < absolutePathMappings_1.length; _i++) { - var entry = absolutePathMappings_1[_i]; - var starMatch = entry.pattern === requestedModule - ? "" - : matchStar(entry.pattern, requestedModule); - if (starMatch !== undefined) { - var _loop_1 = function (physicalPathPattern) { - var physicalPath = physicalPathPattern.replace("*", starMatch); - pathsToTry.push({ type: "file", path: physicalPath }); - pathsToTry.push.apply(pathsToTry, extensions.map(function (e) { return ({ type: "extension", path: physicalPath + e }); })); - pathsToTry.push({ - type: "package", - path: path.join(physicalPath, "/package.json"), - }); - var indexPath = path.join(physicalPath, "/index"); - pathsToTry.push.apply(pathsToTry, extensions.map(function (e) { return ({ type: "index", path: indexPath + e }); })); - }; - for (var _a = 0, _b = entry.paths; _a < _b.length; _a++) { - var physicalPathPattern = _b[_a]; - _loop_1(physicalPathPattern); - } - } - } - return pathsToTry.length === 0 ? undefined : pathsToTry; -} -exports.getPathsToTry = getPathsToTry; -// Not sure why we don't just return the full found path? -function getStrippedPath(tryPath) { - return tryPath.type === "index" - ? (0, path_1.dirname)(tryPath.path) - : tryPath.type === "file" - ? tryPath.path - : tryPath.type === "extension" - ? (0, filesystem_1.removeExtension)(tryPath.path) - : tryPath.type === "package" - ? tryPath.path - : exhaustiveTypeException(tryPath.type); +const os = __nccwpck_require__(22037); +const hasFlag = __nccwpck_require__(81533); + +const env = process.env; + +let forceColor; +if (hasFlag('no-color') || + hasFlag('no-colors') || + hasFlag('color=false')) { + forceColor = false; +} else if (hasFlag('color') || + hasFlag('colors') || + hasFlag('color=true') || + hasFlag('color=always')) { + forceColor = true; } -exports.getStrippedPath = getStrippedPath; -function exhaustiveTypeException(check) { - throw new Error("Unknown type ".concat(check)); +if ('FORCE_COLOR' in env) { + forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0; } -exports.exhaustiveTypeException = exhaustiveTypeException; -/** - * Matches pattern with a single star against search. - * Star must match at least one character to be considered a match. - * - * @param patttern for example "foo*" - * @param search for example "fooawesomebar" - * @returns the part of search that * matches, or undefined if no match. - */ -function matchStar(pattern, search) { - if (search.length < pattern.length) { - return undefined; - } - if (pattern === "*") { - return search; - } - var star = pattern.indexOf("*"); - if (star === -1) { - return undefined; - } - var part1 = pattern.substring(0, star); - var part2 = pattern.substring(star + 1); - if (search.substr(0, star) !== part1) { - return undefined; - } - if (search.substr(search.length - part2.length) !== part2) { - return undefined; - } - return search.substr(star, search.length - part2.length); + +function translateLevel(level) { + if (level === 0) { + return false; + } + + return { + level, + hasBasic: true, + has256: level >= 2, + has16m: level >= 3 + }; } -//# sourceMappingURL=try-path.js.map -/***/ }), +function supportsColor(stream) { + if (forceColor === false) { + return 0; + } -/***/ 5214: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + if (hasFlag('color=16m') || + hasFlag('color=full') || + hasFlag('color=truecolor')) { + return 3; + } -"use strict"; + if (hasFlag('color=256')) { + return 2; + } -var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.loadTsconfig = exports.walkForTsConfig = exports.tsConfigLoader = void 0; -var path = __nccwpck_require__(71017); -var fs = __nccwpck_require__(57147); -// eslint-disable-next-line @typescript-eslint/no-require-imports -var JSON5 = __nccwpck_require__(86904); -// eslint-disable-next-line @typescript-eslint/no-require-imports -var StripBom = __nccwpck_require__(55831); -function tsConfigLoader(_a) { - var getEnv = _a.getEnv, cwd = _a.cwd, _b = _a.loadSync, loadSync = _b === void 0 ? loadSyncDefault : _b; - var TS_NODE_PROJECT = getEnv("TS_NODE_PROJECT"); - var TS_NODE_BASEURL = getEnv("TS_NODE_BASEURL"); - // tsconfig.loadSync handles if TS_NODE_PROJECT is a file or directory - // and also overrides baseURL if TS_NODE_BASEURL is available. - var loadResult = loadSync(cwd, TS_NODE_PROJECT, TS_NODE_BASEURL); - return loadResult; -} -exports.tsConfigLoader = tsConfigLoader; -function loadSyncDefault(cwd, filename, baseUrl) { - // Tsconfig.loadSync uses path.resolve. This is why we can use an absolute path as filename - var configPath = resolveConfigPath(cwd, filename); - if (!configPath) { - return { - tsConfigPath: undefined, - baseUrl: undefined, - paths: undefined, - }; - } - var config = loadTsconfig(configPath); - return { - tsConfigPath: configPath, - baseUrl: baseUrl || - (config && config.compilerOptions && config.compilerOptions.baseUrl), - paths: config && config.compilerOptions && config.compilerOptions.paths, - }; -} -function resolveConfigPath(cwd, filename) { - if (filename) { - var absolutePath = fs.lstatSync(filename).isDirectory() - ? path.resolve(filename, "./tsconfig.json") - : path.resolve(cwd, filename); - return absolutePath; - } - if (fs.statSync(cwd).isFile()) { - return path.resolve(cwd); - } - var configAbsolutePath = walkForTsConfig(cwd); - return configAbsolutePath ? path.resolve(configAbsolutePath) : undefined; -} -function walkForTsConfig(directory, readdirSync) { - if (readdirSync === void 0) { readdirSync = fs.readdirSync; } - var files = readdirSync(directory); - var filesToCheck = ["tsconfig.json", "jsconfig.json"]; - for (var _i = 0, filesToCheck_1 = filesToCheck; _i < filesToCheck_1.length; _i++) { - var fileToCheck = filesToCheck_1[_i]; - if (files.indexOf(fileToCheck) !== -1) { - return path.join(directory, fileToCheck); - } - } - var parentDirectory = path.dirname(directory); - // If we reached the top - if (directory === parentDirectory) { - return undefined; - } - return walkForTsConfig(parentDirectory, readdirSync); -} -exports.walkForTsConfig = walkForTsConfig; -function loadTsconfig(configFilePath, -// eslint-disable-next-line no-shadow -existsSync, readFileSync) { - if (existsSync === void 0) { existsSync = fs.existsSync; } - if (readFileSync === void 0) { readFileSync = function (filename) { - return fs.readFileSync(filename, "utf8"); - }; } - if (!existsSync(configFilePath)) { - return undefined; - } - var configString = readFileSync(configFilePath); - var cleanedJson = StripBom(configString); - var config; - try { - config = JSON5.parse(cleanedJson); - } - catch (e) { - throw new Error("".concat(configFilePath, " is malformed ").concat(e.message)); - } - var extendedConfig = config.extends; - if (extendedConfig) { - var base = void 0; - if (Array.isArray(extendedConfig)) { - base = extendedConfig.reduce(function (currBase, extendedConfigElement) { - return mergeTsconfigs(currBase, loadTsconfigFromExtends(configFilePath, extendedConfigElement, existsSync, readFileSync)); - }, {}); - } - else { - base = loadTsconfigFromExtends(configFilePath, extendedConfig, existsSync, readFileSync); - } - return mergeTsconfigs(base, config); - } - return config; -} -exports.loadTsconfig = loadTsconfig; -/** - * Intended to be called only from loadTsconfig. - * Parameters don't have defaults because they should use the same as loadTsconfig. - */ -function loadTsconfigFromExtends(configFilePath, extendedConfigValue, -// eslint-disable-next-line no-shadow -existsSync, readFileSync) { - var _a; - if (typeof extendedConfigValue === "string" && - extendedConfigValue.indexOf(".json") === -1) { - extendedConfigValue += ".json"; - } - var currentDir = path.dirname(configFilePath); - var extendedConfigPath = path.join(currentDir, extendedConfigValue); - if (extendedConfigValue.indexOf("/") !== -1 && - extendedConfigValue.indexOf(".") !== -1 && - !existsSync(extendedConfigPath)) { - extendedConfigPath = path.join(currentDir, "node_modules", extendedConfigValue); - } - var config = loadTsconfig(extendedConfigPath, existsSync, readFileSync) || {}; - // baseUrl should be interpreted as relative to extendedConfigPath, - // but we need to update it so it is relative to the original tsconfig being loaded - if ((_a = config.compilerOptions) === null || _a === void 0 ? void 0 : _a.baseUrl) { - var extendsDir = path.dirname(extendedConfigValue); - config.compilerOptions.baseUrl = path.join(extendsDir, config.compilerOptions.baseUrl); - } - return config; -} -function mergeTsconfigs(base, config) { - base = base || {}; - config = config || {}; - return __assign(__assign(__assign({}, base), config), { compilerOptions: __assign(__assign({}, base.compilerOptions), config.compilerOptions) }); -} -//# sourceMappingURL=tsconfig-loader.js.map + if (stream && !stream.isTTY && forceColor !== true) { + return 0; + } -/***/ }), + const min = forceColor ? 1 : 0; -/***/ 55831: -/***/ ((module) => { + if (process.platform === 'win32') { + // Node.js 7.5.0 is the first version of Node.js to include a patch to + // libuv that enables 256 color output on Windows. Anything earlier and it + // won't work. However, here we target Node.js 8 at minimum as it is an LTS + // release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows + // release that supports 256 colors. Windows 10 build 14931 is the first release + // that supports 16m/TrueColor. + const osRelease = os.release().split('.'); + if ( + Number(process.versions.node.split('.')[0]) >= 8 && + Number(osRelease[0]) >= 10 && + Number(osRelease[2]) >= 10586 + ) { + return Number(osRelease[2]) >= 14931 ? 3 : 2; + } -"use strict"; + return 1; + } -module.exports = x => { - if (typeof x !== 'string') { - throw new TypeError('Expected a string, got ' + typeof x); + if ('CI' in env) { + if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') { + return 1; + } + + return min; } - // Catches EFBBBF (UTF-8 BOM) because the buffer-to-string - // conversion translates it to FEFF (UTF-16 BOM) - if (x.charCodeAt(0) === 0xFEFF) { - return x.slice(1); + if ('TEAMCITY_VERSION' in env) { + return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; } - return x; -}; + if (env.COLORTERM === 'truecolor') { + return 3; + } + if ('TERM_PROGRAM' in env) { + const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); -/***/ }), + switch (env.TERM_PROGRAM) { + case 'iTerm.app': + return version >= 3 ? 3 : 2; + case 'Apple_Terminal': + return 2; + // No default + } + } -/***/ 4351: -/***/ ((module) => { + if (/-256(color)?$/i.test(env.TERM)) { + return 2; + } -/****************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global global, define, Symbol, Reflect, Promise, SuppressedError */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __esDecorate; -var __runInitializers; -var __propKey; -var __setFunctionName; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __spreadArray; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __classPrivateFieldIn; -var __createBinding; -var __addDisposableResource; -var __disposeResources; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if ( true && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - - __extends = function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __esDecorate = function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } - var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _, done = false; - for (var i = decorators.length - 1; i >= 0; i--) { - var context = {}; - for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; - for (var p in contextIn.access) context.access[p] = contextIn.access[p]; - context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; - var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); - if (kind === "accessor") { - if (result === void 0) continue; - if (result === null || typeof result !== "object") throw new TypeError("Object expected"); - if (_ = accept(result.get)) descriptor.get = _; - if (_ = accept(result.set)) descriptor.set = _; - if (_ = accept(result.init)) initializers.unshift(_); - } - else if (_ = accept(result)) { - if (kind === "field") initializers.unshift(_); - else descriptor[key] = _; - } - } - if (target) Object.defineProperty(target, contextIn.name, descriptor); - done = true; - }; - - __runInitializers = function (thisArg, initializers, value) { - var useValue = arguments.length > 2; - for (var i = 0; i < initializers.length; i++) { - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); - } - return useValue ? value : void 0; - }; - - __propKey = function (x) { - return typeof x === "symbol" ? x : "".concat(x); - }; - - __setFunctionName = function (f, name, prefix) { - if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __exportStar = function(m, o) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); - }; - - __createBinding = Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); - }) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }); - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - /** @deprecated */ - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - /** @deprecated */ - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __spreadArray = function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; - function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } - function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - }) : function(o, v) { - o["default"] = v; - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - }; - - __classPrivateFieldIn = function (state, receiver) { - if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); - return typeof state === "function" ? receiver === state : state.has(receiver); - }; - - __addDisposableResource = function (env, value, async) { - if (value !== null && value !== void 0) { - if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); - var dispose, inner; - if (async) { - if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); - dispose = value[Symbol.asyncDispose]; - } - if (dispose === void 0) { - if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); - dispose = value[Symbol.dispose]; - if (async) inner = dispose; - } - if (typeof dispose !== "function") throw new TypeError("Object not disposable."); - if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; - env.stack.push({ value: value, dispose: dispose, async: async }); - } - else if (async) { - env.stack.push({ async: true }); - } - return value; - }; - - var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { - var e = new Error(message); - return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; - }; - - __disposeResources = function (env) { - function fail(e) { - env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; - env.hasError = true; - } - function next() { - while (env.stack.length) { - var rec = env.stack.pop(); - try { - var result = rec.dispose && rec.dispose.call(rec.value); - if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); - } - catch (e) { - fail(e); - } - } - if (env.hasError) throw env.error; - } - return next(); - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__esDecorate", __esDecorate); - exporter("__runInitializers", __runInitializers); - exporter("__propKey", __propKey); - exporter("__setFunctionName", __setFunctionName); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__spreadArray", __spreadArray); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); - exporter("__classPrivateFieldIn", __classPrivateFieldIn); - exporter("__addDisposableResource", __addDisposableResource); - exporter("__disposeResources", __disposeResources); -}); + if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { + return 1; + } + if ('COLORTERM' in env) { + return 1; + } -/***/ }), + if (env.TERM === 'dumb') { + return min; + } -/***/ 74294: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + return min; +} -module.exports = __nccwpck_require__(54219); +function getSupportLevel(stream) { + const level = supportsColor(stream); + return translateLevel(level); +} + +module.exports = { + supportsColor: getSupportLevel, + stdout: getSupportLevel(process.stdout), + stderr: getSupportLevel(process.stderr) +}; /***/ }), -/***/ 54219: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ 81533: +/***/ ((module) => { "use strict"; +module.exports = (flag, argv) => { + argv = argv || process.argv; + const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); + const pos = argv.indexOf(prefix + flag); + const terminatorPos = argv.indexOf('--'); + return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); +}; -var net = __nccwpck_require__(41808); -var tls = __nccwpck_require__(24404); -var http = __nccwpck_require__(13685); -var https = __nccwpck_require__(95687); -var events = __nccwpck_require__(82361); -var assert = __nccwpck_require__(39491); -var util = __nccwpck_require__(73837); +/***/ }), -exports.httpOverHttp = httpOverHttp; -exports.httpsOverHttp = httpsOverHttp; -exports.httpOverHttps = httpOverHttps; -exports.httpsOverHttps = httpsOverHttps; +/***/ 57882: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +var util = __nccwpck_require__(73837) +var bl = __nccwpck_require__(20336) +var headers = __nccwpck_require__(68860) -function httpOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http.request; - return agent; -} +var Writable = (__nccwpck_require__(51642).Writable) +var PassThrough = (__nccwpck_require__(51642).PassThrough) -function httpsOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; -} +var noop = function () {} -function httpOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - return agent; +var overflow = function (size) { + size &= 511 + return size && 512 - size } -function httpsOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; +var emptyStream = function (self, offset) { + var s = new Source(self, offset) + s.end() + return s } +var mixinPax = function (header, pax) { + if (pax.path) header.name = pax.path + if (pax.linkpath) header.linkname = pax.linkpath + if (pax.size) header.size = parseInt(pax.size, 10) + header.pax = pax + return header +} -function TunnelingAgent(options) { - var self = this; - self.options = options || {}; - self.proxyOptions = self.options.proxy || {}; - self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets; - self.requests = []; - self.sockets = []; - - self.on('free', function onFree(socket, host, port, localAddress) { - var options = toOptions(host, port, localAddress); - for (var i = 0, len = self.requests.length; i < len; ++i) { - var pending = self.requests[i]; - if (pending.host === options.host && pending.port === options.port) { - // Detect the request to connect same origin server, - // reuse the connection. - self.requests.splice(i, 1); - pending.request.onSocket(socket); - return; - } - } - socket.destroy(); - self.removeSocket(socket); - }); +var Source = function (self, offset) { + this._parent = self + this.offset = offset + PassThrough.call(this, { autoDestroy: false }) } -util.inherits(TunnelingAgent, events.EventEmitter); -TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { - var self = this; - var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress)); +util.inherits(Source, PassThrough) - if (self.sockets.length >= this.maxSockets) { - // We are over limit so we'll add it to the queue. - self.requests.push(options); - return; - } +Source.prototype.destroy = function (err) { + this._parent.destroy(err) +} - // If we are under maxSockets create a new one. - self.createSocket(options, function(socket) { - socket.on('free', onFree); - socket.on('close', onCloseOrRemove); - socket.on('agentRemove', onCloseOrRemove); - req.onSocket(socket); +var Extract = function (opts) { + if (!(this instanceof Extract)) return new Extract(opts) + Writable.call(this, opts) - function onFree() { - self.emit('free', socket, options); - } + opts = opts || {} - function onCloseOrRemove(err) { - self.removeSocket(socket); - socket.removeListener('free', onFree); - socket.removeListener('close', onCloseOrRemove); - socket.removeListener('agentRemove', onCloseOrRemove); - } - }); -}; + this._offset = 0 + this._buffer = bl() + this._missing = 0 + this._partial = false + this._onparse = noop + this._header = null + this._stream = null + this._overflow = null + this._cb = null + this._locked = false + this._destroyed = false + this._pax = null + this._paxGlobal = null + this._gnuLongPath = null + this._gnuLongLinkPath = null -TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { - var self = this; - var placeholder = {}; - self.sockets.push(placeholder); + var self = this + var b = self._buffer - var connectOptions = mergeOptions({}, self.proxyOptions, { - method: 'CONNECT', - path: options.host + ':' + options.port, - agent: false, - headers: { - host: options.host + ':' + options.port - } - }); - if (options.localAddress) { - connectOptions.localAddress = options.localAddress; + var oncontinue = function () { + self._continue() } - if (connectOptions.proxyAuth) { - connectOptions.headers = connectOptions.headers || {}; - connectOptions.headers['Proxy-Authorization'] = 'Basic ' + - new Buffer(connectOptions.proxyAuth).toString('base64'); + + var onunlock = function (err) { + self._locked = false + if (err) return self.destroy(err) + if (!self._stream) oncontinue() } - debug('making CONNECT request'); - var connectReq = self.request(connectOptions); - connectReq.useChunkedEncodingByDefault = false; // for v0.6 - connectReq.once('response', onResponse); // for v0.6 - connectReq.once('upgrade', onUpgrade); // for v0.6 - connectReq.once('connect', onConnect); // for v0.7 or later - connectReq.once('error', onError); - connectReq.end(); + var onstreamend = function () { + self._stream = null + var drain = overflow(self._header.size) + if (drain) self._parse(drain, ondrain) + else self._parse(512, onheader) + if (!self._locked) oncontinue() + } - function onResponse(res) { - // Very hacky. This is necessary to avoid http-parser leaks. - res.upgrade = true; + var ondrain = function () { + self._buffer.consume(overflow(self._header.size)) + self._parse(512, onheader) + oncontinue() } - function onUpgrade(res, socket, head) { - // Hacky. - process.nextTick(function() { - onConnect(res, socket, head); - }); + var onpaxglobalheader = function () { + var size = self._header.size + self._paxGlobal = headers.decodePax(b.slice(0, size)) + b.consume(size) + onstreamend() } - function onConnect(res, socket, head) { - connectReq.removeAllListeners(); - socket.removeAllListeners(); + var onpaxheader = function () { + var size = self._header.size + self._pax = headers.decodePax(b.slice(0, size)) + if (self._paxGlobal) self._pax = Object.assign({}, self._paxGlobal, self._pax) + b.consume(size) + onstreamend() + } - if (res.statusCode !== 200) { - debug('tunneling socket could not be established, statusCode=%d', - res.statusCode); - socket.destroy(); - var error = new Error('tunneling socket could not be established, ' + - 'statusCode=' + res.statusCode); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - return; + var ongnulongpath = function () { + var size = self._header.size + this._gnuLongPath = headers.decodeLongPath(b.slice(0, size), opts.filenameEncoding) + b.consume(size) + onstreamend() + } + + var ongnulonglinkpath = function () { + var size = self._header.size + this._gnuLongLinkPath = headers.decodeLongPath(b.slice(0, size), opts.filenameEncoding) + b.consume(size) + onstreamend() + } + + var onheader = function () { + var offset = self._offset + var header + try { + header = self._header = headers.decode(b.slice(0, 512), opts.filenameEncoding, opts.allowUnknownFormat) + } catch (err) { + self.emit('error', err) } - if (head.length > 0) { - debug('got illegal response body from proxy'); - socket.destroy(); - var error = new Error('got illegal response body from proxy'); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - return; + b.consume(512) + + if (!header) { + self._parse(512, onheader) + oncontinue() + return } - debug('tunneling connection has established'); - self.sockets[self.sockets.indexOf(placeholder)] = socket; - return cb(socket); + if (header.type === 'gnu-long-path') { + self._parse(header.size, ongnulongpath) + oncontinue() + return + } + if (header.type === 'gnu-long-link-path') { + self._parse(header.size, ongnulonglinkpath) + oncontinue() + return + } + if (header.type === 'pax-global-header') { + self._parse(header.size, onpaxglobalheader) + oncontinue() + return + } + if (header.type === 'pax-header') { + self._parse(header.size, onpaxheader) + oncontinue() + return + } + + if (self._gnuLongPath) { + header.name = self._gnuLongPath + self._gnuLongPath = null + } + + if (self._gnuLongLinkPath) { + header.linkname = self._gnuLongLinkPath + self._gnuLongLinkPath = null + } + + if (self._pax) { + self._header = header = mixinPax(header, self._pax) + self._pax = null + } + + self._locked = true + + if (!header.size || header.type === 'directory') { + self._parse(512, onheader) + self.emit('entry', header, emptyStream(self, offset), onunlock) + return + } + + self._stream = new Source(self, offset) + + self.emit('entry', header, self._stream, onunlock) + self._parse(header.size, onstreamend) + oncontinue() } - function onError(cause) { - connectReq.removeAllListeners(); + this._onheader = onheader + this._parse(512, onheader) +} - debug('tunneling socket could not be established, cause=%s\n', - cause.message, cause.stack); - var error = new Error('tunneling socket could not be established, ' + - 'cause=' + cause.message); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); +util.inherits(Extract, Writable) + +Extract.prototype.destroy = function (err) { + if (this._destroyed) return + this._destroyed = true + + if (err) this.emit('error', err) + this.emit('close') + if (this._stream) this._stream.emit('close') +} + +Extract.prototype._parse = function (size, onparse) { + if (this._destroyed) return + this._offset += size + this._missing = size + if (onparse === this._onheader) this._partial = false + this._onparse = onparse +} + +Extract.prototype._continue = function () { + if (this._destroyed) return + var cb = this._cb + this._cb = noop + if (this._overflow) this._write(this._overflow, undefined, cb) + else cb() +} + +Extract.prototype._write = function (data, enc, cb) { + if (this._destroyed) return + + var s = this._stream + var b = this._buffer + var missing = this._missing + if (data.length) this._partial = true + + // we do not reach end-of-chunk now. just forward it + + if (data.length < missing) { + this._missing -= data.length + this._overflow = null + if (s) return s.write(data, cb) + b.append(data) + return cb() } -}; -TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { - var pos = this.sockets.indexOf(socket) - if (pos === -1) { - return; + // end-of-chunk. the parser should call cb. + + this._cb = cb + this._missing = 0 + + var overflow = null + if (data.length > missing) { + overflow = data.slice(missing) + data = data.slice(0, missing) } - this.sockets.splice(pos, 1); - var pending = this.requests.shift(); - if (pending) { - // If we have pending requests and a socket gets closed a new one - // needs to be created to take over in the pool for the one that closed. - this.createSocket(pending, function(socket) { - pending.request.onSocket(socket); - }); + if (s) s.end(data) + else b.append(data) + + this._overflow = overflow + this._onparse() +} + +Extract.prototype._final = function (cb) { + if (this._partial) return this.destroy(new Error('Unexpected end of data')) + cb() +} + +module.exports = Extract + + +/***/ }), + +/***/ 68860: +/***/ ((__unused_webpack_module, exports) => { + +var alloc = Buffer.alloc + +var ZEROS = '0000000000000000000' +var SEVENS = '7777777777777777777' +var ZERO_OFFSET = '0'.charCodeAt(0) +var USTAR_MAGIC = Buffer.from('ustar\x00', 'binary') +var USTAR_VER = Buffer.from('00', 'binary') +var GNU_MAGIC = Buffer.from('ustar\x20', 'binary') +var GNU_VER = Buffer.from('\x20\x00', 'binary') +var MASK = parseInt('7777', 8) +var MAGIC_OFFSET = 257 +var VERSION_OFFSET = 263 + +var clamp = function (index, len, defaultValue) { + if (typeof index !== 'number') return defaultValue + index = ~~index // Coerce to integer. + if (index >= len) return len + if (index >= 0) return index + index += len + if (index >= 0) return index + return 0 +} + +var toType = function (flag) { + switch (flag) { + case 0: + return 'file' + case 1: + return 'link' + case 2: + return 'symlink' + case 3: + return 'character-device' + case 4: + return 'block-device' + case 5: + return 'directory' + case 6: + return 'fifo' + case 7: + return 'contiguous-file' + case 72: + return 'pax-header' + case 55: + return 'pax-global-header' + case 27: + return 'gnu-long-link-path' + case 28: + case 30: + return 'gnu-long-path' } -}; -function createSecureSocket(options, cb) { - var self = this; - TunnelingAgent.prototype.createSocket.call(self, options, function(socket) { - var hostHeader = options.request.getHeader('host'); - var tlsOptions = mergeOptions({}, self.options, { - socket: socket, - servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host - }); + return null +} - // 0 is dummy port for v0.6 - var secureSocket = tls.connect(0, tlsOptions); - self.sockets[self.sockets.indexOf(socket)] = secureSocket; - cb(secureSocket); - }); +var toTypeflag = function (flag) { + switch (flag) { + case 'file': + return 0 + case 'link': + return 1 + case 'symlink': + return 2 + case 'character-device': + return 3 + case 'block-device': + return 4 + case 'directory': + return 5 + case 'fifo': + return 6 + case 'contiguous-file': + return 7 + case 'pax-header': + return 72 + } + + return 0 } +var indexOf = function (block, num, offset, end) { + for (; offset < end; offset++) { + if (block[offset] === num) return offset + } + return end +} -function toOptions(host, port, localAddress) { - if (typeof host === 'string') { // since v0.10 - return { - host: host, - port: port, - localAddress: localAddress - }; +var cksum = function (block) { + var sum = 8 * 32 + for (var i = 0; i < 148; i++) sum += block[i] + for (var j = 156; j < 512; j++) sum += block[j] + return sum +} + +var encodeOct = function (val, n) { + val = val.toString(8) + if (val.length > n) return SEVENS.slice(0, n) + ' ' + else return ZEROS.slice(0, n - val.length) + val + ' ' +} + +/* Copied from the node-tar repo and modified to meet + * tar-stream coding standard. + * + * Source: https://github.com/npm/node-tar/blob/51b6627a1f357d2eb433e7378e5f05e83b7aa6cd/lib/header.js#L349 + */ +function parse256 (buf) { + // first byte MUST be either 80 or FF + // 80 for positive, FF for 2's comp + var positive + if (buf[0] === 0x80) positive = true + else if (buf[0] === 0xFF) positive = false + else return null + + // build up a base-256 tuple from the least sig to the highest + var tuple = [] + for (var i = buf.length - 1; i > 0; i--) { + var byte = buf[i] + if (positive) tuple.push(byte) + else tuple.push(0xFF - byte) } - return host; // for v0.11 or later + + var sum = 0 + var l = tuple.length + for (i = 0; i < l; i++) { + sum += tuple[i] * Math.pow(256, i) + } + + return positive ? sum : -1 * sum } -function mergeOptions(target) { - for (var i = 1, len = arguments.length; i < len; ++i) { - var overrides = arguments[i]; - if (typeof overrides === 'object') { - var keys = Object.keys(overrides); - for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { - var k = keys[j]; - if (overrides[k] !== undefined) { - target[k] = overrides[k]; - } +var decodeOct = function (val, offset, length) { + val = val.slice(offset, offset + length) + offset = 0 + + // If prefixed with 0x80 then parse as a base-256 integer + if (val[offset] & 0x80) { + return parse256(val) + } else { + // Older versions of tar can prefix with spaces + while (offset < val.length && val[offset] === 32) offset++ + var end = clamp(indexOf(val, 32, offset, val.length), val.length, val.length) + while (offset < end && val[offset] === 0) offset++ + if (end === offset) return 0 + return parseInt(val.slice(offset, end).toString(), 8) + } +} + +var decodeStr = function (val, offset, length, encoding) { + return val.slice(offset, indexOf(val, 0, offset, offset + length)).toString(encoding) +} + +var addLength = function (str) { + var len = Buffer.byteLength(str) + var digits = Math.floor(Math.log(len) / Math.log(10)) + 1 + if (len + digits >= Math.pow(10, digits)) digits++ + + return (len + digits) + str +} + +exports.decodeLongPath = function (buf, encoding) { + return decodeStr(buf, 0, buf.length, encoding) +} + +exports.encodePax = function (opts) { // TODO: encode more stuff in pax + var result = '' + if (opts.name) result += addLength(' path=' + opts.name + '\n') + if (opts.linkname) result += addLength(' linkpath=' + opts.linkname + '\n') + var pax = opts.pax + if (pax) { + for (var key in pax) { + result += addLength(' ' + key + '=' + pax[key] + '\n') + } + } + return Buffer.from(result) +} + +exports.decodePax = function (buf) { + var result = {} + + while (buf.length) { + var i = 0 + while (i < buf.length && buf[i] !== 32) i++ + var len = parseInt(buf.slice(0, i).toString(), 10) + if (!len) return result + + var b = buf.slice(i + 1, len - 1).toString() + var keyIndex = b.indexOf('=') + if (keyIndex === -1) return result + result[b.slice(0, keyIndex)] = b.slice(keyIndex + 1) + + buf = buf.slice(len) + } + + return result +} + +exports.encode = function (opts) { + var buf = alloc(512) + var name = opts.name + var prefix = '' + + if (opts.typeflag === 5 && name[name.length - 1] !== '/') name += '/' + if (Buffer.byteLength(name) !== name.length) return null // utf-8 + + while (Buffer.byteLength(name) > 100) { + var i = name.indexOf('/') + if (i === -1) return null + prefix += prefix ? '/' + name.slice(0, i) : name.slice(0, i) + name = name.slice(i + 1) + } + + if (Buffer.byteLength(name) > 100 || Buffer.byteLength(prefix) > 155) return null + if (opts.linkname && Buffer.byteLength(opts.linkname) > 100) return null + + buf.write(name) + buf.write(encodeOct(opts.mode & MASK, 6), 100) + buf.write(encodeOct(opts.uid, 6), 108) + buf.write(encodeOct(opts.gid, 6), 116) + buf.write(encodeOct(opts.size, 11), 124) + buf.write(encodeOct((opts.mtime.getTime() / 1000) | 0, 11), 136) + + buf[156] = ZERO_OFFSET + toTypeflag(opts.type) + + if (opts.linkname) buf.write(opts.linkname, 157) + + USTAR_MAGIC.copy(buf, MAGIC_OFFSET) + USTAR_VER.copy(buf, VERSION_OFFSET) + if (opts.uname) buf.write(opts.uname, 265) + if (opts.gname) buf.write(opts.gname, 297) + buf.write(encodeOct(opts.devmajor || 0, 6), 329) + buf.write(encodeOct(opts.devminor || 0, 6), 337) + + if (prefix) buf.write(prefix, 345) + + buf.write(encodeOct(cksum(buf), 6), 148) + + return buf +} + +exports.decode = function (buf, filenameEncoding, allowUnknownFormat) { + var typeflag = buf[156] === 0 ? 0 : buf[156] - ZERO_OFFSET + + var name = decodeStr(buf, 0, 100, filenameEncoding) + var mode = decodeOct(buf, 100, 8) + var uid = decodeOct(buf, 108, 8) + var gid = decodeOct(buf, 116, 8) + var size = decodeOct(buf, 124, 12) + var mtime = decodeOct(buf, 136, 12) + var type = toType(typeflag) + var linkname = buf[157] === 0 ? null : decodeStr(buf, 157, 100, filenameEncoding) + var uname = decodeStr(buf, 265, 32) + var gname = decodeStr(buf, 297, 32) + var devmajor = decodeOct(buf, 329, 8) + var devminor = decodeOct(buf, 337, 8) + + var c = cksum(buf) + + // checksum is still initial value if header was null. + if (c === 8 * 32) return null + + // valid checksum + if (c !== decodeOct(buf, 148, 8)) throw new Error('Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?') + + if (USTAR_MAGIC.compare(buf, MAGIC_OFFSET, MAGIC_OFFSET + 6) === 0) { + // ustar (posix) format. + // prepend prefix, if present. + if (buf[345]) name = decodeStr(buf, 345, 155, filenameEncoding) + '/' + name + } else if (GNU_MAGIC.compare(buf, MAGIC_OFFSET, MAGIC_OFFSET + 6) === 0 && + GNU_VER.compare(buf, VERSION_OFFSET, VERSION_OFFSET + 2) === 0) { + // 'gnu'/'oldgnu' format. Similar to ustar, but has support for incremental and + // multi-volume tarballs. + } else { + if (!allowUnknownFormat) { + throw new Error('Invalid tar header: unknown format.') + } + } + + // to support old tar versions that use trailing / to indicate dirs + if (typeflag === 0 && name && name[name.length - 1] === '/') typeflag = 5 + + return { + name, + mode, + uid, + gid, + size, + mtime: new Date(1000 * mtime), + type, + linkname, + uname, + gname, + devmajor, + devminor + } +} + + +/***/ }), + +/***/ 2283: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +exports.extract = __nccwpck_require__(57882) +exports.pack = __nccwpck_require__(94930) + + +/***/ }), + +/***/ 94930: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var constants = __nccwpck_require__(73186) +var eos = __nccwpck_require__(81205) +var inherits = __nccwpck_require__(44124) +var alloc = Buffer.alloc + +var Readable = (__nccwpck_require__(51642).Readable) +var Writable = (__nccwpck_require__(51642).Writable) +var StringDecoder = (__nccwpck_require__(71576).StringDecoder) + +var headers = __nccwpck_require__(68860) + +var DMODE = parseInt('755', 8) +var FMODE = parseInt('644', 8) + +var END_OF_TAR = alloc(1024) + +var noop = function () {} + +var overflow = function (self, size) { + size &= 511 + if (size) self.push(END_OF_TAR.slice(0, 512 - size)) +} + +function modeToType (mode) { + switch (mode & constants.S_IFMT) { + case constants.S_IFBLK: return 'block-device' + case constants.S_IFCHR: return 'character-device' + case constants.S_IFDIR: return 'directory' + case constants.S_IFIFO: return 'fifo' + case constants.S_IFLNK: return 'symlink' + } + + return 'file' +} + +var Sink = function (to) { + Writable.call(this) + this.written = 0 + this._to = to + this._destroyed = false +} + +inherits(Sink, Writable) + +Sink.prototype._write = function (data, enc, cb) { + this.written += data.length + if (this._to.push(data)) return cb() + this._to._drain = cb +} + +Sink.prototype.destroy = function () { + if (this._destroyed) return + this._destroyed = true + this.emit('close') +} + +var LinkSink = function () { + Writable.call(this) + this.linkname = '' + this._decoder = new StringDecoder('utf-8') + this._destroyed = false +} + +inherits(LinkSink, Writable) + +LinkSink.prototype._write = function (data, enc, cb) { + this.linkname += this._decoder.write(data) + cb() +} + +LinkSink.prototype.destroy = function () { + if (this._destroyed) return + this._destroyed = true + this.emit('close') +} + +var Void = function () { + Writable.call(this) + this._destroyed = false +} + +inherits(Void, Writable) + +Void.prototype._write = function (data, enc, cb) { + cb(new Error('No body allowed for this entry')) +} + +Void.prototype.destroy = function () { + if (this._destroyed) return + this._destroyed = true + this.emit('close') +} + +var Pack = function (opts) { + if (!(this instanceof Pack)) return new Pack(opts) + Readable.call(this, opts) + + this._drain = noop + this._finalized = false + this._finalizing = false + this._destroyed = false + this._stream = null +} + +inherits(Pack, Readable) + +Pack.prototype.entry = function (header, buffer, callback) { + if (this._stream) throw new Error('already piping an entry') + if (this._finalized || this._destroyed) return + + if (typeof buffer === 'function') { + callback = buffer + buffer = null + } + + if (!callback) callback = noop + + var self = this + + if (!header.size || header.type === 'symlink') header.size = 0 + if (!header.type) header.type = modeToType(header.mode) + if (!header.mode) header.mode = header.type === 'directory' ? DMODE : FMODE + if (!header.uid) header.uid = 0 + if (!header.gid) header.gid = 0 + if (!header.mtime) header.mtime = new Date() + + if (typeof buffer === 'string') buffer = Buffer.from(buffer) + if (Buffer.isBuffer(buffer)) { + header.size = buffer.length + this._encode(header) + var ok = this.push(buffer) + overflow(self, header.size) + if (ok) process.nextTick(callback) + else this._drain = callback + return new Void() + } + + if (header.type === 'symlink' && !header.linkname) { + var linkSink = new LinkSink() + eos(linkSink, function (err) { + if (err) { // stream was closed + self.destroy() + return callback(err) } + + header.linkname = linkSink.linkname + self._encode(header) + callback() + }) + + return linkSink + } + + this._encode(header) + + if (header.type !== 'file' && header.type !== 'contiguous-file') { + process.nextTick(callback) + return new Void() + } + + var sink = new Sink(this) + + this._stream = sink + + eos(sink, function (err) { + self._stream = null + + if (err) { // stream was closed + self.destroy() + return callback(err) + } + + if (sink.written !== header.size) { // corrupting tar + self.destroy() + return callback(new Error('size mismatch')) } + + overflow(self, header.size) + if (self._finalizing) self.finalize() + callback() + }) + + return sink +} + +Pack.prototype.finalize = function () { + if (this._stream) { + this._finalizing = true + return } - return target; + + if (this._finalized) return + this._finalized = true + this.push(END_OF_TAR) + this.push(null) } +Pack.prototype.destroy = function (err) { + if (this._destroyed) return + this._destroyed = true -var debug; -if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { - debug = function() { - var args = Array.prototype.slice.call(arguments); - if (typeof args[0] === 'string') { - args[0] = 'TUNNEL: ' + args[0]; - } else { - args.unshift('TUNNEL:'); + if (err) this.emit('error', err) + this.emit('close') + if (this._stream && this._stream.destroy) this._stream.destroy() +} + +Pack.prototype._encode = function (header) { + if (!header.pax) { + var buf = headers.encode(header) + if (buf) { + this.push(buf) + return } - console.error.apply(console, args); } -} else { - debug = function() {}; + this._encodePax(header) } -exports.debug = debug; // for test + +Pack.prototype._encodePax = function (header) { + var paxHeader = headers.encodePax({ + name: header.name, + linkname: header.linkname, + pax: header.pax + }) + + var newHeader = { + name: 'PaxHeader', + mode: header.mode, + uid: header.uid, + gid: header.gid, + size: paxHeader.length, + mtime: header.mtime, + type: 'pax-header', + linkname: header.linkname && 'PaxHeader', + uname: header.uname, + gname: header.gname, + devmajor: header.devmajor, + devminor: header.devminor + } + + this.push(headers.encode(newHeader)) + this.push(paxHeader) + overflow(this, paxHeader.length) + + newHeader.size = header.size + newHeader.type = header.type + this.push(headers.encode(newHeader)) +} + +Pack.prototype._read = function (n) { + var drain = this._drain + this._drain = noop + drain() +} + +module.exports = Pack /***/ }), -/***/ 37414: +/***/ 8517: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 +/*! + * Tmp + * + * Copyright (c) 2011-2017 KARASZI Istvan + * + * MIT Licensed + */ -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. +/* + * Module dependencies. + */ +const fs = __nccwpck_require__(57147); +const os = __nccwpck_require__(22037); +const path = __nccwpck_require__(71017); +const crypto = __nccwpck_require__(6113); +const _c = { fs: fs.constants, os: os.constants }; +const rimraf = __nccwpck_require__(14959); -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ +/* + * The working inner variables. + */ +const + // the random characters to choose from + RANDOM_CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', -var ts = {}; ((module) => { -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + TEMPLATE_PATTERN = /XXXXXX/, + + DEFAULT_TRIES = 3, + + CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR), + + // constants are off on the windows platform and will not match the actual errno codes + IS_WIN32 = os.platform() === 'win32', + EBADF = _c.EBADF || _c.os.errno.EBADF, + ENOENT = _c.ENOENT || _c.os.errno.ENOENT, + + DIR_MODE = 0o700 /* 448 */, + FILE_MODE = 0o600 /* 384 */, + + EXIT = 'exit', + + // this will hold the objects need to be removed on exit + _removeObjects = [], + + // API change in fs.rmdirSync leads to error when passing in a second parameter, e.g. the callback + FN_RMDIR_SYNC = fs.rmdirSync.bind(fs), + FN_RIMRAF_SYNC = rimraf.sync; + +let + _gracefulCleanup = false; + +/** + * Gets a temporary file name. + * + * @param {(Options|tmpNameCallback)} options options or callback + * @param {?tmpNameCallback} callback the callback function + */ +function tmpName(options, callback) { + const + args = _parseArguments(options, callback), + opts = args[0], + cb = args[1]; + + try { + _assertAndSanitizeOptions(opts); + } catch (err) { + return cb(err); } - return to; -}; -var __toCommonJS = (mod) => (__copyProps, mod); // Modified helper to skip setting __esModule. -// src/typescript/typescript.ts -var typescript_exports = {}; -__export(typescript_exports, { - ANONYMOUS: () => ANONYMOUS, - AccessFlags: () => AccessFlags, - AssertionLevel: () => AssertionLevel, - AssignmentDeclarationKind: () => AssignmentDeclarationKind, - AssignmentKind: () => AssignmentKind, - Associativity: () => Associativity, - BreakpointResolver: () => ts_BreakpointResolver_exports, - BuilderFileEmit: () => BuilderFileEmit, - BuilderProgramKind: () => BuilderProgramKind, - BuilderState: () => BuilderState, - CallHierarchy: () => ts_CallHierarchy_exports, - CharacterCodes: () => CharacterCodes, - CheckFlags: () => CheckFlags, - CheckMode: () => CheckMode, - ClassificationType: () => ClassificationType, - ClassificationTypeNames: () => ClassificationTypeNames, - CommentDirectiveType: () => CommentDirectiveType, - Comparison: () => Comparison, - CompletionInfoFlags: () => CompletionInfoFlags, - CompletionTriggerKind: () => CompletionTriggerKind, - Completions: () => ts_Completions_exports, - ContainerFlags: () => ContainerFlags, - ContextFlags: () => ContextFlags, - Debug: () => Debug, - DiagnosticCategory: () => DiagnosticCategory, - Diagnostics: () => Diagnostics, - DocumentHighlights: () => DocumentHighlights, - ElementFlags: () => ElementFlags, - EmitFlags: () => EmitFlags, - EmitHint: () => EmitHint, - EmitOnly: () => EmitOnly, - EndOfLineState: () => EndOfLineState, - ExitStatus: () => ExitStatus, - ExportKind: () => ExportKind, - Extension: () => Extension, - ExternalEmitHelpers: () => ExternalEmitHelpers, - FileIncludeKind: () => FileIncludeKind, - FilePreprocessingDiagnosticsKind: () => FilePreprocessingDiagnosticsKind, - FileSystemEntryKind: () => FileSystemEntryKind, - FileWatcherEventKind: () => FileWatcherEventKind, - FindAllReferences: () => ts_FindAllReferences_exports, - FlattenLevel: () => FlattenLevel, - FlowFlags: () => FlowFlags, - ForegroundColorEscapeSequences: () => ForegroundColorEscapeSequences, - FunctionFlags: () => FunctionFlags, - GeneratedIdentifierFlags: () => GeneratedIdentifierFlags, - GetLiteralTextFlags: () => GetLiteralTextFlags, - GoToDefinition: () => ts_GoToDefinition_exports, - HighlightSpanKind: () => HighlightSpanKind, - IdentifierNameMap: () => IdentifierNameMap, - IdentifierNameMultiMap: () => IdentifierNameMultiMap, - ImportKind: () => ImportKind, - ImportsNotUsedAsValues: () => ImportsNotUsedAsValues, - IndentStyle: () => IndentStyle, - IndexFlags: () => IndexFlags, - IndexKind: () => IndexKind, - InferenceFlags: () => InferenceFlags, - InferencePriority: () => InferencePriority, - InlayHintKind: () => InlayHintKind2, - InlayHints: () => ts_InlayHints_exports, - InternalEmitFlags: () => InternalEmitFlags, - InternalSymbolName: () => InternalSymbolName, - IntersectionFlags: () => IntersectionFlags, - InvalidatedProjectKind: () => InvalidatedProjectKind, - JSDocParsingMode: () => JSDocParsingMode, - JsDoc: () => ts_JsDoc_exports, - JsTyping: () => ts_JsTyping_exports, - JsxEmit: () => JsxEmit, - JsxFlags: () => JsxFlags, - JsxReferenceKind: () => JsxReferenceKind, - LanguageFeatureMinimumTarget: () => LanguageFeatureMinimumTarget, - LanguageServiceMode: () => LanguageServiceMode, - LanguageVariant: () => LanguageVariant, - LexicalEnvironmentFlags: () => LexicalEnvironmentFlags, - ListFormat: () => ListFormat, - LogLevel: () => LogLevel, - MapCode: () => ts_MapCode_exports, - MemberOverrideStatus: () => MemberOverrideStatus, - ModifierFlags: () => ModifierFlags, - ModuleDetectionKind: () => ModuleDetectionKind, - ModuleInstanceState: () => ModuleInstanceState, - ModuleKind: () => ModuleKind, - ModuleResolutionKind: () => ModuleResolutionKind, - ModuleSpecifierEnding: () => ModuleSpecifierEnding, - NavigateTo: () => ts_NavigateTo_exports, - NavigationBar: () => ts_NavigationBar_exports, - NewLineKind: () => NewLineKind, - NodeBuilderFlags: () => NodeBuilderFlags, - NodeCheckFlags: () => NodeCheckFlags, - NodeFactoryFlags: () => NodeFactoryFlags, - NodeFlags: () => NodeFlags, - NodeResolutionFeatures: () => NodeResolutionFeatures, - ObjectFlags: () => ObjectFlags, - OperationCanceledException: () => OperationCanceledException, - OperatorPrecedence: () => OperatorPrecedence, - OrganizeImports: () => ts_OrganizeImports_exports, - OrganizeImportsMode: () => OrganizeImportsMode, - OuterExpressionKinds: () => OuterExpressionKinds, - OutliningElementsCollector: () => ts_OutliningElementsCollector_exports, - OutliningSpanKind: () => OutliningSpanKind, - OutputFileType: () => OutputFileType, - PackageJsonAutoImportPreference: () => PackageJsonAutoImportPreference, - PackageJsonDependencyGroup: () => PackageJsonDependencyGroup, - PatternMatchKind: () => PatternMatchKind, - PollingInterval: () => PollingInterval, - PollingWatchKind: () => PollingWatchKind, - PragmaKindFlags: () => PragmaKindFlags, - PrivateIdentifierKind: () => PrivateIdentifierKind, - ProcessLevel: () => ProcessLevel, - ProgramUpdateLevel: () => ProgramUpdateLevel, - QuotePreference: () => QuotePreference, - RegularExpressionFlags: () => RegularExpressionFlags, - RelationComparisonResult: () => RelationComparisonResult, - Rename: () => ts_Rename_exports, - ScriptElementKind: () => ScriptElementKind, - ScriptElementKindModifier: () => ScriptElementKindModifier, - ScriptKind: () => ScriptKind, - ScriptSnapshot: () => ScriptSnapshot, + let tries = opts.tries; + (function _getUniqueName() { + try { + const name = _generateTmpName(opts); + + // check whether the path exists then retry if needed + fs.stat(name, function (err) { + /* istanbul ignore else */ + if (!err) { + /* istanbul ignore else */ + if (tries-- > 0) return _getUniqueName(); + + return cb(new Error('Could not get a unique tmp filename, max tries reached ' + name)); + } + + cb(null, name); + }); + } catch (err) { + cb(err); + } + }()); +} + +/** + * Synchronous version of tmpName. + * + * @param {Object} options + * @returns {string} the generated random name + * @throws {Error} if the options are invalid or could not generate a filename + */ +function tmpNameSync(options) { + const + args = _parseArguments(options), + opts = args[0]; + + _assertAndSanitizeOptions(opts); + + let tries = opts.tries; + do { + const name = _generateTmpName(opts); + try { + fs.statSync(name); + } catch (e) { + return name; + } + } while (tries-- > 0); + + throw new Error('Could not get a unique tmp filename, max tries reached'); +} + +/** + * Creates and opens a temporary file. + * + * @param {(Options|null|undefined|fileCallback)} options the config options or the callback function or null or undefined + * @param {?fileCallback} callback + */ +function file(options, callback) { + const + args = _parseArguments(options, callback), + opts = args[0], + cb = args[1]; + + // gets a temporary filename + tmpName(opts, function _tmpNameCreated(err, name) { + /* istanbul ignore else */ + if (err) return cb(err); + + // create and open the file + fs.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err, fd) { + /* istanbu ignore else */ + if (err) return cb(err); + + if (opts.discardDescriptor) { + return fs.close(fd, function _discardCallback(possibleErr) { + // the chance of getting an error on close here is rather low and might occur in the most edgiest cases only + return cb(possibleErr, name, undefined, _prepareTmpFileRemoveCallback(name, -1, opts, false)); + }); + } else { + // detachDescriptor passes the descriptor whereas discardDescriptor closes it, either way, we no longer care + // about the descriptor + const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor; + cb(null, name, fd, _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, false)); + } + }); + }); +} + +/** + * Synchronous version of file. + * + * @param {Options} options + * @returns {FileSyncObject} object consists of name, fd and removeCallback + * @throws {Error} if cannot create a file + */ +function fileSync(options) { + const + args = _parseArguments(options), + opts = args[0]; + + const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor; + const name = tmpNameSync(opts); + var fd = fs.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE); + /* istanbul ignore else */ + if (opts.discardDescriptor) { + fs.closeSync(fd); + fd = undefined; + } + + return { + name: name, + fd: fd, + removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, true) + }; +} + +/** + * Creates a temporary directory. + * + * @param {(Options|dirCallback)} options the options or the callback function + * @param {?dirCallback} callback + */ +function dir(options, callback) { + const + args = _parseArguments(options, callback), + opts = args[0], + cb = args[1]; + + // gets a temporary filename + tmpName(opts, function _tmpNameCreated(err, name) { + /* istanbul ignore else */ + if (err) return cb(err); + + // create the directory + fs.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err) { + /* istanbul ignore else */ + if (err) return cb(err); + + cb(null, name, _prepareTmpDirRemoveCallback(name, opts, false)); + }); + }); +} + +/** + * Synchronous version of dir. + * + * @param {Options} options + * @returns {DirSyncObject} object consists of name and removeCallback + * @throws {Error} if it cannot create a directory + */ +function dirSync(options) { + const + args = _parseArguments(options), + opts = args[0]; + + const name = tmpNameSync(opts); + fs.mkdirSync(name, opts.mode || DIR_MODE); + + return { + name: name, + removeCallback: _prepareTmpDirRemoveCallback(name, opts, true) + }; +} + +/** + * Removes files asynchronously. + * + * @param {Object} fdPath + * @param {Function} next + * @private + */ +function _removeFileAsync(fdPath, next) { + const _handler = function (err) { + if (err && !_isENOENT(err)) { + // reraise any unanticipated error + return next(err); + } + next(); + }; + + if (0 <= fdPath[0]) + fs.close(fdPath[0], function () { + fs.unlink(fdPath[1], _handler); + }); + else fs.unlink(fdPath[1], _handler); +} + +/** + * Removes files synchronously. + * + * @param {Object} fdPath + * @private + */ +function _removeFileSync(fdPath) { + let rethrownException = null; + try { + if (0 <= fdPath[0]) fs.closeSync(fdPath[0]); + } catch (e) { + // reraise any unanticipated error + if (!_isEBADF(e) && !_isENOENT(e)) throw e; + } finally { + try { + fs.unlinkSync(fdPath[1]); + } + catch (e) { + // reraise any unanticipated error + if (!_isENOENT(e)) rethrownException = e; + } + } + if (rethrownException !== null) { + throw rethrownException; + } +} + +/** + * Prepares the callback for removal of the temporary file. + * + * Returns either a sync callback or a async callback depending on whether + * fileSync or file was called, which is expressed by the sync parameter. + * + * @param {string} name the path of the file + * @param {number} fd file descriptor + * @param {Object} opts + * @param {boolean} sync + * @returns {fileCallback | fileCallbackSync} + * @private + */ +function _prepareTmpFileRemoveCallback(name, fd, opts, sync) { + const removeCallbackSync = _prepareRemoveCallback(_removeFileSync, [fd, name], sync); + const removeCallback = _prepareRemoveCallback(_removeFileAsync, [fd, name], sync, removeCallbackSync); + + if (!opts.keep) _removeObjects.unshift(removeCallbackSync); + + return sync ? removeCallbackSync : removeCallback; +} + +/** + * Prepares the callback for removal of the temporary directory. + * + * Returns either a sync callback or a async callback depending on whether + * tmpFileSync or tmpFile was called, which is expressed by the sync parameter. + * + * @param {string} name + * @param {Object} opts + * @param {boolean} sync + * @returns {Function} the callback + * @private + */ +function _prepareTmpDirRemoveCallback(name, opts, sync) { + const removeFunction = opts.unsafeCleanup ? rimraf : fs.rmdir.bind(fs); + const removeFunctionSync = opts.unsafeCleanup ? FN_RIMRAF_SYNC : FN_RMDIR_SYNC; + const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name, sync); + const removeCallback = _prepareRemoveCallback(removeFunction, name, sync, removeCallbackSync); + if (!opts.keep) _removeObjects.unshift(removeCallbackSync); + + return sync ? removeCallbackSync : removeCallback; +} + +/** + * Creates a guarded function wrapping the removeFunction call. + * + * The cleanup callback is save to be called multiple times. + * Subsequent invocations will be ignored. + * + * @param {Function} removeFunction + * @param {string} fileOrDirName + * @param {boolean} sync + * @param {cleanupCallbackSync?} cleanupCallbackSync + * @returns {cleanupCallback | cleanupCallbackSync} + * @private + */ +function _prepareRemoveCallback(removeFunction, fileOrDirName, sync, cleanupCallbackSync) { + let called = false; + + // if sync is true, the next parameter will be ignored + return function _cleanupCallback(next) { + + /* istanbul ignore else */ + if (!called) { + // remove cleanupCallback from cache + const toRemove = cleanupCallbackSync || _cleanupCallback; + const index = _removeObjects.indexOf(toRemove); + /* istanbul ignore else */ + if (index >= 0) _removeObjects.splice(index, 1); + + called = true; + if (sync || removeFunction === FN_RMDIR_SYNC || removeFunction === FN_RIMRAF_SYNC) { + return removeFunction(fileOrDirName); + } else { + return removeFunction(fileOrDirName, next || function() {}); + } + } + }; +} + +/** + * The garbage collector. + * + * @private + */ +function _garbageCollector() { + /* istanbul ignore else */ + if (!_gracefulCleanup) return; + + // the function being called removes itself from _removeObjects, + // loop until _removeObjects is empty + while (_removeObjects.length) { + try { + _removeObjects[0](); + } catch (e) { + // already removed? + } + } +} + +/** + * Random name generator based on crypto. + * Adapted from http://blog.tompawlak.org/how-to-generate-random-values-nodejs-javascript + * + * @param {number} howMany + * @returns {string} the generated random name + * @private + */ +function _randomChars(howMany) { + let + value = [], + rnd = null; + + // make sure that we do not fail because we ran out of entropy + try { + rnd = crypto.randomBytes(howMany); + } catch (e) { + rnd = crypto.pseudoRandomBytes(howMany); + } + + for (var i = 0; i < howMany; i++) { + value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]); + } + + return value.join(''); +} + +/** + * Helper which determines whether a string s is blank, that is undefined, or empty or null. + * + * @private + * @param {string} s + * @returns {Boolean} true whether the string s is blank, false otherwise + */ +function _isBlank(s) { + return s === null || _isUndefined(s) || !s.trim(); +} + +/** + * Checks whether the `obj` parameter is defined or not. + * + * @param {Object} obj + * @returns {boolean} true if the object is undefined + * @private + */ +function _isUndefined(obj) { + return typeof obj === 'undefined'; +} + +/** + * Parses the function arguments. + * + * This function helps to have optional arguments. + * + * @param {(Options|null|undefined|Function)} options + * @param {?Function} callback + * @returns {Array} parsed arguments + * @private + */ +function _parseArguments(options, callback) { + /* istanbul ignore else */ + if (typeof options === 'function') { + return [{}, options]; + } + + /* istanbul ignore else */ + if (_isUndefined(options)) { + return [{}, callback]; + } + + // copy options so we do not leak the changes we make internally + const actualOptions = {}; + for (const key of Object.getOwnPropertyNames(options)) { + actualOptions[key] = options[key]; + } + + return [actualOptions, callback]; +} + +/** + * Generates a new temporary name. + * + * @param {Object} opts + * @returns {string} the new random name according to opts + * @private + */ +function _generateTmpName(opts) { + + const tmpDir = opts.tmpdir; + + /* istanbul ignore else */ + if (!_isUndefined(opts.name)) + return path.join(tmpDir, opts.dir, opts.name); + + /* istanbul ignore else */ + if (!_isUndefined(opts.template)) + return path.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6)); + + // prefix and postfix + const name = [ + opts.prefix ? opts.prefix : 'tmp', + '-', + process.pid, + '-', + _randomChars(12), + opts.postfix ? '-' + opts.postfix : '' + ].join(''); + + return path.join(tmpDir, opts.dir, name); +} + +/** + * Asserts whether the specified options are valid, also sanitizes options and provides sane defaults for missing + * options. + * + * @param {Options} options + * @private + */ +function _assertAndSanitizeOptions(options) { + + options.tmpdir = _getTmpDir(options); + + const tmpDir = options.tmpdir; + + /* istanbul ignore else */ + if (!_isUndefined(options.name)) + _assertIsRelative(options.name, 'name', tmpDir); + /* istanbul ignore else */ + if (!_isUndefined(options.dir)) + _assertIsRelative(options.dir, 'dir', tmpDir); + /* istanbul ignore else */ + if (!_isUndefined(options.template)) { + _assertIsRelative(options.template, 'template', tmpDir); + if (!options.template.match(TEMPLATE_PATTERN)) + throw new Error(`Invalid template, found "${options.template}".`); + } + /* istanbul ignore else */ + if (!_isUndefined(options.tries) && isNaN(options.tries) || options.tries < 0) + throw new Error(`Invalid tries, found "${options.tries}".`); + + // if a name was specified we will try once + options.tries = _isUndefined(options.name) ? options.tries || DEFAULT_TRIES : 1; + options.keep = !!options.keep; + options.detachDescriptor = !!options.detachDescriptor; + options.discardDescriptor = !!options.discardDescriptor; + options.unsafeCleanup = !!options.unsafeCleanup; + + // sanitize dir, also keep (multiple) blanks if the user, purportedly sane, requests us to + options.dir = _isUndefined(options.dir) ? '' : path.relative(tmpDir, _resolvePath(options.dir, tmpDir)); + options.template = _isUndefined(options.template) ? undefined : path.relative(tmpDir, _resolvePath(options.template, tmpDir)); + // sanitize further if template is relative to options.dir + options.template = _isBlank(options.template) ? undefined : path.relative(options.dir, options.template); + + // for completeness' sake only, also keep (multiple) blanks if the user, purportedly sane, requests us to + options.name = _isUndefined(options.name) ? undefined : _sanitizeName(options.name); + options.prefix = _isUndefined(options.prefix) ? '' : options.prefix; + options.postfix = _isUndefined(options.postfix) ? '' : options.postfix; +} + +/** + * Resolve the specified path name in respect to tmpDir. + * + * The specified name might include relative path components, e.g. ../ + * so we need to resolve in order to be sure that is is located inside tmpDir + * + * @param name + * @param tmpDir + * @returns {string} + * @private + */ +function _resolvePath(name, tmpDir) { + const sanitizedName = _sanitizeName(name); + if (sanitizedName.startsWith(tmpDir)) { + return path.resolve(sanitizedName); + } else { + return path.resolve(path.join(tmpDir, sanitizedName)); + } +} + +/** + * Sanitize the specified path name by removing all quote characters. + * + * @param name + * @returns {string} + * @private + */ +function _sanitizeName(name) { + if (_isBlank(name)) { + return name; + } + return name.replace(/["']/g, ''); +} + +/** + * Asserts whether specified name is relative to the specified tmpDir. + * + * @param {string} name + * @param {string} option + * @param {string} tmpDir + * @throws {Error} + * @private + */ +function _assertIsRelative(name, option, tmpDir) { + if (option === 'name') { + // assert that name is not absolute and does not contain a path + if (path.isAbsolute(name)) + throw new Error(`${option} option must not contain an absolute path, found "${name}".`); + // must not fail on valid . or .. or similar such constructs + let basename = path.basename(name); + if (basename === '..' || basename === '.' || basename !== name) + throw new Error(`${option} option must not contain a path, found "${name}".`); + } + else { // if (option === 'dir' || option === 'template') { + // assert that dir or template are relative to tmpDir + if (path.isAbsolute(name) && !name.startsWith(tmpDir)) { + throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`); + } + let resolvedPath = _resolvePath(name, tmpDir); + if (!resolvedPath.startsWith(tmpDir)) + throw new Error(`${option} option must be relative to "${tmpDir}", found "${resolvedPath}".`); + } +} + +/** + * Helper for testing against EBADF to compensate changes made to Node 7.x under Windows. + * + * @private + */ +function _isEBADF(error) { + return _isExpectedError(error, -EBADF, 'EBADF'); +} + +/** + * Helper for testing against ENOENT to compensate changes made to Node 7.x under Windows. + * + * @private + */ +function _isENOENT(error) { + return _isExpectedError(error, -ENOENT, 'ENOENT'); +} + +/** + * Helper to determine whether the expected error code matches the actual code and errno, + * which will differ between the supported node versions. + * + * - Node >= 7.0: + * error.code {string} + * error.errno {number} any numerical value will be negated + * + * CAVEAT + * + * On windows, the errno for EBADF is -4083 but os.constants.errno.EBADF is different and we must assume that ENOENT + * is no different here. + * + * @param {SystemError} error + * @param {number} errno + * @param {string} code + * @private + */ +function _isExpectedError(error, errno, code) { + return IS_WIN32 ? error.code === code : error.code === code && error.errno === errno; +} + +/** + * Sets the graceful cleanup. + * + * If graceful cleanup is set, tmp will remove all controlled temporary objects on process exit, otherwise the + * temporary objects will remain in place, waiting to be cleaned up on system restart or otherwise scheduled temporary + * object removals. + */ +function setGracefulCleanup() { + _gracefulCleanup = true; +} + +/** + * Returns the currently configured tmp dir from os.tmpdir(). + * + * @private + * @param {?Options} options + * @returns {string} the currently configured tmp dir + */ +function _getTmpDir(options) { + return path.resolve(_sanitizeName(options && options.tmpdir || os.tmpdir())); +} + +// Install process exit listener +process.addListener(EXIT, _garbageCollector); + +/** + * Configuration options. + * + * @typedef {Object} Options + * @property {?boolean} keep the temporary object (file or dir) will not be garbage collected + * @property {?number} tries the number of tries before give up the name generation + * @property (?int) mode the access mode, defaults are 0o700 for directories and 0o600 for files + * @property {?string} template the "mkstemp" like filename template + * @property {?string} name fixed name relative to tmpdir or the specified dir option + * @property {?string} dir tmp directory relative to the root tmp directory in use + * @property {?string} prefix prefix for the generated name + * @property {?string} postfix postfix for the generated name + * @property {?string} tmpdir the root tmp directory which overrides the os tmpdir + * @property {?boolean} unsafeCleanup recursively removes the created temporary directory, even when it's not empty + * @property {?boolean} detachDescriptor detaches the file descriptor, caller is responsible for closing the file, tmp will no longer try closing the file during garbage collection + * @property {?boolean} discardDescriptor discards the file descriptor (closes file, fd is -1), tmp will no longer try closing the file during garbage collection + */ + +/** + * @typedef {Object} FileSyncObject + * @property {string} name the name of the file + * @property {string} fd the file descriptor or -1 if the fd has been discarded + * @property {fileCallback} removeCallback the callback function to remove the file + */ + +/** + * @typedef {Object} DirSyncObject + * @property {string} name the name of the directory + * @property {fileCallback} removeCallback the callback function to remove the directory + */ + +/** + * @callback tmpNameCallback + * @param {?Error} err the error object if anything goes wrong + * @param {string} name the temporary file name + */ + +/** + * @callback fileCallback + * @param {?Error} err the error object if anything goes wrong + * @param {string} name the temporary file name + * @param {number} fd the file descriptor or -1 if the fd had been discarded + * @param {cleanupCallback} fn the cleanup callback function + */ + +/** + * @callback fileCallbackSync + * @param {?Error} err the error object if anything goes wrong + * @param {string} name the temporary file name + * @param {number} fd the file descriptor or -1 if the fd had been discarded + * @param {cleanupCallbackSync} fn the cleanup callback function + */ + +/** + * @callback dirCallback + * @param {?Error} err the error object if anything goes wrong + * @param {string} name the temporary file name + * @param {cleanupCallback} fn the cleanup callback function + */ + +/** + * @callback dirCallbackSync + * @param {?Error} err the error object if anything goes wrong + * @param {string} name the temporary file name + * @param {cleanupCallbackSync} fn the cleanup callback function + */ + +/** + * Removes the temporary created file or directory. + * + * @callback cleanupCallback + * @param {simpleCallback} [next] function to call whenever the tmp object needs to be removed + */ + +/** + * Removes the temporary created file or directory. + * + * @callback cleanupCallbackSync + */ + +/** + * Callback function for function composition. + * @see {@link https://github.com/raszi/node-tmp/issues/57|raszi/node-tmp#57} + * + * @callback simpleCallback + */ + +// exporting all the needed methods + +// evaluate _getTmpDir() lazily, mainly for simplifying testing but it also will +// allow users to reconfigure the temporary directory +Object.defineProperty(module.exports, "tmpdir", ({ + enumerable: true, + configurable: false, + get: function () { + return _getTmpDir(); + } +})); + +module.exports.dir = dir; +module.exports.dirSync = dirSync; + +module.exports.file = file; +module.exports.fileSync = fileSync; + +module.exports.tmpName = tmpName; +module.exports.tmpNameSync = tmpNameSync; + +module.exports.setGracefulCleanup = setGracefulCleanup; + + +/***/ }), + +/***/ 88375: +/***/ ((module) => { + +// Copied from https://github.com/nodejs/node/blob/master/lib/internal/constants.js +module.exports = { + CHAR_FORWARD_SLASH: 47, /* / */ +}; + + +/***/ }), + +/***/ 61858: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +const path = __nccwpck_require__(71017); + +exports.codes = { + ERR_INPUT_TYPE_NOT_ALLOWED: createErrorCtor(joinArgs('ERR_INPUT_TYPE_NOT_ALLOWED')), + ERR_INVALID_ARG_VALUE: createErrorCtor(joinArgs('ERR_INVALID_ARG_VALUE')), + ERR_INVALID_MODULE_SPECIFIER: createErrorCtor(joinArgs('ERR_INVALID_MODULE_SPECIFIER')), + ERR_INVALID_PACKAGE_CONFIG: createErrorCtor(joinArgs('ERR_INVALID_PACKAGE_CONFIG')), + ERR_INVALID_PACKAGE_TARGET: createErrorCtor(joinArgs('ERR_INVALID_PACKAGE_TARGET')), + ERR_MANIFEST_DEPENDENCY_MISSING: createErrorCtor(joinArgs('ERR_MANIFEST_DEPENDENCY_MISSING')), + ERR_MODULE_NOT_FOUND: createErrorCtor((path, base, type = 'package') => { + return `Cannot find ${type} '${path}' imported from ${base}` + }), + ERR_PACKAGE_IMPORT_NOT_DEFINED: createErrorCtor(joinArgs('ERR_PACKAGE_IMPORT_NOT_DEFINED')), + ERR_PACKAGE_PATH_NOT_EXPORTED: createErrorCtor(joinArgs('ERR_PACKAGE_PATH_NOT_EXPORTED')), + ERR_UNSUPPORTED_DIR_IMPORT: createErrorCtor(joinArgs('ERR_UNSUPPORTED_DIR_IMPORT')), + ERR_UNSUPPORTED_ESM_URL_SCHEME: createErrorCtor(joinArgs('ERR_UNSUPPORTED_ESM_URL_SCHEME')), + ERR_UNKNOWN_FILE_EXTENSION: createErrorCtor(joinArgs('ERR_UNKNOWN_FILE_EXTENSION')), +} + +function joinArgs(name) { + return (...args) => { + return [name, ...args].join(' ') + } +} + +function createErrorCtor(errorMessageCreator) { + return class CustomError extends Error { + constructor(...args) { + super(errorMessageCreator(...args)) + } + } +} +exports.createErrRequireEsm = createErrRequireEsm; + +// Native ERR_REQUIRE_ESM Error is declared here: +// https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/errors.js#L1294-L1313 +// Error class factory is implemented here: +// function E: https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/errors.js#L323-L341 +// function makeNodeErrorWithCode: https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/errors.js#L251-L278 +// The code below should create an error that matches the native error as closely as possible. +// Third-party libraries which attempt to catch the native ERR_REQUIRE_ESM should recognize our imitation error. +function createErrRequireEsm(filename, parentPath, packageJsonPath) { + const code = 'ERR_REQUIRE_ESM' + const err = new Error(getErrRequireEsmMessage(filename, parentPath, packageJsonPath)) + // Set `name` to be used in stack trace, generate stack trace with that name baked in, then re-declare the `name` field. + // This trick is copied from node's source. + err.name = `Error [${ code }]` + err.stack + Object.defineProperty(err, 'name', { + value: 'Error', + enumerable: false, + writable: true, + configurable: true + }) + err.code = code + return err +} + +// Copy-pasted from https://github.com/nodejs/node/blob/b533fb3508009e5f567cc776daba8fbf665386a6/lib/internal/errors.js#L1293-L1311 +// so that our error message is identical to the native message. +function getErrRequireEsmMessage(filename, parentPath = null, packageJsonPath = null) { + const ext = path.extname(filename) + let msg = `Must use import to load ES Module: ${filename}`; + if (parentPath && packageJsonPath) { + const path = __nccwpck_require__(71017); + const basename = path.basename(filename) === path.basename(parentPath) ? + filename : path.basename(filename); + msg += + '\nrequire() of ES modules is not supported.\nrequire() of ' + + `${filename} ${parentPath ? `from ${parentPath} ` : ''}` + + `is an ES module file as it is a ${ext} file whose nearest parent ` + + `package.json contains "type": "module" which defines all ${ext} ` + + 'files in that package scope as ES modules.\nInstead ' + + 'change the requiring code to use ' + + 'import(), or remove "type": "module" from ' + + `${packageJsonPath}.\n`; + return msg; + } + return msg; +} + + +/***/ }), + +/***/ 66755: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +// Copied from https://github.com/nodejs/node/blob/v17.0.1/lib/internal/modules/cjs/helpers.js + + + +const { + ArrayPrototypeForEach, + ObjectDefineProperty, + ObjectPrototypeHasOwnProperty, + SafeSet, + StringPrototypeIncludes, + StringPrototypeStartsWith, +} = __nccwpck_require__(26326); + +const { getOptionValue } = __nccwpck_require__(40690); +const userConditions = getOptionValue('--conditions'); + +const noAddons = getOptionValue('--no-addons'); +const addonConditions = noAddons ? [] : ['node-addons']; + +// TODO: Use this set when resolving pkg#exports conditions in loader.js. +const cjsConditions = new SafeSet([ + 'require', + 'node', + ...addonConditions, + ...userConditions, +]); + +/** + * @param {any} object + * @param {string} [dummyModuleName] + * @return {void} + */ +function addBuiltinLibsToObject(object, dummyModuleName) { + // Make built-in modules available directly (loaded lazily). + const Module = (__nccwpck_require__(98188).Module); + const { builtinModules } = Module; + + // To require built-in modules in user-land and ignore modules whose + // `canBeRequiredByUsers` is false. So we create a dummy module object and not + // use `require()` directly. + const dummyModule = new Module(dummyModuleName); + + ArrayPrototypeForEach(builtinModules, (name) => { + // Neither add underscored modules, nor ones that contain slashes (e.g., + // 'fs/promises') or ones that are already defined. + if (StringPrototypeStartsWith(name, '_') || + StringPrototypeIncludes(name, '/') || + ObjectPrototypeHasOwnProperty(object, name)) { + return; + } + // Goals of this mechanism are: + // - Lazy loading of built-in modules + // - Having all built-in modules available as non-enumerable properties + // - Allowing the user to re-assign these variables as if there were no + // pre-existing globals with the same name. + + const setReal = (val) => { + // Deleting the property before re-assigning it disables the + // getter/setter mechanism. + delete object[name]; + object[name] = val; + }; + + ObjectDefineProperty(object, name, { + get: () => { + // Node 12 hack; remove when we drop node12 support + const lib = (dummyModule.require || require)(name); + + // Disable the current getter/setter and set up a new + // non-enumerable property. + delete object[name]; + ObjectDefineProperty(object, name, { + get: () => lib, + set: setReal, + configurable: true, + enumerable: false + }); + + return lib; + }, + set: setReal, + configurable: true, + enumerable: false + }); + }); +} + +exports.addBuiltinLibsToObject = addBuiltinLibsToObject; +exports.cjsConditions = cjsConditions; + + +/***/ }), + +/***/ 51633: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copied from several files in node's source code. +// https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/modules/cjs/loader.js +// Each function and variable below must have a comment linking to the source in node's github repo. + + + +const { + ArrayIsArray, + ArrayPrototypeIncludes, + ArrayPrototypeJoin, + ArrayPrototypePush, + JSONParse, + ObjectKeys, + RegExpPrototypeTest, + SafeMap, + SafeWeakMap, + StringPrototypeCharCodeAt, + StringPrototypeEndsWith, + StringPrototypeLastIndexOf, + StringPrototypeIndexOf, + StringPrototypeMatch, + StringPrototypeSlice, + StringPrototypeStartsWith, +} = __nccwpck_require__(26326); +const { NativeModule } = __nccwpck_require__(81597); +const { pathToFileURL, fileURLToPath } = __nccwpck_require__(57310); +const fs = __nccwpck_require__(57147); +const path = __nccwpck_require__(71017); +const { sep } = path; +const { internalModuleStat } = __nccwpck_require__(3601); +const packageJsonReader = __nccwpck_require__(53348); +const { + cjsConditions, +} = __nccwpck_require__(66755); +const { getOptionValue } = __nccwpck_require__(40690); +const preserveSymlinks = getOptionValue('--preserve-symlinks'); +const preserveSymlinksMain = getOptionValue('--preserve-symlinks-main'); +const {normalizeSlashes} = __nccwpck_require__(64745); +const {createErrRequireEsm} = __nccwpck_require__(61858); +const { + codes: { + ERR_INVALID_MODULE_SPECIFIER, + }, +} = __nccwpck_require__(61858); + +const { + CHAR_FORWARD_SLASH, +} = __nccwpck_require__(88375); + +const Module = __nccwpck_require__(98188); + +const isWindows = process.platform === 'win32'; + +let statCache = null; + +function stat(filename) { + filename = path.toNamespacedPath(filename); + if (statCache !== null) { + const result = statCache.get(filename); + if (result !== undefined) return result; + } + const result = internalModuleStat(filename); + if (statCache !== null && result >= 0) { + // Only set cache when `internalModuleStat(filename)` succeeds. + statCache.set(filename, result); + } + return result; +} + +// Note: +// we cannot get access to node's internal cache, which is populated from +// within node's Module constructor. So the cache here will always be empty. +// It's possible we could approximate our own cache by building it up with +// hacky workarounds, but it's not worth the complexity and flakiness. +const moduleParentCache = new SafeWeakMap(); + +// Given a module name, and a list of paths to test, returns the first +// matching file in the following precedence. +// +// require("a.") +// -> a. +// +// require("a") +// -> a +// -> a. +// -> a/index. + +const packageJsonCache = new SafeMap(); + +function readPackage(requestPath) { + const jsonPath = path.resolve(requestPath, 'package.json'); + + const existing = packageJsonCache.get(jsonPath); + if (existing !== undefined) return existing; + + const result = packageJsonReader.read(jsonPath); + const json = result.containsKeys === false ? '{}' : result.string; + if (json === undefined) { + packageJsonCache.set(jsonPath, false); + return false; + } + + try { + const parsed = JSONParse(json); + const filtered = { + name: parsed.name, + main: parsed.main, + exports: parsed.exports, + imports: parsed.imports, + type: parsed.type + }; + packageJsonCache.set(jsonPath, filtered); + return filtered; + } catch (e) { + e.path = jsonPath; + e.message = 'Error parsing ' + jsonPath + ': ' + e.message; + throw e; + } +} + +function readPackageScope(checkPath) { + const rootSeparatorIndex = StringPrototypeIndexOf(checkPath, sep); + let separatorIndex; + do { + separatorIndex = StringPrototypeLastIndexOf(checkPath, sep); + checkPath = StringPrototypeSlice(checkPath, 0, separatorIndex); + if (StringPrototypeEndsWith(checkPath, sep + 'node_modules')) + return false; + const pjson = readPackage(checkPath + sep); + if (pjson) return { + data: pjson, + path: checkPath, + }; + } while (separatorIndex > rootSeparatorIndex); + return false; +} + +/** + * @param {{ + * nodeEsmResolver: ReturnType, + * extensions: import('../src/file-extensions').Extensions, + * preferTsExts + * }} opts + */ +function createCjsLoader(opts) { +const {nodeEsmResolver, preferTsExts} = opts; +const {replacementsForCjs, replacementsForJs, replacementsForMjs, replacementsForJsx} = opts.extensions; +const { + encodedSepRegEx, + packageExportsResolve, + packageImportsResolve +} = nodeEsmResolver; + +function tryPackage(requestPath, exts, isMain, originalPath) { + // const pkg = readPackage(requestPath)?.main; + const tmp = readPackage(requestPath) + const pkg = tmp != null ? tmp.main : undefined; + + if (!pkg) { + return tryExtensions(path.resolve(requestPath, 'index'), exts, isMain); + } + + const filename = path.resolve(requestPath, pkg); + let actual = tryReplacementExtensions(filename, isMain) || + tryFile(filename, isMain) || + tryExtensions(filename, exts, isMain) || + tryExtensions(path.resolve(filename, 'index'), exts, isMain); + if (actual === false) { + actual = tryExtensions(path.resolve(requestPath, 'index'), exts, isMain); + if (!actual) { + // eslint-disable-next-line no-restricted-syntax + const err = new Error( + `Cannot find module '${filename}'. ` + + 'Please verify that the package.json has a valid "main" entry' + ); + err.code = 'MODULE_NOT_FOUND'; + err.path = path.resolve(requestPath, 'package.json'); + err.requestPath = originalPath; + // TODO(BridgeAR): Add the requireStack as well. + throw err; + } else { + const jsonPath = path.resolve(requestPath, 'package.json'); + process.emitWarning( + `Invalid 'main' field in '${jsonPath}' of '${pkg}'. ` + + 'Please either fix that or report it to the module author', + 'DeprecationWarning', + 'DEP0128' + ); + } + } + return actual; +} + +// In order to minimize unnecessary lstat() calls, +// this cache is a list of known-real paths. +// Set to an empty Map to reset. +const realpathCache = new SafeMap(); + +// Check if the file exists and is not a directory +// if using --preserve-symlinks and isMain is false, +// keep symlinks intact, otherwise resolve to the +// absolute realpath. +function tryFile(requestPath, isMain) { + const rc = stat(requestPath); + if (rc !== 0) return; + if (preserveSymlinks && !isMain) { + return path.resolve(requestPath); + } + return toRealPath(requestPath); +} + +function toRealPath(requestPath) { + return fs.realpathSync(requestPath, { + // [internalFS.realpathCacheKey]: realpathCache + }); +} + +function statReplacementExtensions(p) { + const lastDotIndex = p.lastIndexOf('.'); + if(lastDotIndex >= 0) { + const ext = p.slice(lastDotIndex); + if (ext === '.js' || ext === '.jsx' || ext === '.mjs' || ext === '.cjs') { + const pathnameWithoutExtension = p.slice(0, lastDotIndex); + const replacementExts = + ext === '.js' ? replacementsForJs + : ext === '.jsx' ? replacementsForJsx + : ext === '.mjs' ? replacementsForMjs + : replacementsForCjs; + for (let i = 0; i < replacementExts.length; i++) { + const filename = pathnameWithoutExtension + replacementExts[i]; + const rc = stat(filename); + if (rc === 0) { + return [rc, filename]; + } + } + } + } + return [stat(p), p]; +} +function tryReplacementExtensions(p, isMain) { + const lastDotIndex = p.lastIndexOf('.'); + if(lastDotIndex >= 0) { + const ext = p.slice(lastDotIndex); + if (ext === '.js' || ext === '.jsx' || ext === '.mjs' || ext === '.cjs') { + const pathnameWithoutExtension = p.slice(0, lastDotIndex); + const replacementExts = + ext === '.js' ? replacementsForJs + : ext === '.jsx' ? replacementsForJsx + : ext === '.mjs' ? replacementsForMjs + : replacementsForCjs; + for (let i = 0; i < replacementExts.length; i++) { + const filename = tryFile(pathnameWithoutExtension + replacementExts[i], isMain); + if (filename) { + return filename; + } + } + } + } + return false; +} + +// Given a path, check if the file exists with any of the set extensions +function tryExtensions(p, exts, isMain) { + for (let i = 0; i < exts.length; i++) { + const filename = tryFile(p + exts[i], isMain); + + if (filename) { + return filename; + } + } + return false; +} + +function trySelfParentPath(parent) { + if (!parent) return false; + + if (parent.filename) { + return parent.filename; + } else if (parent.id === '' || parent.id === 'internal/preload') { + try { + return process.cwd() + path.sep; + } catch { + return false; + } + } +} + +function trySelf(parentPath, request) { + if (!parentPath) return false; + + const { data: pkg, path: pkgPath } = readPackageScope(parentPath) || {}; + if (!pkg || pkg.exports === undefined) return false; + if (typeof pkg.name !== 'string') return false; + + let expansion; + if (request === pkg.name) { + expansion = '.'; + } else if (StringPrototypeStartsWith(request, `${pkg.name}/`)) { + expansion = '.' + StringPrototypeSlice(request, pkg.name.length); + } else { + return false; + } + + try { + return finalizeEsmResolution(packageExportsResolve( + pathToFileURL(pkgPath + '/package.json'), expansion, pkg, + pathToFileURL(parentPath), cjsConditions).resolved, parentPath, pkgPath); + } catch (e) { + if (e.code === 'ERR_MODULE_NOT_FOUND') + throw createEsmNotFoundErr(request, pkgPath + '/package.json'); + throw e; + } +} + +// This only applies to requests of a specific form: +// 1. name/.* +// 2. @scope/name/.* +const EXPORTS_PATTERN = /^((?:@[^/\\%]+\/)?[^./\\%][^/\\%]*)(\/.*)?$/; +function resolveExports(nmPath, request) { + // The implementation's behavior is meant to mirror resolution in ESM. + const { 1: name, 2: expansion = '' } = + StringPrototypeMatch(request, EXPORTS_PATTERN) || []; + if (!name) + return; + const pkgPath = path.resolve(nmPath, name); + const pkg = readPackage(pkgPath); + // if (pkg?.exports != null) { + if (pkg != null && pkg.exports != null) { + try { + return finalizeEsmResolution(packageExportsResolve( + pathToFileURL(pkgPath + '/package.json'), '.' + expansion, pkg, null, + cjsConditions).resolved, null, pkgPath); + } catch (e) { + if (e.code === 'ERR_MODULE_NOT_FOUND') + throw createEsmNotFoundErr(request, pkgPath + '/package.json'); + throw e; + } + } +} + +// Backwards compat for old node versions +const hasModulePathCache = !!(__nccwpck_require__(98188)._pathCache); +const Module_pathCache = Object.create(null); +const Module_pathCache_get = hasModulePathCache ? (cacheKey) => Module._pathCache[cacheKey] : (cacheKey) => Module_pathCache[cacheKey]; +const Module_pathCache_set = hasModulePathCache ? (cacheKey, value) => (Module._pathCache[cacheKey] = value) : (cacheKey) => (Module_pathCache[cacheKey] = value); + +const trailingSlashRegex = /(?:^|\/)\.?\.$/; +const Module_findPath = function _findPath(request, paths, isMain) { + const absoluteRequest = path.isAbsolute(request); + if (absoluteRequest) { + paths = ['']; + } else if (!paths || paths.length === 0) { + return false; + } + + const cacheKey = request + '\x00' + ArrayPrototypeJoin(paths, '\x00'); + const entry = Module_pathCache_get(cacheKey); + if (entry) + return entry; + + let exts; + let trailingSlash = request.length > 0 && + StringPrototypeCharCodeAt(request, request.length - 1) === + CHAR_FORWARD_SLASH; + if (!trailingSlash) { + trailingSlash = RegExpPrototypeTest(trailingSlashRegex, request); + } + + // For each path + for (let i = 0; i < paths.length; i++) { + // Don't search further if path doesn't exist + const curPath = paths[i]; + if (curPath && stat(curPath) < 1) continue; + + if (!absoluteRequest) { + const exportsResolved = resolveExports(curPath, request); + if (exportsResolved) + return exportsResolved; + } + + const _basePath = path.resolve(curPath, request); + let filename; + + const [rc, basePath] = statReplacementExtensions(_basePath); + if (!trailingSlash) { + if (rc === 0) { // File. + if (!isMain) { + if (preserveSymlinks) { + filename = path.resolve(basePath); + } else { + filename = toRealPath(basePath); + } + } else if (preserveSymlinksMain) { + // For the main module, we use the preserveSymlinksMain flag instead + // mainly for backward compatibility, as the preserveSymlinks flag + // historically has not applied to the main module. Most likely this + // was intended to keep .bin/ binaries working, as following those + // symlinks is usually required for the imports in the corresponding + // files to resolve; that said, in some use cases following symlinks + // causes bigger problems which is why the preserveSymlinksMain option + // is needed. + filename = path.resolve(basePath); + } else { + filename = toRealPath(basePath); + } + } + + if (!filename) { + // Try it with each of the extensions + if (exts === undefined) + exts = ObjectKeys(Module._extensions); + filename = tryExtensions(basePath, exts, isMain); + } + } + + if (!filename && rc === 1) { // Directory. + // try it with each of the extensions at "index" + if (exts === undefined) + exts = ObjectKeys(Module._extensions); + filename = tryPackage(basePath, exts, isMain, request); + } + + if (filename) { + Module_pathCache_set(cacheKey, filename); + return filename; + } + } + + return false; +}; + +const Module_resolveFilename = function _resolveFilename(request, parent, isMain, options) { + if (StringPrototypeStartsWith(request, 'node:') || + NativeModule.canBeRequiredByUsers(request)) { + return request; + } + + let paths; + + if (typeof options === 'object' && options !== null) { + if (ArrayIsArray(options.paths)) { + const isRelative = StringPrototypeStartsWith(request, './') || + StringPrototypeStartsWith(request, '../') || + ((isWindows && StringPrototypeStartsWith(request, '.\\')) || + StringPrototypeStartsWith(request, '..\\')); + + if (isRelative) { + paths = options.paths; + } else { + const fakeParent = new Module('', null); + + paths = []; + + for (let i = 0; i < options.paths.length; i++) { + const path = options.paths[i]; + fakeParent.paths = Module._nodeModulePaths(path); + const lookupPaths = Module._resolveLookupPaths(request, fakeParent); + + for (let j = 0; j < lookupPaths.length; j++) { + if (!ArrayPrototypeIncludes(paths, lookupPaths[j])) + ArrayPrototypePush(paths, lookupPaths[j]); + } + } + } + } else if (options.paths === undefined) { + paths = Module._resolveLookupPaths(request, parent); + } else { + throw new ERR_INVALID_ARG_VALUE('options.paths', options.paths); + } + } else { + paths = Module._resolveLookupPaths(request, parent); + } + + // if (parent?.filename) { + // node 12 hack + if (parent != null && parent.filename) { + if (request[0] === '#') { + const pkg = readPackageScope(parent.filename) || {}; + + // if (pkg.data?.imports != null) { + // node 12 hack + if (pkg.data != null && pkg.data.imports != null) { + try { + return finalizeEsmResolution( + packageImportsResolve(request, pathToFileURL(parent.filename), + cjsConditions), parent.filename, + pkg.path); + } catch (e) { + if (e.code === 'ERR_MODULE_NOT_FOUND') + throw createEsmNotFoundErr(request); + throw e; + } + } + } + } + + // Try module self resolution first + const parentPath = trySelfParentPath(parent); + const selfResolved = trySelf(parentPath, request); + if (selfResolved) { + const cacheKey = request + '\x00' + + (paths.length === 1 ? paths[0] : ArrayPrototypeJoin(paths, '\x00')); + Module._pathCache[cacheKey] = selfResolved; + return selfResolved; + } + + // Look up the filename first, since that's the cache key. + const filename = Module._findPath(request, paths, isMain, false); + if (filename) return filename; + const requireStack = []; + for (let cursor = parent; + cursor; + cursor = moduleParentCache.get(cursor)) { + ArrayPrototypePush(requireStack, cursor.filename || cursor.id); + } + let message = `Cannot find module '${request}'`; + if (requireStack.length > 0) { + message = message + '\nRequire stack:\n- ' + + ArrayPrototypeJoin(requireStack, '\n- '); + } + // eslint-disable-next-line no-restricted-syntax + const err = new Error(message); + err.code = 'MODULE_NOT_FOUND'; + err.requireStack = requireStack; + throw err; +}; + +function finalizeEsmResolution(resolved, parentPath, pkgPath) { + if (RegExpPrototypeTest(encodedSepRegEx, resolved)) + throw new ERR_INVALID_MODULE_SPECIFIER( + resolved, 'must not include encoded "/" or "\\" characters', parentPath); + const filename = fileURLToPath(resolved); + const actual = tryReplacementExtensions(filename) || tryFile(filename); + if (actual) + return actual; + const err = createEsmNotFoundErr(filename, + path.resolve(pkgPath, 'package.json')); + throw err; +} + +function createEsmNotFoundErr(request, path) { + // eslint-disable-next-line no-restricted-syntax + const err = new Error(`Cannot find module '${request}'`); + err.code = 'MODULE_NOT_FOUND'; + if (path) + err.path = path; + // TODO(BridgeAR): Add the requireStack as well. + return err; +} + + +return { + Module_findPath, + Module_resolveFilename +} + +} + +/** + * copied from Module._extensions['.js'] + * https://github.com/nodejs/node/blob/v15.3.0/lib/internal/modules/cjs/loader.js#L1113-L1120 + * @param {import('../src/index').Service} service + * @param {NodeJS.Module} module + * @param {string} filename + */ +function assertScriptCanLoadAsCJSImpl(service, module, filename) { + const pkg = readPackageScope(filename); + + // ts-node modification: allow our configuration to override + const tsNodeClassification = service.moduleTypeClassifier.classifyModuleByModuleTypeOverrides(normalizeSlashes(filename)); + if(tsNodeClassification.moduleType === 'cjs') return; + + // ignore package.json when file extension is ESM-only or CJS-only + // [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS] + const lastDotIndex = filename.lastIndexOf('.'); + const ext = lastDotIndex >= 0 ? filename.slice(lastDotIndex) : ''; + + if((ext === '.cts' || ext === '.cjs') && tsNodeClassification.moduleType === 'auto') return; + + // Function require shouldn't be used in ES modules. + if (ext === '.mts' || ext === '.mjs' || tsNodeClassification.moduleType === 'esm' || (pkg && pkg.data && pkg.data.type === 'module')) { + const parentPath = module.parent && module.parent.filename; + const packageJsonPath = pkg ? path.resolve(pkg.path, 'package.json') : null; + throw createErrRequireEsm(filename, parentPath, packageJsonPath); + } +} + + +module.exports = { + createCjsLoader, + assertScriptCanLoadAsCJSImpl, + readPackageScope +}; + + +/***/ }), + +/***/ 37207: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copied from https://raw.githubusercontent.com/nodejs/node/v15.3.0/lib/internal/modules/esm/get_format.js + + +const { + RegExpPrototypeExec, + StringPrototypeStartsWith, +} = __nccwpck_require__(26326); +const { extname } = __nccwpck_require__(71017); +const { getOptionValue } = __nccwpck_require__(40690); + +const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(s => parseInt(s, 10)); +const experimentalJsonModules = + nodeMajor > 17 + || (nodeMajor === 17 && nodeMinor >= 5) + || (nodeMajor === 16 && nodeMinor >= 15) + || getOptionValue('--experimental-json-modules'); +const experimentalWasmModules = getOptionValue('--experimental-wasm-modules'); +const { URL, fileURLToPath } = __nccwpck_require__(57310); +const { ERR_UNKNOWN_FILE_EXTENSION } = (__nccwpck_require__(61858).codes); + +const extensionFormatMap = { + '__proto__': null, + '.cjs': 'commonjs', + '.js': 'module', + '.mjs': 'module' +}; + +const legacyExtensionFormatMap = { + '__proto__': null, + '.cjs': 'commonjs', + '.js': 'commonjs', + '.json': 'commonjs', + '.mjs': 'module', + '.node': 'commonjs' +}; + +if (experimentalWasmModules) + extensionFormatMap['.wasm'] = legacyExtensionFormatMap['.wasm'] = 'wasm'; + +if (experimentalJsonModules) + extensionFormatMap['.json'] = legacyExtensionFormatMap['.json'] = 'json'; + +/** + * + * @param {'node' | 'explicit'} [tsNodeExperimentalSpecifierResolution] + * @param {ReturnType< + * typeof import('../dist-raw/node-internal-modules-esm-resolve').createResolve + * >} nodeEsmResolver + */ +function createGetFormat(tsNodeExperimentalSpecifierResolution, nodeEsmResolver) { +// const experimentalSpeciferResolution = tsNodeExperimentalSpecifierResolution ?? getOptionValue('--experimental-specifier-resolution'); +let experimentalSpeciferResolution = tsNodeExperimentalSpecifierResolution != null ? tsNodeExperimentalSpecifierResolution : getOptionValue('--experimental-specifier-resolution'); +const { getPackageType } = nodeEsmResolver; + +/** + * @param {string} url + * @param {{}} context + * @param {any} defaultGetFormatUnused + * @returns {ReturnType} + */ +function defaultGetFormat(url, context, defaultGetFormatUnused) { + if (StringPrototypeStartsWith(url, 'node:')) { + return { format: 'builtin' }; + } + const parsed = new URL(url); + if (parsed.protocol === 'data:') { + const [ , mime ] = RegExpPrototypeExec( + /^([^/]+\/[^;,]+)(?:[^,]*?)(;base64)?,/, + parsed.pathname, + ) || [ null, null, null ]; + const format = ({ + '__proto__': null, + 'text/javascript': 'module', + 'application/json': experimentalJsonModules ? 'json' : null, + 'application/wasm': experimentalWasmModules ? 'wasm' : null + })[mime] || null; + return { format }; + } else if (parsed.protocol === 'file:') { + const ext = extname(parsed.pathname); + let format; + if (ext === '.js') { + format = getPackageType(parsed.href) === 'module' ? 'module' : 'commonjs'; + } else { + format = extensionFormatMap[ext]; + } + if (!format) { + if (experimentalSpeciferResolution === 'node') { + process.emitWarning( + 'The Node.js specifier resolution in ESM is experimental.', + 'ExperimentalWarning'); + format = legacyExtensionFormatMap[ext]; + } else { + throw new ERR_UNKNOWN_FILE_EXTENSION(ext, fileURLToPath(url)); + } + } + return { format: format || null }; + } + return { format: null }; +} + +return {defaultGetFormat}; +} + +module.exports = { + createGetFormat +}; + + +/***/ }), + +/***/ 67968: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copied from https://raw.githubusercontent.com/nodejs/node/v15.3.0/lib/internal/modules/esm/resolve.js + + + +const {versionGteLt} = __nccwpck_require__(64745); + +// Test for node >14.13.1 || (>=12.20.0 && <13) +const builtinModuleProtocol = + versionGteLt(process.versions.node, '14.13.1') || + versionGteLt(process.versions.node, '12.20.0', '13.0.0') + ? 'node:' + : 'nodejs:'; + +const { + ArrayIsArray, + ArrayPrototypeJoin, + ArrayPrototypeShift, + JSONParse, + JSONStringify, + ObjectFreeze, + ObjectGetOwnPropertyNames, + ObjectPrototypeHasOwnProperty, + RegExpPrototypeTest, + SafeMap, + SafeSet, + StringPrototypeEndsWith, + StringPrototypeIndexOf, + StringPrototypeLastIndexOf, + StringPrototypeReplace, + StringPrototypeSlice, + StringPrototypeSplit, + StringPrototypeStartsWith, + StringPrototypeSubstr, +} = __nccwpck_require__(26326); + +// const internalFS = require('internal/fs/utils'); +const Module = __nccwpck_require__(98188); +const { NativeModule } = __nccwpck_require__(81597); +const { + realpathSync, + statSync, + Stats, +} = __nccwpck_require__(57147); +// const { getOptionValue } = require('internal/options'); +const { getOptionValue } = __nccwpck_require__(40690); +// // Do not eagerly grab .manifest, it may be in TDZ +// const policy = getOptionValue('--experimental-policy') ? +// require('internal/process/policy') : +// null; +// disabled for now. I am not sure if/how we should support this +const policy = null; +const { sep, relative } = __nccwpck_require__(71017); +const preserveSymlinks = getOptionValue('--preserve-symlinks'); +const preserveSymlinksMain = getOptionValue('--preserve-symlinks-main'); +const typeFlag = getOptionValue('--input-type'); +// const { URL, pathToFileURL, fileURLToPath } = require('internal/url'); +const { URL, pathToFileURL, fileURLToPath } = __nccwpck_require__(57310); +const { + ERR_INPUT_TYPE_NOT_ALLOWED, + ERR_INVALID_ARG_VALUE, + ERR_INVALID_MODULE_SPECIFIER, + ERR_INVALID_PACKAGE_CONFIG, + ERR_INVALID_PACKAGE_TARGET, + ERR_MANIFEST_DEPENDENCY_MISSING, + ERR_MODULE_NOT_FOUND, + ERR_PACKAGE_IMPORT_NOT_DEFINED, + ERR_PACKAGE_PATH_NOT_EXPORTED, + ERR_UNSUPPORTED_DIR_IMPORT, + ERR_UNSUPPORTED_ESM_URL_SCHEME, +// } = require('internal/errors').codes; +} = (__nccwpck_require__(61858).codes); + +// const { Module: CJSModule } = require('internal/modules/cjs/loader'); +const CJSModule = Module; + +// const packageJsonReader = require('internal/modules/package_json_reader'); +const packageJsonReader = __nccwpck_require__(53348); +const userConditions = getOptionValue('--conditions'); +const DEFAULT_CONDITIONS = ObjectFreeze(['node', 'import', ...userConditions]); +const DEFAULT_CONDITIONS_SET = new SafeSet(DEFAULT_CONDITIONS); + +const pendingDeprecation = getOptionValue('--pending-deprecation'); + +/** + * @param {{ + * extensions: import('../src/file-extensions').Extensions, + * preferTsExts: boolean | undefined; + * tsNodeExperimentalSpecifierResolution: import('../src/index').ExperimentalSpecifierResolution | undefined; + * }} opts + */ +function createResolve(opts) { +// TODO receive cached fs implementations here +const {preferTsExts, tsNodeExperimentalSpecifierResolution, extensions} = opts; +const esrnExtensions = extensions.experimentalSpecifierResolutionAddsIfOmitted; +const {legacyMainResolveAddsIfOmitted, replacementsForCjs, replacementsForJs, replacementsForMjs, replacementsForJsx} = extensions; +// const experimentalSpecifierResolution = tsNodeExperimentalSpecifierResolution ?? getOptionValue('--experimental-specifier-resolution'); +const experimentalSpecifierResolution = tsNodeExperimentalSpecifierResolution != null ? tsNodeExperimentalSpecifierResolution : getOptionValue('--experimental-specifier-resolution'); + +const emittedPackageWarnings = new SafeSet(); +function emitFolderMapDeprecation(match, pjsonUrl, isExports, base) { + const pjsonPath = fileURLToPath(pjsonUrl); + if (!pendingDeprecation) { + const nodeModulesIndex = StringPrototypeLastIndexOf(pjsonPath, + '/node_modules/'); + if (nodeModulesIndex !== -1) { + const afterNodeModulesPath = StringPrototypeSlice(pjsonPath, + nodeModulesIndex + 14, + -13); + try { + const { packageSubpath } = parsePackageName(afterNodeModulesPath); + if (packageSubpath === '.') + return; + } catch {} + } + } + if (emittedPackageWarnings.has(pjsonPath + '|' + match)) + return; + emittedPackageWarnings.add(pjsonPath + '|' + match); + process.emitWarning( + `Use of deprecated folder mapping "${match}" in the ${isExports ? + '"exports"' : '"imports"'} field module resolution of the package at ${ + pjsonPath}${base ? ` imported from ${fileURLToPath(base)}` : ''}.\n` + + `Update this package.json to use a subpath pattern like "${match}*".`, + 'DeprecationWarning', + 'DEP0148' + ); +} + +function getConditionsSet(conditions) { + if (conditions !== undefined && conditions !== DEFAULT_CONDITIONS) { + if (!ArrayIsArray(conditions)) { + throw new ERR_INVALID_ARG_VALUE('conditions', conditions, + 'expected an array'); + } + return new SafeSet(conditions); + } + return DEFAULT_CONDITIONS_SET; +} + +const realpathCache = new SafeMap(); +const packageJSONCache = new SafeMap(); /* string -> PackageConfig */ + +const statSupportsThrowIfNoEntry = versionGteLt(process.versions.node, '15.3.0') || + versionGteLt(process.versions.node, '14.17.0', '15.0.0'); +const tryStatSync = statSupportsThrowIfNoEntry ? tryStatSyncWithoutErrors : tryStatSyncWithErrors; +const statsIfNotFound = new Stats(); +function tryStatSyncWithoutErrors(path) { + const stats = statSync(path, { throwIfNoEntry: false }); + if(stats != null) return stats; + return statsIfNotFound; +} +function tryStatSyncWithErrors(path) { + try { + return statSync(path); + } catch { + return statsIfNotFound; + } +} + +function getPackageConfig(path, specifier, base) { + const existing = packageJSONCache.get(path); + if (existing !== undefined) { + return existing; + } + const source = packageJsonReader.read(path).string; + if (source === undefined) { + const packageConfig = { + pjsonPath: path, + exists: false, + main: undefined, + name: undefined, + type: 'none', + exports: undefined, + imports: undefined, + }; + packageJSONCache.set(path, packageConfig); + return packageConfig; + } + + let packageJSON; + try { + packageJSON = JSONParse(source); + } catch (error) { + throw new ERR_INVALID_PACKAGE_CONFIG( + path, + (base ? `"${specifier}" from ` : '') + fileURLToPath(base || specifier), + error.message + ); + } + + let { imports, main, name, type } = packageJSON; + const { exports } = packageJSON; + if (typeof imports !== 'object' || imports === null) imports = undefined; + if (typeof main !== 'string') main = undefined; + if (typeof name !== 'string') name = undefined; + // Ignore unknown types for forwards compatibility + if (type !== 'module' && type !== 'commonjs') type = 'none'; + + const packageConfig = { + pjsonPath: path, + exists: true, + main, + name, + type, + exports, + imports, + }; + packageJSONCache.set(path, packageConfig); + return packageConfig; +} + +function getPackageScopeConfig(resolved) { + let packageJSONUrl = new URL('./package.json', resolved); + while (true) { + const packageJSONPath = packageJSONUrl.pathname; + if (StringPrototypeEndsWith(packageJSONPath, 'node_modules/package.json')) + break; + const packageConfig = getPackageConfig(fileURLToPath(packageJSONUrl), + resolved); + if (packageConfig.exists) return packageConfig; + + const lastPackageJSONUrl = packageJSONUrl; + packageJSONUrl = new URL('../package.json', packageJSONUrl); + + // Terminates at root where ../package.json equals ../../package.json + // (can't just check "/package.json" for Windows support). + if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) break; + } + const packageJSONPath = fileURLToPath(packageJSONUrl); + const packageConfig = { + pjsonPath: packageJSONPath, + exists: false, + main: undefined, + name: undefined, + type: 'none', + exports: undefined, + imports: undefined, + }; + packageJSONCache.set(packageJSONPath, packageConfig); + return packageConfig; +} + +/* + * Legacy CommonJS main resolution: + * 1. let M = pkg_url + (json main field) + * 2. TRY(M, M.js, M.json, M.node) + * 3. TRY(M/index.js, M/index.json, M/index.node) + * 4. TRY(pkg_url/index.js, pkg_url/index.json, pkg_url/index.node) + * 5. NOT_FOUND + */ +function fileExists(url) { + return tryStatSync(fileURLToPath(url)).isFile(); +} + +function legacyMainResolve(packageJSONUrl, packageConfig, base) { + let guess; + if (packageConfig.main !== undefined) { + // Note: fs check redundances will be handled by Descriptor cache here. + if(guess = resolveReplacementExtensions(new URL(`./${packageConfig.main}`, packageJSONUrl))) { + return guess; + } + if (fileExists(guess = new URL(`./${packageConfig.main}`, + packageJSONUrl))) { + return guess; + } + for(const extension of legacyMainResolveAddsIfOmitted) { + if (fileExists(guess = new URL(`./${packageConfig.main}${extension}`, + packageJSONUrl))) { + return guess; + } + } + for(const extension of legacyMainResolveAddsIfOmitted) { + if (fileExists(guess = new URL(`./${packageConfig.main}/index${extension}`, + packageJSONUrl))) { + return guess; + } + } + // Fallthrough. + } + for(const extension of legacyMainResolveAddsIfOmitted) { + if (fileExists(guess = new URL(`./index${extension}`, packageJSONUrl))) { + return guess; + } + } + // Not found. + throw new ERR_MODULE_NOT_FOUND( + fileURLToPath(new URL('.', packageJSONUrl)), fileURLToPath(base)); +} + +/** attempts replacement extensions, then tries exact name, then attempts appending extensions */ +function resolveExtensionsWithTryExactName(search) { + const resolvedReplacementExtension = resolveReplacementExtensions(search); + if(resolvedReplacementExtension) return resolvedReplacementExtension; + if (fileExists(search)) return search; + return resolveExtensions(search); +} + +// This appends missing extensions +function resolveExtensions(search) { + for (let i = 0; i < esrnExtensions.length; i++) { + const extension = esrnExtensions[i]; + const guess = new URL(`${search.pathname}${extension}`, search); + if (fileExists(guess)) return guess; + } + return undefined; +} + +/** This replaces JS with TS extensions */ +function resolveReplacementExtensions(search) { + const lastDotIndex = search.pathname.lastIndexOf('.'); + if(lastDotIndex >= 0) { + const ext = search.pathname.slice(lastDotIndex); + if (ext === '.js' || ext === '.jsx' || ext === '.mjs' || ext === '.cjs') { + const pathnameWithoutExtension = search.pathname.slice(0, lastDotIndex); + const replacementExts = + ext === '.js' ? replacementsForJs + : ext === '.jsx' ? replacementsForJsx + : ext === '.mjs' ? replacementsForMjs + : replacementsForCjs; + const guess = new URL(search.toString()); + for (let i = 0; i < replacementExts.length; i++) { + const extension = replacementExts[i]; + guess.pathname = `${pathnameWithoutExtension}${extension}`; + if (fileExists(guess)) return guess; + } + } + } + return undefined; +} + +function resolveIndex(search) { + return resolveExtensions(new URL('index', search)); +} + +const encodedSepRegEx = /%2F|%2C/i; +function finalizeResolution(resolved, base) { + if (RegExpPrototypeTest(encodedSepRegEx, resolved.pathname)) + throw new ERR_INVALID_MODULE_SPECIFIER( + resolved.pathname, 'must not include encoded "/" or "\\" characters', + fileURLToPath(base)); + + if (experimentalSpecifierResolution === 'node') { + const path = fileURLToPath(resolved); + let file = resolveExtensionsWithTryExactName(resolved); + if (file !== undefined) return file; + if (!StringPrototypeEndsWith(path, '/')) { + file = resolveIndex(new URL(`${resolved}/`)); + if (file !== undefined) return file; + } else { + return resolveIndex(resolved) || resolved; + } + throw new ERR_MODULE_NOT_FOUND( + resolved.pathname, fileURLToPath(base), 'module'); + } + + const file = resolveReplacementExtensions(resolved) || resolved; + const path = fileURLToPath(file); + + const stats = tryStatSync(StringPrototypeEndsWith(path, '/') ? + StringPrototypeSlice(path, -1) : path); + if (stats.isDirectory()) { + const err = new ERR_UNSUPPORTED_DIR_IMPORT(path, fileURLToPath(base)); + err.url = String(resolved); + throw err; + } else if (!stats.isFile()) { + throw new ERR_MODULE_NOT_FOUND( + path || resolved.pathname, fileURLToPath(base), 'module'); + } + + return file; +} + +function throwImportNotDefined(specifier, packageJSONUrl, base) { + throw new ERR_PACKAGE_IMPORT_NOT_DEFINED( + specifier, packageJSONUrl && fileURLToPath(new URL('.', packageJSONUrl)), + fileURLToPath(base)); +} + +function throwExportsNotFound(subpath, packageJSONUrl, base) { + throw new ERR_PACKAGE_PATH_NOT_EXPORTED( + fileURLToPath(new URL('.', packageJSONUrl)), subpath, + base && fileURLToPath(base)); +} + +function throwInvalidSubpath(subpath, packageJSONUrl, internal, base) { + const reason = `request is not a valid subpath for the "${internal ? + 'imports' : 'exports'}" resolution of ${fileURLToPath(packageJSONUrl)}`; + throw new ERR_INVALID_MODULE_SPECIFIER(subpath, reason, + base && fileURLToPath(base)); +} + +function throwInvalidPackageTarget( + subpath, target, packageJSONUrl, internal, base) { + if (typeof target === 'object' && target !== null) { + target = JSONStringify(target, null, ''); + } else { + target = `${target}`; + } + throw new ERR_INVALID_PACKAGE_TARGET( + fileURLToPath(new URL('.', packageJSONUrl)), subpath, target, + internal, base && fileURLToPath(base)); +} + +const invalidSegmentRegEx = /(^|\\|\/)(\.\.?|node_modules)(\\|\/|$)/; +const patternRegEx = /\*/g; + +function resolvePackageTargetString( + target, subpath, match, packageJSONUrl, base, pattern, internal, conditions) { + if (subpath !== '' && !pattern && target[target.length - 1] !== '/') + throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base); + + if (!StringPrototypeStartsWith(target, './')) { + if (internal && !StringPrototypeStartsWith(target, '../') && + !StringPrototypeStartsWith(target, '/')) { + let isURL = false; + try { + new URL(target); + isURL = true; + } catch {} + if (!isURL) { + const exportTarget = pattern ? + StringPrototypeReplace(target, patternRegEx, subpath) : + target + subpath; + return packageResolve(exportTarget, packageJSONUrl, conditions); + } + } + throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base); + } + + if (RegExpPrototypeTest(invalidSegmentRegEx, StringPrototypeSlice(target, 2))) + throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base); + + const resolved = new URL(target, packageJSONUrl); + const resolvedPath = resolved.pathname; + const packagePath = new URL('.', packageJSONUrl).pathname; + + if (!StringPrototypeStartsWith(resolvedPath, packagePath)) + throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base); + + if (subpath === '') return resolved; + + if (RegExpPrototypeTest(invalidSegmentRegEx, subpath)) + throwInvalidSubpath(match + subpath, packageJSONUrl, internal, base); + + if (pattern) + return new URL(StringPrototypeReplace(resolved.href, patternRegEx, + subpath)); + return new URL(subpath, resolved); +} + +/** + * @param {string} key + * @returns {boolean} + */ +function isArrayIndex(key) { + const keyNum = +key; + if (`${keyNum}` !== key) return false; + return keyNum >= 0 && keyNum < 0xFFFF_FFFF; +} + +function resolvePackageTarget(packageJSONUrl, target, subpath, packageSubpath, + base, pattern, internal, conditions) { + if (typeof target === 'string') { + return resolvePackageTargetString( + target, subpath, packageSubpath, packageJSONUrl, base, pattern, internal, + conditions); + } else if (ArrayIsArray(target)) { + if (target.length === 0) + return null; + + let lastException; + for (let i = 0; i < target.length; i++) { + const targetItem = target[i]; + let resolved; + try { + resolved = resolvePackageTarget( + packageJSONUrl, targetItem, subpath, packageSubpath, base, pattern, + internal, conditions); + } catch (e) { + lastException = e; + if (e.code === 'ERR_INVALID_PACKAGE_TARGET') + continue; + throw e; + } + if (resolved === undefined) + continue; + if (resolved === null) { + lastException = null; + continue; + } + return resolved; + } + if (lastException === undefined || lastException === null) + return lastException; + throw lastException; + } else if (typeof target === 'object' && target !== null) { + const keys = ObjectGetOwnPropertyNames(target); + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + if (isArrayIndex(key)) { + throw new ERR_INVALID_PACKAGE_CONFIG( + fileURLToPath(packageJSONUrl), base, + '"exports" cannot contain numeric property keys.'); + } + } + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + if (key === 'default' || conditions.has(key)) { + const conditionalTarget = target[key]; + const resolved = resolvePackageTarget( + packageJSONUrl, conditionalTarget, subpath, packageSubpath, base, + pattern, internal, conditions); + if (resolved === undefined) + continue; + return resolved; + } + } + return undefined; + } else if (target === null) { + return null; + } + throwInvalidPackageTarget(packageSubpath, target, packageJSONUrl, internal, + base); +} + +function isConditionalExportsMainSugar(exports, packageJSONUrl, base) { + if (typeof exports === 'string' || ArrayIsArray(exports)) return true; + if (typeof exports !== 'object' || exports === null) return false; + + const keys = ObjectGetOwnPropertyNames(exports); + let isConditionalSugar = false; + let i = 0; + for (let j = 0; j < keys.length; j++) { + const key = keys[j]; + const curIsConditionalSugar = key === '' || key[0] !== '.'; + if (i++ === 0) { + isConditionalSugar = curIsConditionalSugar; + } else if (isConditionalSugar !== curIsConditionalSugar) { + throw new ERR_INVALID_PACKAGE_CONFIG( + fileURLToPath(packageJSONUrl), base, + '"exports" cannot contain some keys starting with \'.\' and some not.' + + ' The exports object must either be an object of package subpath keys' + + ' or an object of main entry condition name keys only.'); + } + } + return isConditionalSugar; +} + +/** + * @param {URL} packageJSONUrl + * @param {string} packageSubpath + * @param {object} packageConfig + * @param {string} base + * @param {Set} conditions + * @returns {{resolved: URL, exact: boolean}} + */ +function packageExportsResolve( + packageJSONUrl, packageSubpath, packageConfig, base, conditions) { + let exports = packageConfig.exports; + if (isConditionalExportsMainSugar(exports, packageJSONUrl, base)) + exports = { '.': exports }; + + if (ObjectPrototypeHasOwnProperty(exports, packageSubpath)) { + const target = exports[packageSubpath]; + const resolved = resolvePackageTarget( + packageJSONUrl, target, '', packageSubpath, base, false, false, conditions + ); + if (resolved === null || resolved === undefined) + throwExportsNotFound(packageSubpath, packageJSONUrl, base); + return { resolved, exact: true }; + } + + let bestMatch = ''; + const keys = ObjectGetOwnPropertyNames(exports); + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + if (key[key.length - 1] === '*' && + StringPrototypeStartsWith(packageSubpath, + StringPrototypeSlice(key, 0, -1)) && + packageSubpath.length >= key.length && + key.length > bestMatch.length) { + bestMatch = key; + } else if (key[key.length - 1] === '/' && + StringPrototypeStartsWith(packageSubpath, key) && + key.length > bestMatch.length) { + bestMatch = key; + } + } + + if (bestMatch) { + const target = exports[bestMatch]; + const pattern = bestMatch[bestMatch.length - 1] === '*'; + const subpath = StringPrototypeSubstr(packageSubpath, bestMatch.length - + (pattern ? 1 : 0)); + const resolved = resolvePackageTarget(packageJSONUrl, target, subpath, + bestMatch, base, pattern, false, + conditions); + if (resolved === null || resolved === undefined) + throwExportsNotFound(packageSubpath, packageJSONUrl, base); + if (!pattern) + emitFolderMapDeprecation(bestMatch, packageJSONUrl, true, base); + return { resolved, exact: pattern }; + } + + throwExportsNotFound(packageSubpath, packageJSONUrl, base); +} + +function packageImportsResolve(name, base, conditions) { + if (name === '#' || StringPrototypeStartsWith(name, '#/')) { + const reason = 'is not a valid internal imports specifier name'; + throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, fileURLToPath(base)); + } + let packageJSONUrl; + const packageConfig = getPackageScopeConfig(base); + if (packageConfig.exists) { + packageJSONUrl = pathToFileURL(packageConfig.pjsonPath); + const imports = packageConfig.imports; + if (imports) { + if (ObjectPrototypeHasOwnProperty(imports, name)) { + const resolved = resolvePackageTarget( + packageJSONUrl, imports[name], '', name, base, false, true, conditions + ); + if (resolved !== null) + return { resolved, exact: true }; + } else { + let bestMatch = ''; + const keys = ObjectGetOwnPropertyNames(imports); + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + if (key[key.length - 1] === '*' && + StringPrototypeStartsWith(name, + StringPrototypeSlice(key, 0, -1)) && + name.length >= key.length && + key.length > bestMatch.length) { + bestMatch = key; + } else if (key[key.length - 1] === '/' && + StringPrototypeStartsWith(name, key) && + key.length > bestMatch.length) { + bestMatch = key; + } + } + + if (bestMatch) { + const target = imports[bestMatch]; + const pattern = bestMatch[bestMatch.length - 1] === '*'; + const subpath = StringPrototypeSubstr(name, bestMatch.length - + (pattern ? 1 : 0)); + const resolved = resolvePackageTarget( + packageJSONUrl, target, subpath, bestMatch, base, pattern, true, + conditions); + if (resolved !== null) { + if (!pattern) + emitFolderMapDeprecation(bestMatch, packageJSONUrl, false, base); + return { resolved, exact: pattern }; + } + } + } + } + } + throwImportNotDefined(name, packageJSONUrl, base); +} + +function getPackageType(url) { + const packageConfig = getPackageScopeConfig(url); + return packageConfig.type; +} + +function parsePackageName(specifier, base) { + let separatorIndex = StringPrototypeIndexOf(specifier, '/'); + let validPackageName = true; + let isScoped = false; + if (specifier[0] === '@') { + isScoped = true; + if (separatorIndex === -1 || specifier.length === 0) { + validPackageName = false; + } else { + separatorIndex = StringPrototypeIndexOf( + specifier, '/', separatorIndex + 1); + } + } + + const packageName = separatorIndex === -1 ? + specifier : StringPrototypeSlice(specifier, 0, separatorIndex); + + // Package name cannot have leading . and cannot have percent-encoding or + // separators. + for (let i = 0; i < packageName.length; i++) { + if (packageName[i] === '%' || packageName[i] === '\\') { + validPackageName = false; + break; + } + } + + if (!validPackageName) { + throw new ERR_INVALID_MODULE_SPECIFIER( + specifier, 'is not a valid package name', fileURLToPath(base)); + } + + const packageSubpath = '.' + (separatorIndex === -1 ? '' : + StringPrototypeSlice(specifier, separatorIndex)); + + return { packageName, packageSubpath, isScoped }; +} + +/** + * @param {string} specifier + * @param {URL} base + * @param {Set} conditions + * @returns {URL} + */ +function packageResolve(specifier, base, conditions) { + const { packageName, packageSubpath, isScoped } = + parsePackageName(specifier, base); + + // ResolveSelf + const packageConfig = getPackageScopeConfig(base); + if (packageConfig.exists) { + const packageJSONUrl = pathToFileURL(packageConfig.pjsonPath); + if (packageConfig.name === packageName && + packageConfig.exports !== undefined && packageConfig.exports !== null) { + return packageExportsResolve( + packageJSONUrl, packageSubpath, packageConfig, base, conditions + ).resolved; + } + } + + let packageJSONUrl = + new URL('./node_modules/' + packageName + '/package.json', base); + let packageJSONPath = fileURLToPath(packageJSONUrl); + let lastPath; + do { + const stat = tryStatSync(StringPrototypeSlice(packageJSONPath, 0, + packageJSONPath.length - 13)); + if (!stat.isDirectory()) { + lastPath = packageJSONPath; + packageJSONUrl = new URL((isScoped ? + '../../../../node_modules/' : '../../../node_modules/') + + packageName + '/package.json', packageJSONUrl); + packageJSONPath = fileURLToPath(packageJSONUrl); + continue; + } + + // Package match. + const packageConfig = getPackageConfig(packageJSONPath, specifier, base); + if (packageConfig.exports !== undefined && packageConfig.exports !== null) + return packageExportsResolve( + packageJSONUrl, packageSubpath, packageConfig, base, conditions + ).resolved; + if (packageSubpath === '.') + return legacyMainResolve(packageJSONUrl, packageConfig, base); + return new URL(packageSubpath, packageJSONUrl); + // Cross-platform root check. + } while (packageJSONPath.length !== lastPath.length); + + // eslint can't handle the above code. + // eslint-disable-next-line no-unreachable + throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base)); +} + +function isBareSpecifier(specifier) { + return specifier[0] && specifier[0] !== '/' && specifier[0] !== '.'; +} + +function isRelativeSpecifier(specifier) { + if (specifier[0] === '.') { + if (specifier.length === 1 || specifier[1] === '/') return true; + if (specifier[1] === '.') { + if (specifier.length === 2 || specifier[2] === '/') return true; + } + } + return false; +} + +function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) { + if (specifier === '') return false; + if (specifier[0] === '/') return true; + return isRelativeSpecifier(specifier); +} + +/** + * @param {string} specifier + * @param {URL} base + * @param {Set} conditions + * @returns {URL} + */ +function moduleResolve(specifier, base, conditions) { + // Order swapped from spec for minor perf gain. + // Ok since relative URLs cannot parse as URLs. + let resolved; + if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) { + resolved = new URL(specifier, base); + } else if (specifier[0] === '#') { + ({ resolved } = packageImportsResolve(specifier, base, conditions)); + } else { + try { + resolved = new URL(specifier); + } catch { + resolved = packageResolve(specifier, base, conditions); + } + } + return finalizeResolution(resolved, base); +} + +/** + * Try to resolve an import as a CommonJS module + * @param {string} specifier + * @param {string} parentURL + * @returns {boolean|string} + */ +function resolveAsCommonJS(specifier, parentURL) { + try { + const parent = fileURLToPath(parentURL); + const tmpModule = new CJSModule(parent, null); + tmpModule.paths = CJSModule._nodeModulePaths(parent); + + let found = CJSModule._resolveFilename(specifier, tmpModule, false); + + // If it is a relative specifier return the relative path + // to the parent + if (isRelativeSpecifier(specifier)) { + found = relative(parent, found); + // Add '.separator if the path does not start with '..separator' + // This should be a safe assumption because when loading + // esm modules there should be always a file specified so + // there should not be a specifier like '..' or '.' + if (!StringPrototypeStartsWith(found, `..${sep}`)) { + found = `.${sep}${found}`; + } + } else if (isBareSpecifier(specifier)) { + // If it is a bare specifier return the relative path within the + // module + const pkg = StringPrototypeSplit(specifier, '/')[0]; + const index = StringPrototypeIndexOf(found, pkg); + if (index !== -1) { + found = StringPrototypeSlice(found, index); + } + } + // Normalize the path separator to give a valid suggestion + // on Windows + if (process.platform === 'win32') { + found = StringPrototypeReplace(found, new RegExp(`\\${sep}`, 'g'), '/'); + } + return found; + } catch { + return false; + } +} + +function defaultResolve(specifier, context = {}, defaultResolveUnused) { + let { parentURL, conditions } = context; + if (parentURL && policy != null && policy.manifest) { + const redirects = policy.manifest.getDependencyMapper(parentURL); + if (redirects) { + const { resolve, reaction } = redirects; + const destination = resolve(specifier, new SafeSet(conditions)); + let missing = true; + if (destination === true) { + missing = false; + } else if (destination) { + const href = destination.href; + return { url: href }; + } + if (missing) { + reaction(new ERR_MANIFEST_DEPENDENCY_MISSING( + parentURL, + specifier, + ArrayPrototypeJoin([...conditions], ', ')) + ); + } + } + } + let parsed; + try { + parsed = new URL(specifier); + if (parsed.protocol === 'data:') { + return { + url: specifier + }; + } + } catch {} + if (parsed && parsed.protocol === builtinModuleProtocol) + return { url: specifier }; + if (parsed && parsed.protocol !== 'file:' && parsed.protocol !== 'data:') + throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(parsed); + if (NativeModule.canBeRequiredByUsers(specifier)) { + return { + url: builtinModuleProtocol + specifier + }; + } + if (parentURL && StringPrototypeStartsWith(parentURL, 'data:')) { + // This is gonna blow up, we want the error + new URL(specifier, parentURL); + } + + const isMain = parentURL === undefined; + if (isMain) { + parentURL = pathToFileURL(`${process.cwd()}/`).href; + + // This is the initial entry point to the program, and --input-type has + // been passed as an option; but --input-type can only be used with + // --eval, --print or STDIN string input. It is not allowed with file + // input, to avoid user confusion over how expansive the effect of the + // flag should be (i.e. entry point only, package scope surrounding the + // entry point, etc.). + if (typeFlag) + throw new ERR_INPUT_TYPE_NOT_ALLOWED(); + } + + conditions = getConditionsSet(conditions); + let url; + try { + url = moduleResolve(specifier, parentURL, conditions); + } catch (error) { + // Try to give the user a hint of what would have been the + // resolved CommonJS module + if (error.code === 'ERR_MODULE_NOT_FOUND' || + error.code === 'ERR_UNSUPPORTED_DIR_IMPORT') { + if (StringPrototypeStartsWith(specifier, 'file://')) { + specifier = fileURLToPath(specifier); + } + const found = resolveAsCommonJS(specifier, parentURL); + if (found) { + // Modify the stack and message string to include the hint + const lines = StringPrototypeSplit(error.stack, '\n'); + const hint = `Did you mean to import ${found}?`; + error.stack = + ArrayPrototypeShift(lines) + '\n' + + hint + '\n' + + ArrayPrototypeJoin(lines, '\n'); + error.message += `\n${hint}`; + } + } + throw error; + } + + if (isMain ? !preserveSymlinksMain : !preserveSymlinks) { + const urlPath = fileURLToPath(url); + const real = realpathSync(urlPath, { + // [internalFS.realpathCacheKey]: realpathCache + }); + const old = url; + url = pathToFileURL( + real + (StringPrototypeEndsWith(urlPath, sep) ? '/' : '')); + url.search = old.search; + url.hash = old.hash; + } + + return { url: `${url}` }; +} + +return { + DEFAULT_CONDITIONS, + defaultResolve, + encodedSepRegEx, + getPackageType, + packageExportsResolve, + packageImportsResolve +}; +} +module.exports = { + createResolve +}; + + +/***/ }), + +/***/ 53348: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// copied from https://github.com/nodejs/node/blob/v15.3.0/lib/internal/modules/package_json_reader.js + + +const { SafeMap } = __nccwpck_require__(26326); +const { internalModuleReadJSON } = __nccwpck_require__(3601); +const { pathToFileURL } = __nccwpck_require__(57310); +const { toNamespacedPath } = __nccwpck_require__(71017); +// const { getOptionValue } = require('./node-options'); + +const cache = new SafeMap(); + +let manifest; + +/** + * @param {string} jsonPath + * @return {{string: string, containsKeys: boolean}} + */ +function read(jsonPath) { + if (cache.has(jsonPath)) { + return cache.get(jsonPath); + } + + const [string, containsKeys] = internalModuleReadJSON( + toNamespacedPath(jsonPath) + ); + const result = { string, containsKeys }; + if (string !== undefined) { + if (manifest === undefined) { + // manifest = getOptionValue('--experimental-policy') ? + // require('internal/process/policy').manifest : + // null; + // disabled for now. I am not sure if/how we should support this + manifest = null; + } + if (manifest !== null) { + const jsonURL = pathToFileURL(jsonPath); + manifest.assertIntegrity(jsonURL, string); + } + } + cache.set(jsonPath, result); + return result; +} + +module.exports = { read }; + + +/***/ }), + +/***/ 75818: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// copied from https://github.com/nodejs/node/blob/88799930794045795e8abac874730f9eba7e2300/lib/internal/repl/await.js + + +const { + ArrayFrom, + ArrayPrototypeForEach, + ArrayPrototypeIncludes, + ArrayPrototypeJoin, + ArrayPrototypePop, + ArrayPrototypePush, + FunctionPrototype, + ObjectKeys, + RegExpPrototypeSymbolReplace, + StringPrototypeEndsWith, + StringPrototypeIncludes, + StringPrototypeIndexOf, + StringPrototypeRepeat, + StringPrototypeSplit, + StringPrototypeStartsWith, + SyntaxError, +} = __nccwpck_require__(26326); + +const parser = (__nccwpck_require__(80390).Parser); +const walk = __nccwpck_require__(88390); +const { Recoverable } = __nccwpck_require__(38102); + +function isTopLevelDeclaration(state) { + return state.ancestors[state.ancestors.length - 2] === state.body; +} + +const noop = FunctionPrototype; +const visitorsWithoutAncestors = { + ClassDeclaration(node, state, c) { + if (isTopLevelDeclaration(state)) { + state.prepend(node, `${node.id.name}=`); + ArrayPrototypePush( + state.hoistedDeclarationStatements, + `let ${node.id.name}; ` + ); + } + + walk.base.ClassDeclaration(node, state, c); + }, + ForOfStatement(node, state, c) { + if (node.await === true) { + state.containsAwait = true; + } + walk.base.ForOfStatement(node, state, c); + }, + FunctionDeclaration(node, state, c) { + state.prepend(node, `${node.id.name}=`); + ArrayPrototypePush( + state.hoistedDeclarationStatements, + `var ${node.id.name}; ` + ); + }, + FunctionExpression: noop, + ArrowFunctionExpression: noop, + MethodDefinition: noop, + AwaitExpression(node, state, c) { + state.containsAwait = true; + walk.base.AwaitExpression(node, state, c); + }, + ReturnStatement(node, state, c) { + state.containsReturn = true; + walk.base.ReturnStatement(node, state, c); + }, + VariableDeclaration(node, state, c) { + const variableKind = node.kind; + const isIterableForDeclaration = ArrayPrototypeIncludes( + ['ForOfStatement', 'ForInStatement'], + state.ancestors[state.ancestors.length - 2].type + ); + + if (variableKind === 'var' || isTopLevelDeclaration(state)) { + state.replace( + node.start, + node.start + variableKind.length + (isIterableForDeclaration ? 1 : 0), + variableKind === 'var' && isIterableForDeclaration ? + '' : + 'void' + (node.declarations.length === 1 ? '' : ' (') + ); + + if (!isIterableForDeclaration) { + ArrayPrototypeForEach(node.declarations, (decl) => { + state.prepend(decl, '('); + state.append(decl, decl.init ? ')' : '=undefined)'); + }); + + if (node.declarations.length !== 1) { + state.append(node.declarations[node.declarations.length - 1], ')'); + } + } + + const variableIdentifiersToHoist = [ + ['var', []], + ['let', []], + ]; + function registerVariableDeclarationIdentifiers(node) { + switch (node.type) { + case 'Identifier': + ArrayPrototypePush( + variableIdentifiersToHoist[variableKind === 'var' ? 0 : 1][1], + node.name + ); + break; + case 'ObjectPattern': + ArrayPrototypeForEach(node.properties, (property) => { + registerVariableDeclarationIdentifiers(property.value); + }); + break; + case 'ArrayPattern': + ArrayPrototypeForEach(node.elements, (element) => { + registerVariableDeclarationIdentifiers(element); + }); + break; + } + } + + ArrayPrototypeForEach(node.declarations, (decl) => { + registerVariableDeclarationIdentifiers(decl.id); + }); + + ArrayPrototypeForEach( + variableIdentifiersToHoist, + ({ 0: kind, 1: identifiers }) => { + if (identifiers.length > 0) { + ArrayPrototypePush( + state.hoistedDeclarationStatements, + `${kind} ${ArrayPrototypeJoin(identifiers, ', ')}; ` + ); + } + } + ); + } + + walk.base.VariableDeclaration(node, state, c); + } +}; + +const visitors = {}; +for (const nodeType of ObjectKeys(walk.base)) { + const callback = visitorsWithoutAncestors[nodeType] || walk.base[nodeType]; + visitors[nodeType] = (node, state, c) => { + const isNew = node !== state.ancestors[state.ancestors.length - 1]; + if (isNew) { + ArrayPrototypePush(state.ancestors, node); + } + callback(node, state, c); + if (isNew) { + ArrayPrototypePop(state.ancestors); + } + }; +} + +function processTopLevelAwait(src) { + const wrapPrefix = '(async () => { '; + const wrapped = `${wrapPrefix}${src} })()`; + const wrappedArray = ArrayFrom(wrapped); + let root; + try { + root = parser.parse(wrapped, { ecmaVersion: 'latest' }); + } catch (e) { + if (StringPrototypeStartsWith(e.message, 'Unterminated ')) + throw new Recoverable(e); + // If the parse error is before the first "await", then use the execution + // error. Otherwise we must emit this parse error, making it look like a + // proper syntax error. + const awaitPos = StringPrototypeIndexOf(src, 'await'); + const errPos = e.pos - wrapPrefix.length; + if (awaitPos > errPos) + return null; + // Convert keyword parse errors on await into their original errors when + // possible. + if (errPos === awaitPos + 6 && + StringPrototypeIncludes(e.message, 'Expecting Unicode escape sequence')) + return null; + if (errPos === awaitPos + 7 && + StringPrototypeIncludes(e.message, 'Unexpected token')) + return null; + const line = e.loc.line; + const column = line === 1 ? e.loc.column - wrapPrefix.length : e.loc.column; + let message = '\n' + StringPrototypeSplit(src, '\n')[line - 1] + '\n' + + StringPrototypeRepeat(' ', column) + + '^\n\n' + RegExpPrototypeSymbolReplace(/ \([^)]+\)/, e.message, ''); + // V8 unexpected token errors include the token string. + if (StringPrototypeEndsWith(message, 'Unexpected token')) + message += " '" + + // Wrapper end may cause acorn to report error position after the source + ((src.length - 1) >= (e.pos - wrapPrefix.length) + ? src[e.pos - wrapPrefix.length] + : src[src.length - 1]) + + "'"; + // eslint-disable-next-line no-restricted-syntax + throw new SyntaxError(message); + } + const body = root.body[0].expression.callee.body; + const state = { + body, + ancestors: [], + hoistedDeclarationStatements: [], + replace(from, to, str) { + for (let i = from; i < to; i++) { + wrappedArray[i] = ''; + } + if (from === to) str += wrappedArray[from]; + wrappedArray[from] = str; + }, + prepend(node, str) { + wrappedArray[node.start] = str + wrappedArray[node.start]; + }, + append(node, str) { + wrappedArray[node.end - 1] += str; + }, + containsAwait: false, + containsReturn: false + }; + + walk.recursive(body, state, visitors); + + // Do not transform if + // 1. False alarm: there isn't actually an await expression. + // 2. There is a top-level return, which is not allowed. + if (!state.containsAwait || state.containsReturn) { + return null; + } + + const last = body.body[body.body.length - 1]; + if (last.type === 'ExpressionStatement') { + // For an expression statement of the form + // ( expr ) ; + // ^^^^^^^^^^ // last + // ^^^^ // last.expression + // + // We do not want the left parenthesis before the `return` keyword; + // therefore we prepend the `return (` to `last`. + // + // On the other hand, we do not want the right parenthesis after the + // semicolon. Since there can only be more right parentheses between + // last.expression.end and the semicolon, appending one more to + // last.expression should be fine. + state.prepend(last, 'return ('); + state.append(last.expression, ')'); + } + + return ( + ArrayPrototypeJoin(state.hoistedDeclarationStatements, '') + + ArrayPrototypeJoin(wrappedArray, '') + ); +} + +module.exports = { + processTopLevelAwait +}; + + +/***/ }), + +/***/ 3601: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const fs = __nccwpck_require__(57147); +const {versionGteLt} = __nccwpck_require__(64745); + +// In node's core, this is implemented in C +// https://github.com/nodejs/node/blob/v15.3.0/src/node_file.cc#L891-L985 +/** + * @param {string} path + * @returns {[] | [string, boolean]} + */ +function internalModuleReadJSON(path) { + let string + try { + string = fs.readFileSync(path, 'utf8') + } catch (e) { + if (e.code === 'ENOENT') return [] + throw e + } + // Node's implementation checks for the presence of relevant keys: main, name, type, exports, imports + // Node does this for performance to skip unnecessary parsing. + // This would slow us down and, based on our usage, we can skip it. + const containsKeys = true + return [string, containsKeys] +} + +// In node's core, this is implemented in C +// https://github.com/nodejs/node/blob/63e7dc1e5c71b70c80ed9eda230991edb00811e2/src/node_file.cc#L987-L1005 +/** + * @param {string} path + * @returns {number} 0 = file, 1 = dir, negative = error + */ +function internalModuleStat(path) { + const stat = fs.statSync(path, { throwIfNoEntry: false }); + if(!stat) return -1; + if(stat.isFile()) return 0; + if(stat.isDirectory()) return 1; +} + +/** + * @param {string} path + * @returns {number} 0 = file, 1 = dir, negative = error + */ +function internalModuleStatInefficient(path) { + try { + const stat = fs.statSync(path); + if(stat.isFile()) return 0; + if(stat.isDirectory()) return 1; + } catch(e) { + return -e.errno || -1; + } +} + +const statSupportsThrowIfNoEntry = versionGteLt(process.versions.node, '15.3.0') || + versionGteLt(process.versions.node, '14.17.0', '15.0.0'); + +module.exports = { + internalModuleReadJSON, + internalModuleStat: statSupportsThrowIfNoEntry ? internalModuleStat : internalModuleStatInefficient +}; + + +/***/ }), + +/***/ 81597: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + + +// Node imports this from 'internal/bootstrap/loaders' +const Module = __nccwpck_require__(98188); +const NativeModule = { + canBeRequiredByUsers(specifier) { + return Module.builtinModules.includes(specifier) + } +}; +exports.NativeModule = NativeModule; + + +/***/ }), + +/***/ 40690: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +// Replacement for node's internal 'internal/options' module + +exports.getOptionValue = getOptionValue; +function getOptionValue(opt) { + parseOptions(); + return options[opt]; +} + +let options; +function parseOptions() { + if (!options) { + options = { + '--preserve-symlinks': false, + '--preserve-symlinks-main': false, + '--input-type': undefined, + '--experimental-specifier-resolution': 'explicit', + '--experimental-policy': undefined, + '--conditions': [], + '--pending-deprecation': false, + ...parseArgv(getNodeOptionsEnvArgv()), + ...parseArgv(process.execArgv), + ...getOptionValuesFromOtherEnvVars() + } + } +} + +function parseArgv(argv) { + return __nccwpck_require__(59482)({ + '--preserve-symlinks': Boolean, + '--preserve-symlinks-main': Boolean, + '--input-type': String, + '--experimental-specifier-resolution': String, + // Legacy alias for node versions prior to 12.16 + '--es-module-specifier-resolution': '--experimental-specifier-resolution', + '--experimental-policy': String, + '--conditions': [String], + '--pending-deprecation': Boolean, + '--experimental-json-modules': Boolean, + '--experimental-wasm-modules': Boolean, + }, { + argv, + permissive: true + }); +} + +function getNodeOptionsEnvArgv() { + const errors = []; + const envArgv = ParseNodeOptionsEnvVar(process.env.NODE_OPTIONS || '', errors); + if (errors.length !== 0) { + // TODO: handle errors somehow + } + return envArgv; +} + +// Direct JS port of C implementation: https://github.com/nodejs/node/blob/67ba825037b4082d5d16f922fb9ce54516b4a869/src/node_options.cc#L1024-L1063 +function ParseNodeOptionsEnvVar(node_options, errors) { + const env_argv = []; + + let is_in_string = false; + let will_start_new_arg = true; + for (let index = 0; index < node_options.length; ++index) { + let c = node_options[index]; + + // Backslashes escape the following character + if (c === '\\' && is_in_string) { + if (index + 1 === node_options.length) { + errors.push("invalid value for NODE_OPTIONS " + + "(invalid escape)\n"); + return env_argv; + } else { + c = node_options[++index]; + } + } else if (c === ' ' && !is_in_string) { + will_start_new_arg = true; + continue; + } else if (c === '"') { + is_in_string = !is_in_string; + continue; + } + + if (will_start_new_arg) { + env_argv.push(c); + will_start_new_arg = false; + } else { + env_argv[env_argv.length - 1] += c; + } + } + + if (is_in_string) { + errors.push("invalid value for NODE_OPTIONS " + + "(unterminated string)\n"); + } + return env_argv; +} + +// Get option values that can be specified via env vars besides NODE_OPTIONS +function getOptionValuesFromOtherEnvVars() { + const options = {}; + if(process.env.NODE_PENDING_DEPRECATION === '1') { + options['--pending-deprecation'] = true; + } + return options; +} + + +/***/ }), + +/***/ 26326: +/***/ ((module) => { + +module.exports = { + ArrayFrom: Array.from, + ArrayIsArray: Array.isArray, + ArrayPrototypeShift: (obj) => Array.prototype.shift.call(obj), + ArrayPrototypeForEach: (arr, ...rest) => Array.prototype.forEach.apply(arr, rest), + ArrayPrototypeIncludes: (arr, ...rest) => Array.prototype.includes.apply(arr, rest), + ArrayPrototypeJoin: (arr, ...rest) => Array.prototype.join.apply(arr, rest), + ArrayPrototypePop: (arr, ...rest) => Array.prototype.pop.apply(arr, rest), + ArrayPrototypePush: (arr, ...rest) => Array.prototype.push.apply(arr, rest), + FunctionPrototype: Function.prototype, + JSONParse: JSON.parse, + JSONStringify: JSON.stringify, + ObjectFreeze: Object.freeze, + ObjectKeys: Object.keys, + ObjectGetOwnPropertyNames: Object.getOwnPropertyNames, + ObjectDefineProperty: Object.defineProperty, + ObjectPrototypeHasOwnProperty: (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop), + RegExpPrototypeExec: (obj, string) => RegExp.prototype.exec.call(obj, string), + RegExpPrototypeTest: (obj, string) => RegExp.prototype.test.call(obj, string), + RegExpPrototypeSymbolReplace: (obj, ...rest) => RegExp.prototype[Symbol.replace].apply(obj, rest), + SafeMap: Map, + SafeSet: Set, + SafeWeakMap: WeakMap, + StringPrototypeEndsWith: (str, ...rest) => String.prototype.endsWith.apply(str, rest), + StringPrototypeIncludes: (str, ...rest) => String.prototype.includes.apply(str, rest), + StringPrototypeLastIndexOf: (str, ...rest) => String.prototype.lastIndexOf.apply(str, rest), + StringPrototypeIndexOf: (str, ...rest) => String.prototype.indexOf.apply(str, rest), + StringPrototypeRepeat: (str, ...rest) => String.prototype.repeat.apply(str, rest), + StringPrototypeReplace: (str, ...rest) => String.prototype.replace.apply(str, rest), + StringPrototypeSlice: (str, ...rest) => String.prototype.slice.apply(str, rest), + StringPrototypeSplit: (str, ...rest) => String.prototype.split.apply(str, rest), + StringPrototypeStartsWith: (str, ...rest) => String.prototype.startsWith.apply(str, rest), + StringPrototypeSubstr: (str, ...rest) => String.prototype.substr.apply(str, rest), + StringPrototypeCharCodeAt: (str, ...rest) => String.prototype.charCodeAt.apply(str, rest), + StringPrototypeMatch: (str, ...rest) => String.prototype.match.apply(str, rest), + SyntaxError: SyntaxError +}; + + +/***/ }), + +/***/ 64414: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.installCommonjsResolveHooksIfNecessary = void 0; +/** + * @internal + */ +function installCommonjsResolveHooksIfNecessary(tsNodeService) { + const Module = __nccwpck_require__(98188); + const originalResolveFilename = Module._resolveFilename; + const originalFindPath = Module._findPath; + const shouldInstallHook = tsNodeService.options.experimentalResolver; + if (shouldInstallHook) { + const { Module_findPath, Module_resolveFilename } = tsNodeService.getNodeCjsLoader(); + Module._resolveFilename = _resolveFilename; + Module._findPath = _findPath; + function _resolveFilename(request, parent, isMain, options, ...rest) { + if (!tsNodeService.enabled()) + return originalResolveFilename.call(this, request, parent, isMain, options, ...rest); + return Module_resolveFilename.call(this, request, parent, isMain, options, ...rest); + } + function _findPath() { + if (!tsNodeService.enabled()) + return originalFindPath.apply(this, arguments); + return Module_findPath.apply(this, arguments); + } + } +} +exports.installCommonjsResolveHooksIfNecessary = installCommonjsResolveHooksIfNecessary; +//# sourceMappingURL=cjs-resolve-hooks.js.map + +/***/ }), + +/***/ 29906: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getTsConfigDefaults = exports.ComputeAsCommonRootOfFiles = exports.loadCompiler = exports.resolveAndLoadCompiler = exports.readConfig = exports.findAndReadConfig = void 0; +const path_1 = __nccwpck_require__(71017); +const index_1 = __nccwpck_require__(72719); +const ts_internals_1 = __nccwpck_require__(14851); +const tsconfigs_1 = __nccwpck_require__(91533); +const util_1 = __nccwpck_require__(64745); +/** + * TypeScript compiler option values required by `ts-node` which cannot be overridden. + */ +const TS_NODE_COMPILER_OPTIONS = { + sourceMap: true, + inlineSourceMap: false, + inlineSources: true, + declaration: false, + noEmit: false, + outDir: '.ts-node', +}; +/* + * Do post-processing on config options to support `ts-node`. + */ +function fixConfig(ts, config) { + // Delete options that *should not* be passed through. + delete config.options.out; + delete config.options.outFile; + delete config.options.composite; + delete config.options.declarationDir; + delete config.options.declarationMap; + delete config.options.emitDeclarationOnly; + // Target ES5 output by default (instead of ES3). + if (config.options.target === undefined) { + config.options.target = ts.ScriptTarget.ES5; + } + // Target CommonJS modules by default (instead of magically switching to ES6 when the target is ES6). + if (config.options.module === undefined) { + config.options.module = ts.ModuleKind.CommonJS; + } + return config; +} +/** @internal */ +function findAndReadConfig(rawOptions) { + var _a, _b, _c, _d, _e; + const cwd = (0, path_1.resolve)((_c = (_b = (_a = rawOptions.cwd) !== null && _a !== void 0 ? _a : rawOptions.dir) !== null && _b !== void 0 ? _b : index_1.DEFAULTS.cwd) !== null && _c !== void 0 ? _c : process.cwd()); + const compilerName = (_d = rawOptions.compiler) !== null && _d !== void 0 ? _d : index_1.DEFAULTS.compiler; + // Compute minimum options to read the config file. + let projectLocalResolveDir = (0, util_1.getBasePathForProjectLocalDependencyResolution)(undefined, rawOptions.projectSearchDir, rawOptions.project, cwd); + let { compiler, ts } = resolveAndLoadCompiler(compilerName, projectLocalResolveDir); + // Read config file and merge new options between env and CLI options. + const { configFilePath, config, tsNodeOptionsFromTsconfig, optionBasePaths } = readConfig(cwd, ts, rawOptions); + const options = (0, util_1.assign)({}, index_1.DEFAULTS, tsNodeOptionsFromTsconfig || {}, { optionBasePaths }, rawOptions); + options.require = [ + ...(tsNodeOptionsFromTsconfig.require || []), + ...(rawOptions.require || []), + ]; + // Re-resolve the compiler in case it has changed. + // Compiler is loaded relative to tsconfig.json, so tsconfig discovery may cause us to load a + // different compiler than we did above, even if the name has not changed. + if (configFilePath) { + projectLocalResolveDir = (0, util_1.getBasePathForProjectLocalDependencyResolution)(configFilePath, rawOptions.projectSearchDir, rawOptions.project, cwd); + ({ compiler } = resolveCompiler(options.compiler, (_e = optionBasePaths.compiler) !== null && _e !== void 0 ? _e : projectLocalResolveDir)); + } + return { + options, + config, + projectLocalResolveDir, + optionBasePaths, + configFilePath, + cwd, + compiler, + }; +} +exports.findAndReadConfig = findAndReadConfig; +/** + * Load TypeScript configuration. Returns the parsed TypeScript config and + * any `ts-node` options specified in the config file. + * + * Even when a tsconfig.json is not loaded, this function still handles merging + * compilerOptions from various sources: API, environment variables, etc. + * + * @internal + */ +function readConfig(cwd, ts, rawApiOptions) { + var _a, _b, _c; + // Ordered [a, b, c] where config a extends b extends c + const configChain = []; + let config = { compilerOptions: {} }; + let basePath = cwd; + let configFilePath = undefined; + const projectSearchDir = (0, path_1.resolve)(cwd, (_a = rawApiOptions.projectSearchDir) !== null && _a !== void 0 ? _a : cwd); + const { fileExists = ts.sys.fileExists, readFile = ts.sys.readFile, skipProject = index_1.DEFAULTS.skipProject, project = index_1.DEFAULTS.project, tsTrace = index_1.DEFAULTS.tsTrace, } = rawApiOptions; + // Read project configuration when available. + if (!skipProject) { + if (project) { + const resolved = (0, path_1.resolve)(cwd, project); + const nested = (0, path_1.join)(resolved, 'tsconfig.json'); + configFilePath = fileExists(nested) ? nested : resolved; + } + else { + configFilePath = ts.findConfigFile(projectSearchDir, fileExists); + } + if (configFilePath) { + let pathToNextConfigInChain = configFilePath; + const tsInternals = (0, ts_internals_1.createTsInternals)(ts); + const errors = []; + // Follow chain of "extends" + while (true) { + const result = ts.readConfigFile(pathToNextConfigInChain, readFile); + // Return diagnostics. + if (result.error) { + return { + configFilePath, + config: { errors: [result.error], fileNames: [], options: {} }, + tsNodeOptionsFromTsconfig: {}, + optionBasePaths: {}, + }; + } + const c = result.config; + const bp = (0, path_1.dirname)(pathToNextConfigInChain); + configChain.push({ + config: c, + basePath: bp, + configPath: pathToNextConfigInChain, + }); + if (c.extends == null) + break; + const resolvedExtendedConfigPath = tsInternals.getExtendsConfigPath(c.extends, { + fileExists, + readDirectory: ts.sys.readDirectory, + readFile, + useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames, + trace: tsTrace, + }, bp, errors, ts.createCompilerDiagnostic); + if (errors.length) { + return { + configFilePath, + config: { errors, fileNames: [], options: {} }, + tsNodeOptionsFromTsconfig: {}, + optionBasePaths: {}, + }; + } + if (resolvedExtendedConfigPath == null) + break; + pathToNextConfigInChain = resolvedExtendedConfigPath; + } + ({ config, basePath } = configChain[0]); + } + } + // Merge and fix ts-node options that come from tsconfig.json(s) + const tsNodeOptionsFromTsconfig = {}; + const optionBasePaths = {}; + for (let i = configChain.length - 1; i >= 0; i--) { + const { config, basePath, configPath } = configChain[i]; + const options = filterRecognizedTsConfigTsNodeOptions(config['ts-node']).recognized; + // Some options are relative to the config file, so must be converted to absolute paths here + if (options.require) { + // Modules are found relative to the tsconfig file, not the `dir` option + const tsconfigRelativeResolver = (0, util_1.createProjectLocalResolveHelper)((0, path_1.dirname)(configPath)); + options.require = options.require.map((path) => tsconfigRelativeResolver(path, false)); + } + if (options.scopeDir) { + options.scopeDir = (0, path_1.resolve)(basePath, options.scopeDir); + } + // Downstream code uses the basePath; we do not do that here. + if (options.moduleTypes) { + optionBasePaths.moduleTypes = basePath; + } + if (options.transpiler != null) { + optionBasePaths.transpiler = basePath; + } + if (options.compiler != null) { + optionBasePaths.compiler = basePath; + } + if (options.swc != null) { + optionBasePaths.swc = basePath; + } + (0, util_1.assign)(tsNodeOptionsFromTsconfig, options); + } + // Remove resolution of "files". + const files = (_c = (_b = rawApiOptions.files) !== null && _b !== void 0 ? _b : tsNodeOptionsFromTsconfig.files) !== null && _c !== void 0 ? _c : index_1.DEFAULTS.files; + // Only if a config file is *not* loaded, load an implicit configuration from @tsconfig/bases + const skipDefaultCompilerOptions = configFilePath != null; + const defaultCompilerOptionsForNodeVersion = skipDefaultCompilerOptions + ? undefined + : { + ...(0, tsconfigs_1.getDefaultTsconfigJsonForNodeVersion)(ts).compilerOptions, + types: ['node'], + }; + // Merge compilerOptions from all sources + config.compilerOptions = Object.assign({}, + // automatically-applied options from @tsconfig/bases + defaultCompilerOptionsForNodeVersion, + // tsconfig.json "compilerOptions" + config.compilerOptions, + // from env var + index_1.DEFAULTS.compilerOptions, + // tsconfig.json "ts-node": "compilerOptions" + tsNodeOptionsFromTsconfig.compilerOptions, + // passed programmatically + rawApiOptions.compilerOptions, + // overrides required by ts-node, cannot be changed + TS_NODE_COMPILER_OPTIONS); + const fixedConfig = fixConfig(ts, ts.parseJsonConfigFileContent(config, { + fileExists, + readFile, + // Only used for globbing "files", "include", "exclude" + // When `files` option disabled, we want to avoid the fs calls + readDirectory: files ? ts.sys.readDirectory : () => [], + useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames, + }, basePath, undefined, configFilePath)); + return { + configFilePath, + config: fixedConfig, + tsNodeOptionsFromTsconfig, + optionBasePaths, + }; +} +exports.readConfig = readConfig; +/** + * Load the typescript compiler. It is required to load the tsconfig but might + * be changed by the tsconfig, so we have to do this twice. + * @internal + */ +function resolveAndLoadCompiler(name, relativeToPath) { + const { compiler } = resolveCompiler(name, relativeToPath); + const ts = loadCompiler(compiler); + return { compiler, ts }; +} +exports.resolveAndLoadCompiler = resolveAndLoadCompiler; +function resolveCompiler(name, relativeToPath) { + const projectLocalResolveHelper = (0, util_1.createProjectLocalResolveHelper)(relativeToPath); + const compiler = projectLocalResolveHelper(name || 'typescript', true); + return { compiler }; +} +/** @internal */ +function loadCompiler(compiler) { + return (0, util_1.attemptRequireWithV8CompileCache)(require, compiler); +} +exports.loadCompiler = loadCompiler; +/** + * Given the raw "ts-node" sub-object from a tsconfig, return an object with only the properties + * recognized by "ts-node" + */ +function filterRecognizedTsConfigTsNodeOptions(jsonObject) { + if (jsonObject == null) + return { recognized: {}, unrecognized: {} }; + const { compiler, compilerHost, compilerOptions, emit, files, ignore, ignoreDiagnostics, logError, preferTsExts, pretty, require, skipIgnore, transpileOnly, typeCheck, transpiler, scope, scopeDir, moduleTypes, experimentalReplAwait, swc, experimentalResolver, esm, experimentalSpecifierResolution, experimentalTsImportSpecifiers, ...unrecognized } = jsonObject; + const filteredTsConfigOptions = { + compiler, + compilerHost, + compilerOptions, + emit, + experimentalReplAwait, + files, + ignore, + ignoreDiagnostics, + logError, + preferTsExts, + pretty, + require, + skipIgnore, + transpileOnly, + typeCheck, + transpiler, + scope, + scopeDir, + moduleTypes, + swc, + experimentalResolver, + esm, + experimentalSpecifierResolution, + experimentalTsImportSpecifiers, + }; + // Use the typechecker to make sure this implementation has the correct set of properties + const catchExtraneousProps = null; + const catchMissingProps = null; + return { recognized: filteredTsConfigOptions, unrecognized }; +} +/** @internal */ +exports.ComputeAsCommonRootOfFiles = Symbol(); +/** + * Some TS compiler options have defaults which are not provided by TS's config parsing functions. + * This function centralizes the logic for computing those defaults. + * @internal + */ +function getTsConfigDefaults(config, basePath, _files, _include, _exclude) { + const { composite = false } = config.options; + let rootDir = config.options.rootDir; + if (rootDir == null) { + if (composite) + rootDir = basePath; + // Return this symbol to avoid computing from `files`, which would require fs calls + else + rootDir = exports.ComputeAsCommonRootOfFiles; + } + const { outDir = rootDir } = config.options; + // Docs are wrong: https://www.typescriptlang.org/tsconfig#include + // Docs say **, but it's actually **/*; compiler throws error for ** + const include = _files ? [] : ['**/*']; + const files = _files !== null && _files !== void 0 ? _files : []; + // Docs are misleading: https://www.typescriptlang.org/tsconfig#exclude + // Docs say it excludes node_modules, bower_components, jspm_packages, but actually those are excluded via behavior of "include" + const exclude = _exclude !== null && _exclude !== void 0 ? _exclude : [outDir]; // TODO technically, outDir is absolute path, but exclude should be relative glob pattern? + // TODO compute baseUrl + return { rootDir, outDir, include, files, exclude, composite }; +} +exports.getTsConfigDefaults = getTsConfigDefaults; +//# sourceMappingURL=configuration.js.map + +/***/ }), + +/***/ 84998: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + +__webpack_unused_export__ = ({ value: true }); +exports.lT = __webpack_unused_export__ = __webpack_unused_export__ = void 0; +const index_1 = __nccwpck_require__(72719); +const url_1 = __nccwpck_require__(57310); +const path_1 = __nccwpck_require__(71017); +const assert = __nccwpck_require__(39491); +const util_1 = __nccwpck_require__(64745); +const module_1 = __nccwpck_require__(98188); +// The hooks API changed in node version X so we need to check for backwards compatibility. +const newHooksAPI = (0, util_1.versionGteLt)(process.versions.node, '16.12.0'); +/** @internal */ +function filterHooksByAPIVersion(hooks) { + const { getFormat, load, resolve, transformSource } = hooks; + // Explicit return type to avoid TS's non-ideal inferred type + const hooksAPI = newHooksAPI + ? { resolve, load, getFormat: undefined, transformSource: undefined } + : { resolve, getFormat, transformSource, load: undefined }; + return hooksAPI; +} +__webpack_unused_export__ = filterHooksByAPIVersion; +/** @internal */ +function registerAndCreateEsmHooks(opts) { + // Automatically performs registration just like `-r ts-node/register` + const tsNodeInstance = (0, index_1.register)(opts); + return createEsmHooks(tsNodeInstance); +} +__webpack_unused_export__ = registerAndCreateEsmHooks; +function createEsmHooks(tsNodeService) { + tsNodeService.enableExperimentalEsmLoaderInterop(); + // Custom implementation that considers additional file extensions and automatically adds file extensions + const nodeResolveImplementation = tsNodeService.getNodeEsmResolver(); + const nodeGetFormatImplementation = tsNodeService.getNodeEsmGetFormat(); + const extensions = tsNodeService.extensions; + const hooksAPI = filterHooksByAPIVersion({ + resolve, + load, + getFormat, + transformSource, + }); + function isFileUrlOrNodeStyleSpecifier(parsed) { + // We only understand file:// URLs, but in node, the specifier can be a node-style `./foo` or `foo` + const { protocol } = parsed; + return protocol === null || protocol === 'file:'; + } + /** + * Named "probably" as a reminder that this is a guess. + * node does not explicitly tell us if we're resolving the entrypoint or not. + */ + function isProbablyEntrypoint(specifier, parentURL) { + return parentURL === undefined && specifier.startsWith('file://'); + } + // Side-channel between `resolve()` and `load()` hooks + const rememberIsProbablyEntrypoint = new Set(); + const rememberResolvedViaCommonjsFallback = new Set(); + async function resolve(specifier, context, defaultResolve) { + const defer = async () => { + const r = await defaultResolve(specifier, context, defaultResolve); + return r; + }; + // See: https://github.com/nodejs/node/discussions/41711 + // nodejs will likely implement a similar fallback. Till then, we can do our users a favor and fallback today. + async function entrypointFallback(cb) { + try { + const resolution = await cb(); + if ((resolution === null || resolution === void 0 ? void 0 : resolution.url) && + isProbablyEntrypoint(specifier, context.parentURL)) + rememberIsProbablyEntrypoint.add(resolution.url); + return resolution; + } + catch (esmResolverError) { + if (!isProbablyEntrypoint(specifier, context.parentURL)) + throw esmResolverError; + try { + let cjsSpecifier = specifier; + // Attempt to convert from ESM file:// to CommonJS path + try { + if (specifier.startsWith('file://')) + cjsSpecifier = (0, url_1.fileURLToPath)(specifier); + } + catch { } + const resolution = (0, url_1.pathToFileURL)((0, module_1.createRequire)(process.cwd()).resolve(cjsSpecifier)).toString(); + rememberIsProbablyEntrypoint.add(resolution); + rememberResolvedViaCommonjsFallback.add(resolution); + return { url: resolution, format: 'commonjs' }; + } + catch (commonjsResolverError) { + throw esmResolverError; + } + } + } + return addShortCircuitFlag(async () => { + const parsed = (0, url_1.parse)(specifier); + const { pathname, protocol, hostname } = parsed; + if (!isFileUrlOrNodeStyleSpecifier(parsed)) { + return entrypointFallback(defer); + } + if (protocol !== null && protocol !== 'file:') { + return entrypointFallback(defer); + } + // Malformed file:// URL? We should always see `null` or `''` + if (hostname) { + // TODO file://./foo sets `hostname` to `'.'`. Perhaps we should special-case this. + return entrypointFallback(defer); + } + // pathname is the path to be resolved + return entrypointFallback(() => nodeResolveImplementation.defaultResolve(specifier, context, defaultResolve)); + }); + } + // `load` from new loader hook API (See description at the top of this file) + async function load(url, context, defaultLoad) { + return addShortCircuitFlag(async () => { + var _a; + // If we get a format hint from resolve() on the context then use it + // otherwise call the old getFormat() hook using node's old built-in defaultGetFormat() that ships with ts-node + const format = (_a = context.format) !== null && _a !== void 0 ? _a : (await getFormat(url, context, nodeGetFormatImplementation.defaultGetFormat)).format; + let source = undefined; + if (format !== 'builtin' && format !== 'commonjs') { + // Call the new defaultLoad() to get the source + const { source: rawSource } = await defaultLoad(url, { + ...context, + format, + }, defaultLoad); + if (rawSource === undefined || rawSource === null) { + throw new Error(`Failed to load raw source: Format was '${format}' and url was '${url}''.`); + } + // Emulate node's built-in old defaultTransformSource() so we can re-use the old transformSource() hook + const defaultTransformSource = async (source, _context, _defaultTransformSource) => ({ source }); + // Call the old hook + const { source: transformedSource } = await transformSource(rawSource, { url, format }, defaultTransformSource); + source = transformedSource; + } + return { format, source }; + }); + } + async function getFormat(url, context, defaultGetFormat) { + const defer = (overrideUrl = url) => defaultGetFormat(overrideUrl, context, defaultGetFormat); + // See: https://github.com/nodejs/node/discussions/41711 + // nodejs will likely implement a similar fallback. Till then, we can do our users a favor and fallback today. + async function entrypointFallback(cb) { + try { + return await cb(); + } + catch (getFormatError) { + if (!rememberIsProbablyEntrypoint.has(url)) + throw getFormatError; + return { format: 'commonjs' }; + } + } + const parsed = (0, url_1.parse)(url); + if (!isFileUrlOrNodeStyleSpecifier(parsed)) { + return entrypointFallback(defer); + } + const { pathname } = parsed; + assert(pathname !== null, 'ESM getFormat() hook: URL should never have null pathname'); + const nativePath = (0, url_1.fileURLToPath)(url); + let nodeSays; + // If file has extension not understood by node, then ask node how it would treat the emitted extension. + // E.g. .mts compiles to .mjs, so ask node how to classify an .mjs file. + const ext = (0, path_1.extname)(nativePath); + const tsNodeIgnored = tsNodeService.ignored(nativePath); + const nodeEquivalentExt = extensions.nodeEquivalents.get(ext); + if (nodeEquivalentExt && !tsNodeIgnored) { + nodeSays = await entrypointFallback(() => defer((0, url_1.format)((0, url_1.pathToFileURL)(nativePath + nodeEquivalentExt)))); + } + else { + try { + nodeSays = await entrypointFallback(defer); + } + catch (e) { + if (e instanceof Error && + tsNodeIgnored && + extensions.nodeDoesNotUnderstand.includes(ext)) { + e.message += + `\n\n` + + `Hint:\n` + + `ts-node is configured to ignore this file.\n` + + `If you want ts-node to handle this file, consider enabling the "skipIgnore" option or adjusting your "ignore" patterns.\n` + + `https://typestrong.org/ts-node/docs/scope\n`; + } + throw e; + } + } + // For files compiled by ts-node that node believes are either CJS or ESM, check if we should override that classification + if (!tsNodeService.ignored(nativePath) && + (nodeSays.format === 'commonjs' || nodeSays.format === 'module')) { + const { moduleType } = tsNodeService.moduleTypeClassifier.classifyModuleByModuleTypeOverrides((0, util_1.normalizeSlashes)(nativePath)); + if (moduleType === 'cjs') { + return { format: 'commonjs' }; + } + else if (moduleType === 'esm') { + return { format: 'module' }; + } + } + return nodeSays; + } + async function transformSource(source, context, defaultTransformSource) { + if (source === null || source === undefined) { + throw new Error('No source'); + } + const defer = () => defaultTransformSource(source, context, defaultTransformSource); + const sourceAsString = typeof source === 'string' ? source : source.toString('utf8'); + const { url } = context; + const parsed = (0, url_1.parse)(url); + if (!isFileUrlOrNodeStyleSpecifier(parsed)) { + return defer(); + } + const nativePath = (0, url_1.fileURLToPath)(url); + if (tsNodeService.ignored(nativePath)) { + return defer(); + } + const emittedJs = tsNodeService.compile(sourceAsString, nativePath); + return { source: emittedJs }; + } + return hooksAPI; +} +exports.lT = createEsmHooks; +async function addShortCircuitFlag(fn) { + const ret = await fn(); + // Not sure if this is necessary; being lazy. Can revisit in the future. + if (ret == null) + return ret; + return { + ...ret, + shortCircuit: true, + }; +} +//# sourceMappingURL=esm.js.map + +/***/ }), + +/***/ 5183: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getExtensions = void 0; +const util_1 = __nccwpck_require__(64745); +const nodeEquivalents = new Map([ + ['.ts', '.js'], + ['.tsx', '.js'], + ['.jsx', '.js'], + ['.mts', '.mjs'], + ['.cts', '.cjs'], +]); +const tsResolverEquivalents = new Map([ + ['.ts', ['.js']], + ['.tsx', ['.js', '.jsx']], + ['.mts', ['.mjs']], + ['.cts', ['.cjs']], +]); +// All extensions understood by vanilla node +const vanillaNodeExtensions = [ + '.js', + '.json', + '.node', + '.mjs', + '.cjs', +]; +// Extensions added by vanilla node's require() if you omit them: +// js, json, node +// Extensions added by vanilla node if you omit them with --experimental-specifier-resolution=node +// js, json, node, mjs +// Extensions added by ESM codepath's legacy package.json "main" resolver +// js, json, node (not mjs!) +const nodeDoesNotUnderstand = [ + '.ts', + '.tsx', + '.jsx', + '.cts', + '.mts', +]; +/** + * [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS] + * @internal + */ +function getExtensions(config, options, tsVersion) { + // TS 4.5 is first version to understand .cts, .mts, .cjs, and .mjs extensions + const tsSupportsMtsCtsExts = (0, util_1.versionGteLt)(tsVersion, '4.5.0'); + const requiresHigherTypescriptVersion = []; + if (!tsSupportsMtsCtsExts) + requiresHigherTypescriptVersion.push('.cts', '.cjs', '.mts', '.mjs'); + const allPossibleExtensionsSortedByPreference = Array.from(new Set([ + ...(options.preferTsExts ? nodeDoesNotUnderstand : []), + ...vanillaNodeExtensions, + ...nodeDoesNotUnderstand, + ])); + const compiledJsUnsorted = ['.ts']; + const compiledJsxUnsorted = []; + if (config.options.jsx) + compiledJsxUnsorted.push('.tsx'); + if (tsSupportsMtsCtsExts) + compiledJsUnsorted.push('.mts', '.cts'); + if (config.options.allowJs) { + compiledJsUnsorted.push('.js'); + if (config.options.jsx) + compiledJsxUnsorted.push('.jsx'); + if (tsSupportsMtsCtsExts) + compiledJsUnsorted.push('.mjs', '.cjs'); + } + const compiledUnsorted = [...compiledJsUnsorted, ...compiledJsxUnsorted]; + const compiled = allPossibleExtensionsSortedByPreference.filter((ext) => compiledUnsorted.includes(ext)); + const compiledNodeDoesNotUnderstand = nodeDoesNotUnderstand.filter((ext) => compiled.includes(ext)); + /** + * TS's resolver can resolve foo.js to foo.ts, by replacing .js extension with several source extensions. + * IMPORTANT: Must preserve ordering according to preferTsExts! + * Must include the .js/.mjs/.cjs extension in the array! + * This affects resolution behavior! + * [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS] + */ + const r = allPossibleExtensionsSortedByPreference.filter((ext) => [...compiledUnsorted, '.js', '.mjs', '.cjs', '.mts', '.cts'].includes(ext)); + const replacementsForJs = r.filter((ext) => ['.js', '.jsx', '.ts', '.tsx'].includes(ext)); + const replacementsForJsx = r.filter((ext) => ['.jsx', '.tsx'].includes(ext)); + const replacementsForMjs = r.filter((ext) => ['.mjs', '.mts'].includes(ext)); + const replacementsForCjs = r.filter((ext) => ['.cjs', '.cts'].includes(ext)); + const replacementsForJsOrMjs = r.filter((ext) => ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.mts'].includes(ext)); + // Node allows omitting .js or .mjs extension in certain situations (CJS, ESM w/experimental flag) + // So anything that compiles to .js or .mjs can also be omitted. + const experimentalSpecifierResolutionAddsIfOmitted = Array.from(new Set([...replacementsForJsOrMjs, '.json', '.node'])); + // Same as above, except node curiuosly doesn't do .mjs here + const legacyMainResolveAddsIfOmitted = Array.from(new Set([...replacementsForJs, '.json', '.node'])); + return { + /** All file extensions we transform, ordered by resolution preference according to preferTsExts */ + compiled, + /** Resolved extensions that vanilla node will not understand; we should handle them */ + nodeDoesNotUnderstand, + /** Like the above, but only the ones we're compiling */ + compiledNodeDoesNotUnderstand, + /** + * Mapping from extensions understood by tsc to the equivalent for node, + * as far as getFormat is concerned. + */ + nodeEquivalents, + /** + * Mapping from extensions rejected by TSC in import specifiers, to the + * possible alternatives that TS's resolver will accept. + * + * When we allow users to opt-in to .ts extensions in import specifiers, TS's + * resolver requires us to replace the .ts extensions with .js alternatives. + * Otherwise, resolution fails. + * + * Note TS's resolver is only used by, and only required for, typechecking. + * This is separate from node's resolver, which we hook separately and which + * does not require this mapping. + */ + tsResolverEquivalents, + /** + * Extensions that we can support if the user upgrades their typescript version. + * Used when raising hints. + */ + requiresHigherTypescriptVersion, + /** + * --experimental-specifier-resolution=node will add these extensions. + */ + experimentalSpecifierResolutionAddsIfOmitted, + /** + * ESM loader will add these extensions to package.json "main" field + */ + legacyMainResolveAddsIfOmitted, + replacementsForMjs, + replacementsForCjs, + replacementsForJsx, + replacementsForJs, + }; +} +exports.getExtensions = getExtensions; +//# sourceMappingURL=file-extensions.js.map + +/***/ }), + +/***/ 72719: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +var _a, _b; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createEsmHooks = exports.createFromPreloadedConfig = exports.create = exports.register = exports.TSError = exports.DEFAULTS = exports.VERSION = exports.debug = exports.INSPECT_CUSTOM = exports.env = exports.REGISTER_INSTANCE = exports.createRepl = void 0; +const path_1 = __nccwpck_require__(71017); +const module_1 = __nccwpck_require__(98188); +const util = __nccwpck_require__(73837); +const url_1 = __nccwpck_require__(57310); +const make_error_1 = __nccwpck_require__(21381); +const util_1 = __nccwpck_require__(64745); +const configuration_1 = __nccwpck_require__(29906); +const module_type_classifier_1 = __nccwpck_require__(23922); +const resolver_functions_1 = __nccwpck_require__(19148); +const cjs_resolve_hooks_1 = __nccwpck_require__(64414); +const node_module_type_classifier_1 = __nccwpck_require__(80812); +const file_extensions_1 = __nccwpck_require__(5183); +const ts_transpile_module_1 = __nccwpck_require__(4444); +var repl_1 = __nccwpck_require__(10204); +Object.defineProperty(exports, "createRepl", ({ enumerable: true, get: function () { return repl_1.createRepl; } })); +/** + * Does this version of node obey the package.json "type" field + * and throw ERR_REQUIRE_ESM when attempting to require() an ESM modules. + */ +const engineSupportsPackageTypeField = parseInt(process.versions.node.split('.')[0], 10) >= 12; +/** + * Assert that script can be loaded as CommonJS when we attempt to require it. + * If it should be loaded as ESM, throw ERR_REQUIRE_ESM like node does. + * + * Loaded conditionally so we don't need to support older node versions + */ +let assertScriptCanLoadAsCJS = engineSupportsPackageTypeField + ? (__nccwpck_require__(51633).assertScriptCanLoadAsCJSImpl) + : () => { + /* noop */ + }; +/** + * Registered `ts-node` instance information. + */ +exports.REGISTER_INSTANCE = Symbol.for('ts-node.register.instance'); +/** @internal */ +exports.env = process.env; +/** + * @internal + */ +exports.INSPECT_CUSTOM = util.inspect.custom || 'inspect'; +/** + * Debugging `ts-node`. + */ +const shouldDebug = (0, util_1.yn)(exports.env.TS_NODE_DEBUG); +/** @internal */ +exports.debug = shouldDebug + ? (...args) => console.log(`[ts-node ${new Date().toISOString()}]`, ...args) + : () => undefined; +const debugFn = shouldDebug + ? (key, fn) => { + let i = 0; + return (x) => { + (0, exports.debug)(key, x, ++i); + return fn(x); + }; + } + : (_, fn) => fn; +/** + * Export the current version. + */ +exports.VERSION = __nccwpck_require__(46686).version; +/** + * Default register options, including values specified via environment + * variables. + * @internal + */ +exports.DEFAULTS = { + cwd: (_a = exports.env.TS_NODE_CWD) !== null && _a !== void 0 ? _a : exports.env.TS_NODE_DIR, + emit: (0, util_1.yn)(exports.env.TS_NODE_EMIT), + scope: (0, util_1.yn)(exports.env.TS_NODE_SCOPE), + scopeDir: exports.env.TS_NODE_SCOPE_DIR, + files: (0, util_1.yn)(exports.env.TS_NODE_FILES), + pretty: (0, util_1.yn)(exports.env.TS_NODE_PRETTY), + compiler: exports.env.TS_NODE_COMPILER, + compilerOptions: (0, util_1.parse)(exports.env.TS_NODE_COMPILER_OPTIONS), + ignore: (0, util_1.split)(exports.env.TS_NODE_IGNORE), + project: exports.env.TS_NODE_PROJECT, + skipProject: (0, util_1.yn)(exports.env.TS_NODE_SKIP_PROJECT), + skipIgnore: (0, util_1.yn)(exports.env.TS_NODE_SKIP_IGNORE), + preferTsExts: (0, util_1.yn)(exports.env.TS_NODE_PREFER_TS_EXTS), + ignoreDiagnostics: (0, util_1.split)(exports.env.TS_NODE_IGNORE_DIAGNOSTICS), + transpileOnly: (0, util_1.yn)(exports.env.TS_NODE_TRANSPILE_ONLY), + typeCheck: (0, util_1.yn)(exports.env.TS_NODE_TYPE_CHECK), + compilerHost: (0, util_1.yn)(exports.env.TS_NODE_COMPILER_HOST), + logError: (0, util_1.yn)(exports.env.TS_NODE_LOG_ERROR), + experimentalReplAwait: (_b = (0, util_1.yn)(exports.env.TS_NODE_EXPERIMENTAL_REPL_AWAIT)) !== null && _b !== void 0 ? _b : undefined, + tsTrace: console.log.bind(console), +}; +/** + * TypeScript diagnostics error. + */ +class TSError extends make_error_1.BaseError { + constructor(diagnosticText, diagnosticCodes, diagnostics = []) { + super(`⨯ Unable to compile TypeScript:\n${diagnosticText}`); + this.diagnosticCodes = diagnosticCodes; + this.name = 'TSError'; + Object.defineProperty(this, 'diagnosticText', { + configurable: true, + writable: true, + value: diagnosticText, + }); + Object.defineProperty(this, 'diagnostics', { + configurable: true, + writable: true, + value: diagnostics, + }); + } + /** + * @internal + */ + [exports.INSPECT_CUSTOM]() { + return this.diagnosticText; + } +} +exports.TSError = TSError; +const TS_NODE_SERVICE_BRAND = Symbol('TS_NODE_SERVICE_BRAND'); +function register(serviceOrOpts) { + // Is this a Service or a RegisterOptions? + let service = serviceOrOpts; + if (!(serviceOrOpts === null || serviceOrOpts === void 0 ? void 0 : serviceOrOpts[TS_NODE_SERVICE_BRAND])) { + // Not a service; is options + service = create((serviceOrOpts !== null && serviceOrOpts !== void 0 ? serviceOrOpts : {})); + } + const originalJsHandler = require.extensions['.js']; + // Expose registered instance globally. + process[exports.REGISTER_INSTANCE] = service; + // Register the extensions. + registerExtensions(service.options.preferTsExts, service.extensions.compiled, service, originalJsHandler); + (0, cjs_resolve_hooks_1.installCommonjsResolveHooksIfNecessary)(service); + // Require specified modules before start-up. + module_1.Module._preloadModules(service.options.require); + return service; +} +exports.register = register; +/** + * Create TypeScript compiler instance. + * + * @category Basic + */ +function create(rawOptions = {}) { + const foundConfigResult = (0, configuration_1.findAndReadConfig)(rawOptions); + return createFromPreloadedConfig(foundConfigResult); +} +exports.create = create; +/** @internal */ +function createFromPreloadedConfig(foundConfigResult) { + var _a, _b, _c, _d; + const { configFilePath, cwd, options, config, compiler, projectLocalResolveDir, optionBasePaths, } = foundConfigResult; + const projectLocalResolveHelper = (0, util_1.createProjectLocalResolveHelper)(projectLocalResolveDir); + const ts = (0, configuration_1.loadCompiler)(compiler); + // Experimental REPL await is not compatible targets lower than ES2018 + const targetSupportsTla = config.options.target >= ts.ScriptTarget.ES2018; + if (options.experimentalReplAwait === true && !targetSupportsTla) { + throw new Error('Experimental REPL await is not compatible with targets lower than ES2018'); + } + // Top-level await was added in TS 3.8 + const tsVersionSupportsTla = (0, util_1.versionGteLt)(ts.version, '3.8.0'); + if (options.experimentalReplAwait === true && !tsVersionSupportsTla) { + throw new Error('Experimental REPL await is not compatible with TypeScript versions older than 3.8'); + } + const shouldReplAwait = options.experimentalReplAwait !== false && + tsVersionSupportsTla && + targetSupportsTla; + // swc implies two other options + // typeCheck option was implemented specifically to allow overriding tsconfig transpileOnly from the command-line + // So we should allow using typeCheck to override swc + if (options.swc && !options.typeCheck) { + if (options.transpileOnly === false) { + throw new Error("Cannot enable 'swc' option with 'transpileOnly: false'. 'swc' implies 'transpileOnly'."); + } + if (options.transpiler) { + throw new Error("Cannot specify both 'swc' and 'transpiler' options. 'swc' uses the built-in swc transpiler."); + } + } + const readFile = options.readFile || ts.sys.readFile; + const fileExists = options.fileExists || ts.sys.fileExists; + // typeCheck can override transpileOnly, useful for CLI flag to override config file + const transpileOnly = (options.transpileOnly === true || options.swc === true) && + options.typeCheck !== true; + let transpiler = undefined; + let transpilerBasePath = undefined; + if (options.transpiler) { + transpiler = options.transpiler; + transpilerBasePath = optionBasePaths.transpiler; + } + else if (options.swc) { + transpiler = __nccwpck_require__.ab + "swc.js"; + transpilerBasePath = optionBasePaths.swc; + } + const transformers = options.transformers || undefined; + const diagnosticFilters = [ + { + appliesToAllFiles: true, + filenamesAbsolute: [], + diagnosticsIgnored: [ + 6059, + 18002, + 18003, + ...(options.experimentalTsImportSpecifiers + ? [ + 2691, // "An import path cannot end with a '.ts' extension. Consider importing '' instead." + ] + : []), + ...(options.ignoreDiagnostics || []), + ].map(Number), + }, + ]; + const configDiagnosticList = filterDiagnostics(config.errors, diagnosticFilters); + const outputCache = new Map(); + const configFileDirname = configFilePath ? (0, path_1.dirname)(configFilePath) : null; + const scopeDir = (_c = (_b = (_a = options.scopeDir) !== null && _a !== void 0 ? _a : config.options.rootDir) !== null && _b !== void 0 ? _b : configFileDirname) !== null && _c !== void 0 ? _c : cwd; + const ignoreBaseDir = configFileDirname !== null && configFileDirname !== void 0 ? configFileDirname : cwd; + const isScoped = options.scope + ? (fileName) => (0, path_1.relative)(scopeDir, fileName).charAt(0) !== '.' + : () => true; + const shouldIgnore = createIgnore(ignoreBaseDir, options.skipIgnore + ? [] + : (options.ignore || ['(?:^|/)node_modules/']).map((str) => new RegExp(str))); + const diagnosticHost = { + getNewLine: () => ts.sys.newLine, + getCurrentDirectory: () => cwd, + // TODO switch to getCanonicalFileName we already create later in scope + getCanonicalFileName: ts.sys.useCaseSensitiveFileNames + ? (x) => x + : (x) => x.toLowerCase(), + }; + if (options.transpileOnly && typeof transformers === 'function') { + throw new TypeError('Transformers function is unavailable in "--transpile-only"'); + } + let createTranspiler = initializeTranspilerFactory(); + function initializeTranspilerFactory() { + var _a; + if (__nccwpck_require__.ab + "swc.js") { + if (!transpileOnly) + throw new Error('Custom transpiler can only be used when transpileOnly is enabled.'); + const transpilerName = typeof transpiler === 'string' ? transpiler : transpiler[0]; + const transpilerOptions = typeof transpiler === 'string' ? {} : (_a = transpiler[1]) !== null && _a !== void 0 ? _a : {}; + const transpilerConfigLocalResolveHelper = transpilerBasePath + ? (0, util_1.createProjectLocalResolveHelper)(transpilerBasePath) + : projectLocalResolveHelper; + const transpilerPath = transpilerConfigLocalResolveHelper(transpilerName, true); + const transpilerFactory = __nccwpck_require__(3833)(transpilerPath) + .create; + return createTranspiler; + function createTranspiler(compilerOptions, nodeModuleEmitKind) { + return transpilerFactory === null || transpilerFactory === void 0 ? void 0 : transpilerFactory({ + service: { + options, + config: { + ...config, + options: compilerOptions, + }, + projectLocalResolveHelper, + }, + transpilerConfigLocalResolveHelper, + nodeModuleEmitKind, + ...transpilerOptions, + }); + } + } + } + /** + * True if require() hooks should interop with experimental ESM loader. + * Enabled explicitly via a flag since it is a breaking change. + */ + let experimentalEsmLoader = false; + function enableExperimentalEsmLoaderInterop() { + experimentalEsmLoader = true; + } + // Install source map support and read from memory cache. + installSourceMapSupport(); + function installSourceMapSupport() { + const sourceMapSupport = __nccwpck_require__(99964); + sourceMapSupport.install({ + environment: 'node', + retrieveFile(pathOrUrl) { + var _a; + let path = pathOrUrl; + // If it's a file URL, convert to local path + // Note: fileURLToPath does not exist on early node v10 + // I could not find a way to handle non-URLs except to swallow an error + if (experimentalEsmLoader && path.startsWith('file://')) { + try { + path = (0, url_1.fileURLToPath)(path); + } + catch (e) { + /* swallow error */ + } + } + path = (0, util_1.normalizeSlashes)(path); + return ((_a = outputCache.get(path)) === null || _a === void 0 ? void 0 : _a.content) || ''; + }, + redirectConflictingLibrary: true, + onConflictingLibraryRedirect(request, parent, isMain, options, redirectedRequest) { + (0, exports.debug)(`Redirected an attempt to require source-map-support to instead receive @cspotcode/source-map-support. "${parent.filename}" attempted to require or resolve "${request}" and was redirected to "${redirectedRequest}".`); + }, + }); + } + const shouldHavePrettyErrors = options.pretty === undefined ? process.stdout.isTTY : options.pretty; + const formatDiagnostics = shouldHavePrettyErrors + ? ts.formatDiagnosticsWithColorAndContext || ts.formatDiagnostics + : ts.formatDiagnostics; + function createTSError(diagnostics) { + const diagnosticText = formatDiagnostics(diagnostics, diagnosticHost); + const diagnosticCodes = diagnostics.map((x) => x.code); + return new TSError(diagnosticText, diagnosticCodes, diagnostics); + } + function reportTSError(configDiagnosticList) { + const error = createTSError(configDiagnosticList); + if (options.logError) { + // Print error in red color and continue execution. + console.error('\x1b[31m%s\x1b[0m', error); + } + else { + // Throw error and exit the script. + throw error; + } + } + // Render the configuration errors. + if (configDiagnosticList.length) + reportTSError(configDiagnosticList); + const jsxEmitPreserve = config.options.jsx === ts.JsxEmit.Preserve; + /** + * Get the extension for a transpiled file. + * [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS] + */ + function getEmitExtension(path) { + const lastDotIndex = path.lastIndexOf('.'); + if (lastDotIndex >= 0) { + const ext = path.slice(lastDotIndex); + switch (ext) { + case '.js': + case '.ts': + return '.js'; + case '.jsx': + case '.tsx': + return jsxEmitPreserve ? '.jsx' : '.js'; + case '.mjs': + case '.mts': + return '.mjs'; + case '.cjs': + case '.cts': + return '.cjs'; + } + } + return '.js'; + } + /** + * Get output from TS compiler w/typechecking. `undefined` in `transpileOnly` + * mode. + */ + let getOutput; + let getTypeInfo; + const getCanonicalFileName = ts.createGetCanonicalFileName(ts.sys.useCaseSensitiveFileNames); + const moduleTypeClassifier = (0, module_type_classifier_1.createModuleTypeClassifier)({ + basePath: (_d = options.optionBasePaths) === null || _d === void 0 ? void 0 : _d.moduleTypes, + patterns: options.moduleTypes, + }); + const extensions = (0, file_extensions_1.getExtensions)(config, options, ts.version); + // Use full language services when the fast option is disabled. + if (!transpileOnly) { + const fileContents = new Map(); + const rootFileNames = new Set(config.fileNames); + const cachedReadFile = (0, util_1.cachedLookup)(debugFn('readFile', readFile)); + // Use language services by default + if (!options.compilerHost) { + let projectVersion = 1; + const fileVersions = new Map(Array.from(rootFileNames).map((fileName) => [fileName, 0])); + const getCustomTransformers = () => { + if (typeof transformers === 'function') { + const program = service.getProgram(); + return program ? transformers(program) : undefined; + } + return transformers; + }; + // Create the compiler host for type checking. + const serviceHost = { + getProjectVersion: () => String(projectVersion), + getScriptFileNames: () => Array.from(rootFileNames), + getScriptVersion: (fileName) => { + const version = fileVersions.get(fileName); + return version ? version.toString() : ''; + }, + getScriptSnapshot(fileName) { + // TODO ordering of this with getScriptVersion? Should they sync up? + let contents = fileContents.get(fileName); + // Read contents into TypeScript memory cache. + if (contents === undefined) { + contents = cachedReadFile(fileName); + if (contents === undefined) + return; + fileVersions.set(fileName, 1); + fileContents.set(fileName, contents); + projectVersion++; + } + return ts.ScriptSnapshot.fromString(contents); + }, + readFile: cachedReadFile, + readDirectory: ts.sys.readDirectory, + getDirectories: (0, util_1.cachedLookup)(debugFn('getDirectories', ts.sys.getDirectories)), + fileExists: (0, util_1.cachedLookup)(debugFn('fileExists', fileExists)), + directoryExists: (0, util_1.cachedLookup)(debugFn('directoryExists', ts.sys.directoryExists)), + realpath: ts.sys.realpath + ? (0, util_1.cachedLookup)(debugFn('realpath', ts.sys.realpath)) + : undefined, + getNewLine: () => ts.sys.newLine, + useCaseSensitiveFileNames: () => ts.sys.useCaseSensitiveFileNames, + getCurrentDirectory: () => cwd, + getCompilationSettings: () => config.options, + getDefaultLibFileName: () => ts.getDefaultLibFilePath(config.options), + getCustomTransformers: getCustomTransformers, + trace: options.tsTrace, + }; + const { resolveModuleNames, getResolvedModuleWithFailedLookupLocationsFromCache, resolveTypeReferenceDirectives, isFileKnownToBeInternal, markBucketOfFilenameInternal, } = (0, resolver_functions_1.createResolverFunctions)({ + host: serviceHost, + getCanonicalFileName, + ts, + cwd, + config, + projectLocalResolveHelper, + options, + extensions, + }); + serviceHost.resolveModuleNames = resolveModuleNames; + serviceHost.getResolvedModuleWithFailedLookupLocationsFromCache = + getResolvedModuleWithFailedLookupLocationsFromCache; + serviceHost.resolveTypeReferenceDirectives = + resolveTypeReferenceDirectives; + const registry = ts.createDocumentRegistry(ts.sys.useCaseSensitiveFileNames, cwd); + const service = ts.createLanguageService(serviceHost, registry); + const updateMemoryCache = (contents, fileName) => { + // Add to `rootFiles` as necessary, either to make TS include a file it has not seen, + // or to trigger a re-classification of files from external to internal. + if (!rootFileNames.has(fileName) && + !isFileKnownToBeInternal(fileName)) { + markBucketOfFilenameInternal(fileName); + rootFileNames.add(fileName); + // Increment project version for every change to rootFileNames. + projectVersion++; + } + const previousVersion = fileVersions.get(fileName) || 0; + const previousContents = fileContents.get(fileName); + // Avoid incrementing cache when nothing has changed. + if (contents !== previousContents) { + fileVersions.set(fileName, previousVersion + 1); + fileContents.set(fileName, contents); + // Increment project version for every file change. + projectVersion++; + } + }; + let previousProgram = undefined; + getOutput = (code, fileName) => { + updateMemoryCache(code, fileName); + const programBefore = service.getProgram(); + if (programBefore !== previousProgram) { + (0, exports.debug)(`compiler rebuilt Program instance when getting output for ${fileName}`); + } + const output = service.getEmitOutput(fileName); + // Get the relevant diagnostics - this is 3x faster than `getPreEmitDiagnostics`. + const diagnostics = service + .getSemanticDiagnostics(fileName) + .concat(service.getSyntacticDiagnostics(fileName)); + const programAfter = service.getProgram(); + (0, exports.debug)('invariant: Is service.getProject() identical before and after getting emit output and diagnostics? (should always be true) ', programBefore === programAfter); + previousProgram = programAfter; + const diagnosticList = filterDiagnostics(diagnostics, diagnosticFilters); + if (diagnosticList.length) + reportTSError(diagnosticList); + if (output.emitSkipped) { + return [undefined, undefined, true]; + } + // Throw an error when requiring `.d.ts` files. + if (output.outputFiles.length === 0) { + throw new TypeError(`Unable to require file: ${(0, path_1.relative)(cwd, fileName)}\n` + + 'This is usually the result of a faulty configuration or import. ' + + 'Make sure there is a `.js`, `.json` or other executable extension with ' + + 'loader attached before `ts-node` available.'); + } + return [output.outputFiles[1].text, output.outputFiles[0].text, false]; + }; + getTypeInfo = (code, fileName, position) => { + const normalizedFileName = (0, util_1.normalizeSlashes)(fileName); + updateMemoryCache(code, normalizedFileName); + const info = service.getQuickInfoAtPosition(normalizedFileName, position); + const name = ts.displayPartsToString(info ? info.displayParts : []); + const comment = ts.displayPartsToString(info ? info.documentation : []); + return { name, comment }; + }; + } + else { + const sys = { + ...ts.sys, + ...diagnosticHost, + readFile: (fileName) => { + const cacheContents = fileContents.get(fileName); + if (cacheContents !== undefined) + return cacheContents; + const contents = cachedReadFile(fileName); + if (contents) + fileContents.set(fileName, contents); + return contents; + }, + readDirectory: ts.sys.readDirectory, + getDirectories: (0, util_1.cachedLookup)(debugFn('getDirectories', ts.sys.getDirectories)), + fileExists: (0, util_1.cachedLookup)(debugFn('fileExists', fileExists)), + directoryExists: (0, util_1.cachedLookup)(debugFn('directoryExists', ts.sys.directoryExists)), + resolvePath: (0, util_1.cachedLookup)(debugFn('resolvePath', ts.sys.resolvePath)), + realpath: ts.sys.realpath + ? (0, util_1.cachedLookup)(debugFn('realpath', ts.sys.realpath)) + : undefined, + }; + const host = ts.createIncrementalCompilerHost + ? ts.createIncrementalCompilerHost(config.options, sys) + : { + ...sys, + getSourceFile: (fileName, languageVersion) => { + const contents = sys.readFile(fileName); + if (contents === undefined) + return; + return ts.createSourceFile(fileName, contents, languageVersion); + }, + getDefaultLibLocation: () => (0, util_1.normalizeSlashes)((0, path_1.dirname)(compiler)), + getDefaultLibFileName: () => (0, util_1.normalizeSlashes)((0, path_1.join)((0, path_1.dirname)(compiler), ts.getDefaultLibFileName(config.options))), + useCaseSensitiveFileNames: () => sys.useCaseSensitiveFileNames, + }; + host.trace = options.tsTrace; + const { resolveModuleNames, resolveTypeReferenceDirectives, isFileKnownToBeInternal, markBucketOfFilenameInternal, } = (0, resolver_functions_1.createResolverFunctions)({ + host, + cwd, + config, + ts, + getCanonicalFileName, + projectLocalResolveHelper, + options, + extensions, + }); + host.resolveModuleNames = resolveModuleNames; + host.resolveTypeReferenceDirectives = resolveTypeReferenceDirectives; + // Fallback for older TypeScript releases without incremental API. + let builderProgram = ts.createIncrementalProgram + ? ts.createIncrementalProgram({ + rootNames: Array.from(rootFileNames), + options: config.options, + host, + configFileParsingDiagnostics: config.errors, + projectReferences: config.projectReferences, + }) + : ts.createEmitAndSemanticDiagnosticsBuilderProgram(Array.from(rootFileNames), config.options, host, undefined, config.errors, config.projectReferences); + // Read and cache custom transformers. + const customTransformers = typeof transformers === 'function' + ? transformers(builderProgram.getProgram()) + : transformers; + // Set the file contents into cache manually. + const updateMemoryCache = (contents, fileName) => { + const previousContents = fileContents.get(fileName); + const contentsChanged = previousContents !== contents; + if (contentsChanged) { + fileContents.set(fileName, contents); + } + // Add to `rootFiles` when discovered by compiler for the first time. + let addedToRootFileNames = false; + if (!rootFileNames.has(fileName) && + !isFileKnownToBeInternal(fileName)) { + markBucketOfFilenameInternal(fileName); + rootFileNames.add(fileName); + addedToRootFileNames = true; + } + // Update program when file changes. + if (addedToRootFileNames || contentsChanged) { + builderProgram = ts.createEmitAndSemanticDiagnosticsBuilderProgram(Array.from(rootFileNames), config.options, host, builderProgram, config.errors, config.projectReferences); + } + }; + getOutput = (code, fileName) => { + let outText = ''; + let outMap = ''; + updateMemoryCache(code, fileName); + const sourceFile = builderProgram.getSourceFile(fileName); + if (!sourceFile) + throw new TypeError(`Unable to read file: ${fileName}`); + const program = builderProgram.getProgram(); + const diagnostics = ts.getPreEmitDiagnostics(program, sourceFile); + const diagnosticList = filterDiagnostics(diagnostics, diagnosticFilters); + if (diagnosticList.length) + reportTSError(diagnosticList); + const result = builderProgram.emit(sourceFile, (path, file, writeByteOrderMark) => { + if (path.endsWith('.map')) { + outMap = file; + } + else { + outText = file; + } + if (options.emit) + sys.writeFile(path, file, writeByteOrderMark); + }, undefined, undefined, customTransformers); + if (result.emitSkipped) { + return [undefined, undefined, true]; + } + // Throw an error when requiring files that cannot be compiled. + if (outText === '') { + if (program.isSourceFileFromExternalLibrary(sourceFile)) { + throw new TypeError(`Unable to compile file from external library: ${(0, path_1.relative)(cwd, fileName)}`); + } + throw new TypeError(`Unable to require file: ${(0, path_1.relative)(cwd, fileName)}\n` + + 'This is usually the result of a faulty configuration or import. ' + + 'Make sure there is a `.js`, `.json` or other executable extension with ' + + 'loader attached before `ts-node` available.'); + } + return [outText, outMap, false]; + }; + getTypeInfo = (code, fileName, position) => { + const normalizedFileName = (0, util_1.normalizeSlashes)(fileName); + updateMemoryCache(code, normalizedFileName); + const sourceFile = builderProgram.getSourceFile(normalizedFileName); + if (!sourceFile) + throw new TypeError(`Unable to read file: ${fileName}`); + const node = getTokenAtPosition(ts, sourceFile, position); + const checker = builderProgram.getProgram().getTypeChecker(); + const symbol = checker.getSymbolAtLocation(node); + if (!symbol) + return { name: '', comment: '' }; + const type = checker.getTypeOfSymbolAtLocation(symbol, node); + const signatures = [ + ...type.getConstructSignatures(), + ...type.getCallSignatures(), + ]; + return { + name: signatures.length + ? signatures.map((x) => checker.signatureToString(x)).join('\n') + : checker.typeToString(type), + comment: ts.displayPartsToString(symbol ? symbol.getDocumentationComment(checker) : []), + }; + }; + // Write `.tsbuildinfo` when `--build` is enabled. + if (options.emit && config.options.incremental) { + process.on('exit', () => { + // Emits `.tsbuildinfo` to filesystem. + builderProgram.getProgram().emitBuildInfo(); + }); + } + } + } + else { + getTypeInfo = () => { + throw new TypeError('Type information is unavailable in "--transpile-only"'); + }; + } + function createTranspileOnlyGetOutputFunction(overrideModuleType, nodeModuleEmitKind) { + const compilerOptions = { ...config.options }; + if (overrideModuleType !== undefined) + compilerOptions.module = overrideModuleType; + let customTranspiler = createTranspiler === null || createTranspiler === void 0 ? void 0 : createTranspiler(compilerOptions, nodeModuleEmitKind); + let tsTranspileModule = (0, util_1.versionGteLt)(ts.version, '4.7.0') + ? (0, ts_transpile_module_1.createTsTranspileModule)(ts, { + compilerOptions, + reportDiagnostics: true, + transformers: transformers, + }) + : undefined; + return (code, fileName) => { + let result; + if (customTranspiler) { + result = customTranspiler.transpile(code, { + fileName, + }); + } + else if (tsTranspileModule) { + result = tsTranspileModule(code, { + fileName, + }, nodeModuleEmitKind === 'nodeesm' ? 'module' : 'commonjs'); + } + else { + result = ts.transpileModule(code, { + fileName, + compilerOptions, + reportDiagnostics: true, + transformers: transformers, + }); + } + const diagnosticList = filterDiagnostics(result.diagnostics || [], diagnosticFilters); + if (diagnosticList.length) + reportTSError(diagnosticList); + return [result.outputText, result.sourceMapText, false]; + }; + } + // When true, these mean that a `moduleType` override will cause a different emit + // than the TypeScript compiler, so we *must* overwrite the emit. + const shouldOverwriteEmitWhenForcingCommonJS = config.options.module !== ts.ModuleKind.CommonJS; + // [MUST_UPDATE_FOR_NEW_MODULEKIND] + const shouldOverwriteEmitWhenForcingEsm = !(config.options.module === ts.ModuleKind.ES2015 || + (ts.ModuleKind.ES2020 && config.options.module === ts.ModuleKind.ES2020) || + (ts.ModuleKind.ES2022 && config.options.module === ts.ModuleKind.ES2022) || + config.options.module === ts.ModuleKind.ESNext); + /** + * node16 or nodenext + * [MUST_UPDATE_FOR_NEW_MODULEKIND] + */ + const isNodeModuleType = (ts.ModuleKind.Node16 && config.options.module === ts.ModuleKind.Node16) || + (ts.ModuleKind.NodeNext && + config.options.module === ts.ModuleKind.NodeNext); + const getOutputForceCommonJS = createTranspileOnlyGetOutputFunction(ts.ModuleKind.CommonJS); + const getOutputForceNodeCommonJS = createTranspileOnlyGetOutputFunction(ts.ModuleKind.NodeNext, 'nodecjs'); + const getOutputForceNodeESM = createTranspileOnlyGetOutputFunction(ts.ModuleKind.NodeNext, 'nodeesm'); + // [MUST_UPDATE_FOR_NEW_MODULEKIND] + const getOutputForceESM = createTranspileOnlyGetOutputFunction(ts.ModuleKind.ES2022 || ts.ModuleKind.ES2020 || ts.ModuleKind.ES2015); + const getOutputTranspileOnly = createTranspileOnlyGetOutputFunction(); + // Create a simple TypeScript compiler proxy. + function compile(code, fileName, lineOffset = 0) { + const normalizedFileName = (0, util_1.normalizeSlashes)(fileName); + const classification = moduleTypeClassifier.classifyModuleByModuleTypeOverrides(normalizedFileName); + let value = ''; + let sourceMap = ''; + let emitSkipped = true; + if (getOutput) { + // Must always call normal getOutput to throw typechecking errors + [value, sourceMap, emitSkipped] = getOutput(code, normalizedFileName); + } + // If module classification contradicts the above, call the relevant transpiler + if (classification.moduleType === 'cjs' && + (shouldOverwriteEmitWhenForcingCommonJS || emitSkipped)) { + [value, sourceMap] = getOutputForceCommonJS(code, normalizedFileName); + } + else if (classification.moduleType === 'esm' && + (shouldOverwriteEmitWhenForcingEsm || emitSkipped)) { + [value, sourceMap] = getOutputForceESM(code, normalizedFileName); + } + else if (emitSkipped) { + // Happens when ts compiler skips emit or in transpileOnly mode + const classification = (0, node_module_type_classifier_1.classifyModule)(fileName, isNodeModuleType); + [value, sourceMap] = + classification === 'nodecjs' + ? getOutputForceNodeCommonJS(code, normalizedFileName) + : classification === 'nodeesm' + ? getOutputForceNodeESM(code, normalizedFileName) + : classification === 'cjs' + ? getOutputForceCommonJS(code, normalizedFileName) + : classification === 'esm' + ? getOutputForceESM(code, normalizedFileName) + : getOutputTranspileOnly(code, normalizedFileName); + } + const output = updateOutput(value, normalizedFileName, sourceMap, getEmitExtension); + outputCache.set(normalizedFileName, { content: output }); + return output; + } + let active = true; + const enabled = (enabled) => enabled === undefined ? active : (active = !!enabled); + const ignored = (fileName) => { + if (!active) + return true; + const ext = (0, path_1.extname)(fileName); + if (extensions.compiled.includes(ext)) { + return !isScoped(fileName) || shouldIgnore(fileName); + } + return true; + }; + function addDiagnosticFilter(filter) { + diagnosticFilters.push({ + ...filter, + filenamesAbsolute: filter.filenamesAbsolute.map((f) => (0, util_1.normalizeSlashes)(f)), + }); + } + const getNodeEsmResolver = (0, util_1.once)(() => (__nccwpck_require__(67968).createResolve)({ + extensions, + preferTsExts: options.preferTsExts, + tsNodeExperimentalSpecifierResolution: options.experimentalSpecifierResolution, + })); + const getNodeEsmGetFormat = (0, util_1.once)(() => (__nccwpck_require__(37207).createGetFormat)(options.experimentalSpecifierResolution, getNodeEsmResolver())); + const getNodeCjsLoader = (0, util_1.once)(() => (__nccwpck_require__(51633).createCjsLoader)({ + extensions, + preferTsExts: options.preferTsExts, + nodeEsmResolver: getNodeEsmResolver(), + })); + return { + [TS_NODE_SERVICE_BRAND]: true, + ts, + compilerPath: compiler, + config, + compile, + getTypeInfo, + ignored, + enabled, + options, + configFilePath, + moduleTypeClassifier, + shouldReplAwait, + addDiagnosticFilter, + installSourceMapSupport, + enableExperimentalEsmLoaderInterop, + transpileOnly, + projectLocalResolveHelper, + getNodeEsmResolver, + getNodeEsmGetFormat, + getNodeCjsLoader, + extensions, + }; +} +exports.createFromPreloadedConfig = createFromPreloadedConfig; +/** + * Check if the filename should be ignored. + */ +function createIgnore(ignoreBaseDir, ignore) { + return (fileName) => { + const relname = (0, path_1.relative)(ignoreBaseDir, fileName); + const path = (0, util_1.normalizeSlashes)(relname); + return ignore.some((x) => x.test(path)); + }; +} +/** + * Register the extensions to support when importing files. + */ +function registerExtensions(preferTsExts, extensions, service, originalJsHandler) { + const exts = new Set(extensions); + // Can't add these extensions cuz would allow omitting file extension; node requires ext for .cjs and .mjs + // Unless they're already registered by something else (nyc does this): + // then we *must* hook them or else our transformer will not be called. + for (const cannotAdd of ['.mts', '.cts', '.mjs', '.cjs']) { + if (exts.has(cannotAdd) && !(0, util_1.hasOwnProperty)(require.extensions, cannotAdd)) { + // Unrecognized file exts can be transformed via the `.js` handler. + exts.add('.js'); + exts.delete(cannotAdd); + } + } + // Register new extensions. + for (const ext of exts) { + registerExtension(ext, service, originalJsHandler); + } + if (preferTsExts) { + const preferredExtensions = new Set([ + ...exts, + ...Object.keys(require.extensions), + ]); + // Re-sort iteration order of Object.keys() + for (const ext of preferredExtensions) { + const old = Object.getOwnPropertyDescriptor(require.extensions, ext); + delete require.extensions[ext]; + Object.defineProperty(require.extensions, ext, old); + } + } +} +/** + * Register the extension for node. + */ +function registerExtension(ext, service, originalHandler) { + const old = require.extensions[ext] || originalHandler; + require.extensions[ext] = function (m, filename) { + if (service.ignored(filename)) + return old(m, filename); + assertScriptCanLoadAsCJS(service, m, filename); + const _compile = m._compile; + m._compile = function (code, fileName) { + (0, exports.debug)('module._compile', fileName); + const result = service.compile(code, fileName); + return _compile.call(this, result, fileName); + }; + return old(m, filename); + }; +} +/** + * Update the output remapping the source map. + */ +function updateOutput(outputText, fileName, sourceMap, getEmitExtension) { + const base64Map = Buffer.from(updateSourceMap(sourceMap, fileName), 'utf8').toString('base64'); + const sourceMapContent = `//# sourceMappingURL=data:application/json;charset=utf-8;base64,${base64Map}`; + // Expected form: `//# sourceMappingURL=foo bar.js.map` or `//# sourceMappingURL=foo%20bar.js.map` for input file "foo bar.tsx" + // Percent-encoding behavior added in TS 4.1.1: https://github.com/microsoft/TypeScript/issues/40951 + const prefix = '//# sourceMappingURL='; + const prefixLength = prefix.length; + const baseName = /*foo.tsx*/ (0, path_1.basename)(fileName); + const extName = /*.tsx*/ (0, path_1.extname)(fileName); + const extension = /*.js*/ getEmitExtension(fileName); + const sourcemapFilename = baseName.slice(0, -extName.length) + extension + '.map'; + const sourceMapLengthWithoutPercentEncoding = prefixLength + sourcemapFilename.length; + /* + * Only rewrite if existing directive exists at the location we expect, to support: + * a) compilers that do not append a sourcemap directive + * b) situations where we did the math wrong + * Not ideal, but appending our sourcemap *after* a pre-existing sourcemap still overrides, so the end-user is happy. + */ + if (outputText.substr(-sourceMapLengthWithoutPercentEncoding, prefixLength) === + prefix) { + return (outputText.slice(0, -sourceMapLengthWithoutPercentEncoding) + + sourceMapContent); + } + // If anyone asks why we're not using URL, the URL equivalent is: `u = new URL('http://d'); u.pathname = "/" + sourcemapFilename; return u.pathname.slice(1); + const sourceMapLengthWithPercentEncoding = prefixLength + encodeURI(sourcemapFilename).length; + if (outputText.substr(-sourceMapLengthWithPercentEncoding, prefixLength) === + prefix) { + return (outputText.slice(0, -sourceMapLengthWithPercentEncoding) + + sourceMapContent); + } + return `${outputText}\n${sourceMapContent}`; +} +/** + * Update the source map contents for improved output. + */ +function updateSourceMap(sourceMapText, fileName) { + const sourceMap = JSON.parse(sourceMapText); + sourceMap.file = fileName; + sourceMap.sources = [fileName]; + delete sourceMap.sourceRoot; + return JSON.stringify(sourceMap); +} +/** + * Filter diagnostics. + */ +function filterDiagnostics(diagnostics, filters) { + return diagnostics.filter((d) => filters.every((f) => { + var _a; + return (!f.appliesToAllFiles && + f.filenamesAbsolute.indexOf((_a = d.file) === null || _a === void 0 ? void 0 : _a.fileName) === -1) || + f.diagnosticsIgnored.indexOf(d.code) === -1; + })); +} +/** + * Get token at file position. + * + * Reference: https://github.com/microsoft/TypeScript/blob/fcd9334f57d85b73dd66ad2d21c02e84822f4841/src/services/utilities.ts#L705-L731 + */ +function getTokenAtPosition(ts, sourceFile, position) { + let current = sourceFile; + outer: while (true) { + for (const child of current.getChildren(sourceFile)) { + const start = child.getFullStart(); + if (start > position) + break; + const end = child.getEnd(); + if (position <= end) { + current = child; + continue outer; + } + } + return current; + } +} +/** + * Create an implementation of node's ESM loader hooks. + * + * This may be useful if you + * want to wrap or compose the loader hooks to add additional functionality or + * combine with another loader. + * + * Node changed the hooks API, so there are two possible APIs. This function + * detects your node version and returns the appropriate API. + * + * @category ESM Loader + */ +const createEsmHooks = (tsNodeService) => (__nccwpck_require__(84998)/* .createEsmHooks */ .lT)(tsNodeService); +exports.createEsmHooks = createEsmHooks; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 23922: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createModuleTypeClassifier = void 0; +const ts_internals_1 = __nccwpck_require__(14851); +const util_1 = __nccwpck_require__(64745); +/** + * @internal + * May receive non-normalized options -- basePath and patterns -- and will normalize them + * internally. + * However, calls to `classifyModule` must pass pre-normalized paths! + */ +function createModuleTypeClassifier(options) { + const { patterns, basePath: _basePath } = options; + const basePath = _basePath !== undefined + ? (0, util_1.normalizeSlashes)(_basePath).replace(/\/$/, '') + : undefined; + const patternTypePairs = Object.entries(patterns !== null && patterns !== void 0 ? patterns : []).map(([_pattern, type]) => { + const pattern = (0, util_1.normalizeSlashes)(_pattern); + return { pattern: parsePattern(basePath, pattern), type }; + }); + const classifications = { + package: { + moduleType: 'auto', + }, + cjs: { + moduleType: 'cjs', + }, + esm: { + moduleType: 'esm', + }, + }; + const auto = classifications.package; + // Passed path must be normalized! + function classifyModuleNonCached(path) { + const matched = matchPatterns(patternTypePairs, (_) => _.pattern, path); + if (matched) + return classifications[matched.type]; + return auto; + } + const classifyModule = (0, util_1.cachedLookup)(classifyModuleNonCached); + function classifyModuleAuto(path) { + return auto; + } + return { + classifyModuleByModuleTypeOverrides: patternTypePairs.length + ? classifyModule + : classifyModuleAuto, + }; +} +exports.createModuleTypeClassifier = createModuleTypeClassifier; +function parsePattern(basePath, patternString) { + const pattern = (0, ts_internals_1.getPatternFromSpec)(patternString, basePath); + return pattern !== undefined ? new RegExp(pattern) : /(?:)/; +} +function matchPatterns(objects, getPattern, candidate) { + for (let i = objects.length - 1; i >= 0; i--) { + const object = objects[i]; + const pattern = getPattern(object); + if (pattern === null || pattern === void 0 ? void 0 : pattern.test(candidate)) { + return object; + } + } +} +//# sourceMappingURL=module-type-classifier.js.map + +/***/ }), + +/***/ 80812: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.classifyModule = void 0; +const node_internal_modules_cjs_loader_1 = __nccwpck_require__(51633); +/** + * Determine how to emit a module based on tsconfig "module" and package.json "type" + * + * Supports module=nodenext/node16 with transpileOnly, where we cannot ask the + * TS typechecker to tell us if a file is CJS or ESM. + * + * Return values indicate: + * - cjs + * - esm + * - nodecjs == node-flavored cjs where dynamic imports are *not* transformed into `require()` + * - undefined == emit according to tsconfig `module` config, whatever that is + * @internal + */ +function classifyModule(nativeFilename, isNodeModuleType) { + // [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS] + const lastDotIndex = nativeFilename.lastIndexOf('.'); + const ext = lastDotIndex >= 0 ? nativeFilename.slice(lastDotIndex) : ''; + switch (ext) { + case '.cjs': + case '.cts': + return isNodeModuleType ? 'nodecjs' : 'cjs'; + case '.mjs': + case '.mts': + return isNodeModuleType ? 'nodeesm' : 'esm'; + } + if (isNodeModuleType) { + const packageScope = (0, node_internal_modules_cjs_loader_1.readPackageScope)(nativeFilename); + if (packageScope && packageScope.data.type === 'module') + return 'nodeesm'; + return 'nodecjs'; + } + return undefined; +} +exports.classifyModule = classifyModule; +//# sourceMappingURL=node-module-type-classifier.js.map + +/***/ }), + +/***/ 10204: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.setupContext = exports.createEvalAwarePartialHost = exports.EvalState = exports.createRepl = exports.REPL_NAME = exports.REPL_FILENAME = exports.STDIN_NAME = exports.STDIN_FILENAME = exports.EVAL_NAME = exports.EVAL_FILENAME = void 0; +const os_1 = __nccwpck_require__(22037); +const path_1 = __nccwpck_require__(71017); +const repl_1 = __nccwpck_require__(38102); +const vm_1 = __nccwpck_require__(26144); +const index_1 = __nccwpck_require__(72719); +const fs_1 = __nccwpck_require__(57147); +const console_1 = __nccwpck_require__(51807); +const assert = __nccwpck_require__(39491); +const module_1 = __nccwpck_require__(98188); +// Lazy-loaded. +let _processTopLevelAwait; +function getProcessTopLevelAwait() { + if (_processTopLevelAwait === undefined) { + ({ + processTopLevelAwait: _processTopLevelAwait, + } = __nccwpck_require__(75818)); + } + return _processTopLevelAwait; +} +let diff; +function getDiffLines() { + if (diff === undefined) { + diff = __nccwpck_require__(71672); + } + return diff.diffLines; +} +/** @internal */ +exports.EVAL_FILENAME = `[eval].ts`; +/** @internal */ +exports.EVAL_NAME = `[eval]`; +/** @internal */ +exports.STDIN_FILENAME = `[stdin].ts`; +/** @internal */ +exports.STDIN_NAME = `[stdin]`; +/** @internal */ +exports.REPL_FILENAME = '.ts'; +/** @internal */ +exports.REPL_NAME = ''; +/** + * Create a ts-node REPL instance. + * + * Pay close attention to the example below. Today, the API requires a few lines + * of boilerplate to correctly bind the `ReplService` to the ts-node `Service` and + * vice-versa. + * + * Usage example: + * + * const repl = tsNode.createRepl(); + * const service = tsNode.create({...repl.evalAwarePartialHost}); + * repl.setService(service); + * repl.start(); + * + * @category REPL + */ +function createRepl(options = {}) { + var _a, _b, _c, _d, _e; + const { ignoreDiagnosticsThatAreAnnoyingInInteractiveRepl = true } = options; + let service = options.service; + let nodeReplServer; + // If `useGlobal` is not true, then REPL creates a context when started. + // This stores a reference to it or to `global`, whichever is used, after REPL has started. + let context; + const state = (_a = options.state) !== null && _a !== void 0 ? _a : new EvalState((0, path_1.join)(process.cwd(), exports.REPL_FILENAME)); + const evalAwarePartialHost = createEvalAwarePartialHost(state, options.composeWithEvalAwarePartialHost); + const stdin = (_b = options.stdin) !== null && _b !== void 0 ? _b : process.stdin; + const stdout = (_c = options.stdout) !== null && _c !== void 0 ? _c : process.stdout; + const stderr = (_d = options.stderr) !== null && _d !== void 0 ? _d : process.stderr; + const _console = stdout === process.stdout && stderr === process.stderr + ? console + : new console_1.Console(stdout, stderr); + const replService = { + state: (_e = options.state) !== null && _e !== void 0 ? _e : new EvalState((0, path_1.join)(process.cwd(), exports.EVAL_FILENAME)), + setService, + evalCode, + evalCodeInternal, + nodeEval, + evalAwarePartialHost, + start, + startInternal, + stdin, + stdout, + stderr, + console: _console, + }; + return replService; + function setService(_service) { + service = _service; + if (ignoreDiagnosticsThatAreAnnoyingInInteractiveRepl) { + service.addDiagnosticFilter({ + appliesToAllFiles: false, + filenamesAbsolute: [state.path], + diagnosticsIgnored: [ + 2393, + 6133, + 7027, + ...(service.shouldReplAwait ? topLevelAwaitDiagnosticCodes : []), + ], + }); + } + } + function evalCode(code) { + const result = appendCompileAndEvalInput({ + service: service, + state, + input: code, + context, + overrideIsCompletion: false, + }); + assert(result.containsTopLevelAwait === false); + return result.value; + } + function evalCodeInternal(options) { + const { code, enableTopLevelAwait, context } = options; + return appendCompileAndEvalInput({ + service: service, + state, + input: code, + enableTopLevelAwait, + context, + }); + } + function nodeEval(code, context, _filename, callback) { + // TODO: Figure out how to handle completion here. + if (code === '.scope') { + callback(null); + return; + } + try { + const evalResult = evalCodeInternal({ + code, + enableTopLevelAwait: true, + context, + }); + if (evalResult.containsTopLevelAwait) { + (async () => { + try { + callback(null, await evalResult.valuePromise); + } + catch (promiseError) { + handleError(promiseError); + } + })(); + } + else { + callback(null, evalResult.value); + } + } + catch (error) { + handleError(error); + } + // Log TSErrors, check if they're recoverable, log helpful hints for certain + // well-known errors, and invoke `callback()` + // TODO should evalCode API get the same error-handling benefits? + function handleError(error) { + var _a, _b; + // Don't show TLA hint if the user explicitly disabled repl top level await + const canLogTopLevelAwaitHint = service.options.experimentalReplAwait !== false && + !service.shouldReplAwait; + if (error instanceof index_1.TSError) { + // Support recoverable compilations using >= node 6. + if (repl_1.Recoverable && isRecoverable(error)) { + callback(new repl_1.Recoverable(error)); + return; + } + else { + _console.error(error); + if (canLogTopLevelAwaitHint && + error.diagnosticCodes.some((dC) => topLevelAwaitDiagnosticCodes.includes(dC))) { + _console.error(getTopLevelAwaitHint()); + } + callback(null); + } + } + else { + let _error = error; + if (canLogTopLevelAwaitHint && + _error instanceof SyntaxError && + ((_a = _error.message) === null || _a === void 0 ? void 0 : _a.includes('await is only valid'))) { + try { + // Only way I know to make our hint appear after the error + _error.message += `\n\n${getTopLevelAwaitHint()}`; + _error.stack = (_b = _error.stack) === null || _b === void 0 ? void 0 : _b.replace(/(SyntaxError:.*)/, (_, $1) => `${$1}\n\n${getTopLevelAwaitHint()}`); + } + catch { } + } + callback(_error); + } + } + function getTopLevelAwaitHint() { + return `Hint: REPL top-level await requires TypeScript version 3.8 or higher and target ES2018 or higher. You are using TypeScript ${service.ts.version} and target ${service.ts.ScriptTarget[service.config.options.target]}.`; + } + } + // Note: `code` argument is deprecated + function start(code) { + startInternal({ code }); + } + // Note: `code` argument is deprecated + function startInternal(options) { + const { code, forceToBeModule = true, ...optionsOverride } = options !== null && options !== void 0 ? options : {}; + // TODO assert that `service` is set; remove all `service!` non-null assertions + // Eval incoming code before the REPL starts. + // Note: deprecated + if (code) { + try { + evalCode(`${code}\n`); + } + catch (err) { + _console.error(err); + // Note: should not be killing the process here, but this codepath is deprecated anyway + process.exit(1); + } + } + // In case the typescript compiler hasn't compiled anything yet, + // make it run though compilation at least one time before + // the REPL starts for a snappier user experience on startup. + service === null || service === void 0 ? void 0 : service.compile('', state.path); + const repl = (0, repl_1.start)({ + prompt: '> ', + input: replService.stdin, + output: replService.stdout, + // Mimicking node's REPL implementation: https://github.com/nodejs/node/blob/168b22ba073ee1cbf8d0bcb4ded7ff3099335d04/lib/internal/repl.js#L28-L30 + terminal: stdout.isTTY && + !parseInt(index_1.env.NODE_NO_READLINE, 10), + eval: nodeEval, + useGlobal: true, + ...optionsOverride, + }); + nodeReplServer = repl; + context = repl.context; + // Bookmark the point where we should reset the REPL state. + const resetEval = appendToEvalState(state, ''); + function reset() { + resetEval(); + // Hard fix for TypeScript forcing `Object.defineProperty(exports, ...)`. + runInContext('exports = module.exports', state.path, context); + if (forceToBeModule) { + state.input += 'export {};void 0;\n'; + } + // Declare node builtins. + // Skip the same builtins as `addBuiltinLibsToObject`: + // those starting with _ + // those containing / + // those that already exist as globals + // Intentionally suppress type errors in case @types/node does not declare any of them, and because + // `declare import` is technically invalid syntax. + // Avoid this when in transpileOnly, because third-party transpilers may not handle `declare import`. + if (!(service === null || service === void 0 ? void 0 : service.transpileOnly)) { + state.input += `// @ts-ignore\n${module_1.builtinModules + .filter((name) => !name.startsWith('_') && + !name.includes('/') && + !['console', 'module', 'process'].includes(name)) + .map((name) => `declare import ${name} = require('${name}')`) + .join(';')}\n`; + } + } + reset(); + repl.on('reset', reset); + repl.defineCommand('type', { + help: 'Check the type of a TypeScript identifier', + action: function (identifier) { + if (!identifier) { + repl.displayPrompt(); + return; + } + const undo = appendToEvalState(state, identifier); + const { name, comment } = service.getTypeInfo(state.input, state.path, state.input.length); + undo(); + if (name) + repl.outputStream.write(`${name}\n`); + if (comment) + repl.outputStream.write(`${comment}\n`); + repl.displayPrompt(); + }, + }); + // Set up REPL history when available natively via node.js >= 11. + if (repl.setupHistory) { + const historyPath = index_1.env.TS_NODE_HISTORY || (0, path_1.join)((0, os_1.homedir)(), '.ts_node_repl_history'); + repl.setupHistory(historyPath, (err) => { + if (!err) + return; + _console.error(err); + process.exit(1); + }); + } + return repl; + } +} +exports.createRepl = createRepl; +/** + * Eval state management. Stores virtual `[eval].ts` file + */ +class EvalState { + constructor(path) { + this.path = path; + /** @internal */ + this.input = ''; + /** @internal */ + this.output = ''; + /** @internal */ + this.version = 0; + /** @internal */ + this.lines = 0; + } +} +exports.EvalState = EvalState; +function createEvalAwarePartialHost(state, composeWith) { + function readFile(path) { + if (path === state.path) + return state.input; + if (composeWith === null || composeWith === void 0 ? void 0 : composeWith.readFile) + return composeWith.readFile(path); + try { + return (0, fs_1.readFileSync)(path, 'utf8'); + } + catch (err) { + /* Ignore. */ + } + } + function fileExists(path) { + if (path === state.path) + return true; + if (composeWith === null || composeWith === void 0 ? void 0 : composeWith.fileExists) + return composeWith.fileExists(path); + try { + const stats = (0, fs_1.statSync)(path); + return stats.isFile() || stats.isFIFO(); + } + catch (err) { + return false; + } + } + return { readFile, fileExists }; +} +exports.createEvalAwarePartialHost = createEvalAwarePartialHost; +const sourcemapCommentRe = /\/\/# ?sourceMappingURL=\S+[\s\r\n]*$/; +/** + * Evaluate the code snippet. + * + * Append it to virtual .ts file, compile, handle compiler errors, compute a diff of the JS, and eval any code that + * appears as "added" in the diff. + */ +function appendCompileAndEvalInput(options) { + const { service, state, wrappedErr, enableTopLevelAwait = false, context, overrideIsCompletion, } = options; + let { input } = options; + // It's confusing for `{ a: 1 }` to be interpreted as a block statement + // rather than an object literal. So, we first try to wrap it in + // parentheses, so that it will be interpreted as an expression. + // Based on https://github.com/nodejs/node/blob/c2e6822153bad023ab7ebd30a6117dcc049e475c/lib/repl.js#L413-L422 + let wrappedCmd = false; + if (!wrappedErr && /^\s*{/.test(input) && !/;\s*$/.test(input)) { + input = `(${input.trim()})\n`; + wrappedCmd = true; + } + const lines = state.lines; + const isCompletion = overrideIsCompletion !== null && overrideIsCompletion !== void 0 ? overrideIsCompletion : !/\n$/.test(input); + const undo = appendToEvalState(state, input); + let output; + // Based on https://github.com/nodejs/node/blob/92573721c7cff104ccb82b6ed3e8aa69c4b27510/lib/repl.js#L457-L461 + function adjustUseStrict(code) { + // "void 0" keeps the repl from returning "use strict" as the result + // value for statements and declarations that don't return a value. + return code.replace(/^"use strict";/, '"use strict"; void 0;'); + } + try { + output = service.compile(state.input, state.path, -lines); + } + catch (err) { + undo(); + if (wrappedCmd) { + if (err instanceof index_1.TSError && err.diagnosticCodes[0] === 2339) { + // Ensure consistent and more sane behavior between { a: 1 }['b'] and ({ a: 1 }['b']) + throw err; + } + // Unwrap and try again + return appendCompileAndEvalInput({ + ...options, + wrappedErr: err, + }); + } + if (wrappedErr) + throw wrappedErr; + throw err; + } + output = adjustUseStrict(output); + // Note: REPL does not respect sourcemaps! + // To properly do that, we'd need to prefix the code we eval -- which comes + // from `diffLines` -- with newlines so that it's at the proper line numbers. + // Then we'd need to ensure each bit of eval-ed code, if there are multiples, + // has the sourcemap appended to it. + // We might also need to integrate with our sourcemap hooks' cache; I'm not sure. + const outputWithoutSourcemapComment = output.replace(sourcemapCommentRe, ''); + const oldOutputWithoutSourcemapComment = state.output.replace(sourcemapCommentRe, ''); + // Use `diff` to check for new JavaScript to execute. + const changes = getDiffLines()(oldOutputWithoutSourcemapComment, outputWithoutSourcemapComment); + if (isCompletion) { + undo(); + } + else { + state.output = output; + // Insert a semicolon to make sure that the code doesn't interact with the next line, + // for example to prevent `2\n+ 2` from producing 4. + // This is safe since the output will not change since we can only get here with successful inputs, + // and adding a semicolon to the end of a successful input won't ever change the output. + state.input = state.input.replace(/([^\n\s])([\n\s]*)$/, (all, lastChar, whitespace) => { + if (lastChar !== ';') + return `${lastChar};${whitespace}`; + return all; + }); + } + let commands = []; + let containsTopLevelAwait = false; + // Build a list of "commands": bits of JS code in the diff that must be executed. + for (const change of changes) { + if (change.added) { + if (enableTopLevelAwait && + service.shouldReplAwait && + change.value.indexOf('await') > -1) { + const processTopLevelAwait = getProcessTopLevelAwait(); + // Newline prevents comments to mess with wrapper + const wrappedResult = processTopLevelAwait(change.value + '\n'); + if (wrappedResult !== null) { + containsTopLevelAwait = true; + commands.push({ + mustAwait: true, + execCommand: () => runInContext(wrappedResult, state.path, context), + }); + continue; + } + } + commands.push({ + execCommand: () => runInContext(change.value, state.path, context), + }); + } + } + // Execute all commands asynchronously if necessary, returning the result or a + // promise of the result. + if (containsTopLevelAwait) { + return { + containsTopLevelAwait, + valuePromise: (async () => { + let value; + for (const command of commands) { + const r = command.execCommand(); + value = command.mustAwait ? await r : r; + } + return value; + })(), + }; + } + else { + return { + containsTopLevelAwait: false, + value: commands.reduce((_, c) => c.execCommand(), undefined), + }; + } +} +/** + * Low-level execution of JS code in context + */ +function runInContext(code, filename, context) { + const script = new vm_1.Script(code, { filename }); + if (context === undefined || context === global) { + return script.runInThisContext(); + } + else { + return script.runInContext(context); + } +} +/** + * Append to the eval instance and return an undo function. + */ +function appendToEvalState(state, input) { + const undoInput = state.input; + const undoVersion = state.version; + const undoOutput = state.output; + const undoLines = state.lines; + state.input += input; + state.lines += lineCount(input); + state.version++; + return function () { + state.input = undoInput; + state.output = undoOutput; + state.version = undoVersion; + state.lines = undoLines; + }; +} +/** + * Count the number of lines. + */ +function lineCount(value) { + let count = 0; + for (const char of value) { + if (char === '\n') { + count++; + } + } + return count; +} +/** + * TS diagnostic codes which are recoverable, meaning that the user likely entered an incomplete line of code + * and should be prompted for the next. For example, starting a multi-line for() loop and not finishing it. + * null value means code is always recoverable. `Set` means code is only recoverable when occurring alongside at least one + * of the other codes. + */ +const RECOVERY_CODES = new Map([ + [1003, null], + [1005, null], + [1109, null], + [1126, null], + [ + 1136, + new Set([1005]), // happens when typing out an object literal or block scope across multiple lines: '{ foo: 123,' + ], + [1160, null], + [1161, null], + [2355, null], + [2391, null], + [ + 7010, + new Set([1005]), // happens when fn signature spread across multiple lines: 'function a(\nb: any\n) {' + ], +]); +/** + * Diagnostic codes raised when using top-level await. + * These are suppressed when top-level await is enabled. + * When it is *not* enabled, these trigger a helpful hint about enabling top-level await. + */ +const topLevelAwaitDiagnosticCodes = [ + 1375, + 1378, + 1431, + 1432, // Top-level 'for await' loops are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher. +]; +/** + * Check if a function can recover gracefully. + */ +function isRecoverable(error) { + return error.diagnosticCodes.every((code) => { + const deps = RECOVERY_CODES.get(code); + return (deps === null || + (deps && error.diagnosticCodes.some((code) => deps.has(code)))); + }); +} +/** + * @internal + * Set properties on `context` before eval-ing [stdin] or [eval] input. + */ +function setupContext(context, module, filenameAndDirname) { + if (filenameAndDirname) { + context.__dirname = '.'; + context.__filename = `[${filenameAndDirname}]`; + } + context.module = module; + context.exports = module.exports; + context.require = __nccwpck_require__(3833).bind(module); +} +exports.setupContext = setupContext; +//# sourceMappingURL=repl.js.map + +/***/ }), + +/***/ 19148: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createResolverFunctions = void 0; +const path_1 = __nccwpck_require__(71017); +/** + * @internal + * In a factory because these are shared across both CompilerHost and LanguageService codepaths + */ +function createResolverFunctions(kwargs) { + const { host, ts, config, cwd, getCanonicalFileName, projectLocalResolveHelper, options, extensions, } = kwargs; + const moduleResolutionCache = ts.createModuleResolutionCache(cwd, getCanonicalFileName, config.options); + const knownInternalFilenames = new Set(); + /** "Buckets" (module directories) whose contents should be marked "internal" */ + const internalBuckets = new Set(); + // Get bucket for a source filename. Bucket is the containing `./node_modules/*/` directory + // For '/project/node_modules/foo/node_modules/bar/lib/index.js' bucket is '/project/node_modules/foo/node_modules/bar/' + // For '/project/node_modules/foo/node_modules/@scope/bar/lib/index.js' bucket is '/project/node_modules/foo/node_modules/@scope/bar/' + const moduleBucketRe = /.*\/node_modules\/(?:@[^\/]+\/)?[^\/]+\//; + function getModuleBucket(filename) { + const find = moduleBucketRe.exec(filename); + if (find) + return find[0]; + return ''; + } + // Mark that this file and all siblings in its bucket should be "internal" + function markBucketOfFilenameInternal(filename) { + internalBuckets.add(getModuleBucket(filename)); + } + function isFileInInternalBucket(filename) { + return internalBuckets.has(getModuleBucket(filename)); + } + function isFileKnownToBeInternal(filename) { + return knownInternalFilenames.has(filename); + } + /** + * If we need to emit JS for a file, force TS to consider it non-external + */ + const fixupResolvedModule = (resolvedModule) => { + const { resolvedFileName } = resolvedModule; + if (resolvedFileName === undefined) + return; + // [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS] + // .ts,.mts,.cts is always switched to internal + // .js is switched on-demand + if (resolvedModule.isExternalLibraryImport && + ((resolvedFileName.endsWith('.ts') && + !resolvedFileName.endsWith('.d.ts')) || + (resolvedFileName.endsWith('.cts') && + !resolvedFileName.endsWith('.d.cts')) || + (resolvedFileName.endsWith('.mts') && + !resolvedFileName.endsWith('.d.mts')) || + isFileKnownToBeInternal(resolvedFileName) || + isFileInInternalBucket(resolvedFileName))) { + resolvedModule.isExternalLibraryImport = false; + } + if (!resolvedModule.isExternalLibraryImport) { + knownInternalFilenames.add(resolvedFileName); + } + }; + /* + * NOTE: + * Older ts versions do not pass `redirectedReference` nor `options`. + * We must pass `redirectedReference` to newer ts versions, but cannot rely on `options`, hence the weird argument name + */ + const resolveModuleNames = (moduleNames, containingFile, reusedNames, redirectedReference, optionsOnlyWithNewerTsVersions, containingSourceFile) => { + return moduleNames.map((moduleName, i) => { + var _a, _b; + const mode = containingSourceFile + ? (_b = (_a = ts).getModeForResolutionAtIndex) === null || _b === void 0 ? void 0 : _b.call(_a, containingSourceFile, i) + : undefined; + let { resolvedModule } = ts.resolveModuleName(moduleName, containingFile, config.options, host, moduleResolutionCache, redirectedReference, mode); + if (!resolvedModule && options.experimentalTsImportSpecifiers) { + const lastDotIndex = moduleName.lastIndexOf('.'); + const ext = lastDotIndex >= 0 ? moduleName.slice(lastDotIndex) : ''; + if (ext) { + const replacements = extensions.tsResolverEquivalents.get(ext); + for (const replacementExt of replacements !== null && replacements !== void 0 ? replacements : []) { + ({ resolvedModule } = ts.resolveModuleName(moduleName.slice(0, -ext.length) + replacementExt, containingFile, config.options, host, moduleResolutionCache, redirectedReference, mode)); + if (resolvedModule) + break; + } + } + } + if (resolvedModule) { + fixupResolvedModule(resolvedModule); + } + return resolvedModule; + }); + }; + // language service never calls this, but TS docs recommend that we implement it + const getResolvedModuleWithFailedLookupLocationsFromCache = (moduleName, containingFile, resolutionMode) => { + const ret = ts.resolveModuleNameFromCache(moduleName, containingFile, moduleResolutionCache, resolutionMode); + if (ret && ret.resolvedModule) { + fixupResolvedModule(ret.resolvedModule); + } + return ret; + }; + const resolveTypeReferenceDirectives = (typeDirectiveNames, containingFile, redirectedReference, options, containingFileMode // new impliedNodeFormat is accepted by compilerHost + ) => { + // Note: seems to be called with empty typeDirectiveNames array for all files. + // TODO consider using `ts.loadWithTypeDirectiveCache` + return typeDirectiveNames.map((typeDirectiveName) => { + // Copy-pasted from TS source: + const nameIsString = typeof typeDirectiveName === 'string'; + const mode = nameIsString + ? undefined + : ts.getModeForFileReference(typeDirectiveName, containingFileMode); + const strName = nameIsString + ? typeDirectiveName + : typeDirectiveName.fileName.toLowerCase(); + let { resolvedTypeReferenceDirective } = ts.resolveTypeReferenceDirective(strName, containingFile, config.options, host, redirectedReference, undefined, mode); + if (typeDirectiveName === 'node' && !resolvedTypeReferenceDirective) { + // Resolve @types/node relative to project first, then __dirname (copy logic from elsewhere / refactor into reusable function) + let typesNodePackageJsonPath; + try { + typesNodePackageJsonPath = projectLocalResolveHelper('@types/node/package.json', true); + } + catch { } // gracefully do nothing when @types/node is not installed for any reason + if (typesNodePackageJsonPath) { + const typeRoots = [(0, path_1.resolve)(typesNodePackageJsonPath, '../..')]; + ({ resolvedTypeReferenceDirective } = + ts.resolveTypeReferenceDirective(typeDirectiveName, containingFile, { + ...config.options, + typeRoots, + }, host, redirectedReference)); + } + } + if (resolvedTypeReferenceDirective) { + fixupResolvedModule(resolvedTypeReferenceDirective); + } + return resolvedTypeReferenceDirective; + }); + }; + return { + resolveModuleNames, + getResolvedModuleWithFailedLookupLocationsFromCache, + resolveTypeReferenceDirectives, + isFileKnownToBeInternal, + markBucketOfFilenameInternal, + }; +} +exports.createResolverFunctions = createResolverFunctions; +//# sourceMappingURL=resolver-functions.js.map + +/***/ }), + +/***/ 14851: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getEmitScriptTarget = exports.getUseDefineForClassFields = exports.getPatternFromSpec = exports.createTsInternals = void 0; +const path_1 = __nccwpck_require__(71017); +const util_1 = __nccwpck_require__(64745); +/** @internal */ +exports.createTsInternals = (0, util_1.cachedLookup)(createTsInternalsUncached); +/** + * Given a reference to the TS compiler, return some TS internal functions that we + * could not or did not want to grab off the `ts` object. + * These have been copy-pasted from TS's source and tweaked as necessary. + * + * NOTE: This factory returns *only* functions which need a reference to the TS + * compiler. Other functions do not need a reference to the TS compiler so are + * exported directly from this file. + */ +function createTsInternalsUncached(_ts) { + const ts = _ts; + /** + * Copied from: + * https://github.com/microsoft/TypeScript/blob/v4.3.2/src/compiler/commandLineParser.ts#L2821-L2846 + */ + function getExtendsConfigPath(extendedConfig, host, basePath, errors, createDiagnostic) { + extendedConfig = (0, util_1.normalizeSlashes)(extendedConfig); + if (isRootedDiskPath(extendedConfig) || + startsWith(extendedConfig, './') || + startsWith(extendedConfig, '../')) { + let extendedConfigPath = getNormalizedAbsolutePath(extendedConfig, basePath); + if (!host.fileExists(extendedConfigPath) && + !endsWith(extendedConfigPath, ts.Extension.Json)) { + extendedConfigPath = `${extendedConfigPath}.json`; + if (!host.fileExists(extendedConfigPath)) { + errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig)); + return undefined; + } + } + return extendedConfigPath; + } + // If the path isn't a rooted or relative path, resolve like a module + const tsGte5_3_0 = (0, util_1.versionGteLt)(ts.version, '5.3.0'); + const resolved = ts.nodeModuleNameResolver(extendedConfig, combinePaths(basePath, 'tsconfig.json'), { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host, + /*cache*/ undefined, + /*projectRefs*/ undefined, + /*conditionsOrIsConfigLookup*/ tsGte5_3_0 ? undefined : true, + /*isConfigLookup*/ tsGte5_3_0 ? true : undefined); + if (resolved.resolvedModule) { + return resolved.resolvedModule.resolvedFileName; + } + errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig)); + return undefined; + } + return { getExtendsConfigPath }; +} +// These functions have alternative implementation to avoid copying too much from TS +function isRootedDiskPath(path) { + return (0, path_1.isAbsolute)(path); +} +function combinePaths(path, ...paths) { + return (0, util_1.normalizeSlashes)((0, path_1.resolve)(path, ...paths.filter((path) => path))); +} +function getNormalizedAbsolutePath(fileName, currentDirectory) { + return (0, util_1.normalizeSlashes)(currentDirectory != null + ? (0, path_1.resolve)(currentDirectory, fileName) + : (0, path_1.resolve)(fileName)); +} +function startsWith(str, prefix) { + return str.lastIndexOf(prefix, 0) === 0; +} +function endsWith(str, suffix) { + const expectedPos = str.length - suffix.length; + return expectedPos >= 0 && str.indexOf(suffix, expectedPos) === expectedPos; +} +// Reserved characters, forces escaping of any non-word (or digit), non-whitespace character. +// It may be inefficient (we could just match (/[-[\]{}()*+?.,\\^$|#\s]/g), but this is future +// proof. +const reservedCharacterPattern = /[^\w\s\/]/g; +/** + * @internal + * See also: getRegularExpressionForWildcard, which seems to do almost the same thing + */ +function getPatternFromSpec(spec, basePath) { + const pattern = spec && getSubPatternFromSpec(spec, basePath, excludeMatcher); + return pattern && `^(${pattern})${'($|/)'}`; +} +exports.getPatternFromSpec = getPatternFromSpec; +function getSubPatternFromSpec(spec, basePath, { singleAsteriskRegexFragment, doubleAsteriskRegexFragment, replaceWildcardCharacter, }) { + let subpattern = ''; + let hasWrittenComponent = false; + const components = getNormalizedPathComponents(spec, basePath); + const lastComponent = last(components); + // getNormalizedPathComponents includes the separator for the root component. + // We need to remove to create our regex correctly. + components[0] = removeTrailingDirectorySeparator(components[0]); + if (isImplicitGlob(lastComponent)) { + components.push('**', '*'); + } + let optionalCount = 0; + for (let component of components) { + if (component === '**') { + subpattern += doubleAsteriskRegexFragment; + } + else { + if (hasWrittenComponent) { + subpattern += directorySeparator; + } + subpattern += component.replace(reservedCharacterPattern, replaceWildcardCharacter); + } + hasWrittenComponent = true; + } + while (optionalCount > 0) { + subpattern += ')?'; + optionalCount--; + } + return subpattern; +} +const directoriesMatcher = { + singleAsteriskRegexFragment: '[^/]*', + /** + * Regex for the ** wildcard. Matches any num of subdirectories. When used for including + * files or directories, does not match subdirectories that start with a . character + */ + doubleAsteriskRegexFragment: `(/[^/.][^/]*)*?`, + replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment), +}; +const excludeMatcher = { + singleAsteriskRegexFragment: '[^/]*', + doubleAsteriskRegexFragment: '(/.+?)?', + replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, excludeMatcher.singleAsteriskRegexFragment), +}; +function getNormalizedPathComponents(path, currentDirectory) { + return reducePathComponents(getPathComponents(path, currentDirectory)); +} +function getPathComponents(path, currentDirectory = '') { + path = combinePaths(currentDirectory, path); + return pathComponents(path, getRootLength(path)); +} +function reducePathComponents(components) { + if (!some(components)) + return []; + const reduced = [components[0]]; + for (let i = 1; i < components.length; i++) { + const component = components[i]; + if (!component) + continue; + if (component === '.') + continue; + if (component === '..') { + if (reduced.length > 1) { + if (reduced[reduced.length - 1] !== '..') { + reduced.pop(); + continue; + } + } + else if (reduced[0]) + continue; + } + reduced.push(component); + } + return reduced; +} +function getRootLength(path) { + const rootLength = getEncodedRootLength(path); + return rootLength < 0 ? ~rootLength : rootLength; +} +function getEncodedRootLength(path) { + if (!path) + return 0; + const ch0 = path.charCodeAt(0); + // POSIX or UNC + if (ch0 === 47 /* CharacterCodes.slash */ || ch0 === 92 /* CharacterCodes.backslash */) { + if (path.charCodeAt(1) !== ch0) + return 1; // POSIX: "/" (or non-normalized "\") + const p1 = path.indexOf(ch0 === 47 /* CharacterCodes.slash */ ? directorySeparator : altDirectorySeparator, 2); + if (p1 < 0) + return path.length; // UNC: "//server" or "\\server" + return p1 + 1; // UNC: "//server/" or "\\server\" + } + // DOS + if (isVolumeCharacter(ch0) && path.charCodeAt(1) === 58 /* CharacterCodes.colon */) { + const ch2 = path.charCodeAt(2); + if (ch2 === 47 /* CharacterCodes.slash */ || ch2 === 92 /* CharacterCodes.backslash */) + return 3; // DOS: "c:/" or "c:\" + if (path.length === 2) + return 2; // DOS: "c:" (but not "c:d") + } + // URL + const schemeEnd = path.indexOf(urlSchemeSeparator); + if (schemeEnd !== -1) { + const authorityStart = schemeEnd + urlSchemeSeparator.length; + const authorityEnd = path.indexOf(directorySeparator, authorityStart); + if (authorityEnd !== -1) { + // URL: "file:///", "file://server/", "file://server/path" + // For local "file" URLs, include the leading DOS volume (if present). + // Per https://www.ietf.org/rfc/rfc1738.txt, a host of "" or "localhost" is a + // special case interpreted as "the machine from which the URL is being interpreted". + const scheme = path.slice(0, schemeEnd); + const authority = path.slice(authorityStart, authorityEnd); + if (scheme === 'file' && + (authority === '' || authority === 'localhost') && + isVolumeCharacter(path.charCodeAt(authorityEnd + 1))) { + const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path, authorityEnd + 2); + if (volumeSeparatorEnd !== -1) { + if (path.charCodeAt(volumeSeparatorEnd) === 47 /* CharacterCodes.slash */) { + // URL: "file:///c:/", "file://localhost/c:/", "file:///c%3a/", "file://localhost/c%3a/" + return ~(volumeSeparatorEnd + 1); + } + if (volumeSeparatorEnd === path.length) { + // URL: "file:///c:", "file://localhost/c:", "file:///c$3a", "file://localhost/c%3a" + // but not "file:///c:d" or "file:///c%3ad" + return ~volumeSeparatorEnd; + } + } + } + return ~(authorityEnd + 1); // URL: "file://server/", "http://server/" + } + return ~path.length; // URL: "file://server", "http://server" + } + // relative + return 0; +} +function ensureTrailingDirectorySeparator(path) { + if (!hasTrailingDirectorySeparator(path)) { + return path + directorySeparator; + } + return path; +} +function hasTrailingDirectorySeparator(path) { + return (path.length > 0 && isAnyDirectorySeparator(path.charCodeAt(path.length - 1))); +} +function isAnyDirectorySeparator(charCode) { + return (charCode === 47 /* CharacterCodes.slash */ || charCode === 92 /* CharacterCodes.backslash */); +} +function removeTrailingDirectorySeparator(path) { + if (hasTrailingDirectorySeparator(path)) { + return path.substr(0, path.length - 1); + } + return path; +} +const directorySeparator = '/'; +const altDirectorySeparator = '\\'; +const urlSchemeSeparator = '://'; +function isVolumeCharacter(charCode) { + return ((charCode >= 97 /* CharacterCodes.a */ && charCode <= 122 /* CharacterCodes.z */) || + (charCode >= 65 /* CharacterCodes.A */ && charCode <= 90 /* CharacterCodes.Z */)); +} +function getFileUrlVolumeSeparatorEnd(url, start) { + const ch0 = url.charCodeAt(start); + if (ch0 === 58 /* CharacterCodes.colon */) + return start + 1; + if (ch0 === 37 /* CharacterCodes.percent */ && + url.charCodeAt(start + 1) === 51 /* CharacterCodes._3 */) { + const ch2 = url.charCodeAt(start + 2); + if (ch2 === 97 /* CharacterCodes.a */ || ch2 === 65 /* CharacterCodes.A */) + return start + 3; + } + return -1; +} +function some(array, predicate) { + if (array) { + if (predicate) { + for (const v of array) { + if (predicate(v)) { + return true; + } + } + } + else { + return array.length > 0; + } + } + return false; +} +function pathComponents(path, rootLength) { + const root = path.substring(0, rootLength); + const rest = path.substring(rootLength).split(directorySeparator); + if (rest.length && !lastOrUndefined(rest)) + rest.pop(); + return [root, ...rest]; +} +function lastOrUndefined(array) { + return array.length === 0 ? undefined : array[array.length - 1]; +} +function last(array) { + // Debug.assert(array.length !== 0); + return array[array.length - 1]; +} +function replaceWildcardCharacter(match, singleAsteriskRegexFragment) { + return match === '*' + ? singleAsteriskRegexFragment + : match === '?' + ? '[^/]' + : '\\' + match; +} +/** + * An "includes" path "foo" is implicitly a glob "foo/** /*" (without the space) if its last component has no extension, + * and does not contain any glob characters itself. + */ +function isImplicitGlob(lastPathComponent) { + return !/[.*?]/.test(lastPathComponent); +} +const ts_ScriptTarget_ES5 = 1; +const ts_ScriptTarget_ES2022 = 9; +const ts_ScriptTarget_ESNext = 99; +const ts_ModuleKind_Node16 = 100; +const ts_ModuleKind_NodeNext = 199; +// https://github.com/microsoft/TypeScript/blob/fc418a2e611c88cf9afa0115ff73490b2397d311/src/compiler/utilities.ts#L8761 +function getUseDefineForClassFields(compilerOptions) { + return compilerOptions.useDefineForClassFields === undefined + ? getEmitScriptTarget(compilerOptions) >= ts_ScriptTarget_ES2022 + : compilerOptions.useDefineForClassFields; +} +exports.getUseDefineForClassFields = getUseDefineForClassFields; +// https://github.com/microsoft/TypeScript/blob/fc418a2e611c88cf9afa0115ff73490b2397d311/src/compiler/utilities.ts#L8556 +function getEmitScriptTarget(compilerOptions) { + var _a; + return ((_a = compilerOptions.target) !== null && _a !== void 0 ? _a : ((compilerOptions.module === ts_ModuleKind_Node16 && ts_ScriptTarget_ES2022) || + (compilerOptions.module === ts_ModuleKind_NodeNext && ts_ScriptTarget_ESNext) || + ts_ScriptTarget_ES5)); +} +exports.getEmitScriptTarget = getEmitScriptTarget; +//# sourceMappingURL=ts-internals.js.map + +/***/ }), + +/***/ 4444: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createTsTranspileModule = void 0; +/** @internal */ +function createTsTranspileModule(ts, transpileOptions) { + const { createProgram, createSourceFile, getDefaultCompilerOptions, getImpliedNodeFormatForFile, fixupCompilerOptions, transpileOptionValueCompilerOptions, getNewLineCharacter, fileExtensionIs, normalizePath, Debug, toPath, getSetExternalModuleIndicator, getEntries, addRange, hasProperty, getEmitScriptTarget, getDirectoryPath, } = ts; + const compilerOptionsDiagnostics = []; + const options = transpileOptions.compilerOptions + ? fixupCompilerOptions(transpileOptions.compilerOptions, compilerOptionsDiagnostics) + : {}; + // mix in default options + const defaultOptions = getDefaultCompilerOptions(); + for (const key in defaultOptions) { + if (hasProperty(defaultOptions, key) && options[key] === undefined) { + options[key] = defaultOptions[key]; + } + } + for (const option of transpileOptionValueCompilerOptions) { + options[option.name] = option.transpileOptionValue; + } + // transpileModule does not write anything to disk so there is no need to verify that there are no conflicts between input and output paths. + options.suppressOutputPathCheck = true; + // Filename can be non-ts file. + options.allowNonTsExtensions = true; + const newLine = getNewLineCharacter(options); + // Create a compilerHost object to allow the compiler to read and write files + const compilerHost = { + getSourceFile: (fileName) => fileName === normalizePath(inputFileName) ? sourceFile : undefined, + writeFile: (name, text) => { + if (fileExtensionIs(name, '.map')) { + Debug.assertEqual(sourceMapText, undefined, 'Unexpected multiple source map outputs, file:', name); + sourceMapText = text; + } + else { + Debug.assertEqual(outputText, undefined, 'Unexpected multiple outputs, file:', name); + outputText = text; + } + }, + getDefaultLibFileName: () => 'lib.d.ts', + useCaseSensitiveFileNames: () => true, + getCanonicalFileName: (fileName) => fileName, + getCurrentDirectory: () => '', + getNewLine: () => newLine, + fileExists: (fileName) => fileName === inputFileName || fileName === packageJsonFileName, + readFile: (fileName) => fileName === packageJsonFileName ? `{"type": "${_packageJsonType}"}` : '', + directoryExists: () => true, + getDirectories: () => [], + }; + let inputFileName; + let packageJsonFileName; + let _packageJsonType; + let sourceFile; + let outputText; + let sourceMapText; + return transpileModule; + function transpileModule(input, transpileOptions2, packageJsonType = 'commonjs') { + // if jsx is specified then treat file as .tsx + inputFileName = + transpileOptions2.fileName || + (transpileOptions.compilerOptions && transpileOptions.compilerOptions.jsx + ? 'module.tsx' + : 'module.ts'); + packageJsonFileName = getDirectoryPath(inputFileName) + '/package.json'; + _packageJsonType = packageJsonType; + sourceFile = createSourceFile(inputFileName, input, { + languageVersion: getEmitScriptTarget(options), + impliedNodeFormat: getImpliedNodeFormatForFile(toPath(inputFileName, '', compilerHost.getCanonicalFileName), + /*cache*/ undefined, compilerHost, options), + setExternalModuleIndicator: getSetExternalModuleIndicator(options), + }); + if (transpileOptions2.moduleName) { + sourceFile.moduleName = transpileOptions2.moduleName; + } + if (transpileOptions2.renamedDependencies) { + sourceFile.renamedDependencies = new Map(getEntries(transpileOptions2.renamedDependencies)); + } + // Output + outputText = undefined; + sourceMapText = undefined; + const program = createProgram([inputFileName], options, compilerHost); + const diagnostics = compilerOptionsDiagnostics.slice(); + if (transpileOptions.reportDiagnostics) { + addRange( + /*to*/ diagnostics, + /*from*/ program.getSyntacticDiagnostics(sourceFile)); + addRange(/*to*/ diagnostics, /*from*/ program.getOptionsDiagnostics()); + } + // Emit + program.emit( + /*targetSourceFile*/ undefined, + /*writeFile*/ undefined, + /*cancellationToken*/ undefined, + /*emitOnlyDtsFiles*/ undefined, transpileOptions.transformers); + if (outputText === undefined) + return Debug.fail('Output generation failed'); + return { outputText, diagnostics, sourceMapText }; + } +} +exports.createTsTranspileModule = createTsTranspileModule; +//# sourceMappingURL=ts-transpile-module.js.map + +/***/ }), + +/***/ 91533: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getDefaultTsconfigJsonForNodeVersion = void 0; +const nodeMajor = parseInt(process.versions.node.split('.')[0], 10); +/** + * return parsed JSON of the bundled @tsconfig/bases config appropriate for the + * running version of nodejs + * @internal + */ +function getDefaultTsconfigJsonForNodeVersion(ts) { + const tsInternal = ts; + if (nodeMajor >= 16) { + const config = __nccwpck_require__(39777); + if (configCompatible(config)) + return config; + } + if (nodeMajor >= 14) { + const config = __nccwpck_require__(83754); + if (configCompatible(config)) + return config; + } + if (nodeMajor >= 12) { + const config = __nccwpck_require__(56049); + if (configCompatible(config)) + return config; + } + return __nccwpck_require__(78250); + // Verify that tsconfig target and lib options are compatible with TypeScript compiler + function configCompatible(config) { + return (typeof ts.ScriptTarget[config.compilerOptions.target.toUpperCase()] === 'number' && + tsInternal.libs && + config.compilerOptions.lib.every((lib) => tsInternal.libs.includes(lib))); + } +} +exports.getDefaultTsconfigJsonForNodeVersion = getDefaultTsconfigJsonForNodeVersion; +//# sourceMappingURL=tsconfigs.js.map + +/***/ }), + +/***/ 64745: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +var _a; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.versionGteLt = exports.once = exports.getBasePathForProjectLocalDependencyResolution = exports.createProjectLocalResolveHelper = exports.attemptRequireWithV8CompileCache = exports.cachedLookup = exports.hasOwnProperty = exports.normalizeSlashes = exports.parse = exports.split = exports.assign = exports.yn = exports.createRequire = void 0; +const module_1 = __nccwpck_require__(98188); +const ynModule = __nccwpck_require__(79647); +const path_1 = __nccwpck_require__(71017); +/** @internal */ +exports.createRequire = (_a = module_1.createRequire !== null && module_1.createRequire !== void 0 ? module_1.createRequire : module_1.createRequireFromPath) !== null && _a !== void 0 ? _a : __nccwpck_require__(45830); +/** + * Wrapper around yn module that returns `undefined` instead of `null`. + * This is implemented by yn v4, but we're staying on v3 to avoid v4's node 10 requirement. + * @internal + */ +function yn(value) { + var _a; + return (_a = ynModule(value)) !== null && _a !== void 0 ? _a : undefined; +} +exports.yn = yn; +/** + * Like `Object.assign`, but ignores `undefined` properties. + * + * @internal + */ +function assign(initialValue, ...sources) { + for (const source of sources) { + for (const key of Object.keys(source)) { + const value = source[key]; + if (value !== undefined) + initialValue[key] = value; + } + } + return initialValue; +} +exports.assign = assign; +/** + * Split a string array of values + * and remove empty strings from the resulting array. + * @internal + */ +function split(value) { + return typeof value === 'string' + ? value.split(/ *, */g).filter((v) => v !== '') + : undefined; +} +exports.split = split; +/** + * Parse a string as JSON. + * @internal + */ +function parse(value) { + return typeof value === 'string' ? JSON.parse(value) : undefined; +} +exports.parse = parse; +const directorySeparator = '/'; +const backslashRegExp = /\\/g; +/** + * Replace backslashes with forward slashes. + * @internal + */ +function normalizeSlashes(value) { + return value.replace(backslashRegExp, directorySeparator); +} +exports.normalizeSlashes = normalizeSlashes; +/** + * Safe `hasOwnProperty` + * @internal + */ +function hasOwnProperty(object, property) { + return Object.prototype.hasOwnProperty.call(object, property); +} +exports.hasOwnProperty = hasOwnProperty; +/** + * Cached fs operation wrapper. + */ +function cachedLookup(fn) { + const cache = new Map(); + return (arg) => { + if (!cache.has(arg)) { + const v = fn(arg); + cache.set(arg, v); + return v; + } + return cache.get(arg); + }; +} +exports.cachedLookup = cachedLookup; +/** + * @internal + * Require something with v8-compile-cache, which should make subsequent requires faster. + * Do lots of error-handling so that, worst case, we require without the cache, and users are not blocked. + */ +function attemptRequireWithV8CompileCache(requireFn, specifier) { + try { + const v8CC = (__nccwpck_require__(70416).install)(); + try { + return requireFn(specifier); + } + finally { + v8CC === null || v8CC === void 0 ? void 0 : v8CC.uninstall(); + } + } + catch (e) { + return requireFn(specifier); + } +} +exports.attemptRequireWithV8CompileCache = attemptRequireWithV8CompileCache; +/** + * Helper to discover dependencies relative to a user's project, optionally + * falling back to relative to ts-node. This supports global installations of + * ts-node, for example where someone does `#!/usr/bin/env -S ts-node --swc` and + * we need to fallback to a global install of @swc/core + * @internal + */ +function createProjectLocalResolveHelper(localDirectory) { + return function projectLocalResolveHelper(specifier, fallbackToTsNodeRelative) { + return require.resolve(specifier, { + paths: fallbackToTsNodeRelative + ? [localDirectory, __dirname] + : [localDirectory], + }); + }; +} +exports.createProjectLocalResolveHelper = createProjectLocalResolveHelper; +/** + * Used as a reminder of all the factors we must consider when finding project-local dependencies and when a config file + * on disk may or may not exist. + * @internal + */ +function getBasePathForProjectLocalDependencyResolution(configFilePath, projectSearchDirOption, projectOption, cwdOption) { + var _a; + if (configFilePath != null) + return (0, path_1.dirname)(configFilePath); + return (_a = projectSearchDirOption !== null && projectSearchDirOption !== void 0 ? projectSearchDirOption : projectOption) !== null && _a !== void 0 ? _a : cwdOption; + // TODO technically breaks if projectOption is path to a file, not a directory, + // and we attempt to resolve relative specifiers. By the time we resolve relative specifiers, + // should have configFilePath, so not reach this codepath. +} +exports.getBasePathForProjectLocalDependencyResolution = getBasePathForProjectLocalDependencyResolution; +/** @internal */ +function once(fn) { + let value; + let ran = false; + function onceFn(...args) { + if (ran) + return value; + value = fn(...args); + ran = true; + return value; + } + return onceFn; +} +exports.once = once; +/** @internal */ +function versionGteLt(version, gteRequirement, ltRequirement) { + const [major, minor, patch, extra] = parse(version); + const [gteMajor, gteMinor, gtePatch] = parse(gteRequirement); + const isGte = major > gteMajor || + (major === gteMajor && + (minor > gteMinor || (minor === gteMinor && patch >= gtePatch))); + let isLt = true; + if (ltRequirement) { + const [ltMajor, ltMinor, ltPatch] = parse(ltRequirement); + isLt = + major < ltMajor || + (major === ltMajor && + (minor < ltMinor || (minor === ltMinor && patch < ltPatch))); + } + return isGte && isLt; + function parse(requirement) { + return requirement.split(/[\.-]/).map((s) => parseInt(s, 10)); + } +} +exports.versionGteLt = versionGteLt; +//# sourceMappingURL=util.js.map + +/***/ }), + +/***/ 12077: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.configLoader = exports.loadConfig = void 0; +var TsConfigLoader2 = __nccwpck_require__(5214); +var path = __nccwpck_require__(71017); +function loadConfig(cwd) { + if (cwd === void 0) { cwd = process.cwd(); } + return configLoader({ cwd: cwd }); +} +exports.loadConfig = loadConfig; +function configLoader(_a) { + var cwd = _a.cwd, explicitParams = _a.explicitParams, _b = _a.tsConfigLoader, tsConfigLoader = _b === void 0 ? TsConfigLoader2.tsConfigLoader : _b; + if (explicitParams) { + var absoluteBaseUrl = path.isAbsolute(explicitParams.baseUrl) + ? explicitParams.baseUrl + : path.join(cwd, explicitParams.baseUrl); + return { + resultType: "success", + configFileAbsolutePath: "", + baseUrl: explicitParams.baseUrl, + absoluteBaseUrl: absoluteBaseUrl, + paths: explicitParams.paths, + mainFields: explicitParams.mainFields, + addMatchAll: explicitParams.addMatchAll, + }; + } + // Load tsconfig and create path matching function + var loadResult = tsConfigLoader({ + cwd: cwd, + getEnv: function (key) { return process.env[key]; }, + }); + if (!loadResult.tsConfigPath) { + return { + resultType: "failed", + message: "Couldn't find tsconfig.json", + }; + } + return { + resultType: "success", + configFileAbsolutePath: loadResult.tsConfigPath, + baseUrl: loadResult.baseUrl, + absoluteBaseUrl: path.resolve(path.dirname(loadResult.tsConfigPath), loadResult.baseUrl || ""), + paths: loadResult.paths || {}, + addMatchAll: loadResult.baseUrl !== undefined, + }; +} +exports.configLoader = configLoader; +//# sourceMappingURL=config-loader.js.map + +/***/ }), + +/***/ 55775: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.removeExtension = exports.fileExistsAsync = exports.readJsonFromDiskAsync = exports.readJsonFromDiskSync = exports.fileExistsSync = void 0; +var fs = __nccwpck_require__(57147); +function fileExistsSync(path) { + // If the file doesn't exist, avoid throwing an exception over the native barrier for every miss + if (!fs.existsSync(path)) { + return false; + } + try { + var stats = fs.statSync(path); + return stats.isFile(); + } + catch (err) { + // If error, assume file did not exist + return false; + } +} +exports.fileExistsSync = fileExistsSync; +/** + * Reads package.json from disk + * + * @param file Path to package.json + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function readJsonFromDiskSync(packageJsonPath) { + if (!fs.existsSync(packageJsonPath)) { + return undefined; + } + // eslint-disable-next-line @typescript-eslint/no-require-imports + return require(packageJsonPath); +} +exports.readJsonFromDiskSync = readJsonFromDiskSync; +function readJsonFromDiskAsync(path, +// eslint-disable-next-line @typescript-eslint/no-explicit-any +callback) { + fs.readFile(path, "utf8", function (err, result) { + // If error, assume file did not exist + if (err || !result) { + return callback(); + } + var json = JSON.parse(result); + return callback(undefined, json); + }); +} +exports.readJsonFromDiskAsync = readJsonFromDiskAsync; +function fileExistsAsync(path2, callback2) { + fs.stat(path2, function (err, stats) { + if (err) { + // If error assume file does not exist + return callback2(undefined, false); + } + callback2(undefined, stats ? stats.isFile() : false); + }); +} +exports.fileExistsAsync = fileExistsAsync; +function removeExtension(path) { + return path.substring(0, path.lastIndexOf(".")) || path; +} +exports.removeExtension = removeExtension; +//# sourceMappingURL=filesystem.js.map + +/***/ }), + +/***/ 56143: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.loadConfig = exports.register = exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = exports.matchFromAbsolutePaths = exports.createMatchPath = void 0; +// register is used from register.js in root dir +var match_path_sync_1 = __nccwpck_require__(21810); +Object.defineProperty(exports, "createMatchPath", ({ enumerable: true, get: function () { return match_path_sync_1.createMatchPath; } })); +Object.defineProperty(exports, "matchFromAbsolutePaths", ({ enumerable: true, get: function () { return match_path_sync_1.matchFromAbsolutePaths; } })); +var match_path_async_1 = __nccwpck_require__(74479); +Object.defineProperty(exports, "createMatchPathAsync", ({ enumerable: true, get: function () { return match_path_async_1.createMatchPathAsync; } })); +Object.defineProperty(exports, "matchFromAbsolutePathsAsync", ({ enumerable: true, get: function () { return match_path_async_1.matchFromAbsolutePathsAsync; } })); +var register_1 = __nccwpck_require__(25174); +Object.defineProperty(exports, "register", ({ enumerable: true, get: function () { return register_1.register; } })); +var config_loader_1 = __nccwpck_require__(12077); +Object.defineProperty(exports, "loadConfig", ({ enumerable: true, get: function () { return config_loader_1.loadConfig; } })); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 25121: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getAbsoluteMappingEntries = void 0; +var path = __nccwpck_require__(71017); +/** + * Converts an absolute baseUrl and paths to an array of absolute mapping entries. + * The array is sorted by longest prefix. + * Having an array with entries allows us to keep a sorting order rather than + * sort by keys each time we use the mappings. + * + * @param absoluteBaseUrl + * @param paths + * @param addMatchAll + */ +function getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll) { + // Resolve all paths to absolute form once here, and sort them by + // longest prefix once here, this saves time on each request later. + // We need to put them in an array to preserve the sorting order. + var sortedKeys = sortByLongestPrefix(Object.keys(paths)); + var absolutePaths = []; + for (var _i = 0, sortedKeys_1 = sortedKeys; _i < sortedKeys_1.length; _i++) { + var key = sortedKeys_1[_i]; + absolutePaths.push({ + pattern: key, + paths: paths[key].map(function (pathToResolve) { + return path.resolve(absoluteBaseUrl, pathToResolve); + }), + }); + } + // If there is no match-all path specified in the paths section of tsconfig, then try to match + // all paths relative to baseUrl, this is how typescript works. + if (!paths["*"] && addMatchAll) { + absolutePaths.push({ + pattern: "*", + paths: ["".concat(absoluteBaseUrl.replace(/\/$/, ""), "/*")], + }); + } + return absolutePaths; +} +exports.getAbsoluteMappingEntries = getAbsoluteMappingEntries; +/** + * Sort path patterns. + * If a module name can be matched with multiple patterns then pattern with the longest prefix will be picked. + */ +function sortByLongestPrefix(arr) { + return arr + .concat() + .sort(function (a, b) { return getPrefixLength(b) - getPrefixLength(a); }); +} +function getPrefixLength(pattern) { + var prefixLength = pattern.indexOf("*"); + return pattern.substr(0, prefixLength).length; +} +//# sourceMappingURL=mapping-entry.js.map + +/***/ }), + +/***/ 74479: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = void 0; +var path = __nccwpck_require__(71017); +var TryPath = __nccwpck_require__(44231); +var MappingEntry = __nccwpck_require__(25121); +var Filesystem = __nccwpck_require__(55775); +/** + * See the sync version for docs. + */ +function createMatchPathAsync(absoluteBaseUrl, paths, mainFields, addMatchAll) { + if (mainFields === void 0) { mainFields = ["main"]; } + if (addMatchAll === void 0) { addMatchAll = true; } + var absolutePaths = MappingEntry.getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll); + return function (requestedModule, readJson, fileExists, extensions, callback) { + return matchFromAbsolutePathsAsync(absolutePaths, requestedModule, readJson, fileExists, extensions, callback, mainFields); + }; +} +exports.createMatchPathAsync = createMatchPathAsync; +/** + * See the sync version for docs. + */ +function matchFromAbsolutePathsAsync(absolutePathMappings, requestedModule, readJson, fileExists, extensions, callback, mainFields) { + if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskAsync; } + if (fileExists === void 0) { fileExists = Filesystem.fileExistsAsync; } + if (extensions === void 0) { extensions = Object.keys(require.extensions); } + if (mainFields === void 0) { mainFields = ["main"]; } + var tryPaths = TryPath.getPathsToTry(extensions, absolutePathMappings, requestedModule); + if (!tryPaths) { + return callback(); + } + findFirstExistingPath(tryPaths, readJson, fileExists, callback, 0, mainFields); +} +exports.matchFromAbsolutePathsAsync = matchFromAbsolutePathsAsync; +function findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExistsAsync, doneCallback, index) { + if (index === void 0) { index = 0; } + if (index >= mainFields.length) { + return doneCallback(undefined, undefined); + } + var tryNext = function () { + return findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExistsAsync, doneCallback, index + 1); + }; + var mainFieldSelector = mainFields[index]; + var mainFieldMapping = typeof mainFieldSelector === "string" + ? packageJson[mainFieldSelector] + : mainFieldSelector.reduce(function (obj, key) { return obj[key]; }, packageJson); + if (typeof mainFieldMapping !== "string") { + // Skip mappings that are not pointers to replacement files + return tryNext(); + } + var mappedFilePath = path.join(path.dirname(packageJsonPath), mainFieldMapping); + fileExistsAsync(mappedFilePath, function (err, exists) { + if (err) { + return doneCallback(err); + } + if (exists) { + return doneCallback(undefined, mappedFilePath); + } + return tryNext(); + }); +} +// Recursive loop to probe for physical files +function findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index, mainFields) { + if (index === void 0) { index = 0; } + if (mainFields === void 0) { mainFields = ["main"]; } + var tryPath = tryPaths[index]; + if (tryPath.type === "file" || + tryPath.type === "extension" || + tryPath.type === "index") { + fileExists(tryPath.path, function (err, exists) { + if (err) { + return doneCallback(err); + } + if (exists) { + return doneCallback(undefined, TryPath.getStrippedPath(tryPath)); + } + if (index === tryPaths.length - 1) { + return doneCallback(); + } + // Continue with the next path + return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields); + }); + } + else if (tryPath.type === "package") { + readJson(tryPath.path, function (err, packageJson) { + if (err) { + return doneCallback(err); + } + if (packageJson) { + return findFirstExistingMainFieldMappedFile(packageJson, mainFields, tryPath.path, fileExists, function (mainFieldErr, mainFieldMappedFile) { + if (mainFieldErr) { + return doneCallback(mainFieldErr); + } + if (mainFieldMappedFile) { + return doneCallback(undefined, mainFieldMappedFile); + } + // No field in package json was a valid option. Continue with the next path. + return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields); + }); + } + // This is async code, we need to return unconditionally, otherwise the code still falls + // through and keeps recursing. While this might work in general, libraries that use neo-async + // like Webpack will actually not allow you to call the same callback twice. + // + // An example of where this caused issues: + // https://github.com/dividab/tsconfig-paths-webpack-plugin/issues/11 + // + // Continue with the next path + return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields); + }); + } + else { + TryPath.exhaustiveTypeException(tryPath.type); + } +} +//# sourceMappingURL=match-path-async.js.map + +/***/ }), + +/***/ 21810: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.matchFromAbsolutePaths = exports.createMatchPath = void 0; +var path = __nccwpck_require__(71017); +var Filesystem = __nccwpck_require__(55775); +var MappingEntry = __nccwpck_require__(25121); +var TryPath = __nccwpck_require__(44231); +/** + * Creates a function that can resolve paths according to tsconfig paths property. + * + * @param absoluteBaseUrl Absolute version of baseUrl as specified in tsconfig. + * @param paths The paths as specified in tsconfig. + * @param mainFields A list of package.json field names to try when resolving module files. Select a nested field using an array of field names. + * @param addMatchAll Add a match-all "*" rule if none is present + * @returns a function that can resolve paths. + */ +function createMatchPath(absoluteBaseUrl, paths, mainFields, addMatchAll) { + if (mainFields === void 0) { mainFields = ["main"]; } + if (addMatchAll === void 0) { addMatchAll = true; } + var absolutePaths = MappingEntry.getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll); + return function (requestedModule, readJson, fileExists, extensions) { + return matchFromAbsolutePaths(absolutePaths, requestedModule, readJson, fileExists, extensions, mainFields); + }; +} +exports.createMatchPath = createMatchPath; +/** + * Finds a path from tsconfig that matches a module load request. + * + * @param absolutePathMappings The paths to try as specified in tsconfig but resolved to absolute form. + * @param requestedModule The required module name. + * @param readJson Function that can read json from a path (useful for testing). + * @param fileExists Function that checks for existence of a file at a path (useful for testing). + * @param extensions File extensions to probe for (useful for testing). + * @param mainFields A list of package.json field names to try when resolving module files. Select a nested field using an array of field names. + * @returns the found path, or undefined if no path was found. + */ +function matchFromAbsolutePaths(absolutePathMappings, requestedModule, readJson, fileExists, extensions, mainFields) { + if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskSync; } + if (fileExists === void 0) { fileExists = Filesystem.fileExistsSync; } + if (extensions === void 0) { extensions = Object.keys(require.extensions); } + if (mainFields === void 0) { mainFields = ["main"]; } + var tryPaths = TryPath.getPathsToTry(extensions, absolutePathMappings, requestedModule); + if (!tryPaths) { + return undefined; + } + return findFirstExistingPath(tryPaths, readJson, fileExists, mainFields); +} +exports.matchFromAbsolutePaths = matchFromAbsolutePaths; +function findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExists) { + for (var index = 0; index < mainFields.length; index++) { + var mainFieldSelector = mainFields[index]; + var candidateMapping = typeof mainFieldSelector === "string" + ? packageJson[mainFieldSelector] + : mainFieldSelector.reduce(function (obj, key) { return obj[key]; }, packageJson); + if (candidateMapping && typeof candidateMapping === "string") { + var candidateFilePath = path.join(path.dirname(packageJsonPath), candidateMapping); + if (fileExists(candidateFilePath)) { + return candidateFilePath; + } + } + } + return undefined; +} +function findFirstExistingPath(tryPaths, readJson, fileExists, mainFields) { + if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskSync; } + if (mainFields === void 0) { mainFields = ["main"]; } + for (var _i = 0, tryPaths_1 = tryPaths; _i < tryPaths_1.length; _i++) { + var tryPath = tryPaths_1[_i]; + if (tryPath.type === "file" || + tryPath.type === "extension" || + tryPath.type === "index") { + if (fileExists(tryPath.path)) { + return TryPath.getStrippedPath(tryPath); + } + } + else if (tryPath.type === "package") { + var packageJson = readJson(tryPath.path); + if (packageJson) { + var mainFieldMappedFile = findFirstExistingMainFieldMappedFile(packageJson, mainFields, tryPath.path, fileExists); + if (mainFieldMappedFile) { + return mainFieldMappedFile; + } + } + } + else { + TryPath.exhaustiveTypeException(tryPath.type); + } + } + return undefined; +} +//# sourceMappingURL=match-path-sync.js.map + +/***/ }), + +/***/ 25174: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.register = void 0; +var match_path_sync_1 = __nccwpck_require__(21810); +var config_loader_1 = __nccwpck_require__(12077); +var noOp = function () { return void 0; }; +function getCoreModules(builtinModules) { + builtinModules = builtinModules || [ + "assert", + "buffer", + "child_process", + "cluster", + "crypto", + "dgram", + "dns", + "domain", + "events", + "fs", + "http", + "https", + "net", + "os", + "path", + "punycode", + "querystring", + "readline", + "stream", + "string_decoder", + "tls", + "tty", + "url", + "util", + "v8", + "vm", + "zlib", + ]; + var coreModules = {}; + for (var _i = 0, builtinModules_1 = builtinModules; _i < builtinModules_1.length; _i++) { + var module_1 = builtinModules_1[_i]; + coreModules[module_1] = true; + } + return coreModules; +} +/** + * Installs a custom module load function that can adhere to paths in tsconfig. + * Returns a function to undo paths registration. + */ +function register(params) { + var cwd; + var explicitParams; + if (params) { + cwd = params.cwd; + if (params.baseUrl || params.paths) { + explicitParams = params; + } + } + else { + // eslint-disable-next-line + var minimist = __nccwpck_require__(35871); + var argv = minimist(process.argv.slice(2), { + // eslint-disable-next-line id-denylist + string: ["project"], + alias: { + project: ["P"], + }, + }); + cwd = argv.project; + } + var configLoaderResult = (0, config_loader_1.configLoader)({ + cwd: cwd !== null && cwd !== void 0 ? cwd : process.cwd(), + explicitParams: explicitParams, + }); + if (configLoaderResult.resultType === "failed") { + console.warn("".concat(configLoaderResult.message, ". tsconfig-paths will be skipped")); + return noOp; + } + var matchPath = (0, match_path_sync_1.createMatchPath)(configLoaderResult.absoluteBaseUrl, configLoaderResult.paths, configLoaderResult.mainFields, configLoaderResult.addMatchAll); + // Patch node's module loading + // eslint-disable-next-line @typescript-eslint/no-require-imports,@typescript-eslint/no-var-requires + var Module = __nccwpck_require__(98188); + // eslint-disable-next-line no-underscore-dangle + var originalResolveFilename = Module._resolveFilename; + var coreModules = getCoreModules(Module.builtinModules); + // eslint-disable-next-line @typescript-eslint/no-explicit-any,no-underscore-dangle + Module._resolveFilename = function (request, _parent) { + var isCoreModule = coreModules.hasOwnProperty(request); + if (!isCoreModule) { + var found = matchPath(request); + if (found) { + var modifiedArguments = __spreadArray([found], [].slice.call(arguments, 1), true); // Passes all arguments. Even those that is not specified above. + return originalResolveFilename.apply(this, modifiedArguments); + } + } + return originalResolveFilename.apply(this, arguments); + }; + return function () { + // Return node's module loading to original state. + // eslint-disable-next-line no-underscore-dangle + Module._resolveFilename = originalResolveFilename; + }; +} +exports.register = register; +//# sourceMappingURL=register.js.map + +/***/ }), + +/***/ 44231: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.exhaustiveTypeException = exports.getStrippedPath = exports.getPathsToTry = void 0; +var path = __nccwpck_require__(71017); +var path_1 = __nccwpck_require__(71017); +var filesystem_1 = __nccwpck_require__(55775); +/** + * Builds a list of all physical paths to try by: + * 1. Check for file named exactly as request. + * 2. Check for files named as request ending in any of the extensions. + * 3. Check for file specified in package.json's main property. + * 4. Check for files named as request ending in "index" with any of the extensions. + */ +function getPathsToTry(extensions, absolutePathMappings, requestedModule) { + if (!absolutePathMappings || !requestedModule || requestedModule[0] === ".") { + return undefined; + } + var pathsToTry = []; + for (var _i = 0, absolutePathMappings_1 = absolutePathMappings; _i < absolutePathMappings_1.length; _i++) { + var entry = absolutePathMappings_1[_i]; + var starMatch = entry.pattern === requestedModule + ? "" + : matchStar(entry.pattern, requestedModule); + if (starMatch !== undefined) { + var _loop_1 = function (physicalPathPattern) { + var physicalPath = physicalPathPattern.replace("*", starMatch); + pathsToTry.push({ type: "file", path: physicalPath }); + pathsToTry.push.apply(pathsToTry, extensions.map(function (e) { return ({ type: "extension", path: physicalPath + e }); })); + pathsToTry.push({ + type: "package", + path: path.join(physicalPath, "/package.json"), + }); + var indexPath = path.join(physicalPath, "/index"); + pathsToTry.push.apply(pathsToTry, extensions.map(function (e) { return ({ type: "index", path: indexPath + e }); })); + }; + for (var _a = 0, _b = entry.paths; _a < _b.length; _a++) { + var physicalPathPattern = _b[_a]; + _loop_1(physicalPathPattern); + } + } + } + return pathsToTry.length === 0 ? undefined : pathsToTry; +} +exports.getPathsToTry = getPathsToTry; +// Not sure why we don't just return the full found path? +function getStrippedPath(tryPath) { + return tryPath.type === "index" + ? (0, path_1.dirname)(tryPath.path) + : tryPath.type === "file" + ? tryPath.path + : tryPath.type === "extension" + ? (0, filesystem_1.removeExtension)(tryPath.path) + : tryPath.type === "package" + ? tryPath.path + : exhaustiveTypeException(tryPath.type); +} +exports.getStrippedPath = getStrippedPath; +function exhaustiveTypeException(check) { + throw new Error("Unknown type ".concat(check)); +} +exports.exhaustiveTypeException = exhaustiveTypeException; +/** + * Matches pattern with a single star against search. + * Star must match at least one character to be considered a match. + * + * @param patttern for example "foo*" + * @param search for example "fooawesomebar" + * @returns the part of search that * matches, or undefined if no match. + */ +function matchStar(pattern, search) { + if (search.length < pattern.length) { + return undefined; + } + if (pattern === "*") { + return search; + } + var star = pattern.indexOf("*"); + if (star === -1) { + return undefined; + } + var part1 = pattern.substring(0, star); + var part2 = pattern.substring(star + 1); + if (search.substr(0, star) !== part1) { + return undefined; + } + if (search.substr(search.length - part2.length) !== part2) { + return undefined; + } + return search.substr(star, search.length - part2.length); +} +//# sourceMappingURL=try-path.js.map + +/***/ }), + +/***/ 5214: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.loadTsconfig = exports.walkForTsConfig = exports.tsConfigLoader = void 0; +var path = __nccwpck_require__(71017); +var fs = __nccwpck_require__(57147); +// eslint-disable-next-line @typescript-eslint/no-require-imports +var JSON5 = __nccwpck_require__(86904); +// eslint-disable-next-line @typescript-eslint/no-require-imports +var StripBom = __nccwpck_require__(55831); +function tsConfigLoader(_a) { + var getEnv = _a.getEnv, cwd = _a.cwd, _b = _a.loadSync, loadSync = _b === void 0 ? loadSyncDefault : _b; + var TS_NODE_PROJECT = getEnv("TS_NODE_PROJECT"); + var TS_NODE_BASEURL = getEnv("TS_NODE_BASEURL"); + // tsconfig.loadSync handles if TS_NODE_PROJECT is a file or directory + // and also overrides baseURL if TS_NODE_BASEURL is available. + var loadResult = loadSync(cwd, TS_NODE_PROJECT, TS_NODE_BASEURL); + return loadResult; +} +exports.tsConfigLoader = tsConfigLoader; +function loadSyncDefault(cwd, filename, baseUrl) { + // Tsconfig.loadSync uses path.resolve. This is why we can use an absolute path as filename + var configPath = resolveConfigPath(cwd, filename); + if (!configPath) { + return { + tsConfigPath: undefined, + baseUrl: undefined, + paths: undefined, + }; + } + var config = loadTsconfig(configPath); + return { + tsConfigPath: configPath, + baseUrl: baseUrl || + (config && config.compilerOptions && config.compilerOptions.baseUrl), + paths: config && config.compilerOptions && config.compilerOptions.paths, + }; +} +function resolveConfigPath(cwd, filename) { + if (filename) { + var absolutePath = fs.lstatSync(filename).isDirectory() + ? path.resolve(filename, "./tsconfig.json") + : path.resolve(cwd, filename); + return absolutePath; + } + if (fs.statSync(cwd).isFile()) { + return path.resolve(cwd); + } + var configAbsolutePath = walkForTsConfig(cwd); + return configAbsolutePath ? path.resolve(configAbsolutePath) : undefined; +} +function walkForTsConfig(directory, readdirSync) { + if (readdirSync === void 0) { readdirSync = fs.readdirSync; } + var files = readdirSync(directory); + var filesToCheck = ["tsconfig.json", "jsconfig.json"]; + for (var _i = 0, filesToCheck_1 = filesToCheck; _i < filesToCheck_1.length; _i++) { + var fileToCheck = filesToCheck_1[_i]; + if (files.indexOf(fileToCheck) !== -1) { + return path.join(directory, fileToCheck); + } + } + var parentDirectory = path.dirname(directory); + // If we reached the top + if (directory === parentDirectory) { + return undefined; + } + return walkForTsConfig(parentDirectory, readdirSync); +} +exports.walkForTsConfig = walkForTsConfig; +function loadTsconfig(configFilePath, +// eslint-disable-next-line no-shadow +existsSync, readFileSync) { + if (existsSync === void 0) { existsSync = fs.existsSync; } + if (readFileSync === void 0) { readFileSync = function (filename) { + return fs.readFileSync(filename, "utf8"); + }; } + if (!existsSync(configFilePath)) { + return undefined; + } + var configString = readFileSync(configFilePath); + var cleanedJson = StripBom(configString); + var config; + try { + config = JSON5.parse(cleanedJson); + } + catch (e) { + throw new Error("".concat(configFilePath, " is malformed ").concat(e.message)); + } + var extendedConfig = config.extends; + if (extendedConfig) { + var base = void 0; + if (Array.isArray(extendedConfig)) { + base = extendedConfig.reduce(function (currBase, extendedConfigElement) { + return mergeTsconfigs(currBase, loadTsconfigFromExtends(configFilePath, extendedConfigElement, existsSync, readFileSync)); + }, {}); + } + else { + base = loadTsconfigFromExtends(configFilePath, extendedConfig, existsSync, readFileSync); + } + return mergeTsconfigs(base, config); + } + return config; +} +exports.loadTsconfig = loadTsconfig; +/** + * Intended to be called only from loadTsconfig. + * Parameters don't have defaults because they should use the same as loadTsconfig. + */ +function loadTsconfigFromExtends(configFilePath, extendedConfigValue, +// eslint-disable-next-line no-shadow +existsSync, readFileSync) { + var _a; + if (typeof extendedConfigValue === "string" && + extendedConfigValue.indexOf(".json") === -1) { + extendedConfigValue += ".json"; + } + var currentDir = path.dirname(configFilePath); + var extendedConfigPath = path.join(currentDir, extendedConfigValue); + if (extendedConfigValue.indexOf("/") !== -1 && + extendedConfigValue.indexOf(".") !== -1 && + !existsSync(extendedConfigPath)) { + extendedConfigPath = path.join(currentDir, "node_modules", extendedConfigValue); + } + var config = loadTsconfig(extendedConfigPath, existsSync, readFileSync) || {}; + // baseUrl should be interpreted as relative to extendedConfigPath, + // but we need to update it so it is relative to the original tsconfig being loaded + if ((_a = config.compilerOptions) === null || _a === void 0 ? void 0 : _a.baseUrl) { + var extendsDir = path.dirname(extendedConfigValue); + config.compilerOptions.baseUrl = path.join(extendsDir, config.compilerOptions.baseUrl); + } + return config; +} +function mergeTsconfigs(base, config) { + base = base || {}; + config = config || {}; + return __assign(__assign(__assign({}, base), config), { compilerOptions: __assign(__assign({}, base.compilerOptions), config.compilerOptions) }); +} +//# sourceMappingURL=tsconfig-loader.js.map + +/***/ }), + +/***/ 55831: +/***/ ((module) => { + +"use strict"; + +module.exports = x => { + if (typeof x !== 'string') { + throw new TypeError('Expected a string, got ' + typeof x); + } + + // Catches EFBBBF (UTF-8 BOM) because the buffer-to-string + // conversion translates it to FEFF (UTF-16 BOM) + if (x.charCodeAt(0) === 0xFEFF) { + return x.slice(1); + } + + return x; +}; + + +/***/ }), + +/***/ 4351: +/***/ ((module) => { + +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global global, define, Symbol, Reflect, Promise, SuppressedError */ +var __extends; +var __assign; +var __rest; +var __decorate; +var __param; +var __esDecorate; +var __runInitializers; +var __propKey; +var __setFunctionName; +var __metadata; +var __awaiter; +var __generator; +var __exportStar; +var __values; +var __read; +var __spread; +var __spreadArrays; +var __spreadArray; +var __await; +var __asyncGenerator; +var __asyncDelegator; +var __asyncValues; +var __makeTemplateObject; +var __importStar; +var __importDefault; +var __classPrivateFieldGet; +var __classPrivateFieldSet; +var __classPrivateFieldIn; +var __createBinding; +var __addDisposableResource; +var __disposeResources; +(function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); + } + else if ( true && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + if (exports !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports, "__esModule", { value: true }); + } + else { + exports.__esModule = true; + } + } + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } +}) +(function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + + __extends = function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __esDecorate = function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; + }; + + __runInitializers = function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; + }; + + __propKey = function (x) { + return typeof x === "symbol" ? x : "".concat(x); + }; + + __setFunctionName = function (f, name, prefix) { + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); + }; + + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); + + __values = function (o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + /** @deprecated */ + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + /** @deprecated */ + __spreadArrays = function () { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + + __spreadArray = function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + }; + + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + + __importStar = function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + + __importDefault = function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + + __classPrivateFieldGet = function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + + __classPrivateFieldSet = function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + }; + + __classPrivateFieldIn = function (state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + }; + + __addDisposableResource = function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose, inner; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + if (async) inner = dispose; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + }; + + var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + }; + + __disposeResources = function (env) { + function fail(e) { + env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + function next() { + while (env.stack.length) { + var rec = env.stack.pop(); + try { + var result = rec.dispose && rec.dispose.call(rec.value); + if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + catch (e) { + fail(e); + } + } + if (env.hasError) throw env.error; + } + return next(); + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__esDecorate", __esDecorate); + exporter("__runInitializers", __runInitializers); + exporter("__propKey", __propKey); + exporter("__setFunctionName", __setFunctionName); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__spreadArray", __spreadArray); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); + exporter("__classPrivateFieldIn", __classPrivateFieldIn); + exporter("__addDisposableResource", __addDisposableResource); + exporter("__disposeResources", __disposeResources); +}); + + +/***/ }), + +/***/ 74294: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +module.exports = __nccwpck_require__(54219); + + +/***/ }), + +/***/ 54219: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +var net = __nccwpck_require__(41808); +var tls = __nccwpck_require__(24404); +var http = __nccwpck_require__(13685); +var https = __nccwpck_require__(95687); +var events = __nccwpck_require__(82361); +var assert = __nccwpck_require__(39491); +var util = __nccwpck_require__(73837); + + +exports.httpOverHttp = httpOverHttp; +exports.httpsOverHttp = httpsOverHttp; +exports.httpOverHttps = httpOverHttps; +exports.httpsOverHttps = httpsOverHttps; + + +function httpOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http.request; + return agent; +} + +function httpsOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; +} + +function httpOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + return agent; +} + +function httpsOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; +} + + +function TunnelingAgent(options) { + var self = this; + self.options = options || {}; + self.proxyOptions = self.options.proxy || {}; + self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets; + self.requests = []; + self.sockets = []; + + self.on('free', function onFree(socket, host, port, localAddress) { + var options = toOptions(host, port, localAddress); + for (var i = 0, len = self.requests.length; i < len; ++i) { + var pending = self.requests[i]; + if (pending.host === options.host && pending.port === options.port) { + // Detect the request to connect same origin server, + // reuse the connection. + self.requests.splice(i, 1); + pending.request.onSocket(socket); + return; + } + } + socket.destroy(); + self.removeSocket(socket); + }); +} +util.inherits(TunnelingAgent, events.EventEmitter); + +TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { + var self = this; + var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress)); + + if (self.sockets.length >= this.maxSockets) { + // We are over limit so we'll add it to the queue. + self.requests.push(options); + return; + } + + // If we are under maxSockets create a new one. + self.createSocket(options, function(socket) { + socket.on('free', onFree); + socket.on('close', onCloseOrRemove); + socket.on('agentRemove', onCloseOrRemove); + req.onSocket(socket); + + function onFree() { + self.emit('free', socket, options); + } + + function onCloseOrRemove(err) { + self.removeSocket(socket); + socket.removeListener('free', onFree); + socket.removeListener('close', onCloseOrRemove); + socket.removeListener('agentRemove', onCloseOrRemove); + } + }); +}; + +TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { + var self = this; + var placeholder = {}; + self.sockets.push(placeholder); + + var connectOptions = mergeOptions({}, self.proxyOptions, { + method: 'CONNECT', + path: options.host + ':' + options.port, + agent: false, + headers: { + host: options.host + ':' + options.port + } + }); + if (options.localAddress) { + connectOptions.localAddress = options.localAddress; + } + if (connectOptions.proxyAuth) { + connectOptions.headers = connectOptions.headers || {}; + connectOptions.headers['Proxy-Authorization'] = 'Basic ' + + new Buffer(connectOptions.proxyAuth).toString('base64'); + } + + debug('making CONNECT request'); + var connectReq = self.request(connectOptions); + connectReq.useChunkedEncodingByDefault = false; // for v0.6 + connectReq.once('response', onResponse); // for v0.6 + connectReq.once('upgrade', onUpgrade); // for v0.6 + connectReq.once('connect', onConnect); // for v0.7 or later + connectReq.once('error', onError); + connectReq.end(); + + function onResponse(res) { + // Very hacky. This is necessary to avoid http-parser leaks. + res.upgrade = true; + } + + function onUpgrade(res, socket, head) { + // Hacky. + process.nextTick(function() { + onConnect(res, socket, head); + }); + } + + function onConnect(res, socket, head) { + connectReq.removeAllListeners(); + socket.removeAllListeners(); + + if (res.statusCode !== 200) { + debug('tunneling socket could not be established, statusCode=%d', + res.statusCode); + socket.destroy(); + var error = new Error('tunneling socket could not be established, ' + + 'statusCode=' + res.statusCode); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + return; + } + if (head.length > 0) { + debug('got illegal response body from proxy'); + socket.destroy(); + var error = new Error('got illegal response body from proxy'); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + return; + } + debug('tunneling connection has established'); + self.sockets[self.sockets.indexOf(placeholder)] = socket; + return cb(socket); + } + + function onError(cause) { + connectReq.removeAllListeners(); + + debug('tunneling socket could not be established, cause=%s\n', + cause.message, cause.stack); + var error = new Error('tunneling socket could not be established, ' + + 'cause=' + cause.message); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + } +}; + +TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { + var pos = this.sockets.indexOf(socket) + if (pos === -1) { + return; + } + this.sockets.splice(pos, 1); + + var pending = this.requests.shift(); + if (pending) { + // If we have pending requests and a socket gets closed a new one + // needs to be created to take over in the pool for the one that closed. + this.createSocket(pending, function(socket) { + pending.request.onSocket(socket); + }); + } +}; + +function createSecureSocket(options, cb) { + var self = this; + TunnelingAgent.prototype.createSocket.call(self, options, function(socket) { + var hostHeader = options.request.getHeader('host'); + var tlsOptions = mergeOptions({}, self.options, { + socket: socket, + servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host + }); + + // 0 is dummy port for v0.6 + var secureSocket = tls.connect(0, tlsOptions); + self.sockets[self.sockets.indexOf(socket)] = secureSocket; + cb(secureSocket); + }); +} + + +function toOptions(host, port, localAddress) { + if (typeof host === 'string') { // since v0.10 + return { + host: host, + port: port, + localAddress: localAddress + }; + } + return host; // for v0.11 or later +} + +function mergeOptions(target) { + for (var i = 1, len = arguments.length; i < len; ++i) { + var overrides = arguments[i]; + if (typeof overrides === 'object') { + var keys = Object.keys(overrides); + for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { + var k = keys[j]; + if (overrides[k] !== undefined) { + target[k] = overrides[k]; + } + } + } + } + return target; +} + + +var debug; +if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { + debug = function() { + var args = Array.prototype.slice.call(arguments); + if (typeof args[0] === 'string') { + args[0] = 'TUNNEL: ' + args[0]; + } else { + args.unshift('TUNNEL:'); + } + console.error.apply(console, args); + } +} else { + debug = function() {}; +} +exports.debug = debug; // for test + + +/***/ }), + +/***/ 37414: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + +var ts = {}; ((module) => { +"use strict"; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => (__copyProps, mod); // Modified helper to skip setting __esModule. + +// src/typescript/typescript.ts +var typescript_exports = {}; +__export(typescript_exports, { + ANONYMOUS: () => ANONYMOUS, + AccessFlags: () => AccessFlags, + AssertionLevel: () => AssertionLevel, + AssignmentDeclarationKind: () => AssignmentDeclarationKind, + AssignmentKind: () => AssignmentKind, + Associativity: () => Associativity, + BreakpointResolver: () => ts_BreakpointResolver_exports, + BuilderFileEmit: () => BuilderFileEmit, + BuilderProgramKind: () => BuilderProgramKind, + BuilderState: () => BuilderState, + CallHierarchy: () => ts_CallHierarchy_exports, + CharacterCodes: () => CharacterCodes, + CheckFlags: () => CheckFlags, + CheckMode: () => CheckMode, + ClassificationType: () => ClassificationType, + ClassificationTypeNames: () => ClassificationTypeNames, + CommentDirectiveType: () => CommentDirectiveType, + Comparison: () => Comparison, + CompletionInfoFlags: () => CompletionInfoFlags, + CompletionTriggerKind: () => CompletionTriggerKind, + Completions: () => ts_Completions_exports, + ContainerFlags: () => ContainerFlags, + ContextFlags: () => ContextFlags, + Debug: () => Debug, + DiagnosticCategory: () => DiagnosticCategory, + Diagnostics: () => Diagnostics, + DocumentHighlights: () => DocumentHighlights, + ElementFlags: () => ElementFlags, + EmitFlags: () => EmitFlags, + EmitHint: () => EmitHint, + EmitOnly: () => EmitOnly, + EndOfLineState: () => EndOfLineState, + ExitStatus: () => ExitStatus, + ExportKind: () => ExportKind, + Extension: () => Extension, + ExternalEmitHelpers: () => ExternalEmitHelpers, + FileIncludeKind: () => FileIncludeKind, + FilePreprocessingDiagnosticsKind: () => FilePreprocessingDiagnosticsKind, + FileSystemEntryKind: () => FileSystemEntryKind, + FileWatcherEventKind: () => FileWatcherEventKind, + FindAllReferences: () => ts_FindAllReferences_exports, + FlattenLevel: () => FlattenLevel, + FlowFlags: () => FlowFlags, + ForegroundColorEscapeSequences: () => ForegroundColorEscapeSequences, + FunctionFlags: () => FunctionFlags, + GeneratedIdentifierFlags: () => GeneratedIdentifierFlags, + GetLiteralTextFlags: () => GetLiteralTextFlags, + GoToDefinition: () => ts_GoToDefinition_exports, + HighlightSpanKind: () => HighlightSpanKind, + IdentifierNameMap: () => IdentifierNameMap, + IdentifierNameMultiMap: () => IdentifierNameMultiMap, + ImportKind: () => ImportKind, + ImportsNotUsedAsValues: () => ImportsNotUsedAsValues, + IndentStyle: () => IndentStyle, + IndexFlags: () => IndexFlags, + IndexKind: () => IndexKind, + InferenceFlags: () => InferenceFlags, + InferencePriority: () => InferencePriority, + InlayHintKind: () => InlayHintKind2, + InlayHints: () => ts_InlayHints_exports, + InternalEmitFlags: () => InternalEmitFlags, + InternalSymbolName: () => InternalSymbolName, + IntersectionFlags: () => IntersectionFlags, + InvalidatedProjectKind: () => InvalidatedProjectKind, + JSDocParsingMode: () => JSDocParsingMode, + JsDoc: () => ts_JsDoc_exports, + JsTyping: () => ts_JsTyping_exports, + JsxEmit: () => JsxEmit, + JsxFlags: () => JsxFlags, + JsxReferenceKind: () => JsxReferenceKind, + LanguageFeatureMinimumTarget: () => LanguageFeatureMinimumTarget, + LanguageServiceMode: () => LanguageServiceMode, + LanguageVariant: () => LanguageVariant, + LexicalEnvironmentFlags: () => LexicalEnvironmentFlags, + ListFormat: () => ListFormat, + LogLevel: () => LogLevel, + MapCode: () => ts_MapCode_exports, + MemberOverrideStatus: () => MemberOverrideStatus, + ModifierFlags: () => ModifierFlags, + ModuleDetectionKind: () => ModuleDetectionKind, + ModuleInstanceState: () => ModuleInstanceState, + ModuleKind: () => ModuleKind, + ModuleResolutionKind: () => ModuleResolutionKind, + ModuleSpecifierEnding: () => ModuleSpecifierEnding, + NavigateTo: () => ts_NavigateTo_exports, + NavigationBar: () => ts_NavigationBar_exports, + NewLineKind: () => NewLineKind, + NodeBuilderFlags: () => NodeBuilderFlags, + NodeCheckFlags: () => NodeCheckFlags, + NodeFactoryFlags: () => NodeFactoryFlags, + NodeFlags: () => NodeFlags, + NodeResolutionFeatures: () => NodeResolutionFeatures, + ObjectFlags: () => ObjectFlags, + OperationCanceledException: () => OperationCanceledException, + OperatorPrecedence: () => OperatorPrecedence, + OrganizeImports: () => ts_OrganizeImports_exports, + OrganizeImportsMode: () => OrganizeImportsMode, + OuterExpressionKinds: () => OuterExpressionKinds, + OutliningElementsCollector: () => ts_OutliningElementsCollector_exports, + OutliningSpanKind: () => OutliningSpanKind, + OutputFileType: () => OutputFileType, + PackageJsonAutoImportPreference: () => PackageJsonAutoImportPreference, + PackageJsonDependencyGroup: () => PackageJsonDependencyGroup, + PatternMatchKind: () => PatternMatchKind, + PollingInterval: () => PollingInterval, + PollingWatchKind: () => PollingWatchKind, + PragmaKindFlags: () => PragmaKindFlags, + PrivateIdentifierKind: () => PrivateIdentifierKind, + ProcessLevel: () => ProcessLevel, + ProgramUpdateLevel: () => ProgramUpdateLevel, + QuotePreference: () => QuotePreference, + RegularExpressionFlags: () => RegularExpressionFlags, + RelationComparisonResult: () => RelationComparisonResult, + Rename: () => ts_Rename_exports, + ScriptElementKind: () => ScriptElementKind, + ScriptElementKindModifier: () => ScriptElementKindModifier, + ScriptKind: () => ScriptKind, + ScriptSnapshot: () => ScriptSnapshot, ScriptTarget: () => ScriptTarget, SemanticClassificationFormat: () => SemanticClassificationFormat, SemanticMeaning: () => SemanticMeaning, @@ -279130,6 +288565,230 @@ module.exports.__TEST__ = { }; +/***/ }), + +/***/ 59824: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +const stringWidth = __nccwpck_require__(42577); +const stripAnsi = __nccwpck_require__(45591); +const ansiStyles = __nccwpck_require__(52068); + +const ESCAPES = new Set([ + '\u001B', + '\u009B' +]); + +const END_CODE = 39; + +const ANSI_ESCAPE_BELL = '\u0007'; +const ANSI_CSI = '['; +const ANSI_OSC = ']'; +const ANSI_SGR_TERMINATOR = 'm'; +const ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`; + +const wrapAnsi = code => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`; +const wrapAnsiHyperlink = uri => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${uri}${ANSI_ESCAPE_BELL}`; + +// Calculate the length of words split on ' ', ignoring +// the extra characters added by ansi escape codes +const wordLengths = string => string.split(' ').map(character => stringWidth(character)); + +// Wrap a long word across multiple rows +// Ansi escape codes do not count towards length +const wrapWord = (rows, word, columns) => { + const characters = [...word]; + + let isInsideEscape = false; + let isInsideLinkEscape = false; + let visible = stringWidth(stripAnsi(rows[rows.length - 1])); + + for (const [index, character] of characters.entries()) { + const characterLength = stringWidth(character); + + if (visible + characterLength <= columns) { + rows[rows.length - 1] += character; + } else { + rows.push(character); + visible = 0; + } + + if (ESCAPES.has(character)) { + isInsideEscape = true; + isInsideLinkEscape = characters.slice(index + 1).join('').startsWith(ANSI_ESCAPE_LINK); + } + + if (isInsideEscape) { + if (isInsideLinkEscape) { + if (character === ANSI_ESCAPE_BELL) { + isInsideEscape = false; + isInsideLinkEscape = false; + } + } else if (character === ANSI_SGR_TERMINATOR) { + isInsideEscape = false; + } + + continue; + } + + visible += characterLength; + + if (visible === columns && index < characters.length - 1) { + rows.push(''); + visible = 0; + } + } + + // It's possible that the last row we copy over is only + // ansi escape characters, handle this edge-case + if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) { + rows[rows.length - 2] += rows.pop(); + } +}; + +// Trims spaces from a string ignoring invisible sequences +const stringVisibleTrimSpacesRight = string => { + const words = string.split(' '); + let last = words.length; + + while (last > 0) { + if (stringWidth(words[last - 1]) > 0) { + break; + } + + last--; + } + + if (last === words.length) { + return string; + } + + return words.slice(0, last).join(' ') + words.slice(last).join(''); +}; + +// The wrap-ansi module can be invoked in either 'hard' or 'soft' wrap mode +// +// 'hard' will never allow a string to take up more than columns characters +// +// 'soft' allows long words to expand past the column length +const exec = (string, columns, options = {}) => { + if (options.trim !== false && string.trim() === '') { + return ''; + } + + let returnValue = ''; + let escapeCode; + let escapeUrl; + + const lengths = wordLengths(string); + let rows = ['']; + + for (const [index, word] of string.split(' ').entries()) { + if (options.trim !== false) { + rows[rows.length - 1] = rows[rows.length - 1].trimStart(); + } + + let rowLength = stringWidth(rows[rows.length - 1]); + + if (index !== 0) { + if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) { + // If we start with a new word but the current row length equals the length of the columns, add a new row + rows.push(''); + rowLength = 0; + } + + if (rowLength > 0 || options.trim === false) { + rows[rows.length - 1] += ' '; + rowLength++; + } + } + + // In 'hard' wrap mode, the length of a line is never allowed to extend past 'columns' + if (options.hard && lengths[index] > columns) { + const remainingColumns = (columns - rowLength); + const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns); + const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns); + if (breaksStartingNextLine < breaksStartingThisLine) { + rows.push(''); + } + + wrapWord(rows, word, columns); + continue; + } + + if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) { + if (options.wordWrap === false && rowLength < columns) { + wrapWord(rows, word, columns); + continue; + } + + rows.push(''); + } + + if (rowLength + lengths[index] > columns && options.wordWrap === false) { + wrapWord(rows, word, columns); + continue; + } + + rows[rows.length - 1] += word; + } + + if (options.trim !== false) { + rows = rows.map(stringVisibleTrimSpacesRight); + } + + const pre = [...rows.join('\n')]; + + for (const [index, character] of pre.entries()) { + returnValue += character; + + if (ESCAPES.has(character)) { + const {groups} = new RegExp(`(?:\\${ANSI_CSI}(?\\d+)m|\\${ANSI_ESCAPE_LINK}(?.*)${ANSI_ESCAPE_BELL})`).exec(pre.slice(index).join('')) || {groups: {}}; + if (groups.code !== undefined) { + const code = Number.parseFloat(groups.code); + escapeCode = code === END_CODE ? undefined : code; + } else if (groups.uri !== undefined) { + escapeUrl = groups.uri.length === 0 ? undefined : groups.uri; + } + } + + const code = ansiStyles.codes.get(Number(escapeCode)); + + if (pre[index + 1] === '\n') { + if (escapeUrl) { + returnValue += wrapAnsiHyperlink(''); + } + + if (escapeCode && code) { + returnValue += wrapAnsi(code); + } + } else if (character === '\n') { + if (escapeCode && code) { + returnValue += wrapAnsi(escapeCode); + } + + if (escapeUrl) { + returnValue += wrapAnsiHyperlink(escapeUrl); + } + } + } + + return returnValue; +}; + +// For each newline, invoke the method separately +module.exports = (string, columns, options) => { + return String(string) + .normalize() + .replace(/\r\n/g, '\n') + .split('\n') + .map(line => exec(line, columns, options)) + .join('\n'); +}; + + /***/ }), /***/ 62940: @@ -280212,6 +289871,62 @@ module.exports = eval("require")("./swc.win32-ia32-msvc.node"); module.exports = eval("require")("./swc.win32-x64-msvc.node"); +/***/ }), + +/***/ 51516: +/***/ ((module) => { + +module.exports = eval("require")("@angular-devkit/architect"); + + +/***/ }), + +/***/ 26236: +/***/ ((module) => { + +module.exports = eval("require")("@angular-devkit/architect/node"); + + +/***/ }), + +/***/ 55181: +/***/ ((module) => { + +module.exports = eval("require")("@angular-devkit/build-angular/src/utils/version"); + + +/***/ }), + +/***/ 6540: +/***/ ((module) => { + +module.exports = eval("require")("@angular-devkit/core"); + + +/***/ }), + +/***/ 53383: +/***/ ((module) => { + +module.exports = eval("require")("@angular-devkit/core/node"); + + +/***/ }), + +/***/ 55140: +/***/ ((module) => { + +module.exports = eval("require")("@angular-devkit/schematics"); + + +/***/ }), + +/***/ 37276: +/***/ ((module) => { + +module.exports = eval("require")("@angular-devkit/schematics/tools"); + + /***/ }), /***/ 20952: @@ -280524,6 +290239,21 @@ module.exports = eval("require")("@swc/core-win32-x64-msvc"); module.exports = eval("require")("@swc/wasm"); +/***/ }), + +/***/ 30024: +/***/ ((module) => { + +function webpackEmptyContext(req) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; +} +webpackEmptyContext.keys = () => ([]); +webpackEmptyContext.resolve = webpackEmptyContext; +webpackEmptyContext.id = 30024; +module.exports = webpackEmptyContext; + /***/ }), /***/ 87739: @@ -280541,6 +290271,21 @@ module.exports = webpackEmptyContext; /***/ }), +/***/ 5927: +/***/ ((module) => { + +function webpackEmptyContext(req) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; +} +webpackEmptyContext.keys = () => ([]); +webpackEmptyContext.resolve = webpackEmptyContext; +webpackEmptyContext.id = 5927; +module.exports = webpackEmptyContext; + +/***/ }), + /***/ 35115: /***/ ((module) => { @@ -280802,3055 +290547,6504 @@ module.exports = require("repl"); /***/ }), -/***/ 12781: -/***/ ((module) => { +/***/ 12781: +/***/ ((module) => { + +"use strict"; +module.exports = require("stream"); + +/***/ }), + +/***/ 71576: +/***/ ((module) => { + +"use strict"; +module.exports = require("string_decoder"); + +/***/ }), + +/***/ 24404: +/***/ ((module) => { + +"use strict"; +module.exports = require("tls"); + +/***/ }), + +/***/ 76224: +/***/ ((module) => { + +"use strict"; +module.exports = require("tty"); + +/***/ }), + +/***/ 57310: +/***/ ((module) => { + +"use strict"; +module.exports = require("url"); + +/***/ }), + +/***/ 73837: +/***/ ((module) => { + +"use strict"; +module.exports = require("util"); + +/***/ }), + +/***/ 26144: +/***/ ((module) => { + +"use strict"; +module.exports = require("vm"); + +/***/ }), + +/***/ 59796: +/***/ ((module) => { + +"use strict"; +module.exports = require("zlib"); + +/***/ }), + +/***/ 37840: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.assertValidPattern = void 0; +const MAX_PATTERN_LENGTH = 1024 * 64; +const assertValidPattern = (pattern) => { + if (typeof pattern !== 'string') { + throw new TypeError('invalid pattern'); + } + if (pattern.length > MAX_PATTERN_LENGTH) { + throw new TypeError('pattern is too long'); + } +}; +exports.assertValidPattern = assertValidPattern; +//# sourceMappingURL=assert-valid-pattern.js.map + +/***/ }), + +/***/ 81227: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// parse a single path portion +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AST = void 0; +const brace_expressions_js_1 = __nccwpck_require__(65180); +const unescape_js_1 = __nccwpck_require__(40391); +const types = new Set(['!', '?', '+', '*', '@']); +const isExtglobType = (c) => types.has(c); +// Patterns that get prepended to bind to the start of either the +// entire string, or just a single path portion, to prevent dots +// and/or traversal patterns, when needed. +// Exts don't need the ^ or / bit, because the root binds that already. +const startNoTraversal = '(?!(?:^|/)\\.\\.?(?:$|/))'; +const startNoDot = '(?!\\.)'; +// characters that indicate a start of pattern needs the "no dots" bit, +// because a dot *might* be matched. ( is not in the list, because in +// the case of a child extglob, it will handle the prevention itself. +const addPatternStart = new Set(['[', '.']); +// cases where traversal is A-OK, no dot prevention needed +const justDots = new Set(['..', '.']); +const reSpecials = new Set('().*{}+?[]^$\\!'); +const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); +// any single thing other than / +const qmark = '[^/]'; +// * => any number of characters +const star = qmark + '*?'; +// use + when we need to ensure that *something* matches, because the * is +// the only thing in the path portion. +const starNoEmpty = qmark + '+?'; +// remove the \ chars that we added if we end up doing a nonmagic compare +// const deslash = (s: string) => s.replace(/\\(.)/g, '$1') +class AST { + type; + #root; + #hasMagic; + #uflag = false; + #parts = []; + #parent; + #parentIndex; + #negs; + #filledNegs = false; + #options; + #toString; + // set to true if it's an extglob with no children + // (which really means one child of '') + #emptyExt = false; + constructor(type, parent, options = {}) { + this.type = type; + // extglobs are inherently magical + if (type) + this.#hasMagic = true; + this.#parent = parent; + this.#root = this.#parent ? this.#parent.#root : this; + this.#options = this.#root === this ? options : this.#root.#options; + this.#negs = this.#root === this ? [] : this.#root.#negs; + if (type === '!' && !this.#root.#filledNegs) + this.#negs.push(this); + this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0; + } + get hasMagic() { + /* c8 ignore start */ + if (this.#hasMagic !== undefined) + return this.#hasMagic; + /* c8 ignore stop */ + for (const p of this.#parts) { + if (typeof p === 'string') + continue; + if (p.type || p.hasMagic) + return (this.#hasMagic = true); + } + // note: will be undefined until we generate the regexp src and find out + return this.#hasMagic; + } + // reconstructs the pattern + toString() { + if (this.#toString !== undefined) + return this.#toString; + if (!this.type) { + return (this.#toString = this.#parts.map(p => String(p)).join('')); + } + else { + return (this.#toString = + this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')'); + } + } + #fillNegs() { + /* c8 ignore start */ + if (this !== this.#root) + throw new Error('should only call on root'); + if (this.#filledNegs) + return this; + /* c8 ignore stop */ + // call toString() once to fill this out + this.toString(); + this.#filledNegs = true; + let n; + while ((n = this.#negs.pop())) { + if (n.type !== '!') + continue; + // walk up the tree, appending everthing that comes AFTER parentIndex + let p = n; + let pp = p.#parent; + while (pp) { + for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) { + for (const part of n.#parts) { + /* c8 ignore start */ + if (typeof part === 'string') { + throw new Error('string part in extglob AST??'); + } + /* c8 ignore stop */ + part.copyIn(pp.#parts[i]); + } + } + p = pp; + pp = p.#parent; + } + } + return this; + } + push(...parts) { + for (const p of parts) { + if (p === '') + continue; + /* c8 ignore start */ + if (typeof p !== 'string' && !(p instanceof AST && p.#parent === this)) { + throw new Error('invalid part: ' + p); + } + /* c8 ignore stop */ + this.#parts.push(p); + } + } + toJSON() { + const ret = this.type === null + ? this.#parts.slice().map(p => (typeof p === 'string' ? p : p.toJSON())) + : [this.type, ...this.#parts.map(p => p.toJSON())]; + if (this.isStart() && !this.type) + ret.unshift([]); + if (this.isEnd() && + (this === this.#root || + (this.#root.#filledNegs && this.#parent?.type === '!'))) { + ret.push({}); + } + return ret; + } + isStart() { + if (this.#root === this) + return true; + // if (this.type) return !!this.#parent?.isStart() + if (!this.#parent?.isStart()) + return false; + if (this.#parentIndex === 0) + return true; + // if everything AHEAD of this is a negation, then it's still the "start" + const p = this.#parent; + for (let i = 0; i < this.#parentIndex; i++) { + const pp = p.#parts[i]; + if (!(pp instanceof AST && pp.type === '!')) { + return false; + } + } + return true; + } + isEnd() { + if (this.#root === this) + return true; + if (this.#parent?.type === '!') + return true; + if (!this.#parent?.isEnd()) + return false; + if (!this.type) + return this.#parent?.isEnd(); + // if not root, it'll always have a parent + /* c8 ignore start */ + const pl = this.#parent ? this.#parent.#parts.length : 0; + /* c8 ignore stop */ + return this.#parentIndex === pl - 1; + } + copyIn(part) { + if (typeof part === 'string') + this.push(part); + else + this.push(part.clone(this)); + } + clone(parent) { + const c = new AST(this.type, parent); + for (const p of this.#parts) { + c.copyIn(p); + } + return c; + } + static #parseAST(str, ast, pos, opt) { + let escaping = false; + let inBrace = false; + let braceStart = -1; + let braceNeg = false; + if (ast.type === null) { + // outside of a extglob, append until we find a start + let i = pos; + let acc = ''; + while (i < str.length) { + const c = str.charAt(i++); + // still accumulate escapes at this point, but we do ignore + // starts that are escaped + if (escaping || c === '\\') { + escaping = !escaping; + acc += c; + continue; + } + if (inBrace) { + if (i === braceStart + 1) { + if (c === '^' || c === '!') { + braceNeg = true; + } + } + else if (c === ']' && !(i === braceStart + 2 && braceNeg)) { + inBrace = false; + } + acc += c; + continue; + } + else if (c === '[') { + inBrace = true; + braceStart = i; + braceNeg = false; + acc += c; + continue; + } + if (!opt.noext && isExtglobType(c) && str.charAt(i) === '(') { + ast.push(acc); + acc = ''; + const ext = new AST(c, ast); + i = AST.#parseAST(str, ext, i, opt); + ast.push(ext); + continue; + } + acc += c; + } + ast.push(acc); + return i; + } + // some kind of extglob, pos is at the ( + // find the next | or ) + let i = pos + 1; + let part = new AST(null, ast); + const parts = []; + let acc = ''; + while (i < str.length) { + const c = str.charAt(i++); + // still accumulate escapes at this point, but we do ignore + // starts that are escaped + if (escaping || c === '\\') { + escaping = !escaping; + acc += c; + continue; + } + if (inBrace) { + if (i === braceStart + 1) { + if (c === '^' || c === '!') { + braceNeg = true; + } + } + else if (c === ']' && !(i === braceStart + 2 && braceNeg)) { + inBrace = false; + } + acc += c; + continue; + } + else if (c === '[') { + inBrace = true; + braceStart = i; + braceNeg = false; + acc += c; + continue; + } + if (isExtglobType(c) && str.charAt(i) === '(') { + part.push(acc); + acc = ''; + const ext = new AST(c, part); + part.push(ext); + i = AST.#parseAST(str, ext, i, opt); + continue; + } + if (c === '|') { + part.push(acc); + acc = ''; + parts.push(part); + part = new AST(null, ast); + continue; + } + if (c === ')') { + if (acc === '' && ast.#parts.length === 0) { + ast.#emptyExt = true; + } + part.push(acc); + acc = ''; + ast.push(...parts, part); + return i; + } + acc += c; + } + // unfinished extglob + // if we got here, it was a malformed extglob! not an extglob, but + // maybe something else in there. + ast.type = null; + ast.#hasMagic = undefined; + ast.#parts = [str.substring(pos - 1)]; + return i; + } + static fromGlob(pattern, options = {}) { + const ast = new AST(null, undefined, options); + AST.#parseAST(pattern, ast, 0, options); + return ast; + } + // returns the regular expression if there's magic, or the unescaped + // string if not. + toMMPattern() { + // should only be called on root + /* c8 ignore start */ + if (this !== this.#root) + return this.#root.toMMPattern(); + /* c8 ignore stop */ + const glob = this.toString(); + const [re, body, hasMagic, uflag] = this.toRegExpSource(); + // if we're in nocase mode, and not nocaseMagicOnly, then we do + // still need a regular expression if we have to case-insensitively + // match capital/lowercase characters. + const anyMagic = hasMagic || + this.#hasMagic || + (this.#options.nocase && + !this.#options.nocaseMagicOnly && + glob.toUpperCase() !== glob.toLowerCase()); + if (!anyMagic) { + return body; + } + const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : ''); + return Object.assign(new RegExp(`^${re}$`, flags), { + _src: re, + _glob: glob, + }); + } + // returns the string match, the regexp source, whether there's magic + // in the regexp (so a regular expression is required) and whether or + // not the uflag is needed for the regular expression (for posix classes) + // TODO: instead of injecting the start/end at this point, just return + // the BODY of the regexp, along with the start/end portions suitable + // for binding the start/end in either a joined full-path makeRe context + // (where we bind to (^|/), or a standalone matchPart context (where + // we bind to ^, and not /). Otherwise slashes get duped! + // + // In part-matching mode, the start is: + // - if not isStart: nothing + // - if traversal possible, but not allowed: ^(?!\.\.?$) + // - if dots allowed or not possible: ^ + // - if dots possible and not allowed: ^(?!\.) + // end is: + // - if not isEnd(): nothing + // - else: $ + // + // In full-path matching mode, we put the slash at the START of the + // pattern, so start is: + // - if first pattern: same as part-matching mode + // - if not isStart(): nothing + // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/)) + // - if dots allowed or not possible: / + // - if dots possible and not allowed: /(?!\.) + // end is: + // - if last pattern, same as part-matching mode + // - else nothing + // + // Always put the (?:$|/) on negated tails, though, because that has to be + // there to bind the end of the negated pattern portion, and it's easier to + // just stick it in now rather than try to inject it later in the middle of + // the pattern. + // + // We can just always return the same end, and leave it up to the caller + // to know whether it's going to be used joined or in parts. + // And, if the start is adjusted slightly, can do the same there: + // - if not isStart: nothing + // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$) + // - if dots allowed or not possible: (?:/|^) + // - if dots possible and not allowed: (?:/|^)(?!\.) + // + // But it's better to have a simpler binding without a conditional, for + // performance, so probably better to return both start options. + // + // Then the caller just ignores the end if it's not the first pattern, + // and the start always gets applied. + // + // But that's always going to be $ if it's the ending pattern, or nothing, + // so the caller can just attach $ at the end of the pattern when building. + // + // So the todo is: + // - better detect what kind of start is needed + // - return both flavors of starting pattern + // - attach $ at the end of the pattern when creating the actual RegExp + // + // Ah, but wait, no, that all only applies to the root when the first pattern + // is not an extglob. If the first pattern IS an extglob, then we need all + // that dot prevention biz to live in the extglob portions, because eg + // +(*|.x*) can match .xy but not .yx. + // + // So, return the two flavors if it's #root and the first child is not an + // AST, otherwise leave it to the child AST to handle it, and there, + // use the (?:^|/) style of start binding. + // + // Even simplified further: + // - Since the start for a join is eg /(?!\.) and the start for a part + // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root + // or start or whatever) and prepend ^ or / at the Regexp construction. + toRegExpSource(allowDot) { + const dot = allowDot ?? !!this.#options.dot; + if (this.#root === this) + this.#fillNegs(); + if (!this.type) { + const noEmpty = this.isStart() && this.isEnd(); + const src = this.#parts + .map(p => { + const [re, _, hasMagic, uflag] = typeof p === 'string' + ? AST.#parseGlob(p, this.#hasMagic, noEmpty) + : p.toRegExpSource(allowDot); + this.#hasMagic = this.#hasMagic || hasMagic; + this.#uflag = this.#uflag || uflag; + return re; + }) + .join(''); + let start = ''; + if (this.isStart()) { + if (typeof this.#parts[0] === 'string') { + // this is the string that will match the start of the pattern, + // so we need to protect against dots and such. + // '.' and '..' cannot match unless the pattern is that exactly, + // even if it starts with . or dot:true is set. + const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]); + if (!dotTravAllowed) { + const aps = addPatternStart; + // check if we have a possibility of matching . or .., + // and prevent that. + const needNoTrav = + // dots are allowed, and the pattern starts with [ or . + (dot && aps.has(src.charAt(0))) || + // the pattern starts with \., and then [ or . + (src.startsWith('\\.') && aps.has(src.charAt(2))) || + // the pattern starts with \.\., and then [ or . + (src.startsWith('\\.\\.') && aps.has(src.charAt(4))); + // no need to prevent dots if it can't match a dot, or if a + // sub-pattern will be preventing it anyway. + const needNoDot = !dot && !allowDot && aps.has(src.charAt(0)); + start = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : ''; + } + } + } + // append the "end of path portion" pattern to negation tails + let end = ''; + if (this.isEnd() && + this.#root.#filledNegs && + this.#parent?.type === '!') { + end = '(?:$|\\/)'; + } + const final = start + src + end; + return [ + final, + (0, unescape_js_1.unescape)(src), + (this.#hasMagic = !!this.#hasMagic), + this.#uflag, + ]; + } + // We need to calculate the body *twice* if it's a repeat pattern + // at the start, once in nodot mode, then again in dot mode, so a + // pattern like *(?) can match 'x.y' + const repeated = this.type === '*' || this.type === '+'; + // some kind of extglob + const start = this.type === '!' ? '(?:(?!(?:' : '(?:'; + let body = this.#partsToRegExp(dot); + if (this.isStart() && this.isEnd() && !body && this.type !== '!') { + // invalid extglob, has to at least be *something* present, if it's + // the entire path portion. + const s = this.toString(); + this.#parts = [s]; + this.type = null; + this.#hasMagic = undefined; + return [s, (0, unescape_js_1.unescape)(this.toString()), false, false]; + } + // XXX abstract out this map method + let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot + ? '' + : this.#partsToRegExp(true); + if (bodyDotAllowed === body) { + bodyDotAllowed = ''; + } + if (bodyDotAllowed) { + body = `(?:${body})(?:${bodyDotAllowed})*?`; + } + // an empty !() is exactly equivalent to a starNoEmpty + let final = ''; + if (this.type === '!' && this.#emptyExt) { + final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty; + } + else { + const close = this.type === '!' + ? // !() must match something,but !(x) can match '' + '))' + + (this.isStart() && !dot && !allowDot ? startNoDot : '') + + star + + ')' + : this.type === '@' + ? ')' + : this.type === '?' + ? ')?' + : this.type === '+' && bodyDotAllowed + ? ')' + : this.type === '*' && bodyDotAllowed + ? `)?` + : `)${this.type}`; + final = start + body + close; + } + return [ + final, + (0, unescape_js_1.unescape)(body), + (this.#hasMagic = !!this.#hasMagic), + this.#uflag, + ]; + } + #partsToRegExp(dot) { + return this.#parts + .map(p => { + // extglob ASTs should only contain parent ASTs + /* c8 ignore start */ + if (typeof p === 'string') { + throw new Error('string type in extglob ast??'); + } + /* c8 ignore stop */ + // can ignore hasMagic, because extglobs are already always magic + const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot); + this.#uflag = this.#uflag || uflag; + return re; + }) + .filter(p => !(this.isStart() && this.isEnd()) || !!p) + .join('|'); + } + static #parseGlob(glob, hasMagic, noEmpty = false) { + let escaping = false; + let re = ''; + let uflag = false; + for (let i = 0; i < glob.length; i++) { + const c = glob.charAt(i); + if (escaping) { + escaping = false; + re += (reSpecials.has(c) ? '\\' : '') + c; + continue; + } + if (c === '\\') { + if (i === glob.length - 1) { + re += '\\\\'; + } + else { + escaping = true; + } + continue; + } + if (c === '[') { + const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i); + if (consumed) { + re += src; + uflag = uflag || needUflag; + i += consumed - 1; + hasMagic = hasMagic || magic; + continue; + } + } + if (c === '*') { + if (noEmpty && glob === '*') + re += starNoEmpty; + else + re += star; + hasMagic = true; + continue; + } + if (c === '?') { + re += qmark; + hasMagic = true; + continue; + } + re += regExpEscape(c); + } + return [re, (0, unescape_js_1.unescape)(glob), !!hasMagic, uflag]; + } +} +exports.AST = AST; +//# sourceMappingURL=ast.js.map + +/***/ }), + +/***/ 65180: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// translate the various posix character classes into unicode properties +// this works across all unicode locales +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.parseClass = void 0; +// { : [, /u flag required, negated] +const posixClasses = { + '[:alnum:]': ['\\p{L}\\p{Nl}\\p{Nd}', true], + '[:alpha:]': ['\\p{L}\\p{Nl}', true], + '[:ascii:]': ['\\x' + '00-\\x' + '7f', false], + '[:blank:]': ['\\p{Zs}\\t', true], + '[:cntrl:]': ['\\p{Cc}', true], + '[:digit:]': ['\\p{Nd}', true], + '[:graph:]': ['\\p{Z}\\p{C}', true, true], + '[:lower:]': ['\\p{Ll}', true], + '[:print:]': ['\\p{C}', true], + '[:punct:]': ['\\p{P}', true], + '[:space:]': ['\\p{Z}\\t\\r\\n\\v\\f', true], + '[:upper:]': ['\\p{Lu}', true], + '[:word:]': ['\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}', true], + '[:xdigit:]': ['A-Fa-f0-9', false], +}; +// only need to escape a few things inside of brace expressions +// escapes: [ \ ] - +const braceEscape = (s) => s.replace(/[[\]\\-]/g, '\\$&'); +// escape all regexp magic characters +const regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); +// everything has already been escaped, we just have to join +const rangesToString = (ranges) => ranges.join(''); +// takes a glob string at a posix brace expression, and returns +// an equivalent regular expression source, and boolean indicating +// whether the /u flag needs to be applied, and the number of chars +// consumed to parse the character class. +// This also removes out of order ranges, and returns ($.) if the +// entire class just no good. +const parseClass = (glob, position) => { + const pos = position; + /* c8 ignore start */ + if (glob.charAt(pos) !== '[') { + throw new Error('not in a brace expression'); + } + /* c8 ignore stop */ + const ranges = []; + const negs = []; + let i = pos + 1; + let sawStart = false; + let uflag = false; + let escaping = false; + let negate = false; + let endPos = pos; + let rangeStart = ''; + WHILE: while (i < glob.length) { + const c = glob.charAt(i); + if ((c === '!' || c === '^') && i === pos + 1) { + negate = true; + i++; + continue; + } + if (c === ']' && sawStart && !escaping) { + endPos = i + 1; + break; + } + sawStart = true; + if (c === '\\') { + if (!escaping) { + escaping = true; + i++; + continue; + } + // escaped \ char, fall through and treat like normal char + } + if (c === '[' && !escaping) { + // either a posix class, a collation equivalent, or just a [ + for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) { + if (glob.startsWith(cls, i)) { + // invalid, [a-[] is fine, but not [a-[:alpha]] + if (rangeStart) { + return ['$.', false, glob.length - pos, true]; + } + i += cls.length; + if (neg) + negs.push(unip); + else + ranges.push(unip); + uflag = uflag || u; + continue WHILE; + } + } + } + // now it's just a normal character, effectively + escaping = false; + if (rangeStart) { + // throw this range away if it's not valid, but others + // can still match. + if (c > rangeStart) { + ranges.push(braceEscape(rangeStart) + '-' + braceEscape(c)); + } + else if (c === rangeStart) { + ranges.push(braceEscape(c)); + } + rangeStart = ''; + i++; + continue; + } + // now might be the start of a range. + // can be either c-d or c-] or c] or c] at this point + if (glob.startsWith('-]', i + 1)) { + ranges.push(braceEscape(c + '-')); + i += 2; + continue; + } + if (glob.startsWith('-', i + 1)) { + rangeStart = c; + i += 2; + continue; + } + // not the start of a range, just a single character + ranges.push(braceEscape(c)); + i++; + } + if (endPos < i) { + // didn't see the end of the class, not a valid class, + // but might still be valid as a literal match. + return ['', false, 0, false]; + } + // if we got no ranges and no negates, then we have a range that + // cannot possibly match anything, and that poisons the whole glob + if (!ranges.length && !negs.length) { + return ['$.', false, glob.length - pos, true]; + } + // if we got one positive range, and it's a single character, then that's + // not actually a magic pattern, it's just that one literal character. + // we should not treat that as "magic", we should just return the literal + // character. [_] is a perfectly valid way to escape glob magic chars. + if (negs.length === 0 && + ranges.length === 1 && + /^\\?.$/.test(ranges[0]) && + !negate) { + const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0]; + return [regexpEscape(r), false, endPos - pos, false]; + } + const sranges = '[' + (negate ? '^' : '') + rangesToString(ranges) + ']'; + const snegs = '[' + (negate ? '' : '^') + rangesToString(negs) + ']'; + const comb = ranges.length && negs.length + ? '(' + sranges + '|' + snegs + ')' + : ranges.length + ? sranges + : snegs; + return [comb, uflag, endPos - pos, true]; +}; +exports.parseClass = parseClass; +//# sourceMappingURL=brace-expressions.js.map + +/***/ }), + +/***/ 67350: +/***/ ((__unused_webpack_module, exports) => { "use strict"; -module.exports = require("stream"); - -/***/ }), - -/***/ 71576: -/***/ ((module) => { -"use strict"; -module.exports = require("string_decoder"); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.escape = void 0; +/** + * Escape all magic characters in a glob pattern. + * + * If the {@link windowsPathsNoEscape | GlobOptions.windowsPathsNoEscape} + * option is used, then characters are escaped by wrapping in `[]`, because + * a magic character wrapped in a character class can only be satisfied by + * that exact character. In this mode, `\` is _not_ escaped, because it is + * not interpreted as a magic character, but instead as a path separator. + */ +const escape = (s, { windowsPathsNoEscape = false, } = {}) => { + // don't need to escape +@! because we escape the parens + // that make those magic, and escaping ! as [!] isn't valid, + // because [!]] is a valid glob class meaning not ']'. + return windowsPathsNoEscape + ? s.replace(/[?*()[\]]/g, '[$&]') + : s.replace(/[?*()[\]\\]/g, '\\$&'); +}; +exports.escape = escape; +//# sourceMappingURL=escape.js.map /***/ }), -/***/ 24404: -/***/ ((module) => { +/***/ 62362: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; -module.exports = require("tls"); - -/***/ }), -/***/ 76224: -/***/ ((module) => { - -"use strict"; -module.exports = require("tty"); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0; +const brace_expansion_1 = __importDefault(__nccwpck_require__(33717)); +const assert_valid_pattern_js_1 = __nccwpck_require__(37840); +const ast_js_1 = __nccwpck_require__(81227); +const escape_js_1 = __nccwpck_require__(67350); +const unescape_js_1 = __nccwpck_require__(40391); +const minimatch = (p, pattern, options = {}) => { + (0, assert_valid_pattern_js_1.assertValidPattern)(pattern); + // shortcut: comments match nothing. + if (!options.nocomment && pattern.charAt(0) === '#') { + return false; + } + return new Minimatch(pattern, options).match(p); +}; +exports.minimatch = minimatch; +// Optimized checking for the most common glob patterns. +const starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/; +const starDotExtTest = (ext) => (f) => !f.startsWith('.') && f.endsWith(ext); +const starDotExtTestDot = (ext) => (f) => f.endsWith(ext); +const starDotExtTestNocase = (ext) => { + ext = ext.toLowerCase(); + return (f) => !f.startsWith('.') && f.toLowerCase().endsWith(ext); +}; +const starDotExtTestNocaseDot = (ext) => { + ext = ext.toLowerCase(); + return (f) => f.toLowerCase().endsWith(ext); +}; +const starDotStarRE = /^\*+\.\*+$/; +const starDotStarTest = (f) => !f.startsWith('.') && f.includes('.'); +const starDotStarTestDot = (f) => f !== '.' && f !== '..' && f.includes('.'); +const dotStarRE = /^\.\*+$/; +const dotStarTest = (f) => f !== '.' && f !== '..' && f.startsWith('.'); +const starRE = /^\*+$/; +const starTest = (f) => f.length !== 0 && !f.startsWith('.'); +const starTestDot = (f) => f.length !== 0 && f !== '.' && f !== '..'; +const qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/; +const qmarksTestNocase = ([$0, ext = '']) => { + const noext = qmarksTestNoExt([$0]); + if (!ext) + return noext; + ext = ext.toLowerCase(); + return (f) => noext(f) && f.toLowerCase().endsWith(ext); +}; +const qmarksTestNocaseDot = ([$0, ext = '']) => { + const noext = qmarksTestNoExtDot([$0]); + if (!ext) + return noext; + ext = ext.toLowerCase(); + return (f) => noext(f) && f.toLowerCase().endsWith(ext); +}; +const qmarksTestDot = ([$0, ext = '']) => { + const noext = qmarksTestNoExtDot([$0]); + return !ext ? noext : (f) => noext(f) && f.endsWith(ext); +}; +const qmarksTest = ([$0, ext = '']) => { + const noext = qmarksTestNoExt([$0]); + return !ext ? noext : (f) => noext(f) && f.endsWith(ext); +}; +const qmarksTestNoExt = ([$0]) => { + const len = $0.length; + return (f) => f.length === len && !f.startsWith('.'); +}; +const qmarksTestNoExtDot = ([$0]) => { + const len = $0.length; + return (f) => f.length === len && f !== '.' && f !== '..'; +}; +/* c8 ignore start */ +const defaultPlatform = (typeof process === 'object' && process + ? (typeof process.env === 'object' && + process.env && + process.env.__MINIMATCH_TESTING_PLATFORM__) || + process.platform + : 'posix'); +const path = { + win32: { sep: '\\' }, + posix: { sep: '/' }, +}; +/* c8 ignore stop */ +exports.sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep; +exports.minimatch.sep = exports.sep; +exports.GLOBSTAR = Symbol('globstar **'); +exports.minimatch.GLOBSTAR = exports.GLOBSTAR; +// any single thing other than / +// don't need to escape / when using new RegExp() +const qmark = '[^/]'; +// * => any number of characters +const star = qmark + '*?'; +// ** when dots are allowed. Anything goes, except .. and . +// not (^ or / followed by one or two dots followed by $ or /), +// followed by anything, any number of times. +const twoStarDot = '(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?'; +// not a ^ or / followed by a dot, +// followed by anything, any number of times. +const twoStarNoDot = '(?:(?!(?:\\/|^)\\.).)*?'; +const filter = (pattern, options = {}) => (p) => (0, exports.minimatch)(p, pattern, options); +exports.filter = filter; +exports.minimatch.filter = exports.filter; +const ext = (a, b = {}) => Object.assign({}, a, b); +const defaults = (def) => { + if (!def || typeof def !== 'object' || !Object.keys(def).length) { + return exports.minimatch; + } + const orig = exports.minimatch; + const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options)); + return Object.assign(m, { + Minimatch: class Minimatch extends orig.Minimatch { + constructor(pattern, options = {}) { + super(pattern, ext(def, options)); + } + static defaults(options) { + return orig.defaults(ext(def, options)).Minimatch; + } + }, + AST: class AST extends orig.AST { + /* c8 ignore start */ + constructor(type, parent, options = {}) { + super(type, parent, ext(def, options)); + } + /* c8 ignore stop */ + static fromGlob(pattern, options = {}) { + return orig.AST.fromGlob(pattern, ext(def, options)); + } + }, + unescape: (s, options = {}) => orig.unescape(s, ext(def, options)), + escape: (s, options = {}) => orig.escape(s, ext(def, options)), + filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)), + defaults: (options) => orig.defaults(ext(def, options)), + makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)), + braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)), + match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)), + sep: orig.sep, + GLOBSTAR: exports.GLOBSTAR, + }); +}; +exports.defaults = defaults; +exports.minimatch.defaults = exports.defaults; +// Brace expansion: +// a{b,c}d -> abd acd +// a{b,}c -> abc ac +// a{0..3}d -> a0d a1d a2d a3d +// a{b,c{d,e}f}g -> abg acdfg acefg +// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg +// +// Invalid sets are not expanded. +// a{2..}b -> a{2..}b +// a{b}c -> a{b}c +const braceExpand = (pattern, options = {}) => { + (0, assert_valid_pattern_js_1.assertValidPattern)(pattern); + // Thanks to Yeting Li for + // improving this regexp to avoid a ReDOS vulnerability. + if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { + // shortcut. no need to expand. + return [pattern]; + } + return (0, brace_expansion_1.default)(pattern); +}; +exports.braceExpand = braceExpand; +exports.minimatch.braceExpand = exports.braceExpand; +// parse a component of the expanded set. +// At this point, no pattern may contain "/" in it +// so we're going to return a 2d array, where each entry is the full +// pattern, split on '/', and then turned into a regular expression. +// A regexp is made at the end which joins each array with an +// escaped /, and another full one which joins each regexp with |. +// +// Following the lead of Bash 4.1, note that "**" only has special meaning +// when it is the *only* thing in a path portion. Otherwise, any series +// of * is equivalent to a single *. Globstar behavior is enabled by +// default, and can be disabled by setting options.noglobstar. +const makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe(); +exports.makeRe = makeRe; +exports.minimatch.makeRe = exports.makeRe; +const match = (list, pattern, options = {}) => { + const mm = new Minimatch(pattern, options); + list = list.filter(f => mm.match(f)); + if (mm.options.nonull && !list.length) { + list.push(pattern); + } + return list; +}; +exports.match = match; +exports.minimatch.match = exports.match; +// replace stuff like \* with * +const globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/; +const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); +class Minimatch { + options; + set; + pattern; + windowsPathsNoEscape; + nonegate; + negate; + comment; + empty; + preserveMultipleSlashes; + partial; + globSet; + globParts; + nocase; + isWindows; + platform; + windowsNoMagicRoot; + regexp; + constructor(pattern, options = {}) { + (0, assert_valid_pattern_js_1.assertValidPattern)(pattern); + options = options || {}; + this.options = options; + this.pattern = pattern; + this.platform = options.platform || defaultPlatform; + this.isWindows = this.platform === 'win32'; + this.windowsPathsNoEscape = + !!options.windowsPathsNoEscape || options.allowWindowsEscape === false; + if (this.windowsPathsNoEscape) { + this.pattern = this.pattern.replace(/\\/g, '/'); + } + this.preserveMultipleSlashes = !!options.preserveMultipleSlashes; + this.regexp = null; + this.negate = false; + this.nonegate = !!options.nonegate; + this.comment = false; + this.empty = false; + this.partial = !!options.partial; + this.nocase = !!this.options.nocase; + this.windowsNoMagicRoot = + options.windowsNoMagicRoot !== undefined + ? options.windowsNoMagicRoot + : !!(this.isWindows && this.nocase); + this.globSet = []; + this.globParts = []; + this.set = []; + // make the set of regexps etc. + this.make(); + } + hasMagic() { + if (this.options.magicalBraces && this.set.length > 1) { + return true; + } + for (const pattern of this.set) { + for (const part of pattern) { + if (typeof part !== 'string') + return true; + } + } + return false; + } + debug(..._) { } + make() { + const pattern = this.pattern; + const options = this.options; + // empty patterns and comments match nothing. + if (!options.nocomment && pattern.charAt(0) === '#') { + this.comment = true; + return; + } + if (!pattern) { + this.empty = true; + return; + } + // step 1: figure out negation, etc. + this.parseNegate(); + // step 2: expand braces + this.globSet = [...new Set(this.braceExpand())]; + if (options.debug) { + this.debug = (...args) => console.error(...args); + } + this.debug(this.pattern, this.globSet); + // step 3: now we have a set, so turn each one into a series of + // path-portion matching patterns. + // These will be regexps, except in the case of "**", which is + // set to the GLOBSTAR object for globstar behavior, + // and will not contain any / characters + // + // First, we preprocess to make the glob pattern sets a bit simpler + // and deduped. There are some perf-killing patterns that can cause + // problems with a glob walk, but we can simplify them down a bit. + const rawGlobParts = this.globSet.map(s => this.slashSplit(s)); + this.globParts = this.preprocess(rawGlobParts); + this.debug(this.pattern, this.globParts); + // glob --> regexps + let set = this.globParts.map((s, _, __) => { + if (this.isWindows && this.windowsNoMagicRoot) { + // check if it's a drive or unc path. + const isUNC = s[0] === '' && + s[1] === '' && + (s[2] === '?' || !globMagic.test(s[2])) && + !globMagic.test(s[3]); + const isDrive = /^[a-z]:/i.test(s[0]); + if (isUNC) { + return [...s.slice(0, 4), ...s.slice(4).map(ss => this.parse(ss))]; + } + else if (isDrive) { + return [s[0], ...s.slice(1).map(ss => this.parse(ss))]; + } + } + return s.map(ss => this.parse(ss)); + }); + this.debug(this.pattern, set); + // filter out everything that didn't compile properly. + this.set = set.filter(s => s.indexOf(false) === -1); + // do not treat the ? in UNC paths as magic + if (this.isWindows) { + for (let i = 0; i < this.set.length; i++) { + const p = this.set[i]; + if (p[0] === '' && + p[1] === '' && + this.globParts[i][2] === '?' && + typeof p[3] === 'string' && + /^[a-z]:$/i.test(p[3])) { + p[2] = '?'; + } + } + } + this.debug(this.pattern, this.set); + } + // various transforms to equivalent pattern sets that are + // faster to process in a filesystem walk. The goal is to + // eliminate what we can, and push all ** patterns as far + // to the right as possible, even if it increases the number + // of patterns that we have to process. + preprocess(globParts) { + // if we're not in globstar mode, then turn all ** into * + if (this.options.noglobstar) { + for (let i = 0; i < globParts.length; i++) { + for (let j = 0; j < globParts[i].length; j++) { + if (globParts[i][j] === '**') { + globParts[i][j] = '*'; + } + } + } + } + const { optimizationLevel = 1 } = this.options; + if (optimizationLevel >= 2) { + // aggressive optimization for the purpose of fs walking + globParts = this.firstPhasePreProcess(globParts); + globParts = this.secondPhasePreProcess(globParts); + } + else if (optimizationLevel >= 1) { + // just basic optimizations to remove some .. parts + globParts = this.levelOneOptimize(globParts); + } + else { + globParts = this.adjascentGlobstarOptimize(globParts); + } + return globParts; + } + // just get rid of adjascent ** portions + adjascentGlobstarOptimize(globParts) { + return globParts.map(parts => { + let gs = -1; + while (-1 !== (gs = parts.indexOf('**', gs + 1))) { + let i = gs; + while (parts[i + 1] === '**') { + i++; + } + if (i !== gs) { + parts.splice(gs, i - gs); + } + } + return parts; + }); + } + // get rid of adjascent ** and resolve .. portions + levelOneOptimize(globParts) { + return globParts.map(parts => { + parts = parts.reduce((set, part) => { + const prev = set[set.length - 1]; + if (part === '**' && prev === '**') { + return set; + } + if (part === '..') { + if (prev && prev !== '..' && prev !== '.' && prev !== '**') { + set.pop(); + return set; + } + } + set.push(part); + return set; + }, []); + return parts.length === 0 ? [''] : parts; + }); + } + levelTwoFileOptimize(parts) { + if (!Array.isArray(parts)) { + parts = this.slashSplit(parts); + } + let didSomething = false; + do { + didSomething = false; + //
// -> 
/
+            if (!this.preserveMultipleSlashes) {
+                for (let i = 1; i < parts.length - 1; i++) {
+                    const p = parts[i];
+                    // don't squeeze out UNC patterns
+                    if (i === 1 && p === '' && parts[0] === '')
+                        continue;
+                    if (p === '.' || p === '') {
+                        didSomething = true;
+                        parts.splice(i, 1);
+                        i--;
+                    }
+                }
+                if (parts[0] === '.' &&
+                    parts.length === 2 &&
+                    (parts[1] === '.' || parts[1] === '')) {
+                    didSomething = true;
+                    parts.pop();
+                }
+            }
+            // 
/

/../ ->

/
+            let dd = 0;
+            while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
+                const p = parts[dd - 1];
+                if (p && p !== '.' && p !== '..' && p !== '**') {
+                    didSomething = true;
+                    parts.splice(dd - 1, 2);
+                    dd -= 2;
+                }
+            }
+        } while (didSomething);
+        return parts.length === 0 ? [''] : parts;
+    }
+    // First phase: single-pattern processing
+    // 
 is 1 or more portions
+    //  is 1 or more portions
+    // 

is any portion other than ., .., '', or ** + // is . or '' + // + // **/.. is *brutal* for filesystem walking performance, because + // it effectively resets the recursive walk each time it occurs, + // and ** cannot be reduced out by a .. pattern part like a regexp + // or most strings (other than .., ., and '') can be. + // + //

/**/../

/

/ -> {

/../

/

/,

/**/

/

/} + //

// -> 
/
+    // 
/

/../ ->

/
+    // **/**/ -> **/
+    //
+    // **/*/ -> */**/ <== not valid because ** doesn't follow
+    // this WOULD be allowed if ** did follow symlinks, or * didn't
+    firstPhasePreProcess(globParts) {
+        let didSomething = false;
+        do {
+            didSomething = false;
+            // 
/**/../

/

/ -> {

/../

/

/,

/**/

/

/} + for (let parts of globParts) { + let gs = -1; + while (-1 !== (gs = parts.indexOf('**', gs + 1))) { + let gss = gs; + while (parts[gss + 1] === '**') { + //

/**/**/ -> 
/**/
+                        gss++;
+                    }
+                    // eg, if gs is 2 and gss is 4, that means we have 3 **
+                    // parts, and can remove 2 of them.
+                    if (gss > gs) {
+                        parts.splice(gs + 1, gss - gs);
+                    }
+                    let next = parts[gs + 1];
+                    const p = parts[gs + 2];
+                    const p2 = parts[gs + 3];
+                    if (next !== '..')
+                        continue;
+                    if (!p ||
+                        p === '.' ||
+                        p === '..' ||
+                        !p2 ||
+                        p2 === '.' ||
+                        p2 === '..') {
+                        continue;
+                    }
+                    didSomething = true;
+                    // edit parts in place, and push the new one
+                    parts.splice(gs, 1);
+                    const other = parts.slice(0);
+                    other[gs] = '**';
+                    globParts.push(other);
+                    gs--;
+                }
+                // 
// -> 
/
+                if (!this.preserveMultipleSlashes) {
+                    for (let i = 1; i < parts.length - 1; i++) {
+                        const p = parts[i];
+                        // don't squeeze out UNC patterns
+                        if (i === 1 && p === '' && parts[0] === '')
+                            continue;
+                        if (p === '.' || p === '') {
+                            didSomething = true;
+                            parts.splice(i, 1);
+                            i--;
+                        }
+                    }
+                    if (parts[0] === '.' &&
+                        parts.length === 2 &&
+                        (parts[1] === '.' || parts[1] === '')) {
+                        didSomething = true;
+                        parts.pop();
+                    }
+                }
+                // 
/

/../ ->

/
+                let dd = 0;
+                while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
+                    const p = parts[dd - 1];
+                    if (p && p !== '.' && p !== '..' && p !== '**') {
+                        didSomething = true;
+                        const needDot = dd === 1 && parts[dd + 1] === '**';
+                        const splin = needDot ? ['.'] : [];
+                        parts.splice(dd - 1, 2, ...splin);
+                        if (parts.length === 0)
+                            parts.push('');
+                        dd -= 2;
+                    }
+                }
+            }
+        } while (didSomething);
+        return globParts;
+    }
+    // second phase: multi-pattern dedupes
+    // {
/*/,
/

/} ->

/*/
+    // {
/,
/} -> 
/
+    // {
/**/,
/} -> 
/**/
+    //
+    // {
/**/,
/**/

/} ->

/**/
+    // ^-- not valid because ** doens't follow symlinks
+    secondPhasePreProcess(globParts) {
+        for (let i = 0; i < globParts.length - 1; i++) {
+            for (let j = i + 1; j < globParts.length; j++) {
+                const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
+                if (!matched)
+                    continue;
+                globParts[i] = matched;
+                globParts[j] = [];
+            }
+        }
+        return globParts.filter(gs => gs.length);
+    }
+    partsMatch(a, b, emptyGSMatch = false) {
+        let ai = 0;
+        let bi = 0;
+        let result = [];
+        let which = '';
+        while (ai < a.length && bi < b.length) {
+            if (a[ai] === b[bi]) {
+                result.push(which === 'b' ? b[bi] : a[ai]);
+                ai++;
+                bi++;
+            }
+            else if (emptyGSMatch && a[ai] === '**' && b[bi] === a[ai + 1]) {
+                result.push(a[ai]);
+                ai++;
+            }
+            else if (emptyGSMatch && b[bi] === '**' && a[ai] === b[bi + 1]) {
+                result.push(b[bi]);
+                bi++;
+            }
+            else if (a[ai] === '*' &&
+                b[bi] &&
+                (this.options.dot || !b[bi].startsWith('.')) &&
+                b[bi] !== '**') {
+                if (which === 'b')
+                    return false;
+                which = 'a';
+                result.push(a[ai]);
+                ai++;
+                bi++;
+            }
+            else if (b[bi] === '*' &&
+                a[ai] &&
+                (this.options.dot || !a[ai].startsWith('.')) &&
+                a[ai] !== '**') {
+                if (which === 'a')
+                    return false;
+                which = 'b';
+                result.push(b[bi]);
+                ai++;
+                bi++;
+            }
+            else {
+                return false;
+            }
+        }
+        // if we fall out of the loop, it means they two are identical
+        // as long as their lengths match
+        return a.length === b.length && result;
+    }
+    parseNegate() {
+        if (this.nonegate)
+            return;
+        const pattern = this.pattern;
+        let negate = false;
+        let negateOffset = 0;
+        for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {
+            negate = !negate;
+            negateOffset++;
+        }
+        if (negateOffset)
+            this.pattern = pattern.slice(negateOffset);
+        this.negate = negate;
+    }
+    // set partial to true to test if, for example,
+    // "/a/b" matches the start of "/*/b/*/d"
+    // Partial means, if you run out of file before you run
+    // out of pattern, then that's fine, as long as all
+    // the parts match.
+    matchOne(file, pattern, partial = false) {
+        const options = this.options;
+        // UNC paths like //?/X:/... can match X:/... and vice versa
+        // Drive letters in absolute drive or unc paths are always compared
+        // case-insensitively.
+        if (this.isWindows) {
+            const fileDrive = typeof file[0] === 'string' && /^[a-z]:$/i.test(file[0]);
+            const fileUNC = !fileDrive &&
+                file[0] === '' &&
+                file[1] === '' &&
+                file[2] === '?' &&
+                /^[a-z]:$/i.test(file[3]);
+            const patternDrive = typeof pattern[0] === 'string' && /^[a-z]:$/i.test(pattern[0]);
+            const patternUNC = !patternDrive &&
+                pattern[0] === '' &&
+                pattern[1] === '' &&
+                pattern[2] === '?' &&
+                typeof pattern[3] === 'string' &&
+                /^[a-z]:$/i.test(pattern[3]);
+            const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
+            const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
+            if (typeof fdi === 'number' && typeof pdi === 'number') {
+                const [fd, pd] = [file[fdi], pattern[pdi]];
+                if (fd.toLowerCase() === pd.toLowerCase()) {
+                    pattern[pdi] = fd;
+                    if (pdi > fdi) {
+                        pattern = pattern.slice(pdi);
+                    }
+                    else if (fdi > pdi) {
+                        file = file.slice(fdi);
+                    }
+                }
+            }
+        }
+        // resolve and reduce . and .. portions in the file as well.
+        // dont' need to do the second phase, because it's only one string[]
+        const { optimizationLevel = 1 } = this.options;
+        if (optimizationLevel >= 2) {
+            file = this.levelTwoFileOptimize(file);
+        }
+        this.debug('matchOne', this, { file, pattern });
+        this.debug('matchOne', file.length, pattern.length);
+        for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
+            this.debug('matchOne loop');
+            var p = pattern[pi];
+            var f = file[fi];
+            this.debug(pattern, p, f);
+            // should be impossible.
+            // some invalid regexp stuff in the set.
+            /* c8 ignore start */
+            if (p === false) {
+                return false;
+            }
+            /* c8 ignore stop */
+            if (p === exports.GLOBSTAR) {
+                this.debug('GLOBSTAR', [pattern, p, f]);
+                // "**"
+                // a/**/b/**/c would match the following:
+                // a/b/x/y/z/c
+                // a/x/y/z/b/c
+                // a/b/x/b/x/c
+                // a/b/c
+                // To do this, take the rest of the pattern after
+                // the **, and see if it would match the file remainder.
+                // If so, return success.
+                // If not, the ** "swallows" a segment, and try again.
+                // This is recursively awful.
+                //
+                // a/**/b/**/c matching a/b/x/y/z/c
+                // - a matches a
+                // - doublestar
+                //   - matchOne(b/x/y/z/c, b/**/c)
+                //     - b matches b
+                //     - doublestar
+                //       - matchOne(x/y/z/c, c) -> no
+                //       - matchOne(y/z/c, c) -> no
+                //       - matchOne(z/c, c) -> no
+                //       - matchOne(c, c) yes, hit
+                var fr = fi;
+                var pr = pi + 1;
+                if (pr === pl) {
+                    this.debug('** at the end');
+                    // a ** at the end will just swallow the rest.
+                    // We have found a match.
+                    // however, it will not swallow /.x, unless
+                    // options.dot is set.
+                    // . and .. are *never* matched by **, for explosively
+                    // exponential reasons.
+                    for (; fi < fl; fi++) {
+                        if (file[fi] === '.' ||
+                            file[fi] === '..' ||
+                            (!options.dot && file[fi].charAt(0) === '.'))
+                            return false;
+                    }
+                    return true;
+                }
+                // ok, let's see if we can swallow whatever we can.
+                while (fr < fl) {
+                    var swallowee = file[fr];
+                    this.debug('\nglobstar while', file, fr, pattern, pr, swallowee);
+                    // XXX remove this slice.  Just pass the start index.
+                    if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
+                        this.debug('globstar found match!', fr, fl, swallowee);
+                        // found a match.
+                        return true;
+                    }
+                    else {
+                        // can't swallow "." or ".." ever.
+                        // can only swallow ".foo" when explicitly asked.
+                        if (swallowee === '.' ||
+                            swallowee === '..' ||
+                            (!options.dot && swallowee.charAt(0) === '.')) {
+                            this.debug('dot detected!', file, fr, pattern, pr);
+                            break;
+                        }
+                        // ** swallows a segment, and continue.
+                        this.debug('globstar swallow a segment, and continue');
+                        fr++;
+                    }
+                }
+                // no match was found.
+                // However, in partial mode, we can't say this is necessarily over.
+                /* c8 ignore start */
+                if (partial) {
+                    // ran out of file
+                    this.debug('\n>>> no match, partial?', file, fr, pattern, pr);
+                    if (fr === fl) {
+                        return true;
+                    }
+                }
+                /* c8 ignore stop */
+                return false;
+            }
+            // something other than **
+            // non-magic patterns just have to match exactly
+            // patterns with magic have been turned into regexps.
+            let hit;
+            if (typeof p === 'string') {
+                hit = f === p;
+                this.debug('string match', p, f, hit);
+            }
+            else {
+                hit = p.test(f);
+                this.debug('pattern match', p, f, hit);
+            }
+            if (!hit)
+                return false;
+        }
+        // Note: ending in / means that we'll get a final ""
+        // at the end of the pattern.  This can only match a
+        // corresponding "" at the end of the file.
+        // If the file ends in /, then it can only match a
+        // a pattern that ends in /, unless the pattern just
+        // doesn't have any more for it. But, a/b/ should *not*
+        // match "a/b/*", even though "" matches against the
+        // [^/]*? pattern, except in partial mode, where it might
+        // simply not be reached yet.
+        // However, a/b/ should still satisfy a/*
+        // now either we fell off the end of the pattern, or we're done.
+        if (fi === fl && pi === pl) {
+            // ran out of pattern and filename at the same time.
+            // an exact hit!
+            return true;
+        }
+        else if (fi === fl) {
+            // ran out of file, but still had pattern left.
+            // this is ok if we're doing the match as part of
+            // a glob fs traversal.
+            return partial;
+        }
+        else if (pi === pl) {
+            // ran out of pattern, still have file left.
+            // this is only acceptable if we're on the very last
+            // empty segment of a file with a trailing slash.
+            // a/* should match a/b/
+            return fi === fl - 1 && file[fi] === '';
+            /* c8 ignore start */
+        }
+        else {
+            // should be unreachable.
+            throw new Error('wtf?');
+        }
+        /* c8 ignore stop */
+    }
+    braceExpand() {
+        return (0, exports.braceExpand)(this.pattern, this.options);
+    }
+    parse(pattern) {
+        (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
+        const options = this.options;
+        // shortcuts
+        if (pattern === '**')
+            return exports.GLOBSTAR;
+        if (pattern === '')
+            return '';
+        // far and away, the most common glob pattern parts are
+        // *, *.*, and *.  Add a fast check method for those.
+        let m;
+        let fastTest = null;
+        if ((m = pattern.match(starRE))) {
+            fastTest = options.dot ? starTestDot : starTest;
+        }
+        else if ((m = pattern.match(starDotExtRE))) {
+            fastTest = (options.nocase
+                ? options.dot
+                    ? starDotExtTestNocaseDot
+                    : starDotExtTestNocase
+                : options.dot
+                    ? starDotExtTestDot
+                    : starDotExtTest)(m[1]);
+        }
+        else if ((m = pattern.match(qmarksRE))) {
+            fastTest = (options.nocase
+                ? options.dot
+                    ? qmarksTestNocaseDot
+                    : qmarksTestNocase
+                : options.dot
+                    ? qmarksTestDot
+                    : qmarksTest)(m);
+        }
+        else if ((m = pattern.match(starDotStarRE))) {
+            fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
+        }
+        else if ((m = pattern.match(dotStarRE))) {
+            fastTest = dotStarTest;
+        }
+        const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();
+        return fastTest ? Object.assign(re, { test: fastTest }) : re;
+    }
+    makeRe() {
+        if (this.regexp || this.regexp === false)
+            return this.regexp;
+        // at this point, this.set is a 2d array of partial
+        // pattern strings, or "**".
+        //
+        // It's better to use .match().  This function shouldn't
+        // be used, really, but it's pretty convenient sometimes,
+        // when you just want to work with a regex.
+        const set = this.set;
+        if (!set.length) {
+            this.regexp = false;
+            return this.regexp;
+        }
+        const options = this.options;
+        const twoStar = options.noglobstar
+            ? star
+            : options.dot
+                ? twoStarDot
+                : twoStarNoDot;
+        const flags = new Set(options.nocase ? ['i'] : []);
+        // regexpify non-globstar patterns
+        // if ** is only item, then we just do one twoStar
+        // if ** is first, and there are more, prepend (\/|twoStar\/)? to next
+        // if ** is last, append (\/twoStar|) to previous
+        // if ** is in the middle, append (\/|\/twoStar\/) to previous
+        // then filter out GLOBSTAR symbols
+        let re = set
+            .map(pattern => {
+            const pp = pattern.map(p => {
+                if (p instanceof RegExp) {
+                    for (const f of p.flags.split(''))
+                        flags.add(f);
+                }
+                return typeof p === 'string'
+                    ? regExpEscape(p)
+                    : p === exports.GLOBSTAR
+                        ? exports.GLOBSTAR
+                        : p._src;
+            });
+            pp.forEach((p, i) => {
+                const next = pp[i + 1];
+                const prev = pp[i - 1];
+                if (p !== exports.GLOBSTAR || prev === exports.GLOBSTAR) {
+                    return;
+                }
+                if (prev === undefined) {
+                    if (next !== undefined && next !== exports.GLOBSTAR) {
+                        pp[i + 1] = '(?:\\/|' + twoStar + '\\/)?' + next;
+                    }
+                    else {
+                        pp[i] = twoStar;
+                    }
+                }
+                else if (next === undefined) {
+                    pp[i - 1] = prev + '(?:\\/|' + twoStar + ')?';
+                }
+                else if (next !== exports.GLOBSTAR) {
+                    pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + '\\/)' + next;
+                    pp[i + 1] = exports.GLOBSTAR;
+                }
+            });
+            return pp.filter(p => p !== exports.GLOBSTAR).join('/');
+        })
+            .join('|');
+        // need to wrap in parens if we had more than one thing with |,
+        // otherwise only the first will be anchored to ^ and the last to $
+        const [open, close] = set.length > 1 ? ['(?:', ')'] : ['', ''];
+        // must match entire pattern
+        // ending in a * or ** will make it less strict.
+        re = '^' + open + re + close + '$';
+        // can match anything, as long as it's not this.
+        if (this.negate)
+            re = '^(?!' + re + ').+$';
+        try {
+            this.regexp = new RegExp(re, [...flags].join(''));
+            /* c8 ignore start */
+        }
+        catch (ex) {
+            // should be impossible
+            this.regexp = false;
+        }
+        /* c8 ignore stop */
+        return this.regexp;
+    }
+    slashSplit(p) {
+        // if p starts with // on windows, we preserve that
+        // so that UNC paths aren't broken.  Otherwise, any number of
+        // / characters are coalesced into one, unless
+        // preserveMultipleSlashes is set to true.
+        if (this.preserveMultipleSlashes) {
+            return p.split('/');
+        }
+        else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
+            // add an extra '' for the one we lose
+            return ['', ...p.split(/\/+/)];
+        }
+        else {
+            return p.split(/\/+/);
+        }
+    }
+    match(f, partial = this.partial) {
+        this.debug('match', f, this.pattern);
+        // short-circuit in the case of busted things.
+        // comments, etc.
+        if (this.comment) {
+            return false;
+        }
+        if (this.empty) {
+            return f === '';
+        }
+        if (f === '/' && partial) {
+            return true;
+        }
+        const options = this.options;
+        // windows: need to use /, not \
+        if (this.isWindows) {
+            f = f.split('\\').join('/');
+        }
+        // treat the test path as a set of pathparts.
+        const ff = this.slashSplit(f);
+        this.debug(this.pattern, 'split', ff);
+        // just ONE of the pattern sets in this.set needs to match
+        // in order for it to be valid.  If negating, then just one
+        // match means that we have failed.
+        // Either way, return on the first hit.
+        const set = this.set;
+        this.debug(this.pattern, 'set', set);
+        // Find the basename of the path by looking for the last non-empty segment
+        let filename = ff[ff.length - 1];
+        if (!filename) {
+            for (let i = ff.length - 2; !filename && i >= 0; i--) {
+                filename = ff[i];
+            }
+        }
+        for (let i = 0; i < set.length; i++) {
+            const pattern = set[i];
+            let file = ff;
+            if (options.matchBase && pattern.length === 1) {
+                file = [filename];
+            }
+            const hit = this.matchOne(file, pattern, partial);
+            if (hit) {
+                if (options.flipNegate) {
+                    return true;
+                }
+                return !this.negate;
+            }
+        }
+        // didn't get any hits.  this is success if it's a negative
+        // pattern, failure otherwise.
+        if (options.flipNegate) {
+            return false;
+        }
+        return this.negate;
+    }
+    static defaults(def) {
+        return exports.minimatch.defaults(def).Minimatch;
+    }
+}
+exports.Minimatch = Minimatch;
+/* c8 ignore start */
+var ast_js_2 = __nccwpck_require__(81227);
+Object.defineProperty(exports, "AST", ({ enumerable: true, get: function () { return ast_js_2.AST; } }));
+var escape_js_2 = __nccwpck_require__(67350);
+Object.defineProperty(exports, "escape", ({ enumerable: true, get: function () { return escape_js_2.escape; } }));
+var unescape_js_2 = __nccwpck_require__(40391);
+Object.defineProperty(exports, "unescape", ({ enumerable: true, get: function () { return unescape_js_2.unescape; } }));
+/* c8 ignore stop */
+exports.minimatch.AST = ast_js_1.AST;
+exports.minimatch.Minimatch = Minimatch;
+exports.minimatch.escape = escape_js_1.escape;
+exports.minimatch.unescape = unescape_js_1.unescape;
+//# sourceMappingURL=index.js.map
 
 /***/ }),
 
-/***/ 57310:
-/***/ ((module) => {
+/***/ 40391:
+/***/ ((__unused_webpack_module, exports) => {
 
 "use strict";
-module.exports = require("url");
 
-/***/ }),
-
-/***/ 73837:
-/***/ ((module) => {
-
-"use strict";
-module.exports = require("util");
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.unescape = void 0;
+/**
+ * Un-escape a string that has been escaped with {@link escape}.
+ *
+ * If the {@link windowsPathsNoEscape} option is used, then square-brace
+ * escapes are removed, but not backslash escapes.  For example, it will turn
+ * the string `'[*]'` into `*`, but it will not turn `'\\*'` into `'*'`,
+ * becuase `\` is a path separator in `windowsPathsNoEscape` mode.
+ *
+ * When `windowsPathsNoEscape` is not set, then both brace escapes and
+ * backslash escapes are removed.
+ *
+ * Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
+ * or unescaped.
+ */
+const unescape = (s, { windowsPathsNoEscape = false, } = {}) => {
+    return windowsPathsNoEscape
+        ? s.replace(/\[([^\/\\])\]/g, '$1')
+        : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, '$1$2').replace(/\\([^\/])/g, '$1');
+};
+exports.unescape = unescape;
+//# sourceMappingURL=unescape.js.map
 
 /***/ }),
 
-/***/ 26144:
-/***/ ((module) => {
+/***/ 45205:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
-module.exports = require("vm");
-
-/***/ }),
 
-/***/ 59796:
-/***/ ((module) => {
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.NxAngularJsonPlugin = exports.NX_ANGULAR_JSON_PLUGIN_NAME = void 0;
+exports.shouldMergeAngularProjects = shouldMergeAngularProjects;
+exports.isAngularPluginInstalled = isAngularPluginInstalled;
+exports.toNewFormat = toNewFormat;
+exports.toOldFormat = toOldFormat;
+exports.renamePropertyWithStableKeys = renamePropertyWithStableKeys;
+const fs_1 = __nccwpck_require__(57147);
+const path = __nccwpck_require__(71017);
+const fileutils_1 = __nccwpck_require__(40910);
+exports.NX_ANGULAR_JSON_PLUGIN_NAME = 'nx-angular-json-plugin';
+exports.NxAngularJsonPlugin = {
+    name: exports.NX_ANGULAR_JSON_PLUGIN_NAME,
+    createNodes: [
+        'angular.json',
+        (f, _, ctx) => ({
+            projects: readAngularJson(ctx.workspaceRoot),
+        }),
+    ],
+};
+exports["default"] = exports.NxAngularJsonPlugin;
+function shouldMergeAngularProjects(root, includeProjectsFromAngularJson) {
+    if ((0, fs_1.existsSync)(path.join(root, 'angular.json')) &&
+        // Include projects from angular.json if explicitly required.
+        // e.g. when invoked from `packages/devkit/src/utils/convert-nx-executor.ts`
+        (includeProjectsFromAngularJson ||
+            // Or if a workspace has `@nrwl/angular`/`@nx/angular` installed then projects from `angular.json` to be considered by Nx.
+            isAngularPluginInstalled())) {
+        return true;
+    }
+    else {
+        return false;
+    }
+}
+function isAngularPluginInstalled() {
+    try {
+        // nx-ignore-next-line
+        require.resolve('@nx/angular');
+        return true;
+    }
+    catch {
+        try {
+            require.resolve('@nrwl/angular');
+            return true;
+        }
+        catch {
+            return false;
+        }
+    }
+}
+function readAngularJson(angularCliWorkspaceRoot) {
+    return toNewFormat((0, fileutils_1.readJsonFile)(path.join(angularCliWorkspaceRoot, 'angular.json'))).projects;
+}
+function toNewFormat(w) {
+    if (!w.projects) {
+        return w;
+    }
+    for (const name in w.projects ?? {}) {
+        const projectConfig = w.projects[name];
+        if (projectConfig.architect) {
+            renamePropertyWithStableKeys(projectConfig, 'architect', 'targets');
+        }
+        if (projectConfig.schematics) {
+            renamePropertyWithStableKeys(projectConfig, 'schematics', 'generators');
+        }
+        if (!projectConfig.name) {
+            projectConfig.name = name;
+        }
+        Object.values(projectConfig.targets || {}).forEach((target) => {
+            if (target.builder !== undefined) {
+                renamePropertyWithStableKeys(target, 'builder', 'executor');
+            }
+        });
+    }
+    if (w.schematics) {
+        renamePropertyWithStableKeys(w, 'schematics', 'generators');
+    }
+    if (w.version !== 2) {
+        w.version = 2;
+    }
+    return w;
+}
+function toOldFormat(w) {
+    if (w.projects) {
+        for (const name in w.projects) {
+            const projectConfig = w.projects[name];
+            if (typeof projectConfig === 'string') {
+                throw new Error("'project.json' files are incompatible with version 1 workspace schemas.");
+            }
+            if (projectConfig.targets) {
+                renamePropertyWithStableKeys(projectConfig, 'targets', 'architect');
+            }
+            if (projectConfig.generators) {
+                renamePropertyWithStableKeys(projectConfig, 'generators', 'schematics');
+            }
+            delete projectConfig.name;
+            Object.values(projectConfig.architect || {}).forEach((target) => {
+                if (target.executor !== undefined) {
+                    renamePropertyWithStableKeys(target, 'executor', 'builder');
+                }
+            });
+        }
+    }
+    if (w.generators) {
+        renamePropertyWithStableKeys(w, 'generators', 'schematics');
+    }
+    if (w.version !== 1) {
+        w.version = 1;
+    }
+    return w;
+}
+// we have to do it this way to preserve the order of properties
+// not to screw up the formatting
+function renamePropertyWithStableKeys(obj, from, to) {
+    const copy = { ...obj };
+    Object.keys(obj).forEach((k) => {
+        delete obj[k];
+    });
+    Object.keys(copy).forEach((k) => {
+        if (k === from) {
+            obj[to] = copy[k];
+        }
+        else {
+            obj[k] = copy[k];
+        }
+    });
+}
 
-"use strict";
-module.exports = require("zlib");
 
 /***/ }),
 
-/***/ 37840:
-/***/ ((__unused_webpack_module, exports) => {
+/***/ 53882:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.assertValidPattern = void 0;
-const MAX_PATTERN_LENGTH = 1024 * 64;
-const assertValidPattern = (pattern) => {
-    if (typeof pattern !== 'string') {
-        throw new TypeError('invalid pattern');
+exports.allowedWorkspaceExtensions = exports.allowedProjectExtensions = void 0;
+const project_graph_1 = __nccwpck_require__(54913);
+const configuration_1 = __nccwpck_require__(34333);
+const angular_json_1 = __nccwpck_require__(45205);
+/* eslint-disable */
+const Module = __nccwpck_require__(98188);
+const originalRequire = Module.prototype.require;
+let patched = false;
+// If we pass props on a project that angular doesn't know about,
+// it throws a warning that users see. We want to pass them still,
+// so older plugins writtin in Ng Devkit can update these.
+//
+// There are some props in here (root) that angular already knows about,
+// but it doesn't hurt to have them in here as well to help static analysis.
+exports.allowedProjectExtensions = [
+    'tags',
+    'implicitDependencies',
+    'configFilePath',
+    '$schema',
+    'generators',
+    'namedInputs',
+    'name',
+    'files',
+    'root',
+    'sourceRoot',
+    'projectType',
+    'release',
+    'includedScripts',
+    'metadata',
+];
+// If we pass props on the workspace that angular doesn't know about,
+// it throws a warning that users see. We want to pass them still,
+// so older plugins writtin in Ng Devkit can update these.
+//
+// There are some props in here (root) that angular already knows about,
+// but it doesn't hurt to have them in here as well to help static analysis.
+exports.allowedWorkspaceExtensions = [
+    'implicitDependencies',
+    'affected',
+    'defaultBase',
+    'tasksRunnerOptions',
+    'workspaceLayout',
+    'plugins',
+    'targetDefaults',
+    'files',
+    'generators',
+    'namedInputs',
+    'extends',
+    'cli',
+    'pluginsConfig',
+    'defaultProject',
+    'installation',
+    'release',
+    'nxCloudAccessToken',
+    'nxCloudId',
+    'nxCloudUrl',
+    'nxCloudEncryptionKey',
+    'parallel',
+    'cacheDirectory',
+    'useDaemonProcess',
+    'useInferencePlugins',
+    'neverConnectToCloud',
+    'sync',
+];
+if (!patched) {
+    Module.prototype.require = function () {
+        const result = originalRequire.apply(this, arguments);
+        if (arguments[0].startsWith('@angular-devkit/core')) {
+            const ngCoreWorkspace = originalRequire.apply(this, [
+                `@angular-devkit/core/src/workspace/core`,
+            ]);
+            mockReadWorkspace(ngCoreWorkspace);
+            const readJsonUtils = originalRequire.apply(this, [
+                `@angular-devkit/core/src/workspace/json/reader`,
+            ]);
+            mockReadJsonWorkspace(readJsonUtils);
+        }
+        return result;
+    };
+    try {
+        (__nccwpck_require__(55181).Version.assertCompatibleAngularVersion) =
+            () => { };
     }
-    if (pattern.length > MAX_PATTERN_LENGTH) {
-        throw new TypeError('pattern is too long');
+    catch (e) { }
+    try {
+        (__nccwpck_require__(55181).assertCompatibleAngularVersion) =
+            () => { };
     }
-};
-exports.assertValidPattern = assertValidPattern;
-//# sourceMappingURL=assert-valid-pattern.js.map
+    catch (e) { }
+    patched = true;
+}
+function mockReadWorkspace(ngCoreWorkspace) {
+    mockMember(ngCoreWorkspace, 'readWorkspace', (originalReadWorkspace) => (path, ...rest) => {
+        path = 'angular.json';
+        return originalReadWorkspace.apply(this, [path, ...rest]);
+    });
+}
+/**
+ * Patch readJsonWorkspace to handle workspaces without a central workspace file.
+ * NOTE: We hide warnings that would be logged during this process.
+ */
+function mockReadJsonWorkspace(readJsonUtils) {
+    mockMember(readJsonUtils, 'readJsonWorkspace', (originalReadJsonWorkspace) => async (path, host, options) => {
+        const modifiedOptions = {
+            ...options,
+            allowedProjectExtensions: exports.allowedProjectExtensions,
+            allowedWorkspaceExtensions: exports.allowedWorkspaceExtensions,
+        };
+        try {
+            // Attempt angular CLI default behaviour
+            return await originalReadJsonWorkspace(path, host, modifiedOptions);
+        }
+        catch {
+            // This failed. Its most likely due to a lack of a workspace definition file,
+            // or other things that are different between NgCLI and Nx config files.
+            const projectGraph = await (0, project_graph_1.createProjectGraphAsync)();
+            const nxJson = (0, configuration_1.readNxJson)();
+            // Construct old workspace.json format from project graph
+            const w = {
+                ...nxJson,
+                ...(0, project_graph_1.readProjectsConfigurationFromProjectGraph)(projectGraph),
+            };
+            // Read our v1 workspace schema
+            const workspaceConfiguration = (0, angular_json_1.toOldFormat)(w);
+            // readJsonWorkspace actually has AST parsing + more, so we
+            // still need to call it rather than just return our file
+            return originalReadJsonWorkspace.apply(this, [
+                'angular.json', // path name, doesn't matter
+                {
+                    // second arg is a host, only method used is readFile
+                    readFile: () => JSON.stringify(workspaceConfiguration),
+                },
+                modifiedOptions,
+            ]);
+        }
+    });
+}
+function mockMember(obj, method, factory) {
+    obj[method] = factory(obj[method]);
+}
+
 
 /***/ }),
 
-/***/ 81227:
+/***/ 96506:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
-// parse a single path portion
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.AST = void 0;
-const brace_expressions_js_1 = __nccwpck_require__(65180);
-const unescape_js_1 = __nccwpck_require__(40391);
-const types = new Set(['!', '?', '+', '*', '@']);
-const isExtglobType = (c) => types.has(c);
-// Patterns that get prepended to bind to the start of either the
-// entire string, or just a single path portion, to prevent dots
-// and/or traversal patterns, when needed.
-// Exts don't need the ^ or / bit, because the root binds that already.
-const startNoTraversal = '(?!(?:^|/)\\.\\.?(?:$|/))';
-const startNoDot = '(?!\\.)';
-// characters that indicate a start of pattern needs the "no dots" bit,
-// because a dot *might* be matched. ( is not in the list, because in
-// the case of a child extglob, it will handle the prevention itself.
-const addPatternStart = new Set(['[', '.']);
-// cases where traversal is A-OK, no dot prevention needed
-const justDots = new Set(['..', '.']);
-const reSpecials = new Set('().*{}+?[]^$\\!');
-const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
-// any single thing other than /
-const qmark = '[^/]';
-// * => any number of characters
-const star = qmark + '*?';
-// use + when we need to ensure that *something* matches, because the * is
-// the only thing in the path portion.
-const starNoEmpty = qmark + '+?';
-// remove the \ chars that we added if we end up doing a nonmagic compare
-// const deslash = (s: string) => s.replace(/\\(.)/g, '$1')
-class AST {
-    type;
-    #root;
-    #hasMagic;
-    #uflag = false;
-    #parts = [];
-    #parent;
-    #parentIndex;
-    #negs;
-    #filledNegs = false;
-    #options;
-    #toString;
-    // set to true if it's an extglob with no children
-    // (which really means one child of '')
-    #emptyExt = false;
-    constructor(type, parent, options = {}) {
-        this.type = type;
-        // extglobs are inherently magical
-        if (type)
-            this.#hasMagic = true;
-        this.#parent = parent;
-        this.#root = this.#parent ? this.#parent.#root : this;
-        this.#options = this.#root === this ? options : this.#root.#options;
-        this.#negs = this.#root === this ? [] : this.#root.#negs;
-        if (type === '!' && !this.#root.#filledNegs)
-            this.#negs.push(this);
-        this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
-    }
-    get hasMagic() {
-        /* c8 ignore start */
-        if (this.#hasMagic !== undefined)
-            return this.#hasMagic;
-        /* c8 ignore stop */
-        for (const p of this.#parts) {
-            if (typeof p === 'string')
-                continue;
-            if (p.type || p.hasMagic)
-                return (this.#hasMagic = true);
-        }
-        // note: will be undefined until we generate the regexp src and find out
-        return this.#hasMagic;
-    }
-    // reconstructs the pattern
-    toString() {
-        if (this.#toString !== undefined)
-            return this.#toString;
-        if (!this.type) {
-            return (this.#toString = this.#parts.map(p => String(p)).join(''));
+exports.getLogger = exports.NxScopeHostUsedForWrappedSchematics = exports.NxScopedHostForBuilders = exports.NxScopedHost = void 0;
+exports.createBuilderContext = createBuilderContext;
+exports.scheduleTarget = scheduleTarget;
+exports.arrayBufferToString = arrayBufferToString;
+exports.generate = generate;
+exports.runMigration = runMigration;
+exports.mockSchematicsForTesting = mockSchematicsForTesting;
+exports.wrapAngularDevkitSchematic = wrapAngularDevkitSchematic;
+const core_1 = __nccwpck_require__(6540);
+const node_1 = __nccwpck_require__(53383);
+const chalk = __nccwpck_require__(78818);
+const path_1 = __nccwpck_require__(71017);
+const rxjs_1 = __nccwpck_require__(1752);
+const operators_1 = __nccwpck_require__(50749);
+const tree_1 = __nccwpck_require__(10818);
+const json_1 = __nccwpck_require__(62629);
+const project_configuration_1 = __nccwpck_require__(24642);
+const project_graph_1 = __nccwpck_require__(54913);
+const fileutils_1 = __nccwpck_require__(40910);
+const installation_directory_1 = __nccwpck_require__(87836);
+const json_2 = __nccwpck_require__(54324);
+const logger_1 = __nccwpck_require__(37270);
+const package_json_1 = __nccwpck_require__(78618);
+const package_manager_1 = __nccwpck_require__(86822);
+const angular_json_1 = __nccwpck_require__(45205);
+const executor_utils_1 = __nccwpck_require__(84678);
+const plugins_1 = __nccwpck_require__(69461);
+const schema_utils_1 = __nccwpck_require__(62607);
+async function createBuilderContext(builderInfo, context) {
+    __nccwpck_require__(53882);
+    const fsHost = new NxScopedHostForBuilders(context.root);
+    // the top level import is not patched because it is imported before the
+    // patching happens so we require it here to use the patched version below
+    const { workspaces } = __nccwpck_require__(6540);
+    const { workspace } = await workspaces.readWorkspace('angular.json', workspaces.createWorkspaceHost(fsHost));
+    const architectHost = await getWrappedWorkspaceNodeModulesArchitectHost(workspace, context.root, context.projectsConfigurations.projects);
+    const registry = new core_1.schema.CoreSchemaRegistry();
+    registry.addPostTransform(core_1.schema.transforms.addUndefinedDefaults);
+    registry.addSmartDefaultProvider('unparsed', () => {
+        // This happens when context.scheduleTarget is used to run a target using nx:run-commands
+        return [];
+    });
+    const { Architect } = __nccwpck_require__(51516);
+    const architect = new Architect(architectHost, registry);
+    const { firstValueFrom } = __nccwpck_require__(1752);
+    const toPromise = (obs) => firstValueFrom ? firstValueFrom(obs) : obs.toPromise();
+    const validateOptions = (options, builderName) => toPromise(architect['_scheduler'].schedule('..validateOptions', [
+        builderName,
+        options,
+    ]).output);
+    const getProjectMetadata = (target) => toPromise(architect['_scheduler'].schedule('..getProjectMetadata', target).output);
+    const getBuilderNameForTarget = (target) => {
+        if (typeof target === 'string') {
+            return Promise.resolve(context.projectGraph.nodes[context.projectName].data.targets[target]
+                .executor);
+        }
+        return Promise.resolve(context.projectGraph.nodes[target.project].data.targets[target.target]
+            .executor);
+    };
+    const getTargetOptions = (target) => {
+        if (typeof target === 'string') {
+            return Promise.resolve({
+                ...context.projectGraph.nodes[context.projectName].data.targets[target]
+                    .options,
+            });
         }
-        else {
-            return (this.#toString =
-                this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');
+        return Promise.resolve({
+            ...context.projectGraph.nodes[target.project].data.targets[target.target]
+                .options,
+            ...context.projectGraph.nodes[target.project].data.targets[target.target]
+                .configurations[target.configuration],
+        });
+    };
+    const builderContext = {
+        workspaceRoot: context.root,
+        target: {
+            project: context.projectName,
+            target: context.targetName,
+            configuration: context.configurationName,
+        },
+        builder: {
+            ...builderInfo,
+        },
+        logger: (0, exports.getLogger)(),
+        id: 1,
+        currentDirectory: process.cwd(),
+        scheduleTarget: architect.scheduleTarget,
+        scheduleBuilder: architect.scheduleBuilder,
+        addTeardown(teardown) {
+            // No-op as Nx doesn't require an implementation of this function
+            return;
+        },
+        reportProgress(...args) {
+            // No-op as Nx doesn't require an implementation of this function
+            return;
+        },
+        reportRunning(...args) {
+            // No-op as Nx doesn't require an implementation of this function
+            return;
+        },
+        reportStatus(status) {
+            // No-op as Nx doesn't require an implementation of this function
+            return;
+        },
+        getBuilderNameForTarget,
+        getProjectMetadata,
+        validateOptions,
+        getTargetOptions,
+    };
+    return builderContext;
+}
+async function scheduleTarget(root, opts, verbose) {
+    const { Architect } = __nccwpck_require__(51516);
+    const logger = (0, exports.getLogger)(verbose);
+    const fsHost = new NxScopedHostForBuilders(root);
+    const { workspace } = await core_1.workspaces.readWorkspace('angular.json', core_1.workspaces.createWorkspaceHost(fsHost));
+    const registry = new core_1.schema.CoreSchemaRegistry();
+    registry.addPostTransform(core_1.schema.transforms.addUndefinedDefaults);
+    registry.addSmartDefaultProvider('unparsed', () => {
+        // This happens when context.scheduleTarget is used to run a target using nx:run-commands
+        return [];
+    });
+    const architectHost = await getWrappedWorkspaceNodeModulesArchitectHost(workspace, root, opts.projects);
+    const architect = new Architect(architectHost, registry);
+    const run = await architect.scheduleTarget({
+        project: opts.project,
+        target: opts.target,
+        configuration: opts.configuration,
+    }, opts.runOptions, { logger });
+    let lastOutputError;
+    return run.output.pipe((0, operators_1.tap)((output) => (lastOutputError = !output.success ? output.error : undefined), (error) => { }, // do nothing, this could be an intentional error
+    () => {
+        lastOutputError ? logger.error(lastOutputError) : 0;
+    }));
+}
+function createNodeModulesEngineHost(resolvePaths, projects) {
+    const NodeModulesEngineHost = (__nccwpck_require__(37276).NodeModulesEngineHost);
+    class NxNodeModulesEngineHost extends NodeModulesEngineHost {
+        constructor() {
+            super(resolvePaths);
         }
-    }
-    #fillNegs() {
-        /* c8 ignore start */
-        if (this !== this.#root)
-            throw new Error('should only call on root');
-        if (this.#filledNegs)
-            return this;
-        /* c8 ignore stop */
-        // call toString() once to fill this out
-        this.toString();
-        this.#filledNegs = true;
-        let n;
-        while ((n = this.#negs.pop())) {
-            if (n.type !== '!')
-                continue;
-            // walk up the tree, appending everthing that comes AFTER parentIndex
-            let p = n;
-            let pp = p.#parent;
-            while (pp) {
-                for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
-                    for (const part of n.#parts) {
-                        /* c8 ignore start */
-                        if (typeof part === 'string') {
-                            throw new Error('string part in extglob AST??');
-                        }
-                        /* c8 ignore stop */
-                        part.copyIn(pp.#parts[i]);
-                    }
+        _resolveCollectionPath(name, requester) {
+            let collectionFilePath;
+            const paths = requester
+                ? [(0, path_1.dirname)(requester), ...(resolvePaths || [])]
+                : resolvePaths || [];
+            if (name.endsWith('.json')) {
+                collectionFilePath = __nccwpck_require__(30024).resolve(name, { paths });
+            }
+            else {
+                const { json: { generators, schematics }, path: packageJsonPath, } = (0, plugins_1.readPluginPackageJson)(name, projects, paths);
+                if (!schematics && !generators) {
+                    throw new Error(`The "${name}" package does not support Nx generators or Angular Devkit schematics.`);
                 }
-                p = pp;
-                pp = p.#parent;
+                collectionFilePath = /*require.resolve*/(__nccwpck_require__(30024).resolve((0, path_1.join)((0, path_1.dirname)(packageJsonPath), schematics ?? generators)));
             }
+            return collectionFilePath;
         }
-        return this;
-    }
-    push(...parts) {
-        for (const p of parts) {
-            if (p === '')
-                continue;
-            /* c8 ignore start */
-            if (typeof p !== 'string' && !(p instanceof AST && p.#parent === this)) {
-                throw new Error('invalid part: ' + p);
-            }
-            /* c8 ignore stop */
-            this.#parts.push(p);
+        _transformCollectionDescription(name, desc) {
+            desc.schematics ??= desc.generators;
+            return super._transformCollectionDescription(name, desc);
         }
     }
-    toJSON() {
-        const ret = this.type === null
-            ? this.#parts.slice().map(p => (typeof p === 'string' ? p : p.toJSON()))
-            : [this.type, ...this.#parts.map(p => p.toJSON())];
-        if (this.isStart() && !this.type)
-            ret.unshift([]);
-        if (this.isEnd() &&
-            (this === this.#root ||
-                (this.#root.#filledNegs && this.#parent?.type === '!'))) {
-            ret.push({});
+    return new NxNodeModulesEngineHost();
+}
+function createWorkflow(fsHost, root, opts, projects) {
+    const NodeWorkflow = (__nccwpck_require__(37276).NodeWorkflow);
+    const workflow = new NodeWorkflow(fsHost, {
+        force: false,
+        dryRun: opts.dryRun,
+        packageManager: (0, package_manager_1.detectPackageManager)(),
+        root: (0, core_1.normalize)(root),
+        registry: new core_1.schema.CoreSchemaRegistry((__nccwpck_require__(55140).formats.standardFormats)),
+        resolvePaths: [process.cwd(), root],
+        engineHostCreator: (options) => createNodeModulesEngineHost(options.resolvePaths, projects),
+    });
+    workflow.registry.addPostTransform(core_1.schema.transforms.addUndefinedDefaults);
+    workflow.engineHost.registerOptionsTransform((__nccwpck_require__(37276).validateOptionsWithSchema)(workflow.registry));
+    if (opts.interactive) {
+        workflow.registry.usePromptProvider(createPromptProvider());
+    }
+    return workflow;
+}
+function getCollection(workflow, name) {
+    const collection = workflow.engine.createCollection(name);
+    if (!collection)
+        throw new Error(`Cannot find collection '${name}'`);
+    return collection;
+}
+async function createRecorder(host, record, logger) {
+    return (event) => {
+        let eventPath = event.path.startsWith('/')
+            ? event.path.slice(1)
+            : event.path;
+        if (event.kind === 'error') {
+            record.error = true;
+            logger.warn(`ERROR! ${eventPath} ${event.description == 'alreadyExist'
+                ? 'already exists'
+                : 'does not exist.'}.`);
+        }
+        else if (event.kind === 'update') {
+            record.loggingQueue.push(core_1.tags.oneLine `${chalk.white('UPDATE')} ${eventPath}`);
+        }
+        else if (event.kind === 'create') {
+            record.loggingQueue.push(core_1.tags.oneLine `${chalk.green('CREATE')} ${eventPath}`);
+        }
+        else if (event.kind === 'delete') {
+            record.loggingQueue.push(`${chalk.yellow('DELETE')} ${eventPath}`);
+        }
+        else if (event.kind === 'rename') {
+            record.loggingQueue.push(`${chalk.blue('RENAME')} ${eventPath} => ${event.to}`);
         }
-        return ret;
+    };
+}
+async function runSchematic(host, root, workflow, logger, opts, schematic, printDryRunMessage = true, recorder = null) {
+    const record = { loggingQueue: [], error: false };
+    workflow.reporter.subscribe(recorder || (await createRecorder(host, record, logger)));
+    try {
+        await workflow
+            .execute({
+            collection: opts.collectionName,
+            schematic: opts.generatorName,
+            options: opts.generatorOptions,
+            debug: false,
+            logger,
+        })
+            .toPromise();
     }
-    isStart() {
-        if (this.#root === this)
-            return true;
-        // if (this.type) return !!this.#parent?.isStart()
-        if (!this.#parent?.isStart())
-            return false;
-        if (this.#parentIndex === 0)
-            return true;
-        // if everything AHEAD of this is a negation, then it's still the "start"
-        const p = this.#parent;
-        for (let i = 0; i < this.#parentIndex; i++) {
-            const pp = p.#parts[i];
-            if (!(pp instanceof AST && pp.type === '!')) {
-                return false;
-            }
-        }
-        return true;
+    catch (e) {
+        console.error(e);
+        throw e;
     }
-    isEnd() {
-        if (this.#root === this)
-            return true;
-        if (this.#parent?.type === '!')
-            return true;
-        if (!this.#parent?.isEnd())
-            return false;
-        if (!this.type)
-            return this.#parent?.isEnd();
-        // if not root, it'll always have a parent
-        /* c8 ignore start */
-        const pl = this.#parent ? this.#parent.#parts.length : 0;
-        /* c8 ignore stop */
-        return this.#parentIndex === pl - 1;
+    if (!record.error) {
+        record.loggingQueue.forEach((log) => logger.info(log));
     }
-    copyIn(part) {
-        if (typeof part === 'string')
-            this.push(part);
-        else
-            this.push(part.clone(this));
+    if (opts.dryRun && printDryRunMessage) {
+        logger.warn(`\nNOTE: The "dryRun" flag means no changes were made.`);
     }
-    clone(parent) {
-        const c = new AST(this.type, parent);
-        for (const p of this.#parts) {
-            c.copyIn(p);
-        }
-        return c;
+    return { status: 0, loggingQueue: record.loggingQueue };
+}
+class NxScopedHost extends core_1.virtualFs.ScopedHost {
+    constructor(root) {
+        super(new node_1.NodeJsSyncHost(), (0, core_1.normalize)(root));
+        this.root = root;
     }
-    static #parseAST(str, ast, pos, opt) {
-        let escaping = false;
-        let inBrace = false;
-        let braceStart = -1;
-        let braceNeg = false;
-        if (ast.type === null) {
-            // outside of a extglob, append until we find a start
-            let i = pos;
-            let acc = '';
-            while (i < str.length) {
-                const c = str.charAt(i++);
-                // still accumulate escapes at this point, but we do ignore
-                // starts that are escaped
-                if (escaping || c === '\\') {
-                    escaping = !escaping;
-                    acc += c;
-                    continue;
+    read(path) {
+        if ((path === 'angular.json' || path === '/angular.json') &&
+            (0, angular_json_1.isAngularPluginInstalled)()) {
+            return this.readMergedWorkspaceConfiguration().pipe((0, operators_1.map)((r) => Buffer.from(JSON.stringify((0, angular_json_1.toOldFormat)(r)))));
+        }
+        else {
+            return super.read(path);
+        }
+    }
+    readMergedWorkspaceConfiguration() {
+        return (0, rxjs_1.zip)((0, rxjs_1.from)((0, project_graph_1.createProjectGraphAsync)()), this.readExistingAngularJson(), this.readJson('nx.json')).pipe((0, operators_1.concatMap)(([graph, angularJson, nxJson]) => {
+            const workspaceConfig = (angularJson || { projects: {} });
+            workspaceConfig.cli ??= nxJson.cli;
+            workspaceConfig.schematics ??= nxJson.generators;
+            const projectJsonReads = [];
+            for (let projectName of Object.keys(graph.nodes)) {
+                if (!workspaceConfig.projects[projectName]) {
+                    projectJsonReads.push((0, rxjs_1.zip)((0, rxjs_1.of)(projectName), this.readJson((0, path_1.join)(graph.nodes[projectName].data.root, 'project.json'))));
                 }
-                if (inBrace) {
-                    if (i === braceStart + 1) {
-                        if (c === '^' || c === '!') {
-                            braceNeg = true;
-                        }
+            }
+            return (0, rxjs_1.zip)(...projectJsonReads).pipe((0, operators_1.map)((reads) => {
+                reads
+                    .filter(([, p]) => p !== null)
+                    .forEach(([projectName, project]) => {
+                    workspaceConfig.projects[projectName] = {
+                        ...project,
+                        root: graph.nodes[projectName].data.root,
+                    };
+                });
+                return workspaceConfig;
+            }));
+        }), (0, operators_1.catchError)((err) => {
+            console.error('Unable to read angular.json');
+            console.error(err);
+            process.exit(1);
+        }));
+    }
+    write(path, content) {
+        if (path === 'angular.json' || path === '/angular.json') {
+            const configV2 = (0, angular_json_1.toNewFormat)((0, json_2.parseJson)(content.toString()));
+            const root = this.root;
+            return (0, rxjs_1.zip)(this.readMergedWorkspaceConfiguration(), this.readExistingAngularJson()).pipe((0, operators_1.concatMap)((arg) => {
+                const existingConfig = arg[0];
+                const existingAngularJson = arg[1];
+                const projectsInAngularJson = existingAngularJson
+                    ? Object.keys(existingAngularJson.projects)
+                    : [];
+                const projects = configV2.projects;
+                const allObservables = [];
+                Object.keys(projects).forEach((projectName) => {
+                    if (projectsInAngularJson.includes(projectName)) {
+                        // ignore updates to angular.json
                     }
-                    else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
-                        inBrace = false;
+                    else {
+                        (0, project_configuration_1.updateProjectConfiguration)({
+                            root,
+                            exists: () => true,
+                            write: (path, content) => {
+                                if (existingConfig.projects[projectName]) {
+                                    const updatedContent = this.mergeProjectConfiguration(existingConfig.projects[projectName], projects[projectName], projectName);
+                                    if (updatedContent) {
+                                        delete updatedContent.root;
+                                        allObservables.push(super.write(path, Buffer.from(JSON.stringify(updatedContent, null, 2))));
+                                    }
+                                }
+                                else {
+                                    allObservables.push(super.write(path, Buffer.from(content)));
+                                }
+                            },
+                        }, projectName, projects[projectName]);
                     }
-                    acc += c;
-                    continue;
-                }
-                else if (c === '[') {
-                    inBrace = true;
-                    braceStart = i;
-                    braceNeg = false;
-                    acc += c;
-                    continue;
-                }
-                if (!opt.noext && isExtglobType(c) && str.charAt(i) === '(') {
-                    ast.push(acc);
-                    acc = '';
-                    const ext = new AST(c, ast);
-                    i = AST.#parseAST(str, ext, i, opt);
-                    ast.push(ext);
-                    continue;
+                });
+                return (0, rxjs_1.concat)(...allObservables);
+            }));
+        }
+        else {
+            return super.write(path, content);
+        }
+    }
+    isFile(path) {
+        if (path === 'angular.json' || path === '/angular.json') {
+            return (0, rxjs_1.of)(true);
+        }
+        else {
+            return super.isFile(path);
+        }
+    }
+    exists(path) {
+        if (path === 'angular.json' || path === '/angular.json') {
+            return (0, rxjs_1.of)(true);
+        }
+        else {
+            return super.exists(path);
+        }
+    }
+    mergeProjectConfiguration(existing, updated, projectName) {
+        const res = { ...existing };
+        let modified = false;
+        function updatePropertyIfDifferent(property) {
+            if (typeof res[property] === 'string') {
+                if (res[property] !== updated[property]) {
+                    res[property] = updated[property];
+                    modified = true;
                 }
-                acc += c;
             }
-            ast.push(acc);
-            return i;
+            else if (JSON.stringify(res[property]) !== JSON.stringify(updated[property])) {
+                res[property] = updated[property];
+                modified = true;
+            }
         }
-        // some kind of extglob, pos is at the (
-        // find the next | or )
-        let i = pos + 1;
-        let part = new AST(null, ast);
-        const parts = [];
-        let acc = '';
-        while (i < str.length) {
-            const c = str.charAt(i++);
-            // still accumulate escapes at this point, but we do ignore
-            // starts that are escaped
-            if (escaping || c === '\\') {
-                escaping = !escaping;
-                acc += c;
-                continue;
+        if (!res.name || (updated.name && res.name !== updated.name)) {
+            res.name ??= updated.name || projectName;
+            modified = true;
+        }
+        updatePropertyIfDifferent('projectType');
+        updatePropertyIfDifferent('sourceRoot');
+        updatePropertyIfDifferent('prefix');
+        updatePropertyIfDifferent('targets');
+        updatePropertyIfDifferent('generators');
+        updatePropertyIfDifferent('implicitDependencies');
+        updatePropertyIfDifferent('tags');
+        return modified ? res : null;
+    }
+    readExistingAngularJson() {
+        return this.readJson('angular.json');
+    }
+    readJson(path) {
+        return super
+            .exists(path)
+            .pipe((0, operators_1.concatMap)((r) => r
+            ? super
+                .read(path)
+                .pipe((0, operators_1.map)((r) => (0, json_2.parseJson)(arrayBufferToString(r))))
+            : (0, rxjs_1.of)(null)));
+    }
+}
+exports.NxScopedHost = NxScopedHost;
+/**
+ * Host used by Angular CLI builders. It reads the project configurations from
+ * the project graph to access the expanded targets.
+ */
+class NxScopedHostForBuilders extends NxScopedHost {
+    readMergedWorkspaceConfiguration() {
+        return (0, rxjs_1.zip)((0, rxjs_1.from)((0, project_graph_1.createProjectGraphAsync)()), this.readExistingAngularJson(), this.readJson('nx.json')).pipe((0, operators_1.map)(([graph, angularJson, nxJson]) => {
+            const workspaceConfig = (angularJson || { projects: {} });
+            workspaceConfig.cli ??= nxJson.cli;
+            workspaceConfig.schematics ??= nxJson.generators;
+            for (const projectName of Object.keys(graph.nodes)) {
+                workspaceConfig.projects[projectName] ??= {
+                    ...graph.nodes[projectName].data,
+                };
             }
-            if (inBrace) {
-                if (i === braceStart + 1) {
-                    if (c === '^' || c === '!') {
-                        braceNeg = true;
-                    }
+            return workspaceConfig;
+        }), (0, operators_1.catchError)((err) => {
+            console.error('Unable to read angular.json');
+            console.error(err);
+            process.exit(1);
+        }));
+    }
+}
+exports.NxScopedHostForBuilders = NxScopedHostForBuilders;
+function arrayBufferToString(buffer) {
+    const array = new Uint8Array(buffer);
+    let result = '';
+    const chunkSize = 8 * 1024;
+    let i = 0;
+    for (i = 0; i < array.length / chunkSize; i++) {
+        result += String.fromCharCode.apply(null, array.subarray(i * chunkSize, (i + 1) * chunkSize));
+    }
+    result += String.fromCharCode.apply(null, array.subarray(i * chunkSize));
+    return result;
+}
+/**
+ * Host used by Angular CLI schematics. It reads the project configurations from
+ * the project configuration files.
+ */
+class NxScopeHostUsedForWrappedSchematics extends NxScopedHost {
+    constructor(root, host) {
+        super(root);
+        this.host = host;
+    }
+    read(path) {
+        if ((path === 'angular.json' || path === '/angular.json') &&
+            (0, angular_json_1.isAngularPluginInstalled)()) {
+            const projectJsonConfig = (0, angular_json_1.toOldFormat)({
+                projects: Object.fromEntries((0, project_configuration_1.getProjects)(this.host)),
+            });
+            return super.readExistingAngularJson().pipe((0, operators_1.map)((angularJson) => {
+                if (angularJson) {
+                    return Buffer.from(JSON.stringify({
+                        version: 1,
+                        projects: {
+                            ...projectJsonConfig.projects,
+                            ...angularJson.projects,
+                        },
+                    }));
                 }
-                else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
-                    inBrace = false;
+                else {
+                    return Buffer.from(JSON.stringify(projectJsonConfig));
                 }
-                acc += c;
-                continue;
-            }
-            else if (c === '[') {
-                inBrace = true;
-                braceStart = i;
-                braceNeg = false;
-                acc += c;
-                continue;
-            }
-            if (isExtglobType(c) && str.charAt(i) === '(') {
-                part.push(acc);
-                acc = '';
-                const ext = new AST(c, part);
-                part.push(ext);
-                i = AST.#parseAST(str, ext, i, opt);
-                continue;
-            }
-            if (c === '|') {
-                part.push(acc);
-                acc = '';
-                parts.push(part);
-                part = new AST(null, ast);
-                continue;
+            }));
+        }
+        else {
+            const match = findMatchingFileChange(this.host, path);
+            if (match) {
+                return (0, rxjs_1.of)(Buffer.from(match.content));
             }
-            if (c === ')') {
-                if (acc === '' && ast.#parts.length === 0) {
-                    ast.#emptyExt = true;
-                }
-                part.push(acc);
-                acc = '';
-                ast.push(...parts, part);
-                return i;
+            else {
+                return super.read(path);
             }
-            acc += c;
         }
-        // unfinished extglob
-        // if we got here, it was a malformed extglob! not an extglob, but
-        // maybe something else in there.
-        ast.type = null;
-        ast.#hasMagic = undefined;
-        ast.#parts = [str.substring(pos - 1)];
-        return i;
-    }
-    static fromGlob(pattern, options = {}) {
-        const ast = new AST(null, undefined, options);
-        AST.#parseAST(pattern, ast, 0, options);
-        return ast;
     }
-    // returns the regular expression if there's magic, or the unescaped
-    // string if not.
-    toMMPattern() {
-        // should only be called on root
-        /* c8 ignore start */
-        if (this !== this.#root)
-            return this.#root.toMMPattern();
-        /* c8 ignore stop */
-        const glob = this.toString();
-        const [re, body, hasMagic, uflag] = this.toRegExpSource();
-        // if we're in nocase mode, and not nocaseMagicOnly, then we do
-        // still need a regular expression if we have to case-insensitively
-        // match capital/lowercase characters.
-        const anyMagic = hasMagic ||
-            this.#hasMagic ||
-            (this.#options.nocase &&
-                !this.#options.nocaseMagicOnly &&
-                glob.toUpperCase() !== glob.toLowerCase());
-        if (!anyMagic) {
-            return body;
+    exists(path) {
+        if (this.host.exists(path)) {
+            return (0, rxjs_1.of)(true);
+        }
+        else if (path === 'angular.json' || path === '/angular.json') {
+            return (0, rxjs_1.of)(true);
+        }
+        else {
+            return super.exists(path);
         }
-        const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '');
-        return Object.assign(new RegExp(`^${re}$`, flags), {
-            _src: re,
-            _glob: glob,
-        });
     }
-    // returns the string match, the regexp source, whether there's magic
-    // in the regexp (so a regular expression is required) and whether or
-    // not the uflag is needed for the regular expression (for posix classes)
-    // TODO: instead of injecting the start/end at this point, just return
-    // the BODY of the regexp, along with the start/end portions suitable
-    // for binding the start/end in either a joined full-path makeRe context
-    // (where we bind to (^|/), or a standalone matchPart context (where
-    // we bind to ^, and not /).  Otherwise slashes get duped!
-    //
-    // In part-matching mode, the start is:
-    // - if not isStart: nothing
-    // - if traversal possible, but not allowed: ^(?!\.\.?$)
-    // - if dots allowed or not possible: ^
-    // - if dots possible and not allowed: ^(?!\.)
-    // end is:
-    // - if not isEnd(): nothing
-    // - else: $
-    //
-    // In full-path matching mode, we put the slash at the START of the
-    // pattern, so start is:
-    // - if first pattern: same as part-matching mode
-    // - if not isStart(): nothing
-    // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
-    // - if dots allowed or not possible: /
-    // - if dots possible and not allowed: /(?!\.)
-    // end is:
-    // - if last pattern, same as part-matching mode
-    // - else nothing
-    //
-    // Always put the (?:$|/) on negated tails, though, because that has to be
-    // there to bind the end of the negated pattern portion, and it's easier to
-    // just stick it in now rather than try to inject it later in the middle of
-    // the pattern.
-    //
-    // We can just always return the same end, and leave it up to the caller
-    // to know whether it's going to be used joined or in parts.
-    // And, if the start is adjusted slightly, can do the same there:
-    // - if not isStart: nothing
-    // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
-    // - if dots allowed or not possible: (?:/|^)
-    // - if dots possible and not allowed: (?:/|^)(?!\.)
-    //
-    // But it's better to have a simpler binding without a conditional, for
-    // performance, so probably better to return both start options.
-    //
-    // Then the caller just ignores the end if it's not the first pattern,
-    // and the start always gets applied.
-    //
-    // But that's always going to be $ if it's the ending pattern, or nothing,
-    // so the caller can just attach $ at the end of the pattern when building.
-    //
-    // So the todo is:
-    // - better detect what kind of start is needed
-    // - return both flavors of starting pattern
-    // - attach $ at the end of the pattern when creating the actual RegExp
-    //
-    // Ah, but wait, no, that all only applies to the root when the first pattern
-    // is not an extglob. If the first pattern IS an extglob, then we need all
-    // that dot prevention biz to live in the extglob portions, because eg
-    // +(*|.x*) can match .xy but not .yx.
-    //
-    // So, return the two flavors if it's #root and the first child is not an
-    // AST, otherwise leave it to the child AST to handle it, and there,
-    // use the (?:^|/) style of start binding.
-    //
-    // Even simplified further:
-    // - Since the start for a join is eg /(?!\.) and the start for a part
-    // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
-    // or start or whatever) and prepend ^ or / at the Regexp construction.
-    toRegExpSource(allowDot) {
-        const dot = allowDot ?? !!this.#options.dot;
-        if (this.#root === this)
-            this.#fillNegs();
-        if (!this.type) {
-            const noEmpty = this.isStart() && this.isEnd();
-            const src = this.#parts
-                .map(p => {
-                const [re, _, hasMagic, uflag] = typeof p === 'string'
-                    ? AST.#parseGlob(p, this.#hasMagic, noEmpty)
-                    : p.toRegExpSource(allowDot);
-                this.#hasMagic = this.#hasMagic || hasMagic;
-                this.#uflag = this.#uflag || uflag;
-                return re;
-            })
-                .join('');
-            let start = '';
-            if (this.isStart()) {
-                if (typeof this.#parts[0] === 'string') {
-                    // this is the string that will match the start of the pattern,
-                    // so we need to protect against dots and such.
-                    // '.' and '..' cannot match unless the pattern is that exactly,
-                    // even if it starts with . or dot:true is set.
-                    const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
-                    if (!dotTravAllowed) {
-                        const aps = addPatternStart;
-                        // check if we have a possibility of matching . or ..,
-                        // and prevent that.
-                        const needNoTrav = 
-                        // dots are allowed, and the pattern starts with [ or .
-                        (dot && aps.has(src.charAt(0))) ||
-                            // the pattern starts with \., and then [ or .
-                            (src.startsWith('\\.') && aps.has(src.charAt(2))) ||
-                            // the pattern starts with \.\., and then [ or .
-                            (src.startsWith('\\.\\.') && aps.has(src.charAt(4)));
-                        // no need to prevent dots if it can't match a dot, or if a
-                        // sub-pattern will be preventing it anyway.
-                        const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
-                        start = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : '';
-                    }
-                }
-            }
-            // append the "end of path portion" pattern to negation tails
-            let end = '';
-            if (this.isEnd() &&
-                this.#root.#filledNegs &&
-                this.#parent?.type === '!') {
-                end = '(?:$|\\/)';
-            }
-            const final = start + src + end;
-            return [
-                final,
-                (0, unescape_js_1.unescape)(src),
-                (this.#hasMagic = !!this.#hasMagic),
-                this.#uflag,
-            ];
+    isDirectory(path) {
+        if (this.host.exists(path) && !this.host.isFile(path)) {
+            return (0, rxjs_1.of)(true);
         }
-        // We need to calculate the body *twice* if it's a repeat pattern
-        // at the start, once in nodot mode, then again in dot mode, so a
-        // pattern like *(?) can match 'x.y'
-        const repeated = this.type === '*' || this.type === '+';
-        // some kind of extglob
-        const start = this.type === '!' ? '(?:(?!(?:' : '(?:';
-        let body = this.#partsToRegExp(dot);
-        if (this.isStart() && this.isEnd() && !body && this.type !== '!') {
-            // invalid extglob, has to at least be *something* present, if it's
-            // the entire path portion.
-            const s = this.toString();
-            this.#parts = [s];
-            this.type = null;
-            this.#hasMagic = undefined;
-            return [s, (0, unescape_js_1.unescape)(this.toString()), false, false];
+        else if (path === 'angular.json' || path === '/angular.json') {
+            return (0, rxjs_1.of)(false);
         }
-        // XXX abstract out this map method
-        let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot
-            ? ''
-            : this.#partsToRegExp(true);
-        if (bodyDotAllowed === body) {
-            bodyDotAllowed = '';
+        else {
+            return super.isDirectory(path);
         }
-        if (bodyDotAllowed) {
-            body = `(?:${body})(?:${bodyDotAllowed})*?`;
+    }
+    isFile(path) {
+        if (this.host.isFile(path)) {
+            return (0, rxjs_1.of)(true);
         }
-        // an empty !() is exactly equivalent to a starNoEmpty
-        let final = '';
-        if (this.type === '!' && this.#emptyExt) {
-            final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty;
+        else if (path === 'angular.json' || path === '/angular.json') {
+            return (0, rxjs_1.of)(true);
         }
         else {
-            const close = this.type === '!'
-                ? // !() must match something,but !(x) can match ''
-                    '))' +
-                        (this.isStart() && !dot && !allowDot ? startNoDot : '') +
-                        star +
-                        ')'
-                : this.type === '@'
-                    ? ')'
-                    : this.type === '?'
-                        ? ')?'
-                        : this.type === '+' && bodyDotAllowed
-                            ? ')'
-                            : this.type === '*' && bodyDotAllowed
-                                ? `)?`
-                                : `)${this.type}`;
-            final = start + body + close;
+            return super.isFile(path);
         }
-        return [
-            final,
-            (0, unescape_js_1.unescape)(body),
-            (this.#hasMagic = !!this.#hasMagic),
-            this.#uflag,
-        ];
     }
-    #partsToRegExp(dot) {
-        return this.#parts
-            .map(p => {
-            // extglob ASTs should only contain parent ASTs
-            /* c8 ignore start */
-            if (typeof p === 'string') {
-                throw new Error('string type in extglob ast??');
-            }
-            /* c8 ignore stop */
-            // can ignore hasMagic, because extglobs are already always magic
-            const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
-            this.#uflag = this.#uflag || uflag;
-            return re;
-        })
-            .filter(p => !(this.isStart() && this.isEnd()) || !!p)
-            .join('|');
+    list(path) {
+        const fragments = this.host.children(path).map((child) => (0, core_1.fragment)(child));
+        return (0, rxjs_1.of)(fragments);
     }
-    static #parseGlob(glob, hasMagic, noEmpty = false) {
-        let escaping = false;
-        let re = '';
-        let uflag = false;
-        for (let i = 0; i < glob.length; i++) {
-            const c = glob.charAt(i);
-            if (escaping) {
-                escaping = false;
-                re += (reSpecials.has(c) ? '\\' : '') + c;
-                continue;
+}
+exports.NxScopeHostUsedForWrappedSchematics = NxScopeHostUsedForWrappedSchematics;
+function findMatchingFileChange(host, path) {
+    const targetPath = (0, core_1.normalize)(path.startsWith('/') ? path.substring(1) : path.toString());
+    return host
+        .listChanges()
+        .find((f) => f.type !== 'DELETE' && (0, core_1.normalize)(f.path) === targetPath);
+}
+async function generate(root, opts, projects, verbose) {
+    const logger = (0, exports.getLogger)(verbose);
+    const fsHost = new NxScopeHostUsedForWrappedSchematics(root, new tree_1.FsTree(root, verbose, `ng-cli generator: ${opts.collectionName}:${opts.generatorName}`));
+    const workflow = createWorkflow(fsHost, root, opts, projects);
+    const collection = getCollection(workflow, opts.collectionName);
+    const schematic = collection.createSchematic(opts.generatorName, true);
+    return (await runSchematic(fsHost, root, workflow, logger, { ...opts, generatorName: schematic.description.name }, schematic)).status;
+}
+function createPromptProvider() {
+    return (definitions) => {
+        const questions = definitions.map((definition) => {
+            const question = {
+                name: definition.id,
+                message: definition.message,
+            };
+            if (definition.default) {
+                question.initial = definition.default;
+            }
+            const validator = definition.validator;
+            if (validator) {
+                question.validate = (input) => validator(input);
+            }
+            switch (definition.type) {
+                case 'string':
+                case 'input':
+                    return { ...question, type: 'input' };
+                case 'boolean':
+                case 'confirmation':
+                case 'confirm':
+                    return { ...question, type: 'confirm' };
+                case 'number':
+                case 'numeral':
+                    return { ...question, type: 'numeral' };
+                case 'list':
+                    return {
+                        ...question,
+                        type: !!definition.multiselect ? 'multiselect' : 'select',
+                        choices: definition.items &&
+                            definition.items.map((item) => {
+                                if (typeof item == 'string') {
+                                    return item;
+                                }
+                                else {
+                                    return {
+                                        message: item.label,
+                                        name: item.value,
+                                    };
+                                }
+                            }),
+                    };
+                default:
+                    return { ...question, type: definition.type };
             }
-            if (c === '\\') {
-                if (i === glob.length - 1) {
-                    re += '\\\\';
+        });
+        return (__nccwpck_require__(56587).prompt)(questions);
+    };
+}
+async function runMigration(root, packageName, migrationName, projects, isVerbose) {
+    const logger = (0, exports.getLogger)(isVerbose);
+    const fsHost = new NxScopeHostUsedForWrappedSchematics(root, new tree_1.FsTree(root, isVerbose, `ng-cli migration: ${packageName}:${migrationName}`));
+    const workflow = createWorkflow(fsHost, root, {}, projects);
+    const collection = resolveMigrationsCollection(packageName);
+    const record = { loggingQueue: [], error: false };
+    workflow.reporter.subscribe(await createRecorder(fsHost, record, logger));
+    await workflow
+        .execute({
+        collection,
+        schematic: migrationName,
+        options: {},
+        debug: false,
+        logger: logger,
+    })
+        .toPromise();
+    return {
+        loggingQueue: record.loggingQueue,
+        madeChanges: record.loggingQueue.length > 0,
+    };
+}
+function resolveMigrationsCollection(name) {
+    let collectionPath = undefined;
+    if (name.startsWith('.') || name.startsWith('/')) {
+        name = (0, path_1.resolve)(name);
+    }
+    if ((0, path_1.extname)(name)) {
+        collectionPath = /*require.resolve*/(__nccwpck_require__(30024).resolve(name));
+    }
+    else {
+        const { path: packageJsonPath, packageJson } = (0, package_json_1.readModulePackageJson)(name, (0, installation_directory_1.getNxRequirePaths)(process.cwd()));
+        let pkgJsonSchematics = packageJson['nx-migrations'] ?? packageJson['ng-update'];
+        if (!pkgJsonSchematics) {
+            throw new Error(`Could not find migrations in package: "${name}"`);
+        }
+        if (typeof pkgJsonSchematics != 'string') {
+            pkgJsonSchematics = pkgJsonSchematics.migrations;
+        }
+        collectionPath = __nccwpck_require__(30024).resolve(pkgJsonSchematics, {
+            paths: [(0, path_1.dirname)(packageJsonPath)],
+        });
+    }
+    try {
+        if (collectionPath) {
+            (0, fileutils_1.readJsonFile)(collectionPath);
+            return collectionPath;
+        }
+    }
+    catch {
+        throw new Error(`Invalid migration file in package: "${name}"`);
+    }
+    throw new Error(`Collection cannot be resolved: "${name}"`);
+}
+let collectionResolutionOverrides = null;
+let mockedSchematics = null;
+/**
+ * If you have an Nx Devkit generator invoking the wrapped Angular Devkit schematic,
+ * and you don't want the Angular Devkit schematic to run, you can mock it up using this function.
+ *
+ * Unfortunately, there are some edge cases in the Nx-Angular devkit integration that
+ * can be seen in the unit tests context. This function is useful for handling that as well.
+ *
+ * In this case, you can mock it up.
+ *
+ * Example:
+ *
+ * ```typescript
+ *   mockSchematicsForTesting({
+ *     'mycollection:myschematic': (tree, params) => {
+ *        tree.write("README.md");
+ *     }
+ *   });
+ *
+ * ```
+ */
+function mockSchematicsForTesting(schematics) {
+    mockedSchematics = schematics;
+}
+function wrapAngularDevkitSchematic(collectionName, generatorName) {
+    // This is idempotent, if it happens to get called
+    // multiple times its no big deal. It ensures that some
+    // patches are applied to @angular-devkit code which
+    // are necessary. For the most part, our wrapped host hits
+    // the necessary areas, but for some things it wouldn't make
+    // sense for the adapter to be 100% accurate.
+    //
+    // e.g. Angular warns about tags, but some angular CLI schematics
+    // were written with Nx in mind, and may care about tags.
+    __nccwpck_require__(53882);
+    return async (host, generatorOptions) => {
+        const graph = await (0, project_graph_1.createProjectGraphAsync)();
+        const { projects } = (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(graph);
+        if (mockedSchematics &&
+            mockedSchematics[`${collectionName}:${generatorName}`]) {
+            return await mockedSchematics[`${collectionName}:${generatorName}`](host, generatorOptions);
+        }
+        const recorder = (event) => {
+            let eventPath = event.path.startsWith('/')
+                ? event.path.slice(1)
+                : event.path;
+            if (event.kind === 'error') {
+            }
+            else if (event.kind === 'update') {
+                // Apply special handling for the angular.json file, but only when in an Nx workspace
+                if (eventPath === 'angular.json' && (0, angular_json_1.isAngularPluginInstalled)()) {
+                    saveProjectsConfigurationsInWrappedSchematic(host, event.content.toString());
                 }
                 else {
-                    escaping = true;
+                    host.write(eventPath, event.content);
                 }
-                continue;
             }
-            if (c === '[') {
-                const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i);
-                if (consumed) {
-                    re += src;
-                    uflag = uflag || needUflag;
-                    i += consumed - 1;
-                    hasMagic = hasMagic || magic;
-                    continue;
+            else if (event.kind === 'create') {
+                host.write(eventPath, event.content);
+            }
+            else if (event.kind === 'delete') {
+                host.delete(eventPath);
+            }
+            else if (event.kind === 'rename') {
+                host.rename(eventPath, event.to);
+            }
+        };
+        const fsHost = new NxScopeHostUsedForWrappedSchematics(host.root, host);
+        const logger = (0, exports.getLogger)(generatorOptions.verbose);
+        const options = {
+            generatorOptions,
+            dryRun: true,
+            interactive: false,
+            help: false,
+            debug: false,
+            collectionName,
+            generatorName,
+            force: false,
+            defaults: false,
+            quiet: false,
+        };
+        const workflow = createWorkflow(fsHost, host.root, options, projects);
+        // used for testing
+        if (collectionResolutionOverrides) {
+            const r = workflow.engineHost.resolve;
+            workflow.engineHost.resolve = (collection, b, c) => {
+                if (collectionResolutionOverrides[collection]) {
+                    return collectionResolutionOverrides[collection];
+                }
+                else {
+                    return r.apply(workflow.engineHost, [collection, b, c]);
+                }
+            };
+        }
+        const collection = getCollection(workflow, collectionName);
+        const schematic = collection.createSchematic(generatorName, true);
+        const res = await runSchematic(fsHost, host.root, workflow, logger, options, schematic, false, recorder);
+        if (res.status !== 0) {
+            throw new Error(res.loggingQueue.join('\n'));
+        }
+        const { lastValueFrom } = __nccwpck_require__(1752);
+        const toPromise = (obs) => lastValueFrom ? lastValueFrom(obs) : obs.toPromise();
+        return async () => {
+            // https://github.com/angular/angular-cli/blob/344193f79d880177e421cff85dd3e94338d07420/packages/angular_devkit/schematics/src/workflow/base.ts#L194-L200
+            await toPromise(workflow.engine
+                .executePostTasks()
+                .pipe((0, operators_1.defaultIfEmpty)(undefined), (0, operators_1.last)()));
+        };
+    };
+}
+let logger;
+const getLogger = (isVerbose = false) => {
+    if (!logger) {
+        logger = (0, node_1.createConsoleLogger)(isVerbose, process.stdout, process.stderr, {
+            warn: (s) => chalk.bold(chalk.yellow(s)),
+            error: (s) => {
+                if (s.startsWith('NX ')) {
+                    return `\n${logger_1.NX_ERROR} ${chalk.bold(chalk.red(s.slice(3)))}\n`;
+                }
+                return chalk.bold(chalk.red(s));
+            },
+            info: (s) => {
+                if (s.startsWith('NX ')) {
+                    return `\n${logger_1.NX_PREFIX} ${chalk.bold(s.slice(3))}\n`;
+                }
+                return chalk.white(s);
+            },
+        });
+    }
+    return logger;
+};
+exports.getLogger = getLogger;
+function saveProjectsConfigurationsInWrappedSchematic(host, content) {
+    const projects = (0, angular_json_1.toNewFormat)((0, json_2.parseJson)(content)).projects;
+    const existingProjects = (0, project_configuration_1.getProjects)(host);
+    const existingAngularJson = host.exists('angular.json')
+        ? (0, json_1.readJson)(host, 'angular.json')
+        : null;
+    const projectsInAngularJson = existingAngularJson
+        ? Object.keys(existingAngularJson.projects)
+        : [];
+    const newAngularJson = existingAngularJson || {};
+    // Reset projects in order to rebuild them, but leave other properties untouched
+    newAngularJson.projects = {};
+    Object.keys(projects).forEach((projectName) => {
+        if (projectsInAngularJson.includes(projectName)) {
+            newAngularJson.projects[projectName] = projects[projectName];
+        }
+        else {
+            if (existingProjects.has(projectName)) {
+                if (JSON.stringify(existingProjects.get(projectName)) !==
+                    JSON.stringify(projects[projectName])) {
+                    (0, project_configuration_1.updateProjectConfiguration)(host, projectName, projects[projectName]);
                 }
             }
-            if (c === '*') {
-                if (noEmpty && glob === '*')
-                    re += starNoEmpty;
-                else
-                    re += star;
-                hasMagic = true;
-                continue;
+            else {
+                (0, project_configuration_1.addProjectConfiguration)(host, projectName, projects[projectName]);
             }
-            if (c === '?') {
-                re += qmark;
-                hasMagic = true;
-                continue;
+        }
+    });
+    if (Object.keys(newAngularJson.projects).length > 0) {
+        host.write('angular.json', JSON.stringify((0, angular_json_1.toOldFormat)(newAngularJson), null, 2));
+    }
+}
+async function getWrappedWorkspaceNodeModulesArchitectHost(workspace, root, projects) {
+    const { WorkspaceNodeModulesArchitectHost: AngularWorkspaceNodeModulesArchitectHost, } = await Promise.resolve().then(() => __nccwpck_require__(26236));
+    class WrappedWorkspaceNodeModulesArchitectHost extends AngularWorkspaceNodeModulesArchitectHost {
+        constructor(workspace, root, projects) {
+            super(workspace, root);
+            this.workspace = workspace;
+            this.root = root;
+            this.projects = projects;
+        }
+        async resolveBuilder(builderStr) {
+            const [packageName, builderName] = builderStr.split(':');
+            const { executorsFilePath, executorConfig } = this.readExecutorsJson(packageName, builderName);
+            const builderInfo = this.readExecutor(packageName, builderName);
+            return {
+                name: builderStr,
+                builderName,
+                description: executorConfig.description,
+                optionSchema: builderInfo.schema,
+                import: (0, schema_utils_1.resolveImplementation)(executorConfig.implementation, (0, path_1.dirname)(executorsFilePath)),
+            };
+        }
+        readExecutorsJson(nodeModule, builder, extraRequirePaths = []) {
+            const { json: packageJson, path: packageJsonPath } = (0, plugins_1.readPluginPackageJson)(nodeModule, this.projects, this.root
+                ? [this.root, __dirname, ...extraRequirePaths]
+                : [__dirname, ...extraRequirePaths]);
+            const executorsFile = packageJson.executors ?? packageJson.builders;
+            if (!executorsFile) {
+                throw new Error(`The "${nodeModule}" package does not support Nx executors or Angular Devkit Builders.`);
+            }
+            const basePath = (0, path_1.dirname)(packageJsonPath);
+            const executorsFilePath = /*require.resolve*/(__nccwpck_require__(30024).resolve((0, path_1.join)(basePath, executorsFile)));
+            const executorsJson = (0, fileutils_1.readJsonFile)(executorsFilePath);
+            const executorConfig = executorsJson.builders?.[builder] ?? executorsJson.executors?.[builder];
+            if (!executorConfig) {
+                throw new Error(`Cannot find builder '${builder}' in ${executorsFilePath}.`);
+            }
+            if (typeof executorConfig === 'string') {
+                // Angular CLI can have a builder pointing to another package:builder
+                const [packageName, executorName] = executorConfig.split(':');
+                return this.readExecutorsJson(packageName, executorName, [basePath]);
+            }
+            return { executorsFilePath, executorConfig, isNgCompat: true };
+        }
+        readExecutor(nodeModule, executor) {
+            try {
+                const { executorsFilePath, executorConfig, isNgCompat } = this.readExecutorsJson(nodeModule, executor);
+                const executorsDir = (0, path_1.dirname)(executorsFilePath);
+                const schemaPath = (0, schema_utils_1.resolveSchema)(executorConfig.schema, executorsDir);
+                const schema = (0, executor_utils_1.normalizeExecutorSchema)((0, fileutils_1.readJsonFile)(schemaPath));
+                const implementationFactory = this.getImplementationFactory(executorConfig.implementation, executorsDir);
+                const batchImplementationFactory = executorConfig.batchImplementation
+                    ? this.getImplementationFactory(executorConfig.batchImplementation, executorsDir)
+                    : null;
+                const hasherFactory = executorConfig.hasher
+                    ? this.getImplementationFactory(executorConfig.hasher, executorsDir)
+                    : null;
+                return {
+                    schema,
+                    implementationFactory,
+                    batchImplementationFactory,
+                    hasherFactory,
+                    isNgCompat,
+                };
+            }
+            catch (e) {
+                throw new Error(`Unable to resolve ${nodeModule}:${executor}.\n${e.message}`);
             }
-            re += regExpEscape(c);
         }
-        return [re, (0, unescape_js_1.unescape)(glob), !!hasMagic, uflag];
+        getImplementationFactory(implementation, executorsDir) {
+            return (0, schema_utils_1.getImplementationFactory)(implementation, executorsDir);
+        }
     }
+    return new WrappedWorkspaceNodeModulesArchitectHost(workspace, root, projects);
 }
-exports.AST = AST;
-//# sourceMappingURL=ast.js.map
+
 
 /***/ }),
 
-/***/ 65180:
-/***/ ((__unused_webpack_module, exports) => {
+/***/ 91867:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
-// translate the various posix character classes into unicode properties
-// this works across all unicode locales
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.parseClass = void 0;
-// { : [, /u flag required, negated]
-const posixClasses = {
-    '[:alnum:]': ['\\p{L}\\p{Nl}\\p{Nd}', true],
-    '[:alpha:]': ['\\p{L}\\p{Nl}', true],
-    '[:ascii:]': ['\\x' + '00-\\x' + '7f', false],
-    '[:blank:]': ['\\p{Zs}\\t', true],
-    '[:cntrl:]': ['\\p{Cc}', true],
-    '[:digit:]': ['\\p{Nd}', true],
-    '[:graph:]': ['\\p{Z}\\p{C}', true, true],
-    '[:lower:]': ['\\p{Ll}', true],
-    '[:print:]': ['\\p{C}', true],
-    '[:punct:]': ['\\p{P}', true],
-    '[:space:]': ['\\p{Z}\\t\\r\\n\\v\\f', true],
-    '[:upper:]': ['\\p{Lu}', true],
-    '[:word:]': ['\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}', true],
-    '[:xdigit:]': ['A-Fa-f0-9', false],
-};
-// only need to escape a few things inside of brace expressions
-// escapes: [ \ ] -
-const braceEscape = (s) => s.replace(/[[\]\\-]/g, '\\$&');
-// escape all regexp magic characters
-const regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
-// everything has already been escaped, we just have to join
-const rangesToString = (ranges) => ranges.join('');
-// takes a glob string at a posix brace expression, and returns
-// an equivalent regular expression source, and boolean indicating
-// whether the /u flag needs to be applied, and the number of chars
-// consumed to parse the character class.
-// This also removes out of order ranges, and returns ($.) if the
-// entire class just no good.
-const parseClass = (glob, position) => {
-    const pos = position;
-    /* c8 ignore start */
-    if (glob.charAt(pos) !== '[') {
-        throw new Error('not in a brace expression');
-    }
-    /* c8 ignore stop */
-    const ranges = [];
-    const negs = [];
-    let i = pos + 1;
-    let sawStart = false;
-    let uflag = false;
-    let escaping = false;
-    let negate = false;
-    let endPos = pos;
-    let rangeStart = '';
-    WHILE: while (i < glob.length) {
-        const c = glob.charAt(i);
-        if ((c === '!' || c === '^') && i === pos + 1) {
-            negate = true;
-            i++;
-            continue;
+exports.printChanges = printChanges;
+exports.parseGeneratorString = parseGeneratorString;
+exports.printGenHelp = printGenHelp;
+exports.generate = generate;
+const chalk = __nccwpck_require__(78818);
+const enquirer_1 = __nccwpck_require__(56587);
+const path_1 = __nccwpck_require__(71017);
+const configuration_1 = __nccwpck_require__(34333);
+const tree_1 = __nccwpck_require__(10818);
+const project_graph_1 = __nccwpck_require__(54913);
+const logger_1 = __nccwpck_require__(37270);
+const params_1 = __nccwpck_require__(55457);
+const local_plugins_1 = __nccwpck_require__(6335);
+const print_help_1 = __nccwpck_require__(51958);
+const workspace_root_1 = __nccwpck_require__(64393);
+const calculate_default_project_name_1 = __nccwpck_require__(29966);
+const installed_plugins_1 = __nccwpck_require__(51456);
+const generator_utils_1 = __nccwpck_require__(85331);
+function printChanges(fileChanges) {
+    fileChanges.forEach((f) => {
+        if (f.type === 'CREATE') {
+            console.log(`${chalk.green('CREATE')} ${f.path}`);
         }
-        if (c === ']' && sawStart && !escaping) {
-            endPos = i + 1;
-            break;
+        else if (f.type === 'UPDATE') {
+            console.log(`${chalk.white('UPDATE')} ${f.path}`);
         }
-        sawStart = true;
-        if (c === '\\') {
-            if (!escaping) {
-                escaping = true;
-                i++;
+        else if (f.type === 'DELETE') {
+            console.log(`${chalk.yellow('DELETE')} ${f.path}`);
+        }
+    });
+}
+async function promptForCollection(generatorName, interactive, projectsConfiguration) {
+    const localPlugins = await (0, local_plugins_1.getLocalWorkspacePlugins)(projectsConfiguration, (0, configuration_1.readNxJson)());
+    const installedCollections = Array.from(new Set((0, installed_plugins_1.findInstalledPlugins)().map((x) => x.name)));
+    const choicesMap = new Set();
+    const deprecatedChoices = new Set();
+    for (const collectionName of installedCollections) {
+        try {
+            const { resolvedCollectionName, normalizedGeneratorName, generatorConfiguration: { ['x-deprecated']: deprecated, hidden }, } = (0, generator_utils_1.getGeneratorInformation)(collectionName, generatorName, workspace_root_1.workspaceRoot, projectsConfiguration.projects);
+            if (hidden) {
                 continue;
             }
-            // escaped \ char, fall through and treat like normal char
+            if (deprecated) {
+                deprecatedChoices.add(`${resolvedCollectionName}:${normalizedGeneratorName}`);
+            }
+            else {
+                choicesMap.add(`${resolvedCollectionName}:${normalizedGeneratorName}`);
+            }
         }
-        if (c === '[' && !escaping) {
-            // either a posix class, a collation equivalent, or just a [
-            for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
-                if (glob.startsWith(cls, i)) {
-                    // invalid, [a-[] is fine, but not [a-[:alpha]]
-                    if (rangeStart) {
-                        return ['$.', false, glob.length - pos, true];
-                    }
-                    i += cls.length;
-                    if (neg)
-                        negs.push(unip);
-                    else
-                        ranges.push(unip);
-                    uflag = uflag || u;
-                    continue WHILE;
+        catch { }
+    }
+    const choicesFromLocalPlugins = [];
+    for (const [name] of localPlugins) {
+        try {
+            const { resolvedCollectionName, normalizedGeneratorName, generatorConfiguration: { ['x-deprecated']: deprecated, hidden }, } = (0, generator_utils_1.getGeneratorInformation)(name, generatorName, workspace_root_1.workspaceRoot, projectsConfiguration.projects);
+            if (hidden) {
+                continue;
+            }
+            const value = `${resolvedCollectionName}:${normalizedGeneratorName}`;
+            if (!choicesMap.has(value)) {
+                if (deprecated) {
+                    deprecatedChoices.add(value);
+                }
+                else {
+                    choicesFromLocalPlugins.push({
+                        name: value,
+                        message: chalk.bold(value),
+                        value,
+                    });
                 }
             }
         }
-        // now it's just a normal character, effectively
-        escaping = false;
-        if (rangeStart) {
-            // throw this range away if it's not valid, but others
-            // can still match.
-            if (c > rangeStart) {
-                ranges.push(braceEscape(rangeStart) + '-' + braceEscape(c));
+        catch { }
+    }
+    if (choicesFromLocalPlugins.length) {
+        choicesFromLocalPlugins[choicesFromLocalPlugins.length - 1].message += '\n';
+    }
+    const choices = choicesFromLocalPlugins.concat(...choicesMap);
+    if (choices.length === 1) {
+        return typeof choices[0] === 'string' ? choices[0] : choices[0].value;
+    }
+    else if (!interactive && choices.length > 1) {
+        throwInvalidInvocation(Array.from(choicesMap));
+    }
+    else if (interactive && choices.length > 1) {
+        const noneOfTheAbove = `\nNone of the above`;
+        choices.push(noneOfTheAbove);
+        let { generator, customCollection } = await (0, enquirer_1.prompt)([
+            {
+                name: 'generator',
+                message: `Which generator would you like to use?`,
+                type: 'autocomplete',
+                // enquirer's typings are incorrect here... It supports (string | Choice)[], but is typed as (string[] | Choice[])
+                choices: choices,
+            },
+            {
+                name: 'customCollection',
+                type: 'input',
+                message: `Which collection would you like to use?`,
+                skip: function () {
+                    // Skip this question if the user did not answer None of the above
+                    return this.state.answers.generator !== noneOfTheAbove;
+                },
+                validate: function (value) {
+                    if (this.skipped) {
+                        return true;
+                    }
+                    try {
+                        (0, generator_utils_1.getGeneratorInformation)(value, generatorName, workspace_root_1.workspaceRoot, projectsConfiguration.projects);
+                        return true;
+                    }
+                    catch {
+                        logger_1.logger.error(`\nCould not find ${value}:${generatorName}`);
+                        return false;
+                    }
+                },
+            },
+        ]);
+        return customCollection
+            ? `${customCollection}:${generatorName}`
+            : generator;
+    }
+    else if (deprecatedChoices.size > 0) {
+        throw new Error([
+            `All installed generators named "${generatorName}" are deprecated. To run one, provide its full \`collection:generator\` id.`,
+            [...deprecatedChoices].map((x) => `  - ${x}`),
+        ].join('\n'));
+    }
+    else {
+        throw new Error(`Could not find any generators named "${generatorName}"`);
+    }
+}
+function parseGeneratorString(value) {
+    const separatorIndex = value.lastIndexOf(':');
+    if (separatorIndex > 0) {
+        return {
+            collection: value.slice(0, separatorIndex),
+            generator: value.slice(separatorIndex + 1),
+        };
+    }
+    else {
+        return {
+            generator: value,
+        };
+    }
+}
+async function convertToGenerateOptions(generatorOptions, mode, projectsConfiguration) {
+    let collectionName = null;
+    let generatorName = null;
+    const interactive = generatorOptions.interactive;
+    if (mode === 'generate') {
+        const generatorDescriptor = generatorOptions['generator'];
+        const { collection, generator } = parseGeneratorString(generatorDescriptor);
+        if (collection) {
+            collectionName = collection;
+            generatorName = generator;
+        }
+        else {
+            const generatorString = await promptForCollection(generatorDescriptor, interactive, projectsConfiguration);
+            const parsedGeneratorString = parseGeneratorString(generatorString);
+            collectionName = parsedGeneratorString.collection;
+            generatorName = parsedGeneratorString.generator;
+        }
+    }
+    else {
+        collectionName = generatorOptions.collection;
+        generatorName = 'new';
+    }
+    const res = {
+        collectionName,
+        generatorName,
+        generatorOptions,
+        help: generatorOptions.help,
+        dryRun: generatorOptions.dryRun,
+        interactive,
+        defaults: generatorOptions.defaults,
+        quiet: generatorOptions.quiet,
+    };
+    delete generatorOptions.d;
+    delete generatorOptions.dryRun;
+    delete generatorOptions['dry-run'];
+    delete generatorOptions.interactive;
+    delete generatorOptions.help;
+    delete generatorOptions.collection;
+    delete generatorOptions.verbose;
+    delete generatorOptions.generator;
+    delete generatorOptions['--'];
+    delete generatorOptions['$0'];
+    delete generatorOptions.quiet;
+    return res;
+}
+function throwInvalidInvocation(availableGenerators) {
+    throw new Error(`Specify the generator name (e.g., nx generate ${availableGenerators.join(', ')})`);
+}
+function printGenHelp(opts, schema, normalizedGeneratorName, aliases) {
+    (0, print_help_1.printHelp)(`generate ${opts.collectionName}:${normalizedGeneratorName}`, {
+        ...schema,
+        properties: schema.properties,
+    }, {
+        mode: 'generate',
+        plugin: opts.collectionName,
+        entity: normalizedGeneratorName,
+        aliases,
+    });
+}
+async function generate(cwd, args) {
+    if (args['verbose']) {
+        process.env.NX_VERBOSE_LOGGING = 'true';
+    }
+    const verbose = process.env.NX_VERBOSE_LOGGING === 'true';
+    return (0, params_1.handleErrors)(verbose, async () => {
+        const nxJsonConfiguration = (0, configuration_1.readNxJson)();
+        const projectGraph = await (0, project_graph_1.createProjectGraphAsync)();
+        const projectsConfigurations = (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(projectGraph);
+        const opts = await convertToGenerateOptions(args, 'generate', projectsConfigurations);
+        const { normalizedGeneratorName, schema, implementationFactory, generatorConfiguration: { aliases, hidden, ['x-deprecated']: deprecated, ['x-use-standalone-layout']: isStandalonePreset, }, } = (0, generator_utils_1.getGeneratorInformation)(opts.collectionName, opts.generatorName, workspace_root_1.workspaceRoot, projectsConfigurations.projects);
+        if (deprecated) {
+            logger_1.logger.warn([
+                `${logger_1.NX_PREFIX}: ${opts.collectionName}:${normalizedGeneratorName} is deprecated`,
+                `${deprecated}`,
+            ].join('\n'));
+        }
+        if (!opts.quiet && !opts.help) {
+            logger_1.logger.info(`NX Generating ${opts.collectionName}:${normalizedGeneratorName}`);
+        }
+        if (opts.help) {
+            printGenHelp(opts, schema, normalizedGeneratorName, aliases);
+            return 0;
+        }
+        const combinedOpts = await (0, params_1.combineOptionsForGenerator)(opts.generatorOptions, opts.collectionName, normalizedGeneratorName, projectsConfigurations, nxJsonConfiguration, schema, opts.interactive, (0, calculate_default_project_name_1.calculateDefaultProjectName)(cwd, workspace_root_1.workspaceRoot, projectsConfigurations, nxJsonConfiguration), (0, path_1.relative)(workspace_root_1.workspaceRoot, cwd), verbose);
+        if ((0, generator_utils_1.getGeneratorInformation)(opts.collectionName, normalizedGeneratorName, workspace_root_1.workspaceRoot, projectsConfigurations.projects).isNxGenerator) {
+            const host = new tree_1.FsTree(workspace_root_1.workspaceRoot, verbose, `generating (${opts.collectionName}:${normalizedGeneratorName})`);
+            const implementation = implementationFactory();
+            // @todo(v17): Remove this, isStandalonePreset property is defunct.
+            if (normalizedGeneratorName === 'preset' && !isStandalonePreset) {
+                host.write('apps/.gitkeep', '');
+                host.write('libs/.gitkeep', '');
+            }
+            const task = await implementation(host, combinedOpts);
+            host.lock();
+            const changes = host.listChanges();
+            if (!opts.quiet) {
+                printChanges(changes);
+            }
+            if (!opts.dryRun) {
+                (0, tree_1.flushChanges)(workspace_root_1.workspaceRoot, changes);
+                if (task) {
+                    await task();
+                }
             }
-            else if (c === rangeStart) {
-                ranges.push(braceEscape(c));
+            else {
+                logger_1.logger.warn(`\nNOTE: The "dryRun" flag means no changes were made.`);
             }
-            rangeStart = '';
-            i++;
-            continue;
         }
-        // now might be the start of a range.
-        // can be either c-d or c-] or c] or c] at this point
-        if (glob.startsWith('-]', i + 1)) {
-            ranges.push(braceEscape(c + '-'));
-            i += 2;
-            continue;
+        else {
+            __nccwpck_require__(53882);
+            return (await Promise.resolve().then(() => __nccwpck_require__(96506))).generate(workspace_root_1.workspaceRoot, {
+                ...opts,
+                generatorOptions: combinedOpts,
+            }, projectsConfigurations.projects, verbose);
         }
-        if (glob.startsWith('-', i + 1)) {
-            rangeStart = c;
-            i += 2;
-            continue;
+    });
+}
+
+
+/***/ }),
+
+/***/ 85331:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getGeneratorInformation = getGeneratorInformation;
+exports.readGeneratorsJson = readGeneratorsJson;
+const path_1 = __nccwpck_require__(71017);
+const schema_utils_1 = __nccwpck_require__(62607);
+const fileutils_1 = __nccwpck_require__(40910);
+const plugins_1 = __nccwpck_require__(69461);
+function getGeneratorInformation(collectionName, generatorName, root, projects) {
+    try {
+        const { generatorsFilePath, generatorsJson, resolvedCollectionName, normalizedGeneratorName, } = readGeneratorsJson(collectionName, generatorName, root, projects);
+        const generatorsDir = (0, path_1.dirname)(generatorsFilePath);
+        const generatorConfig = generatorsJson.generators?.[normalizedGeneratorName] ||
+            generatorsJson.schematics?.[normalizedGeneratorName];
+        const isNgCompat = !generatorsJson.generators?.[normalizedGeneratorName];
+        const schemaPath = (0, schema_utils_1.resolveSchema)(generatorConfig.schema, generatorsDir);
+        const schema = (0, fileutils_1.readJsonFile)(schemaPath);
+        if (!schema.properties || typeof schema.properties !== 'object') {
+            schema.properties = {};
+        }
+        generatorConfig.implementation =
+            generatorConfig.implementation || generatorConfig.factory;
+        const implementationFactory = (0, schema_utils_1.getImplementationFactory)(generatorConfig.implementation, generatorsDir);
+        const normalizedGeneratorConfiguration = {
+            ...generatorConfig,
+            aliases: generatorConfig.aliases ?? [],
+            hidden: !!generatorConfig.hidden,
+        };
+        return {
+            resolvedCollectionName,
+            normalizedGeneratorName,
+            schema,
+            implementationFactory,
+            isNgCompat,
+            isNxGenerator: !isNgCompat,
+            generatorConfiguration: normalizedGeneratorConfiguration,
+        };
+    }
+    catch (e) {
+        throw new Error(`Unable to resolve ${collectionName}:${generatorName}.\n${e.message}`);
+    }
+}
+function readGeneratorsJson(collectionName, generator, root, projects) {
+    let generatorsFilePath;
+    if (collectionName.endsWith('.json')) {
+        generatorsFilePath = require.resolve(collectionName, {
+            paths: root ? [root, __dirname] : [__dirname],
+        });
+    }
+    else {
+        const { json: packageJson, path: packageJsonPath } = (0, plugins_1.readPluginPackageJson)(collectionName, projects, root ? [root, __dirname] : [__dirname]);
+        const generatorsFile = packageJson.generators ?? packageJson.schematics;
+        if (!generatorsFile) {
+            throw new Error(`The "${collectionName}" package does not support Nx generators.`);
+        }
+        generatorsFilePath = require.resolve((0, path_1.join)((0, path_1.dirname)(packageJsonPath), generatorsFile));
+    }
+    const generatorsJson = (0, fileutils_1.readJsonFile)(generatorsFilePath);
+    let normalizedGeneratorName = findFullGeneratorName(generator, generatorsJson.generators) ||
+        findFullGeneratorName(generator, generatorsJson.schematics);
+    if (!normalizedGeneratorName) {
+        for (let parent of generatorsJson.extends || []) {
+            try {
+                return readGeneratorsJson(parent, generator, root, projects);
+            }
+            catch (e) { }
         }
-        // not the start of a range, just a single character
-        ranges.push(braceEscape(c));
-        i++;
+        throw new Error(`Cannot find generator '${generator}' in ${generatorsFilePath}.`);
     }
-    if (endPos < i) {
-        // didn't see the end of the class, not a valid class,
-        // but might still be valid as a literal match.
-        return ['', false, 0, false];
+    return {
+        generatorsFilePath,
+        generatorsJson,
+        normalizedGeneratorName,
+        resolvedCollectionName: collectionName,
+    };
+}
+function findFullGeneratorName(name, generators) {
+    if (generators) {
+        for (let [key, data] of Object.entries(generators)) {
+            if (key === name ||
+                (data.aliases && data.aliases.includes(name))) {
+                return key;
+            }
+        }
     }
-    // if we got no ranges and no negates, then we have a range that
-    // cannot possibly match anything, and that poisons the whole glob
-    if (!ranges.length && !negs.length) {
-        return ['$.', false, glob.length - pos, true];
+}
+
+
+/***/ }),
+
+/***/ 84678:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.normalizeExecutorSchema = normalizeExecutorSchema;
+exports.getExecutorInformation = getExecutorInformation;
+const path_1 = __nccwpck_require__(71017);
+const plugins_1 = __nccwpck_require__(69461);
+const fileutils_1 = __nccwpck_require__(40910);
+const schema_utils_1 = __nccwpck_require__(62607);
+const installation_directory_1 = __nccwpck_require__(87836);
+function normalizeExecutorSchema(schema) {
+    const version = (schema.version ??= 1);
+    return {
+        version,
+        outputCapture: schema.outputCapture ?? version < 2 ? 'direct-nodejs' : 'pipe',
+        properties: !schema.properties || typeof schema.properties !== 'object'
+            ? {}
+            : schema.properties,
+        ...schema,
+    };
+}
+function cacheKey(nodeModule, executor, root) {
+    return `${root}:${nodeModule}:${executor}`;
+}
+const cachedExecutorInformation = {};
+function getExecutorInformation(nodeModule, executor, root, projects) {
+    try {
+        const key = cacheKey(nodeModule, executor, root);
+        if (cachedExecutorInformation[key])
+            return cachedExecutorInformation[key];
+        const { executorsFilePath, executorConfig, isNgCompat } = readExecutorJson(nodeModule, executor, root, projects);
+        const executorsDir = (0, path_1.dirname)(executorsFilePath);
+        const schemaPath = (0, schema_utils_1.resolveSchema)(executorConfig.schema, executorsDir);
+        const schema = normalizeExecutorSchema((0, fileutils_1.readJsonFile)(schemaPath));
+        const implementationFactory = (0, schema_utils_1.getImplementationFactory)(executorConfig.implementation, executorsDir);
+        const batchImplementationFactory = executorConfig.batchImplementation
+            ? (0, schema_utils_1.getImplementationFactory)(executorConfig.batchImplementation, executorsDir)
+            : null;
+        const hasherFactory = executorConfig.hasher
+            ? (0, schema_utils_1.getImplementationFactory)(executorConfig.hasher, executorsDir)
+            : null;
+        const res = {
+            schema,
+            implementationFactory,
+            batchImplementationFactory,
+            hasherFactory,
+            isNgCompat,
+            isNxExecutor: !isNgCompat,
+        };
+        cachedExecutorInformation[key] = res;
+        return res;
     }
-    // if we got one positive range, and it's a single character, then that's
-    // not actually a magic pattern, it's just that one literal character.
-    // we should not treat that as "magic", we should just return the literal
-    // character. [_] is a perfectly valid way to escape glob magic chars.
-    if (negs.length === 0 &&
-        ranges.length === 1 &&
-        /^\\?.$/.test(ranges[0]) &&
-        !negate) {
-        const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
-        return [regexpEscape(r), false, endPos - pos, false];
+    catch (e) {
+        throw new Error(`Unable to resolve ${nodeModule}:${executor}.\n${e.message}`);
     }
-    const sranges = '[' + (negate ? '^' : '') + rangesToString(ranges) + ']';
-    const snegs = '[' + (negate ? '' : '^') + rangesToString(negs) + ']';
-    const comb = ranges.length && negs.length
-        ? '(' + sranges + '|' + snegs + ')'
-        : ranges.length
-            ? sranges
-            : snegs;
-    return [comb, uflag, endPos - pos, true];
-};
-exports.parseClass = parseClass;
-//# sourceMappingURL=brace-expressions.js.map
+}
+function readExecutorJson(nodeModule, executor, root, projects, extraRequirePaths = []) {
+    const { json: packageJson, path: packageJsonPath } = (0, plugins_1.readPluginPackageJson)(nodeModule, projects, root
+        ? [
+            root,
+            __dirname,
+            process.cwd(),
+            ...(0, installation_directory_1.getNxRequirePaths)(),
+            ...extraRequirePaths,
+        ]
+        : [__dirname, process.cwd(), ...(0, installation_directory_1.getNxRequirePaths)(), ...extraRequirePaths]);
+    const executorsFile = packageJson.executors ?? packageJson.builders;
+    if (!executorsFile) {
+        throw new Error(`The "${nodeModule}" package does not support Nx executors.`);
+    }
+    const basePath = (0, path_1.dirname)(packageJsonPath);
+    const executorsFilePath = /*require.resolve*/(__nccwpck_require__(87739).resolve((0, path_1.join)(basePath, executorsFile)));
+    const executorsJson = (0, fileutils_1.readJsonFile)(executorsFilePath);
+    const executorConfig = executorsJson.executors?.[executor] || executorsJson.builders?.[executor];
+    if (!executorConfig) {
+        throw new Error(`Cannot find executor '${executor}' in ${executorsFilePath}.`);
+    }
+    if (typeof executorConfig === 'string') {
+        // Angular CLI can have a builder pointing to another package:builder
+        const [packageName, executorName] = executorConfig.split(':');
+        return readExecutorJson(packageName, executorName, root, projects, [
+            basePath,
+        ]);
+    }
+    const isNgCompat = !executorsJson.executors?.[executor];
+    return { executorsFilePath, executorConfig, isNgCompat };
+}
+
 
 /***/ }),
 
-/***/ 67350:
+/***/ 29966:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.calculateDefaultProjectName = calculateDefaultProjectName;
+exports.findMatchingProjectInCwd = findMatchingProjectInCwd;
+const find_project_for_path_1 = __nccwpck_require__(69621);
+const path_1 = __nccwpck_require__(71017);
+function calculateDefaultProjectName(cwd, root, { projects }, nxJson) {
+    const relativeCwd = (0, path_1.relative)(root, cwd).replace(/\\/g, '/') ?? null;
+    if (relativeCwd !== null) {
+        const matchingProject = findMatchingProjectInCwd(projects, relativeCwd);
+        // We have found a project
+        if (matchingProject) {
+            // That is not at the root
+            if (projects[matchingProject].root !== '.' &&
+                projects[matchingProject].root !== '') {
+                return matchingProject;
+                // But its at the root, and NX_DEFAULT_PROJECT is set
+            }
+            else if (process.env.NX_DEFAULT_PROJECT) {
+                return process.env.NX_DEFAULT_PROJECT;
+                // Its root, and NX_DEFAULT_PROJECT is not set
+            }
+            else {
+                return matchingProject;
+            }
+        }
+    }
+    // There was no matching project in cwd.
+    return (process.env.NX_DEFAULT_PROJECT ??
+        nxJson.cli?.defaultProjectName ??
+        nxJson?.defaultProject);
+}
+function findMatchingProjectInCwd(projects, relativeCwd) {
+    const projectRootMappings = new Map();
+    for (const projectName of Object.keys(projects)) {
+        const { root } = projects[projectName];
+        projectRootMappings.set((0, find_project_for_path_1.normalizeProjectRoot)(root), projectName);
+    }
+    const matchingProject = (0, find_project_for_path_1.findProjectForPath)(relativeCwd, projectRootMappings);
+    return matchingProject;
+}
+
+
+/***/ }),
+
+/***/ 34333:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.readNxJson = void 0;
+exports.workspaceLayout = workspaceLayout;
+const nx_json_1 = __nccwpck_require__(21173);
+/**
+ * Returns information about where apps and libs will be created.
+ */
+function workspaceLayout() {
+    const nxJson = (0, nx_json_1.readNxJson)();
+    return {
+        appsDir: nxJson.workspaceLayout?.appsDir ?? 'apps',
+        libsDir: nxJson.workspaceLayout?.libsDir ?? 'libs',
+    };
+}
+var nx_json_2 = __nccwpck_require__(21173);
+Object.defineProperty(exports, "readNxJson", ({ enumerable: true, get: function () { return nx_json_2.readNxJson; } }));
+
+
+/***/ }),
+
+/***/ 21173:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.readNxJson = readNxJson;
+exports.hasNxJson = hasNxJson;
+const fs_1 = __nccwpck_require__(57147);
+const path_1 = __nccwpck_require__(71017);
+const fileutils_1 = __nccwpck_require__(40910);
+const workspace_root_1 = __nccwpck_require__(64393);
+function readNxJson(root = workspace_root_1.workspaceRoot) {
+    const nxJson = (0, path_1.join)(root, 'nx.json');
+    if ((0, fs_1.existsSync)(nxJson)) {
+        const nxJsonConfiguration = (0, fileutils_1.readJsonFile)(nxJson);
+        if (nxJsonConfiguration.extends) {
+            const extendedNxJsonPath = require.resolve(nxJsonConfiguration.extends, {
+                paths: [(0, path_1.dirname)(nxJson)],
+            });
+            const baseNxJson = (0, fileutils_1.readJsonFile)(extendedNxJsonPath);
+            return {
+                ...baseNxJson,
+                ...nxJsonConfiguration,
+            };
+        }
+        else {
+            return nxJsonConfiguration;
+        }
+    }
+    else {
+        try {
+            return (0, fileutils_1.readJsonFile)((0, path_1.join)(__dirname, '..', '..', 'presets', 'core.json'));
+        }
+        catch (e) {
+            return {};
+        }
+    }
+}
+function hasNxJson(root) {
+    const nxJson = (0, path_1.join)(root, 'nx.json');
+    return (0, fs_1.existsSync)(nxJson);
+}
+
+
+/***/ }),
+
+/***/ 72733:
 /***/ ((__unused_webpack_module, exports) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.escape = void 0;
+exports.DependencyType = void 0;
+exports.fileDataDepTarget = fileDataDepTarget;
+exports.fileDataDepType = fileDataDepType;
+function fileDataDepTarget(dep) {
+    return typeof dep === 'string'
+        ? dep
+        : Array.isArray(dep) && dep.length === 2
+            ? dep[0]
+            : dep[1];
+}
+function fileDataDepType(dep) {
+    return typeof dep === 'string'
+        ? 'static'
+        : Array.isArray(dep) && dep.length === 2
+            ? dep[1]
+            : dep[2];
+}
 /**
- * Escape all magic characters in a glob pattern.
- *
- * If the {@link windowsPathsNoEscape | GlobOptions.windowsPathsNoEscape}
- * option is used, then characters are escaped by wrapping in `[]`, because
- * a magic character wrapped in a character class can only be satisfied by
- * that exact character.  In this mode, `\` is _not_ escaped, because it is
- * not interpreted as a magic character, but instead as a path separator.
+ * Type of dependency between projects
  */
-const escape = (s, { windowsPathsNoEscape = false, } = {}) => {
-    // don't need to escape +@! because we escape the parens
-    // that make those magic, and escaping ! as [!] isn't valid,
-    // because [!]] is a valid glob class meaning not ']'.
-    return windowsPathsNoEscape
-        ? s.replace(/[?*()[\]]/g, '[$&]')
-        : s.replace(/[?*()[\]\\]/g, '\\$&');
-};
-exports.escape = escape;
-//# sourceMappingURL=escape.js.map
+var DependencyType;
+(function (DependencyType) {
+    /**
+     * Static dependencies are tied to the loading of the module
+     */
+    DependencyType["static"] = "static";
+    /**
+     * Dynamic dependencies are brought in by the module at run time
+     */
+    DependencyType["dynamic"] = "dynamic";
+    /**
+     * Implicit dependencies are inferred
+     */
+    DependencyType["implicit"] = "implicit";
+})(DependencyType || (exports.DependencyType = DependencyType = {}));
+
 
 /***/ }),
 
-/***/ 62362:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+/***/ 62607:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
-var __importDefault = (this && this.__importDefault) || function (mod) {
-    return (mod && mod.__esModule) ? mod : { "default": mod };
-};
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0;
-const brace_expansion_1 = __importDefault(__nccwpck_require__(33717));
-const assert_valid_pattern_js_1 = __nccwpck_require__(37840);
-const ast_js_1 = __nccwpck_require__(81227);
-const escape_js_1 = __nccwpck_require__(67350);
-const unescape_js_1 = __nccwpck_require__(40391);
-const minimatch = (p, pattern, options = {}) => {
-    (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
-    // shortcut: comments match nothing.
-    if (!options.nocomment && pattern.charAt(0) === '#') {
-        return false;
+exports.getImplementationFactory = getImplementationFactory;
+exports.resolveImplementation = resolveImplementation;
+exports.resolveSchema = resolveSchema;
+const fs_1 = __nccwpck_require__(57147);
+const path_1 = __nccwpck_require__(71017);
+const plugins_1 = __nccwpck_require__(69461);
+/**
+ * This function is used to get the implementation factory of an executor or generator.
+ * @param implementation path to the implementation
+ * @param directory path to the directory
+ * @returns a function that returns the implementation
+ */
+function getImplementationFactory(implementation, directory) {
+    const [implementationModulePath, implementationExportName] = implementation.split('#');
+    return () => {
+        const modulePath = resolveImplementation(implementationModulePath, directory);
+        if ((0, path_1.extname)(modulePath) === '.ts') {
+            (0, plugins_1.registerPluginTSTranspiler)();
+        }
+        const module = require(modulePath);
+        return implementationExportName
+            ? module[implementationExportName]
+            : module.default ?? module;
+    };
+}
+/**
+ * This function is used to resolve the implementation of an executor or generator.
+ * @param implementationModulePath
+ * @param directory
+ * @returns path to the implementation
+ */
+function resolveImplementation(implementationModulePath, directory) {
+    const validImplementations = ['', '.js', '.ts'].map((x) => implementationModulePath + x);
+    for (const maybeImplementation of validImplementations) {
+        const maybeImplementationPath = (0, path_1.join)(directory, maybeImplementation);
+        if ((0, fs_1.existsSync)(maybeImplementationPath)) {
+            return maybeImplementationPath;
+        }
+        try {
+            return require.resolve(maybeImplementation, {
+                paths: [directory],
+            });
+        }
+        catch { }
     }
-    return new Minimatch(pattern, options).match(p);
-};
-exports.minimatch = minimatch;
-// Optimized checking for the most common glob patterns.
-const starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
-const starDotExtTest = (ext) => (f) => !f.startsWith('.') && f.endsWith(ext);
-const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
-const starDotExtTestNocase = (ext) => {
-    ext = ext.toLowerCase();
-    return (f) => !f.startsWith('.') && f.toLowerCase().endsWith(ext);
-};
-const starDotExtTestNocaseDot = (ext) => {
-    ext = ext.toLowerCase();
-    return (f) => f.toLowerCase().endsWith(ext);
-};
-const starDotStarRE = /^\*+\.\*+$/;
-const starDotStarTest = (f) => !f.startsWith('.') && f.includes('.');
-const starDotStarTestDot = (f) => f !== '.' && f !== '..' && f.includes('.');
-const dotStarRE = /^\.\*+$/;
-const dotStarTest = (f) => f !== '.' && f !== '..' && f.startsWith('.');
-const starRE = /^\*+$/;
-const starTest = (f) => f.length !== 0 && !f.startsWith('.');
-const starTestDot = (f) => f.length !== 0 && f !== '.' && f !== '..';
-const qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
-const qmarksTestNocase = ([$0, ext = '']) => {
-    const noext = qmarksTestNoExt([$0]);
-    if (!ext)
-        return noext;
-    ext = ext.toLowerCase();
-    return (f) => noext(f) && f.toLowerCase().endsWith(ext);
-};
-const qmarksTestNocaseDot = ([$0, ext = '']) => {
-    const noext = qmarksTestNoExtDot([$0]);
-    if (!ext)
-        return noext;
-    ext = ext.toLowerCase();
-    return (f) => noext(f) && f.toLowerCase().endsWith(ext);
-};
-const qmarksTestDot = ([$0, ext = '']) => {
-    const noext = qmarksTestNoExtDot([$0]);
-    return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
-};
-const qmarksTest = ([$0, ext = '']) => {
-    const noext = qmarksTestNoExt([$0]);
-    return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
-};
-const qmarksTestNoExt = ([$0]) => {
-    const len = $0.length;
-    return (f) => f.length === len && !f.startsWith('.');
-};
-const qmarksTestNoExtDot = ([$0]) => {
-    const len = $0.length;
-    return (f) => f.length === len && f !== '.' && f !== '..';
-};
-/* c8 ignore start */
-const defaultPlatform = (typeof process === 'object' && process
-    ? (typeof process.env === 'object' &&
-        process.env &&
-        process.env.__MINIMATCH_TESTING_PLATFORM__) ||
-        process.platform
-    : 'posix');
-const path = {
-    win32: { sep: '\\' },
-    posix: { sep: '/' },
-};
-/* c8 ignore stop */
-exports.sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep;
-exports.minimatch.sep = exports.sep;
-exports.GLOBSTAR = Symbol('globstar **');
-exports.minimatch.GLOBSTAR = exports.GLOBSTAR;
-// any single thing other than /
-// don't need to escape / when using new RegExp()
-const qmark = '[^/]';
-// * => any number of characters
-const star = qmark + '*?';
-// ** when dots are allowed.  Anything goes, except .. and .
-// not (^ or / followed by one or two dots followed by $ or /),
-// followed by anything, any number of times.
-const twoStarDot = '(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?';
-// not a ^ or / followed by a dot,
-// followed by anything, any number of times.
-const twoStarNoDot = '(?:(?!(?:\\/|^)\\.).)*?';
-const filter = (pattern, options = {}) => (p) => (0, exports.minimatch)(p, pattern, options);
-exports.filter = filter;
-exports.minimatch.filter = exports.filter;
-const ext = (a, b = {}) => Object.assign({}, a, b);
-const defaults = (def) => {
-    if (!def || typeof def !== 'object' || !Object.keys(def).length) {
-        return exports.minimatch;
+    throw new Error(`Could not resolve "${implementationModulePath}" from "${directory}".`);
+}
+function resolveSchema(schemaPath, directory) {
+    const maybeSchemaPath = (0, path_1.join)(directory, schemaPath);
+    if ((0, fs_1.existsSync)(maybeSchemaPath)) {
+        return maybeSchemaPath;
     }
-    const orig = exports.minimatch;
-    const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
-    return Object.assign(m, {
-        Minimatch: class Minimatch extends orig.Minimatch {
-            constructor(pattern, options = {}) {
-                super(pattern, ext(def, options));
-            }
-            static defaults(options) {
-                return orig.defaults(ext(def, options)).Minimatch;
-            }
-        },
-        AST: class AST extends orig.AST {
-            /* c8 ignore start */
-            constructor(type, parent, options = {}) {
-                super(type, parent, ext(def, options));
-            }
-            /* c8 ignore stop */
-            static fromGlob(pattern, options = {}) {
-                return orig.AST.fromGlob(pattern, ext(def, options));
-            }
-        },
-        unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
-        escape: (s, options = {}) => orig.escape(s, ext(def, options)),
-        filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
-        defaults: (options) => orig.defaults(ext(def, options)),
-        makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
-        braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
-        match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
-        sep: orig.sep,
-        GLOBSTAR: exports.GLOBSTAR,
+    return require.resolve(schemaPath, {
+        paths: [directory],
     });
-};
-exports.defaults = defaults;
-exports.minimatch.defaults = exports.defaults;
-// Brace expansion:
-// a{b,c}d -> abd acd
-// a{b,}c -> abc ac
-// a{0..3}d -> a0d a1d a2d a3d
-// a{b,c{d,e}f}g -> abg acdfg acefg
-// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg
-//
-// Invalid sets are not expanded.
-// a{2..}b -> a{2..}b
-// a{b}c -> a{b}c
-const braceExpand = (pattern, options = {}) => {
-    (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
-    // Thanks to Yeting Li  for
-    // improving this regexp to avoid a ReDOS vulnerability.
-    if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
-        // shortcut. no need to expand.
-        return [pattern];
+}
+
+
+/***/ }),
+
+/***/ 10750:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.toProjectName = toProjectName;
+const path_1 = __nccwpck_require__(71017);
+/**
+ * Pulled from toFileName in names from @nx/devkit.
+ * Todo: Should refactor, not duplicate.
+ */
+function toProjectName(fileName) {
+    const parts = (0, path_1.dirname)(fileName).split(/[\/\\]/g);
+    return parts[parts.length - 1].toLowerCase();
+}
+
+
+/***/ }),
+
+/***/ 70800:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.serverProcessJsonPath = void 0;
+exports.readDaemonProcessJsonCache = readDaemonProcessJsonCache;
+exports.deleteDaemonJsonProcessCache = deleteDaemonJsonProcessCache;
+exports.writeDaemonJsonProcessCache = writeDaemonJsonProcessCache;
+exports.waitForDaemonToExitAndCleanupProcessJson = waitForDaemonToExitAndCleanupProcessJson;
+exports.safelyCleanUpExistingProcess = safelyCleanUpExistingProcess;
+exports.getDaemonProcessIdSync = getDaemonProcessIdSync;
+const fs_extra_1 = __nccwpck_require__(2103);
+const path_1 = __nccwpck_require__(71017);
+const tmp_dir_1 = __nccwpck_require__(71524);
+exports.serverProcessJsonPath = (0, path_1.join)(tmp_dir_1.DAEMON_DIR_FOR_CURRENT_WORKSPACE, 'server-process.json');
+async function readDaemonProcessJsonCache() {
+    if (!(0, fs_extra_1.existsSync)(exports.serverProcessJsonPath)) {
+        return null;
     }
-    return (0, brace_expansion_1.default)(pattern);
-};
-exports.braceExpand = braceExpand;
-exports.minimatch.braceExpand = exports.braceExpand;
-// parse a component of the expanded set.
-// At this point, no pattern may contain "/" in it
-// so we're going to return a 2d array, where each entry is the full
-// pattern, split on '/', and then turned into a regular expression.
-// A regexp is made at the end which joins each array with an
-// escaped /, and another full one which joins each regexp with |.
-//
-// Following the lead of Bash 4.1, note that "**" only has special meaning
-// when it is the *only* thing in a path portion.  Otherwise, any series
-// of * is equivalent to a single *.  Globstar behavior is enabled by
-// default, and can be disabled by setting options.noglobstar.
-const makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
-exports.makeRe = makeRe;
-exports.minimatch.makeRe = exports.makeRe;
-const match = (list, pattern, options = {}) => {
-    const mm = new Minimatch(pattern, options);
-    list = list.filter(f => mm.match(f));
-    if (mm.options.nonull && !list.length) {
-        list.push(pattern);
+    return await (0, fs_extra_1.readJson)(exports.serverProcessJsonPath);
+}
+function deleteDaemonJsonProcessCache() {
+    try {
+        if (getDaemonProcessIdSync() === process.pid) {
+            (0, fs_extra_1.unlinkSync)(exports.serverProcessJsonPath);
+        }
     }
-    return list;
-};
-exports.match = match;
-exports.minimatch.match = exports.match;
-// replace stuff like \* with *
-const globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
-const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
-class Minimatch {
-    options;
-    set;
-    pattern;
-    windowsPathsNoEscape;
-    nonegate;
-    negate;
-    comment;
-    empty;
-    preserveMultipleSlashes;
-    partial;
-    globSet;
-    globParts;
-    nocase;
-    isWindows;
-    platform;
-    windowsNoMagicRoot;
-    regexp;
-    constructor(pattern, options = {}) {
-        (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
-        options = options || {};
-        this.options = options;
-        this.pattern = pattern;
-        this.platform = options.platform || defaultPlatform;
-        this.isWindows = this.platform === 'win32';
-        this.windowsPathsNoEscape =
-            !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
-        if (this.windowsPathsNoEscape) {
-            this.pattern = this.pattern.replace(/\\/g, '/');
+    catch { }
+}
+async function writeDaemonJsonProcessCache(daemonJson) {
+    await (0, fs_extra_1.writeJson)(exports.serverProcessJsonPath, daemonJson);
+}
+async function waitForDaemonToExitAndCleanupProcessJson() {
+    const daemonProcessJson = await readDaemonProcessJsonCache();
+    if (daemonProcessJson && daemonProcessJson.processId) {
+        await new Promise((resolve, reject) => {
+            let count = 0;
+            const interval = setInterval(() => {
+                try {
+                    // sending a signal 0 to a process checks if the process is running instead of actually killing it
+                    process.kill(daemonProcessJson.processId, 0);
+                }
+                catch (e) {
+                    clearInterval(interval);
+                    resolve();
+                }
+                if ((count += 1) > 200) {
+                    clearInterval(interval);
+                    reject(`Daemon process ${daemonProcessJson.processId} didn't exit after 2 seconds.`);
+                }
+            }, 10);
+        });
+        deleteDaemonJsonProcessCache();
+    }
+}
+async function safelyCleanUpExistingProcess() {
+    const daemonProcessJson = await readDaemonProcessJsonCache();
+    if (daemonProcessJson && daemonProcessJson.processId) {
+        try {
+            process.kill(daemonProcessJson.processId);
+            // we wait for the process to actually shut down before returning
+            await waitForDaemonToExitAndCleanupProcessJson();
         }
-        this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
-        this.regexp = null;
-        this.negate = false;
-        this.nonegate = !!options.nonegate;
-        this.comment = false;
-        this.empty = false;
-        this.partial = !!options.partial;
-        this.nocase = !!this.options.nocase;
-        this.windowsNoMagicRoot =
-            options.windowsNoMagicRoot !== undefined
-                ? options.windowsNoMagicRoot
-                : !!(this.isWindows && this.nocase);
-        this.globSet = [];
-        this.globParts = [];
-        this.set = [];
-        // make the set of regexps etc.
-        this.make();
+        catch { }
     }
-    hasMagic() {
-        if (this.options.magicalBraces && this.set.length > 1) {
-            return true;
+}
+// Must be sync for the help output use case
+function getDaemonProcessIdSync() {
+    if (!(0, fs_extra_1.existsSync)(exports.serverProcessJsonPath)) {
+        return null;
+    }
+    try {
+        const daemonProcessJson = (0, fs_extra_1.readJsonSync)(exports.serverProcessJsonPath);
+        return daemonProcessJson.processId;
+    }
+    catch {
+        return null;
+    }
+}
+
+
+/***/ }),
+
+/***/ 76940:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.daemonClient = exports.DaemonClient = void 0;
+exports.isDaemonEnabled = isDaemonEnabled;
+const workspace_root_1 = __nccwpck_require__(64393);
+const child_process_1 = __nccwpck_require__(32081);
+const fs_1 = __nccwpck_require__(57147);
+const promises_1 = __nccwpck_require__(73292);
+const fs_extra_1 = __nccwpck_require__(2103);
+const net_1 = __nccwpck_require__(41808);
+const path_1 = __nccwpck_require__(71017);
+const perf_hooks_1 = __nccwpck_require__(4074);
+const output_1 = __nccwpck_require__(21862);
+const socket_utils_1 = __nccwpck_require__(58935);
+const tmp_dir_1 = __nccwpck_require__(71524);
+const is_ci_1 = __nccwpck_require__(48590);
+const nx_json_1 = __nccwpck_require__(21173);
+const configuration_1 = __nccwpck_require__(34333);
+const promised_based_queue_1 = __nccwpck_require__(25340);
+const daemon_socket_messenger_1 = __nccwpck_require__(81629);
+const cache_1 = __nccwpck_require__(70800);
+const error_types_1 = __nccwpck_require__(54403);
+const native_1 = __nccwpck_require__(71926);
+const get_nx_workspace_files_1 = __nccwpck_require__(27333);
+const get_context_file_data_1 = __nccwpck_require__(50356);
+const get_files_in_directory_1 = __nccwpck_require__(52095);
+const hash_glob_1 = __nccwpck_require__(26613);
+const force_shutdown_1 = __nccwpck_require__(36438);
+const get_sync_generator_changes_1 = __nccwpck_require__(72396);
+const get_registered_sync_generators_1 = __nccwpck_require__(41015);
+const update_workspace_context_1 = __nccwpck_require__(51579);
+const flush_sync_generator_changes_to_disk_1 = __nccwpck_require__(31082);
+const DAEMON_ENV_SETTINGS = {
+    NX_PROJECT_GLOB_CACHE: 'false',
+    NX_CACHE_PROJECTS_CONFIG: 'false',
+};
+var DaemonStatus;
+(function (DaemonStatus) {
+    DaemonStatus[DaemonStatus["CONNECTING"] = 0] = "CONNECTING";
+    DaemonStatus[DaemonStatus["DISCONNECTED"] = 1] = "DISCONNECTED";
+    DaemonStatus[DaemonStatus["CONNECTED"] = 2] = "CONNECTED";
+})(DaemonStatus || (DaemonStatus = {}));
+class DaemonClient {
+    constructor() {
+        this._daemonStatus = DaemonStatus.DISCONNECTED;
+        this._waitForDaemonReady = null;
+        this._daemonReady = null;
+        this._out = null;
+        this._err = null;
+        try {
+            this.nxJson = (0, configuration_1.readNxJson)();
         }
-        for (const pattern of this.set) {
-            for (const part of pattern) {
-                if (typeof part !== 'string')
-                    return true;
+        catch (e) {
+            this.nxJson = null;
+        }
+        this.reset();
+    }
+    enabled() {
+        if (this._enabled === undefined) {
+            // TODO(v19): Add migration to move it out of existing configs and remove the ?? here.
+            const useDaemonProcessOption = this.nxJson?.useDaemonProcess ??
+                this.nxJson?.tasksRunnerOptions?.['default']?.options?.useDaemonProcess;
+            const env = process.env.NX_DAEMON;
+            // env takes precedence
+            // option=true,env=false => no daemon
+            // option=false,env=undefined => no daemon
+            // option=false,env=false => no daemon
+            // option=undefined,env=undefined => daemon
+            // option=true,env=true => daemon
+            // option=false,env=true => daemon
+            // CI=true,env=undefined => no daemon
+            // CI=true,env=false => no daemon
+            // CI=true,env=true => daemon
+            // WASM => no daemon because file watching does not work
+            if (((0, is_ci_1.isCI)() && env !== 'true') ||
+                isDocker() ||
+                (0, tmp_dir_1.isDaemonDisabled)() ||
+                nxJsonIsNotPresent() ||
+                (useDaemonProcessOption === undefined && env === 'false') ||
+                (useDaemonProcessOption === true && env === 'false') ||
+                (useDaemonProcessOption === false && env === undefined) ||
+                (useDaemonProcessOption === false && env === 'false')) {
+                this._enabled = false;
+            }
+            else if (native_1.IS_WASM) {
+                output_1.output.warn({
+                    title: 'The Nx Daemon is unsupported in WebAssembly environments. Some things may be slower than or not function as expected.',
+                });
+                this._enabled = false;
+            }
+            else {
+                this._enabled = true;
             }
         }
-        return false;
+        return this._enabled;
     }
-    debug(..._) { }
-    make() {
-        const pattern = this.pattern;
-        const options = this.options;
-        // empty patterns and comments match nothing.
-        if (!options.nocomment && pattern.charAt(0) === '#') {
-            this.comment = true;
-            return;
-        }
-        if (!pattern) {
-            this.empty = true;
-            return;
-        }
-        // step 1: figure out negation, etc.
-        this.parseNegate();
-        // step 2: expand braces
-        this.globSet = [...new Set(this.braceExpand())];
-        if (options.debug) {
-            this.debug = (...args) => console.error(...args);
+    reset() {
+        this.socketMessenger?.close();
+        this.socketMessenger = null;
+        this.queue = new promised_based_queue_1.PromisedBasedQueue();
+        this.currentMessage = null;
+        this.currentResolve = null;
+        this.currentReject = null;
+        this._enabled = undefined;
+        this._out?.close();
+        this._err?.close();
+        this._out = null;
+        this._err = null;
+        this._daemonStatus = DaemonStatus.DISCONNECTED;
+        this._waitForDaemonReady = new Promise((resolve) => (this._daemonReady = resolve));
+    }
+    async requestShutdown() {
+        return this.sendToDaemonViaQueue({ type: 'REQUEST_SHUTDOWN' });
+    }
+    async getProjectGraphAndSourceMaps() {
+        try {
+            const response = await this.sendToDaemonViaQueue({
+                type: 'REQUEST_PROJECT_GRAPH',
+            });
+            return {
+                projectGraph: response.projectGraph,
+                sourceMaps: response.sourceMaps,
+            };
         }
-        this.debug(this.pattern, this.globSet);
-        // step 3: now we have a set, so turn each one into a series of
-        // path-portion matching patterns.
-        // These will be regexps, except in the case of "**", which is
-        // set to the GLOBSTAR object for globstar behavior,
-        // and will not contain any / characters
-        //
-        // First, we preprocess to make the glob pattern sets a bit simpler
-        // and deduped.  There are some perf-killing patterns that can cause
-        // problems with a glob walk, but we can simplify them down a bit.
-        const rawGlobParts = this.globSet.map(s => this.slashSplit(s));
-        this.globParts = this.preprocess(rawGlobParts);
-        this.debug(this.pattern, this.globParts);
-        // glob --> regexps
-        let set = this.globParts.map((s, _, __) => {
-            if (this.isWindows && this.windowsNoMagicRoot) {
-                // check if it's a drive or unc path.
-                const isUNC = s[0] === '' &&
-                    s[1] === '' &&
-                    (s[2] === '?' || !globMagic.test(s[2])) &&
-                    !globMagic.test(s[3]);
-                const isDrive = /^[a-z]:/i.test(s[0]);
-                if (isUNC) {
-                    return [...s.slice(0, 4), ...s.slice(4).map(ss => this.parse(ss))];
-                }
-                else if (isDrive) {
-                    return [s[0], ...s.slice(1).map(ss => this.parse(ss))];
-                }
+        catch (e) {
+            if (e.name === error_types_1.DaemonProjectGraphError.name) {
+                throw error_types_1.ProjectGraphError.fromDaemonProjectGraphError(e);
             }
-            return s.map(ss => this.parse(ss));
-        });
-        this.debug(this.pattern, set);
-        // filter out everything that didn't compile properly.
-        this.set = set.filter(s => s.indexOf(false) === -1);
-        // do not treat the ? in UNC paths as magic
-        if (this.isWindows) {
-            for (let i = 0; i < this.set.length; i++) {
-                const p = this.set[i];
-                if (p[0] === '' &&
-                    p[1] === '' &&
-                    this.globParts[i][2] === '?' &&
-                    typeof p[3] === 'string' &&
-                    /^[a-z]:$/i.test(p[3])) {
-                    p[2] = '?';
-                }
+            else {
+                throw e;
             }
         }
-        this.debug(this.pattern, this.set);
     }
-    // various transforms to equivalent pattern sets that are
-    // faster to process in a filesystem walk.  The goal is to
-    // eliminate what we can, and push all ** patterns as far
-    // to the right as possible, even if it increases the number
-    // of patterns that we have to process.
-    preprocess(globParts) {
-        // if we're not in globstar mode, then turn all ** into *
-        if (this.options.noglobstar) {
-            for (let i = 0; i < globParts.length; i++) {
-                for (let j = 0; j < globParts[i].length; j++) {
-                    if (globParts[i][j] === '**') {
-                        globParts[i][j] = '*';
-                    }
-                }
-            }
-        }
-        const { optimizationLevel = 1 } = this.options;
-        if (optimizationLevel >= 2) {
-            // aggressive optimization for the purpose of fs walking
-            globParts = this.firstPhasePreProcess(globParts);
-            globParts = this.secondPhasePreProcess(globParts);
-        }
-        else if (optimizationLevel >= 1) {
-            // just basic optimizations to remove some .. parts
-            globParts = this.levelOneOptimize(globParts);
+    async getAllFileData() {
+        return await this.sendToDaemonViaQueue({ type: 'REQUEST_FILE_DATA' });
+    }
+    hashTasks(runnerOptions, tasks, taskGraph, env) {
+        return this.sendToDaemonViaQueue({
+            type: 'HASH_TASKS',
+            runnerOptions,
+            env,
+            tasks,
+            taskGraph,
+        });
+    }
+    async registerFileWatcher(config, callback) {
+        try {
+            await this.getProjectGraphAndSourceMaps();
         }
-        else {
-            globParts = this.adjascentGlobstarOptimize(globParts);
+        catch (e) {
+            if (config.allowPartialGraph && e instanceof error_types_1.ProjectGraphError) {
+                // we are fine with partial graph
+            }
+            else {
+                throw e;
+            }
         }
-        return globParts;
-    }
-    // just get rid of adjascent ** portions
-    adjascentGlobstarOptimize(globParts) {
-        return globParts.map(parts => {
-            let gs = -1;
-            while (-1 !== (gs = parts.indexOf('**', gs + 1))) {
-                let i = gs;
-                while (parts[i + 1] === '**') {
-                    i++;
+        let messenger;
+        await this.queue.sendToQueue(() => {
+            messenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)((0, socket_utils_1.getFullOsSocketPath)())).listen((message) => {
+                try {
+                    const parsedMessage = JSON.parse(message);
+                    callback(null, parsedMessage);
                 }
-                if (i !== gs) {
-                    parts.splice(gs, i - gs);
+                catch (e) {
+                    callback(e, null);
                 }
-            }
-            return parts;
+            }, () => {
+                callback('closed', null);
+            }, (err) => callback(err, null));
+            return messenger.sendMessage({ type: 'REGISTER_FILE_WATCHER', config });
+        });
+        return () => {
+            messenger?.close();
+        };
+    }
+    processInBackground(requirePath, data) {
+        return this.sendToDaemonViaQueue({
+            type: 'PROCESS_IN_BACKGROUND',
+            requirePath,
+            data,
         });
     }
-    // get rid of adjascent ** and resolve .. portions
-    levelOneOptimize(globParts) {
-        return globParts.map(parts => {
-            parts = parts.reduce((set, part) => {
-                const prev = set[set.length - 1];
-                if (part === '**' && prev === '**') {
-                    return set;
-                }
-                if (part === '..') {
-                    if (prev && prev !== '..' && prev !== '.' && prev !== '**') {
-                        set.pop();
-                        return set;
-                    }
-                }
-                set.push(part);
-                return set;
-            }, []);
-            return parts.length === 0 ? [''] : parts;
+    recordOutputsHash(outputs, hash) {
+        return this.sendToDaemonViaQueue({
+            type: 'RECORD_OUTPUTS_HASH',
+            data: {
+                outputs,
+                hash,
+            },
         });
     }
-    levelTwoFileOptimize(parts) {
-        if (!Array.isArray(parts)) {
-            parts = this.slashSplit(parts);
-        }
-        let didSomething = false;
-        do {
-            didSomething = false;
-            // 
// -> 
/
-            if (!this.preserveMultipleSlashes) {
-                for (let i = 1; i < parts.length - 1; i++) {
-                    const p = parts[i];
-                    // don't squeeze out UNC patterns
-                    if (i === 1 && p === '' && parts[0] === '')
-                        continue;
-                    if (p === '.' || p === '') {
-                        didSomething = true;
-                        parts.splice(i, 1);
-                        i--;
-                    }
-                }
-                if (parts[0] === '.' &&
-                    parts.length === 2 &&
-                    (parts[1] === '.' || parts[1] === '')) {
-                    didSomething = true;
-                    parts.pop();
-                }
+    outputsHashesMatch(outputs, hash) {
+        return this.sendToDaemonViaQueue({
+            type: 'OUTPUTS_HASHES_MATCH',
+            data: {
+                outputs,
+                hash,
+            },
+        });
+    }
+    glob(globs, exclude) {
+        const message = {
+            type: 'GLOB',
+            globs,
+            exclude,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    getWorkspaceContextFileData() {
+        const message = {
+            type: get_context_file_data_1.GET_CONTEXT_FILE_DATA,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    getWorkspaceFiles(projectRootMap) {
+        const message = {
+            type: get_nx_workspace_files_1.GET_NX_WORKSPACE_FILES,
+            projectRootMap,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    getFilesInDirectory(dir) {
+        const message = {
+            type: get_files_in_directory_1.GET_FILES_IN_DIRECTORY,
+            dir,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    hashGlob(globs, exclude) {
+        const message = {
+            type: hash_glob_1.HASH_GLOB,
+            globs,
+            exclude,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    getTaskHistoryForHashes(hashes) {
+        const message = {
+            type: 'GET_TASK_HISTORY_FOR_HASHES',
+            hashes,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    writeTaskRunsToHistory(taskRuns) {
+        const message = {
+            type: 'WRITE_TASK_RUNS_TO_HISTORY',
+            taskRuns,
+        };
+        return this.sendMessageToDaemon(message);
+    }
+    getSyncGeneratorChanges(generators) {
+        const message = {
+            type: get_sync_generator_changes_1.GET_SYNC_GENERATOR_CHANGES,
+            generators,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    flushSyncGeneratorChangesToDisk(generators) {
+        const message = {
+            type: flush_sync_generator_changes_to_disk_1.FLUSH_SYNC_GENERATOR_CHANGES_TO_DISK,
+            generators,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    getRegisteredSyncGenerators() {
+        const message = {
+            type: get_registered_sync_generators_1.GET_REGISTERED_SYNC_GENERATORS,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    updateWorkspaceContext(createdFiles, updatedFiles, deletedFiles) {
+        const message = {
+            type: update_workspace_context_1.UPDATE_WORKSPACE_CONTEXT,
+            createdFiles,
+            updatedFiles,
+            deletedFiles,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    async isServerAvailable() {
+        return new Promise((resolve) => {
+            try {
+                const socket = (0, net_1.connect)((0, socket_utils_1.getFullOsSocketPath)(), () => {
+                    socket.destroy();
+                    resolve(true);
+                });
+                socket.once('error', () => {
+                    resolve(false);
+                });
             }
-            // 
/

/../ ->

/
-            let dd = 0;
-            while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
-                const p = parts[dd - 1];
-                if (p && p !== '.' && p !== '..' && p !== '**') {
-                    didSomething = true;
-                    parts.splice(dd - 1, 2);
-                    dd -= 2;
-                }
+            catch (err) {
+                resolve(false);
             }
-        } while (didSomething);
-        return parts.length === 0 ? [''] : parts;
+        });
     }
-    // First phase: single-pattern processing
-    // 
 is 1 or more portions
-    //  is 1 or more portions
-    // 

is any portion other than ., .., '', or ** - // is . or '' - // - // **/.. is *brutal* for filesystem walking performance, because - // it effectively resets the recursive walk each time it occurs, - // and ** cannot be reduced out by a .. pattern part like a regexp - // or most strings (other than .., ., and '') can be. - // - //

/**/../

/

/ -> {

/../

/

/,

/**/

/

/} - //

// -> 
/
-    // 
/

/../ ->

/
-    // **/**/ -> **/
-    //
-    // **/*/ -> */**/ <== not valid because ** doesn't follow
-    // this WOULD be allowed if ** did follow symlinks, or * didn't
-    firstPhasePreProcess(globParts) {
-        let didSomething = false;
-        do {
-            didSomething = false;
-            // 
/**/../

/

/ -> {

/../

/

/,

/**/

/

/} - for (let parts of globParts) { - let gs = -1; - while (-1 !== (gs = parts.indexOf('**', gs + 1))) { - let gss = gs; - while (parts[gss + 1] === '**') { - //

/**/**/ -> 
/**/
-                        gss++;
-                    }
-                    // eg, if gs is 2 and gss is 4, that means we have 3 **
-                    // parts, and can remove 2 of them.
-                    if (gss > gs) {
-                        parts.splice(gs + 1, gss - gs);
-                    }
-                    let next = parts[gs + 1];
-                    const p = parts[gs + 2];
-                    const p2 = parts[gs + 3];
-                    if (next !== '..')
-                        continue;
-                    if (!p ||
-                        p === '.' ||
-                        p === '..' ||
-                        !p2 ||
-                        p2 === '.' ||
-                        p2 === '..') {
-                        continue;
-                    }
-                    didSomething = true;
-                    // edit parts in place, and push the new one
-                    parts.splice(gs, 1);
-                    const other = parts.slice(0);
-                    other[gs] = '**';
-                    globParts.push(other);
-                    gs--;
-                }
-                // 
// -> 
/
-                if (!this.preserveMultipleSlashes) {
-                    for (let i = 1; i < parts.length - 1; i++) {
-                        const p = parts[i];
-                        // don't squeeze out UNC patterns
-                        if (i === 1 && p === '' && parts[0] === '')
-                            continue;
-                        if (p === '.' || p === '') {
-                            didSomething = true;
-                            parts.splice(i, 1);
-                            i--;
-                        }
-                    }
-                    if (parts[0] === '.' &&
-                        parts.length === 2 &&
-                        (parts[1] === '.' || parts[1] === '')) {
-                        didSomething = true;
-                        parts.pop();
-                    }
-                }
-                // 
/

/../ ->

/
-                let dd = 0;
-                while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
-                    const p = parts[dd - 1];
-                    if (p && p !== '.' && p !== '..' && p !== '**') {
-                        didSomething = true;
-                        const needDot = dd === 1 && parts[dd + 1] === '**';
-                        const splin = needDot ? ['.'] : [];
-                        parts.splice(dd - 1, 2, ...splin);
-                        if (parts.length === 0)
-                            parts.push('');
-                        dd -= 2;
-                    }
-                }
-            }
-        } while (didSomething);
-        return globParts;
+    async sendToDaemonViaQueue(messageToDaemon) {
+        return this.queue.sendToQueue(() => this.sendMessageToDaemon(messageToDaemon));
     }
-    // second phase: multi-pattern dedupes
-    // {
/*/,
/

/} ->

/*/
-    // {
/,
/} -> 
/
-    // {
/**/,
/} -> 
/**/
-    //
-    // {
/**/,
/**/

/} ->

/**/
-    // ^-- not valid because ** doens't follow symlinks
-    secondPhasePreProcess(globParts) {
-        for (let i = 0; i < globParts.length - 1; i++) {
-            for (let j = i + 1; j < globParts.length; j++) {
-                const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
-                if (!matched)
-                    continue;
-                globParts[i] = matched;
-                globParts[j] = [];
+    setUpConnection() {
+        this.socketMessenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)((0, socket_utils_1.getFullOsSocketPath)())).listen((message) => this.handleMessage(message), () => {
+            // it's ok for the daemon to terminate if the client doesn't wait on
+            // any messages from the daemon
+            if (this.queue.isEmpty()) {
+                this.reset();
             }
-        }
-        return globParts.filter(gs => gs.length);
-    }
-    partsMatch(a, b, emptyGSMatch = false) {
-        let ai = 0;
-        let bi = 0;
-        let result = [];
-        let which = '';
-        while (ai < a.length && bi < b.length) {
-            if (a[ai] === b[bi]) {
-                result.push(which === 'b' ? b[bi] : a[ai]);
-                ai++;
-                bi++;
+            else {
+                output_1.output.error({
+                    title: 'Daemon process terminated and closed the connection',
+                    bodyLines: [
+                        'Please rerun the command, which will restart the daemon.',
+                        `If you get this error again, check for any errors in the daemon process logs found in: ${tmp_dir_1.DAEMON_OUTPUT_LOG_FILE}`,
+                    ],
+                });
+                this._daemonStatus = DaemonStatus.DISCONNECTED;
+                this.currentReject?.(daemonProcessException('Daemon process terminated and closed the connection'));
+                process.exit(1);
             }
-            else if (emptyGSMatch && a[ai] === '**' && b[bi] === a[ai + 1]) {
-                result.push(a[ai]);
-                ai++;
+        }, (err) => {
+            if (!err.message) {
+                return this.currentReject(daemonProcessException(err.toString()));
             }
-            else if (emptyGSMatch && b[bi] === '**' && a[ai] === b[bi + 1]) {
-                result.push(b[bi]);
-                bi++;
+            if (err.message.startsWith('LOCK-FILES-CHANGED')) {
+                // retry the current message
+                // we cannot send it via the queue because we are in the middle of processing
+                // a message from the queue
+                return this.sendMessageToDaemon(this.currentMessage).then(this.currentResolve, this.currentReject);
             }
-            else if (a[ai] === '*' &&
-                b[bi] &&
-                (this.options.dot || !b[bi].startsWith('.')) &&
-                b[bi] !== '**') {
-                if (which === 'b')
-                    return false;
-                which = 'a';
-                result.push(a[ai]);
-                ai++;
-                bi++;
+            let error;
+            if (err.message.startsWith('connect ENOENT')) {
+                error = daemonProcessException('The Daemon Server is not running');
             }
-            else if (b[bi] === '*' &&
-                a[ai] &&
-                (this.options.dot || !a[ai].startsWith('.')) &&
-                a[ai] !== '**') {
-                if (which === 'a')
-                    return false;
-                which = 'b';
-                result.push(b[bi]);
-                ai++;
-                bi++;
+            else if (err.message.startsWith('connect ECONNREFUSED')) {
+                error = daemonProcessException(`A server instance had not been fully shut down. Please try running the command again.`);
+                (0, socket_utils_1.killSocketOrPath)();
+            }
+            else if (err.message.startsWith('read ECONNRESET')) {
+                error = daemonProcessException(`Unable to connect to the daemon process.`);
             }
             else {
-                return false;
+                error = daemonProcessException(err.toString());
             }
-        }
-        // if we fall out of the loop, it means they two are identical
-        // as long as their lengths match
-        return a.length === b.length && result;
+            return this.currentReject(error);
+        });
     }
-    parseNegate() {
-        if (this.nonegate)
-            return;
-        const pattern = this.pattern;
-        let negate = false;
-        let negateOffset = 0;
-        for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {
-            negate = !negate;
-            negateOffset++;
+    async sendMessageToDaemon(message) {
+        if (this._daemonStatus == DaemonStatus.DISCONNECTED) {
+            this._daemonStatus = DaemonStatus.CONNECTING;
+            if (!(await this.isServerAvailable())) {
+                await this.startInBackground();
+            }
+            this.setUpConnection();
+            this._daemonStatus = DaemonStatus.CONNECTED;
+            this._daemonReady();
         }
-        if (negateOffset)
-            this.pattern = pattern.slice(negateOffset);
-        this.negate = negate;
+        else if (this._daemonStatus == DaemonStatus.CONNECTING) {
+            await this._waitForDaemonReady;
+        }
+        // An open promise isn't enough to keep the event loop
+        // alive, so we set a timeout here and clear it when we hear
+        // back
+        const keepAlive = setTimeout(() => { }, 10 * 60 * 1000);
+        return new Promise((resolve, reject) => {
+            perf_hooks_1.performance.mark('sendMessageToDaemon-start');
+            this.currentMessage = message;
+            this.currentResolve = resolve;
+            this.currentReject = reject;
+            this.socketMessenger.sendMessage(message);
+        }).finally(() => {
+            clearTimeout(keepAlive);
+        });
     }
-    // set partial to true to test if, for example,
-    // "/a/b" matches the start of "/*/b/*/d"
-    // Partial means, if you run out of file before you run
-    // out of pattern, then that's fine, as long as all
-    // the parts match.
-    matchOne(file, pattern, partial = false) {
-        const options = this.options;
-        // UNC paths like //?/X:/... can match X:/... and vice versa
-        // Drive letters in absolute drive or unc paths are always compared
-        // case-insensitively.
-        if (this.isWindows) {
-            const fileDrive = typeof file[0] === 'string' && /^[a-z]:$/i.test(file[0]);
-            const fileUNC = !fileDrive &&
-                file[0] === '' &&
-                file[1] === '' &&
-                file[2] === '?' &&
-                /^[a-z]:$/i.test(file[3]);
-            const patternDrive = typeof pattern[0] === 'string' && /^[a-z]:$/i.test(pattern[0]);
-            const patternUNC = !patternDrive &&
-                pattern[0] === '' &&
-                pattern[1] === '' &&
-                pattern[2] === '?' &&
-                typeof pattern[3] === 'string' &&
-                /^[a-z]:$/i.test(pattern[3]);
-            const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
-            const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
-            if (typeof fdi === 'number' && typeof pdi === 'number') {
-                const [fd, pd] = [file[fdi], pattern[pdi]];
-                if (fd.toLowerCase() === pd.toLowerCase()) {
-                    pattern[pdi] = fd;
-                    if (pdi > fdi) {
-                        pattern = pattern.slice(pdi);
-                    }
-                    else if (fdi > pdi) {
-                        file = file.slice(fdi);
-                    }
-                }
+    handleMessage(serializedResult) {
+        try {
+            perf_hooks_1.performance.mark('json-parse-start');
+            const parsedResult = JSON.parse(serializedResult);
+            perf_hooks_1.performance.mark('json-parse-end');
+            perf_hooks_1.performance.measure('deserialize daemon response', 'json-parse-start', 'json-parse-end');
+            if (parsedResult.error) {
+                this.currentReject(parsedResult.error);
+            }
+            else {
+                perf_hooks_1.performance.measure('total for sendMessageToDaemon()', 'sendMessageToDaemon-start', 'json-parse-end');
+                return this.currentResolve(parsedResult);
             }
         }
-        // resolve and reduce . and .. portions in the file as well.
-        // dont' need to do the second phase, because it's only one string[]
-        const { optimizationLevel = 1 } = this.options;
-        if (optimizationLevel >= 2) {
-            file = this.levelTwoFileOptimize(file);
+        catch (e) {
+            const endOfResponse = serializedResult.length > 300
+                ? serializedResult.substring(serializedResult.length - 300)
+                : serializedResult;
+            this.currentReject(daemonProcessException([
+                'Could not deserialize response from Nx daemon.',
+                `Message: ${e.message}`,
+                '\n',
+                `Received:`,
+                endOfResponse,
+                '\n',
+            ].join('\n')));
         }
-        this.debug('matchOne', this, { file, pattern });
-        this.debug('matchOne', file.length, pattern.length);
-        for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
-            this.debug('matchOne loop');
-            var p = pattern[pi];
-            var f = file[fi];
-            this.debug(pattern, p, f);
-            // should be impossible.
-            // some invalid regexp stuff in the set.
-            /* c8 ignore start */
-            if (p === false) {
-                return false;
-            }
-            /* c8 ignore stop */
-            if (p === exports.GLOBSTAR) {
-                this.debug('GLOBSTAR', [pattern, p, f]);
-                // "**"
-                // a/**/b/**/c would match the following:
-                // a/b/x/y/z/c
-                // a/x/y/z/b/c
-                // a/b/x/b/x/c
-                // a/b/c
-                // To do this, take the rest of the pattern after
-                // the **, and see if it would match the file remainder.
-                // If so, return success.
-                // If not, the ** "swallows" a segment, and try again.
-                // This is recursively awful.
-                //
-                // a/**/b/**/c matching a/b/x/y/z/c
-                // - a matches a
-                // - doublestar
-                //   - matchOne(b/x/y/z/c, b/**/c)
-                //     - b matches b
-                //     - doublestar
-                //       - matchOne(x/y/z/c, c) -> no
-                //       - matchOne(y/z/c, c) -> no
-                //       - matchOne(z/c, c) -> no
-                //       - matchOne(c, c) yes, hit
-                var fr = fi;
-                var pr = pi + 1;
-                if (pr === pl) {
-                    this.debug('** at the end');
-                    // a ** at the end will just swallow the rest.
-                    // We have found a match.
-                    // however, it will not swallow /.x, unless
-                    // options.dot is set.
-                    // . and .. are *never* matched by **, for explosively
-                    // exponential reasons.
-                    for (; fi < fl; fi++) {
-                        if (file[fi] === '.' ||
-                            file[fi] === '..' ||
-                            (!options.dot && file[fi].charAt(0) === '.'))
-                            return false;
-                    }
-                    return true;
+    }
+    async startInBackground() {
+        (0, fs_extra_1.ensureDirSync)(tmp_dir_1.DAEMON_DIR_FOR_CURRENT_WORKSPACE);
+        (0, fs_extra_1.ensureFileSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE);
+        this._out = await (0, promises_1.open)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE, 'a');
+        this._err = await (0, promises_1.open)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE, 'a');
+        const backgroundProcess = (0, child_process_1.spawn)(process.execPath, [(0, path_1.join)(__dirname, `../server/start.js`)], {
+            cwd: workspace_root_1.workspaceRoot,
+            stdio: ['ignore', this._out.fd, this._err.fd],
+            detached: true,
+            windowsHide: true,
+            shell: false,
+            env: {
+                ...process.env,
+                ...DAEMON_ENV_SETTINGS,
+            },
+        });
+        backgroundProcess.unref();
+        /**
+         * Ensure the server is actually available to connect to via IPC before resolving
+         */
+        let attempts = 0;
+        return new Promise((resolve, reject) => {
+            const id = setInterval(async () => {
+                if (await this.isServerAvailable()) {
+                    clearInterval(id);
+                    resolve(backgroundProcess.pid);
                 }
-                // ok, let's see if we can swallow whatever we can.
-                while (fr < fl) {
-                    var swallowee = file[fr];
-                    this.debug('\nglobstar while', file, fr, pattern, pr, swallowee);
-                    // XXX remove this slice.  Just pass the start index.
-                    if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
-                        this.debug('globstar found match!', fr, fl, swallowee);
-                        // found a match.
-                        return true;
-                    }
-                    else {
-                        // can't swallow "." or ".." ever.
-                        // can only swallow ".foo" when explicitly asked.
-                        if (swallowee === '.' ||
-                            swallowee === '..' ||
-                            (!options.dot && swallowee.charAt(0) === '.')) {
-                            this.debug('dot detected!', file, fr, pattern, pr);
-                            break;
-                        }
-                        // ** swallows a segment, and continue.
-                        this.debug('globstar swallow a segment, and continue');
-                        fr++;
-                    }
+                else if (attempts > 6000) {
+                    // daemon fails to start, the process probably exited
+                    // we print the logs and exit the client
+                    reject(daemonProcessException('Failed to start or connect to the Nx Daemon process.'));
                 }
-                // no match was found.
-                // However, in partial mode, we can't say this is necessarily over.
-                /* c8 ignore start */
-                if (partial) {
-                    // ran out of file
-                    this.debug('\n>>> no match, partial?', file, fr, pattern, pr);
-                    if (fr === fl) {
-                        return true;
-                    }
+                else {
+                    attempts++;
                 }
-                /* c8 ignore stop */
-                return false;
-            }
-            // something other than **
-            // non-magic patterns just have to match exactly
-            // patterns with magic have been turned into regexps.
-            let hit;
-            if (typeof p === 'string') {
-                hit = f === p;
-                this.debug('string match', p, f, hit);
-            }
-            else {
-                hit = p.test(f);
-                this.debug('pattern match', p, f, hit);
-            }
-            if (!hit)
-                return false;
+            }, 10);
+        });
+    }
+    async stop() {
+        try {
+            await this.sendMessageToDaemon({ type: force_shutdown_1.FORCE_SHUTDOWN });
+            await (0, cache_1.waitForDaemonToExitAndCleanupProcessJson)();
         }
-        // Note: ending in / means that we'll get a final ""
-        // at the end of the pattern.  This can only match a
-        // corresponding "" at the end of the file.
-        // If the file ends in /, then it can only match a
-        // a pattern that ends in /, unless the pattern just
-        // doesn't have any more for it. But, a/b/ should *not*
-        // match "a/b/*", even though "" matches against the
-        // [^/]*? pattern, except in partial mode, where it might
-        // simply not be reached yet.
-        // However, a/b/ should still satisfy a/*
-        // now either we fell off the end of the pattern, or we're done.
-        if (fi === fl && pi === pl) {
-            // ran out of pattern and filename at the same time.
-            // an exact hit!
-            return true;
+        catch (err) {
+            output_1.output.error({
+                title: err?.message ||
+                    'Something unexpected went wrong when stopping the server',
+            });
         }
-        else if (fi === fl) {
-            // ran out of file, but still had pattern left.
-            // this is ok if we're doing the match as part of
-            // a glob fs traversal.
-            return partial;
+        (0, tmp_dir_1.removeSocketDir)();
+    }
+}
+exports.DaemonClient = DaemonClient;
+exports.daemonClient = new DaemonClient();
+function isDaemonEnabled() {
+    return exports.daemonClient.enabled();
+}
+function isDocker() {
+    try {
+        (0, fs_1.statSync)('/.dockerenv');
+        return true;
+    }
+    catch {
+        try {
+            return (0, fs_1.readFileSync)('/proc/self/cgroup', 'utf8')?.includes('docker');
+        }
+        catch { }
+        return false;
+    }
+}
+function nxJsonIsNotPresent() {
+    return !(0, nx_json_1.hasNxJson)(workspace_root_1.workspaceRoot);
+}
+function daemonProcessException(message) {
+    try {
+        let log = (0, fs_1.readFileSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE).toString().split('\n');
+        if (log.length > 20) {
+            log = log.slice(log.length - 20);
+        }
+        const error = new Error([
+            message,
+            '',
+            'Messages from the log:',
+            ...log,
+            '\n',
+            `More information: ${tmp_dir_1.DAEMON_OUTPUT_LOG_FILE}`,
+        ].join('\n'));
+        error.internalDaemonError = true;
+        return error;
+    }
+    catch (e) {
+        return new Error(message);
+    }
+}
+
+
+/***/ }),
+
+/***/ 81629:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.DaemonSocketMessenger = void 0;
+const consume_messages_from_socket_1 = __nccwpck_require__(66696);
+class DaemonSocketMessenger {
+    constructor(socket) {
+        this.socket = socket;
+    }
+    async sendMessage(messageToDaemon) {
+        this.socket.write(JSON.stringify(messageToDaemon));
+        // send EOT to indicate that the message has been fully written
+        this.socket.write(String.fromCodePoint(4));
+    }
+    listen(onData, onClose = () => { }, onError = (err) => { }) {
+        this.socket.on('data', (0, consume_messages_from_socket_1.consumeMessagesFromSocket)(async (message) => {
+            onData(message);
+        }));
+        this.socket.on('close', onClose);
+        this.socket.on('error', onError);
+        return this;
+    }
+    close() {
+        this.socket.destroy();
+    }
+}
+exports.DaemonSocketMessenger = DaemonSocketMessenger;
+
+
+/***/ }),
+
+/***/ 45153:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isOnDaemon = isOnDaemon;
+function isOnDaemon() {
+    return !!global.NX_DAEMON;
+}
+
+
+/***/ }),
+
+/***/ 31082:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.FLUSH_SYNC_GENERATOR_CHANGES_TO_DISK = void 0;
+exports.isHandleFlushSyncGeneratorChangesToDiskMessage = isHandleFlushSyncGeneratorChangesToDiskMessage;
+exports.FLUSH_SYNC_GENERATOR_CHANGES_TO_DISK = 'CLEAR_CACHED_SYNC_GENERATOR_CHANGES';
+function isHandleFlushSyncGeneratorChangesToDiskMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.FLUSH_SYNC_GENERATOR_CHANGES_TO_DISK);
+}
+
+
+/***/ }),
+
+/***/ 36438:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.FORCE_SHUTDOWN = void 0;
+exports.isHandleForceShutdownMessage = isHandleForceShutdownMessage;
+exports.FORCE_SHUTDOWN = 'FORCE_SHUTDOWN';
+function isHandleForceShutdownMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.FORCE_SHUTDOWN);
+}
+
+
+/***/ }),
+
+/***/ 50356:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.GET_CONTEXT_FILE_DATA = void 0;
+exports.isHandleContextFileDataMessage = isHandleContextFileDataMessage;
+exports.GET_CONTEXT_FILE_DATA = 'GET_CONTEXT_FILE_DATA';
+function isHandleContextFileDataMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.GET_CONTEXT_FILE_DATA);
+}
+
+
+/***/ }),
+
+/***/ 52095:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.GET_FILES_IN_DIRECTORY = void 0;
+exports.isHandleGetFilesInDirectoryMessage = isHandleGetFilesInDirectoryMessage;
+exports.GET_FILES_IN_DIRECTORY = 'GET_FILES_IN_DIRECTORY';
+function isHandleGetFilesInDirectoryMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.GET_FILES_IN_DIRECTORY);
+}
+
+
+/***/ }),
+
+/***/ 27333:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.GET_NX_WORKSPACE_FILES = void 0;
+exports.isHandleNxWorkspaceFilesMessage = isHandleNxWorkspaceFilesMessage;
+exports.GET_NX_WORKSPACE_FILES = 'GET_NX_WORKSPACE_FILES';
+function isHandleNxWorkspaceFilesMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.GET_NX_WORKSPACE_FILES);
+}
+
+
+/***/ }),
+
+/***/ 41015:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.GET_REGISTERED_SYNC_GENERATORS = void 0;
+exports.isHandleGetRegisteredSyncGeneratorsMessage = isHandleGetRegisteredSyncGeneratorsMessage;
+exports.GET_REGISTERED_SYNC_GENERATORS = 'GET_REGISTERED_SYNC_GENERATORS';
+function isHandleGetRegisteredSyncGeneratorsMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.GET_REGISTERED_SYNC_GENERATORS);
+}
+
+
+/***/ }),
+
+/***/ 72396:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.GET_SYNC_GENERATOR_CHANGES = void 0;
+exports.isHandleGetSyncGeneratorChangesMessage = isHandleGetSyncGeneratorChangesMessage;
+exports.GET_SYNC_GENERATOR_CHANGES = 'GET_SYNC_GENERATOR_CHANGES';
+function isHandleGetSyncGeneratorChangesMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.GET_SYNC_GENERATOR_CHANGES);
+}
+
+
+/***/ }),
+
+/***/ 87295:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.GLOB = void 0;
+exports.isHandleGlobMessage = isHandleGlobMessage;
+exports.GLOB = 'GLOB';
+function isHandleGlobMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.GLOB);
+}
+
+
+/***/ }),
+
+/***/ 26613:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.HASH_GLOB = void 0;
+exports.isHandleHashGlobMessage = isHandleHashGlobMessage;
+exports.HASH_GLOB = 'HASH_GLOB';
+function isHandleHashGlobMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.HASH_GLOB);
+}
+
+
+/***/ }),
+
+/***/ 39901:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.WRITE_TASK_RUNS_TO_HISTORY = exports.GET_TASK_HISTORY_FOR_HASHES = void 0;
+exports.isHandleGetTaskHistoryForHashesMessage = isHandleGetTaskHistoryForHashesMessage;
+exports.isHandleWriteTaskRunsToHistoryMessage = isHandleWriteTaskRunsToHistoryMessage;
+exports.GET_TASK_HISTORY_FOR_HASHES = 'GET_TASK_HISTORY_FOR_HASHES';
+function isHandleGetTaskHistoryForHashesMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.GET_TASK_HISTORY_FOR_HASHES);
+}
+exports.WRITE_TASK_RUNS_TO_HISTORY = 'WRITE_TASK_RUNS_TO_HISTORY';
+function isHandleWriteTaskRunsToHistoryMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.WRITE_TASK_RUNS_TO_HISTORY);
+}
+
+
+/***/ }),
+
+/***/ 51579:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.UPDATE_WORKSPACE_CONTEXT = void 0;
+exports.isHandleUpdateWorkspaceContextMessage = isHandleUpdateWorkspaceContextMessage;
+exports.UPDATE_WORKSPACE_CONTEXT = 'UPDATE_WORKSPACE_CONTEXT';
+function isHandleUpdateWorkspaceContextMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.UPDATE_WORKSPACE_CONTEXT);
+}
+
+
+/***/ }),
+
+/***/ 76357:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getProjectsAndGlobalChanges = getProjectsAndGlobalChanges;
+const perf_hooks_1 = __nccwpck_require__(4074);
+const project_graph_incremental_recomputation_1 = __nccwpck_require__(96952);
+function getProjectsAndGlobalChanges(createdFiles, updatedFiles, deletedFiles) {
+    const projectAndGlobalChanges = {
+        projects: {},
+        globalFiles: [],
+    };
+    perf_hooks_1.performance.mark('changed-projects:start');
+    const allChangedFiles = [
+        ...(createdFiles ?? []).map((c) => ({
+            path: c,
+            type: 'create',
+        })),
+        ...(updatedFiles ?? []).map((c) => ({
+            path: c,
+            type: 'update',
+        })),
+        ...(deletedFiles ?? []).map((c) => ({
+            path: c,
+            type: 'delete',
+        })),
+    ];
+    const fileToProjectMap = {};
+    for (const [projectName, projectFiles] of Object.entries(project_graph_incremental_recomputation_1.fileMapWithFiles?.fileMap?.projectFileMap ?? {})) {
+        for (const projectFile of projectFiles) {
+            fileToProjectMap[projectFile.file] = projectName;
         }
-        else if (pi === pl) {
-            // ran out of pattern, still have file left.
-            // this is only acceptable if we're on the very last
-            // empty segment of a file with a trailing slash.
-            // a/* should match a/b/
-            return fi === fl - 1 && file[fi] === '';
-            /* c8 ignore start */
+    }
+    for (const changedFile of allChangedFiles) {
+        const project = fileToProjectMap[changedFile.path];
+        if (project) {
+            (projectAndGlobalChanges.projects[project] ??= []).push(changedFile);
         }
         else {
-            // should be unreachable.
-            throw new Error('wtf?');
+            projectAndGlobalChanges.globalFiles.push(changedFile);
         }
-        /* c8 ignore stop */
-    }
-    braceExpand() {
-        return (0, exports.braceExpand)(this.pattern, this.options);
     }
-    parse(pattern) {
-        (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
-        const options = this.options;
-        // shortcuts
-        if (pattern === '**')
-            return exports.GLOBSTAR;
-        if (pattern === '')
-            return '';
-        // far and away, the most common glob pattern parts are
-        // *, *.*, and *.  Add a fast check method for those.
-        let m;
-        let fastTest = null;
-        if ((m = pattern.match(starRE))) {
-            fastTest = options.dot ? starTestDot : starTest;
-        }
-        else if ((m = pattern.match(starDotExtRE))) {
-            fastTest = (options.nocase
-                ? options.dot
-                    ? starDotExtTestNocaseDot
-                    : starDotExtTestNocase
-                : options.dot
-                    ? starDotExtTestDot
-                    : starDotExtTest)(m[1]);
-        }
-        else if ((m = pattern.match(qmarksRE))) {
-            fastTest = (options.nocase
-                ? options.dot
-                    ? qmarksTestNocaseDot
-                    : qmarksTestNocase
-                : options.dot
-                    ? qmarksTestDot
-                    : qmarksTest)(m);
-        }
-        else if ((m = pattern.match(starDotStarRE))) {
-            fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
-        }
-        else if ((m = pattern.match(dotStarRE))) {
-            fastTest = dotStarTest;
-        }
-        const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();
-        return fastTest ? Object.assign(re, { test: fastTest }) : re;
+    perf_hooks_1.performance.mark('changed-projects:end');
+    perf_hooks_1.performance.measure('changed-projects', 'changed-projects:start', 'changed-projects:end');
+    return projectAndGlobalChanges;
+}
+
+
+/***/ }),
+
+/***/ 56159:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.registeredFileWatcherSockets = void 0;
+exports.removeRegisteredFileWatcherSocket = removeRegisteredFileWatcherSocket;
+exports.hasRegisteredFileWatcherSockets = hasRegisteredFileWatcherSockets;
+exports.notifyFileWatcherSockets = notifyFileWatcherSockets;
+const find_matching_projects_1 = __nccwpck_require__(50630);
+const project_graph_utils_1 = __nccwpck_require__(84463);
+const promised_based_queue_1 = __nccwpck_require__(25340);
+const project_graph_incremental_recomputation_1 = __nccwpck_require__(96952);
+const server_1 = __nccwpck_require__(85309);
+const changed_projects_1 = __nccwpck_require__(76357);
+const queue = new promised_based_queue_1.PromisedBasedQueue();
+exports.registeredFileWatcherSockets = [];
+function removeRegisteredFileWatcherSocket(socket) {
+    exports.registeredFileWatcherSockets = exports.registeredFileWatcherSockets.filter((watcher) => watcher.socket !== socket);
+}
+function hasRegisteredFileWatcherSockets() {
+    return exports.registeredFileWatcherSockets.length > 0;
+}
+function notifyFileWatcherSockets(createdFiles, updatedFiles, deletedFiles) {
+    if (!hasRegisteredFileWatcherSockets()) {
+        return;
     }
-    makeRe() {
-        if (this.regexp || this.regexp === false)
-            return this.regexp;
-        // at this point, this.set is a 2d array of partial
-        // pattern strings, or "**".
-        //
-        // It's better to use .match().  This function shouldn't
-        // be used, really, but it's pretty convenient sometimes,
-        // when you just want to work with a regex.
-        const set = this.set;
-        if (!set.length) {
-            this.regexp = false;
-            return this.regexp;
-        }
-        const options = this.options;
-        const twoStar = options.noglobstar
-            ? star
-            : options.dot
-                ? twoStarDot
-                : twoStarNoDot;
-        const flags = new Set(options.nocase ? ['i'] : []);
-        // regexpify non-globstar patterns
-        // if ** is only item, then we just do one twoStar
-        // if ** is first, and there are more, prepend (\/|twoStar\/)? to next
-        // if ** is last, append (\/twoStar|) to previous
-        // if ** is in the middle, append (\/|\/twoStar\/) to previous
-        // then filter out GLOBSTAR symbols
-        let re = set
-            .map(pattern => {
-            const pp = pattern.map(p => {
-                if (p instanceof RegExp) {
-                    for (const f of p.flags.split(''))
-                        flags.add(f);
-                }
-                return typeof p === 'string'
-                    ? regExpEscape(p)
-                    : p === exports.GLOBSTAR
-                        ? exports.GLOBSTAR
-                        : p._src;
-            });
-            pp.forEach((p, i) => {
-                const next = pp[i + 1];
-                const prev = pp[i - 1];
-                if (p !== exports.GLOBSTAR || prev === exports.GLOBSTAR) {
-                    return;
+    queue.sendToQueue(async () => {
+        const projectAndGlobalChanges = (0, changed_projects_1.getProjectsAndGlobalChanges)(createdFiles, updatedFiles, deletedFiles);
+        await Promise.all(exports.registeredFileWatcherSockets.map(({ socket, config }) => {
+            const changedProjects = [];
+            const changedFiles = [];
+            if (config.watchProjects === 'all') {
+                for (const [projectName, projectFiles] of Object.entries(projectAndGlobalChanges.projects)) {
+                    changedProjects.push(projectName);
+                    changedFiles.push(...projectFiles);
                 }
-                if (prev === undefined) {
-                    if (next !== undefined && next !== exports.GLOBSTAR) {
-                        pp[i + 1] = '(?:\\/|' + twoStar + '\\/)?' + next;
-                    }
-                    else {
-                        pp[i] = twoStar;
+            }
+            else {
+                const watchedProjects = new Set((0, find_matching_projects_1.findMatchingProjects)(config.watchProjects, project_graph_incremental_recomputation_1.currentProjectGraph.nodes));
+                if (config.includeDependentProjects) {
+                    for (const project of watchedProjects) {
+                        for (const dep of (0, project_graph_utils_1.findAllProjectNodeDependencies)(project, project_graph_incremental_recomputation_1.currentProjectGraph)) {
+                            watchedProjects.add(dep);
+                        }
                     }
                 }
-                else if (next === undefined) {
-                    pp[i - 1] = prev + '(?:\\/|' + twoStar + ')?';
-                }
-                else if (next !== exports.GLOBSTAR) {
-                    pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + '\\/)' + next;
-                    pp[i + 1] = exports.GLOBSTAR;
+                for (const watchedProject of watchedProjects) {
+                    if (!!projectAndGlobalChanges.projects[watchedProject]) {
+                        changedProjects.push(watchedProject);
+                        changedFiles.push(...projectAndGlobalChanges.projects[watchedProject]);
+                    }
                 }
-            });
-            return pp.filter(p => p !== exports.GLOBSTAR).join('/');
-        })
-            .join('|');
-        // need to wrap in parens if we had more than one thing with |,
-        // otherwise only the first will be anchored to ^ and the last to $
-        const [open, close] = set.length > 1 ? ['(?:', ')'] : ['', ''];
-        // must match entire pattern
-        // ending in a * or ** will make it less strict.
-        re = '^' + open + re + close + '$';
-        // can match anything, as long as it's not this.
-        if (this.negate)
-            re = '^(?!' + re + ').+$';
-        try {
-            this.regexp = new RegExp(re, [...flags].join(''));
-            /* c8 ignore start */
-        }
-        catch (ex) {
-            // should be impossible
-            this.regexp = false;
-        }
-        /* c8 ignore stop */
-        return this.regexp;
-    }
-    slashSplit(p) {
-        // if p starts with // on windows, we preserve that
-        // so that UNC paths aren't broken.  Otherwise, any number of
-        // / characters are coalesced into one, unless
-        // preserveMultipleSlashes is set to true.
-        if (this.preserveMultipleSlashes) {
-            return p.split('/');
-        }
-        else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
-            // add an extra '' for the one we lose
-            return ['', ...p.split(/\/+/)];
-        }
-        else {
-            return p.split(/\/+/);
-        }
-    }
-    match(f, partial = this.partial) {
-        this.debug('match', f, this.pattern);
-        // short-circuit in the case of busted things.
-        // comments, etc.
-        if (this.comment) {
-            return false;
-        }
-        if (this.empty) {
-            return f === '';
-        }
-        if (f === '/' && partial) {
-            return true;
-        }
-        const options = this.options;
-        // windows: need to use /, not \
-        if (this.isWindows) {
-            f = f.split('\\').join('/');
-        }
-        // treat the test path as a set of pathparts.
-        const ff = this.slashSplit(f);
-        this.debug(this.pattern, 'split', ff);
-        // just ONE of the pattern sets in this.set needs to match
-        // in order for it to be valid.  If negating, then just one
-        // match means that we have failed.
-        // Either way, return on the first hit.
-        const set = this.set;
-        this.debug(this.pattern, 'set', set);
-        // Find the basename of the path by looking for the last non-empty segment
-        let filename = ff[ff.length - 1];
-        if (!filename) {
-            for (let i = ff.length - 2; !filename && i >= 0; i--) {
-                filename = ff[i];
             }
-        }
-        for (let i = 0; i < set.length; i++) {
-            const pattern = set[i];
-            let file = ff;
-            if (options.matchBase && pattern.length === 1) {
-                file = [filename];
+            if (config.includeGlobalWorkspaceFiles) {
+                changedFiles.push(...projectAndGlobalChanges.globalFiles);
             }
-            const hit = this.matchOne(file, pattern, partial);
-            if (hit) {
-                if (options.flipNegate) {
-                    return true;
-                }
-                return !this.negate;
+            if (changedProjects.length > 0 || changedFiles.length > 0) {
+                return (0, server_1.handleResult)(socket, 'FILE-WATCH-CHANGED', () => Promise.resolve({
+                    description: 'File watch changed',
+                    response: JSON.stringify({
+                        changedProjects,
+                        changedFiles,
+                    }),
+                }));
             }
-        }
-        // didn't get any hits.  this is success if it's a negative
-        // pattern, failure otherwise.
-        if (options.flipNegate) {
-            return false;
-        }
-        return this.negate;
-    }
-    static defaults(def) {
-        return exports.minimatch.defaults(def).Minimatch;
-    }
+        }));
+    });
 }
-exports.Minimatch = Minimatch;
-/* c8 ignore start */
-var ast_js_2 = __nccwpck_require__(81227);
-Object.defineProperty(exports, "AST", ({ enumerable: true, get: function () { return ast_js_2.AST; } }));
-var escape_js_2 = __nccwpck_require__(67350);
-Object.defineProperty(exports, "escape", ({ enumerable: true, get: function () { return escape_js_2.escape; } }));
-var unescape_js_2 = __nccwpck_require__(40391);
-Object.defineProperty(exports, "unescape", ({ enumerable: true, get: function () { return unescape_js_2.unescape; } }));
-/* c8 ignore stop */
-exports.minimatch.AST = ast_js_1.AST;
-exports.minimatch.Minimatch = Minimatch;
-exports.minimatch.escape = escape_js_1.escape;
-exports.minimatch.unescape = unescape_js_1.unescape;
-//# sourceMappingURL=index.js.map
+
 
 /***/ }),
 
-/***/ 40391:
-/***/ ((__unused_webpack_module, exports) => {
+/***/ 59957:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.unescape = void 0;
-/**
- * Un-escape a string that has been escaped with {@link escape}.
- *
- * If the {@link windowsPathsNoEscape} option is used, then square-brace
- * escapes are removed, but not backslash escapes.  For example, it will turn
- * the string `'[*]'` into `*`, but it will not turn `'\\*'` into `'*'`,
- * becuase `\` is a path separator in `windowsPathsNoEscape` mode.
- *
- * When `windowsPathsNoEscape` is not set, then both brace escapes and
- * backslash escapes are removed.
- *
- * Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
- * or unescaped.
- */
-const unescape = (s, { windowsPathsNoEscape = false, } = {}) => {
-    return windowsPathsNoEscape
-        ? s.replace(/\[([^\/\\])\]/g, '$1')
-        : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, '$1$2').replace(/\\([^\/])/g, '$1');
-};
-exports.unescape = unescape;
-//# sourceMappingURL=unescape.js.map
+exports.handleContextFileData = handleContextFileData;
+const workspace_context_1 = __nccwpck_require__(98897);
+const workspace_root_1 = __nccwpck_require__(64393);
+async function handleContextFileData() {
+    const files = await (0, workspace_context_1.getAllFileDataInContext)(workspace_root_1.workspaceRoot);
+    return {
+        response: JSON.stringify(files),
+        description: 'handleContextFileData',
+    };
+}
+
 
 /***/ }),
 
-/***/ 45205:
+/***/ 8397:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.NxAngularJsonPlugin = exports.NX_ANGULAR_JSON_PLUGIN_NAME = void 0;
-exports.shouldMergeAngularProjects = shouldMergeAngularProjects;
-exports.isAngularPluginInstalled = isAngularPluginInstalled;
-exports.toNewFormat = toNewFormat;
-exports.toOldFormat = toOldFormat;
-exports.renamePropertyWithStableKeys = renamePropertyWithStableKeys;
-const fs_1 = __nccwpck_require__(57147);
-const path = __nccwpck_require__(71017);
-const fileutils_1 = __nccwpck_require__(40910);
-exports.NX_ANGULAR_JSON_PLUGIN_NAME = 'nx-angular-json-plugin';
-exports.NxAngularJsonPlugin = {
-    name: exports.NX_ANGULAR_JSON_PLUGIN_NAME,
-    createNodes: [
-        'angular.json',
-        (f, _, ctx) => ({
-            projects: readAngularJson(ctx.workspaceRoot),
-        }),
-    ],
-};
-exports["default"] = exports.NxAngularJsonPlugin;
-function shouldMergeAngularProjects(root, includeProjectsFromAngularJson) {
-    if ((0, fs_1.existsSync)(path.join(root, 'angular.json')) &&
-        // Include projects from angular.json if explicitly required.
-        // e.g. when invoked from `packages/devkit/src/utils/convert-nx-executor.ts`
-        (includeProjectsFromAngularJson ||
-            // Or if a workspace has `@nrwl/angular`/`@nx/angular` installed then projects from `angular.json` to be considered by Nx.
-            isAngularPluginInstalled())) {
-        return true;
-    }
-    else {
-        return false;
-    }
+exports.handleFlushSyncGeneratorChangesToDisk = handleFlushSyncGeneratorChangesToDisk;
+const sync_generators_1 = __nccwpck_require__(75498);
+async function handleFlushSyncGeneratorChangesToDisk(generators) {
+    await (0, sync_generators_1.flushSyncGeneratorChangesToDisk)(generators);
+    return {
+        response: '{}',
+        description: 'handleFlushSyncGeneratorChangesToDisk',
+    };
 }
-function isAngularPluginInstalled() {
-    try {
-        // nx-ignore-next-line
-        require.resolve('@nx/angular');
-        return true;
-    }
-    catch {
-        try {
-            require.resolve('@nrwl/angular');
-            return true;
-        }
-        catch {
-            return false;
-        }
-    }
+
+
+/***/ }),
+
+/***/ 71375:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleForceShutdown = handleForceShutdown;
+const shutdown_utils_1 = __nccwpck_require__(45347);
+const server_1 = __nccwpck_require__(85309);
+async function handleForceShutdown(server) {
+    setTimeout(async () => {
+        await (0, shutdown_utils_1.handleServerProcessTermination)({
+            server,
+            reason: 'Request to shutdown',
+            sockets: server_1.openSockets,
+        });
+    });
+    return {
+        description: 'Shutdown initiated',
+        response: '{}',
+    };
 }
-function readAngularJson(angularCliWorkspaceRoot) {
-    return toNewFormat((0, fileutils_1.readJsonFile)(path.join(angularCliWorkspaceRoot, 'angular.json'))).projects;
+
+
+/***/ }),
+
+/***/ 63873:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleGetFilesInDirectory = handleGetFilesInDirectory;
+const workspace_context_1 = __nccwpck_require__(98897);
+const workspace_root_1 = __nccwpck_require__(64393);
+async function handleGetFilesInDirectory(dir) {
+    const files = await (0, workspace_context_1.getFilesInDirectoryUsingContext)(workspace_root_1.workspaceRoot, dir);
+    return {
+        response: JSON.stringify(files),
+        description: 'handleNxWorkspaceFiles',
+    };
 }
-function toNewFormat(w) {
-    if (!w.projects) {
-        return w;
-    }
-    for (const name in w.projects ?? {}) {
-        const projectConfig = w.projects[name];
-        if (projectConfig.architect) {
-            renamePropertyWithStableKeys(projectConfig, 'architect', 'targets');
-        }
-        if (projectConfig.schematics) {
-            renamePropertyWithStableKeys(projectConfig, 'schematics', 'generators');
-        }
-        if (!projectConfig.name) {
-            projectConfig.name = name;
-        }
-        Object.values(projectConfig.targets || {}).forEach((target) => {
-            if (target.builder !== undefined) {
-                renamePropertyWithStableKeys(target, 'builder', 'executor');
-            }
-        });
-    }
-    if (w.schematics) {
-        renamePropertyWithStableKeys(w, 'schematics', 'generators');
-    }
-    if (w.version !== 2) {
-        w.version = 2;
-    }
-    return w;
+
+
+/***/ }),
+
+/***/ 1991:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleGetRegisteredSyncGenerators = handleGetRegisteredSyncGenerators;
+const sync_generators_1 = __nccwpck_require__(75498);
+async function handleGetRegisteredSyncGenerators() {
+    const syncGenerators = await (0, sync_generators_1.getCachedRegisteredSyncGenerators)();
+    return {
+        response: JSON.stringify(syncGenerators),
+        description: 'handleGetSyncGeneratorChanges',
+    };
 }
-function toOldFormat(w) {
-    if (w.projects) {
-        for (const name in w.projects) {
-            const projectConfig = w.projects[name];
-            if (typeof projectConfig === 'string') {
-                throw new Error("'project.json' files are incompatible with version 1 workspace schemas.");
-            }
-            if (projectConfig.targets) {
-                renamePropertyWithStableKeys(projectConfig, 'targets', 'architect');
-            }
-            if (projectConfig.generators) {
-                renamePropertyWithStableKeys(projectConfig, 'generators', 'schematics');
-            }
-            delete projectConfig.name;
-            Object.values(projectConfig.architect || {}).forEach((target) => {
-                if (target.executor !== undefined) {
-                    renamePropertyWithStableKeys(target, 'executor', 'builder');
-                }
-            });
-        }
-    }
-    if (w.generators) {
-        renamePropertyWithStableKeys(w, 'generators', 'schematics');
-    }
-    if (w.version !== 1) {
-        w.version = 1;
-    }
-    return w;
+
+
+/***/ }),
+
+/***/ 83909:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleGetSyncGeneratorChanges = handleGetSyncGeneratorChanges;
+const sync_generators_1 = __nccwpck_require__(75498);
+async function handleGetSyncGeneratorChanges(generators) {
+    const changes = await (0, sync_generators_1.getCachedSyncGeneratorChanges)(generators);
+    // strip out the content of the changes and any potential callback
+    const result = changes.map((change) => ({
+        generatorName: change.generatorName,
+        changes: change.changes.map((c) => ({ ...c, content: null })),
+        outOfSyncMessage: change.outOfSyncMessage,
+    }));
+    return {
+        response: JSON.stringify(result),
+        description: 'handleGetSyncGeneratorChanges',
+    };
 }
-// we have to do it this way to preserve the order of properties
-// not to screw up the formatting
-function renamePropertyWithStableKeys(obj, from, to) {
-    const copy = { ...obj };
-    Object.keys(obj).forEach((k) => {
-        delete obj[k];
-    });
-    Object.keys(copy).forEach((k) => {
-        if (k === from) {
-            obj[to] = copy[k];
+
+
+/***/ }),
+
+/***/ 61494:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleGetTaskHistoryForHashes = handleGetTaskHistoryForHashes;
+const task_history_1 = __nccwpck_require__(83523);
+async function handleGetTaskHistoryForHashes(hashes) {
+    const history = await (0, task_history_1.getHistoryForHashes)(hashes);
+    return {
+        response: JSON.stringify(history),
+        description: 'handleGetTaskHistoryForHashes',
+    };
+}
+
+
+/***/ }),
+
+/***/ 22069:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleGlob = handleGlob;
+const workspace_root_1 = __nccwpck_require__(64393);
+const workspace_context_1 = __nccwpck_require__(98897);
+async function handleGlob(globs, exclude) {
+    const files = await (0, workspace_context_1.globWithWorkspaceContext)(workspace_root_1.workspaceRoot, globs, exclude);
+    return {
+        response: JSON.stringify(files),
+        description: 'handleGlob',
+    };
+}
+
+
+/***/ }),
+
+/***/ 75631:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleHashGlob = handleHashGlob;
+const workspace_root_1 = __nccwpck_require__(64393);
+const workspace_context_1 = __nccwpck_require__(98897);
+async function handleHashGlob(globs, exclude) {
+    const files = await (0, workspace_context_1.hashWithWorkspaceContext)(workspace_root_1.workspaceRoot, globs, exclude);
+    return {
+        response: JSON.stringify(files),
+        description: 'handleHashGlob',
+    };
+}
+
+
+/***/ }),
+
+/***/ 99270:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleHashTasks = handleHashTasks;
+const project_graph_incremental_recomputation_1 = __nccwpck_require__(96952);
+const task_hasher_1 = __nccwpck_require__(99816);
+const configuration_1 = __nccwpck_require__(34333);
+const error_types_1 = __nccwpck_require__(54403);
+/**
+ * We use this not to recreated hasher for every hash operation
+ * TaskHasher has a cache inside, so keeping it around results in faster performance
+ */
+let storedProjectGraph = null;
+let storedHasher = null;
+async function handleHashTasks(payload) {
+    const { error, projectGraph: _graph, allWorkspaceFiles, fileMap, rustReferences, } = await (0, project_graph_incremental_recomputation_1.getCachedSerializedProjectGraphPromise)();
+    let projectGraph = _graph;
+    if (error) {
+        if (error instanceof error_types_1.DaemonProjectGraphError) {
+            projectGraph = error.projectGraph;
         }
         else {
-            obj[k] = copy[k];
+            throw error;
         }
-    });
+    }
+    const nxJson = (0, configuration_1.readNxJson)();
+    if (projectGraph !== storedProjectGraph) {
+        storedProjectGraph = projectGraph;
+        storedHasher = new task_hasher_1.InProcessTaskHasher(fileMap?.projectFileMap, allWorkspaceFiles, projectGraph, nxJson, rustReferences, payload.runnerOptions);
+    }
+    const response = JSON.stringify(await storedHasher.hashTasks(payload.tasks, payload.taskGraph, payload.env));
+    return {
+        response,
+        description: 'handleHashTasks',
+    };
 }
 
 
 /***/ }),
 
-/***/ 84678:
+/***/ 71686:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.normalizeExecutorSchema = normalizeExecutorSchema;
-exports.getExecutorInformation = getExecutorInformation;
-const path_1 = __nccwpck_require__(71017);
-const plugins_1 = __nccwpck_require__(69461);
-const fileutils_1 = __nccwpck_require__(40910);
-const schema_utils_1 = __nccwpck_require__(62607);
-const installation_directory_1 = __nccwpck_require__(87836);
-function normalizeExecutorSchema(schema) {
-    const version = (schema.version ??= 1);
+exports.handleNxWorkspaceFiles = handleNxWorkspaceFiles;
+const workspace_context_1 = __nccwpck_require__(98897);
+const workspace_root_1 = __nccwpck_require__(64393);
+async function handleNxWorkspaceFiles(projectRootMap) {
+    const files = await (0, workspace_context_1.getNxWorkspaceFilesFromContext)(workspace_root_1.workspaceRoot, projectRootMap);
     return {
-        version,
-        outputCapture: schema.outputCapture ?? version < 2 ? 'direct-nodejs' : 'pipe',
-        properties: !schema.properties || typeof schema.properties !== 'object'
-            ? {}
-            : schema.properties,
-        ...schema,
+        response: JSON.stringify(files),
+        description: 'handleNxWorkspaceFiles',
     };
 }
-function cacheKey(nodeModule, executor, root) {
-    return `${root}:${nodeModule}:${executor}`;
+
+
+/***/ }),
+
+/***/ 15405:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleRecordOutputsHash = handleRecordOutputsHash;
+exports.handleOutputsHashesMatch = handleOutputsHashesMatch;
+const outputs_tracking_1 = __nccwpck_require__(60839);
+async function handleRecordOutputsHash(payload) {
+    try {
+        await (0, outputs_tracking_1.recordOutputsHash)(payload.data.outputs, payload.data.hash);
+        return {
+            description: 'recordOutputsHash',
+            response: '{}',
+        };
+    }
+    catch (e) {
+        return {
+            description: 'recordOutputsHash failed',
+            error: new Error(`Critical error when recording metadata about outputs: '${e.message}'.`),
+        };
+    }
 }
-const cachedExecutorInformation = {};
-function getExecutorInformation(nodeModule, executor, root, projects) {
+async function handleOutputsHashesMatch(payload) {
     try {
-        const key = cacheKey(nodeModule, executor, root);
-        if (cachedExecutorInformation[key])
-            return cachedExecutorInformation[key];
-        const { executorsFilePath, executorConfig, isNgCompat } = readExecutorJson(nodeModule, executor, root, projects);
-        const executorsDir = (0, path_1.dirname)(executorsFilePath);
-        const schemaPath = (0, schema_utils_1.resolveSchema)(executorConfig.schema, executorsDir);
-        const schema = normalizeExecutorSchema((0, fileutils_1.readJsonFile)(schemaPath));
-        const implementationFactory = (0, schema_utils_1.getImplementationFactory)(executorConfig.implementation, executorsDir);
-        const batchImplementationFactory = executorConfig.batchImplementation
-            ? (0, schema_utils_1.getImplementationFactory)(executorConfig.batchImplementation, executorsDir)
-            : null;
-        const hasherFactory = executorConfig.hasher
-            ? (0, schema_utils_1.getImplementationFactory)(executorConfig.hasher, executorsDir)
-            : null;
-        const res = {
-            schema,
-            implementationFactory,
-            batchImplementationFactory,
-            hasherFactory,
-            isNgCompat,
-            isNxExecutor: !isNgCompat,
+        const res = await (0, outputs_tracking_1.outputsHashesMatch)(payload.data.outputs, payload.data.hash);
+        return {
+            response: JSON.stringify(res),
+            description: 'outputsHashesMatch',
         };
-        cachedExecutorInformation[key] = res;
-        return res;
     }
     catch (e) {
-        throw new Error(`Unable to resolve ${nodeModule}:${executor}.\n${e.message}`);
+        return {
+            description: 'outputsHashesMatch failed',
+            error: new Error(`Critical error when verifying the contents of the outputs haven't changed: '${e.message}'.`),
+        };
     }
 }
-function readExecutorJson(nodeModule, executor, root, projects) {
-    const { json: packageJson, path: packageJsonPath } = (0, plugins_1.readPluginPackageJson)(nodeModule, projects, root
-        ? [root, __dirname, process.cwd(), ...(0, installation_directory_1.getNxRequirePaths)()]
-        : [__dirname, process.cwd(), ...(0, installation_directory_1.getNxRequirePaths)()]);
-    const executorsFile = packageJson.executors ?? packageJson.builders;
-    if (!executorsFile) {
-        throw new Error(`The "${nodeModule}" package does not support Nx executors.`);
+
+
+/***/ }),
+
+/***/ 5928:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleProcessInBackground = handleProcessInBackground;
+const logger_1 = __nccwpck_require__(89715);
+const installation_directory_1 = __nccwpck_require__(87836);
+async function handleProcessInBackground(payload) {
+    let fn;
+    try {
+        fn = require(__nccwpck_require__(5927).resolve(payload.requirePath, {
+            paths: (0, installation_directory_1.getNxRequirePaths)(),
+        })).default;
     }
-    const executorsFilePath = /*require.resolve*/(__nccwpck_require__(87739).resolve((0, path_1.join)((0, path_1.dirname)(packageJsonPath), executorsFile)));
-    const executorsJson = (0, fileutils_1.readJsonFile)(executorsFilePath);
-    const executorConfig = executorsJson.executors?.[executor] || executorsJson.builders?.[executor];
-    if (!executorConfig) {
-        throw new Error(`Cannot find executor '${executor}' in ${executorsFilePath}.`);
+    catch (e) {
+        return {
+            description: `Unable to require ${payload.requirePath}`,
+            error: new Error(`Unable to require ${payload.requirePath}`),
+        };
     }
-    if (typeof executorConfig === 'string') {
-        // Angular CLI can have a builder pointing to another package:builder
-        const [packageName, executorName] = executorConfig.split(':');
-        return readExecutorJson(packageName, executorName, root, projects);
+    try {
+        const response = await fn(payload.data, logger_1.serverLogger);
+        return {
+            response,
+            description: payload.type,
+        };
+    }
+    catch (e) {
+        return {
+            description: `Error when processing ${payload.type}.`,
+            error: e,
+        };
     }
-    const isNgCompat = !executorsJson.executors?.[executor];
-    return { executorsFilePath, executorConfig, isNgCompat };
 }
 
 
 /***/ }),
 
-/***/ 29966:
+/***/ 77135:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.calculateDefaultProjectName = calculateDefaultProjectName;
-exports.findMatchingProjectInCwd = findMatchingProjectInCwd;
-const find_project_for_path_1 = __nccwpck_require__(69621);
-const path_1 = __nccwpck_require__(71017);
-function calculateDefaultProjectName(cwd, root, { projects }, nxJson) {
-    const relativeCwd = (0, path_1.relative)(root, cwd).replace(/\\/g, '/') ?? null;
-    if (relativeCwd !== null) {
-        const matchingProject = findMatchingProjectInCwd(projects, relativeCwd);
-        // We have found a project
-        if (matchingProject) {
-            // That is not at the root
-            if (projects[matchingProject].root !== '.' &&
-                projects[matchingProject].root !== '') {
-                return matchingProject;
-                // But its at the root, and NX_DEFAULT_PROJECT is set
-            }
-            else if (process.env.NX_DEFAULT_PROJECT) {
-                return process.env.NX_DEFAULT_PROJECT;
-                // Its root, and NX_DEFAULT_PROJECT is not set
-            }
-            else {
-                return matchingProject;
-            }
+exports.handleRequestProjectGraph = handleRequestProjectGraph;
+const perf_hooks_1 = __nccwpck_require__(4074);
+const socket_utils_1 = __nccwpck_require__(58935);
+const logger_1 = __nccwpck_require__(89715);
+const project_graph_incremental_recomputation_1 = __nccwpck_require__(96952);
+async function handleRequestProjectGraph() {
+    try {
+        perf_hooks_1.performance.mark('server-connection');
+        logger_1.serverLogger.requestLog('Client Request for Project Graph Received');
+        const result = await (0, project_graph_incremental_recomputation_1.getCachedSerializedProjectGraphPromise)();
+        if (result.error) {
+            return {
+                description: `Error when preparing serialized project graph.`,
+                error: result.error,
+            };
         }
+        const serializedResult = (0, socket_utils_1.serializeResult)(result.error, result.serializedProjectGraph, result.serializedSourceMaps);
+        if (!serializedResult) {
+            return {
+                description: `Error when serializing project graph result.`,
+                error: new Error('Critical error when serializing server result, check server logs'),
+            };
+        }
+        perf_hooks_1.performance.mark('serialized-project-graph-ready');
+        perf_hooks_1.performance.measure('total for creating and serializing project graph', 'server-connection', 'serialized-project-graph-ready');
+        return { response: serializedResult, description: 'project-graph' };
+    }
+    catch (e) {
+        return {
+            description: `Unexpected error when creating Project Graph.`,
+            error: e,
+        };
     }
-    // There was no matching project in cwd.
-    return (process.env.NX_DEFAULT_PROJECT ??
-        nxJson.cli?.defaultProjectName ??
-        nxJson?.defaultProject);
 }
-function findMatchingProjectInCwd(projects, relativeCwd) {
-    const projectRootMappings = new Map();
-    for (const projectName of Object.keys(projects)) {
-        const { root } = projects[projectName];
-        projectRootMappings.set((0, find_project_for_path_1.normalizeProjectRoot)(root), projectName);
+
+
+/***/ }),
+
+/***/ 42836:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleRequestShutdown = handleRequestShutdown;
+const shutdown_utils_1 = __nccwpck_require__(45347);
+const server_1 = __nccwpck_require__(85309);
+async function handleRequestShutdown(server, numberOfConnections) {
+    // 1 connection is the client asking to shut down
+    if (numberOfConnections > 1) {
+        return {
+            description: `Unable to shutdown the daemon. ${numberOfConnections} connections are open.`,
+            response: '{}',
+        };
+    }
+    else {
+        setTimeout(async () => {
+            await (0, shutdown_utils_1.handleServerProcessTermination)({
+                server,
+                reason: 'Request to shutdown',
+                sockets: server_1.openSockets,
+            });
+        }, 0);
+        return {
+            description: 'Shutdown initiated',
+            response: '{}',
+        };
     }
-    const matchingProject = (0, find_project_for_path_1.findProjectForPath)(relativeCwd, projectRootMappings);
-    return matchingProject;
 }
 
 
 /***/ }),
 
-/***/ 34333:
+/***/ 76914:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.readNxJson = void 0;
-exports.workspaceLayout = workspaceLayout;
-const nx_json_1 = __nccwpck_require__(21173);
-/**
- * Returns information about where apps and libs will be created.
- */
-function workspaceLayout() {
-    const nxJson = (0, nx_json_1.readNxJson)();
+exports.handleUpdateWorkspaceContext = handleUpdateWorkspaceContext;
+const project_graph_incremental_recomputation_1 = __nccwpck_require__(96952);
+async function handleUpdateWorkspaceContext(createdFiles, updatedFiles, deletedFiles) {
+    (0, project_graph_incremental_recomputation_1.addUpdatedAndDeletedFiles)(createdFiles, updatedFiles, deletedFiles);
     return {
-        appsDir: nxJson.workspaceLayout?.appsDir ?? 'apps',
-        libsDir: nxJson.workspaceLayout?.libsDir ?? 'libs',
+        response: '{}',
+        description: 'handleUpdateContextFiles',
     };
 }
-var nx_json_2 = __nccwpck_require__(21173);
-Object.defineProperty(exports, "readNxJson", ({ enumerable: true, get: function () { return nx_json_2.readNxJson; } }));
 
 
 /***/ }),
 
-/***/ 21173:
+/***/ 8340:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.readNxJson = readNxJson;
-exports.hasNxJson = hasNxJson;
-const fs_1 = __nccwpck_require__(57147);
-const path_1 = __nccwpck_require__(71017);
-const fileutils_1 = __nccwpck_require__(40910);
-const workspace_root_1 = __nccwpck_require__(64393);
-function readNxJson(root = workspace_root_1.workspaceRoot) {
-    const nxJson = (0, path_1.join)(root, 'nx.json');
-    if ((0, fs_1.existsSync)(nxJson)) {
-        const nxJsonConfiguration = (0, fileutils_1.readJsonFile)(nxJson);
-        if (nxJsonConfiguration.extends) {
-            const extendedNxJsonPath = require.resolve(nxJsonConfiguration.extends, {
-                paths: [(0, path_1.dirname)(nxJson)],
-            });
-            const baseNxJson = (0, fileutils_1.readJsonFile)(extendedNxJsonPath);
-            return {
-                ...baseNxJson,
-                ...nxJsonConfiguration,
-            };
-        }
-        else {
-            return nxJsonConfiguration;
-        }
-    }
-    else {
-        try {
-            return (0, fileutils_1.readJsonFile)((0, path_1.join)(__dirname, '..', '..', 'presets', 'core.json'));
-        }
-        catch (e) {
-            return {};
-        }
-    }
-}
-function hasNxJson(root) {
-    const nxJson = (0, path_1.join)(root, 'nx.json');
-    return (0, fs_1.existsSync)(nxJson);
+exports.handleWriteTaskRunsToHistory = handleWriteTaskRunsToHistory;
+const task_history_1 = __nccwpck_require__(83523);
+async function handleWriteTaskRunsToHistory(taskRuns) {
+    await (0, task_history_1.writeTaskRunsToHistory)(taskRuns);
+    return {
+        response: 'true',
+        description: 'handleWriteTaskRunsToHistory',
+    };
 }
 
 
 /***/ }),
 
-/***/ 72733:
+/***/ 89715:
 /***/ ((__unused_webpack_module, exports) => {
 
 "use strict";
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.DependencyType = void 0;
-exports.fileDataDepTarget = fileDataDepTarget;
-exports.fileDataDepType = fileDataDepType;
-function fileDataDepTarget(dep) {
-    return typeof dep === 'string'
-        ? dep
-        : Array.isArray(dep) && dep.length === 2
-            ? dep[0]
-            : dep[1];
-}
-function fileDataDepType(dep) {
-    return typeof dep === 'string'
-        ? 'static'
-        : Array.isArray(dep) && dep.length === 2
-            ? dep[1]
-            : dep[2];
-}
 /**
- * Type of dependency between projects
+ * To improve the overall readibility of the logs, we categorize things by "trigger":
+ *
+ * - [REQUEST] meaning that the current set of actions were triggered by a client request to the server
+ * - [WATCHER] meaning the the current set of actions were triggered by handling changes to the workspace files
+ *
+ * We keep those two "triggers" left aligned at the top level and then indent subsequent logs so that there is a
+ * logical hierarchy/grouping.
  */
-var DependencyType;
-(function (DependencyType) {
-    /**
-     * Static dependencies are tied to the loading of the module
-     */
-    DependencyType["static"] = "static";
-    /**
-     * Dynamic dependencies are brought in by the module at run time
-     */
-    DependencyType["dynamic"] = "dynamic";
-    /**
-     * Implicit dependencies are inferred
-     */
-    DependencyType["implicit"] = "implicit";
-})(DependencyType || (exports.DependencyType = DependencyType = {}));
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.serverLogger = void 0;
+class ServerLogger {
+    log(...s) {
+        console.log(this.formatLogMessage(`${s
+            .map((val) => {
+            if (typeof val === 'string') {
+                return val;
+            }
+            return JSON.stringify(val);
+        })
+            .join(' ')}`));
+    }
+    requestLog(...s) {
+        this.log(`[REQUEST]: ${s.join(' ')}`);
+    }
+    watcherLog(...s) {
+        this.log(`[WATCHER]: ${s.join(' ')}`);
+    }
+    formatLogMessage(message) {
+        return `[NX Daemon Server] - ${this.getNow()} - ${message}`;
+    }
+    getNow() {
+        return new Date(Date.now()).toISOString();
+    }
+}
+exports.serverLogger = new ServerLogger();
 
 
 /***/ }),
 
-/***/ 62607:
+/***/ 60839:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getImplementationFactory = getImplementationFactory;
-exports.resolveImplementation = resolveImplementation;
-exports.resolveSchema = resolveSchema;
-const fs_1 = __nccwpck_require__(57147);
+exports._recordOutputsHash = _recordOutputsHash;
+exports._outputsHashesMatch = _outputsHashesMatch;
+exports.recordedHash = recordedHash;
+exports.recordOutputsHash = recordOutputsHash;
+exports.outputsHashesMatch = outputsHashesMatch;
+exports.processFileChangesInOutputs = processFileChangesInOutputs;
+exports.disableOutputsTracking = disableOutputsTracking;
 const path_1 = __nccwpck_require__(71017);
-const plugins_1 = __nccwpck_require__(69461);
-/**
- * This function is used to get the implementation factory of an executor or generator.
- * @param implementation path to the implementation
- * @param directory path to the directory
- * @returns a function that returns the implementation
- */
-function getImplementationFactory(implementation, directory) {
-    const [implementationModulePath, implementationExportName] = implementation.split('#');
-    return () => {
-        const modulePath = resolveImplementation(implementationModulePath, directory);
-        if ((0, path_1.extname)(modulePath) === '.ts') {
-            (0, plugins_1.registerPluginTSTranspiler)();
+const native_1 = __nccwpck_require__(71926);
+const collapse_expanded_outputs_1 = __nccwpck_require__(92193);
+const workspace_root_1 = __nccwpck_require__(64393);
+let disabled = false;
+const dirsContainingOutputs = {};
+const recordedHashes = {};
+const timestamps = {};
+const numberOfExpandedOutputs = {};
+function _recordOutputsHash(outputs, hash) {
+    numberOfExpandedOutputs[hash] = outputs.length;
+    for (const output of outputs) {
+        recordedHashes[output] = hash;
+        timestamps[output] = new Date().getTime();
+        let current = output;
+        while (current != (0, path_1.dirname)(current)) {
+            if (!dirsContainingOutputs[current]) {
+                dirsContainingOutputs[current] = new Set();
+            }
+            dirsContainingOutputs[current].add(output);
+            current = (0, path_1.dirname)(current);
         }
-        const module = require(modulePath);
-        return implementationExportName
-            ? module[implementationExportName]
-            : module.default ?? module;
-    };
+    }
 }
-/**
- * This function is used to resolve the implementation of an executor or generator.
- * @param implementationModulePath
- * @param directory
- * @returns path to the implementation
- */
-function resolveImplementation(implementationModulePath, directory) {
-    const validImplementations = ['', '.js', '.ts'].map((x) => implementationModulePath + x);
-    for (const maybeImplementation of validImplementations) {
-        const maybeImplementationPath = (0, path_1.join)(directory, maybeImplementation);
-        if ((0, fs_1.existsSync)(maybeImplementationPath)) {
-            return maybeImplementationPath;
+function _outputsHashesMatch(outputs, hash) {
+    if (outputs.length !== numberOfExpandedOutputs[hash]) {
+        return false;
+    }
+    else {
+        for (const output of outputs) {
+            if (recordedHashes[output] !== hash) {
+                return false;
+            }
         }
-        try {
-            return require.resolve(maybeImplementation, {
-                paths: [directory],
+    }
+    return true;
+}
+function recordedHash(output) {
+    return recordedHashes[output];
+}
+async function recordOutputsHash(_outputs, hash) {
+    const outputs = await normalizeOutputs(_outputs);
+    if (disabled)
+        return;
+    _recordOutputsHash(outputs, hash);
+}
+async function outputsHashesMatch(_outputs, hash) {
+    const outputs = await normalizeOutputs(_outputs);
+    if (disabled)
+        return false;
+    return _outputsHashesMatch(outputs, hash);
+}
+async function normalizeOutputs(outputs) {
+    let expandedOutputs = (0, collapse_expanded_outputs_1.collapseExpandedOutputs)((0, native_1.getFilesForOutputs)(workspace_root_1.workspaceRoot, outputs));
+    return expandedOutputs;
+}
+function processFileChangesInOutputs(changeEvents, now = undefined) {
+    if (!now) {
+        now = new Date().getTime();
+    }
+    for (let e of changeEvents) {
+        let current = e.path;
+        // the path is either an output itself or a parent
+        if (dirsContainingOutputs[current]) {
+            dirsContainingOutputs[current].forEach((output) => {
+                if (now - timestamps[output] > 2000) {
+                    recordedHashes[output] = undefined;
+                }
             });
+            continue;
+        }
+        // the path is a child of some output or unrelated
+        while (current != (0, path_1.dirname)(current)) {
+            if (recordedHashes[current] && now - timestamps[current] > 2000) {
+                recordedHashes[current] = undefined;
+                break;
+            }
+            current = (0, path_1.dirname)(current);
         }
-        catch { }
     }
-    throw new Error(`Could not resolve "${implementationModulePath}" from "${directory}".`);
 }
-function resolveSchema(schemaPath, directory) {
-    const maybeSchemaPath = (0, path_1.join)(directory, schemaPath);
-    if ((0, fs_1.existsSync)(maybeSchemaPath)) {
-        return maybeSchemaPath;
-    }
-    return require.resolve(schemaPath, {
-        paths: [directory],
-    });
+function disableOutputsTracking() {
+    disabled = true;
 }
 
 
 /***/ }),
 
-/***/ 10750:
+/***/ 17611:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.toProjectName = toProjectName;
-const path_1 = __nccwpck_require__(71017);
-/**
- * Pulled from toFileName in names from @nx/devkit.
- * Todo: Should refactor, not duplicate.
- */
-function toProjectName(fileName) {
-    const parts = (0, path_1.dirname)(fileName).split(/[\/\\]/g);
-    return parts[parts.length - 1].toLowerCase();
+exports.getPlugins = getPlugins;
+exports.cleanupPlugins = cleanupPlugins;
+const file_hasher_1 = __nccwpck_require__(19482);
+const nx_json_1 = __nccwpck_require__(21173);
+const internal_api_1 = __nccwpck_require__(19400);
+const workspace_root_1 = __nccwpck_require__(64393);
+let currentPluginsConfigurationHash;
+let loadedPlugins;
+let cleanup;
+async function getPlugins() {
+    const pluginsConfiguration = (0, nx_json_1.readNxJson)().plugins ?? [];
+    const pluginsConfigurationHash = (0, file_hasher_1.hashObject)(pluginsConfiguration);
+    // If the plugins configuration has not changed, reuse the current plugins
+    if (loadedPlugins &&
+        pluginsConfigurationHash === currentPluginsConfigurationHash) {
+        return loadedPlugins;
+    }
+    // Cleanup current plugins before loading new ones
+    if (cleanup) {
+        cleanup();
+    }
+    currentPluginsConfigurationHash = pluginsConfigurationHash;
+    const [result, cleanupFn] = await (0, internal_api_1.loadNxPlugins)(pluginsConfiguration, workspace_root_1.workspaceRoot);
+    cleanup = cleanupFn;
+    loadedPlugins = result;
+    return result;
+}
+function cleanupPlugins() {
+    cleanup();
 }
 
 
 /***/ }),
 
-/***/ 70800:
+/***/ 96952:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.serverProcessJsonPath = void 0;
-exports.readDaemonProcessJsonCache = readDaemonProcessJsonCache;
-exports.deleteDaemonJsonProcessCache = deleteDaemonJsonProcessCache;
-exports.writeDaemonJsonProcessCache = writeDaemonJsonProcessCache;
-exports.safelyCleanUpExistingProcess = safelyCleanUpExistingProcess;
-exports.getDaemonProcessIdSync = getDaemonProcessIdSync;
-const fs_extra_1 = __nccwpck_require__(2103);
-const path_1 = __nccwpck_require__(71017);
-const tmp_dir_1 = __nccwpck_require__(71524);
-exports.serverProcessJsonPath = (0, path_1.join)(tmp_dir_1.DAEMON_DIR_FOR_CURRENT_WORKSPACE, 'server-process.json');
-async function readDaemonProcessJsonCache() {
-    if (!(0, fs_extra_1.existsSync)(exports.serverProcessJsonPath)) {
-        return null;
+exports.currentProjectGraph = exports.currentProjectFileMapCache = exports.fileMapWithFiles = void 0;
+exports.getCachedSerializedProjectGraphPromise = getCachedSerializedProjectGraphPromise;
+exports.addUpdatedAndDeletedFiles = addUpdatedAndDeletedFiles;
+exports.registerProjectGraphRecomputationListener = registerProjectGraphRecomputationListener;
+const perf_hooks_1 = __nccwpck_require__(4074);
+const nx_json_1 = __nccwpck_require__(21173);
+const file_hasher_1 = __nccwpck_require__(19482);
+const build_project_graph_1 = __nccwpck_require__(99254);
+const file_map_utils_1 = __nccwpck_require__(7682);
+const nx_deps_cache_1 = __nccwpck_require__(53387);
+const retrieve_workspace_files_1 = __nccwpck_require__(25264);
+const fileutils_1 = __nccwpck_require__(40910);
+const workspace_context_1 = __nccwpck_require__(98897);
+const workspace_root_1 = __nccwpck_require__(64393);
+const file_watcher_sockets_1 = __nccwpck_require__(56159);
+const logger_1 = __nccwpck_require__(89715);
+const plugins_1 = __nccwpck_require__(17611);
+const error_types_1 = __nccwpck_require__(54403);
+let cachedSerializedProjectGraphPromise;
+const collectedUpdatedFiles = new Set();
+const collectedDeletedFiles = new Set();
+const projectGraphRecomputationListeners = new Set();
+let storedWorkspaceConfigHash;
+let waitPeriod = 100;
+let scheduledTimeoutId;
+let knownExternalNodes = {};
+async function getCachedSerializedProjectGraphPromise() {
+    try {
+        let wasScheduled = false;
+        // recomputing it now on demand. we can ignore the scheduled timeout
+        if (scheduledTimeoutId) {
+            wasScheduled = true;
+            clearTimeout(scheduledTimeoutId);
+            scheduledTimeoutId = undefined;
+        }
+        // reset the wait time
+        waitPeriod = 100;
+        await resetInternalStateIfNxDepsMissing();
+        const plugins = await (0, plugins_1.getPlugins)();
+        if (collectedUpdatedFiles.size == 0 && collectedDeletedFiles.size == 0) {
+            if (!cachedSerializedProjectGraphPromise) {
+                cachedSerializedProjectGraphPromise =
+                    processFilesAndCreateAndSerializeProjectGraph(plugins);
+            }
+        }
+        else {
+            cachedSerializedProjectGraphPromise =
+                processFilesAndCreateAndSerializeProjectGraph(plugins);
+        }
+        const result = await cachedSerializedProjectGraphPromise;
+        if (wasScheduled) {
+            notifyProjectGraphRecomputationListeners(result.projectGraph);
+        }
+        return result;
+    }
+    catch (e) {
+        return {
+            error: e,
+            serializedProjectGraph: null,
+            serializedSourceMaps: null,
+            projectGraph: null,
+            projectFileMapCache: null,
+            fileMap: null,
+            allWorkspaceFiles: null,
+            rustReferences: null,
+        };
     }
-    return await (0, fs_extra_1.readJson)(exports.serverProcessJsonPath);
 }
-function deleteDaemonJsonProcessCache() {
+function addUpdatedAndDeletedFiles(createdFiles, updatedFiles, deletedFiles) {
+    for (let f of [...createdFiles, ...updatedFiles]) {
+        collectedDeletedFiles.delete(f);
+        collectedUpdatedFiles.add(f);
+    }
+    for (let f of deletedFiles) {
+        collectedUpdatedFiles.delete(f);
+        collectedDeletedFiles.add(f);
+    }
+    if (updatedFiles.length > 0 || deletedFiles.length > 0) {
+        (0, file_watcher_sockets_1.notifyFileWatcherSockets)(null, updatedFiles, deletedFiles);
+    }
+    if (createdFiles.length > 0) {
+        waitPeriod = 100; // reset it to process the graph faster
+    }
+    if (!scheduledTimeoutId) {
+        scheduledTimeoutId = setTimeout(async () => {
+            scheduledTimeoutId = undefined;
+            if (waitPeriod < 4000) {
+                waitPeriod = waitPeriod * 2;
+            }
+            cachedSerializedProjectGraphPromise =
+                processFilesAndCreateAndSerializeProjectGraph(await (0, plugins_1.getPlugins)());
+            const { projectGraph } = await cachedSerializedProjectGraphPromise;
+            if (createdFiles.length > 0) {
+                (0, file_watcher_sockets_1.notifyFileWatcherSockets)(createdFiles, null, null);
+            }
+            notifyProjectGraphRecomputationListeners(projectGraph);
+        }, waitPeriod);
+    }
+}
+function registerProjectGraphRecomputationListener(listener) {
+    projectGraphRecomputationListeners.add(listener);
+}
+function computeWorkspaceConfigHash(projectsConfigurations) {
+    const projectConfigurationStrings = Object.entries(projectsConfigurations)
+        .sort(([projectNameA], [projectNameB]) => projectNameA.localeCompare(projectNameB))
+        .map(([projectName, projectConfig]) => `${projectName}:${JSON.stringify(projectConfig)}`);
+    return (0, file_hasher_1.hashArray)(projectConfigurationStrings);
+}
+async function processCollectedUpdatedAndDeletedFiles({ projects, externalNodes, projectRootMap }, updatedFileHashes, deletedFiles) {
     try {
-        if (getDaemonProcessIdSync() === process.pid) {
-            (0, fs_extra_1.unlinkSync)(exports.serverProcessJsonPath);
+        const workspaceConfigHash = computeWorkspaceConfigHash(projects);
+        // when workspace config changes we cannot incrementally update project file map
+        if (workspaceConfigHash !== storedWorkspaceConfigHash) {
+            storedWorkspaceConfigHash = workspaceConfigHash;
+            ({ ...exports.fileMapWithFiles } = await (0, retrieve_workspace_files_1.retrieveWorkspaceFiles)(workspace_root_1.workspaceRoot, projectRootMap));
+            knownExternalNodes = externalNodes;
+        }
+        else {
+            if (exports.fileMapWithFiles) {
+                exports.fileMapWithFiles = (0, file_map_utils_1.updateFileMap)(projects, exports.fileMapWithFiles.rustReferences, updatedFileHashes, deletedFiles);
+            }
+            else {
+                exports.fileMapWithFiles = await (0, retrieve_workspace_files_1.retrieveWorkspaceFiles)(workspace_root_1.workspaceRoot, projectRootMap);
+            }
         }
+        collectedUpdatedFiles.clear();
+        collectedDeletedFiles.clear();
+    }
+    catch (e) {
+        // this is expected
+        // for instance, project.json can be incorrect or a file we are trying to has
+        // has been deleted
+        // we are resetting internal state to start from scratch next time a file changes
+        // given the user the opportunity to fix the error
+        // if Nx requests the project graph prior to the error being fixed,
+        // the error will be propagated
+        logger_1.serverLogger.log(`Error detected when recomputing project file map: ${e.message}`);
+        resetInternalState();
+        throw e;
     }
-    catch { }
-}
-async function writeDaemonJsonProcessCache(daemonJson) {
-    await (0, fs_extra_1.writeJson)(exports.serverProcessJsonPath, daemonJson);
 }
-async function safelyCleanUpExistingProcess() {
-    const daemonProcessJson = await readDaemonProcessJsonCache();
-    if (daemonProcessJson && daemonProcessJson.processId) {
+async function processFilesAndCreateAndSerializeProjectGraph(plugins) {
+    try {
+        perf_hooks_1.performance.mark('hash-watched-changes-start');
+        const updatedFiles = [...collectedUpdatedFiles.values()];
+        const deletedFiles = [...collectedDeletedFiles.values()];
+        let updatedFileHashes = (0, workspace_context_1.updateFilesInContext)(workspace_root_1.workspaceRoot, updatedFiles, deletedFiles);
+        perf_hooks_1.performance.mark('hash-watched-changes-end');
+        perf_hooks_1.performance.measure('hash changed files from watcher', 'hash-watched-changes-start', 'hash-watched-changes-end');
+        logger_1.serverLogger.requestLog(`Updated workspace context based on watched changes, recomputing project graph...`);
+        logger_1.serverLogger.requestLog([...updatedFiles.values()]);
+        logger_1.serverLogger.requestLog([...deletedFiles]);
+        const nxJson = (0, nx_json_1.readNxJson)(workspace_root_1.workspaceRoot);
+        global.NX_GRAPH_CREATION = true;
+        let projectConfigurationsResult;
+        let projectConfigurationsError;
         try {
-            process.kill(daemonProcessJson.processId);
-            // we wait for the process to actually shut down before returning
-            await new Promise((resolve, reject) => {
-                let count = 0;
-                const interval = setInterval(() => {
-                    try {
-                        // sending a signal 0 to a process checks if the process is running instead of actually killing it
-                        process.kill(daemonProcessJson.processId, 0);
-                    }
-                    catch (e) {
-                        clearInterval(interval);
-                        resolve();
-                    }
-                    if ((count += 1) > 200) {
-                        clearInterval(interval);
-                        reject(`Daemon process ${daemonProcessJson.processId} didn't exit after 2 seconds.`);
-                    }
-                }, 10);
-            });
+            projectConfigurationsResult = await (0, retrieve_workspace_files_1.retrieveProjectConfigurations)(plugins, workspace_root_1.workspaceRoot, nxJson);
         }
-        catch { }
+        catch (e) {
+            if (e instanceof error_types_1.ProjectConfigurationsError) {
+                projectConfigurationsResult = e.partialProjectConfigurationsResult;
+                projectConfigurationsError = e;
+            }
+            else {
+                throw e;
+            }
+        }
+        await processCollectedUpdatedAndDeletedFiles(projectConfigurationsResult, updatedFileHashes, deletedFiles);
+        const g = await createAndSerializeProjectGraph(projectConfigurationsResult);
+        delete global.NX_GRAPH_CREATION;
+        const errors = [...(projectConfigurationsError?.errors ?? [])];
+        if (g.error) {
+            if ((0, error_types_1.isAggregateProjectGraphError)(g.error) && g.error.errors?.length) {
+                errors.push(...g.error.errors);
+            }
+            else {
+                return {
+                    error: g.error,
+                    projectGraph: null,
+                    projectFileMapCache: null,
+                    fileMap: null,
+                    rustReferences: null,
+                    allWorkspaceFiles: null,
+                    serializedProjectGraph: null,
+                    serializedSourceMaps: null,
+                };
+            }
+        }
+        if (errors.length > 0) {
+            return {
+                error: new error_types_1.DaemonProjectGraphError(errors, g.projectGraph, projectConfigurationsResult.sourceMaps),
+                projectGraph: null,
+                projectFileMapCache: null,
+                fileMap: null,
+                rustReferences: null,
+                allWorkspaceFiles: null,
+                serializedProjectGraph: null,
+                serializedSourceMaps: null,
+            };
+        }
+        else {
+            (0, nx_deps_cache_1.writeCache)(g.projectFileMapCache, g.projectGraph);
+            return g;
+        }
+    }
+    catch (err) {
+        return {
+            error: err,
+            projectGraph: null,
+            projectFileMapCache: null,
+            fileMap: null,
+            rustReferences: null,
+            allWorkspaceFiles: null,
+            serializedProjectGraph: null,
+            serializedSourceMaps: null,
+        };
+    }
+}
+function copyFileData(d) {
+    return d.map((t) => ({ ...t }));
+}
+function copyFileMap(m) {
+    const c = {
+        nonProjectFiles: copyFileData(m.nonProjectFiles),
+        projectFileMap: {},
+    };
+    for (let p of Object.keys(m.projectFileMap)) {
+        c.projectFileMap[p] = copyFileData(m.projectFileMap[p]);
+    }
+    return c;
+}
+async function createAndSerializeProjectGraph({ projects, sourceMaps, }) {
+    try {
+        perf_hooks_1.performance.mark('create-project-graph-start');
+        const fileMap = copyFileMap(exports.fileMapWithFiles.fileMap);
+        const allWorkspaceFiles = copyFileData(exports.fileMapWithFiles.allWorkspaceFiles);
+        const rustReferences = exports.fileMapWithFiles.rustReferences;
+        const { projectGraph, projectFileMapCache } = await (0, build_project_graph_1.buildProjectGraphUsingProjectFileMap)(projects, knownExternalNodes, fileMap, allWorkspaceFiles, rustReferences, exports.currentProjectFileMapCache || (0, nx_deps_cache_1.readFileMapCache)(), await (0, plugins_1.getPlugins)(), sourceMaps);
+        exports.currentProjectFileMapCache = projectFileMapCache;
+        exports.currentProjectGraph = projectGraph;
+        perf_hooks_1.performance.mark('create-project-graph-end');
+        perf_hooks_1.performance.measure('total execution time for createProjectGraph()', 'create-project-graph-start', 'create-project-graph-end');
+        perf_hooks_1.performance.mark('json-stringify-start');
+        const serializedProjectGraph = JSON.stringify(projectGraph);
+        const serializedSourceMaps = JSON.stringify(sourceMaps);
+        perf_hooks_1.performance.mark('json-stringify-end');
+        perf_hooks_1.performance.measure('serialize graph', 'json-stringify-start', 'json-stringify-end');
+        return {
+            error: null,
+            projectGraph,
+            projectFileMapCache,
+            fileMap,
+            allWorkspaceFiles,
+            serializedProjectGraph,
+            serializedSourceMaps,
+            rustReferences,
+        };
+    }
+    catch (e) {
+        logger_1.serverLogger.log(`Error detected when creating a project graph: ${e.message}`);
+        return {
+            error: e,
+            projectGraph: null,
+            projectFileMapCache: null,
+            fileMap: null,
+            allWorkspaceFiles: null,
+            serializedProjectGraph: null,
+            serializedSourceMaps: null,
+            rustReferences: null,
+        };
     }
-    deleteDaemonJsonProcessCache();
 }
-// Must be sync for the help output use case
-function getDaemonProcessIdSync() {
-    if (!(0, fs_extra_1.existsSync)(exports.serverProcessJsonPath)) {
-        return null;
-    }
+async function resetInternalState() {
+    cachedSerializedProjectGraphPromise = undefined;
+    exports.fileMapWithFiles = undefined;
+    exports.currentProjectFileMapCache = undefined;
+    exports.currentProjectGraph = undefined;
+    collectedUpdatedFiles.clear();
+    collectedDeletedFiles.clear();
+    (0, workspace_context_1.resetWorkspaceContext)();
+    waitPeriod = 100;
+}
+async function resetInternalStateIfNxDepsMissing() {
     try {
-        const daemonProcessJson = (0, fs_extra_1.readJsonSync)(exports.serverProcessJsonPath);
-        return daemonProcessJson.processId;
+        if (!(0, fileutils_1.fileExists)(nx_deps_cache_1.nxProjectGraph) && cachedSerializedProjectGraphPromise) {
+            await resetInternalState();
+        }
     }
-    catch {
-        return null;
+    catch (e) {
+        await resetInternalState();
+    }
+}
+function notifyProjectGraphRecomputationListeners(projectGraph) {
+    for (const listener of projectGraphRecomputationListeners) {
+        listener(projectGraph);
     }
 }
 
 
 /***/ }),
 
-/***/ 76940:
+/***/ 85309:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.daemonClient = exports.DaemonClient = void 0;
-exports.isDaemonEnabled = isDaemonEnabled;
-const workspace_root_1 = __nccwpck_require__(64393);
-const child_process_1 = __nccwpck_require__(32081);
+exports.openSockets = void 0;
+exports.handleResult = handleResult;
+exports.startServer = startServer;
 const fs_1 = __nccwpck_require__(57147);
-const promises_1 = __nccwpck_require__(73292);
-const fs_extra_1 = __nccwpck_require__(2103);
 const net_1 = __nccwpck_require__(41808);
 const path_1 = __nccwpck_require__(71017);
 const perf_hooks_1 = __nccwpck_require__(4074);
-const output_1 = __nccwpck_require__(21862);
-const socket_utils_1 = __nccwpck_require__(58935);
-const tmp_dir_1 = __nccwpck_require__(71524);
-const is_ci_1 = __nccwpck_require__(48590);
-const nx_json_1 = __nccwpck_require__(21173);
-const configuration_1 = __nccwpck_require__(34333);
-const promised_based_queue_1 = __nccwpck_require__(25340);
-const daemon_socket_messenger_1 = __nccwpck_require__(81629);
-const cache_1 = __nccwpck_require__(70800);
-const error_types_1 = __nccwpck_require__(54403);
+const file_hasher_1 = __nccwpck_require__(19482);
 const native_1 = __nccwpck_require__(71926);
+const consume_messages_from_socket_1 = __nccwpck_require__(66696);
+const fileutils_1 = __nccwpck_require__(40910);
+const versions_1 = __nccwpck_require__(10780);
+const workspace_context_1 = __nccwpck_require__(98897);
+const workspace_root_1 = __nccwpck_require__(64393);
+const cache_1 = __nccwpck_require__(70800);
+const socket_utils_1 = __nccwpck_require__(58935);
+const file_watcher_sockets_1 = __nccwpck_require__(56159);
+const handle_hash_tasks_1 = __nccwpck_require__(99270);
+const handle_outputs_tracking_1 = __nccwpck_require__(15405);
+const handle_process_in_background_1 = __nccwpck_require__(5928);
+const handle_request_project_graph_1 = __nccwpck_require__(77135);
+const handle_request_shutdown_1 = __nccwpck_require__(42836);
+const logger_1 = __nccwpck_require__(89715);
+const outputs_tracking_1 = __nccwpck_require__(60839);
+const project_graph_incremental_recomputation_1 = __nccwpck_require__(96952);
+const shutdown_utils_1 = __nccwpck_require__(45347);
+const watcher_1 = __nccwpck_require__(52010);
+const handle_glob_1 = __nccwpck_require__(22069);
+const glob_1 = __nccwpck_require__(87295);
 const get_nx_workspace_files_1 = __nccwpck_require__(27333);
+const handle_nx_workspace_files_1 = __nccwpck_require__(71686);
 const get_context_file_data_1 = __nccwpck_require__(50356);
+const handle_context_file_data_1 = __nccwpck_require__(59957);
 const get_files_in_directory_1 = __nccwpck_require__(52095);
+const handle_get_files_in_directory_1 = __nccwpck_require__(63873);
 const hash_glob_1 = __nccwpck_require__(26613);
-const DAEMON_ENV_SETTINGS = {
-    NX_PROJECT_GLOB_CACHE: 'false',
-    NX_CACHE_PROJECTS_CONFIG: 'false',
-};
-var DaemonStatus;
-(function (DaemonStatus) {
-    DaemonStatus[DaemonStatus["CONNECTING"] = 0] = "CONNECTING";
-    DaemonStatus[DaemonStatus["DISCONNECTED"] = 1] = "DISCONNECTED";
-    DaemonStatus[DaemonStatus["CONNECTED"] = 2] = "CONNECTED";
-})(DaemonStatus || (DaemonStatus = {}));
-class DaemonClient {
-    constructor() {
-        this._daemonStatus = DaemonStatus.DISCONNECTED;
-        this._waitForDaemonReady = null;
-        this._daemonReady = null;
-        this._out = null;
-        this._err = null;
-        try {
-            this.nxJson = (0, configuration_1.readNxJson)();
-        }
-        catch (e) {
-            this.nxJson = null;
-        }
-        this.reset();
+const handle_hash_glob_1 = __nccwpck_require__(75631);
+const task_history_1 = __nccwpck_require__(39901);
+const handle_get_task_history_1 = __nccwpck_require__(61494);
+const handle_write_task_runs_to_history_1 = __nccwpck_require__(8340);
+const force_shutdown_1 = __nccwpck_require__(36438);
+const handle_force_shutdown_1 = __nccwpck_require__(71375);
+const get_sync_generator_changes_1 = __nccwpck_require__(72396);
+const handle_get_sync_generator_changes_1 = __nccwpck_require__(83909);
+const sync_generators_1 = __nccwpck_require__(75498);
+const get_registered_sync_generators_1 = __nccwpck_require__(41015);
+const handle_get_registered_sync_generators_1 = __nccwpck_require__(1991);
+const update_workspace_context_1 = __nccwpck_require__(51579);
+const handle_update_workspace_context_1 = __nccwpck_require__(76914);
+const flush_sync_generator_changes_to_disk_1 = __nccwpck_require__(31082);
+const handle_flush_sync_generator_changes_to_disk_1 = __nccwpck_require__(8397);
+let performanceObserver;
+let workspaceWatcherError;
+let outputsWatcherError;
+global.NX_DAEMON = true;
+let numberOfOpenConnections = 0;
+exports.openSockets = new Set();
+const server = (0, net_1.createServer)(async (socket) => {
+    numberOfOpenConnections += 1;
+    exports.openSockets.add(socket);
+    logger_1.serverLogger.log(`Established a connection. Number of open connections: ${numberOfOpenConnections}`);
+    (0, shutdown_utils_1.resetInactivityTimeout)(handleInactivityTimeout);
+    if (!performanceObserver) {
+        performanceObserver = new perf_hooks_1.PerformanceObserver((list) => {
+            const entry = list.getEntries()[0];
+            logger_1.serverLogger.log(`Time taken for '${entry.name}'`, `${entry.duration}ms`);
+        });
+        performanceObserver.observe({ entryTypes: ['measure'] });
     }
-    enabled() {
-        if (this._enabled === undefined) {
-            // TODO(v19): Add migration to move it out of existing configs and remove the ?? here.
-            const useDaemonProcessOption = this.nxJson?.useDaemonProcess ??
-                this.nxJson?.tasksRunnerOptions?.['default']?.options?.useDaemonProcess;
-            const env = process.env.NX_DAEMON;
-            // env takes precedence
-            // option=true,env=false => no daemon
-            // option=false,env=undefined => no daemon
-            // option=false,env=false => no daemon
-            // option=undefined,env=undefined => daemon
-            // option=true,env=true => daemon
-            // option=false,env=true => daemon
-            // CI=true,env=undefined => no daemon
-            // CI=true,env=false => no daemon
-            // CI=true,env=true => daemon
-            // WASM => no daemon because file watching does not work
-            if (((0, is_ci_1.isCI)() && env !== 'true') ||
-                isDocker() ||
-                (0, tmp_dir_1.isDaemonDisabled)() ||
-                nxJsonIsNotPresent() ||
-                (useDaemonProcessOption === undefined && env === 'false') ||
-                (useDaemonProcessOption === true && env === 'false') ||
-                (useDaemonProcessOption === false && env === undefined) ||
-                (useDaemonProcessOption === false && env === 'false')) {
-                this._enabled = false;
-            }
-            else if (native_1.IS_WASM) {
-                output_1.output.warn({
-                    title: 'The Nx Daemon is unsupported in WebAssembly environments. Some things may be slower than or not function as expected.',
-                });
-                this._enabled = false;
-            }
-            else {
-                this._enabled = true;
-            }
-        }
-        return this._enabled;
+    socket.on('data', (0, consume_messages_from_socket_1.consumeMessagesFromSocket)(async (message) => {
+        await handleMessage(socket, message);
+    }));
+    socket.on('error', (e) => {
+        logger_1.serverLogger.log('Socket error');
+        console.error(e);
+    });
+    socket.on('close', () => {
+        numberOfOpenConnections -= 1;
+        exports.openSockets.delete(socket);
+        logger_1.serverLogger.log(`Closed a connection. Number of open connections: ${numberOfOpenConnections}`);
+        (0, file_watcher_sockets_1.removeRegisteredFileWatcherSocket)(socket);
+    });
+});
+registerProcessTerminationListeners();
+async function handleMessage(socket, data) {
+    if (workspaceWatcherError) {
+        await (0, shutdown_utils_1.respondWithErrorAndExit)(socket, `File watcher error in the workspace '${workspace_root_1.workspaceRoot}'.`, workspaceWatcherError);
+    }
+    const outdated = daemonIsOutdated();
+    if (outdated) {
+        await (0, shutdown_utils_1.respondWithErrorAndExit)(socket, `Daemon outdated`, new Error(outdated));
+    }
+    (0, shutdown_utils_1.resetInactivityTimeout)(handleInactivityTimeout);
+    const unparsedPayload = data;
+    let payload;
+    try {
+        payload = JSON.parse(unparsedPayload);
     }
-    reset() {
-        this.socketMessenger?.close();
-        this.socketMessenger = null;
-        this.queue = new promised_based_queue_1.PromisedBasedQueue();
-        this.currentMessage = null;
-        this.currentResolve = null;
-        this.currentReject = null;
-        this._enabled = undefined;
-        this._out?.close();
-        this._err?.close();
-        this._out = null;
-        this._err = null;
-        this._daemonStatus = DaemonStatus.DISCONNECTED;
-        this._waitForDaemonReady = new Promise((resolve) => (this._daemonReady = resolve));
+    catch (e) {
+        await (0, shutdown_utils_1.respondWithErrorAndExit)(socket, `Invalid payload from the client`, new Error(`Unsupported payload sent to daemon server: ${unparsedPayload}`));
     }
-    async requestShutdown() {
-        return this.sendToDaemonViaQueue({ type: 'REQUEST_SHUTDOWN' });
+    if (payload.type === 'PING') {
+        await handleResult(socket, 'PING', () => Promise.resolve({ response: JSON.stringify(true), description: 'ping' }));
     }
-    async getProjectGraphAndSourceMaps() {
-        try {
-            const response = await this.sendToDaemonViaQueue({
-                type: 'REQUEST_PROJECT_GRAPH',
-            });
-            return {
-                projectGraph: response.projectGraph,
-                sourceMaps: response.sourceMaps,
-            };
-        }
-        catch (e) {
-            if (e.name === error_types_1.DaemonProjectGraphError.name) {
-                throw error_types_1.ProjectGraphError.fromDaemonProjectGraphError(e);
-            }
-            else {
-                throw e;
-            }
-        }
+    else if (payload.type === 'REQUEST_PROJECT_GRAPH') {
+        await handleResult(socket, 'REQUEST_PROJECT_GRAPH', () => (0, handle_request_project_graph_1.handleRequestProjectGraph)());
     }
-    async getAllFileData() {
-        return await this.sendToDaemonViaQueue({ type: 'REQUEST_FILE_DATA' });
+    else if (payload.type === 'HASH_TASKS') {
+        await handleResult(socket, 'HASH_TASKS', () => (0, handle_hash_tasks_1.handleHashTasks)(payload));
     }
-    hashTasks(runnerOptions, tasks, taskGraph, env) {
-        return this.sendToDaemonViaQueue({
-            type: 'HASH_TASKS',
-            runnerOptions,
-            env,
-            tasks,
-            taskGraph,
-        });
+    else if (payload.type === 'PROCESS_IN_BACKGROUND') {
+        await handleResult(socket, 'PROCESS_IN_BACKGROUND', () => (0, handle_process_in_background_1.handleProcessInBackground)(payload));
     }
-    async registerFileWatcher(config, callback) {
-        try {
-            await this.getProjectGraphAndSourceMaps();
-        }
-        catch (e) {
-            if (config.allowPartialGraph && e instanceof error_types_1.ProjectGraphError) {
-                // we are fine with partial graph
-            }
-            else {
-                throw e;
-            }
-        }
-        let messenger;
-        await this.queue.sendToQueue(() => {
-            messenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)((0, socket_utils_1.getFullOsSocketPath)())).listen((message) => {
-                try {
-                    const parsedMessage = JSON.parse(message);
-                    callback(null, parsedMessage);
-                }
-                catch (e) {
-                    callback(e, null);
-                }
-            }, () => {
-                callback('closed', null);
-            }, (err) => callback(err, null));
-            return messenger.sendMessage({ type: 'REGISTER_FILE_WATCHER', config });
-        });
-        return () => {
-            messenger?.close();
-        };
+    else if (payload.type === 'RECORD_OUTPUTS_HASH') {
+        await handleResult(socket, 'RECORD_OUTPUTS_HASH', () => (0, handle_outputs_tracking_1.handleRecordOutputsHash)(payload));
     }
-    processInBackground(requirePath, data) {
-        return this.sendToDaemonViaQueue({
-            type: 'PROCESS_IN_BACKGROUND',
-            requirePath,
-            data,
-        });
+    else if (payload.type === 'OUTPUTS_HASHES_MATCH') {
+        await handleResult(socket, 'OUTPUTS_HASHES_MATCH', () => (0, handle_outputs_tracking_1.handleOutputsHashesMatch)(payload));
     }
-    recordOutputsHash(outputs, hash) {
-        return this.sendToDaemonViaQueue({
-            type: 'RECORD_OUTPUTS_HASH',
-            data: {
-                outputs,
-                hash,
-            },
-        });
+    else if (payload.type === 'REQUEST_SHUTDOWN') {
+        await handleResult(socket, 'REQUEST_SHUTDOWN', () => (0, handle_request_shutdown_1.handleRequestShutdown)(server, numberOfOpenConnections));
     }
-    outputsHashesMatch(outputs, hash) {
-        return this.sendToDaemonViaQueue({
-            type: 'OUTPUTS_HASHES_MATCH',
-            data: {
-                outputs,
-                hash,
-            },
-        });
+    else if (payload.type === 'REGISTER_FILE_WATCHER') {
+        file_watcher_sockets_1.registeredFileWatcherSockets.push({ socket, config: payload.config });
     }
-    glob(globs, exclude) {
-        const message = {
-            type: 'GLOB',
-            globs,
-            exclude,
-        };
-        return this.sendToDaemonViaQueue(message);
+    else if ((0, glob_1.isHandleGlobMessage)(payload)) {
+        await handleResult(socket, glob_1.GLOB, () => (0, handle_glob_1.handleGlob)(payload.globs, payload.exclude));
     }
-    getWorkspaceContextFileData() {
-        const message = {
-            type: get_context_file_data_1.GET_CONTEXT_FILE_DATA,
-        };
-        return this.sendToDaemonViaQueue(message);
+    else if ((0, get_nx_workspace_files_1.isHandleNxWorkspaceFilesMessage)(payload)) {
+        await handleResult(socket, get_nx_workspace_files_1.GET_NX_WORKSPACE_FILES, () => (0, handle_nx_workspace_files_1.handleNxWorkspaceFiles)(payload.projectRootMap));
     }
-    getWorkspaceFiles(projectRootMap) {
-        const message = {
-            type: get_nx_workspace_files_1.GET_NX_WORKSPACE_FILES,
-            projectRootMap,
-        };
-        return this.sendToDaemonViaQueue(message);
+    else if ((0, get_files_in_directory_1.isHandleGetFilesInDirectoryMessage)(payload)) {
+        await handleResult(socket, get_files_in_directory_1.GET_FILES_IN_DIRECTORY, () => (0, handle_get_files_in_directory_1.handleGetFilesInDirectory)(payload.dir));
     }
-    getFilesInDirectory(dir) {
-        const message = {
-            type: get_files_in_directory_1.GET_FILES_IN_DIRECTORY,
-            dir,
-        };
-        return this.sendToDaemonViaQueue(message);
+    else if ((0, get_context_file_data_1.isHandleContextFileDataMessage)(payload)) {
+        await handleResult(socket, get_context_file_data_1.GET_CONTEXT_FILE_DATA, () => (0, handle_context_file_data_1.handleContextFileData)());
     }
-    hashGlob(globs, exclude) {
-        const message = {
-            type: hash_glob_1.HASH_GLOB,
-            globs,
-            exclude,
-        };
-        return this.sendToDaemonViaQueue(message);
+    else if ((0, hash_glob_1.isHandleHashGlobMessage)(payload)) {
+        await handleResult(socket, hash_glob_1.HASH_GLOB, () => (0, handle_hash_glob_1.handleHashGlob)(payload.globs, payload.exclude));
     }
-    getTaskHistoryForHashes(hashes) {
-        const message = {
-            type: 'GET_TASK_HISTORY_FOR_HASHES',
-            hashes,
-        };
-        return this.sendToDaemonViaQueue(message);
+    else if ((0, task_history_1.isHandleGetTaskHistoryForHashesMessage)(payload)) {
+        await handleResult(socket, 'GET_TASK_HISTORY_FOR_HASHES', () => (0, handle_get_task_history_1.handleGetTaskHistoryForHashes)(payload.hashes));
     }
-    writeTaskRunsToHistory(taskRuns) {
-        const message = {
-            type: 'WRITE_TASK_RUNS_TO_HISTORY',
-            taskRuns,
-        };
-        return this.sendMessageToDaemon(message);
+    else if ((0, task_history_1.isHandleWriteTaskRunsToHistoryMessage)(payload)) {
+        await handleResult(socket, 'WRITE_TASK_RUNS_TO_HISTORY', () => (0, handle_write_task_runs_to_history_1.handleWriteTaskRunsToHistory)(payload.taskRuns));
     }
-    async isServerAvailable() {
-        return new Promise((resolve) => {
-            try {
-                const socket = (0, net_1.connect)((0, socket_utils_1.getFullOsSocketPath)(), () => {
-                    socket.destroy();
-                    resolve(true);
-                });
-                socket.once('error', () => {
-                    resolve(false);
-                });
-            }
-            catch (err) {
-                resolve(false);
-            }
-        });
+    else if ((0, force_shutdown_1.isHandleForceShutdownMessage)(payload)) {
+        await handleResult(socket, 'FORCE_SHUTDOWN', () => (0, handle_force_shutdown_1.handleForceShutdown)(server));
     }
-    async sendToDaemonViaQueue(messageToDaemon) {
-        return this.queue.sendToQueue(() => this.sendMessageToDaemon(messageToDaemon));
+    else if ((0, get_sync_generator_changes_1.isHandleGetSyncGeneratorChangesMessage)(payload)) {
+        await handleResult(socket, get_sync_generator_changes_1.GET_SYNC_GENERATOR_CHANGES, () => (0, handle_get_sync_generator_changes_1.handleGetSyncGeneratorChanges)(payload.generators));
     }
-    setUpConnection() {
-        this.socketMessenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)((0, socket_utils_1.getFullOsSocketPath)())).listen((message) => this.handleMessage(message), () => {
-            // it's ok for the daemon to terminate if the client doesn't wait on
-            // any messages from the daemon
-            if (this.queue.isEmpty()) {
-                this.reset();
-            }
-            else {
-                output_1.output.error({
-                    title: 'Daemon process terminated and closed the connection',
-                    bodyLines: [
-                        'Please rerun the command, which will restart the daemon.',
-                        `If you get this error again, check for any errors in the daemon process logs found in: ${tmp_dir_1.DAEMON_OUTPUT_LOG_FILE}`,
-                    ],
-                });
-                this._daemonStatus = DaemonStatus.DISCONNECTED;
-                this.currentReject?.(daemonProcessException('Daemon process terminated and closed the connection'));
-                process.exit(1);
-            }
-        }, (err) => {
-            if (!err.message) {
-                return this.currentReject(daemonProcessException(err.toString()));
-            }
-            if (err.message.startsWith('LOCK-FILES-CHANGED')) {
-                // retry the current message
-                // we cannot send it via the queue because we are in the middle of processing
-                // a message from the queue
-                return this.sendMessageToDaemon(this.currentMessage).then(this.currentResolve, this.currentReject);
-            }
-            let error;
-            if (err.message.startsWith('connect ENOENT')) {
-                error = daemonProcessException('The Daemon Server is not running');
-            }
-            else if (err.message.startsWith('connect ECONNREFUSED')) {
-                error = daemonProcessException(`A server instance had not been fully shut down. Please try running the command again.`);
-                (0, socket_utils_1.killSocketOrPath)();
-            }
-            else if (err.message.startsWith('read ECONNRESET')) {
-                error = daemonProcessException(`Unable to connect to the daemon process.`);
-            }
-            else {
-                error = daemonProcessException(err.toString());
-            }
-            return this.currentReject(error);
-        });
+    else if ((0, flush_sync_generator_changes_to_disk_1.isHandleFlushSyncGeneratorChangesToDiskMessage)(payload)) {
+        await handleResult(socket, flush_sync_generator_changes_to_disk_1.FLUSH_SYNC_GENERATOR_CHANGES_TO_DISK, () => (0, handle_flush_sync_generator_changes_to_disk_1.handleFlushSyncGeneratorChangesToDisk)(payload.generators));
     }
-    async sendMessageToDaemon(message) {
-        if (this._daemonStatus == DaemonStatus.DISCONNECTED) {
-            this._daemonStatus = DaemonStatus.CONNECTING;
-            if (!(await this.isServerAvailable())) {
-                await this.startInBackground();
-            }
-            this.setUpConnection();
-            this._daemonStatus = DaemonStatus.CONNECTED;
-            this._daemonReady();
-        }
-        else if (this._daemonStatus == DaemonStatus.CONNECTING) {
-            await this._waitForDaemonReady;
-        }
-        return new Promise((resolve, reject) => {
-            perf_hooks_1.performance.mark('sendMessageToDaemon-start');
-            this.currentMessage = message;
-            this.currentResolve = resolve;
-            this.currentReject = reject;
-            this.socketMessenger.sendMessage(message);
-        });
+    else if ((0, get_registered_sync_generators_1.isHandleGetRegisteredSyncGeneratorsMessage)(payload)) {
+        await handleResult(socket, get_registered_sync_generators_1.GET_REGISTERED_SYNC_GENERATORS, () => (0, handle_get_registered_sync_generators_1.handleGetRegisteredSyncGenerators)());
     }
-    handleMessage(serializedResult) {
-        try {
-            perf_hooks_1.performance.mark('json-parse-start');
-            const parsedResult = JSON.parse(serializedResult);
-            perf_hooks_1.performance.mark('json-parse-end');
-            perf_hooks_1.performance.measure('deserialize daemon response', 'json-parse-start', 'json-parse-end');
-            if (parsedResult.error) {
-                this.currentReject(parsedResult.error);
-            }
-            else {
-                perf_hooks_1.performance.measure('total for sendMessageToDaemon()', 'sendMessageToDaemon-start', 'json-parse-end');
-                return this.currentResolve(parsedResult);
-            }
-        }
-        catch (e) {
-            const endOfResponse = serializedResult.length > 300
-                ? serializedResult.substring(serializedResult.length - 300)
-                : serializedResult;
-            this.currentReject(daemonProcessException([
-                'Could not deserialize response from Nx daemon.',
-                `Message: ${e.message}`,
-                '\n',
-                `Received:`,
-                endOfResponse,
-                '\n',
-            ].join('\n')));
-        }
+    else if ((0, update_workspace_context_1.isHandleUpdateWorkspaceContextMessage)(payload)) {
+        await handleResult(socket, update_workspace_context_1.UPDATE_WORKSPACE_CONTEXT, () => (0, handle_update_workspace_context_1.handleUpdateWorkspaceContext)(payload.createdFiles, payload.updatedFiles, payload.deletedFiles));
     }
-    async startInBackground() {
-        (0, fs_extra_1.ensureDirSync)(tmp_dir_1.DAEMON_DIR_FOR_CURRENT_WORKSPACE);
-        (0, fs_extra_1.ensureFileSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE);
-        this._out = await (0, promises_1.open)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE, 'a');
-        this._err = await (0, promises_1.open)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE, 'a');
-        const backgroundProcess = (0, child_process_1.spawn)(process.execPath, [(0, path_1.join)(__dirname, `../server/start.js`)], {
-            cwd: workspace_root_1.workspaceRoot,
-            stdio: ['ignore', this._out.fd, this._err.fd],
-            detached: true,
-            windowsHide: true,
-            shell: false,
-            env: {
-                ...process.env,
-                ...DAEMON_ENV_SETTINGS,
-            },
-        });
-        backgroundProcess.unref();
-        /**
-         * Ensure the server is actually available to connect to via IPC before resolving
-         */
-        let attempts = 0;
-        return new Promise((resolve, reject) => {
-            const id = setInterval(async () => {
-                if (await this.isServerAvailable()) {
-                    clearInterval(id);
-                    resolve(backgroundProcess.pid);
-                }
-                else if (attempts > 6000) {
-                    // daemon fails to start, the process probably exited
-                    // we print the logs and exit the client
-                    reject(daemonProcessException('Failed to start or connect to the Nx Daemon process.'));
-                }
-                else {
-                    attempts++;
-                }
-            }, 10);
+    else {
+        await (0, shutdown_utils_1.respondWithErrorAndExit)(socket, `Invalid payload from the client`, new Error(`Unsupported payload sent to daemon server: ${unparsedPayload}`));
+    }
+}
+async function handleResult(socket, type, hrFn) {
+    const startMark = new Date();
+    const hr = await hrFn();
+    const doneHandlingMark = new Date();
+    if (hr.error) {
+        await (0, shutdown_utils_1.respondWithErrorAndExit)(socket, hr.description, hr.error);
+    }
+    else {
+        await (0, shutdown_utils_1.respondToClient)(socket, hr.response, hr.description);
+    }
+    const endMark = new Date();
+    logger_1.serverLogger.log(`Handled ${type}. Handling time: ${doneHandlingMark.getTime() - startMark.getTime()}. Response time: ${endMark.getTime() - doneHandlingMark.getTime()}.`);
+}
+function handleInactivityTimeout() {
+    if (numberOfOpenConnections > 0) {
+        logger_1.serverLogger.log(`There are ${numberOfOpenConnections} open connections. Reset inactivity timer.`);
+        (0, shutdown_utils_1.resetInactivityTimeout)(handleInactivityTimeout);
+    }
+    else {
+        (0, shutdown_utils_1.handleServerProcessTermination)({
+            server,
+            reason: `${shutdown_utils_1.SERVER_INACTIVITY_TIMEOUT_MS}ms of inactivity`,
+            sockets: exports.openSockets,
         });
     }
-    async stop() {
-        try {
-            await (0, cache_1.safelyCleanUpExistingProcess)();
-        }
-        catch (err) {
-            output_1.output.error({
-                title: err?.message ||
-                    'Something unexpected went wrong when stopping the server',
-            });
-        }
-        (0, tmp_dir_1.removeSocketDir)();
+}
+function registerProcessTerminationListeners() {
+    process
+        .on('SIGINT', () => (0, shutdown_utils_1.handleServerProcessTermination)({
+        server,
+        reason: 'received process SIGINT',
+        sockets: exports.openSockets,
+    }))
+        .on('SIGTERM', () => (0, shutdown_utils_1.handleServerProcessTermination)({
+        server,
+        reason: 'received process SIGTERM',
+        sockets: exports.openSockets,
+    }))
+        .on('SIGHUP', () => (0, shutdown_utils_1.handleServerProcessTermination)({
+        server,
+        reason: 'received process SIGHUP',
+        sockets: exports.openSockets,
+    }));
+}
+let existingLockHash;
+function daemonIsOutdated() {
+    if (nxVersionChanged()) {
+        return 'NX_VERSION_CHANGED';
+    }
+    else if (lockFileHashChanged()) {
+        return 'LOCK_FILES_CHANGED';
     }
+    return null;
 }
-exports.DaemonClient = DaemonClient;
-exports.daemonClient = new DaemonClient();
-function isDaemonEnabled() {
-    return exports.daemonClient.enabled();
+function nxVersionChanged() {
+    return versions_1.nxVersion !== getInstalledNxVersion();
 }
-function isDocker() {
+const nxPackageJsonPath = __nccwpck_require__.ab + "package.json";
+function getInstalledNxVersion() {
     try {
-        (0, fs_1.statSync)('/.dockerenv');
+        const { version } = (0, fileutils_1.readJsonFile)(__nccwpck_require__.ab + "package.json");
+        return version;
+    }
+    catch (e) {
+        // node modules are absent, so we can return null, which would shut down the daemon
+        return null;
+    }
+}
+function lockFileHashChanged() {
+    const lockHashes = [
+        (0, path_1.join)(workspace_root_1.workspaceRoot, 'package-lock.json'),
+        (0, path_1.join)(workspace_root_1.workspaceRoot, 'yarn.lock'),
+        (0, path_1.join)(workspace_root_1.workspaceRoot, 'pnpm-lock.yaml'),
+        (0, path_1.join)(workspace_root_1.workspaceRoot, 'bun.lockb'),
+    ]
+        .filter((file) => (0, fs_1.existsSync)(file))
+        .map((file) => (0, native_1.hashFile)(file));
+    const newHash = (0, file_hasher_1.hashArray)(lockHashes);
+    if (existingLockHash && newHash != existingLockHash) {
+        existingLockHash = newHash;
         return true;
     }
-    catch {
-        try {
-            return (0, fs_1.readFileSync)('/proc/self/cgroup', 'utf8')?.includes('docker');
-        }
-        catch { }
+    else {
+        existingLockHash = newHash;
         return false;
     }
 }
-function nxJsonIsNotPresent() {
-    return !(0, nx_json_1.hasNxJson)(workspace_root_1.workspaceRoot);
-}
-function daemonProcessException(message) {
+/**
+ * When applicable files in the workspaces are changed (created, updated, deleted),
+ * we need to recompute the cached serialized project graph so that it is readily
+ * available for the next client request to the server.
+ */
+const handleWorkspaceChanges = async (err, changeEvents) => {
+    if (workspaceWatcherError) {
+        logger_1.serverLogger.watcherLog('Skipping handleWorkspaceChanges because of a previously recorded watcher error.');
+        return;
+    }
     try {
-        let log = (0, fs_1.readFileSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE).toString().split('\n');
-        if (log.length > 20) {
-            log = log.slice(log.length - 20);
+        (0, shutdown_utils_1.resetInactivityTimeout)(handleInactivityTimeout);
+        const outdatedReason = daemonIsOutdated();
+        if (outdatedReason) {
+            await (0, shutdown_utils_1.handleServerProcessTermination)({
+                server,
+                reason: outdatedReason,
+                sockets: exports.openSockets,
+            });
+            return;
         }
-        const error = new Error([
-            message,
-            '',
-            'Messages from the log:',
-            ...log,
-            '\n',
-            `More information: ${tmp_dir_1.DAEMON_OUTPUT_LOG_FILE}`,
-        ].join('\n'));
-        error.internalDaemonError = true;
-        return error;
+        if (err) {
+            let error = typeof err === 'string' ? new Error(err) : err;
+            logger_1.serverLogger.watcherLog('Unexpected workspace watcher error', error.message);
+            console.error(error);
+            workspaceWatcherError = error;
+            return;
+        }
+        logger_1.serverLogger.watcherLog((0, watcher_1.convertChangeEventsToLogMessage)(changeEvents));
+        const updatedFilesToHash = [];
+        const createdFilesToHash = [];
+        const deletedFiles = [];
+        for (const event of changeEvents) {
+            if (event.type === 'delete') {
+                deletedFiles.push(event.path);
+            }
+            else {
+                try {
+                    const s = (0, fs_1.statSync)((0, path_1.join)(workspace_root_1.workspaceRoot, event.path));
+                    if (s.isFile()) {
+                        if (event.type === 'update') {
+                            updatedFilesToHash.push(event.path);
+                        }
+                        else {
+                            createdFilesToHash.push(event.path);
+                        }
+                    }
+                }
+                catch (e) {
+                    // this can happen when the update file was deleted right after
+                }
+            }
+        }
+        (0, project_graph_incremental_recomputation_1.addUpdatedAndDeletedFiles)(createdFilesToHash, updatedFilesToHash, deletedFiles);
     }
-    catch (e) {
-        return new Error(message);
+    catch (err) {
+        logger_1.serverLogger.watcherLog(`Unexpected workspace error`, err.message);
+        console.error(err);
+        workspaceWatcherError = err;
+    }
+};
+const handleOutputsChanges = async (err, changeEvents) => {
+    try {
+        if (err || !changeEvents || !changeEvents.length) {
+            let error = typeof err === 'string' ? new Error(err) : err;
+            logger_1.serverLogger.watcherLog('Unexpected outputs watcher error', error.message);
+            console.error(error);
+            outputsWatcherError = error;
+            (0, outputs_tracking_1.disableOutputsTracking)();
+            return;
+        }
+        if (outputsWatcherError) {
+            return;
+        }
+        logger_1.serverLogger.watcherLog('Processing file changes in outputs');
+        (0, outputs_tracking_1.processFileChangesInOutputs)(changeEvents);
+    }
+    catch (err) {
+        logger_1.serverLogger.watcherLog(`Unexpected outputs watcher error`, err.message);
+        console.error(err);
+        outputsWatcherError = err;
+        (0, outputs_tracking_1.disableOutputsTracking)();
+    }
+};
+async function startServer() {
+    (0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
+    // Persist metadata about the background process so that it can be cleaned up later if needed
+    await (0, cache_1.writeDaemonJsonProcessCache)({
+        processId: process.pid,
+    });
+    // See notes in socket-command-line-utils.ts on OS differences regarding clean up of existings connections.
+    if (!socket_utils_1.isWindows) {
+        (0, socket_utils_1.killSocketOrPath)();
     }
+    return new Promise(async (resolve, reject) => {
+        try {
+            server.listen((0, socket_utils_1.getFullOsSocketPath)(), async () => {
+                try {
+                    logger_1.serverLogger.log(`Started listening on: ${(0, socket_utils_1.getFullOsSocketPath)()}`);
+                    // this triggers the storage of the lock file hash
+                    daemonIsOutdated();
+                    if (!(0, shutdown_utils_1.getWatcherInstance)()) {
+                        (0, shutdown_utils_1.storeWatcherInstance)(await (0, watcher_1.watchWorkspace)(server, handleWorkspaceChanges));
+                        logger_1.serverLogger.watcherLog(`Subscribed to changes within: ${workspace_root_1.workspaceRoot} (native)`);
+                    }
+                    if (!(0, shutdown_utils_1.getOutputWatcherInstance)()) {
+                        (0, shutdown_utils_1.storeOutputWatcherInstance)(await (0, watcher_1.watchOutputFiles)(handleOutputsChanges));
+                    }
+                    // listen for project graph recomputation events to collect and schedule sync generators
+                    (0, project_graph_incremental_recomputation_1.registerProjectGraphRecomputationListener)(sync_generators_1.collectAndScheduleSyncGenerators);
+                    // trigger an initial project graph recomputation
+                    (0, project_graph_incremental_recomputation_1.addUpdatedAndDeletedFiles)([], [], []);
+                    return resolve(server);
+                }
+                catch (err) {
+                    await handleWorkspaceChanges(err, []);
+                }
+            });
+        }
+        catch (err) {
+            reject(err);
+        }
+    });
 }
 
 
 /***/ }),
 
-/***/ 81629:
+/***/ 45347:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.DaemonSocketMessenger = void 0;
-const consume_messages_from_socket_1 = __nccwpck_require__(66696);
-class DaemonSocketMessenger {
-    constructor(socket) {
-        this.socket = socket;
-    }
-    async sendMessage(messageToDaemon) {
-        this.socket.write(JSON.stringify(messageToDaemon));
-        // send EOT to indicate that the message has been fully written
-        this.socket.write(String.fromCodePoint(4));
+exports.SERVER_INACTIVITY_TIMEOUT_MS = void 0;
+exports.storeWatcherInstance = storeWatcherInstance;
+exports.getWatcherInstance = getWatcherInstance;
+exports.storeOutputWatcherInstance = storeOutputWatcherInstance;
+exports.getOutputWatcherInstance = getOutputWatcherInstance;
+exports.handleServerProcessTermination = handleServerProcessTermination;
+exports.resetInactivityTimeout = resetInactivityTimeout;
+exports.respondToClient = respondToClient;
+exports.respondWithErrorAndExit = respondWithErrorAndExit;
+const workspace_root_1 = __nccwpck_require__(64393);
+const logger_1 = __nccwpck_require__(89715);
+const socket_utils_1 = __nccwpck_require__(58935);
+const cache_1 = __nccwpck_require__(70800);
+const plugins_1 = __nccwpck_require__(17611);
+const error_types_1 = __nccwpck_require__(54403);
+exports.SERVER_INACTIVITY_TIMEOUT_MS = 10800000; // 10800000 ms = 3 hours
+let watcherInstance;
+function storeWatcherInstance(instance) {
+    watcherInstance = instance;
+}
+function getWatcherInstance() {
+    return watcherInstance;
+}
+let outputWatcherInstance;
+function storeOutputWatcherInstance(instance) {
+    outputWatcherInstance = instance;
+}
+function getOutputWatcherInstance() {
+    return outputWatcherInstance;
+}
+async function handleServerProcessTermination({ server, reason, sockets, }) {
+    try {
+        await new Promise((res) => {
+            server.close(() => {
+                res(null);
+            });
+            for (const socket of sockets) {
+                socket.destroy();
+            }
+        });
+        if (watcherInstance) {
+            await watcherInstance.stop();
+            logger_1.serverLogger.watcherLog(`Stopping the watcher for ${workspace_root_1.workspaceRoot} (sources)`);
+        }
+        if (outputWatcherInstance) {
+            await outputWatcherInstance.stop();
+            logger_1.serverLogger.watcherLog(`Stopping the watcher for ${workspace_root_1.workspaceRoot} (outputs)`);
+        }
+        (0, cache_1.deleteDaemonJsonProcessCache)();
+        (0, plugins_1.cleanupPlugins)();
+        logger_1.serverLogger.log(`Server stopped because: "${reason}"`);
     }
-    listen(onData, onClose = () => { }, onError = (err) => { }) {
-        this.socket.on('data', (0, consume_messages_from_socket_1.consumeMessagesFromSocket)(async (message) => {
-            onData(message);
-        }));
-        this.socket.on('close', onClose);
-        this.socket.on('error', onError);
-        return this;
+    finally {
+        process.exit(0);
     }
-    close() {
-        this.socket.destroy();
+}
+let serverInactivityTimerId;
+function resetInactivityTimeout(cb) {
+    if (serverInactivityTimerId) {
+        clearTimeout(serverInactivityTimerId);
     }
+    serverInactivityTimerId = setTimeout(cb, exports.SERVER_INACTIVITY_TIMEOUT_MS);
 }
-exports.DaemonSocketMessenger = DaemonSocketMessenger;
-
-
-/***/ }),
-
-/***/ 45153:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.isOnDaemon = isOnDaemon;
-function isOnDaemon() {
-    return !!global.NX_DAEMON;
+function respondToClient(socket, response, description) {
+    return new Promise(async (res) => {
+        if (description) {
+            logger_1.serverLogger.requestLog(`Responding to the client.`, description);
+        }
+        socket.write(`${response}${String.fromCodePoint(4)}`, (err) => {
+            if (err) {
+                console.error(err);
+            }
+            logger_1.serverLogger.log(`Done responding to the client`, description);
+            res(null);
+        });
+    });
 }
-
-
-/***/ }),
-
-/***/ 50356:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.GET_CONTEXT_FILE_DATA = void 0;
-exports.isHandleContextFileDataMessage = isHandleContextFileDataMessage;
-exports.GET_CONTEXT_FILE_DATA = 'GET_CONTEXT_FILE_DATA';
-function isHandleContextFileDataMessage(message) {
-    return (typeof message === 'object' &&
-        message !== null &&
-        'type' in message &&
-        message['type'] === exports.GET_CONTEXT_FILE_DATA);
+async function respondWithErrorAndExit(socket, description, error) {
+    const normalizedError = error instanceof error_types_1.DaemonProjectGraphError
+        ? error_types_1.ProjectGraphError.fromDaemonProjectGraphError(error)
+        : error;
+    // print some extra stuff in the error message
+    logger_1.serverLogger.requestLog(`Responding to the client with an error.`, description, normalizedError.message);
+    console.error(normalizedError.stack);
+    // Respond with the original error
+    await respondToClient(socket, (0, socket_utils_1.serializeResult)(error, null, null), null);
 }
 
 
 /***/ }),
 
-/***/ 52095:
-/***/ ((__unused_webpack_module, exports) => {
+/***/ 75498:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.GET_FILES_IN_DIRECTORY = void 0;
-exports.isHandleGetFilesInDirectoryMessage = isHandleGetFilesInDirectoryMessage;
-exports.GET_FILES_IN_DIRECTORY = 'GET_FILES_IN_DIRECTORY';
-function isHandleGetFilesInDirectoryMessage(message) {
-    return (typeof message === 'object' &&
-        message !== null &&
-        'type' in message &&
-        message['type'] === exports.GET_FILES_IN_DIRECTORY);
+exports.getCachedSyncGeneratorChanges = getCachedSyncGeneratorChanges;
+exports.flushSyncGeneratorChangesToDisk = flushSyncGeneratorChangesToDisk;
+exports.collectAndScheduleSyncGenerators = collectAndScheduleSyncGenerators;
+exports.getCachedRegisteredSyncGenerators = getCachedRegisteredSyncGenerators;
+const nx_json_1 = __nccwpck_require__(21173);
+const tree_1 = __nccwpck_require__(10818);
+const file_hasher_1 = __nccwpck_require__(19482);
+const project_graph_1 = __nccwpck_require__(54913);
+const sync_generators_1 = __nccwpck_require__(98299);
+const workspace_root_1 = __nccwpck_require__(64393);
+const logger_1 = __nccwpck_require__(89715);
+const project_graph_incremental_recomputation_1 = __nccwpck_require__(96952);
+const syncGeneratorsCacheResultPromises = new Map();
+let registeredTaskSyncGenerators = new Set();
+let registeredGlobalSyncGenerators = new Set();
+const scheduledGenerators = new Set();
+let waitPeriod = 100;
+let registeredSyncGenerators;
+let scheduledTimeoutId;
+let storedProjectGraphHash;
+let storedNxJsonHash;
+const log = (...messageParts) => {
+    logger_1.serverLogger.log('[SYNC]:', ...messageParts);
+};
+// TODO(leo): check conflicts and reuse the Tree where possible
+async function getCachedSyncGeneratorChanges(generators) {
+    try {
+        log('get sync generators changes on demand', generators);
+        // this is invoked imperatively, so we clear any scheduled run
+        if (scheduledTimeoutId) {
+            log('clearing scheduled run');
+            clearTimeout(scheduledTimeoutId);
+            scheduledTimeoutId = undefined;
+        }
+        // reset the wait time
+        waitPeriod = 100;
+        let projects;
+        let errored = false;
+        const getProjectsConfigurations = async () => {
+            if (projects || errored) {
+                return projects;
+            }
+            const { projectGraph, error } = await (0, project_graph_incremental_recomputation_1.getCachedSerializedProjectGraphPromise)();
+            projects = projectGraph
+                ? (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(projectGraph).projects
+                : null;
+            errored = error !== undefined;
+            return projects;
+        };
+        return (await Promise.all(generators.map(async (generator) => {
+            if (scheduledGenerators.has(generator) ||
+                !syncGeneratorsCacheResultPromises.has(generator)) {
+                // it's scheduled to run (there are pending changes to process) or
+                // it's not scheduled and there's no cached result, so run it
+                const projects = await getProjectsConfigurations();
+                if (projects) {
+                    log(generator, 'already scheduled or not cached, running it now');
+                    runGenerator(generator, projects);
+                }
+                else {
+                    log(generator, 'already scheduled or not cached, project graph errored');
+                    /**
+                     * This should never happen. This is invoked imperatively, and by
+                     * the time it is invoked, the project graph would have already
+                     * been requested. If it errored, it would have been reported and
+                     * this wouldn't have been invoked. We handle it just in case.
+                     *
+                     * Since the project graph would be reported by the relevant
+                     * handlers separately, we just ignore the error, don't cache
+                     * any result and return an empty result, the next time this is
+                     * invoked the process will repeat until it eventually recovers
+                     * when the project graph is fixed.
+                     */
+                    return Promise.resolve({ changes: [], generatorName: generator });
+                }
+            }
+            else {
+                log(generator, 'not scheduled and has cached result, returning cached result');
+            }
+            return syncGeneratorsCacheResultPromises.get(generator);
+        }))).flat();
+    }
+    catch (e) {
+        console.error(e);
+        syncGeneratorsCacheResultPromises.clear();
+        return [];
+    }
 }
-
-
-/***/ }),
-
-/***/ 27333:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.GET_NX_WORKSPACE_FILES = void 0;
-exports.isHandleNxWorkspaceFilesMessage = isHandleNxWorkspaceFilesMessage;
-exports.GET_NX_WORKSPACE_FILES = 'GET_NX_WORKSPACE_FILES';
-function isHandleNxWorkspaceFilesMessage(message) {
-    return (typeof message === 'object' &&
-        message !== null &&
-        'type' in message &&
-        message['type'] === exports.GET_NX_WORKSPACE_FILES);
+async function flushSyncGeneratorChangesToDisk(generators) {
+    log('flush sync generators changes', generators);
+    const results = await getCachedSyncGeneratorChanges(generators);
+    for (const generator of generators) {
+        syncGeneratorsCacheResultPromises.delete(generator);
+    }
+    await (0, sync_generators_1.flushSyncGeneratorChanges)(results);
+}
+function collectAndScheduleSyncGenerators(projectGraph) {
+    if (!projectGraph) {
+        // If the project graph is not available, we can't collect and schedule
+        // sync generators. The project graph error will be reported separately.
+        return;
+    }
+    log('collect registered sync generators');
+    collectAllRegisteredSyncGenerators(projectGraph);
+    // a change imply we need to re-run all the generators
+    // make sure to schedule all the collected generators
+    scheduledGenerators.clear();
+    for (const generator of registeredSyncGenerators) {
+        scheduledGenerators.add(generator);
+    }
+    log('scheduling:', [...scheduledGenerators]);
+    if (scheduledTimeoutId) {
+        // we have a scheduled run already, so we don't need to do anything
+        return;
+    }
+    scheduledTimeoutId = setTimeout(async () => {
+        scheduledTimeoutId = undefined;
+        if (waitPeriod < 4000) {
+            waitPeriod = waitPeriod * 2;
+        }
+        if (scheduledGenerators.size === 0) {
+            // no generators to run
+            return;
+        }
+        const { projects } = (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(projectGraph);
+        for (const generator of scheduledGenerators) {
+            runGenerator(generator, projects);
+        }
+        await Promise.all(syncGeneratorsCacheResultPromises.values());
+    }, waitPeriod);
+}
+async function getCachedRegisteredSyncGenerators() {
+    log('get registered sync generators');
+    if (!registeredSyncGenerators) {
+        log('no registered sync generators, collecting them');
+        const { projectGraph } = await (0, project_graph_incremental_recomputation_1.getCachedSerializedProjectGraphPromise)();
+        collectAllRegisteredSyncGenerators(projectGraph);
+    }
+    else {
+        log('registered sync generators already collected, returning them');
+    }
+    return [...registeredSyncGenerators];
+}
+function collectAllRegisteredSyncGenerators(projectGraph) {
+    const projectGraphHash = hashProjectGraph(projectGraph);
+    if (storedProjectGraphHash !== projectGraphHash) {
+        storedProjectGraphHash = projectGraphHash;
+        registeredTaskSyncGenerators =
+            (0, sync_generators_1.collectRegisteredTaskSyncGenerators)(projectGraph);
+    }
+    else {
+        log('project graph hash is the same, not collecting task sync generators');
+    }
+    const nxJson = (0, nx_json_1.readNxJson)();
+    const nxJsonHash = (0, file_hasher_1.hashArray)(nxJson.sync?.globalGenerators?.sort() ?? []);
+    if (storedNxJsonHash !== nxJsonHash) {
+        storedNxJsonHash = nxJsonHash;
+        registeredGlobalSyncGenerators =
+            (0, sync_generators_1.collectRegisteredGlobalSyncGenerators)(nxJson);
+    }
+    else {
+        log('nx.json hash is the same, not collecting global sync generators');
+    }
+    const generators = new Set([
+        ...registeredTaskSyncGenerators,
+        ...registeredGlobalSyncGenerators,
+    ]);
+    if (!registeredSyncGenerators) {
+        registeredSyncGenerators = generators;
+        return;
+    }
+    for (const generator of registeredSyncGenerators) {
+        if (!generators.has(generator)) {
+            registeredSyncGenerators.delete(generator);
+            syncGeneratorsCacheResultPromises.delete(generator);
+        }
+    }
+    for (const generator of generators) {
+        if (!registeredSyncGenerators.has(generator)) {
+            registeredSyncGenerators.add(generator);
+        }
+    }
+}
+function runGenerator(generator, projects) {
+    log('running scheduled generator', generator);
+    // remove it from the scheduled set
+    scheduledGenerators.delete(generator);
+    const tree = new tree_1.FsTree(workspace_root_1.workspaceRoot, false, `running sync generator ${generator}`);
+    // run the generator and cache the result
+    syncGeneratorsCacheResultPromises.set(generator, (0, sync_generators_1.runSyncGenerator)(tree, generator, projects).then((result) => {
+        log(generator, 'changes:', result.changes.map((c) => c.path).join(', '));
+        return result;
+    }));
+}
+function hashProjectGraph(projectGraph) {
+    const stringifiedProjects = Object.entries(projectGraph.nodes)
+        .sort(([projectNameA], [projectNameB]) => projectNameA.localeCompare(projectNameB))
+        .map(([projectName, projectConfig]) => `${projectName}:${JSON.stringify(projectConfig)}`);
+    return (0, file_hasher_1.hashArray)(stringifiedProjects);
 }
 
 
 /***/ }),
 
-/***/ 26613:
-/***/ ((__unused_webpack_module, exports) => {
+/***/ 52010:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.HASH_GLOB = void 0;
-exports.isHandleHashGlobMessage = isHandleHashGlobMessage;
-exports.HASH_GLOB = 'HASH_GLOB';
-function isHandleHashGlobMessage(message) {
-    return (typeof message === 'object' &&
-        message !== null &&
-        'type' in message &&
-        message['type'] === exports.HASH_GLOB);
+exports.watchWorkspace = watchWorkspace;
+exports.watchOutputFiles = watchOutputFiles;
+exports.convertChangeEventsToLogMessage = convertChangeEventsToLogMessage;
+const workspace_root_1 = __nccwpck_require__(64393);
+const path_1 = __nccwpck_require__(71017);
+const socket_utils_1 = __nccwpck_require__(58935);
+const shutdown_utils_1 = __nccwpck_require__(45347);
+const path_2 = __nccwpck_require__(41559);
+const ignore_1 = __nccwpck_require__(22810);
+const cache_1 = __nccwpck_require__(70800);
+const server_1 = __nccwpck_require__(85309);
+const ALWAYS_IGNORE = [
+    ...(0, ignore_1.getAlwaysIgnore)(workspace_root_1.workspaceRoot),
+    (0, socket_utils_1.getFullOsSocketPath)(),
+];
+async function watchWorkspace(server, cb) {
+    const { Watcher } = await Promise.resolve().then(() => __nccwpck_require__(71926));
+    let relativeServerProcess = (0, path_2.normalizePath)((0, path_1.relative)(workspace_root_1.workspaceRoot, cache_1.serverProcessJsonPath));
+    let watcher = new Watcher(workspace_root_1.workspaceRoot, [`!${relativeServerProcess}`]);
+    watcher.watch((err, events) => {
+        if (err) {
+            return cb(err, null);
+        }
+        for (const event of events) {
+            if (event.path == relativeServerProcess &&
+                (0, cache_1.getDaemonProcessIdSync)() !== process.pid) {
+                (0, shutdown_utils_1.handleServerProcessTermination)({
+                    server,
+                    reason: 'this process is no longer the current daemon (native)',
+                    sockets: server_1.openSockets,
+                });
+            }
+            if (event.path.endsWith('.gitignore') || event.path === '.nxignore') {
+                // If the ignore files themselves have changed we need to dynamically update our cached ignoreGlobs
+                (0, shutdown_utils_1.handleServerProcessTermination)({
+                    server,
+                    reason: 'Stopping the daemon the set of ignored files changed (native)',
+                    sockets: server_1.openSockets,
+                });
+            }
+        }
+        cb(null, events);
+    });
+    return watcher;
+}
+async function watchOutputFiles(cb) {
+    const { Watcher } = await Promise.resolve().then(() => __nccwpck_require__(71926));
+    let watcher = new Watcher(workspace_root_1.workspaceRoot, null, false);
+    watcher.watch((err, events) => {
+        if (err) {
+            return cb(err, null);
+        }
+        if (events.length !== 0) {
+            cb(null, events);
+        }
+    });
+    return watcher;
+}
+/**
+ * NOTE: An event type of "create" will also apply to the case where the user has restored
+ * an original version of a file after modifying/deleting it by using git, so we adjust
+ * our log language accordingly.
+ */
+function convertChangeEventsToLogMessage(changeEvents) {
+    // If only a single file was changed, show the information inline
+    if (changeEvents.length === 1) {
+        const { path, type } = changeEvents[0];
+        let typeLog = 'updated';
+        switch (type) {
+            case 'create':
+                typeLog = 'created or restored';
+                break;
+            case 'update':
+                typeLog = 'modified';
+                break;
+            case 'delete':
+                typeLog = 'deleted';
+                break;
+        }
+        return `${path} was ${typeLog}`;
+    }
+    let numCreatedOrRestoredFiles = 0;
+    let numModifiedFiles = 0;
+    let numDeletedFiles = 0;
+    for (const event of changeEvents) {
+        switch (event.type) {
+            case 'create':
+                numCreatedOrRestoredFiles++;
+                break;
+            case 'update':
+                numModifiedFiles++;
+                break;
+            case 'delete':
+                numDeletedFiles++;
+                break;
+        }
+    }
+    return `${numCreatedOrRestoredFiles} file(s) created or restored, ${numModifiedFiles} file(s) modified, ${numDeletedFiles} file(s) deleted`;
 }
 
 
@@ -283877,20 +297071,33 @@ exports.isWindows = (0, os_1.platform)() === 'win32';
  * See https://nodejs.org/dist/latest-v14.x/docs/api/net.html#net_identifying_paths_for_ipc_connections for a full breakdown
  * of OS differences between Unix domain sockets and named pipes.
  */
-const getFullOsSocketPath = () => exports.isWindows
-    ? '\\\\.\\pipe\\nx\\' + (0, path_1.resolve)((0, tmp_dir_1.getDaemonSocketDir)())
-    : (0, path_1.resolve)((0, tmp_dir_1.getDaemonSocketDir)());
+const getFullOsSocketPath = () => {
+    const path = (0, path_1.resolve)((0, tmp_dir_1.getDaemonSocketDir)());
+    assertValidSocketPath(path);
+    return exports.isWindows ? '\\\\.\\pipe\\nx\\' + path : path;
+};
 exports.getFullOsSocketPath = getFullOsSocketPath;
 const getForkedProcessOsSocketPath = (id) => {
     let path = (0, path_1.resolve)((0, path_1.join)((0, tmp_dir_1.getSocketDir)(), 'fp' + id + '.sock'));
-    return exports.isWindows ? '\\\\.\\pipe\\nx\\' + (0, path_1.resolve)(path) : (0, path_1.resolve)(path);
+    assertValidSocketPath(path);
+    return exports.isWindows ? '\\\\.\\pipe\\nx\\' + path : path;
 };
 exports.getForkedProcessOsSocketPath = getForkedProcessOsSocketPath;
 const getPluginOsSocketPath = (id) => {
-    let path = (0, path_1.resolve)((0, path_1.join)((0, tmp_dir_1.getSocketDir)(), 'plugin' + id + '.sock'));
-    return exports.isWindows ? '\\\\.\\pipe\\nx\\' + (0, path_1.resolve)(path) : (0, path_1.resolve)(path);
+    let path = (0, path_1.resolve)((0, path_1.join)((0, tmp_dir_1.getSocketDir)(true), 'plugin' + id + '.sock'));
+    assertValidSocketPath(path);
+    return exports.isWindows ? '\\\\.\\pipe\\nx\\' + path : path;
 };
 exports.getPluginOsSocketPath = getPluginOsSocketPath;
+function assertValidSocketPath(path) {
+    if (path.length > 95) {
+        throw new Error([
+            'Attempted to open socket that exceeds the maximum socket length.',
+            '',
+            `Set NX_SOCKET_DIR to a shorter path (e.g. ${exports.isWindows ? '%TMP%/nx-tmp' : '/tmp/nx-tmp'}) to avoid this issue.`,
+        ].join('\n'));
+    }
+}
 function killSocketOrPath() {
     try {
         (0, fs_1.unlinkSync)((0, exports.getFullOsSocketPath)());
@@ -283963,9 +297170,11 @@ function socketDirName() {
  * We try to create a socket file in a tmp dir, but if it doesn't work because
  * for instance we don't have permissions, we create it in DAEMON_DIR_FOR_CURRENT_WORKSPACE
  */
-function getSocketDir() {
+function getSocketDir(alreadyUnique = false) {
     try {
-        const dir = process.env.NX_DAEMON_SOCKET_DIR ?? socketDirName();
+        const dir = process.env.NX_SOCKET_DIR ??
+            process.env.NX_DAEMON_SOCKET_DIR ??
+            (alreadyUnique ? tmp_1.tmpdir : socketDirName());
         (0, fs_extra_1.ensureDirSync)(dir);
         return dir;
     }
@@ -283989,7 +297198,7 @@ function removeSocketDir() {
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.interpolate = exports.registerTsProject = exports.LoadedNxPlugin = exports.retrieveProjectConfigurations = exports.findProjectForPath = exports.createProjectRootMappingsFromProjectConfigurations = exports.hashWithWorkspaceContext = exports.hashObject = exports.splitByColons = exports.readModulePackageJson = exports.stripIndent = exports.sortObjectByKeys = exports.combineOptionsForExecutor = exports.splitTarget = exports.readProjectConfigurationsFromRootMap = exports.mergeTargetConfigurations = exports.retrieveProjectConfigurationsWithAngularProjects = exports.calculateDefaultProjectName = exports.readNxJsonFromDisk = exports.getExecutorInformation = exports.createTempNpmDirectory = void 0;
+exports.interpolate = exports.registerTsProject = exports.LoadedNxPlugin = exports.retrieveProjectConfigurations = exports.findProjectForPath = exports.createProjectRootMappingsFromProjectConfigurations = exports.hashWithWorkspaceContext = exports.hashObject = exports.splitByColons = exports.readModulePackageJson = exports.stripIndent = exports.sortObjectByKeys = exports.combineOptionsForExecutor = exports.splitTarget = exports.findMatchingConfigFiles = exports.readProjectConfigurationsFromRootMap = exports.mergeTargetConfigurations = exports.retrieveProjectConfigurationsWithAngularProjects = exports.calculateDefaultProjectName = exports.readNxJsonFromDisk = exports.getExecutorInformation = exports.createTempNpmDirectory = void 0;
 const tslib_1 = __nccwpck_require__(63085);
 /**
  * Note to developers: STOP! These exports are available via requireNx in @nx/devkit.
@@ -284010,6 +297219,7 @@ var project_configuration_utils_1 = __nccwpck_require__(36818);
 Object.defineProperty(exports, "mergeTargetConfigurations", ({ enumerable: true, get: function () { return project_configuration_utils_1.mergeTargetConfigurations; } }));
 var project_configuration_utils_2 = __nccwpck_require__(36818);
 Object.defineProperty(exports, "readProjectConfigurationsFromRootMap", ({ enumerable: true, get: function () { return project_configuration_utils_2.readProjectConfigurationsFromRootMap; } }));
+Object.defineProperty(exports, "findMatchingConfigFiles", ({ enumerable: true, get: function () { return project_configuration_utils_2.findMatchingConfigFiles; } }));
 var split_target_1 = __nccwpck_require__(2792);
 Object.defineProperty(exports, "splitTarget", ({ enumerable: true, get: function () { return split_target_1.splitTarget; } }));
 var params_1 = __nccwpck_require__(55457);
@@ -284040,6 +297250,731 @@ var utils_1 = __nccwpck_require__(9478);
 Object.defineProperty(exports, "interpolate", ({ enumerable: true, get: function () { return utils_1.interpolate; } }));
 
 
+/***/ }),
+
+/***/ 10818:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.FsTree = void 0;
+exports.flushChanges = flushChanges;
+exports.printChanges = printChanges;
+const fs_extra_1 = __nccwpck_require__(2103);
+const logger_1 = __nccwpck_require__(37270);
+const output_1 = __nccwpck_require__(21862);
+const path_1 = __nccwpck_require__(71017);
+const chalk = __nccwpck_require__(78818);
+class FsTree {
+    constructor(root, isVerbose, logOperationId) {
+        this.root = root;
+        this.isVerbose = isVerbose;
+        this.logOperationId = logOperationId;
+        this.recordedChanges = {};
+        /**
+         * Signifies if operations on the tree instance
+         * are allowed. Set to false after changes are written
+         * to disk, to prevent someone trying to use the tree to update
+         * files when the tree is no longer effective.
+         */
+        this.locked = false;
+    }
+    read(filePath, encoding) {
+        filePath = this.normalize(filePath);
+        try {
+            let content;
+            if (this.recordedChanges[this.rp(filePath)]) {
+                content = this.recordedChanges[this.rp(filePath)].content;
+            }
+            else {
+                content = this.fsReadFile(filePath);
+            }
+            return encoding ? content.toString(encoding) : content;
+        }
+        catch (e) {
+            if (this.isVerbose) {
+                logger_1.logger.error(e);
+            }
+            return null;
+        }
+    }
+    write(filePath, content, options) {
+        this.assertUnlocked();
+        filePath = this.normalize(filePath);
+        // Remove any recorded changes where a parent directory has been
+        // deleted when writing a new file within the directory.
+        let parent = (0, path_1.dirname)(this.rp(filePath));
+        while (parent !== '.') {
+            if (this.recordedChanges[parent]?.isDeleted) {
+                delete this.recordedChanges[parent];
+            }
+            parent = (0, path_1.dirname)(parent);
+        }
+        if (this.fsExists(this.rp(filePath)) &&
+            Buffer.from(content).equals(this.fsReadFile(filePath))) {
+            // Remove recorded change because the file has been restored to it's original contents
+            delete this.recordedChanges[this.rp(filePath)];
+            return;
+        }
+        try {
+            this.recordedChanges[this.rp(filePath)] = {
+                content: Buffer.from(content),
+                isDeleted: false,
+                options,
+            };
+        }
+        catch (e) {
+            if (this.isVerbose) {
+                logger_1.logger.error(e);
+            }
+        }
+    }
+    overwrite(filePath, content, options) {
+        filePath = this.normalize(filePath);
+        this.write(filePath, content, options);
+    }
+    delete(filePath) {
+        this.assertUnlocked();
+        filePath = this.normalize(filePath);
+        if (this.filesForDir(this.rp(filePath)).length > 0) {
+            this.filesForDir(this.rp(filePath)).forEach((f) => (this.recordedChanges[f] = { content: null, isDeleted: true }));
+        }
+        this.recordedChanges[this.rp(filePath)] = {
+            content: null,
+            isDeleted: true,
+        };
+        // Delete directory when is not root and there are no children
+        if (filePath !== '' &&
+            this.children((0, path_1.dirname)(this.rp(filePath))).length < 1) {
+            this.delete((0, path_1.dirname)(this.rp(filePath)));
+        }
+    }
+    exists(filePath) {
+        filePath = this.normalize(filePath);
+        try {
+            if (this.recordedChanges[this.rp(filePath)]) {
+                return !this.recordedChanges[this.rp(filePath)].isDeleted;
+            }
+            else if (this.filesForDir(this.rp(filePath)).length > 0) {
+                return true;
+            }
+            else {
+                return this.fsExists(filePath);
+            }
+        }
+        catch {
+            return false;
+        }
+    }
+    rename(from, to) {
+        this.assertUnlocked();
+        from = this.normalize(from);
+        to = this.normalize(to);
+        if (from === to) {
+            return;
+        }
+        if (this.isFile(from)) {
+            const content = this.read(this.rp(from));
+            this.write(this.rp(to), content);
+            this.delete(this.rp(from));
+        }
+        else {
+            for (const child of this.children(from)) {
+                this.rename((0, path_1.join)(from, child), (0, path_1.join)(to, child));
+            }
+        }
+    }
+    isFile(filePath) {
+        filePath = this.normalize(filePath);
+        try {
+            if (this.recordedChanges[this.rp(filePath)]) {
+                return !this.recordedChanges[this.rp(filePath)].isDeleted;
+            }
+            else {
+                return this.fsIsFile(filePath);
+            }
+        }
+        catch {
+            return false;
+        }
+    }
+    children(dirPath) {
+        dirPath = this.normalize(dirPath);
+        let res = this.fsReadDir(dirPath);
+        res = [...res, ...this.directChildrenOfDir(this.rp(dirPath))];
+        res = res.filter((q) => {
+            const r = this.recordedChanges[this.normalize((0, path_1.join)(this.rp(dirPath), q))];
+            return !r?.isDeleted;
+        });
+        // Dedupe
+        return Array.from(new Set(res));
+    }
+    listChanges() {
+        const res = [];
+        Object.keys(this.recordedChanges).forEach((f) => {
+            if (this.recordedChanges[f].isDeleted) {
+                if (this.fsExists(f)) {
+                    res.push({ path: f, type: 'DELETE', content: null });
+                }
+            }
+            else {
+                if (this.fsExists(f)) {
+                    res.push({
+                        path: f,
+                        type: 'UPDATE',
+                        content: this.recordedChanges[f].content,
+                        options: this.recordedChanges[f].options,
+                    });
+                }
+                else {
+                    res.push({
+                        path: f,
+                        type: 'CREATE',
+                        content: this.recordedChanges[f].content,
+                        options: this.recordedChanges[f].options,
+                    });
+                }
+            }
+        });
+        return res;
+    }
+    changePermissions(filePath, mode) {
+        this.assertUnlocked();
+        filePath = this.normalize(filePath);
+        const filePathChangeKey = this.rp(filePath);
+        if (this.recordedChanges[filePathChangeKey]) {
+            if (this.recordedChanges[filePathChangeKey].isDeleted) {
+                throw new Error(`Cannot change permissions of deleted file ${filePath}.`);
+            }
+            this.recordedChanges[filePathChangeKey].options = { mode };
+        }
+        else if (!this.fsExists(filePath)) {
+            throw new Error(`Cannot change permissions of non-existing file ${filePath}.`);
+        }
+        else if (!this.fsIsFile(filePath)) {
+            // To fully support directories we'd need to change how we store
+            // changes to keep a record of directories so we can associate
+            // permissions to them.
+            throw new Error(`Cannot change permissions of non-file ${filePath}.`);
+        }
+        else {
+            this.recordedChanges[filePathChangeKey] = {
+                content: this.fsReadFile(filePath),
+                isDeleted: false,
+                options: { mode },
+            };
+        }
+    }
+    // Marks FsTree as final.
+    lock() {
+        this.locked = true;
+    }
+    assertUnlocked() {
+        if (this.locked) {
+            output_1.output.error({
+                title: `File changes have already been written to disk. Further changes were attempted ${this.logOperationId ? ` while running ${this.logOperationId}.` : '.'}`,
+                bodyLines: [
+                    'The file system can no longer be modified. This commonly happens when a generator attempts to make further changes in its callback, or an asynchronous operation is still running after the generator completes.',
+                ],
+            });
+            throw new Error('Tree changed after commit to disk.');
+        }
+    }
+    normalize(path) {
+        return (0, path_1.relative)(this.root, (0, path_1.join)(this.root, path)).split(path_1.sep).join('/');
+    }
+    fsReadDir(dirPath) {
+        try {
+            return (0, fs_extra_1.readdirSync)((0, path_1.join)(this.root, dirPath));
+        }
+        catch {
+            return [];
+        }
+    }
+    fsIsFile(filePath) {
+        const stat = (0, fs_extra_1.statSync)((0, path_1.join)(this.root, filePath));
+        return stat.isFile();
+    }
+    fsReadFile(filePath) {
+        return (0, fs_extra_1.readFileSync)((0, path_1.join)(this.root, filePath));
+    }
+    fsExists(filePath) {
+        try {
+            const stat = (0, fs_extra_1.statSync)((0, path_1.join)(this.root, filePath));
+            return stat.isFile() || stat.isDirectory();
+        }
+        catch {
+            return false;
+        }
+    }
+    filesForDir(path) {
+        return Object.keys(this.recordedChanges).filter((f) => f.startsWith(`${path}/`) && !this.recordedChanges[f].isDeleted);
+    }
+    directChildrenOfDir(path) {
+        const res = {};
+        if (path === '') {
+            return Object.keys(this.recordedChanges).map((file) => file.split('/')[0]);
+        }
+        Object.keys(this.recordedChanges).forEach((f) => {
+            if (f.startsWith(`${path}/`)) {
+                // Remove the current folder's path from the directory
+                const file = f.substring(path.length + 1);
+                // Split the path on segments, and take the first one
+                const basePath = file.split('/')[0];
+                // Mark it as a child of the current directory
+                res[basePath] = true;
+            }
+        });
+        return Object.keys(res);
+    }
+    rp(pp) {
+        return pp.startsWith('/') ? pp.substring(1) : pp;
+    }
+}
+exports.FsTree = FsTree;
+function flushChanges(root, fileChanges) {
+    fileChanges.forEach((f) => {
+        const fpath = (0, path_1.join)(root, f.path);
+        if (f.type === 'CREATE') {
+            (0, fs_extra_1.ensureDirSync)((0, path_1.dirname)(fpath));
+            (0, fs_extra_1.writeFileSync)(fpath, f.content);
+            if (f.options?.mode)
+                (0, fs_extra_1.chmodSync)(fpath, f.options.mode);
+        }
+        else if (f.type === 'UPDATE') {
+            (0, fs_extra_1.writeFileSync)(fpath, f.content);
+            if (f.options?.mode)
+                (0, fs_extra_1.chmodSync)(fpath, f.options.mode);
+        }
+        else if (f.type === 'DELETE') {
+            (0, fs_extra_1.removeSync)(fpath);
+        }
+    });
+}
+function printChanges(fileChanges, indent = '') {
+    fileChanges.forEach((f) => {
+        if (f.type === 'CREATE') {
+            console.log(`${indent}${chalk.green('CREATE')} ${f.path}`);
+        }
+        else if (f.type === 'UPDATE') {
+            console.log(`${indent}${chalk.white('UPDATE')} ${f.path}`);
+        }
+        else if (f.type === 'DELETE') {
+            console.log(`${indent}${chalk.yellow('DELETE')} ${f.path}`);
+        }
+    });
+}
+
+
+/***/ }),
+
+/***/ 62629:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.readJson = readJson;
+exports.writeJson = writeJson;
+exports.updateJson = updateJson;
+const json_1 = __nccwpck_require__(54324);
+/**
+ * Reads a json file, removes all comments and parses JSON.
+ *
+ * @param tree - file system tree
+ * @param path - file path
+ * @param options - Optional JSON Parse Options
+ */
+function readJson(tree, path, options) {
+    if (!tree.exists(path)) {
+        throw new Error(`Cannot find ${path}`);
+    }
+    try {
+        return (0, json_1.parseJson)(tree.read(path, 'utf-8'), options);
+    }
+    catch (e) {
+        throw new Error(`Cannot parse ${path}: ${e.message}`);
+    }
+}
+/**
+ * Writes a JSON value to the file system tree
+
+ * @param tree File system tree
+ * @param path Path of JSON file in the Tree
+ * @param value Serializable value to write
+ * @param options Optional JSON Serialize Options
+ */
+function writeJson(tree, path, value, options) {
+    const serialized = (0, json_1.serializeJson)(value, options);
+    tree.write(path, `${serialized}\n`);
+}
+/**
+ * Updates a JSON value to the file system tree
+ *
+ * @param tree File system tree
+ * @param path Path of JSON file in the Tree
+ * @param updater Function that maps the current value of a JSON document to a new value to be written to the document
+ * @param options Optional JSON Parse and Serialize Options
+ */
+function updateJson(tree, path, updater, options) {
+    const updatedValue = updater(readJson(tree, path, options));
+    writeJson(tree, path, updatedValue, options);
+}
+
+
+/***/ }),
+
+/***/ 34935:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.readNxJson = readNxJson;
+exports.updateNxJson = updateNxJson;
+const path_1 = __nccwpck_require__(71017);
+const json_1 = __nccwpck_require__(62629);
+const nx_json_1 = __nccwpck_require__(21173);
+/**
+ * Reads nx.json
+ */
+function readNxJson(tree) {
+    if (tree) {
+        if (!tree.exists('nx.json')) {
+            return null;
+        }
+        let nxJson = (0, json_1.readJson)(tree, 'nx.json');
+        if (nxJson.extends) {
+            nxJson = { ...readNxJsonExtends(tree, nxJson.extends), ...nxJson };
+        }
+        return nxJson;
+    }
+    else {
+        return (0, nx_json_1.readNxJson)();
+    }
+}
+/**
+ * Update nx.json
+ */
+function updateNxJson(tree, nxJson) {
+    if (tree.exists('nx.json')) {
+        (0, json_1.updateJson)(tree, 'nx.json', (json) => {
+            if (json.extends) {
+                const nxJsonExtends = readNxJsonExtends(tree, json.extends);
+                const changedPropsOfNxJson = {};
+                Object.keys(nxJson).forEach((prop) => {
+                    if (JSON.stringify(nxJson[prop], null, 2) !=
+                        JSON.stringify(nxJsonExtends[prop], null, 2)) {
+                        changedPropsOfNxJson[prop] = nxJson[prop];
+                    }
+                });
+                return changedPropsOfNxJson;
+            }
+            else {
+                return nxJson;
+            }
+        });
+    }
+}
+function readNxJsonExtends(tree, extendsPath) {
+    try {
+        return (0, json_1.readJson)(tree, (0, path_1.relative)(tree.root, require.resolve(extendsPath, {
+            paths: [tree.root],
+        })));
+    }
+    catch (e) {
+        throw new Error(`Unable to resolve nx.json extends. Error: ${e.message}`);
+    }
+}
+
+
+/***/ }),
+
+/***/ 24642:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.updateNxJson = exports.readNxJson = void 0;
+exports.addProjectConfiguration = addProjectConfiguration;
+exports.updateProjectConfiguration = updateProjectConfiguration;
+exports.removeProjectConfiguration = removeProjectConfiguration;
+exports.readProjectConfiguration = readProjectConfiguration;
+exports.getProjects = getProjects;
+exports.getRelativeProjectJsonSchemaPath = getRelativeProjectJsonSchemaPath;
+const minimatch_1 = __nccwpck_require__(62362);
+const path_1 = __nccwpck_require__(71017);
+const package_json_1 = __nccwpck_require__(60772);
+const project_json_1 = __nccwpck_require__(63239);
+const angular_json_1 = __nccwpck_require__(45205);
+const project_configuration_utils_1 = __nccwpck_require__(36818);
+const workspace_context_1 = __nccwpck_require__(98897);
+const output_1 = __nccwpck_require__(21862);
+const path_2 = __nccwpck_require__(41559);
+const json_1 = __nccwpck_require__(62629);
+const to_project_name_1 = __nccwpck_require__(10750);
+var nx_json_1 = __nccwpck_require__(34935);
+Object.defineProperty(exports, "readNxJson", ({ enumerable: true, get: function () { return nx_json_1.readNxJson; } }));
+Object.defineProperty(exports, "updateNxJson", ({ enumerable: true, get: function () { return nx_json_1.updateNxJson; } }));
+/**
+ * Adds project configuration to the Nx workspace.
+ *
+ * @param tree - the file system tree
+ * @param projectName - unique name. Often directories are part of the name (e.g., mydir-mylib)
+ * @param projectConfiguration - project configuration
+ * @param standalone - whether the project is configured in workspace.json or not
+ */
+function addProjectConfiguration(tree, projectName, projectConfiguration, standalone = true) {
+    const projectConfigFile = (0, path_2.joinPathFragments)(projectConfiguration.root, 'project.json');
+    if (!standalone) {
+        output_1.output.warn({
+            title: 'Nx only supports standalone projects. Setting standalone to false is ignored.',
+        });
+    }
+    if (tree.exists(projectConfigFile)) {
+        throw new Error(`Cannot create a new project ${projectName} at ${projectConfiguration.root}. A project already exists in this directory.`);
+    }
+    delete projectConfiguration.$schema;
+    handleEmptyTargets(projectName, projectConfiguration);
+    (0, json_1.writeJson)(tree, projectConfigFile, {
+        name: projectName,
+        $schema: getRelativeProjectJsonSchemaPath(tree, projectConfiguration),
+        ...projectConfiguration,
+        root: undefined,
+    });
+}
+/**
+ * Updates the configuration of an existing project.
+ *
+ * @param tree - the file system tree
+ * @param projectName - unique name. Often directories are part of the name (e.g., mydir-mylib)
+ * @param projectConfiguration - project configuration
+ */
+function updateProjectConfiguration(tree, projectName, projectConfiguration) {
+    if (tree.exists((0, path_2.joinPathFragments)(projectConfiguration.root, 'project.json'))) {
+        updateProjectConfigurationInProjectJson(tree, projectName, projectConfiguration);
+    }
+    else if (tree.exists((0, path_2.joinPathFragments)(projectConfiguration.root, 'package.json'))) {
+        updateProjectConfigurationInPackageJson(tree, projectName, projectConfiguration);
+    }
+    else {
+        throw new Error(`Cannot update Project ${projectName} at ${projectConfiguration.root}. It either doesn't exist yet, or may not use project.json for configuration. Use \`addProjectConfiguration()\` instead if you want to create a new project.`);
+    }
+}
+function updateProjectConfigurationInPackageJson(tree, projectName, projectConfiguration) {
+    const packageJsonFile = (0, path_2.joinPathFragments)(projectConfiguration.root, 'package.json');
+    const packageJson = (0, json_1.readJson)(tree, packageJsonFile);
+    if (packageJson.name === projectConfiguration.name ?? projectName) {
+        delete projectConfiguration.name;
+    }
+    if (projectConfiguration.targets &&
+        !Object.keys(projectConfiguration.targets).length) {
+        delete projectConfiguration.targets;
+    }
+    packageJson.nx = {
+        ...packageJson.nx,
+        ...projectConfiguration,
+        root: undefined,
+    };
+    (0, json_1.writeJson)(tree, packageJsonFile, packageJson);
+}
+function updateProjectConfigurationInProjectJson(tree, projectName, projectConfiguration) {
+    const projectConfigFile = (0, path_2.joinPathFragments)(projectConfiguration.root, 'project.json');
+    handleEmptyTargets(projectName, projectConfiguration);
+    (0, json_1.writeJson)(tree, projectConfigFile, {
+        name: projectConfiguration.name ?? projectName,
+        $schema: getRelativeProjectJsonSchemaPath(tree, projectConfiguration),
+        ...projectConfiguration,
+        root: undefined,
+    });
+}
+/**
+ * Removes the configuration of an existing project.
+ *
+ * @param tree - the file system tree
+ * @param projectName - unique name. Often directories are part of the name (e.g., mydir-mylib)
+ */
+function removeProjectConfiguration(tree, projectName) {
+    const projectConfiguration = readProjectConfiguration(tree, projectName);
+    if (!projectConfiguration) {
+        throw new Error(`Cannot delete Project ${projectName}`);
+    }
+    const projectConfigFile = (0, path_2.joinPathFragments)(projectConfiguration.root, 'project.json');
+    if (tree.exists(projectConfigFile)) {
+        tree.delete(projectConfigFile);
+    }
+}
+/**
+ * Reads a project configuration.
+ *
+ * @param tree - the file system tree
+ * @param projectName - unique name. Often directories are part of the name (e.g., mydir-mylib)
+ * @throws If supplied projectName cannot be found
+ */
+function readProjectConfiguration(tree, projectName) {
+    const allProjects = readAndCombineAllProjectConfigurations(tree);
+    if (!allProjects[projectName]) {
+        // temporary polyfill to make sure our generators work for existing angularcli workspaces
+        if (tree.exists('angular.json')) {
+            const angularJson = toNewFormat((0, json_1.readJson)(tree, 'angular.json'));
+            if (angularJson.projects[projectName])
+                return angularJson.projects[projectName];
+        }
+        throw new Error(`Cannot find configuration for '${projectName}'`);
+    }
+    return allProjects[projectName];
+}
+/**
+ * Get a map of all projects in a workspace.
+ *
+ * Use {@link readProjectConfiguration} if only one project is needed.
+ */
+function getProjects(tree) {
+    let allProjects = readAndCombineAllProjectConfigurations(tree);
+    // temporary polyfill to make sure our generators work for existing angularcli workspaces
+    if (tree.exists('angular.json')) {
+        const angularJson = toNewFormat((0, json_1.readJson)(tree, 'angular.json'));
+        allProjects = { ...allProjects, ...angularJson.projects };
+    }
+    return new Map(Object.keys(allProjects || {}).map((projectName) => {
+        return [projectName, allProjects[projectName]];
+    }));
+}
+function getRelativeProjectJsonSchemaPath(tree, project) {
+    return (0, path_2.normalizePath)((0, path_1.relative)((0, path_1.join)(tree.root, project.root), (0, path_1.join)(tree.root, 'node_modules/nx/schemas/project-schema.json')));
+}
+function readAndCombineAllProjectConfigurations(tree) {
+    /**
+     * We can't update projects that come from plugins anyways, so we are going
+     * to ignore them for now. Plugins should add their own add/create/update methods
+     * if they would like to use devkit to update inferred projects.
+     */
+    const patterns = [
+        '**/project.json',
+        'project.json',
+        ...(0, package_json_1.getGlobPatternsFromPackageManagerWorkspaces)(tree.root, (p) => (0, json_1.readJson)(tree, p, { expectComments: true })),
+    ];
+    const globbedFiles = (0, workspace_context_1.globWithWorkspaceContextSync)(tree.root, patterns);
+    const createdFiles = findCreatedProjectFiles(tree, patterns);
+    const deletedFiles = findDeletedProjectFiles(tree, patterns);
+    const projectFiles = [...globbedFiles, ...createdFiles].filter((r) => deletedFiles.indexOf(r) === -1);
+    const rootMap = {};
+    for (const projectFile of projectFiles) {
+        if ((0, path_1.basename)(projectFile) === 'project.json') {
+            const json = (0, json_1.readJson)(tree, projectFile);
+            const config = (0, project_json_1.buildProjectFromProjectJson)(json, projectFile);
+            (0, project_configuration_utils_1.mergeProjectConfigurationIntoRootMap)(rootMap, config, undefined, undefined, true);
+        }
+        else if ((0, path_1.basename)(projectFile) === 'package.json') {
+            const packageJson = (0, json_1.readJson)(tree, projectFile);
+            // We don't want to have all of the extra inferred stuff in here, as
+            // when generators update the project they shouldn't inline that stuff.
+            // so rather than using `buildProjectFromPackageJson` and stripping it out
+            // we are going to build the config manually.
+            const config = {
+                root: (0, path_1.dirname)(projectFile),
+                name: packageJson.name ?? (0, to_project_name_1.toProjectName)(projectFile),
+                ...packageJson.nx,
+            };
+            if (!rootMap[config.root]) {
+                (0, project_configuration_utils_1.mergeProjectConfigurationIntoRootMap)(rootMap, 
+                // Inferred targets, tags, etc don't show up when running generators
+                // This is to help avoid running into issues when trying to update the workspace
+                config, undefined, undefined, true);
+            }
+        }
+    }
+    return (0, project_configuration_utils_1.readProjectConfigurationsFromRootMap)(rootMap);
+}
+/**
+ * Used to ensure that projects created during
+ * the same devkit generator run show up when
+ * there is no project.json file, as `glob`
+ * cannot find them.
+ *
+ * We exclude the root `package.json` from this list unless
+ * considered a project during workspace generation
+ */
+function findCreatedProjectFiles(tree, globPatterns) {
+    const createdProjectFiles = [];
+    for (const change of tree.listChanges()) {
+        if (change.type === 'CREATE') {
+            const fileName = (0, path_1.basename)(change.path);
+            if (globPatterns.some((pattern) => (0, minimatch_1.minimatch)(change.path, pattern, { dot: true }))) {
+                createdProjectFiles.push(change.path);
+            }
+            else if (fileName === 'package.json') {
+                try {
+                    const contents = JSON.parse(change.content.toString());
+                    if (contents.nx) {
+                        createdProjectFiles.push(change.path);
+                    }
+                }
+                catch { }
+            }
+        }
+    }
+    return createdProjectFiles.map(path_2.normalizePath);
+}
+/**
+ * Used to ensure that projects created during
+ * the same devkit generator run show up when
+ * there is no project.json file, as `glob`
+ * cannot find them.
+ */
+function findDeletedProjectFiles(tree, globPatterns) {
+    return tree
+        .listChanges()
+        .filter((f) => {
+        return (f.type === 'DELETE' &&
+            globPatterns.some((pattern) => (0, minimatch_1.minimatch)(f.path, pattern)));
+    })
+        .map((r) => r.path);
+}
+function toNewFormat(w) {
+    const projects = {};
+    Object.keys(w.projects || {}).forEach((name) => {
+        if (typeof w.projects[name] === 'string')
+            return;
+        const projectConfig = w.projects[name];
+        if (projectConfig.architect) {
+            (0, angular_json_1.renamePropertyWithStableKeys)(projectConfig, 'architect', 'targets');
+        }
+        if (projectConfig.schematics) {
+            (0, angular_json_1.renamePropertyWithStableKeys)(projectConfig, 'schematics', 'generators');
+        }
+        Object.values(projectConfig.targets || {}).forEach((target) => {
+            if (target.builder !== undefined) {
+                (0, angular_json_1.renamePropertyWithStableKeys)(target, 'builder', 'executor');
+            }
+        });
+        projects[name] = projectConfig;
+    });
+    w.projects = projects;
+    if (w.schematics) {
+        (0, angular_json_1.renamePropertyWithStableKeys)(w, 'schematics', 'generators');
+    }
+    if (w.version !== 2) {
+        w.version = 2;
+    }
+    return w;
+}
+function handleEmptyTargets(projectName, projectConfiguration) {
+    if (projectConfiguration.targets &&
+        !Object.keys(projectConfiguration.targets).length) {
+        // Re-order `targets` to appear after the `// target` comment.
+        delete projectConfiguration.targets;
+        projectConfiguration['// targets'] = `to see all targets run: nx show project ${projectName} --web`;
+        projectConfiguration.targets = {};
+    }
+    else {
+        delete projectConfiguration['// targets'];
+    }
+}
+
+
 /***/ }),
 
 /***/ 19482:
@@ -284066,6 +298001,764 @@ function hashObject(obj) {
 }
 
 
+/***/ }),
+
+/***/ 24765:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.NativeTaskHasherImpl = void 0;
+const native_1 = __nccwpck_require__(71926);
+const transform_objects_1 = __nccwpck_require__(25188);
+const fileutils_1 = __nccwpck_require__(40910);
+const typescript_1 = __nccwpck_require__(32602);
+class NativeTaskHasherImpl {
+    constructor(workspaceRoot, nxJson, projectGraph, externals, options) {
+        this.projectGraphRef = (0, native_1.transferProjectGraph)((0, transform_objects_1.transformProjectGraphForRust)(projectGraph));
+        this.allWorkspaceFilesRef = externals.allWorkspaceFiles;
+        this.projectFileMapRef = externals.projectFiles;
+        let tsconfig = {};
+        let paths = {};
+        let rootTsConfigPath = (0, typescript_1.getRootTsConfigPath)();
+        if (rootTsConfigPath) {
+            tsconfig = (0, fileutils_1.readJsonFile)((0, typescript_1.getRootTsConfigPath)());
+            paths = tsconfig.compilerOptions?.paths ?? {};
+            if (tsconfig.compilerOptions?.paths) {
+                delete tsconfig.compilerOptions.paths;
+            }
+        }
+        this.planner = new native_1.HashPlanner(nxJson, this.projectGraphRef);
+        this.hasher = new native_1.TaskHasher(workspaceRoot, this.projectGraphRef, this.projectFileMapRef, this.allWorkspaceFilesRef, Buffer.from(JSON.stringify(tsconfig)), paths, options);
+    }
+    async hashTask(task, taskGraph, env) {
+        const plans = this.planner.getPlansReference([task.id], taskGraph);
+        const hashes = this.hasher.hashPlans(plans, env);
+        return hashes[task.id];
+    }
+    async hashTasks(tasks, taskGraph, env) {
+        const plans = this.planner.getPlansReference(tasks.map((t) => t.id), taskGraph);
+        const hashes = this.hasher.hashPlans(plans, env);
+        return tasks.map((t) => hashes[t.id]);
+    }
+}
+exports.NativeTaskHasherImpl = NativeTaskHasherImpl;
+
+
+/***/ }),
+
+/***/ 74799:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.NodeTaskHasherImpl = void 0;
+const find_project_for_path_1 = __nccwpck_require__(69621);
+const file_hasher_1 = __nccwpck_require__(19482);
+const utils_1 = __nccwpck_require__(9478);
+const workspace_root_1 = __nccwpck_require__(64393);
+const minimatch_1 = __nccwpck_require__(62362);
+const path_1 = __nccwpck_require__(71017);
+const native_1 = __nccwpck_require__(71926);
+const project_graph_utils_1 = __nccwpck_require__(84463);
+const find_matching_projects_1 = __nccwpck_require__(50630);
+const child_process_1 = __nccwpck_require__(32081);
+const task_hasher_1 = __nccwpck_require__(99816);
+const hasher_1 = __nccwpck_require__(46235);
+class NodeTaskHasherImpl {
+    constructor(nxJson, legacyRuntimeInputs, legacyFilesetInputs, projectFileMap, allWorkspaceFiles, projectGraph, options) {
+        this.nxJson = nxJson;
+        this.legacyRuntimeInputs = legacyRuntimeInputs;
+        this.legacyFilesetInputs = legacyFilesetInputs;
+        this.projectFileMap = projectFileMap;
+        this.allWorkspaceFiles = allWorkspaceFiles;
+        this.projectGraph = projectGraph;
+        this.options = options;
+        this.filesetHashes = {};
+        this.runtimeHashes = {};
+        this.externalDependencyHashes = new Map();
+        this.projectRootMappings = (0, find_project_for_path_1.createProjectRootMappings)(this.projectGraph.nodes);
+        // External Dependencies are all calculated up front in a deterministic order
+        this.calculateExternalDependencyHashes();
+    }
+    hashTasks(tasks, taskGraph, env) {
+        return Promise.all(tasks.map((t) => this.hashTask(t, taskGraph, env, [])));
+    }
+    async hashTask(task, taskGraph, env, visited = []) {
+        return Promise.resolve().then(async () => {
+            const { selfInputs, depsInputs, depsOutputs, projectInputs } = (0, task_hasher_1.getInputs)(task, this.projectGraph, this.nxJson);
+            const selfAndInputs = await this.hashSelfAndDepsInputs(task.target.project, task, selfInputs, depsInputs, depsOutputs, projectInputs, taskGraph, env, visited);
+            const target = this.hashTarget(task.target.project, task.target.target, selfInputs);
+            if (target) {
+                return this.combinePartialHashes([selfAndInputs, target]);
+            }
+            return selfAndInputs;
+        });
+    }
+    async hashNamedInputForDependencies(projectName, task, namedInput, taskGraph, env, visited) {
+        const projectNode = this.projectGraph.nodes[projectName];
+        const namedInputs = {
+            default: [{ fileset: '{projectRoot}/**/*' }],
+            ...this.nxJson.namedInputs,
+            ...projectNode.data.namedInputs,
+        };
+        const expandedInputs = (0, task_hasher_1.expandNamedInput)(namedInput, namedInputs);
+        const selfInputs = expandedInputs.filter(task_hasher_1.isSelfInput);
+        const depsOutputs = expandedInputs.filter(task_hasher_1.isDepsOutput);
+        const depsInputs = [{ input: namedInput, dependencies: true }]; // true is boolean by default
+        return this.hashSelfAndDepsInputs(projectName, task, selfInputs, depsInputs, depsOutputs, [], taskGraph, env, visited);
+    }
+    async hashSelfAndDepsInputs(projectName, task, selfInputs, depsInputs, depsOutputs, projectInputs, taskGraph, env, visited) {
+        const projectGraphDeps = this.projectGraph.dependencies[projectName] ?? [];
+        // we don't want random order of dependencies to change the hash
+        projectGraphDeps.sort((a, b) => a.target.localeCompare(b.target));
+        const self = await this.hashSingleProjectInputs(projectName, selfInputs, env);
+        const deps = await this.hashDepsInputs(task, depsInputs, projectGraphDeps, taskGraph, env, visited);
+        const depsOut = await this.hashDepsOutputs(task, depsOutputs, taskGraph);
+        const projects = await this.hashProjectInputs(projectInputs, env);
+        return this.combinePartialHashes([
+            ...self,
+            ...deps,
+            ...projects,
+            ...depsOut,
+        ]);
+    }
+    combinePartialHashes(partialHashes) {
+        if (partialHashes.length === 1) {
+            return partialHashes[0];
+        }
+        const details = {};
+        const hashValues = [];
+        for (const partial of partialHashes) {
+            hashValues.push(partial.value);
+            Object.assign(details, partial.details);
+        }
+        const value = (0, file_hasher_1.hashArray)(hashValues);
+        return { value, details };
+    }
+    async hashDepsInputs(task, inputs, projectGraphDeps, taskGraph, env, visited) {
+        return (await Promise.all(inputs.map(async (input) => {
+            return await Promise.all(projectGraphDeps.map(async (d) => {
+                if (visited.indexOf(d.target) > -1) {
+                    return null;
+                }
+                else {
+                    visited.push(d.target);
+                    if (this.projectGraph.nodes[d.target]) {
+                        return await this.hashNamedInputForDependencies(d.target, task, input.input || 'default', taskGraph, env, visited);
+                    }
+                    else {
+                        return this.getExternalDependencyHash(d.target);
+                    }
+                }
+            }));
+        })))
+            .flat()
+            .filter((r) => !!r);
+    }
+    async hashDepsOutputs(task, depsOutputs, taskGraph) {
+        if (depsOutputs.length === 0) {
+            return [];
+        }
+        const result = [];
+        for (const { dependentTasksOutputFiles, transitive } of depsOutputs) {
+            result.push(...(await this.hashDepOuputs(task, dependentTasksOutputFiles, taskGraph, transitive)));
+        }
+        return result;
+    }
+    async hashDepOuputs(task, dependentTasksOutputFiles, taskGraph, transitive) {
+        // task has no dependencies
+        if (!taskGraph.dependencies[task.id]) {
+            return [];
+        }
+        const partialHashes = [];
+        for (const d of taskGraph.dependencies[task.id]) {
+            const childTask = taskGraph.tasks[d];
+            const outputs = (0, utils_1.getOutputsForTargetAndConfiguration)(childTask.target, childTask.overrides, this.projectGraph.nodes[childTask.target.project]);
+            const { getFilesForOutputs } = __nccwpck_require__(71926);
+            const outputFiles = getFilesForOutputs(workspace_root_1.workspaceRoot, outputs);
+            const filteredFiles = outputFiles.filter((p) => p === dependentTasksOutputFiles ||
+                (0, minimatch_1.minimatch)(p, dependentTasksOutputFiles, { dot: true }));
+            const hashDetails = {};
+            const hashes = [];
+            for (const [file, hash] of this.hashFiles(filteredFiles.map((p) => (0, path_1.join)(workspace_root_1.workspaceRoot, p)))) {
+                hashes.push(hash);
+            }
+            let hash = (0, file_hasher_1.hashArray)(hashes);
+            partialHashes.push({
+                value: hash,
+                details: {
+                    [`${dependentTasksOutputFiles}:${outputs.join(',')}`]: hash,
+                },
+            });
+            if (transitive) {
+                partialHashes.push(...(await this.hashDepOuputs(childTask, dependentTasksOutputFiles, taskGraph, transitive)));
+            }
+        }
+        return partialHashes;
+    }
+    hashFiles(files) {
+        const r = new Map();
+        for (let f of files) {
+            r.set(f, (0, native_1.hashFile)(f));
+        }
+        return r;
+    }
+    getExternalDependencyHash(externalNodeName) {
+        const combinedHash = this.combinePartialHashes(this.externalDependencyHashes.get(externalNodeName));
+        // Set the combined hash into the hashes so it's not recalculated next time
+        this.externalDependencyHashes.set(externalNodeName, [combinedHash]);
+        return combinedHash;
+    }
+    hashSingleExternalDependency(externalNodeName) {
+        const node = this.projectGraph.externalNodes[externalNodeName];
+        if (node.data.hash) {
+            // we already know the hash of this dependency
+            return {
+                value: node.data.hash,
+                details: {
+                    [externalNodeName]: node.data.hash,
+                },
+            };
+        }
+        else {
+            // we take version as a hash
+            return {
+                value: node.data.version,
+                details: {
+                    [externalNodeName]: node.data.version,
+                },
+            };
+        }
+    }
+    hashExternalDependency(externalNodeName) {
+        const partialHashes = new Set();
+        partialHashes.add(this.hashSingleExternalDependency(externalNodeName));
+        const deps = (0, project_graph_utils_1.findAllProjectNodeDependencies)(externalNodeName, this.projectGraph, true);
+        for (const dep of deps) {
+            partialHashes.add(this.hashSingleExternalDependency(dep));
+        }
+        return Array.from(partialHashes);
+    }
+    hashTarget(projectName, targetName, selfInputs) {
+        const projectNode = this.projectGraph.nodes[projectName];
+        const target = projectNode.data.targets[targetName];
+        if (!target) {
+            return;
+        }
+        let hash;
+        // we can only vouch for @nx packages's executor dependencies
+        // if it's "run commands" or third-party we skip traversing since we have no info what this command depends on
+        if (target.executor.startsWith(`@nrwl/`) ||
+            target.executor.startsWith(`@nx/`)) {
+            const executorPackage = target.executor.split(':')[0];
+            const executorNodeName = this.findExternalDependencyNodeName(executorPackage);
+            // This is either a local plugin or a non-existent executor
+            if (!executorNodeName) {
+                // TODO: This should not return null if it is a local plugin's executor
+                return null;
+            }
+            return this.getExternalDependencyHash(executorNodeName);
+        }
+        else {
+            // use command external dependencies if available to construct the hash
+            const partialHashes = [];
+            let hasCommandExternalDependencies = false;
+            for (const input of selfInputs) {
+                if (input['externalDependencies']) {
+                    // if we have externalDependencies with empty array we still want to override the default hash
+                    hasCommandExternalDependencies = true;
+                    const externalDependencies = input['externalDependencies'];
+                    for (let dep of externalDependencies) {
+                        dep = this.findExternalDependencyNodeName(dep);
+                        if (!dep) {
+                            throw new Error(`The externalDependency "${dep}" for "${projectName}:${targetName}" could not be found`);
+                        }
+                        partialHashes.push(this.getExternalDependencyHash(dep));
+                    }
+                }
+            }
+            if (hasCommandExternalDependencies) {
+                return this.combinePartialHashes(partialHashes);
+            }
+            else {
+                // cache the hash of the entire external dependencies tree
+                if (this.allExternalDependenciesHash) {
+                    return this.allExternalDependenciesHash;
+                }
+                else {
+                    hash = (0, file_hasher_1.hashObject)(this.projectGraph.externalNodes);
+                    this.allExternalDependenciesHash = {
+                        value: hash,
+                        details: {
+                            AllExternalDependencies: hash,
+                        },
+                    };
+                    return this.allExternalDependenciesHash;
+                }
+            }
+        }
+    }
+    findExternalDependencyNodeName(packageName) {
+        if (this.projectGraph.externalNodes[packageName]) {
+            return packageName;
+        }
+        if (this.projectGraph.externalNodes[`npm:${packageName}`]) {
+            return `npm:${packageName}`;
+        }
+        for (const node of Object.values(this.projectGraph.externalNodes)) {
+            if (node.data.packageName === packageName) {
+                return node.name;
+            }
+        }
+        // not found
+        return null;
+    }
+    async hashSingleProjectInputs(projectName, inputs, env) {
+        const filesets = (0, task_hasher_1.extractPatternsFromFileSets)(inputs);
+        const projectFilesets = [];
+        const workspaceFilesets = [];
+        let invalidFilesetNoPrefix = null;
+        let invalidFilesetWorkspaceRootNegative = null;
+        for (let f of filesets) {
+            if (f.startsWith('{projectRoot}/') || f.startsWith('!{projectRoot}/')) {
+                projectFilesets.push(f);
+            }
+            else if (f.startsWith('{workspaceRoot}/') ||
+                f.startsWith('!{workspaceRoot}/')) {
+                workspaceFilesets.push(f);
+            }
+            else {
+                invalidFilesetNoPrefix = f;
+            }
+        }
+        if (invalidFilesetNoPrefix) {
+            throw new Error([
+                `"${invalidFilesetNoPrefix}" is an invalid fileset.`,
+                'All filesets have to start with either {workspaceRoot} or {projectRoot}.',
+                'For instance: "!{projectRoot}/**/*.spec.ts" or "{workspaceRoot}/package.json".',
+                `If "${invalidFilesetNoPrefix}" is a named input, make sure it is defined in, for instance, nx.json.`,
+            ].join('\n'));
+        }
+        if (invalidFilesetWorkspaceRootNegative) {
+            throw new Error([
+                `"${invalidFilesetWorkspaceRootNegative}" is an invalid fileset.`,
+                'It is not possible to negative filesets starting with {workspaceRoot}.',
+            ].join('\n'));
+        }
+        const notFilesets = inputs.filter((r) => !r['fileset']);
+        return Promise.all([
+            this.hashProjectFileset(projectName, projectFilesets),
+            this.hashProjectConfig(projectName),
+            this.hashTsConfig(projectName),
+            ...[
+                ...workspaceFilesets,
+                ...this.legacyFilesetInputs.map((r) => r.fileset),
+            ].map((fileset) => this.hashRootFileset(fileset)),
+            ...[...notFilesets, ...this.legacyRuntimeInputs].map((r) => r['runtime']
+                ? this.hashRuntime(env, r['runtime'])
+                : this.hashEnv(env, r['env'])),
+        ]);
+    }
+    async hashProjectInputs(projectInputs, env) {
+        const partialHashes = [];
+        for (const input of projectInputs) {
+            const projects = (0, find_matching_projects_1.findMatchingProjects)(input.projects, this.projectGraph.nodes);
+            for (const project of projects) {
+                const namedInputs = (0, task_hasher_1.getNamedInputs)(this.nxJson, this.projectGraph.nodes[project]);
+                const expandedInput = (0, task_hasher_1.expandSingleProjectInputs)([{ input: input.input }], namedInputs);
+                partialHashes.push(this.hashSingleProjectInputs(project, expandedInput, env));
+            }
+        }
+        return Promise.all(partialHashes).then((hashes) => hashes.flat());
+    }
+    async hashRootFileset(fileset) {
+        const mapKey = fileset;
+        const withoutWorkspaceRoot = fileset.substring(16);
+        if (!this.filesetHashes[mapKey]) {
+            this.filesetHashes[mapKey] = new Promise(async (res) => {
+                const parts = [];
+                const matchingFile = this.allWorkspaceFiles.find((t) => t.file === withoutWorkspaceRoot);
+                if (matchingFile) {
+                    parts.push(matchingFile.hash);
+                }
+                else {
+                    this.allWorkspaceFiles
+                        .filter((f) => (0, minimatch_1.minimatch)(f.file, withoutWorkspaceRoot))
+                        .forEach((f) => {
+                        parts.push(f.hash);
+                    });
+                }
+                const value = (0, file_hasher_1.hashArray)(parts);
+                res({
+                    value,
+                    details: { [mapKey]: value },
+                });
+            });
+        }
+        return this.filesetHashes[mapKey];
+    }
+    hashProjectConfig(projectName) {
+        const p = this.projectGraph.nodes[projectName];
+        const projectConfig = (0, file_hasher_1.hashArray)([
+            JSON.stringify({ ...p.data, files: undefined }),
+        ]);
+        return {
+            value: projectConfig,
+            details: {
+                [`${projectName}:ProjectConfiguration`]: projectConfig,
+            },
+        };
+    }
+    hashTsConfig(projectName) {
+        const p = this.projectGraph.nodes[projectName];
+        const tsConfig = (0, file_hasher_1.hashArray)([
+            (0, hasher_1.hashTsConfig)(p, this.projectRootMappings, this.options),
+        ]);
+        return {
+            value: tsConfig,
+            details: {
+                [`${projectName}:TsConfig`]: tsConfig,
+            },
+        };
+    }
+    async hashProjectFileset(projectName, filesetPatterns) {
+        const mapKey = `${projectName}:${filesetPatterns.join(',')}`;
+        if (!this.filesetHashes[mapKey]) {
+            this.filesetHashes[mapKey] = new Promise(async (res) => {
+                const p = this.projectGraph.nodes[projectName];
+                const filteredFiles = (0, task_hasher_1.filterUsingGlobPatterns)(p.data.root, this.projectFileMap[projectName] || [], filesetPatterns);
+                const files = [];
+                for (const { file, hash } of filteredFiles) {
+                    files.push(file, hash);
+                }
+                const value = (0, file_hasher_1.hashArray)(files);
+                res({
+                    value,
+                    details: { [mapKey]: value },
+                });
+            });
+        }
+        return this.filesetHashes[mapKey];
+    }
+    async hashRuntime(env, runtime) {
+        const env_key = JSON.stringify(env);
+        const mapKey = `runtime:${runtime}-${env_key}`;
+        if (!this.runtimeHashes[mapKey]) {
+            this.runtimeHashes[mapKey] = new Promise((res, rej) => {
+                (0, child_process_1.exec)(runtime, {
+                    windowsHide: true,
+                    cwd: workspace_root_1.workspaceRoot,
+                    env,
+                }, (err, stdout, stderr) => {
+                    if (err) {
+                        rej(new Error(`Nx failed to execute {runtime: '${runtime}'}. ${err}.`));
+                    }
+                    else {
+                        const value = (0, file_hasher_1.hashArray)([`${stdout}${stderr}`.trim()]);
+                        res({
+                            details: { [`runtime:${runtime}`]: value },
+                            value,
+                        });
+                    }
+                });
+            });
+        }
+        return this.runtimeHashes[mapKey];
+    }
+    async hashEnv(env, envVarName) {
+        const value = (0, file_hasher_1.hashArray)([env[envVarName] ?? '']);
+        return {
+            details: { [`env:${envVarName}`]: value },
+            value,
+        };
+    }
+    calculateExternalDependencyHashes() {
+        const keys = Object.keys(this.projectGraph.externalNodes);
+        for (const externalNodeName of keys) {
+            this.externalDependencyHashes.set(externalNodeName, this.hashExternalDependency(externalNodeName));
+        }
+    }
+}
+exports.NodeTaskHasherImpl = NodeTaskHasherImpl;
+
+
+/***/ }),
+
+/***/ 99816:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.InProcessTaskHasher = exports.DaemonBasedTaskHasher = void 0;
+exports.getNamedInputs = getNamedInputs;
+exports.getTargetInputs = getTargetInputs;
+exports.extractPatternsFromFileSets = extractPatternsFromFileSets;
+exports.getInputs = getInputs;
+exports.isSelfInput = isSelfInput;
+exports.isDepsOutput = isDepsOutput;
+exports.expandSingleProjectInputs = expandSingleProjectInputs;
+exports.expandNamedInput = expandNamedInput;
+exports.filterUsingGlobPatterns = filterUsingGlobPatterns;
+const file_hasher_1 = __nccwpck_require__(19482);
+const node_task_hasher_impl_1 = __nccwpck_require__(74799);
+const minimatch_1 = __nccwpck_require__(62362);
+const native_task_hasher_impl_1 = __nccwpck_require__(24765);
+const workspace_root_1 = __nccwpck_require__(64393);
+class DaemonBasedTaskHasher {
+    constructor(daemonClient, runnerOptions) {
+        this.daemonClient = daemonClient;
+        this.runnerOptions = runnerOptions;
+    }
+    async hashTasks(tasks, taskGraph, env) {
+        return this.daemonClient.hashTasks(this.runnerOptions, tasks, taskGraph, env ?? process.env);
+    }
+    async hashTask(task, taskGraph, env) {
+        return (await this.daemonClient.hashTasks(this.runnerOptions, [task], taskGraph, env ?? process.env))[0];
+    }
+}
+exports.DaemonBasedTaskHasher = DaemonBasedTaskHasher;
+class InProcessTaskHasher {
+    constructor(projectFileMap, allWorkspaceFiles, projectGraph, nxJson, externalRustReferences, options) {
+        this.projectFileMap = projectFileMap;
+        this.allWorkspaceFiles = allWorkspaceFiles;
+        this.projectGraph = projectGraph;
+        this.nxJson = nxJson;
+        this.externalRustReferences = externalRustReferences;
+        this.options = options;
+        this.useNativeTaskHasher = process.env.NX_NATIVE_TASK_HASHER !== 'false';
+        const legacyRuntimeInputs = (this.options && this.options.runtimeCacheInputs
+            ? this.options.runtimeCacheInputs
+            : []).map((r) => ({ runtime: r }));
+        if (process.env.NX_CLOUD_ENCRYPTION_KEY) {
+            legacyRuntimeInputs.push({ env: 'NX_CLOUD_ENCRYPTION_KEY' });
+        }
+        const legacyFilesetInputs = [
+            'nx.json',
+            // ignore files will change the set of inputs to the hasher
+            '.gitignore',
+            '.nxignore',
+        ].map((d) => ({ fileset: `{workspaceRoot}/${d}` }));
+        this.taskHasher = !this.useNativeTaskHasher
+            ? new node_task_hasher_impl_1.NodeTaskHasherImpl(nxJson, legacyRuntimeInputs, legacyFilesetInputs, this.projectFileMap, this.allWorkspaceFiles, this.projectGraph, {
+                selectivelyHashTsConfig: this.options?.selectivelyHashTsConfig ?? false,
+            })
+            : new native_task_hasher_impl_1.NativeTaskHasherImpl(workspace_root_1.workspaceRoot, nxJson, this.projectGraph, this.externalRustReferences, {
+                selectivelyHashTsConfig: this.options?.selectivelyHashTsConfig ?? false,
+            });
+    }
+    async hashTasks(tasks, taskGraph, env) {
+        if (this.useNativeTaskHasher) {
+            const hashes = await this.taskHasher.hashTasks(tasks, taskGraph, env ?? process.env);
+            return tasks.map((task, index) => this.createHashDetails(task, hashes[index]));
+        }
+        else {
+            return await Promise.all(tasks.map((t) => this.hashTask(t, taskGraph, env)));
+        }
+    }
+    async hashTask(task, taskGraph, env) {
+        const res = await this.taskHasher.hashTask(task, taskGraph, env ?? process.env);
+        return this.createHashDetails(task, res);
+    }
+    createHashDetails(task, res) {
+        const command = this.hashCommand(task);
+        return {
+            value: (0, file_hasher_1.hashArray)([res.value, command]),
+            details: {
+                command,
+                nodes: res.details,
+                implicitDeps: {},
+                runtime: {},
+            },
+        };
+    }
+    hashCommand(task) {
+        const overrides = { ...task.overrides };
+        delete overrides['__overrides_unparsed__'];
+        const sortedOverrides = {};
+        for (let k of Object.keys(overrides).sort()) {
+            sortedOverrides[k] = overrides[k];
+        }
+        return (0, file_hasher_1.hashArray)([
+            task.target.project ?? '',
+            task.target.target ?? '',
+            task.target.configuration ?? '',
+            JSON.stringify(sortedOverrides),
+        ]);
+    }
+}
+exports.InProcessTaskHasher = InProcessTaskHasher;
+InProcessTaskHasher.version = '3.0';
+const DEFAULT_INPUTS = [
+    {
+        fileset: '{projectRoot}/**/*',
+    },
+    {
+        dependencies: true,
+        input: 'default',
+    },
+];
+function getNamedInputs(nxJson, project) {
+    return {
+        default: [{ fileset: '{projectRoot}/**/*' }],
+        ...nxJson.namedInputs,
+        ...project.data.namedInputs,
+    };
+}
+function getTargetInputs(nxJson, projectNode, target) {
+    const namedInputs = getNamedInputs(nxJson, projectNode);
+    const targetData = projectNode.data.targets[target];
+    const targetDefaults = (nxJson.targetDefaults || {})[target];
+    const inputs = splitInputsIntoSelfAndDependencies(targetData.inputs || targetDefaults?.inputs || DEFAULT_INPUTS, namedInputs);
+    const selfInputs = extractPatternsFromFileSets(inputs.selfInputs);
+    const dependencyInputs = extractPatternsFromFileSets(inputs.depsInputs.map((s) => expandNamedInput(s.input, namedInputs)).flat());
+    return { selfInputs, dependencyInputs };
+}
+function extractPatternsFromFileSets(inputs) {
+    return inputs
+        .filter((c) => !!c['fileset'])
+        .map((c) => c['fileset']);
+}
+function getInputs(task, projectGraph, nxJson) {
+    const projectNode = projectGraph.nodes[task.target.project];
+    const namedInputs = getNamedInputs(nxJson, projectNode);
+    const targetData = projectNode.data.targets[task.target.target];
+    const targetDefaults = (nxJson.targetDefaults || {})[task.target.target];
+    const { selfInputs, depsInputs, depsOutputs, projectInputs } = splitInputsIntoSelfAndDependencies(targetData.inputs || targetDefaults?.inputs || DEFAULT_INPUTS, namedInputs);
+    return { selfInputs, depsInputs, depsOutputs, projectInputs };
+}
+function splitInputsIntoSelfAndDependencies(inputs, namedInputs) {
+    const depsInputs = [];
+    const projectInputs = [];
+    const selfInputs = [];
+    for (const d of inputs) {
+        if (typeof d === 'string') {
+            if (d.startsWith('^')) {
+                depsInputs.push({ input: d.substring(1), dependencies: true });
+            }
+            else {
+                selfInputs.push(d);
+            }
+        }
+        else {
+            if (('dependencies' in d && d.dependencies) ||
+                // Todo(@AgentEnder): Remove check in v17
+                ('projects' in d &&
+                    typeof d.projects === 'string' &&
+                    d.projects === 'dependencies')) {
+                depsInputs.push({
+                    input: d.input,
+                    dependencies: true,
+                });
+            }
+            else if ('projects' in d &&
+                d.projects &&
+                // Todo(@AgentEnder): Remove check in v17
+                !(d.projects === 'self')) {
+                projectInputs.push({
+                    input: d.input,
+                    projects: Array.isArray(d.projects) ? d.projects : [d.projects],
+                });
+            }
+            else {
+                selfInputs.push(d);
+            }
+        }
+    }
+    const expandedInputs = expandSingleProjectInputs(selfInputs, namedInputs);
+    return {
+        depsInputs,
+        projectInputs,
+        selfInputs: expandedInputs.filter(isSelfInput),
+        depsOutputs: expandedInputs.filter(isDepsOutput),
+    };
+}
+function isSelfInput(input) {
+    return !('dependentTasksOutputFiles' in input);
+}
+function isDepsOutput(input) {
+    return 'dependentTasksOutputFiles' in input;
+}
+function expandSingleProjectInputs(inputs, namedInputs) {
+    const expanded = [];
+    for (const d of inputs) {
+        if (typeof d === 'string') {
+            if (d.startsWith('^'))
+                throw new Error(`namedInputs definitions cannot start with ^`);
+            if (namedInputs[d]) {
+                expanded.push(...expandNamedInput(d, namedInputs));
+            }
+            else {
+                expanded.push({ fileset: d });
+            }
+        }
+        else {
+            if (d.projects || d.dependencies) {
+                throw new Error(`namedInputs definitions can only refer to other namedInputs definitions within the same project.`);
+            }
+            if (d.fileset ||
+                d.env ||
+                d.runtime ||
+                d.externalDependencies ||
+                d.dependentTasksOutputFiles) {
+                expanded.push(d);
+            }
+            else {
+                expanded.push(...expandNamedInput(d.input, namedInputs));
+            }
+        }
+    }
+    return expanded;
+}
+function expandNamedInput(input, namedInputs) {
+    namedInputs ||= {};
+    if (!namedInputs[input])
+        throw new Error(`Input '${input}' is not defined`);
+    return expandSingleProjectInputs(namedInputs[input], namedInputs);
+}
+function filterUsingGlobPatterns(root, files, patterns) {
+    const filesetWithExpandedProjectRoot = patterns
+        .map((f) => f.replace('{projectRoot}', root))
+        .map((r) => {
+        // handling root level projects that create './' pattern that doesn't work with minimatch
+        if (r.startsWith('./'))
+            return r.substring(2);
+        if (r.startsWith('!./'))
+            return '!' + r.substring(3);
+        return r;
+    });
+    const positive = [];
+    const negative = [];
+    for (const p of filesetWithExpandedProjectRoot) {
+        if (p.startsWith('!')) {
+            negative.push(p);
+        }
+        else {
+            positive.push(p);
+        }
+    }
+    if (positive.length === 0 && negative.length === 0) {
+        return files;
+    }
+    return files.filter((f) => {
+        let matchedPositive = false;
+        if (positive.length === 0 ||
+            (positive.length === 1 && positive[0] === `${root}/**/*`)) {
+            matchedPositive = true;
+        }
+        else {
+            matchedPositive = positive.some((pattern) => (0, minimatch_1.minimatch)(f.file, pattern));
+        }
+        if (!matchedPositive)
+            return false;
+        return negative.every((pattern) => (0, minimatch_1.minimatch)(f.file, pattern));
+    });
+}
+
+
 /***/ }),
 
 /***/ 71926:
@@ -284546,6 +299239,7 @@ module.exports.copy = nativeBinding.copy
 module.exports.EventType = nativeBinding.EventType
 module.exports.expandOutputs = nativeBinding.expandOutputs
 module.exports.findImports = nativeBinding.findImports
+module.exports.getBinaryTarget = nativeBinding.getBinaryTarget
 module.exports.getFilesForOutputs = nativeBinding.getFilesForOutputs
 module.exports.hashArray = nativeBinding.hashArray
 module.exports.hashFile = nativeBinding.hashFile
@@ -284586,6 +299280,124 @@ function getNativeFileCacheLocation() {
 }
 
 
+/***/ }),
+
+/***/ 25188:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.transformProjectGraphForRust = transformProjectGraphForRust;
+function transformProjectGraphForRust(graph) {
+    const dependencies = {};
+    const nodes = {};
+    const externalNodes = {};
+    for (const [projectName, projectNode] of Object.entries(graph.nodes)) {
+        const targets = {};
+        for (const [targetName, targetConfig] of Object.entries(projectNode.data.targets ?? {})) {
+            targets[targetName] = {
+                executor: targetConfig.executor,
+                inputs: targetConfig.inputs,
+                outputs: targetConfig.outputs,
+                options: JSON.stringify(targetConfig.options),
+                configurations: JSON.stringify(targetConfig.configurations),
+                parallelism: targetConfig.parallelism,
+            };
+        }
+        nodes[projectName] = {
+            root: projectNode.data.root,
+            namedInputs: projectNode.data.namedInputs,
+            targets,
+            tags: projectNode.data.tags,
+        };
+        if (graph.dependencies[projectName]) {
+            dependencies[projectName] = [];
+            for (const dep of graph.dependencies[projectName]) {
+                dependencies[projectName].push(dep.target);
+            }
+        }
+    }
+    for (const [projectName, externalNode] of Object.entries(graph.externalNodes ?? {})) {
+        externalNodes[projectName] = {
+            packageName: externalNode.data.packageName,
+            hash: externalNode.data.hash,
+            version: externalNode.data.version,
+        };
+        if (graph.dependencies[projectName]) {
+            dependencies[projectName] = [];
+            for (const dep of graph.dependencies[projectName]) {
+                dependencies[projectName].push(dep.target);
+            }
+        }
+    }
+    return {
+        nodes,
+        externalNodes,
+        dependencies,
+    };
+}
+
+
+/***/ }),
+
+/***/ 46235:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.hashTsConfig = hashTsConfig;
+const fileutils_1 = __nccwpck_require__(40910);
+const typescript_1 = __nccwpck_require__(32602);
+const find_project_for_path_1 = __nccwpck_require__(69621);
+function readTsConfigJson() {
+    try {
+        const res = (0, fileutils_1.readJsonFile)((0, typescript_1.getRootTsConfigPath)());
+        res.compilerOptions.paths ??= {};
+        return res;
+    }
+    catch {
+        return {
+            compilerOptions: { paths: {} },
+        };
+    }
+}
+let tsConfigJson;
+function hashTsConfig(p, projectRootMappings, { selectivelyHashTsConfig }) {
+    if (!tsConfigJson) {
+        tsConfigJson = readTsConfigJson();
+    }
+    if (selectivelyHashTsConfig) {
+        return removeOtherProjectsPathRecords(p, tsConfigJson, projectRootMappings);
+    }
+    else {
+        return JSON.stringify(tsConfigJson);
+    }
+}
+function removeOtherProjectsPathRecords(p, tsConfigJson, projectRootMapping) {
+    const { paths, ...compilerOptions } = tsConfigJson.compilerOptions;
+    const filteredPaths = {};
+    if (!paths) {
+        return '';
+    }
+    for (const [key, files] of Object.entries(paths)) {
+        for (const filePath of files) {
+            if (p.name === (0, find_project_for_path_1.findProjectForPath)(filePath, projectRootMapping)) {
+                filteredPaths[key] = files;
+                break;
+            }
+        }
+    }
+    return JSON.stringify({
+        compilerOptions: {
+            ...compilerOptions,
+            paths: filteredPaths,
+        },
+    });
+}
+
+
 /***/ }),
 
 /***/ 56413:
@@ -285132,7 +299944,15 @@ function buildProjectConfigurationFromPackageJson(packageJson, workspaceRoot, pa
     const siblingProjectJson = tryReadJson((0, node_path_1.join)(workspaceRoot, projectRoot, 'project.json'));
     if (siblingProjectJson) {
         for (const target of Object.keys(siblingProjectJson?.targets ?? {})) {
-            delete packageJson.scripts?.[target];
+            const { executor, command, options } = siblingProjectJson.targets[target];
+            if (
+            // will use run-commands, different target
+            command ||
+                // Either uses a different executor or runs a different script
+                (executor &&
+                    (executor !== 'nx:run-script' || options?.script !== target))) {
+                delete packageJson.scripts?.[target];
+            }
         }
     }
     if (!packageJson.name && projectRoot === '.') {
@@ -285887,6 +300707,69 @@ class LoadPluginError extends Error {
 exports.LoadPluginError = LoadPluginError;
 
 
+/***/ }),
+
+/***/ 7682:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.createProjectFileMapUsingProjectGraph = createProjectFileMapUsingProjectGraph;
+exports.createFileMapUsingProjectGraph = createFileMapUsingProjectGraph;
+exports.createFileMap = createFileMap;
+exports.updateFileMap = updateFileMap;
+const workspace_context_1 = __nccwpck_require__(98897);
+const workspace_root_1 = __nccwpck_require__(64393);
+const project_graph_1 = __nccwpck_require__(54913);
+const build_all_workspace_files_1 = __nccwpck_require__(57362);
+const find_project_for_path_1 = __nccwpck_require__(69621);
+async function createProjectFileMapUsingProjectGraph(graph) {
+    return (await createFileMapUsingProjectGraph(graph)).fileMap.projectFileMap;
+}
+// TODO: refactor this to pull straight from the rust context instead of creating the file map in JS
+async function createFileMapUsingProjectGraph(graph) {
+    const configs = (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(graph);
+    let files = await (0, workspace_context_1.getAllFileDataInContext)(workspace_root_1.workspaceRoot);
+    return createFileMap(configs, files);
+}
+function createFileMap(projectsConfigurations, allWorkspaceFiles) {
+    const projectFileMap = {};
+    const projectRootMappings = (0, find_project_for_path_1.createProjectRootMappingsFromProjectConfigurations)(projectsConfigurations.projects);
+    const nonProjectFiles = [];
+    for (const projectName of Object.keys(projectsConfigurations.projects)) {
+        projectFileMap[projectName] ??= [];
+    }
+    for (const f of allWorkspaceFiles) {
+        const projectFileMapKey = (0, find_project_for_path_1.findProjectForPath)(f.file, projectRootMappings);
+        if (projectFileMapKey) {
+            const matchingProjectFiles = projectFileMap[projectFileMapKey];
+            if (matchingProjectFiles) {
+                matchingProjectFiles.push(f);
+            }
+        }
+        else {
+            nonProjectFiles.push(f);
+        }
+    }
+    return {
+        allWorkspaceFiles,
+        fileMap: {
+            projectFileMap,
+            nonProjectFiles,
+        },
+    };
+}
+function updateFileMap(projectsConfigurations, rustReferences, updatedFiles, deletedFiles) {
+    const updates = (0, workspace_context_1.updateProjectFiles)(Object.fromEntries((0, find_project_for_path_1.createProjectRootMappingsFromProjectConfigurations)(projectsConfigurations)), rustReferences, updatedFiles, deletedFiles);
+    return {
+        fileMap: updates.fileMap,
+        allWorkspaceFiles: (0, build_all_workspace_files_1.buildAllWorkspaceFiles)(updates.fileMap.projectFileMap, updates.fileMap.nonProjectFiles),
+        rustReferences: updates.externalReferences,
+    };
+}
+
+
 /***/ }),
 
 /***/ 89294:
@@ -286406,10 +301289,24 @@ exports.LoadedNxPlugin = LoadedNxPlugin;
 // Allows loaded plugins to not be reloaded when
 // referenced multiple times.
 exports.nxPluginCache = new Map();
+function isIsolationEnabled() {
+    // Explicitly enabled, regardless of further conditions
+    if (process.env.NX_ISOLATE_PLUGINS === 'true') {
+        return true;
+    }
+    if (
+    // Explicitly disabled
+    process.env.NX_ISOLATE_PLUGINS === 'false' ||
+        // Isolation is disabled on WASM builds currently.
+        native_1.IS_WASM) {
+        return false;
+    }
+    // Default value
+    return true;
+}
 async function loadNxPlugins(plugins, root = workspace_root_1.workspaceRoot) {
     performance.mark('loadNxPlugins:start');
-    const loadingMethod = process.env.NX_ISOLATE_PLUGINS === 'true' ||
-        (!native_1.IS_WASM && process.env.NX_ISOLATE_PLUGINS !== 'false')
+    const loadingMethod = isIsolationEnabled()
         ? isolation_1.loadNxPluginInIsolation
         : loader_1.loadNxPlugin;
     plugins = await normalizePlugins(plugins, root);
@@ -286499,6 +301396,7 @@ function isPluginWorkerMessage(message) {
             'createDependencies',
             'processProjectGraph',
             'createMetadata',
+            'shutdown',
         ].includes(message.type));
 }
 function isPluginWorkerResult(message) {
@@ -286551,7 +301449,11 @@ const exit_codes_1 = __nccwpck_require__(69510);
 const messaging_1 = __nccwpck_require__(2053);
 const cleanupFunctions = new Set();
 const pluginNames = new Map();
-const MAX_MESSAGE_WAIT = 1000 * 60 * 5; // 5 minutes
+const PLUGIN_TIMEOUT_HINT_TEXT = 'As a last resort, you can set NX_PLUGIN_NO_TIMEOUTS=true to bypass this timeout.';
+const MINUTES = 10;
+const MAX_MESSAGE_WAIT = process.env.NX_PLUGIN_NO_TIMEOUTS === 'true'
+    ? undefined
+    : 1000 * 60 * MINUTES; // 10 minutes
 const nxPluginWorkerCache = (global['nxPluginWorkerCache'] ??= new Map());
 async function loadRemoteNxPlugin(plugin, root) {
     const cacheKey = JSON.stringify({ plugin, root });
@@ -286563,8 +301465,8 @@ async function loadRemoteNxPlugin(plugin, root) {
     const exitHandler = createWorkerExitHandler(worker, pendingPromises);
     const cleanupFunction = () => {
         worker.off('exit', exitHandler);
+        shutdownPluginWorker(socket);
         socket.destroy();
-        shutdownPluginWorker(worker);
         nxPluginWorkerCache.delete(cacheKey);
     };
     cleanupFunctions.add(cleanupFunction);
@@ -286574,11 +301476,14 @@ async function loadRemoteNxPlugin(plugin, root) {
             payload: { plugin, root },
         });
         // logger.verbose(`[plugin-worker] started worker: ${worker.pid}`);
-        const loadTimeout = setTimeout(() => {
-            rej(new Error('Plugin worker timed out when loading plugin:' + plugin));
-        }, MAX_MESSAGE_WAIT);
+        const loadTimeout = MAX_MESSAGE_WAIT
+            ? setTimeout(() => {
+                rej(new Error(`Loading "${plugin}" timed out after ${MINUTES} minutes. ${PLUGIN_TIMEOUT_HINT_TEXT}`));
+            }, MAX_MESSAGE_WAIT)
+            : undefined;
         socket.on('data', (0, consume_messages_from_socket_1.consumeMessagesFromSocket)(createWorkerHandler(worker, pendingPromises, (val) => {
-            clearTimeout(loadTimeout);
+            if (loadTimeout)
+                clearTimeout(loadTimeout);
             res(val);
         }, rej, socket)));
         worker.on('exit', exitHandler);
@@ -286586,11 +301491,8 @@ async function loadRemoteNxPlugin(plugin, root) {
     nxPluginWorkerCache.set(cacheKey, pluginPromise);
     return [pluginPromise, cleanupFunction];
 }
-function shutdownPluginWorker(worker) {
-    // Clears the plugin cache so no refs to the workers are held
-    internal_api_1.nxPluginCache.clear();
-    // logger.verbose(`[plugin-pool] starting worker shutdown`);
-    worker.kill('SIGINT');
+function shutdownPluginWorker(socket) {
+    (0, messaging_1.sendMessageOverSocket)(socket, { type: 'shutdown', payload: {} });
 }
 /**
  * Creates a message handler for the given worker.
@@ -286628,6 +301530,9 @@ function createWorkerHandler(worker, pending, onload, onloadError, socket) {
                                             type: 'createNodes',
                                             payload: { configFiles, context: ctx, tx },
                                         });
+                                    }, {
+                                        plugin: pluginName,
+                                        operation: 'createNodes',
                                     });
                                 },
                             ]
@@ -286640,6 +301545,9 @@ function createWorkerHandler(worker, pending, onload, onloadError, socket) {
                                         type: 'createDependencies',
                                         payload: { context: ctx, tx },
                                     });
+                                }, {
+                                    plugin: pluginName,
+                                    operation: 'createDependencies',
                                 });
                             }
                             : undefined,
@@ -286651,6 +301559,9 @@ function createWorkerHandler(worker, pending, onload, onloadError, socket) {
                                         type: 'processProjectGraph',
                                         payload: { graph, ctx, tx },
                                     });
+                                }, {
+                                    operation: 'processProjectGraph',
+                                    plugin: pluginName,
                                 });
                             }
                             : undefined,
@@ -286662,6 +301573,9 @@ function createWorkerHandler(worker, pending, onload, onloadError, socket) {
                                         type: 'createMetadata',
                                         payload: { graph, context: ctx, tx },
                                     });
+                                }, {
+                                    plugin: pluginName,
+                                    operation: 'createMetadata',
                                 });
                             }
                             : undefined,
@@ -286719,6 +301633,7 @@ function createWorkerExitHandler(worker, pendingPromises) {
 }
 let cleanedUp = false;
 const exitHandler = () => {
+    internal_api_1.nxPluginCache.clear();
     for (const fn of cleanupFunctions) {
         fn();
     }
@@ -286730,18 +301645,21 @@ process.on('SIGINT', () => {
     process.exit((0, exit_codes_1.signalToCode)('SIGINT'));
 });
 process.on('SIGTERM', exitHandler);
-function registerPendingPromise(tx, pending, callback) {
+function registerPendingPromise(tx, pending, callback, context) {
     let resolver, rejector, timeout;
     const promise = new Promise((res, rej) => {
         rejector = rej;
         resolver = res;
-        timeout = setTimeout(() => {
-            rej(new Error(`Plugin worker timed out when processing message ${tx}`));
-        }, MAX_MESSAGE_WAIT);
+        timeout = MAX_MESSAGE_WAIT
+            ? setTimeout(() => {
+                rej(new Error(`${context.plugin} timed out after ${MINUTES} minutes during ${context.operation}. ${PLUGIN_TIMEOUT_HINT_TEXT}`));
+            }, MAX_MESSAGE_WAIT)
+            : undefined;
         callback();
     }).finally(() => {
         pending.delete(tx);
-        clearTimeout(timeout);
+        if (timeout)
+            clearTimeout(timeout);
     });
     pending.set(tx, {
         promise,
@@ -287750,7 +302668,7 @@ async function createProjectGraphAndSourceMapsAsync(opts = {
             return projectGraphAndSourceMaps;
         }
         catch (e) {
-            if (e.message.indexOf('inotify_add_watch') > -1) {
+            if (e.message && e.message.indexOf('inotify_add_watch') > -1) {
                 // common errors with the daemon due to OS settings (cannot watch all the files available)
                 output_1.output.note({
                     title: `Unable to start Nx Daemon due to the limited amount of inotify watches, continuing without the daemon.`,
@@ -288004,6 +302922,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
 exports.mergeProjectConfigurationIntoRootMap = mergeProjectConfigurationIntoRootMap;
 exports.mergeMetadata = mergeMetadata;
 exports.createProjectConfigurations = createProjectConfigurations;
+exports.findMatchingConfigFiles = findMatchingConfigFiles;
 exports.readProjectConfigurationsFromRootMap = readProjectConfigurationsFromRootMap;
 exports.validateProject = validateProject;
 exports.mergeTargetDefaultWithTargetDefinition = mergeTargetDefaultWithTargetDefinition;
@@ -288446,7 +303365,7 @@ function normalizeTargets(project, sourceMaps, nxJsonConfiguration) {
         project.targets[targetName] = normalizeTarget(project.targets[targetName], project);
         const projectSourceMaps = sourceMaps[project.root];
         const targetConfig = project.targets[targetName];
-        const targetDefaults = readTargetDefaultsForTarget(targetName, nxJsonConfiguration.targetDefaults, targetConfig.executor);
+        const targetDefaults = deepClone(readTargetDefaultsForTarget(targetName, nxJsonConfiguration.targetDefaults, targetConfig.executor));
         // We only apply defaults if they exist
         if (targetDefaults && isCompatibleTarget(targetConfig, targetDefaults)) {
             project.targets[targetName] = mergeTargetDefaultWithTargetDefinition(targetName, project, normalizeTarget(targetDefaults, project), projectSourceMaps);
@@ -288499,9 +303418,12 @@ function targetDefaultShouldBeApplied(key, sourceMap) {
     const [, plugin] = sourceInfo;
     return !plugin?.startsWith('nx/');
 }
+function deepClone(obj) {
+    return JSON.parse(JSON.stringify(obj));
+}
 function mergeTargetDefaultWithTargetDefinition(targetName, project, targetDefault, sourceMap) {
     const targetDefinition = project.targets[targetName] ?? {};
-    const result = JSON.parse(JSON.stringify(targetDefinition));
+    const result = deepClone(targetDefinition);
     for (const key in targetDefault) {
         switch (key) {
             case 'options': {
@@ -288959,27 +303881,31 @@ function expandDependencyConfigSyntaxSugar(dependencyConfigString, graph) {
 }
 // Weakmap let's the cache get cleared by garbage collector if allTargetNames is no longer used
 const patternResultCache = new WeakMap();
-function expandWildcardTargetConfiguration(dependencyConfig, allTargetNames) {
-    if (!(0, globs_1.isGlobPattern)(dependencyConfig.target)) {
-        return [dependencyConfig];
-    }
+function findMatchingTargets(pattern, allTargetNames) {
     let cache = patternResultCache.get(allTargetNames);
     if (!cache) {
         cache = new Map();
         patternResultCache.set(allTargetNames, cache);
     }
-    const cachedResult = cache.get(dependencyConfig.target);
+    const cachedResult = cache.get(pattern);
     if (cachedResult) {
         return cachedResult;
     }
-    const matcher = minimatch_1.minimatch.filter(dependencyConfig.target);
+    const matcher = minimatch_1.minimatch.filter(pattern);
     const matchingTargets = allTargetNames.filter((t) => matcher(t));
-    const result = matchingTargets.map((t) => ({
-        ...dependencyConfig,
+    cache.set(pattern, matchingTargets);
+    return matchingTargets;
+}
+function expandWildcardTargetConfiguration(dependencyConfig, allTargetNames) {
+    if (!(0, globs_1.isGlobPattern)(dependencyConfig.target)) {
+        return [dependencyConfig];
+    }
+    const matchingTargets = findMatchingTargets(dependencyConfig.target, allTargetNames);
+    return matchingTargets.map((t) => ({
         target: t,
+        projects: dependencyConfig.projects,
+        dependencies: dependencyConfig.dependencies,
     }));
-    cache.set(dependencyConfig.target, result);
-    return result;
 }
 function readProjectAndTargetFromTargetString(targetString, projects) {
     // Support for both `project:target` and `target:with:colons` syntax
@@ -289018,7 +303944,6 @@ function normalizeTargetDependencyWithStringProjects(dependencyConfig) {
         else if (dependencyConfig.projects === 'dependencies') {
             dependencyConfig.dependencies = true;
             delete dependencyConfig.projects;
-            return;
             /** LERNA SUPPORT END - Remove in v20 */
         }
         else {
@@ -289098,16 +304023,20 @@ function getOutputsForTargetAndConfiguration(taskTargetOrTask, overridesOrNode,
     };
     if (targetConfiguration?.outputs) {
         validateOutputs(targetConfiguration.outputs);
-        return targetConfiguration.outputs
-            .map((output) => {
-            return interpolate(output, {
+        const result = new Set();
+        for (const output of targetConfiguration.outputs) {
+            const interpolatedOutput = interpolate(output, {
                 projectRoot: node.data.root,
                 projectName: node.name,
                 project: { ...node.data, name: node.name }, // this is legacy
                 options,
             });
-        })
-            .filter((output) => !!output && !output.match(/{(projectRoot|workspaceRoot|(options.*))}/));
+            if (!!interpolatedOutput &&
+                !interpolatedOutput.match(/{(projectRoot|workspaceRoot|(options.*))}/)) {
+                result.add(interpolatedOutput);
+            }
+        }
+        return Array.from(result);
     }
     // Keep backwards compatibility in case `outputs` doesn't exist
     if (options.outputPath) {
@@ -289563,6 +304492,54 @@ function codeFrameColumns(rawLines, loc, opts = {}) {
 }
 
 
+/***/ }),
+
+/***/ 92193:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.collapseExpandedOutputs = collapseExpandedOutputs;
+const path_1 = __nccwpck_require__(71017);
+/**
+ * Heuristic to prevent writing too many hash files
+ */
+const MAX_OUTPUTS_TO_CHECK_HASHES = 3;
+function collapseExpandedOutputs(expandedOutputs) {
+    const tree = [];
+    // Create a Tree of directories/files
+    for (const output of expandedOutputs) {
+        const pathParts = [];
+        pathParts.unshift(output);
+        let dir = (0, path_1.dirname)(output);
+        while (dir !== (0, path_1.dirname)(dir)) {
+            pathParts.unshift(dir);
+            dir = (0, path_1.dirname)(dir);
+        }
+        for (let i = 0; i < pathParts.length; i++) {
+            tree[i] ??= new Set();
+            tree[i].add(pathParts[i]);
+        }
+    }
+    // Find a level in the tree that has too many outputs
+    if (tree.length === 0) {
+        return [];
+    }
+    let j = 0;
+    let level = tree[j];
+    for (j = 0; j < tree.length; j++) {
+        level = tree[j];
+        if (level.size > MAX_OUTPUTS_TO_CHECK_HASHES) {
+            break;
+        }
+    }
+    // Return the level before the level with too many outputs
+    // If the first level has too many outputs, return that one.
+    return Array.from(tree[Math.max(0, j - 1)]);
+}
+
+
 /***/ }),
 
 /***/ 66696:
@@ -290878,7 +305855,7 @@ function isWorkspacesEnabled(packageManager = detectPackageManager(), root = wor
     if (packageManager === 'pnpm') {
         return (0, fs_1.existsSync)((0, path_1.join)(root, 'pnpm-workspace.yaml'));
     }
-    // yarn and pnpm both use the same 'workspaces' property in package.json
+    // yarn and npm both use the same 'workspaces' property in package.json
     const packageJson = (0, file_utils_1.readPackageJson)();
     return !!packageJson?.workspaces;
 }
@@ -290964,7 +305941,7 @@ function getPackageManagerCommand(packageManager = detectPackageManager(), root
             process.env.npm_config_legacy_peer_deps ??= 'true';
             return {
                 install: 'npm install',
-                ciInstall: 'npm ci',
+                ciInstall: 'npm ci --legacy-peer-deps',
                 updateLockFile: 'npm install --package-lock-only',
                 add: 'npm install',
                 addDev: 'npm install -D',
@@ -291005,6 +305982,7 @@ function getPackageManagerVersion(packageManager = detectPackageManager(), cwd =
         version = (0, child_process_1.execSync)(`${packageManager} --version`, {
             cwd,
             encoding: 'utf-8',
+            windowsHide: true,
         }).trim();
     }
     catch {
@@ -291178,7 +306156,10 @@ async function resolvePackageVersionUsingInstallation(packageName, version) {
     const { dir, cleanup } = createTempNpmDirectory();
     try {
         const pmc = getPackageManagerCommand();
-        await execAsync(`${pmc.add} ${packageName}@${version}`, { cwd: dir });
+        await execAsync(`${pmc.add} ${packageName}@${version}`, {
+            cwd: dir,
+            windowsHide: true,
+        });
         const { packageJson } = (0, package_json_1.readModulePackageJson)(packageName, [dir]);
         return packageJson.version;
     }
@@ -291201,7 +306182,9 @@ async function packageRegistryView(pkg, version, args) {
          */
         pm = 'npm';
     }
-    const { stdout } = await execAsync(`${pm} view ${pkg}@${version} ${args}`);
+    const { stdout } = await execAsync(`${pm} view ${pkg}@${version} ${args}`, {
+        windowsHide: true,
+    });
     return stdout.toString().trim();
 }
 async function packageRegistryPack(cwd, pkg, version) {
@@ -291218,7 +306201,10 @@ async function packageRegistryPack(cwd, pkg, version) {
          */
         pm = 'npm';
     }
-    const { stdout } = await execAsync(`${pm} pack ${pkg}@${version}`, { cwd });
+    const { stdout } = await execAsync(`${pm} pack ${pkg}@${version}`, {
+        cwd,
+        windowsHide: true,
+    });
     const tarballPath = stdout.trim();
     return { tarballPath };
 }
@@ -291991,6 +306977,563 @@ function getCwd() {
 }
 
 
+/***/ }),
+
+/***/ 51456:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.findInstalledPlugins = findInstalledPlugins;
+exports.getInstalledPluginsAndCapabilities = getInstalledPluginsAndCapabilities;
+const path_1 = __nccwpck_require__(71017);
+const nx_json_1 = __nccwpck_require__(21173);
+const fileutils_1 = __nccwpck_require__(40910);
+const installation_directory_1 = __nccwpck_require__(87836);
+const package_json_1 = __nccwpck_require__(78618);
+const workspace_root_1 = __nccwpck_require__(64393);
+const plugin_capabilities_1 = __nccwpck_require__(43769);
+function findInstalledPlugins() {
+    const packageJsonDeps = getDependenciesFromPackageJson();
+    const nxJsonDeps = getDependenciesFromNxJson();
+    const deps = packageJsonDeps.concat(nxJsonDeps);
+    const result = [];
+    for (const dep of deps) {
+        const pluginPackageJson = getNxPluginPackageJsonOrNull(dep);
+        if (pluginPackageJson) {
+            result.push(pluginPackageJson);
+        }
+    }
+    return result.sort((a, b) => a.name.localeCompare(b.name));
+}
+function getNxPluginPackageJsonOrNull(pkg) {
+    try {
+        const { packageJson } = (0, package_json_1.readModulePackageJson)(pkg, (0, installation_directory_1.getNxRequirePaths)());
+        return packageJson &&
+            [
+                'ng-update',
+                'nx-migrations',
+                'schematics',
+                'generators',
+                'builders',
+                'executors',
+            ].some((field) => field in packageJson)
+            ? packageJson
+            : null;
+    }
+    catch {
+        return null;
+    }
+}
+function getDependenciesFromPackageJson(packageJsonPath = 'package.json') {
+    try {
+        const { dependencies, devDependencies } = (0, fileutils_1.readJsonFile)((0, path_1.join)(workspace_root_1.workspaceRoot, packageJsonPath));
+        return Object.keys({ ...dependencies, ...devDependencies });
+    }
+    catch { }
+    return [];
+}
+function getDependenciesFromNxJson() {
+    const { installation } = (0, nx_json_1.readNxJson)();
+    if (!installation) {
+        return [];
+    }
+    return ['nx', ...Object.keys(installation.plugins || {})];
+}
+async function getInstalledPluginsAndCapabilities(workspaceRoot, projects) {
+    const plugins = findInstalledPlugins().map((p) => p.name);
+    const result = new Map();
+    for (const plugin of Array.from(plugins).sort()) {
+        try {
+            const capabilities = await (0, plugin_capabilities_1.getPluginCapabilities)(workspaceRoot, plugin, projects);
+            if (capabilities &&
+                (capabilities.executors ||
+                    capabilities.generators ||
+                    capabilities.projectGraphExtension ||
+                    capabilities.projectInference)) {
+                result.set(plugin, capabilities);
+            }
+        }
+        catch { }
+    }
+    return result;
+}
+
+
+/***/ }),
+
+/***/ 6335:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getLocalWorkspacePlugins = getLocalWorkspacePlugins;
+const fs_1 = __nccwpck_require__(57147);
+const path_1 = __nccwpck_require__(71017);
+const fileutils_1 = __nccwpck_require__(40910);
+const workspace_root_1 = __nccwpck_require__(64393);
+const plugin_capabilities_1 = __nccwpck_require__(43769);
+async function getLocalWorkspacePlugins(projectsConfiguration, nxJson) {
+    const plugins = new Map();
+    for (const project of Object.values(projectsConfiguration.projects)) {
+        const packageJsonPath = (0, path_1.join)(workspace_root_1.workspaceRoot, project.root, 'package.json');
+        if ((0, fs_1.existsSync)(packageJsonPath)) {
+            const packageJson = (0, fileutils_1.readJsonFile)(packageJsonPath);
+            const includeRuntimeCapabilities = nxJson?.plugins?.some((p) => (typeof p === 'string' ? p : p.plugin).startsWith(packageJson.name));
+            const capabilities = await (0, plugin_capabilities_1.getPluginCapabilities)(workspace_root_1.workspaceRoot, packageJson.name, projectsConfiguration.projects, includeRuntimeCapabilities);
+            if (capabilities &&
+                (Object.keys(capabilities.executors ?? {}).length ||
+                    Object.keys(capabilities.generators ?? {}).length ||
+                    capabilities.projectGraphExtension ||
+                    capabilities.projectInference)) {
+                plugins.set(packageJson.name, {
+                    ...capabilities,
+                    name: packageJson.name,
+                });
+            }
+        }
+    }
+    return plugins;
+}
+
+
+/***/ }),
+
+/***/ 43769:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getPluginCapabilities = getPluginCapabilities;
+const path_1 = __nccwpck_require__(71017);
+const fileutils_1 = __nccwpck_require__(40910);
+const installation_directory_1 = __nccwpck_require__(87836);
+const plugins_1 = __nccwpck_require__(69461);
+const loader_1 = __nccwpck_require__(82930);
+function tryGetCollection(packageJsonPath, collectionFile, propName) {
+    if (!collectionFile) {
+        return null;
+    }
+    try {
+        const collectionFilePath = (0, path_1.join)((0, path_1.dirname)(packageJsonPath), collectionFile);
+        return (0, fileutils_1.readJsonFile)(collectionFilePath)[propName];
+    }
+    catch {
+        return null;
+    }
+}
+async function getPluginCapabilities(workspaceRoot, pluginName, projects, includeRuntimeCapabilities = false) {
+    try {
+        const { json: packageJson, path: packageJsonPath } = await (0, plugins_1.readPluginPackageJson)(pluginName, projects, (0, installation_directory_1.getNxRequirePaths)(workspaceRoot));
+        const pluginModule = includeRuntimeCapabilities
+            ? await tryGetModule(packageJson, workspaceRoot)
+            : {};
+        return {
+            name: pluginName,
+            generators: {
+                ...tryGetCollection(packageJsonPath, packageJson.schematics, 'schematics'),
+                ...tryGetCollection(packageJsonPath, packageJson.generators, 'schematics'),
+                ...tryGetCollection(packageJsonPath, packageJson.schematics, 'generators'),
+                ...tryGetCollection(packageJsonPath, packageJson.generators, 'generators'),
+            },
+            executors: {
+                ...tryGetCollection(packageJsonPath, packageJson.builders, 'builders'),
+                ...tryGetCollection(packageJsonPath, packageJson.executors, 'builders'),
+                ...tryGetCollection(packageJsonPath, packageJson.builders, 'executors'),
+                ...tryGetCollection(packageJsonPath, packageJson.executors, 'executors'),
+            },
+            projectGraphExtension: pluginModule &&
+                ('processProjectGraph' in pluginModule ||
+                    'createNodes' in pluginModule ||
+                    'createDependencies' in pluginModule),
+            projectInference: pluginModule &&
+                ('projectFilePatterns' in pluginModule ||
+                    'createNodes' in pluginModule),
+        };
+    }
+    catch {
+        return null;
+    }
+}
+async function tryGetModule(packageJson, workspaceRoot) {
+    try {
+        if (packageJson.generators ??
+            packageJson.executors ??
+            packageJson['nx-migrations'] ??
+            packageJson['schematics'] ??
+            packageJson['builders']) {
+            const [pluginPromise] = (0, loader_1.loadNxPlugin)(packageJson.name, workspaceRoot);
+            const plugin = await pluginPromise;
+            return plugin;
+        }
+        else {
+            return {
+                name: packageJson.name,
+            };
+        }
+    }
+    catch {
+        return null;
+    }
+}
+
+
+/***/ }),
+
+/***/ 51958:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.printHelp = printHelp;
+const chalk = __nccwpck_require__(78818);
+const stringWidth = __nccwpck_require__(42577);
+const logger_1 = __nccwpck_require__(37270);
+const output_1 = __nccwpck_require__(21862);
+const versions_1 = __nccwpck_require__(10780);
+const package_json_1 = __nccwpck_require__(78618);
+// cliui is the CLI layout engine developed by, and used within, yargs
+// the typings for cliui do not play nice with our tsconfig, it either
+// works in build or in test but not both.
+const cliui = __nccwpck_require__(77059);
+function printHelp(header, schema, meta) {
+    const allPositional = Object.keys(schema.properties).filter((key) => {
+        const p = schema.properties[key];
+        return p['$default'] && p['$default']['$source'] === 'argv';
+    });
+    const positional = allPositional.length > 0 ? ` [${allPositional[0]}]` : '';
+    logger_1.logger.info(`
+${output_1.output.applyNxPrefix('cyan', chalk.bold(`${`${header + chalk.reset.cyan(positional)} ${chalk.reset.cyan('[options,...]')}`}`))}
+
+${generateOverviewOutput({
+        pluginName: meta.plugin,
+        name: meta.entity,
+        description: schema.description,
+        mode: meta.mode,
+        aliases: meta.mode === 'generate' ? meta.aliases : [],
+    })}
+${generateOptionsOutput(schema)}
+${generateExamplesOutput(schema)}
+${generateLinkOutput({
+        pluginName: meta.plugin,
+        name: meta.entity,
+        type: meta.mode === 'generate' ? 'generators' : 'executors',
+    })}
+`);
+}
+function generateOverviewOutput({ pluginName, name, description, mode, aliases, }) {
+    switch (mode) {
+        case 'generate':
+            return generateGeneratorOverviewOutput({
+                pluginName,
+                name,
+                description,
+                aliases,
+            });
+        case 'run':
+            return generateExecutorOverviewOutput({
+                pluginName,
+                name,
+                description,
+            });
+        default:
+            throw new Error(`Unexpected mode ${mode}`);
+    }
+}
+function generateGeneratorOverviewOutput({ pluginName, name, description, aliases, }) {
+    const ui = cliui(null);
+    const overviewItemsLabelWidth = 
+    // Chars in labels "From" and "Name"
+    4 +
+        // The `:` char
+        1;
+    let installedVersion;
+    try {
+        installedVersion = (0, package_json_1.readModulePackageJson)(pluginName).packageJson.version;
+    }
+    catch { }
+    ui.div(...[
+        {
+            text: chalk.bold('From:'),
+            padding: [1, 0, 0, 0],
+            width: overviewItemsLabelWidth,
+        },
+        {
+            text: pluginName +
+                (installedVersion ? chalk.dim(` (v${installedVersion})`) : ''),
+            padding: [1, 0, 0, 2],
+        },
+    ]);
+    ui.div(...[
+        {
+            text: chalk.bold('Name:'),
+            padding: [0, 0, 0, 0],
+            width: overviewItemsLabelWidth,
+        },
+        {
+            text: `${name}${aliases.length ? chalk.dim(` (aliases: ${aliases.join(', ')})`) : ''}`,
+            padding: [0, 0, 0, 2],
+        },
+    ]);
+    ui.div(...[
+        {
+            text: description,
+            padding: [2, 0, 1, 2],
+        },
+    ]);
+    return ui.toString();
+}
+function generateExecutorOverviewOutput({ pluginName, name, description, }) {
+    const ui = cliui(null);
+    const overviewItemsLeftPadding = 2;
+    const overviewItemsLabelWidth = overviewItemsLeftPadding + 'Executor:'.length;
+    ui.div(...[
+        {
+            text: chalk.bold('Executor:'),
+            padding: [1, 0, 0, 0],
+            width: overviewItemsLabelWidth,
+        },
+        {
+            text: `${pluginName}:${name}` +
+                (pluginName.startsWith('@nrwl/')
+                    ? chalk.dim(` (v${versions_1.nxVersion})`)
+                    : ''),
+            padding: [1, 0, 0, 0],
+        },
+    ]);
+    ui.div(...[
+        {
+            text: description,
+            padding: [2, 0, 1, 2],
+        },
+    ]);
+    return ui.toString();
+}
+const formatOptionVal = (maybeStr) => typeof maybeStr === 'string' ? `"${maybeStr}"` : JSON.stringify(maybeStr);
+// From our JSON schemas an option could possibly have more than one valid type
+const formatOptionType = (optionConfig) => {
+    if (Array.isArray(optionConfig.oneOf)) {
+        return optionConfig.oneOf
+            .map((typeConfig) => formatOptionType(typeConfig))
+            .join(' OR ');
+    }
+    return `[${optionConfig.type}]`;
+};
+function generateOptionsOutput(schema) {
+    const ui = cliui(null);
+    const flagAndAliasLeftPadding = 4;
+    const flagAndAliasRightPadding = 4;
+    // Construct option flags (including optional aliases) and descriptions and track the required space to render them
+    const optionsToRender = new Map();
+    let requiredSpaceToRenderAllFlagsAndAliases = 0;
+    const sorted = Object.entries(schema.properties).sort((a, b) => compareByPriority(a, b, schema));
+    for (const [optionName, optionConfig] of sorted) {
+        const renderedFlagAndAlias = `--${optionName}` +
+            (optionConfig.alias ? `, -${optionConfig.alias}` : '');
+        const renderedFlagAndAliasTrueWidth = stringWidth(renderedFlagAndAlias);
+        if (renderedFlagAndAliasTrueWidth > requiredSpaceToRenderAllFlagsAndAliases) {
+            requiredSpaceToRenderAllFlagsAndAliases = renderedFlagAndAliasTrueWidth;
+        }
+        const renderedDescription = optionConfig.description;
+        const renderedTypesAndDefault = `${formatOptionType(optionConfig)}${optionConfig.enum
+            ? ` [choices: ${optionConfig.enum
+                .map((e) => formatOptionVal(e))
+                .join(', ')}]`
+            : ''}${optionConfig.default
+            ? ` [default: ${formatOptionVal(optionConfig.default)}]`
+            : ''}`;
+        optionConfig.hidden ??= optionConfig.visible === false;
+        if (!optionConfig.hidden)
+            optionsToRender.set(optionName, {
+                renderedFlagAndAlias,
+                renderedDescription,
+                renderedTypesAndDefault,
+            });
+    }
+    ui.div({
+        text: 'Options:',
+        padding: [1, 0, 0, 0],
+    });
+    for (const { renderedFlagAndAlias, renderedDescription, renderedTypesAndDefault, } of optionsToRender.values()) {
+        const cols = [
+            {
+                text: renderedFlagAndAlias,
+                width: requiredSpaceToRenderAllFlagsAndAliases +
+                    flagAndAliasLeftPadding +
+                    flagAndAliasRightPadding,
+                padding: [0, flagAndAliasRightPadding, 0, flagAndAliasLeftPadding],
+            },
+            {
+                text: renderedDescription,
+                padding: [0, 0, 0, 0],
+            },
+            {
+                text: renderedTypesAndDefault,
+                padding: [0, 0, 0, 0],
+                align: 'right',
+            },
+        ];
+        ui.div(...cols);
+    }
+    return ui.toString();
+}
+function generateExamplesOutput(schema) {
+    if (!schema.examples || schema.examples.length === 0) {
+        return '';
+    }
+    const ui = cliui(null);
+    const xPadding = 4;
+    ui.div({
+        text: 'Examples:',
+        padding: [1, 0, 0, 0],
+    });
+    for (const { command, description } of schema.examples) {
+        const cols = [
+            {
+                text: command,
+                padding: [0, xPadding, 0, xPadding],
+            },
+            {
+                text: description || '',
+                padding: [0, 2, 0, 0],
+            },
+        ];
+        ui.div(...cols);
+    }
+    return ui.toString();
+}
+// TODO: generalize link generation so it works for non @nx plugins as well
+function generateLinkOutput({ pluginName, name, type, }) {
+    const nxPackagePrefix = '@nx/';
+    const nrwlPackagePrefix = '@nrwl/';
+    if (!pluginName.startsWith(nxPackagePrefix) &&
+        !pluginName.startsWith(nrwlPackagePrefix)) {
+        return '';
+    }
+    const link = `https://nx.dev/nx-api/${pluginName.substring(pluginName.startsWith(nxPackagePrefix)
+        ? nxPackagePrefix.length
+        : nrwlPackagePrefix.length)}/${type}/${name}`;
+    return `\n\n${chalk.dim('Find more information and examples at:')} ${chalk.bold(link)}`;
+}
+/**
+ * sorts properties in the following order
+ * - required
+ * - x-priority: important
+ * - everything else
+ * - x-priority: internal
+ * - deprecated
+ * if two properties have equal priority, they are sorted by name
+ */
+function compareByPriority(a, b, schema) {
+    function getPriority([name, property]) {
+        if (schema.required?.includes(name)) {
+            return 0;
+        }
+        if (property['x-priority'] === 'important') {
+            return 1;
+        }
+        if (property['x-deprecated']) {
+            return 4;
+        }
+        if (property['x-priority'] === 'internal') {
+            return 3;
+        }
+        return 2;
+    }
+    const aPriority = getPriority(a);
+    const bPriority = getPriority(b);
+    if (aPriority === bPriority) {
+        return a[0].localeCompare(b[0]);
+    }
+    return aPriority - bPriority;
+}
+
+
+/***/ }),
+
+/***/ 84463:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.projectHasTarget = projectHasTarget;
+exports.projectHasTargetAndConfiguration = projectHasTargetAndConfiguration;
+exports.getSourceDirOfDependentProjects = getSourceDirOfDependentProjects;
+exports.findAllProjectNodeDependencies = findAllProjectNodeDependencies;
+const project_graph_1 = __nccwpck_require__(54913);
+function projectHasTarget(project, target) {
+    return !!(project.data &&
+        project.data.targets &&
+        project.data.targets[target]);
+}
+function projectHasTargetAndConfiguration(project, target, configuration) {
+    return (projectHasTarget(project, target) &&
+        project.data.targets[target].configurations &&
+        project.data.targets[target].configurations[configuration]);
+}
+function getSourceDirOfDependentProjects(projectName, projectGraph = (0, project_graph_1.readCachedProjectGraph)()) {
+    if (!projectGraph.nodes[projectName]) {
+        throw new Error(`Couldn't find project "${projectName}" in this Nx workspace`);
+    }
+    const nodeNames = findAllProjectNodeDependencies(projectName, projectGraph);
+    return nodeNames.reduce((result, nodeName) => {
+        if (projectGraph.nodes[nodeName].data.sourceRoot) {
+            result[0].push(projectGraph.nodes[nodeName].data.sourceRoot);
+        }
+        else {
+            result[1].push(nodeName);
+        }
+        return result;
+    }, [[], []]);
+}
+/**
+ * Find all internal project dependencies.
+ * All the external (npm) dependencies will be filtered out unless includeExternalDependencies is set to true
+ * @param {string} parentNodeName
+ * @param {ProjectGraph} projectGraph
+ * @param includeExternalDependencies
+ * @returns {string[]}
+ */
+function findAllProjectNodeDependencies(parentNodeName, projectGraph = (0, project_graph_1.readCachedProjectGraph)(), includeExternalDependencies = false) {
+    const dependencyNodeNames = new Set();
+    collectDependentProjectNodesNames(projectGraph, dependencyNodeNames, parentNodeName, includeExternalDependencies);
+    return Array.from(dependencyNodeNames);
+}
+// Recursively get all the dependencies of the node
+function collectDependentProjectNodesNames(nxDeps, dependencyNodeNames, parentNodeName, includeExternalDependencies) {
+    const dependencies = nxDeps.dependencies[parentNodeName];
+    if (!dependencies) {
+        // no dependencies for the given node, so silently return,
+        // as we probably wouldn't want to throw here
+        return;
+    }
+    for (const dependency of dependencies) {
+        const dependencyName = dependency.target;
+        // skip dependencies already added (avoid circular dependencies)
+        if (dependencyNodeNames.has(dependencyName)) {
+            continue;
+        }
+        // we're only interested in internal nodes, not external
+        if (nxDeps.externalNodes?.[dependencyName]) {
+            if (includeExternalDependencies) {
+                dependencyNodeNames.add(dependencyName);
+            }
+            else {
+                continue;
+            }
+        }
+        dependencyNodeNames.add(dependencyName);
+        // Get the dependencies of the dependencies
+        collectDependentProjectNodesNames(nxDeps, dependencyNodeNames, dependencyName, includeExternalDependencies);
+    }
+}
+
+
 /***/ }),
 
 /***/ 25340:
@@ -292220,6 +307763,279 @@ function stripIndents(strings, ...values) {
 }
 
 
+/***/ }),
+
+/***/ 98299:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getSyncGeneratorChanges = getSyncGeneratorChanges;
+exports.flushSyncGeneratorChanges = flushSyncGeneratorChanges;
+exports.collectAllRegisteredSyncGenerators = collectAllRegisteredSyncGenerators;
+exports.runSyncGenerator = runSyncGenerator;
+exports.collectRegisteredTaskSyncGenerators = collectRegisteredTaskSyncGenerators;
+exports.collectRegisteredGlobalSyncGenerators = collectRegisteredGlobalSyncGenerators;
+exports.syncGeneratorResultsToMessageLines = syncGeneratorResultsToMessageLines;
+const perf_hooks_1 = __nccwpck_require__(4074);
+const generate_1 = __nccwpck_require__(91867);
+const generator_utils_1 = __nccwpck_require__(85331);
+const nx_json_1 = __nccwpck_require__(21173);
+const client_1 = __nccwpck_require__(76940);
+const is_on_daemon_1 = __nccwpck_require__(45153);
+const tree_1 = __nccwpck_require__(10818);
+const project_graph_1 = __nccwpck_require__(54913);
+const workspace_context_1 = __nccwpck_require__(98897);
+const workspace_root_1 = __nccwpck_require__(64393);
+const chalk = __nccwpck_require__(78818);
+async function getSyncGeneratorChanges(generators) {
+    perf_hooks_1.performance.mark('get-sync-generators-changes:start');
+    let results;
+    if (!client_1.daemonClient.enabled()) {
+        results = await runSyncGenerators(generators);
+    }
+    else {
+        results = await client_1.daemonClient.getSyncGeneratorChanges(generators);
+    }
+    perf_hooks_1.performance.mark('get-sync-generators-changes:end');
+    perf_hooks_1.performance.measure('get-sync-generators-changes', 'get-sync-generators-changes:start', 'get-sync-generators-changes:end');
+    return results.filter((r) => r.changes.length > 0);
+}
+async function flushSyncGeneratorChanges(results) {
+    if ((0, is_on_daemon_1.isOnDaemon)() || !client_1.daemonClient.enabled()) {
+        await flushSyncGeneratorChangesToDisk(results);
+    }
+    else {
+        await client_1.daemonClient.flushSyncGeneratorChangesToDisk(results.map((r) => r.generatorName));
+    }
+}
+async function collectAllRegisteredSyncGenerators(projectGraph) {
+    if (!client_1.daemonClient.enabled()) {
+        return [
+            ...collectRegisteredTaskSyncGenerators(projectGraph),
+            ...collectRegisteredGlobalSyncGenerators(),
+        ];
+    }
+    return await client_1.daemonClient.getRegisteredSyncGenerators();
+}
+async function runSyncGenerator(tree, generatorSpecifier, projects) {
+    perf_hooks_1.performance.mark(`run-sync-generator:${generatorSpecifier}:start`);
+    const { collection, generator } = (0, generate_1.parseGeneratorString)(generatorSpecifier);
+    const { implementationFactory } = (0, generator_utils_1.getGeneratorInformation)(collection, generator, workspace_root_1.workspaceRoot, projects);
+    const implementation = implementationFactory();
+    const result = await implementation(tree);
+    let callback;
+    let outOfSyncMessage;
+    if (result && typeof result === 'object') {
+        callback = result.callback;
+        outOfSyncMessage = result.outOfSyncMessage;
+    }
+    perf_hooks_1.performance.mark(`run-sync-generator:${generatorSpecifier}:end`);
+    perf_hooks_1.performance.measure(`run-sync-generator:${generatorSpecifier}`, `run-sync-generator:${generatorSpecifier}:start`, `run-sync-generator:${generatorSpecifier}:end`);
+    return {
+        changes: tree.listChanges(),
+        generatorName: generatorSpecifier,
+        callback,
+        outOfSyncMessage,
+    };
+}
+function collectRegisteredTaskSyncGenerators(projectGraph) {
+    const taskSyncGenerators = new Set();
+    for (const { data: { targets }, } of Object.values(projectGraph.nodes)) {
+        if (!targets) {
+            continue;
+        }
+        for (const target of Object.values(targets)) {
+            if (!target.syncGenerators) {
+                continue;
+            }
+            for (const generator of target.syncGenerators) {
+                taskSyncGenerators.add(generator);
+            }
+        }
+    }
+    return taskSyncGenerators;
+}
+function collectRegisteredGlobalSyncGenerators(nxJson = (0, nx_json_1.readNxJson)()) {
+    const globalSyncGenerators = new Set();
+    if (!nxJson.sync?.globalGenerators?.length) {
+        return globalSyncGenerators;
+    }
+    for (const generator of nxJson.sync.globalGenerators) {
+        globalSyncGenerators.add(generator);
+    }
+    return globalSyncGenerators;
+}
+function syncGeneratorResultsToMessageLines(results) {
+    const messageLines = [];
+    for (const result of results) {
+        messageLines.push(`The ${chalk.bold(result.generatorName)} sync generator identified ${chalk.bold(result.changes.length)} file${result.changes.length === 1 ? '' : 's'} in the workspace that ${result.changes.length === 1 ? 'is' : 'are'} out of sync${result.outOfSyncMessage ? ':' : '.'}`);
+        if (result.outOfSyncMessage) {
+            messageLines.push(result.outOfSyncMessage);
+        }
+    }
+    return messageLines;
+}
+async function runSyncGenerators(generators) {
+    const tree = new tree_1.FsTree(workspace_root_1.workspaceRoot, false, 'running sync generators');
+    const projectGraph = await (0, project_graph_1.createProjectGraphAsync)();
+    const { projects } = (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(projectGraph);
+    const results = [];
+    for (const generator of generators) {
+        const result = await runSyncGenerator(tree, generator, projects);
+        results.push(result);
+    }
+    return results;
+}
+async function flushSyncGeneratorChangesToDisk(results) {
+    perf_hooks_1.performance.mark('flush-sync-generator-changes-to-disk:start');
+    const { changes, createdFiles, updatedFiles, deletedFiles, callbacks } = processSyncGeneratorResults(results);
+    // Write changes to disk
+    (0, tree_1.flushChanges)(workspace_root_1.workspaceRoot, changes);
+    // Run the callbacks
+    if (callbacks.length) {
+        for (const callback of callbacks) {
+            await callback();
+        }
+    }
+    // Update the context files
+    await (0, workspace_context_1.updateContextWithChangedFiles)(workspace_root_1.workspaceRoot, createdFiles, updatedFiles, deletedFiles);
+    perf_hooks_1.performance.mark('flush-sync-generator-changes-to-disk:end');
+    perf_hooks_1.performance.measure('flush sync generator changes to disk', 'flush-sync-generator-changes-to-disk:start', 'flush-sync-generator-changes-to-disk:end');
+}
+function processSyncGeneratorResults(results) {
+    const changes = [];
+    const createdFiles = [];
+    const updatedFiles = [];
+    const deletedFiles = [];
+    const callbacks = [];
+    for (const result of results) {
+        if (result.callback) {
+            callbacks.push(result.callback);
+        }
+        for (const change of result.changes) {
+            changes.push(change);
+            if (change.type === 'CREATE') {
+                createdFiles.push(change.path);
+            }
+            else if (change.type === 'UPDATE') {
+                updatedFiles.push(change.path);
+            }
+            else if (change.type === 'DELETE') {
+                deletedFiles.push(change.path);
+            }
+        }
+    }
+    return { changes, createdFiles, updatedFiles, deletedFiles, callbacks };
+}
+
+
+/***/ }),
+
+/***/ 83523:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.taskHistoryFile = void 0;
+exports.getHistoryForHashes = getHistoryForHashes;
+exports.writeTaskRunsToHistory = writeTaskRunsToHistory;
+const fs_1 = __nccwpck_require__(57147);
+const path_1 = __nccwpck_require__(71017);
+const client_1 = __nccwpck_require__(76940);
+const is_on_daemon_1 = __nccwpck_require__(45153);
+const cache_directory_1 = __nccwpck_require__(11622);
+const taskRunKeys = [
+    'project',
+    'target',
+    'configuration',
+    'hash',
+    'code',
+    'status',
+    'start',
+    'end',
+];
+let taskHistory = undefined;
+let taskHashToIndicesMap = new Map();
+async function getHistoryForHashes(hashes) {
+    if ((0, is_on_daemon_1.isOnDaemon)() || !client_1.daemonClient.enabled()) {
+        if (taskHistory === undefined) {
+            loadTaskHistoryFromDisk();
+        }
+        const result = {};
+        for (let hash of hashes) {
+            const indices = taskHashToIndicesMap.get(hash);
+            if (!indices) {
+                result[hash] = [];
+            }
+            else {
+                result[hash] = indices.map((index) => taskHistory[index]);
+            }
+        }
+        return result;
+    }
+    return await client_1.daemonClient.getTaskHistoryForHashes(hashes);
+}
+async function writeTaskRunsToHistory(taskRuns) {
+    if ((0, is_on_daemon_1.isOnDaemon)() || !client_1.daemonClient.enabled()) {
+        if (taskHistory === undefined) {
+            loadTaskHistoryFromDisk();
+        }
+        const serializedLines = [];
+        for (let taskRun of taskRuns) {
+            const serializedLine = taskRunKeys.map((key) => taskRun[key]).join(',');
+            serializedLines.push(serializedLine);
+            recordTaskRunInMemory(taskRun);
+        }
+        if (!(0, fs_1.existsSync)(exports.taskHistoryFile)) {
+            (0, fs_1.writeFileSync)(exports.taskHistoryFile, `${taskRunKeys.join(',')}\n`);
+        }
+        (0, fs_1.appendFileSync)(exports.taskHistoryFile, serializedLines.join('\n') + '\n');
+    }
+    else {
+        await client_1.daemonClient.writeTaskRunsToHistory(taskRuns);
+    }
+}
+exports.taskHistoryFile = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, 'task-history.csv');
+function loadTaskHistoryFromDisk() {
+    taskHashToIndicesMap.clear();
+    taskHistory = [];
+    if (!(0, fs_1.existsSync)(exports.taskHistoryFile)) {
+        return;
+    }
+    const fileContent = (0, fs_1.readFileSync)(exports.taskHistoryFile, 'utf8');
+    if (!fileContent) {
+        return;
+    }
+    const lines = fileContent.split('\n');
+    // if there are no lines or just the header, return
+    if (lines.length <= 1) {
+        return;
+    }
+    const contentLines = lines.slice(1).filter((l) => l.trim() !== '');
+    // read the values from csv format where each header is a key and the value is the value
+    for (let line of contentLines) {
+        const values = line.trim().split(',');
+        const run = {};
+        taskRunKeys.forEach((header, index) => {
+            run[header] = values[index];
+        });
+        recordTaskRunInMemory(run);
+    }
+}
+function recordTaskRunInMemory(taskRun) {
+    const index = taskHistory.push(taskRun) - 1;
+    if (taskHashToIndicesMap.has(taskRun.hash)) {
+        taskHashToIndicesMap.get(taskRun.hash).push(index);
+    }
+    else {
+        taskHashToIndicesMap.set(taskRun.hash, [index]);
+    }
+}
+
+
 /***/ }),
 
 /***/ 10780:
@@ -292245,6 +308061,7 @@ exports.getNxWorkspaceFilesFromContext = getNxWorkspaceFilesFromContext;
 exports.globWithWorkspaceContextSync = globWithWorkspaceContextSync;
 exports.globWithWorkspaceContext = globWithWorkspaceContext;
 exports.hashWithWorkspaceContext = hashWithWorkspaceContext;
+exports.updateContextWithChangedFiles = updateContextWithChangedFiles;
 exports.updateFilesInContext = updateFilesInContext;
 exports.getAllFileDataInContext = getAllFileDataInContext;
 exports.getFilesInDirectoryUsingContext = getFilesInDirectoryUsingContext;
@@ -292296,7 +308113,23 @@ async function hashWithWorkspaceContext(workspaceRoot, globs, exclude) {
     }
     return client_1.daemonClient.hashGlob(globs, exclude);
 }
-function updateFilesInContext(updatedFiles, deletedFiles) {
+async function updateContextWithChangedFiles(workspaceRoot, createdFiles, updatedFiles, deletedFiles) {
+    if (!client_1.daemonClient.enabled()) {
+        updateFilesInContext(workspaceRoot, [...createdFiles, ...updatedFiles], deletedFiles);
+    }
+    else if ((0, is_on_daemon_1.isOnDaemon)()) {
+        // make sure to only import this when running on the daemon
+        const { addUpdatedAndDeletedFiles } = await Promise.resolve().then(() => __nccwpck_require__(96952));
+        // update files for the incremental graph recomputation on the daemon
+        addUpdatedAndDeletedFiles(createdFiles, updatedFiles, deletedFiles);
+    }
+    else {
+        // daemon is enabled but we are not running on it, ask the daemon to update the context
+        await client_1.daemonClient.updateWorkspaceContext(createdFiles, updatedFiles, deletedFiles);
+    }
+}
+function updateFilesInContext(workspaceRoot, updatedFiles, deletedFiles) {
+    ensureContextAvailable(workspaceRoot);
     return workspaceContext?.incrementalUpdate(updatedFiles, deletedFiles);
 }
 async function getAllFileDataInContext(workspaceRoot) {
@@ -292594,6 +308427,316 @@ module.exports = {
 }
 
 
+/***/ }),
+
+/***/ 77059:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const align = {
+    right: alignRight,
+    center: alignCenter
+};
+const top = 0;
+const right = 1;
+const bottom = 2;
+const left = 3;
+class UI {
+    constructor(opts) {
+        var _a;
+        this.width = opts.width;
+        this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true;
+        this.rows = [];
+    }
+    span(...args) {
+        const cols = this.div(...args);
+        cols.span = true;
+    }
+    resetOutput() {
+        this.rows = [];
+    }
+    div(...args) {
+        if (args.length === 0) {
+            this.div('');
+        }
+        if (this.wrap && this.shouldApplyLayoutDSL(...args) && typeof args[0] === 'string') {
+            return this.applyLayoutDSL(args[0]);
+        }
+        const cols = args.map(arg => {
+            if (typeof arg === 'string') {
+                return this.colFromString(arg);
+            }
+            return arg;
+        });
+        this.rows.push(cols);
+        return cols;
+    }
+    shouldApplyLayoutDSL(...args) {
+        return args.length === 1 && typeof args[0] === 'string' &&
+            /[\t\n]/.test(args[0]);
+    }
+    applyLayoutDSL(str) {
+        const rows = str.split('\n').map(row => row.split('\t'));
+        let leftColumnWidth = 0;
+        // simple heuristic for layout, make sure the
+        // second column lines up along the left-hand.
+        // don't allow the first column to take up more
+        // than 50% of the screen.
+        rows.forEach(columns => {
+            if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) {
+                leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0]));
+            }
+        });
+        // generate a table:
+        //  replacing ' ' with padding calculations.
+        //  using the algorithmically generated width.
+        rows.forEach(columns => {
+            this.div(...columns.map((r, i) => {
+                return {
+                    text: r.trim(),
+                    padding: this.measurePadding(r),
+                    width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined
+                };
+            }));
+        });
+        return this.rows[this.rows.length - 1];
+    }
+    colFromString(text) {
+        return {
+            text,
+            padding: this.measurePadding(text)
+        };
+    }
+    measurePadding(str) {
+        // measure padding without ansi escape codes
+        const noAnsi = mixin.stripAnsi(str);
+        return [0, noAnsi.match(/\s*$/)[0].length, 0, noAnsi.match(/^\s*/)[0].length];
+    }
+    toString() {
+        const lines = [];
+        this.rows.forEach(row => {
+            this.rowToString(row, lines);
+        });
+        // don't display any lines with the
+        // hidden flag set.
+        return lines
+            .filter(line => !line.hidden)
+            .map(line => line.text)
+            .join('\n');
+    }
+    rowToString(row, lines) {
+        this.rasterize(row).forEach((rrow, r) => {
+            let str = '';
+            rrow.forEach((col, c) => {
+                const { width } = row[c]; // the width with padding.
+                const wrapWidth = this.negatePadding(row[c]); // the width without padding.
+                let ts = col; // temporary string used during alignment/padding.
+                if (wrapWidth > mixin.stringWidth(col)) {
+                    ts += ' '.repeat(wrapWidth - mixin.stringWidth(col));
+                }
+                // align the string within its column.
+                if (row[c].align && row[c].align !== 'left' && this.wrap) {
+                    const fn = align[row[c].align];
+                    ts = fn(ts, wrapWidth);
+                    if (mixin.stringWidth(ts) < wrapWidth) {
+                        ts += ' '.repeat((width || 0) - mixin.stringWidth(ts) - 1);
+                    }
+                }
+                // apply border and padding to string.
+                const padding = row[c].padding || [0, 0, 0, 0];
+                if (padding[left]) {
+                    str += ' '.repeat(padding[left]);
+                }
+                str += addBorder(row[c], ts, '| ');
+                str += ts;
+                str += addBorder(row[c], ts, ' |');
+                if (padding[right]) {
+                    str += ' '.repeat(padding[right]);
+                }
+                // if prior row is span, try to render the
+                // current row on the prior line.
+                if (r === 0 && lines.length > 0) {
+                    str = this.renderInline(str, lines[lines.length - 1]);
+                }
+            });
+            // remove trailing whitespace.
+            lines.push({
+                text: str.replace(/ +$/, ''),
+                span: row.span
+            });
+        });
+        return lines;
+    }
+    // if the full 'source' can render in
+    // the target line, do so.
+    renderInline(source, previousLine) {
+        const match = source.match(/^ */);
+        const leadingWhitespace = match ? match[0].length : 0;
+        const target = previousLine.text;
+        const targetTextWidth = mixin.stringWidth(target.trimRight());
+        if (!previousLine.span) {
+            return source;
+        }
+        // if we're not applying wrapping logic,
+        // just always append to the span.
+        if (!this.wrap) {
+            previousLine.hidden = true;
+            return target + source;
+        }
+        if (leadingWhitespace < targetTextWidth) {
+            return source;
+        }
+        previousLine.hidden = true;
+        return target.trimRight() + ' '.repeat(leadingWhitespace - targetTextWidth) + source.trimLeft();
+    }
+    rasterize(row) {
+        const rrows = [];
+        const widths = this.columnWidths(row);
+        let wrapped;
+        // word wrap all columns, and create
+        // a data-structure that is easy to rasterize.
+        row.forEach((col, c) => {
+            // leave room for left and right padding.
+            col.width = widths[c];
+            if (this.wrap) {
+                wrapped = mixin.wrap(col.text, this.negatePadding(col), { hard: true }).split('\n');
+            }
+            else {
+                wrapped = col.text.split('\n');
+            }
+            if (col.border) {
+                wrapped.unshift('.' + '-'.repeat(this.negatePadding(col) + 2) + '.');
+                wrapped.push("'" + '-'.repeat(this.negatePadding(col) + 2) + "'");
+            }
+            // add top and bottom padding.
+            if (col.padding) {
+                wrapped.unshift(...new Array(col.padding[top] || 0).fill(''));
+                wrapped.push(...new Array(col.padding[bottom] || 0).fill(''));
+            }
+            wrapped.forEach((str, r) => {
+                if (!rrows[r]) {
+                    rrows.push([]);
+                }
+                const rrow = rrows[r];
+                for (let i = 0; i < c; i++) {
+                    if (rrow[i] === undefined) {
+                        rrow.push('');
+                    }
+                }
+                rrow.push(str);
+            });
+        });
+        return rrows;
+    }
+    negatePadding(col) {
+        let wrapWidth = col.width || 0;
+        if (col.padding) {
+            wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0);
+        }
+        if (col.border) {
+            wrapWidth -= 4;
+        }
+        return wrapWidth;
+    }
+    columnWidths(row) {
+        if (!this.wrap) {
+            return row.map(col => {
+                return col.width || mixin.stringWidth(col.text);
+            });
+        }
+        let unset = row.length;
+        let remainingWidth = this.width;
+        // column widths can be set in config.
+        const widths = row.map(col => {
+            if (col.width) {
+                unset--;
+                remainingWidth -= col.width;
+                return col.width;
+            }
+            return undefined;
+        });
+        // any unset widths should be calculated.
+        const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;
+        return widths.map((w, i) => {
+            if (w === undefined) {
+                return Math.max(unsetWidth, _minWidth(row[i]));
+            }
+            return w;
+        });
+    }
+}
+function addBorder(col, ts, style) {
+    if (col.border) {
+        if (/[.']-+[.']/.test(ts)) {
+            return '';
+        }
+        if (ts.trim().length !== 0) {
+            return style;
+        }
+        return '  ';
+    }
+    return '';
+}
+// calculates the minimum width of
+// a column, based on padding preferences.
+function _minWidth(col) {
+    const padding = col.padding || [];
+    const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0);
+    if (col.border) {
+        return minWidth + 4;
+    }
+    return minWidth;
+}
+function getWindowWidth() {
+    /* istanbul ignore next: depends on terminal */
+    if (typeof process === 'object' && process.stdout && process.stdout.columns) {
+        return process.stdout.columns;
+    }
+    return 80;
+}
+function alignRight(str, width) {
+    str = str.trim();
+    const strWidth = mixin.stringWidth(str);
+    if (strWidth < width) {
+        return ' '.repeat(width - strWidth) + str;
+    }
+    return str;
+}
+function alignCenter(str, width) {
+    str = str.trim();
+    const strWidth = mixin.stringWidth(str);
+    /* istanbul ignore next */
+    if (strWidth >= width) {
+        return str;
+    }
+    return ' '.repeat((width - strWidth) >> 1) + str;
+}
+let mixin;
+function cliui(opts, _mixin) {
+    mixin = _mixin;
+    return new UI({
+        width: (opts === null || opts === void 0 ? void 0 : opts.width) || getWindowWidth(),
+        wrap: opts === null || opts === void 0 ? void 0 : opts.wrap
+    });
+}
+
+// Bootstrap cliui with CommonJS dependencies:
+const stringWidth = __nccwpck_require__(42577);
+const stripAnsi = __nccwpck_require__(45591);
+const wrap = __nccwpck_require__(59824);
+function ui(opts) {
+    return cliui(opts, {
+        stringWidth,
+        stripAnsi,
+        wrap
+    });
+}
+
+module.exports = ui;
+
+
 /***/ }),
 
 /***/ 53278:
@@ -292984,39 +309127,40 @@ function __napi_rs_initialize_modules(__napiInstance) {
   __napiInstance.exports['__napi_register__copy_3']?.()
   __napiInstance.exports['__napi_register__hash_array_4']?.()
   __napiInstance.exports['__napi_register__hash_file_5']?.()
-  __napiInstance.exports['__napi_register__ImportResult_struct_6']?.()
-  __napiInstance.exports['__napi_register__find_imports_7']?.()
-  __napiInstance.exports['__napi_register__transfer_project_graph_8']?.()
-  __napiInstance.exports['__napi_register__ExternalNode_struct_9']?.()
-  __napiInstance.exports['__napi_register__Target_struct_10']?.()
-  __napiInstance.exports['__napi_register__Project_struct_11']?.()
-  __napiInstance.exports['__napi_register__ProjectGraph_struct_12']?.()
-  __napiInstance.exports['__napi_register__HashPlanner_struct_13']?.()
-  __napiInstance.exports['__napi_register__HashPlanner_impl_17']?.()
-  __napiInstance.exports['__napi_register__HashDetails_struct_18']?.()
-  __napiInstance.exports['__napi_register__HasherOptions_struct_19']?.()
-  __napiInstance.exports['__napi_register__TaskHasher_struct_20']?.()
-  __napiInstance.exports['__napi_register__TaskHasher_impl_23']?.()
-  __napiInstance.exports['__napi_register__Task_struct_24']?.()
-  __napiInstance.exports['__napi_register__TaskTarget_struct_25']?.()
-  __napiInstance.exports['__napi_register__TaskGraph_struct_26']?.()
-  __napiInstance.exports['__napi_register__FileData_struct_27']?.()
-  __napiInstance.exports['__napi_register__InputsInput_struct_28']?.()
-  __napiInstance.exports['__napi_register__FileSetInput_struct_29']?.()
-  __napiInstance.exports['__napi_register__RuntimeInput_struct_30']?.()
-  __napiInstance.exports['__napi_register__EnvironmentInput_struct_31']?.()
-  __napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_32']?.()
-  __napiInstance.exports['__napi_register__DepsOutputsInput_struct_33']?.()
-  __napiInstance.exports['__napi_register__NxJson_struct_34']?.()
-  __napiInstance.exports['__napi_register__WorkspaceContext_struct_35']?.()
-  __napiInstance.exports['__napi_register__WorkspaceContext_impl_44']?.()
-  __napiInstance.exports['__napi_register__WorkspaceErrors_45']?.()
-  __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_46']?.()
-  __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_47']?.()
-  __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_48']?.()
-  __napiInstance.exports['__napi_register__FileMap_struct_49']?.()
-  __napiInstance.exports['__napi_register____test_only_transfer_file_map_50']?.()
-  __napiInstance.exports['__napi_register__IS_WASM_51']?.()
+  __napiInstance.exports['__napi_register__IS_WASM_6']?.()
+  __napiInstance.exports['__napi_register__get_binary_target_7']?.()
+  __napiInstance.exports['__napi_register__ImportResult_struct_8']?.()
+  __napiInstance.exports['__napi_register__find_imports_9']?.()
+  __napiInstance.exports['__napi_register__transfer_project_graph_10']?.()
+  __napiInstance.exports['__napi_register__ExternalNode_struct_11']?.()
+  __napiInstance.exports['__napi_register__Target_struct_12']?.()
+  __napiInstance.exports['__napi_register__Project_struct_13']?.()
+  __napiInstance.exports['__napi_register__ProjectGraph_struct_14']?.()
+  __napiInstance.exports['__napi_register__HashPlanner_struct_15']?.()
+  __napiInstance.exports['__napi_register__HashPlanner_impl_19']?.()
+  __napiInstance.exports['__napi_register__HashDetails_struct_20']?.()
+  __napiInstance.exports['__napi_register__HasherOptions_struct_21']?.()
+  __napiInstance.exports['__napi_register__TaskHasher_struct_22']?.()
+  __napiInstance.exports['__napi_register__TaskHasher_impl_25']?.()
+  __napiInstance.exports['__napi_register__Task_struct_26']?.()
+  __napiInstance.exports['__napi_register__TaskTarget_struct_27']?.()
+  __napiInstance.exports['__napi_register__TaskGraph_struct_28']?.()
+  __napiInstance.exports['__napi_register__FileData_struct_29']?.()
+  __napiInstance.exports['__napi_register__InputsInput_struct_30']?.()
+  __napiInstance.exports['__napi_register__FileSetInput_struct_31']?.()
+  __napiInstance.exports['__napi_register__RuntimeInput_struct_32']?.()
+  __napiInstance.exports['__napi_register__EnvironmentInput_struct_33']?.()
+  __napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_34']?.()
+  __napiInstance.exports['__napi_register__DepsOutputsInput_struct_35']?.()
+  __napiInstance.exports['__napi_register__NxJson_struct_36']?.()
+  __napiInstance.exports['__napi_register__WorkspaceContext_struct_37']?.()
+  __napiInstance.exports['__napi_register__WorkspaceContext_impl_46']?.()
+  __napiInstance.exports['__napi_register__WorkspaceErrors_47']?.()
+  __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_48']?.()
+  __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_49']?.()
+  __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_50']?.()
+  __napiInstance.exports['__napi_register__FileMap_struct_51']?.()
+  __napiInstance.exports['__napi_register____test_only_transfer_file_map_52']?.()
 }
 module.exports.HashPlanner = __napiModule.exports.HashPlanner
 module.exports.ImportResult = __napiModule.exports.ImportResult
@@ -293025,6 +309169,7 @@ module.exports.WorkspaceContext = __napiModule.exports.WorkspaceContext
 module.exports.copy = __napiModule.exports.copy
 module.exports.expandOutputs = __napiModule.exports.expandOutputs
 module.exports.findImports = __napiModule.exports.findImports
+module.exports.getBinaryTarget = __napiModule.exports.getBinaryTarget
 module.exports.getFilesForOutputs = __napiModule.exports.getFilesForOutputs
 module.exports.hashArray = __napiModule.exports.hashArray
 module.exports.hashFile = __napiModule.exports.hashFile
@@ -293081,7 +309226,7 @@ module.exports = JSON.parse('{"$schema":"https://json.schemastore.org/tsconfig",
 /***/ ((module) => {
 
 "use strict";
-module.exports = {"version":"19.5.0"};
+module.exports = {"version":"19.6.0"};
 
 /***/ }),
 
diff --git a/actions/plan/dist/native-bindings.js b/actions/plan/dist/native-bindings.js
index 5d7cd477..9c34dc6e 100644
--- a/actions/plan/dist/native-bindings.js
+++ b/actions/plan/dist/native-bindings.js
@@ -372,6 +372,7 @@ module.exports.copy = nativeBinding.copy
 module.exports.EventType = nativeBinding.EventType
 module.exports.expandOutputs = nativeBinding.expandOutputs
 module.exports.findImports = nativeBinding.findImports
+module.exports.getBinaryTarget = nativeBinding.getBinaryTarget
 module.exports.getFilesForOutputs = nativeBinding.getFilesForOutputs
 module.exports.hashArray = nativeBinding.hashArray
 module.exports.hashFile = nativeBinding.hashFile
diff --git a/actions/plan/dist/nx.linux-x64-gnu.node b/actions/plan/dist/nx.linux-x64-gnu.node
index 836b11b7..6ab26426 100644
Binary files a/actions/plan/dist/nx.linux-x64-gnu.node and b/actions/plan/dist/nx.linux-x64-gnu.node differ
diff --git a/actions/plan/dist/package.json b/actions/plan/dist/package.json
new file mode 100644
index 00000000..3a8a59d8
--- /dev/null
+++ b/actions/plan/dist/package.json
@@ -0,0 +1,196 @@
+{
+  "name": "nx",
+  "version": "19.6.0",
+  "private": false,
+  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/nrwl/nx.git",
+    "directory": "packages/nx"
+  },
+  "scripts": {
+    "postinstall": "node ./bin/post-install"
+  },
+  "keywords": [
+    "Monorepo",
+    "Angular",
+    "React",
+    "Web",
+    "Node",
+    "Nest",
+    "Jest",
+    "Cypress",
+    "CLI",
+    "Testing",
+    "Front-end",
+    "Backend",
+    "Mobile"
+  ],
+  "bin": {
+    "nx": "./bin/nx.js",
+    "nx-cloud": "./bin/nx-cloud.js"
+  },
+  "author": "Victor Savkin",
+  "license": "MIT",
+  "bugs": {
+    "url": "https://github.com/nrwl/nx/issues"
+  },
+  "homepage": "https://nx.dev",
+  "dependencies": {
+    "@napi-rs/wasm-runtime": "0.2.4",
+    "@yarnpkg/lockfile": "^1.1.0",
+    "@yarnpkg/parsers": "3.0.0-rc.46",
+    "@zkochan/js-yaml": "0.0.7",
+    "axios": "^1.7.2",
+    "chalk": "^4.1.0",
+    "cli-cursor": "3.1.0",
+    "cli-spinners": "2.6.1",
+    "cliui": "^8.0.1",
+    "dotenv": "~16.4.5",
+    "dotenv-expand": "~11.0.6",
+    "enquirer": "~2.3.6",
+    "figures": "3.2.0",
+    "flat": "^5.0.2",
+    "front-matter": "^4.0.2",
+    "fs-extra": "^11.1.0",
+    "ignore": "^5.0.4",
+    "jest-diff": "^29.4.1",
+    "jsonc-parser": "3.2.0",
+    "lines-and-columns": "~2.0.3",
+    "minimatch": "9.0.3",
+    "npm-run-path": "^4.0.1",
+    "open": "^8.4.0",
+    "semver": "^7.5.3",
+    "string-width": "^4.2.3",
+    "strong-log-transformer": "^2.1.0",
+    "tar-stream": "~2.2.0",
+    "tmp": "~0.2.1",
+    "tsconfig-paths": "^4.1.2",
+    "tslib": "^2.3.0",
+    "yargs": "^17.6.2",
+    "yargs-parser": "21.1.1",
+    "node-machine-id": "1.1.12",
+    "ora": "5.3.0",
+    "@nrwl/tao": "19.6.0"
+  },
+  "peerDependencies": {
+    "@swc-node/register": "^1.8.0",
+    "@swc/core": "^1.3.85"
+  },
+  "peerDependenciesMeta": {
+    "@swc-node/register": {
+      "optional": true
+    },
+    "@swc/core": {
+      "optional": true
+    }
+  },
+  "optionalDependencies": {
+    "@nx/nx-darwin-x64": "19.6.0",
+    "@nx/nx-darwin-arm64": "19.6.0",
+    "@nx/nx-linux-x64-gnu": "19.6.0",
+    "@nx/nx-linux-x64-musl": "19.6.0",
+    "@nx/nx-win32-x64-msvc": "19.6.0",
+    "@nx/nx-linux-arm64-gnu": "19.6.0",
+    "@nx/nx-linux-arm64-musl": "19.6.0",
+    "@nx/nx-linux-arm-gnueabihf": "19.6.0",
+    "@nx/nx-win32-arm64-msvc": "19.6.0",
+    "@nx/nx-freebsd-x64": "19.6.0"
+  },
+  "nx-migrations": {
+    "migrations": "./migrations.json",
+    "packageGroup": [
+      "@nx/js",
+      "@nrwl/js",
+      "@nx/jest",
+      "@nrwl/jest",
+      "@nx/linter",
+      "@nx/eslint",
+      "@nrwl/linter",
+      "@nx/workspace",
+      "@nrwl/workspace",
+      "@nx/angular",
+      "@nrwl/angular",
+      "@nx/cypress",
+      "@nrwl/cypress",
+      "@nx/detox",
+      "@nrwl/detox",
+      "@nx/devkit",
+      "@nrwl/devkit",
+      "@nx/esbuild",
+      "@nrwl/esbuild",
+      "@nx/eslint-plugin",
+      "@nrwl/eslint-plugin-nx",
+      "@nx/expo",
+      "@nrwl/expo",
+      "@nx/express",
+      "@nrwl/express",
+      "@nx/gradle",
+      "@nx/nest",
+      "@nrwl/nest",
+      "@nx/next",
+      "@nrwl/next",
+      "@nx/node",
+      "@nrwl/node",
+      "@nx/nuxt",
+      "@nx/playwright",
+      "@nx/plugin",
+      "@nrwl/nx-plugin",
+      "@nx/react",
+      "@nrwl/react",
+      "@nx/react-native",
+      "@nrwl/react-native",
+      "@nx/rollup",
+      "@nrwl/rollup",
+      "@nx/remix",
+      "@nrwl/remix",
+      "@nx/storybook",
+      "@nrwl/storybook",
+      "@nrwl/tao",
+      "@nx/vite",
+      "@nrwl/vite",
+      "@nx/vue",
+      "@nx/web",
+      "@nrwl/web",
+      "@nx/webpack",
+      "@nrwl/webpack",
+      {
+        "package": "nx-cloud",
+        "version": "latest"
+      },
+      {
+        "package": "@nrwl/nx-cloud",
+        "version": "latest"
+      }
+    ]
+  },
+  "generators": "./generators.json",
+  "executors": "./executors.json",
+  "builders": "./executors.json",
+  "publishConfig": {
+    "access": "public"
+  },
+  "napi": {
+    "binaryName": "nx",
+    "packageName": "@nx/nx",
+    "wasm": {
+      "initialMemory": 1024,
+      "maximumMemory": 32768
+    },
+    "targets": [
+      "x86_64-unknown-linux-gnu",
+      "x86_64-pc-windows-msvc",
+      "x86_64-apple-darwin",
+      "aarch64-apple-darwin",
+      "aarch64-unknown-linux-gnu",
+      "aarch64-unknown-linux-musl",
+      "aarch64-pc-windows-msvc",
+      "armv7-unknown-linux-gnueabihf",
+      "x86_64-unknown-linux-musl",
+      "x86_64-unknown-freebsd"
+    ]
+  },
+  "main": "./bin/nx.js",
+  "type": "commonjs",
+  "types": "./bin/nx.d.ts"
+}
diff --git a/actions/run-many/dist/index.js b/actions/run-many/dist/index.js
index 73f3aa31..b1ceb0f9 100644
--- a/actions/run-many/dist/index.js
+++ b/actions/run-many/dist/index.js
@@ -65534,20002 +65534,29280 @@ rimraf.sync = rimrafSync
 
 /***/ }),
 
-/***/ 21867:
-/***/ ((module, exports, __nccwpck_require__) => {
+/***/ 1752:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-/*! safe-buffer. MIT License. Feross Aboukhadijeh  */
-/* eslint-disable node/no-deprecated-api */
-var buffer = __nccwpck_require__(14300)
-var Buffer = buffer.Buffer
+"use strict";
 
-// alternative to using Object.keys for old browsers
-function copyProps (src, dst) {
-  for (var key in src) {
-    dst[key] = src[key]
-  }
-}
-if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
-  module.exports = buffer
-} else {
-  // Copy properties from require('buffer')
-  copyProps(buffer, exports)
-  exports.Buffer = SafeBuffer
-}
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+    if (k2 === undefined) k2 = k;
+    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+    if (k2 === undefined) k2 = k;
+    o[k2] = m[k];
+}));
+var __exportStar = (this && this.__exportStar) || function(m, exports) {
+    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.interval = exports.iif = exports.generate = exports.fromEventPattern = exports.fromEvent = exports.from = exports.forkJoin = exports.empty = exports.defer = exports.connectable = exports.concat = exports.combineLatest = exports.bindNodeCallback = exports.bindCallback = exports.UnsubscriptionError = exports.TimeoutError = exports.SequenceError = exports.ObjectUnsubscribedError = exports.NotFoundError = exports.EmptyError = exports.ArgumentOutOfRangeError = exports.firstValueFrom = exports.lastValueFrom = exports.isObservable = exports.identity = exports.noop = exports.pipe = exports.NotificationKind = exports.Notification = exports.Subscriber = exports.Subscription = exports.Scheduler = exports.VirtualAction = exports.VirtualTimeScheduler = exports.animationFrameScheduler = exports.animationFrame = exports.queueScheduler = exports.queue = exports.asyncScheduler = exports.async = exports.asapScheduler = exports.asap = exports.AsyncSubject = exports.ReplaySubject = exports.BehaviorSubject = exports.Subject = exports.animationFrames = exports.observable = exports.ConnectableObservable = exports.Observable = void 0;
+exports.filter = exports.expand = exports.exhaustMap = exports.exhaustAll = exports.exhaust = exports.every = exports.endWith = exports.elementAt = exports.distinctUntilKeyChanged = exports.distinctUntilChanged = exports.distinct = exports.dematerialize = exports.delayWhen = exports.delay = exports.defaultIfEmpty = exports.debounceTime = exports.debounce = exports.count = exports.connect = exports.concatWith = exports.concatMapTo = exports.concatMap = exports.concatAll = exports.combineLatestWith = exports.combineLatestAll = exports.combineAll = exports.catchError = exports.bufferWhen = exports.bufferToggle = exports.bufferTime = exports.bufferCount = exports.buffer = exports.auditTime = exports.audit = exports.config = exports.NEVER = exports.EMPTY = exports.scheduled = exports.zip = exports.using = exports.timer = exports.throwError = exports.range = exports.race = exports.partition = exports.pairs = exports.onErrorResumeNext = exports.of = exports.never = exports.merge = void 0;
+exports.switchMap = exports.switchAll = exports.subscribeOn = exports.startWith = exports.skipWhile = exports.skipUntil = exports.skipLast = exports.skip = exports.single = exports.shareReplay = exports.share = exports.sequenceEqual = exports.scan = exports.sampleTime = exports.sample = exports.refCount = exports.retryWhen = exports.retry = exports.repeatWhen = exports.repeat = exports.reduce = exports.raceWith = exports.publishReplay = exports.publishLast = exports.publishBehavior = exports.publish = exports.pluck = exports.pairwise = exports.onErrorResumeNextWith = exports.observeOn = exports.multicast = exports.min = exports.mergeWith = exports.mergeScan = exports.mergeMapTo = exports.mergeMap = exports.flatMap = exports.mergeAll = exports.max = exports.materialize = exports.mapTo = exports.map = exports.last = exports.isEmpty = exports.ignoreElements = exports.groupBy = exports.first = exports.findIndex = exports.find = exports.finalize = void 0;
+exports.zipWith = exports.zipAll = exports.withLatestFrom = exports.windowWhen = exports.windowToggle = exports.windowTime = exports.windowCount = exports.window = exports.toArray = exports.timestamp = exports.timeoutWith = exports.timeout = exports.timeInterval = exports.throwIfEmpty = exports.throttleTime = exports.throttle = exports.tap = exports.takeWhile = exports.takeUntil = exports.takeLast = exports.take = exports.switchScan = exports.switchMapTo = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+Object.defineProperty(exports, "Observable", ({ enumerable: true, get: function () { return Observable_1.Observable; } }));
+var ConnectableObservable_1 = __nccwpck_require__(30420);
+Object.defineProperty(exports, "ConnectableObservable", ({ enumerable: true, get: function () { return ConnectableObservable_1.ConnectableObservable; } }));
+var observable_1 = __nccwpck_require__(17186);
+Object.defineProperty(exports, "observable", ({ enumerable: true, get: function () { return observable_1.observable; } }));
+var animationFrames_1 = __nccwpck_require__(38197);
+Object.defineProperty(exports, "animationFrames", ({ enumerable: true, get: function () { return animationFrames_1.animationFrames; } }));
+var Subject_1 = __nccwpck_require__(49944);
+Object.defineProperty(exports, "Subject", ({ enumerable: true, get: function () { return Subject_1.Subject; } }));
+var BehaviorSubject_1 = __nccwpck_require__(23473);
+Object.defineProperty(exports, "BehaviorSubject", ({ enumerable: true, get: function () { return BehaviorSubject_1.BehaviorSubject; } }));
+var ReplaySubject_1 = __nccwpck_require__(22351);
+Object.defineProperty(exports, "ReplaySubject", ({ enumerable: true, get: function () { return ReplaySubject_1.ReplaySubject; } }));
+var AsyncSubject_1 = __nccwpck_require__(9747);
+Object.defineProperty(exports, "AsyncSubject", ({ enumerable: true, get: function () { return AsyncSubject_1.AsyncSubject; } }));
+var asap_1 = __nccwpck_require__(43905);
+Object.defineProperty(exports, "asap", ({ enumerable: true, get: function () { return asap_1.asap; } }));
+Object.defineProperty(exports, "asapScheduler", ({ enumerable: true, get: function () { return asap_1.asapScheduler; } }));
+var async_1 = __nccwpck_require__(76072);
+Object.defineProperty(exports, "async", ({ enumerable: true, get: function () { return async_1.async; } }));
+Object.defineProperty(exports, "asyncScheduler", ({ enumerable: true, get: function () { return async_1.asyncScheduler; } }));
+var queue_1 = __nccwpck_require__(82059);
+Object.defineProperty(exports, "queue", ({ enumerable: true, get: function () { return queue_1.queue; } }));
+Object.defineProperty(exports, "queueScheduler", ({ enumerable: true, get: function () { return queue_1.queueScheduler; } }));
+var animationFrame_1 = __nccwpck_require__(51359);
+Object.defineProperty(exports, "animationFrame", ({ enumerable: true, get: function () { return animationFrame_1.animationFrame; } }));
+Object.defineProperty(exports, "animationFrameScheduler", ({ enumerable: true, get: function () { return animationFrame_1.animationFrameScheduler; } }));
+var VirtualTimeScheduler_1 = __nccwpck_require__(75348);
+Object.defineProperty(exports, "VirtualTimeScheduler", ({ enumerable: true, get: function () { return VirtualTimeScheduler_1.VirtualTimeScheduler; } }));
+Object.defineProperty(exports, "VirtualAction", ({ enumerable: true, get: function () { return VirtualTimeScheduler_1.VirtualAction; } }));
+var Scheduler_1 = __nccwpck_require__(76243);
+Object.defineProperty(exports, "Scheduler", ({ enumerable: true, get: function () { return Scheduler_1.Scheduler; } }));
+var Subscription_1 = __nccwpck_require__(79548);
+Object.defineProperty(exports, "Subscription", ({ enumerable: true, get: function () { return Subscription_1.Subscription; } }));
+var Subscriber_1 = __nccwpck_require__(67121);
+Object.defineProperty(exports, "Subscriber", ({ enumerable: true, get: function () { return Subscriber_1.Subscriber; } }));
+var Notification_1 = __nccwpck_require__(12241);
+Object.defineProperty(exports, "Notification", ({ enumerable: true, get: function () { return Notification_1.Notification; } }));
+Object.defineProperty(exports, "NotificationKind", ({ enumerable: true, get: function () { return Notification_1.NotificationKind; } }));
+var pipe_1 = __nccwpck_require__(49587);
+Object.defineProperty(exports, "pipe", ({ enumerable: true, get: function () { return pipe_1.pipe; } }));
+var noop_1 = __nccwpck_require__(11642);
+Object.defineProperty(exports, "noop", ({ enumerable: true, get: function () { return noop_1.noop; } }));
+var identity_1 = __nccwpck_require__(60283);
+Object.defineProperty(exports, "identity", ({ enumerable: true, get: function () { return identity_1.identity; } }));
+var isObservable_1 = __nccwpck_require__(72259);
+Object.defineProperty(exports, "isObservable", ({ enumerable: true, get: function () { return isObservable_1.isObservable; } }));
+var lastValueFrom_1 = __nccwpck_require__(49713);
+Object.defineProperty(exports, "lastValueFrom", ({ enumerable: true, get: function () { return lastValueFrom_1.lastValueFrom; } }));
+var firstValueFrom_1 = __nccwpck_require__(19369);
+Object.defineProperty(exports, "firstValueFrom", ({ enumerable: true, get: function () { return firstValueFrom_1.firstValueFrom; } }));
+var ArgumentOutOfRangeError_1 = __nccwpck_require__(49796);
+Object.defineProperty(exports, "ArgumentOutOfRangeError", ({ enumerable: true, get: function () { return ArgumentOutOfRangeError_1.ArgumentOutOfRangeError; } }));
+var EmptyError_1 = __nccwpck_require__(99391);
+Object.defineProperty(exports, "EmptyError", ({ enumerable: true, get: function () { return EmptyError_1.EmptyError; } }));
+var NotFoundError_1 = __nccwpck_require__(74431);
+Object.defineProperty(exports, "NotFoundError", ({ enumerable: true, get: function () { return NotFoundError_1.NotFoundError; } }));
+var ObjectUnsubscribedError_1 = __nccwpck_require__(95266);
+Object.defineProperty(exports, "ObjectUnsubscribedError", ({ enumerable: true, get: function () { return ObjectUnsubscribedError_1.ObjectUnsubscribedError; } }));
+var SequenceError_1 = __nccwpck_require__(49048);
+Object.defineProperty(exports, "SequenceError", ({ enumerable: true, get: function () { return SequenceError_1.SequenceError; } }));
+var timeout_1 = __nccwpck_require__(12051);
+Object.defineProperty(exports, "TimeoutError", ({ enumerable: true, get: function () { return timeout_1.TimeoutError; } }));
+var UnsubscriptionError_1 = __nccwpck_require__(56776);
+Object.defineProperty(exports, "UnsubscriptionError", ({ enumerable: true, get: function () { return UnsubscriptionError_1.UnsubscriptionError; } }));
+var bindCallback_1 = __nccwpck_require__(16949);
+Object.defineProperty(exports, "bindCallback", ({ enumerable: true, get: function () { return bindCallback_1.bindCallback; } }));
+var bindNodeCallback_1 = __nccwpck_require__(51150);
+Object.defineProperty(exports, "bindNodeCallback", ({ enumerable: true, get: function () { return bindNodeCallback_1.bindNodeCallback; } }));
+var combineLatest_1 = __nccwpck_require__(46843);
+Object.defineProperty(exports, "combineLatest", ({ enumerable: true, get: function () { return combineLatest_1.combineLatest; } }));
+var concat_1 = __nccwpck_require__(4675);
+Object.defineProperty(exports, "concat", ({ enumerable: true, get: function () { return concat_1.concat; } }));
+var connectable_1 = __nccwpck_require__(13152);
+Object.defineProperty(exports, "connectable", ({ enumerable: true, get: function () { return connectable_1.connectable; } }));
+var defer_1 = __nccwpck_require__(27672);
+Object.defineProperty(exports, "defer", ({ enumerable: true, get: function () { return defer_1.defer; } }));
+var empty_1 = __nccwpck_require__(70437);
+Object.defineProperty(exports, "empty", ({ enumerable: true, get: function () { return empty_1.empty; } }));
+var forkJoin_1 = __nccwpck_require__(47358);
+Object.defineProperty(exports, "forkJoin", ({ enumerable: true, get: function () { return forkJoin_1.forkJoin; } }));
+var from_1 = __nccwpck_require__(18309);
+Object.defineProperty(exports, "from", ({ enumerable: true, get: function () { return from_1.from; } }));
+var fromEvent_1 = __nccwpck_require__(93238);
+Object.defineProperty(exports, "fromEvent", ({ enumerable: true, get: function () { return fromEvent_1.fromEvent; } }));
+var fromEventPattern_1 = __nccwpck_require__(65680);
+Object.defineProperty(exports, "fromEventPattern", ({ enumerable: true, get: function () { return fromEventPattern_1.fromEventPattern; } }));
+var generate_1 = __nccwpck_require__(52668);
+Object.defineProperty(exports, "generate", ({ enumerable: true, get: function () { return generate_1.generate; } }));
+var iif_1 = __nccwpck_require__(26514);
+Object.defineProperty(exports, "iif", ({ enumerable: true, get: function () { return iif_1.iif; } }));
+var interval_1 = __nccwpck_require__(20029);
+Object.defineProperty(exports, "interval", ({ enumerable: true, get: function () { return interval_1.interval; } }));
+var merge_1 = __nccwpck_require__(75122);
+Object.defineProperty(exports, "merge", ({ enumerable: true, get: function () { return merge_1.merge; } }));
+var never_1 = __nccwpck_require__(6228);
+Object.defineProperty(exports, "never", ({ enumerable: true, get: function () { return never_1.never; } }));
+var of_1 = __nccwpck_require__(72163);
+Object.defineProperty(exports, "of", ({ enumerable: true, get: function () { return of_1.of; } }));
+var onErrorResumeNext_1 = __nccwpck_require__(16089);
+Object.defineProperty(exports, "onErrorResumeNext", ({ enumerable: true, get: function () { return onErrorResumeNext_1.onErrorResumeNext; } }));
+var pairs_1 = __nccwpck_require__(30505);
+Object.defineProperty(exports, "pairs", ({ enumerable: true, get: function () { return pairs_1.pairs; } }));
+var partition_1 = __nccwpck_require__(15506);
+Object.defineProperty(exports, "partition", ({ enumerable: true, get: function () { return partition_1.partition; } }));
+var race_1 = __nccwpck_require__(16940);
+Object.defineProperty(exports, "race", ({ enumerable: true, get: function () { return race_1.race; } }));
+var range_1 = __nccwpck_require__(88538);
+Object.defineProperty(exports, "range", ({ enumerable: true, get: function () { return range_1.range; } }));
+var throwError_1 = __nccwpck_require__(66381);
+Object.defineProperty(exports, "throwError", ({ enumerable: true, get: function () { return throwError_1.throwError; } }));
+var timer_1 = __nccwpck_require__(59757);
+Object.defineProperty(exports, "timer", ({ enumerable: true, get: function () { return timer_1.timer; } }));
+var using_1 = __nccwpck_require__(8445);
+Object.defineProperty(exports, "using", ({ enumerable: true, get: function () { return using_1.using; } }));
+var zip_1 = __nccwpck_require__(62504);
+Object.defineProperty(exports, "zip", ({ enumerable: true, get: function () { return zip_1.zip; } }));
+var scheduled_1 = __nccwpck_require__(6151);
+Object.defineProperty(exports, "scheduled", ({ enumerable: true, get: function () { return scheduled_1.scheduled; } }));
+var empty_2 = __nccwpck_require__(70437);
+Object.defineProperty(exports, "EMPTY", ({ enumerable: true, get: function () { return empty_2.EMPTY; } }));
+var never_2 = __nccwpck_require__(6228);
+Object.defineProperty(exports, "NEVER", ({ enumerable: true, get: function () { return never_2.NEVER; } }));
+__exportStar(__nccwpck_require__(36639), exports);
+var config_1 = __nccwpck_require__(92233);
+Object.defineProperty(exports, "config", ({ enumerable: true, get: function () { return config_1.config; } }));
+var audit_1 = __nccwpck_require__(82704);
+Object.defineProperty(exports, "audit", ({ enumerable: true, get: function () { return audit_1.audit; } }));
+var auditTime_1 = __nccwpck_require__(18780);
+Object.defineProperty(exports, "auditTime", ({ enumerable: true, get: function () { return auditTime_1.auditTime; } }));
+var buffer_1 = __nccwpck_require__(34253);
+Object.defineProperty(exports, "buffer", ({ enumerable: true, get: function () { return buffer_1.buffer; } }));
+var bufferCount_1 = __nccwpck_require__(17253);
+Object.defineProperty(exports, "bufferCount", ({ enumerable: true, get: function () { return bufferCount_1.bufferCount; } }));
+var bufferTime_1 = __nccwpck_require__(73102);
+Object.defineProperty(exports, "bufferTime", ({ enumerable: true, get: function () { return bufferTime_1.bufferTime; } }));
+var bufferToggle_1 = __nccwpck_require__(83781);
+Object.defineProperty(exports, "bufferToggle", ({ enumerable: true, get: function () { return bufferToggle_1.bufferToggle; } }));
+var bufferWhen_1 = __nccwpck_require__(82855);
+Object.defineProperty(exports, "bufferWhen", ({ enumerable: true, get: function () { return bufferWhen_1.bufferWhen; } }));
+var catchError_1 = __nccwpck_require__(37765);
+Object.defineProperty(exports, "catchError", ({ enumerable: true, get: function () { return catchError_1.catchError; } }));
+var combineAll_1 = __nccwpck_require__(88817);
+Object.defineProperty(exports, "combineAll", ({ enumerable: true, get: function () { return combineAll_1.combineAll; } }));
+var combineLatestAll_1 = __nccwpck_require__(91063);
+Object.defineProperty(exports, "combineLatestAll", ({ enumerable: true, get: function () { return combineLatestAll_1.combineLatestAll; } }));
+var combineLatestWith_1 = __nccwpck_require__(19044);
+Object.defineProperty(exports, "combineLatestWith", ({ enumerable: true, get: function () { return combineLatestWith_1.combineLatestWith; } }));
+var concatAll_1 = __nccwpck_require__(88049);
+Object.defineProperty(exports, "concatAll", ({ enumerable: true, get: function () { return concatAll_1.concatAll; } }));
+var concatMap_1 = __nccwpck_require__(19130);
+Object.defineProperty(exports, "concatMap", ({ enumerable: true, get: function () { return concatMap_1.concatMap; } }));
+var concatMapTo_1 = __nccwpck_require__(61596);
+Object.defineProperty(exports, "concatMapTo", ({ enumerable: true, get: function () { return concatMapTo_1.concatMapTo; } }));
+var concatWith_1 = __nccwpck_require__(97998);
+Object.defineProperty(exports, "concatWith", ({ enumerable: true, get: function () { return concatWith_1.concatWith; } }));
+var connect_1 = __nccwpck_require__(51101);
+Object.defineProperty(exports, "connect", ({ enumerable: true, get: function () { return connect_1.connect; } }));
+var count_1 = __nccwpck_require__(36571);
+Object.defineProperty(exports, "count", ({ enumerable: true, get: function () { return count_1.count; } }));
+var debounce_1 = __nccwpck_require__(19348);
+Object.defineProperty(exports, "debounce", ({ enumerable: true, get: function () { return debounce_1.debounce; } }));
+var debounceTime_1 = __nccwpck_require__(62379);
+Object.defineProperty(exports, "debounceTime", ({ enumerable: true, get: function () { return debounceTime_1.debounceTime; } }));
+var defaultIfEmpty_1 = __nccwpck_require__(30621);
+Object.defineProperty(exports, "defaultIfEmpty", ({ enumerable: true, get: function () { return defaultIfEmpty_1.defaultIfEmpty; } }));
+var delay_1 = __nccwpck_require__(99818);
+Object.defineProperty(exports, "delay", ({ enumerable: true, get: function () { return delay_1.delay; } }));
+var delayWhen_1 = __nccwpck_require__(16994);
+Object.defineProperty(exports, "delayWhen", ({ enumerable: true, get: function () { return delayWhen_1.delayWhen; } }));
+var dematerialize_1 = __nccwpck_require__(95338);
+Object.defineProperty(exports, "dematerialize", ({ enumerable: true, get: function () { return dematerialize_1.dematerialize; } }));
+var distinct_1 = __nccwpck_require__(52594);
+Object.defineProperty(exports, "distinct", ({ enumerable: true, get: function () { return distinct_1.distinct; } }));
+var distinctUntilChanged_1 = __nccwpck_require__(20632);
+Object.defineProperty(exports, "distinctUntilChanged", ({ enumerable: true, get: function () { return distinctUntilChanged_1.distinctUntilChanged; } }));
+var distinctUntilKeyChanged_1 = __nccwpck_require__(13809);
+Object.defineProperty(exports, "distinctUntilKeyChanged", ({ enumerable: true, get: function () { return distinctUntilKeyChanged_1.distinctUntilKeyChanged; } }));
+var elementAt_1 = __nccwpck_require__(73381);
+Object.defineProperty(exports, "elementAt", ({ enumerable: true, get: function () { return elementAt_1.elementAt; } }));
+var endWith_1 = __nccwpck_require__(42961);
+Object.defineProperty(exports, "endWith", ({ enumerable: true, get: function () { return endWith_1.endWith; } }));
+var every_1 = __nccwpck_require__(69559);
+Object.defineProperty(exports, "every", ({ enumerable: true, get: function () { return every_1.every; } }));
+var exhaust_1 = __nccwpck_require__(75686);
+Object.defineProperty(exports, "exhaust", ({ enumerable: true, get: function () { return exhaust_1.exhaust; } }));
+var exhaustAll_1 = __nccwpck_require__(79777);
+Object.defineProperty(exports, "exhaustAll", ({ enumerable: true, get: function () { return exhaustAll_1.exhaustAll; } }));
+var exhaustMap_1 = __nccwpck_require__(21527);
+Object.defineProperty(exports, "exhaustMap", ({ enumerable: true, get: function () { return exhaustMap_1.exhaustMap; } }));
+var expand_1 = __nccwpck_require__(21585);
+Object.defineProperty(exports, "expand", ({ enumerable: true, get: function () { return expand_1.expand; } }));
+var filter_1 = __nccwpck_require__(36894);
+Object.defineProperty(exports, "filter", ({ enumerable: true, get: function () { return filter_1.filter; } }));
+var finalize_1 = __nccwpck_require__(4013);
+Object.defineProperty(exports, "finalize", ({ enumerable: true, get: function () { return finalize_1.finalize; } }));
+var find_1 = __nccwpck_require__(28981);
+Object.defineProperty(exports, "find", ({ enumerable: true, get: function () { return find_1.find; } }));
+var findIndex_1 = __nccwpck_require__(92602);
+Object.defineProperty(exports, "findIndex", ({ enumerable: true, get: function () { return findIndex_1.findIndex; } }));
+var first_1 = __nccwpck_require__(63345);
+Object.defineProperty(exports, "first", ({ enumerable: true, get: function () { return first_1.first; } }));
+var groupBy_1 = __nccwpck_require__(51650);
+Object.defineProperty(exports, "groupBy", ({ enumerable: true, get: function () { return groupBy_1.groupBy; } }));
+var ignoreElements_1 = __nccwpck_require__(31062);
+Object.defineProperty(exports, "ignoreElements", ({ enumerable: true, get: function () { return ignoreElements_1.ignoreElements; } }));
+var isEmpty_1 = __nccwpck_require__(77722);
+Object.defineProperty(exports, "isEmpty", ({ enumerable: true, get: function () { return isEmpty_1.isEmpty; } }));
+var last_1 = __nccwpck_require__(46831);
+Object.defineProperty(exports, "last", ({ enumerable: true, get: function () { return last_1.last; } }));
+var map_1 = __nccwpck_require__(5987);
+Object.defineProperty(exports, "map", ({ enumerable: true, get: function () { return map_1.map; } }));
+var mapTo_1 = __nccwpck_require__(52300);
+Object.defineProperty(exports, "mapTo", ({ enumerable: true, get: function () { return mapTo_1.mapTo; } }));
+var materialize_1 = __nccwpck_require__(67108);
+Object.defineProperty(exports, "materialize", ({ enumerable: true, get: function () { return materialize_1.materialize; } }));
+var max_1 = __nccwpck_require__(17314);
+Object.defineProperty(exports, "max", ({ enumerable: true, get: function () { return max_1.max; } }));
+var mergeAll_1 = __nccwpck_require__(2057);
+Object.defineProperty(exports, "mergeAll", ({ enumerable: true, get: function () { return mergeAll_1.mergeAll; } }));
+var flatMap_1 = __nccwpck_require__(40186);
+Object.defineProperty(exports, "flatMap", ({ enumerable: true, get: function () { return flatMap_1.flatMap; } }));
+var mergeMap_1 = __nccwpck_require__(69914);
+Object.defineProperty(exports, "mergeMap", ({ enumerable: true, get: function () { return mergeMap_1.mergeMap; } }));
+var mergeMapTo_1 = __nccwpck_require__(49151);
+Object.defineProperty(exports, "mergeMapTo", ({ enumerable: true, get: function () { return mergeMapTo_1.mergeMapTo; } }));
+var mergeScan_1 = __nccwpck_require__(11519);
+Object.defineProperty(exports, "mergeScan", ({ enumerable: true, get: function () { return mergeScan_1.mergeScan; } }));
+var mergeWith_1 = __nccwpck_require__(31564);
+Object.defineProperty(exports, "mergeWith", ({ enumerable: true, get: function () { return mergeWith_1.mergeWith; } }));
+var min_1 = __nccwpck_require__(87641);
+Object.defineProperty(exports, "min", ({ enumerable: true, get: function () { return min_1.min; } }));
+var multicast_1 = __nccwpck_require__(65457);
+Object.defineProperty(exports, "multicast", ({ enumerable: true, get: function () { return multicast_1.multicast; } }));
+var observeOn_1 = __nccwpck_require__(22451);
+Object.defineProperty(exports, "observeOn", ({ enumerable: true, get: function () { return observeOn_1.observeOn; } }));
+var onErrorResumeNextWith_1 = __nccwpck_require__(33569);
+Object.defineProperty(exports, "onErrorResumeNextWith", ({ enumerable: true, get: function () { return onErrorResumeNextWith_1.onErrorResumeNextWith; } }));
+var pairwise_1 = __nccwpck_require__(52206);
+Object.defineProperty(exports, "pairwise", ({ enumerable: true, get: function () { return pairwise_1.pairwise; } }));
+var pluck_1 = __nccwpck_require__(16073);
+Object.defineProperty(exports, "pluck", ({ enumerable: true, get: function () { return pluck_1.pluck; } }));
+var publish_1 = __nccwpck_require__(84084);
+Object.defineProperty(exports, "publish", ({ enumerable: true, get: function () { return publish_1.publish; } }));
+var publishBehavior_1 = __nccwpck_require__(40045);
+Object.defineProperty(exports, "publishBehavior", ({ enumerable: true, get: function () { return publishBehavior_1.publishBehavior; } }));
+var publishLast_1 = __nccwpck_require__(84149);
+Object.defineProperty(exports, "publishLast", ({ enumerable: true, get: function () { return publishLast_1.publishLast; } }));
+var publishReplay_1 = __nccwpck_require__(47656);
+Object.defineProperty(exports, "publishReplay", ({ enumerable: true, get: function () { return publishReplay_1.publishReplay; } }));
+var raceWith_1 = __nccwpck_require__(58008);
+Object.defineProperty(exports, "raceWith", ({ enumerable: true, get: function () { return raceWith_1.raceWith; } }));
+var reduce_1 = __nccwpck_require__(62087);
+Object.defineProperty(exports, "reduce", ({ enumerable: true, get: function () { return reduce_1.reduce; } }));
+var repeat_1 = __nccwpck_require__(22418);
+Object.defineProperty(exports, "repeat", ({ enumerable: true, get: function () { return repeat_1.repeat; } }));
+var repeatWhen_1 = __nccwpck_require__(70754);
+Object.defineProperty(exports, "repeatWhen", ({ enumerable: true, get: function () { return repeatWhen_1.repeatWhen; } }));
+var retry_1 = __nccwpck_require__(56251);
+Object.defineProperty(exports, "retry", ({ enumerable: true, get: function () { return retry_1.retry; } }));
+var retryWhen_1 = __nccwpck_require__(69018);
+Object.defineProperty(exports, "retryWhen", ({ enumerable: true, get: function () { return retryWhen_1.retryWhen; } }));
+var refCount_1 = __nccwpck_require__(2331);
+Object.defineProperty(exports, "refCount", ({ enumerable: true, get: function () { return refCount_1.refCount; } }));
+var sample_1 = __nccwpck_require__(13774);
+Object.defineProperty(exports, "sample", ({ enumerable: true, get: function () { return sample_1.sample; } }));
+var sampleTime_1 = __nccwpck_require__(49807);
+Object.defineProperty(exports, "sampleTime", ({ enumerable: true, get: function () { return sampleTime_1.sampleTime; } }));
+var scan_1 = __nccwpck_require__(25578);
+Object.defineProperty(exports, "scan", ({ enumerable: true, get: function () { return scan_1.scan; } }));
+var sequenceEqual_1 = __nccwpck_require__(16126);
+Object.defineProperty(exports, "sequenceEqual", ({ enumerable: true, get: function () { return sequenceEqual_1.sequenceEqual; } }));
+var share_1 = __nccwpck_require__(48960);
+Object.defineProperty(exports, "share", ({ enumerable: true, get: function () { return share_1.share; } }));
+var shareReplay_1 = __nccwpck_require__(92118);
+Object.defineProperty(exports, "shareReplay", ({ enumerable: true, get: function () { return shareReplay_1.shareReplay; } }));
+var single_1 = __nccwpck_require__(58441);
+Object.defineProperty(exports, "single", ({ enumerable: true, get: function () { return single_1.single; } }));
+var skip_1 = __nccwpck_require__(80947);
+Object.defineProperty(exports, "skip", ({ enumerable: true, get: function () { return skip_1.skip; } }));
+var skipLast_1 = __nccwpck_require__(65865);
+Object.defineProperty(exports, "skipLast", ({ enumerable: true, get: function () { return skipLast_1.skipLast; } }));
+var skipUntil_1 = __nccwpck_require__(41110);
+Object.defineProperty(exports, "skipUntil", ({ enumerable: true, get: function () { return skipUntil_1.skipUntil; } }));
+var skipWhile_1 = __nccwpck_require__(92550);
+Object.defineProperty(exports, "skipWhile", ({ enumerable: true, get: function () { return skipWhile_1.skipWhile; } }));
+var startWith_1 = __nccwpck_require__(25471);
+Object.defineProperty(exports, "startWith", ({ enumerable: true, get: function () { return startWith_1.startWith; } }));
+var subscribeOn_1 = __nccwpck_require__(7224);
+Object.defineProperty(exports, "subscribeOn", ({ enumerable: true, get: function () { return subscribeOn_1.subscribeOn; } }));
+var switchAll_1 = __nccwpck_require__(40327);
+Object.defineProperty(exports, "switchAll", ({ enumerable: true, get: function () { return switchAll_1.switchAll; } }));
+var switchMap_1 = __nccwpck_require__(26704);
+Object.defineProperty(exports, "switchMap", ({ enumerable: true, get: function () { return switchMap_1.switchMap; } }));
+var switchMapTo_1 = __nccwpck_require__(1713);
+Object.defineProperty(exports, "switchMapTo", ({ enumerable: true, get: function () { return switchMapTo_1.switchMapTo; } }));
+var switchScan_1 = __nccwpck_require__(13355);
+Object.defineProperty(exports, "switchScan", ({ enumerable: true, get: function () { return switchScan_1.switchScan; } }));
+var take_1 = __nccwpck_require__(33698);
+Object.defineProperty(exports, "take", ({ enumerable: true, get: function () { return take_1.take; } }));
+var takeLast_1 = __nccwpck_require__(65041);
+Object.defineProperty(exports, "takeLast", ({ enumerable: true, get: function () { return takeLast_1.takeLast; } }));
+var takeUntil_1 = __nccwpck_require__(55150);
+Object.defineProperty(exports, "takeUntil", ({ enumerable: true, get: function () { return takeUntil_1.takeUntil; } }));
+var takeWhile_1 = __nccwpck_require__(76700);
+Object.defineProperty(exports, "takeWhile", ({ enumerable: true, get: function () { return takeWhile_1.takeWhile; } }));
+var tap_1 = __nccwpck_require__(48845);
+Object.defineProperty(exports, "tap", ({ enumerable: true, get: function () { return tap_1.tap; } }));
+var throttle_1 = __nccwpck_require__(36713);
+Object.defineProperty(exports, "throttle", ({ enumerable: true, get: function () { return throttle_1.throttle; } }));
+var throttleTime_1 = __nccwpck_require__(83435);
+Object.defineProperty(exports, "throttleTime", ({ enumerable: true, get: function () { return throttleTime_1.throttleTime; } }));
+var throwIfEmpty_1 = __nccwpck_require__(91566);
+Object.defineProperty(exports, "throwIfEmpty", ({ enumerable: true, get: function () { return throwIfEmpty_1.throwIfEmpty; } }));
+var timeInterval_1 = __nccwpck_require__(14643);
+Object.defineProperty(exports, "timeInterval", ({ enumerable: true, get: function () { return timeInterval_1.timeInterval; } }));
+var timeout_2 = __nccwpck_require__(12051);
+Object.defineProperty(exports, "timeout", ({ enumerable: true, get: function () { return timeout_2.timeout; } }));
+var timeoutWith_1 = __nccwpck_require__(43540);
+Object.defineProperty(exports, "timeoutWith", ({ enumerable: true, get: function () { return timeoutWith_1.timeoutWith; } }));
+var timestamp_1 = __nccwpck_require__(75518);
+Object.defineProperty(exports, "timestamp", ({ enumerable: true, get: function () { return timestamp_1.timestamp; } }));
+var toArray_1 = __nccwpck_require__(35114);
+Object.defineProperty(exports, "toArray", ({ enumerable: true, get: function () { return toArray_1.toArray; } }));
+var window_1 = __nccwpck_require__(98255);
+Object.defineProperty(exports, "window", ({ enumerable: true, get: function () { return window_1.window; } }));
+var windowCount_1 = __nccwpck_require__(73144);
+Object.defineProperty(exports, "windowCount", ({ enumerable: true, get: function () { return windowCount_1.windowCount; } }));
+var windowTime_1 = __nccwpck_require__(2738);
+Object.defineProperty(exports, "windowTime", ({ enumerable: true, get: function () { return windowTime_1.windowTime; } }));
+var windowToggle_1 = __nccwpck_require__(52741);
+Object.defineProperty(exports, "windowToggle", ({ enumerable: true, get: function () { return windowToggle_1.windowToggle; } }));
+var windowWhen_1 = __nccwpck_require__(82645);
+Object.defineProperty(exports, "windowWhen", ({ enumerable: true, get: function () { return windowWhen_1.windowWhen; } }));
+var withLatestFrom_1 = __nccwpck_require__(20501);
+Object.defineProperty(exports, "withLatestFrom", ({ enumerable: true, get: function () { return withLatestFrom_1.withLatestFrom; } }));
+var zipAll_1 = __nccwpck_require__(92335);
+Object.defineProperty(exports, "zipAll", ({ enumerable: true, get: function () { return zipAll_1.zipAll; } }));
+var zipWith_1 = __nccwpck_require__(95520);
+Object.defineProperty(exports, "zipWith", ({ enumerable: true, get: function () { return zipWith_1.zipWith; } }));
+//# sourceMappingURL=index.js.map
 
-function SafeBuffer (arg, encodingOrOffset, length) {
-  return Buffer(arg, encodingOrOffset, length)
-}
+/***/ }),
 
-SafeBuffer.prototype = Object.create(Buffer.prototype)
+/***/ 9747:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-// Copy static methods from Buffer
-copyProps(Buffer, SafeBuffer)
+"use strict";
 
-SafeBuffer.from = function (arg, encodingOrOffset, length) {
-  if (typeof arg === 'number') {
-    throw new TypeError('Argument must not be a number')
-  }
-  return Buffer(arg, encodingOrOffset, length)
-}
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AsyncSubject = void 0;
+var Subject_1 = __nccwpck_require__(49944);
+var AsyncSubject = (function (_super) {
+    __extends(AsyncSubject, _super);
+    function AsyncSubject() {
+        var _this = _super !== null && _super.apply(this, arguments) || this;
+        _this._value = null;
+        _this._hasValue = false;
+        _this._isComplete = false;
+        return _this;
+    }
+    AsyncSubject.prototype._checkFinalizedStatuses = function (subscriber) {
+        var _a = this, hasError = _a.hasError, _hasValue = _a._hasValue, _value = _a._value, thrownError = _a.thrownError, isStopped = _a.isStopped, _isComplete = _a._isComplete;
+        if (hasError) {
+            subscriber.error(thrownError);
+        }
+        else if (isStopped || _isComplete) {
+            _hasValue && subscriber.next(_value);
+            subscriber.complete();
+        }
+    };
+    AsyncSubject.prototype.next = function (value) {
+        if (!this.isStopped) {
+            this._value = value;
+            this._hasValue = true;
+        }
+    };
+    AsyncSubject.prototype.complete = function () {
+        var _a = this, _hasValue = _a._hasValue, _value = _a._value, _isComplete = _a._isComplete;
+        if (!_isComplete) {
+            this._isComplete = true;
+            _hasValue && _super.prototype.next.call(this, _value);
+            _super.prototype.complete.call(this);
+        }
+    };
+    return AsyncSubject;
+}(Subject_1.Subject));
+exports.AsyncSubject = AsyncSubject;
+//# sourceMappingURL=AsyncSubject.js.map
 
-SafeBuffer.alloc = function (size, fill, encoding) {
-  if (typeof size !== 'number') {
-    throw new TypeError('Argument must be a number')
-  }
-  var buf = Buffer(size)
-  if (fill !== undefined) {
-    if (typeof encoding === 'string') {
-      buf.fill(fill, encoding)
-    } else {
-      buf.fill(fill)
+/***/ }),
+
+/***/ 23473:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.BehaviorSubject = void 0;
+var Subject_1 = __nccwpck_require__(49944);
+var BehaviorSubject = (function (_super) {
+    __extends(BehaviorSubject, _super);
+    function BehaviorSubject(_value) {
+        var _this = _super.call(this) || this;
+        _this._value = _value;
+        return _this;
     }
-  } else {
-    buf.fill(0)
-  }
-  return buf
-}
+    Object.defineProperty(BehaviorSubject.prototype, "value", {
+        get: function () {
+            return this.getValue();
+        },
+        enumerable: false,
+        configurable: true
+    });
+    BehaviorSubject.prototype._subscribe = function (subscriber) {
+        var subscription = _super.prototype._subscribe.call(this, subscriber);
+        !subscription.closed && subscriber.next(this._value);
+        return subscription;
+    };
+    BehaviorSubject.prototype.getValue = function () {
+        var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, _value = _a._value;
+        if (hasError) {
+            throw thrownError;
+        }
+        this._throwIfClosed();
+        return _value;
+    };
+    BehaviorSubject.prototype.next = function (value) {
+        _super.prototype.next.call(this, (this._value = value));
+    };
+    return BehaviorSubject;
+}(Subject_1.Subject));
+exports.BehaviorSubject = BehaviorSubject;
+//# sourceMappingURL=BehaviorSubject.js.map
 
-SafeBuffer.allocUnsafe = function (size) {
-  if (typeof size !== 'number') {
-    throw new TypeError('Argument must be a number')
-  }
-  return Buffer(size)
-}
+/***/ }),
 
-SafeBuffer.allocUnsafeSlow = function (size) {
-  if (typeof size !== 'number') {
-    throw new TypeError('Argument must be a number')
-  }
-  return buffer.SlowBuffer(size)
-}
+/***/ 12241:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.observeNotification = exports.Notification = exports.NotificationKind = void 0;
+var empty_1 = __nccwpck_require__(70437);
+var of_1 = __nccwpck_require__(72163);
+var throwError_1 = __nccwpck_require__(66381);
+var isFunction_1 = __nccwpck_require__(67206);
+var NotificationKind;
+(function (NotificationKind) {
+    NotificationKind["NEXT"] = "N";
+    NotificationKind["ERROR"] = "E";
+    NotificationKind["COMPLETE"] = "C";
+})(NotificationKind = exports.NotificationKind || (exports.NotificationKind = {}));
+var Notification = (function () {
+    function Notification(kind, value, error) {
+        this.kind = kind;
+        this.value = value;
+        this.error = error;
+        this.hasValue = kind === 'N';
+    }
+    Notification.prototype.observe = function (observer) {
+        return observeNotification(this, observer);
+    };
+    Notification.prototype.do = function (nextHandler, errorHandler, completeHandler) {
+        var _a = this, kind = _a.kind, value = _a.value, error = _a.error;
+        return kind === 'N' ? nextHandler === null || nextHandler === void 0 ? void 0 : nextHandler(value) : kind === 'E' ? errorHandler === null || errorHandler === void 0 ? void 0 : errorHandler(error) : completeHandler === null || completeHandler === void 0 ? void 0 : completeHandler();
+    };
+    Notification.prototype.accept = function (nextOrObserver, error, complete) {
+        var _a;
+        return isFunction_1.isFunction((_a = nextOrObserver) === null || _a === void 0 ? void 0 : _a.next)
+            ? this.observe(nextOrObserver)
+            : this.do(nextOrObserver, error, complete);
+    };
+    Notification.prototype.toObservable = function () {
+        var _a = this, kind = _a.kind, value = _a.value, error = _a.error;
+        var result = kind === 'N'
+            ?
+                of_1.of(value)
+            :
+                kind === 'E'
+                    ?
+                        throwError_1.throwError(function () { return error; })
+                    :
+                        kind === 'C'
+                            ?
+                                empty_1.EMPTY
+                            :
+                                0;
+        if (!result) {
+            throw new TypeError("Unexpected notification kind " + kind);
+        }
+        return result;
+    };
+    Notification.createNext = function (value) {
+        return new Notification('N', value);
+    };
+    Notification.createError = function (err) {
+        return new Notification('E', undefined, err);
+    };
+    Notification.createComplete = function () {
+        return Notification.completeNotification;
+    };
+    Notification.completeNotification = new Notification('C');
+    return Notification;
+}());
+exports.Notification = Notification;
+function observeNotification(notification, observer) {
+    var _a, _b, _c;
+    var _d = notification, kind = _d.kind, value = _d.value, error = _d.error;
+    if (typeof kind !== 'string') {
+        throw new TypeError('Invalid notification, missing "kind"');
+    }
+    kind === 'N' ? (_a = observer.next) === null || _a === void 0 ? void 0 : _a.call(observer, value) : kind === 'E' ? (_b = observer.error) === null || _b === void 0 ? void 0 : _b.call(observer, error) : (_c = observer.complete) === null || _c === void 0 ? void 0 : _c.call(observer);
+}
+exports.observeNotification = observeNotification;
+//# sourceMappingURL=Notification.js.map
 
 /***/ }),
 
-/***/ 91532:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 2500:
+/***/ ((__unused_webpack_module, exports) => {
 
-const ANY = Symbol('SemVer ANY')
-// hoisted class for cyclic dependency
-class Comparator {
-  static get ANY () {
-    return ANY
-  }
+"use strict";
 
-  constructor (comp, options) {
-    options = parseOptions(options)
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.createNotification = exports.nextNotification = exports.errorNotification = exports.COMPLETE_NOTIFICATION = void 0;
+exports.COMPLETE_NOTIFICATION = (function () { return createNotification('C', undefined, undefined); })();
+function errorNotification(error) {
+    return createNotification('E', undefined, error);
+}
+exports.errorNotification = errorNotification;
+function nextNotification(value) {
+    return createNotification('N', value, undefined);
+}
+exports.nextNotification = nextNotification;
+function createNotification(kind, value, error) {
+    return {
+        kind: kind,
+        value: value,
+        error: error,
+    };
+}
+exports.createNotification = createNotification;
+//# sourceMappingURL=NotificationFactories.js.map
 
-    if (comp instanceof Comparator) {
-      if (comp.loose === !!options.loose) {
-        return comp
-      } else {
-        comp = comp.value
-      }
-    }
+/***/ }),
 
-    comp = comp.trim().split(/\s+/).join(' ')
-    debug('comparator', comp, options)
-    this.options = options
-    this.loose = !!options.loose
-    this.parse(comp)
+/***/ 53014:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    if (this.semver === ANY) {
-      this.value = ''
-    } else {
-      this.value = this.operator + this.semver.version
-    }
+"use strict";
 
-    debug('comp', this)
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.Observable = void 0;
+var Subscriber_1 = __nccwpck_require__(67121);
+var Subscription_1 = __nccwpck_require__(79548);
+var observable_1 = __nccwpck_require__(17186);
+var pipe_1 = __nccwpck_require__(49587);
+var config_1 = __nccwpck_require__(92233);
+var isFunction_1 = __nccwpck_require__(67206);
+var errorContext_1 = __nccwpck_require__(31199);
+var Observable = (function () {
+    function Observable(subscribe) {
+        if (subscribe) {
+            this._subscribe = subscribe;
+        }
+    }
+    Observable.prototype.lift = function (operator) {
+        var observable = new Observable();
+        observable.source = this;
+        observable.operator = operator;
+        return observable;
+    };
+    Observable.prototype.subscribe = function (observerOrNext, error, complete) {
+        var _this = this;
+        var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new Subscriber_1.SafeSubscriber(observerOrNext, error, complete);
+        errorContext_1.errorContext(function () {
+            var _a = _this, operator = _a.operator, source = _a.source;
+            subscriber.add(operator
+                ?
+                    operator.call(subscriber, source)
+                : source
+                    ?
+                        _this._subscribe(subscriber)
+                    :
+                        _this._trySubscribe(subscriber));
+        });
+        return subscriber;
+    };
+    Observable.prototype._trySubscribe = function (sink) {
+        try {
+            return this._subscribe(sink);
+        }
+        catch (err) {
+            sink.error(err);
+        }
+    };
+    Observable.prototype.forEach = function (next, promiseCtor) {
+        var _this = this;
+        promiseCtor = getPromiseCtor(promiseCtor);
+        return new promiseCtor(function (resolve, reject) {
+            var subscriber = new Subscriber_1.SafeSubscriber({
+                next: function (value) {
+                    try {
+                        next(value);
+                    }
+                    catch (err) {
+                        reject(err);
+                        subscriber.unsubscribe();
+                    }
+                },
+                error: reject,
+                complete: resolve,
+            });
+            _this.subscribe(subscriber);
+        });
+    };
+    Observable.prototype._subscribe = function (subscriber) {
+        var _a;
+        return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
+    };
+    Observable.prototype[observable_1.observable] = function () {
+        return this;
+    };
+    Observable.prototype.pipe = function () {
+        var operations = [];
+        for (var _i = 0; _i < arguments.length; _i++) {
+            operations[_i] = arguments[_i];
+        }
+        return pipe_1.pipeFromArray(operations)(this);
+    };
+    Observable.prototype.toPromise = function (promiseCtor) {
+        var _this = this;
+        promiseCtor = getPromiseCtor(promiseCtor);
+        return new promiseCtor(function (resolve, reject) {
+            var value;
+            _this.subscribe(function (x) { return (value = x); }, function (err) { return reject(err); }, function () { return resolve(value); });
+        });
+    };
+    Observable.create = function (subscribe) {
+        return new Observable(subscribe);
+    };
+    return Observable;
+}());
+exports.Observable = Observable;
+function getPromiseCtor(promiseCtor) {
+    var _a;
+    return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config_1.config.Promise) !== null && _a !== void 0 ? _a : Promise;
+}
+function isObserver(value) {
+    return value && isFunction_1.isFunction(value.next) && isFunction_1.isFunction(value.error) && isFunction_1.isFunction(value.complete);
+}
+function isSubscriber(value) {
+    return (value && value instanceof Subscriber_1.Subscriber) || (isObserver(value) && Subscription_1.isSubscription(value));
+}
+//# sourceMappingURL=Observable.js.map
 
-  parse (comp) {
-    const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
-    const m = comp.match(r)
+/***/ }),
 
-    if (!m) {
-      throw new TypeError(`Invalid comparator: ${comp}`)
-    }
+/***/ 22351:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-    this.operator = m[1] !== undefined ? m[1] : ''
-    if (this.operator === '=') {
-      this.operator = ''
-    }
+"use strict";
 
-    // if it literally is just '>' or '' then allow anything.
-    if (!m[2]) {
-      this.semver = ANY
-    } else {
-      this.semver = new SemVer(m[2], this.options.loose)
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ReplaySubject = void 0;
+var Subject_1 = __nccwpck_require__(49944);
+var dateTimestampProvider_1 = __nccwpck_require__(91395);
+var ReplaySubject = (function (_super) {
+    __extends(ReplaySubject, _super);
+    function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) {
+        if (_bufferSize === void 0) { _bufferSize = Infinity; }
+        if (_windowTime === void 0) { _windowTime = Infinity; }
+        if (_timestampProvider === void 0) { _timestampProvider = dateTimestampProvider_1.dateTimestampProvider; }
+        var _this = _super.call(this) || this;
+        _this._bufferSize = _bufferSize;
+        _this._windowTime = _windowTime;
+        _this._timestampProvider = _timestampProvider;
+        _this._buffer = [];
+        _this._infiniteTimeWindow = true;
+        _this._infiniteTimeWindow = _windowTime === Infinity;
+        _this._bufferSize = Math.max(1, _bufferSize);
+        _this._windowTime = Math.max(1, _windowTime);
+        return _this;
     }
-  }
+    ReplaySubject.prototype.next = function (value) {
+        var _a = this, isStopped = _a.isStopped, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow, _timestampProvider = _a._timestampProvider, _windowTime = _a._windowTime;
+        if (!isStopped) {
+            _buffer.push(value);
+            !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
+        }
+        this._trimBuffer();
+        _super.prototype.next.call(this, value);
+    };
+    ReplaySubject.prototype._subscribe = function (subscriber) {
+        this._throwIfClosed();
+        this._trimBuffer();
+        var subscription = this._innerSubscribe(subscriber);
+        var _a = this, _infiniteTimeWindow = _a._infiniteTimeWindow, _buffer = _a._buffer;
+        var copy = _buffer.slice();
+        for (var i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {
+            subscriber.next(copy[i]);
+        }
+        this._checkFinalizedStatuses(subscriber);
+        return subscription;
+    };
+    ReplaySubject.prototype._trimBuffer = function () {
+        var _a = this, _bufferSize = _a._bufferSize, _timestampProvider = _a._timestampProvider, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow;
+        var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
+        _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
+        if (!_infiniteTimeWindow) {
+            var now = _timestampProvider.now();
+            var last = 0;
+            for (var i = 1; i < _buffer.length && _buffer[i] <= now; i += 2) {
+                last = i;
+            }
+            last && _buffer.splice(0, last + 1);
+        }
+    };
+    return ReplaySubject;
+}(Subject_1.Subject));
+exports.ReplaySubject = ReplaySubject;
+//# sourceMappingURL=ReplaySubject.js.map
 
-  toString () {
-    return this.value
-  }
+/***/ }),
 
-  test (version) {
-    debug('Comparator.test', version, this.options.loose)
+/***/ 76243:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    if (this.semver === ANY || version === ANY) {
-      return true
-    }
+"use strict";
 
-    if (typeof version === 'string') {
-      try {
-        version = new SemVer(version, this.options)
-      } catch (er) {
-        return false
-      }
-    }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.Scheduler = void 0;
+var dateTimestampProvider_1 = __nccwpck_require__(91395);
+var Scheduler = (function () {
+    function Scheduler(schedulerActionCtor, now) {
+        if (now === void 0) { now = Scheduler.now; }
+        this.schedulerActionCtor = schedulerActionCtor;
+        this.now = now;
+    }
+    Scheduler.prototype.schedule = function (work, delay, state) {
+        if (delay === void 0) { delay = 0; }
+        return new this.schedulerActionCtor(this, work).schedule(state, delay);
+    };
+    Scheduler.now = dateTimestampProvider_1.dateTimestampProvider.now;
+    return Scheduler;
+}());
+exports.Scheduler = Scheduler;
+//# sourceMappingURL=Scheduler.js.map
 
-    return cmp(version, this.operator, this.semver, this.options)
-  }
+/***/ }),
 
-  intersects (comp, options) {
-    if (!(comp instanceof Comparator)) {
-      throw new TypeError('a Comparator is required')
-    }
+/***/ 49944:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-    if (this.operator === '') {
-      if (this.value === '') {
-        return true
-      }
-      return new Range(comp.value, options).test(this.value)
-    } else if (comp.operator === '') {
-      if (comp.value === '') {
-        return true
-      }
-      return new Range(this.value, options).test(comp.semver)
+"use strict";
+
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+var __values = (this && this.__values) || function(o) {
+    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+    if (m) return m.call(o);
+    if (o && typeof o.length === "number") return {
+        next: function () {
+            if (o && i >= o.length) o = void 0;
+            return { value: o && o[i++], done: !o };
+        }
+    };
+    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AnonymousSubject = exports.Subject = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var Subscription_1 = __nccwpck_require__(79548);
+var ObjectUnsubscribedError_1 = __nccwpck_require__(95266);
+var arrRemove_1 = __nccwpck_require__(68499);
+var errorContext_1 = __nccwpck_require__(31199);
+var Subject = (function (_super) {
+    __extends(Subject, _super);
+    function Subject() {
+        var _this = _super.call(this) || this;
+        _this.closed = false;
+        _this.currentObservers = null;
+        _this.observers = [];
+        _this.isStopped = false;
+        _this.hasError = false;
+        _this.thrownError = null;
+        return _this;
+    }
+    Subject.prototype.lift = function (operator) {
+        var subject = new AnonymousSubject(this, this);
+        subject.operator = operator;
+        return subject;
+    };
+    Subject.prototype._throwIfClosed = function () {
+        if (this.closed) {
+            throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();
+        }
+    };
+    Subject.prototype.next = function (value) {
+        var _this = this;
+        errorContext_1.errorContext(function () {
+            var e_1, _a;
+            _this._throwIfClosed();
+            if (!_this.isStopped) {
+                if (!_this.currentObservers) {
+                    _this.currentObservers = Array.from(_this.observers);
+                }
+                try {
+                    for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
+                        var observer = _c.value;
+                        observer.next(value);
+                    }
+                }
+                catch (e_1_1) { e_1 = { error: e_1_1 }; }
+                finally {
+                    try {
+                        if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
+                    }
+                    finally { if (e_1) throw e_1.error; }
+                }
+            }
+        });
+    };
+    Subject.prototype.error = function (err) {
+        var _this = this;
+        errorContext_1.errorContext(function () {
+            _this._throwIfClosed();
+            if (!_this.isStopped) {
+                _this.hasError = _this.isStopped = true;
+                _this.thrownError = err;
+                var observers = _this.observers;
+                while (observers.length) {
+                    observers.shift().error(err);
+                }
+            }
+        });
+    };
+    Subject.prototype.complete = function () {
+        var _this = this;
+        errorContext_1.errorContext(function () {
+            _this._throwIfClosed();
+            if (!_this.isStopped) {
+                _this.isStopped = true;
+                var observers = _this.observers;
+                while (observers.length) {
+                    observers.shift().complete();
+                }
+            }
+        });
+    };
+    Subject.prototype.unsubscribe = function () {
+        this.isStopped = this.closed = true;
+        this.observers = this.currentObservers = null;
+    };
+    Object.defineProperty(Subject.prototype, "observed", {
+        get: function () {
+            var _a;
+            return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
+        },
+        enumerable: false,
+        configurable: true
+    });
+    Subject.prototype._trySubscribe = function (subscriber) {
+        this._throwIfClosed();
+        return _super.prototype._trySubscribe.call(this, subscriber);
+    };
+    Subject.prototype._subscribe = function (subscriber) {
+        this._throwIfClosed();
+        this._checkFinalizedStatuses(subscriber);
+        return this._innerSubscribe(subscriber);
+    };
+    Subject.prototype._innerSubscribe = function (subscriber) {
+        var _this = this;
+        var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;
+        if (hasError || isStopped) {
+            return Subscription_1.EMPTY_SUBSCRIPTION;
+        }
+        this.currentObservers = null;
+        observers.push(subscriber);
+        return new Subscription_1.Subscription(function () {
+            _this.currentObservers = null;
+            arrRemove_1.arrRemove(observers, subscriber);
+        });
+    };
+    Subject.prototype._checkFinalizedStatuses = function (subscriber) {
+        var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;
+        if (hasError) {
+            subscriber.error(thrownError);
+        }
+        else if (isStopped) {
+            subscriber.complete();
+        }
+    };
+    Subject.prototype.asObservable = function () {
+        var observable = new Observable_1.Observable();
+        observable.source = this;
+        return observable;
+    };
+    Subject.create = function (destination, source) {
+        return new AnonymousSubject(destination, source);
+    };
+    return Subject;
+}(Observable_1.Observable));
+exports.Subject = Subject;
+var AnonymousSubject = (function (_super) {
+    __extends(AnonymousSubject, _super);
+    function AnonymousSubject(destination, source) {
+        var _this = _super.call(this) || this;
+        _this.destination = destination;
+        _this.source = source;
+        return _this;
     }
+    AnonymousSubject.prototype.next = function (value) {
+        var _a, _b;
+        (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
+    };
+    AnonymousSubject.prototype.error = function (err) {
+        var _a, _b;
+        (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
+    };
+    AnonymousSubject.prototype.complete = function () {
+        var _a, _b;
+        (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
+    };
+    AnonymousSubject.prototype._subscribe = function (subscriber) {
+        var _a, _b;
+        return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : Subscription_1.EMPTY_SUBSCRIPTION;
+    };
+    return AnonymousSubject;
+}(Subject));
+exports.AnonymousSubject = AnonymousSubject;
+//# sourceMappingURL=Subject.js.map
 
-    options = parseOptions(options)
+/***/ }),
 
-    // Special cases where nothing can possibly be lower
-    if (options.includePrerelease &&
-      (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {
-      return false
+/***/ 67121:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.EMPTY_OBSERVER = exports.SafeSubscriber = exports.Subscriber = void 0;
+var isFunction_1 = __nccwpck_require__(67206);
+var Subscription_1 = __nccwpck_require__(79548);
+var config_1 = __nccwpck_require__(92233);
+var reportUnhandledError_1 = __nccwpck_require__(92445);
+var noop_1 = __nccwpck_require__(11642);
+var NotificationFactories_1 = __nccwpck_require__(2500);
+var timeoutProvider_1 = __nccwpck_require__(1613);
+var errorContext_1 = __nccwpck_require__(31199);
+var Subscriber = (function (_super) {
+    __extends(Subscriber, _super);
+    function Subscriber(destination) {
+        var _this = _super.call(this) || this;
+        _this.isStopped = false;
+        if (destination) {
+            _this.destination = destination;
+            if (Subscription_1.isSubscription(destination)) {
+                destination.add(_this);
+            }
+        }
+        else {
+            _this.destination = exports.EMPTY_OBSERVER;
+        }
+        return _this;
     }
-    if (!options.includePrerelease &&
-      (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {
-      return false
+    Subscriber.create = function (next, error, complete) {
+        return new SafeSubscriber(next, error, complete);
+    };
+    Subscriber.prototype.next = function (value) {
+        if (this.isStopped) {
+            handleStoppedNotification(NotificationFactories_1.nextNotification(value), this);
+        }
+        else {
+            this._next(value);
+        }
+    };
+    Subscriber.prototype.error = function (err) {
+        if (this.isStopped) {
+            handleStoppedNotification(NotificationFactories_1.errorNotification(err), this);
+        }
+        else {
+            this.isStopped = true;
+            this._error(err);
+        }
+    };
+    Subscriber.prototype.complete = function () {
+        if (this.isStopped) {
+            handleStoppedNotification(NotificationFactories_1.COMPLETE_NOTIFICATION, this);
+        }
+        else {
+            this.isStopped = true;
+            this._complete();
+        }
+    };
+    Subscriber.prototype.unsubscribe = function () {
+        if (!this.closed) {
+            this.isStopped = true;
+            _super.prototype.unsubscribe.call(this);
+            this.destination = null;
+        }
+    };
+    Subscriber.prototype._next = function (value) {
+        this.destination.next(value);
+    };
+    Subscriber.prototype._error = function (err) {
+        try {
+            this.destination.error(err);
+        }
+        finally {
+            this.unsubscribe();
+        }
+    };
+    Subscriber.prototype._complete = function () {
+        try {
+            this.destination.complete();
+        }
+        finally {
+            this.unsubscribe();
+        }
+    };
+    return Subscriber;
+}(Subscription_1.Subscription));
+exports.Subscriber = Subscriber;
+var _bind = Function.prototype.bind;
+function bind(fn, thisArg) {
+    return _bind.call(fn, thisArg);
+}
+var ConsumerObserver = (function () {
+    function ConsumerObserver(partialObserver) {
+        this.partialObserver = partialObserver;
+    }
+    ConsumerObserver.prototype.next = function (value) {
+        var partialObserver = this.partialObserver;
+        if (partialObserver.next) {
+            try {
+                partialObserver.next(value);
+            }
+            catch (error) {
+                handleUnhandledError(error);
+            }
+        }
+    };
+    ConsumerObserver.prototype.error = function (err) {
+        var partialObserver = this.partialObserver;
+        if (partialObserver.error) {
+            try {
+                partialObserver.error(err);
+            }
+            catch (error) {
+                handleUnhandledError(error);
+            }
+        }
+        else {
+            handleUnhandledError(err);
+        }
+    };
+    ConsumerObserver.prototype.complete = function () {
+        var partialObserver = this.partialObserver;
+        if (partialObserver.complete) {
+            try {
+                partialObserver.complete();
+            }
+            catch (error) {
+                handleUnhandledError(error);
+            }
+        }
+    };
+    return ConsumerObserver;
+}());
+var SafeSubscriber = (function (_super) {
+    __extends(SafeSubscriber, _super);
+    function SafeSubscriber(observerOrNext, error, complete) {
+        var _this = _super.call(this) || this;
+        var partialObserver;
+        if (isFunction_1.isFunction(observerOrNext) || !observerOrNext) {
+            partialObserver = {
+                next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined),
+                error: error !== null && error !== void 0 ? error : undefined,
+                complete: complete !== null && complete !== void 0 ? complete : undefined,
+            };
+        }
+        else {
+            var context_1;
+            if (_this && config_1.config.useDeprecatedNextContext) {
+                context_1 = Object.create(observerOrNext);
+                context_1.unsubscribe = function () { return _this.unsubscribe(); };
+                partialObserver = {
+                    next: observerOrNext.next && bind(observerOrNext.next, context_1),
+                    error: observerOrNext.error && bind(observerOrNext.error, context_1),
+                    complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),
+                };
+            }
+            else {
+                partialObserver = observerOrNext;
+            }
+        }
+        _this.destination = new ConsumerObserver(partialObserver);
+        return _this;
     }
-
-    // Same direction increasing (> or >=)
-    if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {
-      return true
+    return SafeSubscriber;
+}(Subscriber));
+exports.SafeSubscriber = SafeSubscriber;
+function handleUnhandledError(error) {
+    if (config_1.config.useDeprecatedSynchronousErrorHandling) {
+        errorContext_1.captureError(error);
     }
-    // Same direction decreasing (< or <=)
-    if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {
-      return true
+    else {
+        reportUnhandledError_1.reportUnhandledError(error);
     }
-    // same SemVer and both sides are inclusive (<= or >=)
-    if (
-      (this.semver.version === comp.semver.version) &&
-      this.operator.includes('=') && comp.operator.includes('=')) {
-      return true
+}
+function defaultErrorHandler(err) {
+    throw err;
+}
+function handleStoppedNotification(notification, subscriber) {
+    var onStoppedNotification = config_1.config.onStoppedNotification;
+    onStoppedNotification && timeoutProvider_1.timeoutProvider.setTimeout(function () { return onStoppedNotification(notification, subscriber); });
+}
+exports.EMPTY_OBSERVER = {
+    closed: true,
+    next: noop_1.noop,
+    error: defaultErrorHandler,
+    complete: noop_1.noop,
+};
+//# sourceMappingURL=Subscriber.js.map
+
+/***/ }),
+
+/***/ 79548:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __values = (this && this.__values) || function(o) {
+    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+    if (m) return m.call(o);
+    if (o && typeof o.length === "number") return {
+        next: function () {
+            if (o && i >= o.length) o = void 0;
+            return { value: o && o[i++], done: !o };
+        }
+    };
+    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+};
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
     }
-    // opposite directions less than
-    if (cmp(this.semver, '<', comp.semver, options) &&
-      this.operator.startsWith('>') && comp.operator.startsWith('<')) {
-      return true
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
     }
-    // opposite directions greater than
-    if (cmp(this.semver, '>', comp.semver, options) &&
-      this.operator.startsWith('<') && comp.operator.startsWith('>')) {
-      return true
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isSubscription = exports.EMPTY_SUBSCRIPTION = exports.Subscription = void 0;
+var isFunction_1 = __nccwpck_require__(67206);
+var UnsubscriptionError_1 = __nccwpck_require__(56776);
+var arrRemove_1 = __nccwpck_require__(68499);
+var Subscription = (function () {
+    function Subscription(initialTeardown) {
+        this.initialTeardown = initialTeardown;
+        this.closed = false;
+        this._parentage = null;
+        this._finalizers = null;
+    }
+    Subscription.prototype.unsubscribe = function () {
+        var e_1, _a, e_2, _b;
+        var errors;
+        if (!this.closed) {
+            this.closed = true;
+            var _parentage = this._parentage;
+            if (_parentage) {
+                this._parentage = null;
+                if (Array.isArray(_parentage)) {
+                    try {
+                        for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {
+                            var parent_1 = _parentage_1_1.value;
+                            parent_1.remove(this);
+                        }
+                    }
+                    catch (e_1_1) { e_1 = { error: e_1_1 }; }
+                    finally {
+                        try {
+                            if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return)) _a.call(_parentage_1);
+                        }
+                        finally { if (e_1) throw e_1.error; }
+                    }
+                }
+                else {
+                    _parentage.remove(this);
+                }
+            }
+            var initialFinalizer = this.initialTeardown;
+            if (isFunction_1.isFunction(initialFinalizer)) {
+                try {
+                    initialFinalizer();
+                }
+                catch (e) {
+                    errors = e instanceof UnsubscriptionError_1.UnsubscriptionError ? e.errors : [e];
+                }
+            }
+            var _finalizers = this._finalizers;
+            if (_finalizers) {
+                this._finalizers = null;
+                try {
+                    for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
+                        var finalizer = _finalizers_1_1.value;
+                        try {
+                            execFinalizer(finalizer);
+                        }
+                        catch (err) {
+                            errors = errors !== null && errors !== void 0 ? errors : [];
+                            if (err instanceof UnsubscriptionError_1.UnsubscriptionError) {
+                                errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));
+                            }
+                            else {
+                                errors.push(err);
+                            }
+                        }
+                    }
+                }
+                catch (e_2_1) { e_2 = { error: e_2_1 }; }
+                finally {
+                    try {
+                        if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1);
+                    }
+                    finally { if (e_2) throw e_2.error; }
+                }
+            }
+            if (errors) {
+                throw new UnsubscriptionError_1.UnsubscriptionError(errors);
+            }
+        }
+    };
+    Subscription.prototype.add = function (teardown) {
+        var _a;
+        if (teardown && teardown !== this) {
+            if (this.closed) {
+                execFinalizer(teardown);
+            }
+            else {
+                if (teardown instanceof Subscription) {
+                    if (teardown.closed || teardown._hasParent(this)) {
+                        return;
+                    }
+                    teardown._addParent(this);
+                }
+                (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
+            }
+        }
+    };
+    Subscription.prototype._hasParent = function (parent) {
+        var _parentage = this._parentage;
+        return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));
+    };
+    Subscription.prototype._addParent = function (parent) {
+        var _parentage = this._parentage;
+        this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
+    };
+    Subscription.prototype._removeParent = function (parent) {
+        var _parentage = this._parentage;
+        if (_parentage === parent) {
+            this._parentage = null;
+        }
+        else if (Array.isArray(_parentage)) {
+            arrRemove_1.arrRemove(_parentage, parent);
+        }
+    };
+    Subscription.prototype.remove = function (teardown) {
+        var _finalizers = this._finalizers;
+        _finalizers && arrRemove_1.arrRemove(_finalizers, teardown);
+        if (teardown instanceof Subscription) {
+            teardown._removeParent(this);
+        }
+    };
+    Subscription.EMPTY = (function () {
+        var empty = new Subscription();
+        empty.closed = true;
+        return empty;
+    })();
+    return Subscription;
+}());
+exports.Subscription = Subscription;
+exports.EMPTY_SUBSCRIPTION = Subscription.EMPTY;
+function isSubscription(value) {
+    return (value instanceof Subscription ||
+        (value && 'closed' in value && isFunction_1.isFunction(value.remove) && isFunction_1.isFunction(value.add) && isFunction_1.isFunction(value.unsubscribe)));
+}
+exports.isSubscription = isSubscription;
+function execFinalizer(finalizer) {
+    if (isFunction_1.isFunction(finalizer)) {
+        finalizer();
+    }
+    else {
+        finalizer.unsubscribe();
     }
-    return false
-  }
 }
+//# sourceMappingURL=Subscription.js.map
 
-module.exports = Comparator
+/***/ }),
 
-const parseOptions = __nccwpck_require__(40785)
-const { safeRe: re, t } = __nccwpck_require__(9523)
-const cmp = __nccwpck_require__(75098)
-const debug = __nccwpck_require__(50427)
-const SemVer = __nccwpck_require__(48088)
-const Range = __nccwpck_require__(9828)
+/***/ 92233:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.config = void 0;
+exports.config = {
+    onUnhandledError: null,
+    onStoppedNotification: null,
+    Promise: undefined,
+    useDeprecatedSynchronousErrorHandling: false,
+    useDeprecatedNextContext: false,
+};
+//# sourceMappingURL=config.js.map
 
 /***/ }),
 
-/***/ 9828:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 19369:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-// hoisted class for cyclic dependency
-class Range {
-  constructor (range, options) {
-    options = parseOptions(options)
+"use strict";
 
-    if (range instanceof Range) {
-      if (
-        range.loose === !!options.loose &&
-        range.includePrerelease === !!options.includePrerelease
-      ) {
-        return range
-      } else {
-        return new Range(range.raw, options)
-      }
-    }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.firstValueFrom = void 0;
+var EmptyError_1 = __nccwpck_require__(99391);
+var Subscriber_1 = __nccwpck_require__(67121);
+function firstValueFrom(source, config) {
+    var hasConfig = typeof config === 'object';
+    return new Promise(function (resolve, reject) {
+        var subscriber = new Subscriber_1.SafeSubscriber({
+            next: function (value) {
+                resolve(value);
+                subscriber.unsubscribe();
+            },
+            error: reject,
+            complete: function () {
+                if (hasConfig) {
+                    resolve(config.defaultValue);
+                }
+                else {
+                    reject(new EmptyError_1.EmptyError());
+                }
+            },
+        });
+        source.subscribe(subscriber);
+    });
+}
+exports.firstValueFrom = firstValueFrom;
+//# sourceMappingURL=firstValueFrom.js.map
 
-    if (range instanceof Comparator) {
-      // just put it in the set and return
-      this.raw = range.value
-      this.set = [[range]]
-      this.format()
-      return this
-    }
+/***/ }),
 
-    this.options = options
-    this.loose = !!options.loose
-    this.includePrerelease = !!options.includePrerelease
+/***/ 49713:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    // First reduce all whitespace as much as possible so we do not have to rely
-    // on potentially slow regexes like \s*. This is then stored and used for
-    // future error messages as well.
-    this.raw = range
-      .trim()
-      .split(/\s+/)
-      .join(' ')
+"use strict";
 
-    // First, split on ||
-    this.set = this.raw
-      .split('||')
-      // map the range to a 2d array of comparators
-      .map(r => this.parseRange(r.trim()))
-      // throw out any comparator lists that are empty
-      // this generally means that it was not a valid range, which is allowed
-      // in loose mode, but will still throw if the WHOLE range is invalid.
-      .filter(c => c.length)
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.lastValueFrom = void 0;
+var EmptyError_1 = __nccwpck_require__(99391);
+function lastValueFrom(source, config) {
+    var hasConfig = typeof config === 'object';
+    return new Promise(function (resolve, reject) {
+        var _hasValue = false;
+        var _value;
+        source.subscribe({
+            next: function (value) {
+                _value = value;
+                _hasValue = true;
+            },
+            error: reject,
+            complete: function () {
+                if (_hasValue) {
+                    resolve(_value);
+                }
+                else if (hasConfig) {
+                    resolve(config.defaultValue);
+                }
+                else {
+                    reject(new EmptyError_1.EmptyError());
+                }
+            },
+        });
+    });
+}
+exports.lastValueFrom = lastValueFrom;
+//# sourceMappingURL=lastValueFrom.js.map
 
-    if (!this.set.length) {
-      throw new TypeError(`Invalid SemVer Range: ${this.raw}`)
-    }
+/***/ }),
 
-    // if we have any that are not the null set, throw out null sets.
-    if (this.set.length > 1) {
-      // keep the first one, in case they're all null sets
-      const first = this.set[0]
-      this.set = this.set.filter(c => !isNullSet(c[0]))
-      if (this.set.length === 0) {
-        this.set = [first]
-      } else if (this.set.length > 1) {
-        // if we have any that are *, then the range is just *
-        for (const c of this.set) {
-          if (c.length === 1 && isAny(c[0])) {
-            this.set = [c]
-            break
-          }
+/***/ 30420:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ConnectableObservable = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var Subscription_1 = __nccwpck_require__(79548);
+var refCount_1 = __nccwpck_require__(2331);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var lift_1 = __nccwpck_require__(38669);
+var ConnectableObservable = (function (_super) {
+    __extends(ConnectableObservable, _super);
+    function ConnectableObservable(source, subjectFactory) {
+        var _this = _super.call(this) || this;
+        _this.source = source;
+        _this.subjectFactory = subjectFactory;
+        _this._subject = null;
+        _this._refCount = 0;
+        _this._connection = null;
+        if (lift_1.hasLift(source)) {
+            _this.lift = source.lift;
         }
-      }
+        return _this;
     }
+    ConnectableObservable.prototype._subscribe = function (subscriber) {
+        return this.getSubject().subscribe(subscriber);
+    };
+    ConnectableObservable.prototype.getSubject = function () {
+        var subject = this._subject;
+        if (!subject || subject.isStopped) {
+            this._subject = this.subjectFactory();
+        }
+        return this._subject;
+    };
+    ConnectableObservable.prototype._teardown = function () {
+        this._refCount = 0;
+        var _connection = this._connection;
+        this._subject = this._connection = null;
+        _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe();
+    };
+    ConnectableObservable.prototype.connect = function () {
+        var _this = this;
+        var connection = this._connection;
+        if (!connection) {
+            connection = this._connection = new Subscription_1.Subscription();
+            var subject_1 = this.getSubject();
+            connection.add(this.source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subject_1, undefined, function () {
+                _this._teardown();
+                subject_1.complete();
+            }, function (err) {
+                _this._teardown();
+                subject_1.error(err);
+            }, function () { return _this._teardown(); })));
+            if (connection.closed) {
+                this._connection = null;
+                connection = Subscription_1.Subscription.EMPTY;
+            }
+        }
+        return connection;
+    };
+    ConnectableObservable.prototype.refCount = function () {
+        return refCount_1.refCount()(this);
+    };
+    return ConnectableObservable;
+}(Observable_1.Observable));
+exports.ConnectableObservable = ConnectableObservable;
+//# sourceMappingURL=ConnectableObservable.js.map
 
-    this.format()
-  }
+/***/ }),
 
-  format () {
-    this.range = this.set
-      .map((comps) => comps.join(' ').trim())
-      .join('||')
-      .trim()
-    return this.range
-  }
+/***/ 16949:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  toString () {
-    return this.range
-  }
+"use strict";
 
-  parseRange (range) {
-    // memoize range parsing for performance.
-    // this is a very hot path, and fully deterministic.
-    const memoOpts =
-      (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |
-      (this.options.loose && FLAG_LOOSE)
-    const memoKey = memoOpts + ':' + range
-    const cached = cache.get(memoKey)
-    if (cached) {
-      return cached
-    }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.bindCallback = void 0;
+var bindCallbackInternals_1 = __nccwpck_require__(30585);
+function bindCallback(callbackFunc, resultSelector, scheduler) {
+    return bindCallbackInternals_1.bindCallbackInternals(false, callbackFunc, resultSelector, scheduler);
+}
+exports.bindCallback = bindCallback;
+//# sourceMappingURL=bindCallback.js.map
 
-    const loose = this.options.loose
-    // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
-    const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]
-    range = range.replace(hr, hyphenReplace(this.options.includePrerelease))
-    debug('hyphen replace', range)
+/***/ }),
 
-    // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
-    range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)
-    debug('comparator trim', range)
+/***/ 30585:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-    // `~ 1.2.3` => `~1.2.3`
-    range = range.replace(re[t.TILDETRIM], tildeTrimReplace)
-    debug('tilde trim', range)
+"use strict";
 
-    // `^ 1.2.3` => `^1.2.3`
-    range = range.replace(re[t.CARETTRIM], caretTrimReplace)
-    debug('caret trim', range)
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.bindCallbackInternals = void 0;
+var isScheduler_1 = __nccwpck_require__(84078);
+var Observable_1 = __nccwpck_require__(53014);
+var subscribeOn_1 = __nccwpck_require__(7224);
+var mapOneOrManyArgs_1 = __nccwpck_require__(78934);
+var observeOn_1 = __nccwpck_require__(22451);
+var AsyncSubject_1 = __nccwpck_require__(9747);
+function bindCallbackInternals(isNodeStyle, callbackFunc, resultSelector, scheduler) {
+    if (resultSelector) {
+        if (isScheduler_1.isScheduler(resultSelector)) {
+            scheduler = resultSelector;
+        }
+        else {
+            return function () {
+                var args = [];
+                for (var _i = 0; _i < arguments.length; _i++) {
+                    args[_i] = arguments[_i];
+                }
+                return bindCallbackInternals(isNodeStyle, callbackFunc, scheduler)
+                    .apply(this, args)
+                    .pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector));
+            };
+        }
+    }
+    if (scheduler) {
+        return function () {
+            var args = [];
+            for (var _i = 0; _i < arguments.length; _i++) {
+                args[_i] = arguments[_i];
+            }
+            return bindCallbackInternals(isNodeStyle, callbackFunc)
+                .apply(this, args)
+                .pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler));
+        };
+    }
+    return function () {
+        var _this = this;
+        var args = [];
+        for (var _i = 0; _i < arguments.length; _i++) {
+            args[_i] = arguments[_i];
+        }
+        var subject = new AsyncSubject_1.AsyncSubject();
+        var uninitialized = true;
+        return new Observable_1.Observable(function (subscriber) {
+            var subs = subject.subscribe(subscriber);
+            if (uninitialized) {
+                uninitialized = false;
+                var isAsync_1 = false;
+                var isComplete_1 = false;
+                callbackFunc.apply(_this, __spreadArray(__spreadArray([], __read(args)), [
+                    function () {
+                        var results = [];
+                        for (var _i = 0; _i < arguments.length; _i++) {
+                            results[_i] = arguments[_i];
+                        }
+                        if (isNodeStyle) {
+                            var err = results.shift();
+                            if (err != null) {
+                                subject.error(err);
+                                return;
+                            }
+                        }
+                        subject.next(1 < results.length ? results : results[0]);
+                        isComplete_1 = true;
+                        if (isAsync_1) {
+                            subject.complete();
+                        }
+                    },
+                ]));
+                if (isComplete_1) {
+                    subject.complete();
+                }
+                isAsync_1 = true;
+            }
+            return subs;
+        });
+    };
+}
+exports.bindCallbackInternals = bindCallbackInternals;
+//# sourceMappingURL=bindCallbackInternals.js.map
 
-    // At this point, the range is completely trimmed and
-    // ready to be split into comparators.
+/***/ }),
 
-    let rangeList = range
-      .split(' ')
-      .map(comp => parseComparator(comp, this.options))
-      .join(' ')
-      .split(/\s+/)
-      // >=0.0.0 is equivalent to *
-      .map(comp => replaceGTE0(comp, this.options))
+/***/ 51150:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    if (loose) {
-      // in loose mode, throw out any that are not valid comparators
-      rangeList = rangeList.filter(comp => {
-        debug('loose invalid filter', comp, this.options)
-        return !!comp.match(re[t.COMPARATORLOOSE])
-      })
-    }
-    debug('range list', rangeList)
+"use strict";
 
-    // if any comparators are the null set, then replace with JUST null set
-    // if more than one comparator, remove any * comparators
-    // also, don't include the same comparator more than once
-    const rangeMap = new Map()
-    const comparators = rangeList.map(comp => new Comparator(comp, this.options))
-    for (const comp of comparators) {
-      if (isNullSet(comp)) {
-        return [comp]
-      }
-      rangeMap.set(comp.value, comp)
-    }
-    if (rangeMap.size > 1 && rangeMap.has('')) {
-      rangeMap.delete('')
-    }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.bindNodeCallback = void 0;
+var bindCallbackInternals_1 = __nccwpck_require__(30585);
+function bindNodeCallback(callbackFunc, resultSelector, scheduler) {
+    return bindCallbackInternals_1.bindCallbackInternals(true, callbackFunc, resultSelector, scheduler);
+}
+exports.bindNodeCallback = bindNodeCallback;
+//# sourceMappingURL=bindNodeCallback.js.map
 
-    const result = [...rangeMap.values()]
-    cache.set(memoKey, result)
-    return result
-  }
+/***/ }),
 
-  intersects (range, options) {
-    if (!(range instanceof Range)) {
-      throw new TypeError('a Range is required')
-    }
+/***/ 46843:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    return this.set.some((thisComparators) => {
-      return (
-        isSatisfiable(thisComparators, options) &&
-        range.set.some((rangeComparators) => {
-          return (
-            isSatisfiable(rangeComparators, options) &&
-            thisComparators.every((thisComparator) => {
-              return rangeComparators.every((rangeComparator) => {
-                return thisComparator.intersects(rangeComparator, options)
-              })
-            })
-          )
-        })
-      )
-    })
-  }
+"use strict";
 
-  // if ANY of the sets match ALL of its comparators, then pass
-  test (version) {
-    if (!version) {
-      return false
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.combineLatestInit = exports.combineLatest = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var argsArgArrayOrObject_1 = __nccwpck_require__(12920);
+var from_1 = __nccwpck_require__(18309);
+var identity_1 = __nccwpck_require__(60283);
+var mapOneOrManyArgs_1 = __nccwpck_require__(78934);
+var args_1 = __nccwpck_require__(34890);
+var createObject_1 = __nccwpck_require__(57834);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var executeSchedule_1 = __nccwpck_require__(82877);
+function combineLatest() {
+    var args = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        args[_i] = arguments[_i];
+    }
+    var scheduler = args_1.popScheduler(args);
+    var resultSelector = args_1.popResultSelector(args);
+    var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), observables = _a.args, keys = _a.keys;
+    if (observables.length === 0) {
+        return from_1.from([], scheduler);
+    }
+    var result = new Observable_1.Observable(combineLatestInit(observables, scheduler, keys
+        ?
+            function (values) { return createObject_1.createObject(keys, values); }
+        :
+            identity_1.identity));
+    return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result;
+}
+exports.combineLatest = combineLatest;
+function combineLatestInit(observables, scheduler, valueTransform) {
+    if (valueTransform === void 0) { valueTransform = identity_1.identity; }
+    return function (subscriber) {
+        maybeSchedule(scheduler, function () {
+            var length = observables.length;
+            var values = new Array(length);
+            var active = length;
+            var remainingFirstValues = length;
+            var _loop_1 = function (i) {
+                maybeSchedule(scheduler, function () {
+                    var source = from_1.from(observables[i], scheduler);
+                    var hasFirstValue = false;
+                    source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+                        values[i] = value;
+                        if (!hasFirstValue) {
+                            hasFirstValue = true;
+                            remainingFirstValues--;
+                        }
+                        if (!remainingFirstValues) {
+                            subscriber.next(valueTransform(values.slice()));
+                        }
+                    }, function () {
+                        if (!--active) {
+                            subscriber.complete();
+                        }
+                    }));
+                }, subscriber);
+            };
+            for (var i = 0; i < length; i++) {
+                _loop_1(i);
+            }
+        }, subscriber);
+    };
+}
+exports.combineLatestInit = combineLatestInit;
+function maybeSchedule(scheduler, execute, subscription) {
+    if (scheduler) {
+        executeSchedule_1.executeSchedule(subscription, scheduler, execute);
     }
-
-    if (typeof version === 'string') {
-      try {
-        version = new SemVer(version, this.options)
-      } catch (er) {
-        return false
-      }
+    else {
+        execute();
     }
+}
+//# sourceMappingURL=combineLatest.js.map
 
-    for (let i = 0; i < this.set.length; i++) {
-      if (testSet(this.set[i], version, this.options)) {
-        return true
-      }
+/***/ }),
+
+/***/ 4675:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.concat = void 0;
+var concatAll_1 = __nccwpck_require__(88049);
+var args_1 = __nccwpck_require__(34890);
+var from_1 = __nccwpck_require__(18309);
+function concat() {
+    var args = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        args[_i] = arguments[_i];
     }
-    return false
-  }
+    return concatAll_1.concatAll()(from_1.from(args, args_1.popScheduler(args)));
 }
+exports.concat = concat;
+//# sourceMappingURL=concat.js.map
 
-module.exports = Range
+/***/ }),
 
-const LRU = __nccwpck_require__(81196)
-const cache = new LRU({ max: 1000 })
+/***/ 13152:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const parseOptions = __nccwpck_require__(40785)
-const Comparator = __nccwpck_require__(91532)
-const debug = __nccwpck_require__(50427)
-const SemVer = __nccwpck_require__(48088)
-const {
-  safeRe: re,
-  t,
-  comparatorTrimReplace,
-  tildeTrimReplace,
-  caretTrimReplace,
-} = __nccwpck_require__(9523)
-const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = __nccwpck_require__(42293)
+"use strict";
 
-const isNullSet = c => c.value === '<0.0.0-0'
-const isAny = c => c.value === ''
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.connectable = void 0;
+var Subject_1 = __nccwpck_require__(49944);
+var Observable_1 = __nccwpck_require__(53014);
+var defer_1 = __nccwpck_require__(27672);
+var DEFAULT_CONFIG = {
+    connector: function () { return new Subject_1.Subject(); },
+    resetOnDisconnect: true,
+};
+function connectable(source, config) {
+    if (config === void 0) { config = DEFAULT_CONFIG; }
+    var connection = null;
+    var connector = config.connector, _a = config.resetOnDisconnect, resetOnDisconnect = _a === void 0 ? true : _a;
+    var subject = connector();
+    var result = new Observable_1.Observable(function (subscriber) {
+        return subject.subscribe(subscriber);
+    });
+    result.connect = function () {
+        if (!connection || connection.closed) {
+            connection = defer_1.defer(function () { return source; }).subscribe(subject);
+            if (resetOnDisconnect) {
+                connection.add(function () { return (subject = connector()); });
+            }
+        }
+        return connection;
+    };
+    return result;
+}
+exports.connectable = connectable;
+//# sourceMappingURL=connectable.js.map
 
-// take a set of comparators and determine whether there
-// exists a version which can satisfy it
-const isSatisfiable = (comparators, options) => {
-  let result = true
-  const remainingComparators = comparators.slice()
-  let testComparator = remainingComparators.pop()
+/***/ }),
 
-  while (result && remainingComparators.length) {
-    result = remainingComparators.every((otherComparator) => {
-      return testComparator.intersects(otherComparator, options)
-    })
+/***/ 27672:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    testComparator = remainingComparators.pop()
-  }
+"use strict";
 
-  return result
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.defer = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var innerFrom_1 = __nccwpck_require__(57105);
+function defer(observableFactory) {
+    return new Observable_1.Observable(function (subscriber) {
+        innerFrom_1.innerFrom(observableFactory()).subscribe(subscriber);
+    });
 }
+exports.defer = defer;
+//# sourceMappingURL=defer.js.map
 
-// comprised of xranges, tildes, stars, and gtlt's at this point.
-// already replaced the hyphen ranges
-// turn into a set of JUST comparators.
-const parseComparator = (comp, options) => {
-  debug('comp', comp, options)
-  comp = replaceCarets(comp, options)
-  debug('caret', comp)
-  comp = replaceTildes(comp, options)
-  debug('tildes', comp)
-  comp = replaceXRanges(comp, options)
-  debug('xrange', comp)
-  comp = replaceStars(comp, options)
-  debug('stars', comp)
-  return comp
-}
+/***/ }),
 
-const isX = id => !id || id.toLowerCase() === 'x' || id === '*'
+/***/ 38197:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-// ~, ~> --> * (any, kinda silly)
-// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0
-// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0
-// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0
-// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
-// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
-// ~0.0.1 --> >=0.0.1 <0.1.0-0
-const replaceTildes = (comp, options) => {
-  return comp
-    .trim()
-    .split(/\s+/)
-    .map((c) => replaceTilde(c, options))
-    .join(' ')
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.animationFrames = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var performanceTimestampProvider_1 = __nccwpck_require__(70143);
+var animationFrameProvider_1 = __nccwpck_require__(62738);
+function animationFrames(timestampProvider) {
+    return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES;
+}
+exports.animationFrames = animationFrames;
+function animationFramesFactory(timestampProvider) {
+    return new Observable_1.Observable(function (subscriber) {
+        var provider = timestampProvider || performanceTimestampProvider_1.performanceTimestampProvider;
+        var start = provider.now();
+        var id = 0;
+        var run = function () {
+            if (!subscriber.closed) {
+                id = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function (timestamp) {
+                    id = 0;
+                    var now = provider.now();
+                    subscriber.next({
+                        timestamp: timestampProvider ? now : timestamp,
+                        elapsed: now - start,
+                    });
+                    run();
+                });
+            }
+        };
+        run();
+        return function () {
+            if (id) {
+                animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
+            }
+        };
+    });
 }
+var DEFAULT_ANIMATION_FRAMES = animationFramesFactory();
+//# sourceMappingURL=animationFrames.js.map
 
-const replaceTilde = (comp, options) => {
-  const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]
-  return comp.replace(r, (_, M, m, p, pr) => {
-    debug('tilde', comp, _, M, m, p, pr)
-    let ret
+/***/ }),
 
-    if (isX(M)) {
-      ret = ''
-    } else if (isX(m)) {
-      ret = `>=${M}.0.0 <${+M + 1}.0.0-0`
-    } else if (isX(p)) {
-      // ~1.2 == >=1.2.0 <1.3.0-0
-      ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`
-    } else if (pr) {
-      debug('replaceTilde pr', pr)
-      ret = `>=${M}.${m}.${p}-${pr
-      } <${M}.${+m + 1}.0-0`
-    } else {
-      // ~1.2.3 == >=1.2.3 <1.3.0-0
-      ret = `>=${M}.${m}.${p
-      } <${M}.${+m + 1}.0-0`
-    }
+/***/ 70437:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    debug('tilde return', ret)
-    return ret
-  })
-}
+"use strict";
 
-// ^ --> * (any, kinda silly)
-// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0
-// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0
-// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0
-// ^1.2.3 --> >=1.2.3 <2.0.0-0
-// ^1.2.0 --> >=1.2.0 <2.0.0-0
-// ^0.0.1 --> >=0.0.1 <0.0.2-0
-// ^0.1.0 --> >=0.1.0 <0.2.0-0
-const replaceCarets = (comp, options) => {
-  return comp
-    .trim()
-    .split(/\s+/)
-    .map((c) => replaceCaret(c, options))
-    .join(' ')
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.empty = exports.EMPTY = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+exports.EMPTY = new Observable_1.Observable(function (subscriber) { return subscriber.complete(); });
+function empty(scheduler) {
+    return scheduler ? emptyScheduled(scheduler) : exports.EMPTY;
+}
+exports.empty = empty;
+function emptyScheduled(scheduler) {
+    return new Observable_1.Observable(function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); });
 }
+//# sourceMappingURL=empty.js.map
 
-const replaceCaret = (comp, options) => {
-  debug('caret', comp, options)
-  const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]
-  const z = options.includePrerelease ? '-0' : ''
-  return comp.replace(r, (_, M, m, p, pr) => {
-    debug('caret', comp, _, M, m, p, pr)
-    let ret
+/***/ }),
 
-    if (isX(M)) {
-      ret = ''
-    } else if (isX(m)) {
-      ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`
-    } else if (isX(p)) {
-      if (M === '0') {
-        ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`
-      } else {
-        ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`
-      }
-    } else if (pr) {
-      debug('replaceCaret pr', pr)
-      if (M === '0') {
-        if (m === '0') {
-          ret = `>=${M}.${m}.${p}-${pr
-          } <${M}.${m}.${+p + 1}-0`
-        } else {
-          ret = `>=${M}.${m}.${p}-${pr
-          } <${M}.${+m + 1}.0-0`
+/***/ 47358:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.forkJoin = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var argsArgArrayOrObject_1 = __nccwpck_require__(12920);
+var innerFrom_1 = __nccwpck_require__(57105);
+var args_1 = __nccwpck_require__(34890);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var mapOneOrManyArgs_1 = __nccwpck_require__(78934);
+var createObject_1 = __nccwpck_require__(57834);
+function forkJoin() {
+    var args = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        args[_i] = arguments[_i];
+    }
+    var resultSelector = args_1.popResultSelector(args);
+    var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), sources = _a.args, keys = _a.keys;
+    var result = new Observable_1.Observable(function (subscriber) {
+        var length = sources.length;
+        if (!length) {
+            subscriber.complete();
+            return;
         }
-      } else {
-        ret = `>=${M}.${m}.${p}-${pr
-        } <${+M + 1}.0.0-0`
-      }
-    } else {
-      debug('no pr')
-      if (M === '0') {
-        if (m === '0') {
-          ret = `>=${M}.${m}.${p
-          }${z} <${M}.${m}.${+p + 1}-0`
-        } else {
-          ret = `>=${M}.${m}.${p
-          }${z} <${M}.${+m + 1}.0-0`
+        var values = new Array(length);
+        var remainingCompletions = length;
+        var remainingEmissions = length;
+        var _loop_1 = function (sourceIndex) {
+            var hasValue = false;
+            innerFrom_1.innerFrom(sources[sourceIndex]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+                if (!hasValue) {
+                    hasValue = true;
+                    remainingEmissions--;
+                }
+                values[sourceIndex] = value;
+            }, function () { return remainingCompletions--; }, undefined, function () {
+                if (!remainingCompletions || !hasValue) {
+                    if (!remainingEmissions) {
+                        subscriber.next(keys ? createObject_1.createObject(keys, values) : values);
+                    }
+                    subscriber.complete();
+                }
+            }));
+        };
+        for (var sourceIndex = 0; sourceIndex < length; sourceIndex++) {
+            _loop_1(sourceIndex);
         }
-      } else {
-        ret = `>=${M}.${m}.${p
-        } <${+M + 1}.0.0-0`
-      }
-    }
-
-    debug('caret return', ret)
-    return ret
-  })
+    });
+    return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result;
 }
+exports.forkJoin = forkJoin;
+//# sourceMappingURL=forkJoin.js.map
 
-const replaceXRanges = (comp, options) => {
-  debug('replaceXRanges', comp, options)
-  return comp
-    .split(/\s+/)
-    .map((c) => replaceXRange(c, options))
-    .join(' ')
+/***/ }),
+
+/***/ 18309:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.from = void 0;
+var scheduled_1 = __nccwpck_require__(6151);
+var innerFrom_1 = __nccwpck_require__(57105);
+function from(input, scheduler) {
+    return scheduler ? scheduled_1.scheduled(input, scheduler) : innerFrom_1.innerFrom(input);
 }
+exports.from = from;
+//# sourceMappingURL=from.js.map
 
-const replaceXRange = (comp, options) => {
-  comp = comp.trim()
-  const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]
-  return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
-    debug('xRange', comp, ret, gtlt, M, m, p, pr)
-    const xM = isX(M)
-    const xm = xM || isX(m)
-    const xp = xm || isX(p)
-    const anyX = xp
+/***/ }),
 
-    if (gtlt === '=' && anyX) {
-      gtlt = ''
-    }
+/***/ 93238:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-    // if we're including prereleases in the match, then we need
-    // to fix this to -0, the lowest possible prerelease value
-    pr = options.includePrerelease ? '-0' : ''
+"use strict";
 
-    if (xM) {
-      if (gtlt === '>' || gtlt === '<') {
-        // nothing is allowed
-        ret = '<0.0.0-0'
-      } else {
-        // nothing is forbidden
-        ret = '*'
-      }
-    } else if (gtlt && anyX) {
-      // we know patch is an x, because we have any x at all.
-      // replace X with 0
-      if (xm) {
-        m = 0
-      }
-      p = 0
-
-      if (gtlt === '>') {
-        // >1 => >=2.0.0
-        // >1.2 => >=1.3.0
-        gtlt = '>='
-        if (xm) {
-          M = +M + 1
-          m = 0
-          p = 0
-        } else {
-          m = +m + 1
-          p = 0
-        }
-      } else if (gtlt === '<=') {
-        // <=0.7.x is actually <0.8.0, since any 0.7.x should
-        // pass.  Similarly, <=7.x is actually <8.0.0, etc.
-        gtlt = '<'
-        if (xm) {
-          M = +M + 1
-        } else {
-          m = +m + 1
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
         }
-      }
-
-      if (gtlt === '<') {
-        pr = '-0'
-      }
-
-      ret = `${gtlt + M}.${m}.${p}${pr}`
-    } else if (xm) {
-      ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`
-    } else if (xp) {
-      ret = `>=${M}.${m}.0${pr
-      } <${M}.${+m + 1}.0-0`
+        finally { if (e) throw e.error; }
     }
-
-    debug('xRange return', ret)
-
-    return ret
-  })
+    return ar;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.fromEvent = void 0;
+var innerFrom_1 = __nccwpck_require__(57105);
+var Observable_1 = __nccwpck_require__(53014);
+var mergeMap_1 = __nccwpck_require__(69914);
+var isArrayLike_1 = __nccwpck_require__(24461);
+var isFunction_1 = __nccwpck_require__(67206);
+var mapOneOrManyArgs_1 = __nccwpck_require__(78934);
+var nodeEventEmitterMethods = ['addListener', 'removeListener'];
+var eventTargetMethods = ['addEventListener', 'removeEventListener'];
+var jqueryMethods = ['on', 'off'];
+function fromEvent(target, eventName, options, resultSelector) {
+    if (isFunction_1.isFunction(options)) {
+        resultSelector = options;
+        options = undefined;
+    }
+    if (resultSelector) {
+        return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector));
+    }
+    var _a = __read(isEventTarget(target)
+        ? eventTargetMethods.map(function (methodName) { return function (handler) { return target[methodName](eventName, handler, options); }; })
+        :
+            isNodeStyleEventEmitter(target)
+                ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName))
+                : isJQueryStyleEventEmitter(target)
+                    ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName))
+                    : [], 2), add = _a[0], remove = _a[1];
+    if (!add) {
+        if (isArrayLike_1.isArrayLike(target)) {
+            return mergeMap_1.mergeMap(function (subTarget) { return fromEvent(subTarget, eventName, options); })(innerFrom_1.innerFrom(target));
+        }
+    }
+    if (!add) {
+        throw new TypeError('Invalid event target');
+    }
+    return new Observable_1.Observable(function (subscriber) {
+        var handler = function () {
+            var args = [];
+            for (var _i = 0; _i < arguments.length; _i++) {
+                args[_i] = arguments[_i];
+            }
+            return subscriber.next(1 < args.length ? args : args[0]);
+        };
+        add(handler);
+        return function () { return remove(handler); };
+    });
 }
-
-// Because * is AND-ed with everything else in the comparator,
-// and '' means "any version", just remove the *s entirely.
-const replaceStars = (comp, options) => {
-  debug('replaceStars', comp, options)
-  // Looseness is ignored here.  star is always as loose as it gets!
-  return comp
-    .trim()
-    .replace(re[t.STAR], '')
+exports.fromEvent = fromEvent;
+function toCommonHandlerRegistry(target, eventName) {
+    return function (methodName) { return function (handler) { return target[methodName](eventName, handler); }; };
 }
-
-const replaceGTE0 = (comp, options) => {
-  debug('replaceGTE0', comp, options)
-  return comp
-    .trim()
-    .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')
+function isNodeStyleEventEmitter(target) {
+    return isFunction_1.isFunction(target.addListener) && isFunction_1.isFunction(target.removeListener);
 }
-
-// This function is passed to string.replace(re[t.HYPHENRANGE])
-// M, m, patch, prerelease, build
-// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
-// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
-// 1.2 - 3.4 => >=1.2.0 <3.5.0-0
-const hyphenReplace = incPr => ($0,
-  from, fM, fm, fp, fpr, fb,
-  to, tM, tm, tp, tpr, tb) => {
-  if (isX(fM)) {
-    from = ''
-  } else if (isX(fm)) {
-    from = `>=${fM}.0.0${incPr ? '-0' : ''}`
-  } else if (isX(fp)) {
-    from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`
-  } else if (fpr) {
-    from = `>=${from}`
-  } else {
-    from = `>=${from}${incPr ? '-0' : ''}`
-  }
-
-  if (isX(tM)) {
-    to = ''
-  } else if (isX(tm)) {
-    to = `<${+tM + 1}.0.0-0`
-  } else if (isX(tp)) {
-    to = `<${tM}.${+tm + 1}.0-0`
-  } else if (tpr) {
-    to = `<=${tM}.${tm}.${tp}-${tpr}`
-  } else if (incPr) {
-    to = `<${tM}.${tm}.${+tp + 1}-0`
-  } else {
-    to = `<=${to}`
-  }
-
-  return `${from} ${to}`.trim()
+function isJQueryStyleEventEmitter(target) {
+    return isFunction_1.isFunction(target.on) && isFunction_1.isFunction(target.off);
 }
-
-const testSet = (set, version, options) => {
-  for (let i = 0; i < set.length; i++) {
-    if (!set[i].test(version)) {
-      return false
-    }
-  }
-
-  if (version.prerelease.length && !options.includePrerelease) {
-    // Find the set of versions that are allowed to have prereleases
-    // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
-    // That should allow `1.2.3-pr.2` to pass.
-    // However, `1.2.4-alpha.notready` should NOT be allowed,
-    // even though it's within the range set by the comparators.
-    for (let i = 0; i < set.length; i++) {
-      debug(set[i].semver)
-      if (set[i].semver === Comparator.ANY) {
-        continue
-      }
-
-      if (set[i].semver.prerelease.length > 0) {
-        const allowed = set[i].semver
-        if (allowed.major === version.major &&
-            allowed.minor === version.minor &&
-            allowed.patch === version.patch) {
-          return true
-        }
-      }
-    }
-
-    // Version has a -pre, but it's not one of the ones we like.
-    return false
-  }
-
-  return true
+function isEventTarget(target) {
+    return isFunction_1.isFunction(target.addEventListener) && isFunction_1.isFunction(target.removeEventListener);
 }
-
+//# sourceMappingURL=fromEvent.js.map
 
 /***/ }),
 
-/***/ 48088:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-const debug = __nccwpck_require__(50427)
-const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(42293)
-const { safeRe: re, t } = __nccwpck_require__(9523)
+/***/ 65680:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const parseOptions = __nccwpck_require__(40785)
-const { compareIdentifiers } = __nccwpck_require__(92463)
-class SemVer {
-  constructor (version, options) {
-    options = parseOptions(options)
+"use strict";
 
-    if (version instanceof SemVer) {
-      if (version.loose === !!options.loose &&
-          version.includePrerelease === !!options.includePrerelease) {
-        return version
-      } else {
-        version = version.version
-      }
-    } else if (typeof version !== 'string') {
-      throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`)
-    }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.fromEventPattern = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var isFunction_1 = __nccwpck_require__(67206);
+var mapOneOrManyArgs_1 = __nccwpck_require__(78934);
+function fromEventPattern(addHandler, removeHandler, resultSelector) {
+    if (resultSelector) {
+        return fromEventPattern(addHandler, removeHandler).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector));
+    }
+    return new Observable_1.Observable(function (subscriber) {
+        var handler = function () {
+            var e = [];
+            for (var _i = 0; _i < arguments.length; _i++) {
+                e[_i] = arguments[_i];
+            }
+            return subscriber.next(e.length === 1 ? e[0] : e);
+        };
+        var retValue = addHandler(handler);
+        return isFunction_1.isFunction(removeHandler) ? function () { return removeHandler(handler, retValue); } : undefined;
+    });
+}
+exports.fromEventPattern = fromEventPattern;
+//# sourceMappingURL=fromEventPattern.js.map
 
-    if (version.length > MAX_LENGTH) {
-      throw new TypeError(
-        `version is longer than ${MAX_LENGTH} characters`
-      )
-    }
+/***/ }),
 
-    debug('SemVer', version, options)
-    this.options = options
-    this.loose = !!options.loose
-    // this isn't actually relevant for versions, but keep it so that we
-    // don't run into trouble passing this.options around.
-    this.includePrerelease = !!options.includePrerelease
+/***/ 66513:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])
+"use strict";
 
-    if (!m) {
-      throw new TypeError(`Invalid Version: ${version}`)
-    }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.fromSubscribable = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+function fromSubscribable(subscribable) {
+    return new Observable_1.Observable(function (subscriber) { return subscribable.subscribe(subscriber); });
+}
+exports.fromSubscribable = fromSubscribable;
+//# sourceMappingURL=fromSubscribable.js.map
 
-    this.raw = version
+/***/ }),
 
-    // these are actually numbers
-    this.major = +m[1]
-    this.minor = +m[2]
-    this.patch = +m[3]
+/***/ 52668:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-    if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
-      throw new TypeError('Invalid major version')
-    }
+"use strict";
 
-    if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
-      throw new TypeError('Invalid minor version')
+var __generator = (this && this.__generator) || function (thisArg, body) {
+    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
+    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
+    function verb(n) { return function (v) { return step([n, v]); }; }
+    function step(op) {
+        if (f) throw new TypeError("Generator is already executing.");
+        while (_) try {
+            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
+            if (y = 0, t) op = [op[0] & 2, t.value];
+            switch (op[0]) {
+                case 0: case 1: t = op; break;
+                case 4: _.label++; return { value: op[1], done: false };
+                case 5: _.label++; y = op[1]; op = [0]; continue;
+                case 7: op = _.ops.pop(); _.trys.pop(); continue;
+                default:
+                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
+                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
+                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
+                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
+                    if (t[2]) _.ops.pop();
+                    _.trys.pop(); continue;
+            }
+            op = body.call(thisArg, _);
+        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
+        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
     }
-
-    if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
-      throw new TypeError('Invalid patch version')
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.generate = void 0;
+var identity_1 = __nccwpck_require__(60283);
+var isScheduler_1 = __nccwpck_require__(84078);
+var defer_1 = __nccwpck_require__(27672);
+var scheduleIterable_1 = __nccwpck_require__(59461);
+function generate(initialStateOrOptions, condition, iterate, resultSelectorOrScheduler, scheduler) {
+    var _a, _b;
+    var resultSelector;
+    var initialState;
+    if (arguments.length === 1) {
+        (_a = initialStateOrOptions, initialState = _a.initialState, condition = _a.condition, iterate = _a.iterate, _b = _a.resultSelector, resultSelector = _b === void 0 ? identity_1.identity : _b, scheduler = _a.scheduler);
     }
-
-    // numberify any prerelease numeric ids
-    if (!m[4]) {
-      this.prerelease = []
-    } else {
-      this.prerelease = m[4].split('.').map((id) => {
-        if (/^[0-9]+$/.test(id)) {
-          const num = +id
-          if (num >= 0 && num < MAX_SAFE_INTEGER) {
-            return num
-          }
+    else {
+        initialState = initialStateOrOptions;
+        if (!resultSelectorOrScheduler || isScheduler_1.isScheduler(resultSelectorOrScheduler)) {
+            resultSelector = identity_1.identity;
+            scheduler = resultSelectorOrScheduler;
         }
-        return id
-      })
-    }
-
-    this.build = m[5] ? m[5].split('.') : []
-    this.format()
-  }
-
-  format () {
-    this.version = `${this.major}.${this.minor}.${this.patch}`
-    if (this.prerelease.length) {
-      this.version += `-${this.prerelease.join('.')}`
+        else {
+            resultSelector = resultSelectorOrScheduler;
+        }
+    }
+    function gen() {
+        var state;
+        return __generator(this, function (_a) {
+            switch (_a.label) {
+                case 0:
+                    state = initialState;
+                    _a.label = 1;
+                case 1:
+                    if (!(!condition || condition(state))) return [3, 4];
+                    return [4, resultSelector(state)];
+                case 2:
+                    _a.sent();
+                    _a.label = 3;
+                case 3:
+                    state = iterate(state);
+                    return [3, 1];
+                case 4: return [2];
+            }
+        });
     }
-    return this.version
-  }
+    return defer_1.defer((scheduler
+        ?
+            function () { return scheduleIterable_1.scheduleIterable(gen(), scheduler); }
+        :
+            gen));
+}
+exports.generate = generate;
+//# sourceMappingURL=generate.js.map
 
-  toString () {
-    return this.version
-  }
+/***/ }),
 
-  compare (other) {
-    debug('SemVer.compare', this.version, this.options, other)
-    if (!(other instanceof SemVer)) {
-      if (typeof other === 'string' && other === this.version) {
-        return 0
-      }
-      other = new SemVer(other, this.options)
-    }
+/***/ 26514:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    if (other.version === this.version) {
-      return 0
-    }
+"use strict";
 
-    return this.compareMain(other) || this.comparePre(other)
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.iif = void 0;
+var defer_1 = __nccwpck_require__(27672);
+function iif(condition, trueResult, falseResult) {
+    return defer_1.defer(function () { return (condition() ? trueResult : falseResult); });
+}
+exports.iif = iif;
+//# sourceMappingURL=iif.js.map
 
-  compareMain (other) {
-    if (!(other instanceof SemVer)) {
-      other = new SemVer(other, this.options)
-    }
+/***/ }),
 
-    return (
-      compareIdentifiers(this.major, other.major) ||
-      compareIdentifiers(this.minor, other.minor) ||
-      compareIdentifiers(this.patch, other.patch)
-    )
-  }
+/***/ 57105:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-  comparePre (other) {
-    if (!(other instanceof SemVer)) {
-      other = new SemVer(other, this.options)
-    }
+"use strict";
 
-    // NOT having a prerelease is > having one
-    if (this.prerelease.length && !other.prerelease.length) {
-      return -1
-    } else if (!this.prerelease.length && other.prerelease.length) {
-      return 1
-    } else if (!this.prerelease.length && !other.prerelease.length) {
-      return 0
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
+    return new (P || (P = Promise))(function (resolve, reject) {
+        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
+        step((generator = generator.apply(thisArg, _arguments || [])).next());
+    });
+};
+var __generator = (this && this.__generator) || function (thisArg, body) {
+    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
+    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
+    function verb(n) { return function (v) { return step([n, v]); }; }
+    function step(op) {
+        if (f) throw new TypeError("Generator is already executing.");
+        while (_) try {
+            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
+            if (y = 0, t) op = [op[0] & 2, t.value];
+            switch (op[0]) {
+                case 0: case 1: t = op; break;
+                case 4: _.label++; return { value: op[1], done: false };
+                case 5: _.label++; y = op[1]; op = [0]; continue;
+                case 7: op = _.ops.pop(); _.trys.pop(); continue;
+                default:
+                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
+                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
+                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
+                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
+                    if (t[2]) _.ops.pop();
+                    _.trys.pop(); continue;
+            }
+            op = body.call(thisArg, _);
+        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
+        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
     }
-
-    let i = 0
-    do {
-      const a = this.prerelease[i]
-      const b = other.prerelease[i]
-      debug('prerelease compare', i, a, b)
-      if (a === undefined && b === undefined) {
-        return 0
-      } else if (b === undefined) {
-        return 1
-      } else if (a === undefined) {
-        return -1
-      } else if (a === b) {
-        continue
-      } else {
-        return compareIdentifiers(a, b)
-      }
-    } while (++i)
-  }
-
-  compareBuild (other) {
-    if (!(other instanceof SemVer)) {
-      other = new SemVer(other, this.options)
+};
+var __asyncValues = (this && this.__asyncValues) || function (o) {
+    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
+    var m = o[Symbol.asyncIterator], i;
+    return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
+    function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
+    function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
+};
+var __values = (this && this.__values) || function(o) {
+    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+    if (m) return m.call(o);
+    if (o && typeof o.length === "number") return {
+        next: function () {
+            if (o && i >= o.length) o = void 0;
+            return { value: o && o[i++], done: !o };
+        }
+    };
+    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.fromReadableStreamLike = exports.fromAsyncIterable = exports.fromIterable = exports.fromPromise = exports.fromArrayLike = exports.fromInteropObservable = exports.innerFrom = void 0;
+var isArrayLike_1 = __nccwpck_require__(24461);
+var isPromise_1 = __nccwpck_require__(65585);
+var Observable_1 = __nccwpck_require__(53014);
+var isInteropObservable_1 = __nccwpck_require__(67984);
+var isAsyncIterable_1 = __nccwpck_require__(44408);
+var throwUnobservableError_1 = __nccwpck_require__(97364);
+var isIterable_1 = __nccwpck_require__(94292);
+var isReadableStreamLike_1 = __nccwpck_require__(99621);
+var isFunction_1 = __nccwpck_require__(67206);
+var reportUnhandledError_1 = __nccwpck_require__(92445);
+var observable_1 = __nccwpck_require__(17186);
+function innerFrom(input) {
+    if (input instanceof Observable_1.Observable) {
+        return input;
     }
-
-    let i = 0
-    do {
-      const a = this.build[i]
-      const b = other.build[i]
-      debug('prerelease compare', i, a, b)
-      if (a === undefined && b === undefined) {
-        return 0
-      } else if (b === undefined) {
-        return 1
-      } else if (a === undefined) {
-        return -1
-      } else if (a === b) {
-        continue
-      } else {
-        return compareIdentifiers(a, b)
-      }
-    } while (++i)
-  }
-
-  // preminor will bump the version up to the next minor release, and immediately
-  // down to pre-release. premajor and prepatch work the same way.
-  inc (release, identifier, identifierBase) {
-    switch (release) {
-      case 'premajor':
-        this.prerelease.length = 0
-        this.patch = 0
-        this.minor = 0
-        this.major++
-        this.inc('pre', identifier, identifierBase)
-        break
-      case 'preminor':
-        this.prerelease.length = 0
-        this.patch = 0
-        this.minor++
-        this.inc('pre', identifier, identifierBase)
-        break
-      case 'prepatch':
-        // If this is already a prerelease, it will bump to the next version
-        // drop any prereleases that might already exist, since they are not
-        // relevant at this point.
-        this.prerelease.length = 0
-        this.inc('patch', identifier, identifierBase)
-        this.inc('pre', identifier, identifierBase)
-        break
-      // If the input is a non-prerelease version, this acts the same as
-      // prepatch.
-      case 'prerelease':
-        if (this.prerelease.length === 0) {
-          this.inc('patch', identifier, identifierBase)
+    if (input != null) {
+        if (isInteropObservable_1.isInteropObservable(input)) {
+            return fromInteropObservable(input);
         }
-        this.inc('pre', identifier, identifierBase)
-        break
-
-      case 'major':
-        // If this is a pre-major version, bump up to the same major version.
-        // Otherwise increment major.
-        // 1.0.0-5 bumps to 1.0.0
-        // 1.1.0 bumps to 2.0.0
-        if (
-          this.minor !== 0 ||
-          this.patch !== 0 ||
-          this.prerelease.length === 0
-        ) {
-          this.major++
+        if (isArrayLike_1.isArrayLike(input)) {
+            return fromArrayLike(input);
         }
-        this.minor = 0
-        this.patch = 0
-        this.prerelease = []
-        break
-      case 'minor':
-        // If this is a pre-minor version, bump up to the same minor version.
-        // Otherwise increment minor.
-        // 1.2.0-5 bumps to 1.2.0
-        // 1.2.1 bumps to 1.3.0
-        if (this.patch !== 0 || this.prerelease.length === 0) {
-          this.minor++
+        if (isPromise_1.isPromise(input)) {
+            return fromPromise(input);
         }
-        this.patch = 0
-        this.prerelease = []
-        break
-      case 'patch':
-        // If this is not a pre-release version, it will increment the patch.
-        // If it is a pre-release it will bump up to the same patch version.
-        // 1.2.0-5 patches to 1.2.0
-        // 1.2.0 patches to 1.2.1
-        if (this.prerelease.length === 0) {
-          this.patch++
+        if (isAsyncIterable_1.isAsyncIterable(input)) {
+            return fromAsyncIterable(input);
         }
-        this.prerelease = []
-        break
-      // This probably shouldn't be used publicly.
-      // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
-      case 'pre': {
-        const base = Number(identifierBase) ? 1 : 0
-
-        if (!identifier && identifierBase === false) {
-          throw new Error('invalid increment argument: identifier is empty')
+        if (isIterable_1.isIterable(input)) {
+            return fromIterable(input);
         }
-
-        if (this.prerelease.length === 0) {
-          this.prerelease = [base]
-        } else {
-          let i = this.prerelease.length
-          while (--i >= 0) {
-            if (typeof this.prerelease[i] === 'number') {
-              this.prerelease[i]++
-              i = -2
-            }
-          }
-          if (i === -1) {
-            // didn't increment anything
-            if (identifier === this.prerelease.join('.') && identifierBase === false) {
-              throw new Error('invalid increment argument: identifier already exists')
+        if (isReadableStreamLike_1.isReadableStreamLike(input)) {
+            return fromReadableStreamLike(input);
+        }
+    }
+    throw throwUnobservableError_1.createInvalidObservableTypeError(input);
+}
+exports.innerFrom = innerFrom;
+function fromInteropObservable(obj) {
+    return new Observable_1.Observable(function (subscriber) {
+        var obs = obj[observable_1.observable]();
+        if (isFunction_1.isFunction(obs.subscribe)) {
+            return obs.subscribe(subscriber);
+        }
+        throw new TypeError('Provided object does not correctly implement Symbol.observable');
+    });
+}
+exports.fromInteropObservable = fromInteropObservable;
+function fromArrayLike(array) {
+    return new Observable_1.Observable(function (subscriber) {
+        for (var i = 0; i < array.length && !subscriber.closed; i++) {
+            subscriber.next(array[i]);
+        }
+        subscriber.complete();
+    });
+}
+exports.fromArrayLike = fromArrayLike;
+function fromPromise(promise) {
+    return new Observable_1.Observable(function (subscriber) {
+        promise
+            .then(function (value) {
+            if (!subscriber.closed) {
+                subscriber.next(value);
+                subscriber.complete();
+            }
+        }, function (err) { return subscriber.error(err); })
+            .then(null, reportUnhandledError_1.reportUnhandledError);
+    });
+}
+exports.fromPromise = fromPromise;
+function fromIterable(iterable) {
+    return new Observable_1.Observable(function (subscriber) {
+        var e_1, _a;
+        try {
+            for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
+                var value = iterable_1_1.value;
+                subscriber.next(value);
+                if (subscriber.closed) {
+                    return;
+                }
             }
-            this.prerelease.push(base)
-          }
         }
-        if (identifier) {
-          // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
-          // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
-          let prerelease = [identifier, base]
-          if (identifierBase === false) {
-            prerelease = [identifier]
-          }
-          if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
-            if (isNaN(this.prerelease[1])) {
-              this.prerelease = prerelease
+        catch (e_1_1) { e_1 = { error: e_1_1 }; }
+        finally {
+            try {
+                if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return)) _a.call(iterable_1);
             }
-          } else {
-            this.prerelease = prerelease
-          }
+            finally { if (e_1) throw e_1.error; }
         }
-        break
-      }
-      default:
-        throw new Error(`invalid increment argument: ${release}`)
-    }
-    this.raw = this.format()
-    if (this.build.length) {
-      this.raw += `+${this.build.join('.')}`
-    }
-    return this
-  }
+        subscriber.complete();
+    });
 }
-
-module.exports = SemVer
-
+exports.fromIterable = fromIterable;
+function fromAsyncIterable(asyncIterable) {
+    return new Observable_1.Observable(function (subscriber) {
+        process(asyncIterable, subscriber).catch(function (err) { return subscriber.error(err); });
+    });
+}
+exports.fromAsyncIterable = fromAsyncIterable;
+function fromReadableStreamLike(readableStream) {
+    return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
+}
+exports.fromReadableStreamLike = fromReadableStreamLike;
+function process(asyncIterable, subscriber) {
+    var asyncIterable_1, asyncIterable_1_1;
+    var e_2, _a;
+    return __awaiter(this, void 0, void 0, function () {
+        var value, e_2_1;
+        return __generator(this, function (_b) {
+            switch (_b.label) {
+                case 0:
+                    _b.trys.push([0, 5, 6, 11]);
+                    asyncIterable_1 = __asyncValues(asyncIterable);
+                    _b.label = 1;
+                case 1: return [4, asyncIterable_1.next()];
+                case 2:
+                    if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done)) return [3, 4];
+                    value = asyncIterable_1_1.value;
+                    subscriber.next(value);
+                    if (subscriber.closed) {
+                        return [2];
+                    }
+                    _b.label = 3;
+                case 3: return [3, 1];
+                case 4: return [3, 11];
+                case 5:
+                    e_2_1 = _b.sent();
+                    e_2 = { error: e_2_1 };
+                    return [3, 11];
+                case 6:
+                    _b.trys.push([6, , 9, 10]);
+                    if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return))) return [3, 8];
+                    return [4, _a.call(asyncIterable_1)];
+                case 7:
+                    _b.sent();
+                    _b.label = 8;
+                case 8: return [3, 10];
+                case 9:
+                    if (e_2) throw e_2.error;
+                    return [7];
+                case 10: return [7];
+                case 11:
+                    subscriber.complete();
+                    return [2];
+            }
+        });
+    });
+}
+//# sourceMappingURL=innerFrom.js.map
 
 /***/ }),
 
-/***/ 48848:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 20029:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const parse = __nccwpck_require__(75925)
-const clean = (version, options) => {
-  const s = parse(version.trim().replace(/^[=v]+/, ''), options)
-  return s ? s.version : null
-}
-module.exports = clean
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.interval = void 0;
+var async_1 = __nccwpck_require__(76072);
+var timer_1 = __nccwpck_require__(59757);
+function interval(period, scheduler) {
+    if (period === void 0) { period = 0; }
+    if (scheduler === void 0) { scheduler = async_1.asyncScheduler; }
+    if (period < 0) {
+        period = 0;
+    }
+    return timer_1.timer(period, period, scheduler);
+}
+exports.interval = interval;
+//# sourceMappingURL=interval.js.map
 
 /***/ }),
 
-/***/ 75098:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 75122:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const eq = __nccwpck_require__(91898)
-const neq = __nccwpck_require__(6017)
-const gt = __nccwpck_require__(84123)
-const gte = __nccwpck_require__(15522)
-const lt = __nccwpck_require__(80194)
-const lte = __nccwpck_require__(77520)
+"use strict";
 
-const cmp = (a, op, b, loose) => {
-  switch (op) {
-    case '===':
-      if (typeof a === 'object') {
-        a = a.version
-      }
-      if (typeof b === 'object') {
-        b = b.version
-      }
-      return a === b
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.merge = void 0;
+var mergeAll_1 = __nccwpck_require__(2057);
+var innerFrom_1 = __nccwpck_require__(57105);
+var empty_1 = __nccwpck_require__(70437);
+var args_1 = __nccwpck_require__(34890);
+var from_1 = __nccwpck_require__(18309);
+function merge() {
+    var args = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        args[_i] = arguments[_i];
+    }
+    var scheduler = args_1.popScheduler(args);
+    var concurrent = args_1.popNumber(args, Infinity);
+    var sources = args;
+    return !sources.length
+        ?
+            empty_1.EMPTY
+        : sources.length === 1
+            ?
+                innerFrom_1.innerFrom(sources[0])
+            :
+                mergeAll_1.mergeAll(concurrent)(from_1.from(sources, scheduler));
+}
+exports.merge = merge;
+//# sourceMappingURL=merge.js.map
 
-    case '!==':
-      if (typeof a === 'object') {
-        a = a.version
-      }
-      if (typeof b === 'object') {
-        b = b.version
-      }
-      return a !== b
+/***/ }),
 
-    case '':
-    case '=':
-    case '==':
-      return eq(a, b, loose)
+/***/ 6228:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    case '!=':
-      return neq(a, b, loose)
+"use strict";
 
-    case '>':
-      return gt(a, b, loose)
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.never = exports.NEVER = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var noop_1 = __nccwpck_require__(11642);
+exports.NEVER = new Observable_1.Observable(noop_1.noop);
+function never() {
+    return exports.NEVER;
+}
+exports.never = never;
+//# sourceMappingURL=never.js.map
 
-    case '>=':
-      return gte(a, b, loose)
+/***/ }),
 
-    case '<':
-      return lt(a, b, loose)
+/***/ 72163:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    case '<=':
-      return lte(a, b, loose)
+"use strict";
 
-    default:
-      throw new TypeError(`Invalid operator: ${op}`)
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.of = void 0;
+var args_1 = __nccwpck_require__(34890);
+var from_1 = __nccwpck_require__(18309);
+function of() {
+    var args = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        args[_i] = arguments[_i];
+    }
+    var scheduler = args_1.popScheduler(args);
+    return from_1.from(args, scheduler);
 }
-module.exports = cmp
-
+exports.of = of;
+//# sourceMappingURL=of.js.map
 
 /***/ }),
 
-/***/ 13466:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-const SemVer = __nccwpck_require__(48088)
-const parse = __nccwpck_require__(75925)
-const { safeRe: re, t } = __nccwpck_require__(9523)
-
-const coerce = (version, options) => {
-  if (version instanceof SemVer) {
-    return version
-  }
+/***/ 16089:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  if (typeof version === 'number') {
-    version = String(version)
-  }
+"use strict";
 
-  if (typeof version !== 'string') {
-    return null
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.onErrorResumeNext = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var argsOrArgArray_1 = __nccwpck_require__(18824);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var noop_1 = __nccwpck_require__(11642);
+var innerFrom_1 = __nccwpck_require__(57105);
+function onErrorResumeNext() {
+    var sources = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        sources[_i] = arguments[_i];
+    }
+    var nextSources = argsOrArgArray_1.argsOrArgArray(sources);
+    return new Observable_1.Observable(function (subscriber) {
+        var sourceIndex = 0;
+        var subscribeNext = function () {
+            if (sourceIndex < nextSources.length) {
+                var nextSource = void 0;
+                try {
+                    nextSource = innerFrom_1.innerFrom(nextSources[sourceIndex++]);
+                }
+                catch (err) {
+                    subscribeNext();
+                    return;
+                }
+                var innerSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, undefined, noop_1.noop, noop_1.noop);
+                nextSource.subscribe(innerSubscriber);
+                innerSubscriber.add(subscribeNext);
+            }
+            else {
+                subscriber.complete();
+            }
+        };
+        subscribeNext();
+    });
+}
+exports.onErrorResumeNext = onErrorResumeNext;
+//# sourceMappingURL=onErrorResumeNext.js.map
 
-  options = options || {}
+/***/ }),
 
-  let match = null
-  if (!options.rtl) {
-    match = version.match(re[t.COERCE])
-  } else {
-    // Find the right-most coercible string that does not share
-    // a terminus with a more left-ward coercible string.
-    // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
-    //
-    // Walk through the string checking with a /g regexp
-    // Manually set the index so as to pick up overlapping matches.
-    // Stop when we get a match that ends at the string end, since no
-    // coercible string can be more right-ward without the same terminus.
-    let next
-    while ((next = re[t.COERCERTL].exec(version)) &&
-        (!match || match.index + match[0].length !== version.length)
-    ) {
-      if (!match ||
-            next.index + next[0].length !== match.index + match[0].length) {
-        match = next
-      }
-      re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length
-    }
-    // leave it in a clean state
-    re[t.COERCERTL].lastIndex = -1
-  }
+/***/ 30505:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  if (match === null) {
-    return null
-  }
+"use strict";
 
-  return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.pairs = void 0;
+var from_1 = __nccwpck_require__(18309);
+function pairs(obj, scheduler) {
+    return from_1.from(Object.entries(obj), scheduler);
 }
-module.exports = coerce
-
+exports.pairs = pairs;
+//# sourceMappingURL=pairs.js.map
 
 /***/ }),
 
-/***/ 92156:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 15506:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const SemVer = __nccwpck_require__(48088)
-const compareBuild = (a, b, loose) => {
-  const versionA = new SemVer(a, loose)
-  const versionB = new SemVer(b, loose)
-  return versionA.compare(versionB) || versionA.compareBuild(versionB)
-}
-module.exports = compareBuild
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.partition = void 0;
+var not_1 = __nccwpck_require__(54338);
+var filter_1 = __nccwpck_require__(36894);
+var innerFrom_1 = __nccwpck_require__(57105);
+function partition(source, predicate, thisArg) {
+    return [filter_1.filter(predicate, thisArg)(innerFrom_1.innerFrom(source)), filter_1.filter(not_1.not(predicate, thisArg))(innerFrom_1.innerFrom(source))];
+}
+exports.partition = partition;
+//# sourceMappingURL=partition.js.map
 
 /***/ }),
 
-/***/ 62804:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 16940:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const compare = __nccwpck_require__(44309)
-const compareLoose = (a, b) => compare(a, b, true)
-module.exports = compareLoose
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.raceInit = exports.race = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var innerFrom_1 = __nccwpck_require__(57105);
+var argsOrArgArray_1 = __nccwpck_require__(18824);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function race() {
+    var sources = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        sources[_i] = arguments[_i];
+    }
+    sources = argsOrArgArray_1.argsOrArgArray(sources);
+    return sources.length === 1 ? innerFrom_1.innerFrom(sources[0]) : new Observable_1.Observable(raceInit(sources));
+}
+exports.race = race;
+function raceInit(sources) {
+    return function (subscriber) {
+        var subscriptions = [];
+        var _loop_1 = function (i) {
+            subscriptions.push(innerFrom_1.innerFrom(sources[i]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+                if (subscriptions) {
+                    for (var s = 0; s < subscriptions.length; s++) {
+                        s !== i && subscriptions[s].unsubscribe();
+                    }
+                    subscriptions = null;
+                }
+                subscriber.next(value);
+            })));
+        };
+        for (var i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) {
+            _loop_1(i);
+        }
+    };
+}
+exports.raceInit = raceInit;
+//# sourceMappingURL=race.js.map
 
 /***/ }),
 
-/***/ 44309:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-const SemVer = __nccwpck_require__(48088)
-const compare = (a, b, loose) =>
-  new SemVer(a, loose).compare(new SemVer(b, loose))
+/***/ 88538:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-module.exports = compare
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.range = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var empty_1 = __nccwpck_require__(70437);
+function range(start, count, scheduler) {
+    if (count == null) {
+        count = start;
+        start = 0;
+    }
+    if (count <= 0) {
+        return empty_1.EMPTY;
+    }
+    var end = count + start;
+    return new Observable_1.Observable(scheduler
+        ?
+            function (subscriber) {
+                var n = start;
+                return scheduler.schedule(function () {
+                    if (n < end) {
+                        subscriber.next(n++);
+                        this.schedule();
+                    }
+                    else {
+                        subscriber.complete();
+                    }
+                });
+            }
+        :
+            function (subscriber) {
+                var n = start;
+                while (n < end && !subscriber.closed) {
+                    subscriber.next(n++);
+                }
+                subscriber.complete();
+            });
+}
+exports.range = range;
+//# sourceMappingURL=range.js.map
 
 /***/ }),
 
-/***/ 64297:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 66381:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const parse = __nccwpck_require__(75925)
+"use strict";
 
-const diff = (version1, version2) => {
-  const v1 = parse(version1, null, true)
-  const v2 = parse(version2, null, true)
-  const comparison = v1.compare(v2)
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.throwError = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var isFunction_1 = __nccwpck_require__(67206);
+function throwError(errorOrErrorFactory, scheduler) {
+    var errorFactory = isFunction_1.isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function () { return errorOrErrorFactory; };
+    var init = function (subscriber) { return subscriber.error(errorFactory()); };
+    return new Observable_1.Observable(scheduler ? function (subscriber) { return scheduler.schedule(init, 0, subscriber); } : init);
+}
+exports.throwError = throwError;
+//# sourceMappingURL=throwError.js.map
 
-  if (comparison === 0) {
-    return null
-  }
+/***/ }),
 
-  const v1Higher = comparison > 0
-  const highVersion = v1Higher ? v1 : v2
-  const lowVersion = v1Higher ? v2 : v1
-  const highHasPre = !!highVersion.prerelease.length
-  const lowHasPre = !!lowVersion.prerelease.length
+/***/ 59757:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  if (lowHasPre && !highHasPre) {
-    // Going from prerelease -> no prerelease requires some special casing
+"use strict";
 
-    // If the low version has only a major, then it will always be a major
-    // Some examples:
-    // 1.0.0-1 -> 1.0.0
-    // 1.0.0-1 -> 1.1.1
-    // 1.0.0-1 -> 2.0.0
-    if (!lowVersion.patch && !lowVersion.minor) {
-      return 'major'
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.timer = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var async_1 = __nccwpck_require__(76072);
+var isScheduler_1 = __nccwpck_require__(84078);
+var isDate_1 = __nccwpck_require__(60935);
+function timer(dueTime, intervalOrScheduler, scheduler) {
+    if (dueTime === void 0) { dueTime = 0; }
+    if (scheduler === void 0) { scheduler = async_1.async; }
+    var intervalDuration = -1;
+    if (intervalOrScheduler != null) {
+        if (isScheduler_1.isScheduler(intervalOrScheduler)) {
+            scheduler = intervalOrScheduler;
+        }
+        else {
+            intervalDuration = intervalOrScheduler;
+        }
     }
+    return new Observable_1.Observable(function (subscriber) {
+        var due = isDate_1.isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime;
+        if (due < 0) {
+            due = 0;
+        }
+        var n = 0;
+        return scheduler.schedule(function () {
+            if (!subscriber.closed) {
+                subscriber.next(n++);
+                if (0 <= intervalDuration) {
+                    this.schedule(undefined, intervalDuration);
+                }
+                else {
+                    subscriber.complete();
+                }
+            }
+        }, due);
+    });
+}
+exports.timer = timer;
+//# sourceMappingURL=timer.js.map
 
-    // Otherwise it can be determined by checking the high version
-
-    if (highVersion.patch) {
-      // anything higher than a patch bump would result in the wrong version
-      return 'patch'
-    }
+/***/ }),
 
-    if (highVersion.minor) {
-      // anything higher than a minor bump would result in the wrong version
-      return 'minor'
-    }
+/***/ 8445:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    // bumping major/minor/patch all have same result
-    return 'major'
-  }
+"use strict";
 
-  // add the `pre` prefix if we are going to a prerelease version
-  const prefix = highHasPre ? 'pre' : ''
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.using = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var innerFrom_1 = __nccwpck_require__(57105);
+var empty_1 = __nccwpck_require__(70437);
+function using(resourceFactory, observableFactory) {
+    return new Observable_1.Observable(function (subscriber) {
+        var resource = resourceFactory();
+        var result = observableFactory(resource);
+        var source = result ? innerFrom_1.innerFrom(result) : empty_1.EMPTY;
+        source.subscribe(subscriber);
+        return function () {
+            if (resource) {
+                resource.unsubscribe();
+            }
+        };
+    });
+}
+exports.using = using;
+//# sourceMappingURL=using.js.map
 
-  if (v1.major !== v2.major) {
-    return prefix + 'major'
-  }
+/***/ }),
 
-  if (v1.minor !== v2.minor) {
-    return prefix + 'minor'
-  }
+/***/ 62504:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-  if (v1.patch !== v2.patch) {
-    return prefix + 'patch'
-  }
+"use strict";
 
-  // high and low are preleases
-  return 'prerelease'
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.zip = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var innerFrom_1 = __nccwpck_require__(57105);
+var argsOrArgArray_1 = __nccwpck_require__(18824);
+var empty_1 = __nccwpck_require__(70437);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var args_1 = __nccwpck_require__(34890);
+function zip() {
+    var args = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        args[_i] = arguments[_i];
+    }
+    var resultSelector = args_1.popResultSelector(args);
+    var sources = argsOrArgArray_1.argsOrArgArray(args);
+    return sources.length
+        ? new Observable_1.Observable(function (subscriber) {
+            var buffers = sources.map(function () { return []; });
+            var completed = sources.map(function () { return false; });
+            subscriber.add(function () {
+                buffers = completed = null;
+            });
+            var _loop_1 = function (sourceIndex) {
+                innerFrom_1.innerFrom(sources[sourceIndex]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+                    buffers[sourceIndex].push(value);
+                    if (buffers.every(function (buffer) { return buffer.length; })) {
+                        var result = buffers.map(function (buffer) { return buffer.shift(); });
+                        subscriber.next(resultSelector ? resultSelector.apply(void 0, __spreadArray([], __read(result))) : result);
+                        if (buffers.some(function (buffer, i) { return !buffer.length && completed[i]; })) {
+                            subscriber.complete();
+                        }
+                    }
+                }, function () {
+                    completed[sourceIndex] = true;
+                    !buffers[sourceIndex].length && subscriber.complete();
+                }));
+            };
+            for (var sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) {
+                _loop_1(sourceIndex);
+            }
+            return function () {
+                buffers = completed = null;
+            };
+        })
+        : empty_1.EMPTY;
 }
+exports.zip = zip;
+//# sourceMappingURL=zip.js.map
 
-module.exports = diff
+/***/ }),
 
+/***/ 69549:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.OperatorSubscriber = exports.createOperatorSubscriber = void 0;
+var Subscriber_1 = __nccwpck_require__(67121);
+function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
+    return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
+}
+exports.createOperatorSubscriber = createOperatorSubscriber;
+var OperatorSubscriber = (function (_super) {
+    __extends(OperatorSubscriber, _super);
+    function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
+        var _this = _super.call(this, destination) || this;
+        _this.onFinalize = onFinalize;
+        _this.shouldUnsubscribe = shouldUnsubscribe;
+        _this._next = onNext
+            ? function (value) {
+                try {
+                    onNext(value);
+                }
+                catch (err) {
+                    destination.error(err);
+                }
+            }
+            : _super.prototype._next;
+        _this._error = onError
+            ? function (err) {
+                try {
+                    onError(err);
+                }
+                catch (err) {
+                    destination.error(err);
+                }
+                finally {
+                    this.unsubscribe();
+                }
+            }
+            : _super.prototype._error;
+        _this._complete = onComplete
+            ? function () {
+                try {
+                    onComplete();
+                }
+                catch (err) {
+                    destination.error(err);
+                }
+                finally {
+                    this.unsubscribe();
+                }
+            }
+            : _super.prototype._complete;
+        return _this;
+    }
+    OperatorSubscriber.prototype.unsubscribe = function () {
+        var _a;
+        if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
+            var closed_1 = this.closed;
+            _super.prototype.unsubscribe.call(this);
+            !closed_1 && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));
+        }
+    };
+    return OperatorSubscriber;
+}(Subscriber_1.Subscriber));
+exports.OperatorSubscriber = OperatorSubscriber;
+//# sourceMappingURL=OperatorSubscriber.js.map
 
 /***/ }),
 
-/***/ 91898:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 82704:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const compare = __nccwpck_require__(44309)
-const eq = (a, b, loose) => compare(a, b, loose) === 0
-module.exports = eq
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.audit = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var innerFrom_1 = __nccwpck_require__(57105);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function audit(durationSelector) {
+    return lift_1.operate(function (source, subscriber) {
+        var hasValue = false;
+        var lastValue = null;
+        var durationSubscriber = null;
+        var isComplete = false;
+        var endDuration = function () {
+            durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
+            durationSubscriber = null;
+            if (hasValue) {
+                hasValue = false;
+                var value = lastValue;
+                lastValue = null;
+                subscriber.next(value);
+            }
+            isComplete && subscriber.complete();
+        };
+        var cleanupDuration = function () {
+            durationSubscriber = null;
+            isComplete && subscriber.complete();
+        };
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            hasValue = true;
+            lastValue = value;
+            if (!durationSubscriber) {
+                innerFrom_1.innerFrom(durationSelector(value)).subscribe((durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, endDuration, cleanupDuration)));
+            }
+        }, function () {
+            isComplete = true;
+            (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete();
+        }));
+    });
+}
+exports.audit = audit;
+//# sourceMappingURL=audit.js.map
 
 /***/ }),
 
-/***/ 84123:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 18780:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const compare = __nccwpck_require__(44309)
-const gt = (a, b, loose) => compare(a, b, loose) > 0
-module.exports = gt
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.auditTime = void 0;
+var async_1 = __nccwpck_require__(76072);
+var audit_1 = __nccwpck_require__(82704);
+var timer_1 = __nccwpck_require__(59757);
+function auditTime(duration, scheduler) {
+    if (scheduler === void 0) { scheduler = async_1.asyncScheduler; }
+    return audit_1.audit(function () { return timer_1.timer(duration, scheduler); });
+}
+exports.auditTime = auditTime;
+//# sourceMappingURL=auditTime.js.map
 
 /***/ }),
 
-/***/ 15522:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 34253:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const compare = __nccwpck_require__(44309)
-const gte = (a, b, loose) => compare(a, b, loose) >= 0
-module.exports = gte
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.buffer = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var noop_1 = __nccwpck_require__(11642);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var innerFrom_1 = __nccwpck_require__(57105);
+function buffer(closingNotifier) {
+    return lift_1.operate(function (source, subscriber) {
+        var currentBuffer = [];
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return currentBuffer.push(value); }, function () {
+            subscriber.next(currentBuffer);
+            subscriber.complete();
+        }));
+        innerFrom_1.innerFrom(closingNotifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () {
+            var b = currentBuffer;
+            currentBuffer = [];
+            subscriber.next(b);
+        }, noop_1.noop));
+        return function () {
+            currentBuffer = null;
+        };
+    });
+}
+exports.buffer = buffer;
+//# sourceMappingURL=buffer.js.map
 
 /***/ }),
 
-/***/ 30900:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-const SemVer = __nccwpck_require__(48088)
+/***/ 17253:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-const inc = (version, release, options, identifier, identifierBase) => {
-  if (typeof (options) === 'string') {
-    identifierBase = identifier
-    identifier = options
-    options = undefined
-  }
+"use strict";
 
-  try {
-    return new SemVer(
-      version instanceof SemVer ? version.version : version,
-      options
-    ).inc(release, identifier, identifierBase).version
-  } catch (er) {
-    return null
-  }
+var __values = (this && this.__values) || function(o) {
+    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+    if (m) return m.call(o);
+    if (o && typeof o.length === "number") return {
+        next: function () {
+            if (o && i >= o.length) o = void 0;
+            return { value: o && o[i++], done: !o };
+        }
+    };
+    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.bufferCount = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var arrRemove_1 = __nccwpck_require__(68499);
+function bufferCount(bufferSize, startBufferEvery) {
+    if (startBufferEvery === void 0) { startBufferEvery = null; }
+    startBufferEvery = startBufferEvery !== null && startBufferEvery !== void 0 ? startBufferEvery : bufferSize;
+    return lift_1.operate(function (source, subscriber) {
+        var buffers = [];
+        var count = 0;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            var e_1, _a, e_2, _b;
+            var toEmit = null;
+            if (count++ % startBufferEvery === 0) {
+                buffers.push([]);
+            }
+            try {
+                for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) {
+                    var buffer = buffers_1_1.value;
+                    buffer.push(value);
+                    if (bufferSize <= buffer.length) {
+                        toEmit = toEmit !== null && toEmit !== void 0 ? toEmit : [];
+                        toEmit.push(buffer);
+                    }
+                }
+            }
+            catch (e_1_1) { e_1 = { error: e_1_1 }; }
+            finally {
+                try {
+                    if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1);
+                }
+                finally { if (e_1) throw e_1.error; }
+            }
+            if (toEmit) {
+                try {
+                    for (var toEmit_1 = __values(toEmit), toEmit_1_1 = toEmit_1.next(); !toEmit_1_1.done; toEmit_1_1 = toEmit_1.next()) {
+                        var buffer = toEmit_1_1.value;
+                        arrRemove_1.arrRemove(buffers, buffer);
+                        subscriber.next(buffer);
+                    }
+                }
+                catch (e_2_1) { e_2 = { error: e_2_1 }; }
+                finally {
+                    try {
+                        if (toEmit_1_1 && !toEmit_1_1.done && (_b = toEmit_1.return)) _b.call(toEmit_1);
+                    }
+                    finally { if (e_2) throw e_2.error; }
+                }
+            }
+        }, function () {
+            var e_3, _a;
+            try {
+                for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) {
+                    var buffer = buffers_2_1.value;
+                    subscriber.next(buffer);
+                }
+            }
+            catch (e_3_1) { e_3 = { error: e_3_1 }; }
+            finally {
+                try {
+                    if (buffers_2_1 && !buffers_2_1.done && (_a = buffers_2.return)) _a.call(buffers_2);
+                }
+                finally { if (e_3) throw e_3.error; }
+            }
+            subscriber.complete();
+        }, undefined, function () {
+            buffers = null;
+        }));
+    });
 }
-module.exports = inc
-
+exports.bufferCount = bufferCount;
+//# sourceMappingURL=bufferCount.js.map
 
 /***/ }),
 
-/***/ 80194:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 73102:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-const compare = __nccwpck_require__(44309)
-const lt = (a, b, loose) => compare(a, b, loose) < 0
-module.exports = lt
+"use strict";
 
+var __values = (this && this.__values) || function(o) {
+    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+    if (m) return m.call(o);
+    if (o && typeof o.length === "number") return {
+        next: function () {
+            if (o && i >= o.length) o = void 0;
+            return { value: o && o[i++], done: !o };
+        }
+    };
+    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.bufferTime = void 0;
+var Subscription_1 = __nccwpck_require__(79548);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var arrRemove_1 = __nccwpck_require__(68499);
+var async_1 = __nccwpck_require__(76072);
+var args_1 = __nccwpck_require__(34890);
+var executeSchedule_1 = __nccwpck_require__(82877);
+function bufferTime(bufferTimeSpan) {
+    var _a, _b;
+    var otherArgs = [];
+    for (var _i = 1; _i < arguments.length; _i++) {
+        otherArgs[_i - 1] = arguments[_i];
+    }
+    var scheduler = (_a = args_1.popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : async_1.asyncScheduler;
+    var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
+    var maxBufferSize = otherArgs[1] || Infinity;
+    return lift_1.operate(function (source, subscriber) {
+        var bufferRecords = [];
+        var restartOnEmit = false;
+        var emit = function (record) {
+            var buffer = record.buffer, subs = record.subs;
+            subs.unsubscribe();
+            arrRemove_1.arrRemove(bufferRecords, record);
+            subscriber.next(buffer);
+            restartOnEmit && startBuffer();
+        };
+        var startBuffer = function () {
+            if (bufferRecords) {
+                var subs = new Subscription_1.Subscription();
+                subscriber.add(subs);
+                var buffer = [];
+                var record_1 = {
+                    buffer: buffer,
+                    subs: subs,
+                };
+                bufferRecords.push(record_1);
+                executeSchedule_1.executeSchedule(subs, scheduler, function () { return emit(record_1); }, bufferTimeSpan);
+            }
+        };
+        if (bufferCreationInterval !== null && bufferCreationInterval >= 0) {
+            executeSchedule_1.executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true);
+        }
+        else {
+            restartOnEmit = true;
+        }
+        startBuffer();
+        var bufferTimeSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            var e_1, _a;
+            var recordsCopy = bufferRecords.slice();
+            try {
+                for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
+                    var record = recordsCopy_1_1.value;
+                    var buffer = record.buffer;
+                    buffer.push(value);
+                    maxBufferSize <= buffer.length && emit(record);
+                }
+            }
+            catch (e_1_1) { e_1 = { error: e_1_1 }; }
+            finally {
+                try {
+                    if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a = recordsCopy_1.return)) _a.call(recordsCopy_1);
+                }
+                finally { if (e_1) throw e_1.error; }
+            }
+        }, function () {
+            while (bufferRecords === null || bufferRecords === void 0 ? void 0 : bufferRecords.length) {
+                subscriber.next(bufferRecords.shift().buffer);
+            }
+            bufferTimeSubscriber === null || bufferTimeSubscriber === void 0 ? void 0 : bufferTimeSubscriber.unsubscribe();
+            subscriber.complete();
+            subscriber.unsubscribe();
+        }, undefined, function () { return (bufferRecords = null); });
+        source.subscribe(bufferTimeSubscriber);
+    });
+}
+exports.bufferTime = bufferTime;
+//# sourceMappingURL=bufferTime.js.map
 
 /***/ }),
 
-/***/ 77520:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 83781:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-const compare = __nccwpck_require__(44309)
-const lte = (a, b, loose) => compare(a, b, loose) <= 0
-module.exports = lte
+"use strict";
 
+var __values = (this && this.__values) || function(o) {
+    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+    if (m) return m.call(o);
+    if (o && typeof o.length === "number") return {
+        next: function () {
+            if (o && i >= o.length) o = void 0;
+            return { value: o && o[i++], done: !o };
+        }
+    };
+    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.bufferToggle = void 0;
+var Subscription_1 = __nccwpck_require__(79548);
+var lift_1 = __nccwpck_require__(38669);
+var innerFrom_1 = __nccwpck_require__(57105);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var noop_1 = __nccwpck_require__(11642);
+var arrRemove_1 = __nccwpck_require__(68499);
+function bufferToggle(openings, closingSelector) {
+    return lift_1.operate(function (source, subscriber) {
+        var buffers = [];
+        innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (openValue) {
+            var buffer = [];
+            buffers.push(buffer);
+            var closingSubscription = new Subscription_1.Subscription();
+            var emitBuffer = function () {
+                arrRemove_1.arrRemove(buffers, buffer);
+                subscriber.next(buffer);
+                closingSubscription.unsubscribe();
+            };
+            closingSubscription.add(innerFrom_1.innerFrom(closingSelector(openValue)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, emitBuffer, noop_1.noop)));
+        }, noop_1.noop));
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            var e_1, _a;
+            try {
+                for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) {
+                    var buffer = buffers_1_1.value;
+                    buffer.push(value);
+                }
+            }
+            catch (e_1_1) { e_1 = { error: e_1_1 }; }
+            finally {
+                try {
+                    if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1);
+                }
+                finally { if (e_1) throw e_1.error; }
+            }
+        }, function () {
+            while (buffers.length > 0) {
+                subscriber.next(buffers.shift());
+            }
+            subscriber.complete();
+        }));
+    });
+}
+exports.bufferToggle = bufferToggle;
+//# sourceMappingURL=bufferToggle.js.map
 
 /***/ }),
 
-/***/ 76688:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 82855:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const SemVer = __nccwpck_require__(48088)
-const major = (a, loose) => new SemVer(a, loose).major
-module.exports = major
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.bufferWhen = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var noop_1 = __nccwpck_require__(11642);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var innerFrom_1 = __nccwpck_require__(57105);
+function bufferWhen(closingSelector) {
+    return lift_1.operate(function (source, subscriber) {
+        var buffer = null;
+        var closingSubscriber = null;
+        var openBuffer = function () {
+            closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();
+            var b = buffer;
+            buffer = [];
+            b && subscriber.next(b);
+            innerFrom_1.innerFrom(closingSelector()).subscribe((closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openBuffer, noop_1.noop)));
+        };
+        openBuffer();
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return buffer === null || buffer === void 0 ? void 0 : buffer.push(value); }, function () {
+            buffer && subscriber.next(buffer);
+            subscriber.complete();
+        }, undefined, function () { return (buffer = closingSubscriber = null); }));
+    });
+}
+exports.bufferWhen = bufferWhen;
+//# sourceMappingURL=bufferWhen.js.map
 
 /***/ }),
 
-/***/ 38447:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 37765:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const SemVer = __nccwpck_require__(48088)
-const minor = (a, loose) => new SemVer(a, loose).minor
-module.exports = minor
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.catchError = void 0;
+var innerFrom_1 = __nccwpck_require__(57105);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var lift_1 = __nccwpck_require__(38669);
+function catchError(selector) {
+    return lift_1.operate(function (source, subscriber) {
+        var innerSub = null;
+        var syncUnsub = false;
+        var handledResult;
+        innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, undefined, function (err) {
+            handledResult = innerFrom_1.innerFrom(selector(err, catchError(selector)(source)));
+            if (innerSub) {
+                innerSub.unsubscribe();
+                innerSub = null;
+                handledResult.subscribe(subscriber);
+            }
+            else {
+                syncUnsub = true;
+            }
+        }));
+        if (syncUnsub) {
+            innerSub.unsubscribe();
+            innerSub = null;
+            handledResult.subscribe(subscriber);
+        }
+    });
+}
+exports.catchError = catchError;
+//# sourceMappingURL=catchError.js.map
 
 /***/ }),
 
-/***/ 6017:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 88817:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const compare = __nccwpck_require__(44309)
-const neq = (a, b, loose) => compare(a, b, loose) !== 0
-module.exports = neq
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.combineAll = void 0;
+var combineLatestAll_1 = __nccwpck_require__(91063);
+exports.combineAll = combineLatestAll_1.combineLatestAll;
+//# sourceMappingURL=combineAll.js.map
 
 /***/ }),
 
-/***/ 75925:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 96008:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-const SemVer = __nccwpck_require__(48088)
-const parse = (version, options, throwErrors = false) => {
-  if (version instanceof SemVer) {
-    return version
-  }
-  try {
-    return new SemVer(version, options)
-  } catch (er) {
-    if (!throwErrors) {
-      return null
+"use strict";
+
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
     }
-    throw er
-  }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.combineLatest = void 0;
+var combineLatest_1 = __nccwpck_require__(46843);
+var lift_1 = __nccwpck_require__(38669);
+var argsOrArgArray_1 = __nccwpck_require__(18824);
+var mapOneOrManyArgs_1 = __nccwpck_require__(78934);
+var pipe_1 = __nccwpck_require__(49587);
+var args_1 = __nccwpck_require__(34890);
+function combineLatest() {
+    var args = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        args[_i] = arguments[_i];
+    }
+    var resultSelector = args_1.popResultSelector(args);
+    return resultSelector
+        ? pipe_1.pipe(combineLatest.apply(void 0, __spreadArray([], __read(args))), mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector))
+        : lift_1.operate(function (source, subscriber) {
+            combineLatest_1.combineLatestInit(__spreadArray([source], __read(argsOrArgArray_1.argsOrArgArray(args))))(subscriber);
+        });
 }
-
-module.exports = parse
-
+exports.combineLatest = combineLatest;
+//# sourceMappingURL=combineLatest.js.map
 
 /***/ }),
 
-/***/ 42866:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 91063:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const SemVer = __nccwpck_require__(48088)
-const patch = (a, loose) => new SemVer(a, loose).patch
-module.exports = patch
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.combineLatestAll = void 0;
+var combineLatest_1 = __nccwpck_require__(46843);
+var joinAllInternals_1 = __nccwpck_require__(29341);
+function combineLatestAll(project) {
+    return joinAllInternals_1.joinAllInternals(combineLatest_1.combineLatest, project);
+}
+exports.combineLatestAll = combineLatestAll;
+//# sourceMappingURL=combineLatestAll.js.map
 
 /***/ }),
 
-/***/ 24016:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 19044:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-const parse = __nccwpck_require__(75925)
-const prerelease = (version, options) => {
-  const parsed = parse(version, options)
-  return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
-}
-module.exports = prerelease
+"use strict";
 
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.combineLatestWith = void 0;
+var combineLatest_1 = __nccwpck_require__(96008);
+function combineLatestWith() {
+    var otherSources = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        otherSources[_i] = arguments[_i];
+    }
+    return combineLatest_1.combineLatest.apply(void 0, __spreadArray([], __read(otherSources)));
+}
+exports.combineLatestWith = combineLatestWith;
+//# sourceMappingURL=combineLatestWith.js.map
 
 /***/ }),
 
-/***/ 76417:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 18500:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-const compare = __nccwpck_require__(44309)
-const rcompare = (a, b, loose) => compare(b, a, loose)
-module.exports = rcompare
+"use strict";
 
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.concat = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var concatAll_1 = __nccwpck_require__(88049);
+var args_1 = __nccwpck_require__(34890);
+var from_1 = __nccwpck_require__(18309);
+function concat() {
+    var args = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        args[_i] = arguments[_i];
+    }
+    var scheduler = args_1.popScheduler(args);
+    return lift_1.operate(function (source, subscriber) {
+        concatAll_1.concatAll()(from_1.from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);
+    });
+}
+exports.concat = concat;
+//# sourceMappingURL=concat.js.map
 
 /***/ }),
 
-/***/ 8701:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 88049:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const compareBuild = __nccwpck_require__(92156)
-const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))
-module.exports = rsort
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.concatAll = void 0;
+var mergeAll_1 = __nccwpck_require__(2057);
+function concatAll() {
+    return mergeAll_1.mergeAll(1);
+}
+exports.concatAll = concatAll;
+//# sourceMappingURL=concatAll.js.map
 
 /***/ }),
 
-/***/ 6055:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 19130:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const Range = __nccwpck_require__(9828)
-const satisfies = (version, range, options) => {
-  try {
-    range = new Range(range, options)
-  } catch (er) {
-    return false
-  }
-  return range.test(version)
-}
-module.exports = satisfies
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.concatMap = void 0;
+var mergeMap_1 = __nccwpck_require__(69914);
+var isFunction_1 = __nccwpck_require__(67206);
+function concatMap(project, resultSelector) {
+    return isFunction_1.isFunction(resultSelector) ? mergeMap_1.mergeMap(project, resultSelector, 1) : mergeMap_1.mergeMap(project, 1);
+}
+exports.concatMap = concatMap;
+//# sourceMappingURL=concatMap.js.map
 
 /***/ }),
 
-/***/ 61426:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 61596:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const compareBuild = __nccwpck_require__(92156)
-const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))
-module.exports = sort
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.concatMapTo = void 0;
+var concatMap_1 = __nccwpck_require__(19130);
+var isFunction_1 = __nccwpck_require__(67206);
+function concatMapTo(innerObservable, resultSelector) {
+    return isFunction_1.isFunction(resultSelector) ? concatMap_1.concatMap(function () { return innerObservable; }, resultSelector) : concatMap_1.concatMap(function () { return innerObservable; });
+}
+exports.concatMapTo = concatMapTo;
+//# sourceMappingURL=concatMapTo.js.map
 
 /***/ }),
 
-/***/ 19601:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 97998:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-const parse = __nccwpck_require__(75925)
-const valid = (version, options) => {
-  const v = parse(version, options)
-  return v ? v.version : null
-}
-module.exports = valid
+"use strict";
 
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.concatWith = void 0;
+var concat_1 = __nccwpck_require__(18500);
+function concatWith() {
+    var otherSources = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        otherSources[_i] = arguments[_i];
+    }
+    return concat_1.concat.apply(void 0, __spreadArray([], __read(otherSources)));
+}
+exports.concatWith = concatWith;
+//# sourceMappingURL=concatWith.js.map
 
 /***/ }),
 
-/***/ 11383:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 51101:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-// just pre-load all the stuff that index.js lazily exports
-const internalRe = __nccwpck_require__(9523)
-const constants = __nccwpck_require__(42293)
-const SemVer = __nccwpck_require__(48088)
-const identifiers = __nccwpck_require__(92463)
-const parse = __nccwpck_require__(75925)
-const valid = __nccwpck_require__(19601)
-const clean = __nccwpck_require__(48848)
-const inc = __nccwpck_require__(30900)
-const diff = __nccwpck_require__(64297)
-const major = __nccwpck_require__(76688)
-const minor = __nccwpck_require__(38447)
-const patch = __nccwpck_require__(42866)
-const prerelease = __nccwpck_require__(24016)
-const compare = __nccwpck_require__(44309)
-const rcompare = __nccwpck_require__(76417)
-const compareLoose = __nccwpck_require__(62804)
-const compareBuild = __nccwpck_require__(92156)
-const sort = __nccwpck_require__(61426)
-const rsort = __nccwpck_require__(8701)
-const gt = __nccwpck_require__(84123)
-const lt = __nccwpck_require__(80194)
-const eq = __nccwpck_require__(91898)
-const neq = __nccwpck_require__(6017)
-const gte = __nccwpck_require__(15522)
-const lte = __nccwpck_require__(77520)
-const cmp = __nccwpck_require__(75098)
-const coerce = __nccwpck_require__(13466)
-const Comparator = __nccwpck_require__(91532)
-const Range = __nccwpck_require__(9828)
-const satisfies = __nccwpck_require__(6055)
-const toComparators = __nccwpck_require__(52706)
-const maxSatisfying = __nccwpck_require__(20579)
-const minSatisfying = __nccwpck_require__(10832)
-const minVersion = __nccwpck_require__(34179)
-const validRange = __nccwpck_require__(2098)
-const outside = __nccwpck_require__(60420)
-const gtr = __nccwpck_require__(9380)
-const ltr = __nccwpck_require__(33323)
-const intersects = __nccwpck_require__(27008)
-const simplifyRange = __nccwpck_require__(56561)
-const subset = __nccwpck_require__(7863)
-module.exports = {
-  parse,
-  valid,
-  clean,
-  inc,
-  diff,
-  major,
-  minor,
-  patch,
-  prerelease,
-  compare,
-  rcompare,
-  compareLoose,
-  compareBuild,
-  sort,
-  rsort,
-  gt,
-  lt,
-  eq,
-  neq,
-  gte,
-  lte,
-  cmp,
-  coerce,
-  Comparator,
-  Range,
-  satisfies,
-  toComparators,
-  maxSatisfying,
-  minSatisfying,
-  minVersion,
-  validRange,
-  outside,
-  gtr,
-  ltr,
-  intersects,
-  simplifyRange,
-  subset,
-  SemVer,
-  re: internalRe.re,
-  src: internalRe.src,
-  tokens: internalRe.t,
-  SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
-  RELEASE_TYPES: constants.RELEASE_TYPES,
-  compareIdentifiers: identifiers.compareIdentifiers,
-  rcompareIdentifiers: identifiers.rcompareIdentifiers,
-}
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.connect = void 0;
+var Subject_1 = __nccwpck_require__(49944);
+var innerFrom_1 = __nccwpck_require__(57105);
+var lift_1 = __nccwpck_require__(38669);
+var fromSubscribable_1 = __nccwpck_require__(66513);
+var DEFAULT_CONFIG = {
+    connector: function () { return new Subject_1.Subject(); },
+};
+function connect(selector, config) {
+    if (config === void 0) { config = DEFAULT_CONFIG; }
+    var connector = config.connector;
+    return lift_1.operate(function (source, subscriber) {
+        var subject = connector();
+        innerFrom_1.innerFrom(selector(fromSubscribable_1.fromSubscribable(subject))).subscribe(subscriber);
+        subscriber.add(source.subscribe(subject));
+    });
+}
+exports.connect = connect;
+//# sourceMappingURL=connect.js.map
 
 /***/ }),
 
-/***/ 42293:
-/***/ ((module) => {
+/***/ 36571:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-// Note: this is the semver.org version of the spec that it implements
-// Not necessarily the package version of this code.
-const SEMVER_SPEC_VERSION = '2.0.0'
+"use strict";
 
-const MAX_LENGTH = 256
-const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
-/* istanbul ignore next */ 9007199254740991
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.count = void 0;
+var reduce_1 = __nccwpck_require__(62087);
+function count(predicate) {
+    return reduce_1.reduce(function (total, value, i) { return (!predicate || predicate(value, i) ? total + 1 : total); }, 0);
+}
+exports.count = count;
+//# sourceMappingURL=count.js.map
 
-// Max safe segment length for coercion.
-const MAX_SAFE_COMPONENT_LENGTH = 16
+/***/ }),
 
-// Max safe length for a build identifier. The max length minus 6 characters for
-// the shortest version with a build 0.0.0+BUILD.
-const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6
+/***/ 19348:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const RELEASE_TYPES = [
-  'major',
-  'premajor',
-  'minor',
-  'preminor',
-  'patch',
-  'prepatch',
-  'prerelease',
-]
+"use strict";
 
-module.exports = {
-  MAX_LENGTH,
-  MAX_SAFE_COMPONENT_LENGTH,
-  MAX_SAFE_BUILD_LENGTH,
-  MAX_SAFE_INTEGER,
-  RELEASE_TYPES,
-  SEMVER_SPEC_VERSION,
-  FLAG_INCLUDE_PRERELEASE: 0b001,
-  FLAG_LOOSE: 0b010,
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.debounce = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var noop_1 = __nccwpck_require__(11642);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var innerFrom_1 = __nccwpck_require__(57105);
+function debounce(durationSelector) {
+    return lift_1.operate(function (source, subscriber) {
+        var hasValue = false;
+        var lastValue = null;
+        var durationSubscriber = null;
+        var emit = function () {
+            durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
+            durationSubscriber = null;
+            if (hasValue) {
+                hasValue = false;
+                var value = lastValue;
+                lastValue = null;
+                subscriber.next(value);
+            }
+        };
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
+            hasValue = true;
+            lastValue = value;
+            durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, emit, noop_1.noop);
+            innerFrom_1.innerFrom(durationSelector(value)).subscribe(durationSubscriber);
+        }, function () {
+            emit();
+            subscriber.complete();
+        }, undefined, function () {
+            lastValue = durationSubscriber = null;
+        }));
+    });
 }
-
+exports.debounce = debounce;
+//# sourceMappingURL=debounce.js.map
 
 /***/ }),
 
-/***/ 50427:
-/***/ ((module) => {
-
-const debug = (
-  typeof process === 'object' &&
-  process.env &&
-  process.env.NODE_DEBUG &&
-  /\bsemver\b/i.test(process.env.NODE_DEBUG)
-) ? (...args) => console.error('SEMVER', ...args)
-  : () => {}
+/***/ 62379:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-module.exports = debug
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.debounceTime = void 0;
+var async_1 = __nccwpck_require__(76072);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function debounceTime(dueTime, scheduler) {
+    if (scheduler === void 0) { scheduler = async_1.asyncScheduler; }
+    return lift_1.operate(function (source, subscriber) {
+        var activeTask = null;
+        var lastValue = null;
+        var lastTime = null;
+        var emit = function () {
+            if (activeTask) {
+                activeTask.unsubscribe();
+                activeTask = null;
+                var value = lastValue;
+                lastValue = null;
+                subscriber.next(value);
+            }
+        };
+        function emitWhenIdle() {
+            var targetTime = lastTime + dueTime;
+            var now = scheduler.now();
+            if (now < targetTime) {
+                activeTask = this.schedule(undefined, targetTime - now);
+                subscriber.add(activeTask);
+                return;
+            }
+            emit();
+        }
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            lastValue = value;
+            lastTime = scheduler.now();
+            if (!activeTask) {
+                activeTask = scheduler.schedule(emitWhenIdle, dueTime);
+                subscriber.add(activeTask);
+            }
+        }, function () {
+            emit();
+            subscriber.complete();
+        }, undefined, function () {
+            lastValue = activeTask = null;
+        }));
+    });
+}
+exports.debounceTime = debounceTime;
+//# sourceMappingURL=debounceTime.js.map
 
 /***/ }),
 
-/***/ 92463:
-/***/ ((module) => {
-
-const numeric = /^[0-9]+$/
-const compareIdentifiers = (a, b) => {
-  const anum = numeric.test(a)
-  const bnum = numeric.test(b)
+/***/ 30621:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  if (anum && bnum) {
-    a = +a
-    b = +b
-  }
+"use strict";
 
-  return a === b ? 0
-    : (anum && !bnum) ? -1
-    : (bnum && !anum) ? 1
-    : a < b ? -1
-    : 1
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.defaultIfEmpty = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function defaultIfEmpty(defaultValue) {
+    return lift_1.operate(function (source, subscriber) {
+        var hasValue = false;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            hasValue = true;
+            subscriber.next(value);
+        }, function () {
+            if (!hasValue) {
+                subscriber.next(defaultValue);
+            }
+            subscriber.complete();
+        }));
+    });
 }
+exports.defaultIfEmpty = defaultIfEmpty;
+//# sourceMappingURL=defaultIfEmpty.js.map
 
-const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)
+/***/ }),
 
-module.exports = {
-  compareIdentifiers,
-  rcompareIdentifiers,
-}
+/***/ 99818:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
+"use strict";
 
-/***/ }),
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.delay = void 0;
+var async_1 = __nccwpck_require__(76072);
+var delayWhen_1 = __nccwpck_require__(16994);
+var timer_1 = __nccwpck_require__(59757);
+function delay(due, scheduler) {
+    if (scheduler === void 0) { scheduler = async_1.asyncScheduler; }
+    var duration = timer_1.timer(due, scheduler);
+    return delayWhen_1.delayWhen(function () { return duration; });
+}
+exports.delay = delay;
+//# sourceMappingURL=delay.js.map
 
-/***/ 40785:
-/***/ ((module) => {
+/***/ }),
 
-// parse out just the options we care about
-const looseOption = Object.freeze({ loose: true })
-const emptyOpts = Object.freeze({ })
-const parseOptions = options => {
-  if (!options) {
-    return emptyOpts
-  }
+/***/ 16994:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  if (typeof options !== 'object') {
-    return looseOption
-  }
+"use strict";
 
-  return options
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.delayWhen = void 0;
+var concat_1 = __nccwpck_require__(4675);
+var take_1 = __nccwpck_require__(33698);
+var ignoreElements_1 = __nccwpck_require__(31062);
+var mapTo_1 = __nccwpck_require__(52300);
+var mergeMap_1 = __nccwpck_require__(69914);
+var innerFrom_1 = __nccwpck_require__(57105);
+function delayWhen(delayDurationSelector, subscriptionDelay) {
+    if (subscriptionDelay) {
+        return function (source) {
+            return concat_1.concat(subscriptionDelay.pipe(take_1.take(1), ignoreElements_1.ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
+        };
+    }
+    return mergeMap_1.mergeMap(function (value, index) { return innerFrom_1.innerFrom(delayDurationSelector(value, index)).pipe(take_1.take(1), mapTo_1.mapTo(value)); });
 }
-module.exports = parseOptions
-
+exports.delayWhen = delayWhen;
+//# sourceMappingURL=delayWhen.js.map
 
 /***/ }),
 
-/***/ 9523:
-/***/ ((module, exports, __nccwpck_require__) => {
+/***/ 95338:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const {
-  MAX_SAFE_COMPONENT_LENGTH,
-  MAX_SAFE_BUILD_LENGTH,
-  MAX_LENGTH,
-} = __nccwpck_require__(42293)
-const debug = __nccwpck_require__(50427)
-exports = module.exports = {}
+"use strict";
 
-// The actual regexps go on exports.re
-const re = exports.re = []
-const safeRe = exports.safeRe = []
-const src = exports.src = []
-const t = exports.t = {}
-let R = 0
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.dematerialize = void 0;
+var Notification_1 = __nccwpck_require__(12241);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function dematerialize() {
+    return lift_1.operate(function (source, subscriber) {
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (notification) { return Notification_1.observeNotification(notification, subscriber); }));
+    });
+}
+exports.dematerialize = dematerialize;
+//# sourceMappingURL=dematerialize.js.map
 
-const LETTERDASHNUMBER = '[a-zA-Z0-9-]'
+/***/ }),
 
-// Replace some greedy regex tokens to prevent regex dos issues. These regex are
-// used internally via the safeRe object since all inputs in this library get
-// normalized first to trim and collapse all extra whitespace. The original
-// regexes are exported for userland consumption and lower level usage. A
-// future breaking change could export the safer regex only with a note that
-// all input should have extra whitespace removed.
-const safeRegexReplacements = [
-  ['\\s', 1],
-  ['\\d', MAX_LENGTH],
-  [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
-]
+/***/ 52594:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const makeSafeRegex = (value) => {
-  for (const [token, max] of safeRegexReplacements) {
-    value = value
-      .split(`${token}*`).join(`${token}{0,${max}}`)
-      .split(`${token}+`).join(`${token}{1,${max}}`)
-  }
-  return value
-}
+"use strict";
 
-const createToken = (name, value, isGlobal) => {
-  const safe = makeSafeRegex(value)
-  const index = R++
-  debug(name, index, value)
-  t[name] = index
-  src[index] = value
-  re[index] = new RegExp(value, isGlobal ? 'g' : undefined)
-  safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.distinct = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var noop_1 = __nccwpck_require__(11642);
+var innerFrom_1 = __nccwpck_require__(57105);
+function distinct(keySelector, flushes) {
+    return lift_1.operate(function (source, subscriber) {
+        var distinctKeys = new Set();
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            var key = keySelector ? keySelector(value) : value;
+            if (!distinctKeys.has(key)) {
+                distinctKeys.add(key);
+                subscriber.next(value);
+            }
+        }));
+        flushes && innerFrom_1.innerFrom(flushes).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { return distinctKeys.clear(); }, noop_1.noop));
+    });
 }
+exports.distinct = distinct;
+//# sourceMappingURL=distinct.js.map
 
-// The following Regular Expressions can be used for tokenizing,
-// validating, and parsing SemVer version strings.
-
-// ## Numeric Identifier
-// A single `0`, or a non-zero digit followed by zero or more digits.
-
-createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*')
-createToken('NUMERICIDENTIFIERLOOSE', '\\d+')
+/***/ }),
 
-// ## Non-numeric Identifier
-// Zero or more digits, followed by a letter or hyphen, and then zero or
-// more letters, digits, or hyphens.
+/***/ 20632:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)
+"use strict";
 
-// ## Main Version
-// Three dot-separated numeric identifiers.
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.distinctUntilChanged = void 0;
+var identity_1 = __nccwpck_require__(60283);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function distinctUntilChanged(comparator, keySelector) {
+    if (keySelector === void 0) { keySelector = identity_1.identity; }
+    comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;
+    return lift_1.operate(function (source, subscriber) {
+        var previousKey;
+        var first = true;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            var currentKey = keySelector(value);
+            if (first || !comparator(previousKey, currentKey)) {
+                first = false;
+                previousKey = currentKey;
+                subscriber.next(value);
+            }
+        }));
+    });
+}
+exports.distinctUntilChanged = distinctUntilChanged;
+function defaultCompare(a, b) {
+    return a === b;
+}
+//# sourceMappingURL=distinctUntilChanged.js.map
 
-createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` +
-                   `(${src[t.NUMERICIDENTIFIER]})\\.` +
-                   `(${src[t.NUMERICIDENTIFIER]})`)
+/***/ }),
 
-createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
-                        `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
-                        `(${src[t.NUMERICIDENTIFIERLOOSE]})`)
+/***/ 13809:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-// ## Pre-release Version Identifier
-// A numeric identifier, or a non-numeric identifier.
+"use strict";
 
-createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]
-}|${src[t.NONNUMERICIDENTIFIER]})`)
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.distinctUntilKeyChanged = void 0;
+var distinctUntilChanged_1 = __nccwpck_require__(20632);
+function distinctUntilKeyChanged(key, compare) {
+    return distinctUntilChanged_1.distinctUntilChanged(function (x, y) { return compare ? compare(x[key], y[key]) : x[key] === y[key]; });
+}
+exports.distinctUntilKeyChanged = distinctUntilKeyChanged;
+//# sourceMappingURL=distinctUntilKeyChanged.js.map
 
-createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]
-}|${src[t.NONNUMERICIDENTIFIER]})`)
+/***/ }),
 
-// ## Pre-release Version
-// Hyphen, followed by one or more dot-separated pre-release version
-// identifiers.
+/***/ 73381:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]
-}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`)
+"use strict";
 
-createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]
-}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.elementAt = void 0;
+var ArgumentOutOfRangeError_1 = __nccwpck_require__(49796);
+var filter_1 = __nccwpck_require__(36894);
+var throwIfEmpty_1 = __nccwpck_require__(91566);
+var defaultIfEmpty_1 = __nccwpck_require__(30621);
+var take_1 = __nccwpck_require__(33698);
+function elementAt(index, defaultValue) {
+    if (index < 0) {
+        throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError();
+    }
+    var hasDefaultValue = arguments.length >= 2;
+    return function (source) {
+        return source.pipe(filter_1.filter(function (v, i) { return i === index; }), take_1.take(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function () { return new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError(); }));
+    };
+}
+exports.elementAt = elementAt;
+//# sourceMappingURL=elementAt.js.map
 
-// ## Build Metadata Identifier
-// Any combination of digits, letters, or hyphens.
+/***/ }),
 
-createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)
+/***/ 42961:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-// ## Build Metadata
-// Plus sign, followed by one or more period-separated build metadata
-// identifiers.
+"use strict";
 
-createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER]
-}(?:\\.${src[t.BUILDIDENTIFIER]})*))`)
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.endWith = void 0;
+var concat_1 = __nccwpck_require__(4675);
+var of_1 = __nccwpck_require__(72163);
+function endWith() {
+    var values = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        values[_i] = arguments[_i];
+    }
+    return function (source) { return concat_1.concat(source, of_1.of.apply(void 0, __spreadArray([], __read(values)))); };
+}
+exports.endWith = endWith;
+//# sourceMappingURL=endWith.js.map
 
-// ## Full Version String
-// A main version, followed optionally by a pre-release version and
-// build metadata.
+/***/ }),
 
-// Note that the only major, minor, patch, and pre-release sections of
-// the version string are capturing groups.  The build metadata is not a
-// capturing group, because it should not ever be used in version
-// comparison.
+/***/ 69559:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-createToken('FULLPLAIN', `v?${src[t.MAINVERSION]
-}${src[t.PRERELEASE]}?${
-  src[t.BUILD]}?`)
+"use strict";
 
-createToken('FULL', `^${src[t.FULLPLAIN]}$`)
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.every = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function every(predicate, thisArg) {
+    return lift_1.operate(function (source, subscriber) {
+        var index = 0;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            if (!predicate.call(thisArg, value, index++, source)) {
+                subscriber.next(false);
+                subscriber.complete();
+            }
+        }, function () {
+            subscriber.next(true);
+            subscriber.complete();
+        }));
+    });
+}
+exports.every = every;
+//# sourceMappingURL=every.js.map
 
-// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
-// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
-// common in the npm registry.
-createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE]
-}${src[t.PRERELEASELOOSE]}?${
-  src[t.BUILD]}?`)
+/***/ }),
 
-createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)
+/***/ 75686:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-createToken('GTLT', '((?:<|>)?=?)')
+"use strict";
 
-// Something like "2.*" or "1.2.x".
-// Note that "x.x" is a valid xRange identifer, meaning "any version"
-// Only the first item is strictly required.
-createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`)
-createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`)
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.exhaust = void 0;
+var exhaustAll_1 = __nccwpck_require__(79777);
+exports.exhaust = exhaustAll_1.exhaustAll;
+//# sourceMappingURL=exhaust.js.map
 
-createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` +
-                   `(?:\\.(${src[t.XRANGEIDENTIFIER]})` +
-                   `(?:\\.(${src[t.XRANGEIDENTIFIER]})` +
-                   `(?:${src[t.PRERELEASE]})?${
-                     src[t.BUILD]}?` +
-                   `)?)?`)
+/***/ }),
 
-createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +
-                        `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +
-                        `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +
-                        `(?:${src[t.PRERELEASELOOSE]})?${
-                          src[t.BUILD]}?` +
-                        `)?)?`)
+/***/ 79777:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`)
-createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`)
+"use strict";
 
-// Coercion.
-// Extract anything that could conceivably be a part of a valid semver
-createToken('COERCE', `${'(^|[^\\d])' +
-              '(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +
-              `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
-              `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
-              `(?:$|[^\\d])`)
-createToken('COERCERTL', src[t.COERCE], true)
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.exhaustAll = void 0;
+var exhaustMap_1 = __nccwpck_require__(21527);
+var identity_1 = __nccwpck_require__(60283);
+function exhaustAll() {
+    return exhaustMap_1.exhaustMap(identity_1.identity);
+}
+exports.exhaustAll = exhaustAll;
+//# sourceMappingURL=exhaustAll.js.map
 
-// Tilde ranges.
-// Meaning is "reasonably at or greater than"
-createToken('LONETILDE', '(?:~>?)')
+/***/ }),
 
-createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true)
-exports.tildeTrimReplace = '$1~'
+/***/ 21527:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)
-createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)
+"use strict";
 
-// Caret ranges.
-// Meaning is "at least and backwards compatible with"
-createToken('LONECARET', '(?:\\^)')
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.exhaustMap = void 0;
+var map_1 = __nccwpck_require__(5987);
+var innerFrom_1 = __nccwpck_require__(57105);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function exhaustMap(project, resultSelector) {
+    if (resultSelector) {
+        return function (source) {
+            return source.pipe(exhaustMap(function (a, i) { return innerFrom_1.innerFrom(project(a, i)).pipe(map_1.map(function (b, ii) { return resultSelector(a, b, i, ii); })); }));
+        };
+    }
+    return lift_1.operate(function (source, subscriber) {
+        var index = 0;
+        var innerSub = null;
+        var isComplete = false;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (outerValue) {
+            if (!innerSub) {
+                innerSub = OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, function () {
+                    innerSub = null;
+                    isComplete && subscriber.complete();
+                });
+                innerFrom_1.innerFrom(project(outerValue, index++)).subscribe(innerSub);
+            }
+        }, function () {
+            isComplete = true;
+            !innerSub && subscriber.complete();
+        }));
+    });
+}
+exports.exhaustMap = exhaustMap;
+//# sourceMappingURL=exhaustMap.js.map
 
-createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true)
-exports.caretTrimReplace = '$1^'
+/***/ }),
 
-createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)
-createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)
+/***/ 21585:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-// A simple gt/lt/eq thing, or just "" to indicate "any version"
-createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`)
-createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`)
+"use strict";
 
-// An expression to strip any whitespace between the gtlt and the thing
-// it modifies, so that `> 1.2.3` ==> `>1.2.3`
-createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT]
-}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)
-exports.comparatorTrimReplace = '$1$2$3'
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.expand = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var mergeInternals_1 = __nccwpck_require__(48246);
+function expand(project, concurrent, scheduler) {
+    if (concurrent === void 0) { concurrent = Infinity; }
+    concurrent = (concurrent || 0) < 1 ? Infinity : concurrent;
+    return lift_1.operate(function (source, subscriber) {
+        return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent, undefined, true, scheduler);
+    });
+}
+exports.expand = expand;
+//# sourceMappingURL=expand.js.map
 
-// Something like `1.2.3 - 1.2.4`
-// Note that these all use the loose form, because they'll be
-// checked against either the strict or loose comparator form
-// later.
-createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})` +
-                   `\\s+-\\s+` +
-                   `(${src[t.XRANGEPLAIN]})` +
-                   `\\s*$`)
+/***/ }),
 
-createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})` +
-                        `\\s+-\\s+` +
-                        `(${src[t.XRANGEPLAINLOOSE]})` +
-                        `\\s*$`)
+/***/ 36894:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-// Star ranges basically just allow anything at all.
-createToken('STAR', '(<|>)?=?\\s*\\*')
-// >=0.0.0 is like a star
-createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$')
-createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$')
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.filter = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function filter(predicate, thisArg) {
+    return lift_1.operate(function (source, subscriber) {
+        var index = 0;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return predicate.call(thisArg, value, index++) && subscriber.next(value); }));
+    });
+}
+exports.filter = filter;
+//# sourceMappingURL=filter.js.map
 
 /***/ }),
 
-/***/ 81196:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 4013:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.finalize = void 0;
+var lift_1 = __nccwpck_require__(38669);
+function finalize(callback) {
+    return lift_1.operate(function (source, subscriber) {
+        try {
+            source.subscribe(subscriber);
+        }
+        finally {
+            subscriber.add(callback);
+        }
+    });
+}
+exports.finalize = finalize;
+//# sourceMappingURL=finalize.js.map
 
-// A linked list to keep track of recently-used-ness
-const Yallist = __nccwpck_require__(40665)
+/***/ }),
 
-const MAX = Symbol('max')
-const LENGTH = Symbol('length')
-const LENGTH_CALCULATOR = Symbol('lengthCalculator')
-const ALLOW_STALE = Symbol('allowStale')
-const MAX_AGE = Symbol('maxAge')
-const DISPOSE = Symbol('dispose')
-const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')
-const LRU_LIST = Symbol('lruList')
-const CACHE = Symbol('cache')
-const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')
+/***/ 28981:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const naiveLength = () => 1
+"use strict";
 
-// lruList is a yallist where the head is the youngest
-// item, and the tail is the oldest.  the list contains the Hit
-// objects as the entries.
-// Each Hit object has a reference to its Yallist.Node.  This
-// never changes.
-//
-// cache is a Map (or PseudoMap) that matches the keys to
-// the Yallist.Node object.
-class LRUCache {
-  constructor (options) {
-    if (typeof options === 'number')
-      options = { max: options }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.createFind = exports.find = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function find(predicate, thisArg) {
+    return lift_1.operate(createFind(predicate, thisArg, 'value'));
+}
+exports.find = find;
+function createFind(predicate, thisArg, emit) {
+    var findIndex = emit === 'index';
+    return function (source, subscriber) {
+        var index = 0;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            var i = index++;
+            if (predicate.call(thisArg, value, i, source)) {
+                subscriber.next(findIndex ? i : value);
+                subscriber.complete();
+            }
+        }, function () {
+            subscriber.next(findIndex ? -1 : undefined);
+            subscriber.complete();
+        }));
+    };
+}
+exports.createFind = createFind;
+//# sourceMappingURL=find.js.map
 
-    if (!options)
-      options = {}
+/***/ }),
 
-    if (options.max && (typeof options.max !== 'number' || options.max < 0))
-      throw new TypeError('max must be a non-negative number')
-    // Kind of weird to have a default max of Infinity, but oh well.
-    const max = this[MAX] = options.max || Infinity
+/***/ 92602:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    const lc = options.length || naiveLength
-    this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc
-    this[ALLOW_STALE] = options.stale || false
-    if (options.maxAge && typeof options.maxAge !== 'number')
-      throw new TypeError('maxAge must be a number')
-    this[MAX_AGE] = options.maxAge || 0
-    this[DISPOSE] = options.dispose
-    this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false
-    this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false
-    this.reset()
-  }
+"use strict";
 
-  // resize the cache when the max changes.
-  set max (mL) {
-    if (typeof mL !== 'number' || mL < 0)
-      throw new TypeError('max must be a non-negative number')
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.findIndex = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var find_1 = __nccwpck_require__(28981);
+function findIndex(predicate, thisArg) {
+    return lift_1.operate(find_1.createFind(predicate, thisArg, 'index'));
+}
+exports.findIndex = findIndex;
+//# sourceMappingURL=findIndex.js.map
 
-    this[MAX] = mL || Infinity
-    trim(this)
-  }
-  get max () {
-    return this[MAX]
-  }
+/***/ }),
 
-  set allowStale (allowStale) {
-    this[ALLOW_STALE] = !!allowStale
-  }
-  get allowStale () {
-    return this[ALLOW_STALE]
-  }
+/***/ 63345:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  set maxAge (mA) {
-    if (typeof mA !== 'number')
-      throw new TypeError('maxAge must be a non-negative number')
+"use strict";
 
-    this[MAX_AGE] = mA
-    trim(this)
-  }
-  get maxAge () {
-    return this[MAX_AGE]
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.first = void 0;
+var EmptyError_1 = __nccwpck_require__(99391);
+var filter_1 = __nccwpck_require__(36894);
+var take_1 = __nccwpck_require__(33698);
+var defaultIfEmpty_1 = __nccwpck_require__(30621);
+var throwIfEmpty_1 = __nccwpck_require__(91566);
+var identity_1 = __nccwpck_require__(60283);
+function first(predicate, defaultValue) {
+    var hasDefaultValue = arguments.length >= 2;
+    return function (source) {
+        return source.pipe(predicate ? filter_1.filter(function (v, i) { return predicate(v, i, source); }) : identity_1.identity, take_1.take(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function () { return new EmptyError_1.EmptyError(); }));
+    };
+}
+exports.first = first;
+//# sourceMappingURL=first.js.map
 
-  // resize the cache when the lengthCalculator changes.
-  set lengthCalculator (lC) {
-    if (typeof lC !== 'function')
-      lC = naiveLength
+/***/ }),
 
-    if (lC !== this[LENGTH_CALCULATOR]) {
-      this[LENGTH_CALCULATOR] = lC
-      this[LENGTH] = 0
-      this[LRU_LIST].forEach(hit => {
-        hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)
-        this[LENGTH] += hit.length
-      })
-    }
-    trim(this)
-  }
-  get lengthCalculator () { return this[LENGTH_CALCULATOR] }
+/***/ 40186:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  get length () { return this[LENGTH] }
-  get itemCount () { return this[LRU_LIST].length }
+"use strict";
 
-  rforEach (fn, thisp) {
-    thisp = thisp || this
-    for (let walker = this[LRU_LIST].tail; walker !== null;) {
-      const prev = walker.prev
-      forEachStep(this, fn, walker, thisp)
-      walker = prev
-    }
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.flatMap = void 0;
+var mergeMap_1 = __nccwpck_require__(69914);
+exports.flatMap = mergeMap_1.mergeMap;
+//# sourceMappingURL=flatMap.js.map
 
-  forEach (fn, thisp) {
-    thisp = thisp || this
-    for (let walker = this[LRU_LIST].head; walker !== null;) {
-      const next = walker.next
-      forEachStep(this, fn, walker, thisp)
-      walker = next
-    }
-  }
+/***/ }),
 
-  keys () {
-    return this[LRU_LIST].toArray().map(k => k.key)
-  }
+/***/ 51650:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  values () {
-    return this[LRU_LIST].toArray().map(k => k.value)
-  }
+"use strict";
 
-  reset () {
-    if (this[DISPOSE] &&
-        this[LRU_LIST] &&
-        this[LRU_LIST].length) {
-      this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))
-    }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.groupBy = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var innerFrom_1 = __nccwpck_require__(57105);
+var Subject_1 = __nccwpck_require__(49944);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function groupBy(keySelector, elementOrOptions, duration, connector) {
+    return lift_1.operate(function (source, subscriber) {
+        var element;
+        if (!elementOrOptions || typeof elementOrOptions === 'function') {
+            element = elementOrOptions;
+        }
+        else {
+            (duration = elementOrOptions.duration, element = elementOrOptions.element, connector = elementOrOptions.connector);
+        }
+        var groups = new Map();
+        var notify = function (cb) {
+            groups.forEach(cb);
+            cb(subscriber);
+        };
+        var handleError = function (err) { return notify(function (consumer) { return consumer.error(err); }); };
+        var activeGroups = 0;
+        var teardownAttempted = false;
+        var groupBySourceSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, function (value) {
+            try {
+                var key_1 = keySelector(value);
+                var group_1 = groups.get(key_1);
+                if (!group_1) {
+                    groups.set(key_1, (group_1 = connector ? connector() : new Subject_1.Subject()));
+                    var grouped = createGroupedObservable(key_1, group_1);
+                    subscriber.next(grouped);
+                    if (duration) {
+                        var durationSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(group_1, function () {
+                            group_1.complete();
+                            durationSubscriber_1 === null || durationSubscriber_1 === void 0 ? void 0 : durationSubscriber_1.unsubscribe();
+                        }, undefined, undefined, function () { return groups.delete(key_1); });
+                        groupBySourceSubscriber.add(innerFrom_1.innerFrom(duration(grouped)).subscribe(durationSubscriber_1));
+                    }
+                }
+                group_1.next(element ? element(value) : value);
+            }
+            catch (err) {
+                handleError(err);
+            }
+        }, function () { return notify(function (consumer) { return consumer.complete(); }); }, handleError, function () { return groups.clear(); }, function () {
+            teardownAttempted = true;
+            return activeGroups === 0;
+        });
+        source.subscribe(groupBySourceSubscriber);
+        function createGroupedObservable(key, groupSubject) {
+            var result = new Observable_1.Observable(function (groupSubscriber) {
+                activeGroups++;
+                var innerSub = groupSubject.subscribe(groupSubscriber);
+                return function () {
+                    innerSub.unsubscribe();
+                    --activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe();
+                };
+            });
+            result.key = key;
+            return result;
+        }
+    });
+}
+exports.groupBy = groupBy;
+//# sourceMappingURL=groupBy.js.map
 
-    this[CACHE] = new Map() // hash of items by key
-    this[LRU_LIST] = new Yallist() // list of items in order of use recency
-    this[LENGTH] = 0 // length of items in the list
-  }
+/***/ }),
 
-  dump () {
-    return this[LRU_LIST].map(hit =>
-      isStale(this, hit) ? false : {
-        k: hit.key,
-        v: hit.value,
-        e: hit.now + (hit.maxAge || 0)
-      }).toArray().filter(h => h)
-  }
+/***/ 31062:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  dumpLru () {
-    return this[LRU_LIST]
-  }
+"use strict";
 
-  set (key, value, maxAge) {
-    maxAge = maxAge || this[MAX_AGE]
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ignoreElements = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var noop_1 = __nccwpck_require__(11642);
+function ignoreElements() {
+    return lift_1.operate(function (source, subscriber) {
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, noop_1.noop));
+    });
+}
+exports.ignoreElements = ignoreElements;
+//# sourceMappingURL=ignoreElements.js.map
 
-    if (maxAge && typeof maxAge !== 'number')
-      throw new TypeError('maxAge must be a number')
+/***/ }),
 
-    const now = maxAge ? Date.now() : 0
-    const len = this[LENGTH_CALCULATOR](value, key)
+/***/ 77722:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    if (this[CACHE].has(key)) {
-      if (len > this[MAX]) {
-        del(this, this[CACHE].get(key))
-        return false
-      }
+"use strict";
 
-      const node = this[CACHE].get(key)
-      const item = node.value
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isEmpty = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function isEmpty() {
+    return lift_1.operate(function (source, subscriber) {
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () {
+            subscriber.next(false);
+            subscriber.complete();
+        }, function () {
+            subscriber.next(true);
+            subscriber.complete();
+        }));
+    });
+}
+exports.isEmpty = isEmpty;
+//# sourceMappingURL=isEmpty.js.map
 
-      // dispose of the old one before overwriting
-      // split out into 2 ifs for better coverage tracking
-      if (this[DISPOSE]) {
-        if (!this[NO_DISPOSE_ON_SET])
-          this[DISPOSE](key, item.value)
-      }
+/***/ }),
 
-      item.now = now
-      item.maxAge = maxAge
-      item.value = value
-      this[LENGTH] += len - item.length
-      item.length = len
-      this.get(key)
-      trim(this)
-      return true
-    }
+/***/ 29341:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    const hit = new Entry(key, value, len, now, maxAge)
+"use strict";
 
-    // oversized objects fall out of cache automatically.
-    if (hit.length > this[MAX]) {
-      if (this[DISPOSE])
-        this[DISPOSE](key, value)
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.joinAllInternals = void 0;
+var identity_1 = __nccwpck_require__(60283);
+var mapOneOrManyArgs_1 = __nccwpck_require__(78934);
+var pipe_1 = __nccwpck_require__(49587);
+var mergeMap_1 = __nccwpck_require__(69914);
+var toArray_1 = __nccwpck_require__(35114);
+function joinAllInternals(joinFn, project) {
+    return pipe_1.pipe(toArray_1.toArray(), mergeMap_1.mergeMap(function (sources) { return joinFn(sources); }), project ? mapOneOrManyArgs_1.mapOneOrManyArgs(project) : identity_1.identity);
+}
+exports.joinAllInternals = joinAllInternals;
+//# sourceMappingURL=joinAllInternals.js.map
 
-      return false
-    }
+/***/ }),
 
-    this[LENGTH] += hit.length
-    this[LRU_LIST].unshift(hit)
-    this[CACHE].set(key, this[LRU_LIST].head)
-    trim(this)
-    return true
-  }
+/***/ 46831:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  has (key) {
-    if (!this[CACHE].has(key)) return false
-    const hit = this[CACHE].get(key).value
-    return !isStale(this, hit)
-  }
+"use strict";
 
-  get (key) {
-    return get(this, key, true)
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.last = void 0;
+var EmptyError_1 = __nccwpck_require__(99391);
+var filter_1 = __nccwpck_require__(36894);
+var takeLast_1 = __nccwpck_require__(65041);
+var throwIfEmpty_1 = __nccwpck_require__(91566);
+var defaultIfEmpty_1 = __nccwpck_require__(30621);
+var identity_1 = __nccwpck_require__(60283);
+function last(predicate, defaultValue) {
+    var hasDefaultValue = arguments.length >= 2;
+    return function (source) {
+        return source.pipe(predicate ? filter_1.filter(function (v, i) { return predicate(v, i, source); }) : identity_1.identity, takeLast_1.takeLast(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function () { return new EmptyError_1.EmptyError(); }));
+    };
+}
+exports.last = last;
+//# sourceMappingURL=last.js.map
 
-  peek (key) {
-    return get(this, key, false)
-  }
+/***/ }),
 
-  pop () {
-    const node = this[LRU_LIST].tail
-    if (!node)
-      return null
+/***/ 5987:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    del(this, node)
-    return node.value
-  }
+"use strict";
 
-  del (key) {
-    del(this, this[CACHE].get(key))
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.map = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function map(project, thisArg) {
+    return lift_1.operate(function (source, subscriber) {
+        var index = 0;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            subscriber.next(project.call(thisArg, value, index++));
+        }));
+    });
+}
+exports.map = map;
+//# sourceMappingURL=map.js.map
 
-  load (arr) {
-    // reset the cache
-    this.reset()
+/***/ }),
 
-    const now = Date.now()
-    // A previous serialized cache has the most recent items first
-    for (let l = arr.length - 1; l >= 0; l--) {
-      const hit = arr[l]
-      const expiresAt = hit.e || 0
-      if (expiresAt === 0)
-        // the item was created without expiration in a non aged cache
-        this.set(hit.k, hit.v)
-      else {
-        const maxAge = expiresAt - now
-        // dont add already expired items
-        if (maxAge > 0) {
-          this.set(hit.k, hit.v, maxAge)
-        }
-      }
-    }
-  }
+/***/ 52300:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  prune () {
-    this[CACHE].forEach((value, key) => get(this, key, false))
-  }
-}
+"use strict";
 
-const get = (self, key, doUse) => {
-  const node = self[CACHE].get(key)
-  if (node) {
-    const hit = node.value
-    if (isStale(self, hit)) {
-      del(self, node)
-      if (!self[ALLOW_STALE])
-        return undefined
-    } else {
-      if (doUse) {
-        if (self[UPDATE_AGE_ON_GET])
-          node.value.now = Date.now()
-        self[LRU_LIST].unshiftNode(node)
-      }
-    }
-    return hit.value
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.mapTo = void 0;
+var map_1 = __nccwpck_require__(5987);
+function mapTo(value) {
+    return map_1.map(function () { return value; });
 }
+exports.mapTo = mapTo;
+//# sourceMappingURL=mapTo.js.map
 
-const isStale = (self, hit) => {
-  if (!hit || (!hit.maxAge && !self[MAX_AGE]))
-    return false
+/***/ }),
 
-  const diff = Date.now() - hit.now
-  return hit.maxAge ? diff > hit.maxAge
-    : self[MAX_AGE] && (diff > self[MAX_AGE])
-}
+/***/ 67108:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const trim = self => {
-  if (self[LENGTH] > self[MAX]) {
-    for (let walker = self[LRU_LIST].tail;
-      self[LENGTH] > self[MAX] && walker !== null;) {
-      // We know that we're about to delete this one, and also
-      // what the next least recently used key will be, so just
-      // go ahead and set it now.
-      const prev = walker.prev
-      del(self, walker)
-      walker = prev
-    }
-  }
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.materialize = void 0;
+var Notification_1 = __nccwpck_require__(12241);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function materialize() {
+    return lift_1.operate(function (source, subscriber) {
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            subscriber.next(Notification_1.Notification.createNext(value));
+        }, function () {
+            subscriber.next(Notification_1.Notification.createComplete());
+            subscriber.complete();
+        }, function (err) {
+            subscriber.next(Notification_1.Notification.createError(err));
+            subscriber.complete();
+        }));
+    });
 }
+exports.materialize = materialize;
+//# sourceMappingURL=materialize.js.map
 
-const del = (self, node) => {
-  if (node) {
-    const hit = node.value
-    if (self[DISPOSE])
-      self[DISPOSE](hit.key, hit.value)
+/***/ }),
 
-    self[LENGTH] -= hit.length
-    self[CACHE].delete(hit.key)
-    self[LRU_LIST].removeNode(node)
-  }
-}
+/***/ 17314:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-class Entry {
-  constructor (key, value, length, now, maxAge) {
-    this.key = key
-    this.value = value
-    this.length = length
-    this.now = now
-    this.maxAge = maxAge || 0
-  }
-}
+"use strict";
 
-const forEachStep = (self, fn, node, thisp) => {
-  let hit = node.value
-  if (isStale(self, hit)) {
-    del(self, node)
-    if (!self[ALLOW_STALE])
-      hit = undefined
-  }
-  if (hit)
-    fn.call(thisp, hit.value, hit.key, self)
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.max = void 0;
+var reduce_1 = __nccwpck_require__(62087);
+var isFunction_1 = __nccwpck_require__(67206);
+function max(comparer) {
+    return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function (x, y) { return (comparer(x, y) > 0 ? x : y); } : function (x, y) { return (x > y ? x : y); });
 }
+exports.max = max;
+//# sourceMappingURL=max.js.map
 
-module.exports = LRUCache
+/***/ }),
+
+/***/ 39510:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
 
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.merge = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var argsOrArgArray_1 = __nccwpck_require__(18824);
+var mergeAll_1 = __nccwpck_require__(2057);
+var args_1 = __nccwpck_require__(34890);
+var from_1 = __nccwpck_require__(18309);
+function merge() {
+    var args = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        args[_i] = arguments[_i];
+    }
+    var scheduler = args_1.popScheduler(args);
+    var concurrent = args_1.popNumber(args, Infinity);
+    args = argsOrArgArray_1.argsOrArgArray(args);
+    return lift_1.operate(function (source, subscriber) {
+        mergeAll_1.mergeAll(concurrent)(from_1.from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);
+    });
+}
+exports.merge = merge;
+//# sourceMappingURL=merge.js.map
 
 /***/ }),
 
-/***/ 9380:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 2057:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-// Determine if version is greater than all the versions possible in the range.
-const outside = __nccwpck_require__(60420)
-const gtr = (version, range, options) => outside(version, range, '>', options)
-module.exports = gtr
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.mergeAll = void 0;
+var mergeMap_1 = __nccwpck_require__(69914);
+var identity_1 = __nccwpck_require__(60283);
+function mergeAll(concurrent) {
+    if (concurrent === void 0) { concurrent = Infinity; }
+    return mergeMap_1.mergeMap(identity_1.identity, concurrent);
+}
+exports.mergeAll = mergeAll;
+//# sourceMappingURL=mergeAll.js.map
 
 /***/ }),
 
-/***/ 27008:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 48246:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const Range = __nccwpck_require__(9828)
-const intersects = (r1, r2, options) => {
-  r1 = new Range(r1, options)
-  r2 = new Range(r2, options)
-  return r1.intersects(r2, options)
-}
-module.exports = intersects
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.mergeInternals = void 0;
+var innerFrom_1 = __nccwpck_require__(57105);
+var executeSchedule_1 = __nccwpck_require__(82877);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {
+    var buffer = [];
+    var active = 0;
+    var index = 0;
+    var isComplete = false;
+    var checkComplete = function () {
+        if (isComplete && !buffer.length && !active) {
+            subscriber.complete();
+        }
+    };
+    var outerNext = function (value) { return (active < concurrent ? doInnerSub(value) : buffer.push(value)); };
+    var doInnerSub = function (value) {
+        expand && subscriber.next(value);
+        active++;
+        var innerComplete = false;
+        innerFrom_1.innerFrom(project(value, index++)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (innerValue) {
+            onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);
+            if (expand) {
+                outerNext(innerValue);
+            }
+            else {
+                subscriber.next(innerValue);
+            }
+        }, function () {
+            innerComplete = true;
+        }, undefined, function () {
+            if (innerComplete) {
+                try {
+                    active--;
+                    var _loop_1 = function () {
+                        var bufferedValue = buffer.shift();
+                        if (innerSubScheduler) {
+                            executeSchedule_1.executeSchedule(subscriber, innerSubScheduler, function () { return doInnerSub(bufferedValue); });
+                        }
+                        else {
+                            doInnerSub(bufferedValue);
+                        }
+                    };
+                    while (buffer.length && active < concurrent) {
+                        _loop_1();
+                    }
+                    checkComplete();
+                }
+                catch (err) {
+                    subscriber.error(err);
+                }
+            }
+        }));
+    };
+    source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, outerNext, function () {
+        isComplete = true;
+        checkComplete();
+    }));
+    return function () {
+        additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();
+    };
+}
+exports.mergeInternals = mergeInternals;
+//# sourceMappingURL=mergeInternals.js.map
 
 /***/ }),
 
-/***/ 33323:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 69914:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const outside = __nccwpck_require__(60420)
-// Determine if version is less than all the versions possible in the range
-const ltr = (version, range, options) => outside(version, range, '<', options)
-module.exports = ltr
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.mergeMap = void 0;
+var map_1 = __nccwpck_require__(5987);
+var innerFrom_1 = __nccwpck_require__(57105);
+var lift_1 = __nccwpck_require__(38669);
+var mergeInternals_1 = __nccwpck_require__(48246);
+var isFunction_1 = __nccwpck_require__(67206);
+function mergeMap(project, resultSelector, concurrent) {
+    if (concurrent === void 0) { concurrent = Infinity; }
+    if (isFunction_1.isFunction(resultSelector)) {
+        return mergeMap(function (a, i) { return map_1.map(function (b, ii) { return resultSelector(a, b, i, ii); })(innerFrom_1.innerFrom(project(a, i))); }, concurrent);
+    }
+    else if (typeof resultSelector === 'number') {
+        concurrent = resultSelector;
+    }
+    return lift_1.operate(function (source, subscriber) { return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent); });
+}
+exports.mergeMap = mergeMap;
+//# sourceMappingURL=mergeMap.js.map
 
 /***/ }),
 
-/***/ 20579:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 49151:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const SemVer = __nccwpck_require__(48088)
-const Range = __nccwpck_require__(9828)
+"use strict";
 
-const maxSatisfying = (versions, range, options) => {
-  let max = null
-  let maxSV = null
-  let rangeObj = null
-  try {
-    rangeObj = new Range(range, options)
-  } catch (er) {
-    return null
-  }
-  versions.forEach((v) => {
-    if (rangeObj.test(v)) {
-      // satisfies(v, range, options)
-      if (!max || maxSV.compare(v) === -1) {
-        // compare(max, v, true)
-        max = v
-        maxSV = new SemVer(max, options)
-      }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.mergeMapTo = void 0;
+var mergeMap_1 = __nccwpck_require__(69914);
+var isFunction_1 = __nccwpck_require__(67206);
+function mergeMapTo(innerObservable, resultSelector, concurrent) {
+    if (concurrent === void 0) { concurrent = Infinity; }
+    if (isFunction_1.isFunction(resultSelector)) {
+        return mergeMap_1.mergeMap(function () { return innerObservable; }, resultSelector, concurrent);
     }
-  })
-  return max
+    if (typeof resultSelector === 'number') {
+        concurrent = resultSelector;
+    }
+    return mergeMap_1.mergeMap(function () { return innerObservable; }, concurrent);
 }
-module.exports = maxSatisfying
+exports.mergeMapTo = mergeMapTo;
+//# sourceMappingURL=mergeMapTo.js.map
+
+/***/ }),
+
+/***/ 11519:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.mergeScan = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var mergeInternals_1 = __nccwpck_require__(48246);
+function mergeScan(accumulator, seed, concurrent) {
+    if (concurrent === void 0) { concurrent = Infinity; }
+    return lift_1.operate(function (source, subscriber) {
+        var state = seed;
+        return mergeInternals_1.mergeInternals(source, subscriber, function (value, index) { return accumulator(state, value, index); }, concurrent, function (value) {
+            state = value;
+        }, false, undefined, function () { return (state = null); });
+    });
+}
+exports.mergeScan = mergeScan;
+//# sourceMappingURL=mergeScan.js.map
 
 /***/ }),
 
-/***/ 10832:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 31564:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-const SemVer = __nccwpck_require__(48088)
-const Range = __nccwpck_require__(9828)
-const minSatisfying = (versions, range, options) => {
-  let min = null
-  let minSV = null
-  let rangeObj = null
-  try {
-    rangeObj = new Range(range, options)
-  } catch (er) {
-    return null
-  }
-  versions.forEach((v) => {
-    if (rangeObj.test(v)) {
-      // satisfies(v, range, options)
-      if (!min || minSV.compare(v) === 1) {
-        // compare(min, v, true)
-        min = v
-        minSV = new SemVer(min, options)
-      }
+"use strict";
+
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
     }
-  })
-  return min
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.mergeWith = void 0;
+var merge_1 = __nccwpck_require__(39510);
+function mergeWith() {
+    var otherSources = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        otherSources[_i] = arguments[_i];
+    }
+    return merge_1.merge.apply(void 0, __spreadArray([], __read(otherSources)));
 }
-module.exports = minSatisfying
-
+exports.mergeWith = mergeWith;
+//# sourceMappingURL=mergeWith.js.map
 
 /***/ }),
 
-/***/ 34179:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 87641:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const SemVer = __nccwpck_require__(48088)
-const Range = __nccwpck_require__(9828)
-const gt = __nccwpck_require__(84123)
+"use strict";
 
-const minVersion = (range, loose) => {
-  range = new Range(range, loose)
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.min = void 0;
+var reduce_1 = __nccwpck_require__(62087);
+var isFunction_1 = __nccwpck_require__(67206);
+function min(comparer) {
+    return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function (x, y) { return (comparer(x, y) < 0 ? x : y); } : function (x, y) { return (x < y ? x : y); });
+}
+exports.min = min;
+//# sourceMappingURL=min.js.map
 
-  let minver = new SemVer('0.0.0')
-  if (range.test(minver)) {
-    return minver
-  }
+/***/ }),
 
-  minver = new SemVer('0.0.0-0')
-  if (range.test(minver)) {
-    return minver
-  }
+/***/ 65457:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  minver = null
-  for (let i = 0; i < range.set.length; ++i) {
-    const comparators = range.set[i]
+"use strict";
 
-    let setMin = null
-    comparators.forEach((comparator) => {
-      // Clone to avoid manipulating the comparator's semver object.
-      const compver = new SemVer(comparator.semver.version)
-      switch (comparator.operator) {
-        case '>':
-          if (compver.prerelease.length === 0) {
-            compver.patch++
-          } else {
-            compver.prerelease.push(0)
-          }
-          compver.raw = compver.format()
-          /* fallthrough */
-        case '':
-        case '>=':
-          if (!setMin || gt(compver, setMin)) {
-            setMin = compver
-          }
-          break
-        case '<':
-        case '<=':
-          /* Ignore maximum versions */
-          break
-        /* istanbul ignore next */
-        default:
-          throw new Error(`Unexpected operation: ${comparator.operator}`)
-      }
-    })
-    if (setMin && (!minver || gt(minver, setMin))) {
-      minver = setMin
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.multicast = void 0;
+var ConnectableObservable_1 = __nccwpck_require__(30420);
+var isFunction_1 = __nccwpck_require__(67206);
+var connect_1 = __nccwpck_require__(51101);
+function multicast(subjectOrSubjectFactory, selector) {
+    var subjectFactory = isFunction_1.isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function () { return subjectOrSubjectFactory; };
+    if (isFunction_1.isFunction(selector)) {
+        return connect_1.connect(selector, {
+            connector: subjectFactory,
+        });
     }
-  }
+    return function (source) { return new ConnectableObservable_1.ConnectableObservable(source, subjectFactory); };
+}
+exports.multicast = multicast;
+//# sourceMappingURL=multicast.js.map
 
-  if (minver && range.test(minver)) {
-    return minver
-  }
+/***/ }),
 
-  return null
-}
-module.exports = minVersion
+/***/ 22451:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.observeOn = void 0;
+var executeSchedule_1 = __nccwpck_require__(82877);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function observeOn(scheduler, delay) {
+    if (delay === void 0) { delay = 0; }
+    return lift_1.operate(function (source, subscriber) {
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return executeSchedule_1.executeSchedule(subscriber, scheduler, function () { return subscriber.next(value); }, delay); }, function () { return executeSchedule_1.executeSchedule(subscriber, scheduler, function () { return subscriber.complete(); }, delay); }, function (err) { return executeSchedule_1.executeSchedule(subscriber, scheduler, function () { return subscriber.error(err); }, delay); }));
+    });
+}
+exports.observeOn = observeOn;
+//# sourceMappingURL=observeOn.js.map
 
 /***/ }),
 
-/***/ 60420:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 33569:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-const SemVer = __nccwpck_require__(48088)
-const Comparator = __nccwpck_require__(91532)
-const { ANY } = Comparator
-const Range = __nccwpck_require__(9828)
-const satisfies = __nccwpck_require__(6055)
-const gt = __nccwpck_require__(84123)
-const lt = __nccwpck_require__(80194)
-const lte = __nccwpck_require__(77520)
-const gte = __nccwpck_require__(15522)
+"use strict";
 
-const outside = (version, range, hilo, options) => {
-  version = new SemVer(version, options)
-  range = new Range(range, options)
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.onErrorResumeNext = exports.onErrorResumeNextWith = void 0;
+var argsOrArgArray_1 = __nccwpck_require__(18824);
+var onErrorResumeNext_1 = __nccwpck_require__(16089);
+function onErrorResumeNextWith() {
+    var sources = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        sources[_i] = arguments[_i];
+    }
+    var nextSources = argsOrArgArray_1.argsOrArgArray(sources);
+    return function (source) { return onErrorResumeNext_1.onErrorResumeNext.apply(void 0, __spreadArray([source], __read(nextSources))); };
+}
+exports.onErrorResumeNextWith = onErrorResumeNextWith;
+exports.onErrorResumeNext = onErrorResumeNextWith;
+//# sourceMappingURL=onErrorResumeNextWith.js.map
 
-  let gtfn, ltefn, ltfn, comp, ecomp
-  switch (hilo) {
-    case '>':
-      gtfn = gt
-      ltefn = lte
-      ltfn = lt
-      comp = '>'
-      ecomp = '>='
-      break
-    case '<':
-      gtfn = lt
-      ltefn = gte
-      ltfn = gt
-      comp = '<'
-      ecomp = '<='
-      break
-    default:
-      throw new TypeError('Must provide a hilo val of "<" or ">"')
-  }
+/***/ }),
 
-  // If it satisfies the range it is not outside
-  if (satisfies(version, range, options)) {
-    return false
-  }
+/***/ 52206:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  // From now on, variable terms are as if we're in "gtr" mode.
-  // but note that everything is flipped for the "ltr" function.
+"use strict";
 
-  for (let i = 0; i < range.set.length; ++i) {
-    const comparators = range.set[i]
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.pairwise = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function pairwise() {
+    return lift_1.operate(function (source, subscriber) {
+        var prev;
+        var hasPrev = false;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            var p = prev;
+            prev = value;
+            hasPrev && subscriber.next([p, value]);
+            hasPrev = true;
+        }));
+    });
+}
+exports.pairwise = pairwise;
+//# sourceMappingURL=pairwise.js.map
 
-    let high = null
-    let low = null
+/***/ }),
 
-    comparators.forEach((comparator) => {
-      if (comparator.semver === ANY) {
-        comparator = new Comparator('>=0.0.0')
-      }
-      high = high || comparator
-      low = low || comparator
-      if (gtfn(comparator.semver, high.semver, options)) {
-        high = comparator
-      } else if (ltfn(comparator.semver, low.semver, options)) {
-        low = comparator
-      }
-    })
+/***/ 55949:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    // If the edge version comparator has a operator then our version
-    // isn't outside it
-    if (high.operator === comp || high.operator === ecomp) {
-      return false
-    }
+"use strict";
 
-    // If the lowest version comparator has an operator and our version
-    // is less than it then it isn't higher than the range
-    if ((!low.operator || low.operator === comp) &&
-        ltefn(version, low.semver)) {
-      return false
-    } else if (low.operator === ecomp && ltfn(version, low.semver)) {
-      return false
-    }
-  }
-  return true
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.partition = void 0;
+var not_1 = __nccwpck_require__(54338);
+var filter_1 = __nccwpck_require__(36894);
+function partition(predicate, thisArg) {
+    return function (source) {
+        return [filter_1.filter(predicate, thisArg)(source), filter_1.filter(not_1.not(predicate, thisArg))(source)];
+    };
 }
+exports.partition = partition;
+//# sourceMappingURL=partition.js.map
 
-module.exports = outside
+/***/ }),
+
+/***/ 16073:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.pluck = void 0;
+var map_1 = __nccwpck_require__(5987);
+function pluck() {
+    var properties = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        properties[_i] = arguments[_i];
+    }
+    var length = properties.length;
+    if (length === 0) {
+        throw new Error('list of properties cannot be empty.');
+    }
+    return map_1.map(function (x) {
+        var currentProp = x;
+        for (var i = 0; i < length; i++) {
+            var p = currentProp === null || currentProp === void 0 ? void 0 : currentProp[properties[i]];
+            if (typeof p !== 'undefined') {
+                currentProp = p;
+            }
+            else {
+                return undefined;
+            }
+        }
+        return currentProp;
+    });
+}
+exports.pluck = pluck;
+//# sourceMappingURL=pluck.js.map
 
 /***/ }),
 
-/***/ 56561:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 84084:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-// given a set of versions and a range, create a "simplified" range
-// that includes the same versions that the original range does
-// If the original range is shorter than the simplified one, return that.
-const satisfies = __nccwpck_require__(6055)
-const compare = __nccwpck_require__(44309)
-module.exports = (versions, range, options) => {
-  const set = []
-  let first = null
-  let prev = null
-  const v = versions.sort((a, b) => compare(a, b, options))
-  for (const version of v) {
-    const included = satisfies(version, range, options)
-    if (included) {
-      prev = version
-      if (!first) {
-        first = version
-      }
-    } else {
-      if (prev) {
-        set.push([first, prev])
-      }
-      prev = null
-      first = null
-    }
-  }
-  if (first) {
-    set.push([first, null])
-  }
+"use strict";
 
-  const ranges = []
-  for (const [min, max] of set) {
-    if (min === max) {
-      ranges.push(min)
-    } else if (!max && min === v[0]) {
-      ranges.push('*')
-    } else if (!max) {
-      ranges.push(`>=${min}`)
-    } else if (min === v[0]) {
-      ranges.push(`<=${max}`)
-    } else {
-      ranges.push(`${min} - ${max}`)
-    }
-  }
-  const simplified = ranges.join(' || ')
-  const original = typeof range.raw === 'string' ? range.raw : String(range)
-  return simplified.length < original.length ? simplified : range
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.publish = void 0;
+var Subject_1 = __nccwpck_require__(49944);
+var multicast_1 = __nccwpck_require__(65457);
+var connect_1 = __nccwpck_require__(51101);
+function publish(selector) {
+    return selector ? function (source) { return connect_1.connect(selector)(source); } : function (source) { return multicast_1.multicast(new Subject_1.Subject())(source); };
 }
-
+exports.publish = publish;
+//# sourceMappingURL=publish.js.map
 
 /***/ }),
 
-/***/ 7863:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 40045:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const Range = __nccwpck_require__(9828)
-const Comparator = __nccwpck_require__(91532)
-const { ANY } = Comparator
-const satisfies = __nccwpck_require__(6055)
-const compare = __nccwpck_require__(44309)
+"use strict";
 
-// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:
-// - Every simple range `r1, r2, ...` is a null set, OR
-// - Every simple range `r1, r2, ...` which is not a null set is a subset of
-//   some `R1, R2, ...`
-//
-// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:
-// - If c is only the ANY comparator
-//   - If C is only the ANY comparator, return true
-//   - Else if in prerelease mode, return false
-//   - else replace c with `[>=0.0.0]`
-// - If C is only the ANY comparator
-//   - if in prerelease mode, return true
-//   - else replace C with `[>=0.0.0]`
-// - Let EQ be the set of = comparators in c
-// - If EQ is more than one, return true (null set)
-// - Let GT be the highest > or >= comparator in c
-// - Let LT be the lowest < or <= comparator in c
-// - If GT and LT, and GT.semver > LT.semver, return true (null set)
-// - If any C is a = range, and GT or LT are set, return false
-// - If EQ
-//   - If GT, and EQ does not satisfy GT, return true (null set)
-//   - If LT, and EQ does not satisfy LT, return true (null set)
-//   - If EQ satisfies every C, return true
-//   - Else return false
-// - If GT
-//   - If GT.semver is lower than any > or >= comp in C, return false
-//   - If GT is >=, and GT.semver does not satisfy every C, return false
-//   - If GT.semver has a prerelease, and not in prerelease mode
-//     - If no C has a prerelease and the GT.semver tuple, return false
-// - If LT
-//   - If LT.semver is greater than any < or <= comp in C, return false
-//   - If LT is <=, and LT.semver does not satisfy every C, return false
-//   - If GT.semver has a prerelease, and not in prerelease mode
-//     - If no C has a prerelease and the LT.semver tuple, return false
-// - Else return true
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.publishBehavior = void 0;
+var BehaviorSubject_1 = __nccwpck_require__(23473);
+var ConnectableObservable_1 = __nccwpck_require__(30420);
+function publishBehavior(initialValue) {
+    return function (source) {
+        var subject = new BehaviorSubject_1.BehaviorSubject(initialValue);
+        return new ConnectableObservable_1.ConnectableObservable(source, function () { return subject; });
+    };
+}
+exports.publishBehavior = publishBehavior;
+//# sourceMappingURL=publishBehavior.js.map
 
-const subset = (sub, dom, options = {}) => {
-  if (sub === dom) {
-    return true
-  }
+/***/ }),
 
-  sub = new Range(sub, options)
-  dom = new Range(dom, options)
-  let sawNonNull = false
+/***/ 84149:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  OUTER: for (const simpleSub of sub.set) {
-    for (const simpleDom of dom.set) {
-      const isSub = simpleSubset(simpleSub, simpleDom, options)
-      sawNonNull = sawNonNull || isSub !== null
-      if (isSub) {
-        continue OUTER
-      }
-    }
-    // the null set is a subset of everything, but null simple ranges in
-    // a complex range should be ignored.  so if we saw a non-null range,
-    // then we know this isn't a subset, but if EVERY simple range was null,
-    // then it is a subset.
-    if (sawNonNull) {
-      return false
-    }
-  }
-  return true
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.publishLast = void 0;
+var AsyncSubject_1 = __nccwpck_require__(9747);
+var ConnectableObservable_1 = __nccwpck_require__(30420);
+function publishLast() {
+    return function (source) {
+        var subject = new AsyncSubject_1.AsyncSubject();
+        return new ConnectableObservable_1.ConnectableObservable(source, function () { return subject; });
+    };
 }
+exports.publishLast = publishLast;
+//# sourceMappingURL=publishLast.js.map
 
-const minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]
-const minimumVersion = [new Comparator('>=0.0.0')]
+/***/ }),
 
-const simpleSubset = (sub, dom, options) => {
-  if (sub === dom) {
-    return true
-  }
+/***/ 47656:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  if (sub.length === 1 && sub[0].semver === ANY) {
-    if (dom.length === 1 && dom[0].semver === ANY) {
-      return true
-    } else if (options.includePrerelease) {
-      sub = minimumVersionWithPreRelease
-    } else {
-      sub = minimumVersion
-    }
-  }
+"use strict";
 
-  if (dom.length === 1 && dom[0].semver === ANY) {
-    if (options.includePrerelease) {
-      return true
-    } else {
-      dom = minimumVersion
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.publishReplay = void 0;
+var ReplaySubject_1 = __nccwpck_require__(22351);
+var multicast_1 = __nccwpck_require__(65457);
+var isFunction_1 = __nccwpck_require__(67206);
+function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) {
+    if (selectorOrScheduler && !isFunction_1.isFunction(selectorOrScheduler)) {
+        timestampProvider = selectorOrScheduler;
     }
-  }
+    var selector = isFunction_1.isFunction(selectorOrScheduler) ? selectorOrScheduler : undefined;
+    return function (source) { return multicast_1.multicast(new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, timestampProvider), selector)(source); };
+}
+exports.publishReplay = publishReplay;
+//# sourceMappingURL=publishReplay.js.map
 
-  const eqSet = new Set()
-  let gt, lt
-  for (const c of sub) {
-    if (c.operator === '>' || c.operator === '>=') {
-      gt = higherGT(gt, c, options)
-    } else if (c.operator === '<' || c.operator === '<=') {
-      lt = lowerLT(lt, c, options)
-    } else {
-      eqSet.add(c.semver)
-    }
-  }
+/***/ }),
 
-  if (eqSet.size > 1) {
-    return null
-  }
+/***/ 85846:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-  let gtltComp
-  if (gt && lt) {
-    gtltComp = compare(gt.semver, lt.semver, options)
-    if (gtltComp > 0) {
-      return null
-    } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {
-      return null
-    }
-  }
+"use strict";
 
-  // will iterate one or zero times
-  for (const eq of eqSet) {
-    if (gt && !satisfies(eq, String(gt), options)) {
-      return null
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
     }
-
-    if (lt && !satisfies(eq, String(lt), options)) {
-      return null
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
     }
-
-    for (const c of dom) {
-      if (!satisfies(eq, String(c), options)) {
-        return false
-      }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.race = void 0;
+var argsOrArgArray_1 = __nccwpck_require__(18824);
+var raceWith_1 = __nccwpck_require__(58008);
+function race() {
+    var args = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        args[_i] = arguments[_i];
     }
+    return raceWith_1.raceWith.apply(void 0, __spreadArray([], __read(argsOrArgArray_1.argsOrArgArray(args))));
+}
+exports.race = race;
+//# sourceMappingURL=race.js.map
 
-    return true
-  }
+/***/ }),
 
-  let higher, lower
-  let hasDomLT, hasDomGT
-  // if the subset has a prerelease, we need a comparator in the superset
-  // with the same tuple and a prerelease, or it's not a subset
-  let needDomLTPre = lt &&
-    !options.includePrerelease &&
-    lt.semver.prerelease.length ? lt.semver : false
-  let needDomGTPre = gt &&
-    !options.includePrerelease &&
-    gt.semver.prerelease.length ? gt.semver : false
-  // exception: <1.2.3-0 is the same as <1.2.3
-  if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&
-      lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {
-    needDomLTPre = false
-  }
+/***/ 58008:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-  for (const c of dom) {
-    hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='
-    hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='
-    if (gt) {
-      if (needDomGTPre) {
-        if (c.semver.prerelease && c.semver.prerelease.length &&
-            c.semver.major === needDomGTPre.major &&
-            c.semver.minor === needDomGTPre.minor &&
-            c.semver.patch === needDomGTPre.patch) {
-          needDomGTPre = false
-        }
-      }
-      if (c.operator === '>' || c.operator === '>=') {
-        higher = higherGT(gt, c, options)
-        if (higher === c && higher !== gt) {
-          return false
-        }
-      } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {
-        return false
-      }
+"use strict";
+
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
     }
-    if (lt) {
-      if (needDomLTPre) {
-        if (c.semver.prerelease && c.semver.prerelease.length &&
-            c.semver.major === needDomLTPre.major &&
-            c.semver.minor === needDomLTPre.minor &&
-            c.semver.patch === needDomLTPre.patch) {
-          needDomLTPre = false
-        }
-      }
-      if (c.operator === '<' || c.operator === '<=') {
-        lower = lowerLT(lt, c, options)
-        if (lower === c && lower !== lt) {
-          return false
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
         }
-      } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {
-        return false
-      }
-    }
-    if (!c.operator && (lt || gt) && gtltComp !== 0) {
-      return false
+        finally { if (e) throw e.error; }
     }
-  }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.raceWith = void 0;
+var race_1 = __nccwpck_require__(16940);
+var lift_1 = __nccwpck_require__(38669);
+var identity_1 = __nccwpck_require__(60283);
+function raceWith() {
+    var otherSources = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        otherSources[_i] = arguments[_i];
+    }
+    return !otherSources.length
+        ? identity_1.identity
+        : lift_1.operate(function (source, subscriber) {
+            race_1.raceInit(__spreadArray([source], __read(otherSources)))(subscriber);
+        });
+}
+exports.raceWith = raceWith;
+//# sourceMappingURL=raceWith.js.map
 
-  // if there was a < or >, and nothing in the dom, then must be false
-  // UNLESS it was limited by another range in the other direction.
-  // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0
-  if (gt && hasDomLT && !lt && gtltComp !== 0) {
-    return false
-  }
+/***/ }),
 
-  if (lt && hasDomGT && !gt && gtltComp !== 0) {
-    return false
-  }
+/***/ 62087:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  // we needed a prerelease range in a specific tuple, but didn't get one
-  // then this isn't a subset.  eg >=1.2.3-pre is not a subset of >=1.0.0,
-  // because it includes prereleases in the 1.2.3 tuple
-  if (needDomGTPre || needDomLTPre) {
-    return false
-  }
+"use strict";
 
-  return true
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.reduce = void 0;
+var scanInternals_1 = __nccwpck_require__(20998);
+var lift_1 = __nccwpck_require__(38669);
+function reduce(accumulator, seed) {
+    return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, false, true));
 }
+exports.reduce = reduce;
+//# sourceMappingURL=reduce.js.map
 
-// >=1.2.3 is lower than >1.2.3
-const higherGT = (a, b, options) => {
-  if (!a) {
-    return b
-  }
-  const comp = compare(a.semver, b.semver, options)
-  return comp > 0 ? a
-    : comp < 0 ? b
-    : b.operator === '>' && a.operator === '>=' ? b
-    : a
-}
+/***/ }),
 
-// <=1.2.3 is higher than <1.2.3
-const lowerLT = (a, b, options) => {
-  if (!a) {
-    return b
-  }
-  const comp = compare(a.semver, b.semver, options)
-  return comp < 0 ? a
-    : comp > 0 ? b
-    : b.operator === '<' && a.operator === '<=' ? b
-    : a
-}
+/***/ 2331:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-module.exports = subset
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.refCount = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function refCount() {
+    return lift_1.operate(function (source, subscriber) {
+        var connection = null;
+        source._refCount++;
+        var refCounter = OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, undefined, undefined, function () {
+            if (!source || source._refCount <= 0 || 0 < --source._refCount) {
+                connection = null;
+                return;
+            }
+            var sharedConnection = source._connection;
+            var conn = connection;
+            connection = null;
+            if (sharedConnection && (!conn || sharedConnection === conn)) {
+                sharedConnection.unsubscribe();
+            }
+            subscriber.unsubscribe();
+        });
+        source.subscribe(refCounter);
+        if (!refCounter.closed) {
+            connection = source.connect();
+        }
+    });
+}
+exports.refCount = refCount;
+//# sourceMappingURL=refCount.js.map
 
 /***/ }),
 
-/***/ 52706:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-const Range = __nccwpck_require__(9828)
-
-// Mostly just for testing and legacy API reasons
-const toComparators = (range, options) =>
-  new Range(range, options).set
-    .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))
+/***/ 22418:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-module.exports = toComparators
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.repeat = void 0;
+var empty_1 = __nccwpck_require__(70437);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var innerFrom_1 = __nccwpck_require__(57105);
+var timer_1 = __nccwpck_require__(59757);
+function repeat(countOrConfig) {
+    var _a;
+    var count = Infinity;
+    var delay;
+    if (countOrConfig != null) {
+        if (typeof countOrConfig === 'object') {
+            (_a = countOrConfig.count, count = _a === void 0 ? Infinity : _a, delay = countOrConfig.delay);
+        }
+        else {
+            count = countOrConfig;
+        }
+    }
+    return count <= 0
+        ? function () { return empty_1.EMPTY; }
+        : lift_1.operate(function (source, subscriber) {
+            var soFar = 0;
+            var sourceSub;
+            var resubscribe = function () {
+                sourceSub === null || sourceSub === void 0 ? void 0 : sourceSub.unsubscribe();
+                sourceSub = null;
+                if (delay != null) {
+                    var notifier = typeof delay === 'number' ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(soFar));
+                    var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () {
+                        notifierSubscriber_1.unsubscribe();
+                        subscribeToSource();
+                    });
+                    notifier.subscribe(notifierSubscriber_1);
+                }
+                else {
+                    subscribeToSource();
+                }
+            };
+            var subscribeToSource = function () {
+                var syncUnsub = false;
+                sourceSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, function () {
+                    if (++soFar < count) {
+                        if (sourceSub) {
+                            resubscribe();
+                        }
+                        else {
+                            syncUnsub = true;
+                        }
+                    }
+                    else {
+                        subscriber.complete();
+                    }
+                }));
+                if (syncUnsub) {
+                    resubscribe();
+                }
+            };
+            subscribeToSource();
+        });
+}
+exports.repeat = repeat;
+//# sourceMappingURL=repeat.js.map
 
 /***/ }),
 
-/***/ 2098:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 70754:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-const Range = __nccwpck_require__(9828)
-const validRange = (range, options) => {
-  try {
-    // Return '*' instead of '' so that truthiness works.
-    // This will throw if it's invalid anyway
-    return new Range(range, options).range || '*'
-  } catch (er) {
-    return null
-  }
-}
-module.exports = validRange
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.repeatWhen = void 0;
+var innerFrom_1 = __nccwpck_require__(57105);
+var Subject_1 = __nccwpck_require__(49944);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function repeatWhen(notifier) {
+    return lift_1.operate(function (source, subscriber) {
+        var innerSub;
+        var syncResub = false;
+        var completions$;
+        var isNotifierComplete = false;
+        var isMainComplete = false;
+        var checkComplete = function () { return isMainComplete && isNotifierComplete && (subscriber.complete(), true); };
+        var getCompletionSubject = function () {
+            if (!completions$) {
+                completions$ = new Subject_1.Subject();
+                innerFrom_1.innerFrom(notifier(completions$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () {
+                    if (innerSub) {
+                        subscribeForRepeatWhen();
+                    }
+                    else {
+                        syncResub = true;
+                    }
+                }, function () {
+                    isNotifierComplete = true;
+                    checkComplete();
+                }));
+            }
+            return completions$;
+        };
+        var subscribeForRepeatWhen = function () {
+            isMainComplete = false;
+            innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, function () {
+                isMainComplete = true;
+                !checkComplete() && getCompletionSubject().next();
+            }));
+            if (syncResub) {
+                innerSub.unsubscribe();
+                innerSub = null;
+                syncResub = false;
+                subscribeForRepeatWhen();
+            }
+        };
+        subscribeForRepeatWhen();
+    });
+}
+exports.repeatWhen = repeatWhen;
+//# sourceMappingURL=repeatWhen.js.map
 
 /***/ }),
 
-/***/ 45123:
-/***/ ((module) => {
+/***/ 56251:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-module.exports = [
-  'cat',
-  'cd',
-  'chmod',
-  'cp',
-  'dirs',
-  'echo',
-  'exec',
-  'find',
-  'grep',
-  'head',
-  'ln',
-  'ls',
-  'mkdir',
-  'mv',
-  'pwd',
-  'rm',
-  'sed',
-  'set',
-  'sort',
-  'tail',
-  'tempdir',
-  'test',
-  'to',
-  'toEnd',
-  'touch',
-  'uniq',
-  'which',
-];
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.retry = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var identity_1 = __nccwpck_require__(60283);
+var timer_1 = __nccwpck_require__(59757);
+var innerFrom_1 = __nccwpck_require__(57105);
+function retry(configOrCount) {
+    if (configOrCount === void 0) { configOrCount = Infinity; }
+    var config;
+    if (configOrCount && typeof configOrCount === 'object') {
+        config = configOrCount;
+    }
+    else {
+        config = {
+            count: configOrCount,
+        };
+    }
+    var _a = config.count, count = _a === void 0 ? Infinity : _a, delay = config.delay, _b = config.resetOnSuccess, resetOnSuccess = _b === void 0 ? false : _b;
+    return count <= 0
+        ? identity_1.identity
+        : lift_1.operate(function (source, subscriber) {
+            var soFar = 0;
+            var innerSub;
+            var subscribeForRetry = function () {
+                var syncUnsub = false;
+                innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+                    if (resetOnSuccess) {
+                        soFar = 0;
+                    }
+                    subscriber.next(value);
+                }, undefined, function (err) {
+                    if (soFar++ < count) {
+                        var resub_1 = function () {
+                            if (innerSub) {
+                                innerSub.unsubscribe();
+                                innerSub = null;
+                                subscribeForRetry();
+                            }
+                            else {
+                                syncUnsub = true;
+                            }
+                        };
+                        if (delay != null) {
+                            var notifier = typeof delay === 'number' ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(err, soFar));
+                            var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () {
+                                notifierSubscriber_1.unsubscribe();
+                                resub_1();
+                            }, function () {
+                                subscriber.complete();
+                            });
+                            notifier.subscribe(notifierSubscriber_1);
+                        }
+                        else {
+                            resub_1();
+                        }
+                    }
+                    else {
+                        subscriber.error(err);
+                    }
+                }));
+                if (syncUnsub) {
+                    innerSub.unsubscribe();
+                    innerSub = null;
+                    subscribeForRetry();
+                }
+            };
+            subscribeForRetry();
+        });
+}
+exports.retry = retry;
+//# sourceMappingURL=retry.js.map
 
 /***/ }),
 
-/***/ 33516:
+/***/ 69018:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-//
-// ShellJS
-// Unix shell commands on top of Node's API
-//
-// Copyright (c) 2012 Artur Adib
-// http://github.com/shelljs/shelljs
-//
+"use strict";
 
-function __ncc_wildcard$0 (arg) {
-  if (arg === "cat.js" || arg === "cat") return __nccwpck_require__(30271);
-  else if (arg === "cd.js" || arg === "cd") return __nccwpck_require__(42051);
-  else if (arg === "chmod.js" || arg === "chmod") return __nccwpck_require__(24975);
-  else if (arg === "common.js" || arg === "common") return __nccwpck_require__(53687);
-  else if (arg === "cp.js" || arg === "cp") return __nccwpck_require__(34932);
-  else if (arg === "dirs.js" || arg === "dirs") return __nccwpck_require__(41178);
-  else if (arg === "echo.js" || arg === "echo") return __nccwpck_require__(10243);
-  else if (arg === "error.js" || arg === "error") return __nccwpck_require__(10232);
-  else if (arg === "exec-child.js" || arg === "exec-child") return __nccwpck_require__(69607);
-  else if (arg === "exec.js" || arg === "exec") return __nccwpck_require__(10896);
-  else if (arg === "find.js" || arg === "find") return __nccwpck_require__(47838);
-  else if (arg === "grep.js" || arg === "grep") return __nccwpck_require__(17417);
-  else if (arg === "head.js" || arg === "head") return __nccwpck_require__(6613);
-  else if (arg === "ln.js" || arg === "ln") return __nccwpck_require__(15787);
-  else if (arg === "ls.js" || arg === "ls") return __nccwpck_require__(35561);
-  else if (arg === "mkdir.js" || arg === "mkdir") return __nccwpck_require__(72695);
-  else if (arg === "mv.js" || arg === "mv") return __nccwpck_require__(39849);
-  else if (arg === "popd.js" || arg === "popd") return __nccwpck_require__(50227);
-  else if (arg === "pushd.js" || arg === "pushd") return __nccwpck_require__(44177);
-  else if (arg === "pwd.js" || arg === "pwd") return __nccwpck_require__(58553);
-  else if (arg === "rm.js" || arg === "rm") return __nccwpck_require__(22830);
-  else if (arg === "sed.js" || arg === "sed") return __nccwpck_require__(25899);
-  else if (arg === "set.js" || arg === "set") return __nccwpck_require__(11411);
-  else if (arg === "sort.js" || arg === "sort") return __nccwpck_require__(72116);
-  else if (arg === "tail.js" || arg === "tail") return __nccwpck_require__(42284);
-  else if (arg === "tempdir.js" || arg === "tempdir") return __nccwpck_require__(76150);
-  else if (arg === "test.js" || arg === "test") return __nccwpck_require__(79723);
-  else if (arg === "to.js" || arg === "to") return __nccwpck_require__(71961);
-  else if (arg === "toEnd.js" || arg === "toEnd") return __nccwpck_require__(33736);
-  else if (arg === "touch.js" || arg === "touch") return __nccwpck_require__(28358);
-  else if (arg === "uniq.js" || arg === "uniq") return __nccwpck_require__(77286);
-  else if (arg === "which.js" || arg === "which") return __nccwpck_require__(64766);
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.retryWhen = void 0;
+var innerFrom_1 = __nccwpck_require__(57105);
+var Subject_1 = __nccwpck_require__(49944);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function retryWhen(notifier) {
+    return lift_1.operate(function (source, subscriber) {
+        var innerSub;
+        var syncResub = false;
+        var errors$;
+        var subscribeForRetryWhen = function () {
+            innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, undefined, function (err) {
+                if (!errors$) {
+                    errors$ = new Subject_1.Subject();
+                    innerFrom_1.innerFrom(notifier(errors$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () {
+                        return innerSub ? subscribeForRetryWhen() : (syncResub = true);
+                    }));
+                }
+                if (errors$) {
+                    errors$.next(err);
+                }
+            }));
+            if (syncResub) {
+                innerSub.unsubscribe();
+                innerSub = null;
+                syncResub = false;
+                subscribeForRetryWhen();
+            }
+        };
+        subscribeForRetryWhen();
+    });
 }
-var common = __nccwpck_require__(53687);
+exports.retryWhen = retryWhen;
+//# sourceMappingURL=retryWhen.js.map
 
-//@
-//@ All commands run synchronously, unless otherwise stated.
-//@ All commands accept standard bash globbing characters (`*`, `?`, etc.),
-//@ compatible with the [node `glob` module](https://github.com/isaacs/node-glob).
-//@
-//@ For less-commonly used commands and features, please check out our [wiki
-//@ page](https://github.com/shelljs/shelljs/wiki).
-//@
+/***/ }),
 
-// Include the docs for all the default commands
-//@commands
+/***/ 13774:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-// Load all default commands
-(__nccwpck_require__(45123).forEach)(function (command) {
-  __ncc_wildcard$0(command);
-});
+"use strict";
 
-//@
-//@ ### exit(code)
-//@
-//@ Exits the current process with the given exit `code`.
-exports.exit = process.exit;
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.sample = void 0;
+var innerFrom_1 = __nccwpck_require__(57105);
+var lift_1 = __nccwpck_require__(38669);
+var noop_1 = __nccwpck_require__(11642);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function sample(notifier) {
+    return lift_1.operate(function (source, subscriber) {
+        var hasValue = false;
+        var lastValue = null;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            hasValue = true;
+            lastValue = value;
+        }));
+        innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () {
+            if (hasValue) {
+                hasValue = false;
+                var value = lastValue;
+                lastValue = null;
+                subscriber.next(value);
+            }
+        }, noop_1.noop));
+    });
+}
+exports.sample = sample;
+//# sourceMappingURL=sample.js.map
 
-//@include ./src/error
-exports.error = __nccwpck_require__(10232);
+/***/ }),
 
-//@include ./src/common
-exports.ShellString = common.ShellString;
+/***/ 49807:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-//@
-//@ ### env['VAR_NAME']
-//@
-//@ Object containing environment variables (both getter and setter). Shortcut
-//@ to `process.env`.
-exports.env = process.env;
+"use strict";
 
-//@
-//@ ### Pipes
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ grep('foo', 'file1.txt', 'file2.txt').sed(/o/g, 'a').to('output.txt');
-//@ echo('files with o\'s in the name:\n' + ls().grep('o'));
-//@ cat('test.js').exec('node'); // pipe to exec() call
-//@ ```
-//@
-//@ Commands can send their output to another command in a pipe-like fashion.
-//@ `sed`, `grep`, `cat`, `exec`, `to`, and `toEnd` can appear on the right-hand
-//@ side of a pipe. Pipes can be chained.
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.sampleTime = void 0;
+var async_1 = __nccwpck_require__(76072);
+var sample_1 = __nccwpck_require__(13774);
+var interval_1 = __nccwpck_require__(20029);
+function sampleTime(period, scheduler) {
+    if (scheduler === void 0) { scheduler = async_1.asyncScheduler; }
+    return sample_1.sample(interval_1.interval(period, scheduler));
+}
+exports.sampleTime = sampleTime;
+//# sourceMappingURL=sampleTime.js.map
 
-//@
-//@ ## Configuration
-//@
+/***/ }),
 
-exports.config = common.config;
+/***/ 25578:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-//@
-//@ ### config.silent
-//@
-//@ Example:
-//@
-//@ ```javascript
-//@ var sh = require('shelljs');
-//@ var silentState = sh.config.silent; // save old silent state
-//@ sh.config.silent = true;
-//@ /* ... */
-//@ sh.config.silent = silentState; // restore old silent state
-//@ ```
-//@
-//@ Suppresses all command output if `true`, except for `echo()` calls.
-//@ Default is `false`.
+"use strict";
 
-//@
-//@ ### config.fatal
-//@
-//@ Example:
-//@
-//@ ```javascript
-//@ require('shelljs/global');
-//@ config.fatal = true; // or set('-e');
-//@ cp('this_file_does_not_exist', '/dev/null'); // throws Error here
-//@ /* more commands... */
-//@ ```
-//@
-//@ If `true`, the script will throw a Javascript error when any shell.js
-//@ command encounters an error. Default is `false`. This is analogous to
-//@ Bash's `set -e`.
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.scan = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var scanInternals_1 = __nccwpck_require__(20998);
+function scan(accumulator, seed) {
+    return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, true));
+}
+exports.scan = scan;
+//# sourceMappingURL=scan.js.map
 
-//@
-//@ ### config.verbose
-//@
-//@ Example:
-//@
-//@ ```javascript
-//@ config.verbose = true; // or set('-v');
-//@ cd('dir/');
-//@ rm('-rf', 'foo.txt', 'bar.txt');
-//@ exec('echo hello');
-//@ ```
-//@
-//@ Will print each command as follows:
-//@
-//@ ```
-//@ cd dir/
-//@ rm -rf foo.txt bar.txt
-//@ exec echo hello
-//@ ```
+/***/ }),
 
-//@
-//@ ### config.globOptions
-//@
-//@ Example:
-//@
-//@ ```javascript
-//@ config.globOptions = {nodir: true};
-//@ ```
-//@
-//@ Use this value for calls to `glob.sync()` instead of the default options.
+/***/ 20998:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-//@
-//@ ### config.reset()
-//@
-//@ Example:
-//@
-//@ ```javascript
-//@ var shell = require('shelljs');
-//@ // Make changes to shell.config, and do stuff...
-//@ /* ... */
-//@ shell.config.reset(); // reset to original state
-//@ // Do more stuff, but with original settings
-//@ /* ... */
-//@ ```
-//@
-//@ Reset `shell.config` to the defaults:
-//@
-//@ ```javascript
-//@ {
-//@   fatal: false,
-//@   globOptions: {},
-//@   maxdepth: 255,
-//@   noglob: false,
-//@   silent: false,
-//@   verbose: false,
-//@ }
-//@ ```
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.scanInternals = void 0;
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {
+    return function (source, subscriber) {
+        var hasState = hasSeed;
+        var state = seed;
+        var index = 0;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            var i = index++;
+            state = hasState
+                ?
+                    accumulator(state, value, i)
+                :
+                    ((hasState = true), value);
+            emitOnNext && subscriber.next(state);
+        }, emitBeforeComplete &&
+            (function () {
+                hasState && subscriber.next(state);
+                subscriber.complete();
+            })));
+    };
+}
+exports.scanInternals = scanInternals;
+//# sourceMappingURL=scanInternals.js.map
 
 /***/ }),
 
-/***/ 30271:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 16126:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
+"use strict";
 
-common.register('cat', _cat, {
-  canReceivePipe: true,
-  cmdOptions: {
-    'n': 'number',
-  },
-});
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.sequenceEqual = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var innerFrom_1 = __nccwpck_require__(57105);
+function sequenceEqual(compareTo, comparator) {
+    if (comparator === void 0) { comparator = function (a, b) { return a === b; }; }
+    return lift_1.operate(function (source, subscriber) {
+        var aState = createState();
+        var bState = createState();
+        var emit = function (isEqual) {
+            subscriber.next(isEqual);
+            subscriber.complete();
+        };
+        var createSubscriber = function (selfState, otherState) {
+            var sequenceEqualSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (a) {
+                var buffer = otherState.buffer, complete = otherState.complete;
+                if (buffer.length === 0) {
+                    complete ? emit(false) : selfState.buffer.push(a);
+                }
+                else {
+                    !comparator(a, buffer.shift()) && emit(false);
+                }
+            }, function () {
+                selfState.complete = true;
+                var complete = otherState.complete, buffer = otherState.buffer;
+                complete && emit(buffer.length === 0);
+                sequenceEqualSubscriber === null || sequenceEqualSubscriber === void 0 ? void 0 : sequenceEqualSubscriber.unsubscribe();
+            });
+            return sequenceEqualSubscriber;
+        };
+        source.subscribe(createSubscriber(aState, bState));
+        innerFrom_1.innerFrom(compareTo).subscribe(createSubscriber(bState, aState));
+    });
+}
+exports.sequenceEqual = sequenceEqual;
+function createState() {
+    return {
+        buffer: [],
+        complete: false,
+    };
+}
+//# sourceMappingURL=sequenceEqual.js.map
 
-//@
-//@ ### cat([options,] file [, file ...])
-//@ ### cat([options,] file_array)
-//@
-//@ Available options:
-//@
-//@ + `-n`: number all output lines
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ var str = cat('file*.txt');
-//@ var str = cat('file1', 'file2');
-//@ var str = cat(['file1', 'file2']); // same as above
-//@ ```
-//@
-//@ Returns a string containing the given file, or a concatenated string
-//@ containing the files if more than one file is given (a new line character is
-//@ introduced between each file).
-function _cat(options, files) {
-  var cat = common.readFromPipe();
+/***/ }),
 
-  if (!files && !cat) common.error('no paths given');
+/***/ 48960:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-  files = [].slice.call(arguments, 1);
+"use strict";
 
-  files.forEach(function (file) {
-    if (!fs.existsSync(file)) {
-      common.error('no such file or directory: ' + file);
-    } else if (common.statFollowLinks(file).isDirectory()) {
-      common.error(file + ': Is a directory');
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.share = void 0;
+var innerFrom_1 = __nccwpck_require__(57105);
+var Subject_1 = __nccwpck_require__(49944);
+var Subscriber_1 = __nccwpck_require__(67121);
+var lift_1 = __nccwpck_require__(38669);
+function share(options) {
+    if (options === void 0) { options = {}; }
+    var _a = options.connector, connector = _a === void 0 ? function () { return new Subject_1.Subject(); } : _a, _b = options.resetOnError, resetOnError = _b === void 0 ? true : _b, _c = options.resetOnComplete, resetOnComplete = _c === void 0 ? true : _c, _d = options.resetOnRefCountZero, resetOnRefCountZero = _d === void 0 ? true : _d;
+    return function (wrapperSource) {
+        var connection;
+        var resetConnection;
+        var subject;
+        var refCount = 0;
+        var hasCompleted = false;
+        var hasErrored = false;
+        var cancelReset = function () {
+            resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();
+            resetConnection = undefined;
+        };
+        var reset = function () {
+            cancelReset();
+            connection = subject = undefined;
+            hasCompleted = hasErrored = false;
+        };
+        var resetAndUnsubscribe = function () {
+            var conn = connection;
+            reset();
+            conn === null || conn === void 0 ? void 0 : conn.unsubscribe();
+        };
+        return lift_1.operate(function (source, subscriber) {
+            refCount++;
+            if (!hasErrored && !hasCompleted) {
+                cancelReset();
+            }
+            var dest = (subject = subject !== null && subject !== void 0 ? subject : connector());
+            subscriber.add(function () {
+                refCount--;
+                if (refCount === 0 && !hasErrored && !hasCompleted) {
+                    resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);
+                }
+            });
+            dest.subscribe(subscriber);
+            if (!connection &&
+                refCount > 0) {
+                connection = new Subscriber_1.SafeSubscriber({
+                    next: function (value) { return dest.next(value); },
+                    error: function (err) {
+                        hasErrored = true;
+                        cancelReset();
+                        resetConnection = handleReset(reset, resetOnError, err);
+                        dest.error(err);
+                    },
+                    complete: function () {
+                        hasCompleted = true;
+                        cancelReset();
+                        resetConnection = handleReset(reset, resetOnComplete);
+                        dest.complete();
+                    },
+                });
+                innerFrom_1.innerFrom(source).subscribe(connection);
+            }
+        })(wrapperSource);
+    };
+}
+exports.share = share;
+function handleReset(reset, on) {
+    var args = [];
+    for (var _i = 2; _i < arguments.length; _i++) {
+        args[_i - 2] = arguments[_i];
+    }
+    if (on === true) {
+        reset();
+        return;
+    }
+    if (on === false) {
+        return;
     }
+    var onSubscriber = new Subscriber_1.SafeSubscriber({
+        next: function () {
+            onSubscriber.unsubscribe();
+            reset();
+        },
+    });
+    return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
+}
+//# sourceMappingURL=share.js.map
 
-    cat += fs.readFileSync(file, 'utf8');
-  });
+/***/ }),
 
-  if (options.number) {
-    cat = addNumbers(cat);
-  }
+/***/ 92118:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  return cat;
-}
-module.exports = _cat;
+"use strict";
 
-function addNumbers(cat) {
-  var lines = cat.split('\n');
-  var lastLine = lines.pop();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.shareReplay = void 0;
+var ReplaySubject_1 = __nccwpck_require__(22351);
+var share_1 = __nccwpck_require__(48960);
+function shareReplay(configOrBufferSize, windowTime, scheduler) {
+    var _a, _b, _c;
+    var bufferSize;
+    var refCount = false;
+    if (configOrBufferSize && typeof configOrBufferSize === 'object') {
+        (_a = configOrBufferSize.bufferSize, bufferSize = _a === void 0 ? Infinity : _a, _b = configOrBufferSize.windowTime, windowTime = _b === void 0 ? Infinity : _b, _c = configOrBufferSize.refCount, refCount = _c === void 0 ? false : _c, scheduler = configOrBufferSize.scheduler);
+    }
+    else {
+        bufferSize = (configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity);
+    }
+    return share_1.share({
+        connector: function () { return new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, scheduler); },
+        resetOnError: true,
+        resetOnComplete: false,
+        resetOnRefCountZero: refCount,
+    });
+}
+exports.shareReplay = shareReplay;
+//# sourceMappingURL=shareReplay.js.map
 
-  lines = lines.map(function (line, i) {
-    return numberedLine(i + 1, line);
-  });
+/***/ }),
 
-  if (lastLine.length) {
-    lastLine = numberedLine(lines.length + 1, lastLine);
-  }
-  lines.push(lastLine);
+/***/ 58441:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  return lines.join('\n');
-}
+"use strict";
 
-function numberedLine(n, line) {
-  // GNU cat use six pad start number + tab. See http://lingrok.org/xref/coreutils/src/cat.c#57
-  // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart
-  var number = ('     ' + n).slice(-6) + '\t';
-  return number + line;
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.single = void 0;
+var EmptyError_1 = __nccwpck_require__(99391);
+var SequenceError_1 = __nccwpck_require__(49048);
+var NotFoundError_1 = __nccwpck_require__(74431);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function single(predicate) {
+    return lift_1.operate(function (source, subscriber) {
+        var hasValue = false;
+        var singleValue;
+        var seenValue = false;
+        var index = 0;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            seenValue = true;
+            if (!predicate || predicate(value, index++, source)) {
+                hasValue && subscriber.error(new SequenceError_1.SequenceError('Too many matching values'));
+                hasValue = true;
+                singleValue = value;
+            }
+        }, function () {
+            if (hasValue) {
+                subscriber.next(singleValue);
+                subscriber.complete();
+            }
+            else {
+                subscriber.error(seenValue ? new NotFoundError_1.NotFoundError('No matching values') : new EmptyError_1.EmptyError());
+            }
+        }));
+    });
 }
-
+exports.single = single;
+//# sourceMappingURL=single.js.map
 
 /***/ }),
 
-/***/ 42051:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 80947:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-var os = __nccwpck_require__(22037);
-var common = __nccwpck_require__(53687);
+"use strict";
 
-common.register('cd', _cd, {});
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.skip = void 0;
+var filter_1 = __nccwpck_require__(36894);
+function skip(count) {
+    return filter_1.filter(function (_, index) { return count <= index; });
+}
+exports.skip = skip;
+//# sourceMappingURL=skip.js.map
 
-//@
-//@ ### cd([dir])
-//@
-//@ Changes to directory `dir` for the duration of the script. Changes to home
-//@ directory if no argument is supplied.
-function _cd(options, dir) {
-  if (!dir) dir = os.homedir();
+/***/ }),
 
-  if (dir === '-') {
-    if (!process.env.OLDPWD) {
-      common.error('could not find previous directory');
-    } else {
-      dir = process.env.OLDPWD;
-    }
-  }
+/***/ 65865:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  try {
-    var curDir = process.cwd();
-    process.chdir(dir);
-    process.env.OLDPWD = curDir;
-  } catch (e) {
-    // something went wrong, let's figure out the error
-    var err;
-    try {
-      common.statFollowLinks(dir); // if this succeeds, it must be some sort of file
-      err = 'not a directory: ' + dir;
-    } catch (e2) {
-      err = 'no such file or directory: ' + dir;
-    }
-    if (err) common.error(err);
-  }
-  return '';
-}
-module.exports = _cd;
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.skipLast = void 0;
+var identity_1 = __nccwpck_require__(60283);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function skipLast(skipCount) {
+    return skipCount <= 0
+        ?
+            identity_1.identity
+        : lift_1.operate(function (source, subscriber) {
+            var ring = new Array(skipCount);
+            var seen = 0;
+            source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+                var valueIndex = seen++;
+                if (valueIndex < skipCount) {
+                    ring[valueIndex] = value;
+                }
+                else {
+                    var index = valueIndex % skipCount;
+                    var oldValue = ring[index];
+                    ring[index] = value;
+                    subscriber.next(oldValue);
+                }
+            }));
+            return function () {
+                ring = null;
+            };
+        });
+}
+exports.skipLast = skipLast;
+//# sourceMappingURL=skipLast.js.map
 
 /***/ }),
 
-/***/ 24975:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 41110:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
-var path = __nccwpck_require__(71017);
+"use strict";
 
-var PERMS = (function (base) {
-  return {
-    OTHER_EXEC: base.EXEC,
-    OTHER_WRITE: base.WRITE,
-    OTHER_READ: base.READ,
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.skipUntil = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var innerFrom_1 = __nccwpck_require__(57105);
+var noop_1 = __nccwpck_require__(11642);
+function skipUntil(notifier) {
+    return lift_1.operate(function (source, subscriber) {
+        var taking = false;
+        var skipSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () {
+            skipSubscriber === null || skipSubscriber === void 0 ? void 0 : skipSubscriber.unsubscribe();
+            taking = true;
+        }, noop_1.noop);
+        innerFrom_1.innerFrom(notifier).subscribe(skipSubscriber);
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return taking && subscriber.next(value); }));
+    });
+}
+exports.skipUntil = skipUntil;
+//# sourceMappingURL=skipUntil.js.map
 
-    GROUP_EXEC: base.EXEC << 3,
-    GROUP_WRITE: base.WRITE << 3,
-    GROUP_READ: base.READ << 3,
+/***/ }),
 
-    OWNER_EXEC: base.EXEC << 6,
-    OWNER_WRITE: base.WRITE << 6,
-    OWNER_READ: base.READ << 6,
+/***/ 92550:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    // Literal octal numbers are apparently not allowed in "strict" javascript.
-    STICKY: parseInt('01000', 8),
-    SETGID: parseInt('02000', 8),
-    SETUID: parseInt('04000', 8),
+"use strict";
 
-    TYPE_MASK: parseInt('0770000', 8),
-  };
-}({
-  EXEC: 1,
-  WRITE: 2,
-  READ: 4,
-}));
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.skipWhile = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function skipWhile(predicate) {
+    return lift_1.operate(function (source, subscriber) {
+        var taking = false;
+        var index = 0;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return (taking || (taking = !predicate(value, index++))) && subscriber.next(value); }));
+    });
+}
+exports.skipWhile = skipWhile;
+//# sourceMappingURL=skipWhile.js.map
 
-common.register('chmod', _chmod, {
-});
+/***/ }),
 
-//@
-//@ ### chmod([options,] octal_mode || octal_string, file)
-//@ ### chmod([options,] symbolic_mode, file)
-//@
-//@ Available options:
-//@
-//@ + `-v`: output a diagnostic for every file processed//@
-//@ + `-c`: like verbose, but report only when a change is made//@
-//@ + `-R`: change files and directories recursively//@
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ chmod(755, '/Users/brandon');
-//@ chmod('755', '/Users/brandon'); // same as above
-//@ chmod('u+x', '/Users/brandon');
-//@ chmod('-R', 'a-w', '/Users/brandon');
-//@ ```
-//@
-//@ Alters the permissions of a file or directory by either specifying the
-//@ absolute permissions in octal form or expressing the changes in symbols.
-//@ This command tries to mimic the POSIX behavior as much as possible.
-//@ Notable exceptions:
-//@
-//@ + In symbolic modes, `a-r` and `-r` are identical.  No consideration is
-//@   given to the `umask`.
-//@ + There is no "quiet" option, since default behavior is to run silent.
-function _chmod(options, mode, filePattern) {
-  if (!filePattern) {
-    if (options.length > 0 && options.charAt(0) === '-') {
-      // Special case where the specified file permissions started with - to subtract perms, which
-      // get picked up by the option parser as command flags.
-      // If we are down by one argument and options starts with -, shift everything over.
-      [].unshift.call(arguments, '');
-    } else {
-      common.error('You must specify a file.');
-    }
-  }
+/***/ 25471:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  options = common.parseOptions(options, {
-    'R': 'recursive',
-    'c': 'changes',
-    'v': 'verbose',
-  });
+"use strict";
 
-  filePattern = [].slice.call(arguments, 2);
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.startWith = void 0;
+var concat_1 = __nccwpck_require__(4675);
+var args_1 = __nccwpck_require__(34890);
+var lift_1 = __nccwpck_require__(38669);
+function startWith() {
+    var values = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        values[_i] = arguments[_i];
+    }
+    var scheduler = args_1.popScheduler(values);
+    return lift_1.operate(function (source, subscriber) {
+        (scheduler ? concat_1.concat(values, source, scheduler) : concat_1.concat(values, source)).subscribe(subscriber);
+    });
+}
+exports.startWith = startWith;
+//# sourceMappingURL=startWith.js.map
 
-  var files;
+/***/ }),
 
-  // TODO: replace this with a call to common.expand()
-  if (options.recursive) {
-    files = [];
-    filePattern.forEach(function addFile(expandedFile) {
-      var stat = common.statNoFollowLinks(expandedFile);
+/***/ 7224:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-      if (!stat.isSymbolicLink()) {
-        files.push(expandedFile);
+"use strict";
 
-        if (stat.isDirectory()) {  // intentionally does not follow symlinks.
-          fs.readdirSync(expandedFile).forEach(function (child) {
-            addFile(expandedFile + '/' + child);
-          });
-        }
-      }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.subscribeOn = void 0;
+var lift_1 = __nccwpck_require__(38669);
+function subscribeOn(scheduler, delay) {
+    if (delay === void 0) { delay = 0; }
+    return lift_1.operate(function (source, subscriber) {
+        subscriber.add(scheduler.schedule(function () { return source.subscribe(subscriber); }, delay));
     });
-  } else {
-    files = filePattern;
-  }
+}
+exports.subscribeOn = subscribeOn;
+//# sourceMappingURL=subscribeOn.js.map
 
-  files.forEach(function innerChmod(file) {
-    file = path.resolve(file);
-    if (!fs.existsSync(file)) {
-      common.error('File not found: ' + file);
-    }
+/***/ }),
 
-    // When recursing, don't follow symlinks.
-    if (options.recursive && common.statNoFollowLinks(file).isSymbolicLink()) {
-      return;
-    }
+/***/ 40327:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    var stat = common.statFollowLinks(file);
-    var isDir = stat.isDirectory();
-    var perms = stat.mode;
-    var type = perms & PERMS.TYPE_MASK;
+"use strict";
 
-    var newPerms = perms;
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.switchAll = void 0;
+var switchMap_1 = __nccwpck_require__(26704);
+var identity_1 = __nccwpck_require__(60283);
+function switchAll() {
+    return switchMap_1.switchMap(identity_1.identity);
+}
+exports.switchAll = switchAll;
+//# sourceMappingURL=switchAll.js.map
 
-    if (isNaN(parseInt(mode, 8))) {
-      // parse options
-      mode.split(',').forEach(function (symbolicMode) {
-        var pattern = /([ugoa]*)([=\+-])([rwxXst]*)/i;
-        var matches = pattern.exec(symbolicMode);
+/***/ }),
 
-        if (matches) {
-          var applyTo = matches[1];
-          var operator = matches[2];
-          var change = matches[3];
+/***/ 26704:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-          var changeOwner = applyTo.indexOf('u') !== -1 || applyTo === 'a' || applyTo === '';
-          var changeGroup = applyTo.indexOf('g') !== -1 || applyTo === 'a' || applyTo === '';
-          var changeOther = applyTo.indexOf('o') !== -1 || applyTo === 'a' || applyTo === '';
+"use strict";
 
-          var changeRead = change.indexOf('r') !== -1;
-          var changeWrite = change.indexOf('w') !== -1;
-          var changeExec = change.indexOf('x') !== -1;
-          var changeExecDir = change.indexOf('X') !== -1;
-          var changeSticky = change.indexOf('t') !== -1;
-          var changeSetuid = change.indexOf('s') !== -1;
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.switchMap = void 0;
+var innerFrom_1 = __nccwpck_require__(57105);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function switchMap(project, resultSelector) {
+    return lift_1.operate(function (source, subscriber) {
+        var innerSubscriber = null;
+        var index = 0;
+        var isComplete = false;
+        var checkComplete = function () { return isComplete && !innerSubscriber && subscriber.complete(); };
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();
+            var innerIndex = 0;
+            var outerIndex = index++;
+            innerFrom_1.innerFrom(project(value, outerIndex)).subscribe((innerSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (innerValue) { return subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue); }, function () {
+                innerSubscriber = null;
+                checkComplete();
+            })));
+        }, function () {
+            isComplete = true;
+            checkComplete();
+        }));
+    });
+}
+exports.switchMap = switchMap;
+//# sourceMappingURL=switchMap.js.map
 
-          if (changeExecDir && isDir) {
-            changeExec = true;
-          }
+/***/ }),
 
-          var mask = 0;
-          if (changeOwner) {
-            mask |= (changeRead ? PERMS.OWNER_READ : 0) + (changeWrite ? PERMS.OWNER_WRITE : 0) + (changeExec ? PERMS.OWNER_EXEC : 0) + (changeSetuid ? PERMS.SETUID : 0);
-          }
-          if (changeGroup) {
-            mask |= (changeRead ? PERMS.GROUP_READ : 0) + (changeWrite ? PERMS.GROUP_WRITE : 0) + (changeExec ? PERMS.GROUP_EXEC : 0) + (changeSetuid ? PERMS.SETGID : 0);
-          }
-          if (changeOther) {
-            mask |= (changeRead ? PERMS.OTHER_READ : 0) + (changeWrite ? PERMS.OTHER_WRITE : 0) + (changeExec ? PERMS.OTHER_EXEC : 0);
-          }
+/***/ 1713:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-          // Sticky bit is special - it's not tied to user, group or other.
-          if (changeSticky) {
-            mask |= PERMS.STICKY;
-          }
+"use strict";
 
-          switch (operator) {
-            case '+':
-              newPerms |= mask;
-              break;
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.switchMapTo = void 0;
+var switchMap_1 = __nccwpck_require__(26704);
+var isFunction_1 = __nccwpck_require__(67206);
+function switchMapTo(innerObservable, resultSelector) {
+    return isFunction_1.isFunction(resultSelector) ? switchMap_1.switchMap(function () { return innerObservable; }, resultSelector) : switchMap_1.switchMap(function () { return innerObservable; });
+}
+exports.switchMapTo = switchMapTo;
+//# sourceMappingURL=switchMapTo.js.map
 
-            case '-':
-              newPerms &= ~mask;
-              break;
+/***/ }),
 
-            case '=':
-              newPerms = type + mask;
+/***/ 13355:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-              // According to POSIX, when using = to explicitly set the
-              // permissions, setuid and setgid can never be cleared.
-              if (common.statFollowLinks(file).isDirectory()) {
-                newPerms |= (PERMS.SETUID + PERMS.SETGID) & perms;
-              }
-              break;
-            default:
-              common.error('Could not recognize operator: `' + operator + '`');
-          }
+"use strict";
 
-          if (options.verbose) {
-            console.log(file + ' -> ' + newPerms.toString(8));
-          }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.switchScan = void 0;
+var switchMap_1 = __nccwpck_require__(26704);
+var lift_1 = __nccwpck_require__(38669);
+function switchScan(accumulator, seed) {
+    return lift_1.operate(function (source, subscriber) {
+        var state = seed;
+        switchMap_1.switchMap(function (value, index) { return accumulator(state, value, index); }, function (_, innerValue) { return ((state = innerValue), innerValue); })(source).subscribe(subscriber);
+        return function () {
+            state = null;
+        };
+    });
+}
+exports.switchScan = switchScan;
+//# sourceMappingURL=switchScan.js.map
 
-          if (perms !== newPerms) {
-            if (!options.verbose && options.changes) {
-              console.log(file + ' -> ' + newPerms.toString(8));
-            }
-            fs.chmodSync(file, newPerms);
-            perms = newPerms; // for the next round of changes!
-          }
-        } else {
-          common.error('Invalid symbolic mode change: ' + symbolicMode);
-        }
-      });
-    } else {
-      // they gave us a full number
-      newPerms = type + parseInt(mode, 8);
+/***/ }),
 
-      // POSIX rules are that setuid and setgid can only be added using numeric
-      // form, but not cleared.
-      if (common.statFollowLinks(file).isDirectory()) {
-        newPerms |= (PERMS.SETUID + PERMS.SETGID) & perms;
-      }
+/***/ 33698:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-      fs.chmodSync(file, newPerms);
-    }
-  });
-  return '';
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.take = void 0;
+var empty_1 = __nccwpck_require__(70437);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function take(count) {
+    return count <= 0
+        ?
+            function () { return empty_1.EMPTY; }
+        : lift_1.operate(function (source, subscriber) {
+            var seen = 0;
+            source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+                if (++seen <= count) {
+                    subscriber.next(value);
+                    if (count <= seen) {
+                        subscriber.complete();
+                    }
+                }
+            }));
+        });
 }
-module.exports = _chmod;
+exports.take = take;
+//# sourceMappingURL=take.js.map
+
+/***/ }),
+
+/***/ 65041:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
 
+var __values = (this && this.__values) || function(o) {
+    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+    if (m) return m.call(o);
+    if (o && typeof o.length === "number") return {
+        next: function () {
+            if (o && i >= o.length) o = void 0;
+            return { value: o && o[i++], done: !o };
+        }
+    };
+    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.takeLast = void 0;
+var empty_1 = __nccwpck_require__(70437);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function takeLast(count) {
+    return count <= 0
+        ? function () { return empty_1.EMPTY; }
+        : lift_1.operate(function (source, subscriber) {
+            var buffer = [];
+            source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+                buffer.push(value);
+                count < buffer.length && buffer.shift();
+            }, function () {
+                var e_1, _a;
+                try {
+                    for (var buffer_1 = __values(buffer), buffer_1_1 = buffer_1.next(); !buffer_1_1.done; buffer_1_1 = buffer_1.next()) {
+                        var value = buffer_1_1.value;
+                        subscriber.next(value);
+                    }
+                }
+                catch (e_1_1) { e_1 = { error: e_1_1 }; }
+                finally {
+                    try {
+                        if (buffer_1_1 && !buffer_1_1.done && (_a = buffer_1.return)) _a.call(buffer_1);
+                    }
+                    finally { if (e_1) throw e_1.error; }
+                }
+                subscriber.complete();
+            }, undefined, function () {
+                buffer = null;
+            }));
+        });
+}
+exports.takeLast = takeLast;
+//# sourceMappingURL=takeLast.js.map
 
 /***/ }),
 
-/***/ 53687:
+/***/ 55150:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
-// Ignore warning about 'new String()'
-/* eslint no-new-wrappers: 0 */
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.takeUntil = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var innerFrom_1 = __nccwpck_require__(57105);
+var noop_1 = __nccwpck_require__(11642);
+function takeUntil(notifier) {
+    return lift_1.operate(function (source, subscriber) {
+        innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { return subscriber.complete(); }, noop_1.noop));
+        !subscriber.closed && source.subscribe(subscriber);
+    });
+}
+exports.takeUntil = takeUntil;
+//# sourceMappingURL=takeUntil.js.map
 
-var os = __nccwpck_require__(22037);
-var fs = __nccwpck_require__(57147);
-var glob = __nccwpck_require__(91957);
-var shell = __nccwpck_require__(33516);
+/***/ }),
 
-var shellMethods = Object.create(shell);
+/***/ 76700:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-exports.extend = Object.assign;
+"use strict";
 
-// Check if we're running under electron
-var isElectron = Boolean(process.versions.electron);
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.takeWhile = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function takeWhile(predicate, inclusive) {
+    if (inclusive === void 0) { inclusive = false; }
+    return lift_1.operate(function (source, subscriber) {
+        var index = 0;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            var result = predicate(value, index++);
+            (result || inclusive) && subscriber.next(value);
+            !result && subscriber.complete();
+        }));
+    });
+}
+exports.takeWhile = takeWhile;
+//# sourceMappingURL=takeWhile.js.map
 
-// Module globals (assume no execPath by default)
-var DEFAULT_CONFIG = {
-  fatal: false,
-  globOptions: {},
-  maxdepth: 255,
-  noglob: false,
-  silent: false,
-  verbose: false,
-  execPath: null,
-  bufLength: 64 * 1024, // 64KB
-};
+/***/ }),
 
-var config = {
-  reset: function () {
-    Object.assign(this, DEFAULT_CONFIG);
-    if (!isElectron) {
-      this.execPath = process.execPath;
-    }
-  },
-  resetForTesting: function () {
-    this.reset();
-    this.silent = true;
-  },
-};
+/***/ 48845:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-config.reset();
-exports.config = config;
+"use strict";
 
-// Note: commands should generally consider these as read-only values.
-var state = {
-  error: null,
-  errorCode: 0,
-  currentCmd: 'shell.js',
-};
-exports.state = state;
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.tap = void 0;
+var isFunction_1 = __nccwpck_require__(67206);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var identity_1 = __nccwpck_require__(60283);
+function tap(observerOrNext, error, complete) {
+    var tapObserver = isFunction_1.isFunction(observerOrNext) || error || complete
+        ?
+            { next: observerOrNext, error: error, complete: complete }
+        : observerOrNext;
+    return tapObserver
+        ? lift_1.operate(function (source, subscriber) {
+            var _a;
+            (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
+            var isUnsub = true;
+            source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+                var _a;
+                (_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value);
+                subscriber.next(value);
+            }, function () {
+                var _a;
+                isUnsub = false;
+                (_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
+                subscriber.complete();
+            }, function (err) {
+                var _a;
+                isUnsub = false;
+                (_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err);
+                subscriber.error(err);
+            }, function () {
+                var _a, _b;
+                if (isUnsub) {
+                    (_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
+                }
+                (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);
+            }));
+        })
+        :
+            identity_1.identity;
+}
+exports.tap = tap;
+//# sourceMappingURL=tap.js.map
 
-delete process.env.OLDPWD; // initially, there's no previous directory
+/***/ }),
 
-// Reliably test if something is any sort of javascript object
-function isObject(a) {
-  return typeof a === 'object' && a !== null;
-}
-exports.isObject = isObject;
+/***/ 36713:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-function log() {
-  /* istanbul ignore next */
-  if (!config.silent) {
-    console.error.apply(console, arguments);
-  }
-}
-exports.log = log;
+"use strict";
 
-// Converts strings to be equivalent across all platforms. Primarily responsible
-// for making sure we use '/' instead of '\' as path separators, but this may be
-// expanded in the future if necessary
-function convertErrorOutput(msg) {
-  if (typeof msg !== 'string') {
-    throw new TypeError('input must be a string');
-  }
-  return msg.replace(/\\/g, '/');
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.throttle = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var innerFrom_1 = __nccwpck_require__(57105);
+function throttle(durationSelector, config) {
+    return lift_1.operate(function (source, subscriber) {
+        var _a = config !== null && config !== void 0 ? config : {}, _b = _a.leading, leading = _b === void 0 ? true : _b, _c = _a.trailing, trailing = _c === void 0 ? false : _c;
+        var hasValue = false;
+        var sendValue = null;
+        var throttled = null;
+        var isComplete = false;
+        var endThrottling = function () {
+            throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe();
+            throttled = null;
+            if (trailing) {
+                send();
+                isComplete && subscriber.complete();
+            }
+        };
+        var cleanupThrottling = function () {
+            throttled = null;
+            isComplete && subscriber.complete();
+        };
+        var startThrottle = function (value) {
+            return (throttled = innerFrom_1.innerFrom(durationSelector(value)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling)));
+        };
+        var send = function () {
+            if (hasValue) {
+                hasValue = false;
+                var value = sendValue;
+                sendValue = null;
+                subscriber.next(value);
+                !isComplete && startThrottle(value);
+            }
+        };
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            hasValue = true;
+            sendValue = value;
+            !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));
+        }, function () {
+            isComplete = true;
+            !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();
+        }));
+    });
 }
-exports.convertErrorOutput = convertErrorOutput;
+exports.throttle = throttle;
+//# sourceMappingURL=throttle.js.map
 
-// Shows error message. Throws if config.fatal is true
-function error(msg, _code, options) {
-  // Validate input
-  if (typeof msg !== 'string') throw new Error('msg must be a string');
+/***/ }),
 
-  var DEFAULT_OPTIONS = {
-    continue: false,
-    code: 1,
-    prefix: state.currentCmd + ': ',
-    silent: false,
-  };
+/***/ 83435:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  if (typeof _code === 'number' && isObject(options)) {
-    options.code = _code;
-  } else if (isObject(_code)) { // no 'code'
-    options = _code;
-  } else if (typeof _code === 'number') { // no 'options'
-    options = { code: _code };
-  } else if (typeof _code !== 'number') { // only 'msg'
-    options = {};
-  }
-  options = Object.assign({}, DEFAULT_OPTIONS, options);
+"use strict";
 
-  if (!state.errorCode) state.errorCode = options.code;
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.throttleTime = void 0;
+var async_1 = __nccwpck_require__(76072);
+var throttle_1 = __nccwpck_require__(36713);
+var timer_1 = __nccwpck_require__(59757);
+function throttleTime(duration, scheduler, config) {
+    if (scheduler === void 0) { scheduler = async_1.asyncScheduler; }
+    var duration$ = timer_1.timer(duration, scheduler);
+    return throttle_1.throttle(function () { return duration$; }, config);
+}
+exports.throttleTime = throttleTime;
+//# sourceMappingURL=throttleTime.js.map
 
-  var logEntry = convertErrorOutput(options.prefix + msg);
-  state.error = state.error ? state.error + '\n' : '';
-  state.error += logEntry;
+/***/ }),
 
-  // Throw an error, or log the entry
-  if (config.fatal) throw new Error(logEntry);
-  if (msg.length > 0 && !options.silent) log(logEntry);
+/***/ 91566:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  if (!options.continue) {
-    throw {
-      msg: 'earlyExit',
-      retValue: (new ShellString('', state.error, state.errorCode)),
-    };
-  }
-}
-exports.error = error;
+"use strict";
 
-//@
-//@ ### ShellString(str)
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ var foo = ShellString('hello world');
-//@ ```
-//@
-//@ Turns a regular string into a string-like object similar to what each
-//@ command returns. This has special methods, like `.to()` and `.toEnd()`.
-function ShellString(stdout, stderr, code) {
-  var that;
-  if (stdout instanceof Array) {
-    that = stdout;
-    that.stdout = stdout.join('\n');
-    if (stdout.length > 0) that.stdout += '\n';
-  } else {
-    that = new String(stdout);
-    that.stdout = stdout;
-  }
-  that.stderr = stderr;
-  that.code = code;
-  // A list of all commands that can appear on the right-hand side of a pipe
-  // (populated by calls to common.wrap())
-  pipeMethods.forEach(function (cmd) {
-    that[cmd] = shellMethods[cmd].bind(that);
-  });
-  return that;
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.throwIfEmpty = void 0;
+var EmptyError_1 = __nccwpck_require__(99391);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function throwIfEmpty(errorFactory) {
+    if (errorFactory === void 0) { errorFactory = defaultErrorFactory; }
+    return lift_1.operate(function (source, subscriber) {
+        var hasValue = false;
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            hasValue = true;
+            subscriber.next(value);
+        }, function () { return (hasValue ? subscriber.complete() : subscriber.error(errorFactory())); }));
+    });
+}
+exports.throwIfEmpty = throwIfEmpty;
+function defaultErrorFactory() {
+    return new EmptyError_1.EmptyError();
 }
+//# sourceMappingURL=throwIfEmpty.js.map
 
-exports.ShellString = ShellString;
+/***/ }),
 
-// Returns {'alice': true, 'bob': false} when passed a string and dictionary as follows:
-//   parseOptions('-a', {'a':'alice', 'b':'bob'});
-// Returns {'reference': 'string-value', 'bob': false} when passed two dictionaries of the form:
-//   parseOptions({'-r': 'string-value'}, {'r':'reference', 'b':'bob'});
-// Throws an error when passed a string that does not start with '-':
-//   parseOptions('a', {'a':'alice'}); // throws
-function parseOptions(opt, map, errorOptions) {
-  // Validate input
-  if (typeof opt !== 'string' && !isObject(opt)) {
-    throw new Error('options must be strings or key-value pairs');
-  } else if (!isObject(map)) {
-    throw new Error('parseOptions() internal error: map must be an object');
-  } else if (errorOptions && !isObject(errorOptions)) {
-    throw new Error('parseOptions() internal error: errorOptions must be object');
-  }
+/***/ 14643:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  if (opt === '--') {
-    // This means there are no options.
-    return {};
-  }
+"use strict";
 
-  // All options are false by default
-  var options = {};
-  Object.keys(map).forEach(function (letter) {
-    var optName = map[letter];
-    if (optName[0] !== '!') {
-      options[optName] = false;
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.TimeInterval = exports.timeInterval = void 0;
+var async_1 = __nccwpck_require__(76072);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function timeInterval(scheduler) {
+    if (scheduler === void 0) { scheduler = async_1.asyncScheduler; }
+    return lift_1.operate(function (source, subscriber) {
+        var last = scheduler.now();
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            var now = scheduler.now();
+            var interval = now - last;
+            last = now;
+            subscriber.next(new TimeInterval(value, interval));
+        }));
+    });
+}
+exports.timeInterval = timeInterval;
+var TimeInterval = (function () {
+    function TimeInterval(value, interval) {
+        this.value = value;
+        this.interval = interval;
     }
-  });
+    return TimeInterval;
+}());
+exports.TimeInterval = TimeInterval;
+//# sourceMappingURL=timeInterval.js.map
 
-  if (opt === '') return options; // defaults
+/***/ }),
 
-  if (typeof opt === 'string') {
-    if (opt[0] !== '-') {
-      throw new Error("Options string must start with a '-'");
-    }
+/***/ 12051:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    // e.g. chars = ['R', 'f']
-    var chars = opt.slice(1).split('');
+"use strict";
 
-    chars.forEach(function (c) {
-      if (c in map) {
-        var optionName = map[c];
-        if (optionName[0] === '!') {
-          options[optionName.slice(1)] = false;
-        } else {
-          options[optionName] = true;
-        }
-      } else {
-        error('option not recognized: ' + c, errorOptions || {});
-      }
-    });
-  } else { // opt is an Object
-    Object.keys(opt).forEach(function (key) {
-      // key is a string of the form '-r', '-d', etc.
-      var c = key[1];
-      if (c in map) {
-        var optionName = map[c];
-        options[optionName] = opt[key]; // assign the given value
-      } else {
-        error('option not recognized: ' + c, errorOptions || {});
-      }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.timeout = exports.TimeoutError = void 0;
+var async_1 = __nccwpck_require__(76072);
+var isDate_1 = __nccwpck_require__(60935);
+var lift_1 = __nccwpck_require__(38669);
+var innerFrom_1 = __nccwpck_require__(57105);
+var createErrorClass_1 = __nccwpck_require__(8858);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var executeSchedule_1 = __nccwpck_require__(82877);
+exports.TimeoutError = createErrorClass_1.createErrorClass(function (_super) {
+    return function TimeoutErrorImpl(info) {
+        if (info === void 0) { info = null; }
+        _super(this);
+        this.message = 'Timeout has occurred';
+        this.name = 'TimeoutError';
+        this.info = info;
+    };
+});
+function timeout(config, schedulerArg) {
+    var _a = (isDate_1.isValidDate(config) ? { first: config } : typeof config === 'number' ? { each: config } : config), first = _a.first, each = _a.each, _b = _a.with, _with = _b === void 0 ? timeoutErrorFactory : _b, _c = _a.scheduler, scheduler = _c === void 0 ? schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : async_1.asyncScheduler : _c, _d = _a.meta, meta = _d === void 0 ? null : _d;
+    if (first == null && each == null) {
+        throw new TypeError('No timeout provided.');
+    }
+    return lift_1.operate(function (source, subscriber) {
+        var originalSourceSubscription;
+        var timerSubscription;
+        var lastValue = null;
+        var seen = 0;
+        var startTimer = function (delay) {
+            timerSubscription = executeSchedule_1.executeSchedule(subscriber, scheduler, function () {
+                try {
+                    originalSourceSubscription.unsubscribe();
+                    innerFrom_1.innerFrom(_with({
+                        meta: meta,
+                        lastValue: lastValue,
+                        seen: seen,
+                    })).subscribe(subscriber);
+                }
+                catch (err) {
+                    subscriber.error(err);
+                }
+            }, delay);
+        };
+        originalSourceSubscription = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe();
+            seen++;
+            subscriber.next((lastValue = value));
+            each > 0 && startTimer(each);
+        }, undefined, undefined, function () {
+            if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) {
+                timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe();
+            }
+            lastValue = null;
+        }));
+        !seen && startTimer(first != null ? (typeof first === 'number' ? first : +first - scheduler.now()) : each);
     });
-  }
-  return options;
 }
-exports.parseOptions = parseOptions;
-
-// Expands wildcards with matching (ie. existing) file names.
-// For example:
-//   expand(['file*.js']) = ['file1.js', 'file2.js', ...]
-//   (if the files 'file1.js', 'file2.js', etc, exist in the current dir)
-function expand(list) {
-  if (!Array.isArray(list)) {
-    throw new TypeError('must be an array');
-  }
-  var expanded = [];
-  list.forEach(function (listEl) {
-    // Don't expand non-strings
-    if (typeof listEl !== 'string') {
-      expanded.push(listEl);
-    } else {
-      var ret;
-      try {
-        ret = glob.sync(listEl, config.globOptions);
-        // if nothing matched, interpret the string literally
-        ret = ret.length > 0 ? ret : [listEl];
-      } catch (e) {
-        // if glob fails, interpret the string literally
-        ret = [listEl];
-      }
-      expanded = expanded.concat(ret);
-    }
-  });
-  return expanded;
+exports.timeout = timeout;
+function timeoutErrorFactory(info) {
+    throw new exports.TimeoutError(info);
 }
-exports.expand = expand;
+//# sourceMappingURL=timeout.js.map
 
-// Normalizes Buffer creation, using Buffer.alloc if possible.
-// Also provides a good default buffer length for most use cases.
-var buffer = typeof Buffer.alloc === 'function' ?
-  function (len) {
-    return Buffer.alloc(len || config.bufLength);
-  } :
-  function (len) {
-    return new Buffer(len || config.bufLength);
-  };
-exports.buffer = buffer;
+/***/ }),
 
-// Normalizes _unlinkSync() across platforms to match Unix behavior, i.e.
-// file can be unlinked even if it's read-only, see https://github.com/joyent/node/issues/3006
-function unlinkSync(file) {
-  try {
-    fs.unlinkSync(file);
-  } catch (e) {
-    // Try to override file permission
-    /* istanbul ignore next */
-    if (e.code === 'EPERM') {
-      fs.chmodSync(file, '0666');
-      fs.unlinkSync(file);
-    } else {
-      throw e;
+/***/ 43540:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.timeoutWith = void 0;
+var async_1 = __nccwpck_require__(76072);
+var isDate_1 = __nccwpck_require__(60935);
+var timeout_1 = __nccwpck_require__(12051);
+function timeoutWith(due, withObservable, scheduler) {
+    var first;
+    var each;
+    var _with;
+    scheduler = scheduler !== null && scheduler !== void 0 ? scheduler : async_1.async;
+    if (isDate_1.isValidDate(due)) {
+        first = due;
+    }
+    else if (typeof due === 'number') {
+        each = due;
+    }
+    if (withObservable) {
+        _with = function () { return withObservable; };
     }
-  }
+    else {
+        throw new TypeError('No observable provided to switch to');
+    }
+    if (first == null && each == null) {
+        throw new TypeError('No timeout provided.');
+    }
+    return timeout_1.timeout({
+        first: first,
+        each: each,
+        scheduler: scheduler,
+        with: _with,
+    });
 }
-exports.unlinkSync = unlinkSync;
+exports.timeoutWith = timeoutWith;
+//# sourceMappingURL=timeoutWith.js.map
 
-// wrappers around common.statFollowLinks and common.statNoFollowLinks that clarify intent
-// and improve readability
-function statFollowLinks() {
-  return fs.statSync.apply(fs, arguments);
-}
-exports.statFollowLinks = statFollowLinks;
+/***/ }),
 
-function statNoFollowLinks() {
-  return fs.lstatSync.apply(fs, arguments);
+/***/ 75518:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.timestamp = void 0;
+var dateTimestampProvider_1 = __nccwpck_require__(91395);
+var map_1 = __nccwpck_require__(5987);
+function timestamp(timestampProvider) {
+    if (timestampProvider === void 0) { timestampProvider = dateTimestampProvider_1.dateTimestampProvider; }
+    return map_1.map(function (value) { return ({ value: value, timestamp: timestampProvider.now() }); });
 }
-exports.statNoFollowLinks = statNoFollowLinks;
+exports.timestamp = timestamp;
+//# sourceMappingURL=timestamp.js.map
 
-// e.g. 'shelljs_a5f185d0443ca...'
-function randomFileName() {
-  function randomHash(count) {
-    if (count === 1) {
-      return parseInt(16 * Math.random(), 10).toString(16);
-    }
-    var hash = '';
-    for (var i = 0; i < count; i++) {
-      hash += randomHash(1);
-    }
-    return hash;
-  }
+/***/ }),
 
-  return 'shelljs_' + randomHash(20);
+/***/ 35114:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.toArray = void 0;
+var reduce_1 = __nccwpck_require__(62087);
+var lift_1 = __nccwpck_require__(38669);
+var arrReducer = function (arr, value) { return (arr.push(value), arr); };
+function toArray() {
+    return lift_1.operate(function (source, subscriber) {
+        reduce_1.reduce(arrReducer, [])(source).subscribe(subscriber);
+    });
 }
-exports.randomFileName = randomFileName;
+exports.toArray = toArray;
+//# sourceMappingURL=toArray.js.map
 
-// Common wrapper for all Unix-like commands that performs glob expansion,
-// command-logging, and other nice things
-function wrap(cmd, fn, options) {
-  options = options || {};
-  return function () {
-    var retValue = null;
+/***/ }),
 
-    state.currentCmd = cmd;
-    state.error = null;
-    state.errorCode = 0;
+/***/ 98255:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    try {
-      var args = [].slice.call(arguments, 0);
+"use strict";
 
-      // Log the command to stderr, if appropriate
-      if (config.verbose) {
-        console.error.apply(console, [cmd].concat(args));
-      }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.window = void 0;
+var Subject_1 = __nccwpck_require__(49944);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var noop_1 = __nccwpck_require__(11642);
+var innerFrom_1 = __nccwpck_require__(57105);
+function window(windowBoundaries) {
+    return lift_1.operate(function (source, subscriber) {
+        var windowSubject = new Subject_1.Subject();
+        subscriber.next(windowSubject.asObservable());
+        var errorHandler = function (err) {
+            windowSubject.error(err);
+            subscriber.error(err);
+        };
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.next(value); }, function () {
+            windowSubject.complete();
+            subscriber.complete();
+        }, errorHandler));
+        innerFrom_1.innerFrom(windowBoundaries).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () {
+            windowSubject.complete();
+            subscriber.next((windowSubject = new Subject_1.Subject()));
+        }, noop_1.noop, errorHandler));
+        return function () {
+            windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.unsubscribe();
+            windowSubject = null;
+        };
+    });
+}
+exports.window = window;
+//# sourceMappingURL=window.js.map
 
-      // If this is coming from a pipe, let's set the pipedValue (otherwise, set
-      // it to the empty string)
-      state.pipedValue = (this && typeof this.stdout === 'string') ? this.stdout : '';
+/***/ }),
 
-      if (options.unix === false) { // this branch is for exec()
-        retValue = fn.apply(this, args);
-      } else { // and this branch is for everything else
-        if (isObject(args[0]) && args[0].constructor.name === 'Object') {
-          // a no-op, allowing the syntax `touch({'-r': file}, ...)`
-        } else if (args.length === 0 || typeof args[0] !== 'string' || args[0].length <= 1 || args[0][0] !== '-') {
-          args.unshift(''); // only add dummy option if '-option' not already present
+/***/ 73144:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __values = (this && this.__values) || function(o) {
+    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+    if (m) return m.call(o);
+    if (o && typeof o.length === "number") return {
+        next: function () {
+            if (o && i >= o.length) o = void 0;
+            return { value: o && o[i++], done: !o };
         }
+    };
+    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.windowCount = void 0;
+var Subject_1 = __nccwpck_require__(49944);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+function windowCount(windowSize, startWindowEvery) {
+    if (startWindowEvery === void 0) { startWindowEvery = 0; }
+    var startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize;
+    return lift_1.operate(function (source, subscriber) {
+        var windows = [new Subject_1.Subject()];
+        var starts = [];
+        var count = 0;
+        subscriber.next(windows[0].asObservable());
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            var e_1, _a;
+            try {
+                for (var windows_1 = __values(windows), windows_1_1 = windows_1.next(); !windows_1_1.done; windows_1_1 = windows_1.next()) {
+                    var window_1 = windows_1_1.value;
+                    window_1.next(value);
+                }
+            }
+            catch (e_1_1) { e_1 = { error: e_1_1 }; }
+            finally {
+                try {
+                    if (windows_1_1 && !windows_1_1.done && (_a = windows_1.return)) _a.call(windows_1);
+                }
+                finally { if (e_1) throw e_1.error; }
+            }
+            var c = count - windowSize + 1;
+            if (c >= 0 && c % startEvery === 0) {
+                windows.shift().complete();
+            }
+            if (++count % startEvery === 0) {
+                var window_2 = new Subject_1.Subject();
+                windows.push(window_2);
+                subscriber.next(window_2.asObservable());
+            }
+        }, function () {
+            while (windows.length > 0) {
+                windows.shift().complete();
+            }
+            subscriber.complete();
+        }, function (err) {
+            while (windows.length > 0) {
+                windows.shift().error(err);
+            }
+            subscriber.error(err);
+        }, function () {
+            starts = null;
+            windows = null;
+        }));
+    });
+}
+exports.windowCount = windowCount;
+//# sourceMappingURL=windowCount.js.map
 
-        // flatten out arrays that are arguments, to make the syntax:
-        //    `cp([file1, file2, file3], dest);`
-        // equivalent to:
-        //    `cp(file1, file2, file3, dest);`
-        args = args.reduce(function (accum, cur) {
-          if (Array.isArray(cur)) {
-            return accum.concat(cur);
-          }
-          accum.push(cur);
-          return accum;
-        }, []);
+/***/ }),
 
-        // Convert ShellStrings (basically just String objects) to regular strings
-        args = args.map(function (arg) {
-          if (isObject(arg) && arg.constructor.name === 'String') {
-            return arg.toString();
-          }
-          return arg;
-        });
+/***/ 2738:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-        // Expand the '~' if appropriate
-        var homeDir = os.homedir();
-        args = args.map(function (arg) {
-          if (typeof arg === 'string' && arg.slice(0, 2) === '~/' || arg === '~') {
-            return arg.replace(/^~/, homeDir);
-          }
-          return arg;
-        });
+"use strict";
 
-        // Perform glob-expansion on all arguments after globStart, but preserve
-        // the arguments before it (like regexes for sed and grep)
-        if (!config.noglob && options.allowGlobbing === true) {
-          args = args.slice(0, options.globStart).concat(expand(args.slice(options.globStart)));
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.windowTime = void 0;
+var Subject_1 = __nccwpck_require__(49944);
+var async_1 = __nccwpck_require__(76072);
+var Subscription_1 = __nccwpck_require__(79548);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var arrRemove_1 = __nccwpck_require__(68499);
+var args_1 = __nccwpck_require__(34890);
+var executeSchedule_1 = __nccwpck_require__(82877);
+function windowTime(windowTimeSpan) {
+    var _a, _b;
+    var otherArgs = [];
+    for (var _i = 1; _i < arguments.length; _i++) {
+        otherArgs[_i - 1] = arguments[_i];
+    }
+    var scheduler = (_a = args_1.popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : async_1.asyncScheduler;
+    var windowCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
+    var maxWindowSize = otherArgs[1] || Infinity;
+    return lift_1.operate(function (source, subscriber) {
+        var windowRecords = [];
+        var restartOnClose = false;
+        var closeWindow = function (record) {
+            var window = record.window, subs = record.subs;
+            window.complete();
+            subs.unsubscribe();
+            arrRemove_1.arrRemove(windowRecords, record);
+            restartOnClose && startWindow();
+        };
+        var startWindow = function () {
+            if (windowRecords) {
+                var subs = new Subscription_1.Subscription();
+                subscriber.add(subs);
+                var window_1 = new Subject_1.Subject();
+                var record_1 = {
+                    window: window_1,
+                    subs: subs,
+                    seen: 0,
+                };
+                windowRecords.push(record_1);
+                subscriber.next(window_1.asObservable());
+                executeSchedule_1.executeSchedule(subs, scheduler, function () { return closeWindow(record_1); }, windowTimeSpan);
+            }
+        };
+        if (windowCreationInterval !== null && windowCreationInterval >= 0) {
+            executeSchedule_1.executeSchedule(subscriber, scheduler, startWindow, windowCreationInterval, true);
         }
+        else {
+            restartOnClose = true;
+        }
+        startWindow();
+        var loop = function (cb) { return windowRecords.slice().forEach(cb); };
+        var terminate = function (cb) {
+            loop(function (_a) {
+                var window = _a.window;
+                return cb(window);
+            });
+            cb(subscriber);
+            subscriber.unsubscribe();
+        };
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            loop(function (record) {
+                record.window.next(value);
+                maxWindowSize <= ++record.seen && closeWindow(record);
+            });
+        }, function () { return terminate(function (consumer) { return consumer.complete(); }); }, function (err) { return terminate(function (consumer) { return consumer.error(err); }); }));
+        return function () {
+            windowRecords = null;
+        };
+    });
+}
+exports.windowTime = windowTime;
+//# sourceMappingURL=windowTime.js.map
 
-        try {
-          // parse options if options are provided
-          if (isObject(options.cmdOptions)) {
-            args[0] = parseOptions(args[0], options.cmdOptions);
-          }
+/***/ }),
 
-          retValue = fn.apply(this, args);
-        } catch (e) {
-          /* istanbul ignore else */
-          if (e.msg === 'earlyExit') {
-            retValue = e.retValue;
-          } else {
-            throw e; // this is probably a bug that should be thrown up the call stack
-          }
+/***/ 52741:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __values = (this && this.__values) || function(o) {
+    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+    if (m) return m.call(o);
+    if (o && typeof o.length === "number") return {
+        next: function () {
+            if (o && i >= o.length) o = void 0;
+            return { value: o && o[i++], done: !o };
         }
-      }
-    } catch (e) {
-      /* istanbul ignore next */
-      if (!state.error) {
-        // If state.error hasn't been set it's an error thrown by Node, not us - probably a bug...
-        e.name = 'ShellJSInternalError';
-        throw e;
-      }
-      if (config.fatal) throw e;
-    }
+    };
+    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.windowToggle = void 0;
+var Subject_1 = __nccwpck_require__(49944);
+var Subscription_1 = __nccwpck_require__(79548);
+var lift_1 = __nccwpck_require__(38669);
+var innerFrom_1 = __nccwpck_require__(57105);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var noop_1 = __nccwpck_require__(11642);
+var arrRemove_1 = __nccwpck_require__(68499);
+function windowToggle(openings, closingSelector) {
+    return lift_1.operate(function (source, subscriber) {
+        var windows = [];
+        var handleError = function (err) {
+            while (0 < windows.length) {
+                windows.shift().error(err);
+            }
+            subscriber.error(err);
+        };
+        innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (openValue) {
+            var window = new Subject_1.Subject();
+            windows.push(window);
+            var closingSubscription = new Subscription_1.Subscription();
+            var closeWindow = function () {
+                arrRemove_1.arrRemove(windows, window);
+                window.complete();
+                closingSubscription.unsubscribe();
+            };
+            var closingNotifier;
+            try {
+                closingNotifier = innerFrom_1.innerFrom(closingSelector(openValue));
+            }
+            catch (err) {
+                handleError(err);
+                return;
+            }
+            subscriber.next(window.asObservable());
+            closingSubscription.add(closingNotifier.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, closeWindow, noop_1.noop, handleError)));
+        }, noop_1.noop));
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            var e_1, _a;
+            var windowsCopy = windows.slice();
+            try {
+                for (var windowsCopy_1 = __values(windowsCopy), windowsCopy_1_1 = windowsCopy_1.next(); !windowsCopy_1_1.done; windowsCopy_1_1 = windowsCopy_1.next()) {
+                    var window_1 = windowsCopy_1_1.value;
+                    window_1.next(value);
+                }
+            }
+            catch (e_1_1) { e_1 = { error: e_1_1 }; }
+            finally {
+                try {
+                    if (windowsCopy_1_1 && !windowsCopy_1_1.done && (_a = windowsCopy_1.return)) _a.call(windowsCopy_1);
+                }
+                finally { if (e_1) throw e_1.error; }
+            }
+        }, function () {
+            while (0 < windows.length) {
+                windows.shift().complete();
+            }
+            subscriber.complete();
+        }, handleError, function () {
+            while (0 < windows.length) {
+                windows.shift().unsubscribe();
+            }
+        }));
+    });
+}
+exports.windowToggle = windowToggle;
+//# sourceMappingURL=windowToggle.js.map
 
-    if (options.wrapOutput &&
-        (typeof retValue === 'string' || Array.isArray(retValue))) {
-      retValue = new ShellString(retValue, state.error, state.errorCode);
-    }
+/***/ }),
 
-    state.currentCmd = 'shell.js';
-    return retValue;
-  };
-} // wrap
-exports.wrap = wrap;
+/***/ 82645:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-// This returns all the input that is piped into the current command (or the
-// empty string, if this isn't on the right-hand side of a pipe
-function _readFromPipe() {
-  return state.pipedValue;
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.windowWhen = void 0;
+var Subject_1 = __nccwpck_require__(49944);
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var innerFrom_1 = __nccwpck_require__(57105);
+function windowWhen(closingSelector) {
+    return lift_1.operate(function (source, subscriber) {
+        var window;
+        var closingSubscriber;
+        var handleError = function (err) {
+            window.error(err);
+            subscriber.error(err);
+        };
+        var openWindow = function () {
+            closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();
+            window === null || window === void 0 ? void 0 : window.complete();
+            window = new Subject_1.Subject();
+            subscriber.next(window.asObservable());
+            var closingNotifier;
+            try {
+                closingNotifier = innerFrom_1.innerFrom(closingSelector());
+            }
+            catch (err) {
+                handleError(err);
+                return;
+            }
+            closingNotifier.subscribe((closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openWindow, openWindow, handleError)));
+        };
+        openWindow();
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return window.next(value); }, function () {
+            window.complete();
+            subscriber.complete();
+        }, handleError, function () {
+            closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();
+            window = null;
+        }));
+    });
 }
-exports.readFromPipe = _readFromPipe;
+exports.windowWhen = windowWhen;
+//# sourceMappingURL=windowWhen.js.map
 
-var DEFAULT_WRAP_OPTIONS = {
-  allowGlobbing: true,
-  canReceivePipe: false,
-  cmdOptions: null,
-  globStart: 1,
-  pipeOnly: false,
-  wrapOutput: true,
-  unix: true,
-};
+/***/ }),
 
-// This is populated during plugin registration
-var pipeMethods = [];
+/***/ 20501:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-// Register a new ShellJS command
-function _register(name, implementation, wrapOptions) {
-  wrapOptions = wrapOptions || {};
+"use strict";
 
-  // Validate options
-  Object.keys(wrapOptions).forEach(function (option) {
-    if (!DEFAULT_WRAP_OPTIONS.hasOwnProperty(option)) {
-      throw new Error("Unknown option '" + option + "'");
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
     }
-    if (typeof wrapOptions[option] !== typeof DEFAULT_WRAP_OPTIONS[option]) {
-      throw new TypeError("Unsupported type '" + typeof wrapOptions[option] +
-        "' for option '" + option + "'");
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
     }
-  });
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.withLatestFrom = void 0;
+var lift_1 = __nccwpck_require__(38669);
+var OperatorSubscriber_1 = __nccwpck_require__(69549);
+var innerFrom_1 = __nccwpck_require__(57105);
+var identity_1 = __nccwpck_require__(60283);
+var noop_1 = __nccwpck_require__(11642);
+var args_1 = __nccwpck_require__(34890);
+function withLatestFrom() {
+    var inputs = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        inputs[_i] = arguments[_i];
+    }
+    var project = args_1.popResultSelector(inputs);
+    return lift_1.operate(function (source, subscriber) {
+        var len = inputs.length;
+        var otherValues = new Array(len);
+        var hasValue = inputs.map(function () { return false; });
+        var ready = false;
+        var _loop_1 = function (i) {
+            innerFrom_1.innerFrom(inputs[i]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+                otherValues[i] = value;
+                if (!ready && !hasValue[i]) {
+                    hasValue[i] = true;
+                    (ready = hasValue.every(identity_1.identity)) && (hasValue = null);
+                }
+            }, noop_1.noop));
+        };
+        for (var i = 0; i < len; i++) {
+            _loop_1(i);
+        }
+        source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
+            if (ready) {
+                var values = __spreadArray([value], __read(otherValues));
+                subscriber.next(project ? project.apply(void 0, __spreadArray([], __read(values))) : values);
+            }
+        }));
+    });
+}
+exports.withLatestFrom = withLatestFrom;
+//# sourceMappingURL=withLatestFrom.js.map
 
-  // If an option isn't specified, use the default
-  wrapOptions = Object.assign({}, DEFAULT_WRAP_OPTIONS, wrapOptions);
+/***/ }),
 
-  if (shell.hasOwnProperty(name)) {
-    throw new Error('Command `' + name + '` already exists');
-  }
+/***/ 17600:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-  if (wrapOptions.pipeOnly) {
-    wrapOptions.canReceivePipe = true;
-    shellMethods[name] = wrap(name, implementation, wrapOptions);
-  } else {
-    shell[name] = wrap(name, implementation, wrapOptions);
-  }
+"use strict";
 
-  if (wrapOptions.canReceivePipe) {
-    pipeMethods.push(name);
-  }
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.zip = void 0;
+var zip_1 = __nccwpck_require__(62504);
+var lift_1 = __nccwpck_require__(38669);
+function zip() {
+    var sources = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        sources[_i] = arguments[_i];
+    }
+    return lift_1.operate(function (source, subscriber) {
+        zip_1.zip.apply(void 0, __spreadArray([source], __read(sources))).subscribe(subscriber);
+    });
 }
-exports.register = _register;
-
+exports.zip = zip;
+//# sourceMappingURL=zip.js.map
 
 /***/ }),
 
-/***/ 34932:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 92335:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-var fs = __nccwpck_require__(57147);
-var path = __nccwpck_require__(71017);
-var common = __nccwpck_require__(53687);
+"use strict";
 
-common.register('cp', _cp, {
-  cmdOptions: {
-    'f': '!no_force',
-    'n': 'no_force',
-    'u': 'update',
-    'R': 'recursive',
-    'r': 'recursive',
-    'L': 'followsymlink',
-    'P': 'noFollowsymlink',
-  },
-  wrapOutput: false,
-});
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.zipAll = void 0;
+var zip_1 = __nccwpck_require__(62504);
+var joinAllInternals_1 = __nccwpck_require__(29341);
+function zipAll(project) {
+    return joinAllInternals_1.joinAllInternals(zip_1.zip, project);
+}
+exports.zipAll = zipAll;
+//# sourceMappingURL=zipAll.js.map
 
-// Buffered file copy, synchronous
-// (Using readFileSync() + writeFileSync() could easily cause a memory overflow
-//  with large files)
-function copyFileSync(srcFile, destFile, options) {
-  if (!fs.existsSync(srcFile)) {
-    common.error('copyFileSync: no such file or directory: ' + srcFile);
-  }
+/***/ }),
 
-  var isWindows = process.platform === 'win32';
+/***/ 95520:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-  // Check the mtimes of the files if the '-u' flag is provided
-  try {
-    if (options.update && common.statFollowLinks(srcFile).mtime < fs.statSync(destFile).mtime) {
-      return;
-    }
-  } catch (e) {
-    // If we're here, destFile probably doesn't exist, so just do a normal copy
-  }
+"use strict";
 
-  if (common.statNoFollowLinks(srcFile).isSymbolicLink() && !options.followsymlink) {
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
     try {
-      common.statNoFollowLinks(destFile);
-      common.unlinkSync(destFile); // re-link it
-    } catch (e) {
-      // it doesn't exist, so no work needs to be done
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
     }
-
-    var symlinkFull = fs.readlinkSync(srcFile);
-    fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null);
-  } else {
-    var buf = common.buffer();
-    var bufLength = buf.length;
-    var bytesRead = bufLength;
-    var pos = 0;
-    var fdr = null;
-    var fdw = null;
-
-    try {
-      fdr = fs.openSync(srcFile, 'r');
-    } catch (e) {
-      /* istanbul ignore next */
-      common.error('copyFileSync: could not read src file (' + srcFile + ')');
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
     }
-
-    try {
-      fdw = fs.openSync(destFile, 'w');
-    } catch (e) {
-      /* istanbul ignore next */
-      common.error('copyFileSync: could not write to dest file (code=' + e.code + '):' + destFile);
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.zipWith = void 0;
+var zip_1 = __nccwpck_require__(17600);
+function zipWith() {
+    var otherInputs = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        otherInputs[_i] = arguments[_i];
     }
+    return zip_1.zip.apply(void 0, __spreadArray([], __read(otherInputs)));
+}
+exports.zipWith = zipWith;
+//# sourceMappingURL=zipWith.js.map
 
-    while (bytesRead === bufLength) {
-      bytesRead = fs.readSync(fdr, buf, 0, bufLength, pos);
-      fs.writeSync(fdw, buf, 0, bytesRead);
-      pos += bytesRead;
-    }
+/***/ }),
 
-    fs.closeSync(fdr);
-    fs.closeSync(fdw);
+/***/ 11348:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    fs.chmodSync(destFile, common.statFollowLinks(srcFile).mode);
-  }
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.scheduleArray = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+function scheduleArray(input, scheduler) {
+    return new Observable_1.Observable(function (subscriber) {
+        var i = 0;
+        return scheduler.schedule(function () {
+            if (i === input.length) {
+                subscriber.complete();
+            }
+            else {
+                subscriber.next(input[i++]);
+                if (!subscriber.closed) {
+                    this.schedule();
+                }
+            }
+        });
+    });
 }
+exports.scheduleArray = scheduleArray;
+//# sourceMappingURL=scheduleArray.js.map
 
-// Recursively copies 'sourceDir' into 'destDir'
-// Adapted from https://github.com/ryanmcgrath/wrench-js
-//
-// Copyright (c) 2010 Ryan McGrath
-// Copyright (c) 2012 Artur Adib
-//
-// Licensed under the MIT License
-// http://www.opensource.org/licenses/mit-license.php
-function cpdirSyncRecursive(sourceDir, destDir, currentDepth, opts) {
-  if (!opts) opts = {};
+/***/ }),
 
-  // Ensure there is not a run away recursive copy
-  if (currentDepth >= common.config.maxdepth) return;
-  currentDepth++;
+/***/ 75347:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  var isWindows = process.platform === 'win32';
+"use strict";
 
-  // Create the directory where all our junk is moving to; read the mode of the
-  // source directory and mirror it
-  try {
-    fs.mkdirSync(destDir);
-  } catch (e) {
-    // if the directory already exists, that's okay
-    if (e.code !== 'EEXIST') throw e;
-  }
-
-  var files = fs.readdirSync(sourceDir);
-
-  for (var i = 0; i < files.length; i++) {
-    var srcFile = sourceDir + '/' + files[i];
-    var destFile = destDir + '/' + files[i];
-    var srcFileStat = common.statNoFollowLinks(srcFile);
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.scheduleAsyncIterable = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var executeSchedule_1 = __nccwpck_require__(82877);
+function scheduleAsyncIterable(input, scheduler) {
+    if (!input) {
+        throw new Error('Iterable cannot be null');
+    }
+    return new Observable_1.Observable(function (subscriber) {
+        executeSchedule_1.executeSchedule(subscriber, scheduler, function () {
+            var iterator = input[Symbol.asyncIterator]();
+            executeSchedule_1.executeSchedule(subscriber, scheduler, function () {
+                iterator.next().then(function (result) {
+                    if (result.done) {
+                        subscriber.complete();
+                    }
+                    else {
+                        subscriber.next(result.value);
+                    }
+                });
+            }, 0, true);
+        });
+    });
+}
+exports.scheduleAsyncIterable = scheduleAsyncIterable;
+//# sourceMappingURL=scheduleAsyncIterable.js.map
 
-    var symlinkFull;
-    if (opts.followsymlink) {
-      if (cpcheckcycle(sourceDir, srcFile)) {
-        // Cycle link found.
-        console.error('Cycle link found.');
-        symlinkFull = fs.readlinkSync(srcFile);
-        fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null);
-        continue;
-      }
-    }
-    if (srcFileStat.isDirectory()) {
-      /* recursion this thing right on back. */
-      cpdirSyncRecursive(srcFile, destFile, currentDepth, opts);
-    } else if (srcFileStat.isSymbolicLink() && !opts.followsymlink) {
-      symlinkFull = fs.readlinkSync(srcFile);
-      try {
-        common.statNoFollowLinks(destFile);
-        common.unlinkSync(destFile); // re-link it
-      } catch (e) {
-        // it doesn't exist, so no work needs to be done
-      }
-      fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null);
-    } else if (srcFileStat.isSymbolicLink() && opts.followsymlink) {
-      srcFileStat = common.statFollowLinks(srcFile);
-      if (srcFileStat.isDirectory()) {
-        cpdirSyncRecursive(srcFile, destFile, currentDepth, opts);
-      } else {
-        copyFileSync(srcFile, destFile, opts);
-      }
-    } else {
-      /* At this point, we've hit a file actually worth copying... so copy it on over. */
-      if (fs.existsSync(destFile) && opts.no_force) {
-        common.log('skipping existing file: ' + files[i]);
-      } else {
-        copyFileSync(srcFile, destFile, opts);
-      }
-    }
-  } // for files
+/***/ }),
 
-  // finally change the mode for the newly created directory (otherwise, we
-  // couldn't add files to a read-only directory).
-  var checkDir = common.statFollowLinks(sourceDir);
-  fs.chmodSync(destDir, checkDir.mode);
-} // cpdirSyncRecursive
+/***/ 59461:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-// Checks if cureent file was created recently
-function checkRecentCreated(sources, index) {
-  var lookedSource = sources[index];
-  return sources.slice(0, index).some(function (src) {
-    return path.basename(src) === path.basename(lookedSource);
-  });
-}
+"use strict";
 
-function cpcheckcycle(sourceDir, srcFile) {
-  var srcFileStat = common.statNoFollowLinks(srcFile);
-  if (srcFileStat.isSymbolicLink()) {
-    // Do cycle check. For example:
-    //   $ mkdir -p 1/2/3/4
-    //   $ cd  1/2/3/4
-    //   $ ln -s ../../3 link
-    //   $ cd ../../../..
-    //   $ cp -RL 1 copy
-    var cyclecheck = common.statFollowLinks(srcFile);
-    if (cyclecheck.isDirectory()) {
-      var sourcerealpath = fs.realpathSync(sourceDir);
-      var symlinkrealpath = fs.realpathSync(srcFile);
-      var re = new RegExp(symlinkrealpath);
-      if (re.test(sourcerealpath)) {
-        return true;
-      }
-    }
-  }
-  return false;
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.scheduleIterable = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var iterator_1 = __nccwpck_require__(85517);
+var isFunction_1 = __nccwpck_require__(67206);
+var executeSchedule_1 = __nccwpck_require__(82877);
+function scheduleIterable(input, scheduler) {
+    return new Observable_1.Observable(function (subscriber) {
+        var iterator;
+        executeSchedule_1.executeSchedule(subscriber, scheduler, function () {
+            iterator = input[iterator_1.iterator]();
+            executeSchedule_1.executeSchedule(subscriber, scheduler, function () {
+                var _a;
+                var value;
+                var done;
+                try {
+                    (_a = iterator.next(), value = _a.value, done = _a.done);
+                }
+                catch (err) {
+                    subscriber.error(err);
+                    return;
+                }
+                if (done) {
+                    subscriber.complete();
+                }
+                else {
+                    subscriber.next(value);
+                }
+            }, 0, true);
+        });
+        return function () { return isFunction_1.isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return(); };
+    });
 }
+exports.scheduleIterable = scheduleIterable;
+//# sourceMappingURL=scheduleIterable.js.map
 
-//@
-//@ ### cp([options,] source [, source ...], dest)
-//@ ### cp([options,] source_array, dest)
-//@
-//@ Available options:
-//@
-//@ + `-f`: force (default behavior)
-//@ + `-n`: no-clobber
-//@ + `-u`: only copy if `source` is newer than `dest`
-//@ + `-r`, `-R`: recursive
-//@ + `-L`: follow symlinks
-//@ + `-P`: don't follow symlinks
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ cp('file1', 'dir1');
-//@ cp('-R', 'path/to/dir/', '~/newCopy/');
-//@ cp('-Rf', '/tmp/*', '/usr/local/*', '/home/tmp');
-//@ cp('-Rf', ['/tmp/*', '/usr/local/*'], '/home/tmp'); // same as above
-//@ ```
-//@
-//@ Copies files.
-function _cp(options, sources, dest) {
-  // If we're missing -R, it actually implies -L (unless -P is explicit)
-  if (options.followsymlink) {
-    options.noFollowsymlink = false;
-  }
-  if (!options.recursive && !options.noFollowsymlink) {
-    options.followsymlink = true;
-  }
-
-  // Get sources, dest
-  if (arguments.length < 3) {
-    common.error('missing  and/or ');
-  } else {
-    sources = [].slice.call(arguments, 1, arguments.length - 1);
-    dest = arguments[arguments.length - 1];
-  }
+/***/ }),
 
-  var destExists = fs.existsSync(dest);
-  var destStat = destExists && common.statFollowLinks(dest);
+/***/ 17096:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  // Dest is not existing dir, but multiple sources given
-  if ((!destExists || !destStat.isDirectory()) && sources.length > 1) {
-    common.error('dest is not a directory (too many sources)');
-  }
+"use strict";
 
-  // Dest is an existing file, but -n is given
-  if (destExists && destStat.isFile() && options.no_force) {
-    return new common.ShellString('', '', 0);
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.scheduleObservable = void 0;
+var innerFrom_1 = __nccwpck_require__(57105);
+var observeOn_1 = __nccwpck_require__(22451);
+var subscribeOn_1 = __nccwpck_require__(7224);
+function scheduleObservable(input, scheduler) {
+    return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler));
+}
+exports.scheduleObservable = scheduleObservable;
+//# sourceMappingURL=scheduleObservable.js.map
 
-  sources.forEach(function (src, srcIndex) {
-    if (!fs.existsSync(src)) {
-      if (src === '') src = "''"; // if src was empty string, display empty string
-      common.error('no such file or directory: ' + src, { continue: true });
-      return; // skip file
-    }
-    var srcStat = common.statFollowLinks(src);
-    if (!options.noFollowsymlink && srcStat.isDirectory()) {
-      if (!options.recursive) {
-        // Non-Recursive
-        common.error("omitting directory '" + src + "'", { continue: true });
-      } else {
-        // Recursive
-        // 'cp /a/source dest' should create 'source' in 'dest'
-        var newDest = (destStat && destStat.isDirectory()) ?
-            path.join(dest, path.basename(src)) :
-            dest;
+/***/ }),
 
-        try {
-          common.statFollowLinks(path.dirname(dest));
-          cpdirSyncRecursive(src, newDest, 0, { no_force: options.no_force, followsymlink: options.followsymlink });
-        } catch (e) {
-          /* istanbul ignore next */
-          common.error("cannot create directory '" + dest + "': No such file or directory");
-        }
-      }
-    } else {
-      // If here, src is a file
+/***/ 24087:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-      // When copying to '/path/dir':
-      //    thisDest = '/path/dir/file1'
-      var thisDest = dest;
-      if (destStat && destStat.isDirectory()) {
-        thisDest = path.normalize(dest + '/' + path.basename(src));
-      }
+"use strict";
 
-      var thisDestExists = fs.existsSync(thisDest);
-      if (thisDestExists && checkRecentCreated(sources, srcIndex)) {
-        // cannot overwrite file created recently in current execution, but we want to continue copying other files
-        if (!options.no_force) {
-          common.error("will not overwrite just-created '" + thisDest + "' with '" + src + "'", { continue: true });
-        }
-        return;
-      }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.schedulePromise = void 0;
+var innerFrom_1 = __nccwpck_require__(57105);
+var observeOn_1 = __nccwpck_require__(22451);
+var subscribeOn_1 = __nccwpck_require__(7224);
+function schedulePromise(input, scheduler) {
+    return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler));
+}
+exports.schedulePromise = schedulePromise;
+//# sourceMappingURL=schedulePromise.js.map
 
-      if (thisDestExists && options.no_force) {
-        return; // skip file
-      }
+/***/ }),
 
-      if (path.relative(src, thisDest) === '') {
-        // a file cannot be copied to itself, but we want to continue copying other files
-        common.error("'" + thisDest + "' and '" + src + "' are the same file", { continue: true });
-        return;
-      }
+/***/ 5967:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-      copyFileSync(src, thisDest, options);
-    }
-  }); // forEach(src)
+"use strict";
 
-  return new common.ShellString('', common.state.error, common.state.errorCode);
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.scheduleReadableStreamLike = void 0;
+var scheduleAsyncIterable_1 = __nccwpck_require__(75347);
+var isReadableStreamLike_1 = __nccwpck_require__(99621);
+function scheduleReadableStreamLike(input, scheduler) {
+    return scheduleAsyncIterable_1.scheduleAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(input), scheduler);
 }
-module.exports = _cp;
-
+exports.scheduleReadableStreamLike = scheduleReadableStreamLike;
+//# sourceMappingURL=scheduleReadableStreamLike.js.map
 
 /***/ }),
 
-/***/ 41178:
+/***/ 6151:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-var common = __nccwpck_require__(53687);
-var _cd = __nccwpck_require__(42051);
-var path = __nccwpck_require__(71017);
+"use strict";
 
-common.register('dirs', _dirs, {
-  wrapOutput: false,
-});
-common.register('pushd', _pushd, {
-  wrapOutput: false,
-});
-common.register('popd', _popd, {
-  wrapOutput: false,
-});
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.scheduled = void 0;
+var scheduleObservable_1 = __nccwpck_require__(17096);
+var schedulePromise_1 = __nccwpck_require__(24087);
+var scheduleArray_1 = __nccwpck_require__(11348);
+var scheduleIterable_1 = __nccwpck_require__(59461);
+var scheduleAsyncIterable_1 = __nccwpck_require__(75347);
+var isInteropObservable_1 = __nccwpck_require__(67984);
+var isPromise_1 = __nccwpck_require__(65585);
+var isArrayLike_1 = __nccwpck_require__(24461);
+var isIterable_1 = __nccwpck_require__(94292);
+var isAsyncIterable_1 = __nccwpck_require__(44408);
+var throwUnobservableError_1 = __nccwpck_require__(97364);
+var isReadableStreamLike_1 = __nccwpck_require__(99621);
+var scheduleReadableStreamLike_1 = __nccwpck_require__(5967);
+function scheduled(input, scheduler) {
+    if (input != null) {
+        if (isInteropObservable_1.isInteropObservable(input)) {
+            return scheduleObservable_1.scheduleObservable(input, scheduler);
+        }
+        if (isArrayLike_1.isArrayLike(input)) {
+            return scheduleArray_1.scheduleArray(input, scheduler);
+        }
+        if (isPromise_1.isPromise(input)) {
+            return schedulePromise_1.schedulePromise(input, scheduler);
+        }
+        if (isAsyncIterable_1.isAsyncIterable(input)) {
+            return scheduleAsyncIterable_1.scheduleAsyncIterable(input, scheduler);
+        }
+        if (isIterable_1.isIterable(input)) {
+            return scheduleIterable_1.scheduleIterable(input, scheduler);
+        }
+        if (isReadableStreamLike_1.isReadableStreamLike(input)) {
+            return scheduleReadableStreamLike_1.scheduleReadableStreamLike(input, scheduler);
+        }
+    }
+    throw throwUnobservableError_1.createInvalidObservableTypeError(input);
+}
+exports.scheduled = scheduled;
+//# sourceMappingURL=scheduled.js.map
 
-// Pushd/popd/dirs internals
-var _dirStack = [];
+/***/ }),
 
-function _isStackIndex(index) {
-  return (/^[\-+]\d+$/).test(index);
-}
+/***/ 83848:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-function _parseStackIndex(index) {
-  if (_isStackIndex(index)) {
-    if (Math.abs(index) < _dirStack.length + 1) { // +1 for pwd
-      return (/^-/).test(index) ? Number(index) - 1 : Number(index);
-    }
-    common.error(index + ': directory stack index out of range');
-  } else {
-    common.error(index + ': invalid number');
-  }
-}
+"use strict";
 
-function _actualDirStack() {
-  return [process.cwd()].concat(_dirStack);
-}
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.Action = void 0;
+var Subscription_1 = __nccwpck_require__(79548);
+var Action = (function (_super) {
+    __extends(Action, _super);
+    function Action(scheduler, work) {
+        return _super.call(this) || this;
+    }
+    Action.prototype.schedule = function (state, delay) {
+        if (delay === void 0) { delay = 0; }
+        return this;
+    };
+    return Action;
+}(Subscription_1.Subscription));
+exports.Action = Action;
+//# sourceMappingURL=Action.js.map
 
-//@
-//@ ### pushd([options,] [dir | '-N' | '+N'])
-//@
-//@ Available options:
-//@
-//@ + `-n`: Suppresses the normal change of directory when adding directories to the stack, so that only the stack is manipulated.
-//@ + `-q`: Supresses output to the console.
-//@
-//@ Arguments:
-//@
-//@ + `dir`: Sets the current working directory to the top of the stack, then executes the equivalent of `cd dir`.
-//@ + `+N`: Brings the Nth directory (counting from the left of the list printed by dirs, starting with zero) to the top of the list by rotating the stack.
-//@ + `-N`: Brings the Nth directory (counting from the right of the list printed by dirs, starting with zero) to the top of the list by rotating the stack.
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ // process.cwd() === '/usr'
-//@ pushd('/etc'); // Returns /etc /usr
-//@ pushd('+1');   // Returns /usr /etc
-//@ ```
-//@
-//@ Save the current directory on the top of the directory stack and then `cd` to `dir`. With no arguments, `pushd` exchanges the top two directories. Returns an array of paths in the stack.
-function _pushd(options, dir) {
-  if (_isStackIndex(options)) {
-    dir = options;
-    options = '';
-  }
+/***/ }),
 
-  options = common.parseOptions(options, {
-    'n': 'no-cd',
-    'q': 'quiet',
-  });
+/***/ 95991:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-  var dirs = _actualDirStack();
+"use strict";
 
-  if (dir === '+0') {
-    return dirs; // +0 is a noop
-  } else if (!dir) {
-    if (dirs.length > 1) {
-      dirs = dirs.splice(1, 1).concat(dirs);
-    } else {
-      return common.error('no other directory');
-    }
-  } else if (_isStackIndex(dir)) {
-    var n = _parseStackIndex(dir);
-    dirs = dirs.slice(n).concat(dirs.slice(0, n));
-  } else {
-    if (options['no-cd']) {
-      dirs.splice(1, 0, dir);
-    } else {
-      dirs.unshift(dir);
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AnimationFrameAction = void 0;
+var AsyncAction_1 = __nccwpck_require__(13280);
+var animationFrameProvider_1 = __nccwpck_require__(62738);
+var AnimationFrameAction = (function (_super) {
+    __extends(AnimationFrameAction, _super);
+    function AnimationFrameAction(scheduler, work) {
+        var _this = _super.call(this, scheduler, work) || this;
+        _this.scheduler = scheduler;
+        _this.work = work;
+        return _this;
     }
-  }
+    AnimationFrameAction.prototype.requestAsyncId = function (scheduler, id, delay) {
+        if (delay === void 0) { delay = 0; }
+        if (delay !== null && delay > 0) {
+            return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
+        }
+        scheduler.actions.push(this);
+        return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function () { return scheduler.flush(undefined); }));
+    };
+    AnimationFrameAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
+        var _a;
+        if (delay === void 0) { delay = 0; }
+        if (delay != null ? delay > 0 : this.delay > 0) {
+            return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
+        }
+        var actions = scheduler.actions;
+        if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {
+            animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
+            scheduler._scheduled = undefined;
+        }
+        return undefined;
+    };
+    return AnimationFrameAction;
+}(AsyncAction_1.AsyncAction));
+exports.AnimationFrameAction = AnimationFrameAction;
+//# sourceMappingURL=AnimationFrameAction.js.map
 
-  if (options['no-cd']) {
-    dirs = dirs.slice(1);
-  } else {
-    dir = path.resolve(dirs.shift());
-    _cd('', dir);
-  }
+/***/ }),
 
-  _dirStack = dirs;
-  return _dirs(options.quiet ? '-q' : '');
-}
-exports.pushd = _pushd;
+/***/ 98768:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-//@
-//@
-//@ ### popd([options,] ['-N' | '+N'])
-//@
-//@ Available options:
-//@
-//@ + `-n`: Suppress the normal directory change when removing directories from the stack, so that only the stack is manipulated.
-//@ + `-q`: Supresses output to the console.
-//@
-//@ Arguments:
-//@
-//@ + `+N`: Removes the Nth directory (counting from the left of the list printed by dirs), starting with zero.
-//@ + `-N`: Removes the Nth directory (counting from the right of the list printed by dirs), starting with zero.
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ echo(process.cwd()); // '/usr'
-//@ pushd('/etc');       // '/etc /usr'
-//@ echo(process.cwd()); // '/etc'
-//@ popd();              // '/usr'
-//@ echo(process.cwd()); // '/usr'
-//@ ```
-//@
-//@ When no arguments are given, `popd` removes the top directory from the stack and performs a `cd` to the new top directory. The elements are numbered from 0, starting at the first directory listed with dirs (i.e., `popd` is equivalent to `popd +0`). Returns an array of paths in the stack.
-function _popd(options, index) {
-  if (_isStackIndex(options)) {
-    index = options;
-    options = '';
-  }
+"use strict";
 
-  options = common.parseOptions(options, {
-    'n': 'no-cd',
-    'q': 'quiet',
-  });
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AnimationFrameScheduler = void 0;
+var AsyncScheduler_1 = __nccwpck_require__(61673);
+var AnimationFrameScheduler = (function (_super) {
+    __extends(AnimationFrameScheduler, _super);
+    function AnimationFrameScheduler() {
+        return _super !== null && _super.apply(this, arguments) || this;
+    }
+    AnimationFrameScheduler.prototype.flush = function (action) {
+        this._active = true;
+        var flushId = this._scheduled;
+        this._scheduled = undefined;
+        var actions = this.actions;
+        var error;
+        action = action || actions.shift();
+        do {
+            if ((error = action.execute(action.state, action.delay))) {
+                break;
+            }
+        } while ((action = actions[0]) && action.id === flushId && actions.shift());
+        this._active = false;
+        if (error) {
+            while ((action = actions[0]) && action.id === flushId && actions.shift()) {
+                action.unsubscribe();
+            }
+            throw error;
+        }
+    };
+    return AnimationFrameScheduler;
+}(AsyncScheduler_1.AsyncScheduler));
+exports.AnimationFrameScheduler = AnimationFrameScheduler;
+//# sourceMappingURL=AnimationFrameScheduler.js.map
 
-  if (!_dirStack.length) {
-    return common.error('directory stack empty');
-  }
+/***/ }),
 
-  index = _parseStackIndex(index || '+0');
+/***/ 12424:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-  if (options['no-cd'] || index > 0 || _dirStack.length + index === 0) {
-    index = index > 0 ? index - 1 : index;
-    _dirStack.splice(index, 1);
-  } else {
-    var dir = path.resolve(_dirStack.shift());
-    _cd('', dir);
-  }
+"use strict";
 
-  return _dirs(options.quiet ? '-q' : '');
-}
-exports.popd = _popd;
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AsapAction = void 0;
+var AsyncAction_1 = __nccwpck_require__(13280);
+var immediateProvider_1 = __nccwpck_require__(63475);
+var AsapAction = (function (_super) {
+    __extends(AsapAction, _super);
+    function AsapAction(scheduler, work) {
+        var _this = _super.call(this, scheduler, work) || this;
+        _this.scheduler = scheduler;
+        _this.work = work;
+        return _this;
+    }
+    AsapAction.prototype.requestAsyncId = function (scheduler, id, delay) {
+        if (delay === void 0) { delay = 0; }
+        if (delay !== null && delay > 0) {
+            return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
+        }
+        scheduler.actions.push(this);
+        return scheduler._scheduled || (scheduler._scheduled = immediateProvider_1.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined)));
+    };
+    AsapAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
+        var _a;
+        if (delay === void 0) { delay = 0; }
+        if (delay != null ? delay > 0 : this.delay > 0) {
+            return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
+        }
+        var actions = scheduler.actions;
+        if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {
+            immediateProvider_1.immediateProvider.clearImmediate(id);
+            if (scheduler._scheduled === id) {
+                scheduler._scheduled = undefined;
+            }
+        }
+        return undefined;
+    };
+    return AsapAction;
+}(AsyncAction_1.AsyncAction));
+exports.AsapAction = AsapAction;
+//# sourceMappingURL=AsapAction.js.map
 
-//@
-//@
-//@ ### dirs([options | '+N' | '-N'])
-//@
-//@ Available options:
-//@
-//@ + `-c`: Clears the directory stack by deleting all of the elements.
-//@ + `-q`: Supresses output to the console.
-//@
-//@ Arguments:
-//@
-//@ + `+N`: Displays the Nth directory (counting from the left of the list printed by dirs when invoked without options), starting with zero.
-//@ + `-N`: Displays the Nth directory (counting from the right of the list printed by dirs when invoked without options), starting with zero.
-//@
-//@ Display the list of currently remembered directories. Returns an array of paths in the stack, or a single path if `+N` or `-N` was specified.
-//@
-//@ See also: `pushd`, `popd`
-function _dirs(options, index) {
-  if (_isStackIndex(options)) {
-    index = options;
-    options = '';
-  }
+/***/ }),
 
-  options = common.parseOptions(options, {
-    'c': 'clear',
-    'q': 'quiet',
-  });
+/***/ 76641:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-  if (options.clear) {
-    _dirStack = [];
-    return _dirStack;
-  }
+"use strict";
 
-  var stack = _actualDirStack();
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AsapScheduler = void 0;
+var AsyncScheduler_1 = __nccwpck_require__(61673);
+var AsapScheduler = (function (_super) {
+    __extends(AsapScheduler, _super);
+    function AsapScheduler() {
+        return _super !== null && _super.apply(this, arguments) || this;
+    }
+    AsapScheduler.prototype.flush = function (action) {
+        this._active = true;
+        var flushId = this._scheduled;
+        this._scheduled = undefined;
+        var actions = this.actions;
+        var error;
+        action = action || actions.shift();
+        do {
+            if ((error = action.execute(action.state, action.delay))) {
+                break;
+            }
+        } while ((action = actions[0]) && action.id === flushId && actions.shift());
+        this._active = false;
+        if (error) {
+            while ((action = actions[0]) && action.id === flushId && actions.shift()) {
+                action.unsubscribe();
+            }
+            throw error;
+        }
+    };
+    return AsapScheduler;
+}(AsyncScheduler_1.AsyncScheduler));
+exports.AsapScheduler = AsapScheduler;
+//# sourceMappingURL=AsapScheduler.js.map
 
-  if (index) {
-    index = _parseStackIndex(index);
+/***/ }),
 
-    if (index < 0) {
-      index = stack.length + index;
+/***/ 13280:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AsyncAction = void 0;
+var Action_1 = __nccwpck_require__(83848);
+var intervalProvider_1 = __nccwpck_require__(55341);
+var arrRemove_1 = __nccwpck_require__(68499);
+var AsyncAction = (function (_super) {
+    __extends(AsyncAction, _super);
+    function AsyncAction(scheduler, work) {
+        var _this = _super.call(this, scheduler, work) || this;
+        _this.scheduler = scheduler;
+        _this.work = work;
+        _this.pending = false;
+        return _this;
     }
+    AsyncAction.prototype.schedule = function (state, delay) {
+        var _a;
+        if (delay === void 0) { delay = 0; }
+        if (this.closed) {
+            return this;
+        }
+        this.state = state;
+        var id = this.id;
+        var scheduler = this.scheduler;
+        if (id != null) {
+            this.id = this.recycleAsyncId(scheduler, id, delay);
+        }
+        this.pending = true;
+        this.delay = delay;
+        this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);
+        return this;
+    };
+    AsyncAction.prototype.requestAsyncId = function (scheduler, _id, delay) {
+        if (delay === void 0) { delay = 0; }
+        return intervalProvider_1.intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
+    };
+    AsyncAction.prototype.recycleAsyncId = function (_scheduler, id, delay) {
+        if (delay === void 0) { delay = 0; }
+        if (delay != null && this.delay === delay && this.pending === false) {
+            return id;
+        }
+        if (id != null) {
+            intervalProvider_1.intervalProvider.clearInterval(id);
+        }
+        return undefined;
+    };
+    AsyncAction.prototype.execute = function (state, delay) {
+        if (this.closed) {
+            return new Error('executing a cancelled action');
+        }
+        this.pending = false;
+        var error = this._execute(state, delay);
+        if (error) {
+            return error;
+        }
+        else if (this.pending === false && this.id != null) {
+            this.id = this.recycleAsyncId(this.scheduler, this.id, null);
+        }
+    };
+    AsyncAction.prototype._execute = function (state, _delay) {
+        var errored = false;
+        var errorValue;
+        try {
+            this.work(state);
+        }
+        catch (e) {
+            errored = true;
+            errorValue = e ? e : new Error('Scheduled action threw falsy error');
+        }
+        if (errored) {
+            this.unsubscribe();
+            return errorValue;
+        }
+    };
+    AsyncAction.prototype.unsubscribe = function () {
+        if (!this.closed) {
+            var _a = this, id = _a.id, scheduler = _a.scheduler;
+            var actions = scheduler.actions;
+            this.work = this.state = this.scheduler = null;
+            this.pending = false;
+            arrRemove_1.arrRemove(actions, this);
+            if (id != null) {
+                this.id = this.recycleAsyncId(scheduler, id, null);
+            }
+            this.delay = null;
+            _super.prototype.unsubscribe.call(this);
+        }
+    };
+    return AsyncAction;
+}(Action_1.Action));
+exports.AsyncAction = AsyncAction;
+//# sourceMappingURL=AsyncAction.js.map
 
-    if (!options.quiet) {
-      common.log(stack[index]);
+/***/ }),
+
+/***/ 61673:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AsyncScheduler = void 0;
+var Scheduler_1 = __nccwpck_require__(76243);
+var AsyncScheduler = (function (_super) {
+    __extends(AsyncScheduler, _super);
+    function AsyncScheduler(SchedulerAction, now) {
+        if (now === void 0) { now = Scheduler_1.Scheduler.now; }
+        var _this = _super.call(this, SchedulerAction, now) || this;
+        _this.actions = [];
+        _this._active = false;
+        return _this;
     }
-    return stack[index];
-  }
+    AsyncScheduler.prototype.flush = function (action) {
+        var actions = this.actions;
+        if (this._active) {
+            actions.push(action);
+            return;
+        }
+        var error;
+        this._active = true;
+        do {
+            if ((error = action.execute(action.state, action.delay))) {
+                break;
+            }
+        } while ((action = actions.shift()));
+        this._active = false;
+        if (error) {
+            while ((action = actions.shift())) {
+                action.unsubscribe();
+            }
+            throw error;
+        }
+    };
+    return AsyncScheduler;
+}(Scheduler_1.Scheduler));
+exports.AsyncScheduler = AsyncScheduler;
+//# sourceMappingURL=AsyncScheduler.js.map
 
-  if (!options.quiet) {
-    common.log(stack.join(' '));
-  }
+/***/ }),
 
-  return stack;
-}
-exports.dirs = _dirs;
+/***/ 32161:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
 
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.QueueAction = void 0;
+var AsyncAction_1 = __nccwpck_require__(13280);
+var QueueAction = (function (_super) {
+    __extends(QueueAction, _super);
+    function QueueAction(scheduler, work) {
+        var _this = _super.call(this, scheduler, work) || this;
+        _this.scheduler = scheduler;
+        _this.work = work;
+        return _this;
+    }
+    QueueAction.prototype.schedule = function (state, delay) {
+        if (delay === void 0) { delay = 0; }
+        if (delay > 0) {
+            return _super.prototype.schedule.call(this, state, delay);
+        }
+        this.delay = delay;
+        this.state = state;
+        this.scheduler.flush(this);
+        return this;
+    };
+    QueueAction.prototype.execute = function (state, delay) {
+        return delay > 0 || this.closed ? _super.prototype.execute.call(this, state, delay) : this._execute(state, delay);
+    };
+    QueueAction.prototype.requestAsyncId = function (scheduler, id, delay) {
+        if (delay === void 0) { delay = 0; }
+        if ((delay != null && delay > 0) || (delay == null && this.delay > 0)) {
+            return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
+        }
+        scheduler.flush(this);
+        return 0;
+    };
+    return QueueAction;
+}(AsyncAction_1.AsyncAction));
+exports.QueueAction = QueueAction;
+//# sourceMappingURL=QueueAction.js.map
 
 /***/ }),
 
-/***/ 10243:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 48527:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-var format = (__nccwpck_require__(73837).format);
+"use strict";
 
-var common = __nccwpck_require__(53687);
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.QueueScheduler = void 0;
+var AsyncScheduler_1 = __nccwpck_require__(61673);
+var QueueScheduler = (function (_super) {
+    __extends(QueueScheduler, _super);
+    function QueueScheduler() {
+        return _super !== null && _super.apply(this, arguments) || this;
+    }
+    return QueueScheduler;
+}(AsyncScheduler_1.AsyncScheduler));
+exports.QueueScheduler = QueueScheduler;
+//# sourceMappingURL=QueueScheduler.js.map
 
-common.register('echo', _echo, {
-  allowGlobbing: false,
-});
+/***/ }),
 
-//@
-//@ ### echo([options,] string [, string ...])
-//@
-//@ Available options:
-//@
-//@ + `-e`: interpret backslash escapes (default)
-//@ + `-n`: remove trailing newline from output
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ echo('hello world');
-//@ var str = echo('hello world');
-//@ echo('-n', 'no newline at end');
-//@ ```
-//@
-//@ Prints `string` to stdout, and returns string with additional utility methods
-//@ like `.to()`.
-function _echo(opts) {
-  // allow strings starting with '-', see issue #20
-  var messages = [].slice.call(arguments, opts ? 0 : 1);
-  var options = {};
+/***/ 75348:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-  // If the first argument starts with '-', parse it as options string.
-  // If parseOptions throws, it wasn't an options string.
-  try {
-    options = common.parseOptions(messages[0], {
-      'e': 'escapes',
-      'n': 'no_newline',
-    }, {
-      silent: true,
-    });
+"use strict";
 
-    // Allow null to be echoed
-    if (messages[0]) {
-      messages.shift();
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.VirtualAction = exports.VirtualTimeScheduler = void 0;
+var AsyncAction_1 = __nccwpck_require__(13280);
+var Subscription_1 = __nccwpck_require__(79548);
+var AsyncScheduler_1 = __nccwpck_require__(61673);
+var VirtualTimeScheduler = (function (_super) {
+    __extends(VirtualTimeScheduler, _super);
+    function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {
+        if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; }
+        if (maxFrames === void 0) { maxFrames = Infinity; }
+        var _this = _super.call(this, schedulerActionCtor, function () { return _this.frame; }) || this;
+        _this.maxFrames = maxFrames;
+        _this.frame = 0;
+        _this.index = -1;
+        return _this;
     }
-  } catch (_) {
-    // Clear out error if an error occurred
-    common.state.error = null;
-  }
+    VirtualTimeScheduler.prototype.flush = function () {
+        var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
+        var error;
+        var action;
+        while ((action = actions[0]) && action.delay <= maxFrames) {
+            actions.shift();
+            this.frame = action.delay;
+            if ((error = action.execute(action.state, action.delay))) {
+                break;
+            }
+        }
+        if (error) {
+            while ((action = actions.shift())) {
+                action.unsubscribe();
+            }
+            throw error;
+        }
+    };
+    VirtualTimeScheduler.frameTimeFactor = 10;
+    return VirtualTimeScheduler;
+}(AsyncScheduler_1.AsyncScheduler));
+exports.VirtualTimeScheduler = VirtualTimeScheduler;
+var VirtualAction = (function (_super) {
+    __extends(VirtualAction, _super);
+    function VirtualAction(scheduler, work, index) {
+        if (index === void 0) { index = (scheduler.index += 1); }
+        var _this = _super.call(this, scheduler, work) || this;
+        _this.scheduler = scheduler;
+        _this.work = work;
+        _this.index = index;
+        _this.active = true;
+        _this.index = scheduler.index = index;
+        return _this;
+    }
+    VirtualAction.prototype.schedule = function (state, delay) {
+        if (delay === void 0) { delay = 0; }
+        if (Number.isFinite(delay)) {
+            if (!this.id) {
+                return _super.prototype.schedule.call(this, state, delay);
+            }
+            this.active = false;
+            var action = new VirtualAction(this.scheduler, this.work);
+            this.add(action);
+            return action.schedule(state, delay);
+        }
+        else {
+            return Subscription_1.Subscription.EMPTY;
+        }
+    };
+    VirtualAction.prototype.requestAsyncId = function (scheduler, id, delay) {
+        if (delay === void 0) { delay = 0; }
+        this.delay = scheduler.frame + delay;
+        var actions = scheduler.actions;
+        actions.push(this);
+        actions.sort(VirtualAction.sortActions);
+        return 1;
+    };
+    VirtualAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
+        if (delay === void 0) { delay = 0; }
+        return undefined;
+    };
+    VirtualAction.prototype._execute = function (state, delay) {
+        if (this.active === true) {
+            return _super.prototype._execute.call(this, state, delay);
+        }
+    };
+    VirtualAction.sortActions = function (a, b) {
+        if (a.delay === b.delay) {
+            if (a.index === b.index) {
+                return 0;
+            }
+            else if (a.index > b.index) {
+                return 1;
+            }
+            else {
+                return -1;
+            }
+        }
+        else if (a.delay > b.delay) {
+            return 1;
+        }
+        else {
+            return -1;
+        }
+    };
+    return VirtualAction;
+}(AsyncAction_1.AsyncAction));
+exports.VirtualAction = VirtualAction;
+//# sourceMappingURL=VirtualTimeScheduler.js.map
 
-  var output = format.apply(null, messages);
+/***/ }),
 
-  // Add newline if -n is not passed.
-  if (!options.no_newline) {
-    output += '\n';
-  }
+/***/ 51359:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  process.stdout.write(output);
+"use strict";
 
-  return output;
-}
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.animationFrame = exports.animationFrameScheduler = void 0;
+var AnimationFrameAction_1 = __nccwpck_require__(95991);
+var AnimationFrameScheduler_1 = __nccwpck_require__(98768);
+exports.animationFrameScheduler = new AnimationFrameScheduler_1.AnimationFrameScheduler(AnimationFrameAction_1.AnimationFrameAction);
+exports.animationFrame = exports.animationFrameScheduler;
+//# sourceMappingURL=animationFrame.js.map
 
-module.exports = _echo;
+/***/ }),
 
+/***/ 62738:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-/***/ }),
+"use strict";
 
-/***/ 10232:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.animationFrameProvider = void 0;
+var Subscription_1 = __nccwpck_require__(79548);
+exports.animationFrameProvider = {
+    schedule: function (callback) {
+        var request = requestAnimationFrame;
+        var cancel = cancelAnimationFrame;
+        var delegate = exports.animationFrameProvider.delegate;
+        if (delegate) {
+            request = delegate.requestAnimationFrame;
+            cancel = delegate.cancelAnimationFrame;
+        }
+        var handle = request(function (timestamp) {
+            cancel = undefined;
+            callback(timestamp);
+        });
+        return new Subscription_1.Subscription(function () { return cancel === null || cancel === void 0 ? void 0 : cancel(handle); });
+    },
+    requestAnimationFrame: function () {
+        var args = [];
+        for (var _i = 0; _i < arguments.length; _i++) {
+            args[_i] = arguments[_i];
+        }
+        var delegate = exports.animationFrameProvider.delegate;
+        return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame).apply(void 0, __spreadArray([], __read(args)));
+    },
+    cancelAnimationFrame: function () {
+        var args = [];
+        for (var _i = 0; _i < arguments.length; _i++) {
+            args[_i] = arguments[_i];
+        }
+        var delegate = exports.animationFrameProvider.delegate;
+        return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame).apply(void 0, __spreadArray([], __read(args)));
+    },
+    delegate: undefined,
+};
+//# sourceMappingURL=animationFrameProvider.js.map
 
-var common = __nccwpck_require__(53687);
+/***/ }),
 
-//@
-//@ ### error()
-//@
-//@ Tests if error occurred in the last command. Returns a truthy value if an
-//@ error returned, or a falsy value otherwise.
-//@
-//@ **Note**: do not rely on the
-//@ return value to be an error message. If you need the last error message, use
-//@ the `.stderr` attribute from the last command's return value instead.
-function error() {
-  return common.state.error;
-}
-module.exports = error;
+/***/ 43905:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.asap = exports.asapScheduler = void 0;
+var AsapAction_1 = __nccwpck_require__(12424);
+var AsapScheduler_1 = __nccwpck_require__(76641);
+exports.asapScheduler = new AsapScheduler_1.AsapScheduler(AsapAction_1.AsapAction);
+exports.asap = exports.asapScheduler;
+//# sourceMappingURL=asap.js.map
 
 /***/ }),
 
-/***/ 69607:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 76072:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-/* module decorator */ module = __nccwpck_require__.nmd(module);
-if (require.main !== module) {
-  throw new Error('This file should not be required');
-}
+"use strict";
 
-var childProcess = __nccwpck_require__(32081);
-var fs = __nccwpck_require__(57147);
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.async = exports.asyncScheduler = void 0;
+var AsyncAction_1 = __nccwpck_require__(13280);
+var AsyncScheduler_1 = __nccwpck_require__(61673);
+exports.asyncScheduler = new AsyncScheduler_1.AsyncScheduler(AsyncAction_1.AsyncAction);
+exports.async = exports.asyncScheduler;
+//# sourceMappingURL=async.js.map
 
-var paramFilePath = process.argv[2];
+/***/ }),
 
-var serializedParams = fs.readFileSync(paramFilePath, 'utf8');
-var params = JSON.parse(serializedParams);
+/***/ 91395:
+/***/ ((__unused_webpack_module, exports) => {
 
-var cmd = params.command;
-var execOptions = params.execOptions;
-var pipe = params.pipe;
-var stdoutFile = params.stdoutFile;
-var stderrFile = params.stderrFile;
+"use strict";
 
-var c = childProcess.exec(cmd, execOptions, function (err) {
-  if (!err) {
-    process.exitCode = 0;
-  } else if (err.code === undefined) {
-    process.exitCode = 1;
-  } else {
-    process.exitCode = err.code;
-  }
-});
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.dateTimestampProvider = void 0;
+exports.dateTimestampProvider = {
+    now: function () {
+        return (exports.dateTimestampProvider.delegate || Date).now();
+    },
+    delegate: undefined,
+};
+//# sourceMappingURL=dateTimestampProvider.js.map
 
-var stdoutStream = fs.createWriteStream(stdoutFile);
-var stderrStream = fs.createWriteStream(stderrFile);
+/***/ }),
 
-c.stdout.pipe(stdoutStream);
-c.stderr.pipe(stderrStream);
-c.stdout.pipe(process.stdout);
-c.stderr.pipe(process.stderr);
+/***/ 63475:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-if (pipe) {
-  c.stdin.end(pipe);
-}
+"use strict";
 
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.immediateProvider = void 0;
+var Immediate_1 = __nccwpck_require__(73555);
+var setImmediate = Immediate_1.Immediate.setImmediate, clearImmediate = Immediate_1.Immediate.clearImmediate;
+exports.immediateProvider = {
+    setImmediate: function () {
+        var args = [];
+        for (var _i = 0; _i < arguments.length; _i++) {
+            args[_i] = arguments[_i];
+        }
+        var delegate = exports.immediateProvider.delegate;
+        return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate).apply(void 0, __spreadArray([], __read(args)));
+    },
+    clearImmediate: function (handle) {
+        var delegate = exports.immediateProvider.delegate;
+        return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle);
+    },
+    delegate: undefined,
+};
+//# sourceMappingURL=immediateProvider.js.map
 
 /***/ }),
 
-/***/ 10896:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 55341:
+/***/ (function(__unused_webpack_module, exports) {
 
-var common = __nccwpck_require__(53687);
-var _tempDir = (__nccwpck_require__(76150).tempDir);
-var _pwd = __nccwpck_require__(58553);
-var path = __nccwpck_require__(71017);
-var fs = __nccwpck_require__(57147);
-var child = __nccwpck_require__(32081);
+"use strict";
 
-var DEFAULT_MAXBUFFER_SIZE = 20 * 1024 * 1024;
-var DEFAULT_ERROR_CODE = 1;
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.intervalProvider = void 0;
+exports.intervalProvider = {
+    setInterval: function (handler, timeout) {
+        var args = [];
+        for (var _i = 2; _i < arguments.length; _i++) {
+            args[_i - 2] = arguments[_i];
+        }
+        var delegate = exports.intervalProvider.delegate;
+        if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {
+            return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout], __read(args)));
+        }
+        return setInterval.apply(void 0, __spreadArray([handler, timeout], __read(args)));
+    },
+    clearInterval: function (handle) {
+        var delegate = exports.intervalProvider.delegate;
+        return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);
+    },
+    delegate: undefined,
+};
+//# sourceMappingURL=intervalProvider.js.map
 
-common.register('exec', _exec, {
-  unix: false,
-  canReceivePipe: true,
-  wrapOutput: false,
-});
+/***/ }),
 
-// We use this function to run `exec` synchronously while also providing realtime
-// output.
-function execSync(cmd, opts, pipe) {
-  if (!common.config.execPath) {
-    common.error('Unable to find a path to the node binary. Please manually set config.execPath');
-  }
+/***/ 70143:
+/***/ ((__unused_webpack_module, exports) => {
 
-  var tempDir = _tempDir();
-  var paramsFile = path.resolve(tempDir + '/' + common.randomFileName());
-  var stderrFile = path.resolve(tempDir + '/' + common.randomFileName());
-  var stdoutFile = path.resolve(tempDir + '/' + common.randomFileName());
+"use strict";
 
-  opts = common.extend({
-    silent: common.config.silent,
-    cwd: _pwd().toString(),
-    env: process.env,
-    maxBuffer: DEFAULT_MAXBUFFER_SIZE,
-    encoding: 'utf8',
-  }, opts);
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.performanceTimestampProvider = void 0;
+exports.performanceTimestampProvider = {
+    now: function () {
+        return (exports.performanceTimestampProvider.delegate || performance).now();
+    },
+    delegate: undefined,
+};
+//# sourceMappingURL=performanceTimestampProvider.js.map
 
-  if (fs.existsSync(paramsFile)) common.unlinkSync(paramsFile);
-  if (fs.existsSync(stderrFile)) common.unlinkSync(stderrFile);
-  if (fs.existsSync(stdoutFile)) common.unlinkSync(stdoutFile);
+/***/ }),
 
-  opts.cwd = path.resolve(opts.cwd);
+/***/ 82059:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  var paramsToSerialize = {
-    command: cmd,
-    execOptions: opts,
-    pipe: pipe,
-    stdoutFile: stdoutFile,
-    stderrFile: stderrFile,
-  };
+"use strict";
 
-  // Create the files and ensure these are locked down (for read and write) to
-  // the current user. The main concerns here are:
-  //
-  // * If we execute a command which prints sensitive output, then
-  //   stdoutFile/stderrFile must not be readable by other users.
-  // * paramsFile must not be readable by other users, or else they can read it
-  //   to figure out the path for stdoutFile/stderrFile and create these first
-  //   (locked down to their own access), which will crash exec() when it tries
-  //   to write to the files.
-  function writeFileLockedDown(filePath, data) {
-    fs.writeFileSync(filePath, data, {
-      encoding: 'utf8',
-      mode: parseInt('600', 8),
-    });
-  }
-  writeFileLockedDown(stdoutFile, '');
-  writeFileLockedDown(stderrFile, '');
-  writeFileLockedDown(paramsFile, JSON.stringify(paramsToSerialize));
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.queue = exports.queueScheduler = void 0;
+var QueueAction_1 = __nccwpck_require__(32161);
+var QueueScheduler_1 = __nccwpck_require__(48527);
+exports.queueScheduler = new QueueScheduler_1.QueueScheduler(QueueAction_1.QueueAction);
+exports.queue = exports.queueScheduler;
+//# sourceMappingURL=queue.js.map
 
-  var execArgs = [
-    __nccwpck_require__.ab + "exec-child.js",
-    paramsFile,
-  ];
+/***/ }),
 
-  /* istanbul ignore else */
-  if (opts.silent) {
-    opts.stdio = 'ignore';
-  } else {
-    opts.stdio = [0, 1, 2];
-  }
+/***/ 1613:
+/***/ (function(__unused_webpack_module, exports) {
 
-  var code = 0;
+"use strict";
 
-  // Welcome to the future
-  try {
-    // Bad things if we pass in a `shell` option to child_process.execFileSync,
-    // so we need to explicitly remove it here.
-    delete opts.shell;
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
+    try {
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+    }
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.timeoutProvider = void 0;
+exports.timeoutProvider = {
+    setTimeout: function (handler, timeout) {
+        var args = [];
+        for (var _i = 2; _i < arguments.length; _i++) {
+            args[_i - 2] = arguments[_i];
+        }
+        var delegate = exports.timeoutProvider.delegate;
+        if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
+            return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args)));
+        }
+        return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args)));
+    },
+    clearTimeout: function (handle) {
+        var delegate = exports.timeoutProvider.delegate;
+        return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
+    },
+    delegate: undefined,
+};
+//# sourceMappingURL=timeoutProvider.js.map
 
-    child.execFileSync(common.config.execPath, execArgs, opts);
-  } catch (e) {
-    // Commands with non-zero exit code raise an exception.
-    code = e.status || DEFAULT_ERROR_CODE;
-  }
+/***/ }),
 
-  // fs.readFileSync uses buffer encoding by default, so call
-  // it without the encoding option if the encoding is 'buffer'.
-  // Also, if the exec timeout is too short for node to start up,
-  // the files will not be created, so these calls will throw.
-  var stdout = '';
-  var stderr = '';
-  if (opts.encoding === 'buffer') {
-    stdout = fs.readFileSync(stdoutFile);
-    stderr = fs.readFileSync(stderrFile);
-  } else {
-    stdout = fs.readFileSync(stdoutFile, opts.encoding);
-    stderr = fs.readFileSync(stderrFile, opts.encoding);
-  }
+/***/ 85517:
+/***/ ((__unused_webpack_module, exports) => {
 
-  // No biggie if we can't erase the files now -- they're in a temp dir anyway
-  // and we locked down permissions (see the note above).
-  try { common.unlinkSync(paramsFile); } catch (e) {}
-  try { common.unlinkSync(stderrFile); } catch (e) {}
-  try { common.unlinkSync(stdoutFile); } catch (e) {}
+"use strict";
 
-  if (code !== 0) {
-    // Note: `silent` should be unconditionally true to avoid double-printing
-    // the command's stderr, and to avoid printing any stderr when the user has
-    // set `shell.config.silent`.
-    common.error(stderr, code, { continue: true, silent: true });
-  }
-  var obj = common.ShellString(stdout, stderr, code);
-  return obj;
-} // execSync()
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.iterator = exports.getSymbolIterator = void 0;
+function getSymbolIterator() {
+    if (typeof Symbol !== 'function' || !Symbol.iterator) {
+        return '@@iterator';
+    }
+    return Symbol.iterator;
+}
+exports.getSymbolIterator = getSymbolIterator;
+exports.iterator = getSymbolIterator();
+//# sourceMappingURL=iterator.js.map
 
-// Wrapper around exec() to enable echoing output to console in real time
-function execAsync(cmd, opts, pipe, callback) {
-  opts = common.extend({
-    silent: common.config.silent,
-    cwd: _pwd().toString(),
-    env: process.env,
-    maxBuffer: DEFAULT_MAXBUFFER_SIZE,
-    encoding: 'utf8',
-  }, opts);
+/***/ }),
 
-  var c = child.exec(cmd, opts, function (err, stdout, stderr) {
-    if (callback) {
-      if (!err) {
-        callback(0, stdout, stderr);
-      } else if (err.code === undefined) {
-        // See issue #536
-        /* istanbul ignore next */
-        callback(1, stdout, stderr);
-      } else {
-        callback(err.code, stdout, stderr);
-      }
-    }
-  });
+/***/ 17186:
+/***/ ((__unused_webpack_module, exports) => {
 
-  if (pipe) c.stdin.end(pipe);
+"use strict";
 
-  if (!opts.silent) {
-    c.stdout.pipe(process.stdout);
-    c.stderr.pipe(process.stderr);
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.observable = void 0;
+exports.observable = (function () { return (typeof Symbol === 'function' && Symbol.observable) || '@@observable'; })();
+//# sourceMappingURL=observable.js.map
 
-  return c;
-}
+/***/ }),
 
-//@
-//@ ### exec(command [, options] [, callback])
-//@
-//@ Available options:
-//@
-//@ + `async`: Asynchronous execution. If a callback is provided, it will be set to
-//@   `true`, regardless of the passed value (default: `false`).
-//@ + `silent`: Do not echo program output to console (default: `false`).
-//@ + `encoding`: Character encoding to use. Affects the values returned to stdout and stderr, and
-//@   what is written to stdout and stderr when not in silent mode (default: `'utf8'`).
-//@ + and any option available to Node.js's
-//@   [`child_process.exec()`](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback)
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ var version = exec('node --version', {silent:true}).stdout;
-//@
-//@ var child = exec('some_long_running_process', {async:true});
-//@ child.stdout.on('data', function(data) {
-//@   /* ... do something with data ... */
-//@ });
-//@
-//@ exec('some_long_running_process', function(code, stdout, stderr) {
-//@   console.log('Exit code:', code);
-//@   console.log('Program output:', stdout);
-//@   console.log('Program stderr:', stderr);
-//@ });
-//@ ```
-//@
-//@ Executes the given `command` _synchronously_, unless otherwise specified.  When in synchronous
-//@ mode, this returns a `ShellString` (compatible with ShellJS v0.6.x, which returns an object
-//@ of the form `{ code:..., stdout:... , stderr:... }`). Otherwise, this returns the child process
-//@ object, and the `callback` receives the arguments `(code, stdout, stderr)`.
-//@
-//@ Not seeing the behavior you want? `exec()` runs everything through `sh`
-//@ by default (or `cmd.exe` on Windows), which differs from `bash`. If you
-//@ need bash-specific behavior, try out the `{shell: 'path/to/bash'}` option.
-function _exec(command, options, callback) {
-  options = options || {};
-  if (!command) common.error('must specify command');
+/***/ 36639:
+/***/ ((__unused_webpack_module, exports) => {
 
-  var pipe = common.readFromPipe();
+"use strict";
 
-  // Callback is defined instead of options.
-  if (typeof options === 'function') {
-    callback = options;
-    options = { async: true };
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+//# sourceMappingURL=types.js.map
 
-  // Callback is defined with options.
-  if (typeof options === 'object' && typeof callback === 'function') {
-    options.async = true;
-  }
+/***/ }),
 
-  options = common.extend({
-    silent: common.config.silent,
-    async: false,
-  }, options);
+/***/ 49796:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  if (options.async) {
-    return execAsync(command, options, pipe, callback);
-  } else {
-    return execSync(command, options, pipe);
-  }
-}
-module.exports = _exec;
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ArgumentOutOfRangeError = void 0;
+var createErrorClass_1 = __nccwpck_require__(8858);
+exports.ArgumentOutOfRangeError = createErrorClass_1.createErrorClass(function (_super) {
+    return function ArgumentOutOfRangeErrorImpl() {
+        _super(this);
+        this.name = 'ArgumentOutOfRangeError';
+        this.message = 'argument out of range';
+    };
+});
+//# sourceMappingURL=ArgumentOutOfRangeError.js.map
 
 /***/ }),
 
-/***/ 47838:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 99391:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-var path = __nccwpck_require__(71017);
-var common = __nccwpck_require__(53687);
-var _ls = __nccwpck_require__(35561);
+"use strict";
 
-common.register('find', _find, {});
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.EmptyError = void 0;
+var createErrorClass_1 = __nccwpck_require__(8858);
+exports.EmptyError = createErrorClass_1.createErrorClass(function (_super) { return function EmptyErrorImpl() {
+    _super(this);
+    this.name = 'EmptyError';
+    this.message = 'no elements in sequence';
+}; });
+//# sourceMappingURL=EmptyError.js.map
 
-//@
-//@ ### find(path [, path ...])
-//@ ### find(path_array)
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ find('src', 'lib');
-//@ find(['src', 'lib']); // same as above
-//@ find('.').filter(function(file) { return file.match(/\.js$/); });
-//@ ```
-//@
-//@ Returns array of all files (however deep) in the given paths.
-//@
-//@ The main difference from `ls('-R', path)` is that the resulting file names
-//@ include the base directories (e.g., `lib/resources/file1` instead of just `file1`).
-function _find(options, paths) {
-  if (!paths) {
-    common.error('no path specified');
-  } else if (typeof paths === 'string') {
-    paths = [].slice.call(arguments, 1);
-  }
-
-  var list = [];
-
-  function pushFile(file) {
-    if (process.platform === 'win32') {
-      file = file.replace(/\\/g, '/');
-    }
-    list.push(file);
-  }
-
-  // why not simply do `ls('-R', paths)`? because the output wouldn't give the base dirs
-  // to get the base dir in the output, we need instead `ls('-R', 'dir/*')` for every directory
+/***/ }),
 
-  paths.forEach(function (file) {
-    var stat;
-    try {
-      stat = common.statFollowLinks(file);
-    } catch (e) {
-      common.error('no such file or directory: ' + file);
-    }
+/***/ 73555:
+/***/ ((__unused_webpack_module, exports) => {
 
-    pushFile(file);
+"use strict";
 
-    if (stat.isDirectory()) {
-      _ls({ recursive: true, all: true }, file).forEach(function (subfile) {
-        pushFile(path.join(file, subfile));
-      });
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.TestTools = exports.Immediate = void 0;
+var nextHandle = 1;
+var resolved;
+var activeHandles = {};
+function findAndClearHandle(handle) {
+    if (handle in activeHandles) {
+        delete activeHandles[handle];
+        return true;
     }
-  });
-
-  return list;
+    return false;
 }
-module.exports = _find;
-
+exports.Immediate = {
+    setImmediate: function (cb) {
+        var handle = nextHandle++;
+        activeHandles[handle] = true;
+        if (!resolved) {
+            resolved = Promise.resolve();
+        }
+        resolved.then(function () { return findAndClearHandle(handle) && cb(); });
+        return handle;
+    },
+    clearImmediate: function (handle) {
+        findAndClearHandle(handle);
+    },
+};
+exports.TestTools = {
+    pending: function () {
+        return Object.keys(activeHandles).length;
+    }
+};
+//# sourceMappingURL=Immediate.js.map
 
 /***/ }),
 
-/***/ 17417:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 74431:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
+"use strict";
 
-common.register('grep', _grep, {
-  globStart: 2, // don't glob-expand the regex
-  canReceivePipe: true,
-  cmdOptions: {
-    'v': 'inverse',
-    'l': 'nameOnly',
-    'i': 'ignoreCase',
-  },
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.NotFoundError = void 0;
+var createErrorClass_1 = __nccwpck_require__(8858);
+exports.NotFoundError = createErrorClass_1.createErrorClass(function (_super) {
+    return function NotFoundErrorImpl(message) {
+        _super(this);
+        this.name = 'NotFoundError';
+        this.message = message;
+    };
 });
+//# sourceMappingURL=NotFoundError.js.map
 
-//@
-//@ ### grep([options,] regex_filter, file [, file ...])
-//@ ### grep([options,] regex_filter, file_array)
-//@
-//@ Available options:
-//@
-//@ + `-v`: Invert `regex_filter` (only print non-matching lines).
-//@ + `-l`: Print only filenames of matching files.
-//@ + `-i`: Ignore case.
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ grep('-v', 'GLOBAL_VARIABLE', '*.js');
-//@ grep('GLOBAL_VARIABLE', '*.js');
-//@ ```
-//@
-//@ Reads input string from given files and returns a string containing all lines of the
-//@ file that match the given `regex_filter`.
-function _grep(options, regex, files) {
-  // Check if this is coming from a pipe
-  var pipe = common.readFromPipe();
+/***/ }),
 
-  if (!files && !pipe) common.error('no paths given', 2);
+/***/ 95266:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  files = [].slice.call(arguments, 2);
+"use strict";
 
-  if (pipe) {
-    files.unshift('-');
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ObjectUnsubscribedError = void 0;
+var createErrorClass_1 = __nccwpck_require__(8858);
+exports.ObjectUnsubscribedError = createErrorClass_1.createErrorClass(function (_super) {
+    return function ObjectUnsubscribedErrorImpl() {
+        _super(this);
+        this.name = 'ObjectUnsubscribedError';
+        this.message = 'object unsubscribed';
+    };
+});
+//# sourceMappingURL=ObjectUnsubscribedError.js.map
 
-  var grep = [];
-  if (options.ignoreCase) {
-    regex = new RegExp(regex, 'i');
-  }
-  files.forEach(function (file) {
-    if (!fs.existsSync(file) && file !== '-') {
-      common.error('no such file or directory: ' + file, 2, { continue: true });
-      return;
-    }
+/***/ }),
 
-    var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8');
-    if (options.nameOnly) {
-      if (contents.match(regex)) {
-        grep.push(file);
-      }
-    } else {
-      var lines = contents.split('\n');
-      lines.forEach(function (line) {
-        var matched = line.match(regex);
-        if ((options.inverse && !matched) || (!options.inverse && matched)) {
-          grep.push(line);
-        }
-      });
-    }
-  });
+/***/ 49048:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  return grep.join('\n') + '\n';
-}
-module.exports = _grep;
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.SequenceError = void 0;
+var createErrorClass_1 = __nccwpck_require__(8858);
+exports.SequenceError = createErrorClass_1.createErrorClass(function (_super) {
+    return function SequenceErrorImpl(message) {
+        _super(this);
+        this.name = 'SequenceError';
+        this.message = message;
+    };
+});
+//# sourceMappingURL=SequenceError.js.map
 
 /***/ }),
 
-/***/ 6613:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 56776:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
+"use strict";
 
-common.register('head', _head, {
-  canReceivePipe: true,
-  cmdOptions: {
-    'n': 'numLines',
-  },
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.UnsubscriptionError = void 0;
+var createErrorClass_1 = __nccwpck_require__(8858);
+exports.UnsubscriptionError = createErrorClass_1.createErrorClass(function (_super) {
+    return function UnsubscriptionErrorImpl(errors) {
+        _super(this);
+        this.message = errors
+            ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function (err, i) { return i + 1 + ") " + err.toString(); }).join('\n  ')
+            : '';
+        this.name = 'UnsubscriptionError';
+        this.errors = errors;
+    };
 });
+//# sourceMappingURL=UnsubscriptionError.js.map
 
-// Reads |numLines| lines or the entire file, whichever is less.
-function readSomeLines(file, numLines) {
-  var buf = common.buffer();
-  var bufLength = buf.length;
-  var bytesRead = bufLength;
-  var pos = 0;
+/***/ }),
 
-  var fdr = fs.openSync(file, 'r');
-  var numLinesRead = 0;
-  var ret = '';
-  while (bytesRead === bufLength && numLinesRead < numLines) {
-    bytesRead = fs.readSync(fdr, buf, 0, bufLength, pos);
-    var bufStr = buf.toString('utf8', 0, bytesRead);
-    numLinesRead += bufStr.split('\n').length - 1;
-    ret += bufStr;
-    pos += bytesRead;
-  }
+/***/ 34890:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  fs.closeSync(fdr);
-  return ret;
-}
+"use strict";
 
-//@
-//@ ### head([{'-n': \},] file [, file ...])
-//@ ### head([{'-n': \},] file_array)
-//@
-//@ Available options:
-//@
-//@ + `-n `: Show the first `` lines of the files
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ var str = head({'-n': 1}, 'file*.txt');
-//@ var str = head('file1', 'file2');
-//@ var str = head(['file1', 'file2']); // same as above
-//@ ```
-//@
-//@ Read the start of a file.
-function _head(options, files) {
-  var head = [];
-  var pipe = common.readFromPipe();
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.popNumber = exports.popScheduler = exports.popResultSelector = void 0;
+var isFunction_1 = __nccwpck_require__(67206);
+var isScheduler_1 = __nccwpck_require__(84078);
+function last(arr) {
+    return arr[arr.length - 1];
+}
+function popResultSelector(args) {
+    return isFunction_1.isFunction(last(args)) ? args.pop() : undefined;
+}
+exports.popResultSelector = popResultSelector;
+function popScheduler(args) {
+    return isScheduler_1.isScheduler(last(args)) ? args.pop() : undefined;
+}
+exports.popScheduler = popScheduler;
+function popNumber(args, defaultValue) {
+    return typeof last(args) === 'number' ? args.pop() : defaultValue;
+}
+exports.popNumber = popNumber;
+//# sourceMappingURL=args.js.map
 
-  if (!files && !pipe) common.error('no paths given');
+/***/ }),
 
-  var idx = 1;
-  if (options.numLines === true) {
-    idx = 2;
-    options.numLines = Number(arguments[1]);
-  } else if (options.numLines === false) {
-    options.numLines = 10;
-  }
-  files = [].slice.call(arguments, idx);
+/***/ 12920:
+/***/ ((__unused_webpack_module, exports) => {
 
-  if (pipe) {
-    files.unshift('-');
-  }
+"use strict";
 
-  var shouldAppendNewline = false;
-  files.forEach(function (file) {
-    if (file !== '-') {
-      if (!fs.existsSync(file)) {
-        common.error('no such file or directory: ' + file, { continue: true });
-        return;
-      } else if (common.statFollowLinks(file).isDirectory()) {
-        common.error("error reading '" + file + "': Is a directory", {
-          continue: true,
-        });
-        return;
-      }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.argsArgArrayOrObject = void 0;
+var isArray = Array.isArray;
+var getPrototypeOf = Object.getPrototypeOf, objectProto = Object.prototype, getKeys = Object.keys;
+function argsArgArrayOrObject(args) {
+    if (args.length === 1) {
+        var first_1 = args[0];
+        if (isArray(first_1)) {
+            return { args: first_1, keys: null };
+        }
+        if (isPOJO(first_1)) {
+            var keys = getKeys(first_1);
+            return {
+                args: keys.map(function (key) { return first_1[key]; }),
+                keys: keys,
+            };
+        }
     }
+    return { args: args, keys: null };
+}
+exports.argsArgArrayOrObject = argsArgArrayOrObject;
+function isPOJO(obj) {
+    return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;
+}
+//# sourceMappingURL=argsArgArrayOrObject.js.map
 
-    var contents;
-    if (file === '-') {
-      contents = pipe;
-    } else if (options.numLines < 0) {
-      contents = fs.readFileSync(file, 'utf8');
-    } else {
-      contents = readSomeLines(file, options.numLines);
-    }
+/***/ }),
 
-    var lines = contents.split('\n');
-    var hasTrailingNewline = (lines[lines.length - 1] === '');
-    if (hasTrailingNewline) {
-      lines.pop();
-    }
-    shouldAppendNewline = (hasTrailingNewline || options.numLines < lines.length);
+/***/ 18824:
+/***/ ((__unused_webpack_module, exports) => {
 
-    head = head.concat(lines.slice(0, options.numLines));
-  });
+"use strict";
 
-  if (shouldAppendNewline) {
-    head.push(''); // to add a trailing newline once we join
-  }
-  return head.join('\n');
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.argsOrArgArray = void 0;
+var isArray = Array.isArray;
+function argsOrArgArray(args) {
+    return args.length === 1 && isArray(args[0]) ? args[0] : args;
 }
-module.exports = _head;
+exports.argsOrArgArray = argsOrArgArray;
+//# sourceMappingURL=argsOrArgArray.js.map
+
+/***/ }),
 
+/***/ 68499:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.arrRemove = void 0;
+function arrRemove(arr, item) {
+    if (arr) {
+        var index = arr.indexOf(item);
+        0 <= index && arr.splice(index, 1);
+    }
+}
+exports.arrRemove = arrRemove;
+//# sourceMappingURL=arrRemove.js.map
 
 /***/ }),
 
-/***/ 15787:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 8858:
+/***/ ((__unused_webpack_module, exports) => {
 
-var fs = __nccwpck_require__(57147);
-var path = __nccwpck_require__(71017);
-var common = __nccwpck_require__(53687);
+"use strict";
 
-common.register('ln', _ln, {
-  cmdOptions: {
-    's': 'symlink',
-    'f': 'force',
-  },
-});
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.createErrorClass = void 0;
+function createErrorClass(createImpl) {
+    var _super = function (instance) {
+        Error.call(instance);
+        instance.stack = new Error().stack;
+    };
+    var ctorFunc = createImpl(_super);
+    ctorFunc.prototype = Object.create(Error.prototype);
+    ctorFunc.prototype.constructor = ctorFunc;
+    return ctorFunc;
+}
+exports.createErrorClass = createErrorClass;
+//# sourceMappingURL=createErrorClass.js.map
 
-//@
-//@ ### ln([options,] source, dest)
-//@
-//@ Available options:
-//@
-//@ + `-s`: symlink
-//@ + `-f`: force
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ ln('file', 'newlink');
-//@ ln('-sf', 'file', 'existing');
-//@ ```
-//@
-//@ Links `source` to `dest`. Use `-f` to force the link, should `dest` already exist.
-function _ln(options, source, dest) {
-  if (!source || !dest) {
-    common.error('Missing  and/or ');
-  }
+/***/ }),
 
-  source = String(source);
-  var sourcePath = path.normalize(source).replace(RegExp(path.sep + '$'), '');
-  var isAbsolute = (path.resolve(source) === sourcePath);
-  dest = path.resolve(process.cwd(), String(dest));
+/***/ 57834:
+/***/ ((__unused_webpack_module, exports) => {
 
-  if (fs.existsSync(dest)) {
-    if (!options.force) {
-      common.error('Destination file exists', { continue: true });
-    }
+"use strict";
 
-    fs.unlinkSync(dest);
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.createObject = void 0;
+function createObject(keys, values) {
+    return keys.reduce(function (result, key, i) { return ((result[key] = values[i]), result); }, {});
+}
+exports.createObject = createObject;
+//# sourceMappingURL=createObject.js.map
 
-  if (options.symlink) {
-    var isWindows = process.platform === 'win32';
-    var linkType = isWindows ? 'file' : null;
-    var resolvedSourcePath = isAbsolute ? sourcePath : path.resolve(process.cwd(), path.dirname(dest), source);
-    if (!fs.existsSync(resolvedSourcePath)) {
-      common.error('Source file does not exist', { continue: true });
-    } else if (isWindows && common.statFollowLinks(resolvedSourcePath).isDirectory()) {
-      linkType = 'junction';
-    }
+/***/ }),
 
-    try {
-      fs.symlinkSync(linkType === 'junction' ? resolvedSourcePath : source, dest, linkType);
-    } catch (err) {
-      common.error(err.message);
+/***/ 31199:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.captureError = exports.errorContext = void 0;
+var config_1 = __nccwpck_require__(92233);
+var context = null;
+function errorContext(cb) {
+    if (config_1.config.useDeprecatedSynchronousErrorHandling) {
+        var isRoot = !context;
+        if (isRoot) {
+            context = { errorThrown: false, error: null };
+        }
+        cb();
+        if (isRoot) {
+            var _a = context, errorThrown = _a.errorThrown, error = _a.error;
+            context = null;
+            if (errorThrown) {
+                throw error;
+            }
+        }
     }
-  } else {
-    if (!fs.existsSync(source)) {
-      common.error('Source file does not exist', { continue: true });
+    else {
+        cb();
     }
-    try {
-      fs.linkSync(source, dest);
-    } catch (err) {
-      common.error(err.message);
+}
+exports.errorContext = errorContext;
+function captureError(err) {
+    if (config_1.config.useDeprecatedSynchronousErrorHandling && context) {
+        context.errorThrown = true;
+        context.error = err;
     }
-  }
-  return '';
 }
-module.exports = _ln;
-
+exports.captureError = captureError;
+//# sourceMappingURL=errorContext.js.map
 
 /***/ }),
 
-/***/ 35561:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 82877:
+/***/ ((__unused_webpack_module, exports) => {
 
-var path = __nccwpck_require__(71017);
-var fs = __nccwpck_require__(57147);
-var common = __nccwpck_require__(53687);
-var glob = __nccwpck_require__(91957);
+"use strict";
 
-var globPatternRecursive = path.sep + '**';
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.executeSchedule = void 0;
+function executeSchedule(parentSubscription, scheduler, work, delay, repeat) {
+    if (delay === void 0) { delay = 0; }
+    if (repeat === void 0) { repeat = false; }
+    var scheduleSubscription = scheduler.schedule(function () {
+        work();
+        if (repeat) {
+            parentSubscription.add(this.schedule(null, delay));
+        }
+        else {
+            this.unsubscribe();
+        }
+    }, delay);
+    parentSubscription.add(scheduleSubscription);
+    if (!repeat) {
+        return scheduleSubscription;
+    }
+}
+exports.executeSchedule = executeSchedule;
+//# sourceMappingURL=executeSchedule.js.map
 
-common.register('ls', _ls, {
-  cmdOptions: {
-    'R': 'recursive',
-    'A': 'all',
-    'L': 'link',
-    'a': 'all_deprecated',
-    'd': 'directory',
-    'l': 'long',
-  },
-});
+/***/ }),
 
-//@
-//@ ### ls([options,] [path, ...])
-//@ ### ls([options,] path_array)
-//@
-//@ Available options:
-//@
-//@ + `-R`: recursive
-//@ + `-A`: all files (include files beginning with `.`, except for `.` and `..`)
-//@ + `-L`: follow symlinks
-//@ + `-d`: list directories themselves, not their contents
-//@ + `-l`: list objects representing each file, each with fields containing `ls
-//@         -l` output fields. See
-//@         [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats)
-//@         for more info
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ ls('projs/*.js');
-//@ ls('-R', '/users/me', '/tmp');
-//@ ls('-R', ['/users/me', '/tmp']); // same as above
-//@ ls('-l', 'file.txt'); // { name: 'file.txt', mode: 33188, nlink: 1, ...}
-//@ ```
-//@
-//@ Returns array of files in the given `path`, or files in
-//@ the current directory if no `path` is  provided.
-function _ls(options, paths) {
-  if (options.all_deprecated) {
-    // We won't support the -a option as it's hard to image why it's useful
-    // (it includes '.' and '..' in addition to '.*' files)
-    // For backwards compatibility we'll dump a deprecated message and proceed as before
-    common.log('ls: Option -a is deprecated. Use -A instead');
-    options.all = true;
-  }
+/***/ 60283:
+/***/ ((__unused_webpack_module, exports) => {
 
-  if (!paths) {
-    paths = ['.'];
-  } else {
-    paths = [].slice.call(arguments, 1);
-  }
+"use strict";
 
-  var list = [];
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.identity = void 0;
+function identity(x) {
+    return x;
+}
+exports.identity = identity;
+//# sourceMappingURL=identity.js.map
 
-  function pushFile(abs, relName, stat) {
-    if (process.platform === 'win32') {
-      relName = relName.replace(/\\/g, '/');
-    }
-    if (options.long) {
-      stat = stat || (options.link ? common.statFollowLinks(abs) : common.statNoFollowLinks(abs));
-      list.push(addLsAttributes(relName, stat));
-    } else {
-      // list.push(path.relative(rel || '.', file));
-      list.push(relName);
-    }
-  }
+/***/ }),
 
-  paths.forEach(function (p) {
-    var stat;
+/***/ 24461:
+/***/ ((__unused_webpack_module, exports) => {
 
-    try {
-      stat = options.link ? common.statFollowLinks(p) : common.statNoFollowLinks(p);
-      // follow links to directories by default
-      if (stat.isSymbolicLink()) {
-        /* istanbul ignore next */
-        // workaround for https://github.com/shelljs/shelljs/issues/795
-        // codecov seems to have a bug that miscalculate this block as uncovered.
-        // but according to nyc report this block does get covered.
-        try {
-          var _stat = common.statFollowLinks(p);
-          if (_stat.isDirectory()) {
-            stat = _stat;
-          }
-        } catch (_) {} // bad symlink, treat it like a file
-      }
-    } catch (e) {
-      common.error('no such file or directory: ' + p, 2, { continue: true });
-      return;
-    }
+"use strict";
 
-    // If the stat succeeded
-    if (stat.isDirectory() && !options.directory) {
-      if (options.recursive) {
-        // use glob, because it's simple
-        glob.sync(p + globPatternRecursive, { dot: options.all, follow: options.link })
-          .forEach(function (item) {
-            // Glob pattern returns the directory itself and needs to be filtered out.
-            if (path.relative(p, item)) {
-              pushFile(item, path.relative(p, item));
-            }
-          });
-      } else if (options.all) {
-        // use fs.readdirSync, because it's fast
-        fs.readdirSync(p).forEach(function (item) {
-          pushFile(path.join(p, item), item);
-        });
-      } else {
-        // use fs.readdirSync and then filter out secret files
-        fs.readdirSync(p).forEach(function (item) {
-          if (item[0] !== '.') {
-            pushFile(path.join(p, item), item);
-          }
-        });
-      }
-    } else {
-      pushFile(p, p, stat);
-    }
-  });
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isArrayLike = void 0;
+exports.isArrayLike = (function (x) { return x && typeof x.length === 'number' && typeof x !== 'function'; });
+//# sourceMappingURL=isArrayLike.js.map
 
-  // Add methods, to make this more compatible with ShellStrings
-  return list;
-}
+/***/ }),
 
-function addLsAttributes(pathName, stats) {
-  // Note: this object will contain more information than .toString() returns
-  stats.name = pathName;
-  stats.toString = function () {
-    // Return a string resembling unix's `ls -l` format
-    return [this.mode, this.nlink, this.uid, this.gid, this.size, this.mtime, this.name].join(' ');
-  };
-  return stats;
-}
+/***/ 44408:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-module.exports = _ls;
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isAsyncIterable = void 0;
+var isFunction_1 = __nccwpck_require__(67206);
+function isAsyncIterable(obj) {
+    return Symbol.asyncIterator && isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
+}
+exports.isAsyncIterable = isAsyncIterable;
+//# sourceMappingURL=isAsyncIterable.js.map
 
 /***/ }),
 
-/***/ 72695:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 60935:
+/***/ ((__unused_webpack_module, exports) => {
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
-var path = __nccwpck_require__(71017);
+"use strict";
 
-common.register('mkdir', _mkdir, {
-  cmdOptions: {
-    'p': 'fullpath',
-  },
-});
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isValidDate = void 0;
+function isValidDate(value) {
+    return value instanceof Date && !isNaN(value);
+}
+exports.isValidDate = isValidDate;
+//# sourceMappingURL=isDate.js.map
 
-// Recursively creates `dir`
-function mkdirSyncRecursive(dir) {
-  var baseDir = path.dirname(dir);
+/***/ }),
 
-  // Prevents some potential problems arising from malformed UNCs or
-  // insufficient permissions.
-  /* istanbul ignore next */
-  if (baseDir === dir) {
-    common.error('dirname() failed: [' + dir + ']');
-  }
+/***/ 67206:
+/***/ ((__unused_webpack_module, exports) => {
 
-  // Base dir exists, no recursion necessary
-  if (fs.existsSync(baseDir)) {
-    fs.mkdirSync(dir, parseInt('0777', 8));
-    return;
-  }
+"use strict";
 
-  // Base dir does not exist, go recursive
-  mkdirSyncRecursive(baseDir);
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isFunction = void 0;
+function isFunction(value) {
+    return typeof value === 'function';
+}
+exports.isFunction = isFunction;
+//# sourceMappingURL=isFunction.js.map
 
-  // Base dir created, can create dir
-  fs.mkdirSync(dir, parseInt('0777', 8));
+/***/ }),
+
+/***/ 67984:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isInteropObservable = void 0;
+var observable_1 = __nccwpck_require__(17186);
+var isFunction_1 = __nccwpck_require__(67206);
+function isInteropObservable(input) {
+    return isFunction_1.isFunction(input[observable_1.observable]);
 }
+exports.isInteropObservable = isInteropObservable;
+//# sourceMappingURL=isInteropObservable.js.map
 
-//@
-//@ ### mkdir([options,] dir [, dir ...])
-//@ ### mkdir([options,] dir_array)
-//@
-//@ Available options:
-//@
-//@ + `-p`: full path (and create intermediate directories, if necessary)
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ mkdir('-p', '/tmp/a/b/c/d', '/tmp/e/f/g');
-//@ mkdir('-p', ['/tmp/a/b/c/d', '/tmp/e/f/g']); // same as above
-//@ ```
-//@
-//@ Creates directories.
-function _mkdir(options, dirs) {
-  if (!dirs) common.error('no paths given');
+/***/ }),
 
-  if (typeof dirs === 'string') {
-    dirs = [].slice.call(arguments, 1);
-  }
-  // if it's array leave it as it is
+/***/ 94292:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  dirs.forEach(function (dir) {
-    try {
-      var stat = common.statNoFollowLinks(dir);
-      if (!options.fullpath) {
-        common.error('path already exists: ' + dir, { continue: true });
-      } else if (stat.isFile()) {
-        common.error('cannot create directory ' + dir + ': File exists', { continue: true });
-      }
-      return; // skip dir
-    } catch (e) {
-      // do nothing
-    }
+"use strict";
 
-    // Base dir does not exist, and no -p option given
-    var baseDir = path.dirname(dir);
-    if (!fs.existsSync(baseDir) && !options.fullpath) {
-      common.error('no such file or directory: ' + baseDir, { continue: true });
-      return; // skip dir
-    }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isIterable = void 0;
+var iterator_1 = __nccwpck_require__(85517);
+var isFunction_1 = __nccwpck_require__(67206);
+function isIterable(input) {
+    return isFunction_1.isFunction(input === null || input === void 0 ? void 0 : input[iterator_1.iterator]);
+}
+exports.isIterable = isIterable;
+//# sourceMappingURL=isIterable.js.map
 
-    try {
-      if (options.fullpath) {
-        mkdirSyncRecursive(path.resolve(dir));
-      } else {
-        fs.mkdirSync(dir, parseInt('0777', 8));
-      }
-    } catch (e) {
-      var reason;
-      if (e.code === 'EACCES') {
-        reason = 'Permission denied';
-      } else if (e.code === 'ENOTDIR' || e.code === 'ENOENT') {
-        reason = 'Not a directory';
-      } else {
-        /* istanbul ignore next */
-        throw e;
-      }
-      common.error('cannot create directory ' + dir + ': ' + reason, { continue: true });
-    }
-  });
-  return '';
-} // mkdir
-module.exports = _mkdir;
+/***/ }),
+
+/***/ 72259:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isObservable = void 0;
+var Observable_1 = __nccwpck_require__(53014);
+var isFunction_1 = __nccwpck_require__(67206);
+function isObservable(obj) {
+    return !!obj && (obj instanceof Observable_1.Observable || (isFunction_1.isFunction(obj.lift) && isFunction_1.isFunction(obj.subscribe)));
+}
+exports.isObservable = isObservable;
+//# sourceMappingURL=isObservable.js.map
 
 /***/ }),
 
-/***/ 39849:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 65585:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-var fs = __nccwpck_require__(57147);
-var path = __nccwpck_require__(71017);
-var common = __nccwpck_require__(53687);
-var cp = __nccwpck_require__(34932);
-var rm = __nccwpck_require__(22830);
+"use strict";
 
-common.register('mv', _mv, {
-  cmdOptions: {
-    'f': '!no_force',
-    'n': 'no_force',
-  },
-});
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isPromise = void 0;
+var isFunction_1 = __nccwpck_require__(67206);
+function isPromise(value) {
+    return isFunction_1.isFunction(value === null || value === void 0 ? void 0 : value.then);
+}
+exports.isPromise = isPromise;
+//# sourceMappingURL=isPromise.js.map
 
-// Checks if cureent file was created recently
-function checkRecentCreated(sources, index) {
-  var lookedSource = sources[index];
-  return sources.slice(0, index).some(function (src) {
-    return path.basename(src) === path.basename(lookedSource);
-  });
+/***/ }),
+
+/***/ 99621:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __generator = (this && this.__generator) || function (thisArg, body) {
+    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
+    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
+    function verb(n) { return function (v) { return step([n, v]); }; }
+    function step(op) {
+        if (f) throw new TypeError("Generator is already executing.");
+        while (_) try {
+            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
+            if (y = 0, t) op = [op[0] & 2, t.value];
+            switch (op[0]) {
+                case 0: case 1: t = op; break;
+                case 4: _.label++; return { value: op[1], done: false };
+                case 5: _.label++; y = op[1]; op = [0]; continue;
+                case 7: op = _.ops.pop(); _.trys.pop(); continue;
+                default:
+                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
+                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
+                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
+                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
+                    if (t[2]) _.ops.pop();
+                    _.trys.pop(); continue;
+            }
+            op = body.call(thisArg, _);
+        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
+        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
+    }
+};
+var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
+var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
+    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
+    var g = generator.apply(thisArg, _arguments || []), i, q = [];
+    return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
+    function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
+    function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
+    function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
+    function fulfill(value) { resume("next", value); }
+    function reject(value) { resume("throw", value); }
+    function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isReadableStreamLike = exports.readableStreamLikeToAsyncGenerator = void 0;
+var isFunction_1 = __nccwpck_require__(67206);
+function readableStreamLikeToAsyncGenerator(readableStream) {
+    return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
+        var reader, _a, value, done;
+        return __generator(this, function (_b) {
+            switch (_b.label) {
+                case 0:
+                    reader = readableStream.getReader();
+                    _b.label = 1;
+                case 1:
+                    _b.trys.push([1, , 9, 10]);
+                    _b.label = 2;
+                case 2:
+                    if (false) {}
+                    return [4, __await(reader.read())];
+                case 3:
+                    _a = _b.sent(), value = _a.value, done = _a.done;
+                    if (!done) return [3, 5];
+                    return [4, __await(void 0)];
+                case 4: return [2, _b.sent()];
+                case 5: return [4, __await(value)];
+                case 6: return [4, _b.sent()];
+                case 7:
+                    _b.sent();
+                    return [3, 2];
+                case 8: return [3, 10];
+                case 9:
+                    reader.releaseLock();
+                    return [7];
+                case 10: return [2];
+            }
+        });
+    });
+}
+exports.readableStreamLikeToAsyncGenerator = readableStreamLikeToAsyncGenerator;
+function isReadableStreamLike(obj) {
+    return isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);
 }
+exports.isReadableStreamLike = isReadableStreamLike;
+//# sourceMappingURL=isReadableStreamLike.js.map
 
-//@
-//@ ### mv([options ,] source [, source ...], dest')
-//@ ### mv([options ,] source_array, dest')
-//@
-//@ Available options:
-//@
-//@ + `-f`: force (default behavior)
-//@ + `-n`: no-clobber
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ mv('-n', 'file', 'dir/');
-//@ mv('file1', 'file2', 'dir/');
-//@ mv(['file1', 'file2'], 'dir/'); // same as above
-//@ ```
-//@
-//@ Moves `source` file(s) to `dest`.
-function _mv(options, sources, dest) {
-  // Get sources, dest
-  if (arguments.length < 3) {
-    common.error('missing  and/or ');
-  } else if (arguments.length > 3) {
-    sources = [].slice.call(arguments, 1, arguments.length - 1);
-    dest = arguments[arguments.length - 1];
-  } else if (typeof sources === 'string') {
-    sources = [sources];
-  } else {
-    // TODO(nate): figure out if we actually need this line
-    common.error('invalid arguments');
-  }
+/***/ }),
 
-  var exists = fs.existsSync(dest);
-  var stats = exists && common.statFollowLinks(dest);
+/***/ 84078:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  // Dest is not existing dir, but multiple sources given
-  if ((!exists || !stats.isDirectory()) && sources.length > 1) {
-    common.error('dest is not a directory (too many sources)');
-  }
+"use strict";
 
-  // Dest is an existing file, but no -f given
-  if (exists && stats.isFile() && options.no_force) {
-    common.error('dest file already exists: ' + dest);
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isScheduler = void 0;
+var isFunction_1 = __nccwpck_require__(67206);
+function isScheduler(value) {
+    return value && isFunction_1.isFunction(value.schedule);
+}
+exports.isScheduler = isScheduler;
+//# sourceMappingURL=isScheduler.js.map
 
-  sources.forEach(function (src, srcIndex) {
-    if (!fs.existsSync(src)) {
-      common.error('no such file or directory: ' + src, { continue: true });
-      return; // skip file
-    }
+/***/ }),
 
-    // If here, src exists
+/***/ 38669:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-    // When copying to '/path/dir':
-    //    thisDest = '/path/dir/file1'
-    var thisDest = dest;
-    if (fs.existsSync(dest) && common.statFollowLinks(dest).isDirectory()) {
-      thisDest = path.normalize(dest + '/' + path.basename(src));
-    }
+"use strict";
 
-    var thisDestExists = fs.existsSync(thisDest);
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.operate = exports.hasLift = void 0;
+var isFunction_1 = __nccwpck_require__(67206);
+function hasLift(source) {
+    return isFunction_1.isFunction(source === null || source === void 0 ? void 0 : source.lift);
+}
+exports.hasLift = hasLift;
+function operate(init) {
+    return function (source) {
+        if (hasLift(source)) {
+            return source.lift(function (liftedSource) {
+                try {
+                    return init(liftedSource, this);
+                }
+                catch (err) {
+                    this.error(err);
+                }
+            });
+        }
+        throw new TypeError('Unable to lift unknown Observable type');
+    };
+}
+exports.operate = operate;
+//# sourceMappingURL=lift.js.map
 
-    if (thisDestExists && checkRecentCreated(sources, srcIndex)) {
-      // cannot overwrite file created recently in current execution, but we want to continue copying other files
-      if (!options.no_force) {
-        common.error("will not overwrite just-created '" + thisDest + "' with '" + src + "'", { continue: true });
-      }
-      return;
-    }
+/***/ }),
 
-    if (fs.existsSync(thisDest) && options.no_force) {
-      common.error('dest file already exists: ' + thisDest, { continue: true });
-      return; // skip file
-    }
+/***/ 78934:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
-    if (path.resolve(src) === path.dirname(path.resolve(thisDest))) {
-      common.error('cannot move to self: ' + src, { continue: true });
-      return; // skip file
-    }
+"use strict";
 
+var __read = (this && this.__read) || function (o, n) {
+    var m = typeof Symbol === "function" && o[Symbol.iterator];
+    if (!m) return o;
+    var i = m.call(o), r, ar = [], e;
     try {
-      fs.renameSync(src, thisDest);
-    } catch (e) {
-      /* istanbul ignore next */
-      if (e.code === 'EXDEV') {
-        // If we're trying to `mv` to an external partition, we'll actually need
-        // to perform a copy and then clean up the original file. If either the
-        // copy or the rm fails with an exception, we should allow this
-        // exception to pass up to the top level.
-        cp('-r', src, thisDest);
-        rm('-rf', src);
-      }
+        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
     }
-  }); // forEach(src)
-  return '';
-} // mv
-module.exports = _mv;
-
+    catch (error) { e = { error: error }; }
+    finally {
+        try {
+            if (r && !r.done && (m = i["return"])) m.call(i);
+        }
+        finally { if (e) throw e.error; }
+    }
+    return ar;
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
+    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
+        to[j] = from[i];
+    return to;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.mapOneOrManyArgs = void 0;
+var map_1 = __nccwpck_require__(5987);
+var isArray = Array.isArray;
+function callOrApply(fn, args) {
+    return isArray(args) ? fn.apply(void 0, __spreadArray([], __read(args))) : fn(args);
+}
+function mapOneOrManyArgs(fn) {
+    return map_1.map(function (args) { return callOrApply(fn, args); });
+}
+exports.mapOneOrManyArgs = mapOneOrManyArgs;
+//# sourceMappingURL=mapOneOrManyArgs.js.map
 
 /***/ }),
 
-/***/ 50227:
-/***/ (() => {
+/***/ 11642:
+/***/ ((__unused_webpack_module, exports) => {
 
-// see dirs.js
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.noop = void 0;
+function noop() { }
+exports.noop = noop;
+//# sourceMappingURL=noop.js.map
 
 /***/ }),
 
-/***/ 44177:
-/***/ (() => {
+/***/ 54338:
+/***/ ((__unused_webpack_module, exports) => {
 
-// see dirs.js
+"use strict";
 
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.not = void 0;
+function not(pred, thisArg) {
+    return function (value, index) { return !pred.call(thisArg, value, index); };
+}
+exports.not = not;
+//# sourceMappingURL=not.js.map
 
 /***/ }),
 
-/***/ 58553:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var path = __nccwpck_require__(71017);
-var common = __nccwpck_require__(53687);
+/***/ 49587:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-common.register('pwd', _pwd, {
-  allowGlobbing: false,
-});
+"use strict";
 
-//@
-//@ ### pwd()
-//@
-//@ Returns the current directory.
-function _pwd() {
-  var pwd = path.resolve(process.cwd());
-  return pwd;
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.pipeFromArray = exports.pipe = void 0;
+var identity_1 = __nccwpck_require__(60283);
+function pipe() {
+    var fns = [];
+    for (var _i = 0; _i < arguments.length; _i++) {
+        fns[_i] = arguments[_i];
+    }
+    return pipeFromArray(fns);
 }
-module.exports = _pwd;
-
+exports.pipe = pipe;
+function pipeFromArray(fns) {
+    if (fns.length === 0) {
+        return identity_1.identity;
+    }
+    if (fns.length === 1) {
+        return fns[0];
+    }
+    return function piped(input) {
+        return fns.reduce(function (prev, fn) { return fn(prev); }, input);
+    };
+}
+exports.pipeFromArray = pipeFromArray;
+//# sourceMappingURL=pipe.js.map
 
 /***/ }),
 
-/***/ 22830:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 92445:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
+"use strict";
 
-common.register('rm', _rm, {
-  cmdOptions: {
-    'f': 'force',
-    'r': 'recursive',
-    'R': 'recursive',
-  },
-});
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.reportUnhandledError = void 0;
+var config_1 = __nccwpck_require__(92233);
+var timeoutProvider_1 = __nccwpck_require__(1613);
+function reportUnhandledError(err) {
+    timeoutProvider_1.timeoutProvider.setTimeout(function () {
+        var onUnhandledError = config_1.config.onUnhandledError;
+        if (onUnhandledError) {
+            onUnhandledError(err);
+        }
+        else {
+            throw err;
+        }
+    });
+}
+exports.reportUnhandledError = reportUnhandledError;
+//# sourceMappingURL=reportUnhandledError.js.map
 
-// Recursively removes 'dir'
-// Adapted from https://github.com/ryanmcgrath/wrench-js
-//
-// Copyright (c) 2010 Ryan McGrath
-// Copyright (c) 2012 Artur Adib
-//
-// Licensed under the MIT License
-// http://www.opensource.org/licenses/mit-license.php
-function rmdirSyncRecursive(dir, force, fromSymlink) {
-  var files;
+/***/ }),
 
-  files = fs.readdirSync(dir);
+/***/ 97364:
+/***/ ((__unused_webpack_module, exports) => {
 
-  // Loop through and delete everything in the sub-tree after checking it
-  for (var i = 0; i < files.length; i++) {
-    var file = dir + '/' + files[i];
-    var currFile = common.statNoFollowLinks(file);
+"use strict";
 
-    if (currFile.isDirectory()) { // Recursive function back to the beginning
-      rmdirSyncRecursive(file, force);
-    } else { // Assume it's a file - perhaps a try/catch belongs here?
-      if (force || isWriteable(file)) {
-        try {
-          common.unlinkSync(file);
-        } catch (e) {
-          /* istanbul ignore next */
-          common.error('could not remove file (code ' + e.code + '): ' + file, {
-            continue: true,
-          });
-        }
-      }
-    }
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.createInvalidObservableTypeError = void 0;
+function createInvalidObservableTypeError(input) {
+    return new TypeError("You provided " + (input !== null && typeof input === 'object' ? 'an invalid object' : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
+}
+exports.createInvalidObservableTypeError = createInvalidObservableTypeError;
+//# sourceMappingURL=throwUnobservableError.js.map
 
-  // if was directory was referenced through a symbolic link,
-  // the contents should be removed, but not the directory itself
-  if (fromSymlink) return;
+/***/ }),
 
-  // Now that we know everything in the sub-tree has been deleted, we can delete the main directory.
-  // Huzzah for the shopkeep.
+/***/ 50749:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-  var result;
-  try {
-    // Retry on windows, sometimes it takes a little time before all the files in the directory are gone
-    var start = Date.now();
+"use strict";
 
-    // TODO: replace this with a finite loop
-    for (;;) {
-      try {
-        result = fs.rmdirSync(dir);
-        if (fs.existsSync(dir)) throw { code: 'EAGAIN' };
-        break;
-      } catch (er) {
-        /* istanbul ignore next */
-        // In addition to error codes, also check if the directory still exists and loop again if true
-        if (process.platform === 'win32' && (er.code === 'ENOTEMPTY' || er.code === 'EBUSY' || er.code === 'EPERM' || er.code === 'EAGAIN')) {
-          if (Date.now() - start > 1000) throw er;
-        } else if (er.code === 'ENOENT') {
-          // Directory did not exist, deletion was successful
-          break;
-        } else {
-          throw er;
-        }
-      }
-    }
-  } catch (e) {
-    common.error('could not remove directory (code ' + e.code + '): ' + dir, { continue: true });
-  }
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.mergeAll = exports.merge = exports.max = exports.materialize = exports.mapTo = exports.map = exports.last = exports.isEmpty = exports.ignoreElements = exports.groupBy = exports.first = exports.findIndex = exports.find = exports.finalize = exports.filter = exports.expand = exports.exhaustMap = exports.exhaustAll = exports.exhaust = exports.every = exports.endWith = exports.elementAt = exports.distinctUntilKeyChanged = exports.distinctUntilChanged = exports.distinct = exports.dematerialize = exports.delayWhen = exports.delay = exports.defaultIfEmpty = exports.debounceTime = exports.debounce = exports.count = exports.connect = exports.concatWith = exports.concatMapTo = exports.concatMap = exports.concatAll = exports.concat = exports.combineLatestWith = exports.combineLatest = exports.combineLatestAll = exports.combineAll = exports.catchError = exports.bufferWhen = exports.bufferToggle = exports.bufferTime = exports.bufferCount = exports.buffer = exports.auditTime = exports.audit = void 0;
+exports.timeInterval = exports.throwIfEmpty = exports.throttleTime = exports.throttle = exports.tap = exports.takeWhile = exports.takeUntil = exports.takeLast = exports.take = exports.switchScan = exports.switchMapTo = exports.switchMap = exports.switchAll = exports.subscribeOn = exports.startWith = exports.skipWhile = exports.skipUntil = exports.skipLast = exports.skip = exports.single = exports.shareReplay = exports.share = exports.sequenceEqual = exports.scan = exports.sampleTime = exports.sample = exports.refCount = exports.retryWhen = exports.retry = exports.repeatWhen = exports.repeat = exports.reduce = exports.raceWith = exports.race = exports.publishReplay = exports.publishLast = exports.publishBehavior = exports.publish = exports.pluck = exports.partition = exports.pairwise = exports.onErrorResumeNext = exports.observeOn = exports.multicast = exports.min = exports.mergeWith = exports.mergeScan = exports.mergeMapTo = exports.mergeMap = exports.flatMap = void 0;
+exports.zipWith = exports.zipAll = exports.zip = exports.withLatestFrom = exports.windowWhen = exports.windowToggle = exports.windowTime = exports.windowCount = exports.window = exports.toArray = exports.timestamp = exports.timeoutWith = exports.timeout = void 0;
+var audit_1 = __nccwpck_require__(82704);
+Object.defineProperty(exports, "audit", ({ enumerable: true, get: function () { return audit_1.audit; } }));
+var auditTime_1 = __nccwpck_require__(18780);
+Object.defineProperty(exports, "auditTime", ({ enumerable: true, get: function () { return auditTime_1.auditTime; } }));
+var buffer_1 = __nccwpck_require__(34253);
+Object.defineProperty(exports, "buffer", ({ enumerable: true, get: function () { return buffer_1.buffer; } }));
+var bufferCount_1 = __nccwpck_require__(17253);
+Object.defineProperty(exports, "bufferCount", ({ enumerable: true, get: function () { return bufferCount_1.bufferCount; } }));
+var bufferTime_1 = __nccwpck_require__(73102);
+Object.defineProperty(exports, "bufferTime", ({ enumerable: true, get: function () { return bufferTime_1.bufferTime; } }));
+var bufferToggle_1 = __nccwpck_require__(83781);
+Object.defineProperty(exports, "bufferToggle", ({ enumerable: true, get: function () { return bufferToggle_1.bufferToggle; } }));
+var bufferWhen_1 = __nccwpck_require__(82855);
+Object.defineProperty(exports, "bufferWhen", ({ enumerable: true, get: function () { return bufferWhen_1.bufferWhen; } }));
+var catchError_1 = __nccwpck_require__(37765);
+Object.defineProperty(exports, "catchError", ({ enumerable: true, get: function () { return catchError_1.catchError; } }));
+var combineAll_1 = __nccwpck_require__(88817);
+Object.defineProperty(exports, "combineAll", ({ enumerable: true, get: function () { return combineAll_1.combineAll; } }));
+var combineLatestAll_1 = __nccwpck_require__(91063);
+Object.defineProperty(exports, "combineLatestAll", ({ enumerable: true, get: function () { return combineLatestAll_1.combineLatestAll; } }));
+var combineLatest_1 = __nccwpck_require__(96008);
+Object.defineProperty(exports, "combineLatest", ({ enumerable: true, get: function () { return combineLatest_1.combineLatest; } }));
+var combineLatestWith_1 = __nccwpck_require__(19044);
+Object.defineProperty(exports, "combineLatestWith", ({ enumerable: true, get: function () { return combineLatestWith_1.combineLatestWith; } }));
+var concat_1 = __nccwpck_require__(18500);
+Object.defineProperty(exports, "concat", ({ enumerable: true, get: function () { return concat_1.concat; } }));
+var concatAll_1 = __nccwpck_require__(88049);
+Object.defineProperty(exports, "concatAll", ({ enumerable: true, get: function () { return concatAll_1.concatAll; } }));
+var concatMap_1 = __nccwpck_require__(19130);
+Object.defineProperty(exports, "concatMap", ({ enumerable: true, get: function () { return concatMap_1.concatMap; } }));
+var concatMapTo_1 = __nccwpck_require__(61596);
+Object.defineProperty(exports, "concatMapTo", ({ enumerable: true, get: function () { return concatMapTo_1.concatMapTo; } }));
+var concatWith_1 = __nccwpck_require__(97998);
+Object.defineProperty(exports, "concatWith", ({ enumerable: true, get: function () { return concatWith_1.concatWith; } }));
+var connect_1 = __nccwpck_require__(51101);
+Object.defineProperty(exports, "connect", ({ enumerable: true, get: function () { return connect_1.connect; } }));
+var count_1 = __nccwpck_require__(36571);
+Object.defineProperty(exports, "count", ({ enumerable: true, get: function () { return count_1.count; } }));
+var debounce_1 = __nccwpck_require__(19348);
+Object.defineProperty(exports, "debounce", ({ enumerable: true, get: function () { return debounce_1.debounce; } }));
+var debounceTime_1 = __nccwpck_require__(62379);
+Object.defineProperty(exports, "debounceTime", ({ enumerable: true, get: function () { return debounceTime_1.debounceTime; } }));
+var defaultIfEmpty_1 = __nccwpck_require__(30621);
+Object.defineProperty(exports, "defaultIfEmpty", ({ enumerable: true, get: function () { return defaultIfEmpty_1.defaultIfEmpty; } }));
+var delay_1 = __nccwpck_require__(99818);
+Object.defineProperty(exports, "delay", ({ enumerable: true, get: function () { return delay_1.delay; } }));
+var delayWhen_1 = __nccwpck_require__(16994);
+Object.defineProperty(exports, "delayWhen", ({ enumerable: true, get: function () { return delayWhen_1.delayWhen; } }));
+var dematerialize_1 = __nccwpck_require__(95338);
+Object.defineProperty(exports, "dematerialize", ({ enumerable: true, get: function () { return dematerialize_1.dematerialize; } }));
+var distinct_1 = __nccwpck_require__(52594);
+Object.defineProperty(exports, "distinct", ({ enumerable: true, get: function () { return distinct_1.distinct; } }));
+var distinctUntilChanged_1 = __nccwpck_require__(20632);
+Object.defineProperty(exports, "distinctUntilChanged", ({ enumerable: true, get: function () { return distinctUntilChanged_1.distinctUntilChanged; } }));
+var distinctUntilKeyChanged_1 = __nccwpck_require__(13809);
+Object.defineProperty(exports, "distinctUntilKeyChanged", ({ enumerable: true, get: function () { return distinctUntilKeyChanged_1.distinctUntilKeyChanged; } }));
+var elementAt_1 = __nccwpck_require__(73381);
+Object.defineProperty(exports, "elementAt", ({ enumerable: true, get: function () { return elementAt_1.elementAt; } }));
+var endWith_1 = __nccwpck_require__(42961);
+Object.defineProperty(exports, "endWith", ({ enumerable: true, get: function () { return endWith_1.endWith; } }));
+var every_1 = __nccwpck_require__(69559);
+Object.defineProperty(exports, "every", ({ enumerable: true, get: function () { return every_1.every; } }));
+var exhaust_1 = __nccwpck_require__(75686);
+Object.defineProperty(exports, "exhaust", ({ enumerable: true, get: function () { return exhaust_1.exhaust; } }));
+var exhaustAll_1 = __nccwpck_require__(79777);
+Object.defineProperty(exports, "exhaustAll", ({ enumerable: true, get: function () { return exhaustAll_1.exhaustAll; } }));
+var exhaustMap_1 = __nccwpck_require__(21527);
+Object.defineProperty(exports, "exhaustMap", ({ enumerable: true, get: function () { return exhaustMap_1.exhaustMap; } }));
+var expand_1 = __nccwpck_require__(21585);
+Object.defineProperty(exports, "expand", ({ enumerable: true, get: function () { return expand_1.expand; } }));
+var filter_1 = __nccwpck_require__(36894);
+Object.defineProperty(exports, "filter", ({ enumerable: true, get: function () { return filter_1.filter; } }));
+var finalize_1 = __nccwpck_require__(4013);
+Object.defineProperty(exports, "finalize", ({ enumerable: true, get: function () { return finalize_1.finalize; } }));
+var find_1 = __nccwpck_require__(28981);
+Object.defineProperty(exports, "find", ({ enumerable: true, get: function () { return find_1.find; } }));
+var findIndex_1 = __nccwpck_require__(92602);
+Object.defineProperty(exports, "findIndex", ({ enumerable: true, get: function () { return findIndex_1.findIndex; } }));
+var first_1 = __nccwpck_require__(63345);
+Object.defineProperty(exports, "first", ({ enumerable: true, get: function () { return first_1.first; } }));
+var groupBy_1 = __nccwpck_require__(51650);
+Object.defineProperty(exports, "groupBy", ({ enumerable: true, get: function () { return groupBy_1.groupBy; } }));
+var ignoreElements_1 = __nccwpck_require__(31062);
+Object.defineProperty(exports, "ignoreElements", ({ enumerable: true, get: function () { return ignoreElements_1.ignoreElements; } }));
+var isEmpty_1 = __nccwpck_require__(77722);
+Object.defineProperty(exports, "isEmpty", ({ enumerable: true, get: function () { return isEmpty_1.isEmpty; } }));
+var last_1 = __nccwpck_require__(46831);
+Object.defineProperty(exports, "last", ({ enumerable: true, get: function () { return last_1.last; } }));
+var map_1 = __nccwpck_require__(5987);
+Object.defineProperty(exports, "map", ({ enumerable: true, get: function () { return map_1.map; } }));
+var mapTo_1 = __nccwpck_require__(52300);
+Object.defineProperty(exports, "mapTo", ({ enumerable: true, get: function () { return mapTo_1.mapTo; } }));
+var materialize_1 = __nccwpck_require__(67108);
+Object.defineProperty(exports, "materialize", ({ enumerable: true, get: function () { return materialize_1.materialize; } }));
+var max_1 = __nccwpck_require__(17314);
+Object.defineProperty(exports, "max", ({ enumerable: true, get: function () { return max_1.max; } }));
+var merge_1 = __nccwpck_require__(39510);
+Object.defineProperty(exports, "merge", ({ enumerable: true, get: function () { return merge_1.merge; } }));
+var mergeAll_1 = __nccwpck_require__(2057);
+Object.defineProperty(exports, "mergeAll", ({ enumerable: true, get: function () { return mergeAll_1.mergeAll; } }));
+var flatMap_1 = __nccwpck_require__(40186);
+Object.defineProperty(exports, "flatMap", ({ enumerable: true, get: function () { return flatMap_1.flatMap; } }));
+var mergeMap_1 = __nccwpck_require__(69914);
+Object.defineProperty(exports, "mergeMap", ({ enumerable: true, get: function () { return mergeMap_1.mergeMap; } }));
+var mergeMapTo_1 = __nccwpck_require__(49151);
+Object.defineProperty(exports, "mergeMapTo", ({ enumerable: true, get: function () { return mergeMapTo_1.mergeMapTo; } }));
+var mergeScan_1 = __nccwpck_require__(11519);
+Object.defineProperty(exports, "mergeScan", ({ enumerable: true, get: function () { return mergeScan_1.mergeScan; } }));
+var mergeWith_1 = __nccwpck_require__(31564);
+Object.defineProperty(exports, "mergeWith", ({ enumerable: true, get: function () { return mergeWith_1.mergeWith; } }));
+var min_1 = __nccwpck_require__(87641);
+Object.defineProperty(exports, "min", ({ enumerable: true, get: function () { return min_1.min; } }));
+var multicast_1 = __nccwpck_require__(65457);
+Object.defineProperty(exports, "multicast", ({ enumerable: true, get: function () { return multicast_1.multicast; } }));
+var observeOn_1 = __nccwpck_require__(22451);
+Object.defineProperty(exports, "observeOn", ({ enumerable: true, get: function () { return observeOn_1.observeOn; } }));
+var onErrorResumeNextWith_1 = __nccwpck_require__(33569);
+Object.defineProperty(exports, "onErrorResumeNext", ({ enumerable: true, get: function () { return onErrorResumeNextWith_1.onErrorResumeNext; } }));
+var pairwise_1 = __nccwpck_require__(52206);
+Object.defineProperty(exports, "pairwise", ({ enumerable: true, get: function () { return pairwise_1.pairwise; } }));
+var partition_1 = __nccwpck_require__(55949);
+Object.defineProperty(exports, "partition", ({ enumerable: true, get: function () { return partition_1.partition; } }));
+var pluck_1 = __nccwpck_require__(16073);
+Object.defineProperty(exports, "pluck", ({ enumerable: true, get: function () { return pluck_1.pluck; } }));
+var publish_1 = __nccwpck_require__(84084);
+Object.defineProperty(exports, "publish", ({ enumerable: true, get: function () { return publish_1.publish; } }));
+var publishBehavior_1 = __nccwpck_require__(40045);
+Object.defineProperty(exports, "publishBehavior", ({ enumerable: true, get: function () { return publishBehavior_1.publishBehavior; } }));
+var publishLast_1 = __nccwpck_require__(84149);
+Object.defineProperty(exports, "publishLast", ({ enumerable: true, get: function () { return publishLast_1.publishLast; } }));
+var publishReplay_1 = __nccwpck_require__(47656);
+Object.defineProperty(exports, "publishReplay", ({ enumerable: true, get: function () { return publishReplay_1.publishReplay; } }));
+var race_1 = __nccwpck_require__(85846);
+Object.defineProperty(exports, "race", ({ enumerable: true, get: function () { return race_1.race; } }));
+var raceWith_1 = __nccwpck_require__(58008);
+Object.defineProperty(exports, "raceWith", ({ enumerable: true, get: function () { return raceWith_1.raceWith; } }));
+var reduce_1 = __nccwpck_require__(62087);
+Object.defineProperty(exports, "reduce", ({ enumerable: true, get: function () { return reduce_1.reduce; } }));
+var repeat_1 = __nccwpck_require__(22418);
+Object.defineProperty(exports, "repeat", ({ enumerable: true, get: function () { return repeat_1.repeat; } }));
+var repeatWhen_1 = __nccwpck_require__(70754);
+Object.defineProperty(exports, "repeatWhen", ({ enumerable: true, get: function () { return repeatWhen_1.repeatWhen; } }));
+var retry_1 = __nccwpck_require__(56251);
+Object.defineProperty(exports, "retry", ({ enumerable: true, get: function () { return retry_1.retry; } }));
+var retryWhen_1 = __nccwpck_require__(69018);
+Object.defineProperty(exports, "retryWhen", ({ enumerable: true, get: function () { return retryWhen_1.retryWhen; } }));
+var refCount_1 = __nccwpck_require__(2331);
+Object.defineProperty(exports, "refCount", ({ enumerable: true, get: function () { return refCount_1.refCount; } }));
+var sample_1 = __nccwpck_require__(13774);
+Object.defineProperty(exports, "sample", ({ enumerable: true, get: function () { return sample_1.sample; } }));
+var sampleTime_1 = __nccwpck_require__(49807);
+Object.defineProperty(exports, "sampleTime", ({ enumerable: true, get: function () { return sampleTime_1.sampleTime; } }));
+var scan_1 = __nccwpck_require__(25578);
+Object.defineProperty(exports, "scan", ({ enumerable: true, get: function () { return scan_1.scan; } }));
+var sequenceEqual_1 = __nccwpck_require__(16126);
+Object.defineProperty(exports, "sequenceEqual", ({ enumerable: true, get: function () { return sequenceEqual_1.sequenceEqual; } }));
+var share_1 = __nccwpck_require__(48960);
+Object.defineProperty(exports, "share", ({ enumerable: true, get: function () { return share_1.share; } }));
+var shareReplay_1 = __nccwpck_require__(92118);
+Object.defineProperty(exports, "shareReplay", ({ enumerable: true, get: function () { return shareReplay_1.shareReplay; } }));
+var single_1 = __nccwpck_require__(58441);
+Object.defineProperty(exports, "single", ({ enumerable: true, get: function () { return single_1.single; } }));
+var skip_1 = __nccwpck_require__(80947);
+Object.defineProperty(exports, "skip", ({ enumerable: true, get: function () { return skip_1.skip; } }));
+var skipLast_1 = __nccwpck_require__(65865);
+Object.defineProperty(exports, "skipLast", ({ enumerable: true, get: function () { return skipLast_1.skipLast; } }));
+var skipUntil_1 = __nccwpck_require__(41110);
+Object.defineProperty(exports, "skipUntil", ({ enumerable: true, get: function () { return skipUntil_1.skipUntil; } }));
+var skipWhile_1 = __nccwpck_require__(92550);
+Object.defineProperty(exports, "skipWhile", ({ enumerable: true, get: function () { return skipWhile_1.skipWhile; } }));
+var startWith_1 = __nccwpck_require__(25471);
+Object.defineProperty(exports, "startWith", ({ enumerable: true, get: function () { return startWith_1.startWith; } }));
+var subscribeOn_1 = __nccwpck_require__(7224);
+Object.defineProperty(exports, "subscribeOn", ({ enumerable: true, get: function () { return subscribeOn_1.subscribeOn; } }));
+var switchAll_1 = __nccwpck_require__(40327);
+Object.defineProperty(exports, "switchAll", ({ enumerable: true, get: function () { return switchAll_1.switchAll; } }));
+var switchMap_1 = __nccwpck_require__(26704);
+Object.defineProperty(exports, "switchMap", ({ enumerable: true, get: function () { return switchMap_1.switchMap; } }));
+var switchMapTo_1 = __nccwpck_require__(1713);
+Object.defineProperty(exports, "switchMapTo", ({ enumerable: true, get: function () { return switchMapTo_1.switchMapTo; } }));
+var switchScan_1 = __nccwpck_require__(13355);
+Object.defineProperty(exports, "switchScan", ({ enumerable: true, get: function () { return switchScan_1.switchScan; } }));
+var take_1 = __nccwpck_require__(33698);
+Object.defineProperty(exports, "take", ({ enumerable: true, get: function () { return take_1.take; } }));
+var takeLast_1 = __nccwpck_require__(65041);
+Object.defineProperty(exports, "takeLast", ({ enumerable: true, get: function () { return takeLast_1.takeLast; } }));
+var takeUntil_1 = __nccwpck_require__(55150);
+Object.defineProperty(exports, "takeUntil", ({ enumerable: true, get: function () { return takeUntil_1.takeUntil; } }));
+var takeWhile_1 = __nccwpck_require__(76700);
+Object.defineProperty(exports, "takeWhile", ({ enumerable: true, get: function () { return takeWhile_1.takeWhile; } }));
+var tap_1 = __nccwpck_require__(48845);
+Object.defineProperty(exports, "tap", ({ enumerable: true, get: function () { return tap_1.tap; } }));
+var throttle_1 = __nccwpck_require__(36713);
+Object.defineProperty(exports, "throttle", ({ enumerable: true, get: function () { return throttle_1.throttle; } }));
+var throttleTime_1 = __nccwpck_require__(83435);
+Object.defineProperty(exports, "throttleTime", ({ enumerable: true, get: function () { return throttleTime_1.throttleTime; } }));
+var throwIfEmpty_1 = __nccwpck_require__(91566);
+Object.defineProperty(exports, "throwIfEmpty", ({ enumerable: true, get: function () { return throwIfEmpty_1.throwIfEmpty; } }));
+var timeInterval_1 = __nccwpck_require__(14643);
+Object.defineProperty(exports, "timeInterval", ({ enumerable: true, get: function () { return timeInterval_1.timeInterval; } }));
+var timeout_1 = __nccwpck_require__(12051);
+Object.defineProperty(exports, "timeout", ({ enumerable: true, get: function () { return timeout_1.timeout; } }));
+var timeoutWith_1 = __nccwpck_require__(43540);
+Object.defineProperty(exports, "timeoutWith", ({ enumerable: true, get: function () { return timeoutWith_1.timeoutWith; } }));
+var timestamp_1 = __nccwpck_require__(75518);
+Object.defineProperty(exports, "timestamp", ({ enumerable: true, get: function () { return timestamp_1.timestamp; } }));
+var toArray_1 = __nccwpck_require__(35114);
+Object.defineProperty(exports, "toArray", ({ enumerable: true, get: function () { return toArray_1.toArray; } }));
+var window_1 = __nccwpck_require__(98255);
+Object.defineProperty(exports, "window", ({ enumerable: true, get: function () { return window_1.window; } }));
+var windowCount_1 = __nccwpck_require__(73144);
+Object.defineProperty(exports, "windowCount", ({ enumerable: true, get: function () { return windowCount_1.windowCount; } }));
+var windowTime_1 = __nccwpck_require__(2738);
+Object.defineProperty(exports, "windowTime", ({ enumerable: true, get: function () { return windowTime_1.windowTime; } }));
+var windowToggle_1 = __nccwpck_require__(52741);
+Object.defineProperty(exports, "windowToggle", ({ enumerable: true, get: function () { return windowToggle_1.windowToggle; } }));
+var windowWhen_1 = __nccwpck_require__(82645);
+Object.defineProperty(exports, "windowWhen", ({ enumerable: true, get: function () { return windowWhen_1.windowWhen; } }));
+var withLatestFrom_1 = __nccwpck_require__(20501);
+Object.defineProperty(exports, "withLatestFrom", ({ enumerable: true, get: function () { return withLatestFrom_1.withLatestFrom; } }));
+var zip_1 = __nccwpck_require__(17600);
+Object.defineProperty(exports, "zip", ({ enumerable: true, get: function () { return zip_1.zip; } }));
+var zipAll_1 = __nccwpck_require__(92335);
+Object.defineProperty(exports, "zipAll", ({ enumerable: true, get: function () { return zipAll_1.zipAll; } }));
+var zipWith_1 = __nccwpck_require__(95520);
+Object.defineProperty(exports, "zipWith", ({ enumerable: true, get: function () { return zipWith_1.zipWith; } }));
+//# sourceMappingURL=index.js.map
 
-  return result;
-} // rmdirSyncRecursive
+/***/ }),
 
-// Hack to determine if file has write permissions for current user
-// Avoids having to check user, group, etc, but it's probably slow
-function isWriteable(file) {
-  var writePermission = true;
-  try {
-    var __fd = fs.openSync(file, 'a');
-    fs.closeSync(__fd);
-  } catch (e) {
-    writePermission = false;
+/***/ 21867:
+/***/ ((module, exports, __nccwpck_require__) => {
+
+/*! safe-buffer. MIT License. Feross Aboukhadijeh  */
+/* eslint-disable node/no-deprecated-api */
+var buffer = __nccwpck_require__(14300)
+var Buffer = buffer.Buffer
+
+// alternative to using Object.keys for old browsers
+function copyProps (src, dst) {
+  for (var key in src) {
+    dst[key] = src[key]
   }
+}
+if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
+  module.exports = buffer
+} else {
+  // Copy properties from require('buffer')
+  copyProps(buffer, exports)
+  exports.Buffer = SafeBuffer
+}
 
-  return writePermission;
+function SafeBuffer (arg, encodingOrOffset, length) {
+  return Buffer(arg, encodingOrOffset, length)
 }
 
-function handleFile(file, options) {
-  if (options.force || isWriteable(file)) {
-    // -f was passed, or file is writable, so it can be removed
-    common.unlinkSync(file);
-  } else {
-    common.error('permission denied: ' + file, { continue: true });
+SafeBuffer.prototype = Object.create(Buffer.prototype)
+
+// Copy static methods from Buffer
+copyProps(Buffer, SafeBuffer)
+
+SafeBuffer.from = function (arg, encodingOrOffset, length) {
+  if (typeof arg === 'number') {
+    throw new TypeError('Argument must not be a number')
   }
+  return Buffer(arg, encodingOrOffset, length)
 }
 
-function handleDirectory(file, options) {
-  if (options.recursive) {
-    // -r was passed, so directory can be removed
-    rmdirSyncRecursive(file, options.force);
+SafeBuffer.alloc = function (size, fill, encoding) {
+  if (typeof size !== 'number') {
+    throw new TypeError('Argument must be a number')
+  }
+  var buf = Buffer(size)
+  if (fill !== undefined) {
+    if (typeof encoding === 'string') {
+      buf.fill(fill, encoding)
+    } else {
+      buf.fill(fill)
+    }
   } else {
-    common.error('path is a directory', { continue: true });
+    buf.fill(0)
   }
+  return buf
 }
 
-function handleSymbolicLink(file, options) {
-  var stats;
-  try {
-    stats = common.statFollowLinks(file);
-  } catch (e) {
-    // symlink is broken, so remove the symlink itself
-    common.unlinkSync(file);
-    return;
+SafeBuffer.allocUnsafe = function (size) {
+  if (typeof size !== 'number') {
+    throw new TypeError('Argument must be a number')
   }
+  return Buffer(size)
+}
 
-  if (stats.isFile()) {
-    common.unlinkSync(file);
-  } else if (stats.isDirectory()) {
-    if (file[file.length - 1] === '/') {
-      // trailing separator, so remove the contents, not the link
-      if (options.recursive) {
-        // -r was passed, so directory can be removed
-        var fromSymlink = true;
-        rmdirSyncRecursive(file, options.force, fromSymlink);
-      } else {
-        common.error('path is a directory', { continue: true });
-      }
-    } else {
-      // no trailing separator, so remove the link
-      common.unlinkSync(file);
-    }
+SafeBuffer.allocUnsafeSlow = function (size) {
+  if (typeof size !== 'number') {
+    throw new TypeError('Argument must be a number')
   }
+  return buffer.SlowBuffer(size)
 }
 
-function handleFIFO(file) {
-  common.unlinkSync(file);
-}
-
-//@
-//@ ### rm([options,] file [, file ...])
-//@ ### rm([options,] file_array)
-//@
-//@ Available options:
-//@
-//@ + `-f`: force
-//@ + `-r, -R`: recursive
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ rm('-rf', '/tmp/*');
-//@ rm('some_file.txt', 'another_file.txt');
-//@ rm(['some_file.txt', 'another_file.txt']); // same as above
-//@ ```
-//@
-//@ Removes files.
-function _rm(options, files) {
-  if (!files) common.error('no paths given');
-
-  // Convert to array
-  files = [].slice.call(arguments, 1);
-
-  files.forEach(function (file) {
-    var lstats;
-    try {
-      var filepath = (file[file.length - 1] === '/')
-        ? file.slice(0, -1) // remove the '/' so lstatSync can detect symlinks
-        : file;
-      lstats = common.statNoFollowLinks(filepath); // test for existence
-    } catch (e) {
-      // Path does not exist, no force flag given
-      if (!options.force) {
-        common.error('no such file or directory: ' + file, { continue: true });
-      }
-      return; // skip file
-    }
-
-    // If here, path exists
-    if (lstats.isFile()) {
-      handleFile(file, options);
-    } else if (lstats.isDirectory()) {
-      handleDirectory(file, options);
-    } else if (lstats.isSymbolicLink()) {
-      handleSymbolicLink(file, options);
-    } else if (lstats.isFIFO()) {
-      handleFIFO(file);
-    }
-  }); // forEach(file)
-  return '';
-} // rm
-module.exports = _rm;
-
 
 /***/ }),
 
-/***/ 25899:
+/***/ 91532:
 /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
+const ANY = Symbol('SemVer ANY')
+// hoisted class for cyclic dependency
+class Comparator {
+  static get ANY () {
+    return ANY
+  }
 
-common.register('sed', _sed, {
-  globStart: 3, // don't glob-expand regexes
-  canReceivePipe: true,
-  cmdOptions: {
-    'i': 'inplace',
-  },
-});
+  constructor (comp, options) {
+    options = parseOptions(options)
 
-//@
-//@ ### sed([options,] search_regex, replacement, file [, file ...])
-//@ ### sed([options,] search_regex, replacement, file_array)
-//@
-//@ Available options:
-//@
-//@ + `-i`: Replace contents of `file` in-place. _Note that no backups will be created!_
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ sed('-i', 'PROGRAM_VERSION', 'v0.1.3', 'source.js');
-//@ sed(/.*DELETE_THIS_LINE.*\n/, '', 'source.js');
-//@ ```
-//@
-//@ Reads an input string from `file`s, and performs a JavaScript `replace()` on the input
-//@ using the given `search_regex` and `replacement` string or function. Returns the new string after replacement.
-//@
-//@ Note:
-//@
-//@ Like unix `sed`, ShellJS `sed` supports capture groups. Capture groups are specified
-//@ using the `$n` syntax:
-//@
-//@ ```javascript
-//@ sed(/(\w+)\s(\w+)/, '$2, $1', 'file.txt');
-//@ ```
-function _sed(options, regex, replacement, files) {
-  // Check if this is coming from a pipe
-  var pipe = common.readFromPipe();
+    if (comp instanceof Comparator) {
+      if (comp.loose === !!options.loose) {
+        return comp
+      } else {
+        comp = comp.value
+      }
+    }
 
-  if (typeof replacement !== 'string' && typeof replacement !== 'function') {
-    if (typeof replacement === 'number') {
-      replacement = replacement.toString(); // fallback
+    comp = comp.trim().split(/\s+/).join(' ')
+    debug('comparator', comp, options)
+    this.options = options
+    this.loose = !!options.loose
+    this.parse(comp)
+
+    if (this.semver === ANY) {
+      this.value = ''
     } else {
-      common.error('invalid replacement string');
+      this.value = this.operator + this.semver.version
     }
-  }
 
-  // Convert all search strings to RegExp
-  if (typeof regex === 'string') {
-    regex = RegExp(regex);
+    debug('comp', this)
   }
 
-  if (!files && !pipe) {
-    common.error('no files given');
-  }
+  parse (comp) {
+    const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
+    const m = comp.match(r)
 
-  files = [].slice.call(arguments, 3);
+    if (!m) {
+      throw new TypeError(`Invalid comparator: ${comp}`)
+    }
 
-  if (pipe) {
-    files.unshift('-');
-  }
+    this.operator = m[1] !== undefined ? m[1] : ''
+    if (this.operator === '=') {
+      this.operator = ''
+    }
 
-  var sed = [];
-  files.forEach(function (file) {
-    if (!fs.existsSync(file) && file !== '-') {
-      common.error('no such file or directory: ' + file, 2, { continue: true });
-      return;
+    // if it literally is just '>' or '' then allow anything.
+    if (!m[2]) {
+      this.semver = ANY
+    } else {
+      this.semver = new SemVer(m[2], this.options.loose)
     }
+  }
 
-    var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8');
-    var lines = contents.split('\n');
-    var result = lines.map(function (line) {
-      return line.replace(regex, replacement);
-    }).join('\n');
+  toString () {
+    return this.value
+  }
 
-    sed.push(result);
+  test (version) {
+    debug('Comparator.test', version, this.options.loose)
 
-    if (options.inplace) {
-      fs.writeFileSync(file, result, 'utf8');
+    if (this.semver === ANY || version === ANY) {
+      return true
     }
-  });
 
-  return sed.join('\n');
-}
-module.exports = _sed;
+    if (typeof version === 'string') {
+      try {
+        version = new SemVer(version, this.options)
+      } catch (er) {
+        return false
+      }
+    }
 
+    return cmp(version, this.operator, this.semver, this.options)
+  }
 
-/***/ }),
+  intersects (comp, options) {
+    if (!(comp instanceof Comparator)) {
+      throw new TypeError('a Comparator is required')
+    }
 
-/***/ 11411:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+    if (this.operator === '') {
+      if (this.value === '') {
+        return true
+      }
+      return new Range(comp.value, options).test(this.value)
+    } else if (comp.operator === '') {
+      if (comp.value === '') {
+        return true
+      }
+      return new Range(this.value, options).test(comp.semver)
+    }
 
-var common = __nccwpck_require__(53687);
+    options = parseOptions(options)
 
-common.register('set', _set, {
-  allowGlobbing: false,
-  wrapOutput: false,
-});
+    // Special cases where nothing can possibly be lower
+    if (options.includePrerelease &&
+      (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {
+      return false
+    }
+    if (!options.includePrerelease &&
+      (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {
+      return false
+    }
 
-//@
-//@ ### set(options)
-//@
-//@ Available options:
-//@
-//@ + `+/-e`: exit upon error (`config.fatal`)
-//@ + `+/-v`: verbose: show all commands (`config.verbose`)
-//@ + `+/-f`: disable filename expansion (globbing)
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ set('-e'); // exit upon first error
-//@ set('+e'); // this undoes a "set('-e')"
-//@ ```
-//@
-//@ Sets global configuration variables.
-function _set(options) {
-  if (!options) {
-    var args = [].slice.call(arguments, 0);
-    if (args.length < 2) common.error('must provide an argument');
-    options = args[1];
-  }
-  var negate = (options[0] === '+');
-  if (negate) {
-    options = '-' + options.slice(1); // parseOptions needs a '-' prefix
+    // Same direction increasing (> or >=)
+    if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {
+      return true
+    }
+    // Same direction decreasing (< or <=)
+    if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {
+      return true
+    }
+    // same SemVer and both sides are inclusive (<= or >=)
+    if (
+      (this.semver.version === comp.semver.version) &&
+      this.operator.includes('=') && comp.operator.includes('=')) {
+      return true
+    }
+    // opposite directions less than
+    if (cmp(this.semver, '<', comp.semver, options) &&
+      this.operator.startsWith('>') && comp.operator.startsWith('<')) {
+      return true
+    }
+    // opposite directions greater than
+    if (cmp(this.semver, '>', comp.semver, options) &&
+      this.operator.startsWith('<') && comp.operator.startsWith('>')) {
+      return true
+    }
+    return false
   }
-  options = common.parseOptions(options, {
-    'e': 'fatal',
-    'v': 'verbose',
-    'f': 'noglob',
-  });
+}
 
-  if (negate) {
-    Object.keys(options).forEach(function (key) {
-      options[key] = !options[key];
-    });
-  }
+module.exports = Comparator
 
-  Object.keys(options).forEach(function (key) {
-    // Only change the global config if `negate` is false and the option is true
-    // or if `negate` is true and the option is false (aka negate !== option)
-    if (negate !== options[key]) {
-      common.config[key] = options[key];
-    }
-  });
-  return;
-}
-module.exports = _set;
+const parseOptions = __nccwpck_require__(40785)
+const { safeRe: re, t } = __nccwpck_require__(9523)
+const cmp = __nccwpck_require__(75098)
+const debug = __nccwpck_require__(50427)
+const SemVer = __nccwpck_require__(48088)
+const Range = __nccwpck_require__(9828)
 
 
 /***/ }),
 
-/***/ 72116:
+/***/ 9828:
 /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
-
-common.register('sort', _sort, {
-  canReceivePipe: true,
-  cmdOptions: {
-    'r': 'reverse',
-    'n': 'numerical',
-  },
-});
-
-// parse out the number prefix of a line
-function parseNumber(str) {
-  var match = str.match(/^\s*(\d*)\s*(.*)$/);
-  return { num: Number(match[1]), value: match[2] };
-}
+// hoisted class for cyclic dependency
+class Range {
+  constructor (range, options) {
+    options = parseOptions(options)
 
-// compare two strings case-insensitively, but examine case for strings that are
-// case-insensitive equivalent
-function unixCmp(a, b) {
-  var aLower = a.toLowerCase();
-  var bLower = b.toLowerCase();
-  return (aLower === bLower ?
-      -1 * a.localeCompare(b) : // unix sort treats case opposite how javascript does
-      aLower.localeCompare(bLower));
-}
+    if (range instanceof Range) {
+      if (
+        range.loose === !!options.loose &&
+        range.includePrerelease === !!options.includePrerelease
+      ) {
+        return range
+      } else {
+        return new Range(range.raw, options)
+      }
+    }
 
-// compare two strings in the fashion that unix sort's -n option works
-function numericalCmp(a, b) {
-  var objA = parseNumber(a);
-  var objB = parseNumber(b);
-  if (objA.hasOwnProperty('num') && objB.hasOwnProperty('num')) {
-    return ((objA.num !== objB.num) ?
-        (objA.num - objB.num) :
-        unixCmp(objA.value, objB.value));
-  } else {
-    return unixCmp(objA.value, objB.value);
-  }
-}
+    if (range instanceof Comparator) {
+      // just put it in the set and return
+      this.raw = range.value
+      this.set = [[range]]
+      this.format()
+      return this
+    }
 
-//@
-//@ ### sort([options,] file [, file ...])
-//@ ### sort([options,] file_array)
-//@
-//@ Available options:
-//@
-//@ + `-r`: Reverse the results
-//@ + `-n`: Compare according to numerical value
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ sort('foo.txt', 'bar.txt');
-//@ sort('-r', 'foo.txt');
-//@ ```
-//@
-//@ Return the contents of the `file`s, sorted line-by-line. Sorting multiple
-//@ files mixes their content (just as unix `sort` does).
-function _sort(options, files) {
-  // Check if this is coming from a pipe
-  var pipe = common.readFromPipe();
+    this.options = options
+    this.loose = !!options.loose
+    this.includePrerelease = !!options.includePrerelease
 
-  if (!files && !pipe) common.error('no files given');
+    // First reduce all whitespace as much as possible so we do not have to rely
+    // on potentially slow regexes like \s*. This is then stored and used for
+    // future error messages as well.
+    this.raw = range
+      .trim()
+      .split(/\s+/)
+      .join(' ')
 
-  files = [].slice.call(arguments, 1);
+    // First, split on ||
+    this.set = this.raw
+      .split('||')
+      // map the range to a 2d array of comparators
+      .map(r => this.parseRange(r.trim()))
+      // throw out any comparator lists that are empty
+      // this generally means that it was not a valid range, which is allowed
+      // in loose mode, but will still throw if the WHOLE range is invalid.
+      .filter(c => c.length)
 
-  if (pipe) {
-    files.unshift('-');
-  }
+    if (!this.set.length) {
+      throw new TypeError(`Invalid SemVer Range: ${this.raw}`)
+    }
 
-  var lines = files.reduce(function (accum, file) {
-    if (file !== '-') {
-      if (!fs.existsSync(file)) {
-        common.error('no such file or directory: ' + file, { continue: true });
-        return accum;
-      } else if (common.statFollowLinks(file).isDirectory()) {
-        common.error('read failed: ' + file + ': Is a directory', {
-          continue: true,
-        });
-        return accum;
+    // if we have any that are not the null set, throw out null sets.
+    if (this.set.length > 1) {
+      // keep the first one, in case they're all null sets
+      const first = this.set[0]
+      this.set = this.set.filter(c => !isNullSet(c[0]))
+      if (this.set.length === 0) {
+        this.set = [first]
+      } else if (this.set.length > 1) {
+        // if we have any that are *, then the range is just *
+        for (const c of this.set) {
+          if (c.length === 1 && isAny(c[0])) {
+            this.set = [c]
+            break
+          }
+        }
       }
     }
 
-    var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8');
-    return accum.concat(contents.trimRight().split('\n'));
-  }, []);
-
-  var sorted = lines.sort(options.numerical ? numericalCmp : unixCmp);
+    this.format()
+  }
 
-  if (options.reverse) {
-    sorted = sorted.reverse();
+  format () {
+    this.range = this.set
+      .map((comps) => comps.join(' ').trim())
+      .join('||')
+      .trim()
+    return this.range
   }
 
-  return sorted.join('\n') + '\n';
-}
+  toString () {
+    return this.range
+  }
 
-module.exports = _sort;
+  parseRange (range) {
+    // memoize range parsing for performance.
+    // this is a very hot path, and fully deterministic.
+    const memoOpts =
+      (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |
+      (this.options.loose && FLAG_LOOSE)
+    const memoKey = memoOpts + ':' + range
+    const cached = cache.get(memoKey)
+    if (cached) {
+      return cached
+    }
 
+    const loose = this.options.loose
+    // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
+    const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]
+    range = range.replace(hr, hyphenReplace(this.options.includePrerelease))
+    debug('hyphen replace', range)
 
-/***/ }),
+    // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
+    range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)
+    debug('comparator trim', range)
 
-/***/ 42284:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+    // `~ 1.2.3` => `~1.2.3`
+    range = range.replace(re[t.TILDETRIM], tildeTrimReplace)
+    debug('tilde trim', range)
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
+    // `^ 1.2.3` => `^1.2.3`
+    range = range.replace(re[t.CARETTRIM], caretTrimReplace)
+    debug('caret trim', range)
 
-common.register('tail', _tail, {
-  canReceivePipe: true,
-  cmdOptions: {
-    'n': 'numLines',
-  },
-});
+    // At this point, the range is completely trimmed and
+    // ready to be split into comparators.
 
-//@
-//@ ### tail([{'-n': \},] file [, file ...])
-//@ ### tail([{'-n': \},] file_array)
-//@
-//@ Available options:
-//@
-//@ + `-n `: Show the last `` lines of `file`s
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ var str = tail({'-n': 1}, 'file*.txt');
-//@ var str = tail('file1', 'file2');
-//@ var str = tail(['file1', 'file2']); // same as above
-//@ ```
-//@
-//@ Read the end of a `file`.
-function _tail(options, files) {
-  var tail = [];
-  var pipe = common.readFromPipe();
+    let rangeList = range
+      .split(' ')
+      .map(comp => parseComparator(comp, this.options))
+      .join(' ')
+      .split(/\s+/)
+      // >=0.0.0 is equivalent to *
+      .map(comp => replaceGTE0(comp, this.options))
 
-  if (!files && !pipe) common.error('no paths given');
+    if (loose) {
+      // in loose mode, throw out any that are not valid comparators
+      rangeList = rangeList.filter(comp => {
+        debug('loose invalid filter', comp, this.options)
+        return !!comp.match(re[t.COMPARATORLOOSE])
+      })
+    }
+    debug('range list', rangeList)
 
-  var idx = 1;
-  if (options.numLines === true) {
-    idx = 2;
-    options.numLines = Number(arguments[1]);
-  } else if (options.numLines === false) {
-    options.numLines = 10;
-  }
-  options.numLines = -1 * Math.abs(options.numLines);
-  files = [].slice.call(arguments, idx);
+    // if any comparators are the null set, then replace with JUST null set
+    // if more than one comparator, remove any * comparators
+    // also, don't include the same comparator more than once
+    const rangeMap = new Map()
+    const comparators = rangeList.map(comp => new Comparator(comp, this.options))
+    for (const comp of comparators) {
+      if (isNullSet(comp)) {
+        return [comp]
+      }
+      rangeMap.set(comp.value, comp)
+    }
+    if (rangeMap.size > 1 && rangeMap.has('')) {
+      rangeMap.delete('')
+    }
 
-  if (pipe) {
-    files.unshift('-');
+    const result = [...rangeMap.values()]
+    cache.set(memoKey, result)
+    return result
   }
 
-  var shouldAppendNewline = false;
-  files.forEach(function (file) {
-    if (file !== '-') {
-      if (!fs.existsSync(file)) {
-        common.error('no such file or directory: ' + file, { continue: true });
-        return;
-      } else if (common.statFollowLinks(file).isDirectory()) {
-        common.error("error reading '" + file + "': Is a directory", {
-          continue: true,
-        });
-        return;
-      }
+  intersects (range, options) {
+    if (!(range instanceof Range)) {
+      throw new TypeError('a Range is required')
     }
 
-    var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8');
+    return this.set.some((thisComparators) => {
+      return (
+        isSatisfiable(thisComparators, options) &&
+        range.set.some((rangeComparators) => {
+          return (
+            isSatisfiable(rangeComparators, options) &&
+            thisComparators.every((thisComparator) => {
+              return rangeComparators.every((rangeComparator) => {
+                return thisComparator.intersects(rangeComparator, options)
+              })
+            })
+          )
+        })
+      )
+    })
+  }
 
-    var lines = contents.split('\n');
-    if (lines[lines.length - 1] === '') {
-      lines.pop();
-      shouldAppendNewline = true;
-    } else {
-      shouldAppendNewline = false;
+  // if ANY of the sets match ALL of its comparators, then pass
+  test (version) {
+    if (!version) {
+      return false
     }
 
-    tail = tail.concat(lines.slice(options.numLines));
-  });
+    if (typeof version === 'string') {
+      try {
+        version = new SemVer(version, this.options)
+      } catch (er) {
+        return false
+      }
+    }
 
-  if (shouldAppendNewline) {
-    tail.push(''); // to add a trailing newline once we join
+    for (let i = 0; i < this.set.length; i++) {
+      if (testSet(this.set[i], version, this.options)) {
+        return true
+      }
+    }
+    return false
   }
-  return tail.join('\n');
 }
-module.exports = _tail;
 
+module.exports = Range
 
-/***/ }),
-
-/***/ 76150:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+const LRU = __nccwpck_require__(81196)
+const cache = new LRU({ max: 1000 })
 
-var common = __nccwpck_require__(53687);
-var os = __nccwpck_require__(22037);
-var fs = __nccwpck_require__(57147);
+const parseOptions = __nccwpck_require__(40785)
+const Comparator = __nccwpck_require__(91532)
+const debug = __nccwpck_require__(50427)
+const SemVer = __nccwpck_require__(48088)
+const {
+  safeRe: re,
+  t,
+  comparatorTrimReplace,
+  tildeTrimReplace,
+  caretTrimReplace,
+} = __nccwpck_require__(9523)
+const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = __nccwpck_require__(42293)
 
-common.register('tempdir', _tempDir, {
-  allowGlobbing: false,
-  wrapOutput: false,
-});
+const isNullSet = c => c.value === '<0.0.0-0'
+const isAny = c => c.value === ''
 
-// Returns false if 'dir' is not a writeable directory, 'dir' otherwise
-function writeableDir(dir) {
-  if (!dir || !fs.existsSync(dir)) return false;
+// take a set of comparators and determine whether there
+// exists a version which can satisfy it
+const isSatisfiable = (comparators, options) => {
+  let result = true
+  const remainingComparators = comparators.slice()
+  let testComparator = remainingComparators.pop()
 
-  if (!common.statFollowLinks(dir).isDirectory()) return false;
+  while (result && remainingComparators.length) {
+    result = remainingComparators.every((otherComparator) => {
+      return testComparator.intersects(otherComparator, options)
+    })
 
-  var testFile = dir + '/' + common.randomFileName();
-  try {
-    fs.writeFileSync(testFile, ' ');
-    common.unlinkSync(testFile);
-    return dir;
-  } catch (e) {
-    /* istanbul ignore next */
-    return false;
+    testComparator = remainingComparators.pop()
   }
-}
-
-// Variable to cache the tempdir value for successive lookups.
-var cachedTempDir;
-
-//@
-//@ ### tempdir()
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ var tmp = tempdir(); // "/tmp" for most *nix platforms
-//@ ```
-//@
-//@ Searches and returns string containing a writeable, platform-dependent temporary directory.
-//@ Follows Python's [tempfile algorithm](http://docs.python.org/library/tempfile.html#tempfile.tempdir).
-function _tempDir() {
-  if (cachedTempDir) return cachedTempDir;
-
-  cachedTempDir = writeableDir(os.tmpdir()) ||
-                  writeableDir(process.env.TMPDIR) ||
-                  writeableDir(process.env.TEMP) ||
-                  writeableDir(process.env.TMP) ||
-                  writeableDir(process.env.Wimp$ScrapDir) || // RiscOS
-                  writeableDir('C:\\TEMP') || // Windows
-                  writeableDir('C:\\TMP') || // Windows
-                  writeableDir('\\TEMP') || // Windows
-                  writeableDir('\\TMP') || // Windows
-                  writeableDir('/tmp') ||
-                  writeableDir('/var/tmp') ||
-                  writeableDir('/usr/tmp') ||
-                  writeableDir('.'); // last resort
 
-  return cachedTempDir;
+  return result
 }
 
-// Indicates if the tempdir value is currently cached. This is exposed for tests
-// only. The return value should only be tested for truthiness.
-function isCached() {
-  return cachedTempDir;
+// comprised of xranges, tildes, stars, and gtlt's at this point.
+// already replaced the hyphen ranges
+// turn into a set of JUST comparators.
+const parseComparator = (comp, options) => {
+  debug('comp', comp, options)
+  comp = replaceCarets(comp, options)
+  debug('caret', comp)
+  comp = replaceTildes(comp, options)
+  debug('tildes', comp)
+  comp = replaceXRanges(comp, options)
+  debug('xrange', comp)
+  comp = replaceStars(comp, options)
+  debug('stars', comp)
+  return comp
 }
 
-// Clears the cached tempDir value, if one is cached. This is exposed for tests
-// only.
-function clearCache() {
-  cachedTempDir = undefined;
-}
+const isX = id => !id || id.toLowerCase() === 'x' || id === '*'
 
-module.exports.tempDir = _tempDir;
-module.exports.isCached = isCached;
-module.exports.clearCache = clearCache;
+// ~, ~> --> * (any, kinda silly)
+// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0
+// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0
+// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0
+// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
+// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
+// ~0.0.1 --> >=0.0.1 <0.1.0-0
+const replaceTildes = (comp, options) => {
+  return comp
+    .trim()
+    .split(/\s+/)
+    .map((c) => replaceTilde(c, options))
+    .join(' ')
+}
 
+const replaceTilde = (comp, options) => {
+  const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]
+  return comp.replace(r, (_, M, m, p, pr) => {
+    debug('tilde', comp, _, M, m, p, pr)
+    let ret
 
-/***/ }),
+    if (isX(M)) {
+      ret = ''
+    } else if (isX(m)) {
+      ret = `>=${M}.0.0 <${+M + 1}.0.0-0`
+    } else if (isX(p)) {
+      // ~1.2 == >=1.2.0 <1.3.0-0
+      ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`
+    } else if (pr) {
+      debug('replaceTilde pr', pr)
+      ret = `>=${M}.${m}.${p}-${pr
+      } <${M}.${+m + 1}.0-0`
+    } else {
+      // ~1.2.3 == >=1.2.3 <1.3.0-0
+      ret = `>=${M}.${m}.${p
+      } <${M}.${+m + 1}.0-0`
+    }
 
-/***/ 79723:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+    debug('tilde return', ret)
+    return ret
+  })
+}
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
+// ^ --> * (any, kinda silly)
+// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0
+// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0
+// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0
+// ^1.2.3 --> >=1.2.3 <2.0.0-0
+// ^1.2.0 --> >=1.2.0 <2.0.0-0
+// ^0.0.1 --> >=0.0.1 <0.0.2-0
+// ^0.1.0 --> >=0.1.0 <0.2.0-0
+const replaceCarets = (comp, options) => {
+  return comp
+    .trim()
+    .split(/\s+/)
+    .map((c) => replaceCaret(c, options))
+    .join(' ')
+}
 
-common.register('test', _test, {
-  cmdOptions: {
-    'b': 'block',
-    'c': 'character',
-    'd': 'directory',
-    'e': 'exists',
-    'f': 'file',
-    'L': 'link',
-    'p': 'pipe',
-    'S': 'socket',
-  },
-  wrapOutput: false,
-  allowGlobbing: false,
-});
+const replaceCaret = (comp, options) => {
+  debug('caret', comp, options)
+  const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]
+  const z = options.includePrerelease ? '-0' : ''
+  return comp.replace(r, (_, M, m, p, pr) => {
+    debug('caret', comp, _, M, m, p, pr)
+    let ret
 
+    if (isX(M)) {
+      ret = ''
+    } else if (isX(m)) {
+      ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`
+    } else if (isX(p)) {
+      if (M === '0') {
+        ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`
+      } else {
+        ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`
+      }
+    } else if (pr) {
+      debug('replaceCaret pr', pr)
+      if (M === '0') {
+        if (m === '0') {
+          ret = `>=${M}.${m}.${p}-${pr
+          } <${M}.${m}.${+p + 1}-0`
+        } else {
+          ret = `>=${M}.${m}.${p}-${pr
+          } <${M}.${+m + 1}.0-0`
+        }
+      } else {
+        ret = `>=${M}.${m}.${p}-${pr
+        } <${+M + 1}.0.0-0`
+      }
+    } else {
+      debug('no pr')
+      if (M === '0') {
+        if (m === '0') {
+          ret = `>=${M}.${m}.${p
+          }${z} <${M}.${m}.${+p + 1}-0`
+        } else {
+          ret = `>=${M}.${m}.${p
+          }${z} <${M}.${+m + 1}.0-0`
+        }
+      } else {
+        ret = `>=${M}.${m}.${p
+        } <${+M + 1}.0.0-0`
+      }
+    }
 
-//@
-//@ ### test(expression)
-//@
-//@ Available expression primaries:
-//@
-//@ + `'-b', 'path'`: true if path is a block device
-//@ + `'-c', 'path'`: true if path is a character device
-//@ + `'-d', 'path'`: true if path is a directory
-//@ + `'-e', 'path'`: true if path exists
-//@ + `'-f', 'path'`: true if path is a regular file
-//@ + `'-L', 'path'`: true if path is a symbolic link
-//@ + `'-p', 'path'`: true if path is a pipe (FIFO)
-//@ + `'-S', 'path'`: true if path is a socket
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ if (test('-d', path)) { /* do something with dir */ };
-//@ if (!test('-f', path)) continue; // skip if it's a regular file
-//@ ```
-//@
-//@ Evaluates `expression` using the available primaries and returns corresponding value.
-function _test(options, path) {
-  if (!path) common.error('no path given');
+    debug('caret return', ret)
+    return ret
+  })
+}
 
-  var canInterpret = false;
-  Object.keys(options).forEach(function (key) {
-    if (options[key] === true) {
-      canInterpret = true;
-    }
-  });
+const replaceXRanges = (comp, options) => {
+  debug('replaceXRanges', comp, options)
+  return comp
+    .split(/\s+/)
+    .map((c) => replaceXRange(c, options))
+    .join(' ')
+}
 
-  if (!canInterpret) common.error('could not interpret expression');
+const replaceXRange = (comp, options) => {
+  comp = comp.trim()
+  const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]
+  return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
+    debug('xRange', comp, ret, gtlt, M, m, p, pr)
+    const xM = isX(M)
+    const xm = xM || isX(m)
+    const xp = xm || isX(p)
+    const anyX = xp
 
-  if (options.link) {
-    try {
-      return common.statNoFollowLinks(path).isSymbolicLink();
-    } catch (e) {
-      return false;
+    if (gtlt === '=' && anyX) {
+      gtlt = ''
     }
-  }
 
-  if (!fs.existsSync(path)) return false;
+    // if we're including prereleases in the match, then we need
+    // to fix this to -0, the lowest possible prerelease value
+    pr = options.includePrerelease ? '-0' : ''
 
-  if (options.exists) return true;
+    if (xM) {
+      if (gtlt === '>' || gtlt === '<') {
+        // nothing is allowed
+        ret = '<0.0.0-0'
+      } else {
+        // nothing is forbidden
+        ret = '*'
+      }
+    } else if (gtlt && anyX) {
+      // we know patch is an x, because we have any x at all.
+      // replace X with 0
+      if (xm) {
+        m = 0
+      }
+      p = 0
 
-  var stats = common.statFollowLinks(path);
+      if (gtlt === '>') {
+        // >1 => >=2.0.0
+        // >1.2 => >=1.3.0
+        gtlt = '>='
+        if (xm) {
+          M = +M + 1
+          m = 0
+          p = 0
+        } else {
+          m = +m + 1
+          p = 0
+        }
+      } else if (gtlt === '<=') {
+        // <=0.7.x is actually <0.8.0, since any 0.7.x should
+        // pass.  Similarly, <=7.x is actually <8.0.0, etc.
+        gtlt = '<'
+        if (xm) {
+          M = +M + 1
+        } else {
+          m = +m + 1
+        }
+      }
 
-  if (options.block) return stats.isBlockDevice();
+      if (gtlt === '<') {
+        pr = '-0'
+      }
 
-  if (options.character) return stats.isCharacterDevice();
+      ret = `${gtlt + M}.${m}.${p}${pr}`
+    } else if (xm) {
+      ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`
+    } else if (xp) {
+      ret = `>=${M}.${m}.0${pr
+      } <${M}.${+m + 1}.0-0`
+    }
 
-  if (options.directory) return stats.isDirectory();
+    debug('xRange return', ret)
 
-  if (options.file) return stats.isFile();
+    return ret
+  })
+}
 
-  /* istanbul ignore next */
-  if (options.pipe) return stats.isFIFO();
+// Because * is AND-ed with everything else in the comparator,
+// and '' means "any version", just remove the *s entirely.
+const replaceStars = (comp, options) => {
+  debug('replaceStars', comp, options)
+  // Looseness is ignored here.  star is always as loose as it gets!
+  return comp
+    .trim()
+    .replace(re[t.STAR], '')
+}
 
-  /* istanbul ignore next */
-  if (options.socket) return stats.isSocket();
+const replaceGTE0 = (comp, options) => {
+  debug('replaceGTE0', comp, options)
+  return comp
+    .trim()
+    .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')
+}
 
-  /* istanbul ignore next */
-  return false; // fallback
-} // test
-module.exports = _test;
+// This function is passed to string.replace(re[t.HYPHENRANGE])
+// M, m, patch, prerelease, build
+// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
+// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
+// 1.2 - 3.4 => >=1.2.0 <3.5.0-0
+const hyphenReplace = incPr => ($0,
+  from, fM, fm, fp, fpr, fb,
+  to, tM, tm, tp, tpr, tb) => {
+  if (isX(fM)) {
+    from = ''
+  } else if (isX(fm)) {
+    from = `>=${fM}.0.0${incPr ? '-0' : ''}`
+  } else if (isX(fp)) {
+    from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`
+  } else if (fpr) {
+    from = `>=${from}`
+  } else {
+    from = `>=${from}${incPr ? '-0' : ''}`
+  }
 
+  if (isX(tM)) {
+    to = ''
+  } else if (isX(tm)) {
+    to = `<${+tM + 1}.0.0-0`
+  } else if (isX(tp)) {
+    to = `<${tM}.${+tm + 1}.0-0`
+  } else if (tpr) {
+    to = `<=${tM}.${tm}.${tp}-${tpr}`
+  } else if (incPr) {
+    to = `<${tM}.${tm}.${+tp + 1}-0`
+  } else {
+    to = `<=${to}`
+  }
 
-/***/ }),
+  return `${from} ${to}`.trim()
+}
 
-/***/ 71961:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+const testSet = (set, version, options) => {
+  for (let i = 0; i < set.length; i++) {
+    if (!set[i].test(version)) {
+      return false
+    }
+  }
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
-var path = __nccwpck_require__(71017);
-
-common.register('to', _to, {
-  pipeOnly: true,
-  wrapOutput: false,
-});
+  if (version.prerelease.length && !options.includePrerelease) {
+    // Find the set of versions that are allowed to have prereleases
+    // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
+    // That should allow `1.2.3-pr.2` to pass.
+    // However, `1.2.4-alpha.notready` should NOT be allowed,
+    // even though it's within the range set by the comparators.
+    for (let i = 0; i < set.length; i++) {
+      debug(set[i].semver)
+      if (set[i].semver === Comparator.ANY) {
+        continue
+      }
 
-//@
-//@ ### ShellString.prototype.to(file)
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ cat('input.txt').to('output.txt');
-//@ ```
-//@
-//@ Analogous to the redirection operator `>` in Unix, but works with
-//@ `ShellStrings` (such as those returned by `cat`, `grep`, etc.). _Like Unix
-//@ redirections, `to()` will overwrite any existing file!_
-function _to(options, file) {
-  if (!file) common.error('wrong arguments');
+      if (set[i].semver.prerelease.length > 0) {
+        const allowed = set[i].semver
+        if (allowed.major === version.major &&
+            allowed.minor === version.minor &&
+            allowed.patch === version.patch) {
+          return true
+        }
+      }
+    }
 
-  if (!fs.existsSync(path.dirname(file))) {
-    common.error('no such file or directory: ' + path.dirname(file));
+    // Version has a -pre, but it's not one of the ones we like.
+    return false
   }
 
-  try {
-    fs.writeFileSync(file, this.stdout || this.toString(), 'utf8');
-    return this;
-  } catch (e) {
-    /* istanbul ignore next */
-    common.error('could not write to file (code ' + e.code + '): ' + file, { continue: true });
-  }
+  return true
 }
-module.exports = _to;
 
 
 /***/ }),
 
-/***/ 33736:
+/***/ 48088:
 /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
-var path = __nccwpck_require__(71017);
+const debug = __nccwpck_require__(50427)
+const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(42293)
+const { safeRe: re, t } = __nccwpck_require__(9523)
 
-common.register('toEnd', _toEnd, {
-  pipeOnly: true,
-  wrapOutput: false,
-});
+const parseOptions = __nccwpck_require__(40785)
+const { compareIdentifiers } = __nccwpck_require__(92463)
+class SemVer {
+  constructor (version, options) {
+    options = parseOptions(options)
 
-//@
-//@ ### ShellString.prototype.toEnd(file)
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ cat('input.txt').toEnd('output.txt');
-//@ ```
-//@
-//@ Analogous to the redirect-and-append operator `>>` in Unix, but works with
-//@ `ShellStrings` (such as those returned by `cat`, `grep`, etc.).
-function _toEnd(options, file) {
-  if (!file) common.error('wrong arguments');
+    if (version instanceof SemVer) {
+      if (version.loose === !!options.loose &&
+          version.includePrerelease === !!options.includePrerelease) {
+        return version
+      } else {
+        version = version.version
+      }
+    } else if (typeof version !== 'string') {
+      throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`)
+    }
 
-  if (!fs.existsSync(path.dirname(file))) {
-    common.error('no such file or directory: ' + path.dirname(file));
-  }
+    if (version.length > MAX_LENGTH) {
+      throw new TypeError(
+        `version is longer than ${MAX_LENGTH} characters`
+      )
+    }
 
-  try {
-    fs.appendFileSync(file, this.stdout || this.toString(), 'utf8');
-    return this;
-  } catch (e) {
-    /* istanbul ignore next */
-    common.error('could not append to file (code ' + e.code + '): ' + file, { continue: true });
-  }
-}
-module.exports = _toEnd;
+    debug('SemVer', version, options)
+    this.options = options
+    this.loose = !!options.loose
+    // this isn't actually relevant for versions, but keep it so that we
+    // don't run into trouble passing this.options around.
+    this.includePrerelease = !!options.includePrerelease
 
+    const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])
 
-/***/ }),
+    if (!m) {
+      throw new TypeError(`Invalid Version: ${version}`)
+    }
 
-/***/ 28358:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+    this.raw = version
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
+    // these are actually numbers
+    this.major = +m[1]
+    this.minor = +m[2]
+    this.patch = +m[3]
 
-common.register('touch', _touch, {
-  cmdOptions: {
-    'a': 'atime_only',
-    'c': 'no_create',
-    'd': 'date',
-    'm': 'mtime_only',
-    'r': 'reference',
-  },
-});
+    if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
+      throw new TypeError('Invalid major version')
+    }
 
-//@
-//@ ### touch([options,] file [, file ...])
-//@ ### touch([options,] file_array)
-//@
-//@ Available options:
-//@
-//@ + `-a`: Change only the access time
-//@ + `-c`: Do not create any files
-//@ + `-m`: Change only the modification time
-//@ + `-d DATE`: Parse `DATE` and use it instead of current time
-//@ + `-r FILE`: Use `FILE`'s times instead of current time
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ touch('source.js');
-//@ touch('-c', '/path/to/some/dir/source.js');
-//@ touch({ '-r': FILE }, '/path/to/some/dir/source.js');
-//@ ```
-//@
-//@ Update the access and modification times of each `FILE` to the current time.
-//@ A `FILE` argument that does not exist is created empty, unless `-c` is supplied.
-//@ This is a partial implementation of [`touch(1)`](http://linux.die.net/man/1/touch).
-function _touch(opts, files) {
-  if (!files) {
-    common.error('no files given');
-  } else if (typeof files === 'string') {
-    files = [].slice.call(arguments, 1);
-  } else {
-    common.error('file arg should be a string file path or an Array of string file paths');
-  }
+    if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
+      throw new TypeError('Invalid minor version')
+    }
 
-  files.forEach(function (f) {
-    touchFile(opts, f);
-  });
-  return '';
-}
+    if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
+      throw new TypeError('Invalid patch version')
+    }
 
-function touchFile(opts, file) {
-  var stat = tryStatFile(file);
+    // numberify any prerelease numeric ids
+    if (!m[4]) {
+      this.prerelease = []
+    } else {
+      this.prerelease = m[4].split('.').map((id) => {
+        if (/^[0-9]+$/.test(id)) {
+          const num = +id
+          if (num >= 0 && num < MAX_SAFE_INTEGER) {
+            return num
+          }
+        }
+        return id
+      })
+    }
 
-  if (stat && stat.isDirectory()) {
-    // don't error just exit
-    return;
+    this.build = m[5] ? m[5].split('.') : []
+    this.format()
   }
 
-  // if the file doesn't already exist and the user has specified --no-create then
-  // this script is finished
-  if (!stat && opts.no_create) {
-    return;
+  format () {
+    this.version = `${this.major}.${this.minor}.${this.patch}`
+    if (this.prerelease.length) {
+      this.version += `-${this.prerelease.join('.')}`
+    }
+    return this.version
   }
 
-  // open the file and then close it. this will create it if it doesn't exist but will
-  // not truncate the file
-  fs.closeSync(fs.openSync(file, 'a'));
-
-  //
-  // Set timestamps
-  //
+  toString () {
+    return this.version
+  }
 
-  // setup some defaults
-  var now = new Date();
-  var mtime = opts.date || now;
-  var atime = opts.date || now;
+  compare (other) {
+    debug('SemVer.compare', this.version, this.options, other)
+    if (!(other instanceof SemVer)) {
+      if (typeof other === 'string' && other === this.version) {
+        return 0
+      }
+      other = new SemVer(other, this.options)
+    }
 
-  // use reference file
-  if (opts.reference) {
-    var refStat = tryStatFile(opts.reference);
-    if (!refStat) {
-      common.error('failed to get attributess of ' + opts.reference);
+    if (other.version === this.version) {
+      return 0
     }
-    mtime = refStat.mtime;
-    atime = refStat.atime;
-  } else if (opts.date) {
-    mtime = opts.date;
-    atime = opts.date;
-  }
 
-  if (opts.atime_only && opts.mtime_only) {
-    // keep the new values of mtime and atime like GNU
-  } else if (opts.atime_only) {
-    mtime = stat.mtime;
-  } else if (opts.mtime_only) {
-    atime = stat.atime;
+    return this.compareMain(other) || this.comparePre(other)
   }
 
-  fs.utimesSync(file, atime, mtime);
-}
-
-module.exports = _touch;
+  compareMain (other) {
+    if (!(other instanceof SemVer)) {
+      other = new SemVer(other, this.options)
+    }
 
-function tryStatFile(filePath) {
-  try {
-    return common.statFollowLinks(filePath);
-  } catch (e) {
-    return null;
+    return (
+      compareIdentifiers(this.major, other.major) ||
+      compareIdentifiers(this.minor, other.minor) ||
+      compareIdentifiers(this.patch, other.patch)
+    )
   }
-}
 
+  comparePre (other) {
+    if (!(other instanceof SemVer)) {
+      other = new SemVer(other, this.options)
+    }
 
-/***/ }),
+    // NOT having a prerelease is > having one
+    if (this.prerelease.length && !other.prerelease.length) {
+      return -1
+    } else if (!this.prerelease.length && other.prerelease.length) {
+      return 1
+    } else if (!this.prerelease.length && !other.prerelease.length) {
+      return 0
+    }
 
-/***/ 77286:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+    let i = 0
+    do {
+      const a = this.prerelease[i]
+      const b = other.prerelease[i]
+      debug('prerelease compare', i, a, b)
+      if (a === undefined && b === undefined) {
+        return 0
+      } else if (b === undefined) {
+        return 1
+      } else if (a === undefined) {
+        return -1
+      } else if (a === b) {
+        continue
+      } else {
+        return compareIdentifiers(a, b)
+      }
+    } while (++i)
+  }
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
+  compareBuild (other) {
+    if (!(other instanceof SemVer)) {
+      other = new SemVer(other, this.options)
+    }
 
-// add c spaces to the left of str
-function lpad(c, str) {
-  var res = '' + str;
-  if (res.length < c) {
-    res = Array((c - res.length) + 1).join(' ') + res;
+    let i = 0
+    do {
+      const a = this.build[i]
+      const b = other.build[i]
+      debug('prerelease compare', i, a, b)
+      if (a === undefined && b === undefined) {
+        return 0
+      } else if (b === undefined) {
+        return 1
+      } else if (a === undefined) {
+        return -1
+      } else if (a === b) {
+        continue
+      } else {
+        return compareIdentifiers(a, b)
+      }
+    } while (++i)
   }
-  return res;
-}
 
-common.register('uniq', _uniq, {
-  canReceivePipe: true,
-  cmdOptions: {
-    'i': 'ignoreCase',
-    'c': 'count',
-    'd': 'duplicates',
-  },
-});
+  // preminor will bump the version up to the next minor release, and immediately
+  // down to pre-release. premajor and prepatch work the same way.
+  inc (release, identifier, identifierBase) {
+    switch (release) {
+      case 'premajor':
+        this.prerelease.length = 0
+        this.patch = 0
+        this.minor = 0
+        this.major++
+        this.inc('pre', identifier, identifierBase)
+        break
+      case 'preminor':
+        this.prerelease.length = 0
+        this.patch = 0
+        this.minor++
+        this.inc('pre', identifier, identifierBase)
+        break
+      case 'prepatch':
+        // If this is already a prerelease, it will bump to the next version
+        // drop any prereleases that might already exist, since they are not
+        // relevant at this point.
+        this.prerelease.length = 0
+        this.inc('patch', identifier, identifierBase)
+        this.inc('pre', identifier, identifierBase)
+        break
+      // If the input is a non-prerelease version, this acts the same as
+      // prepatch.
+      case 'prerelease':
+        if (this.prerelease.length === 0) {
+          this.inc('patch', identifier, identifierBase)
+        }
+        this.inc('pre', identifier, identifierBase)
+        break
 
-//@
-//@ ### uniq([options,] [input, [output]])
-//@
-//@ Available options:
-//@
-//@ + `-i`: Ignore case while comparing
-//@ + `-c`: Prefix lines by the number of occurrences
-//@ + `-d`: Only print duplicate lines, one for each group of identical lines
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ uniq('foo.txt');
-//@ uniq('-i', 'foo.txt');
-//@ uniq('-cd', 'foo.txt', 'bar.txt');
-//@ ```
-//@
-//@ Filter adjacent matching lines from `input`.
-function _uniq(options, input, output) {
-  // Check if this is coming from a pipe
-  var pipe = common.readFromPipe();
+      case 'major':
+        // If this is a pre-major version, bump up to the same major version.
+        // Otherwise increment major.
+        // 1.0.0-5 bumps to 1.0.0
+        // 1.1.0 bumps to 2.0.0
+        if (
+          this.minor !== 0 ||
+          this.patch !== 0 ||
+          this.prerelease.length === 0
+        ) {
+          this.major++
+        }
+        this.minor = 0
+        this.patch = 0
+        this.prerelease = []
+        break
+      case 'minor':
+        // If this is a pre-minor version, bump up to the same minor version.
+        // Otherwise increment minor.
+        // 1.2.0-5 bumps to 1.2.0
+        // 1.2.1 bumps to 1.3.0
+        if (this.patch !== 0 || this.prerelease.length === 0) {
+          this.minor++
+        }
+        this.patch = 0
+        this.prerelease = []
+        break
+      case 'patch':
+        // If this is not a pre-release version, it will increment the patch.
+        // If it is a pre-release it will bump up to the same patch version.
+        // 1.2.0-5 patches to 1.2.0
+        // 1.2.0 patches to 1.2.1
+        if (this.prerelease.length === 0) {
+          this.patch++
+        }
+        this.prerelease = []
+        break
+      // This probably shouldn't be used publicly.
+      // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
+      case 'pre': {
+        const base = Number(identifierBase) ? 1 : 0
 
-  if (!pipe) {
-    if (!input) common.error('no input given');
+        if (!identifier && identifierBase === false) {
+          throw new Error('invalid increment argument: identifier is empty')
+        }
 
-    if (!fs.existsSync(input)) {
-      common.error(input + ': No such file or directory');
-    } else if (common.statFollowLinks(input).isDirectory()) {
-      common.error("error reading '" + input + "'");
+        if (this.prerelease.length === 0) {
+          this.prerelease = [base]
+        } else {
+          let i = this.prerelease.length
+          while (--i >= 0) {
+            if (typeof this.prerelease[i] === 'number') {
+              this.prerelease[i]++
+              i = -2
+            }
+          }
+          if (i === -1) {
+            // didn't increment anything
+            if (identifier === this.prerelease.join('.') && identifierBase === false) {
+              throw new Error('invalid increment argument: identifier already exists')
+            }
+            this.prerelease.push(base)
+          }
+        }
+        if (identifier) {
+          // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
+          // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
+          let prerelease = [identifier, base]
+          if (identifierBase === false) {
+            prerelease = [identifier]
+          }
+          if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
+            if (isNaN(this.prerelease[1])) {
+              this.prerelease = prerelease
+            }
+          } else {
+            this.prerelease = prerelease
+          }
+        }
+        break
+      }
+      default:
+        throw new Error(`invalid increment argument: ${release}`)
     }
+    this.raw = this.format()
+    if (this.build.length) {
+      this.raw += `+${this.build.join('.')}`
+    }
+    return this
   }
-  if (output && fs.existsSync(output) && common.statFollowLinks(output).isDirectory()) {
-    common.error(output + ': Is a directory');
-  }
+}
 
-  var lines = (input ? fs.readFileSync(input, 'utf8') : pipe).
-              trimRight().
-              split('\n');
+module.exports = SemVer
 
-  var compare = function (a, b) {
-    return options.ignoreCase ?
-           a.toLocaleLowerCase().localeCompare(b.toLocaleLowerCase()) :
-           a.localeCompare(b);
-  };
-  var uniqed = lines.reduceRight(function (res, e) {
-    // Perform uniq -c on the input
-    if (res.length === 0) {
-      return [{ count: 1, ln: e }];
-    } else if (compare(res[0].ln, e) === 0) {
-      return [{ count: res[0].count + 1, ln: e }].concat(res.slice(1));
-    } else {
-      return [{ count: 1, ln: e }].concat(res);
-    }
-  }, []).filter(function (obj) {
-                 // Do we want only duplicated objects?
-    return options.duplicates ? obj.count > 1 : true;
-  }).map(function (obj) {
-                 // Are we tracking the counts of each line?
-    return (options.count ? (lpad(7, obj.count) + ' ') : '') + obj.ln;
-  }).join('\n') + '\n';
 
-  if (output) {
-    (new common.ShellString(uniqed)).to(output);
-    // if uniq writes to output, nothing is passed to the next command in the pipeline (if any)
-    return '';
-  } else {
-    return uniqed;
-  }
-}
+/***/ }),
 
-module.exports = _uniq;
+/***/ 48848:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+const parse = __nccwpck_require__(75925)
+const clean = (version, options) => {
+  const s = parse(version.trim().replace(/^[=v]+/, ''), options)
+  return s ? s.version : null
+}
+module.exports = clean
 
 
 /***/ }),
 
-/***/ 64766:
+/***/ 75098:
 /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-var common = __nccwpck_require__(53687);
-var fs = __nccwpck_require__(57147);
-var path = __nccwpck_require__(71017);
+const eq = __nccwpck_require__(91898)
+const neq = __nccwpck_require__(6017)
+const gt = __nccwpck_require__(84123)
+const gte = __nccwpck_require__(15522)
+const lt = __nccwpck_require__(80194)
+const lte = __nccwpck_require__(77520)
 
-common.register('which', _which, {
-  allowGlobbing: false,
-  cmdOptions: {
-    'a': 'all',
-  },
-});
+const cmp = (a, op, b, loose) => {
+  switch (op) {
+    case '===':
+      if (typeof a === 'object') {
+        a = a.version
+      }
+      if (typeof b === 'object') {
+        b = b.version
+      }
+      return a === b
 
-// XP's system default value for `PATHEXT` system variable, just in case it's not
-// set on Windows.
-var XP_DEFAULT_PATHEXT = '.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh';
+    case '!==':
+      if (typeof a === 'object') {
+        a = a.version
+      }
+      if (typeof b === 'object') {
+        b = b.version
+      }
+      return a !== b
 
-// For earlier versions of NodeJS that doesn't have a list of constants (< v6)
-var FILE_EXECUTABLE_MODE = 1;
+    case '':
+    case '=':
+    case '==':
+      return eq(a, b, loose)
 
-function isWindowsPlatform() {
-  return process.platform === 'win32';
-}
+    case '!=':
+      return neq(a, b, loose)
 
-// Cross-platform method for splitting environment `PATH` variables
-function splitPath(p) {
-  return p ? p.split(path.delimiter) : [];
-}
+    case '>':
+      return gt(a, b, loose)
 
-// Tests are running all cases for this func but it stays uncovered by codecov due to unknown reason
-/* istanbul ignore next */
-function isExecutable(pathName) {
-  try {
-    // TODO(node-support): replace with fs.constants.X_OK once remove support for node < v6
-    fs.accessSync(pathName, FILE_EXECUTABLE_MODE);
-  } catch (err) {
-    return false;
+    case '>=':
+      return gte(a, b, loose)
+
+    case '<':
+      return lt(a, b, loose)
+
+    case '<=':
+      return lte(a, b, loose)
+
+    default:
+      throw new TypeError(`Invalid operator: ${op}`)
   }
-  return true;
 }
+module.exports = cmp
 
-function checkPath(pathName) {
-  return fs.existsSync(pathName) && !common.statFollowLinks(pathName).isDirectory()
-    && (isWindowsPlatform() || isExecutable(pathName));
-}
 
-//@
-//@ ### which(command)
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ var nodeExec = which('node');
-//@ ```
-//@
-//@ Searches for `command` in the system's `PATH`. On Windows, this uses the
-//@ `PATHEXT` variable to append the extension if it's not already executable.
-//@ Returns string containing the absolute path to `command`.
-function _which(options, cmd) {
-  if (!cmd) common.error('must specify command');
+/***/ }),
 
-  var isWindows = isWindowsPlatform();
-  var pathArray = splitPath(process.env.PATH);
+/***/ 13466:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-  var queryMatches = [];
+const SemVer = __nccwpck_require__(48088)
+const parse = __nccwpck_require__(75925)
+const { safeRe: re, t } = __nccwpck_require__(9523)
 
-  // No relative/absolute paths provided?
-  if (cmd.indexOf('/') === -1) {
-    // Assume that there are no extensions to append to queries (this is the
-    // case for unix)
-    var pathExtArray = [''];
-    if (isWindows) {
-      // In case the PATHEXT variable is somehow not set (e.g.
-      // child_process.spawn with an empty environment), use the XP default.
-      var pathExtEnv = process.env.PATHEXT || XP_DEFAULT_PATHEXT;
-      pathExtArray = splitPath(pathExtEnv.toUpperCase());
-    }
+const coerce = (version, options) => {
+  if (version instanceof SemVer) {
+    return version
+  }
 
-    // Search for command in PATH
-    for (var k = 0; k < pathArray.length; k++) {
-      // already found it
-      if (queryMatches.length > 0 && !options.all) break;
+  if (typeof version === 'number') {
+    version = String(version)
+  }
 
-      var attempt = path.resolve(pathArray[k], cmd);
+  if (typeof version !== 'string') {
+    return null
+  }
 
-      if (isWindows) {
-        attempt = attempt.toUpperCase();
-      }
+  options = options || {}
 
-      var match = attempt.match(/\.[^<>:"/\|?*.]+$/);
-      if (match && pathExtArray.indexOf(match[0]) >= 0) { // this is Windows-only
-        // The user typed a query with the file extension, like
-        // `which('node.exe')`
-        if (checkPath(attempt)) {
-          queryMatches.push(attempt);
-          break;
-        }
-      } else { // All-platforms
-        // Cycle through the PATHEXT array, and check each extension
-        // Note: the array is always [''] on Unix
-        for (var i = 0; i < pathExtArray.length; i++) {
-          var ext = pathExtArray[i];
-          var newAttempt = attempt + ext;
-          if (checkPath(newAttempt)) {
-            queryMatches.push(newAttempt);
-            break;
-          }
-        }
+  let match = null
+  if (!options.rtl) {
+    match = version.match(re[t.COERCE])
+  } else {
+    // Find the right-most coercible string that does not share
+    // a terminus with a more left-ward coercible string.
+    // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
+    //
+    // Walk through the string checking with a /g regexp
+    // Manually set the index so as to pick up overlapping matches.
+    // Stop when we get a match that ends at the string end, since no
+    // coercible string can be more right-ward without the same terminus.
+    let next
+    while ((next = re[t.COERCERTL].exec(version)) &&
+        (!match || match.index + match[0].length !== version.length)
+    ) {
+      if (!match ||
+            next.index + next[0].length !== match.index + match[0].length) {
+        match = next
       }
+      re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length
     }
-  } else if (checkPath(cmd)) { // a valid absolute or relative path
-    queryMatches.push(path.resolve(cmd));
+    // leave it in a clean state
+    re[t.COERCERTL].lastIndex = -1
   }
 
-  if (queryMatches.length > 0) {
-    return options.all ? queryMatches : queryMatches[0];
+  if (match === null) {
+    return null
   }
-  return options.all ? [] : null;
+
+  return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)
 }
-module.exports = _which;
+module.exports = coerce
 
 
 /***/ }),
 
-/***/ 9249:
-/***/ ((module, exports, __nccwpck_require__) => {
-
-/* module decorator */ module = __nccwpck_require__.nmd(module);
-var SourceMapConsumer = (__nccwpck_require__(56594).SourceMapConsumer);
-var path = __nccwpck_require__(71017);
+/***/ 92156:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-var fs;
-try {
-  fs = __nccwpck_require__(57147);
-  if (!fs.existsSync || !fs.readFileSync) {
-    // fs doesn't have all methods we need
-    fs = null;
-  }
-} catch (err) {
-  /* nop */
+const SemVer = __nccwpck_require__(48088)
+const compareBuild = (a, b, loose) => {
+  const versionA = new SemVer(a, loose)
+  const versionB = new SemVer(b, loose)
+  return versionA.compare(versionB) || versionA.compareBuild(versionB)
 }
+module.exports = compareBuild
 
-var bufferFrom = __nccwpck_require__(93018);
 
-/**
- * Requires a module which is protected against bundler minification.
- *
- * @param {NodeModule} mod
- * @param {string} request
- */
-function dynamicRequire(mod, request) {
-  return mod.require(request);
-}
+/***/ }),
 
-// Only install once if called multiple times
-var errorFormatterInstalled = false;
-var uncaughtShimInstalled = false;
+/***/ 62804:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-// If true, the caches are reset before a stack trace formatting operation
-var emptyCacheBetweenOperations = false;
+const compare = __nccwpck_require__(44309)
+const compareLoose = (a, b) => compare(a, b, true)
+module.exports = compareLoose
 
-// Supports {browser, node, auto}
-var environment = "auto";
 
-// Maps a file path to a string containing the file contents
-var fileContentsCache = {};
+/***/ }),
 
-// Maps a file path to a source map for that file
-var sourceMapCache = {};
+/***/ 44309:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-// Regex for detecting source maps
-var reSourceMap = /^data:application\/json[^,]+base64,/;
+const SemVer = __nccwpck_require__(48088)
+const compare = (a, b, loose) =>
+  new SemVer(a, loose).compare(new SemVer(b, loose))
 
-// Priority list of retrieve handlers
-var retrieveFileHandlers = [];
-var retrieveMapHandlers = [];
+module.exports = compare
 
-function isInBrowser() {
-  if (environment === "browser")
-    return true;
-  if (environment === "node")
-    return false;
-  return ((typeof window !== 'undefined') && (typeof XMLHttpRequest === 'function') && !(window.require && window.module && window.process && window.process.type === "renderer"));
-}
 
-function hasGlobalProcessEventEmitter() {
-  return ((typeof process === 'object') && (process !== null) && (typeof process.on === 'function'));
-}
+/***/ }),
 
-function globalProcessVersion() {
-  if ((typeof process === 'object') && (process !== null)) {
-    return process.version;
-  } else {
-    return '';
-  }
-}
+/***/ 64297:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-function globalProcessStderr() {
-  if ((typeof process === 'object') && (process !== null)) {
-    return process.stderr;
-  }
-}
+const parse = __nccwpck_require__(75925)
 
-function globalProcessExit(code) {
-  if ((typeof process === 'object') && (process !== null) && (typeof process.exit === 'function')) {
-    return process.exit(code);
+const diff = (version1, version2) => {
+  const v1 = parse(version1, null, true)
+  const v2 = parse(version2, null, true)
+  const comparison = v1.compare(v2)
+
+  if (comparison === 0) {
+    return null
   }
-}
 
-function handlerExec(list) {
-  return function(arg) {
-    for (var i = 0; i < list.length; i++) {
-      var ret = list[i](arg);
-      if (ret) {
-        return ret;
-      }
+  const v1Higher = comparison > 0
+  const highVersion = v1Higher ? v1 : v2
+  const lowVersion = v1Higher ? v2 : v1
+  const highHasPre = !!highVersion.prerelease.length
+  const lowHasPre = !!lowVersion.prerelease.length
+
+  if (lowHasPre && !highHasPre) {
+    // Going from prerelease -> no prerelease requires some special casing
+
+    // If the low version has only a major, then it will always be a major
+    // Some examples:
+    // 1.0.0-1 -> 1.0.0
+    // 1.0.0-1 -> 1.1.1
+    // 1.0.0-1 -> 2.0.0
+    if (!lowVersion.patch && !lowVersion.minor) {
+      return 'major'
     }
-    return null;
-  };
-}
 
-var retrieveFile = handlerExec(retrieveFileHandlers);
+    // Otherwise it can be determined by checking the high version
 
-retrieveFileHandlers.push(function(path) {
-  // Trim the path to make sure there is no extra whitespace.
-  path = path.trim();
-  if (/^file:/.test(path)) {
-    // existsSync/readFileSync can't handle file protocol, but once stripped, it works
-    path = path.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) {
-      return drive ?
-        '' : // file:///C:/dir/file -> C:/dir/file
-        '/'; // file:///root-dir/file -> /root-dir/file
-    });
-  }
-  if (path in fileContentsCache) {
-    return fileContentsCache[path];
-  }
+    if (highVersion.patch) {
+      // anything higher than a patch bump would result in the wrong version
+      return 'patch'
+    }
 
-  var contents = '';
-  try {
-    if (!fs) {
-      // Use SJAX if we are in the browser
-      var xhr = new XMLHttpRequest();
-      xhr.open('GET', path, /** async */ false);
-      xhr.send(null);
-      if (xhr.readyState === 4 && xhr.status === 200) {
-        contents = xhr.responseText;
-      }
-    } else if (fs.existsSync(path)) {
-      // Otherwise, use the filesystem
-      contents = fs.readFileSync(path, 'utf8');
+    if (highVersion.minor) {
+      // anything higher than a minor bump would result in the wrong version
+      return 'minor'
     }
-  } catch (er) {
-    /* ignore any errors */
+
+    // bumping major/minor/patch all have same result
+    return 'major'
   }
 
-  return fileContentsCache[path] = contents;
-});
+  // add the `pre` prefix if we are going to a prerelease version
+  const prefix = highHasPre ? 'pre' : ''
 
-// Support URLs relative to a directory, but be careful about a protocol prefix
-// in case we are in the browser (i.e. directories may start with "http://" or "file:///")
-function supportRelativeURL(file, url) {
-  if (!file) return url;
-  var dir = path.dirname(file);
-  var match = /^\w+:\/\/[^\/]*/.exec(dir);
-  var protocol = match ? match[0] : '';
-  var startPath = dir.slice(protocol.length);
-  if (protocol && /^\/\w\:/.test(startPath)) {
-    // handle file:///C:/ paths
-    protocol += '/';
-    return protocol + path.resolve(dir.slice(protocol.length), url).replace(/\\/g, '/');
+  if (v1.major !== v2.major) {
+    return prefix + 'major'
   }
-  return protocol + path.resolve(dir.slice(protocol.length), url);
+
+  if (v1.minor !== v2.minor) {
+    return prefix + 'minor'
+  }
+
+  if (v1.patch !== v2.patch) {
+    return prefix + 'patch'
+  }
+
+  // high and low are preleases
+  return 'prerelease'
 }
 
-function retrieveSourceMapURL(source) {
-  var fileData;
+module.exports = diff
 
-  if (isInBrowser()) {
-     try {
-       var xhr = new XMLHttpRequest();
-       xhr.open('GET', source, false);
-       xhr.send(null);
-       fileData = xhr.readyState === 4 ? xhr.responseText : null;
 
-       // Support providing a sourceMappingURL via the SourceMap header
-       var sourceMapHeader = xhr.getResponseHeader("SourceMap") ||
-                             xhr.getResponseHeader("X-SourceMap");
-       if (sourceMapHeader) {
-         return sourceMapHeader;
-       }
-     } catch (e) {
-     }
-  }
+/***/ }),
 
-  // Get the URL of the source map
-  fileData = retrieveFile(source);
-  var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg;
-  // Keep executing the search to find the *last* sourceMappingURL to avoid
-  // picking up sourceMappingURLs from comments, strings, etc.
-  var lastMatch, match;
-  while (match = re.exec(fileData)) lastMatch = match;
-  if (!lastMatch) return null;
-  return lastMatch[1];
-};
+/***/ 91898:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-// Can be overridden by the retrieveSourceMap option to install. Takes a
-// generated source filename; returns a {map, optional url} object, or null if
-// there is no source map.  The map field may be either a string or the parsed
-// JSON object (ie, it must be a valid argument to the SourceMapConsumer
-// constructor).
-var retrieveSourceMap = handlerExec(retrieveMapHandlers);
-retrieveMapHandlers.push(function(source) {
-  var sourceMappingURL = retrieveSourceMapURL(source);
-  if (!sourceMappingURL) return null;
+const compare = __nccwpck_require__(44309)
+const eq = (a, b, loose) => compare(a, b, loose) === 0
+module.exports = eq
 
-  // Read the contents of the source map
-  var sourceMapData;
-  if (reSourceMap.test(sourceMappingURL)) {
-    // Support source map URL as a data url
-    var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1);
-    sourceMapData = bufferFrom(rawData, "base64").toString();
-    sourceMappingURL = source;
-  } else {
-    // Support source map URLs relative to the source URL
-    sourceMappingURL = supportRelativeURL(source, sourceMappingURL);
-    sourceMapData = retrieveFile(sourceMappingURL);
-  }
 
-  if (!sourceMapData) {
-    return null;
-  }
+/***/ }),
 
-  return {
-    url: sourceMappingURL,
-    map: sourceMapData
-  };
-});
+/***/ 84123:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-function mapSourcePosition(position) {
-  var sourceMap = sourceMapCache[position.source];
-  if (!sourceMap) {
-    // Call the (overrideable) retrieveSourceMap function to get the source map.
-    var urlAndMap = retrieveSourceMap(position.source);
-    if (urlAndMap) {
-      sourceMap = sourceMapCache[position.source] = {
-        url: urlAndMap.url,
-        map: new SourceMapConsumer(urlAndMap.map)
-      };
+const compare = __nccwpck_require__(44309)
+const gt = (a, b, loose) => compare(a, b, loose) > 0
+module.exports = gt
 
-      // Load all sources stored inline with the source map into the file cache
-      // to pretend like they are already loaded. They may not exist on disk.
-      if (sourceMap.map.sourcesContent) {
-        sourceMap.map.sources.forEach(function(source, i) {
-          var contents = sourceMap.map.sourcesContent[i];
-          if (contents) {
-            var url = supportRelativeURL(sourceMap.url, source);
-            fileContentsCache[url] = contents;
-          }
-        });
-      }
-    } else {
-      sourceMap = sourceMapCache[position.source] = {
-        url: null,
-        map: null
-      };
-    }
-  }
 
-  // Resolve the source URL relative to the URL of the source map
-  if (sourceMap && sourceMap.map && typeof sourceMap.map.originalPositionFor === 'function') {
-    var originalPosition = sourceMap.map.originalPositionFor(position);
+/***/ }),
 
-    // Only return the original position if a matching line was found. If no
-    // matching line is found then we return position instead, which will cause
-    // the stack trace to print the path and line for the compiled file. It is
-    // better to give a precise location in the compiled file than a vague
-    // location in the original file.
-    if (originalPosition.source !== null) {
-      originalPosition.source = supportRelativeURL(
-        sourceMap.url, originalPosition.source);
-      return originalPosition;
-    }
-  }
+/***/ 15522:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-  return position;
-}
+const compare = __nccwpck_require__(44309)
+const gte = (a, b, loose) => compare(a, b, loose) >= 0
+module.exports = gte
 
-// Parses code generated by FormatEvalOrigin(), a function inside V8:
-// https://code.google.com/p/v8/source/browse/trunk/src/messages.js
-function mapEvalOrigin(origin) {
-  // Most eval() calls are in this format
-  var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin);
-  if (match) {
-    var position = mapSourcePosition({
-      source: match[2],
-      line: +match[3],
-      column: match[4] - 1
-    });
-    return 'eval at ' + match[1] + ' (' + position.source + ':' +
-      position.line + ':' + (position.column + 1) + ')';
-  }
 
-  // Parse nested eval() calls using recursion
-  match = /^eval at ([^(]+) \((.+)\)$/.exec(origin);
-  if (match) {
-    return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')';
-  }
+/***/ }),
 
-  // Make sure we still return useful information if we didn't find anything
-  return origin;
-}
+/***/ 30900:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-// This is copied almost verbatim from the V8 source code at
-// https://code.google.com/p/v8/source/browse/trunk/src/messages.js. The
-// implementation of wrapCallSite() used to just forward to the actual source
-// code of CallSite.prototype.toString but unfortunately a new release of V8
-// did something to the prototype chain and broke the shim. The only fix I
-// could find was copy/paste.
-function CallSiteToString() {
-  var fileName;
-  var fileLocation = "";
-  if (this.isNative()) {
-    fileLocation = "native";
-  } else {
-    fileName = this.getScriptNameOrSourceURL();
-    if (!fileName && this.isEval()) {
-      fileLocation = this.getEvalOrigin();
-      fileLocation += ", ";  // Expecting source position to follow.
-    }
+const SemVer = __nccwpck_require__(48088)
 
-    if (fileName) {
-      fileLocation += fileName;
-    } else {
-      // Source code does not originate from a file and is not native, but we
-      // can still get the source position inside the source string, e.g. in
-      // an eval string.
-      fileLocation += "";
-    }
-    var lineNumber = this.getLineNumber();
-    if (lineNumber != null) {
-      fileLocation += ":" + lineNumber;
-      var columnNumber = this.getColumnNumber();
-      if (columnNumber) {
-        fileLocation += ":" + columnNumber;
-      }
-    }
+const inc = (version, release, options, identifier, identifierBase) => {
+  if (typeof (options) === 'string') {
+    identifierBase = identifier
+    identifier = options
+    options = undefined
   }
 
-  var line = "";
-  var functionName = this.getFunctionName();
-  var addSuffix = true;
-  var isConstructor = this.isConstructor();
-  var isMethodCall = !(this.isToplevel() || isConstructor);
-  if (isMethodCall) {
-    var typeName = this.getTypeName();
-    // Fixes shim to be backward compatable with Node v0 to v4
-    if (typeName === "[object Object]") {
-      typeName = "null";
-    }
-    var methodName = this.getMethodName();
-    if (functionName) {
-      if (typeName && functionName.indexOf(typeName) != 0) {
-        line += typeName + ".";
-      }
-      line += functionName;
-      if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) {
-        line += " [as " + methodName + "]";
-      }
-    } else {
-      line += typeName + "." + (methodName || "");
-    }
-  } else if (isConstructor) {
-    line += "new " + (functionName || "");
-  } else if (functionName) {
-    line += functionName;
-  } else {
-    line += fileLocation;
-    addSuffix = false;
-  }
-  if (addSuffix) {
-    line += " (" + fileLocation + ")";
+  try {
+    return new SemVer(
+      version instanceof SemVer ? version.version : version,
+      options
+    ).inc(release, identifier, identifierBase).version
+  } catch (er) {
+    return null
   }
-  return line;
 }
+module.exports = inc
 
-function cloneCallSite(frame) {
-  var object = {};
-  Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) {
-    object[name] = /^(?:is|get)/.test(name) ? function() { return frame[name].call(frame); } : frame[name];
-  });
-  object.toString = CallSiteToString;
-  return object;
-}
 
-function wrapCallSite(frame, state) {
-  // provides interface backward compatibility
-  if (state === undefined) {
-    state = { nextPosition: null, curPosition: null }
-  }
-  if(frame.isNative()) {
-    state.curPosition = null;
-    return frame;
-  }
+/***/ }),
 
-  // Most call sites will return the source file from getFileName(), but code
-  // passed to eval() ending in "//# sourceURL=..." will return the source file
-  // from getScriptNameOrSourceURL() instead
-  var source = frame.getFileName() || frame.getScriptNameOrSourceURL();
-  if (source) {
-    var line = frame.getLineNumber();
-    var column = frame.getColumnNumber() - 1;
+/***/ 80194:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    // Fix position in Node where some (internal) code is prepended.
-    // See https://github.com/evanw/node-source-map-support/issues/36
-    // Header removed in node at ^10.16 || >=11.11.0
-    // v11 is not an LTS candidate, we can just test the one version with it.
-    // Test node versions for: 10.16-19, 10.20+, 12-19, 20-99, 100+, or 11.11
-    var noHeader = /^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/;
-    var headerLength = noHeader.test(globalProcessVersion()) ? 0 : 62;
-    if (line === 1 && column > headerLength && !isInBrowser() && !frame.isEval()) {
-      column -= headerLength;
-    }
+const compare = __nccwpck_require__(44309)
+const lt = (a, b, loose) => compare(a, b, loose) < 0
+module.exports = lt
 
-    var position = mapSourcePosition({
-      source: source,
-      line: line,
-      column: column
-    });
-    state.curPosition = position;
-    frame = cloneCallSite(frame);
-    var originalFunctionName = frame.getFunctionName;
-    frame.getFunctionName = function() {
-      if (state.nextPosition == null) {
-        return originalFunctionName();
-      }
-      return state.nextPosition.name || originalFunctionName();
-    };
-    frame.getFileName = function() { return position.source; };
-    frame.getLineNumber = function() { return position.line; };
-    frame.getColumnNumber = function() { return position.column + 1; };
-    frame.getScriptNameOrSourceURL = function() { return position.source; };
-    return frame;
-  }
 
-  // Code called using eval() needs special handling
-  var origin = frame.isEval() && frame.getEvalOrigin();
-  if (origin) {
-    origin = mapEvalOrigin(origin);
-    frame = cloneCallSite(frame);
-    frame.getEvalOrigin = function() { return origin; };
-    return frame;
-  }
+/***/ }),
 
-  // If we get here then we were unable to change the source position
-  return frame;
-}
+/***/ 77520:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-// This function is part of the V8 stack trace API, for more info see:
-// https://v8.dev/docs/stack-trace-api
-function prepareStackTrace(error, stack) {
-  if (emptyCacheBetweenOperations) {
-    fileContentsCache = {};
-    sourceMapCache = {};
-  }
+const compare = __nccwpck_require__(44309)
+const lte = (a, b, loose) => compare(a, b, loose) <= 0
+module.exports = lte
 
-  var name = error.name || 'Error';
-  var message = error.message || '';
-  var errorString = name + ": " + message;
 
-  var state = { nextPosition: null, curPosition: null };
-  var processedStack = [];
-  for (var i = stack.length - 1; i >= 0; i--) {
-    processedStack.push('\n    at ' + wrapCallSite(stack[i], state));
-    state.nextPosition = state.curPosition;
-  }
-  state.curPosition = state.nextPosition = null;
-  return errorString + processedStack.reverse().join('');
-}
+/***/ }),
 
-// Generate position and snippet of original source with pointer
-function getErrorSource(error) {
-  var match = /\n    at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack);
-  if (match) {
-    var source = match[1];
-    var line = +match[2];
-    var column = +match[3];
+/***/ 76688:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    // Support the inline sourceContents inside the source map
-    var contents = fileContentsCache[source];
+const SemVer = __nccwpck_require__(48088)
+const major = (a, loose) => new SemVer(a, loose).major
+module.exports = major
 
-    // Support files on disk
-    if (!contents && fs && fs.existsSync(source)) {
-      try {
-        contents = fs.readFileSync(source, 'utf8');
-      } catch (er) {
-        contents = '';
-      }
-    }
 
-    // Format the line from the original source code like node does
-    if (contents) {
-      var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1];
-      if (code) {
-        return source + ':' + line + '\n' + code + '\n' +
-          new Array(column).join(' ') + '^';
-      }
+/***/ }),
+
+/***/ 38447:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+const SemVer = __nccwpck_require__(48088)
+const minor = (a, loose) => new SemVer(a, loose).minor
+module.exports = minor
+
+
+/***/ }),
+
+/***/ 6017:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+const compare = __nccwpck_require__(44309)
+const neq = (a, b, loose) => compare(a, b, loose) !== 0
+module.exports = neq
+
+
+/***/ }),
+
+/***/ 75925:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+const SemVer = __nccwpck_require__(48088)
+const parse = (version, options, throwErrors = false) => {
+  if (version instanceof SemVer) {
+    return version
+  }
+  try {
+    return new SemVer(version, options)
+  } catch (er) {
+    if (!throwErrors) {
+      return null
     }
+    throw er
   }
-  return null;
 }
 
-function printErrorAndExit (error) {
-  var source = getErrorSource(error);
+module.exports = parse
 
-  // Ensure error is printed synchronously and not truncated
-  var stderr = globalProcessStderr();
-  if (stderr && stderr._handle && stderr._handle.setBlocking) {
-    stderr._handle.setBlocking(true);
-  }
 
-  if (source) {
-    console.error();
-    console.error(source);
-  }
+/***/ }),
 
-  console.error(error.stack);
-  globalProcessExit(1);
-}
+/***/ 42866:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-function shimEmitUncaughtException () {
-  var origEmit = process.emit;
+const SemVer = __nccwpck_require__(48088)
+const patch = (a, loose) => new SemVer(a, loose).patch
+module.exports = patch
 
-  process.emit = function (type) {
-    if (type === 'uncaughtException') {
-      var hasStack = (arguments[1] && arguments[1].stack);
-      var hasListeners = (this.listeners(type).length > 0);
 
-      if (hasStack && !hasListeners) {
-        return printErrorAndExit(arguments[1]);
-      }
-    }
+/***/ }),
 
-    return origEmit.apply(this, arguments);
-  };
+/***/ 24016:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+const parse = __nccwpck_require__(75925)
+const prerelease = (version, options) => {
+  const parsed = parse(version, options)
+  return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
 }
+module.exports = prerelease
 
-var originalRetrieveFileHandlers = retrieveFileHandlers.slice(0);
-var originalRetrieveMapHandlers = retrieveMapHandlers.slice(0);
 
-exports.wrapCallSite = wrapCallSite;
-exports.getErrorSource = getErrorSource;
-exports.mapSourcePosition = mapSourcePosition;
-exports.retrieveSourceMap = retrieveSourceMap;
+/***/ }),
 
-exports.install = function(options) {
-  options = options || {};
+/***/ 76417:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-  if (options.environment) {
-    environment = options.environment;
-    if (["node", "browser", "auto"].indexOf(environment) === -1) {
-      throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}")
-    }
-  }
+const compare = __nccwpck_require__(44309)
+const rcompare = (a, b, loose) => compare(b, a, loose)
+module.exports = rcompare
 
-  // Allow sources to be found by methods other than reading the files
-  // directly from disk.
-  if (options.retrieveFile) {
-    if (options.overrideRetrieveFile) {
-      retrieveFileHandlers.length = 0;
-    }
 
-    retrieveFileHandlers.unshift(options.retrieveFile);
-  }
+/***/ }),
 
-  // Allow source maps to be found by methods other than reading the files
-  // directly from disk.
-  if (options.retrieveSourceMap) {
-    if (options.overrideRetrieveSourceMap) {
-      retrieveMapHandlers.length = 0;
-    }
+/***/ 8701:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    retrieveMapHandlers.unshift(options.retrieveSourceMap);
-  }
+const compareBuild = __nccwpck_require__(92156)
+const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))
+module.exports = rsort
 
-  // Support runtime transpilers that include inline source maps
-  if (options.hookRequire && !isInBrowser()) {
-    // Use dynamicRequire to avoid including in browser bundles
-    var Module = dynamicRequire(module, 'module');
-    var $compile = Module.prototype._compile;
 
-    if (!$compile.__sourceMapSupport) {
-      Module.prototype._compile = function(content, filename) {
-        fileContentsCache[filename] = content;
-        sourceMapCache[filename] = undefined;
-        return $compile.call(this, content, filename);
-      };
+/***/ }),
 
-      Module.prototype._compile.__sourceMapSupport = true;
-    }
-  }
+/***/ 6055:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-  // Configure options
-  if (!emptyCacheBetweenOperations) {
-    emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ?
-      options.emptyCacheBetweenOperations : false;
+const Range = __nccwpck_require__(9828)
+const satisfies = (version, range, options) => {
+  try {
+    range = new Range(range, options)
+  } catch (er) {
+    return false
   }
+  return range.test(version)
+}
+module.exports = satisfies
 
-  // Install the error reformatter
-  if (!errorFormatterInstalled) {
-    errorFormatterInstalled = true;
-    Error.prepareStackTrace = prepareStackTrace;
-  }
 
-  if (!uncaughtShimInstalled) {
-    var installHandler = 'handleUncaughtExceptions' in options ?
-      options.handleUncaughtExceptions : true;
+/***/ }),
 
-    // Do not override 'uncaughtException' with our own handler in Node.js
-    // Worker threads. Workers pass the error to the main thread as an event,
-    // rather than printing something to stderr and exiting.
-    try {
-      // We need to use `dynamicRequire` because `require` on it's own will be optimized by WebPack/Browserify.
-      var worker_threads = dynamicRequire(module, 'worker_threads');
-      if (worker_threads.isMainThread === false) {
-        installHandler = false;
-      }
-    } catch(e) {}
+/***/ 61426:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    // Provide the option to not install the uncaught exception handler. This is
-    // to support other uncaught exception handlers (in test frameworks, for
-    // example). If this handler is not installed and there are no other uncaught
-    // exception handlers, uncaught exceptions will be caught by node's built-in
-    // exception handler and the process will still be terminated. However, the
-    // generated JavaScript code will be shown above the stack trace instead of
-    // the original source code.
-    if (installHandler && hasGlobalProcessEventEmitter()) {
-      uncaughtShimInstalled = true;
-      shimEmitUncaughtException();
-    }
-  }
-};
+const compareBuild = __nccwpck_require__(92156)
+const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))
+module.exports = sort
 
-exports.resetRetrieveHandlers = function() {
-  retrieveFileHandlers.length = 0;
-  retrieveMapHandlers.length = 0;
 
-  retrieveFileHandlers = originalRetrieveFileHandlers.slice(0);
-  retrieveMapHandlers = originalRetrieveMapHandlers.slice(0);
+/***/ }),
 
-  retrieveSourceMap = handlerExec(retrieveMapHandlers);
-  retrieveFile = handlerExec(retrieveFileHandlers);
+/***/ 19601:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+const parse = __nccwpck_require__(75925)
+const valid = (version, options) => {
+  const v = parse(version, options)
+  return v ? v.version : null
 }
+module.exports = valid
 
 
 /***/ }),
 
-/***/ 26375:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-var util = __nccwpck_require__(12344);
-var has = Object.prototype.hasOwnProperty;
-var hasNativeMap = typeof Map !== "undefined";
+/***/ 11383:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-/**
- * A data structure which is a combination of an array and a set. Adding a new
- * member is O(1), testing for membership is O(1), and finding the index of an
- * element is O(1). Removing elements from the set is not supported. Only
- * strings are supported for membership.
- */
-function ArraySet() {
-  this._array = [];
-  this._set = hasNativeMap ? new Map() : Object.create(null);
+// just pre-load all the stuff that index.js lazily exports
+const internalRe = __nccwpck_require__(9523)
+const constants = __nccwpck_require__(42293)
+const SemVer = __nccwpck_require__(48088)
+const identifiers = __nccwpck_require__(92463)
+const parse = __nccwpck_require__(75925)
+const valid = __nccwpck_require__(19601)
+const clean = __nccwpck_require__(48848)
+const inc = __nccwpck_require__(30900)
+const diff = __nccwpck_require__(64297)
+const major = __nccwpck_require__(76688)
+const minor = __nccwpck_require__(38447)
+const patch = __nccwpck_require__(42866)
+const prerelease = __nccwpck_require__(24016)
+const compare = __nccwpck_require__(44309)
+const rcompare = __nccwpck_require__(76417)
+const compareLoose = __nccwpck_require__(62804)
+const compareBuild = __nccwpck_require__(92156)
+const sort = __nccwpck_require__(61426)
+const rsort = __nccwpck_require__(8701)
+const gt = __nccwpck_require__(84123)
+const lt = __nccwpck_require__(80194)
+const eq = __nccwpck_require__(91898)
+const neq = __nccwpck_require__(6017)
+const gte = __nccwpck_require__(15522)
+const lte = __nccwpck_require__(77520)
+const cmp = __nccwpck_require__(75098)
+const coerce = __nccwpck_require__(13466)
+const Comparator = __nccwpck_require__(91532)
+const Range = __nccwpck_require__(9828)
+const satisfies = __nccwpck_require__(6055)
+const toComparators = __nccwpck_require__(52706)
+const maxSatisfying = __nccwpck_require__(20579)
+const minSatisfying = __nccwpck_require__(10832)
+const minVersion = __nccwpck_require__(34179)
+const validRange = __nccwpck_require__(2098)
+const outside = __nccwpck_require__(60420)
+const gtr = __nccwpck_require__(9380)
+const ltr = __nccwpck_require__(33323)
+const intersects = __nccwpck_require__(27008)
+const simplifyRange = __nccwpck_require__(56561)
+const subset = __nccwpck_require__(7863)
+module.exports = {
+  parse,
+  valid,
+  clean,
+  inc,
+  diff,
+  major,
+  minor,
+  patch,
+  prerelease,
+  compare,
+  rcompare,
+  compareLoose,
+  compareBuild,
+  sort,
+  rsort,
+  gt,
+  lt,
+  eq,
+  neq,
+  gte,
+  lte,
+  cmp,
+  coerce,
+  Comparator,
+  Range,
+  satisfies,
+  toComparators,
+  maxSatisfying,
+  minSatisfying,
+  minVersion,
+  validRange,
+  outside,
+  gtr,
+  ltr,
+  intersects,
+  simplifyRange,
+  subset,
+  SemVer,
+  re: internalRe.re,
+  src: internalRe.src,
+  tokens: internalRe.t,
+  SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
+  RELEASE_TYPES: constants.RELEASE_TYPES,
+  compareIdentifiers: identifiers.compareIdentifiers,
+  rcompareIdentifiers: identifiers.rcompareIdentifiers,
 }
 
-/**
- * Static method for creating ArraySet instances from an existing array.
- */
-ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
-  var set = new ArraySet();
-  for (var i = 0, len = aArray.length; i < len; i++) {
-    set.add(aArray[i], aAllowDuplicates);
-  }
-  return set;
-};
 
-/**
- * Return how many unique items are in this ArraySet. If duplicates have been
- * added, than those do not count towards the size.
- *
- * @returns Number
- */
-ArraySet.prototype.size = function ArraySet_size() {
-  return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;
-};
+/***/ }),
 
-/**
- * Add the given string to this set.
- *
- * @param String aStr
- */
-ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
-  var sStr = hasNativeMap ? aStr : util.toSetString(aStr);
-  var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
-  var idx = this._array.length;
-  if (!isDuplicate || aAllowDuplicates) {
-    this._array.push(aStr);
-  }
-  if (!isDuplicate) {
-    if (hasNativeMap) {
-      this._set.set(aStr, idx);
-    } else {
-      this._set[sStr] = idx;
-    }
-  }
-};
+/***/ 42293:
+/***/ ((module) => {
 
-/**
- * Is the given string a member of this set?
- *
- * @param String aStr
- */
-ArraySet.prototype.has = function ArraySet_has(aStr) {
-  if (hasNativeMap) {
-    return this._set.has(aStr);
-  } else {
-    var sStr = util.toSetString(aStr);
-    return has.call(this._set, sStr);
-  }
-};
+// Note: this is the semver.org version of the spec that it implements
+// Not necessarily the package version of this code.
+const SEMVER_SPEC_VERSION = '2.0.0'
 
-/**
- * What is the index of the given string in the array?
- *
- * @param String aStr
- */
-ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {
-  if (hasNativeMap) {
-    var idx = this._set.get(aStr);
-    if (idx >= 0) {
-        return idx;
-    }
-  } else {
-    var sStr = util.toSetString(aStr);
-    if (has.call(this._set, sStr)) {
-      return this._set[sStr];
-    }
-  }
+const MAX_LENGTH = 256
+const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
+/* istanbul ignore next */ 9007199254740991
 
-  throw new Error('"' + aStr + '" is not in the set.');
-};
+// Max safe segment length for coercion.
+const MAX_SAFE_COMPONENT_LENGTH = 16
 
-/**
- * What is the element at the given index?
- *
- * @param Number aIdx
- */
-ArraySet.prototype.at = function ArraySet_at(aIdx) {
-  if (aIdx >= 0 && aIdx < this._array.length) {
-    return this._array[aIdx];
-  }
-  throw new Error('No element indexed by ' + aIdx);
-};
+// Max safe length for a build identifier. The max length minus 6 characters for
+// the shortest version with a build 0.0.0+BUILD.
+const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6
 
-/**
- * Returns the array representation of this set (which has the proper indices
- * indicated by indexOf). Note that this is a copy of the internal array used
- * for storing the members so that no one can mess with internal state.
- */
-ArraySet.prototype.toArray = function ArraySet_toArray() {
-  return this._array.slice();
-};
+const RELEASE_TYPES = [
+  'major',
+  'premajor',
+  'minor',
+  'preminor',
+  'patch',
+  'prepatch',
+  'prerelease',
+]
 
-exports.I = ArraySet;
+module.exports = {
+  MAX_LENGTH,
+  MAX_SAFE_COMPONENT_LENGTH,
+  MAX_SAFE_BUILD_LENGTH,
+  MAX_SAFE_INTEGER,
+  RELEASE_TYPES,
+  SEMVER_SPEC_VERSION,
+  FLAG_INCLUDE_PRERELEASE: 0b001,
+  FLAG_LOOSE: 0b010,
+}
 
 
 /***/ }),
 
-/***/ 10975:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ 50427:
+/***/ ((module) => {
 
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- *
- * Based on the Base 64 VLQ implementation in Closure Compiler:
- * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java
- *
- * Copyright 2011 The Closure Compiler Authors. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *  * Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *  * Redistributions in binary form must reproduce the above
- *    copyright notice, this list of conditions and the following
- *    disclaimer in the documentation and/or other materials provided
- *    with the distribution.
- *  * Neither the name of Google Inc. nor the names of its
- *    contributors may be used to endorse or promote products derived
- *    from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
+const debug = (
+  typeof process === 'object' &&
+  process.env &&
+  process.env.NODE_DEBUG &&
+  /\bsemver\b/i.test(process.env.NODE_DEBUG)
+) ? (...args) => console.error('SEMVER', ...args)
+  : () => {}
 
-var base64 = __nccwpck_require__(6156);
+module.exports = debug
 
-// A single base 64 digit can contain 6 bits of data. For the base 64 variable
-// length quantities we use in the source map spec, the first bit is the sign,
-// the next four bits are the actual value, and the 6th bit is the
-// continuation bit. The continuation bit tells us whether there are more
-// digits in this value following this digit.
-//
-//   Continuation
-//   |    Sign
-//   |    |
-//   V    V
-//   101011
 
-var VLQ_BASE_SHIFT = 5;
+/***/ }),
 
-// binary: 100000
-var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
+/***/ 92463:
+/***/ ((module) => {
 
-// binary: 011111
-var VLQ_BASE_MASK = VLQ_BASE - 1;
+const numeric = /^[0-9]+$/
+const compareIdentifiers = (a, b) => {
+  const anum = numeric.test(a)
+  const bnum = numeric.test(b)
 
-// binary: 100000
-var VLQ_CONTINUATION_BIT = VLQ_BASE;
+  if (anum && bnum) {
+    a = +a
+    b = +b
+  }
 
-/**
- * Converts from a two-complement value to a value where the sign bit is
- * placed in the least significant bit.  For example, as decimals:
- *   1 becomes 2 (10 binary), -1 becomes 3 (11 binary)
- *   2 becomes 4 (100 binary), -2 becomes 5 (101 binary)
- */
-function toVLQSigned(aValue) {
-  return aValue < 0
-    ? ((-aValue) << 1) + 1
-    : (aValue << 1) + 0;
+  return a === b ? 0
+    : (anum && !bnum) ? -1
+    : (bnum && !anum) ? 1
+    : a < b ? -1
+    : 1
 }
 
-/**
- * Converts to a two-complement value from a value where the sign bit is
- * placed in the least significant bit.  For example, as decimals:
- *   2 (10 binary) becomes 1, 3 (11 binary) becomes -1
- *   4 (100 binary) becomes 2, 5 (101 binary) becomes -2
- */
-function fromVLQSigned(aValue) {
-  var isNegative = (aValue & 1) === 1;
-  var shifted = aValue >> 1;
-  return isNegative
-    ? -shifted
-    : shifted;
-}
+const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)
 
-/**
- * Returns the base 64 VLQ encoded value.
- */
-exports.encode = function base64VLQ_encode(aValue) {
-  var encoded = "";
-  var digit;
+module.exports = {
+  compareIdentifiers,
+  rcompareIdentifiers,
+}
 
-  var vlq = toVLQSigned(aValue);
 
-  do {
-    digit = vlq & VLQ_BASE_MASK;
-    vlq >>>= VLQ_BASE_SHIFT;
-    if (vlq > 0) {
-      // There are still more digits in this value, so we must make sure the
-      // continuation bit is marked.
-      digit |= VLQ_CONTINUATION_BIT;
-    }
-    encoded += base64.encode(digit);
-  } while (vlq > 0);
+/***/ }),
 
-  return encoded;
-};
+/***/ 40785:
+/***/ ((module) => {
 
-/**
- * Decodes the next base 64 VLQ value from the given string and returns the
- * value and the rest of the string via the out parameter.
- */
-exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
-  var strLen = aStr.length;
-  var result = 0;
-  var shift = 0;
-  var continuation, digit;
+// parse out just the options we care about
+const looseOption = Object.freeze({ loose: true })
+const emptyOpts = Object.freeze({ })
+const parseOptions = options => {
+  if (!options) {
+    return emptyOpts
+  }
 
-  do {
-    if (aIndex >= strLen) {
-      throw new Error("Expected more digits in base 64 VLQ value.");
-    }
+  if (typeof options !== 'object') {
+    return looseOption
+  }
 
-    digit = base64.decode(aStr.charCodeAt(aIndex++));
-    if (digit === -1) {
-      throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1));
-    }
+  return options
+}
+module.exports = parseOptions
 
-    continuation = !!(digit & VLQ_CONTINUATION_BIT);
-    digit &= VLQ_BASE_MASK;
-    result = result + (digit << shift);
-    shift += VLQ_BASE_SHIFT;
-  } while (continuation);
 
-  aOutParam.value = fromVLQSigned(result);
-  aOutParam.rest = aIndex;
-};
+/***/ }),
 
+/***/ 9523:
+/***/ ((module, exports, __nccwpck_require__) => {
 
-/***/ }),
+const {
+  MAX_SAFE_COMPONENT_LENGTH,
+  MAX_SAFE_BUILD_LENGTH,
+  MAX_LENGTH,
+} = __nccwpck_require__(42293)
+const debug = __nccwpck_require__(50427)
+exports = module.exports = {}
 
-/***/ 6156:
-/***/ ((__unused_webpack_module, exports) => {
+// The actual regexps go on exports.re
+const re = exports.re = []
+const safeRe = exports.safeRe = []
+const src = exports.src = []
+const t = exports.t = {}
+let R = 0
 
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
+const LETTERDASHNUMBER = '[a-zA-Z0-9-]'
 
-var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');
+// Replace some greedy regex tokens to prevent regex dos issues. These regex are
+// used internally via the safeRe object since all inputs in this library get
+// normalized first to trim and collapse all extra whitespace. The original
+// regexes are exported for userland consumption and lower level usage. A
+// future breaking change could export the safer regex only with a note that
+// all input should have extra whitespace removed.
+const safeRegexReplacements = [
+  ['\\s', 1],
+  ['\\d', MAX_LENGTH],
+  [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
+]
 
-/**
- * Encode an integer in the range of 0 to 63 to a single base 64 digit.
- */
-exports.encode = function (number) {
-  if (0 <= number && number < intToCharMap.length) {
-    return intToCharMap[number];
+const makeSafeRegex = (value) => {
+  for (const [token, max] of safeRegexReplacements) {
+    value = value
+      .split(`${token}*`).join(`${token}{0,${max}}`)
+      .split(`${token}+`).join(`${token}{1,${max}}`)
   }
-  throw new TypeError("Must be between 0 and 63: " + number);
-};
+  return value
+}
 
-/**
- * Decode a single base 64 character code digit to an integer. Returns -1 on
- * failure.
- */
-exports.decode = function (charCode) {
-  var bigA = 65;     // 'A'
-  var bigZ = 90;     // 'Z'
+const createToken = (name, value, isGlobal) => {
+  const safe = makeSafeRegex(value)
+  const index = R++
+  debug(name, index, value)
+  t[name] = index
+  src[index] = value
+  re[index] = new RegExp(value, isGlobal ? 'g' : undefined)
+  safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)
+}
 
-  var littleA = 97;  // 'a'
-  var littleZ = 122; // 'z'
+// The following Regular Expressions can be used for tokenizing,
+// validating, and parsing SemVer version strings.
 
-  var zero = 48;     // '0'
-  var nine = 57;     // '9'
+// ## Numeric Identifier
+// A single `0`, or a non-zero digit followed by zero or more digits.
 
-  var plus = 43;     // '+'
-  var slash = 47;    // '/'
+createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*')
+createToken('NUMERICIDENTIFIERLOOSE', '\\d+')
 
-  var littleOffset = 26;
-  var numberOffset = 52;
+// ## Non-numeric Identifier
+// Zero or more digits, followed by a letter or hyphen, and then zero or
+// more letters, digits, or hyphens.
 
-  // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ
-  if (bigA <= charCode && charCode <= bigZ) {
-    return (charCode - bigA);
-  }
+createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)
 
-  // 26 - 51: abcdefghijklmnopqrstuvwxyz
-  if (littleA <= charCode && charCode <= littleZ) {
-    return (charCode - littleA + littleOffset);
-  }
+// ## Main Version
+// Three dot-separated numeric identifiers.
 
-  // 52 - 61: 0123456789
-  if (zero <= charCode && charCode <= nine) {
-    return (charCode - zero + numberOffset);
-  }
+createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` +
+                   `(${src[t.NUMERICIDENTIFIER]})\\.` +
+                   `(${src[t.NUMERICIDENTIFIER]})`)
 
-  // 62: +
-  if (charCode == plus) {
-    return 62;
-  }
+createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
+                        `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
+                        `(${src[t.NUMERICIDENTIFIERLOOSE]})`)
 
-  // 63: /
-  if (charCode == slash) {
-    return 63;
-  }
+// ## Pre-release Version Identifier
+// A numeric identifier, or a non-numeric identifier.
 
-  // Invalid base64 digit.
-  return -1;
-};
+createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]
+}|${src[t.NONNUMERICIDENTIFIER]})`)
 
+createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]
+}|${src[t.NONNUMERICIDENTIFIER]})`)
 
-/***/ }),
+// ## Pre-release Version
+// Hyphen, followed by one or more dot-separated pre-release version
+// identifiers.
 
-/***/ 33600:
-/***/ ((__unused_webpack_module, exports) => {
+createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]
+}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`)
 
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
+createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]
+}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)
 
-exports.GREATEST_LOWER_BOUND = 1;
-exports.LEAST_UPPER_BOUND = 2;
+// ## Build Metadata Identifier
+// Any combination of digits, letters, or hyphens.
 
-/**
- * Recursive implementation of binary search.
- *
- * @param aLow Indices here and lower do not contain the needle.
- * @param aHigh Indices here and higher do not contain the needle.
- * @param aNeedle The element being searched for.
- * @param aHaystack The non-empty array being searched.
- * @param aCompare Function which takes two elements and returns -1, 0, or 1.
- * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
- *     'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
- *     closest element that is smaller than or greater than the one we are
- *     searching for, respectively, if the exact element cannot be found.
- */
-function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
-  // This function terminates when one of the following is true:
-  //
-  //   1. We find the exact element we are looking for.
-  //
-  //   2. We did not find the exact element, but we can return the index of
-  //      the next-closest element.
-  //
-  //   3. We did not find the exact element, and there is no next-closest
-  //      element than the one we are searching for, so we return -1.
-  var mid = Math.floor((aHigh - aLow) / 2) + aLow;
-  var cmp = aCompare(aNeedle, aHaystack[mid], true);
-  if (cmp === 0) {
-    // Found the element we are looking for.
-    return mid;
-  }
-  else if (cmp > 0) {
-    // Our needle is greater than aHaystack[mid].
-    if (aHigh - mid > 1) {
-      // The element is in the upper half.
-      return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
-    }
+createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)
 
-    // The exact needle element was not found in this haystack. Determine if
-    // we are in termination case (3) or (2) and return the appropriate thing.
-    if (aBias == exports.LEAST_UPPER_BOUND) {
-      return aHigh < aHaystack.length ? aHigh : -1;
-    } else {
-      return mid;
-    }
-  }
-  else {
-    // Our needle is less than aHaystack[mid].
-    if (mid - aLow > 1) {
-      // The element is in the lower half.
-      return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
-    }
+// ## Build Metadata
+// Plus sign, followed by one or more period-separated build metadata
+// identifiers.
 
-    // we are in termination case (3) or (2) and return the appropriate thing.
-    if (aBias == exports.LEAST_UPPER_BOUND) {
-      return mid;
-    } else {
-      return aLow < 0 ? -1 : aLow;
-    }
-  }
-}
+createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER]
+}(?:\\.${src[t.BUILDIDENTIFIER]})*))`)
 
-/**
- * This is an implementation of binary search which will always try and return
- * the index of the closest element if there is no exact hit. This is because
- * mappings between original and generated line/col pairs are single points,
- * and there is an implicit region between each of them, so a miss just means
- * that you aren't on the very start of a region.
- *
- * @param aNeedle The element you are looking for.
- * @param aHaystack The array that is being searched.
- * @param aCompare A function which takes the needle and an element in the
- *     array and returns -1, 0, or 1 depending on whether the needle is less
- *     than, equal to, or greater than the element, respectively.
- * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
- *     'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
- *     closest element that is smaller than or greater than the one we are
- *     searching for, respectively, if the exact element cannot be found.
- *     Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.
- */
-exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
-  if (aHaystack.length === 0) {
-    return -1;
-  }
+// ## Full Version String
+// A main version, followed optionally by a pre-release version and
+// build metadata.
 
-  var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack,
-                              aCompare, aBias || exports.GREATEST_LOWER_BOUND);
-  if (index < 0) {
-    return -1;
-  }
+// Note that the only major, minor, patch, and pre-release sections of
+// the version string are capturing groups.  The build metadata is not a
+// capturing group, because it should not ever be used in version
+// comparison.
 
-  // We have found either the exact element, or the next-closest element than
-  // the one we are searching for. However, there may be more than one such
-  // element. Make sure we always return the smallest of these.
-  while (index - 1 >= 0) {
-    if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {
-      break;
-    }
-    --index;
-  }
+createToken('FULLPLAIN', `v?${src[t.MAINVERSION]
+}${src[t.PRERELEASE]}?${
+  src[t.BUILD]}?`)
 
-  return index;
-};
+createToken('FULL', `^${src[t.FULLPLAIN]}$`)
 
+// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
+// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
+// common in the npm registry.
+createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE]
+}${src[t.PRERELEASELOOSE]}?${
+  src[t.BUILD]}?`)
 
-/***/ }),
+createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)
 
-/***/ 86817:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+createToken('GTLT', '((?:<|>)?=?)')
 
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2014 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
+// Something like "2.*" or "1.2.x".
+// Note that "x.x" is a valid xRange identifer, meaning "any version"
+// Only the first item is strictly required.
+createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`)
+createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`)
 
-var util = __nccwpck_require__(12344);
+createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` +
+                   `(?:\\.(${src[t.XRANGEIDENTIFIER]})` +
+                   `(?:\\.(${src[t.XRANGEIDENTIFIER]})` +
+                   `(?:${src[t.PRERELEASE]})?${
+                     src[t.BUILD]}?` +
+                   `)?)?`)
 
-/**
- * Determine whether mappingB is after mappingA with respect to generated
- * position.
- */
-function generatedPositionAfter(mappingA, mappingB) {
-  // Optimized for most common case
-  var lineA = mappingA.generatedLine;
-  var lineB = mappingB.generatedLine;
-  var columnA = mappingA.generatedColumn;
-  var columnB = mappingB.generatedColumn;
-  return lineB > lineA || lineB == lineA && columnB >= columnA ||
-         util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
-}
+createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +
+                        `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +
+                        `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +
+                        `(?:${src[t.PRERELEASELOOSE]})?${
+                          src[t.BUILD]}?` +
+                        `)?)?`)
 
-/**
- * A data structure to provide a sorted view of accumulated mappings in a
- * performance conscious manner. It trades a neglibable overhead in general
- * case for a large speedup in case of mappings being added in order.
- */
-function MappingList() {
-  this._array = [];
-  this._sorted = true;
-  // Serves as infimum
-  this._last = {generatedLine: -1, generatedColumn: 0};
-}
+createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`)
+createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`)
 
-/**
- * Iterate through internal items. This method takes the same arguments that
- * `Array.prototype.forEach` takes.
- *
- * NOTE: The order of the mappings is NOT guaranteed.
- */
-MappingList.prototype.unsortedForEach =
-  function MappingList_forEach(aCallback, aThisArg) {
-    this._array.forEach(aCallback, aThisArg);
-  };
+// Coercion.
+// Extract anything that could conceivably be a part of a valid semver
+createToken('COERCE', `${'(^|[^\\d])' +
+              '(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +
+              `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
+              `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
+              `(?:$|[^\\d])`)
+createToken('COERCERTL', src[t.COERCE], true)
 
-/**
- * Add the given source mapping.
- *
- * @param Object aMapping
- */
-MappingList.prototype.add = function MappingList_add(aMapping) {
-  if (generatedPositionAfter(this._last, aMapping)) {
-    this._last = aMapping;
-    this._array.push(aMapping);
-  } else {
-    this._sorted = false;
-    this._array.push(aMapping);
-  }
-};
+// Tilde ranges.
+// Meaning is "reasonably at or greater than"
+createToken('LONETILDE', '(?:~>?)')
 
-/**
- * Returns the flat, sorted array of mappings. The mappings are sorted by
- * generated position.
- *
- * WARNING: This method returns internal data without copying, for
- * performance. The return value must NOT be mutated, and should be treated as
- * an immutable borrow. If you want to take ownership, you must make your own
- * copy.
- */
-MappingList.prototype.toArray = function MappingList_toArray() {
-  if (!this._sorted) {
-    this._array.sort(util.compareByGeneratedPositionsInflated);
-    this._sorted = true;
-  }
-  return this._array;
-};
+createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true)
+exports.tildeTrimReplace = '$1~'
 
-exports.H = MappingList;
+createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)
+createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)
 
+// Caret ranges.
+// Meaning is "at least and backwards compatible with"
+createToken('LONECARET', '(?:\\^)')
 
-/***/ }),
+createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true)
+exports.caretTrimReplace = '$1^'
 
-/***/ 73254:
-/***/ ((__unused_webpack_module, exports) => {
+createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)
+createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)
 
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
+// A simple gt/lt/eq thing, or just "" to indicate "any version"
+createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`)
+createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`)
 
-// It turns out that some (most?) JavaScript engines don't self-host
-// `Array.prototype.sort`. This makes sense because C++ will likely remain
-// faster than JS when doing raw CPU-intensive sorting. However, when using a
-// custom comparator function, calling back and forth between the VM's C++ and
-// JIT'd JS is rather slow *and* loses JIT type information, resulting in
-// worse generated code for the comparator function than would be optimal. In
-// fact, when sorting with a comparator, these costs outweigh the benefits of
-// sorting in C++. By using our own JS-implemented Quick Sort (below), we get
-// a ~3500ms mean speed-up in `bench/bench.html`.
+// An expression to strip any whitespace between the gtlt and the thing
+// it modifies, so that `> 1.2.3` ==> `>1.2.3`
+createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT]
+}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)
+exports.comparatorTrimReplace = '$1$2$3'
 
-/**
- * Swap the elements indexed by `x` and `y` in the array `ary`.
- *
- * @param {Array} ary
- *        The array.
- * @param {Number} x
- *        The index of the first item.
- * @param {Number} y
- *        The index of the second item.
- */
-function swap(ary, x, y) {
-  var temp = ary[x];
-  ary[x] = ary[y];
-  ary[y] = temp;
-}
+// Something like `1.2.3 - 1.2.4`
+// Note that these all use the loose form, because they'll be
+// checked against either the strict or loose comparator form
+// later.
+createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})` +
+                   `\\s+-\\s+` +
+                   `(${src[t.XRANGEPLAIN]})` +
+                   `\\s*$`)
 
-/**
- * Returns a random integer within the range `low .. high` inclusive.
- *
- * @param {Number} low
- *        The lower bound on the range.
- * @param {Number} high
- *        The upper bound on the range.
- */
-function randomIntInRange(low, high) {
-  return Math.round(low + (Math.random() * (high - low)));
-}
+createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})` +
+                        `\\s+-\\s+` +
+                        `(${src[t.XRANGEPLAINLOOSE]})` +
+                        `\\s*$`)
 
-/**
- * The Quick Sort algorithm.
- *
- * @param {Array} ary
- *        An array to sort.
- * @param {function} comparator
- *        Function to use to compare two items.
- * @param {Number} p
- *        Start index of the array
- * @param {Number} r
- *        End index of the array
- */
-function doQuickSort(ary, comparator, p, r) {
-  // If our lower bound is less than our upper bound, we (1) partition the
-  // array into two pieces and (2) recurse on each half. If it is not, this is
-  // the empty array and our base case.
+// Star ranges basically just allow anything at all.
+createToken('STAR', '(<|>)?=?\\s*\\*')
+// >=0.0.0 is like a star
+createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$')
+createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$')
 
-  if (p < r) {
-    // (1) Partitioning.
-    //
-    // The partitioning chooses a pivot between `p` and `r` and moves all
-    // elements that are less than or equal to the pivot to the before it, and
-    // all the elements that are greater than it after it. The effect is that
-    // once partition is done, the pivot is in the exact place it will be when
-    // the array is put in sorted order, and it will not need to be moved
-    // again. This runs in O(n) time.
 
-    // Always choose a random pivot so that an input array which is reverse
-    // sorted does not cause O(n^2) running time.
-    var pivotIndex = randomIntInRange(p, r);
-    var i = p - 1;
+/***/ }),
 
-    swap(ary, pivotIndex, r);
-    var pivot = ary[r];
+/***/ 81196:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    // Immediately after `j` is incremented in this loop, the following hold
-    // true:
-    //
-    //   * Every element in `ary[p .. i]` is less than or equal to the pivot.
-    //
-    //   * Every element in `ary[i+1 .. j-1]` is greater than the pivot.
-    for (var j = p; j < r; j++) {
-      if (comparator(ary[j], pivot) <= 0) {
-        i += 1;
-        swap(ary, i, j);
-      }
-    }
+"use strict";
 
-    swap(ary, i + 1, j);
-    var q = i + 1;
 
-    // (2) Recurse on each half.
+// A linked list to keep track of recently-used-ness
+const Yallist = __nccwpck_require__(40665)
 
-    doQuickSort(ary, comparator, p, q - 1);
-    doQuickSort(ary, comparator, q + 1, r);
-  }
-}
+const MAX = Symbol('max')
+const LENGTH = Symbol('length')
+const LENGTH_CALCULATOR = Symbol('lengthCalculator')
+const ALLOW_STALE = Symbol('allowStale')
+const MAX_AGE = Symbol('maxAge')
+const DISPOSE = Symbol('dispose')
+const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')
+const LRU_LIST = Symbol('lruList')
+const CACHE = Symbol('cache')
+const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')
 
-/**
- * Sort the given array in-place with the given comparator function.
- *
- * @param {Array} ary
- *        An array to sort.
- * @param {function} comparator
- *        Function to use to compare two items.
- */
-exports.U = function (ary, comparator) {
-  doQuickSort(ary, comparator, 0, ary.length - 1);
-};
+const naiveLength = () => 1
 
+// lruList is a yallist where the head is the youngest
+// item, and the tail is the oldest.  the list contains the Hit
+// objects as the entries.
+// Each Hit object has a reference to its Yallist.Node.  This
+// never changes.
+//
+// cache is a Map (or PseudoMap) that matches the keys to
+// the Yallist.Node object.
+class LRUCache {
+  constructor (options) {
+    if (typeof options === 'number')
+      options = { max: options }
 
-/***/ }),
+    if (!options)
+      options = {}
 
-/***/ 75155:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+    if (options.max && (typeof options.max !== 'number' || options.max < 0))
+      throw new TypeError('max must be a non-negative number')
+    // Kind of weird to have a default max of Infinity, but oh well.
+    const max = this[MAX] = options.max || Infinity
 
-var __webpack_unused_export__;
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
+    const lc = options.length || naiveLength
+    this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc
+    this[ALLOW_STALE] = options.stale || false
+    if (options.maxAge && typeof options.maxAge !== 'number')
+      throw new TypeError('maxAge must be a number')
+    this[MAX_AGE] = options.maxAge || 0
+    this[DISPOSE] = options.dispose
+    this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false
+    this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false
+    this.reset()
+  }
 
-var util = __nccwpck_require__(12344);
-var binarySearch = __nccwpck_require__(33600);
-var ArraySet = (__nccwpck_require__(26375)/* .ArraySet */ .I);
-var base64VLQ = __nccwpck_require__(10975);
-var quickSort = (__nccwpck_require__(73254)/* .quickSort */ .U);
+  // resize the cache when the max changes.
+  set max (mL) {
+    if (typeof mL !== 'number' || mL < 0)
+      throw new TypeError('max must be a non-negative number')
 
-function SourceMapConsumer(aSourceMap, aSourceMapURL) {
-  var sourceMap = aSourceMap;
-  if (typeof aSourceMap === 'string') {
-    sourceMap = util.parseSourceMapInput(aSourceMap);
+    this[MAX] = mL || Infinity
+    trim(this)
+  }
+  get max () {
+    return this[MAX]
   }
 
-  return sourceMap.sections != null
-    ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL)
-    : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
-}
+  set allowStale (allowStale) {
+    this[ALLOW_STALE] = !!allowStale
+  }
+  get allowStale () {
+    return this[ALLOW_STALE]
+  }
 
-SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
-  return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
-}
+  set maxAge (mA) {
+    if (typeof mA !== 'number')
+      throw new TypeError('maxAge must be a non-negative number')
 
-/**
- * The version of the source mapping spec that we are consuming.
- */
-SourceMapConsumer.prototype._version = 3;
+    this[MAX_AGE] = mA
+    trim(this)
+  }
+  get maxAge () {
+    return this[MAX_AGE]
+  }
 
-// `__generatedMappings` and `__originalMappings` are arrays that hold the
-// parsed mapping coordinates from the source map's "mappings" attribute. They
-// are lazily instantiated, accessed via the `_generatedMappings` and
-// `_originalMappings` getters respectively, and we only parse the mappings
-// and create these arrays once queried for a source location. We jump through
-// these hoops because there can be many thousands of mappings, and parsing
-// them is expensive, so we only want to do it if we must.
-//
-// Each object in the arrays is of the form:
-//
-//     {
-//       generatedLine: The line number in the generated code,
-//       generatedColumn: The column number in the generated code,
-//       source: The path to the original source file that generated this
-//               chunk of code,
-//       originalLine: The line number in the original source that
-//                     corresponds to this chunk of generated code,
-//       originalColumn: The column number in the original source that
-//                       corresponds to this chunk of generated code,
-//       name: The name of the original symbol which generated this chunk of
-//             code.
-//     }
-//
-// All properties except for `generatedLine` and `generatedColumn` can be
-// `null`.
-//
-// `_generatedMappings` is ordered by the generated positions.
-//
-// `_originalMappings` is ordered by the original positions.
+  // resize the cache when the lengthCalculator changes.
+  set lengthCalculator (lC) {
+    if (typeof lC !== 'function')
+      lC = naiveLength
 
-SourceMapConsumer.prototype.__generatedMappings = null;
-Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', {
-  configurable: true,
-  enumerable: true,
-  get: function () {
-    if (!this.__generatedMappings) {
-      this._parseMappings(this._mappings, this.sourceRoot);
+    if (lC !== this[LENGTH_CALCULATOR]) {
+      this[LENGTH_CALCULATOR] = lC
+      this[LENGTH] = 0
+      this[LRU_LIST].forEach(hit => {
+        hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)
+        this[LENGTH] += hit.length
+      })
     }
+    trim(this)
+  }
+  get lengthCalculator () { return this[LENGTH_CALCULATOR] }
 
-    return this.__generatedMappings;
+  get length () { return this[LENGTH] }
+  get itemCount () { return this[LRU_LIST].length }
+
+  rforEach (fn, thisp) {
+    thisp = thisp || this
+    for (let walker = this[LRU_LIST].tail; walker !== null;) {
+      const prev = walker.prev
+      forEachStep(this, fn, walker, thisp)
+      walker = prev
+    }
   }
-});
 
-SourceMapConsumer.prototype.__originalMappings = null;
-Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', {
-  configurable: true,
-  enumerable: true,
-  get: function () {
-    if (!this.__originalMappings) {
-      this._parseMappings(this._mappings, this.sourceRoot);
+  forEach (fn, thisp) {
+    thisp = thisp || this
+    for (let walker = this[LRU_LIST].head; walker !== null;) {
+      const next = walker.next
+      forEachStep(this, fn, walker, thisp)
+      walker = next
     }
+  }
 
-    return this.__originalMappings;
+  keys () {
+    return this[LRU_LIST].toArray().map(k => k.key)
   }
-});
 
-SourceMapConsumer.prototype._charIsMappingSeparator =
-  function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
-    var c = aStr.charAt(index);
-    return c === ";" || c === ",";
-  };
+  values () {
+    return this[LRU_LIST].toArray().map(k => k.value)
+  }
 
-/**
- * Parse the mappings in a string in to a data structure which we can easily
- * query (the ordered arrays in the `this.__generatedMappings` and
- * `this.__originalMappings` properties).
- */
-SourceMapConsumer.prototype._parseMappings =
-  function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
-    throw new Error("Subclasses must implement _parseMappings");
-  };
+  reset () {
+    if (this[DISPOSE] &&
+        this[LRU_LIST] &&
+        this[LRU_LIST].length) {
+      this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))
+    }
 
-SourceMapConsumer.GENERATED_ORDER = 1;
-SourceMapConsumer.ORIGINAL_ORDER = 2;
+    this[CACHE] = new Map() // hash of items by key
+    this[LRU_LIST] = new Yallist() // list of items in order of use recency
+    this[LENGTH] = 0 // length of items in the list
+  }
 
-SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
-SourceMapConsumer.LEAST_UPPER_BOUND = 2;
+  dump () {
+    return this[LRU_LIST].map(hit =>
+      isStale(this, hit) ? false : {
+        k: hit.key,
+        v: hit.value,
+        e: hit.now + (hit.maxAge || 0)
+      }).toArray().filter(h => h)
+  }
 
-/**
- * Iterate over each mapping between an original source/line/column and a
- * generated line/column in this source map.
- *
- * @param Function aCallback
- *        The function that is called with each mapping.
- * @param Object aContext
- *        Optional. If specified, this object will be the value of `this` every
- *        time that `aCallback` is called.
- * @param aOrder
- *        Either `SourceMapConsumer.GENERATED_ORDER` or
- *        `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to
- *        iterate over the mappings sorted by the generated file's line/column
- *        order or the original's source/line/column order, respectively. Defaults to
- *        `SourceMapConsumer.GENERATED_ORDER`.
- */
-SourceMapConsumer.prototype.eachMapping =
-  function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
-    var context = aContext || null;
-    var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
+  dumpLru () {
+    return this[LRU_LIST]
+  }
 
-    var mappings;
-    switch (order) {
-    case SourceMapConsumer.GENERATED_ORDER:
-      mappings = this._generatedMappings;
-      break;
-    case SourceMapConsumer.ORIGINAL_ORDER:
-      mappings = this._originalMappings;
-      break;
-    default:
-      throw new Error("Unknown order of iteration.");
-    }
+  set (key, value, maxAge) {
+    maxAge = maxAge || this[MAX_AGE]
 
-    var sourceRoot = this.sourceRoot;
-    mappings.map(function (mapping) {
-      var source = mapping.source === null ? null : this._sources.at(mapping.source);
-      source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL);
-      return {
-        source: source,
-        generatedLine: mapping.generatedLine,
-        generatedColumn: mapping.generatedColumn,
-        originalLine: mapping.originalLine,
-        originalColumn: mapping.originalColumn,
-        name: mapping.name === null ? null : this._names.at(mapping.name)
-      };
-    }, this).forEach(aCallback, context);
-  };
+    if (maxAge && typeof maxAge !== 'number')
+      throw new TypeError('maxAge must be a number')
 
-/**
- * Returns all generated line and column information for the original source,
- * line, and column provided. If no column is provided, returns all mappings
- * corresponding to a either the line we are searching for or the next
- * closest line that has any mappings. Otherwise, returns all mappings
- * corresponding to the given line and either the column we are searching for
- * or the next closest column that has any offsets.
- *
- * The only argument is an object with the following properties:
- *
- *   - source: The filename of the original source.
- *   - line: The line number in the original source.  The line number is 1-based.
- *   - column: Optional. the column number in the original source.
- *    The column number is 0-based.
- *
- * and an array of objects is returned, each with the following properties:
- *
- *   - line: The line number in the generated source, or null.  The
- *    line number is 1-based.
- *   - column: The column number in the generated source, or null.
- *    The column number is 0-based.
- */
-SourceMapConsumer.prototype.allGeneratedPositionsFor =
-  function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
-    var line = util.getArg(aArgs, 'line');
+    const now = maxAge ? Date.now() : 0
+    const len = this[LENGTH_CALCULATOR](value, key)
 
-    // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping
-    // returns the index of the closest mapping less than the needle. By
-    // setting needle.originalColumn to 0, we thus find the last mapping for
-    // the given line, provided such a mapping exists.
-    var needle = {
-      source: util.getArg(aArgs, 'source'),
-      originalLine: line,
-      originalColumn: util.getArg(aArgs, 'column', 0)
-    };
+    if (this[CACHE].has(key)) {
+      if (len > this[MAX]) {
+        del(this, this[CACHE].get(key))
+        return false
+      }
 
-    needle.source = this._findSourceIndex(needle.source);
-    if (needle.source < 0) {
-      return [];
+      const node = this[CACHE].get(key)
+      const item = node.value
+
+      // dispose of the old one before overwriting
+      // split out into 2 ifs for better coverage tracking
+      if (this[DISPOSE]) {
+        if (!this[NO_DISPOSE_ON_SET])
+          this[DISPOSE](key, item.value)
+      }
+
+      item.now = now
+      item.maxAge = maxAge
+      item.value = value
+      this[LENGTH] += len - item.length
+      item.length = len
+      this.get(key)
+      trim(this)
+      return true
     }
 
-    var mappings = [];
+    const hit = new Entry(key, value, len, now, maxAge)
 
-    var index = this._findMapping(needle,
-                                  this._originalMappings,
-                                  "originalLine",
-                                  "originalColumn",
-                                  util.compareByOriginalPositions,
-                                  binarySearch.LEAST_UPPER_BOUND);
-    if (index >= 0) {
-      var mapping = this._originalMappings[index];
+    // oversized objects fall out of cache automatically.
+    if (hit.length > this[MAX]) {
+      if (this[DISPOSE])
+        this[DISPOSE](key, value)
 
-      if (aArgs.column === undefined) {
-        var originalLine = mapping.originalLine;
+      return false
+    }
 
-        // Iterate until either we run out of mappings, or we run into
-        // a mapping for a different line than the one we found. Since
-        // mappings are sorted, this is guaranteed to find all mappings for
-        // the line we found.
-        while (mapping && mapping.originalLine === originalLine) {
-          mappings.push({
-            line: util.getArg(mapping, 'generatedLine', null),
-            column: util.getArg(mapping, 'generatedColumn', null),
-            lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
-          });
+    this[LENGTH] += hit.length
+    this[LRU_LIST].unshift(hit)
+    this[CACHE].set(key, this[LRU_LIST].head)
+    trim(this)
+    return true
+  }
 
-          mapping = this._originalMappings[++index];
-        }
-      } else {
-        var originalColumn = mapping.originalColumn;
+  has (key) {
+    if (!this[CACHE].has(key)) return false
+    const hit = this[CACHE].get(key).value
+    return !isStale(this, hit)
+  }
 
-        // Iterate until either we run out of mappings, or we run into
-        // a mapping for a different line than the one we were searching for.
-        // Since mappings are sorted, this is guaranteed to find all mappings for
-        // the line we are searching for.
-        while (mapping &&
-               mapping.originalLine === line &&
-               mapping.originalColumn == originalColumn) {
-          mappings.push({
-            line: util.getArg(mapping, 'generatedLine', null),
-            column: util.getArg(mapping, 'generatedColumn', null),
-            lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
-          });
+  get (key) {
+    return get(this, key, true)
+  }
 
-          mapping = this._originalMappings[++index];
-        }
-      }
-    }
+  peek (key) {
+    return get(this, key, false)
+  }
 
-    return mappings;
-  };
+  pop () {
+    const node = this[LRU_LIST].tail
+    if (!node)
+      return null
 
-exports.SourceMapConsumer = SourceMapConsumer;
+    del(this, node)
+    return node.value
+  }
 
-/**
- * A BasicSourceMapConsumer instance represents a parsed source map which we can
- * query for information about the original file positions by giving it a file
- * position in the generated source.
- *
- * The first parameter is the raw source map (either as a JSON string, or
- * already parsed to an object). According to the spec, source maps have the
- * following attributes:
- *
- *   - version: Which version of the source map spec this map is following.
- *   - sources: An array of URLs to the original source files.
- *   - names: An array of identifiers which can be referrenced by individual mappings.
- *   - sourceRoot: Optional. The URL root from which all sources are relative.
- *   - sourcesContent: Optional. An array of contents of the original source files.
- *   - mappings: A string of base64 VLQs which contain the actual mappings.
- *   - file: Optional. The generated file this source map is associated with.
- *
- * Here is an example source map, taken from the source map spec[0]:
- *
- *     {
- *       version : 3,
- *       file: "out.js",
- *       sourceRoot : "",
- *       sources: ["foo.js", "bar.js"],
- *       names: ["src", "maps", "are", "fun"],
- *       mappings: "AA,AB;;ABCDE;"
- *     }
- *
- * The second parameter, if given, is a string whose value is the URL
- * at which the source map was found.  This URL is used to compute the
- * sources array.
- *
- * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#
- */
-function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
-  var sourceMap = aSourceMap;
-  if (typeof aSourceMap === 'string') {
-    sourceMap = util.parseSourceMapInput(aSourceMap);
+  del (key) {
+    del(this, this[CACHE].get(key))
   }
 
-  var version = util.getArg(sourceMap, 'version');
-  var sources = util.getArg(sourceMap, 'sources');
-  // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which
-  // requires the array) to play nice here.
-  var names = util.getArg(sourceMap, 'names', []);
-  var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null);
-  var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null);
-  var mappings = util.getArg(sourceMap, 'mappings');
-  var file = util.getArg(sourceMap, 'file', null);
+  load (arr) {
+    // reset the cache
+    this.reset()
 
-  // Once again, Sass deviates from the spec and supplies the version as a
-  // string rather than a number, so we use loose equality checking here.
-  if (version != this._version) {
-    throw new Error('Unsupported version: ' + version);
+    const now = Date.now()
+    // A previous serialized cache has the most recent items first
+    for (let l = arr.length - 1; l >= 0; l--) {
+      const hit = arr[l]
+      const expiresAt = hit.e || 0
+      if (expiresAt === 0)
+        // the item was created without expiration in a non aged cache
+        this.set(hit.k, hit.v)
+      else {
+        const maxAge = expiresAt - now
+        // dont add already expired items
+        if (maxAge > 0) {
+          this.set(hit.k, hit.v, maxAge)
+        }
+      }
+    }
   }
 
-  if (sourceRoot) {
-    sourceRoot = util.normalize(sourceRoot);
+  prune () {
+    this[CACHE].forEach((value, key) => get(this, key, false))
   }
+}
 
-  sources = sources
-    .map(String)
-    // Some source maps produce relative source paths like "./foo.js" instead of
-    // "foo.js".  Normalize these first so that future comparisons will succeed.
-    // See bugzil.la/1090768.
-    .map(util.normalize)
-    // Always ensure that absolute sources are internally stored relative to
-    // the source root, if the source root is absolute. Not doing this would
-    // be particularly problematic when the source root is a prefix of the
-    // source (valid, but why??). See github issue #199 and bugzil.la/1188982.
-    .map(function (source) {
-      return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source)
-        ? util.relative(sourceRoot, source)
-        : source;
-    });
+const get = (self, key, doUse) => {
+  const node = self[CACHE].get(key)
+  if (node) {
+    const hit = node.value
+    if (isStale(self, hit)) {
+      del(self, node)
+      if (!self[ALLOW_STALE])
+        return undefined
+    } else {
+      if (doUse) {
+        if (self[UPDATE_AGE_ON_GET])
+          node.value.now = Date.now()
+        self[LRU_LIST].unshiftNode(node)
+      }
+    }
+    return hit.value
+  }
+}
 
-  // Pass `true` below to allow duplicate names and sources. While source maps
-  // are intended to be compressed and deduplicated, the TypeScript compiler
-  // sometimes generates source maps with duplicates in them. See Github issue
-  // #72 and bugzil.la/889492.
-  this._names = ArraySet.fromArray(names.map(String), true);
-  this._sources = ArraySet.fromArray(sources, true);
+const isStale = (self, hit) => {
+  if (!hit || (!hit.maxAge && !self[MAX_AGE]))
+    return false
 
-  this._absoluteSources = this._sources.toArray().map(function (s) {
-    return util.computeSourceURL(sourceRoot, s, aSourceMapURL);
-  });
+  const diff = Date.now() - hit.now
+  return hit.maxAge ? diff > hit.maxAge
+    : self[MAX_AGE] && (diff > self[MAX_AGE])
+}
 
-  this.sourceRoot = sourceRoot;
-  this.sourcesContent = sourcesContent;
-  this._mappings = mappings;
-  this._sourceMapURL = aSourceMapURL;
-  this.file = file;
+const trim = self => {
+  if (self[LENGTH] > self[MAX]) {
+    for (let walker = self[LRU_LIST].tail;
+      self[LENGTH] > self[MAX] && walker !== null;) {
+      // We know that we're about to delete this one, and also
+      // what the next least recently used key will be, so just
+      // go ahead and set it now.
+      const prev = walker.prev
+      del(self, walker)
+      walker = prev
+    }
+  }
 }
 
-BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
-BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
+const del = (self, node) => {
+  if (node) {
+    const hit = node.value
+    if (self[DISPOSE])
+      self[DISPOSE](hit.key, hit.value)
 
-/**
- * Utility function to find the index of a source.  Returns -1 if not
- * found.
- */
-BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
-  var relativeSource = aSource;
-  if (this.sourceRoot != null) {
-    relativeSource = util.relative(this.sourceRoot, relativeSource);
+    self[LENGTH] -= hit.length
+    self[CACHE].delete(hit.key)
+    self[LRU_LIST].removeNode(node)
   }
+}
 
-  if (this._sources.has(relativeSource)) {
-    return this._sources.indexOf(relativeSource);
+class Entry {
+  constructor (key, value, length, now, maxAge) {
+    this.key = key
+    this.value = value
+    this.length = length
+    this.now = now
+    this.maxAge = maxAge || 0
   }
+}
 
-  // Maybe aSource is an absolute URL as returned by |sources|.  In
-  // this case we can't simply undo the transform.
-  var i;
-  for (i = 0; i < this._absoluteSources.length; ++i) {
-    if (this._absoluteSources[i] == aSource) {
-      return i;
-    }
+const forEachStep = (self, fn, node, thisp) => {
+  let hit = node.value
+  if (isStale(self, hit)) {
+    del(self, node)
+    if (!self[ALLOW_STALE])
+      hit = undefined
   }
+  if (hit)
+    fn.call(thisp, hit.value, hit.key, self)
+}
 
-  return -1;
-};
+module.exports = LRUCache
 
-/**
- * Create a BasicSourceMapConsumer from a SourceMapGenerator.
- *
- * @param SourceMapGenerator aSourceMap
- *        The source map that will be consumed.
- * @param String aSourceMapURL
- *        The URL at which the source map can be found (optional)
- * @returns BasicSourceMapConsumer
- */
-BasicSourceMapConsumer.fromSourceMap =
-  function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {
-    var smc = Object.create(BasicSourceMapConsumer.prototype);
 
-    var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
-    var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
-    smc.sourceRoot = aSourceMap._sourceRoot;
-    smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(),
-                                                            smc.sourceRoot);
-    smc.file = aSourceMap._file;
-    smc._sourceMapURL = aSourceMapURL;
-    smc._absoluteSources = smc._sources.toArray().map(function (s) {
-      return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
-    });
+/***/ }),
 
-    // Because we are modifying the entries (by converting string sources and
-    // names to indices into the sources and names ArraySets), we have to make
-    // a copy of the entry or else bad things happen. Shared mutable state
-    // strikes again! See github issue #191.
+/***/ 9380:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    var generatedMappings = aSourceMap._mappings.toArray().slice();
-    var destGeneratedMappings = smc.__generatedMappings = [];
-    var destOriginalMappings = smc.__originalMappings = [];
+// Determine if version is greater than all the versions possible in the range.
+const outside = __nccwpck_require__(60420)
+const gtr = (version, range, options) => outside(version, range, '>', options)
+module.exports = gtr
 
-    for (var i = 0, length = generatedMappings.length; i < length; i++) {
-      var srcMapping = generatedMappings[i];
-      var destMapping = new Mapping;
-      destMapping.generatedLine = srcMapping.generatedLine;
-      destMapping.generatedColumn = srcMapping.generatedColumn;
 
-      if (srcMapping.source) {
-        destMapping.source = sources.indexOf(srcMapping.source);
-        destMapping.originalLine = srcMapping.originalLine;
-        destMapping.originalColumn = srcMapping.originalColumn;
+/***/ }),
 
-        if (srcMapping.name) {
-          destMapping.name = names.indexOf(srcMapping.name);
-        }
+/***/ 27008:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-        destOriginalMappings.push(destMapping);
-      }
+const Range = __nccwpck_require__(9828)
+const intersects = (r1, r2, options) => {
+  r1 = new Range(r1, options)
+  r2 = new Range(r2, options)
+  return r1.intersects(r2, options)
+}
+module.exports = intersects
 
-      destGeneratedMappings.push(destMapping);
-    }
 
-    quickSort(smc.__originalMappings, util.compareByOriginalPositions);
+/***/ }),
 
-    return smc;
-  };
+/***/ 33323:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-/**
- * The version of the source mapping spec that we are consuming.
- */
-BasicSourceMapConsumer.prototype._version = 3;
+const outside = __nccwpck_require__(60420)
+// Determine if version is less than all the versions possible in the range
+const ltr = (version, range, options) => outside(version, range, '<', options)
+module.exports = ltr
 
-/**
- * The list of original sources.
- */
-Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', {
-  get: function () {
-    return this._absoluteSources.slice();
-  }
-});
 
-/**
- * Provide the JIT with a nice shape / hidden class.
- */
-function Mapping() {
-  this.generatedLine = 0;
-  this.generatedColumn = 0;
-  this.source = null;
-  this.originalLine = null;
-  this.originalColumn = null;
-  this.name = null;
-}
+/***/ }),
 
-/**
- * Parse the mappings in a string in to a data structure which we can easily
- * query (the ordered arrays in the `this.__generatedMappings` and
- * `this.__originalMappings` properties).
- */
-BasicSourceMapConsumer.prototype._parseMappings =
-  function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
-    var generatedLine = 1;
-    var previousGeneratedColumn = 0;
-    var previousOriginalLine = 0;
-    var previousOriginalColumn = 0;
-    var previousSource = 0;
-    var previousName = 0;
-    var length = aStr.length;
-    var index = 0;
-    var cachedSegments = {};
-    var temp = {};
-    var originalMappings = [];
-    var generatedMappings = [];
-    var mapping, str, segment, end, value;
+/***/ 20579:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    while (index < length) {
-      if (aStr.charAt(index) === ';') {
-        generatedLine++;
-        index++;
-        previousGeneratedColumn = 0;
-      }
-      else if (aStr.charAt(index) === ',') {
-        index++;
+const SemVer = __nccwpck_require__(48088)
+const Range = __nccwpck_require__(9828)
+
+const maxSatisfying = (versions, range, options) => {
+  let max = null
+  let maxSV = null
+  let rangeObj = null
+  try {
+    rangeObj = new Range(range, options)
+  } catch (er) {
+    return null
+  }
+  versions.forEach((v) => {
+    if (rangeObj.test(v)) {
+      // satisfies(v, range, options)
+      if (!max || maxSV.compare(v) === -1) {
+        // compare(max, v, true)
+        max = v
+        maxSV = new SemVer(max, options)
       }
-      else {
-        mapping = new Mapping();
-        mapping.generatedLine = generatedLine;
+    }
+  })
+  return max
+}
+module.exports = maxSatisfying
 
-        // Because each offset is encoded relative to the previous one,
-        // many segments often have the same encoding. We can exploit this
-        // fact by caching the parsed variable length fields of each segment,
-        // allowing us to avoid a second parse if we encounter the same
-        // segment again.
-        for (end = index; end < length; end++) {
-          if (this._charIsMappingSeparator(aStr, end)) {
-            break;
-          }
-        }
-        str = aStr.slice(index, end);
 
-        segment = cachedSegments[str];
-        if (segment) {
-          index += str.length;
-        } else {
-          segment = [];
-          while (index < end) {
-            base64VLQ.decode(aStr, index, temp);
-            value = temp.value;
-            index = temp.rest;
-            segment.push(value);
-          }
+/***/ }),
 
-          if (segment.length === 2) {
-            throw new Error('Found a source, but no line and column');
-          }
+/***/ 10832:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-          if (segment.length === 3) {
-            throw new Error('Found a source and line, but no column');
-          }
+const SemVer = __nccwpck_require__(48088)
+const Range = __nccwpck_require__(9828)
+const minSatisfying = (versions, range, options) => {
+  let min = null
+  let minSV = null
+  let rangeObj = null
+  try {
+    rangeObj = new Range(range, options)
+  } catch (er) {
+    return null
+  }
+  versions.forEach((v) => {
+    if (rangeObj.test(v)) {
+      // satisfies(v, range, options)
+      if (!min || minSV.compare(v) === 1) {
+        // compare(min, v, true)
+        min = v
+        minSV = new SemVer(min, options)
+      }
+    }
+  })
+  return min
+}
+module.exports = minSatisfying
 
-          cachedSegments[str] = segment;
-        }
 
-        // Generated column.
-        mapping.generatedColumn = previousGeneratedColumn + segment[0];
-        previousGeneratedColumn = mapping.generatedColumn;
+/***/ }),
 
-        if (segment.length > 1) {
-          // Original source.
-          mapping.source = previousSource + segment[1];
-          previousSource += segment[1];
+/***/ 34179:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-          // Original line.
-          mapping.originalLine = previousOriginalLine + segment[2];
-          previousOriginalLine = mapping.originalLine;
-          // Lines are stored 0-based
-          mapping.originalLine += 1;
+const SemVer = __nccwpck_require__(48088)
+const Range = __nccwpck_require__(9828)
+const gt = __nccwpck_require__(84123)
 
-          // Original column.
-          mapping.originalColumn = previousOriginalColumn + segment[3];
-          previousOriginalColumn = mapping.originalColumn;
+const minVersion = (range, loose) => {
+  range = new Range(range, loose)
 
-          if (segment.length > 4) {
-            // Original name.
-            mapping.name = previousName + segment[4];
-            previousName += segment[4];
-          }
-        }
+  let minver = new SemVer('0.0.0')
+  if (range.test(minver)) {
+    return minver
+  }
 
-        generatedMappings.push(mapping);
-        if (typeof mapping.originalLine === 'number') {
-          originalMappings.push(mapping);
-        }
+  minver = new SemVer('0.0.0-0')
+  if (range.test(minver)) {
+    return minver
+  }
+
+  minver = null
+  for (let i = 0; i < range.set.length; ++i) {
+    const comparators = range.set[i]
+
+    let setMin = null
+    comparators.forEach((comparator) => {
+      // Clone to avoid manipulating the comparator's semver object.
+      const compver = new SemVer(comparator.semver.version)
+      switch (comparator.operator) {
+        case '>':
+          if (compver.prerelease.length === 0) {
+            compver.patch++
+          } else {
+            compver.prerelease.push(0)
+          }
+          compver.raw = compver.format()
+          /* fallthrough */
+        case '':
+        case '>=':
+          if (!setMin || gt(compver, setMin)) {
+            setMin = compver
+          }
+          break
+        case '<':
+        case '<=':
+          /* Ignore maximum versions */
+          break
+        /* istanbul ignore next */
+        default:
+          throw new Error(`Unexpected operation: ${comparator.operator}`)
       }
+    })
+    if (setMin && (!minver || gt(minver, setMin))) {
+      minver = setMin
     }
+  }
 
-    quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated);
-    this.__generatedMappings = generatedMappings;
+  if (minver && range.test(minver)) {
+    return minver
+  }
 
-    quickSort(originalMappings, util.compareByOriginalPositions);
-    this.__originalMappings = originalMappings;
-  };
+  return null
+}
+module.exports = minVersion
 
-/**
- * Find the mapping that best matches the hypothetical "needle" mapping that
- * we are searching for in the given "haystack" of mappings.
- */
-BasicSourceMapConsumer.prototype._findMapping =
-  function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName,
-                                         aColumnName, aComparator, aBias) {
-    // To return the position we are searching for, we must first find the
-    // mapping for the given position and then return the opposite position it
-    // points to. Because the mappings are sorted, we can use binary search to
-    // find the best mapping.
 
-    if (aNeedle[aLineName] <= 0) {
-      throw new TypeError('Line must be greater than or equal to 1, got '
-                          + aNeedle[aLineName]);
-    }
-    if (aNeedle[aColumnName] < 0) {
-      throw new TypeError('Column must be greater than or equal to 0, got '
-                          + aNeedle[aColumnName]);
-    }
+/***/ }),
 
-    return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
-  };
+/***/ 60420:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-/**
- * Compute the last column for each generated mapping. The last column is
- * inclusive.
- */
-BasicSourceMapConsumer.prototype.computeColumnSpans =
-  function SourceMapConsumer_computeColumnSpans() {
-    for (var index = 0; index < this._generatedMappings.length; ++index) {
-      var mapping = this._generatedMappings[index];
+const SemVer = __nccwpck_require__(48088)
+const Comparator = __nccwpck_require__(91532)
+const { ANY } = Comparator
+const Range = __nccwpck_require__(9828)
+const satisfies = __nccwpck_require__(6055)
+const gt = __nccwpck_require__(84123)
+const lt = __nccwpck_require__(80194)
+const lte = __nccwpck_require__(77520)
+const gte = __nccwpck_require__(15522)
 
-      // Mappings do not contain a field for the last generated columnt. We
-      // can come up with an optimistic estimate, however, by assuming that
-      // mappings are contiguous (i.e. given two consecutive mappings, the
-      // first mapping ends where the second one starts).
-      if (index + 1 < this._generatedMappings.length) {
-        var nextMapping = this._generatedMappings[index + 1];
+const outside = (version, range, hilo, options) => {
+  version = new SemVer(version, options)
+  range = new Range(range, options)
 
-        if (mapping.generatedLine === nextMapping.generatedLine) {
-          mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
-          continue;
-        }
-      }
+  let gtfn, ltefn, ltfn, comp, ecomp
+  switch (hilo) {
+    case '>':
+      gtfn = gt
+      ltefn = lte
+      ltfn = lt
+      comp = '>'
+      ecomp = '>='
+      break
+    case '<':
+      gtfn = lt
+      ltefn = gte
+      ltfn = gt
+      comp = '<'
+      ecomp = '<='
+      break
+    default:
+      throw new TypeError('Must provide a hilo val of "<" or ">"')
+  }
 
-      // The last mapping for each line spans the entire line.
-      mapping.lastGeneratedColumn = Infinity;
-    }
-  };
+  // If it satisfies the range it is not outside
+  if (satisfies(version, range, options)) {
+    return false
+  }
 
-/**
- * Returns the original source, line, and column information for the generated
- * source's line and column positions provided. The only argument is an object
- * with the following properties:
- *
- *   - line: The line number in the generated source.  The line number
- *     is 1-based.
- *   - column: The column number in the generated source.  The column
- *     number is 0-based.
- *   - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
- *     'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
- *     closest element that is smaller than or greater than the one we are
- *     searching for, respectively, if the exact element cannot be found.
- *     Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
- *
- * and an object is returned with the following properties:
- *
- *   - source: The original source file, or null.
- *   - line: The line number in the original source, or null.  The
- *     line number is 1-based.
- *   - column: The column number in the original source, or null.  The
- *     column number is 0-based.
- *   - name: The original identifier, or null.
- */
-BasicSourceMapConsumer.prototype.originalPositionFor =
-  function SourceMapConsumer_originalPositionFor(aArgs) {
-    var needle = {
-      generatedLine: util.getArg(aArgs, 'line'),
-      generatedColumn: util.getArg(aArgs, 'column')
-    };
+  // From now on, variable terms are as if we're in "gtr" mode.
+  // but note that everything is flipped for the "ltr" function.
 
-    var index = this._findMapping(
-      needle,
-      this._generatedMappings,
-      "generatedLine",
-      "generatedColumn",
-      util.compareByGeneratedPositionsDeflated,
-      util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)
-    );
+  for (let i = 0; i < range.set.length; ++i) {
+    const comparators = range.set[i]
 
-    if (index >= 0) {
-      var mapping = this._generatedMappings[index];
+    let high = null
+    let low = null
 
-      if (mapping.generatedLine === needle.generatedLine) {
-        var source = util.getArg(mapping, 'source', null);
-        if (source !== null) {
-          source = this._sources.at(source);
-          source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
-        }
-        var name = util.getArg(mapping, 'name', null);
-        if (name !== null) {
-          name = this._names.at(name);
-        }
-        return {
-          source: source,
-          line: util.getArg(mapping, 'originalLine', null),
-          column: util.getArg(mapping, 'originalColumn', null),
-          name: name
-        };
+    comparators.forEach((comparator) => {
+      if (comparator.semver === ANY) {
+        comparator = new Comparator('>=0.0.0')
       }
-    }
-
-    return {
-      source: null,
-      line: null,
-      column: null,
-      name: null
-    };
-  };
+      high = high || comparator
+      low = low || comparator
+      if (gtfn(comparator.semver, high.semver, options)) {
+        high = comparator
+      } else if (ltfn(comparator.semver, low.semver, options)) {
+        low = comparator
+      }
+    })
 
-/**
- * Return true if we have the source content for every source in the source
- * map, false otherwise.
- */
-BasicSourceMapConsumer.prototype.hasContentsOfAllSources =
-  function BasicSourceMapConsumer_hasContentsOfAllSources() {
-    if (!this.sourcesContent) {
-      return false;
+    // If the edge version comparator has a operator then our version
+    // isn't outside it
+    if (high.operator === comp || high.operator === ecomp) {
+      return false
     }
-    return this.sourcesContent.length >= this._sources.size() &&
-      !this.sourcesContent.some(function (sc) { return sc == null; });
-  };
 
-/**
- * Returns the original source content. The only argument is the url of the
- * original source file. Returns null if no original source content is
- * available.
- */
-BasicSourceMapConsumer.prototype.sourceContentFor =
-  function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
-    if (!this.sourcesContent) {
-      return null;
+    // If the lowest version comparator has an operator and our version
+    // is less than it then it isn't higher than the range
+    if ((!low.operator || low.operator === comp) &&
+        ltefn(version, low.semver)) {
+      return false
+    } else if (low.operator === ecomp && ltfn(version, low.semver)) {
+      return false
     }
+  }
+  return true
+}
 
-    var index = this._findSourceIndex(aSource);
-    if (index >= 0) {
-      return this.sourcesContent[index];
-    }
+module.exports = outside
 
-    var relativeSource = aSource;
-    if (this.sourceRoot != null) {
-      relativeSource = util.relative(this.sourceRoot, relativeSource);
-    }
 
-    var url;
-    if (this.sourceRoot != null
-        && (url = util.urlParse(this.sourceRoot))) {
-      // XXX: file:// URIs and absolute paths lead to unexpected behavior for
-      // many users. We can help them out when they expect file:// URIs to
-      // behave like it would if they were running a local HTTP server. See
-      // https://bugzilla.mozilla.org/show_bug.cgi?id=885597.
-      var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
-      if (url.scheme == "file"
-          && this._sources.has(fileUriAbsPath)) {
-        return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]
-      }
+/***/ }),
 
-      if ((!url.path || url.path == "/")
-          && this._sources.has("/" + relativeSource)) {
-        return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
+/***/ 56561:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+// given a set of versions and a range, create a "simplified" range
+// that includes the same versions that the original range does
+// If the original range is shorter than the simplified one, return that.
+const satisfies = __nccwpck_require__(6055)
+const compare = __nccwpck_require__(44309)
+module.exports = (versions, range, options) => {
+  const set = []
+  let first = null
+  let prev = null
+  const v = versions.sort((a, b) => compare(a, b, options))
+  for (const version of v) {
+    const included = satisfies(version, range, options)
+    if (included) {
+      prev = version
+      if (!first) {
+        first = version
+      }
+    } else {
+      if (prev) {
+        set.push([first, prev])
       }
+      prev = null
+      first = null
     }
+  }
+  if (first) {
+    set.push([first, null])
+  }
 
-    // This function is used recursively from
-    // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we
-    // don't want to throw if we can't find the source - we just want to
-    // return null, so we provide a flag to exit gracefully.
-    if (nullOnMissing) {
-      return null;
-    }
-    else {
-      throw new Error('"' + relativeSource + '" is not in the SourceMap.');
+  const ranges = []
+  for (const [min, max] of set) {
+    if (min === max) {
+      ranges.push(min)
+    } else if (!max && min === v[0]) {
+      ranges.push('*')
+    } else if (!max) {
+      ranges.push(`>=${min}`)
+    } else if (min === v[0]) {
+      ranges.push(`<=${max}`)
+    } else {
+      ranges.push(`${min} - ${max}`)
     }
-  };
+  }
+  const simplified = ranges.join(' || ')
+  const original = typeof range.raw === 'string' ? range.raw : String(range)
+  return simplified.length < original.length ? simplified : range
+}
 
-/**
- * Returns the generated line and column information for the original source,
- * line, and column positions provided. The only argument is an object with
- * the following properties:
- *
- *   - source: The filename of the original source.
- *   - line: The line number in the original source.  The line number
- *     is 1-based.
- *   - column: The column number in the original source.  The column
- *     number is 0-based.
- *   - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
- *     'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
- *     closest element that is smaller than or greater than the one we are
- *     searching for, respectively, if the exact element cannot be found.
- *     Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
- *
- * and an object is returned with the following properties:
- *
- *   - line: The line number in the generated source, or null.  The
- *     line number is 1-based.
- *   - column: The column number in the generated source, or null.
- *     The column number is 0-based.
- */
-BasicSourceMapConsumer.prototype.generatedPositionFor =
-  function SourceMapConsumer_generatedPositionFor(aArgs) {
-    var source = util.getArg(aArgs, 'source');
-    source = this._findSourceIndex(source);
-    if (source < 0) {
-      return {
-        line: null,
-        column: null,
-        lastColumn: null
-      };
-    }
 
-    var needle = {
-      source: source,
-      originalLine: util.getArg(aArgs, 'line'),
-      originalColumn: util.getArg(aArgs, 'column')
-    };
+/***/ }),
 
-    var index = this._findMapping(
-      needle,
-      this._originalMappings,
-      "originalLine",
-      "originalColumn",
-      util.compareByOriginalPositions,
-      util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)
-    );
+/***/ 7863:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    if (index >= 0) {
-      var mapping = this._originalMappings[index];
+const Range = __nccwpck_require__(9828)
+const Comparator = __nccwpck_require__(91532)
+const { ANY } = Comparator
+const satisfies = __nccwpck_require__(6055)
+const compare = __nccwpck_require__(44309)
 
-      if (mapping.source === needle.source) {
-        return {
-          line: util.getArg(mapping, 'generatedLine', null),
-          column: util.getArg(mapping, 'generatedColumn', null),
-          lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
-        };
-      }
-    }
+// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:
+// - Every simple range `r1, r2, ...` is a null set, OR
+// - Every simple range `r1, r2, ...` which is not a null set is a subset of
+//   some `R1, R2, ...`
+//
+// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:
+// - If c is only the ANY comparator
+//   - If C is only the ANY comparator, return true
+//   - Else if in prerelease mode, return false
+//   - else replace c with `[>=0.0.0]`
+// - If C is only the ANY comparator
+//   - if in prerelease mode, return true
+//   - else replace C with `[>=0.0.0]`
+// - Let EQ be the set of = comparators in c
+// - If EQ is more than one, return true (null set)
+// - Let GT be the highest > or >= comparator in c
+// - Let LT be the lowest < or <= comparator in c
+// - If GT and LT, and GT.semver > LT.semver, return true (null set)
+// - If any C is a = range, and GT or LT are set, return false
+// - If EQ
+//   - If GT, and EQ does not satisfy GT, return true (null set)
+//   - If LT, and EQ does not satisfy LT, return true (null set)
+//   - If EQ satisfies every C, return true
+//   - Else return false
+// - If GT
+//   - If GT.semver is lower than any > or >= comp in C, return false
+//   - If GT is >=, and GT.semver does not satisfy every C, return false
+//   - If GT.semver has a prerelease, and not in prerelease mode
+//     - If no C has a prerelease and the GT.semver tuple, return false
+// - If LT
+//   - If LT.semver is greater than any < or <= comp in C, return false
+//   - If LT is <=, and LT.semver does not satisfy every C, return false
+//   - If GT.semver has a prerelease, and not in prerelease mode
+//     - If no C has a prerelease and the LT.semver tuple, return false
+// - Else return true
 
-    return {
-      line: null,
-      column: null,
-      lastColumn: null
-    };
-  };
+const subset = (sub, dom, options = {}) => {
+  if (sub === dom) {
+    return true
+  }
 
-__webpack_unused_export__ = BasicSourceMapConsumer;
+  sub = new Range(sub, options)
+  dom = new Range(dom, options)
+  let sawNonNull = false
 
-/**
- * An IndexedSourceMapConsumer instance represents a parsed source map which
- * we can query for information. It differs from BasicSourceMapConsumer in
- * that it takes "indexed" source maps (i.e. ones with a "sections" field) as
- * input.
- *
- * The first parameter is a raw source map (either as a JSON string, or already
- * parsed to an object). According to the spec for indexed source maps, they
- * have the following attributes:
- *
- *   - version: Which version of the source map spec this map is following.
- *   - file: Optional. The generated file this source map is associated with.
- *   - sections: A list of section definitions.
- *
- * Each value under the "sections" field has two fields:
- *   - offset: The offset into the original specified at which this section
- *       begins to apply, defined as an object with a "line" and "column"
- *       field.
- *   - map: A source map definition. This source map could also be indexed,
- *       but doesn't have to be.
- *
- * Instead of the "map" field, it's also possible to have a "url" field
- * specifying a URL to retrieve a source map from, but that's currently
- * unsupported.
- *
- * Here's an example source map, taken from the source map spec[0], but
- * modified to omit a section which uses the "url" field.
- *
- *  {
- *    version : 3,
- *    file: "app.js",
- *    sections: [{
- *      offset: {line:100, column:10},
- *      map: {
- *        version : 3,
- *        file: "section.js",
- *        sources: ["foo.js", "bar.js"],
- *        names: ["src", "maps", "are", "fun"],
- *        mappings: "AAAA,E;;ABCDE;"
- *      }
- *    }],
- *  }
- *
- * The second parameter, if given, is a string whose value is the URL
- * at which the source map was found.  This URL is used to compute the
- * sources array.
- *
- * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt
- */
-function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
-  var sourceMap = aSourceMap;
-  if (typeof aSourceMap === 'string') {
-    sourceMap = util.parseSourceMapInput(aSourceMap);
+  OUTER: for (const simpleSub of sub.set) {
+    for (const simpleDom of dom.set) {
+      const isSub = simpleSubset(simpleSub, simpleDom, options)
+      sawNonNull = sawNonNull || isSub !== null
+      if (isSub) {
+        continue OUTER
+      }
+    }
+    // the null set is a subset of everything, but null simple ranges in
+    // a complex range should be ignored.  so if we saw a non-null range,
+    // then we know this isn't a subset, but if EVERY simple range was null,
+    // then it is a subset.
+    if (sawNonNull) {
+      return false
+    }
   }
+  return true
+}
 
-  var version = util.getArg(sourceMap, 'version');
-  var sections = util.getArg(sourceMap, 'sections');
+const minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]
+const minimumVersion = [new Comparator('>=0.0.0')]
 
-  if (version != this._version) {
-    throw new Error('Unsupported version: ' + version);
+const simpleSubset = (sub, dom, options) => {
+  if (sub === dom) {
+    return true
   }
 
-  this._sources = new ArraySet();
-  this._names = new ArraySet();
-
-  var lastOffset = {
-    line: -1,
-    column: 0
-  };
-  this._sections = sections.map(function (s) {
-    if (s.url) {
-      // The url field will require support for asynchronicity.
-      // See https://github.com/mozilla/source-map/issues/16
-      throw new Error('Support for url field in sections not implemented.');
+  if (sub.length === 1 && sub[0].semver === ANY) {
+    if (dom.length === 1 && dom[0].semver === ANY) {
+      return true
+    } else if (options.includePrerelease) {
+      sub = minimumVersionWithPreRelease
+    } else {
+      sub = minimumVersion
     }
-    var offset = util.getArg(s, 'offset');
-    var offsetLine = util.getArg(offset, 'line');
-    var offsetColumn = util.getArg(offset, 'column');
+  }
 
-    if (offsetLine < lastOffset.line ||
-        (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) {
-      throw new Error('Section offsets must be ordered and non-overlapping.');
+  if (dom.length === 1 && dom[0].semver === ANY) {
+    if (options.includePrerelease) {
+      return true
+    } else {
+      dom = minimumVersion
     }
-    lastOffset = offset;
+  }
 
-    return {
-      generatedOffset: {
-        // The offset fields are 0-based, but we use 1-based indices when
-        // encoding/decoding from VLQ.
-        generatedLine: offsetLine + 1,
-        generatedColumn: offsetColumn + 1
-      },
-      consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL)
+  const eqSet = new Set()
+  let gt, lt
+  for (const c of sub) {
+    if (c.operator === '>' || c.operator === '>=') {
+      gt = higherGT(gt, c, options)
+    } else if (c.operator === '<' || c.operator === '<=') {
+      lt = lowerLT(lt, c, options)
+    } else {
+      eqSet.add(c.semver)
     }
-  });
-}
-
-IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
-IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
+  }
 
-/**
- * The version of the source mapping spec that we are consuming.
- */
-IndexedSourceMapConsumer.prototype._version = 3;
+  if (eqSet.size > 1) {
+    return null
+  }
 
-/**
- * The list of original sources.
- */
-Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', {
-  get: function () {
-    var sources = [];
-    for (var i = 0; i < this._sections.length; i++) {
-      for (var j = 0; j < this._sections[i].consumer.sources.length; j++) {
-        sources.push(this._sections[i].consumer.sources[j]);
-      }
+  let gtltComp
+  if (gt && lt) {
+    gtltComp = compare(gt.semver, lt.semver, options)
+    if (gtltComp > 0) {
+      return null
+    } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {
+      return null
     }
-    return sources;
   }
-});
-
-/**
- * Returns the original source, line, and column information for the generated
- * source's line and column positions provided. The only argument is an object
- * with the following properties:
- *
- *   - line: The line number in the generated source.  The line number
- *     is 1-based.
- *   - column: The column number in the generated source.  The column
- *     number is 0-based.
- *
- * and an object is returned with the following properties:
- *
- *   - source: The original source file, or null.
- *   - line: The line number in the original source, or null.  The
- *     line number is 1-based.
- *   - column: The column number in the original source, or null.  The
- *     column number is 0-based.
- *   - name: The original identifier, or null.
- */
-IndexedSourceMapConsumer.prototype.originalPositionFor =
-  function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
-    var needle = {
-      generatedLine: util.getArg(aArgs, 'line'),
-      generatedColumn: util.getArg(aArgs, 'column')
-    };
-
-    // Find the section containing the generated position we're trying to map
-    // to an original position.
-    var sectionIndex = binarySearch.search(needle, this._sections,
-      function(needle, section) {
-        var cmp = needle.generatedLine - section.generatedOffset.generatedLine;
-        if (cmp) {
-          return cmp;
-        }
 
-        return (needle.generatedColumn -
-                section.generatedOffset.generatedColumn);
-      });
-    var section = this._sections[sectionIndex];
-
-    if (!section) {
-      return {
-        source: null,
-        line: null,
-        column: null,
-        name: null
-      };
+  // will iterate one or zero times
+  for (const eq of eqSet) {
+    if (gt && !satisfies(eq, String(gt), options)) {
+      return null
     }
 
-    return section.consumer.originalPositionFor({
-      line: needle.generatedLine -
-        (section.generatedOffset.generatedLine - 1),
-      column: needle.generatedColumn -
-        (section.generatedOffset.generatedLine === needle.generatedLine
-         ? section.generatedOffset.generatedColumn - 1
-         : 0),
-      bias: aArgs.bias
-    });
-  };
-
-/**
- * Return true if we have the source content for every source in the source
- * map, false otherwise.
- */
-IndexedSourceMapConsumer.prototype.hasContentsOfAllSources =
-  function IndexedSourceMapConsumer_hasContentsOfAllSources() {
-    return this._sections.every(function (s) {
-      return s.consumer.hasContentsOfAllSources();
-    });
-  };
-
-/**
- * Returns the original source content. The only argument is the url of the
- * original source file. Returns null if no original source content is
- * available.
- */
-IndexedSourceMapConsumer.prototype.sourceContentFor =
-  function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
-    for (var i = 0; i < this._sections.length; i++) {
-      var section = this._sections[i];
+    if (lt && !satisfies(eq, String(lt), options)) {
+      return null
+    }
 
-      var content = section.consumer.sourceContentFor(aSource, true);
-      if (content) {
-        return content;
+    for (const c of dom) {
+      if (!satisfies(eq, String(c), options)) {
+        return false
       }
     }
-    if (nullOnMissing) {
-      return null;
-    }
-    else {
-      throw new Error('"' + aSource + '" is not in the SourceMap.');
-    }
-  };
 
-/**
- * Returns the generated line and column information for the original source,
- * line, and column positions provided. The only argument is an object with
- * the following properties:
- *
- *   - source: The filename of the original source.
- *   - line: The line number in the original source.  The line number
- *     is 1-based.
- *   - column: The column number in the original source.  The column
- *     number is 0-based.
- *
- * and an object is returned with the following properties:
- *
- *   - line: The line number in the generated source, or null.  The
- *     line number is 1-based. 
- *   - column: The column number in the generated source, or null.
- *     The column number is 0-based.
- */
-IndexedSourceMapConsumer.prototype.generatedPositionFor =
-  function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
-    for (var i = 0; i < this._sections.length; i++) {
-      var section = this._sections[i];
+    return true
+  }
 
-      // Only consider this section if the requested source is in the list of
-      // sources of the consumer.
-      if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) {
-        continue;
+  let higher, lower
+  let hasDomLT, hasDomGT
+  // if the subset has a prerelease, we need a comparator in the superset
+  // with the same tuple and a prerelease, or it's not a subset
+  let needDomLTPre = lt &&
+    !options.includePrerelease &&
+    lt.semver.prerelease.length ? lt.semver : false
+  let needDomGTPre = gt &&
+    !options.includePrerelease &&
+    gt.semver.prerelease.length ? gt.semver : false
+  // exception: <1.2.3-0 is the same as <1.2.3
+  if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&
+      lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {
+    needDomLTPre = false
+  }
+
+  for (const c of dom) {
+    hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='
+    hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='
+    if (gt) {
+      if (needDomGTPre) {
+        if (c.semver.prerelease && c.semver.prerelease.length &&
+            c.semver.major === needDomGTPre.major &&
+            c.semver.minor === needDomGTPre.minor &&
+            c.semver.patch === needDomGTPre.patch) {
+          needDomGTPre = false
+        }
       }
-      var generatedPosition = section.consumer.generatedPositionFor(aArgs);
-      if (generatedPosition) {
-        var ret = {
-          line: generatedPosition.line +
-            (section.generatedOffset.generatedLine - 1),
-          column: generatedPosition.column +
-            (section.generatedOffset.generatedLine === generatedPosition.line
-             ? section.generatedOffset.generatedColumn - 1
-             : 0)
-        };
-        return ret;
+      if (c.operator === '>' || c.operator === '>=') {
+        higher = higherGT(gt, c, options)
+        if (higher === c && higher !== gt) {
+          return false
+        }
+      } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {
+        return false
       }
     }
-
-    return {
-      line: null,
-      column: null
-    };
-  };
-
-/**
- * Parse the mappings in a string in to a data structure which we can easily
- * query (the ordered arrays in the `this.__generatedMappings` and
- * `this.__originalMappings` properties).
- */
-IndexedSourceMapConsumer.prototype._parseMappings =
-  function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
-    this.__generatedMappings = [];
-    this.__originalMappings = [];
-    for (var i = 0; i < this._sections.length; i++) {
-      var section = this._sections[i];
-      var sectionMappings = section.consumer._generatedMappings;
-      for (var j = 0; j < sectionMappings.length; j++) {
-        var mapping = sectionMappings[j];
-
-        var source = section.consumer._sources.at(mapping.source);
-        source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
-        this._sources.add(source);
-        source = this._sources.indexOf(source);
-
-        var name = null;
-        if (mapping.name) {
-          name = section.consumer._names.at(mapping.name);
-          this._names.add(name);
-          name = this._names.indexOf(name);
+    if (lt) {
+      if (needDomLTPre) {
+        if (c.semver.prerelease && c.semver.prerelease.length &&
+            c.semver.major === needDomLTPre.major &&
+            c.semver.minor === needDomLTPre.minor &&
+            c.semver.patch === needDomLTPre.patch) {
+          needDomLTPre = false
         }
-
-        // The mappings coming from the consumer for the section have
-        // generated positions relative to the start of the section, so we
-        // need to offset them to be relative to the start of the concatenated
-        // generated file.
-        var adjustedMapping = {
-          source: source,
-          generatedLine: mapping.generatedLine +
-            (section.generatedOffset.generatedLine - 1),
-          generatedColumn: mapping.generatedColumn +
-            (section.generatedOffset.generatedLine === mapping.generatedLine
-            ? section.generatedOffset.generatedColumn - 1
-            : 0),
-          originalLine: mapping.originalLine,
-          originalColumn: mapping.originalColumn,
-          name: name
-        };
-
-        this.__generatedMappings.push(adjustedMapping);
-        if (typeof adjustedMapping.originalLine === 'number') {
-          this.__originalMappings.push(adjustedMapping);
+      }
+      if (c.operator === '<' || c.operator === '<=') {
+        lower = lowerLT(lt, c, options)
+        if (lower === c && lower !== lt) {
+          return false
         }
+      } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {
+        return false
       }
     }
+    if (!c.operator && (lt || gt) && gtltComp !== 0) {
+      return false
+    }
+  }
 
-    quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);
-    quickSort(this.__originalMappings, util.compareByOriginalPositions);
-  };
+  // if there was a < or >, and nothing in the dom, then must be false
+  // UNLESS it was limited by another range in the other direction.
+  // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0
+  if (gt && hasDomLT && !lt && gtltComp !== 0) {
+    return false
+  }
 
-__webpack_unused_export__ = IndexedSourceMapConsumer;
-
-
-/***/ }),
+  if (lt && hasDomGT && !gt && gtltComp !== 0) {
+    return false
+  }
 
-/***/ 69425:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+  // we needed a prerelease range in a specific tuple, but didn't get one
+  // then this isn't a subset.  eg >=1.2.3-pre is not a subset of >=1.0.0,
+  // because it includes prereleases in the 1.2.3 tuple
+  if (needDomGTPre || needDomLTPre) {
+    return false
+  }
 
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
+  return true
+}
 
-var base64VLQ = __nccwpck_require__(10975);
-var util = __nccwpck_require__(12344);
-var ArraySet = (__nccwpck_require__(26375)/* .ArraySet */ .I);
-var MappingList = (__nccwpck_require__(86817)/* .MappingList */ .H);
+// >=1.2.3 is lower than >1.2.3
+const higherGT = (a, b, options) => {
+  if (!a) {
+    return b
+  }
+  const comp = compare(a.semver, b.semver, options)
+  return comp > 0 ? a
+    : comp < 0 ? b
+    : b.operator === '>' && a.operator === '>=' ? b
+    : a
+}
 
-/**
- * An instance of the SourceMapGenerator represents a source map which is
- * being built incrementally. You may pass an object with the following
- * properties:
- *
- *   - file: The filename of the generated source.
- *   - sourceRoot: A root for all relative URLs in this source map.
- */
-function SourceMapGenerator(aArgs) {
-  if (!aArgs) {
-    aArgs = {};
+// <=1.2.3 is higher than <1.2.3
+const lowerLT = (a, b, options) => {
+  if (!a) {
+    return b
   }
-  this._file = util.getArg(aArgs, 'file', null);
-  this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null);
-  this._skipValidation = util.getArg(aArgs, 'skipValidation', false);
-  this._sources = new ArraySet();
-  this._names = new ArraySet();
-  this._mappings = new MappingList();
-  this._sourcesContents = null;
+  const comp = compare(a.semver, b.semver, options)
+  return comp < 0 ? a
+    : comp > 0 ? b
+    : b.operator === '<' && a.operator === '<=' ? b
+    : a
 }
 
-SourceMapGenerator.prototype._version = 3;
+module.exports = subset
 
-/**
- * Creates a new SourceMapGenerator based on a SourceMapConsumer
- *
- * @param aSourceMapConsumer The SourceMap.
- */
-SourceMapGenerator.fromSourceMap =
-  function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) {
-    var sourceRoot = aSourceMapConsumer.sourceRoot;
-    var generator = new SourceMapGenerator({
-      file: aSourceMapConsumer.file,
-      sourceRoot: sourceRoot
-    });
-    aSourceMapConsumer.eachMapping(function (mapping) {
-      var newMapping = {
-        generated: {
-          line: mapping.generatedLine,
-          column: mapping.generatedColumn
-        }
-      };
 
-      if (mapping.source != null) {
-        newMapping.source = mapping.source;
-        if (sourceRoot != null) {
-          newMapping.source = util.relative(sourceRoot, newMapping.source);
-        }
+/***/ }),
 
-        newMapping.original = {
-          line: mapping.originalLine,
-          column: mapping.originalColumn
-        };
+/***/ 52706:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-        if (mapping.name != null) {
-          newMapping.name = mapping.name;
-        }
-      }
+const Range = __nccwpck_require__(9828)
 
-      generator.addMapping(newMapping);
-    });
-    aSourceMapConsumer.sources.forEach(function (sourceFile) {
-      var sourceRelative = sourceFile;
-      if (sourceRoot !== null) {
-        sourceRelative = util.relative(sourceRoot, sourceFile);
-      }
+// Mostly just for testing and legacy API reasons
+const toComparators = (range, options) =>
+  new Range(range, options).set
+    .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))
 
-      if (!generator._sources.has(sourceRelative)) {
-        generator._sources.add(sourceRelative);
-      }
+module.exports = toComparators
 
-      var content = aSourceMapConsumer.sourceContentFor(sourceFile);
-      if (content != null) {
-        generator.setSourceContent(sourceFile, content);
-      }
-    });
-    return generator;
-  };
 
-/**
- * Add a single mapping from original source line and column to the generated
- * source's line and column for this source map being created. The mapping
- * object should have the following properties:
- *
- *   - generated: An object with the generated line and column positions.
- *   - original: An object with the original line and column positions.
- *   - source: The original source file (relative to the sourceRoot).
- *   - name: An optional original token name for this mapping.
- */
-SourceMapGenerator.prototype.addMapping =
-  function SourceMapGenerator_addMapping(aArgs) {
-    var generated = util.getArg(aArgs, 'generated');
-    var original = util.getArg(aArgs, 'original', null);
-    var source = util.getArg(aArgs, 'source', null);
-    var name = util.getArg(aArgs, 'name', null);
+/***/ }),
 
-    if (!this._skipValidation) {
-      this._validateMapping(generated, original, source, name);
-    }
+/***/ 2098:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    if (source != null) {
-      source = String(source);
-      if (!this._sources.has(source)) {
-        this._sources.add(source);
-      }
-    }
+const Range = __nccwpck_require__(9828)
+const validRange = (range, options) => {
+  try {
+    // Return '*' instead of '' so that truthiness works.
+    // This will throw if it's invalid anyway
+    return new Range(range, options).range || '*'
+  } catch (er) {
+    return null
+  }
+}
+module.exports = validRange
 
-    if (name != null) {
-      name = String(name);
-      if (!this._names.has(name)) {
-        this._names.add(name);
-      }
-    }
 
-    this._mappings.add({
-      generatedLine: generated.line,
-      generatedColumn: generated.column,
-      originalLine: original != null && original.line,
-      originalColumn: original != null && original.column,
-      source: source,
-      name: name
-    });
-  };
+/***/ }),
 
-/**
- * Set the source content for a source file.
- */
-SourceMapGenerator.prototype.setSourceContent =
-  function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
-    var source = aSourceFile;
-    if (this._sourceRoot != null) {
-      source = util.relative(this._sourceRoot, source);
-    }
+/***/ 45123:
+/***/ ((module) => {
 
-    if (aSourceContent != null) {
-      // Add the source content to the _sourcesContents map.
-      // Create a new _sourcesContents map if the property is null.
-      if (!this._sourcesContents) {
-        this._sourcesContents = Object.create(null);
-      }
-      this._sourcesContents[util.toSetString(source)] = aSourceContent;
-    } else if (this._sourcesContents) {
-      // Remove the source file from the _sourcesContents map.
-      // If the _sourcesContents map is empty, set the property to null.
-      delete this._sourcesContents[util.toSetString(source)];
-      if (Object.keys(this._sourcesContents).length === 0) {
-        this._sourcesContents = null;
-      }
-    }
-  };
+module.exports = [
+  'cat',
+  'cd',
+  'chmod',
+  'cp',
+  'dirs',
+  'echo',
+  'exec',
+  'find',
+  'grep',
+  'head',
+  'ln',
+  'ls',
+  'mkdir',
+  'mv',
+  'pwd',
+  'rm',
+  'sed',
+  'set',
+  'sort',
+  'tail',
+  'tempdir',
+  'test',
+  'to',
+  'toEnd',
+  'touch',
+  'uniq',
+  'which',
+];
 
-/**
- * Applies the mappings of a sub-source-map for a specific source file to the
- * source map being generated. Each mapping to the supplied source file is
- * rewritten using the supplied source map. Note: The resolution for the
- * resulting mappings is the minimium of this map and the supplied map.
- *
- * @param aSourceMapConsumer The source map to be applied.
- * @param aSourceFile Optional. The filename of the source file.
- *        If omitted, SourceMapConsumer's file property will be used.
- * @param aSourceMapPath Optional. The dirname of the path to the source map
- *        to be applied. If relative, it is relative to the SourceMapConsumer.
- *        This parameter is needed when the two source maps aren't in the same
- *        directory, and the source map to be applied contains relative source
- *        paths. If so, those relative source paths need to be rewritten
- *        relative to the SourceMapGenerator.
- */
-SourceMapGenerator.prototype.applySourceMap =
-  function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {
-    var sourceFile = aSourceFile;
-    // If aSourceFile is omitted, we will use the file property of the SourceMap
-    if (aSourceFile == null) {
-      if (aSourceMapConsumer.file == null) {
-        throw new Error(
-          'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' +
-          'or the source map\'s "file" property. Both were omitted.'
-        );
-      }
-      sourceFile = aSourceMapConsumer.file;
-    }
-    var sourceRoot = this._sourceRoot;
-    // Make "sourceFile" relative if an absolute Url is passed.
-    if (sourceRoot != null) {
-      sourceFile = util.relative(sourceRoot, sourceFile);
-    }
-    // Applying the SourceMap can add and remove items from the sources and
-    // the names array.
-    var newSources = new ArraySet();
-    var newNames = new ArraySet();
 
-    // Find mappings for the "sourceFile"
-    this._mappings.unsortedForEach(function (mapping) {
-      if (mapping.source === sourceFile && mapping.originalLine != null) {
-        // Check if it can be mapped by the source map, then update the mapping.
-        var original = aSourceMapConsumer.originalPositionFor({
-          line: mapping.originalLine,
-          column: mapping.originalColumn
-        });
-        if (original.source != null) {
-          // Copy mapping
-          mapping.source = original.source;
-          if (aSourceMapPath != null) {
-            mapping.source = util.join(aSourceMapPath, mapping.source)
-          }
-          if (sourceRoot != null) {
-            mapping.source = util.relative(sourceRoot, mapping.source);
-          }
-          mapping.originalLine = original.line;
-          mapping.originalColumn = original.column;
-          if (original.name != null) {
-            mapping.name = original.name;
-          }
-        }
-      }
+/***/ }),
 
-      var source = mapping.source;
-      if (source != null && !newSources.has(source)) {
-        newSources.add(source);
-      }
+/***/ 33516:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-      var name = mapping.name;
-      if (name != null && !newNames.has(name)) {
-        newNames.add(name);
-      }
+//
+// ShellJS
+// Unix shell commands on top of Node's API
+//
+// Copyright (c) 2012 Artur Adib
+// http://github.com/shelljs/shelljs
+//
 
-    }, this);
-    this._sources = newSources;
-    this._names = newNames;
+function __ncc_wildcard$0 (arg) {
+  if (arg === "cat.js" || arg === "cat") return __nccwpck_require__(30271);
+  else if (arg === "cd.js" || arg === "cd") return __nccwpck_require__(42051);
+  else if (arg === "chmod.js" || arg === "chmod") return __nccwpck_require__(24975);
+  else if (arg === "common.js" || arg === "common") return __nccwpck_require__(53687);
+  else if (arg === "cp.js" || arg === "cp") return __nccwpck_require__(34932);
+  else if (arg === "dirs.js" || arg === "dirs") return __nccwpck_require__(41178);
+  else if (arg === "echo.js" || arg === "echo") return __nccwpck_require__(10243);
+  else if (arg === "error.js" || arg === "error") return __nccwpck_require__(10232);
+  else if (arg === "exec-child.js" || arg === "exec-child") return __nccwpck_require__(69607);
+  else if (arg === "exec.js" || arg === "exec") return __nccwpck_require__(10896);
+  else if (arg === "find.js" || arg === "find") return __nccwpck_require__(47838);
+  else if (arg === "grep.js" || arg === "grep") return __nccwpck_require__(17417);
+  else if (arg === "head.js" || arg === "head") return __nccwpck_require__(6613);
+  else if (arg === "ln.js" || arg === "ln") return __nccwpck_require__(15787);
+  else if (arg === "ls.js" || arg === "ls") return __nccwpck_require__(35561);
+  else if (arg === "mkdir.js" || arg === "mkdir") return __nccwpck_require__(72695);
+  else if (arg === "mv.js" || arg === "mv") return __nccwpck_require__(39849);
+  else if (arg === "popd.js" || arg === "popd") return __nccwpck_require__(50227);
+  else if (arg === "pushd.js" || arg === "pushd") return __nccwpck_require__(44177);
+  else if (arg === "pwd.js" || arg === "pwd") return __nccwpck_require__(58553);
+  else if (arg === "rm.js" || arg === "rm") return __nccwpck_require__(22830);
+  else if (arg === "sed.js" || arg === "sed") return __nccwpck_require__(25899);
+  else if (arg === "set.js" || arg === "set") return __nccwpck_require__(11411);
+  else if (arg === "sort.js" || arg === "sort") return __nccwpck_require__(72116);
+  else if (arg === "tail.js" || arg === "tail") return __nccwpck_require__(42284);
+  else if (arg === "tempdir.js" || arg === "tempdir") return __nccwpck_require__(76150);
+  else if (arg === "test.js" || arg === "test") return __nccwpck_require__(79723);
+  else if (arg === "to.js" || arg === "to") return __nccwpck_require__(71961);
+  else if (arg === "toEnd.js" || arg === "toEnd") return __nccwpck_require__(33736);
+  else if (arg === "touch.js" || arg === "touch") return __nccwpck_require__(28358);
+  else if (arg === "uniq.js" || arg === "uniq") return __nccwpck_require__(77286);
+  else if (arg === "which.js" || arg === "which") return __nccwpck_require__(64766);
+}
+var common = __nccwpck_require__(53687);
 
-    // Copy sourcesContents of applied map.
-    aSourceMapConsumer.sources.forEach(function (sourceFile) {
-      var content = aSourceMapConsumer.sourceContentFor(sourceFile);
-      if (content != null) {
-        if (aSourceMapPath != null) {
-          sourceFile = util.join(aSourceMapPath, sourceFile);
-        }
-        if (sourceRoot != null) {
-          sourceFile = util.relative(sourceRoot, sourceFile);
-        }
-        this.setSourceContent(sourceFile, content);
-      }
-    }, this);
-  };
+//@
+//@ All commands run synchronously, unless otherwise stated.
+//@ All commands accept standard bash globbing characters (`*`, `?`, etc.),
+//@ compatible with the [node `glob` module](https://github.com/isaacs/node-glob).
+//@
+//@ For less-commonly used commands and features, please check out our [wiki
+//@ page](https://github.com/shelljs/shelljs/wiki).
+//@
 
-/**
- * A mapping can have one of the three levels of data:
- *
- *   1. Just the generated position.
- *   2. The Generated position, original position, and original source.
- *   3. Generated and original position, original source, as well as a name
- *      token.
- *
- * To maintain consistency, we validate that any new mapping being added falls
- * in to one of these categories.
- */
-SourceMapGenerator.prototype._validateMapping =
-  function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource,
-                                              aName) {
-    // When aOriginal is truthy but has empty values for .line and .column,
-    // it is most likely a programmer error. In this case we throw a very
-    // specific error message to try to guide them the right way.
-    // For example: https://github.com/Polymer/polymer-bundler/pull/519
-    if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') {
-        throw new Error(
-            'original.line and original.column are not numbers -- you probably meant to omit ' +
-            'the original mapping entirely and only map the generated position. If so, pass ' +
-            'null for the original mapping instead of an object with empty or null values.'
-        );
-    }
+// Include the docs for all the default commands
+//@commands
 
-    if (aGenerated && 'line' in aGenerated && 'column' in aGenerated
-        && aGenerated.line > 0 && aGenerated.column >= 0
-        && !aOriginal && !aSource && !aName) {
-      // Case 1.
-      return;
-    }
-    else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated
-             && aOriginal && 'line' in aOriginal && 'column' in aOriginal
-             && aGenerated.line > 0 && aGenerated.column >= 0
-             && aOriginal.line > 0 && aOriginal.column >= 0
-             && aSource) {
-      // Cases 2 and 3.
-      return;
-    }
-    else {
-      throw new Error('Invalid mapping: ' + JSON.stringify({
-        generated: aGenerated,
-        source: aSource,
-        original: aOriginal,
-        name: aName
-      }));
-    }
-  };
+// Load all default commands
+(__nccwpck_require__(45123).forEach)(function (command) {
+  __ncc_wildcard$0(command);
+});
 
-/**
- * Serialize the accumulated mappings in to the stream of base 64 VLQs
- * specified by the source map format.
- */
-SourceMapGenerator.prototype._serializeMappings =
-  function SourceMapGenerator_serializeMappings() {
-    var previousGeneratedColumn = 0;
-    var previousGeneratedLine = 1;
-    var previousOriginalColumn = 0;
-    var previousOriginalLine = 0;
-    var previousName = 0;
-    var previousSource = 0;
-    var result = '';
-    var next;
-    var mapping;
-    var nameIdx;
-    var sourceIdx;
+//@
+//@ ### exit(code)
+//@
+//@ Exits the current process with the given exit `code`.
+exports.exit = process.exit;
 
-    var mappings = this._mappings.toArray();
-    for (var i = 0, len = mappings.length; i < len; i++) {
-      mapping = mappings[i];
-      next = ''
+//@include ./src/error
+exports.error = __nccwpck_require__(10232);
 
-      if (mapping.generatedLine !== previousGeneratedLine) {
-        previousGeneratedColumn = 0;
-        while (mapping.generatedLine !== previousGeneratedLine) {
-          next += ';';
-          previousGeneratedLine++;
-        }
-      }
-      else {
-        if (i > 0) {
-          if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) {
-            continue;
-          }
-          next += ',';
-        }
-      }
+//@include ./src/common
+exports.ShellString = common.ShellString;
 
-      next += base64VLQ.encode(mapping.generatedColumn
-                                 - previousGeneratedColumn);
-      previousGeneratedColumn = mapping.generatedColumn;
+//@
+//@ ### env['VAR_NAME']
+//@
+//@ Object containing environment variables (both getter and setter). Shortcut
+//@ to `process.env`.
+exports.env = process.env;
 
-      if (mapping.source != null) {
-        sourceIdx = this._sources.indexOf(mapping.source);
-        next += base64VLQ.encode(sourceIdx - previousSource);
-        previousSource = sourceIdx;
+//@
+//@ ### Pipes
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ grep('foo', 'file1.txt', 'file2.txt').sed(/o/g, 'a').to('output.txt');
+//@ echo('files with o\'s in the name:\n' + ls().grep('o'));
+//@ cat('test.js').exec('node'); // pipe to exec() call
+//@ ```
+//@
+//@ Commands can send their output to another command in a pipe-like fashion.
+//@ `sed`, `grep`, `cat`, `exec`, `to`, and `toEnd` can appear on the right-hand
+//@ side of a pipe. Pipes can be chained.
 
-        // lines are stored 0-based in SourceMap spec version 3
-        next += base64VLQ.encode(mapping.originalLine - 1
-                                   - previousOriginalLine);
-        previousOriginalLine = mapping.originalLine - 1;
+//@
+//@ ## Configuration
+//@
 
-        next += base64VLQ.encode(mapping.originalColumn
-                                   - previousOriginalColumn);
-        previousOriginalColumn = mapping.originalColumn;
+exports.config = common.config;
 
-        if (mapping.name != null) {
-          nameIdx = this._names.indexOf(mapping.name);
-          next += base64VLQ.encode(nameIdx - previousName);
-          previousName = nameIdx;
-        }
-      }
+//@
+//@ ### config.silent
+//@
+//@ Example:
+//@
+//@ ```javascript
+//@ var sh = require('shelljs');
+//@ var silentState = sh.config.silent; // save old silent state
+//@ sh.config.silent = true;
+//@ /* ... */
+//@ sh.config.silent = silentState; // restore old silent state
+//@ ```
+//@
+//@ Suppresses all command output if `true`, except for `echo()` calls.
+//@ Default is `false`.
 
-      result += next;
-    }
+//@
+//@ ### config.fatal
+//@
+//@ Example:
+//@
+//@ ```javascript
+//@ require('shelljs/global');
+//@ config.fatal = true; // or set('-e');
+//@ cp('this_file_does_not_exist', '/dev/null'); // throws Error here
+//@ /* more commands... */
+//@ ```
+//@
+//@ If `true`, the script will throw a Javascript error when any shell.js
+//@ command encounters an error. Default is `false`. This is analogous to
+//@ Bash's `set -e`.
 
-    return result;
-  };
+//@
+//@ ### config.verbose
+//@
+//@ Example:
+//@
+//@ ```javascript
+//@ config.verbose = true; // or set('-v');
+//@ cd('dir/');
+//@ rm('-rf', 'foo.txt', 'bar.txt');
+//@ exec('echo hello');
+//@ ```
+//@
+//@ Will print each command as follows:
+//@
+//@ ```
+//@ cd dir/
+//@ rm -rf foo.txt bar.txt
+//@ exec echo hello
+//@ ```
 
-SourceMapGenerator.prototype._generateSourcesContent =
-  function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
-    return aSources.map(function (source) {
-      if (!this._sourcesContents) {
-        return null;
-      }
-      if (aSourceRoot != null) {
-        source = util.relative(aSourceRoot, source);
-      }
-      var key = util.toSetString(source);
-      return Object.prototype.hasOwnProperty.call(this._sourcesContents, key)
-        ? this._sourcesContents[key]
-        : null;
-    }, this);
-  };
+//@
+//@ ### config.globOptions
+//@
+//@ Example:
+//@
+//@ ```javascript
+//@ config.globOptions = {nodir: true};
+//@ ```
+//@
+//@ Use this value for calls to `glob.sync()` instead of the default options.
 
-/**
- * Externalize the source map.
- */
-SourceMapGenerator.prototype.toJSON =
-  function SourceMapGenerator_toJSON() {
-    var map = {
-      version: this._version,
-      sources: this._sources.toArray(),
-      names: this._names.toArray(),
-      mappings: this._serializeMappings()
-    };
-    if (this._file != null) {
-      map.file = this._file;
-    }
-    if (this._sourceRoot != null) {
-      map.sourceRoot = this._sourceRoot;
-    }
-    if (this._sourcesContents) {
-      map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);
-    }
+//@
+//@ ### config.reset()
+//@
+//@ Example:
+//@
+//@ ```javascript
+//@ var shell = require('shelljs');
+//@ // Make changes to shell.config, and do stuff...
+//@ /* ... */
+//@ shell.config.reset(); // reset to original state
+//@ // Do more stuff, but with original settings
+//@ /* ... */
+//@ ```
+//@
+//@ Reset `shell.config` to the defaults:
+//@
+//@ ```javascript
+//@ {
+//@   fatal: false,
+//@   globOptions: {},
+//@   maxdepth: 255,
+//@   noglob: false,
+//@   silent: false,
+//@   verbose: false,
+//@ }
+//@ ```
 
-    return map;
-  };
 
-/**
- * Render the source map being generated to a string.
- */
-SourceMapGenerator.prototype.toString =
-  function SourceMapGenerator_toString() {
-    return JSON.stringify(this.toJSON());
-  };
+/***/ }),
 
-exports.h = SourceMapGenerator;
+/***/ 30271:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
 
-/***/ }),
+common.register('cat', _cat, {
+  canReceivePipe: true,
+  cmdOptions: {
+    'n': 'number',
+  },
+});
 
-/***/ 92616:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+//@
+//@ ### cat([options,] file [, file ...])
+//@ ### cat([options,] file_array)
+//@
+//@ Available options:
+//@
+//@ + `-n`: number all output lines
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ var str = cat('file*.txt');
+//@ var str = cat('file1', 'file2');
+//@ var str = cat(['file1', 'file2']); // same as above
+//@ ```
+//@
+//@ Returns a string containing the given file, or a concatenated string
+//@ containing the files if more than one file is given (a new line character is
+//@ introduced between each file).
+function _cat(options, files) {
+  var cat = common.readFromPipe();
 
-var __webpack_unused_export__;
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
+  if (!files && !cat) common.error('no paths given');
 
-var SourceMapGenerator = (__nccwpck_require__(69425)/* .SourceMapGenerator */ .h);
-var util = __nccwpck_require__(12344);
+  files = [].slice.call(arguments, 1);
 
-// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other
-// operating systems these days (capturing the result).
-var REGEX_NEWLINE = /(\r?\n)/;
+  files.forEach(function (file) {
+    if (!fs.existsSync(file)) {
+      common.error('no such file or directory: ' + file);
+    } else if (common.statFollowLinks(file).isDirectory()) {
+      common.error(file + ': Is a directory');
+    }
 
-// Newline character code for charCodeAt() comparisons
-var NEWLINE_CODE = 10;
+    cat += fs.readFileSync(file, 'utf8');
+  });
 
-// Private symbol for identifying `SourceNode`s when multiple versions of
-// the source-map library are loaded. This MUST NOT CHANGE across
-// versions!
-var isSourceNode = "$$$isSourceNode$$$";
+  if (options.number) {
+    cat = addNumbers(cat);
+  }
 
-/**
- * SourceNodes provide a way to abstract over interpolating/concatenating
- * snippets of generated JavaScript source code while maintaining the line and
- * column information associated with the original source code.
- *
- * @param aLine The original line number.
- * @param aColumn The original column number.
- * @param aSource The original source's filename.
- * @param aChunks Optional. An array of strings which are snippets of
- *        generated JS, or other SourceNodes.
- * @param aName The original identifier.
- */
-function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
-  this.children = [];
-  this.sourceContents = {};
-  this.line = aLine == null ? null : aLine;
-  this.column = aColumn == null ? null : aColumn;
-  this.source = aSource == null ? null : aSource;
-  this.name = aName == null ? null : aName;
-  this[isSourceNode] = true;
-  if (aChunks != null) this.add(aChunks);
+  return cat;
 }
+module.exports = _cat;
 
-/**
- * Creates a SourceNode from generated code and a SourceMapConsumer.
- *
- * @param aGeneratedCode The generated code
- * @param aSourceMapConsumer The SourceMap for the generated code
- * @param aRelativePath Optional. The path that relative sources in the
- *        SourceMapConsumer should be relative to.
- */
-SourceNode.fromStringWithSourceMap =
-  function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
-    // The SourceNode we want to fill with the generated code
-    // and the SourceMap
-    var node = new SourceNode();
+function addNumbers(cat) {
+  var lines = cat.split('\n');
+  var lastLine = lines.pop();
 
-    // All even indices of this array are one line of the generated code,
-    // while all odd indices are the newlines between two adjacent lines
-    // (since `REGEX_NEWLINE` captures its match).
-    // Processed fragments are accessed by calling `shiftNextLine`.
-    var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);
-    var remainingLinesIndex = 0;
-    var shiftNextLine = function() {
-      var lineContents = getNextLine();
-      // The last line of a file might not have a newline.
-      var newLine = getNextLine() || "";
-      return lineContents + newLine;
+  lines = lines.map(function (line, i) {
+    return numberedLine(i + 1, line);
+  });
 
-      function getNextLine() {
-        return remainingLinesIndex < remainingLines.length ?
-            remainingLines[remainingLinesIndex++] : undefined;
-      }
-    };
+  if (lastLine.length) {
+    lastLine = numberedLine(lines.length + 1, lastLine);
+  }
+  lines.push(lastLine);
 
-    // We need to remember the position of "remainingLines"
-    var lastGeneratedLine = 1, lastGeneratedColumn = 0;
+  return lines.join('\n');
+}
 
-    // The generate SourceNodes we need a code range.
-    // To extract it current and last mapping is used.
-    // Here we store the last mapping.
-    var lastMapping = null;
+function numberedLine(n, line) {
+  // GNU cat use six pad start number + tab. See http://lingrok.org/xref/coreutils/src/cat.c#57
+  // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart
+  var number = ('     ' + n).slice(-6) + '\t';
+  return number + line;
+}
 
-    aSourceMapConsumer.eachMapping(function (mapping) {
-      if (lastMapping !== null) {
-        // We add the code from "lastMapping" to "mapping":
-        // First check if there is a new line in between.
-        if (lastGeneratedLine < mapping.generatedLine) {
-          // Associate first line with "lastMapping"
-          addMappingWithCode(lastMapping, shiftNextLine());
-          lastGeneratedLine++;
-          lastGeneratedColumn = 0;
-          // The remaining code is added without mapping
-        } else {
-          // There is no new line in between.
-          // Associate the code between "lastGeneratedColumn" and
-          // "mapping.generatedColumn" with "lastMapping"
-          var nextLine = remainingLines[remainingLinesIndex] || '';
-          var code = nextLine.substr(0, mapping.generatedColumn -
-                                        lastGeneratedColumn);
-          remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn -
-                                              lastGeneratedColumn);
-          lastGeneratedColumn = mapping.generatedColumn;
-          addMappingWithCode(lastMapping, code);
-          // No more remaining code, continue
-          lastMapping = mapping;
-          return;
-        }
-      }
-      // We add the generated code until the first mapping
-      // to the SourceNode without any mapping.
-      // Each line is added as separate string.
-      while (lastGeneratedLine < mapping.generatedLine) {
-        node.add(shiftNextLine());
-        lastGeneratedLine++;
-      }
-      if (lastGeneratedColumn < mapping.generatedColumn) {
-        var nextLine = remainingLines[remainingLinesIndex] || '';
-        node.add(nextLine.substr(0, mapping.generatedColumn));
-        remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);
-        lastGeneratedColumn = mapping.generatedColumn;
-      }
-      lastMapping = mapping;
-    }, this);
-    // We have processed all mappings.
-    if (remainingLinesIndex < remainingLines.length) {
-      if (lastMapping) {
-        // Associate the remaining code in the current line with "lastMapping"
-        addMappingWithCode(lastMapping, shiftNextLine());
-      }
-      // and add the remaining lines without any mapping
-      node.add(remainingLines.splice(remainingLinesIndex).join(""));
-    }
 
-    // Copy sourcesContent into SourceNode
-    aSourceMapConsumer.sources.forEach(function (sourceFile) {
-      var content = aSourceMapConsumer.sourceContentFor(sourceFile);
-      if (content != null) {
-        if (aRelativePath != null) {
-          sourceFile = util.join(aRelativePath, sourceFile);
-        }
-        node.setSourceContent(sourceFile, content);
-      }
-    });
+/***/ }),
 
-    return node;
+/***/ 42051:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    function addMappingWithCode(mapping, code) {
-      if (mapping === null || mapping.source === undefined) {
-        node.add(code);
-      } else {
-        var source = aRelativePath
-          ? util.join(aRelativePath, mapping.source)
-          : mapping.source;
-        node.add(new SourceNode(mapping.originalLine,
-                                mapping.originalColumn,
-                                source,
-                                code,
-                                mapping.name));
-      }
-    }
-  };
+var os = __nccwpck_require__(22037);
+var common = __nccwpck_require__(53687);
 
-/**
- * Add a chunk of generated JS to this source node.
- *
- * @param aChunk A string snippet of generated JS code, another instance of
- *        SourceNode, or an array where each member is one of those things.
- */
-SourceNode.prototype.add = function SourceNode_add(aChunk) {
-  if (Array.isArray(aChunk)) {
-    aChunk.forEach(function (chunk) {
-      this.add(chunk);
-    }, this);
-  }
-  else if (aChunk[isSourceNode] || typeof aChunk === "string") {
-    if (aChunk) {
-      this.children.push(aChunk);
-    }
-  }
-  else {
-    throw new TypeError(
-      "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
-    );
-  }
-  return this;
-};
+common.register('cd', _cd, {});
 
-/**
- * Add a chunk of generated JS to the beginning of this source node.
- *
- * @param aChunk A string snippet of generated JS code, another instance of
- *        SourceNode, or an array where each member is one of those things.
- */
-SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {
-  if (Array.isArray(aChunk)) {
-    for (var i = aChunk.length-1; i >= 0; i--) {
-      this.prepend(aChunk[i]);
-    }
-  }
-  else if (aChunk[isSourceNode] || typeof aChunk === "string") {
-    this.children.unshift(aChunk);
-  }
-  else {
-    throw new TypeError(
-      "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
-    );
-  }
-  return this;
-};
+//@
+//@ ### cd([dir])
+//@
+//@ Changes to directory `dir` for the duration of the script. Changes to home
+//@ directory if no argument is supplied.
+function _cd(options, dir) {
+  if (!dir) dir = os.homedir();
 
-/**
- * Walk over the tree of JS snippets in this node and its children. The
- * walking function is called once for each snippet of JS and is passed that
- * snippet and the its original associated source's line/column location.
- *
- * @param aFn The traversal function.
- */
-SourceNode.prototype.walk = function SourceNode_walk(aFn) {
-  var chunk;
-  for (var i = 0, len = this.children.length; i < len; i++) {
-    chunk = this.children[i];
-    if (chunk[isSourceNode]) {
-      chunk.walk(aFn);
-    }
-    else {
-      if (chunk !== '') {
-        aFn(chunk, { source: this.source,
-                     line: this.line,
-                     column: this.column,
-                     name: this.name });
-      }
+  if (dir === '-') {
+    if (!process.env.OLDPWD) {
+      common.error('could not find previous directory');
+    } else {
+      dir = process.env.OLDPWD;
     }
   }
-};
 
-/**
- * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between
- * each of `this.children`.
- *
- * @param aSep The separator.
- */
-SourceNode.prototype.join = function SourceNode_join(aSep) {
-  var newChildren;
-  var i;
-  var len = this.children.length;
-  if (len > 0) {
-    newChildren = [];
-    for (i = 0; i < len-1; i++) {
-      newChildren.push(this.children[i]);
-      newChildren.push(aSep);
+  try {
+    var curDir = process.cwd();
+    process.chdir(dir);
+    process.env.OLDPWD = curDir;
+  } catch (e) {
+    // something went wrong, let's figure out the error
+    var err;
+    try {
+      common.statFollowLinks(dir); // if this succeeds, it must be some sort of file
+      err = 'not a directory: ' + dir;
+    } catch (e2) {
+      err = 'no such file or directory: ' + dir;
     }
-    newChildren.push(this.children[i]);
-    this.children = newChildren;
+    if (err) common.error(err);
   }
-  return this;
-};
+  return '';
+}
+module.exports = _cd;
 
-/**
- * Call String.prototype.replace on the very right-most source snippet. Useful
- * for trimming whitespace from the end of a source node, etc.
- *
- * @param aPattern The pattern to replace.
- * @param aReplacement The thing to replace the pattern with.
- */
-SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {
-  var lastChild = this.children[this.children.length - 1];
-  if (lastChild[isSourceNode]) {
-    lastChild.replaceRight(aPattern, aReplacement);
-  }
-  else if (typeof lastChild === 'string') {
-    this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
-  }
-  else {
-    this.children.push(''.replace(aPattern, aReplacement));
-  }
-  return this;
-};
 
-/**
- * Set the source content for a source file. This will be added to the SourceMapGenerator
- * in the sourcesContent field.
- *
- * @param aSourceFile The filename of the source file
- * @param aSourceContent The content of the source file
- */
-SourceNode.prototype.setSourceContent =
-  function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
-    this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
-  };
+/***/ }),
 
-/**
- * Walk over the tree of SourceNodes. The walking function is called for each
- * source file content and is passed the filename and source content.
- *
- * @param aFn The traversal function.
- */
-SourceNode.prototype.walkSourceContents =
-  function SourceNode_walkSourceContents(aFn) {
-    for (var i = 0, len = this.children.length; i < len; i++) {
-      if (this.children[i][isSourceNode]) {
-        this.children[i].walkSourceContents(aFn);
-      }
-    }
+/***/ 24975:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    var sources = Object.keys(this.sourceContents);
-    for (var i = 0, len = sources.length; i < len; i++) {
-      aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
-    }
-  };
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
+var path = __nccwpck_require__(71017);
 
-/**
- * Return the string representation of this source node. Walks over the tree
- * and concatenates all the various snippets together to one string.
- */
-SourceNode.prototype.toString = function SourceNode_toString() {
-  var str = "";
-  this.walk(function (chunk) {
-    str += chunk;
-  });
-  return str;
-};
+var PERMS = (function (base) {
+  return {
+    OTHER_EXEC: base.EXEC,
+    OTHER_WRITE: base.WRITE,
+    OTHER_READ: base.READ,
 
-/**
- * Returns the string representation of this source node along with a source
- * map.
- */
-SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {
-  var generated = {
-    code: "",
-    line: 1,
-    column: 0
-  };
-  var map = new SourceMapGenerator(aArgs);
-  var sourceMappingActive = false;
-  var lastOriginalSource = null;
-  var lastOriginalLine = null;
-  var lastOriginalColumn = null;
-  var lastOriginalName = null;
-  this.walk(function (chunk, original) {
-    generated.code += chunk;
-    if (original.source !== null
-        && original.line !== null
-        && original.column !== null) {
-      if(lastOriginalSource !== original.source
-         || lastOriginalLine !== original.line
-         || lastOriginalColumn !== original.column
-         || lastOriginalName !== original.name) {
-        map.addMapping({
-          source: original.source,
-          original: {
-            line: original.line,
-            column: original.column
-          },
-          generated: {
-            line: generated.line,
-            column: generated.column
-          },
-          name: original.name
-        });
-      }
-      lastOriginalSource = original.source;
-      lastOriginalLine = original.line;
-      lastOriginalColumn = original.column;
-      lastOriginalName = original.name;
-      sourceMappingActive = true;
-    } else if (sourceMappingActive) {
-      map.addMapping({
-        generated: {
-          line: generated.line,
-          column: generated.column
-        }
-      });
-      lastOriginalSource = null;
-      sourceMappingActive = false;
-    }
-    for (var idx = 0, length = chunk.length; idx < length; idx++) {
-      if (chunk.charCodeAt(idx) === NEWLINE_CODE) {
-        generated.line++;
-        generated.column = 0;
-        // Mappings end at eol
-        if (idx + 1 === length) {
-          lastOriginalSource = null;
-          sourceMappingActive = false;
-        } else if (sourceMappingActive) {
-          map.addMapping({
-            source: original.source,
-            original: {
-              line: original.line,
-              column: original.column
-            },
-            generated: {
-              line: generated.line,
-              column: generated.column
-            },
-            name: original.name
-          });
-        }
-      } else {
-        generated.column++;
-      }
-    }
-  });
-  this.walkSourceContents(function (sourceFile, sourceContent) {
-    map.setSourceContent(sourceFile, sourceContent);
-  });
+    GROUP_EXEC: base.EXEC << 3,
+    GROUP_WRITE: base.WRITE << 3,
+    GROUP_READ: base.READ << 3,
 
-  return { code: generated.code, map: map };
-};
+    OWNER_EXEC: base.EXEC << 6,
+    OWNER_WRITE: base.WRITE << 6,
+    OWNER_READ: base.READ << 6,
 
-__webpack_unused_export__ = SourceNode;
+    // Literal octal numbers are apparently not allowed in "strict" javascript.
+    STICKY: parseInt('01000', 8),
+    SETGID: parseInt('02000', 8),
+    SETUID: parseInt('04000', 8),
 
+    TYPE_MASK: parseInt('0770000', 8),
+  };
+}({
+  EXEC: 1,
+  WRITE: 2,
+  READ: 4,
+}));
 
-/***/ }),
+common.register('chmod', _chmod, {
+});
 
-/***/ 12344:
-/***/ ((__unused_webpack_module, exports) => {
+//@
+//@ ### chmod([options,] octal_mode || octal_string, file)
+//@ ### chmod([options,] symbolic_mode, file)
+//@
+//@ Available options:
+//@
+//@ + `-v`: output a diagnostic for every file processed//@
+//@ + `-c`: like verbose, but report only when a change is made//@
+//@ + `-R`: change files and directories recursively//@
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ chmod(755, '/Users/brandon');
+//@ chmod('755', '/Users/brandon'); // same as above
+//@ chmod('u+x', '/Users/brandon');
+//@ chmod('-R', 'a-w', '/Users/brandon');
+//@ ```
+//@
+//@ Alters the permissions of a file or directory by either specifying the
+//@ absolute permissions in octal form or expressing the changes in symbols.
+//@ This command tries to mimic the POSIX behavior as much as possible.
+//@ Notable exceptions:
+//@
+//@ + In symbolic modes, `a-r` and `-r` are identical.  No consideration is
+//@   given to the `umask`.
+//@ + There is no "quiet" option, since default behavior is to run silent.
+function _chmod(options, mode, filePattern) {
+  if (!filePattern) {
+    if (options.length > 0 && options.charAt(0) === '-') {
+      // Special case where the specified file permissions started with - to subtract perms, which
+      // get picked up by the option parser as command flags.
+      // If we are down by one argument and options starts with -, shift everything over.
+      [].unshift.call(arguments, '');
+    } else {
+      common.error('You must specify a file.');
+    }
+  }
 
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
+  options = common.parseOptions(options, {
+    'R': 'recursive',
+    'c': 'changes',
+    'v': 'verbose',
+  });
 
-/**
- * This is a helper function for getting values from parameter/options
- * objects.
- *
- * @param args The object we are extracting values from
- * @param name The name of the property we are getting.
- * @param defaultValue An optional value to return if the property is missing
- * from the object. If this is not specified and the property is missing, an
- * error will be thrown.
- */
-function getArg(aArgs, aName, aDefaultValue) {
-  if (aName in aArgs) {
-    return aArgs[aName];
-  } else if (arguments.length === 3) {
-    return aDefaultValue;
-  } else {
-    throw new Error('"' + aName + '" is a required argument.');
-  }
-}
-exports.getArg = getArg;
+  filePattern = [].slice.call(arguments, 2);
 
-var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
-var dataUrlRegexp = /^data:.+\,.+$/;
+  var files;
 
-function urlParse(aUrl) {
-  var match = aUrl.match(urlRegexp);
-  if (!match) {
-    return null;
-  }
-  return {
-    scheme: match[1],
-    auth: match[2],
-    host: match[3],
-    port: match[4],
-    path: match[5]
-  };
-}
-exports.urlParse = urlParse;
+  // TODO: replace this with a call to common.expand()
+  if (options.recursive) {
+    files = [];
+    filePattern.forEach(function addFile(expandedFile) {
+      var stat = common.statNoFollowLinks(expandedFile);
 
-function urlGenerate(aParsedUrl) {
-  var url = '';
-  if (aParsedUrl.scheme) {
-    url += aParsedUrl.scheme + ':';
-  }
-  url += '//';
-  if (aParsedUrl.auth) {
-    url += aParsedUrl.auth + '@';
-  }
-  if (aParsedUrl.host) {
-    url += aParsedUrl.host;
-  }
-  if (aParsedUrl.port) {
-    url += ":" + aParsedUrl.port
-  }
-  if (aParsedUrl.path) {
-    url += aParsedUrl.path;
+      if (!stat.isSymbolicLink()) {
+        files.push(expandedFile);
+
+        if (stat.isDirectory()) {  // intentionally does not follow symlinks.
+          fs.readdirSync(expandedFile).forEach(function (child) {
+            addFile(expandedFile + '/' + child);
+          });
+        }
+      }
+    });
+  } else {
+    files = filePattern;
   }
-  return url;
-}
-exports.urlGenerate = urlGenerate;
 
-/**
- * Normalizes a path, or the path portion of a URL:
- *
- * - Replaces consecutive slashes with one slash.
- * - Removes unnecessary '.' parts.
- * - Removes unnecessary '/..' parts.
- *
- * Based on code in the Node.js 'path' core module.
- *
- * @param aPath The path or url to normalize.
- */
-function normalize(aPath) {
-  var path = aPath;
-  var url = urlParse(aPath);
-  if (url) {
-    if (!url.path) {
-      return aPath;
+  files.forEach(function innerChmod(file) {
+    file = path.resolve(file);
+    if (!fs.existsSync(file)) {
+      common.error('File not found: ' + file);
     }
-    path = url.path;
-  }
-  var isAbsolute = exports.isAbsolute(path);
 
-  var parts = path.split(/\/+/);
-  for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
-    part = parts[i];
-    if (part === '.') {
-      parts.splice(i, 1);
-    } else if (part === '..') {
-      up++;
-    } else if (up > 0) {
-      if (part === '') {
-        // The first part is blank if the path is absolute. Trying to go
-        // above the root is a no-op. Therefore we can remove all '..' parts
-        // directly after the root.
-        parts.splice(i + 1, up);
-        up = 0;
-      } else {
-        parts.splice(i, 2);
-        up--;
-      }
+    // When recursing, don't follow symlinks.
+    if (options.recursive && common.statNoFollowLinks(file).isSymbolicLink()) {
+      return;
     }
-  }
-  path = parts.join('/');
 
-  if (path === '') {
-    path = isAbsolute ? '/' : '.';
-  }
+    var stat = common.statFollowLinks(file);
+    var isDir = stat.isDirectory();
+    var perms = stat.mode;
+    var type = perms & PERMS.TYPE_MASK;
 
-  if (url) {
-    url.path = path;
-    return urlGenerate(url);
-  }
-  return path;
-}
-exports.normalize = normalize;
+    var newPerms = perms;
 
-/**
- * Joins two paths/URLs.
- *
- * @param aRoot The root path or URL.
- * @param aPath The path or URL to be joined with the root.
- *
- * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a
- *   scheme-relative URL: Then the scheme of aRoot, if any, is prepended
- *   first.
- * - Otherwise aPath is a path. If aRoot is a URL, then its path portion
- *   is updated with the result and aRoot is returned. Otherwise the result
- *   is returned.
- *   - If aPath is absolute, the result is aPath.
- *   - Otherwise the two paths are joined with a slash.
- * - Joining for example 'http://' and 'www.example.com' is also supported.
- */
-function join(aRoot, aPath) {
-  if (aRoot === "") {
-    aRoot = ".";
-  }
-  if (aPath === "") {
-    aPath = ".";
-  }
-  var aPathUrl = urlParse(aPath);
-  var aRootUrl = urlParse(aRoot);
-  if (aRootUrl) {
-    aRoot = aRootUrl.path || '/';
-  }
+    if (isNaN(parseInt(mode, 8))) {
+      // parse options
+      mode.split(',').forEach(function (symbolicMode) {
+        var pattern = /([ugoa]*)([=\+-])([rwxXst]*)/i;
+        var matches = pattern.exec(symbolicMode);
 
-  // `join(foo, '//www.example.org')`
-  if (aPathUrl && !aPathUrl.scheme) {
-    if (aRootUrl) {
-      aPathUrl.scheme = aRootUrl.scheme;
-    }
-    return urlGenerate(aPathUrl);
-  }
+        if (matches) {
+          var applyTo = matches[1];
+          var operator = matches[2];
+          var change = matches[3];
 
-  if (aPathUrl || aPath.match(dataUrlRegexp)) {
-    return aPath;
-  }
+          var changeOwner = applyTo.indexOf('u') !== -1 || applyTo === 'a' || applyTo === '';
+          var changeGroup = applyTo.indexOf('g') !== -1 || applyTo === 'a' || applyTo === '';
+          var changeOther = applyTo.indexOf('o') !== -1 || applyTo === 'a' || applyTo === '';
 
-  // `join('http://', 'www.example.com')`
-  if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {
-    aRootUrl.host = aPath;
-    return urlGenerate(aRootUrl);
-  }
+          var changeRead = change.indexOf('r') !== -1;
+          var changeWrite = change.indexOf('w') !== -1;
+          var changeExec = change.indexOf('x') !== -1;
+          var changeExecDir = change.indexOf('X') !== -1;
+          var changeSticky = change.indexOf('t') !== -1;
+          var changeSetuid = change.indexOf('s') !== -1;
 
-  var joined = aPath.charAt(0) === '/'
-    ? aPath
-    : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath);
+          if (changeExecDir && isDir) {
+            changeExec = true;
+          }
 
-  if (aRootUrl) {
-    aRootUrl.path = joined;
-    return urlGenerate(aRootUrl);
-  }
-  return joined;
-}
-exports.join = join;
+          var mask = 0;
+          if (changeOwner) {
+            mask |= (changeRead ? PERMS.OWNER_READ : 0) + (changeWrite ? PERMS.OWNER_WRITE : 0) + (changeExec ? PERMS.OWNER_EXEC : 0) + (changeSetuid ? PERMS.SETUID : 0);
+          }
+          if (changeGroup) {
+            mask |= (changeRead ? PERMS.GROUP_READ : 0) + (changeWrite ? PERMS.GROUP_WRITE : 0) + (changeExec ? PERMS.GROUP_EXEC : 0) + (changeSetuid ? PERMS.SETGID : 0);
+          }
+          if (changeOther) {
+            mask |= (changeRead ? PERMS.OTHER_READ : 0) + (changeWrite ? PERMS.OTHER_WRITE : 0) + (changeExec ? PERMS.OTHER_EXEC : 0);
+          }
 
-exports.isAbsolute = function (aPath) {
-  return aPath.charAt(0) === '/' || urlRegexp.test(aPath);
-};
+          // Sticky bit is special - it's not tied to user, group or other.
+          if (changeSticky) {
+            mask |= PERMS.STICKY;
+          }
 
-/**
- * Make a path relative to a URL or another path.
- *
- * @param aRoot The root path or URL.
- * @param aPath The path or URL to be made relative to aRoot.
- */
-function relative(aRoot, aPath) {
-  if (aRoot === "") {
-    aRoot = ".";
-  }
+          switch (operator) {
+            case '+':
+              newPerms |= mask;
+              break;
 
-  aRoot = aRoot.replace(/\/$/, '');
+            case '-':
+              newPerms &= ~mask;
+              break;
 
-  // It is possible for the path to be above the root. In this case, simply
-  // checking whether the root is a prefix of the path won't work. Instead, we
-  // need to remove components from the root one by one, until either we find
-  // a prefix that fits, or we run out of components to remove.
-  var level = 0;
-  while (aPath.indexOf(aRoot + '/') !== 0) {
-    var index = aRoot.lastIndexOf("/");
-    if (index < 0) {
-      return aPath;
-    }
+            case '=':
+              newPerms = type + mask;
 
-    // If the only part of the root that is left is the scheme (i.e. http://,
-    // file:///, etc.), one or more slashes (/), or simply nothing at all, we
-    // have exhausted all components, so the path is not relative to the root.
-    aRoot = aRoot.slice(0, index);
-    if (aRoot.match(/^([^\/]+:\/)?\/*$/)) {
-      return aPath;
-    }
+              // According to POSIX, when using = to explicitly set the
+              // permissions, setuid and setgid can never be cleared.
+              if (common.statFollowLinks(file).isDirectory()) {
+                newPerms |= (PERMS.SETUID + PERMS.SETGID) & perms;
+              }
+              break;
+            default:
+              common.error('Could not recognize operator: `' + operator + '`');
+          }
 
-    ++level;
-  }
+          if (options.verbose) {
+            console.log(file + ' -> ' + newPerms.toString(8));
+          }
 
-  // Make sure we add a "../" for each component we removed from the root.
-  return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
-}
-exports.relative = relative;
+          if (perms !== newPerms) {
+            if (!options.verbose && options.changes) {
+              console.log(file + ' -> ' + newPerms.toString(8));
+            }
+            fs.chmodSync(file, newPerms);
+            perms = newPerms; // for the next round of changes!
+          }
+        } else {
+          common.error('Invalid symbolic mode change: ' + symbolicMode);
+        }
+      });
+    } else {
+      // they gave us a full number
+      newPerms = type + parseInt(mode, 8);
 
-var supportsNullProto = (function () {
-  var obj = Object.create(null);
-  return !('__proto__' in obj);
-}());
+      // POSIX rules are that setuid and setgid can only be added using numeric
+      // form, but not cleared.
+      if (common.statFollowLinks(file).isDirectory()) {
+        newPerms |= (PERMS.SETUID + PERMS.SETGID) & perms;
+      }
 
-function identity (s) {
-  return s;
+      fs.chmodSync(file, newPerms);
+    }
+  });
+  return '';
 }
+module.exports = _chmod;
 
-/**
- * Because behavior goes wacky when you set `__proto__` on objects, we
- * have to prefix all the strings in our set with an arbitrary character.
- *
- * See https://github.com/mozilla/source-map/pull/31 and
- * https://github.com/mozilla/source-map/issues/30
- *
- * @param String aStr
- */
-function toSetString(aStr) {
-  if (isProtoString(aStr)) {
-    return '$' + aStr;
-  }
-
-  return aStr;
-}
-exports.toSetString = supportsNullProto ? identity : toSetString;
 
-function fromSetString(aStr) {
-  if (isProtoString(aStr)) {
-    return aStr.slice(1);
-  }
+/***/ }),
 
-  return aStr;
-}
-exports.fromSetString = supportsNullProto ? identity : fromSetString;
+/***/ 53687:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-function isProtoString(s) {
-  if (!s) {
-    return false;
-  }
+"use strict";
+// Ignore warning about 'new String()'
+/* eslint no-new-wrappers: 0 */
 
-  var length = s.length;
 
-  if (length < 9 /* "__proto__".length */) {
-    return false;
-  }
+var os = __nccwpck_require__(22037);
+var fs = __nccwpck_require__(57147);
+var glob = __nccwpck_require__(91957);
+var shell = __nccwpck_require__(33516);
 
-  if (s.charCodeAt(length - 1) !== 95  /* '_' */ ||
-      s.charCodeAt(length - 2) !== 95  /* '_' */ ||
-      s.charCodeAt(length - 3) !== 111 /* 'o' */ ||
-      s.charCodeAt(length - 4) !== 116 /* 't' */ ||
-      s.charCodeAt(length - 5) !== 111 /* 'o' */ ||
-      s.charCodeAt(length - 6) !== 114 /* 'r' */ ||
-      s.charCodeAt(length - 7) !== 112 /* 'p' */ ||
-      s.charCodeAt(length - 8) !== 95  /* '_' */ ||
-      s.charCodeAt(length - 9) !== 95  /* '_' */) {
-    return false;
-  }
+var shellMethods = Object.create(shell);
 
-  for (var i = length - 10; i >= 0; i--) {
-    if (s.charCodeAt(i) !== 36 /* '$' */) {
-      return false;
-    }
-  }
+exports.extend = Object.assign;
 
-  return true;
-}
+// Check if we're running under electron
+var isElectron = Boolean(process.versions.electron);
 
-/**
- * Comparator between two mappings where the original positions are compared.
- *
- * Optionally pass in `true` as `onlyCompareGenerated` to consider two
- * mappings with the same original source/line/column, but different generated
- * line and column the same. Useful when searching for a mapping with a
- * stubbed out mapping.
- */
-function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {
-  var cmp = strcmp(mappingA.source, mappingB.source);
-  if (cmp !== 0) {
-    return cmp;
-  }
+// Module globals (assume no execPath by default)
+var DEFAULT_CONFIG = {
+  fatal: false,
+  globOptions: {},
+  maxdepth: 255,
+  noglob: false,
+  silent: false,
+  verbose: false,
+  execPath: null,
+  bufLength: 64 * 1024, // 64KB
+};
 
-  cmp = mappingA.originalLine - mappingB.originalLine;
-  if (cmp !== 0) {
-    return cmp;
-  }
+var config = {
+  reset: function () {
+    Object.assign(this, DEFAULT_CONFIG);
+    if (!isElectron) {
+      this.execPath = process.execPath;
+    }
+  },
+  resetForTesting: function () {
+    this.reset();
+    this.silent = true;
+  },
+};
 
-  cmp = mappingA.originalColumn - mappingB.originalColumn;
-  if (cmp !== 0 || onlyCompareOriginal) {
-    return cmp;
-  }
+config.reset();
+exports.config = config;
 
-  cmp = mappingA.generatedColumn - mappingB.generatedColumn;
-  if (cmp !== 0) {
-    return cmp;
-  }
+// Note: commands should generally consider these as read-only values.
+var state = {
+  error: null,
+  errorCode: 0,
+  currentCmd: 'shell.js',
+};
+exports.state = state;
 
-  cmp = mappingA.generatedLine - mappingB.generatedLine;
-  if (cmp !== 0) {
-    return cmp;
-  }
+delete process.env.OLDPWD; // initially, there's no previous directory
 
-  return strcmp(mappingA.name, mappingB.name);
+// Reliably test if something is any sort of javascript object
+function isObject(a) {
+  return typeof a === 'object' && a !== null;
 }
-exports.compareByOriginalPositions = compareByOriginalPositions;
+exports.isObject = isObject;
 
-/**
- * Comparator between two mappings with deflated source and name indices where
- * the generated positions are compared.
- *
- * Optionally pass in `true` as `onlyCompareGenerated` to consider two
- * mappings with the same generated line and column, but different
- * source/name/original line and column the same. Useful when searching for a
- * mapping with a stubbed out mapping.
- */
-function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
-  var cmp = mappingA.generatedLine - mappingB.generatedLine;
-  if (cmp !== 0) {
-    return cmp;
+function log() {
+  /* istanbul ignore next */
+  if (!config.silent) {
+    console.error.apply(console, arguments);
   }
+}
+exports.log = log;
 
-  cmp = mappingA.generatedColumn - mappingB.generatedColumn;
-  if (cmp !== 0 || onlyCompareGenerated) {
-    return cmp;
+// Converts strings to be equivalent across all platforms. Primarily responsible
+// for making sure we use '/' instead of '\' as path separators, but this may be
+// expanded in the future if necessary
+function convertErrorOutput(msg) {
+  if (typeof msg !== 'string') {
+    throw new TypeError('input must be a string');
   }
+  return msg.replace(/\\/g, '/');
+}
+exports.convertErrorOutput = convertErrorOutput;
 
-  cmp = strcmp(mappingA.source, mappingB.source);
-  if (cmp !== 0) {
-    return cmp;
-  }
+// Shows error message. Throws if config.fatal is true
+function error(msg, _code, options) {
+  // Validate input
+  if (typeof msg !== 'string') throw new Error('msg must be a string');
 
-  cmp = mappingA.originalLine - mappingB.originalLine;
-  if (cmp !== 0) {
-    return cmp;
-  }
+  var DEFAULT_OPTIONS = {
+    continue: false,
+    code: 1,
+    prefix: state.currentCmd + ': ',
+    silent: false,
+  };
 
-  cmp = mappingA.originalColumn - mappingB.originalColumn;
-  if (cmp !== 0) {
-    return cmp;
+  if (typeof _code === 'number' && isObject(options)) {
+    options.code = _code;
+  } else if (isObject(_code)) { // no 'code'
+    options = _code;
+  } else if (typeof _code === 'number') { // no 'options'
+    options = { code: _code };
+  } else if (typeof _code !== 'number') { // only 'msg'
+    options = {};
   }
+  options = Object.assign({}, DEFAULT_OPTIONS, options);
 
-  return strcmp(mappingA.name, mappingB.name);
-}
-exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
+  if (!state.errorCode) state.errorCode = options.code;
 
-function strcmp(aStr1, aStr2) {
-  if (aStr1 === aStr2) {
-    return 0;
-  }
+  var logEntry = convertErrorOutput(options.prefix + msg);
+  state.error = state.error ? state.error + '\n' : '';
+  state.error += logEntry;
 
-  if (aStr1 === null) {
-    return 1; // aStr2 !== null
-  }
+  // Throw an error, or log the entry
+  if (config.fatal) throw new Error(logEntry);
+  if (msg.length > 0 && !options.silent) log(logEntry);
 
-  if (aStr2 === null) {
-    return -1; // aStr1 !== null
+  if (!options.continue) {
+    throw {
+      msg: 'earlyExit',
+      retValue: (new ShellString('', state.error, state.errorCode)),
+    };
   }
+}
+exports.error = error;
 
-  if (aStr1 > aStr2) {
-    return 1;
+//@
+//@ ### ShellString(str)
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ var foo = ShellString('hello world');
+//@ ```
+//@
+//@ Turns a regular string into a string-like object similar to what each
+//@ command returns. This has special methods, like `.to()` and `.toEnd()`.
+function ShellString(stdout, stderr, code) {
+  var that;
+  if (stdout instanceof Array) {
+    that = stdout;
+    that.stdout = stdout.join('\n');
+    if (stdout.length > 0) that.stdout += '\n';
+  } else {
+    that = new String(stdout);
+    that.stdout = stdout;
   }
-
-  return -1;
+  that.stderr = stderr;
+  that.code = code;
+  // A list of all commands that can appear on the right-hand side of a pipe
+  // (populated by calls to common.wrap())
+  pipeMethods.forEach(function (cmd) {
+    that[cmd] = shellMethods[cmd].bind(that);
+  });
+  return that;
 }
 
-/**
- * Comparator between two mappings with inflated source and name strings where
- * the generated positions are compared.
- */
-function compareByGeneratedPositionsInflated(mappingA, mappingB) {
-  var cmp = mappingA.generatedLine - mappingB.generatedLine;
-  if (cmp !== 0) {
-    return cmp;
-  }
+exports.ShellString = ShellString;
 
-  cmp = mappingA.generatedColumn - mappingB.generatedColumn;
-  if (cmp !== 0) {
-    return cmp;
+// Returns {'alice': true, 'bob': false} when passed a string and dictionary as follows:
+//   parseOptions('-a', {'a':'alice', 'b':'bob'});
+// Returns {'reference': 'string-value', 'bob': false} when passed two dictionaries of the form:
+//   parseOptions({'-r': 'string-value'}, {'r':'reference', 'b':'bob'});
+// Throws an error when passed a string that does not start with '-':
+//   parseOptions('a', {'a':'alice'}); // throws
+function parseOptions(opt, map, errorOptions) {
+  // Validate input
+  if (typeof opt !== 'string' && !isObject(opt)) {
+    throw new Error('options must be strings or key-value pairs');
+  } else if (!isObject(map)) {
+    throw new Error('parseOptions() internal error: map must be an object');
+  } else if (errorOptions && !isObject(errorOptions)) {
+    throw new Error('parseOptions() internal error: errorOptions must be object');
   }
 
-  cmp = strcmp(mappingA.source, mappingB.source);
-  if (cmp !== 0) {
-    return cmp;
+  if (opt === '--') {
+    // This means there are no options.
+    return {};
   }
 
-  cmp = mappingA.originalLine - mappingB.originalLine;
-  if (cmp !== 0) {
-    return cmp;
-  }
+  // All options are false by default
+  var options = {};
+  Object.keys(map).forEach(function (letter) {
+    var optName = map[letter];
+    if (optName[0] !== '!') {
+      options[optName] = false;
+    }
+  });
 
-  cmp = mappingA.originalColumn - mappingB.originalColumn;
-  if (cmp !== 0) {
-    return cmp;
-  }
+  if (opt === '') return options; // defaults
 
-  return strcmp(mappingA.name, mappingB.name);
+  if (typeof opt === 'string') {
+    if (opt[0] !== '-') {
+      throw new Error("Options string must start with a '-'");
+    }
+
+    // e.g. chars = ['R', 'f']
+    var chars = opt.slice(1).split('');
+
+    chars.forEach(function (c) {
+      if (c in map) {
+        var optionName = map[c];
+        if (optionName[0] === '!') {
+          options[optionName.slice(1)] = false;
+        } else {
+          options[optionName] = true;
+        }
+      } else {
+        error('option not recognized: ' + c, errorOptions || {});
+      }
+    });
+  } else { // opt is an Object
+    Object.keys(opt).forEach(function (key) {
+      // key is a string of the form '-r', '-d', etc.
+      var c = key[1];
+      if (c in map) {
+        var optionName = map[c];
+        options[optionName] = opt[key]; // assign the given value
+      } else {
+        error('option not recognized: ' + c, errorOptions || {});
+      }
+    });
+  }
+  return options;
 }
-exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
+exports.parseOptions = parseOptions;
 
-/**
- * Strip any JSON XSSI avoidance prefix from the string (as documented
- * in the source maps specification), and then parse the string as
- * JSON.
- */
-function parseSourceMapInput(str) {
-  return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ''));
+// Expands wildcards with matching (ie. existing) file names.
+// For example:
+//   expand(['file*.js']) = ['file1.js', 'file2.js', ...]
+//   (if the files 'file1.js', 'file2.js', etc, exist in the current dir)
+function expand(list) {
+  if (!Array.isArray(list)) {
+    throw new TypeError('must be an array');
+  }
+  var expanded = [];
+  list.forEach(function (listEl) {
+    // Don't expand non-strings
+    if (typeof listEl !== 'string') {
+      expanded.push(listEl);
+    } else {
+      var ret;
+      try {
+        ret = glob.sync(listEl, config.globOptions);
+        // if nothing matched, interpret the string literally
+        ret = ret.length > 0 ? ret : [listEl];
+      } catch (e) {
+        // if glob fails, interpret the string literally
+        ret = [listEl];
+      }
+      expanded = expanded.concat(ret);
+    }
+  });
+  return expanded;
 }
-exports.parseSourceMapInput = parseSourceMapInput;
+exports.expand = expand;
 
-/**
- * Compute the URL of a source given the the source root, the source's
- * URL, and the source map's URL.
- */
-function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
-  sourceURL = sourceURL || '';
+// Normalizes Buffer creation, using Buffer.alloc if possible.
+// Also provides a good default buffer length for most use cases.
+var buffer = typeof Buffer.alloc === 'function' ?
+  function (len) {
+    return Buffer.alloc(len || config.bufLength);
+  } :
+  function (len) {
+    return new Buffer(len || config.bufLength);
+  };
+exports.buffer = buffer;
 
-  if (sourceRoot) {
-    // This follows what Chrome does.
-    if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') {
-      sourceRoot += '/';
+// Normalizes _unlinkSync() across platforms to match Unix behavior, i.e.
+// file can be unlinked even if it's read-only, see https://github.com/joyent/node/issues/3006
+function unlinkSync(file) {
+  try {
+    fs.unlinkSync(file);
+  } catch (e) {
+    // Try to override file permission
+    /* istanbul ignore next */
+    if (e.code === 'EPERM') {
+      fs.chmodSync(file, '0666');
+      fs.unlinkSync(file);
+    } else {
+      throw e;
     }
-    // The spec says:
-    //   Line 4: An optional source root, useful for relocating source
-    //   files on a server or removing repeated values in the
-    //   “sources” entry.  This value is prepended to the individual
-    //   entries in the “source” field.
-    sourceURL = sourceRoot + sourceURL;
   }
+}
+exports.unlinkSync = unlinkSync;
 
-  // Historically, SourceMapConsumer did not take the sourceMapURL as
-  // a parameter.  This mode is still somewhat supported, which is why
-  // this code block is conditional.  However, it's preferable to pass
-  // the source map URL to SourceMapConsumer, so that this function
-  // can implement the source URL resolution algorithm as outlined in
-  // the spec.  This block is basically the equivalent of:
-  //    new URL(sourceURL, sourceMapURL).toString()
-  // ... except it avoids using URL, which wasn't available in the
-  // older releases of node still supported by this library.
-  //
-  // The spec says:
-  //   If the sources are not absolute URLs after prepending of the
-  //   “sourceRoot”, the sources are resolved relative to the
-  //   SourceMap (like resolving script src in a html document).
-  if (sourceMapURL) {
-    var parsed = urlParse(sourceMapURL);
-    if (!parsed) {
-      throw new Error("sourceMapURL could not be parsed");
+// wrappers around common.statFollowLinks and common.statNoFollowLinks that clarify intent
+// and improve readability
+function statFollowLinks() {
+  return fs.statSync.apply(fs, arguments);
+}
+exports.statFollowLinks = statFollowLinks;
+
+function statNoFollowLinks() {
+  return fs.lstatSync.apply(fs, arguments);
+}
+exports.statNoFollowLinks = statNoFollowLinks;
+
+// e.g. 'shelljs_a5f185d0443ca...'
+function randomFileName() {
+  function randomHash(count) {
+    if (count === 1) {
+      return parseInt(16 * Math.random(), 10).toString(16);
     }
-    if (parsed.path) {
-      // Strip the last path component, but keep the "/".
-      var index = parsed.path.lastIndexOf('/');
-      if (index >= 0) {
-        parsed.path = parsed.path.substring(0, index + 1);
-      }
+    var hash = '';
+    for (var i = 0; i < count; i++) {
+      hash += randomHash(1);
     }
-    sourceURL = join(urlGenerate(parsed), sourceURL);
+    return hash;
   }
 
-  return normalize(sourceURL);
+  return 'shelljs_' + randomHash(20);
 }
-exports.computeSourceURL = computeSourceURL;
+exports.randomFileName = randomFileName;
 
+// Common wrapper for all Unix-like commands that performs glob expansion,
+// command-logging, and other nice things
+function wrap(cmd, fn, options) {
+  options = options || {};
+  return function () {
+    var retValue = null;
 
-/***/ }),
+    state.currentCmd = cmd;
+    state.error = null;
+    state.errorCode = 0;
 
-/***/ 56594:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+    try {
+      var args = [].slice.call(arguments, 0);
 
-/*
- * Copyright 2009-2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE.txt or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-/* unused reexport */ __nccwpck_require__(69425)/* .SourceMapGenerator */ .h;
-exports.SourceMapConsumer = __nccwpck_require__(75155).SourceMapConsumer;
-/* unused reexport */ __nccwpck_require__(92616);
+      // Log the command to stderr, if appropriate
+      if (config.verbose) {
+        console.error.apply(console, [cmd].concat(args));
+      }
 
+      // If this is coming from a pipe, let's set the pipedValue (otherwise, set
+      // it to the empty string)
+      state.pipedValue = (this && typeof this.stdout === 'string') ? this.stdout : '';
 
-/***/ }),
+      if (options.unix === false) { // this branch is for exec()
+        retValue = fn.apply(this, args);
+      } else { // and this branch is for everything else
+        if (isObject(args[0]) && args[0].constructor.name === 'Object') {
+          // a no-op, allowing the syntax `touch({'-r': file}, ...)`
+        } else if (args.length === 0 || typeof args[0] !== 'string' || args[0].length <= 1 || args[0][0] !== '-') {
+          args.unshift(''); // only add dummy option if '-option' not already present
+        }
 
-/***/ 42577:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+        // flatten out arrays that are arguments, to make the syntax:
+        //    `cp([file1, file2, file3], dest);`
+        // equivalent to:
+        //    `cp(file1, file2, file3, dest);`
+        args = args.reduce(function (accum, cur) {
+          if (Array.isArray(cur)) {
+            return accum.concat(cur);
+          }
+          accum.push(cur);
+          return accum;
+        }, []);
 
-"use strict";
-
-const stripAnsi = __nccwpck_require__(45591);
-const isFullwidthCodePoint = __nccwpck_require__(64882);
-const emojiRegex = __nccwpck_require__(18212);
-
-const stringWidth = string => {
-	if (typeof string !== 'string' || string.length === 0) {
-		return 0;
-	}
+        // Convert ShellStrings (basically just String objects) to regular strings
+        args = args.map(function (arg) {
+          if (isObject(arg) && arg.constructor.name === 'String') {
+            return arg.toString();
+          }
+          return arg;
+        });
 
-	string = stripAnsi(string);
+        // Expand the '~' if appropriate
+        var homeDir = os.homedir();
+        args = args.map(function (arg) {
+          if (typeof arg === 'string' && arg.slice(0, 2) === '~/' || arg === '~') {
+            return arg.replace(/^~/, homeDir);
+          }
+          return arg;
+        });
 
-	if (string.length === 0) {
-		return 0;
-	}
+        // Perform glob-expansion on all arguments after globStart, but preserve
+        // the arguments before it (like regexes for sed and grep)
+        if (!config.noglob && options.allowGlobbing === true) {
+          args = args.slice(0, options.globStart).concat(expand(args.slice(options.globStart)));
+        }
 
-	string = string.replace(emojiRegex(), '  ');
+        try {
+          // parse options if options are provided
+          if (isObject(options.cmdOptions)) {
+            args[0] = parseOptions(args[0], options.cmdOptions);
+          }
 
-	let width = 0;
+          retValue = fn.apply(this, args);
+        } catch (e) {
+          /* istanbul ignore else */
+          if (e.msg === 'earlyExit') {
+            retValue = e.retValue;
+          } else {
+            throw e; // this is probably a bug that should be thrown up the call stack
+          }
+        }
+      }
+    } catch (e) {
+      /* istanbul ignore next */
+      if (!state.error) {
+        // If state.error hasn't been set it's an error thrown by Node, not us - probably a bug...
+        e.name = 'ShellJSInternalError';
+        throw e;
+      }
+      if (config.fatal) throw e;
+    }
 
-	for (let i = 0; i < string.length; i++) {
-		const code = string.codePointAt(i);
+    if (options.wrapOutput &&
+        (typeof retValue === 'string' || Array.isArray(retValue))) {
+      retValue = new ShellString(retValue, state.error, state.errorCode);
+    }
 
-		// Ignore control characters
-		if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
-			continue;
-		}
+    state.currentCmd = 'shell.js';
+    return retValue;
+  };
+} // wrap
+exports.wrap = wrap;
 
-		// Ignore combining characters
-		if (code >= 0x300 && code <= 0x36F) {
-			continue;
-		}
+// This returns all the input that is piped into the current command (or the
+// empty string, if this isn't on the right-hand side of a pipe
+function _readFromPipe() {
+  return state.pipedValue;
+}
+exports.readFromPipe = _readFromPipe;
 
-		// Surrogates
-		if (code > 0xFFFF) {
-			i++;
-		}
+var DEFAULT_WRAP_OPTIONS = {
+  allowGlobbing: true,
+  canReceivePipe: false,
+  cmdOptions: null,
+  globStart: 1,
+  pipeOnly: false,
+  wrapOutput: true,
+  unix: true,
+};
 
-		width += isFullwidthCodePoint(code) ? 2 : 1;
-	}
+// This is populated during plugin registration
+var pipeMethods = [];
 
-	return width;
-};
+// Register a new ShellJS command
+function _register(name, implementation, wrapOptions) {
+  wrapOptions = wrapOptions || {};
 
-module.exports = stringWidth;
-// TODO: remove this in the next major version
-module.exports["default"] = stringWidth;
+  // Validate options
+  Object.keys(wrapOptions).forEach(function (option) {
+    if (!DEFAULT_WRAP_OPTIONS.hasOwnProperty(option)) {
+      throw new Error("Unknown option '" + option + "'");
+    }
+    if (typeof wrapOptions[option] !== typeof DEFAULT_WRAP_OPTIONS[option]) {
+      throw new TypeError("Unsupported type '" + typeof wrapOptions[option] +
+        "' for option '" + option + "'");
+    }
+  });
 
+  // If an option isn't specified, use the default
+  wrapOptions = Object.assign({}, DEFAULT_WRAP_OPTIONS, wrapOptions);
 
-/***/ }),
+  if (shell.hasOwnProperty(name)) {
+    throw new Error('Command `' + name + '` already exists');
+  }
 
-/***/ 94841:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+  if (wrapOptions.pipeOnly) {
+    wrapOptions.canReceivePipe = true;
+    shellMethods[name] = wrap(name, implementation, wrapOptions);
+  } else {
+    shell[name] = wrap(name, implementation, wrapOptions);
+  }
 
-"use strict";
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
+  if (wrapOptions.canReceivePipe) {
+    pipeMethods.push(name);
+  }
+}
+exports.register = _register;
 
 
+/***/ }),
 
-/**/
+/***/ 34932:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-var Buffer = (__nccwpck_require__(21867).Buffer);
-/**/
+var fs = __nccwpck_require__(57147);
+var path = __nccwpck_require__(71017);
+var common = __nccwpck_require__(53687);
 
-var isEncoding = Buffer.isEncoding || function (encoding) {
-  encoding = '' + encoding;
-  switch (encoding && encoding.toLowerCase()) {
-    case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':
-      return true;
-    default:
-      return false;
-  }
-};
+common.register('cp', _cp, {
+  cmdOptions: {
+    'f': '!no_force',
+    'n': 'no_force',
+    'u': 'update',
+    'R': 'recursive',
+    'r': 'recursive',
+    'L': 'followsymlink',
+    'P': 'noFollowsymlink',
+  },
+  wrapOutput: false,
+});
 
-function _normalizeEncoding(enc) {
-  if (!enc) return 'utf8';
-  var retried;
-  while (true) {
-    switch (enc) {
-      case 'utf8':
-      case 'utf-8':
-        return 'utf8';
-      case 'ucs2':
-      case 'ucs-2':
-      case 'utf16le':
-      case 'utf-16le':
-        return 'utf16le';
-      case 'latin1':
-      case 'binary':
-        return 'latin1';
-      case 'base64':
-      case 'ascii':
-      case 'hex':
-        return enc;
-      default:
-        if (retried) return; // undefined
-        enc = ('' + enc).toLowerCase();
-        retried = true;
-    }
+// Buffered file copy, synchronous
+// (Using readFileSync() + writeFileSync() could easily cause a memory overflow
+//  with large files)
+function copyFileSync(srcFile, destFile, options) {
+  if (!fs.existsSync(srcFile)) {
+    common.error('copyFileSync: no such file or directory: ' + srcFile);
   }
-};
 
-// Do not cache `Buffer.isEncoding` when checking encoding names as some
-// modules monkey-patch it to support additional encodings
-function normalizeEncoding(enc) {
-  var nenc = _normalizeEncoding(enc);
-  if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
-  return nenc || enc;
-}
+  var isWindows = process.platform === 'win32';
 
-// StringDecoder provides an interface for efficiently splitting a series of
-// buffers into a series of JS strings without breaking apart multi-byte
-// characters.
-exports.s = StringDecoder;
-function StringDecoder(encoding) {
-  this.encoding = normalizeEncoding(encoding);
-  var nb;
-  switch (this.encoding) {
-    case 'utf16le':
-      this.text = utf16Text;
-      this.end = utf16End;
-      nb = 4;
-      break;
-    case 'utf8':
-      this.fillLast = utf8FillLast;
-      nb = 4;
-      break;
-    case 'base64':
-      this.text = base64Text;
-      this.end = base64End;
-      nb = 3;
-      break;
-    default:
-      this.write = simpleWrite;
-      this.end = simpleEnd;
+  // Check the mtimes of the files if the '-u' flag is provided
+  try {
+    if (options.update && common.statFollowLinks(srcFile).mtime < fs.statSync(destFile).mtime) {
       return;
+    }
+  } catch (e) {
+    // If we're here, destFile probably doesn't exist, so just do a normal copy
   }
-  this.lastNeed = 0;
-  this.lastTotal = 0;
-  this.lastChar = Buffer.allocUnsafe(nb);
-}
 
-StringDecoder.prototype.write = function (buf) {
-  if (buf.length === 0) return '';
-  var r;
-  var i;
-  if (this.lastNeed) {
-    r = this.fillLast(buf);
-    if (r === undefined) return '';
-    i = this.lastNeed;
-    this.lastNeed = 0;
+  if (common.statNoFollowLinks(srcFile).isSymbolicLink() && !options.followsymlink) {
+    try {
+      common.statNoFollowLinks(destFile);
+      common.unlinkSync(destFile); // re-link it
+    } catch (e) {
+      // it doesn't exist, so no work needs to be done
+    }
+
+    var symlinkFull = fs.readlinkSync(srcFile);
+    fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null);
   } else {
-    i = 0;
-  }
-  if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);
-  return r || '';
-};
+    var buf = common.buffer();
+    var bufLength = buf.length;
+    var bytesRead = bufLength;
+    var pos = 0;
+    var fdr = null;
+    var fdw = null;
 
-StringDecoder.prototype.end = utf8End;
+    try {
+      fdr = fs.openSync(srcFile, 'r');
+    } catch (e) {
+      /* istanbul ignore next */
+      common.error('copyFileSync: could not read src file (' + srcFile + ')');
+    }
 
-// Returns only complete characters in a Buffer
-StringDecoder.prototype.text = utf8Text;
+    try {
+      fdw = fs.openSync(destFile, 'w');
+    } catch (e) {
+      /* istanbul ignore next */
+      common.error('copyFileSync: could not write to dest file (code=' + e.code + '):' + destFile);
+    }
 
-// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer
-StringDecoder.prototype.fillLast = function (buf) {
-  if (this.lastNeed <= buf.length) {
-    buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
-    return this.lastChar.toString(this.encoding, 0, this.lastTotal);
-  }
-  buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
-  this.lastNeed -= buf.length;
-};
+    while (bytesRead === bufLength) {
+      bytesRead = fs.readSync(fdr, buf, 0, bufLength, pos);
+      fs.writeSync(fdw, buf, 0, bytesRead);
+      pos += bytesRead;
+    }
 
-// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a
-// continuation byte. If an invalid byte is detected, -2 is returned.
-function utf8CheckByte(byte) {
-  if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;
-  return byte >> 6 === 0x02 ? -1 : -2;
-}
+    fs.closeSync(fdr);
+    fs.closeSync(fdw);
 
-// Checks at most 3 bytes at the end of a Buffer in order to detect an
-// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)
-// needed to complete the UTF-8 character (if applicable) are returned.
-function utf8CheckIncomplete(self, buf, i) {
-  var j = buf.length - 1;
-  if (j < i) return 0;
-  var nb = utf8CheckByte(buf[j]);
-  if (nb >= 0) {
-    if (nb > 0) self.lastNeed = nb - 1;
-    return nb;
-  }
-  if (--j < i || nb === -2) return 0;
-  nb = utf8CheckByte(buf[j]);
-  if (nb >= 0) {
-    if (nb > 0) self.lastNeed = nb - 2;
-    return nb;
-  }
-  if (--j < i || nb === -2) return 0;
-  nb = utf8CheckByte(buf[j]);
-  if (nb >= 0) {
-    if (nb > 0) {
-      if (nb === 2) nb = 0;else self.lastNeed = nb - 3;
-    }
-    return nb;
+    fs.chmodSync(destFile, common.statFollowLinks(srcFile).mode);
   }
-  return 0;
 }
 
-// Validates as many continuation bytes for a multi-byte UTF-8 character as
-// needed or are available. If we see a non-continuation byte where we expect
-// one, we "replace" the validated continuation bytes we've seen so far with
-// a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding
-// behavior. The continuation byte check is included three times in the case
-// where all of the continuation bytes for a character exist in the same buffer.
-// It is also done this way as a slight performance increase instead of using a
-// loop.
-function utf8CheckExtraBytes(self, buf, p) {
-  if ((buf[0] & 0xC0) !== 0x80) {
-    self.lastNeed = 0;
-    return '\ufffd';
+// Recursively copies 'sourceDir' into 'destDir'
+// Adapted from https://github.com/ryanmcgrath/wrench-js
+//
+// Copyright (c) 2010 Ryan McGrath
+// Copyright (c) 2012 Artur Adib
+//
+// Licensed under the MIT License
+// http://www.opensource.org/licenses/mit-license.php
+function cpdirSyncRecursive(sourceDir, destDir, currentDepth, opts) {
+  if (!opts) opts = {};
+
+  // Ensure there is not a run away recursive copy
+  if (currentDepth >= common.config.maxdepth) return;
+  currentDepth++;
+
+  var isWindows = process.platform === 'win32';
+
+  // Create the directory where all our junk is moving to; read the mode of the
+  // source directory and mirror it
+  try {
+    fs.mkdirSync(destDir);
+  } catch (e) {
+    // if the directory already exists, that's okay
+    if (e.code !== 'EEXIST') throw e;
   }
-  if (self.lastNeed > 1 && buf.length > 1) {
-    if ((buf[1] & 0xC0) !== 0x80) {
-      self.lastNeed = 1;
-      return '\ufffd';
+
+  var files = fs.readdirSync(sourceDir);
+
+  for (var i = 0; i < files.length; i++) {
+    var srcFile = sourceDir + '/' + files[i];
+    var destFile = destDir + '/' + files[i];
+    var srcFileStat = common.statNoFollowLinks(srcFile);
+
+    var symlinkFull;
+    if (opts.followsymlink) {
+      if (cpcheckcycle(sourceDir, srcFile)) {
+        // Cycle link found.
+        console.error('Cycle link found.');
+        symlinkFull = fs.readlinkSync(srcFile);
+        fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null);
+        continue;
+      }
     }
-    if (self.lastNeed > 2 && buf.length > 2) {
-      if ((buf[2] & 0xC0) !== 0x80) {
-        self.lastNeed = 2;
-        return '\ufffd';
+    if (srcFileStat.isDirectory()) {
+      /* recursion this thing right on back. */
+      cpdirSyncRecursive(srcFile, destFile, currentDepth, opts);
+    } else if (srcFileStat.isSymbolicLink() && !opts.followsymlink) {
+      symlinkFull = fs.readlinkSync(srcFile);
+      try {
+        common.statNoFollowLinks(destFile);
+        common.unlinkSync(destFile); // re-link it
+      } catch (e) {
+        // it doesn't exist, so no work needs to be done
+      }
+      fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null);
+    } else if (srcFileStat.isSymbolicLink() && opts.followsymlink) {
+      srcFileStat = common.statFollowLinks(srcFile);
+      if (srcFileStat.isDirectory()) {
+        cpdirSyncRecursive(srcFile, destFile, currentDepth, opts);
+      } else {
+        copyFileSync(srcFile, destFile, opts);
+      }
+    } else {
+      /* At this point, we've hit a file actually worth copying... so copy it on over. */
+      if (fs.existsSync(destFile) && opts.no_force) {
+        common.log('skipping existing file: ' + files[i]);
+      } else {
+        copyFileSync(srcFile, destFile, opts);
       }
     }
-  }
-}
-
-// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.
-function utf8FillLast(buf) {
-  var p = this.lastTotal - this.lastNeed;
-  var r = utf8CheckExtraBytes(this, buf, p);
-  if (r !== undefined) return r;
-  if (this.lastNeed <= buf.length) {
-    buf.copy(this.lastChar, p, 0, this.lastNeed);
-    return this.lastChar.toString(this.encoding, 0, this.lastTotal);
-  }
-  buf.copy(this.lastChar, p, 0, buf.length);
-  this.lastNeed -= buf.length;
-}
+  } // for files
 
-// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a
-// partial character, the character's bytes are buffered until the required
-// number of bytes are available.
-function utf8Text(buf, i) {
-  var total = utf8CheckIncomplete(this, buf, i);
-  if (!this.lastNeed) return buf.toString('utf8', i);
-  this.lastTotal = total;
-  var end = buf.length - (total - this.lastNeed);
-  buf.copy(this.lastChar, 0, end);
-  return buf.toString('utf8', i, end);
-}
+  // finally change the mode for the newly created directory (otherwise, we
+  // couldn't add files to a read-only directory).
+  var checkDir = common.statFollowLinks(sourceDir);
+  fs.chmodSync(destDir, checkDir.mode);
+} // cpdirSyncRecursive
 
-// For UTF-8, a replacement character is added when ending on a partial
-// character.
-function utf8End(buf) {
-  var r = buf && buf.length ? this.write(buf) : '';
-  if (this.lastNeed) return r + '\ufffd';
-  return r;
+// Checks if cureent file was created recently
+function checkRecentCreated(sources, index) {
+  var lookedSource = sources[index];
+  return sources.slice(0, index).some(function (src) {
+    return path.basename(src) === path.basename(lookedSource);
+  });
 }
 
-// UTF-16LE typically needs two bytes per character, but even if we have an even
-// number of bytes available, we need to check if we end on a leading/high
-// surrogate. In that case, we need to wait for the next two bytes in order to
-// decode the last character properly.
-function utf16Text(buf, i) {
-  if ((buf.length - i) % 2 === 0) {
-    var r = buf.toString('utf16le', i);
-    if (r) {
-      var c = r.charCodeAt(r.length - 1);
-      if (c >= 0xD800 && c <= 0xDBFF) {
-        this.lastNeed = 2;
-        this.lastTotal = 4;
-        this.lastChar[0] = buf[buf.length - 2];
-        this.lastChar[1] = buf[buf.length - 1];
-        return r.slice(0, -1);
+function cpcheckcycle(sourceDir, srcFile) {
+  var srcFileStat = common.statNoFollowLinks(srcFile);
+  if (srcFileStat.isSymbolicLink()) {
+    // Do cycle check. For example:
+    //   $ mkdir -p 1/2/3/4
+    //   $ cd  1/2/3/4
+    //   $ ln -s ../../3 link
+    //   $ cd ../../../..
+    //   $ cp -RL 1 copy
+    var cyclecheck = common.statFollowLinks(srcFile);
+    if (cyclecheck.isDirectory()) {
+      var sourcerealpath = fs.realpathSync(sourceDir);
+      var symlinkrealpath = fs.realpathSync(srcFile);
+      var re = new RegExp(symlinkrealpath);
+      if (re.test(sourcerealpath)) {
+        return true;
       }
     }
-    return r;
   }
-  this.lastNeed = 1;
-  this.lastTotal = 2;
-  this.lastChar[0] = buf[buf.length - 1];
-  return buf.toString('utf16le', i, buf.length - 1);
+  return false;
 }
 
-// For UTF-16LE we do not explicitly append special replacement characters if we
-// end on a partial character, we simply let v8 handle that.
-function utf16End(buf) {
-  var r = buf && buf.length ? this.write(buf) : '';
-  if (this.lastNeed) {
-    var end = this.lastTotal - this.lastNeed;
-    return r + this.lastChar.toString('utf16le', 0, end);
+//@
+//@ ### cp([options,] source [, source ...], dest)
+//@ ### cp([options,] source_array, dest)
+//@
+//@ Available options:
+//@
+//@ + `-f`: force (default behavior)
+//@ + `-n`: no-clobber
+//@ + `-u`: only copy if `source` is newer than `dest`
+//@ + `-r`, `-R`: recursive
+//@ + `-L`: follow symlinks
+//@ + `-P`: don't follow symlinks
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ cp('file1', 'dir1');
+//@ cp('-R', 'path/to/dir/', '~/newCopy/');
+//@ cp('-Rf', '/tmp/*', '/usr/local/*', '/home/tmp');
+//@ cp('-Rf', ['/tmp/*', '/usr/local/*'], '/home/tmp'); // same as above
+//@ ```
+//@
+//@ Copies files.
+function _cp(options, sources, dest) {
+  // If we're missing -R, it actually implies -L (unless -P is explicit)
+  if (options.followsymlink) {
+    options.noFollowsymlink = false;
+  }
+  if (!options.recursive && !options.noFollowsymlink) {
+    options.followsymlink = true;
   }
-  return r;
-}
 
-function base64Text(buf, i) {
-  var n = (buf.length - i) % 3;
-  if (n === 0) return buf.toString('base64', i);
-  this.lastNeed = 3 - n;
-  this.lastTotal = 3;
-  if (n === 1) {
-    this.lastChar[0] = buf[buf.length - 1];
+  // Get sources, dest
+  if (arguments.length < 3) {
+    common.error('missing  and/or ');
   } else {
-    this.lastChar[0] = buf[buf.length - 2];
-    this.lastChar[1] = buf[buf.length - 1];
+    sources = [].slice.call(arguments, 1, arguments.length - 1);
+    dest = arguments[arguments.length - 1];
   }
-  return buf.toString('base64', i, buf.length - n);
-}
-
-function base64End(buf) {
-  var r = buf && buf.length ? this.write(buf) : '';
-  if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);
-  return r;
-}
-
-// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)
-function simpleWrite(buf) {
-  return buf.toString(this.encoding);
-}
-
-function simpleEnd(buf) {
-  return buf && buf.length ? this.write(buf) : '';
-}
-
-/***/ }),
 
-/***/ 45591:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+  var destExists = fs.existsSync(dest);
+  var destStat = destExists && common.statFollowLinks(dest);
 
-"use strict";
+  // Dest is not existing dir, but multiple sources given
+  if ((!destExists || !destStat.isDirectory()) && sources.length > 1) {
+    common.error('dest is not a directory (too many sources)');
+  }
 
-const ansiRegex = __nccwpck_require__(35465);
+  // Dest is an existing file, but -n is given
+  if (destExists && destStat.isFile() && options.no_force) {
+    return new common.ShellString('', '', 0);
+  }
 
-module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
+  sources.forEach(function (src, srcIndex) {
+    if (!fs.existsSync(src)) {
+      if (src === '') src = "''"; // if src was empty string, display empty string
+      common.error('no such file or directory: ' + src, { continue: true });
+      return; // skip file
+    }
+    var srcStat = common.statFollowLinks(src);
+    if (!options.noFollowsymlink && srcStat.isDirectory()) {
+      if (!options.recursive) {
+        // Non-Recursive
+        common.error("omitting directory '" + src + "'", { continue: true });
+      } else {
+        // Recursive
+        // 'cp /a/source dest' should create 'source' in 'dest'
+        var newDest = (destStat && destStat.isDirectory()) ?
+            path.join(dest, path.basename(src)) :
+            dest;
 
+        try {
+          common.statFollowLinks(path.dirname(dest));
+          cpdirSyncRecursive(src, newDest, 0, { no_force: options.no_force, followsymlink: options.followsymlink });
+        } catch (e) {
+          /* istanbul ignore next */
+          common.error("cannot create directory '" + dest + "': No such file or directory");
+        }
+      }
+    } else {
+      // If here, src is a file
 
-/***/ }),
+      // When copying to '/path/dir':
+      //    thisDest = '/path/dir/file1'
+      var thisDest = dest;
+      if (destStat && destStat.isDirectory()) {
+        thisDest = path.normalize(dest + '/' + path.basename(src));
+      }
 
-/***/ 35465:
-/***/ ((module) => {
+      var thisDestExists = fs.existsSync(thisDest);
+      if (thisDestExists && checkRecentCreated(sources, srcIndex)) {
+        // cannot overwrite file created recently in current execution, but we want to continue copying other files
+        if (!options.no_force) {
+          common.error("will not overwrite just-created '" + thisDest + "' with '" + src + "'", { continue: true });
+        }
+        return;
+      }
 
-"use strict";
+      if (thisDestExists && options.no_force) {
+        return; // skip file
+      }
 
+      if (path.relative(src, thisDest) === '') {
+        // a file cannot be copied to itself, but we want to continue copying other files
+        common.error("'" + thisDest + "' and '" + src + "' are the same file", { continue: true });
+        return;
+      }
 
-module.exports = ({onlyFirst = false} = {}) => {
-	const pattern = [
-		'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
-		'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
-	].join('|');
+      copyFileSync(src, thisDest, options);
+    }
+  }); // forEach(src)
 
-	return new RegExp(pattern, onlyFirst ? undefined : 'g');
-};
+  return new common.ShellString('', common.state.error, common.state.errorCode);
+}
+module.exports = _cp;
 
 
 /***/ }),
 
-/***/ 59318:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 41178:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-"use strict";
+var common = __nccwpck_require__(53687);
+var _cd = __nccwpck_require__(42051);
+var path = __nccwpck_require__(71017);
 
-const os = __nccwpck_require__(22037);
-const hasFlag = __nccwpck_require__(81533);
+common.register('dirs', _dirs, {
+  wrapOutput: false,
+});
+common.register('pushd', _pushd, {
+  wrapOutput: false,
+});
+common.register('popd', _popd, {
+  wrapOutput: false,
+});
 
-const env = process.env;
+// Pushd/popd/dirs internals
+var _dirStack = [];
 
-let forceColor;
-if (hasFlag('no-color') ||
-	hasFlag('no-colors') ||
-	hasFlag('color=false')) {
-	forceColor = false;
-} else if (hasFlag('color') ||
-	hasFlag('colors') ||
-	hasFlag('color=true') ||
-	hasFlag('color=always')) {
-	forceColor = true;
-}
-if ('FORCE_COLOR' in env) {
-	forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
+function _isStackIndex(index) {
+  return (/^[\-+]\d+$/).test(index);
 }
 
-function translateLevel(level) {
-	if (level === 0) {
-		return false;
-	}
-
-	return {
-		level,
-		hasBasic: true,
-		has256: level >= 2,
-		has16m: level >= 3
-	};
+function _parseStackIndex(index) {
+  if (_isStackIndex(index)) {
+    if (Math.abs(index) < _dirStack.length + 1) { // +1 for pwd
+      return (/^-/).test(index) ? Number(index) - 1 : Number(index);
+    }
+    common.error(index + ': directory stack index out of range');
+  } else {
+    common.error(index + ': invalid number');
+  }
 }
 
-function supportsColor(stream) {
-	if (forceColor === false) {
-		return 0;
-	}
-
-	if (hasFlag('color=16m') ||
-		hasFlag('color=full') ||
-		hasFlag('color=truecolor')) {
-		return 3;
-	}
-
-	if (hasFlag('color=256')) {
-		return 2;
-	}
-
-	if (stream && !stream.isTTY && forceColor !== true) {
-		return 0;
-	}
+function _actualDirStack() {
+  return [process.cwd()].concat(_dirStack);
+}
 
-	const min = forceColor ? 1 : 0;
+//@
+//@ ### pushd([options,] [dir | '-N' | '+N'])
+//@
+//@ Available options:
+//@
+//@ + `-n`: Suppresses the normal change of directory when adding directories to the stack, so that only the stack is manipulated.
+//@ + `-q`: Supresses output to the console.
+//@
+//@ Arguments:
+//@
+//@ + `dir`: Sets the current working directory to the top of the stack, then executes the equivalent of `cd dir`.
+//@ + `+N`: Brings the Nth directory (counting from the left of the list printed by dirs, starting with zero) to the top of the list by rotating the stack.
+//@ + `-N`: Brings the Nth directory (counting from the right of the list printed by dirs, starting with zero) to the top of the list by rotating the stack.
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ // process.cwd() === '/usr'
+//@ pushd('/etc'); // Returns /etc /usr
+//@ pushd('+1');   // Returns /usr /etc
+//@ ```
+//@
+//@ Save the current directory on the top of the directory stack and then `cd` to `dir`. With no arguments, `pushd` exchanges the top two directories. Returns an array of paths in the stack.
+function _pushd(options, dir) {
+  if (_isStackIndex(options)) {
+    dir = options;
+    options = '';
+  }
 
-	if (process.platform === 'win32') {
-		// Node.js 7.5.0 is the first version of Node.js to include a patch to
-		// libuv that enables 256 color output on Windows. Anything earlier and it
-		// won't work. However, here we target Node.js 8 at minimum as it is an LTS
-		// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows
-		// release that supports 256 colors. Windows 10 build 14931 is the first release
-		// that supports 16m/TrueColor.
-		const osRelease = os.release().split('.');
-		if (
-			Number(process.versions.node.split('.')[0]) >= 8 &&
-			Number(osRelease[0]) >= 10 &&
-			Number(osRelease[2]) >= 10586
-		) {
-			return Number(osRelease[2]) >= 14931 ? 3 : 2;
-		}
+  options = common.parseOptions(options, {
+    'n': 'no-cd',
+    'q': 'quiet',
+  });
 
-		return 1;
-	}
+  var dirs = _actualDirStack();
 
-	if ('CI' in env) {
-		if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
-			return 1;
-		}
+  if (dir === '+0') {
+    return dirs; // +0 is a noop
+  } else if (!dir) {
+    if (dirs.length > 1) {
+      dirs = dirs.splice(1, 1).concat(dirs);
+    } else {
+      return common.error('no other directory');
+    }
+  } else if (_isStackIndex(dir)) {
+    var n = _parseStackIndex(dir);
+    dirs = dirs.slice(n).concat(dirs.slice(0, n));
+  } else {
+    if (options['no-cd']) {
+      dirs.splice(1, 0, dir);
+    } else {
+      dirs.unshift(dir);
+    }
+  }
 
-		return min;
-	}
+  if (options['no-cd']) {
+    dirs = dirs.slice(1);
+  } else {
+    dir = path.resolve(dirs.shift());
+    _cd('', dir);
+  }
 
-	if ('TEAMCITY_VERSION' in env) {
-		return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
-	}
+  _dirStack = dirs;
+  return _dirs(options.quiet ? '-q' : '');
+}
+exports.pushd = _pushd;
 
-	if (env.COLORTERM === 'truecolor') {
-		return 3;
-	}
+//@
+//@
+//@ ### popd([options,] ['-N' | '+N'])
+//@
+//@ Available options:
+//@
+//@ + `-n`: Suppress the normal directory change when removing directories from the stack, so that only the stack is manipulated.
+//@ + `-q`: Supresses output to the console.
+//@
+//@ Arguments:
+//@
+//@ + `+N`: Removes the Nth directory (counting from the left of the list printed by dirs), starting with zero.
+//@ + `-N`: Removes the Nth directory (counting from the right of the list printed by dirs), starting with zero.
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ echo(process.cwd()); // '/usr'
+//@ pushd('/etc');       // '/etc /usr'
+//@ echo(process.cwd()); // '/etc'
+//@ popd();              // '/usr'
+//@ echo(process.cwd()); // '/usr'
+//@ ```
+//@
+//@ When no arguments are given, `popd` removes the top directory from the stack and performs a `cd` to the new top directory. The elements are numbered from 0, starting at the first directory listed with dirs (i.e., `popd` is equivalent to `popd +0`). Returns an array of paths in the stack.
+function _popd(options, index) {
+  if (_isStackIndex(options)) {
+    index = options;
+    options = '';
+  }
 
-	if ('TERM_PROGRAM' in env) {
-		const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
+  options = common.parseOptions(options, {
+    'n': 'no-cd',
+    'q': 'quiet',
+  });
 
-		switch (env.TERM_PROGRAM) {
-			case 'iTerm.app':
-				return version >= 3 ? 3 : 2;
-			case 'Apple_Terminal':
-				return 2;
-			// No default
-		}
-	}
+  if (!_dirStack.length) {
+    return common.error('directory stack empty');
+  }
 
-	if (/-256(color)?$/i.test(env.TERM)) {
-		return 2;
-	}
+  index = _parseStackIndex(index || '+0');
 
-	if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
-		return 1;
-	}
+  if (options['no-cd'] || index > 0 || _dirStack.length + index === 0) {
+    index = index > 0 ? index - 1 : index;
+    _dirStack.splice(index, 1);
+  } else {
+    var dir = path.resolve(_dirStack.shift());
+    _cd('', dir);
+  }
 
-	if ('COLORTERM' in env) {
-		return 1;
-	}
+  return _dirs(options.quiet ? '-q' : '');
+}
+exports.popd = _popd;
 
-	if (env.TERM === 'dumb') {
-		return min;
-	}
+//@
+//@
+//@ ### dirs([options | '+N' | '-N'])
+//@
+//@ Available options:
+//@
+//@ + `-c`: Clears the directory stack by deleting all of the elements.
+//@ + `-q`: Supresses output to the console.
+//@
+//@ Arguments:
+//@
+//@ + `+N`: Displays the Nth directory (counting from the left of the list printed by dirs when invoked without options), starting with zero.
+//@ + `-N`: Displays the Nth directory (counting from the right of the list printed by dirs when invoked without options), starting with zero.
+//@
+//@ Display the list of currently remembered directories. Returns an array of paths in the stack, or a single path if `+N` or `-N` was specified.
+//@
+//@ See also: `pushd`, `popd`
+function _dirs(options, index) {
+  if (_isStackIndex(options)) {
+    index = options;
+    options = '';
+  }
 
-	return min;
-}
+  options = common.parseOptions(options, {
+    'c': 'clear',
+    'q': 'quiet',
+  });
 
-function getSupportLevel(stream) {
-	const level = supportsColor(stream);
-	return translateLevel(level);
-}
+  if (options.clear) {
+    _dirStack = [];
+    return _dirStack;
+  }
 
-module.exports = {
-	supportsColor: getSupportLevel,
-	stdout: getSupportLevel(process.stdout),
-	stderr: getSupportLevel(process.stderr)
-};
+  var stack = _actualDirStack();
 
+  if (index) {
+    index = _parseStackIndex(index);
 
-/***/ }),
+    if (index < 0) {
+      index = stack.length + index;
+    }
 
-/***/ 81533:
-/***/ ((module) => {
+    if (!options.quiet) {
+      common.log(stack[index]);
+    }
+    return stack[index];
+  }
 
-"use strict";
+  if (!options.quiet) {
+    common.log(stack.join(' '));
+  }
 
-module.exports = (flag, argv) => {
-	argv = argv || process.argv;
-	const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
-	const pos = argv.indexOf(prefix + flag);
-	const terminatorPos = argv.indexOf('--');
-	return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
-};
+  return stack;
+}
+exports.dirs = _dirs;
 
 
 /***/ }),
 
-/***/ 57882:
+/***/ 10243:
 /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-var util = __nccwpck_require__(73837)
-var bl = __nccwpck_require__(20336)
-var headers = __nccwpck_require__(68860)
-
-var Writable = (__nccwpck_require__(51642).Writable)
-var PassThrough = (__nccwpck_require__(51642).PassThrough)
-
-var noop = function () {}
-
-var overflow = function (size) {
-  size &= 511
-  return size && 512 - size
-}
-
-var emptyStream = function (self, offset) {
-  var s = new Source(self, offset)
-  s.end()
-  return s
-}
+var format = (__nccwpck_require__(73837).format);
 
-var mixinPax = function (header, pax) {
-  if (pax.path) header.name = pax.path
-  if (pax.linkpath) header.linkname = pax.linkpath
-  if (pax.size) header.size = parseInt(pax.size, 10)
-  header.pax = pax
-  return header
-}
+var common = __nccwpck_require__(53687);
 
-var Source = function (self, offset) {
-  this._parent = self
-  this.offset = offset
-  PassThrough.call(this, { autoDestroy: false })
-}
+common.register('echo', _echo, {
+  allowGlobbing: false,
+});
 
-util.inherits(Source, PassThrough)
-
-Source.prototype.destroy = function (err) {
-  this._parent.destroy(err)
-}
-
-var Extract = function (opts) {
-  if (!(this instanceof Extract)) return new Extract(opts)
-  Writable.call(this, opts)
-
-  opts = opts || {}
-
-  this._offset = 0
-  this._buffer = bl()
-  this._missing = 0
-  this._partial = false
-  this._onparse = noop
-  this._header = null
-  this._stream = null
-  this._overflow = null
-  this._cb = null
-  this._locked = false
-  this._destroyed = false
-  this._pax = null
-  this._paxGlobal = null
-  this._gnuLongPath = null
-  this._gnuLongLinkPath = null
+//@
+//@ ### echo([options,] string [, string ...])
+//@
+//@ Available options:
+//@
+//@ + `-e`: interpret backslash escapes (default)
+//@ + `-n`: remove trailing newline from output
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ echo('hello world');
+//@ var str = echo('hello world');
+//@ echo('-n', 'no newline at end');
+//@ ```
+//@
+//@ Prints `string` to stdout, and returns string with additional utility methods
+//@ like `.to()`.
+function _echo(opts) {
+  // allow strings starting with '-', see issue #20
+  var messages = [].slice.call(arguments, opts ? 0 : 1);
+  var options = {};
 
-  var self = this
-  var b = self._buffer
+  // If the first argument starts with '-', parse it as options string.
+  // If parseOptions throws, it wasn't an options string.
+  try {
+    options = common.parseOptions(messages[0], {
+      'e': 'escapes',
+      'n': 'no_newline',
+    }, {
+      silent: true,
+    });
 
-  var oncontinue = function () {
-    self._continue()
+    // Allow null to be echoed
+    if (messages[0]) {
+      messages.shift();
+    }
+  } catch (_) {
+    // Clear out error if an error occurred
+    common.state.error = null;
   }
 
-  var onunlock = function (err) {
-    self._locked = false
-    if (err) return self.destroy(err)
-    if (!self._stream) oncontinue()
-  }
+  var output = format.apply(null, messages);
 
-  var onstreamend = function () {
-    self._stream = null
-    var drain = overflow(self._header.size)
-    if (drain) self._parse(drain, ondrain)
-    else self._parse(512, onheader)
-    if (!self._locked) oncontinue()
+  // Add newline if -n is not passed.
+  if (!options.no_newline) {
+    output += '\n';
   }
 
-  var ondrain = function () {
-    self._buffer.consume(overflow(self._header.size))
-    self._parse(512, onheader)
-    oncontinue()
-  }
+  process.stdout.write(output);
 
-  var onpaxglobalheader = function () {
-    var size = self._header.size
-    self._paxGlobal = headers.decodePax(b.slice(0, size))
-    b.consume(size)
-    onstreamend()
-  }
+  return output;
+}
 
-  var onpaxheader = function () {
-    var size = self._header.size
-    self._pax = headers.decodePax(b.slice(0, size))
-    if (self._paxGlobal) self._pax = Object.assign({}, self._paxGlobal, self._pax)
-    b.consume(size)
-    onstreamend()
-  }
+module.exports = _echo;
 
-  var ongnulongpath = function () {
-    var size = self._header.size
-    this._gnuLongPath = headers.decodeLongPath(b.slice(0, size), opts.filenameEncoding)
-    b.consume(size)
-    onstreamend()
-  }
 
-  var ongnulonglinkpath = function () {
-    var size = self._header.size
-    this._gnuLongLinkPath = headers.decodeLongPath(b.slice(0, size), opts.filenameEncoding)
-    b.consume(size)
-    onstreamend()
-  }
+/***/ }),
 
-  var onheader = function () {
-    var offset = self._offset
-    var header
-    try {
-      header = self._header = headers.decode(b.slice(0, 512), opts.filenameEncoding, opts.allowUnknownFormat)
-    } catch (err) {
-      self.emit('error', err)
-    }
-    b.consume(512)
+/***/ 10232:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    if (!header) {
-      self._parse(512, onheader)
-      oncontinue()
-      return
-    }
-    if (header.type === 'gnu-long-path') {
-      self._parse(header.size, ongnulongpath)
-      oncontinue()
-      return
-    }
-    if (header.type === 'gnu-long-link-path') {
-      self._parse(header.size, ongnulonglinkpath)
-      oncontinue()
-      return
-    }
-    if (header.type === 'pax-global-header') {
-      self._parse(header.size, onpaxglobalheader)
-      oncontinue()
-      return
-    }
-    if (header.type === 'pax-header') {
-      self._parse(header.size, onpaxheader)
-      oncontinue()
-      return
-    }
+var common = __nccwpck_require__(53687);
 
-    if (self._gnuLongPath) {
-      header.name = self._gnuLongPath
-      self._gnuLongPath = null
-    }
+//@
+//@ ### error()
+//@
+//@ Tests if error occurred in the last command. Returns a truthy value if an
+//@ error returned, or a falsy value otherwise.
+//@
+//@ **Note**: do not rely on the
+//@ return value to be an error message. If you need the last error message, use
+//@ the `.stderr` attribute from the last command's return value instead.
+function error() {
+  return common.state.error;
+}
+module.exports = error;
 
-    if (self._gnuLongLinkPath) {
-      header.linkname = self._gnuLongLinkPath
-      self._gnuLongLinkPath = null
-    }
 
-    if (self._pax) {
-      self._header = header = mixinPax(header, self._pax)
-      self._pax = null
-    }
+/***/ }),
 
-    self._locked = true
+/***/ 69607:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    if (!header.size || header.type === 'directory') {
-      self._parse(512, onheader)
-      self.emit('entry', header, emptyStream(self, offset), onunlock)
-      return
-    }
+/* module decorator */ module = __nccwpck_require__.nmd(module);
+if (require.main !== module) {
+  throw new Error('This file should not be required');
+}
 
-    self._stream = new Source(self, offset)
+var childProcess = __nccwpck_require__(32081);
+var fs = __nccwpck_require__(57147);
 
-    self.emit('entry', header, self._stream, onunlock)
-    self._parse(header.size, onstreamend)
-    oncontinue()
-  }
+var paramFilePath = process.argv[2];
 
-  this._onheader = onheader
-  this._parse(512, onheader)
-}
+var serializedParams = fs.readFileSync(paramFilePath, 'utf8');
+var params = JSON.parse(serializedParams);
 
-util.inherits(Extract, Writable)
+var cmd = params.command;
+var execOptions = params.execOptions;
+var pipe = params.pipe;
+var stdoutFile = params.stdoutFile;
+var stderrFile = params.stderrFile;
 
-Extract.prototype.destroy = function (err) {
-  if (this._destroyed) return
-  this._destroyed = true
+var c = childProcess.exec(cmd, execOptions, function (err) {
+  if (!err) {
+    process.exitCode = 0;
+  } else if (err.code === undefined) {
+    process.exitCode = 1;
+  } else {
+    process.exitCode = err.code;
+  }
+});
 
-  if (err) this.emit('error', err)
-  this.emit('close')
-  if (this._stream) this._stream.emit('close')
-}
+var stdoutStream = fs.createWriteStream(stdoutFile);
+var stderrStream = fs.createWriteStream(stderrFile);
 
-Extract.prototype._parse = function (size, onparse) {
-  if (this._destroyed) return
-  this._offset += size
-  this._missing = size
-  if (onparse === this._onheader) this._partial = false
-  this._onparse = onparse
-}
+c.stdout.pipe(stdoutStream);
+c.stderr.pipe(stderrStream);
+c.stdout.pipe(process.stdout);
+c.stderr.pipe(process.stderr);
 
-Extract.prototype._continue = function () {
-  if (this._destroyed) return
-  var cb = this._cb
-  this._cb = noop
-  if (this._overflow) this._write(this._overflow, undefined, cb)
-  else cb()
+if (pipe) {
+  c.stdin.end(pipe);
 }
 
-Extract.prototype._write = function (data, enc, cb) {
-  if (this._destroyed) return
 
-  var s = this._stream
-  var b = this._buffer
-  var missing = this._missing
-  if (data.length) this._partial = true
+/***/ }),
 
-  // we do not reach end-of-chunk now. just forward it
+/***/ 10896:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-  if (data.length < missing) {
-    this._missing -= data.length
-    this._overflow = null
-    if (s) return s.write(data, cb)
-    b.append(data)
-    return cb()
-  }
+var common = __nccwpck_require__(53687);
+var _tempDir = (__nccwpck_require__(76150).tempDir);
+var _pwd = __nccwpck_require__(58553);
+var path = __nccwpck_require__(71017);
+var fs = __nccwpck_require__(57147);
+var child = __nccwpck_require__(32081);
 
-  // end-of-chunk. the parser should call cb.
+var DEFAULT_MAXBUFFER_SIZE = 20 * 1024 * 1024;
+var DEFAULT_ERROR_CODE = 1;
 
-  this._cb = cb
-  this._missing = 0
+common.register('exec', _exec, {
+  unix: false,
+  canReceivePipe: true,
+  wrapOutput: false,
+});
 
-  var overflow = null
-  if (data.length > missing) {
-    overflow = data.slice(missing)
-    data = data.slice(0, missing)
+// We use this function to run `exec` synchronously while also providing realtime
+// output.
+function execSync(cmd, opts, pipe) {
+  if (!common.config.execPath) {
+    common.error('Unable to find a path to the node binary. Please manually set config.execPath');
   }
 
-  if (s) s.end(data)
-  else b.append(data)
+  var tempDir = _tempDir();
+  var paramsFile = path.resolve(tempDir + '/' + common.randomFileName());
+  var stderrFile = path.resolve(tempDir + '/' + common.randomFileName());
+  var stdoutFile = path.resolve(tempDir + '/' + common.randomFileName());
 
-  this._overflow = overflow
-  this._onparse()
-}
+  opts = common.extend({
+    silent: common.config.silent,
+    cwd: _pwd().toString(),
+    env: process.env,
+    maxBuffer: DEFAULT_MAXBUFFER_SIZE,
+    encoding: 'utf8',
+  }, opts);
 
-Extract.prototype._final = function (cb) {
-  if (this._partial) return this.destroy(new Error('Unexpected end of data'))
-  cb()
-}
+  if (fs.existsSync(paramsFile)) common.unlinkSync(paramsFile);
+  if (fs.existsSync(stderrFile)) common.unlinkSync(stderrFile);
+  if (fs.existsSync(stdoutFile)) common.unlinkSync(stdoutFile);
 
-module.exports = Extract
+  opts.cwd = path.resolve(opts.cwd);
 
+  var paramsToSerialize = {
+    command: cmd,
+    execOptions: opts,
+    pipe: pipe,
+    stdoutFile: stdoutFile,
+    stderrFile: stderrFile,
+  };
 
-/***/ }),
+  // Create the files and ensure these are locked down (for read and write) to
+  // the current user. The main concerns here are:
+  //
+  // * If we execute a command which prints sensitive output, then
+  //   stdoutFile/stderrFile must not be readable by other users.
+  // * paramsFile must not be readable by other users, or else they can read it
+  //   to figure out the path for stdoutFile/stderrFile and create these first
+  //   (locked down to their own access), which will crash exec() when it tries
+  //   to write to the files.
+  function writeFileLockedDown(filePath, data) {
+    fs.writeFileSync(filePath, data, {
+      encoding: 'utf8',
+      mode: parseInt('600', 8),
+    });
+  }
+  writeFileLockedDown(stdoutFile, '');
+  writeFileLockedDown(stderrFile, '');
+  writeFileLockedDown(paramsFile, JSON.stringify(paramsToSerialize));
 
-/***/ 68860:
-/***/ ((__unused_webpack_module, exports) => {
+  var execArgs = [
+    __nccwpck_require__.ab + "exec-child.js",
+    paramsFile,
+  ];
 
-var alloc = Buffer.alloc
+  /* istanbul ignore else */
+  if (opts.silent) {
+    opts.stdio = 'ignore';
+  } else {
+    opts.stdio = [0, 1, 2];
+  }
 
-var ZEROS = '0000000000000000000'
-var SEVENS = '7777777777777777777'
-var ZERO_OFFSET = '0'.charCodeAt(0)
-var USTAR_MAGIC = Buffer.from('ustar\x00', 'binary')
-var USTAR_VER = Buffer.from('00', 'binary')
-var GNU_MAGIC = Buffer.from('ustar\x20', 'binary')
-var GNU_VER = Buffer.from('\x20\x00', 'binary')
-var MASK = parseInt('7777', 8)
-var MAGIC_OFFSET = 257
-var VERSION_OFFSET = 263
+  var code = 0;
 
-var clamp = function (index, len, defaultValue) {
-  if (typeof index !== 'number') return defaultValue
-  index = ~~index // Coerce to integer.
-  if (index >= len) return len
-  if (index >= 0) return index
-  index += len
-  if (index >= 0) return index
-  return 0
-}
+  // Welcome to the future
+  try {
+    // Bad things if we pass in a `shell` option to child_process.execFileSync,
+    // so we need to explicitly remove it here.
+    delete opts.shell;
 
-var toType = function (flag) {
-  switch (flag) {
-    case 0:
-      return 'file'
-    case 1:
-      return 'link'
-    case 2:
-      return 'symlink'
-    case 3:
-      return 'character-device'
-    case 4:
-      return 'block-device'
-    case 5:
-      return 'directory'
-    case 6:
-      return 'fifo'
-    case 7:
-      return 'contiguous-file'
-    case 72:
-      return 'pax-header'
-    case 55:
-      return 'pax-global-header'
-    case 27:
-      return 'gnu-long-link-path'
-    case 28:
-    case 30:
-      return 'gnu-long-path'
+    child.execFileSync(common.config.execPath, execArgs, opts);
+  } catch (e) {
+    // Commands with non-zero exit code raise an exception.
+    code = e.status || DEFAULT_ERROR_CODE;
   }
 
-  return null
-}
-
-var toTypeflag = function (flag) {
-  switch (flag) {
-    case 'file':
-      return 0
-    case 'link':
-      return 1
-    case 'symlink':
-      return 2
-    case 'character-device':
-      return 3
-    case 'block-device':
-      return 4
-    case 'directory':
-      return 5
-    case 'fifo':
-      return 6
-    case 'contiguous-file':
-      return 7
-    case 'pax-header':
-      return 72
+  // fs.readFileSync uses buffer encoding by default, so call
+  // it without the encoding option if the encoding is 'buffer'.
+  // Also, if the exec timeout is too short for node to start up,
+  // the files will not be created, so these calls will throw.
+  var stdout = '';
+  var stderr = '';
+  if (opts.encoding === 'buffer') {
+    stdout = fs.readFileSync(stdoutFile);
+    stderr = fs.readFileSync(stderrFile);
+  } else {
+    stdout = fs.readFileSync(stdoutFile, opts.encoding);
+    stderr = fs.readFileSync(stderrFile, opts.encoding);
   }
 
-  return 0
-}
+  // No biggie if we can't erase the files now -- they're in a temp dir anyway
+  // and we locked down permissions (see the note above).
+  try { common.unlinkSync(paramsFile); } catch (e) {}
+  try { common.unlinkSync(stderrFile); } catch (e) {}
+  try { common.unlinkSync(stdoutFile); } catch (e) {}
 
-var indexOf = function (block, num, offset, end) {
-  for (; offset < end; offset++) {
-    if (block[offset] === num) return offset
+  if (code !== 0) {
+    // Note: `silent` should be unconditionally true to avoid double-printing
+    // the command's stderr, and to avoid printing any stderr when the user has
+    // set `shell.config.silent`.
+    common.error(stderr, code, { continue: true, silent: true });
   }
-  return end
-}
-
-var cksum = function (block) {
-  var sum = 8 * 32
-  for (var i = 0; i < 148; i++) sum += block[i]
-  for (var j = 156; j < 512; j++) sum += block[j]
-  return sum
-}
+  var obj = common.ShellString(stdout, stderr, code);
+  return obj;
+} // execSync()
 
-var encodeOct = function (val, n) {
-  val = val.toString(8)
-  if (val.length > n) return SEVENS.slice(0, n) + ' '
-  else return ZEROS.slice(0, n - val.length) + val + ' '
-}
+// Wrapper around exec() to enable echoing output to console in real time
+function execAsync(cmd, opts, pipe, callback) {
+  opts = common.extend({
+    silent: common.config.silent,
+    cwd: _pwd().toString(),
+    env: process.env,
+    maxBuffer: DEFAULT_MAXBUFFER_SIZE,
+    encoding: 'utf8',
+  }, opts);
 
-/* Copied from the node-tar repo and modified to meet
- * tar-stream coding standard.
- *
- * Source: https://github.com/npm/node-tar/blob/51b6627a1f357d2eb433e7378e5f05e83b7aa6cd/lib/header.js#L349
- */
-function parse256 (buf) {
-  // first byte MUST be either 80 or FF
-  // 80 for positive, FF for 2's comp
-  var positive
-  if (buf[0] === 0x80) positive = true
-  else if (buf[0] === 0xFF) positive = false
-  else return null
+  var c = child.exec(cmd, opts, function (err, stdout, stderr) {
+    if (callback) {
+      if (!err) {
+        callback(0, stdout, stderr);
+      } else if (err.code === undefined) {
+        // See issue #536
+        /* istanbul ignore next */
+        callback(1, stdout, stderr);
+      } else {
+        callback(err.code, stdout, stderr);
+      }
+    }
+  });
 
-  // build up a base-256 tuple from the least sig to the highest
-  var tuple = []
-  for (var i = buf.length - 1; i > 0; i--) {
-    var byte = buf[i]
-    if (positive) tuple.push(byte)
-    else tuple.push(0xFF - byte)
-  }
+  if (pipe) c.stdin.end(pipe);
 
-  var sum = 0
-  var l = tuple.length
-  for (i = 0; i < l; i++) {
-    sum += tuple[i] * Math.pow(256, i)
+  if (!opts.silent) {
+    c.stdout.pipe(process.stdout);
+    c.stderr.pipe(process.stderr);
   }
 
-  return positive ? sum : -1 * sum
+  return c;
 }
 
-var decodeOct = function (val, offset, length) {
-  val = val.slice(offset, offset + length)
-  offset = 0
-
-  // If prefixed with 0x80 then parse as a base-256 integer
-  if (val[offset] & 0x80) {
-    return parse256(val)
-  } else {
-    // Older versions of tar can prefix with spaces
-    while (offset < val.length && val[offset] === 32) offset++
-    var end = clamp(indexOf(val, 32, offset, val.length), val.length, val.length)
-    while (offset < end && val[offset] === 0) offset++
-    if (end === offset) return 0
-    return parseInt(val.slice(offset, end).toString(), 8)
-  }
-}
+//@
+//@ ### exec(command [, options] [, callback])
+//@
+//@ Available options:
+//@
+//@ + `async`: Asynchronous execution. If a callback is provided, it will be set to
+//@   `true`, regardless of the passed value (default: `false`).
+//@ + `silent`: Do not echo program output to console (default: `false`).
+//@ + `encoding`: Character encoding to use. Affects the values returned to stdout and stderr, and
+//@   what is written to stdout and stderr when not in silent mode (default: `'utf8'`).
+//@ + and any option available to Node.js's
+//@   [`child_process.exec()`](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback)
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ var version = exec('node --version', {silent:true}).stdout;
+//@
+//@ var child = exec('some_long_running_process', {async:true});
+//@ child.stdout.on('data', function(data) {
+//@   /* ... do something with data ... */
+//@ });
+//@
+//@ exec('some_long_running_process', function(code, stdout, stderr) {
+//@   console.log('Exit code:', code);
+//@   console.log('Program output:', stdout);
+//@   console.log('Program stderr:', stderr);
+//@ });
+//@ ```
+//@
+//@ Executes the given `command` _synchronously_, unless otherwise specified.  When in synchronous
+//@ mode, this returns a `ShellString` (compatible with ShellJS v0.6.x, which returns an object
+//@ of the form `{ code:..., stdout:... , stderr:... }`). Otherwise, this returns the child process
+//@ object, and the `callback` receives the arguments `(code, stdout, stderr)`.
+//@
+//@ Not seeing the behavior you want? `exec()` runs everything through `sh`
+//@ by default (or `cmd.exe` on Windows), which differs from `bash`. If you
+//@ need bash-specific behavior, try out the `{shell: 'path/to/bash'}` option.
+function _exec(command, options, callback) {
+  options = options || {};
+  if (!command) common.error('must specify command');
 
-var decodeStr = function (val, offset, length, encoding) {
-  return val.slice(offset, indexOf(val, 0, offset, offset + length)).toString(encoding)
-}
+  var pipe = common.readFromPipe();
 
-var addLength = function (str) {
-  var len = Buffer.byteLength(str)
-  var digits = Math.floor(Math.log(len) / Math.log(10)) + 1
-  if (len + digits >= Math.pow(10, digits)) digits++
+  // Callback is defined instead of options.
+  if (typeof options === 'function') {
+    callback = options;
+    options = { async: true };
+  }
 
-  return (len + digits) + str
-}
+  // Callback is defined with options.
+  if (typeof options === 'object' && typeof callback === 'function') {
+    options.async = true;
+  }
 
-exports.decodeLongPath = function (buf, encoding) {
-  return decodeStr(buf, 0, buf.length, encoding)
-}
+  options = common.extend({
+    silent: common.config.silent,
+    async: false,
+  }, options);
 
-exports.encodePax = function (opts) { // TODO: encode more stuff in pax
-  var result = ''
-  if (opts.name) result += addLength(' path=' + opts.name + '\n')
-  if (opts.linkname) result += addLength(' linkpath=' + opts.linkname + '\n')
-  var pax = opts.pax
-  if (pax) {
-    for (var key in pax) {
-      result += addLength(' ' + key + '=' + pax[key] + '\n')
-    }
+  if (options.async) {
+    return execAsync(command, options, pipe, callback);
+  } else {
+    return execSync(command, options, pipe);
   }
-  return Buffer.from(result)
 }
+module.exports = _exec;
 
-exports.decodePax = function (buf) {
-  var result = {}
 
-  while (buf.length) {
-    var i = 0
-    while (i < buf.length && buf[i] !== 32) i++
-    var len = parseInt(buf.slice(0, i).toString(), 10)
-    if (!len) return result
+/***/ }),
 
-    var b = buf.slice(i + 1, len - 1).toString()
-    var keyIndex = b.indexOf('=')
-    if (keyIndex === -1) return result
-    result[b.slice(0, keyIndex)] = b.slice(keyIndex + 1)
+/***/ 47838:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    buf = buf.slice(len)
-  }
+var path = __nccwpck_require__(71017);
+var common = __nccwpck_require__(53687);
+var _ls = __nccwpck_require__(35561);
 
-  return result
-}
+common.register('find', _find, {});
 
-exports.encode = function (opts) {
-  var buf = alloc(512)
-  var name = opts.name
-  var prefix = ''
+//@
+//@ ### find(path [, path ...])
+//@ ### find(path_array)
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ find('src', 'lib');
+//@ find(['src', 'lib']); // same as above
+//@ find('.').filter(function(file) { return file.match(/\.js$/); });
+//@ ```
+//@
+//@ Returns array of all files (however deep) in the given paths.
+//@
+//@ The main difference from `ls('-R', path)` is that the resulting file names
+//@ include the base directories (e.g., `lib/resources/file1` instead of just `file1`).
+function _find(options, paths) {
+  if (!paths) {
+    common.error('no path specified');
+  } else if (typeof paths === 'string') {
+    paths = [].slice.call(arguments, 1);
+  }
 
-  if (opts.typeflag === 5 && name[name.length - 1] !== '/') name += '/'
-  if (Buffer.byteLength(name) !== name.length) return null // utf-8
+  var list = [];
 
-  while (Buffer.byteLength(name) > 100) {
-    var i = name.indexOf('/')
-    if (i === -1) return null
-    prefix += prefix ? '/' + name.slice(0, i) : name.slice(0, i)
-    name = name.slice(i + 1)
+  function pushFile(file) {
+    if (process.platform === 'win32') {
+      file = file.replace(/\\/g, '/');
+    }
+    list.push(file);
   }
 
-  if (Buffer.byteLength(name) > 100 || Buffer.byteLength(prefix) > 155) return null
-  if (opts.linkname && Buffer.byteLength(opts.linkname) > 100) return null
+  // why not simply do `ls('-R', paths)`? because the output wouldn't give the base dirs
+  // to get the base dir in the output, we need instead `ls('-R', 'dir/*')` for every directory
 
-  buf.write(name)
-  buf.write(encodeOct(opts.mode & MASK, 6), 100)
-  buf.write(encodeOct(opts.uid, 6), 108)
-  buf.write(encodeOct(opts.gid, 6), 116)
-  buf.write(encodeOct(opts.size, 11), 124)
-  buf.write(encodeOct((opts.mtime.getTime() / 1000) | 0, 11), 136)
+  paths.forEach(function (file) {
+    var stat;
+    try {
+      stat = common.statFollowLinks(file);
+    } catch (e) {
+      common.error('no such file or directory: ' + file);
+    }
 
-  buf[156] = ZERO_OFFSET + toTypeflag(opts.type)
+    pushFile(file);
 
-  if (opts.linkname) buf.write(opts.linkname, 157)
+    if (stat.isDirectory()) {
+      _ls({ recursive: true, all: true }, file).forEach(function (subfile) {
+        pushFile(path.join(file, subfile));
+      });
+    }
+  });
 
-  USTAR_MAGIC.copy(buf, MAGIC_OFFSET)
-  USTAR_VER.copy(buf, VERSION_OFFSET)
-  if (opts.uname) buf.write(opts.uname, 265)
-  if (opts.gname) buf.write(opts.gname, 297)
-  buf.write(encodeOct(opts.devmajor || 0, 6), 329)
-  buf.write(encodeOct(opts.devminor || 0, 6), 337)
+  return list;
+}
+module.exports = _find;
 
-  if (prefix) buf.write(prefix, 345)
 
-  buf.write(encodeOct(cksum(buf), 6), 148)
+/***/ }),
 
-  return buf
-}
+/***/ 17417:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-exports.decode = function (buf, filenameEncoding, allowUnknownFormat) {
-  var typeflag = buf[156] === 0 ? 0 : buf[156] - ZERO_OFFSET
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
 
-  var name = decodeStr(buf, 0, 100, filenameEncoding)
-  var mode = decodeOct(buf, 100, 8)
-  var uid = decodeOct(buf, 108, 8)
-  var gid = decodeOct(buf, 116, 8)
-  var size = decodeOct(buf, 124, 12)
-  var mtime = decodeOct(buf, 136, 12)
-  var type = toType(typeflag)
-  var linkname = buf[157] === 0 ? null : decodeStr(buf, 157, 100, filenameEncoding)
-  var uname = decodeStr(buf, 265, 32)
-  var gname = decodeStr(buf, 297, 32)
-  var devmajor = decodeOct(buf, 329, 8)
-  var devminor = decodeOct(buf, 337, 8)
+common.register('grep', _grep, {
+  globStart: 2, // don't glob-expand the regex
+  canReceivePipe: true,
+  cmdOptions: {
+    'v': 'inverse',
+    'l': 'nameOnly',
+    'i': 'ignoreCase',
+  },
+});
 
-  var c = cksum(buf)
+//@
+//@ ### grep([options,] regex_filter, file [, file ...])
+//@ ### grep([options,] regex_filter, file_array)
+//@
+//@ Available options:
+//@
+//@ + `-v`: Invert `regex_filter` (only print non-matching lines).
+//@ + `-l`: Print only filenames of matching files.
+//@ + `-i`: Ignore case.
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ grep('-v', 'GLOBAL_VARIABLE', '*.js');
+//@ grep('GLOBAL_VARIABLE', '*.js');
+//@ ```
+//@
+//@ Reads input string from given files and returns a string containing all lines of the
+//@ file that match the given `regex_filter`.
+function _grep(options, regex, files) {
+  // Check if this is coming from a pipe
+  var pipe = common.readFromPipe();
 
-  // checksum is still initial value if header was null.
-  if (c === 8 * 32) return null
+  if (!files && !pipe) common.error('no paths given', 2);
 
-  // valid checksum
-  if (c !== decodeOct(buf, 148, 8)) throw new Error('Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?')
+  files = [].slice.call(arguments, 2);
 
-  if (USTAR_MAGIC.compare(buf, MAGIC_OFFSET, MAGIC_OFFSET + 6) === 0) {
-    // ustar (posix) format.
-    // prepend prefix, if present.
-    if (buf[345]) name = decodeStr(buf, 345, 155, filenameEncoding) + '/' + name
-  } else if (GNU_MAGIC.compare(buf, MAGIC_OFFSET, MAGIC_OFFSET + 6) === 0 &&
-             GNU_VER.compare(buf, VERSION_OFFSET, VERSION_OFFSET + 2) === 0) {
-    // 'gnu'/'oldgnu' format. Similar to ustar, but has support for incremental and
-    // multi-volume tarballs.
-  } else {
-    if (!allowUnknownFormat) {
-      throw new Error('Invalid tar header: unknown format.')
-    }
+  if (pipe) {
+    files.unshift('-');
   }
 
-  // to support old tar versions that use trailing / to indicate dirs
-  if (typeflag === 0 && name && name[name.length - 1] === '/') typeflag = 5
-
-  return {
-    name,
-    mode,
-    uid,
-    gid,
-    size,
-    mtime: new Date(1000 * mtime),
-    type,
-    linkname,
-    uname,
-    gname,
-    devmajor,
-    devminor
+  var grep = [];
+  if (options.ignoreCase) {
+    regex = new RegExp(regex, 'i');
   }
-}
-
-
-/***/ }),
+  files.forEach(function (file) {
+    if (!fs.existsSync(file) && file !== '-') {
+      common.error('no such file or directory: ' + file, 2, { continue: true });
+      return;
+    }
 
-/***/ 2283:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+    var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8');
+    if (options.nameOnly) {
+      if (contents.match(regex)) {
+        grep.push(file);
+      }
+    } else {
+      var lines = contents.split('\n');
+      lines.forEach(function (line) {
+        var matched = line.match(regex);
+        if ((options.inverse && !matched) || (!options.inverse && matched)) {
+          grep.push(line);
+        }
+      });
+    }
+  });
 
-exports.extract = __nccwpck_require__(57882)
-exports.pack = __nccwpck_require__(94930)
+  return grep.join('\n') + '\n';
+}
+module.exports = _grep;
 
 
 /***/ }),
 
-/***/ 94930:
+/***/ 6613:
 /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-var constants = __nccwpck_require__(73186)
-var eos = __nccwpck_require__(81205)
-var inherits = __nccwpck_require__(44124)
-var alloc = Buffer.alloc
-
-var Readable = (__nccwpck_require__(51642).Readable)
-var Writable = (__nccwpck_require__(51642).Writable)
-var StringDecoder = (__nccwpck_require__(71576).StringDecoder)
-
-var headers = __nccwpck_require__(68860)
-
-var DMODE = parseInt('755', 8)
-var FMODE = parseInt('644', 8)
-
-var END_OF_TAR = alloc(1024)
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
 
-var noop = function () {}
+common.register('head', _head, {
+  canReceivePipe: true,
+  cmdOptions: {
+    'n': 'numLines',
+  },
+});
 
-var overflow = function (self, size) {
-  size &= 511
-  if (size) self.push(END_OF_TAR.slice(0, 512 - size))
-}
+// Reads |numLines| lines or the entire file, whichever is less.
+function readSomeLines(file, numLines) {
+  var buf = common.buffer();
+  var bufLength = buf.length;
+  var bytesRead = bufLength;
+  var pos = 0;
 
-function modeToType (mode) {
-  switch (mode & constants.S_IFMT) {
-    case constants.S_IFBLK: return 'block-device'
-    case constants.S_IFCHR: return 'character-device'
-    case constants.S_IFDIR: return 'directory'
-    case constants.S_IFIFO: return 'fifo'
-    case constants.S_IFLNK: return 'symlink'
+  var fdr = fs.openSync(file, 'r');
+  var numLinesRead = 0;
+  var ret = '';
+  while (bytesRead === bufLength && numLinesRead < numLines) {
+    bytesRead = fs.readSync(fdr, buf, 0, bufLength, pos);
+    var bufStr = buf.toString('utf8', 0, bytesRead);
+    numLinesRead += bufStr.split('\n').length - 1;
+    ret += bufStr;
+    pos += bytesRead;
   }
 
-  return 'file'
+  fs.closeSync(fdr);
+  return ret;
 }
 
-var Sink = function (to) {
-  Writable.call(this)
-  this.written = 0
-  this._to = to
-  this._destroyed = false
-}
+//@
+//@ ### head([{'-n': \},] file [, file ...])
+//@ ### head([{'-n': \},] file_array)
+//@
+//@ Available options:
+//@
+//@ + `-n `: Show the first `` lines of the files
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ var str = head({'-n': 1}, 'file*.txt');
+//@ var str = head('file1', 'file2');
+//@ var str = head(['file1', 'file2']); // same as above
+//@ ```
+//@
+//@ Read the start of a file.
+function _head(options, files) {
+  var head = [];
+  var pipe = common.readFromPipe();
 
-inherits(Sink, Writable)
+  if (!files && !pipe) common.error('no paths given');
 
-Sink.prototype._write = function (data, enc, cb) {
-  this.written += data.length
-  if (this._to.push(data)) return cb()
-  this._to._drain = cb
-}
+  var idx = 1;
+  if (options.numLines === true) {
+    idx = 2;
+    options.numLines = Number(arguments[1]);
+  } else if (options.numLines === false) {
+    options.numLines = 10;
+  }
+  files = [].slice.call(arguments, idx);
 
-Sink.prototype.destroy = function () {
-  if (this._destroyed) return
-  this._destroyed = true
-  this.emit('close')
-}
+  if (pipe) {
+    files.unshift('-');
+  }
 
-var LinkSink = function () {
-  Writable.call(this)
-  this.linkname = ''
-  this._decoder = new StringDecoder('utf-8')
-  this._destroyed = false
-}
+  var shouldAppendNewline = false;
+  files.forEach(function (file) {
+    if (file !== '-') {
+      if (!fs.existsSync(file)) {
+        common.error('no such file or directory: ' + file, { continue: true });
+        return;
+      } else if (common.statFollowLinks(file).isDirectory()) {
+        common.error("error reading '" + file + "': Is a directory", {
+          continue: true,
+        });
+        return;
+      }
+    }
 
-inherits(LinkSink, Writable)
+    var contents;
+    if (file === '-') {
+      contents = pipe;
+    } else if (options.numLines < 0) {
+      contents = fs.readFileSync(file, 'utf8');
+    } else {
+      contents = readSomeLines(file, options.numLines);
+    }
 
-LinkSink.prototype._write = function (data, enc, cb) {
-  this.linkname += this._decoder.write(data)
-  cb()
-}
+    var lines = contents.split('\n');
+    var hasTrailingNewline = (lines[lines.length - 1] === '');
+    if (hasTrailingNewline) {
+      lines.pop();
+    }
+    shouldAppendNewline = (hasTrailingNewline || options.numLines < lines.length);
 
-LinkSink.prototype.destroy = function () {
-  if (this._destroyed) return
-  this._destroyed = true
-  this.emit('close')
-}
+    head = head.concat(lines.slice(0, options.numLines));
+  });
 
-var Void = function () {
-  Writable.call(this)
-  this._destroyed = false
+  if (shouldAppendNewline) {
+    head.push(''); // to add a trailing newline once we join
+  }
+  return head.join('\n');
 }
+module.exports = _head;
 
-inherits(Void, Writable)
 
-Void.prototype._write = function (data, enc, cb) {
-  cb(new Error('No body allowed for this entry'))
-}
+/***/ }),
 
-Void.prototype.destroy = function () {
-  if (this._destroyed) return
-  this._destroyed = true
-  this.emit('close')
-}
+/***/ 15787:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-var Pack = function (opts) {
-  if (!(this instanceof Pack)) return new Pack(opts)
-  Readable.call(this, opts)
+var fs = __nccwpck_require__(57147);
+var path = __nccwpck_require__(71017);
+var common = __nccwpck_require__(53687);
 
-  this._drain = noop
-  this._finalized = false
-  this._finalizing = false
-  this._destroyed = false
-  this._stream = null
-}
-
-inherits(Pack, Readable)
-
-Pack.prototype.entry = function (header, buffer, callback) {
-  if (this._stream) throw new Error('already piping an entry')
-  if (this._finalized || this._destroyed) return
-
-  if (typeof buffer === 'function') {
-    callback = buffer
-    buffer = null
-  }
-
-  if (!callback) callback = noop
-
-  var self = this
-
-  if (!header.size || header.type === 'symlink') header.size = 0
-  if (!header.type) header.type = modeToType(header.mode)
-  if (!header.mode) header.mode = header.type === 'directory' ? DMODE : FMODE
-  if (!header.uid) header.uid = 0
-  if (!header.gid) header.gid = 0
-  if (!header.mtime) header.mtime = new Date()
+common.register('ln', _ln, {
+  cmdOptions: {
+    's': 'symlink',
+    'f': 'force',
+  },
+});
 
-  if (typeof buffer === 'string') buffer = Buffer.from(buffer)
-  if (Buffer.isBuffer(buffer)) {
-    header.size = buffer.length
-    this._encode(header)
-    var ok = this.push(buffer)
-    overflow(self, header.size)
-    if (ok) process.nextTick(callback)
-    else this._drain = callback
-    return new Void()
+//@
+//@ ### ln([options,] source, dest)
+//@
+//@ Available options:
+//@
+//@ + `-s`: symlink
+//@ + `-f`: force
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ ln('file', 'newlink');
+//@ ln('-sf', 'file', 'existing');
+//@ ```
+//@
+//@ Links `source` to `dest`. Use `-f` to force the link, should `dest` already exist.
+function _ln(options, source, dest) {
+  if (!source || !dest) {
+    common.error('Missing  and/or ');
   }
 
-  if (header.type === 'symlink' && !header.linkname) {
-    var linkSink = new LinkSink()
-    eos(linkSink, function (err) {
-      if (err) { // stream was closed
-        self.destroy()
-        return callback(err)
-      }
+  source = String(source);
+  var sourcePath = path.normalize(source).replace(RegExp(path.sep + '$'), '');
+  var isAbsolute = (path.resolve(source) === sourcePath);
+  dest = path.resolve(process.cwd(), String(dest));
 
-      header.linkname = linkSink.linkname
-      self._encode(header)
-      callback()
-    })
+  if (fs.existsSync(dest)) {
+    if (!options.force) {
+      common.error('Destination file exists', { continue: true });
+    }
 
-    return linkSink
+    fs.unlinkSync(dest);
   }
 
-  this._encode(header)
+  if (options.symlink) {
+    var isWindows = process.platform === 'win32';
+    var linkType = isWindows ? 'file' : null;
+    var resolvedSourcePath = isAbsolute ? sourcePath : path.resolve(process.cwd(), path.dirname(dest), source);
+    if (!fs.existsSync(resolvedSourcePath)) {
+      common.error('Source file does not exist', { continue: true });
+    } else if (isWindows && common.statFollowLinks(resolvedSourcePath).isDirectory()) {
+      linkType = 'junction';
+    }
 
-  if (header.type !== 'file' && header.type !== 'contiguous-file') {
-    process.nextTick(callback)
-    return new Void()
+    try {
+      fs.symlinkSync(linkType === 'junction' ? resolvedSourcePath : source, dest, linkType);
+    } catch (err) {
+      common.error(err.message);
+    }
+  } else {
+    if (!fs.existsSync(source)) {
+      common.error('Source file does not exist', { continue: true });
+    }
+    try {
+      fs.linkSync(source, dest);
+    } catch (err) {
+      common.error(err.message);
+    }
   }
+  return '';
+}
+module.exports = _ln;
 
-  var sink = new Sink(this)
-
-  this._stream = sink
 
-  eos(sink, function (err) {
-    self._stream = null
+/***/ }),
 
-    if (err) { // stream was closed
-      self.destroy()
-      return callback(err)
-    }
+/***/ 35561:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-    if (sink.written !== header.size) { // corrupting tar
-      self.destroy()
-      return callback(new Error('size mismatch'))
-    }
+var path = __nccwpck_require__(71017);
+var fs = __nccwpck_require__(57147);
+var common = __nccwpck_require__(53687);
+var glob = __nccwpck_require__(91957);
 
-    overflow(self, header.size)
-    if (self._finalizing) self.finalize()
-    callback()
-  })
+var globPatternRecursive = path.sep + '**';
 
-  return sink
-}
+common.register('ls', _ls, {
+  cmdOptions: {
+    'R': 'recursive',
+    'A': 'all',
+    'L': 'link',
+    'a': 'all_deprecated',
+    'd': 'directory',
+    'l': 'long',
+  },
+});
 
-Pack.prototype.finalize = function () {
-  if (this._stream) {
-    this._finalizing = true
-    return
+//@
+//@ ### ls([options,] [path, ...])
+//@ ### ls([options,] path_array)
+//@
+//@ Available options:
+//@
+//@ + `-R`: recursive
+//@ + `-A`: all files (include files beginning with `.`, except for `.` and `..`)
+//@ + `-L`: follow symlinks
+//@ + `-d`: list directories themselves, not their contents
+//@ + `-l`: list objects representing each file, each with fields containing `ls
+//@         -l` output fields. See
+//@         [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats)
+//@         for more info
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ ls('projs/*.js');
+//@ ls('-R', '/users/me', '/tmp');
+//@ ls('-R', ['/users/me', '/tmp']); // same as above
+//@ ls('-l', 'file.txt'); // { name: 'file.txt', mode: 33188, nlink: 1, ...}
+//@ ```
+//@
+//@ Returns array of files in the given `path`, or files in
+//@ the current directory if no `path` is  provided.
+function _ls(options, paths) {
+  if (options.all_deprecated) {
+    // We won't support the -a option as it's hard to image why it's useful
+    // (it includes '.' and '..' in addition to '.*' files)
+    // For backwards compatibility we'll dump a deprecated message and proceed as before
+    common.log('ls: Option -a is deprecated. Use -A instead');
+    options.all = true;
   }
 
-  if (this._finalized) return
-  this._finalized = true
-  this.push(END_OF_TAR)
-  this.push(null)
-}
-
-Pack.prototype.destroy = function (err) {
-  if (this._destroyed) return
-  this._destroyed = true
+  if (!paths) {
+    paths = ['.'];
+  } else {
+    paths = [].slice.call(arguments, 1);
+  }
 
-  if (err) this.emit('error', err)
-  this.emit('close')
-  if (this._stream && this._stream.destroy) this._stream.destroy()
-}
+  var list = [];
 
-Pack.prototype._encode = function (header) {
-  if (!header.pax) {
-    var buf = headers.encode(header)
-    if (buf) {
-      this.push(buf)
-      return
+  function pushFile(abs, relName, stat) {
+    if (process.platform === 'win32') {
+      relName = relName.replace(/\\/g, '/');
+    }
+    if (options.long) {
+      stat = stat || (options.link ? common.statFollowLinks(abs) : common.statNoFollowLinks(abs));
+      list.push(addLsAttributes(relName, stat));
+    } else {
+      // list.push(path.relative(rel || '.', file));
+      list.push(relName);
     }
   }
-  this._encodePax(header)
-}
 
-Pack.prototype._encodePax = function (header) {
-  var paxHeader = headers.encodePax({
-    name: header.name,
-    linkname: header.linkname,
-    pax: header.pax
-  })
+  paths.forEach(function (p) {
+    var stat;
 
-  var newHeader = {
-    name: 'PaxHeader',
-    mode: header.mode,
-    uid: header.uid,
-    gid: header.gid,
-    size: paxHeader.length,
-    mtime: header.mtime,
-    type: 'pax-header',
-    linkname: header.linkname && 'PaxHeader',
-    uname: header.uname,
-    gname: header.gname,
-    devmajor: header.devmajor,
-    devminor: header.devminor
-  }
+    try {
+      stat = options.link ? common.statFollowLinks(p) : common.statNoFollowLinks(p);
+      // follow links to directories by default
+      if (stat.isSymbolicLink()) {
+        /* istanbul ignore next */
+        // workaround for https://github.com/shelljs/shelljs/issues/795
+        // codecov seems to have a bug that miscalculate this block as uncovered.
+        // but according to nyc report this block does get covered.
+        try {
+          var _stat = common.statFollowLinks(p);
+          if (_stat.isDirectory()) {
+            stat = _stat;
+          }
+        } catch (_) {} // bad symlink, treat it like a file
+      }
+    } catch (e) {
+      common.error('no such file or directory: ' + p, 2, { continue: true });
+      return;
+    }
 
-  this.push(headers.encode(newHeader))
-  this.push(paxHeader)
-  overflow(this, paxHeader.length)
+    // If the stat succeeded
+    if (stat.isDirectory() && !options.directory) {
+      if (options.recursive) {
+        // use glob, because it's simple
+        glob.sync(p + globPatternRecursive, { dot: options.all, follow: options.link })
+          .forEach(function (item) {
+            // Glob pattern returns the directory itself and needs to be filtered out.
+            if (path.relative(p, item)) {
+              pushFile(item, path.relative(p, item));
+            }
+          });
+      } else if (options.all) {
+        // use fs.readdirSync, because it's fast
+        fs.readdirSync(p).forEach(function (item) {
+          pushFile(path.join(p, item), item);
+        });
+      } else {
+        // use fs.readdirSync and then filter out secret files
+        fs.readdirSync(p).forEach(function (item) {
+          if (item[0] !== '.') {
+            pushFile(path.join(p, item), item);
+          }
+        });
+      }
+    } else {
+      pushFile(p, p, stat);
+    }
+  });
 
-  newHeader.size = header.size
-  newHeader.type = header.type
-  this.push(headers.encode(newHeader))
+  // Add methods, to make this more compatible with ShellStrings
+  return list;
 }
 
-Pack.prototype._read = function (n) {
-  var drain = this._drain
-  this._drain = noop
-  drain()
+function addLsAttributes(pathName, stats) {
+  // Note: this object will contain more information than .toString() returns
+  stats.name = pathName;
+  stats.toString = function () {
+    // Return a string resembling unix's `ls -l` format
+    return [this.mode, this.nlink, this.uid, this.gid, this.size, this.mtime, this.name].join(' ');
+  };
+  return stats;
 }
 
-module.exports = Pack
+module.exports = _ls;
 
 
 /***/ }),
 
-/***/ 8517:
+/***/ 72695:
 /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-/*!
- * Tmp
- *
- * Copyright (c) 2011-2017 KARASZI Istvan 
- *
- * MIT Licensed
- */
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
+var path = __nccwpck_require__(71017);
 
-/*
- * Module dependencies.
- */
-const fs = __nccwpck_require__(57147);
-const os = __nccwpck_require__(22037);
-const path = __nccwpck_require__(71017);
-const crypto = __nccwpck_require__(6113);
-const _c = { fs: fs.constants, os: os.constants };
-const rimraf = __nccwpck_require__(14959);
+common.register('mkdir', _mkdir, {
+  cmdOptions: {
+    'p': 'fullpath',
+  },
+});
 
-/*
- * The working inner variables.
- */
-const
-  // the random characters to choose from
-  RANDOM_CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',
+// Recursively creates `dir`
+function mkdirSyncRecursive(dir) {
+  var baseDir = path.dirname(dir);
 
-  TEMPLATE_PATTERN = /XXXXXX/,
+  // Prevents some potential problems arising from malformed UNCs or
+  // insufficient permissions.
+  /* istanbul ignore next */
+  if (baseDir === dir) {
+    common.error('dirname() failed: [' + dir + ']');
+  }
 
-  DEFAULT_TRIES = 3,
+  // Base dir exists, no recursion necessary
+  if (fs.existsSync(baseDir)) {
+    fs.mkdirSync(dir, parseInt('0777', 8));
+    return;
+  }
 
-  CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR),
+  // Base dir does not exist, go recursive
+  mkdirSyncRecursive(baseDir);
 
-  // constants are off on the windows platform and will not match the actual errno codes
-  IS_WIN32 = os.platform() === 'win32',
-  EBADF = _c.EBADF || _c.os.errno.EBADF,
-  ENOENT = _c.ENOENT || _c.os.errno.ENOENT,
+  // Base dir created, can create dir
+  fs.mkdirSync(dir, parseInt('0777', 8));
+}
 
-  DIR_MODE = 0o700 /* 448 */,
-  FILE_MODE = 0o600 /* 384 */,
+//@
+//@ ### mkdir([options,] dir [, dir ...])
+//@ ### mkdir([options,] dir_array)
+//@
+//@ Available options:
+//@
+//@ + `-p`: full path (and create intermediate directories, if necessary)
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ mkdir('-p', '/tmp/a/b/c/d', '/tmp/e/f/g');
+//@ mkdir('-p', ['/tmp/a/b/c/d', '/tmp/e/f/g']); // same as above
+//@ ```
+//@
+//@ Creates directories.
+function _mkdir(options, dirs) {
+  if (!dirs) common.error('no paths given');
 
-  EXIT = 'exit',
+  if (typeof dirs === 'string') {
+    dirs = [].slice.call(arguments, 1);
+  }
+  // if it's array leave it as it is
 
-  // this will hold the objects need to be removed on exit
-  _removeObjects = [],
+  dirs.forEach(function (dir) {
+    try {
+      var stat = common.statNoFollowLinks(dir);
+      if (!options.fullpath) {
+        common.error('path already exists: ' + dir, { continue: true });
+      } else if (stat.isFile()) {
+        common.error('cannot create directory ' + dir + ': File exists', { continue: true });
+      }
+      return; // skip dir
+    } catch (e) {
+      // do nothing
+    }
 
-  // API change in fs.rmdirSync leads to error when passing in a second parameter, e.g. the callback
-  FN_RMDIR_SYNC = fs.rmdirSync.bind(fs),
-  FN_RIMRAF_SYNC = rimraf.sync;
+    // Base dir does not exist, and no -p option given
+    var baseDir = path.dirname(dir);
+    if (!fs.existsSync(baseDir) && !options.fullpath) {
+      common.error('no such file or directory: ' + baseDir, { continue: true });
+      return; // skip dir
+    }
 
-let
-  _gracefulCleanup = false;
+    try {
+      if (options.fullpath) {
+        mkdirSyncRecursive(path.resolve(dir));
+      } else {
+        fs.mkdirSync(dir, parseInt('0777', 8));
+      }
+    } catch (e) {
+      var reason;
+      if (e.code === 'EACCES') {
+        reason = 'Permission denied';
+      } else if (e.code === 'ENOTDIR' || e.code === 'ENOENT') {
+        reason = 'Not a directory';
+      } else {
+        /* istanbul ignore next */
+        throw e;
+      }
+      common.error('cannot create directory ' + dir + ': ' + reason, { continue: true });
+    }
+  });
+  return '';
+} // mkdir
+module.exports = _mkdir;
 
-/**
- * Gets a temporary file name.
- *
- * @param {(Options|tmpNameCallback)} options options or callback
- * @param {?tmpNameCallback} callback the callback function
- */
-function tmpName(options, callback) {
-  const
-    args = _parseArguments(options, callback),
-    opts = args[0],
-    cb = args[1];
 
-  try {
-    _assertAndSanitizeOptions(opts);
-  } catch (err) {
-    return cb(err);
-  }
+/***/ }),
 
-  let tries = opts.tries;
-  (function _getUniqueName() {
-    try {
-      const name = _generateTmpName(opts);
+/***/ 39849:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-      // check whether the path exists then retry if needed
-      fs.stat(name, function (err) {
-        /* istanbul ignore else */
-        if (!err) {
-          /* istanbul ignore else */
-          if (tries-- > 0) return _getUniqueName();
+var fs = __nccwpck_require__(57147);
+var path = __nccwpck_require__(71017);
+var common = __nccwpck_require__(53687);
+var cp = __nccwpck_require__(34932);
+var rm = __nccwpck_require__(22830);
 
-          return cb(new Error('Could not get a unique tmp filename, max tries reached ' + name));
-        }
+common.register('mv', _mv, {
+  cmdOptions: {
+    'f': '!no_force',
+    'n': 'no_force',
+  },
+});
 
-        cb(null, name);
-      });
-    } catch (err) {
-      cb(err);
-    }
-  }());
+// Checks if cureent file was created recently
+function checkRecentCreated(sources, index) {
+  var lookedSource = sources[index];
+  return sources.slice(0, index).some(function (src) {
+    return path.basename(src) === path.basename(lookedSource);
+  });
 }
 
-/**
- * Synchronous version of tmpName.
- *
- * @param {Object} options
- * @returns {string} the generated random name
- * @throws {Error} if the options are invalid or could not generate a filename
- */
-function tmpNameSync(options) {
-  const
-    args = _parseArguments(options),
-    opts = args[0];
+//@
+//@ ### mv([options ,] source [, source ...], dest')
+//@ ### mv([options ,] source_array, dest')
+//@
+//@ Available options:
+//@
+//@ + `-f`: force (default behavior)
+//@ + `-n`: no-clobber
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ mv('-n', 'file', 'dir/');
+//@ mv('file1', 'file2', 'dir/');
+//@ mv(['file1', 'file2'], 'dir/'); // same as above
+//@ ```
+//@
+//@ Moves `source` file(s) to `dest`.
+function _mv(options, sources, dest) {
+  // Get sources, dest
+  if (arguments.length < 3) {
+    common.error('missing  and/or ');
+  } else if (arguments.length > 3) {
+    sources = [].slice.call(arguments, 1, arguments.length - 1);
+    dest = arguments[arguments.length - 1];
+  } else if (typeof sources === 'string') {
+    sources = [sources];
+  } else {
+    // TODO(nate): figure out if we actually need this line
+    common.error('invalid arguments');
+  }
 
-  _assertAndSanitizeOptions(opts);
+  var exists = fs.existsSync(dest);
+  var stats = exists && common.statFollowLinks(dest);
 
-  let tries = opts.tries;
-  do {
-    const name = _generateTmpName(opts);
-    try {
-      fs.statSync(name);
-    } catch (e) {
-      return name;
+  // Dest is not existing dir, but multiple sources given
+  if ((!exists || !stats.isDirectory()) && sources.length > 1) {
+    common.error('dest is not a directory (too many sources)');
+  }
+
+  // Dest is an existing file, but no -f given
+  if (exists && stats.isFile() && options.no_force) {
+    common.error('dest file already exists: ' + dest);
+  }
+
+  sources.forEach(function (src, srcIndex) {
+    if (!fs.existsSync(src)) {
+      common.error('no such file or directory: ' + src, { continue: true });
+      return; // skip file
     }
-  } while (tries-- > 0);
 
-  throw new Error('Could not get a unique tmp filename, max tries reached');
-}
+    // If here, src exists
 
-/**
- * Creates and opens a temporary file.
- *
- * @param {(Options|null|undefined|fileCallback)} options the config options or the callback function or null or undefined
- * @param {?fileCallback} callback
- */
-function file(options, callback) {
-  const
-    args = _parseArguments(options, callback),
-    opts = args[0],
-    cb = args[1];
+    // When copying to '/path/dir':
+    //    thisDest = '/path/dir/file1'
+    var thisDest = dest;
+    if (fs.existsSync(dest) && common.statFollowLinks(dest).isDirectory()) {
+      thisDest = path.normalize(dest + '/' + path.basename(src));
+    }
 
-  // gets a temporary filename
-  tmpName(opts, function _tmpNameCreated(err, name) {
-    /* istanbul ignore else */
-    if (err) return cb(err);
+    var thisDestExists = fs.existsSync(thisDest);
 
-    // create and open the file
-    fs.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err, fd) {
-      /* istanbu ignore else */
-      if (err) return cb(err);
+    if (thisDestExists && checkRecentCreated(sources, srcIndex)) {
+      // cannot overwrite file created recently in current execution, but we want to continue copying other files
+      if (!options.no_force) {
+        common.error("will not overwrite just-created '" + thisDest + "' with '" + src + "'", { continue: true });
+      }
+      return;
+    }
 
-      if (opts.discardDescriptor) {
-        return fs.close(fd, function _discardCallback(possibleErr) {
-          // the chance of getting an error on close here is rather low and might occur in the most edgiest cases only
-          return cb(possibleErr, name, undefined, _prepareTmpFileRemoveCallback(name, -1, opts, false));
-        });
-      } else {
-        // detachDescriptor passes the descriptor whereas discardDescriptor closes it, either way, we no longer care
-        // about the descriptor
-        const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
-        cb(null, name, fd, _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, false));
+    if (fs.existsSync(thisDest) && options.no_force) {
+      common.error('dest file already exists: ' + thisDest, { continue: true });
+      return; // skip file
+    }
+
+    if (path.resolve(src) === path.dirname(path.resolve(thisDest))) {
+      common.error('cannot move to self: ' + src, { continue: true });
+      return; // skip file
+    }
+
+    try {
+      fs.renameSync(src, thisDest);
+    } catch (e) {
+      /* istanbul ignore next */
+      if (e.code === 'EXDEV') {
+        // If we're trying to `mv` to an external partition, we'll actually need
+        // to perform a copy and then clean up the original file. If either the
+        // copy or the rm fails with an exception, we should allow this
+        // exception to pass up to the top level.
+        cp('-r', src, thisDest);
+        rm('-rf', src);
       }
-    });
-  });
-}
+    }
+  }); // forEach(src)
+  return '';
+} // mv
+module.exports = _mv;
 
-/**
- * Synchronous version of file.
- *
- * @param {Options} options
- * @returns {FileSyncObject} object consists of name, fd and removeCallback
- * @throws {Error} if cannot create a file
- */
-function fileSync(options) {
-  const
-    args = _parseArguments(options),
-    opts = args[0];
 
-  const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
-  const name = tmpNameSync(opts);
-  var fd = fs.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
-  /* istanbul ignore else */
-  if (opts.discardDescriptor) {
-    fs.closeSync(fd);
-    fd = undefined;
-  }
+/***/ }),
 
-  return {
-    name: name,
-    fd: fd,
-    removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, true)
-  };
-}
+/***/ 50227:
+/***/ (() => {
 
-/**
- * Creates a temporary directory.
- *
- * @param {(Options|dirCallback)} options the options or the callback function
- * @param {?dirCallback} callback
- */
-function dir(options, callback) {
-  const
-    args = _parseArguments(options, callback),
-    opts = args[0],
-    cb = args[1];
+// see dirs.js
 
-  // gets a temporary filename
-  tmpName(opts, function _tmpNameCreated(err, name) {
-    /* istanbul ignore else */
-    if (err) return cb(err);
 
-    // create the directory
-    fs.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err) {
-      /* istanbul ignore else */
-      if (err) return cb(err);
+/***/ }),
 
-      cb(null, name, _prepareTmpDirRemoveCallback(name, opts, false));
-    });
-  });
-}
+/***/ 44177:
+/***/ (() => {
 
-/**
- * Synchronous version of dir.
- *
- * @param {Options} options
- * @returns {DirSyncObject} object consists of name and removeCallback
- * @throws {Error} if it cannot create a directory
- */
-function dirSync(options) {
-  const
-    args = _parseArguments(options),
-    opts = args[0];
+// see dirs.js
 
-  const name = tmpNameSync(opts);
-  fs.mkdirSync(name, opts.mode || DIR_MODE);
 
-  return {
-    name: name,
-    removeCallback: _prepareTmpDirRemoveCallback(name, opts, true)
-  };
-}
+/***/ }),
 
-/**
- * Removes files asynchronously.
- *
- * @param {Object} fdPath
- * @param {Function} next
- * @private
- */
-function _removeFileAsync(fdPath, next) {
-  const _handler = function (err) {
-    if (err && !_isENOENT(err)) {
-      // reraise any unanticipated error
-      return next(err);
-    }
-    next();
-  };
+/***/ 58553:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-  if (0 <= fdPath[0])
-    fs.close(fdPath[0], function () {
-      fs.unlink(fdPath[1], _handler);
-    });
-  else fs.unlink(fdPath[1], _handler);
-}
+var path = __nccwpck_require__(71017);
+var common = __nccwpck_require__(53687);
 
-/**
- * Removes files synchronously.
- *
- * @param {Object} fdPath
- * @private
- */
-function _removeFileSync(fdPath) {
-  let rethrownException = null;
-  try {
-    if (0 <= fdPath[0]) fs.closeSync(fdPath[0]);
-  } catch (e) {
-    // reraise any unanticipated error
-    if (!_isEBADF(e) && !_isENOENT(e)) throw e;
-  } finally {
-    try {
-      fs.unlinkSync(fdPath[1]);
-    }
-    catch (e) {
-      // reraise any unanticipated error
-      if (!_isENOENT(e)) rethrownException = e;
-    }
-  }
-  if (rethrownException !== null) {
-    throw rethrownException;
-  }
+common.register('pwd', _pwd, {
+  allowGlobbing: false,
+});
+
+//@
+//@ ### pwd()
+//@
+//@ Returns the current directory.
+function _pwd() {
+  var pwd = path.resolve(process.cwd());
+  return pwd;
 }
+module.exports = _pwd;
 
-/**
- * Prepares the callback for removal of the temporary file.
- *
- * Returns either a sync callback or a async callback depending on whether
- * fileSync or file was called, which is expressed by the sync parameter.
- *
- * @param {string} name the path of the file
- * @param {number} fd file descriptor
- * @param {Object} opts
- * @param {boolean} sync
- * @returns {fileCallback | fileCallbackSync}
- * @private
- */
-function _prepareTmpFileRemoveCallback(name, fd, opts, sync) {
-  const removeCallbackSync = _prepareRemoveCallback(_removeFileSync, [fd, name], sync);
-  const removeCallback = _prepareRemoveCallback(_removeFileAsync, [fd, name], sync, removeCallbackSync);
 
-  if (!opts.keep) _removeObjects.unshift(removeCallbackSync);
+/***/ }),
 
-  return sync ? removeCallbackSync : removeCallback;
-}
+/***/ 22830:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-/**
- * Prepares the callback for removal of the temporary directory.
- *
- * Returns either a sync callback or a async callback depending on whether
- * tmpFileSync or tmpFile was called, which is expressed by the sync parameter.
- *
- * @param {string} name
- * @param {Object} opts
- * @param {boolean} sync
- * @returns {Function} the callback
- * @private
- */
-function _prepareTmpDirRemoveCallback(name, opts, sync) {
-  const removeFunction = opts.unsafeCleanup ? rimraf : fs.rmdir.bind(fs);
-  const removeFunctionSync = opts.unsafeCleanup ? FN_RIMRAF_SYNC : FN_RMDIR_SYNC;
-  const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name, sync);
-  const removeCallback = _prepareRemoveCallback(removeFunction, name, sync, removeCallbackSync);
-  if (!opts.keep) _removeObjects.unshift(removeCallbackSync);
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
 
-  return sync ? removeCallbackSync : removeCallback;
-}
+common.register('rm', _rm, {
+  cmdOptions: {
+    'f': 'force',
+    'r': 'recursive',
+    'R': 'recursive',
+  },
+});
 
-/**
- * Creates a guarded function wrapping the removeFunction call.
- *
- * The cleanup callback is save to be called multiple times.
- * Subsequent invocations will be ignored.
- *
- * @param {Function} removeFunction
- * @param {string} fileOrDirName
- * @param {boolean} sync
- * @param {cleanupCallbackSync?} cleanupCallbackSync
- * @returns {cleanupCallback | cleanupCallbackSync}
- * @private
- */
-function _prepareRemoveCallback(removeFunction, fileOrDirName, sync, cleanupCallbackSync) {
-  let called = false;
+// Recursively removes 'dir'
+// Adapted from https://github.com/ryanmcgrath/wrench-js
+//
+// Copyright (c) 2010 Ryan McGrath
+// Copyright (c) 2012 Artur Adib
+//
+// Licensed under the MIT License
+// http://www.opensource.org/licenses/mit-license.php
+function rmdirSyncRecursive(dir, force, fromSymlink) {
+  var files;
 
-  // if sync is true, the next parameter will be ignored
-  return function _cleanupCallback(next) {
+  files = fs.readdirSync(dir);
 
-    /* istanbul ignore else */
-    if (!called) {
-      // remove cleanupCallback from cache
-      const toRemove = cleanupCallbackSync || _cleanupCallback;
-      const index = _removeObjects.indexOf(toRemove);
-      /* istanbul ignore else */
-      if (index >= 0) _removeObjects.splice(index, 1);
+  // Loop through and delete everything in the sub-tree after checking it
+  for (var i = 0; i < files.length; i++) {
+    var file = dir + '/' + files[i];
+    var currFile = common.statNoFollowLinks(file);
 
-      called = true;
-      if (sync || removeFunction === FN_RMDIR_SYNC || removeFunction === FN_RIMRAF_SYNC) {
-        return removeFunction(fileOrDirName);
-      } else {
-        return removeFunction(fileOrDirName, next || function() {});
+    if (currFile.isDirectory()) { // Recursive function back to the beginning
+      rmdirSyncRecursive(file, force);
+    } else { // Assume it's a file - perhaps a try/catch belongs here?
+      if (force || isWriteable(file)) {
+        try {
+          common.unlinkSync(file);
+        } catch (e) {
+          /* istanbul ignore next */
+          common.error('could not remove file (code ' + e.code + '): ' + file, {
+            continue: true,
+          });
+        }
       }
     }
-  };
-}
+  }
 
-/**
- * The garbage collector.
- *
- * @private
- */
-function _garbageCollector() {
-  /* istanbul ignore else */
-  if (!_gracefulCleanup) return;
+  // if was directory was referenced through a symbolic link,
+  // the contents should be removed, but not the directory itself
+  if (fromSymlink) return;
 
-  // the function being called removes itself from _removeObjects,
-  // loop until _removeObjects is empty
-  while (_removeObjects.length) {
-    try {
-      _removeObjects[0]();
-    } catch (e) {
-      // already removed?
+  // Now that we know everything in the sub-tree has been deleted, we can delete the main directory.
+  // Huzzah for the shopkeep.
+
+  var result;
+  try {
+    // Retry on windows, sometimes it takes a little time before all the files in the directory are gone
+    var start = Date.now();
+
+    // TODO: replace this with a finite loop
+    for (;;) {
+      try {
+        result = fs.rmdirSync(dir);
+        if (fs.existsSync(dir)) throw { code: 'EAGAIN' };
+        break;
+      } catch (er) {
+        /* istanbul ignore next */
+        // In addition to error codes, also check if the directory still exists and loop again if true
+        if (process.platform === 'win32' && (er.code === 'ENOTEMPTY' || er.code === 'EBUSY' || er.code === 'EPERM' || er.code === 'EAGAIN')) {
+          if (Date.now() - start > 1000) throw er;
+        } else if (er.code === 'ENOENT') {
+          // Directory did not exist, deletion was successful
+          break;
+        } else {
+          throw er;
+        }
+      }
     }
+  } catch (e) {
+    common.error('could not remove directory (code ' + e.code + '): ' + dir, { continue: true });
   }
-}
 
-/**
- * Random name generator based on crypto.
- * Adapted from http://blog.tompawlak.org/how-to-generate-random-values-nodejs-javascript
- *
- * @param {number} howMany
- * @returns {string} the generated random name
- * @private
- */
-function _randomChars(howMany) {
-  let
-    value = [],
-    rnd = null;
+  return result;
+} // rmdirSyncRecursive
 
-  // make sure that we do not fail because we ran out of entropy
+// Hack to determine if file has write permissions for current user
+// Avoids having to check user, group, etc, but it's probably slow
+function isWriteable(file) {
+  var writePermission = true;
   try {
-    rnd = crypto.randomBytes(howMany);
+    var __fd = fs.openSync(file, 'a');
+    fs.closeSync(__fd);
   } catch (e) {
-    rnd = crypto.pseudoRandomBytes(howMany);
-  }
-
-  for (var i = 0; i < howMany; i++) {
-    value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]);
+    writePermission = false;
   }
 
-  return value.join('');
-}
-
-/**
- * Helper which determines whether a string s is blank, that is undefined, or empty or null.
- *
- * @private
- * @param {string} s
- * @returns {Boolean} true whether the string s is blank, false otherwise
- */
-function _isBlank(s) {
-  return s === null || _isUndefined(s) || !s.trim();
+  return writePermission;
 }
 
-/**
- * Checks whether the `obj` parameter is defined or not.
- *
- * @param {Object} obj
- * @returns {boolean} true if the object is undefined
- * @private
- */
-function _isUndefined(obj) {
-  return typeof obj === 'undefined';
+function handleFile(file, options) {
+  if (options.force || isWriteable(file)) {
+    // -f was passed, or file is writable, so it can be removed
+    common.unlinkSync(file);
+  } else {
+    common.error('permission denied: ' + file, { continue: true });
+  }
 }
 
-/**
- * Parses the function arguments.
- *
- * This function helps to have optional arguments.
- *
- * @param {(Options|null|undefined|Function)} options
- * @param {?Function} callback
- * @returns {Array} parsed arguments
- * @private
- */
-function _parseArguments(options, callback) {
-  /* istanbul ignore else */
-  if (typeof options === 'function') {
-    return [{}, options];
+function handleDirectory(file, options) {
+  if (options.recursive) {
+    // -r was passed, so directory can be removed
+    rmdirSyncRecursive(file, options.force);
+  } else {
+    common.error('path is a directory', { continue: true });
   }
+}
 
-  /* istanbul ignore else */
-  if (_isUndefined(options)) {
-    return [{}, callback];
+function handleSymbolicLink(file, options) {
+  var stats;
+  try {
+    stats = common.statFollowLinks(file);
+  } catch (e) {
+    // symlink is broken, so remove the symlink itself
+    common.unlinkSync(file);
+    return;
   }
 
-  // copy options so we do not leak the changes we make internally
-  const actualOptions = {};
-  for (const key of Object.getOwnPropertyNames(options)) {
-    actualOptions[key] = options[key];
+  if (stats.isFile()) {
+    common.unlinkSync(file);
+  } else if (stats.isDirectory()) {
+    if (file[file.length - 1] === '/') {
+      // trailing separator, so remove the contents, not the link
+      if (options.recursive) {
+        // -r was passed, so directory can be removed
+        var fromSymlink = true;
+        rmdirSyncRecursive(file, options.force, fromSymlink);
+      } else {
+        common.error('path is a directory', { continue: true });
+      }
+    } else {
+      // no trailing separator, so remove the link
+      common.unlinkSync(file);
+    }
   }
+}
 
-  return [actualOptions, callback];
+function handleFIFO(file) {
+  common.unlinkSync(file);
 }
 
-/**
- * Generates a new temporary name.
- *
- * @param {Object} opts
- * @returns {string} the new random name according to opts
- * @private
- */
-function _generateTmpName(opts) {
+//@
+//@ ### rm([options,] file [, file ...])
+//@ ### rm([options,] file_array)
+//@
+//@ Available options:
+//@
+//@ + `-f`: force
+//@ + `-r, -R`: recursive
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ rm('-rf', '/tmp/*');
+//@ rm('some_file.txt', 'another_file.txt');
+//@ rm(['some_file.txt', 'another_file.txt']); // same as above
+//@ ```
+//@
+//@ Removes files.
+function _rm(options, files) {
+  if (!files) common.error('no paths given');
 
-  const tmpDir = opts.tmpdir;
+  // Convert to array
+  files = [].slice.call(arguments, 1);
 
-  /* istanbul ignore else */
-  if (!_isUndefined(opts.name))
-    return path.join(tmpDir, opts.dir, opts.name);
+  files.forEach(function (file) {
+    var lstats;
+    try {
+      var filepath = (file[file.length - 1] === '/')
+        ? file.slice(0, -1) // remove the '/' so lstatSync can detect symlinks
+        : file;
+      lstats = common.statNoFollowLinks(filepath); // test for existence
+    } catch (e) {
+      // Path does not exist, no force flag given
+      if (!options.force) {
+        common.error('no such file or directory: ' + file, { continue: true });
+      }
+      return; // skip file
+    }
 
-  /* istanbul ignore else */
-  if (!_isUndefined(opts.template))
-    return path.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
+    // If here, path exists
+    if (lstats.isFile()) {
+      handleFile(file, options);
+    } else if (lstats.isDirectory()) {
+      handleDirectory(file, options);
+    } else if (lstats.isSymbolicLink()) {
+      handleSymbolicLink(file, options);
+    } else if (lstats.isFIFO()) {
+      handleFIFO(file);
+    }
+  }); // forEach(file)
+  return '';
+} // rm
+module.exports = _rm;
 
-  // prefix and postfix
-  const name = [
-    opts.prefix ? opts.prefix : 'tmp',
-    '-',
-    process.pid,
-    '-',
-    _randomChars(12),
-    opts.postfix ? '-' + opts.postfix : ''
-  ].join('');
 
-  return path.join(tmpDir, opts.dir, name);
-}
+/***/ }),
 
-/**
- * Asserts whether the specified options are valid, also sanitizes options and provides sane defaults for missing
- * options.
- *
- * @param {Options} options
- * @private
- */
-function _assertAndSanitizeOptions(options) {
+/***/ 25899:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-  options.tmpdir = _getTmpDir(options);
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
 
-  const tmpDir = options.tmpdir;
+common.register('sed', _sed, {
+  globStart: 3, // don't glob-expand regexes
+  canReceivePipe: true,
+  cmdOptions: {
+    'i': 'inplace',
+  },
+});
 
-  /* istanbul ignore else */
-  if (!_isUndefined(options.name))
-    _assertIsRelative(options.name, 'name', tmpDir);
-  /* istanbul ignore else */
-  if (!_isUndefined(options.dir))
-    _assertIsRelative(options.dir, 'dir', tmpDir);
-  /* istanbul ignore else */
-  if (!_isUndefined(options.template)) {
-    _assertIsRelative(options.template, 'template', tmpDir);
-    if (!options.template.match(TEMPLATE_PATTERN))
-      throw new Error(`Invalid template, found "${options.template}".`);
+//@
+//@ ### sed([options,] search_regex, replacement, file [, file ...])
+//@ ### sed([options,] search_regex, replacement, file_array)
+//@
+//@ Available options:
+//@
+//@ + `-i`: Replace contents of `file` in-place. _Note that no backups will be created!_
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ sed('-i', 'PROGRAM_VERSION', 'v0.1.3', 'source.js');
+//@ sed(/.*DELETE_THIS_LINE.*\n/, '', 'source.js');
+//@ ```
+//@
+//@ Reads an input string from `file`s, and performs a JavaScript `replace()` on the input
+//@ using the given `search_regex` and `replacement` string or function. Returns the new string after replacement.
+//@
+//@ Note:
+//@
+//@ Like unix `sed`, ShellJS `sed` supports capture groups. Capture groups are specified
+//@ using the `$n` syntax:
+//@
+//@ ```javascript
+//@ sed(/(\w+)\s(\w+)/, '$2, $1', 'file.txt');
+//@ ```
+function _sed(options, regex, replacement, files) {
+  // Check if this is coming from a pipe
+  var pipe = common.readFromPipe();
+
+  if (typeof replacement !== 'string' && typeof replacement !== 'function') {
+    if (typeof replacement === 'number') {
+      replacement = replacement.toString(); // fallback
+    } else {
+      common.error('invalid replacement string');
+    }
   }
-  /* istanbul ignore else */
-  if (!_isUndefined(options.tries) && isNaN(options.tries) || options.tries < 0)
-    throw new Error(`Invalid tries, found "${options.tries}".`);
 
-  // if a name was specified we will try once
-  options.tries = _isUndefined(options.name) ? options.tries || DEFAULT_TRIES : 1;
-  options.keep = !!options.keep;
-  options.detachDescriptor = !!options.detachDescriptor;
-  options.discardDescriptor = !!options.discardDescriptor;
-  options.unsafeCleanup = !!options.unsafeCleanup;
+  // Convert all search strings to RegExp
+  if (typeof regex === 'string') {
+    regex = RegExp(regex);
+  }
 
-  // sanitize dir, also keep (multiple) blanks if the user, purportedly sane, requests us to
-  options.dir = _isUndefined(options.dir) ? '' : path.relative(tmpDir, _resolvePath(options.dir, tmpDir));
-  options.template = _isUndefined(options.template) ? undefined : path.relative(tmpDir, _resolvePath(options.template, tmpDir));
-  // sanitize further if template is relative to options.dir
-  options.template = _isBlank(options.template) ? undefined : path.relative(options.dir, options.template);
+  if (!files && !pipe) {
+    common.error('no files given');
+  }
 
-  // for completeness' sake only, also keep (multiple) blanks if the user, purportedly sane, requests us to
-  options.name = _isUndefined(options.name) ? undefined : _sanitizeName(options.name);
-  options.prefix = _isUndefined(options.prefix) ? '' : options.prefix;
-  options.postfix = _isUndefined(options.postfix) ? '' : options.postfix;
-}
+  files = [].slice.call(arguments, 3);
 
-/**
- * Resolve the specified path name in respect to tmpDir.
- *
- * The specified name might include relative path components, e.g. ../
- * so we need to resolve in order to be sure that is is located inside tmpDir
- *
- * @param name
- * @param tmpDir
- * @returns {string}
- * @private
- */
-function _resolvePath(name, tmpDir) {
-  const sanitizedName = _sanitizeName(name);
-  if (sanitizedName.startsWith(tmpDir)) {
-    return path.resolve(sanitizedName);
-  } else {
-    return path.resolve(path.join(tmpDir, sanitizedName));
+  if (pipe) {
+    files.unshift('-');
   }
+
+  var sed = [];
+  files.forEach(function (file) {
+    if (!fs.existsSync(file) && file !== '-') {
+      common.error('no such file or directory: ' + file, 2, { continue: true });
+      return;
+    }
+
+    var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8');
+    var lines = contents.split('\n');
+    var result = lines.map(function (line) {
+      return line.replace(regex, replacement);
+    }).join('\n');
+
+    sed.push(result);
+
+    if (options.inplace) {
+      fs.writeFileSync(file, result, 'utf8');
+    }
+  });
+
+  return sed.join('\n');
 }
+module.exports = _sed;
 
-/**
- * Sanitize the specified path name by removing all quote characters.
- *
- * @param name
- * @returns {string}
- * @private
- */
-function _sanitizeName(name) {
-  if (_isBlank(name)) {
-    return name;
+
+/***/ }),
+
+/***/ 11411:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var common = __nccwpck_require__(53687);
+
+common.register('set', _set, {
+  allowGlobbing: false,
+  wrapOutput: false,
+});
+
+//@
+//@ ### set(options)
+//@
+//@ Available options:
+//@
+//@ + `+/-e`: exit upon error (`config.fatal`)
+//@ + `+/-v`: verbose: show all commands (`config.verbose`)
+//@ + `+/-f`: disable filename expansion (globbing)
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ set('-e'); // exit upon first error
+//@ set('+e'); // this undoes a "set('-e')"
+//@ ```
+//@
+//@ Sets global configuration variables.
+function _set(options) {
+  if (!options) {
+    var args = [].slice.call(arguments, 0);
+    if (args.length < 2) common.error('must provide an argument');
+    options = args[1];
   }
-  return name.replace(/["']/g, '');
-}
+  var negate = (options[0] === '+');
+  if (negate) {
+    options = '-' + options.slice(1); // parseOptions needs a '-' prefix
+  }
+  options = common.parseOptions(options, {
+    'e': 'fatal',
+    'v': 'verbose',
+    'f': 'noglob',
+  });
 
-/**
- * Asserts whether specified name is relative to the specified tmpDir.
- *
- * @param {string} name
- * @param {string} option
- * @param {string} tmpDir
- * @throws {Error}
- * @private
- */
-function _assertIsRelative(name, option, tmpDir) {
-  if (option === 'name') {
-    // assert that name is not absolute and does not contain a path
-    if (path.isAbsolute(name))
-      throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
-    // must not fail on valid . or .. or similar such constructs
-    let basename = path.basename(name);
-    if (basename === '..' || basename === '.' || basename !== name)
-      throw new Error(`${option} option must not contain a path, found "${name}".`);
+  if (negate) {
+    Object.keys(options).forEach(function (key) {
+      options[key] = !options[key];
+    });
   }
-  else { // if (option === 'dir' || option === 'template') {
-    // assert that dir or template are relative to tmpDir
-    if (path.isAbsolute(name) && !name.startsWith(tmpDir)) {
-      throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
+
+  Object.keys(options).forEach(function (key) {
+    // Only change the global config if `negate` is false and the option is true
+    // or if `negate` is true and the option is false (aka negate !== option)
+    if (negate !== options[key]) {
+      common.config[key] = options[key];
     }
-    let resolvedPath = _resolvePath(name, tmpDir);
-    if (!resolvedPath.startsWith(tmpDir))
-      throw new Error(`${option} option must be relative to "${tmpDir}", found "${resolvedPath}".`);
-  }
+  });
+  return;
 }
+module.exports = _set;
 
-/**
- * Helper for testing against EBADF to compensate changes made to Node 7.x under Windows.
- *
- * @private
- */
-function _isEBADF(error) {
-  return _isExpectedError(error, -EBADF, 'EBADF');
-}
 
-/**
- * Helper for testing against ENOENT to compensate changes made to Node 7.x under Windows.
- *
- * @private
- */
-function _isENOENT(error) {
-  return _isExpectedError(error, -ENOENT, 'ENOENT');
-}
+/***/ }),
 
-/**
- * Helper to determine whether the expected error code matches the actual code and errno,
- * which will differ between the supported node versions.
- *
- * - Node >= 7.0:
- *   error.code {string}
- *   error.errno {number} any numerical value will be negated
- *
- * CAVEAT
- *
- * On windows, the errno for EBADF is -4083 but os.constants.errno.EBADF is different and we must assume that ENOENT
- * is no different here.
- *
- * @param {SystemError} error
- * @param {number} errno
- * @param {string} code
- * @private
- */
-function _isExpectedError(error, errno, code) {
-  return IS_WIN32 ? error.code === code : error.code === code && error.errno === errno;
+/***/ 72116:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
+
+common.register('sort', _sort, {
+  canReceivePipe: true,
+  cmdOptions: {
+    'r': 'reverse',
+    'n': 'numerical',
+  },
+});
+
+// parse out the number prefix of a line
+function parseNumber(str) {
+  var match = str.match(/^\s*(\d*)\s*(.*)$/);
+  return { num: Number(match[1]), value: match[2] };
 }
 
-/**
- * Sets the graceful cleanup.
- *
- * If graceful cleanup is set, tmp will remove all controlled temporary objects on process exit, otherwise the
- * temporary objects will remain in place, waiting to be cleaned up on system restart or otherwise scheduled temporary
- * object removals.
- */
-function setGracefulCleanup() {
-  _gracefulCleanup = true;
+// compare two strings case-insensitively, but examine case for strings that are
+// case-insensitive equivalent
+function unixCmp(a, b) {
+  var aLower = a.toLowerCase();
+  var bLower = b.toLowerCase();
+  return (aLower === bLower ?
+      -1 * a.localeCompare(b) : // unix sort treats case opposite how javascript does
+      aLower.localeCompare(bLower));
 }
 
-/**
- * Returns the currently configured tmp dir from os.tmpdir().
- *
- * @private
- * @param {?Options} options
- * @returns {string} the currently configured tmp dir
- */
-function _getTmpDir(options) {
-  return path.resolve(_sanitizeName(options && options.tmpdir || os.tmpdir()));
+// compare two strings in the fashion that unix sort's -n option works
+function numericalCmp(a, b) {
+  var objA = parseNumber(a);
+  var objB = parseNumber(b);
+  if (objA.hasOwnProperty('num') && objB.hasOwnProperty('num')) {
+    return ((objA.num !== objB.num) ?
+        (objA.num - objB.num) :
+        unixCmp(objA.value, objB.value));
+  } else {
+    return unixCmp(objA.value, objB.value);
+  }
 }
 
-// Install process exit listener
-process.addListener(EXIT, _garbageCollector);
+//@
+//@ ### sort([options,] file [, file ...])
+//@ ### sort([options,] file_array)
+//@
+//@ Available options:
+//@
+//@ + `-r`: Reverse the results
+//@ + `-n`: Compare according to numerical value
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ sort('foo.txt', 'bar.txt');
+//@ sort('-r', 'foo.txt');
+//@ ```
+//@
+//@ Return the contents of the `file`s, sorted line-by-line. Sorting multiple
+//@ files mixes their content (just as unix `sort` does).
+function _sort(options, files) {
+  // Check if this is coming from a pipe
+  var pipe = common.readFromPipe();
 
-/**
- * Configuration options.
- *
- * @typedef {Object} Options
- * @property {?boolean} keep the temporary object (file or dir) will not be garbage collected
- * @property {?number} tries the number of tries before give up the name generation
- * @property (?int) mode the access mode, defaults are 0o700 for directories and 0o600 for files
- * @property {?string} template the "mkstemp" like filename template
- * @property {?string} name fixed name relative to tmpdir or the specified dir option
- * @property {?string} dir tmp directory relative to the root tmp directory in use
- * @property {?string} prefix prefix for the generated name
- * @property {?string} postfix postfix for the generated name
- * @property {?string} tmpdir the root tmp directory which overrides the os tmpdir
- * @property {?boolean} unsafeCleanup recursively removes the created temporary directory, even when it's not empty
- * @property {?boolean} detachDescriptor detaches the file descriptor, caller is responsible for closing the file, tmp will no longer try closing the file during garbage collection
- * @property {?boolean} discardDescriptor discards the file descriptor (closes file, fd is -1), tmp will no longer try closing the file during garbage collection
- */
+  if (!files && !pipe) common.error('no files given');
 
-/**
- * @typedef {Object} FileSyncObject
- * @property {string} name the name of the file
- * @property {string} fd the file descriptor or -1 if the fd has been discarded
- * @property {fileCallback} removeCallback the callback function to remove the file
- */
+  files = [].slice.call(arguments, 1);
 
-/**
- * @typedef {Object} DirSyncObject
- * @property {string} name the name of the directory
- * @property {fileCallback} removeCallback the callback function to remove the directory
- */
+  if (pipe) {
+    files.unshift('-');
+  }
 
-/**
- * @callback tmpNameCallback
- * @param {?Error} err the error object if anything goes wrong
- * @param {string} name the temporary file name
- */
+  var lines = files.reduce(function (accum, file) {
+    if (file !== '-') {
+      if (!fs.existsSync(file)) {
+        common.error('no such file or directory: ' + file, { continue: true });
+        return accum;
+      } else if (common.statFollowLinks(file).isDirectory()) {
+        common.error('read failed: ' + file + ': Is a directory', {
+          continue: true,
+        });
+        return accum;
+      }
+    }
 
-/**
- * @callback fileCallback
- * @param {?Error} err the error object if anything goes wrong
- * @param {string} name the temporary file name
- * @param {number} fd the file descriptor or -1 if the fd had been discarded
- * @param {cleanupCallback} fn the cleanup callback function
- */
+    var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8');
+    return accum.concat(contents.trimRight().split('\n'));
+  }, []);
 
-/**
- * @callback fileCallbackSync
- * @param {?Error} err the error object if anything goes wrong
- * @param {string} name the temporary file name
- * @param {number} fd the file descriptor or -1 if the fd had been discarded
- * @param {cleanupCallbackSync} fn the cleanup callback function
- */
+  var sorted = lines.sort(options.numerical ? numericalCmp : unixCmp);
 
-/**
- * @callback dirCallback
- * @param {?Error} err the error object if anything goes wrong
- * @param {string} name the temporary file name
- * @param {cleanupCallback} fn the cleanup callback function
- */
+  if (options.reverse) {
+    sorted = sorted.reverse();
+  }
 
-/**
- * @callback dirCallbackSync
- * @param {?Error} err the error object if anything goes wrong
- * @param {string} name the temporary file name
- * @param {cleanupCallbackSync} fn the cleanup callback function
- */
+  return sorted.join('\n') + '\n';
+}
 
-/**
- * Removes the temporary created file or directory.
- *
- * @callback cleanupCallback
- * @param {simpleCallback} [next] function to call whenever the tmp object needs to be removed
- */
+module.exports = _sort;
 
-/**
- * Removes the temporary created file or directory.
- *
- * @callback cleanupCallbackSync
- */
 
-/**
- * Callback function for function composition.
- * @see {@link https://github.com/raszi/node-tmp/issues/57|raszi/node-tmp#57}
- *
- * @callback simpleCallback
- */
+/***/ }),
 
-// exporting all the needed methods
+/***/ 42284:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-// evaluate _getTmpDir() lazily, mainly for simplifying testing but it also will
-// allow users to reconfigure the temporary directory
-Object.defineProperty(module.exports, "tmpdir", ({
-  enumerable: true,
-  configurable: false,
-  get: function () {
-    return _getTmpDir();
-  }
-}));
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
 
-module.exports.dir = dir;
-module.exports.dirSync = dirSync;
+common.register('tail', _tail, {
+  canReceivePipe: true,
+  cmdOptions: {
+    'n': 'numLines',
+  },
+});
 
-module.exports.file = file;
-module.exports.fileSync = fileSync;
+//@
+//@ ### tail([{'-n': \},] file [, file ...])
+//@ ### tail([{'-n': \},] file_array)
+//@
+//@ Available options:
+//@
+//@ + `-n `: Show the last `` lines of `file`s
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ var str = tail({'-n': 1}, 'file*.txt');
+//@ var str = tail('file1', 'file2');
+//@ var str = tail(['file1', 'file2']); // same as above
+//@ ```
+//@
+//@ Read the end of a `file`.
+function _tail(options, files) {
+  var tail = [];
+  var pipe = common.readFromPipe();
 
-module.exports.tmpName = tmpName;
-module.exports.tmpNameSync = tmpNameSync;
+  if (!files && !pipe) common.error('no paths given');
 
-module.exports.setGracefulCleanup = setGracefulCleanup;
+  var idx = 1;
+  if (options.numLines === true) {
+    idx = 2;
+    options.numLines = Number(arguments[1]);
+  } else if (options.numLines === false) {
+    options.numLines = 10;
+  }
+  options.numLines = -1 * Math.abs(options.numLines);
+  files = [].slice.call(arguments, idx);
 
+  if (pipe) {
+    files.unshift('-');
+  }
 
-/***/ }),
+  var shouldAppendNewline = false;
+  files.forEach(function (file) {
+    if (file !== '-') {
+      if (!fs.existsSync(file)) {
+        common.error('no such file or directory: ' + file, { continue: true });
+        return;
+      } else if (common.statFollowLinks(file).isDirectory()) {
+        common.error("error reading '" + file + "': Is a directory", {
+          continue: true,
+        });
+        return;
+      }
+    }
 
-/***/ 88375:
-/***/ ((module) => {
+    var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8');
 
-// Copied from https://github.com/nodejs/node/blob/master/lib/internal/constants.js
-module.exports = {
-  CHAR_FORWARD_SLASH: 47, /* / */
-};
+    var lines = contents.split('\n');
+    if (lines[lines.length - 1] === '') {
+      lines.pop();
+      shouldAppendNewline = true;
+    } else {
+      shouldAppendNewline = false;
+    }
+
+    tail = tail.concat(lines.slice(options.numLines));
+  });
+
+  if (shouldAppendNewline) {
+    tail.push(''); // to add a trailing newline once we join
+  }
+  return tail.join('\n');
+}
+module.exports = _tail;
 
 
 /***/ }),
 
-/***/ 61858:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ 76150:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-"use strict";
+var common = __nccwpck_require__(53687);
+var os = __nccwpck_require__(22037);
+var fs = __nccwpck_require__(57147);
 
+common.register('tempdir', _tempDir, {
+  allowGlobbing: false,
+  wrapOutput: false,
+});
 
-const path = __nccwpck_require__(71017);
+// Returns false if 'dir' is not a writeable directory, 'dir' otherwise
+function writeableDir(dir) {
+  if (!dir || !fs.existsSync(dir)) return false;
 
-exports.codes = {
-  ERR_INPUT_TYPE_NOT_ALLOWED: createErrorCtor(joinArgs('ERR_INPUT_TYPE_NOT_ALLOWED')),
-  ERR_INVALID_ARG_VALUE: createErrorCtor(joinArgs('ERR_INVALID_ARG_VALUE')),
-  ERR_INVALID_MODULE_SPECIFIER: createErrorCtor(joinArgs('ERR_INVALID_MODULE_SPECIFIER')),
-  ERR_INVALID_PACKAGE_CONFIG: createErrorCtor(joinArgs('ERR_INVALID_PACKAGE_CONFIG')),
-  ERR_INVALID_PACKAGE_TARGET: createErrorCtor(joinArgs('ERR_INVALID_PACKAGE_TARGET')),
-  ERR_MANIFEST_DEPENDENCY_MISSING: createErrorCtor(joinArgs('ERR_MANIFEST_DEPENDENCY_MISSING')),
-  ERR_MODULE_NOT_FOUND: createErrorCtor((path, base, type = 'package') => {
-    return `Cannot find ${type} '${path}' imported from ${base}`
-  }),
-  ERR_PACKAGE_IMPORT_NOT_DEFINED: createErrorCtor(joinArgs('ERR_PACKAGE_IMPORT_NOT_DEFINED')),
-  ERR_PACKAGE_PATH_NOT_EXPORTED: createErrorCtor(joinArgs('ERR_PACKAGE_PATH_NOT_EXPORTED')),
-  ERR_UNSUPPORTED_DIR_IMPORT: createErrorCtor(joinArgs('ERR_UNSUPPORTED_DIR_IMPORT')),
-  ERR_UNSUPPORTED_ESM_URL_SCHEME: createErrorCtor(joinArgs('ERR_UNSUPPORTED_ESM_URL_SCHEME')),
-  ERR_UNKNOWN_FILE_EXTENSION: createErrorCtor(joinArgs('ERR_UNKNOWN_FILE_EXTENSION')),
-}
+  if (!common.statFollowLinks(dir).isDirectory()) return false;
 
-function joinArgs(name) {
-  return (...args) => {
-    return [name, ...args].join(' ')
+  var testFile = dir + '/' + common.randomFileName();
+  try {
+    fs.writeFileSync(testFile, ' ');
+    common.unlinkSync(testFile);
+    return dir;
+  } catch (e) {
+    /* istanbul ignore next */
+    return false;
   }
 }
 
-function createErrorCtor(errorMessageCreator) {
-  return class CustomError extends Error {
-    constructor(...args) {
-      super(errorMessageCreator(...args))
-    }
-  }
+// Variable to cache the tempdir value for successive lookups.
+var cachedTempDir;
+
+//@
+//@ ### tempdir()
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ var tmp = tempdir(); // "/tmp" for most *nix platforms
+//@ ```
+//@
+//@ Searches and returns string containing a writeable, platform-dependent temporary directory.
+//@ Follows Python's [tempfile algorithm](http://docs.python.org/library/tempfile.html#tempfile.tempdir).
+function _tempDir() {
+  if (cachedTempDir) return cachedTempDir;
+
+  cachedTempDir = writeableDir(os.tmpdir()) ||
+                  writeableDir(process.env.TMPDIR) ||
+                  writeableDir(process.env.TEMP) ||
+                  writeableDir(process.env.TMP) ||
+                  writeableDir(process.env.Wimp$ScrapDir) || // RiscOS
+                  writeableDir('C:\\TEMP') || // Windows
+                  writeableDir('C:\\TMP') || // Windows
+                  writeableDir('\\TEMP') || // Windows
+                  writeableDir('\\TMP') || // Windows
+                  writeableDir('/tmp') ||
+                  writeableDir('/var/tmp') ||
+                  writeableDir('/usr/tmp') ||
+                  writeableDir('.'); // last resort
+
+  return cachedTempDir;
 }
-exports.createErrRequireEsm = createErrRequireEsm;
 
-// Native ERR_REQUIRE_ESM Error is declared here:
-//   https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/errors.js#L1294-L1313
-// Error class factory is implemented here:
-//   function E: https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/errors.js#L323-L341
-//   function makeNodeErrorWithCode: https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/errors.js#L251-L278
-// The code below should create an error that matches the native error as closely as possible.
-// Third-party libraries which attempt to catch the native ERR_REQUIRE_ESM should recognize our imitation error.
-function createErrRequireEsm(filename, parentPath, packageJsonPath) {
-  const code = 'ERR_REQUIRE_ESM'
-  const err = new Error(getErrRequireEsmMessage(filename, parentPath, packageJsonPath))
-  // Set `name` to be used in stack trace, generate stack trace with that name baked in, then re-declare the `name` field.
-  // This trick is copied from node's source.
-  err.name = `Error [${ code }]`
-  err.stack
-  Object.defineProperty(err, 'name', {
-    value: 'Error',
-    enumerable: false,
-    writable: true,
-    configurable: true
-  })
-  err.code = code
-  return err
+// Indicates if the tempdir value is currently cached. This is exposed for tests
+// only. The return value should only be tested for truthiness.
+function isCached() {
+  return cachedTempDir;
 }
 
-// Copy-pasted from https://github.com/nodejs/node/blob/b533fb3508009e5f567cc776daba8fbf665386a6/lib/internal/errors.js#L1293-L1311
-// so that our error message is identical to the native message.
-function getErrRequireEsmMessage(filename, parentPath = null, packageJsonPath = null) {
-  const ext = path.extname(filename)
-  let msg = `Must use import to load ES Module: ${filename}`;
-  if (parentPath && packageJsonPath) {
-    const path = __nccwpck_require__(71017);
-    const basename = path.basename(filename) === path.basename(parentPath) ?
-      filename : path.basename(filename);
-    msg +=
-      '\nrequire() of ES modules is not supported.\nrequire() of ' +
-      `${filename} ${parentPath ? `from ${parentPath} ` : ''}` +
-      `is an ES module file as it is a ${ext} file whose nearest parent ` +
-      `package.json contains "type": "module" which defines all ${ext} ` +
-      'files in that package scope as ES modules.\nInstead ' +
-      'change the requiring code to use ' +
-      'import(), or remove "type": "module" from ' +
-      `${packageJsonPath}.\n`;
-    return msg;
-  }
-  return msg;
+// Clears the cached tempDir value, if one is cached. This is exposed for tests
+// only.
+function clearCache() {
+  cachedTempDir = undefined;
 }
 
+module.exports.tempDir = _tempDir;
+module.exports.isCached = isCached;
+module.exports.clearCache = clearCache;
+
 
 /***/ }),
 
-/***/ 66755:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ 79723:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-"use strict";
-// Copied from https://github.com/nodejs/node/blob/v17.0.1/lib/internal/modules/cjs/helpers.js
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
 
+common.register('test', _test, {
+  cmdOptions: {
+    'b': 'block',
+    'c': 'character',
+    'd': 'directory',
+    'e': 'exists',
+    'f': 'file',
+    'L': 'link',
+    'p': 'pipe',
+    'S': 'socket',
+  },
+  wrapOutput: false,
+  allowGlobbing: false,
+});
 
 
-const {
-  ArrayPrototypeForEach,
-  ObjectDefineProperty,
-  ObjectPrototypeHasOwnProperty,
-  SafeSet,
-  StringPrototypeIncludes,
-  StringPrototypeStartsWith,
-} = __nccwpck_require__(26326);
+//@
+//@ ### test(expression)
+//@
+//@ Available expression primaries:
+//@
+//@ + `'-b', 'path'`: true if path is a block device
+//@ + `'-c', 'path'`: true if path is a character device
+//@ + `'-d', 'path'`: true if path is a directory
+//@ + `'-e', 'path'`: true if path exists
+//@ + `'-f', 'path'`: true if path is a regular file
+//@ + `'-L', 'path'`: true if path is a symbolic link
+//@ + `'-p', 'path'`: true if path is a pipe (FIFO)
+//@ + `'-S', 'path'`: true if path is a socket
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ if (test('-d', path)) { /* do something with dir */ };
+//@ if (!test('-f', path)) continue; // skip if it's a regular file
+//@ ```
+//@
+//@ Evaluates `expression` using the available primaries and returns corresponding value.
+function _test(options, path) {
+  if (!path) common.error('no path given');
 
-const { getOptionValue } = __nccwpck_require__(40690);
-const userConditions = getOptionValue('--conditions');
+  var canInterpret = false;
+  Object.keys(options).forEach(function (key) {
+    if (options[key] === true) {
+      canInterpret = true;
+    }
+  });
 
-const noAddons = getOptionValue('--no-addons');
-const addonConditions = noAddons ? [] : ['node-addons'];
+  if (!canInterpret) common.error('could not interpret expression');
 
-// TODO: Use this set when resolving pkg#exports conditions in loader.js.
-const cjsConditions = new SafeSet([
-  'require',
-  'node',
-  ...addonConditions,
-  ...userConditions,
-]);
+  if (options.link) {
+    try {
+      return common.statNoFollowLinks(path).isSymbolicLink();
+    } catch (e) {
+      return false;
+    }
+  }
 
-/**
- * @param {any} object
- * @param {string} [dummyModuleName]
- * @return {void}
- */
-function addBuiltinLibsToObject(object, dummyModuleName) {
-  // Make built-in modules available directly (loaded lazily).
-  const Module = (__nccwpck_require__(98188).Module);
-  const { builtinModules } = Module;
+  if (!fs.existsSync(path)) return false;
 
-  // To require built-in modules in user-land and ignore modules whose
-  // `canBeRequiredByUsers` is false. So we create a dummy module object and not
-  // use `require()` directly.
-  const dummyModule = new Module(dummyModuleName);
+  if (options.exists) return true;
 
-  ArrayPrototypeForEach(builtinModules, (name) => {
-    // Neither add underscored modules, nor ones that contain slashes (e.g.,
-    // 'fs/promises') or ones that are already defined.
-    if (StringPrototypeStartsWith(name, '_') ||
-        StringPrototypeIncludes(name, '/') ||
-        ObjectPrototypeHasOwnProperty(object, name)) {
-      return;
-    }
-    // Goals of this mechanism are:
-    // - Lazy loading of built-in modules
-    // - Having all built-in modules available as non-enumerable properties
-    // - Allowing the user to re-assign these variables as if there were no
-    //   pre-existing globals with the same name.
+  var stats = common.statFollowLinks(path);
 
-    const setReal = (val) => {
-      // Deleting the property before re-assigning it disables the
-      // getter/setter mechanism.
-      delete object[name];
-      object[name] = val;
-    };
+  if (options.block) return stats.isBlockDevice();
 
-    ObjectDefineProperty(object, name, {
-      get: () => {
-        // Node 12 hack; remove when we drop node12 support
-        const lib = (dummyModule.require || require)(name);
+  if (options.character) return stats.isCharacterDevice();
 
-        // Disable the current getter/setter and set up a new
-        // non-enumerable property.
-        delete object[name];
-        ObjectDefineProperty(object, name, {
-          get: () => lib,
-          set: setReal,
-          configurable: true,
-          enumerable: false
-        });
+  if (options.directory) return stats.isDirectory();
 
-        return lib;
-      },
-      set: setReal,
-      configurable: true,
-      enumerable: false
-    });
-  });
-}
+  if (options.file) return stats.isFile();
 
-exports.addBuiltinLibsToObject = addBuiltinLibsToObject;
-exports.cjsConditions = cjsConditions;
+  /* istanbul ignore next */
+  if (options.pipe) return stats.isFIFO();
+
+  /* istanbul ignore next */
+  if (options.socket) return stats.isSocket();
+
+  /* istanbul ignore next */
+  return false; // fallback
+} // test
+module.exports = _test;
 
 
 /***/ }),
 
-/***/ 51633:
+/***/ 71961:
 /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-"use strict";
-// Copied from several files in node's source code.
-// https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/modules/cjs/loader.js
-// Each function and variable below must have a comment linking to the source in node's github repo.
-
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
+var path = __nccwpck_require__(71017);
 
+common.register('to', _to, {
+  pipeOnly: true,
+  wrapOutput: false,
+});
 
-const {
-  ArrayIsArray,
-  ArrayPrototypeIncludes,
-  ArrayPrototypeJoin,
-  ArrayPrototypePush,
-  JSONParse,
-  ObjectKeys,
-  RegExpPrototypeTest,
-  SafeMap,
-  SafeWeakMap,
-  StringPrototypeCharCodeAt,
-  StringPrototypeEndsWith,
-  StringPrototypeLastIndexOf,
-  StringPrototypeIndexOf,
-  StringPrototypeMatch,
-  StringPrototypeSlice,
-  StringPrototypeStartsWith,
-} = __nccwpck_require__(26326);
-const { NativeModule } = __nccwpck_require__(81597);
-const { pathToFileURL, fileURLToPath } = __nccwpck_require__(57310);
-const fs = __nccwpck_require__(57147);
-const path = __nccwpck_require__(71017);
-const { sep } = path;
-const { internalModuleStat } = __nccwpck_require__(3601);
-const packageJsonReader = __nccwpck_require__(53348);
-const {
-  cjsConditions,
-} = __nccwpck_require__(66755);
-const { getOptionValue } = __nccwpck_require__(40690);
-const preserveSymlinks = getOptionValue('--preserve-symlinks');
-const preserveSymlinksMain = getOptionValue('--preserve-symlinks-main');
-const {normalizeSlashes} = __nccwpck_require__(64745);
-const {createErrRequireEsm} = __nccwpck_require__(61858);
-const {
-  codes: {
-    ERR_INVALID_MODULE_SPECIFIER,
-  },
-} = __nccwpck_require__(61858);
+//@
+//@ ### ShellString.prototype.to(file)
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ cat('input.txt').to('output.txt');
+//@ ```
+//@
+//@ Analogous to the redirection operator `>` in Unix, but works with
+//@ `ShellStrings` (such as those returned by `cat`, `grep`, etc.). _Like Unix
+//@ redirections, `to()` will overwrite any existing file!_
+function _to(options, file) {
+  if (!file) common.error('wrong arguments');
 
-const {
-  CHAR_FORWARD_SLASH,
-} = __nccwpck_require__(88375);
+  if (!fs.existsSync(path.dirname(file))) {
+    common.error('no such file or directory: ' + path.dirname(file));
+  }
 
-const Module = __nccwpck_require__(98188);
+  try {
+    fs.writeFileSync(file, this.stdout || this.toString(), 'utf8');
+    return this;
+  } catch (e) {
+    /* istanbul ignore next */
+    common.error('could not write to file (code ' + e.code + '): ' + file, { continue: true });
+  }
+}
+module.exports = _to;
 
-const isWindows = process.platform === 'win32';
 
-let statCache = null;
+/***/ }),
 
-function stat(filename) {
-  filename = path.toNamespacedPath(filename);
-  if (statCache !== null) {
-    const result = statCache.get(filename);
-    if (result !== undefined) return result;
-  }
-  const result = internalModuleStat(filename);
-  if (statCache !== null && result >= 0) {
-    // Only set cache when `internalModuleStat(filename)` succeeds.
-    statCache.set(filename, result);
-  }
-  return result;
-}
-
-// Note:
-// we cannot get access to node's internal cache, which is populated from
-// within node's Module constructor.  So the cache here will always be empty.
-// It's possible we could approximate our own cache by building it up with
-// hacky workarounds, but it's not worth the complexity and flakiness.
-const moduleParentCache = new SafeWeakMap();
-
-// Given a module name, and a list of paths to test, returns the first
-// matching file in the following precedence.
-//
-// require("a.")
-//   -> a.
-//
-// require("a")
-//   -> a
-//   -> a.
-//   -> a/index.
+/***/ 33736:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-const packageJsonCache = new SafeMap();
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
+var path = __nccwpck_require__(71017);
 
-function readPackage(requestPath) {
-  const jsonPath = path.resolve(requestPath, 'package.json');
+common.register('toEnd', _toEnd, {
+  pipeOnly: true,
+  wrapOutput: false,
+});
 
-  const existing = packageJsonCache.get(jsonPath);
-  if (existing !== undefined) return existing;
+//@
+//@ ### ShellString.prototype.toEnd(file)
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ cat('input.txt').toEnd('output.txt');
+//@ ```
+//@
+//@ Analogous to the redirect-and-append operator `>>` in Unix, but works with
+//@ `ShellStrings` (such as those returned by `cat`, `grep`, etc.).
+function _toEnd(options, file) {
+  if (!file) common.error('wrong arguments');
 
-  const result = packageJsonReader.read(jsonPath);
-  const json = result.containsKeys === false ? '{}' : result.string;
-  if (json === undefined) {
-    packageJsonCache.set(jsonPath, false);
-    return false;
+  if (!fs.existsSync(path.dirname(file))) {
+    common.error('no such file or directory: ' + path.dirname(file));
   }
 
   try {
-    const parsed = JSONParse(json);
-    const filtered = {
-      name: parsed.name,
-      main: parsed.main,
-      exports: parsed.exports,
-      imports: parsed.imports,
-      type: parsed.type
-    };
-    packageJsonCache.set(jsonPath, filtered);
-    return filtered;
+    fs.appendFileSync(file, this.stdout || this.toString(), 'utf8');
+    return this;
   } catch (e) {
-    e.path = jsonPath;
-    e.message = 'Error parsing ' + jsonPath + ': ' + e.message;
-    throw e;
+    /* istanbul ignore next */
+    common.error('could not append to file (code ' + e.code + '): ' + file, { continue: true });
   }
 }
+module.exports = _toEnd;
 
-function readPackageScope(checkPath) {
-  const rootSeparatorIndex = StringPrototypeIndexOf(checkPath, sep);
-  let separatorIndex;
-  do {
-    separatorIndex = StringPrototypeLastIndexOf(checkPath, sep);
-    checkPath = StringPrototypeSlice(checkPath, 0, separatorIndex);
-    if (StringPrototypeEndsWith(checkPath, sep + 'node_modules'))
-      return false;
-    const pjson = readPackage(checkPath + sep);
-    if (pjson) return {
-      data: pjson,
-      path: checkPath,
-    };
-  } while (separatorIndex > rootSeparatorIndex);
-  return false;
-}
 
-/**
- * @param {{
- *   nodeEsmResolver: ReturnType,
- *   extensions: import('../src/file-extensions').Extensions,
- *   preferTsExts
- * }} opts
- */
-function createCjsLoader(opts) {
-const {nodeEsmResolver, preferTsExts} = opts;
-const {replacementsForCjs, replacementsForJs, replacementsForMjs, replacementsForJsx} = opts.extensions;
-const {
-  encodedSepRegEx,
-  packageExportsResolve,
-  packageImportsResolve
-} = nodeEsmResolver;
+/***/ }),
 
-function tryPackage(requestPath, exts, isMain, originalPath) {
-  // const pkg = readPackage(requestPath)?.main;
-  const tmp = readPackage(requestPath)
-  const pkg = tmp != null ? tmp.main : undefined;
+/***/ 28358:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-  if (!pkg) {
-    return tryExtensions(path.resolve(requestPath, 'index'), exts, isMain);
-  }
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
 
-  const filename = path.resolve(requestPath, pkg);
-  let actual = tryReplacementExtensions(filename, isMain) ||
-    tryFile(filename, isMain) ||
-    tryExtensions(filename, exts, isMain) ||
-    tryExtensions(path.resolve(filename, 'index'), exts, isMain);
-  if (actual === false) {
-    actual = tryExtensions(path.resolve(requestPath, 'index'), exts, isMain);
-    if (!actual) {
-      // eslint-disable-next-line no-restricted-syntax
-      const err = new Error(
-        `Cannot find module '${filename}'. ` +
-        'Please verify that the package.json has a valid "main" entry'
-      );
-      err.code = 'MODULE_NOT_FOUND';
-      err.path = path.resolve(requestPath, 'package.json');
-      err.requestPath = originalPath;
-      // TODO(BridgeAR): Add the requireStack as well.
-      throw err;
-    } else {
-      const jsonPath = path.resolve(requestPath, 'package.json');
-      process.emitWarning(
-        `Invalid 'main' field in '${jsonPath}' of '${pkg}'. ` +
-          'Please either fix that or report it to the module author',
-        'DeprecationWarning',
-        'DEP0128'
-      );
-    }
+common.register('touch', _touch, {
+  cmdOptions: {
+    'a': 'atime_only',
+    'c': 'no_create',
+    'd': 'date',
+    'm': 'mtime_only',
+    'r': 'reference',
+  },
+});
+
+//@
+//@ ### touch([options,] file [, file ...])
+//@ ### touch([options,] file_array)
+//@
+//@ Available options:
+//@
+//@ + `-a`: Change only the access time
+//@ + `-c`: Do not create any files
+//@ + `-m`: Change only the modification time
+//@ + `-d DATE`: Parse `DATE` and use it instead of current time
+//@ + `-r FILE`: Use `FILE`'s times instead of current time
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ touch('source.js');
+//@ touch('-c', '/path/to/some/dir/source.js');
+//@ touch({ '-r': FILE }, '/path/to/some/dir/source.js');
+//@ ```
+//@
+//@ Update the access and modification times of each `FILE` to the current time.
+//@ A `FILE` argument that does not exist is created empty, unless `-c` is supplied.
+//@ This is a partial implementation of [`touch(1)`](http://linux.die.net/man/1/touch).
+function _touch(opts, files) {
+  if (!files) {
+    common.error('no files given');
+  } else if (typeof files === 'string') {
+    files = [].slice.call(arguments, 1);
+  } else {
+    common.error('file arg should be a string file path or an Array of string file paths');
   }
-  return actual;
+
+  files.forEach(function (f) {
+    touchFile(opts, f);
+  });
+  return '';
 }
 
-// In order to minimize unnecessary lstat() calls,
-// this cache is a list of known-real paths.
-// Set to an empty Map to reset.
-const realpathCache = new SafeMap();
+function touchFile(opts, file) {
+  var stat = tryStatFile(file);
 
-// Check if the file exists and is not a directory
-// if using --preserve-symlinks and isMain is false,
-// keep symlinks intact, otherwise resolve to the
-// absolute realpath.
-function tryFile(requestPath, isMain) {
-  const rc = stat(requestPath);
-  if (rc !== 0) return;
-  if (preserveSymlinks && !isMain) {
-    return path.resolve(requestPath);
+  if (stat && stat.isDirectory()) {
+    // don't error just exit
+    return;
   }
-  return toRealPath(requestPath);
-}
 
-function toRealPath(requestPath) {
-  return fs.realpathSync(requestPath, {
-    // [internalFS.realpathCacheKey]: realpathCache
-  });
-}
+  // if the file doesn't already exist and the user has specified --no-create then
+  // this script is finished
+  if (!stat && opts.no_create) {
+    return;
+  }
 
-function statReplacementExtensions(p) {
-  const lastDotIndex = p.lastIndexOf('.');
-  if(lastDotIndex >= 0) {
-    const ext = p.slice(lastDotIndex);
-    if (ext === '.js' || ext === '.jsx' || ext === '.mjs' || ext === '.cjs') {
-      const pathnameWithoutExtension = p.slice(0, lastDotIndex);
-      const replacementExts =
-        ext === '.js' ? replacementsForJs
-        : ext === '.jsx' ? replacementsForJsx
-        : ext === '.mjs' ? replacementsForMjs
-        : replacementsForCjs;
-      for (let i = 0; i < replacementExts.length; i++) {
-        const filename = pathnameWithoutExtension + replacementExts[i];
-        const rc = stat(filename);
-        if (rc === 0) {
-          return [rc, filename];
-        }
-      }
+  // open the file and then close it. this will create it if it doesn't exist but will
+  // not truncate the file
+  fs.closeSync(fs.openSync(file, 'a'));
+
+  //
+  // Set timestamps
+  //
+
+  // setup some defaults
+  var now = new Date();
+  var mtime = opts.date || now;
+  var atime = opts.date || now;
+
+  // use reference file
+  if (opts.reference) {
+    var refStat = tryStatFile(opts.reference);
+    if (!refStat) {
+      common.error('failed to get attributess of ' + opts.reference);
     }
+    mtime = refStat.mtime;
+    atime = refStat.atime;
+  } else if (opts.date) {
+    mtime = opts.date;
+    atime = opts.date;
   }
-  return [stat(p), p];
-}
-function tryReplacementExtensions(p, isMain) {
-  const lastDotIndex = p.lastIndexOf('.');
-  if(lastDotIndex >= 0) {
-    const ext = p.slice(lastDotIndex);
-    if (ext === '.js' || ext === '.jsx' || ext === '.mjs' || ext === '.cjs') {
-      const pathnameWithoutExtension = p.slice(0, lastDotIndex);
-      const replacementExts =
-        ext === '.js' ? replacementsForJs
-        : ext === '.jsx' ? replacementsForJsx
-        : ext === '.mjs' ? replacementsForMjs
-        : replacementsForCjs;
-      for (let i = 0; i < replacementExts.length; i++) {
-        const filename = tryFile(pathnameWithoutExtension + replacementExts[i], isMain);
-        if (filename) {
-          return filename;
-        }
-      }
-    }
+
+  if (opts.atime_only && opts.mtime_only) {
+    // keep the new values of mtime and atime like GNU
+  } else if (opts.atime_only) {
+    mtime = stat.mtime;
+  } else if (opts.mtime_only) {
+    atime = stat.atime;
   }
-  return false;
+
+  fs.utimesSync(file, atime, mtime);
 }
 
-// Given a path, check if the file exists with any of the set extensions
-function tryExtensions(p, exts, isMain) {
-  for (let i = 0; i < exts.length; i++) {
-    const filename = tryFile(p + exts[i], isMain);
+module.exports = _touch;
 
-    if (filename) {
-      return filename;
-    }
+function tryStatFile(filePath) {
+  try {
+    return common.statFollowLinks(filePath);
+  } catch (e) {
+    return null;
   }
-  return false;
 }
 
-function trySelfParentPath(parent) {
-  if (!parent) return false;
 
-  if (parent.filename) {
-    return parent.filename;
-  } else if (parent.id === '' || parent.id === 'internal/preload') {
-    try {
-      return process.cwd() + path.sep;
-    } catch {
-      return false;
-    }
+/***/ }),
+
+/***/ 77286:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
+
+// add c spaces to the left of str
+function lpad(c, str) {
+  var res = '' + str;
+  if (res.length < c) {
+    res = Array((c - res.length) + 1).join(' ') + res;
   }
+  return res;
 }
 
-function trySelf(parentPath, request) {
-  if (!parentPath) return false;
+common.register('uniq', _uniq, {
+  canReceivePipe: true,
+  cmdOptions: {
+    'i': 'ignoreCase',
+    'c': 'count',
+    'd': 'duplicates',
+  },
+});
 
-  const { data: pkg, path: pkgPath } = readPackageScope(parentPath) || {};
-  if (!pkg || pkg.exports === undefined) return false;
-  if (typeof pkg.name !== 'string') return false;
+//@
+//@ ### uniq([options,] [input, [output]])
+//@
+//@ Available options:
+//@
+//@ + `-i`: Ignore case while comparing
+//@ + `-c`: Prefix lines by the number of occurrences
+//@ + `-d`: Only print duplicate lines, one for each group of identical lines
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ uniq('foo.txt');
+//@ uniq('-i', 'foo.txt');
+//@ uniq('-cd', 'foo.txt', 'bar.txt');
+//@ ```
+//@
+//@ Filter adjacent matching lines from `input`.
+function _uniq(options, input, output) {
+  // Check if this is coming from a pipe
+  var pipe = common.readFromPipe();
 
-  let expansion;
-  if (request === pkg.name) {
-    expansion = '.';
-  } else if (StringPrototypeStartsWith(request, `${pkg.name}/`)) {
-    expansion = '.' + StringPrototypeSlice(request, pkg.name.length);
-  } else {
-    return false;
-  }
+  if (!pipe) {
+    if (!input) common.error('no input given');
 
-  try {
-    return finalizeEsmResolution(packageExportsResolve(
-      pathToFileURL(pkgPath + '/package.json'), expansion, pkg,
-      pathToFileURL(parentPath), cjsConditions).resolved, parentPath, pkgPath);
-  } catch (e) {
-    if (e.code === 'ERR_MODULE_NOT_FOUND')
-      throw createEsmNotFoundErr(request, pkgPath + '/package.json');
-    throw e;
+    if (!fs.existsSync(input)) {
+      common.error(input + ': No such file or directory');
+    } else if (common.statFollowLinks(input).isDirectory()) {
+      common.error("error reading '" + input + "'");
+    }
+  }
+  if (output && fs.existsSync(output) && common.statFollowLinks(output).isDirectory()) {
+    common.error(output + ': Is a directory');
   }
-}
 
-// This only applies to requests of a specific form:
-// 1. name/.*
-// 2. @scope/name/.*
-const EXPORTS_PATTERN = /^((?:@[^/\\%]+\/)?[^./\\%][^/\\%]*)(\/.*)?$/;
-function resolveExports(nmPath, request) {
-  // The implementation's behavior is meant to mirror resolution in ESM.
-  const { 1: name, 2: expansion = '' } =
-    StringPrototypeMatch(request, EXPORTS_PATTERN) || [];
-  if (!name)
-    return;
-  const pkgPath = path.resolve(nmPath, name);
-  const pkg = readPackage(pkgPath);
-  // if (pkg?.exports != null) {
-  if (pkg != null && pkg.exports != null) {
-    try {
-      return finalizeEsmResolution(packageExportsResolve(
-        pathToFileURL(pkgPath + '/package.json'), '.' + expansion, pkg, null,
-        cjsConditions).resolved, null, pkgPath);
-    } catch (e) {
-      if (e.code === 'ERR_MODULE_NOT_FOUND')
-        throw createEsmNotFoundErr(request, pkgPath + '/package.json');
-      throw e;
+  var lines = (input ? fs.readFileSync(input, 'utf8') : pipe).
+              trimRight().
+              split('\n');
+
+  var compare = function (a, b) {
+    return options.ignoreCase ?
+           a.toLocaleLowerCase().localeCompare(b.toLocaleLowerCase()) :
+           a.localeCompare(b);
+  };
+  var uniqed = lines.reduceRight(function (res, e) {
+    // Perform uniq -c on the input
+    if (res.length === 0) {
+      return [{ count: 1, ln: e }];
+    } else if (compare(res[0].ln, e) === 0) {
+      return [{ count: res[0].count + 1, ln: e }].concat(res.slice(1));
+    } else {
+      return [{ count: 1, ln: e }].concat(res);
     }
+  }, []).filter(function (obj) {
+                 // Do we want only duplicated objects?
+    return options.duplicates ? obj.count > 1 : true;
+  }).map(function (obj) {
+                 // Are we tracking the counts of each line?
+    return (options.count ? (lpad(7, obj.count) + ' ') : '') + obj.ln;
+  }).join('\n') + '\n';
+
+  if (output) {
+    (new common.ShellString(uniqed)).to(output);
+    // if uniq writes to output, nothing is passed to the next command in the pipeline (if any)
+    return '';
+  } else {
+    return uniqed;
   }
 }
 
-// Backwards compat for old node versions
-const hasModulePathCache = !!(__nccwpck_require__(98188)._pathCache);
-const Module_pathCache = Object.create(null);
-const Module_pathCache_get = hasModulePathCache ? (cacheKey) => Module._pathCache[cacheKey] : (cacheKey) => Module_pathCache[cacheKey];
-const Module_pathCache_set = hasModulePathCache ? (cacheKey, value) => (Module._pathCache[cacheKey] = value) : (cacheKey) => (Module_pathCache[cacheKey] = value);
+module.exports = _uniq;
 
-const trailingSlashRegex = /(?:^|\/)\.?\.$/;
-const Module_findPath = function _findPath(request, paths, isMain) {
-  const absoluteRequest = path.isAbsolute(request);
-  if (absoluteRequest) {
-    paths = [''];
-  } else if (!paths || paths.length === 0) {
-    return false;
-  }
 
-  const cacheKey = request + '\x00' + ArrayPrototypeJoin(paths, '\x00');
-  const entry = Module_pathCache_get(cacheKey);
-  if (entry)
-    return entry;
+/***/ }),
 
-  let exts;
-  let trailingSlash = request.length > 0 &&
-    StringPrototypeCharCodeAt(request, request.length - 1) ===
-    CHAR_FORWARD_SLASH;
-  if (!trailingSlash) {
-    trailingSlash = RegExpPrototypeTest(trailingSlashRegex, request);
-  }
+/***/ 64766:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-  // For each path
-  for (let i = 0; i < paths.length; i++) {
-    // Don't search further if path doesn't exist
-    const curPath = paths[i];
-    if (curPath && stat(curPath) < 1) continue;
+var common = __nccwpck_require__(53687);
+var fs = __nccwpck_require__(57147);
+var path = __nccwpck_require__(71017);
 
-    if (!absoluteRequest) {
-      const exportsResolved = resolveExports(curPath, request);
-      if (exportsResolved)
-        return exportsResolved;
-    }
+common.register('which', _which, {
+  allowGlobbing: false,
+  cmdOptions: {
+    'a': 'all',
+  },
+});
 
-    const _basePath = path.resolve(curPath, request);
-    let filename;
+// XP's system default value for `PATHEXT` system variable, just in case it's not
+// set on Windows.
+var XP_DEFAULT_PATHEXT = '.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh';
 
-    const [rc, basePath] = statReplacementExtensions(_basePath);
-    if (!trailingSlash) {
-      if (rc === 0) {  // File.
-        if (!isMain) {
-          if (preserveSymlinks) {
-            filename = path.resolve(basePath);
-          } else {
-            filename = toRealPath(basePath);
-          }
-        } else if (preserveSymlinksMain) {
-          // For the main module, we use the preserveSymlinksMain flag instead
-          // mainly for backward compatibility, as the preserveSymlinks flag
-          // historically has not applied to the main module.  Most likely this
-          // was intended to keep .bin/ binaries working, as following those
-          // symlinks is usually required for the imports in the corresponding
-          // files to resolve; that said, in some use cases following symlinks
-          // causes bigger problems which is why the preserveSymlinksMain option
-          // is needed.
-          filename = path.resolve(basePath);
-        } else {
-          filename = toRealPath(basePath);
-        }
-      }
+// For earlier versions of NodeJS that doesn't have a list of constants (< v6)
+var FILE_EXECUTABLE_MODE = 1;
 
-      if (!filename) {
-        // Try it with each of the extensions
-        if (exts === undefined)
-          exts = ObjectKeys(Module._extensions);
-        filename = tryExtensions(basePath, exts, isMain);
-      }
-    }
+function isWindowsPlatform() {
+  return process.platform === 'win32';
+}
 
-    if (!filename && rc === 1) {  // Directory.
-      // try it with each of the extensions at "index"
-      if (exts === undefined)
-        exts = ObjectKeys(Module._extensions);
-      filename = tryPackage(basePath, exts, isMain, request);
-    }
+// Cross-platform method for splitting environment `PATH` variables
+function splitPath(p) {
+  return p ? p.split(path.delimiter) : [];
+}
 
-    if (filename) {
-      Module_pathCache_set(cacheKey, filename);
-      return filename;
-    }
+// Tests are running all cases for this func but it stays uncovered by codecov due to unknown reason
+/* istanbul ignore next */
+function isExecutable(pathName) {
+  try {
+    // TODO(node-support): replace with fs.constants.X_OK once remove support for node < v6
+    fs.accessSync(pathName, FILE_EXECUTABLE_MODE);
+  } catch (err) {
+    return false;
   }
+  return true;
+}
 
-  return false;
-};
+function checkPath(pathName) {
+  return fs.existsSync(pathName) && !common.statFollowLinks(pathName).isDirectory()
+    && (isWindowsPlatform() || isExecutable(pathName));
+}
 
-const Module_resolveFilename = function _resolveFilename(request, parent, isMain, options) {
-  if (StringPrototypeStartsWith(request, 'node:') ||
-      NativeModule.canBeRequiredByUsers(request)) {
-    return request;
-  }
+//@
+//@ ### which(command)
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ var nodeExec = which('node');
+//@ ```
+//@
+//@ Searches for `command` in the system's `PATH`. On Windows, this uses the
+//@ `PATHEXT` variable to append the extension if it's not already executable.
+//@ Returns string containing the absolute path to `command`.
+function _which(options, cmd) {
+  if (!cmd) common.error('must specify command');
 
-  let paths;
+  var isWindows = isWindowsPlatform();
+  var pathArray = splitPath(process.env.PATH);
 
-  if (typeof options === 'object' && options !== null) {
-    if (ArrayIsArray(options.paths)) {
-      const isRelative = StringPrototypeStartsWith(request, './') ||
-          StringPrototypeStartsWith(request, '../') ||
-          ((isWindows && StringPrototypeStartsWith(request, '.\\')) ||
-          StringPrototypeStartsWith(request, '..\\'));
+  var queryMatches = [];
 
-      if (isRelative) {
-        paths = options.paths;
-      } else {
-        const fakeParent = new Module('', null);
+  // No relative/absolute paths provided?
+  if (cmd.indexOf('/') === -1) {
+    // Assume that there are no extensions to append to queries (this is the
+    // case for unix)
+    var pathExtArray = [''];
+    if (isWindows) {
+      // In case the PATHEXT variable is somehow not set (e.g.
+      // child_process.spawn with an empty environment), use the XP default.
+      var pathExtEnv = process.env.PATHEXT || XP_DEFAULT_PATHEXT;
+      pathExtArray = splitPath(pathExtEnv.toUpperCase());
+    }
 
-        paths = [];
+    // Search for command in PATH
+    for (var k = 0; k < pathArray.length; k++) {
+      // already found it
+      if (queryMatches.length > 0 && !options.all) break;
 
-        for (let i = 0; i < options.paths.length; i++) {
-          const path = options.paths[i];
-          fakeParent.paths = Module._nodeModulePaths(path);
-          const lookupPaths = Module._resolveLookupPaths(request, fakeParent);
+      var attempt = path.resolve(pathArray[k], cmd);
 
-          for (let j = 0; j < lookupPaths.length; j++) {
-            if (!ArrayPrototypeIncludes(paths, lookupPaths[j]))
-              ArrayPrototypePush(paths, lookupPaths[j]);
-          }
-        }
+      if (isWindows) {
+        attempt = attempt.toUpperCase();
       }
-    } else if (options.paths === undefined) {
-      paths = Module._resolveLookupPaths(request, parent);
-    } else {
-      throw new ERR_INVALID_ARG_VALUE('options.paths', options.paths);
-    }
-  } else {
-    paths = Module._resolveLookupPaths(request, parent);
-  }
-
-  // if (parent?.filename) {
-  // node 12 hack
-  if (parent != null && parent.filename) {
-    if (request[0] === '#') {
-      const pkg = readPackageScope(parent.filename) || {};
 
-      // if (pkg.data?.imports != null) {
-      // node 12 hack
-      if (pkg.data != null && pkg.data.imports != null) {
-        try {
-          return finalizeEsmResolution(
-            packageImportsResolve(request, pathToFileURL(parent.filename),
-                                  cjsConditions), parent.filename,
-            pkg.path);
-        } catch (e) {
-          if (e.code === 'ERR_MODULE_NOT_FOUND')
-            throw createEsmNotFoundErr(request);
-          throw e;
+      var match = attempt.match(/\.[^<>:"/\|?*.]+$/);
+      if (match && pathExtArray.indexOf(match[0]) >= 0) { // this is Windows-only
+        // The user typed a query with the file extension, like
+        // `which('node.exe')`
+        if (checkPath(attempt)) {
+          queryMatches.push(attempt);
+          break;
+        }
+      } else { // All-platforms
+        // Cycle through the PATHEXT array, and check each extension
+        // Note: the array is always [''] on Unix
+        for (var i = 0; i < pathExtArray.length; i++) {
+          var ext = pathExtArray[i];
+          var newAttempt = attempt + ext;
+          if (checkPath(newAttempt)) {
+            queryMatches.push(newAttempt);
+            break;
+          }
         }
       }
     }
+  } else if (checkPath(cmd)) { // a valid absolute or relative path
+    queryMatches.push(path.resolve(cmd));
   }
 
-  // Try module self resolution first
-  const parentPath = trySelfParentPath(parent);
-  const selfResolved = trySelf(parentPath, request);
-  if (selfResolved) {
-    const cacheKey = request + '\x00' +
-         (paths.length === 1 ? paths[0] : ArrayPrototypeJoin(paths, '\x00'));
-    Module._pathCache[cacheKey] = selfResolved;
-    return selfResolved;
+  if (queryMatches.length > 0) {
+    return options.all ? queryMatches : queryMatches[0];
   }
+  return options.all ? [] : null;
+}
+module.exports = _which;
 
-  // Look up the filename first, since that's the cache key.
-  const filename = Module._findPath(request, paths, isMain, false);
-  if (filename) return filename;
-  const requireStack = [];
-  for (let cursor = parent;
-    cursor;
-    cursor = moduleParentCache.get(cursor)) {
-    ArrayPrototypePush(requireStack, cursor.filename || cursor.id);
-  }
-  let message = `Cannot find module '${request}'`;
-  if (requireStack.length > 0) {
-    message = message + '\nRequire stack:\n- ' +
-              ArrayPrototypeJoin(requireStack, '\n- ');
-  }
-  // eslint-disable-next-line no-restricted-syntax
-  const err = new Error(message);
-  err.code = 'MODULE_NOT_FOUND';
-  err.requireStack = requireStack;
-  throw err;
-};
 
-function finalizeEsmResolution(resolved, parentPath, pkgPath) {
-  if (RegExpPrototypeTest(encodedSepRegEx, resolved))
-    throw new ERR_INVALID_MODULE_SPECIFIER(
-      resolved, 'must not include encoded "/" or "\\" characters', parentPath);
-  const filename = fileURLToPath(resolved);
-  const actual = tryReplacementExtensions(filename) || tryFile(filename);
-  if (actual)
-    return actual;
-  const err = createEsmNotFoundErr(filename,
-                                   path.resolve(pkgPath, 'package.json'));
-  throw err;
-}
+/***/ }),
 
-function createEsmNotFoundErr(request, path) {
-  // eslint-disable-next-line no-restricted-syntax
-  const err = new Error(`Cannot find module '${request}'`);
-  err.code = 'MODULE_NOT_FOUND';
-  if (path)
-    err.path = path;
-  // TODO(BridgeAR): Add the requireStack as well.
-  return err;
-}
+/***/ 9249:
+/***/ ((module, exports, __nccwpck_require__) => {
 
+/* module decorator */ module = __nccwpck_require__.nmd(module);
+var SourceMapConsumer = (__nccwpck_require__(56594).SourceMapConsumer);
+var path = __nccwpck_require__(71017);
 
-return {
-  Module_findPath,
-  Module_resolveFilename
+var fs;
+try {
+  fs = __nccwpck_require__(57147);
+  if (!fs.existsSync || !fs.readFileSync) {
+    // fs doesn't have all methods we need
+    fs = null;
+  }
+} catch (err) {
+  /* nop */
 }
 
-}
+var bufferFrom = __nccwpck_require__(93018);
 
 /**
- * copied from Module._extensions['.js']
- * https://github.com/nodejs/node/blob/v15.3.0/lib/internal/modules/cjs/loader.js#L1113-L1120
- * @param {import('../src/index').Service} service
- * @param {NodeJS.Module} module
- * @param {string} filename
+ * Requires a module which is protected against bundler minification.
+ *
+ * @param {NodeModule} mod
+ * @param {string} request
  */
-function assertScriptCanLoadAsCJSImpl(service, module, filename) {
-  const pkg = readPackageScope(filename);
-
-  // ts-node modification: allow our configuration to override
-  const tsNodeClassification = service.moduleTypeClassifier.classifyModuleByModuleTypeOverrides(normalizeSlashes(filename));
-  if(tsNodeClassification.moduleType === 'cjs') return;
-
-  // ignore package.json when file extension is ESM-only or CJS-only
-  // [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS]
-  const lastDotIndex = filename.lastIndexOf('.');
-  const ext = lastDotIndex >= 0 ? filename.slice(lastDotIndex) : '';
-
-  if((ext === '.cts' || ext === '.cjs') && tsNodeClassification.moduleType === 'auto') return;
-
-  // Function require shouldn't be used in ES modules.
-  if (ext === '.mts' || ext === '.mjs' || tsNodeClassification.moduleType === 'esm' || (pkg && pkg.data && pkg.data.type === 'module')) {
-    const parentPath = module.parent && module.parent.filename;
-    const packageJsonPath = pkg ? path.resolve(pkg.path, 'package.json') : null;
-    throw createErrRequireEsm(filename, parentPath, packageJsonPath);
-  }
+function dynamicRequire(mod, request) {
+  return mod.require(request);
 }
 
+// Only install once if called multiple times
+var errorFormatterInstalled = false;
+var uncaughtShimInstalled = false;
 
-module.exports = {
-  createCjsLoader,
-  assertScriptCanLoadAsCJSImpl,
-  readPackageScope
-};
+// If true, the caches are reset before a stack trace formatting operation
+var emptyCacheBetweenOperations = false;
 
+// Supports {browser, node, auto}
+var environment = "auto";
 
-/***/ }),
+// Maps a file path to a string containing the file contents
+var fileContentsCache = {};
 
-/***/ 37207:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+// Maps a file path to a source map for that file
+var sourceMapCache = {};
 
-"use strict";
-// Copied from https://raw.githubusercontent.com/nodejs/node/v15.3.0/lib/internal/modules/esm/get_format.js
+// Regex for detecting source maps
+var reSourceMap = /^data:application\/json[^,]+base64,/;
 
+// Priority list of retrieve handlers
+var retrieveFileHandlers = [];
+var retrieveMapHandlers = [];
 
-const {
-  RegExpPrototypeExec,
-  StringPrototypeStartsWith,
-} = __nccwpck_require__(26326);
-const { extname } = __nccwpck_require__(71017);
-const { getOptionValue } = __nccwpck_require__(40690);
+function isInBrowser() {
+  if (environment === "browser")
+    return true;
+  if (environment === "node")
+    return false;
+  return ((typeof window !== 'undefined') && (typeof XMLHttpRequest === 'function') && !(window.require && window.module && window.process && window.process.type === "renderer"));
+}
 
-const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(s => parseInt(s, 10));
-const experimentalJsonModules =
-  nodeMajor > 17
-  || (nodeMajor === 17 && nodeMinor >= 5)
-  || (nodeMajor === 16 && nodeMinor >= 15)
-  || getOptionValue('--experimental-json-modules');
-const experimentalWasmModules = getOptionValue('--experimental-wasm-modules');
-const { URL, fileURLToPath } = __nccwpck_require__(57310);
-const { ERR_UNKNOWN_FILE_EXTENSION } = (__nccwpck_require__(61858).codes);
+function hasGlobalProcessEventEmitter() {
+  return ((typeof process === 'object') && (process !== null) && (typeof process.on === 'function'));
+}
 
-const extensionFormatMap = {
-  '__proto__': null,
-  '.cjs': 'commonjs',
-  '.js': 'module',
-  '.mjs': 'module'
-};
+function globalProcessVersion() {
+  if ((typeof process === 'object') && (process !== null)) {
+    return process.version;
+  } else {
+    return '';
+  }
+}
 
-const legacyExtensionFormatMap = {
-  '__proto__': null,
-  '.cjs': 'commonjs',
-  '.js': 'commonjs',
-  '.json': 'commonjs',
-  '.mjs': 'module',
-  '.node': 'commonjs'
-};
+function globalProcessStderr() {
+  if ((typeof process === 'object') && (process !== null)) {
+    return process.stderr;
+  }
+}
 
-if (experimentalWasmModules)
-  extensionFormatMap['.wasm'] = legacyExtensionFormatMap['.wasm'] = 'wasm';
+function globalProcessExit(code) {
+  if ((typeof process === 'object') && (process !== null) && (typeof process.exit === 'function')) {
+    return process.exit(code);
+  }
+}
 
-if (experimentalJsonModules)
-  extensionFormatMap['.json'] = legacyExtensionFormatMap['.json'] = 'json';
+function handlerExec(list) {
+  return function(arg) {
+    for (var i = 0; i < list.length; i++) {
+      var ret = list[i](arg);
+      if (ret) {
+        return ret;
+      }
+    }
+    return null;
+  };
+}
 
-/**
- *
- * @param {'node' | 'explicit'} [tsNodeExperimentalSpecifierResolution]
- * @param {ReturnType<
- *  typeof import('../dist-raw/node-internal-modules-esm-resolve').createResolve
- * >} nodeEsmResolver
- */
-function createGetFormat(tsNodeExperimentalSpecifierResolution, nodeEsmResolver) {
-// const experimentalSpeciferResolution = tsNodeExperimentalSpecifierResolution ?? getOptionValue('--experimental-specifier-resolution');
-let experimentalSpeciferResolution = tsNodeExperimentalSpecifierResolution != null ? tsNodeExperimentalSpecifierResolution : getOptionValue('--experimental-specifier-resolution');
-const { getPackageType } = nodeEsmResolver;
+var retrieveFile = handlerExec(retrieveFileHandlers);
 
-/**
- * @param {string} url
- * @param {{}} context
- * @param {any} defaultGetFormatUnused
- * @returns {ReturnType}
- */
-function defaultGetFormat(url, context, defaultGetFormatUnused) {
-  if (StringPrototypeStartsWith(url, 'node:')) {
-    return { format: 'builtin' };
+retrieveFileHandlers.push(function(path) {
+  // Trim the path to make sure there is no extra whitespace.
+  path = path.trim();
+  if (/^file:/.test(path)) {
+    // existsSync/readFileSync can't handle file protocol, but once stripped, it works
+    path = path.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) {
+      return drive ?
+        '' : // file:///C:/dir/file -> C:/dir/file
+        '/'; // file:///root-dir/file -> /root-dir/file
+    });
   }
-  const parsed = new URL(url);
-  if (parsed.protocol === 'data:') {
-    const [ , mime ] = RegExpPrototypeExec(
-      /^([^/]+\/[^;,]+)(?:[^,]*?)(;base64)?,/,
-      parsed.pathname,
-    ) || [ null, null, null ];
-    const format = ({
-      '__proto__': null,
-      'text/javascript': 'module',
-      'application/json': experimentalJsonModules ? 'json' : null,
-      'application/wasm': experimentalWasmModules ? 'wasm' : null
-    })[mime] || null;
-    return { format };
-  } else if (parsed.protocol === 'file:') {
-    const ext = extname(parsed.pathname);
-    let format;
-    if (ext === '.js') {
-      format = getPackageType(parsed.href) === 'module' ? 'module' : 'commonjs';
-    } else {
-      format = extensionFormatMap[ext];
-    }
-    if (!format) {
-      if (experimentalSpeciferResolution === 'node') {
-        process.emitWarning(
-          'The Node.js specifier resolution in ESM is experimental.',
-          'ExperimentalWarning');
-        format = legacyExtensionFormatMap[ext];
-      } else {
-        throw new ERR_UNKNOWN_FILE_EXTENSION(ext, fileURLToPath(url));
+  if (path in fileContentsCache) {
+    return fileContentsCache[path];
+  }
+
+  var contents = '';
+  try {
+    if (!fs) {
+      // Use SJAX if we are in the browser
+      var xhr = new XMLHttpRequest();
+      xhr.open('GET', path, /** async */ false);
+      xhr.send(null);
+      if (xhr.readyState === 4 && xhr.status === 200) {
+        contents = xhr.responseText;
       }
+    } else if (fs.existsSync(path)) {
+      // Otherwise, use the filesystem
+      contents = fs.readFileSync(path, 'utf8');
     }
-    return { format: format || null };
+  } catch (er) {
+    /* ignore any errors */
   }
-  return { format: null };
-}
-
-return {defaultGetFormat};
-}
 
-module.exports = {
-  createGetFormat
-};
+  return fileContentsCache[path] = contents;
+});
 
+// Support URLs relative to a directory, but be careful about a protocol prefix
+// in case we are in the browser (i.e. directories may start with "http://" or "file:///")
+function supportRelativeURL(file, url) {
+  if (!file) return url;
+  var dir = path.dirname(file);
+  var match = /^\w+:\/\/[^\/]*/.exec(dir);
+  var protocol = match ? match[0] : '';
+  var startPath = dir.slice(protocol.length);
+  if (protocol && /^\/\w\:/.test(startPath)) {
+    // handle file:///C:/ paths
+    protocol += '/';
+    return protocol + path.resolve(dir.slice(protocol.length), url).replace(/\\/g, '/');
+  }
+  return protocol + path.resolve(dir.slice(protocol.length), url);
+}
 
-/***/ }),
+function retrieveSourceMapURL(source) {
+  var fileData;
 
-/***/ 67968:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+  if (isInBrowser()) {
+     try {
+       var xhr = new XMLHttpRequest();
+       xhr.open('GET', source, false);
+       xhr.send(null);
+       fileData = xhr.readyState === 4 ? xhr.responseText : null;
 
-"use strict";
-// Copied from https://raw.githubusercontent.com/nodejs/node/v15.3.0/lib/internal/modules/esm/resolve.js
+       // Support providing a sourceMappingURL via the SourceMap header
+       var sourceMapHeader = xhr.getResponseHeader("SourceMap") ||
+                             xhr.getResponseHeader("X-SourceMap");
+       if (sourceMapHeader) {
+         return sourceMapHeader;
+       }
+     } catch (e) {
+     }
+  }
 
+  // Get the URL of the source map
+  fileData = retrieveFile(source);
+  var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg;
+  // Keep executing the search to find the *last* sourceMappingURL to avoid
+  // picking up sourceMappingURLs from comments, strings, etc.
+  var lastMatch, match;
+  while (match = re.exec(fileData)) lastMatch = match;
+  if (!lastMatch) return null;
+  return lastMatch[1];
+};
 
+// Can be overridden by the retrieveSourceMap option to install. Takes a
+// generated source filename; returns a {map, optional url} object, or null if
+// there is no source map.  The map field may be either a string or the parsed
+// JSON object (ie, it must be a valid argument to the SourceMapConsumer
+// constructor).
+var retrieveSourceMap = handlerExec(retrieveMapHandlers);
+retrieveMapHandlers.push(function(source) {
+  var sourceMappingURL = retrieveSourceMapURL(source);
+  if (!sourceMappingURL) return null;
 
-const {versionGteLt} = __nccwpck_require__(64745);
-
-// Test for node >14.13.1 || (>=12.20.0 && <13)
-const builtinModuleProtocol =
-  versionGteLt(process.versions.node, '14.13.1') ||
-  versionGteLt(process.versions.node, '12.20.0', '13.0.0')
-    ? 'node:'
-    : 'nodejs:';
-
-const {
-  ArrayIsArray,
-  ArrayPrototypeJoin,
-  ArrayPrototypeShift,
-  JSONParse,
-  JSONStringify,
-  ObjectFreeze,
-  ObjectGetOwnPropertyNames,
-  ObjectPrototypeHasOwnProperty,
-  RegExpPrototypeTest,
-  SafeMap,
-  SafeSet,
-  StringPrototypeEndsWith,
-  StringPrototypeIndexOf,
-  StringPrototypeLastIndexOf,
-  StringPrototypeReplace,
-  StringPrototypeSlice,
-  StringPrototypeSplit,
-  StringPrototypeStartsWith,
-  StringPrototypeSubstr,
-} = __nccwpck_require__(26326);
-
-// const internalFS = require('internal/fs/utils');
-const Module = __nccwpck_require__(98188);
-const { NativeModule } = __nccwpck_require__(81597);
-const {
-  realpathSync,
-  statSync,
-  Stats,
-} = __nccwpck_require__(57147);
-// const { getOptionValue } = require('internal/options');
-const { getOptionValue } = __nccwpck_require__(40690);
-// // Do not eagerly grab .manifest, it may be in TDZ
-// const policy = getOptionValue('--experimental-policy') ?
-//   require('internal/process/policy') :
-//   null;
-// disabled for now.  I am not sure if/how we should support this
-const policy = null;
-const { sep, relative } = __nccwpck_require__(71017);
-const preserveSymlinks = getOptionValue('--preserve-symlinks');
-const preserveSymlinksMain = getOptionValue('--preserve-symlinks-main');
-const typeFlag = getOptionValue('--input-type');
-// const { URL, pathToFileURL, fileURLToPath } = require('internal/url');
-const { URL, pathToFileURL, fileURLToPath } = __nccwpck_require__(57310);
-const {
-  ERR_INPUT_TYPE_NOT_ALLOWED,
-  ERR_INVALID_ARG_VALUE,
-  ERR_INVALID_MODULE_SPECIFIER,
-  ERR_INVALID_PACKAGE_CONFIG,
-  ERR_INVALID_PACKAGE_TARGET,
-  ERR_MANIFEST_DEPENDENCY_MISSING,
-  ERR_MODULE_NOT_FOUND,
-  ERR_PACKAGE_IMPORT_NOT_DEFINED,
-  ERR_PACKAGE_PATH_NOT_EXPORTED,
-  ERR_UNSUPPORTED_DIR_IMPORT,
-  ERR_UNSUPPORTED_ESM_URL_SCHEME,
-// } = require('internal/errors').codes;
-} = (__nccwpck_require__(61858).codes);
-
-// const { Module: CJSModule } = require('internal/modules/cjs/loader');
-const CJSModule = Module;
+  // Read the contents of the source map
+  var sourceMapData;
+  if (reSourceMap.test(sourceMappingURL)) {
+    // Support source map URL as a data url
+    var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1);
+    sourceMapData = bufferFrom(rawData, "base64").toString();
+    sourceMappingURL = source;
+  } else {
+    // Support source map URLs relative to the source URL
+    sourceMappingURL = supportRelativeURL(source, sourceMappingURL);
+    sourceMapData = retrieveFile(sourceMappingURL);
+  }
 
-// const packageJsonReader = require('internal/modules/package_json_reader');
-const packageJsonReader = __nccwpck_require__(53348);
-const userConditions = getOptionValue('--conditions');
-const DEFAULT_CONDITIONS = ObjectFreeze(['node', 'import', ...userConditions]);
-const DEFAULT_CONDITIONS_SET = new SafeSet(DEFAULT_CONDITIONS);
+  if (!sourceMapData) {
+    return null;
+  }
 
-const pendingDeprecation = getOptionValue('--pending-deprecation');
+  return {
+    url: sourceMappingURL,
+    map: sourceMapData
+  };
+});
 
-/**
- * @param {{
- *  extensions: import('../src/file-extensions').Extensions,
- *  preferTsExts: boolean | undefined;
- *  tsNodeExperimentalSpecifierResolution: import('../src/index').ExperimentalSpecifierResolution | undefined;
- * }} opts
- */
-function createResolve(opts) {
-// TODO receive cached fs implementations here
-const {preferTsExts, tsNodeExperimentalSpecifierResolution, extensions} = opts;
-const esrnExtensions = extensions.experimentalSpecifierResolutionAddsIfOmitted;
-const {legacyMainResolveAddsIfOmitted, replacementsForCjs, replacementsForJs, replacementsForMjs, replacementsForJsx} = extensions;
-// const experimentalSpecifierResolution = tsNodeExperimentalSpecifierResolution ?? getOptionValue('--experimental-specifier-resolution');
-const experimentalSpecifierResolution = tsNodeExperimentalSpecifierResolution != null ? tsNodeExperimentalSpecifierResolution : getOptionValue('--experimental-specifier-resolution');
+function mapSourcePosition(position) {
+  var sourceMap = sourceMapCache[position.source];
+  if (!sourceMap) {
+    // Call the (overrideable) retrieveSourceMap function to get the source map.
+    var urlAndMap = retrieveSourceMap(position.source);
+    if (urlAndMap) {
+      sourceMap = sourceMapCache[position.source] = {
+        url: urlAndMap.url,
+        map: new SourceMapConsumer(urlAndMap.map)
+      };
 
-const emittedPackageWarnings = new SafeSet();
-function emitFolderMapDeprecation(match, pjsonUrl, isExports, base) {
-  const pjsonPath = fileURLToPath(pjsonUrl);
-  if (!pendingDeprecation) {
-    const nodeModulesIndex = StringPrototypeLastIndexOf(pjsonPath,
-                                                        '/node_modules/');
-    if (nodeModulesIndex !== -1) {
-      const afterNodeModulesPath = StringPrototypeSlice(pjsonPath,
-                                                        nodeModulesIndex + 14,
-                                                        -13);
-      try {
-        const { packageSubpath } = parsePackageName(afterNodeModulesPath);
-        if (packageSubpath === '.')
-          return;
-      } catch {}
+      // Load all sources stored inline with the source map into the file cache
+      // to pretend like they are already loaded. They may not exist on disk.
+      if (sourceMap.map.sourcesContent) {
+        sourceMap.map.sources.forEach(function(source, i) {
+          var contents = sourceMap.map.sourcesContent[i];
+          if (contents) {
+            var url = supportRelativeURL(sourceMap.url, source);
+            fileContentsCache[url] = contents;
+          }
+        });
+      }
+    } else {
+      sourceMap = sourceMapCache[position.source] = {
+        url: null,
+        map: null
+      };
     }
   }
-  if (emittedPackageWarnings.has(pjsonPath + '|' + match))
-    return;
-  emittedPackageWarnings.add(pjsonPath + '|' + match);
-  process.emitWarning(
-    `Use of deprecated folder mapping "${match}" in the ${isExports ?
-      '"exports"' : '"imports"'} field module resolution of the package at ${
-      pjsonPath}${base ? ` imported from ${fileURLToPath(base)}` : ''}.\n` +
-      `Update this package.json to use a subpath pattern like "${match}*".`,
-    'DeprecationWarning',
-    'DEP0148'
-  );
-}
 
-function getConditionsSet(conditions) {
-  if (conditions !== undefined && conditions !== DEFAULT_CONDITIONS) {
-    if (!ArrayIsArray(conditions)) {
-      throw new ERR_INVALID_ARG_VALUE('conditions', conditions,
-                                      'expected an array');
+  // Resolve the source URL relative to the URL of the source map
+  if (sourceMap && sourceMap.map && typeof sourceMap.map.originalPositionFor === 'function') {
+    var originalPosition = sourceMap.map.originalPositionFor(position);
+
+    // Only return the original position if a matching line was found. If no
+    // matching line is found then we return position instead, which will cause
+    // the stack trace to print the path and line for the compiled file. It is
+    // better to give a precise location in the compiled file than a vague
+    // location in the original file.
+    if (originalPosition.source !== null) {
+      originalPosition.source = supportRelativeURL(
+        sourceMap.url, originalPosition.source);
+      return originalPosition;
     }
-    return new SafeSet(conditions);
   }
-  return DEFAULT_CONDITIONS_SET;
-}
-
-const realpathCache = new SafeMap();
-const packageJSONCache = new SafeMap();  /* string -> PackageConfig */
 
-const statSupportsThrowIfNoEntry = versionGteLt(process.versions.node, '15.3.0') ||
-  versionGteLt(process.versions.node, '14.17.0', '15.0.0');
-const tryStatSync = statSupportsThrowIfNoEntry ? tryStatSyncWithoutErrors : tryStatSyncWithErrors;
-const statsIfNotFound = new Stats();
-function tryStatSyncWithoutErrors(path) {
-  const stats = statSync(path, { throwIfNoEntry: false });
-  if(stats != null) return stats;
-  return statsIfNotFound;
-}
-function tryStatSyncWithErrors(path) {
-  try {
-    return statSync(path);
-  } catch {
-    return statsIfNotFound;
-  }
+  return position;
 }
 
-function getPackageConfig(path, specifier, base) {
-  const existing = packageJSONCache.get(path);
-  if (existing !== undefined) {
-    return existing;
-  }
-  const source = packageJsonReader.read(path).string;
-  if (source === undefined) {
-    const packageConfig = {
-      pjsonPath: path,
-      exists: false,
-      main: undefined,
-      name: undefined,
-      type: 'none',
-      exports: undefined,
-      imports: undefined,
-    };
-    packageJSONCache.set(path, packageConfig);
-    return packageConfig;
+// Parses code generated by FormatEvalOrigin(), a function inside V8:
+// https://code.google.com/p/v8/source/browse/trunk/src/messages.js
+function mapEvalOrigin(origin) {
+  // Most eval() calls are in this format
+  var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin);
+  if (match) {
+    var position = mapSourcePosition({
+      source: match[2],
+      line: +match[3],
+      column: match[4] - 1
+    });
+    return 'eval at ' + match[1] + ' (' + position.source + ':' +
+      position.line + ':' + (position.column + 1) + ')';
   }
 
-  let packageJSON;
-  try {
-    packageJSON = JSONParse(source);
-  } catch (error) {
-    throw new ERR_INVALID_PACKAGE_CONFIG(
-      path,
-      (base ? `"${specifier}" from ` : '') + fileURLToPath(base || specifier),
-      error.message
-    );
+  // Parse nested eval() calls using recursion
+  match = /^eval at ([^(]+) \((.+)\)$/.exec(origin);
+  if (match) {
+    return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')';
   }
 
-  let { imports, main, name, type } = packageJSON;
-  const { exports } = packageJSON;
-  if (typeof imports !== 'object' || imports === null) imports = undefined;
-  if (typeof main !== 'string') main = undefined;
-  if (typeof name !== 'string') name = undefined;
-  // Ignore unknown types for forwards compatibility
-  if (type !== 'module' && type !== 'commonjs') type = 'none';
-
-  const packageConfig = {
-    pjsonPath: path,
-    exists: true,
-    main,
-    name,
-    type,
-    exports,
-    imports,
-  };
-  packageJSONCache.set(path, packageConfig);
-  return packageConfig;
+  // Make sure we still return useful information if we didn't find anything
+  return origin;
 }
 
-function getPackageScopeConfig(resolved) {
-  let packageJSONUrl = new URL('./package.json', resolved);
-  while (true) {
-    const packageJSONPath = packageJSONUrl.pathname;
-    if (StringPrototypeEndsWith(packageJSONPath, 'node_modules/package.json'))
-      break;
-    const packageConfig = getPackageConfig(fileURLToPath(packageJSONUrl),
-                                           resolved);
-    if (packageConfig.exists) return packageConfig;
-
-    const lastPackageJSONUrl = packageJSONUrl;
-    packageJSONUrl = new URL('../package.json', packageJSONUrl);
+// This is copied almost verbatim from the V8 source code at
+// https://code.google.com/p/v8/source/browse/trunk/src/messages.js. The
+// implementation of wrapCallSite() used to just forward to the actual source
+// code of CallSite.prototype.toString but unfortunately a new release of V8
+// did something to the prototype chain and broke the shim. The only fix I
+// could find was copy/paste.
+function CallSiteToString() {
+  var fileName;
+  var fileLocation = "";
+  if (this.isNative()) {
+    fileLocation = "native";
+  } else {
+    fileName = this.getScriptNameOrSourceURL();
+    if (!fileName && this.isEval()) {
+      fileLocation = this.getEvalOrigin();
+      fileLocation += ", ";  // Expecting source position to follow.
+    }
 
-    // Terminates at root where ../package.json equals ../../package.json
-    // (can't just check "/package.json" for Windows support).
-    if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) break;
+    if (fileName) {
+      fileLocation += fileName;
+    } else {
+      // Source code does not originate from a file and is not native, but we
+      // can still get the source position inside the source string, e.g. in
+      // an eval string.
+      fileLocation += "";
+    }
+    var lineNumber = this.getLineNumber();
+    if (lineNumber != null) {
+      fileLocation += ":" + lineNumber;
+      var columnNumber = this.getColumnNumber();
+      if (columnNumber) {
+        fileLocation += ":" + columnNumber;
+      }
+    }
   }
-  const packageJSONPath = fileURLToPath(packageJSONUrl);
-  const packageConfig = {
-    pjsonPath: packageJSONPath,
-    exists: false,
-    main: undefined,
-    name: undefined,
-    type: 'none',
-    exports: undefined,
-    imports: undefined,
-  };
-  packageJSONCache.set(packageJSONPath, packageConfig);
-  return packageConfig;
-}
-
-/*
- * Legacy CommonJS main resolution:
- * 1. let M = pkg_url + (json main field)
- * 2. TRY(M, M.js, M.json, M.node)
- * 3. TRY(M/index.js, M/index.json, M/index.node)
- * 4. TRY(pkg_url/index.js, pkg_url/index.json, pkg_url/index.node)
- * 5. NOT_FOUND
- */
-function fileExists(url) {
-  return tryStatSync(fileURLToPath(url)).isFile();
-}
 
-function legacyMainResolve(packageJSONUrl, packageConfig, base) {
-  let guess;
-  if (packageConfig.main !== undefined) {
-    // Note: fs check redundances will be handled by Descriptor cache here.
-    if(guess = resolveReplacementExtensions(new URL(`./${packageConfig.main}`, packageJSONUrl))) {
-      return guess;
-    }
-    if (fileExists(guess = new URL(`./${packageConfig.main}`,
-                                   packageJSONUrl))) {
-      return guess;
+  var line = "";
+  var functionName = this.getFunctionName();
+  var addSuffix = true;
+  var isConstructor = this.isConstructor();
+  var isMethodCall = !(this.isToplevel() || isConstructor);
+  if (isMethodCall) {
+    var typeName = this.getTypeName();
+    // Fixes shim to be backward compatable with Node v0 to v4
+    if (typeName === "[object Object]") {
+      typeName = "null";
     }
-    for(const extension of legacyMainResolveAddsIfOmitted) {
-      if (fileExists(guess = new URL(`./${packageConfig.main}${extension}`,
-                                    packageJSONUrl))) {
-        return guess;
+    var methodName = this.getMethodName();
+    if (functionName) {
+      if (typeName && functionName.indexOf(typeName) != 0) {
+        line += typeName + ".";
       }
-    }
-    for(const extension of legacyMainResolveAddsIfOmitted) {
-      if (fileExists(guess = new URL(`./${packageConfig.main}/index${extension}`,
-                                    packageJSONUrl))) {
-        return guess;
+      line += functionName;
+      if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) {
+        line += " [as " + methodName + "]";
       }
+    } else {
+      line += typeName + "." + (methodName || "");
     }
-    // Fallthrough.
+  } else if (isConstructor) {
+    line += "new " + (functionName || "");
+  } else if (functionName) {
+    line += functionName;
+  } else {
+    line += fileLocation;
+    addSuffix = false;
   }
-  for(const extension of legacyMainResolveAddsIfOmitted) {
-    if (fileExists(guess = new URL(`./index${extension}`, packageJSONUrl))) {
-      return guess;
-    }
+  if (addSuffix) {
+    line += " (" + fileLocation + ")";
   }
-  // Not found.
-  throw new ERR_MODULE_NOT_FOUND(
-    fileURLToPath(new URL('.', packageJSONUrl)), fileURLToPath(base));
+  return line;
 }
 
-/** attempts replacement extensions, then tries exact name, then attempts appending extensions */
-function resolveExtensionsWithTryExactName(search) {
-  const resolvedReplacementExtension = resolveReplacementExtensions(search);
-  if(resolvedReplacementExtension) return resolvedReplacementExtension;
-  if (fileExists(search)) return search;
-  return resolveExtensions(search);
+function cloneCallSite(frame) {
+  var object = {};
+  Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) {
+    object[name] = /^(?:is|get)/.test(name) ? function() { return frame[name].call(frame); } : frame[name];
+  });
+  object.toString = CallSiteToString;
+  return object;
 }
 
-// This appends missing extensions
-function resolveExtensions(search) {
-  for (let i = 0; i < esrnExtensions.length; i++) {
-    const extension = esrnExtensions[i];
-    const guess = new URL(`${search.pathname}${extension}`, search);
-    if (fileExists(guess)) return guess;
+function wrapCallSite(frame, state) {
+  // provides interface backward compatibility
+  if (state === undefined) {
+    state = { nextPosition: null, curPosition: null }
   }
-  return undefined;
-}
-
-/** This replaces JS with TS extensions */
-function resolveReplacementExtensions(search) {
-  const lastDotIndex = search.pathname.lastIndexOf('.');
-  if(lastDotIndex >= 0) {
-    const ext = search.pathname.slice(lastDotIndex);
-    if (ext === '.js' || ext === '.jsx' || ext === '.mjs' || ext === '.cjs') {
-      const pathnameWithoutExtension = search.pathname.slice(0, lastDotIndex);
-      const replacementExts =
-        ext === '.js' ? replacementsForJs
-        : ext === '.jsx' ? replacementsForJsx
-        : ext === '.mjs' ? replacementsForMjs
-        : replacementsForCjs;
-      const guess = new URL(search.toString());
-      for (let i = 0; i < replacementExts.length; i++) {
-        const extension = replacementExts[i];
-        guess.pathname = `${pathnameWithoutExtension}${extension}`;
-        if (fileExists(guess)) return guess;
-      }
-    }
+  if(frame.isNative()) {
+    state.curPosition = null;
+    return frame;
   }
-  return undefined;
-}
-
-function resolveIndex(search) {
-  return resolveExtensions(new URL('index', search));
-}
 
-const encodedSepRegEx = /%2F|%2C/i;
-function finalizeResolution(resolved, base) {
-  if (RegExpPrototypeTest(encodedSepRegEx, resolved.pathname))
-    throw new ERR_INVALID_MODULE_SPECIFIER(
-      resolved.pathname, 'must not include encoded "/" or "\\" characters',
-      fileURLToPath(base));
+  // Most call sites will return the source file from getFileName(), but code
+  // passed to eval() ending in "//# sourceURL=..." will return the source file
+  // from getScriptNameOrSourceURL() instead
+  var source = frame.getFileName() || frame.getScriptNameOrSourceURL();
+  if (source) {
+    var line = frame.getLineNumber();
+    var column = frame.getColumnNumber() - 1;
 
-  if (experimentalSpecifierResolution === 'node') {
-    const path = fileURLToPath(resolved);
-    let file = resolveExtensionsWithTryExactName(resolved);
-    if (file !== undefined) return file;
-    if (!StringPrototypeEndsWith(path, '/')) {
-      file = resolveIndex(new URL(`${resolved}/`));
-      if (file !== undefined) return file;
-    } else {
-      return resolveIndex(resolved) || resolved;
+    // Fix position in Node where some (internal) code is prepended.
+    // See https://github.com/evanw/node-source-map-support/issues/36
+    // Header removed in node at ^10.16 || >=11.11.0
+    // v11 is not an LTS candidate, we can just test the one version with it.
+    // Test node versions for: 10.16-19, 10.20+, 12-19, 20-99, 100+, or 11.11
+    var noHeader = /^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/;
+    var headerLength = noHeader.test(globalProcessVersion()) ? 0 : 62;
+    if (line === 1 && column > headerLength && !isInBrowser() && !frame.isEval()) {
+      column -= headerLength;
     }
-    throw new ERR_MODULE_NOT_FOUND(
-      resolved.pathname, fileURLToPath(base), 'module');
-  }
 
-  const file = resolveReplacementExtensions(resolved) || resolved;
-  const path = fileURLToPath(file);
-
-  const stats = tryStatSync(StringPrototypeEndsWith(path, '/') ?
-    StringPrototypeSlice(path, -1) : path);
-  if (stats.isDirectory()) {
-    const err = new ERR_UNSUPPORTED_DIR_IMPORT(path, fileURLToPath(base));
-    err.url = String(resolved);
-    throw err;
-  } else if (!stats.isFile()) {
-    throw new ERR_MODULE_NOT_FOUND(
-      path || resolved.pathname, fileURLToPath(base), 'module');
+    var position = mapSourcePosition({
+      source: source,
+      line: line,
+      column: column
+    });
+    state.curPosition = position;
+    frame = cloneCallSite(frame);
+    var originalFunctionName = frame.getFunctionName;
+    frame.getFunctionName = function() {
+      if (state.nextPosition == null) {
+        return originalFunctionName();
+      }
+      return state.nextPosition.name || originalFunctionName();
+    };
+    frame.getFileName = function() { return position.source; };
+    frame.getLineNumber = function() { return position.line; };
+    frame.getColumnNumber = function() { return position.column + 1; };
+    frame.getScriptNameOrSourceURL = function() { return position.source; };
+    return frame;
   }
 
-  return file;
-}
+  // Code called using eval() needs special handling
+  var origin = frame.isEval() && frame.getEvalOrigin();
+  if (origin) {
+    origin = mapEvalOrigin(origin);
+    frame = cloneCallSite(frame);
+    frame.getEvalOrigin = function() { return origin; };
+    return frame;
+  }
 
-function throwImportNotDefined(specifier, packageJSONUrl, base) {
-  throw new ERR_PACKAGE_IMPORT_NOT_DEFINED(
-    specifier, packageJSONUrl && fileURLToPath(new URL('.', packageJSONUrl)),
-    fileURLToPath(base));
+  // If we get here then we were unable to change the source position
+  return frame;
 }
 
-function throwExportsNotFound(subpath, packageJSONUrl, base) {
-  throw new ERR_PACKAGE_PATH_NOT_EXPORTED(
-    fileURLToPath(new URL('.', packageJSONUrl)), subpath,
-    base && fileURLToPath(base));
-}
+// This function is part of the V8 stack trace API, for more info see:
+// https://v8.dev/docs/stack-trace-api
+function prepareStackTrace(error, stack) {
+  if (emptyCacheBetweenOperations) {
+    fileContentsCache = {};
+    sourceMapCache = {};
+  }
 
-function throwInvalidSubpath(subpath, packageJSONUrl, internal, base) {
-  const reason = `request is not a valid subpath for the "${internal ?
-    'imports' : 'exports'}" resolution of ${fileURLToPath(packageJSONUrl)}`;
-  throw new ERR_INVALID_MODULE_SPECIFIER(subpath, reason,
-                                         base && fileURLToPath(base));
-}
+  var name = error.name || 'Error';
+  var message = error.message || '';
+  var errorString = name + ": " + message;
 
-function throwInvalidPackageTarget(
-  subpath, target, packageJSONUrl, internal, base) {
-  if (typeof target === 'object' && target !== null) {
-    target = JSONStringify(target, null, '');
-  } else {
-    target = `${target}`;
+  var state = { nextPosition: null, curPosition: null };
+  var processedStack = [];
+  for (var i = stack.length - 1; i >= 0; i--) {
+    processedStack.push('\n    at ' + wrapCallSite(stack[i], state));
+    state.nextPosition = state.curPosition;
   }
-  throw new ERR_INVALID_PACKAGE_TARGET(
-    fileURLToPath(new URL('.', packageJSONUrl)), subpath, target,
-    internal, base && fileURLToPath(base));
+  state.curPosition = state.nextPosition = null;
+  return errorString + processedStack.reverse().join('');
 }
 
-const invalidSegmentRegEx = /(^|\\|\/)(\.\.?|node_modules)(\\|\/|$)/;
-const patternRegEx = /\*/g;
+// Generate position and snippet of original source with pointer
+function getErrorSource(error) {
+  var match = /\n    at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack);
+  if (match) {
+    var source = match[1];
+    var line = +match[2];
+    var column = +match[3];
 
-function resolvePackageTargetString(
-  target, subpath, match, packageJSONUrl, base, pattern, internal, conditions) {
-  if (subpath !== '' && !pattern && target[target.length - 1] !== '/')
-    throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base);
+    // Support the inline sourceContents inside the source map
+    var contents = fileContentsCache[source];
 
-  if (!StringPrototypeStartsWith(target, './')) {
-    if (internal && !StringPrototypeStartsWith(target, '../') &&
-        !StringPrototypeStartsWith(target, '/')) {
-      let isURL = false;
+    // Support files on disk
+    if (!contents && fs && fs.existsSync(source)) {
       try {
-        new URL(target);
-        isURL = true;
-      } catch {}
-      if (!isURL) {
-        const exportTarget = pattern ?
-          StringPrototypeReplace(target, patternRegEx, subpath) :
-          target + subpath;
-        return packageResolve(exportTarget, packageJSONUrl, conditions);
+        contents = fs.readFileSync(source, 'utf8');
+      } catch (er) {
+        contents = '';
       }
     }
-    throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base);
-  }
-
-  if (RegExpPrototypeTest(invalidSegmentRegEx, StringPrototypeSlice(target, 2)))
-    throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base);
 
-  const resolved = new URL(target, packageJSONUrl);
-  const resolvedPath = resolved.pathname;
-  const packagePath = new URL('.', packageJSONUrl).pathname;
+    // Format the line from the original source code like node does
+    if (contents) {
+      var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1];
+      if (code) {
+        return source + ':' + line + '\n' + code + '\n' +
+          new Array(column).join(' ') + '^';
+      }
+    }
+  }
+  return null;
+}
 
-  if (!StringPrototypeStartsWith(resolvedPath, packagePath))
-    throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base);
+function printErrorAndExit (error) {
+  var source = getErrorSource(error);
 
-  if (subpath === '') return resolved;
+  // Ensure error is printed synchronously and not truncated
+  var stderr = globalProcessStderr();
+  if (stderr && stderr._handle && stderr._handle.setBlocking) {
+    stderr._handle.setBlocking(true);
+  }
 
-  if (RegExpPrototypeTest(invalidSegmentRegEx, subpath))
-    throwInvalidSubpath(match + subpath, packageJSONUrl, internal, base);
+  if (source) {
+    console.error();
+    console.error(source);
+  }
 
-  if (pattern)
-    return new URL(StringPrototypeReplace(resolved.href, patternRegEx,
-                                          subpath));
-  return new URL(subpath, resolved);
+  console.error(error.stack);
+  globalProcessExit(1);
 }
 
-/**
- * @param {string} key
- * @returns {boolean}
- */
-function isArrayIndex(key) {
-  const keyNum = +key;
-  if (`${keyNum}` !== key) return false;
-  return keyNum >= 0 && keyNum < 0xFFFF_FFFF;
-}
+function shimEmitUncaughtException () {
+  var origEmit = process.emit;
 
-function resolvePackageTarget(packageJSONUrl, target, subpath, packageSubpath,
-                              base, pattern, internal, conditions) {
-  if (typeof target === 'string') {
-    return resolvePackageTargetString(
-      target, subpath, packageSubpath, packageJSONUrl, base, pattern, internal,
-      conditions);
-  } else if (ArrayIsArray(target)) {
-    if (target.length === 0)
-      return null;
+  process.emit = function (type) {
+    if (type === 'uncaughtException') {
+      var hasStack = (arguments[1] && arguments[1].stack);
+      var hasListeners = (this.listeners(type).length > 0);
 
-    let lastException;
-    for (let i = 0; i < target.length; i++) {
-      const targetItem = target[i];
-      let resolved;
-      try {
-        resolved = resolvePackageTarget(
-          packageJSONUrl, targetItem, subpath, packageSubpath, base, pattern,
-          internal, conditions);
-      } catch (e) {
-        lastException = e;
-        if (e.code === 'ERR_INVALID_PACKAGE_TARGET')
-          continue;
-        throw e;
-      }
-      if (resolved === undefined)
-        continue;
-      if (resolved === null) {
-        lastException = null;
-        continue;
-      }
-      return resolved;
-    }
-    if (lastException === undefined || lastException === null)
-      return lastException;
-    throw lastException;
-  } else if (typeof target === 'object' && target !== null) {
-    const keys = ObjectGetOwnPropertyNames(target);
-    for (let i = 0; i < keys.length; i++) {
-      const key = keys[i];
-      if (isArrayIndex(key)) {
-        throw new ERR_INVALID_PACKAGE_CONFIG(
-          fileURLToPath(packageJSONUrl), base,
-          '"exports" cannot contain numeric property keys.');
-      }
-    }
-    for (let i = 0; i < keys.length; i++) {
-      const key = keys[i];
-      if (key === 'default' || conditions.has(key)) {
-        const conditionalTarget = target[key];
-        const resolved = resolvePackageTarget(
-          packageJSONUrl, conditionalTarget, subpath, packageSubpath, base,
-          pattern, internal, conditions);
-        if (resolved === undefined)
-          continue;
-        return resolved;
+      if (hasStack && !hasListeners) {
+        return printErrorAndExit(arguments[1]);
       }
     }
-    return undefined;
-  } else if (target === null) {
-    return null;
-  }
-  throwInvalidPackageTarget(packageSubpath, target, packageJSONUrl, internal,
-                            base);
+
+    return origEmit.apply(this, arguments);
+  };
 }
 
-function isConditionalExportsMainSugar(exports, packageJSONUrl, base) {
-  if (typeof exports === 'string' || ArrayIsArray(exports)) return true;
-  if (typeof exports !== 'object' || exports === null) return false;
+var originalRetrieveFileHandlers = retrieveFileHandlers.slice(0);
+var originalRetrieveMapHandlers = retrieveMapHandlers.slice(0);
 
-  const keys = ObjectGetOwnPropertyNames(exports);
-  let isConditionalSugar = false;
-  let i = 0;
-  for (let j = 0; j < keys.length; j++) {
-    const key = keys[j];
-    const curIsConditionalSugar = key === '' || key[0] !== '.';
-    if (i++ === 0) {
-      isConditionalSugar = curIsConditionalSugar;
-    } else if (isConditionalSugar !== curIsConditionalSugar) {
-      throw new ERR_INVALID_PACKAGE_CONFIG(
-        fileURLToPath(packageJSONUrl), base,
-        '"exports" cannot contain some keys starting with \'.\' and some not.' +
-        ' The exports object must either be an object of package subpath keys' +
-        ' or an object of main entry condition name keys only.');
-    }
-  }
-  return isConditionalSugar;
-}
+exports.wrapCallSite = wrapCallSite;
+exports.getErrorSource = getErrorSource;
+exports.mapSourcePosition = mapSourcePosition;
+exports.retrieveSourceMap = retrieveSourceMap;
 
-/**
- * @param {URL} packageJSONUrl
- * @param {string} packageSubpath
- * @param {object} packageConfig
- * @param {string} base
- * @param {Set} conditions
- * @returns {{resolved: URL, exact: boolean}}
- */
-function packageExportsResolve(
-  packageJSONUrl, packageSubpath, packageConfig, base, conditions) {
-  let exports = packageConfig.exports;
-  if (isConditionalExportsMainSugar(exports, packageJSONUrl, base))
-    exports = { '.': exports };
+exports.install = function(options) {
+  options = options || {};
 
-  if (ObjectPrototypeHasOwnProperty(exports, packageSubpath)) {
-    const target = exports[packageSubpath];
-    const resolved = resolvePackageTarget(
-      packageJSONUrl, target, '', packageSubpath, base, false, false, conditions
-    );
-    if (resolved === null || resolved === undefined)
-      throwExportsNotFound(packageSubpath, packageJSONUrl, base);
-    return { resolved, exact: true };
+  if (options.environment) {
+    environment = options.environment;
+    if (["node", "browser", "auto"].indexOf(environment) === -1) {
+      throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}")
+    }
   }
 
-  let bestMatch = '';
-  const keys = ObjectGetOwnPropertyNames(exports);
-  for (let i = 0; i < keys.length; i++) {
-    const key = keys[i];
-    if (key[key.length - 1] === '*' &&
-        StringPrototypeStartsWith(packageSubpath,
-                                  StringPrototypeSlice(key, 0, -1)) &&
-        packageSubpath.length >= key.length &&
-        key.length > bestMatch.length) {
-      bestMatch = key;
-    } else if (key[key.length - 1] === '/' &&
-      StringPrototypeStartsWith(packageSubpath, key) &&
-      key.length > bestMatch.length) {
-      bestMatch = key;
+  // Allow sources to be found by methods other than reading the files
+  // directly from disk.
+  if (options.retrieveFile) {
+    if (options.overrideRetrieveFile) {
+      retrieveFileHandlers.length = 0;
     }
-  }
 
-  if (bestMatch) {
-    const target = exports[bestMatch];
-    const pattern = bestMatch[bestMatch.length - 1] === '*';
-    const subpath = StringPrototypeSubstr(packageSubpath, bestMatch.length -
-      (pattern ? 1 : 0));
-    const resolved = resolvePackageTarget(packageJSONUrl, target, subpath,
-                                          bestMatch, base, pattern, false,
-                                          conditions);
-    if (resolved === null || resolved === undefined)
-      throwExportsNotFound(packageSubpath, packageJSONUrl, base);
-    if (!pattern)
-      emitFolderMapDeprecation(bestMatch, packageJSONUrl, true, base);
-    return { resolved, exact: pattern };
+    retrieveFileHandlers.unshift(options.retrieveFile);
   }
 
-  throwExportsNotFound(packageSubpath, packageJSONUrl, base);
-}
+  // Allow source maps to be found by methods other than reading the files
+  // directly from disk.
+  if (options.retrieveSourceMap) {
+    if (options.overrideRetrieveSourceMap) {
+      retrieveMapHandlers.length = 0;
+    }
 
-function packageImportsResolve(name, base, conditions) {
-  if (name === '#' || StringPrototypeStartsWith(name, '#/')) {
-    const reason = 'is not a valid internal imports specifier name';
-    throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, fileURLToPath(base));
+    retrieveMapHandlers.unshift(options.retrieveSourceMap);
   }
-  let packageJSONUrl;
-  const packageConfig = getPackageScopeConfig(base);
-  if (packageConfig.exists) {
-    packageJSONUrl = pathToFileURL(packageConfig.pjsonPath);
-    const imports = packageConfig.imports;
-    if (imports) {
-      if (ObjectPrototypeHasOwnProperty(imports, name)) {
-        const resolved = resolvePackageTarget(
-          packageJSONUrl, imports[name], '', name, base, false, true, conditions
-        );
-        if (resolved !== null)
-          return { resolved, exact: true };
-      } else {
-        let bestMatch = '';
-        const keys = ObjectGetOwnPropertyNames(imports);
-        for (let i = 0; i < keys.length; i++) {
-          const key = keys[i];
-          if (key[key.length - 1] === '*' &&
-              StringPrototypeStartsWith(name,
-                                        StringPrototypeSlice(key, 0, -1)) &&
-              name.length >= key.length &&
-              key.length > bestMatch.length) {
-            bestMatch = key;
-          } else if (key[key.length - 1] === '/' &&
-            StringPrototypeStartsWith(name, key) &&
-            key.length > bestMatch.length) {
-            bestMatch = key;
-          }
-        }
 
-        if (bestMatch) {
-          const target = imports[bestMatch];
-          const pattern = bestMatch[bestMatch.length - 1] === '*';
-          const subpath = StringPrototypeSubstr(name, bestMatch.length -
-            (pattern ? 1 : 0));
-          const resolved = resolvePackageTarget(
-            packageJSONUrl, target, subpath, bestMatch, base, pattern, true,
-            conditions);
-          if (resolved !== null) {
-            if (!pattern)
-              emitFolderMapDeprecation(bestMatch, packageJSONUrl, false, base);
-            return { resolved, exact: pattern };
-          }
-        }
-      }
-    }
-  }
-  throwImportNotDefined(name, packageJSONUrl, base);
-}
+  // Support runtime transpilers that include inline source maps
+  if (options.hookRequire && !isInBrowser()) {
+    // Use dynamicRequire to avoid including in browser bundles
+    var Module = dynamicRequire(module, 'module');
+    var $compile = Module.prototype._compile;
 
-function getPackageType(url) {
-  const packageConfig = getPackageScopeConfig(url);
-  return packageConfig.type;
-}
+    if (!$compile.__sourceMapSupport) {
+      Module.prototype._compile = function(content, filename) {
+        fileContentsCache[filename] = content;
+        sourceMapCache[filename] = undefined;
+        return $compile.call(this, content, filename);
+      };
 
-function parsePackageName(specifier, base) {
-  let separatorIndex = StringPrototypeIndexOf(specifier, '/');
-  let validPackageName = true;
-  let isScoped = false;
-  if (specifier[0] === '@') {
-    isScoped = true;
-    if (separatorIndex === -1 || specifier.length === 0) {
-      validPackageName = false;
-    } else {
-      separatorIndex = StringPrototypeIndexOf(
-        specifier, '/', separatorIndex + 1);
+      Module.prototype._compile.__sourceMapSupport = true;
     }
   }
 
-  const packageName = separatorIndex === -1 ?
-    specifier : StringPrototypeSlice(specifier, 0, separatorIndex);
-
-  // Package name cannot have leading . and cannot have percent-encoding or
-  // separators.
-  for (let i = 0; i < packageName.length; i++) {
-    if (packageName[i] === '%' || packageName[i] === '\\') {
-      validPackageName = false;
-      break;
-    }
+  // Configure options
+  if (!emptyCacheBetweenOperations) {
+    emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ?
+      options.emptyCacheBetweenOperations : false;
   }
 
-  if (!validPackageName) {
-    throw new ERR_INVALID_MODULE_SPECIFIER(
-      specifier, 'is not a valid package name', fileURLToPath(base));
+  // Install the error reformatter
+  if (!errorFormatterInstalled) {
+    errorFormatterInstalled = true;
+    Error.prepareStackTrace = prepareStackTrace;
   }
 
-  const packageSubpath = '.' + (separatorIndex === -1 ? '' :
-    StringPrototypeSlice(specifier, separatorIndex));
-
-  return { packageName, packageSubpath, isScoped };
-}
+  if (!uncaughtShimInstalled) {
+    var installHandler = 'handleUncaughtExceptions' in options ?
+      options.handleUncaughtExceptions : true;
 
-/**
- * @param {string} specifier
- * @param {URL} base
- * @param {Set} conditions
- * @returns {URL}
- */
-function packageResolve(specifier, base, conditions) {
-  const { packageName, packageSubpath, isScoped } =
-    parsePackageName(specifier, base);
+    // Do not override 'uncaughtException' with our own handler in Node.js
+    // Worker threads. Workers pass the error to the main thread as an event,
+    // rather than printing something to stderr and exiting.
+    try {
+      // We need to use `dynamicRequire` because `require` on it's own will be optimized by WebPack/Browserify.
+      var worker_threads = dynamicRequire(module, 'worker_threads');
+      if (worker_threads.isMainThread === false) {
+        installHandler = false;
+      }
+    } catch(e) {}
 
-  // ResolveSelf
-  const packageConfig = getPackageScopeConfig(base);
-  if (packageConfig.exists) {
-    const packageJSONUrl = pathToFileURL(packageConfig.pjsonPath);
-    if (packageConfig.name === packageName &&
-        packageConfig.exports !== undefined && packageConfig.exports !== null) {
-      return packageExportsResolve(
-        packageJSONUrl, packageSubpath, packageConfig, base, conditions
-      ).resolved;
+    // Provide the option to not install the uncaught exception handler. This is
+    // to support other uncaught exception handlers (in test frameworks, for
+    // example). If this handler is not installed and there are no other uncaught
+    // exception handlers, uncaught exceptions will be caught by node's built-in
+    // exception handler and the process will still be terminated. However, the
+    // generated JavaScript code will be shown above the stack trace instead of
+    // the original source code.
+    if (installHandler && hasGlobalProcessEventEmitter()) {
+      uncaughtShimInstalled = true;
+      shimEmitUncaughtException();
     }
   }
+};
 
-  let packageJSONUrl =
-    new URL('./node_modules/' + packageName + '/package.json', base);
-  let packageJSONPath = fileURLToPath(packageJSONUrl);
-  let lastPath;
-  do {
-    const stat = tryStatSync(StringPrototypeSlice(packageJSONPath, 0,
-                                                  packageJSONPath.length - 13));
-    if (!stat.isDirectory()) {
-      lastPath = packageJSONPath;
-      packageJSONUrl = new URL((isScoped ?
-        '../../../../node_modules/' : '../../../node_modules/') +
-        packageName + '/package.json', packageJSONUrl);
-      packageJSONPath = fileURLToPath(packageJSONUrl);
-      continue;
-    }
+exports.resetRetrieveHandlers = function() {
+  retrieveFileHandlers.length = 0;
+  retrieveMapHandlers.length = 0;
 
-    // Package match.
-    const packageConfig = getPackageConfig(packageJSONPath, specifier, base);
-    if (packageConfig.exports !== undefined && packageConfig.exports !== null)
-      return packageExportsResolve(
-        packageJSONUrl, packageSubpath, packageConfig, base, conditions
-      ).resolved;
-    if (packageSubpath === '.')
-      return legacyMainResolve(packageJSONUrl, packageConfig, base);
-    return new URL(packageSubpath, packageJSONUrl);
-    // Cross-platform root check.
-  } while (packageJSONPath.length !== lastPath.length);
+  retrieveFileHandlers = originalRetrieveFileHandlers.slice(0);
+  retrieveMapHandlers = originalRetrieveMapHandlers.slice(0);
 
-  // eslint can't handle the above code.
-  // eslint-disable-next-line no-unreachable
-  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base));
+  retrieveSourceMap = handlerExec(retrieveMapHandlers);
+  retrieveFile = handlerExec(retrieveFileHandlers);
 }
 
-function isBareSpecifier(specifier) {
-  return specifier[0] && specifier[0] !== '/' && specifier[0] !== '.';
-}
 
-function isRelativeSpecifier(specifier) {
-  if (specifier[0] === '.') {
-    if (specifier.length === 1 || specifier[1] === '/') return true;
-    if (specifier[1] === '.') {
-      if (specifier.length === 2 || specifier[2] === '/') return true;
-    }
-  }
-  return false;
-}
+/***/ }),
 
-function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
-  if (specifier === '') return false;
-  if (specifier[0] === '/') return true;
-  return isRelativeSpecifier(specifier);
-}
+/***/ 26375:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-/**
- * @param {string} specifier
- * @param {URL} base
- * @param {Set} conditions
- * @returns {URL}
+/* -*- Mode: js; js-indent-level: 2; -*- */
+/*
+ * Copyright 2011 Mozilla Foundation and contributors
+ * Licensed under the New BSD license. See LICENSE or:
+ * http://opensource.org/licenses/BSD-3-Clause
  */
-function moduleResolve(specifier, base, conditions) {
-  // Order swapped from spec for minor perf gain.
-  // Ok since relative URLs cannot parse as URLs.
-  let resolved;
-  if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
-    resolved = new URL(specifier, base);
-  } else if (specifier[0] === '#') {
-    ({ resolved } = packageImportsResolve(specifier, base, conditions));
-  } else {
-    try {
-      resolved = new URL(specifier);
-    } catch {
-      resolved = packageResolve(specifier, base, conditions);
-    }
-  }
-  return finalizeResolution(resolved, base);
-}
+
+var util = __nccwpck_require__(12344);
+var has = Object.prototype.hasOwnProperty;
+var hasNativeMap = typeof Map !== "undefined";
 
 /**
- * Try to resolve an import as a CommonJS module
- * @param {string} specifier
- * @param {string} parentURL
- * @returns {boolean|string}
+ * A data structure which is a combination of an array and a set. Adding a new
+ * member is O(1), testing for membership is O(1), and finding the index of an
+ * element is O(1). Removing elements from the set is not supported. Only
+ * strings are supported for membership.
  */
-function resolveAsCommonJS(specifier, parentURL) {
-  try {
-    const parent = fileURLToPath(parentURL);
-    const tmpModule = new CJSModule(parent, null);
-    tmpModule.paths = CJSModule._nodeModulePaths(parent);
-
-    let found = CJSModule._resolveFilename(specifier, tmpModule, false);
+function ArraySet() {
+  this._array = [];
+  this._set = hasNativeMap ? new Map() : Object.create(null);
+}
 
-    // If it is a relative specifier return the relative path
-    // to the parent
-    if (isRelativeSpecifier(specifier)) {
-      found = relative(parent, found);
-      // Add '.separator if the path does not start with '..separator'
-      // This should be a safe assumption because when loading
-      // esm modules there should be always a file specified so
-      // there should not be a specifier like '..' or '.'
-      if (!StringPrototypeStartsWith(found, `..${sep}`)) {
-        found = `.${sep}${found}`;
-      }
-    } else if (isBareSpecifier(specifier)) {
-      // If it is a bare specifier return the relative path within the
-      // module
-      const pkg = StringPrototypeSplit(specifier, '/')[0];
-      const index = StringPrototypeIndexOf(found, pkg);
-      if (index !== -1) {
-        found = StringPrototypeSlice(found, index);
-      }
-    }
-    // Normalize the path separator to give a valid suggestion
-    // on Windows
-    if (process.platform === 'win32') {
-      found = StringPrototypeReplace(found, new RegExp(`\\${sep}`, 'g'), '/');
-    }
-    return found;
-  } catch {
-    return false;
+/**
+ * Static method for creating ArraySet instances from an existing array.
+ */
+ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
+  var set = new ArraySet();
+  for (var i = 0, len = aArray.length; i < len; i++) {
+    set.add(aArray[i], aAllowDuplicates);
   }
-}
+  return set;
+};
 
-function defaultResolve(specifier, context = {}, defaultResolveUnused) {
-  let { parentURL, conditions } = context;
-  if (parentURL && policy != null && policy.manifest) {
-    const redirects = policy.manifest.getDependencyMapper(parentURL);
-    if (redirects) {
-      const { resolve, reaction } = redirects;
-      const destination = resolve(specifier, new SafeSet(conditions));
-      let missing = true;
-      if (destination === true) {
-        missing = false;
-      } else if (destination) {
-        const href = destination.href;
-        return { url: href };
-      }
-      if (missing) {
-        reaction(new ERR_MANIFEST_DEPENDENCY_MISSING(
-          parentURL,
-          specifier,
-          ArrayPrototypeJoin([...conditions], ', '))
-        );
-      }
-    }
+/**
+ * Return how many unique items are in this ArraySet. If duplicates have been
+ * added, than those do not count towards the size.
+ *
+ * @returns Number
+ */
+ArraySet.prototype.size = function ArraySet_size() {
+  return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;
+};
+
+/**
+ * Add the given string to this set.
+ *
+ * @param String aStr
+ */
+ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
+  var sStr = hasNativeMap ? aStr : util.toSetString(aStr);
+  var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
+  var idx = this._array.length;
+  if (!isDuplicate || aAllowDuplicates) {
+    this._array.push(aStr);
   }
-  let parsed;
-  try {
-    parsed = new URL(specifier);
-    if (parsed.protocol === 'data:') {
-      return {
-        url: specifier
-      };
+  if (!isDuplicate) {
+    if (hasNativeMap) {
+      this._set.set(aStr, idx);
+    } else {
+      this._set[sStr] = idx;
     }
-  } catch {}
-  if (parsed && parsed.protocol === builtinModuleProtocol)
-    return { url: specifier };
-  if (parsed && parsed.protocol !== 'file:' && parsed.protocol !== 'data:')
-    throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(parsed);
-  if (NativeModule.canBeRequiredByUsers(specifier)) {
-    return {
-      url: builtinModuleProtocol + specifier
-    };
-  }
-  if (parentURL && StringPrototypeStartsWith(parentURL, 'data:')) {
-    // This is gonna blow up, we want the error
-    new URL(specifier, parentURL);
   }
+};
 
-  const isMain = parentURL === undefined;
-  if (isMain) {
-    parentURL = pathToFileURL(`${process.cwd()}/`).href;
-
-    // This is the initial entry point to the program, and --input-type has
-    // been passed as an option; but --input-type can only be used with
-    // --eval, --print or STDIN string input. It is not allowed with file
-    // input, to avoid user confusion over how expansive the effect of the
-    // flag should be (i.e. entry point only, package scope surrounding the
-    // entry point, etc.).
-    if (typeFlag)
-      throw new ERR_INPUT_TYPE_NOT_ALLOWED();
+/**
+ * Is the given string a member of this set?
+ *
+ * @param String aStr
+ */
+ArraySet.prototype.has = function ArraySet_has(aStr) {
+  if (hasNativeMap) {
+    return this._set.has(aStr);
+  } else {
+    var sStr = util.toSetString(aStr);
+    return has.call(this._set, sStr);
   }
+};
 
-  conditions = getConditionsSet(conditions);
-  let url;
-  try {
-    url = moduleResolve(specifier, parentURL, conditions);
-  } catch (error) {
-    // Try to give the user a hint of what would have been the
-    // resolved CommonJS module
-    if (error.code === 'ERR_MODULE_NOT_FOUND' ||
-        error.code === 'ERR_UNSUPPORTED_DIR_IMPORT') {
-      if (StringPrototypeStartsWith(specifier, 'file://')) {
-        specifier = fileURLToPath(specifier);
-      }
-      const found = resolveAsCommonJS(specifier, parentURL);
-      if (found) {
-        // Modify the stack and message string to include the hint
-        const lines = StringPrototypeSplit(error.stack, '\n');
-        const hint = `Did you mean to import ${found}?`;
-        error.stack =
-          ArrayPrototypeShift(lines) + '\n' +
-          hint + '\n' +
-          ArrayPrototypeJoin(lines, '\n');
-        error.message += `\n${hint}`;
-      }
+/**
+ * What is the index of the given string in the array?
+ *
+ * @param String aStr
+ */
+ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {
+  if (hasNativeMap) {
+    var idx = this._set.get(aStr);
+    if (idx >= 0) {
+        return idx;
+    }
+  } else {
+    var sStr = util.toSetString(aStr);
+    if (has.call(this._set, sStr)) {
+      return this._set[sStr];
     }
-    throw error;
-  }
-
-  if (isMain ? !preserveSymlinksMain : !preserveSymlinks) {
-    const urlPath = fileURLToPath(url);
-    const real = realpathSync(urlPath, {
-      // [internalFS.realpathCacheKey]: realpathCache
-    });
-    const old = url;
-    url = pathToFileURL(
-      real + (StringPrototypeEndsWith(urlPath, sep) ? '/' : ''));
-    url.search = old.search;
-    url.hash = old.hash;
   }
 
-  return { url: `${url}` };
-}
+  throw new Error('"' + aStr + '" is not in the set.');
+};
 
-return {
-  DEFAULT_CONDITIONS,
-  defaultResolve,
-  encodedSepRegEx,
-  getPackageType,
-  packageExportsResolve,
-  packageImportsResolve
+/**
+ * What is the element at the given index?
+ *
+ * @param Number aIdx
+ */
+ArraySet.prototype.at = function ArraySet_at(aIdx) {
+  if (aIdx >= 0 && aIdx < this._array.length) {
+    return this._array[aIdx];
+  }
+  throw new Error('No element indexed by ' + aIdx);
 };
-}
-module.exports = {
-  createResolve
+
+/**
+ * Returns the array representation of this set (which has the proper indices
+ * indicated by indexOf). Note that this is a copy of the internal array used
+ * for storing the members so that no one can mess with internal state.
+ */
+ArraySet.prototype.toArray = function ArraySet_toArray() {
+  return this._array.slice();
 };
 
+exports.I = ArraySet;
+
 
 /***/ }),
 
-/***/ 53348:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 10975:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-"use strict";
-// copied from https://github.com/nodejs/node/blob/v15.3.0/lib/internal/modules/package_json_reader.js
+/* -*- Mode: js; js-indent-level: 2; -*- */
+/*
+ * Copyright 2011 Mozilla Foundation and contributors
+ * Licensed under the New BSD license. See LICENSE or:
+ * http://opensource.org/licenses/BSD-3-Clause
+ *
+ * Based on the Base 64 VLQ implementation in Closure Compiler:
+ * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java
+ *
+ * Copyright 2011 The Closure Compiler Authors. All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ *  * Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *  * Redistributions in binary form must reproduce the above
+ *    copyright notice, this list of conditions and the following
+ *    disclaimer in the documentation and/or other materials provided
+ *    with the distribution.
+ *  * Neither the name of Google Inc. nor the names of its
+ *    contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
+var base64 = __nccwpck_require__(6156);
 
-const { SafeMap } = __nccwpck_require__(26326);
-const { internalModuleReadJSON } = __nccwpck_require__(3601);
-const { pathToFileURL } = __nccwpck_require__(57310);
-const { toNamespacedPath } = __nccwpck_require__(71017);
-// const { getOptionValue } = require('./node-options');
+// A single base 64 digit can contain 6 bits of data. For the base 64 variable
+// length quantities we use in the source map spec, the first bit is the sign,
+// the next four bits are the actual value, and the 6th bit is the
+// continuation bit. The continuation bit tells us whether there are more
+// digits in this value following this digit.
+//
+//   Continuation
+//   |    Sign
+//   |    |
+//   V    V
+//   101011
 
-const cache = new SafeMap();
+var VLQ_BASE_SHIFT = 5;
 
-let manifest;
+// binary: 100000
+var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
+
+// binary: 011111
+var VLQ_BASE_MASK = VLQ_BASE - 1;
+
+// binary: 100000
+var VLQ_CONTINUATION_BIT = VLQ_BASE;
 
 /**
- * @param {string} jsonPath
- * @return {{string: string, containsKeys: boolean}}
+ * Converts from a two-complement value to a value where the sign bit is
+ * placed in the least significant bit.  For example, as decimals:
+ *   1 becomes 2 (10 binary), -1 becomes 3 (11 binary)
+ *   2 becomes 4 (100 binary), -2 becomes 5 (101 binary)
  */
-function read(jsonPath) {
-  if (cache.has(jsonPath)) {
-    return cache.get(jsonPath);
-  }
-
-  const [string, containsKeys] = internalModuleReadJSON(
-    toNamespacedPath(jsonPath)
-  );
-  const result = { string, containsKeys };
-  if (string !== undefined) {
-    if (manifest === undefined) {
-      // manifest = getOptionValue('--experimental-policy') ?
-      //   require('internal/process/policy').manifest :
-      //   null;
-      // disabled for now.  I am not sure if/how we should support this
-      manifest = null;
-    }
-    if (manifest !== null) {
-      const jsonURL = pathToFileURL(jsonPath);
-      manifest.assertIntegrity(jsonURL, string);
-    }
-  }
-  cache.set(jsonPath, result);
-  return result;
+function toVLQSigned(aValue) {
+  return aValue < 0
+    ? ((-aValue) << 1) + 1
+    : (aValue << 1) + 0;
 }
 
-module.exports = { read };
-
-
-/***/ }),
-
-/***/ 75818:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/**
+ * Converts to a two-complement value from a value where the sign bit is
+ * placed in the least significant bit.  For example, as decimals:
+ *   2 (10 binary) becomes 1, 3 (11 binary) becomes -1
+ *   4 (100 binary) becomes 2, 5 (101 binary) becomes -2
+ */
+function fromVLQSigned(aValue) {
+  var isNegative = (aValue & 1) === 1;
+  var shifted = aValue >> 1;
+  return isNegative
+    ? -shifted
+    : shifted;
+}
 
-"use strict";
-// copied from https://github.com/nodejs/node/blob/88799930794045795e8abac874730f9eba7e2300/lib/internal/repl/await.js
+/**
+ * Returns the base 64 VLQ encoded value.
+ */
+exports.encode = function base64VLQ_encode(aValue) {
+  var encoded = "";
+  var digit;
 
+  var vlq = toVLQSigned(aValue);
 
-const {
-  ArrayFrom,
-  ArrayPrototypeForEach,
-  ArrayPrototypeIncludes,
-  ArrayPrototypeJoin,
-  ArrayPrototypePop,
-  ArrayPrototypePush,
-  FunctionPrototype,
-  ObjectKeys,
-  RegExpPrototypeSymbolReplace,
-  StringPrototypeEndsWith,
-  StringPrototypeIncludes,
-  StringPrototypeIndexOf,
-  StringPrototypeRepeat,
-  StringPrototypeSplit,
-  StringPrototypeStartsWith,
-  SyntaxError,
-} = __nccwpck_require__(26326);
+  do {
+    digit = vlq & VLQ_BASE_MASK;
+    vlq >>>= VLQ_BASE_SHIFT;
+    if (vlq > 0) {
+      // There are still more digits in this value, so we must make sure the
+      // continuation bit is marked.
+      digit |= VLQ_CONTINUATION_BIT;
+    }
+    encoded += base64.encode(digit);
+  } while (vlq > 0);
 
-const parser = (__nccwpck_require__(80390).Parser);
-const walk = __nccwpck_require__(88390);
-const { Recoverable } = __nccwpck_require__(38102);
+  return encoded;
+};
 
-function isTopLevelDeclaration(state) {
-  return state.ancestors[state.ancestors.length - 2] === state.body;
-}
+/**
+ * Decodes the next base 64 VLQ value from the given string and returns the
+ * value and the rest of the string via the out parameter.
+ */
+exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
+  var strLen = aStr.length;
+  var result = 0;
+  var shift = 0;
+  var continuation, digit;
 
-const noop = FunctionPrototype;
-const visitorsWithoutAncestors = {
-  ClassDeclaration(node, state, c) {
-    if (isTopLevelDeclaration(state)) {
-      state.prepend(node, `${node.id.name}=`);
-      ArrayPrototypePush(
-        state.hoistedDeclarationStatements,
-        `let ${node.id.name}; `
-      );
+  do {
+    if (aIndex >= strLen) {
+      throw new Error("Expected more digits in base 64 VLQ value.");
     }
 
-    walk.base.ClassDeclaration(node, state, c);
-  },
-  ForOfStatement(node, state, c) {
-    if (node.await === true) {
-      state.containsAwait = true;
+    digit = base64.decode(aStr.charCodeAt(aIndex++));
+    if (digit === -1) {
+      throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1));
     }
-    walk.base.ForOfStatement(node, state, c);
-  },
-  FunctionDeclaration(node, state, c) {
-    state.prepend(node, `${node.id.name}=`);
-    ArrayPrototypePush(
-      state.hoistedDeclarationStatements,
-      `var ${node.id.name}; `
-    );
-  },
-  FunctionExpression: noop,
-  ArrowFunctionExpression: noop,
-  MethodDefinition: noop,
-  AwaitExpression(node, state, c) {
-    state.containsAwait = true;
-    walk.base.AwaitExpression(node, state, c);
-  },
-  ReturnStatement(node, state, c) {
-    state.containsReturn = true;
-    walk.base.ReturnStatement(node, state, c);
-  },
-  VariableDeclaration(node, state, c) {
-    const variableKind = node.kind;
-    const isIterableForDeclaration = ArrayPrototypeIncludes(
-      ['ForOfStatement', 'ForInStatement'],
-      state.ancestors[state.ancestors.length - 2].type
-    );
 
-    if (variableKind === 'var' || isTopLevelDeclaration(state)) {
-      state.replace(
-        node.start,
-        node.start + variableKind.length + (isIterableForDeclaration ? 1 : 0),
-        variableKind === 'var' && isIterableForDeclaration ?
-          '' :
-          'void' + (node.declarations.length === 1 ? '' : ' (')
-      );
+    continuation = !!(digit & VLQ_CONTINUATION_BIT);
+    digit &= VLQ_BASE_MASK;
+    result = result + (digit << shift);
+    shift += VLQ_BASE_SHIFT;
+  } while (continuation);
 
-      if (!isIterableForDeclaration) {
-        ArrayPrototypeForEach(node.declarations, (decl) => {
-          state.prepend(decl, '(');
-          state.append(decl, decl.init ? ')' : '=undefined)');
-        });
+  aOutParam.value = fromVLQSigned(result);
+  aOutParam.rest = aIndex;
+};
 
-        if (node.declarations.length !== 1) {
-          state.append(node.declarations[node.declarations.length - 1], ')');
-        }
-      }
 
-      const variableIdentifiersToHoist = [
-        ['var', []],
-        ['let', []],
-      ];
-      function registerVariableDeclarationIdentifiers(node) {
-        switch (node.type) {
-          case 'Identifier':
-            ArrayPrototypePush(
-              variableIdentifiersToHoist[variableKind === 'var' ? 0 : 1][1],
-              node.name
-            );
-            break;
-          case 'ObjectPattern':
-            ArrayPrototypeForEach(node.properties, (property) => {
-              registerVariableDeclarationIdentifiers(property.value);
-            });
-            break;
-          case 'ArrayPattern':
-            ArrayPrototypeForEach(node.elements, (element) => {
-              registerVariableDeclarationIdentifiers(element);
-            });
-            break;
-        }
-      }
+/***/ }),
 
-      ArrayPrototypeForEach(node.declarations, (decl) => {
-        registerVariableDeclarationIdentifiers(decl.id);
-      });
+/***/ 6156:
+/***/ ((__unused_webpack_module, exports) => {
 
-      ArrayPrototypeForEach(
-        variableIdentifiersToHoist,
-        ({ 0: kind, 1: identifiers }) => {
-          if (identifiers.length > 0) {
-            ArrayPrototypePush(
-              state.hoistedDeclarationStatements,
-              `${kind} ${ArrayPrototypeJoin(identifiers, ', ')}; `
-            );
-          }
-        }
-      );
-    }
+/* -*- Mode: js; js-indent-level: 2; -*- */
+/*
+ * Copyright 2011 Mozilla Foundation and contributors
+ * Licensed under the New BSD license. See LICENSE or:
+ * http://opensource.org/licenses/BSD-3-Clause
+ */
 
-    walk.base.VariableDeclaration(node, state, c);
+var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');
+
+/**
+ * Encode an integer in the range of 0 to 63 to a single base 64 digit.
+ */
+exports.encode = function (number) {
+  if (0 <= number && number < intToCharMap.length) {
+    return intToCharMap[number];
   }
+  throw new TypeError("Must be between 0 and 63: " + number);
 };
 
-const visitors = {};
-for (const nodeType of ObjectKeys(walk.base)) {
-  const callback = visitorsWithoutAncestors[nodeType] || walk.base[nodeType];
-  visitors[nodeType] = (node, state, c) => {
-    const isNew = node !== state.ancestors[state.ancestors.length - 1];
-    if (isNew) {
-      ArrayPrototypePush(state.ancestors, node);
-    }
-    callback(node, state, c);
-    if (isNew) {
-      ArrayPrototypePop(state.ancestors);
-    }
-  };
-}
+/**
+ * Decode a single base 64 character code digit to an integer. Returns -1 on
+ * failure.
+ */
+exports.decode = function (charCode) {
+  var bigA = 65;     // 'A'
+  var bigZ = 90;     // 'Z'
 
-function processTopLevelAwait(src) {
-  const wrapPrefix = '(async () => { ';
-  const wrapped = `${wrapPrefix}${src} })()`;
-  const wrappedArray = ArrayFrom(wrapped);
-  let root;
-  try {
-    root = parser.parse(wrapped, { ecmaVersion: 'latest' });
-  } catch (e) {
-    if (StringPrototypeStartsWith(e.message, 'Unterminated '))
-      throw new Recoverable(e);
-    // If the parse error is before the first "await", then use the execution
-    // error. Otherwise we must emit this parse error, making it look like a
-    // proper syntax error.
-    const awaitPos = StringPrototypeIndexOf(src, 'await');
-    const errPos = e.pos - wrapPrefix.length;
-    if (awaitPos > errPos)
-      return null;
-    // Convert keyword parse errors on await into their original errors when
-    // possible.
-    if (errPos === awaitPos + 6 &&
-        StringPrototypeIncludes(e.message, 'Expecting Unicode escape sequence'))
-      return null;
-    if (errPos === awaitPos + 7 &&
-        StringPrototypeIncludes(e.message, 'Unexpected token'))
-      return null;
-    const line = e.loc.line;
-    const column = line === 1 ? e.loc.column - wrapPrefix.length : e.loc.column;
-    let message = '\n' + StringPrototypeSplit(src, '\n')[line - 1] + '\n' +
-        StringPrototypeRepeat(' ', column) +
-        '^\n\n' + RegExpPrototypeSymbolReplace(/ \([^)]+\)/, e.message, '');
-    // V8 unexpected token errors include the token string.
-    if (StringPrototypeEndsWith(message, 'Unexpected token'))
-      message += " '" +
-        // Wrapper end may cause acorn to report error position after the source
-        ((src.length - 1) >= (e.pos - wrapPrefix.length)
-          ? src[e.pos - wrapPrefix.length]
-          : src[src.length - 1]) +
-        "'";
-    // eslint-disable-next-line no-restricted-syntax
-    throw new SyntaxError(message);
+  var littleA = 97;  // 'a'
+  var littleZ = 122; // 'z'
+
+  var zero = 48;     // '0'
+  var nine = 57;     // '9'
+
+  var plus = 43;     // '+'
+  var slash = 47;    // '/'
+
+  var littleOffset = 26;
+  var numberOffset = 52;
+
+  // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ
+  if (bigA <= charCode && charCode <= bigZ) {
+    return (charCode - bigA);
   }
-  const body = root.body[0].expression.callee.body;
-  const state = {
-    body,
-    ancestors: [],
-    hoistedDeclarationStatements: [],
-    replace(from, to, str) {
-      for (let i = from; i < to; i++) {
-        wrappedArray[i] = '';
-      }
-      if (from === to) str += wrappedArray[from];
-      wrappedArray[from] = str;
-    },
-    prepend(node, str) {
-      wrappedArray[node.start] = str + wrappedArray[node.start];
-    },
-    append(node, str) {
-      wrappedArray[node.end - 1] += str;
-    },
-    containsAwait: false,
-    containsReturn: false
-  };
 
-  walk.recursive(body, state, visitors);
+  // 26 - 51: abcdefghijklmnopqrstuvwxyz
+  if (littleA <= charCode && charCode <= littleZ) {
+    return (charCode - littleA + littleOffset);
+  }
 
-  // Do not transform if
-  // 1. False alarm: there isn't actually an await expression.
-  // 2. There is a top-level return, which is not allowed.
-  if (!state.containsAwait || state.containsReturn) {
-    return null;
+  // 52 - 61: 0123456789
+  if (zero <= charCode && charCode <= nine) {
+    return (charCode - zero + numberOffset);
   }
 
-  const last = body.body[body.body.length - 1];
-  if (last.type === 'ExpressionStatement') {
-    // For an expression statement of the form
-    // ( expr ) ;
-    // ^^^^^^^^^^   // last
-    //   ^^^^       // last.expression
-    //
-    // We do not want the left parenthesis before the `return` keyword;
-    // therefore we prepend the `return (` to `last`.
-    //
-    // On the other hand, we do not want the right parenthesis after the
-    // semicolon. Since there can only be more right parentheses between
-    // last.expression.end and the semicolon, appending one more to
-    // last.expression should be fine.
-    state.prepend(last, 'return (');
-    state.append(last.expression, ')');
+  // 62: +
+  if (charCode == plus) {
+    return 62;
   }
 
-  return (
-    ArrayPrototypeJoin(state.hoistedDeclarationStatements, '') +
-    ArrayPrototypeJoin(wrappedArray, '')
-  );
-}
+  // 63: /
+  if (charCode == slash) {
+    return 63;
+  }
 
-module.exports = {
-  processTopLevelAwait
+  // Invalid base64 digit.
+  return -1;
 };
 
 
 /***/ }),
 
-/***/ 3601:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 33600:
+/***/ ((__unused_webpack_module, exports) => {
 
-const fs = __nccwpck_require__(57147);
-const {versionGteLt} = __nccwpck_require__(64745);
+/* -*- Mode: js; js-indent-level: 2; -*- */
+/*
+ * Copyright 2011 Mozilla Foundation and contributors
+ * Licensed under the New BSD license. See LICENSE or:
+ * http://opensource.org/licenses/BSD-3-Clause
+ */
+
+exports.GREATEST_LOWER_BOUND = 1;
+exports.LEAST_UPPER_BOUND = 2;
 
-// In node's core, this is implemented in C
-// https://github.com/nodejs/node/blob/v15.3.0/src/node_file.cc#L891-L985
 /**
- * @param {string} path
- * @returns {[] | [string, boolean]}
+ * Recursive implementation of binary search.
+ *
+ * @param aLow Indices here and lower do not contain the needle.
+ * @param aHigh Indices here and higher do not contain the needle.
+ * @param aNeedle The element being searched for.
+ * @param aHaystack The non-empty array being searched.
+ * @param aCompare Function which takes two elements and returns -1, 0, or 1.
+ * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
+ *     'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
+ *     closest element that is smaller than or greater than the one we are
+ *     searching for, respectively, if the exact element cannot be found.
  */
-function internalModuleReadJSON(path) {
-  let string
-  try {
-    string = fs.readFileSync(path, 'utf8')
-  } catch (e) {
-    if (e.code === 'ENOENT') return []
-    throw e
+function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
+  // This function terminates when one of the following is true:
+  //
+  //   1. We find the exact element we are looking for.
+  //
+  //   2. We did not find the exact element, but we can return the index of
+  //      the next-closest element.
+  //
+  //   3. We did not find the exact element, and there is no next-closest
+  //      element than the one we are searching for, so we return -1.
+  var mid = Math.floor((aHigh - aLow) / 2) + aLow;
+  var cmp = aCompare(aNeedle, aHaystack[mid], true);
+  if (cmp === 0) {
+    // Found the element we are looking for.
+    return mid;
   }
-  // Node's implementation checks for the presence of relevant keys: main, name, type, exports, imports
-  // Node does this for performance to skip unnecessary parsing.
-  // This would slow us down and, based on our usage, we can skip it.
-  const containsKeys = true
-  return [string, containsKeys]
-}
+  else if (cmp > 0) {
+    // Our needle is greater than aHaystack[mid].
+    if (aHigh - mid > 1) {
+      // The element is in the upper half.
+      return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
+    }
 
-// In node's core, this is implemented in C
-// https://github.com/nodejs/node/blob/63e7dc1e5c71b70c80ed9eda230991edb00811e2/src/node_file.cc#L987-L1005
-/**
- * @param {string} path
- * @returns {number} 0 = file, 1 = dir, negative = error
- */
-function internalModuleStat(path) {
-  const stat = fs.statSync(path, { throwIfNoEntry: false });
-  if(!stat) return -1;
-  if(stat.isFile()) return 0;
-  if(stat.isDirectory()) return 1;
+    // The exact needle element was not found in this haystack. Determine if
+    // we are in termination case (3) or (2) and return the appropriate thing.
+    if (aBias == exports.LEAST_UPPER_BOUND) {
+      return aHigh < aHaystack.length ? aHigh : -1;
+    } else {
+      return mid;
+    }
+  }
+  else {
+    // Our needle is less than aHaystack[mid].
+    if (mid - aLow > 1) {
+      // The element is in the lower half.
+      return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
+    }
+
+    // we are in termination case (3) or (2) and return the appropriate thing.
+    if (aBias == exports.LEAST_UPPER_BOUND) {
+      return mid;
+    } else {
+      return aLow < 0 ? -1 : aLow;
+    }
+  }
 }
 
 /**
- * @param {string} path
- * @returns {number} 0 = file, 1 = dir, negative = error
+ * This is an implementation of binary search which will always try and return
+ * the index of the closest element if there is no exact hit. This is because
+ * mappings between original and generated line/col pairs are single points,
+ * and there is an implicit region between each of them, so a miss just means
+ * that you aren't on the very start of a region.
+ *
+ * @param aNeedle The element you are looking for.
+ * @param aHaystack The array that is being searched.
+ * @param aCompare A function which takes the needle and an element in the
+ *     array and returns -1, 0, or 1 depending on whether the needle is less
+ *     than, equal to, or greater than the element, respectively.
+ * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
+ *     'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
+ *     closest element that is smaller than or greater than the one we are
+ *     searching for, respectively, if the exact element cannot be found.
+ *     Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.
  */
-function internalModuleStatInefficient(path) {
-  try {
-    const stat = fs.statSync(path);
-    if(stat.isFile()) return 0;
-    if(stat.isDirectory()) return 1;
-  } catch(e) {
-    return -e.errno || -1;
+exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
+  if (aHaystack.length === 0) {
+    return -1;
   }
-}
-
-const statSupportsThrowIfNoEntry = versionGteLt(process.versions.node, '15.3.0') ||
-  versionGteLt(process.versions.node, '14.17.0', '15.0.0');
-
-module.exports = {
-  internalModuleReadJSON,
-  internalModuleStat: statSupportsThrowIfNoEntry ? internalModuleStat : internalModuleStatInefficient
-};
-
-
-/***/ }),
-
-/***/ 81597:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
+  var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack,
+                              aCompare, aBias || exports.GREATEST_LOWER_BOUND);
+  if (index < 0) {
+    return -1;
+  }
 
-// Node imports this from 'internal/bootstrap/loaders'
-const Module = __nccwpck_require__(98188);
-const NativeModule = {
-  canBeRequiredByUsers(specifier) {
-    return Module.builtinModules.includes(specifier)
+  // We have found either the exact element, or the next-closest element than
+  // the one we are searching for. However, there may be more than one such
+  // element. Make sure we always return the smallest of these.
+  while (index - 1 >= 0) {
+    if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {
+      break;
+    }
+    --index;
   }
+
+  return index;
 };
-exports.NativeModule = NativeModule;
 
 
 /***/ }),
 
-/***/ 40690:
+/***/ 86817:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-// Replacement for node's internal 'internal/options' module
+/* -*- Mode: js; js-indent-level: 2; -*- */
+/*
+ * Copyright 2014 Mozilla Foundation and contributors
+ * Licensed under the New BSD license. See LICENSE or:
+ * http://opensource.org/licenses/BSD-3-Clause
+ */
 
-exports.getOptionValue = getOptionValue;
-function getOptionValue(opt) {
-  parseOptions();
-  return options[opt];
-}
+var util = __nccwpck_require__(12344);
 
-let options;
-function parseOptions() {
-  if (!options) {
-    options = {
-      '--preserve-symlinks': false,
-      '--preserve-symlinks-main': false,
-      '--input-type': undefined,
-      '--experimental-specifier-resolution': 'explicit',
-      '--experimental-policy': undefined,
-      '--conditions': [],
-      '--pending-deprecation': false,
-      ...parseArgv(getNodeOptionsEnvArgv()),
-      ...parseArgv(process.execArgv),
-      ...getOptionValuesFromOtherEnvVars()
-    }
-  }
+/**
+ * Determine whether mappingB is after mappingA with respect to generated
+ * position.
+ */
+function generatedPositionAfter(mappingA, mappingB) {
+  // Optimized for most common case
+  var lineA = mappingA.generatedLine;
+  var lineB = mappingB.generatedLine;
+  var columnA = mappingA.generatedColumn;
+  var columnB = mappingB.generatedColumn;
+  return lineB > lineA || lineB == lineA && columnB >= columnA ||
+         util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
 }
 
-function parseArgv(argv) {
-  return __nccwpck_require__(59482)({
-    '--preserve-symlinks': Boolean,
-    '--preserve-symlinks-main': Boolean,
-    '--input-type': String,
-    '--experimental-specifier-resolution': String,
-    // Legacy alias for node versions prior to 12.16
-    '--es-module-specifier-resolution': '--experimental-specifier-resolution',
-    '--experimental-policy': String,
-    '--conditions': [String],
-    '--pending-deprecation': Boolean,
-    '--experimental-json-modules': Boolean,
-    '--experimental-wasm-modules': Boolean,
-  }, {
-    argv,
-    permissive: true
-  });
+/**
+ * A data structure to provide a sorted view of accumulated mappings in a
+ * performance conscious manner. It trades a neglibable overhead in general
+ * case for a large speedup in case of mappings being added in order.
+ */
+function MappingList() {
+  this._array = [];
+  this._sorted = true;
+  // Serves as infimum
+  this._last = {generatedLine: -1, generatedColumn: 0};
 }
 
-function getNodeOptionsEnvArgv() {
-  const errors = [];
-  const envArgv = ParseNodeOptionsEnvVar(process.env.NODE_OPTIONS || '', errors);
-  if (errors.length !== 0) {
-    // TODO: handle errors somehow
+/**
+ * Iterate through internal items. This method takes the same arguments that
+ * `Array.prototype.forEach` takes.
+ *
+ * NOTE: The order of the mappings is NOT guaranteed.
+ */
+MappingList.prototype.unsortedForEach =
+  function MappingList_forEach(aCallback, aThisArg) {
+    this._array.forEach(aCallback, aThisArg);
+  };
+
+/**
+ * Add the given source mapping.
+ *
+ * @param Object aMapping
+ */
+MappingList.prototype.add = function MappingList_add(aMapping) {
+  if (generatedPositionAfter(this._last, aMapping)) {
+    this._last = aMapping;
+    this._array.push(aMapping);
+  } else {
+    this._sorted = false;
+    this._array.push(aMapping);
   }
-  return envArgv;
-}
+};
 
-// Direct JS port of C implementation: https://github.com/nodejs/node/blob/67ba825037b4082d5d16f922fb9ce54516b4a869/src/node_options.cc#L1024-L1063
-function ParseNodeOptionsEnvVar(node_options, errors) {
-  const env_argv = [];
+/**
+ * Returns the flat, sorted array of mappings. The mappings are sorted by
+ * generated position.
+ *
+ * WARNING: This method returns internal data without copying, for
+ * performance. The return value must NOT be mutated, and should be treated as
+ * an immutable borrow. If you want to take ownership, you must make your own
+ * copy.
+ */
+MappingList.prototype.toArray = function MappingList_toArray() {
+  if (!this._sorted) {
+    this._array.sort(util.compareByGeneratedPositionsInflated);
+    this._sorted = true;
+  }
+  return this._array;
+};
 
-  let is_in_string = false;
-  let will_start_new_arg = true;
-  for (let index = 0; index < node_options.length; ++index) {
-      let c = node_options[index];
+exports.H = MappingList;
 
-      // Backslashes escape the following character
-      if (c === '\\' && is_in_string) {
-          if (index + 1 === node_options.length) {
-              errors.push("invalid value for NODE_OPTIONS " +
-                  "(invalid escape)\n");
-              return env_argv;
-          } else {
-              c = node_options[++index];
-          }
-      } else if (c === ' ' && !is_in_string) {
-          will_start_new_arg = true;
-          continue;
-      } else if (c === '"') {
-          is_in_string = !is_in_string;
-          continue;
-      }
 
-      if (will_start_new_arg) {
-          env_argv.push(c);
-          will_start_new_arg = false;
-      } else {
-          env_argv[env_argv.length - 1] += c;
-      }
-  }
+/***/ }),
 
-  if (is_in_string) {
-      errors.push("invalid value for NODE_OPTIONS " +
-          "(unterminated string)\n");
-  }
-  return env_argv;
+/***/ 73254:
+/***/ ((__unused_webpack_module, exports) => {
+
+/* -*- Mode: js; js-indent-level: 2; -*- */
+/*
+ * Copyright 2011 Mozilla Foundation and contributors
+ * Licensed under the New BSD license. See LICENSE or:
+ * http://opensource.org/licenses/BSD-3-Clause
+ */
+
+// It turns out that some (most?) JavaScript engines don't self-host
+// `Array.prototype.sort`. This makes sense because C++ will likely remain
+// faster than JS when doing raw CPU-intensive sorting. However, when using a
+// custom comparator function, calling back and forth between the VM's C++ and
+// JIT'd JS is rather slow *and* loses JIT type information, resulting in
+// worse generated code for the comparator function than would be optimal. In
+// fact, when sorting with a comparator, these costs outweigh the benefits of
+// sorting in C++. By using our own JS-implemented Quick Sort (below), we get
+// a ~3500ms mean speed-up in `bench/bench.html`.
+
+/**
+ * Swap the elements indexed by `x` and `y` in the array `ary`.
+ *
+ * @param {Array} ary
+ *        The array.
+ * @param {Number} x
+ *        The index of the first item.
+ * @param {Number} y
+ *        The index of the second item.
+ */
+function swap(ary, x, y) {
+  var temp = ary[x];
+  ary[x] = ary[y];
+  ary[y] = temp;
 }
 
-// Get option values that can be specified via env vars besides NODE_OPTIONS
-function getOptionValuesFromOtherEnvVars() {
-  const options = {};
-  if(process.env.NODE_PENDING_DEPRECATION === '1') {
-    options['--pending-deprecation'] = true;
-  }
-  return options;
+/**
+ * Returns a random integer within the range `low .. high` inclusive.
+ *
+ * @param {Number} low
+ *        The lower bound on the range.
+ * @param {Number} high
+ *        The upper bound on the range.
+ */
+function randomIntInRange(low, high) {
+  return Math.round(low + (Math.random() * (high - low)));
 }
 
+/**
+ * The Quick Sort algorithm.
+ *
+ * @param {Array} ary
+ *        An array to sort.
+ * @param {function} comparator
+ *        Function to use to compare two items.
+ * @param {Number} p
+ *        Start index of the array
+ * @param {Number} r
+ *        End index of the array
+ */
+function doQuickSort(ary, comparator, p, r) {
+  // If our lower bound is less than our upper bound, we (1) partition the
+  // array into two pieces and (2) recurse on each half. If it is not, this is
+  // the empty array and our base case.
+
+  if (p < r) {
+    // (1) Partitioning.
+    //
+    // The partitioning chooses a pivot between `p` and `r` and moves all
+    // elements that are less than or equal to the pivot to the before it, and
+    // all the elements that are greater than it after it. The effect is that
+    // once partition is done, the pivot is in the exact place it will be when
+    // the array is put in sorted order, and it will not need to be moved
+    // again. This runs in O(n) time.
 
-/***/ }),
+    // Always choose a random pivot so that an input array which is reverse
+    // sorted does not cause O(n^2) running time.
+    var pivotIndex = randomIntInRange(p, r);
+    var i = p - 1;
 
-/***/ 26326:
-/***/ ((module) => {
+    swap(ary, pivotIndex, r);
+    var pivot = ary[r];
 
-module.exports = {
-  ArrayFrom: Array.from,
-  ArrayIsArray: Array.isArray,
-  ArrayPrototypeShift: (obj) => Array.prototype.shift.call(obj),
-  ArrayPrototypeForEach: (arr, ...rest) => Array.prototype.forEach.apply(arr, rest),
-  ArrayPrototypeIncludes: (arr, ...rest) => Array.prototype.includes.apply(arr, rest),
-  ArrayPrototypeJoin: (arr, ...rest) => Array.prototype.join.apply(arr, rest),
-  ArrayPrototypePop: (arr, ...rest) => Array.prototype.pop.apply(arr, rest),
-  ArrayPrototypePush: (arr, ...rest) => Array.prototype.push.apply(arr, rest),
-  FunctionPrototype: Function.prototype,
-  JSONParse: JSON.parse,
-  JSONStringify: JSON.stringify,
-  ObjectFreeze: Object.freeze,
-  ObjectKeys: Object.keys,
-  ObjectGetOwnPropertyNames: Object.getOwnPropertyNames,
-  ObjectDefineProperty: Object.defineProperty,
-  ObjectPrototypeHasOwnProperty: (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop),
-  RegExpPrototypeExec: (obj, string) => RegExp.prototype.exec.call(obj, string),
-  RegExpPrototypeTest: (obj, string) => RegExp.prototype.test.call(obj, string),
-  RegExpPrototypeSymbolReplace: (obj, ...rest) => RegExp.prototype[Symbol.replace].apply(obj, rest),
-  SafeMap: Map,
-  SafeSet: Set,
-  SafeWeakMap: WeakMap,
-  StringPrototypeEndsWith: (str, ...rest) => String.prototype.endsWith.apply(str, rest),
-  StringPrototypeIncludes: (str, ...rest) => String.prototype.includes.apply(str, rest),
-  StringPrototypeLastIndexOf: (str, ...rest) => String.prototype.lastIndexOf.apply(str, rest),
-  StringPrototypeIndexOf: (str, ...rest) => String.prototype.indexOf.apply(str, rest),
-  StringPrototypeRepeat: (str, ...rest) => String.prototype.repeat.apply(str, rest),
-  StringPrototypeReplace: (str, ...rest) => String.prototype.replace.apply(str, rest),
-  StringPrototypeSlice: (str, ...rest) => String.prototype.slice.apply(str, rest),
-  StringPrototypeSplit: (str, ...rest) => String.prototype.split.apply(str, rest),
-  StringPrototypeStartsWith: (str, ...rest) => String.prototype.startsWith.apply(str, rest),
-  StringPrototypeSubstr: (str, ...rest) => String.prototype.substr.apply(str, rest),
-  StringPrototypeCharCodeAt: (str, ...rest) => String.prototype.charCodeAt.apply(str, rest),
-  StringPrototypeMatch: (str, ...rest) => String.prototype.match.apply(str, rest),
-  SyntaxError: SyntaxError
+    // Immediately after `j` is incremented in this loop, the following hold
+    // true:
+    //
+    //   * Every element in `ary[p .. i]` is less than or equal to the pivot.
+    //
+    //   * Every element in `ary[i+1 .. j-1]` is greater than the pivot.
+    for (var j = p; j < r; j++) {
+      if (comparator(ary[j], pivot) <= 0) {
+        i += 1;
+        swap(ary, i, j);
+      }
+    }
+
+    swap(ary, i + 1, j);
+    var q = i + 1;
+
+    // (2) Recurse on each half.
+
+    doQuickSort(ary, comparator, p, q - 1);
+    doQuickSort(ary, comparator, q + 1, r);
+  }
+}
+
+/**
+ * Sort the given array in-place with the given comparator function.
+ *
+ * @param {Array} ary
+ *        An array to sort.
+ * @param {function} comparator
+ *        Function to use to compare two items.
+ */
+exports.U = function (ary, comparator) {
+  doQuickSort(ary, comparator, 0, ary.length - 1);
 };
 
 
 /***/ }),
 
-/***/ 64414:
+/***/ 75155:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-"use strict";
+var __webpack_unused_export__;
+/* -*- Mode: js; js-indent-level: 2; -*- */
+/*
+ * Copyright 2011 Mozilla Foundation and contributors
+ * Licensed under the New BSD license. See LICENSE or:
+ * http://opensource.org/licenses/BSD-3-Clause
+ */
+
+var util = __nccwpck_require__(12344);
+var binarySearch = __nccwpck_require__(33600);
+var ArraySet = (__nccwpck_require__(26375)/* .ArraySet */ .I);
+var base64VLQ = __nccwpck_require__(10975);
+var quickSort = (__nccwpck_require__(73254)/* .quickSort */ .U);
+
+function SourceMapConsumer(aSourceMap, aSourceMapURL) {
+  var sourceMap = aSourceMap;
+  if (typeof aSourceMap === 'string') {
+    sourceMap = util.parseSourceMapInput(aSourceMap);
+  }
+
+  return sourceMap.sections != null
+    ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL)
+    : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
+}
+
+SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
+  return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
+}
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.installCommonjsResolveHooksIfNecessary = void 0;
 /**
- * @internal
+ * The version of the source mapping spec that we are consuming.
  */
-function installCommonjsResolveHooksIfNecessary(tsNodeService) {
-    const Module = __nccwpck_require__(98188);
-    const originalResolveFilename = Module._resolveFilename;
-    const originalFindPath = Module._findPath;
-    const shouldInstallHook = tsNodeService.options.experimentalResolver;
-    if (shouldInstallHook) {
-        const { Module_findPath, Module_resolveFilename } = tsNodeService.getNodeCjsLoader();
-        Module._resolveFilename = _resolveFilename;
-        Module._findPath = _findPath;
-        function _resolveFilename(request, parent, isMain, options, ...rest) {
-            if (!tsNodeService.enabled())
-                return originalResolveFilename.call(this, request, parent, isMain, options, ...rest);
-            return Module_resolveFilename.call(this, request, parent, isMain, options, ...rest);
-        }
-        function _findPath() {
-            if (!tsNodeService.enabled())
-                return originalFindPath.apply(this, arguments);
-            return Module_findPath.apply(this, arguments);
-        }
+SourceMapConsumer.prototype._version = 3;
+
+// `__generatedMappings` and `__originalMappings` are arrays that hold the
+// parsed mapping coordinates from the source map's "mappings" attribute. They
+// are lazily instantiated, accessed via the `_generatedMappings` and
+// `_originalMappings` getters respectively, and we only parse the mappings
+// and create these arrays once queried for a source location. We jump through
+// these hoops because there can be many thousands of mappings, and parsing
+// them is expensive, so we only want to do it if we must.
+//
+// Each object in the arrays is of the form:
+//
+//     {
+//       generatedLine: The line number in the generated code,
+//       generatedColumn: The column number in the generated code,
+//       source: The path to the original source file that generated this
+//               chunk of code,
+//       originalLine: The line number in the original source that
+//                     corresponds to this chunk of generated code,
+//       originalColumn: The column number in the original source that
+//                       corresponds to this chunk of generated code,
+//       name: The name of the original symbol which generated this chunk of
+//             code.
+//     }
+//
+// All properties except for `generatedLine` and `generatedColumn` can be
+// `null`.
+//
+// `_generatedMappings` is ordered by the generated positions.
+//
+// `_originalMappings` is ordered by the original positions.
+
+SourceMapConsumer.prototype.__generatedMappings = null;
+Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', {
+  configurable: true,
+  enumerable: true,
+  get: function () {
+    if (!this.__generatedMappings) {
+      this._parseMappings(this._mappings, this.sourceRoot);
     }
-}
-exports.installCommonjsResolveHooksIfNecessary = installCommonjsResolveHooksIfNecessary;
-//# sourceMappingURL=cjs-resolve-hooks.js.map
 
-/***/ }),
+    return this.__generatedMappings;
+  }
+});
 
-/***/ 29906:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+SourceMapConsumer.prototype.__originalMappings = null;
+Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', {
+  configurable: true,
+  enumerable: true,
+  get: function () {
+    if (!this.__originalMappings) {
+      this._parseMappings(this._mappings, this.sourceRoot);
+    }
 
-"use strict";
+    return this.__originalMappings;
+  }
+});
+
+SourceMapConsumer.prototype._charIsMappingSeparator =
+  function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
+    var c = aStr.charAt(index);
+    return c === ";" || c === ",";
+  };
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getTsConfigDefaults = exports.ComputeAsCommonRootOfFiles = exports.loadCompiler = exports.resolveAndLoadCompiler = exports.readConfig = exports.findAndReadConfig = void 0;
-const path_1 = __nccwpck_require__(71017);
-const index_1 = __nccwpck_require__(72719);
-const ts_internals_1 = __nccwpck_require__(14851);
-const tsconfigs_1 = __nccwpck_require__(91533);
-const util_1 = __nccwpck_require__(64745);
 /**
- * TypeScript compiler option values required by `ts-node` which cannot be overridden.
+ * Parse the mappings in a string in to a data structure which we can easily
+ * query (the ordered arrays in the `this.__generatedMappings` and
+ * `this.__originalMappings` properties).
  */
-const TS_NODE_COMPILER_OPTIONS = {
-    sourceMap: true,
-    inlineSourceMap: false,
-    inlineSources: true,
-    declaration: false,
-    noEmit: false,
-    outDir: '.ts-node',
-};
-/*
- * Do post-processing on config options to support `ts-node`.
+SourceMapConsumer.prototype._parseMappings =
+  function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
+    throw new Error("Subclasses must implement _parseMappings");
+  };
+
+SourceMapConsumer.GENERATED_ORDER = 1;
+SourceMapConsumer.ORIGINAL_ORDER = 2;
+
+SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
+SourceMapConsumer.LEAST_UPPER_BOUND = 2;
+
+/**
+ * Iterate over each mapping between an original source/line/column and a
+ * generated line/column in this source map.
+ *
+ * @param Function aCallback
+ *        The function that is called with each mapping.
+ * @param Object aContext
+ *        Optional. If specified, this object will be the value of `this` every
+ *        time that `aCallback` is called.
+ * @param aOrder
+ *        Either `SourceMapConsumer.GENERATED_ORDER` or
+ *        `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to
+ *        iterate over the mappings sorted by the generated file's line/column
+ *        order or the original's source/line/column order, respectively. Defaults to
+ *        `SourceMapConsumer.GENERATED_ORDER`.
  */
-function fixConfig(ts, config) {
-    // Delete options that *should not* be passed through.
-    delete config.options.out;
-    delete config.options.outFile;
-    delete config.options.composite;
-    delete config.options.declarationDir;
-    delete config.options.declarationMap;
-    delete config.options.emitDeclarationOnly;
-    // Target ES5 output by default (instead of ES3).
-    if (config.options.target === undefined) {
-        config.options.target = ts.ScriptTarget.ES5;
-    }
-    // Target CommonJS modules by default (instead of magically switching to ES6 when the target is ES6).
-    if (config.options.module === undefined) {
-        config.options.module = ts.ModuleKind.CommonJS;
-    }
-    return config;
-}
-/** @internal */
-function findAndReadConfig(rawOptions) {
-    var _a, _b, _c, _d, _e;
-    const cwd = (0, path_1.resolve)((_c = (_b = (_a = rawOptions.cwd) !== null && _a !== void 0 ? _a : rawOptions.dir) !== null && _b !== void 0 ? _b : index_1.DEFAULTS.cwd) !== null && _c !== void 0 ? _c : process.cwd());
-    const compilerName = (_d = rawOptions.compiler) !== null && _d !== void 0 ? _d : index_1.DEFAULTS.compiler;
-    // Compute minimum options to read the config file.
-    let projectLocalResolveDir = (0, util_1.getBasePathForProjectLocalDependencyResolution)(undefined, rawOptions.projectSearchDir, rawOptions.project, cwd);
-    let { compiler, ts } = resolveAndLoadCompiler(compilerName, projectLocalResolveDir);
-    // Read config file and merge new options between env and CLI options.
-    const { configFilePath, config, tsNodeOptionsFromTsconfig, optionBasePaths } = readConfig(cwd, ts, rawOptions);
-    const options = (0, util_1.assign)({}, index_1.DEFAULTS, tsNodeOptionsFromTsconfig || {}, { optionBasePaths }, rawOptions);
-    options.require = [
-        ...(tsNodeOptionsFromTsconfig.require || []),
-        ...(rawOptions.require || []),
-    ];
-    // Re-resolve the compiler in case it has changed.
-    // Compiler is loaded relative to tsconfig.json, so tsconfig discovery may cause us to load a
-    // different compiler than we did above, even if the name has not changed.
-    if (configFilePath) {
-        projectLocalResolveDir = (0, util_1.getBasePathForProjectLocalDependencyResolution)(configFilePath, rawOptions.projectSearchDir, rawOptions.project, cwd);
-        ({ compiler } = resolveCompiler(options.compiler, (_e = optionBasePaths.compiler) !== null && _e !== void 0 ? _e : projectLocalResolveDir));
+SourceMapConsumer.prototype.eachMapping =
+  function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
+    var context = aContext || null;
+    var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
+
+    var mappings;
+    switch (order) {
+    case SourceMapConsumer.GENERATED_ORDER:
+      mappings = this._generatedMappings;
+      break;
+    case SourceMapConsumer.ORIGINAL_ORDER:
+      mappings = this._originalMappings;
+      break;
+    default:
+      throw new Error("Unknown order of iteration.");
     }
-    return {
-        options,
-        config,
-        projectLocalResolveDir,
-        optionBasePaths,
-        configFilePath,
-        cwd,
-        compiler,
-    };
-}
-exports.findAndReadConfig = findAndReadConfig;
+
+    var sourceRoot = this.sourceRoot;
+    mappings.map(function (mapping) {
+      var source = mapping.source === null ? null : this._sources.at(mapping.source);
+      source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL);
+      return {
+        source: source,
+        generatedLine: mapping.generatedLine,
+        generatedColumn: mapping.generatedColumn,
+        originalLine: mapping.originalLine,
+        originalColumn: mapping.originalColumn,
+        name: mapping.name === null ? null : this._names.at(mapping.name)
+      };
+    }, this).forEach(aCallback, context);
+  };
+
 /**
- * Load TypeScript configuration. Returns the parsed TypeScript config and
- * any `ts-node` options specified in the config file.
+ * Returns all generated line and column information for the original source,
+ * line, and column provided. If no column is provided, returns all mappings
+ * corresponding to a either the line we are searching for or the next
+ * closest line that has any mappings. Otherwise, returns all mappings
+ * corresponding to the given line and either the column we are searching for
+ * or the next closest column that has any offsets.
  *
- * Even when a tsconfig.json is not loaded, this function still handles merging
- * compilerOptions from various sources: API, environment variables, etc.
+ * The only argument is an object with the following properties:
  *
- * @internal
+ *   - source: The filename of the original source.
+ *   - line: The line number in the original source.  The line number is 1-based.
+ *   - column: Optional. the column number in the original source.
+ *    The column number is 0-based.
+ *
+ * and an array of objects is returned, each with the following properties:
+ *
+ *   - line: The line number in the generated source, or null.  The
+ *    line number is 1-based.
+ *   - column: The column number in the generated source, or null.
+ *    The column number is 0-based.
  */
-function readConfig(cwd, ts, rawApiOptions) {
-    var _a, _b, _c;
-    // Ordered [a, b, c] where config a extends b extends c
-    const configChain = [];
-    let config = { compilerOptions: {} };
-    let basePath = cwd;
-    let configFilePath = undefined;
-    const projectSearchDir = (0, path_1.resolve)(cwd, (_a = rawApiOptions.projectSearchDir) !== null && _a !== void 0 ? _a : cwd);
-    const { fileExists = ts.sys.fileExists, readFile = ts.sys.readFile, skipProject = index_1.DEFAULTS.skipProject, project = index_1.DEFAULTS.project, tsTrace = index_1.DEFAULTS.tsTrace, } = rawApiOptions;
-    // Read project configuration when available.
-    if (!skipProject) {
-        if (project) {
-            const resolved = (0, path_1.resolve)(cwd, project);
-            const nested = (0, path_1.join)(resolved, 'tsconfig.json');
-            configFilePath = fileExists(nested) ? nested : resolved;
-        }
-        else {
-            configFilePath = ts.findConfigFile(projectSearchDir, fileExists);
-        }
-        if (configFilePath) {
-            let pathToNextConfigInChain = configFilePath;
-            const tsInternals = (0, ts_internals_1.createTsInternals)(ts);
-            const errors = [];
-            // Follow chain of "extends"
-            while (true) {
-                const result = ts.readConfigFile(pathToNextConfigInChain, readFile);
-                // Return diagnostics.
-                if (result.error) {
-                    return {
-                        configFilePath,
-                        config: { errors: [result.error], fileNames: [], options: {} },
-                        tsNodeOptionsFromTsconfig: {},
-                        optionBasePaths: {},
-                    };
-                }
-                const c = result.config;
-                const bp = (0, path_1.dirname)(pathToNextConfigInChain);
-                configChain.push({
-                    config: c,
-                    basePath: bp,
-                    configPath: pathToNextConfigInChain,
-                });
-                if (c.extends == null)
-                    break;
-                const resolvedExtendedConfigPath = tsInternals.getExtendsConfigPath(c.extends, {
-                    fileExists,
-                    readDirectory: ts.sys.readDirectory,
-                    readFile,
-                    useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames,
-                    trace: tsTrace,
-                }, bp, errors, ts.createCompilerDiagnostic);
-                if (errors.length) {
-                    return {
-                        configFilePath,
-                        config: { errors, fileNames: [], options: {} },
-                        tsNodeOptionsFromTsconfig: {},
-                        optionBasePaths: {},
-                    };
-                }
-                if (resolvedExtendedConfigPath == null)
-                    break;
-                pathToNextConfigInChain = resolvedExtendedConfigPath;
-            }
-            ({ config, basePath } = configChain[0]);
-        }
+SourceMapConsumer.prototype.allGeneratedPositionsFor =
+  function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
+    var line = util.getArg(aArgs, 'line');
+
+    // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping
+    // returns the index of the closest mapping less than the needle. By
+    // setting needle.originalColumn to 0, we thus find the last mapping for
+    // the given line, provided such a mapping exists.
+    var needle = {
+      source: util.getArg(aArgs, 'source'),
+      originalLine: line,
+      originalColumn: util.getArg(aArgs, 'column', 0)
+    };
+
+    needle.source = this._findSourceIndex(needle.source);
+    if (needle.source < 0) {
+      return [];
     }
-    // Merge and fix ts-node options that come from tsconfig.json(s)
-    const tsNodeOptionsFromTsconfig = {};
-    const optionBasePaths = {};
-    for (let i = configChain.length - 1; i >= 0; i--) {
-        const { config, basePath, configPath } = configChain[i];
-        const options = filterRecognizedTsConfigTsNodeOptions(config['ts-node']).recognized;
-        // Some options are relative to the config file, so must be converted to absolute paths here
-        if (options.require) {
-            // Modules are found relative to the tsconfig file, not the `dir` option
-            const tsconfigRelativeResolver = (0, util_1.createProjectLocalResolveHelper)((0, path_1.dirname)(configPath));
-            options.require = options.require.map((path) => tsconfigRelativeResolver(path, false));
-        }
-        if (options.scopeDir) {
-            options.scopeDir = (0, path_1.resolve)(basePath, options.scopeDir);
-        }
-        // Downstream code uses the basePath; we do not do that here.
-        if (options.moduleTypes) {
-            optionBasePaths.moduleTypes = basePath;
-        }
-        if (options.transpiler != null) {
-            optionBasePaths.transpiler = basePath;
-        }
-        if (options.compiler != null) {
-            optionBasePaths.compiler = basePath;
+
+    var mappings = [];
+
+    var index = this._findMapping(needle,
+                                  this._originalMappings,
+                                  "originalLine",
+                                  "originalColumn",
+                                  util.compareByOriginalPositions,
+                                  binarySearch.LEAST_UPPER_BOUND);
+    if (index >= 0) {
+      var mapping = this._originalMappings[index];
+
+      if (aArgs.column === undefined) {
+        var originalLine = mapping.originalLine;
+
+        // Iterate until either we run out of mappings, or we run into
+        // a mapping for a different line than the one we found. Since
+        // mappings are sorted, this is guaranteed to find all mappings for
+        // the line we found.
+        while (mapping && mapping.originalLine === originalLine) {
+          mappings.push({
+            line: util.getArg(mapping, 'generatedLine', null),
+            column: util.getArg(mapping, 'generatedColumn', null),
+            lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
+          });
+
+          mapping = this._originalMappings[++index];
         }
-        if (options.swc != null) {
-            optionBasePaths.swc = basePath;
+      } else {
+        var originalColumn = mapping.originalColumn;
+
+        // Iterate until either we run out of mappings, or we run into
+        // a mapping for a different line than the one we were searching for.
+        // Since mappings are sorted, this is guaranteed to find all mappings for
+        // the line we are searching for.
+        while (mapping &&
+               mapping.originalLine === line &&
+               mapping.originalColumn == originalColumn) {
+          mappings.push({
+            line: util.getArg(mapping, 'generatedLine', null),
+            column: util.getArg(mapping, 'generatedColumn', null),
+            lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
+          });
+
+          mapping = this._originalMappings[++index];
         }
-        (0, util_1.assign)(tsNodeOptionsFromTsconfig, options);
+      }
     }
-    // Remove resolution of "files".
-    const files = (_c = (_b = rawApiOptions.files) !== null && _b !== void 0 ? _b : tsNodeOptionsFromTsconfig.files) !== null && _c !== void 0 ? _c : index_1.DEFAULTS.files;
-    // Only if a config file is *not* loaded, load an implicit configuration from @tsconfig/bases
-    const skipDefaultCompilerOptions = configFilePath != null;
-    const defaultCompilerOptionsForNodeVersion = skipDefaultCompilerOptions
-        ? undefined
-        : {
-            ...(0, tsconfigs_1.getDefaultTsconfigJsonForNodeVersion)(ts).compilerOptions,
-            types: ['node'],
-        };
-    // Merge compilerOptions from all sources
-    config.compilerOptions = Object.assign({}, 
-    // automatically-applied options from @tsconfig/bases
-    defaultCompilerOptionsForNodeVersion, 
-    // tsconfig.json "compilerOptions"
-    config.compilerOptions, 
-    // from env var
-    index_1.DEFAULTS.compilerOptions, 
-    // tsconfig.json "ts-node": "compilerOptions"
-    tsNodeOptionsFromTsconfig.compilerOptions, 
-    // passed programmatically
-    rawApiOptions.compilerOptions, 
-    // overrides required by ts-node, cannot be changed
-    TS_NODE_COMPILER_OPTIONS);
-    const fixedConfig = fixConfig(ts, ts.parseJsonConfigFileContent(config, {
-        fileExists,
-        readFile,
-        // Only used for globbing "files", "include", "exclude"
-        // When `files` option disabled, we want to avoid the fs calls
-        readDirectory: files ? ts.sys.readDirectory : () => [],
-        useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames,
-    }, basePath, undefined, configFilePath));
-    return {
-        configFilePath,
-        config: fixedConfig,
-        tsNodeOptionsFromTsconfig,
-        optionBasePaths,
-    };
-}
-exports.readConfig = readConfig;
+
+    return mappings;
+  };
+
+exports.SourceMapConsumer = SourceMapConsumer;
+
 /**
- * Load the typescript compiler. It is required to load the tsconfig but might
- * be changed by the tsconfig, so we have to do this twice.
- * @internal
+ * A BasicSourceMapConsumer instance represents a parsed source map which we can
+ * query for information about the original file positions by giving it a file
+ * position in the generated source.
+ *
+ * The first parameter is the raw source map (either as a JSON string, or
+ * already parsed to an object). According to the spec, source maps have the
+ * following attributes:
+ *
+ *   - version: Which version of the source map spec this map is following.
+ *   - sources: An array of URLs to the original source files.
+ *   - names: An array of identifiers which can be referrenced by individual mappings.
+ *   - sourceRoot: Optional. The URL root from which all sources are relative.
+ *   - sourcesContent: Optional. An array of contents of the original source files.
+ *   - mappings: A string of base64 VLQs which contain the actual mappings.
+ *   - file: Optional. The generated file this source map is associated with.
+ *
+ * Here is an example source map, taken from the source map spec[0]:
+ *
+ *     {
+ *       version : 3,
+ *       file: "out.js",
+ *       sourceRoot : "",
+ *       sources: ["foo.js", "bar.js"],
+ *       names: ["src", "maps", "are", "fun"],
+ *       mappings: "AA,AB;;ABCDE;"
+ *     }
+ *
+ * The second parameter, if given, is a string whose value is the URL
+ * at which the source map was found.  This URL is used to compute the
+ * sources array.
+ *
+ * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#
  */
-function resolveAndLoadCompiler(name, relativeToPath) {
-    const { compiler } = resolveCompiler(name, relativeToPath);
-    const ts = loadCompiler(compiler);
-    return { compiler, ts };
-}
-exports.resolveAndLoadCompiler = resolveAndLoadCompiler;
-function resolveCompiler(name, relativeToPath) {
-    const projectLocalResolveHelper = (0, util_1.createProjectLocalResolveHelper)(relativeToPath);
-    const compiler = projectLocalResolveHelper(name || 'typescript', true);
-    return { compiler };
-}
-/** @internal */
-function loadCompiler(compiler) {
-    return (0, util_1.attemptRequireWithV8CompileCache)(require, compiler);
+function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
+  var sourceMap = aSourceMap;
+  if (typeof aSourceMap === 'string') {
+    sourceMap = util.parseSourceMapInput(aSourceMap);
+  }
+
+  var version = util.getArg(sourceMap, 'version');
+  var sources = util.getArg(sourceMap, 'sources');
+  // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which
+  // requires the array) to play nice here.
+  var names = util.getArg(sourceMap, 'names', []);
+  var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null);
+  var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null);
+  var mappings = util.getArg(sourceMap, 'mappings');
+  var file = util.getArg(sourceMap, 'file', null);
+
+  // Once again, Sass deviates from the spec and supplies the version as a
+  // string rather than a number, so we use loose equality checking here.
+  if (version != this._version) {
+    throw new Error('Unsupported version: ' + version);
+  }
+
+  if (sourceRoot) {
+    sourceRoot = util.normalize(sourceRoot);
+  }
+
+  sources = sources
+    .map(String)
+    // Some source maps produce relative source paths like "./foo.js" instead of
+    // "foo.js".  Normalize these first so that future comparisons will succeed.
+    // See bugzil.la/1090768.
+    .map(util.normalize)
+    // Always ensure that absolute sources are internally stored relative to
+    // the source root, if the source root is absolute. Not doing this would
+    // be particularly problematic when the source root is a prefix of the
+    // source (valid, but why??). See github issue #199 and bugzil.la/1188982.
+    .map(function (source) {
+      return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source)
+        ? util.relative(sourceRoot, source)
+        : source;
+    });
+
+  // Pass `true` below to allow duplicate names and sources. While source maps
+  // are intended to be compressed and deduplicated, the TypeScript compiler
+  // sometimes generates source maps with duplicates in them. See Github issue
+  // #72 and bugzil.la/889492.
+  this._names = ArraySet.fromArray(names.map(String), true);
+  this._sources = ArraySet.fromArray(sources, true);
+
+  this._absoluteSources = this._sources.toArray().map(function (s) {
+    return util.computeSourceURL(sourceRoot, s, aSourceMapURL);
+  });
+
+  this.sourceRoot = sourceRoot;
+  this.sourcesContent = sourcesContent;
+  this._mappings = mappings;
+  this._sourceMapURL = aSourceMapURL;
+  this.file = file;
 }
-exports.loadCompiler = loadCompiler;
+
+BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
+BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
+
 /**
- * Given the raw "ts-node" sub-object from a tsconfig, return an object with only the properties
- * recognized by "ts-node"
+ * Utility function to find the index of a source.  Returns -1 if not
+ * found.
  */
-function filterRecognizedTsConfigTsNodeOptions(jsonObject) {
-    if (jsonObject == null)
-        return { recognized: {}, unrecognized: {} };
-    const { compiler, compilerHost, compilerOptions, emit, files, ignore, ignoreDiagnostics, logError, preferTsExts, pretty, require, skipIgnore, transpileOnly, typeCheck, transpiler, scope, scopeDir, moduleTypes, experimentalReplAwait, swc, experimentalResolver, esm, experimentalSpecifierResolution, experimentalTsImportSpecifiers, ...unrecognized } = jsonObject;
-    const filteredTsConfigOptions = {
-        compiler,
-        compilerHost,
-        compilerOptions,
-        emit,
-        experimentalReplAwait,
-        files,
-        ignore,
-        ignoreDiagnostics,
-        logError,
-        preferTsExts,
-        pretty,
-        require,
-        skipIgnore,
-        transpileOnly,
-        typeCheck,
-        transpiler,
-        scope,
-        scopeDir,
-        moduleTypes,
-        swc,
-        experimentalResolver,
-        esm,
-        experimentalSpecifierResolution,
-        experimentalTsImportSpecifiers,
-    };
-    // Use the typechecker to make sure this implementation has the correct set of properties
-    const catchExtraneousProps = null;
-    const catchMissingProps = null;
-    return { recognized: filteredTsConfigOptions, unrecognized };
-}
-/** @internal */
-exports.ComputeAsCommonRootOfFiles = Symbol();
+BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
+  var relativeSource = aSource;
+  if (this.sourceRoot != null) {
+    relativeSource = util.relative(this.sourceRoot, relativeSource);
+  }
+
+  if (this._sources.has(relativeSource)) {
+    return this._sources.indexOf(relativeSource);
+  }
+
+  // Maybe aSource is an absolute URL as returned by |sources|.  In
+  // this case we can't simply undo the transform.
+  var i;
+  for (i = 0; i < this._absoluteSources.length; ++i) {
+    if (this._absoluteSources[i] == aSource) {
+      return i;
+    }
+  }
+
+  return -1;
+};
+
 /**
- * Some TS compiler options have defaults which are not provided by TS's config parsing functions.
- * This function centralizes the logic for computing those defaults.
- * @internal
+ * Create a BasicSourceMapConsumer from a SourceMapGenerator.
+ *
+ * @param SourceMapGenerator aSourceMap
+ *        The source map that will be consumed.
+ * @param String aSourceMapURL
+ *        The URL at which the source map can be found (optional)
+ * @returns BasicSourceMapConsumer
  */
-function getTsConfigDefaults(config, basePath, _files, _include, _exclude) {
-    const { composite = false } = config.options;
-    let rootDir = config.options.rootDir;
-    if (rootDir == null) {
-        if (composite)
-            rootDir = basePath;
-        // Return this symbol to avoid computing from `files`, which would require fs calls
-        else
-            rootDir = exports.ComputeAsCommonRootOfFiles;
-    }
-    const { outDir = rootDir } = config.options;
-    // Docs are wrong: https://www.typescriptlang.org/tsconfig#include
-    // Docs say **, but it's actually **/*; compiler throws error for **
-    const include = _files ? [] : ['**/*'];
-    const files = _files !== null && _files !== void 0 ? _files : [];
-    // Docs are misleading: https://www.typescriptlang.org/tsconfig#exclude
-    // Docs say it excludes node_modules, bower_components, jspm_packages, but actually those are excluded via behavior of "include"
-    const exclude = _exclude !== null && _exclude !== void 0 ? _exclude : [outDir]; // TODO technically, outDir is absolute path, but exclude should be relative glob pattern?
-    // TODO compute baseUrl
-    return { rootDir, outDir, include, files, exclude, composite };
-}
-exports.getTsConfigDefaults = getTsConfigDefaults;
-//# sourceMappingURL=configuration.js.map
+BasicSourceMapConsumer.fromSourceMap =
+  function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {
+    var smc = Object.create(BasicSourceMapConsumer.prototype);
 
-/***/ }),
+    var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
+    var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
+    smc.sourceRoot = aSourceMap._sourceRoot;
+    smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(),
+                                                            smc.sourceRoot);
+    smc.file = aSourceMap._file;
+    smc._sourceMapURL = aSourceMapURL;
+    smc._absoluteSources = smc._sources.toArray().map(function (s) {
+      return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
+    });
 
-/***/ 84998:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+    // Because we are modifying the entries (by converting string sources and
+    // names to indices into the sources and names ArraySets), we have to make
+    // a copy of the entry or else bad things happen. Shared mutable state
+    // strikes again! See github issue #191.
 
-"use strict";
-var __webpack_unused_export__;
+    var generatedMappings = aSourceMap._mappings.toArray().slice();
+    var destGeneratedMappings = smc.__generatedMappings = [];
+    var destOriginalMappings = smc.__originalMappings = [];
 
-__webpack_unused_export__ = ({ value: true });
-exports.lT = __webpack_unused_export__ = __webpack_unused_export__ = void 0;
-const index_1 = __nccwpck_require__(72719);
-const url_1 = __nccwpck_require__(57310);
-const path_1 = __nccwpck_require__(71017);
-const assert = __nccwpck_require__(39491);
-const util_1 = __nccwpck_require__(64745);
-const module_1 = __nccwpck_require__(98188);
-// The hooks API changed in node version X so we need to check for backwards compatibility.
-const newHooksAPI = (0, util_1.versionGteLt)(process.versions.node, '16.12.0');
-/** @internal */
-function filterHooksByAPIVersion(hooks) {
-    const { getFormat, load, resolve, transformSource } = hooks;
-    // Explicit return type to avoid TS's non-ideal inferred type
-    const hooksAPI = newHooksAPI
-        ? { resolve, load, getFormat: undefined, transformSource: undefined }
-        : { resolve, getFormat, transformSource, load: undefined };
-    return hooksAPI;
-}
-__webpack_unused_export__ = filterHooksByAPIVersion;
-/** @internal */
-function registerAndCreateEsmHooks(opts) {
-    // Automatically performs registration just like `-r ts-node/register`
-    const tsNodeInstance = (0, index_1.register)(opts);
-    return createEsmHooks(tsNodeInstance);
-}
-__webpack_unused_export__ = registerAndCreateEsmHooks;
-function createEsmHooks(tsNodeService) {
-    tsNodeService.enableExperimentalEsmLoaderInterop();
-    // Custom implementation that considers additional file extensions and automatically adds file extensions
-    const nodeResolveImplementation = tsNodeService.getNodeEsmResolver();
-    const nodeGetFormatImplementation = tsNodeService.getNodeEsmGetFormat();
-    const extensions = tsNodeService.extensions;
-    const hooksAPI = filterHooksByAPIVersion({
-        resolve,
-        load,
-        getFormat,
-        transformSource,
-    });
-    function isFileUrlOrNodeStyleSpecifier(parsed) {
-        // We only understand file:// URLs, but in node, the specifier can be a node-style `./foo` or `foo`
-        const { protocol } = parsed;
-        return protocol === null || protocol === 'file:';
-    }
-    /**
-     * Named "probably" as a reminder that this is a guess.
-     * node does not explicitly tell us if we're resolving the entrypoint or not.
-     */
-    function isProbablyEntrypoint(specifier, parentURL) {
-        return parentURL === undefined && specifier.startsWith('file://');
-    }
-    // Side-channel between `resolve()` and `load()` hooks
-    const rememberIsProbablyEntrypoint = new Set();
-    const rememberResolvedViaCommonjsFallback = new Set();
-    async function resolve(specifier, context, defaultResolve) {
-        const defer = async () => {
-            const r = await defaultResolve(specifier, context, defaultResolve);
-            return r;
-        };
-        // See: https://github.com/nodejs/node/discussions/41711
-        // nodejs will likely implement a similar fallback.  Till then, we can do our users a favor and fallback today.
-        async function entrypointFallback(cb) {
-            try {
-                const resolution = await cb();
-                if ((resolution === null || resolution === void 0 ? void 0 : resolution.url) &&
-                    isProbablyEntrypoint(specifier, context.parentURL))
-                    rememberIsProbablyEntrypoint.add(resolution.url);
-                return resolution;
-            }
-            catch (esmResolverError) {
-                if (!isProbablyEntrypoint(specifier, context.parentURL))
-                    throw esmResolverError;
-                try {
-                    let cjsSpecifier = specifier;
-                    // Attempt to convert from ESM file:// to CommonJS path
-                    try {
-                        if (specifier.startsWith('file://'))
-                            cjsSpecifier = (0, url_1.fileURLToPath)(specifier);
-                    }
-                    catch { }
-                    const resolution = (0, url_1.pathToFileURL)((0, module_1.createRequire)(process.cwd()).resolve(cjsSpecifier)).toString();
-                    rememberIsProbablyEntrypoint.add(resolution);
-                    rememberResolvedViaCommonjsFallback.add(resolution);
-                    return { url: resolution, format: 'commonjs' };
-                }
-                catch (commonjsResolverError) {
-                    throw esmResolverError;
-                }
-            }
+    for (var i = 0, length = generatedMappings.length; i < length; i++) {
+      var srcMapping = generatedMappings[i];
+      var destMapping = new Mapping;
+      destMapping.generatedLine = srcMapping.generatedLine;
+      destMapping.generatedColumn = srcMapping.generatedColumn;
+
+      if (srcMapping.source) {
+        destMapping.source = sources.indexOf(srcMapping.source);
+        destMapping.originalLine = srcMapping.originalLine;
+        destMapping.originalColumn = srcMapping.originalColumn;
+
+        if (srcMapping.name) {
+          destMapping.name = names.indexOf(srcMapping.name);
         }
-        return addShortCircuitFlag(async () => {
-            const parsed = (0, url_1.parse)(specifier);
-            const { pathname, protocol, hostname } = parsed;
-            if (!isFileUrlOrNodeStyleSpecifier(parsed)) {
-                return entrypointFallback(defer);
-            }
-            if (protocol !== null && protocol !== 'file:') {
-                return entrypointFallback(defer);
-            }
-            // Malformed file:// URL?  We should always see `null` or `''`
-            if (hostname) {
-                // TODO file://./foo sets `hostname` to `'.'`.  Perhaps we should special-case this.
-                return entrypointFallback(defer);
-            }
-            // pathname is the path to be resolved
-            return entrypointFallback(() => nodeResolveImplementation.defaultResolve(specifier, context, defaultResolve));
-        });
-    }
-    // `load` from new loader hook API (See description at the top of this file)
-    async function load(url, context, defaultLoad) {
-        return addShortCircuitFlag(async () => {
-            var _a;
-            // If we get a format hint from resolve() on the context then use it
-            // otherwise call the old getFormat() hook using node's old built-in defaultGetFormat() that ships with ts-node
-            const format = (_a = context.format) !== null && _a !== void 0 ? _a : (await getFormat(url, context, nodeGetFormatImplementation.defaultGetFormat)).format;
-            let source = undefined;
-            if (format !== 'builtin' && format !== 'commonjs') {
-                // Call the new defaultLoad() to get the source
-                const { source: rawSource } = await defaultLoad(url, {
-                    ...context,
-                    format,
-                }, defaultLoad);
-                if (rawSource === undefined || rawSource === null) {
-                    throw new Error(`Failed to load raw source: Format was '${format}' and url was '${url}''.`);
-                }
-                // Emulate node's built-in old defaultTransformSource() so we can re-use the old transformSource() hook
-                const defaultTransformSource = async (source, _context, _defaultTransformSource) => ({ source });
-                // Call the old hook
-                const { source: transformedSource } = await transformSource(rawSource, { url, format }, defaultTransformSource);
-                source = transformedSource;
-            }
-            return { format, source };
-        });
+
+        destOriginalMappings.push(destMapping);
+      }
+
+      destGeneratedMappings.push(destMapping);
     }
-    async function getFormat(url, context, defaultGetFormat) {
-        const defer = (overrideUrl = url) => defaultGetFormat(overrideUrl, context, defaultGetFormat);
-        // See: https://github.com/nodejs/node/discussions/41711
-        // nodejs will likely implement a similar fallback.  Till then, we can do our users a favor and fallback today.
-        async function entrypointFallback(cb) {
-            try {
-                return await cb();
-            }
-            catch (getFormatError) {
-                if (!rememberIsProbablyEntrypoint.has(url))
-                    throw getFormatError;
-                return { format: 'commonjs' };
-            }
-        }
-        const parsed = (0, url_1.parse)(url);
-        if (!isFileUrlOrNodeStyleSpecifier(parsed)) {
-            return entrypointFallback(defer);
+
+    quickSort(smc.__originalMappings, util.compareByOriginalPositions);
+
+    return smc;
+  };
+
+/**
+ * The version of the source mapping spec that we are consuming.
+ */
+BasicSourceMapConsumer.prototype._version = 3;
+
+/**
+ * The list of original sources.
+ */
+Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', {
+  get: function () {
+    return this._absoluteSources.slice();
+  }
+});
+
+/**
+ * Provide the JIT with a nice shape / hidden class.
+ */
+function Mapping() {
+  this.generatedLine = 0;
+  this.generatedColumn = 0;
+  this.source = null;
+  this.originalLine = null;
+  this.originalColumn = null;
+  this.name = null;
+}
+
+/**
+ * Parse the mappings in a string in to a data structure which we can easily
+ * query (the ordered arrays in the `this.__generatedMappings` and
+ * `this.__originalMappings` properties).
+ */
+BasicSourceMapConsumer.prototype._parseMappings =
+  function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
+    var generatedLine = 1;
+    var previousGeneratedColumn = 0;
+    var previousOriginalLine = 0;
+    var previousOriginalColumn = 0;
+    var previousSource = 0;
+    var previousName = 0;
+    var length = aStr.length;
+    var index = 0;
+    var cachedSegments = {};
+    var temp = {};
+    var originalMappings = [];
+    var generatedMappings = [];
+    var mapping, str, segment, end, value;
+
+    while (index < length) {
+      if (aStr.charAt(index) === ';') {
+        generatedLine++;
+        index++;
+        previousGeneratedColumn = 0;
+      }
+      else if (aStr.charAt(index) === ',') {
+        index++;
+      }
+      else {
+        mapping = new Mapping();
+        mapping.generatedLine = generatedLine;
+
+        // Because each offset is encoded relative to the previous one,
+        // many segments often have the same encoding. We can exploit this
+        // fact by caching the parsed variable length fields of each segment,
+        // allowing us to avoid a second parse if we encounter the same
+        // segment again.
+        for (end = index; end < length; end++) {
+          if (this._charIsMappingSeparator(aStr, end)) {
+            break;
+          }
         }
-        const { pathname } = parsed;
-        assert(pathname !== null, 'ESM getFormat() hook: URL should never have null pathname');
-        const nativePath = (0, url_1.fileURLToPath)(url);
-        let nodeSays;
-        // If file has extension not understood by node, then ask node how it would treat the emitted extension.
-        // E.g. .mts compiles to .mjs, so ask node how to classify an .mjs file.
-        const ext = (0, path_1.extname)(nativePath);
-        const tsNodeIgnored = tsNodeService.ignored(nativePath);
-        const nodeEquivalentExt = extensions.nodeEquivalents.get(ext);
-        if (nodeEquivalentExt && !tsNodeIgnored) {
-            nodeSays = await entrypointFallback(() => defer((0, url_1.format)((0, url_1.pathToFileURL)(nativePath + nodeEquivalentExt))));
+        str = aStr.slice(index, end);
+
+        segment = cachedSegments[str];
+        if (segment) {
+          index += str.length;
+        } else {
+          segment = [];
+          while (index < end) {
+            base64VLQ.decode(aStr, index, temp);
+            value = temp.value;
+            index = temp.rest;
+            segment.push(value);
+          }
+
+          if (segment.length === 2) {
+            throw new Error('Found a source, but no line and column');
+          }
+
+          if (segment.length === 3) {
+            throw new Error('Found a source and line, but no column');
+          }
+
+          cachedSegments[str] = segment;
         }
-        else {
-            try {
-                nodeSays = await entrypointFallback(defer);
-            }
-            catch (e) {
-                if (e instanceof Error &&
-                    tsNodeIgnored &&
-                    extensions.nodeDoesNotUnderstand.includes(ext)) {
-                    e.message +=
-                        `\n\n` +
-                            `Hint:\n` +
-                            `ts-node is configured to ignore this file.\n` +
-                            `If you want ts-node to handle this file, consider enabling the "skipIgnore" option or adjusting your "ignore" patterns.\n` +
-                            `https://typestrong.org/ts-node/docs/scope\n`;
-                }
-                throw e;
-            }
+
+        // Generated column.
+        mapping.generatedColumn = previousGeneratedColumn + segment[0];
+        previousGeneratedColumn = mapping.generatedColumn;
+
+        if (segment.length > 1) {
+          // Original source.
+          mapping.source = previousSource + segment[1];
+          previousSource += segment[1];
+
+          // Original line.
+          mapping.originalLine = previousOriginalLine + segment[2];
+          previousOriginalLine = mapping.originalLine;
+          // Lines are stored 0-based
+          mapping.originalLine += 1;
+
+          // Original column.
+          mapping.originalColumn = previousOriginalColumn + segment[3];
+          previousOriginalColumn = mapping.originalColumn;
+
+          if (segment.length > 4) {
+            // Original name.
+            mapping.name = previousName + segment[4];
+            previousName += segment[4];
+          }
         }
-        // For files compiled by ts-node that node believes are either CJS or ESM, check if we should override that classification
-        if (!tsNodeService.ignored(nativePath) &&
-            (nodeSays.format === 'commonjs' || nodeSays.format === 'module')) {
-            const { moduleType } = tsNodeService.moduleTypeClassifier.classifyModuleByModuleTypeOverrides((0, util_1.normalizeSlashes)(nativePath));
-            if (moduleType === 'cjs') {
-                return { format: 'commonjs' };
-            }
-            else if (moduleType === 'esm') {
-                return { format: 'module' };
-            }
+
+        generatedMappings.push(mapping);
+        if (typeof mapping.originalLine === 'number') {
+          originalMappings.push(mapping);
         }
-        return nodeSays;
+      }
     }
-    async function transformSource(source, context, defaultTransformSource) {
-        if (source === null || source === undefined) {
-            throw new Error('No source');
+
+    quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated);
+    this.__generatedMappings = generatedMappings;
+
+    quickSort(originalMappings, util.compareByOriginalPositions);
+    this.__originalMappings = originalMappings;
+  };
+
+/**
+ * Find the mapping that best matches the hypothetical "needle" mapping that
+ * we are searching for in the given "haystack" of mappings.
+ */
+BasicSourceMapConsumer.prototype._findMapping =
+  function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName,
+                                         aColumnName, aComparator, aBias) {
+    // To return the position we are searching for, we must first find the
+    // mapping for the given position and then return the opposite position it
+    // points to. Because the mappings are sorted, we can use binary search to
+    // find the best mapping.
+
+    if (aNeedle[aLineName] <= 0) {
+      throw new TypeError('Line must be greater than or equal to 1, got '
+                          + aNeedle[aLineName]);
+    }
+    if (aNeedle[aColumnName] < 0) {
+      throw new TypeError('Column must be greater than or equal to 0, got '
+                          + aNeedle[aColumnName]);
+    }
+
+    return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
+  };
+
+/**
+ * Compute the last column for each generated mapping. The last column is
+ * inclusive.
+ */
+BasicSourceMapConsumer.prototype.computeColumnSpans =
+  function SourceMapConsumer_computeColumnSpans() {
+    for (var index = 0; index < this._generatedMappings.length; ++index) {
+      var mapping = this._generatedMappings[index];
+
+      // Mappings do not contain a field for the last generated columnt. We
+      // can come up with an optimistic estimate, however, by assuming that
+      // mappings are contiguous (i.e. given two consecutive mappings, the
+      // first mapping ends where the second one starts).
+      if (index + 1 < this._generatedMappings.length) {
+        var nextMapping = this._generatedMappings[index + 1];
+
+        if (mapping.generatedLine === nextMapping.generatedLine) {
+          mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
+          continue;
         }
-        const defer = () => defaultTransformSource(source, context, defaultTransformSource);
-        const sourceAsString = typeof source === 'string' ? source : source.toString('utf8');
-        const { url } = context;
-        const parsed = (0, url_1.parse)(url);
-        if (!isFileUrlOrNodeStyleSpecifier(parsed)) {
-            return defer();
+      }
+
+      // The last mapping for each line spans the entire line.
+      mapping.lastGeneratedColumn = Infinity;
+    }
+  };
+
+/**
+ * Returns the original source, line, and column information for the generated
+ * source's line and column positions provided. The only argument is an object
+ * with the following properties:
+ *
+ *   - line: The line number in the generated source.  The line number
+ *     is 1-based.
+ *   - column: The column number in the generated source.  The column
+ *     number is 0-based.
+ *   - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
+ *     'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
+ *     closest element that is smaller than or greater than the one we are
+ *     searching for, respectively, if the exact element cannot be found.
+ *     Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
+ *
+ * and an object is returned with the following properties:
+ *
+ *   - source: The original source file, or null.
+ *   - line: The line number in the original source, or null.  The
+ *     line number is 1-based.
+ *   - column: The column number in the original source, or null.  The
+ *     column number is 0-based.
+ *   - name: The original identifier, or null.
+ */
+BasicSourceMapConsumer.prototype.originalPositionFor =
+  function SourceMapConsumer_originalPositionFor(aArgs) {
+    var needle = {
+      generatedLine: util.getArg(aArgs, 'line'),
+      generatedColumn: util.getArg(aArgs, 'column')
+    };
+
+    var index = this._findMapping(
+      needle,
+      this._generatedMappings,
+      "generatedLine",
+      "generatedColumn",
+      util.compareByGeneratedPositionsDeflated,
+      util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)
+    );
+
+    if (index >= 0) {
+      var mapping = this._generatedMappings[index];
+
+      if (mapping.generatedLine === needle.generatedLine) {
+        var source = util.getArg(mapping, 'source', null);
+        if (source !== null) {
+          source = this._sources.at(source);
+          source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
         }
-        const nativePath = (0, url_1.fileURLToPath)(url);
-        if (tsNodeService.ignored(nativePath)) {
-            return defer();
+        var name = util.getArg(mapping, 'name', null);
+        if (name !== null) {
+          name = this._names.at(name);
         }
-        const emittedJs = tsNodeService.compile(sourceAsString, nativePath);
-        return { source: emittedJs };
+        return {
+          source: source,
+          line: util.getArg(mapping, 'originalLine', null),
+          column: util.getArg(mapping, 'originalColumn', null),
+          name: name
+        };
+      }
     }
-    return hooksAPI;
-}
-exports.lT = createEsmHooks;
-async function addShortCircuitFlag(fn) {
-    const ret = await fn();
-    // Not sure if this is necessary; being lazy.  Can revisit in the future.
-    if (ret == null)
-        return ret;
+
     return {
-        ...ret,
-        shortCircuit: true,
+      source: null,
+      line: null,
+      column: null,
+      name: null
     };
-}
-//# sourceMappingURL=esm.js.map
-
-/***/ }),
-
-/***/ 5183:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+  };
 
-"use strict";
+/**
+ * Return true if we have the source content for every source in the source
+ * map, false otherwise.
+ */
+BasicSourceMapConsumer.prototype.hasContentsOfAllSources =
+  function BasicSourceMapConsumer_hasContentsOfAllSources() {
+    if (!this.sourcesContent) {
+      return false;
+    }
+    return this.sourcesContent.length >= this._sources.size() &&
+      !this.sourcesContent.some(function (sc) { return sc == null; });
+  };
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getExtensions = void 0;
-const util_1 = __nccwpck_require__(64745);
-const nodeEquivalents = new Map([
-    ['.ts', '.js'],
-    ['.tsx', '.js'],
-    ['.jsx', '.js'],
-    ['.mts', '.mjs'],
-    ['.cts', '.cjs'],
-]);
-const tsResolverEquivalents = new Map([
-    ['.ts', ['.js']],
-    ['.tsx', ['.js', '.jsx']],
-    ['.mts', ['.mjs']],
-    ['.cts', ['.cjs']],
-]);
-// All extensions understood by vanilla node
-const vanillaNodeExtensions = [
-    '.js',
-    '.json',
-    '.node',
-    '.mjs',
-    '.cjs',
-];
-// Extensions added by vanilla node's require() if you omit them:
-// js, json, node
-// Extensions added by vanilla node if you omit them with --experimental-specifier-resolution=node
-// js, json, node, mjs
-// Extensions added by ESM codepath's legacy package.json "main" resolver
-// js, json, node (not mjs!)
-const nodeDoesNotUnderstand = [
-    '.ts',
-    '.tsx',
-    '.jsx',
-    '.cts',
-    '.mts',
-];
 /**
- * [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS]
- * @internal
+ * Returns the original source content. The only argument is the url of the
+ * original source file. Returns null if no original source content is
+ * available.
  */
-function getExtensions(config, options, tsVersion) {
-    // TS 4.5 is first version to understand .cts, .mts, .cjs, and .mjs extensions
-    const tsSupportsMtsCtsExts = (0, util_1.versionGteLt)(tsVersion, '4.5.0');
-    const requiresHigherTypescriptVersion = [];
-    if (!tsSupportsMtsCtsExts)
-        requiresHigherTypescriptVersion.push('.cts', '.cjs', '.mts', '.mjs');
-    const allPossibleExtensionsSortedByPreference = Array.from(new Set([
-        ...(options.preferTsExts ? nodeDoesNotUnderstand : []),
-        ...vanillaNodeExtensions,
-        ...nodeDoesNotUnderstand,
-    ]));
-    const compiledJsUnsorted = ['.ts'];
-    const compiledJsxUnsorted = [];
-    if (config.options.jsx)
-        compiledJsxUnsorted.push('.tsx');
-    if (tsSupportsMtsCtsExts)
-        compiledJsUnsorted.push('.mts', '.cts');
-    if (config.options.allowJs) {
-        compiledJsUnsorted.push('.js');
-        if (config.options.jsx)
-            compiledJsxUnsorted.push('.jsx');
-        if (tsSupportsMtsCtsExts)
-            compiledJsUnsorted.push('.mjs', '.cjs');
+BasicSourceMapConsumer.prototype.sourceContentFor =
+  function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
+    if (!this.sourcesContent) {
+      return null;
     }
-    const compiledUnsorted = [...compiledJsUnsorted, ...compiledJsxUnsorted];
-    const compiled = allPossibleExtensionsSortedByPreference.filter((ext) => compiledUnsorted.includes(ext));
-    const compiledNodeDoesNotUnderstand = nodeDoesNotUnderstand.filter((ext) => compiled.includes(ext));
-    /**
-     * TS's resolver can resolve foo.js to foo.ts, by replacing .js extension with several source extensions.
-     * IMPORTANT: Must preserve ordering according to preferTsExts!
-     *            Must include the .js/.mjs/.cjs extension in the array!
-     *            This affects resolution behavior!
-     * [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS]
-     */
-    const r = allPossibleExtensionsSortedByPreference.filter((ext) => [...compiledUnsorted, '.js', '.mjs', '.cjs', '.mts', '.cts'].includes(ext));
-    const replacementsForJs = r.filter((ext) => ['.js', '.jsx', '.ts', '.tsx'].includes(ext));
-    const replacementsForJsx = r.filter((ext) => ['.jsx', '.tsx'].includes(ext));
-    const replacementsForMjs = r.filter((ext) => ['.mjs', '.mts'].includes(ext));
-    const replacementsForCjs = r.filter((ext) => ['.cjs', '.cts'].includes(ext));
-    const replacementsForJsOrMjs = r.filter((ext) => ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.mts'].includes(ext));
-    // Node allows omitting .js or .mjs extension in certain situations (CJS, ESM w/experimental flag)
-    // So anything that compiles to .js or .mjs can also be omitted.
-    const experimentalSpecifierResolutionAddsIfOmitted = Array.from(new Set([...replacementsForJsOrMjs, '.json', '.node']));
-    // Same as above, except node curiuosly doesn't do .mjs here
-    const legacyMainResolveAddsIfOmitted = Array.from(new Set([...replacementsForJs, '.json', '.node']));
-    return {
-        /** All file extensions we transform, ordered by resolution preference according to preferTsExts */
-        compiled,
-        /** Resolved extensions that vanilla node will not understand; we should handle them */
-        nodeDoesNotUnderstand,
-        /** Like the above, but only the ones we're compiling */
-        compiledNodeDoesNotUnderstand,
-        /**
-         * Mapping from extensions understood by tsc to the equivalent for node,
-         * as far as getFormat is concerned.
-         */
-        nodeEquivalents,
-        /**
-         * Mapping from extensions rejected by TSC in import specifiers, to the
-         * possible alternatives that TS's resolver will accept.
-         *
-         * When we allow users to opt-in to .ts extensions in import specifiers, TS's
-         * resolver requires us to replace the .ts extensions with .js alternatives.
-         * Otherwise, resolution fails.
-         *
-         * Note TS's resolver is only used by, and only required for, typechecking.
-         * This is separate from node's resolver, which we hook separately and which
-         * does not require this mapping.
-         */
-        tsResolverEquivalents,
-        /**
-         * Extensions that we can support if the user upgrades their typescript version.
-         * Used when raising hints.
-         */
-        requiresHigherTypescriptVersion,
-        /**
-         * --experimental-specifier-resolution=node will add these extensions.
-         */
-        experimentalSpecifierResolutionAddsIfOmitted,
-        /**
-         * ESM loader will add these extensions to package.json "main" field
-         */
-        legacyMainResolveAddsIfOmitted,
-        replacementsForMjs,
-        replacementsForCjs,
-        replacementsForJsx,
-        replacementsForJs,
-    };
-}
-exports.getExtensions = getExtensions;
-//# sourceMappingURL=file-extensions.js.map
 
-/***/ }),
+    var index = this._findSourceIndex(aSource);
+    if (index >= 0) {
+      return this.sourcesContent[index];
+    }
 
-/***/ 72719:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+    var relativeSource = aSource;
+    if (this.sourceRoot != null) {
+      relativeSource = util.relative(this.sourceRoot, relativeSource);
+    }
 
-"use strict";
+    var url;
+    if (this.sourceRoot != null
+        && (url = util.urlParse(this.sourceRoot))) {
+      // XXX: file:// URIs and absolute paths lead to unexpected behavior for
+      // many users. We can help them out when they expect file:// URIs to
+      // behave like it would if they were running a local HTTP server. See
+      // https://bugzilla.mozilla.org/show_bug.cgi?id=885597.
+      var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
+      if (url.scheme == "file"
+          && this._sources.has(fileUriAbsPath)) {
+        return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]
+      }
+
+      if ((!url.path || url.path == "/")
+          && this._sources.has("/" + relativeSource)) {
+        return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
+      }
+    }
+
+    // This function is used recursively from
+    // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we
+    // don't want to throw if we can't find the source - we just want to
+    // return null, so we provide a flag to exit gracefully.
+    if (nullOnMissing) {
+      return null;
+    }
+    else {
+      throw new Error('"' + relativeSource + '" is not in the SourceMap.');
+    }
+  };
 
-var _a, _b;
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.createEsmHooks = exports.createFromPreloadedConfig = exports.create = exports.register = exports.TSError = exports.DEFAULTS = exports.VERSION = exports.debug = exports.INSPECT_CUSTOM = exports.env = exports.REGISTER_INSTANCE = exports.createRepl = void 0;
-const path_1 = __nccwpck_require__(71017);
-const module_1 = __nccwpck_require__(98188);
-const util = __nccwpck_require__(73837);
-const url_1 = __nccwpck_require__(57310);
-const make_error_1 = __nccwpck_require__(21381);
-const util_1 = __nccwpck_require__(64745);
-const configuration_1 = __nccwpck_require__(29906);
-const module_type_classifier_1 = __nccwpck_require__(23922);
-const resolver_functions_1 = __nccwpck_require__(19148);
-const cjs_resolve_hooks_1 = __nccwpck_require__(64414);
-const node_module_type_classifier_1 = __nccwpck_require__(80812);
-const file_extensions_1 = __nccwpck_require__(5183);
-const ts_transpile_module_1 = __nccwpck_require__(4444);
-var repl_1 = __nccwpck_require__(10204);
-Object.defineProperty(exports, "createRepl", ({ enumerable: true, get: function () { return repl_1.createRepl; } }));
-/**
- * Does this version of node obey the package.json "type" field
- * and throw ERR_REQUIRE_ESM when attempting to require() an ESM modules.
- */
-const engineSupportsPackageTypeField = parseInt(process.versions.node.split('.')[0], 10) >= 12;
 /**
- * Assert that script can be loaded as CommonJS when we attempt to require it.
- * If it should be loaded as ESM, throw ERR_REQUIRE_ESM like node does.
+ * Returns the generated line and column information for the original source,
+ * line, and column positions provided. The only argument is an object with
+ * the following properties:
  *
- * Loaded conditionally so we don't need to support older node versions
+ *   - source: The filename of the original source.
+ *   - line: The line number in the original source.  The line number
+ *     is 1-based.
+ *   - column: The column number in the original source.  The column
+ *     number is 0-based.
+ *   - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
+ *     'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
+ *     closest element that is smaller than or greater than the one we are
+ *     searching for, respectively, if the exact element cannot be found.
+ *     Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
+ *
+ * and an object is returned with the following properties:
+ *
+ *   - line: The line number in the generated source, or null.  The
+ *     line number is 1-based.
+ *   - column: The column number in the generated source, or null.
+ *     The column number is 0-based.
  */
-let assertScriptCanLoadAsCJS = engineSupportsPackageTypeField
-    ? (__nccwpck_require__(51633).assertScriptCanLoadAsCJSImpl)
-    : () => {
-        /* noop */
+BasicSourceMapConsumer.prototype.generatedPositionFor =
+  function SourceMapConsumer_generatedPositionFor(aArgs) {
+    var source = util.getArg(aArgs, 'source');
+    source = this._findSourceIndex(source);
+    if (source < 0) {
+      return {
+        line: null,
+        column: null,
+        lastColumn: null
+      };
+    }
+
+    var needle = {
+      source: source,
+      originalLine: util.getArg(aArgs, 'line'),
+      originalColumn: util.getArg(aArgs, 'column')
+    };
+
+    var index = this._findMapping(
+      needle,
+      this._originalMappings,
+      "originalLine",
+      "originalColumn",
+      util.compareByOriginalPositions,
+      util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)
+    );
+
+    if (index >= 0) {
+      var mapping = this._originalMappings[index];
+
+      if (mapping.source === needle.source) {
+        return {
+          line: util.getArg(mapping, 'generatedLine', null),
+          column: util.getArg(mapping, 'generatedColumn', null),
+          lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
+        };
+      }
+    }
+
+    return {
+      line: null,
+      column: null,
+      lastColumn: null
     };
+  };
+
+__webpack_unused_export__ = BasicSourceMapConsumer;
+
 /**
- * Registered `ts-node` instance information.
+ * An IndexedSourceMapConsumer instance represents a parsed source map which
+ * we can query for information. It differs from BasicSourceMapConsumer in
+ * that it takes "indexed" source maps (i.e. ones with a "sections" field) as
+ * input.
+ *
+ * The first parameter is a raw source map (either as a JSON string, or already
+ * parsed to an object). According to the spec for indexed source maps, they
+ * have the following attributes:
+ *
+ *   - version: Which version of the source map spec this map is following.
+ *   - file: Optional. The generated file this source map is associated with.
+ *   - sections: A list of section definitions.
+ *
+ * Each value under the "sections" field has two fields:
+ *   - offset: The offset into the original specified at which this section
+ *       begins to apply, defined as an object with a "line" and "column"
+ *       field.
+ *   - map: A source map definition. This source map could also be indexed,
+ *       but doesn't have to be.
+ *
+ * Instead of the "map" field, it's also possible to have a "url" field
+ * specifying a URL to retrieve a source map from, but that's currently
+ * unsupported.
+ *
+ * Here's an example source map, taken from the source map spec[0], but
+ * modified to omit a section which uses the "url" field.
+ *
+ *  {
+ *    version : 3,
+ *    file: "app.js",
+ *    sections: [{
+ *      offset: {line:100, column:10},
+ *      map: {
+ *        version : 3,
+ *        file: "section.js",
+ *        sources: ["foo.js", "bar.js"],
+ *        names: ["src", "maps", "are", "fun"],
+ *        mappings: "AAAA,E;;ABCDE;"
+ *      }
+ *    }],
+ *  }
+ *
+ * The second parameter, if given, is a string whose value is the URL
+ * at which the source map was found.  This URL is used to compute the
+ * sources array.
+ *
+ * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt
  */
-exports.REGISTER_INSTANCE = Symbol.for('ts-node.register.instance');
-/** @internal */
-exports.env = process.env;
+function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
+  var sourceMap = aSourceMap;
+  if (typeof aSourceMap === 'string') {
+    sourceMap = util.parseSourceMapInput(aSourceMap);
+  }
+
+  var version = util.getArg(sourceMap, 'version');
+  var sections = util.getArg(sourceMap, 'sections');
+
+  if (version != this._version) {
+    throw new Error('Unsupported version: ' + version);
+  }
+
+  this._sources = new ArraySet();
+  this._names = new ArraySet();
+
+  var lastOffset = {
+    line: -1,
+    column: 0
+  };
+  this._sections = sections.map(function (s) {
+    if (s.url) {
+      // The url field will require support for asynchronicity.
+      // See https://github.com/mozilla/source-map/issues/16
+      throw new Error('Support for url field in sections not implemented.');
+    }
+    var offset = util.getArg(s, 'offset');
+    var offsetLine = util.getArg(offset, 'line');
+    var offsetColumn = util.getArg(offset, 'column');
+
+    if (offsetLine < lastOffset.line ||
+        (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) {
+      throw new Error('Section offsets must be ordered and non-overlapping.');
+    }
+    lastOffset = offset;
+
+    return {
+      generatedOffset: {
+        // The offset fields are 0-based, but we use 1-based indices when
+        // encoding/decoding from VLQ.
+        generatedLine: offsetLine + 1,
+        generatedColumn: offsetColumn + 1
+      },
+      consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL)
+    }
+  });
+}
+
+IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
+IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
+
 /**
- * @internal
+ * The version of the source mapping spec that we are consuming.
  */
-exports.INSPECT_CUSTOM = util.inspect.custom || 'inspect';
+IndexedSourceMapConsumer.prototype._version = 3;
+
 /**
- * Debugging `ts-node`.
+ * The list of original sources.
  */
-const shouldDebug = (0, util_1.yn)(exports.env.TS_NODE_DEBUG);
-/** @internal */
-exports.debug = shouldDebug
-    ? (...args) => console.log(`[ts-node ${new Date().toISOString()}]`, ...args)
-    : () => undefined;
-const debugFn = shouldDebug
-    ? (key, fn) => {
-        let i = 0;
-        return (x) => {
-            (0, exports.debug)(key, x, ++i);
-            return fn(x);
-        };
+Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', {
+  get: function () {
+    var sources = [];
+    for (var i = 0; i < this._sections.length; i++) {
+      for (var j = 0; j < this._sections[i].consumer.sources.length; j++) {
+        sources.push(this._sections[i].consumer.sources[j]);
+      }
     }
-    : (_, fn) => fn;
+    return sources;
+  }
+});
+
 /**
- * Export the current version.
+ * Returns the original source, line, and column information for the generated
+ * source's line and column positions provided. The only argument is an object
+ * with the following properties:
+ *
+ *   - line: The line number in the generated source.  The line number
+ *     is 1-based.
+ *   - column: The column number in the generated source.  The column
+ *     number is 0-based.
+ *
+ * and an object is returned with the following properties:
+ *
+ *   - source: The original source file, or null.
+ *   - line: The line number in the original source, or null.  The
+ *     line number is 1-based.
+ *   - column: The column number in the original source, or null.  The
+ *     column number is 0-based.
+ *   - name: The original identifier, or null.
  */
-exports.VERSION = __nccwpck_require__(46686).version;
+IndexedSourceMapConsumer.prototype.originalPositionFor =
+  function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
+    var needle = {
+      generatedLine: util.getArg(aArgs, 'line'),
+      generatedColumn: util.getArg(aArgs, 'column')
+    };
+
+    // Find the section containing the generated position we're trying to map
+    // to an original position.
+    var sectionIndex = binarySearch.search(needle, this._sections,
+      function(needle, section) {
+        var cmp = needle.generatedLine - section.generatedOffset.generatedLine;
+        if (cmp) {
+          return cmp;
+        }
+
+        return (needle.generatedColumn -
+                section.generatedOffset.generatedColumn);
+      });
+    var section = this._sections[sectionIndex];
+
+    if (!section) {
+      return {
+        source: null,
+        line: null,
+        column: null,
+        name: null
+      };
+    }
+
+    return section.consumer.originalPositionFor({
+      line: needle.generatedLine -
+        (section.generatedOffset.generatedLine - 1),
+      column: needle.generatedColumn -
+        (section.generatedOffset.generatedLine === needle.generatedLine
+         ? section.generatedOffset.generatedColumn - 1
+         : 0),
+      bias: aArgs.bias
+    });
+  };
+
 /**
- * Default register options, including values specified via environment
- * variables.
- * @internal
+ * Return true if we have the source content for every source in the source
+ * map, false otherwise.
  */
-exports.DEFAULTS = {
-    cwd: (_a = exports.env.TS_NODE_CWD) !== null && _a !== void 0 ? _a : exports.env.TS_NODE_DIR,
-    emit: (0, util_1.yn)(exports.env.TS_NODE_EMIT),
-    scope: (0, util_1.yn)(exports.env.TS_NODE_SCOPE),
-    scopeDir: exports.env.TS_NODE_SCOPE_DIR,
-    files: (0, util_1.yn)(exports.env.TS_NODE_FILES),
-    pretty: (0, util_1.yn)(exports.env.TS_NODE_PRETTY),
-    compiler: exports.env.TS_NODE_COMPILER,
-    compilerOptions: (0, util_1.parse)(exports.env.TS_NODE_COMPILER_OPTIONS),
-    ignore: (0, util_1.split)(exports.env.TS_NODE_IGNORE),
-    project: exports.env.TS_NODE_PROJECT,
-    skipProject: (0, util_1.yn)(exports.env.TS_NODE_SKIP_PROJECT),
-    skipIgnore: (0, util_1.yn)(exports.env.TS_NODE_SKIP_IGNORE),
-    preferTsExts: (0, util_1.yn)(exports.env.TS_NODE_PREFER_TS_EXTS),
-    ignoreDiagnostics: (0, util_1.split)(exports.env.TS_NODE_IGNORE_DIAGNOSTICS),
-    transpileOnly: (0, util_1.yn)(exports.env.TS_NODE_TRANSPILE_ONLY),
-    typeCheck: (0, util_1.yn)(exports.env.TS_NODE_TYPE_CHECK),
-    compilerHost: (0, util_1.yn)(exports.env.TS_NODE_COMPILER_HOST),
-    logError: (0, util_1.yn)(exports.env.TS_NODE_LOG_ERROR),
-    experimentalReplAwait: (_b = (0, util_1.yn)(exports.env.TS_NODE_EXPERIMENTAL_REPL_AWAIT)) !== null && _b !== void 0 ? _b : undefined,
-    tsTrace: console.log.bind(console),
-};
+IndexedSourceMapConsumer.prototype.hasContentsOfAllSources =
+  function IndexedSourceMapConsumer_hasContentsOfAllSources() {
+    return this._sections.every(function (s) {
+      return s.consumer.hasContentsOfAllSources();
+    });
+  };
+
 /**
- * TypeScript diagnostics error.
+ * Returns the original source content. The only argument is the url of the
+ * original source file. Returns null if no original source content is
+ * available.
  */
-class TSError extends make_error_1.BaseError {
-    constructor(diagnosticText, diagnosticCodes, diagnostics = []) {
-        super(`⨯ Unable to compile TypeScript:\n${diagnosticText}`);
-        this.diagnosticCodes = diagnosticCodes;
-        this.name = 'TSError';
-        Object.defineProperty(this, 'diagnosticText', {
-            configurable: true,
-            writable: true,
-            value: diagnosticText,
-        });
-        Object.defineProperty(this, 'diagnostics', {
-            configurable: true,
-            writable: true,
-            value: diagnostics,
-        });
+IndexedSourceMapConsumer.prototype.sourceContentFor =
+  function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
+    for (var i = 0; i < this._sections.length; i++) {
+      var section = this._sections[i];
+
+      var content = section.consumer.sourceContentFor(aSource, true);
+      if (content) {
+        return content;
+      }
     }
-    /**
-     * @internal
-     */
-    [exports.INSPECT_CUSTOM]() {
-        return this.diagnosticText;
+    if (nullOnMissing) {
+      return null;
     }
-}
-exports.TSError = TSError;
-const TS_NODE_SERVICE_BRAND = Symbol('TS_NODE_SERVICE_BRAND');
-function register(serviceOrOpts) {
-    // Is this a Service or a RegisterOptions?
-    let service = serviceOrOpts;
-    if (!(serviceOrOpts === null || serviceOrOpts === void 0 ? void 0 : serviceOrOpts[TS_NODE_SERVICE_BRAND])) {
-        // Not a service; is options
-        service = create((serviceOrOpts !== null && serviceOrOpts !== void 0 ? serviceOrOpts : {}));
+    else {
+      throw new Error('"' + aSource + '" is not in the SourceMap.');
     }
-    const originalJsHandler = require.extensions['.js'];
-    // Expose registered instance globally.
-    process[exports.REGISTER_INSTANCE] = service;
-    // Register the extensions.
-    registerExtensions(service.options.preferTsExts, service.extensions.compiled, service, originalJsHandler);
-    (0, cjs_resolve_hooks_1.installCommonjsResolveHooksIfNecessary)(service);
-    // Require specified modules before start-up.
-    module_1.Module._preloadModules(service.options.require);
-    return service;
-}
-exports.register = register;
+  };
+
 /**
- * Create TypeScript compiler instance.
+ * Returns the generated line and column information for the original source,
+ * line, and column positions provided. The only argument is an object with
+ * the following properties:
  *
- * @category Basic
+ *   - source: The filename of the original source.
+ *   - line: The line number in the original source.  The line number
+ *     is 1-based.
+ *   - column: The column number in the original source.  The column
+ *     number is 0-based.
+ *
+ * and an object is returned with the following properties:
+ *
+ *   - line: The line number in the generated source, or null.  The
+ *     line number is 1-based. 
+ *   - column: The column number in the generated source, or null.
+ *     The column number is 0-based.
  */
-function create(rawOptions = {}) {
-    const foundConfigResult = (0, configuration_1.findAndReadConfig)(rawOptions);
-    return createFromPreloadedConfig(foundConfigResult);
-}
-exports.create = create;
-/** @internal */
-function createFromPreloadedConfig(foundConfigResult) {
-    var _a, _b, _c, _d;
-    const { configFilePath, cwd, options, config, compiler, projectLocalResolveDir, optionBasePaths, } = foundConfigResult;
-    const projectLocalResolveHelper = (0, util_1.createProjectLocalResolveHelper)(projectLocalResolveDir);
-    const ts = (0, configuration_1.loadCompiler)(compiler);
-    // Experimental REPL await is not compatible targets lower than ES2018
-    const targetSupportsTla = config.options.target >= ts.ScriptTarget.ES2018;
-    if (options.experimentalReplAwait === true && !targetSupportsTla) {
-        throw new Error('Experimental REPL await is not compatible with targets lower than ES2018');
-    }
-    // Top-level await was added in TS 3.8
-    const tsVersionSupportsTla = (0, util_1.versionGteLt)(ts.version, '3.8.0');
-    if (options.experimentalReplAwait === true && !tsVersionSupportsTla) {
-        throw new Error('Experimental REPL await is not compatible with TypeScript versions older than 3.8');
+IndexedSourceMapConsumer.prototype.generatedPositionFor =
+  function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
+    for (var i = 0; i < this._sections.length; i++) {
+      var section = this._sections[i];
+
+      // Only consider this section if the requested source is in the list of
+      // sources of the consumer.
+      if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) {
+        continue;
+      }
+      var generatedPosition = section.consumer.generatedPositionFor(aArgs);
+      if (generatedPosition) {
+        var ret = {
+          line: generatedPosition.line +
+            (section.generatedOffset.generatedLine - 1),
+          column: generatedPosition.column +
+            (section.generatedOffset.generatedLine === generatedPosition.line
+             ? section.generatedOffset.generatedColumn - 1
+             : 0)
+        };
+        return ret;
+      }
     }
-    const shouldReplAwait = options.experimentalReplAwait !== false &&
-        tsVersionSupportsTla &&
-        targetSupportsTla;
-    // swc implies two other options
-    // typeCheck option was implemented specifically to allow overriding tsconfig transpileOnly from the command-line
-    // So we should allow using typeCheck to override swc
-    if (options.swc && !options.typeCheck) {
-        if (options.transpileOnly === false) {
-            throw new Error("Cannot enable 'swc' option with 'transpileOnly: false'.  'swc' implies 'transpileOnly'.");
+
+    return {
+      line: null,
+      column: null
+    };
+  };
+
+/**
+ * Parse the mappings in a string in to a data structure which we can easily
+ * query (the ordered arrays in the `this.__generatedMappings` and
+ * `this.__originalMappings` properties).
+ */
+IndexedSourceMapConsumer.prototype._parseMappings =
+  function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
+    this.__generatedMappings = [];
+    this.__originalMappings = [];
+    for (var i = 0; i < this._sections.length; i++) {
+      var section = this._sections[i];
+      var sectionMappings = section.consumer._generatedMappings;
+      for (var j = 0; j < sectionMappings.length; j++) {
+        var mapping = sectionMappings[j];
+
+        var source = section.consumer._sources.at(mapping.source);
+        source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
+        this._sources.add(source);
+        source = this._sources.indexOf(source);
+
+        var name = null;
+        if (mapping.name) {
+          name = section.consumer._names.at(mapping.name);
+          this._names.add(name);
+          name = this._names.indexOf(name);
         }
-        if (options.transpiler) {
-            throw new Error("Cannot specify both 'swc' and 'transpiler' options.  'swc' uses the built-in swc transpiler.");
+
+        // The mappings coming from the consumer for the section have
+        // generated positions relative to the start of the section, so we
+        // need to offset them to be relative to the start of the concatenated
+        // generated file.
+        var adjustedMapping = {
+          source: source,
+          generatedLine: mapping.generatedLine +
+            (section.generatedOffset.generatedLine - 1),
+          generatedColumn: mapping.generatedColumn +
+            (section.generatedOffset.generatedLine === mapping.generatedLine
+            ? section.generatedOffset.generatedColumn - 1
+            : 0),
+          originalLine: mapping.originalLine,
+          originalColumn: mapping.originalColumn,
+          name: name
+        };
+
+        this.__generatedMappings.push(adjustedMapping);
+        if (typeof adjustedMapping.originalLine === 'number') {
+          this.__originalMappings.push(adjustedMapping);
         }
+      }
     }
-    const readFile = options.readFile || ts.sys.readFile;
-    const fileExists = options.fileExists || ts.sys.fileExists;
-    // typeCheck can override transpileOnly, useful for CLI flag to override config file
-    const transpileOnly = (options.transpileOnly === true || options.swc === true) &&
-        options.typeCheck !== true;
-    let transpiler = undefined;
-    let transpilerBasePath = undefined;
-    if (options.transpiler) {
-        transpiler = options.transpiler;
-        transpilerBasePath = optionBasePaths.transpiler;
-    }
-    else if (options.swc) {
-        transpiler = __nccwpck_require__.ab + "swc.js";
-        transpilerBasePath = optionBasePaths.swc;
-    }
-    const transformers = options.transformers || undefined;
-    const diagnosticFilters = [
-        {
-            appliesToAllFiles: true,
-            filenamesAbsolute: [],
-            diagnosticsIgnored: [
-                6059,
-                18002,
-                18003,
-                ...(options.experimentalTsImportSpecifiers
-                    ? [
-                        2691, // "An import path cannot end with a '.ts' extension. Consider importing '' instead."
-                    ]
-                    : []),
-                ...(options.ignoreDiagnostics || []),
-            ].map(Number),
-        },
-    ];
-    const configDiagnosticList = filterDiagnostics(config.errors, diagnosticFilters);
-    const outputCache = new Map();
-    const configFileDirname = configFilePath ? (0, path_1.dirname)(configFilePath) : null;
-    const scopeDir = (_c = (_b = (_a = options.scopeDir) !== null && _a !== void 0 ? _a : config.options.rootDir) !== null && _b !== void 0 ? _b : configFileDirname) !== null && _c !== void 0 ? _c : cwd;
-    const ignoreBaseDir = configFileDirname !== null && configFileDirname !== void 0 ? configFileDirname : cwd;
-    const isScoped = options.scope
-        ? (fileName) => (0, path_1.relative)(scopeDir, fileName).charAt(0) !== '.'
-        : () => true;
-    const shouldIgnore = createIgnore(ignoreBaseDir, options.skipIgnore
-        ? []
-        : (options.ignore || ['(?:^|/)node_modules/']).map((str) => new RegExp(str)));
-    const diagnosticHost = {
-        getNewLine: () => ts.sys.newLine,
-        getCurrentDirectory: () => cwd,
-        // TODO switch to getCanonicalFileName we already create later in scope
-        getCanonicalFileName: ts.sys.useCaseSensitiveFileNames
-            ? (x) => x
-            : (x) => x.toLowerCase(),
-    };
-    if (options.transpileOnly && typeof transformers === 'function') {
-        throw new TypeError('Transformers function is unavailable in "--transpile-only"');
-    }
-    let createTranspiler = initializeTranspilerFactory();
-    function initializeTranspilerFactory() {
-        var _a;
-        if (__nccwpck_require__.ab + "swc.js") {
-            if (!transpileOnly)
-                throw new Error('Custom transpiler can only be used when transpileOnly is enabled.');
-            const transpilerName = typeof transpiler === 'string' ? transpiler : transpiler[0];
-            const transpilerOptions = typeof transpiler === 'string' ? {} : (_a = transpiler[1]) !== null && _a !== void 0 ? _a : {};
-            const transpilerConfigLocalResolveHelper = transpilerBasePath
-                ? (0, util_1.createProjectLocalResolveHelper)(transpilerBasePath)
-                : projectLocalResolveHelper;
-            const transpilerPath = transpilerConfigLocalResolveHelper(transpilerName, true);
-            const transpilerFactory = __nccwpck_require__(3833)(transpilerPath)
-                .create;
-            return createTranspiler;
-            function createTranspiler(compilerOptions, nodeModuleEmitKind) {
-                return transpilerFactory === null || transpilerFactory === void 0 ? void 0 : transpilerFactory({
-                    service: {
-                        options,
-                        config: {
-                            ...config,
-                            options: compilerOptions,
-                        },
-                        projectLocalResolveHelper,
-                    },
-                    transpilerConfigLocalResolveHelper,
-                    nodeModuleEmitKind,
-                    ...transpilerOptions,
-                });
-            }
-        }
-    }
-    /**
-     * True if require() hooks should interop with experimental ESM loader.
-     * Enabled explicitly via a flag since it is a breaking change.
-     */
-    let experimentalEsmLoader = false;
-    function enableExperimentalEsmLoaderInterop() {
-        experimentalEsmLoader = true;
-    }
-    // Install source map support and read from memory cache.
-    installSourceMapSupport();
-    function installSourceMapSupport() {
-        const sourceMapSupport = __nccwpck_require__(99964);
-        sourceMapSupport.install({
-            environment: 'node',
-            retrieveFile(pathOrUrl) {
-                var _a;
-                let path = pathOrUrl;
-                // If it's a file URL, convert to local path
-                // Note: fileURLToPath does not exist on early node v10
-                // I could not find a way to handle non-URLs except to swallow an error
-                if (experimentalEsmLoader && path.startsWith('file://')) {
-                    try {
-                        path = (0, url_1.fileURLToPath)(path);
-                    }
-                    catch (e) {
-                        /* swallow error */
-                    }
-                }
-                path = (0, util_1.normalizeSlashes)(path);
-                return ((_a = outputCache.get(path)) === null || _a === void 0 ? void 0 : _a.content) || '';
-            },
-            redirectConflictingLibrary: true,
-            onConflictingLibraryRedirect(request, parent, isMain, options, redirectedRequest) {
-                (0, exports.debug)(`Redirected an attempt to require source-map-support to instead receive @cspotcode/source-map-support.  "${parent.filename}" attempted to require or resolve "${request}" and was redirected to "${redirectedRequest}".`);
-            },
-        });
-    }
-    const shouldHavePrettyErrors = options.pretty === undefined ? process.stdout.isTTY : options.pretty;
-    const formatDiagnostics = shouldHavePrettyErrors
-        ? ts.formatDiagnosticsWithColorAndContext || ts.formatDiagnostics
-        : ts.formatDiagnostics;
-    function createTSError(diagnostics) {
-        const diagnosticText = formatDiagnostics(diagnostics, diagnosticHost);
-        const diagnosticCodes = diagnostics.map((x) => x.code);
-        return new TSError(diagnosticText, diagnosticCodes, diagnostics);
-    }
-    function reportTSError(configDiagnosticList) {
-        const error = createTSError(configDiagnosticList);
-        if (options.logError) {
-            // Print error in red color and continue execution.
-            console.error('\x1b[31m%s\x1b[0m', error);
-        }
-        else {
-            // Throw error and exit the script.
-            throw error;
-        }
-    }
-    // Render the configuration errors.
-    if (configDiagnosticList.length)
-        reportTSError(configDiagnosticList);
-    const jsxEmitPreserve = config.options.jsx === ts.JsxEmit.Preserve;
-    /**
-     * Get the extension for a transpiled file.
-     * [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS]
-     */
-    function getEmitExtension(path) {
-        const lastDotIndex = path.lastIndexOf('.');
-        if (lastDotIndex >= 0) {
-            const ext = path.slice(lastDotIndex);
-            switch (ext) {
-                case '.js':
-                case '.ts':
-                    return '.js';
-                case '.jsx':
-                case '.tsx':
-                    return jsxEmitPreserve ? '.jsx' : '.js';
-                case '.mjs':
-                case '.mts':
-                    return '.mjs';
-                case '.cjs':
-                case '.cts':
-                    return '.cjs';
-            }
-        }
-        return '.js';
-    }
-    /**
-     * Get output from TS compiler w/typechecking.  `undefined` in `transpileOnly`
-     * mode.
-     */
-    let getOutput;
-    let getTypeInfo;
-    const getCanonicalFileName = ts.createGetCanonicalFileName(ts.sys.useCaseSensitiveFileNames);
-    const moduleTypeClassifier = (0, module_type_classifier_1.createModuleTypeClassifier)({
-        basePath: (_d = options.optionBasePaths) === null || _d === void 0 ? void 0 : _d.moduleTypes,
-        patterns: options.moduleTypes,
-    });
-    const extensions = (0, file_extensions_1.getExtensions)(config, options, ts.version);
-    // Use full language services when the fast option is disabled.
-    if (!transpileOnly) {
-        const fileContents = new Map();
-        const rootFileNames = new Set(config.fileNames);
-        const cachedReadFile = (0, util_1.cachedLookup)(debugFn('readFile', readFile));
-        // Use language services by default
-        if (!options.compilerHost) {
-            let projectVersion = 1;
-            const fileVersions = new Map(Array.from(rootFileNames).map((fileName) => [fileName, 0]));
-            const getCustomTransformers = () => {
-                if (typeof transformers === 'function') {
-                    const program = service.getProgram();
-                    return program ? transformers(program) : undefined;
-                }
-                return transformers;
-            };
-            // Create the compiler host for type checking.
-            const serviceHost = {
-                getProjectVersion: () => String(projectVersion),
-                getScriptFileNames: () => Array.from(rootFileNames),
-                getScriptVersion: (fileName) => {
-                    const version = fileVersions.get(fileName);
-                    return version ? version.toString() : '';
-                },
-                getScriptSnapshot(fileName) {
-                    // TODO ordering of this with getScriptVersion?  Should they sync up?
-                    let contents = fileContents.get(fileName);
-                    // Read contents into TypeScript memory cache.
-                    if (contents === undefined) {
-                        contents = cachedReadFile(fileName);
-                        if (contents === undefined)
-                            return;
-                        fileVersions.set(fileName, 1);
-                        fileContents.set(fileName, contents);
-                        projectVersion++;
-                    }
-                    return ts.ScriptSnapshot.fromString(contents);
-                },
-                readFile: cachedReadFile,
-                readDirectory: ts.sys.readDirectory,
-                getDirectories: (0, util_1.cachedLookup)(debugFn('getDirectories', ts.sys.getDirectories)),
-                fileExists: (0, util_1.cachedLookup)(debugFn('fileExists', fileExists)),
-                directoryExists: (0, util_1.cachedLookup)(debugFn('directoryExists', ts.sys.directoryExists)),
-                realpath: ts.sys.realpath
-                    ? (0, util_1.cachedLookup)(debugFn('realpath', ts.sys.realpath))
-                    : undefined,
-                getNewLine: () => ts.sys.newLine,
-                useCaseSensitiveFileNames: () => ts.sys.useCaseSensitiveFileNames,
-                getCurrentDirectory: () => cwd,
-                getCompilationSettings: () => config.options,
-                getDefaultLibFileName: () => ts.getDefaultLibFilePath(config.options),
-                getCustomTransformers: getCustomTransformers,
-                trace: options.tsTrace,
-            };
-            const { resolveModuleNames, getResolvedModuleWithFailedLookupLocationsFromCache, resolveTypeReferenceDirectives, isFileKnownToBeInternal, markBucketOfFilenameInternal, } = (0, resolver_functions_1.createResolverFunctions)({
-                host: serviceHost,
-                getCanonicalFileName,
-                ts,
-                cwd,
-                config,
-                projectLocalResolveHelper,
-                options,
-                extensions,
-            });
-            serviceHost.resolveModuleNames = resolveModuleNames;
-            serviceHost.getResolvedModuleWithFailedLookupLocationsFromCache =
-                getResolvedModuleWithFailedLookupLocationsFromCache;
-            serviceHost.resolveTypeReferenceDirectives =
-                resolveTypeReferenceDirectives;
-            const registry = ts.createDocumentRegistry(ts.sys.useCaseSensitiveFileNames, cwd);
-            const service = ts.createLanguageService(serviceHost, registry);
-            const updateMemoryCache = (contents, fileName) => {
-                // Add to `rootFiles` as necessary, either to make TS include a file it has not seen,
-                // or to trigger a re-classification of files from external to internal.
-                if (!rootFileNames.has(fileName) &&
-                    !isFileKnownToBeInternal(fileName)) {
-                    markBucketOfFilenameInternal(fileName);
-                    rootFileNames.add(fileName);
-                    // Increment project version for every change to rootFileNames.
-                    projectVersion++;
-                }
-                const previousVersion = fileVersions.get(fileName) || 0;
-                const previousContents = fileContents.get(fileName);
-                // Avoid incrementing cache when nothing has changed.
-                if (contents !== previousContents) {
-                    fileVersions.set(fileName, previousVersion + 1);
-                    fileContents.set(fileName, contents);
-                    // Increment project version for every file change.
-                    projectVersion++;
-                }
-            };
-            let previousProgram = undefined;
-            getOutput = (code, fileName) => {
-                updateMemoryCache(code, fileName);
-                const programBefore = service.getProgram();
-                if (programBefore !== previousProgram) {
-                    (0, exports.debug)(`compiler rebuilt Program instance when getting output for ${fileName}`);
-                }
-                const output = service.getEmitOutput(fileName);
-                // Get the relevant diagnostics - this is 3x faster than `getPreEmitDiagnostics`.
-                const diagnostics = service
-                    .getSemanticDiagnostics(fileName)
-                    .concat(service.getSyntacticDiagnostics(fileName));
-                const programAfter = service.getProgram();
-                (0, exports.debug)('invariant: Is service.getProject() identical before and after getting emit output and diagnostics? (should always be true) ', programBefore === programAfter);
-                previousProgram = programAfter;
-                const diagnosticList = filterDiagnostics(diagnostics, diagnosticFilters);
-                if (diagnosticList.length)
-                    reportTSError(diagnosticList);
-                if (output.emitSkipped) {
-                    return [undefined, undefined, true];
-                }
-                // Throw an error when requiring `.d.ts` files.
-                if (output.outputFiles.length === 0) {
-                    throw new TypeError(`Unable to require file: ${(0, path_1.relative)(cwd, fileName)}\n` +
-                        'This is usually the result of a faulty configuration or import. ' +
-                        'Make sure there is a `.js`, `.json` or other executable extension with ' +
-                        'loader attached before `ts-node` available.');
-                }
-                return [output.outputFiles[1].text, output.outputFiles[0].text, false];
-            };
-            getTypeInfo = (code, fileName, position) => {
-                const normalizedFileName = (0, util_1.normalizeSlashes)(fileName);
-                updateMemoryCache(code, normalizedFileName);
-                const info = service.getQuickInfoAtPosition(normalizedFileName, position);
-                const name = ts.displayPartsToString(info ? info.displayParts : []);
-                const comment = ts.displayPartsToString(info ? info.documentation : []);
-                return { name, comment };
-            };
-        }
-        else {
-            const sys = {
-                ...ts.sys,
-                ...diagnosticHost,
-                readFile: (fileName) => {
-                    const cacheContents = fileContents.get(fileName);
-                    if (cacheContents !== undefined)
-                        return cacheContents;
-                    const contents = cachedReadFile(fileName);
-                    if (contents)
-                        fileContents.set(fileName, contents);
-                    return contents;
-                },
-                readDirectory: ts.sys.readDirectory,
-                getDirectories: (0, util_1.cachedLookup)(debugFn('getDirectories', ts.sys.getDirectories)),
-                fileExists: (0, util_1.cachedLookup)(debugFn('fileExists', fileExists)),
-                directoryExists: (0, util_1.cachedLookup)(debugFn('directoryExists', ts.sys.directoryExists)),
-                resolvePath: (0, util_1.cachedLookup)(debugFn('resolvePath', ts.sys.resolvePath)),
-                realpath: ts.sys.realpath
-                    ? (0, util_1.cachedLookup)(debugFn('realpath', ts.sys.realpath))
-                    : undefined,
-            };
-            const host = ts.createIncrementalCompilerHost
-                ? ts.createIncrementalCompilerHost(config.options, sys)
-                : {
-                    ...sys,
-                    getSourceFile: (fileName, languageVersion) => {
-                        const contents = sys.readFile(fileName);
-                        if (contents === undefined)
-                            return;
-                        return ts.createSourceFile(fileName, contents, languageVersion);
-                    },
-                    getDefaultLibLocation: () => (0, util_1.normalizeSlashes)((0, path_1.dirname)(compiler)),
-                    getDefaultLibFileName: () => (0, util_1.normalizeSlashes)((0, path_1.join)((0, path_1.dirname)(compiler), ts.getDefaultLibFileName(config.options))),
-                    useCaseSensitiveFileNames: () => sys.useCaseSensitiveFileNames,
-                };
-            host.trace = options.tsTrace;
-            const { resolveModuleNames, resolveTypeReferenceDirectives, isFileKnownToBeInternal, markBucketOfFilenameInternal, } = (0, resolver_functions_1.createResolverFunctions)({
-                host,
-                cwd,
-                config,
-                ts,
-                getCanonicalFileName,
-                projectLocalResolveHelper,
-                options,
-                extensions,
-            });
-            host.resolveModuleNames = resolveModuleNames;
-            host.resolveTypeReferenceDirectives = resolveTypeReferenceDirectives;
-            // Fallback for older TypeScript releases without incremental API.
-            let builderProgram = ts.createIncrementalProgram
-                ? ts.createIncrementalProgram({
-                    rootNames: Array.from(rootFileNames),
-                    options: config.options,
-                    host,
-                    configFileParsingDiagnostics: config.errors,
-                    projectReferences: config.projectReferences,
-                })
-                : ts.createEmitAndSemanticDiagnosticsBuilderProgram(Array.from(rootFileNames), config.options, host, undefined, config.errors, config.projectReferences);
-            // Read and cache custom transformers.
-            const customTransformers = typeof transformers === 'function'
-                ? transformers(builderProgram.getProgram())
-                : transformers;
-            // Set the file contents into cache manually.
-            const updateMemoryCache = (contents, fileName) => {
-                const previousContents = fileContents.get(fileName);
-                const contentsChanged = previousContents !== contents;
-                if (contentsChanged) {
-                    fileContents.set(fileName, contents);
-                }
-                // Add to `rootFiles` when discovered by compiler for the first time.
-                let addedToRootFileNames = false;
-                if (!rootFileNames.has(fileName) &&
-                    !isFileKnownToBeInternal(fileName)) {
-                    markBucketOfFilenameInternal(fileName);
-                    rootFileNames.add(fileName);
-                    addedToRootFileNames = true;
-                }
-                // Update program when file changes.
-                if (addedToRootFileNames || contentsChanged) {
-                    builderProgram = ts.createEmitAndSemanticDiagnosticsBuilderProgram(Array.from(rootFileNames), config.options, host, builderProgram, config.errors, config.projectReferences);
-                }
-            };
-            getOutput = (code, fileName) => {
-                let outText = '';
-                let outMap = '';
-                updateMemoryCache(code, fileName);
-                const sourceFile = builderProgram.getSourceFile(fileName);
-                if (!sourceFile)
-                    throw new TypeError(`Unable to read file: ${fileName}`);
-                const program = builderProgram.getProgram();
-                const diagnostics = ts.getPreEmitDiagnostics(program, sourceFile);
-                const diagnosticList = filterDiagnostics(diagnostics, diagnosticFilters);
-                if (diagnosticList.length)
-                    reportTSError(diagnosticList);
-                const result = builderProgram.emit(sourceFile, (path, file, writeByteOrderMark) => {
-                    if (path.endsWith('.map')) {
-                        outMap = file;
-                    }
-                    else {
-                        outText = file;
-                    }
-                    if (options.emit)
-                        sys.writeFile(path, file, writeByteOrderMark);
-                }, undefined, undefined, customTransformers);
-                if (result.emitSkipped) {
-                    return [undefined, undefined, true];
-                }
-                // Throw an error when requiring files that cannot be compiled.
-                if (outText === '') {
-                    if (program.isSourceFileFromExternalLibrary(sourceFile)) {
-                        throw new TypeError(`Unable to compile file from external library: ${(0, path_1.relative)(cwd, fileName)}`);
-                    }
-                    throw new TypeError(`Unable to require file: ${(0, path_1.relative)(cwd, fileName)}\n` +
-                        'This is usually the result of a faulty configuration or import. ' +
-                        'Make sure there is a `.js`, `.json` or other executable extension with ' +
-                        'loader attached before `ts-node` available.');
-                }
-                return [outText, outMap, false];
-            };
-            getTypeInfo = (code, fileName, position) => {
-                const normalizedFileName = (0, util_1.normalizeSlashes)(fileName);
-                updateMemoryCache(code, normalizedFileName);
-                const sourceFile = builderProgram.getSourceFile(normalizedFileName);
-                if (!sourceFile)
-                    throw new TypeError(`Unable to read file: ${fileName}`);
-                const node = getTokenAtPosition(ts, sourceFile, position);
-                const checker = builderProgram.getProgram().getTypeChecker();
-                const symbol = checker.getSymbolAtLocation(node);
-                if (!symbol)
-                    return { name: '', comment: '' };
-                const type = checker.getTypeOfSymbolAtLocation(symbol, node);
-                const signatures = [
-                    ...type.getConstructSignatures(),
-                    ...type.getCallSignatures(),
-                ];
-                return {
-                    name: signatures.length
-                        ? signatures.map((x) => checker.signatureToString(x)).join('\n')
-                        : checker.typeToString(type),
-                    comment: ts.displayPartsToString(symbol ? symbol.getDocumentationComment(checker) : []),
-                };
-            };
-            // Write `.tsbuildinfo` when `--build` is enabled.
-            if (options.emit && config.options.incremental) {
-                process.on('exit', () => {
-                    // Emits `.tsbuildinfo` to filesystem.
-                    builderProgram.getProgram().emitBuildInfo();
-                });
-            }
-        }
-    }
-    else {
-        getTypeInfo = () => {
-            throw new TypeError('Type information is unavailable in "--transpile-only"');
-        };
-    }
-    function createTranspileOnlyGetOutputFunction(overrideModuleType, nodeModuleEmitKind) {
-        const compilerOptions = { ...config.options };
-        if (overrideModuleType !== undefined)
-            compilerOptions.module = overrideModuleType;
-        let customTranspiler = createTranspiler === null || createTranspiler === void 0 ? void 0 : createTranspiler(compilerOptions, nodeModuleEmitKind);
-        let tsTranspileModule = (0, util_1.versionGteLt)(ts.version, '4.7.0')
-            ? (0, ts_transpile_module_1.createTsTranspileModule)(ts, {
-                compilerOptions,
-                reportDiagnostics: true,
-                transformers: transformers,
-            })
-            : undefined;
-        return (code, fileName) => {
-            let result;
-            if (customTranspiler) {
-                result = customTranspiler.transpile(code, {
-                    fileName,
-                });
-            }
-            else if (tsTranspileModule) {
-                result = tsTranspileModule(code, {
-                    fileName,
-                }, nodeModuleEmitKind === 'nodeesm' ? 'module' : 'commonjs');
-            }
-            else {
-                result = ts.transpileModule(code, {
-                    fileName,
-                    compilerOptions,
-                    reportDiagnostics: true,
-                    transformers: transformers,
-                });
-            }
-            const diagnosticList = filterDiagnostics(result.diagnostics || [], diagnosticFilters);
-            if (diagnosticList.length)
-                reportTSError(diagnosticList);
-            return [result.outputText, result.sourceMapText, false];
-        };
-    }
-    // When true, these mean that a `moduleType` override will cause a different emit
-    // than the TypeScript compiler, so we *must* overwrite the emit.
-    const shouldOverwriteEmitWhenForcingCommonJS = config.options.module !== ts.ModuleKind.CommonJS;
-    // [MUST_UPDATE_FOR_NEW_MODULEKIND]
-    const shouldOverwriteEmitWhenForcingEsm = !(config.options.module === ts.ModuleKind.ES2015 ||
-        (ts.ModuleKind.ES2020 && config.options.module === ts.ModuleKind.ES2020) ||
-        (ts.ModuleKind.ES2022 && config.options.module === ts.ModuleKind.ES2022) ||
-        config.options.module === ts.ModuleKind.ESNext);
-    /**
-     * node16 or nodenext
-     * [MUST_UPDATE_FOR_NEW_MODULEKIND]
-     */
-    const isNodeModuleType = (ts.ModuleKind.Node16 && config.options.module === ts.ModuleKind.Node16) ||
-        (ts.ModuleKind.NodeNext &&
-            config.options.module === ts.ModuleKind.NodeNext);
-    const getOutputForceCommonJS = createTranspileOnlyGetOutputFunction(ts.ModuleKind.CommonJS);
-    const getOutputForceNodeCommonJS = createTranspileOnlyGetOutputFunction(ts.ModuleKind.NodeNext, 'nodecjs');
-    const getOutputForceNodeESM = createTranspileOnlyGetOutputFunction(ts.ModuleKind.NodeNext, 'nodeesm');
-    // [MUST_UPDATE_FOR_NEW_MODULEKIND]
-    const getOutputForceESM = createTranspileOnlyGetOutputFunction(ts.ModuleKind.ES2022 || ts.ModuleKind.ES2020 || ts.ModuleKind.ES2015);
-    const getOutputTranspileOnly = createTranspileOnlyGetOutputFunction();
-    // Create a simple TypeScript compiler proxy.
-    function compile(code, fileName, lineOffset = 0) {
-        const normalizedFileName = (0, util_1.normalizeSlashes)(fileName);
-        const classification = moduleTypeClassifier.classifyModuleByModuleTypeOverrides(normalizedFileName);
-        let value = '';
-        let sourceMap = '';
-        let emitSkipped = true;
-        if (getOutput) {
-            // Must always call normal getOutput to throw typechecking errors
-            [value, sourceMap, emitSkipped] = getOutput(code, normalizedFileName);
-        }
-        // If module classification contradicts the above, call the relevant transpiler
-        if (classification.moduleType === 'cjs' &&
-            (shouldOverwriteEmitWhenForcingCommonJS || emitSkipped)) {
-            [value, sourceMap] = getOutputForceCommonJS(code, normalizedFileName);
-        }
-        else if (classification.moduleType === 'esm' &&
-            (shouldOverwriteEmitWhenForcingEsm || emitSkipped)) {
-            [value, sourceMap] = getOutputForceESM(code, normalizedFileName);
-        }
-        else if (emitSkipped) {
-            // Happens when ts compiler skips emit or in transpileOnly mode
-            const classification = (0, node_module_type_classifier_1.classifyModule)(fileName, isNodeModuleType);
-            [value, sourceMap] =
-                classification === 'nodecjs'
-                    ? getOutputForceNodeCommonJS(code, normalizedFileName)
-                    : classification === 'nodeesm'
-                        ? getOutputForceNodeESM(code, normalizedFileName)
-                        : classification === 'cjs'
-                            ? getOutputForceCommonJS(code, normalizedFileName)
-                            : classification === 'esm'
-                                ? getOutputForceESM(code, normalizedFileName)
-                                : getOutputTranspileOnly(code, normalizedFileName);
-        }
-        const output = updateOutput(value, normalizedFileName, sourceMap, getEmitExtension);
-        outputCache.set(normalizedFileName, { content: output });
-        return output;
-    }
-    let active = true;
-    const enabled = (enabled) => enabled === undefined ? active : (active = !!enabled);
-    const ignored = (fileName) => {
-        if (!active)
-            return true;
-        const ext = (0, path_1.extname)(fileName);
-        if (extensions.compiled.includes(ext)) {
-            return !isScoped(fileName) || shouldIgnore(fileName);
-        }
-        return true;
-    };
-    function addDiagnosticFilter(filter) {
-        diagnosticFilters.push({
-            ...filter,
-            filenamesAbsolute: filter.filenamesAbsolute.map((f) => (0, util_1.normalizeSlashes)(f)),
-        });
-    }
-    const getNodeEsmResolver = (0, util_1.once)(() => (__nccwpck_require__(67968).createResolve)({
-        extensions,
-        preferTsExts: options.preferTsExts,
-        tsNodeExperimentalSpecifierResolution: options.experimentalSpecifierResolution,
-    }));
-    const getNodeEsmGetFormat = (0, util_1.once)(() => (__nccwpck_require__(37207).createGetFormat)(options.experimentalSpecifierResolution, getNodeEsmResolver()));
-    const getNodeCjsLoader = (0, util_1.once)(() => (__nccwpck_require__(51633).createCjsLoader)({
-        extensions,
-        preferTsExts: options.preferTsExts,
-        nodeEsmResolver: getNodeEsmResolver(),
-    }));
-    return {
-        [TS_NODE_SERVICE_BRAND]: true,
-        ts,
-        compilerPath: compiler,
-        config,
-        compile,
-        getTypeInfo,
-        ignored,
-        enabled,
-        options,
-        configFilePath,
-        moduleTypeClassifier,
-        shouldReplAwait,
-        addDiagnosticFilter,
-        installSourceMapSupport,
-        enableExperimentalEsmLoaderInterop,
-        transpileOnly,
-        projectLocalResolveHelper,
-        getNodeEsmResolver,
-        getNodeEsmGetFormat,
-        getNodeCjsLoader,
-        extensions,
-    };
-}
-exports.createFromPreloadedConfig = createFromPreloadedConfig;
-/**
- * Check if the filename should be ignored.
- */
-function createIgnore(ignoreBaseDir, ignore) {
-    return (fileName) => {
-        const relname = (0, path_1.relative)(ignoreBaseDir, fileName);
-        const path = (0, util_1.normalizeSlashes)(relname);
-        return ignore.some((x) => x.test(path));
-    };
-}
-/**
- * Register the extensions to support when importing files.
- */
-function registerExtensions(preferTsExts, extensions, service, originalJsHandler) {
-    const exts = new Set(extensions);
-    // Can't add these extensions cuz would allow omitting file extension; node requires ext for .cjs and .mjs
-    // Unless they're already registered by something else (nyc does this):
-    // then we *must* hook them or else our transformer will not be called.
-    for (const cannotAdd of ['.mts', '.cts', '.mjs', '.cjs']) {
-        if (exts.has(cannotAdd) && !(0, util_1.hasOwnProperty)(require.extensions, cannotAdd)) {
-            // Unrecognized file exts can be transformed via the `.js` handler.
-            exts.add('.js');
-            exts.delete(cannotAdd);
-        }
-    }
-    // Register new extensions.
-    for (const ext of exts) {
-        registerExtension(ext, service, originalJsHandler);
-    }
-    if (preferTsExts) {
-        const preferredExtensions = new Set([
-            ...exts,
-            ...Object.keys(require.extensions),
-        ]);
-        // Re-sort iteration order of Object.keys()
-        for (const ext of preferredExtensions) {
-            const old = Object.getOwnPropertyDescriptor(require.extensions, ext);
-            delete require.extensions[ext];
-            Object.defineProperty(require.extensions, ext, old);
-        }
-    }
-}
-/**
- * Register the extension for node.
- */
-function registerExtension(ext, service, originalHandler) {
-    const old = require.extensions[ext] || originalHandler;
-    require.extensions[ext] = function (m, filename) {
-        if (service.ignored(filename))
-            return old(m, filename);
-        assertScriptCanLoadAsCJS(service, m, filename);
-        const _compile = m._compile;
-        m._compile = function (code, fileName) {
-            (0, exports.debug)('module._compile', fileName);
-            const result = service.compile(code, fileName);
-            return _compile.call(this, result, fileName);
-        };
-        return old(m, filename);
-    };
-}
-/**
- * Update the output remapping the source map.
- */
-function updateOutput(outputText, fileName, sourceMap, getEmitExtension) {
-    const base64Map = Buffer.from(updateSourceMap(sourceMap, fileName), 'utf8').toString('base64');
-    const sourceMapContent = `//# sourceMappingURL=data:application/json;charset=utf-8;base64,${base64Map}`;
-    // Expected form: `//# sourceMappingURL=foo bar.js.map` or `//# sourceMappingURL=foo%20bar.js.map` for input file "foo bar.tsx"
-    // Percent-encoding behavior added in TS 4.1.1: https://github.com/microsoft/TypeScript/issues/40951
-    const prefix = '//# sourceMappingURL=';
-    const prefixLength = prefix.length;
-    const baseName = /*foo.tsx*/ (0, path_1.basename)(fileName);
-    const extName = /*.tsx*/ (0, path_1.extname)(fileName);
-    const extension = /*.js*/ getEmitExtension(fileName);
-    const sourcemapFilename = baseName.slice(0, -extName.length) + extension + '.map';
-    const sourceMapLengthWithoutPercentEncoding = prefixLength + sourcemapFilename.length;
-    /*
-     * Only rewrite if existing directive exists at the location we expect, to support:
-     *   a) compilers that do not append a sourcemap directive
-     *   b) situations where we did the math wrong
-     *     Not ideal, but appending our sourcemap *after* a pre-existing sourcemap still overrides, so the end-user is happy.
-     */
-    if (outputText.substr(-sourceMapLengthWithoutPercentEncoding, prefixLength) ===
-        prefix) {
-        return (outputText.slice(0, -sourceMapLengthWithoutPercentEncoding) +
-            sourceMapContent);
-    }
-    // If anyone asks why we're not using URL, the URL equivalent is: `u = new URL('http://d'); u.pathname = "/" + sourcemapFilename; return u.pathname.slice(1);
-    const sourceMapLengthWithPercentEncoding = prefixLength + encodeURI(sourcemapFilename).length;
-    if (outputText.substr(-sourceMapLengthWithPercentEncoding, prefixLength) ===
-        prefix) {
-        return (outputText.slice(0, -sourceMapLengthWithPercentEncoding) +
-            sourceMapContent);
-    }
-    return `${outputText}\n${sourceMapContent}`;
-}
-/**
- * Update the source map contents for improved output.
- */
-function updateSourceMap(sourceMapText, fileName) {
-    const sourceMap = JSON.parse(sourceMapText);
-    sourceMap.file = fileName;
-    sourceMap.sources = [fileName];
-    delete sourceMap.sourceRoot;
-    return JSON.stringify(sourceMap);
-}
-/**
- * Filter diagnostics.
+
+    quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);
+    quickSort(this.__originalMappings, util.compareByOriginalPositions);
+  };
+
+__webpack_unused_export__ = IndexedSourceMapConsumer;
+
+
+/***/ }),
+
+/***/ 69425:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+/* -*- Mode: js; js-indent-level: 2; -*- */
+/*
+ * Copyright 2011 Mozilla Foundation and contributors
+ * Licensed under the New BSD license. See LICENSE or:
+ * http://opensource.org/licenses/BSD-3-Clause
  */
-function filterDiagnostics(diagnostics, filters) {
-    return diagnostics.filter((d) => filters.every((f) => {
-        var _a;
-        return (!f.appliesToAllFiles &&
-            f.filenamesAbsolute.indexOf((_a = d.file) === null || _a === void 0 ? void 0 : _a.fileName) === -1) ||
-            f.diagnosticsIgnored.indexOf(d.code) === -1;
-    }));
-}
+
+var base64VLQ = __nccwpck_require__(10975);
+var util = __nccwpck_require__(12344);
+var ArraySet = (__nccwpck_require__(26375)/* .ArraySet */ .I);
+var MappingList = (__nccwpck_require__(86817)/* .MappingList */ .H);
+
 /**
- * Get token at file position.
+ * An instance of the SourceMapGenerator represents a source map which is
+ * being built incrementally. You may pass an object with the following
+ * properties:
  *
- * Reference: https://github.com/microsoft/TypeScript/blob/fcd9334f57d85b73dd66ad2d21c02e84822f4841/src/services/utilities.ts#L705-L731
+ *   - file: The filename of the generated source.
+ *   - sourceRoot: A root for all relative URLs in this source map.
  */
-function getTokenAtPosition(ts, sourceFile, position) {
-    let current = sourceFile;
-    outer: while (true) {
-        for (const child of current.getChildren(sourceFile)) {
-            const start = child.getFullStart();
-            if (start > position)
-                break;
-            const end = child.getEnd();
-            if (position <= end) {
-                current = child;
-                continue outer;
-            }
-        }
-        return current;
-    }
+function SourceMapGenerator(aArgs) {
+  if (!aArgs) {
+    aArgs = {};
+  }
+  this._file = util.getArg(aArgs, 'file', null);
+  this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null);
+  this._skipValidation = util.getArg(aArgs, 'skipValidation', false);
+  this._sources = new ArraySet();
+  this._names = new ArraySet();
+  this._mappings = new MappingList();
+  this._sourcesContents = null;
 }
+
+SourceMapGenerator.prototype._version = 3;
+
 /**
- * Create an implementation of node's ESM loader hooks.
- *
- * This may be useful if you
- * want to wrap or compose the loader hooks to add additional functionality or
- * combine with another loader.
- *
- * Node changed the hooks API, so there are two possible APIs.  This function
- * detects your node version and returns the appropriate API.
+ * Creates a new SourceMapGenerator based on a SourceMapConsumer
  *
- * @category ESM Loader
+ * @param aSourceMapConsumer The SourceMap.
  */
-const createEsmHooks = (tsNodeService) => (__nccwpck_require__(84998)/* .createEsmHooks */ .lT)(tsNodeService);
-exports.createEsmHooks = createEsmHooks;
-//# sourceMappingURL=index.js.map
-
-/***/ }),
+SourceMapGenerator.fromSourceMap =
+  function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) {
+    var sourceRoot = aSourceMapConsumer.sourceRoot;
+    var generator = new SourceMapGenerator({
+      file: aSourceMapConsumer.file,
+      sourceRoot: sourceRoot
+    });
+    aSourceMapConsumer.eachMapping(function (mapping) {
+      var newMapping = {
+        generated: {
+          line: mapping.generatedLine,
+          column: mapping.generatedColumn
+        }
+      };
 
-/***/ 23922:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+      if (mapping.source != null) {
+        newMapping.source = mapping.source;
+        if (sourceRoot != null) {
+          newMapping.source = util.relative(sourceRoot, newMapping.source);
+        }
 
-"use strict";
+        newMapping.original = {
+          line: mapping.originalLine,
+          column: mapping.originalColumn
+        };
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.createModuleTypeClassifier = void 0;
-const ts_internals_1 = __nccwpck_require__(14851);
-const util_1 = __nccwpck_require__(64745);
-/**
- * @internal
- * May receive non-normalized options -- basePath and patterns -- and will normalize them
- * internally.
- * However, calls to `classifyModule` must pass pre-normalized paths!
- */
-function createModuleTypeClassifier(options) {
-    const { patterns, basePath: _basePath } = options;
-    const basePath = _basePath !== undefined
-        ? (0, util_1.normalizeSlashes)(_basePath).replace(/\/$/, '')
-        : undefined;
-    const patternTypePairs = Object.entries(patterns !== null && patterns !== void 0 ? patterns : []).map(([_pattern, type]) => {
-        const pattern = (0, util_1.normalizeSlashes)(_pattern);
-        return { pattern: parsePattern(basePath, pattern), type };
-    });
-    const classifications = {
-        package: {
-            moduleType: 'auto',
-        },
-        cjs: {
-            moduleType: 'cjs',
-        },
-        esm: {
-            moduleType: 'esm',
-        },
-    };
-    const auto = classifications.package;
-    // Passed path must be normalized!
-    function classifyModuleNonCached(path) {
-        const matched = matchPatterns(patternTypePairs, (_) => _.pattern, path);
-        if (matched)
-            return classifications[matched.type];
-        return auto;
-    }
-    const classifyModule = (0, util_1.cachedLookup)(classifyModuleNonCached);
-    function classifyModuleAuto(path) {
-        return auto;
-    }
-    return {
-        classifyModuleByModuleTypeOverrides: patternTypePairs.length
-            ? classifyModule
-            : classifyModuleAuto,
-    };
-}
-exports.createModuleTypeClassifier = createModuleTypeClassifier;
-function parsePattern(basePath, patternString) {
-    const pattern = (0, ts_internals_1.getPatternFromSpec)(patternString, basePath);
-    return pattern !== undefined ? new RegExp(pattern) : /(?:)/;
-}
-function matchPatterns(objects, getPattern, candidate) {
-    for (let i = objects.length - 1; i >= 0; i--) {
-        const object = objects[i];
-        const pattern = getPattern(object);
-        if (pattern === null || pattern === void 0 ? void 0 : pattern.test(candidate)) {
-            return object;
+        if (mapping.name != null) {
+          newMapping.name = mapping.name;
         }
-    }
-}
-//# sourceMappingURL=module-type-classifier.js.map
+      }
 
-/***/ }),
+      generator.addMapping(newMapping);
+    });
+    aSourceMapConsumer.sources.forEach(function (sourceFile) {
+      var sourceRelative = sourceFile;
+      if (sourceRoot !== null) {
+        sourceRelative = util.relative(sourceRoot, sourceFile);
+      }
 
-/***/ 80812:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+      if (!generator._sources.has(sourceRelative)) {
+        generator._sources.add(sourceRelative);
+      }
 
-"use strict";
+      var content = aSourceMapConsumer.sourceContentFor(sourceFile);
+      if (content != null) {
+        generator.setSourceContent(sourceFile, content);
+      }
+    });
+    return generator;
+  };
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.classifyModule = void 0;
-const node_internal_modules_cjs_loader_1 = __nccwpck_require__(51633);
 /**
- * Determine how to emit a module based on tsconfig "module" and package.json "type"
- *
- * Supports module=nodenext/node16 with transpileOnly, where we cannot ask the
- * TS typechecker to tell us if a file is CJS or ESM.
+ * Add a single mapping from original source line and column to the generated
+ * source's line and column for this source map being created. The mapping
+ * object should have the following properties:
  *
- * Return values indicate:
- * - cjs
- * - esm
- * - nodecjs == node-flavored cjs where dynamic imports are *not* transformed into `require()`
- * - undefined == emit according to tsconfig `module` config, whatever that is
- * @internal
+ *   - generated: An object with the generated line and column positions.
+ *   - original: An object with the original line and column positions.
+ *   - source: The original source file (relative to the sourceRoot).
+ *   - name: An optional original token name for this mapping.
  */
-function classifyModule(nativeFilename, isNodeModuleType) {
-    // [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS]
-    const lastDotIndex = nativeFilename.lastIndexOf('.');
-    const ext = lastDotIndex >= 0 ? nativeFilename.slice(lastDotIndex) : '';
-    switch (ext) {
-        case '.cjs':
-        case '.cts':
-            return isNodeModuleType ? 'nodecjs' : 'cjs';
-        case '.mjs':
-        case '.mts':
-            return isNodeModuleType ? 'nodeesm' : 'esm';
+SourceMapGenerator.prototype.addMapping =
+  function SourceMapGenerator_addMapping(aArgs) {
+    var generated = util.getArg(aArgs, 'generated');
+    var original = util.getArg(aArgs, 'original', null);
+    var source = util.getArg(aArgs, 'source', null);
+    var name = util.getArg(aArgs, 'name', null);
+
+    if (!this._skipValidation) {
+      this._validateMapping(generated, original, source, name);
     }
-    if (isNodeModuleType) {
-        const packageScope = (0, node_internal_modules_cjs_loader_1.readPackageScope)(nativeFilename);
-        if (packageScope && packageScope.data.type === 'module')
-            return 'nodeesm';
-        return 'nodecjs';
+
+    if (source != null) {
+      source = String(source);
+      if (!this._sources.has(source)) {
+        this._sources.add(source);
+      }
     }
-    return undefined;
-}
-exports.classifyModule = classifyModule;
-//# sourceMappingURL=node-module-type-classifier.js.map
 
-/***/ }),
+    if (name != null) {
+      name = String(name);
+      if (!this._names.has(name)) {
+        this._names.add(name);
+      }
+    }
 
-/***/ 10204:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+    this._mappings.add({
+      generatedLine: generated.line,
+      generatedColumn: generated.column,
+      originalLine: original != null && original.line,
+      originalColumn: original != null && original.column,
+      source: source,
+      name: name
+    });
+  };
 
-"use strict";
+/**
+ * Set the source content for a source file.
+ */
+SourceMapGenerator.prototype.setSourceContent =
+  function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
+    var source = aSourceFile;
+    if (this._sourceRoot != null) {
+      source = util.relative(this._sourceRoot, source);
+    }
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.setupContext = exports.createEvalAwarePartialHost = exports.EvalState = exports.createRepl = exports.REPL_NAME = exports.REPL_FILENAME = exports.STDIN_NAME = exports.STDIN_FILENAME = exports.EVAL_NAME = exports.EVAL_FILENAME = void 0;
-const os_1 = __nccwpck_require__(22037);
-const path_1 = __nccwpck_require__(71017);
-const repl_1 = __nccwpck_require__(38102);
-const vm_1 = __nccwpck_require__(26144);
-const index_1 = __nccwpck_require__(72719);
-const fs_1 = __nccwpck_require__(57147);
-const console_1 = __nccwpck_require__(51807);
-const assert = __nccwpck_require__(39491);
-const module_1 = __nccwpck_require__(98188);
-// Lazy-loaded.
-let _processTopLevelAwait;
-function getProcessTopLevelAwait() {
-    if (_processTopLevelAwait === undefined) {
-        ({
-            processTopLevelAwait: _processTopLevelAwait,
-        } = __nccwpck_require__(75818));
-    }
-    return _processTopLevelAwait;
-}
-let diff;
-function getDiffLines() {
-    if (diff === undefined) {
-        diff = __nccwpck_require__(71672);
+    if (aSourceContent != null) {
+      // Add the source content to the _sourcesContents map.
+      // Create a new _sourcesContents map if the property is null.
+      if (!this._sourcesContents) {
+        this._sourcesContents = Object.create(null);
+      }
+      this._sourcesContents[util.toSetString(source)] = aSourceContent;
+    } else if (this._sourcesContents) {
+      // Remove the source file from the _sourcesContents map.
+      // If the _sourcesContents map is empty, set the property to null.
+      delete this._sourcesContents[util.toSetString(source)];
+      if (Object.keys(this._sourcesContents).length === 0) {
+        this._sourcesContents = null;
+      }
     }
-    return diff.diffLines;
-}
-/** @internal */
-exports.EVAL_FILENAME = `[eval].ts`;
-/** @internal */
-exports.EVAL_NAME = `[eval]`;
-/** @internal */
-exports.STDIN_FILENAME = `[stdin].ts`;
-/** @internal */
-exports.STDIN_NAME = `[stdin]`;
-/** @internal */
-exports.REPL_FILENAME = '.ts';
-/** @internal */
-exports.REPL_NAME = '';
+  };
+
 /**
- * Create a ts-node REPL instance.
- *
- * Pay close attention to the example below.  Today, the API requires a few lines
- * of boilerplate to correctly bind the `ReplService` to the ts-node `Service` and
- * vice-versa.
- *
- * Usage example:
- *
- *     const repl = tsNode.createRepl();
- *     const service = tsNode.create({...repl.evalAwarePartialHost});
- *     repl.setService(service);
- *     repl.start();
+ * Applies the mappings of a sub-source-map for a specific source file to the
+ * source map being generated. Each mapping to the supplied source file is
+ * rewritten using the supplied source map. Note: The resolution for the
+ * resulting mappings is the minimium of this map and the supplied map.
  *
- * @category REPL
+ * @param aSourceMapConsumer The source map to be applied.
+ * @param aSourceFile Optional. The filename of the source file.
+ *        If omitted, SourceMapConsumer's file property will be used.
+ * @param aSourceMapPath Optional. The dirname of the path to the source map
+ *        to be applied. If relative, it is relative to the SourceMapConsumer.
+ *        This parameter is needed when the two source maps aren't in the same
+ *        directory, and the source map to be applied contains relative source
+ *        paths. If so, those relative source paths need to be rewritten
+ *        relative to the SourceMapGenerator.
  */
-function createRepl(options = {}) {
-    var _a, _b, _c, _d, _e;
-    const { ignoreDiagnosticsThatAreAnnoyingInInteractiveRepl = true } = options;
-    let service = options.service;
-    let nodeReplServer;
-    // If `useGlobal` is not true, then REPL creates a context when started.
-    // This stores a reference to it or to `global`, whichever is used, after REPL has started.
-    let context;
-    const state = (_a = options.state) !== null && _a !== void 0 ? _a : new EvalState((0, path_1.join)(process.cwd(), exports.REPL_FILENAME));
-    const evalAwarePartialHost = createEvalAwarePartialHost(state, options.composeWithEvalAwarePartialHost);
-    const stdin = (_b = options.stdin) !== null && _b !== void 0 ? _b : process.stdin;
-    const stdout = (_c = options.stdout) !== null && _c !== void 0 ? _c : process.stdout;
-    const stderr = (_d = options.stderr) !== null && _d !== void 0 ? _d : process.stderr;
-    const _console = stdout === process.stdout && stderr === process.stderr
-        ? console
-        : new console_1.Console(stdout, stderr);
-    const replService = {
-        state: (_e = options.state) !== null && _e !== void 0 ? _e : new EvalState((0, path_1.join)(process.cwd(), exports.EVAL_FILENAME)),
-        setService,
-        evalCode,
-        evalCodeInternal,
-        nodeEval,
-        evalAwarePartialHost,
-        start,
-        startInternal,
-        stdin,
-        stdout,
-        stderr,
-        console: _console,
-    };
-    return replService;
-    function setService(_service) {
-        service = _service;
-        if (ignoreDiagnosticsThatAreAnnoyingInInteractiveRepl) {
-            service.addDiagnosticFilter({
-                appliesToAllFiles: false,
-                filenamesAbsolute: [state.path],
-                diagnosticsIgnored: [
-                    2393,
-                    6133,
-                    7027,
-                    ...(service.shouldReplAwait ? topLevelAwaitDiagnosticCodes : []),
-                ],
-            });
-        }
+SourceMapGenerator.prototype.applySourceMap =
+  function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {
+    var sourceFile = aSourceFile;
+    // If aSourceFile is omitted, we will use the file property of the SourceMap
+    if (aSourceFile == null) {
+      if (aSourceMapConsumer.file == null) {
+        throw new Error(
+          'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' +
+          'or the source map\'s "file" property. Both were omitted.'
+        );
+      }
+      sourceFile = aSourceMapConsumer.file;
     }
-    function evalCode(code) {
-        const result = appendCompileAndEvalInput({
-            service: service,
-            state,
-            input: code,
-            context,
-            overrideIsCompletion: false,
-        });
-        assert(result.containsTopLevelAwait === false);
-        return result.value;
+    var sourceRoot = this._sourceRoot;
+    // Make "sourceFile" relative if an absolute Url is passed.
+    if (sourceRoot != null) {
+      sourceFile = util.relative(sourceRoot, sourceFile);
     }
-    function evalCodeInternal(options) {
-        const { code, enableTopLevelAwait, context } = options;
-        return appendCompileAndEvalInput({
-            service: service,
-            state,
-            input: code,
-            enableTopLevelAwait,
-            context,
+    // Applying the SourceMap can add and remove items from the sources and
+    // the names array.
+    var newSources = new ArraySet();
+    var newNames = new ArraySet();
+
+    // Find mappings for the "sourceFile"
+    this._mappings.unsortedForEach(function (mapping) {
+      if (mapping.source === sourceFile && mapping.originalLine != null) {
+        // Check if it can be mapped by the source map, then update the mapping.
+        var original = aSourceMapConsumer.originalPositionFor({
+          line: mapping.originalLine,
+          column: mapping.originalColumn
         });
-    }
-    function nodeEval(code, context, _filename, callback) {
-        // TODO: Figure out how to handle completion here.
-        if (code === '.scope') {
-            callback(null);
-            return;
-        }
-        try {
-            const evalResult = evalCodeInternal({
-                code,
-                enableTopLevelAwait: true,
-                context,
-            });
-            if (evalResult.containsTopLevelAwait) {
-                (async () => {
-                    try {
-                        callback(null, await evalResult.valuePromise);
-                    }
-                    catch (promiseError) {
-                        handleError(promiseError);
-                    }
-                })();
-            }
-            else {
-                callback(null, evalResult.value);
-            }
-        }
-        catch (error) {
-            handleError(error);
+        if (original.source != null) {
+          // Copy mapping
+          mapping.source = original.source;
+          if (aSourceMapPath != null) {
+            mapping.source = util.join(aSourceMapPath, mapping.source)
+          }
+          if (sourceRoot != null) {
+            mapping.source = util.relative(sourceRoot, mapping.source);
+          }
+          mapping.originalLine = original.line;
+          mapping.originalColumn = original.column;
+          if (original.name != null) {
+            mapping.name = original.name;
+          }
         }
-        // Log TSErrors, check if they're recoverable, log helpful hints for certain
-        // well-known errors, and invoke `callback()`
-        // TODO should evalCode API get the same error-handling benefits?
-        function handleError(error) {
-            var _a, _b;
-            // Don't show TLA hint if the user explicitly disabled repl top level await
-            const canLogTopLevelAwaitHint = service.options.experimentalReplAwait !== false &&
-                !service.shouldReplAwait;
-            if (error instanceof index_1.TSError) {
-                // Support recoverable compilations using >= node 6.
-                if (repl_1.Recoverable && isRecoverable(error)) {
-                    callback(new repl_1.Recoverable(error));
-                    return;
-                }
-                else {
-                    _console.error(error);
-                    if (canLogTopLevelAwaitHint &&
-                        error.diagnosticCodes.some((dC) => topLevelAwaitDiagnosticCodes.includes(dC))) {
-                        _console.error(getTopLevelAwaitHint());
-                    }
-                    callback(null);
-                }
-            }
-            else {
-                let _error = error;
-                if (canLogTopLevelAwaitHint &&
-                    _error instanceof SyntaxError &&
-                    ((_a = _error.message) === null || _a === void 0 ? void 0 : _a.includes('await is only valid'))) {
-                    try {
-                        // Only way I know to make our hint appear after the error
-                        _error.message += `\n\n${getTopLevelAwaitHint()}`;
-                        _error.stack = (_b = _error.stack) === null || _b === void 0 ? void 0 : _b.replace(/(SyntaxError:.*)/, (_, $1) => `${$1}\n\n${getTopLevelAwaitHint()}`);
-                    }
-                    catch { }
-                }
-                callback(_error);
-            }
+      }
+
+      var source = mapping.source;
+      if (source != null && !newSources.has(source)) {
+        newSources.add(source);
+      }
+
+      var name = mapping.name;
+      if (name != null && !newNames.has(name)) {
+        newNames.add(name);
+      }
+
+    }, this);
+    this._sources = newSources;
+    this._names = newNames;
+
+    // Copy sourcesContents of applied map.
+    aSourceMapConsumer.sources.forEach(function (sourceFile) {
+      var content = aSourceMapConsumer.sourceContentFor(sourceFile);
+      if (content != null) {
+        if (aSourceMapPath != null) {
+          sourceFile = util.join(aSourceMapPath, sourceFile);
         }
-        function getTopLevelAwaitHint() {
-            return `Hint: REPL top-level await requires TypeScript version 3.8 or higher and target ES2018 or higher. You are using TypeScript ${service.ts.version} and target ${service.ts.ScriptTarget[service.config.options.target]}.`;
+        if (sourceRoot != null) {
+          sourceFile = util.relative(sourceRoot, sourceFile);
         }
+        this.setSourceContent(sourceFile, content);
+      }
+    }, this);
+  };
+
+/**
+ * A mapping can have one of the three levels of data:
+ *
+ *   1. Just the generated position.
+ *   2. The Generated position, original position, and original source.
+ *   3. Generated and original position, original source, as well as a name
+ *      token.
+ *
+ * To maintain consistency, we validate that any new mapping being added falls
+ * in to one of these categories.
+ */
+SourceMapGenerator.prototype._validateMapping =
+  function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource,
+                                              aName) {
+    // When aOriginal is truthy but has empty values for .line and .column,
+    // it is most likely a programmer error. In this case we throw a very
+    // specific error message to try to guide them the right way.
+    // For example: https://github.com/Polymer/polymer-bundler/pull/519
+    if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') {
+        throw new Error(
+            'original.line and original.column are not numbers -- you probably meant to omit ' +
+            'the original mapping entirely and only map the generated position. If so, pass ' +
+            'null for the original mapping instead of an object with empty or null values.'
+        );
     }
-    // Note: `code` argument is deprecated
-    function start(code) {
-        startInternal({ code });
+
+    if (aGenerated && 'line' in aGenerated && 'column' in aGenerated
+        && aGenerated.line > 0 && aGenerated.column >= 0
+        && !aOriginal && !aSource && !aName) {
+      // Case 1.
+      return;
     }
-    // Note: `code` argument is deprecated
-    function startInternal(options) {
-        const { code, forceToBeModule = true, ...optionsOverride } = options !== null && options !== void 0 ? options : {};
-        // TODO assert that `service` is set; remove all `service!` non-null assertions
-        // Eval incoming code before the REPL starts.
-        // Note: deprecated
-        if (code) {
-            try {
-                evalCode(`${code}\n`);
-            }
-            catch (err) {
-                _console.error(err);
-                // Note: should not be killing the process here, but this codepath is deprecated anyway
-                process.exit(1);
-            }
-        }
-        // In case the typescript compiler hasn't compiled anything yet,
-        // make it run though compilation at least one time before
-        // the REPL starts for a snappier user experience on startup.
-        service === null || service === void 0 ? void 0 : service.compile('', state.path);
-        const repl = (0, repl_1.start)({
-            prompt: '> ',
-            input: replService.stdin,
-            output: replService.stdout,
-            // Mimicking node's REPL implementation: https://github.com/nodejs/node/blob/168b22ba073ee1cbf8d0bcb4ded7ff3099335d04/lib/internal/repl.js#L28-L30
-            terminal: stdout.isTTY &&
-                !parseInt(index_1.env.NODE_NO_READLINE, 10),
-            eval: nodeEval,
-            useGlobal: true,
-            ...optionsOverride,
-        });
-        nodeReplServer = repl;
-        context = repl.context;
-        // Bookmark the point where we should reset the REPL state.
-        const resetEval = appendToEvalState(state, '');
-        function reset() {
-            resetEval();
-            // Hard fix for TypeScript forcing `Object.defineProperty(exports, ...)`.
-            runInContext('exports = module.exports', state.path, context);
-            if (forceToBeModule) {
-                state.input += 'export {};void 0;\n';
-            }
-            // Declare node builtins.
-            // Skip the same builtins as `addBuiltinLibsToObject`:
-            //   those starting with _
-            //   those containing /
-            //   those that already exist as globals
-            // Intentionally suppress type errors in case @types/node does not declare any of them, and because
-            // `declare import` is technically invalid syntax.
-            // Avoid this when in transpileOnly, because third-party transpilers may not handle `declare import`.
-            if (!(service === null || service === void 0 ? void 0 : service.transpileOnly)) {
-                state.input += `// @ts-ignore\n${module_1.builtinModules
-                    .filter((name) => !name.startsWith('_') &&
-                    !name.includes('/') &&
-                    !['console', 'module', 'process'].includes(name))
-                    .map((name) => `declare import ${name} = require('${name}')`)
-                    .join(';')}\n`;
-            }
-        }
-        reset();
-        repl.on('reset', reset);
-        repl.defineCommand('type', {
-            help: 'Check the type of a TypeScript identifier',
-            action: function (identifier) {
-                if (!identifier) {
-                    repl.displayPrompt();
-                    return;
-                }
-                const undo = appendToEvalState(state, identifier);
-                const { name, comment } = service.getTypeInfo(state.input, state.path, state.input.length);
-                undo();
-                if (name)
-                    repl.outputStream.write(`${name}\n`);
-                if (comment)
-                    repl.outputStream.write(`${comment}\n`);
-                repl.displayPrompt();
-            },
-        });
-        // Set up REPL history when available natively via node.js >= 11.
-        if (repl.setupHistory) {
-            const historyPath = index_1.env.TS_NODE_HISTORY || (0, path_1.join)((0, os_1.homedir)(), '.ts_node_repl_history');
-            repl.setupHistory(historyPath, (err) => {
-                if (!err)
-                    return;
-                _console.error(err);
-                process.exit(1);
-            });
-        }
-        return repl;
+    else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated
+             && aOriginal && 'line' in aOriginal && 'column' in aOriginal
+             && aGenerated.line > 0 && aGenerated.column >= 0
+             && aOriginal.line > 0 && aOriginal.column >= 0
+             && aSource) {
+      // Cases 2 and 3.
+      return;
     }
-}
-exports.createRepl = createRepl;
+    else {
+      throw new Error('Invalid mapping: ' + JSON.stringify({
+        generated: aGenerated,
+        source: aSource,
+        original: aOriginal,
+        name: aName
+      }));
+    }
+  };
+
 /**
- * Eval state management. Stores virtual `[eval].ts` file
+ * Serialize the accumulated mappings in to the stream of base 64 VLQs
+ * specified by the source map format.
  */
-class EvalState {
-    constructor(path) {
-        this.path = path;
-        /** @internal */
-        this.input = '';
-        /** @internal */
-        this.output = '';
-        /** @internal */
-        this.version = 0;
-        /** @internal */
-        this.lines = 0;
-    }
-}
-exports.EvalState = EvalState;
-function createEvalAwarePartialHost(state, composeWith) {
-    function readFile(path) {
-        if (path === state.path)
-            return state.input;
-        if (composeWith === null || composeWith === void 0 ? void 0 : composeWith.readFile)
-            return composeWith.readFile(path);
-        try {
-            return (0, fs_1.readFileSync)(path, 'utf8');
-        }
-        catch (err) {
-            /* Ignore. */
+SourceMapGenerator.prototype._serializeMappings =
+  function SourceMapGenerator_serializeMappings() {
+    var previousGeneratedColumn = 0;
+    var previousGeneratedLine = 1;
+    var previousOriginalColumn = 0;
+    var previousOriginalLine = 0;
+    var previousName = 0;
+    var previousSource = 0;
+    var result = '';
+    var next;
+    var mapping;
+    var nameIdx;
+    var sourceIdx;
+
+    var mappings = this._mappings.toArray();
+    for (var i = 0, len = mappings.length; i < len; i++) {
+      mapping = mappings[i];
+      next = ''
+
+      if (mapping.generatedLine !== previousGeneratedLine) {
+        previousGeneratedColumn = 0;
+        while (mapping.generatedLine !== previousGeneratedLine) {
+          next += ';';
+          previousGeneratedLine++;
         }
-    }
-    function fileExists(path) {
-        if (path === state.path)
-            return true;
-        if (composeWith === null || composeWith === void 0 ? void 0 : composeWith.fileExists)
-            return composeWith.fileExists(path);
-        try {
-            const stats = (0, fs_1.statSync)(path);
-            return stats.isFile() || stats.isFIFO();
+      }
+      else {
+        if (i > 0) {
+          if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) {
+            continue;
+          }
+          next += ',';
         }
-        catch (err) {
-            return false;
+      }
+
+      next += base64VLQ.encode(mapping.generatedColumn
+                                 - previousGeneratedColumn);
+      previousGeneratedColumn = mapping.generatedColumn;
+
+      if (mapping.source != null) {
+        sourceIdx = this._sources.indexOf(mapping.source);
+        next += base64VLQ.encode(sourceIdx - previousSource);
+        previousSource = sourceIdx;
+
+        // lines are stored 0-based in SourceMap spec version 3
+        next += base64VLQ.encode(mapping.originalLine - 1
+                                   - previousOriginalLine);
+        previousOriginalLine = mapping.originalLine - 1;
+
+        next += base64VLQ.encode(mapping.originalColumn
+                                   - previousOriginalColumn);
+        previousOriginalColumn = mapping.originalColumn;
+
+        if (mapping.name != null) {
+          nameIdx = this._names.indexOf(mapping.name);
+          next += base64VLQ.encode(nameIdx - previousName);
+          previousName = nameIdx;
         }
+      }
+
+      result += next;
     }
-    return { readFile, fileExists };
-}
-exports.createEvalAwarePartialHost = createEvalAwarePartialHost;
-const sourcemapCommentRe = /\/\/# ?sourceMappingURL=\S+[\s\r\n]*$/;
+
+    return result;
+  };
+
+SourceMapGenerator.prototype._generateSourcesContent =
+  function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
+    return aSources.map(function (source) {
+      if (!this._sourcesContents) {
+        return null;
+      }
+      if (aSourceRoot != null) {
+        source = util.relative(aSourceRoot, source);
+      }
+      var key = util.toSetString(source);
+      return Object.prototype.hasOwnProperty.call(this._sourcesContents, key)
+        ? this._sourcesContents[key]
+        : null;
+    }, this);
+  };
+
 /**
- * Evaluate the code snippet.
- *
- * Append it to virtual .ts file, compile, handle compiler errors, compute a diff of the JS, and eval any code that
- * appears as "added" in the diff.
+ * Externalize the source map.
  */
-function appendCompileAndEvalInput(options) {
-    const { service, state, wrappedErr, enableTopLevelAwait = false, context, overrideIsCompletion, } = options;
-    let { input } = options;
-    // It's confusing for `{ a: 1 }` to be interpreted as a block statement
-    // rather than an object literal. So, we first try to wrap it in
-    // parentheses, so that it will be interpreted as an expression.
-    // Based on https://github.com/nodejs/node/blob/c2e6822153bad023ab7ebd30a6117dcc049e475c/lib/repl.js#L413-L422
-    let wrappedCmd = false;
-    if (!wrappedErr && /^\s*{/.test(input) && !/;\s*$/.test(input)) {
-        input = `(${input.trim()})\n`;
-        wrappedCmd = true;
-    }
-    const lines = state.lines;
-    const isCompletion = overrideIsCompletion !== null && overrideIsCompletion !== void 0 ? overrideIsCompletion : !/\n$/.test(input);
-    const undo = appendToEvalState(state, input);
-    let output;
-    // Based on https://github.com/nodejs/node/blob/92573721c7cff104ccb82b6ed3e8aa69c4b27510/lib/repl.js#L457-L461
-    function adjustUseStrict(code) {
-        // "void 0" keeps the repl from returning "use strict" as the result
-        // value for statements and declarations that don't return a value.
-        return code.replace(/^"use strict";/, '"use strict"; void 0;');
-    }
-    try {
-        output = service.compile(state.input, state.path, -lines);
-    }
-    catch (err) {
-        undo();
-        if (wrappedCmd) {
-            if (err instanceof index_1.TSError && err.diagnosticCodes[0] === 2339) {
-                // Ensure consistent and more sane behavior between { a: 1 }['b'] and ({ a: 1 }['b'])
-                throw err;
-            }
-            // Unwrap and try again
-            return appendCompileAndEvalInput({
-                ...options,
-                wrappedErr: err,
-            });
-        }
-        if (wrappedErr)
-            throw wrappedErr;
-        throw err;
-    }
-    output = adjustUseStrict(output);
-    // Note: REPL does not respect sourcemaps!
-    // To properly do that, we'd need to prefix the code we eval -- which comes
-    // from `diffLines` -- with newlines so that it's at the proper line numbers.
-    // Then we'd need to ensure each bit of eval-ed code, if there are multiples,
-    // has the sourcemap appended to it.
-    // We might also need to integrate with our sourcemap hooks' cache; I'm not sure.
-    const outputWithoutSourcemapComment = output.replace(sourcemapCommentRe, '');
-    const oldOutputWithoutSourcemapComment = state.output.replace(sourcemapCommentRe, '');
-    // Use `diff` to check for new JavaScript to execute.
-    const changes = getDiffLines()(oldOutputWithoutSourcemapComment, outputWithoutSourcemapComment);
-    if (isCompletion) {
-        undo();
-    }
-    else {
-        state.output = output;
-        // Insert a semicolon to make sure that the code doesn't interact with the next line,
-        // for example to prevent `2\n+ 2` from producing 4.
-        // This is safe since the output will not change since we can only get here with successful inputs,
-        // and adding a semicolon to the end of a successful input won't ever change the output.
-        state.input = state.input.replace(/([^\n\s])([\n\s]*)$/, (all, lastChar, whitespace) => {
-            if (lastChar !== ';')
-                return `${lastChar};${whitespace}`;
-            return all;
-        });
-    }
-    let commands = [];
-    let containsTopLevelAwait = false;
-    // Build a list of "commands": bits of JS code in the diff that must be executed.
-    for (const change of changes) {
-        if (change.added) {
-            if (enableTopLevelAwait &&
-                service.shouldReplAwait &&
-                change.value.indexOf('await') > -1) {
-                const processTopLevelAwait = getProcessTopLevelAwait();
-                // Newline prevents comments to mess with wrapper
-                const wrappedResult = processTopLevelAwait(change.value + '\n');
-                if (wrappedResult !== null) {
-                    containsTopLevelAwait = true;
-                    commands.push({
-                        mustAwait: true,
-                        execCommand: () => runInContext(wrappedResult, state.path, context),
-                    });
-                    continue;
-                }
-            }
-            commands.push({
-                execCommand: () => runInContext(change.value, state.path, context),
-            });
-        }
+SourceMapGenerator.prototype.toJSON =
+  function SourceMapGenerator_toJSON() {
+    var map = {
+      version: this._version,
+      sources: this._sources.toArray(),
+      names: this._names.toArray(),
+      mappings: this._serializeMappings()
+    };
+    if (this._file != null) {
+      map.file = this._file;
     }
-    // Execute all commands asynchronously if necessary, returning the result or a
-    // promise of the result.
-    if (containsTopLevelAwait) {
-        return {
-            containsTopLevelAwait,
-            valuePromise: (async () => {
-                let value;
-                for (const command of commands) {
-                    const r = command.execCommand();
-                    value = command.mustAwait ? await r : r;
-                }
-                return value;
-            })(),
-        };
+    if (this._sourceRoot != null) {
+      map.sourceRoot = this._sourceRoot;
     }
-    else {
-        return {
-            containsTopLevelAwait: false,
-            value: commands.reduce((_, c) => c.execCommand(), undefined),
-        };
+    if (this._sourcesContents) {
+      map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);
     }
-}
+
+    return map;
+  };
+
 /**
- * Low-level execution of JS code in context
+ * Render the source map being generated to a string.
  */
-function runInContext(code, filename, context) {
-    const script = new vm_1.Script(code, { filename });
-    if (context === undefined || context === global) {
-        return script.runInThisContext();
-    }
-    else {
-        return script.runInContext(context);
-    }
-}
+SourceMapGenerator.prototype.toString =
+  function SourceMapGenerator_toString() {
+    return JSON.stringify(this.toJSON());
+  };
+
+exports.h = SourceMapGenerator;
+
+
+/***/ }),
+
+/***/ 92616:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+var __webpack_unused_export__;
+/* -*- Mode: js; js-indent-level: 2; -*- */
+/*
+ * Copyright 2011 Mozilla Foundation and contributors
+ * Licensed under the New BSD license. See LICENSE or:
+ * http://opensource.org/licenses/BSD-3-Clause
+ */
+
+var SourceMapGenerator = (__nccwpck_require__(69425)/* .SourceMapGenerator */ .h);
+var util = __nccwpck_require__(12344);
+
+// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other
+// operating systems these days (capturing the result).
+var REGEX_NEWLINE = /(\r?\n)/;
+
+// Newline character code for charCodeAt() comparisons
+var NEWLINE_CODE = 10;
+
+// Private symbol for identifying `SourceNode`s when multiple versions of
+// the source-map library are loaded. This MUST NOT CHANGE across
+// versions!
+var isSourceNode = "$$$isSourceNode$$$";
+
 /**
- * Append to the eval instance and return an undo function.
+ * SourceNodes provide a way to abstract over interpolating/concatenating
+ * snippets of generated JavaScript source code while maintaining the line and
+ * column information associated with the original source code.
+ *
+ * @param aLine The original line number.
+ * @param aColumn The original column number.
+ * @param aSource The original source's filename.
+ * @param aChunks Optional. An array of strings which are snippets of
+ *        generated JS, or other SourceNodes.
+ * @param aName The original identifier.
  */
-function appendToEvalState(state, input) {
-    const undoInput = state.input;
-    const undoVersion = state.version;
-    const undoOutput = state.output;
-    const undoLines = state.lines;
-    state.input += input;
-    state.lines += lineCount(input);
-    state.version++;
-    return function () {
-        state.input = undoInput;
-        state.output = undoOutput;
-        state.version = undoVersion;
-        state.lines = undoLines;
-    };
+function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
+  this.children = [];
+  this.sourceContents = {};
+  this.line = aLine == null ? null : aLine;
+  this.column = aColumn == null ? null : aColumn;
+  this.source = aSource == null ? null : aSource;
+  this.name = aName == null ? null : aName;
+  this[isSourceNode] = true;
+  if (aChunks != null) this.add(aChunks);
 }
+
 /**
- * Count the number of lines.
+ * Creates a SourceNode from generated code and a SourceMapConsumer.
+ *
+ * @param aGeneratedCode The generated code
+ * @param aSourceMapConsumer The SourceMap for the generated code
+ * @param aRelativePath Optional. The path that relative sources in the
+ *        SourceMapConsumer should be relative to.
  */
-function lineCount(value) {
-    let count = 0;
-    for (const char of value) {
-        if (char === '\n') {
-            count++;
+SourceNode.fromStringWithSourceMap =
+  function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
+    // The SourceNode we want to fill with the generated code
+    // and the SourceMap
+    var node = new SourceNode();
+
+    // All even indices of this array are one line of the generated code,
+    // while all odd indices are the newlines between two adjacent lines
+    // (since `REGEX_NEWLINE` captures its match).
+    // Processed fragments are accessed by calling `shiftNextLine`.
+    var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);
+    var remainingLinesIndex = 0;
+    var shiftNextLine = function() {
+      var lineContents = getNextLine();
+      // The last line of a file might not have a newline.
+      var newLine = getNextLine() || "";
+      return lineContents + newLine;
+
+      function getNextLine() {
+        return remainingLinesIndex < remainingLines.length ?
+            remainingLines[remainingLinesIndex++] : undefined;
+      }
+    };
+
+    // We need to remember the position of "remainingLines"
+    var lastGeneratedLine = 1, lastGeneratedColumn = 0;
+
+    // The generate SourceNodes we need a code range.
+    // To extract it current and last mapping is used.
+    // Here we store the last mapping.
+    var lastMapping = null;
+
+    aSourceMapConsumer.eachMapping(function (mapping) {
+      if (lastMapping !== null) {
+        // We add the code from "lastMapping" to "mapping":
+        // First check if there is a new line in between.
+        if (lastGeneratedLine < mapping.generatedLine) {
+          // Associate first line with "lastMapping"
+          addMappingWithCode(lastMapping, shiftNextLine());
+          lastGeneratedLine++;
+          lastGeneratedColumn = 0;
+          // The remaining code is added without mapping
+        } else {
+          // There is no new line in between.
+          // Associate the code between "lastGeneratedColumn" and
+          // "mapping.generatedColumn" with "lastMapping"
+          var nextLine = remainingLines[remainingLinesIndex] || '';
+          var code = nextLine.substr(0, mapping.generatedColumn -
+                                        lastGeneratedColumn);
+          remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn -
+                                              lastGeneratedColumn);
+          lastGeneratedColumn = mapping.generatedColumn;
+          addMappingWithCode(lastMapping, code);
+          // No more remaining code, continue
+          lastMapping = mapping;
+          return;
+        }
+      }
+      // We add the generated code until the first mapping
+      // to the SourceNode without any mapping.
+      // Each line is added as separate string.
+      while (lastGeneratedLine < mapping.generatedLine) {
+        node.add(shiftNextLine());
+        lastGeneratedLine++;
+      }
+      if (lastGeneratedColumn < mapping.generatedColumn) {
+        var nextLine = remainingLines[remainingLinesIndex] || '';
+        node.add(nextLine.substr(0, mapping.generatedColumn));
+        remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);
+        lastGeneratedColumn = mapping.generatedColumn;
+      }
+      lastMapping = mapping;
+    }, this);
+    // We have processed all mappings.
+    if (remainingLinesIndex < remainingLines.length) {
+      if (lastMapping) {
+        // Associate the remaining code in the current line with "lastMapping"
+        addMappingWithCode(lastMapping, shiftNextLine());
+      }
+      // and add the remaining lines without any mapping
+      node.add(remainingLines.splice(remainingLinesIndex).join(""));
+    }
+
+    // Copy sourcesContent into SourceNode
+    aSourceMapConsumer.sources.forEach(function (sourceFile) {
+      var content = aSourceMapConsumer.sourceContentFor(sourceFile);
+      if (content != null) {
+        if (aRelativePath != null) {
+          sourceFile = util.join(aRelativePath, sourceFile);
         }
+        node.setSourceContent(sourceFile, content);
+      }
+    });
+
+    return node;
+
+    function addMappingWithCode(mapping, code) {
+      if (mapping === null || mapping.source === undefined) {
+        node.add(code);
+      } else {
+        var source = aRelativePath
+          ? util.join(aRelativePath, mapping.source)
+          : mapping.source;
+        node.add(new SourceNode(mapping.originalLine,
+                                mapping.originalColumn,
+                                source,
+                                code,
+                                mapping.name));
+      }
     }
-    return count;
-}
+  };
+
 /**
- * TS diagnostic codes which are recoverable, meaning that the user likely entered an incomplete line of code
- * and should be prompted for the next.  For example, starting a multi-line for() loop and not finishing it.
- * null value means code is always recoverable.  `Set` means code is only recoverable when occurring alongside at least one
- * of the other codes.
+ * Add a chunk of generated JS to this source node.
+ *
+ * @param aChunk A string snippet of generated JS code, another instance of
+ *        SourceNode, or an array where each member is one of those things.
  */
-const RECOVERY_CODES = new Map([
-    [1003, null],
-    [1005, null],
-    [1109, null],
-    [1126, null],
-    [
-        1136,
-        new Set([1005]), // happens when typing out an object literal or block scope across multiple lines: '{ foo: 123,'
-    ],
-    [1160, null],
-    [1161, null],
-    [2355, null],
-    [2391, null],
-    [
-        7010,
-        new Set([1005]), // happens when fn signature spread across multiple lines: 'function a(\nb: any\n) {'
-    ],
-]);
+SourceNode.prototype.add = function SourceNode_add(aChunk) {
+  if (Array.isArray(aChunk)) {
+    aChunk.forEach(function (chunk) {
+      this.add(chunk);
+    }, this);
+  }
+  else if (aChunk[isSourceNode] || typeof aChunk === "string") {
+    if (aChunk) {
+      this.children.push(aChunk);
+    }
+  }
+  else {
+    throw new TypeError(
+      "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
+    );
+  }
+  return this;
+};
+
 /**
- * Diagnostic codes raised when using top-level await.
- * These are suppressed when top-level await is enabled.
- * When it is *not* enabled, these trigger a helpful hint about enabling top-level await.
+ * Add a chunk of generated JS to the beginning of this source node.
+ *
+ * @param aChunk A string snippet of generated JS code, another instance of
+ *        SourceNode, or an array where each member is one of those things.
  */
-const topLevelAwaitDiagnosticCodes = [
-    1375,
-    1378,
-    1431,
-    1432, // Top-level 'for await' loops are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher.
-];
+SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {
+  if (Array.isArray(aChunk)) {
+    for (var i = aChunk.length-1; i >= 0; i--) {
+      this.prepend(aChunk[i]);
+    }
+  }
+  else if (aChunk[isSourceNode] || typeof aChunk === "string") {
+    this.children.unshift(aChunk);
+  }
+  else {
+    throw new TypeError(
+      "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
+    );
+  }
+  return this;
+};
+
 /**
- * Check if a function can recover gracefully.
+ * Walk over the tree of JS snippets in this node and its children. The
+ * walking function is called once for each snippet of JS and is passed that
+ * snippet and the its original associated source's line/column location.
+ *
+ * @param aFn The traversal function.
  */
-function isRecoverable(error) {
-    return error.diagnosticCodes.every((code) => {
-        const deps = RECOVERY_CODES.get(code);
-        return (deps === null ||
-            (deps && error.diagnosticCodes.some((code) => deps.has(code))));
-    });
-}
+SourceNode.prototype.walk = function SourceNode_walk(aFn) {
+  var chunk;
+  for (var i = 0, len = this.children.length; i < len; i++) {
+    chunk = this.children[i];
+    if (chunk[isSourceNode]) {
+      chunk.walk(aFn);
+    }
+    else {
+      if (chunk !== '') {
+        aFn(chunk, { source: this.source,
+                     line: this.line,
+                     column: this.column,
+                     name: this.name });
+      }
+    }
+  }
+};
+
 /**
- * @internal
- * Set properties on `context` before eval-ing [stdin] or [eval] input.
+ * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between
+ * each of `this.children`.
+ *
+ * @param aSep The separator.
  */
-function setupContext(context, module, filenameAndDirname) {
-    if (filenameAndDirname) {
-        context.__dirname = '.';
-        context.__filename = `[${filenameAndDirname}]`;
+SourceNode.prototype.join = function SourceNode_join(aSep) {
+  var newChildren;
+  var i;
+  var len = this.children.length;
+  if (len > 0) {
+    newChildren = [];
+    for (i = 0; i < len-1; i++) {
+      newChildren.push(this.children[i]);
+      newChildren.push(aSep);
     }
-    context.module = module;
-    context.exports = module.exports;
-    context.require = __nccwpck_require__(3833).bind(module);
-}
-exports.setupContext = setupContext;
-//# sourceMappingURL=repl.js.map
-
-/***/ }),
-
-/***/ 19148:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
+    newChildren.push(this.children[i]);
+    this.children = newChildren;
+  }
+  return this;
+};
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.createResolverFunctions = void 0;
-const path_1 = __nccwpck_require__(71017);
 /**
- * @internal
- * In a factory because these are shared across both CompilerHost and LanguageService codepaths
+ * Call String.prototype.replace on the very right-most source snippet. Useful
+ * for trimming whitespace from the end of a source node, etc.
+ *
+ * @param aPattern The pattern to replace.
+ * @param aReplacement The thing to replace the pattern with.
  */
-function createResolverFunctions(kwargs) {
-    const { host, ts, config, cwd, getCanonicalFileName, projectLocalResolveHelper, options, extensions, } = kwargs;
-    const moduleResolutionCache = ts.createModuleResolutionCache(cwd, getCanonicalFileName, config.options);
-    const knownInternalFilenames = new Set();
-    /** "Buckets" (module directories) whose contents should be marked "internal" */
-    const internalBuckets = new Set();
-    // Get bucket for a source filename.  Bucket is the containing `./node_modules/*/` directory
-    // For '/project/node_modules/foo/node_modules/bar/lib/index.js' bucket is '/project/node_modules/foo/node_modules/bar/'
-    // For '/project/node_modules/foo/node_modules/@scope/bar/lib/index.js' bucket is '/project/node_modules/foo/node_modules/@scope/bar/'
-    const moduleBucketRe = /.*\/node_modules\/(?:@[^\/]+\/)?[^\/]+\//;
-    function getModuleBucket(filename) {
-        const find = moduleBucketRe.exec(filename);
-        if (find)
-            return find[0];
-        return '';
-    }
-    // Mark that this file and all siblings in its bucket should be "internal"
-    function markBucketOfFilenameInternal(filename) {
-        internalBuckets.add(getModuleBucket(filename));
-    }
-    function isFileInInternalBucket(filename) {
-        return internalBuckets.has(getModuleBucket(filename));
-    }
-    function isFileKnownToBeInternal(filename) {
-        return knownInternalFilenames.has(filename);
-    }
-    /**
-     * If we need to emit JS for a file, force TS to consider it non-external
-     */
-    const fixupResolvedModule = (resolvedModule) => {
-        const { resolvedFileName } = resolvedModule;
-        if (resolvedFileName === undefined)
-            return;
-        // [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS]
-        // .ts,.mts,.cts is always switched to internal
-        // .js is switched on-demand
-        if (resolvedModule.isExternalLibraryImport &&
-            ((resolvedFileName.endsWith('.ts') &&
-                !resolvedFileName.endsWith('.d.ts')) ||
-                (resolvedFileName.endsWith('.cts') &&
-                    !resolvedFileName.endsWith('.d.cts')) ||
-                (resolvedFileName.endsWith('.mts') &&
-                    !resolvedFileName.endsWith('.d.mts')) ||
-                isFileKnownToBeInternal(resolvedFileName) ||
-                isFileInInternalBucket(resolvedFileName))) {
-            resolvedModule.isExternalLibraryImport = false;
-        }
-        if (!resolvedModule.isExternalLibraryImport) {
-            knownInternalFilenames.add(resolvedFileName);
-        }
-    };
-    /*
-     * NOTE:
-     * Older ts versions do not pass `redirectedReference` nor `options`.
-     * We must pass `redirectedReference` to newer ts versions, but cannot rely on `options`, hence the weird argument name
-     */
-    const resolveModuleNames = (moduleNames, containingFile, reusedNames, redirectedReference, optionsOnlyWithNewerTsVersions, containingSourceFile) => {
-        return moduleNames.map((moduleName, i) => {
-            var _a, _b;
-            const mode = containingSourceFile
-                ? (_b = (_a = ts).getModeForResolutionAtIndex) === null || _b === void 0 ? void 0 : _b.call(_a, containingSourceFile, i)
-                : undefined;
-            let { resolvedModule } = ts.resolveModuleName(moduleName, containingFile, config.options, host, moduleResolutionCache, redirectedReference, mode);
-            if (!resolvedModule && options.experimentalTsImportSpecifiers) {
-                const lastDotIndex = moduleName.lastIndexOf('.');
-                const ext = lastDotIndex >= 0 ? moduleName.slice(lastDotIndex) : '';
-                if (ext) {
-                    const replacements = extensions.tsResolverEquivalents.get(ext);
-                    for (const replacementExt of replacements !== null && replacements !== void 0 ? replacements : []) {
-                        ({ resolvedModule } = ts.resolveModuleName(moduleName.slice(0, -ext.length) + replacementExt, containingFile, config.options, host, moduleResolutionCache, redirectedReference, mode));
-                        if (resolvedModule)
-                            break;
-                    }
-                }
-            }
-            if (resolvedModule) {
-                fixupResolvedModule(resolvedModule);
-            }
-            return resolvedModule;
-        });
-    };
-    // language service never calls this, but TS docs recommend that we implement it
-    const getResolvedModuleWithFailedLookupLocationsFromCache = (moduleName, containingFile, resolutionMode) => {
-        const ret = ts.resolveModuleNameFromCache(moduleName, containingFile, moduleResolutionCache, resolutionMode);
-        if (ret && ret.resolvedModule) {
-            fixupResolvedModule(ret.resolvedModule);
-        }
-        return ret;
-    };
-    const resolveTypeReferenceDirectives = (typeDirectiveNames, containingFile, redirectedReference, options, containingFileMode // new impliedNodeFormat is accepted by compilerHost
-    ) => {
-        // Note: seems to be called with empty typeDirectiveNames array for all files.
-        // TODO consider using `ts.loadWithTypeDirectiveCache`
-        return typeDirectiveNames.map((typeDirectiveName) => {
-            // Copy-pasted from TS source:
-            const nameIsString = typeof typeDirectiveName === 'string';
-            const mode = nameIsString
-                ? undefined
-                : ts.getModeForFileReference(typeDirectiveName, containingFileMode);
-            const strName = nameIsString
-                ? typeDirectiveName
-                : typeDirectiveName.fileName.toLowerCase();
-            let { resolvedTypeReferenceDirective } = ts.resolveTypeReferenceDirective(strName, containingFile, config.options, host, redirectedReference, undefined, mode);
-            if (typeDirectiveName === 'node' && !resolvedTypeReferenceDirective) {
-                // Resolve @types/node relative to project first, then __dirname (copy logic from elsewhere / refactor into reusable function)
-                let typesNodePackageJsonPath;
-                try {
-                    typesNodePackageJsonPath = projectLocalResolveHelper('@types/node/package.json', true);
-                }
-                catch { } // gracefully do nothing when @types/node is not installed for any reason
-                if (typesNodePackageJsonPath) {
-                    const typeRoots = [(0, path_1.resolve)(typesNodePackageJsonPath, '../..')];
-                    ({ resolvedTypeReferenceDirective } =
-                        ts.resolveTypeReferenceDirective(typeDirectiveName, containingFile, {
-                            ...config.options,
-                            typeRoots,
-                        }, host, redirectedReference));
-                }
-            }
-            if (resolvedTypeReferenceDirective) {
-                fixupResolvedModule(resolvedTypeReferenceDirective);
-            }
-            return resolvedTypeReferenceDirective;
-        });
-    };
-    return {
-        resolveModuleNames,
-        getResolvedModuleWithFailedLookupLocationsFromCache,
-        resolveTypeReferenceDirectives,
-        isFileKnownToBeInternal,
-        markBucketOfFilenameInternal,
-    };
-}
-exports.createResolverFunctions = createResolverFunctions;
-//# sourceMappingURL=resolver-functions.js.map
-
-/***/ }),
-
-/***/ 14851:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
+SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {
+  var lastChild = this.children[this.children.length - 1];
+  if (lastChild[isSourceNode]) {
+    lastChild.replaceRight(aPattern, aReplacement);
+  }
+  else if (typeof lastChild === 'string') {
+    this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
+  }
+  else {
+    this.children.push(''.replace(aPattern, aReplacement));
+  }
+  return this;
+};
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getEmitScriptTarget = exports.getUseDefineForClassFields = exports.getPatternFromSpec = exports.createTsInternals = void 0;
-const path_1 = __nccwpck_require__(71017);
-const util_1 = __nccwpck_require__(64745);
-/** @internal */
-exports.createTsInternals = (0, util_1.cachedLookup)(createTsInternalsUncached);
 /**
- * Given a reference to the TS compiler, return some TS internal functions that we
- * could not or did not want to grab off the `ts` object.
- * These have been copy-pasted from TS's source and tweaked as necessary.
+ * Set the source content for a source file. This will be added to the SourceMapGenerator
+ * in the sourcesContent field.
  *
- * NOTE: This factory returns *only* functions which need a reference to the TS
- * compiler.  Other functions do not need a reference to the TS compiler so are
- * exported directly from this file.
+ * @param aSourceFile The filename of the source file
+ * @param aSourceContent The content of the source file
  */
-function createTsInternalsUncached(_ts) {
-    const ts = _ts;
-    /**
-     * Copied from:
-     * https://github.com/microsoft/TypeScript/blob/v4.3.2/src/compiler/commandLineParser.ts#L2821-L2846
-     */
-    function getExtendsConfigPath(extendedConfig, host, basePath, errors, createDiagnostic) {
-        extendedConfig = (0, util_1.normalizeSlashes)(extendedConfig);
-        if (isRootedDiskPath(extendedConfig) ||
-            startsWith(extendedConfig, './') ||
-            startsWith(extendedConfig, '../')) {
-            let extendedConfigPath = getNormalizedAbsolutePath(extendedConfig, basePath);
-            if (!host.fileExists(extendedConfigPath) &&
-                !endsWith(extendedConfigPath, ts.Extension.Json)) {
-                extendedConfigPath = `${extendedConfigPath}.json`;
-                if (!host.fileExists(extendedConfigPath)) {
-                    errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig));
-                    return undefined;
-                }
-            }
-            return extendedConfigPath;
-        }
-        // If the path isn't a rooted or relative path, resolve like a module
-        const tsGte5_3_0 = (0, util_1.versionGteLt)(ts.version, '5.3.0');
-        const resolved = ts.nodeModuleNameResolver(extendedConfig, combinePaths(basePath, 'tsconfig.json'), { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host, 
-        /*cache*/ undefined, 
-        /*projectRefs*/ undefined, 
-        /*conditionsOrIsConfigLookup*/ tsGte5_3_0 ? undefined : true, 
-        /*isConfigLookup*/ tsGte5_3_0 ? true : undefined);
-        if (resolved.resolvedModule) {
-            return resolved.resolvedModule.resolvedFileName;
-        }
-        errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig));
-        return undefined;
-    }
-    return { getExtendsConfigPath };
-}
-// These functions have alternative implementation to avoid copying too much from TS
-function isRootedDiskPath(path) {
-    return (0, path_1.isAbsolute)(path);
-}
-function combinePaths(path, ...paths) {
-    return (0, util_1.normalizeSlashes)((0, path_1.resolve)(path, ...paths.filter((path) => path)));
-}
-function getNormalizedAbsolutePath(fileName, currentDirectory) {
-    return (0, util_1.normalizeSlashes)(currentDirectory != null
-        ? (0, path_1.resolve)(currentDirectory, fileName)
-        : (0, path_1.resolve)(fileName));
-}
-function startsWith(str, prefix) {
-    return str.lastIndexOf(prefix, 0) === 0;
-}
-function endsWith(str, suffix) {
-    const expectedPos = str.length - suffix.length;
-    return expectedPos >= 0 && str.indexOf(suffix, expectedPos) === expectedPos;
-}
-// Reserved characters, forces escaping of any non-word (or digit), non-whitespace character.
-// It may be inefficient (we could just match (/[-[\]{}()*+?.,\\^$|#\s]/g), but this is future
-// proof.
-const reservedCharacterPattern = /[^\w\s\/]/g;
+SourceNode.prototype.setSourceContent =
+  function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
+    this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
+  };
+
 /**
- * @internal
- * See also: getRegularExpressionForWildcard, which seems to do almost the same thing
+ * Walk over the tree of SourceNodes. The walking function is called for each
+ * source file content and is passed the filename and source content.
+ *
+ * @param aFn The traversal function.
  */
-function getPatternFromSpec(spec, basePath) {
-    const pattern = spec && getSubPatternFromSpec(spec, basePath, excludeMatcher);
-    return pattern && `^(${pattern})${'($|/)'}`;
-}
-exports.getPatternFromSpec = getPatternFromSpec;
-function getSubPatternFromSpec(spec, basePath, { singleAsteriskRegexFragment, doubleAsteriskRegexFragment, replaceWildcardCharacter, }) {
-    let subpattern = '';
-    let hasWrittenComponent = false;
-    const components = getNormalizedPathComponents(spec, basePath);
-    const lastComponent = last(components);
-    // getNormalizedPathComponents includes the separator for the root component.
-    // We need to remove to create our regex correctly.
-    components[0] = removeTrailingDirectorySeparator(components[0]);
-    if (isImplicitGlob(lastComponent)) {
-        components.push('**', '*');
-    }
-    let optionalCount = 0;
-    for (let component of components) {
-        if (component === '**') {
-            subpattern += doubleAsteriskRegexFragment;
-        }
-        else {
-            if (hasWrittenComponent) {
-                subpattern += directorySeparator;
-            }
-            subpattern += component.replace(reservedCharacterPattern, replaceWildcardCharacter);
-        }
-        hasWrittenComponent = true;
+SourceNode.prototype.walkSourceContents =
+  function SourceNode_walkSourceContents(aFn) {
+    for (var i = 0, len = this.children.length; i < len; i++) {
+      if (this.children[i][isSourceNode]) {
+        this.children[i].walkSourceContents(aFn);
+      }
     }
-    while (optionalCount > 0) {
-        subpattern += ')?';
-        optionalCount--;
+
+    var sources = Object.keys(this.sourceContents);
+    for (var i = 0, len = sources.length; i < len; i++) {
+      aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
     }
-    return subpattern;
-}
-const directoriesMatcher = {
-    singleAsteriskRegexFragment: '[^/]*',
-    /**
-     * Regex for the ** wildcard. Matches any num of subdirectories. When used for including
-     * files or directories, does not match subdirectories that start with a . character
-     */
-    doubleAsteriskRegexFragment: `(/[^/.][^/]*)*?`,
-    replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment),
-};
-const excludeMatcher = {
-    singleAsteriskRegexFragment: '[^/]*',
-    doubleAsteriskRegexFragment: '(/.+?)?',
-    replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, excludeMatcher.singleAsteriskRegexFragment),
+  };
+
+/**
+ * Return the string representation of this source node. Walks over the tree
+ * and concatenates all the various snippets together to one string.
+ */
+SourceNode.prototype.toString = function SourceNode_toString() {
+  var str = "";
+  this.walk(function (chunk) {
+    str += chunk;
+  });
+  return str;
 };
-function getNormalizedPathComponents(path, currentDirectory) {
-    return reducePathComponents(getPathComponents(path, currentDirectory));
-}
-function getPathComponents(path, currentDirectory = '') {
-    path = combinePaths(currentDirectory, path);
-    return pathComponents(path, getRootLength(path));
-}
-function reducePathComponents(components) {
-    if (!some(components))
-        return [];
-    const reduced = [components[0]];
-    for (let i = 1; i < components.length; i++) {
-        const component = components[i];
-        if (!component)
-            continue;
-        if (component === '.')
-            continue;
-        if (component === '..') {
-            if (reduced.length > 1) {
-                if (reduced[reduced.length - 1] !== '..') {
-                    reduced.pop();
-                    continue;
-                }
-            }
-            else if (reduced[0])
-                continue;
-        }
-        reduced.push(component);
-    }
-    return reduced;
-}
-function getRootLength(path) {
-    const rootLength = getEncodedRootLength(path);
-    return rootLength < 0 ? ~rootLength : rootLength;
-}
-function getEncodedRootLength(path) {
-    if (!path)
-        return 0;
-    const ch0 = path.charCodeAt(0);
-    // POSIX or UNC
-    if (ch0 === 47 /* CharacterCodes.slash */ || ch0 === 92 /* CharacterCodes.backslash */) {
-        if (path.charCodeAt(1) !== ch0)
-            return 1; // POSIX: "/" (or non-normalized "\")
-        const p1 = path.indexOf(ch0 === 47 /* CharacterCodes.slash */ ? directorySeparator : altDirectorySeparator, 2);
-        if (p1 < 0)
-            return path.length; // UNC: "//server" or "\\server"
-        return p1 + 1; // UNC: "//server/" or "\\server\"
-    }
-    // DOS
-    if (isVolumeCharacter(ch0) && path.charCodeAt(1) === 58 /* CharacterCodes.colon */) {
-        const ch2 = path.charCodeAt(2);
-        if (ch2 === 47 /* CharacterCodes.slash */ || ch2 === 92 /* CharacterCodes.backslash */)
-            return 3; // DOS: "c:/" or "c:\"
-        if (path.length === 2)
-            return 2; // DOS: "c:" (but not "c:d")
-    }
-    // URL
-    const schemeEnd = path.indexOf(urlSchemeSeparator);
-    if (schemeEnd !== -1) {
-        const authorityStart = schemeEnd + urlSchemeSeparator.length;
-        const authorityEnd = path.indexOf(directorySeparator, authorityStart);
-        if (authorityEnd !== -1) {
-            // URL: "file:///", "file://server/", "file://server/path"
-            // For local "file" URLs, include the leading DOS volume (if present).
-            // Per https://www.ietf.org/rfc/rfc1738.txt, a host of "" or "localhost" is a
-            // special case interpreted as "the machine from which the URL is being interpreted".
-            const scheme = path.slice(0, schemeEnd);
-            const authority = path.slice(authorityStart, authorityEnd);
-            if (scheme === 'file' &&
-                (authority === '' || authority === 'localhost') &&
-                isVolumeCharacter(path.charCodeAt(authorityEnd + 1))) {
-                const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path, authorityEnd + 2);
-                if (volumeSeparatorEnd !== -1) {
-                    if (path.charCodeAt(volumeSeparatorEnd) === 47 /* CharacterCodes.slash */) {
-                        // URL: "file:///c:/", "file://localhost/c:/", "file:///c%3a/", "file://localhost/c%3a/"
-                        return ~(volumeSeparatorEnd + 1);
-                    }
-                    if (volumeSeparatorEnd === path.length) {
-                        // URL: "file:///c:", "file://localhost/c:", "file:///c$3a", "file://localhost/c%3a"
-                        // but not "file:///c:d" or "file:///c%3ad"
-                        return ~volumeSeparatorEnd;
-                    }
-                }
-            }
-            return ~(authorityEnd + 1); // URL: "file://server/", "http://server/"
+
+/**
+ * Returns the string representation of this source node along with a source
+ * map.
+ */
+SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {
+  var generated = {
+    code: "",
+    line: 1,
+    column: 0
+  };
+  var map = new SourceMapGenerator(aArgs);
+  var sourceMappingActive = false;
+  var lastOriginalSource = null;
+  var lastOriginalLine = null;
+  var lastOriginalColumn = null;
+  var lastOriginalName = null;
+  this.walk(function (chunk, original) {
+    generated.code += chunk;
+    if (original.source !== null
+        && original.line !== null
+        && original.column !== null) {
+      if(lastOriginalSource !== original.source
+         || lastOriginalLine !== original.line
+         || lastOriginalColumn !== original.column
+         || lastOriginalName !== original.name) {
+        map.addMapping({
+          source: original.source,
+          original: {
+            line: original.line,
+            column: original.column
+          },
+          generated: {
+            line: generated.line,
+            column: generated.column
+          },
+          name: original.name
+        });
+      }
+      lastOriginalSource = original.source;
+      lastOriginalLine = original.line;
+      lastOriginalColumn = original.column;
+      lastOriginalName = original.name;
+      sourceMappingActive = true;
+    } else if (sourceMappingActive) {
+      map.addMapping({
+        generated: {
+          line: generated.line,
+          column: generated.column
         }
-        return ~path.length; // URL: "file://server", "http://server"
-    }
-    // relative
-    return 0;
-}
-function ensureTrailingDirectorySeparator(path) {
-    if (!hasTrailingDirectorySeparator(path)) {
-        return path + directorySeparator;
-    }
-    return path;
-}
-function hasTrailingDirectorySeparator(path) {
-    return (path.length > 0 && isAnyDirectorySeparator(path.charCodeAt(path.length - 1)));
-}
-function isAnyDirectorySeparator(charCode) {
-    return (charCode === 47 /* CharacterCodes.slash */ || charCode === 92 /* CharacterCodes.backslash */);
-}
-function removeTrailingDirectorySeparator(path) {
-    if (hasTrailingDirectorySeparator(path)) {
-        return path.substr(0, path.length - 1);
-    }
-    return path;
-}
-const directorySeparator = '/';
-const altDirectorySeparator = '\\';
-const urlSchemeSeparator = '://';
-function isVolumeCharacter(charCode) {
-    return ((charCode >= 97 /* CharacterCodes.a */ && charCode <= 122 /* CharacterCodes.z */) ||
-        (charCode >= 65 /* CharacterCodes.A */ && charCode <= 90 /* CharacterCodes.Z */));
-}
-function getFileUrlVolumeSeparatorEnd(url, start) {
-    const ch0 = url.charCodeAt(start);
-    if (ch0 === 58 /* CharacterCodes.colon */)
-        return start + 1;
-    if (ch0 === 37 /* CharacterCodes.percent */ &&
-        url.charCodeAt(start + 1) === 51 /* CharacterCodes._3 */) {
-        const ch2 = url.charCodeAt(start + 2);
-        if (ch2 === 97 /* CharacterCodes.a */ || ch2 === 65 /* CharacterCodes.A */)
-            return start + 3;
+      });
+      lastOriginalSource = null;
+      sourceMappingActive = false;
     }
-    return -1;
-}
-function some(array, predicate) {
-    if (array) {
-        if (predicate) {
-            for (const v of array) {
-                if (predicate(v)) {
-                    return true;
-                }
-            }
-        }
-        else {
-            return array.length > 0;
+    for (var idx = 0, length = chunk.length; idx < length; idx++) {
+      if (chunk.charCodeAt(idx) === NEWLINE_CODE) {
+        generated.line++;
+        generated.column = 0;
+        // Mappings end at eol
+        if (idx + 1 === length) {
+          lastOriginalSource = null;
+          sourceMappingActive = false;
+        } else if (sourceMappingActive) {
+          map.addMapping({
+            source: original.source,
+            original: {
+              line: original.line,
+              column: original.column
+            },
+            generated: {
+              line: generated.line,
+              column: generated.column
+            },
+            name: original.name
+          });
         }
+      } else {
+        generated.column++;
+      }
     }
-    return false;
-}
-function pathComponents(path, rootLength) {
-    const root = path.substring(0, rootLength);
-    const rest = path.substring(rootLength).split(directorySeparator);
-    if (rest.length && !lastOrUndefined(rest))
-        rest.pop();
-    return [root, ...rest];
-}
-function lastOrUndefined(array) {
-    return array.length === 0 ? undefined : array[array.length - 1];
-}
-function last(array) {
-    // Debug.assert(array.length !== 0);
-    return array[array.length - 1];
-}
-function replaceWildcardCharacter(match, singleAsteriskRegexFragment) {
-    return match === '*'
-        ? singleAsteriskRegexFragment
-        : match === '?'
-            ? '[^/]'
-            : '\\' + match;
-}
-/**
- * An "includes" path "foo" is implicitly a glob "foo/** /*" (without the space) if its last component has no extension,
- * and does not contain any glob characters itself.
- */
-function isImplicitGlob(lastPathComponent) {
-    return !/[.*?]/.test(lastPathComponent);
-}
-const ts_ScriptTarget_ES5 = 1;
-const ts_ScriptTarget_ES2022 = 9;
-const ts_ScriptTarget_ESNext = 99;
-const ts_ModuleKind_Node16 = 100;
-const ts_ModuleKind_NodeNext = 199;
-// https://github.com/microsoft/TypeScript/blob/fc418a2e611c88cf9afa0115ff73490b2397d311/src/compiler/utilities.ts#L8761
-function getUseDefineForClassFields(compilerOptions) {
-    return compilerOptions.useDefineForClassFields === undefined
-        ? getEmitScriptTarget(compilerOptions) >= ts_ScriptTarget_ES2022
-        : compilerOptions.useDefineForClassFields;
-}
-exports.getUseDefineForClassFields = getUseDefineForClassFields;
-// https://github.com/microsoft/TypeScript/blob/fc418a2e611c88cf9afa0115ff73490b2397d311/src/compiler/utilities.ts#L8556
-function getEmitScriptTarget(compilerOptions) {
-    var _a;
-    return ((_a = compilerOptions.target) !== null && _a !== void 0 ? _a : ((compilerOptions.module === ts_ModuleKind_Node16 && ts_ScriptTarget_ES2022) ||
-        (compilerOptions.module === ts_ModuleKind_NodeNext && ts_ScriptTarget_ESNext) ||
-        ts_ScriptTarget_ES5));
-}
-exports.getEmitScriptTarget = getEmitScriptTarget;
-//# sourceMappingURL=ts-internals.js.map
-
-/***/ }),
+  });
+  this.walkSourceContents(function (sourceFile, sourceContent) {
+    map.setSourceContent(sourceFile, sourceContent);
+  });
 
-/***/ 4444:
-/***/ ((__unused_webpack_module, exports) => {
+  return { code: generated.code, map: map };
+};
 
-"use strict";
+__webpack_unused_export__ = SourceNode;
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.createTsTranspileModule = void 0;
-/** @internal */
-function createTsTranspileModule(ts, transpileOptions) {
-    const { createProgram, createSourceFile, getDefaultCompilerOptions, getImpliedNodeFormatForFile, fixupCompilerOptions, transpileOptionValueCompilerOptions, getNewLineCharacter, fileExtensionIs, normalizePath, Debug, toPath, getSetExternalModuleIndicator, getEntries, addRange, hasProperty, getEmitScriptTarget, getDirectoryPath, } = ts;
-    const compilerOptionsDiagnostics = [];
-    const options = transpileOptions.compilerOptions
-        ? fixupCompilerOptions(transpileOptions.compilerOptions, compilerOptionsDiagnostics)
-        : {};
-    // mix in default options
-    const defaultOptions = getDefaultCompilerOptions();
-    for (const key in defaultOptions) {
-        if (hasProperty(defaultOptions, key) && options[key] === undefined) {
-            options[key] = defaultOptions[key];
-        }
-    }
-    for (const option of transpileOptionValueCompilerOptions) {
-        options[option.name] = option.transpileOptionValue;
-    }
-    // transpileModule does not write anything to disk so there is no need to verify that there are no conflicts between input and output paths.
-    options.suppressOutputPathCheck = true;
-    // Filename can be non-ts file.
-    options.allowNonTsExtensions = true;
-    const newLine = getNewLineCharacter(options);
-    // Create a compilerHost object to allow the compiler to read and write files
-    const compilerHost = {
-        getSourceFile: (fileName) => fileName === normalizePath(inputFileName) ? sourceFile : undefined,
-        writeFile: (name, text) => {
-            if (fileExtensionIs(name, '.map')) {
-                Debug.assertEqual(sourceMapText, undefined, 'Unexpected multiple source map outputs, file:', name);
-                sourceMapText = text;
-            }
-            else {
-                Debug.assertEqual(outputText, undefined, 'Unexpected multiple outputs, file:', name);
-                outputText = text;
-            }
-        },
-        getDefaultLibFileName: () => 'lib.d.ts',
-        useCaseSensitiveFileNames: () => true,
-        getCanonicalFileName: (fileName) => fileName,
-        getCurrentDirectory: () => '',
-        getNewLine: () => newLine,
-        fileExists: (fileName) => fileName === inputFileName || fileName === packageJsonFileName,
-        readFile: (fileName) => fileName === packageJsonFileName ? `{"type": "${_packageJsonType}"}` : '',
-        directoryExists: () => true,
-        getDirectories: () => [],
-    };
-    let inputFileName;
-    let packageJsonFileName;
-    let _packageJsonType;
-    let sourceFile;
-    let outputText;
-    let sourceMapText;
-    return transpileModule;
-    function transpileModule(input, transpileOptions2, packageJsonType = 'commonjs') {
-        // if jsx is specified then treat file as .tsx
-        inputFileName =
-            transpileOptions2.fileName ||
-                (transpileOptions.compilerOptions && transpileOptions.compilerOptions.jsx
-                    ? 'module.tsx'
-                    : 'module.ts');
-        packageJsonFileName = getDirectoryPath(inputFileName) + '/package.json';
-        _packageJsonType = packageJsonType;
-        sourceFile = createSourceFile(inputFileName, input, {
-            languageVersion: getEmitScriptTarget(options),
-            impliedNodeFormat: getImpliedNodeFormatForFile(toPath(inputFileName, '', compilerHost.getCanonicalFileName), 
-            /*cache*/ undefined, compilerHost, options),
-            setExternalModuleIndicator: getSetExternalModuleIndicator(options),
-        });
-        if (transpileOptions2.moduleName) {
-            sourceFile.moduleName = transpileOptions2.moduleName;
-        }
-        if (transpileOptions2.renamedDependencies) {
-            sourceFile.renamedDependencies = new Map(getEntries(transpileOptions2.renamedDependencies));
-        }
-        // Output
-        outputText = undefined;
-        sourceMapText = undefined;
-        const program = createProgram([inputFileName], options, compilerHost);
-        const diagnostics = compilerOptionsDiagnostics.slice();
-        if (transpileOptions.reportDiagnostics) {
-            addRange(
-            /*to*/ diagnostics, 
-            /*from*/ program.getSyntacticDiagnostics(sourceFile));
-            addRange(/*to*/ diagnostics, /*from*/ program.getOptionsDiagnostics());
-        }
-        // Emit
-        program.emit(
-        /*targetSourceFile*/ undefined, 
-        /*writeFile*/ undefined, 
-        /*cancellationToken*/ undefined, 
-        /*emitOnlyDtsFiles*/ undefined, transpileOptions.transformers);
-        if (outputText === undefined)
-            return Debug.fail('Output generation failed');
-        return { outputText, diagnostics, sourceMapText };
-    }
-}
-exports.createTsTranspileModule = createTsTranspileModule;
-//# sourceMappingURL=ts-transpile-module.js.map
 
 /***/ }),
 
-/***/ 91533:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ 12344:
+/***/ ((__unused_webpack_module, exports) => {
 
-"use strict";
+/* -*- Mode: js; js-indent-level: 2; -*- */
+/*
+ * Copyright 2011 Mozilla Foundation and contributors
+ * Licensed under the New BSD license. See LICENSE or:
+ * http://opensource.org/licenses/BSD-3-Clause
+ */
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getDefaultTsconfigJsonForNodeVersion = void 0;
-const nodeMajor = parseInt(process.versions.node.split('.')[0], 10);
 /**
- * return parsed JSON of the bundled @tsconfig/bases config appropriate for the
- * running version of nodejs
- * @internal
+ * This is a helper function for getting values from parameter/options
+ * objects.
+ *
+ * @param args The object we are extracting values from
+ * @param name The name of the property we are getting.
+ * @param defaultValue An optional value to return if the property is missing
+ * from the object. If this is not specified and the property is missing, an
+ * error will be thrown.
  */
-function getDefaultTsconfigJsonForNodeVersion(ts) {
-    const tsInternal = ts;
-    if (nodeMajor >= 16) {
-        const config = __nccwpck_require__(39777);
-        if (configCompatible(config))
-            return config;
-    }
-    if (nodeMajor >= 14) {
-        const config = __nccwpck_require__(83754);
-        if (configCompatible(config))
-            return config;
-    }
-    if (nodeMajor >= 12) {
-        const config = __nccwpck_require__(56049);
-        if (configCompatible(config))
-            return config;
-    }
-    return __nccwpck_require__(78250);
-    // Verify that tsconfig target and lib options are compatible with TypeScript compiler
-    function configCompatible(config) {
-        return (typeof ts.ScriptTarget[config.compilerOptions.target.toUpperCase()] === 'number' &&
-            tsInternal.libs &&
-            config.compilerOptions.lib.every((lib) => tsInternal.libs.includes(lib)));
-    }
+function getArg(aArgs, aName, aDefaultValue) {
+  if (aName in aArgs) {
+    return aArgs[aName];
+  } else if (arguments.length === 3) {
+    return aDefaultValue;
+  } else {
+    throw new Error('"' + aName + '" is a required argument.');
+  }
 }
-exports.getDefaultTsconfigJsonForNodeVersion = getDefaultTsconfigJsonForNodeVersion;
-//# sourceMappingURL=tsconfigs.js.map
+exports.getArg = getArg;
 
-/***/ }),
+var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
+var dataUrlRegexp = /^data:.+\,.+$/;
 
-/***/ 64745:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+function urlParse(aUrl) {
+  var match = aUrl.match(urlRegexp);
+  if (!match) {
+    return null;
+  }
+  return {
+    scheme: match[1],
+    auth: match[2],
+    host: match[3],
+    port: match[4],
+    path: match[5]
+  };
+}
+exports.urlParse = urlParse;
 
-"use strict";
+function urlGenerate(aParsedUrl) {
+  var url = '';
+  if (aParsedUrl.scheme) {
+    url += aParsedUrl.scheme + ':';
+  }
+  url += '//';
+  if (aParsedUrl.auth) {
+    url += aParsedUrl.auth + '@';
+  }
+  if (aParsedUrl.host) {
+    url += aParsedUrl.host;
+  }
+  if (aParsedUrl.port) {
+    url += ":" + aParsedUrl.port
+  }
+  if (aParsedUrl.path) {
+    url += aParsedUrl.path;
+  }
+  return url;
+}
+exports.urlGenerate = urlGenerate;
 
-var _a;
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.versionGteLt = exports.once = exports.getBasePathForProjectLocalDependencyResolution = exports.createProjectLocalResolveHelper = exports.attemptRequireWithV8CompileCache = exports.cachedLookup = exports.hasOwnProperty = exports.normalizeSlashes = exports.parse = exports.split = exports.assign = exports.yn = exports.createRequire = void 0;
-const module_1 = __nccwpck_require__(98188);
-const ynModule = __nccwpck_require__(79647);
-const path_1 = __nccwpck_require__(71017);
-/** @internal */
-exports.createRequire = (_a = module_1.createRequire !== null && module_1.createRequire !== void 0 ? module_1.createRequire : module_1.createRequireFromPath) !== null && _a !== void 0 ? _a : __nccwpck_require__(45830);
 /**
- * Wrapper around yn module that returns `undefined` instead of `null`.
- * This is implemented by yn v4, but we're staying on v3 to avoid v4's node 10 requirement.
- * @internal
+ * Normalizes a path, or the path portion of a URL:
+ *
+ * - Replaces consecutive slashes with one slash.
+ * - Removes unnecessary '.' parts.
+ * - Removes unnecessary '/..' parts.
+ *
+ * Based on code in the Node.js 'path' core module.
+ *
+ * @param aPath The path or url to normalize.
  */
-function yn(value) {
-    var _a;
-    return (_a = ynModule(value)) !== null && _a !== void 0 ? _a : undefined;
+function normalize(aPath) {
+  var path = aPath;
+  var url = urlParse(aPath);
+  if (url) {
+    if (!url.path) {
+      return aPath;
+    }
+    path = url.path;
+  }
+  var isAbsolute = exports.isAbsolute(path);
+
+  var parts = path.split(/\/+/);
+  for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
+    part = parts[i];
+    if (part === '.') {
+      parts.splice(i, 1);
+    } else if (part === '..') {
+      up++;
+    } else if (up > 0) {
+      if (part === '') {
+        // The first part is blank if the path is absolute. Trying to go
+        // above the root is a no-op. Therefore we can remove all '..' parts
+        // directly after the root.
+        parts.splice(i + 1, up);
+        up = 0;
+      } else {
+        parts.splice(i, 2);
+        up--;
+      }
+    }
+  }
+  path = parts.join('/');
+
+  if (path === '') {
+    path = isAbsolute ? '/' : '.';
+  }
+
+  if (url) {
+    url.path = path;
+    return urlGenerate(url);
+  }
+  return path;
 }
-exports.yn = yn;
+exports.normalize = normalize;
+
 /**
- * Like `Object.assign`, but ignores `undefined` properties.
+ * Joins two paths/URLs.
  *
- * @internal
+ * @param aRoot The root path or URL.
+ * @param aPath The path or URL to be joined with the root.
+ *
+ * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a
+ *   scheme-relative URL: Then the scheme of aRoot, if any, is prepended
+ *   first.
+ * - Otherwise aPath is a path. If aRoot is a URL, then its path portion
+ *   is updated with the result and aRoot is returned. Otherwise the result
+ *   is returned.
+ *   - If aPath is absolute, the result is aPath.
+ *   - Otherwise the two paths are joined with a slash.
+ * - Joining for example 'http://' and 'www.example.com' is also supported.
  */
-function assign(initialValue, ...sources) {
-    for (const source of sources) {
-        for (const key of Object.keys(source)) {
-            const value = source[key];
-            if (value !== undefined)
-                initialValue[key] = value;
-        }
+function join(aRoot, aPath) {
+  if (aRoot === "") {
+    aRoot = ".";
+  }
+  if (aPath === "") {
+    aPath = ".";
+  }
+  var aPathUrl = urlParse(aPath);
+  var aRootUrl = urlParse(aRoot);
+  if (aRootUrl) {
+    aRoot = aRootUrl.path || '/';
+  }
+
+  // `join(foo, '//www.example.org')`
+  if (aPathUrl && !aPathUrl.scheme) {
+    if (aRootUrl) {
+      aPathUrl.scheme = aRootUrl.scheme;
     }
-    return initialValue;
+    return urlGenerate(aPathUrl);
+  }
+
+  if (aPathUrl || aPath.match(dataUrlRegexp)) {
+    return aPath;
+  }
+
+  // `join('http://', 'www.example.com')`
+  if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {
+    aRootUrl.host = aPath;
+    return urlGenerate(aRootUrl);
+  }
+
+  var joined = aPath.charAt(0) === '/'
+    ? aPath
+    : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath);
+
+  if (aRootUrl) {
+    aRootUrl.path = joined;
+    return urlGenerate(aRootUrl);
+  }
+  return joined;
 }
-exports.assign = assign;
+exports.join = join;
+
+exports.isAbsolute = function (aPath) {
+  return aPath.charAt(0) === '/' || urlRegexp.test(aPath);
+};
+
 /**
- * Split a string array of values
- * and remove empty strings from the resulting array.
- * @internal
+ * Make a path relative to a URL or another path.
+ *
+ * @param aRoot The root path or URL.
+ * @param aPath The path or URL to be made relative to aRoot.
  */
-function split(value) {
-    return typeof value === 'string'
-        ? value.split(/ *, */g).filter((v) => v !== '')
-        : undefined;
+function relative(aRoot, aPath) {
+  if (aRoot === "") {
+    aRoot = ".";
+  }
+
+  aRoot = aRoot.replace(/\/$/, '');
+
+  // It is possible for the path to be above the root. In this case, simply
+  // checking whether the root is a prefix of the path won't work. Instead, we
+  // need to remove components from the root one by one, until either we find
+  // a prefix that fits, or we run out of components to remove.
+  var level = 0;
+  while (aPath.indexOf(aRoot + '/') !== 0) {
+    var index = aRoot.lastIndexOf("/");
+    if (index < 0) {
+      return aPath;
+    }
+
+    // If the only part of the root that is left is the scheme (i.e. http://,
+    // file:///, etc.), one or more slashes (/), or simply nothing at all, we
+    // have exhausted all components, so the path is not relative to the root.
+    aRoot = aRoot.slice(0, index);
+    if (aRoot.match(/^([^\/]+:\/)?\/*$/)) {
+      return aPath;
+    }
+
+    ++level;
+  }
+
+  // Make sure we add a "../" for each component we removed from the root.
+  return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
 }
-exports.split = split;
-/**
- * Parse a string as JSON.
- * @internal
- */
-function parse(value) {
-    return typeof value === 'string' ? JSON.parse(value) : undefined;
+exports.relative = relative;
+
+var supportsNullProto = (function () {
+  var obj = Object.create(null);
+  return !('__proto__' in obj);
+}());
+
+function identity (s) {
+  return s;
 }
-exports.parse = parse;
-const directorySeparator = '/';
-const backslashRegExp = /\\/g;
+
 /**
- * Replace backslashes with forward slashes.
- * @internal
+ * Because behavior goes wacky when you set `__proto__` on objects, we
+ * have to prefix all the strings in our set with an arbitrary character.
+ *
+ * See https://github.com/mozilla/source-map/pull/31 and
+ * https://github.com/mozilla/source-map/issues/30
+ *
+ * @param String aStr
  */
-function normalizeSlashes(value) {
-    return value.replace(backslashRegExp, directorySeparator);
+function toSetString(aStr) {
+  if (isProtoString(aStr)) {
+    return '$' + aStr;
+  }
+
+  return aStr;
 }
-exports.normalizeSlashes = normalizeSlashes;
-/**
- * Safe `hasOwnProperty`
- * @internal
- */
-function hasOwnProperty(object, property) {
-    return Object.prototype.hasOwnProperty.call(object, property);
+exports.toSetString = supportsNullProto ? identity : toSetString;
+
+function fromSetString(aStr) {
+  if (isProtoString(aStr)) {
+    return aStr.slice(1);
+  }
+
+  return aStr;
 }
-exports.hasOwnProperty = hasOwnProperty;
-/**
- * Cached fs operation wrapper.
- */
-function cachedLookup(fn) {
-    const cache = new Map();
-    return (arg) => {
-        if (!cache.has(arg)) {
-            const v = fn(arg);
-            cache.set(arg, v);
-            return v;
-        }
-        return cache.get(arg);
-    };
+exports.fromSetString = supportsNullProto ? identity : fromSetString;
+
+function isProtoString(s) {
+  if (!s) {
+    return false;
+  }
+
+  var length = s.length;
+
+  if (length < 9 /* "__proto__".length */) {
+    return false;
+  }
+
+  if (s.charCodeAt(length - 1) !== 95  /* '_' */ ||
+      s.charCodeAt(length - 2) !== 95  /* '_' */ ||
+      s.charCodeAt(length - 3) !== 111 /* 'o' */ ||
+      s.charCodeAt(length - 4) !== 116 /* 't' */ ||
+      s.charCodeAt(length - 5) !== 111 /* 'o' */ ||
+      s.charCodeAt(length - 6) !== 114 /* 'r' */ ||
+      s.charCodeAt(length - 7) !== 112 /* 'p' */ ||
+      s.charCodeAt(length - 8) !== 95  /* '_' */ ||
+      s.charCodeAt(length - 9) !== 95  /* '_' */) {
+    return false;
+  }
+
+  for (var i = length - 10; i >= 0; i--) {
+    if (s.charCodeAt(i) !== 36 /* '$' */) {
+      return false;
+    }
+  }
+
+  return true;
 }
-exports.cachedLookup = cachedLookup;
+
 /**
- * @internal
- * Require something with v8-compile-cache, which should make subsequent requires faster.
- * Do lots of error-handling so that, worst case, we require without the cache, and users are not blocked.
+ * Comparator between two mappings where the original positions are compared.
+ *
+ * Optionally pass in `true` as `onlyCompareGenerated` to consider two
+ * mappings with the same original source/line/column, but different generated
+ * line and column the same. Useful when searching for a mapping with a
+ * stubbed out mapping.
  */
-function attemptRequireWithV8CompileCache(requireFn, specifier) {
-    try {
-        const v8CC = (__nccwpck_require__(70416).install)();
-        try {
-            return requireFn(specifier);
-        }
-        finally {
-            v8CC === null || v8CC === void 0 ? void 0 : v8CC.uninstall();
-        }
-    }
-    catch (e) {
-        return requireFn(specifier);
-    }
+function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {
+  var cmp = strcmp(mappingA.source, mappingB.source);
+  if (cmp !== 0) {
+    return cmp;
+  }
+
+  cmp = mappingA.originalLine - mappingB.originalLine;
+  if (cmp !== 0) {
+    return cmp;
+  }
+
+  cmp = mappingA.originalColumn - mappingB.originalColumn;
+  if (cmp !== 0 || onlyCompareOriginal) {
+    return cmp;
+  }
+
+  cmp = mappingA.generatedColumn - mappingB.generatedColumn;
+  if (cmp !== 0) {
+    return cmp;
+  }
+
+  cmp = mappingA.generatedLine - mappingB.generatedLine;
+  if (cmp !== 0) {
+    return cmp;
+  }
+
+  return strcmp(mappingA.name, mappingB.name);
 }
-exports.attemptRequireWithV8CompileCache = attemptRequireWithV8CompileCache;
+exports.compareByOriginalPositions = compareByOriginalPositions;
+
 /**
- * Helper to discover dependencies relative to a user's project, optionally
- * falling back to relative to ts-node.  This supports global installations of
- * ts-node, for example where someone does `#!/usr/bin/env -S ts-node --swc` and
- * we need to fallback to a global install of @swc/core
- * @internal
+ * Comparator between two mappings with deflated source and name indices where
+ * the generated positions are compared.
+ *
+ * Optionally pass in `true` as `onlyCompareGenerated` to consider two
+ * mappings with the same generated line and column, but different
+ * source/name/original line and column the same. Useful when searching for a
+ * mapping with a stubbed out mapping.
  */
-function createProjectLocalResolveHelper(localDirectory) {
-    return function projectLocalResolveHelper(specifier, fallbackToTsNodeRelative) {
-        return require.resolve(specifier, {
-            paths: fallbackToTsNodeRelative
-                ? [localDirectory, __dirname]
-                : [localDirectory],
-        });
-    };
+function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
+  var cmp = mappingA.generatedLine - mappingB.generatedLine;
+  if (cmp !== 0) {
+    return cmp;
+  }
+
+  cmp = mappingA.generatedColumn - mappingB.generatedColumn;
+  if (cmp !== 0 || onlyCompareGenerated) {
+    return cmp;
+  }
+
+  cmp = strcmp(mappingA.source, mappingB.source);
+  if (cmp !== 0) {
+    return cmp;
+  }
+
+  cmp = mappingA.originalLine - mappingB.originalLine;
+  if (cmp !== 0) {
+    return cmp;
+  }
+
+  cmp = mappingA.originalColumn - mappingB.originalColumn;
+  if (cmp !== 0) {
+    return cmp;
+  }
+
+  return strcmp(mappingA.name, mappingB.name);
 }
-exports.createProjectLocalResolveHelper = createProjectLocalResolveHelper;
+exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
+
+function strcmp(aStr1, aStr2) {
+  if (aStr1 === aStr2) {
+    return 0;
+  }
+
+  if (aStr1 === null) {
+    return 1; // aStr2 !== null
+  }
+
+  if (aStr2 === null) {
+    return -1; // aStr1 !== null
+  }
+
+  if (aStr1 > aStr2) {
+    return 1;
+  }
+
+  return -1;
+}
+
 /**
- * Used as a reminder of all the factors we must consider when finding project-local dependencies and when a config file
- * on disk may or may not exist.
- * @internal
+ * Comparator between two mappings with inflated source and name strings where
+ * the generated positions are compared.
  */
-function getBasePathForProjectLocalDependencyResolution(configFilePath, projectSearchDirOption, projectOption, cwdOption) {
-    var _a;
-    if (configFilePath != null)
-        return (0, path_1.dirname)(configFilePath);
-    return (_a = projectSearchDirOption !== null && projectSearchDirOption !== void 0 ? projectSearchDirOption : projectOption) !== null && _a !== void 0 ? _a : cwdOption;
-    // TODO technically breaks if projectOption is path to a file, not a directory,
-    // and we attempt to resolve relative specifiers.  By the time we resolve relative specifiers,
-    // should have configFilePath, so not reach this codepath.
+function compareByGeneratedPositionsInflated(mappingA, mappingB) {
+  var cmp = mappingA.generatedLine - mappingB.generatedLine;
+  if (cmp !== 0) {
+    return cmp;
+  }
+
+  cmp = mappingA.generatedColumn - mappingB.generatedColumn;
+  if (cmp !== 0) {
+    return cmp;
+  }
+
+  cmp = strcmp(mappingA.source, mappingB.source);
+  if (cmp !== 0) {
+    return cmp;
+  }
+
+  cmp = mappingA.originalLine - mappingB.originalLine;
+  if (cmp !== 0) {
+    return cmp;
+  }
+
+  cmp = mappingA.originalColumn - mappingB.originalColumn;
+  if (cmp !== 0) {
+    return cmp;
+  }
+
+  return strcmp(mappingA.name, mappingB.name);
 }
-exports.getBasePathForProjectLocalDependencyResolution = getBasePathForProjectLocalDependencyResolution;
-/** @internal */
-function once(fn) {
-    let value;
-    let ran = false;
-    function onceFn(...args) {
-        if (ran)
-            return value;
-        value = fn(...args);
-        ran = true;
-        return value;
-    }
-    return onceFn;
+exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
+
+/**
+ * Strip any JSON XSSI avoidance prefix from the string (as documented
+ * in the source maps specification), and then parse the string as
+ * JSON.
+ */
+function parseSourceMapInput(str) {
+  return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ''));
 }
-exports.once = once;
-/** @internal */
-function versionGteLt(version, gteRequirement, ltRequirement) {
-    const [major, minor, patch, extra] = parse(version);
-    const [gteMajor, gteMinor, gtePatch] = parse(gteRequirement);
-    const isGte = major > gteMajor ||
-        (major === gteMajor &&
-            (minor > gteMinor || (minor === gteMinor && patch >= gtePatch)));
-    let isLt = true;
-    if (ltRequirement) {
-        const [ltMajor, ltMinor, ltPatch] = parse(ltRequirement);
-        isLt =
-            major < ltMajor ||
-                (major === ltMajor &&
-                    (minor < ltMinor || (minor === ltMinor && patch < ltPatch)));
+exports.parseSourceMapInput = parseSourceMapInput;
+
+/**
+ * Compute the URL of a source given the the source root, the source's
+ * URL, and the source map's URL.
+ */
+function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
+  sourceURL = sourceURL || '';
+
+  if (sourceRoot) {
+    // This follows what Chrome does.
+    if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') {
+      sourceRoot += '/';
     }
-    return isGte && isLt;
-    function parse(requirement) {
-        return requirement.split(/[\.-]/).map((s) => parseInt(s, 10));
+    // The spec says:
+    //   Line 4: An optional source root, useful for relocating source
+    //   files on a server or removing repeated values in the
+    //   “sources” entry.  This value is prepended to the individual
+    //   entries in the “source” field.
+    sourceURL = sourceRoot + sourceURL;
+  }
+
+  // Historically, SourceMapConsumer did not take the sourceMapURL as
+  // a parameter.  This mode is still somewhat supported, which is why
+  // this code block is conditional.  However, it's preferable to pass
+  // the source map URL to SourceMapConsumer, so that this function
+  // can implement the source URL resolution algorithm as outlined in
+  // the spec.  This block is basically the equivalent of:
+  //    new URL(sourceURL, sourceMapURL).toString()
+  // ... except it avoids using URL, which wasn't available in the
+  // older releases of node still supported by this library.
+  //
+  // The spec says:
+  //   If the sources are not absolute URLs after prepending of the
+  //   “sourceRoot”, the sources are resolved relative to the
+  //   SourceMap (like resolving script src in a html document).
+  if (sourceMapURL) {
+    var parsed = urlParse(sourceMapURL);
+    if (!parsed) {
+      throw new Error("sourceMapURL could not be parsed");
+    }
+    if (parsed.path) {
+      // Strip the last path component, but keep the "/".
+      var index = parsed.path.lastIndexOf('/');
+      if (index >= 0) {
+        parsed.path = parsed.path.substring(0, index + 1);
+      }
     }
+    sourceURL = join(urlGenerate(parsed), sourceURL);
+  }
+
+  return normalize(sourceURL);
 }
-exports.versionGteLt = versionGteLt;
-//# sourceMappingURL=util.js.map
+exports.computeSourceURL = computeSourceURL;
+
 
 /***/ }),
 
-/***/ 12077:
+/***/ 56594:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
-"use strict";
+/*
+ * Copyright 2009-2011 Mozilla Foundation and contributors
+ * Licensed under the New BSD license. See LICENSE.txt or:
+ * http://opensource.org/licenses/BSD-3-Clause
+ */
+/* unused reexport */ __nccwpck_require__(69425)/* .SourceMapGenerator */ .h;
+exports.SourceMapConsumer = __nccwpck_require__(75155).SourceMapConsumer;
+/* unused reexport */ __nccwpck_require__(92616);
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.configLoader = exports.loadConfig = void 0;
-var TsConfigLoader2 = __nccwpck_require__(5214);
-var path = __nccwpck_require__(71017);
-function loadConfig(cwd) {
-    if (cwd === void 0) { cwd = process.cwd(); }
-    return configLoader({ cwd: cwd });
-}
-exports.loadConfig = loadConfig;
-function configLoader(_a) {
-    var cwd = _a.cwd, explicitParams = _a.explicitParams, _b = _a.tsConfigLoader, tsConfigLoader = _b === void 0 ? TsConfigLoader2.tsConfigLoader : _b;
-    if (explicitParams) {
-        var absoluteBaseUrl = path.isAbsolute(explicitParams.baseUrl)
-            ? explicitParams.baseUrl
-            : path.join(cwd, explicitParams.baseUrl);
-        return {
-            resultType: "success",
-            configFileAbsolutePath: "",
-            baseUrl: explicitParams.baseUrl,
-            absoluteBaseUrl: absoluteBaseUrl,
-            paths: explicitParams.paths,
-            mainFields: explicitParams.mainFields,
-            addMatchAll: explicitParams.addMatchAll,
-        };
-    }
-    // Load tsconfig and create path matching function
-    var loadResult = tsConfigLoader({
-        cwd: cwd,
-        getEnv: function (key) { return process.env[key]; },
-    });
-    if (!loadResult.tsConfigPath) {
-        return {
-            resultType: "failed",
-            message: "Couldn't find tsconfig.json",
-        };
-    }
-    return {
-        resultType: "success",
-        configFileAbsolutePath: loadResult.tsConfigPath,
-        baseUrl: loadResult.baseUrl,
-        absoluteBaseUrl: path.resolve(path.dirname(loadResult.tsConfigPath), loadResult.baseUrl || ""),
-        paths: loadResult.paths || {},
-        addMatchAll: loadResult.baseUrl !== undefined,
-    };
-}
-exports.configLoader = configLoader;
-//# sourceMappingURL=config-loader.js.map
 
 /***/ }),
 
-/***/ 55775:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ 42577:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
 "use strict";
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.removeExtension = exports.fileExistsAsync = exports.readJsonFromDiskAsync = exports.readJsonFromDiskSync = exports.fileExistsSync = void 0;
-var fs = __nccwpck_require__(57147);
-function fileExistsSync(path) {
-    // If the file doesn't exist, avoid throwing an exception over the native barrier for every miss
-    if (!fs.existsSync(path)) {
-        return false;
-    }
-    try {
-        var stats = fs.statSync(path);
-        return stats.isFile();
-    }
-    catch (err) {
-        // If error, assume file did not exist
-        return false;
-    }
-}
-exports.fileExistsSync = fileExistsSync;
-/**
- * Reads package.json from disk
- *
- * @param file Path to package.json
- */
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-function readJsonFromDiskSync(packageJsonPath) {
-    if (!fs.existsSync(packageJsonPath)) {
-        return undefined;
-    }
-    // eslint-disable-next-line @typescript-eslint/no-require-imports
-    return require(packageJsonPath);
-}
-exports.readJsonFromDiskSync = readJsonFromDiskSync;
-function readJsonFromDiskAsync(path, 
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-callback) {
-    fs.readFile(path, "utf8", function (err, result) {
-        // If error, assume file did not exist
-        if (err || !result) {
-            return callback();
-        }
-        var json = JSON.parse(result);
-        return callback(undefined, json);
-    });
-}
-exports.readJsonFromDiskAsync = readJsonFromDiskAsync;
-function fileExistsAsync(path2, callback2) {
-    fs.stat(path2, function (err, stats) {
-        if (err) {
-            // If error assume file does not exist
-            return callback2(undefined, false);
-        }
-        callback2(undefined, stats ? stats.isFile() : false);
-    });
-}
-exports.fileExistsAsync = fileExistsAsync;
-function removeExtension(path) {
-    return path.substring(0, path.lastIndexOf(".")) || path;
-}
-exports.removeExtension = removeExtension;
-//# sourceMappingURL=filesystem.js.map
+const stripAnsi = __nccwpck_require__(45591);
+const isFullwidthCodePoint = __nccwpck_require__(64882);
+const emojiRegex = __nccwpck_require__(18212);
 
-/***/ }),
+const stringWidth = string => {
+	if (typeof string !== 'string' || string.length === 0) {
+		return 0;
+	}
 
-/***/ 56143:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+	string = stripAnsi(string);
 
-"use strict";
+	if (string.length === 0) {
+		return 0;
+	}
+
+	string = string.replace(emojiRegex(), '  ');
+
+	let width = 0;
+
+	for (let i = 0; i < string.length; i++) {
+		const code = string.codePointAt(i);
+
+		// Ignore control characters
+		if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
+			continue;
+		}
+
+		// Ignore combining characters
+		if (code >= 0x300 && code <= 0x36F) {
+			continue;
+		}
+
+		// Surrogates
+		if (code > 0xFFFF) {
+			i++;
+		}
+
+		width += isFullwidthCodePoint(code) ? 2 : 1;
+	}
+
+	return width;
+};
+
+module.exports = stringWidth;
+// TODO: remove this in the next major version
+module.exports["default"] = stringWidth;
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.loadConfig = exports.register = exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = exports.matchFromAbsolutePaths = exports.createMatchPath = void 0;
-// register is used from register.js in root dir
-var match_path_sync_1 = __nccwpck_require__(21810);
-Object.defineProperty(exports, "createMatchPath", ({ enumerable: true, get: function () { return match_path_sync_1.createMatchPath; } }));
-Object.defineProperty(exports, "matchFromAbsolutePaths", ({ enumerable: true, get: function () { return match_path_sync_1.matchFromAbsolutePaths; } }));
-var match_path_async_1 = __nccwpck_require__(74479);
-Object.defineProperty(exports, "createMatchPathAsync", ({ enumerable: true, get: function () { return match_path_async_1.createMatchPathAsync; } }));
-Object.defineProperty(exports, "matchFromAbsolutePathsAsync", ({ enumerable: true, get: function () { return match_path_async_1.matchFromAbsolutePathsAsync; } }));
-var register_1 = __nccwpck_require__(25174);
-Object.defineProperty(exports, "register", ({ enumerable: true, get: function () { return register_1.register; } }));
-var config_loader_1 = __nccwpck_require__(12077);
-Object.defineProperty(exports, "loadConfig", ({ enumerable: true, get: function () { return config_loader_1.loadConfig; } }));
-//# sourceMappingURL=index.js.map
 
 /***/ }),
 
-/***/ 25121:
+/***/ 94841:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
+// Copyright Joyent, Inc. and other Node contributors.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a
+// copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to permit
+// persons to whom the Software is furnished to do so, subject to the
+// following conditions:
+//
+// The above copyright notice and this permission notice shall be included
+// in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
+// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+// USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getAbsoluteMappingEntries = void 0;
-var path = __nccwpck_require__(71017);
-/**
- * Converts an absolute baseUrl and paths to an array of absolute mapping entries.
- * The array is sorted by longest prefix.
- * Having an array with entries allows us to keep a sorting order rather than
- * sort by keys each time we use the mappings.
- *
- * @param absoluteBaseUrl
- * @param paths
- * @param addMatchAll
- */
-function getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll) {
-    // Resolve all paths to absolute form once here, and sort them by
-    // longest prefix once here, this saves time on each request later.
-    // We need to put them in an array to preserve the sorting order.
-    var sortedKeys = sortByLongestPrefix(Object.keys(paths));
-    var absolutePaths = [];
-    for (var _i = 0, sortedKeys_1 = sortedKeys; _i < sortedKeys_1.length; _i++) {
-        var key = sortedKeys_1[_i];
-        absolutePaths.push({
-            pattern: key,
-            paths: paths[key].map(function (pathToResolve) {
-                return path.resolve(absoluteBaseUrl, pathToResolve);
-            }),
-        });
-    }
-    // If there is no match-all path specified in the paths section of tsconfig, then try to match
-    // all paths relative to baseUrl, this is how typescript works.
-    if (!paths["*"] && addMatchAll) {
-        absolutePaths.push({
-            pattern: "*",
-            paths: ["".concat(absoluteBaseUrl.replace(/\/$/, ""), "/*")],
-        });
+
+
+/**/
+
+var Buffer = (__nccwpck_require__(21867).Buffer);
+/**/
+
+var isEncoding = Buffer.isEncoding || function (encoding) {
+  encoding = '' + encoding;
+  switch (encoding && encoding.toLowerCase()) {
+    case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':
+      return true;
+    default:
+      return false;
+  }
+};
+
+function _normalizeEncoding(enc) {
+  if (!enc) return 'utf8';
+  var retried;
+  while (true) {
+    switch (enc) {
+      case 'utf8':
+      case 'utf-8':
+        return 'utf8';
+      case 'ucs2':
+      case 'ucs-2':
+      case 'utf16le':
+      case 'utf-16le':
+        return 'utf16le';
+      case 'latin1':
+      case 'binary':
+        return 'latin1';
+      case 'base64':
+      case 'ascii':
+      case 'hex':
+        return enc;
+      default:
+        if (retried) return; // undefined
+        enc = ('' + enc).toLowerCase();
+        retried = true;
     }
-    return absolutePaths;
-}
-exports.getAbsoluteMappingEntries = getAbsoluteMappingEntries;
-/**
- * Sort path patterns.
- * If a module name can be matched with multiple patterns then pattern with the longest prefix will be picked.
- */
-function sortByLongestPrefix(arr) {
-    return arr
-        .concat()
-        .sort(function (a, b) { return getPrefixLength(b) - getPrefixLength(a); });
+  }
+};
+
+// Do not cache `Buffer.isEncoding` when checking encoding names as some
+// modules monkey-patch it to support additional encodings
+function normalizeEncoding(enc) {
+  var nenc = _normalizeEncoding(enc);
+  if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
+  return nenc || enc;
 }
-function getPrefixLength(pattern) {
-    var prefixLength = pattern.indexOf("*");
-    return pattern.substr(0, prefixLength).length;
+
+// StringDecoder provides an interface for efficiently splitting a series of
+// buffers into a series of JS strings without breaking apart multi-byte
+// characters.
+exports.s = StringDecoder;
+function StringDecoder(encoding) {
+  this.encoding = normalizeEncoding(encoding);
+  var nb;
+  switch (this.encoding) {
+    case 'utf16le':
+      this.text = utf16Text;
+      this.end = utf16End;
+      nb = 4;
+      break;
+    case 'utf8':
+      this.fillLast = utf8FillLast;
+      nb = 4;
+      break;
+    case 'base64':
+      this.text = base64Text;
+      this.end = base64End;
+      nb = 3;
+      break;
+    default:
+      this.write = simpleWrite;
+      this.end = simpleEnd;
+      return;
+  }
+  this.lastNeed = 0;
+  this.lastTotal = 0;
+  this.lastChar = Buffer.allocUnsafe(nb);
 }
-//# sourceMappingURL=mapping-entry.js.map
 
-/***/ }),
+StringDecoder.prototype.write = function (buf) {
+  if (buf.length === 0) return '';
+  var r;
+  var i;
+  if (this.lastNeed) {
+    r = this.fillLast(buf);
+    if (r === undefined) return '';
+    i = this.lastNeed;
+    this.lastNeed = 0;
+  } else {
+    i = 0;
+  }
+  if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);
+  return r || '';
+};
 
-/***/ 74479:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+StringDecoder.prototype.end = utf8End;
 
-"use strict";
+// Returns only complete characters in a Buffer
+StringDecoder.prototype.text = utf8Text;
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = void 0;
-var path = __nccwpck_require__(71017);
-var TryPath = __nccwpck_require__(44231);
-var MappingEntry = __nccwpck_require__(25121);
-var Filesystem = __nccwpck_require__(55775);
-/**
- * See the sync version for docs.
- */
-function createMatchPathAsync(absoluteBaseUrl, paths, mainFields, addMatchAll) {
-    if (mainFields === void 0) { mainFields = ["main"]; }
-    if (addMatchAll === void 0) { addMatchAll = true; }
-    var absolutePaths = MappingEntry.getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll);
-    return function (requestedModule, readJson, fileExists, extensions, callback) {
-        return matchFromAbsolutePathsAsync(absolutePaths, requestedModule, readJson, fileExists, extensions, callback, mainFields);
-    };
+// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer
+StringDecoder.prototype.fillLast = function (buf) {
+  if (this.lastNeed <= buf.length) {
+    buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
+    return this.lastChar.toString(this.encoding, 0, this.lastTotal);
+  }
+  buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
+  this.lastNeed -= buf.length;
+};
+
+// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a
+// continuation byte. If an invalid byte is detected, -2 is returned.
+function utf8CheckByte(byte) {
+  if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;
+  return byte >> 6 === 0x02 ? -1 : -2;
 }
-exports.createMatchPathAsync = createMatchPathAsync;
-/**
- * See the sync version for docs.
- */
-function matchFromAbsolutePathsAsync(absolutePathMappings, requestedModule, readJson, fileExists, extensions, callback, mainFields) {
-    if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskAsync; }
-    if (fileExists === void 0) { fileExists = Filesystem.fileExistsAsync; }
-    if (extensions === void 0) { extensions = Object.keys(require.extensions); }
-    if (mainFields === void 0) { mainFields = ["main"]; }
-    var tryPaths = TryPath.getPathsToTry(extensions, absolutePathMappings, requestedModule);
-    if (!tryPaths) {
-        return callback();
+
+// Checks at most 3 bytes at the end of a Buffer in order to detect an
+// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)
+// needed to complete the UTF-8 character (if applicable) are returned.
+function utf8CheckIncomplete(self, buf, i) {
+  var j = buf.length - 1;
+  if (j < i) return 0;
+  var nb = utf8CheckByte(buf[j]);
+  if (nb >= 0) {
+    if (nb > 0) self.lastNeed = nb - 1;
+    return nb;
+  }
+  if (--j < i || nb === -2) return 0;
+  nb = utf8CheckByte(buf[j]);
+  if (nb >= 0) {
+    if (nb > 0) self.lastNeed = nb - 2;
+    return nb;
+  }
+  if (--j < i || nb === -2) return 0;
+  nb = utf8CheckByte(buf[j]);
+  if (nb >= 0) {
+    if (nb > 0) {
+      if (nb === 2) nb = 0;else self.lastNeed = nb - 3;
     }
-    findFirstExistingPath(tryPaths, readJson, fileExists, callback, 0, mainFields);
+    return nb;
+  }
+  return 0;
 }
-exports.matchFromAbsolutePathsAsync = matchFromAbsolutePathsAsync;
-function findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExistsAsync, doneCallback, index) {
-    if (index === void 0) { index = 0; }
-    if (index >= mainFields.length) {
-        return doneCallback(undefined, undefined);
+
+// Validates as many continuation bytes for a multi-byte UTF-8 character as
+// needed or are available. If we see a non-continuation byte where we expect
+// one, we "replace" the validated continuation bytes we've seen so far with
+// a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding
+// behavior. The continuation byte check is included three times in the case
+// where all of the continuation bytes for a character exist in the same buffer.
+// It is also done this way as a slight performance increase instead of using a
+// loop.
+function utf8CheckExtraBytes(self, buf, p) {
+  if ((buf[0] & 0xC0) !== 0x80) {
+    self.lastNeed = 0;
+    return '\ufffd';
+  }
+  if (self.lastNeed > 1 && buf.length > 1) {
+    if ((buf[1] & 0xC0) !== 0x80) {
+      self.lastNeed = 1;
+      return '\ufffd';
     }
-    var tryNext = function () {
-        return findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExistsAsync, doneCallback, index + 1);
-    };
-    var mainFieldSelector = mainFields[index];
-    var mainFieldMapping = typeof mainFieldSelector === "string"
-        ? packageJson[mainFieldSelector]
-        : mainFieldSelector.reduce(function (obj, key) { return obj[key]; }, packageJson);
-    if (typeof mainFieldMapping !== "string") {
-        // Skip mappings that are not pointers to replacement files
-        return tryNext();
+    if (self.lastNeed > 2 && buf.length > 2) {
+      if ((buf[2] & 0xC0) !== 0x80) {
+        self.lastNeed = 2;
+        return '\ufffd';
+      }
     }
-    var mappedFilePath = path.join(path.dirname(packageJsonPath), mainFieldMapping);
-    fileExistsAsync(mappedFilePath, function (err, exists) {
-        if (err) {
-            return doneCallback(err);
-        }
-        if (exists) {
-            return doneCallback(undefined, mappedFilePath);
-        }
-        return tryNext();
-    });
+  }
 }
-// Recursive loop to probe for physical files
-function findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index, mainFields) {
-    if (index === void 0) { index = 0; }
-    if (mainFields === void 0) { mainFields = ["main"]; }
-    var tryPath = tryPaths[index];
-    if (tryPath.type === "file" ||
-        tryPath.type === "extension" ||
-        tryPath.type === "index") {
-        fileExists(tryPath.path, function (err, exists) {
-            if (err) {
-                return doneCallback(err);
-            }
-            if (exists) {
-                return doneCallback(undefined, TryPath.getStrippedPath(tryPath));
-            }
-            if (index === tryPaths.length - 1) {
-                return doneCallback();
-            }
-            // Continue with the next path
-            return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields);
-        });
-    }
-    else if (tryPath.type === "package") {
-        readJson(tryPath.path, function (err, packageJson) {
-            if (err) {
-                return doneCallback(err);
-            }
-            if (packageJson) {
-                return findFirstExistingMainFieldMappedFile(packageJson, mainFields, tryPath.path, fileExists, function (mainFieldErr, mainFieldMappedFile) {
-                    if (mainFieldErr) {
-                        return doneCallback(mainFieldErr);
-                    }
-                    if (mainFieldMappedFile) {
-                        return doneCallback(undefined, mainFieldMappedFile);
-                    }
-                    // No field in package json was a valid option. Continue with the next path.
-                    return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields);
-                });
-            }
-            // This is async code, we need to return unconditionally, otherwise the code still falls
-            // through and keeps recursing. While this might work in general, libraries that use neo-async
-            // like Webpack will actually not allow you to call the same callback twice.
-            //
-            // An example of where this caused issues:
-            // https://github.com/dividab/tsconfig-paths-webpack-plugin/issues/11
-            //
-            // Continue with the next path
-            return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields);
-        });
-    }
-    else {
-        TryPath.exhaustiveTypeException(tryPath.type);
-    }
+
+// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.
+function utf8FillLast(buf) {
+  var p = this.lastTotal - this.lastNeed;
+  var r = utf8CheckExtraBytes(this, buf, p);
+  if (r !== undefined) return r;
+  if (this.lastNeed <= buf.length) {
+    buf.copy(this.lastChar, p, 0, this.lastNeed);
+    return this.lastChar.toString(this.encoding, 0, this.lastTotal);
+  }
+  buf.copy(this.lastChar, p, 0, buf.length);
+  this.lastNeed -= buf.length;
 }
-//# sourceMappingURL=match-path-async.js.map
 
-/***/ }),
+// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a
+// partial character, the character's bytes are buffered until the required
+// number of bytes are available.
+function utf8Text(buf, i) {
+  var total = utf8CheckIncomplete(this, buf, i);
+  if (!this.lastNeed) return buf.toString('utf8', i);
+  this.lastTotal = total;
+  var end = buf.length - (total - this.lastNeed);
+  buf.copy(this.lastChar, 0, end);
+  return buf.toString('utf8', i, end);
+}
 
-/***/ 21810:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+// For UTF-8, a replacement character is added when ending on a partial
+// character.
+function utf8End(buf) {
+  var r = buf && buf.length ? this.write(buf) : '';
+  if (this.lastNeed) return r + '\ufffd';
+  return r;
+}
 
-"use strict";
+// UTF-16LE typically needs two bytes per character, but even if we have an even
+// number of bytes available, we need to check if we end on a leading/high
+// surrogate. In that case, we need to wait for the next two bytes in order to
+// decode the last character properly.
+function utf16Text(buf, i) {
+  if ((buf.length - i) % 2 === 0) {
+    var r = buf.toString('utf16le', i);
+    if (r) {
+      var c = r.charCodeAt(r.length - 1);
+      if (c >= 0xD800 && c <= 0xDBFF) {
+        this.lastNeed = 2;
+        this.lastTotal = 4;
+        this.lastChar[0] = buf[buf.length - 2];
+        this.lastChar[1] = buf[buf.length - 1];
+        return r.slice(0, -1);
+      }
+    }
+    return r;
+  }
+  this.lastNeed = 1;
+  this.lastTotal = 2;
+  this.lastChar[0] = buf[buf.length - 1];
+  return buf.toString('utf16le', i, buf.length - 1);
+}
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.matchFromAbsolutePaths = exports.createMatchPath = void 0;
-var path = __nccwpck_require__(71017);
-var Filesystem = __nccwpck_require__(55775);
-var MappingEntry = __nccwpck_require__(25121);
-var TryPath = __nccwpck_require__(44231);
-/**
- * Creates a function that can resolve paths according to tsconfig paths property.
- *
- * @param absoluteBaseUrl Absolute version of baseUrl as specified in tsconfig.
- * @param paths The paths as specified in tsconfig.
- * @param mainFields A list of package.json field names to try when resolving module files. Select a nested field using an array of field names.
- * @param addMatchAll Add a match-all "*" rule if none is present
- * @returns a function that can resolve paths.
- */
-function createMatchPath(absoluteBaseUrl, paths, mainFields, addMatchAll) {
-    if (mainFields === void 0) { mainFields = ["main"]; }
-    if (addMatchAll === void 0) { addMatchAll = true; }
-    var absolutePaths = MappingEntry.getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll);
-    return function (requestedModule, readJson, fileExists, extensions) {
-        return matchFromAbsolutePaths(absolutePaths, requestedModule, readJson, fileExists, extensions, mainFields);
-    };
+// For UTF-16LE we do not explicitly append special replacement characters if we
+// end on a partial character, we simply let v8 handle that.
+function utf16End(buf) {
+  var r = buf && buf.length ? this.write(buf) : '';
+  if (this.lastNeed) {
+    var end = this.lastTotal - this.lastNeed;
+    return r + this.lastChar.toString('utf16le', 0, end);
+  }
+  return r;
 }
-exports.createMatchPath = createMatchPath;
-/**
- * Finds a path from tsconfig that matches a module load request.
- *
- * @param absolutePathMappings The paths to try as specified in tsconfig but resolved to absolute form.
- * @param requestedModule The required module name.
- * @param readJson Function that can read json from a path (useful for testing).
- * @param fileExists Function that checks for existence of a file at a path (useful for testing).
- * @param extensions File extensions to probe for (useful for testing).
- * @param mainFields A list of package.json field names to try when resolving module files. Select a nested field using an array of field names.
- * @returns the found path, or undefined if no path was found.
- */
-function matchFromAbsolutePaths(absolutePathMappings, requestedModule, readJson, fileExists, extensions, mainFields) {
-    if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskSync; }
-    if (fileExists === void 0) { fileExists = Filesystem.fileExistsSync; }
-    if (extensions === void 0) { extensions = Object.keys(require.extensions); }
-    if (mainFields === void 0) { mainFields = ["main"]; }
-    var tryPaths = TryPath.getPathsToTry(extensions, absolutePathMappings, requestedModule);
-    if (!tryPaths) {
-        return undefined;
-    }
-    return findFirstExistingPath(tryPaths, readJson, fileExists, mainFields);
+
+function base64Text(buf, i) {
+  var n = (buf.length - i) % 3;
+  if (n === 0) return buf.toString('base64', i);
+  this.lastNeed = 3 - n;
+  this.lastTotal = 3;
+  if (n === 1) {
+    this.lastChar[0] = buf[buf.length - 1];
+  } else {
+    this.lastChar[0] = buf[buf.length - 2];
+    this.lastChar[1] = buf[buf.length - 1];
+  }
+  return buf.toString('base64', i, buf.length - n);
 }
-exports.matchFromAbsolutePaths = matchFromAbsolutePaths;
-function findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExists) {
-    for (var index = 0; index < mainFields.length; index++) {
-        var mainFieldSelector = mainFields[index];
-        var candidateMapping = typeof mainFieldSelector === "string"
-            ? packageJson[mainFieldSelector]
-            : mainFieldSelector.reduce(function (obj, key) { return obj[key]; }, packageJson);
-        if (candidateMapping && typeof candidateMapping === "string") {
-            var candidateFilePath = path.join(path.dirname(packageJsonPath), candidateMapping);
-            if (fileExists(candidateFilePath)) {
-                return candidateFilePath;
-            }
-        }
-    }
-    return undefined;
+
+function base64End(buf) {
+  var r = buf && buf.length ? this.write(buf) : '';
+  if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);
+  return r;
 }
-function findFirstExistingPath(tryPaths, readJson, fileExists, mainFields) {
-    if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskSync; }
-    if (mainFields === void 0) { mainFields = ["main"]; }
-    for (var _i = 0, tryPaths_1 = tryPaths; _i < tryPaths_1.length; _i++) {
-        var tryPath = tryPaths_1[_i];
-        if (tryPath.type === "file" ||
-            tryPath.type === "extension" ||
-            tryPath.type === "index") {
-            if (fileExists(tryPath.path)) {
-                return TryPath.getStrippedPath(tryPath);
-            }
-        }
-        else if (tryPath.type === "package") {
-            var packageJson = readJson(tryPath.path);
-            if (packageJson) {
-                var mainFieldMappedFile = findFirstExistingMainFieldMappedFile(packageJson, mainFields, tryPath.path, fileExists);
-                if (mainFieldMappedFile) {
-                    return mainFieldMappedFile;
-                }
-            }
-        }
-        else {
-            TryPath.exhaustiveTypeException(tryPath.type);
-        }
-    }
-    return undefined;
+
+// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)
+function simpleWrite(buf) {
+  return buf.toString(this.encoding);
+}
+
+function simpleEnd(buf) {
+  return buf && buf.length ? this.write(buf) : '';
 }
-//# sourceMappingURL=match-path-sync.js.map
 
 /***/ }),
 
-/***/ 25174:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+/***/ 45591:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
 "use strict";
 
-var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
-    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
-        if (ar || !(i in from)) {
-            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
-            ar[i] = from[i];
-        }
-    }
-    return to.concat(ar || Array.prototype.slice.call(from));
-};
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.register = void 0;
-var match_path_sync_1 = __nccwpck_require__(21810);
-var config_loader_1 = __nccwpck_require__(12077);
-var noOp = function () { return void 0; };
-function getCoreModules(builtinModules) {
-    builtinModules = builtinModules || [
-        "assert",
-        "buffer",
-        "child_process",
-        "cluster",
-        "crypto",
-        "dgram",
-        "dns",
-        "domain",
-        "events",
-        "fs",
-        "http",
-        "https",
-        "net",
-        "os",
-        "path",
-        "punycode",
-        "querystring",
-        "readline",
-        "stream",
-        "string_decoder",
-        "tls",
-        "tty",
-        "url",
-        "util",
-        "v8",
-        "vm",
-        "zlib",
-    ];
-    var coreModules = {};
-    for (var _i = 0, builtinModules_1 = builtinModules; _i < builtinModules_1.length; _i++) {
-        var module_1 = builtinModules_1[_i];
-        coreModules[module_1] = true;
-    }
-    return coreModules;
-}
-/**
- * Installs a custom module load function that can adhere to paths in tsconfig.
- * Returns a function to undo paths registration.
- */
-function register(params) {
-    var cwd;
-    var explicitParams;
-    if (params) {
-        cwd = params.cwd;
-        if (params.baseUrl || params.paths) {
-            explicitParams = params;
-        }
-    }
-    else {
-        // eslint-disable-next-line
-        var minimist = __nccwpck_require__(35871);
-        var argv = minimist(process.argv.slice(2), {
-            // eslint-disable-next-line id-denylist
-            string: ["project"],
-            alias: {
-                project: ["P"],
-            },
-        });
-        cwd = argv.project;
-    }
-    var configLoaderResult = (0, config_loader_1.configLoader)({
-        cwd: cwd !== null && cwd !== void 0 ? cwd : process.cwd(),
-        explicitParams: explicitParams,
-    });
-    if (configLoaderResult.resultType === "failed") {
-        console.warn("".concat(configLoaderResult.message, ". tsconfig-paths will be skipped"));
-        return noOp;
-    }
-    var matchPath = (0, match_path_sync_1.createMatchPath)(configLoaderResult.absoluteBaseUrl, configLoaderResult.paths, configLoaderResult.mainFields, configLoaderResult.addMatchAll);
-    // Patch node's module loading
-    // eslint-disable-next-line @typescript-eslint/no-require-imports,@typescript-eslint/no-var-requires
-    var Module = __nccwpck_require__(98188);
-    // eslint-disable-next-line no-underscore-dangle
-    var originalResolveFilename = Module._resolveFilename;
-    var coreModules = getCoreModules(Module.builtinModules);
-    // eslint-disable-next-line @typescript-eslint/no-explicit-any,no-underscore-dangle
-    Module._resolveFilename = function (request, _parent) {
-        var isCoreModule = coreModules.hasOwnProperty(request);
-        if (!isCoreModule) {
-            var found = matchPath(request);
-            if (found) {
-                var modifiedArguments = __spreadArray([found], [].slice.call(arguments, 1), true); // Passes all arguments. Even those that is not specified above.
-                return originalResolveFilename.apply(this, modifiedArguments);
-            }
-        }
-        return originalResolveFilename.apply(this, arguments);
-    };
-    return function () {
-        // Return node's module loading to original state.
-        // eslint-disable-next-line no-underscore-dangle
-        Module._resolveFilename = originalResolveFilename;
-    };
-}
-exports.register = register;
-//# sourceMappingURL=register.js.map
+const ansiRegex = __nccwpck_require__(35465);
+
+module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
+
 
 /***/ }),
 
-/***/ 44231:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ 35465:
+/***/ ((module) => {
 
 "use strict";
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.exhaustiveTypeException = exports.getStrippedPath = exports.getPathsToTry = void 0;
-var path = __nccwpck_require__(71017);
-var path_1 = __nccwpck_require__(71017);
-var filesystem_1 = __nccwpck_require__(55775);
-/**
- * Builds a list of all physical paths to try by:
- * 1. Check for file named exactly as request.
- * 2. Check for files named as request ending in any of the extensions.
- * 3. Check for file specified in package.json's main property.
- * 4. Check for files named as request ending in "index" with any of the extensions.
- */
-function getPathsToTry(extensions, absolutePathMappings, requestedModule) {
-    if (!absolutePathMappings || !requestedModule || requestedModule[0] === ".") {
-        return undefined;
-    }
-    var pathsToTry = [];
-    for (var _i = 0, absolutePathMappings_1 = absolutePathMappings; _i < absolutePathMappings_1.length; _i++) {
-        var entry = absolutePathMappings_1[_i];
-        var starMatch = entry.pattern === requestedModule
-            ? ""
-            : matchStar(entry.pattern, requestedModule);
-        if (starMatch !== undefined) {
-            var _loop_1 = function (physicalPathPattern) {
-                var physicalPath = physicalPathPattern.replace("*", starMatch);
-                pathsToTry.push({ type: "file", path: physicalPath });
-                pathsToTry.push.apply(pathsToTry, extensions.map(function (e) { return ({ type: "extension", path: physicalPath + e }); }));
-                pathsToTry.push({
-                    type: "package",
-                    path: path.join(physicalPath, "/package.json"),
-                });
-                var indexPath = path.join(physicalPath, "/index");
-                pathsToTry.push.apply(pathsToTry, extensions.map(function (e) { return ({ type: "index", path: indexPath + e }); }));
-            };
-            for (var _a = 0, _b = entry.paths; _a < _b.length; _a++) {
-                var physicalPathPattern = _b[_a];
-                _loop_1(physicalPathPattern);
-            }
-        }
-    }
-    return pathsToTry.length === 0 ? undefined : pathsToTry;
-}
-exports.getPathsToTry = getPathsToTry;
-// Not sure why we don't just return the full found path?
-function getStrippedPath(tryPath) {
-    return tryPath.type === "index"
-        ? (0, path_1.dirname)(tryPath.path)
-        : tryPath.type === "file"
-            ? tryPath.path
-            : tryPath.type === "extension"
-                ? (0, filesystem_1.removeExtension)(tryPath.path)
-                : tryPath.type === "package"
-                    ? tryPath.path
-                    : exhaustiveTypeException(tryPath.type);
-}
-exports.getStrippedPath = getStrippedPath;
-function exhaustiveTypeException(check) {
-    throw new Error("Unknown type ".concat(check));
-}
-exports.exhaustiveTypeException = exhaustiveTypeException;
-/**
- * Matches pattern with a single star against search.
- * Star must match at least one character to be considered a match.
- *
- * @param patttern for example "foo*"
- * @param search for example "fooawesomebar"
- * @returns the part of search that * matches, or undefined if no match.
- */
-function matchStar(pattern, search) {
-    if (search.length < pattern.length) {
-        return undefined;
-    }
-    if (pattern === "*") {
-        return search;
-    }
-    var star = pattern.indexOf("*");
-    if (star === -1) {
-        return undefined;
-    }
-    var part1 = pattern.substring(0, star);
-    var part2 = pattern.substring(star + 1);
-    if (search.substr(0, star) !== part1) {
-        return undefined;
-    }
-    if (search.substr(search.length - part2.length) !== part2) {
-        return undefined;
-    }
-    return search.substr(star, search.length - part2.length);
-}
-//# sourceMappingURL=try-path.js.map
+
+module.exports = ({onlyFirst = false} = {}) => {
+	const pattern = [
+		'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
+		'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
+	].join('|');
+
+	return new RegExp(pattern, onlyFirst ? undefined : 'g');
+};
+
 
 /***/ }),
 
-/***/ 5214:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+/***/ 59318:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
 "use strict";
 
-var __assign = (this && this.__assign) || function () {
-    __assign = Object.assign || function(t) {
-        for (var s, i = 1, n = arguments.length; i < n; i++) {
-            s = arguments[i];
-            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
-                t[p] = s[p];
-        }
-        return t;
-    };
-    return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.loadTsconfig = exports.walkForTsConfig = exports.tsConfigLoader = void 0;
-var path = __nccwpck_require__(71017);
-var fs = __nccwpck_require__(57147);
-// eslint-disable-next-line @typescript-eslint/no-require-imports
-var JSON5 = __nccwpck_require__(86904);
-// eslint-disable-next-line @typescript-eslint/no-require-imports
-var StripBom = __nccwpck_require__(55831);
-function tsConfigLoader(_a) {
-    var getEnv = _a.getEnv, cwd = _a.cwd, _b = _a.loadSync, loadSync = _b === void 0 ? loadSyncDefault : _b;
-    var TS_NODE_PROJECT = getEnv("TS_NODE_PROJECT");
-    var TS_NODE_BASEURL = getEnv("TS_NODE_BASEURL");
-    // tsconfig.loadSync handles if TS_NODE_PROJECT is a file or directory
-    // and also overrides baseURL if TS_NODE_BASEURL is available.
-    var loadResult = loadSync(cwd, TS_NODE_PROJECT, TS_NODE_BASEURL);
-    return loadResult;
-}
-exports.tsConfigLoader = tsConfigLoader;
-function loadSyncDefault(cwd, filename, baseUrl) {
-    // Tsconfig.loadSync uses path.resolve. This is why we can use an absolute path as filename
-    var configPath = resolveConfigPath(cwd, filename);
-    if (!configPath) {
-        return {
-            tsConfigPath: undefined,
-            baseUrl: undefined,
-            paths: undefined,
-        };
-    }
-    var config = loadTsconfig(configPath);
-    return {
-        tsConfigPath: configPath,
-        baseUrl: baseUrl ||
-            (config && config.compilerOptions && config.compilerOptions.baseUrl),
-        paths: config && config.compilerOptions && config.compilerOptions.paths,
-    };
-}
-function resolveConfigPath(cwd, filename) {
-    if (filename) {
-        var absolutePath = fs.lstatSync(filename).isDirectory()
-            ? path.resolve(filename, "./tsconfig.json")
-            : path.resolve(cwd, filename);
-        return absolutePath;
-    }
-    if (fs.statSync(cwd).isFile()) {
-        return path.resolve(cwd);
-    }
-    var configAbsolutePath = walkForTsConfig(cwd);
-    return configAbsolutePath ? path.resolve(configAbsolutePath) : undefined;
-}
-function walkForTsConfig(directory, readdirSync) {
-    if (readdirSync === void 0) { readdirSync = fs.readdirSync; }
-    var files = readdirSync(directory);
-    var filesToCheck = ["tsconfig.json", "jsconfig.json"];
-    for (var _i = 0, filesToCheck_1 = filesToCheck; _i < filesToCheck_1.length; _i++) {
-        var fileToCheck = filesToCheck_1[_i];
-        if (files.indexOf(fileToCheck) !== -1) {
-            return path.join(directory, fileToCheck);
-        }
-    }
-    var parentDirectory = path.dirname(directory);
-    // If we reached the top
-    if (directory === parentDirectory) {
-        return undefined;
-    }
-    return walkForTsConfig(parentDirectory, readdirSync);
-}
-exports.walkForTsConfig = walkForTsConfig;
-function loadTsconfig(configFilePath, 
-// eslint-disable-next-line no-shadow
-existsSync, readFileSync) {
-    if (existsSync === void 0) { existsSync = fs.existsSync; }
-    if (readFileSync === void 0) { readFileSync = function (filename) {
-        return fs.readFileSync(filename, "utf8");
-    }; }
-    if (!existsSync(configFilePath)) {
-        return undefined;
-    }
-    var configString = readFileSync(configFilePath);
-    var cleanedJson = StripBom(configString);
-    var config;
-    try {
-        config = JSON5.parse(cleanedJson);
-    }
-    catch (e) {
-        throw new Error("".concat(configFilePath, " is malformed ").concat(e.message));
-    }
-    var extendedConfig = config.extends;
-    if (extendedConfig) {
-        var base = void 0;
-        if (Array.isArray(extendedConfig)) {
-            base = extendedConfig.reduce(function (currBase, extendedConfigElement) {
-                return mergeTsconfigs(currBase, loadTsconfigFromExtends(configFilePath, extendedConfigElement, existsSync, readFileSync));
-            }, {});
-        }
-        else {
-            base = loadTsconfigFromExtends(configFilePath, extendedConfig, existsSync, readFileSync);
-        }
-        return mergeTsconfigs(base, config);
-    }
-    return config;
+const os = __nccwpck_require__(22037);
+const hasFlag = __nccwpck_require__(81533);
+
+const env = process.env;
+
+let forceColor;
+if (hasFlag('no-color') ||
+	hasFlag('no-colors') ||
+	hasFlag('color=false')) {
+	forceColor = false;
+} else if (hasFlag('color') ||
+	hasFlag('colors') ||
+	hasFlag('color=true') ||
+	hasFlag('color=always')) {
+	forceColor = true;
 }
-exports.loadTsconfig = loadTsconfig;
-/**
- * Intended to be called only from loadTsconfig.
- * Parameters don't have defaults because they should use the same as loadTsconfig.
- */
-function loadTsconfigFromExtends(configFilePath, extendedConfigValue, 
-// eslint-disable-next-line no-shadow
-existsSync, readFileSync) {
-    var _a;
-    if (typeof extendedConfigValue === "string" &&
-        extendedConfigValue.indexOf(".json") === -1) {
-        extendedConfigValue += ".json";
-    }
-    var currentDir = path.dirname(configFilePath);
-    var extendedConfigPath = path.join(currentDir, extendedConfigValue);
-    if (extendedConfigValue.indexOf("/") !== -1 &&
-        extendedConfigValue.indexOf(".") !== -1 &&
-        !existsSync(extendedConfigPath)) {
-        extendedConfigPath = path.join(currentDir, "node_modules", extendedConfigValue);
-    }
-    var config = loadTsconfig(extendedConfigPath, existsSync, readFileSync) || {};
-    // baseUrl should be interpreted as relative to extendedConfigPath,
-    // but we need to update it so it is relative to the original tsconfig being loaded
-    if ((_a = config.compilerOptions) === null || _a === void 0 ? void 0 : _a.baseUrl) {
-        var extendsDir = path.dirname(extendedConfigValue);
-        config.compilerOptions.baseUrl = path.join(extendsDir, config.compilerOptions.baseUrl);
-    }
-    return config;
+if ('FORCE_COLOR' in env) {
+	forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
 }
-function mergeTsconfigs(base, config) {
-    base = base || {};
-    config = config || {};
-    return __assign(__assign(__assign({}, base), config), { compilerOptions: __assign(__assign({}, base.compilerOptions), config.compilerOptions) });
+
+function translateLevel(level) {
+	if (level === 0) {
+		return false;
+	}
+
+	return {
+		level,
+		hasBasic: true,
+		has256: level >= 2,
+		has16m: level >= 3
+	};
 }
-//# sourceMappingURL=tsconfig-loader.js.map
 
-/***/ }),
+function supportsColor(stream) {
+	if (forceColor === false) {
+		return 0;
+	}
 
-/***/ 55831:
-/***/ ((module) => {
+	if (hasFlag('color=16m') ||
+		hasFlag('color=full') ||
+		hasFlag('color=truecolor')) {
+		return 3;
+	}
 
-"use strict";
+	if (hasFlag('color=256')) {
+		return 2;
+	}
 
-module.exports = x => {
-	if (typeof x !== 'string') {
-		throw new TypeError('Expected a string, got ' + typeof x);
+	if (stream && !stream.isTTY && forceColor !== true) {
+		return 0;
 	}
 
-	// Catches EFBBBF (UTF-8 BOM) because the buffer-to-string
-	// conversion translates it to FEFF (UTF-16 BOM)
-	if (x.charCodeAt(0) === 0xFEFF) {
-		return x.slice(1);
+	const min = forceColor ? 1 : 0;
+
+	if (process.platform === 'win32') {
+		// Node.js 7.5.0 is the first version of Node.js to include a patch to
+		// libuv that enables 256 color output on Windows. Anything earlier and it
+		// won't work. However, here we target Node.js 8 at minimum as it is an LTS
+		// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows
+		// release that supports 256 colors. Windows 10 build 14931 is the first release
+		// that supports 16m/TrueColor.
+		const osRelease = os.release().split('.');
+		if (
+			Number(process.versions.node.split('.')[0]) >= 8 &&
+			Number(osRelease[0]) >= 10 &&
+			Number(osRelease[2]) >= 10586
+		) {
+			return Number(osRelease[2]) >= 14931 ? 3 : 2;
+		}
+
+		return 1;
 	}
 
-	return x;
-};
+	if ('CI' in env) {
+		if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
+			return 1;
+		}
 
+		return min;
+	}
 
-/***/ }),
+	if ('TEAMCITY_VERSION' in env) {
+		return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
+	}
 
-/***/ 4351:
-/***/ ((module) => {
+	if (env.COLORTERM === 'truecolor') {
+		return 3;
+	}
 
-/******************************************************************************
-Copyright (c) Microsoft Corporation.
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-***************************************************************************** */
-/* global global, define, Symbol, Reflect, Promise, SuppressedError */
-var __extends;
-var __assign;
-var __rest;
-var __decorate;
-var __param;
-var __esDecorate;
-var __runInitializers;
-var __propKey;
-var __setFunctionName;
-var __metadata;
-var __awaiter;
-var __generator;
-var __exportStar;
-var __values;
-var __read;
-var __spread;
-var __spreadArrays;
-var __spreadArray;
-var __await;
-var __asyncGenerator;
-var __asyncDelegator;
-var __asyncValues;
-var __makeTemplateObject;
-var __importStar;
-var __importDefault;
-var __classPrivateFieldGet;
-var __classPrivateFieldSet;
-var __classPrivateFieldIn;
-var __createBinding;
-var __addDisposableResource;
-var __disposeResources;
-(function (factory) {
-    var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
-    if (typeof define === "function" && define.amd) {
-        define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); });
-    }
-    else if ( true && typeof module.exports === "object") {
-        factory(createExporter(root, createExporter(module.exports)));
-    }
-    else {
-        factory(createExporter(root));
-    }
-    function createExporter(exports, previous) {
-        if (exports !== root) {
-            if (typeof Object.create === "function") {
-                Object.defineProperty(exports, "__esModule", { value: true });
-            }
-            else {
-                exports.__esModule = true;
-            }
-        }
-        return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };
-    }
-})
-(function (exporter) {
-    var extendStatics = Object.setPrototypeOf ||
-        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
-        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
-
-    __extends = function (d, b) {
-        if (typeof b !== "function" && b !== null)
-            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
-        extendStatics(d, b);
-        function __() { this.constructor = d; }
-        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
-    };
-
-    __assign = Object.assign || function (t) {
-        for (var s, i = 1, n = arguments.length; i < n; i++) {
-            s = arguments[i];
-            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
-        }
-        return t;
-    };
-
-    __rest = function (s, e) {
-        var t = {};
-        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
-            t[p] = s[p];
-        if (s != null && typeof Object.getOwnPropertySymbols === "function")
-            for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
-                if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
-                    t[p[i]] = s[p[i]];
-            }
-        return t;
-    };
-
-    __decorate = function (decorators, target, key, desc) {
-        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
-        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
-        else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
-        return c > 3 && r && Object.defineProperty(target, key, r), r;
-    };
-
-    __param = function (paramIndex, decorator) {
-        return function (target, key) { decorator(target, key, paramIndex); }
-    };
-
-    __esDecorate = function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
-        function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
-        var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
-        var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
-        var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
-        var _, done = false;
-        for (var i = decorators.length - 1; i >= 0; i--) {
-            var context = {};
-            for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
-            for (var p in contextIn.access) context.access[p] = contextIn.access[p];
-            context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
-            var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
-            if (kind === "accessor") {
-                if (result === void 0) continue;
-                if (result === null || typeof result !== "object") throw new TypeError("Object expected");
-                if (_ = accept(result.get)) descriptor.get = _;
-                if (_ = accept(result.set)) descriptor.set = _;
-                if (_ = accept(result.init)) initializers.unshift(_);
-            }
-            else if (_ = accept(result)) {
-                if (kind === "field") initializers.unshift(_);
-                else descriptor[key] = _;
-            }
-        }
-        if (target) Object.defineProperty(target, contextIn.name, descriptor);
-        done = true;
-    };
-
-    __runInitializers = function (thisArg, initializers, value) {
-        var useValue = arguments.length > 2;
-        for (var i = 0; i < initializers.length; i++) {
-            value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
-        }
-        return useValue ? value : void 0;
-    };
-
-    __propKey = function (x) {
-        return typeof x === "symbol" ? x : "".concat(x);
-    };
-
-    __setFunctionName = function (f, name, prefix) {
-        if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
-        return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
-    };
-
-    __metadata = function (metadataKey, metadataValue) {
-        if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
-    };
-
-    __awaiter = function (thisArg, _arguments, P, generator) {
-        function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
-        return new (P || (P = Promise))(function (resolve, reject) {
-            function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
-            function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
-            function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
-            step((generator = generator.apply(thisArg, _arguments || [])).next());
-        });
-    };
-
-    __generator = function (thisArg, body) {
-        var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
-        return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
-        function verb(n) { return function (v) { return step([n, v]); }; }
-        function step(op) {
-            if (f) throw new TypeError("Generator is already executing.");
-            while (g && (g = 0, op[0] && (_ = 0)), _) try {
-                if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
-                if (y = 0, t) op = [op[0] & 2, t.value];
-                switch (op[0]) {
-                    case 0: case 1: t = op; break;
-                    case 4: _.label++; return { value: op[1], done: false };
-                    case 5: _.label++; y = op[1]; op = [0]; continue;
-                    case 7: op = _.ops.pop(); _.trys.pop(); continue;
-                    default:
-                        if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
-                        if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
-                        if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
-                        if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
-                        if (t[2]) _.ops.pop();
-                        _.trys.pop(); continue;
-                }
-                op = body.call(thisArg, _);
-            } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
-            if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
-        }
-    };
-
-    __exportStar = function(m, o) {
-        for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
-    };
-
-    __createBinding = Object.create ? (function(o, m, k, k2) {
-        if (k2 === undefined) k2 = k;
-        var desc = Object.getOwnPropertyDescriptor(m, k);
-        if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
-            desc = { enumerable: true, get: function() { return m[k]; } };
-        }
-        Object.defineProperty(o, k2, desc);
-    }) : (function(o, m, k, k2) {
-        if (k2 === undefined) k2 = k;
-        o[k2] = m[k];
-    });
-
-    __values = function (o) {
-        var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
-        if (m) return m.call(o);
-        if (o && typeof o.length === "number") return {
-            next: function () {
-                if (o && i >= o.length) o = void 0;
-                return { value: o && o[i++], done: !o };
-            }
-        };
-        throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
-    };
-
-    __read = function (o, n) {
-        var m = typeof Symbol === "function" && o[Symbol.iterator];
-        if (!m) return o;
-        var i = m.call(o), r, ar = [], e;
-        try {
-            while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
-        }
-        catch (error) { e = { error: error }; }
-        finally {
-            try {
-                if (r && !r.done && (m = i["return"])) m.call(i);
-            }
-            finally { if (e) throw e.error; }
-        }
-        return ar;
-    };
-
-    /** @deprecated */
-    __spread = function () {
-        for (var ar = [], i = 0; i < arguments.length; i++)
-            ar = ar.concat(__read(arguments[i]));
-        return ar;
-    };
-
-    /** @deprecated */
-    __spreadArrays = function () {
-        for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
-        for (var r = Array(s), k = 0, i = 0; i < il; i++)
-            for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
-                r[k] = a[j];
-        return r;
-    };
-
-    __spreadArray = function (to, from, pack) {
-        if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
-            if (ar || !(i in from)) {
-                if (!ar) ar = Array.prototype.slice.call(from, 0, i);
-                ar[i] = from[i];
-            }
-        }
-        return to.concat(ar || Array.prototype.slice.call(from));
-    };
-
-    __await = function (v) {
-        return this instanceof __await ? (this.v = v, this) : new __await(v);
-    };
-
-    __asyncGenerator = function (thisArg, _arguments, generator) {
-        if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
-        var g = generator.apply(thisArg, _arguments || []), i, q = [];
-        return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
-        function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
-        function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
-        function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
-        function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
-        function fulfill(value) { resume("next", value); }
-        function reject(value) { resume("throw", value); }
-        function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
-    };
-
-    __asyncDelegator = function (o) {
-        var i, p;
-        return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
-        function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
-    };
-
-    __asyncValues = function (o) {
-        if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
-        var m = o[Symbol.asyncIterator], i;
-        return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
-        function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
-        function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
-    };
-
-    __makeTemplateObject = function (cooked, raw) {
-        if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
-        return cooked;
-    };
-
-    var __setModuleDefault = Object.create ? (function(o, v) {
-        Object.defineProperty(o, "default", { enumerable: true, value: v });
-    }) : function(o, v) {
-        o["default"] = v;
-    };
-
-    __importStar = function (mod) {
-        if (mod && mod.__esModule) return mod;
-        var result = {};
-        if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
-        __setModuleDefault(result, mod);
-        return result;
-    };
-
-    __importDefault = function (mod) {
-        return (mod && mod.__esModule) ? mod : { "default": mod };
-    };
-
-    __classPrivateFieldGet = function (receiver, state, kind, f) {
-        if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-        if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-        return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
-    };
-
-    __classPrivateFieldSet = function (receiver, state, value, kind, f) {
-        if (kind === "m") throw new TypeError("Private method is not writable");
-        if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
-        if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
-        return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
-    };
-
-    __classPrivateFieldIn = function (state, receiver) {
-        if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
-        return typeof state === "function" ? receiver === state : state.has(receiver);
-    };
-
-    __addDisposableResource = function (env, value, async) {
-        if (value !== null && value !== void 0) {
-            if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
-            var dispose, inner;
-            if (async) {
-                if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
-                dispose = value[Symbol.asyncDispose];
-            }
-            if (dispose === void 0) {
-                if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
-                dispose = value[Symbol.dispose];
-                if (async) inner = dispose;
-            }
-            if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
-            if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
-            env.stack.push({ value: value, dispose: dispose, async: async });
-        }
-        else if (async) {
-            env.stack.push({ async: true });
-        }
-        return value;
-    };
-
-    var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
-        var e = new Error(message);
-        return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
-    };
-
-    __disposeResources = function (env) {
-        function fail(e) {
-            env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
-            env.hasError = true;
-        }
-        function next() {
-            while (env.stack.length) {
-                var rec = env.stack.pop();
-                try {
-                    var result = rec.dispose && rec.dispose.call(rec.value);
-                    if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
-                }
-                catch (e) {
-                    fail(e);
-                }
-            }
-            if (env.hasError) throw env.error;
-        }
-        return next();
-    };
-
-    exporter("__extends", __extends);
-    exporter("__assign", __assign);
-    exporter("__rest", __rest);
-    exporter("__decorate", __decorate);
-    exporter("__param", __param);
-    exporter("__esDecorate", __esDecorate);
-    exporter("__runInitializers", __runInitializers);
-    exporter("__propKey", __propKey);
-    exporter("__setFunctionName", __setFunctionName);
-    exporter("__metadata", __metadata);
-    exporter("__awaiter", __awaiter);
-    exporter("__generator", __generator);
-    exporter("__exportStar", __exportStar);
-    exporter("__createBinding", __createBinding);
-    exporter("__values", __values);
-    exporter("__read", __read);
-    exporter("__spread", __spread);
-    exporter("__spreadArrays", __spreadArrays);
-    exporter("__spreadArray", __spreadArray);
-    exporter("__await", __await);
-    exporter("__asyncGenerator", __asyncGenerator);
-    exporter("__asyncDelegator", __asyncDelegator);
-    exporter("__asyncValues", __asyncValues);
-    exporter("__makeTemplateObject", __makeTemplateObject);
-    exporter("__importStar", __importStar);
-    exporter("__importDefault", __importDefault);
-    exporter("__classPrivateFieldGet", __classPrivateFieldGet);
-    exporter("__classPrivateFieldSet", __classPrivateFieldSet);
-    exporter("__classPrivateFieldIn", __classPrivateFieldIn);
-    exporter("__addDisposableResource", __addDisposableResource);
-    exporter("__disposeResources", __disposeResources);
-});
+	if ('TERM_PROGRAM' in env) {
+		const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
 
+		switch (env.TERM_PROGRAM) {
+			case 'iTerm.app':
+				return version >= 3 ? 3 : 2;
+			case 'Apple_Terminal':
+				return 2;
+			// No default
+		}
+	}
 
-/***/ }),
+	if (/-256(color)?$/i.test(env.TERM)) {
+		return 2;
+	}
 
-/***/ 74294:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+	if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
+		return 1;
+	}
 
-module.exports = __nccwpck_require__(54219);
+	if ('COLORTERM' in env) {
+		return 1;
+	}
+
+	if (env.TERM === 'dumb') {
+		return min;
+	}
+
+	return min;
+}
+
+function getSupportLevel(stream) {
+	const level = supportsColor(stream);
+	return translateLevel(level);
+}
+
+module.exports = {
+	supportsColor: getSupportLevel,
+	stdout: getSupportLevel(process.stdout),
+	stderr: getSupportLevel(process.stderr)
+};
 
 
 /***/ }),
 
-/***/ 54219:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ 81533:
+/***/ ((module) => {
 
 "use strict";
 
+module.exports = (flag, argv) => {
+	argv = argv || process.argv;
+	const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
+	const pos = argv.indexOf(prefix + flag);
+	const terminatorPos = argv.indexOf('--');
+	return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
+};
 
-var net = __nccwpck_require__(41808);
-var tls = __nccwpck_require__(24404);
-var http = __nccwpck_require__(13685);
-var https = __nccwpck_require__(95687);
-var events = __nccwpck_require__(82361);
-var assert = __nccwpck_require__(39491);
-var util = __nccwpck_require__(73837);
 
+/***/ }),
 
-exports.httpOverHttp = httpOverHttp;
-exports.httpsOverHttp = httpsOverHttp;
-exports.httpOverHttps = httpOverHttps;
-exports.httpsOverHttps = httpsOverHttps;
+/***/ 57882:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
+var util = __nccwpck_require__(73837)
+var bl = __nccwpck_require__(20336)
+var headers = __nccwpck_require__(68860)
 
-function httpOverHttp(options) {
-  var agent = new TunnelingAgent(options);
-  agent.request = http.request;
-  return agent;
-}
+var Writable = (__nccwpck_require__(51642).Writable)
+var PassThrough = (__nccwpck_require__(51642).PassThrough)
 
-function httpsOverHttp(options) {
-  var agent = new TunnelingAgent(options);
-  agent.request = http.request;
-  agent.createSocket = createSecureSocket;
-  agent.defaultPort = 443;
-  return agent;
+var noop = function () {}
+
+var overflow = function (size) {
+  size &= 511
+  return size && 512 - size
 }
 
-function httpOverHttps(options) {
-  var agent = new TunnelingAgent(options);
-  agent.request = https.request;
-  return agent;
+var emptyStream = function (self, offset) {
+  var s = new Source(self, offset)
+  s.end()
+  return s
 }
 
-function httpsOverHttps(options) {
-  var agent = new TunnelingAgent(options);
-  agent.request = https.request;
-  agent.createSocket = createSecureSocket;
-  agent.defaultPort = 443;
-  return agent;
+var mixinPax = function (header, pax) {
+  if (pax.path) header.name = pax.path
+  if (pax.linkpath) header.linkname = pax.linkpath
+  if (pax.size) header.size = parseInt(pax.size, 10)
+  header.pax = pax
+  return header
 }
 
+var Source = function (self, offset) {
+  this._parent = self
+  this.offset = offset
+  PassThrough.call(this, { autoDestroy: false })
+}
 
-function TunnelingAgent(options) {
-  var self = this;
-  self.options = options || {};
-  self.proxyOptions = self.options.proxy || {};
-  self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;
-  self.requests = [];
-  self.sockets = [];
+util.inherits(Source, PassThrough)
 
-  self.on('free', function onFree(socket, host, port, localAddress) {
-    var options = toOptions(host, port, localAddress);
-    for (var i = 0, len = self.requests.length; i < len; ++i) {
-      var pending = self.requests[i];
-      if (pending.host === options.host && pending.port === options.port) {
-        // Detect the request to connect same origin server,
-        // reuse the connection.
-        self.requests.splice(i, 1);
-        pending.request.onSocket(socket);
-        return;
-      }
-    }
-    socket.destroy();
-    self.removeSocket(socket);
-  });
+Source.prototype.destroy = function (err) {
+  this._parent.destroy(err)
 }
-util.inherits(TunnelingAgent, events.EventEmitter);
-
-TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
-  var self = this;
-  var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));
 
-  if (self.sockets.length >= this.maxSockets) {
-    // We are over limit so we'll add it to the queue.
-    self.requests.push(options);
-    return;
-  }
+var Extract = function (opts) {
+  if (!(this instanceof Extract)) return new Extract(opts)
+  Writable.call(this, opts)
 
-  // If we are under maxSockets create a new one.
-  self.createSocket(options, function(socket) {
-    socket.on('free', onFree);
-    socket.on('close', onCloseOrRemove);
-    socket.on('agentRemove', onCloseOrRemove);
-    req.onSocket(socket);
+  opts = opts || {}
 
-    function onFree() {
-      self.emit('free', socket, options);
+  this._offset = 0
+  this._buffer = bl()
+  this._missing = 0
+  this._partial = false
+  this._onparse = noop
+  this._header = null
+  this._stream = null
+  this._overflow = null
+  this._cb = null
+  this._locked = false
+  this._destroyed = false
+  this._pax = null
+  this._paxGlobal = null
+  this._gnuLongPath = null
+  this._gnuLongLinkPath = null
+
+  var self = this
+  var b = self._buffer
+
+  var oncontinue = function () {
+    self._continue()
+  }
+
+  var onunlock = function (err) {
+    self._locked = false
+    if (err) return self.destroy(err)
+    if (!self._stream) oncontinue()
+  }
+
+  var onstreamend = function () {
+    self._stream = null
+    var drain = overflow(self._header.size)
+    if (drain) self._parse(drain, ondrain)
+    else self._parse(512, onheader)
+    if (!self._locked) oncontinue()
+  }
+
+  var ondrain = function () {
+    self._buffer.consume(overflow(self._header.size))
+    self._parse(512, onheader)
+    oncontinue()
+  }
+
+  var onpaxglobalheader = function () {
+    var size = self._header.size
+    self._paxGlobal = headers.decodePax(b.slice(0, size))
+    b.consume(size)
+    onstreamend()
+  }
+
+  var onpaxheader = function () {
+    var size = self._header.size
+    self._pax = headers.decodePax(b.slice(0, size))
+    if (self._paxGlobal) self._pax = Object.assign({}, self._paxGlobal, self._pax)
+    b.consume(size)
+    onstreamend()
+  }
+
+  var ongnulongpath = function () {
+    var size = self._header.size
+    this._gnuLongPath = headers.decodeLongPath(b.slice(0, size), opts.filenameEncoding)
+    b.consume(size)
+    onstreamend()
+  }
+
+  var ongnulonglinkpath = function () {
+    var size = self._header.size
+    this._gnuLongLinkPath = headers.decodeLongPath(b.slice(0, size), opts.filenameEncoding)
+    b.consume(size)
+    onstreamend()
+  }
+
+  var onheader = function () {
+    var offset = self._offset
+    var header
+    try {
+      header = self._header = headers.decode(b.slice(0, 512), opts.filenameEncoding, opts.allowUnknownFormat)
+    } catch (err) {
+      self.emit('error', err)
     }
+    b.consume(512)
 
-    function onCloseOrRemove(err) {
-      self.removeSocket(socket);
-      socket.removeListener('free', onFree);
-      socket.removeListener('close', onCloseOrRemove);
-      socket.removeListener('agentRemove', onCloseOrRemove);
+    if (!header) {
+      self._parse(512, onheader)
+      oncontinue()
+      return
+    }
+    if (header.type === 'gnu-long-path') {
+      self._parse(header.size, ongnulongpath)
+      oncontinue()
+      return
+    }
+    if (header.type === 'gnu-long-link-path') {
+      self._parse(header.size, ongnulonglinkpath)
+      oncontinue()
+      return
+    }
+    if (header.type === 'pax-global-header') {
+      self._parse(header.size, onpaxglobalheader)
+      oncontinue()
+      return
+    }
+    if (header.type === 'pax-header') {
+      self._parse(header.size, onpaxheader)
+      oncontinue()
+      return
     }
-  });
-};
 
-TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
-  var self = this;
-  var placeholder = {};
-  self.sockets.push(placeholder);
+    if (self._gnuLongPath) {
+      header.name = self._gnuLongPath
+      self._gnuLongPath = null
+    }
 
-  var connectOptions = mergeOptions({}, self.proxyOptions, {
-    method: 'CONNECT',
-    path: options.host + ':' + options.port,
-    agent: false,
-    headers: {
-      host: options.host + ':' + options.port
+    if (self._gnuLongLinkPath) {
+      header.linkname = self._gnuLongLinkPath
+      self._gnuLongLinkPath = null
     }
-  });
-  if (options.localAddress) {
-    connectOptions.localAddress = options.localAddress;
+
+    if (self._pax) {
+      self._header = header = mixinPax(header, self._pax)
+      self._pax = null
+    }
+
+    self._locked = true
+
+    if (!header.size || header.type === 'directory') {
+      self._parse(512, onheader)
+      self.emit('entry', header, emptyStream(self, offset), onunlock)
+      return
+    }
+
+    self._stream = new Source(self, offset)
+
+    self.emit('entry', header, self._stream, onunlock)
+    self._parse(header.size, onstreamend)
+    oncontinue()
   }
-  if (connectOptions.proxyAuth) {
-    connectOptions.headers = connectOptions.headers || {};
-    connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
-        new Buffer(connectOptions.proxyAuth).toString('base64');
+
+  this._onheader = onheader
+  this._parse(512, onheader)
+}
+
+util.inherits(Extract, Writable)
+
+Extract.prototype.destroy = function (err) {
+  if (this._destroyed) return
+  this._destroyed = true
+
+  if (err) this.emit('error', err)
+  this.emit('close')
+  if (this._stream) this._stream.emit('close')
+}
+
+Extract.prototype._parse = function (size, onparse) {
+  if (this._destroyed) return
+  this._offset += size
+  this._missing = size
+  if (onparse === this._onheader) this._partial = false
+  this._onparse = onparse
+}
+
+Extract.prototype._continue = function () {
+  if (this._destroyed) return
+  var cb = this._cb
+  this._cb = noop
+  if (this._overflow) this._write(this._overflow, undefined, cb)
+  else cb()
+}
+
+Extract.prototype._write = function (data, enc, cb) {
+  if (this._destroyed) return
+
+  var s = this._stream
+  var b = this._buffer
+  var missing = this._missing
+  if (data.length) this._partial = true
+
+  // we do not reach end-of-chunk now. just forward it
+
+  if (data.length < missing) {
+    this._missing -= data.length
+    this._overflow = null
+    if (s) return s.write(data, cb)
+    b.append(data)
+    return cb()
   }
 
-  debug('making CONNECT request');
-  var connectReq = self.request(connectOptions);
-  connectReq.useChunkedEncodingByDefault = false; // for v0.6
-  connectReq.once('response', onResponse); // for v0.6
-  connectReq.once('upgrade', onUpgrade);   // for v0.6
-  connectReq.once('connect', onConnect);   // for v0.7 or later
-  connectReq.once('error', onError);
-  connectReq.end();
+  // end-of-chunk. the parser should call cb.
 
-  function onResponse(res) {
-    // Very hacky. This is necessary to avoid http-parser leaks.
-    res.upgrade = true;
+  this._cb = cb
+  this._missing = 0
+
+  var overflow = null
+  if (data.length > missing) {
+    overflow = data.slice(missing)
+    data = data.slice(0, missing)
   }
 
-  function onUpgrade(res, socket, head) {
-    // Hacky.
-    process.nextTick(function() {
-      onConnect(res, socket, head);
-    });
+  if (s) s.end(data)
+  else b.append(data)
+
+  this._overflow = overflow
+  this._onparse()
+}
+
+Extract.prototype._final = function (cb) {
+  if (this._partial) return this.destroy(new Error('Unexpected end of data'))
+  cb()
+}
+
+module.exports = Extract
+
+
+/***/ }),
+
+/***/ 68860:
+/***/ ((__unused_webpack_module, exports) => {
+
+var alloc = Buffer.alloc
+
+var ZEROS = '0000000000000000000'
+var SEVENS = '7777777777777777777'
+var ZERO_OFFSET = '0'.charCodeAt(0)
+var USTAR_MAGIC = Buffer.from('ustar\x00', 'binary')
+var USTAR_VER = Buffer.from('00', 'binary')
+var GNU_MAGIC = Buffer.from('ustar\x20', 'binary')
+var GNU_VER = Buffer.from('\x20\x00', 'binary')
+var MASK = parseInt('7777', 8)
+var MAGIC_OFFSET = 257
+var VERSION_OFFSET = 263
+
+var clamp = function (index, len, defaultValue) {
+  if (typeof index !== 'number') return defaultValue
+  index = ~~index // Coerce to integer.
+  if (index >= len) return len
+  if (index >= 0) return index
+  index += len
+  if (index >= 0) return index
+  return 0
+}
+
+var toType = function (flag) {
+  switch (flag) {
+    case 0:
+      return 'file'
+    case 1:
+      return 'link'
+    case 2:
+      return 'symlink'
+    case 3:
+      return 'character-device'
+    case 4:
+      return 'block-device'
+    case 5:
+      return 'directory'
+    case 6:
+      return 'fifo'
+    case 7:
+      return 'contiguous-file'
+    case 72:
+      return 'pax-header'
+    case 55:
+      return 'pax-global-header'
+    case 27:
+      return 'gnu-long-link-path'
+    case 28:
+    case 30:
+      return 'gnu-long-path'
   }
 
-  function onConnect(res, socket, head) {
-    connectReq.removeAllListeners();
-    socket.removeAllListeners();
+  return null
+}
 
-    if (res.statusCode !== 200) {
-      debug('tunneling socket could not be established, statusCode=%d',
-        res.statusCode);
-      socket.destroy();
-      var error = new Error('tunneling socket could not be established, ' +
-        'statusCode=' + res.statusCode);
-      error.code = 'ECONNRESET';
-      options.request.emit('error', error);
-      self.removeSocket(placeholder);
-      return;
-    }
-    if (head.length > 0) {
-      debug('got illegal response body from proxy');
-      socket.destroy();
-      var error = new Error('got illegal response body from proxy');
-      error.code = 'ECONNRESET';
-      options.request.emit('error', error);
-      self.removeSocket(placeholder);
-      return;
+var toTypeflag = function (flag) {
+  switch (flag) {
+    case 'file':
+      return 0
+    case 'link':
+      return 1
+    case 'symlink':
+      return 2
+    case 'character-device':
+      return 3
+    case 'block-device':
+      return 4
+    case 'directory':
+      return 5
+    case 'fifo':
+      return 6
+    case 'contiguous-file':
+      return 7
+    case 'pax-header':
+      return 72
+  }
+
+  return 0
+}
+
+var indexOf = function (block, num, offset, end) {
+  for (; offset < end; offset++) {
+    if (block[offset] === num) return offset
+  }
+  return end
+}
+
+var cksum = function (block) {
+  var sum = 8 * 32
+  for (var i = 0; i < 148; i++) sum += block[i]
+  for (var j = 156; j < 512; j++) sum += block[j]
+  return sum
+}
+
+var encodeOct = function (val, n) {
+  val = val.toString(8)
+  if (val.length > n) return SEVENS.slice(0, n) + ' '
+  else return ZEROS.slice(0, n - val.length) + val + ' '
+}
+
+/* Copied from the node-tar repo and modified to meet
+ * tar-stream coding standard.
+ *
+ * Source: https://github.com/npm/node-tar/blob/51b6627a1f357d2eb433e7378e5f05e83b7aa6cd/lib/header.js#L349
+ */
+function parse256 (buf) {
+  // first byte MUST be either 80 or FF
+  // 80 for positive, FF for 2's comp
+  var positive
+  if (buf[0] === 0x80) positive = true
+  else if (buf[0] === 0xFF) positive = false
+  else return null
+
+  // build up a base-256 tuple from the least sig to the highest
+  var tuple = []
+  for (var i = buf.length - 1; i > 0; i--) {
+    var byte = buf[i]
+    if (positive) tuple.push(byte)
+    else tuple.push(0xFF - byte)
+  }
+
+  var sum = 0
+  var l = tuple.length
+  for (i = 0; i < l; i++) {
+    sum += tuple[i] * Math.pow(256, i)
+  }
+
+  return positive ? sum : -1 * sum
+}
+
+var decodeOct = function (val, offset, length) {
+  val = val.slice(offset, offset + length)
+  offset = 0
+
+  // If prefixed with 0x80 then parse as a base-256 integer
+  if (val[offset] & 0x80) {
+    return parse256(val)
+  } else {
+    // Older versions of tar can prefix with spaces
+    while (offset < val.length && val[offset] === 32) offset++
+    var end = clamp(indexOf(val, 32, offset, val.length), val.length, val.length)
+    while (offset < end && val[offset] === 0) offset++
+    if (end === offset) return 0
+    return parseInt(val.slice(offset, end).toString(), 8)
+  }
+}
+
+var decodeStr = function (val, offset, length, encoding) {
+  return val.slice(offset, indexOf(val, 0, offset, offset + length)).toString(encoding)
+}
+
+var addLength = function (str) {
+  var len = Buffer.byteLength(str)
+  var digits = Math.floor(Math.log(len) / Math.log(10)) + 1
+  if (len + digits >= Math.pow(10, digits)) digits++
+
+  return (len + digits) + str
+}
+
+exports.decodeLongPath = function (buf, encoding) {
+  return decodeStr(buf, 0, buf.length, encoding)
+}
+
+exports.encodePax = function (opts) { // TODO: encode more stuff in pax
+  var result = ''
+  if (opts.name) result += addLength(' path=' + opts.name + '\n')
+  if (opts.linkname) result += addLength(' linkpath=' + opts.linkname + '\n')
+  var pax = opts.pax
+  if (pax) {
+    for (var key in pax) {
+      result += addLength(' ' + key + '=' + pax[key] + '\n')
     }
-    debug('tunneling connection has established');
-    self.sockets[self.sockets.indexOf(placeholder)] = socket;
-    return cb(socket);
   }
+  return Buffer.from(result)
+}
 
-  function onError(cause) {
-    connectReq.removeAllListeners();
+exports.decodePax = function (buf) {
+  var result = {}
 
-    debug('tunneling socket could not be established, cause=%s\n',
-          cause.message, cause.stack);
-    var error = new Error('tunneling socket could not be established, ' +
-                          'cause=' + cause.message);
-    error.code = 'ECONNRESET';
-    options.request.emit('error', error);
-    self.removeSocket(placeholder);
+  while (buf.length) {
+    var i = 0
+    while (i < buf.length && buf[i] !== 32) i++
+    var len = parseInt(buf.slice(0, i).toString(), 10)
+    if (!len) return result
+
+    var b = buf.slice(i + 1, len - 1).toString()
+    var keyIndex = b.indexOf('=')
+    if (keyIndex === -1) return result
+    result[b.slice(0, keyIndex)] = b.slice(keyIndex + 1)
+
+    buf = buf.slice(len)
   }
-};
 
-TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
-  var pos = this.sockets.indexOf(socket)
-  if (pos === -1) {
-    return;
+  return result
+}
+
+exports.encode = function (opts) {
+  var buf = alloc(512)
+  var name = opts.name
+  var prefix = ''
+
+  if (opts.typeflag === 5 && name[name.length - 1] !== '/') name += '/'
+  if (Buffer.byteLength(name) !== name.length) return null // utf-8
+
+  while (Buffer.byteLength(name) > 100) {
+    var i = name.indexOf('/')
+    if (i === -1) return null
+    prefix += prefix ? '/' + name.slice(0, i) : name.slice(0, i)
+    name = name.slice(i + 1)
   }
-  this.sockets.splice(pos, 1);
 
-  var pending = this.requests.shift();
-  if (pending) {
-    // If we have pending requests and a socket gets closed a new one
-    // needs to be created to take over in the pool for the one that closed.
-    this.createSocket(pending, function(socket) {
-      pending.request.onSocket(socket);
-    });
+  if (Buffer.byteLength(name) > 100 || Buffer.byteLength(prefix) > 155) return null
+  if (opts.linkname && Buffer.byteLength(opts.linkname) > 100) return null
+
+  buf.write(name)
+  buf.write(encodeOct(opts.mode & MASK, 6), 100)
+  buf.write(encodeOct(opts.uid, 6), 108)
+  buf.write(encodeOct(opts.gid, 6), 116)
+  buf.write(encodeOct(opts.size, 11), 124)
+  buf.write(encodeOct((opts.mtime.getTime() / 1000) | 0, 11), 136)
+
+  buf[156] = ZERO_OFFSET + toTypeflag(opts.type)
+
+  if (opts.linkname) buf.write(opts.linkname, 157)
+
+  USTAR_MAGIC.copy(buf, MAGIC_OFFSET)
+  USTAR_VER.copy(buf, VERSION_OFFSET)
+  if (opts.uname) buf.write(opts.uname, 265)
+  if (opts.gname) buf.write(opts.gname, 297)
+  buf.write(encodeOct(opts.devmajor || 0, 6), 329)
+  buf.write(encodeOct(opts.devminor || 0, 6), 337)
+
+  if (prefix) buf.write(prefix, 345)
+
+  buf.write(encodeOct(cksum(buf), 6), 148)
+
+  return buf
+}
+
+exports.decode = function (buf, filenameEncoding, allowUnknownFormat) {
+  var typeflag = buf[156] === 0 ? 0 : buf[156] - ZERO_OFFSET
+
+  var name = decodeStr(buf, 0, 100, filenameEncoding)
+  var mode = decodeOct(buf, 100, 8)
+  var uid = decodeOct(buf, 108, 8)
+  var gid = decodeOct(buf, 116, 8)
+  var size = decodeOct(buf, 124, 12)
+  var mtime = decodeOct(buf, 136, 12)
+  var type = toType(typeflag)
+  var linkname = buf[157] === 0 ? null : decodeStr(buf, 157, 100, filenameEncoding)
+  var uname = decodeStr(buf, 265, 32)
+  var gname = decodeStr(buf, 297, 32)
+  var devmajor = decodeOct(buf, 329, 8)
+  var devminor = decodeOct(buf, 337, 8)
+
+  var c = cksum(buf)
+
+  // checksum is still initial value if header was null.
+  if (c === 8 * 32) return null
+
+  // valid checksum
+  if (c !== decodeOct(buf, 148, 8)) throw new Error('Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?')
+
+  if (USTAR_MAGIC.compare(buf, MAGIC_OFFSET, MAGIC_OFFSET + 6) === 0) {
+    // ustar (posix) format.
+    // prepend prefix, if present.
+    if (buf[345]) name = decodeStr(buf, 345, 155, filenameEncoding) + '/' + name
+  } else if (GNU_MAGIC.compare(buf, MAGIC_OFFSET, MAGIC_OFFSET + 6) === 0 &&
+             GNU_VER.compare(buf, VERSION_OFFSET, VERSION_OFFSET + 2) === 0) {
+    // 'gnu'/'oldgnu' format. Similar to ustar, but has support for incremental and
+    // multi-volume tarballs.
+  } else {
+    if (!allowUnknownFormat) {
+      throw new Error('Invalid tar header: unknown format.')
+    }
   }
-};
 
-function createSecureSocket(options, cb) {
-  var self = this;
-  TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
-    var hostHeader = options.request.getHeader('host');
-    var tlsOptions = mergeOptions({}, self.options, {
-      socket: socket,
-      servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host
-    });
+  // to support old tar versions that use trailing / to indicate dirs
+  if (typeflag === 0 && name && name[name.length - 1] === '/') typeflag = 5
 
-    // 0 is dummy port for v0.6
-    var secureSocket = tls.connect(0, tlsOptions);
-    self.sockets[self.sockets.indexOf(socket)] = secureSocket;
-    cb(secureSocket);
-  });
+  return {
+    name,
+    mode,
+    uid,
+    gid,
+    size,
+    mtime: new Date(1000 * mtime),
+    type,
+    linkname,
+    uname,
+    gname,
+    devmajor,
+    devminor
+  }
 }
 
 
-function toOptions(host, port, localAddress) {
-  if (typeof host === 'string') { // since v0.10
-    return {
-      host: host,
-      port: port,
-      localAddress: localAddress
-    };
+/***/ }),
+
+/***/ 2283:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+exports.extract = __nccwpck_require__(57882)
+exports.pack = __nccwpck_require__(94930)
+
+
+/***/ }),
+
+/***/ 94930:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var constants = __nccwpck_require__(73186)
+var eos = __nccwpck_require__(81205)
+var inherits = __nccwpck_require__(44124)
+var alloc = Buffer.alloc
+
+var Readable = (__nccwpck_require__(51642).Readable)
+var Writable = (__nccwpck_require__(51642).Writable)
+var StringDecoder = (__nccwpck_require__(71576).StringDecoder)
+
+var headers = __nccwpck_require__(68860)
+
+var DMODE = parseInt('755', 8)
+var FMODE = parseInt('644', 8)
+
+var END_OF_TAR = alloc(1024)
+
+var noop = function () {}
+
+var overflow = function (self, size) {
+  size &= 511
+  if (size) self.push(END_OF_TAR.slice(0, 512 - size))
+}
+
+function modeToType (mode) {
+  switch (mode & constants.S_IFMT) {
+    case constants.S_IFBLK: return 'block-device'
+    case constants.S_IFCHR: return 'character-device'
+    case constants.S_IFDIR: return 'directory'
+    case constants.S_IFIFO: return 'fifo'
+    case constants.S_IFLNK: return 'symlink'
   }
-  return host; // for v0.11 or later
+
+  return 'file'
 }
 
-function mergeOptions(target) {
-  for (var i = 1, len = arguments.length; i < len; ++i) {
-    var overrides = arguments[i];
-    if (typeof overrides === 'object') {
-      var keys = Object.keys(overrides);
-      for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
-        var k = keys[j];
-        if (overrides[k] !== undefined) {
-          target[k] = overrides[k];
-        }
+var Sink = function (to) {
+  Writable.call(this)
+  this.written = 0
+  this._to = to
+  this._destroyed = false
+}
+
+inherits(Sink, Writable)
+
+Sink.prototype._write = function (data, enc, cb) {
+  this.written += data.length
+  if (this._to.push(data)) return cb()
+  this._to._drain = cb
+}
+
+Sink.prototype.destroy = function () {
+  if (this._destroyed) return
+  this._destroyed = true
+  this.emit('close')
+}
+
+var LinkSink = function () {
+  Writable.call(this)
+  this.linkname = ''
+  this._decoder = new StringDecoder('utf-8')
+  this._destroyed = false
+}
+
+inherits(LinkSink, Writable)
+
+LinkSink.prototype._write = function (data, enc, cb) {
+  this.linkname += this._decoder.write(data)
+  cb()
+}
+
+LinkSink.prototype.destroy = function () {
+  if (this._destroyed) return
+  this._destroyed = true
+  this.emit('close')
+}
+
+var Void = function () {
+  Writable.call(this)
+  this._destroyed = false
+}
+
+inherits(Void, Writable)
+
+Void.prototype._write = function (data, enc, cb) {
+  cb(new Error('No body allowed for this entry'))
+}
+
+Void.prototype.destroy = function () {
+  if (this._destroyed) return
+  this._destroyed = true
+  this.emit('close')
+}
+
+var Pack = function (opts) {
+  if (!(this instanceof Pack)) return new Pack(opts)
+  Readable.call(this, opts)
+
+  this._drain = noop
+  this._finalized = false
+  this._finalizing = false
+  this._destroyed = false
+  this._stream = null
+}
+
+inherits(Pack, Readable)
+
+Pack.prototype.entry = function (header, buffer, callback) {
+  if (this._stream) throw new Error('already piping an entry')
+  if (this._finalized || this._destroyed) return
+
+  if (typeof buffer === 'function') {
+    callback = buffer
+    buffer = null
+  }
+
+  if (!callback) callback = noop
+
+  var self = this
+
+  if (!header.size || header.type === 'symlink') header.size = 0
+  if (!header.type) header.type = modeToType(header.mode)
+  if (!header.mode) header.mode = header.type === 'directory' ? DMODE : FMODE
+  if (!header.uid) header.uid = 0
+  if (!header.gid) header.gid = 0
+  if (!header.mtime) header.mtime = new Date()
+
+  if (typeof buffer === 'string') buffer = Buffer.from(buffer)
+  if (Buffer.isBuffer(buffer)) {
+    header.size = buffer.length
+    this._encode(header)
+    var ok = this.push(buffer)
+    overflow(self, header.size)
+    if (ok) process.nextTick(callback)
+    else this._drain = callback
+    return new Void()
+  }
+
+  if (header.type === 'symlink' && !header.linkname) {
+    var linkSink = new LinkSink()
+    eos(linkSink, function (err) {
+      if (err) { // stream was closed
+        self.destroy()
+        return callback(err)
       }
+
+      header.linkname = linkSink.linkname
+      self._encode(header)
+      callback()
+    })
+
+    return linkSink
+  }
+
+  this._encode(header)
+
+  if (header.type !== 'file' && header.type !== 'contiguous-file') {
+    process.nextTick(callback)
+    return new Void()
+  }
+
+  var sink = new Sink(this)
+
+  this._stream = sink
+
+  eos(sink, function (err) {
+    self._stream = null
+
+    if (err) { // stream was closed
+      self.destroy()
+      return callback(err)
+    }
+
+    if (sink.written !== header.size) { // corrupting tar
+      self.destroy()
+      return callback(new Error('size mismatch'))
     }
+
+    overflow(self, header.size)
+    if (self._finalizing) self.finalize()
+    callback()
+  })
+
+  return sink
+}
+
+Pack.prototype.finalize = function () {
+  if (this._stream) {
+    this._finalizing = true
+    return
   }
-  return target;
+
+  if (this._finalized) return
+  this._finalized = true
+  this.push(END_OF_TAR)
+  this.push(null)
 }
 
+Pack.prototype.destroy = function (err) {
+  if (this._destroyed) return
+  this._destroyed = true
 
-var debug;
-if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
-  debug = function() {
-    var args = Array.prototype.slice.call(arguments);
-    if (typeof args[0] === 'string') {
-      args[0] = 'TUNNEL: ' + args[0];
-    } else {
-      args.unshift('TUNNEL:');
+  if (err) this.emit('error', err)
+  this.emit('close')
+  if (this._stream && this._stream.destroy) this._stream.destroy()
+}
+
+Pack.prototype._encode = function (header) {
+  if (!header.pax) {
+    var buf = headers.encode(header)
+    if (buf) {
+      this.push(buf)
+      return
     }
-    console.error.apply(console, args);
   }
-} else {
-  debug = function() {};
+  this._encodePax(header)
 }
-exports.debug = debug; // for test
+
+Pack.prototype._encodePax = function (header) {
+  var paxHeader = headers.encodePax({
+    name: header.name,
+    linkname: header.linkname,
+    pax: header.pax
+  })
+
+  var newHeader = {
+    name: 'PaxHeader',
+    mode: header.mode,
+    uid: header.uid,
+    gid: header.gid,
+    size: paxHeader.length,
+    mtime: header.mtime,
+    type: 'pax-header',
+    linkname: header.linkname && 'PaxHeader',
+    uname: header.uname,
+    gname: header.gname,
+    devmajor: header.devmajor,
+    devminor: header.devminor
+  }
+
+  this.push(headers.encode(newHeader))
+  this.push(paxHeader)
+  overflow(this, paxHeader.length)
+
+  newHeader.size = header.size
+  newHeader.type = header.type
+  this.push(headers.encode(newHeader))
+}
+
+Pack.prototype._read = function (n) {
+  var drain = this._drain
+  this._drain = noop
+  drain()
+}
+
+module.exports = Pack
 
 
 /***/ }),
 
-/***/ 37414:
+/***/ 8517:
 /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
-/*! *****************************************************************************
-Copyright (c) Microsoft Corporation. All rights reserved.
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at http://www.apache.org/licenses/LICENSE-2.0
+/*!
+ * Tmp
+ *
+ * Copyright (c) 2011-2017 KARASZI Istvan 
+ *
+ * MIT Licensed
+ */
 
-THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
-WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
-MERCHANTABLITY OR NON-INFRINGEMENT.
+/*
+ * Module dependencies.
+ */
+const fs = __nccwpck_require__(57147);
+const os = __nccwpck_require__(22037);
+const path = __nccwpck_require__(71017);
+const crypto = __nccwpck_require__(6113);
+const _c = { fs: fs.constants, os: os.constants };
+const rimraf = __nccwpck_require__(14959);
 
-See the Apache Version 2.0 License for specific language governing permissions
-and limitations under the License.
-***************************************************************************** */
+/*
+ * The working inner variables.
+ */
+const
+  // the random characters to choose from
+  RANDOM_CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',
 
-var ts = {}; ((module) => {
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
-  for (var name in all)
-    __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
-  if (from && typeof from === "object" || typeof from === "function") {
-    for (let key of __getOwnPropNames(from))
-      if (!__hasOwnProp.call(to, key) && key !== except)
-        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+  TEMPLATE_PATTERN = /XXXXXX/,
+
+  DEFAULT_TRIES = 3,
+
+  CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR),
+
+  // constants are off on the windows platform and will not match the actual errno codes
+  IS_WIN32 = os.platform() === 'win32',
+  EBADF = _c.EBADF || _c.os.errno.EBADF,
+  ENOENT = _c.ENOENT || _c.os.errno.ENOENT,
+
+  DIR_MODE = 0o700 /* 448 */,
+  FILE_MODE = 0o600 /* 384 */,
+
+  EXIT = 'exit',
+
+  // this will hold the objects need to be removed on exit
+  _removeObjects = [],
+
+  // API change in fs.rmdirSync leads to error when passing in a second parameter, e.g. the callback
+  FN_RMDIR_SYNC = fs.rmdirSync.bind(fs),
+  FN_RIMRAF_SYNC = rimraf.sync;
+
+let
+  _gracefulCleanup = false;
+
+/**
+ * Gets a temporary file name.
+ *
+ * @param {(Options|tmpNameCallback)} options options or callback
+ * @param {?tmpNameCallback} callback the callback function
+ */
+function tmpName(options, callback) {
+  const
+    args = _parseArguments(options, callback),
+    opts = args[0],
+    cb = args[1];
+
+  try {
+    _assertAndSanitizeOptions(opts);
+  } catch (err) {
+    return cb(err);
   }
-  return to;
-};
-var __toCommonJS = (mod) => (__copyProps, mod); // Modified helper to skip setting __esModule.
 
-// src/typescript/typescript.ts
-var typescript_exports = {};
-__export(typescript_exports, {
-  ANONYMOUS: () => ANONYMOUS,
-  AccessFlags: () => AccessFlags,
-  AssertionLevel: () => AssertionLevel,
-  AssignmentDeclarationKind: () => AssignmentDeclarationKind,
-  AssignmentKind: () => AssignmentKind,
-  Associativity: () => Associativity,
-  BreakpointResolver: () => ts_BreakpointResolver_exports,
-  BuilderFileEmit: () => BuilderFileEmit,
-  BuilderProgramKind: () => BuilderProgramKind,
-  BuilderState: () => BuilderState,
-  CallHierarchy: () => ts_CallHierarchy_exports,
-  CharacterCodes: () => CharacterCodes,
-  CheckFlags: () => CheckFlags,
-  CheckMode: () => CheckMode,
-  ClassificationType: () => ClassificationType,
-  ClassificationTypeNames: () => ClassificationTypeNames,
-  CommentDirectiveType: () => CommentDirectiveType,
-  Comparison: () => Comparison,
-  CompletionInfoFlags: () => CompletionInfoFlags,
-  CompletionTriggerKind: () => CompletionTriggerKind,
-  Completions: () => ts_Completions_exports,
-  ContainerFlags: () => ContainerFlags,
-  ContextFlags: () => ContextFlags,
-  Debug: () => Debug,
-  DiagnosticCategory: () => DiagnosticCategory,
-  Diagnostics: () => Diagnostics,
-  DocumentHighlights: () => DocumentHighlights,
-  ElementFlags: () => ElementFlags,
-  EmitFlags: () => EmitFlags,
-  EmitHint: () => EmitHint,
-  EmitOnly: () => EmitOnly,
-  EndOfLineState: () => EndOfLineState,
-  ExitStatus: () => ExitStatus,
-  ExportKind: () => ExportKind,
-  Extension: () => Extension,
-  ExternalEmitHelpers: () => ExternalEmitHelpers,
-  FileIncludeKind: () => FileIncludeKind,
-  FilePreprocessingDiagnosticsKind: () => FilePreprocessingDiagnosticsKind,
-  FileSystemEntryKind: () => FileSystemEntryKind,
-  FileWatcherEventKind: () => FileWatcherEventKind,
-  FindAllReferences: () => ts_FindAllReferences_exports,
-  FlattenLevel: () => FlattenLevel,
-  FlowFlags: () => FlowFlags,
-  ForegroundColorEscapeSequences: () => ForegroundColorEscapeSequences,
-  FunctionFlags: () => FunctionFlags,
-  GeneratedIdentifierFlags: () => GeneratedIdentifierFlags,
-  GetLiteralTextFlags: () => GetLiteralTextFlags,
-  GoToDefinition: () => ts_GoToDefinition_exports,
+  let tries = opts.tries;
+  (function _getUniqueName() {
+    try {
+      const name = _generateTmpName(opts);
+
+      // check whether the path exists then retry if needed
+      fs.stat(name, function (err) {
+        /* istanbul ignore else */
+        if (!err) {
+          /* istanbul ignore else */
+          if (tries-- > 0) return _getUniqueName();
+
+          return cb(new Error('Could not get a unique tmp filename, max tries reached ' + name));
+        }
+
+        cb(null, name);
+      });
+    } catch (err) {
+      cb(err);
+    }
+  }());
+}
+
+/**
+ * Synchronous version of tmpName.
+ *
+ * @param {Object} options
+ * @returns {string} the generated random name
+ * @throws {Error} if the options are invalid or could not generate a filename
+ */
+function tmpNameSync(options) {
+  const
+    args = _parseArguments(options),
+    opts = args[0];
+
+  _assertAndSanitizeOptions(opts);
+
+  let tries = opts.tries;
+  do {
+    const name = _generateTmpName(opts);
+    try {
+      fs.statSync(name);
+    } catch (e) {
+      return name;
+    }
+  } while (tries-- > 0);
+
+  throw new Error('Could not get a unique tmp filename, max tries reached');
+}
+
+/**
+ * Creates and opens a temporary file.
+ *
+ * @param {(Options|null|undefined|fileCallback)} options the config options or the callback function or null or undefined
+ * @param {?fileCallback} callback
+ */
+function file(options, callback) {
+  const
+    args = _parseArguments(options, callback),
+    opts = args[0],
+    cb = args[1];
+
+  // gets a temporary filename
+  tmpName(opts, function _tmpNameCreated(err, name) {
+    /* istanbul ignore else */
+    if (err) return cb(err);
+
+    // create and open the file
+    fs.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err, fd) {
+      /* istanbu ignore else */
+      if (err) return cb(err);
+
+      if (opts.discardDescriptor) {
+        return fs.close(fd, function _discardCallback(possibleErr) {
+          // the chance of getting an error on close here is rather low and might occur in the most edgiest cases only
+          return cb(possibleErr, name, undefined, _prepareTmpFileRemoveCallback(name, -1, opts, false));
+        });
+      } else {
+        // detachDescriptor passes the descriptor whereas discardDescriptor closes it, either way, we no longer care
+        // about the descriptor
+        const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
+        cb(null, name, fd, _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, false));
+      }
+    });
+  });
+}
+
+/**
+ * Synchronous version of file.
+ *
+ * @param {Options} options
+ * @returns {FileSyncObject} object consists of name, fd and removeCallback
+ * @throws {Error} if cannot create a file
+ */
+function fileSync(options) {
+  const
+    args = _parseArguments(options),
+    opts = args[0];
+
+  const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
+  const name = tmpNameSync(opts);
+  var fd = fs.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
+  /* istanbul ignore else */
+  if (opts.discardDescriptor) {
+    fs.closeSync(fd);
+    fd = undefined;
+  }
+
+  return {
+    name: name,
+    fd: fd,
+    removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, true)
+  };
+}
+
+/**
+ * Creates a temporary directory.
+ *
+ * @param {(Options|dirCallback)} options the options or the callback function
+ * @param {?dirCallback} callback
+ */
+function dir(options, callback) {
+  const
+    args = _parseArguments(options, callback),
+    opts = args[0],
+    cb = args[1];
+
+  // gets a temporary filename
+  tmpName(opts, function _tmpNameCreated(err, name) {
+    /* istanbul ignore else */
+    if (err) return cb(err);
+
+    // create the directory
+    fs.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err) {
+      /* istanbul ignore else */
+      if (err) return cb(err);
+
+      cb(null, name, _prepareTmpDirRemoveCallback(name, opts, false));
+    });
+  });
+}
+
+/**
+ * Synchronous version of dir.
+ *
+ * @param {Options} options
+ * @returns {DirSyncObject} object consists of name and removeCallback
+ * @throws {Error} if it cannot create a directory
+ */
+function dirSync(options) {
+  const
+    args = _parseArguments(options),
+    opts = args[0];
+
+  const name = tmpNameSync(opts);
+  fs.mkdirSync(name, opts.mode || DIR_MODE);
+
+  return {
+    name: name,
+    removeCallback: _prepareTmpDirRemoveCallback(name, opts, true)
+  };
+}
+
+/**
+ * Removes files asynchronously.
+ *
+ * @param {Object} fdPath
+ * @param {Function} next
+ * @private
+ */
+function _removeFileAsync(fdPath, next) {
+  const _handler = function (err) {
+    if (err && !_isENOENT(err)) {
+      // reraise any unanticipated error
+      return next(err);
+    }
+    next();
+  };
+
+  if (0 <= fdPath[0])
+    fs.close(fdPath[0], function () {
+      fs.unlink(fdPath[1], _handler);
+    });
+  else fs.unlink(fdPath[1], _handler);
+}
+
+/**
+ * Removes files synchronously.
+ *
+ * @param {Object} fdPath
+ * @private
+ */
+function _removeFileSync(fdPath) {
+  let rethrownException = null;
+  try {
+    if (0 <= fdPath[0]) fs.closeSync(fdPath[0]);
+  } catch (e) {
+    // reraise any unanticipated error
+    if (!_isEBADF(e) && !_isENOENT(e)) throw e;
+  } finally {
+    try {
+      fs.unlinkSync(fdPath[1]);
+    }
+    catch (e) {
+      // reraise any unanticipated error
+      if (!_isENOENT(e)) rethrownException = e;
+    }
+  }
+  if (rethrownException !== null) {
+    throw rethrownException;
+  }
+}
+
+/**
+ * Prepares the callback for removal of the temporary file.
+ *
+ * Returns either a sync callback or a async callback depending on whether
+ * fileSync or file was called, which is expressed by the sync parameter.
+ *
+ * @param {string} name the path of the file
+ * @param {number} fd file descriptor
+ * @param {Object} opts
+ * @param {boolean} sync
+ * @returns {fileCallback | fileCallbackSync}
+ * @private
+ */
+function _prepareTmpFileRemoveCallback(name, fd, opts, sync) {
+  const removeCallbackSync = _prepareRemoveCallback(_removeFileSync, [fd, name], sync);
+  const removeCallback = _prepareRemoveCallback(_removeFileAsync, [fd, name], sync, removeCallbackSync);
+
+  if (!opts.keep) _removeObjects.unshift(removeCallbackSync);
+
+  return sync ? removeCallbackSync : removeCallback;
+}
+
+/**
+ * Prepares the callback for removal of the temporary directory.
+ *
+ * Returns either a sync callback or a async callback depending on whether
+ * tmpFileSync or tmpFile was called, which is expressed by the sync parameter.
+ *
+ * @param {string} name
+ * @param {Object} opts
+ * @param {boolean} sync
+ * @returns {Function} the callback
+ * @private
+ */
+function _prepareTmpDirRemoveCallback(name, opts, sync) {
+  const removeFunction = opts.unsafeCleanup ? rimraf : fs.rmdir.bind(fs);
+  const removeFunctionSync = opts.unsafeCleanup ? FN_RIMRAF_SYNC : FN_RMDIR_SYNC;
+  const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name, sync);
+  const removeCallback = _prepareRemoveCallback(removeFunction, name, sync, removeCallbackSync);
+  if (!opts.keep) _removeObjects.unshift(removeCallbackSync);
+
+  return sync ? removeCallbackSync : removeCallback;
+}
+
+/**
+ * Creates a guarded function wrapping the removeFunction call.
+ *
+ * The cleanup callback is save to be called multiple times.
+ * Subsequent invocations will be ignored.
+ *
+ * @param {Function} removeFunction
+ * @param {string} fileOrDirName
+ * @param {boolean} sync
+ * @param {cleanupCallbackSync?} cleanupCallbackSync
+ * @returns {cleanupCallback | cleanupCallbackSync}
+ * @private
+ */
+function _prepareRemoveCallback(removeFunction, fileOrDirName, sync, cleanupCallbackSync) {
+  let called = false;
+
+  // if sync is true, the next parameter will be ignored
+  return function _cleanupCallback(next) {
+
+    /* istanbul ignore else */
+    if (!called) {
+      // remove cleanupCallback from cache
+      const toRemove = cleanupCallbackSync || _cleanupCallback;
+      const index = _removeObjects.indexOf(toRemove);
+      /* istanbul ignore else */
+      if (index >= 0) _removeObjects.splice(index, 1);
+
+      called = true;
+      if (sync || removeFunction === FN_RMDIR_SYNC || removeFunction === FN_RIMRAF_SYNC) {
+        return removeFunction(fileOrDirName);
+      } else {
+        return removeFunction(fileOrDirName, next || function() {});
+      }
+    }
+  };
+}
+
+/**
+ * The garbage collector.
+ *
+ * @private
+ */
+function _garbageCollector() {
+  /* istanbul ignore else */
+  if (!_gracefulCleanup) return;
+
+  // the function being called removes itself from _removeObjects,
+  // loop until _removeObjects is empty
+  while (_removeObjects.length) {
+    try {
+      _removeObjects[0]();
+    } catch (e) {
+      // already removed?
+    }
+  }
+}
+
+/**
+ * Random name generator based on crypto.
+ * Adapted from http://blog.tompawlak.org/how-to-generate-random-values-nodejs-javascript
+ *
+ * @param {number} howMany
+ * @returns {string} the generated random name
+ * @private
+ */
+function _randomChars(howMany) {
+  let
+    value = [],
+    rnd = null;
+
+  // make sure that we do not fail because we ran out of entropy
+  try {
+    rnd = crypto.randomBytes(howMany);
+  } catch (e) {
+    rnd = crypto.pseudoRandomBytes(howMany);
+  }
+
+  for (var i = 0; i < howMany; i++) {
+    value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]);
+  }
+
+  return value.join('');
+}
+
+/**
+ * Helper which determines whether a string s is blank, that is undefined, or empty or null.
+ *
+ * @private
+ * @param {string} s
+ * @returns {Boolean} true whether the string s is blank, false otherwise
+ */
+function _isBlank(s) {
+  return s === null || _isUndefined(s) || !s.trim();
+}
+
+/**
+ * Checks whether the `obj` parameter is defined or not.
+ *
+ * @param {Object} obj
+ * @returns {boolean} true if the object is undefined
+ * @private
+ */
+function _isUndefined(obj) {
+  return typeof obj === 'undefined';
+}
+
+/**
+ * Parses the function arguments.
+ *
+ * This function helps to have optional arguments.
+ *
+ * @param {(Options|null|undefined|Function)} options
+ * @param {?Function} callback
+ * @returns {Array} parsed arguments
+ * @private
+ */
+function _parseArguments(options, callback) {
+  /* istanbul ignore else */
+  if (typeof options === 'function') {
+    return [{}, options];
+  }
+
+  /* istanbul ignore else */
+  if (_isUndefined(options)) {
+    return [{}, callback];
+  }
+
+  // copy options so we do not leak the changes we make internally
+  const actualOptions = {};
+  for (const key of Object.getOwnPropertyNames(options)) {
+    actualOptions[key] = options[key];
+  }
+
+  return [actualOptions, callback];
+}
+
+/**
+ * Generates a new temporary name.
+ *
+ * @param {Object} opts
+ * @returns {string} the new random name according to opts
+ * @private
+ */
+function _generateTmpName(opts) {
+
+  const tmpDir = opts.tmpdir;
+
+  /* istanbul ignore else */
+  if (!_isUndefined(opts.name))
+    return path.join(tmpDir, opts.dir, opts.name);
+
+  /* istanbul ignore else */
+  if (!_isUndefined(opts.template))
+    return path.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
+
+  // prefix and postfix
+  const name = [
+    opts.prefix ? opts.prefix : 'tmp',
+    '-',
+    process.pid,
+    '-',
+    _randomChars(12),
+    opts.postfix ? '-' + opts.postfix : ''
+  ].join('');
+
+  return path.join(tmpDir, opts.dir, name);
+}
+
+/**
+ * Asserts whether the specified options are valid, also sanitizes options and provides sane defaults for missing
+ * options.
+ *
+ * @param {Options} options
+ * @private
+ */
+function _assertAndSanitizeOptions(options) {
+
+  options.tmpdir = _getTmpDir(options);
+
+  const tmpDir = options.tmpdir;
+
+  /* istanbul ignore else */
+  if (!_isUndefined(options.name))
+    _assertIsRelative(options.name, 'name', tmpDir);
+  /* istanbul ignore else */
+  if (!_isUndefined(options.dir))
+    _assertIsRelative(options.dir, 'dir', tmpDir);
+  /* istanbul ignore else */
+  if (!_isUndefined(options.template)) {
+    _assertIsRelative(options.template, 'template', tmpDir);
+    if (!options.template.match(TEMPLATE_PATTERN))
+      throw new Error(`Invalid template, found "${options.template}".`);
+  }
+  /* istanbul ignore else */
+  if (!_isUndefined(options.tries) && isNaN(options.tries) || options.tries < 0)
+    throw new Error(`Invalid tries, found "${options.tries}".`);
+
+  // if a name was specified we will try once
+  options.tries = _isUndefined(options.name) ? options.tries || DEFAULT_TRIES : 1;
+  options.keep = !!options.keep;
+  options.detachDescriptor = !!options.detachDescriptor;
+  options.discardDescriptor = !!options.discardDescriptor;
+  options.unsafeCleanup = !!options.unsafeCleanup;
+
+  // sanitize dir, also keep (multiple) blanks if the user, purportedly sane, requests us to
+  options.dir = _isUndefined(options.dir) ? '' : path.relative(tmpDir, _resolvePath(options.dir, tmpDir));
+  options.template = _isUndefined(options.template) ? undefined : path.relative(tmpDir, _resolvePath(options.template, tmpDir));
+  // sanitize further if template is relative to options.dir
+  options.template = _isBlank(options.template) ? undefined : path.relative(options.dir, options.template);
+
+  // for completeness' sake only, also keep (multiple) blanks if the user, purportedly sane, requests us to
+  options.name = _isUndefined(options.name) ? undefined : _sanitizeName(options.name);
+  options.prefix = _isUndefined(options.prefix) ? '' : options.prefix;
+  options.postfix = _isUndefined(options.postfix) ? '' : options.postfix;
+}
+
+/**
+ * Resolve the specified path name in respect to tmpDir.
+ *
+ * The specified name might include relative path components, e.g. ../
+ * so we need to resolve in order to be sure that is is located inside tmpDir
+ *
+ * @param name
+ * @param tmpDir
+ * @returns {string}
+ * @private
+ */
+function _resolvePath(name, tmpDir) {
+  const sanitizedName = _sanitizeName(name);
+  if (sanitizedName.startsWith(tmpDir)) {
+    return path.resolve(sanitizedName);
+  } else {
+    return path.resolve(path.join(tmpDir, sanitizedName));
+  }
+}
+
+/**
+ * Sanitize the specified path name by removing all quote characters.
+ *
+ * @param name
+ * @returns {string}
+ * @private
+ */
+function _sanitizeName(name) {
+  if (_isBlank(name)) {
+    return name;
+  }
+  return name.replace(/["']/g, '');
+}
+
+/**
+ * Asserts whether specified name is relative to the specified tmpDir.
+ *
+ * @param {string} name
+ * @param {string} option
+ * @param {string} tmpDir
+ * @throws {Error}
+ * @private
+ */
+function _assertIsRelative(name, option, tmpDir) {
+  if (option === 'name') {
+    // assert that name is not absolute and does not contain a path
+    if (path.isAbsolute(name))
+      throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
+    // must not fail on valid . or .. or similar such constructs
+    let basename = path.basename(name);
+    if (basename === '..' || basename === '.' || basename !== name)
+      throw new Error(`${option} option must not contain a path, found "${name}".`);
+  }
+  else { // if (option === 'dir' || option === 'template') {
+    // assert that dir or template are relative to tmpDir
+    if (path.isAbsolute(name) && !name.startsWith(tmpDir)) {
+      throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
+    }
+    let resolvedPath = _resolvePath(name, tmpDir);
+    if (!resolvedPath.startsWith(tmpDir))
+      throw new Error(`${option} option must be relative to "${tmpDir}", found "${resolvedPath}".`);
+  }
+}
+
+/**
+ * Helper for testing against EBADF to compensate changes made to Node 7.x under Windows.
+ *
+ * @private
+ */
+function _isEBADF(error) {
+  return _isExpectedError(error, -EBADF, 'EBADF');
+}
+
+/**
+ * Helper for testing against ENOENT to compensate changes made to Node 7.x under Windows.
+ *
+ * @private
+ */
+function _isENOENT(error) {
+  return _isExpectedError(error, -ENOENT, 'ENOENT');
+}
+
+/**
+ * Helper to determine whether the expected error code matches the actual code and errno,
+ * which will differ between the supported node versions.
+ *
+ * - Node >= 7.0:
+ *   error.code {string}
+ *   error.errno {number} any numerical value will be negated
+ *
+ * CAVEAT
+ *
+ * On windows, the errno for EBADF is -4083 but os.constants.errno.EBADF is different and we must assume that ENOENT
+ * is no different here.
+ *
+ * @param {SystemError} error
+ * @param {number} errno
+ * @param {string} code
+ * @private
+ */
+function _isExpectedError(error, errno, code) {
+  return IS_WIN32 ? error.code === code : error.code === code && error.errno === errno;
+}
+
+/**
+ * Sets the graceful cleanup.
+ *
+ * If graceful cleanup is set, tmp will remove all controlled temporary objects on process exit, otherwise the
+ * temporary objects will remain in place, waiting to be cleaned up on system restart or otherwise scheduled temporary
+ * object removals.
+ */
+function setGracefulCleanup() {
+  _gracefulCleanup = true;
+}
+
+/**
+ * Returns the currently configured tmp dir from os.tmpdir().
+ *
+ * @private
+ * @param {?Options} options
+ * @returns {string} the currently configured tmp dir
+ */
+function _getTmpDir(options) {
+  return path.resolve(_sanitizeName(options && options.tmpdir || os.tmpdir()));
+}
+
+// Install process exit listener
+process.addListener(EXIT, _garbageCollector);
+
+/**
+ * Configuration options.
+ *
+ * @typedef {Object} Options
+ * @property {?boolean} keep the temporary object (file or dir) will not be garbage collected
+ * @property {?number} tries the number of tries before give up the name generation
+ * @property (?int) mode the access mode, defaults are 0o700 for directories and 0o600 for files
+ * @property {?string} template the "mkstemp" like filename template
+ * @property {?string} name fixed name relative to tmpdir or the specified dir option
+ * @property {?string} dir tmp directory relative to the root tmp directory in use
+ * @property {?string} prefix prefix for the generated name
+ * @property {?string} postfix postfix for the generated name
+ * @property {?string} tmpdir the root tmp directory which overrides the os tmpdir
+ * @property {?boolean} unsafeCleanup recursively removes the created temporary directory, even when it's not empty
+ * @property {?boolean} detachDescriptor detaches the file descriptor, caller is responsible for closing the file, tmp will no longer try closing the file during garbage collection
+ * @property {?boolean} discardDescriptor discards the file descriptor (closes file, fd is -1), tmp will no longer try closing the file during garbage collection
+ */
+
+/**
+ * @typedef {Object} FileSyncObject
+ * @property {string} name the name of the file
+ * @property {string} fd the file descriptor or -1 if the fd has been discarded
+ * @property {fileCallback} removeCallback the callback function to remove the file
+ */
+
+/**
+ * @typedef {Object} DirSyncObject
+ * @property {string} name the name of the directory
+ * @property {fileCallback} removeCallback the callback function to remove the directory
+ */
+
+/**
+ * @callback tmpNameCallback
+ * @param {?Error} err the error object if anything goes wrong
+ * @param {string} name the temporary file name
+ */
+
+/**
+ * @callback fileCallback
+ * @param {?Error} err the error object if anything goes wrong
+ * @param {string} name the temporary file name
+ * @param {number} fd the file descriptor or -1 if the fd had been discarded
+ * @param {cleanupCallback} fn the cleanup callback function
+ */
+
+/**
+ * @callback fileCallbackSync
+ * @param {?Error} err the error object if anything goes wrong
+ * @param {string} name the temporary file name
+ * @param {number} fd the file descriptor or -1 if the fd had been discarded
+ * @param {cleanupCallbackSync} fn the cleanup callback function
+ */
+
+/**
+ * @callback dirCallback
+ * @param {?Error} err the error object if anything goes wrong
+ * @param {string} name the temporary file name
+ * @param {cleanupCallback} fn the cleanup callback function
+ */
+
+/**
+ * @callback dirCallbackSync
+ * @param {?Error} err the error object if anything goes wrong
+ * @param {string} name the temporary file name
+ * @param {cleanupCallbackSync} fn the cleanup callback function
+ */
+
+/**
+ * Removes the temporary created file or directory.
+ *
+ * @callback cleanupCallback
+ * @param {simpleCallback} [next] function to call whenever the tmp object needs to be removed
+ */
+
+/**
+ * Removes the temporary created file or directory.
+ *
+ * @callback cleanupCallbackSync
+ */
+
+/**
+ * Callback function for function composition.
+ * @see {@link https://github.com/raszi/node-tmp/issues/57|raszi/node-tmp#57}
+ *
+ * @callback simpleCallback
+ */
+
+// exporting all the needed methods
+
+// evaluate _getTmpDir() lazily, mainly for simplifying testing but it also will
+// allow users to reconfigure the temporary directory
+Object.defineProperty(module.exports, "tmpdir", ({
+  enumerable: true,
+  configurable: false,
+  get: function () {
+    return _getTmpDir();
+  }
+}));
+
+module.exports.dir = dir;
+module.exports.dirSync = dirSync;
+
+module.exports.file = file;
+module.exports.fileSync = fileSync;
+
+module.exports.tmpName = tmpName;
+module.exports.tmpNameSync = tmpNameSync;
+
+module.exports.setGracefulCleanup = setGracefulCleanup;
+
+
+/***/ }),
+
+/***/ 88375:
+/***/ ((module) => {
+
+// Copied from https://github.com/nodejs/node/blob/master/lib/internal/constants.js
+module.exports = {
+  CHAR_FORWARD_SLASH: 47, /* / */
+};
+
+
+/***/ }),
+
+/***/ 61858:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const path = __nccwpck_require__(71017);
+
+exports.codes = {
+  ERR_INPUT_TYPE_NOT_ALLOWED: createErrorCtor(joinArgs('ERR_INPUT_TYPE_NOT_ALLOWED')),
+  ERR_INVALID_ARG_VALUE: createErrorCtor(joinArgs('ERR_INVALID_ARG_VALUE')),
+  ERR_INVALID_MODULE_SPECIFIER: createErrorCtor(joinArgs('ERR_INVALID_MODULE_SPECIFIER')),
+  ERR_INVALID_PACKAGE_CONFIG: createErrorCtor(joinArgs('ERR_INVALID_PACKAGE_CONFIG')),
+  ERR_INVALID_PACKAGE_TARGET: createErrorCtor(joinArgs('ERR_INVALID_PACKAGE_TARGET')),
+  ERR_MANIFEST_DEPENDENCY_MISSING: createErrorCtor(joinArgs('ERR_MANIFEST_DEPENDENCY_MISSING')),
+  ERR_MODULE_NOT_FOUND: createErrorCtor((path, base, type = 'package') => {
+    return `Cannot find ${type} '${path}' imported from ${base}`
+  }),
+  ERR_PACKAGE_IMPORT_NOT_DEFINED: createErrorCtor(joinArgs('ERR_PACKAGE_IMPORT_NOT_DEFINED')),
+  ERR_PACKAGE_PATH_NOT_EXPORTED: createErrorCtor(joinArgs('ERR_PACKAGE_PATH_NOT_EXPORTED')),
+  ERR_UNSUPPORTED_DIR_IMPORT: createErrorCtor(joinArgs('ERR_UNSUPPORTED_DIR_IMPORT')),
+  ERR_UNSUPPORTED_ESM_URL_SCHEME: createErrorCtor(joinArgs('ERR_UNSUPPORTED_ESM_URL_SCHEME')),
+  ERR_UNKNOWN_FILE_EXTENSION: createErrorCtor(joinArgs('ERR_UNKNOWN_FILE_EXTENSION')),
+}
+
+function joinArgs(name) {
+  return (...args) => {
+    return [name, ...args].join(' ')
+  }
+}
+
+function createErrorCtor(errorMessageCreator) {
+  return class CustomError extends Error {
+    constructor(...args) {
+      super(errorMessageCreator(...args))
+    }
+  }
+}
+exports.createErrRequireEsm = createErrRequireEsm;
+
+// Native ERR_REQUIRE_ESM Error is declared here:
+//   https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/errors.js#L1294-L1313
+// Error class factory is implemented here:
+//   function E: https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/errors.js#L323-L341
+//   function makeNodeErrorWithCode: https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/errors.js#L251-L278
+// The code below should create an error that matches the native error as closely as possible.
+// Third-party libraries which attempt to catch the native ERR_REQUIRE_ESM should recognize our imitation error.
+function createErrRequireEsm(filename, parentPath, packageJsonPath) {
+  const code = 'ERR_REQUIRE_ESM'
+  const err = new Error(getErrRequireEsmMessage(filename, parentPath, packageJsonPath))
+  // Set `name` to be used in stack trace, generate stack trace with that name baked in, then re-declare the `name` field.
+  // This trick is copied from node's source.
+  err.name = `Error [${ code }]`
+  err.stack
+  Object.defineProperty(err, 'name', {
+    value: 'Error',
+    enumerable: false,
+    writable: true,
+    configurable: true
+  })
+  err.code = code
+  return err
+}
+
+// Copy-pasted from https://github.com/nodejs/node/blob/b533fb3508009e5f567cc776daba8fbf665386a6/lib/internal/errors.js#L1293-L1311
+// so that our error message is identical to the native message.
+function getErrRequireEsmMessage(filename, parentPath = null, packageJsonPath = null) {
+  const ext = path.extname(filename)
+  let msg = `Must use import to load ES Module: ${filename}`;
+  if (parentPath && packageJsonPath) {
+    const path = __nccwpck_require__(71017);
+    const basename = path.basename(filename) === path.basename(parentPath) ?
+      filename : path.basename(filename);
+    msg +=
+      '\nrequire() of ES modules is not supported.\nrequire() of ' +
+      `${filename} ${parentPath ? `from ${parentPath} ` : ''}` +
+      `is an ES module file as it is a ${ext} file whose nearest parent ` +
+      `package.json contains "type": "module" which defines all ${ext} ` +
+      'files in that package scope as ES modules.\nInstead ' +
+      'change the requiring code to use ' +
+      'import(), or remove "type": "module" from ' +
+      `${packageJsonPath}.\n`;
+    return msg;
+  }
+  return msg;
+}
+
+
+/***/ }),
+
+/***/ 66755:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+// Copied from https://github.com/nodejs/node/blob/v17.0.1/lib/internal/modules/cjs/helpers.js
+
+
+
+const {
+  ArrayPrototypeForEach,
+  ObjectDefineProperty,
+  ObjectPrototypeHasOwnProperty,
+  SafeSet,
+  StringPrototypeIncludes,
+  StringPrototypeStartsWith,
+} = __nccwpck_require__(26326);
+
+const { getOptionValue } = __nccwpck_require__(40690);
+const userConditions = getOptionValue('--conditions');
+
+const noAddons = getOptionValue('--no-addons');
+const addonConditions = noAddons ? [] : ['node-addons'];
+
+// TODO: Use this set when resolving pkg#exports conditions in loader.js.
+const cjsConditions = new SafeSet([
+  'require',
+  'node',
+  ...addonConditions,
+  ...userConditions,
+]);
+
+/**
+ * @param {any} object
+ * @param {string} [dummyModuleName]
+ * @return {void}
+ */
+function addBuiltinLibsToObject(object, dummyModuleName) {
+  // Make built-in modules available directly (loaded lazily).
+  const Module = (__nccwpck_require__(98188).Module);
+  const { builtinModules } = Module;
+
+  // To require built-in modules in user-land and ignore modules whose
+  // `canBeRequiredByUsers` is false. So we create a dummy module object and not
+  // use `require()` directly.
+  const dummyModule = new Module(dummyModuleName);
+
+  ArrayPrototypeForEach(builtinModules, (name) => {
+    // Neither add underscored modules, nor ones that contain slashes (e.g.,
+    // 'fs/promises') or ones that are already defined.
+    if (StringPrototypeStartsWith(name, '_') ||
+        StringPrototypeIncludes(name, '/') ||
+        ObjectPrototypeHasOwnProperty(object, name)) {
+      return;
+    }
+    // Goals of this mechanism are:
+    // - Lazy loading of built-in modules
+    // - Having all built-in modules available as non-enumerable properties
+    // - Allowing the user to re-assign these variables as if there were no
+    //   pre-existing globals with the same name.
+
+    const setReal = (val) => {
+      // Deleting the property before re-assigning it disables the
+      // getter/setter mechanism.
+      delete object[name];
+      object[name] = val;
+    };
+
+    ObjectDefineProperty(object, name, {
+      get: () => {
+        // Node 12 hack; remove when we drop node12 support
+        const lib = (dummyModule.require || require)(name);
+
+        // Disable the current getter/setter and set up a new
+        // non-enumerable property.
+        delete object[name];
+        ObjectDefineProperty(object, name, {
+          get: () => lib,
+          set: setReal,
+          configurable: true,
+          enumerable: false
+        });
+
+        return lib;
+      },
+      set: setReal,
+      configurable: true,
+      enumerable: false
+    });
+  });
+}
+
+exports.addBuiltinLibsToObject = addBuiltinLibsToObject;
+exports.cjsConditions = cjsConditions;
+
+
+/***/ }),
+
+/***/ 51633:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+// Copied from several files in node's source code.
+// https://github.com/nodejs/node/blob/2d5d77306f6dff9110c1f77fefab25f973415770/lib/internal/modules/cjs/loader.js
+// Each function and variable below must have a comment linking to the source in node's github repo.
+
+
+
+const {
+  ArrayIsArray,
+  ArrayPrototypeIncludes,
+  ArrayPrototypeJoin,
+  ArrayPrototypePush,
+  JSONParse,
+  ObjectKeys,
+  RegExpPrototypeTest,
+  SafeMap,
+  SafeWeakMap,
+  StringPrototypeCharCodeAt,
+  StringPrototypeEndsWith,
+  StringPrototypeLastIndexOf,
+  StringPrototypeIndexOf,
+  StringPrototypeMatch,
+  StringPrototypeSlice,
+  StringPrototypeStartsWith,
+} = __nccwpck_require__(26326);
+const { NativeModule } = __nccwpck_require__(81597);
+const { pathToFileURL, fileURLToPath } = __nccwpck_require__(57310);
+const fs = __nccwpck_require__(57147);
+const path = __nccwpck_require__(71017);
+const { sep } = path;
+const { internalModuleStat } = __nccwpck_require__(3601);
+const packageJsonReader = __nccwpck_require__(53348);
+const {
+  cjsConditions,
+} = __nccwpck_require__(66755);
+const { getOptionValue } = __nccwpck_require__(40690);
+const preserveSymlinks = getOptionValue('--preserve-symlinks');
+const preserveSymlinksMain = getOptionValue('--preserve-symlinks-main');
+const {normalizeSlashes} = __nccwpck_require__(64745);
+const {createErrRequireEsm} = __nccwpck_require__(61858);
+const {
+  codes: {
+    ERR_INVALID_MODULE_SPECIFIER,
+  },
+} = __nccwpck_require__(61858);
+
+const {
+  CHAR_FORWARD_SLASH,
+} = __nccwpck_require__(88375);
+
+const Module = __nccwpck_require__(98188);
+
+const isWindows = process.platform === 'win32';
+
+let statCache = null;
+
+function stat(filename) {
+  filename = path.toNamespacedPath(filename);
+  if (statCache !== null) {
+    const result = statCache.get(filename);
+    if (result !== undefined) return result;
+  }
+  const result = internalModuleStat(filename);
+  if (statCache !== null && result >= 0) {
+    // Only set cache when `internalModuleStat(filename)` succeeds.
+    statCache.set(filename, result);
+  }
+  return result;
+}
+
+// Note:
+// we cannot get access to node's internal cache, which is populated from
+// within node's Module constructor.  So the cache here will always be empty.
+// It's possible we could approximate our own cache by building it up with
+// hacky workarounds, but it's not worth the complexity and flakiness.
+const moduleParentCache = new SafeWeakMap();
+
+// Given a module name, and a list of paths to test, returns the first
+// matching file in the following precedence.
+//
+// require("a.")
+//   -> a.
+//
+// require("a")
+//   -> a
+//   -> a.
+//   -> a/index.
+
+const packageJsonCache = new SafeMap();
+
+function readPackage(requestPath) {
+  const jsonPath = path.resolve(requestPath, 'package.json');
+
+  const existing = packageJsonCache.get(jsonPath);
+  if (existing !== undefined) return existing;
+
+  const result = packageJsonReader.read(jsonPath);
+  const json = result.containsKeys === false ? '{}' : result.string;
+  if (json === undefined) {
+    packageJsonCache.set(jsonPath, false);
+    return false;
+  }
+
+  try {
+    const parsed = JSONParse(json);
+    const filtered = {
+      name: parsed.name,
+      main: parsed.main,
+      exports: parsed.exports,
+      imports: parsed.imports,
+      type: parsed.type
+    };
+    packageJsonCache.set(jsonPath, filtered);
+    return filtered;
+  } catch (e) {
+    e.path = jsonPath;
+    e.message = 'Error parsing ' + jsonPath + ': ' + e.message;
+    throw e;
+  }
+}
+
+function readPackageScope(checkPath) {
+  const rootSeparatorIndex = StringPrototypeIndexOf(checkPath, sep);
+  let separatorIndex;
+  do {
+    separatorIndex = StringPrototypeLastIndexOf(checkPath, sep);
+    checkPath = StringPrototypeSlice(checkPath, 0, separatorIndex);
+    if (StringPrototypeEndsWith(checkPath, sep + 'node_modules'))
+      return false;
+    const pjson = readPackage(checkPath + sep);
+    if (pjson) return {
+      data: pjson,
+      path: checkPath,
+    };
+  } while (separatorIndex > rootSeparatorIndex);
+  return false;
+}
+
+/**
+ * @param {{
+ *   nodeEsmResolver: ReturnType,
+ *   extensions: import('../src/file-extensions').Extensions,
+ *   preferTsExts
+ * }} opts
+ */
+function createCjsLoader(opts) {
+const {nodeEsmResolver, preferTsExts} = opts;
+const {replacementsForCjs, replacementsForJs, replacementsForMjs, replacementsForJsx} = opts.extensions;
+const {
+  encodedSepRegEx,
+  packageExportsResolve,
+  packageImportsResolve
+} = nodeEsmResolver;
+
+function tryPackage(requestPath, exts, isMain, originalPath) {
+  // const pkg = readPackage(requestPath)?.main;
+  const tmp = readPackage(requestPath)
+  const pkg = tmp != null ? tmp.main : undefined;
+
+  if (!pkg) {
+    return tryExtensions(path.resolve(requestPath, 'index'), exts, isMain);
+  }
+
+  const filename = path.resolve(requestPath, pkg);
+  let actual = tryReplacementExtensions(filename, isMain) ||
+    tryFile(filename, isMain) ||
+    tryExtensions(filename, exts, isMain) ||
+    tryExtensions(path.resolve(filename, 'index'), exts, isMain);
+  if (actual === false) {
+    actual = tryExtensions(path.resolve(requestPath, 'index'), exts, isMain);
+    if (!actual) {
+      // eslint-disable-next-line no-restricted-syntax
+      const err = new Error(
+        `Cannot find module '${filename}'. ` +
+        'Please verify that the package.json has a valid "main" entry'
+      );
+      err.code = 'MODULE_NOT_FOUND';
+      err.path = path.resolve(requestPath, 'package.json');
+      err.requestPath = originalPath;
+      // TODO(BridgeAR): Add the requireStack as well.
+      throw err;
+    } else {
+      const jsonPath = path.resolve(requestPath, 'package.json');
+      process.emitWarning(
+        `Invalid 'main' field in '${jsonPath}' of '${pkg}'. ` +
+          'Please either fix that or report it to the module author',
+        'DeprecationWarning',
+        'DEP0128'
+      );
+    }
+  }
+  return actual;
+}
+
+// In order to minimize unnecessary lstat() calls,
+// this cache is a list of known-real paths.
+// Set to an empty Map to reset.
+const realpathCache = new SafeMap();
+
+// Check if the file exists and is not a directory
+// if using --preserve-symlinks and isMain is false,
+// keep symlinks intact, otherwise resolve to the
+// absolute realpath.
+function tryFile(requestPath, isMain) {
+  const rc = stat(requestPath);
+  if (rc !== 0) return;
+  if (preserveSymlinks && !isMain) {
+    return path.resolve(requestPath);
+  }
+  return toRealPath(requestPath);
+}
+
+function toRealPath(requestPath) {
+  return fs.realpathSync(requestPath, {
+    // [internalFS.realpathCacheKey]: realpathCache
+  });
+}
+
+function statReplacementExtensions(p) {
+  const lastDotIndex = p.lastIndexOf('.');
+  if(lastDotIndex >= 0) {
+    const ext = p.slice(lastDotIndex);
+    if (ext === '.js' || ext === '.jsx' || ext === '.mjs' || ext === '.cjs') {
+      const pathnameWithoutExtension = p.slice(0, lastDotIndex);
+      const replacementExts =
+        ext === '.js' ? replacementsForJs
+        : ext === '.jsx' ? replacementsForJsx
+        : ext === '.mjs' ? replacementsForMjs
+        : replacementsForCjs;
+      for (let i = 0; i < replacementExts.length; i++) {
+        const filename = pathnameWithoutExtension + replacementExts[i];
+        const rc = stat(filename);
+        if (rc === 0) {
+          return [rc, filename];
+        }
+      }
+    }
+  }
+  return [stat(p), p];
+}
+function tryReplacementExtensions(p, isMain) {
+  const lastDotIndex = p.lastIndexOf('.');
+  if(lastDotIndex >= 0) {
+    const ext = p.slice(lastDotIndex);
+    if (ext === '.js' || ext === '.jsx' || ext === '.mjs' || ext === '.cjs') {
+      const pathnameWithoutExtension = p.slice(0, lastDotIndex);
+      const replacementExts =
+        ext === '.js' ? replacementsForJs
+        : ext === '.jsx' ? replacementsForJsx
+        : ext === '.mjs' ? replacementsForMjs
+        : replacementsForCjs;
+      for (let i = 0; i < replacementExts.length; i++) {
+        const filename = tryFile(pathnameWithoutExtension + replacementExts[i], isMain);
+        if (filename) {
+          return filename;
+        }
+      }
+    }
+  }
+  return false;
+}
+
+// Given a path, check if the file exists with any of the set extensions
+function tryExtensions(p, exts, isMain) {
+  for (let i = 0; i < exts.length; i++) {
+    const filename = tryFile(p + exts[i], isMain);
+
+    if (filename) {
+      return filename;
+    }
+  }
+  return false;
+}
+
+function trySelfParentPath(parent) {
+  if (!parent) return false;
+
+  if (parent.filename) {
+    return parent.filename;
+  } else if (parent.id === '' || parent.id === 'internal/preload') {
+    try {
+      return process.cwd() + path.sep;
+    } catch {
+      return false;
+    }
+  }
+}
+
+function trySelf(parentPath, request) {
+  if (!parentPath) return false;
+
+  const { data: pkg, path: pkgPath } = readPackageScope(parentPath) || {};
+  if (!pkg || pkg.exports === undefined) return false;
+  if (typeof pkg.name !== 'string') return false;
+
+  let expansion;
+  if (request === pkg.name) {
+    expansion = '.';
+  } else if (StringPrototypeStartsWith(request, `${pkg.name}/`)) {
+    expansion = '.' + StringPrototypeSlice(request, pkg.name.length);
+  } else {
+    return false;
+  }
+
+  try {
+    return finalizeEsmResolution(packageExportsResolve(
+      pathToFileURL(pkgPath + '/package.json'), expansion, pkg,
+      pathToFileURL(parentPath), cjsConditions).resolved, parentPath, pkgPath);
+  } catch (e) {
+    if (e.code === 'ERR_MODULE_NOT_FOUND')
+      throw createEsmNotFoundErr(request, pkgPath + '/package.json');
+    throw e;
+  }
+}
+
+// This only applies to requests of a specific form:
+// 1. name/.*
+// 2. @scope/name/.*
+const EXPORTS_PATTERN = /^((?:@[^/\\%]+\/)?[^./\\%][^/\\%]*)(\/.*)?$/;
+function resolveExports(nmPath, request) {
+  // The implementation's behavior is meant to mirror resolution in ESM.
+  const { 1: name, 2: expansion = '' } =
+    StringPrototypeMatch(request, EXPORTS_PATTERN) || [];
+  if (!name)
+    return;
+  const pkgPath = path.resolve(nmPath, name);
+  const pkg = readPackage(pkgPath);
+  // if (pkg?.exports != null) {
+  if (pkg != null && pkg.exports != null) {
+    try {
+      return finalizeEsmResolution(packageExportsResolve(
+        pathToFileURL(pkgPath + '/package.json'), '.' + expansion, pkg, null,
+        cjsConditions).resolved, null, pkgPath);
+    } catch (e) {
+      if (e.code === 'ERR_MODULE_NOT_FOUND')
+        throw createEsmNotFoundErr(request, pkgPath + '/package.json');
+      throw e;
+    }
+  }
+}
+
+// Backwards compat for old node versions
+const hasModulePathCache = !!(__nccwpck_require__(98188)._pathCache);
+const Module_pathCache = Object.create(null);
+const Module_pathCache_get = hasModulePathCache ? (cacheKey) => Module._pathCache[cacheKey] : (cacheKey) => Module_pathCache[cacheKey];
+const Module_pathCache_set = hasModulePathCache ? (cacheKey, value) => (Module._pathCache[cacheKey] = value) : (cacheKey) => (Module_pathCache[cacheKey] = value);
+
+const trailingSlashRegex = /(?:^|\/)\.?\.$/;
+const Module_findPath = function _findPath(request, paths, isMain) {
+  const absoluteRequest = path.isAbsolute(request);
+  if (absoluteRequest) {
+    paths = [''];
+  } else if (!paths || paths.length === 0) {
+    return false;
+  }
+
+  const cacheKey = request + '\x00' + ArrayPrototypeJoin(paths, '\x00');
+  const entry = Module_pathCache_get(cacheKey);
+  if (entry)
+    return entry;
+
+  let exts;
+  let trailingSlash = request.length > 0 &&
+    StringPrototypeCharCodeAt(request, request.length - 1) ===
+    CHAR_FORWARD_SLASH;
+  if (!trailingSlash) {
+    trailingSlash = RegExpPrototypeTest(trailingSlashRegex, request);
+  }
+
+  // For each path
+  for (let i = 0; i < paths.length; i++) {
+    // Don't search further if path doesn't exist
+    const curPath = paths[i];
+    if (curPath && stat(curPath) < 1) continue;
+
+    if (!absoluteRequest) {
+      const exportsResolved = resolveExports(curPath, request);
+      if (exportsResolved)
+        return exportsResolved;
+    }
+
+    const _basePath = path.resolve(curPath, request);
+    let filename;
+
+    const [rc, basePath] = statReplacementExtensions(_basePath);
+    if (!trailingSlash) {
+      if (rc === 0) {  // File.
+        if (!isMain) {
+          if (preserveSymlinks) {
+            filename = path.resolve(basePath);
+          } else {
+            filename = toRealPath(basePath);
+          }
+        } else if (preserveSymlinksMain) {
+          // For the main module, we use the preserveSymlinksMain flag instead
+          // mainly for backward compatibility, as the preserveSymlinks flag
+          // historically has not applied to the main module.  Most likely this
+          // was intended to keep .bin/ binaries working, as following those
+          // symlinks is usually required for the imports in the corresponding
+          // files to resolve; that said, in some use cases following symlinks
+          // causes bigger problems which is why the preserveSymlinksMain option
+          // is needed.
+          filename = path.resolve(basePath);
+        } else {
+          filename = toRealPath(basePath);
+        }
+      }
+
+      if (!filename) {
+        // Try it with each of the extensions
+        if (exts === undefined)
+          exts = ObjectKeys(Module._extensions);
+        filename = tryExtensions(basePath, exts, isMain);
+      }
+    }
+
+    if (!filename && rc === 1) {  // Directory.
+      // try it with each of the extensions at "index"
+      if (exts === undefined)
+        exts = ObjectKeys(Module._extensions);
+      filename = tryPackage(basePath, exts, isMain, request);
+    }
+
+    if (filename) {
+      Module_pathCache_set(cacheKey, filename);
+      return filename;
+    }
+  }
+
+  return false;
+};
+
+const Module_resolveFilename = function _resolveFilename(request, parent, isMain, options) {
+  if (StringPrototypeStartsWith(request, 'node:') ||
+      NativeModule.canBeRequiredByUsers(request)) {
+    return request;
+  }
+
+  let paths;
+
+  if (typeof options === 'object' && options !== null) {
+    if (ArrayIsArray(options.paths)) {
+      const isRelative = StringPrototypeStartsWith(request, './') ||
+          StringPrototypeStartsWith(request, '../') ||
+          ((isWindows && StringPrototypeStartsWith(request, '.\\')) ||
+          StringPrototypeStartsWith(request, '..\\'));
+
+      if (isRelative) {
+        paths = options.paths;
+      } else {
+        const fakeParent = new Module('', null);
+
+        paths = [];
+
+        for (let i = 0; i < options.paths.length; i++) {
+          const path = options.paths[i];
+          fakeParent.paths = Module._nodeModulePaths(path);
+          const lookupPaths = Module._resolveLookupPaths(request, fakeParent);
+
+          for (let j = 0; j < lookupPaths.length; j++) {
+            if (!ArrayPrototypeIncludes(paths, lookupPaths[j]))
+              ArrayPrototypePush(paths, lookupPaths[j]);
+          }
+        }
+      }
+    } else if (options.paths === undefined) {
+      paths = Module._resolveLookupPaths(request, parent);
+    } else {
+      throw new ERR_INVALID_ARG_VALUE('options.paths', options.paths);
+    }
+  } else {
+    paths = Module._resolveLookupPaths(request, parent);
+  }
+
+  // if (parent?.filename) {
+  // node 12 hack
+  if (parent != null && parent.filename) {
+    if (request[0] === '#') {
+      const pkg = readPackageScope(parent.filename) || {};
+
+      // if (pkg.data?.imports != null) {
+      // node 12 hack
+      if (pkg.data != null && pkg.data.imports != null) {
+        try {
+          return finalizeEsmResolution(
+            packageImportsResolve(request, pathToFileURL(parent.filename),
+                                  cjsConditions), parent.filename,
+            pkg.path);
+        } catch (e) {
+          if (e.code === 'ERR_MODULE_NOT_FOUND')
+            throw createEsmNotFoundErr(request);
+          throw e;
+        }
+      }
+    }
+  }
+
+  // Try module self resolution first
+  const parentPath = trySelfParentPath(parent);
+  const selfResolved = trySelf(parentPath, request);
+  if (selfResolved) {
+    const cacheKey = request + '\x00' +
+         (paths.length === 1 ? paths[0] : ArrayPrototypeJoin(paths, '\x00'));
+    Module._pathCache[cacheKey] = selfResolved;
+    return selfResolved;
+  }
+
+  // Look up the filename first, since that's the cache key.
+  const filename = Module._findPath(request, paths, isMain, false);
+  if (filename) return filename;
+  const requireStack = [];
+  for (let cursor = parent;
+    cursor;
+    cursor = moduleParentCache.get(cursor)) {
+    ArrayPrototypePush(requireStack, cursor.filename || cursor.id);
+  }
+  let message = `Cannot find module '${request}'`;
+  if (requireStack.length > 0) {
+    message = message + '\nRequire stack:\n- ' +
+              ArrayPrototypeJoin(requireStack, '\n- ');
+  }
+  // eslint-disable-next-line no-restricted-syntax
+  const err = new Error(message);
+  err.code = 'MODULE_NOT_FOUND';
+  err.requireStack = requireStack;
+  throw err;
+};
+
+function finalizeEsmResolution(resolved, parentPath, pkgPath) {
+  if (RegExpPrototypeTest(encodedSepRegEx, resolved))
+    throw new ERR_INVALID_MODULE_SPECIFIER(
+      resolved, 'must not include encoded "/" or "\\" characters', parentPath);
+  const filename = fileURLToPath(resolved);
+  const actual = tryReplacementExtensions(filename) || tryFile(filename);
+  if (actual)
+    return actual;
+  const err = createEsmNotFoundErr(filename,
+                                   path.resolve(pkgPath, 'package.json'));
+  throw err;
+}
+
+function createEsmNotFoundErr(request, path) {
+  // eslint-disable-next-line no-restricted-syntax
+  const err = new Error(`Cannot find module '${request}'`);
+  err.code = 'MODULE_NOT_FOUND';
+  if (path)
+    err.path = path;
+  // TODO(BridgeAR): Add the requireStack as well.
+  return err;
+}
+
+
+return {
+  Module_findPath,
+  Module_resolveFilename
+}
+
+}
+
+/**
+ * copied from Module._extensions['.js']
+ * https://github.com/nodejs/node/blob/v15.3.0/lib/internal/modules/cjs/loader.js#L1113-L1120
+ * @param {import('../src/index').Service} service
+ * @param {NodeJS.Module} module
+ * @param {string} filename
+ */
+function assertScriptCanLoadAsCJSImpl(service, module, filename) {
+  const pkg = readPackageScope(filename);
+
+  // ts-node modification: allow our configuration to override
+  const tsNodeClassification = service.moduleTypeClassifier.classifyModuleByModuleTypeOverrides(normalizeSlashes(filename));
+  if(tsNodeClassification.moduleType === 'cjs') return;
+
+  // ignore package.json when file extension is ESM-only or CJS-only
+  // [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS]
+  const lastDotIndex = filename.lastIndexOf('.');
+  const ext = lastDotIndex >= 0 ? filename.slice(lastDotIndex) : '';
+
+  if((ext === '.cts' || ext === '.cjs') && tsNodeClassification.moduleType === 'auto') return;
+
+  // Function require shouldn't be used in ES modules.
+  if (ext === '.mts' || ext === '.mjs' || tsNodeClassification.moduleType === 'esm' || (pkg && pkg.data && pkg.data.type === 'module')) {
+    const parentPath = module.parent && module.parent.filename;
+    const packageJsonPath = pkg ? path.resolve(pkg.path, 'package.json') : null;
+    throw createErrRequireEsm(filename, parentPath, packageJsonPath);
+  }
+}
+
+
+module.exports = {
+  createCjsLoader,
+  assertScriptCanLoadAsCJSImpl,
+  readPackageScope
+};
+
+
+/***/ }),
+
+/***/ 37207:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+// Copied from https://raw.githubusercontent.com/nodejs/node/v15.3.0/lib/internal/modules/esm/get_format.js
+
+
+const {
+  RegExpPrototypeExec,
+  StringPrototypeStartsWith,
+} = __nccwpck_require__(26326);
+const { extname } = __nccwpck_require__(71017);
+const { getOptionValue } = __nccwpck_require__(40690);
+
+const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(s => parseInt(s, 10));
+const experimentalJsonModules =
+  nodeMajor > 17
+  || (nodeMajor === 17 && nodeMinor >= 5)
+  || (nodeMajor === 16 && nodeMinor >= 15)
+  || getOptionValue('--experimental-json-modules');
+const experimentalWasmModules = getOptionValue('--experimental-wasm-modules');
+const { URL, fileURLToPath } = __nccwpck_require__(57310);
+const { ERR_UNKNOWN_FILE_EXTENSION } = (__nccwpck_require__(61858).codes);
+
+const extensionFormatMap = {
+  '__proto__': null,
+  '.cjs': 'commonjs',
+  '.js': 'module',
+  '.mjs': 'module'
+};
+
+const legacyExtensionFormatMap = {
+  '__proto__': null,
+  '.cjs': 'commonjs',
+  '.js': 'commonjs',
+  '.json': 'commonjs',
+  '.mjs': 'module',
+  '.node': 'commonjs'
+};
+
+if (experimentalWasmModules)
+  extensionFormatMap['.wasm'] = legacyExtensionFormatMap['.wasm'] = 'wasm';
+
+if (experimentalJsonModules)
+  extensionFormatMap['.json'] = legacyExtensionFormatMap['.json'] = 'json';
+
+/**
+ *
+ * @param {'node' | 'explicit'} [tsNodeExperimentalSpecifierResolution]
+ * @param {ReturnType<
+ *  typeof import('../dist-raw/node-internal-modules-esm-resolve').createResolve
+ * >} nodeEsmResolver
+ */
+function createGetFormat(tsNodeExperimentalSpecifierResolution, nodeEsmResolver) {
+// const experimentalSpeciferResolution = tsNodeExperimentalSpecifierResolution ?? getOptionValue('--experimental-specifier-resolution');
+let experimentalSpeciferResolution = tsNodeExperimentalSpecifierResolution != null ? tsNodeExperimentalSpecifierResolution : getOptionValue('--experimental-specifier-resolution');
+const { getPackageType } = nodeEsmResolver;
+
+/**
+ * @param {string} url
+ * @param {{}} context
+ * @param {any} defaultGetFormatUnused
+ * @returns {ReturnType}
+ */
+function defaultGetFormat(url, context, defaultGetFormatUnused) {
+  if (StringPrototypeStartsWith(url, 'node:')) {
+    return { format: 'builtin' };
+  }
+  const parsed = new URL(url);
+  if (parsed.protocol === 'data:') {
+    const [ , mime ] = RegExpPrototypeExec(
+      /^([^/]+\/[^;,]+)(?:[^,]*?)(;base64)?,/,
+      parsed.pathname,
+    ) || [ null, null, null ];
+    const format = ({
+      '__proto__': null,
+      'text/javascript': 'module',
+      'application/json': experimentalJsonModules ? 'json' : null,
+      'application/wasm': experimentalWasmModules ? 'wasm' : null
+    })[mime] || null;
+    return { format };
+  } else if (parsed.protocol === 'file:') {
+    const ext = extname(parsed.pathname);
+    let format;
+    if (ext === '.js') {
+      format = getPackageType(parsed.href) === 'module' ? 'module' : 'commonjs';
+    } else {
+      format = extensionFormatMap[ext];
+    }
+    if (!format) {
+      if (experimentalSpeciferResolution === 'node') {
+        process.emitWarning(
+          'The Node.js specifier resolution in ESM is experimental.',
+          'ExperimentalWarning');
+        format = legacyExtensionFormatMap[ext];
+      } else {
+        throw new ERR_UNKNOWN_FILE_EXTENSION(ext, fileURLToPath(url));
+      }
+    }
+    return { format: format || null };
+  }
+  return { format: null };
+}
+
+return {defaultGetFormat};
+}
+
+module.exports = {
+  createGetFormat
+};
+
+
+/***/ }),
+
+/***/ 67968:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+// Copied from https://raw.githubusercontent.com/nodejs/node/v15.3.0/lib/internal/modules/esm/resolve.js
+
+
+
+const {versionGteLt} = __nccwpck_require__(64745);
+
+// Test for node >14.13.1 || (>=12.20.0 && <13)
+const builtinModuleProtocol =
+  versionGteLt(process.versions.node, '14.13.1') ||
+  versionGteLt(process.versions.node, '12.20.0', '13.0.0')
+    ? 'node:'
+    : 'nodejs:';
+
+const {
+  ArrayIsArray,
+  ArrayPrototypeJoin,
+  ArrayPrototypeShift,
+  JSONParse,
+  JSONStringify,
+  ObjectFreeze,
+  ObjectGetOwnPropertyNames,
+  ObjectPrototypeHasOwnProperty,
+  RegExpPrototypeTest,
+  SafeMap,
+  SafeSet,
+  StringPrototypeEndsWith,
+  StringPrototypeIndexOf,
+  StringPrototypeLastIndexOf,
+  StringPrototypeReplace,
+  StringPrototypeSlice,
+  StringPrototypeSplit,
+  StringPrototypeStartsWith,
+  StringPrototypeSubstr,
+} = __nccwpck_require__(26326);
+
+// const internalFS = require('internal/fs/utils');
+const Module = __nccwpck_require__(98188);
+const { NativeModule } = __nccwpck_require__(81597);
+const {
+  realpathSync,
+  statSync,
+  Stats,
+} = __nccwpck_require__(57147);
+// const { getOptionValue } = require('internal/options');
+const { getOptionValue } = __nccwpck_require__(40690);
+// // Do not eagerly grab .manifest, it may be in TDZ
+// const policy = getOptionValue('--experimental-policy') ?
+//   require('internal/process/policy') :
+//   null;
+// disabled for now.  I am not sure if/how we should support this
+const policy = null;
+const { sep, relative } = __nccwpck_require__(71017);
+const preserveSymlinks = getOptionValue('--preserve-symlinks');
+const preserveSymlinksMain = getOptionValue('--preserve-symlinks-main');
+const typeFlag = getOptionValue('--input-type');
+// const { URL, pathToFileURL, fileURLToPath } = require('internal/url');
+const { URL, pathToFileURL, fileURLToPath } = __nccwpck_require__(57310);
+const {
+  ERR_INPUT_TYPE_NOT_ALLOWED,
+  ERR_INVALID_ARG_VALUE,
+  ERR_INVALID_MODULE_SPECIFIER,
+  ERR_INVALID_PACKAGE_CONFIG,
+  ERR_INVALID_PACKAGE_TARGET,
+  ERR_MANIFEST_DEPENDENCY_MISSING,
+  ERR_MODULE_NOT_FOUND,
+  ERR_PACKAGE_IMPORT_NOT_DEFINED,
+  ERR_PACKAGE_PATH_NOT_EXPORTED,
+  ERR_UNSUPPORTED_DIR_IMPORT,
+  ERR_UNSUPPORTED_ESM_URL_SCHEME,
+// } = require('internal/errors').codes;
+} = (__nccwpck_require__(61858).codes);
+
+// const { Module: CJSModule } = require('internal/modules/cjs/loader');
+const CJSModule = Module;
+
+// const packageJsonReader = require('internal/modules/package_json_reader');
+const packageJsonReader = __nccwpck_require__(53348);
+const userConditions = getOptionValue('--conditions');
+const DEFAULT_CONDITIONS = ObjectFreeze(['node', 'import', ...userConditions]);
+const DEFAULT_CONDITIONS_SET = new SafeSet(DEFAULT_CONDITIONS);
+
+const pendingDeprecation = getOptionValue('--pending-deprecation');
+
+/**
+ * @param {{
+ *  extensions: import('../src/file-extensions').Extensions,
+ *  preferTsExts: boolean | undefined;
+ *  tsNodeExperimentalSpecifierResolution: import('../src/index').ExperimentalSpecifierResolution | undefined;
+ * }} opts
+ */
+function createResolve(opts) {
+// TODO receive cached fs implementations here
+const {preferTsExts, tsNodeExperimentalSpecifierResolution, extensions} = opts;
+const esrnExtensions = extensions.experimentalSpecifierResolutionAddsIfOmitted;
+const {legacyMainResolveAddsIfOmitted, replacementsForCjs, replacementsForJs, replacementsForMjs, replacementsForJsx} = extensions;
+// const experimentalSpecifierResolution = tsNodeExperimentalSpecifierResolution ?? getOptionValue('--experimental-specifier-resolution');
+const experimentalSpecifierResolution = tsNodeExperimentalSpecifierResolution != null ? tsNodeExperimentalSpecifierResolution : getOptionValue('--experimental-specifier-resolution');
+
+const emittedPackageWarnings = new SafeSet();
+function emitFolderMapDeprecation(match, pjsonUrl, isExports, base) {
+  const pjsonPath = fileURLToPath(pjsonUrl);
+  if (!pendingDeprecation) {
+    const nodeModulesIndex = StringPrototypeLastIndexOf(pjsonPath,
+                                                        '/node_modules/');
+    if (nodeModulesIndex !== -1) {
+      const afterNodeModulesPath = StringPrototypeSlice(pjsonPath,
+                                                        nodeModulesIndex + 14,
+                                                        -13);
+      try {
+        const { packageSubpath } = parsePackageName(afterNodeModulesPath);
+        if (packageSubpath === '.')
+          return;
+      } catch {}
+    }
+  }
+  if (emittedPackageWarnings.has(pjsonPath + '|' + match))
+    return;
+  emittedPackageWarnings.add(pjsonPath + '|' + match);
+  process.emitWarning(
+    `Use of deprecated folder mapping "${match}" in the ${isExports ?
+      '"exports"' : '"imports"'} field module resolution of the package at ${
+      pjsonPath}${base ? ` imported from ${fileURLToPath(base)}` : ''}.\n` +
+      `Update this package.json to use a subpath pattern like "${match}*".`,
+    'DeprecationWarning',
+    'DEP0148'
+  );
+}
+
+function getConditionsSet(conditions) {
+  if (conditions !== undefined && conditions !== DEFAULT_CONDITIONS) {
+    if (!ArrayIsArray(conditions)) {
+      throw new ERR_INVALID_ARG_VALUE('conditions', conditions,
+                                      'expected an array');
+    }
+    return new SafeSet(conditions);
+  }
+  return DEFAULT_CONDITIONS_SET;
+}
+
+const realpathCache = new SafeMap();
+const packageJSONCache = new SafeMap();  /* string -> PackageConfig */
+
+const statSupportsThrowIfNoEntry = versionGteLt(process.versions.node, '15.3.0') ||
+  versionGteLt(process.versions.node, '14.17.0', '15.0.0');
+const tryStatSync = statSupportsThrowIfNoEntry ? tryStatSyncWithoutErrors : tryStatSyncWithErrors;
+const statsIfNotFound = new Stats();
+function tryStatSyncWithoutErrors(path) {
+  const stats = statSync(path, { throwIfNoEntry: false });
+  if(stats != null) return stats;
+  return statsIfNotFound;
+}
+function tryStatSyncWithErrors(path) {
+  try {
+    return statSync(path);
+  } catch {
+    return statsIfNotFound;
+  }
+}
+
+function getPackageConfig(path, specifier, base) {
+  const existing = packageJSONCache.get(path);
+  if (existing !== undefined) {
+    return existing;
+  }
+  const source = packageJsonReader.read(path).string;
+  if (source === undefined) {
+    const packageConfig = {
+      pjsonPath: path,
+      exists: false,
+      main: undefined,
+      name: undefined,
+      type: 'none',
+      exports: undefined,
+      imports: undefined,
+    };
+    packageJSONCache.set(path, packageConfig);
+    return packageConfig;
+  }
+
+  let packageJSON;
+  try {
+    packageJSON = JSONParse(source);
+  } catch (error) {
+    throw new ERR_INVALID_PACKAGE_CONFIG(
+      path,
+      (base ? `"${specifier}" from ` : '') + fileURLToPath(base || specifier),
+      error.message
+    );
+  }
+
+  let { imports, main, name, type } = packageJSON;
+  const { exports } = packageJSON;
+  if (typeof imports !== 'object' || imports === null) imports = undefined;
+  if (typeof main !== 'string') main = undefined;
+  if (typeof name !== 'string') name = undefined;
+  // Ignore unknown types for forwards compatibility
+  if (type !== 'module' && type !== 'commonjs') type = 'none';
+
+  const packageConfig = {
+    pjsonPath: path,
+    exists: true,
+    main,
+    name,
+    type,
+    exports,
+    imports,
+  };
+  packageJSONCache.set(path, packageConfig);
+  return packageConfig;
+}
+
+function getPackageScopeConfig(resolved) {
+  let packageJSONUrl = new URL('./package.json', resolved);
+  while (true) {
+    const packageJSONPath = packageJSONUrl.pathname;
+    if (StringPrototypeEndsWith(packageJSONPath, 'node_modules/package.json'))
+      break;
+    const packageConfig = getPackageConfig(fileURLToPath(packageJSONUrl),
+                                           resolved);
+    if (packageConfig.exists) return packageConfig;
+
+    const lastPackageJSONUrl = packageJSONUrl;
+    packageJSONUrl = new URL('../package.json', packageJSONUrl);
+
+    // Terminates at root where ../package.json equals ../../package.json
+    // (can't just check "/package.json" for Windows support).
+    if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) break;
+  }
+  const packageJSONPath = fileURLToPath(packageJSONUrl);
+  const packageConfig = {
+    pjsonPath: packageJSONPath,
+    exists: false,
+    main: undefined,
+    name: undefined,
+    type: 'none',
+    exports: undefined,
+    imports: undefined,
+  };
+  packageJSONCache.set(packageJSONPath, packageConfig);
+  return packageConfig;
+}
+
+/*
+ * Legacy CommonJS main resolution:
+ * 1. let M = pkg_url + (json main field)
+ * 2. TRY(M, M.js, M.json, M.node)
+ * 3. TRY(M/index.js, M/index.json, M/index.node)
+ * 4. TRY(pkg_url/index.js, pkg_url/index.json, pkg_url/index.node)
+ * 5. NOT_FOUND
+ */
+function fileExists(url) {
+  return tryStatSync(fileURLToPath(url)).isFile();
+}
+
+function legacyMainResolve(packageJSONUrl, packageConfig, base) {
+  let guess;
+  if (packageConfig.main !== undefined) {
+    // Note: fs check redundances will be handled by Descriptor cache here.
+    if(guess = resolveReplacementExtensions(new URL(`./${packageConfig.main}`, packageJSONUrl))) {
+      return guess;
+    }
+    if (fileExists(guess = new URL(`./${packageConfig.main}`,
+                                   packageJSONUrl))) {
+      return guess;
+    }
+    for(const extension of legacyMainResolveAddsIfOmitted) {
+      if (fileExists(guess = new URL(`./${packageConfig.main}${extension}`,
+                                    packageJSONUrl))) {
+        return guess;
+      }
+    }
+    for(const extension of legacyMainResolveAddsIfOmitted) {
+      if (fileExists(guess = new URL(`./${packageConfig.main}/index${extension}`,
+                                    packageJSONUrl))) {
+        return guess;
+      }
+    }
+    // Fallthrough.
+  }
+  for(const extension of legacyMainResolveAddsIfOmitted) {
+    if (fileExists(guess = new URL(`./index${extension}`, packageJSONUrl))) {
+      return guess;
+    }
+  }
+  // Not found.
+  throw new ERR_MODULE_NOT_FOUND(
+    fileURLToPath(new URL('.', packageJSONUrl)), fileURLToPath(base));
+}
+
+/** attempts replacement extensions, then tries exact name, then attempts appending extensions */
+function resolveExtensionsWithTryExactName(search) {
+  const resolvedReplacementExtension = resolveReplacementExtensions(search);
+  if(resolvedReplacementExtension) return resolvedReplacementExtension;
+  if (fileExists(search)) return search;
+  return resolveExtensions(search);
+}
+
+// This appends missing extensions
+function resolveExtensions(search) {
+  for (let i = 0; i < esrnExtensions.length; i++) {
+    const extension = esrnExtensions[i];
+    const guess = new URL(`${search.pathname}${extension}`, search);
+    if (fileExists(guess)) return guess;
+  }
+  return undefined;
+}
+
+/** This replaces JS with TS extensions */
+function resolveReplacementExtensions(search) {
+  const lastDotIndex = search.pathname.lastIndexOf('.');
+  if(lastDotIndex >= 0) {
+    const ext = search.pathname.slice(lastDotIndex);
+    if (ext === '.js' || ext === '.jsx' || ext === '.mjs' || ext === '.cjs') {
+      const pathnameWithoutExtension = search.pathname.slice(0, lastDotIndex);
+      const replacementExts =
+        ext === '.js' ? replacementsForJs
+        : ext === '.jsx' ? replacementsForJsx
+        : ext === '.mjs' ? replacementsForMjs
+        : replacementsForCjs;
+      const guess = new URL(search.toString());
+      for (let i = 0; i < replacementExts.length; i++) {
+        const extension = replacementExts[i];
+        guess.pathname = `${pathnameWithoutExtension}${extension}`;
+        if (fileExists(guess)) return guess;
+      }
+    }
+  }
+  return undefined;
+}
+
+function resolveIndex(search) {
+  return resolveExtensions(new URL('index', search));
+}
+
+const encodedSepRegEx = /%2F|%2C/i;
+function finalizeResolution(resolved, base) {
+  if (RegExpPrototypeTest(encodedSepRegEx, resolved.pathname))
+    throw new ERR_INVALID_MODULE_SPECIFIER(
+      resolved.pathname, 'must not include encoded "/" or "\\" characters',
+      fileURLToPath(base));
+
+  if (experimentalSpecifierResolution === 'node') {
+    const path = fileURLToPath(resolved);
+    let file = resolveExtensionsWithTryExactName(resolved);
+    if (file !== undefined) return file;
+    if (!StringPrototypeEndsWith(path, '/')) {
+      file = resolveIndex(new URL(`${resolved}/`));
+      if (file !== undefined) return file;
+    } else {
+      return resolveIndex(resolved) || resolved;
+    }
+    throw new ERR_MODULE_NOT_FOUND(
+      resolved.pathname, fileURLToPath(base), 'module');
+  }
+
+  const file = resolveReplacementExtensions(resolved) || resolved;
+  const path = fileURLToPath(file);
+
+  const stats = tryStatSync(StringPrototypeEndsWith(path, '/') ?
+    StringPrototypeSlice(path, -1) : path);
+  if (stats.isDirectory()) {
+    const err = new ERR_UNSUPPORTED_DIR_IMPORT(path, fileURLToPath(base));
+    err.url = String(resolved);
+    throw err;
+  } else if (!stats.isFile()) {
+    throw new ERR_MODULE_NOT_FOUND(
+      path || resolved.pathname, fileURLToPath(base), 'module');
+  }
+
+  return file;
+}
+
+function throwImportNotDefined(specifier, packageJSONUrl, base) {
+  throw new ERR_PACKAGE_IMPORT_NOT_DEFINED(
+    specifier, packageJSONUrl && fileURLToPath(new URL('.', packageJSONUrl)),
+    fileURLToPath(base));
+}
+
+function throwExportsNotFound(subpath, packageJSONUrl, base) {
+  throw new ERR_PACKAGE_PATH_NOT_EXPORTED(
+    fileURLToPath(new URL('.', packageJSONUrl)), subpath,
+    base && fileURLToPath(base));
+}
+
+function throwInvalidSubpath(subpath, packageJSONUrl, internal, base) {
+  const reason = `request is not a valid subpath for the "${internal ?
+    'imports' : 'exports'}" resolution of ${fileURLToPath(packageJSONUrl)}`;
+  throw new ERR_INVALID_MODULE_SPECIFIER(subpath, reason,
+                                         base && fileURLToPath(base));
+}
+
+function throwInvalidPackageTarget(
+  subpath, target, packageJSONUrl, internal, base) {
+  if (typeof target === 'object' && target !== null) {
+    target = JSONStringify(target, null, '');
+  } else {
+    target = `${target}`;
+  }
+  throw new ERR_INVALID_PACKAGE_TARGET(
+    fileURLToPath(new URL('.', packageJSONUrl)), subpath, target,
+    internal, base && fileURLToPath(base));
+}
+
+const invalidSegmentRegEx = /(^|\\|\/)(\.\.?|node_modules)(\\|\/|$)/;
+const patternRegEx = /\*/g;
+
+function resolvePackageTargetString(
+  target, subpath, match, packageJSONUrl, base, pattern, internal, conditions) {
+  if (subpath !== '' && !pattern && target[target.length - 1] !== '/')
+    throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base);
+
+  if (!StringPrototypeStartsWith(target, './')) {
+    if (internal && !StringPrototypeStartsWith(target, '../') &&
+        !StringPrototypeStartsWith(target, '/')) {
+      let isURL = false;
+      try {
+        new URL(target);
+        isURL = true;
+      } catch {}
+      if (!isURL) {
+        const exportTarget = pattern ?
+          StringPrototypeReplace(target, patternRegEx, subpath) :
+          target + subpath;
+        return packageResolve(exportTarget, packageJSONUrl, conditions);
+      }
+    }
+    throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base);
+  }
+
+  if (RegExpPrototypeTest(invalidSegmentRegEx, StringPrototypeSlice(target, 2)))
+    throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base);
+
+  const resolved = new URL(target, packageJSONUrl);
+  const resolvedPath = resolved.pathname;
+  const packagePath = new URL('.', packageJSONUrl).pathname;
+
+  if (!StringPrototypeStartsWith(resolvedPath, packagePath))
+    throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base);
+
+  if (subpath === '') return resolved;
+
+  if (RegExpPrototypeTest(invalidSegmentRegEx, subpath))
+    throwInvalidSubpath(match + subpath, packageJSONUrl, internal, base);
+
+  if (pattern)
+    return new URL(StringPrototypeReplace(resolved.href, patternRegEx,
+                                          subpath));
+  return new URL(subpath, resolved);
+}
+
+/**
+ * @param {string} key
+ * @returns {boolean}
+ */
+function isArrayIndex(key) {
+  const keyNum = +key;
+  if (`${keyNum}` !== key) return false;
+  return keyNum >= 0 && keyNum < 0xFFFF_FFFF;
+}
+
+function resolvePackageTarget(packageJSONUrl, target, subpath, packageSubpath,
+                              base, pattern, internal, conditions) {
+  if (typeof target === 'string') {
+    return resolvePackageTargetString(
+      target, subpath, packageSubpath, packageJSONUrl, base, pattern, internal,
+      conditions);
+  } else if (ArrayIsArray(target)) {
+    if (target.length === 0)
+      return null;
+
+    let lastException;
+    for (let i = 0; i < target.length; i++) {
+      const targetItem = target[i];
+      let resolved;
+      try {
+        resolved = resolvePackageTarget(
+          packageJSONUrl, targetItem, subpath, packageSubpath, base, pattern,
+          internal, conditions);
+      } catch (e) {
+        lastException = e;
+        if (e.code === 'ERR_INVALID_PACKAGE_TARGET')
+          continue;
+        throw e;
+      }
+      if (resolved === undefined)
+        continue;
+      if (resolved === null) {
+        lastException = null;
+        continue;
+      }
+      return resolved;
+    }
+    if (lastException === undefined || lastException === null)
+      return lastException;
+    throw lastException;
+  } else if (typeof target === 'object' && target !== null) {
+    const keys = ObjectGetOwnPropertyNames(target);
+    for (let i = 0; i < keys.length; i++) {
+      const key = keys[i];
+      if (isArrayIndex(key)) {
+        throw new ERR_INVALID_PACKAGE_CONFIG(
+          fileURLToPath(packageJSONUrl), base,
+          '"exports" cannot contain numeric property keys.');
+      }
+    }
+    for (let i = 0; i < keys.length; i++) {
+      const key = keys[i];
+      if (key === 'default' || conditions.has(key)) {
+        const conditionalTarget = target[key];
+        const resolved = resolvePackageTarget(
+          packageJSONUrl, conditionalTarget, subpath, packageSubpath, base,
+          pattern, internal, conditions);
+        if (resolved === undefined)
+          continue;
+        return resolved;
+      }
+    }
+    return undefined;
+  } else if (target === null) {
+    return null;
+  }
+  throwInvalidPackageTarget(packageSubpath, target, packageJSONUrl, internal,
+                            base);
+}
+
+function isConditionalExportsMainSugar(exports, packageJSONUrl, base) {
+  if (typeof exports === 'string' || ArrayIsArray(exports)) return true;
+  if (typeof exports !== 'object' || exports === null) return false;
+
+  const keys = ObjectGetOwnPropertyNames(exports);
+  let isConditionalSugar = false;
+  let i = 0;
+  for (let j = 0; j < keys.length; j++) {
+    const key = keys[j];
+    const curIsConditionalSugar = key === '' || key[0] !== '.';
+    if (i++ === 0) {
+      isConditionalSugar = curIsConditionalSugar;
+    } else if (isConditionalSugar !== curIsConditionalSugar) {
+      throw new ERR_INVALID_PACKAGE_CONFIG(
+        fileURLToPath(packageJSONUrl), base,
+        '"exports" cannot contain some keys starting with \'.\' and some not.' +
+        ' The exports object must either be an object of package subpath keys' +
+        ' or an object of main entry condition name keys only.');
+    }
+  }
+  return isConditionalSugar;
+}
+
+/**
+ * @param {URL} packageJSONUrl
+ * @param {string} packageSubpath
+ * @param {object} packageConfig
+ * @param {string} base
+ * @param {Set} conditions
+ * @returns {{resolved: URL, exact: boolean}}
+ */
+function packageExportsResolve(
+  packageJSONUrl, packageSubpath, packageConfig, base, conditions) {
+  let exports = packageConfig.exports;
+  if (isConditionalExportsMainSugar(exports, packageJSONUrl, base))
+    exports = { '.': exports };
+
+  if (ObjectPrototypeHasOwnProperty(exports, packageSubpath)) {
+    const target = exports[packageSubpath];
+    const resolved = resolvePackageTarget(
+      packageJSONUrl, target, '', packageSubpath, base, false, false, conditions
+    );
+    if (resolved === null || resolved === undefined)
+      throwExportsNotFound(packageSubpath, packageJSONUrl, base);
+    return { resolved, exact: true };
+  }
+
+  let bestMatch = '';
+  const keys = ObjectGetOwnPropertyNames(exports);
+  for (let i = 0; i < keys.length; i++) {
+    const key = keys[i];
+    if (key[key.length - 1] === '*' &&
+        StringPrototypeStartsWith(packageSubpath,
+                                  StringPrototypeSlice(key, 0, -1)) &&
+        packageSubpath.length >= key.length &&
+        key.length > bestMatch.length) {
+      bestMatch = key;
+    } else if (key[key.length - 1] === '/' &&
+      StringPrototypeStartsWith(packageSubpath, key) &&
+      key.length > bestMatch.length) {
+      bestMatch = key;
+    }
+  }
+
+  if (bestMatch) {
+    const target = exports[bestMatch];
+    const pattern = bestMatch[bestMatch.length - 1] === '*';
+    const subpath = StringPrototypeSubstr(packageSubpath, bestMatch.length -
+      (pattern ? 1 : 0));
+    const resolved = resolvePackageTarget(packageJSONUrl, target, subpath,
+                                          bestMatch, base, pattern, false,
+                                          conditions);
+    if (resolved === null || resolved === undefined)
+      throwExportsNotFound(packageSubpath, packageJSONUrl, base);
+    if (!pattern)
+      emitFolderMapDeprecation(bestMatch, packageJSONUrl, true, base);
+    return { resolved, exact: pattern };
+  }
+
+  throwExportsNotFound(packageSubpath, packageJSONUrl, base);
+}
+
+function packageImportsResolve(name, base, conditions) {
+  if (name === '#' || StringPrototypeStartsWith(name, '#/')) {
+    const reason = 'is not a valid internal imports specifier name';
+    throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, fileURLToPath(base));
+  }
+  let packageJSONUrl;
+  const packageConfig = getPackageScopeConfig(base);
+  if (packageConfig.exists) {
+    packageJSONUrl = pathToFileURL(packageConfig.pjsonPath);
+    const imports = packageConfig.imports;
+    if (imports) {
+      if (ObjectPrototypeHasOwnProperty(imports, name)) {
+        const resolved = resolvePackageTarget(
+          packageJSONUrl, imports[name], '', name, base, false, true, conditions
+        );
+        if (resolved !== null)
+          return { resolved, exact: true };
+      } else {
+        let bestMatch = '';
+        const keys = ObjectGetOwnPropertyNames(imports);
+        for (let i = 0; i < keys.length; i++) {
+          const key = keys[i];
+          if (key[key.length - 1] === '*' &&
+              StringPrototypeStartsWith(name,
+                                        StringPrototypeSlice(key, 0, -1)) &&
+              name.length >= key.length &&
+              key.length > bestMatch.length) {
+            bestMatch = key;
+          } else if (key[key.length - 1] === '/' &&
+            StringPrototypeStartsWith(name, key) &&
+            key.length > bestMatch.length) {
+            bestMatch = key;
+          }
+        }
+
+        if (bestMatch) {
+          const target = imports[bestMatch];
+          const pattern = bestMatch[bestMatch.length - 1] === '*';
+          const subpath = StringPrototypeSubstr(name, bestMatch.length -
+            (pattern ? 1 : 0));
+          const resolved = resolvePackageTarget(
+            packageJSONUrl, target, subpath, bestMatch, base, pattern, true,
+            conditions);
+          if (resolved !== null) {
+            if (!pattern)
+              emitFolderMapDeprecation(bestMatch, packageJSONUrl, false, base);
+            return { resolved, exact: pattern };
+          }
+        }
+      }
+    }
+  }
+  throwImportNotDefined(name, packageJSONUrl, base);
+}
+
+function getPackageType(url) {
+  const packageConfig = getPackageScopeConfig(url);
+  return packageConfig.type;
+}
+
+function parsePackageName(specifier, base) {
+  let separatorIndex = StringPrototypeIndexOf(specifier, '/');
+  let validPackageName = true;
+  let isScoped = false;
+  if (specifier[0] === '@') {
+    isScoped = true;
+    if (separatorIndex === -1 || specifier.length === 0) {
+      validPackageName = false;
+    } else {
+      separatorIndex = StringPrototypeIndexOf(
+        specifier, '/', separatorIndex + 1);
+    }
+  }
+
+  const packageName = separatorIndex === -1 ?
+    specifier : StringPrototypeSlice(specifier, 0, separatorIndex);
+
+  // Package name cannot have leading . and cannot have percent-encoding or
+  // separators.
+  for (let i = 0; i < packageName.length; i++) {
+    if (packageName[i] === '%' || packageName[i] === '\\') {
+      validPackageName = false;
+      break;
+    }
+  }
+
+  if (!validPackageName) {
+    throw new ERR_INVALID_MODULE_SPECIFIER(
+      specifier, 'is not a valid package name', fileURLToPath(base));
+  }
+
+  const packageSubpath = '.' + (separatorIndex === -1 ? '' :
+    StringPrototypeSlice(specifier, separatorIndex));
+
+  return { packageName, packageSubpath, isScoped };
+}
+
+/**
+ * @param {string} specifier
+ * @param {URL} base
+ * @param {Set} conditions
+ * @returns {URL}
+ */
+function packageResolve(specifier, base, conditions) {
+  const { packageName, packageSubpath, isScoped } =
+    parsePackageName(specifier, base);
+
+  // ResolveSelf
+  const packageConfig = getPackageScopeConfig(base);
+  if (packageConfig.exists) {
+    const packageJSONUrl = pathToFileURL(packageConfig.pjsonPath);
+    if (packageConfig.name === packageName &&
+        packageConfig.exports !== undefined && packageConfig.exports !== null) {
+      return packageExportsResolve(
+        packageJSONUrl, packageSubpath, packageConfig, base, conditions
+      ).resolved;
+    }
+  }
+
+  let packageJSONUrl =
+    new URL('./node_modules/' + packageName + '/package.json', base);
+  let packageJSONPath = fileURLToPath(packageJSONUrl);
+  let lastPath;
+  do {
+    const stat = tryStatSync(StringPrototypeSlice(packageJSONPath, 0,
+                                                  packageJSONPath.length - 13));
+    if (!stat.isDirectory()) {
+      lastPath = packageJSONPath;
+      packageJSONUrl = new URL((isScoped ?
+        '../../../../node_modules/' : '../../../node_modules/') +
+        packageName + '/package.json', packageJSONUrl);
+      packageJSONPath = fileURLToPath(packageJSONUrl);
+      continue;
+    }
+
+    // Package match.
+    const packageConfig = getPackageConfig(packageJSONPath, specifier, base);
+    if (packageConfig.exports !== undefined && packageConfig.exports !== null)
+      return packageExportsResolve(
+        packageJSONUrl, packageSubpath, packageConfig, base, conditions
+      ).resolved;
+    if (packageSubpath === '.')
+      return legacyMainResolve(packageJSONUrl, packageConfig, base);
+    return new URL(packageSubpath, packageJSONUrl);
+    // Cross-platform root check.
+  } while (packageJSONPath.length !== lastPath.length);
+
+  // eslint can't handle the above code.
+  // eslint-disable-next-line no-unreachable
+  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base));
+}
+
+function isBareSpecifier(specifier) {
+  return specifier[0] && specifier[0] !== '/' && specifier[0] !== '.';
+}
+
+function isRelativeSpecifier(specifier) {
+  if (specifier[0] === '.') {
+    if (specifier.length === 1 || specifier[1] === '/') return true;
+    if (specifier[1] === '.') {
+      if (specifier.length === 2 || specifier[2] === '/') return true;
+    }
+  }
+  return false;
+}
+
+function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
+  if (specifier === '') return false;
+  if (specifier[0] === '/') return true;
+  return isRelativeSpecifier(specifier);
+}
+
+/**
+ * @param {string} specifier
+ * @param {URL} base
+ * @param {Set} conditions
+ * @returns {URL}
+ */
+function moduleResolve(specifier, base, conditions) {
+  // Order swapped from spec for minor perf gain.
+  // Ok since relative URLs cannot parse as URLs.
+  let resolved;
+  if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
+    resolved = new URL(specifier, base);
+  } else if (specifier[0] === '#') {
+    ({ resolved } = packageImportsResolve(specifier, base, conditions));
+  } else {
+    try {
+      resolved = new URL(specifier);
+    } catch {
+      resolved = packageResolve(specifier, base, conditions);
+    }
+  }
+  return finalizeResolution(resolved, base);
+}
+
+/**
+ * Try to resolve an import as a CommonJS module
+ * @param {string} specifier
+ * @param {string} parentURL
+ * @returns {boolean|string}
+ */
+function resolveAsCommonJS(specifier, parentURL) {
+  try {
+    const parent = fileURLToPath(parentURL);
+    const tmpModule = new CJSModule(parent, null);
+    tmpModule.paths = CJSModule._nodeModulePaths(parent);
+
+    let found = CJSModule._resolveFilename(specifier, tmpModule, false);
+
+    // If it is a relative specifier return the relative path
+    // to the parent
+    if (isRelativeSpecifier(specifier)) {
+      found = relative(parent, found);
+      // Add '.separator if the path does not start with '..separator'
+      // This should be a safe assumption because when loading
+      // esm modules there should be always a file specified so
+      // there should not be a specifier like '..' or '.'
+      if (!StringPrototypeStartsWith(found, `..${sep}`)) {
+        found = `.${sep}${found}`;
+      }
+    } else if (isBareSpecifier(specifier)) {
+      // If it is a bare specifier return the relative path within the
+      // module
+      const pkg = StringPrototypeSplit(specifier, '/')[0];
+      const index = StringPrototypeIndexOf(found, pkg);
+      if (index !== -1) {
+        found = StringPrototypeSlice(found, index);
+      }
+    }
+    // Normalize the path separator to give a valid suggestion
+    // on Windows
+    if (process.platform === 'win32') {
+      found = StringPrototypeReplace(found, new RegExp(`\\${sep}`, 'g'), '/');
+    }
+    return found;
+  } catch {
+    return false;
+  }
+}
+
+function defaultResolve(specifier, context = {}, defaultResolveUnused) {
+  let { parentURL, conditions } = context;
+  if (parentURL && policy != null && policy.manifest) {
+    const redirects = policy.manifest.getDependencyMapper(parentURL);
+    if (redirects) {
+      const { resolve, reaction } = redirects;
+      const destination = resolve(specifier, new SafeSet(conditions));
+      let missing = true;
+      if (destination === true) {
+        missing = false;
+      } else if (destination) {
+        const href = destination.href;
+        return { url: href };
+      }
+      if (missing) {
+        reaction(new ERR_MANIFEST_DEPENDENCY_MISSING(
+          parentURL,
+          specifier,
+          ArrayPrototypeJoin([...conditions], ', '))
+        );
+      }
+    }
+  }
+  let parsed;
+  try {
+    parsed = new URL(specifier);
+    if (parsed.protocol === 'data:') {
+      return {
+        url: specifier
+      };
+    }
+  } catch {}
+  if (parsed && parsed.protocol === builtinModuleProtocol)
+    return { url: specifier };
+  if (parsed && parsed.protocol !== 'file:' && parsed.protocol !== 'data:')
+    throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(parsed);
+  if (NativeModule.canBeRequiredByUsers(specifier)) {
+    return {
+      url: builtinModuleProtocol + specifier
+    };
+  }
+  if (parentURL && StringPrototypeStartsWith(parentURL, 'data:')) {
+    // This is gonna blow up, we want the error
+    new URL(specifier, parentURL);
+  }
+
+  const isMain = parentURL === undefined;
+  if (isMain) {
+    parentURL = pathToFileURL(`${process.cwd()}/`).href;
+
+    // This is the initial entry point to the program, and --input-type has
+    // been passed as an option; but --input-type can only be used with
+    // --eval, --print or STDIN string input. It is not allowed with file
+    // input, to avoid user confusion over how expansive the effect of the
+    // flag should be (i.e. entry point only, package scope surrounding the
+    // entry point, etc.).
+    if (typeFlag)
+      throw new ERR_INPUT_TYPE_NOT_ALLOWED();
+  }
+
+  conditions = getConditionsSet(conditions);
+  let url;
+  try {
+    url = moduleResolve(specifier, parentURL, conditions);
+  } catch (error) {
+    // Try to give the user a hint of what would have been the
+    // resolved CommonJS module
+    if (error.code === 'ERR_MODULE_NOT_FOUND' ||
+        error.code === 'ERR_UNSUPPORTED_DIR_IMPORT') {
+      if (StringPrototypeStartsWith(specifier, 'file://')) {
+        specifier = fileURLToPath(specifier);
+      }
+      const found = resolveAsCommonJS(specifier, parentURL);
+      if (found) {
+        // Modify the stack and message string to include the hint
+        const lines = StringPrototypeSplit(error.stack, '\n');
+        const hint = `Did you mean to import ${found}?`;
+        error.stack =
+          ArrayPrototypeShift(lines) + '\n' +
+          hint + '\n' +
+          ArrayPrototypeJoin(lines, '\n');
+        error.message += `\n${hint}`;
+      }
+    }
+    throw error;
+  }
+
+  if (isMain ? !preserveSymlinksMain : !preserveSymlinks) {
+    const urlPath = fileURLToPath(url);
+    const real = realpathSync(urlPath, {
+      // [internalFS.realpathCacheKey]: realpathCache
+    });
+    const old = url;
+    url = pathToFileURL(
+      real + (StringPrototypeEndsWith(urlPath, sep) ? '/' : ''));
+    url.search = old.search;
+    url.hash = old.hash;
+  }
+
+  return { url: `${url}` };
+}
+
+return {
+  DEFAULT_CONDITIONS,
+  defaultResolve,
+  encodedSepRegEx,
+  getPackageType,
+  packageExportsResolve,
+  packageImportsResolve
+};
+}
+module.exports = {
+  createResolve
+};
+
+
+/***/ }),
+
+/***/ 53348:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+// copied from https://github.com/nodejs/node/blob/v15.3.0/lib/internal/modules/package_json_reader.js
+
+
+const { SafeMap } = __nccwpck_require__(26326);
+const { internalModuleReadJSON } = __nccwpck_require__(3601);
+const { pathToFileURL } = __nccwpck_require__(57310);
+const { toNamespacedPath } = __nccwpck_require__(71017);
+// const { getOptionValue } = require('./node-options');
+
+const cache = new SafeMap();
+
+let manifest;
+
+/**
+ * @param {string} jsonPath
+ * @return {{string: string, containsKeys: boolean}}
+ */
+function read(jsonPath) {
+  if (cache.has(jsonPath)) {
+    return cache.get(jsonPath);
+  }
+
+  const [string, containsKeys] = internalModuleReadJSON(
+    toNamespacedPath(jsonPath)
+  );
+  const result = { string, containsKeys };
+  if (string !== undefined) {
+    if (manifest === undefined) {
+      // manifest = getOptionValue('--experimental-policy') ?
+      //   require('internal/process/policy').manifest :
+      //   null;
+      // disabled for now.  I am not sure if/how we should support this
+      manifest = null;
+    }
+    if (manifest !== null) {
+      const jsonURL = pathToFileURL(jsonPath);
+      manifest.assertIntegrity(jsonURL, string);
+    }
+  }
+  cache.set(jsonPath, result);
+  return result;
+}
+
+module.exports = { read };
+
+
+/***/ }),
+
+/***/ 75818:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+// copied from https://github.com/nodejs/node/blob/88799930794045795e8abac874730f9eba7e2300/lib/internal/repl/await.js
+
+
+const {
+  ArrayFrom,
+  ArrayPrototypeForEach,
+  ArrayPrototypeIncludes,
+  ArrayPrototypeJoin,
+  ArrayPrototypePop,
+  ArrayPrototypePush,
+  FunctionPrototype,
+  ObjectKeys,
+  RegExpPrototypeSymbolReplace,
+  StringPrototypeEndsWith,
+  StringPrototypeIncludes,
+  StringPrototypeIndexOf,
+  StringPrototypeRepeat,
+  StringPrototypeSplit,
+  StringPrototypeStartsWith,
+  SyntaxError,
+} = __nccwpck_require__(26326);
+
+const parser = (__nccwpck_require__(80390).Parser);
+const walk = __nccwpck_require__(88390);
+const { Recoverable } = __nccwpck_require__(38102);
+
+function isTopLevelDeclaration(state) {
+  return state.ancestors[state.ancestors.length - 2] === state.body;
+}
+
+const noop = FunctionPrototype;
+const visitorsWithoutAncestors = {
+  ClassDeclaration(node, state, c) {
+    if (isTopLevelDeclaration(state)) {
+      state.prepend(node, `${node.id.name}=`);
+      ArrayPrototypePush(
+        state.hoistedDeclarationStatements,
+        `let ${node.id.name}; `
+      );
+    }
+
+    walk.base.ClassDeclaration(node, state, c);
+  },
+  ForOfStatement(node, state, c) {
+    if (node.await === true) {
+      state.containsAwait = true;
+    }
+    walk.base.ForOfStatement(node, state, c);
+  },
+  FunctionDeclaration(node, state, c) {
+    state.prepend(node, `${node.id.name}=`);
+    ArrayPrototypePush(
+      state.hoistedDeclarationStatements,
+      `var ${node.id.name}; `
+    );
+  },
+  FunctionExpression: noop,
+  ArrowFunctionExpression: noop,
+  MethodDefinition: noop,
+  AwaitExpression(node, state, c) {
+    state.containsAwait = true;
+    walk.base.AwaitExpression(node, state, c);
+  },
+  ReturnStatement(node, state, c) {
+    state.containsReturn = true;
+    walk.base.ReturnStatement(node, state, c);
+  },
+  VariableDeclaration(node, state, c) {
+    const variableKind = node.kind;
+    const isIterableForDeclaration = ArrayPrototypeIncludes(
+      ['ForOfStatement', 'ForInStatement'],
+      state.ancestors[state.ancestors.length - 2].type
+    );
+
+    if (variableKind === 'var' || isTopLevelDeclaration(state)) {
+      state.replace(
+        node.start,
+        node.start + variableKind.length + (isIterableForDeclaration ? 1 : 0),
+        variableKind === 'var' && isIterableForDeclaration ?
+          '' :
+          'void' + (node.declarations.length === 1 ? '' : ' (')
+      );
+
+      if (!isIterableForDeclaration) {
+        ArrayPrototypeForEach(node.declarations, (decl) => {
+          state.prepend(decl, '(');
+          state.append(decl, decl.init ? ')' : '=undefined)');
+        });
+
+        if (node.declarations.length !== 1) {
+          state.append(node.declarations[node.declarations.length - 1], ')');
+        }
+      }
+
+      const variableIdentifiersToHoist = [
+        ['var', []],
+        ['let', []],
+      ];
+      function registerVariableDeclarationIdentifiers(node) {
+        switch (node.type) {
+          case 'Identifier':
+            ArrayPrototypePush(
+              variableIdentifiersToHoist[variableKind === 'var' ? 0 : 1][1],
+              node.name
+            );
+            break;
+          case 'ObjectPattern':
+            ArrayPrototypeForEach(node.properties, (property) => {
+              registerVariableDeclarationIdentifiers(property.value);
+            });
+            break;
+          case 'ArrayPattern':
+            ArrayPrototypeForEach(node.elements, (element) => {
+              registerVariableDeclarationIdentifiers(element);
+            });
+            break;
+        }
+      }
+
+      ArrayPrototypeForEach(node.declarations, (decl) => {
+        registerVariableDeclarationIdentifiers(decl.id);
+      });
+
+      ArrayPrototypeForEach(
+        variableIdentifiersToHoist,
+        ({ 0: kind, 1: identifiers }) => {
+          if (identifiers.length > 0) {
+            ArrayPrototypePush(
+              state.hoistedDeclarationStatements,
+              `${kind} ${ArrayPrototypeJoin(identifiers, ', ')}; `
+            );
+          }
+        }
+      );
+    }
+
+    walk.base.VariableDeclaration(node, state, c);
+  }
+};
+
+const visitors = {};
+for (const nodeType of ObjectKeys(walk.base)) {
+  const callback = visitorsWithoutAncestors[nodeType] || walk.base[nodeType];
+  visitors[nodeType] = (node, state, c) => {
+    const isNew = node !== state.ancestors[state.ancestors.length - 1];
+    if (isNew) {
+      ArrayPrototypePush(state.ancestors, node);
+    }
+    callback(node, state, c);
+    if (isNew) {
+      ArrayPrototypePop(state.ancestors);
+    }
+  };
+}
+
+function processTopLevelAwait(src) {
+  const wrapPrefix = '(async () => { ';
+  const wrapped = `${wrapPrefix}${src} })()`;
+  const wrappedArray = ArrayFrom(wrapped);
+  let root;
+  try {
+    root = parser.parse(wrapped, { ecmaVersion: 'latest' });
+  } catch (e) {
+    if (StringPrototypeStartsWith(e.message, 'Unterminated '))
+      throw new Recoverable(e);
+    // If the parse error is before the first "await", then use the execution
+    // error. Otherwise we must emit this parse error, making it look like a
+    // proper syntax error.
+    const awaitPos = StringPrototypeIndexOf(src, 'await');
+    const errPos = e.pos - wrapPrefix.length;
+    if (awaitPos > errPos)
+      return null;
+    // Convert keyword parse errors on await into their original errors when
+    // possible.
+    if (errPos === awaitPos + 6 &&
+        StringPrototypeIncludes(e.message, 'Expecting Unicode escape sequence'))
+      return null;
+    if (errPos === awaitPos + 7 &&
+        StringPrototypeIncludes(e.message, 'Unexpected token'))
+      return null;
+    const line = e.loc.line;
+    const column = line === 1 ? e.loc.column - wrapPrefix.length : e.loc.column;
+    let message = '\n' + StringPrototypeSplit(src, '\n')[line - 1] + '\n' +
+        StringPrototypeRepeat(' ', column) +
+        '^\n\n' + RegExpPrototypeSymbolReplace(/ \([^)]+\)/, e.message, '');
+    // V8 unexpected token errors include the token string.
+    if (StringPrototypeEndsWith(message, 'Unexpected token'))
+      message += " '" +
+        // Wrapper end may cause acorn to report error position after the source
+        ((src.length - 1) >= (e.pos - wrapPrefix.length)
+          ? src[e.pos - wrapPrefix.length]
+          : src[src.length - 1]) +
+        "'";
+    // eslint-disable-next-line no-restricted-syntax
+    throw new SyntaxError(message);
+  }
+  const body = root.body[0].expression.callee.body;
+  const state = {
+    body,
+    ancestors: [],
+    hoistedDeclarationStatements: [],
+    replace(from, to, str) {
+      for (let i = from; i < to; i++) {
+        wrappedArray[i] = '';
+      }
+      if (from === to) str += wrappedArray[from];
+      wrappedArray[from] = str;
+    },
+    prepend(node, str) {
+      wrappedArray[node.start] = str + wrappedArray[node.start];
+    },
+    append(node, str) {
+      wrappedArray[node.end - 1] += str;
+    },
+    containsAwait: false,
+    containsReturn: false
+  };
+
+  walk.recursive(body, state, visitors);
+
+  // Do not transform if
+  // 1. False alarm: there isn't actually an await expression.
+  // 2. There is a top-level return, which is not allowed.
+  if (!state.containsAwait || state.containsReturn) {
+    return null;
+  }
+
+  const last = body.body[body.body.length - 1];
+  if (last.type === 'ExpressionStatement') {
+    // For an expression statement of the form
+    // ( expr ) ;
+    // ^^^^^^^^^^   // last
+    //   ^^^^       // last.expression
+    //
+    // We do not want the left parenthesis before the `return` keyword;
+    // therefore we prepend the `return (` to `last`.
+    //
+    // On the other hand, we do not want the right parenthesis after the
+    // semicolon. Since there can only be more right parentheses between
+    // last.expression.end and the semicolon, appending one more to
+    // last.expression should be fine.
+    state.prepend(last, 'return (');
+    state.append(last.expression, ')');
+  }
+
+  return (
+    ArrayPrototypeJoin(state.hoistedDeclarationStatements, '') +
+    ArrayPrototypeJoin(wrappedArray, '')
+  );
+}
+
+module.exports = {
+  processTopLevelAwait
+};
+
+
+/***/ }),
+
+/***/ 3601:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+const fs = __nccwpck_require__(57147);
+const {versionGteLt} = __nccwpck_require__(64745);
+
+// In node's core, this is implemented in C
+// https://github.com/nodejs/node/blob/v15.3.0/src/node_file.cc#L891-L985
+/**
+ * @param {string} path
+ * @returns {[] | [string, boolean]}
+ */
+function internalModuleReadJSON(path) {
+  let string
+  try {
+    string = fs.readFileSync(path, 'utf8')
+  } catch (e) {
+    if (e.code === 'ENOENT') return []
+    throw e
+  }
+  // Node's implementation checks for the presence of relevant keys: main, name, type, exports, imports
+  // Node does this for performance to skip unnecessary parsing.
+  // This would slow us down and, based on our usage, we can skip it.
+  const containsKeys = true
+  return [string, containsKeys]
+}
+
+// In node's core, this is implemented in C
+// https://github.com/nodejs/node/blob/63e7dc1e5c71b70c80ed9eda230991edb00811e2/src/node_file.cc#L987-L1005
+/**
+ * @param {string} path
+ * @returns {number} 0 = file, 1 = dir, negative = error
+ */
+function internalModuleStat(path) {
+  const stat = fs.statSync(path, { throwIfNoEntry: false });
+  if(!stat) return -1;
+  if(stat.isFile()) return 0;
+  if(stat.isDirectory()) return 1;
+}
+
+/**
+ * @param {string} path
+ * @returns {number} 0 = file, 1 = dir, negative = error
+ */
+function internalModuleStatInefficient(path) {
+  try {
+    const stat = fs.statSync(path);
+    if(stat.isFile()) return 0;
+    if(stat.isDirectory()) return 1;
+  } catch(e) {
+    return -e.errno || -1;
+  }
+}
+
+const statSupportsThrowIfNoEntry = versionGteLt(process.versions.node, '15.3.0') ||
+  versionGteLt(process.versions.node, '14.17.0', '15.0.0');
+
+module.exports = {
+  internalModuleReadJSON,
+  internalModuleStat: statSupportsThrowIfNoEntry ? internalModuleStat : internalModuleStatInefficient
+};
+
+
+/***/ }),
+
+/***/ 81597:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+
+// Node imports this from 'internal/bootstrap/loaders'
+const Module = __nccwpck_require__(98188);
+const NativeModule = {
+  canBeRequiredByUsers(specifier) {
+    return Module.builtinModules.includes(specifier)
+  }
+};
+exports.NativeModule = NativeModule;
+
+
+/***/ }),
+
+/***/ 40690:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+// Replacement for node's internal 'internal/options' module
+
+exports.getOptionValue = getOptionValue;
+function getOptionValue(opt) {
+  parseOptions();
+  return options[opt];
+}
+
+let options;
+function parseOptions() {
+  if (!options) {
+    options = {
+      '--preserve-symlinks': false,
+      '--preserve-symlinks-main': false,
+      '--input-type': undefined,
+      '--experimental-specifier-resolution': 'explicit',
+      '--experimental-policy': undefined,
+      '--conditions': [],
+      '--pending-deprecation': false,
+      ...parseArgv(getNodeOptionsEnvArgv()),
+      ...parseArgv(process.execArgv),
+      ...getOptionValuesFromOtherEnvVars()
+    }
+  }
+}
+
+function parseArgv(argv) {
+  return __nccwpck_require__(59482)({
+    '--preserve-symlinks': Boolean,
+    '--preserve-symlinks-main': Boolean,
+    '--input-type': String,
+    '--experimental-specifier-resolution': String,
+    // Legacy alias for node versions prior to 12.16
+    '--es-module-specifier-resolution': '--experimental-specifier-resolution',
+    '--experimental-policy': String,
+    '--conditions': [String],
+    '--pending-deprecation': Boolean,
+    '--experimental-json-modules': Boolean,
+    '--experimental-wasm-modules': Boolean,
+  }, {
+    argv,
+    permissive: true
+  });
+}
+
+function getNodeOptionsEnvArgv() {
+  const errors = [];
+  const envArgv = ParseNodeOptionsEnvVar(process.env.NODE_OPTIONS || '', errors);
+  if (errors.length !== 0) {
+    // TODO: handle errors somehow
+  }
+  return envArgv;
+}
+
+// Direct JS port of C implementation: https://github.com/nodejs/node/blob/67ba825037b4082d5d16f922fb9ce54516b4a869/src/node_options.cc#L1024-L1063
+function ParseNodeOptionsEnvVar(node_options, errors) {
+  const env_argv = [];
+
+  let is_in_string = false;
+  let will_start_new_arg = true;
+  for (let index = 0; index < node_options.length; ++index) {
+      let c = node_options[index];
+
+      // Backslashes escape the following character
+      if (c === '\\' && is_in_string) {
+          if (index + 1 === node_options.length) {
+              errors.push("invalid value for NODE_OPTIONS " +
+                  "(invalid escape)\n");
+              return env_argv;
+          } else {
+              c = node_options[++index];
+          }
+      } else if (c === ' ' && !is_in_string) {
+          will_start_new_arg = true;
+          continue;
+      } else if (c === '"') {
+          is_in_string = !is_in_string;
+          continue;
+      }
+
+      if (will_start_new_arg) {
+          env_argv.push(c);
+          will_start_new_arg = false;
+      } else {
+          env_argv[env_argv.length - 1] += c;
+      }
+  }
+
+  if (is_in_string) {
+      errors.push("invalid value for NODE_OPTIONS " +
+          "(unterminated string)\n");
+  }
+  return env_argv;
+}
+
+// Get option values that can be specified via env vars besides NODE_OPTIONS
+function getOptionValuesFromOtherEnvVars() {
+  const options = {};
+  if(process.env.NODE_PENDING_DEPRECATION === '1') {
+    options['--pending-deprecation'] = true;
+  }
+  return options;
+}
+
+
+/***/ }),
+
+/***/ 26326:
+/***/ ((module) => {
+
+module.exports = {
+  ArrayFrom: Array.from,
+  ArrayIsArray: Array.isArray,
+  ArrayPrototypeShift: (obj) => Array.prototype.shift.call(obj),
+  ArrayPrototypeForEach: (arr, ...rest) => Array.prototype.forEach.apply(arr, rest),
+  ArrayPrototypeIncludes: (arr, ...rest) => Array.prototype.includes.apply(arr, rest),
+  ArrayPrototypeJoin: (arr, ...rest) => Array.prototype.join.apply(arr, rest),
+  ArrayPrototypePop: (arr, ...rest) => Array.prototype.pop.apply(arr, rest),
+  ArrayPrototypePush: (arr, ...rest) => Array.prototype.push.apply(arr, rest),
+  FunctionPrototype: Function.prototype,
+  JSONParse: JSON.parse,
+  JSONStringify: JSON.stringify,
+  ObjectFreeze: Object.freeze,
+  ObjectKeys: Object.keys,
+  ObjectGetOwnPropertyNames: Object.getOwnPropertyNames,
+  ObjectDefineProperty: Object.defineProperty,
+  ObjectPrototypeHasOwnProperty: (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop),
+  RegExpPrototypeExec: (obj, string) => RegExp.prototype.exec.call(obj, string),
+  RegExpPrototypeTest: (obj, string) => RegExp.prototype.test.call(obj, string),
+  RegExpPrototypeSymbolReplace: (obj, ...rest) => RegExp.prototype[Symbol.replace].apply(obj, rest),
+  SafeMap: Map,
+  SafeSet: Set,
+  SafeWeakMap: WeakMap,
+  StringPrototypeEndsWith: (str, ...rest) => String.prototype.endsWith.apply(str, rest),
+  StringPrototypeIncludes: (str, ...rest) => String.prototype.includes.apply(str, rest),
+  StringPrototypeLastIndexOf: (str, ...rest) => String.prototype.lastIndexOf.apply(str, rest),
+  StringPrototypeIndexOf: (str, ...rest) => String.prototype.indexOf.apply(str, rest),
+  StringPrototypeRepeat: (str, ...rest) => String.prototype.repeat.apply(str, rest),
+  StringPrototypeReplace: (str, ...rest) => String.prototype.replace.apply(str, rest),
+  StringPrototypeSlice: (str, ...rest) => String.prototype.slice.apply(str, rest),
+  StringPrototypeSplit: (str, ...rest) => String.prototype.split.apply(str, rest),
+  StringPrototypeStartsWith: (str, ...rest) => String.prototype.startsWith.apply(str, rest),
+  StringPrototypeSubstr: (str, ...rest) => String.prototype.substr.apply(str, rest),
+  StringPrototypeCharCodeAt: (str, ...rest) => String.prototype.charCodeAt.apply(str, rest),
+  StringPrototypeMatch: (str, ...rest) => String.prototype.match.apply(str, rest),
+  SyntaxError: SyntaxError
+};
+
+
+/***/ }),
+
+/***/ 64414:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.installCommonjsResolveHooksIfNecessary = void 0;
+/**
+ * @internal
+ */
+function installCommonjsResolveHooksIfNecessary(tsNodeService) {
+    const Module = __nccwpck_require__(98188);
+    const originalResolveFilename = Module._resolveFilename;
+    const originalFindPath = Module._findPath;
+    const shouldInstallHook = tsNodeService.options.experimentalResolver;
+    if (shouldInstallHook) {
+        const { Module_findPath, Module_resolveFilename } = tsNodeService.getNodeCjsLoader();
+        Module._resolveFilename = _resolveFilename;
+        Module._findPath = _findPath;
+        function _resolveFilename(request, parent, isMain, options, ...rest) {
+            if (!tsNodeService.enabled())
+                return originalResolveFilename.call(this, request, parent, isMain, options, ...rest);
+            return Module_resolveFilename.call(this, request, parent, isMain, options, ...rest);
+        }
+        function _findPath() {
+            if (!tsNodeService.enabled())
+                return originalFindPath.apply(this, arguments);
+            return Module_findPath.apply(this, arguments);
+        }
+    }
+}
+exports.installCommonjsResolveHooksIfNecessary = installCommonjsResolveHooksIfNecessary;
+//# sourceMappingURL=cjs-resolve-hooks.js.map
+
+/***/ }),
+
+/***/ 29906:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getTsConfigDefaults = exports.ComputeAsCommonRootOfFiles = exports.loadCompiler = exports.resolveAndLoadCompiler = exports.readConfig = exports.findAndReadConfig = void 0;
+const path_1 = __nccwpck_require__(71017);
+const index_1 = __nccwpck_require__(72719);
+const ts_internals_1 = __nccwpck_require__(14851);
+const tsconfigs_1 = __nccwpck_require__(91533);
+const util_1 = __nccwpck_require__(64745);
+/**
+ * TypeScript compiler option values required by `ts-node` which cannot be overridden.
+ */
+const TS_NODE_COMPILER_OPTIONS = {
+    sourceMap: true,
+    inlineSourceMap: false,
+    inlineSources: true,
+    declaration: false,
+    noEmit: false,
+    outDir: '.ts-node',
+};
+/*
+ * Do post-processing on config options to support `ts-node`.
+ */
+function fixConfig(ts, config) {
+    // Delete options that *should not* be passed through.
+    delete config.options.out;
+    delete config.options.outFile;
+    delete config.options.composite;
+    delete config.options.declarationDir;
+    delete config.options.declarationMap;
+    delete config.options.emitDeclarationOnly;
+    // Target ES5 output by default (instead of ES3).
+    if (config.options.target === undefined) {
+        config.options.target = ts.ScriptTarget.ES5;
+    }
+    // Target CommonJS modules by default (instead of magically switching to ES6 when the target is ES6).
+    if (config.options.module === undefined) {
+        config.options.module = ts.ModuleKind.CommonJS;
+    }
+    return config;
+}
+/** @internal */
+function findAndReadConfig(rawOptions) {
+    var _a, _b, _c, _d, _e;
+    const cwd = (0, path_1.resolve)((_c = (_b = (_a = rawOptions.cwd) !== null && _a !== void 0 ? _a : rawOptions.dir) !== null && _b !== void 0 ? _b : index_1.DEFAULTS.cwd) !== null && _c !== void 0 ? _c : process.cwd());
+    const compilerName = (_d = rawOptions.compiler) !== null && _d !== void 0 ? _d : index_1.DEFAULTS.compiler;
+    // Compute minimum options to read the config file.
+    let projectLocalResolveDir = (0, util_1.getBasePathForProjectLocalDependencyResolution)(undefined, rawOptions.projectSearchDir, rawOptions.project, cwd);
+    let { compiler, ts } = resolveAndLoadCompiler(compilerName, projectLocalResolveDir);
+    // Read config file and merge new options between env and CLI options.
+    const { configFilePath, config, tsNodeOptionsFromTsconfig, optionBasePaths } = readConfig(cwd, ts, rawOptions);
+    const options = (0, util_1.assign)({}, index_1.DEFAULTS, tsNodeOptionsFromTsconfig || {}, { optionBasePaths }, rawOptions);
+    options.require = [
+        ...(tsNodeOptionsFromTsconfig.require || []),
+        ...(rawOptions.require || []),
+    ];
+    // Re-resolve the compiler in case it has changed.
+    // Compiler is loaded relative to tsconfig.json, so tsconfig discovery may cause us to load a
+    // different compiler than we did above, even if the name has not changed.
+    if (configFilePath) {
+        projectLocalResolveDir = (0, util_1.getBasePathForProjectLocalDependencyResolution)(configFilePath, rawOptions.projectSearchDir, rawOptions.project, cwd);
+        ({ compiler } = resolveCompiler(options.compiler, (_e = optionBasePaths.compiler) !== null && _e !== void 0 ? _e : projectLocalResolveDir));
+    }
+    return {
+        options,
+        config,
+        projectLocalResolveDir,
+        optionBasePaths,
+        configFilePath,
+        cwd,
+        compiler,
+    };
+}
+exports.findAndReadConfig = findAndReadConfig;
+/**
+ * Load TypeScript configuration. Returns the parsed TypeScript config and
+ * any `ts-node` options specified in the config file.
+ *
+ * Even when a tsconfig.json is not loaded, this function still handles merging
+ * compilerOptions from various sources: API, environment variables, etc.
+ *
+ * @internal
+ */
+function readConfig(cwd, ts, rawApiOptions) {
+    var _a, _b, _c;
+    // Ordered [a, b, c] where config a extends b extends c
+    const configChain = [];
+    let config = { compilerOptions: {} };
+    let basePath = cwd;
+    let configFilePath = undefined;
+    const projectSearchDir = (0, path_1.resolve)(cwd, (_a = rawApiOptions.projectSearchDir) !== null && _a !== void 0 ? _a : cwd);
+    const { fileExists = ts.sys.fileExists, readFile = ts.sys.readFile, skipProject = index_1.DEFAULTS.skipProject, project = index_1.DEFAULTS.project, tsTrace = index_1.DEFAULTS.tsTrace, } = rawApiOptions;
+    // Read project configuration when available.
+    if (!skipProject) {
+        if (project) {
+            const resolved = (0, path_1.resolve)(cwd, project);
+            const nested = (0, path_1.join)(resolved, 'tsconfig.json');
+            configFilePath = fileExists(nested) ? nested : resolved;
+        }
+        else {
+            configFilePath = ts.findConfigFile(projectSearchDir, fileExists);
+        }
+        if (configFilePath) {
+            let pathToNextConfigInChain = configFilePath;
+            const tsInternals = (0, ts_internals_1.createTsInternals)(ts);
+            const errors = [];
+            // Follow chain of "extends"
+            while (true) {
+                const result = ts.readConfigFile(pathToNextConfigInChain, readFile);
+                // Return diagnostics.
+                if (result.error) {
+                    return {
+                        configFilePath,
+                        config: { errors: [result.error], fileNames: [], options: {} },
+                        tsNodeOptionsFromTsconfig: {},
+                        optionBasePaths: {},
+                    };
+                }
+                const c = result.config;
+                const bp = (0, path_1.dirname)(pathToNextConfigInChain);
+                configChain.push({
+                    config: c,
+                    basePath: bp,
+                    configPath: pathToNextConfigInChain,
+                });
+                if (c.extends == null)
+                    break;
+                const resolvedExtendedConfigPath = tsInternals.getExtendsConfigPath(c.extends, {
+                    fileExists,
+                    readDirectory: ts.sys.readDirectory,
+                    readFile,
+                    useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames,
+                    trace: tsTrace,
+                }, bp, errors, ts.createCompilerDiagnostic);
+                if (errors.length) {
+                    return {
+                        configFilePath,
+                        config: { errors, fileNames: [], options: {} },
+                        tsNodeOptionsFromTsconfig: {},
+                        optionBasePaths: {},
+                    };
+                }
+                if (resolvedExtendedConfigPath == null)
+                    break;
+                pathToNextConfigInChain = resolvedExtendedConfigPath;
+            }
+            ({ config, basePath } = configChain[0]);
+        }
+    }
+    // Merge and fix ts-node options that come from tsconfig.json(s)
+    const tsNodeOptionsFromTsconfig = {};
+    const optionBasePaths = {};
+    for (let i = configChain.length - 1; i >= 0; i--) {
+        const { config, basePath, configPath } = configChain[i];
+        const options = filterRecognizedTsConfigTsNodeOptions(config['ts-node']).recognized;
+        // Some options are relative to the config file, so must be converted to absolute paths here
+        if (options.require) {
+            // Modules are found relative to the tsconfig file, not the `dir` option
+            const tsconfigRelativeResolver = (0, util_1.createProjectLocalResolveHelper)((0, path_1.dirname)(configPath));
+            options.require = options.require.map((path) => tsconfigRelativeResolver(path, false));
+        }
+        if (options.scopeDir) {
+            options.scopeDir = (0, path_1.resolve)(basePath, options.scopeDir);
+        }
+        // Downstream code uses the basePath; we do not do that here.
+        if (options.moduleTypes) {
+            optionBasePaths.moduleTypes = basePath;
+        }
+        if (options.transpiler != null) {
+            optionBasePaths.transpiler = basePath;
+        }
+        if (options.compiler != null) {
+            optionBasePaths.compiler = basePath;
+        }
+        if (options.swc != null) {
+            optionBasePaths.swc = basePath;
+        }
+        (0, util_1.assign)(tsNodeOptionsFromTsconfig, options);
+    }
+    // Remove resolution of "files".
+    const files = (_c = (_b = rawApiOptions.files) !== null && _b !== void 0 ? _b : tsNodeOptionsFromTsconfig.files) !== null && _c !== void 0 ? _c : index_1.DEFAULTS.files;
+    // Only if a config file is *not* loaded, load an implicit configuration from @tsconfig/bases
+    const skipDefaultCompilerOptions = configFilePath != null;
+    const defaultCompilerOptionsForNodeVersion = skipDefaultCompilerOptions
+        ? undefined
+        : {
+            ...(0, tsconfigs_1.getDefaultTsconfigJsonForNodeVersion)(ts).compilerOptions,
+            types: ['node'],
+        };
+    // Merge compilerOptions from all sources
+    config.compilerOptions = Object.assign({}, 
+    // automatically-applied options from @tsconfig/bases
+    defaultCompilerOptionsForNodeVersion, 
+    // tsconfig.json "compilerOptions"
+    config.compilerOptions, 
+    // from env var
+    index_1.DEFAULTS.compilerOptions, 
+    // tsconfig.json "ts-node": "compilerOptions"
+    tsNodeOptionsFromTsconfig.compilerOptions, 
+    // passed programmatically
+    rawApiOptions.compilerOptions, 
+    // overrides required by ts-node, cannot be changed
+    TS_NODE_COMPILER_OPTIONS);
+    const fixedConfig = fixConfig(ts, ts.parseJsonConfigFileContent(config, {
+        fileExists,
+        readFile,
+        // Only used for globbing "files", "include", "exclude"
+        // When `files` option disabled, we want to avoid the fs calls
+        readDirectory: files ? ts.sys.readDirectory : () => [],
+        useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames,
+    }, basePath, undefined, configFilePath));
+    return {
+        configFilePath,
+        config: fixedConfig,
+        tsNodeOptionsFromTsconfig,
+        optionBasePaths,
+    };
+}
+exports.readConfig = readConfig;
+/**
+ * Load the typescript compiler. It is required to load the tsconfig but might
+ * be changed by the tsconfig, so we have to do this twice.
+ * @internal
+ */
+function resolveAndLoadCompiler(name, relativeToPath) {
+    const { compiler } = resolveCompiler(name, relativeToPath);
+    const ts = loadCompiler(compiler);
+    return { compiler, ts };
+}
+exports.resolveAndLoadCompiler = resolveAndLoadCompiler;
+function resolveCompiler(name, relativeToPath) {
+    const projectLocalResolveHelper = (0, util_1.createProjectLocalResolveHelper)(relativeToPath);
+    const compiler = projectLocalResolveHelper(name || 'typescript', true);
+    return { compiler };
+}
+/** @internal */
+function loadCompiler(compiler) {
+    return (0, util_1.attemptRequireWithV8CompileCache)(require, compiler);
+}
+exports.loadCompiler = loadCompiler;
+/**
+ * Given the raw "ts-node" sub-object from a tsconfig, return an object with only the properties
+ * recognized by "ts-node"
+ */
+function filterRecognizedTsConfigTsNodeOptions(jsonObject) {
+    if (jsonObject == null)
+        return { recognized: {}, unrecognized: {} };
+    const { compiler, compilerHost, compilerOptions, emit, files, ignore, ignoreDiagnostics, logError, preferTsExts, pretty, require, skipIgnore, transpileOnly, typeCheck, transpiler, scope, scopeDir, moduleTypes, experimentalReplAwait, swc, experimentalResolver, esm, experimentalSpecifierResolution, experimentalTsImportSpecifiers, ...unrecognized } = jsonObject;
+    const filteredTsConfigOptions = {
+        compiler,
+        compilerHost,
+        compilerOptions,
+        emit,
+        experimentalReplAwait,
+        files,
+        ignore,
+        ignoreDiagnostics,
+        logError,
+        preferTsExts,
+        pretty,
+        require,
+        skipIgnore,
+        transpileOnly,
+        typeCheck,
+        transpiler,
+        scope,
+        scopeDir,
+        moduleTypes,
+        swc,
+        experimentalResolver,
+        esm,
+        experimentalSpecifierResolution,
+        experimentalTsImportSpecifiers,
+    };
+    // Use the typechecker to make sure this implementation has the correct set of properties
+    const catchExtraneousProps = null;
+    const catchMissingProps = null;
+    return { recognized: filteredTsConfigOptions, unrecognized };
+}
+/** @internal */
+exports.ComputeAsCommonRootOfFiles = Symbol();
+/**
+ * Some TS compiler options have defaults which are not provided by TS's config parsing functions.
+ * This function centralizes the logic for computing those defaults.
+ * @internal
+ */
+function getTsConfigDefaults(config, basePath, _files, _include, _exclude) {
+    const { composite = false } = config.options;
+    let rootDir = config.options.rootDir;
+    if (rootDir == null) {
+        if (composite)
+            rootDir = basePath;
+        // Return this symbol to avoid computing from `files`, which would require fs calls
+        else
+            rootDir = exports.ComputeAsCommonRootOfFiles;
+    }
+    const { outDir = rootDir } = config.options;
+    // Docs are wrong: https://www.typescriptlang.org/tsconfig#include
+    // Docs say **, but it's actually **/*; compiler throws error for **
+    const include = _files ? [] : ['**/*'];
+    const files = _files !== null && _files !== void 0 ? _files : [];
+    // Docs are misleading: https://www.typescriptlang.org/tsconfig#exclude
+    // Docs say it excludes node_modules, bower_components, jspm_packages, but actually those are excluded via behavior of "include"
+    const exclude = _exclude !== null && _exclude !== void 0 ? _exclude : [outDir]; // TODO technically, outDir is absolute path, but exclude should be relative glob pattern?
+    // TODO compute baseUrl
+    return { rootDir, outDir, include, files, exclude, composite };
+}
+exports.getTsConfigDefaults = getTsConfigDefaults;
+//# sourceMappingURL=configuration.js.map
+
+/***/ }),
+
+/***/ 84998:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+var __webpack_unused_export__;
+
+__webpack_unused_export__ = ({ value: true });
+exports.lT = __webpack_unused_export__ = __webpack_unused_export__ = void 0;
+const index_1 = __nccwpck_require__(72719);
+const url_1 = __nccwpck_require__(57310);
+const path_1 = __nccwpck_require__(71017);
+const assert = __nccwpck_require__(39491);
+const util_1 = __nccwpck_require__(64745);
+const module_1 = __nccwpck_require__(98188);
+// The hooks API changed in node version X so we need to check for backwards compatibility.
+const newHooksAPI = (0, util_1.versionGteLt)(process.versions.node, '16.12.0');
+/** @internal */
+function filterHooksByAPIVersion(hooks) {
+    const { getFormat, load, resolve, transformSource } = hooks;
+    // Explicit return type to avoid TS's non-ideal inferred type
+    const hooksAPI = newHooksAPI
+        ? { resolve, load, getFormat: undefined, transformSource: undefined }
+        : { resolve, getFormat, transformSource, load: undefined };
+    return hooksAPI;
+}
+__webpack_unused_export__ = filterHooksByAPIVersion;
+/** @internal */
+function registerAndCreateEsmHooks(opts) {
+    // Automatically performs registration just like `-r ts-node/register`
+    const tsNodeInstance = (0, index_1.register)(opts);
+    return createEsmHooks(tsNodeInstance);
+}
+__webpack_unused_export__ = registerAndCreateEsmHooks;
+function createEsmHooks(tsNodeService) {
+    tsNodeService.enableExperimentalEsmLoaderInterop();
+    // Custom implementation that considers additional file extensions and automatically adds file extensions
+    const nodeResolveImplementation = tsNodeService.getNodeEsmResolver();
+    const nodeGetFormatImplementation = tsNodeService.getNodeEsmGetFormat();
+    const extensions = tsNodeService.extensions;
+    const hooksAPI = filterHooksByAPIVersion({
+        resolve,
+        load,
+        getFormat,
+        transformSource,
+    });
+    function isFileUrlOrNodeStyleSpecifier(parsed) {
+        // We only understand file:// URLs, but in node, the specifier can be a node-style `./foo` or `foo`
+        const { protocol } = parsed;
+        return protocol === null || protocol === 'file:';
+    }
+    /**
+     * Named "probably" as a reminder that this is a guess.
+     * node does not explicitly tell us if we're resolving the entrypoint or not.
+     */
+    function isProbablyEntrypoint(specifier, parentURL) {
+        return parentURL === undefined && specifier.startsWith('file://');
+    }
+    // Side-channel between `resolve()` and `load()` hooks
+    const rememberIsProbablyEntrypoint = new Set();
+    const rememberResolvedViaCommonjsFallback = new Set();
+    async function resolve(specifier, context, defaultResolve) {
+        const defer = async () => {
+            const r = await defaultResolve(specifier, context, defaultResolve);
+            return r;
+        };
+        // See: https://github.com/nodejs/node/discussions/41711
+        // nodejs will likely implement a similar fallback.  Till then, we can do our users a favor and fallback today.
+        async function entrypointFallback(cb) {
+            try {
+                const resolution = await cb();
+                if ((resolution === null || resolution === void 0 ? void 0 : resolution.url) &&
+                    isProbablyEntrypoint(specifier, context.parentURL))
+                    rememberIsProbablyEntrypoint.add(resolution.url);
+                return resolution;
+            }
+            catch (esmResolverError) {
+                if (!isProbablyEntrypoint(specifier, context.parentURL))
+                    throw esmResolverError;
+                try {
+                    let cjsSpecifier = specifier;
+                    // Attempt to convert from ESM file:// to CommonJS path
+                    try {
+                        if (specifier.startsWith('file://'))
+                            cjsSpecifier = (0, url_1.fileURLToPath)(specifier);
+                    }
+                    catch { }
+                    const resolution = (0, url_1.pathToFileURL)((0, module_1.createRequire)(process.cwd()).resolve(cjsSpecifier)).toString();
+                    rememberIsProbablyEntrypoint.add(resolution);
+                    rememberResolvedViaCommonjsFallback.add(resolution);
+                    return { url: resolution, format: 'commonjs' };
+                }
+                catch (commonjsResolverError) {
+                    throw esmResolverError;
+                }
+            }
+        }
+        return addShortCircuitFlag(async () => {
+            const parsed = (0, url_1.parse)(specifier);
+            const { pathname, protocol, hostname } = parsed;
+            if (!isFileUrlOrNodeStyleSpecifier(parsed)) {
+                return entrypointFallback(defer);
+            }
+            if (protocol !== null && protocol !== 'file:') {
+                return entrypointFallback(defer);
+            }
+            // Malformed file:// URL?  We should always see `null` or `''`
+            if (hostname) {
+                // TODO file://./foo sets `hostname` to `'.'`.  Perhaps we should special-case this.
+                return entrypointFallback(defer);
+            }
+            // pathname is the path to be resolved
+            return entrypointFallback(() => nodeResolveImplementation.defaultResolve(specifier, context, defaultResolve));
+        });
+    }
+    // `load` from new loader hook API (See description at the top of this file)
+    async function load(url, context, defaultLoad) {
+        return addShortCircuitFlag(async () => {
+            var _a;
+            // If we get a format hint from resolve() on the context then use it
+            // otherwise call the old getFormat() hook using node's old built-in defaultGetFormat() that ships with ts-node
+            const format = (_a = context.format) !== null && _a !== void 0 ? _a : (await getFormat(url, context, nodeGetFormatImplementation.defaultGetFormat)).format;
+            let source = undefined;
+            if (format !== 'builtin' && format !== 'commonjs') {
+                // Call the new defaultLoad() to get the source
+                const { source: rawSource } = await defaultLoad(url, {
+                    ...context,
+                    format,
+                }, defaultLoad);
+                if (rawSource === undefined || rawSource === null) {
+                    throw new Error(`Failed to load raw source: Format was '${format}' and url was '${url}''.`);
+                }
+                // Emulate node's built-in old defaultTransformSource() so we can re-use the old transformSource() hook
+                const defaultTransformSource = async (source, _context, _defaultTransformSource) => ({ source });
+                // Call the old hook
+                const { source: transformedSource } = await transformSource(rawSource, { url, format }, defaultTransformSource);
+                source = transformedSource;
+            }
+            return { format, source };
+        });
+    }
+    async function getFormat(url, context, defaultGetFormat) {
+        const defer = (overrideUrl = url) => defaultGetFormat(overrideUrl, context, defaultGetFormat);
+        // See: https://github.com/nodejs/node/discussions/41711
+        // nodejs will likely implement a similar fallback.  Till then, we can do our users a favor and fallback today.
+        async function entrypointFallback(cb) {
+            try {
+                return await cb();
+            }
+            catch (getFormatError) {
+                if (!rememberIsProbablyEntrypoint.has(url))
+                    throw getFormatError;
+                return { format: 'commonjs' };
+            }
+        }
+        const parsed = (0, url_1.parse)(url);
+        if (!isFileUrlOrNodeStyleSpecifier(parsed)) {
+            return entrypointFallback(defer);
+        }
+        const { pathname } = parsed;
+        assert(pathname !== null, 'ESM getFormat() hook: URL should never have null pathname');
+        const nativePath = (0, url_1.fileURLToPath)(url);
+        let nodeSays;
+        // If file has extension not understood by node, then ask node how it would treat the emitted extension.
+        // E.g. .mts compiles to .mjs, so ask node how to classify an .mjs file.
+        const ext = (0, path_1.extname)(nativePath);
+        const tsNodeIgnored = tsNodeService.ignored(nativePath);
+        const nodeEquivalentExt = extensions.nodeEquivalents.get(ext);
+        if (nodeEquivalentExt && !tsNodeIgnored) {
+            nodeSays = await entrypointFallback(() => defer((0, url_1.format)((0, url_1.pathToFileURL)(nativePath + nodeEquivalentExt))));
+        }
+        else {
+            try {
+                nodeSays = await entrypointFallback(defer);
+            }
+            catch (e) {
+                if (e instanceof Error &&
+                    tsNodeIgnored &&
+                    extensions.nodeDoesNotUnderstand.includes(ext)) {
+                    e.message +=
+                        `\n\n` +
+                            `Hint:\n` +
+                            `ts-node is configured to ignore this file.\n` +
+                            `If you want ts-node to handle this file, consider enabling the "skipIgnore" option or adjusting your "ignore" patterns.\n` +
+                            `https://typestrong.org/ts-node/docs/scope\n`;
+                }
+                throw e;
+            }
+        }
+        // For files compiled by ts-node that node believes are either CJS or ESM, check if we should override that classification
+        if (!tsNodeService.ignored(nativePath) &&
+            (nodeSays.format === 'commonjs' || nodeSays.format === 'module')) {
+            const { moduleType } = tsNodeService.moduleTypeClassifier.classifyModuleByModuleTypeOverrides((0, util_1.normalizeSlashes)(nativePath));
+            if (moduleType === 'cjs') {
+                return { format: 'commonjs' };
+            }
+            else if (moduleType === 'esm') {
+                return { format: 'module' };
+            }
+        }
+        return nodeSays;
+    }
+    async function transformSource(source, context, defaultTransformSource) {
+        if (source === null || source === undefined) {
+            throw new Error('No source');
+        }
+        const defer = () => defaultTransformSource(source, context, defaultTransformSource);
+        const sourceAsString = typeof source === 'string' ? source : source.toString('utf8');
+        const { url } = context;
+        const parsed = (0, url_1.parse)(url);
+        if (!isFileUrlOrNodeStyleSpecifier(parsed)) {
+            return defer();
+        }
+        const nativePath = (0, url_1.fileURLToPath)(url);
+        if (tsNodeService.ignored(nativePath)) {
+            return defer();
+        }
+        const emittedJs = tsNodeService.compile(sourceAsString, nativePath);
+        return { source: emittedJs };
+    }
+    return hooksAPI;
+}
+exports.lT = createEsmHooks;
+async function addShortCircuitFlag(fn) {
+    const ret = await fn();
+    // Not sure if this is necessary; being lazy.  Can revisit in the future.
+    if (ret == null)
+        return ret;
+    return {
+        ...ret,
+        shortCircuit: true,
+    };
+}
+//# sourceMappingURL=esm.js.map
+
+/***/ }),
+
+/***/ 5183:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getExtensions = void 0;
+const util_1 = __nccwpck_require__(64745);
+const nodeEquivalents = new Map([
+    ['.ts', '.js'],
+    ['.tsx', '.js'],
+    ['.jsx', '.js'],
+    ['.mts', '.mjs'],
+    ['.cts', '.cjs'],
+]);
+const tsResolverEquivalents = new Map([
+    ['.ts', ['.js']],
+    ['.tsx', ['.js', '.jsx']],
+    ['.mts', ['.mjs']],
+    ['.cts', ['.cjs']],
+]);
+// All extensions understood by vanilla node
+const vanillaNodeExtensions = [
+    '.js',
+    '.json',
+    '.node',
+    '.mjs',
+    '.cjs',
+];
+// Extensions added by vanilla node's require() if you omit them:
+// js, json, node
+// Extensions added by vanilla node if you omit them with --experimental-specifier-resolution=node
+// js, json, node, mjs
+// Extensions added by ESM codepath's legacy package.json "main" resolver
+// js, json, node (not mjs!)
+const nodeDoesNotUnderstand = [
+    '.ts',
+    '.tsx',
+    '.jsx',
+    '.cts',
+    '.mts',
+];
+/**
+ * [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS]
+ * @internal
+ */
+function getExtensions(config, options, tsVersion) {
+    // TS 4.5 is first version to understand .cts, .mts, .cjs, and .mjs extensions
+    const tsSupportsMtsCtsExts = (0, util_1.versionGteLt)(tsVersion, '4.5.0');
+    const requiresHigherTypescriptVersion = [];
+    if (!tsSupportsMtsCtsExts)
+        requiresHigherTypescriptVersion.push('.cts', '.cjs', '.mts', '.mjs');
+    const allPossibleExtensionsSortedByPreference = Array.from(new Set([
+        ...(options.preferTsExts ? nodeDoesNotUnderstand : []),
+        ...vanillaNodeExtensions,
+        ...nodeDoesNotUnderstand,
+    ]));
+    const compiledJsUnsorted = ['.ts'];
+    const compiledJsxUnsorted = [];
+    if (config.options.jsx)
+        compiledJsxUnsorted.push('.tsx');
+    if (tsSupportsMtsCtsExts)
+        compiledJsUnsorted.push('.mts', '.cts');
+    if (config.options.allowJs) {
+        compiledJsUnsorted.push('.js');
+        if (config.options.jsx)
+            compiledJsxUnsorted.push('.jsx');
+        if (tsSupportsMtsCtsExts)
+            compiledJsUnsorted.push('.mjs', '.cjs');
+    }
+    const compiledUnsorted = [...compiledJsUnsorted, ...compiledJsxUnsorted];
+    const compiled = allPossibleExtensionsSortedByPreference.filter((ext) => compiledUnsorted.includes(ext));
+    const compiledNodeDoesNotUnderstand = nodeDoesNotUnderstand.filter((ext) => compiled.includes(ext));
+    /**
+     * TS's resolver can resolve foo.js to foo.ts, by replacing .js extension with several source extensions.
+     * IMPORTANT: Must preserve ordering according to preferTsExts!
+     *            Must include the .js/.mjs/.cjs extension in the array!
+     *            This affects resolution behavior!
+     * [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS]
+     */
+    const r = allPossibleExtensionsSortedByPreference.filter((ext) => [...compiledUnsorted, '.js', '.mjs', '.cjs', '.mts', '.cts'].includes(ext));
+    const replacementsForJs = r.filter((ext) => ['.js', '.jsx', '.ts', '.tsx'].includes(ext));
+    const replacementsForJsx = r.filter((ext) => ['.jsx', '.tsx'].includes(ext));
+    const replacementsForMjs = r.filter((ext) => ['.mjs', '.mts'].includes(ext));
+    const replacementsForCjs = r.filter((ext) => ['.cjs', '.cts'].includes(ext));
+    const replacementsForJsOrMjs = r.filter((ext) => ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.mts'].includes(ext));
+    // Node allows omitting .js or .mjs extension in certain situations (CJS, ESM w/experimental flag)
+    // So anything that compiles to .js or .mjs can also be omitted.
+    const experimentalSpecifierResolutionAddsIfOmitted = Array.from(new Set([...replacementsForJsOrMjs, '.json', '.node']));
+    // Same as above, except node curiuosly doesn't do .mjs here
+    const legacyMainResolveAddsIfOmitted = Array.from(new Set([...replacementsForJs, '.json', '.node']));
+    return {
+        /** All file extensions we transform, ordered by resolution preference according to preferTsExts */
+        compiled,
+        /** Resolved extensions that vanilla node will not understand; we should handle them */
+        nodeDoesNotUnderstand,
+        /** Like the above, but only the ones we're compiling */
+        compiledNodeDoesNotUnderstand,
+        /**
+         * Mapping from extensions understood by tsc to the equivalent for node,
+         * as far as getFormat is concerned.
+         */
+        nodeEquivalents,
+        /**
+         * Mapping from extensions rejected by TSC in import specifiers, to the
+         * possible alternatives that TS's resolver will accept.
+         *
+         * When we allow users to opt-in to .ts extensions in import specifiers, TS's
+         * resolver requires us to replace the .ts extensions with .js alternatives.
+         * Otherwise, resolution fails.
+         *
+         * Note TS's resolver is only used by, and only required for, typechecking.
+         * This is separate from node's resolver, which we hook separately and which
+         * does not require this mapping.
+         */
+        tsResolverEquivalents,
+        /**
+         * Extensions that we can support if the user upgrades their typescript version.
+         * Used when raising hints.
+         */
+        requiresHigherTypescriptVersion,
+        /**
+         * --experimental-specifier-resolution=node will add these extensions.
+         */
+        experimentalSpecifierResolutionAddsIfOmitted,
+        /**
+         * ESM loader will add these extensions to package.json "main" field
+         */
+        legacyMainResolveAddsIfOmitted,
+        replacementsForMjs,
+        replacementsForCjs,
+        replacementsForJsx,
+        replacementsForJs,
+    };
+}
+exports.getExtensions = getExtensions;
+//# sourceMappingURL=file-extensions.js.map
+
+/***/ }),
+
+/***/ 72719:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+var _a, _b;
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.createEsmHooks = exports.createFromPreloadedConfig = exports.create = exports.register = exports.TSError = exports.DEFAULTS = exports.VERSION = exports.debug = exports.INSPECT_CUSTOM = exports.env = exports.REGISTER_INSTANCE = exports.createRepl = void 0;
+const path_1 = __nccwpck_require__(71017);
+const module_1 = __nccwpck_require__(98188);
+const util = __nccwpck_require__(73837);
+const url_1 = __nccwpck_require__(57310);
+const make_error_1 = __nccwpck_require__(21381);
+const util_1 = __nccwpck_require__(64745);
+const configuration_1 = __nccwpck_require__(29906);
+const module_type_classifier_1 = __nccwpck_require__(23922);
+const resolver_functions_1 = __nccwpck_require__(19148);
+const cjs_resolve_hooks_1 = __nccwpck_require__(64414);
+const node_module_type_classifier_1 = __nccwpck_require__(80812);
+const file_extensions_1 = __nccwpck_require__(5183);
+const ts_transpile_module_1 = __nccwpck_require__(4444);
+var repl_1 = __nccwpck_require__(10204);
+Object.defineProperty(exports, "createRepl", ({ enumerable: true, get: function () { return repl_1.createRepl; } }));
+/**
+ * Does this version of node obey the package.json "type" field
+ * and throw ERR_REQUIRE_ESM when attempting to require() an ESM modules.
+ */
+const engineSupportsPackageTypeField = parseInt(process.versions.node.split('.')[0], 10) >= 12;
+/**
+ * Assert that script can be loaded as CommonJS when we attempt to require it.
+ * If it should be loaded as ESM, throw ERR_REQUIRE_ESM like node does.
+ *
+ * Loaded conditionally so we don't need to support older node versions
+ */
+let assertScriptCanLoadAsCJS = engineSupportsPackageTypeField
+    ? (__nccwpck_require__(51633).assertScriptCanLoadAsCJSImpl)
+    : () => {
+        /* noop */
+    };
+/**
+ * Registered `ts-node` instance information.
+ */
+exports.REGISTER_INSTANCE = Symbol.for('ts-node.register.instance');
+/** @internal */
+exports.env = process.env;
+/**
+ * @internal
+ */
+exports.INSPECT_CUSTOM = util.inspect.custom || 'inspect';
+/**
+ * Debugging `ts-node`.
+ */
+const shouldDebug = (0, util_1.yn)(exports.env.TS_NODE_DEBUG);
+/** @internal */
+exports.debug = shouldDebug
+    ? (...args) => console.log(`[ts-node ${new Date().toISOString()}]`, ...args)
+    : () => undefined;
+const debugFn = shouldDebug
+    ? (key, fn) => {
+        let i = 0;
+        return (x) => {
+            (0, exports.debug)(key, x, ++i);
+            return fn(x);
+        };
+    }
+    : (_, fn) => fn;
+/**
+ * Export the current version.
+ */
+exports.VERSION = __nccwpck_require__(46686).version;
+/**
+ * Default register options, including values specified via environment
+ * variables.
+ * @internal
+ */
+exports.DEFAULTS = {
+    cwd: (_a = exports.env.TS_NODE_CWD) !== null && _a !== void 0 ? _a : exports.env.TS_NODE_DIR,
+    emit: (0, util_1.yn)(exports.env.TS_NODE_EMIT),
+    scope: (0, util_1.yn)(exports.env.TS_NODE_SCOPE),
+    scopeDir: exports.env.TS_NODE_SCOPE_DIR,
+    files: (0, util_1.yn)(exports.env.TS_NODE_FILES),
+    pretty: (0, util_1.yn)(exports.env.TS_NODE_PRETTY),
+    compiler: exports.env.TS_NODE_COMPILER,
+    compilerOptions: (0, util_1.parse)(exports.env.TS_NODE_COMPILER_OPTIONS),
+    ignore: (0, util_1.split)(exports.env.TS_NODE_IGNORE),
+    project: exports.env.TS_NODE_PROJECT,
+    skipProject: (0, util_1.yn)(exports.env.TS_NODE_SKIP_PROJECT),
+    skipIgnore: (0, util_1.yn)(exports.env.TS_NODE_SKIP_IGNORE),
+    preferTsExts: (0, util_1.yn)(exports.env.TS_NODE_PREFER_TS_EXTS),
+    ignoreDiagnostics: (0, util_1.split)(exports.env.TS_NODE_IGNORE_DIAGNOSTICS),
+    transpileOnly: (0, util_1.yn)(exports.env.TS_NODE_TRANSPILE_ONLY),
+    typeCheck: (0, util_1.yn)(exports.env.TS_NODE_TYPE_CHECK),
+    compilerHost: (0, util_1.yn)(exports.env.TS_NODE_COMPILER_HOST),
+    logError: (0, util_1.yn)(exports.env.TS_NODE_LOG_ERROR),
+    experimentalReplAwait: (_b = (0, util_1.yn)(exports.env.TS_NODE_EXPERIMENTAL_REPL_AWAIT)) !== null && _b !== void 0 ? _b : undefined,
+    tsTrace: console.log.bind(console),
+};
+/**
+ * TypeScript diagnostics error.
+ */
+class TSError extends make_error_1.BaseError {
+    constructor(diagnosticText, diagnosticCodes, diagnostics = []) {
+        super(`⨯ Unable to compile TypeScript:\n${diagnosticText}`);
+        this.diagnosticCodes = diagnosticCodes;
+        this.name = 'TSError';
+        Object.defineProperty(this, 'diagnosticText', {
+            configurable: true,
+            writable: true,
+            value: diagnosticText,
+        });
+        Object.defineProperty(this, 'diagnostics', {
+            configurable: true,
+            writable: true,
+            value: diagnostics,
+        });
+    }
+    /**
+     * @internal
+     */
+    [exports.INSPECT_CUSTOM]() {
+        return this.diagnosticText;
+    }
+}
+exports.TSError = TSError;
+const TS_NODE_SERVICE_BRAND = Symbol('TS_NODE_SERVICE_BRAND');
+function register(serviceOrOpts) {
+    // Is this a Service or a RegisterOptions?
+    let service = serviceOrOpts;
+    if (!(serviceOrOpts === null || serviceOrOpts === void 0 ? void 0 : serviceOrOpts[TS_NODE_SERVICE_BRAND])) {
+        // Not a service; is options
+        service = create((serviceOrOpts !== null && serviceOrOpts !== void 0 ? serviceOrOpts : {}));
+    }
+    const originalJsHandler = require.extensions['.js'];
+    // Expose registered instance globally.
+    process[exports.REGISTER_INSTANCE] = service;
+    // Register the extensions.
+    registerExtensions(service.options.preferTsExts, service.extensions.compiled, service, originalJsHandler);
+    (0, cjs_resolve_hooks_1.installCommonjsResolveHooksIfNecessary)(service);
+    // Require specified modules before start-up.
+    module_1.Module._preloadModules(service.options.require);
+    return service;
+}
+exports.register = register;
+/**
+ * Create TypeScript compiler instance.
+ *
+ * @category Basic
+ */
+function create(rawOptions = {}) {
+    const foundConfigResult = (0, configuration_1.findAndReadConfig)(rawOptions);
+    return createFromPreloadedConfig(foundConfigResult);
+}
+exports.create = create;
+/** @internal */
+function createFromPreloadedConfig(foundConfigResult) {
+    var _a, _b, _c, _d;
+    const { configFilePath, cwd, options, config, compiler, projectLocalResolveDir, optionBasePaths, } = foundConfigResult;
+    const projectLocalResolveHelper = (0, util_1.createProjectLocalResolveHelper)(projectLocalResolveDir);
+    const ts = (0, configuration_1.loadCompiler)(compiler);
+    // Experimental REPL await is not compatible targets lower than ES2018
+    const targetSupportsTla = config.options.target >= ts.ScriptTarget.ES2018;
+    if (options.experimentalReplAwait === true && !targetSupportsTla) {
+        throw new Error('Experimental REPL await is not compatible with targets lower than ES2018');
+    }
+    // Top-level await was added in TS 3.8
+    const tsVersionSupportsTla = (0, util_1.versionGteLt)(ts.version, '3.8.0');
+    if (options.experimentalReplAwait === true && !tsVersionSupportsTla) {
+        throw new Error('Experimental REPL await is not compatible with TypeScript versions older than 3.8');
+    }
+    const shouldReplAwait = options.experimentalReplAwait !== false &&
+        tsVersionSupportsTla &&
+        targetSupportsTla;
+    // swc implies two other options
+    // typeCheck option was implemented specifically to allow overriding tsconfig transpileOnly from the command-line
+    // So we should allow using typeCheck to override swc
+    if (options.swc && !options.typeCheck) {
+        if (options.transpileOnly === false) {
+            throw new Error("Cannot enable 'swc' option with 'transpileOnly: false'.  'swc' implies 'transpileOnly'.");
+        }
+        if (options.transpiler) {
+            throw new Error("Cannot specify both 'swc' and 'transpiler' options.  'swc' uses the built-in swc transpiler.");
+        }
+    }
+    const readFile = options.readFile || ts.sys.readFile;
+    const fileExists = options.fileExists || ts.sys.fileExists;
+    // typeCheck can override transpileOnly, useful for CLI flag to override config file
+    const transpileOnly = (options.transpileOnly === true || options.swc === true) &&
+        options.typeCheck !== true;
+    let transpiler = undefined;
+    let transpilerBasePath = undefined;
+    if (options.transpiler) {
+        transpiler = options.transpiler;
+        transpilerBasePath = optionBasePaths.transpiler;
+    }
+    else if (options.swc) {
+        transpiler = __nccwpck_require__.ab + "swc.js";
+        transpilerBasePath = optionBasePaths.swc;
+    }
+    const transformers = options.transformers || undefined;
+    const diagnosticFilters = [
+        {
+            appliesToAllFiles: true,
+            filenamesAbsolute: [],
+            diagnosticsIgnored: [
+                6059,
+                18002,
+                18003,
+                ...(options.experimentalTsImportSpecifiers
+                    ? [
+                        2691, // "An import path cannot end with a '.ts' extension. Consider importing '' instead."
+                    ]
+                    : []),
+                ...(options.ignoreDiagnostics || []),
+            ].map(Number),
+        },
+    ];
+    const configDiagnosticList = filterDiagnostics(config.errors, diagnosticFilters);
+    const outputCache = new Map();
+    const configFileDirname = configFilePath ? (0, path_1.dirname)(configFilePath) : null;
+    const scopeDir = (_c = (_b = (_a = options.scopeDir) !== null && _a !== void 0 ? _a : config.options.rootDir) !== null && _b !== void 0 ? _b : configFileDirname) !== null && _c !== void 0 ? _c : cwd;
+    const ignoreBaseDir = configFileDirname !== null && configFileDirname !== void 0 ? configFileDirname : cwd;
+    const isScoped = options.scope
+        ? (fileName) => (0, path_1.relative)(scopeDir, fileName).charAt(0) !== '.'
+        : () => true;
+    const shouldIgnore = createIgnore(ignoreBaseDir, options.skipIgnore
+        ? []
+        : (options.ignore || ['(?:^|/)node_modules/']).map((str) => new RegExp(str)));
+    const diagnosticHost = {
+        getNewLine: () => ts.sys.newLine,
+        getCurrentDirectory: () => cwd,
+        // TODO switch to getCanonicalFileName we already create later in scope
+        getCanonicalFileName: ts.sys.useCaseSensitiveFileNames
+            ? (x) => x
+            : (x) => x.toLowerCase(),
+    };
+    if (options.transpileOnly && typeof transformers === 'function') {
+        throw new TypeError('Transformers function is unavailable in "--transpile-only"');
+    }
+    let createTranspiler = initializeTranspilerFactory();
+    function initializeTranspilerFactory() {
+        var _a;
+        if (__nccwpck_require__.ab + "swc.js") {
+            if (!transpileOnly)
+                throw new Error('Custom transpiler can only be used when transpileOnly is enabled.');
+            const transpilerName = typeof transpiler === 'string' ? transpiler : transpiler[0];
+            const transpilerOptions = typeof transpiler === 'string' ? {} : (_a = transpiler[1]) !== null && _a !== void 0 ? _a : {};
+            const transpilerConfigLocalResolveHelper = transpilerBasePath
+                ? (0, util_1.createProjectLocalResolveHelper)(transpilerBasePath)
+                : projectLocalResolveHelper;
+            const transpilerPath = transpilerConfigLocalResolveHelper(transpilerName, true);
+            const transpilerFactory = __nccwpck_require__(3833)(transpilerPath)
+                .create;
+            return createTranspiler;
+            function createTranspiler(compilerOptions, nodeModuleEmitKind) {
+                return transpilerFactory === null || transpilerFactory === void 0 ? void 0 : transpilerFactory({
+                    service: {
+                        options,
+                        config: {
+                            ...config,
+                            options: compilerOptions,
+                        },
+                        projectLocalResolveHelper,
+                    },
+                    transpilerConfigLocalResolveHelper,
+                    nodeModuleEmitKind,
+                    ...transpilerOptions,
+                });
+            }
+        }
+    }
+    /**
+     * True if require() hooks should interop with experimental ESM loader.
+     * Enabled explicitly via a flag since it is a breaking change.
+     */
+    let experimentalEsmLoader = false;
+    function enableExperimentalEsmLoaderInterop() {
+        experimentalEsmLoader = true;
+    }
+    // Install source map support and read from memory cache.
+    installSourceMapSupport();
+    function installSourceMapSupport() {
+        const sourceMapSupport = __nccwpck_require__(99964);
+        sourceMapSupport.install({
+            environment: 'node',
+            retrieveFile(pathOrUrl) {
+                var _a;
+                let path = pathOrUrl;
+                // If it's a file URL, convert to local path
+                // Note: fileURLToPath does not exist on early node v10
+                // I could not find a way to handle non-URLs except to swallow an error
+                if (experimentalEsmLoader && path.startsWith('file://')) {
+                    try {
+                        path = (0, url_1.fileURLToPath)(path);
+                    }
+                    catch (e) {
+                        /* swallow error */
+                    }
+                }
+                path = (0, util_1.normalizeSlashes)(path);
+                return ((_a = outputCache.get(path)) === null || _a === void 0 ? void 0 : _a.content) || '';
+            },
+            redirectConflictingLibrary: true,
+            onConflictingLibraryRedirect(request, parent, isMain, options, redirectedRequest) {
+                (0, exports.debug)(`Redirected an attempt to require source-map-support to instead receive @cspotcode/source-map-support.  "${parent.filename}" attempted to require or resolve "${request}" and was redirected to "${redirectedRequest}".`);
+            },
+        });
+    }
+    const shouldHavePrettyErrors = options.pretty === undefined ? process.stdout.isTTY : options.pretty;
+    const formatDiagnostics = shouldHavePrettyErrors
+        ? ts.formatDiagnosticsWithColorAndContext || ts.formatDiagnostics
+        : ts.formatDiagnostics;
+    function createTSError(diagnostics) {
+        const diagnosticText = formatDiagnostics(diagnostics, diagnosticHost);
+        const diagnosticCodes = diagnostics.map((x) => x.code);
+        return new TSError(diagnosticText, diagnosticCodes, diagnostics);
+    }
+    function reportTSError(configDiagnosticList) {
+        const error = createTSError(configDiagnosticList);
+        if (options.logError) {
+            // Print error in red color and continue execution.
+            console.error('\x1b[31m%s\x1b[0m', error);
+        }
+        else {
+            // Throw error and exit the script.
+            throw error;
+        }
+    }
+    // Render the configuration errors.
+    if (configDiagnosticList.length)
+        reportTSError(configDiagnosticList);
+    const jsxEmitPreserve = config.options.jsx === ts.JsxEmit.Preserve;
+    /**
+     * Get the extension for a transpiled file.
+     * [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS]
+     */
+    function getEmitExtension(path) {
+        const lastDotIndex = path.lastIndexOf('.');
+        if (lastDotIndex >= 0) {
+            const ext = path.slice(lastDotIndex);
+            switch (ext) {
+                case '.js':
+                case '.ts':
+                    return '.js';
+                case '.jsx':
+                case '.tsx':
+                    return jsxEmitPreserve ? '.jsx' : '.js';
+                case '.mjs':
+                case '.mts':
+                    return '.mjs';
+                case '.cjs':
+                case '.cts':
+                    return '.cjs';
+            }
+        }
+        return '.js';
+    }
+    /**
+     * Get output from TS compiler w/typechecking.  `undefined` in `transpileOnly`
+     * mode.
+     */
+    let getOutput;
+    let getTypeInfo;
+    const getCanonicalFileName = ts.createGetCanonicalFileName(ts.sys.useCaseSensitiveFileNames);
+    const moduleTypeClassifier = (0, module_type_classifier_1.createModuleTypeClassifier)({
+        basePath: (_d = options.optionBasePaths) === null || _d === void 0 ? void 0 : _d.moduleTypes,
+        patterns: options.moduleTypes,
+    });
+    const extensions = (0, file_extensions_1.getExtensions)(config, options, ts.version);
+    // Use full language services when the fast option is disabled.
+    if (!transpileOnly) {
+        const fileContents = new Map();
+        const rootFileNames = new Set(config.fileNames);
+        const cachedReadFile = (0, util_1.cachedLookup)(debugFn('readFile', readFile));
+        // Use language services by default
+        if (!options.compilerHost) {
+            let projectVersion = 1;
+            const fileVersions = new Map(Array.from(rootFileNames).map((fileName) => [fileName, 0]));
+            const getCustomTransformers = () => {
+                if (typeof transformers === 'function') {
+                    const program = service.getProgram();
+                    return program ? transformers(program) : undefined;
+                }
+                return transformers;
+            };
+            // Create the compiler host for type checking.
+            const serviceHost = {
+                getProjectVersion: () => String(projectVersion),
+                getScriptFileNames: () => Array.from(rootFileNames),
+                getScriptVersion: (fileName) => {
+                    const version = fileVersions.get(fileName);
+                    return version ? version.toString() : '';
+                },
+                getScriptSnapshot(fileName) {
+                    // TODO ordering of this with getScriptVersion?  Should they sync up?
+                    let contents = fileContents.get(fileName);
+                    // Read contents into TypeScript memory cache.
+                    if (contents === undefined) {
+                        contents = cachedReadFile(fileName);
+                        if (contents === undefined)
+                            return;
+                        fileVersions.set(fileName, 1);
+                        fileContents.set(fileName, contents);
+                        projectVersion++;
+                    }
+                    return ts.ScriptSnapshot.fromString(contents);
+                },
+                readFile: cachedReadFile,
+                readDirectory: ts.sys.readDirectory,
+                getDirectories: (0, util_1.cachedLookup)(debugFn('getDirectories', ts.sys.getDirectories)),
+                fileExists: (0, util_1.cachedLookup)(debugFn('fileExists', fileExists)),
+                directoryExists: (0, util_1.cachedLookup)(debugFn('directoryExists', ts.sys.directoryExists)),
+                realpath: ts.sys.realpath
+                    ? (0, util_1.cachedLookup)(debugFn('realpath', ts.sys.realpath))
+                    : undefined,
+                getNewLine: () => ts.sys.newLine,
+                useCaseSensitiveFileNames: () => ts.sys.useCaseSensitiveFileNames,
+                getCurrentDirectory: () => cwd,
+                getCompilationSettings: () => config.options,
+                getDefaultLibFileName: () => ts.getDefaultLibFilePath(config.options),
+                getCustomTransformers: getCustomTransformers,
+                trace: options.tsTrace,
+            };
+            const { resolveModuleNames, getResolvedModuleWithFailedLookupLocationsFromCache, resolveTypeReferenceDirectives, isFileKnownToBeInternal, markBucketOfFilenameInternal, } = (0, resolver_functions_1.createResolverFunctions)({
+                host: serviceHost,
+                getCanonicalFileName,
+                ts,
+                cwd,
+                config,
+                projectLocalResolveHelper,
+                options,
+                extensions,
+            });
+            serviceHost.resolveModuleNames = resolveModuleNames;
+            serviceHost.getResolvedModuleWithFailedLookupLocationsFromCache =
+                getResolvedModuleWithFailedLookupLocationsFromCache;
+            serviceHost.resolveTypeReferenceDirectives =
+                resolveTypeReferenceDirectives;
+            const registry = ts.createDocumentRegistry(ts.sys.useCaseSensitiveFileNames, cwd);
+            const service = ts.createLanguageService(serviceHost, registry);
+            const updateMemoryCache = (contents, fileName) => {
+                // Add to `rootFiles` as necessary, either to make TS include a file it has not seen,
+                // or to trigger a re-classification of files from external to internal.
+                if (!rootFileNames.has(fileName) &&
+                    !isFileKnownToBeInternal(fileName)) {
+                    markBucketOfFilenameInternal(fileName);
+                    rootFileNames.add(fileName);
+                    // Increment project version for every change to rootFileNames.
+                    projectVersion++;
+                }
+                const previousVersion = fileVersions.get(fileName) || 0;
+                const previousContents = fileContents.get(fileName);
+                // Avoid incrementing cache when nothing has changed.
+                if (contents !== previousContents) {
+                    fileVersions.set(fileName, previousVersion + 1);
+                    fileContents.set(fileName, contents);
+                    // Increment project version for every file change.
+                    projectVersion++;
+                }
+            };
+            let previousProgram = undefined;
+            getOutput = (code, fileName) => {
+                updateMemoryCache(code, fileName);
+                const programBefore = service.getProgram();
+                if (programBefore !== previousProgram) {
+                    (0, exports.debug)(`compiler rebuilt Program instance when getting output for ${fileName}`);
+                }
+                const output = service.getEmitOutput(fileName);
+                // Get the relevant diagnostics - this is 3x faster than `getPreEmitDiagnostics`.
+                const diagnostics = service
+                    .getSemanticDiagnostics(fileName)
+                    .concat(service.getSyntacticDiagnostics(fileName));
+                const programAfter = service.getProgram();
+                (0, exports.debug)('invariant: Is service.getProject() identical before and after getting emit output and diagnostics? (should always be true) ', programBefore === programAfter);
+                previousProgram = programAfter;
+                const diagnosticList = filterDiagnostics(diagnostics, diagnosticFilters);
+                if (diagnosticList.length)
+                    reportTSError(diagnosticList);
+                if (output.emitSkipped) {
+                    return [undefined, undefined, true];
+                }
+                // Throw an error when requiring `.d.ts` files.
+                if (output.outputFiles.length === 0) {
+                    throw new TypeError(`Unable to require file: ${(0, path_1.relative)(cwd, fileName)}\n` +
+                        'This is usually the result of a faulty configuration or import. ' +
+                        'Make sure there is a `.js`, `.json` or other executable extension with ' +
+                        'loader attached before `ts-node` available.');
+                }
+                return [output.outputFiles[1].text, output.outputFiles[0].text, false];
+            };
+            getTypeInfo = (code, fileName, position) => {
+                const normalizedFileName = (0, util_1.normalizeSlashes)(fileName);
+                updateMemoryCache(code, normalizedFileName);
+                const info = service.getQuickInfoAtPosition(normalizedFileName, position);
+                const name = ts.displayPartsToString(info ? info.displayParts : []);
+                const comment = ts.displayPartsToString(info ? info.documentation : []);
+                return { name, comment };
+            };
+        }
+        else {
+            const sys = {
+                ...ts.sys,
+                ...diagnosticHost,
+                readFile: (fileName) => {
+                    const cacheContents = fileContents.get(fileName);
+                    if (cacheContents !== undefined)
+                        return cacheContents;
+                    const contents = cachedReadFile(fileName);
+                    if (contents)
+                        fileContents.set(fileName, contents);
+                    return contents;
+                },
+                readDirectory: ts.sys.readDirectory,
+                getDirectories: (0, util_1.cachedLookup)(debugFn('getDirectories', ts.sys.getDirectories)),
+                fileExists: (0, util_1.cachedLookup)(debugFn('fileExists', fileExists)),
+                directoryExists: (0, util_1.cachedLookup)(debugFn('directoryExists', ts.sys.directoryExists)),
+                resolvePath: (0, util_1.cachedLookup)(debugFn('resolvePath', ts.sys.resolvePath)),
+                realpath: ts.sys.realpath
+                    ? (0, util_1.cachedLookup)(debugFn('realpath', ts.sys.realpath))
+                    : undefined,
+            };
+            const host = ts.createIncrementalCompilerHost
+                ? ts.createIncrementalCompilerHost(config.options, sys)
+                : {
+                    ...sys,
+                    getSourceFile: (fileName, languageVersion) => {
+                        const contents = sys.readFile(fileName);
+                        if (contents === undefined)
+                            return;
+                        return ts.createSourceFile(fileName, contents, languageVersion);
+                    },
+                    getDefaultLibLocation: () => (0, util_1.normalizeSlashes)((0, path_1.dirname)(compiler)),
+                    getDefaultLibFileName: () => (0, util_1.normalizeSlashes)((0, path_1.join)((0, path_1.dirname)(compiler), ts.getDefaultLibFileName(config.options))),
+                    useCaseSensitiveFileNames: () => sys.useCaseSensitiveFileNames,
+                };
+            host.trace = options.tsTrace;
+            const { resolveModuleNames, resolveTypeReferenceDirectives, isFileKnownToBeInternal, markBucketOfFilenameInternal, } = (0, resolver_functions_1.createResolverFunctions)({
+                host,
+                cwd,
+                config,
+                ts,
+                getCanonicalFileName,
+                projectLocalResolveHelper,
+                options,
+                extensions,
+            });
+            host.resolveModuleNames = resolveModuleNames;
+            host.resolveTypeReferenceDirectives = resolveTypeReferenceDirectives;
+            // Fallback for older TypeScript releases without incremental API.
+            let builderProgram = ts.createIncrementalProgram
+                ? ts.createIncrementalProgram({
+                    rootNames: Array.from(rootFileNames),
+                    options: config.options,
+                    host,
+                    configFileParsingDiagnostics: config.errors,
+                    projectReferences: config.projectReferences,
+                })
+                : ts.createEmitAndSemanticDiagnosticsBuilderProgram(Array.from(rootFileNames), config.options, host, undefined, config.errors, config.projectReferences);
+            // Read and cache custom transformers.
+            const customTransformers = typeof transformers === 'function'
+                ? transformers(builderProgram.getProgram())
+                : transformers;
+            // Set the file contents into cache manually.
+            const updateMemoryCache = (contents, fileName) => {
+                const previousContents = fileContents.get(fileName);
+                const contentsChanged = previousContents !== contents;
+                if (contentsChanged) {
+                    fileContents.set(fileName, contents);
+                }
+                // Add to `rootFiles` when discovered by compiler for the first time.
+                let addedToRootFileNames = false;
+                if (!rootFileNames.has(fileName) &&
+                    !isFileKnownToBeInternal(fileName)) {
+                    markBucketOfFilenameInternal(fileName);
+                    rootFileNames.add(fileName);
+                    addedToRootFileNames = true;
+                }
+                // Update program when file changes.
+                if (addedToRootFileNames || contentsChanged) {
+                    builderProgram = ts.createEmitAndSemanticDiagnosticsBuilderProgram(Array.from(rootFileNames), config.options, host, builderProgram, config.errors, config.projectReferences);
+                }
+            };
+            getOutput = (code, fileName) => {
+                let outText = '';
+                let outMap = '';
+                updateMemoryCache(code, fileName);
+                const sourceFile = builderProgram.getSourceFile(fileName);
+                if (!sourceFile)
+                    throw new TypeError(`Unable to read file: ${fileName}`);
+                const program = builderProgram.getProgram();
+                const diagnostics = ts.getPreEmitDiagnostics(program, sourceFile);
+                const diagnosticList = filterDiagnostics(diagnostics, diagnosticFilters);
+                if (diagnosticList.length)
+                    reportTSError(diagnosticList);
+                const result = builderProgram.emit(sourceFile, (path, file, writeByteOrderMark) => {
+                    if (path.endsWith('.map')) {
+                        outMap = file;
+                    }
+                    else {
+                        outText = file;
+                    }
+                    if (options.emit)
+                        sys.writeFile(path, file, writeByteOrderMark);
+                }, undefined, undefined, customTransformers);
+                if (result.emitSkipped) {
+                    return [undefined, undefined, true];
+                }
+                // Throw an error when requiring files that cannot be compiled.
+                if (outText === '') {
+                    if (program.isSourceFileFromExternalLibrary(sourceFile)) {
+                        throw new TypeError(`Unable to compile file from external library: ${(0, path_1.relative)(cwd, fileName)}`);
+                    }
+                    throw new TypeError(`Unable to require file: ${(0, path_1.relative)(cwd, fileName)}\n` +
+                        'This is usually the result of a faulty configuration or import. ' +
+                        'Make sure there is a `.js`, `.json` or other executable extension with ' +
+                        'loader attached before `ts-node` available.');
+                }
+                return [outText, outMap, false];
+            };
+            getTypeInfo = (code, fileName, position) => {
+                const normalizedFileName = (0, util_1.normalizeSlashes)(fileName);
+                updateMemoryCache(code, normalizedFileName);
+                const sourceFile = builderProgram.getSourceFile(normalizedFileName);
+                if (!sourceFile)
+                    throw new TypeError(`Unable to read file: ${fileName}`);
+                const node = getTokenAtPosition(ts, sourceFile, position);
+                const checker = builderProgram.getProgram().getTypeChecker();
+                const symbol = checker.getSymbolAtLocation(node);
+                if (!symbol)
+                    return { name: '', comment: '' };
+                const type = checker.getTypeOfSymbolAtLocation(symbol, node);
+                const signatures = [
+                    ...type.getConstructSignatures(),
+                    ...type.getCallSignatures(),
+                ];
+                return {
+                    name: signatures.length
+                        ? signatures.map((x) => checker.signatureToString(x)).join('\n')
+                        : checker.typeToString(type),
+                    comment: ts.displayPartsToString(symbol ? symbol.getDocumentationComment(checker) : []),
+                };
+            };
+            // Write `.tsbuildinfo` when `--build` is enabled.
+            if (options.emit && config.options.incremental) {
+                process.on('exit', () => {
+                    // Emits `.tsbuildinfo` to filesystem.
+                    builderProgram.getProgram().emitBuildInfo();
+                });
+            }
+        }
+    }
+    else {
+        getTypeInfo = () => {
+            throw new TypeError('Type information is unavailable in "--transpile-only"');
+        };
+    }
+    function createTranspileOnlyGetOutputFunction(overrideModuleType, nodeModuleEmitKind) {
+        const compilerOptions = { ...config.options };
+        if (overrideModuleType !== undefined)
+            compilerOptions.module = overrideModuleType;
+        let customTranspiler = createTranspiler === null || createTranspiler === void 0 ? void 0 : createTranspiler(compilerOptions, nodeModuleEmitKind);
+        let tsTranspileModule = (0, util_1.versionGteLt)(ts.version, '4.7.0')
+            ? (0, ts_transpile_module_1.createTsTranspileModule)(ts, {
+                compilerOptions,
+                reportDiagnostics: true,
+                transformers: transformers,
+            })
+            : undefined;
+        return (code, fileName) => {
+            let result;
+            if (customTranspiler) {
+                result = customTranspiler.transpile(code, {
+                    fileName,
+                });
+            }
+            else if (tsTranspileModule) {
+                result = tsTranspileModule(code, {
+                    fileName,
+                }, nodeModuleEmitKind === 'nodeesm' ? 'module' : 'commonjs');
+            }
+            else {
+                result = ts.transpileModule(code, {
+                    fileName,
+                    compilerOptions,
+                    reportDiagnostics: true,
+                    transformers: transformers,
+                });
+            }
+            const diagnosticList = filterDiagnostics(result.diagnostics || [], diagnosticFilters);
+            if (diagnosticList.length)
+                reportTSError(diagnosticList);
+            return [result.outputText, result.sourceMapText, false];
+        };
+    }
+    // When true, these mean that a `moduleType` override will cause a different emit
+    // than the TypeScript compiler, so we *must* overwrite the emit.
+    const shouldOverwriteEmitWhenForcingCommonJS = config.options.module !== ts.ModuleKind.CommonJS;
+    // [MUST_UPDATE_FOR_NEW_MODULEKIND]
+    const shouldOverwriteEmitWhenForcingEsm = !(config.options.module === ts.ModuleKind.ES2015 ||
+        (ts.ModuleKind.ES2020 && config.options.module === ts.ModuleKind.ES2020) ||
+        (ts.ModuleKind.ES2022 && config.options.module === ts.ModuleKind.ES2022) ||
+        config.options.module === ts.ModuleKind.ESNext);
+    /**
+     * node16 or nodenext
+     * [MUST_UPDATE_FOR_NEW_MODULEKIND]
+     */
+    const isNodeModuleType = (ts.ModuleKind.Node16 && config.options.module === ts.ModuleKind.Node16) ||
+        (ts.ModuleKind.NodeNext &&
+            config.options.module === ts.ModuleKind.NodeNext);
+    const getOutputForceCommonJS = createTranspileOnlyGetOutputFunction(ts.ModuleKind.CommonJS);
+    const getOutputForceNodeCommonJS = createTranspileOnlyGetOutputFunction(ts.ModuleKind.NodeNext, 'nodecjs');
+    const getOutputForceNodeESM = createTranspileOnlyGetOutputFunction(ts.ModuleKind.NodeNext, 'nodeesm');
+    // [MUST_UPDATE_FOR_NEW_MODULEKIND]
+    const getOutputForceESM = createTranspileOnlyGetOutputFunction(ts.ModuleKind.ES2022 || ts.ModuleKind.ES2020 || ts.ModuleKind.ES2015);
+    const getOutputTranspileOnly = createTranspileOnlyGetOutputFunction();
+    // Create a simple TypeScript compiler proxy.
+    function compile(code, fileName, lineOffset = 0) {
+        const normalizedFileName = (0, util_1.normalizeSlashes)(fileName);
+        const classification = moduleTypeClassifier.classifyModuleByModuleTypeOverrides(normalizedFileName);
+        let value = '';
+        let sourceMap = '';
+        let emitSkipped = true;
+        if (getOutput) {
+            // Must always call normal getOutput to throw typechecking errors
+            [value, sourceMap, emitSkipped] = getOutput(code, normalizedFileName);
+        }
+        // If module classification contradicts the above, call the relevant transpiler
+        if (classification.moduleType === 'cjs' &&
+            (shouldOverwriteEmitWhenForcingCommonJS || emitSkipped)) {
+            [value, sourceMap] = getOutputForceCommonJS(code, normalizedFileName);
+        }
+        else if (classification.moduleType === 'esm' &&
+            (shouldOverwriteEmitWhenForcingEsm || emitSkipped)) {
+            [value, sourceMap] = getOutputForceESM(code, normalizedFileName);
+        }
+        else if (emitSkipped) {
+            // Happens when ts compiler skips emit or in transpileOnly mode
+            const classification = (0, node_module_type_classifier_1.classifyModule)(fileName, isNodeModuleType);
+            [value, sourceMap] =
+                classification === 'nodecjs'
+                    ? getOutputForceNodeCommonJS(code, normalizedFileName)
+                    : classification === 'nodeesm'
+                        ? getOutputForceNodeESM(code, normalizedFileName)
+                        : classification === 'cjs'
+                            ? getOutputForceCommonJS(code, normalizedFileName)
+                            : classification === 'esm'
+                                ? getOutputForceESM(code, normalizedFileName)
+                                : getOutputTranspileOnly(code, normalizedFileName);
+        }
+        const output = updateOutput(value, normalizedFileName, sourceMap, getEmitExtension);
+        outputCache.set(normalizedFileName, { content: output });
+        return output;
+    }
+    let active = true;
+    const enabled = (enabled) => enabled === undefined ? active : (active = !!enabled);
+    const ignored = (fileName) => {
+        if (!active)
+            return true;
+        const ext = (0, path_1.extname)(fileName);
+        if (extensions.compiled.includes(ext)) {
+            return !isScoped(fileName) || shouldIgnore(fileName);
+        }
+        return true;
+    };
+    function addDiagnosticFilter(filter) {
+        diagnosticFilters.push({
+            ...filter,
+            filenamesAbsolute: filter.filenamesAbsolute.map((f) => (0, util_1.normalizeSlashes)(f)),
+        });
+    }
+    const getNodeEsmResolver = (0, util_1.once)(() => (__nccwpck_require__(67968).createResolve)({
+        extensions,
+        preferTsExts: options.preferTsExts,
+        tsNodeExperimentalSpecifierResolution: options.experimentalSpecifierResolution,
+    }));
+    const getNodeEsmGetFormat = (0, util_1.once)(() => (__nccwpck_require__(37207).createGetFormat)(options.experimentalSpecifierResolution, getNodeEsmResolver()));
+    const getNodeCjsLoader = (0, util_1.once)(() => (__nccwpck_require__(51633).createCjsLoader)({
+        extensions,
+        preferTsExts: options.preferTsExts,
+        nodeEsmResolver: getNodeEsmResolver(),
+    }));
+    return {
+        [TS_NODE_SERVICE_BRAND]: true,
+        ts,
+        compilerPath: compiler,
+        config,
+        compile,
+        getTypeInfo,
+        ignored,
+        enabled,
+        options,
+        configFilePath,
+        moduleTypeClassifier,
+        shouldReplAwait,
+        addDiagnosticFilter,
+        installSourceMapSupport,
+        enableExperimentalEsmLoaderInterop,
+        transpileOnly,
+        projectLocalResolveHelper,
+        getNodeEsmResolver,
+        getNodeEsmGetFormat,
+        getNodeCjsLoader,
+        extensions,
+    };
+}
+exports.createFromPreloadedConfig = createFromPreloadedConfig;
+/**
+ * Check if the filename should be ignored.
+ */
+function createIgnore(ignoreBaseDir, ignore) {
+    return (fileName) => {
+        const relname = (0, path_1.relative)(ignoreBaseDir, fileName);
+        const path = (0, util_1.normalizeSlashes)(relname);
+        return ignore.some((x) => x.test(path));
+    };
+}
+/**
+ * Register the extensions to support when importing files.
+ */
+function registerExtensions(preferTsExts, extensions, service, originalJsHandler) {
+    const exts = new Set(extensions);
+    // Can't add these extensions cuz would allow omitting file extension; node requires ext for .cjs and .mjs
+    // Unless they're already registered by something else (nyc does this):
+    // then we *must* hook them or else our transformer will not be called.
+    for (const cannotAdd of ['.mts', '.cts', '.mjs', '.cjs']) {
+        if (exts.has(cannotAdd) && !(0, util_1.hasOwnProperty)(require.extensions, cannotAdd)) {
+            // Unrecognized file exts can be transformed via the `.js` handler.
+            exts.add('.js');
+            exts.delete(cannotAdd);
+        }
+    }
+    // Register new extensions.
+    for (const ext of exts) {
+        registerExtension(ext, service, originalJsHandler);
+    }
+    if (preferTsExts) {
+        const preferredExtensions = new Set([
+            ...exts,
+            ...Object.keys(require.extensions),
+        ]);
+        // Re-sort iteration order of Object.keys()
+        for (const ext of preferredExtensions) {
+            const old = Object.getOwnPropertyDescriptor(require.extensions, ext);
+            delete require.extensions[ext];
+            Object.defineProperty(require.extensions, ext, old);
+        }
+    }
+}
+/**
+ * Register the extension for node.
+ */
+function registerExtension(ext, service, originalHandler) {
+    const old = require.extensions[ext] || originalHandler;
+    require.extensions[ext] = function (m, filename) {
+        if (service.ignored(filename))
+            return old(m, filename);
+        assertScriptCanLoadAsCJS(service, m, filename);
+        const _compile = m._compile;
+        m._compile = function (code, fileName) {
+            (0, exports.debug)('module._compile', fileName);
+            const result = service.compile(code, fileName);
+            return _compile.call(this, result, fileName);
+        };
+        return old(m, filename);
+    };
+}
+/**
+ * Update the output remapping the source map.
+ */
+function updateOutput(outputText, fileName, sourceMap, getEmitExtension) {
+    const base64Map = Buffer.from(updateSourceMap(sourceMap, fileName), 'utf8').toString('base64');
+    const sourceMapContent = `//# sourceMappingURL=data:application/json;charset=utf-8;base64,${base64Map}`;
+    // Expected form: `//# sourceMappingURL=foo bar.js.map` or `//# sourceMappingURL=foo%20bar.js.map` for input file "foo bar.tsx"
+    // Percent-encoding behavior added in TS 4.1.1: https://github.com/microsoft/TypeScript/issues/40951
+    const prefix = '//# sourceMappingURL=';
+    const prefixLength = prefix.length;
+    const baseName = /*foo.tsx*/ (0, path_1.basename)(fileName);
+    const extName = /*.tsx*/ (0, path_1.extname)(fileName);
+    const extension = /*.js*/ getEmitExtension(fileName);
+    const sourcemapFilename = baseName.slice(0, -extName.length) + extension + '.map';
+    const sourceMapLengthWithoutPercentEncoding = prefixLength + sourcemapFilename.length;
+    /*
+     * Only rewrite if existing directive exists at the location we expect, to support:
+     *   a) compilers that do not append a sourcemap directive
+     *   b) situations where we did the math wrong
+     *     Not ideal, but appending our sourcemap *after* a pre-existing sourcemap still overrides, so the end-user is happy.
+     */
+    if (outputText.substr(-sourceMapLengthWithoutPercentEncoding, prefixLength) ===
+        prefix) {
+        return (outputText.slice(0, -sourceMapLengthWithoutPercentEncoding) +
+            sourceMapContent);
+    }
+    // If anyone asks why we're not using URL, the URL equivalent is: `u = new URL('http://d'); u.pathname = "/" + sourcemapFilename; return u.pathname.slice(1);
+    const sourceMapLengthWithPercentEncoding = prefixLength + encodeURI(sourcemapFilename).length;
+    if (outputText.substr(-sourceMapLengthWithPercentEncoding, prefixLength) ===
+        prefix) {
+        return (outputText.slice(0, -sourceMapLengthWithPercentEncoding) +
+            sourceMapContent);
+    }
+    return `${outputText}\n${sourceMapContent}`;
+}
+/**
+ * Update the source map contents for improved output.
+ */
+function updateSourceMap(sourceMapText, fileName) {
+    const sourceMap = JSON.parse(sourceMapText);
+    sourceMap.file = fileName;
+    sourceMap.sources = [fileName];
+    delete sourceMap.sourceRoot;
+    return JSON.stringify(sourceMap);
+}
+/**
+ * Filter diagnostics.
+ */
+function filterDiagnostics(diagnostics, filters) {
+    return diagnostics.filter((d) => filters.every((f) => {
+        var _a;
+        return (!f.appliesToAllFiles &&
+            f.filenamesAbsolute.indexOf((_a = d.file) === null || _a === void 0 ? void 0 : _a.fileName) === -1) ||
+            f.diagnosticsIgnored.indexOf(d.code) === -1;
+    }));
+}
+/**
+ * Get token at file position.
+ *
+ * Reference: https://github.com/microsoft/TypeScript/blob/fcd9334f57d85b73dd66ad2d21c02e84822f4841/src/services/utilities.ts#L705-L731
+ */
+function getTokenAtPosition(ts, sourceFile, position) {
+    let current = sourceFile;
+    outer: while (true) {
+        for (const child of current.getChildren(sourceFile)) {
+            const start = child.getFullStart();
+            if (start > position)
+                break;
+            const end = child.getEnd();
+            if (position <= end) {
+                current = child;
+                continue outer;
+            }
+        }
+        return current;
+    }
+}
+/**
+ * Create an implementation of node's ESM loader hooks.
+ *
+ * This may be useful if you
+ * want to wrap or compose the loader hooks to add additional functionality or
+ * combine with another loader.
+ *
+ * Node changed the hooks API, so there are two possible APIs.  This function
+ * detects your node version and returns the appropriate API.
+ *
+ * @category ESM Loader
+ */
+const createEsmHooks = (tsNodeService) => (__nccwpck_require__(84998)/* .createEsmHooks */ .lT)(tsNodeService);
+exports.createEsmHooks = createEsmHooks;
+//# sourceMappingURL=index.js.map
+
+/***/ }),
+
+/***/ 23922:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.createModuleTypeClassifier = void 0;
+const ts_internals_1 = __nccwpck_require__(14851);
+const util_1 = __nccwpck_require__(64745);
+/**
+ * @internal
+ * May receive non-normalized options -- basePath and patterns -- and will normalize them
+ * internally.
+ * However, calls to `classifyModule` must pass pre-normalized paths!
+ */
+function createModuleTypeClassifier(options) {
+    const { patterns, basePath: _basePath } = options;
+    const basePath = _basePath !== undefined
+        ? (0, util_1.normalizeSlashes)(_basePath).replace(/\/$/, '')
+        : undefined;
+    const patternTypePairs = Object.entries(patterns !== null && patterns !== void 0 ? patterns : []).map(([_pattern, type]) => {
+        const pattern = (0, util_1.normalizeSlashes)(_pattern);
+        return { pattern: parsePattern(basePath, pattern), type };
+    });
+    const classifications = {
+        package: {
+            moduleType: 'auto',
+        },
+        cjs: {
+            moduleType: 'cjs',
+        },
+        esm: {
+            moduleType: 'esm',
+        },
+    };
+    const auto = classifications.package;
+    // Passed path must be normalized!
+    function classifyModuleNonCached(path) {
+        const matched = matchPatterns(patternTypePairs, (_) => _.pattern, path);
+        if (matched)
+            return classifications[matched.type];
+        return auto;
+    }
+    const classifyModule = (0, util_1.cachedLookup)(classifyModuleNonCached);
+    function classifyModuleAuto(path) {
+        return auto;
+    }
+    return {
+        classifyModuleByModuleTypeOverrides: patternTypePairs.length
+            ? classifyModule
+            : classifyModuleAuto,
+    };
+}
+exports.createModuleTypeClassifier = createModuleTypeClassifier;
+function parsePattern(basePath, patternString) {
+    const pattern = (0, ts_internals_1.getPatternFromSpec)(patternString, basePath);
+    return pattern !== undefined ? new RegExp(pattern) : /(?:)/;
+}
+function matchPatterns(objects, getPattern, candidate) {
+    for (let i = objects.length - 1; i >= 0; i--) {
+        const object = objects[i];
+        const pattern = getPattern(object);
+        if (pattern === null || pattern === void 0 ? void 0 : pattern.test(candidate)) {
+            return object;
+        }
+    }
+}
+//# sourceMappingURL=module-type-classifier.js.map
+
+/***/ }),
+
+/***/ 80812:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.classifyModule = void 0;
+const node_internal_modules_cjs_loader_1 = __nccwpck_require__(51633);
+/**
+ * Determine how to emit a module based on tsconfig "module" and package.json "type"
+ *
+ * Supports module=nodenext/node16 with transpileOnly, where we cannot ask the
+ * TS typechecker to tell us if a file is CJS or ESM.
+ *
+ * Return values indicate:
+ * - cjs
+ * - esm
+ * - nodecjs == node-flavored cjs where dynamic imports are *not* transformed into `require()`
+ * - undefined == emit according to tsconfig `module` config, whatever that is
+ * @internal
+ */
+function classifyModule(nativeFilename, isNodeModuleType) {
+    // [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS]
+    const lastDotIndex = nativeFilename.lastIndexOf('.');
+    const ext = lastDotIndex >= 0 ? nativeFilename.slice(lastDotIndex) : '';
+    switch (ext) {
+        case '.cjs':
+        case '.cts':
+            return isNodeModuleType ? 'nodecjs' : 'cjs';
+        case '.mjs':
+        case '.mts':
+            return isNodeModuleType ? 'nodeesm' : 'esm';
+    }
+    if (isNodeModuleType) {
+        const packageScope = (0, node_internal_modules_cjs_loader_1.readPackageScope)(nativeFilename);
+        if (packageScope && packageScope.data.type === 'module')
+            return 'nodeesm';
+        return 'nodecjs';
+    }
+    return undefined;
+}
+exports.classifyModule = classifyModule;
+//# sourceMappingURL=node-module-type-classifier.js.map
+
+/***/ }),
+
+/***/ 10204:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.setupContext = exports.createEvalAwarePartialHost = exports.EvalState = exports.createRepl = exports.REPL_NAME = exports.REPL_FILENAME = exports.STDIN_NAME = exports.STDIN_FILENAME = exports.EVAL_NAME = exports.EVAL_FILENAME = void 0;
+const os_1 = __nccwpck_require__(22037);
+const path_1 = __nccwpck_require__(71017);
+const repl_1 = __nccwpck_require__(38102);
+const vm_1 = __nccwpck_require__(26144);
+const index_1 = __nccwpck_require__(72719);
+const fs_1 = __nccwpck_require__(57147);
+const console_1 = __nccwpck_require__(51807);
+const assert = __nccwpck_require__(39491);
+const module_1 = __nccwpck_require__(98188);
+// Lazy-loaded.
+let _processTopLevelAwait;
+function getProcessTopLevelAwait() {
+    if (_processTopLevelAwait === undefined) {
+        ({
+            processTopLevelAwait: _processTopLevelAwait,
+        } = __nccwpck_require__(75818));
+    }
+    return _processTopLevelAwait;
+}
+let diff;
+function getDiffLines() {
+    if (diff === undefined) {
+        diff = __nccwpck_require__(71672);
+    }
+    return diff.diffLines;
+}
+/** @internal */
+exports.EVAL_FILENAME = `[eval].ts`;
+/** @internal */
+exports.EVAL_NAME = `[eval]`;
+/** @internal */
+exports.STDIN_FILENAME = `[stdin].ts`;
+/** @internal */
+exports.STDIN_NAME = `[stdin]`;
+/** @internal */
+exports.REPL_FILENAME = '.ts';
+/** @internal */
+exports.REPL_NAME = '';
+/**
+ * Create a ts-node REPL instance.
+ *
+ * Pay close attention to the example below.  Today, the API requires a few lines
+ * of boilerplate to correctly bind the `ReplService` to the ts-node `Service` and
+ * vice-versa.
+ *
+ * Usage example:
+ *
+ *     const repl = tsNode.createRepl();
+ *     const service = tsNode.create({...repl.evalAwarePartialHost});
+ *     repl.setService(service);
+ *     repl.start();
+ *
+ * @category REPL
+ */
+function createRepl(options = {}) {
+    var _a, _b, _c, _d, _e;
+    const { ignoreDiagnosticsThatAreAnnoyingInInteractiveRepl = true } = options;
+    let service = options.service;
+    let nodeReplServer;
+    // If `useGlobal` is not true, then REPL creates a context when started.
+    // This stores a reference to it or to `global`, whichever is used, after REPL has started.
+    let context;
+    const state = (_a = options.state) !== null && _a !== void 0 ? _a : new EvalState((0, path_1.join)(process.cwd(), exports.REPL_FILENAME));
+    const evalAwarePartialHost = createEvalAwarePartialHost(state, options.composeWithEvalAwarePartialHost);
+    const stdin = (_b = options.stdin) !== null && _b !== void 0 ? _b : process.stdin;
+    const stdout = (_c = options.stdout) !== null && _c !== void 0 ? _c : process.stdout;
+    const stderr = (_d = options.stderr) !== null && _d !== void 0 ? _d : process.stderr;
+    const _console = stdout === process.stdout && stderr === process.stderr
+        ? console
+        : new console_1.Console(stdout, stderr);
+    const replService = {
+        state: (_e = options.state) !== null && _e !== void 0 ? _e : new EvalState((0, path_1.join)(process.cwd(), exports.EVAL_FILENAME)),
+        setService,
+        evalCode,
+        evalCodeInternal,
+        nodeEval,
+        evalAwarePartialHost,
+        start,
+        startInternal,
+        stdin,
+        stdout,
+        stderr,
+        console: _console,
+    };
+    return replService;
+    function setService(_service) {
+        service = _service;
+        if (ignoreDiagnosticsThatAreAnnoyingInInteractiveRepl) {
+            service.addDiagnosticFilter({
+                appliesToAllFiles: false,
+                filenamesAbsolute: [state.path],
+                diagnosticsIgnored: [
+                    2393,
+                    6133,
+                    7027,
+                    ...(service.shouldReplAwait ? topLevelAwaitDiagnosticCodes : []),
+                ],
+            });
+        }
+    }
+    function evalCode(code) {
+        const result = appendCompileAndEvalInput({
+            service: service,
+            state,
+            input: code,
+            context,
+            overrideIsCompletion: false,
+        });
+        assert(result.containsTopLevelAwait === false);
+        return result.value;
+    }
+    function evalCodeInternal(options) {
+        const { code, enableTopLevelAwait, context } = options;
+        return appendCompileAndEvalInput({
+            service: service,
+            state,
+            input: code,
+            enableTopLevelAwait,
+            context,
+        });
+    }
+    function nodeEval(code, context, _filename, callback) {
+        // TODO: Figure out how to handle completion here.
+        if (code === '.scope') {
+            callback(null);
+            return;
+        }
+        try {
+            const evalResult = evalCodeInternal({
+                code,
+                enableTopLevelAwait: true,
+                context,
+            });
+            if (evalResult.containsTopLevelAwait) {
+                (async () => {
+                    try {
+                        callback(null, await evalResult.valuePromise);
+                    }
+                    catch (promiseError) {
+                        handleError(promiseError);
+                    }
+                })();
+            }
+            else {
+                callback(null, evalResult.value);
+            }
+        }
+        catch (error) {
+            handleError(error);
+        }
+        // Log TSErrors, check if they're recoverable, log helpful hints for certain
+        // well-known errors, and invoke `callback()`
+        // TODO should evalCode API get the same error-handling benefits?
+        function handleError(error) {
+            var _a, _b;
+            // Don't show TLA hint if the user explicitly disabled repl top level await
+            const canLogTopLevelAwaitHint = service.options.experimentalReplAwait !== false &&
+                !service.shouldReplAwait;
+            if (error instanceof index_1.TSError) {
+                // Support recoverable compilations using >= node 6.
+                if (repl_1.Recoverable && isRecoverable(error)) {
+                    callback(new repl_1.Recoverable(error));
+                    return;
+                }
+                else {
+                    _console.error(error);
+                    if (canLogTopLevelAwaitHint &&
+                        error.diagnosticCodes.some((dC) => topLevelAwaitDiagnosticCodes.includes(dC))) {
+                        _console.error(getTopLevelAwaitHint());
+                    }
+                    callback(null);
+                }
+            }
+            else {
+                let _error = error;
+                if (canLogTopLevelAwaitHint &&
+                    _error instanceof SyntaxError &&
+                    ((_a = _error.message) === null || _a === void 0 ? void 0 : _a.includes('await is only valid'))) {
+                    try {
+                        // Only way I know to make our hint appear after the error
+                        _error.message += `\n\n${getTopLevelAwaitHint()}`;
+                        _error.stack = (_b = _error.stack) === null || _b === void 0 ? void 0 : _b.replace(/(SyntaxError:.*)/, (_, $1) => `${$1}\n\n${getTopLevelAwaitHint()}`);
+                    }
+                    catch { }
+                }
+                callback(_error);
+            }
+        }
+        function getTopLevelAwaitHint() {
+            return `Hint: REPL top-level await requires TypeScript version 3.8 or higher and target ES2018 or higher. You are using TypeScript ${service.ts.version} and target ${service.ts.ScriptTarget[service.config.options.target]}.`;
+        }
+    }
+    // Note: `code` argument is deprecated
+    function start(code) {
+        startInternal({ code });
+    }
+    // Note: `code` argument is deprecated
+    function startInternal(options) {
+        const { code, forceToBeModule = true, ...optionsOverride } = options !== null && options !== void 0 ? options : {};
+        // TODO assert that `service` is set; remove all `service!` non-null assertions
+        // Eval incoming code before the REPL starts.
+        // Note: deprecated
+        if (code) {
+            try {
+                evalCode(`${code}\n`);
+            }
+            catch (err) {
+                _console.error(err);
+                // Note: should not be killing the process here, but this codepath is deprecated anyway
+                process.exit(1);
+            }
+        }
+        // In case the typescript compiler hasn't compiled anything yet,
+        // make it run though compilation at least one time before
+        // the REPL starts for a snappier user experience on startup.
+        service === null || service === void 0 ? void 0 : service.compile('', state.path);
+        const repl = (0, repl_1.start)({
+            prompt: '> ',
+            input: replService.stdin,
+            output: replService.stdout,
+            // Mimicking node's REPL implementation: https://github.com/nodejs/node/blob/168b22ba073ee1cbf8d0bcb4ded7ff3099335d04/lib/internal/repl.js#L28-L30
+            terminal: stdout.isTTY &&
+                !parseInt(index_1.env.NODE_NO_READLINE, 10),
+            eval: nodeEval,
+            useGlobal: true,
+            ...optionsOverride,
+        });
+        nodeReplServer = repl;
+        context = repl.context;
+        // Bookmark the point where we should reset the REPL state.
+        const resetEval = appendToEvalState(state, '');
+        function reset() {
+            resetEval();
+            // Hard fix for TypeScript forcing `Object.defineProperty(exports, ...)`.
+            runInContext('exports = module.exports', state.path, context);
+            if (forceToBeModule) {
+                state.input += 'export {};void 0;\n';
+            }
+            // Declare node builtins.
+            // Skip the same builtins as `addBuiltinLibsToObject`:
+            //   those starting with _
+            //   those containing /
+            //   those that already exist as globals
+            // Intentionally suppress type errors in case @types/node does not declare any of them, and because
+            // `declare import` is technically invalid syntax.
+            // Avoid this when in transpileOnly, because third-party transpilers may not handle `declare import`.
+            if (!(service === null || service === void 0 ? void 0 : service.transpileOnly)) {
+                state.input += `// @ts-ignore\n${module_1.builtinModules
+                    .filter((name) => !name.startsWith('_') &&
+                    !name.includes('/') &&
+                    !['console', 'module', 'process'].includes(name))
+                    .map((name) => `declare import ${name} = require('${name}')`)
+                    .join(';')}\n`;
+            }
+        }
+        reset();
+        repl.on('reset', reset);
+        repl.defineCommand('type', {
+            help: 'Check the type of a TypeScript identifier',
+            action: function (identifier) {
+                if (!identifier) {
+                    repl.displayPrompt();
+                    return;
+                }
+                const undo = appendToEvalState(state, identifier);
+                const { name, comment } = service.getTypeInfo(state.input, state.path, state.input.length);
+                undo();
+                if (name)
+                    repl.outputStream.write(`${name}\n`);
+                if (comment)
+                    repl.outputStream.write(`${comment}\n`);
+                repl.displayPrompt();
+            },
+        });
+        // Set up REPL history when available natively via node.js >= 11.
+        if (repl.setupHistory) {
+            const historyPath = index_1.env.TS_NODE_HISTORY || (0, path_1.join)((0, os_1.homedir)(), '.ts_node_repl_history');
+            repl.setupHistory(historyPath, (err) => {
+                if (!err)
+                    return;
+                _console.error(err);
+                process.exit(1);
+            });
+        }
+        return repl;
+    }
+}
+exports.createRepl = createRepl;
+/**
+ * Eval state management. Stores virtual `[eval].ts` file
+ */
+class EvalState {
+    constructor(path) {
+        this.path = path;
+        /** @internal */
+        this.input = '';
+        /** @internal */
+        this.output = '';
+        /** @internal */
+        this.version = 0;
+        /** @internal */
+        this.lines = 0;
+    }
+}
+exports.EvalState = EvalState;
+function createEvalAwarePartialHost(state, composeWith) {
+    function readFile(path) {
+        if (path === state.path)
+            return state.input;
+        if (composeWith === null || composeWith === void 0 ? void 0 : composeWith.readFile)
+            return composeWith.readFile(path);
+        try {
+            return (0, fs_1.readFileSync)(path, 'utf8');
+        }
+        catch (err) {
+            /* Ignore. */
+        }
+    }
+    function fileExists(path) {
+        if (path === state.path)
+            return true;
+        if (composeWith === null || composeWith === void 0 ? void 0 : composeWith.fileExists)
+            return composeWith.fileExists(path);
+        try {
+            const stats = (0, fs_1.statSync)(path);
+            return stats.isFile() || stats.isFIFO();
+        }
+        catch (err) {
+            return false;
+        }
+    }
+    return { readFile, fileExists };
+}
+exports.createEvalAwarePartialHost = createEvalAwarePartialHost;
+const sourcemapCommentRe = /\/\/# ?sourceMappingURL=\S+[\s\r\n]*$/;
+/**
+ * Evaluate the code snippet.
+ *
+ * Append it to virtual .ts file, compile, handle compiler errors, compute a diff of the JS, and eval any code that
+ * appears as "added" in the diff.
+ */
+function appendCompileAndEvalInput(options) {
+    const { service, state, wrappedErr, enableTopLevelAwait = false, context, overrideIsCompletion, } = options;
+    let { input } = options;
+    // It's confusing for `{ a: 1 }` to be interpreted as a block statement
+    // rather than an object literal. So, we first try to wrap it in
+    // parentheses, so that it will be interpreted as an expression.
+    // Based on https://github.com/nodejs/node/blob/c2e6822153bad023ab7ebd30a6117dcc049e475c/lib/repl.js#L413-L422
+    let wrappedCmd = false;
+    if (!wrappedErr && /^\s*{/.test(input) && !/;\s*$/.test(input)) {
+        input = `(${input.trim()})\n`;
+        wrappedCmd = true;
+    }
+    const lines = state.lines;
+    const isCompletion = overrideIsCompletion !== null && overrideIsCompletion !== void 0 ? overrideIsCompletion : !/\n$/.test(input);
+    const undo = appendToEvalState(state, input);
+    let output;
+    // Based on https://github.com/nodejs/node/blob/92573721c7cff104ccb82b6ed3e8aa69c4b27510/lib/repl.js#L457-L461
+    function adjustUseStrict(code) {
+        // "void 0" keeps the repl from returning "use strict" as the result
+        // value for statements and declarations that don't return a value.
+        return code.replace(/^"use strict";/, '"use strict"; void 0;');
+    }
+    try {
+        output = service.compile(state.input, state.path, -lines);
+    }
+    catch (err) {
+        undo();
+        if (wrappedCmd) {
+            if (err instanceof index_1.TSError && err.diagnosticCodes[0] === 2339) {
+                // Ensure consistent and more sane behavior between { a: 1 }['b'] and ({ a: 1 }['b'])
+                throw err;
+            }
+            // Unwrap and try again
+            return appendCompileAndEvalInput({
+                ...options,
+                wrappedErr: err,
+            });
+        }
+        if (wrappedErr)
+            throw wrappedErr;
+        throw err;
+    }
+    output = adjustUseStrict(output);
+    // Note: REPL does not respect sourcemaps!
+    // To properly do that, we'd need to prefix the code we eval -- which comes
+    // from `diffLines` -- with newlines so that it's at the proper line numbers.
+    // Then we'd need to ensure each bit of eval-ed code, if there are multiples,
+    // has the sourcemap appended to it.
+    // We might also need to integrate with our sourcemap hooks' cache; I'm not sure.
+    const outputWithoutSourcemapComment = output.replace(sourcemapCommentRe, '');
+    const oldOutputWithoutSourcemapComment = state.output.replace(sourcemapCommentRe, '');
+    // Use `diff` to check for new JavaScript to execute.
+    const changes = getDiffLines()(oldOutputWithoutSourcemapComment, outputWithoutSourcemapComment);
+    if (isCompletion) {
+        undo();
+    }
+    else {
+        state.output = output;
+        // Insert a semicolon to make sure that the code doesn't interact with the next line,
+        // for example to prevent `2\n+ 2` from producing 4.
+        // This is safe since the output will not change since we can only get here with successful inputs,
+        // and adding a semicolon to the end of a successful input won't ever change the output.
+        state.input = state.input.replace(/([^\n\s])([\n\s]*)$/, (all, lastChar, whitespace) => {
+            if (lastChar !== ';')
+                return `${lastChar};${whitespace}`;
+            return all;
+        });
+    }
+    let commands = [];
+    let containsTopLevelAwait = false;
+    // Build a list of "commands": bits of JS code in the diff that must be executed.
+    for (const change of changes) {
+        if (change.added) {
+            if (enableTopLevelAwait &&
+                service.shouldReplAwait &&
+                change.value.indexOf('await') > -1) {
+                const processTopLevelAwait = getProcessTopLevelAwait();
+                // Newline prevents comments to mess with wrapper
+                const wrappedResult = processTopLevelAwait(change.value + '\n');
+                if (wrappedResult !== null) {
+                    containsTopLevelAwait = true;
+                    commands.push({
+                        mustAwait: true,
+                        execCommand: () => runInContext(wrappedResult, state.path, context),
+                    });
+                    continue;
+                }
+            }
+            commands.push({
+                execCommand: () => runInContext(change.value, state.path, context),
+            });
+        }
+    }
+    // Execute all commands asynchronously if necessary, returning the result or a
+    // promise of the result.
+    if (containsTopLevelAwait) {
+        return {
+            containsTopLevelAwait,
+            valuePromise: (async () => {
+                let value;
+                for (const command of commands) {
+                    const r = command.execCommand();
+                    value = command.mustAwait ? await r : r;
+                }
+                return value;
+            })(),
+        };
+    }
+    else {
+        return {
+            containsTopLevelAwait: false,
+            value: commands.reduce((_, c) => c.execCommand(), undefined),
+        };
+    }
+}
+/**
+ * Low-level execution of JS code in context
+ */
+function runInContext(code, filename, context) {
+    const script = new vm_1.Script(code, { filename });
+    if (context === undefined || context === global) {
+        return script.runInThisContext();
+    }
+    else {
+        return script.runInContext(context);
+    }
+}
+/**
+ * Append to the eval instance and return an undo function.
+ */
+function appendToEvalState(state, input) {
+    const undoInput = state.input;
+    const undoVersion = state.version;
+    const undoOutput = state.output;
+    const undoLines = state.lines;
+    state.input += input;
+    state.lines += lineCount(input);
+    state.version++;
+    return function () {
+        state.input = undoInput;
+        state.output = undoOutput;
+        state.version = undoVersion;
+        state.lines = undoLines;
+    };
+}
+/**
+ * Count the number of lines.
+ */
+function lineCount(value) {
+    let count = 0;
+    for (const char of value) {
+        if (char === '\n') {
+            count++;
+        }
+    }
+    return count;
+}
+/**
+ * TS diagnostic codes which are recoverable, meaning that the user likely entered an incomplete line of code
+ * and should be prompted for the next.  For example, starting a multi-line for() loop and not finishing it.
+ * null value means code is always recoverable.  `Set` means code is only recoverable when occurring alongside at least one
+ * of the other codes.
+ */
+const RECOVERY_CODES = new Map([
+    [1003, null],
+    [1005, null],
+    [1109, null],
+    [1126, null],
+    [
+        1136,
+        new Set([1005]), // happens when typing out an object literal or block scope across multiple lines: '{ foo: 123,'
+    ],
+    [1160, null],
+    [1161, null],
+    [2355, null],
+    [2391, null],
+    [
+        7010,
+        new Set([1005]), // happens when fn signature spread across multiple lines: 'function a(\nb: any\n) {'
+    ],
+]);
+/**
+ * Diagnostic codes raised when using top-level await.
+ * These are suppressed when top-level await is enabled.
+ * When it is *not* enabled, these trigger a helpful hint about enabling top-level await.
+ */
+const topLevelAwaitDiagnosticCodes = [
+    1375,
+    1378,
+    1431,
+    1432, // Top-level 'for await' loops are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher.
+];
+/**
+ * Check if a function can recover gracefully.
+ */
+function isRecoverable(error) {
+    return error.diagnosticCodes.every((code) => {
+        const deps = RECOVERY_CODES.get(code);
+        return (deps === null ||
+            (deps && error.diagnosticCodes.some((code) => deps.has(code))));
+    });
+}
+/**
+ * @internal
+ * Set properties on `context` before eval-ing [stdin] or [eval] input.
+ */
+function setupContext(context, module, filenameAndDirname) {
+    if (filenameAndDirname) {
+        context.__dirname = '.';
+        context.__filename = `[${filenameAndDirname}]`;
+    }
+    context.module = module;
+    context.exports = module.exports;
+    context.require = __nccwpck_require__(3833).bind(module);
+}
+exports.setupContext = setupContext;
+//# sourceMappingURL=repl.js.map
+
+/***/ }),
+
+/***/ 19148:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.createResolverFunctions = void 0;
+const path_1 = __nccwpck_require__(71017);
+/**
+ * @internal
+ * In a factory because these are shared across both CompilerHost and LanguageService codepaths
+ */
+function createResolverFunctions(kwargs) {
+    const { host, ts, config, cwd, getCanonicalFileName, projectLocalResolveHelper, options, extensions, } = kwargs;
+    const moduleResolutionCache = ts.createModuleResolutionCache(cwd, getCanonicalFileName, config.options);
+    const knownInternalFilenames = new Set();
+    /** "Buckets" (module directories) whose contents should be marked "internal" */
+    const internalBuckets = new Set();
+    // Get bucket for a source filename.  Bucket is the containing `./node_modules/*/` directory
+    // For '/project/node_modules/foo/node_modules/bar/lib/index.js' bucket is '/project/node_modules/foo/node_modules/bar/'
+    // For '/project/node_modules/foo/node_modules/@scope/bar/lib/index.js' bucket is '/project/node_modules/foo/node_modules/@scope/bar/'
+    const moduleBucketRe = /.*\/node_modules\/(?:@[^\/]+\/)?[^\/]+\//;
+    function getModuleBucket(filename) {
+        const find = moduleBucketRe.exec(filename);
+        if (find)
+            return find[0];
+        return '';
+    }
+    // Mark that this file and all siblings in its bucket should be "internal"
+    function markBucketOfFilenameInternal(filename) {
+        internalBuckets.add(getModuleBucket(filename));
+    }
+    function isFileInInternalBucket(filename) {
+        return internalBuckets.has(getModuleBucket(filename));
+    }
+    function isFileKnownToBeInternal(filename) {
+        return knownInternalFilenames.has(filename);
+    }
+    /**
+     * If we need to emit JS for a file, force TS to consider it non-external
+     */
+    const fixupResolvedModule = (resolvedModule) => {
+        const { resolvedFileName } = resolvedModule;
+        if (resolvedFileName === undefined)
+            return;
+        // [MUST_UPDATE_FOR_NEW_FILE_EXTENSIONS]
+        // .ts,.mts,.cts is always switched to internal
+        // .js is switched on-demand
+        if (resolvedModule.isExternalLibraryImport &&
+            ((resolvedFileName.endsWith('.ts') &&
+                !resolvedFileName.endsWith('.d.ts')) ||
+                (resolvedFileName.endsWith('.cts') &&
+                    !resolvedFileName.endsWith('.d.cts')) ||
+                (resolvedFileName.endsWith('.mts') &&
+                    !resolvedFileName.endsWith('.d.mts')) ||
+                isFileKnownToBeInternal(resolvedFileName) ||
+                isFileInInternalBucket(resolvedFileName))) {
+            resolvedModule.isExternalLibraryImport = false;
+        }
+        if (!resolvedModule.isExternalLibraryImport) {
+            knownInternalFilenames.add(resolvedFileName);
+        }
+    };
+    /*
+     * NOTE:
+     * Older ts versions do not pass `redirectedReference` nor `options`.
+     * We must pass `redirectedReference` to newer ts versions, but cannot rely on `options`, hence the weird argument name
+     */
+    const resolveModuleNames = (moduleNames, containingFile, reusedNames, redirectedReference, optionsOnlyWithNewerTsVersions, containingSourceFile) => {
+        return moduleNames.map((moduleName, i) => {
+            var _a, _b;
+            const mode = containingSourceFile
+                ? (_b = (_a = ts).getModeForResolutionAtIndex) === null || _b === void 0 ? void 0 : _b.call(_a, containingSourceFile, i)
+                : undefined;
+            let { resolvedModule } = ts.resolveModuleName(moduleName, containingFile, config.options, host, moduleResolutionCache, redirectedReference, mode);
+            if (!resolvedModule && options.experimentalTsImportSpecifiers) {
+                const lastDotIndex = moduleName.lastIndexOf('.');
+                const ext = lastDotIndex >= 0 ? moduleName.slice(lastDotIndex) : '';
+                if (ext) {
+                    const replacements = extensions.tsResolverEquivalents.get(ext);
+                    for (const replacementExt of replacements !== null && replacements !== void 0 ? replacements : []) {
+                        ({ resolvedModule } = ts.resolveModuleName(moduleName.slice(0, -ext.length) + replacementExt, containingFile, config.options, host, moduleResolutionCache, redirectedReference, mode));
+                        if (resolvedModule)
+                            break;
+                    }
+                }
+            }
+            if (resolvedModule) {
+                fixupResolvedModule(resolvedModule);
+            }
+            return resolvedModule;
+        });
+    };
+    // language service never calls this, but TS docs recommend that we implement it
+    const getResolvedModuleWithFailedLookupLocationsFromCache = (moduleName, containingFile, resolutionMode) => {
+        const ret = ts.resolveModuleNameFromCache(moduleName, containingFile, moduleResolutionCache, resolutionMode);
+        if (ret && ret.resolvedModule) {
+            fixupResolvedModule(ret.resolvedModule);
+        }
+        return ret;
+    };
+    const resolveTypeReferenceDirectives = (typeDirectiveNames, containingFile, redirectedReference, options, containingFileMode // new impliedNodeFormat is accepted by compilerHost
+    ) => {
+        // Note: seems to be called with empty typeDirectiveNames array for all files.
+        // TODO consider using `ts.loadWithTypeDirectiveCache`
+        return typeDirectiveNames.map((typeDirectiveName) => {
+            // Copy-pasted from TS source:
+            const nameIsString = typeof typeDirectiveName === 'string';
+            const mode = nameIsString
+                ? undefined
+                : ts.getModeForFileReference(typeDirectiveName, containingFileMode);
+            const strName = nameIsString
+                ? typeDirectiveName
+                : typeDirectiveName.fileName.toLowerCase();
+            let { resolvedTypeReferenceDirective } = ts.resolveTypeReferenceDirective(strName, containingFile, config.options, host, redirectedReference, undefined, mode);
+            if (typeDirectiveName === 'node' && !resolvedTypeReferenceDirective) {
+                // Resolve @types/node relative to project first, then __dirname (copy logic from elsewhere / refactor into reusable function)
+                let typesNodePackageJsonPath;
+                try {
+                    typesNodePackageJsonPath = projectLocalResolveHelper('@types/node/package.json', true);
+                }
+                catch { } // gracefully do nothing when @types/node is not installed for any reason
+                if (typesNodePackageJsonPath) {
+                    const typeRoots = [(0, path_1.resolve)(typesNodePackageJsonPath, '../..')];
+                    ({ resolvedTypeReferenceDirective } =
+                        ts.resolveTypeReferenceDirective(typeDirectiveName, containingFile, {
+                            ...config.options,
+                            typeRoots,
+                        }, host, redirectedReference));
+                }
+            }
+            if (resolvedTypeReferenceDirective) {
+                fixupResolvedModule(resolvedTypeReferenceDirective);
+            }
+            return resolvedTypeReferenceDirective;
+        });
+    };
+    return {
+        resolveModuleNames,
+        getResolvedModuleWithFailedLookupLocationsFromCache,
+        resolveTypeReferenceDirectives,
+        isFileKnownToBeInternal,
+        markBucketOfFilenameInternal,
+    };
+}
+exports.createResolverFunctions = createResolverFunctions;
+//# sourceMappingURL=resolver-functions.js.map
+
+/***/ }),
+
+/***/ 14851:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getEmitScriptTarget = exports.getUseDefineForClassFields = exports.getPatternFromSpec = exports.createTsInternals = void 0;
+const path_1 = __nccwpck_require__(71017);
+const util_1 = __nccwpck_require__(64745);
+/** @internal */
+exports.createTsInternals = (0, util_1.cachedLookup)(createTsInternalsUncached);
+/**
+ * Given a reference to the TS compiler, return some TS internal functions that we
+ * could not or did not want to grab off the `ts` object.
+ * These have been copy-pasted from TS's source and tweaked as necessary.
+ *
+ * NOTE: This factory returns *only* functions which need a reference to the TS
+ * compiler.  Other functions do not need a reference to the TS compiler so are
+ * exported directly from this file.
+ */
+function createTsInternalsUncached(_ts) {
+    const ts = _ts;
+    /**
+     * Copied from:
+     * https://github.com/microsoft/TypeScript/blob/v4.3.2/src/compiler/commandLineParser.ts#L2821-L2846
+     */
+    function getExtendsConfigPath(extendedConfig, host, basePath, errors, createDiagnostic) {
+        extendedConfig = (0, util_1.normalizeSlashes)(extendedConfig);
+        if (isRootedDiskPath(extendedConfig) ||
+            startsWith(extendedConfig, './') ||
+            startsWith(extendedConfig, '../')) {
+            let extendedConfigPath = getNormalizedAbsolutePath(extendedConfig, basePath);
+            if (!host.fileExists(extendedConfigPath) &&
+                !endsWith(extendedConfigPath, ts.Extension.Json)) {
+                extendedConfigPath = `${extendedConfigPath}.json`;
+                if (!host.fileExists(extendedConfigPath)) {
+                    errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig));
+                    return undefined;
+                }
+            }
+            return extendedConfigPath;
+        }
+        // If the path isn't a rooted or relative path, resolve like a module
+        const tsGte5_3_0 = (0, util_1.versionGteLt)(ts.version, '5.3.0');
+        const resolved = ts.nodeModuleNameResolver(extendedConfig, combinePaths(basePath, 'tsconfig.json'), { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host, 
+        /*cache*/ undefined, 
+        /*projectRefs*/ undefined, 
+        /*conditionsOrIsConfigLookup*/ tsGte5_3_0 ? undefined : true, 
+        /*isConfigLookup*/ tsGte5_3_0 ? true : undefined);
+        if (resolved.resolvedModule) {
+            return resolved.resolvedModule.resolvedFileName;
+        }
+        errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig));
+        return undefined;
+    }
+    return { getExtendsConfigPath };
+}
+// These functions have alternative implementation to avoid copying too much from TS
+function isRootedDiskPath(path) {
+    return (0, path_1.isAbsolute)(path);
+}
+function combinePaths(path, ...paths) {
+    return (0, util_1.normalizeSlashes)((0, path_1.resolve)(path, ...paths.filter((path) => path)));
+}
+function getNormalizedAbsolutePath(fileName, currentDirectory) {
+    return (0, util_1.normalizeSlashes)(currentDirectory != null
+        ? (0, path_1.resolve)(currentDirectory, fileName)
+        : (0, path_1.resolve)(fileName));
+}
+function startsWith(str, prefix) {
+    return str.lastIndexOf(prefix, 0) === 0;
+}
+function endsWith(str, suffix) {
+    const expectedPos = str.length - suffix.length;
+    return expectedPos >= 0 && str.indexOf(suffix, expectedPos) === expectedPos;
+}
+// Reserved characters, forces escaping of any non-word (or digit), non-whitespace character.
+// It may be inefficient (we could just match (/[-[\]{}()*+?.,\\^$|#\s]/g), but this is future
+// proof.
+const reservedCharacterPattern = /[^\w\s\/]/g;
+/**
+ * @internal
+ * See also: getRegularExpressionForWildcard, which seems to do almost the same thing
+ */
+function getPatternFromSpec(spec, basePath) {
+    const pattern = spec && getSubPatternFromSpec(spec, basePath, excludeMatcher);
+    return pattern && `^(${pattern})${'($|/)'}`;
+}
+exports.getPatternFromSpec = getPatternFromSpec;
+function getSubPatternFromSpec(spec, basePath, { singleAsteriskRegexFragment, doubleAsteriskRegexFragment, replaceWildcardCharacter, }) {
+    let subpattern = '';
+    let hasWrittenComponent = false;
+    const components = getNormalizedPathComponents(spec, basePath);
+    const lastComponent = last(components);
+    // getNormalizedPathComponents includes the separator for the root component.
+    // We need to remove to create our regex correctly.
+    components[0] = removeTrailingDirectorySeparator(components[0]);
+    if (isImplicitGlob(lastComponent)) {
+        components.push('**', '*');
+    }
+    let optionalCount = 0;
+    for (let component of components) {
+        if (component === '**') {
+            subpattern += doubleAsteriskRegexFragment;
+        }
+        else {
+            if (hasWrittenComponent) {
+                subpattern += directorySeparator;
+            }
+            subpattern += component.replace(reservedCharacterPattern, replaceWildcardCharacter);
+        }
+        hasWrittenComponent = true;
+    }
+    while (optionalCount > 0) {
+        subpattern += ')?';
+        optionalCount--;
+    }
+    return subpattern;
+}
+const directoriesMatcher = {
+    singleAsteriskRegexFragment: '[^/]*',
+    /**
+     * Regex for the ** wildcard. Matches any num of subdirectories. When used for including
+     * files or directories, does not match subdirectories that start with a . character
+     */
+    doubleAsteriskRegexFragment: `(/[^/.][^/]*)*?`,
+    replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment),
+};
+const excludeMatcher = {
+    singleAsteriskRegexFragment: '[^/]*',
+    doubleAsteriskRegexFragment: '(/.+?)?',
+    replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, excludeMatcher.singleAsteriskRegexFragment),
+};
+function getNormalizedPathComponents(path, currentDirectory) {
+    return reducePathComponents(getPathComponents(path, currentDirectory));
+}
+function getPathComponents(path, currentDirectory = '') {
+    path = combinePaths(currentDirectory, path);
+    return pathComponents(path, getRootLength(path));
+}
+function reducePathComponents(components) {
+    if (!some(components))
+        return [];
+    const reduced = [components[0]];
+    for (let i = 1; i < components.length; i++) {
+        const component = components[i];
+        if (!component)
+            continue;
+        if (component === '.')
+            continue;
+        if (component === '..') {
+            if (reduced.length > 1) {
+                if (reduced[reduced.length - 1] !== '..') {
+                    reduced.pop();
+                    continue;
+                }
+            }
+            else if (reduced[0])
+                continue;
+        }
+        reduced.push(component);
+    }
+    return reduced;
+}
+function getRootLength(path) {
+    const rootLength = getEncodedRootLength(path);
+    return rootLength < 0 ? ~rootLength : rootLength;
+}
+function getEncodedRootLength(path) {
+    if (!path)
+        return 0;
+    const ch0 = path.charCodeAt(0);
+    // POSIX or UNC
+    if (ch0 === 47 /* CharacterCodes.slash */ || ch0 === 92 /* CharacterCodes.backslash */) {
+        if (path.charCodeAt(1) !== ch0)
+            return 1; // POSIX: "/" (or non-normalized "\")
+        const p1 = path.indexOf(ch0 === 47 /* CharacterCodes.slash */ ? directorySeparator : altDirectorySeparator, 2);
+        if (p1 < 0)
+            return path.length; // UNC: "//server" or "\\server"
+        return p1 + 1; // UNC: "//server/" or "\\server\"
+    }
+    // DOS
+    if (isVolumeCharacter(ch0) && path.charCodeAt(1) === 58 /* CharacterCodes.colon */) {
+        const ch2 = path.charCodeAt(2);
+        if (ch2 === 47 /* CharacterCodes.slash */ || ch2 === 92 /* CharacterCodes.backslash */)
+            return 3; // DOS: "c:/" or "c:\"
+        if (path.length === 2)
+            return 2; // DOS: "c:" (but not "c:d")
+    }
+    // URL
+    const schemeEnd = path.indexOf(urlSchemeSeparator);
+    if (schemeEnd !== -1) {
+        const authorityStart = schemeEnd + urlSchemeSeparator.length;
+        const authorityEnd = path.indexOf(directorySeparator, authorityStart);
+        if (authorityEnd !== -1) {
+            // URL: "file:///", "file://server/", "file://server/path"
+            // For local "file" URLs, include the leading DOS volume (if present).
+            // Per https://www.ietf.org/rfc/rfc1738.txt, a host of "" or "localhost" is a
+            // special case interpreted as "the machine from which the URL is being interpreted".
+            const scheme = path.slice(0, schemeEnd);
+            const authority = path.slice(authorityStart, authorityEnd);
+            if (scheme === 'file' &&
+                (authority === '' || authority === 'localhost') &&
+                isVolumeCharacter(path.charCodeAt(authorityEnd + 1))) {
+                const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path, authorityEnd + 2);
+                if (volumeSeparatorEnd !== -1) {
+                    if (path.charCodeAt(volumeSeparatorEnd) === 47 /* CharacterCodes.slash */) {
+                        // URL: "file:///c:/", "file://localhost/c:/", "file:///c%3a/", "file://localhost/c%3a/"
+                        return ~(volumeSeparatorEnd + 1);
+                    }
+                    if (volumeSeparatorEnd === path.length) {
+                        // URL: "file:///c:", "file://localhost/c:", "file:///c$3a", "file://localhost/c%3a"
+                        // but not "file:///c:d" or "file:///c%3ad"
+                        return ~volumeSeparatorEnd;
+                    }
+                }
+            }
+            return ~(authorityEnd + 1); // URL: "file://server/", "http://server/"
+        }
+        return ~path.length; // URL: "file://server", "http://server"
+    }
+    // relative
+    return 0;
+}
+function ensureTrailingDirectorySeparator(path) {
+    if (!hasTrailingDirectorySeparator(path)) {
+        return path + directorySeparator;
+    }
+    return path;
+}
+function hasTrailingDirectorySeparator(path) {
+    return (path.length > 0 && isAnyDirectorySeparator(path.charCodeAt(path.length - 1)));
+}
+function isAnyDirectorySeparator(charCode) {
+    return (charCode === 47 /* CharacterCodes.slash */ || charCode === 92 /* CharacterCodes.backslash */);
+}
+function removeTrailingDirectorySeparator(path) {
+    if (hasTrailingDirectorySeparator(path)) {
+        return path.substr(0, path.length - 1);
+    }
+    return path;
+}
+const directorySeparator = '/';
+const altDirectorySeparator = '\\';
+const urlSchemeSeparator = '://';
+function isVolumeCharacter(charCode) {
+    return ((charCode >= 97 /* CharacterCodes.a */ && charCode <= 122 /* CharacterCodes.z */) ||
+        (charCode >= 65 /* CharacterCodes.A */ && charCode <= 90 /* CharacterCodes.Z */));
+}
+function getFileUrlVolumeSeparatorEnd(url, start) {
+    const ch0 = url.charCodeAt(start);
+    if (ch0 === 58 /* CharacterCodes.colon */)
+        return start + 1;
+    if (ch0 === 37 /* CharacterCodes.percent */ &&
+        url.charCodeAt(start + 1) === 51 /* CharacterCodes._3 */) {
+        const ch2 = url.charCodeAt(start + 2);
+        if (ch2 === 97 /* CharacterCodes.a */ || ch2 === 65 /* CharacterCodes.A */)
+            return start + 3;
+    }
+    return -1;
+}
+function some(array, predicate) {
+    if (array) {
+        if (predicate) {
+            for (const v of array) {
+                if (predicate(v)) {
+                    return true;
+                }
+            }
+        }
+        else {
+            return array.length > 0;
+        }
+    }
+    return false;
+}
+function pathComponents(path, rootLength) {
+    const root = path.substring(0, rootLength);
+    const rest = path.substring(rootLength).split(directorySeparator);
+    if (rest.length && !lastOrUndefined(rest))
+        rest.pop();
+    return [root, ...rest];
+}
+function lastOrUndefined(array) {
+    return array.length === 0 ? undefined : array[array.length - 1];
+}
+function last(array) {
+    // Debug.assert(array.length !== 0);
+    return array[array.length - 1];
+}
+function replaceWildcardCharacter(match, singleAsteriskRegexFragment) {
+    return match === '*'
+        ? singleAsteriskRegexFragment
+        : match === '?'
+            ? '[^/]'
+            : '\\' + match;
+}
+/**
+ * An "includes" path "foo" is implicitly a glob "foo/** /*" (without the space) if its last component has no extension,
+ * and does not contain any glob characters itself.
+ */
+function isImplicitGlob(lastPathComponent) {
+    return !/[.*?]/.test(lastPathComponent);
+}
+const ts_ScriptTarget_ES5 = 1;
+const ts_ScriptTarget_ES2022 = 9;
+const ts_ScriptTarget_ESNext = 99;
+const ts_ModuleKind_Node16 = 100;
+const ts_ModuleKind_NodeNext = 199;
+// https://github.com/microsoft/TypeScript/blob/fc418a2e611c88cf9afa0115ff73490b2397d311/src/compiler/utilities.ts#L8761
+function getUseDefineForClassFields(compilerOptions) {
+    return compilerOptions.useDefineForClassFields === undefined
+        ? getEmitScriptTarget(compilerOptions) >= ts_ScriptTarget_ES2022
+        : compilerOptions.useDefineForClassFields;
+}
+exports.getUseDefineForClassFields = getUseDefineForClassFields;
+// https://github.com/microsoft/TypeScript/blob/fc418a2e611c88cf9afa0115ff73490b2397d311/src/compiler/utilities.ts#L8556
+function getEmitScriptTarget(compilerOptions) {
+    var _a;
+    return ((_a = compilerOptions.target) !== null && _a !== void 0 ? _a : ((compilerOptions.module === ts_ModuleKind_Node16 && ts_ScriptTarget_ES2022) ||
+        (compilerOptions.module === ts_ModuleKind_NodeNext && ts_ScriptTarget_ESNext) ||
+        ts_ScriptTarget_ES5));
+}
+exports.getEmitScriptTarget = getEmitScriptTarget;
+//# sourceMappingURL=ts-internals.js.map
+
+/***/ }),
+
+/***/ 4444:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.createTsTranspileModule = void 0;
+/** @internal */
+function createTsTranspileModule(ts, transpileOptions) {
+    const { createProgram, createSourceFile, getDefaultCompilerOptions, getImpliedNodeFormatForFile, fixupCompilerOptions, transpileOptionValueCompilerOptions, getNewLineCharacter, fileExtensionIs, normalizePath, Debug, toPath, getSetExternalModuleIndicator, getEntries, addRange, hasProperty, getEmitScriptTarget, getDirectoryPath, } = ts;
+    const compilerOptionsDiagnostics = [];
+    const options = transpileOptions.compilerOptions
+        ? fixupCompilerOptions(transpileOptions.compilerOptions, compilerOptionsDiagnostics)
+        : {};
+    // mix in default options
+    const defaultOptions = getDefaultCompilerOptions();
+    for (const key in defaultOptions) {
+        if (hasProperty(defaultOptions, key) && options[key] === undefined) {
+            options[key] = defaultOptions[key];
+        }
+    }
+    for (const option of transpileOptionValueCompilerOptions) {
+        options[option.name] = option.transpileOptionValue;
+    }
+    // transpileModule does not write anything to disk so there is no need to verify that there are no conflicts between input and output paths.
+    options.suppressOutputPathCheck = true;
+    // Filename can be non-ts file.
+    options.allowNonTsExtensions = true;
+    const newLine = getNewLineCharacter(options);
+    // Create a compilerHost object to allow the compiler to read and write files
+    const compilerHost = {
+        getSourceFile: (fileName) => fileName === normalizePath(inputFileName) ? sourceFile : undefined,
+        writeFile: (name, text) => {
+            if (fileExtensionIs(name, '.map')) {
+                Debug.assertEqual(sourceMapText, undefined, 'Unexpected multiple source map outputs, file:', name);
+                sourceMapText = text;
+            }
+            else {
+                Debug.assertEqual(outputText, undefined, 'Unexpected multiple outputs, file:', name);
+                outputText = text;
+            }
+        },
+        getDefaultLibFileName: () => 'lib.d.ts',
+        useCaseSensitiveFileNames: () => true,
+        getCanonicalFileName: (fileName) => fileName,
+        getCurrentDirectory: () => '',
+        getNewLine: () => newLine,
+        fileExists: (fileName) => fileName === inputFileName || fileName === packageJsonFileName,
+        readFile: (fileName) => fileName === packageJsonFileName ? `{"type": "${_packageJsonType}"}` : '',
+        directoryExists: () => true,
+        getDirectories: () => [],
+    };
+    let inputFileName;
+    let packageJsonFileName;
+    let _packageJsonType;
+    let sourceFile;
+    let outputText;
+    let sourceMapText;
+    return transpileModule;
+    function transpileModule(input, transpileOptions2, packageJsonType = 'commonjs') {
+        // if jsx is specified then treat file as .tsx
+        inputFileName =
+            transpileOptions2.fileName ||
+                (transpileOptions.compilerOptions && transpileOptions.compilerOptions.jsx
+                    ? 'module.tsx'
+                    : 'module.ts');
+        packageJsonFileName = getDirectoryPath(inputFileName) + '/package.json';
+        _packageJsonType = packageJsonType;
+        sourceFile = createSourceFile(inputFileName, input, {
+            languageVersion: getEmitScriptTarget(options),
+            impliedNodeFormat: getImpliedNodeFormatForFile(toPath(inputFileName, '', compilerHost.getCanonicalFileName), 
+            /*cache*/ undefined, compilerHost, options),
+            setExternalModuleIndicator: getSetExternalModuleIndicator(options),
+        });
+        if (transpileOptions2.moduleName) {
+            sourceFile.moduleName = transpileOptions2.moduleName;
+        }
+        if (transpileOptions2.renamedDependencies) {
+            sourceFile.renamedDependencies = new Map(getEntries(transpileOptions2.renamedDependencies));
+        }
+        // Output
+        outputText = undefined;
+        sourceMapText = undefined;
+        const program = createProgram([inputFileName], options, compilerHost);
+        const diagnostics = compilerOptionsDiagnostics.slice();
+        if (transpileOptions.reportDiagnostics) {
+            addRange(
+            /*to*/ diagnostics, 
+            /*from*/ program.getSyntacticDiagnostics(sourceFile));
+            addRange(/*to*/ diagnostics, /*from*/ program.getOptionsDiagnostics());
+        }
+        // Emit
+        program.emit(
+        /*targetSourceFile*/ undefined, 
+        /*writeFile*/ undefined, 
+        /*cancellationToken*/ undefined, 
+        /*emitOnlyDtsFiles*/ undefined, transpileOptions.transformers);
+        if (outputText === undefined)
+            return Debug.fail('Output generation failed');
+        return { outputText, diagnostics, sourceMapText };
+    }
+}
+exports.createTsTranspileModule = createTsTranspileModule;
+//# sourceMappingURL=ts-transpile-module.js.map
+
+/***/ }),
+
+/***/ 91533:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getDefaultTsconfigJsonForNodeVersion = void 0;
+const nodeMajor = parseInt(process.versions.node.split('.')[0], 10);
+/**
+ * return parsed JSON of the bundled @tsconfig/bases config appropriate for the
+ * running version of nodejs
+ * @internal
+ */
+function getDefaultTsconfigJsonForNodeVersion(ts) {
+    const tsInternal = ts;
+    if (nodeMajor >= 16) {
+        const config = __nccwpck_require__(39777);
+        if (configCompatible(config))
+            return config;
+    }
+    if (nodeMajor >= 14) {
+        const config = __nccwpck_require__(83754);
+        if (configCompatible(config))
+            return config;
+    }
+    if (nodeMajor >= 12) {
+        const config = __nccwpck_require__(56049);
+        if (configCompatible(config))
+            return config;
+    }
+    return __nccwpck_require__(78250);
+    // Verify that tsconfig target and lib options are compatible with TypeScript compiler
+    function configCompatible(config) {
+        return (typeof ts.ScriptTarget[config.compilerOptions.target.toUpperCase()] === 'number' &&
+            tsInternal.libs &&
+            config.compilerOptions.lib.every((lib) => tsInternal.libs.includes(lib)));
+    }
+}
+exports.getDefaultTsconfigJsonForNodeVersion = getDefaultTsconfigJsonForNodeVersion;
+//# sourceMappingURL=tsconfigs.js.map
+
+/***/ }),
+
+/***/ 64745:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+var _a;
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.versionGteLt = exports.once = exports.getBasePathForProjectLocalDependencyResolution = exports.createProjectLocalResolveHelper = exports.attemptRequireWithV8CompileCache = exports.cachedLookup = exports.hasOwnProperty = exports.normalizeSlashes = exports.parse = exports.split = exports.assign = exports.yn = exports.createRequire = void 0;
+const module_1 = __nccwpck_require__(98188);
+const ynModule = __nccwpck_require__(79647);
+const path_1 = __nccwpck_require__(71017);
+/** @internal */
+exports.createRequire = (_a = module_1.createRequire !== null && module_1.createRequire !== void 0 ? module_1.createRequire : module_1.createRequireFromPath) !== null && _a !== void 0 ? _a : __nccwpck_require__(45830);
+/**
+ * Wrapper around yn module that returns `undefined` instead of `null`.
+ * This is implemented by yn v4, but we're staying on v3 to avoid v4's node 10 requirement.
+ * @internal
+ */
+function yn(value) {
+    var _a;
+    return (_a = ynModule(value)) !== null && _a !== void 0 ? _a : undefined;
+}
+exports.yn = yn;
+/**
+ * Like `Object.assign`, but ignores `undefined` properties.
+ *
+ * @internal
+ */
+function assign(initialValue, ...sources) {
+    for (const source of sources) {
+        for (const key of Object.keys(source)) {
+            const value = source[key];
+            if (value !== undefined)
+                initialValue[key] = value;
+        }
+    }
+    return initialValue;
+}
+exports.assign = assign;
+/**
+ * Split a string array of values
+ * and remove empty strings from the resulting array.
+ * @internal
+ */
+function split(value) {
+    return typeof value === 'string'
+        ? value.split(/ *, */g).filter((v) => v !== '')
+        : undefined;
+}
+exports.split = split;
+/**
+ * Parse a string as JSON.
+ * @internal
+ */
+function parse(value) {
+    return typeof value === 'string' ? JSON.parse(value) : undefined;
+}
+exports.parse = parse;
+const directorySeparator = '/';
+const backslashRegExp = /\\/g;
+/**
+ * Replace backslashes with forward slashes.
+ * @internal
+ */
+function normalizeSlashes(value) {
+    return value.replace(backslashRegExp, directorySeparator);
+}
+exports.normalizeSlashes = normalizeSlashes;
+/**
+ * Safe `hasOwnProperty`
+ * @internal
+ */
+function hasOwnProperty(object, property) {
+    return Object.prototype.hasOwnProperty.call(object, property);
+}
+exports.hasOwnProperty = hasOwnProperty;
+/**
+ * Cached fs operation wrapper.
+ */
+function cachedLookup(fn) {
+    const cache = new Map();
+    return (arg) => {
+        if (!cache.has(arg)) {
+            const v = fn(arg);
+            cache.set(arg, v);
+            return v;
+        }
+        return cache.get(arg);
+    };
+}
+exports.cachedLookup = cachedLookup;
+/**
+ * @internal
+ * Require something with v8-compile-cache, which should make subsequent requires faster.
+ * Do lots of error-handling so that, worst case, we require without the cache, and users are not blocked.
+ */
+function attemptRequireWithV8CompileCache(requireFn, specifier) {
+    try {
+        const v8CC = (__nccwpck_require__(70416).install)();
+        try {
+            return requireFn(specifier);
+        }
+        finally {
+            v8CC === null || v8CC === void 0 ? void 0 : v8CC.uninstall();
+        }
+    }
+    catch (e) {
+        return requireFn(specifier);
+    }
+}
+exports.attemptRequireWithV8CompileCache = attemptRequireWithV8CompileCache;
+/**
+ * Helper to discover dependencies relative to a user's project, optionally
+ * falling back to relative to ts-node.  This supports global installations of
+ * ts-node, for example where someone does `#!/usr/bin/env -S ts-node --swc` and
+ * we need to fallback to a global install of @swc/core
+ * @internal
+ */
+function createProjectLocalResolveHelper(localDirectory) {
+    return function projectLocalResolveHelper(specifier, fallbackToTsNodeRelative) {
+        return require.resolve(specifier, {
+            paths: fallbackToTsNodeRelative
+                ? [localDirectory, __dirname]
+                : [localDirectory],
+        });
+    };
+}
+exports.createProjectLocalResolveHelper = createProjectLocalResolveHelper;
+/**
+ * Used as a reminder of all the factors we must consider when finding project-local dependencies and when a config file
+ * on disk may or may not exist.
+ * @internal
+ */
+function getBasePathForProjectLocalDependencyResolution(configFilePath, projectSearchDirOption, projectOption, cwdOption) {
+    var _a;
+    if (configFilePath != null)
+        return (0, path_1.dirname)(configFilePath);
+    return (_a = projectSearchDirOption !== null && projectSearchDirOption !== void 0 ? projectSearchDirOption : projectOption) !== null && _a !== void 0 ? _a : cwdOption;
+    // TODO technically breaks if projectOption is path to a file, not a directory,
+    // and we attempt to resolve relative specifiers.  By the time we resolve relative specifiers,
+    // should have configFilePath, so not reach this codepath.
+}
+exports.getBasePathForProjectLocalDependencyResolution = getBasePathForProjectLocalDependencyResolution;
+/** @internal */
+function once(fn) {
+    let value;
+    let ran = false;
+    function onceFn(...args) {
+        if (ran)
+            return value;
+        value = fn(...args);
+        ran = true;
+        return value;
+    }
+    return onceFn;
+}
+exports.once = once;
+/** @internal */
+function versionGteLt(version, gteRequirement, ltRequirement) {
+    const [major, minor, patch, extra] = parse(version);
+    const [gteMajor, gteMinor, gtePatch] = parse(gteRequirement);
+    const isGte = major > gteMajor ||
+        (major === gteMajor &&
+            (minor > gteMinor || (minor === gteMinor && patch >= gtePatch)));
+    let isLt = true;
+    if (ltRequirement) {
+        const [ltMajor, ltMinor, ltPatch] = parse(ltRequirement);
+        isLt =
+            major < ltMajor ||
+                (major === ltMajor &&
+                    (minor < ltMinor || (minor === ltMinor && patch < ltPatch)));
+    }
+    return isGte && isLt;
+    function parse(requirement) {
+        return requirement.split(/[\.-]/).map((s) => parseInt(s, 10));
+    }
+}
+exports.versionGteLt = versionGteLt;
+//# sourceMappingURL=util.js.map
+
+/***/ }),
+
+/***/ 12077:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.configLoader = exports.loadConfig = void 0;
+var TsConfigLoader2 = __nccwpck_require__(5214);
+var path = __nccwpck_require__(71017);
+function loadConfig(cwd) {
+    if (cwd === void 0) { cwd = process.cwd(); }
+    return configLoader({ cwd: cwd });
+}
+exports.loadConfig = loadConfig;
+function configLoader(_a) {
+    var cwd = _a.cwd, explicitParams = _a.explicitParams, _b = _a.tsConfigLoader, tsConfigLoader = _b === void 0 ? TsConfigLoader2.tsConfigLoader : _b;
+    if (explicitParams) {
+        var absoluteBaseUrl = path.isAbsolute(explicitParams.baseUrl)
+            ? explicitParams.baseUrl
+            : path.join(cwd, explicitParams.baseUrl);
+        return {
+            resultType: "success",
+            configFileAbsolutePath: "",
+            baseUrl: explicitParams.baseUrl,
+            absoluteBaseUrl: absoluteBaseUrl,
+            paths: explicitParams.paths,
+            mainFields: explicitParams.mainFields,
+            addMatchAll: explicitParams.addMatchAll,
+        };
+    }
+    // Load tsconfig and create path matching function
+    var loadResult = tsConfigLoader({
+        cwd: cwd,
+        getEnv: function (key) { return process.env[key]; },
+    });
+    if (!loadResult.tsConfigPath) {
+        return {
+            resultType: "failed",
+            message: "Couldn't find tsconfig.json",
+        };
+    }
+    return {
+        resultType: "success",
+        configFileAbsolutePath: loadResult.tsConfigPath,
+        baseUrl: loadResult.baseUrl,
+        absoluteBaseUrl: path.resolve(path.dirname(loadResult.tsConfigPath), loadResult.baseUrl || ""),
+        paths: loadResult.paths || {},
+        addMatchAll: loadResult.baseUrl !== undefined,
+    };
+}
+exports.configLoader = configLoader;
+//# sourceMappingURL=config-loader.js.map
+
+/***/ }),
+
+/***/ 55775:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.removeExtension = exports.fileExistsAsync = exports.readJsonFromDiskAsync = exports.readJsonFromDiskSync = exports.fileExistsSync = void 0;
+var fs = __nccwpck_require__(57147);
+function fileExistsSync(path) {
+    // If the file doesn't exist, avoid throwing an exception over the native barrier for every miss
+    if (!fs.existsSync(path)) {
+        return false;
+    }
+    try {
+        var stats = fs.statSync(path);
+        return stats.isFile();
+    }
+    catch (err) {
+        // If error, assume file did not exist
+        return false;
+    }
+}
+exports.fileExistsSync = fileExistsSync;
+/**
+ * Reads package.json from disk
+ *
+ * @param file Path to package.json
+ */
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
+function readJsonFromDiskSync(packageJsonPath) {
+    if (!fs.existsSync(packageJsonPath)) {
+        return undefined;
+    }
+    // eslint-disable-next-line @typescript-eslint/no-require-imports
+    return require(packageJsonPath);
+}
+exports.readJsonFromDiskSync = readJsonFromDiskSync;
+function readJsonFromDiskAsync(path, 
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
+callback) {
+    fs.readFile(path, "utf8", function (err, result) {
+        // If error, assume file did not exist
+        if (err || !result) {
+            return callback();
+        }
+        var json = JSON.parse(result);
+        return callback(undefined, json);
+    });
+}
+exports.readJsonFromDiskAsync = readJsonFromDiskAsync;
+function fileExistsAsync(path2, callback2) {
+    fs.stat(path2, function (err, stats) {
+        if (err) {
+            // If error assume file does not exist
+            return callback2(undefined, false);
+        }
+        callback2(undefined, stats ? stats.isFile() : false);
+    });
+}
+exports.fileExistsAsync = fileExistsAsync;
+function removeExtension(path) {
+    return path.substring(0, path.lastIndexOf(".")) || path;
+}
+exports.removeExtension = removeExtension;
+//# sourceMappingURL=filesystem.js.map
+
+/***/ }),
+
+/***/ 56143:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.loadConfig = exports.register = exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = exports.matchFromAbsolutePaths = exports.createMatchPath = void 0;
+// register is used from register.js in root dir
+var match_path_sync_1 = __nccwpck_require__(21810);
+Object.defineProperty(exports, "createMatchPath", ({ enumerable: true, get: function () { return match_path_sync_1.createMatchPath; } }));
+Object.defineProperty(exports, "matchFromAbsolutePaths", ({ enumerable: true, get: function () { return match_path_sync_1.matchFromAbsolutePaths; } }));
+var match_path_async_1 = __nccwpck_require__(74479);
+Object.defineProperty(exports, "createMatchPathAsync", ({ enumerable: true, get: function () { return match_path_async_1.createMatchPathAsync; } }));
+Object.defineProperty(exports, "matchFromAbsolutePathsAsync", ({ enumerable: true, get: function () { return match_path_async_1.matchFromAbsolutePathsAsync; } }));
+var register_1 = __nccwpck_require__(25174);
+Object.defineProperty(exports, "register", ({ enumerable: true, get: function () { return register_1.register; } }));
+var config_loader_1 = __nccwpck_require__(12077);
+Object.defineProperty(exports, "loadConfig", ({ enumerable: true, get: function () { return config_loader_1.loadConfig; } }));
+//# sourceMappingURL=index.js.map
+
+/***/ }),
+
+/***/ 25121:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getAbsoluteMappingEntries = void 0;
+var path = __nccwpck_require__(71017);
+/**
+ * Converts an absolute baseUrl and paths to an array of absolute mapping entries.
+ * The array is sorted by longest prefix.
+ * Having an array with entries allows us to keep a sorting order rather than
+ * sort by keys each time we use the mappings.
+ *
+ * @param absoluteBaseUrl
+ * @param paths
+ * @param addMatchAll
+ */
+function getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll) {
+    // Resolve all paths to absolute form once here, and sort them by
+    // longest prefix once here, this saves time on each request later.
+    // We need to put them in an array to preserve the sorting order.
+    var sortedKeys = sortByLongestPrefix(Object.keys(paths));
+    var absolutePaths = [];
+    for (var _i = 0, sortedKeys_1 = sortedKeys; _i < sortedKeys_1.length; _i++) {
+        var key = sortedKeys_1[_i];
+        absolutePaths.push({
+            pattern: key,
+            paths: paths[key].map(function (pathToResolve) {
+                return path.resolve(absoluteBaseUrl, pathToResolve);
+            }),
+        });
+    }
+    // If there is no match-all path specified in the paths section of tsconfig, then try to match
+    // all paths relative to baseUrl, this is how typescript works.
+    if (!paths["*"] && addMatchAll) {
+        absolutePaths.push({
+            pattern: "*",
+            paths: ["".concat(absoluteBaseUrl.replace(/\/$/, ""), "/*")],
+        });
+    }
+    return absolutePaths;
+}
+exports.getAbsoluteMappingEntries = getAbsoluteMappingEntries;
+/**
+ * Sort path patterns.
+ * If a module name can be matched with multiple patterns then pattern with the longest prefix will be picked.
+ */
+function sortByLongestPrefix(arr) {
+    return arr
+        .concat()
+        .sort(function (a, b) { return getPrefixLength(b) - getPrefixLength(a); });
+}
+function getPrefixLength(pattern) {
+    var prefixLength = pattern.indexOf("*");
+    return pattern.substr(0, prefixLength).length;
+}
+//# sourceMappingURL=mapping-entry.js.map
+
+/***/ }),
+
+/***/ 74479:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = void 0;
+var path = __nccwpck_require__(71017);
+var TryPath = __nccwpck_require__(44231);
+var MappingEntry = __nccwpck_require__(25121);
+var Filesystem = __nccwpck_require__(55775);
+/**
+ * See the sync version for docs.
+ */
+function createMatchPathAsync(absoluteBaseUrl, paths, mainFields, addMatchAll) {
+    if (mainFields === void 0) { mainFields = ["main"]; }
+    if (addMatchAll === void 0) { addMatchAll = true; }
+    var absolutePaths = MappingEntry.getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll);
+    return function (requestedModule, readJson, fileExists, extensions, callback) {
+        return matchFromAbsolutePathsAsync(absolutePaths, requestedModule, readJson, fileExists, extensions, callback, mainFields);
+    };
+}
+exports.createMatchPathAsync = createMatchPathAsync;
+/**
+ * See the sync version for docs.
+ */
+function matchFromAbsolutePathsAsync(absolutePathMappings, requestedModule, readJson, fileExists, extensions, callback, mainFields) {
+    if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskAsync; }
+    if (fileExists === void 0) { fileExists = Filesystem.fileExistsAsync; }
+    if (extensions === void 0) { extensions = Object.keys(require.extensions); }
+    if (mainFields === void 0) { mainFields = ["main"]; }
+    var tryPaths = TryPath.getPathsToTry(extensions, absolutePathMappings, requestedModule);
+    if (!tryPaths) {
+        return callback();
+    }
+    findFirstExistingPath(tryPaths, readJson, fileExists, callback, 0, mainFields);
+}
+exports.matchFromAbsolutePathsAsync = matchFromAbsolutePathsAsync;
+function findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExistsAsync, doneCallback, index) {
+    if (index === void 0) { index = 0; }
+    if (index >= mainFields.length) {
+        return doneCallback(undefined, undefined);
+    }
+    var tryNext = function () {
+        return findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExistsAsync, doneCallback, index + 1);
+    };
+    var mainFieldSelector = mainFields[index];
+    var mainFieldMapping = typeof mainFieldSelector === "string"
+        ? packageJson[mainFieldSelector]
+        : mainFieldSelector.reduce(function (obj, key) { return obj[key]; }, packageJson);
+    if (typeof mainFieldMapping !== "string") {
+        // Skip mappings that are not pointers to replacement files
+        return tryNext();
+    }
+    var mappedFilePath = path.join(path.dirname(packageJsonPath), mainFieldMapping);
+    fileExistsAsync(mappedFilePath, function (err, exists) {
+        if (err) {
+            return doneCallback(err);
+        }
+        if (exists) {
+            return doneCallback(undefined, mappedFilePath);
+        }
+        return tryNext();
+    });
+}
+// Recursive loop to probe for physical files
+function findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index, mainFields) {
+    if (index === void 0) { index = 0; }
+    if (mainFields === void 0) { mainFields = ["main"]; }
+    var tryPath = tryPaths[index];
+    if (tryPath.type === "file" ||
+        tryPath.type === "extension" ||
+        tryPath.type === "index") {
+        fileExists(tryPath.path, function (err, exists) {
+            if (err) {
+                return doneCallback(err);
+            }
+            if (exists) {
+                return doneCallback(undefined, TryPath.getStrippedPath(tryPath));
+            }
+            if (index === tryPaths.length - 1) {
+                return doneCallback();
+            }
+            // Continue with the next path
+            return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields);
+        });
+    }
+    else if (tryPath.type === "package") {
+        readJson(tryPath.path, function (err, packageJson) {
+            if (err) {
+                return doneCallback(err);
+            }
+            if (packageJson) {
+                return findFirstExistingMainFieldMappedFile(packageJson, mainFields, tryPath.path, fileExists, function (mainFieldErr, mainFieldMappedFile) {
+                    if (mainFieldErr) {
+                        return doneCallback(mainFieldErr);
+                    }
+                    if (mainFieldMappedFile) {
+                        return doneCallback(undefined, mainFieldMappedFile);
+                    }
+                    // No field in package json was a valid option. Continue with the next path.
+                    return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields);
+                });
+            }
+            // This is async code, we need to return unconditionally, otherwise the code still falls
+            // through and keeps recursing. While this might work in general, libraries that use neo-async
+            // like Webpack will actually not allow you to call the same callback twice.
+            //
+            // An example of where this caused issues:
+            // https://github.com/dividab/tsconfig-paths-webpack-plugin/issues/11
+            //
+            // Continue with the next path
+            return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields);
+        });
+    }
+    else {
+        TryPath.exhaustiveTypeException(tryPath.type);
+    }
+}
+//# sourceMappingURL=match-path-async.js.map
+
+/***/ }),
+
+/***/ 21810:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.matchFromAbsolutePaths = exports.createMatchPath = void 0;
+var path = __nccwpck_require__(71017);
+var Filesystem = __nccwpck_require__(55775);
+var MappingEntry = __nccwpck_require__(25121);
+var TryPath = __nccwpck_require__(44231);
+/**
+ * Creates a function that can resolve paths according to tsconfig paths property.
+ *
+ * @param absoluteBaseUrl Absolute version of baseUrl as specified in tsconfig.
+ * @param paths The paths as specified in tsconfig.
+ * @param mainFields A list of package.json field names to try when resolving module files. Select a nested field using an array of field names.
+ * @param addMatchAll Add a match-all "*" rule if none is present
+ * @returns a function that can resolve paths.
+ */
+function createMatchPath(absoluteBaseUrl, paths, mainFields, addMatchAll) {
+    if (mainFields === void 0) { mainFields = ["main"]; }
+    if (addMatchAll === void 0) { addMatchAll = true; }
+    var absolutePaths = MappingEntry.getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll);
+    return function (requestedModule, readJson, fileExists, extensions) {
+        return matchFromAbsolutePaths(absolutePaths, requestedModule, readJson, fileExists, extensions, mainFields);
+    };
+}
+exports.createMatchPath = createMatchPath;
+/**
+ * Finds a path from tsconfig that matches a module load request.
+ *
+ * @param absolutePathMappings The paths to try as specified in tsconfig but resolved to absolute form.
+ * @param requestedModule The required module name.
+ * @param readJson Function that can read json from a path (useful for testing).
+ * @param fileExists Function that checks for existence of a file at a path (useful for testing).
+ * @param extensions File extensions to probe for (useful for testing).
+ * @param mainFields A list of package.json field names to try when resolving module files. Select a nested field using an array of field names.
+ * @returns the found path, or undefined if no path was found.
+ */
+function matchFromAbsolutePaths(absolutePathMappings, requestedModule, readJson, fileExists, extensions, mainFields) {
+    if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskSync; }
+    if (fileExists === void 0) { fileExists = Filesystem.fileExistsSync; }
+    if (extensions === void 0) { extensions = Object.keys(require.extensions); }
+    if (mainFields === void 0) { mainFields = ["main"]; }
+    var tryPaths = TryPath.getPathsToTry(extensions, absolutePathMappings, requestedModule);
+    if (!tryPaths) {
+        return undefined;
+    }
+    return findFirstExistingPath(tryPaths, readJson, fileExists, mainFields);
+}
+exports.matchFromAbsolutePaths = matchFromAbsolutePaths;
+function findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExists) {
+    for (var index = 0; index < mainFields.length; index++) {
+        var mainFieldSelector = mainFields[index];
+        var candidateMapping = typeof mainFieldSelector === "string"
+            ? packageJson[mainFieldSelector]
+            : mainFieldSelector.reduce(function (obj, key) { return obj[key]; }, packageJson);
+        if (candidateMapping && typeof candidateMapping === "string") {
+            var candidateFilePath = path.join(path.dirname(packageJsonPath), candidateMapping);
+            if (fileExists(candidateFilePath)) {
+                return candidateFilePath;
+            }
+        }
+    }
+    return undefined;
+}
+function findFirstExistingPath(tryPaths, readJson, fileExists, mainFields) {
+    if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskSync; }
+    if (mainFields === void 0) { mainFields = ["main"]; }
+    for (var _i = 0, tryPaths_1 = tryPaths; _i < tryPaths_1.length; _i++) {
+        var tryPath = tryPaths_1[_i];
+        if (tryPath.type === "file" ||
+            tryPath.type === "extension" ||
+            tryPath.type === "index") {
+            if (fileExists(tryPath.path)) {
+                return TryPath.getStrippedPath(tryPath);
+            }
+        }
+        else if (tryPath.type === "package") {
+            var packageJson = readJson(tryPath.path);
+            if (packageJson) {
+                var mainFieldMappedFile = findFirstExistingMainFieldMappedFile(packageJson, mainFields, tryPath.path, fileExists);
+                if (mainFieldMappedFile) {
+                    return mainFieldMappedFile;
+                }
+            }
+        }
+        else {
+            TryPath.exhaustiveTypeException(tryPath.type);
+        }
+    }
+    return undefined;
+}
+//# sourceMappingURL=match-path-sync.js.map
+
+/***/ }),
+
+/***/ 25174:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
+    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+        if (ar || !(i in from)) {
+            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+            ar[i] = from[i];
+        }
+    }
+    return to.concat(ar || Array.prototype.slice.call(from));
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.register = void 0;
+var match_path_sync_1 = __nccwpck_require__(21810);
+var config_loader_1 = __nccwpck_require__(12077);
+var noOp = function () { return void 0; };
+function getCoreModules(builtinModules) {
+    builtinModules = builtinModules || [
+        "assert",
+        "buffer",
+        "child_process",
+        "cluster",
+        "crypto",
+        "dgram",
+        "dns",
+        "domain",
+        "events",
+        "fs",
+        "http",
+        "https",
+        "net",
+        "os",
+        "path",
+        "punycode",
+        "querystring",
+        "readline",
+        "stream",
+        "string_decoder",
+        "tls",
+        "tty",
+        "url",
+        "util",
+        "v8",
+        "vm",
+        "zlib",
+    ];
+    var coreModules = {};
+    for (var _i = 0, builtinModules_1 = builtinModules; _i < builtinModules_1.length; _i++) {
+        var module_1 = builtinModules_1[_i];
+        coreModules[module_1] = true;
+    }
+    return coreModules;
+}
+/**
+ * Installs a custom module load function that can adhere to paths in tsconfig.
+ * Returns a function to undo paths registration.
+ */
+function register(params) {
+    var cwd;
+    var explicitParams;
+    if (params) {
+        cwd = params.cwd;
+        if (params.baseUrl || params.paths) {
+            explicitParams = params;
+        }
+    }
+    else {
+        // eslint-disable-next-line
+        var minimist = __nccwpck_require__(35871);
+        var argv = minimist(process.argv.slice(2), {
+            // eslint-disable-next-line id-denylist
+            string: ["project"],
+            alias: {
+                project: ["P"],
+            },
+        });
+        cwd = argv.project;
+    }
+    var configLoaderResult = (0, config_loader_1.configLoader)({
+        cwd: cwd !== null && cwd !== void 0 ? cwd : process.cwd(),
+        explicitParams: explicitParams,
+    });
+    if (configLoaderResult.resultType === "failed") {
+        console.warn("".concat(configLoaderResult.message, ". tsconfig-paths will be skipped"));
+        return noOp;
+    }
+    var matchPath = (0, match_path_sync_1.createMatchPath)(configLoaderResult.absoluteBaseUrl, configLoaderResult.paths, configLoaderResult.mainFields, configLoaderResult.addMatchAll);
+    // Patch node's module loading
+    // eslint-disable-next-line @typescript-eslint/no-require-imports,@typescript-eslint/no-var-requires
+    var Module = __nccwpck_require__(98188);
+    // eslint-disable-next-line no-underscore-dangle
+    var originalResolveFilename = Module._resolveFilename;
+    var coreModules = getCoreModules(Module.builtinModules);
+    // eslint-disable-next-line @typescript-eslint/no-explicit-any,no-underscore-dangle
+    Module._resolveFilename = function (request, _parent) {
+        var isCoreModule = coreModules.hasOwnProperty(request);
+        if (!isCoreModule) {
+            var found = matchPath(request);
+            if (found) {
+                var modifiedArguments = __spreadArray([found], [].slice.call(arguments, 1), true); // Passes all arguments. Even those that is not specified above.
+                return originalResolveFilename.apply(this, modifiedArguments);
+            }
+        }
+        return originalResolveFilename.apply(this, arguments);
+    };
+    return function () {
+        // Return node's module loading to original state.
+        // eslint-disable-next-line no-underscore-dangle
+        Module._resolveFilename = originalResolveFilename;
+    };
+}
+exports.register = register;
+//# sourceMappingURL=register.js.map
+
+/***/ }),
+
+/***/ 44231:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.exhaustiveTypeException = exports.getStrippedPath = exports.getPathsToTry = void 0;
+var path = __nccwpck_require__(71017);
+var path_1 = __nccwpck_require__(71017);
+var filesystem_1 = __nccwpck_require__(55775);
+/**
+ * Builds a list of all physical paths to try by:
+ * 1. Check for file named exactly as request.
+ * 2. Check for files named as request ending in any of the extensions.
+ * 3. Check for file specified in package.json's main property.
+ * 4. Check for files named as request ending in "index" with any of the extensions.
+ */
+function getPathsToTry(extensions, absolutePathMappings, requestedModule) {
+    if (!absolutePathMappings || !requestedModule || requestedModule[0] === ".") {
+        return undefined;
+    }
+    var pathsToTry = [];
+    for (var _i = 0, absolutePathMappings_1 = absolutePathMappings; _i < absolutePathMappings_1.length; _i++) {
+        var entry = absolutePathMappings_1[_i];
+        var starMatch = entry.pattern === requestedModule
+            ? ""
+            : matchStar(entry.pattern, requestedModule);
+        if (starMatch !== undefined) {
+            var _loop_1 = function (physicalPathPattern) {
+                var physicalPath = physicalPathPattern.replace("*", starMatch);
+                pathsToTry.push({ type: "file", path: physicalPath });
+                pathsToTry.push.apply(pathsToTry, extensions.map(function (e) { return ({ type: "extension", path: physicalPath + e }); }));
+                pathsToTry.push({
+                    type: "package",
+                    path: path.join(physicalPath, "/package.json"),
+                });
+                var indexPath = path.join(physicalPath, "/index");
+                pathsToTry.push.apply(pathsToTry, extensions.map(function (e) { return ({ type: "index", path: indexPath + e }); }));
+            };
+            for (var _a = 0, _b = entry.paths; _a < _b.length; _a++) {
+                var physicalPathPattern = _b[_a];
+                _loop_1(physicalPathPattern);
+            }
+        }
+    }
+    return pathsToTry.length === 0 ? undefined : pathsToTry;
+}
+exports.getPathsToTry = getPathsToTry;
+// Not sure why we don't just return the full found path?
+function getStrippedPath(tryPath) {
+    return tryPath.type === "index"
+        ? (0, path_1.dirname)(tryPath.path)
+        : tryPath.type === "file"
+            ? tryPath.path
+            : tryPath.type === "extension"
+                ? (0, filesystem_1.removeExtension)(tryPath.path)
+                : tryPath.type === "package"
+                    ? tryPath.path
+                    : exhaustiveTypeException(tryPath.type);
+}
+exports.getStrippedPath = getStrippedPath;
+function exhaustiveTypeException(check) {
+    throw new Error("Unknown type ".concat(check));
+}
+exports.exhaustiveTypeException = exhaustiveTypeException;
+/**
+ * Matches pattern with a single star against search.
+ * Star must match at least one character to be considered a match.
+ *
+ * @param patttern for example "foo*"
+ * @param search for example "fooawesomebar"
+ * @returns the part of search that * matches, or undefined if no match.
+ */
+function matchStar(pattern, search) {
+    if (search.length < pattern.length) {
+        return undefined;
+    }
+    if (pattern === "*") {
+        return search;
+    }
+    var star = pattern.indexOf("*");
+    if (star === -1) {
+        return undefined;
+    }
+    var part1 = pattern.substring(0, star);
+    var part2 = pattern.substring(star + 1);
+    if (search.substr(0, star) !== part1) {
+        return undefined;
+    }
+    if (search.substr(search.length - part2.length) !== part2) {
+        return undefined;
+    }
+    return search.substr(star, search.length - part2.length);
+}
+//# sourceMappingURL=try-path.js.map
+
+/***/ }),
+
+/***/ 5214:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __assign = (this && this.__assign) || function () {
+    __assign = Object.assign || function(t) {
+        for (var s, i = 1, n = arguments.length; i < n; i++) {
+            s = arguments[i];
+            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+                t[p] = s[p];
+        }
+        return t;
+    };
+    return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.loadTsconfig = exports.walkForTsConfig = exports.tsConfigLoader = void 0;
+var path = __nccwpck_require__(71017);
+var fs = __nccwpck_require__(57147);
+// eslint-disable-next-line @typescript-eslint/no-require-imports
+var JSON5 = __nccwpck_require__(86904);
+// eslint-disable-next-line @typescript-eslint/no-require-imports
+var StripBom = __nccwpck_require__(55831);
+function tsConfigLoader(_a) {
+    var getEnv = _a.getEnv, cwd = _a.cwd, _b = _a.loadSync, loadSync = _b === void 0 ? loadSyncDefault : _b;
+    var TS_NODE_PROJECT = getEnv("TS_NODE_PROJECT");
+    var TS_NODE_BASEURL = getEnv("TS_NODE_BASEURL");
+    // tsconfig.loadSync handles if TS_NODE_PROJECT is a file or directory
+    // and also overrides baseURL if TS_NODE_BASEURL is available.
+    var loadResult = loadSync(cwd, TS_NODE_PROJECT, TS_NODE_BASEURL);
+    return loadResult;
+}
+exports.tsConfigLoader = tsConfigLoader;
+function loadSyncDefault(cwd, filename, baseUrl) {
+    // Tsconfig.loadSync uses path.resolve. This is why we can use an absolute path as filename
+    var configPath = resolveConfigPath(cwd, filename);
+    if (!configPath) {
+        return {
+            tsConfigPath: undefined,
+            baseUrl: undefined,
+            paths: undefined,
+        };
+    }
+    var config = loadTsconfig(configPath);
+    return {
+        tsConfigPath: configPath,
+        baseUrl: baseUrl ||
+            (config && config.compilerOptions && config.compilerOptions.baseUrl),
+        paths: config && config.compilerOptions && config.compilerOptions.paths,
+    };
+}
+function resolveConfigPath(cwd, filename) {
+    if (filename) {
+        var absolutePath = fs.lstatSync(filename).isDirectory()
+            ? path.resolve(filename, "./tsconfig.json")
+            : path.resolve(cwd, filename);
+        return absolutePath;
+    }
+    if (fs.statSync(cwd).isFile()) {
+        return path.resolve(cwd);
+    }
+    var configAbsolutePath = walkForTsConfig(cwd);
+    return configAbsolutePath ? path.resolve(configAbsolutePath) : undefined;
+}
+function walkForTsConfig(directory, readdirSync) {
+    if (readdirSync === void 0) { readdirSync = fs.readdirSync; }
+    var files = readdirSync(directory);
+    var filesToCheck = ["tsconfig.json", "jsconfig.json"];
+    for (var _i = 0, filesToCheck_1 = filesToCheck; _i < filesToCheck_1.length; _i++) {
+        var fileToCheck = filesToCheck_1[_i];
+        if (files.indexOf(fileToCheck) !== -1) {
+            return path.join(directory, fileToCheck);
+        }
+    }
+    var parentDirectory = path.dirname(directory);
+    // If we reached the top
+    if (directory === parentDirectory) {
+        return undefined;
+    }
+    return walkForTsConfig(parentDirectory, readdirSync);
+}
+exports.walkForTsConfig = walkForTsConfig;
+function loadTsconfig(configFilePath, 
+// eslint-disable-next-line no-shadow
+existsSync, readFileSync) {
+    if (existsSync === void 0) { existsSync = fs.existsSync; }
+    if (readFileSync === void 0) { readFileSync = function (filename) {
+        return fs.readFileSync(filename, "utf8");
+    }; }
+    if (!existsSync(configFilePath)) {
+        return undefined;
+    }
+    var configString = readFileSync(configFilePath);
+    var cleanedJson = StripBom(configString);
+    var config;
+    try {
+        config = JSON5.parse(cleanedJson);
+    }
+    catch (e) {
+        throw new Error("".concat(configFilePath, " is malformed ").concat(e.message));
+    }
+    var extendedConfig = config.extends;
+    if (extendedConfig) {
+        var base = void 0;
+        if (Array.isArray(extendedConfig)) {
+            base = extendedConfig.reduce(function (currBase, extendedConfigElement) {
+                return mergeTsconfigs(currBase, loadTsconfigFromExtends(configFilePath, extendedConfigElement, existsSync, readFileSync));
+            }, {});
+        }
+        else {
+            base = loadTsconfigFromExtends(configFilePath, extendedConfig, existsSync, readFileSync);
+        }
+        return mergeTsconfigs(base, config);
+    }
+    return config;
+}
+exports.loadTsconfig = loadTsconfig;
+/**
+ * Intended to be called only from loadTsconfig.
+ * Parameters don't have defaults because they should use the same as loadTsconfig.
+ */
+function loadTsconfigFromExtends(configFilePath, extendedConfigValue, 
+// eslint-disable-next-line no-shadow
+existsSync, readFileSync) {
+    var _a;
+    if (typeof extendedConfigValue === "string" &&
+        extendedConfigValue.indexOf(".json") === -1) {
+        extendedConfigValue += ".json";
+    }
+    var currentDir = path.dirname(configFilePath);
+    var extendedConfigPath = path.join(currentDir, extendedConfigValue);
+    if (extendedConfigValue.indexOf("/") !== -1 &&
+        extendedConfigValue.indexOf(".") !== -1 &&
+        !existsSync(extendedConfigPath)) {
+        extendedConfigPath = path.join(currentDir, "node_modules", extendedConfigValue);
+    }
+    var config = loadTsconfig(extendedConfigPath, existsSync, readFileSync) || {};
+    // baseUrl should be interpreted as relative to extendedConfigPath,
+    // but we need to update it so it is relative to the original tsconfig being loaded
+    if ((_a = config.compilerOptions) === null || _a === void 0 ? void 0 : _a.baseUrl) {
+        var extendsDir = path.dirname(extendedConfigValue);
+        config.compilerOptions.baseUrl = path.join(extendsDir, config.compilerOptions.baseUrl);
+    }
+    return config;
+}
+function mergeTsconfigs(base, config) {
+    base = base || {};
+    config = config || {};
+    return __assign(__assign(__assign({}, base), config), { compilerOptions: __assign(__assign({}, base.compilerOptions), config.compilerOptions) });
+}
+//# sourceMappingURL=tsconfig-loader.js.map
+
+/***/ }),
+
+/***/ 55831:
+/***/ ((module) => {
+
+"use strict";
+
+module.exports = x => {
+	if (typeof x !== 'string') {
+		throw new TypeError('Expected a string, got ' + typeof x);
+	}
+
+	// Catches EFBBBF (UTF-8 BOM) because the buffer-to-string
+	// conversion translates it to FEFF (UTF-16 BOM)
+	if (x.charCodeAt(0) === 0xFEFF) {
+		return x.slice(1);
+	}
+
+	return x;
+};
+
+
+/***/ }),
+
+/***/ 4351:
+/***/ ((module) => {
+
+/******************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */
+/* global global, define, Symbol, Reflect, Promise, SuppressedError */
+var __extends;
+var __assign;
+var __rest;
+var __decorate;
+var __param;
+var __esDecorate;
+var __runInitializers;
+var __propKey;
+var __setFunctionName;
+var __metadata;
+var __awaiter;
+var __generator;
+var __exportStar;
+var __values;
+var __read;
+var __spread;
+var __spreadArrays;
+var __spreadArray;
+var __await;
+var __asyncGenerator;
+var __asyncDelegator;
+var __asyncValues;
+var __makeTemplateObject;
+var __importStar;
+var __importDefault;
+var __classPrivateFieldGet;
+var __classPrivateFieldSet;
+var __classPrivateFieldIn;
+var __createBinding;
+var __addDisposableResource;
+var __disposeResources;
+(function (factory) {
+    var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
+    if (typeof define === "function" && define.amd) {
+        define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); });
+    }
+    else if ( true && typeof module.exports === "object") {
+        factory(createExporter(root, createExporter(module.exports)));
+    }
+    else {
+        factory(createExporter(root));
+    }
+    function createExporter(exports, previous) {
+        if (exports !== root) {
+            if (typeof Object.create === "function") {
+                Object.defineProperty(exports, "__esModule", { value: true });
+            }
+            else {
+                exports.__esModule = true;
+            }
+        }
+        return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };
+    }
+})
+(function (exporter) {
+    var extendStatics = Object.setPrototypeOf ||
+        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+
+    __extends = function (d, b) {
+        if (typeof b !== "function" && b !== null)
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+
+    __assign = Object.assign || function (t) {
+        for (var s, i = 1, n = arguments.length; i < n; i++) {
+            s = arguments[i];
+            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+        }
+        return t;
+    };
+
+    __rest = function (s, e) {
+        var t = {};
+        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
+            t[p] = s[p];
+        if (s != null && typeof Object.getOwnPropertySymbols === "function")
+            for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+                if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
+                    t[p[i]] = s[p[i]];
+            }
+        return t;
+    };
+
+    __decorate = function (decorators, target, key, desc) {
+        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
+        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
+        else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
+        return c > 3 && r && Object.defineProperty(target, key, r), r;
+    };
+
+    __param = function (paramIndex, decorator) {
+        return function (target, key) { decorator(target, key, paramIndex); }
+    };
+
+    __esDecorate = function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
+        function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
+        var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
+        var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
+        var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
+        var _, done = false;
+        for (var i = decorators.length - 1; i >= 0; i--) {
+            var context = {};
+            for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
+            for (var p in contextIn.access) context.access[p] = contextIn.access[p];
+            context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
+            var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
+            if (kind === "accessor") {
+                if (result === void 0) continue;
+                if (result === null || typeof result !== "object") throw new TypeError("Object expected");
+                if (_ = accept(result.get)) descriptor.get = _;
+                if (_ = accept(result.set)) descriptor.set = _;
+                if (_ = accept(result.init)) initializers.unshift(_);
+            }
+            else if (_ = accept(result)) {
+                if (kind === "field") initializers.unshift(_);
+                else descriptor[key] = _;
+            }
+        }
+        if (target) Object.defineProperty(target, contextIn.name, descriptor);
+        done = true;
+    };
+
+    __runInitializers = function (thisArg, initializers, value) {
+        var useValue = arguments.length > 2;
+        for (var i = 0; i < initializers.length; i++) {
+            value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
+        }
+        return useValue ? value : void 0;
+    };
+
+    __propKey = function (x) {
+        return typeof x === "symbol" ? x : "".concat(x);
+    };
+
+    __setFunctionName = function (f, name, prefix) {
+        if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
+        return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
+    };
+
+    __metadata = function (metadataKey, metadataValue) {
+        if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
+    };
+
+    __awaiter = function (thisArg, _arguments, P, generator) {
+        function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
+        return new (P || (P = Promise))(function (resolve, reject) {
+            function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+            function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+            function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
+            step((generator = generator.apply(thisArg, _arguments || [])).next());
+        });
+    };
+
+    __generator = function (thisArg, body) {
+        var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
+        return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
+        function verb(n) { return function (v) { return step([n, v]); }; }
+        function step(op) {
+            if (f) throw new TypeError("Generator is already executing.");
+            while (g && (g = 0, op[0] && (_ = 0)), _) try {
+                if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
+                if (y = 0, t) op = [op[0] & 2, t.value];
+                switch (op[0]) {
+                    case 0: case 1: t = op; break;
+                    case 4: _.label++; return { value: op[1], done: false };
+                    case 5: _.label++; y = op[1]; op = [0]; continue;
+                    case 7: op = _.ops.pop(); _.trys.pop(); continue;
+                    default:
+                        if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
+                        if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
+                        if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
+                        if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
+                        if (t[2]) _.ops.pop();
+                        _.trys.pop(); continue;
+                }
+                op = body.call(thisArg, _);
+            } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
+            if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
+        }
+    };
+
+    __exportStar = function(m, o) {
+        for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
+    };
+
+    __createBinding = Object.create ? (function(o, m, k, k2) {
+        if (k2 === undefined) k2 = k;
+        var desc = Object.getOwnPropertyDescriptor(m, k);
+        if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+            desc = { enumerable: true, get: function() { return m[k]; } };
+        }
+        Object.defineProperty(o, k2, desc);
+    }) : (function(o, m, k, k2) {
+        if (k2 === undefined) k2 = k;
+        o[k2] = m[k];
+    });
+
+    __values = function (o) {
+        var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+        if (m) return m.call(o);
+        if (o && typeof o.length === "number") return {
+            next: function () {
+                if (o && i >= o.length) o = void 0;
+                return { value: o && o[i++], done: !o };
+            }
+        };
+        throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+    };
+
+    __read = function (o, n) {
+        var m = typeof Symbol === "function" && o[Symbol.iterator];
+        if (!m) return o;
+        var i = m.call(o), r, ar = [], e;
+        try {
+            while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+        }
+        catch (error) { e = { error: error }; }
+        finally {
+            try {
+                if (r && !r.done && (m = i["return"])) m.call(i);
+            }
+            finally { if (e) throw e.error; }
+        }
+        return ar;
+    };
+
+    /** @deprecated */
+    __spread = function () {
+        for (var ar = [], i = 0; i < arguments.length; i++)
+            ar = ar.concat(__read(arguments[i]));
+        return ar;
+    };
+
+    /** @deprecated */
+    __spreadArrays = function () {
+        for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
+        for (var r = Array(s), k = 0, i = 0; i < il; i++)
+            for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
+                r[k] = a[j];
+        return r;
+    };
+
+    __spreadArray = function (to, from, pack) {
+        if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+            if (ar || !(i in from)) {
+                if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+                ar[i] = from[i];
+            }
+        }
+        return to.concat(ar || Array.prototype.slice.call(from));
+    };
+
+    __await = function (v) {
+        return this instanceof __await ? (this.v = v, this) : new __await(v);
+    };
+
+    __asyncGenerator = function (thisArg, _arguments, generator) {
+        if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
+        var g = generator.apply(thisArg, _arguments || []), i, q = [];
+        return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
+        function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
+        function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
+        function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
+        function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
+        function fulfill(value) { resume("next", value); }
+        function reject(value) { resume("throw", value); }
+        function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
+    };
+
+    __asyncDelegator = function (o) {
+        var i, p;
+        return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
+        function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
+    };
+
+    __asyncValues = function (o) {
+        if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
+        var m = o[Symbol.asyncIterator], i;
+        return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
+        function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
+        function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
+    };
+
+    __makeTemplateObject = function (cooked, raw) {
+        if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
+        return cooked;
+    };
+
+    var __setModuleDefault = Object.create ? (function(o, v) {
+        Object.defineProperty(o, "default", { enumerable: true, value: v });
+    }) : function(o, v) {
+        o["default"] = v;
+    };
+
+    __importStar = function (mod) {
+        if (mod && mod.__esModule) return mod;
+        var result = {};
+        if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+        __setModuleDefault(result, mod);
+        return result;
+    };
+
+    __importDefault = function (mod) {
+        return (mod && mod.__esModule) ? mod : { "default": mod };
+    };
+
+    __classPrivateFieldGet = function (receiver, state, kind, f) {
+        if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+        if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+        return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+    };
+
+    __classPrivateFieldSet = function (receiver, state, value, kind, f) {
+        if (kind === "m") throw new TypeError("Private method is not writable");
+        if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
+        if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
+        return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
+    };
+
+    __classPrivateFieldIn = function (state, receiver) {
+        if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
+        return typeof state === "function" ? receiver === state : state.has(receiver);
+    };
+
+    __addDisposableResource = function (env, value, async) {
+        if (value !== null && value !== void 0) {
+            if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
+            var dispose, inner;
+            if (async) {
+                if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
+                dispose = value[Symbol.asyncDispose];
+            }
+            if (dispose === void 0) {
+                if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
+                dispose = value[Symbol.dispose];
+                if (async) inner = dispose;
+            }
+            if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
+            if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
+            env.stack.push({ value: value, dispose: dispose, async: async });
+        }
+        else if (async) {
+            env.stack.push({ async: true });
+        }
+        return value;
+    };
+
+    var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
+        var e = new Error(message);
+        return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
+    };
+
+    __disposeResources = function (env) {
+        function fail(e) {
+            env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
+            env.hasError = true;
+        }
+        function next() {
+            while (env.stack.length) {
+                var rec = env.stack.pop();
+                try {
+                    var result = rec.dispose && rec.dispose.call(rec.value);
+                    if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
+                }
+                catch (e) {
+                    fail(e);
+                }
+            }
+            if (env.hasError) throw env.error;
+        }
+        return next();
+    };
+
+    exporter("__extends", __extends);
+    exporter("__assign", __assign);
+    exporter("__rest", __rest);
+    exporter("__decorate", __decorate);
+    exporter("__param", __param);
+    exporter("__esDecorate", __esDecorate);
+    exporter("__runInitializers", __runInitializers);
+    exporter("__propKey", __propKey);
+    exporter("__setFunctionName", __setFunctionName);
+    exporter("__metadata", __metadata);
+    exporter("__awaiter", __awaiter);
+    exporter("__generator", __generator);
+    exporter("__exportStar", __exportStar);
+    exporter("__createBinding", __createBinding);
+    exporter("__values", __values);
+    exporter("__read", __read);
+    exporter("__spread", __spread);
+    exporter("__spreadArrays", __spreadArrays);
+    exporter("__spreadArray", __spreadArray);
+    exporter("__await", __await);
+    exporter("__asyncGenerator", __asyncGenerator);
+    exporter("__asyncDelegator", __asyncDelegator);
+    exporter("__asyncValues", __asyncValues);
+    exporter("__makeTemplateObject", __makeTemplateObject);
+    exporter("__importStar", __importStar);
+    exporter("__importDefault", __importDefault);
+    exporter("__classPrivateFieldGet", __classPrivateFieldGet);
+    exporter("__classPrivateFieldSet", __classPrivateFieldSet);
+    exporter("__classPrivateFieldIn", __classPrivateFieldIn);
+    exporter("__addDisposableResource", __addDisposableResource);
+    exporter("__disposeResources", __disposeResources);
+});
+
+
+/***/ }),
+
+/***/ 74294:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+module.exports = __nccwpck_require__(54219);
+
+
+/***/ }),
+
+/***/ 54219:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var net = __nccwpck_require__(41808);
+var tls = __nccwpck_require__(24404);
+var http = __nccwpck_require__(13685);
+var https = __nccwpck_require__(95687);
+var events = __nccwpck_require__(82361);
+var assert = __nccwpck_require__(39491);
+var util = __nccwpck_require__(73837);
+
+
+exports.httpOverHttp = httpOverHttp;
+exports.httpsOverHttp = httpsOverHttp;
+exports.httpOverHttps = httpOverHttps;
+exports.httpsOverHttps = httpsOverHttps;
+
+
+function httpOverHttp(options) {
+  var agent = new TunnelingAgent(options);
+  agent.request = http.request;
+  return agent;
+}
+
+function httpsOverHttp(options) {
+  var agent = new TunnelingAgent(options);
+  agent.request = http.request;
+  agent.createSocket = createSecureSocket;
+  agent.defaultPort = 443;
+  return agent;
+}
+
+function httpOverHttps(options) {
+  var agent = new TunnelingAgent(options);
+  agent.request = https.request;
+  return agent;
+}
+
+function httpsOverHttps(options) {
+  var agent = new TunnelingAgent(options);
+  agent.request = https.request;
+  agent.createSocket = createSecureSocket;
+  agent.defaultPort = 443;
+  return agent;
+}
+
+
+function TunnelingAgent(options) {
+  var self = this;
+  self.options = options || {};
+  self.proxyOptions = self.options.proxy || {};
+  self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;
+  self.requests = [];
+  self.sockets = [];
+
+  self.on('free', function onFree(socket, host, port, localAddress) {
+    var options = toOptions(host, port, localAddress);
+    for (var i = 0, len = self.requests.length; i < len; ++i) {
+      var pending = self.requests[i];
+      if (pending.host === options.host && pending.port === options.port) {
+        // Detect the request to connect same origin server,
+        // reuse the connection.
+        self.requests.splice(i, 1);
+        pending.request.onSocket(socket);
+        return;
+      }
+    }
+    socket.destroy();
+    self.removeSocket(socket);
+  });
+}
+util.inherits(TunnelingAgent, events.EventEmitter);
+
+TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
+  var self = this;
+  var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));
+
+  if (self.sockets.length >= this.maxSockets) {
+    // We are over limit so we'll add it to the queue.
+    self.requests.push(options);
+    return;
+  }
+
+  // If we are under maxSockets create a new one.
+  self.createSocket(options, function(socket) {
+    socket.on('free', onFree);
+    socket.on('close', onCloseOrRemove);
+    socket.on('agentRemove', onCloseOrRemove);
+    req.onSocket(socket);
+
+    function onFree() {
+      self.emit('free', socket, options);
+    }
+
+    function onCloseOrRemove(err) {
+      self.removeSocket(socket);
+      socket.removeListener('free', onFree);
+      socket.removeListener('close', onCloseOrRemove);
+      socket.removeListener('agentRemove', onCloseOrRemove);
+    }
+  });
+};
+
+TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
+  var self = this;
+  var placeholder = {};
+  self.sockets.push(placeholder);
+
+  var connectOptions = mergeOptions({}, self.proxyOptions, {
+    method: 'CONNECT',
+    path: options.host + ':' + options.port,
+    agent: false,
+    headers: {
+      host: options.host + ':' + options.port
+    }
+  });
+  if (options.localAddress) {
+    connectOptions.localAddress = options.localAddress;
+  }
+  if (connectOptions.proxyAuth) {
+    connectOptions.headers = connectOptions.headers || {};
+    connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
+        new Buffer(connectOptions.proxyAuth).toString('base64');
+  }
+
+  debug('making CONNECT request');
+  var connectReq = self.request(connectOptions);
+  connectReq.useChunkedEncodingByDefault = false; // for v0.6
+  connectReq.once('response', onResponse); // for v0.6
+  connectReq.once('upgrade', onUpgrade);   // for v0.6
+  connectReq.once('connect', onConnect);   // for v0.7 or later
+  connectReq.once('error', onError);
+  connectReq.end();
+
+  function onResponse(res) {
+    // Very hacky. This is necessary to avoid http-parser leaks.
+    res.upgrade = true;
+  }
+
+  function onUpgrade(res, socket, head) {
+    // Hacky.
+    process.nextTick(function() {
+      onConnect(res, socket, head);
+    });
+  }
+
+  function onConnect(res, socket, head) {
+    connectReq.removeAllListeners();
+    socket.removeAllListeners();
+
+    if (res.statusCode !== 200) {
+      debug('tunneling socket could not be established, statusCode=%d',
+        res.statusCode);
+      socket.destroy();
+      var error = new Error('tunneling socket could not be established, ' +
+        'statusCode=' + res.statusCode);
+      error.code = 'ECONNRESET';
+      options.request.emit('error', error);
+      self.removeSocket(placeholder);
+      return;
+    }
+    if (head.length > 0) {
+      debug('got illegal response body from proxy');
+      socket.destroy();
+      var error = new Error('got illegal response body from proxy');
+      error.code = 'ECONNRESET';
+      options.request.emit('error', error);
+      self.removeSocket(placeholder);
+      return;
+    }
+    debug('tunneling connection has established');
+    self.sockets[self.sockets.indexOf(placeholder)] = socket;
+    return cb(socket);
+  }
+
+  function onError(cause) {
+    connectReq.removeAllListeners();
+
+    debug('tunneling socket could not be established, cause=%s\n',
+          cause.message, cause.stack);
+    var error = new Error('tunneling socket could not be established, ' +
+                          'cause=' + cause.message);
+    error.code = 'ECONNRESET';
+    options.request.emit('error', error);
+    self.removeSocket(placeholder);
+  }
+};
+
+TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
+  var pos = this.sockets.indexOf(socket)
+  if (pos === -1) {
+    return;
+  }
+  this.sockets.splice(pos, 1);
+
+  var pending = this.requests.shift();
+  if (pending) {
+    // If we have pending requests and a socket gets closed a new one
+    // needs to be created to take over in the pool for the one that closed.
+    this.createSocket(pending, function(socket) {
+      pending.request.onSocket(socket);
+    });
+  }
+};
+
+function createSecureSocket(options, cb) {
+  var self = this;
+  TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
+    var hostHeader = options.request.getHeader('host');
+    var tlsOptions = mergeOptions({}, self.options, {
+      socket: socket,
+      servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host
+    });
+
+    // 0 is dummy port for v0.6
+    var secureSocket = tls.connect(0, tlsOptions);
+    self.sockets[self.sockets.indexOf(socket)] = secureSocket;
+    cb(secureSocket);
+  });
+}
+
+
+function toOptions(host, port, localAddress) {
+  if (typeof host === 'string') { // since v0.10
+    return {
+      host: host,
+      port: port,
+      localAddress: localAddress
+    };
+  }
+  return host; // for v0.11 or later
+}
+
+function mergeOptions(target) {
+  for (var i = 1, len = arguments.length; i < len; ++i) {
+    var overrides = arguments[i];
+    if (typeof overrides === 'object') {
+      var keys = Object.keys(overrides);
+      for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
+        var k = keys[j];
+        if (overrides[k] !== undefined) {
+          target[k] = overrides[k];
+        }
+      }
+    }
+  }
+  return target;
+}
+
+
+var debug;
+if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
+  debug = function() {
+    var args = Array.prototype.slice.call(arguments);
+    if (typeof args[0] === 'string') {
+      args[0] = 'TUNNEL: ' + args[0];
+    } else {
+      args.unshift('TUNNEL:');
+    }
+    console.error.apply(console, args);
+  }
+} else {
+  debug = function() {};
+}
+exports.debug = debug; // for test
+
+
+/***/ }),
+
+/***/ 37414:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+/*! *****************************************************************************
+Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at http://www.apache.org/licenses/LICENSE-2.0
+
+THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
+WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
+MERCHANTABLITY OR NON-INFRINGEMENT.
+
+See the Apache Version 2.0 License for specific language governing permissions
+and limitations under the License.
+***************************************************************************** */
+
+var ts = {}; ((module) => {
+"use strict";
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __export = (target, all) => {
+  for (var name in all)
+    __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+  if (from && typeof from === "object" || typeof from === "function") {
+    for (let key of __getOwnPropNames(from))
+      if (!__hasOwnProp.call(to, key) && key !== except)
+        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+  }
+  return to;
+};
+var __toCommonJS = (mod) => (__copyProps, mod); // Modified helper to skip setting __esModule.
+
+// src/typescript/typescript.ts
+var typescript_exports = {};
+__export(typescript_exports, {
+  ANONYMOUS: () => ANONYMOUS,
+  AccessFlags: () => AccessFlags,
+  AssertionLevel: () => AssertionLevel,
+  AssignmentDeclarationKind: () => AssignmentDeclarationKind,
+  AssignmentKind: () => AssignmentKind,
+  Associativity: () => Associativity,
+  BreakpointResolver: () => ts_BreakpointResolver_exports,
+  BuilderFileEmit: () => BuilderFileEmit,
+  BuilderProgramKind: () => BuilderProgramKind,
+  BuilderState: () => BuilderState,
+  CallHierarchy: () => ts_CallHierarchy_exports,
+  CharacterCodes: () => CharacterCodes,
+  CheckFlags: () => CheckFlags,
+  CheckMode: () => CheckMode,
+  ClassificationType: () => ClassificationType,
+  ClassificationTypeNames: () => ClassificationTypeNames,
+  CommentDirectiveType: () => CommentDirectiveType,
+  Comparison: () => Comparison,
+  CompletionInfoFlags: () => CompletionInfoFlags,
+  CompletionTriggerKind: () => CompletionTriggerKind,
+  Completions: () => ts_Completions_exports,
+  ContainerFlags: () => ContainerFlags,
+  ContextFlags: () => ContextFlags,
+  Debug: () => Debug,
+  DiagnosticCategory: () => DiagnosticCategory,
+  Diagnostics: () => Diagnostics,
+  DocumentHighlights: () => DocumentHighlights,
+  ElementFlags: () => ElementFlags,
+  EmitFlags: () => EmitFlags,
+  EmitHint: () => EmitHint,
+  EmitOnly: () => EmitOnly,
+  EndOfLineState: () => EndOfLineState,
+  ExitStatus: () => ExitStatus,
+  ExportKind: () => ExportKind,
+  Extension: () => Extension,
+  ExternalEmitHelpers: () => ExternalEmitHelpers,
+  FileIncludeKind: () => FileIncludeKind,
+  FilePreprocessingDiagnosticsKind: () => FilePreprocessingDiagnosticsKind,
+  FileSystemEntryKind: () => FileSystemEntryKind,
+  FileWatcherEventKind: () => FileWatcherEventKind,
+  FindAllReferences: () => ts_FindAllReferences_exports,
+  FlattenLevel: () => FlattenLevel,
+  FlowFlags: () => FlowFlags,
+  ForegroundColorEscapeSequences: () => ForegroundColorEscapeSequences,
+  FunctionFlags: () => FunctionFlags,
+  GeneratedIdentifierFlags: () => GeneratedIdentifierFlags,
+  GetLiteralTextFlags: () => GetLiteralTextFlags,
+  GoToDefinition: () => ts_GoToDefinition_exports,
   HighlightSpanKind: () => HighlightSpanKind,
   IdentifierNameMap: () => IdentifierNameMap,
   IdentifierNameMultiMap: () => IdentifierNameMultiMap,
@@ -281016,6 +290294,62 @@ module.exports = eval("require")("./swc.win32-ia32-msvc.node");
 module.exports = eval("require")("./swc.win32-x64-msvc.node");
 
 
+/***/ }),
+
+/***/ 51516:
+/***/ ((module) => {
+
+module.exports = eval("require")("@angular-devkit/architect");
+
+
+/***/ }),
+
+/***/ 26236:
+/***/ ((module) => {
+
+module.exports = eval("require")("@angular-devkit/architect/node");
+
+
+/***/ }),
+
+/***/ 55181:
+/***/ ((module) => {
+
+module.exports = eval("require")("@angular-devkit/build-angular/src/utils/version");
+
+
+/***/ }),
+
+/***/ 6540:
+/***/ ((module) => {
+
+module.exports = eval("require")("@angular-devkit/core");
+
+
+/***/ }),
+
+/***/ 53383:
+/***/ ((module) => {
+
+module.exports = eval("require")("@angular-devkit/core/node");
+
+
+/***/ }),
+
+/***/ 55140:
+/***/ ((module) => {
+
+module.exports = eval("require")("@angular-devkit/schematics");
+
+
+/***/ }),
+
+/***/ 37276:
+/***/ ((module) => {
+
+module.exports = eval("require")("@angular-devkit/schematics/tools");
+
+
 /***/ }),
 
 /***/ 20952:
@@ -281344,6 +290678,21 @@ Yargs.Parser = Parser
 module.exports = Yargs
 
 
+/***/ }),
+
+/***/ 30024:
+/***/ ((module) => {
+
+function webpackEmptyContext(req) {
+	var e = new Error("Cannot find module '" + req + "'");
+	e.code = 'MODULE_NOT_FOUND';
+	throw e;
+}
+webpackEmptyContext.keys = () => ([]);
+webpackEmptyContext.resolve = webpackEmptyContext;
+webpackEmptyContext.id = 30024;
+module.exports = webpackEmptyContext;
+
 /***/ }),
 
 /***/ 87739:
@@ -281361,6 +290710,21 @@ module.exports = webpackEmptyContext;
 
 /***/ }),
 
+/***/ 5927:
+/***/ ((module) => {
+
+function webpackEmptyContext(req) {
+	var e = new Error("Cannot find module '" + req + "'");
+	e.code = 'MODULE_NOT_FOUND';
+	throw e;
+}
+webpackEmptyContext.keys = () => ([]);
+webpackEmptyContext.resolve = webpackEmptyContext;
+webpackEmptyContext.id = 5927;
+module.exports = webpackEmptyContext;
+
+/***/ }),
+
 /***/ 35115:
 /***/ ((module) => {
 
@@ -281652,3055 +291016,6504 @@ module.exports = require("repl");
 
 /***/ }),
 
-/***/ 12781:
-/***/ ((module) => {
+/***/ 12781:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("stream");
+
+/***/ }),
+
+/***/ 71576:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("string_decoder");
+
+/***/ }),
+
+/***/ 24404:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("tls");
+
+/***/ }),
+
+/***/ 76224:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("tty");
+
+/***/ }),
+
+/***/ 57310:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("url");
+
+/***/ }),
+
+/***/ 73837:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("util");
+
+/***/ }),
+
+/***/ 26144:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("vm");
+
+/***/ }),
+
+/***/ 59796:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("zlib");
+
+/***/ }),
+
+/***/ 37840:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.assertValidPattern = void 0;
+const MAX_PATTERN_LENGTH = 1024 * 64;
+const assertValidPattern = (pattern) => {
+    if (typeof pattern !== 'string') {
+        throw new TypeError('invalid pattern');
+    }
+    if (pattern.length > MAX_PATTERN_LENGTH) {
+        throw new TypeError('pattern is too long');
+    }
+};
+exports.assertValidPattern = assertValidPattern;
+//# sourceMappingURL=assert-valid-pattern.js.map
+
+/***/ }),
+
+/***/ 81227:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+// parse a single path portion
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AST = void 0;
+const brace_expressions_js_1 = __nccwpck_require__(65180);
+const unescape_js_1 = __nccwpck_require__(40391);
+const types = new Set(['!', '?', '+', '*', '@']);
+const isExtglobType = (c) => types.has(c);
+// Patterns that get prepended to bind to the start of either the
+// entire string, or just a single path portion, to prevent dots
+// and/or traversal patterns, when needed.
+// Exts don't need the ^ or / bit, because the root binds that already.
+const startNoTraversal = '(?!(?:^|/)\\.\\.?(?:$|/))';
+const startNoDot = '(?!\\.)';
+// characters that indicate a start of pattern needs the "no dots" bit,
+// because a dot *might* be matched. ( is not in the list, because in
+// the case of a child extglob, it will handle the prevention itself.
+const addPatternStart = new Set(['[', '.']);
+// cases where traversal is A-OK, no dot prevention needed
+const justDots = new Set(['..', '.']);
+const reSpecials = new Set('().*{}+?[]^$\\!');
+const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
+// any single thing other than /
+const qmark = '[^/]';
+// * => any number of characters
+const star = qmark + '*?';
+// use + when we need to ensure that *something* matches, because the * is
+// the only thing in the path portion.
+const starNoEmpty = qmark + '+?';
+// remove the \ chars that we added if we end up doing a nonmagic compare
+// const deslash = (s: string) => s.replace(/\\(.)/g, '$1')
+class AST {
+    type;
+    #root;
+    #hasMagic;
+    #uflag = false;
+    #parts = [];
+    #parent;
+    #parentIndex;
+    #negs;
+    #filledNegs = false;
+    #options;
+    #toString;
+    // set to true if it's an extglob with no children
+    // (which really means one child of '')
+    #emptyExt = false;
+    constructor(type, parent, options = {}) {
+        this.type = type;
+        // extglobs are inherently magical
+        if (type)
+            this.#hasMagic = true;
+        this.#parent = parent;
+        this.#root = this.#parent ? this.#parent.#root : this;
+        this.#options = this.#root === this ? options : this.#root.#options;
+        this.#negs = this.#root === this ? [] : this.#root.#negs;
+        if (type === '!' && !this.#root.#filledNegs)
+            this.#negs.push(this);
+        this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
+    }
+    get hasMagic() {
+        /* c8 ignore start */
+        if (this.#hasMagic !== undefined)
+            return this.#hasMagic;
+        /* c8 ignore stop */
+        for (const p of this.#parts) {
+            if (typeof p === 'string')
+                continue;
+            if (p.type || p.hasMagic)
+                return (this.#hasMagic = true);
+        }
+        // note: will be undefined until we generate the regexp src and find out
+        return this.#hasMagic;
+    }
+    // reconstructs the pattern
+    toString() {
+        if (this.#toString !== undefined)
+            return this.#toString;
+        if (!this.type) {
+            return (this.#toString = this.#parts.map(p => String(p)).join(''));
+        }
+        else {
+            return (this.#toString =
+                this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');
+        }
+    }
+    #fillNegs() {
+        /* c8 ignore start */
+        if (this !== this.#root)
+            throw new Error('should only call on root');
+        if (this.#filledNegs)
+            return this;
+        /* c8 ignore stop */
+        // call toString() once to fill this out
+        this.toString();
+        this.#filledNegs = true;
+        let n;
+        while ((n = this.#negs.pop())) {
+            if (n.type !== '!')
+                continue;
+            // walk up the tree, appending everthing that comes AFTER parentIndex
+            let p = n;
+            let pp = p.#parent;
+            while (pp) {
+                for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
+                    for (const part of n.#parts) {
+                        /* c8 ignore start */
+                        if (typeof part === 'string') {
+                            throw new Error('string part in extglob AST??');
+                        }
+                        /* c8 ignore stop */
+                        part.copyIn(pp.#parts[i]);
+                    }
+                }
+                p = pp;
+                pp = p.#parent;
+            }
+        }
+        return this;
+    }
+    push(...parts) {
+        for (const p of parts) {
+            if (p === '')
+                continue;
+            /* c8 ignore start */
+            if (typeof p !== 'string' && !(p instanceof AST && p.#parent === this)) {
+                throw new Error('invalid part: ' + p);
+            }
+            /* c8 ignore stop */
+            this.#parts.push(p);
+        }
+    }
+    toJSON() {
+        const ret = this.type === null
+            ? this.#parts.slice().map(p => (typeof p === 'string' ? p : p.toJSON()))
+            : [this.type, ...this.#parts.map(p => p.toJSON())];
+        if (this.isStart() && !this.type)
+            ret.unshift([]);
+        if (this.isEnd() &&
+            (this === this.#root ||
+                (this.#root.#filledNegs && this.#parent?.type === '!'))) {
+            ret.push({});
+        }
+        return ret;
+    }
+    isStart() {
+        if (this.#root === this)
+            return true;
+        // if (this.type) return !!this.#parent?.isStart()
+        if (!this.#parent?.isStart())
+            return false;
+        if (this.#parentIndex === 0)
+            return true;
+        // if everything AHEAD of this is a negation, then it's still the "start"
+        const p = this.#parent;
+        for (let i = 0; i < this.#parentIndex; i++) {
+            const pp = p.#parts[i];
+            if (!(pp instanceof AST && pp.type === '!')) {
+                return false;
+            }
+        }
+        return true;
+    }
+    isEnd() {
+        if (this.#root === this)
+            return true;
+        if (this.#parent?.type === '!')
+            return true;
+        if (!this.#parent?.isEnd())
+            return false;
+        if (!this.type)
+            return this.#parent?.isEnd();
+        // if not root, it'll always have a parent
+        /* c8 ignore start */
+        const pl = this.#parent ? this.#parent.#parts.length : 0;
+        /* c8 ignore stop */
+        return this.#parentIndex === pl - 1;
+    }
+    copyIn(part) {
+        if (typeof part === 'string')
+            this.push(part);
+        else
+            this.push(part.clone(this));
+    }
+    clone(parent) {
+        const c = new AST(this.type, parent);
+        for (const p of this.#parts) {
+            c.copyIn(p);
+        }
+        return c;
+    }
+    static #parseAST(str, ast, pos, opt) {
+        let escaping = false;
+        let inBrace = false;
+        let braceStart = -1;
+        let braceNeg = false;
+        if (ast.type === null) {
+            // outside of a extglob, append until we find a start
+            let i = pos;
+            let acc = '';
+            while (i < str.length) {
+                const c = str.charAt(i++);
+                // still accumulate escapes at this point, but we do ignore
+                // starts that are escaped
+                if (escaping || c === '\\') {
+                    escaping = !escaping;
+                    acc += c;
+                    continue;
+                }
+                if (inBrace) {
+                    if (i === braceStart + 1) {
+                        if (c === '^' || c === '!') {
+                            braceNeg = true;
+                        }
+                    }
+                    else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
+                        inBrace = false;
+                    }
+                    acc += c;
+                    continue;
+                }
+                else if (c === '[') {
+                    inBrace = true;
+                    braceStart = i;
+                    braceNeg = false;
+                    acc += c;
+                    continue;
+                }
+                if (!opt.noext && isExtglobType(c) && str.charAt(i) === '(') {
+                    ast.push(acc);
+                    acc = '';
+                    const ext = new AST(c, ast);
+                    i = AST.#parseAST(str, ext, i, opt);
+                    ast.push(ext);
+                    continue;
+                }
+                acc += c;
+            }
+            ast.push(acc);
+            return i;
+        }
+        // some kind of extglob, pos is at the (
+        // find the next | or )
+        let i = pos + 1;
+        let part = new AST(null, ast);
+        const parts = [];
+        let acc = '';
+        while (i < str.length) {
+            const c = str.charAt(i++);
+            // still accumulate escapes at this point, but we do ignore
+            // starts that are escaped
+            if (escaping || c === '\\') {
+                escaping = !escaping;
+                acc += c;
+                continue;
+            }
+            if (inBrace) {
+                if (i === braceStart + 1) {
+                    if (c === '^' || c === '!') {
+                        braceNeg = true;
+                    }
+                }
+                else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
+                    inBrace = false;
+                }
+                acc += c;
+                continue;
+            }
+            else if (c === '[') {
+                inBrace = true;
+                braceStart = i;
+                braceNeg = false;
+                acc += c;
+                continue;
+            }
+            if (isExtglobType(c) && str.charAt(i) === '(') {
+                part.push(acc);
+                acc = '';
+                const ext = new AST(c, part);
+                part.push(ext);
+                i = AST.#parseAST(str, ext, i, opt);
+                continue;
+            }
+            if (c === '|') {
+                part.push(acc);
+                acc = '';
+                parts.push(part);
+                part = new AST(null, ast);
+                continue;
+            }
+            if (c === ')') {
+                if (acc === '' && ast.#parts.length === 0) {
+                    ast.#emptyExt = true;
+                }
+                part.push(acc);
+                acc = '';
+                ast.push(...parts, part);
+                return i;
+            }
+            acc += c;
+        }
+        // unfinished extglob
+        // if we got here, it was a malformed extglob! not an extglob, but
+        // maybe something else in there.
+        ast.type = null;
+        ast.#hasMagic = undefined;
+        ast.#parts = [str.substring(pos - 1)];
+        return i;
+    }
+    static fromGlob(pattern, options = {}) {
+        const ast = new AST(null, undefined, options);
+        AST.#parseAST(pattern, ast, 0, options);
+        return ast;
+    }
+    // returns the regular expression if there's magic, or the unescaped
+    // string if not.
+    toMMPattern() {
+        // should only be called on root
+        /* c8 ignore start */
+        if (this !== this.#root)
+            return this.#root.toMMPattern();
+        /* c8 ignore stop */
+        const glob = this.toString();
+        const [re, body, hasMagic, uflag] = this.toRegExpSource();
+        // if we're in nocase mode, and not nocaseMagicOnly, then we do
+        // still need a regular expression if we have to case-insensitively
+        // match capital/lowercase characters.
+        const anyMagic = hasMagic ||
+            this.#hasMagic ||
+            (this.#options.nocase &&
+                !this.#options.nocaseMagicOnly &&
+                glob.toUpperCase() !== glob.toLowerCase());
+        if (!anyMagic) {
+            return body;
+        }
+        const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '');
+        return Object.assign(new RegExp(`^${re}$`, flags), {
+            _src: re,
+            _glob: glob,
+        });
+    }
+    // returns the string match, the regexp source, whether there's magic
+    // in the regexp (so a regular expression is required) and whether or
+    // not the uflag is needed for the regular expression (for posix classes)
+    // TODO: instead of injecting the start/end at this point, just return
+    // the BODY of the regexp, along with the start/end portions suitable
+    // for binding the start/end in either a joined full-path makeRe context
+    // (where we bind to (^|/), or a standalone matchPart context (where
+    // we bind to ^, and not /).  Otherwise slashes get duped!
+    //
+    // In part-matching mode, the start is:
+    // - if not isStart: nothing
+    // - if traversal possible, but not allowed: ^(?!\.\.?$)
+    // - if dots allowed or not possible: ^
+    // - if dots possible and not allowed: ^(?!\.)
+    // end is:
+    // - if not isEnd(): nothing
+    // - else: $
+    //
+    // In full-path matching mode, we put the slash at the START of the
+    // pattern, so start is:
+    // - if first pattern: same as part-matching mode
+    // - if not isStart(): nothing
+    // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
+    // - if dots allowed or not possible: /
+    // - if dots possible and not allowed: /(?!\.)
+    // end is:
+    // - if last pattern, same as part-matching mode
+    // - else nothing
+    //
+    // Always put the (?:$|/) on negated tails, though, because that has to be
+    // there to bind the end of the negated pattern portion, and it's easier to
+    // just stick it in now rather than try to inject it later in the middle of
+    // the pattern.
+    //
+    // We can just always return the same end, and leave it up to the caller
+    // to know whether it's going to be used joined or in parts.
+    // And, if the start is adjusted slightly, can do the same there:
+    // - if not isStart: nothing
+    // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
+    // - if dots allowed or not possible: (?:/|^)
+    // - if dots possible and not allowed: (?:/|^)(?!\.)
+    //
+    // But it's better to have a simpler binding without a conditional, for
+    // performance, so probably better to return both start options.
+    //
+    // Then the caller just ignores the end if it's not the first pattern,
+    // and the start always gets applied.
+    //
+    // But that's always going to be $ if it's the ending pattern, or nothing,
+    // so the caller can just attach $ at the end of the pattern when building.
+    //
+    // So the todo is:
+    // - better detect what kind of start is needed
+    // - return both flavors of starting pattern
+    // - attach $ at the end of the pattern when creating the actual RegExp
+    //
+    // Ah, but wait, no, that all only applies to the root when the first pattern
+    // is not an extglob. If the first pattern IS an extglob, then we need all
+    // that dot prevention biz to live in the extglob portions, because eg
+    // +(*|.x*) can match .xy but not .yx.
+    //
+    // So, return the two flavors if it's #root and the first child is not an
+    // AST, otherwise leave it to the child AST to handle it, and there,
+    // use the (?:^|/) style of start binding.
+    //
+    // Even simplified further:
+    // - Since the start for a join is eg /(?!\.) and the start for a part
+    // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
+    // or start or whatever) and prepend ^ or / at the Regexp construction.
+    toRegExpSource(allowDot) {
+        const dot = allowDot ?? !!this.#options.dot;
+        if (this.#root === this)
+            this.#fillNegs();
+        if (!this.type) {
+            const noEmpty = this.isStart() && this.isEnd();
+            const src = this.#parts
+                .map(p => {
+                const [re, _, hasMagic, uflag] = typeof p === 'string'
+                    ? AST.#parseGlob(p, this.#hasMagic, noEmpty)
+                    : p.toRegExpSource(allowDot);
+                this.#hasMagic = this.#hasMagic || hasMagic;
+                this.#uflag = this.#uflag || uflag;
+                return re;
+            })
+                .join('');
+            let start = '';
+            if (this.isStart()) {
+                if (typeof this.#parts[0] === 'string') {
+                    // this is the string that will match the start of the pattern,
+                    // so we need to protect against dots and such.
+                    // '.' and '..' cannot match unless the pattern is that exactly,
+                    // even if it starts with . or dot:true is set.
+                    const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
+                    if (!dotTravAllowed) {
+                        const aps = addPatternStart;
+                        // check if we have a possibility of matching . or ..,
+                        // and prevent that.
+                        const needNoTrav = 
+                        // dots are allowed, and the pattern starts with [ or .
+                        (dot && aps.has(src.charAt(0))) ||
+                            // the pattern starts with \., and then [ or .
+                            (src.startsWith('\\.') && aps.has(src.charAt(2))) ||
+                            // the pattern starts with \.\., and then [ or .
+                            (src.startsWith('\\.\\.') && aps.has(src.charAt(4)));
+                        // no need to prevent dots if it can't match a dot, or if a
+                        // sub-pattern will be preventing it anyway.
+                        const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
+                        start = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : '';
+                    }
+                }
+            }
+            // append the "end of path portion" pattern to negation tails
+            let end = '';
+            if (this.isEnd() &&
+                this.#root.#filledNegs &&
+                this.#parent?.type === '!') {
+                end = '(?:$|\\/)';
+            }
+            const final = start + src + end;
+            return [
+                final,
+                (0, unescape_js_1.unescape)(src),
+                (this.#hasMagic = !!this.#hasMagic),
+                this.#uflag,
+            ];
+        }
+        // We need to calculate the body *twice* if it's a repeat pattern
+        // at the start, once in nodot mode, then again in dot mode, so a
+        // pattern like *(?) can match 'x.y'
+        const repeated = this.type === '*' || this.type === '+';
+        // some kind of extglob
+        const start = this.type === '!' ? '(?:(?!(?:' : '(?:';
+        let body = this.#partsToRegExp(dot);
+        if (this.isStart() && this.isEnd() && !body && this.type !== '!') {
+            // invalid extglob, has to at least be *something* present, if it's
+            // the entire path portion.
+            const s = this.toString();
+            this.#parts = [s];
+            this.type = null;
+            this.#hasMagic = undefined;
+            return [s, (0, unescape_js_1.unescape)(this.toString()), false, false];
+        }
+        // XXX abstract out this map method
+        let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot
+            ? ''
+            : this.#partsToRegExp(true);
+        if (bodyDotAllowed === body) {
+            bodyDotAllowed = '';
+        }
+        if (bodyDotAllowed) {
+            body = `(?:${body})(?:${bodyDotAllowed})*?`;
+        }
+        // an empty !() is exactly equivalent to a starNoEmpty
+        let final = '';
+        if (this.type === '!' && this.#emptyExt) {
+            final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty;
+        }
+        else {
+            const close = this.type === '!'
+                ? // !() must match something,but !(x) can match ''
+                    '))' +
+                        (this.isStart() && !dot && !allowDot ? startNoDot : '') +
+                        star +
+                        ')'
+                : this.type === '@'
+                    ? ')'
+                    : this.type === '?'
+                        ? ')?'
+                        : this.type === '+' && bodyDotAllowed
+                            ? ')'
+                            : this.type === '*' && bodyDotAllowed
+                                ? `)?`
+                                : `)${this.type}`;
+            final = start + body + close;
+        }
+        return [
+            final,
+            (0, unescape_js_1.unescape)(body),
+            (this.#hasMagic = !!this.#hasMagic),
+            this.#uflag,
+        ];
+    }
+    #partsToRegExp(dot) {
+        return this.#parts
+            .map(p => {
+            // extglob ASTs should only contain parent ASTs
+            /* c8 ignore start */
+            if (typeof p === 'string') {
+                throw new Error('string type in extglob ast??');
+            }
+            /* c8 ignore stop */
+            // can ignore hasMagic, because extglobs are already always magic
+            const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
+            this.#uflag = this.#uflag || uflag;
+            return re;
+        })
+            .filter(p => !(this.isStart() && this.isEnd()) || !!p)
+            .join('|');
+    }
+    static #parseGlob(glob, hasMagic, noEmpty = false) {
+        let escaping = false;
+        let re = '';
+        let uflag = false;
+        for (let i = 0; i < glob.length; i++) {
+            const c = glob.charAt(i);
+            if (escaping) {
+                escaping = false;
+                re += (reSpecials.has(c) ? '\\' : '') + c;
+                continue;
+            }
+            if (c === '\\') {
+                if (i === glob.length - 1) {
+                    re += '\\\\';
+                }
+                else {
+                    escaping = true;
+                }
+                continue;
+            }
+            if (c === '[') {
+                const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i);
+                if (consumed) {
+                    re += src;
+                    uflag = uflag || needUflag;
+                    i += consumed - 1;
+                    hasMagic = hasMagic || magic;
+                    continue;
+                }
+            }
+            if (c === '*') {
+                if (noEmpty && glob === '*')
+                    re += starNoEmpty;
+                else
+                    re += star;
+                hasMagic = true;
+                continue;
+            }
+            if (c === '?') {
+                re += qmark;
+                hasMagic = true;
+                continue;
+            }
+            re += regExpEscape(c);
+        }
+        return [re, (0, unescape_js_1.unescape)(glob), !!hasMagic, uflag];
+    }
+}
+exports.AST = AST;
+//# sourceMappingURL=ast.js.map
+
+/***/ }),
+
+/***/ 65180:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+// translate the various posix character classes into unicode properties
+// this works across all unicode locales
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.parseClass = void 0;
+// { : [, /u flag required, negated]
+const posixClasses = {
+    '[:alnum:]': ['\\p{L}\\p{Nl}\\p{Nd}', true],
+    '[:alpha:]': ['\\p{L}\\p{Nl}', true],
+    '[:ascii:]': ['\\x' + '00-\\x' + '7f', false],
+    '[:blank:]': ['\\p{Zs}\\t', true],
+    '[:cntrl:]': ['\\p{Cc}', true],
+    '[:digit:]': ['\\p{Nd}', true],
+    '[:graph:]': ['\\p{Z}\\p{C}', true, true],
+    '[:lower:]': ['\\p{Ll}', true],
+    '[:print:]': ['\\p{C}', true],
+    '[:punct:]': ['\\p{P}', true],
+    '[:space:]': ['\\p{Z}\\t\\r\\n\\v\\f', true],
+    '[:upper:]': ['\\p{Lu}', true],
+    '[:word:]': ['\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}', true],
+    '[:xdigit:]': ['A-Fa-f0-9', false],
+};
+// only need to escape a few things inside of brace expressions
+// escapes: [ \ ] -
+const braceEscape = (s) => s.replace(/[[\]\\-]/g, '\\$&');
+// escape all regexp magic characters
+const regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
+// everything has already been escaped, we just have to join
+const rangesToString = (ranges) => ranges.join('');
+// takes a glob string at a posix brace expression, and returns
+// an equivalent regular expression source, and boolean indicating
+// whether the /u flag needs to be applied, and the number of chars
+// consumed to parse the character class.
+// This also removes out of order ranges, and returns ($.) if the
+// entire class just no good.
+const parseClass = (glob, position) => {
+    const pos = position;
+    /* c8 ignore start */
+    if (glob.charAt(pos) !== '[') {
+        throw new Error('not in a brace expression');
+    }
+    /* c8 ignore stop */
+    const ranges = [];
+    const negs = [];
+    let i = pos + 1;
+    let sawStart = false;
+    let uflag = false;
+    let escaping = false;
+    let negate = false;
+    let endPos = pos;
+    let rangeStart = '';
+    WHILE: while (i < glob.length) {
+        const c = glob.charAt(i);
+        if ((c === '!' || c === '^') && i === pos + 1) {
+            negate = true;
+            i++;
+            continue;
+        }
+        if (c === ']' && sawStart && !escaping) {
+            endPos = i + 1;
+            break;
+        }
+        sawStart = true;
+        if (c === '\\') {
+            if (!escaping) {
+                escaping = true;
+                i++;
+                continue;
+            }
+            // escaped \ char, fall through and treat like normal char
+        }
+        if (c === '[' && !escaping) {
+            // either a posix class, a collation equivalent, or just a [
+            for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
+                if (glob.startsWith(cls, i)) {
+                    // invalid, [a-[] is fine, but not [a-[:alpha]]
+                    if (rangeStart) {
+                        return ['$.', false, glob.length - pos, true];
+                    }
+                    i += cls.length;
+                    if (neg)
+                        negs.push(unip);
+                    else
+                        ranges.push(unip);
+                    uflag = uflag || u;
+                    continue WHILE;
+                }
+            }
+        }
+        // now it's just a normal character, effectively
+        escaping = false;
+        if (rangeStart) {
+            // throw this range away if it's not valid, but others
+            // can still match.
+            if (c > rangeStart) {
+                ranges.push(braceEscape(rangeStart) + '-' + braceEscape(c));
+            }
+            else if (c === rangeStart) {
+                ranges.push(braceEscape(c));
+            }
+            rangeStart = '';
+            i++;
+            continue;
+        }
+        // now might be the start of a range.
+        // can be either c-d or c-] or c] or c] at this point
+        if (glob.startsWith('-]', i + 1)) {
+            ranges.push(braceEscape(c + '-'));
+            i += 2;
+            continue;
+        }
+        if (glob.startsWith('-', i + 1)) {
+            rangeStart = c;
+            i += 2;
+            continue;
+        }
+        // not the start of a range, just a single character
+        ranges.push(braceEscape(c));
+        i++;
+    }
+    if (endPos < i) {
+        // didn't see the end of the class, not a valid class,
+        // but might still be valid as a literal match.
+        return ['', false, 0, false];
+    }
+    // if we got no ranges and no negates, then we have a range that
+    // cannot possibly match anything, and that poisons the whole glob
+    if (!ranges.length && !negs.length) {
+        return ['$.', false, glob.length - pos, true];
+    }
+    // if we got one positive range, and it's a single character, then that's
+    // not actually a magic pattern, it's just that one literal character.
+    // we should not treat that as "magic", we should just return the literal
+    // character. [_] is a perfectly valid way to escape glob magic chars.
+    if (negs.length === 0 &&
+        ranges.length === 1 &&
+        /^\\?.$/.test(ranges[0]) &&
+        !negate) {
+        const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
+        return [regexpEscape(r), false, endPos - pos, false];
+    }
+    const sranges = '[' + (negate ? '^' : '') + rangesToString(ranges) + ']';
+    const snegs = '[' + (negate ? '' : '^') + rangesToString(negs) + ']';
+    const comb = ranges.length && negs.length
+        ? '(' + sranges + '|' + snegs + ')'
+        : ranges.length
+            ? sranges
+            : snegs;
+    return [comb, uflag, endPos - pos, true];
+};
+exports.parseClass = parseClass;
+//# sourceMappingURL=brace-expressions.js.map
+
+/***/ }),
+
+/***/ 67350:
+/***/ ((__unused_webpack_module, exports) => {
 
 "use strict";
-module.exports = require("stream");
 
-/***/ }),
-
-/***/ 71576:
-/***/ ((module) => {
-
-"use strict";
-module.exports = require("string_decoder");
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.escape = void 0;
+/**
+ * Escape all magic characters in a glob pattern.
+ *
+ * If the {@link windowsPathsNoEscape | GlobOptions.windowsPathsNoEscape}
+ * option is used, then characters are escaped by wrapping in `[]`, because
+ * a magic character wrapped in a character class can only be satisfied by
+ * that exact character.  In this mode, `\` is _not_ escaped, because it is
+ * not interpreted as a magic character, but instead as a path separator.
+ */
+const escape = (s, { windowsPathsNoEscape = false, } = {}) => {
+    // don't need to escape +@! because we escape the parens
+    // that make those magic, and escaping ! as [!] isn't valid,
+    // because [!]] is a valid glob class meaning not ']'.
+    return windowsPathsNoEscape
+        ? s.replace(/[?*()[\]]/g, '[$&]')
+        : s.replace(/[?*()[\]\\]/g, '\\$&');
+};
+exports.escape = escape;
+//# sourceMappingURL=escape.js.map
 
 /***/ }),
 
-/***/ 24404:
-/***/ ((module) => {
+/***/ 62362:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
 
 "use strict";
-module.exports = require("tls");
-
-/***/ }),
-
-/***/ 76224:
-/***/ ((module) => {
 
-"use strict";
-module.exports = require("tty");
+var __importDefault = (this && this.__importDefault) || function (mod) {
+    return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0;
+const brace_expansion_1 = __importDefault(__nccwpck_require__(33717));
+const assert_valid_pattern_js_1 = __nccwpck_require__(37840);
+const ast_js_1 = __nccwpck_require__(81227);
+const escape_js_1 = __nccwpck_require__(67350);
+const unescape_js_1 = __nccwpck_require__(40391);
+const minimatch = (p, pattern, options = {}) => {
+    (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
+    // shortcut: comments match nothing.
+    if (!options.nocomment && pattern.charAt(0) === '#') {
+        return false;
+    }
+    return new Minimatch(pattern, options).match(p);
+};
+exports.minimatch = minimatch;
+// Optimized checking for the most common glob patterns.
+const starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
+const starDotExtTest = (ext) => (f) => !f.startsWith('.') && f.endsWith(ext);
+const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
+const starDotExtTestNocase = (ext) => {
+    ext = ext.toLowerCase();
+    return (f) => !f.startsWith('.') && f.toLowerCase().endsWith(ext);
+};
+const starDotExtTestNocaseDot = (ext) => {
+    ext = ext.toLowerCase();
+    return (f) => f.toLowerCase().endsWith(ext);
+};
+const starDotStarRE = /^\*+\.\*+$/;
+const starDotStarTest = (f) => !f.startsWith('.') && f.includes('.');
+const starDotStarTestDot = (f) => f !== '.' && f !== '..' && f.includes('.');
+const dotStarRE = /^\.\*+$/;
+const dotStarTest = (f) => f !== '.' && f !== '..' && f.startsWith('.');
+const starRE = /^\*+$/;
+const starTest = (f) => f.length !== 0 && !f.startsWith('.');
+const starTestDot = (f) => f.length !== 0 && f !== '.' && f !== '..';
+const qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
+const qmarksTestNocase = ([$0, ext = '']) => {
+    const noext = qmarksTestNoExt([$0]);
+    if (!ext)
+        return noext;
+    ext = ext.toLowerCase();
+    return (f) => noext(f) && f.toLowerCase().endsWith(ext);
+};
+const qmarksTestNocaseDot = ([$0, ext = '']) => {
+    const noext = qmarksTestNoExtDot([$0]);
+    if (!ext)
+        return noext;
+    ext = ext.toLowerCase();
+    return (f) => noext(f) && f.toLowerCase().endsWith(ext);
+};
+const qmarksTestDot = ([$0, ext = '']) => {
+    const noext = qmarksTestNoExtDot([$0]);
+    return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
+};
+const qmarksTest = ([$0, ext = '']) => {
+    const noext = qmarksTestNoExt([$0]);
+    return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
+};
+const qmarksTestNoExt = ([$0]) => {
+    const len = $0.length;
+    return (f) => f.length === len && !f.startsWith('.');
+};
+const qmarksTestNoExtDot = ([$0]) => {
+    const len = $0.length;
+    return (f) => f.length === len && f !== '.' && f !== '..';
+};
+/* c8 ignore start */
+const defaultPlatform = (typeof process === 'object' && process
+    ? (typeof process.env === 'object' &&
+        process.env &&
+        process.env.__MINIMATCH_TESTING_PLATFORM__) ||
+        process.platform
+    : 'posix');
+const path = {
+    win32: { sep: '\\' },
+    posix: { sep: '/' },
+};
+/* c8 ignore stop */
+exports.sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep;
+exports.minimatch.sep = exports.sep;
+exports.GLOBSTAR = Symbol('globstar **');
+exports.minimatch.GLOBSTAR = exports.GLOBSTAR;
+// any single thing other than /
+// don't need to escape / when using new RegExp()
+const qmark = '[^/]';
+// * => any number of characters
+const star = qmark + '*?';
+// ** when dots are allowed.  Anything goes, except .. and .
+// not (^ or / followed by one or two dots followed by $ or /),
+// followed by anything, any number of times.
+const twoStarDot = '(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?';
+// not a ^ or / followed by a dot,
+// followed by anything, any number of times.
+const twoStarNoDot = '(?:(?!(?:\\/|^)\\.).)*?';
+const filter = (pattern, options = {}) => (p) => (0, exports.minimatch)(p, pattern, options);
+exports.filter = filter;
+exports.minimatch.filter = exports.filter;
+const ext = (a, b = {}) => Object.assign({}, a, b);
+const defaults = (def) => {
+    if (!def || typeof def !== 'object' || !Object.keys(def).length) {
+        return exports.minimatch;
+    }
+    const orig = exports.minimatch;
+    const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
+    return Object.assign(m, {
+        Minimatch: class Minimatch extends orig.Minimatch {
+            constructor(pattern, options = {}) {
+                super(pattern, ext(def, options));
+            }
+            static defaults(options) {
+                return orig.defaults(ext(def, options)).Minimatch;
+            }
+        },
+        AST: class AST extends orig.AST {
+            /* c8 ignore start */
+            constructor(type, parent, options = {}) {
+                super(type, parent, ext(def, options));
+            }
+            /* c8 ignore stop */
+            static fromGlob(pattern, options = {}) {
+                return orig.AST.fromGlob(pattern, ext(def, options));
+            }
+        },
+        unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
+        escape: (s, options = {}) => orig.escape(s, ext(def, options)),
+        filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
+        defaults: (options) => orig.defaults(ext(def, options)),
+        makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
+        braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
+        match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
+        sep: orig.sep,
+        GLOBSTAR: exports.GLOBSTAR,
+    });
+};
+exports.defaults = defaults;
+exports.minimatch.defaults = exports.defaults;
+// Brace expansion:
+// a{b,c}d -> abd acd
+// a{b,}c -> abc ac
+// a{0..3}d -> a0d a1d a2d a3d
+// a{b,c{d,e}f}g -> abg acdfg acefg
+// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg
+//
+// Invalid sets are not expanded.
+// a{2..}b -> a{2..}b
+// a{b}c -> a{b}c
+const braceExpand = (pattern, options = {}) => {
+    (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
+    // Thanks to Yeting Li  for
+    // improving this regexp to avoid a ReDOS vulnerability.
+    if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
+        // shortcut. no need to expand.
+        return [pattern];
+    }
+    return (0, brace_expansion_1.default)(pattern);
+};
+exports.braceExpand = braceExpand;
+exports.minimatch.braceExpand = exports.braceExpand;
+// parse a component of the expanded set.
+// At this point, no pattern may contain "/" in it
+// so we're going to return a 2d array, where each entry is the full
+// pattern, split on '/', and then turned into a regular expression.
+// A regexp is made at the end which joins each array with an
+// escaped /, and another full one which joins each regexp with |.
+//
+// Following the lead of Bash 4.1, note that "**" only has special meaning
+// when it is the *only* thing in a path portion.  Otherwise, any series
+// of * is equivalent to a single *.  Globstar behavior is enabled by
+// default, and can be disabled by setting options.noglobstar.
+const makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
+exports.makeRe = makeRe;
+exports.minimatch.makeRe = exports.makeRe;
+const match = (list, pattern, options = {}) => {
+    const mm = new Minimatch(pattern, options);
+    list = list.filter(f => mm.match(f));
+    if (mm.options.nonull && !list.length) {
+        list.push(pattern);
+    }
+    return list;
+};
+exports.match = match;
+exports.minimatch.match = exports.match;
+// replace stuff like \* with *
+const globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
+const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
+class Minimatch {
+    options;
+    set;
+    pattern;
+    windowsPathsNoEscape;
+    nonegate;
+    negate;
+    comment;
+    empty;
+    preserveMultipleSlashes;
+    partial;
+    globSet;
+    globParts;
+    nocase;
+    isWindows;
+    platform;
+    windowsNoMagicRoot;
+    regexp;
+    constructor(pattern, options = {}) {
+        (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
+        options = options || {};
+        this.options = options;
+        this.pattern = pattern;
+        this.platform = options.platform || defaultPlatform;
+        this.isWindows = this.platform === 'win32';
+        this.windowsPathsNoEscape =
+            !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
+        if (this.windowsPathsNoEscape) {
+            this.pattern = this.pattern.replace(/\\/g, '/');
+        }
+        this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
+        this.regexp = null;
+        this.negate = false;
+        this.nonegate = !!options.nonegate;
+        this.comment = false;
+        this.empty = false;
+        this.partial = !!options.partial;
+        this.nocase = !!this.options.nocase;
+        this.windowsNoMagicRoot =
+            options.windowsNoMagicRoot !== undefined
+                ? options.windowsNoMagicRoot
+                : !!(this.isWindows && this.nocase);
+        this.globSet = [];
+        this.globParts = [];
+        this.set = [];
+        // make the set of regexps etc.
+        this.make();
+    }
+    hasMagic() {
+        if (this.options.magicalBraces && this.set.length > 1) {
+            return true;
+        }
+        for (const pattern of this.set) {
+            for (const part of pattern) {
+                if (typeof part !== 'string')
+                    return true;
+            }
+        }
+        return false;
+    }
+    debug(..._) { }
+    make() {
+        const pattern = this.pattern;
+        const options = this.options;
+        // empty patterns and comments match nothing.
+        if (!options.nocomment && pattern.charAt(0) === '#') {
+            this.comment = true;
+            return;
+        }
+        if (!pattern) {
+            this.empty = true;
+            return;
+        }
+        // step 1: figure out negation, etc.
+        this.parseNegate();
+        // step 2: expand braces
+        this.globSet = [...new Set(this.braceExpand())];
+        if (options.debug) {
+            this.debug = (...args) => console.error(...args);
+        }
+        this.debug(this.pattern, this.globSet);
+        // step 3: now we have a set, so turn each one into a series of
+        // path-portion matching patterns.
+        // These will be regexps, except in the case of "**", which is
+        // set to the GLOBSTAR object for globstar behavior,
+        // and will not contain any / characters
+        //
+        // First, we preprocess to make the glob pattern sets a bit simpler
+        // and deduped.  There are some perf-killing patterns that can cause
+        // problems with a glob walk, but we can simplify them down a bit.
+        const rawGlobParts = this.globSet.map(s => this.slashSplit(s));
+        this.globParts = this.preprocess(rawGlobParts);
+        this.debug(this.pattern, this.globParts);
+        // glob --> regexps
+        let set = this.globParts.map((s, _, __) => {
+            if (this.isWindows && this.windowsNoMagicRoot) {
+                // check if it's a drive or unc path.
+                const isUNC = s[0] === '' &&
+                    s[1] === '' &&
+                    (s[2] === '?' || !globMagic.test(s[2])) &&
+                    !globMagic.test(s[3]);
+                const isDrive = /^[a-z]:/i.test(s[0]);
+                if (isUNC) {
+                    return [...s.slice(0, 4), ...s.slice(4).map(ss => this.parse(ss))];
+                }
+                else if (isDrive) {
+                    return [s[0], ...s.slice(1).map(ss => this.parse(ss))];
+                }
+            }
+            return s.map(ss => this.parse(ss));
+        });
+        this.debug(this.pattern, set);
+        // filter out everything that didn't compile properly.
+        this.set = set.filter(s => s.indexOf(false) === -1);
+        // do not treat the ? in UNC paths as magic
+        if (this.isWindows) {
+            for (let i = 0; i < this.set.length; i++) {
+                const p = this.set[i];
+                if (p[0] === '' &&
+                    p[1] === '' &&
+                    this.globParts[i][2] === '?' &&
+                    typeof p[3] === 'string' &&
+                    /^[a-z]:$/i.test(p[3])) {
+                    p[2] = '?';
+                }
+            }
+        }
+        this.debug(this.pattern, this.set);
+    }
+    // various transforms to equivalent pattern sets that are
+    // faster to process in a filesystem walk.  The goal is to
+    // eliminate what we can, and push all ** patterns as far
+    // to the right as possible, even if it increases the number
+    // of patterns that we have to process.
+    preprocess(globParts) {
+        // if we're not in globstar mode, then turn all ** into *
+        if (this.options.noglobstar) {
+            for (let i = 0; i < globParts.length; i++) {
+                for (let j = 0; j < globParts[i].length; j++) {
+                    if (globParts[i][j] === '**') {
+                        globParts[i][j] = '*';
+                    }
+                }
+            }
+        }
+        const { optimizationLevel = 1 } = this.options;
+        if (optimizationLevel >= 2) {
+            // aggressive optimization for the purpose of fs walking
+            globParts = this.firstPhasePreProcess(globParts);
+            globParts = this.secondPhasePreProcess(globParts);
+        }
+        else if (optimizationLevel >= 1) {
+            // just basic optimizations to remove some .. parts
+            globParts = this.levelOneOptimize(globParts);
+        }
+        else {
+            globParts = this.adjascentGlobstarOptimize(globParts);
+        }
+        return globParts;
+    }
+    // just get rid of adjascent ** portions
+    adjascentGlobstarOptimize(globParts) {
+        return globParts.map(parts => {
+            let gs = -1;
+            while (-1 !== (gs = parts.indexOf('**', gs + 1))) {
+                let i = gs;
+                while (parts[i + 1] === '**') {
+                    i++;
+                }
+                if (i !== gs) {
+                    parts.splice(gs, i - gs);
+                }
+            }
+            return parts;
+        });
+    }
+    // get rid of adjascent ** and resolve .. portions
+    levelOneOptimize(globParts) {
+        return globParts.map(parts => {
+            parts = parts.reduce((set, part) => {
+                const prev = set[set.length - 1];
+                if (part === '**' && prev === '**') {
+                    return set;
+                }
+                if (part === '..') {
+                    if (prev && prev !== '..' && prev !== '.' && prev !== '**') {
+                        set.pop();
+                        return set;
+                    }
+                }
+                set.push(part);
+                return set;
+            }, []);
+            return parts.length === 0 ? [''] : parts;
+        });
+    }
+    levelTwoFileOptimize(parts) {
+        if (!Array.isArray(parts)) {
+            parts = this.slashSplit(parts);
+        }
+        let didSomething = false;
+        do {
+            didSomething = false;
+            // 
// -> 
/
+            if (!this.preserveMultipleSlashes) {
+                for (let i = 1; i < parts.length - 1; i++) {
+                    const p = parts[i];
+                    // don't squeeze out UNC patterns
+                    if (i === 1 && p === '' && parts[0] === '')
+                        continue;
+                    if (p === '.' || p === '') {
+                        didSomething = true;
+                        parts.splice(i, 1);
+                        i--;
+                    }
+                }
+                if (parts[0] === '.' &&
+                    parts.length === 2 &&
+                    (parts[1] === '.' || parts[1] === '')) {
+                    didSomething = true;
+                    parts.pop();
+                }
+            }
+            // 
/

/../ ->

/
+            let dd = 0;
+            while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
+                const p = parts[dd - 1];
+                if (p && p !== '.' && p !== '..' && p !== '**') {
+                    didSomething = true;
+                    parts.splice(dd - 1, 2);
+                    dd -= 2;
+                }
+            }
+        } while (didSomething);
+        return parts.length === 0 ? [''] : parts;
+    }
+    // First phase: single-pattern processing
+    // 
 is 1 or more portions
+    //  is 1 or more portions
+    // 

is any portion other than ., .., '', or ** + // is . or '' + // + // **/.. is *brutal* for filesystem walking performance, because + // it effectively resets the recursive walk each time it occurs, + // and ** cannot be reduced out by a .. pattern part like a regexp + // or most strings (other than .., ., and '') can be. + // + //

/**/../

/

/ -> {

/../

/

/,

/**/

/

/} + //

// -> 
/
+    // 
/

/../ ->

/
+    // **/**/ -> **/
+    //
+    // **/*/ -> */**/ <== not valid because ** doesn't follow
+    // this WOULD be allowed if ** did follow symlinks, or * didn't
+    firstPhasePreProcess(globParts) {
+        let didSomething = false;
+        do {
+            didSomething = false;
+            // 
/**/../

/

/ -> {

/../

/

/,

/**/

/

/} + for (let parts of globParts) { + let gs = -1; + while (-1 !== (gs = parts.indexOf('**', gs + 1))) { + let gss = gs; + while (parts[gss + 1] === '**') { + //

/**/**/ -> 
/**/
+                        gss++;
+                    }
+                    // eg, if gs is 2 and gss is 4, that means we have 3 **
+                    // parts, and can remove 2 of them.
+                    if (gss > gs) {
+                        parts.splice(gs + 1, gss - gs);
+                    }
+                    let next = parts[gs + 1];
+                    const p = parts[gs + 2];
+                    const p2 = parts[gs + 3];
+                    if (next !== '..')
+                        continue;
+                    if (!p ||
+                        p === '.' ||
+                        p === '..' ||
+                        !p2 ||
+                        p2 === '.' ||
+                        p2 === '..') {
+                        continue;
+                    }
+                    didSomething = true;
+                    // edit parts in place, and push the new one
+                    parts.splice(gs, 1);
+                    const other = parts.slice(0);
+                    other[gs] = '**';
+                    globParts.push(other);
+                    gs--;
+                }
+                // 
// -> 
/
+                if (!this.preserveMultipleSlashes) {
+                    for (let i = 1; i < parts.length - 1; i++) {
+                        const p = parts[i];
+                        // don't squeeze out UNC patterns
+                        if (i === 1 && p === '' && parts[0] === '')
+                            continue;
+                        if (p === '.' || p === '') {
+                            didSomething = true;
+                            parts.splice(i, 1);
+                            i--;
+                        }
+                    }
+                    if (parts[0] === '.' &&
+                        parts.length === 2 &&
+                        (parts[1] === '.' || parts[1] === '')) {
+                        didSomething = true;
+                        parts.pop();
+                    }
+                }
+                // 
/

/../ ->

/
+                let dd = 0;
+                while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
+                    const p = parts[dd - 1];
+                    if (p && p !== '.' && p !== '..' && p !== '**') {
+                        didSomething = true;
+                        const needDot = dd === 1 && parts[dd + 1] === '**';
+                        const splin = needDot ? ['.'] : [];
+                        parts.splice(dd - 1, 2, ...splin);
+                        if (parts.length === 0)
+                            parts.push('');
+                        dd -= 2;
+                    }
+                }
+            }
+        } while (didSomething);
+        return globParts;
+    }
+    // second phase: multi-pattern dedupes
+    // {
/*/,
/

/} ->

/*/
+    // {
/,
/} -> 
/
+    // {
/**/,
/} -> 
/**/
+    //
+    // {
/**/,
/**/

/} ->

/**/
+    // ^-- not valid because ** doens't follow symlinks
+    secondPhasePreProcess(globParts) {
+        for (let i = 0; i < globParts.length - 1; i++) {
+            for (let j = i + 1; j < globParts.length; j++) {
+                const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
+                if (!matched)
+                    continue;
+                globParts[i] = matched;
+                globParts[j] = [];
+            }
+        }
+        return globParts.filter(gs => gs.length);
+    }
+    partsMatch(a, b, emptyGSMatch = false) {
+        let ai = 0;
+        let bi = 0;
+        let result = [];
+        let which = '';
+        while (ai < a.length && bi < b.length) {
+            if (a[ai] === b[bi]) {
+                result.push(which === 'b' ? b[bi] : a[ai]);
+                ai++;
+                bi++;
+            }
+            else if (emptyGSMatch && a[ai] === '**' && b[bi] === a[ai + 1]) {
+                result.push(a[ai]);
+                ai++;
+            }
+            else if (emptyGSMatch && b[bi] === '**' && a[ai] === b[bi + 1]) {
+                result.push(b[bi]);
+                bi++;
+            }
+            else if (a[ai] === '*' &&
+                b[bi] &&
+                (this.options.dot || !b[bi].startsWith('.')) &&
+                b[bi] !== '**') {
+                if (which === 'b')
+                    return false;
+                which = 'a';
+                result.push(a[ai]);
+                ai++;
+                bi++;
+            }
+            else if (b[bi] === '*' &&
+                a[ai] &&
+                (this.options.dot || !a[ai].startsWith('.')) &&
+                a[ai] !== '**') {
+                if (which === 'a')
+                    return false;
+                which = 'b';
+                result.push(b[bi]);
+                ai++;
+                bi++;
+            }
+            else {
+                return false;
+            }
+        }
+        // if we fall out of the loop, it means they two are identical
+        // as long as their lengths match
+        return a.length === b.length && result;
+    }
+    parseNegate() {
+        if (this.nonegate)
+            return;
+        const pattern = this.pattern;
+        let negate = false;
+        let negateOffset = 0;
+        for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {
+            negate = !negate;
+            negateOffset++;
+        }
+        if (negateOffset)
+            this.pattern = pattern.slice(negateOffset);
+        this.negate = negate;
+    }
+    // set partial to true to test if, for example,
+    // "/a/b" matches the start of "/*/b/*/d"
+    // Partial means, if you run out of file before you run
+    // out of pattern, then that's fine, as long as all
+    // the parts match.
+    matchOne(file, pattern, partial = false) {
+        const options = this.options;
+        // UNC paths like //?/X:/... can match X:/... and vice versa
+        // Drive letters in absolute drive or unc paths are always compared
+        // case-insensitively.
+        if (this.isWindows) {
+            const fileDrive = typeof file[0] === 'string' && /^[a-z]:$/i.test(file[0]);
+            const fileUNC = !fileDrive &&
+                file[0] === '' &&
+                file[1] === '' &&
+                file[2] === '?' &&
+                /^[a-z]:$/i.test(file[3]);
+            const patternDrive = typeof pattern[0] === 'string' && /^[a-z]:$/i.test(pattern[0]);
+            const patternUNC = !patternDrive &&
+                pattern[0] === '' &&
+                pattern[1] === '' &&
+                pattern[2] === '?' &&
+                typeof pattern[3] === 'string' &&
+                /^[a-z]:$/i.test(pattern[3]);
+            const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
+            const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
+            if (typeof fdi === 'number' && typeof pdi === 'number') {
+                const [fd, pd] = [file[fdi], pattern[pdi]];
+                if (fd.toLowerCase() === pd.toLowerCase()) {
+                    pattern[pdi] = fd;
+                    if (pdi > fdi) {
+                        pattern = pattern.slice(pdi);
+                    }
+                    else if (fdi > pdi) {
+                        file = file.slice(fdi);
+                    }
+                }
+            }
+        }
+        // resolve and reduce . and .. portions in the file as well.
+        // dont' need to do the second phase, because it's only one string[]
+        const { optimizationLevel = 1 } = this.options;
+        if (optimizationLevel >= 2) {
+            file = this.levelTwoFileOptimize(file);
+        }
+        this.debug('matchOne', this, { file, pattern });
+        this.debug('matchOne', file.length, pattern.length);
+        for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
+            this.debug('matchOne loop');
+            var p = pattern[pi];
+            var f = file[fi];
+            this.debug(pattern, p, f);
+            // should be impossible.
+            // some invalid regexp stuff in the set.
+            /* c8 ignore start */
+            if (p === false) {
+                return false;
+            }
+            /* c8 ignore stop */
+            if (p === exports.GLOBSTAR) {
+                this.debug('GLOBSTAR', [pattern, p, f]);
+                // "**"
+                // a/**/b/**/c would match the following:
+                // a/b/x/y/z/c
+                // a/x/y/z/b/c
+                // a/b/x/b/x/c
+                // a/b/c
+                // To do this, take the rest of the pattern after
+                // the **, and see if it would match the file remainder.
+                // If so, return success.
+                // If not, the ** "swallows" a segment, and try again.
+                // This is recursively awful.
+                //
+                // a/**/b/**/c matching a/b/x/y/z/c
+                // - a matches a
+                // - doublestar
+                //   - matchOne(b/x/y/z/c, b/**/c)
+                //     - b matches b
+                //     - doublestar
+                //       - matchOne(x/y/z/c, c) -> no
+                //       - matchOne(y/z/c, c) -> no
+                //       - matchOne(z/c, c) -> no
+                //       - matchOne(c, c) yes, hit
+                var fr = fi;
+                var pr = pi + 1;
+                if (pr === pl) {
+                    this.debug('** at the end');
+                    // a ** at the end will just swallow the rest.
+                    // We have found a match.
+                    // however, it will not swallow /.x, unless
+                    // options.dot is set.
+                    // . and .. are *never* matched by **, for explosively
+                    // exponential reasons.
+                    for (; fi < fl; fi++) {
+                        if (file[fi] === '.' ||
+                            file[fi] === '..' ||
+                            (!options.dot && file[fi].charAt(0) === '.'))
+                            return false;
+                    }
+                    return true;
+                }
+                // ok, let's see if we can swallow whatever we can.
+                while (fr < fl) {
+                    var swallowee = file[fr];
+                    this.debug('\nglobstar while', file, fr, pattern, pr, swallowee);
+                    // XXX remove this slice.  Just pass the start index.
+                    if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
+                        this.debug('globstar found match!', fr, fl, swallowee);
+                        // found a match.
+                        return true;
+                    }
+                    else {
+                        // can't swallow "." or ".." ever.
+                        // can only swallow ".foo" when explicitly asked.
+                        if (swallowee === '.' ||
+                            swallowee === '..' ||
+                            (!options.dot && swallowee.charAt(0) === '.')) {
+                            this.debug('dot detected!', file, fr, pattern, pr);
+                            break;
+                        }
+                        // ** swallows a segment, and continue.
+                        this.debug('globstar swallow a segment, and continue');
+                        fr++;
+                    }
+                }
+                // no match was found.
+                // However, in partial mode, we can't say this is necessarily over.
+                /* c8 ignore start */
+                if (partial) {
+                    // ran out of file
+                    this.debug('\n>>> no match, partial?', file, fr, pattern, pr);
+                    if (fr === fl) {
+                        return true;
+                    }
+                }
+                /* c8 ignore stop */
+                return false;
+            }
+            // something other than **
+            // non-magic patterns just have to match exactly
+            // patterns with magic have been turned into regexps.
+            let hit;
+            if (typeof p === 'string') {
+                hit = f === p;
+                this.debug('string match', p, f, hit);
+            }
+            else {
+                hit = p.test(f);
+                this.debug('pattern match', p, f, hit);
+            }
+            if (!hit)
+                return false;
+        }
+        // Note: ending in / means that we'll get a final ""
+        // at the end of the pattern.  This can only match a
+        // corresponding "" at the end of the file.
+        // If the file ends in /, then it can only match a
+        // a pattern that ends in /, unless the pattern just
+        // doesn't have any more for it. But, a/b/ should *not*
+        // match "a/b/*", even though "" matches against the
+        // [^/]*? pattern, except in partial mode, where it might
+        // simply not be reached yet.
+        // However, a/b/ should still satisfy a/*
+        // now either we fell off the end of the pattern, or we're done.
+        if (fi === fl && pi === pl) {
+            // ran out of pattern and filename at the same time.
+            // an exact hit!
+            return true;
+        }
+        else if (fi === fl) {
+            // ran out of file, but still had pattern left.
+            // this is ok if we're doing the match as part of
+            // a glob fs traversal.
+            return partial;
+        }
+        else if (pi === pl) {
+            // ran out of pattern, still have file left.
+            // this is only acceptable if we're on the very last
+            // empty segment of a file with a trailing slash.
+            // a/* should match a/b/
+            return fi === fl - 1 && file[fi] === '';
+            /* c8 ignore start */
+        }
+        else {
+            // should be unreachable.
+            throw new Error('wtf?');
+        }
+        /* c8 ignore stop */
+    }
+    braceExpand() {
+        return (0, exports.braceExpand)(this.pattern, this.options);
+    }
+    parse(pattern) {
+        (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
+        const options = this.options;
+        // shortcuts
+        if (pattern === '**')
+            return exports.GLOBSTAR;
+        if (pattern === '')
+            return '';
+        // far and away, the most common glob pattern parts are
+        // *, *.*, and *.  Add a fast check method for those.
+        let m;
+        let fastTest = null;
+        if ((m = pattern.match(starRE))) {
+            fastTest = options.dot ? starTestDot : starTest;
+        }
+        else if ((m = pattern.match(starDotExtRE))) {
+            fastTest = (options.nocase
+                ? options.dot
+                    ? starDotExtTestNocaseDot
+                    : starDotExtTestNocase
+                : options.dot
+                    ? starDotExtTestDot
+                    : starDotExtTest)(m[1]);
+        }
+        else if ((m = pattern.match(qmarksRE))) {
+            fastTest = (options.nocase
+                ? options.dot
+                    ? qmarksTestNocaseDot
+                    : qmarksTestNocase
+                : options.dot
+                    ? qmarksTestDot
+                    : qmarksTest)(m);
+        }
+        else if ((m = pattern.match(starDotStarRE))) {
+            fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
+        }
+        else if ((m = pattern.match(dotStarRE))) {
+            fastTest = dotStarTest;
+        }
+        const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();
+        return fastTest ? Object.assign(re, { test: fastTest }) : re;
+    }
+    makeRe() {
+        if (this.regexp || this.regexp === false)
+            return this.regexp;
+        // at this point, this.set is a 2d array of partial
+        // pattern strings, or "**".
+        //
+        // It's better to use .match().  This function shouldn't
+        // be used, really, but it's pretty convenient sometimes,
+        // when you just want to work with a regex.
+        const set = this.set;
+        if (!set.length) {
+            this.regexp = false;
+            return this.regexp;
+        }
+        const options = this.options;
+        const twoStar = options.noglobstar
+            ? star
+            : options.dot
+                ? twoStarDot
+                : twoStarNoDot;
+        const flags = new Set(options.nocase ? ['i'] : []);
+        // regexpify non-globstar patterns
+        // if ** is only item, then we just do one twoStar
+        // if ** is first, and there are more, prepend (\/|twoStar\/)? to next
+        // if ** is last, append (\/twoStar|) to previous
+        // if ** is in the middle, append (\/|\/twoStar\/) to previous
+        // then filter out GLOBSTAR symbols
+        let re = set
+            .map(pattern => {
+            const pp = pattern.map(p => {
+                if (p instanceof RegExp) {
+                    for (const f of p.flags.split(''))
+                        flags.add(f);
+                }
+                return typeof p === 'string'
+                    ? regExpEscape(p)
+                    : p === exports.GLOBSTAR
+                        ? exports.GLOBSTAR
+                        : p._src;
+            });
+            pp.forEach((p, i) => {
+                const next = pp[i + 1];
+                const prev = pp[i - 1];
+                if (p !== exports.GLOBSTAR || prev === exports.GLOBSTAR) {
+                    return;
+                }
+                if (prev === undefined) {
+                    if (next !== undefined && next !== exports.GLOBSTAR) {
+                        pp[i + 1] = '(?:\\/|' + twoStar + '\\/)?' + next;
+                    }
+                    else {
+                        pp[i] = twoStar;
+                    }
+                }
+                else if (next === undefined) {
+                    pp[i - 1] = prev + '(?:\\/|' + twoStar + ')?';
+                }
+                else if (next !== exports.GLOBSTAR) {
+                    pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + '\\/)' + next;
+                    pp[i + 1] = exports.GLOBSTAR;
+                }
+            });
+            return pp.filter(p => p !== exports.GLOBSTAR).join('/');
+        })
+            .join('|');
+        // need to wrap in parens if we had more than one thing with |,
+        // otherwise only the first will be anchored to ^ and the last to $
+        const [open, close] = set.length > 1 ? ['(?:', ')'] : ['', ''];
+        // must match entire pattern
+        // ending in a * or ** will make it less strict.
+        re = '^' + open + re + close + '$';
+        // can match anything, as long as it's not this.
+        if (this.negate)
+            re = '^(?!' + re + ').+$';
+        try {
+            this.regexp = new RegExp(re, [...flags].join(''));
+            /* c8 ignore start */
+        }
+        catch (ex) {
+            // should be impossible
+            this.regexp = false;
+        }
+        /* c8 ignore stop */
+        return this.regexp;
+    }
+    slashSplit(p) {
+        // if p starts with // on windows, we preserve that
+        // so that UNC paths aren't broken.  Otherwise, any number of
+        // / characters are coalesced into one, unless
+        // preserveMultipleSlashes is set to true.
+        if (this.preserveMultipleSlashes) {
+            return p.split('/');
+        }
+        else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
+            // add an extra '' for the one we lose
+            return ['', ...p.split(/\/+/)];
+        }
+        else {
+            return p.split(/\/+/);
+        }
+    }
+    match(f, partial = this.partial) {
+        this.debug('match', f, this.pattern);
+        // short-circuit in the case of busted things.
+        // comments, etc.
+        if (this.comment) {
+            return false;
+        }
+        if (this.empty) {
+            return f === '';
+        }
+        if (f === '/' && partial) {
+            return true;
+        }
+        const options = this.options;
+        // windows: need to use /, not \
+        if (this.isWindows) {
+            f = f.split('\\').join('/');
+        }
+        // treat the test path as a set of pathparts.
+        const ff = this.slashSplit(f);
+        this.debug(this.pattern, 'split', ff);
+        // just ONE of the pattern sets in this.set needs to match
+        // in order for it to be valid.  If negating, then just one
+        // match means that we have failed.
+        // Either way, return on the first hit.
+        const set = this.set;
+        this.debug(this.pattern, 'set', set);
+        // Find the basename of the path by looking for the last non-empty segment
+        let filename = ff[ff.length - 1];
+        if (!filename) {
+            for (let i = ff.length - 2; !filename && i >= 0; i--) {
+                filename = ff[i];
+            }
+        }
+        for (let i = 0; i < set.length; i++) {
+            const pattern = set[i];
+            let file = ff;
+            if (options.matchBase && pattern.length === 1) {
+                file = [filename];
+            }
+            const hit = this.matchOne(file, pattern, partial);
+            if (hit) {
+                if (options.flipNegate) {
+                    return true;
+                }
+                return !this.negate;
+            }
+        }
+        // didn't get any hits.  this is success if it's a negative
+        // pattern, failure otherwise.
+        if (options.flipNegate) {
+            return false;
+        }
+        return this.negate;
+    }
+    static defaults(def) {
+        return exports.minimatch.defaults(def).Minimatch;
+    }
+}
+exports.Minimatch = Minimatch;
+/* c8 ignore start */
+var ast_js_2 = __nccwpck_require__(81227);
+Object.defineProperty(exports, "AST", ({ enumerable: true, get: function () { return ast_js_2.AST; } }));
+var escape_js_2 = __nccwpck_require__(67350);
+Object.defineProperty(exports, "escape", ({ enumerable: true, get: function () { return escape_js_2.escape; } }));
+var unescape_js_2 = __nccwpck_require__(40391);
+Object.defineProperty(exports, "unescape", ({ enumerable: true, get: function () { return unescape_js_2.unescape; } }));
+/* c8 ignore stop */
+exports.minimatch.AST = ast_js_1.AST;
+exports.minimatch.Minimatch = Minimatch;
+exports.minimatch.escape = escape_js_1.escape;
+exports.minimatch.unescape = unescape_js_1.unescape;
+//# sourceMappingURL=index.js.map
 
 /***/ }),
 
-/***/ 57310:
-/***/ ((module) => {
+/***/ 40391:
+/***/ ((__unused_webpack_module, exports) => {
 
 "use strict";
-module.exports = require("url");
-
-/***/ }),
-
-/***/ 73837:
-/***/ ((module) => {
 
-"use strict";
-module.exports = require("util");
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.unescape = void 0;
+/**
+ * Un-escape a string that has been escaped with {@link escape}.
+ *
+ * If the {@link windowsPathsNoEscape} option is used, then square-brace
+ * escapes are removed, but not backslash escapes.  For example, it will turn
+ * the string `'[*]'` into `*`, but it will not turn `'\\*'` into `'*'`,
+ * becuase `\` is a path separator in `windowsPathsNoEscape` mode.
+ *
+ * When `windowsPathsNoEscape` is not set, then both brace escapes and
+ * backslash escapes are removed.
+ *
+ * Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
+ * or unescaped.
+ */
+const unescape = (s, { windowsPathsNoEscape = false, } = {}) => {
+    return windowsPathsNoEscape
+        ? s.replace(/\[([^\/\\])\]/g, '$1')
+        : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, '$1$2').replace(/\\([^\/])/g, '$1');
+};
+exports.unescape = unescape;
+//# sourceMappingURL=unescape.js.map
 
 /***/ }),
 
-/***/ 26144:
-/***/ ((module) => {
+/***/ 45205:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
-module.exports = require("vm");
-
-/***/ }),
 
-/***/ 59796:
-/***/ ((module) => {
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.NxAngularJsonPlugin = exports.NX_ANGULAR_JSON_PLUGIN_NAME = void 0;
+exports.shouldMergeAngularProjects = shouldMergeAngularProjects;
+exports.isAngularPluginInstalled = isAngularPluginInstalled;
+exports.toNewFormat = toNewFormat;
+exports.toOldFormat = toOldFormat;
+exports.renamePropertyWithStableKeys = renamePropertyWithStableKeys;
+const fs_1 = __nccwpck_require__(57147);
+const path = __nccwpck_require__(71017);
+const fileutils_1 = __nccwpck_require__(40910);
+exports.NX_ANGULAR_JSON_PLUGIN_NAME = 'nx-angular-json-plugin';
+exports.NxAngularJsonPlugin = {
+    name: exports.NX_ANGULAR_JSON_PLUGIN_NAME,
+    createNodes: [
+        'angular.json',
+        (f, _, ctx) => ({
+            projects: readAngularJson(ctx.workspaceRoot),
+        }),
+    ],
+};
+exports["default"] = exports.NxAngularJsonPlugin;
+function shouldMergeAngularProjects(root, includeProjectsFromAngularJson) {
+    if ((0, fs_1.existsSync)(path.join(root, 'angular.json')) &&
+        // Include projects from angular.json if explicitly required.
+        // e.g. when invoked from `packages/devkit/src/utils/convert-nx-executor.ts`
+        (includeProjectsFromAngularJson ||
+            // Or if a workspace has `@nrwl/angular`/`@nx/angular` installed then projects from `angular.json` to be considered by Nx.
+            isAngularPluginInstalled())) {
+        return true;
+    }
+    else {
+        return false;
+    }
+}
+function isAngularPluginInstalled() {
+    try {
+        // nx-ignore-next-line
+        require.resolve('@nx/angular');
+        return true;
+    }
+    catch {
+        try {
+            require.resolve('@nrwl/angular');
+            return true;
+        }
+        catch {
+            return false;
+        }
+    }
+}
+function readAngularJson(angularCliWorkspaceRoot) {
+    return toNewFormat((0, fileutils_1.readJsonFile)(path.join(angularCliWorkspaceRoot, 'angular.json'))).projects;
+}
+function toNewFormat(w) {
+    if (!w.projects) {
+        return w;
+    }
+    for (const name in w.projects ?? {}) {
+        const projectConfig = w.projects[name];
+        if (projectConfig.architect) {
+            renamePropertyWithStableKeys(projectConfig, 'architect', 'targets');
+        }
+        if (projectConfig.schematics) {
+            renamePropertyWithStableKeys(projectConfig, 'schematics', 'generators');
+        }
+        if (!projectConfig.name) {
+            projectConfig.name = name;
+        }
+        Object.values(projectConfig.targets || {}).forEach((target) => {
+            if (target.builder !== undefined) {
+                renamePropertyWithStableKeys(target, 'builder', 'executor');
+            }
+        });
+    }
+    if (w.schematics) {
+        renamePropertyWithStableKeys(w, 'schematics', 'generators');
+    }
+    if (w.version !== 2) {
+        w.version = 2;
+    }
+    return w;
+}
+function toOldFormat(w) {
+    if (w.projects) {
+        for (const name in w.projects) {
+            const projectConfig = w.projects[name];
+            if (typeof projectConfig === 'string') {
+                throw new Error("'project.json' files are incompatible with version 1 workspace schemas.");
+            }
+            if (projectConfig.targets) {
+                renamePropertyWithStableKeys(projectConfig, 'targets', 'architect');
+            }
+            if (projectConfig.generators) {
+                renamePropertyWithStableKeys(projectConfig, 'generators', 'schematics');
+            }
+            delete projectConfig.name;
+            Object.values(projectConfig.architect || {}).forEach((target) => {
+                if (target.executor !== undefined) {
+                    renamePropertyWithStableKeys(target, 'executor', 'builder');
+                }
+            });
+        }
+    }
+    if (w.generators) {
+        renamePropertyWithStableKeys(w, 'generators', 'schematics');
+    }
+    if (w.version !== 1) {
+        w.version = 1;
+    }
+    return w;
+}
+// we have to do it this way to preserve the order of properties
+// not to screw up the formatting
+function renamePropertyWithStableKeys(obj, from, to) {
+    const copy = { ...obj };
+    Object.keys(obj).forEach((k) => {
+        delete obj[k];
+    });
+    Object.keys(copy).forEach((k) => {
+        if (k === from) {
+            obj[to] = copy[k];
+        }
+        else {
+            obj[k] = copy[k];
+        }
+    });
+}
 
-"use strict";
-module.exports = require("zlib");
 
 /***/ }),
 
-/***/ 37840:
-/***/ ((__unused_webpack_module, exports) => {
+/***/ 53882:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.assertValidPattern = void 0;
-const MAX_PATTERN_LENGTH = 1024 * 64;
-const assertValidPattern = (pattern) => {
-    if (typeof pattern !== 'string') {
-        throw new TypeError('invalid pattern');
+exports.allowedWorkspaceExtensions = exports.allowedProjectExtensions = void 0;
+const project_graph_1 = __nccwpck_require__(54913);
+const configuration_1 = __nccwpck_require__(34333);
+const angular_json_1 = __nccwpck_require__(45205);
+/* eslint-disable */
+const Module = __nccwpck_require__(98188);
+const originalRequire = Module.prototype.require;
+let patched = false;
+// If we pass props on a project that angular doesn't know about,
+// it throws a warning that users see. We want to pass them still,
+// so older plugins writtin in Ng Devkit can update these.
+//
+// There are some props in here (root) that angular already knows about,
+// but it doesn't hurt to have them in here as well to help static analysis.
+exports.allowedProjectExtensions = [
+    'tags',
+    'implicitDependencies',
+    'configFilePath',
+    '$schema',
+    'generators',
+    'namedInputs',
+    'name',
+    'files',
+    'root',
+    'sourceRoot',
+    'projectType',
+    'release',
+    'includedScripts',
+    'metadata',
+];
+// If we pass props on the workspace that angular doesn't know about,
+// it throws a warning that users see. We want to pass them still,
+// so older plugins writtin in Ng Devkit can update these.
+//
+// There are some props in here (root) that angular already knows about,
+// but it doesn't hurt to have them in here as well to help static analysis.
+exports.allowedWorkspaceExtensions = [
+    'implicitDependencies',
+    'affected',
+    'defaultBase',
+    'tasksRunnerOptions',
+    'workspaceLayout',
+    'plugins',
+    'targetDefaults',
+    'files',
+    'generators',
+    'namedInputs',
+    'extends',
+    'cli',
+    'pluginsConfig',
+    'defaultProject',
+    'installation',
+    'release',
+    'nxCloudAccessToken',
+    'nxCloudId',
+    'nxCloudUrl',
+    'nxCloudEncryptionKey',
+    'parallel',
+    'cacheDirectory',
+    'useDaemonProcess',
+    'useInferencePlugins',
+    'neverConnectToCloud',
+    'sync',
+];
+if (!patched) {
+    Module.prototype.require = function () {
+        const result = originalRequire.apply(this, arguments);
+        if (arguments[0].startsWith('@angular-devkit/core')) {
+            const ngCoreWorkspace = originalRequire.apply(this, [
+                `@angular-devkit/core/src/workspace/core`,
+            ]);
+            mockReadWorkspace(ngCoreWorkspace);
+            const readJsonUtils = originalRequire.apply(this, [
+                `@angular-devkit/core/src/workspace/json/reader`,
+            ]);
+            mockReadJsonWorkspace(readJsonUtils);
+        }
+        return result;
+    };
+    try {
+        (__nccwpck_require__(55181).Version.assertCompatibleAngularVersion) =
+            () => { };
     }
-    if (pattern.length > MAX_PATTERN_LENGTH) {
-        throw new TypeError('pattern is too long');
+    catch (e) { }
+    try {
+        (__nccwpck_require__(55181).assertCompatibleAngularVersion) =
+            () => { };
     }
-};
-exports.assertValidPattern = assertValidPattern;
-//# sourceMappingURL=assert-valid-pattern.js.map
+    catch (e) { }
+    patched = true;
+}
+function mockReadWorkspace(ngCoreWorkspace) {
+    mockMember(ngCoreWorkspace, 'readWorkspace', (originalReadWorkspace) => (path, ...rest) => {
+        path = 'angular.json';
+        return originalReadWorkspace.apply(this, [path, ...rest]);
+    });
+}
+/**
+ * Patch readJsonWorkspace to handle workspaces without a central workspace file.
+ * NOTE: We hide warnings that would be logged during this process.
+ */
+function mockReadJsonWorkspace(readJsonUtils) {
+    mockMember(readJsonUtils, 'readJsonWorkspace', (originalReadJsonWorkspace) => async (path, host, options) => {
+        const modifiedOptions = {
+            ...options,
+            allowedProjectExtensions: exports.allowedProjectExtensions,
+            allowedWorkspaceExtensions: exports.allowedWorkspaceExtensions,
+        };
+        try {
+            // Attempt angular CLI default behaviour
+            return await originalReadJsonWorkspace(path, host, modifiedOptions);
+        }
+        catch {
+            // This failed. Its most likely due to a lack of a workspace definition file,
+            // or other things that are different between NgCLI and Nx config files.
+            const projectGraph = await (0, project_graph_1.createProjectGraphAsync)();
+            const nxJson = (0, configuration_1.readNxJson)();
+            // Construct old workspace.json format from project graph
+            const w = {
+                ...nxJson,
+                ...(0, project_graph_1.readProjectsConfigurationFromProjectGraph)(projectGraph),
+            };
+            // Read our v1 workspace schema
+            const workspaceConfiguration = (0, angular_json_1.toOldFormat)(w);
+            // readJsonWorkspace actually has AST parsing + more, so we
+            // still need to call it rather than just return our file
+            return originalReadJsonWorkspace.apply(this, [
+                'angular.json', // path name, doesn't matter
+                {
+                    // second arg is a host, only method used is readFile
+                    readFile: () => JSON.stringify(workspaceConfiguration),
+                },
+                modifiedOptions,
+            ]);
+        }
+    });
+}
+function mockMember(obj, method, factory) {
+    obj[method] = factory(obj[method]);
+}
+
 
 /***/ }),
 
-/***/ 81227:
+/***/ 96506:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
-// parse a single path portion
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.AST = void 0;
-const brace_expressions_js_1 = __nccwpck_require__(65180);
-const unescape_js_1 = __nccwpck_require__(40391);
-const types = new Set(['!', '?', '+', '*', '@']);
-const isExtglobType = (c) => types.has(c);
-// Patterns that get prepended to bind to the start of either the
-// entire string, or just a single path portion, to prevent dots
-// and/or traversal patterns, when needed.
-// Exts don't need the ^ or / bit, because the root binds that already.
-const startNoTraversal = '(?!(?:^|/)\\.\\.?(?:$|/))';
-const startNoDot = '(?!\\.)';
-// characters that indicate a start of pattern needs the "no dots" bit,
-// because a dot *might* be matched. ( is not in the list, because in
-// the case of a child extglob, it will handle the prevention itself.
-const addPatternStart = new Set(['[', '.']);
-// cases where traversal is A-OK, no dot prevention needed
-const justDots = new Set(['..', '.']);
-const reSpecials = new Set('().*{}+?[]^$\\!');
-const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
-// any single thing other than /
-const qmark = '[^/]';
-// * => any number of characters
-const star = qmark + '*?';
-// use + when we need to ensure that *something* matches, because the * is
-// the only thing in the path portion.
-const starNoEmpty = qmark + '+?';
-// remove the \ chars that we added if we end up doing a nonmagic compare
-// const deslash = (s: string) => s.replace(/\\(.)/g, '$1')
-class AST {
-    type;
-    #root;
-    #hasMagic;
-    #uflag = false;
-    #parts = [];
-    #parent;
-    #parentIndex;
-    #negs;
-    #filledNegs = false;
-    #options;
-    #toString;
-    // set to true if it's an extglob with no children
-    // (which really means one child of '')
-    #emptyExt = false;
-    constructor(type, parent, options = {}) {
-        this.type = type;
-        // extglobs are inherently magical
-        if (type)
-            this.#hasMagic = true;
-        this.#parent = parent;
-        this.#root = this.#parent ? this.#parent.#root : this;
-        this.#options = this.#root === this ? options : this.#root.#options;
-        this.#negs = this.#root === this ? [] : this.#root.#negs;
-        if (type === '!' && !this.#root.#filledNegs)
-            this.#negs.push(this);
-        this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
-    }
-    get hasMagic() {
-        /* c8 ignore start */
-        if (this.#hasMagic !== undefined)
-            return this.#hasMagic;
-        /* c8 ignore stop */
-        for (const p of this.#parts) {
-            if (typeof p === 'string')
-                continue;
-            if (p.type || p.hasMagic)
-                return (this.#hasMagic = true);
-        }
-        // note: will be undefined until we generate the regexp src and find out
-        return this.#hasMagic;
-    }
-    // reconstructs the pattern
-    toString() {
-        if (this.#toString !== undefined)
-            return this.#toString;
-        if (!this.type) {
-            return (this.#toString = this.#parts.map(p => String(p)).join(''));
+exports.getLogger = exports.NxScopeHostUsedForWrappedSchematics = exports.NxScopedHostForBuilders = exports.NxScopedHost = void 0;
+exports.createBuilderContext = createBuilderContext;
+exports.scheduleTarget = scheduleTarget;
+exports.arrayBufferToString = arrayBufferToString;
+exports.generate = generate;
+exports.runMigration = runMigration;
+exports.mockSchematicsForTesting = mockSchematicsForTesting;
+exports.wrapAngularDevkitSchematic = wrapAngularDevkitSchematic;
+const core_1 = __nccwpck_require__(6540);
+const node_1 = __nccwpck_require__(53383);
+const chalk = __nccwpck_require__(78818);
+const path_1 = __nccwpck_require__(71017);
+const rxjs_1 = __nccwpck_require__(1752);
+const operators_1 = __nccwpck_require__(50749);
+const tree_1 = __nccwpck_require__(10818);
+const json_1 = __nccwpck_require__(62629);
+const project_configuration_1 = __nccwpck_require__(24642);
+const project_graph_1 = __nccwpck_require__(54913);
+const fileutils_1 = __nccwpck_require__(40910);
+const installation_directory_1 = __nccwpck_require__(87836);
+const json_2 = __nccwpck_require__(54324);
+const logger_1 = __nccwpck_require__(37270);
+const package_json_1 = __nccwpck_require__(78618);
+const package_manager_1 = __nccwpck_require__(86822);
+const angular_json_1 = __nccwpck_require__(45205);
+const executor_utils_1 = __nccwpck_require__(84678);
+const plugins_1 = __nccwpck_require__(69461);
+const schema_utils_1 = __nccwpck_require__(62607);
+async function createBuilderContext(builderInfo, context) {
+    __nccwpck_require__(53882);
+    const fsHost = new NxScopedHostForBuilders(context.root);
+    // the top level import is not patched because it is imported before the
+    // patching happens so we require it here to use the patched version below
+    const { workspaces } = __nccwpck_require__(6540);
+    const { workspace } = await workspaces.readWorkspace('angular.json', workspaces.createWorkspaceHost(fsHost));
+    const architectHost = await getWrappedWorkspaceNodeModulesArchitectHost(workspace, context.root, context.projectsConfigurations.projects);
+    const registry = new core_1.schema.CoreSchemaRegistry();
+    registry.addPostTransform(core_1.schema.transforms.addUndefinedDefaults);
+    registry.addSmartDefaultProvider('unparsed', () => {
+        // This happens when context.scheduleTarget is used to run a target using nx:run-commands
+        return [];
+    });
+    const { Architect } = __nccwpck_require__(51516);
+    const architect = new Architect(architectHost, registry);
+    const { firstValueFrom } = __nccwpck_require__(1752);
+    const toPromise = (obs) => firstValueFrom ? firstValueFrom(obs) : obs.toPromise();
+    const validateOptions = (options, builderName) => toPromise(architect['_scheduler'].schedule('..validateOptions', [
+        builderName,
+        options,
+    ]).output);
+    const getProjectMetadata = (target) => toPromise(architect['_scheduler'].schedule('..getProjectMetadata', target).output);
+    const getBuilderNameForTarget = (target) => {
+        if (typeof target === 'string') {
+            return Promise.resolve(context.projectGraph.nodes[context.projectName].data.targets[target]
+                .executor);
+        }
+        return Promise.resolve(context.projectGraph.nodes[target.project].data.targets[target.target]
+            .executor);
+    };
+    const getTargetOptions = (target) => {
+        if (typeof target === 'string') {
+            return Promise.resolve({
+                ...context.projectGraph.nodes[context.projectName].data.targets[target]
+                    .options,
+            });
         }
-        else {
-            return (this.#toString =
-                this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');
+        return Promise.resolve({
+            ...context.projectGraph.nodes[target.project].data.targets[target.target]
+                .options,
+            ...context.projectGraph.nodes[target.project].data.targets[target.target]
+                .configurations[target.configuration],
+        });
+    };
+    const builderContext = {
+        workspaceRoot: context.root,
+        target: {
+            project: context.projectName,
+            target: context.targetName,
+            configuration: context.configurationName,
+        },
+        builder: {
+            ...builderInfo,
+        },
+        logger: (0, exports.getLogger)(),
+        id: 1,
+        currentDirectory: process.cwd(),
+        scheduleTarget: architect.scheduleTarget,
+        scheduleBuilder: architect.scheduleBuilder,
+        addTeardown(teardown) {
+            // No-op as Nx doesn't require an implementation of this function
+            return;
+        },
+        reportProgress(...args) {
+            // No-op as Nx doesn't require an implementation of this function
+            return;
+        },
+        reportRunning(...args) {
+            // No-op as Nx doesn't require an implementation of this function
+            return;
+        },
+        reportStatus(status) {
+            // No-op as Nx doesn't require an implementation of this function
+            return;
+        },
+        getBuilderNameForTarget,
+        getProjectMetadata,
+        validateOptions,
+        getTargetOptions,
+    };
+    return builderContext;
+}
+async function scheduleTarget(root, opts, verbose) {
+    const { Architect } = __nccwpck_require__(51516);
+    const logger = (0, exports.getLogger)(verbose);
+    const fsHost = new NxScopedHostForBuilders(root);
+    const { workspace } = await core_1.workspaces.readWorkspace('angular.json', core_1.workspaces.createWorkspaceHost(fsHost));
+    const registry = new core_1.schema.CoreSchemaRegistry();
+    registry.addPostTransform(core_1.schema.transforms.addUndefinedDefaults);
+    registry.addSmartDefaultProvider('unparsed', () => {
+        // This happens when context.scheduleTarget is used to run a target using nx:run-commands
+        return [];
+    });
+    const architectHost = await getWrappedWorkspaceNodeModulesArchitectHost(workspace, root, opts.projects);
+    const architect = new Architect(architectHost, registry);
+    const run = await architect.scheduleTarget({
+        project: opts.project,
+        target: opts.target,
+        configuration: opts.configuration,
+    }, opts.runOptions, { logger });
+    let lastOutputError;
+    return run.output.pipe((0, operators_1.tap)((output) => (lastOutputError = !output.success ? output.error : undefined), (error) => { }, // do nothing, this could be an intentional error
+    () => {
+        lastOutputError ? logger.error(lastOutputError) : 0;
+    }));
+}
+function createNodeModulesEngineHost(resolvePaths, projects) {
+    const NodeModulesEngineHost = (__nccwpck_require__(37276).NodeModulesEngineHost);
+    class NxNodeModulesEngineHost extends NodeModulesEngineHost {
+        constructor() {
+            super(resolvePaths);
         }
-    }
-    #fillNegs() {
-        /* c8 ignore start */
-        if (this !== this.#root)
-            throw new Error('should only call on root');
-        if (this.#filledNegs)
-            return this;
-        /* c8 ignore stop */
-        // call toString() once to fill this out
-        this.toString();
-        this.#filledNegs = true;
-        let n;
-        while ((n = this.#negs.pop())) {
-            if (n.type !== '!')
-                continue;
-            // walk up the tree, appending everthing that comes AFTER parentIndex
-            let p = n;
-            let pp = p.#parent;
-            while (pp) {
-                for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
-                    for (const part of n.#parts) {
-                        /* c8 ignore start */
-                        if (typeof part === 'string') {
-                            throw new Error('string part in extglob AST??');
-                        }
-                        /* c8 ignore stop */
-                        part.copyIn(pp.#parts[i]);
-                    }
+        _resolveCollectionPath(name, requester) {
+            let collectionFilePath;
+            const paths = requester
+                ? [(0, path_1.dirname)(requester), ...(resolvePaths || [])]
+                : resolvePaths || [];
+            if (name.endsWith('.json')) {
+                collectionFilePath = __nccwpck_require__(30024).resolve(name, { paths });
+            }
+            else {
+                const { json: { generators, schematics }, path: packageJsonPath, } = (0, plugins_1.readPluginPackageJson)(name, projects, paths);
+                if (!schematics && !generators) {
+                    throw new Error(`The "${name}" package does not support Nx generators or Angular Devkit schematics.`);
                 }
-                p = pp;
-                pp = p.#parent;
+                collectionFilePath = /*require.resolve*/(__nccwpck_require__(30024).resolve((0, path_1.join)((0, path_1.dirname)(packageJsonPath), schematics ?? generators)));
             }
+            return collectionFilePath;
         }
-        return this;
-    }
-    push(...parts) {
-        for (const p of parts) {
-            if (p === '')
-                continue;
-            /* c8 ignore start */
-            if (typeof p !== 'string' && !(p instanceof AST && p.#parent === this)) {
-                throw new Error('invalid part: ' + p);
-            }
-            /* c8 ignore stop */
-            this.#parts.push(p);
+        _transformCollectionDescription(name, desc) {
+            desc.schematics ??= desc.generators;
+            return super._transformCollectionDescription(name, desc);
         }
     }
-    toJSON() {
-        const ret = this.type === null
-            ? this.#parts.slice().map(p => (typeof p === 'string' ? p : p.toJSON()))
-            : [this.type, ...this.#parts.map(p => p.toJSON())];
-        if (this.isStart() && !this.type)
-            ret.unshift([]);
-        if (this.isEnd() &&
-            (this === this.#root ||
-                (this.#root.#filledNegs && this.#parent?.type === '!'))) {
-            ret.push({});
+    return new NxNodeModulesEngineHost();
+}
+function createWorkflow(fsHost, root, opts, projects) {
+    const NodeWorkflow = (__nccwpck_require__(37276).NodeWorkflow);
+    const workflow = new NodeWorkflow(fsHost, {
+        force: false,
+        dryRun: opts.dryRun,
+        packageManager: (0, package_manager_1.detectPackageManager)(),
+        root: (0, core_1.normalize)(root),
+        registry: new core_1.schema.CoreSchemaRegistry((__nccwpck_require__(55140).formats.standardFormats)),
+        resolvePaths: [process.cwd(), root],
+        engineHostCreator: (options) => createNodeModulesEngineHost(options.resolvePaths, projects),
+    });
+    workflow.registry.addPostTransform(core_1.schema.transforms.addUndefinedDefaults);
+    workflow.engineHost.registerOptionsTransform((__nccwpck_require__(37276).validateOptionsWithSchema)(workflow.registry));
+    if (opts.interactive) {
+        workflow.registry.usePromptProvider(createPromptProvider());
+    }
+    return workflow;
+}
+function getCollection(workflow, name) {
+    const collection = workflow.engine.createCollection(name);
+    if (!collection)
+        throw new Error(`Cannot find collection '${name}'`);
+    return collection;
+}
+async function createRecorder(host, record, logger) {
+    return (event) => {
+        let eventPath = event.path.startsWith('/')
+            ? event.path.slice(1)
+            : event.path;
+        if (event.kind === 'error') {
+            record.error = true;
+            logger.warn(`ERROR! ${eventPath} ${event.description == 'alreadyExist'
+                ? 'already exists'
+                : 'does not exist.'}.`);
+        }
+        else if (event.kind === 'update') {
+            record.loggingQueue.push(core_1.tags.oneLine `${chalk.white('UPDATE')} ${eventPath}`);
+        }
+        else if (event.kind === 'create') {
+            record.loggingQueue.push(core_1.tags.oneLine `${chalk.green('CREATE')} ${eventPath}`);
+        }
+        else if (event.kind === 'delete') {
+            record.loggingQueue.push(`${chalk.yellow('DELETE')} ${eventPath}`);
+        }
+        else if (event.kind === 'rename') {
+            record.loggingQueue.push(`${chalk.blue('RENAME')} ${eventPath} => ${event.to}`);
         }
-        return ret;
+    };
+}
+async function runSchematic(host, root, workflow, logger, opts, schematic, printDryRunMessage = true, recorder = null) {
+    const record = { loggingQueue: [], error: false };
+    workflow.reporter.subscribe(recorder || (await createRecorder(host, record, logger)));
+    try {
+        await workflow
+            .execute({
+            collection: opts.collectionName,
+            schematic: opts.generatorName,
+            options: opts.generatorOptions,
+            debug: false,
+            logger,
+        })
+            .toPromise();
     }
-    isStart() {
-        if (this.#root === this)
-            return true;
-        // if (this.type) return !!this.#parent?.isStart()
-        if (!this.#parent?.isStart())
-            return false;
-        if (this.#parentIndex === 0)
-            return true;
-        // if everything AHEAD of this is a negation, then it's still the "start"
-        const p = this.#parent;
-        for (let i = 0; i < this.#parentIndex; i++) {
-            const pp = p.#parts[i];
-            if (!(pp instanceof AST && pp.type === '!')) {
-                return false;
-            }
-        }
-        return true;
+    catch (e) {
+        console.error(e);
+        throw e;
     }
-    isEnd() {
-        if (this.#root === this)
-            return true;
-        if (this.#parent?.type === '!')
-            return true;
-        if (!this.#parent?.isEnd())
-            return false;
-        if (!this.type)
-            return this.#parent?.isEnd();
-        // if not root, it'll always have a parent
-        /* c8 ignore start */
-        const pl = this.#parent ? this.#parent.#parts.length : 0;
-        /* c8 ignore stop */
-        return this.#parentIndex === pl - 1;
+    if (!record.error) {
+        record.loggingQueue.forEach((log) => logger.info(log));
     }
-    copyIn(part) {
-        if (typeof part === 'string')
-            this.push(part);
-        else
-            this.push(part.clone(this));
+    if (opts.dryRun && printDryRunMessage) {
+        logger.warn(`\nNOTE: The "dryRun" flag means no changes were made.`);
     }
-    clone(parent) {
-        const c = new AST(this.type, parent);
-        for (const p of this.#parts) {
-            c.copyIn(p);
-        }
-        return c;
+    return { status: 0, loggingQueue: record.loggingQueue };
+}
+class NxScopedHost extends core_1.virtualFs.ScopedHost {
+    constructor(root) {
+        super(new node_1.NodeJsSyncHost(), (0, core_1.normalize)(root));
+        this.root = root;
     }
-    static #parseAST(str, ast, pos, opt) {
-        let escaping = false;
-        let inBrace = false;
-        let braceStart = -1;
-        let braceNeg = false;
-        if (ast.type === null) {
-            // outside of a extglob, append until we find a start
-            let i = pos;
-            let acc = '';
-            while (i < str.length) {
-                const c = str.charAt(i++);
-                // still accumulate escapes at this point, but we do ignore
-                // starts that are escaped
-                if (escaping || c === '\\') {
-                    escaping = !escaping;
-                    acc += c;
-                    continue;
+    read(path) {
+        if ((path === 'angular.json' || path === '/angular.json') &&
+            (0, angular_json_1.isAngularPluginInstalled)()) {
+            return this.readMergedWorkspaceConfiguration().pipe((0, operators_1.map)((r) => Buffer.from(JSON.stringify((0, angular_json_1.toOldFormat)(r)))));
+        }
+        else {
+            return super.read(path);
+        }
+    }
+    readMergedWorkspaceConfiguration() {
+        return (0, rxjs_1.zip)((0, rxjs_1.from)((0, project_graph_1.createProjectGraphAsync)()), this.readExistingAngularJson(), this.readJson('nx.json')).pipe((0, operators_1.concatMap)(([graph, angularJson, nxJson]) => {
+            const workspaceConfig = (angularJson || { projects: {} });
+            workspaceConfig.cli ??= nxJson.cli;
+            workspaceConfig.schematics ??= nxJson.generators;
+            const projectJsonReads = [];
+            for (let projectName of Object.keys(graph.nodes)) {
+                if (!workspaceConfig.projects[projectName]) {
+                    projectJsonReads.push((0, rxjs_1.zip)((0, rxjs_1.of)(projectName), this.readJson((0, path_1.join)(graph.nodes[projectName].data.root, 'project.json'))));
                 }
-                if (inBrace) {
-                    if (i === braceStart + 1) {
-                        if (c === '^' || c === '!') {
-                            braceNeg = true;
-                        }
+            }
+            return (0, rxjs_1.zip)(...projectJsonReads).pipe((0, operators_1.map)((reads) => {
+                reads
+                    .filter(([, p]) => p !== null)
+                    .forEach(([projectName, project]) => {
+                    workspaceConfig.projects[projectName] = {
+                        ...project,
+                        root: graph.nodes[projectName].data.root,
+                    };
+                });
+                return workspaceConfig;
+            }));
+        }), (0, operators_1.catchError)((err) => {
+            console.error('Unable to read angular.json');
+            console.error(err);
+            process.exit(1);
+        }));
+    }
+    write(path, content) {
+        if (path === 'angular.json' || path === '/angular.json') {
+            const configV2 = (0, angular_json_1.toNewFormat)((0, json_2.parseJson)(content.toString()));
+            const root = this.root;
+            return (0, rxjs_1.zip)(this.readMergedWorkspaceConfiguration(), this.readExistingAngularJson()).pipe((0, operators_1.concatMap)((arg) => {
+                const existingConfig = arg[0];
+                const existingAngularJson = arg[1];
+                const projectsInAngularJson = existingAngularJson
+                    ? Object.keys(existingAngularJson.projects)
+                    : [];
+                const projects = configV2.projects;
+                const allObservables = [];
+                Object.keys(projects).forEach((projectName) => {
+                    if (projectsInAngularJson.includes(projectName)) {
+                        // ignore updates to angular.json
                     }
-                    else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
-                        inBrace = false;
+                    else {
+                        (0, project_configuration_1.updateProjectConfiguration)({
+                            root,
+                            exists: () => true,
+                            write: (path, content) => {
+                                if (existingConfig.projects[projectName]) {
+                                    const updatedContent = this.mergeProjectConfiguration(existingConfig.projects[projectName], projects[projectName], projectName);
+                                    if (updatedContent) {
+                                        delete updatedContent.root;
+                                        allObservables.push(super.write(path, Buffer.from(JSON.stringify(updatedContent, null, 2))));
+                                    }
+                                }
+                                else {
+                                    allObservables.push(super.write(path, Buffer.from(content)));
+                                }
+                            },
+                        }, projectName, projects[projectName]);
                     }
-                    acc += c;
-                    continue;
-                }
-                else if (c === '[') {
-                    inBrace = true;
-                    braceStart = i;
-                    braceNeg = false;
-                    acc += c;
-                    continue;
-                }
-                if (!opt.noext && isExtglobType(c) && str.charAt(i) === '(') {
-                    ast.push(acc);
-                    acc = '';
-                    const ext = new AST(c, ast);
-                    i = AST.#parseAST(str, ext, i, opt);
-                    ast.push(ext);
-                    continue;
+                });
+                return (0, rxjs_1.concat)(...allObservables);
+            }));
+        }
+        else {
+            return super.write(path, content);
+        }
+    }
+    isFile(path) {
+        if (path === 'angular.json' || path === '/angular.json') {
+            return (0, rxjs_1.of)(true);
+        }
+        else {
+            return super.isFile(path);
+        }
+    }
+    exists(path) {
+        if (path === 'angular.json' || path === '/angular.json') {
+            return (0, rxjs_1.of)(true);
+        }
+        else {
+            return super.exists(path);
+        }
+    }
+    mergeProjectConfiguration(existing, updated, projectName) {
+        const res = { ...existing };
+        let modified = false;
+        function updatePropertyIfDifferent(property) {
+            if (typeof res[property] === 'string') {
+                if (res[property] !== updated[property]) {
+                    res[property] = updated[property];
+                    modified = true;
                 }
-                acc += c;
             }
-            ast.push(acc);
-            return i;
+            else if (JSON.stringify(res[property]) !== JSON.stringify(updated[property])) {
+                res[property] = updated[property];
+                modified = true;
+            }
         }
-        // some kind of extglob, pos is at the (
-        // find the next | or )
-        let i = pos + 1;
-        let part = new AST(null, ast);
-        const parts = [];
-        let acc = '';
-        while (i < str.length) {
-            const c = str.charAt(i++);
-            // still accumulate escapes at this point, but we do ignore
-            // starts that are escaped
-            if (escaping || c === '\\') {
-                escaping = !escaping;
-                acc += c;
-                continue;
+        if (!res.name || (updated.name && res.name !== updated.name)) {
+            res.name ??= updated.name || projectName;
+            modified = true;
+        }
+        updatePropertyIfDifferent('projectType');
+        updatePropertyIfDifferent('sourceRoot');
+        updatePropertyIfDifferent('prefix');
+        updatePropertyIfDifferent('targets');
+        updatePropertyIfDifferent('generators');
+        updatePropertyIfDifferent('implicitDependencies');
+        updatePropertyIfDifferent('tags');
+        return modified ? res : null;
+    }
+    readExistingAngularJson() {
+        return this.readJson('angular.json');
+    }
+    readJson(path) {
+        return super
+            .exists(path)
+            .pipe((0, operators_1.concatMap)((r) => r
+            ? super
+                .read(path)
+                .pipe((0, operators_1.map)((r) => (0, json_2.parseJson)(arrayBufferToString(r))))
+            : (0, rxjs_1.of)(null)));
+    }
+}
+exports.NxScopedHost = NxScopedHost;
+/**
+ * Host used by Angular CLI builders. It reads the project configurations from
+ * the project graph to access the expanded targets.
+ */
+class NxScopedHostForBuilders extends NxScopedHost {
+    readMergedWorkspaceConfiguration() {
+        return (0, rxjs_1.zip)((0, rxjs_1.from)((0, project_graph_1.createProjectGraphAsync)()), this.readExistingAngularJson(), this.readJson('nx.json')).pipe((0, operators_1.map)(([graph, angularJson, nxJson]) => {
+            const workspaceConfig = (angularJson || { projects: {} });
+            workspaceConfig.cli ??= nxJson.cli;
+            workspaceConfig.schematics ??= nxJson.generators;
+            for (const projectName of Object.keys(graph.nodes)) {
+                workspaceConfig.projects[projectName] ??= {
+                    ...graph.nodes[projectName].data,
+                };
             }
-            if (inBrace) {
-                if (i === braceStart + 1) {
-                    if (c === '^' || c === '!') {
-                        braceNeg = true;
-                    }
+            return workspaceConfig;
+        }), (0, operators_1.catchError)((err) => {
+            console.error('Unable to read angular.json');
+            console.error(err);
+            process.exit(1);
+        }));
+    }
+}
+exports.NxScopedHostForBuilders = NxScopedHostForBuilders;
+function arrayBufferToString(buffer) {
+    const array = new Uint8Array(buffer);
+    let result = '';
+    const chunkSize = 8 * 1024;
+    let i = 0;
+    for (i = 0; i < array.length / chunkSize; i++) {
+        result += String.fromCharCode.apply(null, array.subarray(i * chunkSize, (i + 1) * chunkSize));
+    }
+    result += String.fromCharCode.apply(null, array.subarray(i * chunkSize));
+    return result;
+}
+/**
+ * Host used by Angular CLI schematics. It reads the project configurations from
+ * the project configuration files.
+ */
+class NxScopeHostUsedForWrappedSchematics extends NxScopedHost {
+    constructor(root, host) {
+        super(root);
+        this.host = host;
+    }
+    read(path) {
+        if ((path === 'angular.json' || path === '/angular.json') &&
+            (0, angular_json_1.isAngularPluginInstalled)()) {
+            const projectJsonConfig = (0, angular_json_1.toOldFormat)({
+                projects: Object.fromEntries((0, project_configuration_1.getProjects)(this.host)),
+            });
+            return super.readExistingAngularJson().pipe((0, operators_1.map)((angularJson) => {
+                if (angularJson) {
+                    return Buffer.from(JSON.stringify({
+                        version: 1,
+                        projects: {
+                            ...projectJsonConfig.projects,
+                            ...angularJson.projects,
+                        },
+                    }));
                 }
-                else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
-                    inBrace = false;
+                else {
+                    return Buffer.from(JSON.stringify(projectJsonConfig));
                 }
-                acc += c;
-                continue;
-            }
-            else if (c === '[') {
-                inBrace = true;
-                braceStart = i;
-                braceNeg = false;
-                acc += c;
-                continue;
-            }
-            if (isExtglobType(c) && str.charAt(i) === '(') {
-                part.push(acc);
-                acc = '';
-                const ext = new AST(c, part);
-                part.push(ext);
-                i = AST.#parseAST(str, ext, i, opt);
-                continue;
-            }
-            if (c === '|') {
-                part.push(acc);
-                acc = '';
-                parts.push(part);
-                part = new AST(null, ast);
-                continue;
+            }));
+        }
+        else {
+            const match = findMatchingFileChange(this.host, path);
+            if (match) {
+                return (0, rxjs_1.of)(Buffer.from(match.content));
             }
-            if (c === ')') {
-                if (acc === '' && ast.#parts.length === 0) {
-                    ast.#emptyExt = true;
-                }
-                part.push(acc);
-                acc = '';
-                ast.push(...parts, part);
-                return i;
+            else {
+                return super.read(path);
             }
-            acc += c;
         }
-        // unfinished extglob
-        // if we got here, it was a malformed extglob! not an extglob, but
-        // maybe something else in there.
-        ast.type = null;
-        ast.#hasMagic = undefined;
-        ast.#parts = [str.substring(pos - 1)];
-        return i;
-    }
-    static fromGlob(pattern, options = {}) {
-        const ast = new AST(null, undefined, options);
-        AST.#parseAST(pattern, ast, 0, options);
-        return ast;
     }
-    // returns the regular expression if there's magic, or the unescaped
-    // string if not.
-    toMMPattern() {
-        // should only be called on root
-        /* c8 ignore start */
-        if (this !== this.#root)
-            return this.#root.toMMPattern();
-        /* c8 ignore stop */
-        const glob = this.toString();
-        const [re, body, hasMagic, uflag] = this.toRegExpSource();
-        // if we're in nocase mode, and not nocaseMagicOnly, then we do
-        // still need a regular expression if we have to case-insensitively
-        // match capital/lowercase characters.
-        const anyMagic = hasMagic ||
-            this.#hasMagic ||
-            (this.#options.nocase &&
-                !this.#options.nocaseMagicOnly &&
-                glob.toUpperCase() !== glob.toLowerCase());
-        if (!anyMagic) {
-            return body;
+    exists(path) {
+        if (this.host.exists(path)) {
+            return (0, rxjs_1.of)(true);
+        }
+        else if (path === 'angular.json' || path === '/angular.json') {
+            return (0, rxjs_1.of)(true);
+        }
+        else {
+            return super.exists(path);
         }
-        const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '');
-        return Object.assign(new RegExp(`^${re}$`, flags), {
-            _src: re,
-            _glob: glob,
-        });
     }
-    // returns the string match, the regexp source, whether there's magic
-    // in the regexp (so a regular expression is required) and whether or
-    // not the uflag is needed for the regular expression (for posix classes)
-    // TODO: instead of injecting the start/end at this point, just return
-    // the BODY of the regexp, along with the start/end portions suitable
-    // for binding the start/end in either a joined full-path makeRe context
-    // (where we bind to (^|/), or a standalone matchPart context (where
-    // we bind to ^, and not /).  Otherwise slashes get duped!
-    //
-    // In part-matching mode, the start is:
-    // - if not isStart: nothing
-    // - if traversal possible, but not allowed: ^(?!\.\.?$)
-    // - if dots allowed or not possible: ^
-    // - if dots possible and not allowed: ^(?!\.)
-    // end is:
-    // - if not isEnd(): nothing
-    // - else: $
-    //
-    // In full-path matching mode, we put the slash at the START of the
-    // pattern, so start is:
-    // - if first pattern: same as part-matching mode
-    // - if not isStart(): nothing
-    // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
-    // - if dots allowed or not possible: /
-    // - if dots possible and not allowed: /(?!\.)
-    // end is:
-    // - if last pattern, same as part-matching mode
-    // - else nothing
-    //
-    // Always put the (?:$|/) on negated tails, though, because that has to be
-    // there to bind the end of the negated pattern portion, and it's easier to
-    // just stick it in now rather than try to inject it later in the middle of
-    // the pattern.
-    //
-    // We can just always return the same end, and leave it up to the caller
-    // to know whether it's going to be used joined or in parts.
-    // And, if the start is adjusted slightly, can do the same there:
-    // - if not isStart: nothing
-    // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
-    // - if dots allowed or not possible: (?:/|^)
-    // - if dots possible and not allowed: (?:/|^)(?!\.)
-    //
-    // But it's better to have a simpler binding without a conditional, for
-    // performance, so probably better to return both start options.
-    //
-    // Then the caller just ignores the end if it's not the first pattern,
-    // and the start always gets applied.
-    //
-    // But that's always going to be $ if it's the ending pattern, or nothing,
-    // so the caller can just attach $ at the end of the pattern when building.
-    //
-    // So the todo is:
-    // - better detect what kind of start is needed
-    // - return both flavors of starting pattern
-    // - attach $ at the end of the pattern when creating the actual RegExp
-    //
-    // Ah, but wait, no, that all only applies to the root when the first pattern
-    // is not an extglob. If the first pattern IS an extglob, then we need all
-    // that dot prevention biz to live in the extglob portions, because eg
-    // +(*|.x*) can match .xy but not .yx.
-    //
-    // So, return the two flavors if it's #root and the first child is not an
-    // AST, otherwise leave it to the child AST to handle it, and there,
-    // use the (?:^|/) style of start binding.
-    //
-    // Even simplified further:
-    // - Since the start for a join is eg /(?!\.) and the start for a part
-    // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
-    // or start or whatever) and prepend ^ or / at the Regexp construction.
-    toRegExpSource(allowDot) {
-        const dot = allowDot ?? !!this.#options.dot;
-        if (this.#root === this)
-            this.#fillNegs();
-        if (!this.type) {
-            const noEmpty = this.isStart() && this.isEnd();
-            const src = this.#parts
-                .map(p => {
-                const [re, _, hasMagic, uflag] = typeof p === 'string'
-                    ? AST.#parseGlob(p, this.#hasMagic, noEmpty)
-                    : p.toRegExpSource(allowDot);
-                this.#hasMagic = this.#hasMagic || hasMagic;
-                this.#uflag = this.#uflag || uflag;
-                return re;
-            })
-                .join('');
-            let start = '';
-            if (this.isStart()) {
-                if (typeof this.#parts[0] === 'string') {
-                    // this is the string that will match the start of the pattern,
-                    // so we need to protect against dots and such.
-                    // '.' and '..' cannot match unless the pattern is that exactly,
-                    // even if it starts with . or dot:true is set.
-                    const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
-                    if (!dotTravAllowed) {
-                        const aps = addPatternStart;
-                        // check if we have a possibility of matching . or ..,
-                        // and prevent that.
-                        const needNoTrav = 
-                        // dots are allowed, and the pattern starts with [ or .
-                        (dot && aps.has(src.charAt(0))) ||
-                            // the pattern starts with \., and then [ or .
-                            (src.startsWith('\\.') && aps.has(src.charAt(2))) ||
-                            // the pattern starts with \.\., and then [ or .
-                            (src.startsWith('\\.\\.') && aps.has(src.charAt(4)));
-                        // no need to prevent dots if it can't match a dot, or if a
-                        // sub-pattern will be preventing it anyway.
-                        const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
-                        start = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : '';
-                    }
-                }
-            }
-            // append the "end of path portion" pattern to negation tails
-            let end = '';
-            if (this.isEnd() &&
-                this.#root.#filledNegs &&
-                this.#parent?.type === '!') {
-                end = '(?:$|\\/)';
-            }
-            const final = start + src + end;
-            return [
-                final,
-                (0, unescape_js_1.unescape)(src),
-                (this.#hasMagic = !!this.#hasMagic),
-                this.#uflag,
-            ];
+    isDirectory(path) {
+        if (this.host.exists(path) && !this.host.isFile(path)) {
+            return (0, rxjs_1.of)(true);
         }
-        // We need to calculate the body *twice* if it's a repeat pattern
-        // at the start, once in nodot mode, then again in dot mode, so a
-        // pattern like *(?) can match 'x.y'
-        const repeated = this.type === '*' || this.type === '+';
-        // some kind of extglob
-        const start = this.type === '!' ? '(?:(?!(?:' : '(?:';
-        let body = this.#partsToRegExp(dot);
-        if (this.isStart() && this.isEnd() && !body && this.type !== '!') {
-            // invalid extglob, has to at least be *something* present, if it's
-            // the entire path portion.
-            const s = this.toString();
-            this.#parts = [s];
-            this.type = null;
-            this.#hasMagic = undefined;
-            return [s, (0, unescape_js_1.unescape)(this.toString()), false, false];
+        else if (path === 'angular.json' || path === '/angular.json') {
+            return (0, rxjs_1.of)(false);
         }
-        // XXX abstract out this map method
-        let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot
-            ? ''
-            : this.#partsToRegExp(true);
-        if (bodyDotAllowed === body) {
-            bodyDotAllowed = '';
+        else {
+            return super.isDirectory(path);
         }
-        if (bodyDotAllowed) {
-            body = `(?:${body})(?:${bodyDotAllowed})*?`;
+    }
+    isFile(path) {
+        if (this.host.isFile(path)) {
+            return (0, rxjs_1.of)(true);
         }
-        // an empty !() is exactly equivalent to a starNoEmpty
-        let final = '';
-        if (this.type === '!' && this.#emptyExt) {
-            final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty;
+        else if (path === 'angular.json' || path === '/angular.json') {
+            return (0, rxjs_1.of)(true);
         }
         else {
-            const close = this.type === '!'
-                ? // !() must match something,but !(x) can match ''
-                    '))' +
-                        (this.isStart() && !dot && !allowDot ? startNoDot : '') +
-                        star +
-                        ')'
-                : this.type === '@'
-                    ? ')'
-                    : this.type === '?'
-                        ? ')?'
-                        : this.type === '+' && bodyDotAllowed
-                            ? ')'
-                            : this.type === '*' && bodyDotAllowed
-                                ? `)?`
-                                : `)${this.type}`;
-            final = start + body + close;
+            return super.isFile(path);
         }
-        return [
-            final,
-            (0, unescape_js_1.unescape)(body),
-            (this.#hasMagic = !!this.#hasMagic),
-            this.#uflag,
-        ];
     }
-    #partsToRegExp(dot) {
-        return this.#parts
-            .map(p => {
-            // extglob ASTs should only contain parent ASTs
-            /* c8 ignore start */
-            if (typeof p === 'string') {
-                throw new Error('string type in extglob ast??');
-            }
-            /* c8 ignore stop */
-            // can ignore hasMagic, because extglobs are already always magic
-            const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
-            this.#uflag = this.#uflag || uflag;
-            return re;
-        })
-            .filter(p => !(this.isStart() && this.isEnd()) || !!p)
-            .join('|');
+    list(path) {
+        const fragments = this.host.children(path).map((child) => (0, core_1.fragment)(child));
+        return (0, rxjs_1.of)(fragments);
     }
-    static #parseGlob(glob, hasMagic, noEmpty = false) {
-        let escaping = false;
-        let re = '';
-        let uflag = false;
-        for (let i = 0; i < glob.length; i++) {
-            const c = glob.charAt(i);
-            if (escaping) {
-                escaping = false;
-                re += (reSpecials.has(c) ? '\\' : '') + c;
-                continue;
+}
+exports.NxScopeHostUsedForWrappedSchematics = NxScopeHostUsedForWrappedSchematics;
+function findMatchingFileChange(host, path) {
+    const targetPath = (0, core_1.normalize)(path.startsWith('/') ? path.substring(1) : path.toString());
+    return host
+        .listChanges()
+        .find((f) => f.type !== 'DELETE' && (0, core_1.normalize)(f.path) === targetPath);
+}
+async function generate(root, opts, projects, verbose) {
+    const logger = (0, exports.getLogger)(verbose);
+    const fsHost = new NxScopeHostUsedForWrappedSchematics(root, new tree_1.FsTree(root, verbose, `ng-cli generator: ${opts.collectionName}:${opts.generatorName}`));
+    const workflow = createWorkflow(fsHost, root, opts, projects);
+    const collection = getCollection(workflow, opts.collectionName);
+    const schematic = collection.createSchematic(opts.generatorName, true);
+    return (await runSchematic(fsHost, root, workflow, logger, { ...opts, generatorName: schematic.description.name }, schematic)).status;
+}
+function createPromptProvider() {
+    return (definitions) => {
+        const questions = definitions.map((definition) => {
+            const question = {
+                name: definition.id,
+                message: definition.message,
+            };
+            if (definition.default) {
+                question.initial = definition.default;
+            }
+            const validator = definition.validator;
+            if (validator) {
+                question.validate = (input) => validator(input);
+            }
+            switch (definition.type) {
+                case 'string':
+                case 'input':
+                    return { ...question, type: 'input' };
+                case 'boolean':
+                case 'confirmation':
+                case 'confirm':
+                    return { ...question, type: 'confirm' };
+                case 'number':
+                case 'numeral':
+                    return { ...question, type: 'numeral' };
+                case 'list':
+                    return {
+                        ...question,
+                        type: !!definition.multiselect ? 'multiselect' : 'select',
+                        choices: definition.items &&
+                            definition.items.map((item) => {
+                                if (typeof item == 'string') {
+                                    return item;
+                                }
+                                else {
+                                    return {
+                                        message: item.label,
+                                        name: item.value,
+                                    };
+                                }
+                            }),
+                    };
+                default:
+                    return { ...question, type: definition.type };
             }
-            if (c === '\\') {
-                if (i === glob.length - 1) {
-                    re += '\\\\';
+        });
+        return (__nccwpck_require__(56587).prompt)(questions);
+    };
+}
+async function runMigration(root, packageName, migrationName, projects, isVerbose) {
+    const logger = (0, exports.getLogger)(isVerbose);
+    const fsHost = new NxScopeHostUsedForWrappedSchematics(root, new tree_1.FsTree(root, isVerbose, `ng-cli migration: ${packageName}:${migrationName}`));
+    const workflow = createWorkflow(fsHost, root, {}, projects);
+    const collection = resolveMigrationsCollection(packageName);
+    const record = { loggingQueue: [], error: false };
+    workflow.reporter.subscribe(await createRecorder(fsHost, record, logger));
+    await workflow
+        .execute({
+        collection,
+        schematic: migrationName,
+        options: {},
+        debug: false,
+        logger: logger,
+    })
+        .toPromise();
+    return {
+        loggingQueue: record.loggingQueue,
+        madeChanges: record.loggingQueue.length > 0,
+    };
+}
+function resolveMigrationsCollection(name) {
+    let collectionPath = undefined;
+    if (name.startsWith('.') || name.startsWith('/')) {
+        name = (0, path_1.resolve)(name);
+    }
+    if ((0, path_1.extname)(name)) {
+        collectionPath = /*require.resolve*/(__nccwpck_require__(30024).resolve(name));
+    }
+    else {
+        const { path: packageJsonPath, packageJson } = (0, package_json_1.readModulePackageJson)(name, (0, installation_directory_1.getNxRequirePaths)(process.cwd()));
+        let pkgJsonSchematics = packageJson['nx-migrations'] ?? packageJson['ng-update'];
+        if (!pkgJsonSchematics) {
+            throw new Error(`Could not find migrations in package: "${name}"`);
+        }
+        if (typeof pkgJsonSchematics != 'string') {
+            pkgJsonSchematics = pkgJsonSchematics.migrations;
+        }
+        collectionPath = __nccwpck_require__(30024).resolve(pkgJsonSchematics, {
+            paths: [(0, path_1.dirname)(packageJsonPath)],
+        });
+    }
+    try {
+        if (collectionPath) {
+            (0, fileutils_1.readJsonFile)(collectionPath);
+            return collectionPath;
+        }
+    }
+    catch {
+        throw new Error(`Invalid migration file in package: "${name}"`);
+    }
+    throw new Error(`Collection cannot be resolved: "${name}"`);
+}
+let collectionResolutionOverrides = null;
+let mockedSchematics = null;
+/**
+ * If you have an Nx Devkit generator invoking the wrapped Angular Devkit schematic,
+ * and you don't want the Angular Devkit schematic to run, you can mock it up using this function.
+ *
+ * Unfortunately, there are some edge cases in the Nx-Angular devkit integration that
+ * can be seen in the unit tests context. This function is useful for handling that as well.
+ *
+ * In this case, you can mock it up.
+ *
+ * Example:
+ *
+ * ```typescript
+ *   mockSchematicsForTesting({
+ *     'mycollection:myschematic': (tree, params) => {
+ *        tree.write("README.md");
+ *     }
+ *   });
+ *
+ * ```
+ */
+function mockSchematicsForTesting(schematics) {
+    mockedSchematics = schematics;
+}
+function wrapAngularDevkitSchematic(collectionName, generatorName) {
+    // This is idempotent, if it happens to get called
+    // multiple times its no big deal. It ensures that some
+    // patches are applied to @angular-devkit code which
+    // are necessary. For the most part, our wrapped host hits
+    // the necessary areas, but for some things it wouldn't make
+    // sense for the adapter to be 100% accurate.
+    //
+    // e.g. Angular warns about tags, but some angular CLI schematics
+    // were written with Nx in mind, and may care about tags.
+    __nccwpck_require__(53882);
+    return async (host, generatorOptions) => {
+        const graph = await (0, project_graph_1.createProjectGraphAsync)();
+        const { projects } = (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(graph);
+        if (mockedSchematics &&
+            mockedSchematics[`${collectionName}:${generatorName}`]) {
+            return await mockedSchematics[`${collectionName}:${generatorName}`](host, generatorOptions);
+        }
+        const recorder = (event) => {
+            let eventPath = event.path.startsWith('/')
+                ? event.path.slice(1)
+                : event.path;
+            if (event.kind === 'error') {
+            }
+            else if (event.kind === 'update') {
+                // Apply special handling for the angular.json file, but only when in an Nx workspace
+                if (eventPath === 'angular.json' && (0, angular_json_1.isAngularPluginInstalled)()) {
+                    saveProjectsConfigurationsInWrappedSchematic(host, event.content.toString());
                 }
                 else {
-                    escaping = true;
+                    host.write(eventPath, event.content);
                 }
-                continue;
             }
-            if (c === '[') {
-                const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i);
-                if (consumed) {
-                    re += src;
-                    uflag = uflag || needUflag;
-                    i += consumed - 1;
-                    hasMagic = hasMagic || magic;
-                    continue;
+            else if (event.kind === 'create') {
+                host.write(eventPath, event.content);
+            }
+            else if (event.kind === 'delete') {
+                host.delete(eventPath);
+            }
+            else if (event.kind === 'rename') {
+                host.rename(eventPath, event.to);
+            }
+        };
+        const fsHost = new NxScopeHostUsedForWrappedSchematics(host.root, host);
+        const logger = (0, exports.getLogger)(generatorOptions.verbose);
+        const options = {
+            generatorOptions,
+            dryRun: true,
+            interactive: false,
+            help: false,
+            debug: false,
+            collectionName,
+            generatorName,
+            force: false,
+            defaults: false,
+            quiet: false,
+        };
+        const workflow = createWorkflow(fsHost, host.root, options, projects);
+        // used for testing
+        if (collectionResolutionOverrides) {
+            const r = workflow.engineHost.resolve;
+            workflow.engineHost.resolve = (collection, b, c) => {
+                if (collectionResolutionOverrides[collection]) {
+                    return collectionResolutionOverrides[collection];
+                }
+                else {
+                    return r.apply(workflow.engineHost, [collection, b, c]);
+                }
+            };
+        }
+        const collection = getCollection(workflow, collectionName);
+        const schematic = collection.createSchematic(generatorName, true);
+        const res = await runSchematic(fsHost, host.root, workflow, logger, options, schematic, false, recorder);
+        if (res.status !== 0) {
+            throw new Error(res.loggingQueue.join('\n'));
+        }
+        const { lastValueFrom } = __nccwpck_require__(1752);
+        const toPromise = (obs) => lastValueFrom ? lastValueFrom(obs) : obs.toPromise();
+        return async () => {
+            // https://github.com/angular/angular-cli/blob/344193f79d880177e421cff85dd3e94338d07420/packages/angular_devkit/schematics/src/workflow/base.ts#L194-L200
+            await toPromise(workflow.engine
+                .executePostTasks()
+                .pipe((0, operators_1.defaultIfEmpty)(undefined), (0, operators_1.last)()));
+        };
+    };
+}
+let logger;
+const getLogger = (isVerbose = false) => {
+    if (!logger) {
+        logger = (0, node_1.createConsoleLogger)(isVerbose, process.stdout, process.stderr, {
+            warn: (s) => chalk.bold(chalk.yellow(s)),
+            error: (s) => {
+                if (s.startsWith('NX ')) {
+                    return `\n${logger_1.NX_ERROR} ${chalk.bold(chalk.red(s.slice(3)))}\n`;
+                }
+                return chalk.bold(chalk.red(s));
+            },
+            info: (s) => {
+                if (s.startsWith('NX ')) {
+                    return `\n${logger_1.NX_PREFIX} ${chalk.bold(s.slice(3))}\n`;
+                }
+                return chalk.white(s);
+            },
+        });
+    }
+    return logger;
+};
+exports.getLogger = getLogger;
+function saveProjectsConfigurationsInWrappedSchematic(host, content) {
+    const projects = (0, angular_json_1.toNewFormat)((0, json_2.parseJson)(content)).projects;
+    const existingProjects = (0, project_configuration_1.getProjects)(host);
+    const existingAngularJson = host.exists('angular.json')
+        ? (0, json_1.readJson)(host, 'angular.json')
+        : null;
+    const projectsInAngularJson = existingAngularJson
+        ? Object.keys(existingAngularJson.projects)
+        : [];
+    const newAngularJson = existingAngularJson || {};
+    // Reset projects in order to rebuild them, but leave other properties untouched
+    newAngularJson.projects = {};
+    Object.keys(projects).forEach((projectName) => {
+        if (projectsInAngularJson.includes(projectName)) {
+            newAngularJson.projects[projectName] = projects[projectName];
+        }
+        else {
+            if (existingProjects.has(projectName)) {
+                if (JSON.stringify(existingProjects.get(projectName)) !==
+                    JSON.stringify(projects[projectName])) {
+                    (0, project_configuration_1.updateProjectConfiguration)(host, projectName, projects[projectName]);
                 }
             }
-            if (c === '*') {
-                if (noEmpty && glob === '*')
-                    re += starNoEmpty;
-                else
-                    re += star;
-                hasMagic = true;
-                continue;
+            else {
+                (0, project_configuration_1.addProjectConfiguration)(host, projectName, projects[projectName]);
             }
-            if (c === '?') {
-                re += qmark;
-                hasMagic = true;
-                continue;
+        }
+    });
+    if (Object.keys(newAngularJson.projects).length > 0) {
+        host.write('angular.json', JSON.stringify((0, angular_json_1.toOldFormat)(newAngularJson), null, 2));
+    }
+}
+async function getWrappedWorkspaceNodeModulesArchitectHost(workspace, root, projects) {
+    const { WorkspaceNodeModulesArchitectHost: AngularWorkspaceNodeModulesArchitectHost, } = await Promise.resolve().then(() => __nccwpck_require__(26236));
+    class WrappedWorkspaceNodeModulesArchitectHost extends AngularWorkspaceNodeModulesArchitectHost {
+        constructor(workspace, root, projects) {
+            super(workspace, root);
+            this.workspace = workspace;
+            this.root = root;
+            this.projects = projects;
+        }
+        async resolveBuilder(builderStr) {
+            const [packageName, builderName] = builderStr.split(':');
+            const { executorsFilePath, executorConfig } = this.readExecutorsJson(packageName, builderName);
+            const builderInfo = this.readExecutor(packageName, builderName);
+            return {
+                name: builderStr,
+                builderName,
+                description: executorConfig.description,
+                optionSchema: builderInfo.schema,
+                import: (0, schema_utils_1.resolveImplementation)(executorConfig.implementation, (0, path_1.dirname)(executorsFilePath)),
+            };
+        }
+        readExecutorsJson(nodeModule, builder, extraRequirePaths = []) {
+            const { json: packageJson, path: packageJsonPath } = (0, plugins_1.readPluginPackageJson)(nodeModule, this.projects, this.root
+                ? [this.root, __dirname, ...extraRequirePaths]
+                : [__dirname, ...extraRequirePaths]);
+            const executorsFile = packageJson.executors ?? packageJson.builders;
+            if (!executorsFile) {
+                throw new Error(`The "${nodeModule}" package does not support Nx executors or Angular Devkit Builders.`);
+            }
+            const basePath = (0, path_1.dirname)(packageJsonPath);
+            const executorsFilePath = /*require.resolve*/(__nccwpck_require__(30024).resolve((0, path_1.join)(basePath, executorsFile)));
+            const executorsJson = (0, fileutils_1.readJsonFile)(executorsFilePath);
+            const executorConfig = executorsJson.builders?.[builder] ?? executorsJson.executors?.[builder];
+            if (!executorConfig) {
+                throw new Error(`Cannot find builder '${builder}' in ${executorsFilePath}.`);
+            }
+            if (typeof executorConfig === 'string') {
+                // Angular CLI can have a builder pointing to another package:builder
+                const [packageName, executorName] = executorConfig.split(':');
+                return this.readExecutorsJson(packageName, executorName, [basePath]);
+            }
+            return { executorsFilePath, executorConfig, isNgCompat: true };
+        }
+        readExecutor(nodeModule, executor) {
+            try {
+                const { executorsFilePath, executorConfig, isNgCompat } = this.readExecutorsJson(nodeModule, executor);
+                const executorsDir = (0, path_1.dirname)(executorsFilePath);
+                const schemaPath = (0, schema_utils_1.resolveSchema)(executorConfig.schema, executorsDir);
+                const schema = (0, executor_utils_1.normalizeExecutorSchema)((0, fileutils_1.readJsonFile)(schemaPath));
+                const implementationFactory = this.getImplementationFactory(executorConfig.implementation, executorsDir);
+                const batchImplementationFactory = executorConfig.batchImplementation
+                    ? this.getImplementationFactory(executorConfig.batchImplementation, executorsDir)
+                    : null;
+                const hasherFactory = executorConfig.hasher
+                    ? this.getImplementationFactory(executorConfig.hasher, executorsDir)
+                    : null;
+                return {
+                    schema,
+                    implementationFactory,
+                    batchImplementationFactory,
+                    hasherFactory,
+                    isNgCompat,
+                };
+            }
+            catch (e) {
+                throw new Error(`Unable to resolve ${nodeModule}:${executor}.\n${e.message}`);
             }
-            re += regExpEscape(c);
         }
-        return [re, (0, unescape_js_1.unescape)(glob), !!hasMagic, uflag];
+        getImplementationFactory(implementation, executorsDir) {
+            return (0, schema_utils_1.getImplementationFactory)(implementation, executorsDir);
+        }
     }
+    return new WrappedWorkspaceNodeModulesArchitectHost(workspace, root, projects);
 }
-exports.AST = AST;
-//# sourceMappingURL=ast.js.map
+
 
 /***/ }),
 
-/***/ 65180:
-/***/ ((__unused_webpack_module, exports) => {
+/***/ 91867:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
-// translate the various posix character classes into unicode properties
-// this works across all unicode locales
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.parseClass = void 0;
-// { : [, /u flag required, negated]
-const posixClasses = {
-    '[:alnum:]': ['\\p{L}\\p{Nl}\\p{Nd}', true],
-    '[:alpha:]': ['\\p{L}\\p{Nl}', true],
-    '[:ascii:]': ['\\x' + '00-\\x' + '7f', false],
-    '[:blank:]': ['\\p{Zs}\\t', true],
-    '[:cntrl:]': ['\\p{Cc}', true],
-    '[:digit:]': ['\\p{Nd}', true],
-    '[:graph:]': ['\\p{Z}\\p{C}', true, true],
-    '[:lower:]': ['\\p{Ll}', true],
-    '[:print:]': ['\\p{C}', true],
-    '[:punct:]': ['\\p{P}', true],
-    '[:space:]': ['\\p{Z}\\t\\r\\n\\v\\f', true],
-    '[:upper:]': ['\\p{Lu}', true],
-    '[:word:]': ['\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}', true],
-    '[:xdigit:]': ['A-Fa-f0-9', false],
-};
-// only need to escape a few things inside of brace expressions
-// escapes: [ \ ] -
-const braceEscape = (s) => s.replace(/[[\]\\-]/g, '\\$&');
-// escape all regexp magic characters
-const regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
-// everything has already been escaped, we just have to join
-const rangesToString = (ranges) => ranges.join('');
-// takes a glob string at a posix brace expression, and returns
-// an equivalent regular expression source, and boolean indicating
-// whether the /u flag needs to be applied, and the number of chars
-// consumed to parse the character class.
-// This also removes out of order ranges, and returns ($.) if the
-// entire class just no good.
-const parseClass = (glob, position) => {
-    const pos = position;
-    /* c8 ignore start */
-    if (glob.charAt(pos) !== '[') {
-        throw new Error('not in a brace expression');
-    }
-    /* c8 ignore stop */
-    const ranges = [];
-    const negs = [];
-    let i = pos + 1;
-    let sawStart = false;
-    let uflag = false;
-    let escaping = false;
-    let negate = false;
-    let endPos = pos;
-    let rangeStart = '';
-    WHILE: while (i < glob.length) {
-        const c = glob.charAt(i);
-        if ((c === '!' || c === '^') && i === pos + 1) {
-            negate = true;
-            i++;
-            continue;
+exports.printChanges = printChanges;
+exports.parseGeneratorString = parseGeneratorString;
+exports.printGenHelp = printGenHelp;
+exports.generate = generate;
+const chalk = __nccwpck_require__(78818);
+const enquirer_1 = __nccwpck_require__(56587);
+const path_1 = __nccwpck_require__(71017);
+const configuration_1 = __nccwpck_require__(34333);
+const tree_1 = __nccwpck_require__(10818);
+const project_graph_1 = __nccwpck_require__(54913);
+const logger_1 = __nccwpck_require__(37270);
+const params_1 = __nccwpck_require__(55457);
+const local_plugins_1 = __nccwpck_require__(6335);
+const print_help_1 = __nccwpck_require__(51958);
+const workspace_root_1 = __nccwpck_require__(64393);
+const calculate_default_project_name_1 = __nccwpck_require__(29966);
+const installed_plugins_1 = __nccwpck_require__(51456);
+const generator_utils_1 = __nccwpck_require__(85331);
+function printChanges(fileChanges) {
+    fileChanges.forEach((f) => {
+        if (f.type === 'CREATE') {
+            console.log(`${chalk.green('CREATE')} ${f.path}`);
         }
-        if (c === ']' && sawStart && !escaping) {
-            endPos = i + 1;
-            break;
+        else if (f.type === 'UPDATE') {
+            console.log(`${chalk.white('UPDATE')} ${f.path}`);
         }
-        sawStart = true;
-        if (c === '\\') {
-            if (!escaping) {
-                escaping = true;
-                i++;
+        else if (f.type === 'DELETE') {
+            console.log(`${chalk.yellow('DELETE')} ${f.path}`);
+        }
+    });
+}
+async function promptForCollection(generatorName, interactive, projectsConfiguration) {
+    const localPlugins = await (0, local_plugins_1.getLocalWorkspacePlugins)(projectsConfiguration, (0, configuration_1.readNxJson)());
+    const installedCollections = Array.from(new Set((0, installed_plugins_1.findInstalledPlugins)().map((x) => x.name)));
+    const choicesMap = new Set();
+    const deprecatedChoices = new Set();
+    for (const collectionName of installedCollections) {
+        try {
+            const { resolvedCollectionName, normalizedGeneratorName, generatorConfiguration: { ['x-deprecated']: deprecated, hidden }, } = (0, generator_utils_1.getGeneratorInformation)(collectionName, generatorName, workspace_root_1.workspaceRoot, projectsConfiguration.projects);
+            if (hidden) {
                 continue;
             }
-            // escaped \ char, fall through and treat like normal char
+            if (deprecated) {
+                deprecatedChoices.add(`${resolvedCollectionName}:${normalizedGeneratorName}`);
+            }
+            else {
+                choicesMap.add(`${resolvedCollectionName}:${normalizedGeneratorName}`);
+            }
         }
-        if (c === '[' && !escaping) {
-            // either a posix class, a collation equivalent, or just a [
-            for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
-                if (glob.startsWith(cls, i)) {
-                    // invalid, [a-[] is fine, but not [a-[:alpha]]
-                    if (rangeStart) {
-                        return ['$.', false, glob.length - pos, true];
-                    }
-                    i += cls.length;
-                    if (neg)
-                        negs.push(unip);
-                    else
-                        ranges.push(unip);
-                    uflag = uflag || u;
-                    continue WHILE;
+        catch { }
+    }
+    const choicesFromLocalPlugins = [];
+    for (const [name] of localPlugins) {
+        try {
+            const { resolvedCollectionName, normalizedGeneratorName, generatorConfiguration: { ['x-deprecated']: deprecated, hidden }, } = (0, generator_utils_1.getGeneratorInformation)(name, generatorName, workspace_root_1.workspaceRoot, projectsConfiguration.projects);
+            if (hidden) {
+                continue;
+            }
+            const value = `${resolvedCollectionName}:${normalizedGeneratorName}`;
+            if (!choicesMap.has(value)) {
+                if (deprecated) {
+                    deprecatedChoices.add(value);
+                }
+                else {
+                    choicesFromLocalPlugins.push({
+                        name: value,
+                        message: chalk.bold(value),
+                        value,
+                    });
                 }
             }
         }
-        // now it's just a normal character, effectively
-        escaping = false;
-        if (rangeStart) {
-            // throw this range away if it's not valid, but others
-            // can still match.
-            if (c > rangeStart) {
-                ranges.push(braceEscape(rangeStart) + '-' + braceEscape(c));
+        catch { }
+    }
+    if (choicesFromLocalPlugins.length) {
+        choicesFromLocalPlugins[choicesFromLocalPlugins.length - 1].message += '\n';
+    }
+    const choices = choicesFromLocalPlugins.concat(...choicesMap);
+    if (choices.length === 1) {
+        return typeof choices[0] === 'string' ? choices[0] : choices[0].value;
+    }
+    else if (!interactive && choices.length > 1) {
+        throwInvalidInvocation(Array.from(choicesMap));
+    }
+    else if (interactive && choices.length > 1) {
+        const noneOfTheAbove = `\nNone of the above`;
+        choices.push(noneOfTheAbove);
+        let { generator, customCollection } = await (0, enquirer_1.prompt)([
+            {
+                name: 'generator',
+                message: `Which generator would you like to use?`,
+                type: 'autocomplete',
+                // enquirer's typings are incorrect here... It supports (string | Choice)[], but is typed as (string[] | Choice[])
+                choices: choices,
+            },
+            {
+                name: 'customCollection',
+                type: 'input',
+                message: `Which collection would you like to use?`,
+                skip: function () {
+                    // Skip this question if the user did not answer None of the above
+                    return this.state.answers.generator !== noneOfTheAbove;
+                },
+                validate: function (value) {
+                    if (this.skipped) {
+                        return true;
+                    }
+                    try {
+                        (0, generator_utils_1.getGeneratorInformation)(value, generatorName, workspace_root_1.workspaceRoot, projectsConfiguration.projects);
+                        return true;
+                    }
+                    catch {
+                        logger_1.logger.error(`\nCould not find ${value}:${generatorName}`);
+                        return false;
+                    }
+                },
+            },
+        ]);
+        return customCollection
+            ? `${customCollection}:${generatorName}`
+            : generator;
+    }
+    else if (deprecatedChoices.size > 0) {
+        throw new Error([
+            `All installed generators named "${generatorName}" are deprecated. To run one, provide its full \`collection:generator\` id.`,
+            [...deprecatedChoices].map((x) => `  - ${x}`),
+        ].join('\n'));
+    }
+    else {
+        throw new Error(`Could not find any generators named "${generatorName}"`);
+    }
+}
+function parseGeneratorString(value) {
+    const separatorIndex = value.lastIndexOf(':');
+    if (separatorIndex > 0) {
+        return {
+            collection: value.slice(0, separatorIndex),
+            generator: value.slice(separatorIndex + 1),
+        };
+    }
+    else {
+        return {
+            generator: value,
+        };
+    }
+}
+async function convertToGenerateOptions(generatorOptions, mode, projectsConfiguration) {
+    let collectionName = null;
+    let generatorName = null;
+    const interactive = generatorOptions.interactive;
+    if (mode === 'generate') {
+        const generatorDescriptor = generatorOptions['generator'];
+        const { collection, generator } = parseGeneratorString(generatorDescriptor);
+        if (collection) {
+            collectionName = collection;
+            generatorName = generator;
+        }
+        else {
+            const generatorString = await promptForCollection(generatorDescriptor, interactive, projectsConfiguration);
+            const parsedGeneratorString = parseGeneratorString(generatorString);
+            collectionName = parsedGeneratorString.collection;
+            generatorName = parsedGeneratorString.generator;
+        }
+    }
+    else {
+        collectionName = generatorOptions.collection;
+        generatorName = 'new';
+    }
+    const res = {
+        collectionName,
+        generatorName,
+        generatorOptions,
+        help: generatorOptions.help,
+        dryRun: generatorOptions.dryRun,
+        interactive,
+        defaults: generatorOptions.defaults,
+        quiet: generatorOptions.quiet,
+    };
+    delete generatorOptions.d;
+    delete generatorOptions.dryRun;
+    delete generatorOptions['dry-run'];
+    delete generatorOptions.interactive;
+    delete generatorOptions.help;
+    delete generatorOptions.collection;
+    delete generatorOptions.verbose;
+    delete generatorOptions.generator;
+    delete generatorOptions['--'];
+    delete generatorOptions['$0'];
+    delete generatorOptions.quiet;
+    return res;
+}
+function throwInvalidInvocation(availableGenerators) {
+    throw new Error(`Specify the generator name (e.g., nx generate ${availableGenerators.join(', ')})`);
+}
+function printGenHelp(opts, schema, normalizedGeneratorName, aliases) {
+    (0, print_help_1.printHelp)(`generate ${opts.collectionName}:${normalizedGeneratorName}`, {
+        ...schema,
+        properties: schema.properties,
+    }, {
+        mode: 'generate',
+        plugin: opts.collectionName,
+        entity: normalizedGeneratorName,
+        aliases,
+    });
+}
+async function generate(cwd, args) {
+    if (args['verbose']) {
+        process.env.NX_VERBOSE_LOGGING = 'true';
+    }
+    const verbose = process.env.NX_VERBOSE_LOGGING === 'true';
+    return (0, params_1.handleErrors)(verbose, async () => {
+        const nxJsonConfiguration = (0, configuration_1.readNxJson)();
+        const projectGraph = await (0, project_graph_1.createProjectGraphAsync)();
+        const projectsConfigurations = (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(projectGraph);
+        const opts = await convertToGenerateOptions(args, 'generate', projectsConfigurations);
+        const { normalizedGeneratorName, schema, implementationFactory, generatorConfiguration: { aliases, hidden, ['x-deprecated']: deprecated, ['x-use-standalone-layout']: isStandalonePreset, }, } = (0, generator_utils_1.getGeneratorInformation)(opts.collectionName, opts.generatorName, workspace_root_1.workspaceRoot, projectsConfigurations.projects);
+        if (deprecated) {
+            logger_1.logger.warn([
+                `${logger_1.NX_PREFIX}: ${opts.collectionName}:${normalizedGeneratorName} is deprecated`,
+                `${deprecated}`,
+            ].join('\n'));
+        }
+        if (!opts.quiet && !opts.help) {
+            logger_1.logger.info(`NX Generating ${opts.collectionName}:${normalizedGeneratorName}`);
+        }
+        if (opts.help) {
+            printGenHelp(opts, schema, normalizedGeneratorName, aliases);
+            return 0;
+        }
+        const combinedOpts = await (0, params_1.combineOptionsForGenerator)(opts.generatorOptions, opts.collectionName, normalizedGeneratorName, projectsConfigurations, nxJsonConfiguration, schema, opts.interactive, (0, calculate_default_project_name_1.calculateDefaultProjectName)(cwd, workspace_root_1.workspaceRoot, projectsConfigurations, nxJsonConfiguration), (0, path_1.relative)(workspace_root_1.workspaceRoot, cwd), verbose);
+        if ((0, generator_utils_1.getGeneratorInformation)(opts.collectionName, normalizedGeneratorName, workspace_root_1.workspaceRoot, projectsConfigurations.projects).isNxGenerator) {
+            const host = new tree_1.FsTree(workspace_root_1.workspaceRoot, verbose, `generating (${opts.collectionName}:${normalizedGeneratorName})`);
+            const implementation = implementationFactory();
+            // @todo(v17): Remove this, isStandalonePreset property is defunct.
+            if (normalizedGeneratorName === 'preset' && !isStandalonePreset) {
+                host.write('apps/.gitkeep', '');
+                host.write('libs/.gitkeep', '');
+            }
+            const task = await implementation(host, combinedOpts);
+            host.lock();
+            const changes = host.listChanges();
+            if (!opts.quiet) {
+                printChanges(changes);
+            }
+            if (!opts.dryRun) {
+                (0, tree_1.flushChanges)(workspace_root_1.workspaceRoot, changes);
+                if (task) {
+                    await task();
+                }
             }
-            else if (c === rangeStart) {
-                ranges.push(braceEscape(c));
+            else {
+                logger_1.logger.warn(`\nNOTE: The "dryRun" flag means no changes were made.`);
             }
-            rangeStart = '';
-            i++;
-            continue;
         }
-        // now might be the start of a range.
-        // can be either c-d or c-] or c] or c] at this point
-        if (glob.startsWith('-]', i + 1)) {
-            ranges.push(braceEscape(c + '-'));
-            i += 2;
-            continue;
+        else {
+            __nccwpck_require__(53882);
+            return (await Promise.resolve().then(() => __nccwpck_require__(96506))).generate(workspace_root_1.workspaceRoot, {
+                ...opts,
+                generatorOptions: combinedOpts,
+            }, projectsConfigurations.projects, verbose);
         }
-        if (glob.startsWith('-', i + 1)) {
-            rangeStart = c;
-            i += 2;
-            continue;
+    });
+}
+
+
+/***/ }),
+
+/***/ 85331:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getGeneratorInformation = getGeneratorInformation;
+exports.readGeneratorsJson = readGeneratorsJson;
+const path_1 = __nccwpck_require__(71017);
+const schema_utils_1 = __nccwpck_require__(62607);
+const fileutils_1 = __nccwpck_require__(40910);
+const plugins_1 = __nccwpck_require__(69461);
+function getGeneratorInformation(collectionName, generatorName, root, projects) {
+    try {
+        const { generatorsFilePath, generatorsJson, resolvedCollectionName, normalizedGeneratorName, } = readGeneratorsJson(collectionName, generatorName, root, projects);
+        const generatorsDir = (0, path_1.dirname)(generatorsFilePath);
+        const generatorConfig = generatorsJson.generators?.[normalizedGeneratorName] ||
+            generatorsJson.schematics?.[normalizedGeneratorName];
+        const isNgCompat = !generatorsJson.generators?.[normalizedGeneratorName];
+        const schemaPath = (0, schema_utils_1.resolveSchema)(generatorConfig.schema, generatorsDir);
+        const schema = (0, fileutils_1.readJsonFile)(schemaPath);
+        if (!schema.properties || typeof schema.properties !== 'object') {
+            schema.properties = {};
+        }
+        generatorConfig.implementation =
+            generatorConfig.implementation || generatorConfig.factory;
+        const implementationFactory = (0, schema_utils_1.getImplementationFactory)(generatorConfig.implementation, generatorsDir);
+        const normalizedGeneratorConfiguration = {
+            ...generatorConfig,
+            aliases: generatorConfig.aliases ?? [],
+            hidden: !!generatorConfig.hidden,
+        };
+        return {
+            resolvedCollectionName,
+            normalizedGeneratorName,
+            schema,
+            implementationFactory,
+            isNgCompat,
+            isNxGenerator: !isNgCompat,
+            generatorConfiguration: normalizedGeneratorConfiguration,
+        };
+    }
+    catch (e) {
+        throw new Error(`Unable to resolve ${collectionName}:${generatorName}.\n${e.message}`);
+    }
+}
+function readGeneratorsJson(collectionName, generator, root, projects) {
+    let generatorsFilePath;
+    if (collectionName.endsWith('.json')) {
+        generatorsFilePath = require.resolve(collectionName, {
+            paths: root ? [root, __dirname] : [__dirname],
+        });
+    }
+    else {
+        const { json: packageJson, path: packageJsonPath } = (0, plugins_1.readPluginPackageJson)(collectionName, projects, root ? [root, __dirname] : [__dirname]);
+        const generatorsFile = packageJson.generators ?? packageJson.schematics;
+        if (!generatorsFile) {
+            throw new Error(`The "${collectionName}" package does not support Nx generators.`);
+        }
+        generatorsFilePath = require.resolve((0, path_1.join)((0, path_1.dirname)(packageJsonPath), generatorsFile));
+    }
+    const generatorsJson = (0, fileutils_1.readJsonFile)(generatorsFilePath);
+    let normalizedGeneratorName = findFullGeneratorName(generator, generatorsJson.generators) ||
+        findFullGeneratorName(generator, generatorsJson.schematics);
+    if (!normalizedGeneratorName) {
+        for (let parent of generatorsJson.extends || []) {
+            try {
+                return readGeneratorsJson(parent, generator, root, projects);
+            }
+            catch (e) { }
         }
-        // not the start of a range, just a single character
-        ranges.push(braceEscape(c));
-        i++;
+        throw new Error(`Cannot find generator '${generator}' in ${generatorsFilePath}.`);
     }
-    if (endPos < i) {
-        // didn't see the end of the class, not a valid class,
-        // but might still be valid as a literal match.
-        return ['', false, 0, false];
+    return {
+        generatorsFilePath,
+        generatorsJson,
+        normalizedGeneratorName,
+        resolvedCollectionName: collectionName,
+    };
+}
+function findFullGeneratorName(name, generators) {
+    if (generators) {
+        for (let [key, data] of Object.entries(generators)) {
+            if (key === name ||
+                (data.aliases && data.aliases.includes(name))) {
+                return key;
+            }
+        }
     }
-    // if we got no ranges and no negates, then we have a range that
-    // cannot possibly match anything, and that poisons the whole glob
-    if (!ranges.length && !negs.length) {
-        return ['$.', false, glob.length - pos, true];
+}
+
+
+/***/ }),
+
+/***/ 84678:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.normalizeExecutorSchema = normalizeExecutorSchema;
+exports.getExecutorInformation = getExecutorInformation;
+const path_1 = __nccwpck_require__(71017);
+const plugins_1 = __nccwpck_require__(69461);
+const fileutils_1 = __nccwpck_require__(40910);
+const schema_utils_1 = __nccwpck_require__(62607);
+const installation_directory_1 = __nccwpck_require__(87836);
+function normalizeExecutorSchema(schema) {
+    const version = (schema.version ??= 1);
+    return {
+        version,
+        outputCapture: schema.outputCapture ?? version < 2 ? 'direct-nodejs' : 'pipe',
+        properties: !schema.properties || typeof schema.properties !== 'object'
+            ? {}
+            : schema.properties,
+        ...schema,
+    };
+}
+function cacheKey(nodeModule, executor, root) {
+    return `${root}:${nodeModule}:${executor}`;
+}
+const cachedExecutorInformation = {};
+function getExecutorInformation(nodeModule, executor, root, projects) {
+    try {
+        const key = cacheKey(nodeModule, executor, root);
+        if (cachedExecutorInformation[key])
+            return cachedExecutorInformation[key];
+        const { executorsFilePath, executorConfig, isNgCompat } = readExecutorJson(nodeModule, executor, root, projects);
+        const executorsDir = (0, path_1.dirname)(executorsFilePath);
+        const schemaPath = (0, schema_utils_1.resolveSchema)(executorConfig.schema, executorsDir);
+        const schema = normalizeExecutorSchema((0, fileutils_1.readJsonFile)(schemaPath));
+        const implementationFactory = (0, schema_utils_1.getImplementationFactory)(executorConfig.implementation, executorsDir);
+        const batchImplementationFactory = executorConfig.batchImplementation
+            ? (0, schema_utils_1.getImplementationFactory)(executorConfig.batchImplementation, executorsDir)
+            : null;
+        const hasherFactory = executorConfig.hasher
+            ? (0, schema_utils_1.getImplementationFactory)(executorConfig.hasher, executorsDir)
+            : null;
+        const res = {
+            schema,
+            implementationFactory,
+            batchImplementationFactory,
+            hasherFactory,
+            isNgCompat,
+            isNxExecutor: !isNgCompat,
+        };
+        cachedExecutorInformation[key] = res;
+        return res;
     }
-    // if we got one positive range, and it's a single character, then that's
-    // not actually a magic pattern, it's just that one literal character.
-    // we should not treat that as "magic", we should just return the literal
-    // character. [_] is a perfectly valid way to escape glob magic chars.
-    if (negs.length === 0 &&
-        ranges.length === 1 &&
-        /^\\?.$/.test(ranges[0]) &&
-        !negate) {
-        const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
-        return [regexpEscape(r), false, endPos - pos, false];
+    catch (e) {
+        throw new Error(`Unable to resolve ${nodeModule}:${executor}.\n${e.message}`);
     }
-    const sranges = '[' + (negate ? '^' : '') + rangesToString(ranges) + ']';
-    const snegs = '[' + (negate ? '' : '^') + rangesToString(negs) + ']';
-    const comb = ranges.length && negs.length
-        ? '(' + sranges + '|' + snegs + ')'
-        : ranges.length
-            ? sranges
-            : snegs;
-    return [comb, uflag, endPos - pos, true];
-};
-exports.parseClass = parseClass;
-//# sourceMappingURL=brace-expressions.js.map
+}
+function readExecutorJson(nodeModule, executor, root, projects, extraRequirePaths = []) {
+    const { json: packageJson, path: packageJsonPath } = (0, plugins_1.readPluginPackageJson)(nodeModule, projects, root
+        ? [
+            root,
+            __dirname,
+            process.cwd(),
+            ...(0, installation_directory_1.getNxRequirePaths)(),
+            ...extraRequirePaths,
+        ]
+        : [__dirname, process.cwd(), ...(0, installation_directory_1.getNxRequirePaths)(), ...extraRequirePaths]);
+    const executorsFile = packageJson.executors ?? packageJson.builders;
+    if (!executorsFile) {
+        throw new Error(`The "${nodeModule}" package does not support Nx executors.`);
+    }
+    const basePath = (0, path_1.dirname)(packageJsonPath);
+    const executorsFilePath = /*require.resolve*/(__nccwpck_require__(87739).resolve((0, path_1.join)(basePath, executorsFile)));
+    const executorsJson = (0, fileutils_1.readJsonFile)(executorsFilePath);
+    const executorConfig = executorsJson.executors?.[executor] || executorsJson.builders?.[executor];
+    if (!executorConfig) {
+        throw new Error(`Cannot find executor '${executor}' in ${executorsFilePath}.`);
+    }
+    if (typeof executorConfig === 'string') {
+        // Angular CLI can have a builder pointing to another package:builder
+        const [packageName, executorName] = executorConfig.split(':');
+        return readExecutorJson(packageName, executorName, root, projects, [
+            basePath,
+        ]);
+    }
+    const isNgCompat = !executorsJson.executors?.[executor];
+    return { executorsFilePath, executorConfig, isNgCompat };
+}
+
 
 /***/ }),
 
-/***/ 67350:
+/***/ 29966:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.calculateDefaultProjectName = calculateDefaultProjectName;
+exports.findMatchingProjectInCwd = findMatchingProjectInCwd;
+const find_project_for_path_1 = __nccwpck_require__(69621);
+const path_1 = __nccwpck_require__(71017);
+function calculateDefaultProjectName(cwd, root, { projects }, nxJson) {
+    const relativeCwd = (0, path_1.relative)(root, cwd).replace(/\\/g, '/') ?? null;
+    if (relativeCwd !== null) {
+        const matchingProject = findMatchingProjectInCwd(projects, relativeCwd);
+        // We have found a project
+        if (matchingProject) {
+            // That is not at the root
+            if (projects[matchingProject].root !== '.' &&
+                projects[matchingProject].root !== '') {
+                return matchingProject;
+                // But its at the root, and NX_DEFAULT_PROJECT is set
+            }
+            else if (process.env.NX_DEFAULT_PROJECT) {
+                return process.env.NX_DEFAULT_PROJECT;
+                // Its root, and NX_DEFAULT_PROJECT is not set
+            }
+            else {
+                return matchingProject;
+            }
+        }
+    }
+    // There was no matching project in cwd.
+    return (process.env.NX_DEFAULT_PROJECT ??
+        nxJson.cli?.defaultProjectName ??
+        nxJson?.defaultProject);
+}
+function findMatchingProjectInCwd(projects, relativeCwd) {
+    const projectRootMappings = new Map();
+    for (const projectName of Object.keys(projects)) {
+        const { root } = projects[projectName];
+        projectRootMappings.set((0, find_project_for_path_1.normalizeProjectRoot)(root), projectName);
+    }
+    const matchingProject = (0, find_project_for_path_1.findProjectForPath)(relativeCwd, projectRootMappings);
+    return matchingProject;
+}
+
+
+/***/ }),
+
+/***/ 34333:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.readNxJson = void 0;
+exports.workspaceLayout = workspaceLayout;
+const nx_json_1 = __nccwpck_require__(21173);
+/**
+ * Returns information about where apps and libs will be created.
+ */
+function workspaceLayout() {
+    const nxJson = (0, nx_json_1.readNxJson)();
+    return {
+        appsDir: nxJson.workspaceLayout?.appsDir ?? 'apps',
+        libsDir: nxJson.workspaceLayout?.libsDir ?? 'libs',
+    };
+}
+var nx_json_2 = __nccwpck_require__(21173);
+Object.defineProperty(exports, "readNxJson", ({ enumerable: true, get: function () { return nx_json_2.readNxJson; } }));
+
+
+/***/ }),
+
+/***/ 21173:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.readNxJson = readNxJson;
+exports.hasNxJson = hasNxJson;
+const fs_1 = __nccwpck_require__(57147);
+const path_1 = __nccwpck_require__(71017);
+const fileutils_1 = __nccwpck_require__(40910);
+const workspace_root_1 = __nccwpck_require__(64393);
+function readNxJson(root = workspace_root_1.workspaceRoot) {
+    const nxJson = (0, path_1.join)(root, 'nx.json');
+    if ((0, fs_1.existsSync)(nxJson)) {
+        const nxJsonConfiguration = (0, fileutils_1.readJsonFile)(nxJson);
+        if (nxJsonConfiguration.extends) {
+            const extendedNxJsonPath = require.resolve(nxJsonConfiguration.extends, {
+                paths: [(0, path_1.dirname)(nxJson)],
+            });
+            const baseNxJson = (0, fileutils_1.readJsonFile)(extendedNxJsonPath);
+            return {
+                ...baseNxJson,
+                ...nxJsonConfiguration,
+            };
+        }
+        else {
+            return nxJsonConfiguration;
+        }
+    }
+    else {
+        try {
+            return (0, fileutils_1.readJsonFile)((0, path_1.join)(__dirname, '..', '..', 'presets', 'core.json'));
+        }
+        catch (e) {
+            return {};
+        }
+    }
+}
+function hasNxJson(root) {
+    const nxJson = (0, path_1.join)(root, 'nx.json');
+    return (0, fs_1.existsSync)(nxJson);
+}
+
+
+/***/ }),
+
+/***/ 72733:
 /***/ ((__unused_webpack_module, exports) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.escape = void 0;
+exports.DependencyType = void 0;
+exports.fileDataDepTarget = fileDataDepTarget;
+exports.fileDataDepType = fileDataDepType;
+function fileDataDepTarget(dep) {
+    return typeof dep === 'string'
+        ? dep
+        : Array.isArray(dep) && dep.length === 2
+            ? dep[0]
+            : dep[1];
+}
+function fileDataDepType(dep) {
+    return typeof dep === 'string'
+        ? 'static'
+        : Array.isArray(dep) && dep.length === 2
+            ? dep[1]
+            : dep[2];
+}
 /**
- * Escape all magic characters in a glob pattern.
- *
- * If the {@link windowsPathsNoEscape | GlobOptions.windowsPathsNoEscape}
- * option is used, then characters are escaped by wrapping in `[]`, because
- * a magic character wrapped in a character class can only be satisfied by
- * that exact character.  In this mode, `\` is _not_ escaped, because it is
- * not interpreted as a magic character, but instead as a path separator.
+ * Type of dependency between projects
  */
-const escape = (s, { windowsPathsNoEscape = false, } = {}) => {
-    // don't need to escape +@! because we escape the parens
-    // that make those magic, and escaping ! as [!] isn't valid,
-    // because [!]] is a valid glob class meaning not ']'.
-    return windowsPathsNoEscape
-        ? s.replace(/[?*()[\]]/g, '[$&]')
-        : s.replace(/[?*()[\]\\]/g, '\\$&');
-};
-exports.escape = escape;
-//# sourceMappingURL=escape.js.map
+var DependencyType;
+(function (DependencyType) {
+    /**
+     * Static dependencies are tied to the loading of the module
+     */
+    DependencyType["static"] = "static";
+    /**
+     * Dynamic dependencies are brought in by the module at run time
+     */
+    DependencyType["dynamic"] = "dynamic";
+    /**
+     * Implicit dependencies are inferred
+     */
+    DependencyType["implicit"] = "implicit";
+})(DependencyType || (exports.DependencyType = DependencyType = {}));
+
 
 /***/ }),
 
-/***/ 62362:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+/***/ 62607:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
-var __importDefault = (this && this.__importDefault) || function (mod) {
-    return (mod && mod.__esModule) ? mod : { "default": mod };
-};
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0;
-const brace_expansion_1 = __importDefault(__nccwpck_require__(33717));
-const assert_valid_pattern_js_1 = __nccwpck_require__(37840);
-const ast_js_1 = __nccwpck_require__(81227);
-const escape_js_1 = __nccwpck_require__(67350);
-const unescape_js_1 = __nccwpck_require__(40391);
-const minimatch = (p, pattern, options = {}) => {
-    (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
-    // shortcut: comments match nothing.
-    if (!options.nocomment && pattern.charAt(0) === '#') {
-        return false;
+exports.getImplementationFactory = getImplementationFactory;
+exports.resolveImplementation = resolveImplementation;
+exports.resolveSchema = resolveSchema;
+const fs_1 = __nccwpck_require__(57147);
+const path_1 = __nccwpck_require__(71017);
+const plugins_1 = __nccwpck_require__(69461);
+/**
+ * This function is used to get the implementation factory of an executor or generator.
+ * @param implementation path to the implementation
+ * @param directory path to the directory
+ * @returns a function that returns the implementation
+ */
+function getImplementationFactory(implementation, directory) {
+    const [implementationModulePath, implementationExportName] = implementation.split('#');
+    return () => {
+        const modulePath = resolveImplementation(implementationModulePath, directory);
+        if ((0, path_1.extname)(modulePath) === '.ts') {
+            (0, plugins_1.registerPluginTSTranspiler)();
+        }
+        const module = require(modulePath);
+        return implementationExportName
+            ? module[implementationExportName]
+            : module.default ?? module;
+    };
+}
+/**
+ * This function is used to resolve the implementation of an executor or generator.
+ * @param implementationModulePath
+ * @param directory
+ * @returns path to the implementation
+ */
+function resolveImplementation(implementationModulePath, directory) {
+    const validImplementations = ['', '.js', '.ts'].map((x) => implementationModulePath + x);
+    for (const maybeImplementation of validImplementations) {
+        const maybeImplementationPath = (0, path_1.join)(directory, maybeImplementation);
+        if ((0, fs_1.existsSync)(maybeImplementationPath)) {
+            return maybeImplementationPath;
+        }
+        try {
+            return require.resolve(maybeImplementation, {
+                paths: [directory],
+            });
+        }
+        catch { }
     }
-    return new Minimatch(pattern, options).match(p);
-};
-exports.minimatch = minimatch;
-// Optimized checking for the most common glob patterns.
-const starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
-const starDotExtTest = (ext) => (f) => !f.startsWith('.') && f.endsWith(ext);
-const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
-const starDotExtTestNocase = (ext) => {
-    ext = ext.toLowerCase();
-    return (f) => !f.startsWith('.') && f.toLowerCase().endsWith(ext);
-};
-const starDotExtTestNocaseDot = (ext) => {
-    ext = ext.toLowerCase();
-    return (f) => f.toLowerCase().endsWith(ext);
-};
-const starDotStarRE = /^\*+\.\*+$/;
-const starDotStarTest = (f) => !f.startsWith('.') && f.includes('.');
-const starDotStarTestDot = (f) => f !== '.' && f !== '..' && f.includes('.');
-const dotStarRE = /^\.\*+$/;
-const dotStarTest = (f) => f !== '.' && f !== '..' && f.startsWith('.');
-const starRE = /^\*+$/;
-const starTest = (f) => f.length !== 0 && !f.startsWith('.');
-const starTestDot = (f) => f.length !== 0 && f !== '.' && f !== '..';
-const qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
-const qmarksTestNocase = ([$0, ext = '']) => {
-    const noext = qmarksTestNoExt([$0]);
-    if (!ext)
-        return noext;
-    ext = ext.toLowerCase();
-    return (f) => noext(f) && f.toLowerCase().endsWith(ext);
-};
-const qmarksTestNocaseDot = ([$0, ext = '']) => {
-    const noext = qmarksTestNoExtDot([$0]);
-    if (!ext)
-        return noext;
-    ext = ext.toLowerCase();
-    return (f) => noext(f) && f.toLowerCase().endsWith(ext);
-};
-const qmarksTestDot = ([$0, ext = '']) => {
-    const noext = qmarksTestNoExtDot([$0]);
-    return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
-};
-const qmarksTest = ([$0, ext = '']) => {
-    const noext = qmarksTestNoExt([$0]);
-    return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
-};
-const qmarksTestNoExt = ([$0]) => {
-    const len = $0.length;
-    return (f) => f.length === len && !f.startsWith('.');
-};
-const qmarksTestNoExtDot = ([$0]) => {
-    const len = $0.length;
-    return (f) => f.length === len && f !== '.' && f !== '..';
-};
-/* c8 ignore start */
-const defaultPlatform = (typeof process === 'object' && process
-    ? (typeof process.env === 'object' &&
-        process.env &&
-        process.env.__MINIMATCH_TESTING_PLATFORM__) ||
-        process.platform
-    : 'posix');
-const path = {
-    win32: { sep: '\\' },
-    posix: { sep: '/' },
-};
-/* c8 ignore stop */
-exports.sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep;
-exports.minimatch.sep = exports.sep;
-exports.GLOBSTAR = Symbol('globstar **');
-exports.minimatch.GLOBSTAR = exports.GLOBSTAR;
-// any single thing other than /
-// don't need to escape / when using new RegExp()
-const qmark = '[^/]';
-// * => any number of characters
-const star = qmark + '*?';
-// ** when dots are allowed.  Anything goes, except .. and .
-// not (^ or / followed by one or two dots followed by $ or /),
-// followed by anything, any number of times.
-const twoStarDot = '(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?';
-// not a ^ or / followed by a dot,
-// followed by anything, any number of times.
-const twoStarNoDot = '(?:(?!(?:\\/|^)\\.).)*?';
-const filter = (pattern, options = {}) => (p) => (0, exports.minimatch)(p, pattern, options);
-exports.filter = filter;
-exports.minimatch.filter = exports.filter;
-const ext = (a, b = {}) => Object.assign({}, a, b);
-const defaults = (def) => {
-    if (!def || typeof def !== 'object' || !Object.keys(def).length) {
-        return exports.minimatch;
+    throw new Error(`Could not resolve "${implementationModulePath}" from "${directory}".`);
+}
+function resolveSchema(schemaPath, directory) {
+    const maybeSchemaPath = (0, path_1.join)(directory, schemaPath);
+    if ((0, fs_1.existsSync)(maybeSchemaPath)) {
+        return maybeSchemaPath;
     }
-    const orig = exports.minimatch;
-    const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
-    return Object.assign(m, {
-        Minimatch: class Minimatch extends orig.Minimatch {
-            constructor(pattern, options = {}) {
-                super(pattern, ext(def, options));
-            }
-            static defaults(options) {
-                return orig.defaults(ext(def, options)).Minimatch;
-            }
-        },
-        AST: class AST extends orig.AST {
-            /* c8 ignore start */
-            constructor(type, parent, options = {}) {
-                super(type, parent, ext(def, options));
-            }
-            /* c8 ignore stop */
-            static fromGlob(pattern, options = {}) {
-                return orig.AST.fromGlob(pattern, ext(def, options));
-            }
-        },
-        unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
-        escape: (s, options = {}) => orig.escape(s, ext(def, options)),
-        filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
-        defaults: (options) => orig.defaults(ext(def, options)),
-        makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
-        braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
-        match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
-        sep: orig.sep,
-        GLOBSTAR: exports.GLOBSTAR,
+    return require.resolve(schemaPath, {
+        paths: [directory],
     });
-};
-exports.defaults = defaults;
-exports.minimatch.defaults = exports.defaults;
-// Brace expansion:
-// a{b,c}d -> abd acd
-// a{b,}c -> abc ac
-// a{0..3}d -> a0d a1d a2d a3d
-// a{b,c{d,e}f}g -> abg acdfg acefg
-// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg
-//
-// Invalid sets are not expanded.
-// a{2..}b -> a{2..}b
-// a{b}c -> a{b}c
-const braceExpand = (pattern, options = {}) => {
-    (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
-    // Thanks to Yeting Li  for
-    // improving this regexp to avoid a ReDOS vulnerability.
-    if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
-        // shortcut. no need to expand.
-        return [pattern];
+}
+
+
+/***/ }),
+
+/***/ 10750:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.toProjectName = toProjectName;
+const path_1 = __nccwpck_require__(71017);
+/**
+ * Pulled from toFileName in names from @nx/devkit.
+ * Todo: Should refactor, not duplicate.
+ */
+function toProjectName(fileName) {
+    const parts = (0, path_1.dirname)(fileName).split(/[\/\\]/g);
+    return parts[parts.length - 1].toLowerCase();
+}
+
+
+/***/ }),
+
+/***/ 70800:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.serverProcessJsonPath = void 0;
+exports.readDaemonProcessJsonCache = readDaemonProcessJsonCache;
+exports.deleteDaemonJsonProcessCache = deleteDaemonJsonProcessCache;
+exports.writeDaemonJsonProcessCache = writeDaemonJsonProcessCache;
+exports.waitForDaemonToExitAndCleanupProcessJson = waitForDaemonToExitAndCleanupProcessJson;
+exports.safelyCleanUpExistingProcess = safelyCleanUpExistingProcess;
+exports.getDaemonProcessIdSync = getDaemonProcessIdSync;
+const fs_extra_1 = __nccwpck_require__(2103);
+const path_1 = __nccwpck_require__(71017);
+const tmp_dir_1 = __nccwpck_require__(71524);
+exports.serverProcessJsonPath = (0, path_1.join)(tmp_dir_1.DAEMON_DIR_FOR_CURRENT_WORKSPACE, 'server-process.json');
+async function readDaemonProcessJsonCache() {
+    if (!(0, fs_extra_1.existsSync)(exports.serverProcessJsonPath)) {
+        return null;
     }
-    return (0, brace_expansion_1.default)(pattern);
-};
-exports.braceExpand = braceExpand;
-exports.minimatch.braceExpand = exports.braceExpand;
-// parse a component of the expanded set.
-// At this point, no pattern may contain "/" in it
-// so we're going to return a 2d array, where each entry is the full
-// pattern, split on '/', and then turned into a regular expression.
-// A regexp is made at the end which joins each array with an
-// escaped /, and another full one which joins each regexp with |.
-//
-// Following the lead of Bash 4.1, note that "**" only has special meaning
-// when it is the *only* thing in a path portion.  Otherwise, any series
-// of * is equivalent to a single *.  Globstar behavior is enabled by
-// default, and can be disabled by setting options.noglobstar.
-const makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
-exports.makeRe = makeRe;
-exports.minimatch.makeRe = exports.makeRe;
-const match = (list, pattern, options = {}) => {
-    const mm = new Minimatch(pattern, options);
-    list = list.filter(f => mm.match(f));
-    if (mm.options.nonull && !list.length) {
-        list.push(pattern);
+    return await (0, fs_extra_1.readJson)(exports.serverProcessJsonPath);
+}
+function deleteDaemonJsonProcessCache() {
+    try {
+        if (getDaemonProcessIdSync() === process.pid) {
+            (0, fs_extra_1.unlinkSync)(exports.serverProcessJsonPath);
+        }
     }
-    return list;
-};
-exports.match = match;
-exports.minimatch.match = exports.match;
-// replace stuff like \* with *
-const globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
-const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
-class Minimatch {
-    options;
-    set;
-    pattern;
-    windowsPathsNoEscape;
-    nonegate;
-    negate;
-    comment;
-    empty;
-    preserveMultipleSlashes;
-    partial;
-    globSet;
-    globParts;
-    nocase;
-    isWindows;
-    platform;
-    windowsNoMagicRoot;
-    regexp;
-    constructor(pattern, options = {}) {
-        (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
-        options = options || {};
-        this.options = options;
-        this.pattern = pattern;
-        this.platform = options.platform || defaultPlatform;
-        this.isWindows = this.platform === 'win32';
-        this.windowsPathsNoEscape =
-            !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
-        if (this.windowsPathsNoEscape) {
-            this.pattern = this.pattern.replace(/\\/g, '/');
+    catch { }
+}
+async function writeDaemonJsonProcessCache(daemonJson) {
+    await (0, fs_extra_1.writeJson)(exports.serverProcessJsonPath, daemonJson);
+}
+async function waitForDaemonToExitAndCleanupProcessJson() {
+    const daemonProcessJson = await readDaemonProcessJsonCache();
+    if (daemonProcessJson && daemonProcessJson.processId) {
+        await new Promise((resolve, reject) => {
+            let count = 0;
+            const interval = setInterval(() => {
+                try {
+                    // sending a signal 0 to a process checks if the process is running instead of actually killing it
+                    process.kill(daemonProcessJson.processId, 0);
+                }
+                catch (e) {
+                    clearInterval(interval);
+                    resolve();
+                }
+                if ((count += 1) > 200) {
+                    clearInterval(interval);
+                    reject(`Daemon process ${daemonProcessJson.processId} didn't exit after 2 seconds.`);
+                }
+            }, 10);
+        });
+        deleteDaemonJsonProcessCache();
+    }
+}
+async function safelyCleanUpExistingProcess() {
+    const daemonProcessJson = await readDaemonProcessJsonCache();
+    if (daemonProcessJson && daemonProcessJson.processId) {
+        try {
+            process.kill(daemonProcessJson.processId);
+            // we wait for the process to actually shut down before returning
+            await waitForDaemonToExitAndCleanupProcessJson();
         }
-        this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
-        this.regexp = null;
-        this.negate = false;
-        this.nonegate = !!options.nonegate;
-        this.comment = false;
-        this.empty = false;
-        this.partial = !!options.partial;
-        this.nocase = !!this.options.nocase;
-        this.windowsNoMagicRoot =
-            options.windowsNoMagicRoot !== undefined
-                ? options.windowsNoMagicRoot
-                : !!(this.isWindows && this.nocase);
-        this.globSet = [];
-        this.globParts = [];
-        this.set = [];
-        // make the set of regexps etc.
-        this.make();
+        catch { }
     }
-    hasMagic() {
-        if (this.options.magicalBraces && this.set.length > 1) {
-            return true;
+}
+// Must be sync for the help output use case
+function getDaemonProcessIdSync() {
+    if (!(0, fs_extra_1.existsSync)(exports.serverProcessJsonPath)) {
+        return null;
+    }
+    try {
+        const daemonProcessJson = (0, fs_extra_1.readJsonSync)(exports.serverProcessJsonPath);
+        return daemonProcessJson.processId;
+    }
+    catch {
+        return null;
+    }
+}
+
+
+/***/ }),
+
+/***/ 76940:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.daemonClient = exports.DaemonClient = void 0;
+exports.isDaemonEnabled = isDaemonEnabled;
+const workspace_root_1 = __nccwpck_require__(64393);
+const child_process_1 = __nccwpck_require__(32081);
+const fs_1 = __nccwpck_require__(57147);
+const promises_1 = __nccwpck_require__(73292);
+const fs_extra_1 = __nccwpck_require__(2103);
+const net_1 = __nccwpck_require__(41808);
+const path_1 = __nccwpck_require__(71017);
+const perf_hooks_1 = __nccwpck_require__(4074);
+const output_1 = __nccwpck_require__(21862);
+const socket_utils_1 = __nccwpck_require__(58935);
+const tmp_dir_1 = __nccwpck_require__(71524);
+const is_ci_1 = __nccwpck_require__(48590);
+const nx_json_1 = __nccwpck_require__(21173);
+const configuration_1 = __nccwpck_require__(34333);
+const promised_based_queue_1 = __nccwpck_require__(25340);
+const daemon_socket_messenger_1 = __nccwpck_require__(81629);
+const cache_1 = __nccwpck_require__(70800);
+const error_types_1 = __nccwpck_require__(54403);
+const native_1 = __nccwpck_require__(71926);
+const get_nx_workspace_files_1 = __nccwpck_require__(27333);
+const get_context_file_data_1 = __nccwpck_require__(50356);
+const get_files_in_directory_1 = __nccwpck_require__(52095);
+const hash_glob_1 = __nccwpck_require__(26613);
+const force_shutdown_1 = __nccwpck_require__(36438);
+const get_sync_generator_changes_1 = __nccwpck_require__(72396);
+const get_registered_sync_generators_1 = __nccwpck_require__(41015);
+const update_workspace_context_1 = __nccwpck_require__(51579);
+const flush_sync_generator_changes_to_disk_1 = __nccwpck_require__(31082);
+const DAEMON_ENV_SETTINGS = {
+    NX_PROJECT_GLOB_CACHE: 'false',
+    NX_CACHE_PROJECTS_CONFIG: 'false',
+};
+var DaemonStatus;
+(function (DaemonStatus) {
+    DaemonStatus[DaemonStatus["CONNECTING"] = 0] = "CONNECTING";
+    DaemonStatus[DaemonStatus["DISCONNECTED"] = 1] = "DISCONNECTED";
+    DaemonStatus[DaemonStatus["CONNECTED"] = 2] = "CONNECTED";
+})(DaemonStatus || (DaemonStatus = {}));
+class DaemonClient {
+    constructor() {
+        this._daemonStatus = DaemonStatus.DISCONNECTED;
+        this._waitForDaemonReady = null;
+        this._daemonReady = null;
+        this._out = null;
+        this._err = null;
+        try {
+            this.nxJson = (0, configuration_1.readNxJson)();
         }
-        for (const pattern of this.set) {
-            for (const part of pattern) {
-                if (typeof part !== 'string')
-                    return true;
+        catch (e) {
+            this.nxJson = null;
+        }
+        this.reset();
+    }
+    enabled() {
+        if (this._enabled === undefined) {
+            // TODO(v19): Add migration to move it out of existing configs and remove the ?? here.
+            const useDaemonProcessOption = this.nxJson?.useDaemonProcess ??
+                this.nxJson?.tasksRunnerOptions?.['default']?.options?.useDaemonProcess;
+            const env = process.env.NX_DAEMON;
+            // env takes precedence
+            // option=true,env=false => no daemon
+            // option=false,env=undefined => no daemon
+            // option=false,env=false => no daemon
+            // option=undefined,env=undefined => daemon
+            // option=true,env=true => daemon
+            // option=false,env=true => daemon
+            // CI=true,env=undefined => no daemon
+            // CI=true,env=false => no daemon
+            // CI=true,env=true => daemon
+            // WASM => no daemon because file watching does not work
+            if (((0, is_ci_1.isCI)() && env !== 'true') ||
+                isDocker() ||
+                (0, tmp_dir_1.isDaemonDisabled)() ||
+                nxJsonIsNotPresent() ||
+                (useDaemonProcessOption === undefined && env === 'false') ||
+                (useDaemonProcessOption === true && env === 'false') ||
+                (useDaemonProcessOption === false && env === undefined) ||
+                (useDaemonProcessOption === false && env === 'false')) {
+                this._enabled = false;
+            }
+            else if (native_1.IS_WASM) {
+                output_1.output.warn({
+                    title: 'The Nx Daemon is unsupported in WebAssembly environments. Some things may be slower than or not function as expected.',
+                });
+                this._enabled = false;
+            }
+            else {
+                this._enabled = true;
             }
         }
-        return false;
+        return this._enabled;
     }
-    debug(..._) { }
-    make() {
-        const pattern = this.pattern;
-        const options = this.options;
-        // empty patterns and comments match nothing.
-        if (!options.nocomment && pattern.charAt(0) === '#') {
-            this.comment = true;
-            return;
-        }
-        if (!pattern) {
-            this.empty = true;
-            return;
-        }
-        // step 1: figure out negation, etc.
-        this.parseNegate();
-        // step 2: expand braces
-        this.globSet = [...new Set(this.braceExpand())];
-        if (options.debug) {
-            this.debug = (...args) => console.error(...args);
+    reset() {
+        this.socketMessenger?.close();
+        this.socketMessenger = null;
+        this.queue = new promised_based_queue_1.PromisedBasedQueue();
+        this.currentMessage = null;
+        this.currentResolve = null;
+        this.currentReject = null;
+        this._enabled = undefined;
+        this._out?.close();
+        this._err?.close();
+        this._out = null;
+        this._err = null;
+        this._daemonStatus = DaemonStatus.DISCONNECTED;
+        this._waitForDaemonReady = new Promise((resolve) => (this._daemonReady = resolve));
+    }
+    async requestShutdown() {
+        return this.sendToDaemonViaQueue({ type: 'REQUEST_SHUTDOWN' });
+    }
+    async getProjectGraphAndSourceMaps() {
+        try {
+            const response = await this.sendToDaemonViaQueue({
+                type: 'REQUEST_PROJECT_GRAPH',
+            });
+            return {
+                projectGraph: response.projectGraph,
+                sourceMaps: response.sourceMaps,
+            };
         }
-        this.debug(this.pattern, this.globSet);
-        // step 3: now we have a set, so turn each one into a series of
-        // path-portion matching patterns.
-        // These will be regexps, except in the case of "**", which is
-        // set to the GLOBSTAR object for globstar behavior,
-        // and will not contain any / characters
-        //
-        // First, we preprocess to make the glob pattern sets a bit simpler
-        // and deduped.  There are some perf-killing patterns that can cause
-        // problems with a glob walk, but we can simplify them down a bit.
-        const rawGlobParts = this.globSet.map(s => this.slashSplit(s));
-        this.globParts = this.preprocess(rawGlobParts);
-        this.debug(this.pattern, this.globParts);
-        // glob --> regexps
-        let set = this.globParts.map((s, _, __) => {
-            if (this.isWindows && this.windowsNoMagicRoot) {
-                // check if it's a drive or unc path.
-                const isUNC = s[0] === '' &&
-                    s[1] === '' &&
-                    (s[2] === '?' || !globMagic.test(s[2])) &&
-                    !globMagic.test(s[3]);
-                const isDrive = /^[a-z]:/i.test(s[0]);
-                if (isUNC) {
-                    return [...s.slice(0, 4), ...s.slice(4).map(ss => this.parse(ss))];
-                }
-                else if (isDrive) {
-                    return [s[0], ...s.slice(1).map(ss => this.parse(ss))];
-                }
+        catch (e) {
+            if (e.name === error_types_1.DaemonProjectGraphError.name) {
+                throw error_types_1.ProjectGraphError.fromDaemonProjectGraphError(e);
             }
-            return s.map(ss => this.parse(ss));
-        });
-        this.debug(this.pattern, set);
-        // filter out everything that didn't compile properly.
-        this.set = set.filter(s => s.indexOf(false) === -1);
-        // do not treat the ? in UNC paths as magic
-        if (this.isWindows) {
-            for (let i = 0; i < this.set.length; i++) {
-                const p = this.set[i];
-                if (p[0] === '' &&
-                    p[1] === '' &&
-                    this.globParts[i][2] === '?' &&
-                    typeof p[3] === 'string' &&
-                    /^[a-z]:$/i.test(p[3])) {
-                    p[2] = '?';
-                }
+            else {
+                throw e;
             }
         }
-        this.debug(this.pattern, this.set);
     }
-    // various transforms to equivalent pattern sets that are
-    // faster to process in a filesystem walk.  The goal is to
-    // eliminate what we can, and push all ** patterns as far
-    // to the right as possible, even if it increases the number
-    // of patterns that we have to process.
-    preprocess(globParts) {
-        // if we're not in globstar mode, then turn all ** into *
-        if (this.options.noglobstar) {
-            for (let i = 0; i < globParts.length; i++) {
-                for (let j = 0; j < globParts[i].length; j++) {
-                    if (globParts[i][j] === '**') {
-                        globParts[i][j] = '*';
-                    }
-                }
-            }
-        }
-        const { optimizationLevel = 1 } = this.options;
-        if (optimizationLevel >= 2) {
-            // aggressive optimization for the purpose of fs walking
-            globParts = this.firstPhasePreProcess(globParts);
-            globParts = this.secondPhasePreProcess(globParts);
-        }
-        else if (optimizationLevel >= 1) {
-            // just basic optimizations to remove some .. parts
-            globParts = this.levelOneOptimize(globParts);
+    async getAllFileData() {
+        return await this.sendToDaemonViaQueue({ type: 'REQUEST_FILE_DATA' });
+    }
+    hashTasks(runnerOptions, tasks, taskGraph, env) {
+        return this.sendToDaemonViaQueue({
+            type: 'HASH_TASKS',
+            runnerOptions,
+            env,
+            tasks,
+            taskGraph,
+        });
+    }
+    async registerFileWatcher(config, callback) {
+        try {
+            await this.getProjectGraphAndSourceMaps();
         }
-        else {
-            globParts = this.adjascentGlobstarOptimize(globParts);
+        catch (e) {
+            if (config.allowPartialGraph && e instanceof error_types_1.ProjectGraphError) {
+                // we are fine with partial graph
+            }
+            else {
+                throw e;
+            }
         }
-        return globParts;
-    }
-    // just get rid of adjascent ** portions
-    adjascentGlobstarOptimize(globParts) {
-        return globParts.map(parts => {
-            let gs = -1;
-            while (-1 !== (gs = parts.indexOf('**', gs + 1))) {
-                let i = gs;
-                while (parts[i + 1] === '**') {
-                    i++;
+        let messenger;
+        await this.queue.sendToQueue(() => {
+            messenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)((0, socket_utils_1.getFullOsSocketPath)())).listen((message) => {
+                try {
+                    const parsedMessage = JSON.parse(message);
+                    callback(null, parsedMessage);
                 }
-                if (i !== gs) {
-                    parts.splice(gs, i - gs);
+                catch (e) {
+                    callback(e, null);
                 }
-            }
-            return parts;
+            }, () => {
+                callback('closed', null);
+            }, (err) => callback(err, null));
+            return messenger.sendMessage({ type: 'REGISTER_FILE_WATCHER', config });
+        });
+        return () => {
+            messenger?.close();
+        };
+    }
+    processInBackground(requirePath, data) {
+        return this.sendToDaemonViaQueue({
+            type: 'PROCESS_IN_BACKGROUND',
+            requirePath,
+            data,
         });
     }
-    // get rid of adjascent ** and resolve .. portions
-    levelOneOptimize(globParts) {
-        return globParts.map(parts => {
-            parts = parts.reduce((set, part) => {
-                const prev = set[set.length - 1];
-                if (part === '**' && prev === '**') {
-                    return set;
-                }
-                if (part === '..') {
-                    if (prev && prev !== '..' && prev !== '.' && prev !== '**') {
-                        set.pop();
-                        return set;
-                    }
-                }
-                set.push(part);
-                return set;
-            }, []);
-            return parts.length === 0 ? [''] : parts;
+    recordOutputsHash(outputs, hash) {
+        return this.sendToDaemonViaQueue({
+            type: 'RECORD_OUTPUTS_HASH',
+            data: {
+                outputs,
+                hash,
+            },
         });
     }
-    levelTwoFileOptimize(parts) {
-        if (!Array.isArray(parts)) {
-            parts = this.slashSplit(parts);
-        }
-        let didSomething = false;
-        do {
-            didSomething = false;
-            // 
// -> 
/
-            if (!this.preserveMultipleSlashes) {
-                for (let i = 1; i < parts.length - 1; i++) {
-                    const p = parts[i];
-                    // don't squeeze out UNC patterns
-                    if (i === 1 && p === '' && parts[0] === '')
-                        continue;
-                    if (p === '.' || p === '') {
-                        didSomething = true;
-                        parts.splice(i, 1);
-                        i--;
-                    }
-                }
-                if (parts[0] === '.' &&
-                    parts.length === 2 &&
-                    (parts[1] === '.' || parts[1] === '')) {
-                    didSomething = true;
-                    parts.pop();
-                }
+    outputsHashesMatch(outputs, hash) {
+        return this.sendToDaemonViaQueue({
+            type: 'OUTPUTS_HASHES_MATCH',
+            data: {
+                outputs,
+                hash,
+            },
+        });
+    }
+    glob(globs, exclude) {
+        const message = {
+            type: 'GLOB',
+            globs,
+            exclude,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    getWorkspaceContextFileData() {
+        const message = {
+            type: get_context_file_data_1.GET_CONTEXT_FILE_DATA,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    getWorkspaceFiles(projectRootMap) {
+        const message = {
+            type: get_nx_workspace_files_1.GET_NX_WORKSPACE_FILES,
+            projectRootMap,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    getFilesInDirectory(dir) {
+        const message = {
+            type: get_files_in_directory_1.GET_FILES_IN_DIRECTORY,
+            dir,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    hashGlob(globs, exclude) {
+        const message = {
+            type: hash_glob_1.HASH_GLOB,
+            globs,
+            exclude,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    getTaskHistoryForHashes(hashes) {
+        const message = {
+            type: 'GET_TASK_HISTORY_FOR_HASHES',
+            hashes,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    writeTaskRunsToHistory(taskRuns) {
+        const message = {
+            type: 'WRITE_TASK_RUNS_TO_HISTORY',
+            taskRuns,
+        };
+        return this.sendMessageToDaemon(message);
+    }
+    getSyncGeneratorChanges(generators) {
+        const message = {
+            type: get_sync_generator_changes_1.GET_SYNC_GENERATOR_CHANGES,
+            generators,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    flushSyncGeneratorChangesToDisk(generators) {
+        const message = {
+            type: flush_sync_generator_changes_to_disk_1.FLUSH_SYNC_GENERATOR_CHANGES_TO_DISK,
+            generators,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    getRegisteredSyncGenerators() {
+        const message = {
+            type: get_registered_sync_generators_1.GET_REGISTERED_SYNC_GENERATORS,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    updateWorkspaceContext(createdFiles, updatedFiles, deletedFiles) {
+        const message = {
+            type: update_workspace_context_1.UPDATE_WORKSPACE_CONTEXT,
+            createdFiles,
+            updatedFiles,
+            deletedFiles,
+        };
+        return this.sendToDaemonViaQueue(message);
+    }
+    async isServerAvailable() {
+        return new Promise((resolve) => {
+            try {
+                const socket = (0, net_1.connect)((0, socket_utils_1.getFullOsSocketPath)(), () => {
+                    socket.destroy();
+                    resolve(true);
+                });
+                socket.once('error', () => {
+                    resolve(false);
+                });
             }
-            // 
/

/../ ->

/
-            let dd = 0;
-            while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
-                const p = parts[dd - 1];
-                if (p && p !== '.' && p !== '..' && p !== '**') {
-                    didSomething = true;
-                    parts.splice(dd - 1, 2);
-                    dd -= 2;
-                }
+            catch (err) {
+                resolve(false);
             }
-        } while (didSomething);
-        return parts.length === 0 ? [''] : parts;
+        });
     }
-    // First phase: single-pattern processing
-    // 
 is 1 or more portions
-    //  is 1 or more portions
-    // 

is any portion other than ., .., '', or ** - // is . or '' - // - // **/.. is *brutal* for filesystem walking performance, because - // it effectively resets the recursive walk each time it occurs, - // and ** cannot be reduced out by a .. pattern part like a regexp - // or most strings (other than .., ., and '') can be. - // - //

/**/../

/

/ -> {

/../

/

/,

/**/

/

/} - //

// -> 
/
-    // 
/

/../ ->

/
-    // **/**/ -> **/
-    //
-    // **/*/ -> */**/ <== not valid because ** doesn't follow
-    // this WOULD be allowed if ** did follow symlinks, or * didn't
-    firstPhasePreProcess(globParts) {
-        let didSomething = false;
-        do {
-            didSomething = false;
-            // 
/**/../

/

/ -> {

/../

/

/,

/**/

/

/} - for (let parts of globParts) { - let gs = -1; - while (-1 !== (gs = parts.indexOf('**', gs + 1))) { - let gss = gs; - while (parts[gss + 1] === '**') { - //

/**/**/ -> 
/**/
-                        gss++;
-                    }
-                    // eg, if gs is 2 and gss is 4, that means we have 3 **
-                    // parts, and can remove 2 of them.
-                    if (gss > gs) {
-                        parts.splice(gs + 1, gss - gs);
-                    }
-                    let next = parts[gs + 1];
-                    const p = parts[gs + 2];
-                    const p2 = parts[gs + 3];
-                    if (next !== '..')
-                        continue;
-                    if (!p ||
-                        p === '.' ||
-                        p === '..' ||
-                        !p2 ||
-                        p2 === '.' ||
-                        p2 === '..') {
-                        continue;
-                    }
-                    didSomething = true;
-                    // edit parts in place, and push the new one
-                    parts.splice(gs, 1);
-                    const other = parts.slice(0);
-                    other[gs] = '**';
-                    globParts.push(other);
-                    gs--;
-                }
-                // 
// -> 
/
-                if (!this.preserveMultipleSlashes) {
-                    for (let i = 1; i < parts.length - 1; i++) {
-                        const p = parts[i];
-                        // don't squeeze out UNC patterns
-                        if (i === 1 && p === '' && parts[0] === '')
-                            continue;
-                        if (p === '.' || p === '') {
-                            didSomething = true;
-                            parts.splice(i, 1);
-                            i--;
-                        }
-                    }
-                    if (parts[0] === '.' &&
-                        parts.length === 2 &&
-                        (parts[1] === '.' || parts[1] === '')) {
-                        didSomething = true;
-                        parts.pop();
-                    }
-                }
-                // 
/

/../ ->

/
-                let dd = 0;
-                while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
-                    const p = parts[dd - 1];
-                    if (p && p !== '.' && p !== '..' && p !== '**') {
-                        didSomething = true;
-                        const needDot = dd === 1 && parts[dd + 1] === '**';
-                        const splin = needDot ? ['.'] : [];
-                        parts.splice(dd - 1, 2, ...splin);
-                        if (parts.length === 0)
-                            parts.push('');
-                        dd -= 2;
-                    }
-                }
-            }
-        } while (didSomething);
-        return globParts;
+    async sendToDaemonViaQueue(messageToDaemon) {
+        return this.queue.sendToQueue(() => this.sendMessageToDaemon(messageToDaemon));
     }
-    // second phase: multi-pattern dedupes
-    // {
/*/,
/

/} ->

/*/
-    // {
/,
/} -> 
/
-    // {
/**/,
/} -> 
/**/
-    //
-    // {
/**/,
/**/

/} ->

/**/
-    // ^-- not valid because ** doens't follow symlinks
-    secondPhasePreProcess(globParts) {
-        for (let i = 0; i < globParts.length - 1; i++) {
-            for (let j = i + 1; j < globParts.length; j++) {
-                const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
-                if (!matched)
-                    continue;
-                globParts[i] = matched;
-                globParts[j] = [];
+    setUpConnection() {
+        this.socketMessenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)((0, socket_utils_1.getFullOsSocketPath)())).listen((message) => this.handleMessage(message), () => {
+            // it's ok for the daemon to terminate if the client doesn't wait on
+            // any messages from the daemon
+            if (this.queue.isEmpty()) {
+                this.reset();
             }
-        }
-        return globParts.filter(gs => gs.length);
-    }
-    partsMatch(a, b, emptyGSMatch = false) {
-        let ai = 0;
-        let bi = 0;
-        let result = [];
-        let which = '';
-        while (ai < a.length && bi < b.length) {
-            if (a[ai] === b[bi]) {
-                result.push(which === 'b' ? b[bi] : a[ai]);
-                ai++;
-                bi++;
+            else {
+                output_1.output.error({
+                    title: 'Daemon process terminated and closed the connection',
+                    bodyLines: [
+                        'Please rerun the command, which will restart the daemon.',
+                        `If you get this error again, check for any errors in the daemon process logs found in: ${tmp_dir_1.DAEMON_OUTPUT_LOG_FILE}`,
+                    ],
+                });
+                this._daemonStatus = DaemonStatus.DISCONNECTED;
+                this.currentReject?.(daemonProcessException('Daemon process terminated and closed the connection'));
+                process.exit(1);
             }
-            else if (emptyGSMatch && a[ai] === '**' && b[bi] === a[ai + 1]) {
-                result.push(a[ai]);
-                ai++;
+        }, (err) => {
+            if (!err.message) {
+                return this.currentReject(daemonProcessException(err.toString()));
             }
-            else if (emptyGSMatch && b[bi] === '**' && a[ai] === b[bi + 1]) {
-                result.push(b[bi]);
-                bi++;
+            if (err.message.startsWith('LOCK-FILES-CHANGED')) {
+                // retry the current message
+                // we cannot send it via the queue because we are in the middle of processing
+                // a message from the queue
+                return this.sendMessageToDaemon(this.currentMessage).then(this.currentResolve, this.currentReject);
             }
-            else if (a[ai] === '*' &&
-                b[bi] &&
-                (this.options.dot || !b[bi].startsWith('.')) &&
-                b[bi] !== '**') {
-                if (which === 'b')
-                    return false;
-                which = 'a';
-                result.push(a[ai]);
-                ai++;
-                bi++;
+            let error;
+            if (err.message.startsWith('connect ENOENT')) {
+                error = daemonProcessException('The Daemon Server is not running');
             }
-            else if (b[bi] === '*' &&
-                a[ai] &&
-                (this.options.dot || !a[ai].startsWith('.')) &&
-                a[ai] !== '**') {
-                if (which === 'a')
-                    return false;
-                which = 'b';
-                result.push(b[bi]);
-                ai++;
-                bi++;
+            else if (err.message.startsWith('connect ECONNREFUSED')) {
+                error = daemonProcessException(`A server instance had not been fully shut down. Please try running the command again.`);
+                (0, socket_utils_1.killSocketOrPath)();
+            }
+            else if (err.message.startsWith('read ECONNRESET')) {
+                error = daemonProcessException(`Unable to connect to the daemon process.`);
             }
             else {
-                return false;
+                error = daemonProcessException(err.toString());
             }
-        }
-        // if we fall out of the loop, it means they two are identical
-        // as long as their lengths match
-        return a.length === b.length && result;
+            return this.currentReject(error);
+        });
     }
-    parseNegate() {
-        if (this.nonegate)
-            return;
-        const pattern = this.pattern;
-        let negate = false;
-        let negateOffset = 0;
-        for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {
-            negate = !negate;
-            negateOffset++;
+    async sendMessageToDaemon(message) {
+        if (this._daemonStatus == DaemonStatus.DISCONNECTED) {
+            this._daemonStatus = DaemonStatus.CONNECTING;
+            if (!(await this.isServerAvailable())) {
+                await this.startInBackground();
+            }
+            this.setUpConnection();
+            this._daemonStatus = DaemonStatus.CONNECTED;
+            this._daemonReady();
         }
-        if (negateOffset)
-            this.pattern = pattern.slice(negateOffset);
-        this.negate = negate;
+        else if (this._daemonStatus == DaemonStatus.CONNECTING) {
+            await this._waitForDaemonReady;
+        }
+        // An open promise isn't enough to keep the event loop
+        // alive, so we set a timeout here and clear it when we hear
+        // back
+        const keepAlive = setTimeout(() => { }, 10 * 60 * 1000);
+        return new Promise((resolve, reject) => {
+            perf_hooks_1.performance.mark('sendMessageToDaemon-start');
+            this.currentMessage = message;
+            this.currentResolve = resolve;
+            this.currentReject = reject;
+            this.socketMessenger.sendMessage(message);
+        }).finally(() => {
+            clearTimeout(keepAlive);
+        });
     }
-    // set partial to true to test if, for example,
-    // "/a/b" matches the start of "/*/b/*/d"
-    // Partial means, if you run out of file before you run
-    // out of pattern, then that's fine, as long as all
-    // the parts match.
-    matchOne(file, pattern, partial = false) {
-        const options = this.options;
-        // UNC paths like //?/X:/... can match X:/... and vice versa
-        // Drive letters in absolute drive or unc paths are always compared
-        // case-insensitively.
-        if (this.isWindows) {
-            const fileDrive = typeof file[0] === 'string' && /^[a-z]:$/i.test(file[0]);
-            const fileUNC = !fileDrive &&
-                file[0] === '' &&
-                file[1] === '' &&
-                file[2] === '?' &&
-                /^[a-z]:$/i.test(file[3]);
-            const patternDrive = typeof pattern[0] === 'string' && /^[a-z]:$/i.test(pattern[0]);
-            const patternUNC = !patternDrive &&
-                pattern[0] === '' &&
-                pattern[1] === '' &&
-                pattern[2] === '?' &&
-                typeof pattern[3] === 'string' &&
-                /^[a-z]:$/i.test(pattern[3]);
-            const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
-            const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
-            if (typeof fdi === 'number' && typeof pdi === 'number') {
-                const [fd, pd] = [file[fdi], pattern[pdi]];
-                if (fd.toLowerCase() === pd.toLowerCase()) {
-                    pattern[pdi] = fd;
-                    if (pdi > fdi) {
-                        pattern = pattern.slice(pdi);
-                    }
-                    else if (fdi > pdi) {
-                        file = file.slice(fdi);
-                    }
-                }
+    handleMessage(serializedResult) {
+        try {
+            perf_hooks_1.performance.mark('json-parse-start');
+            const parsedResult = JSON.parse(serializedResult);
+            perf_hooks_1.performance.mark('json-parse-end');
+            perf_hooks_1.performance.measure('deserialize daemon response', 'json-parse-start', 'json-parse-end');
+            if (parsedResult.error) {
+                this.currentReject(parsedResult.error);
+            }
+            else {
+                perf_hooks_1.performance.measure('total for sendMessageToDaemon()', 'sendMessageToDaemon-start', 'json-parse-end');
+                return this.currentResolve(parsedResult);
             }
         }
-        // resolve and reduce . and .. portions in the file as well.
-        // dont' need to do the second phase, because it's only one string[]
-        const { optimizationLevel = 1 } = this.options;
-        if (optimizationLevel >= 2) {
-            file = this.levelTwoFileOptimize(file);
+        catch (e) {
+            const endOfResponse = serializedResult.length > 300
+                ? serializedResult.substring(serializedResult.length - 300)
+                : serializedResult;
+            this.currentReject(daemonProcessException([
+                'Could not deserialize response from Nx daemon.',
+                `Message: ${e.message}`,
+                '\n',
+                `Received:`,
+                endOfResponse,
+                '\n',
+            ].join('\n')));
         }
-        this.debug('matchOne', this, { file, pattern });
-        this.debug('matchOne', file.length, pattern.length);
-        for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
-            this.debug('matchOne loop');
-            var p = pattern[pi];
-            var f = file[fi];
-            this.debug(pattern, p, f);
-            // should be impossible.
-            // some invalid regexp stuff in the set.
-            /* c8 ignore start */
-            if (p === false) {
-                return false;
-            }
-            /* c8 ignore stop */
-            if (p === exports.GLOBSTAR) {
-                this.debug('GLOBSTAR', [pattern, p, f]);
-                // "**"
-                // a/**/b/**/c would match the following:
-                // a/b/x/y/z/c
-                // a/x/y/z/b/c
-                // a/b/x/b/x/c
-                // a/b/c
-                // To do this, take the rest of the pattern after
-                // the **, and see if it would match the file remainder.
-                // If so, return success.
-                // If not, the ** "swallows" a segment, and try again.
-                // This is recursively awful.
-                //
-                // a/**/b/**/c matching a/b/x/y/z/c
-                // - a matches a
-                // - doublestar
-                //   - matchOne(b/x/y/z/c, b/**/c)
-                //     - b matches b
-                //     - doublestar
-                //       - matchOne(x/y/z/c, c) -> no
-                //       - matchOne(y/z/c, c) -> no
-                //       - matchOne(z/c, c) -> no
-                //       - matchOne(c, c) yes, hit
-                var fr = fi;
-                var pr = pi + 1;
-                if (pr === pl) {
-                    this.debug('** at the end');
-                    // a ** at the end will just swallow the rest.
-                    // We have found a match.
-                    // however, it will not swallow /.x, unless
-                    // options.dot is set.
-                    // . and .. are *never* matched by **, for explosively
-                    // exponential reasons.
-                    for (; fi < fl; fi++) {
-                        if (file[fi] === '.' ||
-                            file[fi] === '..' ||
-                            (!options.dot && file[fi].charAt(0) === '.'))
-                            return false;
-                    }
-                    return true;
+    }
+    async startInBackground() {
+        (0, fs_extra_1.ensureDirSync)(tmp_dir_1.DAEMON_DIR_FOR_CURRENT_WORKSPACE);
+        (0, fs_extra_1.ensureFileSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE);
+        this._out = await (0, promises_1.open)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE, 'a');
+        this._err = await (0, promises_1.open)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE, 'a');
+        const backgroundProcess = (0, child_process_1.spawn)(process.execPath, [(0, path_1.join)(__dirname, `../server/start.js`)], {
+            cwd: workspace_root_1.workspaceRoot,
+            stdio: ['ignore', this._out.fd, this._err.fd],
+            detached: true,
+            windowsHide: true,
+            shell: false,
+            env: {
+                ...process.env,
+                ...DAEMON_ENV_SETTINGS,
+            },
+        });
+        backgroundProcess.unref();
+        /**
+         * Ensure the server is actually available to connect to via IPC before resolving
+         */
+        let attempts = 0;
+        return new Promise((resolve, reject) => {
+            const id = setInterval(async () => {
+                if (await this.isServerAvailable()) {
+                    clearInterval(id);
+                    resolve(backgroundProcess.pid);
                 }
-                // ok, let's see if we can swallow whatever we can.
-                while (fr < fl) {
-                    var swallowee = file[fr];
-                    this.debug('\nglobstar while', file, fr, pattern, pr, swallowee);
-                    // XXX remove this slice.  Just pass the start index.
-                    if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
-                        this.debug('globstar found match!', fr, fl, swallowee);
-                        // found a match.
-                        return true;
-                    }
-                    else {
-                        // can't swallow "." or ".." ever.
-                        // can only swallow ".foo" when explicitly asked.
-                        if (swallowee === '.' ||
-                            swallowee === '..' ||
-                            (!options.dot && swallowee.charAt(0) === '.')) {
-                            this.debug('dot detected!', file, fr, pattern, pr);
-                            break;
-                        }
-                        // ** swallows a segment, and continue.
-                        this.debug('globstar swallow a segment, and continue');
-                        fr++;
-                    }
+                else if (attempts > 6000) {
+                    // daemon fails to start, the process probably exited
+                    // we print the logs and exit the client
+                    reject(daemonProcessException('Failed to start or connect to the Nx Daemon process.'));
                 }
-                // no match was found.
-                // However, in partial mode, we can't say this is necessarily over.
-                /* c8 ignore start */
-                if (partial) {
-                    // ran out of file
-                    this.debug('\n>>> no match, partial?', file, fr, pattern, pr);
-                    if (fr === fl) {
-                        return true;
-                    }
+                else {
+                    attempts++;
                 }
-                /* c8 ignore stop */
-                return false;
-            }
-            // something other than **
-            // non-magic patterns just have to match exactly
-            // patterns with magic have been turned into regexps.
-            let hit;
-            if (typeof p === 'string') {
-                hit = f === p;
-                this.debug('string match', p, f, hit);
-            }
-            else {
-                hit = p.test(f);
-                this.debug('pattern match', p, f, hit);
-            }
-            if (!hit)
-                return false;
+            }, 10);
+        });
+    }
+    async stop() {
+        try {
+            await this.sendMessageToDaemon({ type: force_shutdown_1.FORCE_SHUTDOWN });
+            await (0, cache_1.waitForDaemonToExitAndCleanupProcessJson)();
         }
-        // Note: ending in / means that we'll get a final ""
-        // at the end of the pattern.  This can only match a
-        // corresponding "" at the end of the file.
-        // If the file ends in /, then it can only match a
-        // a pattern that ends in /, unless the pattern just
-        // doesn't have any more for it. But, a/b/ should *not*
-        // match "a/b/*", even though "" matches against the
-        // [^/]*? pattern, except in partial mode, where it might
-        // simply not be reached yet.
-        // However, a/b/ should still satisfy a/*
-        // now either we fell off the end of the pattern, or we're done.
-        if (fi === fl && pi === pl) {
-            // ran out of pattern and filename at the same time.
-            // an exact hit!
-            return true;
+        catch (err) {
+            output_1.output.error({
+                title: err?.message ||
+                    'Something unexpected went wrong when stopping the server',
+            });
         }
-        else if (fi === fl) {
-            // ran out of file, but still had pattern left.
-            // this is ok if we're doing the match as part of
-            // a glob fs traversal.
-            return partial;
+        (0, tmp_dir_1.removeSocketDir)();
+    }
+}
+exports.DaemonClient = DaemonClient;
+exports.daemonClient = new DaemonClient();
+function isDaemonEnabled() {
+    return exports.daemonClient.enabled();
+}
+function isDocker() {
+    try {
+        (0, fs_1.statSync)('/.dockerenv');
+        return true;
+    }
+    catch {
+        try {
+            return (0, fs_1.readFileSync)('/proc/self/cgroup', 'utf8')?.includes('docker');
+        }
+        catch { }
+        return false;
+    }
+}
+function nxJsonIsNotPresent() {
+    return !(0, nx_json_1.hasNxJson)(workspace_root_1.workspaceRoot);
+}
+function daemonProcessException(message) {
+    try {
+        let log = (0, fs_1.readFileSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE).toString().split('\n');
+        if (log.length > 20) {
+            log = log.slice(log.length - 20);
+        }
+        const error = new Error([
+            message,
+            '',
+            'Messages from the log:',
+            ...log,
+            '\n',
+            `More information: ${tmp_dir_1.DAEMON_OUTPUT_LOG_FILE}`,
+        ].join('\n'));
+        error.internalDaemonError = true;
+        return error;
+    }
+    catch (e) {
+        return new Error(message);
+    }
+}
+
+
+/***/ }),
+
+/***/ 81629:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.DaemonSocketMessenger = void 0;
+const consume_messages_from_socket_1 = __nccwpck_require__(66696);
+class DaemonSocketMessenger {
+    constructor(socket) {
+        this.socket = socket;
+    }
+    async sendMessage(messageToDaemon) {
+        this.socket.write(JSON.stringify(messageToDaemon));
+        // send EOT to indicate that the message has been fully written
+        this.socket.write(String.fromCodePoint(4));
+    }
+    listen(onData, onClose = () => { }, onError = (err) => { }) {
+        this.socket.on('data', (0, consume_messages_from_socket_1.consumeMessagesFromSocket)(async (message) => {
+            onData(message);
+        }));
+        this.socket.on('close', onClose);
+        this.socket.on('error', onError);
+        return this;
+    }
+    close() {
+        this.socket.destroy();
+    }
+}
+exports.DaemonSocketMessenger = DaemonSocketMessenger;
+
+
+/***/ }),
+
+/***/ 45153:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isOnDaemon = isOnDaemon;
+function isOnDaemon() {
+    return !!global.NX_DAEMON;
+}
+
+
+/***/ }),
+
+/***/ 31082:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.FLUSH_SYNC_GENERATOR_CHANGES_TO_DISK = void 0;
+exports.isHandleFlushSyncGeneratorChangesToDiskMessage = isHandleFlushSyncGeneratorChangesToDiskMessage;
+exports.FLUSH_SYNC_GENERATOR_CHANGES_TO_DISK = 'CLEAR_CACHED_SYNC_GENERATOR_CHANGES';
+function isHandleFlushSyncGeneratorChangesToDiskMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.FLUSH_SYNC_GENERATOR_CHANGES_TO_DISK);
+}
+
+
+/***/ }),
+
+/***/ 36438:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.FORCE_SHUTDOWN = void 0;
+exports.isHandleForceShutdownMessage = isHandleForceShutdownMessage;
+exports.FORCE_SHUTDOWN = 'FORCE_SHUTDOWN';
+function isHandleForceShutdownMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.FORCE_SHUTDOWN);
+}
+
+
+/***/ }),
+
+/***/ 50356:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.GET_CONTEXT_FILE_DATA = void 0;
+exports.isHandleContextFileDataMessage = isHandleContextFileDataMessage;
+exports.GET_CONTEXT_FILE_DATA = 'GET_CONTEXT_FILE_DATA';
+function isHandleContextFileDataMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.GET_CONTEXT_FILE_DATA);
+}
+
+
+/***/ }),
+
+/***/ 52095:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.GET_FILES_IN_DIRECTORY = void 0;
+exports.isHandleGetFilesInDirectoryMessage = isHandleGetFilesInDirectoryMessage;
+exports.GET_FILES_IN_DIRECTORY = 'GET_FILES_IN_DIRECTORY';
+function isHandleGetFilesInDirectoryMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.GET_FILES_IN_DIRECTORY);
+}
+
+
+/***/ }),
+
+/***/ 27333:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.GET_NX_WORKSPACE_FILES = void 0;
+exports.isHandleNxWorkspaceFilesMessage = isHandleNxWorkspaceFilesMessage;
+exports.GET_NX_WORKSPACE_FILES = 'GET_NX_WORKSPACE_FILES';
+function isHandleNxWorkspaceFilesMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.GET_NX_WORKSPACE_FILES);
+}
+
+
+/***/ }),
+
+/***/ 41015:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.GET_REGISTERED_SYNC_GENERATORS = void 0;
+exports.isHandleGetRegisteredSyncGeneratorsMessage = isHandleGetRegisteredSyncGeneratorsMessage;
+exports.GET_REGISTERED_SYNC_GENERATORS = 'GET_REGISTERED_SYNC_GENERATORS';
+function isHandleGetRegisteredSyncGeneratorsMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.GET_REGISTERED_SYNC_GENERATORS);
+}
+
+
+/***/ }),
+
+/***/ 72396:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.GET_SYNC_GENERATOR_CHANGES = void 0;
+exports.isHandleGetSyncGeneratorChangesMessage = isHandleGetSyncGeneratorChangesMessage;
+exports.GET_SYNC_GENERATOR_CHANGES = 'GET_SYNC_GENERATOR_CHANGES';
+function isHandleGetSyncGeneratorChangesMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.GET_SYNC_GENERATOR_CHANGES);
+}
+
+
+/***/ }),
+
+/***/ 87295:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.GLOB = void 0;
+exports.isHandleGlobMessage = isHandleGlobMessage;
+exports.GLOB = 'GLOB';
+function isHandleGlobMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.GLOB);
+}
+
+
+/***/ }),
+
+/***/ 26613:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.HASH_GLOB = void 0;
+exports.isHandleHashGlobMessage = isHandleHashGlobMessage;
+exports.HASH_GLOB = 'HASH_GLOB';
+function isHandleHashGlobMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.HASH_GLOB);
+}
+
+
+/***/ }),
+
+/***/ 39901:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.WRITE_TASK_RUNS_TO_HISTORY = exports.GET_TASK_HISTORY_FOR_HASHES = void 0;
+exports.isHandleGetTaskHistoryForHashesMessage = isHandleGetTaskHistoryForHashesMessage;
+exports.isHandleWriteTaskRunsToHistoryMessage = isHandleWriteTaskRunsToHistoryMessage;
+exports.GET_TASK_HISTORY_FOR_HASHES = 'GET_TASK_HISTORY_FOR_HASHES';
+function isHandleGetTaskHistoryForHashesMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.GET_TASK_HISTORY_FOR_HASHES);
+}
+exports.WRITE_TASK_RUNS_TO_HISTORY = 'WRITE_TASK_RUNS_TO_HISTORY';
+function isHandleWriteTaskRunsToHistoryMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.WRITE_TASK_RUNS_TO_HISTORY);
+}
+
+
+/***/ }),
+
+/***/ 51579:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.UPDATE_WORKSPACE_CONTEXT = void 0;
+exports.isHandleUpdateWorkspaceContextMessage = isHandleUpdateWorkspaceContextMessage;
+exports.UPDATE_WORKSPACE_CONTEXT = 'UPDATE_WORKSPACE_CONTEXT';
+function isHandleUpdateWorkspaceContextMessage(message) {
+    return (typeof message === 'object' &&
+        message !== null &&
+        'type' in message &&
+        message['type'] === exports.UPDATE_WORKSPACE_CONTEXT);
+}
+
+
+/***/ }),
+
+/***/ 76357:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getProjectsAndGlobalChanges = getProjectsAndGlobalChanges;
+const perf_hooks_1 = __nccwpck_require__(4074);
+const project_graph_incremental_recomputation_1 = __nccwpck_require__(96952);
+function getProjectsAndGlobalChanges(createdFiles, updatedFiles, deletedFiles) {
+    const projectAndGlobalChanges = {
+        projects: {},
+        globalFiles: [],
+    };
+    perf_hooks_1.performance.mark('changed-projects:start');
+    const allChangedFiles = [
+        ...(createdFiles ?? []).map((c) => ({
+            path: c,
+            type: 'create',
+        })),
+        ...(updatedFiles ?? []).map((c) => ({
+            path: c,
+            type: 'update',
+        })),
+        ...(deletedFiles ?? []).map((c) => ({
+            path: c,
+            type: 'delete',
+        })),
+    ];
+    const fileToProjectMap = {};
+    for (const [projectName, projectFiles] of Object.entries(project_graph_incremental_recomputation_1.fileMapWithFiles?.fileMap?.projectFileMap ?? {})) {
+        for (const projectFile of projectFiles) {
+            fileToProjectMap[projectFile.file] = projectName;
         }
-        else if (pi === pl) {
-            // ran out of pattern, still have file left.
-            // this is only acceptable if we're on the very last
-            // empty segment of a file with a trailing slash.
-            // a/* should match a/b/
-            return fi === fl - 1 && file[fi] === '';
-            /* c8 ignore start */
+    }
+    for (const changedFile of allChangedFiles) {
+        const project = fileToProjectMap[changedFile.path];
+        if (project) {
+            (projectAndGlobalChanges.projects[project] ??= []).push(changedFile);
         }
         else {
-            // should be unreachable.
-            throw new Error('wtf?');
+            projectAndGlobalChanges.globalFiles.push(changedFile);
         }
-        /* c8 ignore stop */
     }
-    braceExpand() {
-        return (0, exports.braceExpand)(this.pattern, this.options);
-    }
-    parse(pattern) {
-        (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
-        const options = this.options;
-        // shortcuts
-        if (pattern === '**')
-            return exports.GLOBSTAR;
-        if (pattern === '')
-            return '';
-        // far and away, the most common glob pattern parts are
-        // *, *.*, and *.  Add a fast check method for those.
-        let m;
-        let fastTest = null;
-        if ((m = pattern.match(starRE))) {
-            fastTest = options.dot ? starTestDot : starTest;
-        }
-        else if ((m = pattern.match(starDotExtRE))) {
-            fastTest = (options.nocase
-                ? options.dot
-                    ? starDotExtTestNocaseDot
-                    : starDotExtTestNocase
-                : options.dot
-                    ? starDotExtTestDot
-                    : starDotExtTest)(m[1]);
-        }
-        else if ((m = pattern.match(qmarksRE))) {
-            fastTest = (options.nocase
-                ? options.dot
-                    ? qmarksTestNocaseDot
-                    : qmarksTestNocase
-                : options.dot
-                    ? qmarksTestDot
-                    : qmarksTest)(m);
-        }
-        else if ((m = pattern.match(starDotStarRE))) {
-            fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
-        }
-        else if ((m = pattern.match(dotStarRE))) {
-            fastTest = dotStarTest;
-        }
-        const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();
-        return fastTest ? Object.assign(re, { test: fastTest }) : re;
+    perf_hooks_1.performance.mark('changed-projects:end');
+    perf_hooks_1.performance.measure('changed-projects', 'changed-projects:start', 'changed-projects:end');
+    return projectAndGlobalChanges;
+}
+
+
+/***/ }),
+
+/***/ 56159:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.registeredFileWatcherSockets = void 0;
+exports.removeRegisteredFileWatcherSocket = removeRegisteredFileWatcherSocket;
+exports.hasRegisteredFileWatcherSockets = hasRegisteredFileWatcherSockets;
+exports.notifyFileWatcherSockets = notifyFileWatcherSockets;
+const find_matching_projects_1 = __nccwpck_require__(50630);
+const project_graph_utils_1 = __nccwpck_require__(84463);
+const promised_based_queue_1 = __nccwpck_require__(25340);
+const project_graph_incremental_recomputation_1 = __nccwpck_require__(96952);
+const server_1 = __nccwpck_require__(85309);
+const changed_projects_1 = __nccwpck_require__(76357);
+const queue = new promised_based_queue_1.PromisedBasedQueue();
+exports.registeredFileWatcherSockets = [];
+function removeRegisteredFileWatcherSocket(socket) {
+    exports.registeredFileWatcherSockets = exports.registeredFileWatcherSockets.filter((watcher) => watcher.socket !== socket);
+}
+function hasRegisteredFileWatcherSockets() {
+    return exports.registeredFileWatcherSockets.length > 0;
+}
+function notifyFileWatcherSockets(createdFiles, updatedFiles, deletedFiles) {
+    if (!hasRegisteredFileWatcherSockets()) {
+        return;
     }
-    makeRe() {
-        if (this.regexp || this.regexp === false)
-            return this.regexp;
-        // at this point, this.set is a 2d array of partial
-        // pattern strings, or "**".
-        //
-        // It's better to use .match().  This function shouldn't
-        // be used, really, but it's pretty convenient sometimes,
-        // when you just want to work with a regex.
-        const set = this.set;
-        if (!set.length) {
-            this.regexp = false;
-            return this.regexp;
-        }
-        const options = this.options;
-        const twoStar = options.noglobstar
-            ? star
-            : options.dot
-                ? twoStarDot
-                : twoStarNoDot;
-        const flags = new Set(options.nocase ? ['i'] : []);
-        // regexpify non-globstar patterns
-        // if ** is only item, then we just do one twoStar
-        // if ** is first, and there are more, prepend (\/|twoStar\/)? to next
-        // if ** is last, append (\/twoStar|) to previous
-        // if ** is in the middle, append (\/|\/twoStar\/) to previous
-        // then filter out GLOBSTAR symbols
-        let re = set
-            .map(pattern => {
-            const pp = pattern.map(p => {
-                if (p instanceof RegExp) {
-                    for (const f of p.flags.split(''))
-                        flags.add(f);
-                }
-                return typeof p === 'string'
-                    ? regExpEscape(p)
-                    : p === exports.GLOBSTAR
-                        ? exports.GLOBSTAR
-                        : p._src;
-            });
-            pp.forEach((p, i) => {
-                const next = pp[i + 1];
-                const prev = pp[i - 1];
-                if (p !== exports.GLOBSTAR || prev === exports.GLOBSTAR) {
-                    return;
+    queue.sendToQueue(async () => {
+        const projectAndGlobalChanges = (0, changed_projects_1.getProjectsAndGlobalChanges)(createdFiles, updatedFiles, deletedFiles);
+        await Promise.all(exports.registeredFileWatcherSockets.map(({ socket, config }) => {
+            const changedProjects = [];
+            const changedFiles = [];
+            if (config.watchProjects === 'all') {
+                for (const [projectName, projectFiles] of Object.entries(projectAndGlobalChanges.projects)) {
+                    changedProjects.push(projectName);
+                    changedFiles.push(...projectFiles);
                 }
-                if (prev === undefined) {
-                    if (next !== undefined && next !== exports.GLOBSTAR) {
-                        pp[i + 1] = '(?:\\/|' + twoStar + '\\/)?' + next;
-                    }
-                    else {
-                        pp[i] = twoStar;
+            }
+            else {
+                const watchedProjects = new Set((0, find_matching_projects_1.findMatchingProjects)(config.watchProjects, project_graph_incremental_recomputation_1.currentProjectGraph.nodes));
+                if (config.includeDependentProjects) {
+                    for (const project of watchedProjects) {
+                        for (const dep of (0, project_graph_utils_1.findAllProjectNodeDependencies)(project, project_graph_incremental_recomputation_1.currentProjectGraph)) {
+                            watchedProjects.add(dep);
+                        }
                     }
                 }
-                else if (next === undefined) {
-                    pp[i - 1] = prev + '(?:\\/|' + twoStar + ')?';
-                }
-                else if (next !== exports.GLOBSTAR) {
-                    pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + '\\/)' + next;
-                    pp[i + 1] = exports.GLOBSTAR;
+                for (const watchedProject of watchedProjects) {
+                    if (!!projectAndGlobalChanges.projects[watchedProject]) {
+                        changedProjects.push(watchedProject);
+                        changedFiles.push(...projectAndGlobalChanges.projects[watchedProject]);
+                    }
                 }
-            });
-            return pp.filter(p => p !== exports.GLOBSTAR).join('/');
-        })
-            .join('|');
-        // need to wrap in parens if we had more than one thing with |,
-        // otherwise only the first will be anchored to ^ and the last to $
-        const [open, close] = set.length > 1 ? ['(?:', ')'] : ['', ''];
-        // must match entire pattern
-        // ending in a * or ** will make it less strict.
-        re = '^' + open + re + close + '$';
-        // can match anything, as long as it's not this.
-        if (this.negate)
-            re = '^(?!' + re + ').+$';
-        try {
-            this.regexp = new RegExp(re, [...flags].join(''));
-            /* c8 ignore start */
-        }
-        catch (ex) {
-            // should be impossible
-            this.regexp = false;
-        }
-        /* c8 ignore stop */
-        return this.regexp;
-    }
-    slashSplit(p) {
-        // if p starts with // on windows, we preserve that
-        // so that UNC paths aren't broken.  Otherwise, any number of
-        // / characters are coalesced into one, unless
-        // preserveMultipleSlashes is set to true.
-        if (this.preserveMultipleSlashes) {
-            return p.split('/');
-        }
-        else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
-            // add an extra '' for the one we lose
-            return ['', ...p.split(/\/+/)];
-        }
-        else {
-            return p.split(/\/+/);
-        }
-    }
-    match(f, partial = this.partial) {
-        this.debug('match', f, this.pattern);
-        // short-circuit in the case of busted things.
-        // comments, etc.
-        if (this.comment) {
-            return false;
-        }
-        if (this.empty) {
-            return f === '';
-        }
-        if (f === '/' && partial) {
-            return true;
-        }
-        const options = this.options;
-        // windows: need to use /, not \
-        if (this.isWindows) {
-            f = f.split('\\').join('/');
-        }
-        // treat the test path as a set of pathparts.
-        const ff = this.slashSplit(f);
-        this.debug(this.pattern, 'split', ff);
-        // just ONE of the pattern sets in this.set needs to match
-        // in order for it to be valid.  If negating, then just one
-        // match means that we have failed.
-        // Either way, return on the first hit.
-        const set = this.set;
-        this.debug(this.pattern, 'set', set);
-        // Find the basename of the path by looking for the last non-empty segment
-        let filename = ff[ff.length - 1];
-        if (!filename) {
-            for (let i = ff.length - 2; !filename && i >= 0; i--) {
-                filename = ff[i];
             }
-        }
-        for (let i = 0; i < set.length; i++) {
-            const pattern = set[i];
-            let file = ff;
-            if (options.matchBase && pattern.length === 1) {
-                file = [filename];
+            if (config.includeGlobalWorkspaceFiles) {
+                changedFiles.push(...projectAndGlobalChanges.globalFiles);
             }
-            const hit = this.matchOne(file, pattern, partial);
-            if (hit) {
-                if (options.flipNegate) {
-                    return true;
-                }
-                return !this.negate;
+            if (changedProjects.length > 0 || changedFiles.length > 0) {
+                return (0, server_1.handleResult)(socket, 'FILE-WATCH-CHANGED', () => Promise.resolve({
+                    description: 'File watch changed',
+                    response: JSON.stringify({
+                        changedProjects,
+                        changedFiles,
+                    }),
+                }));
             }
-        }
-        // didn't get any hits.  this is success if it's a negative
-        // pattern, failure otherwise.
-        if (options.flipNegate) {
-            return false;
-        }
-        return this.negate;
-    }
-    static defaults(def) {
-        return exports.minimatch.defaults(def).Minimatch;
-    }
+        }));
+    });
 }
-exports.Minimatch = Minimatch;
-/* c8 ignore start */
-var ast_js_2 = __nccwpck_require__(81227);
-Object.defineProperty(exports, "AST", ({ enumerable: true, get: function () { return ast_js_2.AST; } }));
-var escape_js_2 = __nccwpck_require__(67350);
-Object.defineProperty(exports, "escape", ({ enumerable: true, get: function () { return escape_js_2.escape; } }));
-var unescape_js_2 = __nccwpck_require__(40391);
-Object.defineProperty(exports, "unescape", ({ enumerable: true, get: function () { return unescape_js_2.unescape; } }));
-/* c8 ignore stop */
-exports.minimatch.AST = ast_js_1.AST;
-exports.minimatch.Minimatch = Minimatch;
-exports.minimatch.escape = escape_js_1.escape;
-exports.minimatch.unescape = unescape_js_1.unescape;
-//# sourceMappingURL=index.js.map
+
 
 /***/ }),
 
-/***/ 40391:
-/***/ ((__unused_webpack_module, exports) => {
+/***/ 59957:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.unescape = void 0;
-/**
- * Un-escape a string that has been escaped with {@link escape}.
- *
- * If the {@link windowsPathsNoEscape} option is used, then square-brace
- * escapes are removed, but not backslash escapes.  For example, it will turn
- * the string `'[*]'` into `*`, but it will not turn `'\\*'` into `'*'`,
- * becuase `\` is a path separator in `windowsPathsNoEscape` mode.
- *
- * When `windowsPathsNoEscape` is not set, then both brace escapes and
- * backslash escapes are removed.
- *
- * Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
- * or unescaped.
- */
-const unescape = (s, { windowsPathsNoEscape = false, } = {}) => {
-    return windowsPathsNoEscape
-        ? s.replace(/\[([^\/\\])\]/g, '$1')
-        : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, '$1$2').replace(/\\([^\/])/g, '$1');
-};
-exports.unescape = unescape;
-//# sourceMappingURL=unescape.js.map
+exports.handleContextFileData = handleContextFileData;
+const workspace_context_1 = __nccwpck_require__(98897);
+const workspace_root_1 = __nccwpck_require__(64393);
+async function handleContextFileData() {
+    const files = await (0, workspace_context_1.getAllFileDataInContext)(workspace_root_1.workspaceRoot);
+    return {
+        response: JSON.stringify(files),
+        description: 'handleContextFileData',
+    };
+}
+
 
 /***/ }),
 
-/***/ 45205:
+/***/ 8397:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.NxAngularJsonPlugin = exports.NX_ANGULAR_JSON_PLUGIN_NAME = void 0;
-exports.shouldMergeAngularProjects = shouldMergeAngularProjects;
-exports.isAngularPluginInstalled = isAngularPluginInstalled;
-exports.toNewFormat = toNewFormat;
-exports.toOldFormat = toOldFormat;
-exports.renamePropertyWithStableKeys = renamePropertyWithStableKeys;
-const fs_1 = __nccwpck_require__(57147);
-const path = __nccwpck_require__(71017);
-const fileutils_1 = __nccwpck_require__(40910);
-exports.NX_ANGULAR_JSON_PLUGIN_NAME = 'nx-angular-json-plugin';
-exports.NxAngularJsonPlugin = {
-    name: exports.NX_ANGULAR_JSON_PLUGIN_NAME,
-    createNodes: [
-        'angular.json',
-        (f, _, ctx) => ({
-            projects: readAngularJson(ctx.workspaceRoot),
-        }),
-    ],
-};
-exports["default"] = exports.NxAngularJsonPlugin;
-function shouldMergeAngularProjects(root, includeProjectsFromAngularJson) {
-    if ((0, fs_1.existsSync)(path.join(root, 'angular.json')) &&
-        // Include projects from angular.json if explicitly required.
-        // e.g. when invoked from `packages/devkit/src/utils/convert-nx-executor.ts`
-        (includeProjectsFromAngularJson ||
-            // Or if a workspace has `@nrwl/angular`/`@nx/angular` installed then projects from `angular.json` to be considered by Nx.
-            isAngularPluginInstalled())) {
-        return true;
-    }
-    else {
-        return false;
-    }
+exports.handleFlushSyncGeneratorChangesToDisk = handleFlushSyncGeneratorChangesToDisk;
+const sync_generators_1 = __nccwpck_require__(75498);
+async function handleFlushSyncGeneratorChangesToDisk(generators) {
+    await (0, sync_generators_1.flushSyncGeneratorChangesToDisk)(generators);
+    return {
+        response: '{}',
+        description: 'handleFlushSyncGeneratorChangesToDisk',
+    };
 }
-function isAngularPluginInstalled() {
-    try {
-        // nx-ignore-next-line
-        require.resolve('@nx/angular');
-        return true;
-    }
-    catch {
-        try {
-            require.resolve('@nrwl/angular');
-            return true;
-        }
-        catch {
-            return false;
-        }
-    }
+
+
+/***/ }),
+
+/***/ 71375:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleForceShutdown = handleForceShutdown;
+const shutdown_utils_1 = __nccwpck_require__(45347);
+const server_1 = __nccwpck_require__(85309);
+async function handleForceShutdown(server) {
+    setTimeout(async () => {
+        await (0, shutdown_utils_1.handleServerProcessTermination)({
+            server,
+            reason: 'Request to shutdown',
+            sockets: server_1.openSockets,
+        });
+    });
+    return {
+        description: 'Shutdown initiated',
+        response: '{}',
+    };
 }
-function readAngularJson(angularCliWorkspaceRoot) {
-    return toNewFormat((0, fileutils_1.readJsonFile)(path.join(angularCliWorkspaceRoot, 'angular.json'))).projects;
+
+
+/***/ }),
+
+/***/ 63873:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleGetFilesInDirectory = handleGetFilesInDirectory;
+const workspace_context_1 = __nccwpck_require__(98897);
+const workspace_root_1 = __nccwpck_require__(64393);
+async function handleGetFilesInDirectory(dir) {
+    const files = await (0, workspace_context_1.getFilesInDirectoryUsingContext)(workspace_root_1.workspaceRoot, dir);
+    return {
+        response: JSON.stringify(files),
+        description: 'handleNxWorkspaceFiles',
+    };
 }
-function toNewFormat(w) {
-    if (!w.projects) {
-        return w;
-    }
-    for (const name in w.projects ?? {}) {
-        const projectConfig = w.projects[name];
-        if (projectConfig.architect) {
-            renamePropertyWithStableKeys(projectConfig, 'architect', 'targets');
-        }
-        if (projectConfig.schematics) {
-            renamePropertyWithStableKeys(projectConfig, 'schematics', 'generators');
-        }
-        if (!projectConfig.name) {
-            projectConfig.name = name;
-        }
-        Object.values(projectConfig.targets || {}).forEach((target) => {
-            if (target.builder !== undefined) {
-                renamePropertyWithStableKeys(target, 'builder', 'executor');
-            }
-        });
-    }
-    if (w.schematics) {
-        renamePropertyWithStableKeys(w, 'schematics', 'generators');
-    }
-    if (w.version !== 2) {
-        w.version = 2;
-    }
-    return w;
+
+
+/***/ }),
+
+/***/ 1991:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleGetRegisteredSyncGenerators = handleGetRegisteredSyncGenerators;
+const sync_generators_1 = __nccwpck_require__(75498);
+async function handleGetRegisteredSyncGenerators() {
+    const syncGenerators = await (0, sync_generators_1.getCachedRegisteredSyncGenerators)();
+    return {
+        response: JSON.stringify(syncGenerators),
+        description: 'handleGetSyncGeneratorChanges',
+    };
 }
-function toOldFormat(w) {
-    if (w.projects) {
-        for (const name in w.projects) {
-            const projectConfig = w.projects[name];
-            if (typeof projectConfig === 'string') {
-                throw new Error("'project.json' files are incompatible with version 1 workspace schemas.");
-            }
-            if (projectConfig.targets) {
-                renamePropertyWithStableKeys(projectConfig, 'targets', 'architect');
-            }
-            if (projectConfig.generators) {
-                renamePropertyWithStableKeys(projectConfig, 'generators', 'schematics');
-            }
-            delete projectConfig.name;
-            Object.values(projectConfig.architect || {}).forEach((target) => {
-                if (target.executor !== undefined) {
-                    renamePropertyWithStableKeys(target, 'executor', 'builder');
-                }
-            });
-        }
-    }
-    if (w.generators) {
-        renamePropertyWithStableKeys(w, 'generators', 'schematics');
-    }
-    if (w.version !== 1) {
-        w.version = 1;
-    }
-    return w;
+
+
+/***/ }),
+
+/***/ 83909:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleGetSyncGeneratorChanges = handleGetSyncGeneratorChanges;
+const sync_generators_1 = __nccwpck_require__(75498);
+async function handleGetSyncGeneratorChanges(generators) {
+    const changes = await (0, sync_generators_1.getCachedSyncGeneratorChanges)(generators);
+    // strip out the content of the changes and any potential callback
+    const result = changes.map((change) => ({
+        generatorName: change.generatorName,
+        changes: change.changes.map((c) => ({ ...c, content: null })),
+        outOfSyncMessage: change.outOfSyncMessage,
+    }));
+    return {
+        response: JSON.stringify(result),
+        description: 'handleGetSyncGeneratorChanges',
+    };
 }
-// we have to do it this way to preserve the order of properties
-// not to screw up the formatting
-function renamePropertyWithStableKeys(obj, from, to) {
-    const copy = { ...obj };
-    Object.keys(obj).forEach((k) => {
-        delete obj[k];
-    });
-    Object.keys(copy).forEach((k) => {
-        if (k === from) {
-            obj[to] = copy[k];
+
+
+/***/ }),
+
+/***/ 61494:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleGetTaskHistoryForHashes = handleGetTaskHistoryForHashes;
+const task_history_1 = __nccwpck_require__(83523);
+async function handleGetTaskHistoryForHashes(hashes) {
+    const history = await (0, task_history_1.getHistoryForHashes)(hashes);
+    return {
+        response: JSON.stringify(history),
+        description: 'handleGetTaskHistoryForHashes',
+    };
+}
+
+
+/***/ }),
+
+/***/ 22069:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleGlob = handleGlob;
+const workspace_root_1 = __nccwpck_require__(64393);
+const workspace_context_1 = __nccwpck_require__(98897);
+async function handleGlob(globs, exclude) {
+    const files = await (0, workspace_context_1.globWithWorkspaceContext)(workspace_root_1.workspaceRoot, globs, exclude);
+    return {
+        response: JSON.stringify(files),
+        description: 'handleGlob',
+    };
+}
+
+
+/***/ }),
+
+/***/ 75631:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleHashGlob = handleHashGlob;
+const workspace_root_1 = __nccwpck_require__(64393);
+const workspace_context_1 = __nccwpck_require__(98897);
+async function handleHashGlob(globs, exclude) {
+    const files = await (0, workspace_context_1.hashWithWorkspaceContext)(workspace_root_1.workspaceRoot, globs, exclude);
+    return {
+        response: JSON.stringify(files),
+        description: 'handleHashGlob',
+    };
+}
+
+
+/***/ }),
+
+/***/ 99270:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleHashTasks = handleHashTasks;
+const project_graph_incremental_recomputation_1 = __nccwpck_require__(96952);
+const task_hasher_1 = __nccwpck_require__(99816);
+const configuration_1 = __nccwpck_require__(34333);
+const error_types_1 = __nccwpck_require__(54403);
+/**
+ * We use this not to recreated hasher for every hash operation
+ * TaskHasher has a cache inside, so keeping it around results in faster performance
+ */
+let storedProjectGraph = null;
+let storedHasher = null;
+async function handleHashTasks(payload) {
+    const { error, projectGraph: _graph, allWorkspaceFiles, fileMap, rustReferences, } = await (0, project_graph_incremental_recomputation_1.getCachedSerializedProjectGraphPromise)();
+    let projectGraph = _graph;
+    if (error) {
+        if (error instanceof error_types_1.DaemonProjectGraphError) {
+            projectGraph = error.projectGraph;
         }
         else {
-            obj[k] = copy[k];
+            throw error;
         }
-    });
+    }
+    const nxJson = (0, configuration_1.readNxJson)();
+    if (projectGraph !== storedProjectGraph) {
+        storedProjectGraph = projectGraph;
+        storedHasher = new task_hasher_1.InProcessTaskHasher(fileMap?.projectFileMap, allWorkspaceFiles, projectGraph, nxJson, rustReferences, payload.runnerOptions);
+    }
+    const response = JSON.stringify(await storedHasher.hashTasks(payload.tasks, payload.taskGraph, payload.env));
+    return {
+        response,
+        description: 'handleHashTasks',
+    };
 }
 
 
 /***/ }),
 
-/***/ 84678:
+/***/ 71686:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.normalizeExecutorSchema = normalizeExecutorSchema;
-exports.getExecutorInformation = getExecutorInformation;
-const path_1 = __nccwpck_require__(71017);
-const plugins_1 = __nccwpck_require__(69461);
-const fileutils_1 = __nccwpck_require__(40910);
-const schema_utils_1 = __nccwpck_require__(62607);
-const installation_directory_1 = __nccwpck_require__(87836);
-function normalizeExecutorSchema(schema) {
-    const version = (schema.version ??= 1);
+exports.handleNxWorkspaceFiles = handleNxWorkspaceFiles;
+const workspace_context_1 = __nccwpck_require__(98897);
+const workspace_root_1 = __nccwpck_require__(64393);
+async function handleNxWorkspaceFiles(projectRootMap) {
+    const files = await (0, workspace_context_1.getNxWorkspaceFilesFromContext)(workspace_root_1.workspaceRoot, projectRootMap);
     return {
-        version,
-        outputCapture: schema.outputCapture ?? version < 2 ? 'direct-nodejs' : 'pipe',
-        properties: !schema.properties || typeof schema.properties !== 'object'
-            ? {}
-            : schema.properties,
-        ...schema,
+        response: JSON.stringify(files),
+        description: 'handleNxWorkspaceFiles',
     };
 }
-function cacheKey(nodeModule, executor, root) {
-    return `${root}:${nodeModule}:${executor}`;
+
+
+/***/ }),
+
+/***/ 15405:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleRecordOutputsHash = handleRecordOutputsHash;
+exports.handleOutputsHashesMatch = handleOutputsHashesMatch;
+const outputs_tracking_1 = __nccwpck_require__(60839);
+async function handleRecordOutputsHash(payload) {
+    try {
+        await (0, outputs_tracking_1.recordOutputsHash)(payload.data.outputs, payload.data.hash);
+        return {
+            description: 'recordOutputsHash',
+            response: '{}',
+        };
+    }
+    catch (e) {
+        return {
+            description: 'recordOutputsHash failed',
+            error: new Error(`Critical error when recording metadata about outputs: '${e.message}'.`),
+        };
+    }
 }
-const cachedExecutorInformation = {};
-function getExecutorInformation(nodeModule, executor, root, projects) {
+async function handleOutputsHashesMatch(payload) {
     try {
-        const key = cacheKey(nodeModule, executor, root);
-        if (cachedExecutorInformation[key])
-            return cachedExecutorInformation[key];
-        const { executorsFilePath, executorConfig, isNgCompat } = readExecutorJson(nodeModule, executor, root, projects);
-        const executorsDir = (0, path_1.dirname)(executorsFilePath);
-        const schemaPath = (0, schema_utils_1.resolveSchema)(executorConfig.schema, executorsDir);
-        const schema = normalizeExecutorSchema((0, fileutils_1.readJsonFile)(schemaPath));
-        const implementationFactory = (0, schema_utils_1.getImplementationFactory)(executorConfig.implementation, executorsDir);
-        const batchImplementationFactory = executorConfig.batchImplementation
-            ? (0, schema_utils_1.getImplementationFactory)(executorConfig.batchImplementation, executorsDir)
-            : null;
-        const hasherFactory = executorConfig.hasher
-            ? (0, schema_utils_1.getImplementationFactory)(executorConfig.hasher, executorsDir)
-            : null;
-        const res = {
-            schema,
-            implementationFactory,
-            batchImplementationFactory,
-            hasherFactory,
-            isNgCompat,
-            isNxExecutor: !isNgCompat,
+        const res = await (0, outputs_tracking_1.outputsHashesMatch)(payload.data.outputs, payload.data.hash);
+        return {
+            response: JSON.stringify(res),
+            description: 'outputsHashesMatch',
         };
-        cachedExecutorInformation[key] = res;
-        return res;
     }
     catch (e) {
-        throw new Error(`Unable to resolve ${nodeModule}:${executor}.\n${e.message}`);
+        return {
+            description: 'outputsHashesMatch failed',
+            error: new Error(`Critical error when verifying the contents of the outputs haven't changed: '${e.message}'.`),
+        };
     }
 }
-function readExecutorJson(nodeModule, executor, root, projects) {
-    const { json: packageJson, path: packageJsonPath } = (0, plugins_1.readPluginPackageJson)(nodeModule, projects, root
-        ? [root, __dirname, process.cwd(), ...(0, installation_directory_1.getNxRequirePaths)()]
-        : [__dirname, process.cwd(), ...(0, installation_directory_1.getNxRequirePaths)()]);
-    const executorsFile = packageJson.executors ?? packageJson.builders;
-    if (!executorsFile) {
-        throw new Error(`The "${nodeModule}" package does not support Nx executors.`);
+
+
+/***/ }),
+
+/***/ 5928:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleProcessInBackground = handleProcessInBackground;
+const logger_1 = __nccwpck_require__(89715);
+const installation_directory_1 = __nccwpck_require__(87836);
+async function handleProcessInBackground(payload) {
+    let fn;
+    try {
+        fn = require(__nccwpck_require__(5927).resolve(payload.requirePath, {
+            paths: (0, installation_directory_1.getNxRequirePaths)(),
+        })).default;
     }
-    const executorsFilePath = /*require.resolve*/(__nccwpck_require__(87739).resolve((0, path_1.join)((0, path_1.dirname)(packageJsonPath), executorsFile)));
-    const executorsJson = (0, fileutils_1.readJsonFile)(executorsFilePath);
-    const executorConfig = executorsJson.executors?.[executor] || executorsJson.builders?.[executor];
-    if (!executorConfig) {
-        throw new Error(`Cannot find executor '${executor}' in ${executorsFilePath}.`);
+    catch (e) {
+        return {
+            description: `Unable to require ${payload.requirePath}`,
+            error: new Error(`Unable to require ${payload.requirePath}`),
+        };
     }
-    if (typeof executorConfig === 'string') {
-        // Angular CLI can have a builder pointing to another package:builder
-        const [packageName, executorName] = executorConfig.split(':');
-        return readExecutorJson(packageName, executorName, root, projects);
+    try {
+        const response = await fn(payload.data, logger_1.serverLogger);
+        return {
+            response,
+            description: payload.type,
+        };
+    }
+    catch (e) {
+        return {
+            description: `Error when processing ${payload.type}.`,
+            error: e,
+        };
     }
-    const isNgCompat = !executorsJson.executors?.[executor];
-    return { executorsFilePath, executorConfig, isNgCompat };
 }
 
 
 /***/ }),
 
-/***/ 29966:
+/***/ 77135:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.calculateDefaultProjectName = calculateDefaultProjectName;
-exports.findMatchingProjectInCwd = findMatchingProjectInCwd;
-const find_project_for_path_1 = __nccwpck_require__(69621);
-const path_1 = __nccwpck_require__(71017);
-function calculateDefaultProjectName(cwd, root, { projects }, nxJson) {
-    const relativeCwd = (0, path_1.relative)(root, cwd).replace(/\\/g, '/') ?? null;
-    if (relativeCwd !== null) {
-        const matchingProject = findMatchingProjectInCwd(projects, relativeCwd);
-        // We have found a project
-        if (matchingProject) {
-            // That is not at the root
-            if (projects[matchingProject].root !== '.' &&
-                projects[matchingProject].root !== '') {
-                return matchingProject;
-                // But its at the root, and NX_DEFAULT_PROJECT is set
-            }
-            else if (process.env.NX_DEFAULT_PROJECT) {
-                return process.env.NX_DEFAULT_PROJECT;
-                // Its root, and NX_DEFAULT_PROJECT is not set
-            }
-            else {
-                return matchingProject;
-            }
+exports.handleRequestProjectGraph = handleRequestProjectGraph;
+const perf_hooks_1 = __nccwpck_require__(4074);
+const socket_utils_1 = __nccwpck_require__(58935);
+const logger_1 = __nccwpck_require__(89715);
+const project_graph_incremental_recomputation_1 = __nccwpck_require__(96952);
+async function handleRequestProjectGraph() {
+    try {
+        perf_hooks_1.performance.mark('server-connection');
+        logger_1.serverLogger.requestLog('Client Request for Project Graph Received');
+        const result = await (0, project_graph_incremental_recomputation_1.getCachedSerializedProjectGraphPromise)();
+        if (result.error) {
+            return {
+                description: `Error when preparing serialized project graph.`,
+                error: result.error,
+            };
+        }
+        const serializedResult = (0, socket_utils_1.serializeResult)(result.error, result.serializedProjectGraph, result.serializedSourceMaps);
+        if (!serializedResult) {
+            return {
+                description: `Error when serializing project graph result.`,
+                error: new Error('Critical error when serializing server result, check server logs'),
+            };
         }
+        perf_hooks_1.performance.mark('serialized-project-graph-ready');
+        perf_hooks_1.performance.measure('total for creating and serializing project graph', 'server-connection', 'serialized-project-graph-ready');
+        return { response: serializedResult, description: 'project-graph' };
+    }
+    catch (e) {
+        return {
+            description: `Unexpected error when creating Project Graph.`,
+            error: e,
+        };
     }
-    // There was no matching project in cwd.
-    return (process.env.NX_DEFAULT_PROJECT ??
-        nxJson.cli?.defaultProjectName ??
-        nxJson?.defaultProject);
 }
-function findMatchingProjectInCwd(projects, relativeCwd) {
-    const projectRootMappings = new Map();
-    for (const projectName of Object.keys(projects)) {
-        const { root } = projects[projectName];
-        projectRootMappings.set((0, find_project_for_path_1.normalizeProjectRoot)(root), projectName);
+
+
+/***/ }),
+
+/***/ 42836:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.handleRequestShutdown = handleRequestShutdown;
+const shutdown_utils_1 = __nccwpck_require__(45347);
+const server_1 = __nccwpck_require__(85309);
+async function handleRequestShutdown(server, numberOfConnections) {
+    // 1 connection is the client asking to shut down
+    if (numberOfConnections > 1) {
+        return {
+            description: `Unable to shutdown the daemon. ${numberOfConnections} connections are open.`,
+            response: '{}',
+        };
+    }
+    else {
+        setTimeout(async () => {
+            await (0, shutdown_utils_1.handleServerProcessTermination)({
+                server,
+                reason: 'Request to shutdown',
+                sockets: server_1.openSockets,
+            });
+        }, 0);
+        return {
+            description: 'Shutdown initiated',
+            response: '{}',
+        };
     }
-    const matchingProject = (0, find_project_for_path_1.findProjectForPath)(relativeCwd, projectRootMappings);
-    return matchingProject;
 }
 
 
 /***/ }),
 
-/***/ 34333:
+/***/ 76914:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.readNxJson = void 0;
-exports.workspaceLayout = workspaceLayout;
-const nx_json_1 = __nccwpck_require__(21173);
-/**
- * Returns information about where apps and libs will be created.
- */
-function workspaceLayout() {
-    const nxJson = (0, nx_json_1.readNxJson)();
+exports.handleUpdateWorkspaceContext = handleUpdateWorkspaceContext;
+const project_graph_incremental_recomputation_1 = __nccwpck_require__(96952);
+async function handleUpdateWorkspaceContext(createdFiles, updatedFiles, deletedFiles) {
+    (0, project_graph_incremental_recomputation_1.addUpdatedAndDeletedFiles)(createdFiles, updatedFiles, deletedFiles);
     return {
-        appsDir: nxJson.workspaceLayout?.appsDir ?? 'apps',
-        libsDir: nxJson.workspaceLayout?.libsDir ?? 'libs',
+        response: '{}',
+        description: 'handleUpdateContextFiles',
     };
 }
-var nx_json_2 = __nccwpck_require__(21173);
-Object.defineProperty(exports, "readNxJson", ({ enumerable: true, get: function () { return nx_json_2.readNxJson; } }));
 
 
 /***/ }),
 
-/***/ 21173:
+/***/ 8340:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.readNxJson = readNxJson;
-exports.hasNxJson = hasNxJson;
-const fs_1 = __nccwpck_require__(57147);
-const path_1 = __nccwpck_require__(71017);
-const fileutils_1 = __nccwpck_require__(40910);
-const workspace_root_1 = __nccwpck_require__(64393);
-function readNxJson(root = workspace_root_1.workspaceRoot) {
-    const nxJson = (0, path_1.join)(root, 'nx.json');
-    if ((0, fs_1.existsSync)(nxJson)) {
-        const nxJsonConfiguration = (0, fileutils_1.readJsonFile)(nxJson);
-        if (nxJsonConfiguration.extends) {
-            const extendedNxJsonPath = require.resolve(nxJsonConfiguration.extends, {
-                paths: [(0, path_1.dirname)(nxJson)],
-            });
-            const baseNxJson = (0, fileutils_1.readJsonFile)(extendedNxJsonPath);
-            return {
-                ...baseNxJson,
-                ...nxJsonConfiguration,
-            };
-        }
-        else {
-            return nxJsonConfiguration;
-        }
-    }
-    else {
-        try {
-            return (0, fileutils_1.readJsonFile)((0, path_1.join)(__dirname, '..', '..', 'presets', 'core.json'));
-        }
-        catch (e) {
-            return {};
-        }
-    }
-}
-function hasNxJson(root) {
-    const nxJson = (0, path_1.join)(root, 'nx.json');
-    return (0, fs_1.existsSync)(nxJson);
+exports.handleWriteTaskRunsToHistory = handleWriteTaskRunsToHistory;
+const task_history_1 = __nccwpck_require__(83523);
+async function handleWriteTaskRunsToHistory(taskRuns) {
+    await (0, task_history_1.writeTaskRunsToHistory)(taskRuns);
+    return {
+        response: 'true',
+        description: 'handleWriteTaskRunsToHistory',
+    };
 }
 
 
 /***/ }),
 
-/***/ 72733:
+/***/ 89715:
 /***/ ((__unused_webpack_module, exports) => {
 
 "use strict";
 
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.DependencyType = void 0;
-exports.fileDataDepTarget = fileDataDepTarget;
-exports.fileDataDepType = fileDataDepType;
-function fileDataDepTarget(dep) {
-    return typeof dep === 'string'
-        ? dep
-        : Array.isArray(dep) && dep.length === 2
-            ? dep[0]
-            : dep[1];
-}
-function fileDataDepType(dep) {
-    return typeof dep === 'string'
-        ? 'static'
-        : Array.isArray(dep) && dep.length === 2
-            ? dep[1]
-            : dep[2];
-}
 /**
- * Type of dependency between projects
+ * To improve the overall readibility of the logs, we categorize things by "trigger":
+ *
+ * - [REQUEST] meaning that the current set of actions were triggered by a client request to the server
+ * - [WATCHER] meaning the the current set of actions were triggered by handling changes to the workspace files
+ *
+ * We keep those two "triggers" left aligned at the top level and then indent subsequent logs so that there is a
+ * logical hierarchy/grouping.
  */
-var DependencyType;
-(function (DependencyType) {
-    /**
-     * Static dependencies are tied to the loading of the module
-     */
-    DependencyType["static"] = "static";
-    /**
-     * Dynamic dependencies are brought in by the module at run time
-     */
-    DependencyType["dynamic"] = "dynamic";
-    /**
-     * Implicit dependencies are inferred
-     */
-    DependencyType["implicit"] = "implicit";
-})(DependencyType || (exports.DependencyType = DependencyType = {}));
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.serverLogger = void 0;
+class ServerLogger {
+    log(...s) {
+        console.log(this.formatLogMessage(`${s
+            .map((val) => {
+            if (typeof val === 'string') {
+                return val;
+            }
+            return JSON.stringify(val);
+        })
+            .join(' ')}`));
+    }
+    requestLog(...s) {
+        this.log(`[REQUEST]: ${s.join(' ')}`);
+    }
+    watcherLog(...s) {
+        this.log(`[WATCHER]: ${s.join(' ')}`);
+    }
+    formatLogMessage(message) {
+        return `[NX Daemon Server] - ${this.getNow()} - ${message}`;
+    }
+    getNow() {
+        return new Date(Date.now()).toISOString();
+    }
+}
+exports.serverLogger = new ServerLogger();
 
 
 /***/ }),
 
-/***/ 62607:
+/***/ 60839:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getImplementationFactory = getImplementationFactory;
-exports.resolveImplementation = resolveImplementation;
-exports.resolveSchema = resolveSchema;
-const fs_1 = __nccwpck_require__(57147);
+exports._recordOutputsHash = _recordOutputsHash;
+exports._outputsHashesMatch = _outputsHashesMatch;
+exports.recordedHash = recordedHash;
+exports.recordOutputsHash = recordOutputsHash;
+exports.outputsHashesMatch = outputsHashesMatch;
+exports.processFileChangesInOutputs = processFileChangesInOutputs;
+exports.disableOutputsTracking = disableOutputsTracking;
 const path_1 = __nccwpck_require__(71017);
-const plugins_1 = __nccwpck_require__(69461);
-/**
- * This function is used to get the implementation factory of an executor or generator.
- * @param implementation path to the implementation
- * @param directory path to the directory
- * @returns a function that returns the implementation
- */
-function getImplementationFactory(implementation, directory) {
-    const [implementationModulePath, implementationExportName] = implementation.split('#');
-    return () => {
-        const modulePath = resolveImplementation(implementationModulePath, directory);
-        if ((0, path_1.extname)(modulePath) === '.ts') {
-            (0, plugins_1.registerPluginTSTranspiler)();
+const native_1 = __nccwpck_require__(71926);
+const collapse_expanded_outputs_1 = __nccwpck_require__(92193);
+const workspace_root_1 = __nccwpck_require__(64393);
+let disabled = false;
+const dirsContainingOutputs = {};
+const recordedHashes = {};
+const timestamps = {};
+const numberOfExpandedOutputs = {};
+function _recordOutputsHash(outputs, hash) {
+    numberOfExpandedOutputs[hash] = outputs.length;
+    for (const output of outputs) {
+        recordedHashes[output] = hash;
+        timestamps[output] = new Date().getTime();
+        let current = output;
+        while (current != (0, path_1.dirname)(current)) {
+            if (!dirsContainingOutputs[current]) {
+                dirsContainingOutputs[current] = new Set();
+            }
+            dirsContainingOutputs[current].add(output);
+            current = (0, path_1.dirname)(current);
         }
-        const module = require(modulePath);
-        return implementationExportName
-            ? module[implementationExportName]
-            : module.default ?? module;
-    };
+    }
 }
-/**
- * This function is used to resolve the implementation of an executor or generator.
- * @param implementationModulePath
- * @param directory
- * @returns path to the implementation
- */
-function resolveImplementation(implementationModulePath, directory) {
-    const validImplementations = ['', '.js', '.ts'].map((x) => implementationModulePath + x);
-    for (const maybeImplementation of validImplementations) {
-        const maybeImplementationPath = (0, path_1.join)(directory, maybeImplementation);
-        if ((0, fs_1.existsSync)(maybeImplementationPath)) {
-            return maybeImplementationPath;
+function _outputsHashesMatch(outputs, hash) {
+    if (outputs.length !== numberOfExpandedOutputs[hash]) {
+        return false;
+    }
+    else {
+        for (const output of outputs) {
+            if (recordedHashes[output] !== hash) {
+                return false;
+            }
         }
-        try {
-            return require.resolve(maybeImplementation, {
-                paths: [directory],
+    }
+    return true;
+}
+function recordedHash(output) {
+    return recordedHashes[output];
+}
+async function recordOutputsHash(_outputs, hash) {
+    const outputs = await normalizeOutputs(_outputs);
+    if (disabled)
+        return;
+    _recordOutputsHash(outputs, hash);
+}
+async function outputsHashesMatch(_outputs, hash) {
+    const outputs = await normalizeOutputs(_outputs);
+    if (disabled)
+        return false;
+    return _outputsHashesMatch(outputs, hash);
+}
+async function normalizeOutputs(outputs) {
+    let expandedOutputs = (0, collapse_expanded_outputs_1.collapseExpandedOutputs)((0, native_1.getFilesForOutputs)(workspace_root_1.workspaceRoot, outputs));
+    return expandedOutputs;
+}
+function processFileChangesInOutputs(changeEvents, now = undefined) {
+    if (!now) {
+        now = new Date().getTime();
+    }
+    for (let e of changeEvents) {
+        let current = e.path;
+        // the path is either an output itself or a parent
+        if (dirsContainingOutputs[current]) {
+            dirsContainingOutputs[current].forEach((output) => {
+                if (now - timestamps[output] > 2000) {
+                    recordedHashes[output] = undefined;
+                }
             });
+            continue;
+        }
+        // the path is a child of some output or unrelated
+        while (current != (0, path_1.dirname)(current)) {
+            if (recordedHashes[current] && now - timestamps[current] > 2000) {
+                recordedHashes[current] = undefined;
+                break;
+            }
+            current = (0, path_1.dirname)(current);
         }
-        catch { }
     }
-    throw new Error(`Could not resolve "${implementationModulePath}" from "${directory}".`);
 }
-function resolveSchema(schemaPath, directory) {
-    const maybeSchemaPath = (0, path_1.join)(directory, schemaPath);
-    if ((0, fs_1.existsSync)(maybeSchemaPath)) {
-        return maybeSchemaPath;
-    }
-    return require.resolve(schemaPath, {
-        paths: [directory],
-    });
+function disableOutputsTracking() {
+    disabled = true;
 }
 
 
 /***/ }),
 
-/***/ 10750:
+/***/ 17611:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.toProjectName = toProjectName;
-const path_1 = __nccwpck_require__(71017);
-/**
- * Pulled from toFileName in names from @nx/devkit.
- * Todo: Should refactor, not duplicate.
- */
-function toProjectName(fileName) {
-    const parts = (0, path_1.dirname)(fileName).split(/[\/\\]/g);
-    return parts[parts.length - 1].toLowerCase();
+exports.getPlugins = getPlugins;
+exports.cleanupPlugins = cleanupPlugins;
+const file_hasher_1 = __nccwpck_require__(19482);
+const nx_json_1 = __nccwpck_require__(21173);
+const internal_api_1 = __nccwpck_require__(19400);
+const workspace_root_1 = __nccwpck_require__(64393);
+let currentPluginsConfigurationHash;
+let loadedPlugins;
+let cleanup;
+async function getPlugins() {
+    const pluginsConfiguration = (0, nx_json_1.readNxJson)().plugins ?? [];
+    const pluginsConfigurationHash = (0, file_hasher_1.hashObject)(pluginsConfiguration);
+    // If the plugins configuration has not changed, reuse the current plugins
+    if (loadedPlugins &&
+        pluginsConfigurationHash === currentPluginsConfigurationHash) {
+        return loadedPlugins;
+    }
+    // Cleanup current plugins before loading new ones
+    if (cleanup) {
+        cleanup();
+    }
+    currentPluginsConfigurationHash = pluginsConfigurationHash;
+    const [result, cleanupFn] = await (0, internal_api_1.loadNxPlugins)(pluginsConfiguration, workspace_root_1.workspaceRoot);
+    cleanup = cleanupFn;
+    loadedPlugins = result;
+    return result;
+}
+function cleanupPlugins() {
+    cleanup();
 }
 
 
 /***/ }),
 
-/***/ 70800:
+/***/ 96952:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.serverProcessJsonPath = void 0;
-exports.readDaemonProcessJsonCache = readDaemonProcessJsonCache;
-exports.deleteDaemonJsonProcessCache = deleteDaemonJsonProcessCache;
-exports.writeDaemonJsonProcessCache = writeDaemonJsonProcessCache;
-exports.safelyCleanUpExistingProcess = safelyCleanUpExistingProcess;
-exports.getDaemonProcessIdSync = getDaemonProcessIdSync;
-const fs_extra_1 = __nccwpck_require__(2103);
-const path_1 = __nccwpck_require__(71017);
-const tmp_dir_1 = __nccwpck_require__(71524);
-exports.serverProcessJsonPath = (0, path_1.join)(tmp_dir_1.DAEMON_DIR_FOR_CURRENT_WORKSPACE, 'server-process.json');
-async function readDaemonProcessJsonCache() {
-    if (!(0, fs_extra_1.existsSync)(exports.serverProcessJsonPath)) {
-        return null;
+exports.currentProjectGraph = exports.currentProjectFileMapCache = exports.fileMapWithFiles = void 0;
+exports.getCachedSerializedProjectGraphPromise = getCachedSerializedProjectGraphPromise;
+exports.addUpdatedAndDeletedFiles = addUpdatedAndDeletedFiles;
+exports.registerProjectGraphRecomputationListener = registerProjectGraphRecomputationListener;
+const perf_hooks_1 = __nccwpck_require__(4074);
+const nx_json_1 = __nccwpck_require__(21173);
+const file_hasher_1 = __nccwpck_require__(19482);
+const build_project_graph_1 = __nccwpck_require__(99254);
+const file_map_utils_1 = __nccwpck_require__(7682);
+const nx_deps_cache_1 = __nccwpck_require__(53387);
+const retrieve_workspace_files_1 = __nccwpck_require__(25264);
+const fileutils_1 = __nccwpck_require__(40910);
+const workspace_context_1 = __nccwpck_require__(98897);
+const workspace_root_1 = __nccwpck_require__(64393);
+const file_watcher_sockets_1 = __nccwpck_require__(56159);
+const logger_1 = __nccwpck_require__(89715);
+const plugins_1 = __nccwpck_require__(17611);
+const error_types_1 = __nccwpck_require__(54403);
+let cachedSerializedProjectGraphPromise;
+const collectedUpdatedFiles = new Set();
+const collectedDeletedFiles = new Set();
+const projectGraphRecomputationListeners = new Set();
+let storedWorkspaceConfigHash;
+let waitPeriod = 100;
+let scheduledTimeoutId;
+let knownExternalNodes = {};
+async function getCachedSerializedProjectGraphPromise() {
+    try {
+        let wasScheduled = false;
+        // recomputing it now on demand. we can ignore the scheduled timeout
+        if (scheduledTimeoutId) {
+            wasScheduled = true;
+            clearTimeout(scheduledTimeoutId);
+            scheduledTimeoutId = undefined;
+        }
+        // reset the wait time
+        waitPeriod = 100;
+        await resetInternalStateIfNxDepsMissing();
+        const plugins = await (0, plugins_1.getPlugins)();
+        if (collectedUpdatedFiles.size == 0 && collectedDeletedFiles.size == 0) {
+            if (!cachedSerializedProjectGraphPromise) {
+                cachedSerializedProjectGraphPromise =
+                    processFilesAndCreateAndSerializeProjectGraph(plugins);
+            }
+        }
+        else {
+            cachedSerializedProjectGraphPromise =
+                processFilesAndCreateAndSerializeProjectGraph(plugins);
+        }
+        const result = await cachedSerializedProjectGraphPromise;
+        if (wasScheduled) {
+            notifyProjectGraphRecomputationListeners(result.projectGraph);
+        }
+        return result;
+    }
+    catch (e) {
+        return {
+            error: e,
+            serializedProjectGraph: null,
+            serializedSourceMaps: null,
+            projectGraph: null,
+            projectFileMapCache: null,
+            fileMap: null,
+            allWorkspaceFiles: null,
+            rustReferences: null,
+        };
     }
-    return await (0, fs_extra_1.readJson)(exports.serverProcessJsonPath);
 }
-function deleteDaemonJsonProcessCache() {
+function addUpdatedAndDeletedFiles(createdFiles, updatedFiles, deletedFiles) {
+    for (let f of [...createdFiles, ...updatedFiles]) {
+        collectedDeletedFiles.delete(f);
+        collectedUpdatedFiles.add(f);
+    }
+    for (let f of deletedFiles) {
+        collectedUpdatedFiles.delete(f);
+        collectedDeletedFiles.add(f);
+    }
+    if (updatedFiles.length > 0 || deletedFiles.length > 0) {
+        (0, file_watcher_sockets_1.notifyFileWatcherSockets)(null, updatedFiles, deletedFiles);
+    }
+    if (createdFiles.length > 0) {
+        waitPeriod = 100; // reset it to process the graph faster
+    }
+    if (!scheduledTimeoutId) {
+        scheduledTimeoutId = setTimeout(async () => {
+            scheduledTimeoutId = undefined;
+            if (waitPeriod < 4000) {
+                waitPeriod = waitPeriod * 2;
+            }
+            cachedSerializedProjectGraphPromise =
+                processFilesAndCreateAndSerializeProjectGraph(await (0, plugins_1.getPlugins)());
+            const { projectGraph } = await cachedSerializedProjectGraphPromise;
+            if (createdFiles.length > 0) {
+                (0, file_watcher_sockets_1.notifyFileWatcherSockets)(createdFiles, null, null);
+            }
+            notifyProjectGraphRecomputationListeners(projectGraph);
+        }, waitPeriod);
+    }
+}
+function registerProjectGraphRecomputationListener(listener) {
+    projectGraphRecomputationListeners.add(listener);
+}
+function computeWorkspaceConfigHash(projectsConfigurations) {
+    const projectConfigurationStrings = Object.entries(projectsConfigurations)
+        .sort(([projectNameA], [projectNameB]) => projectNameA.localeCompare(projectNameB))
+        .map(([projectName, projectConfig]) => `${projectName}:${JSON.stringify(projectConfig)}`);
+    return (0, file_hasher_1.hashArray)(projectConfigurationStrings);
+}
+async function processCollectedUpdatedAndDeletedFiles({ projects, externalNodes, projectRootMap }, updatedFileHashes, deletedFiles) {
     try {
-        if (getDaemonProcessIdSync() === process.pid) {
-            (0, fs_extra_1.unlinkSync)(exports.serverProcessJsonPath);
+        const workspaceConfigHash = computeWorkspaceConfigHash(projects);
+        // when workspace config changes we cannot incrementally update project file map
+        if (workspaceConfigHash !== storedWorkspaceConfigHash) {
+            storedWorkspaceConfigHash = workspaceConfigHash;
+            ({ ...exports.fileMapWithFiles } = await (0, retrieve_workspace_files_1.retrieveWorkspaceFiles)(workspace_root_1.workspaceRoot, projectRootMap));
+            knownExternalNodes = externalNodes;
         }
+        else {
+            if (exports.fileMapWithFiles) {
+                exports.fileMapWithFiles = (0, file_map_utils_1.updateFileMap)(projects, exports.fileMapWithFiles.rustReferences, updatedFileHashes, deletedFiles);
+            }
+            else {
+                exports.fileMapWithFiles = await (0, retrieve_workspace_files_1.retrieveWorkspaceFiles)(workspace_root_1.workspaceRoot, projectRootMap);
+            }
+        }
+        collectedUpdatedFiles.clear();
+        collectedDeletedFiles.clear();
+    }
+    catch (e) {
+        // this is expected
+        // for instance, project.json can be incorrect or a file we are trying to has
+        // has been deleted
+        // we are resetting internal state to start from scratch next time a file changes
+        // given the user the opportunity to fix the error
+        // if Nx requests the project graph prior to the error being fixed,
+        // the error will be propagated
+        logger_1.serverLogger.log(`Error detected when recomputing project file map: ${e.message}`);
+        resetInternalState();
+        throw e;
     }
-    catch { }
-}
-async function writeDaemonJsonProcessCache(daemonJson) {
-    await (0, fs_extra_1.writeJson)(exports.serverProcessJsonPath, daemonJson);
 }
-async function safelyCleanUpExistingProcess() {
-    const daemonProcessJson = await readDaemonProcessJsonCache();
-    if (daemonProcessJson && daemonProcessJson.processId) {
+async function processFilesAndCreateAndSerializeProjectGraph(plugins) {
+    try {
+        perf_hooks_1.performance.mark('hash-watched-changes-start');
+        const updatedFiles = [...collectedUpdatedFiles.values()];
+        const deletedFiles = [...collectedDeletedFiles.values()];
+        let updatedFileHashes = (0, workspace_context_1.updateFilesInContext)(workspace_root_1.workspaceRoot, updatedFiles, deletedFiles);
+        perf_hooks_1.performance.mark('hash-watched-changes-end');
+        perf_hooks_1.performance.measure('hash changed files from watcher', 'hash-watched-changes-start', 'hash-watched-changes-end');
+        logger_1.serverLogger.requestLog(`Updated workspace context based on watched changes, recomputing project graph...`);
+        logger_1.serverLogger.requestLog([...updatedFiles.values()]);
+        logger_1.serverLogger.requestLog([...deletedFiles]);
+        const nxJson = (0, nx_json_1.readNxJson)(workspace_root_1.workspaceRoot);
+        global.NX_GRAPH_CREATION = true;
+        let projectConfigurationsResult;
+        let projectConfigurationsError;
         try {
-            process.kill(daemonProcessJson.processId);
-            // we wait for the process to actually shut down before returning
-            await new Promise((resolve, reject) => {
-                let count = 0;
-                const interval = setInterval(() => {
-                    try {
-                        // sending a signal 0 to a process checks if the process is running instead of actually killing it
-                        process.kill(daemonProcessJson.processId, 0);
-                    }
-                    catch (e) {
-                        clearInterval(interval);
-                        resolve();
-                    }
-                    if ((count += 1) > 200) {
-                        clearInterval(interval);
-                        reject(`Daemon process ${daemonProcessJson.processId} didn't exit after 2 seconds.`);
-                    }
-                }, 10);
-            });
+            projectConfigurationsResult = await (0, retrieve_workspace_files_1.retrieveProjectConfigurations)(plugins, workspace_root_1.workspaceRoot, nxJson);
         }
-        catch { }
+        catch (e) {
+            if (e instanceof error_types_1.ProjectConfigurationsError) {
+                projectConfigurationsResult = e.partialProjectConfigurationsResult;
+                projectConfigurationsError = e;
+            }
+            else {
+                throw e;
+            }
+        }
+        await processCollectedUpdatedAndDeletedFiles(projectConfigurationsResult, updatedFileHashes, deletedFiles);
+        const g = await createAndSerializeProjectGraph(projectConfigurationsResult);
+        delete global.NX_GRAPH_CREATION;
+        const errors = [...(projectConfigurationsError?.errors ?? [])];
+        if (g.error) {
+            if ((0, error_types_1.isAggregateProjectGraphError)(g.error) && g.error.errors?.length) {
+                errors.push(...g.error.errors);
+            }
+            else {
+                return {
+                    error: g.error,
+                    projectGraph: null,
+                    projectFileMapCache: null,
+                    fileMap: null,
+                    rustReferences: null,
+                    allWorkspaceFiles: null,
+                    serializedProjectGraph: null,
+                    serializedSourceMaps: null,
+                };
+            }
+        }
+        if (errors.length > 0) {
+            return {
+                error: new error_types_1.DaemonProjectGraphError(errors, g.projectGraph, projectConfigurationsResult.sourceMaps),
+                projectGraph: null,
+                projectFileMapCache: null,
+                fileMap: null,
+                rustReferences: null,
+                allWorkspaceFiles: null,
+                serializedProjectGraph: null,
+                serializedSourceMaps: null,
+            };
+        }
+        else {
+            (0, nx_deps_cache_1.writeCache)(g.projectFileMapCache, g.projectGraph);
+            return g;
+        }
+    }
+    catch (err) {
+        return {
+            error: err,
+            projectGraph: null,
+            projectFileMapCache: null,
+            fileMap: null,
+            rustReferences: null,
+            allWorkspaceFiles: null,
+            serializedProjectGraph: null,
+            serializedSourceMaps: null,
+        };
+    }
+}
+function copyFileData(d) {
+    return d.map((t) => ({ ...t }));
+}
+function copyFileMap(m) {
+    const c = {
+        nonProjectFiles: copyFileData(m.nonProjectFiles),
+        projectFileMap: {},
+    };
+    for (let p of Object.keys(m.projectFileMap)) {
+        c.projectFileMap[p] = copyFileData(m.projectFileMap[p]);
+    }
+    return c;
+}
+async function createAndSerializeProjectGraph({ projects, sourceMaps, }) {
+    try {
+        perf_hooks_1.performance.mark('create-project-graph-start');
+        const fileMap = copyFileMap(exports.fileMapWithFiles.fileMap);
+        const allWorkspaceFiles = copyFileData(exports.fileMapWithFiles.allWorkspaceFiles);
+        const rustReferences = exports.fileMapWithFiles.rustReferences;
+        const { projectGraph, projectFileMapCache } = await (0, build_project_graph_1.buildProjectGraphUsingProjectFileMap)(projects, knownExternalNodes, fileMap, allWorkspaceFiles, rustReferences, exports.currentProjectFileMapCache || (0, nx_deps_cache_1.readFileMapCache)(), await (0, plugins_1.getPlugins)(), sourceMaps);
+        exports.currentProjectFileMapCache = projectFileMapCache;
+        exports.currentProjectGraph = projectGraph;
+        perf_hooks_1.performance.mark('create-project-graph-end');
+        perf_hooks_1.performance.measure('total execution time for createProjectGraph()', 'create-project-graph-start', 'create-project-graph-end');
+        perf_hooks_1.performance.mark('json-stringify-start');
+        const serializedProjectGraph = JSON.stringify(projectGraph);
+        const serializedSourceMaps = JSON.stringify(sourceMaps);
+        perf_hooks_1.performance.mark('json-stringify-end');
+        perf_hooks_1.performance.measure('serialize graph', 'json-stringify-start', 'json-stringify-end');
+        return {
+            error: null,
+            projectGraph,
+            projectFileMapCache,
+            fileMap,
+            allWorkspaceFiles,
+            serializedProjectGraph,
+            serializedSourceMaps,
+            rustReferences,
+        };
+    }
+    catch (e) {
+        logger_1.serverLogger.log(`Error detected when creating a project graph: ${e.message}`);
+        return {
+            error: e,
+            projectGraph: null,
+            projectFileMapCache: null,
+            fileMap: null,
+            allWorkspaceFiles: null,
+            serializedProjectGraph: null,
+            serializedSourceMaps: null,
+            rustReferences: null,
+        };
     }
-    deleteDaemonJsonProcessCache();
 }
-// Must be sync for the help output use case
-function getDaemonProcessIdSync() {
-    if (!(0, fs_extra_1.existsSync)(exports.serverProcessJsonPath)) {
-        return null;
-    }
+async function resetInternalState() {
+    cachedSerializedProjectGraphPromise = undefined;
+    exports.fileMapWithFiles = undefined;
+    exports.currentProjectFileMapCache = undefined;
+    exports.currentProjectGraph = undefined;
+    collectedUpdatedFiles.clear();
+    collectedDeletedFiles.clear();
+    (0, workspace_context_1.resetWorkspaceContext)();
+    waitPeriod = 100;
+}
+async function resetInternalStateIfNxDepsMissing() {
     try {
-        const daemonProcessJson = (0, fs_extra_1.readJsonSync)(exports.serverProcessJsonPath);
-        return daemonProcessJson.processId;
+        if (!(0, fileutils_1.fileExists)(nx_deps_cache_1.nxProjectGraph) && cachedSerializedProjectGraphPromise) {
+            await resetInternalState();
+        }
     }
-    catch {
-        return null;
+    catch (e) {
+        await resetInternalState();
+    }
+}
+function notifyProjectGraphRecomputationListeners(projectGraph) {
+    for (const listener of projectGraphRecomputationListeners) {
+        listener(projectGraph);
     }
 }
 
 
 /***/ }),
 
-/***/ 76940:
+/***/ 85309:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.daemonClient = exports.DaemonClient = void 0;
-exports.isDaemonEnabled = isDaemonEnabled;
-const workspace_root_1 = __nccwpck_require__(64393);
-const child_process_1 = __nccwpck_require__(32081);
+exports.openSockets = void 0;
+exports.handleResult = handleResult;
+exports.startServer = startServer;
 const fs_1 = __nccwpck_require__(57147);
-const promises_1 = __nccwpck_require__(73292);
-const fs_extra_1 = __nccwpck_require__(2103);
 const net_1 = __nccwpck_require__(41808);
 const path_1 = __nccwpck_require__(71017);
 const perf_hooks_1 = __nccwpck_require__(4074);
-const output_1 = __nccwpck_require__(21862);
-const socket_utils_1 = __nccwpck_require__(58935);
-const tmp_dir_1 = __nccwpck_require__(71524);
-const is_ci_1 = __nccwpck_require__(48590);
-const nx_json_1 = __nccwpck_require__(21173);
-const configuration_1 = __nccwpck_require__(34333);
-const promised_based_queue_1 = __nccwpck_require__(25340);
-const daemon_socket_messenger_1 = __nccwpck_require__(81629);
-const cache_1 = __nccwpck_require__(70800);
-const error_types_1 = __nccwpck_require__(54403);
+const file_hasher_1 = __nccwpck_require__(19482);
 const native_1 = __nccwpck_require__(71926);
+const consume_messages_from_socket_1 = __nccwpck_require__(66696);
+const fileutils_1 = __nccwpck_require__(40910);
+const versions_1 = __nccwpck_require__(10780);
+const workspace_context_1 = __nccwpck_require__(98897);
+const workspace_root_1 = __nccwpck_require__(64393);
+const cache_1 = __nccwpck_require__(70800);
+const socket_utils_1 = __nccwpck_require__(58935);
+const file_watcher_sockets_1 = __nccwpck_require__(56159);
+const handle_hash_tasks_1 = __nccwpck_require__(99270);
+const handle_outputs_tracking_1 = __nccwpck_require__(15405);
+const handle_process_in_background_1 = __nccwpck_require__(5928);
+const handle_request_project_graph_1 = __nccwpck_require__(77135);
+const handle_request_shutdown_1 = __nccwpck_require__(42836);
+const logger_1 = __nccwpck_require__(89715);
+const outputs_tracking_1 = __nccwpck_require__(60839);
+const project_graph_incremental_recomputation_1 = __nccwpck_require__(96952);
+const shutdown_utils_1 = __nccwpck_require__(45347);
+const watcher_1 = __nccwpck_require__(52010);
+const handle_glob_1 = __nccwpck_require__(22069);
+const glob_1 = __nccwpck_require__(87295);
 const get_nx_workspace_files_1 = __nccwpck_require__(27333);
+const handle_nx_workspace_files_1 = __nccwpck_require__(71686);
 const get_context_file_data_1 = __nccwpck_require__(50356);
+const handle_context_file_data_1 = __nccwpck_require__(59957);
 const get_files_in_directory_1 = __nccwpck_require__(52095);
+const handle_get_files_in_directory_1 = __nccwpck_require__(63873);
 const hash_glob_1 = __nccwpck_require__(26613);
-const DAEMON_ENV_SETTINGS = {
-    NX_PROJECT_GLOB_CACHE: 'false',
-    NX_CACHE_PROJECTS_CONFIG: 'false',
-};
-var DaemonStatus;
-(function (DaemonStatus) {
-    DaemonStatus[DaemonStatus["CONNECTING"] = 0] = "CONNECTING";
-    DaemonStatus[DaemonStatus["DISCONNECTED"] = 1] = "DISCONNECTED";
-    DaemonStatus[DaemonStatus["CONNECTED"] = 2] = "CONNECTED";
-})(DaemonStatus || (DaemonStatus = {}));
-class DaemonClient {
-    constructor() {
-        this._daemonStatus = DaemonStatus.DISCONNECTED;
-        this._waitForDaemonReady = null;
-        this._daemonReady = null;
-        this._out = null;
-        this._err = null;
-        try {
-            this.nxJson = (0, configuration_1.readNxJson)();
-        }
-        catch (e) {
-            this.nxJson = null;
-        }
-        this.reset();
+const handle_hash_glob_1 = __nccwpck_require__(75631);
+const task_history_1 = __nccwpck_require__(39901);
+const handle_get_task_history_1 = __nccwpck_require__(61494);
+const handle_write_task_runs_to_history_1 = __nccwpck_require__(8340);
+const force_shutdown_1 = __nccwpck_require__(36438);
+const handle_force_shutdown_1 = __nccwpck_require__(71375);
+const get_sync_generator_changes_1 = __nccwpck_require__(72396);
+const handle_get_sync_generator_changes_1 = __nccwpck_require__(83909);
+const sync_generators_1 = __nccwpck_require__(75498);
+const get_registered_sync_generators_1 = __nccwpck_require__(41015);
+const handle_get_registered_sync_generators_1 = __nccwpck_require__(1991);
+const update_workspace_context_1 = __nccwpck_require__(51579);
+const handle_update_workspace_context_1 = __nccwpck_require__(76914);
+const flush_sync_generator_changes_to_disk_1 = __nccwpck_require__(31082);
+const handle_flush_sync_generator_changes_to_disk_1 = __nccwpck_require__(8397);
+let performanceObserver;
+let workspaceWatcherError;
+let outputsWatcherError;
+global.NX_DAEMON = true;
+let numberOfOpenConnections = 0;
+exports.openSockets = new Set();
+const server = (0, net_1.createServer)(async (socket) => {
+    numberOfOpenConnections += 1;
+    exports.openSockets.add(socket);
+    logger_1.serverLogger.log(`Established a connection. Number of open connections: ${numberOfOpenConnections}`);
+    (0, shutdown_utils_1.resetInactivityTimeout)(handleInactivityTimeout);
+    if (!performanceObserver) {
+        performanceObserver = new perf_hooks_1.PerformanceObserver((list) => {
+            const entry = list.getEntries()[0];
+            logger_1.serverLogger.log(`Time taken for '${entry.name}'`, `${entry.duration}ms`);
+        });
+        performanceObserver.observe({ entryTypes: ['measure'] });
     }
-    enabled() {
-        if (this._enabled === undefined) {
-            // TODO(v19): Add migration to move it out of existing configs and remove the ?? here.
-            const useDaemonProcessOption = this.nxJson?.useDaemonProcess ??
-                this.nxJson?.tasksRunnerOptions?.['default']?.options?.useDaemonProcess;
-            const env = process.env.NX_DAEMON;
-            // env takes precedence
-            // option=true,env=false => no daemon
-            // option=false,env=undefined => no daemon
-            // option=false,env=false => no daemon
-            // option=undefined,env=undefined => daemon
-            // option=true,env=true => daemon
-            // option=false,env=true => daemon
-            // CI=true,env=undefined => no daemon
-            // CI=true,env=false => no daemon
-            // CI=true,env=true => daemon
-            // WASM => no daemon because file watching does not work
-            if (((0, is_ci_1.isCI)() && env !== 'true') ||
-                isDocker() ||
-                (0, tmp_dir_1.isDaemonDisabled)() ||
-                nxJsonIsNotPresent() ||
-                (useDaemonProcessOption === undefined && env === 'false') ||
-                (useDaemonProcessOption === true && env === 'false') ||
-                (useDaemonProcessOption === false && env === undefined) ||
-                (useDaemonProcessOption === false && env === 'false')) {
-                this._enabled = false;
-            }
-            else if (native_1.IS_WASM) {
-                output_1.output.warn({
-                    title: 'The Nx Daemon is unsupported in WebAssembly environments. Some things may be slower than or not function as expected.',
-                });
-                this._enabled = false;
-            }
-            else {
-                this._enabled = true;
-            }
-        }
-        return this._enabled;
+    socket.on('data', (0, consume_messages_from_socket_1.consumeMessagesFromSocket)(async (message) => {
+        await handleMessage(socket, message);
+    }));
+    socket.on('error', (e) => {
+        logger_1.serverLogger.log('Socket error');
+        console.error(e);
+    });
+    socket.on('close', () => {
+        numberOfOpenConnections -= 1;
+        exports.openSockets.delete(socket);
+        logger_1.serverLogger.log(`Closed a connection. Number of open connections: ${numberOfOpenConnections}`);
+        (0, file_watcher_sockets_1.removeRegisteredFileWatcherSocket)(socket);
+    });
+});
+registerProcessTerminationListeners();
+async function handleMessage(socket, data) {
+    if (workspaceWatcherError) {
+        await (0, shutdown_utils_1.respondWithErrorAndExit)(socket, `File watcher error in the workspace '${workspace_root_1.workspaceRoot}'.`, workspaceWatcherError);
+    }
+    const outdated = daemonIsOutdated();
+    if (outdated) {
+        await (0, shutdown_utils_1.respondWithErrorAndExit)(socket, `Daemon outdated`, new Error(outdated));
+    }
+    (0, shutdown_utils_1.resetInactivityTimeout)(handleInactivityTimeout);
+    const unparsedPayload = data;
+    let payload;
+    try {
+        payload = JSON.parse(unparsedPayload);
     }
-    reset() {
-        this.socketMessenger?.close();
-        this.socketMessenger = null;
-        this.queue = new promised_based_queue_1.PromisedBasedQueue();
-        this.currentMessage = null;
-        this.currentResolve = null;
-        this.currentReject = null;
-        this._enabled = undefined;
-        this._out?.close();
-        this._err?.close();
-        this._out = null;
-        this._err = null;
-        this._daemonStatus = DaemonStatus.DISCONNECTED;
-        this._waitForDaemonReady = new Promise((resolve) => (this._daemonReady = resolve));
+    catch (e) {
+        await (0, shutdown_utils_1.respondWithErrorAndExit)(socket, `Invalid payload from the client`, new Error(`Unsupported payload sent to daemon server: ${unparsedPayload}`));
     }
-    async requestShutdown() {
-        return this.sendToDaemonViaQueue({ type: 'REQUEST_SHUTDOWN' });
+    if (payload.type === 'PING') {
+        await handleResult(socket, 'PING', () => Promise.resolve({ response: JSON.stringify(true), description: 'ping' }));
     }
-    async getProjectGraphAndSourceMaps() {
-        try {
-            const response = await this.sendToDaemonViaQueue({
-                type: 'REQUEST_PROJECT_GRAPH',
-            });
-            return {
-                projectGraph: response.projectGraph,
-                sourceMaps: response.sourceMaps,
-            };
-        }
-        catch (e) {
-            if (e.name === error_types_1.DaemonProjectGraphError.name) {
-                throw error_types_1.ProjectGraphError.fromDaemonProjectGraphError(e);
-            }
-            else {
-                throw e;
-            }
-        }
+    else if (payload.type === 'REQUEST_PROJECT_GRAPH') {
+        await handleResult(socket, 'REQUEST_PROJECT_GRAPH', () => (0, handle_request_project_graph_1.handleRequestProjectGraph)());
     }
-    async getAllFileData() {
-        return await this.sendToDaemonViaQueue({ type: 'REQUEST_FILE_DATA' });
+    else if (payload.type === 'HASH_TASKS') {
+        await handleResult(socket, 'HASH_TASKS', () => (0, handle_hash_tasks_1.handleHashTasks)(payload));
     }
-    hashTasks(runnerOptions, tasks, taskGraph, env) {
-        return this.sendToDaemonViaQueue({
-            type: 'HASH_TASKS',
-            runnerOptions,
-            env,
-            tasks,
-            taskGraph,
-        });
+    else if (payload.type === 'PROCESS_IN_BACKGROUND') {
+        await handleResult(socket, 'PROCESS_IN_BACKGROUND', () => (0, handle_process_in_background_1.handleProcessInBackground)(payload));
     }
-    async registerFileWatcher(config, callback) {
-        try {
-            await this.getProjectGraphAndSourceMaps();
-        }
-        catch (e) {
-            if (config.allowPartialGraph && e instanceof error_types_1.ProjectGraphError) {
-                // we are fine with partial graph
-            }
-            else {
-                throw e;
-            }
-        }
-        let messenger;
-        await this.queue.sendToQueue(() => {
-            messenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)((0, socket_utils_1.getFullOsSocketPath)())).listen((message) => {
-                try {
-                    const parsedMessage = JSON.parse(message);
-                    callback(null, parsedMessage);
-                }
-                catch (e) {
-                    callback(e, null);
-                }
-            }, () => {
-                callback('closed', null);
-            }, (err) => callback(err, null));
-            return messenger.sendMessage({ type: 'REGISTER_FILE_WATCHER', config });
-        });
-        return () => {
-            messenger?.close();
-        };
+    else if (payload.type === 'RECORD_OUTPUTS_HASH') {
+        await handleResult(socket, 'RECORD_OUTPUTS_HASH', () => (0, handle_outputs_tracking_1.handleRecordOutputsHash)(payload));
     }
-    processInBackground(requirePath, data) {
-        return this.sendToDaemonViaQueue({
-            type: 'PROCESS_IN_BACKGROUND',
-            requirePath,
-            data,
-        });
+    else if (payload.type === 'OUTPUTS_HASHES_MATCH') {
+        await handleResult(socket, 'OUTPUTS_HASHES_MATCH', () => (0, handle_outputs_tracking_1.handleOutputsHashesMatch)(payload));
     }
-    recordOutputsHash(outputs, hash) {
-        return this.sendToDaemonViaQueue({
-            type: 'RECORD_OUTPUTS_HASH',
-            data: {
-                outputs,
-                hash,
-            },
-        });
+    else if (payload.type === 'REQUEST_SHUTDOWN') {
+        await handleResult(socket, 'REQUEST_SHUTDOWN', () => (0, handle_request_shutdown_1.handleRequestShutdown)(server, numberOfOpenConnections));
     }
-    outputsHashesMatch(outputs, hash) {
-        return this.sendToDaemonViaQueue({
-            type: 'OUTPUTS_HASHES_MATCH',
-            data: {
-                outputs,
-                hash,
-            },
-        });
+    else if (payload.type === 'REGISTER_FILE_WATCHER') {
+        file_watcher_sockets_1.registeredFileWatcherSockets.push({ socket, config: payload.config });
     }
-    glob(globs, exclude) {
-        const message = {
-            type: 'GLOB',
-            globs,
-            exclude,
-        };
-        return this.sendToDaemonViaQueue(message);
+    else if ((0, glob_1.isHandleGlobMessage)(payload)) {
+        await handleResult(socket, glob_1.GLOB, () => (0, handle_glob_1.handleGlob)(payload.globs, payload.exclude));
     }
-    getWorkspaceContextFileData() {
-        const message = {
-            type: get_context_file_data_1.GET_CONTEXT_FILE_DATA,
-        };
-        return this.sendToDaemonViaQueue(message);
+    else if ((0, get_nx_workspace_files_1.isHandleNxWorkspaceFilesMessage)(payload)) {
+        await handleResult(socket, get_nx_workspace_files_1.GET_NX_WORKSPACE_FILES, () => (0, handle_nx_workspace_files_1.handleNxWorkspaceFiles)(payload.projectRootMap));
     }
-    getWorkspaceFiles(projectRootMap) {
-        const message = {
-            type: get_nx_workspace_files_1.GET_NX_WORKSPACE_FILES,
-            projectRootMap,
-        };
-        return this.sendToDaemonViaQueue(message);
+    else if ((0, get_files_in_directory_1.isHandleGetFilesInDirectoryMessage)(payload)) {
+        await handleResult(socket, get_files_in_directory_1.GET_FILES_IN_DIRECTORY, () => (0, handle_get_files_in_directory_1.handleGetFilesInDirectory)(payload.dir));
     }
-    getFilesInDirectory(dir) {
-        const message = {
-            type: get_files_in_directory_1.GET_FILES_IN_DIRECTORY,
-            dir,
-        };
-        return this.sendToDaemonViaQueue(message);
+    else if ((0, get_context_file_data_1.isHandleContextFileDataMessage)(payload)) {
+        await handleResult(socket, get_context_file_data_1.GET_CONTEXT_FILE_DATA, () => (0, handle_context_file_data_1.handleContextFileData)());
     }
-    hashGlob(globs, exclude) {
-        const message = {
-            type: hash_glob_1.HASH_GLOB,
-            globs,
-            exclude,
-        };
-        return this.sendToDaemonViaQueue(message);
+    else if ((0, hash_glob_1.isHandleHashGlobMessage)(payload)) {
+        await handleResult(socket, hash_glob_1.HASH_GLOB, () => (0, handle_hash_glob_1.handleHashGlob)(payload.globs, payload.exclude));
     }
-    getTaskHistoryForHashes(hashes) {
-        const message = {
-            type: 'GET_TASK_HISTORY_FOR_HASHES',
-            hashes,
-        };
-        return this.sendToDaemonViaQueue(message);
+    else if ((0, task_history_1.isHandleGetTaskHistoryForHashesMessage)(payload)) {
+        await handleResult(socket, 'GET_TASK_HISTORY_FOR_HASHES', () => (0, handle_get_task_history_1.handleGetTaskHistoryForHashes)(payload.hashes));
     }
-    writeTaskRunsToHistory(taskRuns) {
-        const message = {
-            type: 'WRITE_TASK_RUNS_TO_HISTORY',
-            taskRuns,
-        };
-        return this.sendMessageToDaemon(message);
+    else if ((0, task_history_1.isHandleWriteTaskRunsToHistoryMessage)(payload)) {
+        await handleResult(socket, 'WRITE_TASK_RUNS_TO_HISTORY', () => (0, handle_write_task_runs_to_history_1.handleWriteTaskRunsToHistory)(payload.taskRuns));
     }
-    async isServerAvailable() {
-        return new Promise((resolve) => {
-            try {
-                const socket = (0, net_1.connect)((0, socket_utils_1.getFullOsSocketPath)(), () => {
-                    socket.destroy();
-                    resolve(true);
-                });
-                socket.once('error', () => {
-                    resolve(false);
-                });
-            }
-            catch (err) {
-                resolve(false);
-            }
-        });
+    else if ((0, force_shutdown_1.isHandleForceShutdownMessage)(payload)) {
+        await handleResult(socket, 'FORCE_SHUTDOWN', () => (0, handle_force_shutdown_1.handleForceShutdown)(server));
     }
-    async sendToDaemonViaQueue(messageToDaemon) {
-        return this.queue.sendToQueue(() => this.sendMessageToDaemon(messageToDaemon));
+    else if ((0, get_sync_generator_changes_1.isHandleGetSyncGeneratorChangesMessage)(payload)) {
+        await handleResult(socket, get_sync_generator_changes_1.GET_SYNC_GENERATOR_CHANGES, () => (0, handle_get_sync_generator_changes_1.handleGetSyncGeneratorChanges)(payload.generators));
     }
-    setUpConnection() {
-        this.socketMessenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)((0, socket_utils_1.getFullOsSocketPath)())).listen((message) => this.handleMessage(message), () => {
-            // it's ok for the daemon to terminate if the client doesn't wait on
-            // any messages from the daemon
-            if (this.queue.isEmpty()) {
-                this.reset();
-            }
-            else {
-                output_1.output.error({
-                    title: 'Daemon process terminated and closed the connection',
-                    bodyLines: [
-                        'Please rerun the command, which will restart the daemon.',
-                        `If you get this error again, check for any errors in the daemon process logs found in: ${tmp_dir_1.DAEMON_OUTPUT_LOG_FILE}`,
-                    ],
-                });
-                this._daemonStatus = DaemonStatus.DISCONNECTED;
-                this.currentReject?.(daemonProcessException('Daemon process terminated and closed the connection'));
-                process.exit(1);
-            }
-        }, (err) => {
-            if (!err.message) {
-                return this.currentReject(daemonProcessException(err.toString()));
-            }
-            if (err.message.startsWith('LOCK-FILES-CHANGED')) {
-                // retry the current message
-                // we cannot send it via the queue because we are in the middle of processing
-                // a message from the queue
-                return this.sendMessageToDaemon(this.currentMessage).then(this.currentResolve, this.currentReject);
-            }
-            let error;
-            if (err.message.startsWith('connect ENOENT')) {
-                error = daemonProcessException('The Daemon Server is not running');
-            }
-            else if (err.message.startsWith('connect ECONNREFUSED')) {
-                error = daemonProcessException(`A server instance had not been fully shut down. Please try running the command again.`);
-                (0, socket_utils_1.killSocketOrPath)();
-            }
-            else if (err.message.startsWith('read ECONNRESET')) {
-                error = daemonProcessException(`Unable to connect to the daemon process.`);
-            }
-            else {
-                error = daemonProcessException(err.toString());
-            }
-            return this.currentReject(error);
-        });
+    else if ((0, flush_sync_generator_changes_to_disk_1.isHandleFlushSyncGeneratorChangesToDiskMessage)(payload)) {
+        await handleResult(socket, flush_sync_generator_changes_to_disk_1.FLUSH_SYNC_GENERATOR_CHANGES_TO_DISK, () => (0, handle_flush_sync_generator_changes_to_disk_1.handleFlushSyncGeneratorChangesToDisk)(payload.generators));
     }
-    async sendMessageToDaemon(message) {
-        if (this._daemonStatus == DaemonStatus.DISCONNECTED) {
-            this._daemonStatus = DaemonStatus.CONNECTING;
-            if (!(await this.isServerAvailable())) {
-                await this.startInBackground();
-            }
-            this.setUpConnection();
-            this._daemonStatus = DaemonStatus.CONNECTED;
-            this._daemonReady();
-        }
-        else if (this._daemonStatus == DaemonStatus.CONNECTING) {
-            await this._waitForDaemonReady;
-        }
-        return new Promise((resolve, reject) => {
-            perf_hooks_1.performance.mark('sendMessageToDaemon-start');
-            this.currentMessage = message;
-            this.currentResolve = resolve;
-            this.currentReject = reject;
-            this.socketMessenger.sendMessage(message);
-        });
+    else if ((0, get_registered_sync_generators_1.isHandleGetRegisteredSyncGeneratorsMessage)(payload)) {
+        await handleResult(socket, get_registered_sync_generators_1.GET_REGISTERED_SYNC_GENERATORS, () => (0, handle_get_registered_sync_generators_1.handleGetRegisteredSyncGenerators)());
     }
-    handleMessage(serializedResult) {
-        try {
-            perf_hooks_1.performance.mark('json-parse-start');
-            const parsedResult = JSON.parse(serializedResult);
-            perf_hooks_1.performance.mark('json-parse-end');
-            perf_hooks_1.performance.measure('deserialize daemon response', 'json-parse-start', 'json-parse-end');
-            if (parsedResult.error) {
-                this.currentReject(parsedResult.error);
-            }
-            else {
-                perf_hooks_1.performance.measure('total for sendMessageToDaemon()', 'sendMessageToDaemon-start', 'json-parse-end');
-                return this.currentResolve(parsedResult);
-            }
-        }
-        catch (e) {
-            const endOfResponse = serializedResult.length > 300
-                ? serializedResult.substring(serializedResult.length - 300)
-                : serializedResult;
-            this.currentReject(daemonProcessException([
-                'Could not deserialize response from Nx daemon.',
-                `Message: ${e.message}`,
-                '\n',
-                `Received:`,
-                endOfResponse,
-                '\n',
-            ].join('\n')));
-        }
+    else if ((0, update_workspace_context_1.isHandleUpdateWorkspaceContextMessage)(payload)) {
+        await handleResult(socket, update_workspace_context_1.UPDATE_WORKSPACE_CONTEXT, () => (0, handle_update_workspace_context_1.handleUpdateWorkspaceContext)(payload.createdFiles, payload.updatedFiles, payload.deletedFiles));
     }
-    async startInBackground() {
-        (0, fs_extra_1.ensureDirSync)(tmp_dir_1.DAEMON_DIR_FOR_CURRENT_WORKSPACE);
-        (0, fs_extra_1.ensureFileSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE);
-        this._out = await (0, promises_1.open)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE, 'a');
-        this._err = await (0, promises_1.open)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE, 'a');
-        const backgroundProcess = (0, child_process_1.spawn)(process.execPath, [(0, path_1.join)(__dirname, `../server/start.js`)], {
-            cwd: workspace_root_1.workspaceRoot,
-            stdio: ['ignore', this._out.fd, this._err.fd],
-            detached: true,
-            windowsHide: true,
-            shell: false,
-            env: {
-                ...process.env,
-                ...DAEMON_ENV_SETTINGS,
-            },
-        });
-        backgroundProcess.unref();
-        /**
-         * Ensure the server is actually available to connect to via IPC before resolving
-         */
-        let attempts = 0;
-        return new Promise((resolve, reject) => {
-            const id = setInterval(async () => {
-                if (await this.isServerAvailable()) {
-                    clearInterval(id);
-                    resolve(backgroundProcess.pid);
-                }
-                else if (attempts > 6000) {
-                    // daemon fails to start, the process probably exited
-                    // we print the logs and exit the client
-                    reject(daemonProcessException('Failed to start or connect to the Nx Daemon process.'));
-                }
-                else {
-                    attempts++;
-                }
-            }, 10);
+    else {
+        await (0, shutdown_utils_1.respondWithErrorAndExit)(socket, `Invalid payload from the client`, new Error(`Unsupported payload sent to daemon server: ${unparsedPayload}`));
+    }
+}
+async function handleResult(socket, type, hrFn) {
+    const startMark = new Date();
+    const hr = await hrFn();
+    const doneHandlingMark = new Date();
+    if (hr.error) {
+        await (0, shutdown_utils_1.respondWithErrorAndExit)(socket, hr.description, hr.error);
+    }
+    else {
+        await (0, shutdown_utils_1.respondToClient)(socket, hr.response, hr.description);
+    }
+    const endMark = new Date();
+    logger_1.serverLogger.log(`Handled ${type}. Handling time: ${doneHandlingMark.getTime() - startMark.getTime()}. Response time: ${endMark.getTime() - doneHandlingMark.getTime()}.`);
+}
+function handleInactivityTimeout() {
+    if (numberOfOpenConnections > 0) {
+        logger_1.serverLogger.log(`There are ${numberOfOpenConnections} open connections. Reset inactivity timer.`);
+        (0, shutdown_utils_1.resetInactivityTimeout)(handleInactivityTimeout);
+    }
+    else {
+        (0, shutdown_utils_1.handleServerProcessTermination)({
+            server,
+            reason: `${shutdown_utils_1.SERVER_INACTIVITY_TIMEOUT_MS}ms of inactivity`,
+            sockets: exports.openSockets,
         });
     }
-    async stop() {
-        try {
-            await (0, cache_1.safelyCleanUpExistingProcess)();
-        }
-        catch (err) {
-            output_1.output.error({
-                title: err?.message ||
-                    'Something unexpected went wrong when stopping the server',
-            });
-        }
-        (0, tmp_dir_1.removeSocketDir)();
+}
+function registerProcessTerminationListeners() {
+    process
+        .on('SIGINT', () => (0, shutdown_utils_1.handleServerProcessTermination)({
+        server,
+        reason: 'received process SIGINT',
+        sockets: exports.openSockets,
+    }))
+        .on('SIGTERM', () => (0, shutdown_utils_1.handleServerProcessTermination)({
+        server,
+        reason: 'received process SIGTERM',
+        sockets: exports.openSockets,
+    }))
+        .on('SIGHUP', () => (0, shutdown_utils_1.handleServerProcessTermination)({
+        server,
+        reason: 'received process SIGHUP',
+        sockets: exports.openSockets,
+    }));
+}
+let existingLockHash;
+function daemonIsOutdated() {
+    if (nxVersionChanged()) {
+        return 'NX_VERSION_CHANGED';
     }
+    else if (lockFileHashChanged()) {
+        return 'LOCK_FILES_CHANGED';
+    }
+    return null;
 }
-exports.DaemonClient = DaemonClient;
-exports.daemonClient = new DaemonClient();
-function isDaemonEnabled() {
-    return exports.daemonClient.enabled();
+function nxVersionChanged() {
+    return versions_1.nxVersion !== getInstalledNxVersion();
 }
-function isDocker() {
+const nxPackageJsonPath = __nccwpck_require__.ab + "package.json";
+function getInstalledNxVersion() {
     try {
-        (0, fs_1.statSync)('/.dockerenv');
+        const { version } = (0, fileutils_1.readJsonFile)(__nccwpck_require__.ab + "package.json");
+        return version;
+    }
+    catch (e) {
+        // node modules are absent, so we can return null, which would shut down the daemon
+        return null;
+    }
+}
+function lockFileHashChanged() {
+    const lockHashes = [
+        (0, path_1.join)(workspace_root_1.workspaceRoot, 'package-lock.json'),
+        (0, path_1.join)(workspace_root_1.workspaceRoot, 'yarn.lock'),
+        (0, path_1.join)(workspace_root_1.workspaceRoot, 'pnpm-lock.yaml'),
+        (0, path_1.join)(workspace_root_1.workspaceRoot, 'bun.lockb'),
+    ]
+        .filter((file) => (0, fs_1.existsSync)(file))
+        .map((file) => (0, native_1.hashFile)(file));
+    const newHash = (0, file_hasher_1.hashArray)(lockHashes);
+    if (existingLockHash && newHash != existingLockHash) {
+        existingLockHash = newHash;
         return true;
     }
-    catch {
-        try {
-            return (0, fs_1.readFileSync)('/proc/self/cgroup', 'utf8')?.includes('docker');
-        }
-        catch { }
+    else {
+        existingLockHash = newHash;
         return false;
     }
 }
-function nxJsonIsNotPresent() {
-    return !(0, nx_json_1.hasNxJson)(workspace_root_1.workspaceRoot);
-}
-function daemonProcessException(message) {
+/**
+ * When applicable files in the workspaces are changed (created, updated, deleted),
+ * we need to recompute the cached serialized project graph so that it is readily
+ * available for the next client request to the server.
+ */
+const handleWorkspaceChanges = async (err, changeEvents) => {
+    if (workspaceWatcherError) {
+        logger_1.serverLogger.watcherLog('Skipping handleWorkspaceChanges because of a previously recorded watcher error.');
+        return;
+    }
     try {
-        let log = (0, fs_1.readFileSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE).toString().split('\n');
-        if (log.length > 20) {
-            log = log.slice(log.length - 20);
+        (0, shutdown_utils_1.resetInactivityTimeout)(handleInactivityTimeout);
+        const outdatedReason = daemonIsOutdated();
+        if (outdatedReason) {
+            await (0, shutdown_utils_1.handleServerProcessTermination)({
+                server,
+                reason: outdatedReason,
+                sockets: exports.openSockets,
+            });
+            return;
         }
-        const error = new Error([
-            message,
-            '',
-            'Messages from the log:',
-            ...log,
-            '\n',
-            `More information: ${tmp_dir_1.DAEMON_OUTPUT_LOG_FILE}`,
-        ].join('\n'));
-        error.internalDaemonError = true;
-        return error;
+        if (err) {
+            let error = typeof err === 'string' ? new Error(err) : err;
+            logger_1.serverLogger.watcherLog('Unexpected workspace watcher error', error.message);
+            console.error(error);
+            workspaceWatcherError = error;
+            return;
+        }
+        logger_1.serverLogger.watcherLog((0, watcher_1.convertChangeEventsToLogMessage)(changeEvents));
+        const updatedFilesToHash = [];
+        const createdFilesToHash = [];
+        const deletedFiles = [];
+        for (const event of changeEvents) {
+            if (event.type === 'delete') {
+                deletedFiles.push(event.path);
+            }
+            else {
+                try {
+                    const s = (0, fs_1.statSync)((0, path_1.join)(workspace_root_1.workspaceRoot, event.path));
+                    if (s.isFile()) {
+                        if (event.type === 'update') {
+                            updatedFilesToHash.push(event.path);
+                        }
+                        else {
+                            createdFilesToHash.push(event.path);
+                        }
+                    }
+                }
+                catch (e) {
+                    // this can happen when the update file was deleted right after
+                }
+            }
+        }
+        (0, project_graph_incremental_recomputation_1.addUpdatedAndDeletedFiles)(createdFilesToHash, updatedFilesToHash, deletedFiles);
     }
-    catch (e) {
-        return new Error(message);
+    catch (err) {
+        logger_1.serverLogger.watcherLog(`Unexpected workspace error`, err.message);
+        console.error(err);
+        workspaceWatcherError = err;
+    }
+};
+const handleOutputsChanges = async (err, changeEvents) => {
+    try {
+        if (err || !changeEvents || !changeEvents.length) {
+            let error = typeof err === 'string' ? new Error(err) : err;
+            logger_1.serverLogger.watcherLog('Unexpected outputs watcher error', error.message);
+            console.error(error);
+            outputsWatcherError = error;
+            (0, outputs_tracking_1.disableOutputsTracking)();
+            return;
+        }
+        if (outputsWatcherError) {
+            return;
+        }
+        logger_1.serverLogger.watcherLog('Processing file changes in outputs');
+        (0, outputs_tracking_1.processFileChangesInOutputs)(changeEvents);
+    }
+    catch (err) {
+        logger_1.serverLogger.watcherLog(`Unexpected outputs watcher error`, err.message);
+        console.error(err);
+        outputsWatcherError = err;
+        (0, outputs_tracking_1.disableOutputsTracking)();
+    }
+};
+async function startServer() {
+    (0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
+    // Persist metadata about the background process so that it can be cleaned up later if needed
+    await (0, cache_1.writeDaemonJsonProcessCache)({
+        processId: process.pid,
+    });
+    // See notes in socket-command-line-utils.ts on OS differences regarding clean up of existings connections.
+    if (!socket_utils_1.isWindows) {
+        (0, socket_utils_1.killSocketOrPath)();
     }
+    return new Promise(async (resolve, reject) => {
+        try {
+            server.listen((0, socket_utils_1.getFullOsSocketPath)(), async () => {
+                try {
+                    logger_1.serverLogger.log(`Started listening on: ${(0, socket_utils_1.getFullOsSocketPath)()}`);
+                    // this triggers the storage of the lock file hash
+                    daemonIsOutdated();
+                    if (!(0, shutdown_utils_1.getWatcherInstance)()) {
+                        (0, shutdown_utils_1.storeWatcherInstance)(await (0, watcher_1.watchWorkspace)(server, handleWorkspaceChanges));
+                        logger_1.serverLogger.watcherLog(`Subscribed to changes within: ${workspace_root_1.workspaceRoot} (native)`);
+                    }
+                    if (!(0, shutdown_utils_1.getOutputWatcherInstance)()) {
+                        (0, shutdown_utils_1.storeOutputWatcherInstance)(await (0, watcher_1.watchOutputFiles)(handleOutputsChanges));
+                    }
+                    // listen for project graph recomputation events to collect and schedule sync generators
+                    (0, project_graph_incremental_recomputation_1.registerProjectGraphRecomputationListener)(sync_generators_1.collectAndScheduleSyncGenerators);
+                    // trigger an initial project graph recomputation
+                    (0, project_graph_incremental_recomputation_1.addUpdatedAndDeletedFiles)([], [], []);
+                    return resolve(server);
+                }
+                catch (err) {
+                    await handleWorkspaceChanges(err, []);
+                }
+            });
+        }
+        catch (err) {
+            reject(err);
+        }
+    });
 }
 
 
 /***/ }),
 
-/***/ 81629:
+/***/ 45347:
 /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.DaemonSocketMessenger = void 0;
-const consume_messages_from_socket_1 = __nccwpck_require__(66696);
-class DaemonSocketMessenger {
-    constructor(socket) {
-        this.socket = socket;
-    }
-    async sendMessage(messageToDaemon) {
-        this.socket.write(JSON.stringify(messageToDaemon));
-        // send EOT to indicate that the message has been fully written
-        this.socket.write(String.fromCodePoint(4));
+exports.SERVER_INACTIVITY_TIMEOUT_MS = void 0;
+exports.storeWatcherInstance = storeWatcherInstance;
+exports.getWatcherInstance = getWatcherInstance;
+exports.storeOutputWatcherInstance = storeOutputWatcherInstance;
+exports.getOutputWatcherInstance = getOutputWatcherInstance;
+exports.handleServerProcessTermination = handleServerProcessTermination;
+exports.resetInactivityTimeout = resetInactivityTimeout;
+exports.respondToClient = respondToClient;
+exports.respondWithErrorAndExit = respondWithErrorAndExit;
+const workspace_root_1 = __nccwpck_require__(64393);
+const logger_1 = __nccwpck_require__(89715);
+const socket_utils_1 = __nccwpck_require__(58935);
+const cache_1 = __nccwpck_require__(70800);
+const plugins_1 = __nccwpck_require__(17611);
+const error_types_1 = __nccwpck_require__(54403);
+exports.SERVER_INACTIVITY_TIMEOUT_MS = 10800000; // 10800000 ms = 3 hours
+let watcherInstance;
+function storeWatcherInstance(instance) {
+    watcherInstance = instance;
+}
+function getWatcherInstance() {
+    return watcherInstance;
+}
+let outputWatcherInstance;
+function storeOutputWatcherInstance(instance) {
+    outputWatcherInstance = instance;
+}
+function getOutputWatcherInstance() {
+    return outputWatcherInstance;
+}
+async function handleServerProcessTermination({ server, reason, sockets, }) {
+    try {
+        await new Promise((res) => {
+            server.close(() => {
+                res(null);
+            });
+            for (const socket of sockets) {
+                socket.destroy();
+            }
+        });
+        if (watcherInstance) {
+            await watcherInstance.stop();
+            logger_1.serverLogger.watcherLog(`Stopping the watcher for ${workspace_root_1.workspaceRoot} (sources)`);
+        }
+        if (outputWatcherInstance) {
+            await outputWatcherInstance.stop();
+            logger_1.serverLogger.watcherLog(`Stopping the watcher for ${workspace_root_1.workspaceRoot} (outputs)`);
+        }
+        (0, cache_1.deleteDaemonJsonProcessCache)();
+        (0, plugins_1.cleanupPlugins)();
+        logger_1.serverLogger.log(`Server stopped because: "${reason}"`);
     }
-    listen(onData, onClose = () => { }, onError = (err) => { }) {
-        this.socket.on('data', (0, consume_messages_from_socket_1.consumeMessagesFromSocket)(async (message) => {
-            onData(message);
-        }));
-        this.socket.on('close', onClose);
-        this.socket.on('error', onError);
-        return this;
+    finally {
+        process.exit(0);
     }
-    close() {
-        this.socket.destroy();
+}
+let serverInactivityTimerId;
+function resetInactivityTimeout(cb) {
+    if (serverInactivityTimerId) {
+        clearTimeout(serverInactivityTimerId);
     }
+    serverInactivityTimerId = setTimeout(cb, exports.SERVER_INACTIVITY_TIMEOUT_MS);
 }
-exports.DaemonSocketMessenger = DaemonSocketMessenger;
-
-
-/***/ }),
-
-/***/ 45153:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.isOnDaemon = isOnDaemon;
-function isOnDaemon() {
-    return !!global.NX_DAEMON;
+function respondToClient(socket, response, description) {
+    return new Promise(async (res) => {
+        if (description) {
+            logger_1.serverLogger.requestLog(`Responding to the client.`, description);
+        }
+        socket.write(`${response}${String.fromCodePoint(4)}`, (err) => {
+            if (err) {
+                console.error(err);
+            }
+            logger_1.serverLogger.log(`Done responding to the client`, description);
+            res(null);
+        });
+    });
 }
-
-
-/***/ }),
-
-/***/ 50356:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.GET_CONTEXT_FILE_DATA = void 0;
-exports.isHandleContextFileDataMessage = isHandleContextFileDataMessage;
-exports.GET_CONTEXT_FILE_DATA = 'GET_CONTEXT_FILE_DATA';
-function isHandleContextFileDataMessage(message) {
-    return (typeof message === 'object' &&
-        message !== null &&
-        'type' in message &&
-        message['type'] === exports.GET_CONTEXT_FILE_DATA);
+async function respondWithErrorAndExit(socket, description, error) {
+    const normalizedError = error instanceof error_types_1.DaemonProjectGraphError
+        ? error_types_1.ProjectGraphError.fromDaemonProjectGraphError(error)
+        : error;
+    // print some extra stuff in the error message
+    logger_1.serverLogger.requestLog(`Responding to the client with an error.`, description, normalizedError.message);
+    console.error(normalizedError.stack);
+    // Respond with the original error
+    await respondToClient(socket, (0, socket_utils_1.serializeResult)(error, null, null), null);
 }
 
 
 /***/ }),
 
-/***/ 52095:
-/***/ ((__unused_webpack_module, exports) => {
+/***/ 75498:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.GET_FILES_IN_DIRECTORY = void 0;
-exports.isHandleGetFilesInDirectoryMessage = isHandleGetFilesInDirectoryMessage;
-exports.GET_FILES_IN_DIRECTORY = 'GET_FILES_IN_DIRECTORY';
-function isHandleGetFilesInDirectoryMessage(message) {
-    return (typeof message === 'object' &&
-        message !== null &&
-        'type' in message &&
-        message['type'] === exports.GET_FILES_IN_DIRECTORY);
+exports.getCachedSyncGeneratorChanges = getCachedSyncGeneratorChanges;
+exports.flushSyncGeneratorChangesToDisk = flushSyncGeneratorChangesToDisk;
+exports.collectAndScheduleSyncGenerators = collectAndScheduleSyncGenerators;
+exports.getCachedRegisteredSyncGenerators = getCachedRegisteredSyncGenerators;
+const nx_json_1 = __nccwpck_require__(21173);
+const tree_1 = __nccwpck_require__(10818);
+const file_hasher_1 = __nccwpck_require__(19482);
+const project_graph_1 = __nccwpck_require__(54913);
+const sync_generators_1 = __nccwpck_require__(98299);
+const workspace_root_1 = __nccwpck_require__(64393);
+const logger_1 = __nccwpck_require__(89715);
+const project_graph_incremental_recomputation_1 = __nccwpck_require__(96952);
+const syncGeneratorsCacheResultPromises = new Map();
+let registeredTaskSyncGenerators = new Set();
+let registeredGlobalSyncGenerators = new Set();
+const scheduledGenerators = new Set();
+let waitPeriod = 100;
+let registeredSyncGenerators;
+let scheduledTimeoutId;
+let storedProjectGraphHash;
+let storedNxJsonHash;
+const log = (...messageParts) => {
+    logger_1.serverLogger.log('[SYNC]:', ...messageParts);
+};
+// TODO(leo): check conflicts and reuse the Tree where possible
+async function getCachedSyncGeneratorChanges(generators) {
+    try {
+        log('get sync generators changes on demand', generators);
+        // this is invoked imperatively, so we clear any scheduled run
+        if (scheduledTimeoutId) {
+            log('clearing scheduled run');
+            clearTimeout(scheduledTimeoutId);
+            scheduledTimeoutId = undefined;
+        }
+        // reset the wait time
+        waitPeriod = 100;
+        let projects;
+        let errored = false;
+        const getProjectsConfigurations = async () => {
+            if (projects || errored) {
+                return projects;
+            }
+            const { projectGraph, error } = await (0, project_graph_incremental_recomputation_1.getCachedSerializedProjectGraphPromise)();
+            projects = projectGraph
+                ? (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(projectGraph).projects
+                : null;
+            errored = error !== undefined;
+            return projects;
+        };
+        return (await Promise.all(generators.map(async (generator) => {
+            if (scheduledGenerators.has(generator) ||
+                !syncGeneratorsCacheResultPromises.has(generator)) {
+                // it's scheduled to run (there are pending changes to process) or
+                // it's not scheduled and there's no cached result, so run it
+                const projects = await getProjectsConfigurations();
+                if (projects) {
+                    log(generator, 'already scheduled or not cached, running it now');
+                    runGenerator(generator, projects);
+                }
+                else {
+                    log(generator, 'already scheduled or not cached, project graph errored');
+                    /**
+                     * This should never happen. This is invoked imperatively, and by
+                     * the time it is invoked, the project graph would have already
+                     * been requested. If it errored, it would have been reported and
+                     * this wouldn't have been invoked. We handle it just in case.
+                     *
+                     * Since the project graph would be reported by the relevant
+                     * handlers separately, we just ignore the error, don't cache
+                     * any result and return an empty result, the next time this is
+                     * invoked the process will repeat until it eventually recovers
+                     * when the project graph is fixed.
+                     */
+                    return Promise.resolve({ changes: [], generatorName: generator });
+                }
+            }
+            else {
+                log(generator, 'not scheduled and has cached result, returning cached result');
+            }
+            return syncGeneratorsCacheResultPromises.get(generator);
+        }))).flat();
+    }
+    catch (e) {
+        console.error(e);
+        syncGeneratorsCacheResultPromises.clear();
+        return [];
+    }
 }
-
-
-/***/ }),
-
-/***/ 27333:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.GET_NX_WORKSPACE_FILES = void 0;
-exports.isHandleNxWorkspaceFilesMessage = isHandleNxWorkspaceFilesMessage;
-exports.GET_NX_WORKSPACE_FILES = 'GET_NX_WORKSPACE_FILES';
-function isHandleNxWorkspaceFilesMessage(message) {
-    return (typeof message === 'object' &&
-        message !== null &&
-        'type' in message &&
-        message['type'] === exports.GET_NX_WORKSPACE_FILES);
+async function flushSyncGeneratorChangesToDisk(generators) {
+    log('flush sync generators changes', generators);
+    const results = await getCachedSyncGeneratorChanges(generators);
+    for (const generator of generators) {
+        syncGeneratorsCacheResultPromises.delete(generator);
+    }
+    await (0, sync_generators_1.flushSyncGeneratorChanges)(results);
+}
+function collectAndScheduleSyncGenerators(projectGraph) {
+    if (!projectGraph) {
+        // If the project graph is not available, we can't collect and schedule
+        // sync generators. The project graph error will be reported separately.
+        return;
+    }
+    log('collect registered sync generators');
+    collectAllRegisteredSyncGenerators(projectGraph);
+    // a change imply we need to re-run all the generators
+    // make sure to schedule all the collected generators
+    scheduledGenerators.clear();
+    for (const generator of registeredSyncGenerators) {
+        scheduledGenerators.add(generator);
+    }
+    log('scheduling:', [...scheduledGenerators]);
+    if (scheduledTimeoutId) {
+        // we have a scheduled run already, so we don't need to do anything
+        return;
+    }
+    scheduledTimeoutId = setTimeout(async () => {
+        scheduledTimeoutId = undefined;
+        if (waitPeriod < 4000) {
+            waitPeriod = waitPeriod * 2;
+        }
+        if (scheduledGenerators.size === 0) {
+            // no generators to run
+            return;
+        }
+        const { projects } = (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(projectGraph);
+        for (const generator of scheduledGenerators) {
+            runGenerator(generator, projects);
+        }
+        await Promise.all(syncGeneratorsCacheResultPromises.values());
+    }, waitPeriod);
+}
+async function getCachedRegisteredSyncGenerators() {
+    log('get registered sync generators');
+    if (!registeredSyncGenerators) {
+        log('no registered sync generators, collecting them');
+        const { projectGraph } = await (0, project_graph_incremental_recomputation_1.getCachedSerializedProjectGraphPromise)();
+        collectAllRegisteredSyncGenerators(projectGraph);
+    }
+    else {
+        log('registered sync generators already collected, returning them');
+    }
+    return [...registeredSyncGenerators];
+}
+function collectAllRegisteredSyncGenerators(projectGraph) {
+    const projectGraphHash = hashProjectGraph(projectGraph);
+    if (storedProjectGraphHash !== projectGraphHash) {
+        storedProjectGraphHash = projectGraphHash;
+        registeredTaskSyncGenerators =
+            (0, sync_generators_1.collectRegisteredTaskSyncGenerators)(projectGraph);
+    }
+    else {
+        log('project graph hash is the same, not collecting task sync generators');
+    }
+    const nxJson = (0, nx_json_1.readNxJson)();
+    const nxJsonHash = (0, file_hasher_1.hashArray)(nxJson.sync?.globalGenerators?.sort() ?? []);
+    if (storedNxJsonHash !== nxJsonHash) {
+        storedNxJsonHash = nxJsonHash;
+        registeredGlobalSyncGenerators =
+            (0, sync_generators_1.collectRegisteredGlobalSyncGenerators)(nxJson);
+    }
+    else {
+        log('nx.json hash is the same, not collecting global sync generators');
+    }
+    const generators = new Set([
+        ...registeredTaskSyncGenerators,
+        ...registeredGlobalSyncGenerators,
+    ]);
+    if (!registeredSyncGenerators) {
+        registeredSyncGenerators = generators;
+        return;
+    }
+    for (const generator of registeredSyncGenerators) {
+        if (!generators.has(generator)) {
+            registeredSyncGenerators.delete(generator);
+            syncGeneratorsCacheResultPromises.delete(generator);
+        }
+    }
+    for (const generator of generators) {
+        if (!registeredSyncGenerators.has(generator)) {
+            registeredSyncGenerators.add(generator);
+        }
+    }
+}
+function runGenerator(generator, projects) {
+    log('running scheduled generator', generator);
+    // remove it from the scheduled set
+    scheduledGenerators.delete(generator);
+    const tree = new tree_1.FsTree(workspace_root_1.workspaceRoot, false, `running sync generator ${generator}`);
+    // run the generator and cache the result
+    syncGeneratorsCacheResultPromises.set(generator, (0, sync_generators_1.runSyncGenerator)(tree, generator, projects).then((result) => {
+        log(generator, 'changes:', result.changes.map((c) => c.path).join(', '));
+        return result;
+    }));
+}
+function hashProjectGraph(projectGraph) {
+    const stringifiedProjects = Object.entries(projectGraph.nodes)
+        .sort(([projectNameA], [projectNameB]) => projectNameA.localeCompare(projectNameB))
+        .map(([projectName, projectConfig]) => `${projectName}:${JSON.stringify(projectConfig)}`);
+    return (0, file_hasher_1.hashArray)(stringifiedProjects);
 }
 
 
 /***/ }),
 
-/***/ 26613:
-/***/ ((__unused_webpack_module, exports) => {
+/***/ 52010:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
 
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.HASH_GLOB = void 0;
-exports.isHandleHashGlobMessage = isHandleHashGlobMessage;
-exports.HASH_GLOB = 'HASH_GLOB';
-function isHandleHashGlobMessage(message) {
-    return (typeof message === 'object' &&
-        message !== null &&
-        'type' in message &&
-        message['type'] === exports.HASH_GLOB);
+exports.watchWorkspace = watchWorkspace;
+exports.watchOutputFiles = watchOutputFiles;
+exports.convertChangeEventsToLogMessage = convertChangeEventsToLogMessage;
+const workspace_root_1 = __nccwpck_require__(64393);
+const path_1 = __nccwpck_require__(71017);
+const socket_utils_1 = __nccwpck_require__(58935);
+const shutdown_utils_1 = __nccwpck_require__(45347);
+const path_2 = __nccwpck_require__(41559);
+const ignore_1 = __nccwpck_require__(22810);
+const cache_1 = __nccwpck_require__(70800);
+const server_1 = __nccwpck_require__(85309);
+const ALWAYS_IGNORE = [
+    ...(0, ignore_1.getAlwaysIgnore)(workspace_root_1.workspaceRoot),
+    (0, socket_utils_1.getFullOsSocketPath)(),
+];
+async function watchWorkspace(server, cb) {
+    const { Watcher } = await Promise.resolve().then(() => __nccwpck_require__(71926));
+    let relativeServerProcess = (0, path_2.normalizePath)((0, path_1.relative)(workspace_root_1.workspaceRoot, cache_1.serverProcessJsonPath));
+    let watcher = new Watcher(workspace_root_1.workspaceRoot, [`!${relativeServerProcess}`]);
+    watcher.watch((err, events) => {
+        if (err) {
+            return cb(err, null);
+        }
+        for (const event of events) {
+            if (event.path == relativeServerProcess &&
+                (0, cache_1.getDaemonProcessIdSync)() !== process.pid) {
+                (0, shutdown_utils_1.handleServerProcessTermination)({
+                    server,
+                    reason: 'this process is no longer the current daemon (native)',
+                    sockets: server_1.openSockets,
+                });
+            }
+            if (event.path.endsWith('.gitignore') || event.path === '.nxignore') {
+                // If the ignore files themselves have changed we need to dynamically update our cached ignoreGlobs
+                (0, shutdown_utils_1.handleServerProcessTermination)({
+                    server,
+                    reason: 'Stopping the daemon the set of ignored files changed (native)',
+                    sockets: server_1.openSockets,
+                });
+            }
+        }
+        cb(null, events);
+    });
+    return watcher;
+}
+async function watchOutputFiles(cb) {
+    const { Watcher } = await Promise.resolve().then(() => __nccwpck_require__(71926));
+    let watcher = new Watcher(workspace_root_1.workspaceRoot, null, false);
+    watcher.watch((err, events) => {
+        if (err) {
+            return cb(err, null);
+        }
+        if (events.length !== 0) {
+            cb(null, events);
+        }
+    });
+    return watcher;
+}
+/**
+ * NOTE: An event type of "create" will also apply to the case where the user has restored
+ * an original version of a file after modifying/deleting it by using git, so we adjust
+ * our log language accordingly.
+ */
+function convertChangeEventsToLogMessage(changeEvents) {
+    // If only a single file was changed, show the information inline
+    if (changeEvents.length === 1) {
+        const { path, type } = changeEvents[0];
+        let typeLog = 'updated';
+        switch (type) {
+            case 'create':
+                typeLog = 'created or restored';
+                break;
+            case 'update':
+                typeLog = 'modified';
+                break;
+            case 'delete':
+                typeLog = 'deleted';
+                break;
+        }
+        return `${path} was ${typeLog}`;
+    }
+    let numCreatedOrRestoredFiles = 0;
+    let numModifiedFiles = 0;
+    let numDeletedFiles = 0;
+    for (const event of changeEvents) {
+        switch (event.type) {
+            case 'create':
+                numCreatedOrRestoredFiles++;
+                break;
+            case 'update':
+                numModifiedFiles++;
+                break;
+            case 'delete':
+                numDeletedFiles++;
+                break;
+        }
+    }
+    return `${numCreatedOrRestoredFiles} file(s) created or restored, ${numModifiedFiles} file(s) modified, ${numDeletedFiles} file(s) deleted`;
 }
 
 
@@ -284727,20 +297540,33 @@ exports.isWindows = (0, os_1.platform)() === 'win32';
  * See https://nodejs.org/dist/latest-v14.x/docs/api/net.html#net_identifying_paths_for_ipc_connections for a full breakdown
  * of OS differences between Unix domain sockets and named pipes.
  */
-const getFullOsSocketPath = () => exports.isWindows
-    ? '\\\\.\\pipe\\nx\\' + (0, path_1.resolve)((0, tmp_dir_1.getDaemonSocketDir)())
-    : (0, path_1.resolve)((0, tmp_dir_1.getDaemonSocketDir)());
+const getFullOsSocketPath = () => {
+    const path = (0, path_1.resolve)((0, tmp_dir_1.getDaemonSocketDir)());
+    assertValidSocketPath(path);
+    return exports.isWindows ? '\\\\.\\pipe\\nx\\' + path : path;
+};
 exports.getFullOsSocketPath = getFullOsSocketPath;
 const getForkedProcessOsSocketPath = (id) => {
     let path = (0, path_1.resolve)((0, path_1.join)((0, tmp_dir_1.getSocketDir)(), 'fp' + id + '.sock'));
-    return exports.isWindows ? '\\\\.\\pipe\\nx\\' + (0, path_1.resolve)(path) : (0, path_1.resolve)(path);
+    assertValidSocketPath(path);
+    return exports.isWindows ? '\\\\.\\pipe\\nx\\' + path : path;
 };
 exports.getForkedProcessOsSocketPath = getForkedProcessOsSocketPath;
 const getPluginOsSocketPath = (id) => {
-    let path = (0, path_1.resolve)((0, path_1.join)((0, tmp_dir_1.getSocketDir)(), 'plugin' + id + '.sock'));
-    return exports.isWindows ? '\\\\.\\pipe\\nx\\' + (0, path_1.resolve)(path) : (0, path_1.resolve)(path);
+    let path = (0, path_1.resolve)((0, path_1.join)((0, tmp_dir_1.getSocketDir)(true), 'plugin' + id + '.sock'));
+    assertValidSocketPath(path);
+    return exports.isWindows ? '\\\\.\\pipe\\nx\\' + path : path;
 };
 exports.getPluginOsSocketPath = getPluginOsSocketPath;
+function assertValidSocketPath(path) {
+    if (path.length > 95) {
+        throw new Error([
+            'Attempted to open socket that exceeds the maximum socket length.',
+            '',
+            `Set NX_SOCKET_DIR to a shorter path (e.g. ${exports.isWindows ? '%TMP%/nx-tmp' : '/tmp/nx-tmp'}) to avoid this issue.`,
+        ].join('\n'));
+    }
+}
 function killSocketOrPath() {
     try {
         (0, fs_1.unlinkSync)((0, exports.getFullOsSocketPath)());
@@ -284813,9 +297639,11 @@ function socketDirName() {
  * We try to create a socket file in a tmp dir, but if it doesn't work because
  * for instance we don't have permissions, we create it in DAEMON_DIR_FOR_CURRENT_WORKSPACE
  */
-function getSocketDir() {
+function getSocketDir(alreadyUnique = false) {
     try {
-        const dir = process.env.NX_DAEMON_SOCKET_DIR ?? socketDirName();
+        const dir = process.env.NX_SOCKET_DIR ??
+            process.env.NX_DAEMON_SOCKET_DIR ??
+            (alreadyUnique ? tmp_1.tmpdir : socketDirName());
         (0, fs_extra_1.ensureDirSync)(dir);
         return dir;
     }
@@ -284839,7 +297667,7 @@ function removeSocketDir() {
 "use strict";
 
 Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.interpolate = exports.registerTsProject = exports.LoadedNxPlugin = exports.retrieveProjectConfigurations = exports.findProjectForPath = exports.createProjectRootMappingsFromProjectConfigurations = exports.hashWithWorkspaceContext = exports.hashObject = exports.splitByColons = exports.readModulePackageJson = exports.stripIndent = exports.sortObjectByKeys = exports.combineOptionsForExecutor = exports.splitTarget = exports.readProjectConfigurationsFromRootMap = exports.mergeTargetConfigurations = exports.retrieveProjectConfigurationsWithAngularProjects = exports.calculateDefaultProjectName = exports.readNxJsonFromDisk = exports.getExecutorInformation = exports.createTempNpmDirectory = void 0;
+exports.interpolate = exports.registerTsProject = exports.LoadedNxPlugin = exports.retrieveProjectConfigurations = exports.findProjectForPath = exports.createProjectRootMappingsFromProjectConfigurations = exports.hashWithWorkspaceContext = exports.hashObject = exports.splitByColons = exports.readModulePackageJson = exports.stripIndent = exports.sortObjectByKeys = exports.combineOptionsForExecutor = exports.splitTarget = exports.findMatchingConfigFiles = exports.readProjectConfigurationsFromRootMap = exports.mergeTargetConfigurations = exports.retrieveProjectConfigurationsWithAngularProjects = exports.calculateDefaultProjectName = exports.readNxJsonFromDisk = exports.getExecutorInformation = exports.createTempNpmDirectory = void 0;
 const tslib_1 = __nccwpck_require__(63085);
 /**
  * Note to developers: STOP! These exports are available via requireNx in @nx/devkit.
@@ -284860,6 +297688,7 @@ var project_configuration_utils_1 = __nccwpck_require__(36818);
 Object.defineProperty(exports, "mergeTargetConfigurations", ({ enumerable: true, get: function () { return project_configuration_utils_1.mergeTargetConfigurations; } }));
 var project_configuration_utils_2 = __nccwpck_require__(36818);
 Object.defineProperty(exports, "readProjectConfigurationsFromRootMap", ({ enumerable: true, get: function () { return project_configuration_utils_2.readProjectConfigurationsFromRootMap; } }));
+Object.defineProperty(exports, "findMatchingConfigFiles", ({ enumerable: true, get: function () { return project_configuration_utils_2.findMatchingConfigFiles; } }));
 var split_target_1 = __nccwpck_require__(2792);
 Object.defineProperty(exports, "splitTarget", ({ enumerable: true, get: function () { return split_target_1.splitTarget; } }));
 var params_1 = __nccwpck_require__(55457);
@@ -284890,6 +297719,731 @@ var utils_1 = __nccwpck_require__(9478);
 Object.defineProperty(exports, "interpolate", ({ enumerable: true, get: function () { return utils_1.interpolate; } }));
 
 
+/***/ }),
+
+/***/ 10818:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.FsTree = void 0;
+exports.flushChanges = flushChanges;
+exports.printChanges = printChanges;
+const fs_extra_1 = __nccwpck_require__(2103);
+const logger_1 = __nccwpck_require__(37270);
+const output_1 = __nccwpck_require__(21862);
+const path_1 = __nccwpck_require__(71017);
+const chalk = __nccwpck_require__(78818);
+class FsTree {
+    constructor(root, isVerbose, logOperationId) {
+        this.root = root;
+        this.isVerbose = isVerbose;
+        this.logOperationId = logOperationId;
+        this.recordedChanges = {};
+        /**
+         * Signifies if operations on the tree instance
+         * are allowed. Set to false after changes are written
+         * to disk, to prevent someone trying to use the tree to update
+         * files when the tree is no longer effective.
+         */
+        this.locked = false;
+    }
+    read(filePath, encoding) {
+        filePath = this.normalize(filePath);
+        try {
+            let content;
+            if (this.recordedChanges[this.rp(filePath)]) {
+                content = this.recordedChanges[this.rp(filePath)].content;
+            }
+            else {
+                content = this.fsReadFile(filePath);
+            }
+            return encoding ? content.toString(encoding) : content;
+        }
+        catch (e) {
+            if (this.isVerbose) {
+                logger_1.logger.error(e);
+            }
+            return null;
+        }
+    }
+    write(filePath, content, options) {
+        this.assertUnlocked();
+        filePath = this.normalize(filePath);
+        // Remove any recorded changes where a parent directory has been
+        // deleted when writing a new file within the directory.
+        let parent = (0, path_1.dirname)(this.rp(filePath));
+        while (parent !== '.') {
+            if (this.recordedChanges[parent]?.isDeleted) {
+                delete this.recordedChanges[parent];
+            }
+            parent = (0, path_1.dirname)(parent);
+        }
+        if (this.fsExists(this.rp(filePath)) &&
+            Buffer.from(content).equals(this.fsReadFile(filePath))) {
+            // Remove recorded change because the file has been restored to it's original contents
+            delete this.recordedChanges[this.rp(filePath)];
+            return;
+        }
+        try {
+            this.recordedChanges[this.rp(filePath)] = {
+                content: Buffer.from(content),
+                isDeleted: false,
+                options,
+            };
+        }
+        catch (e) {
+            if (this.isVerbose) {
+                logger_1.logger.error(e);
+            }
+        }
+    }
+    overwrite(filePath, content, options) {
+        filePath = this.normalize(filePath);
+        this.write(filePath, content, options);
+    }
+    delete(filePath) {
+        this.assertUnlocked();
+        filePath = this.normalize(filePath);
+        if (this.filesForDir(this.rp(filePath)).length > 0) {
+            this.filesForDir(this.rp(filePath)).forEach((f) => (this.recordedChanges[f] = { content: null, isDeleted: true }));
+        }
+        this.recordedChanges[this.rp(filePath)] = {
+            content: null,
+            isDeleted: true,
+        };
+        // Delete directory when is not root and there are no children
+        if (filePath !== '' &&
+            this.children((0, path_1.dirname)(this.rp(filePath))).length < 1) {
+            this.delete((0, path_1.dirname)(this.rp(filePath)));
+        }
+    }
+    exists(filePath) {
+        filePath = this.normalize(filePath);
+        try {
+            if (this.recordedChanges[this.rp(filePath)]) {
+                return !this.recordedChanges[this.rp(filePath)].isDeleted;
+            }
+            else if (this.filesForDir(this.rp(filePath)).length > 0) {
+                return true;
+            }
+            else {
+                return this.fsExists(filePath);
+            }
+        }
+        catch {
+            return false;
+        }
+    }
+    rename(from, to) {
+        this.assertUnlocked();
+        from = this.normalize(from);
+        to = this.normalize(to);
+        if (from === to) {
+            return;
+        }
+        if (this.isFile(from)) {
+            const content = this.read(this.rp(from));
+            this.write(this.rp(to), content);
+            this.delete(this.rp(from));
+        }
+        else {
+            for (const child of this.children(from)) {
+                this.rename((0, path_1.join)(from, child), (0, path_1.join)(to, child));
+            }
+        }
+    }
+    isFile(filePath) {
+        filePath = this.normalize(filePath);
+        try {
+            if (this.recordedChanges[this.rp(filePath)]) {
+                return !this.recordedChanges[this.rp(filePath)].isDeleted;
+            }
+            else {
+                return this.fsIsFile(filePath);
+            }
+        }
+        catch {
+            return false;
+        }
+    }
+    children(dirPath) {
+        dirPath = this.normalize(dirPath);
+        let res = this.fsReadDir(dirPath);
+        res = [...res, ...this.directChildrenOfDir(this.rp(dirPath))];
+        res = res.filter((q) => {
+            const r = this.recordedChanges[this.normalize((0, path_1.join)(this.rp(dirPath), q))];
+            return !r?.isDeleted;
+        });
+        // Dedupe
+        return Array.from(new Set(res));
+    }
+    listChanges() {
+        const res = [];
+        Object.keys(this.recordedChanges).forEach((f) => {
+            if (this.recordedChanges[f].isDeleted) {
+                if (this.fsExists(f)) {
+                    res.push({ path: f, type: 'DELETE', content: null });
+                }
+            }
+            else {
+                if (this.fsExists(f)) {
+                    res.push({
+                        path: f,
+                        type: 'UPDATE',
+                        content: this.recordedChanges[f].content,
+                        options: this.recordedChanges[f].options,
+                    });
+                }
+                else {
+                    res.push({
+                        path: f,
+                        type: 'CREATE',
+                        content: this.recordedChanges[f].content,
+                        options: this.recordedChanges[f].options,
+                    });
+                }
+            }
+        });
+        return res;
+    }
+    changePermissions(filePath, mode) {
+        this.assertUnlocked();
+        filePath = this.normalize(filePath);
+        const filePathChangeKey = this.rp(filePath);
+        if (this.recordedChanges[filePathChangeKey]) {
+            if (this.recordedChanges[filePathChangeKey].isDeleted) {
+                throw new Error(`Cannot change permissions of deleted file ${filePath}.`);
+            }
+            this.recordedChanges[filePathChangeKey].options = { mode };
+        }
+        else if (!this.fsExists(filePath)) {
+            throw new Error(`Cannot change permissions of non-existing file ${filePath}.`);
+        }
+        else if (!this.fsIsFile(filePath)) {
+            // To fully support directories we'd need to change how we store
+            // changes to keep a record of directories so we can associate
+            // permissions to them.
+            throw new Error(`Cannot change permissions of non-file ${filePath}.`);
+        }
+        else {
+            this.recordedChanges[filePathChangeKey] = {
+                content: this.fsReadFile(filePath),
+                isDeleted: false,
+                options: { mode },
+            };
+        }
+    }
+    // Marks FsTree as final.
+    lock() {
+        this.locked = true;
+    }
+    assertUnlocked() {
+        if (this.locked) {
+            output_1.output.error({
+                title: `File changes have already been written to disk. Further changes were attempted ${this.logOperationId ? ` while running ${this.logOperationId}.` : '.'}`,
+                bodyLines: [
+                    'The file system can no longer be modified. This commonly happens when a generator attempts to make further changes in its callback, or an asynchronous operation is still running after the generator completes.',
+                ],
+            });
+            throw new Error('Tree changed after commit to disk.');
+        }
+    }
+    normalize(path) {
+        return (0, path_1.relative)(this.root, (0, path_1.join)(this.root, path)).split(path_1.sep).join('/');
+    }
+    fsReadDir(dirPath) {
+        try {
+            return (0, fs_extra_1.readdirSync)((0, path_1.join)(this.root, dirPath));
+        }
+        catch {
+            return [];
+        }
+    }
+    fsIsFile(filePath) {
+        const stat = (0, fs_extra_1.statSync)((0, path_1.join)(this.root, filePath));
+        return stat.isFile();
+    }
+    fsReadFile(filePath) {
+        return (0, fs_extra_1.readFileSync)((0, path_1.join)(this.root, filePath));
+    }
+    fsExists(filePath) {
+        try {
+            const stat = (0, fs_extra_1.statSync)((0, path_1.join)(this.root, filePath));
+            return stat.isFile() || stat.isDirectory();
+        }
+        catch {
+            return false;
+        }
+    }
+    filesForDir(path) {
+        return Object.keys(this.recordedChanges).filter((f) => f.startsWith(`${path}/`) && !this.recordedChanges[f].isDeleted);
+    }
+    directChildrenOfDir(path) {
+        const res = {};
+        if (path === '') {
+            return Object.keys(this.recordedChanges).map((file) => file.split('/')[0]);
+        }
+        Object.keys(this.recordedChanges).forEach((f) => {
+            if (f.startsWith(`${path}/`)) {
+                // Remove the current folder's path from the directory
+                const file = f.substring(path.length + 1);
+                // Split the path on segments, and take the first one
+                const basePath = file.split('/')[0];
+                // Mark it as a child of the current directory
+                res[basePath] = true;
+            }
+        });
+        return Object.keys(res);
+    }
+    rp(pp) {
+        return pp.startsWith('/') ? pp.substring(1) : pp;
+    }
+}
+exports.FsTree = FsTree;
+function flushChanges(root, fileChanges) {
+    fileChanges.forEach((f) => {
+        const fpath = (0, path_1.join)(root, f.path);
+        if (f.type === 'CREATE') {
+            (0, fs_extra_1.ensureDirSync)((0, path_1.dirname)(fpath));
+            (0, fs_extra_1.writeFileSync)(fpath, f.content);
+            if (f.options?.mode)
+                (0, fs_extra_1.chmodSync)(fpath, f.options.mode);
+        }
+        else if (f.type === 'UPDATE') {
+            (0, fs_extra_1.writeFileSync)(fpath, f.content);
+            if (f.options?.mode)
+                (0, fs_extra_1.chmodSync)(fpath, f.options.mode);
+        }
+        else if (f.type === 'DELETE') {
+            (0, fs_extra_1.removeSync)(fpath);
+        }
+    });
+}
+function printChanges(fileChanges, indent = '') {
+    fileChanges.forEach((f) => {
+        if (f.type === 'CREATE') {
+            console.log(`${indent}${chalk.green('CREATE')} ${f.path}`);
+        }
+        else if (f.type === 'UPDATE') {
+            console.log(`${indent}${chalk.white('UPDATE')} ${f.path}`);
+        }
+        else if (f.type === 'DELETE') {
+            console.log(`${indent}${chalk.yellow('DELETE')} ${f.path}`);
+        }
+    });
+}
+
+
+/***/ }),
+
+/***/ 62629:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.readJson = readJson;
+exports.writeJson = writeJson;
+exports.updateJson = updateJson;
+const json_1 = __nccwpck_require__(54324);
+/**
+ * Reads a json file, removes all comments and parses JSON.
+ *
+ * @param tree - file system tree
+ * @param path - file path
+ * @param options - Optional JSON Parse Options
+ */
+function readJson(tree, path, options) {
+    if (!tree.exists(path)) {
+        throw new Error(`Cannot find ${path}`);
+    }
+    try {
+        return (0, json_1.parseJson)(tree.read(path, 'utf-8'), options);
+    }
+    catch (e) {
+        throw new Error(`Cannot parse ${path}: ${e.message}`);
+    }
+}
+/**
+ * Writes a JSON value to the file system tree
+
+ * @param tree File system tree
+ * @param path Path of JSON file in the Tree
+ * @param value Serializable value to write
+ * @param options Optional JSON Serialize Options
+ */
+function writeJson(tree, path, value, options) {
+    const serialized = (0, json_1.serializeJson)(value, options);
+    tree.write(path, `${serialized}\n`);
+}
+/**
+ * Updates a JSON value to the file system tree
+ *
+ * @param tree File system tree
+ * @param path Path of JSON file in the Tree
+ * @param updater Function that maps the current value of a JSON document to a new value to be written to the document
+ * @param options Optional JSON Parse and Serialize Options
+ */
+function updateJson(tree, path, updater, options) {
+    const updatedValue = updater(readJson(tree, path, options));
+    writeJson(tree, path, updatedValue, options);
+}
+
+
+/***/ }),
+
+/***/ 34935:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.readNxJson = readNxJson;
+exports.updateNxJson = updateNxJson;
+const path_1 = __nccwpck_require__(71017);
+const json_1 = __nccwpck_require__(62629);
+const nx_json_1 = __nccwpck_require__(21173);
+/**
+ * Reads nx.json
+ */
+function readNxJson(tree) {
+    if (tree) {
+        if (!tree.exists('nx.json')) {
+            return null;
+        }
+        let nxJson = (0, json_1.readJson)(tree, 'nx.json');
+        if (nxJson.extends) {
+            nxJson = { ...readNxJsonExtends(tree, nxJson.extends), ...nxJson };
+        }
+        return nxJson;
+    }
+    else {
+        return (0, nx_json_1.readNxJson)();
+    }
+}
+/**
+ * Update nx.json
+ */
+function updateNxJson(tree, nxJson) {
+    if (tree.exists('nx.json')) {
+        (0, json_1.updateJson)(tree, 'nx.json', (json) => {
+            if (json.extends) {
+                const nxJsonExtends = readNxJsonExtends(tree, json.extends);
+                const changedPropsOfNxJson = {};
+                Object.keys(nxJson).forEach((prop) => {
+                    if (JSON.stringify(nxJson[prop], null, 2) !=
+                        JSON.stringify(nxJsonExtends[prop], null, 2)) {
+                        changedPropsOfNxJson[prop] = nxJson[prop];
+                    }
+                });
+                return changedPropsOfNxJson;
+            }
+            else {
+                return nxJson;
+            }
+        });
+    }
+}
+function readNxJsonExtends(tree, extendsPath) {
+    try {
+        return (0, json_1.readJson)(tree, (0, path_1.relative)(tree.root, require.resolve(extendsPath, {
+            paths: [tree.root],
+        })));
+    }
+    catch (e) {
+        throw new Error(`Unable to resolve nx.json extends. Error: ${e.message}`);
+    }
+}
+
+
+/***/ }),
+
+/***/ 24642:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.updateNxJson = exports.readNxJson = void 0;
+exports.addProjectConfiguration = addProjectConfiguration;
+exports.updateProjectConfiguration = updateProjectConfiguration;
+exports.removeProjectConfiguration = removeProjectConfiguration;
+exports.readProjectConfiguration = readProjectConfiguration;
+exports.getProjects = getProjects;
+exports.getRelativeProjectJsonSchemaPath = getRelativeProjectJsonSchemaPath;
+const minimatch_1 = __nccwpck_require__(62362);
+const path_1 = __nccwpck_require__(71017);
+const package_json_1 = __nccwpck_require__(60772);
+const project_json_1 = __nccwpck_require__(63239);
+const angular_json_1 = __nccwpck_require__(45205);
+const project_configuration_utils_1 = __nccwpck_require__(36818);
+const workspace_context_1 = __nccwpck_require__(98897);
+const output_1 = __nccwpck_require__(21862);
+const path_2 = __nccwpck_require__(41559);
+const json_1 = __nccwpck_require__(62629);
+const to_project_name_1 = __nccwpck_require__(10750);
+var nx_json_1 = __nccwpck_require__(34935);
+Object.defineProperty(exports, "readNxJson", ({ enumerable: true, get: function () { return nx_json_1.readNxJson; } }));
+Object.defineProperty(exports, "updateNxJson", ({ enumerable: true, get: function () { return nx_json_1.updateNxJson; } }));
+/**
+ * Adds project configuration to the Nx workspace.
+ *
+ * @param tree - the file system tree
+ * @param projectName - unique name. Often directories are part of the name (e.g., mydir-mylib)
+ * @param projectConfiguration - project configuration
+ * @param standalone - whether the project is configured in workspace.json or not
+ */
+function addProjectConfiguration(tree, projectName, projectConfiguration, standalone = true) {
+    const projectConfigFile = (0, path_2.joinPathFragments)(projectConfiguration.root, 'project.json');
+    if (!standalone) {
+        output_1.output.warn({
+            title: 'Nx only supports standalone projects. Setting standalone to false is ignored.',
+        });
+    }
+    if (tree.exists(projectConfigFile)) {
+        throw new Error(`Cannot create a new project ${projectName} at ${projectConfiguration.root}. A project already exists in this directory.`);
+    }
+    delete projectConfiguration.$schema;
+    handleEmptyTargets(projectName, projectConfiguration);
+    (0, json_1.writeJson)(tree, projectConfigFile, {
+        name: projectName,
+        $schema: getRelativeProjectJsonSchemaPath(tree, projectConfiguration),
+        ...projectConfiguration,
+        root: undefined,
+    });
+}
+/**
+ * Updates the configuration of an existing project.
+ *
+ * @param tree - the file system tree
+ * @param projectName - unique name. Often directories are part of the name (e.g., mydir-mylib)
+ * @param projectConfiguration - project configuration
+ */
+function updateProjectConfiguration(tree, projectName, projectConfiguration) {
+    if (tree.exists((0, path_2.joinPathFragments)(projectConfiguration.root, 'project.json'))) {
+        updateProjectConfigurationInProjectJson(tree, projectName, projectConfiguration);
+    }
+    else if (tree.exists((0, path_2.joinPathFragments)(projectConfiguration.root, 'package.json'))) {
+        updateProjectConfigurationInPackageJson(tree, projectName, projectConfiguration);
+    }
+    else {
+        throw new Error(`Cannot update Project ${projectName} at ${projectConfiguration.root}. It either doesn't exist yet, or may not use project.json for configuration. Use \`addProjectConfiguration()\` instead if you want to create a new project.`);
+    }
+}
+function updateProjectConfigurationInPackageJson(tree, projectName, projectConfiguration) {
+    const packageJsonFile = (0, path_2.joinPathFragments)(projectConfiguration.root, 'package.json');
+    const packageJson = (0, json_1.readJson)(tree, packageJsonFile);
+    if (packageJson.name === projectConfiguration.name ?? projectName) {
+        delete projectConfiguration.name;
+    }
+    if (projectConfiguration.targets &&
+        !Object.keys(projectConfiguration.targets).length) {
+        delete projectConfiguration.targets;
+    }
+    packageJson.nx = {
+        ...packageJson.nx,
+        ...projectConfiguration,
+        root: undefined,
+    };
+    (0, json_1.writeJson)(tree, packageJsonFile, packageJson);
+}
+function updateProjectConfigurationInProjectJson(tree, projectName, projectConfiguration) {
+    const projectConfigFile = (0, path_2.joinPathFragments)(projectConfiguration.root, 'project.json');
+    handleEmptyTargets(projectName, projectConfiguration);
+    (0, json_1.writeJson)(tree, projectConfigFile, {
+        name: projectConfiguration.name ?? projectName,
+        $schema: getRelativeProjectJsonSchemaPath(tree, projectConfiguration),
+        ...projectConfiguration,
+        root: undefined,
+    });
+}
+/**
+ * Removes the configuration of an existing project.
+ *
+ * @param tree - the file system tree
+ * @param projectName - unique name. Often directories are part of the name (e.g., mydir-mylib)
+ */
+function removeProjectConfiguration(tree, projectName) {
+    const projectConfiguration = readProjectConfiguration(tree, projectName);
+    if (!projectConfiguration) {
+        throw new Error(`Cannot delete Project ${projectName}`);
+    }
+    const projectConfigFile = (0, path_2.joinPathFragments)(projectConfiguration.root, 'project.json');
+    if (tree.exists(projectConfigFile)) {
+        tree.delete(projectConfigFile);
+    }
+}
+/**
+ * Reads a project configuration.
+ *
+ * @param tree - the file system tree
+ * @param projectName - unique name. Often directories are part of the name (e.g., mydir-mylib)
+ * @throws If supplied projectName cannot be found
+ */
+function readProjectConfiguration(tree, projectName) {
+    const allProjects = readAndCombineAllProjectConfigurations(tree);
+    if (!allProjects[projectName]) {
+        // temporary polyfill to make sure our generators work for existing angularcli workspaces
+        if (tree.exists('angular.json')) {
+            const angularJson = toNewFormat((0, json_1.readJson)(tree, 'angular.json'));
+            if (angularJson.projects[projectName])
+                return angularJson.projects[projectName];
+        }
+        throw new Error(`Cannot find configuration for '${projectName}'`);
+    }
+    return allProjects[projectName];
+}
+/**
+ * Get a map of all projects in a workspace.
+ *
+ * Use {@link readProjectConfiguration} if only one project is needed.
+ */
+function getProjects(tree) {
+    let allProjects = readAndCombineAllProjectConfigurations(tree);
+    // temporary polyfill to make sure our generators work for existing angularcli workspaces
+    if (tree.exists('angular.json')) {
+        const angularJson = toNewFormat((0, json_1.readJson)(tree, 'angular.json'));
+        allProjects = { ...allProjects, ...angularJson.projects };
+    }
+    return new Map(Object.keys(allProjects || {}).map((projectName) => {
+        return [projectName, allProjects[projectName]];
+    }));
+}
+function getRelativeProjectJsonSchemaPath(tree, project) {
+    return (0, path_2.normalizePath)((0, path_1.relative)((0, path_1.join)(tree.root, project.root), (0, path_1.join)(tree.root, 'node_modules/nx/schemas/project-schema.json')));
+}
+function readAndCombineAllProjectConfigurations(tree) {
+    /**
+     * We can't update projects that come from plugins anyways, so we are going
+     * to ignore them for now. Plugins should add their own add/create/update methods
+     * if they would like to use devkit to update inferred projects.
+     */
+    const patterns = [
+        '**/project.json',
+        'project.json',
+        ...(0, package_json_1.getGlobPatternsFromPackageManagerWorkspaces)(tree.root, (p) => (0, json_1.readJson)(tree, p, { expectComments: true })),
+    ];
+    const globbedFiles = (0, workspace_context_1.globWithWorkspaceContextSync)(tree.root, patterns);
+    const createdFiles = findCreatedProjectFiles(tree, patterns);
+    const deletedFiles = findDeletedProjectFiles(tree, patterns);
+    const projectFiles = [...globbedFiles, ...createdFiles].filter((r) => deletedFiles.indexOf(r) === -1);
+    const rootMap = {};
+    for (const projectFile of projectFiles) {
+        if ((0, path_1.basename)(projectFile) === 'project.json') {
+            const json = (0, json_1.readJson)(tree, projectFile);
+            const config = (0, project_json_1.buildProjectFromProjectJson)(json, projectFile);
+            (0, project_configuration_utils_1.mergeProjectConfigurationIntoRootMap)(rootMap, config, undefined, undefined, true);
+        }
+        else if ((0, path_1.basename)(projectFile) === 'package.json') {
+            const packageJson = (0, json_1.readJson)(tree, projectFile);
+            // We don't want to have all of the extra inferred stuff in here, as
+            // when generators update the project they shouldn't inline that stuff.
+            // so rather than using `buildProjectFromPackageJson` and stripping it out
+            // we are going to build the config manually.
+            const config = {
+                root: (0, path_1.dirname)(projectFile),
+                name: packageJson.name ?? (0, to_project_name_1.toProjectName)(projectFile),
+                ...packageJson.nx,
+            };
+            if (!rootMap[config.root]) {
+                (0, project_configuration_utils_1.mergeProjectConfigurationIntoRootMap)(rootMap, 
+                // Inferred targets, tags, etc don't show up when running generators
+                // This is to help avoid running into issues when trying to update the workspace
+                config, undefined, undefined, true);
+            }
+        }
+    }
+    return (0, project_configuration_utils_1.readProjectConfigurationsFromRootMap)(rootMap);
+}
+/**
+ * Used to ensure that projects created during
+ * the same devkit generator run show up when
+ * there is no project.json file, as `glob`
+ * cannot find them.
+ *
+ * We exclude the root `package.json` from this list unless
+ * considered a project during workspace generation
+ */
+function findCreatedProjectFiles(tree, globPatterns) {
+    const createdProjectFiles = [];
+    for (const change of tree.listChanges()) {
+        if (change.type === 'CREATE') {
+            const fileName = (0, path_1.basename)(change.path);
+            if (globPatterns.some((pattern) => (0, minimatch_1.minimatch)(change.path, pattern, { dot: true }))) {
+                createdProjectFiles.push(change.path);
+            }
+            else if (fileName === 'package.json') {
+                try {
+                    const contents = JSON.parse(change.content.toString());
+                    if (contents.nx) {
+                        createdProjectFiles.push(change.path);
+                    }
+                }
+                catch { }
+            }
+        }
+    }
+    return createdProjectFiles.map(path_2.normalizePath);
+}
+/**
+ * Used to ensure that projects created during
+ * the same devkit generator run show up when
+ * there is no project.json file, as `glob`
+ * cannot find them.
+ */
+function findDeletedProjectFiles(tree, globPatterns) {
+    return tree
+        .listChanges()
+        .filter((f) => {
+        return (f.type === 'DELETE' &&
+            globPatterns.some((pattern) => (0, minimatch_1.minimatch)(f.path, pattern)));
+    })
+        .map((r) => r.path);
+}
+function toNewFormat(w) {
+    const projects = {};
+    Object.keys(w.projects || {}).forEach((name) => {
+        if (typeof w.projects[name] === 'string')
+            return;
+        const projectConfig = w.projects[name];
+        if (projectConfig.architect) {
+            (0, angular_json_1.renamePropertyWithStableKeys)(projectConfig, 'architect', 'targets');
+        }
+        if (projectConfig.schematics) {
+            (0, angular_json_1.renamePropertyWithStableKeys)(projectConfig, 'schematics', 'generators');
+        }
+        Object.values(projectConfig.targets || {}).forEach((target) => {
+            if (target.builder !== undefined) {
+                (0, angular_json_1.renamePropertyWithStableKeys)(target, 'builder', 'executor');
+            }
+        });
+        projects[name] = projectConfig;
+    });
+    w.projects = projects;
+    if (w.schematics) {
+        (0, angular_json_1.renamePropertyWithStableKeys)(w, 'schematics', 'generators');
+    }
+    if (w.version !== 2) {
+        w.version = 2;
+    }
+    return w;
+}
+function handleEmptyTargets(projectName, projectConfiguration) {
+    if (projectConfiguration.targets &&
+        !Object.keys(projectConfiguration.targets).length) {
+        // Re-order `targets` to appear after the `// target` comment.
+        delete projectConfiguration.targets;
+        projectConfiguration['// targets'] = `to see all targets run: nx show project ${projectName} --web`;
+        projectConfiguration.targets = {};
+    }
+    else {
+        delete projectConfiguration['// targets'];
+    }
+}
+
+
 /***/ }),
 
 /***/ 19482:
@@ -284916,6 +298470,764 @@ function hashObject(obj) {
 }
 
 
+/***/ }),
+
+/***/ 24765:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.NativeTaskHasherImpl = void 0;
+const native_1 = __nccwpck_require__(71926);
+const transform_objects_1 = __nccwpck_require__(25188);
+const fileutils_1 = __nccwpck_require__(40910);
+const typescript_1 = __nccwpck_require__(32602);
+class NativeTaskHasherImpl {
+    constructor(workspaceRoot, nxJson, projectGraph, externals, options) {
+        this.projectGraphRef = (0, native_1.transferProjectGraph)((0, transform_objects_1.transformProjectGraphForRust)(projectGraph));
+        this.allWorkspaceFilesRef = externals.allWorkspaceFiles;
+        this.projectFileMapRef = externals.projectFiles;
+        let tsconfig = {};
+        let paths = {};
+        let rootTsConfigPath = (0, typescript_1.getRootTsConfigPath)();
+        if (rootTsConfigPath) {
+            tsconfig = (0, fileutils_1.readJsonFile)((0, typescript_1.getRootTsConfigPath)());
+            paths = tsconfig.compilerOptions?.paths ?? {};
+            if (tsconfig.compilerOptions?.paths) {
+                delete tsconfig.compilerOptions.paths;
+            }
+        }
+        this.planner = new native_1.HashPlanner(nxJson, this.projectGraphRef);
+        this.hasher = new native_1.TaskHasher(workspaceRoot, this.projectGraphRef, this.projectFileMapRef, this.allWorkspaceFilesRef, Buffer.from(JSON.stringify(tsconfig)), paths, options);
+    }
+    async hashTask(task, taskGraph, env) {
+        const plans = this.planner.getPlansReference([task.id], taskGraph);
+        const hashes = this.hasher.hashPlans(plans, env);
+        return hashes[task.id];
+    }
+    async hashTasks(tasks, taskGraph, env) {
+        const plans = this.planner.getPlansReference(tasks.map((t) => t.id), taskGraph);
+        const hashes = this.hasher.hashPlans(plans, env);
+        return tasks.map((t) => hashes[t.id]);
+    }
+}
+exports.NativeTaskHasherImpl = NativeTaskHasherImpl;
+
+
+/***/ }),
+
+/***/ 74799:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.NodeTaskHasherImpl = void 0;
+const find_project_for_path_1 = __nccwpck_require__(69621);
+const file_hasher_1 = __nccwpck_require__(19482);
+const utils_1 = __nccwpck_require__(9478);
+const workspace_root_1 = __nccwpck_require__(64393);
+const minimatch_1 = __nccwpck_require__(62362);
+const path_1 = __nccwpck_require__(71017);
+const native_1 = __nccwpck_require__(71926);
+const project_graph_utils_1 = __nccwpck_require__(84463);
+const find_matching_projects_1 = __nccwpck_require__(50630);
+const child_process_1 = __nccwpck_require__(32081);
+const task_hasher_1 = __nccwpck_require__(99816);
+const hasher_1 = __nccwpck_require__(46235);
+class NodeTaskHasherImpl {
+    constructor(nxJson, legacyRuntimeInputs, legacyFilesetInputs, projectFileMap, allWorkspaceFiles, projectGraph, options) {
+        this.nxJson = nxJson;
+        this.legacyRuntimeInputs = legacyRuntimeInputs;
+        this.legacyFilesetInputs = legacyFilesetInputs;
+        this.projectFileMap = projectFileMap;
+        this.allWorkspaceFiles = allWorkspaceFiles;
+        this.projectGraph = projectGraph;
+        this.options = options;
+        this.filesetHashes = {};
+        this.runtimeHashes = {};
+        this.externalDependencyHashes = new Map();
+        this.projectRootMappings = (0, find_project_for_path_1.createProjectRootMappings)(this.projectGraph.nodes);
+        // External Dependencies are all calculated up front in a deterministic order
+        this.calculateExternalDependencyHashes();
+    }
+    hashTasks(tasks, taskGraph, env) {
+        return Promise.all(tasks.map((t) => this.hashTask(t, taskGraph, env, [])));
+    }
+    async hashTask(task, taskGraph, env, visited = []) {
+        return Promise.resolve().then(async () => {
+            const { selfInputs, depsInputs, depsOutputs, projectInputs } = (0, task_hasher_1.getInputs)(task, this.projectGraph, this.nxJson);
+            const selfAndInputs = await this.hashSelfAndDepsInputs(task.target.project, task, selfInputs, depsInputs, depsOutputs, projectInputs, taskGraph, env, visited);
+            const target = this.hashTarget(task.target.project, task.target.target, selfInputs);
+            if (target) {
+                return this.combinePartialHashes([selfAndInputs, target]);
+            }
+            return selfAndInputs;
+        });
+    }
+    async hashNamedInputForDependencies(projectName, task, namedInput, taskGraph, env, visited) {
+        const projectNode = this.projectGraph.nodes[projectName];
+        const namedInputs = {
+            default: [{ fileset: '{projectRoot}/**/*' }],
+            ...this.nxJson.namedInputs,
+            ...projectNode.data.namedInputs,
+        };
+        const expandedInputs = (0, task_hasher_1.expandNamedInput)(namedInput, namedInputs);
+        const selfInputs = expandedInputs.filter(task_hasher_1.isSelfInput);
+        const depsOutputs = expandedInputs.filter(task_hasher_1.isDepsOutput);
+        const depsInputs = [{ input: namedInput, dependencies: true }]; // true is boolean by default
+        return this.hashSelfAndDepsInputs(projectName, task, selfInputs, depsInputs, depsOutputs, [], taskGraph, env, visited);
+    }
+    async hashSelfAndDepsInputs(projectName, task, selfInputs, depsInputs, depsOutputs, projectInputs, taskGraph, env, visited) {
+        const projectGraphDeps = this.projectGraph.dependencies[projectName] ?? [];
+        // we don't want random order of dependencies to change the hash
+        projectGraphDeps.sort((a, b) => a.target.localeCompare(b.target));
+        const self = await this.hashSingleProjectInputs(projectName, selfInputs, env);
+        const deps = await this.hashDepsInputs(task, depsInputs, projectGraphDeps, taskGraph, env, visited);
+        const depsOut = await this.hashDepsOutputs(task, depsOutputs, taskGraph);
+        const projects = await this.hashProjectInputs(projectInputs, env);
+        return this.combinePartialHashes([
+            ...self,
+            ...deps,
+            ...projects,
+            ...depsOut,
+        ]);
+    }
+    combinePartialHashes(partialHashes) {
+        if (partialHashes.length === 1) {
+            return partialHashes[0];
+        }
+        const details = {};
+        const hashValues = [];
+        for (const partial of partialHashes) {
+            hashValues.push(partial.value);
+            Object.assign(details, partial.details);
+        }
+        const value = (0, file_hasher_1.hashArray)(hashValues);
+        return { value, details };
+    }
+    async hashDepsInputs(task, inputs, projectGraphDeps, taskGraph, env, visited) {
+        return (await Promise.all(inputs.map(async (input) => {
+            return await Promise.all(projectGraphDeps.map(async (d) => {
+                if (visited.indexOf(d.target) > -1) {
+                    return null;
+                }
+                else {
+                    visited.push(d.target);
+                    if (this.projectGraph.nodes[d.target]) {
+                        return await this.hashNamedInputForDependencies(d.target, task, input.input || 'default', taskGraph, env, visited);
+                    }
+                    else {
+                        return this.getExternalDependencyHash(d.target);
+                    }
+                }
+            }));
+        })))
+            .flat()
+            .filter((r) => !!r);
+    }
+    async hashDepsOutputs(task, depsOutputs, taskGraph) {
+        if (depsOutputs.length === 0) {
+            return [];
+        }
+        const result = [];
+        for (const { dependentTasksOutputFiles, transitive } of depsOutputs) {
+            result.push(...(await this.hashDepOuputs(task, dependentTasksOutputFiles, taskGraph, transitive)));
+        }
+        return result;
+    }
+    async hashDepOuputs(task, dependentTasksOutputFiles, taskGraph, transitive) {
+        // task has no dependencies
+        if (!taskGraph.dependencies[task.id]) {
+            return [];
+        }
+        const partialHashes = [];
+        for (const d of taskGraph.dependencies[task.id]) {
+            const childTask = taskGraph.tasks[d];
+            const outputs = (0, utils_1.getOutputsForTargetAndConfiguration)(childTask.target, childTask.overrides, this.projectGraph.nodes[childTask.target.project]);
+            const { getFilesForOutputs } = __nccwpck_require__(71926);
+            const outputFiles = getFilesForOutputs(workspace_root_1.workspaceRoot, outputs);
+            const filteredFiles = outputFiles.filter((p) => p === dependentTasksOutputFiles ||
+                (0, minimatch_1.minimatch)(p, dependentTasksOutputFiles, { dot: true }));
+            const hashDetails = {};
+            const hashes = [];
+            for (const [file, hash] of this.hashFiles(filteredFiles.map((p) => (0, path_1.join)(workspace_root_1.workspaceRoot, p)))) {
+                hashes.push(hash);
+            }
+            let hash = (0, file_hasher_1.hashArray)(hashes);
+            partialHashes.push({
+                value: hash,
+                details: {
+                    [`${dependentTasksOutputFiles}:${outputs.join(',')}`]: hash,
+                },
+            });
+            if (transitive) {
+                partialHashes.push(...(await this.hashDepOuputs(childTask, dependentTasksOutputFiles, taskGraph, transitive)));
+            }
+        }
+        return partialHashes;
+    }
+    hashFiles(files) {
+        const r = new Map();
+        for (let f of files) {
+            r.set(f, (0, native_1.hashFile)(f));
+        }
+        return r;
+    }
+    getExternalDependencyHash(externalNodeName) {
+        const combinedHash = this.combinePartialHashes(this.externalDependencyHashes.get(externalNodeName));
+        // Set the combined hash into the hashes so it's not recalculated next time
+        this.externalDependencyHashes.set(externalNodeName, [combinedHash]);
+        return combinedHash;
+    }
+    hashSingleExternalDependency(externalNodeName) {
+        const node = this.projectGraph.externalNodes[externalNodeName];
+        if (node.data.hash) {
+            // we already know the hash of this dependency
+            return {
+                value: node.data.hash,
+                details: {
+                    [externalNodeName]: node.data.hash,
+                },
+            };
+        }
+        else {
+            // we take version as a hash
+            return {
+                value: node.data.version,
+                details: {
+                    [externalNodeName]: node.data.version,
+                },
+            };
+        }
+    }
+    hashExternalDependency(externalNodeName) {
+        const partialHashes = new Set();
+        partialHashes.add(this.hashSingleExternalDependency(externalNodeName));
+        const deps = (0, project_graph_utils_1.findAllProjectNodeDependencies)(externalNodeName, this.projectGraph, true);
+        for (const dep of deps) {
+            partialHashes.add(this.hashSingleExternalDependency(dep));
+        }
+        return Array.from(partialHashes);
+    }
+    hashTarget(projectName, targetName, selfInputs) {
+        const projectNode = this.projectGraph.nodes[projectName];
+        const target = projectNode.data.targets[targetName];
+        if (!target) {
+            return;
+        }
+        let hash;
+        // we can only vouch for @nx packages's executor dependencies
+        // if it's "run commands" or third-party we skip traversing since we have no info what this command depends on
+        if (target.executor.startsWith(`@nrwl/`) ||
+            target.executor.startsWith(`@nx/`)) {
+            const executorPackage = target.executor.split(':')[0];
+            const executorNodeName = this.findExternalDependencyNodeName(executorPackage);
+            // This is either a local plugin or a non-existent executor
+            if (!executorNodeName) {
+                // TODO: This should not return null if it is a local plugin's executor
+                return null;
+            }
+            return this.getExternalDependencyHash(executorNodeName);
+        }
+        else {
+            // use command external dependencies if available to construct the hash
+            const partialHashes = [];
+            let hasCommandExternalDependencies = false;
+            for (const input of selfInputs) {
+                if (input['externalDependencies']) {
+                    // if we have externalDependencies with empty array we still want to override the default hash
+                    hasCommandExternalDependencies = true;
+                    const externalDependencies = input['externalDependencies'];
+                    for (let dep of externalDependencies) {
+                        dep = this.findExternalDependencyNodeName(dep);
+                        if (!dep) {
+                            throw new Error(`The externalDependency "${dep}" for "${projectName}:${targetName}" could not be found`);
+                        }
+                        partialHashes.push(this.getExternalDependencyHash(dep));
+                    }
+                }
+            }
+            if (hasCommandExternalDependencies) {
+                return this.combinePartialHashes(partialHashes);
+            }
+            else {
+                // cache the hash of the entire external dependencies tree
+                if (this.allExternalDependenciesHash) {
+                    return this.allExternalDependenciesHash;
+                }
+                else {
+                    hash = (0, file_hasher_1.hashObject)(this.projectGraph.externalNodes);
+                    this.allExternalDependenciesHash = {
+                        value: hash,
+                        details: {
+                            AllExternalDependencies: hash,
+                        },
+                    };
+                    return this.allExternalDependenciesHash;
+                }
+            }
+        }
+    }
+    findExternalDependencyNodeName(packageName) {
+        if (this.projectGraph.externalNodes[packageName]) {
+            return packageName;
+        }
+        if (this.projectGraph.externalNodes[`npm:${packageName}`]) {
+            return `npm:${packageName}`;
+        }
+        for (const node of Object.values(this.projectGraph.externalNodes)) {
+            if (node.data.packageName === packageName) {
+                return node.name;
+            }
+        }
+        // not found
+        return null;
+    }
+    async hashSingleProjectInputs(projectName, inputs, env) {
+        const filesets = (0, task_hasher_1.extractPatternsFromFileSets)(inputs);
+        const projectFilesets = [];
+        const workspaceFilesets = [];
+        let invalidFilesetNoPrefix = null;
+        let invalidFilesetWorkspaceRootNegative = null;
+        for (let f of filesets) {
+            if (f.startsWith('{projectRoot}/') || f.startsWith('!{projectRoot}/')) {
+                projectFilesets.push(f);
+            }
+            else if (f.startsWith('{workspaceRoot}/') ||
+                f.startsWith('!{workspaceRoot}/')) {
+                workspaceFilesets.push(f);
+            }
+            else {
+                invalidFilesetNoPrefix = f;
+            }
+        }
+        if (invalidFilesetNoPrefix) {
+            throw new Error([
+                `"${invalidFilesetNoPrefix}" is an invalid fileset.`,
+                'All filesets have to start with either {workspaceRoot} or {projectRoot}.',
+                'For instance: "!{projectRoot}/**/*.spec.ts" or "{workspaceRoot}/package.json".',
+                `If "${invalidFilesetNoPrefix}" is a named input, make sure it is defined in, for instance, nx.json.`,
+            ].join('\n'));
+        }
+        if (invalidFilesetWorkspaceRootNegative) {
+            throw new Error([
+                `"${invalidFilesetWorkspaceRootNegative}" is an invalid fileset.`,
+                'It is not possible to negative filesets starting with {workspaceRoot}.',
+            ].join('\n'));
+        }
+        const notFilesets = inputs.filter((r) => !r['fileset']);
+        return Promise.all([
+            this.hashProjectFileset(projectName, projectFilesets),
+            this.hashProjectConfig(projectName),
+            this.hashTsConfig(projectName),
+            ...[
+                ...workspaceFilesets,
+                ...this.legacyFilesetInputs.map((r) => r.fileset),
+            ].map((fileset) => this.hashRootFileset(fileset)),
+            ...[...notFilesets, ...this.legacyRuntimeInputs].map((r) => r['runtime']
+                ? this.hashRuntime(env, r['runtime'])
+                : this.hashEnv(env, r['env'])),
+        ]);
+    }
+    async hashProjectInputs(projectInputs, env) {
+        const partialHashes = [];
+        for (const input of projectInputs) {
+            const projects = (0, find_matching_projects_1.findMatchingProjects)(input.projects, this.projectGraph.nodes);
+            for (const project of projects) {
+                const namedInputs = (0, task_hasher_1.getNamedInputs)(this.nxJson, this.projectGraph.nodes[project]);
+                const expandedInput = (0, task_hasher_1.expandSingleProjectInputs)([{ input: input.input }], namedInputs);
+                partialHashes.push(this.hashSingleProjectInputs(project, expandedInput, env));
+            }
+        }
+        return Promise.all(partialHashes).then((hashes) => hashes.flat());
+    }
+    async hashRootFileset(fileset) {
+        const mapKey = fileset;
+        const withoutWorkspaceRoot = fileset.substring(16);
+        if (!this.filesetHashes[mapKey]) {
+            this.filesetHashes[mapKey] = new Promise(async (res) => {
+                const parts = [];
+                const matchingFile = this.allWorkspaceFiles.find((t) => t.file === withoutWorkspaceRoot);
+                if (matchingFile) {
+                    parts.push(matchingFile.hash);
+                }
+                else {
+                    this.allWorkspaceFiles
+                        .filter((f) => (0, minimatch_1.minimatch)(f.file, withoutWorkspaceRoot))
+                        .forEach((f) => {
+                        parts.push(f.hash);
+                    });
+                }
+                const value = (0, file_hasher_1.hashArray)(parts);
+                res({
+                    value,
+                    details: { [mapKey]: value },
+                });
+            });
+        }
+        return this.filesetHashes[mapKey];
+    }
+    hashProjectConfig(projectName) {
+        const p = this.projectGraph.nodes[projectName];
+        const projectConfig = (0, file_hasher_1.hashArray)([
+            JSON.stringify({ ...p.data, files: undefined }),
+        ]);
+        return {
+            value: projectConfig,
+            details: {
+                [`${projectName}:ProjectConfiguration`]: projectConfig,
+            },
+        };
+    }
+    hashTsConfig(projectName) {
+        const p = this.projectGraph.nodes[projectName];
+        const tsConfig = (0, file_hasher_1.hashArray)([
+            (0, hasher_1.hashTsConfig)(p, this.projectRootMappings, this.options),
+        ]);
+        return {
+            value: tsConfig,
+            details: {
+                [`${projectName}:TsConfig`]: tsConfig,
+            },
+        };
+    }
+    async hashProjectFileset(projectName, filesetPatterns) {
+        const mapKey = `${projectName}:${filesetPatterns.join(',')}`;
+        if (!this.filesetHashes[mapKey]) {
+            this.filesetHashes[mapKey] = new Promise(async (res) => {
+                const p = this.projectGraph.nodes[projectName];
+                const filteredFiles = (0, task_hasher_1.filterUsingGlobPatterns)(p.data.root, this.projectFileMap[projectName] || [], filesetPatterns);
+                const files = [];
+                for (const { file, hash } of filteredFiles) {
+                    files.push(file, hash);
+                }
+                const value = (0, file_hasher_1.hashArray)(files);
+                res({
+                    value,
+                    details: { [mapKey]: value },
+                });
+            });
+        }
+        return this.filesetHashes[mapKey];
+    }
+    async hashRuntime(env, runtime) {
+        const env_key = JSON.stringify(env);
+        const mapKey = `runtime:${runtime}-${env_key}`;
+        if (!this.runtimeHashes[mapKey]) {
+            this.runtimeHashes[mapKey] = new Promise((res, rej) => {
+                (0, child_process_1.exec)(runtime, {
+                    windowsHide: true,
+                    cwd: workspace_root_1.workspaceRoot,
+                    env,
+                }, (err, stdout, stderr) => {
+                    if (err) {
+                        rej(new Error(`Nx failed to execute {runtime: '${runtime}'}. ${err}.`));
+                    }
+                    else {
+                        const value = (0, file_hasher_1.hashArray)([`${stdout}${stderr}`.trim()]);
+                        res({
+                            details: { [`runtime:${runtime}`]: value },
+                            value,
+                        });
+                    }
+                });
+            });
+        }
+        return this.runtimeHashes[mapKey];
+    }
+    async hashEnv(env, envVarName) {
+        const value = (0, file_hasher_1.hashArray)([env[envVarName] ?? '']);
+        return {
+            details: { [`env:${envVarName}`]: value },
+            value,
+        };
+    }
+    calculateExternalDependencyHashes() {
+        const keys = Object.keys(this.projectGraph.externalNodes);
+        for (const externalNodeName of keys) {
+            this.externalDependencyHashes.set(externalNodeName, this.hashExternalDependency(externalNodeName));
+        }
+    }
+}
+exports.NodeTaskHasherImpl = NodeTaskHasherImpl;
+
+
+/***/ }),
+
+/***/ 99816:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.InProcessTaskHasher = exports.DaemonBasedTaskHasher = void 0;
+exports.getNamedInputs = getNamedInputs;
+exports.getTargetInputs = getTargetInputs;
+exports.extractPatternsFromFileSets = extractPatternsFromFileSets;
+exports.getInputs = getInputs;
+exports.isSelfInput = isSelfInput;
+exports.isDepsOutput = isDepsOutput;
+exports.expandSingleProjectInputs = expandSingleProjectInputs;
+exports.expandNamedInput = expandNamedInput;
+exports.filterUsingGlobPatterns = filterUsingGlobPatterns;
+const file_hasher_1 = __nccwpck_require__(19482);
+const node_task_hasher_impl_1 = __nccwpck_require__(74799);
+const minimatch_1 = __nccwpck_require__(62362);
+const native_task_hasher_impl_1 = __nccwpck_require__(24765);
+const workspace_root_1 = __nccwpck_require__(64393);
+class DaemonBasedTaskHasher {
+    constructor(daemonClient, runnerOptions) {
+        this.daemonClient = daemonClient;
+        this.runnerOptions = runnerOptions;
+    }
+    async hashTasks(tasks, taskGraph, env) {
+        return this.daemonClient.hashTasks(this.runnerOptions, tasks, taskGraph, env ?? process.env);
+    }
+    async hashTask(task, taskGraph, env) {
+        return (await this.daemonClient.hashTasks(this.runnerOptions, [task], taskGraph, env ?? process.env))[0];
+    }
+}
+exports.DaemonBasedTaskHasher = DaemonBasedTaskHasher;
+class InProcessTaskHasher {
+    constructor(projectFileMap, allWorkspaceFiles, projectGraph, nxJson, externalRustReferences, options) {
+        this.projectFileMap = projectFileMap;
+        this.allWorkspaceFiles = allWorkspaceFiles;
+        this.projectGraph = projectGraph;
+        this.nxJson = nxJson;
+        this.externalRustReferences = externalRustReferences;
+        this.options = options;
+        this.useNativeTaskHasher = process.env.NX_NATIVE_TASK_HASHER !== 'false';
+        const legacyRuntimeInputs = (this.options && this.options.runtimeCacheInputs
+            ? this.options.runtimeCacheInputs
+            : []).map((r) => ({ runtime: r }));
+        if (process.env.NX_CLOUD_ENCRYPTION_KEY) {
+            legacyRuntimeInputs.push({ env: 'NX_CLOUD_ENCRYPTION_KEY' });
+        }
+        const legacyFilesetInputs = [
+            'nx.json',
+            // ignore files will change the set of inputs to the hasher
+            '.gitignore',
+            '.nxignore',
+        ].map((d) => ({ fileset: `{workspaceRoot}/${d}` }));
+        this.taskHasher = !this.useNativeTaskHasher
+            ? new node_task_hasher_impl_1.NodeTaskHasherImpl(nxJson, legacyRuntimeInputs, legacyFilesetInputs, this.projectFileMap, this.allWorkspaceFiles, this.projectGraph, {
+                selectivelyHashTsConfig: this.options?.selectivelyHashTsConfig ?? false,
+            })
+            : new native_task_hasher_impl_1.NativeTaskHasherImpl(workspace_root_1.workspaceRoot, nxJson, this.projectGraph, this.externalRustReferences, {
+                selectivelyHashTsConfig: this.options?.selectivelyHashTsConfig ?? false,
+            });
+    }
+    async hashTasks(tasks, taskGraph, env) {
+        if (this.useNativeTaskHasher) {
+            const hashes = await this.taskHasher.hashTasks(tasks, taskGraph, env ?? process.env);
+            return tasks.map((task, index) => this.createHashDetails(task, hashes[index]));
+        }
+        else {
+            return await Promise.all(tasks.map((t) => this.hashTask(t, taskGraph, env)));
+        }
+    }
+    async hashTask(task, taskGraph, env) {
+        const res = await this.taskHasher.hashTask(task, taskGraph, env ?? process.env);
+        return this.createHashDetails(task, res);
+    }
+    createHashDetails(task, res) {
+        const command = this.hashCommand(task);
+        return {
+            value: (0, file_hasher_1.hashArray)([res.value, command]),
+            details: {
+                command,
+                nodes: res.details,
+                implicitDeps: {},
+                runtime: {},
+            },
+        };
+    }
+    hashCommand(task) {
+        const overrides = { ...task.overrides };
+        delete overrides['__overrides_unparsed__'];
+        const sortedOverrides = {};
+        for (let k of Object.keys(overrides).sort()) {
+            sortedOverrides[k] = overrides[k];
+        }
+        return (0, file_hasher_1.hashArray)([
+            task.target.project ?? '',
+            task.target.target ?? '',
+            task.target.configuration ?? '',
+            JSON.stringify(sortedOverrides),
+        ]);
+    }
+}
+exports.InProcessTaskHasher = InProcessTaskHasher;
+InProcessTaskHasher.version = '3.0';
+const DEFAULT_INPUTS = [
+    {
+        fileset: '{projectRoot}/**/*',
+    },
+    {
+        dependencies: true,
+        input: 'default',
+    },
+];
+function getNamedInputs(nxJson, project) {
+    return {
+        default: [{ fileset: '{projectRoot}/**/*' }],
+        ...nxJson.namedInputs,
+        ...project.data.namedInputs,
+    };
+}
+function getTargetInputs(nxJson, projectNode, target) {
+    const namedInputs = getNamedInputs(nxJson, projectNode);
+    const targetData = projectNode.data.targets[target];
+    const targetDefaults = (nxJson.targetDefaults || {})[target];
+    const inputs = splitInputsIntoSelfAndDependencies(targetData.inputs || targetDefaults?.inputs || DEFAULT_INPUTS, namedInputs);
+    const selfInputs = extractPatternsFromFileSets(inputs.selfInputs);
+    const dependencyInputs = extractPatternsFromFileSets(inputs.depsInputs.map((s) => expandNamedInput(s.input, namedInputs)).flat());
+    return { selfInputs, dependencyInputs };
+}
+function extractPatternsFromFileSets(inputs) {
+    return inputs
+        .filter((c) => !!c['fileset'])
+        .map((c) => c['fileset']);
+}
+function getInputs(task, projectGraph, nxJson) {
+    const projectNode = projectGraph.nodes[task.target.project];
+    const namedInputs = getNamedInputs(nxJson, projectNode);
+    const targetData = projectNode.data.targets[task.target.target];
+    const targetDefaults = (nxJson.targetDefaults || {})[task.target.target];
+    const { selfInputs, depsInputs, depsOutputs, projectInputs } = splitInputsIntoSelfAndDependencies(targetData.inputs || targetDefaults?.inputs || DEFAULT_INPUTS, namedInputs);
+    return { selfInputs, depsInputs, depsOutputs, projectInputs };
+}
+function splitInputsIntoSelfAndDependencies(inputs, namedInputs) {
+    const depsInputs = [];
+    const projectInputs = [];
+    const selfInputs = [];
+    for (const d of inputs) {
+        if (typeof d === 'string') {
+            if (d.startsWith('^')) {
+                depsInputs.push({ input: d.substring(1), dependencies: true });
+            }
+            else {
+                selfInputs.push(d);
+            }
+        }
+        else {
+            if (('dependencies' in d && d.dependencies) ||
+                // Todo(@AgentEnder): Remove check in v17
+                ('projects' in d &&
+                    typeof d.projects === 'string' &&
+                    d.projects === 'dependencies')) {
+                depsInputs.push({
+                    input: d.input,
+                    dependencies: true,
+                });
+            }
+            else if ('projects' in d &&
+                d.projects &&
+                // Todo(@AgentEnder): Remove check in v17
+                !(d.projects === 'self')) {
+                projectInputs.push({
+                    input: d.input,
+                    projects: Array.isArray(d.projects) ? d.projects : [d.projects],
+                });
+            }
+            else {
+                selfInputs.push(d);
+            }
+        }
+    }
+    const expandedInputs = expandSingleProjectInputs(selfInputs, namedInputs);
+    return {
+        depsInputs,
+        projectInputs,
+        selfInputs: expandedInputs.filter(isSelfInput),
+        depsOutputs: expandedInputs.filter(isDepsOutput),
+    };
+}
+function isSelfInput(input) {
+    return !('dependentTasksOutputFiles' in input);
+}
+function isDepsOutput(input) {
+    return 'dependentTasksOutputFiles' in input;
+}
+function expandSingleProjectInputs(inputs, namedInputs) {
+    const expanded = [];
+    for (const d of inputs) {
+        if (typeof d === 'string') {
+            if (d.startsWith('^'))
+                throw new Error(`namedInputs definitions cannot start with ^`);
+            if (namedInputs[d]) {
+                expanded.push(...expandNamedInput(d, namedInputs));
+            }
+            else {
+                expanded.push({ fileset: d });
+            }
+        }
+        else {
+            if (d.projects || d.dependencies) {
+                throw new Error(`namedInputs definitions can only refer to other namedInputs definitions within the same project.`);
+            }
+            if (d.fileset ||
+                d.env ||
+                d.runtime ||
+                d.externalDependencies ||
+                d.dependentTasksOutputFiles) {
+                expanded.push(d);
+            }
+            else {
+                expanded.push(...expandNamedInput(d.input, namedInputs));
+            }
+        }
+    }
+    return expanded;
+}
+function expandNamedInput(input, namedInputs) {
+    namedInputs ||= {};
+    if (!namedInputs[input])
+        throw new Error(`Input '${input}' is not defined`);
+    return expandSingleProjectInputs(namedInputs[input], namedInputs);
+}
+function filterUsingGlobPatterns(root, files, patterns) {
+    const filesetWithExpandedProjectRoot = patterns
+        .map((f) => f.replace('{projectRoot}', root))
+        .map((r) => {
+        // handling root level projects that create './' pattern that doesn't work with minimatch
+        if (r.startsWith('./'))
+            return r.substring(2);
+        if (r.startsWith('!./'))
+            return '!' + r.substring(3);
+        return r;
+    });
+    const positive = [];
+    const negative = [];
+    for (const p of filesetWithExpandedProjectRoot) {
+        if (p.startsWith('!')) {
+            negative.push(p);
+        }
+        else {
+            positive.push(p);
+        }
+    }
+    if (positive.length === 0 && negative.length === 0) {
+        return files;
+    }
+    return files.filter((f) => {
+        let matchedPositive = false;
+        if (positive.length === 0 ||
+            (positive.length === 1 && positive[0] === `${root}/**/*`)) {
+            matchedPositive = true;
+        }
+        else {
+            matchedPositive = positive.some((pattern) => (0, minimatch_1.minimatch)(f.file, pattern));
+        }
+        if (!matchedPositive)
+            return false;
+        return negative.every((pattern) => (0, minimatch_1.minimatch)(f.file, pattern));
+    });
+}
+
+
 /***/ }),
 
 /***/ 71926:
@@ -285396,6 +299708,7 @@ module.exports.copy = nativeBinding.copy
 module.exports.EventType = nativeBinding.EventType
 module.exports.expandOutputs = nativeBinding.expandOutputs
 module.exports.findImports = nativeBinding.findImports
+module.exports.getBinaryTarget = nativeBinding.getBinaryTarget
 module.exports.getFilesForOutputs = nativeBinding.getFilesForOutputs
 module.exports.hashArray = nativeBinding.hashArray
 module.exports.hashFile = nativeBinding.hashFile
@@ -285436,6 +299749,124 @@ function getNativeFileCacheLocation() {
 }
 
 
+/***/ }),
+
+/***/ 25188:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.transformProjectGraphForRust = transformProjectGraphForRust;
+function transformProjectGraphForRust(graph) {
+    const dependencies = {};
+    const nodes = {};
+    const externalNodes = {};
+    for (const [projectName, projectNode] of Object.entries(graph.nodes)) {
+        const targets = {};
+        for (const [targetName, targetConfig] of Object.entries(projectNode.data.targets ?? {})) {
+            targets[targetName] = {
+                executor: targetConfig.executor,
+                inputs: targetConfig.inputs,
+                outputs: targetConfig.outputs,
+                options: JSON.stringify(targetConfig.options),
+                configurations: JSON.stringify(targetConfig.configurations),
+                parallelism: targetConfig.parallelism,
+            };
+        }
+        nodes[projectName] = {
+            root: projectNode.data.root,
+            namedInputs: projectNode.data.namedInputs,
+            targets,
+            tags: projectNode.data.tags,
+        };
+        if (graph.dependencies[projectName]) {
+            dependencies[projectName] = [];
+            for (const dep of graph.dependencies[projectName]) {
+                dependencies[projectName].push(dep.target);
+            }
+        }
+    }
+    for (const [projectName, externalNode] of Object.entries(graph.externalNodes ?? {})) {
+        externalNodes[projectName] = {
+            packageName: externalNode.data.packageName,
+            hash: externalNode.data.hash,
+            version: externalNode.data.version,
+        };
+        if (graph.dependencies[projectName]) {
+            dependencies[projectName] = [];
+            for (const dep of graph.dependencies[projectName]) {
+                dependencies[projectName].push(dep.target);
+            }
+        }
+    }
+    return {
+        nodes,
+        externalNodes,
+        dependencies,
+    };
+}
+
+
+/***/ }),
+
+/***/ 46235:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.hashTsConfig = hashTsConfig;
+const fileutils_1 = __nccwpck_require__(40910);
+const typescript_1 = __nccwpck_require__(32602);
+const find_project_for_path_1 = __nccwpck_require__(69621);
+function readTsConfigJson() {
+    try {
+        const res = (0, fileutils_1.readJsonFile)((0, typescript_1.getRootTsConfigPath)());
+        res.compilerOptions.paths ??= {};
+        return res;
+    }
+    catch {
+        return {
+            compilerOptions: { paths: {} },
+        };
+    }
+}
+let tsConfigJson;
+function hashTsConfig(p, projectRootMappings, { selectivelyHashTsConfig }) {
+    if (!tsConfigJson) {
+        tsConfigJson = readTsConfigJson();
+    }
+    if (selectivelyHashTsConfig) {
+        return removeOtherProjectsPathRecords(p, tsConfigJson, projectRootMappings);
+    }
+    else {
+        return JSON.stringify(tsConfigJson);
+    }
+}
+function removeOtherProjectsPathRecords(p, tsConfigJson, projectRootMapping) {
+    const { paths, ...compilerOptions } = tsConfigJson.compilerOptions;
+    const filteredPaths = {};
+    if (!paths) {
+        return '';
+    }
+    for (const [key, files] of Object.entries(paths)) {
+        for (const filePath of files) {
+            if (p.name === (0, find_project_for_path_1.findProjectForPath)(filePath, projectRootMapping)) {
+                filteredPaths[key] = files;
+                break;
+            }
+        }
+    }
+    return JSON.stringify({
+        compilerOptions: {
+            ...compilerOptions,
+            paths: filteredPaths,
+        },
+    });
+}
+
+
 /***/ }),
 
 /***/ 56413:
@@ -285982,7 +300413,15 @@ function buildProjectConfigurationFromPackageJson(packageJson, workspaceRoot, pa
     const siblingProjectJson = tryReadJson((0, node_path_1.join)(workspaceRoot, projectRoot, 'project.json'));
     if (siblingProjectJson) {
         for (const target of Object.keys(siblingProjectJson?.targets ?? {})) {
-            delete packageJson.scripts?.[target];
+            const { executor, command, options } = siblingProjectJson.targets[target];
+            if (
+            // will use run-commands, different target
+            command ||
+                // Either uses a different executor or runs a different script
+                (executor &&
+                    (executor !== 'nx:run-script' || options?.script !== target))) {
+                delete packageJson.scripts?.[target];
+            }
         }
     }
     if (!packageJson.name && projectRoot === '.') {
@@ -286737,6 +301176,69 @@ class LoadPluginError extends Error {
 exports.LoadPluginError = LoadPluginError;
 
 
+/***/ }),
+
+/***/ 7682:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.createProjectFileMapUsingProjectGraph = createProjectFileMapUsingProjectGraph;
+exports.createFileMapUsingProjectGraph = createFileMapUsingProjectGraph;
+exports.createFileMap = createFileMap;
+exports.updateFileMap = updateFileMap;
+const workspace_context_1 = __nccwpck_require__(98897);
+const workspace_root_1 = __nccwpck_require__(64393);
+const project_graph_1 = __nccwpck_require__(54913);
+const build_all_workspace_files_1 = __nccwpck_require__(57362);
+const find_project_for_path_1 = __nccwpck_require__(69621);
+async function createProjectFileMapUsingProjectGraph(graph) {
+    return (await createFileMapUsingProjectGraph(graph)).fileMap.projectFileMap;
+}
+// TODO: refactor this to pull straight from the rust context instead of creating the file map in JS
+async function createFileMapUsingProjectGraph(graph) {
+    const configs = (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(graph);
+    let files = await (0, workspace_context_1.getAllFileDataInContext)(workspace_root_1.workspaceRoot);
+    return createFileMap(configs, files);
+}
+function createFileMap(projectsConfigurations, allWorkspaceFiles) {
+    const projectFileMap = {};
+    const projectRootMappings = (0, find_project_for_path_1.createProjectRootMappingsFromProjectConfigurations)(projectsConfigurations.projects);
+    const nonProjectFiles = [];
+    for (const projectName of Object.keys(projectsConfigurations.projects)) {
+        projectFileMap[projectName] ??= [];
+    }
+    for (const f of allWorkspaceFiles) {
+        const projectFileMapKey = (0, find_project_for_path_1.findProjectForPath)(f.file, projectRootMappings);
+        if (projectFileMapKey) {
+            const matchingProjectFiles = projectFileMap[projectFileMapKey];
+            if (matchingProjectFiles) {
+                matchingProjectFiles.push(f);
+            }
+        }
+        else {
+            nonProjectFiles.push(f);
+        }
+    }
+    return {
+        allWorkspaceFiles,
+        fileMap: {
+            projectFileMap,
+            nonProjectFiles,
+        },
+    };
+}
+function updateFileMap(projectsConfigurations, rustReferences, updatedFiles, deletedFiles) {
+    const updates = (0, workspace_context_1.updateProjectFiles)(Object.fromEntries((0, find_project_for_path_1.createProjectRootMappingsFromProjectConfigurations)(projectsConfigurations)), rustReferences, updatedFiles, deletedFiles);
+    return {
+        fileMap: updates.fileMap,
+        allWorkspaceFiles: (0, build_all_workspace_files_1.buildAllWorkspaceFiles)(updates.fileMap.projectFileMap, updates.fileMap.nonProjectFiles),
+        rustReferences: updates.externalReferences,
+    };
+}
+
+
 /***/ }),
 
 /***/ 89294:
@@ -287256,10 +301758,24 @@ exports.LoadedNxPlugin = LoadedNxPlugin;
 // Allows loaded plugins to not be reloaded when
 // referenced multiple times.
 exports.nxPluginCache = new Map();
+function isIsolationEnabled() {
+    // Explicitly enabled, regardless of further conditions
+    if (process.env.NX_ISOLATE_PLUGINS === 'true') {
+        return true;
+    }
+    if (
+    // Explicitly disabled
+    process.env.NX_ISOLATE_PLUGINS === 'false' ||
+        // Isolation is disabled on WASM builds currently.
+        native_1.IS_WASM) {
+        return false;
+    }
+    // Default value
+    return true;
+}
 async function loadNxPlugins(plugins, root = workspace_root_1.workspaceRoot) {
     performance.mark('loadNxPlugins:start');
-    const loadingMethod = process.env.NX_ISOLATE_PLUGINS === 'true' ||
-        (!native_1.IS_WASM && process.env.NX_ISOLATE_PLUGINS !== 'false')
+    const loadingMethod = isIsolationEnabled()
         ? isolation_1.loadNxPluginInIsolation
         : loader_1.loadNxPlugin;
     plugins = await normalizePlugins(plugins, root);
@@ -287349,6 +301865,7 @@ function isPluginWorkerMessage(message) {
             'createDependencies',
             'processProjectGraph',
             'createMetadata',
+            'shutdown',
         ].includes(message.type));
 }
 function isPluginWorkerResult(message) {
@@ -287401,7 +301918,11 @@ const exit_codes_1 = __nccwpck_require__(69510);
 const messaging_1 = __nccwpck_require__(2053);
 const cleanupFunctions = new Set();
 const pluginNames = new Map();
-const MAX_MESSAGE_WAIT = 1000 * 60 * 5; // 5 minutes
+const PLUGIN_TIMEOUT_HINT_TEXT = 'As a last resort, you can set NX_PLUGIN_NO_TIMEOUTS=true to bypass this timeout.';
+const MINUTES = 10;
+const MAX_MESSAGE_WAIT = process.env.NX_PLUGIN_NO_TIMEOUTS === 'true'
+    ? undefined
+    : 1000 * 60 * MINUTES; // 10 minutes
 const nxPluginWorkerCache = (global['nxPluginWorkerCache'] ??= new Map());
 async function loadRemoteNxPlugin(plugin, root) {
     const cacheKey = JSON.stringify({ plugin, root });
@@ -287413,8 +301934,8 @@ async function loadRemoteNxPlugin(plugin, root) {
     const exitHandler = createWorkerExitHandler(worker, pendingPromises);
     const cleanupFunction = () => {
         worker.off('exit', exitHandler);
+        shutdownPluginWorker(socket);
         socket.destroy();
-        shutdownPluginWorker(worker);
         nxPluginWorkerCache.delete(cacheKey);
     };
     cleanupFunctions.add(cleanupFunction);
@@ -287424,11 +301945,14 @@ async function loadRemoteNxPlugin(plugin, root) {
             payload: { plugin, root },
         });
         // logger.verbose(`[plugin-worker] started worker: ${worker.pid}`);
-        const loadTimeout = setTimeout(() => {
-            rej(new Error('Plugin worker timed out when loading plugin:' + plugin));
-        }, MAX_MESSAGE_WAIT);
+        const loadTimeout = MAX_MESSAGE_WAIT
+            ? setTimeout(() => {
+                rej(new Error(`Loading "${plugin}" timed out after ${MINUTES} minutes. ${PLUGIN_TIMEOUT_HINT_TEXT}`));
+            }, MAX_MESSAGE_WAIT)
+            : undefined;
         socket.on('data', (0, consume_messages_from_socket_1.consumeMessagesFromSocket)(createWorkerHandler(worker, pendingPromises, (val) => {
-            clearTimeout(loadTimeout);
+            if (loadTimeout)
+                clearTimeout(loadTimeout);
             res(val);
         }, rej, socket)));
         worker.on('exit', exitHandler);
@@ -287436,11 +301960,8 @@ async function loadRemoteNxPlugin(plugin, root) {
     nxPluginWorkerCache.set(cacheKey, pluginPromise);
     return [pluginPromise, cleanupFunction];
 }
-function shutdownPluginWorker(worker) {
-    // Clears the plugin cache so no refs to the workers are held
-    internal_api_1.nxPluginCache.clear();
-    // logger.verbose(`[plugin-pool] starting worker shutdown`);
-    worker.kill('SIGINT');
+function shutdownPluginWorker(socket) {
+    (0, messaging_1.sendMessageOverSocket)(socket, { type: 'shutdown', payload: {} });
 }
 /**
  * Creates a message handler for the given worker.
@@ -287478,6 +301999,9 @@ function createWorkerHandler(worker, pending, onload, onloadError, socket) {
                                             type: 'createNodes',
                                             payload: { configFiles, context: ctx, tx },
                                         });
+                                    }, {
+                                        plugin: pluginName,
+                                        operation: 'createNodes',
                                     });
                                 },
                             ]
@@ -287490,6 +302014,9 @@ function createWorkerHandler(worker, pending, onload, onloadError, socket) {
                                         type: 'createDependencies',
                                         payload: { context: ctx, tx },
                                     });
+                                }, {
+                                    plugin: pluginName,
+                                    operation: 'createDependencies',
                                 });
                             }
                             : undefined,
@@ -287501,6 +302028,9 @@ function createWorkerHandler(worker, pending, onload, onloadError, socket) {
                                         type: 'processProjectGraph',
                                         payload: { graph, ctx, tx },
                                     });
+                                }, {
+                                    operation: 'processProjectGraph',
+                                    plugin: pluginName,
                                 });
                             }
                             : undefined,
@@ -287512,6 +302042,9 @@ function createWorkerHandler(worker, pending, onload, onloadError, socket) {
                                         type: 'createMetadata',
                                         payload: { graph, context: ctx, tx },
                                     });
+                                }, {
+                                    plugin: pluginName,
+                                    operation: 'createMetadata',
                                 });
                             }
                             : undefined,
@@ -287569,6 +302102,7 @@ function createWorkerExitHandler(worker, pendingPromises) {
 }
 let cleanedUp = false;
 const exitHandler = () => {
+    internal_api_1.nxPluginCache.clear();
     for (const fn of cleanupFunctions) {
         fn();
     }
@@ -287580,18 +302114,21 @@ process.on('SIGINT', () => {
     process.exit((0, exit_codes_1.signalToCode)('SIGINT'));
 });
 process.on('SIGTERM', exitHandler);
-function registerPendingPromise(tx, pending, callback) {
+function registerPendingPromise(tx, pending, callback, context) {
     let resolver, rejector, timeout;
     const promise = new Promise((res, rej) => {
         rejector = rej;
         resolver = res;
-        timeout = setTimeout(() => {
-            rej(new Error(`Plugin worker timed out when processing message ${tx}`));
-        }, MAX_MESSAGE_WAIT);
+        timeout = MAX_MESSAGE_WAIT
+            ? setTimeout(() => {
+                rej(new Error(`${context.plugin} timed out after ${MINUTES} minutes during ${context.operation}. ${PLUGIN_TIMEOUT_HINT_TEXT}`));
+            }, MAX_MESSAGE_WAIT)
+            : undefined;
         callback();
     }).finally(() => {
         pending.delete(tx);
-        clearTimeout(timeout);
+        if (timeout)
+            clearTimeout(timeout);
     });
     pending.set(tx, {
         promise,
@@ -288600,7 +303137,7 @@ async function createProjectGraphAndSourceMapsAsync(opts = {
             return projectGraphAndSourceMaps;
         }
         catch (e) {
-            if (e.message.indexOf('inotify_add_watch') > -1) {
+            if (e.message && e.message.indexOf('inotify_add_watch') > -1) {
                 // common errors with the daemon due to OS settings (cannot watch all the files available)
                 output_1.output.note({
                     title: `Unable to start Nx Daemon due to the limited amount of inotify watches, continuing without the daemon.`,
@@ -288854,6 +303391,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
 exports.mergeProjectConfigurationIntoRootMap = mergeProjectConfigurationIntoRootMap;
 exports.mergeMetadata = mergeMetadata;
 exports.createProjectConfigurations = createProjectConfigurations;
+exports.findMatchingConfigFiles = findMatchingConfigFiles;
 exports.readProjectConfigurationsFromRootMap = readProjectConfigurationsFromRootMap;
 exports.validateProject = validateProject;
 exports.mergeTargetDefaultWithTargetDefinition = mergeTargetDefaultWithTargetDefinition;
@@ -289296,7 +303834,7 @@ function normalizeTargets(project, sourceMaps, nxJsonConfiguration) {
         project.targets[targetName] = normalizeTarget(project.targets[targetName], project);
         const projectSourceMaps = sourceMaps[project.root];
         const targetConfig = project.targets[targetName];
-        const targetDefaults = readTargetDefaultsForTarget(targetName, nxJsonConfiguration.targetDefaults, targetConfig.executor);
+        const targetDefaults = deepClone(readTargetDefaultsForTarget(targetName, nxJsonConfiguration.targetDefaults, targetConfig.executor));
         // We only apply defaults if they exist
         if (targetDefaults && isCompatibleTarget(targetConfig, targetDefaults)) {
             project.targets[targetName] = mergeTargetDefaultWithTargetDefinition(targetName, project, normalizeTarget(targetDefaults, project), projectSourceMaps);
@@ -289349,9 +303887,12 @@ function targetDefaultShouldBeApplied(key, sourceMap) {
     const [, plugin] = sourceInfo;
     return !plugin?.startsWith('nx/');
 }
+function deepClone(obj) {
+    return JSON.parse(JSON.stringify(obj));
+}
 function mergeTargetDefaultWithTargetDefinition(targetName, project, targetDefault, sourceMap) {
     const targetDefinition = project.targets[targetName] ?? {};
-    const result = JSON.parse(JSON.stringify(targetDefinition));
+    const result = deepClone(targetDefinition);
     for (const key in targetDefault) {
         switch (key) {
             case 'options': {
@@ -289809,27 +304350,31 @@ function expandDependencyConfigSyntaxSugar(dependencyConfigString, graph) {
 }
 // Weakmap let's the cache get cleared by garbage collector if allTargetNames is no longer used
 const patternResultCache = new WeakMap();
-function expandWildcardTargetConfiguration(dependencyConfig, allTargetNames) {
-    if (!(0, globs_1.isGlobPattern)(dependencyConfig.target)) {
-        return [dependencyConfig];
-    }
+function findMatchingTargets(pattern, allTargetNames) {
     let cache = patternResultCache.get(allTargetNames);
     if (!cache) {
         cache = new Map();
         patternResultCache.set(allTargetNames, cache);
     }
-    const cachedResult = cache.get(dependencyConfig.target);
+    const cachedResult = cache.get(pattern);
     if (cachedResult) {
         return cachedResult;
     }
-    const matcher = minimatch_1.minimatch.filter(dependencyConfig.target);
+    const matcher = minimatch_1.minimatch.filter(pattern);
     const matchingTargets = allTargetNames.filter((t) => matcher(t));
-    const result = matchingTargets.map((t) => ({
-        ...dependencyConfig,
+    cache.set(pattern, matchingTargets);
+    return matchingTargets;
+}
+function expandWildcardTargetConfiguration(dependencyConfig, allTargetNames) {
+    if (!(0, globs_1.isGlobPattern)(dependencyConfig.target)) {
+        return [dependencyConfig];
+    }
+    const matchingTargets = findMatchingTargets(dependencyConfig.target, allTargetNames);
+    return matchingTargets.map((t) => ({
         target: t,
+        projects: dependencyConfig.projects,
+        dependencies: dependencyConfig.dependencies,
     }));
-    cache.set(dependencyConfig.target, result);
-    return result;
 }
 function readProjectAndTargetFromTargetString(targetString, projects) {
     // Support for both `project:target` and `target:with:colons` syntax
@@ -289868,7 +304413,6 @@ function normalizeTargetDependencyWithStringProjects(dependencyConfig) {
         else if (dependencyConfig.projects === 'dependencies') {
             dependencyConfig.dependencies = true;
             delete dependencyConfig.projects;
-            return;
             /** LERNA SUPPORT END - Remove in v20 */
         }
         else {
@@ -289948,16 +304492,20 @@ function getOutputsForTargetAndConfiguration(taskTargetOrTask, overridesOrNode,
     };
     if (targetConfiguration?.outputs) {
         validateOutputs(targetConfiguration.outputs);
-        return targetConfiguration.outputs
-            .map((output) => {
-            return interpolate(output, {
+        const result = new Set();
+        for (const output of targetConfiguration.outputs) {
+            const interpolatedOutput = interpolate(output, {
                 projectRoot: node.data.root,
                 projectName: node.name,
                 project: { ...node.data, name: node.name }, // this is legacy
                 options,
             });
-        })
-            .filter((output) => !!output && !output.match(/{(projectRoot|workspaceRoot|(options.*))}/));
+            if (!!interpolatedOutput &&
+                !interpolatedOutput.match(/{(projectRoot|workspaceRoot|(options.*))}/)) {
+                result.add(interpolatedOutput);
+            }
+        }
+        return Array.from(result);
     }
     // Keep backwards compatibility in case `outputs` doesn't exist
     if (options.outputPath) {
@@ -290413,6 +304961,54 @@ function codeFrameColumns(rawLines, loc, opts = {}) {
 }
 
 
+/***/ }),
+
+/***/ 92193:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.collapseExpandedOutputs = collapseExpandedOutputs;
+const path_1 = __nccwpck_require__(71017);
+/**
+ * Heuristic to prevent writing too many hash files
+ */
+const MAX_OUTPUTS_TO_CHECK_HASHES = 3;
+function collapseExpandedOutputs(expandedOutputs) {
+    const tree = [];
+    // Create a Tree of directories/files
+    for (const output of expandedOutputs) {
+        const pathParts = [];
+        pathParts.unshift(output);
+        let dir = (0, path_1.dirname)(output);
+        while (dir !== (0, path_1.dirname)(dir)) {
+            pathParts.unshift(dir);
+            dir = (0, path_1.dirname)(dir);
+        }
+        for (let i = 0; i < pathParts.length; i++) {
+            tree[i] ??= new Set();
+            tree[i].add(pathParts[i]);
+        }
+    }
+    // Find a level in the tree that has too many outputs
+    if (tree.length === 0) {
+        return [];
+    }
+    let j = 0;
+    let level = tree[j];
+    for (j = 0; j < tree.length; j++) {
+        level = tree[j];
+        if (level.size > MAX_OUTPUTS_TO_CHECK_HASHES) {
+            break;
+        }
+    }
+    // Return the level before the level with too many outputs
+    // If the first level has too many outputs, return that one.
+    return Array.from(tree[Math.max(0, j - 1)]);
+}
+
+
 /***/ }),
 
 /***/ 66696:
@@ -291728,7 +306324,7 @@ function isWorkspacesEnabled(packageManager = detectPackageManager(), root = wor
     if (packageManager === 'pnpm') {
         return (0, fs_1.existsSync)((0, path_1.join)(root, 'pnpm-workspace.yaml'));
     }
-    // yarn and pnpm both use the same 'workspaces' property in package.json
+    // yarn and npm both use the same 'workspaces' property in package.json
     const packageJson = (0, file_utils_1.readPackageJson)();
     return !!packageJson?.workspaces;
 }
@@ -291814,7 +306410,7 @@ function getPackageManagerCommand(packageManager = detectPackageManager(), root
             process.env.npm_config_legacy_peer_deps ??= 'true';
             return {
                 install: 'npm install',
-                ciInstall: 'npm ci',
+                ciInstall: 'npm ci --legacy-peer-deps',
                 updateLockFile: 'npm install --package-lock-only',
                 add: 'npm install',
                 addDev: 'npm install -D',
@@ -291855,6 +306451,7 @@ function getPackageManagerVersion(packageManager = detectPackageManager(), cwd =
         version = (0, child_process_1.execSync)(`${packageManager} --version`, {
             cwd,
             encoding: 'utf-8',
+            windowsHide: true,
         }).trim();
     }
     catch {
@@ -292028,7 +306625,10 @@ async function resolvePackageVersionUsingInstallation(packageName, version) {
     const { dir, cleanup } = createTempNpmDirectory();
     try {
         const pmc = getPackageManagerCommand();
-        await execAsync(`${pmc.add} ${packageName}@${version}`, { cwd: dir });
+        await execAsync(`${pmc.add} ${packageName}@${version}`, {
+            cwd: dir,
+            windowsHide: true,
+        });
         const { packageJson } = (0, package_json_1.readModulePackageJson)(packageName, [dir]);
         return packageJson.version;
     }
@@ -292051,7 +306651,9 @@ async function packageRegistryView(pkg, version, args) {
          */
         pm = 'npm';
     }
-    const { stdout } = await execAsync(`${pm} view ${pkg}@${version} ${args}`);
+    const { stdout } = await execAsync(`${pm} view ${pkg}@${version} ${args}`, {
+        windowsHide: true,
+    });
     return stdout.toString().trim();
 }
 async function packageRegistryPack(cwd, pkg, version) {
@@ -292068,7 +306670,10 @@ async function packageRegistryPack(cwd, pkg, version) {
          */
         pm = 'npm';
     }
-    const { stdout } = await execAsync(`${pm} pack ${pkg}@${version}`, { cwd });
+    const { stdout } = await execAsync(`${pm} pack ${pkg}@${version}`, {
+        cwd,
+        windowsHide: true,
+    });
     const tarballPath = stdout.trim();
     return { tarballPath };
 }
@@ -292841,6 +307446,563 @@ function getCwd() {
 }
 
 
+/***/ }),
+
+/***/ 51456:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.findInstalledPlugins = findInstalledPlugins;
+exports.getInstalledPluginsAndCapabilities = getInstalledPluginsAndCapabilities;
+const path_1 = __nccwpck_require__(71017);
+const nx_json_1 = __nccwpck_require__(21173);
+const fileutils_1 = __nccwpck_require__(40910);
+const installation_directory_1 = __nccwpck_require__(87836);
+const package_json_1 = __nccwpck_require__(78618);
+const workspace_root_1 = __nccwpck_require__(64393);
+const plugin_capabilities_1 = __nccwpck_require__(43769);
+function findInstalledPlugins() {
+    const packageJsonDeps = getDependenciesFromPackageJson();
+    const nxJsonDeps = getDependenciesFromNxJson();
+    const deps = packageJsonDeps.concat(nxJsonDeps);
+    const result = [];
+    for (const dep of deps) {
+        const pluginPackageJson = getNxPluginPackageJsonOrNull(dep);
+        if (pluginPackageJson) {
+            result.push(pluginPackageJson);
+        }
+    }
+    return result.sort((a, b) => a.name.localeCompare(b.name));
+}
+function getNxPluginPackageJsonOrNull(pkg) {
+    try {
+        const { packageJson } = (0, package_json_1.readModulePackageJson)(pkg, (0, installation_directory_1.getNxRequirePaths)());
+        return packageJson &&
+            [
+                'ng-update',
+                'nx-migrations',
+                'schematics',
+                'generators',
+                'builders',
+                'executors',
+            ].some((field) => field in packageJson)
+            ? packageJson
+            : null;
+    }
+    catch {
+        return null;
+    }
+}
+function getDependenciesFromPackageJson(packageJsonPath = 'package.json') {
+    try {
+        const { dependencies, devDependencies } = (0, fileutils_1.readJsonFile)((0, path_1.join)(workspace_root_1.workspaceRoot, packageJsonPath));
+        return Object.keys({ ...dependencies, ...devDependencies });
+    }
+    catch { }
+    return [];
+}
+function getDependenciesFromNxJson() {
+    const { installation } = (0, nx_json_1.readNxJson)();
+    if (!installation) {
+        return [];
+    }
+    return ['nx', ...Object.keys(installation.plugins || {})];
+}
+async function getInstalledPluginsAndCapabilities(workspaceRoot, projects) {
+    const plugins = findInstalledPlugins().map((p) => p.name);
+    const result = new Map();
+    for (const plugin of Array.from(plugins).sort()) {
+        try {
+            const capabilities = await (0, plugin_capabilities_1.getPluginCapabilities)(workspaceRoot, plugin, projects);
+            if (capabilities &&
+                (capabilities.executors ||
+                    capabilities.generators ||
+                    capabilities.projectGraphExtension ||
+                    capabilities.projectInference)) {
+                result.set(plugin, capabilities);
+            }
+        }
+        catch { }
+    }
+    return result;
+}
+
+
+/***/ }),
+
+/***/ 6335:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getLocalWorkspacePlugins = getLocalWorkspacePlugins;
+const fs_1 = __nccwpck_require__(57147);
+const path_1 = __nccwpck_require__(71017);
+const fileutils_1 = __nccwpck_require__(40910);
+const workspace_root_1 = __nccwpck_require__(64393);
+const plugin_capabilities_1 = __nccwpck_require__(43769);
+async function getLocalWorkspacePlugins(projectsConfiguration, nxJson) {
+    const plugins = new Map();
+    for (const project of Object.values(projectsConfiguration.projects)) {
+        const packageJsonPath = (0, path_1.join)(workspace_root_1.workspaceRoot, project.root, 'package.json');
+        if ((0, fs_1.existsSync)(packageJsonPath)) {
+            const packageJson = (0, fileutils_1.readJsonFile)(packageJsonPath);
+            const includeRuntimeCapabilities = nxJson?.plugins?.some((p) => (typeof p === 'string' ? p : p.plugin).startsWith(packageJson.name));
+            const capabilities = await (0, plugin_capabilities_1.getPluginCapabilities)(workspace_root_1.workspaceRoot, packageJson.name, projectsConfiguration.projects, includeRuntimeCapabilities);
+            if (capabilities &&
+                (Object.keys(capabilities.executors ?? {}).length ||
+                    Object.keys(capabilities.generators ?? {}).length ||
+                    capabilities.projectGraphExtension ||
+                    capabilities.projectInference)) {
+                plugins.set(packageJson.name, {
+                    ...capabilities,
+                    name: packageJson.name,
+                });
+            }
+        }
+    }
+    return plugins;
+}
+
+
+/***/ }),
+
+/***/ 43769:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getPluginCapabilities = getPluginCapabilities;
+const path_1 = __nccwpck_require__(71017);
+const fileutils_1 = __nccwpck_require__(40910);
+const installation_directory_1 = __nccwpck_require__(87836);
+const plugins_1 = __nccwpck_require__(69461);
+const loader_1 = __nccwpck_require__(82930);
+function tryGetCollection(packageJsonPath, collectionFile, propName) {
+    if (!collectionFile) {
+        return null;
+    }
+    try {
+        const collectionFilePath = (0, path_1.join)((0, path_1.dirname)(packageJsonPath), collectionFile);
+        return (0, fileutils_1.readJsonFile)(collectionFilePath)[propName];
+    }
+    catch {
+        return null;
+    }
+}
+async function getPluginCapabilities(workspaceRoot, pluginName, projects, includeRuntimeCapabilities = false) {
+    try {
+        const { json: packageJson, path: packageJsonPath } = await (0, plugins_1.readPluginPackageJson)(pluginName, projects, (0, installation_directory_1.getNxRequirePaths)(workspaceRoot));
+        const pluginModule = includeRuntimeCapabilities
+            ? await tryGetModule(packageJson, workspaceRoot)
+            : {};
+        return {
+            name: pluginName,
+            generators: {
+                ...tryGetCollection(packageJsonPath, packageJson.schematics, 'schematics'),
+                ...tryGetCollection(packageJsonPath, packageJson.generators, 'schematics'),
+                ...tryGetCollection(packageJsonPath, packageJson.schematics, 'generators'),
+                ...tryGetCollection(packageJsonPath, packageJson.generators, 'generators'),
+            },
+            executors: {
+                ...tryGetCollection(packageJsonPath, packageJson.builders, 'builders'),
+                ...tryGetCollection(packageJsonPath, packageJson.executors, 'builders'),
+                ...tryGetCollection(packageJsonPath, packageJson.builders, 'executors'),
+                ...tryGetCollection(packageJsonPath, packageJson.executors, 'executors'),
+            },
+            projectGraphExtension: pluginModule &&
+                ('processProjectGraph' in pluginModule ||
+                    'createNodes' in pluginModule ||
+                    'createDependencies' in pluginModule),
+            projectInference: pluginModule &&
+                ('projectFilePatterns' in pluginModule ||
+                    'createNodes' in pluginModule),
+        };
+    }
+    catch {
+        return null;
+    }
+}
+async function tryGetModule(packageJson, workspaceRoot) {
+    try {
+        if (packageJson.generators ??
+            packageJson.executors ??
+            packageJson['nx-migrations'] ??
+            packageJson['schematics'] ??
+            packageJson['builders']) {
+            const [pluginPromise] = (0, loader_1.loadNxPlugin)(packageJson.name, workspaceRoot);
+            const plugin = await pluginPromise;
+            return plugin;
+        }
+        else {
+            return {
+                name: packageJson.name,
+            };
+        }
+    }
+    catch {
+        return null;
+    }
+}
+
+
+/***/ }),
+
+/***/ 51958:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.printHelp = printHelp;
+const chalk = __nccwpck_require__(78818);
+const stringWidth = __nccwpck_require__(42577);
+const logger_1 = __nccwpck_require__(37270);
+const output_1 = __nccwpck_require__(21862);
+const versions_1 = __nccwpck_require__(10780);
+const package_json_1 = __nccwpck_require__(78618);
+// cliui is the CLI layout engine developed by, and used within, yargs
+// the typings for cliui do not play nice with our tsconfig, it either
+// works in build or in test but not both.
+const cliui = __nccwpck_require__(77059);
+function printHelp(header, schema, meta) {
+    const allPositional = Object.keys(schema.properties).filter((key) => {
+        const p = schema.properties[key];
+        return p['$default'] && p['$default']['$source'] === 'argv';
+    });
+    const positional = allPositional.length > 0 ? ` [${allPositional[0]}]` : '';
+    logger_1.logger.info(`
+${output_1.output.applyNxPrefix('cyan', chalk.bold(`${`${header + chalk.reset.cyan(positional)} ${chalk.reset.cyan('[options,...]')}`}`))}
+
+${generateOverviewOutput({
+        pluginName: meta.plugin,
+        name: meta.entity,
+        description: schema.description,
+        mode: meta.mode,
+        aliases: meta.mode === 'generate' ? meta.aliases : [],
+    })}
+${generateOptionsOutput(schema)}
+${generateExamplesOutput(schema)}
+${generateLinkOutput({
+        pluginName: meta.plugin,
+        name: meta.entity,
+        type: meta.mode === 'generate' ? 'generators' : 'executors',
+    })}
+`);
+}
+function generateOverviewOutput({ pluginName, name, description, mode, aliases, }) {
+    switch (mode) {
+        case 'generate':
+            return generateGeneratorOverviewOutput({
+                pluginName,
+                name,
+                description,
+                aliases,
+            });
+        case 'run':
+            return generateExecutorOverviewOutput({
+                pluginName,
+                name,
+                description,
+            });
+        default:
+            throw new Error(`Unexpected mode ${mode}`);
+    }
+}
+function generateGeneratorOverviewOutput({ pluginName, name, description, aliases, }) {
+    const ui = cliui(null);
+    const overviewItemsLabelWidth = 
+    // Chars in labels "From" and "Name"
+    4 +
+        // The `:` char
+        1;
+    let installedVersion;
+    try {
+        installedVersion = (0, package_json_1.readModulePackageJson)(pluginName).packageJson.version;
+    }
+    catch { }
+    ui.div(...[
+        {
+            text: chalk.bold('From:'),
+            padding: [1, 0, 0, 0],
+            width: overviewItemsLabelWidth,
+        },
+        {
+            text: pluginName +
+                (installedVersion ? chalk.dim(` (v${installedVersion})`) : ''),
+            padding: [1, 0, 0, 2],
+        },
+    ]);
+    ui.div(...[
+        {
+            text: chalk.bold('Name:'),
+            padding: [0, 0, 0, 0],
+            width: overviewItemsLabelWidth,
+        },
+        {
+            text: `${name}${aliases.length ? chalk.dim(` (aliases: ${aliases.join(', ')})`) : ''}`,
+            padding: [0, 0, 0, 2],
+        },
+    ]);
+    ui.div(...[
+        {
+            text: description,
+            padding: [2, 0, 1, 2],
+        },
+    ]);
+    return ui.toString();
+}
+function generateExecutorOverviewOutput({ pluginName, name, description, }) {
+    const ui = cliui(null);
+    const overviewItemsLeftPadding = 2;
+    const overviewItemsLabelWidth = overviewItemsLeftPadding + 'Executor:'.length;
+    ui.div(...[
+        {
+            text: chalk.bold('Executor:'),
+            padding: [1, 0, 0, 0],
+            width: overviewItemsLabelWidth,
+        },
+        {
+            text: `${pluginName}:${name}` +
+                (pluginName.startsWith('@nrwl/')
+                    ? chalk.dim(` (v${versions_1.nxVersion})`)
+                    : ''),
+            padding: [1, 0, 0, 0],
+        },
+    ]);
+    ui.div(...[
+        {
+            text: description,
+            padding: [2, 0, 1, 2],
+        },
+    ]);
+    return ui.toString();
+}
+const formatOptionVal = (maybeStr) => typeof maybeStr === 'string' ? `"${maybeStr}"` : JSON.stringify(maybeStr);
+// From our JSON schemas an option could possibly have more than one valid type
+const formatOptionType = (optionConfig) => {
+    if (Array.isArray(optionConfig.oneOf)) {
+        return optionConfig.oneOf
+            .map((typeConfig) => formatOptionType(typeConfig))
+            .join(' OR ');
+    }
+    return `[${optionConfig.type}]`;
+};
+function generateOptionsOutput(schema) {
+    const ui = cliui(null);
+    const flagAndAliasLeftPadding = 4;
+    const flagAndAliasRightPadding = 4;
+    // Construct option flags (including optional aliases) and descriptions and track the required space to render them
+    const optionsToRender = new Map();
+    let requiredSpaceToRenderAllFlagsAndAliases = 0;
+    const sorted = Object.entries(schema.properties).sort((a, b) => compareByPriority(a, b, schema));
+    for (const [optionName, optionConfig] of sorted) {
+        const renderedFlagAndAlias = `--${optionName}` +
+            (optionConfig.alias ? `, -${optionConfig.alias}` : '');
+        const renderedFlagAndAliasTrueWidth = stringWidth(renderedFlagAndAlias);
+        if (renderedFlagAndAliasTrueWidth > requiredSpaceToRenderAllFlagsAndAliases) {
+            requiredSpaceToRenderAllFlagsAndAliases = renderedFlagAndAliasTrueWidth;
+        }
+        const renderedDescription = optionConfig.description;
+        const renderedTypesAndDefault = `${formatOptionType(optionConfig)}${optionConfig.enum
+            ? ` [choices: ${optionConfig.enum
+                .map((e) => formatOptionVal(e))
+                .join(', ')}]`
+            : ''}${optionConfig.default
+            ? ` [default: ${formatOptionVal(optionConfig.default)}]`
+            : ''}`;
+        optionConfig.hidden ??= optionConfig.visible === false;
+        if (!optionConfig.hidden)
+            optionsToRender.set(optionName, {
+                renderedFlagAndAlias,
+                renderedDescription,
+                renderedTypesAndDefault,
+            });
+    }
+    ui.div({
+        text: 'Options:',
+        padding: [1, 0, 0, 0],
+    });
+    for (const { renderedFlagAndAlias, renderedDescription, renderedTypesAndDefault, } of optionsToRender.values()) {
+        const cols = [
+            {
+                text: renderedFlagAndAlias,
+                width: requiredSpaceToRenderAllFlagsAndAliases +
+                    flagAndAliasLeftPadding +
+                    flagAndAliasRightPadding,
+                padding: [0, flagAndAliasRightPadding, 0, flagAndAliasLeftPadding],
+            },
+            {
+                text: renderedDescription,
+                padding: [0, 0, 0, 0],
+            },
+            {
+                text: renderedTypesAndDefault,
+                padding: [0, 0, 0, 0],
+                align: 'right',
+            },
+        ];
+        ui.div(...cols);
+    }
+    return ui.toString();
+}
+function generateExamplesOutput(schema) {
+    if (!schema.examples || schema.examples.length === 0) {
+        return '';
+    }
+    const ui = cliui(null);
+    const xPadding = 4;
+    ui.div({
+        text: 'Examples:',
+        padding: [1, 0, 0, 0],
+    });
+    for (const { command, description } of schema.examples) {
+        const cols = [
+            {
+                text: command,
+                padding: [0, xPadding, 0, xPadding],
+            },
+            {
+                text: description || '',
+                padding: [0, 2, 0, 0],
+            },
+        ];
+        ui.div(...cols);
+    }
+    return ui.toString();
+}
+// TODO: generalize link generation so it works for non @nx plugins as well
+function generateLinkOutput({ pluginName, name, type, }) {
+    const nxPackagePrefix = '@nx/';
+    const nrwlPackagePrefix = '@nrwl/';
+    if (!pluginName.startsWith(nxPackagePrefix) &&
+        !pluginName.startsWith(nrwlPackagePrefix)) {
+        return '';
+    }
+    const link = `https://nx.dev/nx-api/${pluginName.substring(pluginName.startsWith(nxPackagePrefix)
+        ? nxPackagePrefix.length
+        : nrwlPackagePrefix.length)}/${type}/${name}`;
+    return `\n\n${chalk.dim('Find more information and examples at:')} ${chalk.bold(link)}`;
+}
+/**
+ * sorts properties in the following order
+ * - required
+ * - x-priority: important
+ * - everything else
+ * - x-priority: internal
+ * - deprecated
+ * if two properties have equal priority, they are sorted by name
+ */
+function compareByPriority(a, b, schema) {
+    function getPriority([name, property]) {
+        if (schema.required?.includes(name)) {
+            return 0;
+        }
+        if (property['x-priority'] === 'important') {
+            return 1;
+        }
+        if (property['x-deprecated']) {
+            return 4;
+        }
+        if (property['x-priority'] === 'internal') {
+            return 3;
+        }
+        return 2;
+    }
+    const aPriority = getPriority(a);
+    const bPriority = getPriority(b);
+    if (aPriority === bPriority) {
+        return a[0].localeCompare(b[0]);
+    }
+    return aPriority - bPriority;
+}
+
+
+/***/ }),
+
+/***/ 84463:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.projectHasTarget = projectHasTarget;
+exports.projectHasTargetAndConfiguration = projectHasTargetAndConfiguration;
+exports.getSourceDirOfDependentProjects = getSourceDirOfDependentProjects;
+exports.findAllProjectNodeDependencies = findAllProjectNodeDependencies;
+const project_graph_1 = __nccwpck_require__(54913);
+function projectHasTarget(project, target) {
+    return !!(project.data &&
+        project.data.targets &&
+        project.data.targets[target]);
+}
+function projectHasTargetAndConfiguration(project, target, configuration) {
+    return (projectHasTarget(project, target) &&
+        project.data.targets[target].configurations &&
+        project.data.targets[target].configurations[configuration]);
+}
+function getSourceDirOfDependentProjects(projectName, projectGraph = (0, project_graph_1.readCachedProjectGraph)()) {
+    if (!projectGraph.nodes[projectName]) {
+        throw new Error(`Couldn't find project "${projectName}" in this Nx workspace`);
+    }
+    const nodeNames = findAllProjectNodeDependencies(projectName, projectGraph);
+    return nodeNames.reduce((result, nodeName) => {
+        if (projectGraph.nodes[nodeName].data.sourceRoot) {
+            result[0].push(projectGraph.nodes[nodeName].data.sourceRoot);
+        }
+        else {
+            result[1].push(nodeName);
+        }
+        return result;
+    }, [[], []]);
+}
+/**
+ * Find all internal project dependencies.
+ * All the external (npm) dependencies will be filtered out unless includeExternalDependencies is set to true
+ * @param {string} parentNodeName
+ * @param {ProjectGraph} projectGraph
+ * @param includeExternalDependencies
+ * @returns {string[]}
+ */
+function findAllProjectNodeDependencies(parentNodeName, projectGraph = (0, project_graph_1.readCachedProjectGraph)(), includeExternalDependencies = false) {
+    const dependencyNodeNames = new Set();
+    collectDependentProjectNodesNames(projectGraph, dependencyNodeNames, parentNodeName, includeExternalDependencies);
+    return Array.from(dependencyNodeNames);
+}
+// Recursively get all the dependencies of the node
+function collectDependentProjectNodesNames(nxDeps, dependencyNodeNames, parentNodeName, includeExternalDependencies) {
+    const dependencies = nxDeps.dependencies[parentNodeName];
+    if (!dependencies) {
+        // no dependencies for the given node, so silently return,
+        // as we probably wouldn't want to throw here
+        return;
+    }
+    for (const dependency of dependencies) {
+        const dependencyName = dependency.target;
+        // skip dependencies already added (avoid circular dependencies)
+        if (dependencyNodeNames.has(dependencyName)) {
+            continue;
+        }
+        // we're only interested in internal nodes, not external
+        if (nxDeps.externalNodes?.[dependencyName]) {
+            if (includeExternalDependencies) {
+                dependencyNodeNames.add(dependencyName);
+            }
+            else {
+                continue;
+            }
+        }
+        dependencyNodeNames.add(dependencyName);
+        // Get the dependencies of the dependencies
+        collectDependentProjectNodesNames(nxDeps, dependencyNodeNames, dependencyName, includeExternalDependencies);
+    }
+}
+
+
 /***/ }),
 
 /***/ 25340:
@@ -293070,6 +308232,279 @@ function stripIndents(strings, ...values) {
 }
 
 
+/***/ }),
+
+/***/ 98299:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getSyncGeneratorChanges = getSyncGeneratorChanges;
+exports.flushSyncGeneratorChanges = flushSyncGeneratorChanges;
+exports.collectAllRegisteredSyncGenerators = collectAllRegisteredSyncGenerators;
+exports.runSyncGenerator = runSyncGenerator;
+exports.collectRegisteredTaskSyncGenerators = collectRegisteredTaskSyncGenerators;
+exports.collectRegisteredGlobalSyncGenerators = collectRegisteredGlobalSyncGenerators;
+exports.syncGeneratorResultsToMessageLines = syncGeneratorResultsToMessageLines;
+const perf_hooks_1 = __nccwpck_require__(4074);
+const generate_1 = __nccwpck_require__(91867);
+const generator_utils_1 = __nccwpck_require__(85331);
+const nx_json_1 = __nccwpck_require__(21173);
+const client_1 = __nccwpck_require__(76940);
+const is_on_daemon_1 = __nccwpck_require__(45153);
+const tree_1 = __nccwpck_require__(10818);
+const project_graph_1 = __nccwpck_require__(54913);
+const workspace_context_1 = __nccwpck_require__(98897);
+const workspace_root_1 = __nccwpck_require__(64393);
+const chalk = __nccwpck_require__(78818);
+async function getSyncGeneratorChanges(generators) {
+    perf_hooks_1.performance.mark('get-sync-generators-changes:start');
+    let results;
+    if (!client_1.daemonClient.enabled()) {
+        results = await runSyncGenerators(generators);
+    }
+    else {
+        results = await client_1.daemonClient.getSyncGeneratorChanges(generators);
+    }
+    perf_hooks_1.performance.mark('get-sync-generators-changes:end');
+    perf_hooks_1.performance.measure('get-sync-generators-changes', 'get-sync-generators-changes:start', 'get-sync-generators-changes:end');
+    return results.filter((r) => r.changes.length > 0);
+}
+async function flushSyncGeneratorChanges(results) {
+    if ((0, is_on_daemon_1.isOnDaemon)() || !client_1.daemonClient.enabled()) {
+        await flushSyncGeneratorChangesToDisk(results);
+    }
+    else {
+        await client_1.daemonClient.flushSyncGeneratorChangesToDisk(results.map((r) => r.generatorName));
+    }
+}
+async function collectAllRegisteredSyncGenerators(projectGraph) {
+    if (!client_1.daemonClient.enabled()) {
+        return [
+            ...collectRegisteredTaskSyncGenerators(projectGraph),
+            ...collectRegisteredGlobalSyncGenerators(),
+        ];
+    }
+    return await client_1.daemonClient.getRegisteredSyncGenerators();
+}
+async function runSyncGenerator(tree, generatorSpecifier, projects) {
+    perf_hooks_1.performance.mark(`run-sync-generator:${generatorSpecifier}:start`);
+    const { collection, generator } = (0, generate_1.parseGeneratorString)(generatorSpecifier);
+    const { implementationFactory } = (0, generator_utils_1.getGeneratorInformation)(collection, generator, workspace_root_1.workspaceRoot, projects);
+    const implementation = implementationFactory();
+    const result = await implementation(tree);
+    let callback;
+    let outOfSyncMessage;
+    if (result && typeof result === 'object') {
+        callback = result.callback;
+        outOfSyncMessage = result.outOfSyncMessage;
+    }
+    perf_hooks_1.performance.mark(`run-sync-generator:${generatorSpecifier}:end`);
+    perf_hooks_1.performance.measure(`run-sync-generator:${generatorSpecifier}`, `run-sync-generator:${generatorSpecifier}:start`, `run-sync-generator:${generatorSpecifier}:end`);
+    return {
+        changes: tree.listChanges(),
+        generatorName: generatorSpecifier,
+        callback,
+        outOfSyncMessage,
+    };
+}
+function collectRegisteredTaskSyncGenerators(projectGraph) {
+    const taskSyncGenerators = new Set();
+    for (const { data: { targets }, } of Object.values(projectGraph.nodes)) {
+        if (!targets) {
+            continue;
+        }
+        for (const target of Object.values(targets)) {
+            if (!target.syncGenerators) {
+                continue;
+            }
+            for (const generator of target.syncGenerators) {
+                taskSyncGenerators.add(generator);
+            }
+        }
+    }
+    return taskSyncGenerators;
+}
+function collectRegisteredGlobalSyncGenerators(nxJson = (0, nx_json_1.readNxJson)()) {
+    const globalSyncGenerators = new Set();
+    if (!nxJson.sync?.globalGenerators?.length) {
+        return globalSyncGenerators;
+    }
+    for (const generator of nxJson.sync.globalGenerators) {
+        globalSyncGenerators.add(generator);
+    }
+    return globalSyncGenerators;
+}
+function syncGeneratorResultsToMessageLines(results) {
+    const messageLines = [];
+    for (const result of results) {
+        messageLines.push(`The ${chalk.bold(result.generatorName)} sync generator identified ${chalk.bold(result.changes.length)} file${result.changes.length === 1 ? '' : 's'} in the workspace that ${result.changes.length === 1 ? 'is' : 'are'} out of sync${result.outOfSyncMessage ? ':' : '.'}`);
+        if (result.outOfSyncMessage) {
+            messageLines.push(result.outOfSyncMessage);
+        }
+    }
+    return messageLines;
+}
+async function runSyncGenerators(generators) {
+    const tree = new tree_1.FsTree(workspace_root_1.workspaceRoot, false, 'running sync generators');
+    const projectGraph = await (0, project_graph_1.createProjectGraphAsync)();
+    const { projects } = (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(projectGraph);
+    const results = [];
+    for (const generator of generators) {
+        const result = await runSyncGenerator(tree, generator, projects);
+        results.push(result);
+    }
+    return results;
+}
+async function flushSyncGeneratorChangesToDisk(results) {
+    perf_hooks_1.performance.mark('flush-sync-generator-changes-to-disk:start');
+    const { changes, createdFiles, updatedFiles, deletedFiles, callbacks } = processSyncGeneratorResults(results);
+    // Write changes to disk
+    (0, tree_1.flushChanges)(workspace_root_1.workspaceRoot, changes);
+    // Run the callbacks
+    if (callbacks.length) {
+        for (const callback of callbacks) {
+            await callback();
+        }
+    }
+    // Update the context files
+    await (0, workspace_context_1.updateContextWithChangedFiles)(workspace_root_1.workspaceRoot, createdFiles, updatedFiles, deletedFiles);
+    perf_hooks_1.performance.mark('flush-sync-generator-changes-to-disk:end');
+    perf_hooks_1.performance.measure('flush sync generator changes to disk', 'flush-sync-generator-changes-to-disk:start', 'flush-sync-generator-changes-to-disk:end');
+}
+function processSyncGeneratorResults(results) {
+    const changes = [];
+    const createdFiles = [];
+    const updatedFiles = [];
+    const deletedFiles = [];
+    const callbacks = [];
+    for (const result of results) {
+        if (result.callback) {
+            callbacks.push(result.callback);
+        }
+        for (const change of result.changes) {
+            changes.push(change);
+            if (change.type === 'CREATE') {
+                createdFiles.push(change.path);
+            }
+            else if (change.type === 'UPDATE') {
+                updatedFiles.push(change.path);
+            }
+            else if (change.type === 'DELETE') {
+                deletedFiles.push(change.path);
+            }
+        }
+    }
+    return { changes, createdFiles, updatedFiles, deletedFiles, callbacks };
+}
+
+
+/***/ }),
+
+/***/ 83523:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.taskHistoryFile = void 0;
+exports.getHistoryForHashes = getHistoryForHashes;
+exports.writeTaskRunsToHistory = writeTaskRunsToHistory;
+const fs_1 = __nccwpck_require__(57147);
+const path_1 = __nccwpck_require__(71017);
+const client_1 = __nccwpck_require__(76940);
+const is_on_daemon_1 = __nccwpck_require__(45153);
+const cache_directory_1 = __nccwpck_require__(11622);
+const taskRunKeys = [
+    'project',
+    'target',
+    'configuration',
+    'hash',
+    'code',
+    'status',
+    'start',
+    'end',
+];
+let taskHistory = undefined;
+let taskHashToIndicesMap = new Map();
+async function getHistoryForHashes(hashes) {
+    if ((0, is_on_daemon_1.isOnDaemon)() || !client_1.daemonClient.enabled()) {
+        if (taskHistory === undefined) {
+            loadTaskHistoryFromDisk();
+        }
+        const result = {};
+        for (let hash of hashes) {
+            const indices = taskHashToIndicesMap.get(hash);
+            if (!indices) {
+                result[hash] = [];
+            }
+            else {
+                result[hash] = indices.map((index) => taskHistory[index]);
+            }
+        }
+        return result;
+    }
+    return await client_1.daemonClient.getTaskHistoryForHashes(hashes);
+}
+async function writeTaskRunsToHistory(taskRuns) {
+    if ((0, is_on_daemon_1.isOnDaemon)() || !client_1.daemonClient.enabled()) {
+        if (taskHistory === undefined) {
+            loadTaskHistoryFromDisk();
+        }
+        const serializedLines = [];
+        for (let taskRun of taskRuns) {
+            const serializedLine = taskRunKeys.map((key) => taskRun[key]).join(',');
+            serializedLines.push(serializedLine);
+            recordTaskRunInMemory(taskRun);
+        }
+        if (!(0, fs_1.existsSync)(exports.taskHistoryFile)) {
+            (0, fs_1.writeFileSync)(exports.taskHistoryFile, `${taskRunKeys.join(',')}\n`);
+        }
+        (0, fs_1.appendFileSync)(exports.taskHistoryFile, serializedLines.join('\n') + '\n');
+    }
+    else {
+        await client_1.daemonClient.writeTaskRunsToHistory(taskRuns);
+    }
+}
+exports.taskHistoryFile = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, 'task-history.csv');
+function loadTaskHistoryFromDisk() {
+    taskHashToIndicesMap.clear();
+    taskHistory = [];
+    if (!(0, fs_1.existsSync)(exports.taskHistoryFile)) {
+        return;
+    }
+    const fileContent = (0, fs_1.readFileSync)(exports.taskHistoryFile, 'utf8');
+    if (!fileContent) {
+        return;
+    }
+    const lines = fileContent.split('\n');
+    // if there are no lines or just the header, return
+    if (lines.length <= 1) {
+        return;
+    }
+    const contentLines = lines.slice(1).filter((l) => l.trim() !== '');
+    // read the values from csv format where each header is a key and the value is the value
+    for (let line of contentLines) {
+        const values = line.trim().split(',');
+        const run = {};
+        taskRunKeys.forEach((header, index) => {
+            run[header] = values[index];
+        });
+        recordTaskRunInMemory(run);
+    }
+}
+function recordTaskRunInMemory(taskRun) {
+    const index = taskHistory.push(taskRun) - 1;
+    if (taskHashToIndicesMap.has(taskRun.hash)) {
+        taskHashToIndicesMap.get(taskRun.hash).push(index);
+    }
+    else {
+        taskHashToIndicesMap.set(taskRun.hash, [index]);
+    }
+}
+
+
 /***/ }),
 
 /***/ 10780:
@@ -293095,6 +308530,7 @@ exports.getNxWorkspaceFilesFromContext = getNxWorkspaceFilesFromContext;
 exports.globWithWorkspaceContextSync = globWithWorkspaceContextSync;
 exports.globWithWorkspaceContext = globWithWorkspaceContext;
 exports.hashWithWorkspaceContext = hashWithWorkspaceContext;
+exports.updateContextWithChangedFiles = updateContextWithChangedFiles;
 exports.updateFilesInContext = updateFilesInContext;
 exports.getAllFileDataInContext = getAllFileDataInContext;
 exports.getFilesInDirectoryUsingContext = getFilesInDirectoryUsingContext;
@@ -293146,7 +308582,23 @@ async function hashWithWorkspaceContext(workspaceRoot, globs, exclude) {
     }
     return client_1.daemonClient.hashGlob(globs, exclude);
 }
-function updateFilesInContext(updatedFiles, deletedFiles) {
+async function updateContextWithChangedFiles(workspaceRoot, createdFiles, updatedFiles, deletedFiles) {
+    if (!client_1.daemonClient.enabled()) {
+        updateFilesInContext(workspaceRoot, [...createdFiles, ...updatedFiles], deletedFiles);
+    }
+    else if ((0, is_on_daemon_1.isOnDaemon)()) {
+        // make sure to only import this when running on the daemon
+        const { addUpdatedAndDeletedFiles } = await Promise.resolve().then(() => __nccwpck_require__(96952));
+        // update files for the incremental graph recomputation on the daemon
+        addUpdatedAndDeletedFiles(createdFiles, updatedFiles, deletedFiles);
+    }
+    else {
+        // daemon is enabled but we are not running on it, ask the daemon to update the context
+        await client_1.daemonClient.updateWorkspaceContext(createdFiles, updatedFiles, deletedFiles);
+    }
+}
+function updateFilesInContext(workspaceRoot, updatedFiles, deletedFiles) {
+    ensureContextAvailable(workspaceRoot);
     return workspaceContext?.incrementalUpdate(updatedFiles, deletedFiles);
 }
 async function getAllFileDataInContext(workspaceRoot) {
@@ -294165,39 +309617,40 @@ function __napi_rs_initialize_modules(__napiInstance) {
   __napiInstance.exports['__napi_register__copy_3']?.()
   __napiInstance.exports['__napi_register__hash_array_4']?.()
   __napiInstance.exports['__napi_register__hash_file_5']?.()
-  __napiInstance.exports['__napi_register__ImportResult_struct_6']?.()
-  __napiInstance.exports['__napi_register__find_imports_7']?.()
-  __napiInstance.exports['__napi_register__transfer_project_graph_8']?.()
-  __napiInstance.exports['__napi_register__ExternalNode_struct_9']?.()
-  __napiInstance.exports['__napi_register__Target_struct_10']?.()
-  __napiInstance.exports['__napi_register__Project_struct_11']?.()
-  __napiInstance.exports['__napi_register__ProjectGraph_struct_12']?.()
-  __napiInstance.exports['__napi_register__HashPlanner_struct_13']?.()
-  __napiInstance.exports['__napi_register__HashPlanner_impl_17']?.()
-  __napiInstance.exports['__napi_register__HashDetails_struct_18']?.()
-  __napiInstance.exports['__napi_register__HasherOptions_struct_19']?.()
-  __napiInstance.exports['__napi_register__TaskHasher_struct_20']?.()
-  __napiInstance.exports['__napi_register__TaskHasher_impl_23']?.()
-  __napiInstance.exports['__napi_register__Task_struct_24']?.()
-  __napiInstance.exports['__napi_register__TaskTarget_struct_25']?.()
-  __napiInstance.exports['__napi_register__TaskGraph_struct_26']?.()
-  __napiInstance.exports['__napi_register__FileData_struct_27']?.()
-  __napiInstance.exports['__napi_register__InputsInput_struct_28']?.()
-  __napiInstance.exports['__napi_register__FileSetInput_struct_29']?.()
-  __napiInstance.exports['__napi_register__RuntimeInput_struct_30']?.()
-  __napiInstance.exports['__napi_register__EnvironmentInput_struct_31']?.()
-  __napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_32']?.()
-  __napiInstance.exports['__napi_register__DepsOutputsInput_struct_33']?.()
-  __napiInstance.exports['__napi_register__NxJson_struct_34']?.()
-  __napiInstance.exports['__napi_register__WorkspaceContext_struct_35']?.()
-  __napiInstance.exports['__napi_register__WorkspaceContext_impl_44']?.()
-  __napiInstance.exports['__napi_register__WorkspaceErrors_45']?.()
-  __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_46']?.()
-  __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_47']?.()
-  __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_48']?.()
-  __napiInstance.exports['__napi_register__FileMap_struct_49']?.()
-  __napiInstance.exports['__napi_register____test_only_transfer_file_map_50']?.()
-  __napiInstance.exports['__napi_register__IS_WASM_51']?.()
+  __napiInstance.exports['__napi_register__IS_WASM_6']?.()
+  __napiInstance.exports['__napi_register__get_binary_target_7']?.()
+  __napiInstance.exports['__napi_register__ImportResult_struct_8']?.()
+  __napiInstance.exports['__napi_register__find_imports_9']?.()
+  __napiInstance.exports['__napi_register__transfer_project_graph_10']?.()
+  __napiInstance.exports['__napi_register__ExternalNode_struct_11']?.()
+  __napiInstance.exports['__napi_register__Target_struct_12']?.()
+  __napiInstance.exports['__napi_register__Project_struct_13']?.()
+  __napiInstance.exports['__napi_register__ProjectGraph_struct_14']?.()
+  __napiInstance.exports['__napi_register__HashPlanner_struct_15']?.()
+  __napiInstance.exports['__napi_register__HashPlanner_impl_19']?.()
+  __napiInstance.exports['__napi_register__HashDetails_struct_20']?.()
+  __napiInstance.exports['__napi_register__HasherOptions_struct_21']?.()
+  __napiInstance.exports['__napi_register__TaskHasher_struct_22']?.()
+  __napiInstance.exports['__napi_register__TaskHasher_impl_25']?.()
+  __napiInstance.exports['__napi_register__Task_struct_26']?.()
+  __napiInstance.exports['__napi_register__TaskTarget_struct_27']?.()
+  __napiInstance.exports['__napi_register__TaskGraph_struct_28']?.()
+  __napiInstance.exports['__napi_register__FileData_struct_29']?.()
+  __napiInstance.exports['__napi_register__InputsInput_struct_30']?.()
+  __napiInstance.exports['__napi_register__FileSetInput_struct_31']?.()
+  __napiInstance.exports['__napi_register__RuntimeInput_struct_32']?.()
+  __napiInstance.exports['__napi_register__EnvironmentInput_struct_33']?.()
+  __napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_34']?.()
+  __napiInstance.exports['__napi_register__DepsOutputsInput_struct_35']?.()
+  __napiInstance.exports['__napi_register__NxJson_struct_36']?.()
+  __napiInstance.exports['__napi_register__WorkspaceContext_struct_37']?.()
+  __napiInstance.exports['__napi_register__WorkspaceContext_impl_46']?.()
+  __napiInstance.exports['__napi_register__WorkspaceErrors_47']?.()
+  __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_48']?.()
+  __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_49']?.()
+  __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_50']?.()
+  __napiInstance.exports['__napi_register__FileMap_struct_51']?.()
+  __napiInstance.exports['__napi_register____test_only_transfer_file_map_52']?.()
 }
 module.exports.HashPlanner = __napiModule.exports.HashPlanner
 module.exports.ImportResult = __napiModule.exports.ImportResult
@@ -294206,6 +309659,7 @@ module.exports.WorkspaceContext = __napiModule.exports.WorkspaceContext
 module.exports.copy = __napiModule.exports.copy
 module.exports.expandOutputs = __napiModule.exports.expandOutputs
 module.exports.findImports = __napiModule.exports.findImports
+module.exports.getBinaryTarget = __napiModule.exports.getBinaryTarget
 module.exports.getFilesForOutputs = __napiModule.exports.getFilesForOutputs
 module.exports.hashArray = __napiModule.exports.hashArray
 module.exports.hashFile = __napiModule.exports.hashFile
@@ -295535,7 +310989,7 @@ module.exports = JSON.parse('{"$schema":"https://json.schemastore.org/tsconfig",
 /***/ ((module) => {
 
 "use strict";
-module.exports = {"version":"19.5.0"};
+module.exports = {"version":"19.6.0"};
 
 /***/ }),
 
diff --git a/actions/run-many/dist/native-bindings.js b/actions/run-many/dist/native-bindings.js
index 5d7cd477..9c34dc6e 100644
--- a/actions/run-many/dist/native-bindings.js
+++ b/actions/run-many/dist/native-bindings.js
@@ -372,6 +372,7 @@ module.exports.copy = nativeBinding.copy
 module.exports.EventType = nativeBinding.EventType
 module.exports.expandOutputs = nativeBinding.expandOutputs
 module.exports.findImports = nativeBinding.findImports
+module.exports.getBinaryTarget = nativeBinding.getBinaryTarget
 module.exports.getFilesForOutputs = nativeBinding.getFilesForOutputs
 module.exports.hashArray = nativeBinding.hashArray
 module.exports.hashFile = nativeBinding.hashFile
diff --git a/actions/run-many/dist/nx.linux-x64-gnu.node b/actions/run-many/dist/nx.linux-x64-gnu.node
index 836b11b7..6ab26426 100644
Binary files a/actions/run-many/dist/nx.linux-x64-gnu.node and b/actions/run-many/dist/nx.linux-x64-gnu.node differ
diff --git a/actions/run-many/dist/package.json b/actions/run-many/dist/package.json
new file mode 100644
index 00000000..3a8a59d8
--- /dev/null
+++ b/actions/run-many/dist/package.json
@@ -0,0 +1,196 @@
+{
+  "name": "nx",
+  "version": "19.6.0",
+  "private": false,
+  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/nrwl/nx.git",
+    "directory": "packages/nx"
+  },
+  "scripts": {
+    "postinstall": "node ./bin/post-install"
+  },
+  "keywords": [
+    "Monorepo",
+    "Angular",
+    "React",
+    "Web",
+    "Node",
+    "Nest",
+    "Jest",
+    "Cypress",
+    "CLI",
+    "Testing",
+    "Front-end",
+    "Backend",
+    "Mobile"
+  ],
+  "bin": {
+    "nx": "./bin/nx.js",
+    "nx-cloud": "./bin/nx-cloud.js"
+  },
+  "author": "Victor Savkin",
+  "license": "MIT",
+  "bugs": {
+    "url": "https://github.com/nrwl/nx/issues"
+  },
+  "homepage": "https://nx.dev",
+  "dependencies": {
+    "@napi-rs/wasm-runtime": "0.2.4",
+    "@yarnpkg/lockfile": "^1.1.0",
+    "@yarnpkg/parsers": "3.0.0-rc.46",
+    "@zkochan/js-yaml": "0.0.7",
+    "axios": "^1.7.2",
+    "chalk": "^4.1.0",
+    "cli-cursor": "3.1.0",
+    "cli-spinners": "2.6.1",
+    "cliui": "^8.0.1",
+    "dotenv": "~16.4.5",
+    "dotenv-expand": "~11.0.6",
+    "enquirer": "~2.3.6",
+    "figures": "3.2.0",
+    "flat": "^5.0.2",
+    "front-matter": "^4.0.2",
+    "fs-extra": "^11.1.0",
+    "ignore": "^5.0.4",
+    "jest-diff": "^29.4.1",
+    "jsonc-parser": "3.2.0",
+    "lines-and-columns": "~2.0.3",
+    "minimatch": "9.0.3",
+    "npm-run-path": "^4.0.1",
+    "open": "^8.4.0",
+    "semver": "^7.5.3",
+    "string-width": "^4.2.3",
+    "strong-log-transformer": "^2.1.0",
+    "tar-stream": "~2.2.0",
+    "tmp": "~0.2.1",
+    "tsconfig-paths": "^4.1.2",
+    "tslib": "^2.3.0",
+    "yargs": "^17.6.2",
+    "yargs-parser": "21.1.1",
+    "node-machine-id": "1.1.12",
+    "ora": "5.3.0",
+    "@nrwl/tao": "19.6.0"
+  },
+  "peerDependencies": {
+    "@swc-node/register": "^1.8.0",
+    "@swc/core": "^1.3.85"
+  },
+  "peerDependenciesMeta": {
+    "@swc-node/register": {
+      "optional": true
+    },
+    "@swc/core": {
+      "optional": true
+    }
+  },
+  "optionalDependencies": {
+    "@nx/nx-darwin-x64": "19.6.0",
+    "@nx/nx-darwin-arm64": "19.6.0",
+    "@nx/nx-linux-x64-gnu": "19.6.0",
+    "@nx/nx-linux-x64-musl": "19.6.0",
+    "@nx/nx-win32-x64-msvc": "19.6.0",
+    "@nx/nx-linux-arm64-gnu": "19.6.0",
+    "@nx/nx-linux-arm64-musl": "19.6.0",
+    "@nx/nx-linux-arm-gnueabihf": "19.6.0",
+    "@nx/nx-win32-arm64-msvc": "19.6.0",
+    "@nx/nx-freebsd-x64": "19.6.0"
+  },
+  "nx-migrations": {
+    "migrations": "./migrations.json",
+    "packageGroup": [
+      "@nx/js",
+      "@nrwl/js",
+      "@nx/jest",
+      "@nrwl/jest",
+      "@nx/linter",
+      "@nx/eslint",
+      "@nrwl/linter",
+      "@nx/workspace",
+      "@nrwl/workspace",
+      "@nx/angular",
+      "@nrwl/angular",
+      "@nx/cypress",
+      "@nrwl/cypress",
+      "@nx/detox",
+      "@nrwl/detox",
+      "@nx/devkit",
+      "@nrwl/devkit",
+      "@nx/esbuild",
+      "@nrwl/esbuild",
+      "@nx/eslint-plugin",
+      "@nrwl/eslint-plugin-nx",
+      "@nx/expo",
+      "@nrwl/expo",
+      "@nx/express",
+      "@nrwl/express",
+      "@nx/gradle",
+      "@nx/nest",
+      "@nrwl/nest",
+      "@nx/next",
+      "@nrwl/next",
+      "@nx/node",
+      "@nrwl/node",
+      "@nx/nuxt",
+      "@nx/playwright",
+      "@nx/plugin",
+      "@nrwl/nx-plugin",
+      "@nx/react",
+      "@nrwl/react",
+      "@nx/react-native",
+      "@nrwl/react-native",
+      "@nx/rollup",
+      "@nrwl/rollup",
+      "@nx/remix",
+      "@nrwl/remix",
+      "@nx/storybook",
+      "@nrwl/storybook",
+      "@nrwl/tao",
+      "@nx/vite",
+      "@nrwl/vite",
+      "@nx/vue",
+      "@nx/web",
+      "@nrwl/web",
+      "@nx/webpack",
+      "@nrwl/webpack",
+      {
+        "package": "nx-cloud",
+        "version": "latest"
+      },
+      {
+        "package": "@nrwl/nx-cloud",
+        "version": "latest"
+      }
+    ]
+  },
+  "generators": "./generators.json",
+  "executors": "./executors.json",
+  "builders": "./executors.json",
+  "publishConfig": {
+    "access": "public"
+  },
+  "napi": {
+    "binaryName": "nx",
+    "packageName": "@nx/nx",
+    "wasm": {
+      "initialMemory": 1024,
+      "maximumMemory": 32768
+    },
+    "targets": [
+      "x86_64-unknown-linux-gnu",
+      "x86_64-pc-windows-msvc",
+      "x86_64-apple-darwin",
+      "aarch64-apple-darwin",
+      "aarch64-unknown-linux-gnu",
+      "aarch64-unknown-linux-musl",
+      "aarch64-pc-windows-msvc",
+      "armv7-unknown-linux-gnueabihf",
+      "x86_64-unknown-linux-musl",
+      "x86_64-unknown-freebsd"
+    ]
+  },
+  "main": "./bin/nx.js",
+  "type": "commonjs",
+  "types": "./bin/nx.d.ts"
+}
diff --git a/force-release b/force-release
index ec635144..f599e28b 100644
--- a/force-release
+++ b/force-release
@@ -1 +1 @@
-9
+10
diff --git a/package.json b/package.json
index a32c7bf2..433c8d91 100644
--- a/package.json
+++ b/package.json
@@ -33,8 +33,8 @@
   },
   "dependencies": {
     "@actions/core": "^1.10.1",
-    "@nx/devkit": "19.5.0",
-    "@nx/workspace": "19.5.0",
+    "@nx/devkit": "19.6.0",
+    "@nx/workspace": "19.6.0",
     "@types/tar": "^6.1.13",
     "axios": "^1.7.2",
     "crypto-js": "^4.2.0",
@@ -49,13 +49,13 @@
     "@google-cloud/storage": "^7.12.0",
     "@jamesives/github-pages-deploy-action": "^4.6.3",
     "@jscutlery/semver": "^5.2.2",
-    "@nx/eslint-plugin": "19.5.0",
-    "@nx/jest": "19.5.0",
-    "@nx/js": "19.5.0",
-    "@nx/node": "19.5.0",
-    "@nx/plugin": "19.5.0",
-    "@nx/react": "19.5.0",
-    "@nx/webpack": "19.5.0",
+    "@nx/eslint-plugin": "19.6.0",
+    "@nx/jest": "19.6.0",
+    "@nx/js": "19.6.0",
+    "@nx/node": "19.6.0",
+    "@nx/plugin": "19.6.0",
+    "@nx/react": "19.6.0",
+    "@nx/webpack": "19.6.0",
     "@swc-node/register": "1.10.9",
     "@swc/core": "1.7.0",
     "@types/jest": "29.5.12",
@@ -73,7 +73,7 @@
     "husky": "^9.1.0",
     "jest": "29.7.0",
     "jest-environment-jsdom": "29.7.0",
-    "nx": "19.5.0",
+    "nx": "19.6.0",
     "prettier": "3.3.3",
     "ts-jest": "29.2.2",
     "ts-node": "10.9.2",
diff --git a/packages/changelog-notify/CHANGELOG.md b/packages/changelog-notify/CHANGELOG.md
index 3bc7d42a..4d12a650 100644
--- a/packages/changelog-notify/CHANGELOG.md
+++ b/packages/changelog-notify/CHANGELOG.md
@@ -1,4 +1,18 @@
  
+# [8.0.0](https://github.com/TriPSs/nx-extend/compare/changelog-notify@7.0.4...changelog-notify@8.0.0) (2024-08-16)
+
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [7.0.4](https://github.com/TriPSs/nx-extend/compare/changelog-notify@7.0.3...changelog-notify@7.0.4) (2024-07-18)
 
 
diff --git a/packages/changelog-notify/package.json b/packages/changelog-notify/package.json
index 9dc3cf6b..d7f4bf24 100644
--- a/packages/changelog-notify/package.json
+++ b/packages/changelog-notify/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/changelog-notify",
-  "version": "7.0.4",
+  "version": "8.0.0",
   "keywords": [
     "nx",
     "changelog",
@@ -16,6 +16,9 @@
   },
   "license": "MIT",
   "main": "src/index.js",
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "builders": "./executors.json",
   "generators": "./generators.json"
 }
diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md
index 237c9061..386f3d89 100644
--- a/packages/core/CHANGELOG.md
+++ b/packages/core/CHANGELOG.md
@@ -1,4 +1,18 @@
  
+# [8.0.0](https://github.com/TriPSs/nx-extend/compare/core@7.0.3...core@8.0.0) (2024-08-16)
+
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [7.0.3](https://github.com/TriPSs/nx-extend/compare/core@7.0.2...core@7.0.3) (2024-06-17)
 
 
diff --git a/packages/core/package.json b/packages/core/package.json
index 4e8b18b1..f6d70618 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -1,8 +1,11 @@
 {
   "name": "@nx-extend/core",
-  "version": "7.0.3",
+  "version": "8.0.0",
   "license": "MIT",
   "main": "src/index.js",
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "nx-migrations": {
     "migrations": "./migrations.json"
   }
diff --git a/packages/core/src/utils/get-output-directory-from-build-target.ts b/packages/core/src/utils/get-output-directory-from-build-target.ts
index c22eccb7..afec5d8d 100644
--- a/packages/core/src/utils/get-output-directory-from-build-target.ts
+++ b/packages/core/src/utils/get-output-directory-from-build-target.ts
@@ -1,5 +1,4 @@
-import { ExecutorContext, parseTargetString, readTargetOptions } from '@nx/devkit'
-import { readCachedProjectGraph } from '@nx/workspace/src/core/project-graph'
+import { ExecutorContext, parseTargetString, readCachedProjectGraph,readTargetOptions } from '@nx/devkit'
 
 export function getOutputDirectoryFromBuildTarget(context: ExecutorContext, buildTarget: string): string | undefined {
   const targetString = parseTargetString(buildTarget, readCachedProjectGraph())
diff --git a/packages/docusaurus/CHANGELOG.md b/packages/docusaurus/CHANGELOG.md
index 7fc84d63..1f6808c8 100644
--- a/packages/docusaurus/CHANGELOG.md
+++ b/packages/docusaurus/CHANGELOG.md
@@ -1,4 +1,18 @@
  
+# [2.0.0](https://github.com/TriPSs/nx-extend/compare/docusaurus@1.0.1...docusaurus@2.0.0) (2024-08-16)
+
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [1.0.1](https://github.com/TriPSs/nx-extend/compare/docusaurus@1.0.0...docusaurus@1.0.1) (2024-07-18)
 
 
diff --git a/packages/docusaurus/package.json b/packages/docusaurus/package.json
index 7c84cbd7..10f0ba5e 100644
--- a/packages/docusaurus/package.json
+++ b/packages/docusaurus/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/docusaurus",
-  "version": "1.0.1",
+  "version": "2.0.0",
   "keywords": [
     "nx",
     "docusaurus"
@@ -15,8 +15,6 @@
   },
   "license": "MIT",
   "main": "src/index.js",
-  "builders": "./executors.json",
-  "generators": "./generators.json",
   "dependencies": {
     "@docusaurus/core": "3.4.0",
     "@docusaurus/preset-classic": "3.4.0",
@@ -31,5 +29,10 @@
     "@docusaurus/tsconfig": "3.4.0",
     "@docusaurus/types": "3.4.0",
     "typescript": "~5.5.3"
-  }
+  },
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
+  "builders": "./executors.json",
+  "generators": "./generators.json"
 }
diff --git a/packages/e2e-runner/CHANGELOG.md b/packages/e2e-runner/CHANGELOG.md
index 53a24f35..23dafa15 100644
--- a/packages/e2e-runner/CHANGELOG.md
+++ b/packages/e2e-runner/CHANGELOG.md
@@ -1,4 +1,22 @@
  
+# [11.0.0](https://github.com/TriPSs/nx-extend/compare/e2e-runner@10.0.5...e2e-runner@11.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `playwright` updated to version `9.0.0`
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [10.0.5](https://github.com/TriPSs/nx-extend/compare/e2e-runner@10.0.4...e2e-runner@10.0.5) (2024-07-18)
 
 ### Dependency Updates
diff --git a/packages/e2e-runner/package.json b/packages/e2e-runner/package.json
index 3eaf7d3a..a1af8694 100644
--- a/packages/e2e-runner/package.json
+++ b/packages/e2e-runner/package.json
@@ -1,9 +1,6 @@
 {
   "name": "@nx-extend/e2e-runner",
-  "version": "10.0.5",
-  "main": "src/index.js",
-  "generators": "./generators.json",
-  "executors": "./executors.json",
+  "version": "11.0.0",
   "homepage": "https://github.com/TriPSs/nx-extend/blob/master/packages/e2e-runner/README.md",
   "bugs": {
     "url": "https://github.com/tripss/nx-extend/issues"
@@ -13,6 +10,12 @@
     "url": "git+https://github.com/tripss/nx-extend"
   },
   "license": "MIT",
+  "main": "src/index.js",
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
+  "executors": "./executors.json",
+  "generators": "./generators.json",
   "nx-migrations": {
     "migrations": "./migrations.json"
   }
diff --git a/packages/e2e-runner/src/executors/run/utils/nx-target.ts b/packages/e2e-runner/src/executors/run/utils/nx-target.ts
index 0fd1b430..4acc4541 100644
--- a/packages/e2e-runner/src/executors/run/utils/nx-target.ts
+++ b/packages/e2e-runner/src/executors/run/utils/nx-target.ts
@@ -1,5 +1,4 @@
-import { logger, parseTargetString } from '@nx/devkit'
-import { readCachedProjectGraph } from '@nx/workspace/src/core/project-graph'
+import { logger, parseTargetString, readCachedProjectGraph } from '@nx/devkit'
 import { buildCommand, getPackageManagerDlxCommand, USE_VERBOSE_LOGGING } from '@nx-extend/core'
 import * as childProcess from 'child_process'
 
diff --git a/packages/firebase-hosting/CHANGELOG.md b/packages/firebase-hosting/CHANGELOG.md
index cfe4c27b..8eb6b1df 100644
--- a/packages/firebase-hosting/CHANGELOG.md
+++ b/packages/firebase-hosting/CHANGELOG.md
@@ -1,4 +1,21 @@
  
+# [8.0.0](https://github.com/TriPSs/nx-extend/compare/firebase-hosting@7.0.3...firebase-hosting@8.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [7.0.3](https://github.com/TriPSs/nx-extend/compare/firebase-hosting@7.0.2...firebase-hosting@7.0.3) (2024-06-17)
 
 ### Dependency Updates
diff --git a/packages/firebase-hosting/package.json b/packages/firebase-hosting/package.json
index 28d44aff..35025ad5 100644
--- a/packages/firebase-hosting/package.json
+++ b/packages/firebase-hosting/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/firebase-hosting",
-  "version": "7.0.3",
+  "version": "8.0.0",
   "homepage": "https://github.com/TriPSs/nx-extend/blob/master/packages/firebase-hosting/README.md",
   "bugs": {
     "url": "https://github.com/tripss/nx-extend/issues"
@@ -11,6 +11,9 @@
   },
   "license": "MIT",
   "main": "src/index.js",
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "builders": "./executors.json",
   "generators": "./generators.json"
 }
diff --git a/packages/gcp-cloud-run/CHANGELOG.md b/packages/gcp-cloud-run/CHANGELOG.md
index 6029d665..acc520c2 100644
--- a/packages/gcp-cloud-run/CHANGELOG.md
+++ b/packages/gcp-cloud-run/CHANGELOG.md
@@ -1,4 +1,21 @@
  
+# [11.0.0](https://github.com/TriPSs/nx-extend/compare/gcp-cloud-run@10.1.5...gcp-cloud-run@11.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [10.1.5](https://github.com/TriPSs/nx-extend/compare/gcp-cloud-run@10.1.4...gcp-cloud-run@10.1.5) (2024-06-17)
 
 ### Dependency Updates
diff --git a/packages/gcp-cloud-run/package.json b/packages/gcp-cloud-run/package.json
index 6bb8a9b1..e7d0e1ef 100644
--- a/packages/gcp-cloud-run/package.json
+++ b/packages/gcp-cloud-run/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/gcp-cloud-run",
-  "version": "10.1.5",
+  "version": "11.0.0",
   "homepage": "https://github.com/TriPSs/nx-extend/blob/master/packages/gcp-cloud-run/README.md",
   "bugs": {
     "url": "https://github.com/tripss/nx-extend/issues"
@@ -11,6 +11,9 @@
   },
   "license": "MIT",
   "main": "src/index.js",
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "builders": "./executors.json",
   "generators": "./generators.json"
 }
diff --git a/packages/gcp-deployment-manager/CHANGELOG.md b/packages/gcp-deployment-manager/CHANGELOG.md
index 758b03c9..8e82c50e 100644
--- a/packages/gcp-deployment-manager/CHANGELOG.md
+++ b/packages/gcp-deployment-manager/CHANGELOG.md
@@ -1,4 +1,21 @@
  
+# [9.0.0](https://github.com/TriPSs/nx-extend/compare/gcp-deployment-manager@8.0.3...gcp-deployment-manager@9.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [8.0.3](https://github.com/TriPSs/nx-extend/compare/gcp-deployment-manager@8.0.2...gcp-deployment-manager@8.0.3) (2024-06-17)
 
 ### Dependency Updates
diff --git a/packages/gcp-deployment-manager/package.json b/packages/gcp-deployment-manager/package.json
index 9fc609e9..9f73f6bb 100644
--- a/packages/gcp-deployment-manager/package.json
+++ b/packages/gcp-deployment-manager/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/gcp-deployment-manager",
-  "version": "8.0.3",
+  "version": "9.0.0",
   "homepage": "https://github.com/TriPSs/nx-extend/blob/master/packages/gcp-deployment-manager/README.md",
   "bugs": {
     "url": "https://github.com/tripss/nx-extend/issues"
@@ -11,6 +11,9 @@
   },
   "license": "MIT",
   "main": "src/index.js",
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "builders": "./executors.json",
   "generators": "./generators.json"
 }
diff --git a/packages/gcp-functions/CHANGELOG.md b/packages/gcp-functions/CHANGELOG.md
index c70c749f..2fb99cca 100644
--- a/packages/gcp-functions/CHANGELOG.md
+++ b/packages/gcp-functions/CHANGELOG.md
@@ -1,4 +1,22 @@
  
+# [14.0.0](https://github.com/TriPSs/nx-extend/compare/gcp-functions@13.1.10...gcp-functions@14.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+* Updated Nx to 19.6.0 ([32b5175](https://github.com/TriPSs/nx-extend/commit/32b517596ba4698046a104d232aba936a5cc1d7b))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [13.1.10](https://github.com/TriPSs/nx-extend/compare/gcp-functions@13.1.9...gcp-functions@13.1.10) (2024-07-21)
 
 
diff --git a/packages/gcp-functions/package.json b/packages/gcp-functions/package.json
index 606668fa..109cc867 100644
--- a/packages/gcp-functions/package.json
+++ b/packages/gcp-functions/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/gcp-functions",
-  "version": "13.1.10",
+  "version": "14.0.0",
   "homepage": "https://github.com/TriPSs/nx-extend/blob/master/packages/gcp-functions/README.md",
   "bugs": {
     "url": "https://github.com/tripss/nx-extend/issues"
@@ -11,14 +11,17 @@
   },
   "license": "MIT",
   "main": "src/index.js",
-  "builders": "./executors.json",
-  "generators": "./generators.json",
   "devDependencies": {
     "@google-cloud/functions-framework": "^3.4.1",
     "@nestjs/common": "^10.3.10",
     "@nestjs/core": "^10.3.10",
     "@nestjs/platform-express": "^10.3.10"
   },
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
+  "builders": "./executors.json",
+  "generators": "./generators.json",
   "nx-migrations": {
     "migrations": "./migrations.json"
   }
diff --git a/packages/gcp-functions/runner/index.ts b/packages/gcp-functions/runner/index.ts
index d0f18345..32572d43 100644
--- a/packages/gcp-functions/runner/index.ts
+++ b/packages/gcp-functions/runner/index.ts
@@ -10,6 +10,8 @@ import type { DeployExecutorSchema } from '@nx-extend/gcp-functions/src/executor
 
 import { createRunnerModule } from './__runner.module'
 
+declare const module
+
 export type NxEndpoint = {
   endpoint: string
   func: HttpFunction
@@ -52,6 +54,11 @@ export async function bootstrapRunner(basicFunctionsMap: RunnerFunctionsMap, opt
   })
 
   await app.listen(options.port || 8080, '0.0.0.0').then(() => {
-    Logger.log('Functions running on http://localhost:8080')
+    Logger.log(`Functions running on http://localhost:${options.port || 8080}`)
   })
+
+  if (module.hot) {
+    module.hot.accept();
+    module.hot.dispose(() => app.close());
+  }
 }
diff --git a/packages/gcp-functions/src/utils/generate-package-json.ts b/packages/gcp-functions/src/utils/generate-package-json.ts
index 94f33464..70c7f256 100644
--- a/packages/gcp-functions/src/utils/generate-package-json.ts
+++ b/packages/gcp-functions/src/utils/generate-package-json.ts
@@ -2,11 +2,11 @@ import {
   detectPackageManager,
   ExecutorContext,
   logger,
+  readCachedProjectGraph,
   readJsonFile,
   writeJsonFile
 } from '@nx/devkit'
 import { createLockFile, createPackageJson } from '@nx/js'
-import { readCachedProjectGraph } from '@nx/workspace/src/core/project-graph'
 import * as fs from 'fs'
 import { getLockFileName } from 'nx/src/plugins/js/lock-file/lock-file'
 import { fileExists } from 'nx/src/utils/fileutils'
@@ -19,7 +19,7 @@ export const generatePackageJson = (
   options: WebpackExecutorOptions,
   outFile: string,
   omitOptionalDependencies = true,
-  generateLockFile?: boolean,
+  generateLockFile?: boolean
 ) => {
   const { root } = context.workspace.projects[context.projectName]
 
diff --git a/packages/gcp-secrets/CHANGELOG.md b/packages/gcp-secrets/CHANGELOG.md
index 1676eb97..8c651970 100644
--- a/packages/gcp-secrets/CHANGELOG.md
+++ b/packages/gcp-secrets/CHANGELOG.md
@@ -1,4 +1,21 @@
  
+# [10.0.0](https://github.com/TriPSs/nx-extend/compare/gcp-secrets@9.0.3...gcp-secrets@10.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [9.0.3](https://github.com/TriPSs/nx-extend/compare/gcp-secrets@9.0.2...gcp-secrets@9.0.3) (2024-06-17)
 
 ### Dependency Updates
diff --git a/packages/gcp-secrets/package.json b/packages/gcp-secrets/package.json
index 02710c44..bd0fd306 100644
--- a/packages/gcp-secrets/package.json
+++ b/packages/gcp-secrets/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/gcp-secrets",
-  "version": "9.0.3",
+  "version": "10.0.0",
   "homepage": "https://github.com/TriPSs/nx-extend/blob/master/packages/gcp-secrets/README.md",
   "bugs": {
     "url": "https://github.com/tripss/nx-extend/issues"
@@ -11,6 +11,9 @@
   },
   "license": "MIT",
   "main": "src/index.js",
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "builders": "./executors.json",
   "generators": "./generators.json"
 }
diff --git a/packages/gcp-storage/CHANGELOG.md b/packages/gcp-storage/CHANGELOG.md
index b6cd9f3f..e097e0cd 100644
--- a/packages/gcp-storage/CHANGELOG.md
+++ b/packages/gcp-storage/CHANGELOG.md
@@ -1,4 +1,21 @@
  
+# [9.0.0](https://github.com/TriPSs/nx-extend/compare/gcp-storage@8.0.3...gcp-storage@9.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [8.0.3](https://github.com/TriPSs/nx-extend/compare/gcp-storage@8.0.2...gcp-storage@8.0.3) (2024-06-17)
 
 ### Dependency Updates
diff --git a/packages/gcp-storage/package.json b/packages/gcp-storage/package.json
index bf5539ba..0330d0f3 100644
--- a/packages/gcp-storage/package.json
+++ b/packages/gcp-storage/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/gcp-storage",
-  "version": "8.0.3",
+  "version": "9.0.0",
   "keywords": [
     "nx",
     "google cloud platform",
@@ -19,6 +19,9 @@
   },
   "license": "MIT",
   "main": "src/index.js",
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "builders": "./executors.json",
   "generators": "./generators.json"
 }
diff --git a/packages/gcp-task-runner/CHANGELOG.md b/packages/gcp-task-runner/CHANGELOG.md
index fd936690..2cc2210b 100644
--- a/packages/gcp-task-runner/CHANGELOG.md
+++ b/packages/gcp-task-runner/CHANGELOG.md
@@ -1,4 +1,19 @@
  
+# [8.0.0](https://github.com/TriPSs/nx-extend/compare/gcp-task-runner@7.0.3...gcp-task-runner@8.0.0) (2024-08-16)
+
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+* Updated Nx to 19.6.0 ([32b5175](https://github.com/TriPSs/nx-extend/commit/32b517596ba4698046a104d232aba936a5cc1d7b))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [7.0.3](https://github.com/TriPSs/nx-extend/compare/gcp-task-runner@7.0.2...gcp-task-runner@7.0.3) (2024-07-18)
 
 
diff --git a/packages/gcp-task-runner/package.json b/packages/gcp-task-runner/package.json
index 87077db6..3aa10c6f 100644
--- a/packages/gcp-task-runner/package.json
+++ b/packages/gcp-task-runner/package.json
@@ -1,8 +1,11 @@
 {
   "name": "@nx-extend/gcp-task-runner",
-  "version": "7.0.3",
+  "version": "8.0.0",
   "main": "src/index.js",
   "dependencies": {
     "@google-cloud/storage": "7.12.0"
+  },
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
   }
 }
diff --git a/packages/github-pages/CHANGELOG.md b/packages/github-pages/CHANGELOG.md
index 7fad80a2..bed1eeaf 100644
--- a/packages/github-pages/CHANGELOG.md
+++ b/packages/github-pages/CHANGELOG.md
@@ -1,4 +1,18 @@
  
+# [8.0.0](https://github.com/TriPSs/nx-extend/compare/github-pages@7.0.3...github-pages@8.0.0) (2024-08-16)
+
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [7.0.3](https://github.com/TriPSs/nx-extend/compare/github-pages@7.0.2...github-pages@7.0.3) (2024-07-18)
 
 
diff --git a/packages/github-pages/package.json b/packages/github-pages/package.json
index cb85e616..fc506941 100644
--- a/packages/github-pages/package.json
+++ b/packages/github-pages/package.json
@@ -1,7 +1,10 @@
 {
   "name": "@nx-extend/github-pages",
-  "version": "7.0.3",
+  "version": "8.0.0",
   "main": "src/index.js",
-  "generators": "./generators.json",
-  "executors": "./executors.json"
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
+  "executors": "./executors.json",
+  "generators": "./generators.json"
 }
diff --git a/packages/playwright/CHANGELOG.md b/packages/playwright/CHANGELOG.md
index bd1bfeb4..67a6c2c6 100644
--- a/packages/playwright/CHANGELOG.md
+++ b/packages/playwright/CHANGELOG.md
@@ -1,4 +1,21 @@
  
+# [9.0.0](https://github.com/TriPSs/nx-extend/compare/playwright@8.0.3...playwright@9.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [8.0.3](https://github.com/TriPSs/nx-extend/compare/playwright@8.0.2...playwright@8.0.3) (2024-06-17)
 
 ### Dependency Updates
diff --git a/packages/playwright/package.json b/packages/playwright/package.json
index 10fafdac..c440a661 100644
--- a/packages/playwright/package.json
+++ b/packages/playwright/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/playwright",
-  "version": "8.0.3",
+  "version": "9.0.0",
   "keywords": [
     "nx",
     "playwright"
@@ -15,6 +15,9 @@
   },
   "license": "MIT",
   "main": "src/index.js",
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "builders": "./executors.json",
   "generators": "./generators.json"
 }
diff --git a/packages/pulumi/CHANGELOG.md b/packages/pulumi/CHANGELOG.md
index 6b86726d..7043218a 100644
--- a/packages/pulumi/CHANGELOG.md
+++ b/packages/pulumi/CHANGELOG.md
@@ -1,4 +1,21 @@
  
+# [7.0.0](https://github.com/TriPSs/nx-extend/compare/pulumi@6.2.3...pulumi@7.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [6.2.3](https://github.com/TriPSs/nx-extend/compare/pulumi@6.2.2...pulumi@6.2.3) (2024-06-17)
 
 ### Dependency Updates
diff --git a/packages/pulumi/package.json b/packages/pulumi/package.json
index 5e8bd4c6..7c5db8c1 100644
--- a/packages/pulumi/package.json
+++ b/packages/pulumi/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/pulumi",
-  "version": "6.2.3",
+  "version": "7.0.0",
   "keywords": [
     "nx",
     "pulumi"
@@ -15,6 +15,9 @@
   },
   "license": "MIT",
   "main": "src/index.js",
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "builders": "./executors.json",
   "generators": "./generators.json"
 }
diff --git a/packages/react-email/CHANGELOG.md b/packages/react-email/CHANGELOG.md
index 901190c7..336601fc 100644
--- a/packages/react-email/CHANGELOG.md
+++ b/packages/react-email/CHANGELOG.md
@@ -1,4 +1,21 @@
  
+# [3.0.0](https://github.com/TriPSs/nx-extend/compare/react-email@2.0.4...react-email@3.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [2.0.4](https://github.com/TriPSs/nx-extend/compare/react-email@2.0.3...react-email@2.0.4) (2024-07-18)
 
 
diff --git a/packages/react-email/package.json b/packages/react-email/package.json
index 4aacf994..df843bf5 100644
--- a/packages/react-email/package.json
+++ b/packages/react-email/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/react-email",
-  "version": "2.0.4",
+  "version": "3.0.0",
   "keywords": [
     "nx",
     "react-email"
@@ -19,6 +19,9 @@
     "@react-email/components": "0.0.21",
     "react-email": "2.1.5"
   },
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "builders": "./executors.json",
   "generators": "./generators.json"
 }
diff --git a/packages/shadcn-ui/CHANGELOG.md b/packages/shadcn-ui/CHANGELOG.md
index 4855d5e0..3bdcd587 100644
--- a/packages/shadcn-ui/CHANGELOG.md
+++ b/packages/shadcn-ui/CHANGELOG.md
@@ -1,4 +1,22 @@
  
+# [3.0.0](https://github.com/TriPSs/nx-extend/compare/shadcn-ui@2.0.4...shadcn-ui@3.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+* Updated Nx to 19.6.0 ([32b5175](https://github.com/TriPSs/nx-extend/commit/32b517596ba4698046a104d232aba936a5cc1d7b))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [2.0.4](https://github.com/TriPSs/nx-extend/compare/shadcn-ui@2.0.3...shadcn-ui@2.0.4) (2024-07-18)
 
 
diff --git a/packages/shadcn-ui/package.json b/packages/shadcn-ui/package.json
index c389dbd5..8dce9d67 100644
--- a/packages/shadcn-ui/package.json
+++ b/packages/shadcn-ui/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/shadcn-ui",
-  "version": "2.0.4",
+  "version": "3.0.0",
   "keywords": [
     "nx",
     "shadcn-ui"
@@ -22,6 +22,9 @@
     "tailwind-merge": "^2.4.0",
     "tailwindcss-animate": "^1.0.7"
   },
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "builders": "./executors.json",
   "generators": "./generators.json"
 }
diff --git a/packages/shadcn-ui/src/generators/init/init.impl.ts b/packages/shadcn-ui/src/generators/init/init.impl.ts
index 5463d24e..33f082ef 100644
--- a/packages/shadcn-ui/src/generators/init/init.impl.ts
+++ b/packages/shadcn-ui/src/generators/init/init.impl.ts
@@ -110,7 +110,9 @@ export default async function (tree: Tree, options: ShadecnUiSchema) {
         'tailwind-merge': '^2.3.0',
         'tailwindcss-animate': '^1.0.7'
       },
-      {}
+      {
+        tailwindcss: '^3.4.6'
+      }
     )
   )
 }
diff --git a/packages/strapi/CHANGELOG.md b/packages/strapi/CHANGELOG.md
index 79d77070..65093ca0 100644
--- a/packages/strapi/CHANGELOG.md
+++ b/packages/strapi/CHANGELOG.md
@@ -1,4 +1,21 @@
  
+# [11.0.0](https://github.com/TriPSs/nx-extend/compare/strapi@10.0.4...strapi@11.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [10.0.4](https://github.com/TriPSs/nx-extend/compare/strapi@10.0.3...strapi@10.0.4) (2024-07-18)
 
 
diff --git a/packages/strapi/package.json b/packages/strapi/package.json
index 843ff6d2..83cad86d 100644
--- a/packages/strapi/package.json
+++ b/packages/strapi/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/strapi",
-  "version": "10.0.4",
+  "version": "11.0.0",
   "keywords": [
     "nx",
     "strapi"
@@ -19,6 +19,9 @@
     "@strapi/generate-new": "4.25.4",
     "@strapi/strapi": "4.25.4"
   },
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "builders": "./executors.json",
   "generators": "./generators.json"
 }
diff --git a/packages/strapi/src/utils/create-package-json.ts b/packages/strapi/src/utils/create-package-json.ts
index daf74376..e08813e7 100644
--- a/packages/strapi/src/utils/create-package-json.ts
+++ b/packages/strapi/src/utils/create-package-json.ts
@@ -1,7 +1,6 @@
-import { detectPackageManager, readJsonFile, writeJsonFile } from '@nx/devkit'
+import { detectPackageManager, readCachedProjectGraph, readJsonFile, writeJsonFile } from '@nx/devkit'
 import { createLockFile, createPackageJson as generatePackageJson } from '@nx/js'
-import { readCachedProjectGraph } from '@nx/workspace/src/core/project-graph'
-import { existsSync,writeFileSync } from 'fs'
+import { existsSync, writeFileSync } from 'fs'
 import { getLockFileName } from 'nx/src/plugins/js/lock-file/lock-file'
 
 import type { ExecutorContext } from '@nx/devkit'
diff --git a/packages/strapi/src/with-nx.ts b/packages/strapi/src/with-nx.ts
index 12f0693b..739402c8 100644
--- a/packages/strapi/src/with-nx.ts
+++ b/packages/strapi/src/with-nx.ts
@@ -1,5 +1,4 @@
-import { parseTargetString, workspaceRoot } from '@nx/devkit'
-import { readCachedProjectGraph } from '@nx/workspace/src/core/project-graph'
+import { parseTargetString, readCachedProjectGraph, workspaceRoot } from '@nx/devkit'
 import path from 'node:path'
 
 export function withNx(config: any, webpack: any) {
diff --git a/packages/terraform/CHANGELOG.md b/packages/terraform/CHANGELOG.md
index 06c31e09..54c7e9c9 100644
--- a/packages/terraform/CHANGELOG.md
+++ b/packages/terraform/CHANGELOG.md
@@ -1,4 +1,21 @@
  
+# [7.0.0](https://github.com/TriPSs/nx-extend/compare/terraform@6.0.5...terraform@7.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 ## [6.0.5](https://github.com/TriPSs/nx-extend/compare/terraform@6.0.4...terraform@6.0.5) (2024-06-20)
 
 
diff --git a/packages/terraform/package.json b/packages/terraform/package.json
index ec6f7616..f480d904 100644
--- a/packages/terraform/package.json
+++ b/packages/terraform/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/terraform",
-  "version": "6.0.5",
+  "version": "7.0.0",
   "keywords": [
     "nx",
     "terraform"
@@ -15,6 +15,9 @@
   },
   "license": "MIT",
   "main": "src/index.js",
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "builders": "./executors.json",
   "generators": "./generators.json",
   "dependencies": {
diff --git a/packages/translations/CHANGELOG.md b/packages/translations/CHANGELOG.md
index ede4ff60..72f218de 100644
--- a/packages/translations/CHANGELOG.md
+++ b/packages/translations/CHANGELOG.md
@@ -1,4 +1,21 @@
  
+# [14.0.0](https://github.com/TriPSs/nx-extend/compare/translations@13.1.0...translations@14.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 # [13.1.0](https://github.com/TriPSs/nx-extend/compare/translations@13.0.4...translations@13.1.0) (2024-07-04)
 
 
diff --git a/packages/translations/package.json b/packages/translations/package.json
index 0908335f..db765ed7 100644
--- a/packages/translations/package.json
+++ b/packages/translations/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/translations",
-  "version": "13.1.0",
+  "version": "14.0.0",
   "keywords": [
     "nx",
     "translations",
@@ -24,6 +24,9 @@
   "dependencies": {
     "@formatjs/cli": "^6.2.12"
   },
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "builders": "./executors.json",
   "generators": "./generators.json"
 }
diff --git a/packages/translations/src/executors/extract/extract.impl.ts b/packages/translations/src/executors/extract/extract.impl.ts
index 2008d3a6..3283c3e4 100644
--- a/packages/translations/src/executors/extract/extract.impl.ts
+++ b/packages/translations/src/executors/extract/extract.impl.ts
@@ -1,5 +1,4 @@
-import { ExecutorContext, logger } from '@nx/devkit'
-import { createProjectGraphAsync } from '@nx/workspace/src/core/project-graph'
+import { createProjectGraphAsync, ExecutorContext, logger } from '@nx/devkit'
 import { buildCommand, execCommand } from '@nx-extend/core'
 import { join } from 'path'
 
diff --git a/packages/vercel/CHANGELOG.md b/packages/vercel/CHANGELOG.md
index 10bf0fbe..7cc7a402 100644
--- a/packages/vercel/CHANGELOG.md
+++ b/packages/vercel/CHANGELOG.md
@@ -1,4 +1,21 @@
  
+# [10.0.0](https://github.com/TriPSs/nx-extend/compare/vercel@9.0.0...vercel@10.0.0) (2024-08-16)
+
+### Dependency Updates
+
+* `core` updated to version `8.0.0`
+
+### Features
+
+* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
+
+
+### BREAKING CHANGES
+
+* `@nx/devkit` no longer included as dependency
+
+
+
 # [9.0.0](https://github.com/TriPSs/nx-extend/compare/vercel@8.1.1...vercel@9.0.0) (2024-07-04)
 
 
diff --git a/packages/vercel/package.json b/packages/vercel/package.json
index cd61d075..e2e1d48c 100644
--- a/packages/vercel/package.json
+++ b/packages/vercel/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx-extend/vercel",
-  "version": "9.0.0",
+  "version": "10.0.0",
   "keywords": [
     "nx",
     "vercel"
@@ -15,6 +15,9 @@
   },
   "license": "MIT",
   "main": "src/index.js",
+  "peerDependencies": {
+    "@nx/devkit": "^19.6.0"
+  },
   "builders": "./executors.json",
   "generators": "./generators.json"
 }
diff --git a/packages/vercel/src/executors/build/build.impl.ts b/packages/vercel/src/executors/build/build.impl.ts
index 07bc51fc..321adeda 100644
--- a/packages/vercel/src/executors/build/build.impl.ts
+++ b/packages/vercel/src/executors/build/build.impl.ts
@@ -1,7 +1,12 @@
-import { parseTargetString, readJsonFile, workspaceRoot, writeJsonFile } from '@nx/devkit'
+import { parseTargetString, readCachedProjectGraph, readJsonFile, workspaceRoot, writeJsonFile } from '@nx/devkit'
 import { targetToTargetString } from '@nx/devkit/src/executors/parse-target-string'
-import { readCachedProjectGraph } from '@nx/workspace/src/core/project-graph'
-import { buildCommand, copyFile, execCommand, USE_VERBOSE_LOGGING } from '@nx-extend/core'
+import {
+  buildCommand,
+  copyFile,
+  execCommand,
+  getOutputDirectoryFromBuildTarget,
+  USE_VERBOSE_LOGGING
+} from '@nx-extend/core'
 import { existsSync, rmSync } from 'fs'
 import { join } from 'path'
 
@@ -10,7 +15,6 @@ import type { ExecutorContext } from '@nx/devkit'
 import { addEnvVariablesToFile } from '../../utils/add-env-variables-to-file'
 import { enrichVercelEnvFile } from '../../utils/enrich-vercel-env-file'
 import { getEnvVars } from '../../utils/get-env-vars'
-import { getOutputDirectoryFromBuildTarget } from '../../utils/get-output-directory-from-build-target'
 import { vercelToken } from '../../utils/vercel-token'
 import { getOutputDirectory } from './utils/get-output-directory'
 
diff --git a/packages/vercel/src/executors/deploy/deploy.impl.ts b/packages/vercel/src/executors/deploy/deploy.impl.ts
index 8a897f35..1087bc36 100644
--- a/packages/vercel/src/executors/deploy/deploy.impl.ts
+++ b/packages/vercel/src/executors/deploy/deploy.impl.ts
@@ -1,11 +1,16 @@
 import * as githubCore from '@actions/core'
-import { buildCommand, execCommand, isCI, USE_VERBOSE_LOGGING } from '@nx-extend/core'
+import {
+  buildCommand,
+  execCommand,
+  getOutputDirectoryFromBuildTarget,
+  isCI,
+  USE_VERBOSE_LOGGING
+} from '@nx-extend/core'
 import { existsSync } from 'fs'
 import { join } from 'path'
 
 import type { ExecutorContext } from '@nx/devkit'
 
-import { getOutputDirectoryFromBuildTarget } from '../../utils/get-output-directory-from-build-target'
 import { vercelToken } from '../../utils/vercel-token'
 
 export interface DeployOptions {
diff --git a/packages/vercel/src/utils/get-output-directory-from-build-target.ts b/packages/vercel/src/utils/get-output-directory-from-build-target.ts
deleted file mode 100644
index c22eccb7..00000000
--- a/packages/vercel/src/utils/get-output-directory-from-build-target.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { ExecutorContext, parseTargetString, readTargetOptions } from '@nx/devkit'
-import { readCachedProjectGraph } from '@nx/workspace/src/core/project-graph'
-
-export function getOutputDirectoryFromBuildTarget(context: ExecutorContext, buildTarget: string): string | undefined {
-  const targetString = parseTargetString(buildTarget, readCachedProjectGraph())
-  const targetOptions = readTargetOptions(targetString, context)
-  const outputDirectory = targetOptions?.outputPath
-
-  if (!outputDirectory && targetOptions?.buildTarget) {
-    return getOutputDirectoryFromBuildTarget(context, targetOptions?.buildTarget)
-  }
-
-  return outputDirectory
-}
diff --git a/tsconfig.base.json b/tsconfig.base.json
index 46ed8125..60406692 100644
--- a/tsconfig.base.json
+++ b/tsconfig.base.json
@@ -17,6 +17,7 @@
     "paths": {
       "@nx-extend/changelog-notify": ["packages/changelog-notify/src/index.ts"],
       "@nx-extend/core": ["packages/core/src/index.ts"],
+      "@nx-extend/docusaurus": ["packages/docusaurus/src/index.ts"],
       "@nx-extend/e2e-runner": ["packages/e2e-runner/src/index.ts"],
       "@nx-extend/firebase-hosting": ["packages/firebase-hosting/src/index.ts"],
       "@nx-extend/gcp-cloud-run": ["packages/gcp-cloud-run/src/index.ts"],
@@ -32,8 +33,7 @@
       "@nx-extend/react-email": ["packages/react-email/src/index.ts"],
       "@nx-extend/strapi": ["packages/strapi/src/index.ts"],
       "@nx-extend/translations": ["packages/translations/src/index.ts"],
-      "@nx-extend/vercel": ["packages/vercel/src/index.ts"],
-      "@nx-extend/docusaurus": ["packages/docusaurus/src/index.ts"]
+      "@nx-extend/vercel": ["packages/vercel/src/index.ts"]
     }
   },
   "exclude": ["node_modules", "tmp"]
diff --git a/yarn.lock b/yarn.lock
index 0451c9f6..9cd55d8d 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -6640,6 +6640,38 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@jsonjoy.com/base64@npm:^1.1.1":
+  version: 1.1.2
+  resolution: "@jsonjoy.com/base64@npm:1.1.2"
+  peerDependencies:
+    tslib: 2
+  checksum: 10/d76bb58eff841c090d9bf69a073611ffa73c40a664ccbcea689f65961f57d7b24051269d06b437e4f6204285d6ba92f50f587c5e95c5f9e4f10b36a2ed4cd0c8
+  languageName: node
+  linkType: hard
+
+"@jsonjoy.com/json-pack@npm:^1.0.3":
+  version: 1.1.0
+  resolution: "@jsonjoy.com/json-pack@npm:1.1.0"
+  dependencies:
+    "@jsonjoy.com/base64": "npm:^1.1.1"
+    "@jsonjoy.com/util": "npm:^1.1.2"
+    hyperdyperid: "npm:^1.2.0"
+    thingies: "npm:^1.20.0"
+  peerDependencies:
+    tslib: 2
+  checksum: 10/cd2776085ad56b470cd53137880b87c2503b07781756c50f1e9f40dd909abeba130a6144d203fcf605ec03dee4cd19bb3424169c8cb588f90a3f06939994c64e
+  languageName: node
+  linkType: hard
+
+"@jsonjoy.com/util@npm:^1.1.2, @jsonjoy.com/util@npm:^1.3.0":
+  version: 1.3.0
+  resolution: "@jsonjoy.com/util@npm:1.3.0"
+  peerDependencies:
+    tslib: 2
+  checksum: 10/10befb2fe43c94759361fab4ee0eeed600b034d7a984d01c5246b07b658836c9ba9661cd6b2da521c22158f2dfe9decab9859bd6c347ccbb114b2c1d081ae1ab
+  languageName: node
+  linkType: hard
+
 "@juggle/resize-observer@npm:^3.4.0":
   version: 3.4.0
   resolution: "@juggle/resize-observer@npm:3.4.0"
@@ -6770,6 +6802,15 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@module-federation/bridge-react-webpack-plugin@npm:0.2.8":
+  version: 0.2.8
+  resolution: "@module-federation/bridge-react-webpack-plugin@npm:0.2.8"
+  dependencies:
+    "@module-federation/sdk": "npm:0.2.8"
+  checksum: 10/5b94ee553d90206e4b670a6099f763eb275475a3af6aa8da641d939efccd16b599834d2a072a9fa289c7094ffee04db1a429c623567af18c3c3da7e404151ed1
+  languageName: node
+  linkType: hard
+
 "@module-federation/dts-plugin@npm:0.2.6":
   version: 0.2.6
   resolution: "@module-federation/dts-plugin@npm:0.2.6"
@@ -6799,6 +6840,63 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@module-federation/dts-plugin@npm:0.2.8":
+  version: 0.2.8
+  resolution: "@module-federation/dts-plugin@npm:0.2.8"
+  dependencies:
+    "@module-federation/managers": "npm:0.2.8"
+    "@module-federation/sdk": "npm:0.2.8"
+    "@module-federation/third-party-dts-extractor": "npm:0.2.8"
+    adm-zip: "npm:^0.5.10"
+    ansi-colors: "npm:^4.1.3"
+    axios: "npm:^1.6.7"
+    chalk: "npm:3.0.0"
+    fs-extra: "npm:9.1.0"
+    isomorphic-ws: "npm:5.0.0"
+    koa: "npm:2.11.0"
+    lodash.clonedeepwith: "npm:4.5.0"
+    log4js: "npm:6.9.1"
+    node-schedule: "npm:2.1.1"
+    rambda: "npm:^9.1.0"
+    ws: "npm:8.17.1"
+  peerDependencies:
+    typescript: ^4.9.0 || ^5.0.0
+    vue-tsc: ">=1.0.24"
+  peerDependenciesMeta:
+    vue-tsc:
+      optional: true
+  checksum: 10/af60b762200213e3d890391981669eedcbfe94bf1bc921a2f5dff514ea6a088aaeab50f396c0eec293d86f3c9df6c516fa273d94c9bdcdd22b3865189788c58b
+  languageName: node
+  linkType: hard
+
+"@module-federation/enhanced@npm:^0.2.3":
+  version: 0.2.8
+  resolution: "@module-federation/enhanced@npm:0.2.8"
+  dependencies:
+    "@module-federation/bridge-react-webpack-plugin": "npm:0.2.8"
+    "@module-federation/dts-plugin": "npm:0.2.8"
+    "@module-federation/managers": "npm:0.2.8"
+    "@module-federation/manifest": "npm:0.2.8"
+    "@module-federation/rspack": "npm:0.2.8"
+    "@module-federation/runtime-tools": "npm:0.2.8"
+    "@module-federation/sdk": "npm:0.2.8"
+    btoa: "npm:^1.2.1"
+    upath: "npm:2.0.1"
+  peerDependencies:
+    typescript: ^4.9.0 || ^5.0.0
+    vue-tsc: ">=1.0.24"
+    webpack: ^5.0.0
+  peerDependenciesMeta:
+    typescript:
+      optional: true
+    vue-tsc:
+      optional: true
+    webpack:
+      optional: true
+  checksum: 10/9eae1fbc32316265a2631646f74dc5d5c89466e7d10246065912fdf93b8a2e8354161ecaf18a5a9c86c40a3b64f780786ba328200f13aafcb5c6f03737b08936
+  languageName: node
+  linkType: hard
+
 "@module-federation/enhanced@npm:~0.2.3":
   version: 0.2.6
   resolution: "@module-federation/enhanced@npm:0.2.6"
@@ -6838,6 +6936,17 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@module-federation/managers@npm:0.2.8":
+  version: 0.2.8
+  resolution: "@module-federation/managers@npm:0.2.8"
+  dependencies:
+    "@module-federation/sdk": "npm:0.2.8"
+    find-pkg: "npm:2.0.0"
+    fs-extra: "npm:9.1.0"
+  checksum: 10/d3126fd253f0692ab241492f368c5514e9d7b8b8e06cea52a3b952ed796af15f1ea9db577492e4ac7e974c77693ab5d44e52af83744f690d60a02554ef7eeddb
+  languageName: node
+  linkType: hard
+
 "@module-federation/manifest@npm:0.2.6":
   version: 0.2.6
   resolution: "@module-federation/manifest@npm:0.2.6"
@@ -6851,6 +6960,19 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@module-federation/manifest@npm:0.2.8":
+  version: 0.2.8
+  resolution: "@module-federation/manifest@npm:0.2.8"
+  dependencies:
+    "@module-federation/dts-plugin": "npm:0.2.8"
+    "@module-federation/managers": "npm:0.2.8"
+    "@module-federation/sdk": "npm:0.2.8"
+    chalk: "npm:3.0.0"
+    find-pkg: "npm:2.0.0"
+  checksum: 10/df877ff06a03b3b054db3d82c078626b7fe0b3a52d11caa49464c3ee3e972480c4e2d0fd40f789caf30de40209d8be6a7210785d9534a8628bc1d000b5a32b2a
+  languageName: node
+  linkType: hard
+
 "@module-federation/rspack@npm:0.2.6":
   version: 0.2.6
   resolution: "@module-federation/rspack@npm:0.2.6"
@@ -6865,6 +6987,28 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@module-federation/rspack@npm:0.2.8":
+  version: 0.2.8
+  resolution: "@module-federation/rspack@npm:0.2.8"
+  dependencies:
+    "@module-federation/bridge-react-webpack-plugin": "npm:0.2.8"
+    "@module-federation/dts-plugin": "npm:0.2.8"
+    "@module-federation/managers": "npm:0.2.8"
+    "@module-federation/manifest": "npm:0.2.8"
+    "@module-federation/runtime-tools": "npm:0.2.8"
+    "@module-federation/sdk": "npm:0.2.8"
+  peerDependencies:
+    typescript: ^4.9.0 || ^5.0.0
+    vue-tsc: ">=1.0.24"
+  peerDependenciesMeta:
+    typescript:
+      optional: true
+    vue-tsc:
+      optional: true
+  checksum: 10/35be280224713c9d6748cffb9dc03f47209883111a6e00dbaa7c1370cd0476a8c31b6ddd52be5e63dedbe6430542d76c5ba476ef18f29fbadd825aa2e2125b25
+  languageName: node
+  linkType: hard
+
 "@module-federation/runtime-tools@npm:0.2.6":
   version: 0.2.6
   resolution: "@module-federation/runtime-tools@npm:0.2.6"
@@ -6875,6 +7019,16 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@module-federation/runtime-tools@npm:0.2.8":
+  version: 0.2.8
+  resolution: "@module-federation/runtime-tools@npm:0.2.8"
+  dependencies:
+    "@module-federation/runtime": "npm:0.2.8"
+    "@module-federation/webpack-bundler-runtime": "npm:0.2.8"
+  checksum: 10/c7940dece54dba0f445c5f8f13e755404eba1236bdd6003d2ddad2abd9ed2266b639182ee6df2557c50ae91ce7afa80da211a4df996dcdfbaf3c0ad00a3757e8
+  languageName: node
+  linkType: hard
+
 "@module-federation/runtime@npm:0.2.6":
   version: 0.2.6
   resolution: "@module-federation/runtime@npm:0.2.6"
@@ -6884,6 +7038,15 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@module-federation/runtime@npm:0.2.8":
+  version: 0.2.8
+  resolution: "@module-federation/runtime@npm:0.2.8"
+  dependencies:
+    "@module-federation/sdk": "npm:0.2.8"
+  checksum: 10/a28b854bd2c76da4e8e21eb90e62af7b4f07412dcdc13216ed87703ca8665262bc405ecd3775daf44e02c5697a7e15cb966c03d13f722cc566d19735e67fda80
+  languageName: node
+  linkType: hard
+
 "@module-federation/sdk@npm:0.2.6, @module-federation/sdk@npm:^0.2.3":
   version: 0.2.6
   resolution: "@module-federation/sdk@npm:0.2.6"
@@ -6891,6 +7054,13 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@module-federation/sdk@npm:0.2.8":
+  version: 0.2.8
+  resolution: "@module-federation/sdk@npm:0.2.8"
+  checksum: 10/cf31a89b21dc285f95ec3521c3e7a20adde469b85de29ab278a2f2a887150c15fbe33fc583705b5fe5ac470e3e1d83a02bbf39798df9dc9eb5552bad1590fce4
+  languageName: node
+  linkType: hard
+
 "@module-federation/third-party-dts-extractor@npm:0.2.6":
   version: 0.2.6
   resolution: "@module-federation/third-party-dts-extractor@npm:0.2.6"
@@ -6902,6 +7072,17 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@module-federation/third-party-dts-extractor@npm:0.2.8":
+  version: 0.2.8
+  resolution: "@module-federation/third-party-dts-extractor@npm:0.2.8"
+  dependencies:
+    find-pkg: "npm:2.0.0"
+    fs-extra: "npm:9.1.0"
+    resolve: "npm:1.22.8"
+  checksum: 10/8abd77b56a0bfd3348a7de9ddb5699634c3739a62405c06397b5b942e73349877acd814369f666f172182f61a1a715580840775b79f54174c69069d6f2597f0a
+  languageName: node
+  linkType: hard
+
 "@module-federation/webpack-bundler-runtime@npm:0.2.6":
   version: 0.2.6
   resolution: "@module-federation/webpack-bundler-runtime@npm:0.2.6"
@@ -6912,6 +7093,16 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@module-federation/webpack-bundler-runtime@npm:0.2.8":
+  version: 0.2.8
+  resolution: "@module-federation/webpack-bundler-runtime@npm:0.2.8"
+  dependencies:
+    "@module-federation/runtime": "npm:0.2.8"
+    "@module-federation/sdk": "npm:0.2.8"
+  checksum: 10/1df0d735b9c6b3fd06b29cc6456db79cb918558ccde2a6be059bde26841ad2a74f49a8bb60025c04608daa130f56d04633b833fd7f3096a7bfbe25f14824224a
+  languageName: node
+  linkType: hard
+
 "@napi-rs/wasm-runtime@npm:0.2.4, @napi-rs/wasm-runtime@npm:^0.2.4":
   version: 0.2.4
   resolution: "@napi-rs/wasm-runtime@npm:0.2.4"
@@ -7094,105 +7285,105 @@ __metadata:
   languageName: node
   linkType: hard
 
-"@nrwl/devkit@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nrwl/devkit@npm:19.5.0"
+"@nrwl/devkit@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nrwl/devkit@npm:19.6.0"
   dependencies:
-    "@nx/devkit": "npm:19.5.0"
-  checksum: 10/dbe0d6af10c0d836649f6d178a52e883e0dfcd9b0e25531cbdadc1225e8ea3df97a978c5c74627512086355b3a5d2613cdd35a096d1ad4c6bd6e2520147a25ac
+    "@nx/devkit": "npm:19.6.0"
+  checksum: 10/4c52a23f5432c4037f90effa340791e14ed456b93ada7d91c81da7a10edd9df9fd87973bbda8af3cf389478f967b11309149c217e9169abcccf699f479addf54
   languageName: node
   linkType: hard
 
-"@nrwl/eslint-plugin-nx@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nrwl/eslint-plugin-nx@npm:19.5.0"
+"@nrwl/eslint-plugin-nx@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nrwl/eslint-plugin-nx@npm:19.6.0"
   dependencies:
-    "@nx/eslint-plugin": "npm:19.5.0"
-  checksum: 10/2cb4e8326023ac7c5f90de0fe654e26031ec367e39e1aa73747cad22066c25250458cfd0a06ff5d67379977e5c9288845118e4931fdc17b052307d96d481f985
+    "@nx/eslint-plugin": "npm:19.6.0"
+  checksum: 10/68a9738e448e1e5576622508958b2586caa3946c644a2cea7cd7f23cf9f9d11cd88ef518385a9701e67ccbf9551b5590c8e4a0b3f17d9577555bc42c26785f7a
   languageName: node
   linkType: hard
 
-"@nrwl/jest@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nrwl/jest@npm:19.5.0"
+"@nrwl/jest@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nrwl/jest@npm:19.6.0"
   dependencies:
-    "@nx/jest": "npm:19.5.0"
-  checksum: 10/e3dd2176342cca931953b6dbffbaf493714846622d1e36d79f6b964fa88889b269805216fdb3d5664123c949ca6268d6ee3c6cf2a81820df99c84a4827be98d3
+    "@nx/jest": "npm:19.6.0"
+  checksum: 10/95a709811106df4efa44bf8eb8c8c416c92e1565a97f036eb0e3104f334a64ca553ed8b0e10d1827192a88c4f190d5460807e8caf8bb0d795949c9fd93ed2c55
   languageName: node
   linkType: hard
 
-"@nrwl/js@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nrwl/js@npm:19.5.0"
+"@nrwl/js@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nrwl/js@npm:19.6.0"
   dependencies:
-    "@nx/js": "npm:19.5.0"
-  checksum: 10/55e154c4a377a8b228785091843d9fcecd6ab8aa87d85a8fa449ee4d060006b28a3203a8fb661f2c12ddaee59850f532a62dad83348ff76a453c6b1126015aa2
+    "@nx/js": "npm:19.6.0"
+  checksum: 10/18b3688421435957a5fb3d6e52c6dad60ed6f035dd6162a7ef7ad956f3446ad3796e91a9c8418c1ba7cc6e032d9c0fc6005be92559834002009a42a98970cc27
   languageName: node
   linkType: hard
 
-"@nrwl/node@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nrwl/node@npm:19.5.0"
+"@nrwl/node@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nrwl/node@npm:19.6.0"
   dependencies:
-    "@nx/node": "npm:19.5.0"
-  checksum: 10/0ea9a2789036a8cba1c429ce9cc0585b40f0d096a2849a763a4a959836772d37c6c4b0cd12d1d74ebfa5b228fa943bb94d006bffea4db21d968ee9032b6dfe6e
+    "@nx/node": "npm:19.6.0"
+  checksum: 10/3d5fee694d087eab8c13bed617ddb4837a813fe7ca72edd1994e8a0ca5c839c0a5d22d2f4ea790ca7fc118f259f5788bc3674464c7a4132943d9c6e05d7f0458
   languageName: node
   linkType: hard
 
-"@nrwl/nx-plugin@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nrwl/nx-plugin@npm:19.5.0"
+"@nrwl/nx-plugin@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nrwl/nx-plugin@npm:19.6.0"
   dependencies:
-    "@nx/plugin": "npm:19.5.0"
-  checksum: 10/5cf52c5aa9e11d600f8bb1ad33e50e0372aeba2166d72056ec3d3425d7829639588a18aa28a2ce0a2c2342728576b988bc6691e07732482f332975c30433edcb
+    "@nx/plugin": "npm:19.6.0"
+  checksum: 10/fc074c66a76c18cef455f0654d8659e36cc064096b2d2692ad726a97fdb4fb5455896587e53821723981091d498cf64b1015f5573041bd97f6c32de76692c3e5
   languageName: node
   linkType: hard
 
-"@nrwl/react@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nrwl/react@npm:19.5.0"
+"@nrwl/react@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nrwl/react@npm:19.6.0"
   dependencies:
-    "@nx/react": "npm:19.5.0"
-  checksum: 10/df59d0652a5b78e31519d1c0ba7bfe091131d901d1aff09b03c313e273a64a514f4113b15f7ab800fb154e36e65806dbab88360f096dc80b9e842d7b1ab1454d
+    "@nx/react": "npm:19.6.0"
+  checksum: 10/986d80342e6a340c6417cd168707c98562705490c9760da73ff3d4ddc1d937be61881a526a0ef49c500ec9679054d8ef3ab0412a5bf0133fd4a358a52dc26a53
   languageName: node
   linkType: hard
 
-"@nrwl/tao@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nrwl/tao@npm:19.5.0"
+"@nrwl/tao@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nrwl/tao@npm:19.6.0"
   dependencies:
-    nx: "npm:19.5.0"
+    nx: "npm:19.6.0"
     tslib: "npm:^2.3.0"
   bin:
     tao: index.js
-  checksum: 10/a1435ac08f8718273a2f2675b966c5903621c14c5a6982e58d3c6f8ec3e6fb236fca030ecb559c437f6881d4fe3cab169ce9ee4759826f88c8762aeeb49d3d57
+  checksum: 10/8219514ba4b455720a593cad762b5aa66ea5a876c6026626f0ec22ef602a34c3f99cc20e161f0d4b7d6013896c2b70dc5bf7ef8e415b6d75ae703eec7c653d9d
   languageName: node
   linkType: hard
 
-"@nrwl/web@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nrwl/web@npm:19.5.0"
+"@nrwl/web@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nrwl/web@npm:19.6.0"
   dependencies:
-    "@nx/web": "npm:19.5.0"
-  checksum: 10/afeff65359a64183673454a730d9aeb36b1b75dda6f386183d3edd6355b19a3d1b04181710e5f4a0f07c5b7acdbf133535efad469f0867d4050a5a114faf3dfd
+    "@nx/web": "npm:19.6.0"
+  checksum: 10/49fe5cc69dc207be176f14a1408c788f8862d6569b8b35865943dcc6849a400fc85b8b6d42671072a3d45a320272d3ef6f1850e67df81b405ff67e213ec61dbf
   languageName: node
   linkType: hard
 
-"@nrwl/webpack@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nrwl/webpack@npm:19.5.0"
+"@nrwl/webpack@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nrwl/webpack@npm:19.6.0"
   dependencies:
-    "@nx/webpack": "npm:19.5.0"
-  checksum: 10/8a3177515694c6cb840e08e1a6bd0a3b409dc11f7e28df97f1db4d6c584754fdd0cb19dae5df872cda4a2d58ef0f0f3e17a5e543b23d940e6e15fadbbd8fa792
+    "@nx/webpack": "npm:19.6.0"
+  checksum: 10/9181c8910b58b6ea443f5e1dd7f46ecc7587b60a3a57eaededa92d1428866080ac23dd89e30ea97e113ee77d4f54d92ccf44fc9d3d23aec3241562f4d2ae36ff
   languageName: node
   linkType: hard
 
-"@nrwl/workspace@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nrwl/workspace@npm:19.5.0"
+"@nrwl/workspace@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nrwl/workspace@npm:19.6.0"
   dependencies:
-    "@nx/workspace": "npm:19.5.0"
-  checksum: 10/011985115a98407032ef69b731d9f2a5d4e09084106290c7420575ff111f0f09e5a98314c74810da0b660c624f0885d5a28dfc62bfbbe13c230a03ce8e9e0135
+    "@nx/workspace": "npm:19.6.0"
+  checksum: 10/912e2b07fffdbd650e2efc8e7825864502034ef0004227a673e467c196fbb52f7631cde5317db7e98743eb7562c274f0ac37fd8f7d2f4c5dc93dd4f27e7c5c5c
   languageName: node
   linkType: hard
 
@@ -7212,12 +7403,16 @@ __metadata:
 "@nx-extend/changelog-notify@workspace:packages/changelog-notify":
   version: 0.0.0-use.local
   resolution: "@nx-extend/changelog-notify@workspace:packages/changelog-notify"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
 "@nx-extend/core@workspace:packages/core":
   version: 0.0.0-use.local
   resolution: "@nx-extend/core@workspace:packages/core"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
@@ -7236,30 +7431,40 @@ __metadata:
     react: "npm:^18.3.1"
     react-dom: "npm:^18.3.1"
     typescript: "npm:~5.5.3"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
 "@nx-extend/e2e-runner@workspace:packages/e2e-runner":
   version: 0.0.0-use.local
   resolution: "@nx-extend/e2e-runner@workspace:packages/e2e-runner"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
 "@nx-extend/firebase-hosting@workspace:packages/firebase-hosting":
   version: 0.0.0-use.local
   resolution: "@nx-extend/firebase-hosting@workspace:packages/firebase-hosting"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
 "@nx-extend/gcp-cloud-run@workspace:packages/gcp-cloud-run":
   version: 0.0.0-use.local
   resolution: "@nx-extend/gcp-cloud-run@workspace:packages/gcp-cloud-run"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
 "@nx-extend/gcp-deployment-manager@workspace:packages/gcp-deployment-manager":
   version: 0.0.0-use.local
   resolution: "@nx-extend/gcp-deployment-manager@workspace:packages/gcp-deployment-manager"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
@@ -7271,18 +7476,24 @@ __metadata:
     "@nestjs/common": "npm:^10.3.10"
     "@nestjs/core": "npm:^10.3.10"
     "@nestjs/platform-express": "npm:^10.3.10"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
 "@nx-extend/gcp-secrets@workspace:packages/gcp-secrets":
   version: 0.0.0-use.local
   resolution: "@nx-extend/gcp-secrets@workspace:packages/gcp-secrets"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
 "@nx-extend/gcp-storage@workspace:packages/gcp-storage":
   version: 0.0.0-use.local
   resolution: "@nx-extend/gcp-storage@workspace:packages/gcp-storage"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
@@ -7291,24 +7502,32 @@ __metadata:
   resolution: "@nx-extend/gcp-task-runner@workspace:packages/gcp-task-runner"
   dependencies:
     "@google-cloud/storage": "npm:7.12.0"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
 "@nx-extend/github-pages@workspace:packages/github-pages":
   version: 0.0.0-use.local
   resolution: "@nx-extend/github-pages@workspace:packages/github-pages"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
 "@nx-extend/playwright@workspace:packages/playwright":
   version: 0.0.0-use.local
   resolution: "@nx-extend/playwright@workspace:packages/playwright"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
 "@nx-extend/pulumi@workspace:packages/pulumi":
   version: 0.0.0-use.local
   resolution: "@nx-extend/pulumi@workspace:packages/pulumi"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
@@ -7318,6 +7537,8 @@ __metadata:
   dependencies:
     "@react-email/components": "npm:0.0.21"
     react-email: "npm:2.1.5"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
@@ -7330,6 +7551,8 @@ __metadata:
     lucide-react: "npm:^0.408.0"
     tailwind-merge: "npm:^2.4.0"
     tailwindcss-animate: "npm:^1.0.7"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
@@ -7339,6 +7562,8 @@ __metadata:
   dependencies:
     "@strapi/generate-new": "npm:4.25.4"
     "@strapi/strapi": "npm:4.25.4"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
@@ -7347,6 +7572,8 @@ __metadata:
   resolution: "@nx-extend/terraform@workspace:packages/terraform"
   dependencies:
     hcl2-json-parser: "npm:^1.0.1"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
@@ -7355,20 +7582,24 @@ __metadata:
   resolution: "@nx-extend/translations@workspace:packages/translations"
   dependencies:
     "@formatjs/cli": "npm:^6.2.12"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
 "@nx-extend/vercel@workspace:packages/vercel":
   version: 0.0.0-use.local
   resolution: "@nx-extend/vercel@workspace:packages/vercel"
+  peerDependencies:
+    "@nx/devkit": ^19.6.0
   languageName: unknown
   linkType: soft
 
-"@nx/devkit@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/devkit@npm:19.5.0"
+"@nx/devkit@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/devkit@npm:19.6.0"
   dependencies:
-    "@nrwl/devkit": "npm:19.5.0"
+    "@nrwl/devkit": "npm:19.6.0"
     ejs: "npm:^3.1.7"
     enquirer: "npm:~2.3.6"
     ignore: "npm:^5.0.4"
@@ -7379,17 +7610,17 @@ __metadata:
     yargs-parser: "npm:21.1.1"
   peerDependencies:
     nx: ">= 17 <= 20"
-  checksum: 10/318405ede6d0e6fbe68dd14d45d23b915e7fd8bce6aa34304279607cf684931f61e82d0b3b8f8c23b5148d9e87262484d51c691054652a7cf875d7563a5d4cb8
+  checksum: 10/8aecf60688132d7be68372b02eac67ad9cc05c965232fc594efc3a35ff256fbb11ba656dc0ae32996784dab52dc1dd0dd05954eaaf2214772f235236133c5ee9
   languageName: node
   linkType: hard
 
-"@nx/eslint-plugin@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/eslint-plugin@npm:19.5.0"
+"@nx/eslint-plugin@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/eslint-plugin@npm:19.6.0"
   dependencies:
-    "@nrwl/eslint-plugin-nx": "npm:19.5.0"
-    "@nx/devkit": "npm:19.5.0"
-    "@nx/js": "npm:19.5.0"
+    "@nrwl/eslint-plugin-nx": "npm:19.6.0"
+    "@nx/devkit": "npm:19.6.0"
+    "@nx/js": "npm:19.6.0"
     "@typescript-eslint/type-utils": "npm:^7.16.0"
     "@typescript-eslint/utils": "npm:^7.16.0"
     chalk: "npm:^4.1.0"
@@ -7403,17 +7634,17 @@ __metadata:
   peerDependenciesMeta:
     eslint-config-prettier:
       optional: true
-  checksum: 10/18987f1cdb8854ab3e4ce503818a7a14408a5c7646177be79845638be561c53074123ecfaa071b02a7072b32c3d9eda356e57518583ed59a77450ea97cbddba9
+  checksum: 10/e7db2a724c1ac02a81bff1cc0b92d93290ad434b1a880038a7dc2f5e1d8c8b8accd12c50383ccee0ae9c11ca14853d57449c2fcebe753ba5ea436b425a0ce3cf
   languageName: node
   linkType: hard
 
-"@nx/eslint@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/eslint@npm:19.5.0"
+"@nx/eslint@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/eslint@npm:19.6.0"
   dependencies:
-    "@nx/devkit": "npm:19.5.0"
-    "@nx/js": "npm:19.5.0"
-    "@nx/linter": "npm:19.5.0"
+    "@nx/devkit": "npm:19.6.0"
+    "@nx/js": "npm:19.6.0"
+    "@nx/linter": "npm:19.6.0"
     semver: "npm:^7.5.3"
     tslib: "npm:^2.3.0"
     typescript: "npm:~5.4.2"
@@ -7423,19 +7654,19 @@ __metadata:
   peerDependenciesMeta:
     "@zkochan/js-yaml":
       optional: true
-  checksum: 10/a15a8042ac212508a7dcba7192967d5c21adfbfb5490975db9474506768a4b08de95634b677acad84d6f55e5daea3bfc76a59a7b3c04d8b426fec0dd0168a413
+  checksum: 10/2365a9dd8cb9806c22a76f0eebcd189e43081739b60e842cd10067cee4afba7d1c7a147ab7922ca8dabc21d9702976c0fd07e64c64e9febac04773afd413490a
   languageName: node
   linkType: hard
 
-"@nx/jest@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/jest@npm:19.5.0"
+"@nx/jest@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/jest@npm:19.6.0"
   dependencies:
     "@jest/reporters": "npm:^29.4.1"
     "@jest/test-result": "npm:^29.4.1"
-    "@nrwl/jest": "npm:19.5.0"
-    "@nx/devkit": "npm:19.5.0"
-    "@nx/js": "npm:19.5.0"
+    "@nrwl/jest": "npm:19.6.0"
+    "@nx/devkit": "npm:19.6.0"
+    "@nx/js": "npm:19.6.0"
     "@phenomnomnominal/tsquery": "npm:~5.0.1"
     chalk: "npm:^4.1.0"
     identity-obj-proxy: "npm:3.0.0"
@@ -7444,15 +7675,16 @@ __metadata:
     jest-util: "npm:^29.4.1"
     minimatch: "npm:9.0.3"
     resolve.exports: "npm:1.1.0"
+    semver: "npm:^7.5.3"
     tslib: "npm:^2.3.0"
     yargs-parser: "npm:21.1.1"
-  checksum: 10/d0023ac4866a27ab9d751746e153c4d3b708197018c90fb6e1b58d0986ff6079ae0eda4524776afd2f75849f0091665b3d4af658877b5a1d8f75608b9a74cdf4
+  checksum: 10/80426c44e740cb613547a167566450c6943b1326f152b9b00a442f2036664ce89c1812c85648d515f939faef6899ccb0ecca7aebf0bc6856b35b9e96057431ca
   languageName: node
   linkType: hard
 
-"@nx/js@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/js@npm:19.5.0"
+"@nx/js@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/js@npm:19.6.0"
   dependencies:
     "@babel/core": "npm:^7.23.2"
     "@babel/plugin-proposal-decorators": "npm:^7.22.7"
@@ -7461,9 +7693,9 @@ __metadata:
     "@babel/preset-env": "npm:^7.23.2"
     "@babel/preset-typescript": "npm:^7.22.5"
     "@babel/runtime": "npm:^7.22.6"
-    "@nrwl/js": "npm:19.5.0"
-    "@nx/devkit": "npm:19.5.0"
-    "@nx/workspace": "npm:19.5.0"
+    "@nrwl/js": "npm:19.6.0"
+    "@nx/devkit": "npm:19.6.0"
+    "@nx/workspace": "npm:19.6.0"
     babel-plugin-const-enum: "npm:^1.0.1"
     babel-plugin-macros: "npm:^2.8.0"
     babel-plugin-transform-typescript-metadata: "npm:^0.3.1"
@@ -7488,162 +7720,163 @@ __metadata:
   peerDependenciesMeta:
     verdaccio:
       optional: true
-  checksum: 10/b05c96dc55d90cc6d1cb02f1cba551d370979faafe1705f4eeae50758c698e1559a9509a39b2ca832c693da858fb6d9557fe94237077fdf0f06caa9d20f47a37
+  checksum: 10/779c04431477d6806d41b70c70a5dc4cc472bdf5e1e2c6928ab5d45f22e781de0c82231f18b104adad6916998cc7ff74ddc296e8bf5b88c0228e327e548d69c6
   languageName: node
   linkType: hard
 
-"@nx/linter@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/linter@npm:19.5.0"
+"@nx/linter@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/linter@npm:19.6.0"
   dependencies:
-    "@nx/eslint": "npm:19.5.0"
-  checksum: 10/df74282d8d76aa0d3ab06a93807e5bfe2c6d2e4abcf6829fafd365085581373d411151cc1964e66dede45b9c6f791bd21ab02401f39cd38bfdf1910c1eb725e0
+    "@nx/eslint": "npm:19.6.0"
+  checksum: 10/72fe3cd5dd21c95e8cf510d75537cf25974006417dcb05704fca6d0884b97aaff27a2f9815a1bd79c198ff909dc49a60d356335e6a6af65c67804495e7b3045b
   languageName: node
   linkType: hard
 
-"@nx/node@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/node@npm:19.5.0"
+"@nx/node@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/node@npm:19.6.0"
   dependencies:
-    "@nrwl/node": "npm:19.5.0"
-    "@nx/devkit": "npm:19.5.0"
-    "@nx/eslint": "npm:19.5.0"
-    "@nx/jest": "npm:19.5.0"
-    "@nx/js": "npm:19.5.0"
+    "@nrwl/node": "npm:19.6.0"
+    "@nx/devkit": "npm:19.6.0"
+    "@nx/eslint": "npm:19.6.0"
+    "@nx/jest": "npm:19.6.0"
+    "@nx/js": "npm:19.6.0"
     tslib: "npm:^2.3.0"
-  checksum: 10/ec2deb52b5867bc03a789fef915ae3b46f7d43f606fa8f35feab471636a109117aba38b202975cce3dd3e13fa9d1081bac74adea0952a2783568998c8fb174db
+  checksum: 10/8fc1927ca4ebae63f2237b44d98ca1d7d4946a92d6821f246071b3699195b4d9e3d1024b16cc74ea9af3cf41de056334344b8fff73692ac990369a8ea9288bcd
   languageName: node
   linkType: hard
 
-"@nx/nx-darwin-arm64@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/nx-darwin-arm64@npm:19.5.0"
+"@nx/nx-darwin-arm64@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/nx-darwin-arm64@npm:19.6.0"
   conditions: os=darwin & cpu=arm64
   languageName: node
   linkType: hard
 
-"@nx/nx-darwin-x64@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/nx-darwin-x64@npm:19.5.0"
+"@nx/nx-darwin-x64@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/nx-darwin-x64@npm:19.6.0"
   conditions: os=darwin & cpu=x64
   languageName: node
   linkType: hard
 
-"@nx/nx-freebsd-x64@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/nx-freebsd-x64@npm:19.5.0"
+"@nx/nx-freebsd-x64@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/nx-freebsd-x64@npm:19.6.0"
   conditions: os=freebsd & cpu=x64
   languageName: node
   linkType: hard
 
-"@nx/nx-linux-arm-gnueabihf@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/nx-linux-arm-gnueabihf@npm:19.5.0"
+"@nx/nx-linux-arm-gnueabihf@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/nx-linux-arm-gnueabihf@npm:19.6.0"
   conditions: os=linux & cpu=arm
   languageName: node
   linkType: hard
 
-"@nx/nx-linux-arm64-gnu@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/nx-linux-arm64-gnu@npm:19.5.0"
+"@nx/nx-linux-arm64-gnu@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/nx-linux-arm64-gnu@npm:19.6.0"
   conditions: os=linux & cpu=arm64 & libc=glibc
   languageName: node
   linkType: hard
 
-"@nx/nx-linux-arm64-musl@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/nx-linux-arm64-musl@npm:19.5.0"
+"@nx/nx-linux-arm64-musl@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/nx-linux-arm64-musl@npm:19.6.0"
   conditions: os=linux & cpu=arm64 & libc=musl
   languageName: node
   linkType: hard
 
-"@nx/nx-linux-x64-gnu@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/nx-linux-x64-gnu@npm:19.5.0"
+"@nx/nx-linux-x64-gnu@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/nx-linux-x64-gnu@npm:19.6.0"
   conditions: os=linux & cpu=x64 & libc=glibc
   languageName: node
   linkType: hard
 
-"@nx/nx-linux-x64-musl@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/nx-linux-x64-musl@npm:19.5.0"
+"@nx/nx-linux-x64-musl@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/nx-linux-x64-musl@npm:19.6.0"
   conditions: os=linux & cpu=x64 & libc=musl
   languageName: node
   linkType: hard
 
-"@nx/nx-win32-arm64-msvc@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/nx-win32-arm64-msvc@npm:19.5.0"
+"@nx/nx-win32-arm64-msvc@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/nx-win32-arm64-msvc@npm:19.6.0"
   conditions: os=win32 & cpu=arm64
   languageName: node
   linkType: hard
 
-"@nx/nx-win32-x64-msvc@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/nx-win32-x64-msvc@npm:19.5.0"
+"@nx/nx-win32-x64-msvc@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/nx-win32-x64-msvc@npm:19.6.0"
   conditions: os=win32 & cpu=x64
   languageName: node
   linkType: hard
 
-"@nx/plugin@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/plugin@npm:19.5.0"
+"@nx/plugin@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/plugin@npm:19.6.0"
   dependencies:
-    "@nrwl/nx-plugin": "npm:19.5.0"
-    "@nx/devkit": "npm:19.5.0"
-    "@nx/eslint": "npm:19.5.0"
-    "@nx/jest": "npm:19.5.0"
-    "@nx/js": "npm:19.5.0"
+    "@nrwl/nx-plugin": "npm:19.6.0"
+    "@nx/devkit": "npm:19.6.0"
+    "@nx/eslint": "npm:19.6.0"
+    "@nx/jest": "npm:19.6.0"
+    "@nx/js": "npm:19.6.0"
     fs-extra: "npm:^11.1.0"
     tslib: "npm:^2.3.0"
-  checksum: 10/25e9a894d6d5515e5b4902656c612a18269979c6ca904db6f577fd2f5576cb252e3af172a14f3d97e972cddffdf4133087391f5e1a44b7a910accb68c6a1758d
+  checksum: 10/d2241ed69efd4d414820f1f9bc541c3331d1b96692ec9dd7206e7928a1472043701a2af8bfaf7176cae8676d8b9dd9d1d48c9ee602bb8e6958ef9a3eb76fba16
   languageName: node
   linkType: hard
 
-"@nx/react@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/react@npm:19.5.0"
+"@nx/react@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/react@npm:19.6.0"
   dependencies:
     "@module-federation/enhanced": "npm:~0.2.3"
-    "@nrwl/react": "npm:19.5.0"
-    "@nx/devkit": "npm:19.5.0"
-    "@nx/eslint": "npm:19.5.0"
-    "@nx/js": "npm:19.5.0"
-    "@nx/web": "npm:19.5.0"
+    "@nrwl/react": "npm:19.6.0"
+    "@nx/devkit": "npm:19.6.0"
+    "@nx/eslint": "npm:19.6.0"
+    "@nx/js": "npm:19.6.0"
+    "@nx/web": "npm:19.6.0"
     "@phenomnomnominal/tsquery": "npm:~5.0.1"
     "@svgr/webpack": "npm:^8.0.1"
     chalk: "npm:^4.1.0"
     file-loader: "npm:^6.2.0"
     minimatch: "npm:9.0.3"
     tslib: "npm:^2.3.0"
-  checksum: 10/343a17df50114edd8f9468ff49c8b6da5a50e8666f9a96df06edc853c6a209bff3544d84d0383f75d065af32494d9bdc6192f17890d6050b9f230040cdf11eaf
+  checksum: 10/8c1fee9fb92712bfcb2b41102fc7a18be04be8a6ad27f4497cefbeaa751a9d2cb769a0962b346697db8957f8457a9a22c662df4f01294abe3de1bb45ff2f672e
   languageName: node
   linkType: hard
 
-"@nx/web@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/web@npm:19.5.0"
+"@nx/web@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/web@npm:19.6.0"
   dependencies:
-    "@nrwl/web": "npm:19.5.0"
-    "@nx/devkit": "npm:19.5.0"
-    "@nx/js": "npm:19.5.0"
+    "@nrwl/web": "npm:19.6.0"
+    "@nx/devkit": "npm:19.6.0"
+    "@nx/js": "npm:19.6.0"
     chalk: "npm:^4.1.0"
     detect-port: "npm:^1.5.1"
     http-server: "npm:^14.1.0"
     tslib: "npm:^2.3.0"
-  checksum: 10/eb4b9984eeb5f5d9de14931d70d31eee9459cd0cc861ddc87910c930d3e9b27b6d7742a7457c63113a1e6da91de1d554df7b91a89cb8692477992486087eb4f2
+  checksum: 10/6a09032afc71a83354e2d1b574e67148103d4b6d00bced1067d2bc7736bb92cc501b44c0b9f3902e8e191907c43a435f04bb4f050cafde5ab4903f37925c757e
   languageName: node
   linkType: hard
 
-"@nx/webpack@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/webpack@npm:19.5.0"
+"@nx/webpack@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/webpack@npm:19.6.0"
   dependencies:
     "@babel/core": "npm:^7.23.2"
+    "@module-federation/enhanced": "npm:^0.2.3"
     "@module-federation/sdk": "npm:^0.2.3"
-    "@nrwl/webpack": "npm:19.5.0"
-    "@nx/devkit": "npm:19.5.0"
-    "@nx/js": "npm:19.5.0"
+    "@nrwl/webpack": "npm:19.6.0"
+    "@nx/devkit": "npm:19.6.0"
+    "@nx/js": "npm:19.6.0"
     "@phenomnomnominal/tsquery": "npm:~5.0.1"
     ajv: "npm:^8.12.0"
     autoprefixer: "npm:^10.4.9"
@@ -7653,7 +7886,9 @@ __metadata:
     copy-webpack-plugin: "npm:^10.2.4"
     css-loader: "npm:^6.4.0"
     css-minimizer-webpack-plugin: "npm:^5.0.0"
+    express: "npm:^4.19.2"
     fork-ts-checker-webpack-plugin: "npm:7.2.13"
+    http-proxy-middleware: "npm:^3.0.0"
     less: "npm:4.1.3"
     less-loader: "npm:11.1.0"
     license-webpack-plugin: "npm:^4.0.2"
@@ -7675,25 +7910,25 @@ __metadata:
     tsconfig-paths-webpack-plugin: "npm:4.0.0"
     tslib: "npm:^2.3.0"
     webpack: "npm:^5.80.0"
-    webpack-dev-server: "npm:^4.9.3"
+    webpack-dev-server: "npm:^5.0.4"
     webpack-node-externals: "npm:^3.0.0"
     webpack-subresource-integrity: "npm:^5.1.0"
-  checksum: 10/0275562dbfe6ec092f736f8f6dca699c01a03ad1037bb7c8dfc90d054df8e610a9b2fb5b28192a5c3a6f7b022a7c1e8a29c449427ad137d8fa02869e4accb3f8
+  checksum: 10/e08a1c2691c2a5afdc18ecb19d0ca4b00f7a8b0b0d93adf610e6d04d500293f0c45dc4ef6ad63679c3469d6162a1a60bff6f62d2b63c9f2f1141d374429f9941
   languageName: node
   linkType: hard
 
-"@nx/workspace@npm:19.5.0":
-  version: 19.5.0
-  resolution: "@nx/workspace@npm:19.5.0"
+"@nx/workspace@npm:19.6.0":
+  version: 19.6.0
+  resolution: "@nx/workspace@npm:19.6.0"
   dependencies:
-    "@nrwl/workspace": "npm:19.5.0"
-    "@nx/devkit": "npm:19.5.0"
+    "@nrwl/workspace": "npm:19.6.0"
+    "@nx/devkit": "npm:19.6.0"
     chalk: "npm:^4.1.0"
     enquirer: "npm:~2.3.6"
-    nx: "npm:19.5.0"
+    nx: "npm:19.6.0"
     tslib: "npm:^2.3.0"
     yargs-parser: "npm:21.1.1"
-  checksum: 10/81f6439b83e11b6c578d621109e437ebd13c3ad48587bcdfed33d1ec979b2bf02c13b7901ac7202124d331bc4ffa2473624cb1a206f8c938168155e857a58fa5
+  checksum: 10/10ff5a385925d5a54296c5d8a9c1110020a45c59630d088ef30bf37024c4ac19ed04b32c39ae83a42e1a0f877c52fba6a9e074337858b5cd1146633e8b0d3948
   languageName: node
   linkType: hard
 
@@ -11187,6 +11422,15 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@types/bonjour@npm:^3.5.13":
+  version: 3.5.13
+  resolution: "@types/bonjour@npm:3.5.13"
+  dependencies:
+    "@types/node": "npm:*"
+  checksum: 10/e827570e097bd7d625a673c9c208af2d1a22fa3885c0a1646533cf24394c839c3e5f60ac1bc60c0ddcc69c0615078c9fb2c01b42596c7c582d895d974f2409ee
+  languageName: node
+  linkType: hard
+
 "@types/bonjour@npm:^3.5.9":
   version: 3.5.10
   resolution: "@types/bonjour@npm:3.5.10"
@@ -11225,6 +11469,16 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@types/connect-history-api-fallback@npm:^1.5.4":
+  version: 1.5.4
+  resolution: "@types/connect-history-api-fallback@npm:1.5.4"
+  dependencies:
+    "@types/express-serve-static-core": "npm:*"
+    "@types/node": "npm:*"
+  checksum: 10/e1dee43b8570ffac02d2d47a2b4ba80d3ca0dd1840632dafb221da199e59dbe3778d3d7303c9e23c6b401f37c076935a5bc2aeae1c4e5feaefe1c371fe2073fd
+  languageName: node
+  linkType: hard
+
 "@types/connect@npm:*":
   version: 3.4.35
   resolution: "@types/connect@npm:3.4.35"
@@ -11326,7 +11580,7 @@ __metadata:
   languageName: node
   linkType: hard
 
-"@types/express@npm:4.17.21, @types/express@npm:^4.17.17":
+"@types/express@npm:4.17.21, @types/express@npm:^4.17.17, @types/express@npm:^4.17.21":
   version: 4.17.21
   resolution: "@types/express@npm:4.17.21"
   dependencies:
@@ -11434,6 +11688,15 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@types/http-proxy@npm:^1.17.10":
+  version: 1.17.15
+  resolution: "@types/http-proxy@npm:1.17.15"
+  dependencies:
+    "@types/node": "npm:*"
+  checksum: 10/fa86d5397c021f6c824d1143a206009bfb64ff703da32fb30f6176c603daf6c24ce3a28daf26b3945c94dd10f9d76f07ea7a6a2c3e9b710e00ff42da32e08dea
+  languageName: node
+  linkType: hard
+
 "@types/http-proxy@npm:^1.17.8":
   version: 1.17.11
   resolution: "@types/http-proxy@npm:1.17.11"
@@ -11616,6 +11879,15 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@types/node-forge@npm:^1.3.0":
+  version: 1.3.11
+  resolution: "@types/node-forge@npm:1.3.11"
+  dependencies:
+    "@types/node": "npm:*"
+  checksum: 10/670c9b377c48189186ec415e3c8ed371f141ecc1a79ab71b213b20816adeffecba44dae4f8406cc0d09e6349a4db14eb8c5893f643d8e00fa19fc035cf49dee0
+  languageName: node
+  linkType: hard
+
 "@types/node@npm:*":
   version: 20.3.1
   resolution: "@types/node@npm:20.3.1"
@@ -11804,6 +12076,13 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@types/retry@npm:0.12.2":
+  version: 0.12.2
+  resolution: "@types/retry@npm:0.12.2"
+  checksum: 10/e5675035717b39ce4f42f339657cae9637cf0c0051cf54314a6a2c44d38d91f6544be9ddc0280587789b6afd056be5d99dbe3e9f4df68c286c36321579b1bf4a
+  languageName: node
+  linkType: hard
+
 "@types/sax@npm:^1.2.1":
   version: 1.2.7
   resolution: "@types/sax@npm:1.2.7"
@@ -11846,6 +12125,15 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@types/serve-index@npm:^1.9.4":
+  version: 1.9.4
+  resolution: "@types/serve-index@npm:1.9.4"
+  dependencies:
+    "@types/express": "npm:*"
+  checksum: 10/72727c88d54da5b13275ebfb75dcdc4aa12417bbe9da1939e017c4c5f0c906fae843aa4e0fbfe360e7ee9df2f3d388c21abfc488f77ce58693fb57809f8ded92
+  languageName: node
+  linkType: hard
+
 "@types/serve-static@npm:*, @types/serve-static@npm:^1.13.10":
   version: 1.15.2
   resolution: "@types/serve-static@npm:1.15.2"
@@ -11857,6 +12145,17 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@types/serve-static@npm:^1.15.5":
+  version: 1.15.7
+  resolution: "@types/serve-static@npm:1.15.7"
+  dependencies:
+    "@types/http-errors": "npm:*"
+    "@types/node": "npm:*"
+    "@types/send": "npm:*"
+  checksum: 10/c5a7171d5647f9fbd096ed1a26105759f3153ccf683824d99fee4c7eb9cde2953509621c56a070dd9fb1159e799e86d300cbe4e42245ebc5b0c1767e8ca94a67
+  languageName: node
+  linkType: hard
+
 "@types/shelljs@npm:^0.8.15":
   version: 0.8.15
   resolution: "@types/shelljs@npm:0.8.15"
@@ -11876,6 +12175,15 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@types/sockjs@npm:^0.3.36":
+  version: 0.3.36
+  resolution: "@types/sockjs@npm:0.3.36"
+  dependencies:
+    "@types/node": "npm:*"
+  checksum: 10/b4b5381122465d80ea8b158537c00bc82317222d3fb31fd7229ff25b31fa89134abfbab969118da55622236bf3d8fee75759f3959908b5688991f492008f29bc
+  languageName: node
+  linkType: hard
+
 "@types/stack-utils@npm:^2.0.0":
   version: 2.0.1
   resolution: "@types/stack-utils@npm:2.0.1"
@@ -11948,6 +12256,15 @@ __metadata:
   languageName: node
   linkType: hard
 
+"@types/ws@npm:^8.5.10":
+  version: 8.5.12
+  resolution: "@types/ws@npm:8.5.12"
+  dependencies:
+    "@types/node": "npm:*"
+  checksum: 10/d8a3ddfb5ff8fea992a043113579d61ac1ea21e8464415af9e2b01b205ed19d817821ad64ca1b3a90062d1df1c23b0f586d8351d25ca6728844df99a74e8f76d
+  languageName: node
+  linkType: hard
+
 "@types/ws@npm:^8.5.5":
   version: 8.5.5
   resolution: "@types/ws@npm:8.5.5"
@@ -13317,17 +13634,6 @@ __metadata:
   languageName: node
   linkType: hard
 
-"axios@npm:^1.6.0":
-  version: 1.6.7
-  resolution: "axios@npm:1.6.7"
-  dependencies:
-    follow-redirects: "npm:^1.15.4"
-    form-data: "npm:^4.0.0"
-    proxy-from-env: "npm:^1.1.0"
-  checksum: 10/a1932b089ece759cd261f175d9ebf4d41c8994cf0c0767cda86055c7a19bcfdade8ae3464bf4cec4c8b142f4a657dc664fb77a41855e8376cf38b86d7a86518f
-  languageName: node
-  linkType: hard
-
 "axios@npm:^1.6.7, axios@npm:^1.7.2":
   version: 1.7.2
   resolution: "axios@npm:1.7.2"
@@ -13814,6 +14120,16 @@ __metadata:
   languageName: node
   linkType: hard
 
+"bonjour-service@npm:^1.2.1":
+  version: 1.2.1
+  resolution: "bonjour-service@npm:1.2.1"
+  dependencies:
+    fast-deep-equal: "npm:^3.1.3"
+    multicast-dns: "npm:^7.2.5"
+  checksum: 10/8350d135ab8dd998a829136984d7f74bfc0667b162ab99ac98bae54d72ff7a6003c6fb7911739dfba7c56a113bd6ab06a4d4fe6719b18e66592c345663e7d923
+  languageName: node
+  linkType: hard
+
 "boolbase@npm:^1.0.0":
   version: 1.0.0
   resolution: "boolbase@npm:1.0.0"
@@ -14102,6 +14418,15 @@ __metadata:
   languageName: node
   linkType: hard
 
+"bundle-name@npm:^4.1.0":
+  version: 4.1.0
+  resolution: "bundle-name@npm:4.1.0"
+  dependencies:
+    run-applescript: "npm:^7.0.0"
+  checksum: 10/1d966c8d2dbf4d9d394e53b724ac756c2414c45c01340b37743621f59cc565a435024b394ddcb62b9b335d1c9a31f4640eb648c3fec7f97ee74dc0694c9beb6c
+  languageName: node
+  linkType: hard
+
 "busboy@npm:1.6.0, busboy@npm:^1.0.0":
   version: 1.6.0
   resolution: "busboy@npm:1.6.0"
@@ -14557,7 +14882,7 @@ __metadata:
   languageName: node
   linkType: hard
 
-"chokidar@npm:^3.4.2":
+"chokidar@npm:^3.4.2, chokidar@npm:^3.6.0":
   version: 3.6.0
   resolution: "chokidar@npm:3.6.0"
   dependencies:
@@ -16438,6 +16763,13 @@ __metadata:
   languageName: node
   linkType: hard
 
+"default-browser-id@npm:^5.0.0":
+  version: 5.0.0
+  resolution: "default-browser-id@npm:5.0.0"
+  checksum: 10/185bfaecec2c75fa423544af722a3469b20704c8d1942794a86e4364fe7d9e8e9f63241a5b769d61c8151993bc65833a5b959026fa1ccea343b3db0a33aa6deb
+  languageName: node
+  linkType: hard
+
 "default-browser@npm:^4.0.0":
   version: 4.0.0
   resolution: "default-browser@npm:4.0.0"
@@ -16450,6 +16782,16 @@ __metadata:
   languageName: node
   linkType: hard
 
+"default-browser@npm:^5.2.1":
+  version: 5.2.1
+  resolution: "default-browser@npm:5.2.1"
+  dependencies:
+    bundle-name: "npm:^4.1.0"
+    default-browser-id: "npm:^5.0.0"
+  checksum: 10/afab7eff7b7f5f7a94d9114d1ec67273d3fbc539edf8c0f80019879d53aa71e867303c6f6d7cffeb10a6f3cfb59d4f963dba3f9c96830b4540cc7339a1bf9840
+  languageName: node
+  linkType: hard
+
 "default-gateway@npm:^6.0.3":
   version: 6.0.3
   resolution: "default-gateway@npm:6.0.3"
@@ -18647,7 +18989,7 @@ __metadata:
   languageName: node
   linkType: hard
 
-"follow-redirects@npm:^1.0.0, follow-redirects@npm:^1.15.0, follow-redirects@npm:^1.15.2, follow-redirects@npm:^1.15.4, follow-redirects@npm:^1.15.6":
+"follow-redirects@npm:^1.0.0, follow-redirects@npm:^1.15.0, follow-redirects@npm:^1.15.2, follow-redirects@npm:^1.15.6":
   version: 1.15.6
   resolution: "follow-redirects@npm:1.15.6"
   peerDependenciesMeta:
@@ -20119,7 +20461,7 @@ __metadata:
   languageName: node
   linkType: hard
 
-"html-entities@npm:^2.5.2":
+"html-entities@npm:^2.4.0, html-entities@npm:^2.5.2":
   version: 2.5.2
   resolution: "html-entities@npm:2.5.2"
   checksum: 10/4ec12ebdf2d5ba8192c68e1aef3c1e4a4f36b29246a0a88464fe278a54517d0196d3489af46a3145c7ecacb4fc5fd50497be19eb713b810acab3f0efcf36fdc2
@@ -20337,6 +20679,20 @@ __metadata:
   languageName: node
   linkType: hard
 
+"http-proxy-middleware@npm:^3.0.0":
+  version: 3.0.0
+  resolution: "http-proxy-middleware@npm:3.0.0"
+  dependencies:
+    "@types/http-proxy": "npm:^1.17.10"
+    debug: "npm:^4.3.4"
+    http-proxy: "npm:^1.18.1"
+    is-glob: "npm:^4.0.1"
+    is-plain-obj: "npm:^3.0.0"
+    micromatch: "npm:^4.0.5"
+  checksum: 10/ea3e58c4665821aaf6060f59029bc8dbdbe7b13d6c74c7e80fb6c8ddc5a7c3f0fa970898f98dd5e006b138f64d23b3a7b9f30b8a525ed254b5aa88712a3b3010
+  languageName: node
+  linkType: hard
+
 "http-proxy@npm:^1.18.1":
   version: 1.18.1
   resolution: "http-proxy@npm:1.18.1"
@@ -20443,6 +20799,13 @@ __metadata:
   languageName: node
   linkType: hard
 
+"hyperdyperid@npm:^1.2.0":
+  version: 1.2.0
+  resolution: "hyperdyperid@npm:1.2.0"
+  checksum: 10/64abb5568ff17aa08ac0175ae55e46e22831c5552be98acdd1692081db0209f36fff58b31432017b4e1772c178962676a2cc3c54e4d5d7f020d7710cec7ad7a6
+  languageName: node
+  linkType: hard
+
 "iconv-lite@npm:0.4.13":
   version: 0.4.13
   resolution: "iconv-lite@npm:0.4.13"
@@ -20820,6 +21183,13 @@ __metadata:
   languageName: node
   linkType: hard
 
+"ipaddr.js@npm:^2.1.0":
+  version: 2.2.0
+  resolution: "ipaddr.js@npm:2.2.0"
+  checksum: 10/9e1cdd9110b3bca5d910ab70d7fb1933e9c485d9b92cb14ef39f30c412ba3fe02a553921bf696efc7149cc653453c48ccf173adb996ec27d925f1f340f872986
+  languageName: node
+  linkType: hard
+
 "is-absolute@npm:^1.0.0":
   version: 1.0.0
   resolution: "is-absolute@npm:1.0.0"
@@ -21152,6 +21522,13 @@ __metadata:
   languageName: node
   linkType: hard
 
+"is-network-error@npm:^1.0.0":
+  version: 1.1.0
+  resolution: "is-network-error@npm:1.1.0"
+  checksum: 10/b2fe6aac07f814a9de275efd05934c832c129e7ba292d27614e9e8eec9e043b7a0bbeaeca5d0916b0f462edbec2aa2eaee974ee0a12ac095040e9515c222c251
+  languageName: node
+  linkType: hard
+
 "is-npm@npm:^6.0.0":
   version: 6.0.0
   resolution: "is-npm@npm:6.0.0"
@@ -21397,6 +21774,15 @@ __metadata:
   languageName: node
   linkType: hard
 
+"is-wsl@npm:^3.1.0":
+  version: 3.1.0
+  resolution: "is-wsl@npm:3.1.0"
+  dependencies:
+    is-inside-container: "npm:^1.0.0"
+  checksum: 10/f9734c81f2f9cf9877c5db8356bfe1ff61680f1f4c1011e91278a9c0564b395ae796addb4bf33956871041476ec82c3e5260ed57b22ac91794d4ae70a1d2f0a9
+  languageName: node
+  linkType: hard
+
 "is-yarn-global@npm:^0.4.0":
   version: 0.4.1
   resolution: "is-yarn-global@npm:0.4.1"
@@ -23175,6 +23561,16 @@ __metadata:
   languageName: node
   linkType: hard
 
+"launch-editor@npm:^2.6.1":
+  version: 2.8.1
+  resolution: "launch-editor@npm:2.8.1"
+  dependencies:
+    picocolors: "npm:^1.0.0"
+    shell-quote: "npm:^1.8.1"
+  checksum: 10/69adfc913c066b0bcd685103907525789db6af3585cdc5f8c1172f0fcebe2c4ea1cff1108f76e9c591c00134329a5fb29e5911e9c0c347618a5300978b6bb767
+  languageName: node
+  linkType: hard
+
 "leac@npm:^0.6.0":
   version: 0.6.0
   resolution: "leac@npm:0.6.0"
@@ -24236,6 +24632,18 @@ __metadata:
   languageName: node
   linkType: hard
 
+"memfs@npm:^4.6.0":
+  version: 4.11.1
+  resolution: "memfs@npm:4.11.1"
+  dependencies:
+    "@jsonjoy.com/json-pack": "npm:^1.0.3"
+    "@jsonjoy.com/util": "npm:^1.3.0"
+    tree-dump: "npm:^1.0.1"
+    tslib: "npm:^2.0.0"
+  checksum: 10/460b11266efb66291da5f117060123cc4ca024c35c6aae6c406be208885eb7b9cf09dd76cec70fcfe93e99128e0cf5abe161a9832a3979403c4bae131b30c12d
+  languageName: node
+  linkType: hard
+
 "memoize-one@npm:>=3.1.1 <6":
   version: 5.2.1
   resolution: "memoize-one@npm:5.2.1"
@@ -25833,15 +26241,15 @@ __metadata:
     "@google-cloud/storage": "npm:^7.12.0"
     "@jamesives/github-pages-deploy-action": "npm:^4.6.3"
     "@jscutlery/semver": "npm:^5.2.2"
-    "@nx/devkit": "npm:19.5.0"
-    "@nx/eslint-plugin": "npm:19.5.0"
-    "@nx/jest": "npm:19.5.0"
-    "@nx/js": "npm:19.5.0"
-    "@nx/node": "npm:19.5.0"
-    "@nx/plugin": "npm:19.5.0"
-    "@nx/react": "npm:19.5.0"
-    "@nx/webpack": "npm:19.5.0"
-    "@nx/workspace": "npm:19.5.0"
+    "@nx/devkit": "npm:19.6.0"
+    "@nx/eslint-plugin": "npm:19.6.0"
+    "@nx/jest": "npm:19.6.0"
+    "@nx/js": "npm:19.6.0"
+    "@nx/node": "npm:19.6.0"
+    "@nx/plugin": "npm:19.6.0"
+    "@nx/react": "npm:19.6.0"
+    "@nx/webpack": "npm:19.6.0"
+    "@nx/workspace": "npm:19.6.0"
     "@swc-node/register": "npm:1.10.9"
     "@swc/core": "npm:1.7.0"
     "@types/jest": "npm:29.5.12"
@@ -25863,7 +26271,7 @@ __metadata:
     husky: "npm:^9.1.0"
     jest: "npm:29.7.0"
     jest-environment-jsdom: "npm:29.7.0"
-    nx: "npm:19.5.0"
+    nx: "npm:19.6.0"
     prettier: "npm:3.3.3"
     rxjs-for-await: "npm:^1.0.0"
     shelljs: "npm:^0.8.5"
@@ -25877,26 +26285,26 @@ __metadata:
   languageName: unknown
   linkType: soft
 
-"nx@npm:19.5.0":
-  version: 19.5.0
-  resolution: "nx@npm:19.5.0"
+"nx@npm:19.6.0":
+  version: 19.6.0
+  resolution: "nx@npm:19.6.0"
   dependencies:
     "@napi-rs/wasm-runtime": "npm:0.2.4"
-    "@nrwl/tao": "npm:19.5.0"
-    "@nx/nx-darwin-arm64": "npm:19.5.0"
-    "@nx/nx-darwin-x64": "npm:19.5.0"
-    "@nx/nx-freebsd-x64": "npm:19.5.0"
-    "@nx/nx-linux-arm-gnueabihf": "npm:19.5.0"
-    "@nx/nx-linux-arm64-gnu": "npm:19.5.0"
-    "@nx/nx-linux-arm64-musl": "npm:19.5.0"
-    "@nx/nx-linux-x64-gnu": "npm:19.5.0"
-    "@nx/nx-linux-x64-musl": "npm:19.5.0"
-    "@nx/nx-win32-arm64-msvc": "npm:19.5.0"
-    "@nx/nx-win32-x64-msvc": "npm:19.5.0"
+    "@nrwl/tao": "npm:19.6.0"
+    "@nx/nx-darwin-arm64": "npm:19.6.0"
+    "@nx/nx-darwin-x64": "npm:19.6.0"
+    "@nx/nx-freebsd-x64": "npm:19.6.0"
+    "@nx/nx-linux-arm-gnueabihf": "npm:19.6.0"
+    "@nx/nx-linux-arm64-gnu": "npm:19.6.0"
+    "@nx/nx-linux-arm64-musl": "npm:19.6.0"
+    "@nx/nx-linux-x64-gnu": "npm:19.6.0"
+    "@nx/nx-linux-x64-musl": "npm:19.6.0"
+    "@nx/nx-win32-arm64-msvc": "npm:19.6.0"
+    "@nx/nx-win32-x64-msvc": "npm:19.6.0"
     "@yarnpkg/lockfile": "npm:^1.1.0"
     "@yarnpkg/parsers": "npm:3.0.0-rc.46"
     "@zkochan/js-yaml": "npm:0.0.7"
-    axios: "npm:^1.6.0"
+    axios: "npm:^1.7.2"
     chalk: "npm:^4.1.0"
     cli-cursor: "npm:3.1.0"
     cli-spinners: "npm:2.6.1"
@@ -25958,7 +26366,7 @@ __metadata:
   bin:
     nx: bin/nx.js
     nx-cloud: bin/nx-cloud.js
-  checksum: 10/cac641fc6d674b9d82a3bfe6fe9dc6d1ce8d5b8f51933320f09e05d02642990318c9cb3880ac5f1575337e70f97735cd9c06113fa86b3849746850f903d178cb
+  checksum: 10/f1bcb31c3f7457af55447abe27596efdc40d454f06638be1ba32d01a4cfccc8a3ed7d04da2c213b996040bfcc5b9723a13c5a5fe79ff4da531833b0c52fb1066
   languageName: node
   linkType: hard
 
@@ -26067,7 +26475,7 @@ __metadata:
   languageName: node
   linkType: hard
 
-"on-finished@npm:2.4.1, on-finished@npm:^2.3.0":
+"on-finished@npm:2.4.1, on-finished@npm:^2.3.0, on-finished@npm:^2.4.1":
   version: 2.4.1
   resolution: "on-finished@npm:2.4.1"
   dependencies:
@@ -26146,6 +26554,18 @@ __metadata:
   languageName: node
   linkType: hard
 
+"open@npm:^10.0.3":
+  version: 10.1.0
+  resolution: "open@npm:10.1.0"
+  dependencies:
+    default-browser: "npm:^5.2.1"
+    define-lazy-prop: "npm:^3.0.0"
+    is-inside-container: "npm:^1.0.0"
+    is-wsl: "npm:^3.1.0"
+  checksum: 10/a9c4105243a1b3c5312bf2aeb678f78d31f00618b5100088ee01eed2769963ea1f2dd464ac8d93cef51bba2d911e1a9c0c34a753ec7b91d6b22795903ea6647a
+  languageName: node
+  linkType: hard
+
 "open@npm:^8.0.9, open@npm:^8.4.0":
   version: 8.4.2
   resolution: "open@npm:8.4.2"
@@ -26433,6 +26853,17 @@ __metadata:
   languageName: node
   linkType: hard
 
+"p-retry@npm:^6.2.0":
+  version: 6.2.0
+  resolution: "p-retry@npm:6.2.0"
+  dependencies:
+    "@types/retry": "npm:0.12.2"
+    is-network-error: "npm:^1.0.0"
+    retry: "npm:^0.13.1"
+  checksum: 10/1a5ac16828c96c03c354f78d643dfc7aa8f8b998e1b60e27533da2c75e5cabfb1c7f88ce312e813e09a80b056011fbb372d384132e9c92d27d052bd7c282a978
+  languageName: node
+  linkType: hard
+
 "p-try@npm:^2.0.0":
   version: 2.2.0
   resolution: "p-try@npm:2.2.0"
@@ -29751,6 +30182,13 @@ __metadata:
   languageName: node
   linkType: hard
 
+"run-applescript@npm:^7.0.0":
+  version: 7.0.0
+  resolution: "run-applescript@npm:7.0.0"
+  checksum: 10/b02462454d8b182ad4117e5d4626e9e6782eb2072925c9fac582170b0627ae3c1ea92ee9b2df7daf84b5e9ffe14eb1cf5fb70bc44b15c8a0bfcdb47987e2410c
+  languageName: node
+  linkType: hard
+
 "run-async@npm:^2.4.0":
   version: 2.4.1
   resolution: "run-async@npm:2.4.1"
@@ -29939,7 +30377,7 @@ __metadata:
   languageName: node
   linkType: hard
 
-"schema-utils@npm:^4.0.0, schema-utils@npm:^4.0.1":
+"schema-utils@npm:^4.0.0, schema-utils@npm:^4.0.1, schema-utils@npm:^4.2.0":
   version: 4.2.0
   resolution: "schema-utils@npm:4.2.0"
   dependencies:
@@ -30002,6 +30440,16 @@ __metadata:
   languageName: node
   linkType: hard
 
+"selfsigned@npm:^2.4.1":
+  version: 2.4.1
+  resolution: "selfsigned@npm:2.4.1"
+  dependencies:
+    "@types/node-forge": "npm:^1.3.0"
+    node-forge: "npm:^1"
+  checksum: 10/52536623f1cfdeb2f8b9198377f2ce7931c677ea69421238d1dc1ea2983bbe258e56c19e7d1af87035cad7270f19b7e996eaab1212e724d887722502f68e17f2
+  languageName: node
+  linkType: hard
+
 "semver-diff@npm:^4.0.0":
   version: 4.0.0
   resolution: "semver-diff@npm:4.0.0"
@@ -31745,6 +32193,15 @@ __metadata:
   languageName: node
   linkType: hard
 
+"thingies@npm:^1.20.0":
+  version: 1.21.0
+  resolution: "thingies@npm:1.21.0"
+  peerDependencies:
+    tslib: ^2
+  checksum: 10/5c3954b67391d1432c252cb7089f29480e2164f06987a63d83c9747aa6999bfc313d6edfce71ed967316a3378dfcaf38f35ea77aaa5d423edaf776b8ff854f83
+  languageName: node
+  linkType: hard
+
 "through2@npm:^2.0.1, through2@npm:~2.0.3":
   version: 2.0.5
   resolution: "through2@npm:2.0.5"
@@ -31946,6 +32403,15 @@ __metadata:
   languageName: node
   linkType: hard
 
+"tree-dump@npm:^1.0.1":
+  version: 1.0.2
+  resolution: "tree-dump@npm:1.0.2"
+  peerDependencies:
+    tslib: 2
+  checksum: 10/ddcde4da9ded8edc2fa77fc9153ef8d7fba9cd5f813db27c30c7039191b50e1512b7106f0f4fe7ccaa3aa69f85b4671eda7ed0b9f9d34781eb26ebe4593ad4eb
+  languageName: node
+  linkType: hard
+
 "tree-kill@npm:^1.2.2":
   version: 1.2.2
   resolution: "tree-kill@npm:1.2.2"
@@ -33312,7 +33778,7 @@ __metadata:
   languageName: node
   linkType: hard
 
-"webpack-dev-middleware@npm:^5.3.1, webpack-dev-middleware@npm:^5.3.4":
+"webpack-dev-middleware@npm:^5.3.4":
   version: 5.3.4
   resolution: "webpack-dev-middleware@npm:5.3.4"
   dependencies:
@@ -33327,6 +33793,25 @@ __metadata:
   languageName: node
   linkType: hard
 
+"webpack-dev-middleware@npm:^7.1.0":
+  version: 7.3.0
+  resolution: "webpack-dev-middleware@npm:7.3.0"
+  dependencies:
+    colorette: "npm:^2.0.10"
+    memfs: "npm:^4.6.0"
+    mime-types: "npm:^2.1.31"
+    on-finished: "npm:^2.4.1"
+    range-parser: "npm:^1.2.1"
+    schema-utils: "npm:^4.0.0"
+  peerDependencies:
+    webpack: ^5.0.0
+  peerDependenciesMeta:
+    webpack:
+      optional: true
+  checksum: 10/813327ff3814569d43a6608c64503dc9c2b9f993f1ef57cb304afc9e2473c35115306e1e6b9d4f85798531441d11dea3695965bbb5d2782bfcf4a33c3212855f
+  languageName: node
+  linkType: hard
+
 "webpack-dev-server@npm:^4.15.1":
   version: 4.15.2
   resolution: "webpack-dev-server@npm:4.15.2"
@@ -33374,42 +33859,42 @@ __metadata:
   languageName: node
   linkType: hard
 
-"webpack-dev-server@npm:^4.9.3":
-  version: 4.15.1
-  resolution: "webpack-dev-server@npm:4.15.1"
-  dependencies:
-    "@types/bonjour": "npm:^3.5.9"
-    "@types/connect-history-api-fallback": "npm:^1.3.5"
-    "@types/express": "npm:^4.17.13"
-    "@types/serve-index": "npm:^1.9.1"
-    "@types/serve-static": "npm:^1.13.10"
-    "@types/sockjs": "npm:^0.3.33"
-    "@types/ws": "npm:^8.5.5"
+"webpack-dev-server@npm:^5.0.4":
+  version: 5.0.4
+  resolution: "webpack-dev-server@npm:5.0.4"
+  dependencies:
+    "@types/bonjour": "npm:^3.5.13"
+    "@types/connect-history-api-fallback": "npm:^1.5.4"
+    "@types/express": "npm:^4.17.21"
+    "@types/serve-index": "npm:^1.9.4"
+    "@types/serve-static": "npm:^1.15.5"
+    "@types/sockjs": "npm:^0.3.36"
+    "@types/ws": "npm:^8.5.10"
     ansi-html-community: "npm:^0.0.8"
-    bonjour-service: "npm:^1.0.11"
-    chokidar: "npm:^3.5.3"
+    bonjour-service: "npm:^1.2.1"
+    chokidar: "npm:^3.6.0"
     colorette: "npm:^2.0.10"
     compression: "npm:^1.7.4"
     connect-history-api-fallback: "npm:^2.0.0"
     default-gateway: "npm:^6.0.3"
     express: "npm:^4.17.3"
     graceful-fs: "npm:^4.2.6"
-    html-entities: "npm:^2.3.2"
+    html-entities: "npm:^2.4.0"
     http-proxy-middleware: "npm:^2.0.3"
-    ipaddr.js: "npm:^2.0.1"
-    launch-editor: "npm:^2.6.0"
-    open: "npm:^8.0.9"
-    p-retry: "npm:^4.5.0"
-    rimraf: "npm:^3.0.2"
-    schema-utils: "npm:^4.0.0"
-    selfsigned: "npm:^2.1.1"
+    ipaddr.js: "npm:^2.1.0"
+    launch-editor: "npm:^2.6.1"
+    open: "npm:^10.0.3"
+    p-retry: "npm:^6.2.0"
+    rimraf: "npm:^5.0.5"
+    schema-utils: "npm:^4.2.0"
+    selfsigned: "npm:^2.4.1"
     serve-index: "npm:^1.9.1"
     sockjs: "npm:^0.3.24"
     spdy: "npm:^4.0.2"
-    webpack-dev-middleware: "npm:^5.3.1"
-    ws: "npm:^8.13.0"
+    webpack-dev-middleware: "npm:^7.1.0"
+    ws: "npm:^8.16.0"
   peerDependencies:
-    webpack: ^4.37.0 || ^5.0.0
+    webpack: ^5.0.0
   peerDependenciesMeta:
     webpack:
       optional: true
@@ -33417,7 +33902,7 @@ __metadata:
       optional: true
   bin:
     webpack-dev-server: bin/webpack-dev-server.js
-  checksum: 10/fd6dfb6c71eb94696b21930ea4c2f25e95ba85fac1bbc15aa5d03af0a90712eba057901fa9131ed3e901665c95b2379208279aca61e9c48e7cda276c3caa95dd
+  checksum: 10/3896866abf15a1d5cc31ab4fc9c36aacf3431356837ad6debe25cde29289a70c58dcbe40914bbb275ff455463d37437532093d0e8d7744e7643ce1364491fdb4
   languageName: node
   linkType: hard
 
@@ -33889,6 +34374,21 @@ __metadata:
   languageName: node
   linkType: hard
 
+"ws@npm:^8.16.0":
+  version: 8.18.0
+  resolution: "ws@npm:8.18.0"
+  peerDependencies:
+    bufferutil: ^4.0.1
+    utf-8-validate: ">=5.0.2"
+  peerDependenciesMeta:
+    bufferutil:
+      optional: true
+    utf-8-validate:
+      optional: true
+  checksum: 10/70dfe53f23ff4368d46e4c0b1d4ca734db2c4149c6f68bc62cb16fc21f753c47b35fcc6e582f3bdfba0eaeb1c488cddab3c2255755a5c3eecb251431e42b3ff6
+  languageName: node
+  linkType: hard
+
 "ws@npm:~8.11.0":
   version: 8.11.0
   resolution: "ws@npm:8.11.0"