"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.system = void 0;
const boot_1 = require("@_unit/unit/client/platform/node/boot");
const fromBundle_1 = require("@_unit/unit/spec/fromBundle");
const _specs_1 = __importDefault(require("@_unit/unit/system/_specs"));
exports.system = (0, boot_1.boot)()[0];
const bundle = require('./MergeSort.json');
const MergeSort = (0, fromBundle_1.fromBundle)(bundle, _specs_1.default, {});
const graph = new MergeSort(exports.system);
graph.play();
graph.push('a', [2, 1]);
console.log(graph.take('a')); // [1, 2]
graph.getOutput('a').addListener('data', (data) => {
    console.log(data);
});
graph.push('a', [3, 2, 1, 0]);
graph.push('a', [1, 2, 0, 3]);
//# sourceMappingURL=mergesort.js.map