text: function isElement(node) {
      return !!(node && (node.nodeName || node.prop && node.attr && node.find));
  }
  var FileLikeObject = (function () {
      function FileLikeObject(fileOrInput) {
          var isInput = isElement(fileOrInput);
          var fakePathOrObject = isInput ? fileOrInput.value : fileOrInput;
          var postfix = typeof fakePathOrObject === 'string' ? 'FakePath' : 'Object';
          var method = '_createFrom' + postfix;
          this[method](fakePathOrObject);
      }
      FileLikeObject.prototype._createFromFakePath = function (path) {
          this.lastModifiedDate = void 0;
          this.size = void 0;
          this.type = 'like/' + path.slice(path.lastIndexOf('.') + 1).toLowerCase();
          this.name = path.slice(path.lastIndexOf('/') + path.lastIndexOf('\\') + 2);
      };
      FileLikeObject.prototype._createFromObject = function (object) {
          // this.lastModifiedDate = copy(object.lastModifiedDate);
          this.size = object.size;
          this.type = object.type;
          this.name = object.name;
      };
      return FileLikeObject;
  }());
  export { FileLikeObject };
  