"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.Operator=void 0;var util_1=require("./util");var Operator=function(){function e(){this.res={}}e.prototype.set=function(t,r){this.res.$set=this.res.$set||{};this.res.$set[t]=r};e.prototype.applyOperator=function(t,r,s){this.res[t]=this.res[t]||{};this.res[t][r]=s};e.prototype.mergeOperator=function(t,r){if(!this.res[t]){this.res[t]={}}util_1.RequestUtil.mergeTo(this.res[t],r)};e.prototype.emit=function(){return this.res};return e}();exports.Operator=Operator;