text: "use strict";
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = void 0;
  
  var _consts = require("./consts");
  
  /**
   * create a pack that will only execute when there are registered event handlers
   *
   * @param creator - a function to return data that will become parameters for the event handler
   * array returned means more than 1 parameter. Any other value will be added to an array as a single param
   */
  const createLifePack = creator => {
    const lp = {
      resolve: () => [].concat(creator())
    };
    Object.defineProperty(lp, _consts.LE_PACK_SYM, {
      value: true,
      configurable: false
    });
    return lp;
  };
  
  var _default = createLifePack;
  exports.default = _default;