UNPKG

strapi-plugin-gen-types

Version:

Generate types for the different collections, single types & components found in your application

1,359 lines 676 kB
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const jsxRuntime = require("react/jsx-runtime"); const admin$1 = require("@strapi/strapi/admin"); const reactRouterDom = require("react-router-dom"); const reactIntl = require("react-intl"); const designSystem = require("@strapi/design-system"); const icons = require("@strapi/icons"); require("react-dom/client"); const React = require("react"); require("@strapi/icons/symbols"); const ReactDOM = require("react-dom"); const styledComponents = require("styled-components"); const index = require("./index-CUmkZ1IR.js"); const reactSyntaxHighlighter = require("react-syntax-highlighter"); const ts = require("react-syntax-highlighter/dist/esm/languages/hljs/typescript"); const darkTheme = require("react-syntax-highlighter/dist/esm/styles/hljs/shades-of-purple"); const lightTheme = require("react-syntax-highlighter/dist/esm/styles/hljs/xcode"); const _interopDefault = (e2) => e2 && e2.__esModule ? e2 : { default: e2 }; function _interopNamespace(e2) { if (e2 && e2.__esModule) return e2; const n2 = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } }); if (e2) { for (const k2 in e2) { if (k2 !== "default") { const d2 = Object.getOwnPropertyDescriptor(e2, k2); Object.defineProperty(n2, k2, d2.get ? d2 : { enumerable: true, get: () => e2[k2] }); } } } n2.default = e2; return Object.freeze(n2); } const React__namespace = /* @__PURE__ */ _interopNamespace(React); const ReactDOM__default = /* @__PURE__ */ _interopDefault(ReactDOM); const ts__default = /* @__PURE__ */ _interopDefault(ts); const darkTheme__default = /* @__PURE__ */ _interopDefault(darkTheme); const lightTheme__default = /* @__PURE__ */ _interopDefault(lightTheme); var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; function getDefaultExportFromCjs(x2) { return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2; } function getAugmentedNamespace(n2) { if (n2.__esModule) return n2; var f2 = n2.default; if (typeof f2 == "function") { var a2 = function a3() { if (this instanceof a3) { return Reflect.construct(f2, arguments, this.constructor); } return f2.apply(this, arguments); }; a2.prototype = f2.prototype; } else a2 = {}; Object.defineProperty(a2, "__esModule", { value: true }); Object.keys(n2).forEach(function(k2) { var d2 = Object.getOwnPropertyDescriptor(n2, k2); Object.defineProperty(a2, k2, d2.get ? d2 : { enumerable: true, get: function() { return n2[k2]; } }); }); return a2; } var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal; var _freeGlobal = freeGlobal$1; var freeGlobal = _freeGlobal; var freeSelf = typeof self == "object" && self && self.Object === Object && self; var root$c = freeGlobal || freeSelf || Function("return this")(); var _root = root$c; var root$b = _root; var Symbol$7 = root$b.Symbol; var _Symbol = Symbol$7; var Symbol$6 = _Symbol; var objectProto$g = Object.prototype; var hasOwnProperty$e = objectProto$g.hasOwnProperty; var nativeObjectToString$1 = objectProto$g.toString; var symToStringTag$1 = Symbol$6 ? Symbol$6.toStringTag : void 0; function getRawTag$1(value) { var isOwn = hasOwnProperty$e.call(value, symToStringTag$1), tag = value[symToStringTag$1]; try { value[symToStringTag$1] = void 0; var unmasked = true; } catch (e2) { } var result = nativeObjectToString$1.call(value); if (unmasked) { if (isOwn) { value[symToStringTag$1] = tag; } else { delete value[symToStringTag$1]; } } return result; } var _getRawTag = getRawTag$1; var objectProto$f = Object.prototype; var nativeObjectToString = objectProto$f.toString; function objectToString$2(value) { return nativeObjectToString.call(value); } var _objectToString = objectToString$2; var Symbol$5 = _Symbol, getRawTag = _getRawTag, objectToString$1 = _objectToString; var nullTag = "[object Null]", undefinedTag = "[object Undefined]"; var symToStringTag = Symbol$5 ? Symbol$5.toStringTag : void 0; function baseGetTag$7(value) { if (value == null) { return value === void 0 ? undefinedTag : nullTag; } return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString$1(value); } var _baseGetTag = baseGetTag$7; function isObject$f(value) { var type2 = typeof value; return value != null && (type2 == "object" || type2 == "function"); } var isObject_1 = isObject$f; var baseGetTag$6 = _baseGetTag, isObject$e = isObject_1; var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]"; function isFunction$5(value) { if (!isObject$e(value)) { return false; } var tag = baseGetTag$6(value); return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag; } var isFunction_1 = isFunction$5; function listCacheClear$1() { this.__data__ = []; this.size = 0; } var _listCacheClear = listCacheClear$1; function eq$5(value, other) { return value === other || value !== value && other !== other; } var eq_1 = eq$5; var eq$4 = eq_1; function assocIndexOf$4(array2, key) { var length = array2.length; while (length--) { if (eq$4(array2[length][0], key)) { return length; } } return -1; } var _assocIndexOf = assocIndexOf$4; var assocIndexOf$3 = _assocIndexOf; var arrayProto = Array.prototype; var splice = arrayProto.splice; function listCacheDelete$1(key) { var data = this.__data__, index2 = assocIndexOf$3(data, key); if (index2 < 0) { return false; } var lastIndex = data.length - 1; if (index2 == lastIndex) { data.pop(); } else { splice.call(data, index2, 1); } --this.size; return true; } var _listCacheDelete = listCacheDelete$1; var assocIndexOf$2 = _assocIndexOf; function listCacheGet$1(key) { var data = this.__data__, index2 = assocIndexOf$2(data, key); return index2 < 0 ? void 0 : data[index2][1]; } var _listCacheGet = listCacheGet$1; var assocIndexOf$1 = _assocIndexOf; function listCacheHas$1(key) { return assocIndexOf$1(this.__data__, key) > -1; } var _listCacheHas = listCacheHas$1; var assocIndexOf = _assocIndexOf; function listCacheSet$1(key, value) { var data = this.__data__, index2 = assocIndexOf(data, key); if (index2 < 0) { ++this.size; data.push([key, value]); } else { data[index2][1] = value; } return this; } var _listCacheSet = listCacheSet$1; var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet; function ListCache$4(entries) { var index2 = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index2 < length) { var entry = entries[index2]; this.set(entry[0], entry[1]); } } ListCache$4.prototype.clear = listCacheClear; ListCache$4.prototype["delete"] = listCacheDelete; ListCache$4.prototype.get = listCacheGet; ListCache$4.prototype.has = listCacheHas; ListCache$4.prototype.set = listCacheSet; var _ListCache = ListCache$4; var ListCache$3 = _ListCache; function stackClear$1() { this.__data__ = new ListCache$3(); this.size = 0; } var _stackClear = stackClear$1; function stackDelete$1(key) { var data = this.__data__, result = data["delete"](key); this.size = data.size; return result; } var _stackDelete = stackDelete$1; function stackGet$1(key) { return this.__data__.get(key); } var _stackGet = stackGet$1; function stackHas$1(key) { return this.__data__.has(key); } var _stackHas = stackHas$1; var root$a = _root; var coreJsData$1 = root$a["__core-js_shared__"]; var _coreJsData = coreJsData$1; var coreJsData = _coreJsData; var maskSrcKey = function() { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); return uid ? "Symbol(src)_1." + uid : ""; }(); function isMasked$1(func2) { return !!maskSrcKey && maskSrcKey in func2; } var _isMasked = isMasked$1; var funcProto$2 = Function.prototype; var funcToString$2 = funcProto$2.toString; function toSource$2(func2) { if (func2 != null) { try { return funcToString$2.call(func2); } catch (e2) { } try { return func2 + ""; } catch (e2) { } } return ""; } var _toSource = toSource$2; var isFunction$4 = isFunction_1, isMasked = _isMasked, isObject$d = isObject_1, toSource$1 = _toSource; var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; var reIsHostCtor = /^\[object .+?Constructor\]$/; var funcProto$1 = Function.prototype, objectProto$e = Object.prototype; var funcToString$1 = funcProto$1.toString; var hasOwnProperty$d = objectProto$e.hasOwnProperty; var reIsNative = RegExp( "^" + funcToString$1.call(hasOwnProperty$d).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); function baseIsNative$1(value) { if (!isObject$d(value) || isMasked(value)) { return false; } var pattern = isFunction$4(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource$1(value)); } var _baseIsNative = baseIsNative$1; function getValue$1(object2, key) { return object2 == null ? void 0 : object2[key]; } var _getValue = getValue$1; var baseIsNative = _baseIsNative, getValue = _getValue; function getNative$7(object2, key) { var value = getValue(object2, key); return baseIsNative(value) ? value : void 0; } var _getNative = getNative$7; var getNative$6 = _getNative, root$9 = _root; var Map$4 = getNative$6(root$9, "Map"); var _Map = Map$4; var getNative$5 = _getNative; var nativeCreate$4 = getNative$5(Object, "create"); var _nativeCreate = nativeCreate$4; var nativeCreate$3 = _nativeCreate; function hashClear$1() { this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {}; this.size = 0; } var _hashClear = hashClear$1; function hashDelete$1(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } var _hashDelete = hashDelete$1; var nativeCreate$2 = _nativeCreate; var HASH_UNDEFINED$2 = "__lodash_hash_undefined__"; var objectProto$d = Object.prototype; var hasOwnProperty$c = objectProto$d.hasOwnProperty; function hashGet$1(key) { var data = this.__data__; if (nativeCreate$2) { var result = data[key]; return result === HASH_UNDEFINED$2 ? void 0 : result; } return hasOwnProperty$c.call(data, key) ? data[key] : void 0; } var _hashGet = hashGet$1; var nativeCreate$1 = _nativeCreate; var objectProto$c = Object.prototype; var hasOwnProperty$b = objectProto$c.hasOwnProperty; function hashHas$1(key) { var data = this.__data__; return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$b.call(data, key); } var _hashHas = hashHas$1; var nativeCreate = _nativeCreate; var HASH_UNDEFINED$1 = "__lodash_hash_undefined__"; function hashSet$1(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value; return this; } var _hashSet = hashSet$1; var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet; function Hash$1(entries) { var index2 = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index2 < length) { var entry = entries[index2]; this.set(entry[0], entry[1]); } } Hash$1.prototype.clear = hashClear; Hash$1.prototype["delete"] = hashDelete; Hash$1.prototype.get = hashGet; Hash$1.prototype.has = hashHas; Hash$1.prototype.set = hashSet; var _Hash = Hash$1; var Hash = _Hash, ListCache$2 = _ListCache, Map$3 = _Map; function mapCacheClear$1() { this.size = 0; this.__data__ = { "hash": new Hash(), "map": new (Map$3 || ListCache$2)(), "string": new Hash() }; } var _mapCacheClear = mapCacheClear$1; function isKeyable$1(value) { var type2 = typeof value; return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null; } var _isKeyable = isKeyable$1; var isKeyable = _isKeyable; function getMapData$4(map2, key) { var data = map2.__data__; return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; } var _getMapData = getMapData$4; var getMapData$3 = _getMapData; function mapCacheDelete$1(key) { var result = getMapData$3(this, key)["delete"](key); this.size -= result ? 1 : 0; return result; } var _mapCacheDelete = mapCacheDelete$1; var getMapData$2 = _getMapData; function mapCacheGet$1(key) { return getMapData$2(this, key).get(key); } var _mapCacheGet = mapCacheGet$1; var getMapData$1 = _getMapData; function mapCacheHas$1(key) { return getMapData$1(this, key).has(key); } var _mapCacheHas = mapCacheHas$1; var getMapData = _getMapData; function mapCacheSet$1(key, value) { var data = getMapData(this, key), size = data.size; data.set(key, value); this.size += data.size == size ? 0 : 1; return this; } var _mapCacheSet = mapCacheSet$1; var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet; function MapCache$3(entries) { var index2 = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index2 < length) { var entry = entries[index2]; this.set(entry[0], entry[1]); } } MapCache$3.prototype.clear = mapCacheClear; MapCache$3.prototype["delete"] = mapCacheDelete; MapCache$3.prototype.get = mapCacheGet; MapCache$3.prototype.has = mapCacheHas; MapCache$3.prototype.set = mapCacheSet; var _MapCache = MapCache$3; var ListCache$1 = _ListCache, Map$2 = _Map, MapCache$2 = _MapCache; var LARGE_ARRAY_SIZE = 200; function stackSet$1(key, value) { var data = this.__data__; if (data instanceof ListCache$1) { var pairs = data.__data__; if (!Map$2 || pairs.length < LARGE_ARRAY_SIZE - 1) { pairs.push([key, value]); this.size = ++data.size; return this; } data = this.__data__ = new MapCache$2(pairs); } data.set(key, value); this.size = data.size; return this; } var _stackSet = stackSet$1; var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet; function Stack$4(entries) { var data = this.__data__ = new ListCache(entries); this.size = data.size; } Stack$4.prototype.clear = stackClear; Stack$4.prototype["delete"] = stackDelete; Stack$4.prototype.get = stackGet; Stack$4.prototype.has = stackHas; Stack$4.prototype.set = stackSet; var _Stack = Stack$4; var getNative$4 = _getNative; var defineProperty$2 = function() { try { var func2 = getNative$4(Object, "defineProperty"); func2({}, "", {}); return func2; } catch (e2) { } }(); var _defineProperty = defineProperty$2; var defineProperty$1 = _defineProperty; function baseAssignValue$5(object2, key, value) { if (key == "__proto__" && defineProperty$1) { defineProperty$1(object2, key, { "configurable": true, "enumerable": true, "value": value, "writable": true }); } else { object2[key] = value; } } var _baseAssignValue = baseAssignValue$5; var baseAssignValue$4 = _baseAssignValue, eq$3 = eq_1; function assignMergeValue$2(object2, key, value) { if (value !== void 0 && !eq$3(object2[key], value) || value === void 0 && !(key in object2)) { baseAssignValue$4(object2, key, value); } } var _assignMergeValue = assignMergeValue$2; function createBaseFor$1(fromRight) { return function(object2, iteratee2, keysFunc) { var index2 = -1, iterable = Object(object2), props = keysFunc(object2), length = props.length; while (length--) { var key = props[fromRight ? length : ++index2]; if (iteratee2(iterable[key], key, iterable) === false) { break; } } return object2; }; } var _createBaseFor = createBaseFor$1; var createBaseFor = _createBaseFor; var baseFor$2 = createBaseFor(); var _baseFor = baseFor$2; var _cloneBuffer = { exports: {} }; _cloneBuffer.exports; (function(module2, exports2) { var root2 = _root; var freeExports = exports2 && !exports2.nodeType && exports2; var freeModule = freeExports && true && module2 && !module2.nodeType && module2; var moduleExports = freeModule && freeModule.exports === freeExports; var Buffer2 = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0; function cloneBuffer2(buffer, isDeep) { if (isDeep) { return buffer.slice(); } var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); buffer.copy(result); return result; } module2.exports = cloneBuffer2; })(_cloneBuffer, _cloneBuffer.exports); var _cloneBufferExports = _cloneBuffer.exports; var root$8 = _root; var Uint8Array$3 = root$8.Uint8Array; var _Uint8Array = Uint8Array$3; var Uint8Array$2 = _Uint8Array; function cloneArrayBuffer$3(arrayBuffer) { var result = new arrayBuffer.constructor(arrayBuffer.byteLength); new Uint8Array$2(result).set(new Uint8Array$2(arrayBuffer)); return result; } var _cloneArrayBuffer = cloneArrayBuffer$3; var cloneArrayBuffer$2 = _cloneArrayBuffer; function cloneTypedArray$2(typedArray, isDeep) { var buffer = isDeep ? cloneArrayBuffer$2(typedArray.buffer) : typedArray.buffer; return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); } var _cloneTypedArray = cloneTypedArray$2; function copyArray$4(source, array2) { var index2 = -1, length = source.length; array2 || (array2 = Array(length)); while (++index2 < length) { array2[index2] = source[index2]; } return array2; } var _copyArray = copyArray$4; var isObject$c = isObject_1; var objectCreate = Object.create; var baseCreate$2 = /* @__PURE__ */ function() { function object2() { } return function(proto) { if (!isObject$c(proto)) { return {}; } if (objectCreate) { return objectCreate(proto); } object2.prototype = proto; var result = new object2(); object2.prototype = void 0; return result; }; }(); var _baseCreate = baseCreate$2; function overArg$2(func2, transform) { return function(arg) { return func2(transform(arg)); }; } var _overArg = overArg$2; var overArg$1 = _overArg; var getPrototype$3 = overArg$1(Object.getPrototypeOf, Object); var _getPrototype = getPrototype$3; var objectProto$b = Object.prototype; function isPrototype$3(value) { var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$b; return value === proto; } var _isPrototype = isPrototype$3; var baseCreate$1 = _baseCreate, getPrototype$2 = _getPrototype, isPrototype$2 = _isPrototype; function initCloneObject$2(object2) { return typeof object2.constructor == "function" && !isPrototype$2(object2) ? baseCreate$1(getPrototype$2(object2)) : {}; } var _initCloneObject = initCloneObject$2; function isObjectLike$b(value) { return value != null && typeof value == "object"; } var isObjectLike_1 = isObjectLike$b; var baseGetTag$5 = _baseGetTag, isObjectLike$a = isObjectLike_1; var argsTag$3 = "[object Arguments]"; function baseIsArguments$1(value) { return isObjectLike$a(value) && baseGetTag$5(value) == argsTag$3; } var _baseIsArguments = baseIsArguments$1; var baseIsArguments = _baseIsArguments, isObjectLike$9 = isObjectLike_1; var objectProto$a = Object.prototype; var hasOwnProperty$a = objectProto$a.hasOwnProperty; var propertyIsEnumerable$1 = objectProto$a.propertyIsEnumerable; var isArguments$4 = baseIsArguments(/* @__PURE__ */ function() { return arguments; }()) ? baseIsArguments : function(value) { return isObjectLike$9(value) && hasOwnProperty$a.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee"); }; var isArguments_1 = isArguments$4; var isArray$h = Array.isArray; var isArray_1 = isArray$h; var MAX_SAFE_INTEGER$1 = 9007199254740991; function isLength$3(value) { return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1; } var isLength_1 = isLength$3; var isFunction$3 = isFunction_1, isLength$2 = isLength_1; function isArrayLike$4(value) { return value != null && isLength$2(value.length) && !isFunction$3(value); } var isArrayLike_1 = isArrayLike$4; var isArrayLike$3 = isArrayLike_1, isObjectLike$8 = isObjectLike_1; function isArrayLikeObject$1(value) { return isObjectLike$8(value) && isArrayLike$3(value); } var isArrayLikeObject_1 = isArrayLikeObject$1; var isBuffer$6 = { exports: {} }; function stubFalse() { return false; } var stubFalse_1 = stubFalse; isBuffer$6.exports; (function(module2, exports2) { var root2 = _root, stubFalse2 = stubFalse_1; var freeExports = exports2 && !exports2.nodeType && exports2; var freeModule = freeExports && true && module2 && !module2.nodeType && module2; var moduleExports = freeModule && freeModule.exports === freeExports; var Buffer2 = moduleExports ? root2.Buffer : void 0; var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0; var isBuffer3 = nativeIsBuffer || stubFalse2; module2.exports = isBuffer3; })(isBuffer$6, isBuffer$6.exports); var isBufferExports = isBuffer$6.exports; var baseGetTag$4 = _baseGetTag, getPrototype$1 = _getPrototype, isObjectLike$7 = isObjectLike_1; var objectTag$4 = "[object Object]"; var funcProto = Function.prototype, objectProto$9 = Object.prototype; var funcToString = funcProto.toString; var hasOwnProperty$9 = objectProto$9.hasOwnProperty; var objectCtorString = funcToString.call(Object); function isPlainObject$8(value) { if (!isObjectLike$7(value) || baseGetTag$4(value) != objectTag$4) { return false; } var proto = getPrototype$1(value); if (proto === null) { return true; } var Ctor = hasOwnProperty$9.call(proto, "constructor") && proto.constructor; return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; } var isPlainObject_1 = isPlainObject$8; var baseGetTag$3 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$6 = isObjectLike_1; var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$3 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$3 = "[object Error]", funcTag$1 = "[object Function]", mapTag$5 = "[object Map]", numberTag$3 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$5 = "[object Set]", stringTag$3 = "[object String]", weakMapTag$3 = "[object WeakMap]"; var arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]"; var typedArrayTags = {}; typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true; typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$3] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$5] = typedArrayTags[numberTag$3] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$3] = typedArrayTags[setTag$5] = typedArrayTags[stringTag$3] = typedArrayTags[weakMapTag$3] = false; function baseIsTypedArray$1(value) { return isObjectLike$6(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$3(value)]; } var _baseIsTypedArray = baseIsTypedArray$1; function baseUnary$3(func2) { return function(value) { return func2(value); }; } var _baseUnary = baseUnary$3; var _nodeUtil = { exports: {} }; _nodeUtil.exports; (function(module2, exports2) { var freeGlobal2 = _freeGlobal; var freeExports = exports2 && !exports2.nodeType && exports2; var freeModule = freeExports && true && module2 && !module2.nodeType && module2; var moduleExports = freeModule && freeModule.exports === freeExports; var freeProcess = moduleExports && freeGlobal2.process; var nodeUtil2 = function() { try { var types = freeModule && freeModule.require && freeModule.require("util").types; if (types) { return types; } return freeProcess && freeProcess.binding && freeProcess.binding("util"); } catch (e2) { } }(); module2.exports = nodeUtil2; })(_nodeUtil, _nodeUtil.exports); var _nodeUtilExports = _nodeUtil.exports; var baseIsTypedArray = _baseIsTypedArray, baseUnary$2 = _baseUnary, nodeUtil$2 = _nodeUtilExports; var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray; var isTypedArray$4 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray; var isTypedArray_1 = isTypedArray$4; function safeGet$2(object2, key) { if (key === "constructor" && typeof object2[key] === "function") { return; } if (key == "__proto__") { return; } return object2[key]; } var _safeGet = safeGet$2; var baseAssignValue$3 = _baseAssignValue, eq$2 = eq_1; var objectProto$8 = Object.prototype; var hasOwnProperty$8 = objectProto$8.hasOwnProperty; function assignValue$3(object2, key, value) { var objValue = object2[key]; if (!(hasOwnProperty$8.call(object2, key) && eq$2(objValue, value)) || value === void 0 && !(key in object2)) { baseAssignValue$3(object2, key, value); } } var _assignValue = assignValue$3; var assignValue$2 = _assignValue, baseAssignValue$2 = _baseAssignValue; function copyObject$6(source, props, object2, customizer) { var isNew = !object2; object2 || (object2 = {}); var index2 = -1, length = props.length; while (++index2 < length) { var key = props[index2]; var newValue = customizer ? customizer(object2[key], source[key], key, object2, source) : void 0; if (newValue === void 0) { newValue = source[key]; } if (isNew) { baseAssignValue$2(object2, key, newValue); } else { assignValue$2(object2, key, newValue); } } return object2; } var _copyObject = copyObject$6; function baseTimes$1(n2, iteratee2) { var index2 = -1, result = Array(n2); while (++index2 < n2) { result[index2] = iteratee2(index2); } return result; } var _baseTimes = baseTimes$1; var MAX_SAFE_INTEGER = 9007199254740991; var reIsUint = /^(?:0|[1-9]\d*)$/; function isIndex$5(value, length) { var type2 = typeof value; length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); } var _isIndex = isIndex$5; var baseTimes = _baseTimes, isArguments$3 = isArguments_1, isArray$g = isArray_1, isBuffer$5 = isBufferExports, isIndex$4 = _isIndex, isTypedArray$3 = isTypedArray_1; var objectProto$7 = Object.prototype; var hasOwnProperty$7 = objectProto$7.hasOwnProperty; function arrayLikeKeys$2(value, inherited) { var isArr = isArray$g(value), isArg = !isArr && isArguments$3(value), isBuff = !isArr && !isArg && isBuffer$5(value), isType = !isArr && !isArg && !isBuff && isTypedArray$3(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; for (var key in value) { if ((inherited || hasOwnProperty$7.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode. (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties. isIndex$4(key, length)))) { result.push(key); } } return result; } var _arrayLikeKeys = arrayLikeKeys$2; function nativeKeysIn$1(object2) { var result = []; if (object2 != null) { for (var key in Object(object2)) { result.push(key); } } return result; } var _nativeKeysIn = nativeKeysIn$1; var isObject$b = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn; var objectProto$6 = Object.prototype; var hasOwnProperty$6 = objectProto$6.hasOwnProperty; function baseKeysIn$1(object2) { if (!isObject$b(object2)) { return nativeKeysIn(object2); } var isProto = isPrototype$1(object2), result = []; for (var key in object2) { if (!(key == "constructor" && (isProto || !hasOwnProperty$6.call(object2, key)))) { result.push(key); } } return result; } var _baseKeysIn = baseKeysIn$1; var arrayLikeKeys$1 = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike$2 = isArrayLike_1; function keysIn$5(object2) { return isArrayLike$2(object2) ? arrayLikeKeys$1(object2, true) : baseKeysIn(object2); } var keysIn_1 = keysIn$5; var copyObject$5 = _copyObject, keysIn$4 = keysIn_1; function toPlainObject$1(value) { return copyObject$5(value, keysIn$4(value)); } var toPlainObject_1 = toPlainObject$1; var assignMergeValue$1 = _assignMergeValue, cloneBuffer$1 = _cloneBufferExports, cloneTypedArray$1 = _cloneTypedArray, copyArray$3 = _copyArray, initCloneObject$1 = _initCloneObject, isArguments$2 = isArguments_1, isArray$f = isArray_1, isArrayLikeObject = isArrayLikeObject_1, isBuffer$4 = isBufferExports, isFunction$2 = isFunction_1, isObject$a = isObject_1, isPlainObject$7 = isPlainObject_1, isTypedArray$2 = isTypedArray_1, safeGet$1 = _safeGet, toPlainObject = toPlainObject_1; function baseMergeDeep$1(object2, source, key, srcIndex, mergeFunc, customizer, stack) { var objValue = safeGet$1(object2, key), srcValue = safeGet$1(source, key), stacked = stack.get(srcValue); if (stacked) { assignMergeValue$1(object2, key, stacked); return; } var newValue = customizer ? customizer(objValue, srcValue, key + "", object2, source, stack) : void 0; var isCommon = newValue === void 0; if (isCommon) { var isArr = isArray$f(srcValue), isBuff = !isArr && isBuffer$4(srcValue), isTyped = !isArr && !isBuff && isTypedArray$2(srcValue); newValue = srcValue; if (isArr || isBuff || isTyped) { if (isArray$f(objValue)) { newValue = objValue; } else if (isArrayLikeObject(objValue)) { newValue = copyArray$3(objValue); } else if (isBuff) { isCommon = false; newValue = cloneBuffer$1(srcValue, true); } else if (isTyped) { isCommon = false; newValue = cloneTypedArray$1(srcValue, true); } else { newValue = []; } } else if (isPlainObject$7(srcValue) || isArguments$2(srcValue)) { newValue = objValue; if (isArguments$2(objValue)) { newValue = toPlainObject(objValue); } else if (!isObject$a(objValue) || isFunction$2(objValue)) { newValue = initCloneObject$1(srcValue); } } else { isCommon = false; } } if (isCommon) { stack.set(srcValue, newValue); mergeFunc(newValue, srcValue, srcIndex, customizer, stack); stack["delete"](srcValue); } assignMergeValue$1(object2, key, newValue); } var _baseMergeDeep = baseMergeDeep$1; var Stack$3 = _Stack, assignMergeValue = _assignMergeValue, baseFor$1 = _baseFor, baseMergeDeep = _baseMergeDeep, isObject$9 = isObject_1, keysIn$3 = keysIn_1, safeGet = _safeGet; function baseMerge$3(object2, source, srcIndex, customizer, stack) { if (object2 === source) { return; } baseFor$1(source, function(srcValue, key) { stack || (stack = new Stack$3()); if (isObject$9(srcValue)) { baseMergeDeep(object2, source, key, srcIndex, baseMerge$3, customizer, stack); } else { var newValue = customizer ? customizer(safeGet(object2, key), srcValue, key + "", object2, source, stack) : void 0; if (newValue === void 0) { newValue = srcValue; } assignMergeValue(object2, key, newValue); } }, keysIn$3); } var _baseMerge = baseMerge$3; function identity$4(value) { return value; } var identity_1 = identity$4; function apply$4(func2, thisArg, args) { switch (args.length) { case 0: return func2.call(thisArg); case 1: return func2.call(thisArg, args[0]); case 2: return func2.call(thisArg, args[0], args[1]); case 3: return func2.call(thisArg, args[0], args[1], args[2]); } return func2.apply(thisArg, args); } var _apply = apply$4; var apply$3 = _apply; var nativeMax$3 = Math.max; function overRest$2(func2, start, transform) { start = nativeMax$3(start === void 0 ? func2.length - 1 : start, 0); return function() { var args = arguments, index2 = -1, length = nativeMax$3(args.length - start, 0), array2 = Array(length); while (++index2 < length) { array2[index2] = args[start + index2]; } index2 = -1; var otherArgs = Array(start + 1); while (++index2 < start) { otherArgs[index2] = args[index2]; } otherArgs[start] = transform(array2); return apply$3(func2, this, otherArgs); }; } var _overRest = overRest$2; function constant$1(value) { return function() { return value; }; } var constant_1 = constant$1; var constant = constant_1, defineProperty = _defineProperty, identity$3 = identity_1; var baseSetToString$1 = !defineProperty ? identity$3 : function(func2, string2) { return defineProperty(func2, "toString", { "configurable": true, "enumerable": false, "value": constant(string2), "writable": true }); }; var _baseSetToString = baseSetToString$1; var HOT_COUNT = 800, HOT_SPAN = 16; var nativeNow = Date.now; function shortOut$2(func2) { var count = 0, lastCalled = 0; return function() { var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); lastCalled = stamp; if (remaining > 0) { if (++count >= HOT_COUNT) { return arguments[0]; } } else { count = 0; } return func2.apply(void 0, arguments); }; } var _shortOut = shortOut$2; var baseSetToString = _baseSetToString, shortOut$1 = _shortOut; var setToString$3 = shortOut$1(baseSetToString); var _setToString = setToString$3; var identity$2 = identity_1, overRest$1 = _overRest, setToString$2 = _setToString; function baseRest$2(func2, start) { return setToString$2(overRest$1(func2, start, identity$2), func2 + ""); } var _baseRest = baseRest$2; var eq$1 = eq_1, isArrayLike$1 = isArrayLike_1, isIndex$3 = _isIndex, isObject$8 = isObject_1; function isIterateeCall$1(value, index2, object2) { if (!isObject$8(object2)) { return false; } var type2 = typeof index2; if (type2 == "number" ? isArrayLike$1(object2) && isIndex$3(index2, object2.length) : type2 == "string" && index2 in object2) { return eq$1(object2[index2], value); } return false; } var _isIterateeCall = isIterateeCall$1; var baseRest$1 = _baseRest, isIterateeCall = _isIterateeCall; function createAssigner$2(assigner) { return baseRest$1(function(object2, sources) { var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0; customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0; if (guard && isIterateeCall(sources[0], sources[1], guard)) { customizer = length < 3 ? void 0 : customizer; length = 1; } object2 = Object(object2); while (++index2 < length) { var source = sources[index2]; if (source) { assigner(object2, source, index2, customizer); } } return object2; }); } var _createAssigner = createAssigner$2; var baseMerge$2 = _baseMerge, createAssigner$1 = _createAssigner; createAssigner$1(function(object2, source, srcIndex) { baseMerge$2(object2, source, srcIndex); }); var baseGetTag$2 = _baseGetTag, isObjectLike$5 = isObjectLike_1; var symbolTag$3 = "[object Symbol]"; function isSymbol$6(value) { return typeof value == "symbol" || isObjectLike$5(value) && baseGetTag$2(value) == symbolTag$3; } var isSymbol_1 = isSymbol$6; var isArray$e = isArray_1, isSymbol$5 = isSymbol_1; var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; function isKey$3(value, object2) { if (isArray$e(value)) { return false; } var type2 = typeof value; if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value == null || isSymbol$5(value)) { return true; } return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object2 != null && value in Object(object2); } var _isKey = isKey$3; var MapCache$1 = _MapCache; var FUNC_ERROR_TEXT$1 = "Expected a function"; function memoize$1(func2, resolver) { if (typeof func2 != "function" || resolver != null && typeof resolver != "function") { throw new TypeError(FUNC_ERROR_TEXT$1); } var memoized = function() { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache2 = memoized.cache; if (cache2.has(key)) { return cache2.get(key); } var result = func2.apply(this, args); memoized.cache = cache2.set(key, result) || cache2; return result; }; memoized.cache = new (memoize$1.Cache || MapCache$1)(); return memoized; } memoize$1.Cache = MapCache$1; var memoize_1 = memoize$1; var memoize = memoize_1; var MAX_MEMOIZE_SIZE = 500; function memoizeCapped$1(func2) { var result = memoize(func2, function(key) { if (cache2.size === MAX_MEMOIZE_SIZE) { cache2.clear(); } return key; }); var cache2 = result.cache; return result; } var _memoizeCapped = memoizeCapped$1; var memoizeCapped = _memoizeCapped; var rePropName$1 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; var reEscapeChar$1 = /\\(\\)?/g; var stringToPath$3 = memoizeCapped(function(string2) { var result = []; if (string2.charCodeAt(0) === 46) { result.push(""); } string2.replace(rePropName$1, function(match, number2, quote2, subString) { result.push(quote2 ? subString.replace(reEscapeChar$1, "$1") : number2 || match); }); return result; }); var _stringToPath = stringToPath$3; function arrayMap$3(array2, iteratee2) { var index2 = -1, length = array2 == null ? 0 : array2.length, result = Array(length); while (++index2 < length) { result[index2] = iteratee2(array2[index2], index2, array2); } return result; } var _arrayMap = arrayMap$3; var Symbol$4 = _Symbol, arrayMap$2 = _arrayMap, isArray$d = isArray_1, isSymbol$4 = isSymbol_1; var symbolProto$2 = Symbol$4 ? Symbol$4.prototype : void 0, symbolToString$1 = symbolProto$2 ? symbolProto$2.toString : void 0; function baseToString$1(value) { if (typeof value == "string") { return value; } if (isArray$d(value)) { return arrayMap$2(value, baseToString$1) + ""; } if (isSymbol$4(value)) { return symbolToString$1 ? symbolToString$1.call(value) : ""; } var result = value + ""; return result == "0" && 1 / value == -Infinity ? "-0" : result; } var _baseToString = baseToString$1; var baseToString = _baseToString; function toString$8(value) { return value == null ? "" : baseToString(value); } var toString_1 = toString$8; var isArray$c = isArray_1, isKey$2 = _isKey, stringToPath$2 = _stringToPath, toString$7 = toString_1; function castPath$6(value, object2) { if (isArray$c(value)) { return value; } return isKey$2(value, object2) ? [value] : stringToPath$2(toString$7(value)); } var _castPath = castPath$6; var isSymbol$3 = isSymbol_1; function toKey$7(value) { if (typeof value == "string" || isSymbol$3(value)) { return value; } var result = value + ""; return result == "0" && 1 / value == -Infinity ? "-0" : result; } var _toKey = toKey$7; var castPath$5 = _castPath, toKey$6 = _toKey; function baseGet$4(object2, path) { path = castPath$5(path, object2); var index2 = 0, length = path.length; while (object2 != null && index2 < length) { object2 = object2[toKey$6(path[index2++])]; } return index2 && index2 == length ? object2 : void 0; } var _baseGet = baseGet$4; var assignValue$1 = _assignValue, castPath$4 = _castPath, isIndex$2 = _isIndex, isObject$7 = isObject_1, toKey$5 = _toKey; function baseSet$1(object2, path, value, customizer) { if (!isObject$7(object2)) { return object2; } path = castPath$4(path, object2); var index2 = -1, length = path.length, lastIndex = length - 1, nested = object2; while (nested != null && ++index2 < length) { var key = toKey$5(path[index2]), newValue = value; if (key === "__proto__" || key === "constructor" || key === "prototype") { return object2; } if (index2 != lastIndex) { var objValue = nested[key]; newValue = customizer ? customizer(objValue, key, nested) : void 0; if (newValue === void 0) { newValue = isObject$7(objValue) ? objValue : isIndex$2(path[index2 + 1]) ? [] : {}; } } assignValue$1(nested, key, newValue); nested = nested[key]; } return object2; } var _baseSet = baseSet$1; var baseGet$3 = _baseGet, baseSet = _baseSet, castPath$3 = _castPath; function basePickBy$1(object2, paths, predicate) { var index2 = -1, length = paths.length, result = {}; while (++index2 < length) { var path = paths[index2], value = baseGet$3(object2, path); if (predicate(value, path)) { baseSet(result, castPath$3(path, object2), value); } } return result; } var _basePickBy = basePickBy$1; function baseHasIn$1(object2, key) { return object2 != null && key in Object(object2); } var _baseHasIn = baseHasIn$1; var castPath$2 = _castPath, isArguments$1 = isArguments_1, isArray$b = isArray_1, isIndex$1 = _isIndex, isLength = isLength_1, toKey$4 = _toKey; function hasPath$2(object2, path, hasFunc) { path = castPath$2(path, object2); var index2 = -1, length = path.length, result = false; while (++index2 < length) { var key = toKey$4(path[index2]); if (!(result = object2 != null && hasFunc(object2, key))) { break; } object2 = object2[key]; } if (result || ++index2 != length) { return result; } length = object2 == null ? 0 : object2.length; return !!length && isLength(length) && isIndex$1(key, length) && (isArray$b(object2) || isArguments$1(object2)); } var _hasPath = hasPath$2; var baseHasIn = _baseHasIn, hasPath$1 = _hasPath; function hasIn$2(object2, path) { return object2 != null && hasPath$1(object2, path, baseHasIn); } var hasIn_1 = hasIn$2; var basePickBy = _basePickBy, hasIn$1 = hasIn_1; function basePick$1(object2, paths) { return basePickBy(object2, paths, function(value, path) { return hasIn$1(object2, path); }); } var _basePick = basePick$1; function arrayPush$3(array2, values) { var index2 = -1, length = values.length, offset = array2.length; while (++index2 < length) { array2[offset + index2] = values[index2]; } return array2; } var _arrayPush = arrayPush$3; var Symbol$3 = _Symbol, isArguments = isArguments_1, isArray$a = isArray_1; var spreadableSymbol = Symbol$3 ? Symbol$3.isConcatSpreadable : void 0; function isFlattenable$1(value) { return isArray$a(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); } var _isFlattenable = isFlattenable$1; var arrayPush$2 = _arrayPush, isFlattenable = _isFlattenable; function baseFlatten$1(array2, depth, predicate, isStrict, result) { var index2 = -1, length = array2.length; predicate || (predicate = isFlattenable); result || (result = []); while (++index2 < length) { var value = array2[index2]; if (depth > 0 && predicate(value)) { if (depth > 1) { baseFlatten$1(value, depth - 1, predicate, isStrict, result); } else { arrayPush$2(result, value); } } else if (!isStrict) { result[result.length] = value; } } return result; } var _baseFlatten = baseFlatten$1; var baseFlatten = _baseFlatten; function flatten$2(array2) { var length = array2 == null ? 0 : array2.length; return length ? baseFlatten(array2, 1) : []; } var flatten_1 = flatten$2; var flatten$1 = flatten_1, overRest = _overRest, setToString$1 = _setToString; function flatRest$3(func2) { return setToString$1(overRest(func2, void 0, flatten$1), func2 + ""); } var _flatRest = flatRest$3; var basePick = _basePick, flatRest$2 = _flatRest; flatRest$2(function(object2, paths) { return object2 == null ? {} : basePick(object2, paths); }); function n(n2) { for (var r2 = arguments.length, t2 = Array(r2 > 1 ? r2 - 1 : 0), e2 = 1; e2 < r2; e2++) t2[e2 - 1] = arguments[e2]; if ("production" !== process.env.NODE_ENV) { var i2 = Y[n2], o2 = i2 ? "function" == typeof i2 ? i2.apply(null, t2) : i2 : "unknown error nr: " + n2; throw Error("[Immer] " + o2); } throw Error("[Immer] minified error nr: " + n2 + (t2.length ? " " + t2.map(function(n3) { return "'" + n3 + "'"; }).join(",") : "") + ". Find the full error at: https://bit.ly/3cXEKWf"); } function r(n2) { return !!n2 && !!n2[Q]; } function t(n2) { var r2; return !!n2 && (function(n3) { if (!n3 || "object" != typeof n3) return false; var r3 = Object.getPrototypeOf(n3); if (null === r3) return true; var t2 = Object.hasOwnProperty.call(r3, "constructor") && r3.constructor; return t2 === Object || "function" == typeof t2 && Function.toString.call(t2) === Z; }(n2) || Array.isArray(n2) || !!n2[L] || !!(null === (r2 = n2.constructor) || void 0 === r2 ? void 0 : r2[L]) || s(n2) || v$1(n2)); } function e(t2) { return r(t2) || n(23, t2), t2[Q].t; } function i(n2, r2, t2) { void 0 === t2 && (t2 = false), 0 === o(n2) ? (t2 ? Object.keys : nn)(n2).forEach(function(e2) { t2 && "symbol" == typeof e2 || r2(e2, n2[e2], n2); }) : n2.forEach(function(t3, e2) { return r2(e2, t3, n2); }); } function o(n2) { var r2 = n2[Q]; return r2 ? r2.i > 3 ? r2.i - 4 : r2.i : Array.isArray(n2) ? 1 : s(n2) ? 2 : v$1(n2) ? 3 : 0; } function u(n2, r2) { return 2 === o(n2) ? n2.has(r2) : Object.prototype.hasOwnProperty.call(n2, r2); } function a$1(n2, r2) { return 2 === o(n2) ? n2.get(r2) : n2[r2]; } function f$1(n2, r2, t2) { var e2 = o(n2); 2 === e2 ? n2.set(r2, t2) : 3 === e2 ? n2.add(t2) : n2[r2] = t2; } function c(n2, r2) { return n2 === r2 ? 0 !== n2 || 1 / n2 == 1 / r2 : n2 != n2 && r2 != r2; } function s(n2) { return X && n2 instanceof Map; } function v$1(n2) { return q && n2 instanceof Set; } function p(n2) { return n2.o || n2.t; } function l(n2) { if (Array.isArray(n2)) return Array.prototype.slice.call(n2); var r2 = rn(n2); delete r2[Q]; for (var t2 = nn(r2), e2 = 0; e2 < t2.length; e2++) { var i2 = t2[e2], o2 = r2[i2]; false === o2.writable && (o2.writable = true, o2.configurable = true), (o2.get || o2.set) && (r2[i2] = { configurable: true, writable: true, enumerable: o2.enumerable, value: n2[i2] }); } return Object.create(Object.getPrototypeOf(n2), r2); } function d$1(n2, e2) { return void 0 === e2 && (e2 = false), y(n2) || r(n2) || !t(n2) || (o(n2) > 1 && (n2.set = n2.add = n2.clear = n2.delete = h$1), Object.freeze(n2), e2 && i(n2, function(n3, r2) { return d$1(r2, true); }, true)), n2; } function h$1() { n(2); } function y(n2) { return null == n2 || "object" != typeof n2 || Object.isFrozen(n2); } function b(r2) { var t2 = tn[r2]; return t2 || n(18, r2), t2; } function m(n2, r2) { tn[n2] || (tn[n2] = r2); } function _() { return "production" === process.env.NODE_ENV || U || n(0), U; } function j(n2, r2) { r2 && (b("Patches"), n2.u = [], n2.s = [], n2.v = r2); } function g(n2) { O(n2), n2.p.forEach(S), n2.p = null; } function O(n2) { n2 === U && (U = n2.l); } function w(n2) { return U = { p: [], l: U, h: n2, m: true, _: 0 }; } function S(n2) { var r2 = n2[Q]; 0 === r2.i || 1 === r2.i ? r2.j() : r2.g = true; } function P(r2, e2) { e2._ = e2.p.length; var i2 = e2.p[0], o2 = void 0 !== r2 && r2 !== i2; return e2.h.O || b("ES5").S(e2, r2, o2), o2 ? (i2[Q].P && (g(e2), n(4)), t(r2) && (r2 = M(e2, r2), e2.l || x(e2, r2)), e2.u && b("Patches").M(i2[Q].t, r2, e2.u, e2.s)) : r2 = M(e2, i2, []), g(e2), e2.u && e2.v(e2.u, e2.s), r2 !== H ? r2 : void 0; } function M(n2, r2, t2) { if (y(r2)) return r2; var e2 = r2[Q]; if (!e2) return i(r2, function(i2, o3) { return A(n2, e2, r2, i2, o3, t2); }, true), r2; if (e2.A !== n2) return r2; if (!e2.P) return x(n2, e2.t, true), e2.t; if (!e2.I) { e2.I = true, e2.A._--; var o2 = 4 === e2.i || 5 === e2.i ? e2.o = l(e2.k) : e2.o, u2 = o2, a2 = false; 3 === e2.i && (u2 = new Set(o2), o2.clear(), a2 = true), i(u2, function(r3, i2) { return A(n2, e2, o2, r3, i2, t2, a2); }), x(n2, o2, false), t2 && n2.u && b("Patches").N(e2, t2, n2.u, n2.s); } return e2.o; } function A(e2, i2, o2, a2, c2, s2, v2) { if ("production" !== process.env.NODE_ENV && c2 === o2 && n(5), r(c2)) { var p2 = M(e2, c2, s2 && i2 && 3 !== i2.i && !u(i2.R, a2) ? s2.concat(a2) : void 0); if (f$1(o2, a2, p2), !r(p2)) return; e2.m = false; } else v2 && o2.add(c2); if (t(c2) && !y(c2)) { if (!e2.h.D && e2._ < 1) return; M(e2, c2), i2 && i2.A.l || x(e2, c2); } } function x(n2, r2, t2) { void 0 === t2 && (t2 = false), !n2.l && n2.h.D && n2.m && d$1(r2, t2); } function z(n2, r2) { var t2 = n2[Q]; return (t2 ? p(t2) : n2)[r2]; } function I(n2, r2) { if (r2 in n2) for (var t2 = Object.getPrototypeOf(n2); t2; ) { var e2 = Object.getOwnPropertyDescriptor(t2, r2); if (e2) return