import { getDefaultExportFromCjs } from "../../../../../_virtual/_commonjsHelpers.mjs";
import { _ as _arrayMap } from "./_arrayMap.mjs";
import { _ as _baseClone } from "./_baseClone.mjs";
import { _ as _baseUnset } from "./_baseUnset.mjs";
import { _ as _castPath } from "./_castPath.mjs";
import { _ as _copyObject } from "./_copyObject.mjs";
import { _ as _customOmitClone } from "./_customOmitClone.mjs";
import { _ as _flatRest } from "./_flatRest.mjs";
import { _ as _getAllKeysIn } from "./_getAllKeysIn.mjs";
var arrayMap = _arrayMap, baseClone = _baseClone, baseUnset = _baseUnset, castPath = _castPath, copyObject = _copyObject, customOmitClone = _customOmitClone, flatRest = _flatRest, getAllKeysIn = _getAllKeysIn;
var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4;
var omit = flatRest(function(object, paths) {
  var result = {};
  if (object == null) {
    return result;
  }
  var isDeep = false;
  paths = arrayMap(paths, function(path) {
    path = castPath(path, object);
    isDeep || (isDeep = path.length > 1);
    return path;
  });
  copyObject(object, getAllKeysIn(object), result);
  if (isDeep) {
    result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
  }
  var length = paths.length;
  while (length--) {
    baseUnset(result, paths[length]);
  }
  return result;
});
var omit_1 = omit;
const omit$1 = /* @__PURE__ */ getDefaultExportFromCjs(omit_1);
export {
  omit$1 as default
};
