PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.0-dev2
Elementor Website Builder – more than just a page builder v3.32.0-dev2
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | assets/js/app-loader.js +3384 -7 4.2.13.32.0-dev2 View file →
@@ -1,4 +1,5 @@
1 +/*! elementor - v3.32.0 - 03-09-2025 */
1 2 /******/ (() => { // webpackBootstrap
2 3 /******/ var __webpack_modules__ = ({
3 4
4 5 /***/ "../app/assets/js/loader/commands/close.js":
@@ -269,10 +270,10 @@
269 270 var _iterator = _createForOfIteratorHelper(constructors),
270 271 _step;
271 272 try {
272 273 for (_iterator.s(); !(_step = _iterator.n()).done;) {
273 - var constructor = _step.value;
274 - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) {
274 + var _constructor = _step.value;
275 + if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) {
275 276 return true;
276 277 }
277 278 }
278 279 } catch (err) {
@@ -1109,9 +1110,9 @@
1109 1110 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1110 1111 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1111 1112 var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1112 1113 var _commandCallbackBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-callback-base */ "../modules/web-cli/assets/js/modules/command-callback-base.js"));
1113 -var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "@reduxjs/toolkit");
1114 +var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js");
1114 1115 var _module = _interopRequireDefault(__webpack_require__(/*! elementor/assets/dev/js/modules/imports/module.js */ "../assets/dev/js/modules/imports/module.js"));
1115 1116 var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js"));
1116 1117 var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
1117 1118 function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -2047,8 +2048,145 @@
2047 2048 module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
2048 2049
2049 2050 /***/ }),
2050 2051
2052 +/***/ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js":
2053 +/*!********************************************************************!*\
2054 + !*** ../node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
2055 + \********************************************************************/
2056 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2057 +
2058 +"use strict";
2059 +__webpack_require__.r(__webpack_exports__);
2060 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2061 +/* harmony export */ "default": () => (/* binding */ _defineProperty)
2062 +/* harmony export */ });
2063 +/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
2064 +
2065 +function _defineProperty(e, r, t) {
2066 + return (r = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r)) in e ? Object.defineProperty(e, r, {
2067 + value: t,
2068 + enumerable: !0,
2069 + configurable: !0,
2070 + writable: !0
2071 + }) : e[r] = t, e;
2072 +}
2073 +
2074 +
2075 +/***/ }),
2076 +
2077 +/***/ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js":
2078 +/*!*******************************************************************!*\
2079 + !*** ../node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
2080 + \*******************************************************************/
2081 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2082 +
2083 +"use strict";
2084 +__webpack_require__.r(__webpack_exports__);
2085 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2086 +/* harmony export */ "default": () => (/* binding */ _objectSpread2)
2087 +/* harmony export */ });
2088 +/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js");
2089 +
2090 +function ownKeys(e, r) {
2091 + var t = Object.keys(e);
2092 + if (Object.getOwnPropertySymbols) {
2093 + var o = Object.getOwnPropertySymbols(e);
2094 + r && (o = o.filter(function (r) {
2095 + return Object.getOwnPropertyDescriptor(e, r).enumerable;
2096 + })), t.push.apply(t, o);
2097 + }
2098 + return t;
2099 +}
2100 +function _objectSpread2(e) {
2101 + for (var r = 1; r < arguments.length; r++) {
2102 + var t = null != arguments[r] ? arguments[r] : {};
2103 + r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
2104 + (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]);
2105 + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
2106 + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
2107 + });
2108 + }
2109 + return e;
2110 +}
2111 +
2112 +
2113 +/***/ }),
2114 +
2115 +/***/ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
2116 +/*!*****************************************************************!*\
2117 + !*** ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
2118 + \*****************************************************************/
2119 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2120 +
2121 +"use strict";
2122 +__webpack_require__.r(__webpack_exports__);
2123 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2124 +/* harmony export */ "default": () => (/* binding */ toPrimitive)
2125 +/* harmony export */ });
2126 +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js");
2127 +
2128 +function toPrimitive(t, r) {
2129 + if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
2130 + var e = t[Symbol.toPrimitive];
2131 + if (void 0 !== e) {
2132 + var i = e.call(t, r || "default");
2133 + if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
2134 + throw new TypeError("@@toPrimitive must return a primitive value.");
2135 + }
2136 + return ("string" === r ? String : Number)(t);
2137 +}
2138 +
2139 +
2140 +/***/ }),
2141 +
2142 +/***/ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
2143 +/*!*******************************************************************!*\
2144 + !*** ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
2145 + \*******************************************************************/
2146 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2147 +
2148 +"use strict";
2149 +__webpack_require__.r(__webpack_exports__);
2150 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2151 +/* harmony export */ "default": () => (/* binding */ toPropertyKey)
2152 +/* harmony export */ });
2153 +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js");
2154 +/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
2155 +
2156 +
2157 +function toPropertyKey(t) {
2158 + var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(t, "string");
2159 + return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : i + "";
2160 +}
2161 +
2162 +
2163 +/***/ }),
2164 +
2165 +/***/ "../node_modules/@babel/runtime/helpers/esm/typeof.js":
2166 +/*!************************************************************!*\
2167 + !*** ../node_modules/@babel/runtime/helpers/esm/typeof.js ***!
2168 + \************************************************************/
2169 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2170 +
2171 +"use strict";
2172 +__webpack_require__.r(__webpack_exports__);
2173 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2174 +/* harmony export */ "default": () => (/* binding */ _typeof)
2175 +/* harmony export */ });
2176 +function _typeof(o) {
2177 + "@babel/helpers - typeof";
2178 +
2179 + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2180 + return typeof o;
2181 + } : function (o) {
2182 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2183 + }, _typeof(o);
2184 +}
2185 +
2186 +
2187 +/***/ }),
2188 +
2051 2189 /***/ "../node_modules/@babel/runtime/helpers/get.js":
2052 2190 /*!*****************************************************!*\
2053 2191 !*** ../node_modules/@babel/runtime/helpers/get.js ***!
2054 2192 \*****************************************************/
@@ -2379,17 +2517,3215 @@
2379 2517 module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
2380 2518
2381 2519 /***/ }),
2382 2520
2383 -/***/ "@reduxjs/toolkit":
2521 +/***/ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js":
2522 +/*!******************************************************************!*\
2523 + !*** ../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js ***!
2524 + \******************************************************************/
2525 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2526 +
2527 +"use strict";
2528 +__webpack_require__.r(__webpack_exports__);
2529 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2530 +/* harmony export */ EnhancerArray: () => (/* binding */ EnhancerArray),
2531 +/* harmony export */ MiddlewareArray: () => (/* binding */ MiddlewareArray),
2532 +/* harmony export */ SHOULD_AUTOBATCH: () => (/* binding */ SHOULD_AUTOBATCH),
2533 +/* harmony export */ TaskAbortError: () => (/* binding */ TaskAbortError),
2534 +/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.__DO_NOT_USE__ActionTypes),
2535 +/* harmony export */ addListener: () => (/* binding */ addListener),
2536 +/* harmony export */ applyMiddleware: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware),
2537 +/* harmony export */ autoBatchEnhancer: () => (/* binding */ autoBatchEnhancer),
2538 +/* harmony export */ bindActionCreators: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.bindActionCreators),
2539 +/* harmony export */ clearAllListeners: () => (/* binding */ clearAllListeners),
2540 +/* harmony export */ combineReducers: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers),
2541 +/* harmony export */ compose: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.compose),
2542 +/* harmony export */ configureStore: () => (/* binding */ configureStore),
2543 +/* harmony export */ createAction: () => (/* binding */ createAction),
2544 +/* harmony export */ createActionCreatorInvariantMiddleware: () => (/* binding */ createActionCreatorInvariantMiddleware),
2545 +/* harmony export */ createAsyncThunk: () => (/* binding */ createAsyncThunk),
2546 +/* harmony export */ createDraftSafeSelector: () => (/* binding */ createDraftSafeSelector),
2547 +/* harmony export */ createEntityAdapter: () => (/* binding */ createEntityAdapter),
2548 +/* harmony export */ createImmutableStateInvariantMiddleware: () => (/* binding */ createImmutableStateInvariantMiddleware),
2549 +/* harmony export */ createListenerMiddleware: () => (/* binding */ createListenerMiddleware),
2550 +/* harmony export */ createNextState: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__["default"]),
2551 +/* harmony export */ createReducer: () => (/* binding */ createReducer),
2552 +/* harmony export */ createSelector: () => (/* reexport safe */ reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector),
2553 +/* harmony export */ createSerializableStateInvariantMiddleware: () => (/* binding */ createSerializableStateInvariantMiddleware),
2554 +/* harmony export */ createSlice: () => (/* binding */ createSlice),
2555 +/* harmony export */ createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.createStore),
2556 +/* harmony export */ current: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.current),
2557 +/* harmony export */ findNonSerializableValue: () => (/* binding */ findNonSerializableValue),
2558 +/* harmony export */ freeze: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.freeze),
2559 +/* harmony export */ getDefaultMiddleware: () => (/* binding */ getDefaultMiddleware),
2560 +/* harmony export */ getType: () => (/* binding */ getType),
2561 +/* harmony export */ isAction: () => (/* binding */ isAction),
2562 +/* harmony export */ isActionCreator: () => (/* binding */ isActionCreator),
2563 +/* harmony export */ isAllOf: () => (/* binding */ isAllOf),
2564 +/* harmony export */ isAnyOf: () => (/* binding */ isAnyOf),
2565 +/* harmony export */ isAsyncThunkAction: () => (/* binding */ isAsyncThunkAction),
2566 +/* harmony export */ isDraft: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.isDraft),
2567 +/* harmony export */ isFluxStandardAction: () => (/* binding */ isFSA),
2568 +/* harmony export */ isFulfilled: () => (/* binding */ isFulfilled),
2569 +/* harmony export */ isImmutableDefault: () => (/* binding */ isImmutableDefault),
2570 +/* harmony export */ isPending: () => (/* binding */ isPending),
2571 +/* harmony export */ isPlain: () => (/* binding */ isPlain),
2572 +/* harmony export */ isPlainObject: () => (/* binding */ isPlainObject),
2573 +/* harmony export */ isRejected: () => (/* binding */ isRejected),
2574 +/* harmony export */ isRejectedWithValue: () => (/* binding */ isRejectedWithValue),
2575 +/* harmony export */ legacy_createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.legacy_createStore),
2576 +/* harmony export */ miniSerializeError: () => (/* binding */ miniSerializeError),
2577 +/* harmony export */ nanoid: () => (/* binding */ nanoid),
2578 +/* harmony export */ original: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.original),
2579 +/* harmony export */ prepareAutoBatched: () => (/* binding */ prepareAutoBatched),
2580 +/* harmony export */ removeListener: () => (/* binding */ removeListener),
2581 +/* harmony export */ unwrapResult: () => (/* binding */ unwrapResult)
2582 +/* harmony export */ });
2583 +/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! immer */ "../node_modules/immer/dist/immer.esm.mjs");
2584 +/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "../node_modules/redux/es/redux.js");
2585 +/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reselect */ "../node_modules/reselect/es/index.js");
2586 +/* harmony import */ var redux_thunk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-thunk */ "../node_modules/redux-thunk/es/index.js");
2587 +var __extends = (undefined && undefined.__extends) || (function () {
2588 + var extendStatics = function (d, b) {
2589 + extendStatics = Object.setPrototypeOf ||
2590 + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2591 + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2592 + return extendStatics(d, b);
2593 + };
2594 + return function (d, b) {
2595 + if (typeof b !== "function" && b !== null)
2596 + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2597 + extendStatics(d, b);
2598 + function __() { this.constructor = d; }
2599 + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2600 + };
2601 +})();
2602 +var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
2603 + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
2604 + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
2605 + function verb(n) { return function (v) { return step([n, v]); }; }
2606 + function step(op) {
2607 + if (f) throw new TypeError("Generator is already executing.");
2608 + while (_) try {
2609 + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
2610 + if (y = 0, t) op = [op[0] & 2, t.value];
2611 + switch (op[0]) {
2612 + case 0: case 1: t = op; break;
2613 + case 4: _.label++; return { value: op[1], done: false };
2614 + case 5: _.label++; y = op[1]; op = [0]; continue;
2615 + case 7: op = _.ops.pop(); _.trys.pop(); continue;
2616 + default:
2617 + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
2618 + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
2619 + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
2620 + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
2621 + if (t[2]) _.ops.pop();
2622 + _.trys.pop(); continue;
2623 + }
2624 + op = body.call(thisArg, _);
2625 + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
2626 + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
2627 + }
2628 +};
2629 +var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) {
2630 + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
2631 + to[j] = from[i];
2632 + return to;
2633 +};
2634 +var __defProp = Object.defineProperty;
2635 +var __defProps = Object.defineProperties;
2636 +var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2637 +var __getOwnPropSymbols = Object.getOwnPropertySymbols;
2638 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2639 +var __propIsEnum = Object.prototype.propertyIsEnumerable;
2640 +var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; };
2641 +var __spreadValues = function (a, b) {
2642 + for (var prop in b || (b = {}))
2643 + if (__hasOwnProp.call(b, prop))
2644 + __defNormalProp(a, prop, b[prop]);
2645 + if (__getOwnPropSymbols)
2646 + for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {
2647 + var prop = _c[_i];
2648 + if (__propIsEnum.call(b, prop))
2649 + __defNormalProp(a, prop, b[prop]);
2650 + }
2651 + return a;
2652 +};
2653 +var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); };
2654 +var __async = function (__this, __arguments, generator) {
2655 + return new Promise(function (resolve, reject) {
2656 + var fulfilled = function (value) {
2657 + try {
2658 + step(generator.next(value));
2659 + }
2660 + catch (e) {
2661 + reject(e);
2662 + }
2663 + };
2664 + var rejected = function (value) {
2665 + try {
2666 + step(generator.throw(value));
2667 + }
2668 + catch (e) {
2669 + reject(e);
2670 + }
2671 + };
2672 + var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); };
2673 + step((generator = generator.apply(__this, __arguments)).next());
2674 + });
2675 +};
2676 +// src/index.ts
2677 +
2678 +
2679 +
2680 +
2681 +// src/createDraftSafeSelector.ts
2682 +
2683 +
2684 +var createDraftSafeSelector = function () {
2685 + var args = [];
2686 + for (var _i = 0; _i < arguments.length; _i++) {
2687 + args[_i] = arguments[_i];
2688 + }
2689 + var selector = reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector.apply(void 0, args);
2690 + var wrappedSelector = function (value) {
2691 + var rest = [];
2692 + for (var _i = 1; _i < arguments.length; _i++) {
2693 + rest[_i - 1] = arguments[_i];
2694 + }
2695 + return selector.apply(void 0, __spreadArray([(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(value) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__.current)(value) : value], rest));
2696 + };
2697 + return wrappedSelector;
2698 +};
2699 +// src/configureStore.ts
2700 +
2701 +// src/devtoolsExtension.ts
2702 +
2703 +var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () {
2704 + if (arguments.length === 0)
2705 + return void 0;
2706 + if (typeof arguments[0] === "object")
2707 + return redux__WEBPACK_IMPORTED_MODULE_0__.compose;
2708 + return redux__WEBPACK_IMPORTED_MODULE_0__.compose.apply(null, arguments);
2709 +};
2710 +var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () {
2711 + return function (noop2) {
2712 + return noop2;
2713 + };
2714 +};
2715 +// src/isPlainObject.ts
2716 +function isPlainObject(value) {
2717 + if (typeof value !== "object" || value === null)
2718 + return false;
2719 + var proto = Object.getPrototypeOf(value);
2720 + if (proto === null)
2721 + return true;
2722 + var baseProto = proto;
2723 + while (Object.getPrototypeOf(baseProto) !== null) {
2724 + baseProto = Object.getPrototypeOf(baseProto);
2725 + }
2726 + return proto === baseProto;
2727 +}
2728 +// src/getDefaultMiddleware.ts
2729 +
2730 +// src/tsHelpers.ts
2731 +var hasMatchFunction = function (v) {
2732 + return v && typeof v.match === "function";
2733 +};
2734 +// src/createAction.ts
2735 +function createAction(type, prepareAction) {
2736 + function actionCreator() {
2737 + var args = [];
2738 + for (var _i = 0; _i < arguments.length; _i++) {
2739 + args[_i] = arguments[_i];
2740 + }
2741 + if (prepareAction) {
2742 + var prepared = prepareAction.apply(void 0, args);
2743 + if (!prepared) {
2744 + throw new Error("prepareAction did not return an object");
2745 + }
2746 + return __spreadValues(__spreadValues({
2747 + type: type,
2748 + payload: prepared.payload
2749 + }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error });
2750 + }
2751 + return { type: type, payload: args[0] };
2752 + }
2753 + actionCreator.toString = function () { return "" + type; };
2754 + actionCreator.type = type;
2755 + actionCreator.match = function (action) { return action.type === type; };
2756 + return actionCreator;
2757 +}
2758 +function isAction(action) {
2759 + return isPlainObject(action) && "type" in action;
2760 +}
2761 +function isActionCreator(action) {
2762 + return typeof action === "function" && "type" in action && hasMatchFunction(action);
2763 +}
2764 +function isFSA(action) {
2765 + return isAction(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey);
2766 +}
2767 +function isValidKey(key) {
2768 + return ["type", "payload", "error", "meta"].indexOf(key) > -1;
2769 +}
2770 +function getType(actionCreator) {
2771 + return "" + actionCreator;
2772 +}
2773 +// src/actionCreatorInvariantMiddleware.ts
2774 +function getMessage(type) {
2775 + var splitType = type ? ("" + type).split("/") : [];
2776 + var actionName = splitType[splitType.length - 1] || "actionCreator";
2777 + return "Detected an action creator with type \"" + (type || "unknown") + "\" being dispatched. \nMake sure you're calling the action creator before dispatching, i.e. `dispatch(" + actionName + "())` instead of `dispatch(" + actionName + ")`. This is necessary even if the action has no payload.";
2778 +}
2779 +function createActionCreatorInvariantMiddleware(options) {
2780 + if (options === void 0) { options = {}; }
2781 + if (false) // removed by dead control flow
2782 +{}
2783 + var _c = options.isActionCreator, isActionCreator2 = _c === void 0 ? isActionCreator : _c;
2784 + return function () { return function (next) { return function (action) {
2785 + if (isActionCreator2(action)) {
2786 + console.warn(getMessage(action.type));
2787 + }
2788 + return next(action);
2789 + }; }; };
2790 +}
2791 +// src/utils.ts
2792 +
2793 +function getTimeMeasureUtils(maxDelay, fnName) {
2794 + var elapsed = 0;
2795 + return {
2796 + measureTime: function (fn) {
2797 + var started = Date.now();
2798 + try {
2799 + return fn();
2800 + }
2801 + finally {
2802 + var finished = Date.now();
2803 + elapsed += finished - started;
2804 + }
2805 + },
2806 + warnIfExceeded: function () {
2807 + if (elapsed > maxDelay) {
2808 + console.warn(fnName + " took " + elapsed + "ms, which is more than the warning threshold of " + maxDelay + "ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that.");
2809 + }
2810 + }
2811 + };
2812 +}
2813 +var MiddlewareArray = /** @class */ (function (_super) {
2814 + __extends(MiddlewareArray, _super);
2815 + function MiddlewareArray() {
2816 + var args = [];
2817 + for (var _i = 0; _i < arguments.length; _i++) {
2818 + args[_i] = arguments[_i];
2819 + }
2820 + var _this = _super.apply(this, args) || this;
2821 + Object.setPrototypeOf(_this, MiddlewareArray.prototype);
2822 + return _this;
2823 + }
2824 + Object.defineProperty(MiddlewareArray, Symbol.species, {
2825 + get: function () {
2826 + return MiddlewareArray;
2827 + },
2828 + enumerable: false,
2829 + configurable: true
2830 + });
2831 + MiddlewareArray.prototype.concat = function () {
2832 + var arr = [];
2833 + for (var _i = 0; _i < arguments.length; _i++) {
2834 + arr[_i] = arguments[_i];
2835 + }
2836 + return _super.prototype.concat.apply(this, arr);
2837 + };
2838 + MiddlewareArray.prototype.prepend = function () {
2839 + var arr = [];
2840 + for (var _i = 0; _i < arguments.length; _i++) {
2841 + arr[_i] = arguments[_i];
2842 + }
2843 + if (arr.length === 1 && Array.isArray(arr[0])) {
2844 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();
2845 + }
2846 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();
2847 + };
2848 + return MiddlewareArray;
2849 +}(Array));
2850 +var EnhancerArray = /** @class */ (function (_super) {
2851 + __extends(EnhancerArray, _super);
2852 + function EnhancerArray() {
2853 + var args = [];
2854 + for (var _i = 0; _i < arguments.length; _i++) {
2855 + args[_i] = arguments[_i];
2856 + }
2857 + var _this = _super.apply(this, args) || this;
2858 + Object.setPrototypeOf(_this, EnhancerArray.prototype);
2859 + return _this;
2860 + }
2861 + Object.defineProperty(EnhancerArray, Symbol.species, {
2862 + get: function () {
2863 + return EnhancerArray;
2864 + },
2865 + enumerable: false,
2866 + configurable: true
2867 + });
2868 + EnhancerArray.prototype.concat = function () {
2869 + var arr = [];
2870 + for (var _i = 0; _i < arguments.length; _i++) {
2871 + arr[_i] = arguments[_i];
2872 + }
2873 + return _super.prototype.concat.apply(this, arr);
2874 + };
2875 + EnhancerArray.prototype.prepend = function () {
2876 + var arr = [];
2877 + for (var _i = 0; _i < arguments.length; _i++) {
2878 + arr[_i] = arguments[_i];
2879 + }
2880 + if (arr.length === 1 && Array.isArray(arr[0])) {
2881 + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))();
2882 + }
2883 + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))();
2884 + };
2885 + return EnhancerArray;
2886 +}(Array));
2887 +function freezeDraftable(val) {
2888 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(val) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(val, function () {
2889 + }) : val;
2890 +}
2891 +// src/immutableStateInvariantMiddleware.ts
2892 +var isProduction = "development" === "production";
2893 +var prefix = "Invariant failed";
2894 +function invariant(condition, message) {
2895 + if (condition) {
2896 + return;
2897 + }
2898 + if (isProduction) {
2899 + throw new Error(prefix);
2900 + }
2901 + throw new Error(prefix + ": " + (message || ""));
2902 +}
2903 +function stringify(obj, serializer, indent, decycler) {
2904 + return JSON.stringify(obj, getSerialize(serializer, decycler), indent);
2905 +}
2906 +function getSerialize(serializer, decycler) {
2907 + var stack = [], keys = [];
2908 + if (!decycler)
2909 + decycler = function (_, value) {
2910 + if (stack[0] === value)
2911 + return "[Circular ~]";
2912 + return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
2913 + };
2914 + return function (key, value) {
2915 + if (stack.length > 0) {
2916 + var thisPos = stack.indexOf(this);
2917 + ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
2918 + ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
2919 + if (~stack.indexOf(value))
2920 + value = decycler.call(this, key, value);
2921 + }
2922 + else
2923 + stack.push(value);
2924 + return serializer == null ? value : serializer.call(this, key, value);
2925 + };
2926 +}
2927 +function isImmutableDefault(value) {
2928 + return typeof value !== "object" || value == null || Object.isFrozen(value);
2929 +}
2930 +function trackForMutations(isImmutable, ignorePaths, obj) {
2931 + var trackedProperties = trackProperties(isImmutable, ignorePaths, obj);
2932 + return {
2933 + detectMutations: function () {
2934 + return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);
2935 + }
2936 + };
2937 +}
2938 +function trackProperties(isImmutable, ignorePaths, obj, path, checkedObjects) {
2939 + if (ignorePaths === void 0) { ignorePaths = []; }
2940 + if (path === void 0) { path = ""; }
2941 + if (checkedObjects === void 0) { checkedObjects = new Set(); }
2942 + var tracked = { value: obj };
2943 + if (!isImmutable(obj) && !checkedObjects.has(obj)) {
2944 + checkedObjects.add(obj);
2945 + tracked.children = {};
2946 + for (var key in obj) {
2947 + var childPath = path ? path + "." + key : key;
2948 + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {
2949 + continue;
2950 + }
2951 + tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);
2952 + }
2953 + }
2954 + return tracked;
2955 +}
2956 +function detectMutations(isImmutable, ignoredPaths, trackedProperty, obj, sameParentRef, path) {
2957 + if (ignoredPaths === void 0) { ignoredPaths = []; }
2958 + if (sameParentRef === void 0) { sameParentRef = false; }
2959 + if (path === void 0) { path = ""; }
2960 + var prevObj = trackedProperty ? trackedProperty.value : void 0;
2961 + var sameRef = prevObj === obj;
2962 + if (sameParentRef && !sameRef && !Number.isNaN(obj)) {
2963 + return { wasMutated: true, path: path };
2964 + }
2965 + if (isImmutable(prevObj) || isImmutable(obj)) {
2966 + return { wasMutated: false };
2967 + }
2968 + var keysToDetect = {};
2969 + for (var key in trackedProperty.children) {
2970 + keysToDetect[key] = true;
2971 + }
2972 + for (var key in obj) {
2973 + keysToDetect[key] = true;
2974 + }
2975 + var hasIgnoredPaths = ignoredPaths.length > 0;
2976 + var _loop_1 = function (key) {
2977 + var nestedPath = path ? path + "." + key : key;
2978 + if (hasIgnoredPaths) {
2979 + var hasMatches = ignoredPaths.some(function (ignored) {
2980 + if (ignored instanceof RegExp) {
2981 + return ignored.test(nestedPath);
2982 + }
2983 + return nestedPath === ignored;
2984 + });
2985 + if (hasMatches) {
2986 + return "continue";
2987 + }
2988 + }
2989 + var result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath);
2990 + if (result.wasMutated) {
2991 + return { value: result };
2992 + }
2993 + };
2994 + for (var key in keysToDetect) {
2995 + var state_1 = _loop_1(key);
2996 + if (typeof state_1 === "object")
2997 + return state_1.value;
2998 + }
2999 + return { wasMutated: false };
3000 +}
3001 +function createImmutableStateInvariantMiddleware(options) {
3002 + if (options === void 0) { options = {}; }
3003 + if (false) // removed by dead control flow
3004 +{}
3005 + var _c = options.isImmutable, isImmutable = _c === void 0 ? isImmutableDefault : _c, ignoredPaths = options.ignoredPaths, _d = options.warnAfter, warnAfter = _d === void 0 ? 32 : _d, ignore = options.ignore;
3006 + ignoredPaths = ignoredPaths || ignore;
3007 + var track = trackForMutations.bind(null, isImmutable, ignoredPaths);
3008 + return function (_c) {
3009 + var getState = _c.getState;
3010 + var state = getState();
3011 + var tracker = track(state);
3012 + var result;
3013 + return function (next) { return function (action) {
3014 + var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware");
3015 + measureUtils.measureTime(function () {
3016 + state = getState();
3017 + result = tracker.detectMutations();
3018 + tracker = track(state);
3019 + invariant(!result.wasMutated, "A state mutation was detected between dispatches, in the path '" + (result.path || "") + "'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)");
3020 + });
3021 + var dispatchedAction = next(action);
3022 + measureUtils.measureTime(function () {
3023 + state = getState();
3024 + result = tracker.detectMutations();
3025 + tracker = track(state);
3026 + result.wasMutated && invariant(!result.wasMutated, "A state mutation was detected inside a dispatch, in the path: " + (result.path || "") + ". Take a look at the reducer(s) handling the action " + stringify(action) + ". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)");
3027 + });
3028 + measureUtils.warnIfExceeded();
3029 + return dispatchedAction;
3030 + }; };
3031 + };
3032 +}
3033 +// src/serializableStateInvariantMiddleware.ts
3034 +function isPlain(val) {
3035 + var type = typeof val;
3036 + return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val);
3037 +}
3038 +function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths, cache) {
3039 + if (path === void 0) { path = ""; }
3040 + if (isSerializable === void 0) { isSerializable = isPlain; }
3041 + if (ignoredPaths === void 0) { ignoredPaths = []; }
3042 + var foundNestedSerializable;
3043 + if (!isSerializable(value)) {
3044 + return {
3045 + keyPath: path || "<root>",
3046 + value: value
3047 + };
3048 + }
3049 + if (typeof value !== "object" || value === null) {
3050 + return false;
3051 + }
3052 + if (cache == null ? void 0 : cache.has(value))
3053 + return false;
3054 + var entries = getEntries != null ? getEntries(value) : Object.entries(value);
3055 + var hasIgnoredPaths = ignoredPaths.length > 0;
3056 + var _loop_2 = function (key, nestedValue) {
3057 + var nestedPath = path ? path + "." + key : key;
3058 + if (hasIgnoredPaths) {
3059 + var hasMatches = ignoredPaths.some(function (ignored) {
3060 + if (ignored instanceof RegExp) {
3061 + return ignored.test(nestedPath);
3062 + }
3063 + return nestedPath === ignored;
3064 + });
3065 + if (hasMatches) {
3066 + return "continue";
3067 + }
3068 + }
3069 + if (!isSerializable(nestedValue)) {
3070 + return { value: {
3071 + keyPath: nestedPath,
3072 + value: nestedValue
3073 + } };
3074 + }
3075 + if (typeof nestedValue === "object") {
3076 + foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache);
3077 + if (foundNestedSerializable) {
3078 + return { value: foundNestedSerializable };
3079 + }
3080 + }
3081 + };
3082 + for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
3083 + var _c = entries_1[_i], key = _c[0], nestedValue = _c[1];
3084 + var state_2 = _loop_2(key, nestedValue);
3085 + if (typeof state_2 === "object")
3086 + return state_2.value;
3087 + }
3088 + if (cache && isNestedFrozen(value))
3089 + cache.add(value);
3090 + return false;
3091 +}
3092 +function isNestedFrozen(value) {
3093 + if (!Object.isFrozen(value))
3094 + return false;
3095 + for (var _i = 0, _c = Object.values(value); _i < _c.length; _i++) {
3096 + var nestedValue = _c[_i];
3097 + if (typeof nestedValue !== "object" || nestedValue === null)
3098 + continue;
3099 + if (!isNestedFrozen(nestedValue))
3100 + return false;
3101 + }
3102 + return true;
3103 +}
3104 +function createSerializableStateInvariantMiddleware(options) {
3105 + if (options === void 0) { options = {}; }
3106 + if (false) // removed by dead control flow
3107 +{}
3108 + var _c = options.isSerializable, isSerializable = _c === void 0 ? isPlain : _c, getEntries = options.getEntries, _d = options.ignoredActions, ignoredActions = _d === void 0 ? [] : _d, _e = options.ignoredActionPaths, ignoredActionPaths = _e === void 0 ? ["meta.arg", "meta.baseQueryMeta"] : _e, _f = options.ignoredPaths, ignoredPaths = _f === void 0 ? [] : _f, _g = options.warnAfter, warnAfter = _g === void 0 ? 32 : _g, _h = options.ignoreState, ignoreState = _h === void 0 ? false : _h, _j = options.ignoreActions, ignoreActions = _j === void 0 ? false : _j, _k = options.disableCache, disableCache = _k === void 0 ? false : _k;
3109 + var cache = !disableCache && WeakSet ? new WeakSet() : void 0;
3110 + return function (storeAPI) { return function (next) { return function (action) {
3111 + var result = next(action);
3112 + var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware");
3113 + if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {
3114 + measureUtils.measureTime(function () {
3115 + var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths, cache);
3116 + if (foundActionNonSerializableValue) {
3117 + var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value;
3118 + console.error("A non-serializable value was detected in an action, in the path: `" + keyPath + "`. Value:", value, "\nTake a look at the logic that dispatched this action: ", action, "\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)", "\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)");
3119 + }
3120 + });
3121 + }
3122 + if (!ignoreState) {
3123 + measureUtils.measureTime(function () {
3124 + var state = storeAPI.getState();
3125 + var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths, cache);
3126 + if (foundStateNonSerializableValue) {
3127 + var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value;
3128 + console.error("A non-serializable value was detected in the state, in the path: `" + keyPath + "`. Value:", value, "\nTake a look at the reducer(s) handling this action type: " + action.type + ".\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)");
3129 + }
3130 + });
3131 + measureUtils.warnIfExceeded();
3132 + }
3133 + return result;
3134 + }; }; };
3135 +}
3136 +// src/getDefaultMiddleware.ts
3137 +function isBoolean(x) {
3138 + return typeof x === "boolean";
3139 +}
3140 +function curryGetDefaultMiddleware() {
3141 + return function curriedGetDefaultMiddleware(options) {
3142 + return getDefaultMiddleware(options);
3143 + };
3144 +}
3145 +function getDefaultMiddleware(options) {
3146 + if (options === void 0) { options = {}; }
3147 + var _c = options.thunk, thunk = _c === void 0 ? true : _c, _d = options.immutableCheck, immutableCheck = _d === void 0 ? true : _d, _e = options.serializableCheck, serializableCheck = _e === void 0 ? true : _e, _f = options.actionCreatorCheck, actionCreatorCheck = _f === void 0 ? true : _f;
3148 + var middlewareArray = new MiddlewareArray();
3149 + if (thunk) {
3150 + if (isBoolean(thunk)) {
3151 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"]);
3152 + }
3153 + else {
3154 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"].withExtraArgument(thunk.extraArgument));
3155 + }
3156 + }
3157 + if (true) {
3158 + if (immutableCheck) {
3159 + var immutableOptions = {};
3160 + if (!isBoolean(immutableCheck)) {
3161 + immutableOptions = immutableCheck;
3162 + }
3163 + middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));
3164 + }
3165 + if (serializableCheck) {
3166 + var serializableOptions = {};
3167 + if (!isBoolean(serializableCheck)) {
3168 + serializableOptions = serializableCheck;
3169 + }
3170 + middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));
3171 + }
3172 + if (actionCreatorCheck) {
3173 + var actionCreatorOptions = {};
3174 + if (!isBoolean(actionCreatorCheck)) {
3175 + actionCreatorOptions = actionCreatorCheck;
3176 + }
3177 + middlewareArray.unshift(createActionCreatorInvariantMiddleware(actionCreatorOptions));
3178 + }
3179 + }
3180 + return middlewareArray;
3181 +}
3182 +// src/configureStore.ts
3183 +var IS_PRODUCTION = "development" === "production";
3184 +function configureStore(options) {
3185 + var curriedGetDefaultMiddleware = curryGetDefaultMiddleware();
3186 + var _c = options || {}, _d = _c.reducer, reducer = _d === void 0 ? void 0 : _d, _e = _c.middleware, middleware = _e === void 0 ? curriedGetDefaultMiddleware() : _e, _f = _c.devTools, devTools = _f === void 0 ? true : _f, _g = _c.preloadedState, preloadedState = _g === void 0 ? void 0 : _g, _h = _c.enhancers, enhancers = _h === void 0 ? void 0 : _h;
3187 + var rootReducer;
3188 + if (typeof reducer === "function") {
3189 + rootReducer = reducer;
3190 + }
3191 + else if (isPlainObject(reducer)) {
3192 + rootReducer = (0,redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers)(reducer);
3193 + }
3194 + else {
3195 + throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');
3196 + }
3197 + var finalMiddleware = middleware;
3198 + if (typeof finalMiddleware === "function") {
3199 + finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware);
3200 + if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) {
3201 + throw new Error("when using a middleware builder function, an array of middleware must be returned");
3202 + }
3203 + }
3204 + if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) {
3205 + throw new Error("each middleware provided to configureStore must be a function");
3206 + }
3207 + var middlewareEnhancer = redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware.apply(void 0, finalMiddleware);
3208 + var finalCompose = redux__WEBPACK_IMPORTED_MODULE_0__.compose;
3209 + if (devTools) {
3210 + finalCompose = composeWithDevTools(__spreadValues({
3211 + trace: !IS_PRODUCTION
3212 + }, typeof devTools === "object" && devTools));
3213 + }
3214 + var defaultEnhancers = new EnhancerArray(middlewareEnhancer);
3215 + var storeEnhancers = defaultEnhancers;
3216 + if (Array.isArray(enhancers)) {
3217 + storeEnhancers = __spreadArray([middlewareEnhancer], enhancers);
3218 + }
3219 + else if (typeof enhancers === "function") {
3220 + storeEnhancers = enhancers(defaultEnhancers);
3221 + }
3222 + var composedEnhancer = finalCompose.apply(void 0, storeEnhancers);
3223 + return (0,redux__WEBPACK_IMPORTED_MODULE_0__.createStore)(rootReducer, preloadedState, composedEnhancer);
3224 +}
3225 +// src/createReducer.ts
3226 +
3227 +// src/mapBuilders.ts
3228 +function executeReducerBuilderCallback(builderCallback) {
3229 + var actionsMap = {};
3230 + var actionMatchers = [];
3231 + var defaultCaseReducer;
3232 + var builder = {
3233 + addCase: function (typeOrActionCreator, reducer) {
3234 + if (true) {
3235 + if (actionMatchers.length > 0) {
3236 + throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");
3237 + }
3238 + if (defaultCaseReducer) {
3239 + throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
3240 + }
3241 + }
3242 + var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
3243 + if (!type) {
3244 + throw new Error("`builder.addCase` cannot be called with an empty action type");
3245 + }
3246 + if (type in actionsMap) {
3247 + throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");
3248 + }
3249 + actionsMap[type] = reducer;
3250 + return builder;
3251 + },
3252 + addMatcher: function (matcher, reducer) {
3253 + if (true) {
3254 + if (defaultCaseReducer) {
3255 + throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
3256 + }
3257 + }
3258 + actionMatchers.push({ matcher: matcher, reducer: reducer });
3259 + return builder;
3260 + },
3261 + addDefaultCase: function (reducer) {
3262 + if (true) {
3263 + if (defaultCaseReducer) {
3264 + throw new Error("`builder.addDefaultCase` can only be called once");
3265 + }
3266 + }
3267 + defaultCaseReducer = reducer;
3268 + return builder;
3269 + }
3270 + };
3271 + builderCallback(builder);
3272 + return [actionsMap, actionMatchers, defaultCaseReducer];
3273 +}
3274 +// src/createReducer.ts
3275 +function isStateFunction(x) {
3276 + return typeof x === "function";
3277 +}
3278 +var hasWarnedAboutObjectNotation = false;
3279 +function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) {
3280 + if (actionMatchers === void 0) { actionMatchers = []; }
3281 + if (true) {
3282 + if (typeof mapOrBuilderCallback === "object") {
3283 + if (!hasWarnedAboutObjectNotation) {
3284 + hasWarnedAboutObjectNotation = true;
3285 + console.warn("The object notation for `createReducer` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
3286 + }
3287 + }
3288 + }
3289 + var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2];
3290 + var getInitialState;
3291 + if (isStateFunction(initialState)) {
3292 + getInitialState = function () { return freezeDraftable(initialState()); };
3293 + }
3294 + else {
3295 + var frozenInitialState_1 = freezeDraftable(initialState);
3296 + getInitialState = function () { return frozenInitialState_1; };
3297 + }
3298 + function reducer(state, action) {
3299 + if (state === void 0) { state = getInitialState(); }
3300 + var caseReducers = __spreadArray([
3301 + actionsMap[action.type]
3302 + ], finalActionMatchers.filter(function (_c) {
3303 + var matcher = _c.matcher;
3304 + return matcher(action);
3305 + }).map(function (_c) {
3306 + var reducer2 = _c.reducer;
3307 + return reducer2;
3308 + }));
3309 + if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) {
3310 + caseReducers = [finalDefaultCaseReducer];
3311 + }
3312 + return caseReducers.reduce(function (previousState, caseReducer) {
3313 + if (caseReducer) {
3314 + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(previousState)) {
3315 + var draft = previousState;
3316 + var result = caseReducer(draft, action);
3317 + if (result === void 0) {
3318 + return previousState;
3319 + }
3320 + return result;
3321 + }
3322 + else if (!(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(previousState)) {
3323 + var result = caseReducer(previousState, action);
3324 + if (result === void 0) {
3325 + if (previousState === null) {
3326 + return previousState;
3327 + }
3328 + throw Error("A case reducer on a non-draftable value must not return undefined");
3329 + }
3330 + return result;
3331 + }
3332 + else {
3333 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(previousState, function (draft) {
3334 + return caseReducer(draft, action);
3335 + });
3336 + }
3337 + }
3338 + return previousState;
3339 + }, state);
3340 + }
3341 + reducer.getInitialState = getInitialState;
3342 + return reducer;
3343 +}
3344 +// src/createSlice.ts
3345 +var hasWarnedAboutObjectNotation2 = false;
3346 +function getType2(slice, actionKey) {
3347 + return slice + "/" + actionKey;
3348 +}
3349 +function createSlice(options) {
3350 + var name = options.name;
3351 + if (!name) {
3352 + throw new Error("`name` is a required option for createSlice");
3353 + }
3354 + if (typeof process !== "undefined" && "development" === "development") {
3355 + if (options.initialState === void 0) {
3356 + console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
3357 + }
3358 + }
3359 + var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState);
3360 + var reducers = options.reducers || {};
3361 + var reducerNames = Object.keys(reducers);
3362 + var sliceCaseReducersByName = {};
3363 + var sliceCaseReducersByType = {};
3364 + var actionCreators = {};
3365 + reducerNames.forEach(function (reducerName) {
3366 + var maybeReducerWithPrepare = reducers[reducerName];
3367 + var type = getType2(name, reducerName);
3368 + var caseReducer;
3369 + var prepareCallback;
3370 + if ("reducer" in maybeReducerWithPrepare) {
3371 + caseReducer = maybeReducerWithPrepare.reducer;
3372 + prepareCallback = maybeReducerWithPrepare.prepare;
3373 + }
3374 + else {
3375 + caseReducer = maybeReducerWithPrepare;
3376 + }
3377 + sliceCaseReducersByName[reducerName] = caseReducer;
3378 + sliceCaseReducersByType[type] = caseReducer;
3379 + actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);
3380 + });
3381 + function buildReducer() {
3382 + if (true) {
3383 + if (typeof options.extraReducers === "object") {
3384 + if (!hasWarnedAboutObjectNotation2) {
3385 + hasWarnedAboutObjectNotation2 = true;
3386 + console.warn("The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
3387 + }
3388 + }
3389 + }
3390 + var _c = typeof options.extraReducers === "function" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers], _d = _c[0], extraReducers = _d === void 0 ? {} : _d, _e = _c[1], actionMatchers = _e === void 0 ? [] : _e, _f = _c[2], defaultCaseReducer = _f === void 0 ? void 0 : _f;
3391 + var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType);
3392 + return createReducer(initialState, function (builder) {
3393 + for (var key in finalCaseReducers) {
3394 + builder.addCase(key, finalCaseReducers[key]);
3395 + }
3396 + for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) {
3397 + var m = actionMatchers_1[_i];
3398 + builder.addMatcher(m.matcher, m.reducer);
3399 + }
3400 + if (defaultCaseReducer) {
3401 + builder.addDefaultCase(defaultCaseReducer);
3402 + }
3403 + });
3404 + }
3405 + var _reducer;
3406 + return {
3407 + name: name,
3408 + reducer: function (state, action) {
3409 + if (!_reducer)
3410 + _reducer = buildReducer();
3411 + return _reducer(state, action);
3412 + },
3413 + actions: actionCreators,
3414 + caseReducers: sliceCaseReducersByName,
3415 + getInitialState: function () {
3416 + if (!_reducer)
3417 + _reducer = buildReducer();
3418 + return _reducer.getInitialState();
3419 + }
3420 + };
3421 +}
3422 +// src/entities/entity_state.ts
3423 +function getInitialEntityState() {
3424 + return {
3425 + ids: [],
3426 + entities: {}
3427 + };
3428 +}
3429 +function createInitialStateFactory() {
3430 + function getInitialState(additionalState) {
3431 + if (additionalState === void 0) { additionalState = {}; }
3432 + return Object.assign(getInitialEntityState(), additionalState);
3433 + }
3434 + return { getInitialState: getInitialState };
3435 +}
3436 +// src/entities/state_selectors.ts
3437 +function createSelectorsFactory() {
3438 + function getSelectors(selectState) {
3439 + var selectIds = function (state) { return state.ids; };
3440 + var selectEntities = function (state) { return state.entities; };
3441 + var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); });
3442 + var selectId = function (_, id) { return id; };
3443 + var selectById = function (entities, id) { return entities[id]; };
3444 + var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; });
3445 + if (!selectState) {
3446 + return {
3447 + selectIds: selectIds,
3448 + selectEntities: selectEntities,
3449 + selectAll: selectAll,
3450 + selectTotal: selectTotal,
3451 + selectById: createDraftSafeSelector(selectEntities, selectId, selectById)
3452 + };
3453 + }
3454 + var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities);
3455 + return {
3456 + selectIds: createDraftSafeSelector(selectState, selectIds),
3457 + selectEntities: selectGlobalizedEntities,
3458 + selectAll: createDraftSafeSelector(selectState, selectAll),
3459 + selectTotal: createDraftSafeSelector(selectState, selectTotal),
3460 + selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById)
3461 + };
3462 + }
3463 + return { getSelectors: getSelectors };
3464 +}
3465 +// src/entities/state_adapter.ts
3466 +
3467 +function createSingleArgumentStateOperator(mutator) {
3468 + var operator = createStateOperator(function (_, state) { return mutator(state); });
3469 + return function operation(state) {
3470 + return operator(state, void 0);
3471 + };
3472 +}
3473 +function createStateOperator(mutator) {
3474 + return function operation(state, arg) {
3475 + function isPayloadActionArgument(arg2) {
3476 + return isFSA(arg2);
3477 + }
3478 + var runMutator = function (draft) {
3479 + if (isPayloadActionArgument(arg)) {
3480 + mutator(arg.payload, draft);
3481 + }
3482 + else {
3483 + mutator(arg, draft);
3484 + }
3485 + };
3486 + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(state)) {
3487 + runMutator(state);
3488 + return state;
3489 + }
3490 + else {
3491 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(state, runMutator);
3492 + }
3493 + };
3494 +}
3495 +// src/entities/utils.ts
3496 +function selectIdValue(entity, selectId) {
3497 + var key = selectId(entity);
3498 + if ( true && key === void 0) {
3499 + console.warn("The entity passed to the `selectId` implementation returned undefined.", "You should probably provide your own `selectId` implementation.", "The entity that was passed:", entity, "The `selectId` implementation:", selectId.toString());
3500 + }
3501 + return key;
3502 +}
3503 +function ensureEntitiesArray(entities) {
3504 + if (!Array.isArray(entities)) {
3505 + entities = Object.values(entities);
3506 + }
3507 + return entities;
3508 +}
3509 +function splitAddedUpdatedEntities(newEntities, selectId, state) {
3510 + newEntities = ensureEntitiesArray(newEntities);
3511 + var added = [];
3512 + var updated = [];
3513 + for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) {
3514 + var entity = newEntities_1[_i];
3515 + var id = selectIdValue(entity, selectId);
3516 + if (id in state.entities) {
3517 + updated.push({ id: id, changes: entity });
3518 + }
3519 + else {
3520 + added.push(entity);
3521 + }
3522 + }
3523 + return [added, updated];
3524 +}
3525 +// src/entities/unsorted_state_adapter.ts
3526 +function createUnsortedStateAdapter(selectId) {
3527 + function addOneMutably(entity, state) {
3528 + var key = selectIdValue(entity, selectId);
3529 + if (key in state.entities) {
3530 + return;
3531 + }
3532 + state.ids.push(key);
3533 + state.entities[key] = entity;
3534 + }
3535 + function addManyMutably(newEntities, state) {
3536 + newEntities = ensureEntitiesArray(newEntities);
3537 + for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) {
3538 + var entity = newEntities_2[_i];
3539 + addOneMutably(entity, state);
3540 + }
3541 + }
3542 + function setOneMutably(entity, state) {
3543 + var key = selectIdValue(entity, selectId);
3544 + if (!(key in state.entities)) {
3545 + state.ids.push(key);
3546 + }
3547 + state.entities[key] = entity;
3548 + }
3549 + function setManyMutably(newEntities, state) {
3550 + newEntities = ensureEntitiesArray(newEntities);
3551 + for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) {
3552 + var entity = newEntities_3[_i];
3553 + setOneMutably(entity, state);
3554 + }
3555 + }
3556 + function setAllMutably(newEntities, state) {
3557 + newEntities = ensureEntitiesArray(newEntities);
3558 + state.ids = [];
3559 + state.entities = {};
3560 + addManyMutably(newEntities, state);
3561 + }
3562 + function removeOneMutably(key, state) {
3563 + return removeManyMutably([key], state);
3564 + }
3565 + function removeManyMutably(keys, state) {
3566 + var didMutate = false;
3567 + keys.forEach(function (key) {
3568 + if (key in state.entities) {
3569 + delete state.entities[key];
3570 + didMutate = true;
3571 + }
3572 + });
3573 + if (didMutate) {
3574 + state.ids = state.ids.filter(function (id) { return id in state.entities; });
3575 + }
3576 + }
3577 + function removeAllMutably(state) {
3578 + Object.assign(state, {
3579 + ids: [],
3580 + entities: {}
3581 + });
3582 + }
3583 + function takeNewKey(keys, update, state) {
3584 + var original2 = state.entities[update.id];
3585 + var updated = Object.assign({}, original2, update.changes);
3586 + var newKey = selectIdValue(updated, selectId);
3587 + var hasNewKey = newKey !== update.id;
3588 + if (hasNewKey) {
3589 + keys[update.id] = newKey;
3590 + delete state.entities[update.id];
3591 + }
3592 + state.entities[newKey] = updated;
3593 + return hasNewKey;
3594 + }
3595 + function updateOneMutably(update, state) {
3596 + return updateManyMutably([update], state);
3597 + }
3598 + function updateManyMutably(updates, state) {
3599 + var newKeys = {};
3600 + var updatesPerEntity = {};
3601 + updates.forEach(function (update) {
3602 + if (update.id in state.entities) {
3603 + updatesPerEntity[update.id] = {
3604 + id: update.id,
3605 + changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes)
3606 + };
3607 + }
3608 + });
3609 + updates = Object.values(updatesPerEntity);
3610 + var didMutateEntities = updates.length > 0;
3611 + if (didMutateEntities) {
3612 + var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0;
3613 + if (didMutateIds) {
3614 + state.ids = Object.keys(state.entities);
3615 + }
3616 + }
3617 + }
3618 + function upsertOneMutably(entity, state) {
3619 + return upsertManyMutably([entity], state);
3620 + }
3621 + function upsertManyMutably(newEntities, state) {
3622 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
3623 + updateManyMutably(updated, state);
3624 + addManyMutably(added, state);
3625 + }
3626 + return {
3627 + removeAll: createSingleArgumentStateOperator(removeAllMutably),
3628 + addOne: createStateOperator(addOneMutably),
3629 + addMany: createStateOperator(addManyMutably),
3630 + setOne: createStateOperator(setOneMutably),
3631 + setMany: createStateOperator(setManyMutably),
3632 + setAll: createStateOperator(setAllMutably),
3633 + updateOne: createStateOperator(updateOneMutably),
3634 + updateMany: createStateOperator(updateManyMutably),
3635 + upsertOne: createStateOperator(upsertOneMutably),
3636 + upsertMany: createStateOperator(upsertManyMutably),
3637 + removeOne: createStateOperator(removeOneMutably),
3638 + removeMany: createStateOperator(removeManyMutably)
3639 + };
3640 +}
3641 +// src/entities/sorted_state_adapter.ts
3642 +function createSortedStateAdapter(selectId, sort) {
3643 + var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll;
3644 + function addOneMutably(entity, state) {
3645 + return addManyMutably([entity], state);
3646 + }
3647 + function addManyMutably(newEntities, state) {
3648 + newEntities = ensureEntitiesArray(newEntities);
3649 + var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); });
3650 + if (models.length !== 0) {
3651 + merge(models, state);
3652 + }
3653 + }
3654 + function setOneMutably(entity, state) {
3655 + return setManyMutably([entity], state);
3656 + }
3657 + function setManyMutably(newEntities, state) {
3658 + newEntities = ensureEntitiesArray(newEntities);
3659 + if (newEntities.length !== 0) {
3660 + merge(newEntities, state);
3661 + }
3662 + }
3663 + function setAllMutably(newEntities, state) {
3664 + newEntities = ensureEntitiesArray(newEntities);
3665 + state.entities = {};
3666 + state.ids = [];
3667 + addManyMutably(newEntities, state);
3668 + }
3669 + function updateOneMutably(update, state) {
3670 + return updateManyMutably([update], state);
3671 + }
3672 + function updateManyMutably(updates, state) {
3673 + var appliedUpdates = false;
3674 + for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) {
3675 + var update = updates_1[_i];
3676 + var entity = state.entities[update.id];
3677 + if (!entity) {
3678 + continue;
3679 + }
3680 + appliedUpdates = true;
3681 + Object.assign(entity, update.changes);
3682 + var newId = selectId(entity);
3683 + if (update.id !== newId) {
3684 + delete state.entities[update.id];
3685 + state.entities[newId] = entity;
3686 + }
3687 + }
3688 + if (appliedUpdates) {
3689 + resortEntities(state);
3690 + }
3691 + }
3692 + function upsertOneMutably(entity, state) {
3693 + return upsertManyMutably([entity], state);
3694 + }
3695 + function upsertManyMutably(newEntities, state) {
3696 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
3697 + updateManyMutably(updated, state);
3698 + addManyMutably(added, state);
3699 + }
3700 + function areArraysEqual(a, b) {
3701 + if (a.length !== b.length) {
3702 + return false;
3703 + }
3704 + for (var i = 0; i < a.length && i < b.length; i++) {
3705 + if (a[i] === b[i]) {
3706 + continue;
3707 + }
3708 + return false;
3709 + }
3710 + return true;
3711 + }
3712 + function merge(models, state) {
3713 + models.forEach(function (model) {
3714 + state.entities[selectId(model)] = model;
3715 + });
3716 + resortEntities(state);
3717 + }
3718 + function resortEntities(state) {
3719 + var allEntities = Object.values(state.entities);
3720 + allEntities.sort(sort);
3721 + var newSortedIds = allEntities.map(selectId);
3722 + var ids = state.ids;
3723 + if (!areArraysEqual(ids, newSortedIds)) {
3724 + state.ids = newSortedIds;
3725 + }
3726 + }
3727 + return {
3728 + removeOne: removeOne,
3729 + removeMany: removeMany,
3730 + removeAll: removeAll,
3731 + addOne: createStateOperator(addOneMutably),
3732 + updateOne: createStateOperator(updateOneMutably),
3733 + upsertOne: createStateOperator(upsertOneMutably),
3734 + setOne: createStateOperator(setOneMutably),
3735 + setMany: createStateOperator(setManyMutably),
3736 + setAll: createStateOperator(setAllMutably),
3737 + addMany: createStateOperator(addManyMutably),
3738 + updateMany: createStateOperator(updateManyMutably),
3739 + upsertMany: createStateOperator(upsertManyMutably)
3740 + };
3741 +}
3742 +// src/entities/create_adapter.ts
3743 +function createEntityAdapter(options) {
3744 + if (options === void 0) { options = {}; }
3745 + var _c = __spreadValues({
3746 + sortComparer: false,
3747 + selectId: function (instance) { return instance.id; }
3748 + }, options), selectId = _c.selectId, sortComparer = _c.sortComparer;
3749 + var stateFactory = createInitialStateFactory();
3750 + var selectorsFactory = createSelectorsFactory();
3751 + var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);
3752 + return __spreadValues(__spreadValues(__spreadValues({
3753 + selectId: selectId,
3754 + sortComparer: sortComparer
3755 + }, stateFactory), selectorsFactory), stateAdapter);
3756 +}
3757 +// src/nanoid.ts
3758 +var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
3759 +var nanoid = function (size) {
3760 + if (size === void 0) { size = 21; }
3761 + var id = "";
3762 + var i = size;
3763 + while (i--) {
3764 + id += urlAlphabet[Math.random() * 64 | 0];
3765 + }
3766 + return id;
3767 +};
3768 +// src/createAsyncThunk.ts
3769 +var commonProperties = [
3770 + "name",
3771 + "message",
3772 + "stack",
3773 + "code"
3774 +];
3775 +var RejectWithValue = /** @class */ (function () {
3776 + function RejectWithValue(payload, meta) {
3777 + this.payload = payload;
3778 + this.meta = meta;
3779 + }
3780 + return RejectWithValue;
3781 +}());
3782 +var FulfillWithMeta = /** @class */ (function () {
3783 + function FulfillWithMeta(payload, meta) {
3784 + this.payload = payload;
3785 + this.meta = meta;
3786 + }
3787 + return FulfillWithMeta;
3788 +}());
3789 +var miniSerializeError = function (value) {
3790 + if (typeof value === "object" && value !== null) {
3791 + var simpleError = {};
3792 + for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {
3793 + var property = commonProperties_1[_i];
3794 + if (typeof value[property] === "string") {
3795 + simpleError[property] = value[property];
3796 + }
3797 + }
3798 + return simpleError;
3799 + }
3800 + return { message: String(value) };
3801 +};
3802 +var createAsyncThunk = (function () {
3803 + function createAsyncThunk2(typePrefix, payloadCreator, options) {
3804 + var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({
3805 + payload: payload,
3806 + meta: __spreadProps(__spreadValues({}, meta || {}), {
3807 + arg: arg,
3808 + requestId: requestId,
3809 + requestStatus: "fulfilled"
3810 + })
3811 + }); });
3812 + var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({
3813 + payload: void 0,
3814 + meta: __spreadProps(__spreadValues({}, meta || {}), {
3815 + arg: arg,
3816 + requestId: requestId,
3817 + requestStatus: "pending"
3818 + })
3819 + }); });
3820 + var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({
3821 + payload: payload,
3822 + error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
3823 + meta: __spreadProps(__spreadValues({}, meta || {}), {
3824 + arg: arg,
3825 + requestId: requestId,
3826 + rejectedWithValue: !!payload,
3827 + requestStatus: "rejected",
3828 + aborted: (error == null ? void 0 : error.name) === "AbortError",
3829 + condition: (error == null ? void 0 : error.name) === "ConditionError"
3830 + })
3831 + }); });
3832 + var displayedWarning = false;
3833 + var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () {
3834 + function class_1() {
3835 + this.signal = {
3836 + aborted: false,
3837 + addEventListener: function () {
3838 + },
3839 + dispatchEvent: function () {
3840 + return false;
3841 + },
3842 + onabort: function () {
3843 + },
3844 + removeEventListener: function () {
3845 + },
3846 + reason: void 0,
3847 + throwIfAborted: function () {
3848 + }
3849 + };
3850 + }
3851 + class_1.prototype.abort = function () {
3852 + if (true) {
3853 + if (!displayedWarning) {
3854 + displayedWarning = true;
3855 + console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.");
3856 + }
3857 + }
3858 + };
3859 + return class_1;
3860 + }());
3861 + function actionCreator(arg) {
3862 + return function (dispatch, getState, extra) {
3863 + var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
3864 + var abortController = new AC();
3865 + var abortReason;
3866 + var started = false;
3867 + function abort(reason) {
3868 + abortReason = reason;
3869 + abortController.abort();
3870 + }
3871 + var promise2 = function () {
3872 + return __async(this, null, function () {
3873 + var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch;
3874 + return __generator(this, function (_c) {
3875 + switch (_c.label) {
3876 + case 0:
3877 + _c.trys.push([0, 4, , 5]);
3878 + conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra });
3879 + if (!isThenable(conditionResult)) return [3 /*break*/, 2];
3880 + return [4 /*yield*/, conditionResult];
3881 + case 1:
3882 + conditionResult = _c.sent();
3883 + _c.label = 2;
3884 + case 2:
3885 + if (conditionResult === false || abortController.signal.aborted) {
3886 + throw {
3887 + name: "ConditionError",
3888 + message: "Aborted due to condition callback returning false."
3889 + };
3890 + }
3891 + started = true;
3892 + abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({
3893 + name: "AbortError",
3894 + message: abortReason || "Aborted"
3895 + }); }); });
3896 + dispatch(pending(requestId, arg, (_b = options == null ? void 0 : options.getPendingMeta) == null ? void 0 : _b.call(options, { requestId: requestId, arg: arg }, { getState: getState, extra: extra })));
3897 + return [4 /*yield*/, Promise.race([
3898 + abortedPromise,
3899 + Promise.resolve(payloadCreator(arg, {
3900 + dispatch: dispatch,
3901 + getState: getState,
3902 + extra: extra,
3903 + requestId: requestId,
3904 + signal: abortController.signal,
3905 + abort: abort,
3906 + rejectWithValue: function (value, meta) {
3907 + return new RejectWithValue(value, meta);
3908 + },
3909 + fulfillWithValue: function (value, meta) {
3910 + return new FulfillWithMeta(value, meta);
3911 + }
3912 + })).then(function (result) {
3913 + if (result instanceof RejectWithValue) {
3914 + throw result;
3915 + }
3916 + if (result instanceof FulfillWithMeta) {
3917 + return fulfilled(result.payload, requestId, arg, result.meta);
3918 + }
3919 + return fulfilled(result, requestId, arg);
3920 + })
3921 + ])];
3922 + case 3:
3923 + finalAction = _c.sent();
3924 + return [3 /*break*/, 5];
3925 + case 4:
3926 + err_1 = _c.sent();
3927 + finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);
3928 + return [3 /*break*/, 5];
3929 + case 5:
3930 + skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
3931 + if (!skipDispatch) {
3932 + dispatch(finalAction);
3933 + }
3934 + return [2 /*return*/, finalAction];
3935 + }
3936 + });
3937 + });
3938 + }();
3939 + return Object.assign(promise2, {
3940 + abort: abort,
3941 + requestId: requestId,
3942 + arg: arg,
3943 + unwrap: function () {
3944 + return promise2.then(unwrapResult);
3945 + }
3946 + });
3947 + };
3948 + }
3949 + return Object.assign(actionCreator, {
3950 + pending: pending,
3951 + rejected: rejected,
3952 + fulfilled: fulfilled,
3953 + typePrefix: typePrefix
3954 + });
3955 + }
3956 + createAsyncThunk2.withTypes = function () { return createAsyncThunk2; };
3957 + return createAsyncThunk2;
3958 +})();
3959 +function unwrapResult(action) {
3960 + if (action.meta && action.meta.rejectedWithValue) {
3961 + throw action.payload;
3962 + }
3963 + if (action.error) {
3964 + throw action.error;
3965 + }
3966 + return action.payload;
3967 +}
3968 +function isThenable(value) {
3969 + return value !== null && typeof value === "object" && typeof value.then === "function";
3970 +}
3971 +// src/matchers.ts
3972 +var matches = function (matcher, action) {
3973 + if (hasMatchFunction(matcher)) {
3974 + return matcher.match(action);
3975 + }
3976 + else {
3977 + return matcher(action);
3978 + }
3979 +};
3980 +function isAnyOf() {
3981 + var matchers = [];
3982 + for (var _i = 0; _i < arguments.length; _i++) {
3983 + matchers[_i] = arguments[_i];
3984 + }
3985 + return function (action) {
3986 + return matchers.some(function (matcher) { return matches(matcher, action); });
3987 + };
3988 +}
3989 +function isAllOf() {
3990 + var matchers = [];
3991 + for (var _i = 0; _i < arguments.length; _i++) {
3992 + matchers[_i] = arguments[_i];
3993 + }
3994 + return function (action) {
3995 + return matchers.every(function (matcher) { return matches(matcher, action); });
3996 + };
3997 +}
3998 +function hasExpectedRequestMetadata(action, validStatus) {
3999 + if (!action || !action.meta)
4000 + return false;
4001 + var hasValidRequestId = typeof action.meta.requestId === "string";
4002 + var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
4003 + return hasValidRequestId && hasValidRequestStatus;
4004 +}
4005 +function isAsyncThunkArray(a) {
4006 + return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0];
4007 +}
4008 +function isPending() {
4009 + var asyncThunks = [];
4010 + for (var _i = 0; _i < arguments.length; _i++) {
4011 + asyncThunks[_i] = arguments[_i];
4012 + }
4013 + if (asyncThunks.length === 0) {
4014 + return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); };
4015 + }
4016 + if (!isAsyncThunkArray(asyncThunks)) {
4017 + return isPending()(asyncThunks[0]);
4018 + }
4019 + return function (action) {
4020 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; });
4021 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
4022 + return combinedMatcher(action);
4023 + };
4024 +}
4025 +function isRejected() {
4026 + var asyncThunks = [];
4027 + for (var _i = 0; _i < arguments.length; _i++) {
4028 + asyncThunks[_i] = arguments[_i];
4029 + }
4030 + if (asyncThunks.length === 0) {
4031 + return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); };
4032 + }
4033 + if (!isAsyncThunkArray(asyncThunks)) {
4034 + return isRejected()(asyncThunks[0]);
4035 + }
4036 + return function (action) {
4037 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; });
4038 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
4039 + return combinedMatcher(action);
4040 + };
4041 +}
4042 +function isRejectedWithValue() {
4043 + var asyncThunks = [];
4044 + for (var _i = 0; _i < arguments.length; _i++) {
4045 + asyncThunks[_i] = arguments[_i];
4046 + }
4047 + var hasFlag = function (action) {
4048 + return action && action.meta && action.meta.rejectedWithValue;
4049 + };
4050 + if (asyncThunks.length === 0) {
4051 + return function (action) {
4052 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
4053 + return combinedMatcher(action);
4054 + };
4055 + }
4056 + if (!isAsyncThunkArray(asyncThunks)) {
4057 + return isRejectedWithValue()(asyncThunks[0]);
4058 + }
4059 + return function (action) {
4060 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
4061 + return combinedMatcher(action);
4062 + };
4063 +}
4064 +function isFulfilled() {
4065 + var asyncThunks = [];
4066 + for (var _i = 0; _i < arguments.length; _i++) {
4067 + asyncThunks[_i] = arguments[_i];
4068 + }
4069 + if (asyncThunks.length === 0) {
4070 + return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); };
4071 + }
4072 + if (!isAsyncThunkArray(asyncThunks)) {
4073 + return isFulfilled()(asyncThunks[0]);
4074 + }
4075 + return function (action) {
4076 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; });
4077 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
4078 + return combinedMatcher(action);
4079 + };
4080 +}
4081 +function isAsyncThunkAction() {
4082 + var asyncThunks = [];
4083 + for (var _i = 0; _i < arguments.length; _i++) {
4084 + asyncThunks[_i] = arguments[_i];
4085 + }
4086 + if (asyncThunks.length === 0) {
4087 + return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); };
4088 + }
4089 + if (!isAsyncThunkArray(asyncThunks)) {
4090 + return isAsyncThunkAction()(asyncThunks[0]);
4091 + }
4092 + return function (action) {
4093 + var matchers = [];
4094 + for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) {
4095 + var asyncThunk = asyncThunks_1[_i];
4096 + matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled);
4097 + }
4098 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
4099 + return combinedMatcher(action);
4100 + };
4101 +}
4102 +// src/listenerMiddleware/utils.ts
4103 +var assertFunction = function (func, expected) {
4104 + if (typeof func !== "function") {
4105 + throw new TypeError(expected + " is not a function");
4106 + }
4107 +};
4108 +var noop = function () {
4109 +};
4110 +var catchRejection = function (promise2, onError) {
4111 + if (onError === void 0) { onError = noop; }
4112 + promise2.catch(onError);
4113 + return promise2;
4114 +};
4115 +var addAbortSignalListener = function (abortSignal, callback) {
4116 + abortSignal.addEventListener("abort", callback, { once: true });
4117 + return function () { return abortSignal.removeEventListener("abort", callback); };
4118 +};
4119 +var abortControllerWithReason = function (abortController, reason) {
4120 + var signal = abortController.signal;
4121 + if (signal.aborted) {
4122 + return;
4123 + }
4124 + if (!("reason" in signal)) {
4125 + Object.defineProperty(signal, "reason", {
4126 + enumerable: true,
4127 + value: reason,
4128 + configurable: true,
4129 + writable: true
4130 + });
4131 + }
4132 + ;
4133 + abortController.abort(reason);
4134 +};
4135 +// src/listenerMiddleware/exceptions.ts
4136 +var task = "task";
4137 +var listener = "listener";
4138 +var completed = "completed";
4139 +var cancelled = "cancelled";
4140 +var taskCancelled = "task-" + cancelled;
4141 +var taskCompleted = "task-" + completed;
4142 +var listenerCancelled = listener + "-" + cancelled;
4143 +var listenerCompleted = listener + "-" + completed;
4144 +var TaskAbortError = /** @class */ (function () {
4145 + function TaskAbortError(code) {
4146 + this.code = code;
4147 + this.name = "TaskAbortError";
4148 + this.message = task + " " + cancelled + " (reason: " + code + ")";
4149 + }
4150 + return TaskAbortError;
4151 +}());
4152 +// src/listenerMiddleware/task.ts
4153 +var validateActive = function (signal) {
4154 + if (signal.aborted) {
4155 + throw new TaskAbortError(signal.reason);
4156 + }
4157 +};
4158 +function raceWithSignal(signal, promise2) {
4159 + var cleanup = noop;
4160 + return new Promise(function (resolve, reject) {
4161 + var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); };
4162 + if (signal.aborted) {
4163 + notifyRejection();
4164 + return;
4165 + }
4166 + cleanup = addAbortSignalListener(signal, notifyRejection);
4167 + promise2.finally(function () { return cleanup(); }).then(resolve, reject);
4168 + }).finally(function () {
4169 + cleanup = noop;
4170 + });
4171 +}
4172 +var runTask = function (task2, cleanUp) { return __async(void 0, null, function () {
4173 + var value, error_1;
4174 + return __generator(this, function (_c) {
4175 + switch (_c.label) {
4176 + case 0:
4177 + _c.trys.push([0, 3, 4, 5]);
4178 + return [4 /*yield*/, Promise.resolve()];
4179 + case 1:
4180 + _c.sent();
4181 + return [4 /*yield*/, task2()];
4182 + case 2:
4183 + value = _c.sent();
4184 + return [2 /*return*/, {
4185 + status: "ok",
4186 + value: value
4187 + }];
4188 + case 3:
4189 + error_1 = _c.sent();
4190 + return [2 /*return*/, {
4191 + status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected",
4192 + error: error_1
4193 + }];
4194 + case 4:
4195 + cleanUp == null ? void 0 : cleanUp();
4196 + return [7 /*endfinally*/];
4197 + case 5: return [2 /*return*/];
4198 + }
4199 + });
4200 +}); };
4201 +var createPause = function (signal) {
4202 + return function (promise2) {
4203 + return catchRejection(raceWithSignal(signal, promise2).then(function (output) {
4204 + validateActive(signal);
4205 + return output;
4206 + }));
4207 + };
4208 +};
4209 +var createDelay = function (signal) {
4210 + var pause = createPause(signal);
4211 + return function (timeoutMs) {
4212 + return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); }));
4213 + };
4214 +};
4215 +// src/listenerMiddleware/index.ts
4216 +var assign = Object.assign;
4217 +var INTERNAL_NIL_TOKEN = {};
4218 +var alm = "listenerMiddleware";
4219 +var createFork = function (parentAbortSignal, parentBlockingPromises) {
4220 + var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); };
4221 + return function (taskExecutor, opts) {
4222 + assertFunction(taskExecutor, "taskExecutor");
4223 + var childAbortController = new AbortController();
4224 + linkControllers(childAbortController);
4225 + var result = runTask(function () { return __async(void 0, null, function () {
4226 + var result2;
4227 + return __generator(this, function (_c) {
4228 + switch (_c.label) {
4229 + case 0:
4230 + validateActive(parentAbortSignal);
4231 + validateActive(childAbortController.signal);
4232 + return [4 /*yield*/, taskExecutor({
4233 + pause: createPause(childAbortController.signal),
4234 + delay: createDelay(childAbortController.signal),
4235 + signal: childAbortController.signal
4236 + })];
4237 + case 1:
4238 + result2 = _c.sent();
4239 + validateActive(childAbortController.signal);
4240 + return [2 /*return*/, result2];
4241 + }
4242 + });
4243 + }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); });
4244 + if (opts == null ? void 0 : opts.autoJoin) {
4245 + parentBlockingPromises.push(result);
4246 + }
4247 + return {
4248 + result: createPause(parentAbortSignal)(result),
4249 + cancel: function () {
4250 + abortControllerWithReason(childAbortController, taskCancelled);
4251 + }
4252 + };
4253 + };
4254 +};
4255 +var createTakePattern = function (startListening, signal) {
4256 + var take = function (predicate, timeout) { return __async(void 0, null, function () {
4257 + var unsubscribe, tuplePromise, promises, output;
4258 + return __generator(this, function (_c) {
4259 + switch (_c.label) {
4260 + case 0:
4261 + validateActive(signal);
4262 + unsubscribe = function () {
4263 + };
4264 + tuplePromise = new Promise(function (resolve, reject) {
4265 + var stopListening = startListening({
4266 + predicate: predicate,
4267 + effect: function (action, listenerApi) {
4268 + listenerApi.unsubscribe();
4269 + resolve([
4270 + action,
4271 + listenerApi.getState(),
4272 + listenerApi.getOriginalState()
4273 + ]);
4274 + }
4275 + });
4276 + unsubscribe = function () {
4277 + stopListening();
4278 + reject();
4279 + };
4280 + });
4281 + promises = [
4282 + tuplePromise
4283 + ];
4284 + if (timeout != null) {
4285 + promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); }));
4286 + }
4287 + _c.label = 1;
4288 + case 1:
4289 + _c.trys.push([1, , 3, 4]);
4290 + return [4 /*yield*/, raceWithSignal(signal, Promise.race(promises))];
4291 + case 2:
4292 + output = _c.sent();
4293 + validateActive(signal);
4294 + return [2 /*return*/, output];
4295 + case 3:
4296 + unsubscribe();
4297 + return [7 /*endfinally*/];
4298 + case 4: return [2 /*return*/];
4299 + }
4300 + });
4301 + }); };
4302 + return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); };
4303 +};
4304 +var getListenerEntryPropsFrom = function (options) {
4305 + var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect;
4306 + if (type) {
4307 + predicate = createAction(type).match;
4308 + }
4309 + else if (actionCreator) {
4310 + type = actionCreator.type;
4311 + predicate = actionCreator.match;
4312 + }
4313 + else if (matcher) {
4314 + predicate = matcher;
4315 + }
4316 + else if (predicate) {
4317 + }
4318 + else {
4319 + throw new Error("Creating or removing a listener requires one of the known fields for matching an action");
4320 + }
4321 + assertFunction(effect, "options.listener");
4322 + return { predicate: predicate, type: type, effect: effect };
4323 +};
4324 +var createListenerEntry = function (options) {
4325 + var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect;
4326 + var id = nanoid();
4327 + var entry = {
4328 + id: id,
4329 + effect: effect,
4330 + type: type,
4331 + predicate: predicate,
4332 + pending: new Set(),
4333 + unsubscribe: function () {
4334 + throw new Error("Unsubscribe not initialized");
4335 + }
4336 + };
4337 + return entry;
4338 +};
4339 +var cancelActiveListeners = function (entry) {
4340 + entry.pending.forEach(function (controller) {
4341 + abortControllerWithReason(controller, listenerCancelled);
4342 + });
4343 +};
4344 +var createClearListenerMiddleware = function (listenerMap) {
4345 + return function () {
4346 + listenerMap.forEach(cancelActiveListeners);
4347 + listenerMap.clear();
4348 + };
4349 +};
4350 +var safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) {
4351 + try {
4352 + errorHandler(errorToNotify, errorInfo);
4353 + }
4354 + catch (errorHandlerError) {
4355 + setTimeout(function () {
4356 + throw errorHandlerError;
4357 + }, 0);
4358 + }
4359 +};
4360 +var addListener = createAction(alm + "/add");
4361 +var clearAllListeners = createAction(alm + "/removeAll");
4362 +var removeListener = createAction(alm + "/remove");
4363 +var defaultErrorHandler = function () {
4364 + var args = [];
4365 + for (var _i = 0; _i < arguments.length; _i++) {
4366 + args[_i] = arguments[_i];
4367 + }
4368 + console.error.apply(console, __spreadArray([alm + "/error"], args));
4369 +};
4370 +function createListenerMiddleware(middlewareOptions) {
4371 + var _this = this;
4372 + if (middlewareOptions === void 0) { middlewareOptions = {}; }
4373 + var listenerMap = new Map();
4374 + var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c;
4375 + assertFunction(onError, "onError");
4376 + var insertEntry = function (entry) {
4377 + entry.unsubscribe = function () { return listenerMap.delete(entry.id); };
4378 + listenerMap.set(entry.id, entry);
4379 + return function (cancelOptions) {
4380 + entry.unsubscribe();
4381 + if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) {
4382 + cancelActiveListeners(entry);
4383 + }
4384 + };
4385 + };
4386 + var findListenerEntry = function (comparator) {
4387 + for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) {
4388 + var entry = _c[_i];
4389 + if (comparator(entry)) {
4390 + return entry;
4391 + }
4392 + }
4393 + return void 0;
4394 + };
4395 + var startListening = function (options) {
4396 + var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; });
4397 + if (!entry) {
4398 + entry = createListenerEntry(options);
4399 + }
4400 + return insertEntry(entry);
4401 + };
4402 + var stopListening = function (options) {
4403 + var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate;
4404 + var entry = findListenerEntry(function (entry2) {
4405 + var matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate;
4406 + return matchPredicateOrType && entry2.effect === effect;
4407 + });
4408 + if (entry) {
4409 + entry.unsubscribe();
4410 + if (options.cancelActive) {
4411 + cancelActiveListeners(entry);
4412 + }
4413 + }
4414 + return !!entry;
4415 + };
4416 + var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () {
4417 + var internalTaskController, take, autoJoinPromises, listenerError_1;
4418 + return __generator(this, function (_c) {
4419 + switch (_c.label) {
4420 + case 0:
4421 + internalTaskController = new AbortController();
4422 + take = createTakePattern(startListening, internalTaskController.signal);
4423 + autoJoinPromises = [];
4424 + _c.label = 1;
4425 + case 1:
4426 + _c.trys.push([1, 3, 4, 6]);
4427 + entry.pending.add(internalTaskController);
4428 + return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, {
4429 + getOriginalState: getOriginalState,
4430 + condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); },
4431 + take: take,
4432 + delay: createDelay(internalTaskController.signal),
4433 + pause: createPause(internalTaskController.signal),
4434 + extra: extra,
4435 + signal: internalTaskController.signal,
4436 + fork: createFork(internalTaskController.signal, autoJoinPromises),
4437 + unsubscribe: entry.unsubscribe,
4438 + subscribe: function () {
4439 + listenerMap.set(entry.id, entry);
4440 + },
4441 + cancelActiveListeners: function () {
4442 + entry.pending.forEach(function (controller, _, set) {
4443 + if (controller !== internalTaskController) {
4444 + abortControllerWithReason(controller, listenerCancelled);
4445 + set.delete(controller);
4446 + }
4447 + });
4448 + }
4449 + })))];
4450 + case 2:
4451 + _c.sent();
4452 + return [3 /*break*/, 6];
4453 + case 3:
4454 + listenerError_1 = _c.sent();
4455 + if (!(listenerError_1 instanceof TaskAbortError)) {
4456 + safelyNotifyError(onError, listenerError_1, {
4457 + raisedBy: "effect"
4458 + });
4459 + }
4460 + return [3 /*break*/, 6];
4461 + case 4: return [4 /*yield*/, Promise.allSettled(autoJoinPromises)];
4462 + case 5:
4463 + _c.sent();
4464 + abortControllerWithReason(internalTaskController, listenerCompleted);
4465 + entry.pending.delete(internalTaskController);
4466 + return [7 /*endfinally*/];
4467 + case 6: return [2 /*return*/];
4468 + }
4469 + });
4470 + }); };
4471 + var clearListenerMiddleware = createClearListenerMiddleware(listenerMap);
4472 + var middleware = function (api) { return function (next) { return function (action) {
4473 + if (!isAction(action)) {
4474 + return next(action);
4475 + }
4476 + if (addListener.match(action)) {
4477 + return startListening(action.payload);
4478 + }
4479 + if (clearAllListeners.match(action)) {
4480 + clearListenerMiddleware();
4481 + return;
4482 + }
4483 + if (removeListener.match(action)) {
4484 + return stopListening(action.payload);
4485 + }
4486 + var originalState = api.getState();
4487 + var getOriginalState = function () {
4488 + if (originalState === INTERNAL_NIL_TOKEN) {
4489 + throw new Error(alm + ": getOriginalState can only be called synchronously");
4490 + }
4491 + return originalState;
4492 + };
4493 + var result;
4494 + try {
4495 + result = next(action);
4496 + if (listenerMap.size > 0) {
4497 + var currentState = api.getState();
4498 + var listenerEntries = Array.from(listenerMap.values());
4499 + for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) {
4500 + var entry = listenerEntries_1[_i];
4501 + var runListener = false;
4502 + try {
4503 + runListener = entry.predicate(action, currentState, originalState);
4504 + }
4505 + catch (predicateError) {
4506 + runListener = false;
4507 + safelyNotifyError(onError, predicateError, {
4508 + raisedBy: "predicate"
4509 + });
4510 + }
4511 + if (!runListener) {
4512 + continue;
4513 + }
4514 + notifyListener(entry, action, api, getOriginalState);
4515 + }
4516 + }
4517 + }
4518 + finally {
4519 + originalState = INTERNAL_NIL_TOKEN;
4520 + }
4521 + return result;
4522 + }; }; };
4523 + return {
4524 + middleware: middleware,
4525 + startListening: startListening,
4526 + stopListening: stopListening,
4527 + clearListeners: clearListenerMiddleware
4528 + };
4529 +}
4530 +// src/autoBatchEnhancer.ts
4531 +var SHOULD_AUTOBATCH = "RTK_autoBatch";
4532 +var prepareAutoBatched = function () { return function (payload) {
4533 + var _c;
4534 + return ({
4535 + payload: payload,
4536 + meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c)
4537 + });
4538 +}; };
4539 +var promise;
4540 +var queueMicrotaskShim = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : typeof __webpack_require__.g !== "undefined" ? __webpack_require__.g : globalThis) : function (cb) { return (promise || (promise = Promise.resolve())).then(cb).catch(function (err) { return setTimeout(function () {
4541 + throw err;
4542 +}, 0); }); };
4543 +var createQueueWithTimer = function (timeout) {
4544 + return function (notify) {
4545 + setTimeout(notify, timeout);
4546 + };
4547 +};
4548 +var rAF = typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10);
4549 +var autoBatchEnhancer = function (options) {
4550 + if (options === void 0) { options = { type: "raf" }; }
4551 + return function (next) { return function () {
4552 + var args = [];
4553 + for (var _i = 0; _i < arguments.length; _i++) {
4554 + args[_i] = arguments[_i];
4555 + }
4556 + var store = next.apply(void 0, args);
4557 + var notifying = true;
4558 + var shouldNotifyAtEndOfTick = false;
4559 + var notificationQueued = false;
4560 + var listeners = new Set();
4561 + var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ? rAF : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
4562 + var notifyListeners = function () {
4563 + notificationQueued = false;
4564 + if (shouldNotifyAtEndOfTick) {
4565 + shouldNotifyAtEndOfTick = false;
4566 + listeners.forEach(function (l) { return l(); });
4567 + }
4568 + };
4569 + return Object.assign({}, store, {
4570 + subscribe: function (listener2) {
4571 + var wrappedListener = function () { return notifying && listener2(); };
4572 + var unsubscribe = store.subscribe(wrappedListener);
4573 + listeners.add(listener2);
4574 + return function () {
4575 + unsubscribe();
4576 + listeners.delete(listener2);
4577 + };
4578 + },
4579 + dispatch: function (action) {
4580 + var _a;
4581 + try {
4582 + notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]);
4583 + shouldNotifyAtEndOfTick = !notifying;
4584 + if (shouldNotifyAtEndOfTick) {
4585 + if (!notificationQueued) {
4586 + notificationQueued = true;
4587 + queueCallback(notifyListeners);
4588 + }
4589 + }
4590 + return store.dispatch(action);
4591 + }
4592 + finally {
4593 + notifying = true;
4594 + }
4595 + }
4596 + });
4597 + }; };
4598 +};
4599 +// src/index.ts
4600 +(0,immer__WEBPACK_IMPORTED_MODULE_2__.enableES5)();
4601 +
4602 +//# sourceMappingURL=redux-toolkit.esm.js.map
4603 +
4604 +/***/ }),
4605 +
4606 +/***/ "../node_modules/immer/dist/immer.esm.mjs":
2384 4607 /*!************************************************!*\
2385 - !*** external "elementorVendors.reduxToolkit" ***!
4608 + !*** ../node_modules/immer/dist/immer.esm.mjs ***!
2386 4609 \************************************************/
2387 -/***/ ((module) => {
4610 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2388 4611
2389 4612 "use strict";
2390 -module.exports = elementorVendors.reduxToolkit;
4613 +__webpack_require__.r(__webpack_exports__);
4614 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4615 +/* harmony export */ Immer: () => (/* binding */ un),
4616 +/* harmony export */ applyPatches: () => (/* binding */ pn),
4617 +/* harmony export */ castDraft: () => (/* binding */ K),
4618 +/* harmony export */ castImmutable: () => (/* binding */ $),
4619 +/* harmony export */ createDraft: () => (/* binding */ ln),
4620 +/* harmony export */ current: () => (/* binding */ R),
4621 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
4622 +/* harmony export */ enableAllPlugins: () => (/* binding */ J),
4623 +/* harmony export */ enableES5: () => (/* binding */ F),
4624 +/* harmony export */ enableMapSet: () => (/* binding */ C),
4625 +/* harmony export */ enablePatches: () => (/* binding */ T),
4626 +/* harmony export */ finishDraft: () => (/* binding */ dn),
4627 +/* harmony export */ freeze: () => (/* binding */ d),
4628 +/* harmony export */ immerable: () => (/* binding */ L),
4629 +/* harmony export */ isDraft: () => (/* binding */ r),
4630 +/* harmony export */ isDraftable: () => (/* binding */ t),
4631 +/* harmony export */ nothing: () => (/* binding */ H),
4632 +/* harmony export */ original: () => (/* binding */ e),
4633 +/* harmony export */ produce: () => (/* binding */ fn),
4634 +/* harmony export */ produceWithPatches: () => (/* binding */ cn),
4635 +/* harmony export */ setAutoFreeze: () => (/* binding */ sn),
4636 +/* harmony export */ setUseProxies: () => (/* binding */ vn)
4637 +/* harmony export */ });
4638 +function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];if(true){var i=Y[n],o=i?"function"==typeof i?i.apply(null,t):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}// removed by dead control flow
4639 +{}}function r(n){return!!n&&!!n[Q]}function t(n){var r;return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var r=Object.getPrototypeOf(n);if(null===r)return!0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!(null===(r=n.constructor)||void 0===r?void 0:r[L])||s(n)||v(n))}function e(t){return r(t)||n(23,t),t[Q].t}function i(n,r,t){void 0===t&&(t=!1),0===o(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n)})):n.forEach((function(t,e){return r(e,t,n)}))}function o(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?n.add(t):n[r]=t}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]})}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r(n)||!t(n)||(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n(2)}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function _(){return false||U||n(0),U}function j(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r)}function g(n){O(n),n.p.forEach(S),n.p=null}function O(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b("ES5").S(e,r,o),o?(i[Q].P&&(g(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b("Patches").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o,u=o,a=!1;3===e.i&&(u=new Set(o),o.clear(),a=!0),i(u,(function(r,i){return A(n,e,o,r,i,t,a)})),x(n,o,!1),t&&n.u&&b("Patches").N(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s,v){if( true&&c===o&&n(5),r(c)){var p=M(e,c,s&&i&&3!==i.i&&!u(i.R,a)?s.concat(a):void 0);if(f(o,a,p),!r(p))return;e.m=!1}else v&&o.add(c);if(t(c)&&!y(c)){if(!e.h.D&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),!n.l&&n.h.D&&n.m&&d(r,t)}function z(n,r){var t=n[Q];return(t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function N(n,r,t){var e=s(r)?b("MapSet").F(r,t):v(r)?b("MapSet").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b("ES5").J(r,t);return(t?t.A:_()).p.push(e),e}function R(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=D(r,c),u.I=!1}else e=D(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t))})),3===c?new Set(e):e}(e)}function D(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function F(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return true&&f(r),en.get(r,n)},set:function(r){var t=this[Q]; true&&f(t),en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return!0;for(var e=0;e<r.length;e++)if(!r.hasOwnProperty(e))return!0;return!1}function f(r){r.g&&n(3,JSON.stringify(p(r)))}var s={};m("ES5",{J:function(n,r){var e=Array.isArray(n),i=function(n,r){if(n){for(var e=Array(r.length),i=0;i<r.length;i++)Object.defineProperty(e,""+i,t(i,!0));return e}var o=rn(r);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=t(f,n||!!o[f].enumerable)}return Object.create(Object.getPrototypeOf(r),o)}(e,n),o={i:e?5:4,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,t,o){o?r(t)&&t[Q].A===n&&e(n.p):(n.u&&function n(r){if(r&&"object"==typeof r){var t=r[Q];if(t){var e=t.t,o=t.k,f=t.R,c=t.i;if(4===c)i(o,(function(r){r!==Q&&(void 0!==e[r]||u(e,r)?f[r]||n(o[r]):(f[r]=!0,k(t)))})),i(e,(function(n){void 0!==o[n]||u(o,n)||(f[n]=!1,k(t))}));else if(5===c){if(a(t)&&(k(t),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)o.hasOwnProperty(l)||(f[l]=!0),void 0===f[l]&&n(o[l])}}}}(n.p[0]),e(n.p))},K:function(n){return 4===n.i?o(n):a(n)}})}function T(){function e(n){if(!t(n))return n;if(Array.isArray(n))return n.map(e);if(s(n))return new Map(Array.from(n.entries()).map((function(n){return[n[0],e(n[1])]})));if(v(n))return new Set(Array.from(n).map(e));var r=Object.create(Object.getPrototypeOf(n));for(var i in n)r[i]=e(n[i]);return u(n,L)&&(r[L]=n[L]),r}function f(n){return r(n)?e(n):n}var c="add";m("Patches",{$:function(r,t){return t.forEach((function(t){for(var i=t.path,u=t.op,f=r,s=0;s<i.length-1;s++){var v=o(f),p=i[s];"string"!=typeof p&&"number"!=typeof p&&(p=""+p),0!==v&&1!==v||"__proto__"!==p&&"constructor"!==p||n(24),"function"==typeof f&&"prototype"===p&&n(24),"object"!=typeof(f=a(f,p))&&n(15,i.join("/"))}var l=o(f),d=e(t.value),h=i[i.length-1];switch(u){case"replace":switch(l){case 2:return f.set(h,d);case 3:n(16);default:return f[h]=d}case c:switch(l){case 1:return"-"===h?f.push(d):f.splice(h,0,d);case 2:return f.set(h,d);case 3:return f.add(d);default:return f[h]=d}case"remove":switch(l){case 1:return f.splice(h,1);case 2:return f.delete(h);case 3:return f.delete(t.value);default:return delete f[h]}default:n(17,u)}})),r},N:function(n,r,t,e){switch(n.i){case 0:case 4:case 2:return function(n,r,t,e){var o=n.t,s=n.o;i(n.R,(function(n,i){var v=a(o,n),p=a(s,n),l=i?u(o,n)?"replace":c:"remove";if(v!==p||"replace"!==l){var d=r.concat(n);t.push("remove"===l?{op:l,path:d}:{op:l,path:d,value:p}),e.push(l===c?{op:"remove",path:d}:"remove"===l?{op:c,path:d,value:f(v)}:{op:"replace",path:d,value:f(v)})}}))}(n,r,t,e);case 5:case 1:return function(n,r,t,e){var i=n.t,o=n.R,u=n.o;if(u.length<i.length){var a=[u,i];i=a[0],u=a[1];var s=[e,t];t=s[0],e=s[1]}for(var v=0;v<i.length;v++)if(o[v]&&u[v]!==i[v]){var p=r.concat([v]);t.push({op:"replace",path:p,value:f(u[v])}),e.push({op:"replace",path:p,value:f(i[v])})}for(var l=i.length;l<u.length;l++){var d=r.concat([l]);t.push({op:c,path:d,value:f(u[l])})}i.length<u.length&&e.push({op:"replace",path:r.concat(["length"]),value:i.length})}(n,r,t,e);case 3:return function(n,r,t,e){var i=n.t,o=n.o,u=0;i.forEach((function(n){if(!o.has(n)){var i=r.concat([u]);t.push({op:"remove",path:i,value:n}),e.unshift({op:c,path:i,value:n})}u++})),u=0,o.forEach((function(n){if(!i.has(n)){var o=r.concat([u]);t.push({op:c,path:o,value:n}),e.unshift({op:"remove",path:o,value:n})}u++}))}(n,r,t,e)}},M:function(n,r,t,e){t.push({op:"replace",path:[],value:r===H?void 0:r}),e.push({op:"replace",path:[],value:n})}})}function C(){function r(n,r){function t(){this.constructor=n}a(n,r),n.prototype=(t.prototype=r.prototype,new t)}function e(n){n.o||(n.R=new Map,n.o=new Map(n.t))}function o(n){n.o||(n.o=new Set,n.t.forEach((function(r){if(t(r)){var e=N(n.A.h,r,n);n.p.set(r,e),n.o.add(e)}else n.o.add(r)})))}function u(r){r.g&&n(3,JSON.stringify(p(r)))}var a=function(n,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var t in r)r.hasOwnProperty(t)&&(n[t]=r[t])})(n,r)},f=function(){function n(n,r){return this[Q]={i:2,l:r,A:r?r.A:_(),P:!1,I:!1,o:void 0,R:void 0,t:n,k:this,C:!1,g:!1},this}r(n,Map);var o=n.prototype;return Object.defineProperty(o,"size",{get:function(){return p(this[Q]).size}}),o.has=function(n){return p(this[Q]).has(n)},o.set=function(n,r){var t=this[Q];return u(t),p(t).has(n)&&p(t).get(n)===r||(e(t),k(t),t.R.set(n,!0),t.o.set(n,r),t.R.set(n,!0)),this},o.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),e(r),k(r),r.t.has(n)?r.R.set(n,!1):r.R.delete(n),r.o.delete(n),!0},o.clear=function(){var n=this[Q];u(n),p(n).size&&(e(n),k(n),n.R=new Map,i(n.t,(function(r){n.R.set(r,!1)})),n.o.clear())},o.forEach=function(n,r){var t=this;p(this[Q]).forEach((function(e,i){n.call(r,t.get(i),i,t)}))},o.get=function(n){var r=this[Q];u(r);var i=p(r).get(n);if(r.I||!t(i))return i;if(i!==r.t.get(n))return i;var o=N(r.A.h,i,r);return e(r),r.o.set(n,o),o},o.keys=function(){return p(this[Q]).keys()},o.values=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.values()},n.next=function(){var n=t.next();return n.done?n:{done:!1,value:r.get(n.value)}},n},o.entries=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.entries()},n.next=function(){var n=t.next();if(n.done)return n;var e=r.get(n.value);return{done:!1,value:[n.value,e]}},n},o[V]=function(){return this.entries()},n}(),c=function(){function n(n,r){return this[Q]={i:3,l:r,A:r?r.A:_(),P:!1,I:!1,o:void 0,t:n,k:this,p:new Map,g:!1,C:!1},this}r(n,Set);var t=n.prototype;return Object.defineProperty(t,"size",{get:function(){return p(this[Q]).size}}),t.has=function(n){var r=this[Q];return u(r),r.o?!!r.o.has(n)||!(!r.p.has(n)||!r.o.has(r.p.get(n))):r.t.has(n)},t.add=function(n){var r=this[Q];return u(r),this.has(n)||(o(r),k(r),r.o.add(n)),this},t.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),o(r),k(r),r.o.delete(n)||!!r.p.has(n)&&r.o.delete(r.p.get(n))},t.clear=function(){var n=this[Q];u(n),p(n).size&&(o(n),k(n),n.o.clear())},t.values=function(){var n=this[Q];return u(n),o(n),n.o.values()},t.entries=function(){var n=this[Q];return u(n),o(n),n.o.entries()},t.keys=function(){return this.values()},t[V]=function(){return this.values()},t.forEach=function(n,r){for(var t=this.values(),e=t.next();!e.done;)n.call(r,e.value,e.value,this),e=t.next()},n}();m("MapSet",{F:function(n,r){return new f(n,r)},T:function(n,r){return new c(n,r)}})}function J(){F(),C(),T()}function K(n){return n}function $(n){return n}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",V="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return"Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return"Unsupported patch operation: "+n},18:function(n){return"The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return"'current' expects a draft, got: "+n},23:function(n){return"'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t)})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t(i)?i:i===z(n.t,r)?(E(n),n.o[r]=N(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.R[r]=!1,!0;if(c(t,i)&&(void 0!==t||u(n.t,r)))return!0;E(n),k(n)}return n.o[r]===t&&(void 0!==t||r in n.o)||Number.isNaN(t)&&Number.isNaN(n.o[r])||(n.o[r]=t,n.R[r]=!0),!0},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.R[r]=!1,E(n),k(n)):delete n.R[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12)}},on={};i(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}})),on.deleteProperty=function(r,t){return true&&isNaN(parseInt(t))&&n(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return true&&"length"!==t&&isNaN(parseInt(t))&&n(14),en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.O=B,this.D=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return(t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),t(r)){var c=w(e),s=N(e,r,void 0),v=!0;try{f=i(s),v=!1}finally{v?g(c):O(c)}return"undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw g(c),n})):(j(c,o),P(f,c))}if(!r||"object"!=typeof r){if(void 0===(f=i(r))&&(f=r),f===H&&(f=void 0),e.D&&d(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l)}return f}n(21,r)},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return[n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze)}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r(e)&&(e=R(e));var i=w(this),o=N(this,e,void 0);return o[Q].C=!0,O(i),o},i.finishDraft=function(r,t){var e=r&&r[Q]; true&&(e&&e.C||n(9),e.I&&n(10));var i=e.A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.D=n},i.setUseProxies=function(r){r&&!B&&n(20),this.O=r},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b("Patches").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (fn);
4640 +//# sourceMappingURL=immer.esm.js.map
2391 4641
4642 +
4643 +/***/ }),
4644 +
4645 +/***/ "../node_modules/redux-thunk/es/index.js":
4646 +/*!***********************************************!*\
4647 + !*** ../node_modules/redux-thunk/es/index.js ***!
4648 + \***********************************************/
4649 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4650 +
4651 +"use strict";
4652 +__webpack_require__.r(__webpack_exports__);
4653 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4654 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4655 +/* harmony export */ });
4656 +/** A function that accepts a potential "extra argument" value to be injected later,
4657 + * and returns an instance of the thunk middleware that uses that value
4658 + */
4659 +function createThunkMiddleware(extraArgument) {
4660 + // Standard Redux middleware definition pattern:
4661 + // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware
4662 + var middleware = function middleware(_ref) {
4663 + var dispatch = _ref.dispatch,
4664 + getState = _ref.getState;
4665 + return function (next) {
4666 + return function (action) {
4667 + // The thunk middleware looks for any functions that were passed to `store.dispatch`.
4668 + // If this "action" is really a function, call it and return the result.
4669 + if (typeof action === 'function') {
4670 + // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg"
4671 + return action(dispatch, getState, extraArgument);
4672 + } // Otherwise, pass the action down the middleware chain as usual
4673 +
4674 +
4675 + return next(action);
4676 + };
4677 + };
4678 + };
4679 +
4680 + return middleware;
4681 +}
4682 +
4683 +var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version
4684 +// with whatever "extra arg" they want to inject into their thunks
4685 +
4686 +thunk.withExtraArgument = createThunkMiddleware;
4687 +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (thunk);
4688 +
4689 +/***/ }),
4690 +
4691 +/***/ "../node_modules/redux/es/redux.js":
4692 +/*!*****************************************!*\
4693 + !*** ../node_modules/redux/es/redux.js ***!
4694 + \*****************************************/
4695 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4696 +
4697 +"use strict";
4698 +__webpack_require__.r(__webpack_exports__);
4699 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4700 +/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* binding */ ActionTypes),
4701 +/* harmony export */ applyMiddleware: () => (/* binding */ applyMiddleware),
4702 +/* harmony export */ bindActionCreators: () => (/* binding */ bindActionCreators),
4703 +/* harmony export */ combineReducers: () => (/* binding */ combineReducers),
4704 +/* harmony export */ compose: () => (/* binding */ compose),
4705 +/* harmony export */ createStore: () => (/* binding */ createStore),
4706 +/* harmony export */ legacy_createStore: () => (/* binding */ legacy_createStore)
4707 +/* harmony export */ });
4708 +/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
4709 +
4710 +
4711 +/**
4712 + * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
4713 + *
4714 + * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
4715 + * during build.
4716 + * @param {number} code
4717 + */
4718 +function formatProdErrorMessage(code) {
4719 + return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. ';
4720 +}
4721 +
4722 +// Inlined version of the `symbol-observable` polyfill
4723 +var $$observable = (function () {
4724 + return typeof Symbol === 'function' && Symbol.observable || '@@observable';
4725 +})();
4726 +
4727 +/**
4728 + * These are private action types reserved by Redux.
4729 + * For any unknown actions, you must return the current state.
4730 + * If the current state is undefined, you must return the initial state.
4731 + * Do not reference these action types directly in your code.
4732 + */
4733 +var randomString = function randomString() {
4734 + return Math.random().toString(36).substring(7).split('').join('.');
4735 +};
4736 +
4737 +var ActionTypes = {
4738 + INIT: "@@redux/INIT" + randomString(),
4739 + REPLACE: "@@redux/REPLACE" + randomString(),
4740 + PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
4741 + return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
4742 + }
4743 +};
4744 +
4745 +/**
4746 + * @param {any} obj The object to inspect.
4747 + * @returns {boolean} True if the argument appears to be a plain object.
4748 + */
4749 +function isPlainObject(obj) {
4750 + if (typeof obj !== 'object' || obj === null) return false;
4751 + var proto = obj;
4752 +
4753 + while (Object.getPrototypeOf(proto) !== null) {
4754 + proto = Object.getPrototypeOf(proto);
4755 + }
4756 +
4757 + return Object.getPrototypeOf(obj) === proto;
4758 +}
4759 +
4760 +// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
4761 +function miniKindOf(val) {
4762 + if (val === void 0) return 'undefined';
4763 + if (val === null) return 'null';
4764 + var type = typeof val;
4765 +
4766 + switch (type) {
4767 + case 'boolean':
4768 + case 'string':
4769 + case 'number':
4770 + case 'symbol':
4771 + case 'function':
4772 + {
4773 + return type;
4774 + }
4775 + }
4776 +
4777 + if (Array.isArray(val)) return 'array';
4778 + if (isDate(val)) return 'date';
4779 + if (isError(val)) return 'error';
4780 + var constructorName = ctorName(val);
4781 +
4782 + switch (constructorName) {
4783 + case 'Symbol':
4784 + case 'Promise':
4785 + case 'WeakMap':
4786 + case 'WeakSet':
4787 + case 'Map':
4788 + case 'Set':
4789 + return constructorName;
4790 + } // other
4791 +
4792 +
4793 + return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
4794 +}
4795 +
4796 +function ctorName(val) {
4797 + return typeof val.constructor === 'function' ? val.constructor.name : null;
4798 +}
4799 +
4800 +function isError(val) {
4801 + return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
4802 +}
4803 +
4804 +function isDate(val) {
4805 + if (val instanceof Date) return true;
4806 + return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
4807 +}
4808 +
4809 +function kindOf(val) {
4810 + var typeOfVal = typeof val;
4811 +
4812 + if (true) {
4813 + typeOfVal = miniKindOf(val);
4814 + }
4815 +
4816 + return typeOfVal;
4817 +}
4818 +
4819 +/**
4820 + * @deprecated
4821 + *
4822 + * **We recommend using the `configureStore` method
4823 + * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
4824 + *
4825 + * Redux Toolkit is our recommended approach for writing Redux logic today,
4826 + * including store setup, reducers, data fetching, and more.
4827 + *
4828 + * **For more details, please read this Redux docs page:**
4829 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
4830 + *
4831 + * `configureStore` from Redux Toolkit is an improved version of `createStore` that
4832 + * simplifies setup and helps avoid common bugs.
4833 + *
4834 + * You should not be using the `redux` core package by itself today, except for learning purposes.
4835 + * The `createStore` method from the core `redux` package will not be removed, but we encourage
4836 + * all users to migrate to using Redux Toolkit for all Redux code.
4837 + *
4838 + * If you want to use `createStore` without this visual deprecation warning, use
4839 + * the `legacy_createStore` import instead:
4840 + *
4841 + * `import { legacy_createStore as createStore} from 'redux'`
4842 + *
4843 + */
4844 +
4845 +function createStore(reducer, preloadedState, enhancer) {
4846 + var _ref2;
4847 +
4848 + if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
4849 + throw new Error( false ? 0 : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');
4850 + }
4851 +
4852 + if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
4853 + enhancer = preloadedState;
4854 + preloadedState = undefined;
4855 + }
4856 +
4857 + if (typeof enhancer !== 'undefined') {
4858 + if (typeof enhancer !== 'function') {
4859 + throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'");
4860 + }
4861 +
4862 + return enhancer(createStore)(reducer, preloadedState);
4863 + }
4864 +
4865 + if (typeof reducer !== 'function') {
4866 + throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'");
4867 + }
4868 +
4869 + var currentReducer = reducer;
4870 + var currentState = preloadedState;
4871 + var currentListeners = [];
4872 + var nextListeners = currentListeners;
4873 + var isDispatching = false;
4874 + /**
4875 + * This makes a shallow copy of currentListeners so we can use
4876 + * nextListeners as a temporary list while dispatching.
4877 + *
4878 + * This prevents any bugs around consumers calling
4879 + * subscribe/unsubscribe in the middle of a dispatch.
4880 + */
4881 +
4882 + function ensureCanMutateNextListeners() {
4883 + if (nextListeners === currentListeners) {
4884 + nextListeners = currentListeners.slice();
4885 + }
4886 + }
4887 + /**
4888 + * Reads the state tree managed by the store.
4889 + *
4890 + * @returns {any} The current state tree of your application.
4891 + */
4892 +
4893 +
4894 + function getState() {
4895 + if (isDispatching) {
4896 + throw new Error( false ? 0 : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
4897 + }
4898 +
4899 + return currentState;
4900 + }
4901 + /**
4902 + * Adds a change listener. It will be called any time an action is dispatched,
4903 + * and some part of the state tree may potentially have changed. You may then
4904 + * call `getState()` to read the current state tree inside the callback.
4905 + *
4906 + * You may call `dispatch()` from a change listener, with the following
4907 + * caveats:
4908 + *
4909 + * 1. The subscriptions are snapshotted just before every `dispatch()` call.
4910 + * If you subscribe or unsubscribe while the listeners are being invoked, this
4911 + * will not have any effect on the `dispatch()` that is currently in progress.
4912 + * However, the next `dispatch()` call, whether nested or not, will use a more
4913 + * recent snapshot of the subscription list.
4914 + *
4915 + * 2. The listener should not expect to see all state changes, as the state
4916 + * might have been updated multiple times during a nested `dispatch()` before
4917 + * the listener is called. It is, however, guaranteed that all subscribers
4918 + * registered before the `dispatch()` started will be called with the latest
4919 + * state by the time it exits.
4920 + *
4921 + * @param {Function} listener A callback to be invoked on every dispatch.
4922 + * @returns {Function} A function to remove this change listener.
4923 + */
4924 +
4925 +
4926 + function subscribe(listener) {
4927 + if (typeof listener !== 'function') {
4928 + throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'");
4929 + }
4930 +
4931 + if (isDispatching) {
4932 + throw new Error( false ? 0 : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
4933 + }
4934 +
4935 + var isSubscribed = true;
4936 + ensureCanMutateNextListeners();
4937 + nextListeners.push(listener);
4938 + return function unsubscribe() {
4939 + if (!isSubscribed) {
4940 + return;
4941 + }
4942 +
4943 + if (isDispatching) {
4944 + throw new Error( false ? 0 : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
4945 + }
4946 +
4947 + isSubscribed = false;
4948 + ensureCanMutateNextListeners();
4949 + var index = nextListeners.indexOf(listener);
4950 + nextListeners.splice(index, 1);
4951 + currentListeners = null;
4952 + };
4953 + }
4954 + /**
4955 + * Dispatches an action. It is the only way to trigger a state change.
4956 + *
4957 + * The `reducer` function, used to create the store, will be called with the
4958 + * current state tree and the given `action`. Its return value will
4959 + * be considered the **next** state of the tree, and the change listeners
4960 + * will be notified.
4961 + *
4962 + * The base implementation only supports plain object actions. If you want to
4963 + * dispatch a Promise, an Observable, a thunk, or something else, you need to
4964 + * wrap your store creating function into the corresponding middleware. For
4965 + * example, see the documentation for the `redux-thunk` package. Even the
4966 + * middleware will eventually dispatch plain object actions using this method.
4967 + *
4968 + * @param {Object} action A plain object representing “what changed”. It is
4969 + * a good idea to keep actions serializable so you can record and replay user
4970 + * sessions, or use the time travelling `redux-devtools`. An action must have
4971 + * a `type` property which may not be `undefined`. It is a good idea to use
4972 + * string constants for action types.
4973 + *
4974 + * @returns {Object} For convenience, the same action object you dispatched.
4975 + *
4976 + * Note that, if you use a custom middleware, it may wrap `dispatch()` to
4977 + * return something else (for example, a Promise you can await).
4978 + */
4979 +
4980 +
4981 + function dispatch(action) {
4982 + if (!isPlainObject(action)) {
4983 + throw new Error( false ? 0 : "Actions must be plain objects. Instead, the actual type was: '" + kindOf(action) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
4984 + }
4985 +
4986 + if (typeof action.type === 'undefined') {
4987 + throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
4988 + }
4989 +
4990 + if (isDispatching) {
4991 + throw new Error( false ? 0 : 'Reducers may not dispatch actions.');
4992 + }
4993 +
4994 + try {
4995 + isDispatching = true;
4996 + currentState = currentReducer(currentState, action);
4997 + } finally {
4998 + isDispatching = false;
4999 + }
5000 +
5001 + var listeners = currentListeners = nextListeners;
5002 +
5003 + for (var i = 0; i < listeners.length; i++) {
5004 + var listener = listeners[i];
5005 + listener();
5006 + }
5007 +
5008 + return action;
5009 + }
5010 + /**
5011 + * Replaces the reducer currently used by the store to calculate the state.
5012 + *
5013 + * You might need this if your app implements code splitting and you want to
5014 + * load some of the reducers dynamically. You might also need this if you
5015 + * implement a hot reloading mechanism for Redux.
5016 + *
5017 + * @param {Function} nextReducer The reducer for the store to use instead.
5018 + * @returns {void}
5019 + */
5020 +
5021 +
5022 + function replaceReducer(nextReducer) {
5023 + if (typeof nextReducer !== 'function') {
5024 + throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer));
5025 + }
5026 +
5027 + currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
5028 + // Any reducers that existed in both the new and old rootReducer
5029 + // will receive the previous state. This effectively populates
5030 + // the new state tree with any relevant data from the old one.
5031 +
5032 + dispatch({
5033 + type: ActionTypes.REPLACE
5034 + });
5035 + }
5036 + /**
5037 + * Interoperability point for observable/reactive libraries.
5038 + * @returns {observable} A minimal observable of state changes.
5039 + * For more information, see the observable proposal:
5040 + * https://github.com/tc39/proposal-observable
5041 + */
5042 +
5043 +
5044 + function observable() {
5045 + var _ref;
5046 +
5047 + var outerSubscribe = subscribe;
5048 + return _ref = {
5049 + /**
5050 + * The minimal observable subscription method.
5051 + * @param {Object} observer Any object that can be used as an observer.
5052 + * The observer object should have a `next` method.
5053 + * @returns {subscription} An object with an `unsubscribe` method that can
5054 + * be used to unsubscribe the observable from the store, and prevent further
5055 + * emission of values from the observable.
5056 + */
5057 + subscribe: function subscribe(observer) {
5058 + if (typeof observer !== 'object' || observer === null) {
5059 + throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'");
5060 + }
5061 +
5062 + function observeState() {
5063 + if (observer.next) {
5064 + observer.next(getState());
5065 + }
5066 + }
5067 +
5068 + observeState();
5069 + var unsubscribe = outerSubscribe(observeState);
5070 + return {
5071 + unsubscribe: unsubscribe
5072 + };
5073 + }
5074 + }, _ref[$$observable] = function () {
5075 + return this;
5076 + }, _ref;
5077 + } // When a store is created, an "INIT" action is dispatched so that every
5078 + // reducer returns their initial state. This effectively populates
5079 + // the initial state tree.
5080 +
5081 +
5082 + dispatch({
5083 + type: ActionTypes.INIT
5084 + });
5085 + return _ref2 = {
5086 + dispatch: dispatch,
5087 + subscribe: subscribe,
5088 + getState: getState,
5089 + replaceReducer: replaceReducer
5090 + }, _ref2[$$observable] = observable, _ref2;
5091 +}
5092 +/**
5093 + * Creates a Redux store that holds the state tree.
5094 + *
5095 + * **We recommend using `configureStore` from the
5096 + * `@reduxjs/toolkit` package**, which replaces `createStore`:
5097 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
5098 + *
5099 + * The only way to change the data in the store is to call `dispatch()` on it.
5100 + *
5101 + * There should only be a single store in your app. To specify how different
5102 + * parts of the state tree respond to actions, you may combine several reducers
5103 + * into a single reducer function by using `combineReducers`.
5104 + *
5105 + * @param {Function} reducer A function that returns the next state tree, given
5106 + * the current state tree and the action to handle.
5107 + *
5108 + * @param {any} [preloadedState] The initial state. You may optionally specify it
5109 + * to hydrate the state from the server in universal apps, or to restore a
5110 + * previously serialized user session.
5111 + * If you use `combineReducers` to produce the root reducer function, this must be
5112 + * an object with the same shape as `combineReducers` keys.
5113 + *
5114 + * @param {Function} [enhancer] The store enhancer. You may optionally specify it
5115 + * to enhance the store with third-party capabilities such as middleware,
5116 + * time travel, persistence, etc. The only store enhancer that ships with Redux
5117 + * is `applyMiddleware()`.
5118 + *
5119 + * @returns {Store} A Redux store that lets you read the state, dispatch actions
5120 + * and subscribe to changes.
5121 + */
5122 +
5123 +var legacy_createStore = createStore;
5124 +
5125 +/**
5126 + * Prints a warning in the console if it exists.
5127 + *
5128 + * @param {String} message The warning message.
5129 + * @returns {void}
5130 + */
5131 +function warning(message) {
5132 + /* eslint-disable no-console */
5133 + if (typeof console !== 'undefined' && typeof console.error === 'function') {
5134 + console.error(message);
5135 + }
5136 + /* eslint-enable no-console */
5137 +
5138 +
5139 + try {
5140 + // This error was thrown as a convenience so that if you enable
5141 + // "break on all exceptions" in your console,
5142 + // it would pause the execution at this line.
5143 + throw new Error(message);
5144 + } catch (e) {} // eslint-disable-line no-empty
5145 +
5146 +}
5147 +
5148 +function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
5149 + var reducerKeys = Object.keys(reducers);
5150 + var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
5151 +
5152 + if (reducerKeys.length === 0) {
5153 + return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
5154 + }
5155 +
5156 + if (!isPlainObject(inputState)) {
5157 + return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
5158 + }
5159 +
5160 + var unexpectedKeys = Object.keys(inputState).filter(function (key) {
5161 + return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
5162 + });
5163 + unexpectedKeys.forEach(function (key) {
5164 + unexpectedKeyCache[key] = true;
5165 + });
5166 + if (action && action.type === ActionTypes.REPLACE) return;
5167 +
5168 + if (unexpectedKeys.length > 0) {
5169 + return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored.");
5170 + }
5171 +}
5172 +
5173 +function assertReducerShape(reducers) {
5174 + Object.keys(reducers).forEach(function (key) {
5175 + var reducer = reducers[key];
5176 + var initialState = reducer(undefined, {
5177 + type: ActionTypes.INIT
5178 + });
5179 +
5180 + if (typeof initialState === 'undefined') {
5181 + throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
5182 + }
5183 +
5184 + if (typeof reducer(undefined, {
5185 + type: ActionTypes.PROBE_UNKNOWN_ACTION()
5186 + }) === 'undefined') {
5187 + throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle '" + ActionTypes.INIT + "' or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
5188 + }
5189 + });
5190 +}
5191 +/**
5192 + * Turns an object whose values are different reducer functions, into a single
5193 + * reducer function. It will call every child reducer, and gather their results
5194 + * into a single state object, whose keys correspond to the keys of the passed
5195 + * reducer functions.
5196 + *
5197 + * @param {Object} reducers An object whose values correspond to different
5198 + * reducer functions that need to be combined into one. One handy way to obtain
5199 + * it is to use ES6 `import * as reducers` syntax. The reducers may never return
5200 + * undefined for any action. Instead, they should return their initial state
5201 + * if the state passed to them was undefined, and the current state for any
5202 + * unrecognized action.
5203 + *
5204 + * @returns {Function} A reducer function that invokes every reducer inside the
5205 + * passed object, and builds a state object with the same shape.
5206 + */
5207 +
5208 +
5209 +function combineReducers(reducers) {
5210 + var reducerKeys = Object.keys(reducers);
5211 + var finalReducers = {};
5212 +
5213 + for (var i = 0; i < reducerKeys.length; i++) {
5214 + var key = reducerKeys[i];
5215 +
5216 + if (true) {
5217 + if (typeof reducers[key] === 'undefined') {
5218 + warning("No reducer provided for key \"" + key + "\"");
5219 + }
5220 + }
5221 +
5222 + if (typeof reducers[key] === 'function') {
5223 + finalReducers[key] = reducers[key];
5224 + }
5225 + }
5226 +
5227 + var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
5228 + // keys multiple times.
5229 +
5230 + var unexpectedKeyCache;
5231 +
5232 + if (true) {
5233 + unexpectedKeyCache = {};
5234 + }
5235 +
5236 + var shapeAssertionError;
5237 +
5238 + try {
5239 + assertReducerShape(finalReducers);
5240 + } catch (e) {
5241 + shapeAssertionError = e;
5242 + }
5243 +
5244 + return function combination(state, action) {
5245 + if (state === void 0) {
5246 + state = {};
5247 + }
5248 +
5249 + if (shapeAssertionError) {
5250 + throw shapeAssertionError;
5251 + }
5252 +
5253 + if (true) {
5254 + var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
5255 +
5256 + if (warningMessage) {
5257 + warning(warningMessage);
5258 + }
5259 + }
5260 +
5261 + var hasChanged = false;
5262 + var nextState = {};
5263 +
5264 + for (var _i = 0; _i < finalReducerKeys.length; _i++) {
5265 + var _key = finalReducerKeys[_i];
5266 + var reducer = finalReducers[_key];
5267 + var previousStateForKey = state[_key];
5268 + var nextStateForKey = reducer(previousStateForKey, action);
5269 +
5270 + if (typeof nextStateForKey === 'undefined') {
5271 + var actionType = action && action.type;
5272 + throw new Error( false ? 0 : "When called with an action of type " + (actionType ? "\"" + String(actionType) + "\"" : '(unknown type)') + ", the slice reducer for key \"" + _key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.");
5273 + }
5274 +
5275 + nextState[_key] = nextStateForKey;
5276 + hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
5277 + }
5278 +
5279 + hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
5280 + return hasChanged ? nextState : state;
5281 + };
5282 +}
5283 +
5284 +function bindActionCreator(actionCreator, dispatch) {
5285 + return function () {
5286 + return dispatch(actionCreator.apply(this, arguments));
5287 + };
5288 +}
5289 +/**
5290 + * Turns an object whose values are action creators, into an object with the
5291 + * same keys, but with every function wrapped into a `dispatch` call so they
5292 + * may be invoked directly. This is just a convenience method, as you can call
5293 + * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
5294 + *
5295 + * For convenience, you can also pass an action creator as the first argument,
5296 + * and get a dispatch wrapped function in return.
5297 + *
5298 + * @param {Function|Object} actionCreators An object whose values are action
5299 + * creator functions. One handy way to obtain it is to use ES6 `import * as`
5300 + * syntax. You may also pass a single function.
5301 + *
5302 + * @param {Function} dispatch The `dispatch` function available on your Redux
5303 + * store.
5304 + *
5305 + * @returns {Function|Object} The object mimicking the original object, but with
5306 + * every action creator wrapped into the `dispatch` call. If you passed a
5307 + * function as `actionCreators`, the return value will also be a single
5308 + * function.
5309 + */
5310 +
5311 +
5312 +function bindActionCreators(actionCreators, dispatch) {
5313 + if (typeof actionCreators === 'function') {
5314 + return bindActionCreator(actionCreators, dispatch);
5315 + }
5316 +
5317 + if (typeof actionCreators !== 'object' || actionCreators === null) {
5318 + throw new Error( false ? 0 : "bindActionCreators expected an object or a function, but instead received: '" + kindOf(actionCreators) + "'. " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
5319 + }
5320 +
5321 + var boundActionCreators = {};
5322 +
5323 + for (var key in actionCreators) {
5324 + var actionCreator = actionCreators[key];
5325 +
5326 + if (typeof actionCreator === 'function') {
5327 + boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
5328 + }
5329 + }
5330 +
5331 + return boundActionCreators;
5332 +}
5333 +
5334 +/**
5335 + * Composes single-argument functions from right to left. The rightmost
5336 + * function can take multiple arguments as it provides the signature for
5337 + * the resulting composite function.
5338 + *
5339 + * @param {...Function} funcs The functions to compose.
5340 + * @returns {Function} A function obtained by composing the argument functions
5341 + * from right to left. For example, compose(f, g, h) is identical to doing
5342 + * (...args) => f(g(h(...args))).
5343 + */
5344 +function compose() {
5345 + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
5346 + funcs[_key] = arguments[_key];
5347 + }
5348 +
5349 + if (funcs.length === 0) {
5350 + return function (arg) {
5351 + return arg;
5352 + };
5353 + }
5354 +
5355 + if (funcs.length === 1) {
5356 + return funcs[0];
5357 + }
5358 +
5359 + return funcs.reduce(function (a, b) {
5360 + return function () {
5361 + return a(b.apply(void 0, arguments));
5362 + };
5363 + });
5364 +}
5365 +
5366 +/**
5367 + * Creates a store enhancer that applies middleware to the dispatch method
5368 + * of the Redux store. This is handy for a variety of tasks, such as expressing
5369 + * asynchronous actions in a concise manner, or logging every action payload.
5370 + *
5371 + * See `redux-thunk` package as an example of the Redux middleware.
5372 + *
5373 + * Because middleware is potentially asynchronous, this should be the first
5374 + * store enhancer in the composition chain.
5375 + *
5376 + * Note that each middleware will be given the `dispatch` and `getState` functions
5377 + * as named arguments.
5378 + *
5379 + * @param {...Function} middlewares The middleware chain to be applied.
5380 + * @returns {Function} A store enhancer applying the middleware.
5381 + */
5382 +
5383 +function applyMiddleware() {
5384 + for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
5385 + middlewares[_key] = arguments[_key];
5386 + }
5387 +
5388 + return function (createStore) {
5389 + return function () {
5390 + var store = createStore.apply(void 0, arguments);
5391 +
5392 + var _dispatch = function dispatch() {
5393 + throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
5394 + };
5395 +
5396 + var middlewareAPI = {
5397 + getState: store.getState,
5398 + dispatch: function dispatch() {
5399 + return _dispatch.apply(void 0, arguments);
5400 + }
5401 + };
5402 + var chain = middlewares.map(function (middleware) {
5403 + return middleware(middlewareAPI);
5404 + });
5405 + _dispatch = compose.apply(void 0, chain)(store.dispatch);
5406 + return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, store), {}, {
5407 + dispatch: _dispatch
5408 + });
5409 + };
5410 + };
5411 +}
5412 +
5413 +
5414 +
5415 +
5416 +/***/ }),
5417 +
5418 +/***/ "../node_modules/reselect/es/defaultMemoize.js":
5419 +/*!*****************************************************!*\
5420 + !*** ../node_modules/reselect/es/defaultMemoize.js ***!
5421 + \*****************************************************/
5422 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5423 +
5424 +"use strict";
5425 +__webpack_require__.r(__webpack_exports__);
5426 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5427 +/* harmony export */ createCacheKeyComparator: () => (/* binding */ createCacheKeyComparator),
5428 +/* harmony export */ defaultEqualityCheck: () => (/* binding */ defaultEqualityCheck),
5429 +/* harmony export */ defaultMemoize: () => (/* binding */ defaultMemoize)
5430 +/* harmony export */ });
5431 +// Cache implementation based on Erik Rasmussen's `lru-memoize`:
5432 +// https://github.com/erikras/lru-memoize
5433 +var NOT_FOUND = 'NOT_FOUND';
5434 +
5435 +function createSingletonCache(equals) {
5436 + var entry;
5437 + return {
5438 + get: function get(key) {
5439 + if (entry && equals(entry.key, key)) {
5440 + return entry.value;
5441 + }
5442 +
5443 + return NOT_FOUND;
5444 + },
5445 + put: function put(key, value) {
5446 + entry = {
5447 + key: key,
5448 + value: value
5449 + };
5450 + },
5451 + getEntries: function getEntries() {
5452 + return entry ? [entry] : [];
5453 + },
5454 + clear: function clear() {
5455 + entry = undefined;
5456 + }
5457 + };
5458 +}
5459 +
5460 +function createLruCache(maxSize, equals) {
5461 + var entries = [];
5462 +
5463 + function get(key) {
5464 + var cacheIndex = entries.findIndex(function (entry) {
5465 + return equals(key, entry.key);
5466 + }); // We found a cached entry
5467 +
5468 + if (cacheIndex > -1) {
5469 + var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top
5470 +
5471 + if (cacheIndex > 0) {
5472 + entries.splice(cacheIndex, 1);
5473 + entries.unshift(entry);
5474 + }
5475 +
5476 + return entry.value;
5477 + } // No entry found in cache, return sentinel
5478 +
5479 +
5480 + return NOT_FOUND;
5481 + }
5482 +
5483 + function put(key, value) {
5484 + if (get(key) === NOT_FOUND) {
5485 + // TODO Is unshift slow?
5486 + entries.unshift({
5487 + key: key,
5488 + value: value
5489 + });
5490 +
5491 + if (entries.length > maxSize) {
5492 + entries.pop();
5493 + }
5494 + }
5495 + }
5496 +
5497 + function getEntries() {
5498 + return entries;
5499 + }
5500 +
5501 + function clear() {
5502 + entries = [];
5503 + }
5504 +
5505 + return {
5506 + get: get,
5507 + put: put,
5508 + getEntries: getEntries,
5509 + clear: clear
5510 + };
5511 +}
5512 +
5513 +var defaultEqualityCheck = function defaultEqualityCheck(a, b) {
5514 + return a === b;
5515 +};
5516 +function createCacheKeyComparator(equalityCheck) {
5517 + return function areArgumentsShallowlyEqual(prev, next) {
5518 + if (prev === null || next === null || prev.length !== next.length) {
5519 + return false;
5520 + } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
5521 +
5522 +
5523 + var length = prev.length;
5524 +
5525 + for (var i = 0; i < length; i++) {
5526 + if (!equalityCheck(prev[i], next[i])) {
5527 + return false;
5528 + }
5529 + }
5530 +
5531 + return true;
5532 + };
5533 +}
5534 +// defaultMemoize now supports a configurable cache size with LRU behavior,
5535 +// and optional comparison of the result value with existing values
5536 +function defaultMemoize(func, equalityCheckOrOptions) {
5537 + var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : {
5538 + equalityCheck: equalityCheckOrOptions
5539 + };
5540 + var _providedOptions$equa = providedOptions.equalityCheck,
5541 + equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa,
5542 + _providedOptions$maxS = providedOptions.maxSize,
5543 + maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS,
5544 + resultEqualityCheck = providedOptions.resultEqualityCheck;
5545 + var comparator = createCacheKeyComparator(equalityCheck);
5546 + var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons
5547 +
5548 + function memoized() {
5549 + var value = cache.get(arguments);
5550 +
5551 + if (value === NOT_FOUND) {
5552 + // @ts-ignore
5553 + value = func.apply(null, arguments);
5554 +
5555 + if (resultEqualityCheck) {
5556 + var entries = cache.getEntries();
5557 + var matchingEntry = entries.find(function (entry) {
5558 + return resultEqualityCheck(entry.value, value);
5559 + });
5560 +
5561 + if (matchingEntry) {
5562 + value = matchingEntry.value;
5563 + }
5564 + }
5565 +
5566 + cache.put(arguments, value);
5567 + }
5568 +
5569 + return value;
5570 + }
5571 +
5572 + memoized.clearCache = function () {
5573 + return cache.clear();
5574 + };
5575 +
5576 + return memoized;
5577 +}
5578 +
5579 +/***/ }),
5580 +
5581 +/***/ "../node_modules/reselect/es/index.js":
5582 +/*!********************************************!*\
5583 + !*** ../node_modules/reselect/es/index.js ***!
5584 + \********************************************/
5585 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5586 +
5587 +"use strict";
5588 +__webpack_require__.r(__webpack_exports__);
5589 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5590 +/* harmony export */ createSelector: () => (/* binding */ createSelector),
5591 +/* harmony export */ createSelectorCreator: () => (/* binding */ createSelectorCreator),
5592 +/* harmony export */ createStructuredSelector: () => (/* binding */ createStructuredSelector),
5593 +/* harmony export */ defaultEqualityCheck: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultEqualityCheck),
5594 +/* harmony export */ defaultMemoize: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize)
5595 +/* harmony export */ });
5596 +/* harmony import */ var _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultMemoize */ "../node_modules/reselect/es/defaultMemoize.js");
5597 +
5598 +
5599 +
5600 +function getDependencies(funcs) {
5601 + var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;
5602 +
5603 + if (!dependencies.every(function (dep) {
5604 + return typeof dep === 'function';
5605 + })) {
5606 + var dependencyTypes = dependencies.map(function (dep) {
5607 + return typeof dep === 'function' ? "function " + (dep.name || 'unnamed') + "()" : typeof dep;
5608 + }).join(', ');
5609 + throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]");
5610 + }
5611 +
5612 + return dependencies;
5613 +}
5614 +
5615 +function createSelectorCreator(memoize) {
5616 + for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
5617 + memoizeOptionsFromArgs[_key - 1] = arguments[_key];
5618 + }
5619 +
5620 + var createSelector = function createSelector() {
5621 + for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5622 + funcs[_key2] = arguments[_key2];
5623 + }
5624 +
5625 + var _recomputations = 0;
5626 +
5627 + var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`.
5628 + // So, start by declaring the default value here.
5629 + // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.)
5630 +
5631 +
5632 + var directlyPassedOptions = {
5633 + memoizeOptions: undefined
5634 + }; // Normally, the result func or "output selector" is the last arg
5635 +
5636 + var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object
5637 +
5638 + if (typeof resultFunc === 'object') {
5639 + directlyPassedOptions = resultFunc; // and pop the real result func off
5640 +
5641 + resultFunc = funcs.pop();
5642 + }
5643 +
5644 + if (typeof resultFunc !== 'function') {
5645 + throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]");
5646 + } // Determine which set of options we're using. Prefer options passed directly,
5647 + // but fall back to options given to createSelectorCreator.
5648 +
5649 +
5650 + var _directlyPassedOption = directlyPassedOptions,
5651 + _directlyPassedOption2 = _directlyPassedOption.memoizeOptions,
5652 + memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer
5653 + // is an array. In most libs I've looked at, it's an equality function or options object.
5654 + // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full
5655 + // user-provided array of options. Otherwise, it must be just the _first_ arg, and so
5656 + // we wrap it in an array so we can apply it.
5657 +
5658 + var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions];
5659 + var dependencies = getDependencies(funcs);
5660 + var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() {
5661 + _recomputations++; // apply arguments instead of spreading for performance.
5662 +
5663 + return resultFunc.apply(null, arguments);
5664 + }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.
5665 +
5666 + var selector = memoize(function dependenciesChecker() {
5667 + var params = [];
5668 + var length = dependencies.length;
5669 +
5670 + for (var i = 0; i < length; i++) {
5671 + // apply arguments instead of spreading and mutate a local list of params for performance.
5672 + // @ts-ignore
5673 + params.push(dependencies[i].apply(null, arguments));
5674 + } // apply arguments instead of spreading for performance.
5675 +
5676 +
5677 + _lastResult = memoizedResultFunc.apply(null, params);
5678 + return _lastResult;
5679 + });
5680 + Object.assign(selector, {
5681 + resultFunc: resultFunc,
5682 + memoizedResultFunc: memoizedResultFunc,
5683 + dependencies: dependencies,
5684 + lastResult: function lastResult() {
5685 + return _lastResult;
5686 + },
5687 + recomputations: function recomputations() {
5688 + return _recomputations;
5689 + },
5690 + resetRecomputations: function resetRecomputations() {
5691 + return _recomputations = 0;
5692 + }
5693 + });
5694 + return selector;
5695 + }; // @ts-ignore
5696 +
5697 +
5698 + return createSelector;
5699 +}
5700 +var createSelector = /* #__PURE__ */createSelectorCreator(_defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize);
5701 +// Manual definition of state and output arguments
5702 +var createStructuredSelector = function createStructuredSelector(selectors, selectorCreator) {
5703 + if (selectorCreator === void 0) {
5704 + selectorCreator = createSelector;
5705 + }
5706 +
5707 + if (typeof selectors !== 'object') {
5708 + throw new Error('createStructuredSelector expects first argument to be an object ' + ("where each property is a selector, instead received a " + typeof selectors));
5709 + }
5710 +
5711 + var objectKeys = Object.keys(selectors);
5712 + var resultSelector = selectorCreator( // @ts-ignore
5713 + objectKeys.map(function (key) {
5714 + return selectors[key];
5715 + }), function () {
5716 + for (var _len3 = arguments.length, values = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
5717 + values[_key3] = arguments[_key3];
5718 + }
5719 +
5720 + return values.reduce(function (composition, value, index) {
5721 + composition[objectKeys[index]] = value;
5722 + return composition;
5723 + }, {});
5724 + });
5725 + return resultSelector;
5726 +};
5727 +
2392 5728 /***/ })
2393 5729
2394 5730 /******/ });
2395 5731 /************************************************************************/
@@ -2415,8 +5751,49 @@
2415 5751 /******/
2416 5752 /******/ // Return the exports of the module
2417 5753 /******/ return module.exports;
2418 5754 /******/ }
5755 +/******/
5756 +/************************************************************************/
5757 +/******/ /* webpack/runtime/define property getters */
5758 +/******/ (() => {
5759 +/******/ // define getter functions for harmony exports
5760 +/******/ __webpack_require__.d = (exports, definition) => {
5761 +/******/ for(var key in definition) {
5762 +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
5763 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
5764 +/******/ }
5765 +/******/ }
5766 +/******/ };
5767 +/******/ })();
5768 +/******/
5769 +/******/ /* webpack/runtime/global */
5770 +/******/ (() => {
5771 +/******/ __webpack_require__.g = (function() {
5772 +/******/ if (typeof globalThis === 'object') return globalThis;
5773 +/******/ try {
5774 +/******/ return this || new Function('return this')();
5775 +/******/ } catch (e) {
5776 +/******/ if (typeof window === 'object') return window;
5777 +/******/ }
5778 +/******/ })();
5779 +/******/ })();
5780 +/******/
5781 +/******/ /* webpack/runtime/hasOwnProperty shorthand */
5782 +/******/ (() => {
5783 +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
5784 +/******/ })();
5785 +/******/
5786 +/******/ /* webpack/runtime/make namespace object */
5787 +/******/ (() => {
5788 +/******/ // define __esModule on exports
5789 +/******/ __webpack_require__.r = (exports) => {
5790 +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
5791 +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5792 +/******/ }
5793 +/******/ Object.defineProperty(exports, '__esModule', { value: true });
5794 +/******/ };
5795 +/******/ })();
2419 5796 /******/
2420 5797 /************************************************************************/
2421 5798 var __webpack_exports__ = {};
2422 5799 // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.