import{RequestUtil as i}from"./util";var n=function(){function e(){this.res={}}e.prototype.set=function(t,s){this.res.$set=this.res.$set||{};this.res.$set[t]=s};e.prototype.applyOperator=function(t,s,r){this.res[t]=this.res[t]||{};this.res[t][s]=r};e.prototype.mergeOperator=function(t,s){if(!this.res[t]){this.res[t]={}}i.mergeTo(this.res[t],s)};e.prototype.emit=function(){return this.res};return e}();export{n as Operator};