/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function ($, Drupal) {
  Drupal.AjaxCommands.prototype.ajaxCommandReturnPromise = function (ajax, response) {
    var _this = this;
    return new Promise(function (resolve, reject) {
      setTimeout(function () {
        _this.insert(ajax, response);
        resolve();
      }, Math.random() * 500);
    });
  };
})(jQuery, Drupal);