var t = require; var e = module; var i = exports; Object.defineProperty(i, "__esModule", {value: !0}); const s = t("constants"), o = t("Decorator"); i.default = class extends o.default { constructor({child: t = null} = {}) { super({child: t, name: "Inverter"}); } tick(t) { if (!this.child) return s.ERROR; t = this.child._execute(t); return t == s.SUCCESS ? (t = s.FAILURE) : t == s.FAILURE && (t = s.SUCCESS), t; } };