aiblueprint-cli 1.4.106 → 1.4.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -8
- package/agents-config/skills/agents-manager/agents/openai.yaml +3 -0
- package/agents-config/skills/app-icon/SKILL.md +1 -0
- package/agents-config/skills/app-icon/agents/openai.yaml +10 -0
- package/agents-config/skills/app-icon/assets/codex-icon.svg +1 -0
- package/agents-config/skills/appstore-connect/SKILL.md +1 -0
- package/agents-config/skills/appstore-connect/agents/openai.yaml +3 -0
- package/agents-config/skills/audit-skills/agents/openai.yaml +3 -0
- package/agents-config/skills/audit-skills/assets/codex-icon.svg +1 -0
- package/agents-config/skills/environments-manager/agents/openai.yaml +3 -0
- package/agents-config/skills/grill-me/agents/openai.yaml +1 -0
- package/agents-config/skills/hooks-manager/SKILL.md +1 -0
- package/agents-config/skills/hooks-manager/agents/openai.yaml +3 -0
- package/agents-config/skills/rules-manager/agents/openai.yaml +3 -0
- package/agents-config/skills/skill-manager/agents/openai.yaml +3 -0
- package/agents-config/skills/use-style/agents/openai.yaml +3 -0
- package/dist/cli.js +1070 -1038
- package/package.json +1 -1
- package/agents-config/skills/fix-pr-comments/SKILL.md +0 -53
- package/agents-config/skills/fix-pr-comments/agents/openai.yaml +0 -10
- package/agents-config/skills/fix-pr-comments/assets/codex-icon.svg +0 -17
- package/agents-config/skills/merge/SKILL.md +0 -70
- package/agents-config/skills/merge/agents/openai.yaml +0 -10
- package/agents-config/skills/merge/assets/codex-icon.svg +0 -17
- package/agents-config/skills/prompt/SKILL.md +0 -60
- package/agents-config/skills/ultrathink/SKILL.md +0 -44
- package/agents-config/skills/ultrathink/agents/openai.yaml +0 -10
- package/agents-config/skills/ultrathink/assets/codex-icon.svg +0 -20
package/dist/cli.js
CHANGED
|
@@ -19,7 +19,7 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
19
19
|
return cached;
|
|
20
20
|
}
|
|
21
21
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
22
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
|
+
const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
23
23
|
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
24
24
|
for (let key of __getOwnPropNames(mod))
|
|
25
25
|
if (!__hasOwnProp.call(to, key))
|
|
@@ -33,6 +33,15 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
33
33
|
return to;
|
|
34
34
|
};
|
|
35
35
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
36
|
+
var __exportCjs = (target, getters, setters) => {
|
|
37
|
+
for (var name in getters)
|
|
38
|
+
__defProp(target, name, {
|
|
39
|
+
get: getters[name],
|
|
40
|
+
set: setters[name],
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true
|
|
43
|
+
});
|
|
44
|
+
};
|
|
36
45
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
37
46
|
|
|
38
47
|
// node_modules/commander/lib/error.js
|
|
@@ -150,7 +159,7 @@ var require_help = __commonJS(function(exports) {
|
|
|
150
159
|
this.showGlobalOptions = false;
|
|
151
160
|
}
|
|
152
161
|
visibleCommands(cmd) {
|
|
153
|
-
const visibleCommands = cmd.commands.filter((
|
|
162
|
+
const visibleCommands = cmd.commands.filter((cmd) => !cmd._hidden);
|
|
154
163
|
const helpCommand = cmd._getHelpCommand();
|
|
155
164
|
if (helpCommand && !helpCommand._hidden) {
|
|
156
165
|
visibleCommands.push(helpCommand);
|
|
@@ -345,8 +354,8 @@ var require_help = __commonJS(function(exports) {
|
|
|
345
354
|
]);
|
|
346
355
|
}
|
|
347
356
|
}
|
|
348
|
-
const commandList = helper.visibleCommands(cmd).map((
|
|
349
|
-
return formatItem(helper.subcommandTerm(
|
|
357
|
+
const commandList = helper.visibleCommands(cmd).map((cmd) => {
|
|
358
|
+
return formatItem(helper.subcommandTerm(cmd), helper.subcommandDescription(cmd));
|
|
350
359
|
});
|
|
351
360
|
if (commandList.length > 0) {
|
|
352
361
|
output = output.concat(["Commands:", formatList(commandList), ""]);
|
|
@@ -517,8 +526,8 @@ var require_option = __commonJS(function(exports) {
|
|
|
517
526
|
}
|
|
518
527
|
}
|
|
519
528
|
function camelcase(str) {
|
|
520
|
-
return str.split("-").reduce((
|
|
521
|
-
return
|
|
529
|
+
return str.split("-").reduce((str, word) => {
|
|
530
|
+
return str + word[0].toUpperCase() + word.slice(1);
|
|
522
531
|
});
|
|
523
532
|
}
|
|
524
533
|
function splitOptionFlags(flags) {
|
|
@@ -1047,44 +1056,44 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1047
1056
|
});
|
|
1048
1057
|
return source;
|
|
1049
1058
|
}
|
|
1050
|
-
_prepareUserArgs(
|
|
1051
|
-
if (
|
|
1059
|
+
_prepareUserArgs(argv2, parseOptions) {
|
|
1060
|
+
if (argv2 !== undefined && !Array.isArray(argv2)) {
|
|
1052
1061
|
throw new Error("first parameter to parse must be array or undefined");
|
|
1053
1062
|
}
|
|
1054
1063
|
parseOptions = parseOptions || {};
|
|
1055
|
-
if (
|
|
1064
|
+
if (argv2 === undefined && parseOptions.from === undefined) {
|
|
1056
1065
|
if (process2.versions?.electron) {
|
|
1057
1066
|
parseOptions.from = "electron";
|
|
1058
1067
|
}
|
|
1059
|
-
const
|
|
1060
|
-
if (
|
|
1068
|
+
const execArgv2 = process2.execArgv ?? [];
|
|
1069
|
+
if (execArgv2.includes("-e") || execArgv2.includes("--eval") || execArgv2.includes("-p") || execArgv2.includes("--print")) {
|
|
1061
1070
|
parseOptions.from = "eval";
|
|
1062
1071
|
}
|
|
1063
1072
|
}
|
|
1064
|
-
if (
|
|
1065
|
-
|
|
1073
|
+
if (argv2 === undefined) {
|
|
1074
|
+
argv2 = process2.argv;
|
|
1066
1075
|
}
|
|
1067
|
-
this.rawArgs =
|
|
1076
|
+
this.rawArgs = argv2.slice();
|
|
1068
1077
|
let userArgs;
|
|
1069
1078
|
switch (parseOptions.from) {
|
|
1070
1079
|
case undefined:
|
|
1071
1080
|
case "node":
|
|
1072
|
-
this._scriptPath =
|
|
1073
|
-
userArgs =
|
|
1081
|
+
this._scriptPath = argv2[1];
|
|
1082
|
+
userArgs = argv2.slice(2);
|
|
1074
1083
|
break;
|
|
1075
1084
|
case "electron":
|
|
1076
1085
|
if (process2.defaultApp) {
|
|
1077
|
-
this._scriptPath =
|
|
1078
|
-
userArgs =
|
|
1086
|
+
this._scriptPath = argv2[1];
|
|
1087
|
+
userArgs = argv2.slice(2);
|
|
1079
1088
|
} else {
|
|
1080
|
-
userArgs =
|
|
1089
|
+
userArgs = argv2.slice(1);
|
|
1081
1090
|
}
|
|
1082
1091
|
break;
|
|
1083
1092
|
case "user":
|
|
1084
|
-
userArgs =
|
|
1093
|
+
userArgs = argv2.slice(0);
|
|
1085
1094
|
break;
|
|
1086
1095
|
case "eval":
|
|
1087
|
-
userArgs =
|
|
1096
|
+
userArgs = argv2.slice(1);
|
|
1088
1097
|
break;
|
|
1089
1098
|
default:
|
|
1090
1099
|
throw new Error(`unexpected parse option { from: '${parseOptions.from}' }`);
|
|
@@ -1572,18 +1581,18 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1572
1581
|
this.error(message, { code: "commander.missingMandatoryOptionValue" });
|
|
1573
1582
|
}
|
|
1574
1583
|
_conflictingOption(option, conflictingOption) {
|
|
1575
|
-
const findBestOptionFromValue = (
|
|
1576
|
-
const optionKey =
|
|
1584
|
+
const findBestOptionFromValue = (option) => {
|
|
1585
|
+
const optionKey = option.attributeName();
|
|
1577
1586
|
const optionValue = this.getOptionValue(optionKey);
|
|
1578
1587
|
const negativeOption = this.options.find((target) => target.negate && optionKey === target.attributeName());
|
|
1579
1588
|
const positiveOption = this.options.find((target) => !target.negate && optionKey === target.attributeName());
|
|
1580
1589
|
if (negativeOption && (negativeOption.presetArg === undefined && optionValue === false || negativeOption.presetArg !== undefined && optionValue === negativeOption.presetArg)) {
|
|
1581
1590
|
return negativeOption;
|
|
1582
1591
|
}
|
|
1583
|
-
return positiveOption ||
|
|
1592
|
+
return positiveOption || option;
|
|
1584
1593
|
};
|
|
1585
|
-
const getErrorMessage = (
|
|
1586
|
-
const bestOption = findBestOptionFromValue(
|
|
1594
|
+
const getErrorMessage = (option) => {
|
|
1595
|
+
const bestOption = findBestOptionFromValue(option);
|
|
1587
1596
|
const optionKey = bestOption.attributeName();
|
|
1588
1597
|
const source = this.getOptionValueSource(optionKey);
|
|
1589
1598
|
if (source === "env") {
|
|
@@ -1711,10 +1720,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1711
1720
|
this._name = path.basename(filename, path.extname(filename));
|
|
1712
1721
|
return this;
|
|
1713
1722
|
}
|
|
1714
|
-
executableDir(
|
|
1715
|
-
if (
|
|
1723
|
+
executableDir(path) {
|
|
1724
|
+
if (path === undefined)
|
|
1716
1725
|
return this._executableDir;
|
|
1717
|
-
this._executableDir =
|
|
1726
|
+
this._executableDir = path;
|
|
1718
1727
|
return this;
|
|
1719
1728
|
}
|
|
1720
1729
|
helpInformation(contextOptions) {
|
|
@@ -1786,11 +1795,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1786
1795
|
}
|
|
1787
1796
|
help(contextOptions) {
|
|
1788
1797
|
this.outputHelp(contextOptions);
|
|
1789
|
-
let
|
|
1790
|
-
if (
|
|
1791
|
-
|
|
1798
|
+
let exitCode2 = process2.exitCode || 0;
|
|
1799
|
+
if (exitCode2 === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) {
|
|
1800
|
+
exitCode2 = 1;
|
|
1792
1801
|
}
|
|
1793
|
-
this._exit(
|
|
1802
|
+
this._exit(exitCode2, "commander.help", "(outputHelp)");
|
|
1794
1803
|
}
|
|
1795
1804
|
addHelpText(position, text) {
|
|
1796
1805
|
const allowedValues = ["beforeAll", "before", "after", "afterAll"];
|
|
@@ -1854,144 +1863,6 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1854
1863
|
exports.Command = Command;
|
|
1855
1864
|
});
|
|
1856
1865
|
|
|
1857
|
-
// node_modules/commander/index.js
|
|
1858
|
-
var require_commander = __commonJS(function(exports) {
|
|
1859
|
-
var { Argument } = require_argument();
|
|
1860
|
-
var { Command } = require_command();
|
|
1861
|
-
var { CommanderError, InvalidArgumentError } = require_error();
|
|
1862
|
-
var { Help } = require_help();
|
|
1863
|
-
var { Option } = require_option();
|
|
1864
|
-
exports.program = new Command;
|
|
1865
|
-
exports.createCommand = (name) => new Command(name);
|
|
1866
|
-
exports.createOption = (flags, description) => new Option(flags, description);
|
|
1867
|
-
exports.createArgument = (name, description) => new Argument(name, description);
|
|
1868
|
-
exports.Command = Command;
|
|
1869
|
-
exports.Option = Option;
|
|
1870
|
-
exports.Argument = Argument;
|
|
1871
|
-
exports.Help = Help;
|
|
1872
|
-
exports.CommanderError = CommanderError;
|
|
1873
|
-
exports.InvalidArgumentError = InvalidArgumentError;
|
|
1874
|
-
exports.InvalidOptionArgumentError = InvalidArgumentError;
|
|
1875
|
-
});
|
|
1876
|
-
|
|
1877
|
-
// node_modules/ansi-escapes/index.js
|
|
1878
|
-
var require_ansi_escapes = __commonJS(function(exports, module) {
|
|
1879
|
-
var ansiEscapes = exports;
|
|
1880
|
-
exports.default = ansiEscapes;
|
|
1881
|
-
var ESC = "\x1B[";
|
|
1882
|
-
var OSC = "\x1B]";
|
|
1883
|
-
var BEL = "\x07";
|
|
1884
|
-
var SEP = ";";
|
|
1885
|
-
var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
|
|
1886
|
-
ansiEscapes.cursorTo = (x, y) => {
|
|
1887
|
-
if (typeof x !== "number") {
|
|
1888
|
-
throw new TypeError("The `x` argument is required");
|
|
1889
|
-
}
|
|
1890
|
-
if (typeof y !== "number") {
|
|
1891
|
-
return ESC + (x + 1) + "G";
|
|
1892
|
-
}
|
|
1893
|
-
return ESC + (y + 1) + ";" + (x + 1) + "H";
|
|
1894
|
-
};
|
|
1895
|
-
ansiEscapes.cursorMove = (x, y) => {
|
|
1896
|
-
if (typeof x !== "number") {
|
|
1897
|
-
throw new TypeError("The `x` argument is required");
|
|
1898
|
-
}
|
|
1899
|
-
let ret = "";
|
|
1900
|
-
if (x < 0) {
|
|
1901
|
-
ret += ESC + -x + "D";
|
|
1902
|
-
} else if (x > 0) {
|
|
1903
|
-
ret += ESC + x + "C";
|
|
1904
|
-
}
|
|
1905
|
-
if (y < 0) {
|
|
1906
|
-
ret += ESC + -y + "A";
|
|
1907
|
-
} else if (y > 0) {
|
|
1908
|
-
ret += ESC + y + "B";
|
|
1909
|
-
}
|
|
1910
|
-
return ret;
|
|
1911
|
-
};
|
|
1912
|
-
ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
|
|
1913
|
-
ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
|
|
1914
|
-
ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
|
|
1915
|
-
ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
|
|
1916
|
-
ansiEscapes.cursorLeft = ESC + "G";
|
|
1917
|
-
ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
|
|
1918
|
-
ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
|
|
1919
|
-
ansiEscapes.cursorGetPosition = ESC + "6n";
|
|
1920
|
-
ansiEscapes.cursorNextLine = ESC + "E";
|
|
1921
|
-
ansiEscapes.cursorPrevLine = ESC + "F";
|
|
1922
|
-
ansiEscapes.cursorHide = ESC + "?25l";
|
|
1923
|
-
ansiEscapes.cursorShow = ESC + "?25h";
|
|
1924
|
-
ansiEscapes.eraseLines = (count) => {
|
|
1925
|
-
let clear = "";
|
|
1926
|
-
for (let i = 0;i < count; i++) {
|
|
1927
|
-
clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
|
|
1928
|
-
}
|
|
1929
|
-
if (count) {
|
|
1930
|
-
clear += ansiEscapes.cursorLeft;
|
|
1931
|
-
}
|
|
1932
|
-
return clear;
|
|
1933
|
-
};
|
|
1934
|
-
ansiEscapes.eraseEndLine = ESC + "K";
|
|
1935
|
-
ansiEscapes.eraseStartLine = ESC + "1K";
|
|
1936
|
-
ansiEscapes.eraseLine = ESC + "2K";
|
|
1937
|
-
ansiEscapes.eraseDown = ESC + "J";
|
|
1938
|
-
ansiEscapes.eraseUp = ESC + "1J";
|
|
1939
|
-
ansiEscapes.eraseScreen = ESC + "2J";
|
|
1940
|
-
ansiEscapes.scrollUp = ESC + "S";
|
|
1941
|
-
ansiEscapes.scrollDown = ESC + "T";
|
|
1942
|
-
ansiEscapes.clearScreen = "\x1Bc";
|
|
1943
|
-
ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
|
|
1944
|
-
ansiEscapes.beep = BEL;
|
|
1945
|
-
ansiEscapes.link = (text, url) => {
|
|
1946
|
-
return [
|
|
1947
|
-
OSC,
|
|
1948
|
-
"8",
|
|
1949
|
-
SEP,
|
|
1950
|
-
SEP,
|
|
1951
|
-
url,
|
|
1952
|
-
BEL,
|
|
1953
|
-
text,
|
|
1954
|
-
OSC,
|
|
1955
|
-
"8",
|
|
1956
|
-
SEP,
|
|
1957
|
-
SEP,
|
|
1958
|
-
BEL
|
|
1959
|
-
].join("");
|
|
1960
|
-
};
|
|
1961
|
-
ansiEscapes.image = (buffer, options = {}) => {
|
|
1962
|
-
let ret = `${OSC}1337;File=inline=1`;
|
|
1963
|
-
if (options.width) {
|
|
1964
|
-
ret += `;width=${options.width}`;
|
|
1965
|
-
}
|
|
1966
|
-
if (options.height) {
|
|
1967
|
-
ret += `;height=${options.height}`;
|
|
1968
|
-
}
|
|
1969
|
-
if (options.preserveAspectRatio === false) {
|
|
1970
|
-
ret += ";preserveAspectRatio=0";
|
|
1971
|
-
}
|
|
1972
|
-
return ret + ":" + buffer.toString("base64") + BEL;
|
|
1973
|
-
};
|
|
1974
|
-
ansiEscapes.iTerm = {
|
|
1975
|
-
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
|
1976
|
-
annotation: (message, options = {}) => {
|
|
1977
|
-
let ret = `${OSC}1337;`;
|
|
1978
|
-
const hasX = typeof options.x !== "undefined";
|
|
1979
|
-
const hasY = typeof options.y !== "undefined";
|
|
1980
|
-
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
|
1981
|
-
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
|
1982
|
-
}
|
|
1983
|
-
message = message.replace(/\|/g, "");
|
|
1984
|
-
ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
|
1985
|
-
if (options.length > 0) {
|
|
1986
|
-
ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
|
1987
|
-
} else {
|
|
1988
|
-
ret += message;
|
|
1989
|
-
}
|
|
1990
|
-
return ret + BEL;
|
|
1991
|
-
}
|
|
1992
|
-
};
|
|
1993
|
-
});
|
|
1994
|
-
|
|
1995
1866
|
// node_modules/yoctocolors-cjs/index.js
|
|
1996
1867
|
var require_yoctocolors_cjs = __commonJS(function(exports, module) {
|
|
1997
1868
|
var tty = __require("node:tty");
|
|
@@ -2269,13 +2140,13 @@ var require_Subscription = __commonJS(function(exports) {
|
|
|
2269
2140
|
var UnsubscriptionError_1 = require_UnsubscriptionError();
|
|
2270
2141
|
var arrRemove_1 = require_arrRemove();
|
|
2271
2142
|
var Subscription = function() {
|
|
2272
|
-
function
|
|
2143
|
+
function Subscription(initialTeardown) {
|
|
2273
2144
|
this.initialTeardown = initialTeardown;
|
|
2274
2145
|
this.closed = false;
|
|
2275
2146
|
this._parentage = null;
|
|
2276
2147
|
this._finalizers = null;
|
|
2277
2148
|
}
|
|
2278
|
-
|
|
2149
|
+
Subscription.prototype.unsubscribe = function() {
|
|
2279
2150
|
var e_1, _a, e_2, _b;
|
|
2280
2151
|
var errors;
|
|
2281
2152
|
if (!this.closed) {
|
|
@@ -2346,13 +2217,13 @@ var require_Subscription = __commonJS(function(exports) {
|
|
|
2346
2217
|
}
|
|
2347
2218
|
}
|
|
2348
2219
|
};
|
|
2349
|
-
|
|
2220
|
+
Subscription.prototype.add = function(teardown) {
|
|
2350
2221
|
var _a;
|
|
2351
2222
|
if (teardown && teardown !== this) {
|
|
2352
2223
|
if (this.closed) {
|
|
2353
2224
|
execFinalizer(teardown);
|
|
2354
2225
|
} else {
|
|
2355
|
-
if (teardown instanceof
|
|
2226
|
+
if (teardown instanceof Subscription) {
|
|
2356
2227
|
if (teardown.closed || teardown._hasParent(this)) {
|
|
2357
2228
|
return;
|
|
2358
2229
|
}
|
|
@@ -2362,15 +2233,15 @@ var require_Subscription = __commonJS(function(exports) {
|
|
|
2362
2233
|
}
|
|
2363
2234
|
}
|
|
2364
2235
|
};
|
|
2365
|
-
|
|
2236
|
+
Subscription.prototype._hasParent = function(parent) {
|
|
2366
2237
|
var _parentage = this._parentage;
|
|
2367
2238
|
return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent);
|
|
2368
2239
|
};
|
|
2369
|
-
|
|
2240
|
+
Subscription.prototype._addParent = function(parent) {
|
|
2370
2241
|
var _parentage = this._parentage;
|
|
2371
2242
|
this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
|
|
2372
2243
|
};
|
|
2373
|
-
|
|
2244
|
+
Subscription.prototype._removeParent = function(parent) {
|
|
2374
2245
|
var _parentage = this._parentage;
|
|
2375
2246
|
if (_parentage === parent) {
|
|
2376
2247
|
this._parentage = null;
|
|
@@ -2378,19 +2249,19 @@ var require_Subscription = __commonJS(function(exports) {
|
|
|
2378
2249
|
arrRemove_1.arrRemove(_parentage, parent);
|
|
2379
2250
|
}
|
|
2380
2251
|
};
|
|
2381
|
-
|
|
2252
|
+
Subscription.prototype.remove = function(teardown) {
|
|
2382
2253
|
var _finalizers = this._finalizers;
|
|
2383
2254
|
_finalizers && arrRemove_1.arrRemove(_finalizers, teardown);
|
|
2384
|
-
if (teardown instanceof
|
|
2255
|
+
if (teardown instanceof Subscription) {
|
|
2385
2256
|
teardown._removeParent(this);
|
|
2386
2257
|
}
|
|
2387
2258
|
};
|
|
2388
|
-
|
|
2389
|
-
var empty = new
|
|
2259
|
+
Subscription.EMPTY = function() {
|
|
2260
|
+
var empty = new Subscription;
|
|
2390
2261
|
empty.closed = true;
|
|
2391
2262
|
return empty;
|
|
2392
2263
|
}();
|
|
2393
|
-
return
|
|
2264
|
+
return Subscription;
|
|
2394
2265
|
}();
|
|
2395
2266
|
exports.Subscription = Subscription;
|
|
2396
2267
|
exports.EMPTY_SUBSCRIPTION = Subscription.EMPTY;
|
|
@@ -2536,7 +2407,7 @@ var require_errorContext = __commonJS(function(exports) {
|
|
|
2536
2407
|
}
|
|
2537
2408
|
cb();
|
|
2538
2409
|
if (isRoot) {
|
|
2539
|
-
var _a = context,
|
|
2410
|
+
var _a = context, { errorThrown, error } = _a;
|
|
2540
2411
|
context = null;
|
|
2541
2412
|
if (errorThrown) {
|
|
2542
2413
|
throw error;
|
|
@@ -2560,12 +2431,12 @@ var require_errorContext = __commonJS(function(exports) {
|
|
|
2560
2431
|
var require_Subscriber = __commonJS(function(exports) {
|
|
2561
2432
|
var __extends = exports && exports.__extends || function() {
|
|
2562
2433
|
var extendStatics = function(d, b) {
|
|
2563
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
2564
|
-
|
|
2565
|
-
} || function(
|
|
2566
|
-
for (var p in
|
|
2567
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2568
|
-
|
|
2434
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
2435
|
+
d.__proto__ = b;
|
|
2436
|
+
} || function(d, b) {
|
|
2437
|
+
for (var p in b)
|
|
2438
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
2439
|
+
d[p] = b[p];
|
|
2569
2440
|
};
|
|
2570
2441
|
return extendStatics(d, b);
|
|
2571
2442
|
};
|
|
@@ -2590,8 +2461,8 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
2590
2461
|
var timeoutProvider_1 = require_timeoutProvider();
|
|
2591
2462
|
var errorContext_1 = require_errorContext();
|
|
2592
2463
|
var Subscriber = function(_super) {
|
|
2593
|
-
__extends(
|
|
2594
|
-
function
|
|
2464
|
+
__extends(Subscriber, _super);
|
|
2465
|
+
function Subscriber(destination) {
|
|
2595
2466
|
var _this = _super.call(this) || this;
|
|
2596
2467
|
_this.isStopped = false;
|
|
2597
2468
|
if (destination) {
|
|
@@ -2604,17 +2475,17 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
2604
2475
|
}
|
|
2605
2476
|
return _this;
|
|
2606
2477
|
}
|
|
2607
|
-
|
|
2478
|
+
Subscriber.create = function(next, error, complete) {
|
|
2608
2479
|
return new SafeSubscriber(next, error, complete);
|
|
2609
2480
|
};
|
|
2610
|
-
|
|
2481
|
+
Subscriber.prototype.next = function(value) {
|
|
2611
2482
|
if (this.isStopped) {
|
|
2612
2483
|
handleStoppedNotification(NotificationFactories_1.nextNotification(value), this);
|
|
2613
2484
|
} else {
|
|
2614
2485
|
this._next(value);
|
|
2615
2486
|
}
|
|
2616
2487
|
};
|
|
2617
|
-
|
|
2488
|
+
Subscriber.prototype.error = function(err) {
|
|
2618
2489
|
if (this.isStopped) {
|
|
2619
2490
|
handleStoppedNotification(NotificationFactories_1.errorNotification(err), this);
|
|
2620
2491
|
} else {
|
|
@@ -2622,7 +2493,7 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
2622
2493
|
this._error(err);
|
|
2623
2494
|
}
|
|
2624
2495
|
};
|
|
2625
|
-
|
|
2496
|
+
Subscriber.prototype.complete = function() {
|
|
2626
2497
|
if (this.isStopped) {
|
|
2627
2498
|
handleStoppedNotification(NotificationFactories_1.COMPLETE_NOTIFICATION, this);
|
|
2628
2499
|
} else {
|
|
@@ -2630,31 +2501,31 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
2630
2501
|
this._complete();
|
|
2631
2502
|
}
|
|
2632
2503
|
};
|
|
2633
|
-
|
|
2504
|
+
Subscriber.prototype.unsubscribe = function() {
|
|
2634
2505
|
if (!this.closed) {
|
|
2635
2506
|
this.isStopped = true;
|
|
2636
2507
|
_super.prototype.unsubscribe.call(this);
|
|
2637
2508
|
this.destination = null;
|
|
2638
2509
|
}
|
|
2639
2510
|
};
|
|
2640
|
-
|
|
2511
|
+
Subscriber.prototype._next = function(value) {
|
|
2641
2512
|
this.destination.next(value);
|
|
2642
2513
|
};
|
|
2643
|
-
|
|
2514
|
+
Subscriber.prototype._error = function(err) {
|
|
2644
2515
|
try {
|
|
2645
2516
|
this.destination.error(err);
|
|
2646
2517
|
} finally {
|
|
2647
2518
|
this.unsubscribe();
|
|
2648
2519
|
}
|
|
2649
2520
|
};
|
|
2650
|
-
|
|
2521
|
+
Subscriber.prototype._complete = function() {
|
|
2651
2522
|
try {
|
|
2652
2523
|
this.destination.complete();
|
|
2653
2524
|
} finally {
|
|
2654
2525
|
this.unsubscribe();
|
|
2655
2526
|
}
|
|
2656
2527
|
};
|
|
2657
|
-
return
|
|
2528
|
+
return Subscriber;
|
|
2658
2529
|
}(Subscription_1.Subscription);
|
|
2659
2530
|
exports.Subscriber = Subscriber;
|
|
2660
2531
|
var _bind = Function.prototype.bind;
|
|
@@ -2662,10 +2533,10 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
2662
2533
|
return _bind.call(fn, thisArg);
|
|
2663
2534
|
}
|
|
2664
2535
|
var ConsumerObserver = function() {
|
|
2665
|
-
function
|
|
2536
|
+
function ConsumerObserver(partialObserver) {
|
|
2666
2537
|
this.partialObserver = partialObserver;
|
|
2667
2538
|
}
|
|
2668
|
-
|
|
2539
|
+
ConsumerObserver.prototype.next = function(value) {
|
|
2669
2540
|
var partialObserver = this.partialObserver;
|
|
2670
2541
|
if (partialObserver.next) {
|
|
2671
2542
|
try {
|
|
@@ -2675,7 +2546,7 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
2675
2546
|
}
|
|
2676
2547
|
}
|
|
2677
2548
|
};
|
|
2678
|
-
|
|
2549
|
+
ConsumerObserver.prototype.error = function(err) {
|
|
2679
2550
|
var partialObserver = this.partialObserver;
|
|
2680
2551
|
if (partialObserver.error) {
|
|
2681
2552
|
try {
|
|
@@ -2687,7 +2558,7 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
2687
2558
|
handleUnhandledError(err);
|
|
2688
2559
|
}
|
|
2689
2560
|
};
|
|
2690
|
-
|
|
2561
|
+
ConsumerObserver.prototype.complete = function() {
|
|
2691
2562
|
var partialObserver = this.partialObserver;
|
|
2692
2563
|
if (partialObserver.complete) {
|
|
2693
2564
|
try {
|
|
@@ -2697,11 +2568,11 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
2697
2568
|
}
|
|
2698
2569
|
}
|
|
2699
2570
|
};
|
|
2700
|
-
return
|
|
2571
|
+
return ConsumerObserver;
|
|
2701
2572
|
}();
|
|
2702
2573
|
var SafeSubscriber = function(_super) {
|
|
2703
|
-
__extends(
|
|
2704
|
-
function
|
|
2574
|
+
__extends(SafeSubscriber, _super);
|
|
2575
|
+
function SafeSubscriber(observerOrNext, error, complete) {
|
|
2705
2576
|
var _this = _super.call(this) || this;
|
|
2706
2577
|
var partialObserver;
|
|
2707
2578
|
if (isFunction_1.isFunction(observerOrNext) || !observerOrNext) {
|
|
@@ -2729,7 +2600,7 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
2729
2600
|
_this.destination = new ConsumerObserver(partialObserver);
|
|
2730
2601
|
return _this;
|
|
2731
2602
|
}
|
|
2732
|
-
return
|
|
2603
|
+
return SafeSubscriber;
|
|
2733
2604
|
}(Subscriber);
|
|
2734
2605
|
exports.SafeSubscriber = SafeSubscriber;
|
|
2735
2606
|
function handleUnhandledError(error) {
|
|
@@ -2816,34 +2687,34 @@ var require_Observable = __commonJS(function(exports) {
|
|
|
2816
2687
|
var isFunction_1 = require_isFunction();
|
|
2817
2688
|
var errorContext_1 = require_errorContext();
|
|
2818
2689
|
var Observable = function() {
|
|
2819
|
-
function
|
|
2690
|
+
function Observable(subscribe) {
|
|
2820
2691
|
if (subscribe) {
|
|
2821
2692
|
this._subscribe = subscribe;
|
|
2822
2693
|
}
|
|
2823
2694
|
}
|
|
2824
|
-
|
|
2825
|
-
var observable = new
|
|
2695
|
+
Observable.prototype.lift = function(operator) {
|
|
2696
|
+
var observable = new Observable;
|
|
2826
2697
|
observable.source = this;
|
|
2827
2698
|
observable.operator = operator;
|
|
2828
2699
|
return observable;
|
|
2829
2700
|
};
|
|
2830
|
-
|
|
2701
|
+
Observable.prototype.subscribe = function(observerOrNext, error, complete) {
|
|
2831
2702
|
var _this = this;
|
|
2832
2703
|
var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new Subscriber_1.SafeSubscriber(observerOrNext, error, complete);
|
|
2833
2704
|
errorContext_1.errorContext(function() {
|
|
2834
|
-
var _a = _this,
|
|
2705
|
+
var _a = _this, { operator, source } = _a;
|
|
2835
2706
|
subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
|
|
2836
2707
|
});
|
|
2837
2708
|
return subscriber;
|
|
2838
2709
|
};
|
|
2839
|
-
|
|
2710
|
+
Observable.prototype._trySubscribe = function(sink) {
|
|
2840
2711
|
try {
|
|
2841
2712
|
return this._subscribe(sink);
|
|
2842
2713
|
} catch (err) {
|
|
2843
2714
|
sink.error(err);
|
|
2844
2715
|
}
|
|
2845
2716
|
};
|
|
2846
|
-
|
|
2717
|
+
Observable.prototype.forEach = function(next, promiseCtor) {
|
|
2847
2718
|
var _this = this;
|
|
2848
2719
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
2849
2720
|
return new promiseCtor(function(resolve, reject) {
|
|
@@ -2862,21 +2733,21 @@ var require_Observable = __commonJS(function(exports) {
|
|
|
2862
2733
|
_this.subscribe(subscriber);
|
|
2863
2734
|
});
|
|
2864
2735
|
};
|
|
2865
|
-
|
|
2736
|
+
Observable.prototype._subscribe = function(subscriber) {
|
|
2866
2737
|
var _a;
|
|
2867
2738
|
return (_a = this.source) === null || _a === undefined ? undefined : _a.subscribe(subscriber);
|
|
2868
2739
|
};
|
|
2869
|
-
|
|
2740
|
+
Observable.prototype[observable_1.observable] = function() {
|
|
2870
2741
|
return this;
|
|
2871
2742
|
};
|
|
2872
|
-
|
|
2743
|
+
Observable.prototype.pipe = function() {
|
|
2873
2744
|
var operations = [];
|
|
2874
2745
|
for (var _i = 0;_i < arguments.length; _i++) {
|
|
2875
2746
|
operations[_i] = arguments[_i];
|
|
2876
2747
|
}
|
|
2877
2748
|
return pipe_1.pipeFromArray(operations)(this);
|
|
2878
2749
|
};
|
|
2879
|
-
|
|
2750
|
+
Observable.prototype.toPromise = function(promiseCtor) {
|
|
2880
2751
|
var _this = this;
|
|
2881
2752
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
2882
2753
|
return new promiseCtor(function(resolve, reject) {
|
|
@@ -2890,10 +2761,10 @@ var require_Observable = __commonJS(function(exports) {
|
|
|
2890
2761
|
});
|
|
2891
2762
|
});
|
|
2892
2763
|
};
|
|
2893
|
-
|
|
2894
|
-
return new
|
|
2764
|
+
Observable.create = function(subscribe) {
|
|
2765
|
+
return new Observable(subscribe);
|
|
2895
2766
|
};
|
|
2896
|
-
return
|
|
2767
|
+
return Observable;
|
|
2897
2768
|
}();
|
|
2898
2769
|
exports.Observable = Observable;
|
|
2899
2770
|
function getPromiseCtor(promiseCtor) {
|
|
@@ -2938,12 +2809,12 @@ var require_lift = __commonJS(function(exports) {
|
|
|
2938
2809
|
var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
2939
2810
|
var __extends = exports && exports.__extends || function() {
|
|
2940
2811
|
var extendStatics = function(d, b) {
|
|
2941
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
2942
|
-
|
|
2943
|
-
} || function(
|
|
2944
|
-
for (var p in
|
|
2945
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2946
|
-
|
|
2812
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
2813
|
+
d.__proto__ = b;
|
|
2814
|
+
} || function(d, b) {
|
|
2815
|
+
for (var p in b)
|
|
2816
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
2817
|
+
d[p] = b[p];
|
|
2947
2818
|
};
|
|
2948
2819
|
return extendStatics(d, b);
|
|
2949
2820
|
};
|
|
@@ -2965,8 +2836,8 @@ var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
|
2965
2836
|
}
|
|
2966
2837
|
exports.createOperatorSubscriber = createOperatorSubscriber;
|
|
2967
2838
|
var OperatorSubscriber = function(_super) {
|
|
2968
|
-
__extends(
|
|
2969
|
-
function
|
|
2839
|
+
__extends(OperatorSubscriber, _super);
|
|
2840
|
+
function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
|
2970
2841
|
var _this = _super.call(this, destination) || this;
|
|
2971
2842
|
_this.onFinalize = onFinalize;
|
|
2972
2843
|
_this.shouldUnsubscribe = shouldUnsubscribe;
|
|
@@ -2980,8 +2851,8 @@ var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
|
2980
2851
|
_this._error = onError ? function(err) {
|
|
2981
2852
|
try {
|
|
2982
2853
|
onError(err);
|
|
2983
|
-
} catch (
|
|
2984
|
-
destination.error(
|
|
2854
|
+
} catch (err) {
|
|
2855
|
+
destination.error(err);
|
|
2985
2856
|
} finally {
|
|
2986
2857
|
this.unsubscribe();
|
|
2987
2858
|
}
|
|
@@ -2997,7 +2868,7 @@ var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
|
2997
2868
|
} : _super.prototype._complete;
|
|
2998
2869
|
return _this;
|
|
2999
2870
|
}
|
|
3000
|
-
|
|
2871
|
+
OperatorSubscriber.prototype.unsubscribe = function() {
|
|
3001
2872
|
var _a;
|
|
3002
2873
|
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
3003
2874
|
var closed_1 = this.closed;
|
|
@@ -3005,7 +2876,7 @@ var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
|
3005
2876
|
!closed_1 && ((_a = this.onFinalize) === null || _a === undefined || _a.call(this));
|
|
3006
2877
|
}
|
|
3007
2878
|
};
|
|
3008
|
-
return
|
|
2879
|
+
return OperatorSubscriber;
|
|
3009
2880
|
}(Subscriber_1.Subscriber);
|
|
3010
2881
|
exports.OperatorSubscriber = OperatorSubscriber;
|
|
3011
2882
|
});
|
|
@@ -3046,12 +2917,12 @@ var require_refCount = __commonJS(function(exports) {
|
|
|
3046
2917
|
var require_ConnectableObservable = __commonJS(function(exports) {
|
|
3047
2918
|
var __extends = exports && exports.__extends || function() {
|
|
3048
2919
|
var extendStatics = function(d, b) {
|
|
3049
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
3050
|
-
|
|
3051
|
-
} || function(
|
|
3052
|
-
for (var p in
|
|
3053
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3054
|
-
|
|
2920
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
2921
|
+
d.__proto__ = b;
|
|
2922
|
+
} || function(d, b) {
|
|
2923
|
+
for (var p in b)
|
|
2924
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
2925
|
+
d[p] = b[p];
|
|
3055
2926
|
};
|
|
3056
2927
|
return extendStatics(d, b);
|
|
3057
2928
|
};
|
|
@@ -3073,8 +2944,8 @@ var require_ConnectableObservable = __commonJS(function(exports) {
|
|
|
3073
2944
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
3074
2945
|
var lift_1 = require_lift();
|
|
3075
2946
|
var ConnectableObservable = function(_super) {
|
|
3076
|
-
__extends(
|
|
3077
|
-
function
|
|
2947
|
+
__extends(ConnectableObservable, _super);
|
|
2948
|
+
function ConnectableObservable(source, subjectFactory) {
|
|
3078
2949
|
var _this = _super.call(this) || this;
|
|
3079
2950
|
_this.source = source;
|
|
3080
2951
|
_this.subjectFactory = subjectFactory;
|
|
@@ -3086,23 +2957,23 @@ var require_ConnectableObservable = __commonJS(function(exports) {
|
|
|
3086
2957
|
}
|
|
3087
2958
|
return _this;
|
|
3088
2959
|
}
|
|
3089
|
-
|
|
2960
|
+
ConnectableObservable.prototype._subscribe = function(subscriber) {
|
|
3090
2961
|
return this.getSubject().subscribe(subscriber);
|
|
3091
2962
|
};
|
|
3092
|
-
|
|
2963
|
+
ConnectableObservable.prototype.getSubject = function() {
|
|
3093
2964
|
var subject = this._subject;
|
|
3094
2965
|
if (!subject || subject.isStopped) {
|
|
3095
2966
|
this._subject = this.subjectFactory();
|
|
3096
2967
|
}
|
|
3097
2968
|
return this._subject;
|
|
3098
2969
|
};
|
|
3099
|
-
|
|
2970
|
+
ConnectableObservable.prototype._teardown = function() {
|
|
3100
2971
|
this._refCount = 0;
|
|
3101
2972
|
var _connection = this._connection;
|
|
3102
2973
|
this._subject = this._connection = null;
|
|
3103
2974
|
_connection === null || _connection === undefined || _connection.unsubscribe();
|
|
3104
2975
|
};
|
|
3105
|
-
|
|
2976
|
+
ConnectableObservable.prototype.connect = function() {
|
|
3106
2977
|
var _this = this;
|
|
3107
2978
|
var connection = this._connection;
|
|
3108
2979
|
if (!connection) {
|
|
@@ -3124,10 +2995,10 @@ var require_ConnectableObservable = __commonJS(function(exports) {
|
|
|
3124
2995
|
}
|
|
3125
2996
|
return connection;
|
|
3126
2997
|
};
|
|
3127
|
-
|
|
2998
|
+
ConnectableObservable.prototype.refCount = function() {
|
|
3128
2999
|
return refCount_1.refCount()(this);
|
|
3129
3000
|
};
|
|
3130
|
-
return
|
|
3001
|
+
return ConnectableObservable;
|
|
3131
3002
|
}(Observable_1.Observable);
|
|
3132
3003
|
exports.ConnectableObservable = ConnectableObservable;
|
|
3133
3004
|
});
|
|
@@ -3270,12 +3141,12 @@ var require_ObjectUnsubscribedError = __commonJS(function(exports) {
|
|
|
3270
3141
|
var require_Subject = __commonJS(function(exports) {
|
|
3271
3142
|
var __extends = exports && exports.__extends || function() {
|
|
3272
3143
|
var extendStatics = function(d, b) {
|
|
3273
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
3274
|
-
|
|
3275
|
-
} || function(
|
|
3276
|
-
for (var p in
|
|
3277
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3278
|
-
|
|
3144
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
3145
|
+
d.__proto__ = b;
|
|
3146
|
+
} || function(d, b) {
|
|
3147
|
+
for (var p in b)
|
|
3148
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
3149
|
+
d[p] = b[p];
|
|
3279
3150
|
};
|
|
3280
3151
|
return extendStatics(d, b);
|
|
3281
3152
|
};
|
|
@@ -3311,8 +3182,8 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
3311
3182
|
var arrRemove_1 = require_arrRemove();
|
|
3312
3183
|
var errorContext_1 = require_errorContext();
|
|
3313
3184
|
var Subject = function(_super) {
|
|
3314
|
-
__extends(
|
|
3315
|
-
function
|
|
3185
|
+
__extends(Subject, _super);
|
|
3186
|
+
function Subject() {
|
|
3316
3187
|
var _this = _super.call(this) || this;
|
|
3317
3188
|
_this.closed = false;
|
|
3318
3189
|
_this.currentObservers = null;
|
|
@@ -3322,17 +3193,17 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
3322
3193
|
_this.thrownError = null;
|
|
3323
3194
|
return _this;
|
|
3324
3195
|
}
|
|
3325
|
-
|
|
3196
|
+
Subject.prototype.lift = function(operator) {
|
|
3326
3197
|
var subject = new AnonymousSubject(this, this);
|
|
3327
3198
|
subject.operator = operator;
|
|
3328
3199
|
return subject;
|
|
3329
3200
|
};
|
|
3330
|
-
|
|
3201
|
+
Subject.prototype._throwIfClosed = function() {
|
|
3331
3202
|
if (this.closed) {
|
|
3332
3203
|
throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError;
|
|
3333
3204
|
}
|
|
3334
3205
|
};
|
|
3335
|
-
|
|
3206
|
+
Subject.prototype.next = function(value) {
|
|
3336
3207
|
var _this = this;
|
|
3337
3208
|
errorContext_1.errorContext(function() {
|
|
3338
3209
|
var e_1, _a;
|
|
@@ -3360,7 +3231,7 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
3360
3231
|
}
|
|
3361
3232
|
});
|
|
3362
3233
|
};
|
|
3363
|
-
|
|
3234
|
+
Subject.prototype.error = function(err) {
|
|
3364
3235
|
var _this = this;
|
|
3365
3236
|
errorContext_1.errorContext(function() {
|
|
3366
3237
|
_this._throwIfClosed();
|
|
@@ -3374,7 +3245,7 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
3374
3245
|
}
|
|
3375
3246
|
});
|
|
3376
3247
|
};
|
|
3377
|
-
|
|
3248
|
+
Subject.prototype.complete = function() {
|
|
3378
3249
|
var _this = this;
|
|
3379
3250
|
errorContext_1.errorContext(function() {
|
|
3380
3251
|
_this._throwIfClosed();
|
|
@@ -3387,11 +3258,11 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
3387
3258
|
}
|
|
3388
3259
|
});
|
|
3389
3260
|
};
|
|
3390
|
-
|
|
3261
|
+
Subject.prototype.unsubscribe = function() {
|
|
3391
3262
|
this.isStopped = this.closed = true;
|
|
3392
3263
|
this.observers = this.currentObservers = null;
|
|
3393
3264
|
};
|
|
3394
|
-
Object.defineProperty(
|
|
3265
|
+
Object.defineProperty(Subject.prototype, "observed", {
|
|
3395
3266
|
get: function() {
|
|
3396
3267
|
var _a;
|
|
3397
3268
|
return ((_a = this.observers) === null || _a === undefined ? undefined : _a.length) > 0;
|
|
@@ -3399,18 +3270,18 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
3399
3270
|
enumerable: false,
|
|
3400
3271
|
configurable: true
|
|
3401
3272
|
});
|
|
3402
|
-
|
|
3273
|
+
Subject.prototype._trySubscribe = function(subscriber) {
|
|
3403
3274
|
this._throwIfClosed();
|
|
3404
3275
|
return _super.prototype._trySubscribe.call(this, subscriber);
|
|
3405
3276
|
};
|
|
3406
|
-
|
|
3277
|
+
Subject.prototype._subscribe = function(subscriber) {
|
|
3407
3278
|
this._throwIfClosed();
|
|
3408
3279
|
this._checkFinalizedStatuses(subscriber);
|
|
3409
3280
|
return this._innerSubscribe(subscriber);
|
|
3410
3281
|
};
|
|
3411
|
-
|
|
3282
|
+
Subject.prototype._innerSubscribe = function(subscriber) {
|
|
3412
3283
|
var _this = this;
|
|
3413
|
-
var _a = this,
|
|
3284
|
+
var _a = this, { hasError, isStopped, observers } = _a;
|
|
3414
3285
|
if (hasError || isStopped) {
|
|
3415
3286
|
return Subscription_1.EMPTY_SUBSCRIPTION;
|
|
3416
3287
|
}
|
|
@@ -3421,50 +3292,50 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
3421
3292
|
arrRemove_1.arrRemove(observers, subscriber);
|
|
3422
3293
|
});
|
|
3423
3294
|
};
|
|
3424
|
-
|
|
3425
|
-
var _a = this,
|
|
3295
|
+
Subject.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
3296
|
+
var _a = this, { hasError, thrownError, isStopped } = _a;
|
|
3426
3297
|
if (hasError) {
|
|
3427
3298
|
subscriber.error(thrownError);
|
|
3428
3299
|
} else if (isStopped) {
|
|
3429
3300
|
subscriber.complete();
|
|
3430
3301
|
}
|
|
3431
3302
|
};
|
|
3432
|
-
|
|
3303
|
+
Subject.prototype.asObservable = function() {
|
|
3433
3304
|
var observable = new Observable_1.Observable;
|
|
3434
3305
|
observable.source = this;
|
|
3435
3306
|
return observable;
|
|
3436
3307
|
};
|
|
3437
|
-
|
|
3308
|
+
Subject.create = function(destination, source) {
|
|
3438
3309
|
return new AnonymousSubject(destination, source);
|
|
3439
3310
|
};
|
|
3440
|
-
return
|
|
3311
|
+
return Subject;
|
|
3441
3312
|
}(Observable_1.Observable);
|
|
3442
3313
|
exports.Subject = Subject;
|
|
3443
3314
|
var AnonymousSubject = function(_super) {
|
|
3444
|
-
__extends(
|
|
3445
|
-
function
|
|
3315
|
+
__extends(AnonymousSubject, _super);
|
|
3316
|
+
function AnonymousSubject(destination, source) {
|
|
3446
3317
|
var _this = _super.call(this) || this;
|
|
3447
3318
|
_this.destination = destination;
|
|
3448
3319
|
_this.source = source;
|
|
3449
3320
|
return _this;
|
|
3450
3321
|
}
|
|
3451
|
-
|
|
3322
|
+
AnonymousSubject.prototype.next = function(value) {
|
|
3452
3323
|
var _a, _b;
|
|
3453
3324
|
(_b = (_a = this.destination) === null || _a === undefined ? undefined : _a.next) === null || _b === undefined || _b.call(_a, value);
|
|
3454
3325
|
};
|
|
3455
|
-
|
|
3326
|
+
AnonymousSubject.prototype.error = function(err) {
|
|
3456
3327
|
var _a, _b;
|
|
3457
3328
|
(_b = (_a = this.destination) === null || _a === undefined ? undefined : _a.error) === null || _b === undefined || _b.call(_a, err);
|
|
3458
3329
|
};
|
|
3459
|
-
|
|
3330
|
+
AnonymousSubject.prototype.complete = function() {
|
|
3460
3331
|
var _a, _b;
|
|
3461
3332
|
(_b = (_a = this.destination) === null || _a === undefined ? undefined : _a.complete) === null || _b === undefined || _b.call(_a);
|
|
3462
3333
|
};
|
|
3463
|
-
|
|
3334
|
+
AnonymousSubject.prototype._subscribe = function(subscriber) {
|
|
3464
3335
|
var _a, _b;
|
|
3465
3336
|
return (_b = (_a = this.source) === null || _a === undefined ? undefined : _a.subscribe(subscriber)) !== null && _b !== undefined ? _b : Subscription_1.EMPTY_SUBSCRIPTION;
|
|
3466
3337
|
};
|
|
3467
|
-
return
|
|
3338
|
+
return AnonymousSubject;
|
|
3468
3339
|
}(Subject);
|
|
3469
3340
|
exports.AnonymousSubject = AnonymousSubject;
|
|
3470
3341
|
});
|
|
@@ -3473,12 +3344,12 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
3473
3344
|
var require_BehaviorSubject = __commonJS(function(exports) {
|
|
3474
3345
|
var __extends = exports && exports.__extends || function() {
|
|
3475
3346
|
var extendStatics = function(d, b) {
|
|
3476
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
3477
|
-
|
|
3478
|
-
} || function(
|
|
3479
|
-
for (var p in
|
|
3480
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3481
|
-
|
|
3347
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
3348
|
+
d.__proto__ = b;
|
|
3349
|
+
} || function(d, b) {
|
|
3350
|
+
for (var p in b)
|
|
3351
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
3352
|
+
d[p] = b[p];
|
|
3482
3353
|
};
|
|
3483
3354
|
return extendStatics(d, b);
|
|
3484
3355
|
};
|
|
@@ -3496,36 +3367,36 @@ var require_BehaviorSubject = __commonJS(function(exports) {
|
|
|
3496
3367
|
exports.BehaviorSubject = undefined;
|
|
3497
3368
|
var Subject_1 = require_Subject();
|
|
3498
3369
|
var BehaviorSubject = function(_super) {
|
|
3499
|
-
__extends(
|
|
3500
|
-
function
|
|
3370
|
+
__extends(BehaviorSubject, _super);
|
|
3371
|
+
function BehaviorSubject(_value) {
|
|
3501
3372
|
var _this = _super.call(this) || this;
|
|
3502
3373
|
_this._value = _value;
|
|
3503
3374
|
return _this;
|
|
3504
3375
|
}
|
|
3505
|
-
Object.defineProperty(
|
|
3376
|
+
Object.defineProperty(BehaviorSubject.prototype, "value", {
|
|
3506
3377
|
get: function() {
|
|
3507
3378
|
return this.getValue();
|
|
3508
3379
|
},
|
|
3509
3380
|
enumerable: false,
|
|
3510
3381
|
configurable: true
|
|
3511
3382
|
});
|
|
3512
|
-
|
|
3383
|
+
BehaviorSubject.prototype._subscribe = function(subscriber) {
|
|
3513
3384
|
var subscription = _super.prototype._subscribe.call(this, subscriber);
|
|
3514
3385
|
!subscription.closed && subscriber.next(this._value);
|
|
3515
3386
|
return subscription;
|
|
3516
3387
|
};
|
|
3517
|
-
|
|
3518
|
-
var _a = this,
|
|
3388
|
+
BehaviorSubject.prototype.getValue = function() {
|
|
3389
|
+
var _a = this, { hasError, thrownError, _value } = _a;
|
|
3519
3390
|
if (hasError) {
|
|
3520
3391
|
throw thrownError;
|
|
3521
3392
|
}
|
|
3522
3393
|
this._throwIfClosed();
|
|
3523
3394
|
return _value;
|
|
3524
3395
|
};
|
|
3525
|
-
|
|
3396
|
+
BehaviorSubject.prototype.next = function(value) {
|
|
3526
3397
|
_super.prototype.next.call(this, this._value = value);
|
|
3527
3398
|
};
|
|
3528
|
-
return
|
|
3399
|
+
return BehaviorSubject;
|
|
3529
3400
|
}(Subject_1.Subject);
|
|
3530
3401
|
exports.BehaviorSubject = BehaviorSubject;
|
|
3531
3402
|
});
|
|
@@ -3546,12 +3417,12 @@ var require_dateTimestampProvider = __commonJS(function(exports) {
|
|
|
3546
3417
|
var require_ReplaySubject = __commonJS(function(exports) {
|
|
3547
3418
|
var __extends = exports && exports.__extends || function() {
|
|
3548
3419
|
var extendStatics = function(d, b) {
|
|
3549
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
3550
|
-
|
|
3551
|
-
} || function(
|
|
3552
|
-
for (var p in
|
|
3553
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3554
|
-
|
|
3420
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
3421
|
+
d.__proto__ = b;
|
|
3422
|
+
} || function(d, b) {
|
|
3423
|
+
for (var p in b)
|
|
3424
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
3425
|
+
d[p] = b[p];
|
|
3555
3426
|
};
|
|
3556
3427
|
return extendStatics(d, b);
|
|
3557
3428
|
};
|
|
@@ -3570,8 +3441,8 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
3570
3441
|
var Subject_1 = require_Subject();
|
|
3571
3442
|
var dateTimestampProvider_1 = require_dateTimestampProvider();
|
|
3572
3443
|
var ReplaySubject = function(_super) {
|
|
3573
|
-
__extends(
|
|
3574
|
-
function
|
|
3444
|
+
__extends(ReplaySubject, _super);
|
|
3445
|
+
function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) {
|
|
3575
3446
|
if (_bufferSize === undefined) {
|
|
3576
3447
|
_bufferSize = Infinity;
|
|
3577
3448
|
}
|
|
@@ -3592,8 +3463,8 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
3592
3463
|
_this._windowTime = Math.max(1, _windowTime);
|
|
3593
3464
|
return _this;
|
|
3594
3465
|
}
|
|
3595
|
-
|
|
3596
|
-
var _a = this,
|
|
3466
|
+
ReplaySubject.prototype.next = function(value) {
|
|
3467
|
+
var _a = this, { isStopped, _buffer, _infiniteTimeWindow, _timestampProvider, _windowTime } = _a;
|
|
3597
3468
|
if (!isStopped) {
|
|
3598
3469
|
_buffer.push(value);
|
|
3599
3470
|
!_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
|
|
@@ -3601,11 +3472,11 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
3601
3472
|
this._trimBuffer();
|
|
3602
3473
|
_super.prototype.next.call(this, value);
|
|
3603
3474
|
};
|
|
3604
|
-
|
|
3475
|
+
ReplaySubject.prototype._subscribe = function(subscriber) {
|
|
3605
3476
|
this._throwIfClosed();
|
|
3606
3477
|
this._trimBuffer();
|
|
3607
3478
|
var subscription = this._innerSubscribe(subscriber);
|
|
3608
|
-
var _a = this,
|
|
3479
|
+
var _a = this, { _infiniteTimeWindow, _buffer } = _a;
|
|
3609
3480
|
var copy = _buffer.slice();
|
|
3610
3481
|
for (var i = 0;i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {
|
|
3611
3482
|
subscriber.next(copy[i]);
|
|
@@ -3613,8 +3484,8 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
3613
3484
|
this._checkFinalizedStatuses(subscriber);
|
|
3614
3485
|
return subscription;
|
|
3615
3486
|
};
|
|
3616
|
-
|
|
3617
|
-
var _a = this,
|
|
3487
|
+
ReplaySubject.prototype._trimBuffer = function() {
|
|
3488
|
+
var _a = this, { _bufferSize, _timestampProvider, _buffer, _infiniteTimeWindow } = _a;
|
|
3618
3489
|
var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
|
|
3619
3490
|
_bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
|
|
3620
3491
|
if (!_infiniteTimeWindow) {
|
|
@@ -3626,7 +3497,7 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
3626
3497
|
last && _buffer.splice(0, last + 1);
|
|
3627
3498
|
}
|
|
3628
3499
|
};
|
|
3629
|
-
return
|
|
3500
|
+
return ReplaySubject;
|
|
3630
3501
|
}(Subject_1.Subject);
|
|
3631
3502
|
exports.ReplaySubject = ReplaySubject;
|
|
3632
3503
|
});
|
|
@@ -3635,12 +3506,12 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
3635
3506
|
var require_AsyncSubject = __commonJS(function(exports) {
|
|
3636
3507
|
var __extends = exports && exports.__extends || function() {
|
|
3637
3508
|
var extendStatics = function(d, b) {
|
|
3638
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
3639
|
-
|
|
3640
|
-
} || function(
|
|
3641
|
-
for (var p in
|
|
3642
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3643
|
-
|
|
3509
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
3510
|
+
d.__proto__ = b;
|
|
3511
|
+
} || function(d, b) {
|
|
3512
|
+
for (var p in b)
|
|
3513
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
3514
|
+
d[p] = b[p];
|
|
3644
3515
|
};
|
|
3645
3516
|
return extendStatics(d, b);
|
|
3646
3517
|
};
|
|
@@ -3658,16 +3529,16 @@ var require_AsyncSubject = __commonJS(function(exports) {
|
|
|
3658
3529
|
exports.AsyncSubject = undefined;
|
|
3659
3530
|
var Subject_1 = require_Subject();
|
|
3660
3531
|
var AsyncSubject = function(_super) {
|
|
3661
|
-
__extends(
|
|
3662
|
-
function
|
|
3532
|
+
__extends(AsyncSubject, _super);
|
|
3533
|
+
function AsyncSubject() {
|
|
3663
3534
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
3664
3535
|
_this._value = null;
|
|
3665
3536
|
_this._hasValue = false;
|
|
3666
3537
|
_this._isComplete = false;
|
|
3667
3538
|
return _this;
|
|
3668
3539
|
}
|
|
3669
|
-
|
|
3670
|
-
var _a = this,
|
|
3540
|
+
AsyncSubject.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
3541
|
+
var _a = this, { hasError, _hasValue, _value, thrownError, isStopped, _isComplete } = _a;
|
|
3671
3542
|
if (hasError) {
|
|
3672
3543
|
subscriber.error(thrownError);
|
|
3673
3544
|
} else if (isStopped || _isComplete) {
|
|
@@ -3675,21 +3546,21 @@ var require_AsyncSubject = __commonJS(function(exports) {
|
|
|
3675
3546
|
subscriber.complete();
|
|
3676
3547
|
}
|
|
3677
3548
|
};
|
|
3678
|
-
|
|
3549
|
+
AsyncSubject.prototype.next = function(value) {
|
|
3679
3550
|
if (!this.isStopped) {
|
|
3680
3551
|
this._value = value;
|
|
3681
3552
|
this._hasValue = true;
|
|
3682
3553
|
}
|
|
3683
3554
|
};
|
|
3684
|
-
|
|
3685
|
-
var _a = this,
|
|
3555
|
+
AsyncSubject.prototype.complete = function() {
|
|
3556
|
+
var _a = this, { _hasValue, _value, _isComplete } = _a;
|
|
3686
3557
|
if (!_isComplete) {
|
|
3687
3558
|
this._isComplete = true;
|
|
3688
3559
|
_hasValue && _super.prototype.next.call(this, _value);
|
|
3689
3560
|
_super.prototype.complete.call(this);
|
|
3690
3561
|
}
|
|
3691
3562
|
};
|
|
3692
|
-
return
|
|
3563
|
+
return AsyncSubject;
|
|
3693
3564
|
}(Subject_1.Subject);
|
|
3694
3565
|
exports.AsyncSubject = AsyncSubject;
|
|
3695
3566
|
});
|
|
@@ -3698,12 +3569,12 @@ var require_AsyncSubject = __commonJS(function(exports) {
|
|
|
3698
3569
|
var require_Action = __commonJS(function(exports) {
|
|
3699
3570
|
var __extends = exports && exports.__extends || function() {
|
|
3700
3571
|
var extendStatics = function(d, b) {
|
|
3701
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
3702
|
-
|
|
3703
|
-
} || function(
|
|
3704
|
-
for (var p in
|
|
3705
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3706
|
-
|
|
3572
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
3573
|
+
d.__proto__ = b;
|
|
3574
|
+
} || function(d, b) {
|
|
3575
|
+
for (var p in b)
|
|
3576
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
3577
|
+
d[p] = b[p];
|
|
3707
3578
|
};
|
|
3708
3579
|
return extendStatics(d, b);
|
|
3709
3580
|
};
|
|
@@ -3721,17 +3592,17 @@ var require_Action = __commonJS(function(exports) {
|
|
|
3721
3592
|
exports.Action = undefined;
|
|
3722
3593
|
var Subscription_1 = require_Subscription();
|
|
3723
3594
|
var Action = function(_super) {
|
|
3724
|
-
__extends(
|
|
3725
|
-
function
|
|
3595
|
+
__extends(Action, _super);
|
|
3596
|
+
function Action(scheduler, work) {
|
|
3726
3597
|
return _super.call(this) || this;
|
|
3727
3598
|
}
|
|
3728
|
-
|
|
3599
|
+
Action.prototype.schedule = function(state, delay) {
|
|
3729
3600
|
if (delay === undefined) {
|
|
3730
3601
|
delay = 0;
|
|
3731
3602
|
}
|
|
3732
3603
|
return this;
|
|
3733
3604
|
};
|
|
3734
|
-
return
|
|
3605
|
+
return Action;
|
|
3735
3606
|
}(Subscription_1.Subscription);
|
|
3736
3607
|
exports.Action = Action;
|
|
3737
3608
|
});
|
|
@@ -3790,12 +3661,12 @@ var require_intervalProvider = __commonJS(function(exports) {
|
|
|
3790
3661
|
var require_AsyncAction = __commonJS(function(exports) {
|
|
3791
3662
|
var __extends = exports && exports.__extends || function() {
|
|
3792
3663
|
var extendStatics = function(d, b) {
|
|
3793
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
3794
|
-
|
|
3795
|
-
} || function(
|
|
3796
|
-
for (var p in
|
|
3797
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3798
|
-
|
|
3664
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
3665
|
+
d.__proto__ = b;
|
|
3666
|
+
} || function(d, b) {
|
|
3667
|
+
for (var p in b)
|
|
3668
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
3669
|
+
d[p] = b[p];
|
|
3799
3670
|
};
|
|
3800
3671
|
return extendStatics(d, b);
|
|
3801
3672
|
};
|
|
@@ -3815,15 +3686,15 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
3815
3686
|
var intervalProvider_1 = require_intervalProvider();
|
|
3816
3687
|
var arrRemove_1 = require_arrRemove();
|
|
3817
3688
|
var AsyncAction = function(_super) {
|
|
3818
|
-
__extends(
|
|
3819
|
-
function
|
|
3689
|
+
__extends(AsyncAction, _super);
|
|
3690
|
+
function AsyncAction(scheduler, work) {
|
|
3820
3691
|
var _this = _super.call(this, scheduler, work) || this;
|
|
3821
3692
|
_this.scheduler = scheduler;
|
|
3822
3693
|
_this.work = work;
|
|
3823
3694
|
_this.pending = false;
|
|
3824
3695
|
return _this;
|
|
3825
3696
|
}
|
|
3826
|
-
|
|
3697
|
+
AsyncAction.prototype.schedule = function(state, delay) {
|
|
3827
3698
|
var _a;
|
|
3828
3699
|
if (delay === undefined) {
|
|
3829
3700
|
delay = 0;
|
|
@@ -3842,13 +3713,13 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
3842
3713
|
this.id = (_a = this.id) !== null && _a !== undefined ? _a : this.requestAsyncId(scheduler, this.id, delay);
|
|
3843
3714
|
return this;
|
|
3844
3715
|
};
|
|
3845
|
-
|
|
3716
|
+
AsyncAction.prototype.requestAsyncId = function(scheduler, _id, delay) {
|
|
3846
3717
|
if (delay === undefined) {
|
|
3847
3718
|
delay = 0;
|
|
3848
3719
|
}
|
|
3849
3720
|
return intervalProvider_1.intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
|
|
3850
3721
|
};
|
|
3851
|
-
|
|
3722
|
+
AsyncAction.prototype.recycleAsyncId = function(_scheduler, id, delay) {
|
|
3852
3723
|
if (delay === undefined) {
|
|
3853
3724
|
delay = 0;
|
|
3854
3725
|
}
|
|
@@ -3860,7 +3731,7 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
3860
3731
|
}
|
|
3861
3732
|
return;
|
|
3862
3733
|
};
|
|
3863
|
-
|
|
3734
|
+
AsyncAction.prototype.execute = function(state, delay) {
|
|
3864
3735
|
if (this.closed) {
|
|
3865
3736
|
return new Error("executing a cancelled action");
|
|
3866
3737
|
}
|
|
@@ -3872,7 +3743,7 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
3872
3743
|
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
|
|
3873
3744
|
}
|
|
3874
3745
|
};
|
|
3875
|
-
|
|
3746
|
+
AsyncAction.prototype._execute = function(state, _delay) {
|
|
3876
3747
|
var errored = false;
|
|
3877
3748
|
var errorValue;
|
|
3878
3749
|
try {
|
|
@@ -3886,9 +3757,9 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
3886
3757
|
return errorValue;
|
|
3887
3758
|
}
|
|
3888
3759
|
};
|
|
3889
|
-
|
|
3760
|
+
AsyncAction.prototype.unsubscribe = function() {
|
|
3890
3761
|
if (!this.closed) {
|
|
3891
|
-
var _a = this,
|
|
3762
|
+
var _a = this, { id, scheduler } = _a;
|
|
3892
3763
|
var actions = scheduler.actions;
|
|
3893
3764
|
this.work = this.state = this.scheduler = null;
|
|
3894
3765
|
this.pending = false;
|
|
@@ -3900,7 +3771,7 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
3900
3771
|
_super.prototype.unsubscribe.call(this);
|
|
3901
3772
|
}
|
|
3902
3773
|
};
|
|
3903
|
-
return
|
|
3774
|
+
return AsyncAction;
|
|
3904
3775
|
}(Action_1.Action);
|
|
3905
3776
|
exports.AsyncAction = AsyncAction;
|
|
3906
3777
|
});
|
|
@@ -3996,12 +3867,12 @@ var require_immediateProvider = __commonJS(function(exports) {
|
|
|
3996
3867
|
var require_AsapAction = __commonJS(function(exports) {
|
|
3997
3868
|
var __extends = exports && exports.__extends || function() {
|
|
3998
3869
|
var extendStatics = function(d, b) {
|
|
3999
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
4000
|
-
|
|
4001
|
-
} || function(
|
|
4002
|
-
for (var p in
|
|
4003
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4004
|
-
|
|
3870
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
3871
|
+
d.__proto__ = b;
|
|
3872
|
+
} || function(d, b) {
|
|
3873
|
+
for (var p in b)
|
|
3874
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
3875
|
+
d[p] = b[p];
|
|
4005
3876
|
};
|
|
4006
3877
|
return extendStatics(d, b);
|
|
4007
3878
|
};
|
|
@@ -4020,14 +3891,14 @@ var require_AsapAction = __commonJS(function(exports) {
|
|
|
4020
3891
|
var AsyncAction_1 = require_AsyncAction();
|
|
4021
3892
|
var immediateProvider_1 = require_immediateProvider();
|
|
4022
3893
|
var AsapAction = function(_super) {
|
|
4023
|
-
__extends(
|
|
4024
|
-
function
|
|
3894
|
+
__extends(AsapAction, _super);
|
|
3895
|
+
function AsapAction(scheduler, work) {
|
|
4025
3896
|
var _this = _super.call(this, scheduler, work) || this;
|
|
4026
3897
|
_this.scheduler = scheduler;
|
|
4027
3898
|
_this.work = work;
|
|
4028
3899
|
return _this;
|
|
4029
3900
|
}
|
|
4030
|
-
|
|
3901
|
+
AsapAction.prototype.requestAsyncId = function(scheduler, id, delay) {
|
|
4031
3902
|
if (delay === undefined) {
|
|
4032
3903
|
delay = 0;
|
|
4033
3904
|
}
|
|
@@ -4037,7 +3908,7 @@ var require_AsapAction = __commonJS(function(exports) {
|
|
|
4037
3908
|
scheduler.actions.push(this);
|
|
4038
3909
|
return scheduler._scheduled || (scheduler._scheduled = immediateProvider_1.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined)));
|
|
4039
3910
|
};
|
|
4040
|
-
|
|
3911
|
+
AsapAction.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
4041
3912
|
var _a;
|
|
4042
3913
|
if (delay === undefined) {
|
|
4043
3914
|
delay = 0;
|
|
@@ -4054,7 +3925,7 @@ var require_AsapAction = __commonJS(function(exports) {
|
|
|
4054
3925
|
}
|
|
4055
3926
|
return;
|
|
4056
3927
|
};
|
|
4057
|
-
return
|
|
3928
|
+
return AsapAction;
|
|
4058
3929
|
}(AsyncAction_1.AsyncAction);
|
|
4059
3930
|
exports.AsapAction = AsapAction;
|
|
4060
3931
|
});
|
|
@@ -4065,21 +3936,21 @@ var require_Scheduler = __commonJS(function(exports) {
|
|
|
4065
3936
|
exports.Scheduler = undefined;
|
|
4066
3937
|
var dateTimestampProvider_1 = require_dateTimestampProvider();
|
|
4067
3938
|
var Scheduler = function() {
|
|
4068
|
-
function
|
|
3939
|
+
function Scheduler(schedulerActionCtor, now) {
|
|
4069
3940
|
if (now === undefined) {
|
|
4070
|
-
now =
|
|
3941
|
+
now = Scheduler.now;
|
|
4071
3942
|
}
|
|
4072
3943
|
this.schedulerActionCtor = schedulerActionCtor;
|
|
4073
3944
|
this.now = now;
|
|
4074
3945
|
}
|
|
4075
|
-
|
|
3946
|
+
Scheduler.prototype.schedule = function(work, delay, state) {
|
|
4076
3947
|
if (delay === undefined) {
|
|
4077
3948
|
delay = 0;
|
|
4078
3949
|
}
|
|
4079
3950
|
return new this.schedulerActionCtor(this, work).schedule(state, delay);
|
|
4080
3951
|
};
|
|
4081
|
-
|
|
4082
|
-
return
|
|
3952
|
+
Scheduler.now = dateTimestampProvider_1.dateTimestampProvider.now;
|
|
3953
|
+
return Scheduler;
|
|
4083
3954
|
}();
|
|
4084
3955
|
exports.Scheduler = Scheduler;
|
|
4085
3956
|
});
|
|
@@ -4088,12 +3959,12 @@ var require_Scheduler = __commonJS(function(exports) {
|
|
|
4088
3959
|
var require_AsyncScheduler = __commonJS(function(exports) {
|
|
4089
3960
|
var __extends = exports && exports.__extends || function() {
|
|
4090
3961
|
var extendStatics = function(d, b) {
|
|
4091
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
4092
|
-
|
|
4093
|
-
} || function(
|
|
4094
|
-
for (var p in
|
|
4095
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4096
|
-
|
|
3962
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
3963
|
+
d.__proto__ = b;
|
|
3964
|
+
} || function(d, b) {
|
|
3965
|
+
for (var p in b)
|
|
3966
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
3967
|
+
d[p] = b[p];
|
|
4097
3968
|
};
|
|
4098
3969
|
return extendStatics(d, b);
|
|
4099
3970
|
};
|
|
@@ -4111,8 +3982,8 @@ var require_AsyncScheduler = __commonJS(function(exports) {
|
|
|
4111
3982
|
exports.AsyncScheduler = undefined;
|
|
4112
3983
|
var Scheduler_1 = require_Scheduler();
|
|
4113
3984
|
var AsyncScheduler = function(_super) {
|
|
4114
|
-
__extends(
|
|
4115
|
-
function
|
|
3985
|
+
__extends(AsyncScheduler, _super);
|
|
3986
|
+
function AsyncScheduler(SchedulerAction, now) {
|
|
4116
3987
|
if (now === undefined) {
|
|
4117
3988
|
now = Scheduler_1.Scheduler.now;
|
|
4118
3989
|
}
|
|
@@ -4121,7 +3992,7 @@ var require_AsyncScheduler = __commonJS(function(exports) {
|
|
|
4121
3992
|
_this._active = false;
|
|
4122
3993
|
return _this;
|
|
4123
3994
|
}
|
|
4124
|
-
|
|
3995
|
+
AsyncScheduler.prototype.flush = function(action) {
|
|
4125
3996
|
var actions = this.actions;
|
|
4126
3997
|
if (this._active) {
|
|
4127
3998
|
actions.push(action);
|
|
@@ -4142,7 +4013,7 @@ var require_AsyncScheduler = __commonJS(function(exports) {
|
|
|
4142
4013
|
throw error;
|
|
4143
4014
|
}
|
|
4144
4015
|
};
|
|
4145
|
-
return
|
|
4016
|
+
return AsyncScheduler;
|
|
4146
4017
|
}(Scheduler_1.Scheduler);
|
|
4147
4018
|
exports.AsyncScheduler = AsyncScheduler;
|
|
4148
4019
|
});
|
|
@@ -4151,12 +4022,12 @@ var require_AsyncScheduler = __commonJS(function(exports) {
|
|
|
4151
4022
|
var require_AsapScheduler = __commonJS(function(exports) {
|
|
4152
4023
|
var __extends = exports && exports.__extends || function() {
|
|
4153
4024
|
var extendStatics = function(d, b) {
|
|
4154
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
4155
|
-
|
|
4156
|
-
} || function(
|
|
4157
|
-
for (var p in
|
|
4158
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4159
|
-
|
|
4025
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
4026
|
+
d.__proto__ = b;
|
|
4027
|
+
} || function(d, b) {
|
|
4028
|
+
for (var p in b)
|
|
4029
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
4030
|
+
d[p] = b[p];
|
|
4160
4031
|
};
|
|
4161
4032
|
return extendStatics(d, b);
|
|
4162
4033
|
};
|
|
@@ -4174,11 +4045,11 @@ var require_AsapScheduler = __commonJS(function(exports) {
|
|
|
4174
4045
|
exports.AsapScheduler = undefined;
|
|
4175
4046
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
|
4176
4047
|
var AsapScheduler = function(_super) {
|
|
4177
|
-
__extends(
|
|
4178
|
-
function
|
|
4048
|
+
__extends(AsapScheduler, _super);
|
|
4049
|
+
function AsapScheduler() {
|
|
4179
4050
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
4180
4051
|
}
|
|
4181
|
-
|
|
4052
|
+
AsapScheduler.prototype.flush = function(action) {
|
|
4182
4053
|
this._active = true;
|
|
4183
4054
|
var flushId = this._scheduled;
|
|
4184
4055
|
this._scheduled = undefined;
|
|
@@ -4198,7 +4069,7 @@ var require_AsapScheduler = __commonJS(function(exports) {
|
|
|
4198
4069
|
throw error;
|
|
4199
4070
|
}
|
|
4200
4071
|
};
|
|
4201
|
-
return
|
|
4072
|
+
return AsapScheduler;
|
|
4202
4073
|
}(AsyncScheduler_1.AsyncScheduler);
|
|
4203
4074
|
exports.AsapScheduler = AsapScheduler;
|
|
4204
4075
|
});
|
|
@@ -4227,12 +4098,12 @@ var require_async = __commonJS(function(exports) {
|
|
|
4227
4098
|
var require_QueueAction = __commonJS(function(exports) {
|
|
4228
4099
|
var __extends = exports && exports.__extends || function() {
|
|
4229
4100
|
var extendStatics = function(d, b) {
|
|
4230
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
4231
|
-
|
|
4232
|
-
} || function(
|
|
4233
|
-
for (var p in
|
|
4234
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4235
|
-
|
|
4101
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
4102
|
+
d.__proto__ = b;
|
|
4103
|
+
} || function(d, b) {
|
|
4104
|
+
for (var p in b)
|
|
4105
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
4106
|
+
d[p] = b[p];
|
|
4236
4107
|
};
|
|
4237
4108
|
return extendStatics(d, b);
|
|
4238
4109
|
};
|
|
@@ -4250,14 +4121,14 @@ var require_QueueAction = __commonJS(function(exports) {
|
|
|
4250
4121
|
exports.QueueAction = undefined;
|
|
4251
4122
|
var AsyncAction_1 = require_AsyncAction();
|
|
4252
4123
|
var QueueAction = function(_super) {
|
|
4253
|
-
__extends(
|
|
4254
|
-
function
|
|
4124
|
+
__extends(QueueAction, _super);
|
|
4125
|
+
function QueueAction(scheduler, work) {
|
|
4255
4126
|
var _this = _super.call(this, scheduler, work) || this;
|
|
4256
4127
|
_this.scheduler = scheduler;
|
|
4257
4128
|
_this.work = work;
|
|
4258
4129
|
return _this;
|
|
4259
4130
|
}
|
|
4260
|
-
|
|
4131
|
+
QueueAction.prototype.schedule = function(state, delay) {
|
|
4261
4132
|
if (delay === undefined) {
|
|
4262
4133
|
delay = 0;
|
|
4263
4134
|
}
|
|
@@ -4269,10 +4140,10 @@ var require_QueueAction = __commonJS(function(exports) {
|
|
|
4269
4140
|
this.scheduler.flush(this);
|
|
4270
4141
|
return this;
|
|
4271
4142
|
};
|
|
4272
|
-
|
|
4143
|
+
QueueAction.prototype.execute = function(state, delay) {
|
|
4273
4144
|
return delay > 0 || this.closed ? _super.prototype.execute.call(this, state, delay) : this._execute(state, delay);
|
|
4274
4145
|
};
|
|
4275
|
-
|
|
4146
|
+
QueueAction.prototype.requestAsyncId = function(scheduler, id, delay) {
|
|
4276
4147
|
if (delay === undefined) {
|
|
4277
4148
|
delay = 0;
|
|
4278
4149
|
}
|
|
@@ -4282,7 +4153,7 @@ var require_QueueAction = __commonJS(function(exports) {
|
|
|
4282
4153
|
scheduler.flush(this);
|
|
4283
4154
|
return 0;
|
|
4284
4155
|
};
|
|
4285
|
-
return
|
|
4156
|
+
return QueueAction;
|
|
4286
4157
|
}(AsyncAction_1.AsyncAction);
|
|
4287
4158
|
exports.QueueAction = QueueAction;
|
|
4288
4159
|
});
|
|
@@ -4291,12 +4162,12 @@ var require_QueueAction = __commonJS(function(exports) {
|
|
|
4291
4162
|
var require_QueueScheduler = __commonJS(function(exports) {
|
|
4292
4163
|
var __extends = exports && exports.__extends || function() {
|
|
4293
4164
|
var extendStatics = function(d, b) {
|
|
4294
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
4295
|
-
|
|
4296
|
-
} || function(
|
|
4297
|
-
for (var p in
|
|
4298
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4299
|
-
|
|
4165
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
4166
|
+
d.__proto__ = b;
|
|
4167
|
+
} || function(d, b) {
|
|
4168
|
+
for (var p in b)
|
|
4169
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
4170
|
+
d[p] = b[p];
|
|
4300
4171
|
};
|
|
4301
4172
|
return extendStatics(d, b);
|
|
4302
4173
|
};
|
|
@@ -4314,11 +4185,11 @@ var require_QueueScheduler = __commonJS(function(exports) {
|
|
|
4314
4185
|
exports.QueueScheduler = undefined;
|
|
4315
4186
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
|
4316
4187
|
var QueueScheduler = function(_super) {
|
|
4317
|
-
__extends(
|
|
4318
|
-
function
|
|
4188
|
+
__extends(QueueScheduler, _super);
|
|
4189
|
+
function QueueScheduler() {
|
|
4319
4190
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
4320
4191
|
}
|
|
4321
|
-
return
|
|
4192
|
+
return QueueScheduler;
|
|
4322
4193
|
}(AsyncScheduler_1.AsyncScheduler);
|
|
4323
4194
|
exports.QueueScheduler = QueueScheduler;
|
|
4324
4195
|
});
|
|
@@ -4337,12 +4208,12 @@ var require_queue = __commonJS(function(exports) {
|
|
|
4337
4208
|
var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
4338
4209
|
var __extends = exports && exports.__extends || function() {
|
|
4339
4210
|
var extendStatics = function(d, b) {
|
|
4340
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
4341
|
-
|
|
4342
|
-
} || function(
|
|
4343
|
-
for (var p in
|
|
4344
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4345
|
-
|
|
4211
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
4212
|
+
d.__proto__ = b;
|
|
4213
|
+
} || function(d, b) {
|
|
4214
|
+
for (var p in b)
|
|
4215
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
4216
|
+
d[p] = b[p];
|
|
4346
4217
|
};
|
|
4347
4218
|
return extendStatics(d, b);
|
|
4348
4219
|
};
|
|
@@ -4361,14 +4232,14 @@ var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
|
4361
4232
|
var AsyncAction_1 = require_AsyncAction();
|
|
4362
4233
|
var animationFrameProvider_1 = require_animationFrameProvider();
|
|
4363
4234
|
var AnimationFrameAction = function(_super) {
|
|
4364
|
-
__extends(
|
|
4365
|
-
function
|
|
4235
|
+
__extends(AnimationFrameAction, _super);
|
|
4236
|
+
function AnimationFrameAction(scheduler, work) {
|
|
4366
4237
|
var _this = _super.call(this, scheduler, work) || this;
|
|
4367
4238
|
_this.scheduler = scheduler;
|
|
4368
4239
|
_this.work = work;
|
|
4369
4240
|
return _this;
|
|
4370
4241
|
}
|
|
4371
|
-
|
|
4242
|
+
AnimationFrameAction.prototype.requestAsyncId = function(scheduler, id, delay) {
|
|
4372
4243
|
if (delay === undefined) {
|
|
4373
4244
|
delay = 0;
|
|
4374
4245
|
}
|
|
@@ -4380,7 +4251,7 @@ var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
|
4380
4251
|
return scheduler.flush(undefined);
|
|
4381
4252
|
}));
|
|
4382
4253
|
};
|
|
4383
|
-
|
|
4254
|
+
AnimationFrameAction.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
4384
4255
|
var _a;
|
|
4385
4256
|
if (delay === undefined) {
|
|
4386
4257
|
delay = 0;
|
|
@@ -4395,7 +4266,7 @@ var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
|
4395
4266
|
}
|
|
4396
4267
|
return;
|
|
4397
4268
|
};
|
|
4398
|
-
return
|
|
4269
|
+
return AnimationFrameAction;
|
|
4399
4270
|
}(AsyncAction_1.AsyncAction);
|
|
4400
4271
|
exports.AnimationFrameAction = AnimationFrameAction;
|
|
4401
4272
|
});
|
|
@@ -4404,12 +4275,12 @@ var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
|
4404
4275
|
var require_AnimationFrameScheduler = __commonJS(function(exports) {
|
|
4405
4276
|
var __extends = exports && exports.__extends || function() {
|
|
4406
4277
|
var extendStatics = function(d, b) {
|
|
4407
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
4408
|
-
|
|
4409
|
-
} || function(
|
|
4410
|
-
for (var p in
|
|
4411
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4412
|
-
|
|
4278
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
4279
|
+
d.__proto__ = b;
|
|
4280
|
+
} || function(d, b) {
|
|
4281
|
+
for (var p in b)
|
|
4282
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
4283
|
+
d[p] = b[p];
|
|
4413
4284
|
};
|
|
4414
4285
|
return extendStatics(d, b);
|
|
4415
4286
|
};
|
|
@@ -4427,11 +4298,11 @@ var require_AnimationFrameScheduler = __commonJS(function(exports) {
|
|
|
4427
4298
|
exports.AnimationFrameScheduler = undefined;
|
|
4428
4299
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
|
4429
4300
|
var AnimationFrameScheduler = function(_super) {
|
|
4430
|
-
__extends(
|
|
4431
|
-
function
|
|
4301
|
+
__extends(AnimationFrameScheduler, _super);
|
|
4302
|
+
function AnimationFrameScheduler() {
|
|
4432
4303
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
4433
4304
|
}
|
|
4434
|
-
|
|
4305
|
+
AnimationFrameScheduler.prototype.flush = function(action) {
|
|
4435
4306
|
this._active = true;
|
|
4436
4307
|
var flushId;
|
|
4437
4308
|
if (action) {
|
|
@@ -4456,7 +4327,7 @@ var require_AnimationFrameScheduler = __commonJS(function(exports) {
|
|
|
4456
4327
|
throw error;
|
|
4457
4328
|
}
|
|
4458
4329
|
};
|
|
4459
|
-
return
|
|
4330
|
+
return AnimationFrameScheduler;
|
|
4460
4331
|
}(AsyncScheduler_1.AsyncScheduler);
|
|
4461
4332
|
exports.AnimationFrameScheduler = AnimationFrameScheduler;
|
|
4462
4333
|
});
|
|
@@ -4475,12 +4346,12 @@ var require_animationFrame = __commonJS(function(exports) {
|
|
|
4475
4346
|
var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
4476
4347
|
var __extends = exports && exports.__extends || function() {
|
|
4477
4348
|
var extendStatics = function(d, b) {
|
|
4478
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
4479
|
-
|
|
4480
|
-
} || function(
|
|
4481
|
-
for (var p in
|
|
4482
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4483
|
-
|
|
4349
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
4350
|
+
d.__proto__ = b;
|
|
4351
|
+
} || function(d, b) {
|
|
4352
|
+
for (var p in b)
|
|
4353
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
4354
|
+
d[p] = b[p];
|
|
4484
4355
|
};
|
|
4485
4356
|
return extendStatics(d, b);
|
|
4486
4357
|
};
|
|
@@ -4500,8 +4371,8 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
4500
4371
|
var Subscription_1 = require_Subscription();
|
|
4501
4372
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
|
4502
4373
|
var VirtualTimeScheduler = function(_super) {
|
|
4503
|
-
__extends(
|
|
4504
|
-
function
|
|
4374
|
+
__extends(VirtualTimeScheduler, _super);
|
|
4375
|
+
function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {
|
|
4505
4376
|
if (schedulerActionCtor === undefined) {
|
|
4506
4377
|
schedulerActionCtor = VirtualAction;
|
|
4507
4378
|
}
|
|
@@ -4516,8 +4387,8 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
4516
4387
|
_this.index = -1;
|
|
4517
4388
|
return _this;
|
|
4518
4389
|
}
|
|
4519
|
-
|
|
4520
|
-
var _a = this,
|
|
4390
|
+
VirtualTimeScheduler.prototype.flush = function() {
|
|
4391
|
+
var _a = this, { actions, maxFrames } = _a;
|
|
4521
4392
|
var error;
|
|
4522
4393
|
var action;
|
|
4523
4394
|
while ((action = actions[0]) && action.delay <= maxFrames) {
|
|
@@ -4534,13 +4405,13 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
4534
4405
|
throw error;
|
|
4535
4406
|
}
|
|
4536
4407
|
};
|
|
4537
|
-
|
|
4538
|
-
return
|
|
4408
|
+
VirtualTimeScheduler.frameTimeFactor = 10;
|
|
4409
|
+
return VirtualTimeScheduler;
|
|
4539
4410
|
}(AsyncScheduler_1.AsyncScheduler);
|
|
4540
4411
|
exports.VirtualTimeScheduler = VirtualTimeScheduler;
|
|
4541
4412
|
var VirtualAction = function(_super) {
|
|
4542
|
-
__extends(
|
|
4543
|
-
function
|
|
4413
|
+
__extends(VirtualAction, _super);
|
|
4414
|
+
function VirtualAction(scheduler, work, index) {
|
|
4544
4415
|
if (index === undefined) {
|
|
4545
4416
|
index = scheduler.index += 1;
|
|
4546
4417
|
}
|
|
@@ -4552,7 +4423,7 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
4552
4423
|
_this.index = scheduler.index = index;
|
|
4553
4424
|
return _this;
|
|
4554
4425
|
}
|
|
4555
|
-
|
|
4426
|
+
VirtualAction.prototype.schedule = function(state, delay) {
|
|
4556
4427
|
if (delay === undefined) {
|
|
4557
4428
|
delay = 0;
|
|
4558
4429
|
}
|
|
@@ -4561,35 +4432,35 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
4561
4432
|
return _super.prototype.schedule.call(this, state, delay);
|
|
4562
4433
|
}
|
|
4563
4434
|
this.active = false;
|
|
4564
|
-
var action = new
|
|
4435
|
+
var action = new VirtualAction(this.scheduler, this.work);
|
|
4565
4436
|
this.add(action);
|
|
4566
4437
|
return action.schedule(state, delay);
|
|
4567
4438
|
} else {
|
|
4568
4439
|
return Subscription_1.Subscription.EMPTY;
|
|
4569
4440
|
}
|
|
4570
4441
|
};
|
|
4571
|
-
|
|
4442
|
+
VirtualAction.prototype.requestAsyncId = function(scheduler, id, delay) {
|
|
4572
4443
|
if (delay === undefined) {
|
|
4573
4444
|
delay = 0;
|
|
4574
4445
|
}
|
|
4575
4446
|
this.delay = scheduler.frame + delay;
|
|
4576
4447
|
var actions = scheduler.actions;
|
|
4577
4448
|
actions.push(this);
|
|
4578
|
-
actions.sort(
|
|
4449
|
+
actions.sort(VirtualAction.sortActions);
|
|
4579
4450
|
return 1;
|
|
4580
4451
|
};
|
|
4581
|
-
|
|
4452
|
+
VirtualAction.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
4582
4453
|
if (delay === undefined) {
|
|
4583
4454
|
delay = 0;
|
|
4584
4455
|
}
|
|
4585
4456
|
return;
|
|
4586
4457
|
};
|
|
4587
|
-
|
|
4458
|
+
VirtualAction.prototype._execute = function(state, delay) {
|
|
4588
4459
|
if (this.active === true) {
|
|
4589
4460
|
return _super.prototype._execute.call(this, state, delay);
|
|
4590
4461
|
}
|
|
4591
4462
|
};
|
|
4592
|
-
|
|
4463
|
+
VirtualAction.sortActions = function(a, b) {
|
|
4593
4464
|
if (a.delay === b.delay) {
|
|
4594
4465
|
if (a.index === b.index) {
|
|
4595
4466
|
return 0;
|
|
@@ -4604,7 +4475,7 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
4604
4475
|
return -1;
|
|
4605
4476
|
}
|
|
4606
4477
|
};
|
|
4607
|
-
return
|
|
4478
|
+
return VirtualAction;
|
|
4608
4479
|
}(AsyncAction_1.AsyncAction);
|
|
4609
4480
|
exports.VirtualAction = VirtualAction;
|
|
4610
4481
|
});
|
|
@@ -5030,8 +4901,8 @@ var require_innerFrom = __commonJS(function(exports) {
|
|
|
5030
4901
|
};
|
|
5031
4902
|
}
|
|
5032
4903
|
function settle(resolve, reject, d, v) {
|
|
5033
|
-
Promise.resolve(v).then(function(
|
|
5034
|
-
resolve({ value:
|
|
4904
|
+
Promise.resolve(v).then(function(v) {
|
|
4905
|
+
resolve({ value: v, done: d });
|
|
5035
4906
|
}, reject);
|
|
5036
4907
|
}
|
|
5037
4908
|
};
|
|
@@ -5149,7 +5020,7 @@ var require_innerFrom = __commonJS(function(exports) {
|
|
|
5149
5020
|
exports.fromIterable = fromIterable;
|
|
5150
5021
|
function fromAsyncIterable(asyncIterable) {
|
|
5151
5022
|
return new Observable_1.Observable(function(subscriber) {
|
|
5152
|
-
|
|
5023
|
+
process2(asyncIterable, subscriber).catch(function(err) {
|
|
5153
5024
|
return subscriber.error(err);
|
|
5154
5025
|
});
|
|
5155
5026
|
});
|
|
@@ -5159,7 +5030,7 @@ var require_innerFrom = __commonJS(function(exports) {
|
|
|
5159
5030
|
return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
|
|
5160
5031
|
}
|
|
5161
5032
|
exports.fromReadableStreamLike = fromReadableStreamLike;
|
|
5162
|
-
function
|
|
5033
|
+
function process2(asyncIterable, subscriber) {
|
|
5163
5034
|
var asyncIterable_1, asyncIterable_1_1;
|
|
5164
5035
|
var e_2, _a;
|
|
5165
5036
|
return __awaiter(this, undefined, undefined, function() {
|
|
@@ -5517,31 +5388,31 @@ var require_Notification = __commonJS(function(exports) {
|
|
|
5517
5388
|
var throwError_1 = require_throwError();
|
|
5518
5389
|
var isFunction_1 = require_isFunction();
|
|
5519
5390
|
var NotificationKind;
|
|
5520
|
-
(function(
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5391
|
+
(function(NotificationKind) {
|
|
5392
|
+
NotificationKind["NEXT"] = "N";
|
|
5393
|
+
NotificationKind["ERROR"] = "E";
|
|
5394
|
+
NotificationKind["COMPLETE"] = "C";
|
|
5524
5395
|
})(NotificationKind = exports.NotificationKind || (exports.NotificationKind = {}));
|
|
5525
5396
|
var Notification = function() {
|
|
5526
|
-
function
|
|
5397
|
+
function Notification(kind, value, error) {
|
|
5527
5398
|
this.kind = kind;
|
|
5528
5399
|
this.value = value;
|
|
5529
5400
|
this.error = error;
|
|
5530
5401
|
this.hasValue = kind === "N";
|
|
5531
5402
|
}
|
|
5532
|
-
|
|
5403
|
+
Notification.prototype.observe = function(observer) {
|
|
5533
5404
|
return observeNotification(this, observer);
|
|
5534
5405
|
};
|
|
5535
|
-
|
|
5536
|
-
var _a = this,
|
|
5406
|
+
Notification.prototype.do = function(nextHandler, errorHandler, completeHandler) {
|
|
5407
|
+
var _a = this, { kind, value, error } = _a;
|
|
5537
5408
|
return kind === "N" ? nextHandler === null || nextHandler === undefined ? undefined : nextHandler(value) : kind === "E" ? errorHandler === null || errorHandler === undefined ? undefined : errorHandler(error) : completeHandler === null || completeHandler === undefined ? undefined : completeHandler();
|
|
5538
5409
|
};
|
|
5539
|
-
|
|
5410
|
+
Notification.prototype.accept = function(nextOrObserver, error, complete) {
|
|
5540
5411
|
var _a;
|
|
5541
5412
|
return isFunction_1.isFunction((_a = nextOrObserver) === null || _a === undefined ? undefined : _a.next) ? this.observe(nextOrObserver) : this.do(nextOrObserver, error, complete);
|
|
5542
5413
|
};
|
|
5543
|
-
|
|
5544
|
-
var _a = this,
|
|
5414
|
+
Notification.prototype.toObservable = function() {
|
|
5415
|
+
var _a = this, { kind, value, error } = _a;
|
|
5545
5416
|
var result = kind === "N" ? of_1.of(value) : kind === "E" ? throwError_1.throwError(function() {
|
|
5546
5417
|
return error;
|
|
5547
5418
|
}) : kind === "C" ? empty_1.EMPTY : 0;
|
|
@@ -5550,22 +5421,22 @@ var require_Notification = __commonJS(function(exports) {
|
|
|
5550
5421
|
}
|
|
5551
5422
|
return result;
|
|
5552
5423
|
};
|
|
5553
|
-
|
|
5554
|
-
return new
|
|
5424
|
+
Notification.createNext = function(value) {
|
|
5425
|
+
return new Notification("N", value);
|
|
5555
5426
|
};
|
|
5556
|
-
|
|
5557
|
-
return new
|
|
5427
|
+
Notification.createError = function(err) {
|
|
5428
|
+
return new Notification("E", undefined, err);
|
|
5558
5429
|
};
|
|
5559
|
-
|
|
5560
|
-
return
|
|
5430
|
+
Notification.createComplete = function() {
|
|
5431
|
+
return Notification.completeNotification;
|
|
5561
5432
|
};
|
|
5562
|
-
|
|
5563
|
-
return
|
|
5433
|
+
Notification.completeNotification = new Notification("C");
|
|
5434
|
+
return Notification;
|
|
5564
5435
|
}();
|
|
5565
5436
|
exports.Notification = Notification;
|
|
5566
5437
|
function observeNotification(notification, observer) {
|
|
5567
5438
|
var _a, _b, _c;
|
|
5568
|
-
var _d = notification,
|
|
5439
|
+
var _d = notification, { kind, value, error } = _d;
|
|
5569
5440
|
if (typeof kind !== "string") {
|
|
5570
5441
|
throw new TypeError('Invalid notification, missing "kind"');
|
|
5571
5442
|
}
|
|
@@ -5735,7 +5606,7 @@ var require_timeout = __commonJS(function(exports) {
|
|
|
5735
5606
|
};
|
|
5736
5607
|
});
|
|
5737
5608
|
function timeout(config, schedulerArg) {
|
|
5738
|
-
var _a = isDate_1.isValidDate(config) ? { first: config } : typeof config === "number" ? { each: config } : config,
|
|
5609
|
+
var _a = isDate_1.isValidDate(config) ? { first: config } : typeof config === "number" ? { each: config } : config, { first, each, with: _b } = _a, _with = _b === undefined ? timeoutErrorFactory : _b, _c = _a.scheduler, scheduler = _c === undefined ? schedulerArg !== null && schedulerArg !== undefined ? schedulerArg : async_1.asyncScheduler : _c, _d = _a.meta, meta = _d === undefined ? null : _d;
|
|
5739
5610
|
if (first == null && each == null) {
|
|
5740
5611
|
throw new TypeError("No timeout provided.");
|
|
5741
5612
|
}
|
|
@@ -5914,8 +5785,8 @@ var require_bindCallbackInternals = __commonJS(function(exports) {
|
|
|
5914
5785
|
callbackFunc.apply(_this, __spreadArray(__spreadArray([], __read(args)), [
|
|
5915
5786
|
function() {
|
|
5916
5787
|
var results = [];
|
|
5917
|
-
for (var
|
|
5918
|
-
results[
|
|
5788
|
+
for (var _i = 0;_i < arguments.length; _i++) {
|
|
5789
|
+
results[_i] = arguments[_i];
|
|
5919
5790
|
}
|
|
5920
5791
|
if (isNodeStyle) {
|
|
5921
5792
|
var err = results.shift();
|
|
@@ -6029,7 +5900,7 @@ var require_combineLatest = __commonJS(function(exports) {
|
|
|
6029
5900
|
}
|
|
6030
5901
|
var scheduler = args_1.popScheduler(args);
|
|
6031
5902
|
var resultSelector = args_1.popResultSelector(args);
|
|
6032
|
-
var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args),
|
|
5903
|
+
var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), { args: observables, keys } = _a;
|
|
6033
5904
|
if (observables.length === 0) {
|
|
6034
5905
|
return from_1.from([], scheduler);
|
|
6035
5906
|
}
|
|
@@ -6049,12 +5920,12 @@ var require_combineLatest = __commonJS(function(exports) {
|
|
|
6049
5920
|
var values = new Array(length);
|
|
6050
5921
|
var active = length;
|
|
6051
5922
|
var remainingFirstValues = length;
|
|
6052
|
-
var _loop_1 = function(
|
|
5923
|
+
var _loop_1 = function(i) {
|
|
6053
5924
|
maybeSchedule(scheduler, function() {
|
|
6054
|
-
var source = from_1.from(observables[
|
|
5925
|
+
var source = from_1.from(observables[i], scheduler);
|
|
6055
5926
|
var hasFirstValue = false;
|
|
6056
5927
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
6057
|
-
values[
|
|
5928
|
+
values[i] = value;
|
|
6058
5929
|
if (!hasFirstValue) {
|
|
6059
5930
|
hasFirstValue = true;
|
|
6060
5931
|
remainingFirstValues--;
|
|
@@ -6257,7 +6128,7 @@ var require_connectable = __commonJS(function(exports) {
|
|
|
6257
6128
|
config = DEFAULT_CONFIG;
|
|
6258
6129
|
}
|
|
6259
6130
|
var connection = null;
|
|
6260
|
-
var
|
|
6131
|
+
var connector = config.connector, _a = config.resetOnDisconnect, resetOnDisconnect = _a === undefined ? true : _a;
|
|
6261
6132
|
var subject = connector();
|
|
6262
6133
|
var result = new Observable_1.Observable(function(subscriber) {
|
|
6263
6134
|
return subject.subscribe(subscriber);
|
|
@@ -6297,7 +6168,7 @@ var require_forkJoin = __commonJS(function(exports) {
|
|
|
6297
6168
|
args[_i] = arguments[_i];
|
|
6298
6169
|
}
|
|
6299
6170
|
var resultSelector = args_1.popResultSelector(args);
|
|
6300
|
-
var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args),
|
|
6171
|
+
var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), { args: sources, keys } = _a;
|
|
6301
6172
|
var result = new Observable_1.Observable(function(subscriber) {
|
|
6302
6173
|
var length = sources.length;
|
|
6303
6174
|
if (!length) {
|
|
@@ -6307,14 +6178,14 @@ var require_forkJoin = __commonJS(function(exports) {
|
|
|
6307
6178
|
var values = new Array(length);
|
|
6308
6179
|
var remainingCompletions = length;
|
|
6309
6180
|
var remainingEmissions = length;
|
|
6310
|
-
var _loop_1 = function(
|
|
6181
|
+
var _loop_1 = function(sourceIndex) {
|
|
6311
6182
|
var hasValue = false;
|
|
6312
|
-
innerFrom_1.innerFrom(sources[
|
|
6183
|
+
innerFrom_1.innerFrom(sources[sourceIndex]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
6313
6184
|
if (!hasValue) {
|
|
6314
6185
|
hasValue = true;
|
|
6315
6186
|
remainingEmissions--;
|
|
6316
6187
|
}
|
|
6317
|
-
values[
|
|
6188
|
+
values[sourceIndex] = value;
|
|
6318
6189
|
}, function() {
|
|
6319
6190
|
return remainingCompletions--;
|
|
6320
6191
|
}, undefined, function() {
|
|
@@ -6554,18 +6425,18 @@ var require_generate = __commonJS(function(exports) {
|
|
|
6554
6425
|
}
|
|
6555
6426
|
function gen() {
|
|
6556
6427
|
var state;
|
|
6557
|
-
return __generator(this, function(
|
|
6558
|
-
switch (
|
|
6428
|
+
return __generator(this, function(_a) {
|
|
6429
|
+
switch (_a.label) {
|
|
6559
6430
|
case 0:
|
|
6560
6431
|
state = initialState;
|
|
6561
|
-
|
|
6432
|
+
_a.label = 1;
|
|
6562
6433
|
case 1:
|
|
6563
6434
|
if (!(!condition || condition(state)))
|
|
6564
6435
|
return [3, 4];
|
|
6565
6436
|
return [4, resultSelector(state)];
|
|
6566
6437
|
case 2:
|
|
6567
|
-
|
|
6568
|
-
|
|
6438
|
+
_a.sent();
|
|
6439
|
+
_a.label = 3;
|
|
6569
6440
|
case 3:
|
|
6570
6441
|
state = iterate(state);
|
|
6571
6442
|
return [3, 1];
|
|
@@ -6817,11 +6688,11 @@ var require_race = __commonJS(function(exports) {
|
|
|
6817
6688
|
function raceInit(sources) {
|
|
6818
6689
|
return function(subscriber) {
|
|
6819
6690
|
var subscriptions = [];
|
|
6820
|
-
var _loop_1 = function(
|
|
6821
|
-
subscriptions.push(innerFrom_1.innerFrom(sources[
|
|
6691
|
+
var _loop_1 = function(i) {
|
|
6692
|
+
subscriptions.push(innerFrom_1.innerFrom(sources[i]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
6822
6693
|
if (subscriptions) {
|
|
6823
6694
|
for (var s = 0;s < subscriptions.length; s++) {
|
|
6824
|
-
s !==
|
|
6695
|
+
s !== i && subscriptions[s].unsubscribe();
|
|
6825
6696
|
}
|
|
6826
6697
|
subscriptions = null;
|
|
6827
6698
|
}
|
|
@@ -6948,9 +6819,9 @@ var require_zip = __commonJS(function(exports) {
|
|
|
6948
6819
|
subscriber.add(function() {
|
|
6949
6820
|
buffers = completed = null;
|
|
6950
6821
|
});
|
|
6951
|
-
var _loop_1 = function(
|
|
6952
|
-
innerFrom_1.innerFrom(sources[
|
|
6953
|
-
buffers[
|
|
6822
|
+
var _loop_1 = function(sourceIndex) {
|
|
6823
|
+
innerFrom_1.innerFrom(sources[sourceIndex]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
6824
|
+
buffers[sourceIndex].push(value);
|
|
6954
6825
|
if (buffers.every(function(buffer) {
|
|
6955
6826
|
return buffer.length;
|
|
6956
6827
|
})) {
|
|
@@ -6965,8 +6836,8 @@ var require_zip = __commonJS(function(exports) {
|
|
|
6965
6836
|
}
|
|
6966
6837
|
}
|
|
6967
6838
|
}, function() {
|
|
6968
|
-
completed[
|
|
6969
|
-
!buffers[
|
|
6839
|
+
completed[sourceIndex] = true;
|
|
6840
|
+
!buffers[sourceIndex].length && subscriber.complete();
|
|
6970
6841
|
}));
|
|
6971
6842
|
};
|
|
6972
6843
|
for (var sourceIndex = 0;!subscriber.closed && sourceIndex < sources.length; sourceIndex++) {
|
|
@@ -7243,7 +7114,7 @@ var require_bufferTime = __commonJS(function(exports) {
|
|
|
7243
7114
|
}
|
|
7244
7115
|
startBuffer();
|
|
7245
7116
|
var bufferTimeSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
7246
|
-
var e_1,
|
|
7117
|
+
var e_1, _a;
|
|
7247
7118
|
var recordsCopy = bufferRecords.slice();
|
|
7248
7119
|
try {
|
|
7249
7120
|
for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next();!recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
|
|
@@ -7256,8 +7127,8 @@ var require_bufferTime = __commonJS(function(exports) {
|
|
|
7256
7127
|
e_1 = { error: e_1_1 };
|
|
7257
7128
|
} finally {
|
|
7258
7129
|
try {
|
|
7259
|
-
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (
|
|
7260
|
-
|
|
7130
|
+
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a = recordsCopy_1.return))
|
|
7131
|
+
_a.call(recordsCopy_1);
|
|
7261
7132
|
} finally {
|
|
7262
7133
|
if (e_1)
|
|
7263
7134
|
throw e_1.error;
|
|
@@ -9705,23 +9576,23 @@ var require_tap = __commonJS(function(exports) {
|
|
|
9705
9576
|
(_a = tapObserver.subscribe) === null || _a === undefined || _a.call(tapObserver);
|
|
9706
9577
|
var isUnsub = true;
|
|
9707
9578
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
9708
|
-
var
|
|
9709
|
-
(
|
|
9579
|
+
var _a;
|
|
9580
|
+
(_a = tapObserver.next) === null || _a === undefined || _a.call(tapObserver, value);
|
|
9710
9581
|
subscriber.next(value);
|
|
9711
9582
|
}, function() {
|
|
9712
|
-
var
|
|
9583
|
+
var _a;
|
|
9713
9584
|
isUnsub = false;
|
|
9714
|
-
(
|
|
9585
|
+
(_a = tapObserver.complete) === null || _a === undefined || _a.call(tapObserver);
|
|
9715
9586
|
subscriber.complete();
|
|
9716
9587
|
}, function(err) {
|
|
9717
|
-
var
|
|
9588
|
+
var _a;
|
|
9718
9589
|
isUnsub = false;
|
|
9719
|
-
(
|
|
9590
|
+
(_a = tapObserver.error) === null || _a === undefined || _a.call(tapObserver, err);
|
|
9720
9591
|
subscriber.error(err);
|
|
9721
9592
|
}, function() {
|
|
9722
|
-
var
|
|
9593
|
+
var _a, _b;
|
|
9723
9594
|
if (isUnsub) {
|
|
9724
|
-
(
|
|
9595
|
+
(_a = tapObserver.unsubscribe) === null || _a === undefined || _a.call(tapObserver);
|
|
9725
9596
|
}
|
|
9726
9597
|
(_b = tapObserver.finalize) === null || _b === undefined || _b.call(tapObserver);
|
|
9727
9598
|
}));
|
|
@@ -9823,11 +9694,11 @@ var require_timeInterval = __commonJS(function(exports) {
|
|
|
9823
9694
|
}
|
|
9824
9695
|
exports.timeInterval = timeInterval;
|
|
9825
9696
|
var TimeInterval = function() {
|
|
9826
|
-
function
|
|
9697
|
+
function TimeInterval(value, interval) {
|
|
9827
9698
|
this.value = value;
|
|
9828
9699
|
this.interval = interval;
|
|
9829
9700
|
}
|
|
9830
|
-
return
|
|
9701
|
+
return TimeInterval;
|
|
9831
9702
|
}();
|
|
9832
9703
|
exports.TimeInterval = TimeInterval;
|
|
9833
9704
|
});
|
|
@@ -10057,8 +9928,8 @@ var require_windowTime = __commonJS(function(exports) {
|
|
|
10057
9928
|
return windowRecords.slice().forEach(cb);
|
|
10058
9929
|
};
|
|
10059
9930
|
var terminate = function(cb) {
|
|
10060
|
-
loop(function(
|
|
10061
|
-
var window2 =
|
|
9931
|
+
loop(function(_a) {
|
|
9932
|
+
var window2 = _a.window;
|
|
10062
9933
|
return cb(window2);
|
|
10063
9934
|
});
|
|
10064
9935
|
cb(subscriber);
|
|
@@ -10267,11 +10138,11 @@ var require_withLatestFrom = __commonJS(function(exports) {
|
|
|
10267
10138
|
return false;
|
|
10268
10139
|
});
|
|
10269
10140
|
var ready = false;
|
|
10270
|
-
var _loop_1 = function(
|
|
10271
|
-
innerFrom_1.innerFrom(inputs[
|
|
10272
|
-
otherValues[
|
|
10273
|
-
if (!ready && !hasValue[
|
|
10274
|
-
hasValue[
|
|
10141
|
+
var _loop_1 = function(i) {
|
|
10142
|
+
innerFrom_1.innerFrom(inputs[i]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
10143
|
+
otherValues[i] = value;
|
|
10144
|
+
if (!ready && !hasValue[i]) {
|
|
10145
|
+
hasValue[i] = true;
|
|
10275
10146
|
(ready = hasValue.every(identity_1.identity)) && (hasValue = null);
|
|
10276
10147
|
}
|
|
10277
10148
|
}, noop_1.noop));
|
|
@@ -12408,8 +12279,8 @@ var require_wrap_ansi = __commonJS(function(exports, module) {
|
|
|
12408
12279
|
for (const [index, character] of [...pre].entries()) {
|
|
12409
12280
|
ret += character;
|
|
12410
12281
|
if (ESCAPES.has(character)) {
|
|
12411
|
-
const
|
|
12412
|
-
escapeCode =
|
|
12282
|
+
const code = parseFloat(/\d[^m]*/.exec(pre.slice(index, index + 4)));
|
|
12283
|
+
escapeCode = code === END_CODE ? null : code;
|
|
12413
12284
|
}
|
|
12414
12285
|
const code = ansiStyles.codes.get(Number(escapeCode));
|
|
12415
12286
|
if (escapeCode && code) {
|
|
@@ -12649,14 +12520,14 @@ var require_templates = __commonJS(function(exports, module) {
|
|
|
12649
12520
|
}
|
|
12650
12521
|
}
|
|
12651
12522
|
let current = chalk;
|
|
12652
|
-
for (const [styleName,
|
|
12653
|
-
if (!Array.isArray(
|
|
12523
|
+
for (const [styleName, styles] of Object.entries(enabled)) {
|
|
12524
|
+
if (!Array.isArray(styles)) {
|
|
12654
12525
|
continue;
|
|
12655
12526
|
}
|
|
12656
12527
|
if (!(styleName in current)) {
|
|
12657
12528
|
throw new Error(`Unknown Chalk style: ${styleName}`);
|
|
12658
12529
|
}
|
|
12659
|
-
current =
|
|
12530
|
+
current = styles.length > 0 ? current[styleName](...styles) : current[styleName];
|
|
12660
12531
|
}
|
|
12661
12532
|
return current;
|
|
12662
12533
|
}
|
|
@@ -12722,16 +12593,16 @@ var require_source = __commonJS(function(exports, module) {
|
|
|
12722
12593
|
}
|
|
12723
12594
|
}
|
|
12724
12595
|
var chalkFactory = (options) => {
|
|
12725
|
-
const
|
|
12726
|
-
applyOptions(
|
|
12727
|
-
|
|
12728
|
-
Object.setPrototypeOf(
|
|
12729
|
-
Object.setPrototypeOf(
|
|
12730
|
-
|
|
12596
|
+
const chalk = {};
|
|
12597
|
+
applyOptions(chalk, options);
|
|
12598
|
+
chalk.template = (...arguments_) => chalkTag(chalk.template, ...arguments_);
|
|
12599
|
+
Object.setPrototypeOf(chalk, Chalk.prototype);
|
|
12600
|
+
Object.setPrototypeOf(chalk.template, chalk);
|
|
12601
|
+
chalk.template.constructor = () => {
|
|
12731
12602
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
12732
12603
|
};
|
|
12733
|
-
|
|
12734
|
-
return
|
|
12604
|
+
chalk.template.Instance = ChalkClass;
|
|
12605
|
+
return chalk.template;
|
|
12735
12606
|
};
|
|
12736
12607
|
function Chalk(options) {
|
|
12737
12608
|
return chalkFactory(options);
|
|
@@ -12842,7 +12713,7 @@ var require_source = __commonJS(function(exports, module) {
|
|
|
12842
12713
|
return openAll + string + closeAll;
|
|
12843
12714
|
};
|
|
12844
12715
|
var template;
|
|
12845
|
-
var chalkTag = (
|
|
12716
|
+
var chalkTag = (chalk, ...strings) => {
|
|
12846
12717
|
const [firstString] = strings;
|
|
12847
12718
|
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
|
12848
12719
|
return strings.join(" ");
|
|
@@ -12855,7 +12726,7 @@ var require_source = __commonJS(function(exports, module) {
|
|
|
12855
12726
|
if (template === undefined) {
|
|
12856
12727
|
template = require_templates();
|
|
12857
12728
|
}
|
|
12858
|
-
return template(
|
|
12729
|
+
return template(chalk, parts.join(""));
|
|
12859
12730
|
};
|
|
12860
12731
|
Object.defineProperties(Chalk.prototype, styles);
|
|
12861
12732
|
var chalk = Chalk();
|
|
@@ -12888,8 +12759,8 @@ var require_onetime = __commonJS(function(exports, module) {
|
|
|
12888
12759
|
let returnValue;
|
|
12889
12760
|
let callCount = 0;
|
|
12890
12761
|
const functionName = function_.displayName || function_.name || "<anonymous>";
|
|
12891
|
-
const
|
|
12892
|
-
calledFunctions.set(
|
|
12762
|
+
const onetime = function(...arguments_) {
|
|
12763
|
+
calledFunctions.set(onetime, ++callCount);
|
|
12893
12764
|
if (callCount === 1) {
|
|
12894
12765
|
returnValue = function_.apply(this, arguments_);
|
|
12895
12766
|
function_ = null;
|
|
@@ -12898,9 +12769,9 @@ var require_onetime = __commonJS(function(exports, module) {
|
|
|
12898
12769
|
}
|
|
12899
12770
|
return returnValue;
|
|
12900
12771
|
};
|
|
12901
|
-
mimicFn(
|
|
12902
|
-
calledFunctions.set(
|
|
12903
|
-
return
|
|
12772
|
+
mimicFn(onetime, function_);
|
|
12773
|
+
calledFunctions.set(onetime, callCount);
|
|
12774
|
+
return onetime;
|
|
12904
12775
|
};
|
|
12905
12776
|
module.exports = onetime;
|
|
12906
12777
|
module.exports.default = onetime;
|
|
@@ -12931,26 +12802,26 @@ var require_signals = __commonJS(function(exports, module) {
|
|
|
12931
12802
|
|
|
12932
12803
|
// node_modules/inquirer/node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/node_modules/signal-exit/index.js
|
|
12933
12804
|
var require_signal_exit = __commonJS(function(exports, module) {
|
|
12934
|
-
var
|
|
12935
|
-
var processOk = function(
|
|
12936
|
-
return
|
|
12805
|
+
var process2 = global.process;
|
|
12806
|
+
var processOk = function(process2) {
|
|
12807
|
+
return process2 && typeof process2 === "object" && typeof process2.removeListener === "function" && typeof process2.emit === "function" && typeof process2.reallyExit === "function" && typeof process2.listeners === "function" && typeof process2.kill === "function" && typeof process2.pid === "number" && typeof process2.on === "function";
|
|
12937
12808
|
};
|
|
12938
|
-
if (!processOk(
|
|
12809
|
+
if (!processOk(process2)) {
|
|
12939
12810
|
module.exports = function() {
|
|
12940
12811
|
return function() {};
|
|
12941
12812
|
};
|
|
12942
12813
|
} else {
|
|
12943
|
-
|
|
12814
|
+
assert = __require("assert");
|
|
12944
12815
|
signals = require_signals();
|
|
12945
|
-
isWin = /^win/i.test(
|
|
12816
|
+
isWin = /^win/i.test(process2.platform);
|
|
12946
12817
|
EE = __require("events");
|
|
12947
12818
|
if (typeof EE !== "function") {
|
|
12948
12819
|
EE = EE.EventEmitter;
|
|
12949
12820
|
}
|
|
12950
|
-
if (
|
|
12951
|
-
emitter =
|
|
12821
|
+
if (process2.__signal_exit_emitter__) {
|
|
12822
|
+
emitter = process2.__signal_exit_emitter__;
|
|
12952
12823
|
} else {
|
|
12953
|
-
emitter =
|
|
12824
|
+
emitter = process2.__signal_exit_emitter__ = new EE;
|
|
12954
12825
|
emitter.count = 0;
|
|
12955
12826
|
emitter.emitted = {};
|
|
12956
12827
|
}
|
|
@@ -12962,7 +12833,7 @@ var require_signal_exit = __commonJS(function(exports, module) {
|
|
|
12962
12833
|
if (!processOk(global.process)) {
|
|
12963
12834
|
return function() {};
|
|
12964
12835
|
}
|
|
12965
|
-
|
|
12836
|
+
assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
|
|
12966
12837
|
if (loaded === false) {
|
|
12967
12838
|
load();
|
|
12968
12839
|
}
|
|
@@ -12979,22 +12850,22 @@ var require_signal_exit = __commonJS(function(exports, module) {
|
|
|
12979
12850
|
emitter.on(ev, cb);
|
|
12980
12851
|
return remove;
|
|
12981
12852
|
};
|
|
12982
|
-
unload = function
|
|
12853
|
+
unload = function unload() {
|
|
12983
12854
|
if (!loaded || !processOk(global.process)) {
|
|
12984
12855
|
return;
|
|
12985
12856
|
}
|
|
12986
12857
|
loaded = false;
|
|
12987
12858
|
signals.forEach(function(sig) {
|
|
12988
12859
|
try {
|
|
12989
|
-
|
|
12860
|
+
process2.removeListener(sig, sigListeners[sig]);
|
|
12990
12861
|
} catch (er) {}
|
|
12991
12862
|
});
|
|
12992
|
-
|
|
12993
|
-
|
|
12863
|
+
process2.emit = originalProcessEmit;
|
|
12864
|
+
process2.reallyExit = originalProcessReallyExit;
|
|
12994
12865
|
emitter.count -= 1;
|
|
12995
12866
|
};
|
|
12996
12867
|
module.exports.unload = unload;
|
|
12997
|
-
emit = function
|
|
12868
|
+
emit = function emit(event, code, signal) {
|
|
12998
12869
|
if (emitter.emitted[event]) {
|
|
12999
12870
|
return;
|
|
13000
12871
|
}
|
|
@@ -13007,7 +12878,7 @@ var require_signal_exit = __commonJS(function(exports, module) {
|
|
|
13007
12878
|
if (!processOk(global.process)) {
|
|
13008
12879
|
return;
|
|
13009
12880
|
}
|
|
13010
|
-
var listeners =
|
|
12881
|
+
var listeners = process2.listeners(sig);
|
|
13011
12882
|
if (listeners.length === emitter.count) {
|
|
13012
12883
|
unload();
|
|
13013
12884
|
emit("exit", null, sig);
|
|
@@ -13015,7 +12886,7 @@ var require_signal_exit = __commonJS(function(exports, module) {
|
|
|
13015
12886
|
if (isWin && sig === "SIGHUP") {
|
|
13016
12887
|
sig = "SIGINT";
|
|
13017
12888
|
}
|
|
13018
|
-
|
|
12889
|
+
process2.kill(process2.pid, sig);
|
|
13019
12890
|
}
|
|
13020
12891
|
};
|
|
13021
12892
|
});
|
|
@@ -13023,7 +12894,7 @@ var require_signal_exit = __commonJS(function(exports, module) {
|
|
|
13023
12894
|
return signals;
|
|
13024
12895
|
};
|
|
13025
12896
|
loaded = false;
|
|
13026
|
-
load = function
|
|
12897
|
+
load = function load() {
|
|
13027
12898
|
if (loaded || !processOk(global.process)) {
|
|
13028
12899
|
return;
|
|
13029
12900
|
}
|
|
@@ -13031,42 +12902,42 @@ var require_signal_exit = __commonJS(function(exports, module) {
|
|
|
13031
12902
|
emitter.count += 1;
|
|
13032
12903
|
signals = signals.filter(function(sig) {
|
|
13033
12904
|
try {
|
|
13034
|
-
|
|
12905
|
+
process2.on(sig, sigListeners[sig]);
|
|
13035
12906
|
return true;
|
|
13036
12907
|
} catch (er) {
|
|
13037
12908
|
return false;
|
|
13038
12909
|
}
|
|
13039
12910
|
});
|
|
13040
|
-
|
|
13041
|
-
|
|
12911
|
+
process2.emit = processEmit;
|
|
12912
|
+
process2.reallyExit = processReallyExit;
|
|
13042
12913
|
};
|
|
13043
12914
|
module.exports.load = load;
|
|
13044
|
-
originalProcessReallyExit =
|
|
13045
|
-
processReallyExit = function
|
|
12915
|
+
originalProcessReallyExit = process2.reallyExit;
|
|
12916
|
+
processReallyExit = function processReallyExit(code) {
|
|
13046
12917
|
if (!processOk(global.process)) {
|
|
13047
12918
|
return;
|
|
13048
12919
|
}
|
|
13049
|
-
|
|
13050
|
-
emit("exit",
|
|
13051
|
-
emit("afterexit",
|
|
13052
|
-
originalProcessReallyExit.call(
|
|
12920
|
+
process2.exitCode = code || 0;
|
|
12921
|
+
emit("exit", process2.exitCode, null);
|
|
12922
|
+
emit("afterexit", process2.exitCode, null);
|
|
12923
|
+
originalProcessReallyExit.call(process2, process2.exitCode);
|
|
13053
12924
|
};
|
|
13054
|
-
originalProcessEmit =
|
|
13055
|
-
processEmit = function
|
|
12925
|
+
originalProcessEmit = process2.emit;
|
|
12926
|
+
processEmit = function processEmit(ev, arg) {
|
|
13056
12927
|
if (ev === "exit" && processOk(global.process)) {
|
|
13057
12928
|
if (arg !== undefined) {
|
|
13058
|
-
|
|
12929
|
+
process2.exitCode = arg;
|
|
13059
12930
|
}
|
|
13060
12931
|
var ret = originalProcessEmit.apply(this, arguments);
|
|
13061
|
-
emit("exit",
|
|
13062
|
-
emit("afterexit",
|
|
12932
|
+
emit("exit", process2.exitCode, null);
|
|
12933
|
+
emit("afterexit", process2.exitCode, null);
|
|
13063
12934
|
return ret;
|
|
13064
12935
|
} else {
|
|
13065
12936
|
return originalProcessEmit.apply(this, arguments);
|
|
13066
12937
|
}
|
|
13067
12938
|
};
|
|
13068
12939
|
}
|
|
13069
|
-
var
|
|
12940
|
+
var assert;
|
|
13070
12941
|
var signals;
|
|
13071
12942
|
var isWin;
|
|
13072
12943
|
var EE;
|
|
@@ -14777,7 +14648,7 @@ var require_is_unicode_supported = __commonJS(function(exports, module) {
|
|
|
14777
14648
|
// node_modules/inquirer/node_modules/ora/node_modules/log-symbols/index.js
|
|
14778
14649
|
var require_log_symbols = __commonJS(function(exports, module) {
|
|
14779
14650
|
var chalk = require_source();
|
|
14780
|
-
var
|
|
14651
|
+
var isUnicodeSupported = require_is_unicode_supported();
|
|
14781
14652
|
var main = {
|
|
14782
14653
|
info: chalk.blue("ℹ"),
|
|
14783
14654
|
success: chalk.green("✔"),
|
|
@@ -14790,18 +14661,18 @@ var require_log_symbols = __commonJS(function(exports, module) {
|
|
|
14790
14661
|
warning: chalk.yellow("‼"),
|
|
14791
14662
|
error: chalk.red("×")
|
|
14792
14663
|
};
|
|
14793
|
-
module.exports =
|
|
14664
|
+
module.exports = isUnicodeSupported() ? main : fallback;
|
|
14794
14665
|
});
|
|
14795
14666
|
|
|
14796
14667
|
// node_modules/clone/clone.js
|
|
14797
14668
|
var require_clone = __commonJS(function(exports, module) {
|
|
14798
14669
|
var clone = function() {
|
|
14799
|
-
function
|
|
14800
|
-
var
|
|
14670
|
+
function clone(parent, circular, depth, prototype) {
|
|
14671
|
+
var filter;
|
|
14801
14672
|
if (typeof circular === "object") {
|
|
14802
14673
|
depth = circular.depth;
|
|
14803
14674
|
prototype = circular.prototype;
|
|
14804
|
-
|
|
14675
|
+
filter = circular.filter;
|
|
14805
14676
|
circular = circular.circular;
|
|
14806
14677
|
}
|
|
14807
14678
|
var allParents = [];
|
|
@@ -14811,35 +14682,35 @@ var require_clone = __commonJS(function(exports, module) {
|
|
|
14811
14682
|
circular = true;
|
|
14812
14683
|
if (typeof depth == "undefined")
|
|
14813
14684
|
depth = Infinity;
|
|
14814
|
-
function _clone(
|
|
14815
|
-
if (
|
|
14685
|
+
function _clone(parent, depth) {
|
|
14686
|
+
if (parent === null)
|
|
14816
14687
|
return null;
|
|
14817
|
-
if (
|
|
14818
|
-
return
|
|
14688
|
+
if (depth == 0)
|
|
14689
|
+
return parent;
|
|
14819
14690
|
var child;
|
|
14820
14691
|
var proto;
|
|
14821
|
-
if (typeof
|
|
14822
|
-
return
|
|
14692
|
+
if (typeof parent != "object") {
|
|
14693
|
+
return parent;
|
|
14823
14694
|
}
|
|
14824
|
-
if (
|
|
14695
|
+
if (clone.__isArray(parent)) {
|
|
14825
14696
|
child = [];
|
|
14826
|
-
} else if (
|
|
14827
|
-
child = new RegExp(
|
|
14828
|
-
if (
|
|
14829
|
-
child.lastIndex =
|
|
14830
|
-
} else if (
|
|
14831
|
-
child = new Date(
|
|
14832
|
-
} else if (useBuffer && Buffer.isBuffer(
|
|
14697
|
+
} else if (clone.__isRegExp(parent)) {
|
|
14698
|
+
child = new RegExp(parent.source, __getRegExpFlags(parent));
|
|
14699
|
+
if (parent.lastIndex)
|
|
14700
|
+
child.lastIndex = parent.lastIndex;
|
|
14701
|
+
} else if (clone.__isDate(parent)) {
|
|
14702
|
+
child = new Date(parent.getTime());
|
|
14703
|
+
} else if (useBuffer && Buffer.isBuffer(parent)) {
|
|
14833
14704
|
if (Buffer.allocUnsafe) {
|
|
14834
|
-
child = Buffer.allocUnsafe(
|
|
14705
|
+
child = Buffer.allocUnsafe(parent.length);
|
|
14835
14706
|
} else {
|
|
14836
|
-
child = new Buffer(
|
|
14707
|
+
child = new Buffer(parent.length);
|
|
14837
14708
|
}
|
|
14838
|
-
|
|
14709
|
+
parent.copy(child);
|
|
14839
14710
|
return child;
|
|
14840
14711
|
} else {
|
|
14841
14712
|
if (typeof prototype == "undefined") {
|
|
14842
|
-
proto = Object.getPrototypeOf(
|
|
14713
|
+
proto = Object.getPrototypeOf(parent);
|
|
14843
14714
|
child = Object.create(proto);
|
|
14844
14715
|
} else {
|
|
14845
14716
|
child = Object.create(prototype);
|
|
@@ -14847,14 +14718,14 @@ var require_clone = __commonJS(function(exports, module) {
|
|
|
14847
14718
|
}
|
|
14848
14719
|
}
|
|
14849
14720
|
if (circular) {
|
|
14850
|
-
var index = allParents.indexOf(
|
|
14721
|
+
var index = allParents.indexOf(parent);
|
|
14851
14722
|
if (index != -1) {
|
|
14852
14723
|
return allChildren[index];
|
|
14853
14724
|
}
|
|
14854
|
-
allParents.push(
|
|
14725
|
+
allParents.push(parent);
|
|
14855
14726
|
allChildren.push(child);
|
|
14856
14727
|
}
|
|
14857
|
-
for (var i in
|
|
14728
|
+
for (var i in parent) {
|
|
14858
14729
|
var attrs;
|
|
14859
14730
|
if (proto) {
|
|
14860
14731
|
attrs = Object.getOwnPropertyDescriptor(proto, i);
|
|
@@ -14862,13 +14733,13 @@ var require_clone = __commonJS(function(exports, module) {
|
|
|
14862
14733
|
if (attrs && attrs.set == null) {
|
|
14863
14734
|
continue;
|
|
14864
14735
|
}
|
|
14865
|
-
child[i] = _clone(
|
|
14736
|
+
child[i] = _clone(parent[i], depth - 1);
|
|
14866
14737
|
}
|
|
14867
14738
|
return child;
|
|
14868
14739
|
}
|
|
14869
14740
|
return _clone(parent, depth);
|
|
14870
14741
|
}
|
|
14871
|
-
|
|
14742
|
+
clone.clonePrototype = function clonePrototype(parent) {
|
|
14872
14743
|
if (parent === null)
|
|
14873
14744
|
return null;
|
|
14874
14745
|
var c = function() {};
|
|
@@ -14878,19 +14749,19 @@ var require_clone = __commonJS(function(exports, module) {
|
|
|
14878
14749
|
function __objToStr(o) {
|
|
14879
14750
|
return Object.prototype.toString.call(o);
|
|
14880
14751
|
}
|
|
14881
|
-
|
|
14752
|
+
clone.__objToStr = __objToStr;
|
|
14882
14753
|
function __isDate(o) {
|
|
14883
14754
|
return typeof o === "object" && __objToStr(o) === "[object Date]";
|
|
14884
14755
|
}
|
|
14885
|
-
|
|
14756
|
+
clone.__isDate = __isDate;
|
|
14886
14757
|
function __isArray(o) {
|
|
14887
14758
|
return typeof o === "object" && __objToStr(o) === "[object Array]";
|
|
14888
14759
|
}
|
|
14889
|
-
|
|
14760
|
+
clone.__isArray = __isArray;
|
|
14890
14761
|
function __isRegExp(o) {
|
|
14891
14762
|
return typeof o === "object" && __objToStr(o) === "[object RegExp]";
|
|
14892
14763
|
}
|
|
14893
|
-
|
|
14764
|
+
clone.__isRegExp = __isRegExp;
|
|
14894
14765
|
function __getRegExpFlags(re) {
|
|
14895
14766
|
var flags = "";
|
|
14896
14767
|
if (re.global)
|
|
@@ -14901,8 +14772,8 @@ var require_clone = __commonJS(function(exports, module) {
|
|
|
14901
14772
|
flags += "m";
|
|
14902
14773
|
return flags;
|
|
14903
14774
|
}
|
|
14904
|
-
|
|
14905
|
-
return
|
|
14775
|
+
clone.__getRegExpFlags = __getRegExpFlags;
|
|
14776
|
+
return clone;
|
|
14906
14777
|
}();
|
|
14907
14778
|
if (typeof module === "object" && module.exports) {
|
|
14908
14779
|
module.exports = clone;
|
|
@@ -15079,12 +14950,12 @@ var require_wcwidth = __commonJS(function(exports, module) {
|
|
|
15079
14950
|
nul: 0,
|
|
15080
14951
|
control: 0
|
|
15081
14952
|
};
|
|
15082
|
-
module.exports = function
|
|
14953
|
+
module.exports = function wcwidth(str) {
|
|
15083
14954
|
return wcswidth(str, DEFAULTS);
|
|
15084
14955
|
};
|
|
15085
14956
|
module.exports.config = function(opts) {
|
|
15086
14957
|
opts = defaults(opts || {}, DEFAULTS);
|
|
15087
|
-
return function
|
|
14958
|
+
return function wcwidth(str) {
|
|
15088
14959
|
return wcswidth(str, opts);
|
|
15089
14960
|
};
|
|
15090
14961
|
};
|
|
@@ -15413,19 +15284,19 @@ var require_destroy = __commonJS(function(exports, module) {
|
|
|
15413
15284
|
if (this._writableState) {
|
|
15414
15285
|
this._writableState.destroyed = true;
|
|
15415
15286
|
}
|
|
15416
|
-
this._destroy(err || null, function(
|
|
15417
|
-
if (!cb &&
|
|
15287
|
+
this._destroy(err || null, function(err) {
|
|
15288
|
+
if (!cb && err) {
|
|
15418
15289
|
if (!_this._writableState) {
|
|
15419
|
-
process.nextTick(emitErrorAndCloseNT, _this,
|
|
15290
|
+
process.nextTick(emitErrorAndCloseNT, _this, err);
|
|
15420
15291
|
} else if (!_this._writableState.errorEmitted) {
|
|
15421
15292
|
_this._writableState.errorEmitted = true;
|
|
15422
|
-
process.nextTick(emitErrorAndCloseNT, _this,
|
|
15293
|
+
process.nextTick(emitErrorAndCloseNT, _this, err);
|
|
15423
15294
|
} else {
|
|
15424
15295
|
process.nextTick(emitCloseNT, _this);
|
|
15425
15296
|
}
|
|
15426
15297
|
} else if (cb) {
|
|
15427
15298
|
process.nextTick(emitCloseNT, _this);
|
|
15428
|
-
cb(
|
|
15299
|
+
cb(err);
|
|
15429
15300
|
} else {
|
|
15430
15301
|
process.nextTick(emitCloseNT, _this);
|
|
15431
15302
|
}
|
|
@@ -15754,7 +15625,7 @@ var require__stream_writable = __commonJS(function(exports, module) {
|
|
|
15754
15625
|
}
|
|
15755
15626
|
});
|
|
15756
15627
|
} else {
|
|
15757
|
-
realHasInstance = function
|
|
15628
|
+
realHasInstance = function realHasInstance(object) {
|
|
15758
15629
|
return object instanceof this;
|
|
15759
15630
|
};
|
|
15760
15631
|
}
|
|
@@ -16130,10 +16001,10 @@ var require__stream_writable = __commonJS(function(exports, module) {
|
|
|
16130
16001
|
// node_modules/readable-stream/lib/_stream_duplex.js
|
|
16131
16002
|
var require__stream_duplex = __commonJS(function(exports, module) {
|
|
16132
16003
|
var objectKeys = Object.keys || function(obj) {
|
|
16133
|
-
var
|
|
16004
|
+
var keys = [];
|
|
16134
16005
|
for (var key in obj)
|
|
16135
|
-
|
|
16136
|
-
return
|
|
16006
|
+
keys.push(key);
|
|
16007
|
+
return keys;
|
|
16137
16008
|
};
|
|
16138
16009
|
module.exports = Duplex;
|
|
16139
16010
|
var Readable = require__stream_readable();
|
|
@@ -16552,28 +16423,28 @@ var require_end_of_stream = __commonJS(function(exports, module) {
|
|
|
16552
16423
|
callback = once(callback || noop);
|
|
16553
16424
|
var readable = opts.readable || opts.readable !== false && stream.readable;
|
|
16554
16425
|
var writable = opts.writable || opts.writable !== false && stream.writable;
|
|
16555
|
-
var onlegacyfinish = function
|
|
16426
|
+
var onlegacyfinish = function onlegacyfinish() {
|
|
16556
16427
|
if (!stream.writable)
|
|
16557
16428
|
onfinish();
|
|
16558
16429
|
};
|
|
16559
16430
|
var writableEnded = stream._writableState && stream._writableState.finished;
|
|
16560
|
-
var onfinish = function
|
|
16431
|
+
var onfinish = function onfinish() {
|
|
16561
16432
|
writable = false;
|
|
16562
16433
|
writableEnded = true;
|
|
16563
16434
|
if (!readable)
|
|
16564
16435
|
callback.call(stream);
|
|
16565
16436
|
};
|
|
16566
16437
|
var readableEnded = stream._readableState && stream._readableState.endEmitted;
|
|
16567
|
-
var onend = function
|
|
16438
|
+
var onend = function onend() {
|
|
16568
16439
|
readable = false;
|
|
16569
16440
|
readableEnded = true;
|
|
16570
16441
|
if (!writable)
|
|
16571
16442
|
callback.call(stream);
|
|
16572
16443
|
};
|
|
16573
|
-
var onerror = function
|
|
16444
|
+
var onerror = function onerror(err) {
|
|
16574
16445
|
callback.call(stream, err);
|
|
16575
16446
|
};
|
|
16576
|
-
var onclose = function
|
|
16447
|
+
var onclose = function onclose() {
|
|
16577
16448
|
var err;
|
|
16578
16449
|
if (readable && !readableEnded) {
|
|
16579
16450
|
if (!stream._readableState || !stream._readableState.ended)
|
|
@@ -16586,7 +16457,7 @@ var require_end_of_stream = __commonJS(function(exports, module) {
|
|
|
16586
16457
|
return callback.call(stream, err);
|
|
16587
16458
|
}
|
|
16588
16459
|
};
|
|
16589
|
-
var onrequest = function
|
|
16460
|
+
var onrequest = function onrequest() {
|
|
16590
16461
|
stream.req.on("finish", onfinish);
|
|
16591
16462
|
};
|
|
16592
16463
|
if (isRequest(stream)) {
|
|
@@ -16743,7 +16614,7 @@ var require_async_iterator = __commonJS(function(exports, module) {
|
|
|
16743
16614
|
});
|
|
16744
16615
|
});
|
|
16745
16616
|
}), _Object$setPrototypeO), AsyncIteratorPrototype);
|
|
16746
|
-
var createReadableStreamAsyncIterator = function
|
|
16617
|
+
var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {
|
|
16747
16618
|
var _Object$create;
|
|
16748
16619
|
var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {
|
|
16749
16620
|
value: stream,
|
|
@@ -16907,7 +16778,7 @@ var require_from2 = __commonJS(function(exports, module) {
|
|
|
16907
16778
|
function _next2() {
|
|
16908
16779
|
_next2 = _asyncToGenerator(function* () {
|
|
16909
16780
|
try {
|
|
16910
|
-
var _yield$iterator$next = yield iterator.next(),
|
|
16781
|
+
var _yield$iterator$next = yield iterator.next(), { value, done } = _yield$iterator$next;
|
|
16911
16782
|
if (done) {
|
|
16912
16783
|
readable.push(null);
|
|
16913
16784
|
} else if (readable.push(yield value)) {
|
|
@@ -16932,7 +16803,7 @@ var require__stream_readable = __commonJS(function(exports, module) {
|
|
|
16932
16803
|
var Duplex;
|
|
16933
16804
|
Readable.ReadableState = ReadableState;
|
|
16934
16805
|
var EE = __require("events").EventEmitter;
|
|
16935
|
-
var EElistenerCount = function
|
|
16806
|
+
var EElistenerCount = function EElistenerCount(emitter, type) {
|
|
16936
16807
|
return emitter.listeners(type).length;
|
|
16937
16808
|
};
|
|
16938
16809
|
var Stream = __require("stream");
|
|
@@ -16949,7 +16820,7 @@ var require__stream_readable = __commonJS(function(exports, module) {
|
|
|
16949
16820
|
if (debugUtil && debugUtil.debuglog) {
|
|
16950
16821
|
debug = debugUtil.debuglog("stream");
|
|
16951
16822
|
} else {
|
|
16952
|
-
debug = function
|
|
16823
|
+
debug = function debug() {};
|
|
16953
16824
|
}
|
|
16954
16825
|
var BufferList = require_buffer_list();
|
|
16955
16826
|
var destroyImpl = require_destroy();
|
|
@@ -17597,8 +17468,8 @@ var require__stream_readable = __commonJS(function(exports, module) {
|
|
|
17597
17468
|
for (var n = 0;n < kProxyEvents.length; n++) {
|
|
17598
17469
|
stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));
|
|
17599
17470
|
}
|
|
17600
|
-
this._read = function(
|
|
17601
|
-
debug("wrapped _read",
|
|
17471
|
+
this._read = function(n) {
|
|
17472
|
+
debug("wrapped _read", n);
|
|
17602
17473
|
if (paused) {
|
|
17603
17474
|
paused = false;
|
|
17604
17475
|
stream.resume();
|
|
@@ -18009,14 +17880,14 @@ var require_BufferList = __commonJS(function(exports, module) {
|
|
|
18009
17880
|
if (srcEnd <= 0) {
|
|
18010
17881
|
return dst || Buffer2.alloc(0);
|
|
18011
17882
|
}
|
|
18012
|
-
const
|
|
17883
|
+
const copy = !!dst;
|
|
18013
17884
|
const off = this._offset(srcStart);
|
|
18014
17885
|
const len = srcEnd - srcStart;
|
|
18015
17886
|
let bytes = len;
|
|
18016
|
-
let bufoff =
|
|
17887
|
+
let bufoff = copy && dstStart || 0;
|
|
18017
17888
|
let start = off[1];
|
|
18018
17889
|
if (srcStart === 0 && srcEnd === this.length) {
|
|
18019
|
-
if (!
|
|
17890
|
+
if (!copy) {
|
|
18020
17891
|
return this._bufs.length === 1 ? this._bufs[0] : Buffer2.concat(this._bufs, this.length);
|
|
18021
17892
|
}
|
|
18022
17893
|
for (let i = 0;i < this._bufs.length; i++) {
|
|
@@ -18026,9 +17897,9 @@ var require_BufferList = __commonJS(function(exports, module) {
|
|
|
18026
17897
|
return dst;
|
|
18027
17898
|
}
|
|
18028
17899
|
if (bytes <= this._bufs[off[0]].length - start) {
|
|
18029
|
-
return
|
|
17900
|
+
return copy ? this._bufs[off[0]].copy(dst, dstStart, start, start + bytes) : this._bufs[off[0]].slice(start, start + bytes);
|
|
18030
17901
|
}
|
|
18031
|
-
if (!
|
|
17902
|
+
if (!copy) {
|
|
18032
17903
|
dst = Buffer2.allocUnsafe(len);
|
|
18033
17904
|
}
|
|
18034
17905
|
for (let i = off[0];i < this._bufs.length; i++) {
|
|
@@ -18217,14 +18088,14 @@ var require_BufferList = __commonJS(function(exports, module) {
|
|
|
18217
18088
|
readUIntLE: null
|
|
18218
18089
|
};
|
|
18219
18090
|
for (const m in methods) {
|
|
18220
|
-
(function(
|
|
18221
|
-
if (methods[
|
|
18222
|
-
BufferList.prototype[
|
|
18223
|
-
return this.slice(offset, offset + byteLength)[
|
|
18091
|
+
(function(m) {
|
|
18092
|
+
if (methods[m] === null) {
|
|
18093
|
+
BufferList.prototype[m] = function(offset, byteLength) {
|
|
18094
|
+
return this.slice(offset, offset + byteLength)[m](0, byteLength);
|
|
18224
18095
|
};
|
|
18225
18096
|
} else {
|
|
18226
|
-
BufferList.prototype[
|
|
18227
|
-
return this.slice(offset, offset + methods[
|
|
18097
|
+
BufferList.prototype[m] = function(offset = 0) {
|
|
18098
|
+
return this.slice(offset, offset + methods[m])[m](0);
|
|
18228
18099
|
};
|
|
18229
18100
|
}
|
|
18230
18101
|
})(m);
|
|
@@ -18250,7 +18121,7 @@ var require_bl = __commonJS(function(exports, module) {
|
|
|
18250
18121
|
}
|
|
18251
18122
|
if (typeof callback === "function") {
|
|
18252
18123
|
this._callback = callback;
|
|
18253
|
-
const piper = function
|
|
18124
|
+
const piper = function piper(err) {
|
|
18254
18125
|
if (this._callback) {
|
|
18255
18126
|
this._callback(err);
|
|
18256
18127
|
this._callback = null;
|
|
@@ -18317,7 +18188,7 @@ var require_ora = __commonJS(function(exports, module) {
|
|
|
18317
18188
|
var stripAnsi = require_strip_ansi();
|
|
18318
18189
|
var wcwidth = require_wcwidth();
|
|
18319
18190
|
var isInteractive = require_is_interactive();
|
|
18320
|
-
var
|
|
18191
|
+
var isUnicodeSupported = require_is_unicode_supported();
|
|
18321
18192
|
var { BufferListStream } = require_bl();
|
|
18322
18193
|
var TEXT = Symbol("text");
|
|
18323
18194
|
var PREFIX_TEXT = Symbol("prefixText");
|
|
@@ -18442,7 +18313,7 @@ var require_ora = __commonJS(function(exports, module) {
|
|
|
18442
18313
|
throw new Error("The given spinner must have a `frames` property");
|
|
18443
18314
|
}
|
|
18444
18315
|
this._spinner = spinner;
|
|
18445
|
-
} else if (!
|
|
18316
|
+
} else if (!isUnicodeSupported()) {
|
|
18446
18317
|
this._spinner = cliSpinners.line;
|
|
18447
18318
|
} else if (spinner === undefined) {
|
|
18448
18319
|
this._spinner = cliSpinners.dots;
|
|
@@ -18860,14 +18731,14 @@ var require_mbcs = __commonJS(function(exports) {
|
|
|
18860
18731
|
exports.gb_18030 = exports.euc_kr = exports.euc_jp = exports.big5 = exports.sjis = undefined;
|
|
18861
18732
|
var match_1 = __importDefault(require_match());
|
|
18862
18733
|
function binarySearch(arr, searchValue) {
|
|
18863
|
-
const find = (
|
|
18864
|
-
if (
|
|
18734
|
+
const find = (arr, searchValue, left, right) => {
|
|
18735
|
+
if (right < left)
|
|
18865
18736
|
return -1;
|
|
18866
|
-
const mid = Math.floor(
|
|
18867
|
-
if (
|
|
18868
|
-
return find(
|
|
18869
|
-
if (
|
|
18870
|
-
return find(
|
|
18737
|
+
const mid = Math.floor(left + right >>> 1);
|
|
18738
|
+
if (searchValue > arr[mid])
|
|
18739
|
+
return find(arr, searchValue, mid + 1, right);
|
|
18740
|
+
if (searchValue < arr[mid])
|
|
18741
|
+
return find(arr, searchValue, left, mid - 1);
|
|
18871
18742
|
return mid;
|
|
18872
18743
|
};
|
|
18873
18744
|
return find(arr, searchValue, 0, arr.length - 1);
|
|
@@ -24119,10 +23990,10 @@ var require_lib = __commonJS(function(exports) {
|
|
|
24119
23990
|
});
|
|
24120
23991
|
var __importStar = exports && exports.__importStar || function() {
|
|
24121
23992
|
var ownKeys = function(o) {
|
|
24122
|
-
ownKeys = Object.getOwnPropertyNames || function(
|
|
23993
|
+
ownKeys = Object.getOwnPropertyNames || function(o) {
|
|
24123
23994
|
var ar = [];
|
|
24124
|
-
for (var k in
|
|
24125
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
23995
|
+
for (var k in o)
|
|
23996
|
+
if (Object.prototype.hasOwnProperty.call(o, k))
|
|
24126
23997
|
ar[ar.length] = k;
|
|
24127
23998
|
return ar;
|
|
24128
23999
|
};
|
|
@@ -24977,25 +24848,25 @@ var require_utf7 = __commonJS(function(exports) {
|
|
|
24977
24848
|
var lastI = 0;
|
|
24978
24849
|
var inBase64 = this.inBase64;
|
|
24979
24850
|
var base64Accum = this.base64Accum;
|
|
24980
|
-
for (var
|
|
24851
|
+
for (var i = 0;i < buf.length; i++) {
|
|
24981
24852
|
if (!inBase64) {
|
|
24982
|
-
if (buf[
|
|
24983
|
-
res += this.iconv.decode(buf.slice(lastI,
|
|
24984
|
-
lastI =
|
|
24853
|
+
if (buf[i] == plusChar) {
|
|
24854
|
+
res += this.iconv.decode(buf.slice(lastI, i), "ascii");
|
|
24855
|
+
lastI = i + 1;
|
|
24985
24856
|
inBase64 = true;
|
|
24986
24857
|
}
|
|
24987
24858
|
} else {
|
|
24988
|
-
if (!base64Chars[buf[
|
|
24989
|
-
if (
|
|
24859
|
+
if (!base64Chars[buf[i]]) {
|
|
24860
|
+
if (i == lastI && buf[i] == minusChar) {
|
|
24990
24861
|
res += "+";
|
|
24991
24862
|
} else {
|
|
24992
|
-
var b64str = base64Accum + this.iconv.decode(buf.slice(lastI,
|
|
24863
|
+
var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), "ascii");
|
|
24993
24864
|
res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be");
|
|
24994
24865
|
}
|
|
24995
|
-
if (buf[
|
|
24996
|
-
|
|
24866
|
+
if (buf[i] != minusChar) {
|
|
24867
|
+
i--;
|
|
24997
24868
|
}
|
|
24998
|
-
lastI =
|
|
24869
|
+
lastI = i + 1;
|
|
24999
24870
|
inBase64 = false;
|
|
25000
24871
|
base64Accum = "";
|
|
25001
24872
|
}
|
|
@@ -25042,8 +24913,8 @@ var require_utf7 = __commonJS(function(exports) {
|
|
|
25042
24913
|
var base64AccumIdx = this.base64AccumIdx;
|
|
25043
24914
|
var buf = Buffer2.alloc(str.length * 5 + 10);
|
|
25044
24915
|
var bufIdx = 0;
|
|
25045
|
-
for (var
|
|
25046
|
-
var uChar = str.charCodeAt(
|
|
24916
|
+
for (var i = 0;i < str.length; i++) {
|
|
24917
|
+
var uChar = str.charCodeAt(i);
|
|
25047
24918
|
if (uChar >= 32 && uChar <= 126) {
|
|
25048
24919
|
if (inBase64) {
|
|
25049
24920
|
if (base64AccumIdx > 0) {
|
|
@@ -25103,25 +24974,25 @@ var require_utf7 = __commonJS(function(exports) {
|
|
|
25103
24974
|
var lastI = 0;
|
|
25104
24975
|
var inBase64 = this.inBase64;
|
|
25105
24976
|
var base64Accum = this.base64Accum;
|
|
25106
|
-
for (var
|
|
24977
|
+
for (var i = 0;i < buf.length; i++) {
|
|
25107
24978
|
if (!inBase64) {
|
|
25108
|
-
if (buf[
|
|
25109
|
-
res += this.iconv.decode(buf.slice(lastI,
|
|
25110
|
-
lastI =
|
|
24979
|
+
if (buf[i] == andChar) {
|
|
24980
|
+
res += this.iconv.decode(buf.slice(lastI, i), "ascii");
|
|
24981
|
+
lastI = i + 1;
|
|
25111
24982
|
inBase64 = true;
|
|
25112
24983
|
}
|
|
25113
24984
|
} else {
|
|
25114
|
-
if (!base64IMAPChars[buf[
|
|
25115
|
-
if (
|
|
24985
|
+
if (!base64IMAPChars[buf[i]]) {
|
|
24986
|
+
if (i == lastI && buf[i] == minusChar) {
|
|
25116
24987
|
res += "&";
|
|
25117
24988
|
} else {
|
|
25118
|
-
var b64str = base64Accum + this.iconv.decode(buf.slice(lastI,
|
|
24989
|
+
var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), "ascii").replace(/,/g, "/");
|
|
25119
24990
|
res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be");
|
|
25120
24991
|
}
|
|
25121
|
-
if (buf[
|
|
25122
|
-
|
|
24992
|
+
if (buf[i] != minusChar) {
|
|
24993
|
+
i--;
|
|
25123
24994
|
}
|
|
25124
|
-
lastI =
|
|
24995
|
+
lastI = i + 1;
|
|
25125
24996
|
inBase64 = false;
|
|
25126
24997
|
base64Accum = "";
|
|
25127
24998
|
}
|
|
@@ -25839,8 +25710,8 @@ var require_dbcs_codec = __commonJS(function(exports) {
|
|
|
25839
25710
|
this.decodeTables = [];
|
|
25840
25711
|
this.decodeTables[0] = UNASSIGNED_NODE.slice(0);
|
|
25841
25712
|
this.decodeTableSeq = [];
|
|
25842
|
-
for (var
|
|
25843
|
-
this._addDecodeChunk(mappingTable[
|
|
25713
|
+
for (var i = 0;i < mappingTable.length; i++) {
|
|
25714
|
+
this._addDecodeChunk(mappingTable[i]);
|
|
25844
25715
|
}
|
|
25845
25716
|
if (typeof codecOptions.gb18030 === "function") {
|
|
25846
25717
|
this.gb18030 = codecOptions.gb18030();
|
|
@@ -25849,8 +25720,8 @@ var require_dbcs_codec = __commonJS(function(exports) {
|
|
|
25849
25720
|
var commonFourthByteNodeIdx = this.decodeTables.length;
|
|
25850
25721
|
this.decodeTables.push(UNASSIGNED_NODE.slice(0));
|
|
25851
25722
|
var firstByteNode = this.decodeTables[0];
|
|
25852
|
-
for (var
|
|
25853
|
-
var secondByteNode = this.decodeTables[NODE_START - firstByteNode[
|
|
25723
|
+
for (var i = 129;i <= 254; i++) {
|
|
25724
|
+
var secondByteNode = this.decodeTables[NODE_START - firstByteNode[i]];
|
|
25854
25725
|
for (var j = 48;j <= 57; j++) {
|
|
25855
25726
|
if (secondByteNode[j] === UNASSIGNED) {
|
|
25856
25727
|
secondByteNode[j] = NODE_START - commonThirdByteNodeIdx;
|
|
@@ -25881,8 +25752,8 @@ var require_dbcs_codec = __commonJS(function(exports) {
|
|
|
25881
25752
|
this.encodeTableSeq = [];
|
|
25882
25753
|
var skipEncodeChars = {};
|
|
25883
25754
|
if (codecOptions.encodeSkipVals) {
|
|
25884
|
-
for (var
|
|
25885
|
-
var val = codecOptions.encodeSkipVals[
|
|
25755
|
+
for (var i = 0;i < codecOptions.encodeSkipVals.length; i++) {
|
|
25756
|
+
var val = codecOptions.encodeSkipVals[i];
|
|
25886
25757
|
if (typeof val === "number") {
|
|
25887
25758
|
skipEncodeChars[val] = true;
|
|
25888
25759
|
} else {
|
|
@@ -25917,10 +25788,10 @@ var require_dbcs_codec = __commonJS(function(exports) {
|
|
|
25917
25788
|
bytes.push(0);
|
|
25918
25789
|
}
|
|
25919
25790
|
var node = this.decodeTables[0];
|
|
25920
|
-
for (var
|
|
25921
|
-
var val = node[bytes[
|
|
25791
|
+
for (var i = bytes.length - 1;i > 0; i--) {
|
|
25792
|
+
var val = node[bytes[i]];
|
|
25922
25793
|
if (val == UNASSIGNED) {
|
|
25923
|
-
node[bytes[
|
|
25794
|
+
node[bytes[i]] = NODE_START - this.decodeTables.length;
|
|
25924
25795
|
this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
|
|
25925
25796
|
} else if (val <= NODE_START) {
|
|
25926
25797
|
node = this.decodeTables[NODE_START - val];
|
|
@@ -26019,9 +25890,9 @@ var require_dbcs_codec = __commonJS(function(exports) {
|
|
|
26019
25890
|
var node = this.decodeTables[nodeIdx];
|
|
26020
25891
|
var hasValues = false;
|
|
26021
25892
|
var subNodeEmpty = {};
|
|
26022
|
-
for (var
|
|
26023
|
-
var uCode = node[
|
|
26024
|
-
var mbCode = prefix +
|
|
25893
|
+
for (var i = 0;i < 256; i++) {
|
|
25894
|
+
var uCode = node[i];
|
|
25895
|
+
var mbCode = prefix + i;
|
|
26025
25896
|
if (skipEncodeChars[mbCode]) {
|
|
26026
25897
|
continue;
|
|
26027
25898
|
}
|
|
@@ -26058,13 +25929,13 @@ var require_dbcs_codec = __commonJS(function(exports) {
|
|
|
26058
25929
|
var leadSurrogate = this.leadSurrogate;
|
|
26059
25930
|
var seqObj = this.seqObj;
|
|
26060
25931
|
var nextChar = -1;
|
|
26061
|
-
var
|
|
25932
|
+
var i = 0;
|
|
26062
25933
|
var j = 0;
|
|
26063
25934
|
while (true) {
|
|
26064
25935
|
if (nextChar === -1) {
|
|
26065
|
-
if (
|
|
25936
|
+
if (i == str.length)
|
|
26066
25937
|
break;
|
|
26067
|
-
var uCode = str.charCodeAt(
|
|
25938
|
+
var uCode = str.charCodeAt(i++);
|
|
26068
25939
|
} else {
|
|
26069
25940
|
var uCode = nextChar;
|
|
26070
25941
|
nextChar = -1;
|
|
@@ -26194,17 +26065,17 @@ var require_dbcs_codec = __commonJS(function(exports) {
|
|
|
26194
26065
|
var prevOffset = this.prevBytes.length;
|
|
26195
26066
|
var seqStart = -this.prevBytes.length;
|
|
26196
26067
|
var uCode;
|
|
26197
|
-
for (var
|
|
26198
|
-
var curByte =
|
|
26068
|
+
for (var i = 0, j = 0;i < buf.length; i++) {
|
|
26069
|
+
var curByte = i >= 0 ? buf[i] : prevBytes[i + prevOffset];
|
|
26199
26070
|
var uCode = this.decodeTables[nodeIdx][curByte];
|
|
26200
26071
|
if (uCode >= 0) {} else if (uCode === UNASSIGNED) {
|
|
26201
26072
|
uCode = this.defaultCharUnicode.charCodeAt(0);
|
|
26202
|
-
|
|
26073
|
+
i = seqStart;
|
|
26203
26074
|
} else if (uCode === GB18030_CODE) {
|
|
26204
|
-
if (
|
|
26205
|
-
var ptr = (buf[
|
|
26075
|
+
if (i >= 3) {
|
|
26076
|
+
var ptr = (buf[i - 3] - 129) * 12600 + (buf[i - 2] - 48) * 1260 + (buf[i - 1] - 129) * 10 + (curByte - 48);
|
|
26206
26077
|
} else {
|
|
26207
|
-
var ptr = (prevBytes[
|
|
26078
|
+
var ptr = (prevBytes[i - 3 + prevOffset] - 129) * 12600 + ((i - 2 >= 0 ? buf[i - 2] : prevBytes[i - 2 + prevOffset]) - 48) * 1260 + ((i - 1 >= 0 ? buf[i - 1] : prevBytes[i - 1 + prevOffset]) - 129) * 10 + (curByte - 48);
|
|
26208
26079
|
}
|
|
26209
26080
|
var idx = findIdx(this.gb18030.gbChars, ptr);
|
|
26210
26081
|
uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx];
|
|
@@ -26232,7 +26103,7 @@ var require_dbcs_codec = __commonJS(function(exports) {
|
|
|
26232
26103
|
newBuf[j++] = uCode & 255;
|
|
26233
26104
|
newBuf[j++] = uCode >> 8;
|
|
26234
26105
|
nodeIdx = 0;
|
|
26235
|
-
seqStart =
|
|
26106
|
+
seqStart = i + 1;
|
|
26236
26107
|
}
|
|
26237
26108
|
this.nodeIdx = nodeIdx;
|
|
26238
26109
|
this.prevBytes = seqStart >= 0 ? Array.prototype.slice.call(buf, seqStart) : prevBytes.slice(seqStart + prevOffset).concat(Array.prototype.slice.call(buf));
|
|
@@ -27892,11 +27763,11 @@ var require_lib2 = __commonJS(function(exports, module) {
|
|
|
27892
27763
|
}
|
|
27893
27764
|
return decoder;
|
|
27894
27765
|
};
|
|
27895
|
-
iconv.enableStreamingAPI = function enableStreamingAPI(
|
|
27766
|
+
iconv.enableStreamingAPI = function enableStreamingAPI(streamModule) {
|
|
27896
27767
|
if (iconv.supportsStreams) {
|
|
27897
27768
|
return;
|
|
27898
27769
|
}
|
|
27899
|
-
var streams = require_streams()(
|
|
27770
|
+
var streams = require_streams()(streamModule);
|
|
27900
27771
|
iconv.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
|
|
27901
27772
|
iconv.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
|
|
27902
27773
|
iconv.encodeStream = function encodeStream(encoding, options) {
|
|
@@ -28119,14 +27990,14 @@ var require_polyfills = __commonJS(function(exports, module) {
|
|
|
28119
27990
|
fs.fstatSync = statFixSync(fs.fstatSync);
|
|
28120
27991
|
fs.lstatSync = statFixSync(fs.lstatSync);
|
|
28121
27992
|
if (fs.chmod && !fs.lchmod) {
|
|
28122
|
-
fs.lchmod = function(
|
|
27993
|
+
fs.lchmod = function(path, mode, cb) {
|
|
28123
27994
|
if (cb)
|
|
28124
27995
|
process.nextTick(cb);
|
|
28125
27996
|
};
|
|
28126
27997
|
fs.lchmodSync = function() {};
|
|
28127
27998
|
}
|
|
28128
27999
|
if (fs.chown && !fs.lchown) {
|
|
28129
|
-
fs.lchown = function(
|
|
28000
|
+
fs.lchown = function(path, uid, gid, cb) {
|
|
28130
28001
|
if (cb)
|
|
28131
28002
|
process.nextTick(cb);
|
|
28132
28003
|
};
|
|
@@ -28134,15 +28005,15 @@ var require_polyfills = __commonJS(function(exports, module) {
|
|
|
28134
28005
|
}
|
|
28135
28006
|
if (platform === "win32") {
|
|
28136
28007
|
fs.rename = typeof fs.rename !== "function" ? fs.rename : function(fs$rename) {
|
|
28137
|
-
function rename(
|
|
28008
|
+
function rename(from, to, cb) {
|
|
28138
28009
|
var start = Date.now();
|
|
28139
28010
|
var backoff = 0;
|
|
28140
|
-
fs$rename(
|
|
28011
|
+
fs$rename(from, to, function CB(er) {
|
|
28141
28012
|
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 60000) {
|
|
28142
28013
|
setTimeout(function() {
|
|
28143
28014
|
fs.stat(to, function(stater, st) {
|
|
28144
28015
|
if (stater && stater.code === "ENOENT")
|
|
28145
|
-
fs$rename(
|
|
28016
|
+
fs$rename(from, to, CB);
|
|
28146
28017
|
else
|
|
28147
28018
|
cb(er);
|
|
28148
28019
|
});
|
|
@@ -28165,7 +28036,7 @@ var require_polyfills = __commonJS(function(exports, module) {
|
|
|
28165
28036
|
var callback;
|
|
28166
28037
|
if (callback_ && typeof callback_ === "function") {
|
|
28167
28038
|
var eagCounter = 0;
|
|
28168
|
-
callback = function(er,
|
|
28039
|
+
callback = function(er, _, __) {
|
|
28169
28040
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
28170
28041
|
eagCounter++;
|
|
28171
28042
|
return fs$read.call(fs, fd, buffer, offset, length, position, callback);
|
|
@@ -28195,82 +28066,82 @@ var require_polyfills = __commonJS(function(exports, module) {
|
|
|
28195
28066
|
}
|
|
28196
28067
|
};
|
|
28197
28068
|
}(fs.readSync);
|
|
28198
|
-
function patchLchmod(
|
|
28199
|
-
|
|
28200
|
-
|
|
28069
|
+
function patchLchmod(fs) {
|
|
28070
|
+
fs.lchmod = function(path, mode, callback) {
|
|
28071
|
+
fs.open(path, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) {
|
|
28201
28072
|
if (err) {
|
|
28202
28073
|
if (callback)
|
|
28203
28074
|
callback(err);
|
|
28204
28075
|
return;
|
|
28205
28076
|
}
|
|
28206
|
-
|
|
28207
|
-
|
|
28077
|
+
fs.fchmod(fd, mode, function(err) {
|
|
28078
|
+
fs.close(fd, function(err2) {
|
|
28208
28079
|
if (callback)
|
|
28209
|
-
callback(
|
|
28080
|
+
callback(err || err2);
|
|
28210
28081
|
});
|
|
28211
28082
|
});
|
|
28212
28083
|
});
|
|
28213
28084
|
};
|
|
28214
|
-
|
|
28215
|
-
var fd =
|
|
28085
|
+
fs.lchmodSync = function(path, mode) {
|
|
28086
|
+
var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
28216
28087
|
var threw = true;
|
|
28217
28088
|
var ret;
|
|
28218
28089
|
try {
|
|
28219
|
-
ret =
|
|
28090
|
+
ret = fs.fchmodSync(fd, mode);
|
|
28220
28091
|
threw = false;
|
|
28221
28092
|
} finally {
|
|
28222
28093
|
if (threw) {
|
|
28223
28094
|
try {
|
|
28224
|
-
|
|
28095
|
+
fs.closeSync(fd);
|
|
28225
28096
|
} catch (er) {}
|
|
28226
28097
|
} else {
|
|
28227
|
-
|
|
28098
|
+
fs.closeSync(fd);
|
|
28228
28099
|
}
|
|
28229
28100
|
}
|
|
28230
28101
|
return ret;
|
|
28231
28102
|
};
|
|
28232
28103
|
}
|
|
28233
|
-
function patchLutimes(
|
|
28234
|
-
if (constants.hasOwnProperty("O_SYMLINK") &&
|
|
28235
|
-
|
|
28236
|
-
|
|
28104
|
+
function patchLutimes(fs) {
|
|
28105
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs.futimes) {
|
|
28106
|
+
fs.lutimes = function(path, at, mt, cb) {
|
|
28107
|
+
fs.open(path, constants.O_SYMLINK, function(er, fd) {
|
|
28237
28108
|
if (er) {
|
|
28238
28109
|
if (cb)
|
|
28239
28110
|
cb(er);
|
|
28240
28111
|
return;
|
|
28241
28112
|
}
|
|
28242
|
-
|
|
28243
|
-
|
|
28113
|
+
fs.futimes(fd, at, mt, function(er) {
|
|
28114
|
+
fs.close(fd, function(er2) {
|
|
28244
28115
|
if (cb)
|
|
28245
|
-
cb(
|
|
28116
|
+
cb(er || er2);
|
|
28246
28117
|
});
|
|
28247
28118
|
});
|
|
28248
28119
|
});
|
|
28249
28120
|
};
|
|
28250
|
-
|
|
28251
|
-
var fd =
|
|
28121
|
+
fs.lutimesSync = function(path, at, mt) {
|
|
28122
|
+
var fd = fs.openSync(path, constants.O_SYMLINK);
|
|
28252
28123
|
var ret;
|
|
28253
28124
|
var threw = true;
|
|
28254
28125
|
try {
|
|
28255
|
-
ret =
|
|
28126
|
+
ret = fs.futimesSync(fd, at, mt);
|
|
28256
28127
|
threw = false;
|
|
28257
28128
|
} finally {
|
|
28258
28129
|
if (threw) {
|
|
28259
28130
|
try {
|
|
28260
|
-
|
|
28131
|
+
fs.closeSync(fd);
|
|
28261
28132
|
} catch (er) {}
|
|
28262
28133
|
} else {
|
|
28263
|
-
|
|
28134
|
+
fs.closeSync(fd);
|
|
28264
28135
|
}
|
|
28265
28136
|
}
|
|
28266
28137
|
return ret;
|
|
28267
28138
|
};
|
|
28268
|
-
} else if (
|
|
28269
|
-
|
|
28139
|
+
} else if (fs.futimes) {
|
|
28140
|
+
fs.lutimes = function(_a, _b, _c, cb) {
|
|
28270
28141
|
if (cb)
|
|
28271
28142
|
process.nextTick(cb);
|
|
28272
28143
|
};
|
|
28273
|
-
|
|
28144
|
+
fs.lutimesSync = function() {};
|
|
28274
28145
|
}
|
|
28275
28146
|
}
|
|
28276
28147
|
function chmodFix(orig) {
|
|
@@ -28380,12 +28251,12 @@ var require_legacy_streams = __commonJS(function(exports, module) {
|
|
|
28380
28251
|
ReadStream,
|
|
28381
28252
|
WriteStream
|
|
28382
28253
|
};
|
|
28383
|
-
function ReadStream(
|
|
28254
|
+
function ReadStream(path, options) {
|
|
28384
28255
|
if (!(this instanceof ReadStream))
|
|
28385
|
-
return new ReadStream(
|
|
28256
|
+
return new ReadStream(path, options);
|
|
28386
28257
|
Stream.call(this);
|
|
28387
28258
|
var self2 = this;
|
|
28388
|
-
this.path =
|
|
28259
|
+
this.path = path;
|
|
28389
28260
|
this.fd = null;
|
|
28390
28261
|
this.readable = true;
|
|
28391
28262
|
this.paused = false;
|
|
@@ -28431,11 +28302,11 @@ var require_legacy_streams = __commonJS(function(exports, module) {
|
|
|
28431
28302
|
self2._read();
|
|
28432
28303
|
});
|
|
28433
28304
|
}
|
|
28434
|
-
function WriteStream(
|
|
28305
|
+
function WriteStream(path, options) {
|
|
28435
28306
|
if (!(this instanceof WriteStream))
|
|
28436
|
-
return new WriteStream(
|
|
28307
|
+
return new WriteStream(path, options);
|
|
28437
28308
|
Stream.call(this);
|
|
28438
|
-
this.path =
|
|
28309
|
+
this.path = path;
|
|
28439
28310
|
this.fd = null;
|
|
28440
28311
|
this.writable = true;
|
|
28441
28312
|
this.flags = "w";
|
|
@@ -28505,10 +28376,10 @@ var require_graceful_fs = __commonJS(function(exports, module) {
|
|
|
28505
28376
|
previousSymbol = "___graceful-fs.previous";
|
|
28506
28377
|
}
|
|
28507
28378
|
function noop() {}
|
|
28508
|
-
function publishQueue(context,
|
|
28379
|
+
function publishQueue(context, queue) {
|
|
28509
28380
|
Object.defineProperty(context, gracefulQueue, {
|
|
28510
28381
|
get: function() {
|
|
28511
|
-
return
|
|
28382
|
+
return queue;
|
|
28512
28383
|
}
|
|
28513
28384
|
});
|
|
28514
28385
|
}
|
|
@@ -28566,101 +28437,101 @@ GFS4: `);
|
|
|
28566
28437
|
module.exports = patch(fs);
|
|
28567
28438
|
fs.__patched = true;
|
|
28568
28439
|
}
|
|
28569
|
-
function patch(
|
|
28570
|
-
polyfills(
|
|
28571
|
-
|
|
28572
|
-
|
|
28573
|
-
|
|
28574
|
-
var fs$readFile =
|
|
28575
|
-
|
|
28576
|
-
function readFile(
|
|
28440
|
+
function patch(fs) {
|
|
28441
|
+
polyfills(fs);
|
|
28442
|
+
fs.gracefulify = patch;
|
|
28443
|
+
fs.createReadStream = createReadStream;
|
|
28444
|
+
fs.createWriteStream = createWriteStream;
|
|
28445
|
+
var fs$readFile = fs.readFile;
|
|
28446
|
+
fs.readFile = readFile;
|
|
28447
|
+
function readFile(path, options, cb) {
|
|
28577
28448
|
if (typeof options === "function")
|
|
28578
28449
|
cb = options, options = null;
|
|
28579
|
-
return go$readFile(
|
|
28580
|
-
function go$readFile(
|
|
28581
|
-
return fs$readFile(
|
|
28450
|
+
return go$readFile(path, options, cb);
|
|
28451
|
+
function go$readFile(path, options, cb, startTime) {
|
|
28452
|
+
return fs$readFile(path, options, function(err) {
|
|
28582
28453
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
28583
|
-
enqueue([go$readFile, [
|
|
28454
|
+
enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()]);
|
|
28584
28455
|
else {
|
|
28585
|
-
if (typeof
|
|
28586
|
-
|
|
28456
|
+
if (typeof cb === "function")
|
|
28457
|
+
cb.apply(this, arguments);
|
|
28587
28458
|
}
|
|
28588
28459
|
});
|
|
28589
28460
|
}
|
|
28590
28461
|
}
|
|
28591
|
-
var fs$writeFile =
|
|
28592
|
-
|
|
28593
|
-
function writeFile(
|
|
28462
|
+
var fs$writeFile = fs.writeFile;
|
|
28463
|
+
fs.writeFile = writeFile;
|
|
28464
|
+
function writeFile(path, data, options, cb) {
|
|
28594
28465
|
if (typeof options === "function")
|
|
28595
28466
|
cb = options, options = null;
|
|
28596
|
-
return go$writeFile(
|
|
28597
|
-
function go$writeFile(
|
|
28598
|
-
return fs$writeFile(
|
|
28467
|
+
return go$writeFile(path, data, options, cb);
|
|
28468
|
+
function go$writeFile(path, data, options, cb, startTime) {
|
|
28469
|
+
return fs$writeFile(path, data, options, function(err) {
|
|
28599
28470
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
28600
|
-
enqueue([go$writeFile, [
|
|
28471
|
+
enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()]);
|
|
28601
28472
|
else {
|
|
28602
|
-
if (typeof
|
|
28603
|
-
|
|
28473
|
+
if (typeof cb === "function")
|
|
28474
|
+
cb.apply(this, arguments);
|
|
28604
28475
|
}
|
|
28605
28476
|
});
|
|
28606
28477
|
}
|
|
28607
28478
|
}
|
|
28608
|
-
var fs$appendFile =
|
|
28479
|
+
var fs$appendFile = fs.appendFile;
|
|
28609
28480
|
if (fs$appendFile)
|
|
28610
|
-
|
|
28611
|
-
function appendFile(
|
|
28481
|
+
fs.appendFile = appendFile;
|
|
28482
|
+
function appendFile(path, data, options, cb) {
|
|
28612
28483
|
if (typeof options === "function")
|
|
28613
28484
|
cb = options, options = null;
|
|
28614
|
-
return go$appendFile(
|
|
28615
|
-
function go$appendFile(
|
|
28616
|
-
return fs$appendFile(
|
|
28485
|
+
return go$appendFile(path, data, options, cb);
|
|
28486
|
+
function go$appendFile(path, data, options, cb, startTime) {
|
|
28487
|
+
return fs$appendFile(path, data, options, function(err) {
|
|
28617
28488
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
28618
|
-
enqueue([go$appendFile, [
|
|
28489
|
+
enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()]);
|
|
28619
28490
|
else {
|
|
28620
|
-
if (typeof
|
|
28621
|
-
|
|
28491
|
+
if (typeof cb === "function")
|
|
28492
|
+
cb.apply(this, arguments);
|
|
28622
28493
|
}
|
|
28623
28494
|
});
|
|
28624
28495
|
}
|
|
28625
28496
|
}
|
|
28626
|
-
var fs$copyFile =
|
|
28497
|
+
var fs$copyFile = fs.copyFile;
|
|
28627
28498
|
if (fs$copyFile)
|
|
28628
|
-
|
|
28499
|
+
fs.copyFile = copyFile;
|
|
28629
28500
|
function copyFile(src, dest, flags, cb) {
|
|
28630
28501
|
if (typeof flags === "function") {
|
|
28631
28502
|
cb = flags;
|
|
28632
28503
|
flags = 0;
|
|
28633
28504
|
}
|
|
28634
28505
|
return go$copyFile(src, dest, flags, cb);
|
|
28635
|
-
function go$copyFile(
|
|
28636
|
-
return fs$copyFile(
|
|
28506
|
+
function go$copyFile(src, dest, flags, cb, startTime) {
|
|
28507
|
+
return fs$copyFile(src, dest, flags, function(err) {
|
|
28637
28508
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
28638
|
-
enqueue([go$copyFile, [
|
|
28509
|
+
enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()]);
|
|
28639
28510
|
else {
|
|
28640
|
-
if (typeof
|
|
28641
|
-
|
|
28511
|
+
if (typeof cb === "function")
|
|
28512
|
+
cb.apply(this, arguments);
|
|
28642
28513
|
}
|
|
28643
28514
|
});
|
|
28644
28515
|
}
|
|
28645
28516
|
}
|
|
28646
|
-
var fs$readdir =
|
|
28647
|
-
|
|
28517
|
+
var fs$readdir = fs.readdir;
|
|
28518
|
+
fs.readdir = readdir;
|
|
28648
28519
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
28649
|
-
function readdir(
|
|
28520
|
+
function readdir(path, options, cb) {
|
|
28650
28521
|
if (typeof options === "function")
|
|
28651
28522
|
cb = options, options = null;
|
|
28652
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$
|
|
28653
|
-
return fs$readdir(
|
|
28654
|
-
} : function go$
|
|
28655
|
-
return fs$readdir(
|
|
28523
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir(path, options, cb, startTime) {
|
|
28524
|
+
return fs$readdir(path, fs$readdirCallback(path, options, cb, startTime));
|
|
28525
|
+
} : function go$readdir(path, options, cb, startTime) {
|
|
28526
|
+
return fs$readdir(path, options, fs$readdirCallback(path, options, cb, startTime));
|
|
28656
28527
|
};
|
|
28657
|
-
return go$readdir(
|
|
28658
|
-
function fs$readdirCallback(
|
|
28528
|
+
return go$readdir(path, options, cb);
|
|
28529
|
+
function fs$readdirCallback(path, options, cb, startTime) {
|
|
28659
28530
|
return function(err, files) {
|
|
28660
28531
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
28661
28532
|
enqueue([
|
|
28662
28533
|
go$readdir,
|
|
28663
|
-
[
|
|
28534
|
+
[path, options, cb],
|
|
28664
28535
|
err,
|
|
28665
28536
|
startTime || Date.now(),
|
|
28666
28537
|
Date.now()
|
|
@@ -28668,28 +28539,28 @@ GFS4: `);
|
|
|
28668
28539
|
else {
|
|
28669
28540
|
if (files && files.sort)
|
|
28670
28541
|
files.sort();
|
|
28671
|
-
if (typeof
|
|
28672
|
-
|
|
28542
|
+
if (typeof cb === "function")
|
|
28543
|
+
cb.call(this, err, files);
|
|
28673
28544
|
}
|
|
28674
28545
|
};
|
|
28675
28546
|
}
|
|
28676
28547
|
}
|
|
28677
28548
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
28678
|
-
var legStreams = legacy(
|
|
28549
|
+
var legStreams = legacy(fs);
|
|
28679
28550
|
ReadStream = legStreams.ReadStream;
|
|
28680
28551
|
WriteStream = legStreams.WriteStream;
|
|
28681
28552
|
}
|
|
28682
|
-
var fs$ReadStream =
|
|
28553
|
+
var fs$ReadStream = fs.ReadStream;
|
|
28683
28554
|
if (fs$ReadStream) {
|
|
28684
28555
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
28685
28556
|
ReadStream.prototype.open = ReadStream$open;
|
|
28686
28557
|
}
|
|
28687
|
-
var fs$WriteStream =
|
|
28558
|
+
var fs$WriteStream = fs.WriteStream;
|
|
28688
28559
|
if (fs$WriteStream) {
|
|
28689
28560
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
28690
28561
|
WriteStream.prototype.open = WriteStream$open;
|
|
28691
28562
|
}
|
|
28692
|
-
Object.defineProperty(
|
|
28563
|
+
Object.defineProperty(fs, "ReadStream", {
|
|
28693
28564
|
get: function() {
|
|
28694
28565
|
return ReadStream;
|
|
28695
28566
|
},
|
|
@@ -28699,7 +28570,7 @@ GFS4: `);
|
|
|
28699
28570
|
enumerable: true,
|
|
28700
28571
|
configurable: true
|
|
28701
28572
|
});
|
|
28702
|
-
Object.defineProperty(
|
|
28573
|
+
Object.defineProperty(fs, "WriteStream", {
|
|
28703
28574
|
get: function() {
|
|
28704
28575
|
return WriteStream;
|
|
28705
28576
|
},
|
|
@@ -28710,7 +28581,7 @@ GFS4: `);
|
|
|
28710
28581
|
configurable: true
|
|
28711
28582
|
});
|
|
28712
28583
|
var FileReadStream = ReadStream;
|
|
28713
|
-
Object.defineProperty(
|
|
28584
|
+
Object.defineProperty(fs, "FileReadStream", {
|
|
28714
28585
|
get: function() {
|
|
28715
28586
|
return FileReadStream;
|
|
28716
28587
|
},
|
|
@@ -28721,7 +28592,7 @@ GFS4: `);
|
|
|
28721
28592
|
configurable: true
|
|
28722
28593
|
});
|
|
28723
28594
|
var FileWriteStream = WriteStream;
|
|
28724
|
-
Object.defineProperty(
|
|
28595
|
+
Object.defineProperty(fs, "FileWriteStream", {
|
|
28725
28596
|
get: function() {
|
|
28726
28597
|
return FileWriteStream;
|
|
28727
28598
|
},
|
|
@@ -28731,7 +28602,7 @@ GFS4: `);
|
|
|
28731
28602
|
enumerable: true,
|
|
28732
28603
|
configurable: true
|
|
28733
28604
|
});
|
|
28734
|
-
function ReadStream(
|
|
28605
|
+
function ReadStream(path, options) {
|
|
28735
28606
|
if (this instanceof ReadStream)
|
|
28736
28607
|
return fs$ReadStream.apply(this, arguments), this;
|
|
28737
28608
|
else
|
|
@@ -28751,7 +28622,7 @@ GFS4: `);
|
|
|
28751
28622
|
}
|
|
28752
28623
|
});
|
|
28753
28624
|
}
|
|
28754
|
-
function WriteStream(
|
|
28625
|
+
function WriteStream(path, options) {
|
|
28755
28626
|
if (this instanceof WriteStream)
|
|
28756
28627
|
return fs$WriteStream.apply(this, arguments), this;
|
|
28757
28628
|
else
|
|
@@ -28769,30 +28640,30 @@ GFS4: `);
|
|
|
28769
28640
|
}
|
|
28770
28641
|
});
|
|
28771
28642
|
}
|
|
28772
|
-
function createReadStream(
|
|
28773
|
-
return new
|
|
28643
|
+
function createReadStream(path, options) {
|
|
28644
|
+
return new fs.ReadStream(path, options);
|
|
28774
28645
|
}
|
|
28775
|
-
function createWriteStream(
|
|
28776
|
-
return new
|
|
28646
|
+
function createWriteStream(path, options) {
|
|
28647
|
+
return new fs.WriteStream(path, options);
|
|
28777
28648
|
}
|
|
28778
|
-
var fs$open =
|
|
28779
|
-
|
|
28780
|
-
function open(
|
|
28649
|
+
var fs$open = fs.open;
|
|
28650
|
+
fs.open = open;
|
|
28651
|
+
function open(path, flags, mode, cb) {
|
|
28781
28652
|
if (typeof mode === "function")
|
|
28782
28653
|
cb = mode, mode = null;
|
|
28783
|
-
return go$open(
|
|
28784
|
-
function go$open(
|
|
28785
|
-
return fs$open(
|
|
28654
|
+
return go$open(path, flags, mode, cb);
|
|
28655
|
+
function go$open(path, flags, mode, cb, startTime) {
|
|
28656
|
+
return fs$open(path, flags, mode, function(err, fd) {
|
|
28786
28657
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
28787
|
-
enqueue([go$open, [
|
|
28658
|
+
enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()]);
|
|
28788
28659
|
else {
|
|
28789
|
-
if (typeof
|
|
28790
|
-
|
|
28660
|
+
if (typeof cb === "function")
|
|
28661
|
+
cb.apply(this, arguments);
|
|
28791
28662
|
}
|
|
28792
28663
|
});
|
|
28793
28664
|
}
|
|
28794
28665
|
}
|
|
28795
|
-
return
|
|
28666
|
+
return fs;
|
|
28796
28667
|
}
|
|
28797
28668
|
function enqueue(elem) {
|
|
28798
28669
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
@@ -28909,10 +28780,10 @@ var require_fs = __commonJS(function(exports) {
|
|
|
28909
28780
|
return fs.read(fd, buffer, offset, length, position, callback);
|
|
28910
28781
|
}
|
|
28911
28782
|
return new Promise((resolve, reject) => {
|
|
28912
|
-
fs.read(fd, buffer, offset, length, position, (err, bytesRead,
|
|
28783
|
+
fs.read(fd, buffer, offset, length, position, (err, bytesRead, buffer) => {
|
|
28913
28784
|
if (err)
|
|
28914
28785
|
return reject(err);
|
|
28915
|
-
resolve({ bytesRead, buffer
|
|
28786
|
+
resolve({ bytesRead, buffer });
|
|
28916
28787
|
});
|
|
28917
28788
|
});
|
|
28918
28789
|
};
|
|
@@ -28921,10 +28792,10 @@ var require_fs = __commonJS(function(exports) {
|
|
|
28921
28792
|
return fs.write(fd, buffer, ...args);
|
|
28922
28793
|
}
|
|
28923
28794
|
return new Promise((resolve, reject) => {
|
|
28924
|
-
fs.write(fd, buffer, ...args, (err, bytesWritten,
|
|
28795
|
+
fs.write(fd, buffer, ...args, (err, bytesWritten, buffer) => {
|
|
28925
28796
|
if (err)
|
|
28926
28797
|
return reject(err);
|
|
28927
|
-
resolve({ bytesWritten, buffer
|
|
28798
|
+
resolve({ bytesWritten, buffer });
|
|
28928
28799
|
});
|
|
28929
28800
|
});
|
|
28930
28801
|
};
|
|
@@ -28933,10 +28804,10 @@ var require_fs = __commonJS(function(exports) {
|
|
|
28933
28804
|
return fs.readv(fd, buffers, ...args);
|
|
28934
28805
|
}
|
|
28935
28806
|
return new Promise((resolve, reject) => {
|
|
28936
|
-
fs.readv(fd, buffers, ...args, (err, bytesRead,
|
|
28807
|
+
fs.readv(fd, buffers, ...args, (err, bytesRead, buffers) => {
|
|
28937
28808
|
if (err)
|
|
28938
28809
|
return reject(err);
|
|
28939
|
-
resolve({ bytesRead, buffers
|
|
28810
|
+
resolve({ bytesRead, buffers });
|
|
28940
28811
|
});
|
|
28941
28812
|
});
|
|
28942
28813
|
};
|
|
@@ -28945,10 +28816,10 @@ var require_fs = __commonJS(function(exports) {
|
|
|
28945
28816
|
return fs.writev(fd, buffers, ...args);
|
|
28946
28817
|
}
|
|
28947
28818
|
return new Promise((resolve, reject) => {
|
|
28948
|
-
fs.writev(fd, buffers, ...args, (err, bytesWritten,
|
|
28819
|
+
fs.writev(fd, buffers, ...args, (err, bytesWritten, buffers) => {
|
|
28949
28820
|
if (err)
|
|
28950
28821
|
return reject(err);
|
|
28951
|
-
resolve({ bytesWritten, buffers
|
|
28822
|
+
resolve({ bytesWritten, buffers });
|
|
28952
28823
|
});
|
|
28953
28824
|
});
|
|
28954
28825
|
};
|
|
@@ -28961,10 +28832,10 @@ var require_fs = __commonJS(function(exports) {
|
|
|
28961
28832
|
|
|
28962
28833
|
// node_modules/fs-extra/lib/mkdirs/utils.js
|
|
28963
28834
|
var require_utils2 = __commonJS(function(exports, module) {
|
|
28964
|
-
var
|
|
28835
|
+
var path = __require("path");
|
|
28965
28836
|
exports.checkPath = function checkPath(pth) {
|
|
28966
28837
|
if (process.platform === "win32") {
|
|
28967
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
28838
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, ""));
|
|
28968
28839
|
if (pathHasInvalidWinCharacters) {
|
|
28969
28840
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
28970
28841
|
error.code = "EINVAL";
|
|
@@ -29019,8 +28890,8 @@ var require_mkdirs = __commonJS(function(exports, module) {
|
|
|
29019
28890
|
var require_path_exists = __commonJS(function(exports, module) {
|
|
29020
28891
|
var u = require_universalify().fromPromise;
|
|
29021
28892
|
var fs = require_fs();
|
|
29022
|
-
function pathExists(
|
|
29023
|
-
return fs.access(
|
|
28893
|
+
function pathExists(path) {
|
|
28894
|
+
return fs.access(path).then(() => true).catch(() => false);
|
|
29024
28895
|
}
|
|
29025
28896
|
module.exports = {
|
|
29026
28897
|
pathExists: u(pathExists),
|
|
@@ -29032,8 +28903,8 @@ var require_path_exists = __commonJS(function(exports, module) {
|
|
|
29032
28903
|
var require_utimes = __commonJS(function(exports, module) {
|
|
29033
28904
|
var fs = require_fs();
|
|
29034
28905
|
var u = require_universalify().fromPromise;
|
|
29035
|
-
async function utimesMillis(
|
|
29036
|
-
const fd = await fs.open(
|
|
28906
|
+
async function utimesMillis(path, atime, mtime) {
|
|
28907
|
+
const fd = await fs.open(path, "r+");
|
|
29037
28908
|
let closeErr = null;
|
|
29038
28909
|
try {
|
|
29039
28910
|
await fs.futimes(fd, atime, mtime);
|
|
@@ -29048,8 +28919,8 @@ var require_utimes = __commonJS(function(exports, module) {
|
|
|
29048
28919
|
throw closeErr;
|
|
29049
28920
|
}
|
|
29050
28921
|
}
|
|
29051
|
-
function utimesMillisSync(
|
|
29052
|
-
const fd = fs.openSync(
|
|
28922
|
+
function utimesMillisSync(path, atime, mtime) {
|
|
28923
|
+
const fd = fs.openSync(path, "r+");
|
|
29053
28924
|
fs.futimesSync(fd, atime, mtime);
|
|
29054
28925
|
return fs.closeSync(fd);
|
|
29055
28926
|
}
|
|
@@ -29062,7 +28933,7 @@ var require_utimes = __commonJS(function(exports, module) {
|
|
|
29062
28933
|
// node_modules/fs-extra/lib/util/stat.js
|
|
29063
28934
|
var require_stat = __commonJS(function(exports, module) {
|
|
29064
28935
|
var fs = require_fs();
|
|
29065
|
-
var
|
|
28936
|
+
var path = __require("path");
|
|
29066
28937
|
var u = require_universalify().fromPromise;
|
|
29067
28938
|
function getStats(src, dest, opts) {
|
|
29068
28939
|
const statFunc = opts.dereference ? (file) => fs.stat(file, { bigint: true }) : (file) => fs.lstat(file, { bigint: true });
|
|
@@ -29092,8 +28963,8 @@ var require_stat = __commonJS(function(exports, module) {
|
|
|
29092
28963
|
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
29093
28964
|
if (destStat) {
|
|
29094
28965
|
if (areIdentical(srcStat, destStat)) {
|
|
29095
|
-
const srcBaseName =
|
|
29096
|
-
const destBaseName =
|
|
28966
|
+
const srcBaseName = path.basename(src);
|
|
28967
|
+
const destBaseName = path.basename(dest);
|
|
29097
28968
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
29098
28969
|
return { srcStat, destStat, isChangingCase: true };
|
|
29099
28970
|
}
|
|
@@ -29115,8 +28986,8 @@ var require_stat = __commonJS(function(exports, module) {
|
|
|
29115
28986
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
29116
28987
|
if (destStat) {
|
|
29117
28988
|
if (areIdentical(srcStat, destStat)) {
|
|
29118
|
-
const srcBaseName =
|
|
29119
|
-
const destBaseName =
|
|
28989
|
+
const srcBaseName = path.basename(src);
|
|
28990
|
+
const destBaseName = path.basename(dest);
|
|
29120
28991
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
29121
28992
|
return { srcStat, destStat, isChangingCase: true };
|
|
29122
28993
|
}
|
|
@@ -29135,9 +29006,9 @@ var require_stat = __commonJS(function(exports, module) {
|
|
|
29135
29006
|
return { srcStat, destStat };
|
|
29136
29007
|
}
|
|
29137
29008
|
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
29138
|
-
const srcParent =
|
|
29139
|
-
const destParent =
|
|
29140
|
-
if (destParent === srcParent || destParent ===
|
|
29009
|
+
const srcParent = path.resolve(path.dirname(src));
|
|
29010
|
+
const destParent = path.resolve(path.dirname(dest));
|
|
29011
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root)
|
|
29141
29012
|
return;
|
|
29142
29013
|
let destStat;
|
|
29143
29014
|
try {
|
|
@@ -29153,9 +29024,9 @@ var require_stat = __commonJS(function(exports, module) {
|
|
|
29153
29024
|
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
29154
29025
|
}
|
|
29155
29026
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
29156
|
-
const srcParent =
|
|
29157
|
-
const destParent =
|
|
29158
|
-
if (destParent === srcParent || destParent ===
|
|
29027
|
+
const srcParent = path.resolve(path.dirname(src));
|
|
29028
|
+
const destParent = path.resolve(path.dirname(dest));
|
|
29029
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root)
|
|
29159
29030
|
return;
|
|
29160
29031
|
let destStat;
|
|
29161
29032
|
try {
|
|
@@ -29174,8 +29045,8 @@ var require_stat = __commonJS(function(exports, module) {
|
|
|
29174
29045
|
return destStat.ino !== undefined && destStat.dev !== undefined && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
29175
29046
|
}
|
|
29176
29047
|
function isSrcSubdir(src, dest) {
|
|
29177
|
-
const srcArr =
|
|
29178
|
-
const destArr =
|
|
29048
|
+
const srcArr = path.resolve(src).split(path.sep).filter((i) => i);
|
|
29049
|
+
const destArr = path.resolve(dest).split(path.sep).filter((i) => i);
|
|
29179
29050
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
29180
29051
|
}
|
|
29181
29052
|
function errMsg(src, dest, funcName) {
|
|
@@ -29194,7 +29065,7 @@ var require_stat = __commonJS(function(exports, module) {
|
|
|
29194
29065
|
// node_modules/fs-extra/lib/copy/copy.js
|
|
29195
29066
|
var require_copy = __commonJS(function(exports, module) {
|
|
29196
29067
|
var fs = require_fs();
|
|
29197
|
-
var
|
|
29068
|
+
var path = __require("path");
|
|
29198
29069
|
var { mkdirs } = require_mkdirs();
|
|
29199
29070
|
var { pathExists } = require_path_exists();
|
|
29200
29071
|
var { utimesMillis } = require_utimes();
|
|
@@ -29215,7 +29086,7 @@ var require_copy = __commonJS(function(exports, module) {
|
|
|
29215
29086
|
const include = await runFilter(src, dest, opts);
|
|
29216
29087
|
if (!include)
|
|
29217
29088
|
return;
|
|
29218
|
-
const destParent =
|
|
29089
|
+
const destParent = path.dirname(dest);
|
|
29219
29090
|
const dirExists = await pathExists(destParent);
|
|
29220
29091
|
if (!dirExists) {
|
|
29221
29092
|
await mkdirs(destParent);
|
|
@@ -29276,12 +29147,12 @@ var require_copy = __commonJS(function(exports, module) {
|
|
|
29276
29147
|
}
|
|
29277
29148
|
const promises = [];
|
|
29278
29149
|
for await (const item of await fs.opendir(src)) {
|
|
29279
|
-
const srcItem =
|
|
29280
|
-
const destItem =
|
|
29150
|
+
const srcItem = path.join(src, item.name);
|
|
29151
|
+
const destItem = path.join(dest, item.name);
|
|
29281
29152
|
promises.push(runFilter(srcItem, destItem, opts).then((include) => {
|
|
29282
29153
|
if (include) {
|
|
29283
|
-
return stat.checkPaths(srcItem, destItem, "copy", opts).then(({ destStat
|
|
29284
|
-
return getStatsAndPerformCopy(
|
|
29154
|
+
return stat.checkPaths(srcItem, destItem, "copy", opts).then(({ destStat }) => {
|
|
29155
|
+
return getStatsAndPerformCopy(destStat, srcItem, destItem, opts);
|
|
29285
29156
|
});
|
|
29286
29157
|
}
|
|
29287
29158
|
}));
|
|
@@ -29294,7 +29165,7 @@ var require_copy = __commonJS(function(exports, module) {
|
|
|
29294
29165
|
async function onLink(destStat, src, dest, opts) {
|
|
29295
29166
|
let resolvedSrc = await fs.readlink(src);
|
|
29296
29167
|
if (opts.dereference) {
|
|
29297
|
-
resolvedSrc =
|
|
29168
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
|
|
29298
29169
|
}
|
|
29299
29170
|
if (!destStat) {
|
|
29300
29171
|
return fs.symlink(resolvedSrc, dest);
|
|
@@ -29308,7 +29179,7 @@ var require_copy = __commonJS(function(exports, module) {
|
|
|
29308
29179
|
throw e;
|
|
29309
29180
|
}
|
|
29310
29181
|
if (opts.dereference) {
|
|
29311
|
-
resolvedDest =
|
|
29182
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest);
|
|
29312
29183
|
}
|
|
29313
29184
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
29314
29185
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -29325,7 +29196,7 @@ var require_copy = __commonJS(function(exports, module) {
|
|
|
29325
29196
|
// node_modules/fs-extra/lib/copy/copy-sync.js
|
|
29326
29197
|
var require_copy_sync = __commonJS(function(exports, module) {
|
|
29327
29198
|
var fs = require_graceful_fs();
|
|
29328
|
-
var
|
|
29199
|
+
var path = __require("path");
|
|
29329
29200
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
29330
29201
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
29331
29202
|
var stat = require_stat();
|
|
@@ -29345,14 +29216,14 @@ var require_copy_sync = __commonJS(function(exports, module) {
|
|
|
29345
29216
|
stat.checkParentPathsSync(src, srcStat, dest, "copy");
|
|
29346
29217
|
if (opts.filter && !opts.filter(src, dest))
|
|
29347
29218
|
return;
|
|
29348
|
-
const destParent =
|
|
29219
|
+
const destParent = path.dirname(dest);
|
|
29349
29220
|
if (!fs.existsSync(destParent))
|
|
29350
29221
|
mkdirsSync(destParent);
|
|
29351
29222
|
return getStats(destStat, src, dest, opts);
|
|
29352
29223
|
}
|
|
29353
29224
|
function getStats(destStat, src, dest, opts) {
|
|
29354
|
-
const
|
|
29355
|
-
const srcStat =
|
|
29225
|
+
const statSync2 = opts.dereference ? fs.statSync : fs.lstatSync;
|
|
29226
|
+
const srcStat = statSync2(src);
|
|
29356
29227
|
if (srcStat.isDirectory())
|
|
29357
29228
|
return onDir(srcStat, destStat, src, dest, opts);
|
|
29358
29229
|
else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice())
|
|
@@ -29424,8 +29295,8 @@ var require_copy_sync = __commonJS(function(exports, module) {
|
|
|
29424
29295
|
}
|
|
29425
29296
|
}
|
|
29426
29297
|
function copyDirItem(item, src, dest, opts) {
|
|
29427
|
-
const srcItem =
|
|
29428
|
-
const destItem =
|
|
29298
|
+
const srcItem = path.join(src, item);
|
|
29299
|
+
const destItem = path.join(dest, item);
|
|
29429
29300
|
if (opts.filter && !opts.filter(srcItem, destItem))
|
|
29430
29301
|
return;
|
|
29431
29302
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
@@ -29434,7 +29305,7 @@ var require_copy_sync = __commonJS(function(exports, module) {
|
|
|
29434
29305
|
function onLink(destStat, src, dest, opts) {
|
|
29435
29306
|
let resolvedSrc = fs.readlinkSync(src);
|
|
29436
29307
|
if (opts.dereference) {
|
|
29437
|
-
resolvedSrc =
|
|
29308
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
|
|
29438
29309
|
}
|
|
29439
29310
|
if (!destStat) {
|
|
29440
29311
|
return fs.symlinkSync(resolvedSrc, dest);
|
|
@@ -29448,7 +29319,7 @@ var require_copy_sync = __commonJS(function(exports, module) {
|
|
|
29448
29319
|
throw err;
|
|
29449
29320
|
}
|
|
29450
29321
|
if (opts.dereference) {
|
|
29451
|
-
resolvedDest =
|
|
29322
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest);
|
|
29452
29323
|
}
|
|
29453
29324
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
29454
29325
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -29479,11 +29350,11 @@ var require_copy2 = __commonJS(function(exports, module) {
|
|
|
29479
29350
|
var require_remove = __commonJS(function(exports, module) {
|
|
29480
29351
|
var fs = require_graceful_fs();
|
|
29481
29352
|
var u = require_universalify().fromCallback;
|
|
29482
|
-
function remove(
|
|
29483
|
-
fs.rm(
|
|
29353
|
+
function remove(path, callback) {
|
|
29354
|
+
fs.rm(path, { recursive: true, force: true }, callback);
|
|
29484
29355
|
}
|
|
29485
|
-
function removeSync(
|
|
29486
|
-
fs.rmSync(
|
|
29356
|
+
function removeSync(path) {
|
|
29357
|
+
fs.rmSync(path, { recursive: true, force: true });
|
|
29487
29358
|
}
|
|
29488
29359
|
module.exports = {
|
|
29489
29360
|
remove: u(remove),
|
|
@@ -29495,17 +29366,17 @@ var require_remove = __commonJS(function(exports, module) {
|
|
|
29495
29366
|
var require_empty2 = __commonJS(function(exports, module) {
|
|
29496
29367
|
var u = require_universalify().fromPromise;
|
|
29497
29368
|
var fs = require_fs();
|
|
29498
|
-
var
|
|
29369
|
+
var path = __require("path");
|
|
29499
29370
|
var mkdir = require_mkdirs();
|
|
29500
29371
|
var remove = require_remove();
|
|
29501
|
-
var emptyDir = u(async function
|
|
29372
|
+
var emptyDir = u(async function emptyDir(dir) {
|
|
29502
29373
|
let items;
|
|
29503
29374
|
try {
|
|
29504
29375
|
items = await fs.readdir(dir);
|
|
29505
29376
|
} catch {
|
|
29506
29377
|
return mkdir.mkdirs(dir);
|
|
29507
29378
|
}
|
|
29508
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
29379
|
+
return Promise.all(items.map((item) => remove.remove(path.join(dir, item))));
|
|
29509
29380
|
});
|
|
29510
29381
|
function emptyDirSync(dir) {
|
|
29511
29382
|
let items;
|
|
@@ -29515,7 +29386,7 @@ var require_empty2 = __commonJS(function(exports, module) {
|
|
|
29515
29386
|
return mkdir.mkdirsSync(dir);
|
|
29516
29387
|
}
|
|
29517
29388
|
items.forEach((item) => {
|
|
29518
|
-
item =
|
|
29389
|
+
item = path.join(dir, item);
|
|
29519
29390
|
remove.removeSync(item);
|
|
29520
29391
|
});
|
|
29521
29392
|
}
|
|
@@ -29530,7 +29401,7 @@ var require_empty2 = __commonJS(function(exports, module) {
|
|
|
29530
29401
|
// node_modules/fs-extra/lib/ensure/file.js
|
|
29531
29402
|
var require_file = __commonJS(function(exports, module) {
|
|
29532
29403
|
var u = require_universalify().fromPromise;
|
|
29533
|
-
var
|
|
29404
|
+
var path = __require("path");
|
|
29534
29405
|
var fs = require_fs();
|
|
29535
29406
|
var mkdir = require_mkdirs();
|
|
29536
29407
|
async function createFile(file) {
|
|
@@ -29540,7 +29411,7 @@ var require_file = __commonJS(function(exports, module) {
|
|
|
29540
29411
|
} catch {}
|
|
29541
29412
|
if (stats && stats.isFile())
|
|
29542
29413
|
return;
|
|
29543
|
-
const dir =
|
|
29414
|
+
const dir = path.dirname(file);
|
|
29544
29415
|
let dirStats = null;
|
|
29545
29416
|
try {
|
|
29546
29417
|
dirStats = await fs.stat(dir);
|
|
@@ -29566,7 +29437,7 @@ var require_file = __commonJS(function(exports, module) {
|
|
|
29566
29437
|
} catch {}
|
|
29567
29438
|
if (stats && stats.isFile())
|
|
29568
29439
|
return;
|
|
29569
|
-
const dir =
|
|
29440
|
+
const dir = path.dirname(file);
|
|
29570
29441
|
try {
|
|
29571
29442
|
if (!fs.statSync(dir).isDirectory()) {
|
|
29572
29443
|
fs.readdirSync(dir);
|
|
@@ -29588,7 +29459,7 @@ var require_file = __commonJS(function(exports, module) {
|
|
|
29588
29459
|
// node_modules/fs-extra/lib/ensure/link.js
|
|
29589
29460
|
var require_link = __commonJS(function(exports, module) {
|
|
29590
29461
|
var u = require_universalify().fromPromise;
|
|
29591
|
-
var
|
|
29462
|
+
var path = __require("path");
|
|
29592
29463
|
var fs = require_fs();
|
|
29593
29464
|
var mkdir = require_mkdirs();
|
|
29594
29465
|
var { pathExists } = require_path_exists();
|
|
@@ -29607,7 +29478,7 @@ var require_link = __commonJS(function(exports, module) {
|
|
|
29607
29478
|
}
|
|
29608
29479
|
if (dstStat && areIdentical(srcStat, dstStat))
|
|
29609
29480
|
return;
|
|
29610
|
-
const dir =
|
|
29481
|
+
const dir = path.dirname(dstpath);
|
|
29611
29482
|
const dirExists = await pathExists(dir);
|
|
29612
29483
|
if (!dirExists) {
|
|
29613
29484
|
await mkdir.mkdirs(dir);
|
|
@@ -29627,7 +29498,7 @@ var require_link = __commonJS(function(exports, module) {
|
|
|
29627
29498
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
29628
29499
|
throw err;
|
|
29629
29500
|
}
|
|
29630
|
-
const dir =
|
|
29501
|
+
const dir = path.dirname(dstpath);
|
|
29631
29502
|
const dirExists = fs.existsSync(dir);
|
|
29632
29503
|
if (dirExists)
|
|
29633
29504
|
return fs.linkSync(srcpath, dstpath);
|
|
@@ -29642,12 +29513,12 @@ var require_link = __commonJS(function(exports, module) {
|
|
|
29642
29513
|
|
|
29643
29514
|
// node_modules/fs-extra/lib/ensure/symlink-paths.js
|
|
29644
29515
|
var require_symlink_paths = __commonJS(function(exports, module) {
|
|
29645
|
-
var
|
|
29516
|
+
var path = __require("path");
|
|
29646
29517
|
var fs = require_fs();
|
|
29647
29518
|
var { pathExists } = require_path_exists();
|
|
29648
29519
|
var u = require_universalify().fromPromise;
|
|
29649
29520
|
async function symlinkPaths(srcpath, dstpath) {
|
|
29650
|
-
if (
|
|
29521
|
+
if (path.isAbsolute(srcpath)) {
|
|
29651
29522
|
try {
|
|
29652
29523
|
await fs.lstat(srcpath);
|
|
29653
29524
|
} catch (err) {
|
|
@@ -29659,8 +29530,8 @@ var require_symlink_paths = __commonJS(function(exports, module) {
|
|
|
29659
29530
|
toDst: srcpath
|
|
29660
29531
|
};
|
|
29661
29532
|
}
|
|
29662
|
-
const dstdir =
|
|
29663
|
-
const relativeToDst =
|
|
29533
|
+
const dstdir = path.dirname(dstpath);
|
|
29534
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
29664
29535
|
const exists = await pathExists(relativeToDst);
|
|
29665
29536
|
if (exists) {
|
|
29666
29537
|
return {
|
|
@@ -29676,21 +29547,21 @@ var require_symlink_paths = __commonJS(function(exports, module) {
|
|
|
29676
29547
|
}
|
|
29677
29548
|
return {
|
|
29678
29549
|
toCwd: srcpath,
|
|
29679
|
-
toDst:
|
|
29550
|
+
toDst: path.relative(dstdir, srcpath)
|
|
29680
29551
|
};
|
|
29681
29552
|
}
|
|
29682
29553
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
29683
|
-
if (
|
|
29684
|
-
const
|
|
29685
|
-
if (!
|
|
29554
|
+
if (path.isAbsolute(srcpath)) {
|
|
29555
|
+
const exists = fs.existsSync(srcpath);
|
|
29556
|
+
if (!exists)
|
|
29686
29557
|
throw new Error("absolute srcpath does not exist");
|
|
29687
29558
|
return {
|
|
29688
29559
|
toCwd: srcpath,
|
|
29689
29560
|
toDst: srcpath
|
|
29690
29561
|
};
|
|
29691
29562
|
}
|
|
29692
|
-
const dstdir =
|
|
29693
|
-
const relativeToDst =
|
|
29563
|
+
const dstdir = path.dirname(dstpath);
|
|
29564
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
29694
29565
|
const exists = fs.existsSync(relativeToDst);
|
|
29695
29566
|
if (exists) {
|
|
29696
29567
|
return {
|
|
@@ -29703,7 +29574,7 @@ var require_symlink_paths = __commonJS(function(exports, module) {
|
|
|
29703
29574
|
throw new Error("relative srcpath does not exist");
|
|
29704
29575
|
return {
|
|
29705
29576
|
toCwd: srcpath,
|
|
29706
|
-
toDst:
|
|
29577
|
+
toDst: path.relative(dstdir, srcpath)
|
|
29707
29578
|
};
|
|
29708
29579
|
}
|
|
29709
29580
|
module.exports = {
|
|
@@ -29747,7 +29618,7 @@ var require_symlink_type = __commonJS(function(exports, module) {
|
|
|
29747
29618
|
// node_modules/fs-extra/lib/ensure/symlink.js
|
|
29748
29619
|
var require_symlink = __commonJS(function(exports, module) {
|
|
29749
29620
|
var u = require_universalify().fromPromise;
|
|
29750
|
-
var
|
|
29621
|
+
var path = __require("path");
|
|
29751
29622
|
var fs = require_fs();
|
|
29752
29623
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
29753
29624
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
@@ -29770,7 +29641,7 @@ var require_symlink = __commonJS(function(exports, module) {
|
|
|
29770
29641
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
29771
29642
|
srcpath = relative.toDst;
|
|
29772
29643
|
const toType = await symlinkType(relative.toCwd, type);
|
|
29773
|
-
const dir =
|
|
29644
|
+
const dir = path.dirname(dstpath);
|
|
29774
29645
|
if (!await pathExists(dir)) {
|
|
29775
29646
|
await mkdirs(dir);
|
|
29776
29647
|
}
|
|
@@ -29790,7 +29661,7 @@ var require_symlink = __commonJS(function(exports, module) {
|
|
|
29790
29661
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
29791
29662
|
srcpath = relative.toDst;
|
|
29792
29663
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
29793
|
-
const dir =
|
|
29664
|
+
const dir = path.dirname(dstpath);
|
|
29794
29665
|
const exists = fs.existsSync(dir);
|
|
29795
29666
|
if (exists)
|
|
29796
29667
|
return fs.symlinkSync(srcpath, dstpath, type);
|
|
@@ -29845,7 +29716,7 @@ var require_jsonfile = __commonJS(function(exports, module) {
|
|
|
29845
29716
|
var _fs;
|
|
29846
29717
|
try {
|
|
29847
29718
|
_fs = require_graceful_fs();
|
|
29848
|
-
} catch (
|
|
29719
|
+
} catch (_) {
|
|
29849
29720
|
_fs = __require("fs");
|
|
29850
29721
|
}
|
|
29851
29722
|
var universalify = require_universalify();
|
|
@@ -29872,7 +29743,7 @@ var require_jsonfile = __commonJS(function(exports, module) {
|
|
|
29872
29743
|
return obj;
|
|
29873
29744
|
}
|
|
29874
29745
|
var readFile = universalify.fromPromise(_readFile);
|
|
29875
|
-
function
|
|
29746
|
+
function readFileSync(file, options = {}) {
|
|
29876
29747
|
if (typeof options === "string") {
|
|
29877
29748
|
options = { encoding: options };
|
|
29878
29749
|
}
|
|
@@ -29897,16 +29768,16 @@ var require_jsonfile = __commonJS(function(exports, module) {
|
|
|
29897
29768
|
await universalify.fromCallback(fs.writeFile)(file, str, options);
|
|
29898
29769
|
}
|
|
29899
29770
|
var writeFile = universalify.fromPromise(_writeFile);
|
|
29900
|
-
function
|
|
29771
|
+
function writeFileSync(file, obj, options = {}) {
|
|
29901
29772
|
const fs = options.fs || _fs;
|
|
29902
29773
|
const str = stringify(obj, options);
|
|
29903
29774
|
return fs.writeFileSync(file, str, options);
|
|
29904
29775
|
}
|
|
29905
29776
|
module.exports = {
|
|
29906
29777
|
readFile,
|
|
29907
|
-
readFileSync
|
|
29778
|
+
readFileSync,
|
|
29908
29779
|
writeFile,
|
|
29909
|
-
writeFileSync
|
|
29780
|
+
writeFileSync
|
|
29910
29781
|
};
|
|
29911
29782
|
});
|
|
29912
29783
|
|
|
@@ -29925,18 +29796,18 @@ var require_jsonfile2 = __commonJS(function(exports, module) {
|
|
|
29925
29796
|
var require_output_file = __commonJS(function(exports, module) {
|
|
29926
29797
|
var u = require_universalify().fromPromise;
|
|
29927
29798
|
var fs = require_fs();
|
|
29928
|
-
var
|
|
29799
|
+
var path = __require("path");
|
|
29929
29800
|
var mkdir = require_mkdirs();
|
|
29930
29801
|
var pathExists = require_path_exists().pathExists;
|
|
29931
29802
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
29932
|
-
const dir =
|
|
29803
|
+
const dir = path.dirname(file);
|
|
29933
29804
|
if (!await pathExists(dir)) {
|
|
29934
29805
|
await mkdir.mkdirs(dir);
|
|
29935
29806
|
}
|
|
29936
29807
|
return fs.writeFile(file, data, encoding);
|
|
29937
29808
|
}
|
|
29938
29809
|
function outputFileSync(file, ...args) {
|
|
29939
|
-
const dir =
|
|
29810
|
+
const dir = path.dirname(file);
|
|
29940
29811
|
if (!fs.existsSync(dir)) {
|
|
29941
29812
|
mkdir.mkdirsSync(dir);
|
|
29942
29813
|
}
|
|
@@ -29988,7 +29859,7 @@ var require_json = __commonJS(function(exports, module) {
|
|
|
29988
29859
|
// node_modules/fs-extra/lib/move/move.js
|
|
29989
29860
|
var require_move = __commonJS(function(exports, module) {
|
|
29990
29861
|
var fs = require_fs();
|
|
29991
|
-
var
|
|
29862
|
+
var path = __require("path");
|
|
29992
29863
|
var { copy } = require_copy2();
|
|
29993
29864
|
var { remove } = require_remove();
|
|
29994
29865
|
var { mkdirp } = require_mkdirs();
|
|
@@ -29998,8 +29869,8 @@ var require_move = __commonJS(function(exports, module) {
|
|
|
29998
29869
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
29999
29870
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
|
|
30000
29871
|
await stat.checkParentPaths(src, srcStat, dest, "move");
|
|
30001
|
-
const destParent =
|
|
30002
|
-
const parsedParentPath =
|
|
29872
|
+
const destParent = path.dirname(dest);
|
|
29873
|
+
const parsedParentPath = path.parse(destParent);
|
|
30003
29874
|
if (parsedParentPath.root !== destParent) {
|
|
30004
29875
|
await mkdirp(destParent);
|
|
30005
29876
|
}
|
|
@@ -30037,7 +29908,7 @@ var require_move = __commonJS(function(exports, module) {
|
|
|
30037
29908
|
// node_modules/fs-extra/lib/move/move-sync.js
|
|
30038
29909
|
var require_move_sync = __commonJS(function(exports, module) {
|
|
30039
29910
|
var fs = require_graceful_fs();
|
|
30040
|
-
var
|
|
29911
|
+
var path = __require("path");
|
|
30041
29912
|
var copySync = require_copy2().copySync;
|
|
30042
29913
|
var removeSync = require_remove().removeSync;
|
|
30043
29914
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -30048,12 +29919,12 @@ var require_move_sync = __commonJS(function(exports, module) {
|
|
|
30048
29919
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
30049
29920
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
30050
29921
|
if (!isParentRoot(dest))
|
|
30051
|
-
mkdirpSync(
|
|
29922
|
+
mkdirpSync(path.dirname(dest));
|
|
30052
29923
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
30053
29924
|
}
|
|
30054
29925
|
function isParentRoot(dest) {
|
|
30055
|
-
const parent =
|
|
30056
|
-
const parsedPath =
|
|
29926
|
+
const parent = path.dirname(dest);
|
|
29927
|
+
const parsedPath = path.parse(parent);
|
|
30057
29928
|
return parsedPath.root === parent;
|
|
30058
29929
|
}
|
|
30059
29930
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -30175,8 +30046,8 @@ var require_src = __commonJS(function(exports, module) {
|
|
|
30175
30046
|
var require_picocolors = __commonJS(function(exports, module) {
|
|
30176
30047
|
var p = process || {};
|
|
30177
30048
|
var argv = p.argv || [];
|
|
30178
|
-
var
|
|
30179
|
-
var isColorSupported = !(!!
|
|
30049
|
+
var env = p.env || {};
|
|
30050
|
+
var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
30180
30051
|
var formatter = (open, close, replace = open) => (input) => {
|
|
30181
30052
|
let string = "" + input, index = string.indexOf(close, open.length);
|
|
30182
30053
|
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
@@ -30241,24 +30112,188 @@ var require_picocolors = __commonJS(function(exports, module) {
|
|
|
30241
30112
|
module.exports.createColors = createColors;
|
|
30242
30113
|
});
|
|
30243
30114
|
|
|
30115
|
+
// node_modules/commander/index.js
|
|
30116
|
+
var exports_commander = {};
|
|
30117
|
+
__exportCjs(exports_commander, {
|
|
30118
|
+
program: () => $program,
|
|
30119
|
+
createCommand: () => $createCommand,
|
|
30120
|
+
createOption: () => $createOption,
|
|
30121
|
+
createArgument: () => $createArgument,
|
|
30122
|
+
Command: () => $Command,
|
|
30123
|
+
Option: () => $Option,
|
|
30124
|
+
Argument: () => $Argument,
|
|
30125
|
+
Help: () => $Help,
|
|
30126
|
+
CommanderError: () => $CommanderError,
|
|
30127
|
+
InvalidArgumentError: () => $InvalidArgumentError,
|
|
30128
|
+
InvalidOptionArgumentError: () => $InvalidOptionArgumentError
|
|
30129
|
+
}, {
|
|
30130
|
+
program: (value) => $program = value,
|
|
30131
|
+
createCommand: (value) => $createCommand = value,
|
|
30132
|
+
createOption: (value) => $createOption = value,
|
|
30133
|
+
createArgument: (value) => $createArgument = value,
|
|
30134
|
+
Command: (value) => $Command = value,
|
|
30135
|
+
Option: (value) => $Option = value,
|
|
30136
|
+
Argument: (value) => $Argument = value,
|
|
30137
|
+
Help: (value) => $Help = value,
|
|
30138
|
+
CommanderError: (value) => $CommanderError = value,
|
|
30139
|
+
InvalidArgumentError: (value) => $InvalidArgumentError = value,
|
|
30140
|
+
InvalidOptionArgumentError: (value) => $InvalidOptionArgumentError = value
|
|
30141
|
+
});
|
|
30142
|
+
var { Argument } = require_argument();
|
|
30143
|
+
var { Command } = require_command();
|
|
30144
|
+
var { CommanderError, InvalidArgumentError } = require_error();
|
|
30145
|
+
var { Help } = require_help();
|
|
30146
|
+
var { Option } = require_option();
|
|
30147
|
+
var $program = new Command;
|
|
30148
|
+
var $createCommand = (name) => new Command(name);
|
|
30149
|
+
var $createOption = (flags, description) => new Option(flags, description);
|
|
30150
|
+
var $createArgument = (name, description) => new Argument(name, description);
|
|
30151
|
+
var $Command = Command;
|
|
30152
|
+
var $Option = Option;
|
|
30153
|
+
var $Argument = Argument;
|
|
30154
|
+
var $Help = Help;
|
|
30155
|
+
var $CommanderError = CommanderError;
|
|
30156
|
+
var $InvalidArgumentError = InvalidArgumentError;
|
|
30157
|
+
var $InvalidOptionArgumentError = InvalidArgumentError;
|
|
30158
|
+
|
|
30244
30159
|
// node_modules/commander/esm.mjs
|
|
30245
|
-
var import__ = __toESM(require_commander(), 1);
|
|
30246
30160
|
var {
|
|
30247
30161
|
program,
|
|
30248
30162
|
createCommand,
|
|
30249
30163
|
createArgument,
|
|
30250
30164
|
createOption,
|
|
30251
|
-
CommanderError,
|
|
30252
|
-
InvalidArgumentError,
|
|
30165
|
+
CommanderError: CommanderError2,
|
|
30166
|
+
InvalidArgumentError: InvalidArgumentError2,
|
|
30253
30167
|
InvalidOptionArgumentError,
|
|
30254
|
-
Command,
|
|
30255
|
-
Argument,
|
|
30256
|
-
Option,
|
|
30257
|
-
Help
|
|
30258
|
-
} =
|
|
30168
|
+
Command: Command2,
|
|
30169
|
+
Argument: Argument2,
|
|
30170
|
+
Option: Option2,
|
|
30171
|
+
Help: Help2
|
|
30172
|
+
} = exports_commander;
|
|
30173
|
+
|
|
30174
|
+
// node_modules/ansi-escapes/index.js
|
|
30175
|
+
var exports_ansi_escapes = {};
|
|
30176
|
+
__exportCjs(exports_ansi_escapes, {
|
|
30177
|
+
default: () => $default
|
|
30178
|
+
}, {
|
|
30179
|
+
default: (value2) => $default = value2
|
|
30180
|
+
});
|
|
30181
|
+
var ansiEscapes = exports_ansi_escapes;
|
|
30182
|
+
var $default = ansiEscapes;
|
|
30183
|
+
var ESC = "\x1B[";
|
|
30184
|
+
var OSC = "\x1B]";
|
|
30185
|
+
var BEL = "\x07";
|
|
30186
|
+
var SEP = ";";
|
|
30187
|
+
var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
|
|
30188
|
+
ansiEscapes.cursorTo = (x, y) => {
|
|
30189
|
+
if (typeof x !== "number") {
|
|
30190
|
+
throw new TypeError("The `x` argument is required");
|
|
30191
|
+
}
|
|
30192
|
+
if (typeof y !== "number") {
|
|
30193
|
+
return ESC + (x + 1) + "G";
|
|
30194
|
+
}
|
|
30195
|
+
return ESC + (y + 1) + ";" + (x + 1) + "H";
|
|
30196
|
+
};
|
|
30197
|
+
ansiEscapes.cursorMove = (x, y) => {
|
|
30198
|
+
if (typeof x !== "number") {
|
|
30199
|
+
throw new TypeError("The `x` argument is required");
|
|
30200
|
+
}
|
|
30201
|
+
let ret = "";
|
|
30202
|
+
if (x < 0) {
|
|
30203
|
+
ret += ESC + -x + "D";
|
|
30204
|
+
} else if (x > 0) {
|
|
30205
|
+
ret += ESC + x + "C";
|
|
30206
|
+
}
|
|
30207
|
+
if (y < 0) {
|
|
30208
|
+
ret += ESC + -y + "A";
|
|
30209
|
+
} else if (y > 0) {
|
|
30210
|
+
ret += ESC + y + "B";
|
|
30211
|
+
}
|
|
30212
|
+
return ret;
|
|
30213
|
+
};
|
|
30214
|
+
ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
|
|
30215
|
+
ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
|
|
30216
|
+
ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
|
|
30217
|
+
ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
|
|
30218
|
+
ansiEscapes.cursorLeft = ESC + "G";
|
|
30219
|
+
ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
|
|
30220
|
+
ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
|
|
30221
|
+
ansiEscapes.cursorGetPosition = ESC + "6n";
|
|
30222
|
+
ansiEscapes.cursorNextLine = ESC + "E";
|
|
30223
|
+
ansiEscapes.cursorPrevLine = ESC + "F";
|
|
30224
|
+
ansiEscapes.cursorHide = ESC + "?25l";
|
|
30225
|
+
ansiEscapes.cursorShow = ESC + "?25h";
|
|
30226
|
+
ansiEscapes.eraseLines = (count) => {
|
|
30227
|
+
let clear = "";
|
|
30228
|
+
for (let i = 0;i < count; i++) {
|
|
30229
|
+
clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
|
|
30230
|
+
}
|
|
30231
|
+
if (count) {
|
|
30232
|
+
clear += ansiEscapes.cursorLeft;
|
|
30233
|
+
}
|
|
30234
|
+
return clear;
|
|
30235
|
+
};
|
|
30236
|
+
ansiEscapes.eraseEndLine = ESC + "K";
|
|
30237
|
+
ansiEscapes.eraseStartLine = ESC + "1K";
|
|
30238
|
+
ansiEscapes.eraseLine = ESC + "2K";
|
|
30239
|
+
ansiEscapes.eraseDown = ESC + "J";
|
|
30240
|
+
ansiEscapes.eraseUp = ESC + "1J";
|
|
30241
|
+
ansiEscapes.eraseScreen = ESC + "2J";
|
|
30242
|
+
ansiEscapes.scrollUp = ESC + "S";
|
|
30243
|
+
ansiEscapes.scrollDown = ESC + "T";
|
|
30244
|
+
ansiEscapes.clearScreen = "\x1Bc";
|
|
30245
|
+
ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
|
|
30246
|
+
ansiEscapes.beep = BEL;
|
|
30247
|
+
ansiEscapes.link = (text, url) => {
|
|
30248
|
+
return [
|
|
30249
|
+
OSC,
|
|
30250
|
+
"8",
|
|
30251
|
+
SEP,
|
|
30252
|
+
SEP,
|
|
30253
|
+
url,
|
|
30254
|
+
BEL,
|
|
30255
|
+
text,
|
|
30256
|
+
OSC,
|
|
30257
|
+
"8",
|
|
30258
|
+
SEP,
|
|
30259
|
+
SEP,
|
|
30260
|
+
BEL
|
|
30261
|
+
].join("");
|
|
30262
|
+
};
|
|
30263
|
+
ansiEscapes.image = (buffer, options = {}) => {
|
|
30264
|
+
let ret = `${OSC}1337;File=inline=1`;
|
|
30265
|
+
if (options.width) {
|
|
30266
|
+
ret += `;width=${options.width}`;
|
|
30267
|
+
}
|
|
30268
|
+
if (options.height) {
|
|
30269
|
+
ret += `;height=${options.height}`;
|
|
30270
|
+
}
|
|
30271
|
+
if (options.preserveAspectRatio === false) {
|
|
30272
|
+
ret += ";preserveAspectRatio=0";
|
|
30273
|
+
}
|
|
30274
|
+
return ret + ":" + buffer.toString("base64") + BEL;
|
|
30275
|
+
};
|
|
30276
|
+
ansiEscapes.iTerm = {
|
|
30277
|
+
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
|
30278
|
+
annotation: (message, options = {}) => {
|
|
30279
|
+
let ret = `${OSC}1337;`;
|
|
30280
|
+
const hasX = typeof options.x !== "undefined";
|
|
30281
|
+
const hasY = typeof options.y !== "undefined";
|
|
30282
|
+
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
|
30283
|
+
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
|
30284
|
+
}
|
|
30285
|
+
message = message.replace(/\|/g, "");
|
|
30286
|
+
ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
|
30287
|
+
if (options.length > 0) {
|
|
30288
|
+
ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
|
30289
|
+
} else {
|
|
30290
|
+
ret += message;
|
|
30291
|
+
}
|
|
30292
|
+
return ret + BEL;
|
|
30293
|
+
}
|
|
30294
|
+
};
|
|
30259
30295
|
|
|
30260
30296
|
// node_modules/inquirer/lib/prompts/list.js
|
|
30261
|
-
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
|
30262
30297
|
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
|
30263
30298
|
|
|
30264
30299
|
// node_modules/@inquirer/figures/dist/esm/index.js
|
|
@@ -30769,7 +30804,6 @@ class Choices {
|
|
|
30769
30804
|
}
|
|
30770
30805
|
|
|
30771
30806
|
// node_modules/inquirer/lib/utils/screen-manager.js
|
|
30772
|
-
var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
|
|
30773
30807
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
|
30774
30808
|
var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
|
|
30775
30809
|
var import_strip_ansi = __toESM(require_strip_ansi(), 1);
|
|
@@ -30777,21 +30811,20 @@ var import_string_width = __toESM(require_string_width(), 1);
|
|
|
30777
30811
|
var import_ora = __toESM(require_ora(), 1);
|
|
30778
30812
|
|
|
30779
30813
|
// node_modules/inquirer/lib/utils/readline.js
|
|
30780
|
-
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
|
30781
30814
|
var left = function(rl, x) {
|
|
30782
|
-
rl.output.write(
|
|
30815
|
+
rl.output.write(exports_ansi_escapes.cursorBackward(x));
|
|
30783
30816
|
};
|
|
30784
30817
|
var right = function(rl, x) {
|
|
30785
|
-
rl.output.write(
|
|
30818
|
+
rl.output.write(exports_ansi_escapes.cursorForward(x));
|
|
30786
30819
|
};
|
|
30787
30820
|
var up = function(rl, x) {
|
|
30788
|
-
rl.output.write(
|
|
30821
|
+
rl.output.write(exports_ansi_escapes.cursorUp(x));
|
|
30789
30822
|
};
|
|
30790
30823
|
var down = function(rl, x) {
|
|
30791
|
-
rl.output.write(
|
|
30824
|
+
rl.output.write(exports_ansi_escapes.cursorDown(x));
|
|
30792
30825
|
};
|
|
30793
30826
|
var clearLine = function(rl, len) {
|
|
30794
|
-
rl.output.write(
|
|
30827
|
+
rl.output.write(exports_ansi_escapes.eraseLines(len));
|
|
30795
30828
|
};
|
|
30796
30829
|
|
|
30797
30830
|
// node_modules/inquirer/lib/utils/screen-manager.js
|
|
@@ -30875,7 +30908,7 @@ class ScreenManager {
|
|
|
30875
30908
|
this.rl.setPrompt("");
|
|
30876
30909
|
this.rl.output.unmute();
|
|
30877
30910
|
this.rl.output.write(`
|
|
30878
|
-
${
|
|
30911
|
+
${exports_ansi_escapes.cursorShow}`);
|
|
30879
30912
|
}
|
|
30880
30913
|
releaseCursor() {
|
|
30881
30914
|
if (this.extraLinesUnderPrompt > 0) {
|
|
@@ -31034,7 +31067,7 @@ class ListPrompt extends Prompt {
|
|
|
31034
31067
|
message += `
|
|
31035
31068
|
` + this.paginator.paginate(choicesStr, realIndexPosition, this.opt.pageSize);
|
|
31036
31069
|
}
|
|
31037
|
-
message +=
|
|
31070
|
+
message += exports_ansi_escapes.cursorHide;
|
|
31038
31071
|
this.firstRender = false;
|
|
31039
31072
|
this.screen.render(message);
|
|
31040
31073
|
}
|
|
@@ -31513,7 +31546,6 @@ function renderChoices2(choices, pointer) {
|
|
|
31513
31546
|
}
|
|
31514
31547
|
|
|
31515
31548
|
// node_modules/inquirer/lib/prompts/checkbox.js
|
|
31516
|
-
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
|
31517
31549
|
var import_yoctocolors_cjs9 = __toESM(require_yoctocolors_cjs(), 1);
|
|
31518
31550
|
var import_rxjs8 = __toESM(require_cjs(), 1);
|
|
31519
31551
|
class CheckboxPrompt extends Prompt {
|
|
@@ -31582,7 +31614,7 @@ class CheckboxPrompt extends Prompt {
|
|
|
31582
31614
|
if (error) {
|
|
31583
31615
|
bottomContent = import_yoctocolors_cjs9.default.red(">> ") + error;
|
|
31584
31616
|
}
|
|
31585
|
-
message +=
|
|
31617
|
+
message += exports_ansi_escapes.cursorHide;
|
|
31586
31618
|
this.screen.render(message, bottomContent);
|
|
31587
31619
|
}
|
|
31588
31620
|
onEnd(state) {
|
|
@@ -32120,9 +32152,9 @@ var fetchAsyncQuestionProperty = function(question, prop, answers) {
|
|
|
32120
32152
|
|
|
32121
32153
|
// node_modules/inquirer/lib/ui/prompt.js
|
|
32122
32154
|
var _ = {
|
|
32123
|
-
set: (obj,
|
|
32155
|
+
set: (obj, path = "", value) => {
|
|
32124
32156
|
let pointer = obj;
|
|
32125
|
-
|
|
32157
|
+
path.split(".").forEach((key, index, arr) => {
|
|
32126
32158
|
if (key === "__proto__" || key === "constructor")
|
|
32127
32159
|
return;
|
|
32128
32160
|
if (index === arr.length - 1) {
|
|
@@ -32133,8 +32165,8 @@ var _ = {
|
|
|
32133
32165
|
pointer = pointer[key];
|
|
32134
32166
|
});
|
|
32135
32167
|
},
|
|
32136
|
-
get: (obj,
|
|
32137
|
-
const travel = (regexp) => String.prototype.split.call(
|
|
32168
|
+
get: (obj, path = "", defaultValue) => {
|
|
32169
|
+
const travel = (regexp) => String.prototype.split.call(path, regexp).filter(Boolean).reduce((res, key) => res !== null && res !== undefined ? res[key] : res, obj);
|
|
32138
32170
|
const result = travel(/[,[\]]+?/) || travel(/[,.[\]]+?/);
|
|
32139
32171
|
return result === undefined || result === obj ? defaultValue : result;
|
|
32140
32172
|
}
|
|
@@ -32183,8 +32215,8 @@ class PromptUI extends UI {
|
|
|
32183
32215
|
});
|
|
32184
32216
|
}
|
|
32185
32217
|
fetchAnswer(question) {
|
|
32186
|
-
const
|
|
32187
|
-
this.activePrompt = new
|
|
32218
|
+
const Prompt = this.prompts[question.type];
|
|
32219
|
+
this.activePrompt = new Prompt(question, this.rl, this.answers);
|
|
32188
32220
|
return import_rxjs12.defer(() => import_rxjs12.from(this.activePrompt.run().then((answer) => ({ name: question.name, answer }))));
|
|
32189
32221
|
}
|
|
32190
32222
|
setDefaultType(question) {
|
|
@@ -33409,17 +33441,17 @@ import path8 from "path";
|
|
|
33409
33441
|
var AGENT_CATEGORIES = ["skills", "agents"];
|
|
33410
33442
|
async function platformSymlink(source, target) {
|
|
33411
33443
|
await import_fs_extra5.default.ensureDir(path8.dirname(target));
|
|
33412
|
-
const
|
|
33444
|
+
const isWindows = os8.platform() === "win32";
|
|
33413
33445
|
const sourceStat = await import_fs_extra5.default.stat(source).catch(() => null);
|
|
33414
33446
|
const isDir = sourceStat?.isDirectory() ?? false;
|
|
33415
|
-
if (
|
|
33447
|
+
if (isWindows && isDir) {
|
|
33416
33448
|
await import_fs_extra5.default.symlink(source, target, "junction");
|
|
33417
33449
|
return;
|
|
33418
33450
|
}
|
|
33419
33451
|
try {
|
|
33420
33452
|
await import_fs_extra5.default.symlink(source, target);
|
|
33421
33453
|
} catch (error) {
|
|
33422
|
-
if (!
|
|
33454
|
+
if (!isWindows || isDir)
|
|
33423
33455
|
throw error;
|
|
33424
33456
|
try {
|
|
33425
33457
|
await import_fs_extra5.default.link(source, target);
|
|
@@ -34582,8 +34614,8 @@ function isOhMyZshInstalled(homeDir) {
|
|
|
34582
34614
|
function backupFile(filePath) {
|
|
34583
34615
|
if (!import_fs_extra10.default.existsSync(filePath))
|
|
34584
34616
|
return null;
|
|
34585
|
-
const
|
|
34586
|
-
const backupPath = `${filePath}.backup-${
|
|
34617
|
+
const timestamp = new Date().toISOString().replace(/[:.]/g, "-");
|
|
34618
|
+
const backupPath = `${filePath}.backup-${timestamp}`;
|
|
34587
34619
|
try {
|
|
34588
34620
|
import_fs_extra10.default.copyFileSync(filePath, backupPath);
|
|
34589
34621
|
return backupPath;
|
|
@@ -34624,8 +34656,8 @@ function installPrerequisiteSync(packageName, installCmd) {
|
|
|
34624
34656
|
async function installOhMyZsh(homeDir) {
|
|
34625
34657
|
return new Promise((resolve, reject) => {
|
|
34626
34658
|
const installCmd = `sh -c "$(curl -fsSL ${OHMYZSH_INSTALL_URL})" "" --unattended`;
|
|
34627
|
-
const
|
|
34628
|
-
exec2(installCmd, { timeout: INSTALL_TIMEOUT, env
|
|
34659
|
+
const env = { ...process.env, HOME: homeDir, ZSH: path14.join(homeDir, ".oh-my-zsh") };
|
|
34660
|
+
exec2(installCmd, { timeout: INSTALL_TIMEOUT, env }, (error, stdout, stderr) => {
|
|
34629
34661
|
if (error) {
|
|
34630
34662
|
if ("killed" in error && error.killed) {
|
|
34631
34663
|
reject(new Error("Oh My ZSH installation timed out. Please check your network connection."));
|
|
@@ -34904,8 +34936,8 @@ async function createSymlink(sourcePath, targetPath, options = {}) {
|
|
|
34904
34936
|
return false;
|
|
34905
34937
|
}
|
|
34906
34938
|
}
|
|
34907
|
-
const
|
|
34908
|
-
if (
|
|
34939
|
+
const isWindows = os13.platform() === "win32";
|
|
34940
|
+
if (isWindows) {
|
|
34909
34941
|
await import_fs_extra11.default.symlink(sourcePath, targetPath, "junction");
|
|
34910
34942
|
} else {
|
|
34911
34943
|
await import_fs_extra11.default.symlink(sourcePath, targetPath);
|
|
@@ -35532,19 +35564,19 @@ var b2 = (t) => {
|
|
|
35532
35564
|
}
|
|
35533
35565
|
};
|
|
35534
35566
|
var G2 = (t) => {
|
|
35535
|
-
const { cursor: n, options:
|
|
35536
|
-
let
|
|
35537
|
-
n >=
|
|
35538
|
-
const $
|
|
35539
|
-
return
|
|
35540
|
-
const
|
|
35541
|
-
return
|
|
35567
|
+
const { cursor: n, options: r, style: i } = t, s = t.maxItems ?? Number.POSITIVE_INFINITY, c = Math.max(process.stdout.rows - 4, 0), a = Math.min(c, Math.max(s, 5));
|
|
35568
|
+
let l = 0;
|
|
35569
|
+
n >= l + a - 3 ? l = Math.max(Math.min(n - a + 3, r.length - a), 0) : n < l + 2 && (l = Math.max(n - 2, 0));
|
|
35570
|
+
const $ = a < r.length && l > 0, g = a < r.length && l + a < r.length;
|
|
35571
|
+
return r.slice(l, l + a).map((p, v, f) => {
|
|
35572
|
+
const j = v === 0 && $, E = v === f.length - 1 && g;
|
|
35573
|
+
return j || E ? import_picocolors2.default.dim("...") : i(p, v + l === n);
|
|
35542
35574
|
});
|
|
35543
35575
|
};
|
|
35544
35576
|
var he = (t) => new RD({ validate: t.validate, placeholder: t.placeholder, defaultValue: t.defaultValue, initialValue: t.initialValue, render() {
|
|
35545
35577
|
const n = `${import_picocolors2.default.gray(o)}
|
|
35546
35578
|
${b2(this.state)} ${t.message}
|
|
35547
|
-
`,
|
|
35579
|
+
`, r = t.placeholder ? import_picocolors2.default.inverse(t.placeholder[0]) + import_picocolors2.default.dim(t.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), i = this.value ? this.valueWithCursor : r;
|
|
35548
35580
|
switch (this.state) {
|
|
35549
35581
|
case "error":
|
|
35550
35582
|
return `${n.trim()}
|
|
@@ -35563,11 +35595,11 @@ ${import_picocolors2.default.cyan(d2)}
|
|
|
35563
35595
|
}
|
|
35564
35596
|
} }).prompt();
|
|
35565
35597
|
var ye = (t) => {
|
|
35566
|
-
const n = t.active ?? "Yes",
|
|
35567
|
-
return new dD({ active: n, inactive:
|
|
35598
|
+
const n = t.active ?? "Yes", r = t.inactive ?? "No";
|
|
35599
|
+
return new dD({ active: n, inactive: r, initialValue: t.initialValue ?? true, render() {
|
|
35568
35600
|
const i = `${import_picocolors2.default.gray(o)}
|
|
35569
35601
|
${b2(this.state)} ${t.message}
|
|
35570
|
-
`, s = this.value ? n :
|
|
35602
|
+
`, s = this.value ? n : r;
|
|
35571
35603
|
switch (this.state) {
|
|
35572
35604
|
case "submit":
|
|
35573
35605
|
return `${i}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(s)}`;
|
|
@@ -35575,20 +35607,20 @@ ${b2(this.state)} ${t.message}
|
|
|
35575
35607
|
return `${i}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(s))}
|
|
35576
35608
|
${import_picocolors2.default.gray(o)}`;
|
|
35577
35609
|
default:
|
|
35578
|
-
return `${i}${import_picocolors2.default.cyan(o)} ${this.value ? `${import_picocolors2.default.green(k2)} ${n}` : `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(n)}`} ${import_picocolors2.default.dim("/")} ${this.value ? `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(
|
|
35610
|
+
return `${i}${import_picocolors2.default.cyan(o)} ${this.value ? `${import_picocolors2.default.green(k2)} ${n}` : `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(n)}`} ${import_picocolors2.default.dim("/")} ${this.value ? `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(r)}` : `${import_picocolors2.default.green(k2)} ${r}`}
|
|
35579
35611
|
${import_picocolors2.default.cyan(d2)}
|
|
35580
35612
|
`;
|
|
35581
35613
|
}
|
|
35582
35614
|
} }).prompt();
|
|
35583
35615
|
};
|
|
35584
35616
|
var ve = (t) => {
|
|
35585
|
-
const n = (
|
|
35586
|
-
const s =
|
|
35617
|
+
const n = (r, i) => {
|
|
35618
|
+
const s = r.label ?? String(r.value);
|
|
35587
35619
|
switch (i) {
|
|
35588
35620
|
case "selected":
|
|
35589
35621
|
return `${import_picocolors2.default.dim(s)}`;
|
|
35590
35622
|
case "active":
|
|
35591
|
-
return `${import_picocolors2.default.green(k2)} ${s} ${
|
|
35623
|
+
return `${import_picocolors2.default.green(k2)} ${s} ${r.hint ? import_picocolors2.default.dim(`(${r.hint})`) : ""}`;
|
|
35592
35624
|
case "cancelled":
|
|
35593
35625
|
return `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(s))}`;
|
|
35594
35626
|
default:
|
|
@@ -35596,17 +35628,17 @@ var ve = (t) => {
|
|
|
35596
35628
|
}
|
|
35597
35629
|
};
|
|
35598
35630
|
return new LD({ options: t.options, initialValue: t.initialValue, render() {
|
|
35599
|
-
const
|
|
35631
|
+
const r = `${import_picocolors2.default.gray(o)}
|
|
35600
35632
|
${b2(this.state)} ${t.message}
|
|
35601
35633
|
`;
|
|
35602
35634
|
switch (this.state) {
|
|
35603
35635
|
case "submit":
|
|
35604
|
-
return `${
|
|
35636
|
+
return `${r}${import_picocolors2.default.gray(o)} ${n(this.options[this.cursor], "selected")}`;
|
|
35605
35637
|
case "cancel":
|
|
35606
|
-
return `${
|
|
35638
|
+
return `${r}${import_picocolors2.default.gray(o)} ${n(this.options[this.cursor], "cancelled")}
|
|
35607
35639
|
${import_picocolors2.default.gray(o)}`;
|
|
35608
35640
|
default:
|
|
35609
|
-
return `${
|
|
35641
|
+
return `${r}${import_picocolors2.default.cyan(o)} ${G2({ cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: (i, s) => n(i, s ? "active" : "inactive") }).join(`
|
|
35610
35642
|
${import_picocolors2.default.cyan(o)} `)}
|
|
35611
35643
|
${import_picocolors2.default.cyan(d2)}
|
|
35612
35644
|
`;
|
|
@@ -35614,16 +35646,16 @@ ${import_picocolors2.default.cyan(d2)}
|
|
|
35614
35646
|
} }).prompt();
|
|
35615
35647
|
};
|
|
35616
35648
|
var fe = (t) => {
|
|
35617
|
-
const n = (
|
|
35618
|
-
const s =
|
|
35619
|
-
return i === "active" ? `${import_picocolors2.default.cyan(A2)} ${s} ${
|
|
35649
|
+
const n = (r, i) => {
|
|
35650
|
+
const s = r.label ?? String(r.value);
|
|
35651
|
+
return i === "active" ? `${import_picocolors2.default.cyan(A2)} ${s} ${r.hint ? import_picocolors2.default.dim(`(${r.hint})`) : ""}` : i === "selected" ? `${import_picocolors2.default.green(T)} ${import_picocolors2.default.dim(s)} ${r.hint ? import_picocolors2.default.dim(`(${r.hint})`) : ""}` : i === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(s))}` : i === "active-selected" ? `${import_picocolors2.default.green(T)} ${s} ${r.hint ? import_picocolors2.default.dim(`(${r.hint})`) : ""}` : i === "submitted" ? `${import_picocolors2.default.dim(s)}` : `${import_picocolors2.default.dim(F)} ${import_picocolors2.default.dim(s)}`;
|
|
35620
35652
|
};
|
|
35621
|
-
return new SD({ options: t.options, initialValues: t.initialValues, required: t.required ?? true, cursorAt: t.cursorAt, validate(
|
|
35622
|
-
if (this.required &&
|
|
35653
|
+
return new SD({ options: t.options, initialValues: t.initialValues, required: t.required ?? true, cursorAt: t.cursorAt, validate(r) {
|
|
35654
|
+
if (this.required && r.length === 0)
|
|
35623
35655
|
return `Please select at least one option.
|
|
35624
35656
|
${import_picocolors2.default.reset(import_picocolors2.default.dim(`Press ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" space ")))} to select, ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" enter ")))} to submit`))}`;
|
|
35625
35657
|
}, render() {
|
|
35626
|
-
const
|
|
35658
|
+
const r = `${import_picocolors2.default.gray(o)}
|
|
35627
35659
|
${b2(this.state)} ${t.message}
|
|
35628
35660
|
`, i = (s, c) => {
|
|
35629
35661
|
const a = this.value.includes(s.value);
|
|
@@ -35631,23 +35663,23 @@ ${b2(this.state)} ${t.message}
|
|
|
35631
35663
|
};
|
|
35632
35664
|
switch (this.state) {
|
|
35633
35665
|
case "submit":
|
|
35634
|
-
return `${
|
|
35666
|
+
return `${r}${import_picocolors2.default.gray(o)} ${this.options.filter(({ value: s }) => this.value.includes(s)).map((s) => n(s, "submitted")).join(import_picocolors2.default.dim(", ")) || import_picocolors2.default.dim("none")}`;
|
|
35635
35667
|
case "cancel": {
|
|
35636
35668
|
const s = this.options.filter(({ value: c }) => this.value.includes(c)).map((c) => n(c, "cancelled")).join(import_picocolors2.default.dim(", "));
|
|
35637
|
-
return `${
|
|
35669
|
+
return `${r}${import_picocolors2.default.gray(o)} ${s.trim() ? `${s}
|
|
35638
35670
|
${import_picocolors2.default.gray(o)}` : ""}`;
|
|
35639
35671
|
}
|
|
35640
35672
|
case "error": {
|
|
35641
35673
|
const s = this.error.split(`
|
|
35642
35674
|
`).map((c, a) => a === 0 ? `${import_picocolors2.default.yellow(d2)} ${import_picocolors2.default.yellow(c)}` : ` ${c}`).join(`
|
|
35643
35675
|
`);
|
|
35644
|
-
return `${
|
|
35676
|
+
return `${r + import_picocolors2.default.yellow(o)} ${G2({ options: this.options, cursor: this.cursor, maxItems: t.maxItems, style: i }).join(`
|
|
35645
35677
|
${import_picocolors2.default.yellow(o)} `)}
|
|
35646
35678
|
${s}
|
|
35647
35679
|
`;
|
|
35648
35680
|
}
|
|
35649
35681
|
default:
|
|
35650
|
-
return `${
|
|
35682
|
+
return `${r}${import_picocolors2.default.cyan(o)} ${G2({ options: this.options, cursor: this.cursor, maxItems: t.maxItems, style: i }).join(`
|
|
35651
35683
|
${import_picocolors2.default.cyan(o)} `)}
|
|
35652
35684
|
${import_picocolors2.default.cyan(d2)}
|
|
35653
35685
|
`;
|
|
@@ -35670,13 +35702,13 @@ ${import_picocolors2.default.gray(d2)} ${t}
|
|
|
35670
35702
|
`);
|
|
35671
35703
|
};
|
|
35672
35704
|
var M2 = { message: (t = "", { symbol: n = import_picocolors2.default.gray(o) } = {}) => {
|
|
35673
|
-
const
|
|
35705
|
+
const r = [`${import_picocolors2.default.gray(o)}`];
|
|
35674
35706
|
if (t) {
|
|
35675
35707
|
const [i, ...s] = t.split(`
|
|
35676
35708
|
`);
|
|
35677
|
-
|
|
35709
|
+
r.push(`${n} ${i}`, ...s.map((c) => `${import_picocolors2.default.gray(o)} ${c}`));
|
|
35678
35710
|
}
|
|
35679
|
-
process.stdout.write(`${
|
|
35711
|
+
process.stdout.write(`${r.join(`
|
|
35680
35712
|
`)}
|
|
35681
35713
|
`);
|
|
35682
35714
|
}, info: (t) => {
|
|
@@ -35694,54 +35726,54 @@ var M2 = { message: (t = "", { symbol: n = import_picocolors2.default.gray(o) }
|
|
|
35694
35726
|
} };
|
|
35695
35727
|
var J2 = `${import_picocolors2.default.gray(o)} `;
|
|
35696
35728
|
var Y2 = ({ indicator: t = "dots" } = {}) => {
|
|
35697
|
-
const n = V2 ? ["◒", "◐", "◓", "◑"] : ["•", "o", "O", "0"],
|
|
35698
|
-
let s, c, a = false,
|
|
35699
|
-
const
|
|
35700
|
-
const
|
|
35701
|
-
a &&
|
|
35702
|
-
},
|
|
35703
|
-
process.on("uncaughtExceptionMonitor",
|
|
35729
|
+
const n = V2 ? ["◒", "◐", "◓", "◑"] : ["•", "o", "O", "0"], r = V2 ? 80 : 120, i = process.env.CI === "true";
|
|
35730
|
+
let s, c, a = false, l = "", $, g = performance.now();
|
|
35731
|
+
const p = (m) => {
|
|
35732
|
+
const h = m > 1 ? "Something went wrong" : "Canceled";
|
|
35733
|
+
a && N(h, m);
|
|
35734
|
+
}, v = () => p(2), f = () => p(1), j = () => {
|
|
35735
|
+
process.on("uncaughtExceptionMonitor", v), process.on("unhandledRejection", v), process.on("SIGINT", f), process.on("SIGTERM", f), process.on("exit", p);
|
|
35704
35736
|
}, E = () => {
|
|
35705
|
-
process.removeListener("uncaughtExceptionMonitor",
|
|
35706
|
-
},
|
|
35707
|
-
if ($
|
|
35737
|
+
process.removeListener("uncaughtExceptionMonitor", v), process.removeListener("unhandledRejection", v), process.removeListener("SIGINT", f), process.removeListener("SIGTERM", f), process.removeListener("exit", p);
|
|
35738
|
+
}, B = () => {
|
|
35739
|
+
if ($ === undefined)
|
|
35708
35740
|
return;
|
|
35709
35741
|
i && process.stdout.write(`
|
|
35710
35742
|
`);
|
|
35711
|
-
const
|
|
35743
|
+
const m = $.split(`
|
|
35712
35744
|
`);
|
|
35713
|
-
process.stdout.write(import_sisteransi2.cursor.move(-999,
|
|
35714
|
-
},
|
|
35715
|
-
const
|
|
35716
|
-
return
|
|
35717
|
-
},
|
|
35718
|
-
a = true, s = fD(),
|
|
35745
|
+
process.stdout.write(import_sisteransi2.cursor.move(-999, m.length - 1)), process.stdout.write(import_sisteransi2.erase.down(m.length));
|
|
35746
|
+
}, R = (m) => m.replace(/\.+$/, ""), O = (m) => {
|
|
35747
|
+
const h = (performance.now() - m) / 1000, w = Math.floor(h / 60), I = Math.floor(h % 60);
|
|
35748
|
+
return w > 0 ? `[${w}m ${I}s]` : `[${I}s]`;
|
|
35749
|
+
}, H = (m = "") => {
|
|
35750
|
+
a = true, s = fD(), l = R(m), g = performance.now(), process.stdout.write(`${import_picocolors2.default.gray(o)}
|
|
35719
35751
|
`);
|
|
35720
|
-
let
|
|
35721
|
-
|
|
35722
|
-
if (i &&
|
|
35752
|
+
let h = 0, w = 0;
|
|
35753
|
+
j(), c = setInterval(() => {
|
|
35754
|
+
if (i && l === $)
|
|
35723
35755
|
return;
|
|
35724
|
-
|
|
35725
|
-
const
|
|
35756
|
+
B(), $ = l;
|
|
35757
|
+
const I = import_picocolors2.default.magenta(n[h]);
|
|
35726
35758
|
if (i)
|
|
35727
|
-
process.stdout.write(`${
|
|
35759
|
+
process.stdout.write(`${I} ${l}...`);
|
|
35728
35760
|
else if (t === "timer")
|
|
35729
|
-
process.stdout.write(`${
|
|
35761
|
+
process.stdout.write(`${I} ${l} ${O(g)}`);
|
|
35730
35762
|
else {
|
|
35731
|
-
const
|
|
35732
|
-
process.stdout.write(`${
|
|
35733
|
-
}
|
|
35734
|
-
|
|
35735
|
-
},
|
|
35736
|
-
},
|
|
35737
|
-
a = false, clearInterval(c),
|
|
35738
|
-
const
|
|
35739
|
-
|
|
35740
|
-
`) : process.stdout.write(`${
|
|
35763
|
+
const z = ".".repeat(Math.floor(w)).slice(0, 3);
|
|
35764
|
+
process.stdout.write(`${I} ${l}${z}`);
|
|
35765
|
+
}
|
|
35766
|
+
h = h + 1 < n.length ? h + 1 : 0, w = w < n.length ? w + 0.125 : 0;
|
|
35767
|
+
}, r);
|
|
35768
|
+
}, N = (m = "", h = 0) => {
|
|
35769
|
+
a = false, clearInterval(c), B();
|
|
35770
|
+
const w = h === 0 ? import_picocolors2.default.green(C) : h === 1 ? import_picocolors2.default.red(L2) : import_picocolors2.default.red(W2);
|
|
35771
|
+
l = R(m ?? l), t === "timer" ? process.stdout.write(`${w} ${l} ${O(g)}
|
|
35772
|
+
`) : process.stdout.write(`${w} ${l}
|
|
35741
35773
|
`), E(), s();
|
|
35742
35774
|
};
|
|
35743
|
-
return { start:
|
|
35744
|
-
|
|
35775
|
+
return { start: H, stop: N, message: (m = "") => {
|
|
35776
|
+
l = R(m ?? l);
|
|
35745
35777
|
} };
|
|
35746
35778
|
};
|
|
35747
35779
|
|
|
@@ -35794,7 +35826,7 @@ async function listBackups() {
|
|
|
35794
35826
|
date
|
|
35795
35827
|
});
|
|
35796
35828
|
}
|
|
35797
|
-
return backups.sort((a,
|
|
35829
|
+
return backups.sort((a, b) => b.date.getTime() - a.date.getTime());
|
|
35798
35830
|
}
|
|
35799
35831
|
var AGENTS_BACKUP_SUBDIR = ".agents";
|
|
35800
35832
|
var CLAUDE_ITEMS = ["agents", "skills", "scripts", "settings.json"];
|
|
@@ -36087,8 +36119,8 @@ async function realPathIfPossible(targetPath) {
|
|
|
36087
36119
|
return null;
|
|
36088
36120
|
}
|
|
36089
36121
|
}
|
|
36090
|
-
function samePath(a,
|
|
36091
|
-
return path17.resolve(a) === path17.resolve(
|
|
36122
|
+
function samePath(a, b) {
|
|
36123
|
+
return path17.resolve(a) === path17.resolve(b);
|
|
36092
36124
|
}
|
|
36093
36125
|
function hashString(value) {
|
|
36094
36126
|
return crypto.createHash("sha256").update(value).digest("hex");
|
|
@@ -36106,7 +36138,7 @@ async function hashPath(targetPath) {
|
|
|
36106
36138
|
return fileHash.digest("hex");
|
|
36107
36139
|
}
|
|
36108
36140
|
if (stat.isDirectory()) {
|
|
36109
|
-
const entries = (await import_fs_extra13.default.readdir(targetPath, { withFileTypes: true })).filter((entry) => !IGNORED_ENTRY_NAMES2.has(entry.name)).sort((a,
|
|
36141
|
+
const entries = (await import_fs_extra13.default.readdir(targetPath, { withFileTypes: true })).filter((entry) => !IGNORED_ENTRY_NAMES2.has(entry.name)).sort((a, b) => a.name.localeCompare(b.name));
|
|
36110
36142
|
const dirHash = crypto.createHash("sha256");
|
|
36111
36143
|
dirHash.update("dir:");
|
|
36112
36144
|
for (const entry of entries) {
|
|
@@ -36151,7 +36183,7 @@ async function hashRulePath(targetPath) {
|
|
|
36151
36183
|
hashesByName.set(entryName, entryHash);
|
|
36152
36184
|
canonicalEntries.push({ name: entryName, hash: entryHash });
|
|
36153
36185
|
}
|
|
36154
|
-
for (const entry of canonicalEntries.sort((a,
|
|
36186
|
+
for (const entry of canonicalEntries.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
36155
36187
|
dirHash.update(entry.name);
|
|
36156
36188
|
dirHash.update("\x00");
|
|
36157
36189
|
dirHash.update(entry.hash);
|
|
@@ -36262,14 +36294,14 @@ function ruleExtensionPriority(name) {
|
|
|
36262
36294
|
return 1;
|
|
36263
36295
|
return 2;
|
|
36264
36296
|
}
|
|
36265
|
-
function compareRuleEntryNames(a,
|
|
36266
|
-
const normalizedCompare = normalizeRuleFileName(a.name).localeCompare(normalizeRuleFileName(
|
|
36297
|
+
function compareRuleEntryNames(a, b) {
|
|
36298
|
+
const normalizedCompare = normalizeRuleFileName(a.name).localeCompare(normalizeRuleFileName(b.name));
|
|
36267
36299
|
if (normalizedCompare !== 0)
|
|
36268
36300
|
return normalizedCompare;
|
|
36269
|
-
const priorityCompare = ruleExtensionPriority(a.name) - ruleExtensionPriority(
|
|
36301
|
+
const priorityCompare = ruleExtensionPriority(a.name) - ruleExtensionPriority(b.name);
|
|
36270
36302
|
if (priorityCompare !== 0)
|
|
36271
36303
|
return priorityCompare;
|
|
36272
|
-
return a.name.localeCompare(
|
|
36304
|
+
return a.name.localeCompare(b.name);
|
|
36273
36305
|
}
|
|
36274
36306
|
async function addExistingDestinationHashes(category, destinationDir, knownHashes, result) {
|
|
36275
36307
|
if (!await import_fs_extra13.default.pathExists(destinationDir))
|
|
@@ -36375,11 +36407,11 @@ async function importCategoryEntries(category, candidates, destinationDir, resul
|
|
|
36375
36407
|
}
|
|
36376
36408
|
return true;
|
|
36377
36409
|
}
|
|
36378
|
-
function recordRuleExtensionRename(result,
|
|
36410
|
+
function recordRuleExtensionRename(result, from, to) {
|
|
36379
36411
|
result.renamed.push({
|
|
36380
36412
|
category: "rules",
|
|
36381
|
-
name: path17.basename(
|
|
36382
|
-
from
|
|
36413
|
+
name: path17.basename(from),
|
|
36414
|
+
from,
|
|
36383
36415
|
to,
|
|
36384
36416
|
reason: RULE_EXTENSION_RENAME_REASON
|
|
36385
36417
|
});
|
|
@@ -36427,18 +36459,18 @@ async function migrateExistingRuleExtensions(rulesDir, result, dryRun = false) {
|
|
|
36427
36459
|
from: sourcePath,
|
|
36428
36460
|
keptAs: targetPath
|
|
36429
36461
|
});
|
|
36430
|
-
const
|
|
36431
|
-
|
|
36462
|
+
const usedNames = await usedNamesForDir(currentDir);
|
|
36463
|
+
usedNames.delete(entry.name);
|
|
36432
36464
|
continue;
|
|
36433
36465
|
}
|
|
36434
|
-
const
|
|
36435
|
-
const targetName = await findAvailableTargetName(currentDir, path17.basename(targetPath), "agents-rules",
|
|
36466
|
+
const usedNames = await usedNamesForDir(currentDir);
|
|
36467
|
+
const targetName = await findAvailableTargetName(currentDir, path17.basename(targetPath), "agents-rules", usedNames);
|
|
36436
36468
|
const renamedTargetPath = path17.join(currentDir, targetName);
|
|
36437
36469
|
if (!dryRun) {
|
|
36438
36470
|
await import_fs_extra13.default.move(sourcePath, renamedTargetPath, { overwrite: false });
|
|
36439
36471
|
}
|
|
36440
|
-
|
|
36441
|
-
|
|
36472
|
+
usedNames.delete(entry.name);
|
|
36473
|
+
usedNames.add(targetName);
|
|
36442
36474
|
recordRuleExtensionRename(result, sourcePath, renamedTargetPath);
|
|
36443
36475
|
continue;
|
|
36444
36476
|
}
|
|
@@ -36465,10 +36497,10 @@ async function findAvailableTargetName(destinationDir, originalName, label, know
|
|
|
36465
36497
|
}
|
|
36466
36498
|
}
|
|
36467
36499
|
function sortSourceEntries(entries, category) {
|
|
36468
|
-
return [...entries].sort((a,
|
|
36500
|
+
return [...entries].sort((a, b) => {
|
|
36469
36501
|
if (category === "rules")
|
|
36470
|
-
return compareRuleEntryNames(a,
|
|
36471
|
-
return a.name.localeCompare(
|
|
36502
|
+
return compareRuleEntryNames(a, b);
|
|
36503
|
+
return a.name.localeCompare(b.name);
|
|
36472
36504
|
});
|
|
36473
36505
|
}
|
|
36474
36506
|
async function collectCandidateEntries(candidate, category) {
|
|
@@ -36771,7 +36803,7 @@ async function collectRuleIndexEntries(rulesDir, rootDir, currentDir = rulesDir)
|
|
|
36771
36803
|
relativePath: path17.relative(rootDir, entryPath)
|
|
36772
36804
|
});
|
|
36773
36805
|
}
|
|
36774
|
-
return rules.sort((a,
|
|
36806
|
+
return rules.sort((a, b) => a.relativePath.localeCompare(b.relativePath));
|
|
36775
36807
|
}
|
|
36776
36808
|
function stripGeneratedRulesIndex(content) {
|
|
36777
36809
|
const start = content.indexOf(RULES_INDEX_START);
|
|
@@ -36934,7 +36966,7 @@ async function collectPlannedRuleIndexEntries(result, rootDir) {
|
|
|
36934
36966
|
for (const rule of rules) {
|
|
36935
36967
|
byPath.set(rule.relativePath, rule);
|
|
36936
36968
|
}
|
|
36937
|
-
return [...byPath.values()].sort((a,
|
|
36969
|
+
return [...byPath.values()].sort((a, b) => a.relativePath.localeCompare(b.relativePath));
|
|
36938
36970
|
}
|
|
36939
36971
|
async function collectPlannedRuleEntryFiles(entry, rootDir) {
|
|
36940
36972
|
const sourceStat = await import_fs_extra13.default.lstat(entry.from).catch(() => null);
|
|
@@ -36959,9 +36991,9 @@ async function collectPlannedRuleDirectoryFiles(sourceDir, targetDir, rootDir) {
|
|
|
36959
36991
|
continue;
|
|
36960
36992
|
const sourcePath = path17.join(sourceDir, entry.name);
|
|
36961
36993
|
if (entry.isDirectory()) {
|
|
36962
|
-
const
|
|
36994
|
+
const targetPath = path17.join(targetDir, entry.name);
|
|
36963
36995
|
usedNames.add(entry.name);
|
|
36964
|
-
rules.push(...await collectPlannedRuleDirectoryFiles(sourcePath,
|
|
36996
|
+
rules.push(...await collectPlannedRuleDirectoryFiles(sourcePath, targetPath, rootDir));
|
|
36965
36997
|
continue;
|
|
36966
36998
|
}
|
|
36967
36999
|
if (!entry.isFile() && !entry.isSymbolicLink())
|
|
@@ -37269,7 +37301,7 @@ async function collectSnapshotSources(folders) {
|
|
|
37269
37301
|
if (path18.resolve(folders.rootDir) === os16.homedir()) {
|
|
37270
37302
|
sources.push(...await listSnapshotSources(getBackupDir(), "legacy-backup"));
|
|
37271
37303
|
}
|
|
37272
|
-
return sources.sort((a,
|
|
37304
|
+
return sources.sort((a, b) => a.name.localeCompare(b.name));
|
|
37273
37305
|
}
|
|
37274
37306
|
async function snapshotFolderPath(snapshot, folder) {
|
|
37275
37307
|
const managedPath = path18.join(snapshot.path, folder);
|
|
@@ -37320,7 +37352,7 @@ async function hashPath2(targetPath) {
|
|
|
37320
37352
|
return hash.digest("hex");
|
|
37321
37353
|
}
|
|
37322
37354
|
if (stat.isDirectory()) {
|
|
37323
|
-
const entries = (await import_fs_extra14.default.readdir(targetPath, { withFileTypes: true })).sort((a,
|
|
37355
|
+
const entries = (await import_fs_extra14.default.readdir(targetPath, { withFileTypes: true })).sort((a, b) => a.name.localeCompare(b.name));
|
|
37324
37356
|
const hash = crypto2.createHash("sha256");
|
|
37325
37357
|
hash.update("dir:");
|
|
37326
37358
|
for (const entry of entries) {
|
|
@@ -38680,7 +38712,7 @@ function formatItem(item) {
|
|
|
38680
38712
|
unchanged: "✅",
|
|
38681
38713
|
migration: "\uD83D\uDCE6"
|
|
38682
38714
|
};
|
|
38683
|
-
const
|
|
38715
|
+
const colors = {
|
|
38684
38716
|
new: source_default.green,
|
|
38685
38717
|
modified: source_default.yellow,
|
|
38686
38718
|
deleted: source_default.red,
|
|
@@ -38689,7 +38721,7 @@ function formatItem(item) {
|
|
|
38689
38721
|
};
|
|
38690
38722
|
const folderPrefix = item.isFolder ? "\uD83D\uDCC1 " : "";
|
|
38691
38723
|
const suffix = item.status === "migration" ? source_default.gray(" (move .claude → .agents)") : "";
|
|
38692
|
-
return `${icons[item.status]} ${folderPrefix}${
|
|
38724
|
+
return `${icons[item.status]} ${folderPrefix}${colors[item.status](item.relativePath)}${suffix}`;
|
|
38693
38725
|
}
|
|
38694
38726
|
function groupByCategory(items) {
|
|
38695
38727
|
const grouped = new Map;
|
|
@@ -39577,8 +39609,8 @@ import path27 from "path";
|
|
|
39577
39609
|
import os22 from "os";
|
|
39578
39610
|
function checkCommand2(cmd) {
|
|
39579
39611
|
try {
|
|
39580
|
-
const
|
|
39581
|
-
const whichCmd =
|
|
39612
|
+
const isWindows = os22.platform() === "win32";
|
|
39613
|
+
const whichCmd = isWindows ? `where ${cmd}` : `which ${cmd}`;
|
|
39582
39614
|
execSync4(whichCmd, { stdio: "ignore" });
|
|
39583
39615
|
return true;
|
|
39584
39616
|
} catch {
|
|
@@ -39670,7 +39702,7 @@ import { fileURLToPath as fileURLToPath3 } from "url";
|
|
|
39670
39702
|
import { homedir as homedir2 } from "os";
|
|
39671
39703
|
var __dirname3 = dirname3(fileURLToPath3(import.meta.url));
|
|
39672
39704
|
var packageJson = JSON.parse(readFileSync3(join2(__dirname3, "../package.json"), "utf8"));
|
|
39673
|
-
var program2 = new
|
|
39705
|
+
var program2 = new Command2;
|
|
39674
39706
|
program2.name("aiblueprint").description("AIBlueprint CLI for setting up AI coding configurations").version(packageJson.version);
|
|
39675
39707
|
function readUnifyCategories(options) {
|
|
39676
39708
|
const categories = [];
|
|
@@ -39817,7 +39849,7 @@ function parseRetentionDays(value) {
|
|
|
39817
39849
|
try {
|
|
39818
39850
|
return normalizeBackupRetentionDays(Number(value));
|
|
39819
39851
|
} catch (error) {
|
|
39820
|
-
throw new
|
|
39852
|
+
throw new InvalidArgumentError2(error instanceof Error ? error.message : String(error));
|
|
39821
39853
|
}
|
|
39822
39854
|
}
|
|
39823
39855
|
var agentsCmd = program2.command("agents").description("AI coding configuration commands");
|