var a=function(){var r=function(n,t){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))o[e]=i[e]};return r(n,t)};return function(n,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);function o(){this.constructor=n}n.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}();import{LogicQueryCommand as m}from"../AbstractCommand";import{QueryRequest as s}from"../QueryRequest";var u=function(r){a(n,r);function n(t){var o;var i=r.call(this)||this;i.commands=[];(o=i.commands).push.apply(o,t);return i}Object.defineProperty(n.prototype,"op",{get:function(){return"$".concat(this.name)},enumerable:false,configurable:true});n.prototype.pushCommand=function(t){this.commands.push(t)};n.prototype.stringifyWithKey=function(t){var o;var i=this.commands.map(function(e){return new s(e,"",t).stringifyWithKey()});return o={},o[this.op]=i,o};n.prototype.stringify=function(){return this.stringifyWithKey("")};return n}(m);export{u as LogicQueryCommandImpl};var c=function(r){a(n,r);function n(){var t=r!==null&&r.apply(this,arguments)||this;t.name="and";return t}return n}(u);export{c as AndCommand};var f=function(r){a(n,r);function n(){var t=r!==null&&r.apply(this,arguments)||this;t.name="or";return t}return n}(u);export{f as OrCommand};var p=function(r){a(n,r);function n(){var t=r!==null&&r.apply(this,arguments)||this;t.name="nor";return t}return n}(u);export{p as NorCommand};var y=function(r){a(n,r);function n(t){var o=r.call(this)||this;o.command=t;return o}n.prototype.stringifyWithKey=function(t){var o;var i={$not:new s(this.command,"",t).stringify()};return t?(o={},o[t]=i,o):i};n.prototype.stringify=function(){return this.stringifyWithKey("")};return n}(m);export{y as NotCommand};