'use strict';
function _typeof(t) {
    return (_typeof =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
            ? function (t) {
                  return typeof t;
              }
            : function (t) {
                  return t && 'function' == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? 'symbol' : typeof t;
              })(t);
}
Object.defineProperty(exports, '__esModule', {
    value: true
});
exports.default = void 0;
var hasOwnProperty = Object.prototype.hasOwnProperty;
function is(t, e) {
    return t === e ? 0 !== t || 0 !== e || 1 / t == 1 / e : t != t && e != e;
}
function shallowEqual(t, e) {
    if (is(t, e)) {
        return true;
    }
    if ('object' !== _typeof(t) || null === t || 'object' !== _typeof(e) || null === e) {
        return false;
    }
    var o = Object.keys(t);
    var r = Object.keys(e);
    if (o.length !== r.length) {
        return false;
    }
    for (var n = 0; n < o.length; n++) {
        if (!hasOwnProperty.call(e, o[n]) || !is(t[o[n]], e[o[n]])) {
            return false;
        }
    }
    return true;
}
var _default = shallowEqual;
exports.default = _default;
