import { C as isArray_default, E as _Symbol_default, _ as _isIndex_default, f as isArguments_default, h as isLength_default } from "./_baseFor-BGiY-cm1.js";
import { t as isSymbol_default } from "./isSymbol-BvIfMnn6.js";
import { t as memoize_default } from "./memoize-C9ltv0Cw.js";
function arrayMap(f, R) {
  for (var z = -1, B = f == null ? 0 : f.length, V = Array(B); ++z < B; ) V[z] = R(f[z], z, f);
  return V;
}
var _arrayMap_default = arrayMap, INFINITY$1 = Infinity, symbolProto = _Symbol_default ? _Symbol_default.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
function baseToString(R) {
  if (typeof R == "string") return R;
  if (isArray_default(R)) return _arrayMap_default(R, baseToString) + "";
  if (isSymbol_default(R)) return symbolToString ? symbolToString.call(R) : "";
  var z = R + "";
  return z == "0" && 1 / R == -INFINITY$1 ? "-0" : z;
}
var _baseToString_default = baseToString, reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
function isKey(R, z) {
  if (isArray_default(R)) return false;
  var B = typeof R;
  return B == "number" || B == "symbol" || B == "boolean" || R == null || isSymbol_default(R) ? true : reIsPlainProp.test(R) || !reIsDeepProp.test(R) || z != null && R in Object(z);
}
var _isKey_default = isKey, MAX_MEMOIZE_SIZE = 500;
function memoizeCapped(f) {
  var R = memoize_default(f, function(f2) {
    return z.size === MAX_MEMOIZE_SIZE && z.clear(), f2;
  }), z = R.cache;
  return R;
}
var _memoizeCapped_default = memoizeCapped, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, reEscapeChar = /\\(\\)?/g, _stringToPath_default = _memoizeCapped_default(function(f) {
  var R = [];
  return f.charCodeAt(0) === 46 && R.push(""), f.replace(rePropName, function(f2, z, B, V) {
    R.push(B ? V.replace(reEscapeChar, "$1") : z || f2);
  }), R;
});
function toString(f) {
  return f == null ? "" : _baseToString_default(f);
}
var toString_default = toString;
function castPath(R, z) {
  return isArray_default(R) ? R : _isKey_default(R, z) ? [R] : _stringToPath_default(toString_default(R));
}
var _castPath_default = castPath, INFINITY = Infinity;
function toKey(f) {
  if (typeof f == "string" || isSymbol_default(f)) return f;
  var R = f + "";
  return R == "0" && 1 / f == -INFINITY ? "-0" : R;
}
var _toKey_default = toKey;
function baseGet(f, R) {
  R = _castPath_default(R, f);
  for (var z = 0, B = R.length; f != null && z < B; ) f = f[_toKey_default(R[z++])];
  return z && z == B ? f : void 0;
}
var _baseGet_default = baseGet;
function get(f, R, z) {
  var B = f == null ? void 0 : _baseGet_default(f, R);
  return B === void 0 ? z : B;
}
var get_default = get;
function arrayPush(f, R) {
  for (var z = -1, B = R.length, V = f.length; ++z < B; ) f[V + z] = R[z];
  return f;
}
var _arrayPush_default = arrayPush, spreadableSymbol = _Symbol_default ? _Symbol_default.isConcatSpreadable : void 0;
function isFlattenable(R) {
  return isArray_default(R) || isArguments_default(R) || !!(spreadableSymbol && R && R[spreadableSymbol]);
}
var _isFlattenable_default = isFlattenable;
function baseFlatten(f, R, z, B, V) {
  var H = -1, U = f.length;
  for (z || (z = _isFlattenable_default), V || (V = []); ++H < U; ) {
    var W = f[H];
    R > 0 && z(W) ? R > 1 ? baseFlatten(W, R - 1, z, B, V) : _arrayPush_default(V, W) : B || (V[V.length] = W);
  }
  return V;
}
var _baseFlatten_default = baseFlatten;
function baseHasIn(f, R) {
  return f != null && R in Object(f);
}
var _baseHasIn_default = baseHasIn;
function hasPath(R, H, U) {
  H = _castPath_default(H, R);
  for (var W = -1, G = H.length, K = false; ++W < G; ) {
    var q = _toKey_default(H[W]);
    if (!(K = R != null && U(R, q))) break;
    R = R[q];
  }
  return K || ++W != G ? K : (G = R == null ? 0 : R.length, !!G && isLength_default(G) && _isIndex_default(q, G) && (isArray_default(R) || isArguments_default(R)));
}
var _hasPath_default = hasPath;
function hasIn(f, R) {
  return f != null && _hasPath_default(f, R, _baseHasIn_default);
}
var hasIn_default = hasIn;
export {
  get_default as a,
  _castPath_default as c,
  _arrayMap_default as d,
  _arrayPush_default as i,
  toString_default as l,
  _hasPath_default as n,
  _baseGet_default as o,
  _baseFlatten_default as r,
  _toKey_default as s,
  hasIn_default as t,
  _isKey_default as u
};
