"use strict";var __extends=this&&this.__extends||function(){var n=function(e,t){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a))r[a]=o[a]};return n(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(exports,"__esModule",{value:true});exports.ElemMatchCommand=void 0;var AbstractCommand_1=require("../AbstractCommand");var QueryRequest_1=require("../QueryRequest");var ElemMatchCommand=function(n){__extends(e,n);function e(t){var r=n.call(this)||this;r.val=new QueryRequest_1.QueryRequest(t).toJSON();return r}e.prototype.stringify=function(){return{$elemMatch:this.val}};return e}(AbstractCommand_1.QueryCommand);exports.ElemMatchCommand=ElemMatchCommand;