@rdfc/js-runner 1.0.0-alpha.7 → 2.0.0-alpha.1
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/.husky/pre-commit +6 -0
- package/.prettierrc +4 -0
- package/README.md +3 -38
- package/__tests__/channels.test.ts +133 -0
- package/bin/runner.js +8 -0
- package/eslint.config.mjs +21 -0
- package/examples/echo/package-lock.json +80 -0
- package/examples/echo/package.json +18 -0
- package/examples/echo/pipeline.ttl +30 -0
- package/examples/echo/processors.ttl +84 -0
- package/examples/echo/src/processors.ts +75 -0
- package/examples/echo/test.ttl +14 -0
- package/examples/echo/tsconfig.json +114 -0
- package/examples/echo/untitled:/types/MyType.ttl +0 -0
- package/index.ttl +63 -0
- package/jest.config.js +2 -0
- package/lib/client.d.ts +1 -0
- package/lib/client.js +43 -0
- package/lib/convertor.d.ts +9 -0
- package/lib/convertor.js +51 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +5 -0
- package/lib/jsonld.d.ts +17 -0
- package/lib/jsonld.js +134 -0
- package/lib/logger.d.ts +15 -0
- package/lib/logger.js +27 -0
- package/lib/processor.d.ts +19 -0
- package/lib/processor.js +13 -0
- package/lib/reader.d.ts +29 -0
- package/lib/reader.js +110 -0
- package/lib/runner.d.ts +25 -0
- package/lib/runner.js +111 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/util_processors.d.ts +11 -0
- package/lib/util_processors.js +13 -0
- package/lib/writer.d.ts +25 -0
- package/lib/writer.js +57 -0
- package/package.json +53 -59
- package/src/client.ts +52 -0
- package/src/convertor.ts +59 -0
- package/src/index.ts +4 -0
- package/src/jsonld.ts +217 -0
- package/src/logger.ts +38 -0
- package/src/processor.ts +39 -0
- package/src/reader.ts +148 -0
- package/src/runner.ts +186 -0
- package/src/util_processors.ts +20 -0
- package/src/writer.ts +89 -0
- package/tsconfig.json +33 -0
- package/vite.config.ts +10 -0
- package/LICENSE +0 -21
- package/bin/js-runner.js +0 -4
- package/channels/file.ttl +0 -37
- package/channels/http.ttl +0 -59
- package/channels/kafka.ttl +0 -98
- package/channels/ws.ttl +0 -33
- package/dist/args.d.ts +0 -4
- package/dist/args.js +0 -59
- package/dist/connectors/file.d.ts +0 -15
- package/dist/connectors/file.js +0 -89
- package/dist/connectors/http.d.ts +0 -14
- package/dist/connectors/http.js +0 -82
- package/dist/connectors/kafka.d.ts +0 -48
- package/dist/connectors/kafka.js +0 -64
- package/dist/connectors/ws.d.ts +0 -10
- package/dist/connectors/ws.js +0 -69
- package/dist/connectors.d.ts +0 -57
- package/dist/connectors.js +0 -174
- package/dist/index.d.ts +0 -39
- package/dist/index.js +0 -88
- package/dist/profiling.d.ts +0 -6
- package/dist/profiling.js +0 -79
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/util.d.ts +0 -43
- package/dist/util.js +0 -75
- package/ontology.ttl +0 -196
- package/processor/echo.ttl +0 -38
- package/processor/resc.ttl +0 -34
- package/processor/send.ttl +0 -40
- package/processor/test.js +0 -35
package/dist/index.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { Store } from "n3";
|
|
2
|
-
import { getArgs } from "./args.js";
|
|
3
|
-
import { load_store, LOG, namedNode } from "./util.js";
|
|
4
|
-
import path from "path";
|
|
5
|
-
import { RDF } from "@treecg/types";
|
|
6
|
-
import { ChannelFactory, Conn, JsOntology } from "./connectors.js";
|
|
7
|
-
import { extractShapes } from "rdf-lens";
|
|
8
|
-
import { setFileProfiler } from "./profiling.js";
|
|
9
|
-
export * from "./connectors.js";
|
|
10
|
-
export { profiler } from "./profiling.js";
|
|
11
|
-
function safeJoin(a, b) {
|
|
12
|
-
if (b.startsWith("/")) {
|
|
13
|
-
return b;
|
|
14
|
-
}
|
|
15
|
-
return path.join(a, b);
|
|
16
|
-
}
|
|
17
|
-
export async function extractProcessors(source, apply) {
|
|
18
|
-
const store = new Store();
|
|
19
|
-
await load_store(source, store);
|
|
20
|
-
const quads = store.getQuads(null, null, null, null);
|
|
21
|
-
const config = extractShapes(quads, apply);
|
|
22
|
-
const subjects = quads
|
|
23
|
-
.filter((x) => x.predicate.equals(RDF.terms.type) &&
|
|
24
|
-
x.object.equals(JsOntology.JsProcess))
|
|
25
|
-
.map((x) => x.subject);
|
|
26
|
-
const processorLens = config.lenses[JsOntology.JsProcess.value];
|
|
27
|
-
const processors = (subjects.map((id) => processorLens.execute({ id, quads })));
|
|
28
|
-
return { processors, quads, shapes: config };
|
|
29
|
-
}
|
|
30
|
-
export function extractSteps(proc, quads, config) {
|
|
31
|
-
const out = [];
|
|
32
|
-
const subjects = quads
|
|
33
|
-
.filter((x) => x.predicate.equals(RDF.terms.type) && x.object.equals(proc.ty))
|
|
34
|
-
.map((x) => x.subject);
|
|
35
|
-
const processorLens = config.lenses[proc.ty.value];
|
|
36
|
-
const fields = proc.mapping.parameters;
|
|
37
|
-
for (const id of subjects) {
|
|
38
|
-
const obj = (processorLens.execute({ id, quads }));
|
|
39
|
-
const functionArgs = new Array(fields.length);
|
|
40
|
-
for (const field of fields) {
|
|
41
|
-
functionArgs[field.position] = obj[field.parameter];
|
|
42
|
-
}
|
|
43
|
-
out.push({ args: functionArgs, id, type: proc.ty });
|
|
44
|
-
}
|
|
45
|
-
return out;
|
|
46
|
-
}
|
|
47
|
-
async function setupProfiler(location, quads, shapes) {
|
|
48
|
-
if (quads.find((x) => x.subject.value === location &&
|
|
49
|
-
x.predicate.equals(RDF.terms.type) &&
|
|
50
|
-
x.object.value === "https://w3id.org/conn/js#FileProfilerShape")) {
|
|
51
|
-
const profilerConfig = (shapes.lenses["https://w3id.org/conn/js#FileProfilerShape"].execute({
|
|
52
|
-
quads,
|
|
53
|
-
id: namedNode(location),
|
|
54
|
-
}));
|
|
55
|
-
setFileProfiler(profilerConfig.path, profilerConfig.interval);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
export async function jsRunner() {
|
|
59
|
-
const args = getArgs();
|
|
60
|
-
const cwd = process.cwd();
|
|
61
|
-
const location = safeJoin(cwd, args.input).replaceAll("\\", "/");
|
|
62
|
-
const source = {
|
|
63
|
-
location,
|
|
64
|
-
type: "remote",
|
|
65
|
-
};
|
|
66
|
-
const factory = new ChannelFactory();
|
|
67
|
-
const apply = {};
|
|
68
|
-
apply[Conn.ReaderChannel.value] = factory.createReader.bind(factory);
|
|
69
|
-
apply[Conn.WriterChannel.value] = factory.createWriter.bind(factory);
|
|
70
|
-
const { processors, quads, shapes } = await extractProcessors(source, apply);
|
|
71
|
-
setupProfiler(location, quads, shapes);
|
|
72
|
-
LOG.main("Found %d processors", processors.length);
|
|
73
|
-
const starts = [];
|
|
74
|
-
for (const proc of processors) {
|
|
75
|
-
const argss = extractSteps(proc, quads, shapes);
|
|
76
|
-
const jsProgram = await import("file://" + proc.file);
|
|
77
|
-
process.chdir(proc.location);
|
|
78
|
-
for (const step of argss) {
|
|
79
|
-
starts.push(await jsProgram[proc.func](...step.args));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
await factory.init();
|
|
83
|
-
for (const s of starts) {
|
|
84
|
-
if (s && typeof s === "function") {
|
|
85
|
-
s();
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
package/dist/profiling.d.ts
DELETED
package/dist/profiling.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { writeFileSync } from "fs";
|
|
2
|
-
class NoopProfiler {
|
|
3
|
-
start() {
|
|
4
|
-
return 0;
|
|
5
|
-
}
|
|
6
|
-
stop() { }
|
|
7
|
-
}
|
|
8
|
-
class FileProfiler {
|
|
9
|
-
file;
|
|
10
|
-
stack;
|
|
11
|
-
out = [];
|
|
12
|
-
iv;
|
|
13
|
-
currentOut = {};
|
|
14
|
-
keys = new Set();
|
|
15
|
-
constructor(file, interval = 1000) {
|
|
16
|
-
this.file = file;
|
|
17
|
-
this.stack = [];
|
|
18
|
-
this.start("root");
|
|
19
|
-
this.iv = interval / 1000;
|
|
20
|
-
setInterval(() => this.interval(), interval);
|
|
21
|
-
process.on("exit", () => {
|
|
22
|
-
this.interval();
|
|
23
|
-
const keyArray = [...this.keys];
|
|
24
|
-
let csv = keyArray.join(",") + ",time" + "\n";
|
|
25
|
-
let at = 0;
|
|
26
|
-
for (const o of this.out) {
|
|
27
|
-
const row = keyArray.map((key) => o[key] || 0).join(",") + "," + at;
|
|
28
|
-
at += this.iv;
|
|
29
|
-
csv += row + "\n";
|
|
30
|
-
}
|
|
31
|
-
writeFileSync(this.file, csv, { flush: true });
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
interval() {
|
|
35
|
-
const out = this.currentOut;
|
|
36
|
-
this.currentOut = {};
|
|
37
|
-
const time = process.hrtime.bigint();
|
|
38
|
-
for (let i = this.stack.length - 1; i >= 0; i--) {
|
|
39
|
-
const st = this.stack[i];
|
|
40
|
-
if (!out[st.label]) {
|
|
41
|
-
out[st.label] = 0;
|
|
42
|
-
}
|
|
43
|
-
const totalThis = time - st.start;
|
|
44
|
-
if (i > 0) {
|
|
45
|
-
this.stack[i - 1].children += totalThis;
|
|
46
|
-
}
|
|
47
|
-
out[st.label] += Number(time - st.start - st.children);
|
|
48
|
-
st.children = BigInt(0);
|
|
49
|
-
st.start = time;
|
|
50
|
-
}
|
|
51
|
-
this.out.push(out);
|
|
52
|
-
}
|
|
53
|
-
start(name) {
|
|
54
|
-
this.keys.add(name);
|
|
55
|
-
this.stack.push({
|
|
56
|
-
label: name,
|
|
57
|
-
start: process.hrtime.bigint(),
|
|
58
|
-
children: BigInt(0),
|
|
59
|
-
});
|
|
60
|
-
return 0;
|
|
61
|
-
}
|
|
62
|
-
stop(idx) {
|
|
63
|
-
const self = this.stack.pop();
|
|
64
|
-
const time = process.hrtime.bigint();
|
|
65
|
-
const value = time - self.start;
|
|
66
|
-
if (this.stack.length) {
|
|
67
|
-
this.stack[this.stack.length - 1].children += value;
|
|
68
|
-
}
|
|
69
|
-
if (!this.currentOut[self.label]) {
|
|
70
|
-
this.currentOut[self.label] = 0;
|
|
71
|
-
}
|
|
72
|
-
this.currentOut[self.label] += Number(value - self.children);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
export let profiler = new NoopProfiler();
|
|
76
|
-
export function setFileProfiler(location, interval = 1000) {
|
|
77
|
-
console.log("Setting up FileProfiler at", location, "with interval", interval);
|
|
78
|
-
profiler = new FileProfiler(location, interval);
|
|
79
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
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.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.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/@types/command-line-args/index.d.ts","../node_modules/@types/command-line-usage/index.d.ts","../src/args.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/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.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/sea.d.ts","../node_modules/@types/node/sqlite.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/@rdfjs/types/data-model.d.ts","../node_modules/@rdfjs/types/stream.d.ts","../node_modules/@rdfjs/types/dataset.d.ts","../node_modules/@rdfjs/types/query/common.d.ts","../node_modules/@rdfjs/types/query/queryable.d.ts","../node_modules/@rdfjs/types/query.d.ts","../node_modules/@rdfjs/types/index.d.ts","../node_modules/@treecg/types/dist/lib/Bucketizer.d.ts","../node_modules/@treecg/types/dist/lib/BucketizerOptions.d.ts","../node_modules/@treecg/types/dist/lib/Member.d.ts","../node_modules/@treecg/types/dist/lib/RelationParameters.d.ts","../node_modules/@treecg/types/dist/lib/Fragment.d.ts","../node_modules/@treecg/types/dist/lib/utils/Logger-Browser.d.ts","../node_modules/@treecg/types/dist/lib/Vocabularies.d.ts","../node_modules/@treecg/types/dist/index.d.ts","../src/connectors/file.ts","../node_modules/@types/ws/index.d.ts","../src/connectors/ws.ts","../node_modules/kafkajs/types/index.d.ts","../src/connectors/kafka.ts","../src/connectors/http.ts","../node_modules/@types/n3/index.d.ts","../node_modules/rdf-lens/dist/lens.d.ts","../node_modules/rdf-lens/dist/shacl.d.ts","../node_modules/rdf-lens/dist/index.d.ts","../src/profiling.ts","../src/index.ts","../node_modules/@types/ms/index.d.ts","../node_modules/@types/debug/index.d.ts","../src/util.ts","../src/connectors.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/@types/normalize-package-data/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc",{"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":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"5b7206ca5f2f6eeaac6daa285664f424e0b728f3e31937da89deb8696c5f1dbc","53dd92e141efe47b413a058f3fbcc6e40a84f5afdde16f45de550a476da25d98",{"version":"7c2809ab9b3e9be9c1600d16b39df3367487275efbf995ea8fd9c478f5580f01","signature":"868c24a79becad6edb3001a86ccade1033cb9b3553b200e71f6eb43cb32f78e3"},"e142fda89ed689ea53d6f2c93693898464c7d29a0ae71c6dc8cdfe5a1d76c775","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","4d2b0eb911816f66abe4970898f97a2cfc902bcd743cbfa5017fad79f7ef90d8","bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","93507c745e8f29090efb99399c3f77bec07db17acd75634249dc92f961573387","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107",{"version":"b028f7df55fa70e9d8939bba6c57967ee4eea0fc5d1911b52289978818ab10a3","affectsGlobalScope":true},"db3ec8993b7596a4ef47f309c7b25ee2505b519c13050424d9c34701e5973315",{"version":"5a38909344f43b30b74c90623f83f4412344e992f2ff158e3b6d3725af18dc02","affectsGlobalScope":true},"af49b066a76ce26673fe49d1885cc6b44153f1071ed2d952f2a90fccba1095c9","f22fd1dc2df53eaf5ce0ff9e0a3326fc66f880d6a652210d50563ae72625455f",{"version":"3ddbdb519e87a7827c4f0c4007013f3628ca0ebb9e2b018cf31e5b2f61c593f1","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb",{"version":"6d498d4fd8036ea02a4edcae10375854a0eb1df0496cf0b9d692577d3c0fd603","affectsGlobalScope":true},"24642567d3729bcc545bacb65ee7c0db423400c7f1ef757cab25d05650064f98","fd09b892597ab93e7f79745ce725a3aaf6dd005e8db20f0c63a5d10984cba328","a3be878ff1e1964ab2dc8e0a3b67087cf838731c7f3d8f603337e7b712fdd558","5433f7f77cd1fd53f45bd82445a4e437b2f6a72a32070e907530a4fea56c30c8","9be74296ee565af0c12d7071541fdd23260f53c3da7731fb6361f61150a791f6",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"f501a53b94ba382d9ba396a5c486969a3abc68309828fa67f916035f5d37fe2b","affectsGlobalScope":true},"aa658b5d765f630c312ac9202d110bbaf2b82d180376457f0a9d57b42629714a","312ac7cbd070107766a9886fd27f9faad997ef57d93fdfb4095df2c618ac8162","2e9b4e7f9942af902eb85bae6066d04ef1afee51d61554a62d144df3da7dec94","672ad3045f329e94002256f8ed460cfd06173a50c92cde41edaadfacffd16808","64da4965d1e0559e134d9c1621ae400279a216f87ed00c4cce4f2c7c78021712","2205527b976f4f1844adc46a3f0528729fb68cac70027a5fb13c49ca23593797",{"version":"0166fce1204d520fdfd6b5febb3cda3deee438bcbf8ce9ffeb2b1bcde7155346","affectsGlobalScope":true},"d8b13eab85b532285031b06a971fa051bf0175d8fff68065a24a6da9c1c986cf","50c382ba1827988c59aa9cc9d046e386d55d70f762e9e352e95ee8cb7337cdb8","bb9627ab9d078c79bb5623de4ac8e5d08f806ec9b970962dfc83b3211373690d",{"version":"21d7e87f271e72d02f8d167edc902f90b04525edc7918f00f01dd0bd00599f7e","affectsGlobalScope":true},{"version":"6f6abdaf8764ef01a552a958f45e795b5e79153b87ddad3af5264b86d2681b72","affectsGlobalScope":true},"a215554477f7629e3dcbc8cde104bec036b78673650272f5ffdc5a2cee399a0a","c3497fc242aabfedcd430b5932412f94f157b5906568e737f6a18cc77b36a954","cdc1de3b672f9ef03ff15c443aa1b631edca35b6ae6970a7da6400647ff74d95","139ad1dc93a503da85b7a0d5f615bddbae61ad796bc68fedd049150db67a1e26","bf01fdd3b93cf633b3f7420718457af19c57ab8cbfea49268df60bae2e84d627","15c5e91b5f08be34a78e3d976179bf5b7a9cc28dc0ef1ffebffeb3c7812a2dca","5f461d6f5d9ff474f1121cc3fd86aa3cd67476c701f55c306d323c5112201207","65b39cc6b610a4a4aecc321f6efb436f10c0509d686124795b4c36a5e915b89e","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","3c1f19c7abcda6b3a4cf9438a15c7307a080bd3b51dfd56b198d9f86baf19447","d3edb86744e2c19f2c1503849ac7594a5e06024f2451bacae032390f2e20314a",{"version":"ea70400f0fe63efb412817f818a4f67afeb9f7edf4c6a320064b8dabe05588d4","affectsGlobalScope":true},{"version":"8a3e61347b8f80aa5af532094498bceb0c0b257b25a6aa8ab4880fd6ed57c95a","affectsGlobalScope":true},"98e00f3613402504bc2a2c9a621800ab48e0a463d1eed062208a4ae98ad8f84c","950f6810f7c80e0cffefcf1bcc6ade3485c94394720e334c3c2be3c16b6922fb","5475df7cfc493a08483c9d7aa61cc04791aecba9d0a2efc213f23c4006d4d3cd","000720870b275764c65e9f28ac97cc9e4d9e4a36942d4750ca8603e416e9c57c",{"version":"54412c70bacb9ed547ed6caae8836f712a83ccf58d94466f3387447ec4e82dc3","affectsGlobalScope":true},{"version":"e74e7b0baa7a24f073080091427d36a75836d584b9393e6ac2b1daf1647fe65a","affectsGlobalScope":true},"4c48e931a72f6971b5add7fdb1136be1d617f124594e94595f7114af749395e0","478eb5c32250678a906d91e0529c70243fc4d75477a08f3da408e2615396f558","e686a88c9ee004c8ba12ffc9d674ca3192a4c50ed0ca6bd5b2825c289e2b2bfe",{"version":"0d27932df2fbc3728e78b98892540e24084424ce12d3bd32f62a23cf307f411f","affectsGlobalScope":true},"4423fb3d6abe6eefb8d7f79eb2df9510824a216ec1c6feee46718c9b18e6d89f",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"01c47d1c006b3a15b51d89d7764fff7e4fabc4e412b3a61ee5357bd74b822879","c0156ff6b3c5f5b6699fafa0e36635590651aa70a07314425cf212f11c2443f8","b1cac4e06205000177d05342bc524983550157a72fcf450b701e747deb19e6af","d2cdba5be077b28a91fd380157e423d093279590aedb605f51ed6b6f398657c1","0d278d3cf006676a7c6c30424326bd38aba8344c471b64289ab89e4dcdb6e799","8953bf122fc832d335954e3a9188cbe4766ee2ef9be51f577de52234cd8a630e","642970856d429003a8a04298231d0dedac726519411a8b88afd90e2ab689f094","25006341224db03de63a44dea009de6523428c1bfe214ce069d10d0748838f12","aa1196da64d7fb641934dbf9683d45c2feea84f8aed23795c7793564bb2b8e08","a8b9548c59b33326a9fe601dad0242350e801af3091d2cf8f29279bd3d766a84","691ca3c93dc4aa9e14880dfcaa141df361b8cff75a8d298ed026b3e342561e02","ad44c5b327076d4f9c1fa00aaa41a3a0d2858df3adfb8cd0cdd944e05dd4a86a","5ee0f472c2200c82722e5b0f33646ac2dc8529204d81a32ac74ec794a07758ac","4a7e35c3dca7a40e70c2eefd62458ba6d84fcac7e1a3ed7ffe90a76b576af6dd","7b4903e52d29404a1be01654d222dc5b4e69323c6dc1be4842ba1718eec364c5","588f0e8ab710dca145e2ea80f0ecad3a072b06c110c31728027aa23024b5d06d",{"version":"8fa34c73c0e31cc904487597822d444fe82430d211b553b734235df7b25dd9fa","signature":"d60e1442381b68677b579286e409d292d7a72b05aca68cd12e6612ec8c581072"},"9a2eaab4e54953c6b2ba21f7ac4c2593859da03917011c10a2acd8864e38e7b2",{"version":"abf42c502b8c2c7b0535eb2444076220178e7d9a66004d7e13b47b7df8531789","signature":"bc7e6cc3b1a0f4bafb908fb25abe8f4e02f971ab3b6861e589a890e44082037f"},"c724034e22cbbde98550aca4ee32006f7f4c566885328949ac16ff9ff2f76e89",{"version":"c80b256621ce182e6e7f592c53f54c8e5ccbb390543b0cb7cd142ff9d3cd96c2","signature":"663b1f2f533658817dbc0a077a3b7c7731912848ee265846207ea8f69b48d185"},{"version":"4fdf97ba577722cd94e450586cc0c6e487d9092425eb2c2f217e38c0f627d683","signature":"96c7eabd37baeeb90ee8b4636a0e17aefd2d1ffd8062e8c34889793bc52b018f"},"88a737442369670e29485b1339f9e9e8a0d81c951ff8caa61654a884d94838ee","86c11c7c3306e44528f07893cdd92878047c31946c5a2183fad93ccfd2572e9c","12b9f53a1290a81cd5d3147a12869549d2f04f0908d660f354f5974bb86110fe","0231e5425f539b30c9665bbff15496ab31c7ce9f29fcfb834b988f790218fe87",{"version":"ac1f014b34cb8deeae27bdaa81c1c260ef1204505009cfccaf88bc528810e3c9","signature":"ffcb20dedcc36c583af03fd7ad53fa1ae50ffd4e253475cb4ea222fbef1c4704"},{"version":"a8a08c90fc0acfa5221e522674306ce9046bda2f229da3f9e8b5c7892632bdd1","signature":"76b64acd96abd71897b78f4a807a9845bdb3ceca6eba561383407eb5f9aa317a"},"68cc8d6fcc2f270d7108f02f3ebc59480a54615be3e09a47e14527f349e9d53e","3eb11dbf3489064a47a2e1cf9d261b1f100ef0b3b50ffca6c44dd99d6dd81ac1",{"version":"6ea4efd97efb41755c0387fb300a2c343565ad638540da5ecdd14bd556946d25","signature":"86cba14112bed01fa31e1af2c49cb2f77572e81805ce584d288dc25d8676fee5"},{"version":"ca117fe7de66f1dc525d9cb1287df50a5f4a6a73f69249d3c287f5246a6bf309","signature":"0bc79670e1738956a3daeec3303673e8b73a4a4b912e612edf80f761d18ccf76"},"ee7d8894904b465b072be0d2e4b45cf6b887cdba16a467645c4e200982ece7ea","afe73051ff6a03a9565cbd8ebb0e956ee3df5e913ad5c1ded64218aabfa3dcb5","035a5df183489c2e22f3cf59fc1ed2b043d27f357eecc0eb8d8e840059d44245","a4809f4d92317535e6b22b01019437030077a76fec1d93b9881c9ed4738fcc54","5f53fa0bd22096d2a78533f94e02c899143b8f0f9891a46965294ee8b91a9434","22293bd6fa12747929f8dfca3ec1684a3fe08638aa18023dd286ab337e88a592","ab82804a14454734010dcdcd43f564ff7b0389bee4c5692eec76ff5b30d4cf66","bae8d023ef6b23df7da26f51cea44321f95817c190342a36882e93b80d07a960","5d30d04a14ed8527ac5d654dc345a4db11b593334c11a65efb6e4facc5484a0e"],"root":[61,171,173,175,176,181,182,185,186],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"downlevelIteration":true,"esModuleInterop":true,"experimentalDecorators":true,"module":7,"outDir":"./","preserveConstEnums":true,"removeComments":true,"skipLibCheck":true,"strict":true,"strictFunctionTypes":false,"strictPropertyInitialization":false,"target":9},"fileIdsList":[[156,157],[155,156,157,158,161],[159,160],[116,156],[156,159],[116,136,156],[163,164,165,166,167,168,169],[162],[162,165,166],[183],[117,155],[189],[190],[116,136,155,162],[62],[103],[104,109,139],[105,110,116,117,124,136,147],[105,106,116,124],[107,148],[108,109,117,125],[109,136,144],[110,112,116,124],[103,111],[112,113],[116],[114,116],[103,116],[116,117,118,136,147],[116,117,118,131,136,139],[101,104,152],[101,112,116,119,124,136,147],[116,117,119,120,124,136,144,147],[119,121,136,144,147],[62,63,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154],[116,122],[123,147,152],[112,116,124,136],[125],[126],[103,127],[62,63,103,104,105,106,107,108,109,110,111,112,113,114,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153],[129],[130],[116,131,132],[131,133,148,150],[104,116,136,137,138,139],[104,136,138],[136,137],[139],[140],[62,136],[116,142,143],[142,143],[109,124,136,144],[145],[124,146],[104,119,130,147],[109,148],[136,149],[123,150],[151],[104,109,116,118,127,136,147,150,152],[136,153],[116,119,121,136,144,147,153,155],[194],[124,144,155],[178,179],[162,178],[73,77,147],[73,136,147],[68],[70,73,144,147],[124,144],[155],[68,155],[70,73,124,147],[65,66,69,72,104,116,136,147],[73,80],[65,71],[73,94,95],[69,73,104,139,147,155],[104,155],[94,104,155],[67,68,155],[73],[67,68,69,70,71,72,73,74,75,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,98,99,100],[73,88],[73,80,81],[71,73,81,82],[72],[65,68,73],[73,77,81,82],[77],[71,73,76,147],[65,70,73,80],[104,136],[68,73,94,104,152,155],[59,60],[162,170,171,173,175,176,181,185],[117,118,126,186],[119,121,136,186],[117,174,186],[172,186],[61,126,162,170,177,180,181,185,186],[117],[117,119,121,136,162,170,177,182,184]],"referencedMap":[[158,1],[162,2],[161,3],[159,4],[160,5],[157,6],[170,7],[163,8],[164,8],[167,9],[165,8],[166,8],[169,8],[184,10],[188,11],[190,12],[191,13],[177,14],[62,15],[63,15],[103,16],[104,17],[105,18],[106,19],[107,20],[108,21],[109,22],[110,23],[111,24],[112,25],[113,25],[115,26],[114,27],[116,28],[117,29],[118,30],[102,31],[119,32],[120,33],[121,34],[155,35],[122,36],[123,37],[124,38],[125,39],[126,40],[127,41],[128,42],[129,43],[130,44],[131,45],[132,45],[133,46],[136,47],[138,48],[137,49],[139,50],[140,51],[141,52],[142,53],[143,54],[144,55],[145,56],[146,57],[147,58],[148,59],[149,60],[150,61],[151,62],[152,63],[153,64],[172,65],[195,66],[174,67],[180,68],[178,8],[179,69],[80,70],[90,71],[79,70],[100,72],[71,73],[70,74],[99,75],[93,76],[98,77],[73,78],[87,79],[72,80],[96,81],[68,82],[67,83],[97,84],[69,85],[74,86],[78,86],[101,87],[91,88],[82,89],[83,90],[85,91],[81,92],[84,93],[94,75],[76,94],[77,95],[86,96],[66,97],[89,88],[88,86],[95,98],[61,99],[186,100],[171,101],[176,102],[175,103],[173,104],[182,105],[181,106],[185,107]]},"version":"5.5.4"}
|
package/dist/util.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import stream from "stream";
|
|
2
|
-
import { DataFactory, Store } from "n3";
|
|
3
|
-
import { Source } from "./index.js";
|
|
4
|
-
import { Quad, Term } from "@rdfjs/types";
|
|
5
|
-
import debug from "debug";
|
|
6
|
-
export declare const LOG: {
|
|
7
|
-
main: debug.Debugger;
|
|
8
|
-
channel: debug.Debugger;
|
|
9
|
-
util: debug.Debugger;
|
|
10
|
-
};
|
|
11
|
-
export declare function toArray<T>(stream: stream.Readable): Promise<T[]>;
|
|
12
|
-
export declare const OWL: {
|
|
13
|
-
namespace: string;
|
|
14
|
-
custom: (input: string) => string;
|
|
15
|
-
} & {
|
|
16
|
-
imports: string;
|
|
17
|
-
} & {
|
|
18
|
-
terms: import("@treecg/types").Namespace<"imports"[], import("@rdfjs/types").NamedNode<string>, string>;
|
|
19
|
-
};
|
|
20
|
-
export declare const CONN2: {
|
|
21
|
-
namespace: string;
|
|
22
|
-
custom: (input: string) => string;
|
|
23
|
-
} & {
|
|
24
|
-
path: string;
|
|
25
|
-
install: string;
|
|
26
|
-
build: string;
|
|
27
|
-
GitInstall: string;
|
|
28
|
-
LocalInstall: string;
|
|
29
|
-
url: string;
|
|
30
|
-
procFile: string;
|
|
31
|
-
EnvVariable: string;
|
|
32
|
-
envKey: string;
|
|
33
|
-
envDefault: string;
|
|
34
|
-
} & {
|
|
35
|
-
terms: import("@treecg/types").Namespace<("path" | "install" | "build" | "GitInstall" | "LocalInstall" | "url" | "procFile" | "EnvVariable" | "envKey" | "envDefault")[], import("@rdfjs/types").NamedNode<string>, string>;
|
|
36
|
-
};
|
|
37
|
-
export declare const namedNode: typeof DataFactory.namedNode, literal: typeof DataFactory.literal;
|
|
38
|
-
export type Keyed<T> = {
|
|
39
|
-
[Key in keyof T]: Term | undefined;
|
|
40
|
-
};
|
|
41
|
-
export type Map<V, K, T, O> = (value: V, key: K, item: T) => O;
|
|
42
|
-
export declare function load_quads(location: string, baseIRI?: string): Promise<Quad[]>;
|
|
43
|
-
export declare function load_store(location: Source, store: Store, recursive?: boolean): Promise<void>;
|
package/dist/util.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { createReadStream } from "fs";
|
|
2
|
-
import http from "http";
|
|
3
|
-
import https from "https";
|
|
4
|
-
import { DataFactory, Parser, StreamParser } from "n3";
|
|
5
|
-
import { createUriAndTermNamespace } from "@treecg/types";
|
|
6
|
-
import debug from "debug";
|
|
7
|
-
export const LOG = (function () {
|
|
8
|
-
const main = debug("js-runner");
|
|
9
|
-
const channel = main.extend("channel");
|
|
10
|
-
const util = main.extend("util");
|
|
11
|
-
return { main, channel, util };
|
|
12
|
-
})();
|
|
13
|
-
export function toArray(stream) {
|
|
14
|
-
const output = [];
|
|
15
|
-
return new Promise((res, rej) => {
|
|
16
|
-
stream.on("data", (x) => output.push(x));
|
|
17
|
-
stream.on("end", () => res(output));
|
|
18
|
-
stream.on("close", () => res(output));
|
|
19
|
-
stream.on("error", rej);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export const OWL = createUriAndTermNamespace("http://www.w3.org/2002/07/owl#", "imports");
|
|
23
|
-
export const CONN2 = createUriAndTermNamespace("https://w3id.org/conn#", "install", "build", "GitInstall", "LocalInstall", "url", "procFile", "path", "EnvVariable", "envKey", "envDefault");
|
|
24
|
-
export const { namedNode, literal } = DataFactory;
|
|
25
|
-
async function get_readstream(location) {
|
|
26
|
-
if (location.startsWith("https")) {
|
|
27
|
-
return new Promise((res) => {
|
|
28
|
-
https.get(location, res);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
else if (location.startsWith("http")) {
|
|
32
|
-
return new Promise((res) => {
|
|
33
|
-
http.get(location, res);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
return createReadStream(location);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
export async function load_quads(location, baseIRI) {
|
|
41
|
-
try {
|
|
42
|
-
LOG.util("Loading quads %s", location);
|
|
43
|
-
const parser = new StreamParser({ baseIRI: baseIRI || location });
|
|
44
|
-
const rdfStream = await get_readstream(location);
|
|
45
|
-
rdfStream.pipe(parser);
|
|
46
|
-
const quads = await toArray(parser);
|
|
47
|
-
return quads;
|
|
48
|
-
}
|
|
49
|
-
catch (ex) {
|
|
50
|
-
console.error("Failed to load_quads", location, baseIRI);
|
|
51
|
-
console.error(ex);
|
|
52
|
-
return [];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function load_memory_quads(value, baseIRI) {
|
|
56
|
-
const parser = new Parser({ baseIRI });
|
|
57
|
-
return parser.parse(value);
|
|
58
|
-
}
|
|
59
|
-
const loaded = new Set();
|
|
60
|
-
export async function load_store(location, store, recursive = true) {
|
|
61
|
-
if (loaded.has(location))
|
|
62
|
-
return;
|
|
63
|
-
loaded.add(location);
|
|
64
|
-
const quads = location.type === "remote"
|
|
65
|
-
? await load_quads(location.location)
|
|
66
|
-
: load_memory_quads(location.value, location.baseIRI);
|
|
67
|
-
store.addQuads(quads);
|
|
68
|
-
if (recursive) {
|
|
69
|
-
const loc = location.type === "remote" ? location.location : location.baseIRI;
|
|
70
|
-
const other_imports = store.getObjects(namedNode(loc), OWL.terms.imports, null);
|
|
71
|
-
for (const other of other_imports) {
|
|
72
|
-
await load_store({ location: other.value, type: "remote" }, store, true);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
package/ontology.ttl
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
@prefix js: <https://w3id.org/conn/js#>.
|
|
2
|
-
@prefix fno: <https://w3id.org/function/ontology#>.
|
|
3
|
-
@prefix fnom: <https://w3id.org/function/vocabulary/mapping#>.
|
|
4
|
-
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
|
|
5
|
-
@prefix : <https://w3id.org/conn#>.
|
|
6
|
-
@prefix sh: <http://www.w3.org/ns/shacl#>.
|
|
7
|
-
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
|
|
8
|
-
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
|
|
9
|
-
@prefix dc: <http://purl.org/dc/terms/>.
|
|
10
|
-
@prefix rdfl: <https://w3id.org/rdf-lens/ontology#>.
|
|
11
|
-
|
|
12
|
-
[ ] a sh:NodeShape;
|
|
13
|
-
sh:targetClass :Channel;
|
|
14
|
-
sh:property [
|
|
15
|
-
sh:path ( );
|
|
16
|
-
sh:name "id";
|
|
17
|
-
sh:maxCount 1;
|
|
18
|
-
sh:minCount 1;
|
|
19
|
-
sh:datatype xsd:iri;
|
|
20
|
-
], [
|
|
21
|
-
sh:path :reader;
|
|
22
|
-
sh:name "reader";
|
|
23
|
-
sh:maxCount 1;
|
|
24
|
-
sh:datatype xsd:iri;
|
|
25
|
-
], [
|
|
26
|
-
sh:path :writer;
|
|
27
|
-
sh:name "writer";
|
|
28
|
-
sh:maxCount 1;
|
|
29
|
-
sh:datatype xsd:iri;
|
|
30
|
-
].
|
|
31
|
-
|
|
32
|
-
[ ] a sh:NodeShape;
|
|
33
|
-
sh:targetClass :ReaderChannel;
|
|
34
|
-
sh:property [
|
|
35
|
-
sh:path ( );
|
|
36
|
-
sh:name "id";
|
|
37
|
-
sh:maxCount 1;
|
|
38
|
-
sh:minCount 1;
|
|
39
|
-
sh:datatype xsd:iri;
|
|
40
|
-
], [
|
|
41
|
-
sh:path rdf:type;
|
|
42
|
-
sh:name "ty";
|
|
43
|
-
sh:maxCount 1;
|
|
44
|
-
sh:datatype xsd:iri;
|
|
45
|
-
], [
|
|
46
|
-
sh:path ( );
|
|
47
|
-
sh:name "config";
|
|
48
|
-
sh:maxCount 1;
|
|
49
|
-
sh:minCount 1;
|
|
50
|
-
sh:class rdfl:TypedExtract;
|
|
51
|
-
].
|
|
52
|
-
|
|
53
|
-
[ ] a sh:NodeShape;
|
|
54
|
-
sh:targetClass :WriterChannel;
|
|
55
|
-
sh:property [
|
|
56
|
-
sh:path ( );
|
|
57
|
-
sh:name "id";
|
|
58
|
-
sh:maxCount 1;
|
|
59
|
-
sh:minCount 1;
|
|
60
|
-
sh:datatype xsd:iri;
|
|
61
|
-
], [
|
|
62
|
-
sh:path rdf:type;
|
|
63
|
-
sh:name "ty";
|
|
64
|
-
sh:maxCount 1;
|
|
65
|
-
sh:minCount 1;
|
|
66
|
-
sh:datatype xsd:iri;
|
|
67
|
-
], [
|
|
68
|
-
sh:path ( );
|
|
69
|
-
sh:name "config";
|
|
70
|
-
sh:maxCount 1;
|
|
71
|
-
sh:minCount 1;
|
|
72
|
-
sh:class rdfl:TypedExtract;
|
|
73
|
-
].
|
|
74
|
-
|
|
75
|
-
js:JsChannel rdfs:subClassOf :Channel.
|
|
76
|
-
js:JsReaderChannel rdfs:subClassOf :ReaderChannel.
|
|
77
|
-
[ ] a sh:NodeShape;
|
|
78
|
-
sh:targetClass js:JsReaderChannel;
|
|
79
|
-
sh:property [
|
|
80
|
-
sh:path [ sh:inversePath :reader ];
|
|
81
|
-
sh:name "channel";
|
|
82
|
-
sh:maxCount 1;
|
|
83
|
-
sh:minCount 1;
|
|
84
|
-
sh:class :Channel;
|
|
85
|
-
], [
|
|
86
|
-
sh:path ( );
|
|
87
|
-
sh:name "id";
|
|
88
|
-
sh:maxCount 1;
|
|
89
|
-
sh:minCount 1;
|
|
90
|
-
sh:datatype xsd:iri;
|
|
91
|
-
].
|
|
92
|
-
|
|
93
|
-
js:JsWriterChannel rdfs:subClassOf :WriterChannel.
|
|
94
|
-
[ ] a sh:NodeShape;
|
|
95
|
-
sh:targetClass js:JsWriterChannel;
|
|
96
|
-
sh:property [
|
|
97
|
-
sh:path [ sh:inversePath :writer ];
|
|
98
|
-
sh:name "channel";
|
|
99
|
-
sh:maxCount 1;
|
|
100
|
-
sh:minCount 1;
|
|
101
|
-
sh:class :Channel;
|
|
102
|
-
], [
|
|
103
|
-
sh:path ( );
|
|
104
|
-
sh:name "id";
|
|
105
|
-
sh:maxCount 1;
|
|
106
|
-
sh:minCount 1;
|
|
107
|
-
sh:datatype xsd:iri;
|
|
108
|
-
].
|
|
109
|
-
|
|
110
|
-
#
|
|
111
|
-
js:JsChannel a :Channel;
|
|
112
|
-
dc:title "Javascript in memory channel";
|
|
113
|
-
dc:description "Channel only used by the JsRunner, enabling fast in memory communication.";
|
|
114
|
-
:reader :JsReaderChannel;
|
|
115
|
-
:writer :JsWriterChannel.
|
|
116
|
-
|
|
117
|
-
js:JsProcess a :ProcessClass;
|
|
118
|
-
dc:title "Javascript Runner";
|
|
119
|
-
dc:description "The JSRunner is one of the most feature rich runners of the connector architecture. It enables lifting javascript functions to connector architecture components. It allows for fast in memory communication between these processors with the js:JsChannel. More information can be found at https://the-connector-architecture.github.io/site/.";
|
|
120
|
-
:supportsChannel :WsChannel,
|
|
121
|
-
:JsChannel,
|
|
122
|
-
:FileChannel,
|
|
123
|
-
:KafkaChannel,
|
|
124
|
-
:HttpChannel.
|
|
125
|
-
|
|
126
|
-
[ ] a sh:NodeShape;
|
|
127
|
-
sh:targetClass fno:Mapping;
|
|
128
|
-
sh:property [
|
|
129
|
-
sh:class fnom:PositionParameterMapping;
|
|
130
|
-
sh:path fno:parameterMapping;
|
|
131
|
-
sh:name "parameters";
|
|
132
|
-
].
|
|
133
|
-
|
|
134
|
-
[ ] a sh:NodeShape;
|
|
135
|
-
sh:targetClass fnom:PositionParameterMapping;
|
|
136
|
-
sh:property [
|
|
137
|
-
sh:datatype xsd:string;
|
|
138
|
-
sh:path fnom:functionParameter;
|
|
139
|
-
sh:name "parameter";
|
|
140
|
-
sh:maxCount 1;
|
|
141
|
-
], [
|
|
142
|
-
sh:datatype xsd:integer;
|
|
143
|
-
sh:path fnom:implementationParameterPosition;
|
|
144
|
-
sh:name "position";
|
|
145
|
-
sh:maxCount 1;
|
|
146
|
-
].
|
|
147
|
-
|
|
148
|
-
js:JsProcessorShape a sh:NodeShape;
|
|
149
|
-
sh:targetClass js:JsProcess;
|
|
150
|
-
sh:property [
|
|
151
|
-
sh:datatype xsd:iri;
|
|
152
|
-
sh:path ( );
|
|
153
|
-
sh:name "ty";
|
|
154
|
-
sh:maxCount 1;
|
|
155
|
-
sh:minCount 1;
|
|
156
|
-
], [
|
|
157
|
-
sh:datatype xsd:string;
|
|
158
|
-
sh:path js:file;
|
|
159
|
-
sh:name "file";
|
|
160
|
-
sh:maxCount 1;
|
|
161
|
-
sh:minCount 1;
|
|
162
|
-
], [
|
|
163
|
-
sh:datatype xsd:string;
|
|
164
|
-
sh:path js:location;
|
|
165
|
-
sh:name "location";
|
|
166
|
-
sh:maxCount 1;
|
|
167
|
-
sh:minCount 1;
|
|
168
|
-
], [
|
|
169
|
-
sh:datatype xsd:string;
|
|
170
|
-
sh:path js:function;
|
|
171
|
-
sh:name "func";
|
|
172
|
-
sh:maxCount 1;
|
|
173
|
-
sh:minCount 1;
|
|
174
|
-
], [
|
|
175
|
-
sh:class fno:Mapping;
|
|
176
|
-
sh:path js:mapping;
|
|
177
|
-
sh:name "mapping";
|
|
178
|
-
sh:maxCount 1;
|
|
179
|
-
sh:minCount 1;
|
|
180
|
-
].
|
|
181
|
-
|
|
182
|
-
js:FileProfilerShape a sh:NodeShape;
|
|
183
|
-
sh:targetClass js:FileProfilerShape;
|
|
184
|
-
sh:property [
|
|
185
|
-
sh:datatype xsd:string;
|
|
186
|
-
sh:path js:path;
|
|
187
|
-
sh:name "path";
|
|
188
|
-
sh:maxCount 1;
|
|
189
|
-
sh:minCount 1;
|
|
190
|
-
], [
|
|
191
|
-
sh:datatype xsd:integer;
|
|
192
|
-
sh:path js:intervalMs;
|
|
193
|
-
sh:name "interval";
|
|
194
|
-
sh:maxCount 1;
|
|
195
|
-
].
|
|
196
|
-
|
package/processor/echo.ttl
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
@prefix js: <https://w3id.org/conn/js#>.
|
|
2
|
-
@prefix fno: <https://w3id.org/function/ontology#>.
|
|
3
|
-
@prefix fnom: <https://w3id.org/function/vocabulary/mapping#>.
|
|
4
|
-
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
|
|
5
|
-
@prefix : <https://w3id.org/conn#>.
|
|
6
|
-
@prefix sh: <http://www.w3.org/ns/shacl#>.
|
|
7
|
-
|
|
8
|
-
js:Echo a js:JsProcess;
|
|
9
|
-
js:file <./test.js>;
|
|
10
|
-
js:function "echo";
|
|
11
|
-
js:location <./>;
|
|
12
|
-
js:mapping [
|
|
13
|
-
a fno:Mapping;
|
|
14
|
-
fno:parameterMapping [
|
|
15
|
-
a fnom:PositionParameterMapping;
|
|
16
|
-
fnom:functionParameter "Input Channel";
|
|
17
|
-
fnom:implementationParameterPosition "0"^^xsd:int;
|
|
18
|
-
], [
|
|
19
|
-
a fnom:PositionParameterMapping;
|
|
20
|
-
fnom:functionParameter "Output Channel";
|
|
21
|
-
fnom:implementationParameterPosition "1"^^xsd:int;
|
|
22
|
-
];
|
|
23
|
-
].
|
|
24
|
-
|
|
25
|
-
[ ] a sh:NodeShape;
|
|
26
|
-
sh:targetClass js:Echo;
|
|
27
|
-
sh:property [
|
|
28
|
-
sh:class :ReaderChannel;
|
|
29
|
-
sh:path js:input;
|
|
30
|
-
sh:name "Input Channel";
|
|
31
|
-
sh:maxCount 1;
|
|
32
|
-
], [
|
|
33
|
-
sh:class :WriterChannel;
|
|
34
|
-
sh:path js:output;
|
|
35
|
-
sh:name "Output Channel";
|
|
36
|
-
sh:maxCount 1;
|
|
37
|
-
].
|
|
38
|
-
|
package/processor/resc.ttl
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
@prefix js: <https://w3id.org/conn/js#>.
|
|
2
|
-
@prefix fno: <https://w3id.org/function/ontology#>.
|
|
3
|
-
@prefix fnom: <https://w3id.org/function/vocabulary/mapping#>.
|
|
4
|
-
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
|
|
5
|
-
@prefix : <https://w3id.org/conn#>.
|
|
6
|
-
@prefix sh: <http://www.w3.org/ns/shacl#>.
|
|
7
|
-
|
|
8
|
-
<> :install [
|
|
9
|
-
a :LocalInstall;
|
|
10
|
-
:path <./>;
|
|
11
|
-
].
|
|
12
|
-
|
|
13
|
-
js:Resc a js:JsProcess;
|
|
14
|
-
js:file <./test.js>;
|
|
15
|
-
js:function "resc";
|
|
16
|
-
js:location <./>;
|
|
17
|
-
js:mapping [
|
|
18
|
-
a fno:Mapping;
|
|
19
|
-
fno:parameterMapping [
|
|
20
|
-
a fnom:PositionParameterMapping;
|
|
21
|
-
fnom:functionParameter "input";
|
|
22
|
-
fnom:implementationParameterPosition "0"^^xsd:int;
|
|
23
|
-
];
|
|
24
|
-
].
|
|
25
|
-
|
|
26
|
-
[ ] a sh:NodeShape;
|
|
27
|
-
sh:targetClass js:Resc;
|
|
28
|
-
sh:property [
|
|
29
|
-
sh:class :ReaderChannel;
|
|
30
|
-
sh:path js:rescReader;
|
|
31
|
-
sh:name "input";
|
|
32
|
-
sh:maxCount 1;
|
|
33
|
-
].
|
|
34
|
-
|