@contember/engine-common 1.4.0-rc.8 → 2.0.0-alpha.8
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/dist/development/index.cjs +11 -0
- package/dist/development/index.cjs.map +1 -0
- package/dist/development/index.js +11 -0
- package/dist/development/index.js.map +1 -0
- package/dist/development/src/MigrationVersionHelper.cjs +36 -0
- package/dist/development/src/MigrationVersionHelper.cjs.map +1 -0
- package/dist/development/src/MigrationVersionHelper.js +36 -0
- package/dist/development/src/MigrationVersionHelper.js.map +1 -0
- package/dist/development/src/eventEmitter/events.cjs +26 -0
- package/dist/development/src/eventEmitter/events.cjs.map +1 -0
- package/dist/development/src/eventEmitter/events.js +26 -0
- package/dist/development/src/eventEmitter/events.js.map +1 -0
- package/dist/development/src/runnable/Supervisor.cjs +70 -0
- package/dist/development/src/runnable/Supervisor.cjs.map +1 -0
- package/dist/development/src/runnable/Supervisor.js +70 -0
- package/dist/development/src/runnable/Supervisor.js.map +1 -0
- package/dist/development/src/runnable/utils.cjs +20 -0
- package/dist/development/src/runnable/utils.cjs.map +1 -0
- package/dist/development/src/runnable/utils.js +20 -0
- package/dist/development/src/runnable/utils.js.map +1 -0
- package/dist/development/src/utils/PromiseMap.cjs +20 -0
- package/dist/development/src/utils/PromiseMap.cjs.map +1 -0
- package/dist/development/src/utils/PromiseMap.js +20 -0
- package/dist/development/src/utils/PromiseMap.js.map +1 -0
- package/dist/production/index.cjs +11 -0
- package/dist/production/index.cjs.map +1 -0
- package/dist/production/index.js +11 -0
- package/dist/production/index.js.map +1 -0
- package/dist/production/src/MigrationVersionHelper.cjs +36 -0
- package/dist/production/src/MigrationVersionHelper.cjs.map +1 -0
- package/dist/production/src/MigrationVersionHelper.js +36 -0
- package/dist/production/src/MigrationVersionHelper.js.map +1 -0
- package/dist/production/src/eventEmitter/events.cjs +26 -0
- package/dist/production/src/eventEmitter/events.cjs.map +1 -0
- package/dist/production/src/eventEmitter/events.js +26 -0
- package/dist/production/src/eventEmitter/events.js.map +1 -0
- package/dist/production/src/runnable/Supervisor.cjs +70 -0
- package/dist/production/src/runnable/Supervisor.cjs.map +1 -0
- package/dist/production/src/runnable/Supervisor.js +70 -0
- package/dist/production/src/runnable/Supervisor.js.map +1 -0
- package/dist/production/src/runnable/utils.cjs +20 -0
- package/dist/production/src/runnable/utils.cjs.map +1 -0
- package/dist/production/src/runnable/utils.js +20 -0
- package/dist/production/src/runnable/utils.js.map +1 -0
- package/dist/production/src/utils/PromiseMap.cjs +20 -0
- package/dist/production/src/utils/PromiseMap.cjs.map +1 -0
- package/dist/production/src/utils/PromiseMap.js +20 -0
- package/dist/production/src/utils/PromiseMap.js.map +1 -0
- package/dist/{src → types}/runnable/utils.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +22 -10
- package/src/tsconfig.json +1 -1
- package/vitest.config.ts +3 -0
- package/dist/src/MigrationVersionHelper.js +0 -45
- package/dist/src/MigrationVersionHelper.js.map +0 -1
- package/dist/src/eventEmitter/events.js +0 -27
- package/dist/src/eventEmitter/events.js.map +0 -1
- package/dist/src/index.js +0 -21
- package/dist/src/index.js.map +0 -1
- package/dist/src/runnable/Runnable.js +0 -3
- package/dist/src/runnable/Runnable.js.map +0 -1
- package/dist/src/runnable/Supervisor.js +0 -75
- package/dist/src/runnable/Supervisor.js.map +0 -1
- package/dist/src/runnable/index.js +0 -19
- package/dist/src/runnable/index.js.map +0 -1
- package/dist/src/runnable/utils.js +0 -21
- package/dist/src/runnable/utils.js.map +0 -1
- package/dist/src/tsconfig.tsbuildinfo +0 -1
- package/dist/src/utils/PromiseMap.js +0 -22
- package/dist/src/utils/PromiseMap.js.map +0 -1
- package/dist/src/utils/index.js +0 -18
- package/dist/src/utils/index.js.map +0 -1
- /package/dist/{src → types}/MigrationVersionHelper.d.ts +0 -0
- /package/dist/{src → types}/MigrationVersionHelper.d.ts.map +0 -0
- /package/dist/{src → types}/eventEmitter/events.d.ts +0 -0
- /package/dist/{src → types}/eventEmitter/events.d.ts.map +0 -0
- /package/dist/{src → types}/index.d.ts +0 -0
- /package/dist/{src → types}/index.d.ts.map +0 -0
- /package/dist/{src → types}/runnable/Runnable.d.ts +0 -0
- /package/dist/{src → types}/runnable/Runnable.d.ts.map +0 -0
- /package/dist/{src → types}/runnable/Supervisor.d.ts +0 -0
- /package/dist/{src → types}/runnable/Supervisor.d.ts.map +0 -0
- /package/dist/{src → types}/runnable/index.d.ts +0 -0
- /package/dist/{src → types}/runnable/index.d.ts.map +0 -0
- /package/dist/{src → types}/runnable/utils.d.ts +0 -0
- /package/dist/{src → types}/utils/PromiseMap.d.ts +0 -0
- /package/dist/{src → types}/utils/PromiseMap.d.ts.map +0 -0
- /package/dist/{src → types}/utils/index.d.ts +0 -0
- /package/dist/{src → types}/utils/index.d.ts.map +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "", value);
|
|
4
|
+
class EventManager {
|
|
5
|
+
constructor() {
|
|
6
|
+
__publicField(this, "listeners", {});
|
|
7
|
+
}
|
|
8
|
+
on(event, cb) {
|
|
9
|
+
var _a;
|
|
10
|
+
((_a = this.listeners)[event] ?? (_a[event] = [])).push(cb);
|
|
11
|
+
return () => {
|
|
12
|
+
return this.listeners[event] = this.listeners[event]?.filter((it) => it !== cb);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
fire(event, args) {
|
|
16
|
+
const result = [];
|
|
17
|
+
for (const cb of this.listeners[event] ?? []) {
|
|
18
|
+
result.push(cb(args));
|
|
19
|
+
}
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
EventManager
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sources":["../../../../../packages/engine-common/src/eventEmitter/events.ts"],"sourcesContent":["export type EventMap = {\n\t[name: string]: (arg: any) => any\n}\n\nexport type EventUnlisten = () => void\n\nexport interface EventEmitter<E extends EventMap> {\n\ton<K extends keyof E>(event: K, cb: E[K]): EventUnlisten\n}\n\nexport class EventManager<E extends EventMap> implements EventEmitter<E> {\n\tprivate listeners: {\n\t\t[K in keyof E]?: E[K][]\n\t} = {}\n\n\tpublic on<K extends keyof E>(event: K, cb: E[K]): EventUnlisten {\n\t\t(this.listeners[event] ??= []).push(cb)\n\t\treturn () => {\n\t\t\treturn this.listeners[event] = this.listeners[event]?.filter(it => it !== cb)\n\t\t}\n\t}\n\n\tpublic fire<K extends keyof E>(event: K, args: Parameters<E[K]>[0]): ReturnType<E[K]>[] {\n\t\tconst result: ReturnType<E[K]>[] = []\n\t\tfor (const cb of this.listeners[event] ?? []) {\n\t\t\tresult.push(cb(args))\n\t\t}\n\t\treturn result\n\t}\n}\n"],"names":[],"mappings":";;;AAUO,MAAM,aAA4D;AAAA,EAAlE,cAAA;AACN,kBAAA,MAAQ,aAEJ,CAAA,CAAC;AAAA,EAAA;AAAA,EAEE,GAAsB,OAAU,IAAyB;AAfjE,QAAA;AAgBE,MAAC,UAAK,WAAL,KAAA,MAAA,GAAA,KAAA,IAA0B,CAAC,IAAG,KAAK,EAAE;AACtC,WAAO,MAAM;AACL,aAAA,KAAK,UAAU,KAAK,IAAI,KAAK,UAAU,KAAK,GAAG,OAAO,CAAM,OAAA,OAAO,EAAE;AAAA,IAAA;AAAA,EAE9E;AAAA,EAEO,KAAwB,OAAU,MAA+C;AACvF,UAAM,SAA6B,CAAA;AACnC,eAAW,MAAM,KAAK,UAAU,KAAK,KAAK,CAAA,GAAI;AACtC,aAAA,KAAK,GAAG,IAAI,CAAC;AAAA,IACrB;AACO,WAAA;AAAA,EACR;AACD;"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const utils = require("./utils.cjs");
|
|
4
|
+
class Supervisor {
|
|
5
|
+
constructor(runnable, options = {}) {
|
|
6
|
+
this.runnable = runnable;
|
|
7
|
+
this.options = options;
|
|
8
|
+
}
|
|
9
|
+
async run(args) {
|
|
10
|
+
const { logger, onError } = args;
|
|
11
|
+
let restartCount = 0;
|
|
12
|
+
const abortController = new AbortController();
|
|
13
|
+
let innerRunning;
|
|
14
|
+
let wasHealthy = false;
|
|
15
|
+
await new Promise(async (resolve, reject) => {
|
|
16
|
+
while (!abortController.signal.aborted) {
|
|
17
|
+
try {
|
|
18
|
+
await new Promise(async (resolveRunning, rejectRunning) => {
|
|
19
|
+
try {
|
|
20
|
+
innerRunning = await this.runnable.run({
|
|
21
|
+
onClose: resolveRunning,
|
|
22
|
+
onError: rejectRunning,
|
|
23
|
+
logger: logger.child({ runningId: Math.random().toString().substring(2) })
|
|
24
|
+
});
|
|
25
|
+
restartCount = 0;
|
|
26
|
+
resolve();
|
|
27
|
+
wasHealthy = true;
|
|
28
|
+
} catch (e) {
|
|
29
|
+
rejectRunning(e);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
} catch (e) {
|
|
33
|
+
innerRunning = void 0;
|
|
34
|
+
const shouldRestart = wasHealthy ? this.options.max === void 0 || restartCount++ < this.options.max : restartCount++ < (this.options.startupMax ?? 10);
|
|
35
|
+
if (shouldRestart) {
|
|
36
|
+
const timeoutMs = Math.ceil(Math.min(
|
|
37
|
+
Math.pow(this.options.exponentiationBase ?? 2, restartCount - 1) * (this.options.minBackoff ?? 1e3),
|
|
38
|
+
this.options.maxBackoff ?? 6e4
|
|
39
|
+
));
|
|
40
|
+
logger.error(`Runnable crashed, restarting in ${timeoutMs} ms ...`, {
|
|
41
|
+
error: e
|
|
42
|
+
});
|
|
43
|
+
await utils.abortableTimeout(timeoutMs, abortController.signal);
|
|
44
|
+
if (!abortController.signal.aborted) {
|
|
45
|
+
logger.info(`Restarting runnable now`);
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
logger.error(`Runnable crashed, stopping`, {
|
|
49
|
+
error: e
|
|
50
|
+
});
|
|
51
|
+
if (wasHealthy) {
|
|
52
|
+
onError(e);
|
|
53
|
+
} else {
|
|
54
|
+
reject(e);
|
|
55
|
+
}
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
return {
|
|
62
|
+
async end() {
|
|
63
|
+
abortController.abort();
|
|
64
|
+
await innerRunning?.end();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.Supervisor = Supervisor;
|
|
70
|
+
//# sourceMappingURL=Supervisor.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Supervisor.cjs","sources":["../../../../../packages/engine-common/src/runnable/Supervisor.ts"],"sourcesContent":["import { Runnable, RunnableArgs, Running } from './Runnable'\nimport { abortableTimeout } from './utils'\n\nexport type SupervisorOptions = {\n\tmax?: number\n\tstartupMax?: number\n\tminBackoff?: number\n\tmaxBackoff?: number\n\texponentiationBase?: number\n}\n\nexport class Supervisor implements Runnable {\n\tconstructor(\n\t\tprivate runnable: Runnable,\n\t\tprivate options: SupervisorOptions = {},\n\t) {\n\t}\n\n\tpublic async run(args: RunnableArgs): Promise<Running> {\n\t\tconst { logger, onError } = args\n\t\tlet restartCount = 0\n\t\tconst abortController = new AbortController()\n\t\tlet innerRunning: Running | undefined\n\t\tlet wasHealthy = false\n\n\t\tawait new Promise<void>(async (resolve, reject) => {\n\t\t\twhile (!abortController.signal.aborted) {\n\t\t\t\ttry {\n\t\t\t\t\tawait new Promise<void>(async (resolveRunning, rejectRunning) => {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinnerRunning = await this.runnable.run({\n\t\t\t\t\t\t\t\tonClose: resolveRunning,\n\t\t\t\t\t\t\t\tonError: rejectRunning,\n\t\t\t\t\t\t\t\tlogger: logger.child({ runningId: Math.random().toString().substring(2) }),\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\trestartCount = 0\n\t\t\t\t\t\t\tresolve()\n\t\t\t\t\t\t\twasHealthy = true\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\trejectRunning(e)\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t} catch (e) {\n\t\t\t\t\tinnerRunning = undefined\n\t\t\t\t\tconst shouldRestart = wasHealthy\n\t\t\t\t\t\t? (this.options.max === undefined || restartCount++ < this.options.max)\n\t\t\t\t\t\t: (restartCount++ < (this.options.startupMax ?? 10))\n\t\t\t\t\tif (shouldRestart) {\n\t\t\t\t\t\tconst timeoutMs = Math.ceil(Math.min(\n\t\t\t\t\t\t\tMath.pow(this.options.exponentiationBase ?? 2, restartCount - 1) * (this.options.minBackoff ?? 1_000),\n\t\t\t\t\t\t\tthis.options.maxBackoff ?? 60_000,\n\t\t\t\t\t\t))\n\t\t\t\t\t\tlogger.error(`Runnable crashed, restarting in ${timeoutMs} ms ...`, {\n\t\t\t\t\t\t\terror: e,\n\t\t\t\t\t\t})\n\t\t\t\t\t\tawait abortableTimeout(timeoutMs, abortController.signal)\n\t\t\t\t\t\tif (!abortController.signal.aborted) {\n\t\t\t\t\t\t\tlogger.info(`Restarting runnable now`)\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlogger.error(`Runnable crashed, stopping`, {\n\t\t\t\t\t\t\terror: e,\n\t\t\t\t\t\t})\n\t\t\t\t\t\tif (wasHealthy) {\n\t\t\t\t\t\t\tonError(e)\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treject(e)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\n\t\treturn {\n\t\t\tasync end(): Promise<void> {\n\t\t\t\tabortController.abort()\n\t\t\t\tawait innerRunning?.end()\n\t\t\t},\n\t\t}\n\t}\n}\n"],"names":["abortableTimeout"],"mappings":";;;AAWO,MAAM,WAA+B;AAAA,EAC3C,YACS,UACA,UAA6B,IACpC;AAFO,SAAA,WAAA;AACA,SAAA,UAAA;AAAA,EAET;AAAA,EAEA,MAAa,IAAI,MAAsC;AAChD,UAAA,EAAE,QAAQ,QAAY,IAAA;AAC5B,QAAI,eAAe;AACb,UAAA,kBAAkB,IAAI;AACxB,QAAA;AACJ,QAAI,aAAa;AAEjB,UAAM,IAAI,QAAc,OAAO,SAAS,WAAW;AAC3C,aAAA,CAAC,gBAAgB,OAAO,SAAS;AACnC,YAAA;AACH,gBAAM,IAAI,QAAc,OAAO,gBAAgB,kBAAkB;AAC5D,gBAAA;AACY,6BAAA,MAAM,KAAK,SAAS,IAAI;AAAA,gBACtC,SAAS;AAAA,gBACT,SAAS;AAAA,gBACT,QAAQ,OAAO,MAAM,EAAE,WAAW,KAAK,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,GAAG;AAAA,cAAA,CACzE;AACc,6BAAA;AACP;AACK,2BAAA;AAAA,qBACL,GAAG;AACX,4BAAc,CAAC;AAAA,YAChB;AAAA,UAAA,CACA;AAAA,iBACO,GAAG;AACI,yBAAA;AACf,gBAAM,gBAAgB,aAClB,KAAK,QAAQ,QAAQ,UAAa,iBAAiB,KAAK,QAAQ,MAChE,kBAAkB,KAAK,QAAQ,cAAc;AACjD,cAAI,eAAe;AACZ,kBAAA,YAAY,KAAK,KAAK,KAAK;AAAA,cAChC,KAAK,IAAI,KAAK,QAAQ,sBAAsB,GAAG,eAAe,CAAC,KAAK,KAAK,QAAQ,cAAc;AAAA,cAC/F,KAAK,QAAQ,cAAc;AAAA,YAAA,CAC3B;AACM,mBAAA,MAAM,mCAAmC,SAAS,WAAW;AAAA,cACnE,OAAO;AAAA,YAAA,CACP;AACK,kBAAAA,uBAAiB,WAAW,gBAAgB,MAAM;AACpD,gBAAA,CAAC,gBAAgB,OAAO,SAAS;AACpC,qBAAO,KAAK,yBAAyB;AAAA,YACtC;AAAA,UAAA,OACM;AACN,mBAAO,MAAM,8BAA8B;AAAA,cAC1C,OAAO;AAAA,YAAA,CACP;AACD,gBAAI,YAAY;AACf,sBAAQ,CAAC;AAAA,YAAA,OACH;AACN,qBAAO,CAAC;AAAA,YACT;AACA;AAAA,UACD;AAAA,QACD;AAAA,MACD;AAAA,IAAA,CACA;AAEM,WAAA;AAAA,MACN,MAAM,MAAqB;AAC1B,wBAAgB,MAAM;AACtB,cAAM,cAAc;MACrB;AAAA,IAAA;AAAA,EAEF;AACD;;"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { abortableTimeout } from "./utils.js";
|
|
2
|
+
class Supervisor {
|
|
3
|
+
constructor(runnable, options = {}) {
|
|
4
|
+
this.runnable = runnable;
|
|
5
|
+
this.options = options;
|
|
6
|
+
}
|
|
7
|
+
async run(args) {
|
|
8
|
+
const { logger, onError } = args;
|
|
9
|
+
let restartCount = 0;
|
|
10
|
+
const abortController = new AbortController();
|
|
11
|
+
let innerRunning;
|
|
12
|
+
let wasHealthy = false;
|
|
13
|
+
await new Promise(async (resolve, reject) => {
|
|
14
|
+
while (!abortController.signal.aborted) {
|
|
15
|
+
try {
|
|
16
|
+
await new Promise(async (resolveRunning, rejectRunning) => {
|
|
17
|
+
try {
|
|
18
|
+
innerRunning = await this.runnable.run({
|
|
19
|
+
onClose: resolveRunning,
|
|
20
|
+
onError: rejectRunning,
|
|
21
|
+
logger: logger.child({ runningId: Math.random().toString().substring(2) })
|
|
22
|
+
});
|
|
23
|
+
restartCount = 0;
|
|
24
|
+
resolve();
|
|
25
|
+
wasHealthy = true;
|
|
26
|
+
} catch (e) {
|
|
27
|
+
rejectRunning(e);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
} catch (e) {
|
|
31
|
+
innerRunning = void 0;
|
|
32
|
+
const shouldRestart = wasHealthy ? this.options.max === void 0 || restartCount++ < this.options.max : restartCount++ < (this.options.startupMax ?? 10);
|
|
33
|
+
if (shouldRestart) {
|
|
34
|
+
const timeoutMs = Math.ceil(Math.min(
|
|
35
|
+
Math.pow(this.options.exponentiationBase ?? 2, restartCount - 1) * (this.options.minBackoff ?? 1e3),
|
|
36
|
+
this.options.maxBackoff ?? 6e4
|
|
37
|
+
));
|
|
38
|
+
logger.error(`Runnable crashed, restarting in ${timeoutMs} ms ...`, {
|
|
39
|
+
error: e
|
|
40
|
+
});
|
|
41
|
+
await abortableTimeout(timeoutMs, abortController.signal);
|
|
42
|
+
if (!abortController.signal.aborted) {
|
|
43
|
+
logger.info(`Restarting runnable now`);
|
|
44
|
+
}
|
|
45
|
+
} else {
|
|
46
|
+
logger.error(`Runnable crashed, stopping`, {
|
|
47
|
+
error: e
|
|
48
|
+
});
|
|
49
|
+
if (wasHealthy) {
|
|
50
|
+
onError(e);
|
|
51
|
+
} else {
|
|
52
|
+
reject(e);
|
|
53
|
+
}
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
return {
|
|
60
|
+
async end() {
|
|
61
|
+
abortController.abort();
|
|
62
|
+
await innerRunning?.end();
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
Supervisor
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=Supervisor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Supervisor.js","sources":["../../../../../packages/engine-common/src/runnable/Supervisor.ts"],"sourcesContent":["import { Runnable, RunnableArgs, Running } from './Runnable'\nimport { abortableTimeout } from './utils'\n\nexport type SupervisorOptions = {\n\tmax?: number\n\tstartupMax?: number\n\tminBackoff?: number\n\tmaxBackoff?: number\n\texponentiationBase?: number\n}\n\nexport class Supervisor implements Runnable {\n\tconstructor(\n\t\tprivate runnable: Runnable,\n\t\tprivate options: SupervisorOptions = {},\n\t) {\n\t}\n\n\tpublic async run(args: RunnableArgs): Promise<Running> {\n\t\tconst { logger, onError } = args\n\t\tlet restartCount = 0\n\t\tconst abortController = new AbortController()\n\t\tlet innerRunning: Running | undefined\n\t\tlet wasHealthy = false\n\n\t\tawait new Promise<void>(async (resolve, reject) => {\n\t\t\twhile (!abortController.signal.aborted) {\n\t\t\t\ttry {\n\t\t\t\t\tawait new Promise<void>(async (resolveRunning, rejectRunning) => {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinnerRunning = await this.runnable.run({\n\t\t\t\t\t\t\t\tonClose: resolveRunning,\n\t\t\t\t\t\t\t\tonError: rejectRunning,\n\t\t\t\t\t\t\t\tlogger: logger.child({ runningId: Math.random().toString().substring(2) }),\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\trestartCount = 0\n\t\t\t\t\t\t\tresolve()\n\t\t\t\t\t\t\twasHealthy = true\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\trejectRunning(e)\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t} catch (e) {\n\t\t\t\t\tinnerRunning = undefined\n\t\t\t\t\tconst shouldRestart = wasHealthy\n\t\t\t\t\t\t? (this.options.max === undefined || restartCount++ < this.options.max)\n\t\t\t\t\t\t: (restartCount++ < (this.options.startupMax ?? 10))\n\t\t\t\t\tif (shouldRestart) {\n\t\t\t\t\t\tconst timeoutMs = Math.ceil(Math.min(\n\t\t\t\t\t\t\tMath.pow(this.options.exponentiationBase ?? 2, restartCount - 1) * (this.options.minBackoff ?? 1_000),\n\t\t\t\t\t\t\tthis.options.maxBackoff ?? 60_000,\n\t\t\t\t\t\t))\n\t\t\t\t\t\tlogger.error(`Runnable crashed, restarting in ${timeoutMs} ms ...`, {\n\t\t\t\t\t\t\terror: e,\n\t\t\t\t\t\t})\n\t\t\t\t\t\tawait abortableTimeout(timeoutMs, abortController.signal)\n\t\t\t\t\t\tif (!abortController.signal.aborted) {\n\t\t\t\t\t\t\tlogger.info(`Restarting runnable now`)\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlogger.error(`Runnable crashed, stopping`, {\n\t\t\t\t\t\t\terror: e,\n\t\t\t\t\t\t})\n\t\t\t\t\t\tif (wasHealthy) {\n\t\t\t\t\t\t\tonError(e)\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treject(e)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\n\t\treturn {\n\t\t\tasync end(): Promise<void> {\n\t\t\t\tabortController.abort()\n\t\t\t\tawait innerRunning?.end()\n\t\t\t},\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";AAWO,MAAM,WAA+B;AAAA,EAC3C,YACS,UACA,UAA6B,IACpC;AAFO,SAAA,WAAA;AACA,SAAA,UAAA;AAAA,EAET;AAAA,EAEA,MAAa,IAAI,MAAsC;AAChD,UAAA,EAAE,QAAQ,QAAY,IAAA;AAC5B,QAAI,eAAe;AACb,UAAA,kBAAkB,IAAI;AACxB,QAAA;AACJ,QAAI,aAAa;AAEjB,UAAM,IAAI,QAAc,OAAO,SAAS,WAAW;AAC3C,aAAA,CAAC,gBAAgB,OAAO,SAAS;AACnC,YAAA;AACH,gBAAM,IAAI,QAAc,OAAO,gBAAgB,kBAAkB;AAC5D,gBAAA;AACY,6BAAA,MAAM,KAAK,SAAS,IAAI;AAAA,gBACtC,SAAS;AAAA,gBACT,SAAS;AAAA,gBACT,QAAQ,OAAO,MAAM,EAAE,WAAW,KAAK,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,GAAG;AAAA,cAAA,CACzE;AACc,6BAAA;AACP;AACK,2BAAA;AAAA,qBACL,GAAG;AACX,4BAAc,CAAC;AAAA,YAChB;AAAA,UAAA,CACA;AAAA,iBACO,GAAG;AACI,yBAAA;AACf,gBAAM,gBAAgB,aAClB,KAAK,QAAQ,QAAQ,UAAa,iBAAiB,KAAK,QAAQ,MAChE,kBAAkB,KAAK,QAAQ,cAAc;AACjD,cAAI,eAAe;AACZ,kBAAA,YAAY,KAAK,KAAK,KAAK;AAAA,cAChC,KAAK,IAAI,KAAK,QAAQ,sBAAsB,GAAG,eAAe,CAAC,KAAK,KAAK,QAAQ,cAAc;AAAA,cAC/F,KAAK,QAAQ,cAAc;AAAA,YAAA,CAC3B;AACM,mBAAA,MAAM,mCAAmC,SAAS,WAAW;AAAA,cACnE,OAAO;AAAA,YAAA,CACP;AACK,kBAAA,iBAAiB,WAAW,gBAAgB,MAAM;AACpD,gBAAA,CAAC,gBAAgB,OAAO,SAAS;AACpC,qBAAO,KAAK,yBAAyB;AAAA,YACtC;AAAA,UAAA,OACM;AACN,mBAAO,MAAM,8BAA8B;AAAA,cAC1C,OAAO;AAAA,YAAA,CACP;AACD,gBAAI,YAAY;AACf,sBAAQ,CAAC;AAAA,YAAA,OACH;AACN,qBAAO,CAAC;AAAA,YACT;AACA;AAAA,UACD;AAAA,QACD;AAAA,MACD;AAAA,IAAA,CACA;AAEM,WAAA;AAAA,MACN,MAAM,MAAqB;AAC1B,wBAAgB,MAAM;AACtB,cAAM,cAAc;MACrB;AAAA,IAAA;AAAA,EAEF;AACD;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const abortableTimeout = async (timeoutMs, abortSignal) => {
|
|
4
|
+
if (abortSignal.aborted) {
|
|
5
|
+
return Promise.resolve();
|
|
6
|
+
}
|
|
7
|
+
let cleanup = [];
|
|
8
|
+
const abortPromise = new Promise((resolve) => {
|
|
9
|
+
abortSignal.addEventListener("abort", resolve);
|
|
10
|
+
cleanup.push(() => abortSignal.removeEventListener("abort", resolve));
|
|
11
|
+
});
|
|
12
|
+
const timeoutPromise = new Promise((resolve) => {
|
|
13
|
+
const timeoutHandle = setTimeout(resolve, timeoutMs);
|
|
14
|
+
cleanup.push(() => clearTimeout(timeoutHandle));
|
|
15
|
+
});
|
|
16
|
+
await Promise.race([abortPromise, timeoutPromise]);
|
|
17
|
+
cleanup.forEach((it) => it());
|
|
18
|
+
};
|
|
19
|
+
exports.abortableTimeout = abortableTimeout;
|
|
20
|
+
//# sourceMappingURL=utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.cjs","sources":["../../../../../packages/engine-common/src/runnable/utils.ts"],"sourcesContent":["export const abortableTimeout = async (timeoutMs: number, abortSignal: AbortSignal): Promise<void> => {\n\tif (abortSignal.aborted) {\n\t\treturn Promise.resolve()\n\t}\n\n\tlet cleanup: (() => void)[] = []\n\n\tconst abortPromise = new Promise(resolve => {\n\t\tabortSignal.addEventListener('abort', resolve)\n\t\tcleanup.push(() => abortSignal.removeEventListener('abort', resolve))\n\t})\n\n\tconst timeoutPromise = new Promise<void>(resolve => {\n\t\tconst timeoutHandle = setTimeout(resolve, timeoutMs)\n\t\tcleanup.push(() => clearTimeout(timeoutHandle))\n\t})\n\n\tawait Promise.race([abortPromise, timeoutPromise])\n\tcleanup.forEach(it => it())\n}\n\n"],"names":[],"mappings":";;AAAa,MAAA,mBAAmB,OAAO,WAAmB,gBAA4C;AACrG,MAAI,YAAY,SAAS;AACxB,WAAO,QAAQ;EAChB;AAEA,MAAI,UAA0B,CAAA;AAExB,QAAA,eAAe,IAAI,QAAQ,CAAW,YAAA;AAC/B,gBAAA,iBAAiB,SAAS,OAAO;AAC7C,YAAQ,KAAK,MAAM,YAAY,oBAAoB,SAAS,OAAO,CAAC;AAAA,EAAA,CACpE;AAEK,QAAA,iBAAiB,IAAI,QAAc,CAAW,YAAA;AAC7C,UAAA,gBAAgB,WAAW,SAAS,SAAS;AACnD,YAAQ,KAAK,MAAM,aAAa,aAAa,CAAC;AAAA,EAAA,CAC9C;AAED,QAAM,QAAQ,KAAK,CAAC,cAAc,cAAc,CAAC;AACzC,UAAA,QAAQ,CAAM,OAAA,GAAI,CAAA;AAC3B;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const abortableTimeout = async (timeoutMs, abortSignal) => {
|
|
2
|
+
if (abortSignal.aborted) {
|
|
3
|
+
return Promise.resolve();
|
|
4
|
+
}
|
|
5
|
+
let cleanup = [];
|
|
6
|
+
const abortPromise = new Promise((resolve) => {
|
|
7
|
+
abortSignal.addEventListener("abort", resolve);
|
|
8
|
+
cleanup.push(() => abortSignal.removeEventListener("abort", resolve));
|
|
9
|
+
});
|
|
10
|
+
const timeoutPromise = new Promise((resolve) => {
|
|
11
|
+
const timeoutHandle = setTimeout(resolve, timeoutMs);
|
|
12
|
+
cleanup.push(() => clearTimeout(timeoutHandle));
|
|
13
|
+
});
|
|
14
|
+
await Promise.race([abortPromise, timeoutPromise]);
|
|
15
|
+
cleanup.forEach((it) => it());
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
abortableTimeout
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../../../packages/engine-common/src/runnable/utils.ts"],"sourcesContent":["export const abortableTimeout = async (timeoutMs: number, abortSignal: AbortSignal): Promise<void> => {\n\tif (abortSignal.aborted) {\n\t\treturn Promise.resolve()\n\t}\n\n\tlet cleanup: (() => void)[] = []\n\n\tconst abortPromise = new Promise(resolve => {\n\t\tabortSignal.addEventListener('abort', resolve)\n\t\tcleanup.push(() => abortSignal.removeEventListener('abort', resolve))\n\t})\n\n\tconst timeoutPromise = new Promise<void>(resolve => {\n\t\tconst timeoutHandle = setTimeout(resolve, timeoutMs)\n\t\tcleanup.push(() => clearTimeout(timeoutHandle))\n\t})\n\n\tawait Promise.race([abortPromise, timeoutPromise])\n\tcleanup.forEach(it => it())\n}\n\n"],"names":[],"mappings":"AAAa,MAAA,mBAAmB,OAAO,WAAmB,gBAA4C;AACrG,MAAI,YAAY,SAAS;AACxB,WAAO,QAAQ;EAChB;AAEA,MAAI,UAA0B,CAAA;AAExB,QAAA,eAAe,IAAI,QAAQ,CAAW,YAAA;AAC/B,gBAAA,iBAAiB,SAAS,OAAO;AAC7C,YAAQ,KAAK,MAAM,YAAY,oBAAoB,SAAS,OAAO,CAAC;AAAA,EAAA,CACpE;AAEK,QAAA,iBAAiB,IAAI,QAAc,CAAW,YAAA;AAC7C,UAAA,gBAAgB,WAAW,SAAS,SAAS;AACnD,YAAQ,KAAK,MAAM,aAAa,aAAa,CAAC;AAAA,EAAA,CAC9C;AAED,QAAM,QAAQ,KAAK,CAAC,cAAc,cAAc,CAAC;AACzC,UAAA,QAAQ,CAAM,OAAA,GAAI,CAAA;AAC3B;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
class PromiseMap extends Map {
|
|
4
|
+
async fetch(key, generator) {
|
|
5
|
+
const value = this.get(key);
|
|
6
|
+
if (value !== void 0) {
|
|
7
|
+
return await value;
|
|
8
|
+
}
|
|
9
|
+
const newValue = generator(key);
|
|
10
|
+
this.set(key, newValue);
|
|
11
|
+
try {
|
|
12
|
+
return await newValue;
|
|
13
|
+
} catch (e) {
|
|
14
|
+
this.delete(key);
|
|
15
|
+
throw e;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.PromiseMap = PromiseMap;
|
|
20
|
+
//# sourceMappingURL=PromiseMap.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromiseMap.cjs","sources":["../../../../../packages/engine-common/src/utils/PromiseMap.ts"],"sourcesContent":["export class PromiseMap<K, V> extends Map<K, Promise<V>>{\n\tasync fetch(key: K, generator: (key: K) => Promise<V>): Promise<V> {\n\t\tconst value = this.get(key)\n\t\tif (value !== undefined) {\n\t\t\treturn await value\n\t\t}\n\t\tconst newValue = generator(key) // intentionally not awaiting\n\t\tthis.set(key, newValue)\n\t\ttry {\n\t\t\treturn await newValue\n\t\t} catch (e) {\n\t\t\tthis.delete(key)\n\t\t\tthrow e\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;AAAO,MAAM,mBAAyB,IAAkB;AAAA,EACvD,MAAM,MAAM,KAAQ,WAA+C;AAC5D,UAAA,QAAQ,KAAK,IAAI,GAAG;AAC1B,QAAI,UAAU,QAAW;AACxB,aAAO,MAAM;AAAA,IACd;AACM,UAAA,WAAW,UAAU,GAAG;AACzB,SAAA,IAAI,KAAK,QAAQ;AAClB,QAAA;AACH,aAAO,MAAM;AAAA,aACL,GAAG;AACX,WAAK,OAAO,GAAG;AACT,YAAA;AAAA,IACP;AAAA,EACD;AACD;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
class PromiseMap extends Map {
|
|
2
|
+
async fetch(key, generator) {
|
|
3
|
+
const value = this.get(key);
|
|
4
|
+
if (value !== void 0) {
|
|
5
|
+
return await value;
|
|
6
|
+
}
|
|
7
|
+
const newValue = generator(key);
|
|
8
|
+
this.set(key, newValue);
|
|
9
|
+
try {
|
|
10
|
+
return await newValue;
|
|
11
|
+
} catch (e) {
|
|
12
|
+
this.delete(key);
|
|
13
|
+
throw e;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
PromiseMap
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=PromiseMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromiseMap.js","sources":["../../../../../packages/engine-common/src/utils/PromiseMap.ts"],"sourcesContent":["export class PromiseMap<K, V> extends Map<K, Promise<V>>{\n\tasync fetch(key: K, generator: (key: K) => Promise<V>): Promise<V> {\n\t\tconst value = this.get(key)\n\t\tif (value !== undefined) {\n\t\t\treturn await value\n\t\t}\n\t\tconst newValue = generator(key) // intentionally not awaiting\n\t\tthis.set(key, newValue)\n\t\ttry {\n\t\t\treturn await newValue\n\t\t} catch (e) {\n\t\t\tthis.delete(key)\n\t\t\tthrow e\n\t\t}\n\t}\n}\n"],"names":[],"mappings":"AAAO,MAAM,mBAAyB,IAAkB;AAAA,EACvD,MAAM,MAAM,KAAQ,WAA+C;AAC5D,UAAA,QAAQ,KAAK,IAAI,GAAG;AAC1B,QAAI,UAAU,QAAW;AACxB,aAAO,MAAM;AAAA,IACd;AACM,UAAA,WAAW,UAAU,GAAG;AACzB,SAAA,IAAI,KAAK,QAAQ;AAClB,QAAA;AACH,aAAO,MAAM;AAAA,aACL,GAAG;AACX,WAAK,OAAO,GAAG;AACT,YAAA;AAAA,IACP;AAAA,EACD;AACD;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/runnable/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,cAAqB,MAAM,eAAe,WAAW,KAAG,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/runnable/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,cAAqB,MAAM,eAAe,WAAW,KAAG,OAAO,CAAC,IAAI,CAmBhG,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../node_modules/typescript/lib/lib.esnext.string.d.ts","../../../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../node_modules/typescript/lib/lib.esnext.object.d.ts","../../../../node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/@types/react/global.d.ts","../../../../node_modules/csstype/index.d.ts","../../../../node_modules/@types/prop-types/index.d.ts","../../../../node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react/jsx-runtime.d.ts","../../src/MigrationVersionHelper.ts","../../src/utils/PromiseMap.ts","../../src/utils/index.ts","../../../logger/dist/types/handlers/FingerCrossedLoggerHandler.d.ts","../../../logger/dist/types/types.d.ts","../../../logger/dist/types/impl.d.ts","../../../logger/dist/types/levels.d.ts","../../../logger/dist/types/proxy.d.ts","../../../logger/dist/types/handlers/JsonStreamLoggerHandler.d.ts","../../../../node_modules/chalk/index.d.ts","../../../logger/dist/types/handlers/PrettyPrintLoggerHandler.d.ts","../../../logger/dist/types/handlers/LoggerHandlerList.d.ts","../../../logger/dist/types/handlers/NullLoggerHandler.d.ts","../../../logger/dist/types/handlers/TestLoggerHandler.d.ts","../../../logger/dist/types/index.d.ts","../../src/runnable/Runnable.ts","../../src/runnable/utils.ts","../../src/runnable/Supervisor.ts","../../src/runnable/index.ts","../../src/eventEmitter/events.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/accepts/index.d.ts","../../../../node_modules/@types/argparse/index.d.ts","../../../../node_modules/@types/aria-query/index.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../../node_modules/@types/babel__generator/index.d.ts","../../../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../../../node_modules/@types/babel__template/index.d.ts","../../../../node_modules/@types/babel__traverse/index.d.ts","../../../../node_modules/@types/babel__core/index.d.ts","../../../../node_modules/@types/bcryptjs/index.d.ts","../../../../node_modules/@types/connect/index.d.ts","../../../../node_modules/@types/body-parser/index.d.ts","../../../../node_modules/@types/content-disposition/index.d.ts","../../../../node_modules/@types/keygrip/index.d.ts","../../../../node_modules/@types/range-parser/index.d.ts","../../../../node_modules/@types/qs/index.d.ts","../../../../node_modules/@types/express-serve-static-core/index.d.ts","../../../../node_modules/@types/mime/Mime.d.ts","../../../../node_modules/@types/mime/index.d.ts","../../../../node_modules/@types/serve-static/index.d.ts","../../../../node_modules/@types/express/index.d.ts","../../../../node_modules/@types/cookies/index.d.ts","../../../../node_modules/@types/estree/index.d.ts","../../../../node_modules/@types/jsonfile/index.d.ts","../../../../node_modules/@types/jsonfile/utils.d.ts","../../../../node_modules/@types/fs-extra/index.d.ts","../../../../node_modules/@types/http-assert/index.d.ts","../../../../node_modules/@types/http-errors/index.d.ts","../../../../node_modules/@types/is-hotkey/index.d.ts","../../../../node_modules/@types/js-levenshtein/index.d.ts","../../../../node_modules/@types/js-yaml/index.d.ts","../../../../node_modules/parse5/dist/common/html.d.ts","../../../../node_modules/parse5/dist/common/token.d.ts","../../../../node_modules/parse5/dist/common/error-codes.d.ts","../../../../node_modules/parse5/dist/tokenizer/preprocessor.d.ts","../../../../node_modules/parse5/dist/tokenizer/index.d.ts","../../../../node_modules/parse5/dist/tree-adapters/interface.d.ts","../../../../node_modules/parse5/dist/parser/open-element-stack.d.ts","../../../../node_modules/parse5/dist/parser/formatting-element-list.d.ts","../../../../node_modules/parse5/dist/parser/index.d.ts","../../../../node_modules/parse5/dist/tree-adapters/default.d.ts","../../../../node_modules/parse5/dist/serializer/index.d.ts","../../../../node_modules/parse5/dist/common/foreign-content.d.ts","../../../../node_modules/parse5/dist/index.d.ts","../../../../node_modules/@types/tough-cookie/index.d.ts","../../../../node_modules/@types/jsdom/base.d.ts","../../../../node_modules/@types/jsdom/index.d.ts","../../../../node_modules/@types/json-schema/index.d.ts","../../../../node_modules/@types/json-stable-stringify/index.d.ts","../../../../node_modules/@types/keyv/index.d.ts","../../../../node_modules/@types/koa-compose/index.d.ts","../../../../node_modules/@types/koa/index.d.ts","../../../../node_modules/@types/koa-bodyparser/index.d.ts","../../../../node_modules/@types/koa-compress/index.d.ts","../../../../node_modules/@types/koa__cors/index.d.ts","../../../../node_modules/@types/lodash/common/common.d.ts","../../../../node_modules/@types/lodash/common/array.d.ts","../../../../node_modules/@types/lodash/common/collection.d.ts","../../../../node_modules/@types/lodash/common/date.d.ts","../../../../node_modules/@types/lodash/common/function.d.ts","../../../../node_modules/@types/lodash/common/lang.d.ts","../../../../node_modules/@types/lodash/common/math.d.ts","../../../../node_modules/@types/lodash/common/number.d.ts","../../../../node_modules/@types/lodash/common/object.d.ts","../../../../node_modules/@types/lodash/common/seq.d.ts","../../../../node_modules/@types/lodash/common/string.d.ts","../../../../node_modules/@types/lodash/common/util.d.ts","../../../../node_modules/@types/lodash/index.d.ts","../../../../node_modules/@types/mime-types/index.d.ts","../../../../node_modules/@types/mustache/index.d.ts","../../../../node_modules/form-data/index.d.ts","../../../../node_modules/@types/node-fetch/externals.d.ts","../../../../node_modules/@types/node-fetch/index.d.ts","../../../../node_modules/@types/nodemailer/lib/dkim/index.d.ts","../../../../node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts","../../../../node_modules/@types/nodemailer/lib/xoauth2/index.d.ts","../../../../node_modules/@types/nodemailer/lib/mailer/index.d.ts","../../../../node_modules/@types/nodemailer/lib/mime-node/index.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts","../../../../node_modules/@types/nodemailer/lib/shared/index.d.ts","../../../../node_modules/@types/nodemailer/lib/json-transport/index.d.ts","../../../../node_modules/@types/nodemailer/lib/sendmail-transport/index.d.ts","../../../../node_modules/@types/nodemailer/lib/ses-transport/index.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-pool/index.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-transport/index.d.ts","../../../../node_modules/@types/nodemailer/lib/stream-transport/index.d.ts","../../../../node_modules/@types/nodemailer/index.d.ts","../../../../node_modules/@types/npm-package-arg/index.d.ts","../../../../node_modules/pg-types/index.d.ts","../../../../node_modules/pg-protocol/dist/messages.d.ts","../../../../node_modules/pg-protocol/dist/serializer.d.ts","../../../../node_modules/pg-protocol/dist/parser.d.ts","../../../../node_modules/pg-protocol/dist/index.d.ts","../../../../node_modules/@types/pg/index.d.ts","../../../../node_modules/kleur/kleur.d.ts","../../../../node_modules/@types/prompts/index.d.ts","../../../../node_modules/@types/react-dom/index.d.ts","../../../../node_modules/@types/responselike/index.d.ts","../../../../node_modules/@types/semver/classes/semver.d.ts","../../../../node_modules/@types/semver/functions/parse.d.ts","../../../../node_modules/@types/semver/functions/valid.d.ts","../../../../node_modules/@types/semver/functions/clean.d.ts","../../../../node_modules/@types/semver/functions/inc.d.ts","../../../../node_modules/@types/semver/functions/diff.d.ts","../../../../node_modules/@types/semver/functions/major.d.ts","../../../../node_modules/@types/semver/functions/minor.d.ts","../../../../node_modules/@types/semver/functions/patch.d.ts","../../../../node_modules/@types/semver/functions/prerelease.d.ts","../../../../node_modules/@types/semver/functions/compare.d.ts","../../../../node_modules/@types/semver/functions/rcompare.d.ts","../../../../node_modules/@types/semver/functions/compare-loose.d.ts","../../../../node_modules/@types/semver/functions/compare-build.d.ts","../../../../node_modules/@types/semver/functions/sort.d.ts","../../../../node_modules/@types/semver/functions/rsort.d.ts","../../../../node_modules/@types/semver/functions/gt.d.ts","../../../../node_modules/@types/semver/functions/lt.d.ts","../../../../node_modules/@types/semver/functions/eq.d.ts","../../../../node_modules/@types/semver/functions/neq.d.ts","../../../../node_modules/@types/semver/functions/gte.d.ts","../../../../node_modules/@types/semver/functions/lte.d.ts","../../../../node_modules/@types/semver/functions/cmp.d.ts","../../../../node_modules/@types/semver/functions/coerce.d.ts","../../../../node_modules/@types/semver/classes/comparator.d.ts","../../../../node_modules/@types/semver/classes/range.d.ts","../../../../node_modules/@types/semver/functions/satisfies.d.ts","../../../../node_modules/@types/semver/ranges/max-satisfying.d.ts","../../../../node_modules/@types/semver/ranges/min-satisfying.d.ts","../../../../node_modules/@types/semver/ranges/to-comparators.d.ts","../../../../node_modules/@types/semver/ranges/min-version.d.ts","../../../../node_modules/@types/semver/ranges/valid.d.ts","../../../../node_modules/@types/semver/ranges/outside.d.ts","../../../../node_modules/@types/semver/ranges/gtr.d.ts","../../../../node_modules/@types/semver/ranges/ltr.d.ts","../../../../node_modules/@types/semver/ranges/intersects.d.ts","../../../../node_modules/@types/semver/ranges/simplify.d.ts","../../../../node_modules/@types/semver/ranges/subset.d.ts","../../../../node_modules/@types/semver/internals/identifiers.d.ts","../../../../node_modules/@types/semver/index.d.ts","../../../../node_modules/@types/uuid/index.d.ts","../../../../node_modules/@types/ws/index.d.ts"],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","17edc026abf73c5c2dd508652d63f68ec4efd9d4856e3469890d27598209feb5",{"version":"4af6b0c727b7a2896463d512fafd23634229adf69ac7c00e2ae15a09cb084fad","affectsGlobalScope":true},{"version":"9c00a480825408b6a24c63c1b71362232927247595d7c97659bc24dc68ae0757","affectsGlobalScope":true},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true},{"version":"ae37d6ccd1560b0203ab88d46987393adaaa78c919e51acf32fb82c86502e98c","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"d8670852241d4c6e03f2b89d67497a4bbefe29ecaa5a444e2c11a9b05e6fccc6","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true},{"version":"15b98a533864d324e5f57cd3cfc0579b231df58c1c0f6063ea0fcb13c3c74ff9","affectsGlobalScope":true},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"36a2e4c9a67439aca5f91bb304611d5ae6e20d420503e96c230cf8fcdc948d94","affectsGlobalScope":true},"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","247a952efd811d780e5630f8cfd76f495196f5fa74f6f0fee39ac8ba4a3c9800",{"version":"8ca4709dbd22a34bcc1ebf93e1877645bdb02ebd3f3d9a211a299a8db2ee4ba1","affectsGlobalScope":true},"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3",{"version":"abd7e79c92dcef610f41f96b26bd5c3b8358715ffc84942b4db69dd43d8d9963","signature":"bbd91de97187341736205d0a8ece6f40c93ad659fb60151b0beac520e93a6943"},{"version":"f235566143aa0e9fc527c0db32cb7689d86a5a54834889ccba2a5bad5493c808","signature":"62afe3ebfacfa315cad3d0050bb5190dee425c958fe0e0adbe4547b070babf73"},{"version":"0b30b41eead2a3cef3ea6a0b5d54936ec95aa1a18eb1ba0dd70b9d7a834606b9","signature":"9bb2e4984a824089992c7a84d8986c8953cfce31e018c09385a9f9c036e579e2"},"7c207bae2692e8c8c55cdfcfdf30f8172bf56eea5c6640bcf191bcd60cdb049c","b6c95d1f7fcd6616d38eedd17c0f06e9f124cd97da5c2c112a008628a84f0e0c","edb37fc4f77cfd2dc8bdf5d0475a092466027e1ca13b93537768d981f6b3b3dc","ddb0aa24927489d5f037f1c0df80e5547b66f8cd34907d6c8fb29f39954950ab","d1b772d8b8777638fc4a2ad3bea3d1e29236dfda42dd2d396849f10dfc624a31","d14fda2600fcfa189db0561ba976abbf6120272efdd5bc8898e57170dc2bb32b","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","0ee07fdd0f416d74f438e121442d1dbfbc15059b205811b51dc39f322eb503b7","58937ffce5e0f5c4284e4c1bdcade720ab886577c5f7f2c8d303a96166b8d019","1034064c49c080e29d6575d7de329c3a502ae28ec7af8e1e4671fd94c8b36faa","e7a99ca94bd2c1ca33f87dba90f029ed1004e4ac78387bbd749bc32a3882e82f","7136595171c51782e4b7e47d015e2f4cc5dc3281ffc621d17a13ba3808959884",{"version":"b56bdd37fa6413da0407a3c78cc328d60c73b4e0482ec223c55632dd776c406e","signature":"2abeed1121a1aa615c3be5f9cf07f934ee0b1d685e90929f38ae148bd7e61f90"},{"version":"dce887cc3c1e532ff83655406dbc5a82c9c1b6c7c142de39b3276f5fdac94806","signature":"2c9570ae077341afbec01e262fabf2c450ffda54d2c1de02e9f96183e6338946"},{"version":"52bf9d931c05cb83f04c255c7454c43d64d491a3ed21d705815d022bb393e719","signature":"38a4ed1153c3ae9980dba24d206622a9d16494c683ff618670a7b9ca6f4788cf"},{"version":"d90d6cd47e8a440322dea3cc9efe463474106967ea00bc54fcf5a2588e9174ef","signature":"47b2f9f962224f80233ba5dfb82a1c5b94a43544ac0572c47b7c93bc77257ba0"},{"version":"e0a504ffb0b1373c1cb0e61ec3aede3c3895ec33fc52a94dcc77e9e9c35780dc","signature":"5a14489f2c1eee3f966693404227ae6a01e8db68aede1d3cf33ae9d2dbb0039d"},{"version":"17d9d2bbf8fea9ffe8d7f028702548aa1e0078b1c6bbb172feabfd679c9dca45","signature":"40b3ea6f4540b878de2343edf43c8ad3ad6c091b5a18f68e87a114bd61e5c1e7"},"09df3b4f1c937f02e7fee2836d4c4d7a63e66db70fd4d4e97126f4542cc21d9d","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"4d719cfab49ae4045d15cb6bed0f38ad3d7d6eb7f277d2603502a0f862ca3182","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"5a856afb15f9dc9983faa391dde989826995a33983c1cccb173e9606688e9709","affectsGlobalScope":true},"546ab07e19116d935ad982e76a223275b53bff7771dab94f433b7ab04652936e","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"aefb5a4a209f756b580eb53ea771cca8aad411603926f307a5e5b8ec6b16dcf6","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","f5a8b7ec4b798c88679194a8ebc25dcb6f5368e6e5811fcda9fe12b0d445b8db","b86e1a45b29437f3a99bad4147cb9fe2357617e8008c0484568e5bb5138d6e13","b5b719a47968cd61a6f83f437236bb6fe22a39223b6620da81ef89f5d7a78fb7","42c431e7965b641106b5e25ab3283aa4865ca7bb9909610a2abfa6226e4348be","0b7e732af0a9599be28c091d6bd1cb22c856ec0d415d4749c087c3881ca07a56","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"8d6138a264ddc6f94f16e99d4e117a2d6eb31b217891cf091b6437a2f114d561","affectsGlobalScope":true},"3b4c85eea12187de9929a76792b98406e8778ce575caca8c574f06da82622c54","f788131a39c81e0c9b9e463645dd7132b5bc1beb609b0e31e5c1ceaea378b4df","0c236069ce7bded4f6774946e928e4b3601894d294054af47a553f7abcafe2c1","21894466693f64957b9bd4c80fa3ec7fdfd4efa9d1861e070aca23f10220c9b2","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac",{"version":"6ec93c745c5e3e25e278fa35451bf18ef857f733de7e57c15e7920ac463baa2a","affectsGlobalScope":true},"a5fe4cc622c3bf8e09ababde5f4096ceac53163eefcd95e9cd53f062ff9bb67a","30c2ec6abf6aaa60eb4f32fb1235531506b7961c6d1bdc7430711aec8fd85295","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"308b84e1943ef30015469770e931eb21b795348893b2a6562ca54ea8f0b3c41c","affectsGlobalScope":true},{"version":"d48009cbe8a30a504031cc82e1286f78fed33b7a42abf7602c23b5547b382563","affectsGlobalScope":true},"7aaeb5e62f90e1b2be0fc4844df78cdb1be15c22b427bc6c39d57308785b8f10","3ba30205a029ebc0c91d7b1ab4da73f6277d730ca1fc6692d5a9144c6772c76b","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","458b216959c231df388a5de9dcbcafd4b4ca563bc3784d706d0455467d7d4942","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","f8c87b19eae111f8720b0345ab301af8d81add39621b63614dfc2d15fd6f140a","831c22d257717bf2cbb03afe9c4bcffc5ccb8a2074344d4238bf16d3a857bb12",{"version":"24ba151e213906027e2b1f5223d33575a3612b0234a0e2b56119520bbe0e594b","affectsGlobalScope":true},{"version":"cbf046714f3a3ba2544957e1973ac94aa819fa8aa668846fa8de47eb1c41b0b2","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","eae74e3d50820f37c72c0679fed959cd1e63c98f6a146a55b8c4361582fa6a52","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"aed89e3c18f4c659ee8153a76560dffda23e2d801e1e60d7a67abd84bc555f8d","affectsGlobalScope":true},{"version":"0ed13c80faeb2b7160bffb4926ff299c468e67a37a645b3ae0917ba0db633c1b","affectsGlobalScope":true},"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","2f940651c2f30e6b29f8743fae3f40b7b1c03615184f837132b56ea75edad08b","5749c327c3f789f658072f8340786966c8b05ea124a56c1d8d60e04649495a4d",{"version":"c9d62b2a51b2ff166314d8be84f6881a7fcbccd37612442cf1c70d27d5352f50","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","6738101ae8e56cd3879ab3f99630ada7d78097fc9fd334df7e766216778ca219","dc3b172ee27054dbcedcf5007b78c256021db936f6313a9ce9a3ecbb503fd646","ae77d81a5541a8abb938a0efedf9ac4bea36fb3a24cc28cfa11c598863aba571","1894294e2f0e275a6ca2c3d0af1fb45f629531bbf446f2946dc8c881583a5935","2c8e55457aaf4902941dfdba4061935922e8ee6e120539c9801cd7b400fae050","5f02abbb1b17e3d1e68c5eea14adf4705696e6255e2982b010c0dc2a5417b606","670a76db379b27c8ff42f1ba927828a22862e2ab0b0908e38b671f0e912cc5ed","9e0cf651e8e2c5b9bebbabdff2f7c6f8cedd91b1d9afcc0a854cdff053a88f1b","069bebfee29864e3955378107e243508b163e77ab10de6a5ee03ae06939f0bb9","a3d3f704c5339a36da3ca8c62b29072f87e86c783b8452d235992142ec71aa2d","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90","204dbe6c72467fb14bbe8f06510b11fb541b6ce29580c6e10ebd3bdb2eb0c1f9","ce013414484233b24f42c0fcfca48a60bb66ab4e13c82953662305e8f1ee4925","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c","fedd311d427fdafac411b4e0edc0d1014668853679e021e04717a6de45ff5c0c",{"version":"ae3fe461989bbd951344efc1f1fe932360ce7392e6126bdb225a82a1bbaf15ee","affectsGlobalScope":true},"5b9ecf7da4d71cf3832dbb8336150fa924631811f488ad4690c2dfec2b4fb1d7","951c85f75aac041dddbedfedf565886a7b494e29ec1532e2a9b4a6180560b50e","f47887b61c6cf2f48746980390d6cb5b8013518951d912cfb37fe748071942be","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","eb96a2321f717bccc3e49e104e299152984b927ea4546b559ae631c06565819c","ee7d8894904b465b072be0d2e4b45cf6b887cdba16a467645c4e200982ece7ea","211440ce81e87b3491cdf07155881344b0a61566df6e749acff0be7e8b9d1a07","5d9a0b6e6be8dbb259f64037bce02f34692e8c1519f5cd5d467d7fa4490dced4","880da0e0f3ebca42f9bd1bc2d3e5e7df33f2619d85f18ee0ed4bd16d1800bc32","e98185f4249720ace1921d59c1ff4612fa5c633a183fc9bf28e2e7b8e3c7fd51","6168414aa12d33d0fcfac4f9870aa81ce27e136db6faf182001a5f3792e1d720","0112a7f3c11fc4792e70f5d0d5c9f80ee6a1c5c548723714433da6a03307e87b","a8d630427635fa316e57fa4949132acde9cf23aa067220bffea30612497824cc","7a1dd1e9c8bf5e23129495b10718b280340c7500570e0cfe5cffcdee51e13e48","3411c785dbe8fd42f7d644d1e05a7e72b624774a08a9356479754999419c3c5a","8fb8fdda477cd7382477ffda92c2bb7d9f7ef583b1aa531eb6b2dc2f0a206c10","66995b0c991b5c5d42eff1d950733f85482c7419f7296ab8952e03718169e379","33f3795a4617f98b1bb8dac36312119d02f31897ae75436a1e109ce042b48ee8","2850c9c5dc28d34ad5f354117d0419f325fc8932d2a62eadc4dc52c018cd569b","c753948f7e0febe7aa1a5b71a714001a127a68861309b2c4127775aa9b6d4f24","3e7a40e023e1d4a9eef1a6f08a3ded8edacb67ae5fce072014205d730f717ba5","a77be6fc44c876bc10c897107f84eaba10790913ebdcad40fcda7e47469b2160","382100b010774614310d994bbf16cc9cd291c14f0d417126c7a7cfad1dc1d3f8","91f5dbcdb25d145a56cffe957ec665256827892d779ef108eb2f3864faff523b","4fdf56315340bd1770eb52e1601c3a98e45b1d207202831357e99ce29c35b55c","927955a3de5857e0a1c575ced5a4245e74e6821d720ed213141347dd1870197f","be6fd74528b32986fbf0cd2cfa9192a5ed7f369060b32a7adcb0c8d055708e61","03c258e060b7da220973f84b89615e4e9850e9b5d30b3a8e4840b3e3268ae8eb","6f5a9b68ce8608014210f5a777f8dd82e6382285f6278c811b7b0214bbcac5bd",{"version":"af11413ffc8c34a2a2475cb9d2982b4cc87a9317bf474474eedaacc4aaab4582","affectsGlobalScope":true},"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","13cc3979e1f548aacaa23911f2d6e69c1a2999266c4a1952806de1e9593bdaaa","fec943fdb3275eb6e006b35e04a8e2e99e9adf3f4b969ddf15315ac7575a93e4","5006668996956580886022c05108e32c742823e1b5652aff7914917233731518","0d0a431dda18aaaeaa5f0eee95a956ad63bba7606835537a38b003e36132a531","cee62e64fc4bdfb3798ab8e21486fadd2027ce4128349989acc63905366f91c5","f4b436d9b250c7e7087edef00fc0ecf9a62cbbbfe0f1d1c4f3888f1355c17eeb","80dcca1873e2e57a2c81f9efc12bbbf81d186ac5a7977955b37dd44b3b2cfd0d","ff81bffa4ecfceae2e86b5920c3fcb250b66b1d6ed72944dffdf58123be2481b","458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","da2b6356b84a40111aaecb18304ea4e4fcb43d70efb1c13ca7d7a906445ee0d3","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","aa2c18a1b5a086bbcaae10a4efba409cc95ba7287d8cf8f2591b53704fea3dea","6f294731b495c65ecf46a5694f0082954b961cf05463bea823f8014098eaffa0","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","6c65d33115c7410ecbb59db5fcbb042fc6b831a258d028dbb06b42b75d8459c1","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","b03afe4bec768ae333582915146f48b161e567a81b5ebc31c4d78af089770ac9","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9","4f6a12044ee6f458db11964153830abbc499e73d065c51c329ec97407f4b13dd","169cc96316cacf8b489aaab4ac6bcef7b33e8779a8902bce57c737b4aa372d16","b58c81d4cc365d3986aee6c2a86592edc50f141b796899079196ffb103047390","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","4340936f4e937c452ae783514e7c7bbb7fc06d0c97993ff4865370d0962bb9cf","5009c081fd8ca3fcd6f3adcd071a1c79a933a400532b897822aad0943688a1f1","6825eb4d1c8beb77e9ed6681c830326a15ebf52b171f83ffbca1b1574c90a3b0","1741975791f9be7f803a826457273094096e8bba7a50f8fa960d5ed2328cdbcc","6ec0d1c15d14d63d08ccb10d09d839bf8a724f6b4b9ed134a3ab5042c54a7721","75dabc9afdb451a85e6d46e9ca65ec82ead2256476c0686f671f3421923667a7","ddfc215bfbddf5854d80ab8fb0256bd802f2a8acb6be62f9e630041266d56cd5","2c3bcb8a4ea2fcb4208a06672af7540dd65bf08298d742f041ffa6cbe487cf80","1cce0460d75645fc40044c729da9a16c2e0dabe11a58b5e4bfd62ac840a1835d","c784a9f75a6f27cf8c43cc9a12c66d68d3beb2e7376e1babfae5ae4998ffbc4a","feb4c51948d875fdbbaa402dad77ee40cf1752b179574094b613d8ad98921ce1","a6d3984b706cefe5f4a83c1d3f0918ff603475a2a3afa9d247e4114f18b1f1ef","b457d606cabde6ea3b0bc32c23dc0de1c84bb5cb06d9e101f7076440fc244727","9d59919309a2d462b249abdefba8ca36b06e8e480a77b36c0d657f83a63af465","9faa2661daa32d2369ec31e583df91fd556f74bcbd036dab54184303dee4f311","b08de5693ec0119e033ced692f3ad0c0449c7331fd1d84033ea9b4b22e7f269c","da3d9c69fe4d916969f59b6553ac79b49e8dea8d35084733c396a3555d155f56","f60e3e3060207ac982da13363181fd7ee4beecc19a7c569f0d6bb034331066c2","17230b34bb564a3a2e36f9d3985372ccab4ad1722df2c43f7c5c2b553f68e5db","87ed0f84f0691d5c724b23159db96342e6b04ac69201b02c65936f4281ce1fbe","13868c5792808236b17dfe2803eafce911ea4d09d3b2fda95391891a494f988f","0dfe35191a04e8f9dc7caeb9f52f2ee07402736563d12cbccd15fb5f31ac877f","fa5c2d3fcd8e227e180815df0a0903ed4b116400452af8a75ac5b68e5e1de9da","6ab263df6465e2ed8f1d02922bae18bb5b407020767de021449a4c509859b22e","1cbabdfa7ca0e8ae0967971ef61e151bde38900f91bde4f91193c9347dfb49fb","adb17fea4d847e1267ae1241fa1ac3917c7e332999ebdab388a24d82d4f58240","3cfb0cb51cc2c2e1b313d7c4df04dbf7e5bda0a133c6b309bf6af77cf614b971","cf3d384d082b933d987c4e2fe7bfb8710adfd9dc8155190056ed6695a25a559e","9871b7ee672bc16c78833bdab3052615834b08375cb144e4d2cba74473f4a589","c863198dae89420f3c552b5a03da6ed6d0acfa3807a64772b895db624b0de707","8b03a5e327d7db67112ebbc93b4f744133eda2c1743dbb0a990c61a8007823ef","86c73f2ee1752bac8eeeece234fd05dfcf0637a4fbd8032e4f5f43102faa8eec","42fad1f540271e35ca37cecda12c4ce2eef27f0f5cf0f8dd761d723c744d3159","ff3743a5de32bee10906aff63d1de726f6a7fd6ee2da4b8229054dfa69de2c34","83acd370f7f84f203e71ebba33ba61b7f1291ca027d7f9a662c6307d74e4ac22","1445cec898f90bdd18b2949b9590b3c012f5b7e1804e6e329fb0fe053946d5ec","0e5318ec2275d8da858b541920d9306650ae6ac8012f0e872fe66eb50321a669","cf530297c3fb3a92ec9591dd4fa229d58b5981e45fe6702a0bd2bea53a5e59be","c1f6f7d08d42148ddfe164d36d7aba91f467dbcb3caa715966ff95f55048b3a4","f4e9bf9103191ef3b3612d3ec0044ca4044ca5be27711fe648ada06fad4bcc85","0c1ee27b8f6a00097c2d6d91a21ee4d096ab52c1e28350f6362542b55380059a","7677d5b0db9e020d3017720f853ba18f415219fb3a9597343b1b1012cfd699f7","bc1c6bc119c1784b1a2be6d9c47addec0d83ef0d52c8fbe1f14a51b4dfffc675","52cf2ce99c2a23de70225e252e9822a22b4e0adb82643ab0b710858810e00bf1","770625067bb27a20b9826255a8d47b6b5b0a2d3dfcbd21f89904c731f671ba77","d1ed6765f4d7906a05968fb5cd6d1db8afa14dbe512a4884e8ea5c0f5e142c80","799c0f1b07c092626cf1efd71d459997635911bb5f7fc1196efe449bba87e965","2a184e4462b9914a30b1b5c41cf80c6d3428f17b20d3afb711fff3f0644001fd","9eabde32a3aa5d80de34af2c2206cdc3ee094c6504a8d0c2d6d20c7c179503cc","397c8051b6cfcb48aa22656f0faca2553c5f56187262135162ee79d2b2f6c966","a8ead142e0c87dcd5dc130eba1f8eeed506b08952d905c47621dc2f583b1bff9","a02f10ea5f73130efca046429254a4e3c06b5475baecc8f7b99a0014731be8b3","c2576a4083232b0e2d9bd06875dd43d371dee2e090325a9eac0133fd5650c1cb","4c9a0564bb317349de6a24eb4efea8bb79898fa72ad63a1809165f5bd42970dd","f40ac11d8859092d20f953aae14ba967282c3bb056431a37fced1866ec7a2681","cc11e9e79d4746cc59e0e17473a59d6f104692fd0eeea1bdb2e206eabed83b03","b444a410d34fb5e98aa5ee2b381362044f4884652e8bc8a11c8fe14bbd85518e","c35808c1f5e16d2c571aa65067e3cb95afeff843b259ecfa2fc107a9519b5392","14d5dc055143e941c8743c6a21fa459f961cbc3deedf1bfe47b11587ca4b3ef5","a3ad4e1fc542751005267d50a6298e6765928c0c3a8dce1572f2ba6ca518661c","f237e7c97a3a89f4591afd49ecb3bd8d14f51a1c4adc8fcae3430febedff5eb6","3ffdfbec93b7aed71082af62b8c3e0cc71261cc68d796665faa1e91604fbae8f","662201f943ed45b1ad600d03a90dffe20841e725203ced8b708c91fcd7f9379a","c9ef74c64ed051ea5b958621e7fb853fe3b56e8787c1587aefc6ea988b3c7e79","2462ccfac5f3375794b861abaa81da380f1bbd9401de59ffa43119a0b644253d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","7d8ddf0f021c53099e34ee831a06c394d50371816caa98684812f089b4c6b3d4","7d2b7fe4adb76d8253f20e4dbdce044f1cdfab4902ec33c3604585f553883f7d","5562230b6ae4f2205fddf46ab28518d4b0a5727c1e04d4f568c76d0271ae3293"],"root":[[79,81],[94,99]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"useDefineForClassFields":true},"fileIdsList":[[179,190],[179],[152,179,186],[179,190,191,192,193,194],[179,190,192],[152,179,186,197],[152,179,186,197,200,207],[149,152,179,186,201,202],[179,198,202,203,206],[150,179,186,210,211],[149,179,181,186,230,231,233],[179,232],[150,178,179,186],[149,179,186],[179,238],[179,184,186,238],[149,152,153,157,163,178,179,186,187,199,200,208,213,214,237],[179,242,244,245,246,247,248,249,250,251,252,253,254],[179,242,243,245,246,247,248,249,250,251,252,253,254],[179,243,244,245,246,247,248,249,250,251,252,253,254],[179,242,243,244,246,247,248,249,250,251,252,253,254],[179,242,243,244,245,247,248,249,250,251,252,253,254],[179,242,243,244,245,246,248,249,250,251,252,253,254],[179,242,243,244,245,246,247,249,250,251,252,253,254],[179,242,243,244,245,246,247,248,250,251,252,253,254],[179,242,243,244,245,246,247,248,249,251,252,253,254],[179,242,243,244,245,246,247,248,249,250,252,253,254],[179,242,243,244,245,246,247,248,249,250,251,253,254],[179,242,243,244,245,246,247,248,249,250,251,252,254],[179,242,243,244,245,246,247,248,249,250,251,252,253],[179,205],[179,204],[152,178,179,186,257,258],[100,179],[136,179],[137,142,170,179],[138,149,150,157,167,178,179],[138,139,149,157,179],[140,179],[141,142,150,158,179],[142,167,175,179],[143,145,149,157,179],[144,179],[145,146,179],[149,179],[147,149,179],[136,149,179],[149,150,151,167,178,179],[149,150,151,164,167,170,179],[134,179,183],[145,149,152,157,167,178,179],[149,150,152,153,157,167,175,178,179],[152,154,167,175,178,179],[100,101,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185],[149,155,179],[156,178,179,183],[145,149,157,167,179],[158,179],[159,179],[136,160,179],[161,177,179,183],[162,179],[163,179],[149,164,165,179],[164,166,179,181],[137,149,167,168,169,170,179],[137,167,169,179],[167,168,179],[170,179],[171,179],[136,167,179],[149,173,174,179],[173,174,179],[142,157,167,175,179],[176,179],[157,177,179],[137,152,163,178,179],[142,179],[167,179,180],[156,179,181],[179,182],[137,142,149,151,160,167,178,179,181,183],[167,179,184],[179,186,261,263,267,268,269,270,271,272],[167,179,186],[149,179,186,261,263,264,266,273],[149,157,167,178,179,186,260,261,262,264,265,266,273],[167,179,186,263,264],[167,179,186,263,265],[179,186,261,263,264,266,273],[167,179,186,265],[149,157,167,175,179,186,262,264,266],[149,179,186,261,263,264,265,266,273],[149,167,179,186,261,262,263,264,265,266,273],[149,167,179,186,261,263,264,266,273],[152,167,179,186,266],[149,167,175,179,186,275,276,279,280],[167,179,186,281],[77,179],[74,75,76,179],[152,167,179,186],[179,285,324],[179,285,309,324],[179,324],[179,285],[179,285,310,324],[179,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323],[179,310,324],[152,179,186,205],[149,152,154,167,175,178,179,184,186],[179,219],[179,218,219],[179,218],[179,218,219,220,222,223,226,227,228,229],[179,219,223],[179,218,219,220,222,223,224,225],[179,218,223],[179,223,227],[179,219,220,221],[179,220],[179,218,219,223],[179,186,276,277,278],[179,186],[167,179,186,276],[111,115,178,179],[111,167,178,179],[106,179],[108,111,175,178,179],[157,175,179],[106,179,186],[108,111,157,178,179],[103,104,107,110,137,149,167,178,179],[103,109,179],[107,111,137,170,178,179,186],[137,179,186],[127,137,179,186],[105,106,179,186],[111,179],[105,106,107,108,109,110,111,112,113,115,116,117,118,119,120,121,122,123,124,125,126,128,129,130,131,132,133,179],[111,118,119,179],[109,111,119,120,179],[110,179],[103,106,111,179],[111,115,119,120,179],[115,179],[109,111,114,178,179],[103,108,109,111,115,118,179],[137,167,179],[106,111,127,137,179,183,186],[78,179],[78,79,81,97,98,179],[78,93,179],[78,94,95,179],[78,94,96,179],[78,80,179],[83,179],[83,88,179],[82,83,84,85,86,87,89,90,91,92,179],[82,179]],"referencedMap":[[192,1],[190,2],[187,3],[188,2],[189,2],[195,4],[191,1],[193,5],[194,1],[196,2],[198,6],[197,3],[199,2],[208,7],[209,2],[203,8],[207,9],[212,10],[213,2],[214,2],[215,2],[216,2],[217,2],[232,11],[233,12],[234,2],[235,2],[210,13],[211,2],[200,2],[236,14],[239,15],[237,15],[240,16],[238,17],[241,15],[243,18],[244,19],[242,20],[245,21],[246,22],[247,23],[248,24],[249,25],[250,26],[251,27],[252,28],[253,29],[254,30],[255,2],[204,31],[205,32],[256,2],[258,2],[259,33],[100,34],[101,34],[136,35],[137,36],[138,37],[139,38],[140,39],[141,40],[142,41],[143,42],[144,43],[145,44],[146,44],[148,45],[147,46],[149,47],[150,48],[151,49],[135,50],[185,2],[152,51],[153,52],[154,53],[186,54],[155,55],[156,56],[157,57],[158,58],[159,59],[160,60],[161,61],[162,62],[163,63],[164,64],[165,64],[166,65],[167,66],[169,67],[168,68],[170,69],[171,70],[172,71],[173,72],[174,73],[175,74],[176,75],[177,76],[178,77],[179,78],[180,79],[181,80],[182,81],[183,82],[184,83],[273,84],[260,85],[267,86],[263,87],[261,88],[264,89],[268,90],[269,86],[266,91],[265,92],[270,93],[271,94],[272,95],[262,96],[274,2],[280,97],[282,98],[76,2],[202,2],[201,2],[283,99],[74,2],[77,100],[78,99],[284,101],[309,102],[310,103],[285,104],[288,104],[307,102],[308,102],[298,102],[297,105],[295,102],[290,102],[303,102],[301,102],[305,102],[289,102],[302,102],[306,102],[291,102],[292,102],[304,102],[286,102],[293,102],[294,102],[296,102],[300,102],[311,106],[299,102],[287,102],[324,107],[323,2],[318,106],[320,108],[319,106],[312,106],[313,106],[315,106],[317,106],[321,108],[322,108],[314,108],[316,108],[206,109],[231,2],[325,2],[326,110],[102,2],[88,2],[75,2],[257,101],[281,2],[220,111],[229,112],[218,2],[219,113],[230,114],[225,115],[226,116],[224,117],[228,118],[222,119],[221,120],[227,121],[223,112],[279,122],[276,123],[278,124],[277,123],[275,2],[72,2],[73,2],[12,2],[13,2],[15,2],[14,2],[2,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[23,2],[3,2],[24,2],[4,2],[25,2],[29,2],[26,2],[27,2],[28,2],[30,2],[31,2],[32,2],[5,2],[33,2],[34,2],[35,2],[36,2],[6,2],[40,2],[37,2],[38,2],[39,2],[41,2],[7,2],[42,2],[47,2],[48,2],[43,2],[44,2],[45,2],[46,2],[8,2],[52,2],[49,2],[50,2],[51,2],[53,2],[9,2],[54,2],[55,2],[56,2],[59,2],[57,2],[58,2],[60,2],[61,2],[10,2],[62,2],[1,2],[63,2],[64,2],[11,2],[69,2],[66,2],[65,2],[70,2],[68,2],[71,2],[67,2],[118,125],[125,126],[117,125],[132,127],[109,128],[108,129],[131,123],[126,130],[129,131],[111,132],[110,133],[106,134],[105,135],[128,136],[107,137],[112,138],[113,2],[116,138],[103,2],[134,139],[133,138],[120,140],[121,141],[123,142],[119,143],[122,144],[127,123],[114,145],[115,146],[124,147],[104,148],[130,149],[79,150],[98,150],[99,151],[94,152],[96,153],[97,154],[95,150],[80,150],[81,155],[82,156],[87,156],[90,156],[91,156],[89,157],[92,156],[84,156],[93,158],[85,156],[86,156],[83,159]],"latestChangedDtsFile":"./index.d.ts"},"version":"5.5.3"}
|
package/package.json
CHANGED
|
@@ -1,20 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/engine-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.8",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
-
"main": "dist/
|
|
6
|
-
"
|
|
7
|
-
"test": "vitest --dir ./tests/cases"
|
|
8
|
-
},
|
|
9
|
-
"typings": "dist/src/index.d.ts",
|
|
5
|
+
"main": "./dist/production/index.js",
|
|
6
|
+
"typings": "./dist/types/index.d.ts",
|
|
10
7
|
"exports": {
|
|
11
|
-
"
|
|
12
|
-
|
|
8
|
+
".": {
|
|
9
|
+
"import": {
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
|
+
"development": "./dist/development/index.js",
|
|
12
|
+
"production": "./dist/production/index.js",
|
|
13
|
+
"typescript": "./src/index.ts",
|
|
14
|
+
"default": "./dist/production/index.js"
|
|
15
|
+
},
|
|
16
|
+
"require": {
|
|
17
|
+
"types": "./dist/types/index.d.ts",
|
|
18
|
+
"development": "./dist/development/index.cjs",
|
|
19
|
+
"production": "./dist/production/index.cjs",
|
|
20
|
+
"typescript": "./src/index.ts",
|
|
21
|
+
"default": "./dist/production/index.cjs"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
13
24
|
},
|
|
14
25
|
"devDependencies": {
|
|
15
26
|
"@types/node": "^20.9.0"
|
|
16
27
|
},
|
|
17
28
|
"dependencies": {
|
|
18
|
-
"@contember/logger": "
|
|
19
|
-
}
|
|
29
|
+
"@contember/logger": "2.0.0-alpha.8"
|
|
30
|
+
},
|
|
31
|
+
"type": "module"
|
|
20
32
|
}
|
package/src/tsconfig.json
CHANGED
package/vitest.config.ts
ADDED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MigrationVersionHelper = void 0;
|
|
4
|
-
class MigrationVersionHelper {
|
|
5
|
-
static extractVersion(filename) {
|
|
6
|
-
return filename.substring(0, this.prefixLength);
|
|
7
|
-
}
|
|
8
|
-
static createVersion(name, increment = 0) {
|
|
9
|
-
const normalizedName = MigrationVersionHelper.normalizeMigrationLabel(name);
|
|
10
|
-
const version = MigrationVersionHelper.createTimePrefix(increment);
|
|
11
|
-
return [version, `${version}-${normalizedName}`];
|
|
12
|
-
}
|
|
13
|
-
static extractName(filename) {
|
|
14
|
-
return filename.substring(0, filename.lastIndexOf('.'));
|
|
15
|
-
}
|
|
16
|
-
static createTimePrefix(increment) {
|
|
17
|
-
const now = new Date();
|
|
18
|
-
now.setSeconds(now.getSeconds() + increment);
|
|
19
|
-
const year = now.getFullYear();
|
|
20
|
-
const month = (now.getMonth() + 1).toString().padStart(2, '0');
|
|
21
|
-
const day = now //
|
|
22
|
-
.getDate()
|
|
23
|
-
.toString()
|
|
24
|
-
.padStart(2, '0');
|
|
25
|
-
const hours = now //
|
|
26
|
-
.getHours()
|
|
27
|
-
.toString()
|
|
28
|
-
.padStart(2, '0');
|
|
29
|
-
const minutes = now //
|
|
30
|
-
.getMinutes()
|
|
31
|
-
.toString()
|
|
32
|
-
.padStart(2, '0');
|
|
33
|
-
const seconds = now //
|
|
34
|
-
.getSeconds()
|
|
35
|
-
.toString()
|
|
36
|
-
.padStart(2, '0');
|
|
37
|
-
return `${year}-${month}-${day}-${hours}${minutes}${seconds}`;
|
|
38
|
-
}
|
|
39
|
-
static normalizeMigrationLabel(name) {
|
|
40
|
-
return name.toLowerCase().replace(/[^a-z0-9]+/g, '-');
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.MigrationVersionHelper = MigrationVersionHelper;
|
|
44
|
-
MigrationVersionHelper.prefixLength = 'YYYY-MM-DD-HHIISS'.length;
|
|
45
|
-
//# sourceMappingURL=MigrationVersionHelper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MigrationVersionHelper.js","sourceRoot":"","sources":["../../src/MigrationVersionHelper.ts"],"names":[],"mappings":";;;AAAA,MAAa,sBAAsB;IAG3B,MAAM,CAAC,cAAc,CAAC,QAAgB;QAC5C,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,YAAY,CAAC,CAAA;IAChD,CAAC;IAEM,MAAM,CAAC,aAAa,CAAC,IAAY,EAAE,YAAoB,CAAC;QAC9D,MAAM,cAAc,GAAG,sBAAsB,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAA;QAC3E,MAAM,OAAO,GAAG,sBAAsB,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAA;QAClE,OAAO,CAAC,OAAO,EAAE,GAAG,OAAO,IAAI,cAAc,EAAE,CAAC,CAAA;IACjD,CAAC;IAEM,MAAM,CAAC,WAAW,CAAC,QAAgB;QACzC,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;IACxD,CAAC;IAEO,MAAM,CAAC,gBAAgB,CAAC,SAAiB;QAChD,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QACtB,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,SAAS,CAAC,CAAA;QAC5C,MAAM,IAAI,GAAG,GAAG,CAAC,WAAW,EAAE,CAAA;QAC9B,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;QAC9D,MAAM,GAAG,GAAG,GAAG,CAAC,EAAE;aAChB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;QAClB,MAAM,KAAK,GAAG,GAAG,CAAC,EAAE;aAClB,QAAQ,EAAE;aACV,QAAQ,EAAE;aACV,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;QAClB,MAAM,OAAO,GAAG,GAAG,CAAC,EAAE;aACpB,UAAU,EAAE;aACZ,QAAQ,EAAE;aACV,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;QAClB,MAAM,OAAO,GAAG,GAAG,CAAC,EAAE;aACpB,UAAU,EAAE;aACZ,QAAQ,EAAE;aACV,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;QAElB,OAAO,GAAG,IAAI,IAAI,KAAK,IAAI,GAAG,IAAI,KAAK,GAAG,OAAO,GAAG,OAAO,EAAE,CAAA;IAC9D,CAAC;IAEO,MAAM,CAAC,uBAAuB,CAAC,IAAY;QAClD,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC,CAAA;IACtD,CAAC;;AA5CF,wDA6CC;AA5Cc,mCAAY,GAAG,mBAAmB,CAAC,MAAM,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventManager = void 0;
|
|
4
|
-
class EventManager {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.listeners = {};
|
|
7
|
-
}
|
|
8
|
-
on(event, cb) {
|
|
9
|
-
var _a;
|
|
10
|
-
var _b;
|
|
11
|
-
((_a = (_b = this.listeners)[event]) !== null && _a !== void 0 ? _a : (_b[event] = [])).push(cb);
|
|
12
|
-
return () => {
|
|
13
|
-
var _a;
|
|
14
|
-
return this.listeners[event] = (_a = this.listeners[event]) === null || _a === void 0 ? void 0 : _a.filter(it => it !== cb);
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
fire(event, args) {
|
|
18
|
-
var _a;
|
|
19
|
-
const result = [];
|
|
20
|
-
for (const cb of (_a = this.listeners[event]) !== null && _a !== void 0 ? _a : []) {
|
|
21
|
-
result.push(cb(args));
|
|
22
|
-
}
|
|
23
|
-
return result;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.EventManager = EventManager;
|
|
27
|
-
//# sourceMappingURL=events.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/eventEmitter/events.ts"],"names":[],"mappings":";;;AAUA,MAAa,YAAY;IAAzB;QACS,cAAS,GAEb,EAAE,CAAA;IAgBP,CAAC;IAdO,EAAE,CAAoB,KAAQ,EAAE,EAAQ;;;QAC9C,aAAC,IAAI,CAAC,SAAS,EAAC,KAAK,wCAAL,KAAK,IAAM,EAAE,EAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACvC,OAAO,GAAG,EAAE;;YACX,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,MAAA,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,0CAAE,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;QAC9E,CAAC,CAAA;IACF,CAAC;IAEM,IAAI,CAAoB,KAAQ,EAAE,IAAyB;;QACjE,MAAM,MAAM,GAAuB,EAAE,CAAA;QACrC,KAAK,MAAM,EAAE,IAAI,MAAA,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,mCAAI,EAAE,EAAE;YAC7C,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAA;SACrB;QACD,OAAO,MAAM,CAAA;IACd,CAAC;CACD;AAnBD,oCAmBC"}
|