import {
  require_dist
} from "./chunk-Q3GR7CAW.js";
import {
  require_react
} from "./chunk-ZTWA3SLP.js";
import {
  __commonJS
} from "./chunk-NKHIPFFU.js";

// node_modules/lodash.isequal/index.js
var require_lodash = __commonJS({
  "node_modules/lodash.isequal/index.js"(exports, module) {
    var LARGE_ARRAY_SIZE = 200;
    var HASH_UNDEFINED = "__lodash_hash_undefined__";
    var COMPARE_PARTIAL_FLAG = 1;
    var COMPARE_UNORDERED_FLAG = 2;
    var MAX_SAFE_INTEGER = 9007199254740991;
    var argsTag = "[object Arguments]";
    var arrayTag = "[object Array]";
    var asyncTag = "[object AsyncFunction]";
    var boolTag = "[object Boolean]";
    var dateTag = "[object Date]";
    var errorTag = "[object Error]";
    var funcTag = "[object Function]";
    var genTag = "[object GeneratorFunction]";
    var mapTag = "[object Map]";
    var numberTag = "[object Number]";
    var nullTag = "[object Null]";
    var objectTag = "[object Object]";
    var promiseTag = "[object Promise]";
    var proxyTag = "[object Proxy]";
    var regexpTag = "[object RegExp]";
    var setTag = "[object Set]";
    var stringTag = "[object String]";
    var symbolTag = "[object Symbol]";
    var undefinedTag = "[object Undefined]";
    var weakMapTag = "[object WeakMap]";
    var arrayBufferTag = "[object ArrayBuffer]";
    var dataViewTag = "[object DataView]";
    var float32Tag = "[object Float32Array]";
    var float64Tag = "[object Float64Array]";
    var int8Tag = "[object Int8Array]";
    var int16Tag = "[object Int16Array]";
    var int32Tag = "[object Int32Array]";
    var uint8Tag = "[object Uint8Array]";
    var uint8ClampedTag = "[object Uint8ClampedArray]";
    var uint16Tag = "[object Uint16Array]";
    var uint32Tag = "[object Uint32Array]";
    var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
    var reIsHostCtor = /^\[object .+?Constructor\]$/;
    var reIsUint = /^(?:0|[1-9]\d*)$/;
    var typedArrayTags = {};
    typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
    typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
    var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
    var freeSelf = typeof self == "object" && self && self.Object === Object && self;
    var root = freeGlobal || freeSelf || Function("return this")();
    var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
    var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
    var moduleExports = freeModule && freeModule.exports === freeExports;
    var freeProcess = moduleExports && freeGlobal.process;
    var nodeUtil = function() {
      try {
        return freeProcess && freeProcess.binding && freeProcess.binding("util");
      } catch (e) {
      }
    }();
    var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
    function arrayFilter(array, predicate) {
      var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
      while (++index < length) {
        var value = array[index];
        if (predicate(value, index, array)) {
          result[resIndex++] = value;
        }
      }
      return result;
    }
    function arrayPush(array, values) {
      var index = -1, length = values.length, offset = array.length;
      while (++index < length) {
        array[offset + index] = values[index];
      }
      return array;
    }
    function arraySome(array, predicate) {
      var index = -1, length = array == null ? 0 : array.length;
      while (++index < length) {
        if (predicate(array[index], index, array)) {
          return true;
        }
      }
      return false;
    }
    function baseTimes(n, iteratee) {
      var index = -1, result = Array(n);
      while (++index < n) {
        result[index] = iteratee(index);
      }
      return result;
    }
    function baseUnary(func) {
      return function(value) {
        return func(value);
      };
    }
    function cacheHas(cache, key) {
      return cache.has(key);
    }
    function getValue(object, key) {
      return object == null ? void 0 : object[key];
    }
    function mapToArray(map) {
      var index = -1, result = Array(map.size);
      map.forEach(function(value, key) {
        result[++index] = [key, value];
      });
      return result;
    }
    function overArg(func, transform) {
      return function(arg) {
        return func(transform(arg));
      };
    }
    function setToArray(set) {
      var index = -1, result = Array(set.size);
      set.forEach(function(value) {
        result[++index] = value;
      });
      return result;
    }
    var arrayProto = Array.prototype;
    var funcProto = Function.prototype;
    var objectProto = Object.prototype;
    var coreJsData = root["__core-js_shared__"];
    var funcToString = funcProto.toString;
    var hasOwnProperty = objectProto.hasOwnProperty;
    var maskSrcKey = function() {
      var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
      return uid ? "Symbol(src)_1." + uid : "";
    }();
    var nativeObjectToString = objectProto.toString;
    var reIsNative = RegExp(
      "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
    );
    var Buffer = moduleExports ? root.Buffer : void 0;
    var Symbol = root.Symbol;
    var Uint8Array = root.Uint8Array;
    var propertyIsEnumerable = objectProto.propertyIsEnumerable;
    var splice = arrayProto.splice;
    var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
    var nativeGetSymbols = Object.getOwnPropertySymbols;
    var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
    var nativeKeys = overArg(Object.keys, Object);
    var DataView = getNative(root, "DataView");
    var Map = getNative(root, "Map");
    var Promise2 = getNative(root, "Promise");
    var Set = getNative(root, "Set");
    var WeakMap = getNative(root, "WeakMap");
    var nativeCreate = getNative(Object, "create");
    var dataViewCtorString = toSource(DataView);
    var mapCtorString = toSource(Map);
    var promiseCtorString = toSource(Promise2);
    var setCtorString = toSource(Set);
    var weakMapCtorString = toSource(WeakMap);
    var symbolProto = Symbol ? Symbol.prototype : void 0;
    var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
    function Hash(entries) {
      var index = -1, length = entries == null ? 0 : entries.length;
      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }
    function hashClear() {
      this.__data__ = nativeCreate ? nativeCreate(null) : {};
      this.size = 0;
    }
    function hashDelete(key) {
      var result = this.has(key) && delete this.__data__[key];
      this.size -= result ? 1 : 0;
      return result;
    }
    function hashGet(key) {
      var data = this.__data__;
      if (nativeCreate) {
        var result = data[key];
        return result === HASH_UNDEFINED ? void 0 : result;
      }
      return hasOwnProperty.call(data, key) ? data[key] : void 0;
    }
    function hashHas(key) {
      var data = this.__data__;
      return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
    }
    function hashSet(key, value) {
      var data = this.__data__;
      this.size += this.has(key) ? 0 : 1;
      data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
      return this;
    }
    Hash.prototype.clear = hashClear;
    Hash.prototype["delete"] = hashDelete;
    Hash.prototype.get = hashGet;
    Hash.prototype.has = hashHas;
    Hash.prototype.set = hashSet;
    function ListCache(entries) {
      var index = -1, length = entries == null ? 0 : entries.length;
      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }
    function listCacheClear() {
      this.__data__ = [];
      this.size = 0;
    }
    function listCacheDelete(key) {
      var data = this.__data__, index = assocIndexOf(data, key);
      if (index < 0) {
        return false;
      }
      var lastIndex = data.length - 1;
      if (index == lastIndex) {
        data.pop();
      } else {
        splice.call(data, index, 1);
      }
      --this.size;
      return true;
    }
    function listCacheGet(key) {
      var data = this.__data__, index = assocIndexOf(data, key);
      return index < 0 ? void 0 : data[index][1];
    }
    function listCacheHas(key) {
      return assocIndexOf(this.__data__, key) > -1;
    }
    function listCacheSet(key, value) {
      var data = this.__data__, index = assocIndexOf(data, key);
      if (index < 0) {
        ++this.size;
        data.push([key, value]);
      } else {
        data[index][1] = value;
      }
      return this;
    }
    ListCache.prototype.clear = listCacheClear;
    ListCache.prototype["delete"] = listCacheDelete;
    ListCache.prototype.get = listCacheGet;
    ListCache.prototype.has = listCacheHas;
    ListCache.prototype.set = listCacheSet;
    function MapCache(entries) {
      var index = -1, length = entries == null ? 0 : entries.length;
      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }
    function mapCacheClear() {
      this.size = 0;
      this.__data__ = {
        "hash": new Hash(),
        "map": new (Map || ListCache)(),
        "string": new Hash()
      };
    }
    function mapCacheDelete(key) {
      var result = getMapData(this, key)["delete"](key);
      this.size -= result ? 1 : 0;
      return result;
    }
    function mapCacheGet(key) {
      return getMapData(this, key).get(key);
    }
    function mapCacheHas(key) {
      return getMapData(this, key).has(key);
    }
    function mapCacheSet(key, value) {
      var data = getMapData(this, key), size = data.size;
      data.set(key, value);
      this.size += data.size == size ? 0 : 1;
      return this;
    }
    MapCache.prototype.clear = mapCacheClear;
    MapCache.prototype["delete"] = mapCacheDelete;
    MapCache.prototype.get = mapCacheGet;
    MapCache.prototype.has = mapCacheHas;
    MapCache.prototype.set = mapCacheSet;
    function SetCache(values) {
      var index = -1, length = values == null ? 0 : values.length;
      this.__data__ = new MapCache();
      while (++index < length) {
        this.add(values[index]);
      }
    }
    function setCacheAdd(value) {
      this.__data__.set(value, HASH_UNDEFINED);
      return this;
    }
    function setCacheHas(value) {
      return this.__data__.has(value);
    }
    SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
    SetCache.prototype.has = setCacheHas;
    function Stack(entries) {
      var data = this.__data__ = new ListCache(entries);
      this.size = data.size;
    }
    function stackClear() {
      this.__data__ = new ListCache();
      this.size = 0;
    }
    function stackDelete(key) {
      var data = this.__data__, result = data["delete"](key);
      this.size = data.size;
      return result;
    }
    function stackGet(key) {
      return this.__data__.get(key);
    }
    function stackHas(key) {
      return this.__data__.has(key);
    }
    function stackSet(key, value) {
      var data = this.__data__;
      if (data instanceof ListCache) {
        var pairs = data.__data__;
        if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
          pairs.push([key, value]);
          this.size = ++data.size;
          return this;
        }
        data = this.__data__ = new MapCache(pairs);
      }
      data.set(key, value);
      this.size = data.size;
      return this;
    }
    Stack.prototype.clear = stackClear;
    Stack.prototype["delete"] = stackDelete;
    Stack.prototype.get = stackGet;
    Stack.prototype.has = stackHas;
    Stack.prototype.set = stackSet;
    function arrayLikeKeys(value, inherited) {
      var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
      for (var key in value) {
        if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
          result.push(key);
        }
      }
      return result;
    }
    function assocIndexOf(array, key) {
      var length = array.length;
      while (length--) {
        if (eq(array[length][0], key)) {
          return length;
        }
      }
      return -1;
    }
    function baseGetAllKeys(object, keysFunc, symbolsFunc) {
      var result = keysFunc(object);
      return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
    }
    function baseGetTag(value) {
      if (value == null) {
        return value === void 0 ? undefinedTag : nullTag;
      }
      return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
    }
    function baseIsArguments(value) {
      return isObjectLike(value) && baseGetTag(value) == argsTag;
    }
    function baseIsEqual(value, other, bitmask, customizer, stack) {
      if (value === other) {
        return true;
      }
      if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
        return value !== value && other !== other;
      }
      return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
    }
    function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
      var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
      objTag = objTag == argsTag ? objectTag : objTag;
      othTag = othTag == argsTag ? objectTag : othTag;
      var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
      if (isSameTag && isBuffer(object)) {
        if (!isBuffer(other)) {
          return false;
        }
        objIsArr = true;
        objIsObj = false;
      }
      if (isSameTag && !objIsObj) {
        stack || (stack = new Stack());
        return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
      }
      if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
        var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
        if (objIsWrapped || othIsWrapped) {
          var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
          stack || (stack = new Stack());
          return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
        }
      }
      if (!isSameTag) {
        return false;
      }
      stack || (stack = new Stack());
      return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
    }
    function baseIsNative(value) {
      if (!isObject(value) || isMasked(value)) {
        return false;
      }
      var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
      return pattern.test(toSource(value));
    }
    function baseIsTypedArray(value) {
      return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
    }
    function baseKeys(object) {
      if (!isPrototype(object)) {
        return nativeKeys(object);
      }
      var result = [];
      for (var key in Object(object)) {
        if (hasOwnProperty.call(object, key) && key != "constructor") {
          result.push(key);
        }
      }
      return result;
    }
    function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
      if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
        return false;
      }
      var stacked = stack.get(array);
      if (stacked && stack.get(other)) {
        return stacked == other;
      }
      var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0;
      stack.set(array, other);
      stack.set(other, array);
      while (++index < arrLength) {
        var arrValue = array[index], othValue = other[index];
        if (customizer) {
          var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
        }
        if (compared !== void 0) {
          if (compared) {
            continue;
          }
          result = false;
          break;
        }
        if (seen) {
          if (!arraySome(other, function(othValue2, othIndex) {
            if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
              return seen.push(othIndex);
            }
          })) {
            result = false;
            break;
          }
        } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
          result = false;
          break;
        }
      }
      stack["delete"](array);
      stack["delete"](other);
      return result;
    }
    function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
      switch (tag) {
        case dataViewTag:
          if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
            return false;
          }
          object = object.buffer;
          other = other.buffer;
        case arrayBufferTag:
          if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
            return false;
          }
          return true;
        case boolTag:
        case dateTag:
        case numberTag:
          return eq(+object, +other);
        case errorTag:
          return object.name == other.name && object.message == other.message;
        case regexpTag:
        case stringTag:
          return object == other + "";
        case mapTag:
          var convert = mapToArray;
        case setTag:
          var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
          convert || (convert = setToArray);
          if (object.size != other.size && !isPartial) {
            return false;
          }
          var stacked = stack.get(object);
          if (stacked) {
            return stacked == other;
          }
          bitmask |= COMPARE_UNORDERED_FLAG;
          stack.set(object, other);
          var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
          stack["delete"](object);
          return result;
        case symbolTag:
          if (symbolValueOf) {
            return symbolValueOf.call(object) == symbolValueOf.call(other);
          }
      }
      return false;
    }
    function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
      if (objLength != othLength && !isPartial) {
        return false;
      }
      var index = objLength;
      while (index--) {
        var key = objProps[index];
        if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
          return false;
        }
      }
      var stacked = stack.get(object);
      if (stacked && stack.get(other)) {
        return stacked == other;
      }
      var result = true;
      stack.set(object, other);
      stack.set(other, object);
      var skipCtor = isPartial;
      while (++index < objLength) {
        key = objProps[index];
        var objValue = object[key], othValue = other[key];
        if (customizer) {
          var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
        }
        if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
          result = false;
          break;
        }
        skipCtor || (skipCtor = key == "constructor");
      }
      if (result && !skipCtor) {
        var objCtor = object.constructor, othCtor = other.constructor;
        if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
          result = false;
        }
      }
      stack["delete"](object);
      stack["delete"](other);
      return result;
    }
    function getAllKeys(object) {
      return baseGetAllKeys(object, keys, getSymbols);
    }
    function getMapData(map, key) {
      var data = map.__data__;
      return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
    }
    function getNative(object, key) {
      var value = getValue(object, key);
      return baseIsNative(value) ? value : void 0;
    }
    function getRawTag(value) {
      var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
      try {
        value[symToStringTag] = void 0;
        var unmasked = true;
      } catch (e) {
      }
      var result = nativeObjectToString.call(value);
      if (unmasked) {
        if (isOwn) {
          value[symToStringTag] = tag;
        } else {
          delete value[symToStringTag];
        }
      }
      return result;
    }
    var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
      if (object == null) {
        return [];
      }
      object = Object(object);
      return arrayFilter(nativeGetSymbols(object), function(symbol) {
        return propertyIsEnumerable.call(object, symbol);
      });
    };
    var getTag = baseGetTag;
    if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
      getTag = function(value) {
        var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
        if (ctorString) {
          switch (ctorString) {
            case dataViewCtorString:
              return dataViewTag;
            case mapCtorString:
              return mapTag;
            case promiseCtorString:
              return promiseTag;
            case setCtorString:
              return setTag;
            case weakMapCtorString:
              return weakMapTag;
          }
        }
        return result;
      };
    }
    function isIndex(value, length) {
      length = length == null ? MAX_SAFE_INTEGER : length;
      return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
    }
    function isKeyable(value) {
      var type = typeof value;
      return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
    }
    function isMasked(func) {
      return !!maskSrcKey && maskSrcKey in func;
    }
    function isPrototype(value) {
      var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
      return value === proto;
    }
    function objectToString(value) {
      return nativeObjectToString.call(value);
    }
    function toSource(func) {
      if (func != null) {
        try {
          return funcToString.call(func);
        } catch (e) {
        }
        try {
          return func + "";
        } catch (e) {
        }
      }
      return "";
    }
    function eq(value, other) {
      return value === other || value !== value && other !== other;
    }
    var isArguments = baseIsArguments(function() {
      return arguments;
    }()) ? baseIsArguments : function(value) {
      return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
    };
    var isArray = Array.isArray;
    function isArrayLike(value) {
      return value != null && isLength(value.length) && !isFunction(value);
    }
    var isBuffer = nativeIsBuffer || stubFalse;
    function isEqual(value, other) {
      return baseIsEqual(value, other);
    }
    function isFunction(value) {
      if (!isObject(value)) {
        return false;
      }
      var tag = baseGetTag(value);
      return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
    }
    function isLength(value) {
      return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
    }
    function isObject(value) {
      var type = typeof value;
      return value != null && (type == "object" || type == "function");
    }
    function isObjectLike(value) {
      return value != null && typeof value == "object";
    }
    var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
    function keys(object) {
      return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
    }
    function stubArray() {
      return [];
    }
    function stubFalse() {
      return false;
    }
    module.exports = isEqual;
  }
});

