"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.$wrap = $wrap;
const _1 = require("./Class/$");
function $wrap(system, obj, __ = []) {
    const wrap = new (class Wrapped extends _1.$ {
        constructor(system) {
            super(system);
            this.$__ = __;
            for (const methodName of Object.keys(obj)) {
                const method = obj[methodName];
                this[methodName] = method;
            }
        }
    })(system);
    // @ts-ignore
    return wrap;
}
//# sourceMappingURL=wrap.js.map