PluginProbe
Elementor Website Builder – more than just a page builder / 3.28.0-dev2
Elementor Website Builder – more than just a page builder v3.28.0-dev2
4.3.1 4.3.0 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 All 454 releases
← All changes | assets/js/app-loader.js +5799 -1807 4.3.0-beta3 → 3.28.0-dev2 View file →
@@ -1,1852 +1,5844 @@
1 -(function(_reduxjs_toolkit) {
1 +/*! elementor - v3.28.0 - 10-03-2025 */
2 +/******/ (() => { // webpackBootstrap
3 +/******/ var __webpack_modules__ = ({
2 4
3 -//#region \0rolldown/runtime.js
4 - var __create = Object.create;
5 - var __defProp = Object.defineProperty;
6 - var __name = (target, value) => __defProp(target, "name", {
7 - value,
8 - configurable: true
9 - });
10 - var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11 - var __getOwnPropNames = Object.getOwnPropertyNames;
12 - var __getProtoOf = Object.getPrototypeOf;
13 - var __hasOwnProp = Object.prototype.hasOwnProperty;
14 - var __esmMin = (fn, res, err) => () => {
15 - if (err) throw err[0];
16 - try {
17 - return fn && (res = fn(fn = 0)), res;
18 - } catch (e) {
19 - throw err = [e], e;
20 - }
21 - };
22 - var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
23 - var __exportAll = (all, no_symbols) => {
24 - let target = {};
25 - for (var name in all) {
26 - __defProp(target, name, {
27 - get: all[name],
28 - enumerable: true
29 - });
30 - }
31 - if (!no_symbols) {
32 - __defProp(target, Symbol.toStringTag, { value: "Module" });
33 - }
34 - return target;
35 - };
36 - var __copyProps = (to, from, except, desc) => {
37 - if (from && typeof from === "object" || typeof from === "function") {
38 - for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
39 - key = keys[i];
40 - if (!__hasOwnProp.call(to, key) && key !== except) {
41 - __defProp(to, key, {
42 - get: ((k) => from[k]).bind(null, key),
43 - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
44 - });
45 - }
46 - }
47 - }
48 - return to;
49 - };
50 - var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
51 - value: mod,
52 - enumerable: true
53 - }) : target, mod));
5 +/***/ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js":
6 +/*!******************************************************************!*\
7 + !*** ../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js ***!
8 + \******************************************************************/
9 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
54 10
55 -//#endregion
11 +"use strict";
12 +__webpack_require__.r(__webpack_exports__);
13 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
14 +/* harmony export */ EnhancerArray: () => (/* binding */ EnhancerArray),
15 +/* harmony export */ MiddlewareArray: () => (/* binding */ MiddlewareArray),
16 +/* harmony export */ SHOULD_AUTOBATCH: () => (/* binding */ SHOULD_AUTOBATCH),
17 +/* harmony export */ TaskAbortError: () => (/* binding */ TaskAbortError),
18 +/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.__DO_NOT_USE__ActionTypes),
19 +/* harmony export */ addListener: () => (/* binding */ addListener),
20 +/* harmony export */ applyMiddleware: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware),
21 +/* harmony export */ autoBatchEnhancer: () => (/* binding */ autoBatchEnhancer),
22 +/* harmony export */ bindActionCreators: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.bindActionCreators),
23 +/* harmony export */ clearAllListeners: () => (/* binding */ clearAllListeners),
24 +/* harmony export */ combineReducers: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers),
25 +/* harmony export */ compose: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.compose),
26 +/* harmony export */ configureStore: () => (/* binding */ configureStore),
27 +/* harmony export */ createAction: () => (/* binding */ createAction),
28 +/* harmony export */ createActionCreatorInvariantMiddleware: () => (/* binding */ createActionCreatorInvariantMiddleware),
29 +/* harmony export */ createAsyncThunk: () => (/* binding */ createAsyncThunk),
30 +/* harmony export */ createDraftSafeSelector: () => (/* binding */ createDraftSafeSelector),
31 +/* harmony export */ createEntityAdapter: () => (/* binding */ createEntityAdapter),
32 +/* harmony export */ createImmutableStateInvariantMiddleware: () => (/* binding */ createImmutableStateInvariantMiddleware),
33 +/* harmony export */ createListenerMiddleware: () => (/* binding */ createListenerMiddleware),
34 +/* harmony export */ createNextState: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__["default"]),
35 +/* harmony export */ createReducer: () => (/* binding */ createReducer),
36 +/* harmony export */ createSelector: () => (/* reexport safe */ reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector),
37 +/* harmony export */ createSerializableStateInvariantMiddleware: () => (/* binding */ createSerializableStateInvariantMiddleware),
38 +/* harmony export */ createSlice: () => (/* binding */ createSlice),
39 +/* harmony export */ createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.createStore),
40 +/* harmony export */ current: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.current),
41 +/* harmony export */ findNonSerializableValue: () => (/* binding */ findNonSerializableValue),
42 +/* harmony export */ freeze: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.freeze),
43 +/* harmony export */ getDefaultMiddleware: () => (/* binding */ getDefaultMiddleware),
44 +/* harmony export */ getType: () => (/* binding */ getType),
45 +/* harmony export */ isAction: () => (/* binding */ isAction),
46 +/* harmony export */ isActionCreator: () => (/* binding */ isActionCreator),
47 +/* harmony export */ isAllOf: () => (/* binding */ isAllOf),
48 +/* harmony export */ isAnyOf: () => (/* binding */ isAnyOf),
49 +/* harmony export */ isAsyncThunkAction: () => (/* binding */ isAsyncThunkAction),
50 +/* harmony export */ isDraft: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.isDraft),
51 +/* harmony export */ isFluxStandardAction: () => (/* binding */ isFSA),
52 +/* harmony export */ isFulfilled: () => (/* binding */ isFulfilled),
53 +/* harmony export */ isImmutableDefault: () => (/* binding */ isImmutableDefault),
54 +/* harmony export */ isPending: () => (/* binding */ isPending),
55 +/* harmony export */ isPlain: () => (/* binding */ isPlain),
56 +/* harmony export */ isPlainObject: () => (/* binding */ isPlainObject),
57 +/* harmony export */ isRejected: () => (/* binding */ isRejected),
58 +/* harmony export */ isRejectedWithValue: () => (/* binding */ isRejectedWithValue),
59 +/* harmony export */ legacy_createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.legacy_createStore),
60 +/* harmony export */ miniSerializeError: () => (/* binding */ miniSerializeError),
61 +/* harmony export */ nanoid: () => (/* binding */ nanoid),
62 +/* harmony export */ original: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.original),
63 +/* harmony export */ prepareAutoBatched: () => (/* binding */ prepareAutoBatched),
64 +/* harmony export */ removeListener: () => (/* binding */ removeListener),
65 +/* harmony export */ unwrapResult: () => (/* binding */ unwrapResult)
66 +/* harmony export */ });
67 +/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! immer */ "../node_modules/immer/dist/immer.esm.mjs");
68 +/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "../node_modules/redux/es/redux.js");
69 +/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reselect */ "../node_modules/reselect/es/index.js");
70 +/* harmony import */ var redux_thunk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-thunk */ "../node_modules/redux-thunk/es/index.js");
71 +var __extends = (undefined && undefined.__extends) || (function () {
72 + var extendStatics = function (d, b) {
73 + extendStatics = Object.setPrototypeOf ||
74 + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
75 + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
76 + return extendStatics(d, b);
77 + };
78 + return function (d, b) {
79 + if (typeof b !== "function" && b !== null)
80 + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
81 + extendStatics(d, b);
82 + function __() { this.constructor = d; }
83 + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
84 + };
85 +})();
86 +var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
87 + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
88 + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
89 + function verb(n) { return function (v) { return step([n, v]); }; }
90 + function step(op) {
91 + if (f) throw new TypeError("Generator is already executing.");
92 + while (_) try {
93 + 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;
94 + if (y = 0, t) op = [op[0] & 2, t.value];
95 + switch (op[0]) {
96 + case 0: case 1: t = op; break;
97 + case 4: _.label++; return { value: op[1], done: false };
98 + case 5: _.label++; y = op[1]; op = [0]; continue;
99 + case 7: op = _.ops.pop(); _.trys.pop(); continue;
100 + default:
101 + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
102 + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
103 + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
104 + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
105 + if (t[2]) _.ops.pop();
106 + _.trys.pop(); continue;
107 + }
108 + op = body.call(thisArg, _);
109 + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
110 + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
111 + }
112 +};
113 +var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) {
114 + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
115 + to[j] = from[i];
116 + return to;
117 +};
118 +var __defProp = Object.defineProperty;
119 +var __defProps = Object.defineProperties;
120 +var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
121 +var __getOwnPropSymbols = Object.getOwnPropertySymbols;
122 +var __hasOwnProp = Object.prototype.hasOwnProperty;
123 +var __propIsEnum = Object.prototype.propertyIsEnumerable;
124 +var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; };
125 +var __spreadValues = function (a, b) {
126 + for (var prop in b || (b = {}))
127 + if (__hasOwnProp.call(b, prop))
128 + __defNormalProp(a, prop, b[prop]);
129 + if (__getOwnPropSymbols)
130 + for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {
131 + var prop = _c[_i];
132 + if (__propIsEnum.call(b, prop))
133 + __defNormalProp(a, prop, b[prop]);
134 + }
135 + return a;
136 +};
137 +var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); };
138 +var __async = function (__this, __arguments, generator) {
139 + return new Promise(function (resolve, reject) {
140 + var fulfilled = function (value) {
141 + try {
142 + step(generator.next(value));
143 + }
144 + catch (e) {
145 + reject(e);
146 + }
147 + };
148 + var rejected = function (value) {
149 + try {
150 + step(generator.throw(value));
151 + }
152 + catch (e) {
153 + reject(e);
154 + }
155 + };
156 + var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); };
157 + step((generator = generator.apply(__this, __arguments)).next());
158 + });
159 +};
160 +// src/index.ts
161 +
162 +
163 +
164 +
165 +// src/createDraftSafeSelector.ts
166 +
167 +
168 +var createDraftSafeSelector = function () {
169 + var args = [];
170 + for (var _i = 0; _i < arguments.length; _i++) {
171 + args[_i] = arguments[_i];
172 + }
173 + var selector = reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector.apply(void 0, args);
174 + var wrappedSelector = function (value) {
175 + var rest = [];
176 + for (var _i = 1; _i < arguments.length; _i++) {
177 + rest[_i - 1] = arguments[_i];
178 + }
179 + return selector.apply(void 0, __spreadArray([(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(value) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__.current)(value) : value], rest));
180 + };
181 + return wrappedSelector;
182 +};
183 +// src/configureStore.ts
184 +
185 +// src/devtoolsExtension.ts
186 +
187 +var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () {
188 + if (arguments.length === 0)
189 + return void 0;
190 + if (typeof arguments[0] === "object")
191 + return redux__WEBPACK_IMPORTED_MODULE_0__.compose;
192 + return redux__WEBPACK_IMPORTED_MODULE_0__.compose.apply(null, arguments);
193 +};
194 +var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () {
195 + return function (noop2) {
196 + return noop2;
197 + };
198 +};
199 +// src/isPlainObject.ts
200 +function isPlainObject(value) {
201 + if (typeof value !== "object" || value === null)
202 + return false;
203 + var proto = Object.getPrototypeOf(value);
204 + if (proto === null)
205 + return true;
206 + var baseProto = proto;
207 + while (Object.getPrototypeOf(baseProto) !== null) {
208 + baseProto = Object.getPrototypeOf(baseProto);
209 + }
210 + return proto === baseProto;
211 +}
212 +// src/getDefaultMiddleware.ts
213 +
214 +// src/tsHelpers.ts
215 +var hasMatchFunction = function (v) {
216 + return v && typeof v.match === "function";
217 +};
218 +// src/createAction.ts
219 +function createAction(type, prepareAction) {
220 + function actionCreator() {
221 + var args = [];
222 + for (var _i = 0; _i < arguments.length; _i++) {
223 + args[_i] = arguments[_i];
224 + }
225 + if (prepareAction) {
226 + var prepared = prepareAction.apply(void 0, args);
227 + if (!prepared) {
228 + throw new Error("prepareAction did not return an object");
229 + }
230 + return __spreadValues(__spreadValues({
231 + type: type,
232 + payload: prepared.payload
233 + }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error });
234 + }
235 + return { type: type, payload: args[0] };
236 + }
237 + actionCreator.toString = function () { return "" + type; };
238 + actionCreator.type = type;
239 + actionCreator.match = function (action) { return action.type === type; };
240 + return actionCreator;
241 +}
242 +function isAction(action) {
243 + return isPlainObject(action) && "type" in action;
244 +}
245 +function isActionCreator(action) {
246 + return typeof action === "function" && "type" in action && hasMatchFunction(action);
247 +}
248 +function isFSA(action) {
249 + return isAction(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey);
250 +}
251 +function isValidKey(key) {
252 + return ["type", "payload", "error", "meta"].indexOf(key) > -1;
253 +}
254 +function getType(actionCreator) {
255 + return "" + actionCreator;
256 +}
257 +// src/actionCreatorInvariantMiddleware.ts
258 +function getMessage(type) {
259 + var splitType = type ? ("" + type).split("/") : [];
260 + var actionName = splitType[splitType.length - 1] || "actionCreator";
261 + 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.";
262 +}
263 +function createActionCreatorInvariantMiddleware(options) {
264 + if (options === void 0) { options = {}; }
265 + if (false) {}
266 + var _c = options.isActionCreator, isActionCreator2 = _c === void 0 ? isActionCreator : _c;
267 + return function () { return function (next) { return function (action) {
268 + if (isActionCreator2(action)) {
269 + console.warn(getMessage(action.type));
270 + }
271 + return next(action);
272 + }; }; };
273 +}
274 +// src/utils.ts
275 +
276 +function getTimeMeasureUtils(maxDelay, fnName) {
277 + var elapsed = 0;
278 + return {
279 + measureTime: function (fn) {
280 + var started = Date.now();
281 + try {
282 + return fn();
283 + }
284 + finally {
285 + var finished = Date.now();
286 + elapsed += finished - started;
287 + }
288 + },
289 + warnIfExceeded: function () {
290 + if (elapsed > maxDelay) {
291 + 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.");
292 + }
293 + }
294 + };
295 +}
296 +var MiddlewareArray = /** @class */ (function (_super) {
297 + __extends(MiddlewareArray, _super);
298 + function MiddlewareArray() {
299 + var args = [];
300 + for (var _i = 0; _i < arguments.length; _i++) {
301 + args[_i] = arguments[_i];
302 + }
303 + var _this = _super.apply(this, args) || this;
304 + Object.setPrototypeOf(_this, MiddlewareArray.prototype);
305 + return _this;
306 + }
307 + Object.defineProperty(MiddlewareArray, Symbol.species, {
308 + get: function () {
309 + return MiddlewareArray;
310 + },
311 + enumerable: false,
312 + configurable: true
313 + });
314 + MiddlewareArray.prototype.concat = function () {
315 + var arr = [];
316 + for (var _i = 0; _i < arguments.length; _i++) {
317 + arr[_i] = arguments[_i];
318 + }
319 + return _super.prototype.concat.apply(this, arr);
320 + };
321 + MiddlewareArray.prototype.prepend = function () {
322 + var arr = [];
323 + for (var _i = 0; _i < arguments.length; _i++) {
324 + arr[_i] = arguments[_i];
325 + }
326 + if (arr.length === 1 && Array.isArray(arr[0])) {
327 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();
328 + }
329 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();
330 + };
331 + return MiddlewareArray;
332 +}(Array));
333 +var EnhancerArray = /** @class */ (function (_super) {
334 + __extends(EnhancerArray, _super);
335 + function EnhancerArray() {
336 + var args = [];
337 + for (var _i = 0; _i < arguments.length; _i++) {
338 + args[_i] = arguments[_i];
339 + }
340 + var _this = _super.apply(this, args) || this;
341 + Object.setPrototypeOf(_this, EnhancerArray.prototype);
342 + return _this;
343 + }
344 + Object.defineProperty(EnhancerArray, Symbol.species, {
345 + get: function () {
346 + return EnhancerArray;
347 + },
348 + enumerable: false,
349 + configurable: true
350 + });
351 + EnhancerArray.prototype.concat = function () {
352 + var arr = [];
353 + for (var _i = 0; _i < arguments.length; _i++) {
354 + arr[_i] = arguments[_i];
355 + }
356 + return _super.prototype.concat.apply(this, arr);
357 + };
358 + EnhancerArray.prototype.prepend = function () {
359 + var arr = [];
360 + for (var _i = 0; _i < arguments.length; _i++) {
361 + arr[_i] = arguments[_i];
362 + }
363 + if (arr.length === 1 && Array.isArray(arr[0])) {
364 + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))();
365 + }
366 + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))();
367 + };
368 + return EnhancerArray;
369 +}(Array));
370 +function freezeDraftable(val) {
371 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(val) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(val, function () {
372 + }) : val;
373 +}
374 +// src/immutableStateInvariantMiddleware.ts
375 +var isProduction = "development" === "production";
376 +var prefix = "Invariant failed";
377 +function invariant(condition, message) {
378 + if (condition) {
379 + return;
380 + }
381 + if (isProduction) {
382 + throw new Error(prefix);
383 + }
384 + throw new Error(prefix + ": " + (message || ""));
385 +}
386 +function stringify(obj, serializer, indent, decycler) {
387 + return JSON.stringify(obj, getSerialize(serializer, decycler), indent);
388 +}
389 +function getSerialize(serializer, decycler) {
390 + var stack = [], keys = [];
391 + if (!decycler)
392 + decycler = function (_, value) {
393 + if (stack[0] === value)
394 + return "[Circular ~]";
395 + return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
396 + };
397 + return function (key, value) {
398 + if (stack.length > 0) {
399 + var thisPos = stack.indexOf(this);
400 + ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
401 + ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
402 + if (~stack.indexOf(value))
403 + value = decycler.call(this, key, value);
404 + }
405 + else
406 + stack.push(value);
407 + return serializer == null ? value : serializer.call(this, key, value);
408 + };
409 +}
410 +function isImmutableDefault(value) {
411 + return typeof value !== "object" || value == null || Object.isFrozen(value);
412 +}
413 +function trackForMutations(isImmutable, ignorePaths, obj) {
414 + var trackedProperties = trackProperties(isImmutable, ignorePaths, obj);
415 + return {
416 + detectMutations: function () {
417 + return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);
418 + }
419 + };
420 +}
421 +function trackProperties(isImmutable, ignorePaths, obj, path, checkedObjects) {
422 + if (ignorePaths === void 0) { ignorePaths = []; }
423 + if (path === void 0) { path = ""; }
424 + if (checkedObjects === void 0) { checkedObjects = new Set(); }
425 + var tracked = { value: obj };
426 + if (!isImmutable(obj) && !checkedObjects.has(obj)) {
427 + checkedObjects.add(obj);
428 + tracked.children = {};
429 + for (var key in obj) {
430 + var childPath = path ? path + "." + key : key;
431 + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {
432 + continue;
433 + }
434 + tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);
435 + }
436 + }
437 + return tracked;
438 +}
439 +function detectMutations(isImmutable, ignoredPaths, trackedProperty, obj, sameParentRef, path) {
440 + if (ignoredPaths === void 0) { ignoredPaths = []; }
441 + if (sameParentRef === void 0) { sameParentRef = false; }
442 + if (path === void 0) { path = ""; }
443 + var prevObj = trackedProperty ? trackedProperty.value : void 0;
444 + var sameRef = prevObj === obj;
445 + if (sameParentRef && !sameRef && !Number.isNaN(obj)) {
446 + return { wasMutated: true, path: path };
447 + }
448 + if (isImmutable(prevObj) || isImmutable(obj)) {
449 + return { wasMutated: false };
450 + }
451 + var keysToDetect = {};
452 + for (var key in trackedProperty.children) {
453 + keysToDetect[key] = true;
454 + }
455 + for (var key in obj) {
456 + keysToDetect[key] = true;
457 + }
458 + var hasIgnoredPaths = ignoredPaths.length > 0;
459 + var _loop_1 = function (key) {
460 + var nestedPath = path ? path + "." + key : key;
461 + if (hasIgnoredPaths) {
462 + var hasMatches = ignoredPaths.some(function (ignored) {
463 + if (ignored instanceof RegExp) {
464 + return ignored.test(nestedPath);
465 + }
466 + return nestedPath === ignored;
467 + });
468 + if (hasMatches) {
469 + return "continue";
470 + }
471 + }
472 + var result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath);
473 + if (result.wasMutated) {
474 + return { value: result };
475 + }
476 + };
477 + for (var key in keysToDetect) {
478 + var state_1 = _loop_1(key);
479 + if (typeof state_1 === "object")
480 + return state_1.value;
481 + }
482 + return { wasMutated: false };
483 +}
484 +function createImmutableStateInvariantMiddleware(options) {
485 + if (options === void 0) { options = {}; }
486 + if (false) {}
487 + 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;
488 + ignoredPaths = ignoredPaths || ignore;
489 + var track = trackForMutations.bind(null, isImmutable, ignoredPaths);
490 + return function (_c) {
491 + var getState = _c.getState;
492 + var state = getState();
493 + var tracker = track(state);
494 + var result;
495 + return function (next) { return function (action) {
496 + var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware");
497 + measureUtils.measureTime(function () {
498 + state = getState();
499 + result = tracker.detectMutations();
500 + tracker = track(state);
501 + 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)");
502 + });
503 + var dispatchedAction = next(action);
504 + measureUtils.measureTime(function () {
505 + state = getState();
506 + result = tracker.detectMutations();
507 + tracker = track(state);
508 + 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)");
509 + });
510 + measureUtils.warnIfExceeded();
511 + return dispatchedAction;
512 + }; };
513 + };
514 +}
515 +// src/serializableStateInvariantMiddleware.ts
516 +function isPlain(val) {
517 + var type = typeof val;
518 + return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val);
519 +}
520 +function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths, cache) {
521 + if (path === void 0) { path = ""; }
522 + if (isSerializable === void 0) { isSerializable = isPlain; }
523 + if (ignoredPaths === void 0) { ignoredPaths = []; }
524 + var foundNestedSerializable;
525 + if (!isSerializable(value)) {
526 + return {
527 + keyPath: path || "<root>",
528 + value: value
529 + };
530 + }
531 + if (typeof value !== "object" || value === null) {
532 + return false;
533 + }
534 + if (cache == null ? void 0 : cache.has(value))
535 + return false;
536 + var entries = getEntries != null ? getEntries(value) : Object.entries(value);
537 + var hasIgnoredPaths = ignoredPaths.length > 0;
538 + var _loop_2 = function (key, nestedValue) {
539 + var nestedPath = path ? path + "." + key : key;
540 + if (hasIgnoredPaths) {
541 + var hasMatches = ignoredPaths.some(function (ignored) {
542 + if (ignored instanceof RegExp) {
543 + return ignored.test(nestedPath);
544 + }
545 + return nestedPath === ignored;
546 + });
547 + if (hasMatches) {
548 + return "continue";
549 + }
550 + }
551 + if (!isSerializable(nestedValue)) {
552 + return { value: {
553 + keyPath: nestedPath,
554 + value: nestedValue
555 + } };
556 + }
557 + if (typeof nestedValue === "object") {
558 + foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache);
559 + if (foundNestedSerializable) {
560 + return { value: foundNestedSerializable };
561 + }
562 + }
563 + };
564 + for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
565 + var _c = entries_1[_i], key = _c[0], nestedValue = _c[1];
566 + var state_2 = _loop_2(key, nestedValue);
567 + if (typeof state_2 === "object")
568 + return state_2.value;
569 + }
570 + if (cache && isNestedFrozen(value))
571 + cache.add(value);
572 + return false;
573 +}
574 +function isNestedFrozen(value) {
575 + if (!Object.isFrozen(value))
576 + return false;
577 + for (var _i = 0, _c = Object.values(value); _i < _c.length; _i++) {
578 + var nestedValue = _c[_i];
579 + if (typeof nestedValue !== "object" || nestedValue === null)
580 + continue;
581 + if (!isNestedFrozen(nestedValue))
582 + return false;
583 + }
584 + return true;
585 +}
586 +function createSerializableStateInvariantMiddleware(options) {
587 + if (options === void 0) { options = {}; }
588 + if (false) {}
589 + 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;
590 + var cache = !disableCache && WeakSet ? new WeakSet() : void 0;
591 + return function (storeAPI) { return function (next) { return function (action) {
592 + var result = next(action);
593 + var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware");
594 + if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {
595 + measureUtils.measureTime(function () {
596 + var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths, cache);
597 + if (foundActionNonSerializableValue) {
598 + var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value;
599 + 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)");
600 + }
601 + });
602 + }
603 + if (!ignoreState) {
604 + measureUtils.measureTime(function () {
605 + var state = storeAPI.getState();
606 + var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths, cache);
607 + if (foundStateNonSerializableValue) {
608 + var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value;
609 + 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)");
610 + }
611 + });
612 + measureUtils.warnIfExceeded();
613 + }
614 + return result;
615 + }; }; };
616 +}
617 +// src/getDefaultMiddleware.ts
618 +function isBoolean(x) {
619 + return typeof x === "boolean";
620 +}
621 +function curryGetDefaultMiddleware() {
622 + return function curriedGetDefaultMiddleware(options) {
623 + return getDefaultMiddleware(options);
624 + };
625 +}
626 +function getDefaultMiddleware(options) {
627 + if (options === void 0) { options = {}; }
628 + 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;
629 + var middlewareArray = new MiddlewareArray();
630 + if (thunk) {
631 + if (isBoolean(thunk)) {
632 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"]);
633 + }
634 + else {
635 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"].withExtraArgument(thunk.extraArgument));
636 + }
637 + }
638 + if (true) {
639 + if (immutableCheck) {
640 + var immutableOptions = {};
641 + if (!isBoolean(immutableCheck)) {
642 + immutableOptions = immutableCheck;
643 + }
644 + middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));
645 + }
646 + if (serializableCheck) {
647 + var serializableOptions = {};
648 + if (!isBoolean(serializableCheck)) {
649 + serializableOptions = serializableCheck;
650 + }
651 + middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));
652 + }
653 + if (actionCreatorCheck) {
654 + var actionCreatorOptions = {};
655 + if (!isBoolean(actionCreatorCheck)) {
656 + actionCreatorOptions = actionCreatorCheck;
657 + }
658 + middlewareArray.unshift(createActionCreatorInvariantMiddleware(actionCreatorOptions));
659 + }
660 + }
661 + return middlewareArray;
662 +}
663 +// src/configureStore.ts
664 +var IS_PRODUCTION = "development" === "production";
665 +function configureStore(options) {
666 + var curriedGetDefaultMiddleware = curryGetDefaultMiddleware();
667 + 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;
668 + var rootReducer;
669 + if (typeof reducer === "function") {
670 + rootReducer = reducer;
671 + }
672 + else if (isPlainObject(reducer)) {
673 + rootReducer = (0,redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers)(reducer);
674 + }
675 + else {
676 + throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');
677 + }
678 + var finalMiddleware = middleware;
679 + if (typeof finalMiddleware === "function") {
680 + finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware);
681 + if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) {
682 + throw new Error("when using a middleware builder function, an array of middleware must be returned");
683 + }
684 + }
685 + if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) {
686 + throw new Error("each middleware provided to configureStore must be a function");
687 + }
688 + var middlewareEnhancer = redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware.apply(void 0, finalMiddleware);
689 + var finalCompose = redux__WEBPACK_IMPORTED_MODULE_0__.compose;
690 + if (devTools) {
691 + finalCompose = composeWithDevTools(__spreadValues({
692 + trace: !IS_PRODUCTION
693 + }, typeof devTools === "object" && devTools));
694 + }
695 + var defaultEnhancers = new EnhancerArray(middlewareEnhancer);
696 + var storeEnhancers = defaultEnhancers;
697 + if (Array.isArray(enhancers)) {
698 + storeEnhancers = __spreadArray([middlewareEnhancer], enhancers);
699 + }
700 + else if (typeof enhancers === "function") {
701 + storeEnhancers = enhancers(defaultEnhancers);
702 + }
703 + var composedEnhancer = finalCompose.apply(void 0, storeEnhancers);
704 + return (0,redux__WEBPACK_IMPORTED_MODULE_0__.createStore)(rootReducer, preloadedState, composedEnhancer);
705 +}
706 +// src/createReducer.ts
707 +
708 +// src/mapBuilders.ts
709 +function executeReducerBuilderCallback(builderCallback) {
710 + var actionsMap = {};
711 + var actionMatchers = [];
712 + var defaultCaseReducer;
713 + var builder = {
714 + addCase: function (typeOrActionCreator, reducer) {
715 + if (true) {
716 + if (actionMatchers.length > 0) {
717 + throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");
718 + }
719 + if (defaultCaseReducer) {
720 + throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
721 + }
722 + }
723 + var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
724 + if (!type) {
725 + throw new Error("`builder.addCase` cannot be called with an empty action type");
726 + }
727 + if (type in actionsMap) {
728 + throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");
729 + }
730 + actionsMap[type] = reducer;
731 + return builder;
732 + },
733 + addMatcher: function (matcher, reducer) {
734 + if (true) {
735 + if (defaultCaseReducer) {
736 + throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
737 + }
738 + }
739 + actionMatchers.push({ matcher: matcher, reducer: reducer });
740 + return builder;
741 + },
742 + addDefaultCase: function (reducer) {
743 + if (true) {
744 + if (defaultCaseReducer) {
745 + throw new Error("`builder.addDefaultCase` can only be called once");
746 + }
747 + }
748 + defaultCaseReducer = reducer;
749 + return builder;
750 + }
751 + };
752 + builderCallback(builder);
753 + return [actionsMap, actionMatchers, defaultCaseReducer];
754 +}
755 +// src/createReducer.ts
756 +function isStateFunction(x) {
757 + return typeof x === "function";
758 +}
759 +var hasWarnedAboutObjectNotation = false;
760 +function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) {
761 + if (actionMatchers === void 0) { actionMatchers = []; }
762 + if (true) {
763 + if (typeof mapOrBuilderCallback === "object") {
764 + if (!hasWarnedAboutObjectNotation) {
765 + hasWarnedAboutObjectNotation = true;
766 + 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");
767 + }
768 + }
769 + }
770 + var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2];
771 + var getInitialState;
772 + if (isStateFunction(initialState)) {
773 + getInitialState = function () { return freezeDraftable(initialState()); };
774 + }
775 + else {
776 + var frozenInitialState_1 = freezeDraftable(initialState);
777 + getInitialState = function () { return frozenInitialState_1; };
778 + }
779 + function reducer(state, action) {
780 + if (state === void 0) { state = getInitialState(); }
781 + var caseReducers = __spreadArray([
782 + actionsMap[action.type]
783 + ], finalActionMatchers.filter(function (_c) {
784 + var matcher = _c.matcher;
785 + return matcher(action);
786 + }).map(function (_c) {
787 + var reducer2 = _c.reducer;
788 + return reducer2;
789 + }));
790 + if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) {
791 + caseReducers = [finalDefaultCaseReducer];
792 + }
793 + return caseReducers.reduce(function (previousState, caseReducer) {
794 + if (caseReducer) {
795 + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(previousState)) {
796 + var draft = previousState;
797 + var result = caseReducer(draft, action);
798 + if (result === void 0) {
799 + return previousState;
800 + }
801 + return result;
802 + }
803 + else if (!(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(previousState)) {
804 + var result = caseReducer(previousState, action);
805 + if (result === void 0) {
806 + if (previousState === null) {
807 + return previousState;
808 + }
809 + throw Error("A case reducer on a non-draftable value must not return undefined");
810 + }
811 + return result;
812 + }
813 + else {
814 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(previousState, function (draft) {
815 + return caseReducer(draft, action);
816 + });
817 + }
818 + }
819 + return previousState;
820 + }, state);
821 + }
822 + reducer.getInitialState = getInitialState;
823 + return reducer;
824 +}
825 +// src/createSlice.ts
826 +var hasWarnedAboutObjectNotation2 = false;
827 +function getType2(slice, actionKey) {
828 + return slice + "/" + actionKey;
829 +}
830 +function createSlice(options) {
831 + var name = options.name;
832 + if (!name) {
833 + throw new Error("`name` is a required option for createSlice");
834 + }
835 + if (typeof process !== "undefined" && "development" === "development") {
836 + if (options.initialState === void 0) {
837 + console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
838 + }
839 + }
840 + var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState);
841 + var reducers = options.reducers || {};
842 + var reducerNames = Object.keys(reducers);
843 + var sliceCaseReducersByName = {};
844 + var sliceCaseReducersByType = {};
845 + var actionCreators = {};
846 + reducerNames.forEach(function (reducerName) {
847 + var maybeReducerWithPrepare = reducers[reducerName];
848 + var type = getType2(name, reducerName);
849 + var caseReducer;
850 + var prepareCallback;
851 + if ("reducer" in maybeReducerWithPrepare) {
852 + caseReducer = maybeReducerWithPrepare.reducer;
853 + prepareCallback = maybeReducerWithPrepare.prepare;
854 + }
855 + else {
856 + caseReducer = maybeReducerWithPrepare;
857 + }
858 + sliceCaseReducersByName[reducerName] = caseReducer;
859 + sliceCaseReducersByType[type] = caseReducer;
860 + actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);
861 + });
862 + function buildReducer() {
863 + if (true) {
864 + if (typeof options.extraReducers === "object") {
865 + if (!hasWarnedAboutObjectNotation2) {
866 + hasWarnedAboutObjectNotation2 = true;
867 + 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");
868 + }
869 + }
870 + }
871 + 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;
872 + var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType);
873 + return createReducer(initialState, function (builder) {
874 + for (var key in finalCaseReducers) {
875 + builder.addCase(key, finalCaseReducers[key]);
876 + }
877 + for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) {
878 + var m = actionMatchers_1[_i];
879 + builder.addMatcher(m.matcher, m.reducer);
880 + }
881 + if (defaultCaseReducer) {
882 + builder.addDefaultCase(defaultCaseReducer);
883 + }
884 + });
885 + }
886 + var _reducer;
887 + return {
888 + name: name,
889 + reducer: function (state, action) {
890 + if (!_reducer)
891 + _reducer = buildReducer();
892 + return _reducer(state, action);
893 + },
894 + actions: actionCreators,
895 + caseReducers: sliceCaseReducersByName,
896 + getInitialState: function () {
897 + if (!_reducer)
898 + _reducer = buildReducer();
899 + return _reducer.getInitialState();
900 + }
901 + };
902 +}
903 +// src/entities/entity_state.ts
904 +function getInitialEntityState() {
905 + return {
906 + ids: [],
907 + entities: {}
908 + };
909 +}
910 +function createInitialStateFactory() {
911 + function getInitialState(additionalState) {
912 + if (additionalState === void 0) { additionalState = {}; }
913 + return Object.assign(getInitialEntityState(), additionalState);
914 + }
915 + return { getInitialState: getInitialState };
916 +}
917 +// src/entities/state_selectors.ts
918 +function createSelectorsFactory() {
919 + function getSelectors(selectState) {
920 + var selectIds = function (state) { return state.ids; };
921 + var selectEntities = function (state) { return state.entities; };
922 + var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); });
923 + var selectId = function (_, id) { return id; };
924 + var selectById = function (entities, id) { return entities[id]; };
925 + var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; });
926 + if (!selectState) {
927 + return {
928 + selectIds: selectIds,
929 + selectEntities: selectEntities,
930 + selectAll: selectAll,
931 + selectTotal: selectTotal,
932 + selectById: createDraftSafeSelector(selectEntities, selectId, selectById)
933 + };
934 + }
935 + var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities);
936 + return {
937 + selectIds: createDraftSafeSelector(selectState, selectIds),
938 + selectEntities: selectGlobalizedEntities,
939 + selectAll: createDraftSafeSelector(selectState, selectAll),
940 + selectTotal: createDraftSafeSelector(selectState, selectTotal),
941 + selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById)
942 + };
943 + }
944 + return { getSelectors: getSelectors };
945 +}
946 +// src/entities/state_adapter.ts
947 +
948 +function createSingleArgumentStateOperator(mutator) {
949 + var operator = createStateOperator(function (_, state) { return mutator(state); });
950 + return function operation(state) {
951 + return operator(state, void 0);
952 + };
953 +}
954 +function createStateOperator(mutator) {
955 + return function operation(state, arg) {
956 + function isPayloadActionArgument(arg2) {
957 + return isFSA(arg2);
958 + }
959 + var runMutator = function (draft) {
960 + if (isPayloadActionArgument(arg)) {
961 + mutator(arg.payload, draft);
962 + }
963 + else {
964 + mutator(arg, draft);
965 + }
966 + };
967 + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(state)) {
968 + runMutator(state);
969 + return state;
970 + }
971 + else {
972 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(state, runMutator);
973 + }
974 + };
975 +}
976 +// src/entities/utils.ts
977 +function selectIdValue(entity, selectId) {
978 + var key = selectId(entity);
979 + if ( true && key === void 0) {
980 + 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());
981 + }
982 + return key;
983 +}
984 +function ensureEntitiesArray(entities) {
985 + if (!Array.isArray(entities)) {
986 + entities = Object.values(entities);
987 + }
988 + return entities;
989 +}
990 +function splitAddedUpdatedEntities(newEntities, selectId, state) {
991 + newEntities = ensureEntitiesArray(newEntities);
992 + var added = [];
993 + var updated = [];
994 + for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) {
995 + var entity = newEntities_1[_i];
996 + var id = selectIdValue(entity, selectId);
997 + if (id in state.entities) {
998 + updated.push({ id: id, changes: entity });
999 + }
1000 + else {
1001 + added.push(entity);
1002 + }
1003 + }
1004 + return [added, updated];
1005 +}
1006 +// src/entities/unsorted_state_adapter.ts
1007 +function createUnsortedStateAdapter(selectId) {
1008 + function addOneMutably(entity, state) {
1009 + var key = selectIdValue(entity, selectId);
1010 + if (key in state.entities) {
1011 + return;
1012 + }
1013 + state.ids.push(key);
1014 + state.entities[key] = entity;
1015 + }
1016 + function addManyMutably(newEntities, state) {
1017 + newEntities = ensureEntitiesArray(newEntities);
1018 + for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) {
1019 + var entity = newEntities_2[_i];
1020 + addOneMutably(entity, state);
1021 + }
1022 + }
1023 + function setOneMutably(entity, state) {
1024 + var key = selectIdValue(entity, selectId);
1025 + if (!(key in state.entities)) {
1026 + state.ids.push(key);
1027 + }
1028 + state.entities[key] = entity;
1029 + }
1030 + function setManyMutably(newEntities, state) {
1031 + newEntities = ensureEntitiesArray(newEntities);
1032 + for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) {
1033 + var entity = newEntities_3[_i];
1034 + setOneMutably(entity, state);
1035 + }
1036 + }
1037 + function setAllMutably(newEntities, state) {
1038 + newEntities = ensureEntitiesArray(newEntities);
1039 + state.ids = [];
1040 + state.entities = {};
1041 + addManyMutably(newEntities, state);
1042 + }
1043 + function removeOneMutably(key, state) {
1044 + return removeManyMutably([key], state);
1045 + }
1046 + function removeManyMutably(keys, state) {
1047 + var didMutate = false;
1048 + keys.forEach(function (key) {
1049 + if (key in state.entities) {
1050 + delete state.entities[key];
1051 + didMutate = true;
1052 + }
1053 + });
1054 + if (didMutate) {
1055 + state.ids = state.ids.filter(function (id) { return id in state.entities; });
1056 + }
1057 + }
1058 + function removeAllMutably(state) {
1059 + Object.assign(state, {
1060 + ids: [],
1061 + entities: {}
1062 + });
1063 + }
1064 + function takeNewKey(keys, update, state) {
1065 + var original2 = state.entities[update.id];
1066 + var updated = Object.assign({}, original2, update.changes);
1067 + var newKey = selectIdValue(updated, selectId);
1068 + var hasNewKey = newKey !== update.id;
1069 + if (hasNewKey) {
1070 + keys[update.id] = newKey;
1071 + delete state.entities[update.id];
1072 + }
1073 + state.entities[newKey] = updated;
1074 + return hasNewKey;
1075 + }
1076 + function updateOneMutably(update, state) {
1077 + return updateManyMutably([update], state);
1078 + }
1079 + function updateManyMutably(updates, state) {
1080 + var newKeys = {};
1081 + var updatesPerEntity = {};
1082 + updates.forEach(function (update) {
1083 + if (update.id in state.entities) {
1084 + updatesPerEntity[update.id] = {
1085 + id: update.id,
1086 + changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes)
1087 + };
1088 + }
1089 + });
1090 + updates = Object.values(updatesPerEntity);
1091 + var didMutateEntities = updates.length > 0;
1092 + if (didMutateEntities) {
1093 + var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0;
1094 + if (didMutateIds) {
1095 + state.ids = Object.keys(state.entities);
1096 + }
1097 + }
1098 + }
1099 + function upsertOneMutably(entity, state) {
1100 + return upsertManyMutably([entity], state);
1101 + }
1102 + function upsertManyMutably(newEntities, state) {
1103 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
1104 + updateManyMutably(updated, state);
1105 + addManyMutably(added, state);
1106 + }
1107 + return {
1108 + removeAll: createSingleArgumentStateOperator(removeAllMutably),
1109 + addOne: createStateOperator(addOneMutably),
1110 + addMany: createStateOperator(addManyMutably),
1111 + setOne: createStateOperator(setOneMutably),
1112 + setMany: createStateOperator(setManyMutably),
1113 + setAll: createStateOperator(setAllMutably),
1114 + updateOne: createStateOperator(updateOneMutably),
1115 + updateMany: createStateOperator(updateManyMutably),
1116 + upsertOne: createStateOperator(upsertOneMutably),
1117 + upsertMany: createStateOperator(upsertManyMutably),
1118 + removeOne: createStateOperator(removeOneMutably),
1119 + removeMany: createStateOperator(removeManyMutably)
1120 + };
1121 +}
1122 +// src/entities/sorted_state_adapter.ts
1123 +function createSortedStateAdapter(selectId, sort) {
1124 + var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll;
1125 + function addOneMutably(entity, state) {
1126 + return addManyMutably([entity], state);
1127 + }
1128 + function addManyMutably(newEntities, state) {
1129 + newEntities = ensureEntitiesArray(newEntities);
1130 + var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); });
1131 + if (models.length !== 0) {
1132 + merge(models, state);
1133 + }
1134 + }
1135 + function setOneMutably(entity, state) {
1136 + return setManyMutably([entity], state);
1137 + }
1138 + function setManyMutably(newEntities, state) {
1139 + newEntities = ensureEntitiesArray(newEntities);
1140 + if (newEntities.length !== 0) {
1141 + merge(newEntities, state);
1142 + }
1143 + }
1144 + function setAllMutably(newEntities, state) {
1145 + newEntities = ensureEntitiesArray(newEntities);
1146 + state.entities = {};
1147 + state.ids = [];
1148 + addManyMutably(newEntities, state);
1149 + }
1150 + function updateOneMutably(update, state) {
1151 + return updateManyMutably([update], state);
1152 + }
1153 + function updateManyMutably(updates, state) {
1154 + var appliedUpdates = false;
1155 + for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) {
1156 + var update = updates_1[_i];
1157 + var entity = state.entities[update.id];
1158 + if (!entity) {
1159 + continue;
1160 + }
1161 + appliedUpdates = true;
1162 + Object.assign(entity, update.changes);
1163 + var newId = selectId(entity);
1164 + if (update.id !== newId) {
1165 + delete state.entities[update.id];
1166 + state.entities[newId] = entity;
1167 + }
1168 + }
1169 + if (appliedUpdates) {
1170 + resortEntities(state);
1171 + }
1172 + }
1173 + function upsertOneMutably(entity, state) {
1174 + return upsertManyMutably([entity], state);
1175 + }
1176 + function upsertManyMutably(newEntities, state) {
1177 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
1178 + updateManyMutably(updated, state);
1179 + addManyMutably(added, state);
1180 + }
1181 + function areArraysEqual(a, b) {
1182 + if (a.length !== b.length) {
1183 + return false;
1184 + }
1185 + for (var i = 0; i < a.length && i < b.length; i++) {
1186 + if (a[i] === b[i]) {
1187 + continue;
1188 + }
1189 + return false;
1190 + }
1191 + return true;
1192 + }
1193 + function merge(models, state) {
1194 + models.forEach(function (model) {
1195 + state.entities[selectId(model)] = model;
1196 + });
1197 + resortEntities(state);
1198 + }
1199 + function resortEntities(state) {
1200 + var allEntities = Object.values(state.entities);
1201 + allEntities.sort(sort);
1202 + var newSortedIds = allEntities.map(selectId);
1203 + var ids = state.ids;
1204 + if (!areArraysEqual(ids, newSortedIds)) {
1205 + state.ids = newSortedIds;
1206 + }
1207 + }
1208 + return {
1209 + removeOne: removeOne,
1210 + removeMany: removeMany,
1211 + removeAll: removeAll,
1212 + addOne: createStateOperator(addOneMutably),
1213 + updateOne: createStateOperator(updateOneMutably),
1214 + upsertOne: createStateOperator(upsertOneMutably),
1215 + setOne: createStateOperator(setOneMutably),
1216 + setMany: createStateOperator(setManyMutably),
1217 + setAll: createStateOperator(setAllMutably),
1218 + addMany: createStateOperator(addManyMutably),
1219 + updateMany: createStateOperator(updateManyMutably),
1220 + upsertMany: createStateOperator(upsertManyMutably)
1221 + };
1222 +}
1223 +// src/entities/create_adapter.ts
1224 +function createEntityAdapter(options) {
1225 + if (options === void 0) { options = {}; }
1226 + var _c = __spreadValues({
1227 + sortComparer: false,
1228 + selectId: function (instance) { return instance.id; }
1229 + }, options), selectId = _c.selectId, sortComparer = _c.sortComparer;
1230 + var stateFactory = createInitialStateFactory();
1231 + var selectorsFactory = createSelectorsFactory();
1232 + var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);
1233 + return __spreadValues(__spreadValues(__spreadValues({
1234 + selectId: selectId,
1235 + sortComparer: sortComparer
1236 + }, stateFactory), selectorsFactory), stateAdapter);
1237 +}
1238 +// src/nanoid.ts
1239 +var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
1240 +var nanoid = function (size) {
1241 + if (size === void 0) { size = 21; }
1242 + var id = "";
1243 + var i = size;
1244 + while (i--) {
1245 + id += urlAlphabet[Math.random() * 64 | 0];
1246 + }
1247 + return id;
1248 +};
1249 +// src/createAsyncThunk.ts
1250 +var commonProperties = [
1251 + "name",
1252 + "message",
1253 + "stack",
1254 + "code"
1255 +];
1256 +var RejectWithValue = /** @class */ (function () {
1257 + function RejectWithValue(payload, meta) {
1258 + this.payload = payload;
1259 + this.meta = meta;
1260 + }
1261 + return RejectWithValue;
1262 +}());
1263 +var FulfillWithMeta = /** @class */ (function () {
1264 + function FulfillWithMeta(payload, meta) {
1265 + this.payload = payload;
1266 + this.meta = meta;
1267 + }
1268 + return FulfillWithMeta;
1269 +}());
1270 +var miniSerializeError = function (value) {
1271 + if (typeof value === "object" && value !== null) {
1272 + var simpleError = {};
1273 + for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {
1274 + var property = commonProperties_1[_i];
1275 + if (typeof value[property] === "string") {
1276 + simpleError[property] = value[property];
1277 + }
1278 + }
1279 + return simpleError;
1280 + }
1281 + return { message: String(value) };
1282 +};
1283 +var createAsyncThunk = (function () {
1284 + function createAsyncThunk2(typePrefix, payloadCreator, options) {
1285 + var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({
1286 + payload: payload,
1287 + meta: __spreadProps(__spreadValues({}, meta || {}), {
1288 + arg: arg,
1289 + requestId: requestId,
1290 + requestStatus: "fulfilled"
1291 + })
1292 + }); });
1293 + var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({
1294 + payload: void 0,
1295 + meta: __spreadProps(__spreadValues({}, meta || {}), {
1296 + arg: arg,
1297 + requestId: requestId,
1298 + requestStatus: "pending"
1299 + })
1300 + }); });
1301 + var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({
1302 + payload: payload,
1303 + error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
1304 + meta: __spreadProps(__spreadValues({}, meta || {}), {
1305 + arg: arg,
1306 + requestId: requestId,
1307 + rejectedWithValue: !!payload,
1308 + requestStatus: "rejected",
1309 + aborted: (error == null ? void 0 : error.name) === "AbortError",
1310 + condition: (error == null ? void 0 : error.name) === "ConditionError"
1311 + })
1312 + }); });
1313 + var displayedWarning = false;
1314 + var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () {
1315 + function class_1() {
1316 + this.signal = {
1317 + aborted: false,
1318 + addEventListener: function () {
1319 + },
1320 + dispatchEvent: function () {
1321 + return false;
1322 + },
1323 + onabort: function () {
1324 + },
1325 + removeEventListener: function () {
1326 + },
1327 + reason: void 0,
1328 + throwIfAborted: function () {
1329 + }
1330 + };
1331 + }
1332 + class_1.prototype.abort = function () {
1333 + if (true) {
1334 + if (!displayedWarning) {
1335 + displayedWarning = true;
1336 + 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'.");
1337 + }
1338 + }
1339 + };
1340 + return class_1;
1341 + }());
1342 + function actionCreator(arg) {
1343 + return function (dispatch, getState, extra) {
1344 + var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
1345 + var abortController = new AC();
1346 + var abortReason;
1347 + var started = false;
1348 + function abort(reason) {
1349 + abortReason = reason;
1350 + abortController.abort();
1351 + }
1352 + var promise2 = function () {
1353 + return __async(this, null, function () {
1354 + var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch;
1355 + return __generator(this, function (_c) {
1356 + switch (_c.label) {
1357 + case 0:
1358 + _c.trys.push([0, 4, , 5]);
1359 + conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra });
1360 + if (!isThenable(conditionResult)) return [3 /*break*/, 2];
1361 + return [4 /*yield*/, conditionResult];
1362 + case 1:
1363 + conditionResult = _c.sent();
1364 + _c.label = 2;
1365 + case 2:
1366 + if (conditionResult === false || abortController.signal.aborted) {
1367 + throw {
1368 + name: "ConditionError",
1369 + message: "Aborted due to condition callback returning false."
1370 + };
1371 + }
1372 + started = true;
1373 + abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({
1374 + name: "AbortError",
1375 + message: abortReason || "Aborted"
1376 + }); }); });
1377 + 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 })));
1378 + return [4 /*yield*/, Promise.race([
1379 + abortedPromise,
1380 + Promise.resolve(payloadCreator(arg, {
1381 + dispatch: dispatch,
1382 + getState: getState,
1383 + extra: extra,
1384 + requestId: requestId,
1385 + signal: abortController.signal,
1386 + abort: abort,
1387 + rejectWithValue: function (value, meta) {
1388 + return new RejectWithValue(value, meta);
1389 + },
1390 + fulfillWithValue: function (value, meta) {
1391 + return new FulfillWithMeta(value, meta);
1392 + }
1393 + })).then(function (result) {
1394 + if (result instanceof RejectWithValue) {
1395 + throw result;
1396 + }
1397 + if (result instanceof FulfillWithMeta) {
1398 + return fulfilled(result.payload, requestId, arg, result.meta);
1399 + }
1400 + return fulfilled(result, requestId, arg);
1401 + })
1402 + ])];
1403 + case 3:
1404 + finalAction = _c.sent();
1405 + return [3 /*break*/, 5];
1406 + case 4:
1407 + err_1 = _c.sent();
1408 + finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);
1409 + return [3 /*break*/, 5];
1410 + case 5:
1411 + skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
1412 + if (!skipDispatch) {
1413 + dispatch(finalAction);
1414 + }
1415 + return [2 /*return*/, finalAction];
1416 + }
1417 + });
1418 + });
1419 + }();
1420 + return Object.assign(promise2, {
1421 + abort: abort,
1422 + requestId: requestId,
1423 + arg: arg,
1424 + unwrap: function () {
1425 + return promise2.then(unwrapResult);
1426 + }
1427 + });
1428 + };
1429 + }
1430 + return Object.assign(actionCreator, {
1431 + pending: pending,
1432 + rejected: rejected,
1433 + fulfilled: fulfilled,
1434 + typePrefix: typePrefix
1435 + });
1436 + }
1437 + createAsyncThunk2.withTypes = function () { return createAsyncThunk2; };
1438 + return createAsyncThunk2;
1439 +})();
1440 +function unwrapResult(action) {
1441 + if (action.meta && action.meta.rejectedWithValue) {
1442 + throw action.payload;
1443 + }
1444 + if (action.error) {
1445 + throw action.error;
1446 + }
1447 + return action.payload;
1448 +}
1449 +function isThenable(value) {
1450 + return value !== null && typeof value === "object" && typeof value.then === "function";
1451 +}
1452 +// src/matchers.ts
1453 +var matches = function (matcher, action) {
1454 + if (hasMatchFunction(matcher)) {
1455 + return matcher.match(action);
1456 + }
1457 + else {
1458 + return matcher(action);
1459 + }
1460 +};
1461 +function isAnyOf() {
1462 + var matchers = [];
1463 + for (var _i = 0; _i < arguments.length; _i++) {
1464 + matchers[_i] = arguments[_i];
1465 + }
1466 + return function (action) {
1467 + return matchers.some(function (matcher) { return matches(matcher, action); });
1468 + };
1469 +}
1470 +function isAllOf() {
1471 + var matchers = [];
1472 + for (var _i = 0; _i < arguments.length; _i++) {
1473 + matchers[_i] = arguments[_i];
1474 + }
1475 + return function (action) {
1476 + return matchers.every(function (matcher) { return matches(matcher, action); });
1477 + };
1478 +}
1479 +function hasExpectedRequestMetadata(action, validStatus) {
1480 + if (!action || !action.meta)
1481 + return false;
1482 + var hasValidRequestId = typeof action.meta.requestId === "string";
1483 + var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
1484 + return hasValidRequestId && hasValidRequestStatus;
1485 +}
1486 +function isAsyncThunkArray(a) {
1487 + return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0];
1488 +}
1489 +function isPending() {
1490 + var asyncThunks = [];
1491 + for (var _i = 0; _i < arguments.length; _i++) {
1492 + asyncThunks[_i] = arguments[_i];
1493 + }
1494 + if (asyncThunks.length === 0) {
1495 + return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); };
1496 + }
1497 + if (!isAsyncThunkArray(asyncThunks)) {
1498 + return isPending()(asyncThunks[0]);
1499 + }
1500 + return function (action) {
1501 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; });
1502 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
1503 + return combinedMatcher(action);
1504 + };
1505 +}
1506 +function isRejected() {
1507 + var asyncThunks = [];
1508 + for (var _i = 0; _i < arguments.length; _i++) {
1509 + asyncThunks[_i] = arguments[_i];
1510 + }
1511 + if (asyncThunks.length === 0) {
1512 + return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); };
1513 + }
1514 + if (!isAsyncThunkArray(asyncThunks)) {
1515 + return isRejected()(asyncThunks[0]);
1516 + }
1517 + return function (action) {
1518 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; });
1519 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
1520 + return combinedMatcher(action);
1521 + };
1522 +}
1523 +function isRejectedWithValue() {
1524 + var asyncThunks = [];
1525 + for (var _i = 0; _i < arguments.length; _i++) {
1526 + asyncThunks[_i] = arguments[_i];
1527 + }
1528 + var hasFlag = function (action) {
1529 + return action && action.meta && action.meta.rejectedWithValue;
1530 + };
1531 + if (asyncThunks.length === 0) {
1532 + return function (action) {
1533 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
1534 + return combinedMatcher(action);
1535 + };
1536 + }
1537 + if (!isAsyncThunkArray(asyncThunks)) {
1538 + return isRejectedWithValue()(asyncThunks[0]);
1539 + }
1540 + return function (action) {
1541 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
1542 + return combinedMatcher(action);
1543 + };
1544 +}
1545 +function isFulfilled() {
1546 + var asyncThunks = [];
1547 + for (var _i = 0; _i < arguments.length; _i++) {
1548 + asyncThunks[_i] = arguments[_i];
1549 + }
1550 + if (asyncThunks.length === 0) {
1551 + return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); };
1552 + }
1553 + if (!isAsyncThunkArray(asyncThunks)) {
1554 + return isFulfilled()(asyncThunks[0]);
1555 + }
1556 + return function (action) {
1557 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; });
1558 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
1559 + return combinedMatcher(action);
1560 + };
1561 +}
1562 +function isAsyncThunkAction() {
1563 + var asyncThunks = [];
1564 + for (var _i = 0; _i < arguments.length; _i++) {
1565 + asyncThunks[_i] = arguments[_i];
1566 + }
1567 + if (asyncThunks.length === 0) {
1568 + return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); };
1569 + }
1570 + if (!isAsyncThunkArray(asyncThunks)) {
1571 + return isAsyncThunkAction()(asyncThunks[0]);
1572 + }
1573 + return function (action) {
1574 + var matchers = [];
1575 + for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) {
1576 + var asyncThunk = asyncThunks_1[_i];
1577 + matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled);
1578 + }
1579 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
1580 + return combinedMatcher(action);
1581 + };
1582 +}
1583 +// src/listenerMiddleware/utils.ts
1584 +var assertFunction = function (func, expected) {
1585 + if (typeof func !== "function") {
1586 + throw new TypeError(expected + " is not a function");
1587 + }
1588 +};
1589 +var noop = function () {
1590 +};
1591 +var catchRejection = function (promise2, onError) {
1592 + if (onError === void 0) { onError = noop; }
1593 + promise2.catch(onError);
1594 + return promise2;
1595 +};
1596 +var addAbortSignalListener = function (abortSignal, callback) {
1597 + abortSignal.addEventListener("abort", callback, { once: true });
1598 + return function () { return abortSignal.removeEventListener("abort", callback); };
1599 +};
1600 +var abortControllerWithReason = function (abortController, reason) {
1601 + var signal = abortController.signal;
1602 + if (signal.aborted) {
1603 + return;
1604 + }
1605 + if (!("reason" in signal)) {
1606 + Object.defineProperty(signal, "reason", {
1607 + enumerable: true,
1608 + value: reason,
1609 + configurable: true,
1610 + writable: true
1611 + });
1612 + }
1613 + ;
1614 + abortController.abort(reason);
1615 +};
1616 +// src/listenerMiddleware/exceptions.ts
1617 +var task = "task";
1618 +var listener = "listener";
1619 +var completed = "completed";
1620 +var cancelled = "cancelled";
1621 +var taskCancelled = "task-" + cancelled;
1622 +var taskCompleted = "task-" + completed;
1623 +var listenerCancelled = listener + "-" + cancelled;
1624 +var listenerCompleted = listener + "-" + completed;
1625 +var TaskAbortError = /** @class */ (function () {
1626 + function TaskAbortError(code) {
1627 + this.code = code;
1628 + this.name = "TaskAbortError";
1629 + this.message = task + " " + cancelled + " (reason: " + code + ")";
1630 + }
1631 + return TaskAbortError;
1632 +}());
1633 +// src/listenerMiddleware/task.ts
1634 +var validateActive = function (signal) {
1635 + if (signal.aborted) {
1636 + throw new TaskAbortError(signal.reason);
1637 + }
1638 +};
1639 +function raceWithSignal(signal, promise2) {
1640 + var cleanup = noop;
1641 + return new Promise(function (resolve, reject) {
1642 + var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); };
1643 + if (signal.aborted) {
1644 + notifyRejection();
1645 + return;
1646 + }
1647 + cleanup = addAbortSignalListener(signal, notifyRejection);
1648 + promise2.finally(function () { return cleanup(); }).then(resolve, reject);
1649 + }).finally(function () {
1650 + cleanup = noop;
1651 + });
1652 +}
1653 +var runTask = function (task2, cleanUp) { return __async(void 0, null, function () {
1654 + var value, error_1;
1655 + return __generator(this, function (_c) {
1656 + switch (_c.label) {
1657 + case 0:
1658 + _c.trys.push([0, 3, 4, 5]);
1659 + return [4 /*yield*/, Promise.resolve()];
1660 + case 1:
1661 + _c.sent();
1662 + return [4 /*yield*/, task2()];
1663 + case 2:
1664 + value = _c.sent();
1665 + return [2 /*return*/, {
1666 + status: "ok",
1667 + value: value
1668 + }];
1669 + case 3:
1670 + error_1 = _c.sent();
1671 + return [2 /*return*/, {
1672 + status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected",
1673 + error: error_1
1674 + }];
1675 + case 4:
1676 + cleanUp == null ? void 0 : cleanUp();
1677 + return [7 /*endfinally*/];
1678 + case 5: return [2 /*return*/];
1679 + }
1680 + });
1681 +}); };
1682 +var createPause = function (signal) {
1683 + return function (promise2) {
1684 + return catchRejection(raceWithSignal(signal, promise2).then(function (output) {
1685 + validateActive(signal);
1686 + return output;
1687 + }));
1688 + };
1689 +};
1690 +var createDelay = function (signal) {
1691 + var pause = createPause(signal);
1692 + return function (timeoutMs) {
1693 + return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); }));
1694 + };
1695 +};
1696 +// src/listenerMiddleware/index.ts
1697 +var assign = Object.assign;
1698 +var INTERNAL_NIL_TOKEN = {};
1699 +var alm = "listenerMiddleware";
1700 +var createFork = function (parentAbortSignal, parentBlockingPromises) {
1701 + var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); };
1702 + return function (taskExecutor, opts) {
1703 + assertFunction(taskExecutor, "taskExecutor");
1704 + var childAbortController = new AbortController();
1705 + linkControllers(childAbortController);
1706 + var result = runTask(function () { return __async(void 0, null, function () {
1707 + var result2;
1708 + return __generator(this, function (_c) {
1709 + switch (_c.label) {
1710 + case 0:
1711 + validateActive(parentAbortSignal);
1712 + validateActive(childAbortController.signal);
1713 + return [4 /*yield*/, taskExecutor({
1714 + pause: createPause(childAbortController.signal),
1715 + delay: createDelay(childAbortController.signal),
1716 + signal: childAbortController.signal
1717 + })];
1718 + case 1:
1719 + result2 = _c.sent();
1720 + validateActive(childAbortController.signal);
1721 + return [2 /*return*/, result2];
1722 + }
1723 + });
1724 + }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); });
1725 + if (opts == null ? void 0 : opts.autoJoin) {
1726 + parentBlockingPromises.push(result);
1727 + }
1728 + return {
1729 + result: createPause(parentAbortSignal)(result),
1730 + cancel: function () {
1731 + abortControllerWithReason(childAbortController, taskCancelled);
1732 + }
1733 + };
1734 + };
1735 +};
1736 +var createTakePattern = function (startListening, signal) {
1737 + var take = function (predicate, timeout) { return __async(void 0, null, function () {
1738 + var unsubscribe, tuplePromise, promises, output;
1739 + return __generator(this, function (_c) {
1740 + switch (_c.label) {
1741 + case 0:
1742 + validateActive(signal);
1743 + unsubscribe = function () {
1744 + };
1745 + tuplePromise = new Promise(function (resolve, reject) {
1746 + var stopListening = startListening({
1747 + predicate: predicate,
1748 + effect: function (action, listenerApi) {
1749 + listenerApi.unsubscribe();
1750 + resolve([
1751 + action,
1752 + listenerApi.getState(),
1753 + listenerApi.getOriginalState()
1754 + ]);
1755 + }
1756 + });
1757 + unsubscribe = function () {
1758 + stopListening();
1759 + reject();
1760 + };
1761 + });
1762 + promises = [
1763 + tuplePromise
1764 + ];
1765 + if (timeout != null) {
1766 + promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); }));
1767 + }
1768 + _c.label = 1;
1769 + case 1:
1770 + _c.trys.push([1, , 3, 4]);
1771 + return [4 /*yield*/, raceWithSignal(signal, Promise.race(promises))];
1772 + case 2:
1773 + output = _c.sent();
1774 + validateActive(signal);
1775 + return [2 /*return*/, output];
1776 + case 3:
1777 + unsubscribe();
1778 + return [7 /*endfinally*/];
1779 + case 4: return [2 /*return*/];
1780 + }
1781 + });
1782 + }); };
1783 + return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); };
1784 +};
1785 +var getListenerEntryPropsFrom = function (options) {
1786 + var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect;
1787 + if (type) {
1788 + predicate = createAction(type).match;
1789 + }
1790 + else if (actionCreator) {
1791 + type = actionCreator.type;
1792 + predicate = actionCreator.match;
1793 + }
1794 + else if (matcher) {
1795 + predicate = matcher;
1796 + }
1797 + else if (predicate) {
1798 + }
1799 + else {
1800 + throw new Error("Creating or removing a listener requires one of the known fields for matching an action");
1801 + }
1802 + assertFunction(effect, "options.listener");
1803 + return { predicate: predicate, type: type, effect: effect };
1804 +};
1805 +var createListenerEntry = function (options) {
1806 + var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect;
1807 + var id = nanoid();
1808 + var entry = {
1809 + id: id,
1810 + effect: effect,
1811 + type: type,
1812 + predicate: predicate,
1813 + pending: new Set(),
1814 + unsubscribe: function () {
1815 + throw new Error("Unsubscribe not initialized");
1816 + }
1817 + };
1818 + return entry;
1819 +};
1820 +var cancelActiveListeners = function (entry) {
1821 + entry.pending.forEach(function (controller) {
1822 + abortControllerWithReason(controller, listenerCancelled);
1823 + });
1824 +};
1825 +var createClearListenerMiddleware = function (listenerMap) {
1826 + return function () {
1827 + listenerMap.forEach(cancelActiveListeners);
1828 + listenerMap.clear();
1829 + };
1830 +};
1831 +var safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) {
1832 + try {
1833 + errorHandler(errorToNotify, errorInfo);
1834 + }
1835 + catch (errorHandlerError) {
1836 + setTimeout(function () {
1837 + throw errorHandlerError;
1838 + }, 0);
1839 + }
1840 +};
1841 +var addListener = createAction(alm + "/add");
1842 +var clearAllListeners = createAction(alm + "/removeAll");
1843 +var removeListener = createAction(alm + "/remove");
1844 +var defaultErrorHandler = function () {
1845 + var args = [];
1846 + for (var _i = 0; _i < arguments.length; _i++) {
1847 + args[_i] = arguments[_i];
1848 + }
1849 + console.error.apply(console, __spreadArray([alm + "/error"], args));
1850 +};
1851 +function createListenerMiddleware(middlewareOptions) {
1852 + var _this = this;
1853 + if (middlewareOptions === void 0) { middlewareOptions = {}; }
1854 + var listenerMap = new Map();
1855 + var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c;
1856 + assertFunction(onError, "onError");
1857 + var insertEntry = function (entry) {
1858 + entry.unsubscribe = function () { return listenerMap.delete(entry.id); };
1859 + listenerMap.set(entry.id, entry);
1860 + return function (cancelOptions) {
1861 + entry.unsubscribe();
1862 + if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) {
1863 + cancelActiveListeners(entry);
1864 + }
1865 + };
1866 + };
1867 + var findListenerEntry = function (comparator) {
1868 + for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) {
1869 + var entry = _c[_i];
1870 + if (comparator(entry)) {
1871 + return entry;
1872 + }
1873 + }
1874 + return void 0;
1875 + };
1876 + var startListening = function (options) {
1877 + var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; });
1878 + if (!entry) {
1879 + entry = createListenerEntry(options);
1880 + }
1881 + return insertEntry(entry);
1882 + };
1883 + var stopListening = function (options) {
1884 + var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate;
1885 + var entry = findListenerEntry(function (entry2) {
1886 + var matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate;
1887 + return matchPredicateOrType && entry2.effect === effect;
1888 + });
1889 + if (entry) {
1890 + entry.unsubscribe();
1891 + if (options.cancelActive) {
1892 + cancelActiveListeners(entry);
1893 + }
1894 + }
1895 + return !!entry;
1896 + };
1897 + var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () {
1898 + var internalTaskController, take, autoJoinPromises, listenerError_1;
1899 + return __generator(this, function (_c) {
1900 + switch (_c.label) {
1901 + case 0:
1902 + internalTaskController = new AbortController();
1903 + take = createTakePattern(startListening, internalTaskController.signal);
1904 + autoJoinPromises = [];
1905 + _c.label = 1;
1906 + case 1:
1907 + _c.trys.push([1, 3, 4, 6]);
1908 + entry.pending.add(internalTaskController);
1909 + return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, {
1910 + getOriginalState: getOriginalState,
1911 + condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); },
1912 + take: take,
1913 + delay: createDelay(internalTaskController.signal),
1914 + pause: createPause(internalTaskController.signal),
1915 + extra: extra,
1916 + signal: internalTaskController.signal,
1917 + fork: createFork(internalTaskController.signal, autoJoinPromises),
1918 + unsubscribe: entry.unsubscribe,
1919 + subscribe: function () {
1920 + listenerMap.set(entry.id, entry);
1921 + },
1922 + cancelActiveListeners: function () {
1923 + entry.pending.forEach(function (controller, _, set) {
1924 + if (controller !== internalTaskController) {
1925 + abortControllerWithReason(controller, listenerCancelled);
1926 + set.delete(controller);
1927 + }
1928 + });
1929 + }
1930 + })))];
1931 + case 2:
1932 + _c.sent();
1933 + return [3 /*break*/, 6];
1934 + case 3:
1935 + listenerError_1 = _c.sent();
1936 + if (!(listenerError_1 instanceof TaskAbortError)) {
1937 + safelyNotifyError(onError, listenerError_1, {
1938 + raisedBy: "effect"
1939 + });
1940 + }
1941 + return [3 /*break*/, 6];
1942 + case 4: return [4 /*yield*/, Promise.allSettled(autoJoinPromises)];
1943 + case 5:
1944 + _c.sent();
1945 + abortControllerWithReason(internalTaskController, listenerCompleted);
1946 + entry.pending.delete(internalTaskController);
1947 + return [7 /*endfinally*/];
1948 + case 6: return [2 /*return*/];
1949 + }
1950 + });
1951 + }); };
1952 + var clearListenerMiddleware = createClearListenerMiddleware(listenerMap);
1953 + var middleware = function (api) { return function (next) { return function (action) {
1954 + if (!isAction(action)) {
1955 + return next(action);
1956 + }
1957 + if (addListener.match(action)) {
1958 + return startListening(action.payload);
1959 + }
1960 + if (clearAllListeners.match(action)) {
1961 + clearListenerMiddleware();
1962 + return;
1963 + }
1964 + if (removeListener.match(action)) {
1965 + return stopListening(action.payload);
1966 + }
1967 + var originalState = api.getState();
1968 + var getOriginalState = function () {
1969 + if (originalState === INTERNAL_NIL_TOKEN) {
1970 + throw new Error(alm + ": getOriginalState can only be called synchronously");
1971 + }
1972 + return originalState;
1973 + };
1974 + var result;
1975 + try {
1976 + result = next(action);
1977 + if (listenerMap.size > 0) {
1978 + var currentState = api.getState();
1979 + var listenerEntries = Array.from(listenerMap.values());
1980 + for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) {
1981 + var entry = listenerEntries_1[_i];
1982 + var runListener = false;
1983 + try {
1984 + runListener = entry.predicate(action, currentState, originalState);
1985 + }
1986 + catch (predicateError) {
1987 + runListener = false;
1988 + safelyNotifyError(onError, predicateError, {
1989 + raisedBy: "predicate"
1990 + });
1991 + }
1992 + if (!runListener) {
1993 + continue;
1994 + }
1995 + notifyListener(entry, action, api, getOriginalState);
1996 + }
1997 + }
1998 + }
1999 + finally {
2000 + originalState = INTERNAL_NIL_TOKEN;
2001 + }
2002 + return result;
2003 + }; }; };
2004 + return {
2005 + middleware: middleware,
2006 + startListening: startListening,
2007 + stopListening: stopListening,
2008 + clearListeners: clearListenerMiddleware
2009 + };
2010 +}
2011 +// src/autoBatchEnhancer.ts
2012 +var SHOULD_AUTOBATCH = "RTK_autoBatch";
2013 +var prepareAutoBatched = function () { return function (payload) {
2014 + var _c;
2015 + return ({
2016 + payload: payload,
2017 + meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c)
2018 + });
2019 +}; };
2020 +var promise;
2021 +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 () {
2022 + throw err;
2023 +}, 0); }); };
2024 +var createQueueWithTimer = function (timeout) {
2025 + return function (notify) {
2026 + setTimeout(notify, timeout);
2027 + };
2028 +};
2029 +var rAF = typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10);
2030 +var autoBatchEnhancer = function (options) {
2031 + if (options === void 0) { options = { type: "raf" }; }
2032 + return function (next) { return function () {
2033 + var args = [];
2034 + for (var _i = 0; _i < arguments.length; _i++) {
2035 + args[_i] = arguments[_i];
2036 + }
2037 + var store = next.apply(void 0, args);
2038 + var notifying = true;
2039 + var shouldNotifyAtEndOfTick = false;
2040 + var notificationQueued = false;
2041 + var listeners = new Set();
2042 + var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ? rAF : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
2043 + var notifyListeners = function () {
2044 + notificationQueued = false;
2045 + if (shouldNotifyAtEndOfTick) {
2046 + shouldNotifyAtEndOfTick = false;
2047 + listeners.forEach(function (l) { return l(); });
2048 + }
2049 + };
2050 + return Object.assign({}, store, {
2051 + subscribe: function (listener2) {
2052 + var wrappedListener = function () { return notifying && listener2(); };
2053 + var unsubscribe = store.subscribe(wrappedListener);
2054 + listeners.add(listener2);
2055 + return function () {
2056 + unsubscribe();
2057 + listeners.delete(listener2);
2058 + };
2059 + },
2060 + dispatch: function (action) {
2061 + var _a;
2062 + try {
2063 + notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]);
2064 + shouldNotifyAtEndOfTick = !notifying;
2065 + if (shouldNotifyAtEndOfTick) {
2066 + if (!notificationQueued) {
2067 + notificationQueued = true;
2068 + queueCallback(notifyListeners);
2069 + }
2070 + }
2071 + return store.dispatch(action);
2072 + }
2073 + finally {
2074 + notifying = true;
2075 + }
2076 + }
2077 + });
2078 + }; };
2079 +};
2080 +// src/index.ts
2081 +(0,immer__WEBPACK_IMPORTED_MODULE_2__.enableES5)();
2082 +
2083 +//# sourceMappingURL=redux-toolkit.esm.js.map
56 2084
57 -//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js
58 - function _classCallCheck(a, n) {
59 - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
60 - }
2085 +/***/ }),
61 2086
62 -//#endregion
63 -//#region node_modules/@babel/runtime/helpers/esm/typeof.js
64 - function _typeof(o) {
65 - "@babel/helpers - typeof";
66 - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
67 - return typeof o;
68 - } : function(o) {
69 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
70 - }, _typeof(o);
71 - }
72 - var init_typeof = __esmMin((() => {}));
2087 +/***/ "../app/assets/js/loader/commands/close.js":
2088 +/*!*************************************************!*\
2089 + !*** ../app/assets/js/loader/commands/close.js ***!
2090 + \*************************************************/
2091 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
73 2092
74 -//#endregion
75 -//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js
76 - init_typeof();
77 - function toPrimitive(t, r) {
78 - if ("object" != _typeof(t) || !t) return t;
79 - var e = t[Symbol.toPrimitive];
80 - if (void 0 !== e) {
81 - var i = e.call(t, r || "default");
82 - if ("object" != _typeof(i)) return i;
83 - throw new TypeError("@@toPrimitive must return a primitive value.");
84 - }
85 - return ("string" === r ? String : Number)(t);
86 - }
2093 +"use strict";
87 2094
88 -//#endregion
89 -//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
90 - init_typeof();
91 - function toPropertyKey(t) {
92 - var i = toPrimitive(t, "string");
93 - return "symbol" == _typeof(i) ? i : i + "";
94 - }
95 2095
96 -//#endregion
97 -//#region node_modules/@babel/runtime/helpers/esm/createClass.js
98 - function _defineProperties(e, r) {
99 - for (var t = 0; t < r.length; t++) {
100 - var o = r[t];
101 - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
102 - }
103 - }
104 - function _createClass(e, r, t) {
105 - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
106 - }
2096 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2097 +Object.defineProperty(exports, "__esModule", ({
2098 + value: true
2099 +}));
2100 +exports["default"] = exports.Close = void 0;
2101 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2102 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2103 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2104 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
2105 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2106 +function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
2107 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
2108 +var Close = exports.Close = /*#__PURE__*/function (_$e$modules$CommandBa) {
2109 + function Close() {
2110 + (0, _classCallCheck2.default)(this, Close);
2111 + return _callSuper(this, Close, arguments);
2112 + }
2113 + (0, _inherits2.default)(Close, _$e$modules$CommandBa);
2114 + return (0, _createClass2.default)(Close, [{
2115 + key: "apply",
2116 + value: function apply() {
2117 + if (!this.component.close()) {
2118 + return false;
2119 + }
2120 + this.component.iframe.remove();
2121 + this.component.iframe = null;
2122 + return true;
2123 + }
2124 + }]);
2125 +}($e.modules.CommandBase);
2126 +var _default = exports["default"] = Close;
107 2127
108 -//#endregion
109 -//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js
110 - function _defineProperty(e, r, t) {
111 - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
112 - value: t,
113 - enumerable: !0,
114 - configurable: !0,
115 - writable: !0
116 - }) : e[r] = t, e;
117 - }
2128 +/***/ }),
118 2129
119 -//#endregion
120 -//#region node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
121 - function _assertThisInitialized(e) {
122 - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
123 - return e;
124 - }
2130 +/***/ "../app/assets/js/loader/commands/index.js":
2131 +/*!*************************************************!*\
2132 + !*** ../app/assets/js/loader/commands/index.js ***!
2133 + \*************************************************/
2134 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
125 2135
126 -//#endregion
127 -//#region node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
128 - init_typeof();
129 - function _possibleConstructorReturn(t, e) {
130 - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
131 - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
132 - return _assertThisInitialized(t);
133 - }
2136 +"use strict";
134 2137
135 -//#endregion
136 -//#region node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
137 - function _getPrototypeOf(t) {
138 - return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
139 - return t.__proto__ || Object.getPrototypeOf(t);
140 - }, _getPrototypeOf(t);
141 - }
142 2138
143 -//#endregion
144 -//#region node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
145 - function _setPrototypeOf(t, e) {
146 - return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
147 - return t.__proto__ = e, t;
148 - }, _setPrototypeOf(t, e);
149 - }
2139 +Object.defineProperty(exports, "__esModule", ({
2140 + value: true
2141 +}));
2142 +Object.defineProperty(exports, "Close", ({
2143 + enumerable: true,
2144 + get: function get() {
2145 + return _close.Close;
2146 + }
2147 +}));
2148 +Object.defineProperty(exports, "Load", ({
2149 + enumerable: true,
2150 + get: function get() {
2151 + return _load.Load;
2152 + }
2153 +}));
2154 +Object.defineProperty(exports, "Open", ({
2155 + enumerable: true,
2156 + get: function get() {
2157 + return _open.Open;
2158 + }
2159 +}));
2160 +var _close = __webpack_require__(/*! ./close */ "../app/assets/js/loader/commands/close.js");
2161 +var _load = __webpack_require__(/*! ./load */ "../app/assets/js/loader/commands/load.js");
2162 +var _open = __webpack_require__(/*! ./open */ "../app/assets/js/loader/commands/open.js");
150 2163
151 -//#endregion
152 -//#region node_modules/@babel/runtime/helpers/esm/inherits.js
153 - function _inherits(t, e) {
154 - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
155 - t.prototype = Object.create(e && e.prototype, { constructor: {
156 - value: t,
157 - writable: !0,
158 - configurable: !0
159 - } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e);
160 - }
2164 +/***/ }),
161 2165
162 -//#endregion
163 -//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
164 - function _arrayWithHoles(r) {
165 - if (Array.isArray(r)) return r;
166 - }
2166 +/***/ "../app/assets/js/loader/commands/load.js":
2167 +/*!************************************************!*\
2168 + !*** ../app/assets/js/loader/commands/load.js ***!
2169 + \************************************************/
2170 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
167 2171
168 -//#endregion
169 -//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
170 - function _iterableToArrayLimit(r, l) {
171 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
172 - if (null != t) {
173 - var e;
174 - var n;
175 - var i;
176 - var u;
177 - var a = [];
178 - var f = !0;
179 - var o = !1;
180 - try {
181 - if (i = (t = t.call(r)).next, 0 === l) {
182 - if (Object(t) !== t) return;
183 - f = !1;
184 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
185 - } catch (r) {
186 - o = !0, n = r;
187 - } finally {
188 - try {
189 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
190 - } finally {
191 - if (o) throw n;
192 - }
193 - }
194 - return a;
195 - }
196 - }
2172 +"use strict";
197 2173
198 -//#endregion
199 -//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
200 - function _arrayLikeToArray$1(r, a) {
201 - (null == a || a > r.length) && (a = r.length);
202 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
203 - return n;
204 - }
205 - __name(_arrayLikeToArray$1, "_arrayLikeToArray");
206 2174
207 -//#endregion
208 -//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
209 - function _unsupportedIterableToArray$1(r, a) {
210 - if (r) {
211 - if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
212 - var t = {}.toString.call(r).slice(8, -1);
213 - return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0;
214 - }
215 - }
216 - __name(_unsupportedIterableToArray$1, "_unsupportedIterableToArray");
2175 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2176 +Object.defineProperty(exports, "__esModule", ({
2177 + value: true
2178 +}));
2179 +exports["default"] = exports.Load = void 0;
2180 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2181 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2182 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2183 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
2184 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2185 +function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
2186 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
2187 +var Load = exports.Load = /*#__PURE__*/function (_$e$modules$CommandBa) {
2188 + function Load() {
2189 + (0, _classCallCheck2.default)(this, Load);
2190 + return _callSuper(this, Load, arguments);
2191 + }
2192 + (0, _inherits2.default)(Load, _$e$modules$CommandBa);
2193 + return (0, _createClass2.default)(Load, [{
2194 + key: "apply",
2195 + value: function apply(args) {
2196 + var component = this.component;
2197 + if (!component.iframe) {
2198 + component.iframe = document.createElement('iframe');
2199 + component.iframe.className = 'elementor-app-iframe';
2200 + component.iframe.style.cssText = '' + 'display: none;' + 'width: 100%;' + 'height: 100%;' + 'position: fixed;' + 'top: 0;' + 'left: 0;' + 'z-index: 99999; /* Over WP Admin Bar */' + 'background-color: rgba(0, 0, 0, 0.8);';
2201 + document.body.appendChild(component.iframe);
2202 + }
2203 + if (args.url === component.iframe.src) {
2204 + return;
2205 + }
2206 + component.iframe.src = args.url;
2207 + }
2208 + }]);
2209 +}($e.modules.CommandBase);
2210 +var _default = exports["default"] = Load;
217 2211
218 -//#endregion
219 -//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
220 - function _nonIterableRest() {
221 - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
222 - }
2212 +/***/ }),
223 2213
224 -//#endregion
225 -//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js
226 - function _slicedToArray(r, e) {
227 - return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
228 - }
2214 +/***/ "../app/assets/js/loader/commands/open.js":
2215 +/*!************************************************!*\
2216 + !*** ../app/assets/js/loader/commands/open.js ***!
2217 + \************************************************/
2218 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
229 2219
230 -//#endregion
231 -//#region node_modules/@babel/runtime/helpers/esm/superPropBase.js
232 - function _superPropBase(t, o) {
233 - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
234 - return t;
235 - }
2220 +"use strict";
236 2221
237 -//#endregion
238 -//#region node_modules/@babel/runtime/helpers/esm/get.js
239 - function _get() {
240 - return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function(e, t, r) {
241 - var p = _superPropBase(e, t);
242 - if (p) {
243 - var n = Object.getOwnPropertyDescriptor(p, t);
244 - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
245 - }
246 - }, _get.apply(null, arguments);
247 - }
248 2222
249 -//#endregion
250 -//#region assets/dev/js/modules/imports/instance-type.js
251 - function _superPropGet(t, o, e, r) {
252 - var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
253 - return 2 & r && "function" == typeof p ? function(t) {
254 - return p.apply(e, t);
255 - } : p;
256 - }
257 - var InstanceType = /*#__PURE__*/ function() {
258 - function InstanceType() {
259 - var _this = this;
260 - _classCallCheck(this, InstanceType);
261 - var target = this instanceof InstanceType ? this.constructor : void 0;
262 - var prototypes = [];
263 - while (target.__proto__ && target.__proto__.name) {
264 - prototypes.push(target.__proto__);
265 - target = target.__proto__;
266 - }
267 - prototypes.reverse().forEach(function(proto) {
268 - return _this instanceof proto;
269 - });
270 - }
271 - return _createClass(InstanceType, null, [{
272 - key: Symbol.hasInstance,
273 - value: function value(target) {
274 - /**
275 - * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
276 - * its give's opportunity to mange capabilities of instanceOf operator.
277 - * saving current class each time will give option later to handle instanceOf manually.
278 - */
279 - var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]);
280 - if (target && !target.constructor.getInstanceType) return result;
281 - if (target) {
282 - if (!target.instanceTypes) target.instanceTypes = [];
283 - if (!result) {
284 - if (this.getInstanceType() === target.constructor.getInstanceType()) result = true;
285 - }
286 - if (result) {
287 - var name = this.getInstanceType === InstanceType.getInstanceType ? "BaseInstanceType" : this.getInstanceType();
288 - if (-1 === target.instanceTypes.indexOf(name)) target.instanceTypes.push(name);
289 - }
290 - }
291 - if (!result && target) result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType());
292 - return result;
293 - }
294 - }, {
295 - key: "getInstanceType",
296 - value: function getInstanceType() {
297 - elementorModules.ForceMethodImplementation();
298 - }
299 - }]);
300 - }();
2223 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2224 +Object.defineProperty(exports, "__esModule", ({
2225 + value: true
2226 +}));
2227 +exports["default"] = exports.Open = void 0;
2228 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2229 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2230 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2231 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
2232 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2233 +function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
2234 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
2235 +var Open = exports.Open = /*#__PURE__*/function (_$e$modules$CommandBa) {
2236 + function Open() {
2237 + (0, _classCallCheck2.default)(this, Open);
2238 + return _callSuper(this, Open, arguments);
2239 + }
2240 + (0, _inherits2.default)(Open, _$e$modules$CommandBa);
2241 + return (0, _createClass2.default)(Open, [{
2242 + key: "apply",
2243 + value: function apply(args) {
2244 + $e.route('app', args);
2245 + return true;
2246 + }
2247 + }]);
2248 +}($e.modules.CommandBase);
2249 +var _default = exports["default"] = Open;
301 2250
302 -//#endregion
303 -//#region assets/dev/js/editor/utils/is-instanceof.js
304 - function _createForOfIteratorHelper(r, e) {
305 - var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
306 - if (!t) {
307 - if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
308 - t && (r = t);
309 - var _n = 0;
310 - var F = function F() {};
311 - return {
312 - s: F,
313 - n: function n() {
314 - return _n >= r.length ? { done: !0 } : {
315 - done: !1,
316 - value: r[_n++]
317 - };
318 - },
319 - e: function e(r) {
320 - throw r;
321 - },
322 - f: F
323 - };
324 - }
325 - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
326 - }
327 - var o;
328 - var a = !0;
329 - var u = !1;
330 - return {
331 - s: function s() {
332 - t = t.call(r);
333 - },
334 - n: function n() {
335 - var r = t.next();
336 - return a = r.done, r;
337 - },
338 - e: function e(r) {
339 - u = !0, o = r;
340 - },
341 - f: function f() {
342 - try {
343 - a || null == t.return || t.return();
344 - } finally {
345 - if (u) throw o;
346 - }
347 - }
348 - };
349 - }
350 - function _unsupportedIterableToArray(r, a) {
351 - if (r) {
352 - if ("string" == typeof r) return _arrayLikeToArray(r, a);
353 - var t = {}.toString.call(r).slice(8, -1);
354 - return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
355 - }
356 - }
357 - function _arrayLikeToArray(r, a) {
358 - (null == a || a > r.length) && (a = r.length);
359 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
360 - return n;
361 - }
362 - /**
363 - * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved
364 - * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can
365 - * check whether it's instanceof by using the objects constructor and prototype names.
366 - *
367 - * @param object
368 - * @param constructors
369 - * @return {boolean}
370 - */
371 - var is_instanceof_default = /* @__PURE__ */ __name((function(object, constructors) {
372 - constructors = Array.isArray(constructors) ? constructors : [constructors];
373 - var _iterator = _createForOfIteratorHelper(constructors);
374 - var _step;
375 - try {
376 - for (_iterator.s(); !(_step = _iterator.n()).done;) {
377 - var constructor = _step.value;
378 - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) return true;
379 - }
380 - } catch (err) {
381 - _iterator.e(err);
382 - } finally {
383 - _iterator.f();
384 - }
385 - return false;
386 - }), "default");
2251 +/***/ }),
387 2252
388 -//#endregion
389 -//#region assets/dev/js/modules/imports/args-object.js
390 - init_typeof();
391 - function _callSuper$9(t, o, e) {
392 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$10() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
393 - }
394 - __name(_callSuper$9, "_callSuper");
395 - function _isNativeReflectConstruct$10() {
396 - try {
397 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
398 - } catch (t) {}
399 - return (_isNativeReflectConstruct$10 = function _isNativeReflectConstruct() {
400 - return !!t;
401 - })();
402 - }
403 - __name(_isNativeReflectConstruct$10, "_isNativeReflectConstruct");
404 - var ArgsObject = /*#__PURE__*/ function(_InstanceType) {
405 - /**
406 - * Function constructor().
407 - *
408 - * Create ArgsObject.
409 - *
410 - * @param {{}} args
411 - */
412 - function ArgsObject(args) {
413 - var _this;
414 - _classCallCheck(this, ArgsObject);
415 - _this = _callSuper$9(this, ArgsObject);
416 - _this.args = args;
417 - return _this;
418 - }
419 - /**
420 - * Function requireArgument().
421 - *
422 - * Validate property in args.
423 - *
424 - * @param {string} property
425 - * @param {{}} args
426 - *
427 - * @throws {Error}
428 - */
429 - _inherits(ArgsObject, _InstanceType);
430 - return _createClass(ArgsObject, [
431 - {
432 - key: "requireArgument",
433 - value: function requireArgument(property) {
434 - var args = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.args;
435 - if (!Object.prototype.hasOwnProperty.call(args, property)) throw Error("".concat(property, " is required."));
436 - }
437 - },
438 - {
439 - key: "requireArgumentType",
440 - value: function requireArgumentType(property, type) {
441 - var args = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.args;
442 - this.requireArgument(property, args);
443 - if (_typeof(args[property]) !== type) throw Error("".concat(property, " invalid type: ").concat(type, "."));
444 - }
445 - },
446 - {
447 - key: "requireArgumentInstance",
448 - value: function requireArgumentInstance(property, instance) {
449 - var args = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.args;
450 - this.requireArgument(property, args);
451 - if (!(args[property] instanceof instance) && !is_instanceof_default(args[property], instance)) throw Error("".concat(property, " invalid instance."));
452 - }
453 - },
454 - {
455 - key: "requireArgumentConstructor",
456 - value: function requireArgumentConstructor(property, type) {
457 - var args = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.args;
458 - this.requireArgument(property, args);
459 - if (args[property].constructor.toString() !== type.prototype.constructor.toString()) throw Error("".concat(property, " invalid constructor type."));
460 - }
461 - }
462 - ], [{
463 - key: "getInstanceType",
464 - value: function getInstanceType() {
465 - return "ArgsObject";
466 - }
467 - }]);
468 - }(InstanceType);
2253 +/***/ "../app/assets/js/loader/component.js":
2254 +/*!********************************************!*\
2255 + !*** ../app/assets/js/loader/component.js ***!
2256 + \********************************************/
2257 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
469 2258
470 -//#endregion
471 -//#region modules/web-cli/assets/js/utils/console.js
472 - var Console = /*#__PURE__*/ function() {
473 - function Console() {
474 - _classCallCheck(this, Console);
475 - }
476 - return _createClass(Console, null, [{
477 - key: "error",
478 - value: function error(message) {
479 - if ($e.devTools) $e.devTools.log.error(message);
480 - if (!(message instanceof $e.modules.HookBreak)) console.error(message);
481 - }
482 - }, {
483 - key: "warn",
484 - value: function warn() {
485 - var _console;
486 - var style = "font-size: 12px; background-image: url(\"".concat(elementorWebCliConfig.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;");
487 - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
488 - args.unshift("%c %c", style, "");
489 - (_console = console).warn.apply(_console, args);
490 - }
491 - }]);
492 - }();
2259 +"use strict";
493 2260
494 -//#endregion
495 -//#region modules/web-cli/assets/js/utils/deprecation.js
2261 +
2262 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2263 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
2264 +Object.defineProperty(exports, "__esModule", ({
2265 + value: true
2266 +}));
2267 +exports["default"] = void 0;
2268 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2269 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2270 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2271 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
2272 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2273 +var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../modules/web-cli/assets/js/modules/component-base.js"));
2274 +var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../app/assets/js/loader/commands/index.js"));
2275 +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
2276 +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
2277 +function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
2278 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
2279 +var Component = exports["default"] = /*#__PURE__*/function (_ComponentModalBase) {
2280 + function Component() {
2281 + (0, _classCallCheck2.default)(this, Component);
2282 + return _callSuper(this, Component, arguments);
2283 + }
2284 + (0, _inherits2.default)(Component, _ComponentModalBase);
2285 + return (0, _createClass2.default)(Component, [{
2286 + key: "getNamespace",
2287 + value: function getNamespace() {
2288 + return 'app';
2289 + }
2290 + }, {
2291 + key: "defaultRoutes",
2292 + value: function defaultRoutes() {
2293 + var _this = this;
2294 + return {
2295 + '': function _(args) {
2296 + args.url = args.url || elementorAppConfig.menu_url;
2297 + $e.run('app/load', args);
2298 + _this.iframe.style.display = '';
2299 + document.body.style.overflow = 'hidden';
2300 + }
2301 + };
2302 + }
2303 + }, {
2304 + key: "defaultCommands",
2305 + value: function defaultCommands() {
2306 + return this.importCommands(commands);
2307 + }
2308 + }, {
2309 + key: "defaultShortcuts",
2310 + value: function defaultShortcuts() {
2311 + return {
2312 + '': {
2313 + keys: 'ctrl+shift+e'
2314 + },
2315 + close: {
2316 + keys: 'esc',
2317 + scopes: [this.getNamespace()]
2318 + }
2319 + };
2320 + }
2321 + }]);
2322 +}(_componentBase.default);
2323 +
2324 +/***/ }),
2325 +
2326 +/***/ "../assets/dev/js/editor/utils/is-instanceof.js":
2327 +/*!******************************************************!*\
2328 + !*** ../assets/dev/js/editor/utils/is-instanceof.js ***!
2329 + \******************************************************/
2330 +/***/ ((__unused_webpack_module, exports) => {
2331 +
2332 +"use strict";
2333 +
2334 +
2335 +Object.defineProperty(exports, "__esModule", ({
2336 + value: true
2337 +}));
2338 +exports["default"] = void 0;
2339 +function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
2340 +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
2341 +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
496 2342 /**
497 - * @typedef {Object} Version
498 - * @property {number} major1 The first number
499 - * @property {number} major2 The second number
500 - * @property {number} minor The third number
501 - * @property {string} build The fourth number
502 - */
503 - var softDeprecated = function softDeprecated(name, version, replacement) {
504 - if (elementorWebCliConfig.isDebug) deprecatedMessage("soft", name, version, replacement);
505 - };
506 - var hardDeprecated = function hardDeprecated(name, version, replacement) {
507 - deprecatedMessage("hard", name, version, replacement);
508 - };
509 - var deprecatedMessage = function deprecatedMessage(type, name, version, replacement) {
510 - var message = "`".concat(name, "` is ").concat(type, " deprecated since ").concat(version);
511 - if (replacement) message += " - Use `".concat(replacement, "` instead");
512 - Console.warn(message);
513 - };
514 - var Deprecation = /*#__PURE__*/ function() {
515 - function Deprecation() {
516 - _classCallCheck(this, Deprecation);
517 - }
518 - return _createClass(Deprecation, null, [
519 - {
520 - key: "deprecated",
521 - value: function deprecated(name, version, replacement) {
522 - if (this.isHardDeprecated(version)) hardDeprecated(name, version, replacement);
523 - else softDeprecated(name, version, replacement);
524 - }
525 - },
526 - {
527 - key: "parseVersion",
528 - value: function parseVersion(version) {
529 - var versionParts = version.split(".");
530 - if (versionParts.length < 3 || versionParts.length > 4) throw new RangeError("Invalid Semantic Version string provided");
531 - var _versionParts = _slicedToArray(versionParts, 4);
532 - var major1 = _versionParts[0];
533 - var major2 = _versionParts[1];
534 - var minor = _versionParts[2];
535 - var _versionParts$ = _versionParts[3];
536 - return {
537 - major1: parseInt(major1),
538 - major2: parseInt(major2),
539 - minor: parseInt(minor),
540 - build: _versionParts$ === void 0 ? "" : _versionParts$
541 - };
542 - }
543 - },
544 - {
545 - key: "getTotalMajor",
546 - value: function getTotalMajor(versionObj) {
547 - var total = parseInt("".concat(versionObj.major1).concat(versionObj.major2, "0"));
548 - total = Number((total / 10).toFixed(0));
549 - if (versionObj.major2 > 9) total = versionObj.major2 - 9;
550 - return total;
551 - }
552 - },
553 - {
554 - key: "compareVersion",
555 - value: function compareVersion(version1, version2) {
556 - var _this = this;
557 - return [this.parseVersion(version1), this.parseVersion(version2)].map(function(versionObj) {
558 - return _this.getTotalMajor(versionObj);
559 - }).reduce(function(acc, major) {
560 - return acc - major;
561 - });
562 - }
563 - },
564 - {
565 - key: "isSoftDeprecated",
566 - value: function isSoftDeprecated(version) {
567 - return this.compareVersion(version, elementorWebCliConfig.version) <= 4;
568 - }
569 - },
570 - {
571 - key: "isHardDeprecated",
572 - value: function isHardDeprecated(version) {
573 - var total = this.compareVersion(version, elementorWebCliConfig.version);
574 - return total < 0 || total >= 8;
575 - }
576 - }
577 - ]);
578 - }();
2343 + * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved
2344 + * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can
2345 + * check whether it's instanceof by using the objects constructor and prototype names.
2346 + *
2347 + * @param object
2348 + * @param constructors
2349 + * @return {boolean}
2350 + */
2351 +var _default = exports["default"] = function _default(object, constructors) {
2352 + constructors = Array.isArray(constructors) ? constructors : [constructors];
2353 + var _iterator = _createForOfIteratorHelper(constructors),
2354 + _step;
2355 + try {
2356 + for (_iterator.s(); !(_step = _iterator.n()).done;) {
2357 + var _constructor = _step.value;
2358 + if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) {
2359 + return true;
2360 + }
2361 + }
2362 + } catch (err) {
2363 + _iterator.e(err);
2364 + } finally {
2365 + _iterator.f();
2366 + }
2367 + return false;
2368 +};
579 2369
580 -//#endregion
581 -//#region modules/web-cli/assets/js/modules/command-infra.js
582 - function _callSuper$8(t, o, e) {
583 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$9() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
584 - }
585 - __name(_callSuper$8, "_callSuper");
586 - function _isNativeReflectConstruct$9() {
587 - try {
588 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
589 - } catch (t) {}
590 - return (_isNativeReflectConstruct$9 = function _isNativeReflectConstruct() {
591 - return !!t;
592 - })();
593 - }
594 - __name(_isNativeReflectConstruct$9, "_isNativeReflectConstruct");
595 - /**
596 - * @typedef {import('../modules/component-base')} ComponentBase
597 - */
598 - var CommandInfra = /*#__PURE__*/ function(_ArgsObject) {
599 - /**
600 - * Function constructor().
601 - *
602 - * Create Commands Base.
603 - *
604 - * @param {{}} args
605 - */
606 - function CommandInfra() {
607 - var _this;
608 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
609 - _classCallCheck(this, CommandInfra);
610 - _this = _callSuper$8(this, CommandInfra, [args]);
611 - if (!_this.constructor.registerConfig) throw RangeError("Doing it wrong: Each command type should have `registerConfig`.");
612 - _this.command = _this.constructor.getCommand();
613 - _this.component = _this.constructor.getComponent();
614 - _this.initialize(args);
615 - args = _this.args;
616 - _this.validateArgs(args);
617 - return _this;
618 - }
619 - /**
620 - * Function initialize().
621 - *
622 - * Initialize command, called after construction.
623 - *
624 - * @param {{}} args
625 - */
626 - _inherits(CommandInfra, _ArgsObject);
627 - return _createClass(CommandInfra, [
628 - {
629 - key: "currentCommand",
630 - get: function get() {
631 - Deprecation.deprecated("this.currentCommand", "3.7.0", "this.command");
632 - return this.command;
633 - }
634 - },
635 - {
636 - key: "initialize",
637 - value: function initialize() {
638 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
639 - }
640 - },
641 - {
642 - key: "validateArgs",
643 - value: function validateArgs() {
644 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
645 - }
646 - },
647 - {
648 - key: "apply",
649 - value: function apply() {
650 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
651 - elementorModules.ForceMethodImplementation();
652 - }
653 - },
654 - {
655 - key: "run",
656 - value: function run() {
657 - return this.apply(this.args);
658 - }
659 - },
660 - {
661 - key: "onBeforeRun",
662 - value: function onBeforeRun() {
663 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
664 - }
665 - },
666 - {
667 - key: "onAfterRun",
668 - value: function onAfterRun() {
669 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
670 - arguments.length > 1 && arguments[1];
671 - }
672 - },
673 - {
674 - key: "onBeforeApply",
675 - value: function onBeforeApply() {
676 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
677 - }
678 - },
679 - {
680 - key: "onAfterApply",
681 - value: function onAfterApply() {
682 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
683 - arguments.length > 1 && arguments[1];
684 - }
685 - },
686 - {
687 - key: "onCatchApply",
688 - value: function onCatchApply(e) {}
689 - }
690 - ], [
691 - {
692 - key: "getInstanceType",
693 - value: function getInstanceType() {
694 - return "CommandInfra";
695 - }
696 - },
697 - {
698 - key: "getInfo",
699 - value: function getInfo() {
700 - return {};
701 - }
702 - },
703 - {
704 - key: "getCommand",
705 - value: function getCommand() {
706 - return this.registerConfig.command;
707 - }
708 - },
709 - {
710 - key: "getComponent",
711 - value: function getComponent() {
712 - return this.registerConfig.component;
713 - }
714 - },
715 - {
716 - key: "setRegisterConfig",
717 - value: function setRegisterConfig(config) {
718 - this.registerConfig = Object.freeze(config);
719 - }
720 - }
721 - ]);
722 - }(ArgsObject);
723 - /**
724 - * @type {Object}
725 - */
726 - _defineProperty(CommandInfra, "registerConfig", null);
2370 +/***/ }),
727 2371
728 -//#endregion
729 -//#region modules/web-cli/assets/js/modules/command-base.js
730 - function _callSuper$7(t, o, e) {
731 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$8() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
732 - }
733 - __name(_callSuper$7, "_callSuper");
734 - function _isNativeReflectConstruct$8() {
735 - try {
736 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
737 - } catch (t) {}
738 - return (_isNativeReflectConstruct$8 = function _isNativeReflectConstruct() {
739 - return !!t;
740 - })();
741 - }
742 - __name(_isNativeReflectConstruct$8, "_isNativeReflectConstruct");
743 - /**
744 - * @name $e.modules.CommandBase
745 - */
746 - var CommandBase = /*#__PURE__*/ function(_CommandInfra) {
747 - function CommandBase() {
748 - _classCallCheck(this, CommandBase);
749 - return _callSuper$7(this, CommandBase, arguments);
750 - }
751 - _inherits(CommandBase, _CommandInfra);
752 - return _createClass(CommandBase, [
753 - {
754 - key: "onBeforeRun",
755 - value: function onBeforeRun() {
756 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
757 - $e.hooks.runUIBefore(this.command, args);
758 - }
759 - },
760 - {
761 - key: "onAfterRun",
762 - value: function onAfterRun() {
763 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
764 - var result = arguments.length > 1 ? arguments[1] : void 0;
765 - $e.hooks.runUIAfter(this.command, args, result);
766 - }
767 - },
768 - {
769 - key: "onBeforeApply",
770 - value: function onBeforeApply() {
771 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
772 - $e.hooks.runDataDependency(this.command, args);
773 - }
774 - },
775 - {
776 - key: "onAfterApply",
777 - value: function onAfterApply() {
778 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
779 - var result = arguments.length > 1 ? arguments[1] : void 0;
780 - return $e.hooks.runDataAfter(this.command, args, result);
781 - }
782 - },
783 - {
784 - key: "onCatchApply",
785 - value: function onCatchApply(e) {
786 - this.runCatchHooks(e);
787 - }
788 - },
789 - {
790 - key: "runCatchHooks",
791 - value: function runCatchHooks(e) {
792 - $e.hooks.runDataCatch(this.command, this.args, e);
793 - $e.hooks.runUICatch(this.command, this.args, e);
794 - }
795 - },
796 - {
797 - key: "requireContainer",
798 - value: function requireContainer() {
799 - var _this = this;
800 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.args;
801 - Deprecation.deprecated("requireContainer()", "3.7.0", "Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`");
802 - if (!args.container && !args.containers) throw Error("container or containers are required.");
803 - if (args.container && args.containers) throw Error("container and containers cannot go together please select one of them.");
804 - (args.containers || [args.container]).forEach(function(container) {
805 - _this.requireArgumentInstance("container", elementorModules.editor.Container, { container });
806 - });
807 - }
808 - }
809 - ], [{
810 - key: "getInstanceType",
811 - value: function getInstanceType() {
812 - return "CommandBase";
813 - }
814 - }]);
815 - }(CommandInfra);
2372 +/***/ "../assets/dev/js/modules/imports/args-object.js":
2373 +/*!*******************************************************!*\
2374 + !*** ../assets/dev/js/modules/imports/args-object.js ***!
2375 + \*******************************************************/
2376 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
816 2377
817 -//#endregion
818 -//#region modules/web-cli/assets/js/modules/command-callback-base.js
819 - function _callSuper$6(t, o, e) {
820 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$7() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
821 - }
822 - __name(_callSuper$6, "_callSuper");
823 - function _isNativeReflectConstruct$7() {
824 - try {
825 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
826 - } catch (t) {}
827 - return (_isNativeReflectConstruct$7 = function _isNativeReflectConstruct() {
828 - return !!t;
829 - })();
830 - }
831 - __name(_isNativeReflectConstruct$7, "_isNativeReflectConstruct");
832 - /**
833 - * To support pure callbacks in the API(commands.js), to ensure they have registered with the proper context.
834 - */
835 - var CommandCallbackBase = /*#__PURE__*/ function(_CommandBase) {
836 - function CommandCallbackBase() {
837 - _classCallCheck(this, CommandCallbackBase);
838 - return _callSuper$6(this, CommandCallbackBase, arguments);
839 - }
840 - _inherits(CommandCallbackBase, _CommandBase);
841 - return _createClass(CommandCallbackBase, [{
842 - key: "apply",
843 - value: function apply() {
844 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
845 - return this.constructor.getCallback()(args);
846 - }
847 - }], [{
848 - key: "getInstanceType",
849 - value: function getInstanceType() {
850 - return "CommandCallbackBase";
851 - }
852 - }, {
853 - key: "getCallback",
854 - value: function getCallback() {
855 - return this.registerConfig.callback;
856 - }
857 - }]);
858 - }(CommandBase);
2378 +"use strict";
859 2379
860 -//#endregion
861 -//#region assets/dev/js/modules/imports/module.js
862 - var require_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
863 - init_typeof();
864 - var Module = function Module() {
865 - var $ = jQuery;
866 - var instanceParams = arguments;
867 - var self = this;
868 - var events = {};
869 - var settings;
870 - var ensureClosureMethods = function ensureClosureMethods() {
871 - $.each(self, function(methodName) {
872 - var oldMethod = self[methodName];
873 - if ("function" !== typeof oldMethod) return;
874 - self[methodName] = function() {
875 - return oldMethod.apply(self, arguments);
876 - };
877 - });
878 - };
879 - var initSettings = function initSettings() {
880 - settings = self.getDefaultSettings();
881 - var instanceSettings = instanceParams[0];
882 - if (instanceSettings) $.extend(true, settings, instanceSettings);
883 - };
884 - var init = function init() {
885 - self.__construct.apply(self, instanceParams);
886 - ensureClosureMethods();
887 - initSettings();
888 - self.trigger("init");
889 - };
890 - this.getItems = function(items, itemKey) {
891 - if (itemKey) {
892 - var keyStack = itemKey.split(".");
893 - var currentKey = keyStack.splice(0, 1);
894 - if (!keyStack.length) return items[currentKey];
895 - if (!items[currentKey]) return;
896 - return this.getItems(items[currentKey], keyStack.join("."));
897 - }
898 - return items;
899 - };
900 - this.getSettings = function(setting) {
901 - return this.getItems(settings, setting);
902 - };
903 - this.setSettings = function(settingKey, value, settingsContainer) {
904 - if (!settingsContainer) settingsContainer = settings;
905 - if ("object" === _typeof(settingKey)) {
906 - $.extend(settingsContainer, settingKey);
907 - return self;
908 - }
909 - var keyStack = settingKey.split(".");
910 - var currentKey = keyStack.splice(0, 1);
911 - if (!keyStack.length) {
912 - settingsContainer[currentKey] = value;
913 - return self;
914 - }
915 - if (!settingsContainer[currentKey]) settingsContainer[currentKey] = {};
916 - return self.setSettings(keyStack.join("."), value, settingsContainer[currentKey]);
917 - };
918 - this.getErrorMessage = function(type, functionName) {
919 - var message;
920 - switch (type) {
921 - case "forceMethodImplementation":
922 - message = "The method '".concat(functionName, "' must to be implemented in the inheritor child.");
923 - break;
924 - default: message = "An error occurs";
925 - }
926 - return message;
927 - };
928 - this.forceMethodImplementation = function(functionName) {
929 - throw new Error(this.getErrorMessage("forceMethodImplementation", functionName));
930 - };
931 - this.on = function(eventName, callback) {
932 - if ("object" === _typeof(eventName)) {
933 - $.each(eventName, function(singleEventName) {
934 - self.on(singleEventName, this);
935 - });
936 - return self;
937 - }
938 - eventName.split(" ").forEach(function(singleEventName) {
939 - if (!events[singleEventName]) events[singleEventName] = [];
940 - events[singleEventName].push(callback);
941 - });
942 - return self;
943 - };
944 - this.off = function(eventName, callback) {
945 - if (!events[eventName]) return self;
946 - if (!callback) {
947 - delete events[eventName];
948 - return self;
949 - }
950 - var callbackIndex = events[eventName].indexOf(callback);
951 - if (-1 !== callbackIndex) {
952 - delete events[eventName][callbackIndex];
953 - events[eventName] = events[eventName].filter(function(val) {
954 - return val;
955 - });
956 - }
957 - return self;
958 - };
959 - this.trigger = function(eventName) {
960 - var methodName = "on" + eventName[0].toUpperCase() + eventName.slice(1);
961 - var params = Array.prototype.slice.call(arguments, 1);
962 - if (self[methodName]) self[methodName].apply(self, params);
963 - var callbacks = events[eventName];
964 - if (!callbacks) return self;
965 - $.each(callbacks, function(index, callback) {
966 - callback.apply(self, params);
967 - });
968 - return self;
969 - };
970 - init();
971 - };
972 - Module.prototype.__construct = function() {};
973 - Module.prototype.getDefaultSettings = function() {
974 - return {};
975 - };
976 - Module.prototype.getConstructorID = function() {
977 - return this.constructor.name;
978 - };
979 - Module.extend = function(properties) {
980 - var $ = jQuery;
981 - var parent = this;
982 - var child = function child() {
983 - return parent.apply(this, arguments);
984 - };
985 - $.extend(child, parent);
986 - child.prototype = Object.create($.extend({}, parent.prototype, properties));
987 - child.prototype.constructor = child;
988 - child.__super__ = parent.prototype;
989 - return child;
990 - };
991 - module.exports = Module;
992 - }));
993 2380
994 -//#endregion
995 -//#region node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
996 -var import_module = /* @__PURE__ */ __toESM(require_module());
997 - function _isNativeFunction(t) {
998 - try {
999 - return -1 !== Function.toString.call(t).indexOf("[native code]");
1000 - } catch (n) {
1001 - return "function" == typeof t;
1002 - }
1003 - }
2381 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2382 +Object.defineProperty(exports, "__esModule", ({
2383 + value: true
2384 +}));
2385 +exports["default"] = void 0;
2386 +var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
2387 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2388 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2389 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2390 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
2391 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2392 +var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js"));
2393 +var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js"));
2394 +function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
2395 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
2396 +var ArgsObject = exports["default"] = /*#__PURE__*/function (_InstanceType) {
2397 + /**
2398 + * Function constructor().
2399 + *
2400 + * Create ArgsObject.
2401 + *
2402 + * @param {{}} args
2403 + */
2404 + function ArgsObject(args) {
2405 + var _this;
2406 + (0, _classCallCheck2.default)(this, ArgsObject);
2407 + _this = _callSuper(this, ArgsObject);
2408 + _this.args = args;
2409 + return _this;
2410 + }
1004 2411
1005 -//#endregion
1006 -//#region node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
1007 - function _isNativeReflectConstruct$6() {
1008 - try {
1009 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1010 - } catch (t) {}
1011 - return (_isNativeReflectConstruct$6 = function _isNativeReflectConstruct() {
1012 - return !!t;
1013 - })();
1014 - }
1015 - __name(_isNativeReflectConstruct$6, "_isNativeReflectConstruct");
2412 + /**
2413 + * Function requireArgument().
2414 + *
2415 + * Validate property in args.
2416 + *
2417 + * @param {string} property
2418 + * @param {{}} args
2419 + *
2420 + * @throws {Error}
2421 + */
2422 + (0, _inherits2.default)(ArgsObject, _InstanceType);
2423 + return (0, _createClass2.default)(ArgsObject, [{
2424 + key: "requireArgument",
2425 + value: function requireArgument(property) {
2426 + var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args;
2427 + if (!Object.prototype.hasOwnProperty.call(args, property)) {
2428 + throw Error("".concat(property, " is required."));
2429 + }
2430 + }
1016 2431
1017 -//#endregion
1018 -//#region node_modules/@babel/runtime/helpers/esm/construct.js
1019 - function _construct(t, e, r) {
1020 - if (_isNativeReflectConstruct$6()) return Reflect.construct.apply(null, arguments);
1021 - var o = [null];
1022 - o.push.apply(o, e);
1023 - var p = new (t.bind.apply(t, o))();
1024 - return r && _setPrototypeOf(p, r.prototype), p;
1025 - }
2432 + /**
2433 + * Function requireArgumentType().
2434 + *
2435 + * Validate property in args using `type === typeof(args.whatever)`.
2436 + *
2437 + * @param {string} property
2438 + * @param {string} type
2439 + * @param {{}} args
2440 + *
2441 + * @throws {Error}
2442 + */
2443 + }, {
2444 + key: "requireArgumentType",
2445 + value: function requireArgumentType(property, type) {
2446 + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
2447 + this.requireArgument(property, args);
2448 + if ((0, _typeof2.default)(args[property]) !== type) {
2449 + throw Error("".concat(property, " invalid type: ").concat(type, "."));
2450 + }
2451 + }
1026 2452
1027 -//#endregion
1028 -//#region node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
1029 - function _wrapNativeSuper(t) {
1030 - var r = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
1031 - return _wrapNativeSuper = function _wrapNativeSuper(t) {
1032 - if (null === t || !_isNativeFunction(t)) return t;
1033 - if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
1034 - if (void 0 !== r) {
1035 - if (r.has(t)) return r.get(t);
1036 - r.set(t, Wrapper);
1037 - }
1038 - function Wrapper() {
1039 - return _construct(t, arguments, _getPrototypeOf(this).constructor);
1040 - }
1041 - return Wrapper.prototype = Object.create(t.prototype, { constructor: {
1042 - value: Wrapper,
1043 - enumerable: !1,
1044 - writable: !0,
1045 - configurable: !0
1046 - } }), _setPrototypeOf(Wrapper, t);
1047 - }, _wrapNativeSuper(t);
1048 - }
2453 + /**
2454 + * Function requireArgumentInstance().
2455 + *
2456 + * Validate property in args using `args.whatever instanceof instance`.
2457 + *
2458 + * @param {string} property
2459 + * @param {*} instance
2460 + * @param {{}} args
2461 + *
2462 + * @throws {Error}
2463 + */
2464 + }, {
2465 + key: "requireArgumentInstance",
2466 + value: function requireArgumentInstance(property, instance) {
2467 + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
2468 + this.requireArgument(property, args);
2469 + if (!(args[property] instanceof instance) && !(0, _isInstanceof.default)(args[property], instance)) {
2470 + throw Error("".concat(property, " invalid instance."));
2471 + }
2472 + }
1049 2473
1050 -//#endregion
1051 -//#region modules/web-cli/assets/js/utils/force-method-implementation.js
1052 - function _callSuper$5(t, o, e) {
1053 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$5() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1054 - }
1055 - __name(_callSuper$5, "_callSuper");
1056 - function _isNativeReflectConstruct$5() {
1057 - try {
1058 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1059 - } catch (t) {}
1060 - return (_isNativeReflectConstruct$5 = function _isNativeReflectConstruct() {
1061 - return !!t;
1062 - })();
1063 - }
1064 - __name(_isNativeReflectConstruct$5, "_isNativeReflectConstruct");
1065 - var ForceMethodImplementation = /*#__PURE__*/ function(_Error) {
1066 - function ForceMethodImplementation() {
1067 - var _this;
1068 - var info = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1069 - _classCallCheck(this, ForceMethodImplementation);
1070 - _this = _callSuper$5(this, ForceMethodImplementation, ["".concat(info.isStatic ? "static " : "").concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality.")]);
1071 - Error.captureStackTrace(_this, ForceMethodImplementation);
1072 - return _this;
1073 - }
1074 - _inherits(ForceMethodImplementation, _Error);
1075 - return _createClass(ForceMethodImplementation);
1076 - }(/*#__PURE__*/ _wrapNativeSuper(Error));
1077 - var force_method_implementation_default = /* @__PURE__ */ __name((function() {
1078 - var caller = Error().stack.split("\n")[2].trim();
1079 - var callerName = caller.startsWith("at new") ? "constructor" : caller.split(" ")[1];
1080 - var info = {};
1081 - info.functionName = callerName;
1082 - info.fullName = callerName;
1083 - if (info.functionName.includes(".")) {
1084 - var parts = info.functionName.split(".");
1085 - info.className = parts[0];
1086 - info.functionName = parts[1];
1087 - } else info.isStatic = true;
1088 - throw new ForceMethodImplementation(info);
1089 - }), "default");
2474 + /**
2475 + * Function requireArgumentConstructor().
2476 + *
2477 + * Validate property in args using `type === args.whatever.constructor`.
2478 + *
2479 + * @param {string} property
2480 + * @param {*} type
2481 + * @param {{}} args
2482 + *
2483 + * @throws {Error}
2484 + */
2485 + }, {
2486 + key: "requireArgumentConstructor",
2487 + value: function requireArgumentConstructor(property, type) {
2488 + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
2489 + this.requireArgument(property, args);
1090 2490
1091 -//#endregion
1092 -//#region modules/web-cli/assets/js/modules/component-base.js
1093 - function ownKeys(e, r) {
1094 - var t = Object.keys(e);
1095 - if (Object.getOwnPropertySymbols) {
1096 - var o = Object.getOwnPropertySymbols(e);
1097 - r && (o = o.filter(function(r) {
1098 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
1099 - })), t.push.apply(t, o);
1100 - }
1101 - return t;
1102 - }
1103 - function _objectSpread(e) {
1104 - for (var r = 1; r < arguments.length; r++) {
1105 - var t = null != arguments[r] ? arguments[r] : {};
1106 - r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
1107 - _defineProperty(e, r, t[r]);
1108 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
1109 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
1110 - });
1111 - }
1112 - return e;
1113 - }
1114 - function _callSuper$4(t, o, e) {
1115 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$4() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1116 - }
1117 - __name(_callSuper$4, "_callSuper");
1118 - function _isNativeReflectConstruct$4() {
1119 - try {
1120 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1121 - } catch (t) {}
1122 - return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() {
1123 - return !!t;
1124 - })();
1125 - }
1126 - __name(_isNativeReflectConstruct$4, "_isNativeReflectConstruct");
1127 - /**
1128 - * @typedef {import('./command-infra')} CommandInfra
1129 - * @typedef {import('./hook-base')} HookBase
1130 - * @typedef {import('../core/states/ui-state-base')} UiStateBase
1131 - */
1132 - var ComponentBase = /*#__PURE__*/ function(_Module) {
1133 - function ComponentBase() {
1134 - _classCallCheck(this, ComponentBase);
1135 - return _callSuper$4(this, ComponentBase, arguments);
1136 - }
1137 - _inherits(ComponentBase, _Module);
1138 - return _createClass(ComponentBase, [
1139 - {
1140 - key: "__construct",
1141 - value: function __construct() {
1142 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1143 - if (args.manager) this.manager = args.manager;
1144 - this.commands = this.defaultCommands();
1145 - this.commandsInternal = this.defaultCommandsInternal();
1146 - this.hooks = this.defaultHooks();
1147 - this.routes = this.defaultRoutes();
1148 - this.tabs = this.defaultTabs();
1149 - this.shortcuts = this.defaultShortcuts();
1150 - this.utils = this.defaultUtils();
1151 - this.data = this.defaultData();
1152 - this.uiStates = this.defaultUiStates();
1153 - this.states = this.defaultStates();
1154 - this.defaultRoute = "";
1155 - this.currentTab = "";
1156 - }
1157 - },
1158 - {
1159 - key: "registerAPI",
1160 - value: function registerAPI() {
1161 - var _this = this;
1162 - Object.entries(this.getTabs()).forEach(function(tab) {
1163 - return _this.registerTabRoute(tab[0]);
1164 - });
1165 - Object.entries(this.getRoutes()).forEach(function(_ref) {
1166 - var _ref2 = _slicedToArray(_ref, 2);
1167 - var route = _ref2[0];
1168 - var callback = _ref2[1];
1169 - return _this.registerRoute(route, callback);
1170 - });
1171 - Object.entries(this.getCommands()).forEach(function(_ref3) {
1172 - var _ref4 = _slicedToArray(_ref3, 2);
1173 - var command = _ref4[0];
1174 - var callback = _ref4[1];
1175 - return _this.registerCommand(command, callback);
1176 - });
1177 - Object.entries(this.getCommandsInternal()).forEach(function(_ref5) {
1178 - var _ref6 = _slicedToArray(_ref5, 2);
1179 - var command = _ref6[0];
1180 - var callback = _ref6[1];
1181 - return _this.registerCommandInternal(command, callback);
1182 - });
1183 - Object.values(this.getHooks()).forEach(function(instance) {
1184 - return _this.registerHook(instance);
1185 - });
1186 - Object.entries(this.getData()).forEach(function(_ref7) {
1187 - var _ref8 = _slicedToArray(_ref7, 2);
1188 - var command = _ref8[0];
1189 - var callback = _ref8[1];
1190 - return _this.registerData(command, callback);
1191 - });
1192 - Object.values(this.getUiStates()).forEach(function(instance) {
1193 - return _this.registerUiState(instance);
1194 - });
1195 - Object.entries(this.getStates()).forEach(function(_ref9) {
1196 - var _ref0 = _slicedToArray(_ref9, 2);
1197 - var id = _ref0[0];
1198 - var state = _ref0[1];
1199 - return _this.registerState(id, state);
1200 - });
1201 - }
1202 - },
1203 - {
1204 - key: "getNamespace",
1205 - value: function getNamespace() {
1206 - force_method_implementation_default();
1207 - }
1208 - },
1209 - {
1210 - key: "getRootContainer",
1211 - value: function getRootContainer() {
1212 - Deprecation.deprecated("getRootContainer()", "3.7.0", "getServiceName()");
1213 - return this.getServiceName();
1214 - }
1215 - },
1216 - {
1217 - key: "getServiceName",
1218 - value: function getServiceName() {
1219 - return this.getNamespace().split("/")[0];
1220 - }
1221 - },
1222 - {
1223 - key: "store",
1224 - get: function get() {
1225 - return $e.store.get(this.getNamespace());
1226 - }
1227 - },
1228 - {
1229 - key: "defaultTabs",
1230 - value: function defaultTabs() {
1231 - return {};
1232 - }
1233 - },
1234 - {
1235 - key: "defaultRoutes",
1236 - value: function defaultRoutes() {
1237 - return {};
1238 - }
1239 - },
1240 - {
1241 - key: "defaultCommands",
1242 - value: function defaultCommands() {
1243 - return {};
1244 - }
1245 - },
1246 - {
1247 - key: "defaultCommandsInternal",
1248 - value: function defaultCommandsInternal() {
1249 - return {};
1250 - }
1251 - },
1252 - {
1253 - key: "defaultHooks",
1254 - value: function defaultHooks() {
1255 - return {};
1256 - }
1257 - },
1258 - {
1259 - key: "defaultUiStates",
1260 - value: function defaultUiStates() {
1261 - return {};
1262 - }
1263 - },
1264 - {
1265 - key: "defaultStates",
1266 - value: function defaultStates() {
1267 - return {};
1268 - }
1269 - },
1270 - {
1271 - key: "defaultShortcuts",
1272 - value: function defaultShortcuts() {
1273 - return {};
1274 - }
1275 - },
1276 - {
1277 - key: "defaultUtils",
1278 - value: function defaultUtils() {
1279 - return {};
1280 - }
1281 - },
1282 - {
1283 - key: "defaultData",
1284 - value: function defaultData() {
1285 - return {};
1286 - }
1287 - },
1288 - {
1289 - key: "getCommands",
1290 - value: function getCommands() {
1291 - return this.commands;
1292 - }
1293 - },
1294 - {
1295 - key: "getCommandsInternal",
1296 - value: function getCommandsInternal() {
1297 - return this.commandsInternal;
1298 - }
1299 - },
1300 - {
1301 - key: "getHooks",
1302 - value: function getHooks() {
1303 - return this.hooks;
1304 - }
1305 - },
1306 - {
1307 - key: "getUiStates",
1308 - value: function getUiStates() {
1309 - return this.uiStates;
1310 - }
1311 - },
1312 - {
1313 - key: "getStates",
1314 - value: function getStates() {
1315 - return this.states;
1316 - }
1317 - },
1318 - {
1319 - key: "getRoutes",
1320 - value: function getRoutes() {
1321 - return this.routes;
1322 - }
1323 - },
1324 - {
1325 - key: "getTabs",
1326 - value: function getTabs() {
1327 - return this.tabs;
1328 - }
1329 - },
1330 - {
1331 - key: "getShortcuts",
1332 - value: function getShortcuts() {
1333 - return this.shortcuts;
1334 - }
1335 - },
1336 - {
1337 - key: "getData",
1338 - value: function getData() {
1339 - return this.data;
1340 - }
1341 - },
1342 - {
1343 - key: "registerCommand",
1344 - value: function registerCommand(command, context) {
1345 - var commandsType = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "default";
1346 - var commandsManager;
1347 - switch (commandsType) {
1348 - case "default":
1349 - commandsManager = $e.commands;
1350 - break;
1351 - case "internal":
1352 - commandsManager = $e.commandsInternal;
1353 - break;
1354 - case "data":
1355 - commandsManager = $e.data;
1356 - break;
1357 - default: throw new Error("Invalid commands type: '".concat(command, "'"));
1358 - }
1359 - var fullCommand = this.getNamespace() + "/" + command;
1360 - var instanceType = context.getInstanceType ? context.getInstanceType() : false;
1361 - var registerConfig = {
1362 - command: fullCommand,
1363 - component: this
1364 - };
1365 - if (!instanceType) {
1366 - if ($e.devTools) $e.devTools.log.warn("Attach command-callback-base, on command: '".concat(fullCommand, "', context is unknown type."));
1367 - registerConfig.callback = context;
1368 - context = /*#__PURE__*/ function(_CommandCallbackBase) {
1369 - function context() {
1370 - _classCallCheck(this, context);
1371 - return _callSuper$4(this, context, arguments);
1372 - }
1373 - _inherits(context, _CommandCallbackBase);
1374 - return _createClass(context);
1375 - }(CommandCallbackBase);
1376 - }
1377 - context.setRegisterConfig(registerConfig);
1378 - commandsManager.register(this, command, context);
1379 - }
1380 - },
1381 - {
1382 - key: "registerHook",
1383 - value: function registerHook(instance) {
1384 - return instance.register();
1385 - }
1386 - },
1387 - {
1388 - key: "registerCommandInternal",
1389 - value: function registerCommandInternal(command, context) {
1390 - this.registerCommand(command, context, "internal");
1391 - }
1392 - },
1393 - {
1394 - key: "registerUiState",
1395 - value: function registerUiState(instance) {
1396 - $e.uiStates.register(instance);
1397 - }
1398 - },
1399 - {
1400 - key: "registerState",
1401 - value: function registerState(id, stateConfig) {
1402 - id = this.getNamespace() + (id ? "/".concat(id) : "");
1403 - var slice = (0, _reduxjs_toolkit.createSlice)(_objectSpread(_objectSpread({}, stateConfig), {}, { name: id }));
1404 - $e.store.register(id, slice);
1405 - }
1406 - },
1407 - {
1408 - key: "registerRoute",
1409 - value: function registerRoute(route, callback) {
1410 - $e.routes.register(this, route, callback);
1411 - }
1412 - },
1413 - {
1414 - key: "registerData",
1415 - value: function registerData(command, context) {
1416 - this.registerCommand(command, context, "data");
1417 - }
1418 - },
1419 - {
1420 - key: "unregisterRoute",
1421 - value: function unregisterRoute(route) {
1422 - $e.routes.unregister(this, route);
1423 - }
1424 - },
1425 - {
1426 - key: "registerTabRoute",
1427 - value: function registerTabRoute(tab) {
1428 - var _this2 = this;
1429 - this.registerRoute(tab, function(args) {
1430 - return _this2.activateTab(tab, args);
1431 - });
1432 - }
1433 - },
1434 - {
1435 - key: "dependency",
1436 - value: function dependency() {
1437 - return true;
1438 - }
1439 - },
1440 - {
1441 - key: "open",
1442 - value: function open() {
1443 - return true;
1444 - }
1445 - },
1446 - {
1447 - key: "close",
1448 - value: function close() {
1449 - if (!this.isOpen) return false;
1450 - this.isOpen = false;
1451 - this.inactivate();
1452 - $e.routes.clearCurrent(this.getNamespace());
1453 - $e.routes.clearHistory(this.getServiceName());
1454 - return true;
1455 - }
1456 - },
1457 - {
1458 - key: "activate",
1459 - value: function activate() {
1460 - $e.components.activate(this.getNamespace());
1461 - }
1462 - },
1463 - {
1464 - key: "inactivate",
1465 - value: function inactivate() {
1466 - $e.components.inactivate(this.getNamespace());
1467 - }
1468 - },
1469 - {
1470 - key: "isActive",
1471 - value: function isActive() {
1472 - return $e.components.isActive(this.getNamespace());
1473 - }
1474 - },
1475 - {
1476 - key: "onRoute",
1477 - value: function onRoute(route) {
1478 - this.toggleRouteClass(route, true);
1479 - this.toggleHistoryClass();
1480 - this.activate();
1481 - this.trigger("route/open", route);
1482 - }
1483 - },
1484 - {
1485 - key: "onCloseRoute",
1486 - value: function onCloseRoute(route) {
1487 - this.toggleRouteClass(route, false);
1488 - this.inactivate();
1489 - this.trigger("route/close", route);
1490 - }
1491 - },
1492 - {
1493 - key: "setDefaultRoute",
1494 - value: function setDefaultRoute(route) {
1495 - this.defaultRoute = this.getNamespace() + "/" + route;
1496 - }
1497 - },
1498 - {
1499 - key: "getDefaultRoute",
1500 - value: function getDefaultRoute() {
1501 - return this.defaultRoute;
1502 - }
1503 - },
1504 - {
1505 - key: "removeTab",
1506 - value: function removeTab(tab) {
1507 - delete this.tabs[tab];
1508 - this.unregisterRoute(tab);
1509 - }
1510 - },
1511 - {
1512 - key: "hasTab",
1513 - value: function hasTab(tab) {
1514 - return !!this.tabs[tab];
1515 - }
1516 - },
1517 - {
1518 - key: "addTab",
1519 - value: function addTab(tab, args, position) {
1520 - var _this3 = this;
1521 - this.tabs[tab] = args;
1522 - if ("undefined" !== typeof position) {
1523 - var newTabs = {};
1524 - var ids = Object.keys(this.tabs);
1525 - ids.pop();
1526 - ids.splice(position, 0, tab);
1527 - ids.forEach(function(id) {
1528 - newTabs[id] = _this3.tabs[id];
1529 - });
1530 - this.tabs = newTabs;
1531 - }
1532 - this.registerTabRoute(tab);
1533 - }
1534 - },
1535 - {
1536 - key: "getTabsWrapperSelector",
1537 - value: function getTabsWrapperSelector() {
1538 - return "";
1539 - }
1540 - },
1541 - {
1542 - key: "getTabRoute",
1543 - value: function getTabRoute(tab) {
1544 - return this.getNamespace() + "/" + tab;
1545 - }
1546 - },
1547 - {
1548 - key: "renderTab",
1549 - value: function renderTab(tab) {}
1550 - },
1551 - {
1552 - key: "activateTab",
1553 - value: function activateTab(tab, args) {
1554 - var _this4 = this;
1555 - this.renderTab(tab, args);
1556 - jQuery(this.getTabsWrapperSelector() + " .elementor-component-tab").off("click").on("click", function(event) {
1557 - $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab), args);
1558 - }).removeClass("elementor-active").filter("[data-tab=\"" + tab + "\"]").addClass("elementor-active");
1559 - }
1560 - },
1561 - {
1562 - key: "getActiveTabConfig",
1563 - value: function getActiveTabConfig() {
1564 - return this.tabs[this.currentTab] || {};
1565 - }
1566 - },
1567 - {
1568 - key: "getBodyClass",
1569 - value: function getBodyClass(route) {
1570 - return "e-route-" + route.replace(/\//g, "-");
1571 - }
1572 - },
1573 - {
1574 - key: "normalizeCommandName",
1575 - value: function normalizeCommandName(commandName) {
1576 - return commandName.replace(/[A-Z]/g, function(match, offset) {
1577 - return (offset > 0 ? "-" : "") + match.toLowerCase();
1578 - });
1579 - }
1580 - },
1581 - {
1582 - key: "importCommands",
1583 - value: function importCommands(commandsFromImport) {
1584 - var _this5 = this;
1585 - var commands = {};
1586 - Object.entries(commandsFromImport).forEach(function(_ref1) {
1587 - var _ref10 = _slicedToArray(_ref1, 2);
1588 - var className = _ref10[0];
1589 - var Class = _ref10[1];
1590 - var command = _this5.normalizeCommandName(className);
1591 - commands[command] = Class;
1592 - });
1593 - return commands;
1594 - }
1595 - },
1596 - {
1597 - key: "importHooks",
1598 - value: function importHooks(hooksFromImport) {
1599 - var hooks = {};
1600 - for (var key in hooksFromImport) {
1601 - var hook = new hooksFromImport[key]();
1602 - hooks[hook.getId()] = hook;
1603 - }
1604 - return hooks;
1605 - }
1606 - },
1607 - {
1608 - key: "importUiStates",
1609 - value: function importUiStates(statesFromImport) {
1610 - var _this6 = this;
1611 - var uiStates = {};
1612 - Object.values(statesFromImport).forEach(function(className) {
1613 - var uiState = new className(_this6);
1614 - uiStates[uiState.getId()] = uiState;
1615 - });
1616 - return uiStates;
1617 - }
1618 - },
1619 - {
1620 - key: "setUiState",
1621 - value: function setUiState(state, value) {
1622 - $e.uiStates.set("".concat(this.getNamespace(), "/").concat(state), value);
1623 - }
1624 - },
1625 - {
1626 - key: "toggleRouteClass",
1627 - value: function toggleRouteClass(route, state) {
1628 - document.body.classList.toggle(this.getBodyClass(route), state);
1629 - }
1630 - },
1631 - {
1632 - key: "toggleHistoryClass",
1633 - value: function toggleHistoryClass() {
1634 - document.body.classList.toggle("e-routes-has-history", !!$e.routes.getHistory(this.getServiceName()).length);
1635 - }
1636 - }
1637 - ]);
1638 - }(import_module.default);
2491 + // Note: Converting the constructor to string in order to avoid equation issues
2492 + // due to different memory addresses between iframes (window.Object !== window.top.Object).
2493 + if (args[property].constructor.toString() !== type.prototype.constructor.toString()) {
2494 + throw Error("".concat(property, " invalid constructor type."));
2495 + }
2496 + }
2497 + }], [{
2498 + key: "getInstanceType",
2499 + value: function getInstanceType() {
2500 + return 'ArgsObject';
2501 + }
2502 + }]);
2503 +}(_instanceType.default);
1639 2504
1640 -//#endregion
1641 -//#region app/assets/js/loader/commands/close.js
1642 - function _callSuper$3(t, o, e) {
1643 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$3() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1644 - }
1645 - __name(_callSuper$3, "_callSuper");
1646 - function _isNativeReflectConstruct$3() {
1647 - try {
1648 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1649 - } catch (t) {}
1650 - return (_isNativeReflectConstruct$3 = function _isNativeReflectConstruct() {
1651 - return !!t;
1652 - })();
1653 - }
1654 - __name(_isNativeReflectConstruct$3, "_isNativeReflectConstruct");
1655 - var Close = /*#__PURE__*/ function(_$e$modules$CommandBa) {
1656 - function Close() {
1657 - _classCallCheck(this, Close);
1658 - return _callSuper$3(this, Close, arguments);
1659 - }
1660 - _inherits(Close, _$e$modules$CommandBa);
1661 - return _createClass(Close, [{
1662 - key: "apply",
1663 - value: function apply() {
1664 - if (!this.component.close()) return false;
1665 - this.component.iframe.remove();
1666 - this.component.iframe = null;
1667 - if (this.component.backdrop) {
1668 - this.component.backdrop.remove();
1669 - this.component.backdrop = null;
1670 - }
1671 - document.body.style.overflow = "";
1672 - return true;
1673 - }
1674 - }]);
1675 - }($e.modules.CommandBase);
2505 +/***/ }),
1676 2506
1677 -//#endregion
1678 -//#region app/assets/js/loader/commands/load.js
1679 - function _callSuper$2(t, o, e) {
1680 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1681 - }
1682 - __name(_callSuper$2, "_callSuper");
1683 - function _isNativeReflectConstruct$2() {
1684 - try {
1685 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1686 - } catch (t) {}
1687 - return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() {
1688 - return !!t;
1689 - })();
1690 - }
1691 - __name(_isNativeReflectConstruct$2, "_isNativeReflectConstruct");
1692 - var Load = /*#__PURE__*/ function(_$e$modules$CommandBa) {
1693 - function Load() {
1694 - _classCallCheck(this, Load);
1695 - return _callSuper$2(this, Load, arguments);
1696 - }
1697 - _inherits(Load, _$e$modules$CommandBa);
1698 - return _createClass(Load, [{
1699 - key: "apply",
1700 - value: function apply(args) {
1701 - var component = this.component;
1702 - if (!component.iframe) {
1703 - component.backdrop = document.createElement("div");
1704 - component.backdrop.className = "elementor-app-backdrop";
1705 - component.backdrop.style.display = "none";
1706 - component.backdrop.addEventListener("click", function() {
1707 - $e.run("app/close");
1708 - });
1709 - document.body.appendChild(component.backdrop);
1710 - component.iframe = document.createElement("iframe");
1711 - component.iframe.className = "elementor-app-iframe";
1712 - component.iframe.style.display = "none";
1713 - component.iframe.addEventListener("load", function() {
1714 - if (component.iframe) component.iframe.classList.add("elementor-app-iframe--visible");
1715 - if (component.backdrop) component.backdrop.classList.add("elementor-app-backdrop--visible");
1716 - });
1717 - document.body.appendChild(component.iframe);
1718 - }
1719 - if (args.url === component.iframe.src) return;
1720 - component.iframe.src = args.url;
1721 - }
1722 - }]);
1723 - }($e.modules.CommandBase);
2507 +/***/ "../assets/dev/js/modules/imports/instance-type.js":
2508 +/*!*********************************************************!*\
2509 + !*** ../assets/dev/js/modules/imports/instance-type.js ***!
2510 + \*********************************************************/
2511 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1724 2512
1725 -//#endregion
1726 -//#region app/assets/js/loader/commands/open.js
1727 - function _callSuper$1(t, o, e) {
1728 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1729 - }
1730 - __name(_callSuper$1, "_callSuper");
1731 - function _isNativeReflectConstruct$1() {
1732 - try {
1733 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1734 - } catch (t) {}
1735 - return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() {
1736 - return !!t;
1737 - })();
1738 - }
1739 - __name(_isNativeReflectConstruct$1, "_isNativeReflectConstruct");
1740 - var Open = /*#__PURE__*/ function(_$e$modules$CommandBa) {
1741 - function Open() {
1742 - _classCallCheck(this, Open);
1743 - return _callSuper$1(this, Open, arguments);
1744 - }
1745 - _inherits(Open, _$e$modules$CommandBa);
1746 - return _createClass(Open, [{
1747 - key: "apply",
1748 - value: function apply(args) {
1749 - $e.route("app", args);
1750 - return true;
1751 - }
1752 - }]);
1753 - }($e.modules.CommandBase);
2513 +"use strict";
1754 2514
1755 -//#endregion
1756 -//#region app/assets/js/loader/commands/index.js
1757 - var commands_exports = /* @__PURE__ */ __exportAll({
1758 - Close: () => Close,
1759 - Load: () => Load,
1760 - Open: () => Open
1761 - });
1762 2515
1763 -//#endregion
1764 -//#region app/assets/js/loader/component.js
1765 - function _callSuper(t, o, e) {
1766 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1767 - }
1768 - function _isNativeReflectConstruct() {
1769 - try {
1770 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1771 - } catch (t) {}
1772 - return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
1773 - return !!t;
1774 - })();
1775 - }
1776 - var Component = /*#__PURE__*/ function(_ComponentModalBase) {
1777 - function Component() {
1778 - _classCallCheck(this, Component);
1779 - return _callSuper(this, Component, arguments);
1780 - }
1781 - _inherits(Component, _ComponentModalBase);
1782 - return _createClass(Component, [
1783 - {
1784 - key: "getNamespace",
1785 - value: function getNamespace() {
1786 - return "app";
1787 - }
1788 - },
1789 - {
1790 - key: "defaultRoutes",
1791 - value: function defaultRoutes() {
1792 - var _this = this;
1793 - return { "": function _(args) {
1794 - args.url = args.url || elementorAppConfig.menu_url;
1795 - $e.run("app/load", args);
1796 - _this.iframe.style.display = "";
1797 - if (_this.backdrop) _this.backdrop.style.display = "";
1798 - document.body.style.overflow = "hidden";
1799 - } };
1800 - }
1801 - },
1802 - {
1803 - key: "defaultCommands",
1804 - value: function defaultCommands() {
1805 - return this.importCommands(commands_exports);
1806 - }
1807 - },
1808 - {
1809 - key: "defaultShortcuts",
1810 - value: function defaultShortcuts() {
1811 - return {
1812 - "": { keys: "ctrl+shift+e" },
1813 - close: {
1814 - keys: "esc",
1815 - scopes: [this.getNamespace()]
1816 - }
1817 - };
1818 - }
1819 - }
1820 - ]);
1821 - }(ComponentBase);
2516 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2517 +Object.defineProperty(exports, "__esModule", ({
2518 + value: true
2519 +}));
2520 +exports["default"] = void 0;
2521 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2522 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2523 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
2524 +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
2525 +function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
2526 +var InstanceType = exports["default"] = /*#__PURE__*/function () {
2527 + function InstanceType() {
2528 + var _this = this;
2529 + (0, _classCallCheck2.default)(this, InstanceType);
2530 + // Since anonymous classes sometimes do not get validated by babel, do it manually.
2531 + var target = this instanceof InstanceType ? this.constructor : void 0;
2532 + var prototypes = [];
2533 + while (target.__proto__ && target.__proto__.name) {
2534 + prototypes.push(target.__proto__);
2535 + target = target.__proto__;
2536 + }
2537 + prototypes.reverse().forEach(function (proto) {
2538 + return _this instanceof proto;
2539 + });
2540 + }
2541 + return (0, _createClass2.default)(InstanceType, null, [{
2542 + key: Symbol.hasInstance,
2543 + value: function value(target) {
2544 + /**
2545 + * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
2546 + * its give's opportunity to mange capabilities of instanceOf operator.
2547 + * saving current class each time will give option later to handle instanceOf manually.
2548 + */
2549 + var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]);
1822 2550
1823 -//#endregion
1824 -//#region app/assets/js/app-loader.js
1825 - window.elementorAppLoader = new (/* @__PURE__ */ function() {
1826 - function AppLoader() {
1827 - _classCallCheck(this, AppLoader);
1828 - _defineProperty(this, "selector", "a.elementor-app-link, .elementor-app-link .ab-item");
1829 - $e.components.register(new Component());
1830 - window.addEventListener("DOMContentLoaded", this.onLoad.bind(this));
1831 - }
1832 - return _createClass(AppLoader, [{
1833 - key: "onLoad",
1834 - value: function onLoad() {
1835 - var links = document.querySelectorAll(this.selector);
1836 - if (!links.length) return;
1837 - links.forEach(function(link) {
1838 - link.addEventListener("click", function(event) {
1839 - event.preventDefault();
1840 - $e.run("app/open", { url: link.href });
1841 - });
1842 - link.addEventListener("mouseenter", function() {
1843 - $e.run("app/load", { url: link.href });
1844 - });
1845 - });
1846 - }
1847 - }]);
1848 - }())();
2551 + // Act normal when validate a class, which does not have instance type.
2552 + if (target && !target.constructor.getInstanceType) {
2553 + return result;
2554 + }
2555 + if (target) {
2556 + if (!target.instanceTypes) {
2557 + target.instanceTypes = [];
2558 + }
2559 + if (!result) {
2560 + if (this.getInstanceType() === target.constructor.getInstanceType()) {
2561 + result = true;
2562 + }
2563 + }
2564 + if (result) {
2565 + var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType();
2566 + if (-1 === target.instanceTypes.indexOf(name)) {
2567 + target.instanceTypes.push(name);
2568 + }
2569 + }
2570 + }
2571 + if (!result && target) {
2572 + // Check if the given 'target', is instance of known types.
2573 + result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType());
2574 + }
2575 + return result;
2576 + }
2577 + }, {
2578 + key: "getInstanceType",
2579 + value: function getInstanceType() {
2580 + elementorModules.ForceMethodImplementation();
2581 + }
2582 + }]);
2583 +}();
1849 2584
1850 -//#endregion
1851 -})(elementorVendors.reduxToolkit);
2585 +/***/ }),
2586 +
2587 +/***/ "../assets/dev/js/modules/imports/module.js":
2588 +/*!**************************************************!*\
2589 + !*** ../assets/dev/js/modules/imports/module.js ***!
2590 + \**************************************************/
2591 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2592 +
2593 +"use strict";
2594 +
2595 +
2596 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2597 +var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
2598 +var Module = function Module() {
2599 + var $ = jQuery,
2600 + instanceParams = arguments,
2601 + self = this,
2602 + events = {};
2603 + var settings;
2604 + var ensureClosureMethods = function ensureClosureMethods() {
2605 + $.each(self, function (methodName) {
2606 + var oldMethod = self[methodName];
2607 + if ('function' !== typeof oldMethod) {
2608 + return;
2609 + }
2610 + self[methodName] = function () {
2611 + return oldMethod.apply(self, arguments);
2612 + };
2613 + });
2614 + };
2615 + var initSettings = function initSettings() {
2616 + settings = self.getDefaultSettings();
2617 + var instanceSettings = instanceParams[0];
2618 + if (instanceSettings) {
2619 + $.extend(true, settings, instanceSettings);
2620 + }
2621 + };
2622 + var init = function init() {
2623 + self.__construct.apply(self, instanceParams);
2624 + ensureClosureMethods();
2625 + initSettings();
2626 + self.trigger('init');
2627 + };
2628 + this.getItems = function (items, itemKey) {
2629 + if (itemKey) {
2630 + var keyStack = itemKey.split('.'),
2631 + currentKey = keyStack.splice(0, 1);
2632 + if (!keyStack.length) {
2633 + return items[currentKey];
2634 + }
2635 + if (!items[currentKey]) {
2636 + return;
2637 + }
2638 + return this.getItems(items[currentKey], keyStack.join('.'));
2639 + }
2640 + return items;
2641 + };
2642 + this.getSettings = function (setting) {
2643 + return this.getItems(settings, setting);
2644 + };
2645 + this.setSettings = function (settingKey, value, settingsContainer) {
2646 + if (!settingsContainer) {
2647 + settingsContainer = settings;
2648 + }
2649 + if ('object' === (0, _typeof2.default)(settingKey)) {
2650 + $.extend(settingsContainer, settingKey);
2651 + return self;
2652 + }
2653 + var keyStack = settingKey.split('.'),
2654 + currentKey = keyStack.splice(0, 1);
2655 + if (!keyStack.length) {
2656 + settingsContainer[currentKey] = value;
2657 + return self;
2658 + }
2659 + if (!settingsContainer[currentKey]) {
2660 + settingsContainer[currentKey] = {};
2661 + }
2662 + return self.setSettings(keyStack.join('.'), value, settingsContainer[currentKey]);
2663 + };
2664 + this.getErrorMessage = function (type, functionName) {
2665 + var message;
2666 + switch (type) {
2667 + case 'forceMethodImplementation':
2668 + message = "The method '".concat(functionName, "' must to be implemented in the inheritor child.");
2669 + break;
2670 + default:
2671 + message = 'An error occurs';
2672 + }
2673 + return message;
2674 + };
2675 +
2676 + // TODO: This function should be deleted ?.
2677 + this.forceMethodImplementation = function (functionName) {
2678 + throw new Error(this.getErrorMessage('forceMethodImplementation', functionName));
2679 + };
2680 + this.on = function (eventName, callback) {
2681 + if ('object' === (0, _typeof2.default)(eventName)) {
2682 + $.each(eventName, function (singleEventName) {
2683 + self.on(singleEventName, this);
2684 + });
2685 + return self;
2686 + }
2687 + var eventNames = eventName.split(' ');
2688 + eventNames.forEach(function (singleEventName) {
2689 + if (!events[singleEventName]) {
2690 + events[singleEventName] = [];
2691 + }
2692 + events[singleEventName].push(callback);
2693 + });
2694 + return self;
2695 + };
2696 + this.off = function (eventName, callback) {
2697 + if (!events[eventName]) {
2698 + return self;
2699 + }
2700 + if (!callback) {
2701 + delete events[eventName];
2702 + return self;
2703 + }
2704 + var callbackIndex = events[eventName].indexOf(callback);
2705 + if (-1 !== callbackIndex) {
2706 + delete events[eventName][callbackIndex];
2707 +
2708 + // Reset array index (for next off on same event).
2709 + events[eventName] = events[eventName].filter(function (val) {
2710 + return val;
2711 + });
2712 + }
2713 + return self;
2714 + };
2715 + this.trigger = function (eventName) {
2716 + var methodName = 'on' + eventName[0].toUpperCase() + eventName.slice(1),
2717 + params = Array.prototype.slice.call(arguments, 1);
2718 + if (self[methodName]) {
2719 + self[methodName].apply(self, params);
2720 + }
2721 + var callbacks = events[eventName];
2722 + if (!callbacks) {
2723 + return self;
2724 + }
2725 + $.each(callbacks, function (index, callback) {
2726 + callback.apply(self, params);
2727 + });
2728 + return self;
2729 + };
2730 + init();
2731 +};
2732 +Module.prototype.__construct = function () {};
2733 +Module.prototype.getDefaultSettings = function () {
2734 + return {};
2735 +};
2736 +Module.prototype.getConstructorID = function () {
2737 + return this.constructor.name;
2738 +};
2739 +Module.extend = function (properties) {
2740 + var $ = jQuery,
2741 + parent = this;
2742 + var child = function child() {
2743 + return parent.apply(this, arguments);
2744 + };
2745 + $.extend(child, parent);
2746 + child.prototype = Object.create($.extend({}, parent.prototype, properties));
2747 + child.prototype.constructor = child;
2748 + child.__super__ = parent.prototype;
2749 + return child;
2750 +};
2751 +module.exports = Module;
2752 +
2753 +/***/ }),
2754 +
2755 +/***/ "../modules/web-cli/assets/js/modules/command-base.js":
2756 +/*!************************************************************!*\
2757 + !*** ../modules/web-cli/assets/js/modules/command-base.js ***!
2758 + \************************************************************/
2759 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2760 +
2761 +"use strict";
2762 +
2763 +
2764 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2765 +Object.defineProperty(exports, "__esModule", ({
2766 + value: true
2767 +}));
2768 +exports["default"] = void 0;
2769 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2770 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2771 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2772 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
2773 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2774 +var _commandInfra = _interopRequireDefault(__webpack_require__(/*! ./command-infra */ "../modules/web-cli/assets/js/modules/command-infra.js"));
2775 +var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
2776 +function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
2777 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
2778 +/**
2779 + * @name $e.modules.CommandBase
2780 + */
2781 +var CommandBase = exports["default"] = /*#__PURE__*/function (_CommandInfra) {
2782 + function CommandBase() {
2783 + (0, _classCallCheck2.default)(this, CommandBase);
2784 + return _callSuper(this, CommandBase, arguments);
2785 + }
2786 + (0, _inherits2.default)(CommandBase, _CommandInfra);
2787 + return (0, _createClass2.default)(CommandBase, [{
2788 + key: "onBeforeRun",
2789 + value: function onBeforeRun() {
2790 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2791 + $e.hooks.runUIBefore(this.command, args);
2792 + }
2793 + }, {
2794 + key: "onAfterRun",
2795 + value: function onAfterRun() {
2796 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2797 + var result = arguments.length > 1 ? arguments[1] : undefined;
2798 + $e.hooks.runUIAfter(this.command, args, result);
2799 + }
2800 + }, {
2801 + key: "onBeforeApply",
2802 + value: function onBeforeApply() {
2803 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2804 + $e.hooks.runDataDependency(this.command, args);
2805 + }
2806 + }, {
2807 + key: "onAfterApply",
2808 + value: function onAfterApply() {
2809 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2810 + var result = arguments.length > 1 ? arguments[1] : undefined;
2811 + return $e.hooks.runDataAfter(this.command, args, result);
2812 + }
2813 + }, {
2814 + key: "onCatchApply",
2815 + value: function onCatchApply(e) {
2816 + this.runCatchHooks(e);
2817 + }
2818 +
2819 + /**
2820 + * Run all the catch hooks.
2821 + *
2822 + * @param {Error} e
2823 + */
2824 + }, {
2825 + key: "runCatchHooks",
2826 + value: function runCatchHooks(e) {
2827 + $e.hooks.runDataCatch(this.command, this.args, e);
2828 + $e.hooks.runUICatch(this.command, this.args, e);
2829 + }
2830 +
2831 + /**
2832 + * TODO - Remove - Backwards compatibility.
2833 + *
2834 + * Function requireContainer().
2835 + *
2836 + * Validate `arg.container` & `arg.containers`.
2837 + *
2838 + * @param {{}} args
2839 + * @deprecated since 3.7.0, extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase` instead.
2840 + *
2841 + * @throws {Error}
2842 + */
2843 + }, {
2844 + key: "requireContainer",
2845 + value: function requireContainer() {
2846 + var _this = this;
2847 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args;
2848 + _deprecation.default.deprecated('requireContainer()', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`');
2849 + if (!args.container && !args.containers) {
2850 + throw Error('container or containers are required.');
2851 + }
2852 + if (args.container && args.containers) {
2853 + throw Error('container and containers cannot go together please select one of them.');
2854 + }
2855 + var containers = args.containers || [args.container];
2856 + containers.forEach(function (container) {
2857 + _this.requireArgumentInstance('container', elementorModules.editor.Container, {
2858 + container: container
2859 + });
2860 + });
2861 + }
2862 + }], [{
2863 + key: "getInstanceType",
2864 + value: function getInstanceType() {
2865 + return 'CommandBase';
2866 + }
2867 + }]);
2868 +}(_commandInfra.default);
2869 +
2870 +/***/ }),
2871 +
2872 +/***/ "../modules/web-cli/assets/js/modules/command-callback-base.js":
2873 +/*!*********************************************************************!*\
2874 + !*** ../modules/web-cli/assets/js/modules/command-callback-base.js ***!
2875 + \*********************************************************************/
2876 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2877 +
2878 +"use strict";
2879 +
2880 +
2881 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2882 +Object.defineProperty(exports, "__esModule", ({
2883 + value: true
2884 +}));
2885 +exports["default"] = void 0;
2886 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2887 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2888 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2889 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
2890 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2891 +var _commandBase = _interopRequireDefault(__webpack_require__(/*! ./command-base */ "../modules/web-cli/assets/js/modules/command-base.js"));
2892 +function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
2893 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
2894 +/**
2895 + * To support pure callbacks in the API(commands.js), to ensure they have registered with the proper context.
2896 + */
2897 +var CommandCallbackBase = exports["default"] = /*#__PURE__*/function (_CommandBase) {
2898 + function CommandCallbackBase() {
2899 + (0, _classCallCheck2.default)(this, CommandCallbackBase);
2900 + return _callSuper(this, CommandCallbackBase, arguments);
2901 + }
2902 + (0, _inherits2.default)(CommandCallbackBase, _CommandBase);
2903 + return (0, _createClass2.default)(CommandCallbackBase, [{
2904 + key: "apply",
2905 + value: function apply() {
2906 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2907 + return this.constructor.getCallback()(args);
2908 + }
2909 + }], [{
2910 + key: "getInstanceType",
2911 + value: function getInstanceType() {
2912 + return 'CommandCallbackBase';
2913 + }
2914 +
2915 + /**
2916 + * Get original callback of the command.
2917 + *
2918 + * Support pure callbacks ( Non command-base ).
2919 + *
2920 + * @return {()=>{}} Command Results.
2921 + */
2922 + }, {
2923 + key: "getCallback",
2924 + value: function getCallback() {
2925 + return this.registerConfig.callback;
2926 + }
2927 + }]);
2928 +}(_commandBase.default);
2929 +
2930 +/***/ }),
2931 +
2932 +/***/ "../modules/web-cli/assets/js/modules/command-infra.js":
2933 +/*!*************************************************************!*\
2934 + !*** ../modules/web-cli/assets/js/modules/command-infra.js ***!
2935 + \*************************************************************/
2936 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2937 +
2938 +"use strict";
2939 +
2940 +
2941 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2942 +Object.defineProperty(exports, "__esModule", ({
2943 + value: true
2944 +}));
2945 +exports["default"] = void 0;
2946 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2947 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2948 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2949 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
2950 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2951 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
2952 +var _argsObject = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js"));
2953 +var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
2954 +function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
2955 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
2956 +/**
2957 + * @typedef {import('../modules/component-base')} ComponentBase
2958 + */
2959 +var CommandInfra = exports["default"] = /*#__PURE__*/function (_ArgsObject) {
2960 + /**
2961 + * Function constructor().
2962 + *
2963 + * Create Commands Base.
2964 + *
2965 + * @param {{}} args
2966 + */
2967 + function CommandInfra() {
2968 + var _this;
2969 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2970 + (0, _classCallCheck2.default)(this, CommandInfra);
2971 + _this = _callSuper(this, CommandInfra, [args]);
2972 + if (!_this.constructor.registerConfig) {
2973 + throw RangeError('Doing it wrong: Each command type should have `registerConfig`.');
2974 + }
2975 +
2976 + // Acknowledge self about which command it run.
2977 + _this.command = _this.constructor.getCommand();
2978 +
2979 + // Assign instance of current component.
2980 + _this.component = _this.constructor.getComponent();
2981 +
2982 + // Who ever need do something before without `super` the constructor can use `initialize` method.
2983 + _this.initialize(args);
2984 +
2985 + // Refresh args, maybe the changed via `initialize`.
2986 + args = _this.args;
2987 +
2988 + // Validate args before run.
2989 + _this.validateArgs(args);
2990 + return _this;
2991 + }
2992 +
2993 + /**
2994 + * Function initialize().
2995 + *
2996 + * Initialize command, called after construction.
2997 + *
2998 + * @param {{}} args
2999 + */
3000 + (0, _inherits2.default)(CommandInfra, _ArgsObject);
3001 + return (0, _createClass2.default)(CommandInfra, [{
3002 + key: "currentCommand",
3003 + get:
3004 + /**
3005 + * @deprecated since 3.7.0, use `this.command` instead.
3006 + */
3007 + function get() {
3008 + _deprecation.default.deprecated('this.currentCommand', '3.7.0', 'this.command');
3009 + return this.command;
3010 + }
3011 + }, {
3012 + key: "initialize",
3013 + value: function initialize() {
3014 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3015 + } // eslint-disable-line no-unused-vars
3016 +
3017 + /**
3018 + * Function validateArgs().
3019 + *
3020 + * Validate command arguments.
3021 + *
3022 + * @param {{}} args
3023 + */
3024 + }, {
3025 + key: "validateArgs",
3026 + value: function validateArgs() {
3027 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3028 + } // eslint-disable-line no-unused-vars
3029 +
3030 + // eslint-disable-next-line jsdoc/require-returns-check
3031 + /**
3032 + * Function apply().
3033 + *
3034 + * Do the actual command.
3035 + *
3036 + * @param {{}} args
3037 + *
3038 + * @return {*} Command results.
3039 + */
3040 + }, {
3041 + key: "apply",
3042 + value: function apply() {
3043 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3044 + // eslint-disable-line no-unused-vars
3045 + elementorModules.ForceMethodImplementation();
3046 + }
3047 +
3048 + /**
3049 + * Function run().
3050 + *
3051 + * Run command with history & hooks.
3052 + *
3053 + * @return {*} Command results.
3054 + */
3055 + }, {
3056 + key: "run",
3057 + value: function run() {
3058 + return this.apply(this.args);
3059 + }
3060 +
3061 + /**
3062 + * Function onBeforeRun.
3063 + *
3064 + * Called before run().
3065 + *
3066 + * @param {{}} args
3067 + */
3068 + }, {
3069 + key: "onBeforeRun",
3070 + value: function onBeforeRun() {
3071 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3072 + } // eslint-disable-line no-unused-vars
3073 +
3074 + /**
3075 + * Function onAfterRun.
3076 + *
3077 + * Called after run().
3078 + *
3079 + * @param {{}} args
3080 + * @param {*} result
3081 + */
3082 + }, {
3083 + key: "onAfterRun",
3084 + value: function onAfterRun() {
3085 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3086 + var result = arguments.length > 1 ? arguments[1] : undefined;
3087 + } // eslint-disable-line no-unused-vars
3088 +
3089 + /**
3090 + * Function onBeforeApply.
3091 + *
3092 + * Called before apply().
3093 + *
3094 + * @param {{}} args
3095 + */
3096 + }, {
3097 + key: "onBeforeApply",
3098 + value: function onBeforeApply() {
3099 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3100 + } // eslint-disable-line no-unused-vars
3101 +
3102 + /**
3103 + * Function onAfterApply.
3104 + *
3105 + * Called after apply().
3106 + *
3107 + * @param {{}} args
3108 + * @param {*} result
3109 + */
3110 + }, {
3111 + key: "onAfterApply",
3112 + value: function onAfterApply() {
3113 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3114 + var result = arguments.length > 1 ? arguments[1] : undefined;
3115 + } // eslint-disable-line no-unused-vars
3116 +
3117 + /**
3118 + * Function onCatchApply.
3119 + *
3120 + * Called after apply() failed.
3121 + *
3122 + * @param {Error} e
3123 + */
3124 + }, {
3125 + key: "onCatchApply",
3126 + value: function onCatchApply(e) {} // eslint-disable-line no-unused-vars
3127 + }], [{
3128 + key: "getInstanceType",
3129 + value: function getInstanceType() {
3130 + return 'CommandInfra';
3131 + }
3132 +
3133 + /**
3134 + * Get info of command.
3135 + *
3136 + * @return {Object} Extra information about the command.
3137 + */
3138 + }, {
3139 + key: "getInfo",
3140 + value: function getInfo() {
3141 + return {};
3142 + }
3143 +
3144 + /**
3145 + * @return {string} Self command name.
3146 + */
3147 + }, {
3148 + key: "getCommand",
3149 + value: function getCommand() {
3150 + return this.registerConfig.command;
3151 + }
3152 +
3153 + /**
3154 + * @return {ComponentBase} Self component
3155 + */
3156 + }, {
3157 + key: "getComponent",
3158 + value: function getComponent() {
3159 + return this.registerConfig.component;
3160 + }
3161 + }, {
3162 + key: "setRegisterConfig",
3163 + value: function setRegisterConfig(config) {
3164 + this.registerConfig = Object.freeze(config);
3165 + }
3166 + }]);
3167 +}(_argsObject.default);
3168 +/**
3169 + * @type {Object}
3170 + */
3171 +(0, _defineProperty2.default)(CommandInfra, "registerConfig", null);
3172 +
3173 +/***/ }),
3174 +
3175 +/***/ "../modules/web-cli/assets/js/modules/component-base.js":
3176 +/*!**************************************************************!*\
3177 + !*** ../modules/web-cli/assets/js/modules/component-base.js ***!
3178 + \**************************************************************/
3179 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3180 +
3181 +"use strict";
3182 +
3183 +
3184 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3185 +Object.defineProperty(exports, "__esModule", ({
3186 + value: true
3187 +}));
3188 +exports["default"] = void 0;
3189 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
3190 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
3191 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3192 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3193 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
3194 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
3195 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
3196 +var _commandCallbackBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-callback-base */ "../modules/web-cli/assets/js/modules/command-callback-base.js"));
3197 +var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js");
3198 +var _module = _interopRequireDefault(__webpack_require__(/*! elementor/assets/dev/js/modules/imports/module.js */ "../assets/dev/js/modules/imports/module.js"));
3199 +var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js"));
3200 +var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
3201 +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; }
3202 +function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3203 +function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
3204 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
3205 +/**
3206 + * @typedef {import('./command-infra')} CommandInfra
3207 + * @typedef {import('./hook-base')} HookBase
3208 + * @typedef {import('../core/states/ui-state-base')} UiStateBase
3209 + */
3210 +var ComponentBase = exports["default"] = /*#__PURE__*/function (_Module) {
3211 + function ComponentBase() {
3212 + (0, _classCallCheck2.default)(this, ComponentBase);
3213 + return _callSuper(this, ComponentBase, arguments);
3214 + }
3215 + (0, _inherits2.default)(ComponentBase, _Module);
3216 + return (0, _createClass2.default)(ComponentBase, [{
3217 + key: "__construct",
3218 + value: function __construct() {
3219 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3220 + if (args.manager) {
3221 + this.manager = args.manager;
3222 + }
3223 + this.commands = this.defaultCommands();
3224 + this.commandsInternal = this.defaultCommandsInternal();
3225 + this.hooks = this.defaultHooks();
3226 + this.routes = this.defaultRoutes();
3227 + this.tabs = this.defaultTabs();
3228 + this.shortcuts = this.defaultShortcuts();
3229 + this.utils = this.defaultUtils();
3230 + this.data = this.defaultData();
3231 + this.uiStates = this.defaultUiStates();
3232 + this.states = this.defaultStates();
3233 + this.defaultRoute = '';
3234 + this.currentTab = '';
3235 + }
3236 + }, {
3237 + key: "registerAPI",
3238 + value: function registerAPI() {
3239 + var _this = this;
3240 + Object.entries(this.getTabs()).forEach(function (tab) {
3241 + return _this.registerTabRoute(tab[0]);
3242 + });
3243 + Object.entries(this.getRoutes()).forEach(function (_ref) {
3244 + var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
3245 + route = _ref2[0],
3246 + callback = _ref2[1];
3247 + return _this.registerRoute(route, callback);
3248 + });
3249 + Object.entries(this.getCommands()).forEach(function (_ref3) {
3250 + var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
3251 + command = _ref4[0],
3252 + callback = _ref4[1];
3253 + return _this.registerCommand(command, callback);
3254 + });
3255 + Object.entries(this.getCommandsInternal()).forEach(function (_ref5) {
3256 + var _ref6 = (0, _slicedToArray2.default)(_ref5, 2),
3257 + command = _ref6[0],
3258 + callback = _ref6[1];
3259 + return _this.registerCommandInternal(command, callback);
3260 + });
3261 + Object.values(this.getHooks()).forEach(function (instance) {
3262 + return _this.registerHook(instance);
3263 + });
3264 + Object.entries(this.getData()).forEach(function (_ref7) {
3265 + var _ref8 = (0, _slicedToArray2.default)(_ref7, 2),
3266 + command = _ref8[0],
3267 + callback = _ref8[1];
3268 + return _this.registerData(command, callback);
3269 + });
3270 + Object.values(this.getUiStates()).forEach(function (instance) {
3271 + return _this.registerUiState(instance);
3272 + });
3273 + Object.entries(this.getStates()).forEach(function (_ref9) {
3274 + var _ref10 = (0, _slicedToArray2.default)(_ref9, 2),
3275 + id = _ref10[0],
3276 + state = _ref10[1];
3277 + return _this.registerState(id, state);
3278 + });
3279 + }
3280 +
3281 + // eslint-disable-next-line jsdoc/require-returns-check
3282 + /**
3283 + * @return {string} namespace
3284 + */
3285 + }, {
3286 + key: "getNamespace",
3287 + value: function getNamespace() {
3288 + (0, _forceMethodImplementation.default)();
3289 + }
3290 +
3291 + /**
3292 + * @deprecated since 3.7.0, use `getServiceName()` instead.
3293 + */
3294 + }, {
3295 + key: "getRootContainer",
3296 + value: function getRootContainer() {
3297 + _deprecation.default.deprecated('getRootContainer()', '3.7.0', 'getServiceName()');
3298 + return this.getServiceName();
3299 + }
3300 + }, {
3301 + key: "getServiceName",
3302 + value: function getServiceName() {
3303 + return this.getNamespace().split('/')[0];
3304 + }
3305 + }, {
3306 + key: "store",
3307 + get: function get() {
3308 + return $e.store.get(this.getNamespace());
3309 + }
3310 + }, {
3311 + key: "defaultTabs",
3312 + value: function defaultTabs() {
3313 + return {};
3314 + }
3315 + }, {
3316 + key: "defaultRoutes",
3317 + value: function defaultRoutes() {
3318 + return {};
3319 + }
3320 + }, {
3321 + key: "defaultCommands",
3322 + value: function defaultCommands() {
3323 + return {};
3324 + }
3325 + }, {
3326 + key: "defaultCommandsInternal",
3327 + value: function defaultCommandsInternal() {
3328 + return {};
3329 + }
3330 + }, {
3331 + key: "defaultHooks",
3332 + value: function defaultHooks() {
3333 + return {};
3334 + }
3335 +
3336 + /**
3337 + * Get the component's default UI states.
3338 + *
3339 + * @return {Object} default UI states
3340 + */
3341 + }, {
3342 + key: "defaultUiStates",
3343 + value: function defaultUiStates() {
3344 + return {};
3345 + }
3346 +
3347 + /**
3348 + * Get the component's Redux slice settings.
3349 + *
3350 + * @return {Object} Redux slice settings
3351 + */
3352 + }, {
3353 + key: "defaultStates",
3354 + value: function defaultStates() {
3355 + return {};
3356 + }
3357 + }, {
3358 + key: "defaultShortcuts",
3359 + value: function defaultShortcuts() {
3360 + return {};
3361 + }
3362 + }, {
3363 + key: "defaultUtils",
3364 + value: function defaultUtils() {
3365 + return {};
3366 + }
3367 + }, {
3368 + key: "defaultData",
3369 + value: function defaultData() {
3370 + return {};
3371 + }
3372 + }, {
3373 + key: "getCommands",
3374 + value: function getCommands() {
3375 + return this.commands;
3376 + }
3377 + }, {
3378 + key: "getCommandsInternal",
3379 + value: function getCommandsInternal() {
3380 + return this.commandsInternal;
3381 + }
3382 + }, {
3383 + key: "getHooks",
3384 + value: function getHooks() {
3385 + return this.hooks;
3386 + }
3387 +
3388 + /**
3389 + * Retrieve the component's UI states.
3390 + *
3391 + * @return {Object} UI states
3392 + */
3393 + }, {
3394 + key: "getUiStates",
3395 + value: function getUiStates() {
3396 + return this.uiStates;
3397 + }
3398 +
3399 + /**
3400 + * Retrieve the component's Redux Slice.
3401 + *
3402 + * @return {Object} Redux Slice
3403 + */
3404 + }, {
3405 + key: "getStates",
3406 + value: function getStates() {
3407 + return this.states;
3408 + }
3409 + }, {
3410 + key: "getRoutes",
3411 + value: function getRoutes() {
3412 + return this.routes;
3413 + }
3414 + }, {
3415 + key: "getTabs",
3416 + value: function getTabs() {
3417 + return this.tabs;
3418 + }
3419 + }, {
3420 + key: "getShortcuts",
3421 + value: function getShortcuts() {
3422 + return this.shortcuts;
3423 + }
3424 + }, {
3425 + key: "getData",
3426 + value: function getData() {
3427 + return this.data;
3428 + }
3429 +
3430 + /**
3431 + * @param {string} command
3432 + * @param {(()=>{}|CommandInfra)} context
3433 + * @param {'default'|'internal'|'data'} commandsType
3434 + */
3435 + }, {
3436 + key: "registerCommand",
3437 + value: function registerCommand(command, context) {
3438 + var commandsType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'default';
3439 + var commandsManager;
3440 + switch (commandsType) {
3441 + case 'default':
3442 + commandsManager = $e.commands;
3443 + break;
3444 + case 'internal':
3445 + commandsManager = $e.commandsInternal;
3446 + break;
3447 + case 'data':
3448 + commandsManager = $e.data;
3449 + break;
3450 + default:
3451 + throw new Error("Invalid commands type: '".concat(command, "'"));
3452 + }
3453 + var fullCommand = this.getNamespace() + '/' + command,
3454 + instanceType = context.getInstanceType ? context.getInstanceType() : false,
3455 + registerConfig = {
3456 + command: fullCommand,
3457 + component: this
3458 + };
3459 +
3460 + // Support pure callback.
3461 + if (!instanceType) {
3462 + if ($e.devTools) {
3463 + $e.devTools.log.warn("Attach command-callback-base, on command: '".concat(fullCommand, "', context is unknown type."));
3464 + }
3465 + registerConfig.callback = context;
3466 +
3467 + // Unique class.
3468 + context = /*#__PURE__*/function (_CommandCallbackBase) {
3469 + function context() {
3470 + (0, _classCallCheck2.default)(this, context);
3471 + return _callSuper(this, context, arguments);
3472 + }
3473 + (0, _inherits2.default)(context, _CommandCallbackBase);
3474 + return (0, _createClass2.default)(context);
3475 + }(_commandCallbackBase.default);
3476 + }
3477 + context.setRegisterConfig(registerConfig);
3478 + commandsManager.register(this, command, context);
3479 + }
3480 +
3481 + /**
3482 + * @param {HookBase} instance
3483 + */
3484 + }, {
3485 + key: "registerHook",
3486 + value: function registerHook(instance) {
3487 + return instance.register();
3488 + }
3489 + }, {
3490 + key: "registerCommandInternal",
3491 + value: function registerCommandInternal(command, context) {
3492 + this.registerCommand(command, context, 'internal');
3493 + }
3494 +
3495 + /**
3496 + * Register a UI state.
3497 + *
3498 + * @param {UiStateBase} instance - UI state instance.
3499 + *
3500 + * @return {void}
3501 + */
3502 + }, {
3503 + key: "registerUiState",
3504 + value: function registerUiState(instance) {
3505 + $e.uiStates.register(instance);
3506 + }
3507 +
3508 + /**
3509 + * Register a Redux Slice.
3510 + *
3511 + * @param {string} id - State id.
3512 + * @param {Object} stateConfig - The state config.
3513 + *
3514 + * @return {void}
3515 + */
3516 + }, {
3517 + key: "registerState",
3518 + value: function registerState(id, stateConfig) {
3519 + id = this.getNamespace() + (id ? "/".concat(id) : '');
3520 + var slice = (0, _toolkit.createSlice)(_objectSpread(_objectSpread({}, stateConfig), {}, {
3521 + name: id
3522 + }));
3523 + $e.store.register(id, slice);
3524 + }
3525 + }, {
3526 + key: "registerRoute",
3527 + value: function registerRoute(route, callback) {
3528 + $e.routes.register(this, route, callback);
3529 + }
3530 + }, {
3531 + key: "registerData",
3532 + value: function registerData(command, context) {
3533 + this.registerCommand(command, context, 'data');
3534 + }
3535 + }, {
3536 + key: "unregisterRoute",
3537 + value: function unregisterRoute(route) {
3538 + $e.routes.unregister(this, route);
3539 + }
3540 + }, {
3541 + key: "registerTabRoute",
3542 + value: function registerTabRoute(tab) {
3543 + var _this2 = this;
3544 + this.registerRoute(tab, function (args) {
3545 + return _this2.activateTab(tab, args);
3546 + });
3547 + }
3548 + }, {
3549 + key: "dependency",
3550 + value: function dependency() {
3551 + return true;
3552 + }
3553 + }, {
3554 + key: "open",
3555 + value: function open() {
3556 + return true;
3557 + }
3558 + }, {
3559 + key: "close",
3560 + value: function close() {
3561 + if (!this.isOpen) {
3562 + return false;
3563 + }
3564 + this.isOpen = false;
3565 + this.inactivate();
3566 + $e.routes.clearCurrent(this.getNamespace());
3567 + $e.routes.clearHistory(this.getServiceName());
3568 + return true;
3569 + }
3570 + }, {
3571 + key: "activate",
3572 + value: function activate() {
3573 + $e.components.activate(this.getNamespace());
3574 + }
3575 + }, {
3576 + key: "inactivate",
3577 + value: function inactivate() {
3578 + $e.components.inactivate(this.getNamespace());
3579 + }
3580 + }, {
3581 + key: "isActive",
3582 + value: function isActive() {
3583 + return $e.components.isActive(this.getNamespace());
3584 + }
3585 + }, {
3586 + key: "onRoute",
3587 + value: function onRoute(route) {
3588 + this.toggleRouteClass(route, true);
3589 + this.toggleHistoryClass();
3590 + this.activate();
3591 + this.trigger('route/open', route);
3592 + }
3593 + }, {
3594 + key: "onCloseRoute",
3595 + value: function onCloseRoute(route) {
3596 + this.toggleRouteClass(route, false);
3597 + this.inactivate();
3598 + this.trigger('route/close', route);
3599 + }
3600 + }, {
3601 + key: "setDefaultRoute",
3602 + value: function setDefaultRoute(route) {
3603 + this.defaultRoute = this.getNamespace() + '/' + route;
3604 + }
3605 + }, {
3606 + key: "getDefaultRoute",
3607 + value: function getDefaultRoute() {
3608 + return this.defaultRoute;
3609 + }
3610 + }, {
3611 + key: "removeTab",
3612 + value: function removeTab(tab) {
3613 + delete this.tabs[tab];
3614 + this.unregisterRoute(tab);
3615 + }
3616 + }, {
3617 + key: "hasTab",
3618 + value: function hasTab(tab) {
3619 + return !!this.tabs[tab];
3620 + }
3621 + }, {
3622 + key: "addTab",
3623 + value: function addTab(tab, args, position) {
3624 + var _this3 = this;
3625 + this.tabs[tab] = args;
3626 + // It can be 0.
3627 + if ('undefined' !== typeof position) {
3628 + var newTabs = {};
3629 + var ids = Object.keys(this.tabs);
3630 + // Remove new tab
3631 + ids.pop();
3632 +
3633 + // Add it to position.
3634 + ids.splice(position, 0, tab);
3635 + ids.forEach(function (id) {
3636 + newTabs[id] = _this3.tabs[id];
3637 + });
3638 + this.tabs = newTabs;
3639 + }
3640 + this.registerTabRoute(tab);
3641 + }
3642 + }, {
3643 + key: "getTabsWrapperSelector",
3644 + value: function getTabsWrapperSelector() {
3645 + return '';
3646 + }
3647 + }, {
3648 + key: "getTabRoute",
3649 + value: function getTabRoute(tab) {
3650 + return this.getNamespace() + '/' + tab;
3651 + }
3652 + }, {
3653 + key: "renderTab",
3654 + value: function renderTab(tab) {} // eslint-disable-line
3655 + }, {
3656 + key: "activateTab",
3657 + value: function activateTab(tab, args) {
3658 + var _this4 = this;
3659 + this.renderTab(tab, args);
3660 + jQuery(this.getTabsWrapperSelector() + ' .elementor-component-tab').off('click').on('click', function (event) {
3661 + $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab), args);
3662 + }).removeClass('elementor-active').filter('[data-tab="' + tab + '"]').addClass('elementor-active');
3663 + }
3664 + }, {
3665 + key: "getActiveTabConfig",
3666 + value: function getActiveTabConfig() {
3667 + return this.tabs[this.currentTab] || {};
3668 + }
3669 + }, {
3670 + key: "getBodyClass",
3671 + value: function getBodyClass(route) {
3672 + return 'e-route-' + route.replace(/\//g, '-');
3673 + }
3674 +
3675 + /**
3676 + * If command includes uppercase character convert it to lowercase and add `-`.
3677 + * e.g: `CopyAll` is converted to `copy-all`.
3678 + *
3679 + * @param {string} commandName
3680 + */
3681 + }, {
3682 + key: "normalizeCommandName",
3683 + value: function normalizeCommandName(commandName) {
3684 + return commandName.replace(/[A-Z]/g, function (match, offset) {
3685 + return (offset > 0 ? '-' : '') + match.toLowerCase();
3686 + });
3687 + }
3688 +
3689 + /**
3690 + * @param {{}} commandsFromImport
3691 + * @return {{}} imported commands
3692 + */
3693 + }, {
3694 + key: "importCommands",
3695 + value: function importCommands(commandsFromImport) {
3696 + var _this5 = this;
3697 + var commands = {};
3698 +
3699 + // Convert `Commands` to `ComponentBase` workable format.
3700 + Object.entries(commandsFromImport).forEach(function (_ref11) {
3701 + var _ref12 = (0, _slicedToArray2.default)(_ref11, 2),
3702 + className = _ref12[0],
3703 + Class = _ref12[1];
3704 + var command = _this5.normalizeCommandName(className);
3705 + commands[command] = Class;
3706 + });
3707 + return commands;
3708 + }
3709 + }, {
3710 + key: "importHooks",
3711 + value: function importHooks(hooksFromImport) {
3712 + var hooks = {};
3713 + for (var key in hooksFromImport) {
3714 + var hook = new hooksFromImport[key]();
3715 + hooks[hook.getId()] = hook;
3716 + }
3717 + return hooks;
3718 + }
3719 +
3720 + /**
3721 + * Import & initialize the component's UI states.
3722 + * Should be used inside `defaultUiState()`.
3723 + *
3724 + * @param {Object} statesFromImport - UI states from import.
3725 + *
3726 + * @return {Object} UI States
3727 + */
3728 + }, {
3729 + key: "importUiStates",
3730 + value: function importUiStates(statesFromImport) {
3731 + var _this6 = this;
3732 + var uiStates = {};
3733 + Object.values(statesFromImport).forEach(function (className) {
3734 + var uiState = new className(_this6);
3735 + uiStates[uiState.getId()] = uiState;
3736 + });
3737 + return uiStates;
3738 + }
3739 +
3740 + /**
3741 + * Set a UI state value.
3742 + * TODO: Should we provide such function? Maybe the developer should implicitly pass the full state ID?
3743 + *
3744 + * @param {string} state - Non-prefixed state ID.
3745 + * @param {*} value - New state value.
3746 + *
3747 + * @return {void}
3748 + */
3749 + }, {
3750 + key: "setUiState",
3751 + value: function setUiState(state, value) {
3752 + $e.uiStates.set("".concat(this.getNamespace(), "/").concat(state), value);
3753 + }
3754 + }, {
3755 + key: "toggleRouteClass",
3756 + value: function toggleRouteClass(route, state) {
3757 + document.body.classList.toggle(this.getBodyClass(route), state);
3758 + }
3759 + }, {
3760 + key: "toggleHistoryClass",
3761 + value: function toggleHistoryClass() {
3762 + document.body.classList.toggle('e-routes-has-history', !!$e.routes.getHistory(this.getServiceName()).length);
3763 + }
3764 + }]);
3765 +}(_module.default);
3766 +
3767 +/***/ }),
3768 +
3769 +/***/ "../modules/web-cli/assets/js/utils/console.js":
3770 +/*!*****************************************************!*\
3771 + !*** ../modules/web-cli/assets/js/utils/console.js ***!
3772 + \*****************************************************/
3773 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3774 +
3775 +"use strict";
3776 +
3777 +
3778 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3779 +Object.defineProperty(exports, "__esModule", ({
3780 + value: true
3781 +}));
3782 +exports["default"] = void 0;
3783 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3784 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3785 +var Console = exports["default"] = /*#__PURE__*/function () {
3786 + function Console() {
3787 + (0, _classCallCheck2.default)(this, Console);
3788 + }
3789 + return (0, _createClass2.default)(Console, null, [{
3790 + key: "error",
3791 + value: function error(message) {
3792 + // Show an error if devTools is available.
3793 + if ($e.devTools) {
3794 + $e.devTools.log.error(message);
3795 + }
3796 +
3797 + // If not a 'Hook-Break' then show error.
3798 + if (!(message instanceof $e.modules.HookBreak)) {
3799 + // eslint-disable-next-line no-console
3800 + console.error(message);
3801 + }
3802 + }
3803 + }, {
3804 + key: "warn",
3805 + value: function warn() {
3806 + var _console;
3807 + var style = "font-size: 12px; background-image: url(\"".concat(elementorWebCliConfig.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;");
3808 + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3809 + args[_key] = arguments[_key];
3810 + }
3811 + args.unshift('%c %c', style, '');
3812 + (_console = console).warn.apply(_console, args); // eslint-disable-line no-console
3813 + }
3814 + }]);
3815 +}();
3816 +
3817 +/***/ }),
3818 +
3819 +/***/ "../modules/web-cli/assets/js/utils/deprecation.js":
3820 +/*!*********************************************************!*\
3821 + !*** ../modules/web-cli/assets/js/utils/deprecation.js ***!
3822 + \*********************************************************/
3823 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3824 +
3825 +"use strict";
3826 +
3827 +
3828 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3829 +Object.defineProperty(exports, "__esModule", ({
3830 + value: true
3831 +}));
3832 +exports["default"] = void 0;
3833 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
3834 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3835 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3836 +var _console = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/console */ "../modules/web-cli/assets/js/utils/console.js"));
3837 +// Copied from `modules/dev-tools/assets/js/deprecation.js`
3838 +/**
3839 + * @typedef {Object} Version
3840 + * @property {number} major1 The first number
3841 + * @property {number} major2 The second number
3842 + * @property {number} minor The third number
3843 + * @property {string} build The fourth number
3844 + */
3845 +
3846 +var softDeprecated = function softDeprecated(name, version, replacement) {
3847 + if (elementorWebCliConfig.isDebug) {
3848 + deprecatedMessage('soft', name, version, replacement);
3849 + }
3850 +};
3851 +var hardDeprecated = function hardDeprecated(name, version, replacement) {
3852 + deprecatedMessage('hard', name, version, replacement);
3853 +};
3854 +var deprecatedMessage = function deprecatedMessage(type, name, version, replacement) {
3855 + var message = "`".concat(name, "` is ").concat(type, " deprecated since ").concat(version);
3856 + if (replacement) {
3857 + message += " - Use `".concat(replacement, "` instead");
3858 + }
3859 + _console.default.warn(message);
3860 +};
3861 +var Deprecation = exports["default"] = /*#__PURE__*/function () {
3862 + function Deprecation() {
3863 + (0, _classCallCheck2.default)(this, Deprecation);
3864 + }
3865 + return (0, _createClass2.default)(Deprecation, null, [{
3866 + key: "deprecated",
3867 + value: function deprecated(name, version, replacement) {
3868 + if (this.isHardDeprecated(version)) {
3869 + hardDeprecated(name, version, replacement);
3870 + } else {
3871 + softDeprecated(name, version, replacement);
3872 + }
3873 + }
3874 +
3875 + /**
3876 + * @param {string} version
3877 + *
3878 + * @return {Version}
3879 + */
3880 + }, {
3881 + key: "parseVersion",
3882 + value: function parseVersion(version) {
3883 + var versionParts = version.split('.');
3884 + if (versionParts.length < 3 || versionParts.length > 4) {
3885 + throw new RangeError('Invalid Semantic Version string provided');
3886 + }
3887 + var _versionParts = (0, _slicedToArray2.default)(versionParts, 4),
3888 + major1 = _versionParts[0],
3889 + major2 = _versionParts[1],
3890 + minor = _versionParts[2],
3891 + _versionParts$ = _versionParts[3],
3892 + build = _versionParts$ === void 0 ? '' : _versionParts$;
3893 + return {
3894 + major1: parseInt(major1),
3895 + major2: parseInt(major2),
3896 + minor: parseInt(minor),
3897 + build: build
3898 + };
3899 + }
3900 +
3901 + /**
3902 + * Get total of major.
3903 + *
3904 + * Since `get_total_major` cannot determine how much really versions between 2.9.0 and 3.3.0 if there is 2.10.0 version for example,
3905 + * versions with major2 more then 9 will be added to total.
3906 + *
3907 + * @param {Version} versionObj
3908 + *
3909 + * @return {number}
3910 + */
3911 + }, {
3912 + key: "getTotalMajor",
3913 + value: function getTotalMajor(versionObj) {
3914 + var total = parseInt("".concat(versionObj.major1).concat(versionObj.major2, "0"));
3915 + total = Number((total / 10).toFixed(0));
3916 + if (versionObj.major2 > 9) {
3917 + total = versionObj.major2 - 9;
3918 + }
3919 + return total;
3920 + }
3921 +
3922 + /**
3923 + * @param {string} version1
3924 + * @param {string} version2
3925 + *
3926 + * @return {number}
3927 + */
3928 + }, {
3929 + key: "compareVersion",
3930 + value: function compareVersion(version1, version2) {
3931 + var _this = this;
3932 + return [this.parseVersion(version1), this.parseVersion(version2)].map(function (versionObj) {
3933 + return _this.getTotalMajor(versionObj);
3934 + }).reduce(function (acc, major) {
3935 + return acc - major;
3936 + });
3937 + }
3938 +
3939 + /**
3940 + * @param {string} version
3941 + *
3942 + * @return {boolean}
3943 + */
3944 + }, {
3945 + key: "isSoftDeprecated",
3946 + value: function isSoftDeprecated(version) {
3947 + var total = this.compareVersion(version, elementorWebCliConfig.version);
3948 + return total <= 4;
3949 + }
3950 +
3951 + /**
3952 + * @param {string} version
3953 + * @return {boolean}
3954 + */
3955 + }, {
3956 + key: "isHardDeprecated",
3957 + value: function isHardDeprecated(version) {
3958 + var total = this.compareVersion(version, elementorWebCliConfig.version);
3959 + return total < 0 || total >= 8;
3960 + }
3961 + }]);
3962 +}();
3963 +
3964 +/***/ }),
3965 +
3966 +/***/ "../modules/web-cli/assets/js/utils/force-method-implementation.js":
3967 +/*!*************************************************************************!*\
3968 + !*** ../modules/web-cli/assets/js/utils/force-method-implementation.js ***!
3969 + \*************************************************************************/
3970 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3971 +
3972 +"use strict";
3973 +
3974 +
3975 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3976 +Object.defineProperty(exports, "__esModule", ({
3977 + value: true
3978 +}));
3979 +exports["default"] = exports.ForceMethodImplementation = void 0;
3980 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3981 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3982 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
3983 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
3984 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
3985 +var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js"));
3986 +function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
3987 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
3988 +// TODO: Copied from `assets/dev/js/modules/imports/force-method-implementation.js`;
3989 +var ForceMethodImplementation = exports.ForceMethodImplementation = /*#__PURE__*/function (_Error) {
3990 + function ForceMethodImplementation() {
3991 + var _this;
3992 + var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3993 + (0, _classCallCheck2.default)(this, ForceMethodImplementation);
3994 + _this = _callSuper(this, ForceMethodImplementation, ["".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality.")]);
3995 + Error.captureStackTrace(_this, ForceMethodImplementation);
3996 + return _this;
3997 + }
3998 + (0, _inherits2.default)(ForceMethodImplementation, _Error);
3999 + return (0, _createClass2.default)(ForceMethodImplementation);
4000 +}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
4001 +var _default = exports["default"] = function _default() {
4002 + var stack = Error().stack,
4003 + caller = stack.split('\n')[2].trim(),
4004 + callerName = caller.startsWith('at new') ? 'constructor' : caller.split(' ')[1],
4005 + info = {};
4006 + info.functionName = callerName;
4007 + info.fullName = callerName;
4008 + if (info.functionName.includes('.')) {
4009 + var parts = info.functionName.split('.');
4010 + info.className = parts[0];
4011 + info.functionName = parts[1];
4012 + } else {
4013 + info.isStatic = true;
4014 + }
4015 + throw new ForceMethodImplementation(info);
4016 +};
4017 +
4018 +/***/ }),
4019 +
4020 +/***/ "../node_modules/redux-thunk/es/index.js":
4021 +/*!***********************************************!*\
4022 + !*** ../node_modules/redux-thunk/es/index.js ***!
4023 + \***********************************************/
4024 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4025 +
4026 +"use strict";
4027 +__webpack_require__.r(__webpack_exports__);
4028 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4029 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4030 +/* harmony export */ });
4031 +/** A function that accepts a potential "extra argument" value to be injected later,
4032 + * and returns an instance of the thunk middleware that uses that value
4033 + */
4034 +function createThunkMiddleware(extraArgument) {
4035 + // Standard Redux middleware definition pattern:
4036 + // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware
4037 + var middleware = function middleware(_ref) {
4038 + var dispatch = _ref.dispatch,
4039 + getState = _ref.getState;
4040 + return function (next) {
4041 + return function (action) {
4042 + // The thunk middleware looks for any functions that were passed to `store.dispatch`.
4043 + // If this "action" is really a function, call it and return the result.
4044 + if (typeof action === 'function') {
4045 + // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg"
4046 + return action(dispatch, getState, extraArgument);
4047 + } // Otherwise, pass the action down the middleware chain as usual
4048 +
4049 +
4050 + return next(action);
4051 + };
4052 + };
4053 + };
4054 +
4055 + return middleware;
4056 +}
4057 +
4058 +var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version
4059 +// with whatever "extra arg" they want to inject into their thunks
4060 +
4061 +thunk.withExtraArgument = createThunkMiddleware;
4062 +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (thunk);
4063 +
4064 +/***/ }),
4065 +
4066 +/***/ "../node_modules/redux/es/redux.js":
4067 +/*!*****************************************!*\
4068 + !*** ../node_modules/redux/es/redux.js ***!
4069 + \*****************************************/
4070 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4071 +
4072 +"use strict";
4073 +__webpack_require__.r(__webpack_exports__);
4074 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4075 +/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* binding */ ActionTypes),
4076 +/* harmony export */ applyMiddleware: () => (/* binding */ applyMiddleware),
4077 +/* harmony export */ bindActionCreators: () => (/* binding */ bindActionCreators),
4078 +/* harmony export */ combineReducers: () => (/* binding */ combineReducers),
4079 +/* harmony export */ compose: () => (/* binding */ compose),
4080 +/* harmony export */ createStore: () => (/* binding */ createStore),
4081 +/* harmony export */ legacy_createStore: () => (/* binding */ legacy_createStore)
4082 +/* harmony export */ });
4083 +/* 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");
4084 +
4085 +
4086 +/**
4087 + * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
4088 + *
4089 + * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
4090 + * during build.
4091 + * @param {number} code
4092 + */
4093 +function formatProdErrorMessage(code) {
4094 + 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. ';
4095 +}
4096 +
4097 +// Inlined version of the `symbol-observable` polyfill
4098 +var $$observable = (function () {
4099 + return typeof Symbol === 'function' && Symbol.observable || '@@observable';
4100 +})();
4101 +
4102 +/**
4103 + * These are private action types reserved by Redux.
4104 + * For any unknown actions, you must return the current state.
4105 + * If the current state is undefined, you must return the initial state.
4106 + * Do not reference these action types directly in your code.
4107 + */
4108 +var randomString = function randomString() {
4109 + return Math.random().toString(36).substring(7).split('').join('.');
4110 +};
4111 +
4112 +var ActionTypes = {
4113 + INIT: "@@redux/INIT" + randomString(),
4114 + REPLACE: "@@redux/REPLACE" + randomString(),
4115 + PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
4116 + return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
4117 + }
4118 +};
4119 +
4120 +/**
4121 + * @param {any} obj The object to inspect.
4122 + * @returns {boolean} True if the argument appears to be a plain object.
4123 + */
4124 +function isPlainObject(obj) {
4125 + if (typeof obj !== 'object' || obj === null) return false;
4126 + var proto = obj;
4127 +
4128 + while (Object.getPrototypeOf(proto) !== null) {
4129 + proto = Object.getPrototypeOf(proto);
4130 + }
4131 +
4132 + return Object.getPrototypeOf(obj) === proto;
4133 +}
4134 +
4135 +// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
4136 +function miniKindOf(val) {
4137 + if (val === void 0) return 'undefined';
4138 + if (val === null) return 'null';
4139 + var type = typeof val;
4140 +
4141 + switch (type) {
4142 + case 'boolean':
4143 + case 'string':
4144 + case 'number':
4145 + case 'symbol':
4146 + case 'function':
4147 + {
4148 + return type;
4149 + }
4150 + }
4151 +
4152 + if (Array.isArray(val)) return 'array';
4153 + if (isDate(val)) return 'date';
4154 + if (isError(val)) return 'error';
4155 + var constructorName = ctorName(val);
4156 +
4157 + switch (constructorName) {
4158 + case 'Symbol':
4159 + case 'Promise':
4160 + case 'WeakMap':
4161 + case 'WeakSet':
4162 + case 'Map':
4163 + case 'Set':
4164 + return constructorName;
4165 + } // other
4166 +
4167 +
4168 + return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
4169 +}
4170 +
4171 +function ctorName(val) {
4172 + return typeof val.constructor === 'function' ? val.constructor.name : null;
4173 +}
4174 +
4175 +function isError(val) {
4176 + return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
4177 +}
4178 +
4179 +function isDate(val) {
4180 + if (val instanceof Date) return true;
4181 + return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
4182 +}
4183 +
4184 +function kindOf(val) {
4185 + var typeOfVal = typeof val;
4186 +
4187 + if (true) {
4188 + typeOfVal = miniKindOf(val);
4189 + }
4190 +
4191 + return typeOfVal;
4192 +}
4193 +
4194 +/**
4195 + * @deprecated
4196 + *
4197 + * **We recommend using the `configureStore` method
4198 + * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
4199 + *
4200 + * Redux Toolkit is our recommended approach for writing Redux logic today,
4201 + * including store setup, reducers, data fetching, and more.
4202 + *
4203 + * **For more details, please read this Redux docs page:**
4204 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
4205 + *
4206 + * `configureStore` from Redux Toolkit is an improved version of `createStore` that
4207 + * simplifies setup and helps avoid common bugs.
4208 + *
4209 + * You should not be using the `redux` core package by itself today, except for learning purposes.
4210 + * The `createStore` method from the core `redux` package will not be removed, but we encourage
4211 + * all users to migrate to using Redux Toolkit for all Redux code.
4212 + *
4213 + * If you want to use `createStore` without this visual deprecation warning, use
4214 + * the `legacy_createStore` import instead:
4215 + *
4216 + * `import { legacy_createStore as createStore} from 'redux'`
4217 + *
4218 + */
4219 +
4220 +function createStore(reducer, preloadedState, enhancer) {
4221 + var _ref2;
4222 +
4223 + if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
4224 + 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.');
4225 + }
4226 +
4227 + if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
4228 + enhancer = preloadedState;
4229 + preloadedState = undefined;
4230 + }
4231 +
4232 + if (typeof enhancer !== 'undefined') {
4233 + if (typeof enhancer !== 'function') {
4234 + throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'");
4235 + }
4236 +
4237 + return enhancer(createStore)(reducer, preloadedState);
4238 + }
4239 +
4240 + if (typeof reducer !== 'function') {
4241 + throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'");
4242 + }
4243 +
4244 + var currentReducer = reducer;
4245 + var currentState = preloadedState;
4246 + var currentListeners = [];
4247 + var nextListeners = currentListeners;
4248 + var isDispatching = false;
4249 + /**
4250 + * This makes a shallow copy of currentListeners so we can use
4251 + * nextListeners as a temporary list while dispatching.
4252 + *
4253 + * This prevents any bugs around consumers calling
4254 + * subscribe/unsubscribe in the middle of a dispatch.
4255 + */
4256 +
4257 + function ensureCanMutateNextListeners() {
4258 + if (nextListeners === currentListeners) {
4259 + nextListeners = currentListeners.slice();
4260 + }
4261 + }
4262 + /**
4263 + * Reads the state tree managed by the store.
4264 + *
4265 + * @returns {any} The current state tree of your application.
4266 + */
4267 +
4268 +
4269 + function getState() {
4270 + if (isDispatching) {
4271 + 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.');
4272 + }
4273 +
4274 + return currentState;
4275 + }
4276 + /**
4277 + * Adds a change listener. It will be called any time an action is dispatched,
4278 + * and some part of the state tree may potentially have changed. You may then
4279 + * call `getState()` to read the current state tree inside the callback.
4280 + *
4281 + * You may call `dispatch()` from a change listener, with the following
4282 + * caveats:
4283 + *
4284 + * 1. The subscriptions are snapshotted just before every `dispatch()` call.
4285 + * If you subscribe or unsubscribe while the listeners are being invoked, this
4286 + * will not have any effect on the `dispatch()` that is currently in progress.
4287 + * However, the next `dispatch()` call, whether nested or not, will use a more
4288 + * recent snapshot of the subscription list.
4289 + *
4290 + * 2. The listener should not expect to see all state changes, as the state
4291 + * might have been updated multiple times during a nested `dispatch()` before
4292 + * the listener is called. It is, however, guaranteed that all subscribers
4293 + * registered before the `dispatch()` started will be called with the latest
4294 + * state by the time it exits.
4295 + *
4296 + * @param {Function} listener A callback to be invoked on every dispatch.
4297 + * @returns {Function} A function to remove this change listener.
4298 + */
4299 +
4300 +
4301 + function subscribe(listener) {
4302 + if (typeof listener !== 'function') {
4303 + throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'");
4304 + }
4305 +
4306 + if (isDispatching) {
4307 + 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.');
4308 + }
4309 +
4310 + var isSubscribed = true;
4311 + ensureCanMutateNextListeners();
4312 + nextListeners.push(listener);
4313 + return function unsubscribe() {
4314 + if (!isSubscribed) {
4315 + return;
4316 + }
4317 +
4318 + if (isDispatching) {
4319 + 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.');
4320 + }
4321 +
4322 + isSubscribed = false;
4323 + ensureCanMutateNextListeners();
4324 + var index = nextListeners.indexOf(listener);
4325 + nextListeners.splice(index, 1);
4326 + currentListeners = null;
4327 + };
4328 + }
4329 + /**
4330 + * Dispatches an action. It is the only way to trigger a state change.
4331 + *
4332 + * The `reducer` function, used to create the store, will be called with the
4333 + * current state tree and the given `action`. Its return value will
4334 + * be considered the **next** state of the tree, and the change listeners
4335 + * will be notified.
4336 + *
4337 + * The base implementation only supports plain object actions. If you want to
4338 + * dispatch a Promise, an Observable, a thunk, or something else, you need to
4339 + * wrap your store creating function into the corresponding middleware. For
4340 + * example, see the documentation for the `redux-thunk` package. Even the
4341 + * middleware will eventually dispatch plain object actions using this method.
4342 + *
4343 + * @param {Object} action A plain object representing “what changed”. It is
4344 + * a good idea to keep actions serializable so you can record and replay user
4345 + * sessions, or use the time travelling `redux-devtools`. An action must have
4346 + * a `type` property which may not be `undefined`. It is a good idea to use
4347 + * string constants for action types.
4348 + *
4349 + * @returns {Object} For convenience, the same action object you dispatched.
4350 + *
4351 + * Note that, if you use a custom middleware, it may wrap `dispatch()` to
4352 + * return something else (for example, a Promise you can await).
4353 + */
4354 +
4355 +
4356 + function dispatch(action) {
4357 + if (!isPlainObject(action)) {
4358 + 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.");
4359 + }
4360 +
4361 + if (typeof action.type === 'undefined') {
4362 + throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
4363 + }
4364 +
4365 + if (isDispatching) {
4366 + throw new Error( false ? 0 : 'Reducers may not dispatch actions.');
4367 + }
4368 +
4369 + try {
4370 + isDispatching = true;
4371 + currentState = currentReducer(currentState, action);
4372 + } finally {
4373 + isDispatching = false;
4374 + }
4375 +
4376 + var listeners = currentListeners = nextListeners;
4377 +
4378 + for (var i = 0; i < listeners.length; i++) {
4379 + var listener = listeners[i];
4380 + listener();
4381 + }
4382 +
4383 + return action;
4384 + }
4385 + /**
4386 + * Replaces the reducer currently used by the store to calculate the state.
4387 + *
4388 + * You might need this if your app implements code splitting and you want to
4389 + * load some of the reducers dynamically. You might also need this if you
4390 + * implement a hot reloading mechanism for Redux.
4391 + *
4392 + * @param {Function} nextReducer The reducer for the store to use instead.
4393 + * @returns {void}
4394 + */
4395 +
4396 +
4397 + function replaceReducer(nextReducer) {
4398 + if (typeof nextReducer !== 'function') {
4399 + throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer));
4400 + }
4401 +
4402 + currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
4403 + // Any reducers that existed in both the new and old rootReducer
4404 + // will receive the previous state. This effectively populates
4405 + // the new state tree with any relevant data from the old one.
4406 +
4407 + dispatch({
4408 + type: ActionTypes.REPLACE
4409 + });
4410 + }
4411 + /**
4412 + * Interoperability point for observable/reactive libraries.
4413 + * @returns {observable} A minimal observable of state changes.
4414 + * For more information, see the observable proposal:
4415 + * https://github.com/tc39/proposal-observable
4416 + */
4417 +
4418 +
4419 + function observable() {
4420 + var _ref;
4421 +
4422 + var outerSubscribe = subscribe;
4423 + return _ref = {
4424 + /**
4425 + * The minimal observable subscription method.
4426 + * @param {Object} observer Any object that can be used as an observer.
4427 + * The observer object should have a `next` method.
4428 + * @returns {subscription} An object with an `unsubscribe` method that can
4429 + * be used to unsubscribe the observable from the store, and prevent further
4430 + * emission of values from the observable.
4431 + */
4432 + subscribe: function subscribe(observer) {
4433 + if (typeof observer !== 'object' || observer === null) {
4434 + throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'");
4435 + }
4436 +
4437 + function observeState() {
4438 + if (observer.next) {
4439 + observer.next(getState());
4440 + }
4441 + }
4442 +
4443 + observeState();
4444 + var unsubscribe = outerSubscribe(observeState);
4445 + return {
4446 + unsubscribe: unsubscribe
4447 + };
4448 + }
4449 + }, _ref[$$observable] = function () {
4450 + return this;
4451 + }, _ref;
4452 + } // When a store is created, an "INIT" action is dispatched so that every
4453 + // reducer returns their initial state. This effectively populates
4454 + // the initial state tree.
4455 +
4456 +
4457 + dispatch({
4458 + type: ActionTypes.INIT
4459 + });
4460 + return _ref2 = {
4461 + dispatch: dispatch,
4462 + subscribe: subscribe,
4463 + getState: getState,
4464 + replaceReducer: replaceReducer
4465 + }, _ref2[$$observable] = observable, _ref2;
4466 +}
4467 +/**
4468 + * Creates a Redux store that holds the state tree.
4469 + *
4470 + * **We recommend using `configureStore` from the
4471 + * `@reduxjs/toolkit` package**, which replaces `createStore`:
4472 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
4473 + *
4474 + * The only way to change the data in the store is to call `dispatch()` on it.
4475 + *
4476 + * There should only be a single store in your app. To specify how different
4477 + * parts of the state tree respond to actions, you may combine several reducers
4478 + * into a single reducer function by using `combineReducers`.
4479 + *
4480 + * @param {Function} reducer A function that returns the next state tree, given
4481 + * the current state tree and the action to handle.
4482 + *
4483 + * @param {any} [preloadedState] The initial state. You may optionally specify it
4484 + * to hydrate the state from the server in universal apps, or to restore a
4485 + * previously serialized user session.
4486 + * If you use `combineReducers` to produce the root reducer function, this must be
4487 + * an object with the same shape as `combineReducers` keys.
4488 + *
4489 + * @param {Function} [enhancer] The store enhancer. You may optionally specify it
4490 + * to enhance the store with third-party capabilities such as middleware,
4491 + * time travel, persistence, etc. The only store enhancer that ships with Redux
4492 + * is `applyMiddleware()`.
4493 + *
4494 + * @returns {Store} A Redux store that lets you read the state, dispatch actions
4495 + * and subscribe to changes.
4496 + */
4497 +
4498 +var legacy_createStore = createStore;
4499 +
4500 +/**
4501 + * Prints a warning in the console if it exists.
4502 + *
4503 + * @param {String} message The warning message.
4504 + * @returns {void}
4505 + */
4506 +function warning(message) {
4507 + /* eslint-disable no-console */
4508 + if (typeof console !== 'undefined' && typeof console.error === 'function') {
4509 + console.error(message);
4510 + }
4511 + /* eslint-enable no-console */
4512 +
4513 +
4514 + try {
4515 + // This error was thrown as a convenience so that if you enable
4516 + // "break on all exceptions" in your console,
4517 + // it would pause the execution at this line.
4518 + throw new Error(message);
4519 + } catch (e) {} // eslint-disable-line no-empty
4520 +
4521 +}
4522 +
4523 +function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
4524 + var reducerKeys = Object.keys(reducers);
4525 + var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
4526 +
4527 + if (reducerKeys.length === 0) {
4528 + return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
4529 + }
4530 +
4531 + if (!isPlainObject(inputState)) {
4532 + return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
4533 + }
4534 +
4535 + var unexpectedKeys = Object.keys(inputState).filter(function (key) {
4536 + return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
4537 + });
4538 + unexpectedKeys.forEach(function (key) {
4539 + unexpectedKeyCache[key] = true;
4540 + });
4541 + if (action && action.type === ActionTypes.REPLACE) return;
4542 +
4543 + if (unexpectedKeys.length > 0) {
4544 + 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.");
4545 + }
4546 +}
4547 +
4548 +function assertReducerShape(reducers) {
4549 + Object.keys(reducers).forEach(function (key) {
4550 + var reducer = reducers[key];
4551 + var initialState = reducer(undefined, {
4552 + type: ActionTypes.INIT
4553 + });
4554 +
4555 + if (typeof initialState === 'undefined') {
4556 + 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.");
4557 + }
4558 +
4559 + if (typeof reducer(undefined, {
4560 + type: ActionTypes.PROBE_UNKNOWN_ACTION()
4561 + }) === 'undefined') {
4562 + 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.");
4563 + }
4564 + });
4565 +}
4566 +/**
4567 + * Turns an object whose values are different reducer functions, into a single
4568 + * reducer function. It will call every child reducer, and gather their results
4569 + * into a single state object, whose keys correspond to the keys of the passed
4570 + * reducer functions.
4571 + *
4572 + * @param {Object} reducers An object whose values correspond to different
4573 + * reducer functions that need to be combined into one. One handy way to obtain
4574 + * it is to use ES6 `import * as reducers` syntax. The reducers may never return
4575 + * undefined for any action. Instead, they should return their initial state
4576 + * if the state passed to them was undefined, and the current state for any
4577 + * unrecognized action.
4578 + *
4579 + * @returns {Function} A reducer function that invokes every reducer inside the
4580 + * passed object, and builds a state object with the same shape.
4581 + */
4582 +
4583 +
4584 +function combineReducers(reducers) {
4585 + var reducerKeys = Object.keys(reducers);
4586 + var finalReducers = {};
4587 +
4588 + for (var i = 0; i < reducerKeys.length; i++) {
4589 + var key = reducerKeys[i];
4590 +
4591 + if (true) {
4592 + if (typeof reducers[key] === 'undefined') {
4593 + warning("No reducer provided for key \"" + key + "\"");
4594 + }
4595 + }
4596 +
4597 + if (typeof reducers[key] === 'function') {
4598 + finalReducers[key] = reducers[key];
4599 + }
4600 + }
4601 +
4602 + var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
4603 + // keys multiple times.
4604 +
4605 + var unexpectedKeyCache;
4606 +
4607 + if (true) {
4608 + unexpectedKeyCache = {};
4609 + }
4610 +
4611 + var shapeAssertionError;
4612 +
4613 + try {
4614 + assertReducerShape(finalReducers);
4615 + } catch (e) {
4616 + shapeAssertionError = e;
4617 + }
4618 +
4619 + return function combination(state, action) {
4620 + if (state === void 0) {
4621 + state = {};
4622 + }
4623 +
4624 + if (shapeAssertionError) {
4625 + throw shapeAssertionError;
4626 + }
4627 +
4628 + if (true) {
4629 + var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
4630 +
4631 + if (warningMessage) {
4632 + warning(warningMessage);
4633 + }
4634 + }
4635 +
4636 + var hasChanged = false;
4637 + var nextState = {};
4638 +
4639 + for (var _i = 0; _i < finalReducerKeys.length; _i++) {
4640 + var _key = finalReducerKeys[_i];
4641 + var reducer = finalReducers[_key];
4642 + var previousStateForKey = state[_key];
4643 + var nextStateForKey = reducer(previousStateForKey, action);
4644 +
4645 + if (typeof nextStateForKey === 'undefined') {
4646 + var actionType = action && action.type;
4647 + 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.");
4648 + }
4649 +
4650 + nextState[_key] = nextStateForKey;
4651 + hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
4652 + }
4653 +
4654 + hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
4655 + return hasChanged ? nextState : state;
4656 + };
4657 +}
4658 +
4659 +function bindActionCreator(actionCreator, dispatch) {
4660 + return function () {
4661 + return dispatch(actionCreator.apply(this, arguments));
4662 + };
4663 +}
4664 +/**
4665 + * Turns an object whose values are action creators, into an object with the
4666 + * same keys, but with every function wrapped into a `dispatch` call so they
4667 + * may be invoked directly. This is just a convenience method, as you can call
4668 + * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
4669 + *
4670 + * For convenience, you can also pass an action creator as the first argument,
4671 + * and get a dispatch wrapped function in return.
4672 + *
4673 + * @param {Function|Object} actionCreators An object whose values are action
4674 + * creator functions. One handy way to obtain it is to use ES6 `import * as`
4675 + * syntax. You may also pass a single function.
4676 + *
4677 + * @param {Function} dispatch The `dispatch` function available on your Redux
4678 + * store.
4679 + *
4680 + * @returns {Function|Object} The object mimicking the original object, but with
4681 + * every action creator wrapped into the `dispatch` call. If you passed a
4682 + * function as `actionCreators`, the return value will also be a single
4683 + * function.
4684 + */
4685 +
4686 +
4687 +function bindActionCreators(actionCreators, dispatch) {
4688 + if (typeof actionCreators === 'function') {
4689 + return bindActionCreator(actionCreators, dispatch);
4690 + }
4691 +
4692 + if (typeof actionCreators !== 'object' || actionCreators === null) {
4693 + 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\"?");
4694 + }
4695 +
4696 + var boundActionCreators = {};
4697 +
4698 + for (var key in actionCreators) {
4699 + var actionCreator = actionCreators[key];
4700 +
4701 + if (typeof actionCreator === 'function') {
4702 + boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
4703 + }
4704 + }
4705 +
4706 + return boundActionCreators;
4707 +}
4708 +
4709 +/**
4710 + * Composes single-argument functions from right to left. The rightmost
4711 + * function can take multiple arguments as it provides the signature for
4712 + * the resulting composite function.
4713 + *
4714 + * @param {...Function} funcs The functions to compose.
4715 + * @returns {Function} A function obtained by composing the argument functions
4716 + * from right to left. For example, compose(f, g, h) is identical to doing
4717 + * (...args) => f(g(h(...args))).
4718 + */
4719 +function compose() {
4720 + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
4721 + funcs[_key] = arguments[_key];
4722 + }
4723 +
4724 + if (funcs.length === 0) {
4725 + return function (arg) {
4726 + return arg;
4727 + };
4728 + }
4729 +
4730 + if (funcs.length === 1) {
4731 + return funcs[0];
4732 + }
4733 +
4734 + return funcs.reduce(function (a, b) {
4735 + return function () {
4736 + return a(b.apply(void 0, arguments));
4737 + };
4738 + });
4739 +}
4740 +
4741 +/**
4742 + * Creates a store enhancer that applies middleware to the dispatch method
4743 + * of the Redux store. This is handy for a variety of tasks, such as expressing
4744 + * asynchronous actions in a concise manner, or logging every action payload.
4745 + *
4746 + * See `redux-thunk` package as an example of the Redux middleware.
4747 + *
4748 + * Because middleware is potentially asynchronous, this should be the first
4749 + * store enhancer in the composition chain.
4750 + *
4751 + * Note that each middleware will be given the `dispatch` and `getState` functions
4752 + * as named arguments.
4753 + *
4754 + * @param {...Function} middlewares The middleware chain to be applied.
4755 + * @returns {Function} A store enhancer applying the middleware.
4756 + */
4757 +
4758 +function applyMiddleware() {
4759 + for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
4760 + middlewares[_key] = arguments[_key];
4761 + }
4762 +
4763 + return function (createStore) {
4764 + return function () {
4765 + var store = createStore.apply(void 0, arguments);
4766 +
4767 + var _dispatch = function dispatch() {
4768 + throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
4769 + };
4770 +
4771 + var middlewareAPI = {
4772 + getState: store.getState,
4773 + dispatch: function dispatch() {
4774 + return _dispatch.apply(void 0, arguments);
4775 + }
4776 + };
4777 + var chain = middlewares.map(function (middleware) {
4778 + return middleware(middlewareAPI);
4779 + });
4780 + _dispatch = compose.apply(void 0, chain)(store.dispatch);
4781 + return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, store), {}, {
4782 + dispatch: _dispatch
4783 + });
4784 + };
4785 + };
4786 +}
4787 +
4788 +
4789 +
4790 +
4791 +/***/ }),
4792 +
4793 +/***/ "../node_modules/reselect/es/defaultMemoize.js":
4794 +/*!*****************************************************!*\
4795 + !*** ../node_modules/reselect/es/defaultMemoize.js ***!
4796 + \*****************************************************/
4797 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4798 +
4799 +"use strict";
4800 +__webpack_require__.r(__webpack_exports__);
4801 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4802 +/* harmony export */ createCacheKeyComparator: () => (/* binding */ createCacheKeyComparator),
4803 +/* harmony export */ defaultEqualityCheck: () => (/* binding */ defaultEqualityCheck),
4804 +/* harmony export */ defaultMemoize: () => (/* binding */ defaultMemoize)
4805 +/* harmony export */ });
4806 +// Cache implementation based on Erik Rasmussen's `lru-memoize`:
4807 +// https://github.com/erikras/lru-memoize
4808 +var NOT_FOUND = 'NOT_FOUND';
4809 +
4810 +function createSingletonCache(equals) {
4811 + var entry;
4812 + return {
4813 + get: function get(key) {
4814 + if (entry && equals(entry.key, key)) {
4815 + return entry.value;
4816 + }
4817 +
4818 + return NOT_FOUND;
4819 + },
4820 + put: function put(key, value) {
4821 + entry = {
4822 + key: key,
4823 + value: value
4824 + };
4825 + },
4826 + getEntries: function getEntries() {
4827 + return entry ? [entry] : [];
4828 + },
4829 + clear: function clear() {
4830 + entry = undefined;
4831 + }
4832 + };
4833 +}
4834 +
4835 +function createLruCache(maxSize, equals) {
4836 + var entries = [];
4837 +
4838 + function get(key) {
4839 + var cacheIndex = entries.findIndex(function (entry) {
4840 + return equals(key, entry.key);
4841 + }); // We found a cached entry
4842 +
4843 + if (cacheIndex > -1) {
4844 + var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top
4845 +
4846 + if (cacheIndex > 0) {
4847 + entries.splice(cacheIndex, 1);
4848 + entries.unshift(entry);
4849 + }
4850 +
4851 + return entry.value;
4852 + } // No entry found in cache, return sentinel
4853 +
4854 +
4855 + return NOT_FOUND;
4856 + }
4857 +
4858 + function put(key, value) {
4859 + if (get(key) === NOT_FOUND) {
4860 + // TODO Is unshift slow?
4861 + entries.unshift({
4862 + key: key,
4863 + value: value
4864 + });
4865 +
4866 + if (entries.length > maxSize) {
4867 + entries.pop();
4868 + }
4869 + }
4870 + }
4871 +
4872 + function getEntries() {
4873 + return entries;
4874 + }
4875 +
4876 + function clear() {
4877 + entries = [];
4878 + }
4879 +
4880 + return {
4881 + get: get,
4882 + put: put,
4883 + getEntries: getEntries,
4884 + clear: clear
4885 + };
4886 +}
4887 +
4888 +var defaultEqualityCheck = function defaultEqualityCheck(a, b) {
4889 + return a === b;
4890 +};
4891 +function createCacheKeyComparator(equalityCheck) {
4892 + return function areArgumentsShallowlyEqual(prev, next) {
4893 + if (prev === null || next === null || prev.length !== next.length) {
4894 + return false;
4895 + } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
4896 +
4897 +
4898 + var length = prev.length;
4899 +
4900 + for (var i = 0; i < length; i++) {
4901 + if (!equalityCheck(prev[i], next[i])) {
4902 + return false;
4903 + }
4904 + }
4905 +
4906 + return true;
4907 + };
4908 +}
4909 +// defaultMemoize now supports a configurable cache size with LRU behavior,
4910 +// and optional comparison of the result value with existing values
4911 +function defaultMemoize(func, equalityCheckOrOptions) {
4912 + var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : {
4913 + equalityCheck: equalityCheckOrOptions
4914 + };
4915 + var _providedOptions$equa = providedOptions.equalityCheck,
4916 + equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa,
4917 + _providedOptions$maxS = providedOptions.maxSize,
4918 + maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS,
4919 + resultEqualityCheck = providedOptions.resultEqualityCheck;
4920 + var comparator = createCacheKeyComparator(equalityCheck);
4921 + var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons
4922 +
4923 + function memoized() {
4924 + var value = cache.get(arguments);
4925 +
4926 + if (value === NOT_FOUND) {
4927 + // @ts-ignore
4928 + value = func.apply(null, arguments);
4929 +
4930 + if (resultEqualityCheck) {
4931 + var entries = cache.getEntries();
4932 + var matchingEntry = entries.find(function (entry) {
4933 + return resultEqualityCheck(entry.value, value);
4934 + });
4935 +
4936 + if (matchingEntry) {
4937 + value = matchingEntry.value;
4938 + }
4939 + }
4940 +
4941 + cache.put(arguments, value);
4942 + }
4943 +
4944 + return value;
4945 + }
4946 +
4947 + memoized.clearCache = function () {
4948 + return cache.clear();
4949 + };
4950 +
4951 + return memoized;
4952 +}
4953 +
4954 +/***/ }),
4955 +
4956 +/***/ "../node_modules/reselect/es/index.js":
4957 +/*!********************************************!*\
4958 + !*** ../node_modules/reselect/es/index.js ***!
4959 + \********************************************/
4960 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4961 +
4962 +"use strict";
4963 +__webpack_require__.r(__webpack_exports__);
4964 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4965 +/* harmony export */ createSelector: () => (/* binding */ createSelector),
4966 +/* harmony export */ createSelectorCreator: () => (/* binding */ createSelectorCreator),
4967 +/* harmony export */ createStructuredSelector: () => (/* binding */ createStructuredSelector),
4968 +/* harmony export */ defaultEqualityCheck: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultEqualityCheck),
4969 +/* harmony export */ defaultMemoize: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize)
4970 +/* harmony export */ });
4971 +/* harmony import */ var _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultMemoize */ "../node_modules/reselect/es/defaultMemoize.js");
4972 +
4973 +
4974 +
4975 +function getDependencies(funcs) {
4976 + var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;
4977 +
4978 + if (!dependencies.every(function (dep) {
4979 + return typeof dep === 'function';
4980 + })) {
4981 + var dependencyTypes = dependencies.map(function (dep) {
4982 + return typeof dep === 'function' ? "function " + (dep.name || 'unnamed') + "()" : typeof dep;
4983 + }).join(', ');
4984 + throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]");
4985 + }
4986 +
4987 + return dependencies;
4988 +}
4989 +
4990 +function createSelectorCreator(memoize) {
4991 + for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
4992 + memoizeOptionsFromArgs[_key - 1] = arguments[_key];
4993 + }
4994 +
4995 + var createSelector = function createSelector() {
4996 + for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
4997 + funcs[_key2] = arguments[_key2];
4998 + }
4999 +
5000 + var _recomputations = 0;
5001 +
5002 + var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`.
5003 + // So, start by declaring the default value here.
5004 + // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.)
5005 +
5006 +
5007 + var directlyPassedOptions = {
5008 + memoizeOptions: undefined
5009 + }; // Normally, the result func or "output selector" is the last arg
5010 +
5011 + var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object
5012 +
5013 + if (typeof resultFunc === 'object') {
5014 + directlyPassedOptions = resultFunc; // and pop the real result func off
5015 +
5016 + resultFunc = funcs.pop();
5017 + }
5018 +
5019 + if (typeof resultFunc !== 'function') {
5020 + throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]");
5021 + } // Determine which set of options we're using. Prefer options passed directly,
5022 + // but fall back to options given to createSelectorCreator.
5023 +
5024 +
5025 + var _directlyPassedOption = directlyPassedOptions,
5026 + _directlyPassedOption2 = _directlyPassedOption.memoizeOptions,
5027 + memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer
5028 + // is an array. In most libs I've looked at, it's an equality function or options object.
5029 + // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full
5030 + // user-provided array of options. Otherwise, it must be just the _first_ arg, and so
5031 + // we wrap it in an array so we can apply it.
5032 +
5033 + var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions];
5034 + var dependencies = getDependencies(funcs);
5035 + var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() {
5036 + _recomputations++; // apply arguments instead of spreading for performance.
5037 +
5038 + return resultFunc.apply(null, arguments);
5039 + }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.
5040 +
5041 + var selector = memoize(function dependenciesChecker() {
5042 + var params = [];
5043 + var length = dependencies.length;
5044 +
5045 + for (var i = 0; i < length; i++) {
5046 + // apply arguments instead of spreading and mutate a local list of params for performance.
5047 + // @ts-ignore
5048 + params.push(dependencies[i].apply(null, arguments));
5049 + } // apply arguments instead of spreading for performance.
5050 +
5051 +
5052 + _lastResult = memoizedResultFunc.apply(null, params);
5053 + return _lastResult;
5054 + });
5055 + Object.assign(selector, {
5056 + resultFunc: resultFunc,
5057 + memoizedResultFunc: memoizedResultFunc,
5058 + dependencies: dependencies,
5059 + lastResult: function lastResult() {
5060 + return _lastResult;
5061 + },
5062 + recomputations: function recomputations() {
5063 + return _recomputations;
5064 + },
5065 + resetRecomputations: function resetRecomputations() {
5066 + return _recomputations = 0;
5067 + }
5068 + });
5069 + return selector;
5070 + }; // @ts-ignore
5071 +
5072 +
5073 + return createSelector;
5074 +}
5075 +var createSelector = /* #__PURE__ */createSelectorCreator(_defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize);
5076 +// Manual definition of state and output arguments
5077 +var createStructuredSelector = function createStructuredSelector(selectors, selectorCreator) {
5078 + if (selectorCreator === void 0) {
5079 + selectorCreator = createSelector;
5080 + }
5081 +
5082 + if (typeof selectors !== 'object') {
5083 + throw new Error('createStructuredSelector expects first argument to be an object ' + ("where each property is a selector, instead received a " + typeof selectors));
5084 + }
5085 +
5086 + var objectKeys = Object.keys(selectors);
5087 + var resultSelector = selectorCreator( // @ts-ignore
5088 + objectKeys.map(function (key) {
5089 + return selectors[key];
5090 + }), function () {
5091 + for (var _len3 = arguments.length, values = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
5092 + values[_key3] = arguments[_key3];
5093 + }
5094 +
5095 + return values.reduce(function (composition, value, index) {
5096 + composition[objectKeys[index]] = value;
5097 + return composition;
5098 + }, {});
5099 + });
5100 + return resultSelector;
5101 +};
5102 +
5103 +/***/ }),
5104 +
5105 +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
5106 +/*!******************************************************************!*\
5107 + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
5108 + \******************************************************************/
5109 +/***/ ((module) => {
5110 +
5111 +function _arrayLikeToArray(r, a) {
5112 + (null == a || a > r.length) && (a = r.length);
5113 + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
5114 + return n;
5115 +}
5116 +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5117 +
5118 +/***/ }),
5119 +
5120 +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
5121 +/*!****************************************************************!*\
5122 + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
5123 + \****************************************************************/
5124 +/***/ ((module) => {
5125 +
5126 +function _arrayWithHoles(r) {
5127 + if (Array.isArray(r)) return r;
5128 +}
5129 +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
5130 +
5131 +/***/ }),
5132 +
5133 +/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js":
5134 +/*!***********************************************************************!*\
5135 + !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
5136 + \***********************************************************************/
5137 +/***/ ((module) => {
5138 +
5139 +function _assertThisInitialized(e) {
5140 + if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5141 + return e;
5142 +}
5143 +module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
5144 +
5145 +/***/ }),
5146 +
5147 +/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
5148 +/*!****************************************************************!*\
5149 + !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
5150 + \****************************************************************/
5151 +/***/ ((module) => {
5152 +
5153 +function _classCallCheck(a, n) {
5154 + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
5155 +}
5156 +module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
5157 +
5158 +/***/ }),
5159 +
5160 +/***/ "../node_modules/@babel/runtime/helpers/construct.js":
5161 +/*!***********************************************************!*\
5162 + !*** ../node_modules/@babel/runtime/helpers/construct.js ***!
5163 + \***********************************************************/
5164 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5165 +
5166 +var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js");
5167 +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
5168 +function _construct(t, e, r) {
5169 + if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
5170 + var o = [null];
5171 + o.push.apply(o, e);
5172 + var p = new (t.bind.apply(t, o))();
5173 + return r && setPrototypeOf(p, r.prototype), p;
5174 +}
5175 +module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
5176 +
5177 +/***/ }),
5178 +
5179 +/***/ "../node_modules/@babel/runtime/helpers/createClass.js":
5180 +/*!*************************************************************!*\
5181 + !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
5182 + \*************************************************************/
5183 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5184 +
5185 +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
5186 +function _defineProperties(e, r) {
5187 + for (var t = 0; t < r.length; t++) {
5188 + var o = r[t];
5189 + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
5190 + }
5191 +}
5192 +function _createClass(e, r, t) {
5193 + return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
5194 + writable: !1
5195 + }), e;
5196 +}
5197 +module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
5198 +
5199 +/***/ }),
5200 +
5201 +/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
5202 +/*!****************************************************************!*\
5203 + !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
5204 + \****************************************************************/
5205 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5206 +
5207 +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
5208 +function _defineProperty(e, r, t) {
5209 + return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
5210 + value: t,
5211 + enumerable: !0,
5212 + configurable: !0,
5213 + writable: !0
5214 + }) : e[r] = t, e;
5215 +}
5216 +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
5217 +
5218 +/***/ }),
5219 +
5220 +/***/ "../node_modules/@babel/runtime/helpers/get.js":
5221 +/*!*****************************************************!*\
5222 + !*** ../node_modules/@babel/runtime/helpers/get.js ***!
5223 + \*****************************************************/
5224 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5225 +
5226 +var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js");
5227 +function _get() {
5228 + return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
5229 + var p = superPropBase(e, t);
5230 + if (p) {
5231 + var n = Object.getOwnPropertyDescriptor(p, t);
5232 + return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
5233 + }
5234 + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments);
5235 +}
5236 +module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
5237 +
5238 +/***/ }),
5239 +
5240 +/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js":
5241 +/*!****************************************************************!*\
5242 + !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
5243 + \****************************************************************/
5244 +/***/ ((module) => {
5245 +
5246 +function _getPrototypeOf(t) {
5247 + return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
5248 + return t.__proto__ || Object.getPrototypeOf(t);
5249 + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
5250 +}
5251 +module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
5252 +
5253 +/***/ }),
5254 +
5255 +/***/ "../node_modules/@babel/runtime/helpers/inherits.js":
5256 +/*!**********************************************************!*\
5257 + !*** ../node_modules/@babel/runtime/helpers/inherits.js ***!
5258 + \**********************************************************/
5259 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5260 +
5261 +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
5262 +function _inherits(t, e) {
5263 + if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
5264 + t.prototype = Object.create(e && e.prototype, {
5265 + constructor: {
5266 + value: t,
5267 + writable: !0,
5268 + configurable: !0
5269 + }
5270 + }), Object.defineProperty(t, "prototype", {
5271 + writable: !1
5272 + }), e && setPrototypeOf(t, e);
5273 +}
5274 +module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
5275 +
5276 +/***/ }),
5277 +
5278 +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
5279 +/*!***********************************************************************!*\
5280 + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
5281 + \***********************************************************************/
5282 +/***/ ((module) => {
5283 +
5284 +function _interopRequireDefault(e) {
5285 + return e && e.__esModule ? e : {
5286 + "default": e
5287 + };
5288 +}
5289 +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
5290 +
5291 +/***/ }),
5292 +
5293 +/***/ "../node_modules/@babel/runtime/helpers/isNativeFunction.js":
5294 +/*!******************************************************************!*\
5295 + !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
5296 + \******************************************************************/
5297 +/***/ ((module) => {
5298 +
5299 +function _isNativeFunction(t) {
5300 + try {
5301 + return -1 !== Function.toString.call(t).indexOf("[native code]");
5302 + } catch (n) {
5303 + return "function" == typeof t;
5304 + }
5305 +}
5306 +module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
5307 +
5308 +/***/ }),
5309 +
5310 +/***/ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js":
5311 +/*!**************************************************************************!*\
5312 + !*** ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
5313 + \**************************************************************************/
5314 +/***/ ((module) => {
5315 +
5316 +function _isNativeReflectConstruct() {
5317 + try {
5318 + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
5319 + } catch (t) {}
5320 + return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
5321 + return !!t;
5322 + }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
5323 +}
5324 +module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
5325 +
5326 +/***/ }),
5327 +
5328 +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
5329 +/*!**********************************************************************!*\
5330 + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
5331 + \**********************************************************************/
5332 +/***/ ((module) => {
5333 +
5334 +function _iterableToArrayLimit(r, l) {
5335 + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
5336 + if (null != t) {
5337 + var e,
5338 + n,
5339 + i,
5340 + u,
5341 + a = [],
5342 + f = !0,
5343 + o = !1;
5344 + try {
5345 + if (i = (t = t.call(r)).next, 0 === l) {
5346 + if (Object(t) !== t) return;
5347 + f = !1;
5348 + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
5349 + } catch (r) {
5350 + o = !0, n = r;
5351 + } finally {
5352 + try {
5353 + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
5354 + } finally {
5355 + if (o) throw n;
5356 + }
5357 + }
5358 + return a;
5359 + }
5360 +}
5361 +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
5362 +
5363 +/***/ }),
5364 +
5365 +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
5366 +/*!*****************************************************************!*\
5367 + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
5368 + \*****************************************************************/
5369 +/***/ ((module) => {
5370 +
5371 +function _nonIterableRest() {
5372 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5373 +}
5374 +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
5375 +
5376 +/***/ }),
5377 +
5378 +/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
5379 +/*!***************************************************************************!*\
5380 + !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
5381 + \***************************************************************************/
5382 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5383 +
5384 +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
5385 +var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
5386 +function _possibleConstructorReturn(t, e) {
5387 + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
5388 + if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
5389 + return assertThisInitialized(t);
5390 +}
5391 +module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
5392 +
5393 +/***/ }),
5394 +
5395 +/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js":
5396 +/*!****************************************************************!*\
5397 + !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
5398 + \****************************************************************/
5399 +/***/ ((module) => {
5400 +
5401 +function _setPrototypeOf(t, e) {
5402 + return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
5403 + return t.__proto__ = e, t;
5404 + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
5405 +}
5406 +module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
5407 +
5408 +/***/ }),
5409 +
5410 +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
5411 +/*!***************************************************************!*\
5412 + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
5413 + \***************************************************************/
5414 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5415 +
5416 +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
5417 +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
5418 +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
5419 +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
5420 +function _slicedToArray(r, e) {
5421 + return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
5422 +}
5423 +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5424 +
5425 +/***/ }),
5426 +
5427 +/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js":
5428 +/*!***************************************************************!*\
5429 + !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***!
5430 + \***************************************************************/
5431 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5432 +
5433 +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
5434 +function _superPropBase(t, o) {
5435 + for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t)););
5436 + return t;
5437 +}
5438 +module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
5439 +
5440 +/***/ }),
5441 +
5442 +/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
5443 +/*!*************************************************************!*\
5444 + !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
5445 + \*************************************************************/
5446 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5447 +
5448 +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
5449 +function toPrimitive(t, r) {
5450 + if ("object" != _typeof(t) || !t) return t;
5451 + var e = t[Symbol.toPrimitive];
5452 + if (void 0 !== e) {
5453 + var i = e.call(t, r || "default");
5454 + if ("object" != _typeof(i)) return i;
5455 + throw new TypeError("@@toPrimitive must return a primitive value.");
5456 + }
5457 + return ("string" === r ? String : Number)(t);
5458 +}
5459 +module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
5460 +
5461 +/***/ }),
5462 +
5463 +/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
5464 +/*!***************************************************************!*\
5465 + !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
5466 + \***************************************************************/
5467 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5468 +
5469 +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
5470 +var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
5471 +function toPropertyKey(t) {
5472 + var i = toPrimitive(t, "string");
5473 + return "symbol" == _typeof(i) ? i : i + "";
5474 +}
5475 +module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
5476 +
5477 +/***/ }),
5478 +
5479 +/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
5480 +/*!********************************************************!*\
5481 + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
5482 + \********************************************************/
5483 +/***/ ((module) => {
5484 +
5485 +function _typeof(o) {
5486 + "@babel/helpers - typeof";
5487 +
5488 + return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5489 + return typeof o;
5490 + } : function (o) {
5491 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
5492 + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
5493 +}
5494 +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
5495 +
5496 +/***/ }),
5497 +
5498 +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
5499 +/*!****************************************************************************!*\
5500 + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
5501 + \****************************************************************************/
5502 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5503 +
5504 +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
5505 +function _unsupportedIterableToArray(r, a) {
5506 + if (r) {
5507 + if ("string" == typeof r) return arrayLikeToArray(r, a);
5508 + var t = {}.toString.call(r).slice(8, -1);
5509 + return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;
5510 + }
5511 +}
5512 +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5513 +
5514 +/***/ }),
5515 +
5516 +/***/ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js":
5517 +/*!*****************************************************************!*\
5518 + !*** ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
5519 + \*****************************************************************/
5520 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5521 +
5522 +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
5523 +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
5524 +var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js");
5525 +var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime/helpers/construct.js");
5526 +function _wrapNativeSuper(t) {
5527 + var r = "function" == typeof Map ? new Map() : void 0;
5528 + return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) {
5529 + if (null === t || !isNativeFunction(t)) return t;
5530 + if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
5531 + if (void 0 !== r) {
5532 + if (r.has(t)) return r.get(t);
5533 + r.set(t, Wrapper);
5534 + }
5535 + function Wrapper() {
5536 + return construct(t, arguments, getPrototypeOf(this).constructor);
5537 + }
5538 + return Wrapper.prototype = Object.create(t.prototype, {
5539 + constructor: {
5540 + value: Wrapper,
5541 + enumerable: !1,
5542 + writable: !0,
5543 + configurable: !0
5544 + }
5545 + }), setPrototypeOf(Wrapper, t);
5546 + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t);
5547 +}
5548 +module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
5549 +
5550 +/***/ }),
5551 +
5552 +/***/ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js":
5553 +/*!********************************************************************!*\
5554 + !*** ../node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
5555 + \********************************************************************/
5556 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
5557 +
5558 +"use strict";
5559 +__webpack_require__.r(__webpack_exports__);
5560 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5561 +/* harmony export */ "default": () => (/* binding */ _defineProperty)
5562 +/* harmony export */ });
5563 +/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
5564 +
5565 +function _defineProperty(e, r, t) {
5566 + return (r = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r)) in e ? Object.defineProperty(e, r, {
5567 + value: t,
5568 + enumerable: !0,
5569 + configurable: !0,
5570 + writable: !0
5571 + }) : e[r] = t, e;
5572 +}
5573 +
5574 +
5575 +/***/ }),
5576 +
5577 +/***/ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js":
5578 +/*!*******************************************************************!*\
5579 + !*** ../node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
5580 + \*******************************************************************/
5581 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
5582 +
5583 +"use strict";
5584 +__webpack_require__.r(__webpack_exports__);
5585 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5586 +/* harmony export */ "default": () => (/* binding */ _objectSpread2)
5587 +/* harmony export */ });
5588 +/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js");
5589 +
5590 +function ownKeys(e, r) {
5591 + var t = Object.keys(e);
5592 + if (Object.getOwnPropertySymbols) {
5593 + var o = Object.getOwnPropertySymbols(e);
5594 + r && (o = o.filter(function (r) {
5595 + return Object.getOwnPropertyDescriptor(e, r).enumerable;
5596 + })), t.push.apply(t, o);
5597 + }
5598 + return t;
5599 +}
5600 +function _objectSpread2(e) {
5601 + for (var r = 1; r < arguments.length; r++) {
5602 + var t = null != arguments[r] ? arguments[r] : {};
5603 + r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
5604 + (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]);
5605 + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
5606 + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
5607 + });
5608 + }
5609 + return e;
5610 +}
5611 +
5612 +
5613 +/***/ }),
5614 +
5615 +/***/ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
5616 +/*!*****************************************************************!*\
5617 + !*** ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
5618 + \*****************************************************************/
5619 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
5620 +
5621 +"use strict";
5622 +__webpack_require__.r(__webpack_exports__);
5623 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5624 +/* harmony export */ "default": () => (/* binding */ toPrimitive)
5625 +/* harmony export */ });
5626 +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js");
5627 +
5628 +function toPrimitive(t, r) {
5629 + if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
5630 + var e = t[Symbol.toPrimitive];
5631 + if (void 0 !== e) {
5632 + var i = e.call(t, r || "default");
5633 + if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
5634 + throw new TypeError("@@toPrimitive must return a primitive value.");
5635 + }
5636 + return ("string" === r ? String : Number)(t);
5637 +}
5638 +
5639 +
5640 +/***/ }),
5641 +
5642 +/***/ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
5643 +/*!*******************************************************************!*\
5644 + !*** ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
5645 + \*******************************************************************/
5646 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
5647 +
5648 +"use strict";
5649 +__webpack_require__.r(__webpack_exports__);
5650 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5651 +/* harmony export */ "default": () => (/* binding */ toPropertyKey)
5652 +/* harmony export */ });
5653 +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js");
5654 +/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
5655 +
5656 +
5657 +function toPropertyKey(t) {
5658 + var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(t, "string");
5659 + return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : i + "";
5660 +}
5661 +
5662 +
5663 +/***/ }),
5664 +
5665 +/***/ "../node_modules/@babel/runtime/helpers/esm/typeof.js":
5666 +/*!************************************************************!*\
5667 + !*** ../node_modules/@babel/runtime/helpers/esm/typeof.js ***!
5668 + \************************************************************/
5669 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
5670 +
5671 +"use strict";
5672 +__webpack_require__.r(__webpack_exports__);
5673 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5674 +/* harmony export */ "default": () => (/* binding */ _typeof)
5675 +/* harmony export */ });
5676 +function _typeof(o) {
5677 + "@babel/helpers - typeof";
5678 +
5679 + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5680 + return typeof o;
5681 + } : function (o) {
5682 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
5683 + }, _typeof(o);
5684 +}
5685 +
5686 +
5687 +/***/ }),
5688 +
5689 +/***/ "../node_modules/immer/dist/immer.esm.mjs":
5690 +/*!************************************************!*\
5691 + !*** ../node_modules/immer/dist/immer.esm.mjs ***!
5692 + \************************************************/
5693 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
5694 +
5695 +"use strict";
5696 +__webpack_require__.r(__webpack_exports__);
5697 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5698 +/* harmony export */ Immer: () => (/* binding */ un),
5699 +/* harmony export */ applyPatches: () => (/* binding */ pn),
5700 +/* harmony export */ castDraft: () => (/* binding */ K),
5701 +/* harmony export */ castImmutable: () => (/* binding */ $),
5702 +/* harmony export */ createDraft: () => (/* binding */ ln),
5703 +/* harmony export */ current: () => (/* binding */ R),
5704 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
5705 +/* harmony export */ enableAllPlugins: () => (/* binding */ J),
5706 +/* harmony export */ enableES5: () => (/* binding */ F),
5707 +/* harmony export */ enableMapSet: () => (/* binding */ C),
5708 +/* harmony export */ enablePatches: () => (/* binding */ T),
5709 +/* harmony export */ finishDraft: () => (/* binding */ dn),
5710 +/* harmony export */ freeze: () => (/* binding */ d),
5711 +/* harmony export */ immerable: () => (/* binding */ L),
5712 +/* harmony export */ isDraft: () => (/* binding */ r),
5713 +/* harmony export */ isDraftable: () => (/* binding */ t),
5714 +/* harmony export */ nothing: () => (/* binding */ H),
5715 +/* harmony export */ original: () => (/* binding */ e),
5716 +/* harmony export */ produce: () => (/* binding */ fn),
5717 +/* harmony export */ produceWithPatches: () => (/* binding */ cn),
5718 +/* harmony export */ setAutoFreeze: () => (/* binding */ sn),
5719 +/* harmony export */ setUseProxies: () => (/* binding */ vn)
5720 +/* harmony export */ });
5721 +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)}throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map((function(n){return"'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}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);
5722 +//# sourceMappingURL=immer.esm.js.map
5723 +
5724 +
5725 +/***/ })
5726 +
5727 +/******/ });
5728 +/************************************************************************/
5729 +/******/ // The module cache
5730 +/******/ var __webpack_module_cache__ = {};
5731 +/******/
5732 +/******/ // The require function
5733 +/******/ function __webpack_require__(moduleId) {
5734 +/******/ // Check if module is in cache
5735 +/******/ var cachedModule = __webpack_module_cache__[moduleId];
5736 +/******/ if (cachedModule !== undefined) {
5737 +/******/ return cachedModule.exports;
5738 +/******/ }
5739 +/******/ // Create a new module (and put it into the cache)
5740 +/******/ var module = __webpack_module_cache__[moduleId] = {
5741 +/******/ // no module.id needed
5742 +/******/ // no module.loaded needed
5743 +/******/ exports: {}
5744 +/******/ };
5745 +/******/
5746 +/******/ // Execute the module function
5747 +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
5748 +/******/
5749 +/******/ // Return the exports of the module
5750 +/******/ return module.exports;
5751 +/******/ }
5752 +/******/
5753 +/************************************************************************/
5754 +/******/ /* webpack/runtime/define property getters */
5755 +/******/ (() => {
5756 +/******/ // define getter functions for harmony exports
5757 +/******/ __webpack_require__.d = (exports, definition) => {
5758 +/******/ for(var key in definition) {
5759 +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
5760 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
5761 +/******/ }
5762 +/******/ }
5763 +/******/ };
5764 +/******/ })();
5765 +/******/
5766 +/******/ /* webpack/runtime/global */
5767 +/******/ (() => {
5768 +/******/ __webpack_require__.g = (function() {
5769 +/******/ if (typeof globalThis === 'object') return globalThis;
5770 +/******/ try {
5771 +/******/ return this || new Function('return this')();
5772 +/******/ } catch (e) {
5773 +/******/ if (typeof window === 'object') return window;
5774 +/******/ }
5775 +/******/ })();
5776 +/******/ })();
5777 +/******/
5778 +/******/ /* webpack/runtime/hasOwnProperty shorthand */
5779 +/******/ (() => {
5780 +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
5781 +/******/ })();
5782 +/******/
5783 +/******/ /* webpack/runtime/make namespace object */
5784 +/******/ (() => {
5785 +/******/ // define __esModule on exports
5786 +/******/ __webpack_require__.r = (exports) => {
5787 +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
5788 +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5789 +/******/ }
5790 +/******/ Object.defineProperty(exports, '__esModule', { value: true });
5791 +/******/ };
5792 +/******/ })();
5793 +/******/
5794 +/************************************************************************/
5795 +var __webpack_exports__ = {};
5796 +// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
5797 +(() => {
5798 +"use strict";
5799 +/*!**************************************!*\
5800 + !*** ../app/assets/js/app-loader.js ***!
5801 + \**************************************/
5802 +
5803 +
5804 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
5805 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
5806 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
5807 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
5808 +var _component = _interopRequireDefault(__webpack_require__(/*! ./loader/component */ "../app/assets/js/loader/component.js"));
5809 +var AppLoader = /*#__PURE__*/function () {
5810 + function AppLoader() {
5811 + (0, _classCallCheck2.default)(this, AppLoader);
5812 + (0, _defineProperty2.default)(this, "selector", 'a.elementor-app-link, .elementor-app-link .ab-item');
5813 + $e.components.register(new _component.default());
5814 + window.addEventListener('DOMContentLoaded', this.onLoad.bind(this));
5815 + }
5816 + return (0, _createClass2.default)(AppLoader, [{
5817 + key: "onLoad",
5818 + value: function onLoad() {
5819 + var links = document.querySelectorAll(this.selector);
5820 + if (!links.length) {
5821 + return;
5822 + }
5823 + links.forEach(function (link) {
5824 + link.addEventListener('click', function (event) {
5825 + event.preventDefault();
5826 + $e.run('app/open', {
5827 + url: link.href
5828 + });
5829 + });
5830 + link.addEventListener('mouseenter', function () {
5831 + $e.run('app/load', {
5832 + url: link.href
5833 + });
5834 + });
5835 + });
5836 + }
5837 + }]);
5838 +}();
5839 +window.elementorAppLoader = new AppLoader();
5840 +})();
5841 +
5842 +/******/ })()
5843 +;
1852 5844 //# sourceMappingURL=app-loader.js.map