// node_modules/@inertiajs/inertia-react/dist/index.js
var require_dist2 = __commonJS({
  "node_modules/@inertiajs/inertia-react/dist/index.js"(exports) {
    function e(e2) {
      return e2 && "object" == typeof e2 && "default" in e2 ? e2.default : e2;
    }
    var n = e(require_lodash());
    var r = require_react();
    var t = e(r);
    var o = require_dist();
    function i() {
      return (i = Object.assign || function(e2) {
        for (var n2 = 1; n2 < arguments.length; n2++) {
          var r2 = arguments[n2];
          for (var t2 in r2)
            Object.prototype.hasOwnProperty.call(r2, t2) && (e2[t2] = r2[t2]);
        }
        return e2;
      }).apply(this, arguments);
    }
    function u(e2, n2) {
      var t2 = r.useState(function() {
        var r2 = o.Inertia.restore(n2);
        return void 0 !== r2 ? r2 : e2;
      }), i2 = t2[0], u2 = t2[1];
      return r.useEffect(function() {
        o.Inertia.remember(i2, n2);
      }, [i2, n2]), [i2, u2];
    }
    var a = r.createContext();
    a.displayName = "InertiaPageContext";
    var c = r.createContext();
    function s(e2) {
      var n2 = e2.children, t2 = e2.initialPage, u2 = e2.resolveComponent, s2 = e2.titleCallback, l2 = e2.onHeadUpdate, f2 = r.useState({ component: e2.initialComponent || null, page: t2, key: null }), p2 = f2[0], d2 = f2[1], v = r.useMemo(function() {
        return o.createHeadManager("undefined" == typeof window, s2 || function(e3) {
          return e3;
        }, l2 || function() {
        });
      }, []);
      if (r.useEffect(function() {
        o.Inertia.init({ initialPage: t2, resolveComponent: u2, swapComponent: function(e3) {
          var n3 = e3.component, r2 = e3.page, t3 = e3.preserveState;
          try {
            return d2(function(e4) {
              return { component: n3, page: r2, key: t3 ? e4.key : Date.now() };
            }), Promise.resolve();
          } catch (e4) {
            return Promise.reject(e4);
          }
        } });
      }, []), !p2.component)
        return r.createElement(c.Provider, { value: v }, r.createElement(a.Provider, { value: p2.page }, null));
      var m = n2 || function(e3) {
        var n3 = e3.Component, t3 = e3.props, o2 = r.createElement(n3, i({ key: e3.key }, t3));
        return "function" == typeof n3.layout ? n3.layout(o2) : Array.isArray(n3.layout) ? n3.layout.concat(o2).reverse().reduce(function(e4, n4) {
          return r.createElement(n4, i({ children: e4 }, t3));
        }) : o2;
      };
      return r.createElement(c.Provider, { value: v }, r.createElement(a.Provider, { value: p2.page }, m({ Component: p2.component, key: p2.key, props: p2.page.props })));
    }
    function l(e2) {
      var n2, o2, i2 = e2.children, u2 = e2.title, a2 = r.useContext(c), s2 = r.useMemo(function() {
        return a2.createProvider();
      }, [a2]);
      return r.useEffect(function() {
        return function() {
          s2.disconnect();
        };
      }, [s2]), s2.update((n2 = i2, o2 = (Array.isArray(n2) ? n2 : [n2]).filter(function(e3) {
        return e3;
      }).map(function(e3) {
        return function(e4) {
          return function e5(n3) {
            var r2 = function(e6) {
              var n4 = Object.keys(e6.props).reduce(function(n5, r3) {
                if (["head-key", "children", "dangerouslySetInnerHTML"].includes(r3))
                  return n5;
                var t2 = e6.props[r3];
                return "" === t2 ? n5 + " " + r3 : n5 + " " + r3 + '="' + t2 + '"';
              }, "");
              return "<" + e6.type + n4 + ">";
            }(n3);
            return n3.props.children && (r2 += function(n4) {
              return "string" == typeof n4.props.children ? n4.props.children : n4.props.children.reduce(function(n5, r3) {
                return n5 + e5(r3);
              }, "");
            }(n3)), n3.props.dangerouslySetInnerHTML && (r2 += n3.props.dangerouslySetInnerHTML.__html), function(e6) {
              return ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"].indexOf(e6.type) > -1;
            }(n3) || (r2 += "</" + n3.type + ">"), r2;
          }(function(e5) {
            return t.cloneElement(e5, { inertia: void 0 !== e5.props["head-key"] ? e5.props["head-key"] : "" });
          }(e4));
        }(e3);
      }), u2 && !o2.find(function(e3) {
        return e3.startsWith("<title");
      }) && o2.push("<title inertia>" + u2 + "</title>"), o2)), null;
    }
    c.displayName = "InertiaHeadContext", s.displayName = "Inertia";
    var f = ["children", "as", "data", "href", "method", "preserveScroll", "preserveState", "replace", "only", "headers", "queryStringArrayFormat", "onClick", "onCancelToken", "onBefore", "onStart", "onProgress", "onFinish", "onCancel", "onSuccess", "onError"];
    var p = function() {
    };
    var d = r.forwardRef(function(e2, n2) {
      var t2 = e2.children, u2 = e2.as, a2 = void 0 === u2 ? "a" : u2, c2 = e2.data, s2 = void 0 === c2 ? {} : c2, l2 = e2.href, d2 = e2.method, v = void 0 === d2 ? "get" : d2, m = e2.preserveScroll, y = void 0 !== m && m, h = e2.preserveState, g = void 0 === h ? null : h, S = e2.replace, k = void 0 !== S && S, C = e2.only, b = void 0 === C ? [] : C, P = e2.headers, E = void 0 === P ? {} : P, x = e2.queryStringArrayFormat, w = void 0 === x ? "brackets" : x, I = e2.onClick, T = void 0 === I ? p : I, O = e2.onCancelToken, j = void 0 === O ? p : O, A = e2.onBefore, L = void 0 === A ? p : A, F = e2.onStart, H = void 0 === F ? p : F, R = e2.onProgress, B = void 0 === R ? p : R, D = e2.onFinish, q = void 0 === D ? p : D, M = e2.onCancel, N = void 0 === M ? p : M, U = e2.onSuccess, J = void 0 === U ? p : U, W = e2.onError, _ = void 0 === W ? p : W, Q = function(e3, n3) {
        if (null == e3)
          return {};
        var r2, t3, o2 = {}, i2 = Object.keys(e3);
        for (t3 = 0; t3 < i2.length; t3++)
          n3.indexOf(r2 = i2[t3]) >= 0 || (o2[r2] = e3[r2]);
        return o2;
      }(e2, f), z = r.useCallback(function(e3) {
        T(e3), o.shouldIntercept(e3) && (e3.preventDefault(), o.Inertia.visit(l2, { data: s2, method: v, preserveScroll: y, preserveState: null != g ? g : "get" !== v, replace: k, only: b, headers: E, onCancelToken: j, onBefore: L, onStart: H, onProgress: B, onFinish: q, onCancel: N, onSuccess: J, onError: _ }));
      }, [s2, l2, v, y, g, k, b, E, T, j, L, H, B, q, N, J, _]);
      a2 = a2.toLowerCase(), v = v.toLowerCase();
      var G = o.mergeDataIntoQueryString(v, l2 || "", s2, w);
      return l2 = G[0], s2 = G[1], "a" === a2 && "get" !== v && console.warn('Creating POST/PUT/PATCH/DELETE <a> links is discouraged as it causes "Open Link in New Tab/Window" accessibility issues.\n\nPlease specify a more appropriate element using the "as" attribute. For example:\n\n<Link href="' + l2 + '" method="' + v + '" as="button">...</Link>'), r.createElement(a2, i({}, Q, "a" === a2 ? { href: l2 } : {}, { ref: n2, onClick: z }), t2);
    });
    exports.App = s, exports.Head = l, exports.InertiaApp = s, exports.InertiaHead = l, exports.InertiaLink = d, exports.Link = d, exports.app = s, exports.createInertiaApp = function(e2) {
      try {
        var n2, t2, o2, i2, u2, a2, c2;
        t2 = void 0 === (n2 = e2.id) ? "app" : n2, o2 = e2.resolve, i2 = e2.setup, u2 = e2.title, a2 = e2.page, c2 = e2.render;
        var l2 = "undefined" == typeof window, f2 = l2 ? null : document.getElementById(t2), p2 = a2 || JSON.parse(f2.dataset.page), d2 = function(e3) {
          return Promise.resolve(o2(e3)).then(function(e4) {
            return e4.default || e4;
          });
        }, v = [];
        return Promise.resolve(d2(p2.component).then(function(e3) {
          return i2({ el: f2, App: s, props: { initialPage: p2, initialComponent: e3, resolveComponent: d2, titleCallback: u2, onHeadUpdate: l2 ? function(e4) {
            return v = e4;
          } : null } });
        })).then(function(e3) {
          return function() {
            if (l2)
              return Promise.resolve(c2(r.createElement("div", { id: t2, "data-page": JSON.stringify(p2) }, e3))).then(function(e4) {
                return { head: v, body: e4 };
              });
          }();
        });
      } catch (e3) {
        return Promise.reject(e3);
      }
    }, exports.link = d, exports.useForm = function() {
      var e2 = [].slice.call(arguments), t2 = r.useRef(null), a2 = "string" == typeof e2[0] ? e2[0] : null, c2 = r.useState(("string" == typeof e2[0] ? e2[1] : e2[0]) || {}), s2 = c2[0], l2 = c2[1], f2 = r.useRef(null), p2 = r.useRef(null), d2 = a2 ? u(s2, a2 + ":data") : r.useState(s2), v = d2[0], m = d2[1], y = a2 ? u({}, a2 + ":errors") : r.useState({}), h = y[0], g = y[1], S = r.useState(false), k = S[0], C = S[1], b = r.useState(false), P = b[0], E = b[1], x = r.useState(null), w = x[0], I = x[1], T = r.useState(false), O = T[0], j = T[1], A = r.useState(false), L = A[0], F = A[1], H = function(e3) {
        return e3;
      };
      r.useEffect(function() {
        return t2.current = true, function() {
          t2.current = false;
        };
      }, []);
      var R = r.useCallback(function(e3, n2, r2) {
        void 0 === r2 && (r2 = {});
        var u2 = i({}, r2, { onCancelToken: function(e4) {
          if (f2.current = e4, r2.onCancelToken)
            return r2.onCancelToken(e4);
        }, onBefore: function(e4) {
          if (j(false), F(false), clearTimeout(p2.current), r2.onBefore)
            return r2.onBefore(e4);
        }, onStart: function(e4) {
          if (E(true), r2.onStart)
            return r2.onStart(e4);
        }, onProgress: function(e4) {
          if (I(e4), r2.onProgress)
            return r2.onProgress(e4);
        }, onSuccess: function(e4) {
          if (t2.current && (E(false), I(null), g({}), C(false), j(true), F(true), p2.current = setTimeout(function() {
            t2.current && F(false);
          }, 2e3)), r2.onSuccess)
            return r2.onSuccess(e4);
        }, onError: function(e4) {
          if (t2.current && (E(false), I(null), g(e4), C(true)), r2.onError)
            return r2.onError(e4);
        }, onCancel: function() {
          if (t2.current && (E(false), I(null)), r2.onCancel)
            return r2.onCancel();
        }, onFinish: function() {
          if (t2.current && (E(false), I(null)), f2.current = null, r2.onFinish)
            return r2.onFinish();
        } });
        "delete" === e3 ? o.Inertia.delete(n2, i({}, u2, { data: H(v) })) : o.Inertia[e3](n2, H(v), u2);
      }, [v, g]);
      return { data: v, setData: function(e3, n2) {
        var r2;
        m("string" == typeof e3 ? i({}, v, ((r2 = {})[e3] = n2, r2)) : "function" == typeof e3 ? function(n3) {
          return e3(n3);
        } : e3);
      }, isDirty: !n(v, s2), errors: h, hasErrors: k, processing: P, progress: w, wasSuccessful: O, recentlySuccessful: L, transform: function(e3) {
        H = e3;
      }, setDefaults: function(e3, n2) {
        l2(void 0 === e3 ? function() {
          return v;
        } : function(r2) {
          var t3;
          return i({}, r2, n2 ? ((t3 = {})[e3] = n2, t3) : e3);
        });
      }, reset: function() {
        var e3 = [].slice.call(arguments);
        m(0 === e3.length ? s2 : Object.keys(s2).filter(function(n2) {
          return e3.includes(n2);
        }).reduce(function(e4, n2) {
          return e4[n2] = s2[n2], e4;
        }, i({}, v)));
      }, setError: function(e3, n2) {
        g(function(r2) {
          var t3, o2 = i({}, r2, n2 ? ((t3 = {})[e3] = n2, t3) : e3);
          return C(Object.keys(o2).length > 0), o2;
        });
      }, clearErrors: function() {
        var e3 = [].slice.call(arguments);
        g(function(n2) {
          var r2 = Object.keys(n2).reduce(function(r3, t3) {
            var o2;
            return i({}, r3, e3.length > 0 && !e3.includes(t3) ? ((o2 = {})[t3] = n2[t3], o2) : {});
          }, {});
          return C(Object.keys(r2).length > 0), r2;
        });
      }, submit: R, get: function(e3, n2) {
        R("get", e3, n2);
      }, post: function(e3, n2) {
        R("post", e3, n2);
      }, put: function(e3, n2) {
        R("put", e3, n2);
      }, patch: function(e3, n2) {
        R("patch", e3, n2);
      }, delete: function(e3, n2) {
        R("delete", e3, n2);
      }, cancel: function() {
        f2.current && f2.current.cancel();
      } };
    }, exports.usePage = function() {
      var e2 = r.useContext(a);
      if (!e2)
        throw new Error("usePage must be used within the Inertia component");
      return e2;
    }, exports.useRemember = u, exports.useRememberedState = function(e2, n2) {
      return console.warn('The "useRememberedState" hook has been deprecated and will be removed in a future release. Use "useRemember" instead.'), u(e2, n2);
    };
  }
});
export default require_dist2();
//# sourceMappingURL=@inertiajs_inertia-react.js.map
