"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../../Class/Functional");
const _ids_1 = require("../../../../_ids");
class ReplaceState extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['data', 'title', 'url'],
            o: [],
        }, {}, system, _ids_1.ID_PUSH_STATE);
    }
    async f({ data, title, url }, done) {
        const { api: { history: { replaceState }, }, } = this.__system;
        replaceState(data, title, url);
        done();
    }
}
exports.default = ReplaceState;
//# sourceMappingURL=index.js.map