PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.1
Elementor Website Builder – more than just a page builder v3.0.1
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / assets / js / common.js

common.js in Elementor Website Builder – more than just a page builder 3.0.1, at assets/js/common.js

15,448 lines 406.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! elementor - v3.0.1 - 25-08-2020 */
2 /******/ (function(modules) { // webpackBootstrap
3 /******/ // The module cache
4 /******/ var installedModules = {};
5 /******/
6 /******/ // The require function
7 /******/ function __webpack_require__(moduleId) {
8 /******/
9 /******/ // Check if module is in cache
10 /******/ if(installedModules[moduleId]) {
11 /******/ return installedModules[moduleId].exports;
12 /******/ }
13 /******/ // Create a new module (and put it into the cache)
14 /******/ var module = installedModules[moduleId] = {
15 /******/ i: moduleId,
16 /******/ l: false,
17 /******/ exports: {}
18 /******/ };
19 /******/
20 /******/ // Execute the module function
21 /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22 /******/
23 /******/ // Flag the module as loaded
24 /******/ module.l = true;
25 /******/
26 /******/ // Return the exports of the module
27 /******/ return module.exports;
28 /******/ }
29 /******/
30 /******/
31 /******/ // expose the modules object (__webpack_modules__)
32 /******/ __webpack_require__.m = modules;
33 /******/
34 /******/ // expose the module cache
35 /******/ __webpack_require__.c = installedModules;
36 /******/
37 /******/ // define getter function for harmony exports
38 /******/ __webpack_require__.d = function(exports, name, getter) {
39 /******/ if(!__webpack_require__.o(exports, name)) {
40 /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41 /******/ }
42 /******/ };
43 /******/
44 /******/ // define __esModule on exports
45 /******/ __webpack_require__.r = function(exports) {
46 /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48 /******/ }
49 /******/ Object.defineProperty(exports, '__esModule', { value: true });
50 /******/ };
51 /******/
52 /******/ // create a fake namespace object
53 /******/ // mode & 1: value is a module id, require it
54 /******/ // mode & 2: merge all properties of value into the ns
55 /******/ // mode & 4: return value when already ns object
56 /******/ // mode & 8|1: behave like require
57 /******/ __webpack_require__.t = function(value, mode) {
58 /******/ if(mode & 1) value = __webpack_require__(value);
59 /******/ if(mode & 8) return value;
60 /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61 /******/ var ns = Object.create(null);
62 /******/ __webpack_require__.r(ns);
63 /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64 /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65 /******/ return ns;
66 /******/ };
67 /******/
68 /******/ // getDefaultExport function for compatibility with non-harmony modules
69 /******/ __webpack_require__.n = function(module) {
70 /******/ var getter = module && module.__esModule ?
71 /******/ function getDefault() { return module['default']; } :
72 /******/ function getModuleExports() { return module; };
73 /******/ __webpack_require__.d(getter, 'a', getter);
74 /******/ return getter;
75 /******/ };
76 /******/
77 /******/ // Object.prototype.hasOwnProperty.call
78 /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79 /******/
80 /******/ // __webpack_public_path__
81 /******/ __webpack_require__.p = "";
82 /******/
83 /******/
84 /******/ // Load entry module and return exports
85 /******/ return __webpack_require__(__webpack_require__.s = 700);
86 /******/ })
87 /************************************************************************/
88 /******/ ([
89 /* 0 */
90 /***/ (function(module, exports) {
91
92 function _interopRequireDefault(obj) {
93 return obj && obj.__esModule ? obj : {
94 "default": obj
95 };
96 }
97
98 module.exports = _interopRequireDefault;
99
100 /***/ }),
101 /* 1 */
102 /***/ (function(module, exports, __webpack_require__) {
103
104 module.exports = __webpack_require__(155);
105
106 /***/ }),
107 /* 2 */
108 /***/ (function(module, exports) {
109
110 function _classCallCheck(instance, Constructor) {
111 if (!(instance instanceof Constructor)) {
112 throw new TypeError("Cannot call a class as a function");
113 }
114 }
115
116 module.exports = _classCallCheck;
117
118 /***/ }),
119 /* 3 */
120 /***/ (function(module, exports, __webpack_require__) {
121
122 var _Object$defineProperty = __webpack_require__(1);
123
124 function _defineProperties(target, props) {
125 for (var i = 0; i < props.length; i++) {
126 var descriptor = props[i];
127 descriptor.enumerable = descriptor.enumerable || false;
128 descriptor.configurable = true;
129 if ("value" in descriptor) descriptor.writable = true;
130
131 _Object$defineProperty(target, descriptor.key, descriptor);
132 }
133 }
134
135 function _createClass(Constructor, protoProps, staticProps) {
136 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
137 if (staticProps) _defineProperties(Constructor, staticProps);
138 return Constructor;
139 }
140
141 module.exports = _createClass;
142
143 /***/ }),
144 /* 4 */
145 /***/ (function(module, exports, __webpack_require__) {
146
147 var _Object$create = __webpack_require__(135);
148
149 var setPrototypeOf = __webpack_require__(134);
150
151 function _inherits(subClass, superClass) {
152 if (typeof superClass !== "function" && superClass !== null) {
153 throw new TypeError("Super expression must either be null or a function");
154 }
155
156 subClass.prototype = _Object$create(superClass && superClass.prototype, {
157 constructor: {
158 value: subClass,
159 writable: true,
160 configurable: true
161 }
162 });
163 if (superClass) setPrototypeOf(subClass, superClass);
164 }
165
166 module.exports = _inherits;
167
168 /***/ }),
169 /* 5 */
170 /***/ (function(module, exports, __webpack_require__) {
171
172 var _Reflect$construct = __webpack_require__(105);
173
174 var getPrototypeOf = __webpack_require__(16);
175
176 var isNativeReflectConstruct = __webpack_require__(145);
177
178 var possibleConstructorReturn = __webpack_require__(170);
179
180 function _createSuper(Derived) {
181 var hasNativeReflectConstruct = isNativeReflectConstruct();
182 return function _createSuperInternal() {
183 var Super = getPrototypeOf(Derived),
184 result;
185
186 if (hasNativeReflectConstruct) {
187 var NewTarget = getPrototypeOf(this).constructor;
188 result = _Reflect$construct(Super, arguments, NewTarget);
189 } else {
190 result = Super.apply(this, arguments);
191 }
192
193 return possibleConstructorReturn(this, result);
194 };
195 }
196
197 module.exports = _createSuper;
198
199 /***/ }),
200 /* 6 */
201 /***/ (function(module, exports) {
202
203 var core = module.exports = { version: '2.6.11' };
204 if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
205
206
207 /***/ }),
208 /* 7 */
209 /***/ (function(module, exports, __webpack_require__) {
210
211 var global = __webpack_require__(8);
212 var core = __webpack_require__(6);
213 var ctx = __webpack_require__(31);
214 var hide = __webpack_require__(25);
215 var has = __webpack_require__(19);
216 var PROTOTYPE = 'prototype';
217
218 var $export = function (type, name, source) {
219 var IS_FORCED = type & $export.F;
220 var IS_GLOBAL = type & $export.G;
221 var IS_STATIC = type & $export.S;
222 var IS_PROTO = type & $export.P;
223 var IS_BIND = type & $export.B;
224 var IS_WRAP = type & $export.W;
225 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
226 var expProto = exports[PROTOTYPE];
227 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
228 var key, own, out;
229 if (IS_GLOBAL) source = name;
230 for (key in source) {
231 // contains in native
232 own = !IS_FORCED && target && target[key] !== undefined;
233 if (own && has(exports, key)) continue;
234 // export native or passed
235 out = own ? target[key] : source[key];
236 // prevent global pollution for namespaces
237 exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
238 // bind timers to global for call from export context
239 : IS_BIND && own ? ctx(out, global)
240 // wrap global constructors for prevent change them in library
241 : IS_WRAP && target[key] == out ? (function (C) {
242 var F = function (a, b, c) {
243 if (this instanceof C) {
244 switch (arguments.length) {
245 case 0: return new C();
246 case 1: return new C(a);
247 case 2: return new C(a, b);
248 } return new C(a, b, c);
249 } return C.apply(this, arguments);
250 };
251 F[PROTOTYPE] = C[PROTOTYPE];
252 return F;
253 // make static versions for prototype methods
254 })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
255 // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
256 if (IS_PROTO) {
257 (exports.virtual || (exports.virtual = {}))[key] = out;
258 // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
259 if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
260 }
261 }
262 };
263 // type bitmap
264 $export.F = 1; // forced
265 $export.G = 2; // global
266 $export.S = 4; // static
267 $export.P = 8; // proto
268 $export.B = 16; // bind
269 $export.W = 32; // wrap
270 $export.U = 64; // safe
271 $export.R = 128; // real proto method for `library`
272 module.exports = $export;
273
274
275 /***/ }),
276 /* 8 */
277 /***/ (function(module, exports) {
278
279 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
280 var global = module.exports = typeof window != 'undefined' && window.Math == Math
281 ? window : typeof self != 'undefined' && self.Math == Math ? self
282 // eslint-disable-next-line no-new-func
283 : Function('return this')();
284 if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
285
286
287 /***/ }),
288 /* 9 */
289 /***/ (function(module, exports) {
290
291 module.exports = function (it) {
292 return typeof it === 'object' ? it !== null : typeof it === 'function';
293 };
294
295
296 /***/ }),
297 /* 10 */
298 /***/ (function(module, exports, __webpack_require__) {
299
300 var store = __webpack_require__(73)('wks');
301 var uid = __webpack_require__(57);
302 var Symbol = __webpack_require__(8).Symbol;
303 var USE_SYMBOL = typeof Symbol == 'function';
304
305 var $exports = module.exports = function (name) {
306 return store[name] || (store[name] =
307 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
308 };
309
310 $exports.store = store;
311
312
313 /***/ }),
314 /* 11 */
315 /***/ (function(module, exports, __webpack_require__) {
316
317 var store = __webpack_require__(66)('wks');
318 var uid = __webpack_require__(67);
319 var Symbol = __webpack_require__(17).Symbol;
320 var USE_SYMBOL = typeof Symbol == 'function';
321
322 var $exports = module.exports = function (name) {
323 return store[name] || (store[name] =
324 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
325 };
326
327 $exports.store = store;
328
329
330 /***/ }),
331 /* 12 */
332 /***/ (function(module, exports, __webpack_require__) {
333
334 var isObject = __webpack_require__(9);
335 module.exports = function (it) {
336 if (!isObject(it)) throw TypeError(it + ' is not an object!');
337 return it;
338 };
339
340
341 /***/ }),
342 /* 13 */,
343 /* 14 */
344 /***/ (function(module, exports, __webpack_require__) {
345
346 // Thank's IE8 for his funny defineProperty
347 module.exports = !__webpack_require__(22)(function () {
348 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
349 });
350
351
352 /***/ }),
353 /* 15 */
354 /***/ (function(module, exports, __webpack_require__) {
355
356 var anObject = __webpack_require__(12);
357 var IE8_DOM_DEFINE = __webpack_require__(113);
358 var toPrimitive = __webpack_require__(71);
359 var dP = Object.defineProperty;
360
361 exports.f = __webpack_require__(14) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
362 anObject(O);
363 P = toPrimitive(P, true);
364 anObject(Attributes);
365 if (IE8_DOM_DEFINE) try {
366 return dP(O, P, Attributes);
367 } catch (e) { /* empty */ }
368 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
369 if ('value' in Attributes) O[P] = Attributes.value;
370 return O;
371 };
372
373
374 /***/ }),
375 /* 16 */
376 /***/ (function(module, exports, __webpack_require__) {
377
378 var _Object$getPrototypeOf = __webpack_require__(157);
379
380 var _Object$setPrototypeOf = __webpack_require__(114);
381
382 function _getPrototypeOf(o) {
383 module.exports = _getPrototypeOf = _Object$setPrototypeOf ? _Object$getPrototypeOf : function _getPrototypeOf(o) {
384 return o.__proto__ || _Object$getPrototypeOf(o);
385 };
386 return _getPrototypeOf(o);
387 }
388
389 module.exports = _getPrototypeOf;
390
391 /***/ }),
392 /* 17 */
393 /***/ (function(module, exports) {
394
395 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
396 var global = module.exports = typeof window != 'undefined' && window.Math == Math
397 ? window : typeof self != 'undefined' && self.Math == Math ? self
398 // eslint-disable-next-line no-new-func
399 : Function('return this')();
400 if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
401
402
403 /***/ }),
404 /* 18 */
405 /***/ (function(module, exports, __webpack_require__) {
406
407 var isObject = __webpack_require__(29);
408 module.exports = function (it) {
409 if (!isObject(it)) throw TypeError(it + ' is not an object!');
410 return it;
411 };
412
413
414 /***/ }),
415 /* 19 */
416 /***/ (function(module, exports) {
417
418 var hasOwnProperty = {}.hasOwnProperty;
419 module.exports = function (it, key) {
420 return hasOwnProperty.call(it, key);
421 };
422
423
424 /***/ }),
425 /* 20 */
426 /***/ (function(module, exports, __webpack_require__) {
427
428 "use strict";
429
430
431 var _interopRequireDefault = __webpack_require__(0);
432
433 var _Object$defineProperty = __webpack_require__(1);
434
435 _Object$defineProperty(exports, "__esModule", {
436 value: true
437 });
438
439 exports.default = void 0;
440
441 var _typeof2 = _interopRequireDefault(__webpack_require__(48));
442
443 var _regenerator = _interopRequireDefault(__webpack_require__(87));
444
445 __webpack_require__(143);
446
447 __webpack_require__(116);
448
449 __webpack_require__(69);
450
451 __webpack_require__(264);
452
453 var _promise = _interopRequireDefault(__webpack_require__(130));
454
455 var _isArray = _interopRequireDefault(__webpack_require__(82));
456
457 __webpack_require__(68);
458
459 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(88));
460
461 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
462
463 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(47));
464
465 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
466
467 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
468
469 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
470
471 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
472
473 var _argsObject = _interopRequireDefault(__webpack_require__(220));
474
475 var CommandBase = /*#__PURE__*/function (_ArgsObject) {
476 (0, _inherits2.default)(CommandBase, _ArgsObject);
477
478 var _super = (0, _createSuper2.default)(CommandBase);
479
480 (0, _createClass2.default)(CommandBase, null, [{
481 key: "getInstanceType",
482 value: function getInstanceType() {
483 return 'CommandBase';
484 }
485 /**
486 * Current component.
487 *
488 * @type {Component}
489 */
490
491 }]);
492
493 /**
494 * Function constructor().
495 *
496 * Create Commands Base.
497 *
498 * @param [args={}]
499 * @param [commandsAPI={}]
500 */
501 function CommandBase(args) {
502 var _this;
503
504 var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.commands;
505 (0, _classCallCheck2.default)(this, CommandBase);
506 _this = _super.call(this, args); // Acknowledge self about which command it run.
507
508 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "component", void 0);
509 _this.currentCommand = commandsAPI.getCurrentLast(); // Assign instance of current component.
510
511 _this.component = commandsAPI.getComponent(_this.currentCommand); // Who ever need do something before without `super` the constructor can use `initialize` method.
512
513 _this.initialize(args); // Refresh args, maybe the changed via `initialize`.
514
515
516 args = _this.args; // Validate args before run.
517
518 _this.validateArgs(args);
519
520 return _this;
521 }
522 /**
523 * Function requireContainer().
524 *
525 * Validate `arg.container` & `arg.containers`.
526 *
527 * @param {{}} args
528 *
529 * @throws {Error}
530 */
531
532
533 (0, _createClass2.default)(CommandBase, [{
534 key: "requireContainer",
535 value: function requireContainer() {
536 var _this2 = this;
537
538 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args;
539
540 if (!args.container && !args.containers) {
541 throw Error('container or containers are required.');
542 }
543
544 if (args.container && args.containers) {
545 throw Error('container and containers cannot go together please select one of them.');
546 }
547
548 var containers = args.containers || [args.container];
549 containers.forEach(function (container) {
550 _this2.requireArgumentInstance('container', elementorModules.editor.Container, {
551 container: container
552 });
553 });
554 }
555 /**
556 * Function initialize().
557 *
558 * Initialize command, called after construction.
559 *
560 * @param [args={}]
561 */
562
563 }, {
564 key: "initialize",
565 value: function initialize() {
566 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
567 } // eslint-disable-line no-unused-vars
568
569 /**
570 * Function validateArgs().
571 *
572 * Validate command arguments.
573 *
574 * @param [args={}]
575 */
576
577 }, {
578 key: "validateArgs",
579 value: function validateArgs() {
580 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
581 } // eslint-disable-line no-unused-vars
582
583 /**
584 * Function isDataChanged().
585 *
586 * Whether the editor needs to set change flag on/off.
587 *
588 * @returns {boolean}
589 */
590
591 }, {
592 key: "isDataChanged",
593 value: function isDataChanged() {
594 return false;
595 }
596 /**
597 * Function apply().
598 *
599 * Do the actual command.
600 *
601 * @param [args={}]
602 *
603 * @returns {*}
604 */
605
606 }, {
607 key: "apply",
608 value: function apply() {
609 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
610 // eslint-disable-line no-unused-vars
611 elementorModules.ForceMethodImplementation();
612 }
613 /**
614 * Function run().
615 *
616 * Run command with history & hooks.
617 *
618 * @returns {*}
619 */
620
621 }, {
622 key: "run",
623 value: function run() {
624 var result; // For UI Hooks.
625
626 this.onBeforeRun(this.args);
627
628 try {
629 // For Data hooks.
630 this.onBeforeApply(this.args);
631 result = this.apply(this.args);
632 } catch (e) {
633 this.onCatchApply(e); // Catch 'Hook-Break' that comes from hooks base.
634
635 if (e instanceof $e.modules.HookBreak) {
636 // Bypass.
637 return false;
638 }
639 }
640
641 return this.runAfter(result);
642 }
643 }, {
644 key: "runAfter",
645 value: function runAfter(result) {
646 var _this3 = this;
647
648 var onAfter = function onAfter(_result) {
649 // Run Data hooks.
650 _this3.onAfterApply(_this3.args, _result); // TODO: Create Command-Base for Command-Document and apply it on after.
651
652
653 if (_this3.isDataChanged()) {
654 $e.internal('document/save/set-is-modified', {
655 status: true
656 });
657 } // For UI hooks.
658
659
660 _this3.onAfterRun(_this3.args, _result);
661 },
662 asyncOnAfter = /*#__PURE__*/function () {
663 var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_result) {
664 var results, promises;
665 return _regenerator.default.wrap(function _callee$(_context) {
666 while (1) {
667 switch (_context.prev = _context.next) {
668 case 0:
669 // Run Data hooks.
670 results = _this3.onAfterApply(_this3.args, _result), promises = (0, _isArray.default)(results) ? results.flat().filter(function (filtered) {
671 return filtered instanceof _promise.default;
672 }) : [];
673
674 if (!promises.length) {
675 _context.next = 4;
676 break;
677 }
678
679 _context.next = 4;
680 return _promise.default.all(promises);
681
682 case 4:
683 if (_this3.isDataChanged()) {
684 // TODO: Create Command-Base for Command-Document and apply it on after.
685 $e.internal('document/save/set-is-modified', {
686 status: true
687 });
688 } // For UI hooks.
689
690
691 _this3.onAfterRun(_this3.args, _result);
692
693 case 6:
694 case "end":
695 return _context.stop();
696 }
697 }
698 }, _callee);
699 }));
700
701 return function asyncOnAfter(_x) {
702 return _ref.apply(this, arguments);
703 };
704 }(); // TODO: Temp code determine if it's a jQuery deferred object.
705
706
707 if (result && 'object' === (0, _typeof2.default)(result) && result.promise && result.then && result.fail) {
708 result.fail(this.onCatchApply.bind(this));
709 result.done(onAfter);
710 } else if (result instanceof _promise.default) {
711 // Override initial result ( promise ) to await onAfter promises, first!.
712 return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
713 return _regenerator.default.wrap(function _callee2$(_context2) {
714 while (1) {
715 switch (_context2.prev = _context2.next) {
716 case 0:
717 _context2.next = 2;
718 return result.catch(_this3.onCatchApply.bind(_this3));
719
720 case 2:
721 _context2.next = 4;
722 return result.then(function (_result) {
723 return asyncOnAfter(_result);
724 });
725
726 case 4:
727 return _context2.abrupt("return", result);
728
729 case 5:
730 case "end":
731 return _context2.stop();
732 }
733 }
734 }, _callee2);
735 }))();
736 } else {
737 onAfter(result);
738 }
739
740 return result;
741 }
742 /**
743 * Function onBeforeRun.
744 *
745 * Called before run().
746 *
747 * @param [args={}]
748 */
749
750 }, {
751 key: "onBeforeRun",
752 value: function onBeforeRun() {
753 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
754 $e.hooks.runUIBefore(this.currentCommand, args);
755 }
756 /**
757 * Function onAfterRun.
758 *
759 * Called after run().
760 *
761 * @param [args={}]
762 * @param [result={*}]
763 */
764
765 }, {
766 key: "onAfterRun",
767 value: function onAfterRun() {
768 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
769 var result = arguments.length > 1 ? arguments[1] : undefined;
770 $e.hooks.runUIAfter(this.currentCommand, args, result);
771 }
772 /**
773 * Function onBeforeApply.
774 *
775 * Called before apply().
776 *
777 * @param [args={}]
778 */
779
780 }, {
781 key: "onBeforeApply",
782 value: function onBeforeApply() {
783 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
784 $e.hooks.runDataDependency(this.currentCommand, args);
785 }
786 /**
787 * Function onAfterApply.
788 *
789 * Called after apply().
790 *
791 * @param [args={}]
792 * @param [result={*}]
793 */
794
795 }, {
796 key: "onAfterApply",
797 value: function onAfterApply() {
798 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
799 var result = arguments.length > 1 ? arguments[1] : undefined;
800 return $e.hooks.runDataAfter(this.currentCommand, args, result);
801 }
802 /**
803 * Function onCatchApply.
804 *
805 * Called after apply() failed.
806 *
807 * @param {Error} e
808 */
809
810 }, {
811 key: "onCatchApply",
812 value: function onCatchApply(e) {
813 $e.hooks.runDataCatch(this.currentCommand, this.args, e);
814 elementorCommon.helpers.consoleError(e);
815 $e.hooks.runUICatch(this.currentCommand, this.args, e);
816 }
817 }]);
818 return CommandBase;
819 }(_argsObject.default);
820
821 exports.default = CommandBase;
822
823 /***/ }),
824 /* 21 */
825 /***/ (function(module, exports, __webpack_require__) {
826
827 // to indexed object, toObject with fallback for non-array-like ES3 strings
828 var IObject = __webpack_require__(104);
829 var defined = __webpack_require__(65);
830 module.exports = function (it) {
831 return IObject(defined(it));
832 };
833
834
835 /***/ }),
836 /* 22 */
837 /***/ (function(module, exports) {
838
839 module.exports = function (exec) {
840 try {
841 return !!exec();
842 } catch (e) {
843 return true;
844 }
845 };
846
847
848 /***/ }),
849 /* 23 */
850 /***/ (function(module, exports, __webpack_require__) {
851
852 var _Object$getOwnPropertyDescriptor = __webpack_require__(126);
853
854 var _Reflect$get = __webpack_require__(189);
855
856 var superPropBase = __webpack_require__(192);
857
858 function _get(target, property, receiver) {
859 if (typeof Reflect !== "undefined" && _Reflect$get) {
860 module.exports = _get = _Reflect$get;
861 } else {
862 module.exports = _get = function _get(target, property, receiver) {
863 var base = superPropBase(target, property);
864 if (!base) return;
865
866 var desc = _Object$getOwnPropertyDescriptor(base, property);
867
868 if (desc.get) {
869 return desc.get.call(receiver);
870 }
871
872 return desc.value;
873 };
874 }
875
876 return _get(target, property, receiver || target);
877 }
878
879 module.exports = _get;
880
881 /***/ }),
882 /* 24 */
883 /***/ (function(module, exports, __webpack_require__) {
884
885 module.exports = __webpack_require__(216);
886
887 /***/ }),
888 /* 25 */
889 /***/ (function(module, exports, __webpack_require__) {
890
891 var dP = __webpack_require__(15);
892 var createDesc = __webpack_require__(43);
893 module.exports = __webpack_require__(14) ? function (object, key, value) {
894 return dP.f(object, key, createDesc(1, value));
895 } : function (object, key, value) {
896 object[key] = value;
897 return object;
898 };
899
900
901 /***/ }),
902 /* 26 */
903 /***/ (function(module, exports, __webpack_require__) {
904
905 "use strict";
906
907 // 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
908 var $export = __webpack_require__(37);
909 var $find = __webpack_require__(181)(5);
910 var KEY = 'find';
911 var forced = true;
912 // Shouldn't skip holes
913 if (KEY in []) Array(1)[KEY](function () { forced = false; });
914 $export($export.P + $export.F * forced, 'Array', {
915 find: function find(callbackfn /* , that = undefined */) {
916 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
917 }
918 });
919 __webpack_require__(91)(KEY);
920
921
922 /***/ }),
923 /* 27 */
924 /***/ (function(module, exports, __webpack_require__) {
925
926 // Thank's IE8 for his funny defineProperty
927 module.exports = !__webpack_require__(33)(function () {
928 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
929 });
930
931
932 /***/ }),
933 /* 28 */
934 /***/ (function(module, exports, __webpack_require__) {
935
936 var _Object$defineProperty = __webpack_require__(1);
937
938 function _defineProperty(obj, key, value) {
939 if (key in obj) {
940 _Object$defineProperty(obj, key, {
941 value: value,
942 enumerable: true,
943 configurable: true,
944 writable: true
945 });
946 } else {
947 obj[key] = value;
948 }
949
950 return obj;
951 }
952
953 module.exports = _defineProperty;
954
955 /***/ }),
956 /* 29 */
957 /***/ (function(module, exports) {
958
959 module.exports = function (it) {
960 return typeof it === 'object' ? it !== null : typeof it === 'function';
961 };
962
963
964 /***/ }),
965 /* 30 */
966 /***/ (function(module, exports, __webpack_require__) {
967
968 var dP = __webpack_require__(44);
969 var createDesc = __webpack_require__(99);
970 module.exports = __webpack_require__(27) ? function (object, key, value) {
971 return dP.f(object, key, createDesc(1, value));
972 } : function (object, key, value) {
973 object[key] = value;
974 return object;
975 };
976
977
978 /***/ }),
979 /* 31 */
980 /***/ (function(module, exports, __webpack_require__) {
981
982 // optional / simple context binding
983 var aFunction = __webpack_require__(38);
984 module.exports = function (fn, that, length) {
985 aFunction(fn);
986 if (that === undefined) return fn;
987 switch (length) {
988 case 1: return function (a) {
989 return fn.call(that, a);
990 };
991 case 2: return function (a, b) {
992 return fn.call(that, a, b);
993 };
994 case 3: return function (a, b, c) {
995 return fn.call(that, a, b, c);
996 };
997 }
998 return function (/* ...args */) {
999 return fn.apply(that, arguments);
1000 };
1001 };
1002
1003
1004 /***/ }),
1005 /* 32 */
1006 /***/ (function(module, exports, __webpack_require__) {
1007
1008 // 7.1.13 ToObject(argument)
1009 var defined = __webpack_require__(65);
1010 module.exports = function (it) {
1011 return Object(defined(it));
1012 };
1013
1014
1015 /***/ }),
1016 /* 33 */
1017 /***/ (function(module, exports) {
1018
1019 module.exports = function (exec) {
1020 try {
1021 return !!exec();
1022 } catch (e) {
1023 return true;
1024 }
1025 };
1026
1027
1028 /***/ }),
1029 /* 34 */
1030 /***/ (function(module, exports) {
1031
1032 module.exports = {};
1033
1034
1035 /***/ }),
1036 /* 35 */
1037 /***/ (function(module, exports, __webpack_require__) {
1038
1039 var global = __webpack_require__(17);
1040 var hide = __webpack_require__(30);
1041 var has = __webpack_require__(61);
1042 var SRC = __webpack_require__(67)('src');
1043 var $toString = __webpack_require__(138);
1044 var TO_STRING = 'toString';
1045 var TPL = ('' + $toString).split(TO_STRING);
1046
1047 __webpack_require__(52).inspectSource = function (it) {
1048 return $toString.call(it);
1049 };
1050
1051 (module.exports = function (O, key, val, safe) {
1052 var isFunction = typeof val == 'function';
1053 if (isFunction) has(val, 'name') || hide(val, 'name', key);
1054 if (O[key] === val) return;
1055 if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
1056 if (O === global) {
1057 O[key] = val;
1058 } else if (!safe) {
1059 delete O[key];
1060 hide(O, key, val);
1061 } else if (O[key]) {
1062 O[key] = val;
1063 } else {
1064 hide(O, key, val);
1065 }
1066 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1067 })(Function.prototype, TO_STRING, function toString() {
1068 return typeof this == 'function' && this[SRC] || $toString.call(this);
1069 });
1070
1071
1072 /***/ }),
1073 /* 36 */
1074 /***/ (function(module, exports, __webpack_require__) {
1075
1076 var dP = __webpack_require__(44).f;
1077 var FProto = Function.prototype;
1078 var nameRE = /^\s*function ([^ (]*)/;
1079 var NAME = 'name';
1080
1081 // 19.2.4.2 name
1082 NAME in FProto || __webpack_require__(27) && dP(FProto, NAME, {
1083 configurable: true,
1084 get: function () {
1085 try {
1086 return ('' + this).match(nameRE)[1];
1087 } catch (e) {
1088 return '';
1089 }
1090 }
1091 });
1092
1093
1094 /***/ }),
1095 /* 37 */
1096 /***/ (function(module, exports, __webpack_require__) {
1097
1098 var global = __webpack_require__(17);
1099 var core = __webpack_require__(52);
1100 var hide = __webpack_require__(30);
1101 var redefine = __webpack_require__(35);
1102 var ctx = __webpack_require__(70);
1103 var PROTOTYPE = 'prototype';
1104
1105 var $export = function (type, name, source) {
1106 var IS_FORCED = type & $export.F;
1107 var IS_GLOBAL = type & $export.G;
1108 var IS_STATIC = type & $export.S;
1109 var IS_PROTO = type & $export.P;
1110 var IS_BIND = type & $export.B;
1111 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
1112 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
1113 var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
1114 var key, own, out, exp;
1115 if (IS_GLOBAL) source = name;
1116 for (key in source) {
1117 // contains in native
1118 own = !IS_FORCED && target && target[key] !== undefined;
1119 // export native or passed
1120 out = (own ? target : source)[key];
1121 // bind timers to global for call from export context
1122 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
1123 // extend global
1124 if (target) redefine(target, key, out, type & $export.U);
1125 // export
1126 if (exports[key] != out) hide(exports, key, exp);
1127 if (IS_PROTO && expProto[key] != out) expProto[key] = out;
1128 }
1129 };
1130 global.core = core;
1131 // type bitmap
1132 $export.F = 1; // forced
1133 $export.G = 2; // global
1134 $export.S = 4; // static
1135 $export.P = 8; // proto
1136 $export.B = 16; // bind
1137 $export.W = 32; // wrap
1138 $export.U = 64; // safe
1139 $export.R = 128; // real proto method for `library`
1140 module.exports = $export;
1141
1142
1143 /***/ }),
1144 /* 38 */
1145 /***/ (function(module, exports) {
1146
1147 module.exports = function (it) {
1148 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
1149 return it;
1150 };
1151
1152
1153 /***/ }),
1154 /* 39 */
1155 /***/ (function(module, exports, __webpack_require__) {
1156
1157 var _Object$getOwnPropertyDescriptor = __webpack_require__(126);
1158
1159 var _Object$defineProperty = __webpack_require__(1);
1160
1161 var _typeof = __webpack_require__(48);
1162
1163 var _WeakMap = __webpack_require__(275);
1164
1165 function _getRequireWildcardCache() {
1166 if (typeof _WeakMap !== "function") return null;
1167 var cache = new _WeakMap();
1168
1169 _getRequireWildcardCache = function _getRequireWildcardCache() {
1170 return cache;
1171 };
1172
1173 return cache;
1174 }
1175
1176 function _interopRequireWildcard(obj) {
1177 if (obj && obj.__esModule) {
1178 return obj;
1179 }
1180
1181 if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
1182 return {
1183 "default": obj
1184 };
1185 }
1186
1187 var cache = _getRequireWildcardCache();
1188
1189 if (cache && cache.has(obj)) {
1190 return cache.get(obj);
1191 }
1192
1193 var newObj = {};
1194 var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor;
1195
1196 for (var key in obj) {
1197 if (Object.prototype.hasOwnProperty.call(obj, key)) {
1198 var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null;
1199
1200 if (desc && (desc.get || desc.set)) {
1201 _Object$defineProperty(newObj, key, desc);
1202 } else {
1203 newObj[key] = obj[key];
1204 }
1205 }
1206 }
1207
1208 newObj["default"] = obj;
1209
1210 if (cache) {
1211 cache.set(obj, newObj);
1212 }
1213
1214 return newObj;
1215 }
1216
1217 module.exports = _interopRequireWildcard;
1218
1219 /***/ }),
1220 /* 40 */
1221 /***/ (function(module, exports, __webpack_require__) {
1222
1223 // 19.1.2.14 / 15.2.3.14 Object.keys(O)
1224 var $keys = __webpack_require__(115);
1225 var enumBugKeys = __webpack_require__(76);
1226
1227 module.exports = Object.keys || function keys(O) {
1228 return $keys(O, enumBugKeys);
1229 };
1230
1231
1232 /***/ }),
1233 /* 41 */
1234 /***/ (function(module, exports) {
1235
1236 // 7.2.1 RequireObjectCoercible(argument)
1237 module.exports = function (it) {
1238 if (it == undefined) throw TypeError("Can't call method on " + it);
1239 return it;
1240 };
1241
1242
1243 /***/ }),
1244 /* 42 */
1245 /***/ (function(module, exports, __webpack_require__) {
1246
1247 // 7.1.15 ToLength
1248 var toInteger = __webpack_require__(59);
1249 var min = Math.min;
1250 module.exports = function (it) {
1251 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
1252 };
1253
1254
1255 /***/ }),
1256 /* 43 */
1257 /***/ (function(module, exports) {
1258
1259 module.exports = function (bitmap, value) {
1260 return {
1261 enumerable: !(bitmap & 1),
1262 configurable: !(bitmap & 2),
1263 writable: !(bitmap & 4),
1264 value: value
1265 };
1266 };
1267
1268
1269 /***/ }),
1270 /* 44 */
1271 /***/ (function(module, exports, __webpack_require__) {
1272
1273 var anObject = __webpack_require__(18);
1274 var IE8_DOM_DEFINE = __webpack_require__(125);
1275 var toPrimitive = __webpack_require__(121);
1276 var dP = Object.defineProperty;
1277
1278 exports.f = __webpack_require__(27) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
1279 anObject(O);
1280 P = toPrimitive(P, true);
1281 anObject(Attributes);
1282 if (IE8_DOM_DEFINE) try {
1283 return dP(O, P, Attributes);
1284 } catch (e) { /* empty */ }
1285 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
1286 if ('value' in Attributes) O[P] = Attributes.value;
1287 return O;
1288 };
1289
1290
1291 /***/ }),
1292 /* 45 */
1293 /***/ (function(module, exports) {
1294
1295 var toString = {}.toString;
1296
1297 module.exports = function (it) {
1298 return toString.call(it).slice(8, -1);
1299 };
1300
1301
1302 /***/ }),
1303 /* 46 */
1304 /***/ (function(module, exports) {
1305
1306 module.exports = true;
1307
1308
1309 /***/ }),
1310 /* 47 */
1311 /***/ (function(module, exports) {
1312
1313 function _assertThisInitialized(self) {
1314 if (self === void 0) {
1315 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1316 }
1317
1318 return self;
1319 }
1320
1321 module.exports = _assertThisInitialized;
1322
1323 /***/ }),
1324 /* 48 */
1325 /***/ (function(module, exports, __webpack_require__) {
1326
1327 var _Symbol$iterator = __webpack_require__(149);
1328
1329 var _Symbol = __webpack_require__(111);
1330
1331 function _typeof(obj) {
1332 "@babel/helpers - typeof";
1333
1334 if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") {
1335 module.exports = _typeof = function _typeof(obj) {
1336 return typeof obj;
1337 };
1338 } else {
1339 module.exports = _typeof = function _typeof(obj) {
1340 return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj;
1341 };
1342 }
1343
1344 return _typeof(obj);
1345 }
1346
1347 module.exports = _typeof;
1348
1349 /***/ }),
1350 /* 49 */
1351 /***/ (function(module, exports) {
1352
1353 exports.f = {}.propertyIsEnumerable;
1354
1355
1356 /***/ }),
1357 /* 50 */
1358 /***/ (function(module, exports, __webpack_require__) {
1359
1360 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
1361 var anObject = __webpack_require__(12);
1362 var dPs = __webpack_require__(136);
1363 var enumBugKeys = __webpack_require__(76);
1364 var IE_PROTO = __webpack_require__(72)('IE_PROTO');
1365 var Empty = function () { /* empty */ };
1366 var PROTOTYPE = 'prototype';
1367
1368 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1369 var createDict = function () {
1370 // Thrash, waste and sodomy: IE GC bug
1371 var iframe = __webpack_require__(90)('iframe');
1372 var i = enumBugKeys.length;
1373 var lt = '<';
1374 var gt = '>';
1375 var iframeDocument;
1376 iframe.style.display = 'none';
1377 __webpack_require__(128).appendChild(iframe);
1378 iframe.src = 'javascript:'; // eslint-disable-line no-script-url
1379 // createDict = iframe.contentWindow.Object;
1380 // html.removeChild(iframe);
1381 iframeDocument = iframe.contentWindow.document;
1382 iframeDocument.open();
1383 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
1384 iframeDocument.close();
1385 createDict = iframeDocument.F;
1386 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
1387 return createDict();
1388 };
1389
1390 module.exports = Object.create || function create(O, Properties) {
1391 var result;
1392 if (O !== null) {
1393 Empty[PROTOTYPE] = anObject(O);
1394 result = new Empty();
1395 Empty[PROTOTYPE] = null;
1396 // add "__proto__" for Object.getPrototypeOf polyfill
1397 result[IE_PROTO] = O;
1398 } else result = createDict();
1399 return Properties === undefined ? result : dPs(result, Properties);
1400 };
1401
1402
1403 /***/ }),
1404 /* 51 */
1405 /***/ (function(module, exports, __webpack_require__) {
1406
1407 module.exports = __webpack_require__(233);
1408
1409 /***/ }),
1410 /* 52 */
1411 /***/ (function(module, exports) {
1412
1413 var core = module.exports = { version: '2.6.11' };
1414 if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
1415
1416
1417 /***/ }),
1418 /* 53 */
1419 /***/ (function(module, exports, __webpack_require__) {
1420
1421 var pIE = __webpack_require__(49);
1422 var createDesc = __webpack_require__(43);
1423 var toIObject = __webpack_require__(21);
1424 var toPrimitive = __webpack_require__(71);
1425 var has = __webpack_require__(19);
1426 var IE8_DOM_DEFINE = __webpack_require__(113);
1427 var gOPD = Object.getOwnPropertyDescriptor;
1428
1429 exports.f = __webpack_require__(14) ? gOPD : function getOwnPropertyDescriptor(O, P) {
1430 O = toIObject(O);
1431 P = toPrimitive(P, true);
1432 if (IE8_DOM_DEFINE) try {
1433 return gOPD(O, P);
1434 } catch (e) { /* empty */ }
1435 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
1436 };
1437
1438
1439 /***/ }),
1440 /* 54 */
1441 /***/ (function(module, exports, __webpack_require__) {
1442
1443 var def = __webpack_require__(15).f;
1444 var has = __webpack_require__(19);
1445 var TAG = __webpack_require__(10)('toStringTag');
1446
1447 module.exports = function (it, tag, stat) {
1448 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
1449 };
1450
1451
1452 /***/ }),
1453 /* 55 */
1454 /***/ (function(module, exports) {
1455
1456 var toString = {}.toString;
1457
1458 module.exports = function (it) {
1459 return toString.call(it).slice(8, -1);
1460 };
1461
1462
1463 /***/ }),
1464 /* 56 */
1465 /***/ (function(module, exports, __webpack_require__) {
1466
1467 "use strict";
1468
1469
1470 var anObject = __webpack_require__(18);
1471 var toObject = __webpack_require__(92);
1472 var toLength = __webpack_require__(42);
1473 var toInteger = __webpack_require__(59);
1474 var advanceStringIndex = __webpack_require__(108);
1475 var regExpExec = __webpack_require__(94);
1476 var max = Math.max;
1477 var min = Math.min;
1478 var floor = Math.floor;
1479 var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
1480 var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
1481
1482 var maybeToString = function (it) {
1483 return it === undefined ? it : String(it);
1484 };
1485
1486 // @@replace logic
1487 __webpack_require__(95)('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
1488 return [
1489 // `String.prototype.replace` method
1490 // https://tc39.github.io/ecma262/#sec-string.prototype.replace
1491 function replace(searchValue, replaceValue) {
1492 var O = defined(this);
1493 var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
1494 return fn !== undefined
1495 ? fn.call(searchValue, O, replaceValue)
1496 : $replace.call(String(O), searchValue, replaceValue);
1497 },
1498 // `RegExp.prototype[@@replace]` method
1499 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1500 function (regexp, replaceValue) {
1501 var res = maybeCallNative($replace, regexp, this, replaceValue);
1502 if (res.done) return res.value;
1503
1504 var rx = anObject(regexp);
1505 var S = String(this);
1506 var functionalReplace = typeof replaceValue === 'function';
1507 if (!functionalReplace) replaceValue = String(replaceValue);
1508 var global = rx.global;
1509 if (global) {
1510 var fullUnicode = rx.unicode;
1511 rx.lastIndex = 0;
1512 }
1513 var results = [];
1514 while (true) {
1515 var result = regExpExec(rx, S);
1516 if (result === null) break;
1517 results.push(result);
1518 if (!global) break;
1519 var matchStr = String(result[0]);
1520 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1521 }
1522 var accumulatedResult = '';
1523 var nextSourcePosition = 0;
1524 for (var i = 0; i < results.length; i++) {
1525 result = results[i];
1526 var matched = String(result[0]);
1527 var position = max(min(toInteger(result.index), S.length), 0);
1528 var captures = [];
1529 // NOTE: This is equivalent to
1530 // captures = result.slice(1).map(maybeToString)
1531 // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1532 // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1533 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1534 for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1535 var namedCaptures = result.groups;
1536 if (functionalReplace) {
1537 var replacerArgs = [matched].concat(captures, position, S);
1538 if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1539 var replacement = String(replaceValue.apply(undefined, replacerArgs));
1540 } else {
1541 replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1542 }
1543 if (position >= nextSourcePosition) {
1544 accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1545 nextSourcePosition = position + matched.length;
1546 }
1547 }
1548 return accumulatedResult + S.slice(nextSourcePosition);
1549 }
1550 ];
1551
1552 // https://tc39.github.io/ecma262/#sec-getsubstitution
1553 function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
1554 var tailPos = position + matched.length;
1555 var m = captures.length;
1556 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1557 if (namedCaptures !== undefined) {
1558 namedCaptures = toObject(namedCaptures);
1559 symbols = SUBSTITUTION_SYMBOLS;
1560 }
1561 return $replace.call(replacement, symbols, function (match, ch) {
1562 var capture;
1563 switch (ch.charAt(0)) {
1564 case '$': return '$';
1565 case '&': return matched;
1566 case '`': return str.slice(0, position);
1567 case "'": return str.slice(tailPos);
1568 case '<':
1569 capture = namedCaptures[ch.slice(1, -1)];
1570 break;
1571 default: // \d\d?
1572 var n = +ch;
1573 if (n === 0) return match;
1574 if (n > m) {
1575 var f = floor(n / 10);
1576 if (f === 0) return match;
1577 if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1578 return match;
1579 }
1580 capture = captures[n - 1];
1581 }
1582 return capture === undefined ? '' : capture;
1583 });
1584 }
1585 });
1586
1587
1588 /***/ }),
1589 /* 57 */
1590 /***/ (function(module, exports) {
1591
1592 var id = 0;
1593 var px = Math.random();
1594 module.exports = function (key) {
1595 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1596 };
1597
1598
1599 /***/ }),
1600 /* 58 */,
1601 /* 59 */
1602 /***/ (function(module, exports) {
1603
1604 // 7.1.4 ToInteger
1605 var ceil = Math.ceil;
1606 var floor = Math.floor;
1607 module.exports = function (it) {
1608 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
1609 };
1610
1611
1612 /***/ }),
1613 /* 60 */
1614 /***/ (function(module, exports, __webpack_require__) {
1615
1616 "use strict";
1617
1618 var $at = __webpack_require__(172)(true);
1619
1620 // 21.1.3.27 String.prototype[@@iterator]()
1621 __webpack_require__(106)(String, 'String', function (iterated) {
1622 this._t = String(iterated); // target
1623 this._i = 0; // next index
1624 // 21.1.5.2.1 %StringIteratorPrototype%.next()
1625 }, function () {
1626 var O = this._t;
1627 var index = this._i;
1628 var point;
1629 if (index >= O.length) return { value: undefined, done: true };
1630 point = $at(O, index);
1631 this._i += point.length;
1632 return { value: point, done: false };
1633 });
1634
1635
1636 /***/ }),
1637 /* 61 */
1638 /***/ (function(module, exports) {
1639
1640 var hasOwnProperty = {}.hasOwnProperty;
1641 module.exports = function (it, key) {
1642 return hasOwnProperty.call(it, key);
1643 };
1644
1645
1646 /***/ }),
1647 /* 62 */
1648 /***/ (function(module, exports, __webpack_require__) {
1649
1650 __webpack_require__(174);
1651 var global = __webpack_require__(8);
1652 var hide = __webpack_require__(25);
1653 var Iterators = __webpack_require__(34);
1654 var TO_STRING_TAG = __webpack_require__(10)('toStringTag');
1655
1656 var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
1657 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
1658 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
1659 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
1660 'TextTrackList,TouchList').split(',');
1661
1662 for (var i = 0; i < DOMIterables.length; i++) {
1663 var NAME = DOMIterables[i];
1664 var Collection = global[NAME];
1665 var proto = Collection && Collection.prototype;
1666 if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
1667 Iterators[NAME] = Iterators.Array;
1668 }
1669
1670
1671 /***/ }),
1672 /* 63 */
1673 /***/ (function(module, exports, __webpack_require__) {
1674
1675 exports.f = __webpack_require__(10);
1676
1677
1678 /***/ }),
1679 /* 64 */
1680 /***/ (function(module, exports, __webpack_require__) {
1681
1682 // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
1683 var has = __webpack_require__(19);
1684 var toObject = __webpack_require__(32);
1685 var IE_PROTO = __webpack_require__(72)('IE_PROTO');
1686 var ObjectProto = Object.prototype;
1687
1688 module.exports = Object.getPrototypeOf || function (O) {
1689 O = toObject(O);
1690 if (has(O, IE_PROTO)) return O[IE_PROTO];
1691 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
1692 return O.constructor.prototype;
1693 } return O instanceof Object ? ObjectProto : null;
1694 };
1695
1696
1697 /***/ }),
1698 /* 65 */
1699 /***/ (function(module, exports) {
1700
1701 // 7.2.1 RequireObjectCoercible(argument)
1702 module.exports = function (it) {
1703 if (it == undefined) throw TypeError("Can't call method on " + it);
1704 return it;
1705 };
1706
1707
1708 /***/ }),
1709 /* 66 */
1710 /***/ (function(module, exports, __webpack_require__) {
1711
1712 var core = __webpack_require__(52);
1713 var global = __webpack_require__(17);
1714 var SHARED = '__core-js_shared__';
1715 var store = global[SHARED] || (global[SHARED] = {});
1716
1717 (module.exports = function (key, value) {
1718 return store[key] || (store[key] = value !== undefined ? value : {});
1719 })('versions', []).push({
1720 version: core.version,
1721 mode: __webpack_require__(109) ? 'pure' : 'global',
1722 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
1723 });
1724
1725
1726 /***/ }),
1727 /* 67 */
1728 /***/ (function(module, exports) {
1729
1730 var id = 0;
1731 var px = Math.random();
1732 module.exports = function (key) {
1733 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1734 };
1735
1736
1737 /***/ }),
1738 /* 68 */
1739 /***/ (function(module, exports, __webpack_require__) {
1740
1741 /**
1742 * Copyright (c) 2014-present, Facebook, Inc.
1743 *
1744 * This source code is licensed under the MIT license found in the
1745 * LICENSE file in the root directory of this source tree.
1746 */
1747
1748 var runtime = (function (exports) {
1749 "use strict";
1750
1751 var Op = Object.prototype;
1752 var hasOwn = Op.hasOwnProperty;
1753 var undefined; // More compressible than void 0.
1754 var $Symbol = typeof Symbol === "function" ? Symbol : {};
1755 var iteratorSymbol = $Symbol.iterator || "@@iterator";
1756 var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
1757 var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
1758
1759 function define(obj, key, value) {
1760 Object.defineProperty(obj, key, {
1761 value: value,
1762 enumerable: true,
1763 configurable: true,
1764 writable: true
1765 });
1766 return obj[key];
1767 }
1768 try {
1769 // IE 8 has a broken Object.defineProperty that only works on DOM objects.
1770 define({}, "");
1771 } catch (err) {
1772 define = function(obj, key, value) {
1773 return obj[key] = value;
1774 };
1775 }
1776
1777 function wrap(innerFn, outerFn, self, tryLocsList) {
1778 // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
1779 var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
1780 var generator = Object.create(protoGenerator.prototype);
1781 var context = new Context(tryLocsList || []);
1782
1783 // The ._invoke method unifies the implementations of the .next,
1784 // .throw, and .return methods.
1785 generator._invoke = makeInvokeMethod(innerFn, self, context);
1786
1787 return generator;
1788 }
1789 exports.wrap = wrap;
1790
1791 // Try/catch helper to minimize deoptimizations. Returns a completion
1792 // record like context.tryEntries[i].completion. This interface could
1793 // have been (and was previously) designed to take a closure to be
1794 // invoked without arguments, but in all the cases we care about we
1795 // already have an existing method we want to call, so there's no need
1796 // to create a new function object. We can even get away with assuming
1797 // the method takes exactly one argument, since that happens to be true
1798 // in every case, so we don't have to touch the arguments object. The
1799 // only additional allocation required is the completion record, which
1800 // has a stable shape and so hopefully should be cheap to allocate.
1801 function tryCatch(fn, obj, arg) {
1802 try {
1803 return { type: "normal", arg: fn.call(obj, arg) };
1804 } catch (err) {
1805 return { type: "throw", arg: err };
1806 }
1807 }
1808
1809 var GenStateSuspendedStart = "suspendedStart";
1810 var GenStateSuspendedYield = "suspendedYield";
1811 var GenStateExecuting = "executing";
1812 var GenStateCompleted = "completed";
1813
1814 // Returning this object from the innerFn has the same effect as
1815 // breaking out of the dispatch switch statement.
1816 var ContinueSentinel = {};
1817
1818 // Dummy constructor functions that we use as the .constructor and
1819 // .constructor.prototype properties for functions that return Generator
1820 // objects. For full spec compliance, you may wish to configure your
1821 // minifier not to mangle the names of these two functions.
1822 function Generator() {}
1823 function GeneratorFunction() {}
1824 function GeneratorFunctionPrototype() {}
1825
1826 // This is a polyfill for %IteratorPrototype% for environments that
1827 // don't natively support it.
1828 var IteratorPrototype = {};
1829 IteratorPrototype[iteratorSymbol] = function () {
1830 return this;
1831 };
1832
1833 var getProto = Object.getPrototypeOf;
1834 var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1835 if (NativeIteratorPrototype &&
1836 NativeIteratorPrototype !== Op &&
1837 hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
1838 // This environment has a native %IteratorPrototype%; use it instead
1839 // of the polyfill.
1840 IteratorPrototype = NativeIteratorPrototype;
1841 }
1842
1843 var Gp = GeneratorFunctionPrototype.prototype =
1844 Generator.prototype = Object.create(IteratorPrototype);
1845 GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
1846 GeneratorFunctionPrototype.constructor = GeneratorFunction;
1847 GeneratorFunction.displayName = define(
1848 GeneratorFunctionPrototype,
1849 toStringTagSymbol,
1850 "GeneratorFunction"
1851 );
1852
1853 // Helper for defining the .next, .throw, and .return methods of the
1854 // Iterator interface in terms of a single ._invoke method.
1855 function defineIteratorMethods(prototype) {
1856 ["next", "throw", "return"].forEach(function(method) {
1857 define(prototype, method, function(arg) {
1858 return this._invoke(method, arg);
1859 });
1860 });
1861 }
1862
1863 exports.isGeneratorFunction = function(genFun) {
1864 var ctor = typeof genFun === "function" && genFun.constructor;
1865 return ctor
1866 ? ctor === GeneratorFunction ||
1867 // For the native GeneratorFunction constructor, the best we can
1868 // do is to check its .name property.
1869 (ctor.displayName || ctor.name) === "GeneratorFunction"
1870 : false;
1871 };
1872
1873 exports.mark = function(genFun) {
1874 if (Object.setPrototypeOf) {
1875 Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
1876 } else {
1877 genFun.__proto__ = GeneratorFunctionPrototype;
1878 define(genFun, toStringTagSymbol, "GeneratorFunction");
1879 }
1880 genFun.prototype = Object.create(Gp);
1881 return genFun;
1882 };
1883
1884 // Within the body of any async function, `await x` is transformed to
1885 // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
1886 // `hasOwn.call(value, "__await")` to determine if the yielded value is
1887 // meant to be awaited.
1888 exports.awrap = function(arg) {
1889 return { __await: arg };
1890 };
1891
1892 function AsyncIterator(generator, PromiseImpl) {
1893 function invoke(method, arg, resolve, reject) {
1894 var record = tryCatch(generator[method], generator, arg);
1895 if (record.type === "throw") {
1896 reject(record.arg);
1897 } else {
1898 var result = record.arg;
1899 var value = result.value;
1900 if (value &&
1901 typeof value === "object" &&
1902 hasOwn.call(value, "__await")) {
1903 return PromiseImpl.resolve(value.__await).then(function(value) {
1904 invoke("next", value, resolve, reject);
1905 }, function(err) {
1906 invoke("throw", err, resolve, reject);
1907 });
1908 }
1909
1910 return PromiseImpl.resolve(value).then(function(unwrapped) {
1911 // When a yielded Promise is resolved, its final value becomes
1912 // the .value of the Promise<{value,done}> result for the
1913 // current iteration.
1914 result.value = unwrapped;
1915 resolve(result);
1916 }, function(error) {
1917 // If a rejected Promise was yielded, throw the rejection back
1918 // into the async generator function so it can be handled there.
1919 return invoke("throw", error, resolve, reject);
1920 });
1921 }
1922 }
1923
1924 var previousPromise;
1925
1926 function enqueue(method, arg) {
1927 function callInvokeWithMethodAndArg() {
1928 return new PromiseImpl(function(resolve, reject) {
1929 invoke(method, arg, resolve, reject);
1930 });
1931 }
1932
1933 return previousPromise =
1934 // If enqueue has been called before, then we want to wait until
1935 // all previous Promises have been resolved before calling invoke,
1936 // so that results are always delivered in the correct order. If
1937 // enqueue has not been called before, then it is important to
1938 // call invoke immediately, without waiting on a callback to fire,
1939 // so that the async generator function has the opportunity to do
1940 // any necessary setup in a predictable way. This predictability
1941 // is why the Promise constructor synchronously invokes its
1942 // executor callback, and why async functions synchronously
1943 // execute code before the first await. Since we implement simple
1944 // async functions in terms of async generators, it is especially
1945 // important to get this right, even though it requires care.
1946 previousPromise ? previousPromise.then(
1947 callInvokeWithMethodAndArg,
1948 // Avoid propagating failures to Promises returned by later
1949 // invocations of the iterator.
1950 callInvokeWithMethodAndArg
1951 ) : callInvokeWithMethodAndArg();
1952 }
1953
1954 // Define the unified helper method that is used to implement .next,
1955 // .throw, and .return (see defineIteratorMethods).
1956 this._invoke = enqueue;
1957 }
1958
1959 defineIteratorMethods(AsyncIterator.prototype);
1960 AsyncIterator.prototype[asyncIteratorSymbol] = function () {
1961 return this;
1962 };
1963 exports.AsyncIterator = AsyncIterator;
1964
1965 // Note that simple async functions are implemented on top of
1966 // AsyncIterator objects; they just return a Promise for the value of
1967 // the final result produced by the iterator.
1968 exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
1969 if (PromiseImpl === void 0) PromiseImpl = Promise;
1970
1971 var iter = new AsyncIterator(
1972 wrap(innerFn, outerFn, self, tryLocsList),
1973 PromiseImpl
1974 );
1975
1976 return exports.isGeneratorFunction(outerFn)
1977 ? iter // If outerFn is a generator, return the full iterator.
1978 : iter.next().then(function(result) {
1979 return result.done ? result.value : iter.next();
1980 });
1981 };
1982
1983 function makeInvokeMethod(innerFn, self, context) {
1984 var state = GenStateSuspendedStart;
1985
1986 return function invoke(method, arg) {
1987 if (state === GenStateExecuting) {
1988 throw new Error("Generator is already running");
1989 }
1990
1991 if (state === GenStateCompleted) {
1992 if (method === "throw") {
1993 throw arg;
1994 }
1995
1996 // Be forgiving, per 25.3.3.3.3 of the spec:
1997 // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
1998 return doneResult();
1999 }
2000
2001 context.method = method;
2002 context.arg = arg;
2003
2004 while (true) {
2005 var delegate = context.delegate;
2006 if (delegate) {
2007 var delegateResult = maybeInvokeDelegate(delegate, context);
2008 if (delegateResult) {
2009 if (delegateResult === ContinueSentinel) continue;
2010 return delegateResult;
2011 }
2012 }
2013
2014 if (context.method === "next") {
2015 // Setting context._sent for legacy support of Babel's
2016 // function.sent implementation.
2017 context.sent = context._sent = context.arg;
2018
2019 } else if (context.method === "throw") {
2020 if (state === GenStateSuspendedStart) {
2021 state = GenStateCompleted;
2022 throw context.arg;
2023 }
2024
2025 context.dispatchException(context.arg);
2026
2027 } else if (context.method === "return") {
2028 context.abrupt("return", context.arg);
2029 }
2030
2031 state = GenStateExecuting;
2032
2033 var record = tryCatch(innerFn, self, context);
2034 if (record.type === "normal") {
2035 // If an exception is thrown from innerFn, we leave state ===
2036 // GenStateExecuting and loop back for another invocation.
2037 state = context.done
2038 ? GenStateCompleted
2039 : GenStateSuspendedYield;
2040
2041 if (record.arg === ContinueSentinel) {
2042 continue;
2043 }
2044
2045 return {
2046 value: record.arg,
2047 done: context.done
2048 };
2049
2050 } else if (record.type === "throw") {
2051 state = GenStateCompleted;
2052 // Dispatch the exception by looping back around to the
2053 // context.dispatchException(context.arg) call above.
2054 context.method = "throw";
2055 context.arg = record.arg;
2056 }
2057 }
2058 };
2059 }
2060
2061 // Call delegate.iterator[context.method](context.arg) and handle the
2062 // result, either by returning a { value, done } result from the
2063 // delegate iterator, or by modifying context.method and context.arg,
2064 // setting context.delegate to null, and returning the ContinueSentinel.
2065 function maybeInvokeDelegate(delegate, context) {
2066 var method = delegate.iterator[context.method];
2067 if (method === undefined) {
2068 // A .throw or .return when the delegate iterator has no .throw
2069 // method always terminates the yield* loop.
2070 context.delegate = null;
2071
2072 if (context.method === "throw") {
2073 // Note: ["return"] must be used for ES3 parsing compatibility.
2074 if (delegate.iterator["return"]) {
2075 // If the delegate iterator has a return method, give it a
2076 // chance to clean up.
2077 context.method = "return";
2078 context.arg = undefined;
2079 maybeInvokeDelegate(delegate, context);
2080
2081 if (context.method === "throw") {
2082 // If maybeInvokeDelegate(context) changed context.method from
2083 // "return" to "throw", let that override the TypeError below.
2084 return ContinueSentinel;
2085 }
2086 }
2087
2088 context.method = "throw";
2089 context.arg = new TypeError(
2090 "The iterator does not provide a 'throw' method");
2091 }
2092
2093 return ContinueSentinel;
2094 }
2095
2096 var record = tryCatch(method, delegate.iterator, context.arg);
2097
2098 if (record.type === "throw") {
2099 context.method = "throw";
2100 context.arg = record.arg;
2101 context.delegate = null;
2102 return ContinueSentinel;
2103 }
2104
2105 var info = record.arg;
2106
2107 if (! info) {
2108 context.method = "throw";
2109 context.arg = new TypeError("iterator result is not an object");
2110 context.delegate = null;
2111 return ContinueSentinel;
2112 }
2113
2114 if (info.done) {
2115 // Assign the result of the finished delegate to the temporary
2116 // variable specified by delegate.resultName (see delegateYield).
2117 context[delegate.resultName] = info.value;
2118
2119 // Resume execution at the desired location (see delegateYield).
2120 context.next = delegate.nextLoc;
2121
2122 // If context.method was "throw" but the delegate handled the
2123 // exception, let the outer generator proceed normally. If
2124 // context.method was "next", forget context.arg since it has been
2125 // "consumed" by the delegate iterator. If context.method was
2126 // "return", allow the original .return call to continue in the
2127 // outer generator.
2128 if (context.method !== "return") {
2129 context.method = "next";
2130 context.arg = undefined;
2131 }
2132
2133 } else {
2134 // Re-yield the result returned by the delegate method.
2135 return info;
2136 }
2137
2138 // The delegate iterator is finished, so forget it and continue with
2139 // the outer generator.
2140 context.delegate = null;
2141 return ContinueSentinel;
2142 }
2143
2144 // Define Generator.prototype.{next,throw,return} in terms of the
2145 // unified ._invoke helper method.
2146 defineIteratorMethods(Gp);
2147
2148 define(Gp, toStringTagSymbol, "Generator");
2149
2150 // A Generator should always return itself as the iterator object when the
2151 // @@iterator function is called on it. Some browsers' implementations of the
2152 // iterator prototype chain incorrectly implement this, causing the Generator
2153 // object to not be returned from this call. This ensures that doesn't happen.
2154 // See https://github.com/facebook/regenerator/issues/274 for more details.
2155 Gp[iteratorSymbol] = function() {
2156 return this;
2157 };
2158
2159 Gp.toString = function() {
2160 return "[object Generator]";
2161 };
2162
2163 function pushTryEntry(locs) {
2164 var entry = { tryLoc: locs[0] };
2165
2166 if (1 in locs) {
2167 entry.catchLoc = locs[1];
2168 }
2169
2170 if (2 in locs) {
2171 entry.finallyLoc = locs[2];
2172 entry.afterLoc = locs[3];
2173 }
2174
2175 this.tryEntries.push(entry);
2176 }
2177
2178 function resetTryEntry(entry) {
2179 var record = entry.completion || {};
2180 record.type = "normal";
2181 delete record.arg;
2182 entry.completion = record;
2183 }
2184
2185 function Context(tryLocsList) {
2186 // The root entry object (effectively a try statement without a catch
2187 // or a finally block) gives us a place to store values thrown from
2188 // locations where there is no enclosing try statement.
2189 this.tryEntries = [{ tryLoc: "root" }];
2190 tryLocsList.forEach(pushTryEntry, this);
2191 this.reset(true);
2192 }
2193
2194 exports.keys = function(object) {
2195 var keys = [];
2196 for (var key in object) {
2197 keys.push(key);
2198 }
2199 keys.reverse();
2200
2201 // Rather than returning an object with a next method, we keep
2202 // things simple and return the next function itself.
2203 return function next() {
2204 while (keys.length) {
2205 var key = keys.pop();
2206 if (key in object) {
2207 next.value = key;
2208 next.done = false;
2209 return next;
2210 }
2211 }
2212
2213 // To avoid creating an additional object, we just hang the .value
2214 // and .done properties off the next function object itself. This
2215 // also ensures that the minifier will not anonymize the function.
2216 next.done = true;
2217 return next;
2218 };
2219 };
2220
2221 function values(iterable) {
2222 if (iterable) {
2223 var iteratorMethod = iterable[iteratorSymbol];
2224 if (iteratorMethod) {
2225 return iteratorMethod.call(iterable);
2226 }
2227
2228 if (typeof iterable.next === "function") {
2229 return iterable;
2230 }
2231
2232 if (!isNaN(iterable.length)) {
2233 var i = -1, next = function next() {
2234 while (++i < iterable.length) {
2235 if (hasOwn.call(iterable, i)) {
2236 next.value = iterable[i];
2237 next.done = false;
2238 return next;
2239 }
2240 }
2241
2242 next.value = undefined;
2243 next.done = true;
2244
2245 return next;
2246 };
2247
2248 return next.next = next;
2249 }
2250 }
2251
2252 // Return an iterator with no values.
2253 return { next: doneResult };
2254 }
2255 exports.values = values;
2256
2257 function doneResult() {
2258 return { value: undefined, done: true };
2259 }
2260
2261 Context.prototype = {
2262 constructor: Context,
2263
2264 reset: function(skipTempReset) {
2265 this.prev = 0;
2266 this.next = 0;
2267 // Resetting context._sent for legacy support of Babel's
2268 // function.sent implementation.
2269 this.sent = this._sent = undefined;
2270 this.done = false;
2271 this.delegate = null;
2272
2273 this.method = "next";
2274 this.arg = undefined;
2275
2276 this.tryEntries.forEach(resetTryEntry);
2277
2278 if (!skipTempReset) {
2279 for (var name in this) {
2280 // Not sure about the optimal order of these conditions:
2281 if (name.charAt(0) === "t" &&
2282 hasOwn.call(this, name) &&
2283 !isNaN(+name.slice(1))) {
2284 this[name] = undefined;
2285 }
2286 }
2287 }
2288 },
2289
2290 stop: function() {
2291 this.done = true;
2292
2293 var rootEntry = this.tryEntries[0];
2294 var rootRecord = rootEntry.completion;
2295 if (rootRecord.type === "throw") {
2296 throw rootRecord.arg;
2297 }
2298
2299 return this.rval;
2300 },
2301
2302 dispatchException: function(exception) {
2303 if (this.done) {
2304 throw exception;
2305 }
2306
2307 var context = this;
2308 function handle(loc, caught) {
2309 record.type = "throw";
2310 record.arg = exception;
2311 context.next = loc;
2312
2313 if (caught) {
2314 // If the dispatched exception was caught by a catch block,
2315 // then let that catch block handle the exception normally.
2316 context.method = "next";
2317 context.arg = undefined;
2318 }
2319
2320 return !! caught;
2321 }
2322
2323 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2324 var entry = this.tryEntries[i];
2325 var record = entry.completion;
2326
2327 if (entry.tryLoc === "root") {
2328 // Exception thrown outside of any try block that could handle
2329 // it, so set the completion value of the entire function to
2330 // throw the exception.
2331 return handle("end");
2332 }
2333
2334 if (entry.tryLoc <= this.prev) {
2335 var hasCatch = hasOwn.call(entry, "catchLoc");
2336 var hasFinally = hasOwn.call(entry, "finallyLoc");
2337
2338 if (hasCatch && hasFinally) {
2339 if (this.prev < entry.catchLoc) {
2340 return handle(entry.catchLoc, true);
2341 } else if (this.prev < entry.finallyLoc) {
2342 return handle(entry.finallyLoc);
2343 }
2344
2345 } else if (hasCatch) {
2346 if (this.prev < entry.catchLoc) {
2347 return handle(entry.catchLoc, true);
2348 }
2349
2350 } else if (hasFinally) {
2351 if (this.prev < entry.finallyLoc) {
2352 return handle(entry.finallyLoc);
2353 }
2354
2355 } else {
2356 throw new Error("try statement without catch or finally");
2357 }
2358 }
2359 }
2360 },
2361
2362 abrupt: function(type, arg) {
2363 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2364 var entry = this.tryEntries[i];
2365 if (entry.tryLoc <= this.prev &&
2366 hasOwn.call(entry, "finallyLoc") &&
2367 this.prev < entry.finallyLoc) {
2368 var finallyEntry = entry;
2369 break;
2370 }
2371 }
2372
2373 if (finallyEntry &&
2374 (type === "break" ||
2375 type === "continue") &&
2376 finallyEntry.tryLoc <= arg &&
2377 arg <= finallyEntry.finallyLoc) {
2378 // Ignore the finally entry if control is not jumping to a
2379 // location outside the try/catch block.
2380 finallyEntry = null;
2381 }
2382
2383 var record = finallyEntry ? finallyEntry.completion : {};
2384 record.type = type;
2385 record.arg = arg;
2386
2387 if (finallyEntry) {
2388 this.method = "next";
2389 this.next = finallyEntry.finallyLoc;
2390 return ContinueSentinel;
2391 }
2392
2393 return this.complete(record);
2394 },
2395
2396 complete: function(record, afterLoc) {
2397 if (record.type === "throw") {
2398 throw record.arg;
2399 }
2400
2401 if (record.type === "break" ||
2402 record.type === "continue") {
2403 this.next = record.arg;
2404 } else if (record.type === "return") {
2405 this.rval = this.arg = record.arg;
2406 this.method = "return";
2407 this.next = "end";
2408 } else if (record.type === "normal" && afterLoc) {
2409 this.next = afterLoc;
2410 }
2411
2412 return ContinueSentinel;
2413 },
2414
2415 finish: function(finallyLoc) {
2416 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2417 var entry = this.tryEntries[i];
2418 if (entry.finallyLoc === finallyLoc) {
2419 this.complete(entry.completion, entry.afterLoc);
2420 resetTryEntry(entry);
2421 return ContinueSentinel;
2422 }
2423 }
2424 },
2425
2426 "catch": function(tryLoc) {
2427 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2428 var entry = this.tryEntries[i];
2429 if (entry.tryLoc === tryLoc) {
2430 var record = entry.completion;
2431 if (record.type === "throw") {
2432 var thrown = record.arg;
2433 resetTryEntry(entry);
2434 }
2435 return thrown;
2436 }
2437 }
2438
2439 // The context.catch method must only be called with a location
2440 // argument that corresponds to a known catch block.
2441 throw new Error("illegal catch attempt");
2442 },
2443
2444 delegateYield: function(iterable, resultName, nextLoc) {
2445 this.delegate = {
2446 iterator: values(iterable),
2447 resultName: resultName,
2448 nextLoc: nextLoc
2449 };
2450
2451 if (this.method === "next") {
2452 // Deliberately forget the last sent value so that we don't
2453 // accidentally pass it on to the delegate.
2454 this.arg = undefined;
2455 }
2456
2457 return ContinueSentinel;
2458 }
2459 };
2460
2461 // Regardless of whether this script is executing as a CommonJS module
2462 // or not, return the runtime object so that we can declare the variable
2463 // regeneratorRuntime in the outer scope, which allows this module to be
2464 // injected easily by `bin/regenerator --include-runtime script.js`.
2465 return exports;
2466
2467 }(
2468 // If this script is executing as a CommonJS module, use module.exports
2469 // as the regeneratorRuntime namespace. Otherwise create a new empty
2470 // object. Either way, the resulting object will be used to initialize
2471 // the regeneratorRuntime variable at the top of this file.
2472 true ? module.exports : undefined
2473 ));
2474
2475 try {
2476 regeneratorRuntime = runtime;
2477 } catch (accidentalStrictMode) {
2478 // This module should not be running in strict mode, so the above
2479 // assignment should always work unless something is misconfigured. Just
2480 // in case runtime.js accidentally runs in strict mode, we can escape
2481 // strict mode using a global Function call. This could conceivably fail
2482 // if a Content Security Policy forbids using Function, but in that case
2483 // the proper solution is to fix the accidental strict mode problem. If
2484 // you've misconfigured your bundler to force strict mode and applied a
2485 // CSP to forbid Function, and you're not willing to fix either of those
2486 // problems, please detail your unique predicament in a GitHub issue.
2487 Function("r", "regeneratorRuntime = r")(runtime);
2488 }
2489
2490
2491 /***/ }),
2492 /* 69 */
2493 /***/ (function(module, exports, __webpack_require__) {
2494
2495 "use strict";
2496
2497 // 19.1.3.6 Object.prototype.toString()
2498 var classof = __webpack_require__(112);
2499 var test = {};
2500 test[__webpack_require__(11)('toStringTag')] = 'z';
2501 if (test + '' != '[object z]') {
2502 __webpack_require__(35)(Object.prototype, 'toString', function toString() {
2503 return '[object ' + classof(this) + ']';
2504 }, true);
2505 }
2506
2507
2508 /***/ }),
2509 /* 70 */
2510 /***/ (function(module, exports, __webpack_require__) {
2511
2512 // optional / simple context binding
2513 var aFunction = __webpack_require__(89);
2514 module.exports = function (fn, that, length) {
2515 aFunction(fn);
2516 if (that === undefined) return fn;
2517 switch (length) {
2518 case 1: return function (a) {
2519 return fn.call(that, a);
2520 };
2521 case 2: return function (a, b) {
2522 return fn.call(that, a, b);
2523 };
2524 case 3: return function (a, b, c) {
2525 return fn.call(that, a, b, c);
2526 };
2527 }
2528 return function (/* ...args */) {
2529 return fn.apply(that, arguments);
2530 };
2531 };
2532
2533
2534 /***/ }),
2535 /* 71 */
2536 /***/ (function(module, exports, __webpack_require__) {
2537
2538 // 7.1.1 ToPrimitive(input [, PreferredType])
2539 var isObject = __webpack_require__(9);
2540 // instead of the ES6 spec version, we didn't implement @@toPrimitive case
2541 // and the second argument - flag - preferred type is a string
2542 module.exports = function (it, S) {
2543 if (!isObject(it)) return it;
2544 var fn, val;
2545 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2546 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
2547 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2548 throw TypeError("Can't convert object to primitive value");
2549 };
2550
2551
2552 /***/ }),
2553 /* 72 */
2554 /***/ (function(module, exports, __webpack_require__) {
2555
2556 var shared = __webpack_require__(73)('keys');
2557 var uid = __webpack_require__(57);
2558 module.exports = function (key) {
2559 return shared[key] || (shared[key] = uid(key));
2560 };
2561
2562
2563 /***/ }),
2564 /* 73 */
2565 /***/ (function(module, exports, __webpack_require__) {
2566
2567 var core = __webpack_require__(6);
2568 var global = __webpack_require__(8);
2569 var SHARED = '__core-js_shared__';
2570 var store = global[SHARED] || (global[SHARED] = {});
2571
2572 (module.exports = function (key, value) {
2573 return store[key] || (store[key] = value !== undefined ? value : {});
2574 })('versions', []).push({
2575 version: core.version,
2576 mode: __webpack_require__(46) ? 'pure' : 'global',
2577 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
2578 });
2579
2580
2581 /***/ }),
2582 /* 74 */
2583 /***/ (function(module, exports, __webpack_require__) {
2584
2585 // 7.1.15 ToLength
2586 var toInteger = __webpack_require__(75);
2587 var min = Math.min;
2588 module.exports = function (it) {
2589 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
2590 };
2591
2592
2593 /***/ }),
2594 /* 75 */
2595 /***/ (function(module, exports) {
2596
2597 // 7.1.4 ToInteger
2598 var ceil = Math.ceil;
2599 var floor = Math.floor;
2600 module.exports = function (it) {
2601 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
2602 };
2603
2604
2605 /***/ }),
2606 /* 76 */
2607 /***/ (function(module, exports) {
2608
2609 // IE 8- don't enum bug keys
2610 module.exports = (
2611 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
2612 ).split(',');
2613
2614
2615 /***/ }),
2616 /* 77 */
2617 /***/ (function(module, exports, __webpack_require__) {
2618
2619 var global = __webpack_require__(8);
2620 var core = __webpack_require__(6);
2621 var LIBRARY = __webpack_require__(46);
2622 var wksExt = __webpack_require__(63);
2623 var defineProperty = __webpack_require__(15).f;
2624 module.exports = function (name) {
2625 var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
2626 if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
2627 };
2628
2629
2630 /***/ }),
2631 /* 78 */
2632 /***/ (function(module, exports) {
2633
2634 exports.f = Object.getOwnPropertySymbols;
2635
2636
2637 /***/ }),
2638 /* 79 */
2639 /***/ (function(module, exports, __webpack_require__) {
2640
2641 "use strict";
2642
2643
2644 var _interopRequireDefault = __webpack_require__(0);
2645
2646 var _Object$defineProperty = __webpack_require__(1);
2647
2648 _Object$defineProperty(exports, "__esModule", {
2649 value: true
2650 });
2651
2652 exports.default = void 0;
2653
2654 __webpack_require__(56);
2655
2656 var _keys = _interopRequireDefault(__webpack_require__(24));
2657
2658 __webpack_require__(80);
2659
2660 var _values = _interopRequireDefault(__webpack_require__(51));
2661
2662 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(110));
2663
2664 var _entries = _interopRequireDefault(__webpack_require__(85));
2665
2666 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
2667
2668 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
2669
2670 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
2671
2672 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
2673
2674 var ComponentBase = /*#__PURE__*/function (_elementorModules$Mod) {
2675 (0, _inherits2.default)(ComponentBase, _elementorModules$Mod);
2676
2677 var _super = (0, _createSuper2.default)(ComponentBase);
2678
2679 function ComponentBase() {
2680 (0, _classCallCheck2.default)(this, ComponentBase);
2681 return _super.apply(this, arguments);
2682 }
2683
2684 (0, _createClass2.default)(ComponentBase, [{
2685 key: "__construct",
2686 value: function __construct() {
2687 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2688
2689 if (args.manager) {
2690 this.manager = args.manager;
2691 }
2692
2693 this.commands = this.defaultCommands();
2694 this.commandsInternal = this.defaultCommandsInternal();
2695 this.hooks = this.defaultHooks();
2696 this.routes = this.defaultRoutes();
2697 this.tabs = this.defaultTabs();
2698 this.shortcuts = this.defaultShortcuts();
2699 this.utils = this.defaultUtils();
2700 this.data = this.defaultData();
2701 this.defaultRoute = '';
2702 this.currentTab = '';
2703 }
2704 }, {
2705 key: "registerAPI",
2706 value: function registerAPI() {
2707 var _this = this;
2708
2709 (0, _entries.default)(this.getTabs()).forEach(function (tab) {
2710 return _this.registerTabRoute(tab[0]);
2711 });
2712 (0, _entries.default)(this.getRoutes()).forEach(function (_ref) {
2713 var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
2714 route = _ref2[0],
2715 callback = _ref2[1];
2716
2717 return _this.registerRoute(route, callback);
2718 });
2719 (0, _entries.default)(this.getCommands()).forEach(function (_ref3) {
2720 var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
2721 command = _ref4[0],
2722 callback = _ref4[1];
2723
2724 return _this.registerCommand(command, callback);
2725 });
2726 (0, _entries.default)(this.getCommandsInternal()).forEach(function (_ref5) {
2727 var _ref6 = (0, _slicedToArray2.default)(_ref5, 2),
2728 command = _ref6[0],
2729 callback = _ref6[1];
2730
2731 return _this.registerCommandInternal(command, callback);
2732 });
2733 (0, _values.default)(this.getHooks()).forEach(function (instance) {
2734 return _this.registerHook(instance);
2735 });
2736 (0, _entries.default)(this.getData()).forEach(function (_ref7) {
2737 var _ref8 = (0, _slicedToArray2.default)(_ref7, 2),
2738 command = _ref8[0],
2739 callback = _ref8[1];
2740
2741 return _this.registerData(command, callback);
2742 });
2743 }
2744 /**
2745 * @returns {string}
2746 */
2747
2748 }, {
2749 key: "getNamespace",
2750 value: function getNamespace() {
2751 elementorModules.ForceMethodImplementation();
2752 }
2753 }, {
2754 key: "getRootContainer",
2755 value: function getRootContainer() {
2756 var parts = this.getNamespace().split('/');
2757 return parts[0];
2758 }
2759 }, {
2760 key: "defaultTabs",
2761 value: function defaultTabs() {
2762 return {};
2763 }
2764 }, {
2765 key: "defaultRoutes",
2766 value: function defaultRoutes() {
2767 return {};
2768 }
2769 }, {
2770 key: "defaultCommands",
2771 value: function defaultCommands() {
2772 return {};
2773 }
2774 }, {
2775 key: "defaultCommandsInternal",
2776 value: function defaultCommandsInternal() {
2777 return {};
2778 }
2779 }, {
2780 key: "defaultHooks",
2781 value: function defaultHooks() {
2782 return {};
2783 }
2784 }, {
2785 key: "defaultShortcuts",
2786 value: function defaultShortcuts() {
2787 return {};
2788 }
2789 }, {
2790 key: "defaultUtils",
2791 value: function defaultUtils() {
2792 return {};
2793 }
2794 }, {
2795 key: "defaultData",
2796 value: function defaultData() {
2797 return {};
2798 }
2799 }, {
2800 key: "getCommands",
2801 value: function getCommands() {
2802 return this.commands;
2803 }
2804 }, {
2805 key: "getCommandsInternal",
2806 value: function getCommandsInternal() {
2807 return this.commandsInternal;
2808 }
2809 }, {
2810 key: "getHooks",
2811 value: function getHooks() {
2812 return this.hooks;
2813 }
2814 }, {
2815 key: "getRoutes",
2816 value: function getRoutes() {
2817 return this.routes;
2818 }
2819 }, {
2820 key: "getTabs",
2821 value: function getTabs() {
2822 return this.tabs;
2823 }
2824 }, {
2825 key: "getShortcuts",
2826 value: function getShortcuts() {
2827 return this.shortcuts;
2828 }
2829 }, {
2830 key: "getData",
2831 value: function getData() {
2832 return this.data;
2833 }
2834 }, {
2835 key: "registerCommand",
2836 value: function registerCommand(command, callback) {
2837 $e.commands.register(this, command, callback);
2838 }
2839 /**
2840 * @param {HookBase} instance
2841 */
2842
2843 }, {
2844 key: "registerHook",
2845 value: function registerHook(instance) {
2846 return instance.register();
2847 }
2848 }, {
2849 key: "registerCommandInternal",
2850 value: function registerCommandInternal(command, callback) {
2851 $e.commandsInternal.register(this, command, callback);
2852 }
2853 }, {
2854 key: "registerRoute",
2855 value: function registerRoute(route, callback) {
2856 $e.routes.register(this, route, callback);
2857 }
2858 }, {
2859 key: "registerData",
2860 value: function registerData(command, callback) {
2861 $e.data.register(this, command, callback);
2862 }
2863 }, {
2864 key: "unregisterRoute",
2865 value: function unregisterRoute(route) {
2866 $e.routes.unregister(this, route);
2867 }
2868 }, {
2869 key: "registerTabRoute",
2870 value: function registerTabRoute(tab) {
2871 var _this2 = this;
2872
2873 this.registerRoute(tab, function () {
2874 return _this2.activateTab(tab);
2875 });
2876 }
2877 }, {
2878 key: "dependency",
2879 value: function dependency() {
2880 return true;
2881 }
2882 }, {
2883 key: "open",
2884 value: function open() {
2885 return true;
2886 }
2887 }, {
2888 key: "close",
2889 value: function close() {
2890 if (!this.isOpen) {
2891 return false;
2892 }
2893
2894 this.isOpen = false;
2895 this.inactivate();
2896 $e.routes.clearCurrent(this.getNamespace());
2897 $e.routes.clearHistory(this.getRootContainer());
2898 return true;
2899 }
2900 }, {
2901 key: "activate",
2902 value: function activate() {
2903 $e.components.activate(this.getNamespace());
2904 }
2905 }, {
2906 key: "inactivate",
2907 value: function inactivate() {
2908 $e.components.inactivate(this.getNamespace());
2909 }
2910 }, {
2911 key: "isActive",
2912 value: function isActive() {
2913 return $e.components.isActive(this.getNamespace());
2914 }
2915 }, {
2916 key: "onRoute",
2917 value: function onRoute(route) {
2918 this.toggleRouteClass(route, true);
2919 this.toggleHistoryClass();
2920 this.activate();
2921 this.trigger('route/open', route);
2922 }
2923 }, {
2924 key: "onCloseRoute",
2925 value: function onCloseRoute(route) {
2926 this.toggleRouteClass(route, false);
2927 this.inactivate();
2928 this.trigger('route/close', route);
2929 }
2930 }, {
2931 key: "setDefaultRoute",
2932 value: function setDefaultRoute(route) {
2933 this.defaultRoute = this.getNamespace() + '/' + route;
2934 }
2935 }, {
2936 key: "getDefaultRoute",
2937 value: function getDefaultRoute() {
2938 return this.defaultRoute;
2939 }
2940 }, {
2941 key: "removeTab",
2942 value: function removeTab(tab) {
2943 delete this.tabs[tab];
2944 this.unregisterRoute(tab);
2945 }
2946 }, {
2947 key: "hasTab",
2948 value: function hasTab(tab) {
2949 return !!this.tabs[tab];
2950 }
2951 }, {
2952 key: "addTab",
2953 value: function addTab(tab, args, position) {
2954 var _this3 = this;
2955
2956 this.tabs[tab] = args; // It can be 0.
2957
2958 if ('undefined' !== typeof position) {
2959 var newTabs = {};
2960 var ids = (0, _keys.default)(this.tabs); // Remove new tab
2961
2962 ids.pop(); // Add it to position.
2963
2964 ids.splice(position, 0, tab);
2965 ids.forEach(function (id) {
2966 newTabs[id] = _this3.tabs[id];
2967 });
2968 this.tabs = newTabs;
2969 }
2970
2971 this.registerTabRoute(tab);
2972 }
2973 }, {
2974 key: "getTabsWrapperSelector",
2975 value: function getTabsWrapperSelector() {
2976 return '';
2977 }
2978 }, {
2979 key: "getTabRoute",
2980 value: function getTabRoute(tab) {
2981 return this.getNamespace() + '/' + tab;
2982 }
2983 }, {
2984 key: "renderTab",
2985 value: function renderTab(tab) {} // eslint-disable-line
2986
2987 }, {
2988 key: "activateTab",
2989 value: function activateTab(tab) {
2990 var _this4 = this;
2991
2992 this.currentTab = tab;
2993 this.renderTab(tab);
2994 jQuery(this.getTabsWrapperSelector() + ' .elementor-component-tab').off('click').on('click', function (event) {
2995 $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab));
2996 }).removeClass('elementor-active').filter('[data-tab="' + tab + '"]').addClass('elementor-active');
2997 }
2998 }, {
2999 key: "getActiveTabConfig",
3000 value: function getActiveTabConfig() {
3001 return this.tabs[this.currentTab] || {};
3002 }
3003 }, {
3004 key: "getBodyClass",
3005 value: function getBodyClass(route) {
3006 return 'e-route-' + route.replace(/\//g, '-');
3007 }
3008 /**
3009 * If command includes uppercase character convert it to lowercase and add `-`.
3010 * e.g: `CopyAll` is converted to `copy-all`.
3011 */
3012
3013 }, {
3014 key: "normalizeCommandName",
3015 value: function normalizeCommandName(commandName) {
3016 return commandName.replace(/[A-Z]/g, function (match, offset) {
3017 return (offset > 0 ? '-' : '') + match.toLowerCase();
3018 });
3019 }
3020 }, {
3021 key: "importCommands",
3022 value: function importCommands(commandsFromImport) {
3023 var _this5 = this;
3024
3025 var commands = {}; // Convert `Commands` to `ComponentBase` workable format.
3026
3027 (0, _entries.default)(commandsFromImport).forEach(function (_ref9) {
3028 var _ref10 = (0, _slicedToArray2.default)(_ref9, 2),
3029 className = _ref10[0],
3030 Class = _ref10[1];
3031
3032 var command = _this5.normalizeCommandName(className);
3033
3034 commands[command] = function (args) {
3035 return new Class(args).run();
3036 }; // TODO: Temporary code, remove after merge with 'require-commands-base' branch.
3037 // should not return callback, but Class or Instance without run ( gain performance ).
3038
3039
3040 $e.commands.classes[_this5.getNamespace() + '/' + command] = Class;
3041 });
3042 return commands;
3043 }
3044 }, {
3045 key: "importHooks",
3046 value: function importHooks(hooksFromImport) {
3047 var hooks = {};
3048
3049 for (var key in hooksFromImport) {
3050 var hook = new hooksFromImport[key]();
3051 hooks[hook.getId()] = hook;
3052 }
3053
3054 return hooks;
3055 }
3056 }, {
3057 key: "toggleRouteClass",
3058 value: function toggleRouteClass(route, state) {
3059 elementorCommon.elements.$body.toggleClass(this.getBodyClass(route), state);
3060 }
3061 }, {
3062 key: "toggleHistoryClass",
3063 value: function toggleHistoryClass() {
3064 elementorCommon.elements.$body.toggleClass('e-routes-has-history', !!$e.routes.getHistory(this.getRootContainer()).length);
3065 }
3066 }]);
3067 return ComponentBase;
3068 }(elementorModules.Module);
3069
3070 exports.default = ComponentBase;
3071
3072 /***/ }),
3073 /* 80 */
3074 /***/ (function(module, exports, __webpack_require__) {
3075
3076 "use strict";
3077
3078
3079 var isRegExp = __webpack_require__(120);
3080 var anObject = __webpack_require__(18);
3081 var speciesConstructor = __webpack_require__(154);
3082 var advanceStringIndex = __webpack_require__(108);
3083 var toLength = __webpack_require__(42);
3084 var callRegExpExec = __webpack_require__(94);
3085 var regexpExec = __webpack_require__(86);
3086 var fails = __webpack_require__(33);
3087 var $min = Math.min;
3088 var $push = [].push;
3089 var $SPLIT = 'split';
3090 var LENGTH = 'length';
3091 var LAST_INDEX = 'lastIndex';
3092 var MAX_UINT32 = 0xffffffff;
3093
3094 // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
3095 var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });
3096
3097 // @@split logic
3098 __webpack_require__(95)('split', 2, function (defined, SPLIT, $split, maybeCallNative) {
3099 var internalSplit;
3100 if (
3101 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
3102 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
3103 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
3104 '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
3105 '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
3106 ''[$SPLIT](/.?/)[LENGTH]
3107 ) {
3108 // based on es5-shim implementation, need to rework it
3109 internalSplit = function (separator, limit) {
3110 var string = String(this);
3111 if (separator === undefined && limit === 0) return [];
3112 // If `separator` is not a regex, use native split
3113 if (!isRegExp(separator)) return $split.call(string, separator, limit);
3114 var output = [];
3115 var flags = (separator.ignoreCase ? 'i' : '') +
3116 (separator.multiline ? 'm' : '') +
3117 (separator.unicode ? 'u' : '') +
3118 (separator.sticky ? 'y' : '');
3119 var lastLastIndex = 0;
3120 var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;
3121 // Make `global` and avoid `lastIndex` issues by working with a copy
3122 var separatorCopy = new RegExp(separator.source, flags + 'g');
3123 var match, lastIndex, lastLength;
3124 while (match = regexpExec.call(separatorCopy, string)) {
3125 lastIndex = separatorCopy[LAST_INDEX];
3126 if (lastIndex > lastLastIndex) {
3127 output.push(string.slice(lastLastIndex, match.index));
3128 if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
3129 lastLength = match[0][LENGTH];
3130 lastLastIndex = lastIndex;
3131 if (output[LENGTH] >= splitLimit) break;
3132 }
3133 if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
3134 }
3135 if (lastLastIndex === string[LENGTH]) {
3136 if (lastLength || !separatorCopy.test('')) output.push('');
3137 } else output.push(string.slice(lastLastIndex));
3138 return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
3139 };
3140 // Chakra, V8
3141 } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
3142 internalSplit = function (separator, limit) {
3143 return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);
3144 };
3145 } else {
3146 internalSplit = $split;
3147 }
3148
3149 return [
3150 // `String.prototype.split` method
3151 // https://tc39.github.io/ecma262/#sec-string.prototype.split
3152 function split(separator, limit) {
3153 var O = defined(this);
3154 var splitter = separator == undefined ? undefined : separator[SPLIT];
3155 return splitter !== undefined
3156 ? splitter.call(separator, O, limit)
3157 : internalSplit.call(String(O), separator, limit);
3158 },
3159 // `RegExp.prototype[@@split]` method
3160 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
3161 //
3162 // NOTE: This cannot be properly polyfilled in engines that don't support
3163 // the 'y' flag.
3164 function (regexp, limit) {
3165 var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);
3166 if (res.done) return res.value;
3167
3168 var rx = anObject(regexp);
3169 var S = String(this);
3170 var C = speciesConstructor(rx, RegExp);
3171
3172 var unicodeMatching = rx.unicode;
3173 var flags = (rx.ignoreCase ? 'i' : '') +
3174 (rx.multiline ? 'm' : '') +
3175 (rx.unicode ? 'u' : '') +
3176 (SUPPORTS_Y ? 'y' : 'g');
3177
3178 // ^(? + rx + ) is needed, in combination with some S slicing, to
3179 // simulate the 'y' flag.
3180 var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
3181 var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
3182 if (lim === 0) return [];
3183 if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
3184 var p = 0;
3185 var q = 0;
3186 var A = [];
3187 while (q < S.length) {
3188 splitter.lastIndex = SUPPORTS_Y ? q : 0;
3189 var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
3190 var e;
3191 if (
3192 z === null ||
3193 (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
3194 ) {
3195 q = advanceStringIndex(S, q, unicodeMatching);
3196 } else {
3197 A.push(S.slice(p, q));
3198 if (A.length === lim) return A;
3199 for (var i = 1; i <= z.length - 1; i++) {
3200 A.push(z[i]);
3201 if (A.length === lim) return A;
3202 }
3203 q = p = e;
3204 }
3205 }
3206 A.push(S.slice(p));
3207 return A;
3208 }
3209 ];
3210 });
3211
3212
3213 /***/ }),
3214 /* 81 */
3215 /***/ (function(module, exports, __webpack_require__) {
3216
3217 var META = __webpack_require__(57)('meta');
3218 var isObject = __webpack_require__(9);
3219 var has = __webpack_require__(19);
3220 var setDesc = __webpack_require__(15).f;
3221 var id = 0;
3222 var isExtensible = Object.isExtensible || function () {
3223 return true;
3224 };
3225 var FREEZE = !__webpack_require__(22)(function () {
3226 return isExtensible(Object.preventExtensions({}));
3227 });
3228 var setMeta = function (it) {
3229 setDesc(it, META, { value: {
3230 i: 'O' + ++id, // object ID
3231 w: {} // weak collections IDs
3232 } });
3233 };
3234 var fastKey = function (it, create) {
3235 // return primitive with prefix
3236 if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
3237 if (!has(it, META)) {
3238 // can't set metadata to uncaught frozen object
3239 if (!isExtensible(it)) return 'F';
3240 // not necessary to add metadata
3241 if (!create) return 'E';
3242 // add missing metadata
3243 setMeta(it);
3244 // return object ID
3245 } return it[META].i;
3246 };
3247 var getWeak = function (it, create) {
3248 if (!has(it, META)) {
3249 // can't set metadata to uncaught frozen object
3250 if (!isExtensible(it)) return true;
3251 // not necessary to add metadata
3252 if (!create) return false;
3253 // add missing metadata
3254 setMeta(it);
3255 // return hash weak collections IDs
3256 } return it[META].w;
3257 };
3258 // add metadata on freeze-family methods calling
3259 var onFreeze = function (it) {
3260 if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
3261 return it;
3262 };
3263 var meta = module.exports = {
3264 KEY: META,
3265 NEED: false,
3266 fastKey: fastKey,
3267 getWeak: getWeak,
3268 onFreeze: onFreeze
3269 };
3270
3271
3272 /***/ }),
3273 /* 82 */
3274 /***/ (function(module, exports, __webpack_require__) {
3275
3276 module.exports = __webpack_require__(213);
3277
3278 /***/ }),
3279 /* 83 */,
3280 /* 84 */
3281 /***/ (function(module, exports, __webpack_require__) {
3282
3283 // most Object methods by ES6 should accept primitives
3284 var $export = __webpack_require__(7);
3285 var core = __webpack_require__(6);
3286 var fails = __webpack_require__(22);
3287 module.exports = function (KEY, exec) {
3288 var fn = (core.Object || {})[KEY] || Object[KEY];
3289 var exp = {};
3290 exp[KEY] = exec(fn);
3291 $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
3292 };
3293
3294
3295 /***/ }),
3296 /* 85 */
3297 /***/ (function(module, exports, __webpack_require__) {
3298
3299 module.exports = __webpack_require__(262);
3300
3301 /***/ }),
3302 /* 86 */
3303 /***/ (function(module, exports, __webpack_require__) {
3304
3305 "use strict";
3306
3307
3308 var regexpFlags = __webpack_require__(103);
3309
3310 var nativeExec = RegExp.prototype.exec;
3311 // This always refers to the native implementation, because the
3312 // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
3313 // which loads this file before patching the method.
3314 var nativeReplace = String.prototype.replace;
3315
3316 var patchedExec = nativeExec;
3317
3318 var LAST_INDEX = 'lastIndex';
3319
3320 var UPDATES_LAST_INDEX_WRONG = (function () {
3321 var re1 = /a/,
3322 re2 = /b*/g;
3323 nativeExec.call(re1, 'a');
3324 nativeExec.call(re2, 'a');
3325 return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
3326 })();
3327
3328 // nonparticipating capturing group, copied from es5-shim's String#split patch.
3329 var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
3330
3331 var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
3332
3333 if (PATCH) {
3334 patchedExec = function exec(str) {
3335 var re = this;
3336 var lastIndex, reCopy, match, i;
3337
3338 if (NPCG_INCLUDED) {
3339 reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
3340 }
3341 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
3342
3343 match = nativeExec.call(re, str);
3344
3345 if (UPDATES_LAST_INDEX_WRONG && match) {
3346 re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
3347 }
3348 if (NPCG_INCLUDED && match && match.length > 1) {
3349 // Fix browsers whose `exec` methods don't consistently return `undefined`
3350 // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
3351 // eslint-disable-next-line no-loop-func
3352 nativeReplace.call(match[0], reCopy, function () {
3353 for (i = 1; i < arguments.length - 2; i++) {
3354 if (arguments[i] === undefined) match[i] = undefined;
3355 }
3356 });
3357 }
3358
3359 return match;
3360 };
3361 }
3362
3363 module.exports = patchedExec;
3364
3365
3366 /***/ }),
3367 /* 87 */
3368 /***/ (function(module, exports, __webpack_require__) {
3369
3370 module.exports = __webpack_require__(68);
3371
3372
3373 /***/ }),
3374 /* 88 */
3375 /***/ (function(module, exports, __webpack_require__) {
3376
3377 var _Promise = __webpack_require__(130);
3378
3379 function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
3380 try {
3381 var info = gen[key](arg);
3382 var value = info.value;
3383 } catch (error) {
3384 reject(error);
3385 return;
3386 }
3387
3388 if (info.done) {
3389 resolve(value);
3390 } else {
3391 _Promise.resolve(value).then(_next, _throw);
3392 }
3393 }
3394
3395 function _asyncToGenerator(fn) {
3396 return function () {
3397 var self = this,
3398 args = arguments;
3399 return new _Promise(function (resolve, reject) {
3400 var gen = fn.apply(self, args);
3401
3402 function _next(value) {
3403 asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
3404 }
3405
3406 function _throw(err) {
3407 asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
3408 }
3409
3410 _next(undefined);
3411 });
3412 };
3413 }
3414
3415 module.exports = _asyncToGenerator;
3416
3417 /***/ }),
3418 /* 89 */
3419 /***/ (function(module, exports) {
3420
3421 module.exports = function (it) {
3422 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
3423 return it;
3424 };
3425
3426
3427 /***/ }),
3428 /* 90 */
3429 /***/ (function(module, exports, __webpack_require__) {
3430
3431 var isObject = __webpack_require__(9);
3432 var document = __webpack_require__(8).document;
3433 // typeof document.createElement is 'object' in old IE
3434 var is = isObject(document) && isObject(document.createElement);
3435 module.exports = function (it) {
3436 return is ? document.createElement(it) : {};
3437 };
3438
3439
3440 /***/ }),
3441 /* 91 */
3442 /***/ (function(module, exports, __webpack_require__) {
3443
3444 // 22.1.3.31 Array.prototype[@@unscopables]
3445 var UNSCOPABLES = __webpack_require__(11)('unscopables');
3446 var ArrayProto = Array.prototype;
3447 if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(30)(ArrayProto, UNSCOPABLES, {});
3448 module.exports = function (key) {
3449 ArrayProto[UNSCOPABLES][key] = true;
3450 };
3451
3452
3453 /***/ }),
3454 /* 92 */
3455 /***/ (function(module, exports, __webpack_require__) {
3456
3457 // 7.1.13 ToObject(argument)
3458 var defined = __webpack_require__(41);
3459 module.exports = function (it) {
3460 return Object(defined(it));
3461 };
3462
3463
3464 /***/ }),
3465 /* 93 */
3466 /***/ (function(module, exports, __webpack_require__) {
3467
3468 module.exports = __webpack_require__(25);
3469
3470
3471 /***/ }),
3472 /* 94 */
3473 /***/ (function(module, exports, __webpack_require__) {
3474
3475 "use strict";
3476
3477
3478 var classof = __webpack_require__(112);
3479 var builtinExec = RegExp.prototype.exec;
3480
3481 // `RegExpExec` abstract operation
3482 // https://tc39.github.io/ecma262/#sec-regexpexec
3483 module.exports = function (R, S) {
3484 var exec = R.exec;
3485 if (typeof exec === 'function') {
3486 var result = exec.call(R, S);
3487 if (typeof result !== 'object') {
3488 throw new TypeError('RegExp exec method returned something other than an Object or null');
3489 }
3490 return result;
3491 }
3492 if (classof(R) !== 'RegExp') {
3493 throw new TypeError('RegExp#exec called on incompatible receiver');
3494 }
3495 return builtinExec.call(R, S);
3496 };
3497
3498
3499 /***/ }),
3500 /* 95 */
3501 /***/ (function(module, exports, __webpack_require__) {
3502
3503 "use strict";
3504
3505 __webpack_require__(186);
3506 var redefine = __webpack_require__(35);
3507 var hide = __webpack_require__(30);
3508 var fails = __webpack_require__(33);
3509 var defined = __webpack_require__(41);
3510 var wks = __webpack_require__(11);
3511 var regexpExec = __webpack_require__(86);
3512
3513 var SPECIES = wks('species');
3514
3515 var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
3516 // #replace needs built-in support for named groups.
3517 // #match works fine because it just return the exec results, even if it has
3518 // a "grops" property.
3519 var re = /./;
3520 re.exec = function () {
3521 var result = [];
3522 result.groups = { a: '7' };
3523 return result;
3524 };
3525 return ''.replace(re, '$<a>') !== '7';
3526 });
3527
3528 var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
3529 // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
3530 var re = /(?:)/;
3531 var originalExec = re.exec;
3532 re.exec = function () { return originalExec.apply(this, arguments); };
3533 var result = 'ab'.split(re);
3534 return result.length === 2 && result[0] === 'a' && result[1] === 'b';
3535 })();
3536
3537 module.exports = function (KEY, length, exec) {
3538 var SYMBOL = wks(KEY);
3539
3540 var DELEGATES_TO_SYMBOL = !fails(function () {
3541 // String methods call symbol-named RegEp methods
3542 var O = {};
3543 O[SYMBOL] = function () { return 7; };
3544 return ''[KEY](O) != 7;
3545 });
3546
3547 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
3548 // Symbol-named RegExp methods call .exec
3549 var execCalled = false;
3550 var re = /a/;
3551 re.exec = function () { execCalled = true; return null; };
3552 if (KEY === 'split') {
3553 // RegExp[@@split] doesn't call the regex's exec method, but first creates
3554 // a new one. We need to return the patched regex when creating the new one.
3555 re.constructor = {};
3556 re.constructor[SPECIES] = function () { return re; };
3557 }
3558 re[SYMBOL]('');
3559 return !execCalled;
3560 }) : undefined;
3561
3562 if (
3563 !DELEGATES_TO_SYMBOL ||
3564 !DELEGATES_TO_EXEC ||
3565 (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
3566 (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
3567 ) {
3568 var nativeRegExpMethod = /./[SYMBOL];
3569 var fns = exec(
3570 defined,
3571 SYMBOL,
3572 ''[KEY],
3573 function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
3574 if (regexp.exec === regexpExec) {
3575 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
3576 // The native String method already delegates to @@method (this
3577 // polyfilled function), leasing to infinite recursion.
3578 // We avoid it by directly calling the native @@method method.
3579 return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
3580 }
3581 return { done: true, value: nativeMethod.call(str, regexp, arg2) };
3582 }
3583 return { done: false };
3584 }
3585 );
3586 var strfn = fns[0];
3587 var rxfn = fns[1];
3588
3589 redefine(String.prototype, KEY, strfn);
3590 hide(RegExp.prototype, SYMBOL, length == 2
3591 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
3592 // 21.2.5.11 RegExp.prototype[@@split](string, limit)
3593 ? function (string, arg) { return rxfn.call(string, this, arg); }
3594 // 21.2.5.6 RegExp.prototype[@@match](string)
3595 // 21.2.5.9 RegExp.prototype[@@search](string)
3596 : function (string) { return rxfn.call(string, this); }
3597 );
3598 }
3599 };
3600
3601
3602 /***/ }),
3603 /* 96 */
3604 /***/ (function(module, exports, __webpack_require__) {
3605
3606 // 7.2.2 IsArray(argument)
3607 var cof = __webpack_require__(55);
3608 module.exports = Array.isArray || function isArray(arg) {
3609 return cof(arg) == 'Array';
3610 };
3611
3612
3613 /***/ }),
3614 /* 97 */
3615 /***/ (function(module, exports, __webpack_require__) {
3616
3617 // getting tag from 19.1.3.6 Object.prototype.toString()
3618 var cof = __webpack_require__(55);
3619 var TAG = __webpack_require__(10)('toStringTag');
3620 // ES3 wrong here
3621 var ARG = cof(function () { return arguments; }()) == 'Arguments';
3622
3623 // fallback for IE11 Script Access Denied error
3624 var tryGet = function (it, key) {
3625 try {
3626 return it[key];
3627 } catch (e) { /* empty */ }
3628 };
3629
3630 module.exports = function (it) {
3631 var O, T, B;
3632 return it === undefined ? 'Undefined' : it === null ? 'Null'
3633 // @@toStringTag case
3634 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
3635 // builtinTag case
3636 : ARG ? cof(O)
3637 // ES3 arguments fallback
3638 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
3639 };
3640
3641
3642 /***/ }),
3643 /* 98 */
3644 /***/ (function(module, exports, __webpack_require__) {
3645
3646 var ctx = __webpack_require__(31);
3647 var call = __webpack_require__(140);
3648 var isArrayIter = __webpack_require__(141);
3649 var anObject = __webpack_require__(12);
3650 var toLength = __webpack_require__(74);
3651 var getIterFn = __webpack_require__(119);
3652 var BREAK = {};
3653 var RETURN = {};
3654 var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
3655 var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
3656 var f = ctx(fn, that, entries ? 2 : 1);
3657 var index = 0;
3658 var length, step, iterator, result;
3659 if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
3660 // fast case for arrays with default iterator
3661 if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
3662 result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
3663 if (result === BREAK || result === RETURN) return result;
3664 } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
3665 result = call(iterator, f, step.value, entries);
3666 if (result === BREAK || result === RETURN) return result;
3667 }
3668 };
3669 exports.BREAK = BREAK;
3670 exports.RETURN = RETURN;
3671
3672
3673 /***/ }),
3674 /* 99 */
3675 /***/ (function(module, exports) {
3676
3677 module.exports = function (bitmap, value) {
3678 return {
3679 enumerable: !(bitmap & 1),
3680 configurable: !(bitmap & 2),
3681 writable: !(bitmap & 4),
3682 value: value
3683 };
3684 };
3685
3686
3687 /***/ }),
3688 /* 100 */
3689 /***/ (function(module, exports, __webpack_require__) {
3690
3691 // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
3692 var $keys = __webpack_require__(115);
3693 var hiddenKeys = __webpack_require__(76).concat('length', 'prototype');
3694
3695 exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
3696 return $keys(O, hiddenKeys);
3697 };
3698
3699
3700 /***/ }),
3701 /* 101 */
3702 /***/ (function(module, exports) {
3703
3704
3705
3706 /***/ }),
3707 /* 102 */
3708 /***/ (function(module, exports, __webpack_require__) {
3709
3710 // to indexed object, toObject with fallback for non-array-like ES3 strings
3711 var IObject = __webpack_require__(124);
3712 var defined = __webpack_require__(41);
3713 module.exports = function (it) {
3714 return IObject(defined(it));
3715 };
3716
3717
3718 /***/ }),
3719 /* 103 */
3720 /***/ (function(module, exports, __webpack_require__) {
3721
3722 "use strict";
3723
3724 // 21.2.5.3 get RegExp.prototype.flags
3725 var anObject = __webpack_require__(18);
3726 module.exports = function () {
3727 var that = anObject(this);
3728 var result = '';
3729 if (that.global) result += 'g';
3730 if (that.ignoreCase) result += 'i';
3731 if (that.multiline) result += 'm';
3732 if (that.unicode) result += 'u';
3733 if (that.sticky) result += 'y';
3734 return result;
3735 };
3736
3737
3738 /***/ }),
3739 /* 104 */
3740 /***/ (function(module, exports, __webpack_require__) {
3741
3742 // fallback for non-array-like ES3 and non-enumerable old V8 strings
3743 var cof = __webpack_require__(55);
3744 // eslint-disable-next-line no-prototype-builtins
3745 module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
3746 return cof(it) == 'String' ? it.split('') : Object(it);
3747 };
3748
3749
3750 /***/ }),
3751 /* 105 */
3752 /***/ (function(module, exports, __webpack_require__) {
3753
3754 module.exports = __webpack_require__(167);
3755
3756 /***/ }),
3757 /* 106 */
3758 /***/ (function(module, exports, __webpack_require__) {
3759
3760 "use strict";
3761
3762 var LIBRARY = __webpack_require__(46);
3763 var $export = __webpack_require__(7);
3764 var redefine = __webpack_require__(93);
3765 var hide = __webpack_require__(25);
3766 var Iterators = __webpack_require__(34);
3767 var $iterCreate = __webpack_require__(173);
3768 var setToStringTag = __webpack_require__(54);
3769 var getPrototypeOf = __webpack_require__(64);
3770 var ITERATOR = __webpack_require__(10)('iterator');
3771 var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
3772 var FF_ITERATOR = '@@iterator';
3773 var KEYS = 'keys';
3774 var VALUES = 'values';
3775
3776 var returnThis = function () { return this; };
3777
3778 module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
3779 $iterCreate(Constructor, NAME, next);
3780 var getMethod = function (kind) {
3781 if (!BUGGY && kind in proto) return proto[kind];
3782 switch (kind) {
3783 case KEYS: return function keys() { return new Constructor(this, kind); };
3784 case VALUES: return function values() { return new Constructor(this, kind); };
3785 } return function entries() { return new Constructor(this, kind); };
3786 };
3787 var TAG = NAME + ' Iterator';
3788 var DEF_VALUES = DEFAULT == VALUES;
3789 var VALUES_BUG = false;
3790 var proto = Base.prototype;
3791 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
3792 var $default = $native || getMethod(DEFAULT);
3793 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
3794 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
3795 var methods, key, IteratorPrototype;
3796 // Fix native
3797 if ($anyNative) {
3798 IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
3799 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
3800 // Set @@toStringTag to native iterators
3801 setToStringTag(IteratorPrototype, TAG, true);
3802 // fix for some old engines
3803 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
3804 }
3805 }
3806 // fix Array#{values, @@iterator}.name in V8 / FF
3807 if (DEF_VALUES && $native && $native.name !== VALUES) {
3808 VALUES_BUG = true;
3809 $default = function values() { return $native.call(this); };
3810 }
3811 // Define iterator
3812 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
3813 hide(proto, ITERATOR, $default);
3814 }
3815 // Plug for library
3816 Iterators[NAME] = $default;
3817 Iterators[TAG] = returnThis;
3818 if (DEFAULT) {
3819 methods = {
3820 values: DEF_VALUES ? $default : getMethod(VALUES),
3821 keys: IS_SET ? $default : getMethod(KEYS),
3822 entries: $entries
3823 };
3824 if (FORCED) for (key in methods) {
3825 if (!(key in proto)) redefine(proto, key, methods[key]);
3826 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
3827 }
3828 return methods;
3829 };
3830
3831
3832 /***/ }),
3833 /* 107 */
3834 /***/ (function(module, exports, __webpack_require__) {
3835
3836 var isObject = __webpack_require__(29);
3837 var document = __webpack_require__(17).document;
3838 // typeof document.createElement is 'object' in old IE
3839 var is = isObject(document) && isObject(document.createElement);
3840 module.exports = function (it) {
3841 return is ? document.createElement(it) : {};
3842 };
3843
3844
3845 /***/ }),
3846 /* 108 */
3847 /***/ (function(module, exports, __webpack_require__) {
3848
3849 "use strict";
3850
3851 var at = __webpack_require__(137)(true);
3852
3853 // `AdvanceStringIndex` abstract operation
3854 // https://tc39.github.io/ecma262/#sec-advancestringindex
3855 module.exports = function (S, index, unicode) {
3856 return index + (unicode ? at(S, index).length : 1);
3857 };
3858
3859
3860 /***/ }),
3861 /* 109 */
3862 /***/ (function(module, exports) {
3863
3864 module.exports = false;
3865
3866
3867 /***/ }),
3868 /* 110 */
3869 /***/ (function(module, exports, __webpack_require__) {
3870
3871 var arrayWithHoles = __webpack_require__(257);
3872
3873 var iterableToArrayLimit = __webpack_require__(258);
3874
3875 var unsupportedIterableToArray = __webpack_require__(197);
3876
3877 var nonIterableRest = __webpack_require__(261);
3878
3879 function _slicedToArray(arr, i) {
3880 return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
3881 }
3882
3883 module.exports = _slicedToArray;
3884
3885 /***/ }),
3886 /* 111 */
3887 /***/ (function(module, exports, __webpack_require__) {
3888
3889 module.exports = __webpack_require__(176);
3890
3891 /***/ }),
3892 /* 112 */
3893 /***/ (function(module, exports, __webpack_require__) {
3894
3895 // getting tag from 19.1.3.6 Object.prototype.toString()
3896 var cof = __webpack_require__(45);
3897 var TAG = __webpack_require__(11)('toStringTag');
3898 // ES3 wrong here
3899 var ARG = cof(function () { return arguments; }()) == 'Arguments';
3900
3901 // fallback for IE11 Script Access Denied error
3902 var tryGet = function (it, key) {
3903 try {
3904 return it[key];
3905 } catch (e) { /* empty */ }
3906 };
3907
3908 module.exports = function (it) {
3909 var O, T, B;
3910 return it === undefined ? 'Undefined' : it === null ? 'Null'
3911 // @@toStringTag case
3912 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
3913 // builtinTag case
3914 : ARG ? cof(O)
3915 // ES3 arguments fallback
3916 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
3917 };
3918
3919
3920 /***/ }),
3921 /* 113 */
3922 /***/ (function(module, exports, __webpack_require__) {
3923
3924 module.exports = !__webpack_require__(14) && !__webpack_require__(22)(function () {
3925 return Object.defineProperty(__webpack_require__(90)('div'), 'a', { get: function () { return 7; } }).a != 7;
3926 });
3927
3928
3929 /***/ }),
3930 /* 114 */
3931 /***/ (function(module, exports, __webpack_require__) {
3932
3933 module.exports = __webpack_require__(160);
3934
3935 /***/ }),
3936 /* 115 */
3937 /***/ (function(module, exports, __webpack_require__) {
3938
3939 var has = __webpack_require__(19);
3940 var toIObject = __webpack_require__(21);
3941 var arrayIndexOf = __webpack_require__(165)(false);
3942 var IE_PROTO = __webpack_require__(72)('IE_PROTO');
3943
3944 module.exports = function (object, names) {
3945 var O = toIObject(object);
3946 var i = 0;
3947 var result = [];
3948 var key;
3949 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
3950 // Don't enum bug & hidden keys
3951 while (names.length > i) if (has(O, key = names[i++])) {
3952 ~arrayIndexOf(result, key) || result.push(key);
3953 }
3954 return result;
3955 };
3956
3957
3958 /***/ }),
3959 /* 116 */
3960 /***/ (function(module, exports, __webpack_require__) {
3961
3962 "use strict";
3963
3964 var addToUnscopables = __webpack_require__(91);
3965 var step = __webpack_require__(235);
3966 var Iterators = __webpack_require__(117);
3967 var toIObject = __webpack_require__(102);
3968
3969 // 22.1.3.4 Array.prototype.entries()
3970 // 22.1.3.13 Array.prototype.keys()
3971 // 22.1.3.29 Array.prototype.values()
3972 // 22.1.3.30 Array.prototype[@@iterator]()
3973 module.exports = __webpack_require__(193)(Array, 'Array', function (iterated, kind) {
3974 this._t = toIObject(iterated); // target
3975 this._i = 0; // next index
3976 this._k = kind; // kind
3977 // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
3978 }, function () {
3979 var O = this._t;
3980 var kind = this._k;
3981 var index = this._i++;
3982 if (!O || index >= O.length) {
3983 this._t = undefined;
3984 return step(1);
3985 }
3986 if (kind == 'keys') return step(0, index);
3987 if (kind == 'values') return step(0, O[index]);
3988 return step(0, [index, O[index]]);
3989 }, 'values');
3990
3991 // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
3992 Iterators.Arguments = Iterators.Array;
3993
3994 addToUnscopables('keys');
3995 addToUnscopables('values');
3996 addToUnscopables('entries');
3997
3998
3999 /***/ }),
4000 /* 117 */
4001 /***/ (function(module, exports) {
4002
4003 module.exports = {};
4004
4005
4006 /***/ }),
4007 /* 118 */,
4008 /* 119 */
4009 /***/ (function(module, exports, __webpack_require__) {
4010
4011 var classof = __webpack_require__(97);
4012 var ITERATOR = __webpack_require__(10)('iterator');
4013 var Iterators = __webpack_require__(34);
4014 module.exports = __webpack_require__(6).getIteratorMethod = function (it) {
4015 if (it != undefined) return it[ITERATOR]
4016 || it['@@iterator']
4017 || Iterators[classof(it)];
4018 };
4019
4020
4021 /***/ }),
4022 /* 120 */
4023 /***/ (function(module, exports, __webpack_require__) {
4024
4025 // 7.2.8 IsRegExp(argument)
4026 var isObject = __webpack_require__(29);
4027 var cof = __webpack_require__(45);
4028 var MATCH = __webpack_require__(11)('match');
4029 module.exports = function (it) {
4030 var isRegExp;
4031 return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
4032 };
4033
4034
4035 /***/ }),
4036 /* 121 */
4037 /***/ (function(module, exports, __webpack_require__) {
4038
4039 // 7.1.1 ToPrimitive(input [, PreferredType])
4040 var isObject = __webpack_require__(29);
4041 // instead of the ES6 spec version, we didn't implement @@toPrimitive case
4042 // and the second argument - flag - preferred type is a string
4043 module.exports = function (it, S) {
4044 if (!isObject(it)) return it;
4045 var fn, val;
4046 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
4047 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
4048 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
4049 throw TypeError("Can't convert object to primitive value");
4050 };
4051
4052
4053 /***/ }),
4054 /* 122 */,
4055 /* 123 */,
4056 /* 124 */
4057 /***/ (function(module, exports, __webpack_require__) {
4058
4059 // fallback for non-array-like ES3 and non-enumerable old V8 strings
4060 var cof = __webpack_require__(45);
4061 // eslint-disable-next-line no-prototype-builtins
4062 module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
4063 return cof(it) == 'String' ? it.split('') : Object(it);
4064 };
4065
4066
4067 /***/ }),
4068 /* 125 */
4069 /***/ (function(module, exports, __webpack_require__) {
4070
4071 module.exports = !__webpack_require__(27) && !__webpack_require__(33)(function () {
4072 return Object.defineProperty(__webpack_require__(107)('div'), 'a', { get: function () { return 7; } }).a != 7;
4073 });
4074
4075
4076 /***/ }),
4077 /* 126 */
4078 /***/ (function(module, exports, __webpack_require__) {
4079
4080 module.exports = __webpack_require__(187);
4081
4082 /***/ }),
4083 /* 127 */
4084 /***/ (function(module, exports, __webpack_require__) {
4085
4086 var shared = __webpack_require__(66)('keys');
4087 var uid = __webpack_require__(67);
4088 module.exports = function (key) {
4089 return shared[key] || (shared[key] = uid(key));
4090 };
4091
4092
4093 /***/ }),
4094 /* 128 */
4095 /***/ (function(module, exports, __webpack_require__) {
4096
4097 var document = __webpack_require__(8).document;
4098 module.exports = document && document.documentElement;
4099
4100
4101 /***/ }),
4102 /* 129 */
4103 /***/ (function(module, exports) {
4104
4105 // fast apply, http://jsperf.lnkit.com/fast-apply/5
4106 module.exports = function (fn, args, that) {
4107 var un = that === undefined;
4108 switch (args.length) {
4109 case 0: return un ? fn()
4110 : fn.call(that);
4111 case 1: return un ? fn(args[0])
4112 : fn.call(that, args[0]);
4113 case 2: return un ? fn(args[0], args[1])
4114 : fn.call(that, args[0], args[1]);
4115 case 3: return un ? fn(args[0], args[1], args[2])
4116 : fn.call(that, args[0], args[1], args[2]);
4117 case 4: return un ? fn(args[0], args[1], args[2], args[3])
4118 : fn.call(that, args[0], args[1], args[2], args[3]);
4119 } return fn.apply(that, args);
4120 };
4121
4122
4123 /***/ }),
4124 /* 130 */
4125 /***/ (function(module, exports, __webpack_require__) {
4126
4127 module.exports = __webpack_require__(249);
4128
4129 /***/ }),
4130 /* 131 */
4131 /***/ (function(module, exports) {
4132
4133 module.exports = function (it, Constructor, name, forbiddenField) {
4134 if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
4135 throw TypeError(name + ': incorrect invocation!');
4136 } return it;
4137 };
4138
4139
4140 /***/ }),
4141 /* 132 */
4142 /***/ (function(module, exports, __webpack_require__) {
4143
4144 var hide = __webpack_require__(25);
4145 module.exports = function (target, src, safe) {
4146 for (var key in src) {
4147 if (safe && target[key]) target[key] = src[key];
4148 else hide(target, key, src[key]);
4149 } return target;
4150 };
4151
4152
4153 /***/ }),
4154 /* 133 */
4155 /***/ (function(module, exports, __webpack_require__) {
4156
4157 var isObject = __webpack_require__(9);
4158 module.exports = function (it, TYPE) {
4159 if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
4160 return it;
4161 };
4162
4163
4164 /***/ }),
4165 /* 134 */
4166 /***/ (function(module, exports, __webpack_require__) {
4167
4168 var _Object$setPrototypeOf = __webpack_require__(114);
4169
4170 function _setPrototypeOf(o, p) {
4171 module.exports = _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) {
4172 o.__proto__ = p;
4173 return o;
4174 };
4175
4176 return _setPrototypeOf(o, p);
4177 }
4178
4179 module.exports = _setPrototypeOf;
4180
4181 /***/ }),
4182 /* 135 */
4183 /***/ (function(module, exports, __webpack_require__) {
4184
4185 module.exports = __webpack_require__(163);
4186
4187 /***/ }),
4188 /* 136 */
4189 /***/ (function(module, exports, __webpack_require__) {
4190
4191 var dP = __webpack_require__(15);
4192 var anObject = __webpack_require__(12);
4193 var getKeys = __webpack_require__(40);
4194
4195 module.exports = __webpack_require__(14) ? Object.defineProperties : function defineProperties(O, Properties) {
4196 anObject(O);
4197 var keys = getKeys(Properties);
4198 var length = keys.length;
4199 var i = 0;
4200 var P;
4201 while (length > i) dP.f(O, P = keys[i++], Properties[P]);
4202 return O;
4203 };
4204
4205
4206 /***/ }),
4207 /* 137 */
4208 /***/ (function(module, exports, __webpack_require__) {
4209
4210 var toInteger = __webpack_require__(59);
4211 var defined = __webpack_require__(41);
4212 // true -> String#at
4213 // false -> String#codePointAt
4214 module.exports = function (TO_STRING) {
4215 return function (that, pos) {
4216 var s = String(defined(that));
4217 var i = toInteger(pos);
4218 var l = s.length;
4219 var a, b;
4220 if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
4221 a = s.charCodeAt(i);
4222 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
4223 ? TO_STRING ? s.charAt(i) : a
4224 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
4225 };
4226 };
4227
4228
4229 /***/ }),
4230 /* 138 */
4231 /***/ (function(module, exports, __webpack_require__) {
4232
4233 module.exports = __webpack_require__(66)('native-function-to-string', Function.toString);
4234
4235
4236 /***/ }),
4237 /* 139 */
4238 /***/ (function(module, exports, __webpack_require__) {
4239
4240 "use strict";
4241
4242 // ECMAScript 6 symbols shim
4243 var global = __webpack_require__(8);
4244 var has = __webpack_require__(19);
4245 var DESCRIPTORS = __webpack_require__(14);
4246 var $export = __webpack_require__(7);
4247 var redefine = __webpack_require__(93);
4248 var META = __webpack_require__(81).KEY;
4249 var $fails = __webpack_require__(22);
4250 var shared = __webpack_require__(73);
4251 var setToStringTag = __webpack_require__(54);
4252 var uid = __webpack_require__(57);
4253 var wks = __webpack_require__(10);
4254 var wksExt = __webpack_require__(63);
4255 var wksDefine = __webpack_require__(77);
4256 var enumKeys = __webpack_require__(177);
4257 var isArray = __webpack_require__(96);
4258 var anObject = __webpack_require__(12);
4259 var isObject = __webpack_require__(9);
4260 var toObject = __webpack_require__(32);
4261 var toIObject = __webpack_require__(21);
4262 var toPrimitive = __webpack_require__(71);
4263 var createDesc = __webpack_require__(43);
4264 var _create = __webpack_require__(50);
4265 var gOPNExt = __webpack_require__(178);
4266 var $GOPD = __webpack_require__(53);
4267 var $GOPS = __webpack_require__(78);
4268 var $DP = __webpack_require__(15);
4269 var $keys = __webpack_require__(40);
4270 var gOPD = $GOPD.f;
4271 var dP = $DP.f;
4272 var gOPN = gOPNExt.f;
4273 var $Symbol = global.Symbol;
4274 var $JSON = global.JSON;
4275 var _stringify = $JSON && $JSON.stringify;
4276 var PROTOTYPE = 'prototype';
4277 var HIDDEN = wks('_hidden');
4278 var TO_PRIMITIVE = wks('toPrimitive');
4279 var isEnum = {}.propertyIsEnumerable;
4280 var SymbolRegistry = shared('symbol-registry');
4281 var AllSymbols = shared('symbols');
4282 var OPSymbols = shared('op-symbols');
4283 var ObjectProto = Object[PROTOTYPE];
4284 var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
4285 var QObject = global.QObject;
4286 // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
4287 var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
4288
4289 // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
4290 var setSymbolDesc = DESCRIPTORS && $fails(function () {
4291 return _create(dP({}, 'a', {
4292 get: function () { return dP(this, 'a', { value: 7 }).a; }
4293 })).a != 7;
4294 }) ? function (it, key, D) {
4295 var protoDesc = gOPD(ObjectProto, key);
4296 if (protoDesc) delete ObjectProto[key];
4297 dP(it, key, D);
4298 if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
4299 } : dP;
4300
4301 var wrap = function (tag) {
4302 var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
4303 sym._k = tag;
4304 return sym;
4305 };
4306
4307 var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
4308 return typeof it == 'symbol';
4309 } : function (it) {
4310 return it instanceof $Symbol;
4311 };
4312
4313 var $defineProperty = function defineProperty(it, key, D) {
4314 if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
4315 anObject(it);
4316 key = toPrimitive(key, true);
4317 anObject(D);
4318 if (has(AllSymbols, key)) {
4319 if (!D.enumerable) {
4320 if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
4321 it[HIDDEN][key] = true;
4322 } else {
4323 if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
4324 D = _create(D, { enumerable: createDesc(0, false) });
4325 } return setSymbolDesc(it, key, D);
4326 } return dP(it, key, D);
4327 };
4328 var $defineProperties = function defineProperties(it, P) {
4329 anObject(it);
4330 var keys = enumKeys(P = toIObject(P));
4331 var i = 0;
4332 var l = keys.length;
4333 var key;
4334 while (l > i) $defineProperty(it, key = keys[i++], P[key]);
4335 return it;
4336 };
4337 var $create = function create(it, P) {
4338 return P === undefined ? _create(it) : $defineProperties(_create(it), P);
4339 };
4340 var $propertyIsEnumerable = function propertyIsEnumerable(key) {
4341 var E = isEnum.call(this, key = toPrimitive(key, true));
4342 if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
4343 return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
4344 };
4345 var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
4346 it = toIObject(it);
4347 key = toPrimitive(key, true);
4348 if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
4349 var D = gOPD(it, key);
4350 if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
4351 return D;
4352 };
4353 var $getOwnPropertyNames = function getOwnPropertyNames(it) {
4354 var names = gOPN(toIObject(it));
4355 var result = [];
4356 var i = 0;
4357 var key;
4358 while (names.length > i) {
4359 if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
4360 } return result;
4361 };
4362 var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
4363 var IS_OP = it === ObjectProto;
4364 var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
4365 var result = [];
4366 var i = 0;
4367 var key;
4368 while (names.length > i) {
4369 if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
4370 } return result;
4371 };
4372
4373 // 19.4.1.1 Symbol([description])
4374 if (!USE_NATIVE) {
4375 $Symbol = function Symbol() {
4376 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
4377 var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
4378 var $set = function (value) {
4379 if (this === ObjectProto) $set.call(OPSymbols, value);
4380 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
4381 setSymbolDesc(this, tag, createDesc(1, value));
4382 };
4383 if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
4384 return wrap(tag);
4385 };
4386 redefine($Symbol[PROTOTYPE], 'toString', function toString() {
4387 return this._k;
4388 });
4389
4390 $GOPD.f = $getOwnPropertyDescriptor;
4391 $DP.f = $defineProperty;
4392 __webpack_require__(100).f = gOPNExt.f = $getOwnPropertyNames;
4393 __webpack_require__(49).f = $propertyIsEnumerable;
4394 $GOPS.f = $getOwnPropertySymbols;
4395
4396 if (DESCRIPTORS && !__webpack_require__(46)) {
4397 redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
4398 }
4399
4400 wksExt.f = function (name) {
4401 return wrap(wks(name));
4402 };
4403 }
4404
4405 $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
4406
4407 for (var es6Symbols = (
4408 // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
4409 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
4410 ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
4411
4412 for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
4413
4414 $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
4415 // 19.4.2.1 Symbol.for(key)
4416 'for': function (key) {
4417 return has(SymbolRegistry, key += '')
4418 ? SymbolRegistry[key]
4419 : SymbolRegistry[key] = $Symbol(key);
4420 },
4421 // 19.4.2.5 Symbol.keyFor(sym)
4422 keyFor: function keyFor(sym) {
4423 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
4424 for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
4425 },
4426 useSetter: function () { setter = true; },
4427 useSimple: function () { setter = false; }
4428 });
4429
4430 $export($export.S + $export.F * !USE_NATIVE, 'Object', {
4431 // 19.1.2.2 Object.create(O [, Properties])
4432 create: $create,
4433 // 19.1.2.4 Object.defineProperty(O, P, Attributes)
4434 defineProperty: $defineProperty,
4435 // 19.1.2.3 Object.defineProperties(O, Properties)
4436 defineProperties: $defineProperties,
4437 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
4438 getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
4439 // 19.1.2.7 Object.getOwnPropertyNames(O)
4440 getOwnPropertyNames: $getOwnPropertyNames,
4441 // 19.1.2.8 Object.getOwnPropertySymbols(O)
4442 getOwnPropertySymbols: $getOwnPropertySymbols
4443 });
4444
4445 // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
4446 // https://bugs.chromium.org/p/v8/issues/detail?id=3443
4447 var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
4448
4449 $export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
4450 getOwnPropertySymbols: function getOwnPropertySymbols(it) {
4451 return $GOPS.f(toObject(it));
4452 }
4453 });
4454
4455 // 24.3.2 JSON.stringify(value [, replacer [, space]])
4456 $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
4457 var S = $Symbol();
4458 // MS Edge converts symbol values to JSON as {}
4459 // WebKit converts symbol values to JSON as null
4460 // V8 throws on boxed symbols
4461 return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
4462 })), 'JSON', {
4463 stringify: function stringify(it) {
4464 var args = [it];
4465 var i = 1;
4466 var replacer, $replacer;
4467 while (arguments.length > i) args.push(arguments[i++]);
4468 $replacer = replacer = args[1];
4469 if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
4470 if (!isArray(replacer)) replacer = function (key, value) {
4471 if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
4472 if (!isSymbol(value)) return value;
4473 };
4474 args[1] = replacer;
4475 return _stringify.apply($JSON, args);
4476 }
4477 });
4478
4479 // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
4480 $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(25)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
4481 // 19.4.3.5 Symbol.prototype[@@toStringTag]
4482 setToStringTag($Symbol, 'Symbol');
4483 // 20.2.1.9 Math[@@toStringTag]
4484 setToStringTag(Math, 'Math', true);
4485 // 24.3.3 JSON[@@toStringTag]
4486 setToStringTag(global.JSON, 'JSON', true);
4487
4488
4489 /***/ }),
4490 /* 140 */
4491 /***/ (function(module, exports, __webpack_require__) {
4492
4493 // call something on iterator step with safe closing on error
4494 var anObject = __webpack_require__(12);
4495 module.exports = function (iterator, fn, value, entries) {
4496 try {
4497 return entries ? fn(anObject(value)[0], value[1]) : fn(value);
4498 // 7.4.6 IteratorClose(iterator, completion)
4499 } catch (e) {
4500 var ret = iterator['return'];
4501 if (ret !== undefined) anObject(ret.call(iterator));
4502 throw e;
4503 }
4504 };
4505
4506
4507 /***/ }),
4508 /* 141 */
4509 /***/ (function(module, exports, __webpack_require__) {
4510
4511 // check on default Array iterator
4512 var Iterators = __webpack_require__(34);
4513 var ITERATOR = __webpack_require__(10)('iterator');
4514 var ArrayProto = Array.prototype;
4515
4516 module.exports = function (it) {
4517 return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
4518 };
4519
4520
4521 /***/ }),
4522 /* 142 */
4523 /***/ (function(module, exports, __webpack_require__) {
4524
4525 "use strict";
4526
4527 // 25.4.1.5 NewPromiseCapability(C)
4528 var aFunction = __webpack_require__(38);
4529
4530 function PromiseCapability(C) {
4531 var resolve, reject;
4532 this.promise = new C(function ($$resolve, $$reject) {
4533 if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
4534 resolve = $$resolve;
4535 reject = $$reject;
4536 });
4537 this.resolve = aFunction(resolve);
4538 this.reject = aFunction(reject);
4539 }
4540
4541 module.exports.f = function (C) {
4542 return new PromiseCapability(C);
4543 };
4544
4545
4546 /***/ }),
4547 /* 143 */
4548 /***/ (function(module, exports, __webpack_require__) {
4549
4550 var $iterators = __webpack_require__(116);
4551 var getKeys = __webpack_require__(183);
4552 var redefine = __webpack_require__(35);
4553 var global = __webpack_require__(17);
4554 var hide = __webpack_require__(30);
4555 var Iterators = __webpack_require__(117);
4556 var wks = __webpack_require__(11);
4557 var ITERATOR = wks('iterator');
4558 var TO_STRING_TAG = wks('toStringTag');
4559 var ArrayValues = Iterators.Array;
4560
4561 var DOMIterables = {
4562 CSSRuleList: true, // TODO: Not spec compliant, should be false.
4563 CSSStyleDeclaration: false,
4564 CSSValueList: false,
4565 ClientRectList: false,
4566 DOMRectList: false,
4567 DOMStringList: false,
4568 DOMTokenList: true,
4569 DataTransferItemList: false,
4570 FileList: false,
4571 HTMLAllCollection: false,
4572 HTMLCollection: false,
4573 HTMLFormElement: false,
4574 HTMLSelectElement: false,
4575 MediaList: true, // TODO: Not spec compliant, should be false.
4576 MimeTypeArray: false,
4577 NamedNodeMap: false,
4578 NodeList: true,
4579 PaintRequestList: false,
4580 Plugin: false,
4581 PluginArray: false,
4582 SVGLengthList: false,
4583 SVGNumberList: false,
4584 SVGPathSegList: false,
4585 SVGPointList: false,
4586 SVGStringList: false,
4587 SVGTransformList: false,
4588 SourceBufferList: false,
4589 StyleSheetList: true, // TODO: Not spec compliant, should be false.
4590 TextTrackCueList: false,
4591 TextTrackList: false,
4592 TouchList: false
4593 };
4594
4595 for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
4596 var NAME = collections[i];
4597 var explicit = DOMIterables[NAME];
4598 var Collection = global[NAME];
4599 var proto = Collection && Collection.prototype;
4600 var key;
4601 if (proto) {
4602 if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
4603 if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
4604 Iterators[NAME] = ArrayValues;
4605 if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
4606 }
4607 }
4608
4609
4610 /***/ }),
4611 /* 144 */
4612 /***/ (function(module, exports) {
4613
4614 // IE 8- don't enum bug keys
4615 module.exports = (
4616 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
4617 ).split(',');
4618
4619
4620 /***/ }),
4621 /* 145 */
4622 /***/ (function(module, exports, __webpack_require__) {
4623
4624 var _Reflect$construct = __webpack_require__(105);
4625
4626 function _isNativeReflectConstruct() {
4627 if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
4628 if (_Reflect$construct.sham) return false;
4629 if (typeof Proxy === "function") return true;
4630
4631 try {
4632 Date.prototype.toString.call(_Reflect$construct(Date, [], function () {}));
4633 return true;
4634 } catch (e) {
4635 return false;
4636 }
4637 }
4638
4639 module.exports = _isNativeReflectConstruct;
4640
4641 /***/ }),
4642 /* 146 */
4643 /***/ (function(module, exports) {
4644
4645 module.exports = function (done, value) {
4646 return { value: value, done: !!done };
4647 };
4648
4649
4650 /***/ }),
4651 /* 147 */
4652 /***/ (function(module, exports, __webpack_require__) {
4653
4654 module.exports = __webpack_require__(287);
4655
4656 /***/ }),
4657 /* 148 */
4658 /***/ (function(module, exports, __webpack_require__) {
4659
4660 "use strict";
4661
4662 // https://github.com/tc39/Array.prototype.includes
4663 var $export = __webpack_require__(37);
4664 var $includes = __webpack_require__(151)(true);
4665
4666 $export($export.P, 'Array', {
4667 includes: function includes(el /* , fromIndex = 0 */) {
4668 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
4669 }
4670 });
4671
4672 __webpack_require__(91)('includes');
4673
4674
4675 /***/ }),
4676 /* 149 */
4677 /***/ (function(module, exports, __webpack_require__) {
4678
4679 module.exports = __webpack_require__(171);
4680
4681 /***/ }),
4682 /* 150 */
4683 /***/ (function(module, exports, __webpack_require__) {
4684
4685 var ITERATOR = __webpack_require__(10)('iterator');
4686 var SAFE_CLOSING = false;
4687
4688 try {
4689 var riter = [7][ITERATOR]();
4690 riter['return'] = function () { SAFE_CLOSING = true; };
4691 // eslint-disable-next-line no-throw-literal
4692 Array.from(riter, function () { throw 2; });
4693 } catch (e) { /* empty */ }
4694
4695 module.exports = function (exec, skipClosing) {
4696 if (!skipClosing && !SAFE_CLOSING) return false;
4697 var safe = false;
4698 try {
4699 var arr = [7];
4700 var iter = arr[ITERATOR]();
4701 iter.next = function () { return { done: safe = true }; };
4702 arr[ITERATOR] = function () { return iter; };
4703 exec(arr);
4704 } catch (e) { /* empty */ }
4705 return safe;
4706 };
4707
4708
4709 /***/ }),
4710 /* 151 */
4711 /***/ (function(module, exports, __webpack_require__) {
4712
4713 // false -> Array#indexOf
4714 // true -> Array#includes
4715 var toIObject = __webpack_require__(102);
4716 var toLength = __webpack_require__(42);
4717 var toAbsoluteIndex = __webpack_require__(212);
4718 module.exports = function (IS_INCLUDES) {
4719 return function ($this, el, fromIndex) {
4720 var O = toIObject($this);
4721 var length = toLength(O.length);
4722 var index = toAbsoluteIndex(fromIndex, length);
4723 var value;
4724 // Array#includes uses SameValueZero equality algorithm
4725 // eslint-disable-next-line no-self-compare
4726 if (IS_INCLUDES && el != el) while (length > index) {
4727 value = O[index++];
4728 // eslint-disable-next-line no-self-compare
4729 if (value != value) return true;
4730 // Array#indexOf ignores holes, Array#includes - not
4731 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
4732 if (O[index] === el) return IS_INCLUDES || index || 0;
4733 } return !IS_INCLUDES && -1;
4734 };
4735 };
4736
4737
4738 /***/ }),
4739 /* 152 */
4740 /***/ (function(module, exports, __webpack_require__) {
4741
4742 var def = __webpack_require__(44).f;
4743 var has = __webpack_require__(61);
4744 var TAG = __webpack_require__(11)('toStringTag');
4745
4746 module.exports = function (it, tag, stat) {
4747 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
4748 };
4749
4750
4751 /***/ }),
4752 /* 153 */
4753 /***/ (function(module, exports, __webpack_require__) {
4754
4755 // 0 -> Array#forEach
4756 // 1 -> Array#map
4757 // 2 -> Array#filter
4758 // 3 -> Array#some
4759 // 4 -> Array#every
4760 // 5 -> Array#find
4761 // 6 -> Array#findIndex
4762 var ctx = __webpack_require__(31);
4763 var IObject = __webpack_require__(104);
4764 var toObject = __webpack_require__(32);
4765 var toLength = __webpack_require__(74);
4766 var asc = __webpack_require__(255);
4767 module.exports = function (TYPE, $create) {
4768 var IS_MAP = TYPE == 1;
4769 var IS_FILTER = TYPE == 2;
4770 var IS_SOME = TYPE == 3;
4771 var IS_EVERY = TYPE == 4;
4772 var IS_FIND_INDEX = TYPE == 6;
4773 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
4774 var create = $create || asc;
4775 return function ($this, callbackfn, that) {
4776 var O = toObject($this);
4777 var self = IObject(O);
4778 var f = ctx(callbackfn, that, 3);
4779 var length = toLength(self.length);
4780 var index = 0;
4781 var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
4782 var val, res;
4783 for (;length > index; index++) if (NO_HOLES || index in self) {
4784 val = self[index];
4785 res = f(val, index, O);
4786 if (TYPE) {
4787 if (IS_MAP) result[index] = res; // map
4788 else if (res) switch (TYPE) {
4789 case 3: return true; // some
4790 case 5: return val; // find
4791 case 6: return index; // findIndex
4792 case 2: result.push(val); // filter
4793 } else if (IS_EVERY) return false; // every
4794 }
4795 }
4796 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
4797 };
4798 };
4799
4800
4801 /***/ }),
4802 /* 154 */
4803 /***/ (function(module, exports, __webpack_require__) {
4804
4805 // 7.3.20 SpeciesConstructor(O, defaultConstructor)
4806 var anObject = __webpack_require__(18);
4807 var aFunction = __webpack_require__(89);
4808 var SPECIES = __webpack_require__(11)('species');
4809 module.exports = function (O, D) {
4810 var C = anObject(O).constructor;
4811 var S;
4812 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
4813 };
4814
4815
4816 /***/ }),
4817 /* 155 */
4818 /***/ (function(module, exports, __webpack_require__) {
4819
4820 __webpack_require__(156);
4821 var $Object = __webpack_require__(6).Object;
4822 module.exports = function defineProperty(it, key, desc) {
4823 return $Object.defineProperty(it, key, desc);
4824 };
4825
4826
4827 /***/ }),
4828 /* 156 */
4829 /***/ (function(module, exports, __webpack_require__) {
4830
4831 var $export = __webpack_require__(7);
4832 // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
4833 $export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperty: __webpack_require__(15).f });
4834
4835
4836 /***/ }),
4837 /* 157 */
4838 /***/ (function(module, exports, __webpack_require__) {
4839
4840 module.exports = __webpack_require__(158);
4841
4842 /***/ }),
4843 /* 158 */
4844 /***/ (function(module, exports, __webpack_require__) {
4845
4846 __webpack_require__(159);
4847 module.exports = __webpack_require__(6).Object.getPrototypeOf;
4848
4849
4850 /***/ }),
4851 /* 159 */
4852 /***/ (function(module, exports, __webpack_require__) {
4853
4854 // 19.1.2.9 Object.getPrototypeOf(O)
4855 var toObject = __webpack_require__(32);
4856 var $getPrototypeOf = __webpack_require__(64);
4857
4858 __webpack_require__(84)('getPrototypeOf', function () {
4859 return function getPrototypeOf(it) {
4860 return $getPrototypeOf(toObject(it));
4861 };
4862 });
4863
4864
4865 /***/ }),
4866 /* 160 */
4867 /***/ (function(module, exports, __webpack_require__) {
4868
4869 __webpack_require__(161);
4870 module.exports = __webpack_require__(6).Object.setPrototypeOf;
4871
4872
4873 /***/ }),
4874 /* 161 */
4875 /***/ (function(module, exports, __webpack_require__) {
4876
4877 // 19.1.3.19 Object.setPrototypeOf(O, proto)
4878 var $export = __webpack_require__(7);
4879 $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(162).set });
4880
4881
4882 /***/ }),
4883 /* 162 */
4884 /***/ (function(module, exports, __webpack_require__) {
4885
4886 // Works with __proto__ only. Old v8 can't work with null proto objects.
4887 /* eslint-disable no-proto */
4888 var isObject = __webpack_require__(9);
4889 var anObject = __webpack_require__(12);
4890 var check = function (O, proto) {
4891 anObject(O);
4892 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
4893 };
4894 module.exports = {
4895 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
4896 function (test, buggy, set) {
4897 try {
4898 set = __webpack_require__(31)(Function.call, __webpack_require__(53).f(Object.prototype, '__proto__').set, 2);
4899 set(test, []);
4900 buggy = !(test instanceof Array);
4901 } catch (e) { buggy = true; }
4902 return function setPrototypeOf(O, proto) {
4903 check(O, proto);
4904 if (buggy) O.__proto__ = proto;
4905 else set(O, proto);
4906 return O;
4907 };
4908 }({}, false) : undefined),
4909 check: check
4910 };
4911
4912
4913 /***/ }),
4914 /* 163 */
4915 /***/ (function(module, exports, __webpack_require__) {
4916
4917 __webpack_require__(164);
4918 var $Object = __webpack_require__(6).Object;
4919 module.exports = function create(P, D) {
4920 return $Object.create(P, D);
4921 };
4922
4923
4924 /***/ }),
4925 /* 164 */
4926 /***/ (function(module, exports, __webpack_require__) {
4927
4928 var $export = __webpack_require__(7);
4929 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
4930 $export($export.S, 'Object', { create: __webpack_require__(50) });
4931
4932
4933 /***/ }),
4934 /* 165 */
4935 /***/ (function(module, exports, __webpack_require__) {
4936
4937 // false -> Array#indexOf
4938 // true -> Array#includes
4939 var toIObject = __webpack_require__(21);
4940 var toLength = __webpack_require__(74);
4941 var toAbsoluteIndex = __webpack_require__(166);
4942 module.exports = function (IS_INCLUDES) {
4943 return function ($this, el, fromIndex) {
4944 var O = toIObject($this);
4945 var length = toLength(O.length);
4946 var index = toAbsoluteIndex(fromIndex, length);
4947 var value;
4948 // Array#includes uses SameValueZero equality algorithm
4949 // eslint-disable-next-line no-self-compare
4950 if (IS_INCLUDES && el != el) while (length > index) {
4951 value = O[index++];
4952 // eslint-disable-next-line no-self-compare
4953 if (value != value) return true;
4954 // Array#indexOf ignores holes, Array#includes - not
4955 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
4956 if (O[index] === el) return IS_INCLUDES || index || 0;
4957 } return !IS_INCLUDES && -1;
4958 };
4959 };
4960
4961
4962 /***/ }),
4963 /* 166 */
4964 /***/ (function(module, exports, __webpack_require__) {
4965
4966 var toInteger = __webpack_require__(75);
4967 var max = Math.max;
4968 var min = Math.min;
4969 module.exports = function (index, length) {
4970 index = toInteger(index);
4971 return index < 0 ? max(index + length, 0) : min(index, length);
4972 };
4973
4974
4975 /***/ }),
4976 /* 167 */
4977 /***/ (function(module, exports, __webpack_require__) {
4978
4979 __webpack_require__(168);
4980 module.exports = __webpack_require__(6).Reflect.construct;
4981
4982
4983 /***/ }),
4984 /* 168 */
4985 /***/ (function(module, exports, __webpack_require__) {
4986
4987 // 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
4988 var $export = __webpack_require__(7);
4989 var create = __webpack_require__(50);
4990 var aFunction = __webpack_require__(38);
4991 var anObject = __webpack_require__(12);
4992 var isObject = __webpack_require__(9);
4993 var fails = __webpack_require__(22);
4994 var bind = __webpack_require__(169);
4995 var rConstruct = (__webpack_require__(8).Reflect || {}).construct;
4996
4997 // MS Edge supports only 2 arguments and argumentsList argument is optional
4998 // FF Nightly sets third argument as `new.target`, but does not create `this` from it
4999 var NEW_TARGET_BUG = fails(function () {
5000 function F() { /* empty */ }
5001 return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);
5002 });
5003 var ARGS_BUG = !fails(function () {
5004 rConstruct(function () { /* empty */ });
5005 });
5006
5007 $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
5008 construct: function construct(Target, args /* , newTarget */) {
5009 aFunction(Target);
5010 anObject(args);
5011 var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
5012 if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);
5013 if (Target == newTarget) {
5014 // w/o altered newTarget, optimization for 0-4 arguments
5015 switch (args.length) {
5016 case 0: return new Target();
5017 case 1: return new Target(args[0]);
5018 case 2: return new Target(args[0], args[1]);
5019 case 3: return new Target(args[0], args[1], args[2]);
5020 case 4: return new Target(args[0], args[1], args[2], args[3]);
5021 }
5022 // w/o altered newTarget, lot of arguments case
5023 var $args = [null];
5024 $args.push.apply($args, args);
5025 return new (bind.apply(Target, $args))();
5026 }
5027 // with altered newTarget, not support built-in constructors
5028 var proto = newTarget.prototype;
5029 var instance = create(isObject(proto) ? proto : Object.prototype);
5030 var result = Function.apply.call(Target, instance, args);
5031 return isObject(result) ? result : instance;
5032 }
5033 });
5034
5035
5036 /***/ }),
5037 /* 169 */
5038 /***/ (function(module, exports, __webpack_require__) {
5039
5040 "use strict";
5041
5042 var aFunction = __webpack_require__(38);
5043 var isObject = __webpack_require__(9);
5044 var invoke = __webpack_require__(129);
5045 var arraySlice = [].slice;
5046 var factories = {};
5047
5048 var construct = function (F, len, args) {
5049 if (!(len in factories)) {
5050 for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';
5051 // eslint-disable-next-line no-new-func
5052 factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
5053 } return factories[len](F, args);
5054 };
5055
5056 module.exports = Function.bind || function bind(that /* , ...args */) {
5057 var fn = aFunction(this);
5058 var partArgs = arraySlice.call(arguments, 1);
5059 var bound = function (/* args... */) {
5060 var args = partArgs.concat(arraySlice.call(arguments));
5061 return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
5062 };
5063 if (isObject(fn.prototype)) bound.prototype = fn.prototype;
5064 return bound;
5065 };
5066
5067
5068 /***/ }),
5069 /* 170 */
5070 /***/ (function(module, exports, __webpack_require__) {
5071
5072 var _typeof = __webpack_require__(48);
5073
5074 var assertThisInitialized = __webpack_require__(47);
5075
5076 function _possibleConstructorReturn(self, call) {
5077 if (call && (_typeof(call) === "object" || typeof call === "function")) {
5078 return call;
5079 }
5080
5081 return assertThisInitialized(self);
5082 }
5083
5084 module.exports = _possibleConstructorReturn;
5085
5086 /***/ }),
5087 /* 171 */
5088 /***/ (function(module, exports, __webpack_require__) {
5089
5090 __webpack_require__(60);
5091 __webpack_require__(62);
5092 module.exports = __webpack_require__(63).f('iterator');
5093
5094
5095 /***/ }),
5096 /* 172 */
5097 /***/ (function(module, exports, __webpack_require__) {
5098
5099 var toInteger = __webpack_require__(75);
5100 var defined = __webpack_require__(65);
5101 // true -> String#at
5102 // false -> String#codePointAt
5103 module.exports = function (TO_STRING) {
5104 return function (that, pos) {
5105 var s = String(defined(that));
5106 var i = toInteger(pos);
5107 var l = s.length;
5108 var a, b;
5109 if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
5110 a = s.charCodeAt(i);
5111 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
5112 ? TO_STRING ? s.charAt(i) : a
5113 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
5114 };
5115 };
5116
5117
5118 /***/ }),
5119 /* 173 */
5120 /***/ (function(module, exports, __webpack_require__) {
5121
5122 "use strict";
5123
5124 var create = __webpack_require__(50);
5125 var descriptor = __webpack_require__(43);
5126 var setToStringTag = __webpack_require__(54);
5127 var IteratorPrototype = {};
5128
5129 // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
5130 __webpack_require__(25)(IteratorPrototype, __webpack_require__(10)('iterator'), function () { return this; });
5131
5132 module.exports = function (Constructor, NAME, next) {
5133 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
5134 setToStringTag(Constructor, NAME + ' Iterator');
5135 };
5136
5137
5138 /***/ }),
5139 /* 174 */
5140 /***/ (function(module, exports, __webpack_require__) {
5141
5142 "use strict";
5143
5144 var addToUnscopables = __webpack_require__(175);
5145 var step = __webpack_require__(146);
5146 var Iterators = __webpack_require__(34);
5147 var toIObject = __webpack_require__(21);
5148
5149 // 22.1.3.4 Array.prototype.entries()
5150 // 22.1.3.13 Array.prototype.keys()
5151 // 22.1.3.29 Array.prototype.values()
5152 // 22.1.3.30 Array.prototype[@@iterator]()
5153 module.exports = __webpack_require__(106)(Array, 'Array', function (iterated, kind) {
5154 this._t = toIObject(iterated); // target
5155 this._i = 0; // next index
5156 this._k = kind; // kind
5157 // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
5158 }, function () {
5159 var O = this._t;
5160 var kind = this._k;
5161 var index = this._i++;
5162 if (!O || index >= O.length) {
5163 this._t = undefined;
5164 return step(1);
5165 }
5166 if (kind == 'keys') return step(0, index);
5167 if (kind == 'values') return step(0, O[index]);
5168 return step(0, [index, O[index]]);
5169 }, 'values');
5170
5171 // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
5172 Iterators.Arguments = Iterators.Array;
5173
5174 addToUnscopables('keys');
5175 addToUnscopables('values');
5176 addToUnscopables('entries');
5177
5178
5179 /***/ }),
5180 /* 175 */
5181 /***/ (function(module, exports) {
5182
5183 module.exports = function () { /* empty */ };
5184
5185
5186 /***/ }),
5187 /* 176 */
5188 /***/ (function(module, exports, __webpack_require__) {
5189
5190 __webpack_require__(139);
5191 __webpack_require__(101);
5192 __webpack_require__(179);
5193 __webpack_require__(180);
5194 module.exports = __webpack_require__(6).Symbol;
5195
5196
5197 /***/ }),
5198 /* 177 */
5199 /***/ (function(module, exports, __webpack_require__) {
5200
5201 // all enumerable object keys, includes symbols
5202 var getKeys = __webpack_require__(40);
5203 var gOPS = __webpack_require__(78);
5204 var pIE = __webpack_require__(49);
5205 module.exports = function (it) {
5206 var result = getKeys(it);
5207 var getSymbols = gOPS.f;
5208 if (getSymbols) {
5209 var symbols = getSymbols(it);
5210 var isEnum = pIE.f;
5211 var i = 0;
5212 var key;
5213 while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
5214 } return result;
5215 };
5216
5217
5218 /***/ }),
5219 /* 178 */
5220 /***/ (function(module, exports, __webpack_require__) {
5221
5222 // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
5223 var toIObject = __webpack_require__(21);
5224 var gOPN = __webpack_require__(100).f;
5225 var toString = {}.toString;
5226
5227 var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
5228 ? Object.getOwnPropertyNames(window) : [];
5229
5230 var getWindowNames = function (it) {
5231 try {
5232 return gOPN(it);
5233 } catch (e) {
5234 return windowNames.slice();
5235 }
5236 };
5237
5238 module.exports.f = function getOwnPropertyNames(it) {
5239 return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
5240 };
5241
5242
5243 /***/ }),
5244 /* 179 */
5245 /***/ (function(module, exports, __webpack_require__) {
5246
5247 __webpack_require__(77)('asyncIterator');
5248
5249
5250 /***/ }),
5251 /* 180 */
5252 /***/ (function(module, exports, __webpack_require__) {
5253
5254 __webpack_require__(77)('observable');
5255
5256
5257 /***/ }),
5258 /* 181 */
5259 /***/ (function(module, exports, __webpack_require__) {
5260
5261 // 0 -> Array#forEach
5262 // 1 -> Array#map
5263 // 2 -> Array#filter
5264 // 3 -> Array#some
5265 // 4 -> Array#every
5266 // 5 -> Array#find
5267 // 6 -> Array#findIndex
5268 var ctx = __webpack_require__(70);
5269 var IObject = __webpack_require__(124);
5270 var toObject = __webpack_require__(92);
5271 var toLength = __webpack_require__(42);
5272 var asc = __webpack_require__(208);
5273 module.exports = function (TYPE, $create) {
5274 var IS_MAP = TYPE == 1;
5275 var IS_FILTER = TYPE == 2;
5276 var IS_SOME = TYPE == 3;
5277 var IS_EVERY = TYPE == 4;
5278 var IS_FIND_INDEX = TYPE == 6;
5279 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
5280 var create = $create || asc;
5281 return function ($this, callbackfn, that) {
5282 var O = toObject($this);
5283 var self = IObject(O);
5284 var f = ctx(callbackfn, that, 3);
5285 var length = toLength(self.length);
5286 var index = 0;
5287 var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
5288 var val, res;
5289 for (;length > index; index++) if (NO_HOLES || index in self) {
5290 val = self[index];
5291 res = f(val, index, O);
5292 if (TYPE) {
5293 if (IS_MAP) result[index] = res; // map
5294 else if (res) switch (TYPE) {
5295 case 3: return true; // some
5296 case 5: return val; // find
5297 case 6: return index; // findIndex
5298 case 2: result.push(val); // filter
5299 } else if (IS_EVERY) return false; // every
5300 }
5301 }
5302 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
5303 };
5304 };
5305
5306
5307 /***/ }),
5308 /* 182 */
5309 /***/ (function(module, exports, __webpack_require__) {
5310
5311 "use strict";
5312
5313 __webpack_require__(273);
5314 var anObject = __webpack_require__(18);
5315 var $flags = __webpack_require__(103);
5316 var DESCRIPTORS = __webpack_require__(27);
5317 var TO_STRING = 'toString';
5318 var $toString = /./[TO_STRING];
5319
5320 var define = function (fn) {
5321 __webpack_require__(35)(RegExp.prototype, TO_STRING, fn, true);
5322 };
5323
5324 // 21.2.5.14 RegExp.prototype.toString()
5325 if (__webpack_require__(33)(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
5326 define(function toString() {
5327 var R = anObject(this);
5328 return '/'.concat(R.source, '/',
5329 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
5330 });
5331 // FF44- RegExp#toString has a wrong name
5332 } else if ($toString.name != TO_STRING) {
5333 define(function toString() {
5334 return $toString.call(this);
5335 });
5336 }
5337
5338
5339 /***/ }),
5340 /* 183 */
5341 /***/ (function(module, exports, __webpack_require__) {
5342
5343 // 19.1.2.14 / 15.2.3.14 Object.keys(O)
5344 var $keys = __webpack_require__(211);
5345 var enumBugKeys = __webpack_require__(144);
5346
5347 module.exports = Object.keys || function keys(O) {
5348 return $keys(O, enumBugKeys);
5349 };
5350
5351
5352 /***/ }),
5353 /* 184 */
5354 /***/ (function(module, exports, __webpack_require__) {
5355
5356 var DESCRIPTORS = __webpack_require__(14);
5357 var getKeys = __webpack_require__(40);
5358 var toIObject = __webpack_require__(21);
5359 var isEnum = __webpack_require__(49).f;
5360 module.exports = function (isEntries) {
5361 return function (it) {
5362 var O = toIObject(it);
5363 var keys = getKeys(O);
5364 var length = keys.length;
5365 var i = 0;
5366 var result = [];
5367 var key;
5368 while (length > i) {
5369 key = keys[i++];
5370 if (!DESCRIPTORS || isEnum.call(O, key)) {
5371 result.push(isEntries ? [key, O[key]] : O[key]);
5372 }
5373 }
5374 return result;
5375 };
5376 };
5377
5378
5379 /***/ }),
5380 /* 185 */
5381 /***/ (function(module, exports, __webpack_require__) {
5382
5383 "use strict";
5384 // 21.1.3.7 String.prototype.includes(searchString, position = 0)
5385
5386 var $export = __webpack_require__(37);
5387 var context = __webpack_require__(205);
5388 var INCLUDES = 'includes';
5389
5390 $export($export.P + $export.F * __webpack_require__(206)(INCLUDES), 'String', {
5391 includes: function includes(searchString /* , position = 0 */) {
5392 return !!~context(this, searchString, INCLUDES)
5393 .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
5394 }
5395 });
5396
5397
5398 /***/ }),
5399 /* 186 */
5400 /***/ (function(module, exports, __webpack_require__) {
5401
5402 "use strict";
5403
5404 var regexpExec = __webpack_require__(86);
5405 __webpack_require__(37)({
5406 target: 'RegExp',
5407 proto: true,
5408 forced: regexpExec !== /./.exec
5409 }, {
5410 exec: regexpExec
5411 });
5412
5413
5414 /***/ }),
5415 /* 187 */
5416 /***/ (function(module, exports, __webpack_require__) {
5417
5418 __webpack_require__(188);
5419 var $Object = __webpack_require__(6).Object;
5420 module.exports = function getOwnPropertyDescriptor(it, key) {
5421 return $Object.getOwnPropertyDescriptor(it, key);
5422 };
5423
5424
5425 /***/ }),
5426 /* 188 */
5427 /***/ (function(module, exports, __webpack_require__) {
5428
5429 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
5430 var toIObject = __webpack_require__(21);
5431 var $getOwnPropertyDescriptor = __webpack_require__(53).f;
5432
5433 __webpack_require__(84)('getOwnPropertyDescriptor', function () {
5434 return function getOwnPropertyDescriptor(it, key) {
5435 return $getOwnPropertyDescriptor(toIObject(it), key);
5436 };
5437 });
5438
5439
5440 /***/ }),
5441 /* 189 */
5442 /***/ (function(module, exports, __webpack_require__) {
5443
5444 module.exports = __webpack_require__(190);
5445
5446 /***/ }),
5447 /* 190 */
5448 /***/ (function(module, exports, __webpack_require__) {
5449
5450 __webpack_require__(191);
5451 module.exports = __webpack_require__(6).Reflect.get;
5452
5453
5454 /***/ }),
5455 /* 191 */
5456 /***/ (function(module, exports, __webpack_require__) {
5457
5458 // 26.1.6 Reflect.get(target, propertyKey [, receiver])
5459 var gOPD = __webpack_require__(53);
5460 var getPrototypeOf = __webpack_require__(64);
5461 var has = __webpack_require__(19);
5462 var $export = __webpack_require__(7);
5463 var isObject = __webpack_require__(9);
5464 var anObject = __webpack_require__(12);
5465
5466 function get(target, propertyKey /* , receiver */) {
5467 var receiver = arguments.length < 3 ? target : arguments[2];
5468 var desc, proto;
5469 if (anObject(target) === receiver) return target[propertyKey];
5470 if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value')
5471 ? desc.value
5472 : desc.get !== undefined
5473 ? desc.get.call(receiver)
5474 : undefined;
5475 if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver);
5476 }
5477
5478 $export($export.S, 'Reflect', { get: get });
5479
5480
5481 /***/ }),
5482 /* 192 */
5483 /***/ (function(module, exports, __webpack_require__) {
5484
5485 var getPrototypeOf = __webpack_require__(16);
5486
5487 function _superPropBase(object, property) {
5488 while (!Object.prototype.hasOwnProperty.call(object, property)) {
5489 object = getPrototypeOf(object);
5490 if (object === null) break;
5491 }
5492
5493 return object;
5494 }
5495
5496 module.exports = _superPropBase;
5497
5498 /***/ }),
5499 /* 193 */
5500 /***/ (function(module, exports, __webpack_require__) {
5501
5502 "use strict";
5503
5504 var LIBRARY = __webpack_require__(109);
5505 var $export = __webpack_require__(37);
5506 var redefine = __webpack_require__(35);
5507 var hide = __webpack_require__(30);
5508 var Iterators = __webpack_require__(117);
5509 var $iterCreate = __webpack_require__(236);
5510 var setToStringTag = __webpack_require__(152);
5511 var getPrototypeOf = __webpack_require__(238);
5512 var ITERATOR = __webpack_require__(11)('iterator');
5513 var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
5514 var FF_ITERATOR = '@@iterator';
5515 var KEYS = 'keys';
5516 var VALUES = 'values';
5517
5518 var returnThis = function () { return this; };
5519
5520 module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
5521 $iterCreate(Constructor, NAME, next);
5522 var getMethod = function (kind) {
5523 if (!BUGGY && kind in proto) return proto[kind];
5524 switch (kind) {
5525 case KEYS: return function keys() { return new Constructor(this, kind); };
5526 case VALUES: return function values() { return new Constructor(this, kind); };
5527 } return function entries() { return new Constructor(this, kind); };
5528 };
5529 var TAG = NAME + ' Iterator';
5530 var DEF_VALUES = DEFAULT == VALUES;
5531 var VALUES_BUG = false;
5532 var proto = Base.prototype;
5533 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
5534 var $default = $native || getMethod(DEFAULT);
5535 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
5536 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
5537 var methods, key, IteratorPrototype;
5538 // Fix native
5539 if ($anyNative) {
5540 IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
5541 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
5542 // Set @@toStringTag to native iterators
5543 setToStringTag(IteratorPrototype, TAG, true);
5544 // fix for some old engines
5545 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
5546 }
5547 }
5548 // fix Array#{values, @@iterator}.name in V8 / FF
5549 if (DEF_VALUES && $native && $native.name !== VALUES) {
5550 VALUES_BUG = true;
5551 $default = function values() { return $native.call(this); };
5552 }
5553 // Define iterator
5554 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
5555 hide(proto, ITERATOR, $default);
5556 }
5557 // Plug for library
5558 Iterators[NAME] = $default;
5559 Iterators[TAG] = returnThis;
5560 if (DEFAULT) {
5561 methods = {
5562 values: DEF_VALUES ? $default : getMethod(VALUES),
5563 keys: IS_SET ? $default : getMethod(KEYS),
5564 entries: $entries
5565 };
5566 if (FORCED) for (key in methods) {
5567 if (!(key in proto)) redefine(proto, key, methods[key]);
5568 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
5569 }
5570 return methods;
5571 };
5572
5573
5574 /***/ }),
5575 /* 194 */
5576 /***/ (function(module, exports) {
5577
5578 function _arrayLikeToArray(arr, len) {
5579 if (len == null || len > arr.length) len = arr.length;
5580
5581 for (var i = 0, arr2 = new Array(len); i < len; i++) {
5582 arr2[i] = arr[i];
5583 }
5584
5585 return arr2;
5586 }
5587
5588 module.exports = _arrayLikeToArray;
5589
5590 /***/ }),
5591 /* 195 */
5592 /***/ (function(module, exports, __webpack_require__) {
5593
5594 module.exports = __webpack_require__(226);
5595
5596 /***/ }),
5597 /* 196 */
5598 /***/ (function(module, exports, __webpack_require__) {
5599
5600 "use strict";
5601
5602 var $defineProperty = __webpack_require__(15);
5603 var createDesc = __webpack_require__(43);
5604
5605 module.exports = function (object, index, value) {
5606 if (index in object) $defineProperty.f(object, index, createDesc(0, value));
5607 else object[index] = value;
5608 };
5609
5610
5611 /***/ }),
5612 /* 197 */
5613 /***/ (function(module, exports, __webpack_require__) {
5614
5615 var _Array$from = __webpack_require__(195);
5616
5617 var arrayLikeToArray = __webpack_require__(194);
5618
5619 function _unsupportedIterableToArray(o, minLen) {
5620 if (!o) return;
5621 if (typeof o === "string") return arrayLikeToArray(o, minLen);
5622 var n = Object.prototype.toString.call(o).slice(8, -1);
5623 if (n === "Object" && o.constructor) n = o.constructor.name;
5624 if (n === "Map" || n === "Set") return _Array$from(o);
5625 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
5626 }
5627
5628 module.exports = _unsupportedIterableToArray;
5629
5630 /***/ }),
5631 /* 198 */
5632 /***/ (function(module, exports, __webpack_require__) {
5633
5634 "use strict";
5635
5636
5637 var _interopRequireDefault = __webpack_require__(0);
5638
5639 var _Object$defineProperty = __webpack_require__(1);
5640
5641 _Object$defineProperty(exports, "__esModule", {
5642 value: true
5643 });
5644
5645 exports.default = void 0;
5646
5647 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
5648
5649 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
5650
5651 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
5652
5653 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
5654
5655 var _commandBase = _interopRequireDefault(__webpack_require__(20));
5656
5657 var CommandInternalBase = /*#__PURE__*/function (_CommandBase) {
5658 (0, _inherits2.default)(CommandInternalBase, _CommandBase);
5659
5660 var _super = (0, _createSuper2.default)(CommandInternalBase);
5661
5662 (0, _createClass2.default)(CommandInternalBase, null, [{
5663 key: "getInstanceType",
5664 value: function getInstanceType() {
5665 return 'CommandInternalBase';
5666 }
5667 }]);
5668
5669 function CommandInternalBase(args) {
5670 var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.commandsInternal;
5671 (0, _classCallCheck2.default)(this, CommandInternalBase);
5672 return _super.call(this, args, commandsAPI);
5673 }
5674
5675 return CommandInternalBase;
5676 }(_commandBase.default);
5677
5678 exports.default = CommandInternalBase;
5679
5680 /***/ }),
5681 /* 199 */
5682 /***/ (function(module, exports, __webpack_require__) {
5683
5684 module.exports = __webpack_require__(310);
5685
5686 /***/ }),
5687 /* 200 */
5688 /***/ (function(module, exports, __webpack_require__) {
5689
5690 // 7.3.20 SpeciesConstructor(O, defaultConstructor)
5691 var anObject = __webpack_require__(12);
5692 var aFunction = __webpack_require__(38);
5693 var SPECIES = __webpack_require__(10)('species');
5694 module.exports = function (O, D) {
5695 var C = anObject(O).constructor;
5696 var S;
5697 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
5698 };
5699
5700
5701 /***/ }),
5702 /* 201 */
5703 /***/ (function(module, exports, __webpack_require__) {
5704
5705 var ctx = __webpack_require__(31);
5706 var invoke = __webpack_require__(129);
5707 var html = __webpack_require__(128);
5708 var cel = __webpack_require__(90);
5709 var global = __webpack_require__(8);
5710 var process = global.process;
5711 var setTask = global.setImmediate;
5712 var clearTask = global.clearImmediate;
5713 var MessageChannel = global.MessageChannel;
5714 var Dispatch = global.Dispatch;
5715 var counter = 0;
5716 var queue = {};
5717 var ONREADYSTATECHANGE = 'onreadystatechange';
5718 var defer, channel, port;
5719 var run = function () {
5720 var id = +this;
5721 // eslint-disable-next-line no-prototype-builtins
5722 if (queue.hasOwnProperty(id)) {
5723 var fn = queue[id];
5724 delete queue[id];
5725 fn();
5726 }
5727 };
5728 var listener = function (event) {
5729 run.call(event.data);
5730 };
5731 // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
5732 if (!setTask || !clearTask) {
5733 setTask = function setImmediate(fn) {
5734 var args = [];
5735 var i = 1;
5736 while (arguments.length > i) args.push(arguments[i++]);
5737 queue[++counter] = function () {
5738 // eslint-disable-next-line no-new-func
5739 invoke(typeof fn == 'function' ? fn : Function(fn), args);
5740 };
5741 defer(counter);
5742 return counter;
5743 };
5744 clearTask = function clearImmediate(id) {
5745 delete queue[id];
5746 };
5747 // Node.js 0.8-
5748 if (__webpack_require__(55)(process) == 'process') {
5749 defer = function (id) {
5750 process.nextTick(ctx(run, id, 1));
5751 };
5752 // Sphere (JS game engine) Dispatch API
5753 } else if (Dispatch && Dispatch.now) {
5754 defer = function (id) {
5755 Dispatch.now(ctx(run, id, 1));
5756 };
5757 // Browsers with MessageChannel, includes WebWorkers
5758 } else if (MessageChannel) {
5759 channel = new MessageChannel();
5760 port = channel.port2;
5761 channel.port1.onmessage = listener;
5762 defer = ctx(port.postMessage, port, 1);
5763 // Browsers with postMessage, skip WebWorkers
5764 // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
5765 } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {
5766 defer = function (id) {
5767 global.postMessage(id + '', '*');
5768 };
5769 global.addEventListener('message', listener, false);
5770 // IE8-
5771 } else if (ONREADYSTATECHANGE in cel('script')) {
5772 defer = function (id) {
5773 html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
5774 html.removeChild(this);
5775 run.call(id);
5776 };
5777 };
5778 // Rest old browsers
5779 } else {
5780 defer = function (id) {
5781 setTimeout(ctx(run, id, 1), 0);
5782 };
5783 }
5784 }
5785 module.exports = {
5786 set: setTask,
5787 clear: clearTask
5788 };
5789
5790
5791 /***/ }),
5792 /* 202 */
5793 /***/ (function(module, exports) {
5794
5795 module.exports = function (exec) {
5796 try {
5797 return { e: false, v: exec() };
5798 } catch (e) {
5799 return { e: true, v: e };
5800 }
5801 };
5802
5803
5804 /***/ }),
5805 /* 203 */
5806 /***/ (function(module, exports, __webpack_require__) {
5807
5808 var anObject = __webpack_require__(12);
5809 var isObject = __webpack_require__(9);
5810 var newPromiseCapability = __webpack_require__(142);
5811
5812 module.exports = function (C, x) {
5813 anObject(C);
5814 if (isObject(x) && x.constructor === C) return x;
5815 var promiseCapability = newPromiseCapability.f(C);
5816 var resolve = promiseCapability.resolve;
5817 resolve(x);
5818 return promiseCapability.promise;
5819 };
5820
5821
5822 /***/ }),
5823 /* 204 */,
5824 /* 205 */
5825 /***/ (function(module, exports, __webpack_require__) {
5826
5827 // helper for String#{startsWith, endsWith, includes}
5828 var isRegExp = __webpack_require__(120);
5829 var defined = __webpack_require__(41);
5830
5831 module.exports = function (that, searchString, NAME) {
5832 if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
5833 return String(defined(that));
5834 };
5835
5836
5837 /***/ }),
5838 /* 206 */
5839 /***/ (function(module, exports, __webpack_require__) {
5840
5841 var MATCH = __webpack_require__(11)('match');
5842 module.exports = function (KEY) {
5843 var re = /./;
5844 try {
5845 '/./'[KEY](re);
5846 } catch (e) {
5847 try {
5848 re[MATCH] = false;
5849 return !'/./'[KEY](re);
5850 } catch (f) { /* empty */ }
5851 } return true;
5852 };
5853
5854
5855 /***/ }),
5856 /* 207 */,
5857 /* 208 */
5858 /***/ (function(module, exports, __webpack_require__) {
5859
5860 // 9.4.2.3 ArraySpeciesCreate(originalArray, length)
5861 var speciesConstructor = __webpack_require__(209);
5862
5863 module.exports = function (original, length) {
5864 return new (speciesConstructor(original))(length);
5865 };
5866
5867
5868 /***/ }),
5869 /* 209 */
5870 /***/ (function(module, exports, __webpack_require__) {
5871
5872 var isObject = __webpack_require__(29);
5873 var isArray = __webpack_require__(210);
5874 var SPECIES = __webpack_require__(11)('species');
5875
5876 module.exports = function (original) {
5877 var C;
5878 if (isArray(original)) {
5879 C = original.constructor;
5880 // cross-realm fallback
5881 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
5882 if (isObject(C)) {
5883 C = C[SPECIES];
5884 if (C === null) C = undefined;
5885 }
5886 } return C === undefined ? Array : C;
5887 };
5888
5889
5890 /***/ }),
5891 /* 210 */
5892 /***/ (function(module, exports, __webpack_require__) {
5893
5894 // 7.2.2 IsArray(argument)
5895 var cof = __webpack_require__(45);
5896 module.exports = Array.isArray || function isArray(arg) {
5897 return cof(arg) == 'Array';
5898 };
5899
5900
5901 /***/ }),
5902 /* 211 */
5903 /***/ (function(module, exports, __webpack_require__) {
5904
5905 var has = __webpack_require__(61);
5906 var toIObject = __webpack_require__(102);
5907 var arrayIndexOf = __webpack_require__(151)(false);
5908 var IE_PROTO = __webpack_require__(127)('IE_PROTO');
5909
5910 module.exports = function (object, names) {
5911 var O = toIObject(object);
5912 var i = 0;
5913 var result = [];
5914 var key;
5915 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
5916 // Don't enum bug & hidden keys
5917 while (names.length > i) if (has(O, key = names[i++])) {
5918 ~arrayIndexOf(result, key) || result.push(key);
5919 }
5920 return result;
5921 };
5922
5923
5924 /***/ }),
5925 /* 212 */
5926 /***/ (function(module, exports, __webpack_require__) {
5927
5928 var toInteger = __webpack_require__(59);
5929 var max = Math.max;
5930 var min = Math.min;
5931 module.exports = function (index, length) {
5932 index = toInteger(index);
5933 return index < 0 ? max(index + length, 0) : min(index, length);
5934 };
5935
5936
5937 /***/ }),
5938 /* 213 */
5939 /***/ (function(module, exports, __webpack_require__) {
5940
5941 __webpack_require__(214);
5942 module.exports = __webpack_require__(6).Array.isArray;
5943
5944
5945 /***/ }),
5946 /* 214 */
5947 /***/ (function(module, exports, __webpack_require__) {
5948
5949 // 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
5950 var $export = __webpack_require__(7);
5951
5952 $export($export.S, 'Array', { isArray: __webpack_require__(96) });
5953
5954
5955 /***/ }),
5956 /* 215 */
5957 /***/ (function(module, exports, __webpack_require__) {
5958
5959 module.exports = __webpack_require__(228);
5960
5961 /***/ }),
5962 /* 216 */
5963 /***/ (function(module, exports, __webpack_require__) {
5964
5965 __webpack_require__(217);
5966 module.exports = __webpack_require__(6).Object.keys;
5967
5968
5969 /***/ }),
5970 /* 217 */
5971 /***/ (function(module, exports, __webpack_require__) {
5972
5973 // 19.1.2.14 Object.keys(O)
5974 var toObject = __webpack_require__(32);
5975 var $keys = __webpack_require__(40);
5976
5977 __webpack_require__(84)('keys', function () {
5978 return function keys(it) {
5979 return $keys(toObject(it));
5980 };
5981 });
5982
5983
5984 /***/ }),
5985 /* 218 */
5986 /***/ (function(module, exports, __webpack_require__) {
5987
5988 "use strict";
5989
5990 // 19.1.2.1 Object.assign(target, source, ...)
5991 var DESCRIPTORS = __webpack_require__(14);
5992 var getKeys = __webpack_require__(40);
5993 var gOPS = __webpack_require__(78);
5994 var pIE = __webpack_require__(49);
5995 var toObject = __webpack_require__(32);
5996 var IObject = __webpack_require__(104);
5997 var $assign = Object.assign;
5998
5999 // should work with symbols and should have deterministic property order (V8 bug)
6000 module.exports = !$assign || __webpack_require__(22)(function () {
6001 var A = {};
6002 var B = {};
6003 // eslint-disable-next-line no-undef
6004 var S = Symbol();
6005 var K = 'abcdefghijklmnopqrst';
6006 A[S] = 7;
6007 K.split('').forEach(function (k) { B[k] = k; });
6008 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
6009 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
6010 var T = toObject(target);
6011 var aLen = arguments.length;
6012 var index = 1;
6013 var getSymbols = gOPS.f;
6014 var isEnum = pIE.f;
6015 while (aLen > index) {
6016 var S = IObject(arguments[index++]);
6017 var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
6018 var length = keys.length;
6019 var j = 0;
6020 var key;
6021 while (length > j) {
6022 key = keys[j++];
6023 if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
6024 }
6025 } return T;
6026 } : $assign;
6027
6028
6029 /***/ }),
6030 /* 219 */,
6031 /* 220 */
6032 /***/ (function(module, exports, __webpack_require__) {
6033
6034 "use strict";
6035
6036
6037 var _interopRequireDefault = __webpack_require__(0);
6038
6039 var _Object$defineProperty = __webpack_require__(1);
6040
6041 _Object$defineProperty(exports, "__esModule", {
6042 value: true
6043 });
6044
6045 exports.default = void 0;
6046
6047 var _typeof2 = _interopRequireDefault(__webpack_require__(48));
6048
6049 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
6050
6051 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
6052
6053 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
6054
6055 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
6056
6057 var _instanceType = _interopRequireDefault(__webpack_require__(243));
6058
6059 var ArgsObject = /*#__PURE__*/function (_InstanceType) {
6060 (0, _inherits2.default)(ArgsObject, _InstanceType);
6061
6062 var _super = (0, _createSuper2.default)(ArgsObject);
6063
6064 (0, _createClass2.default)(ArgsObject, null, [{
6065 key: "getInstanceType",
6066 value: function getInstanceType() {
6067 return 'ArgsObject';
6068 }
6069 /**
6070 * Function constructor().
6071 *
6072 * Create ArgsObject.
6073 *
6074 * @param {{}} args
6075 */
6076
6077 }]);
6078
6079 function ArgsObject(args) {
6080 var _this;
6081
6082 (0, _classCallCheck2.default)(this, ArgsObject);
6083 _this = _super.call(this);
6084 _this.args = args;
6085 return _this;
6086 }
6087 /**
6088 * Function requireArgument().
6089 *
6090 * Validate property in args.
6091 *
6092 * @param {string} property
6093 * @param {{}} args
6094 *
6095 * @throws {Error}
6096 *
6097 */
6098
6099
6100 (0, _createClass2.default)(ArgsObject, [{
6101 key: "requireArgument",
6102 value: function requireArgument(property) {
6103 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args;
6104
6105 if (!args.hasOwnProperty(property)) {
6106 throw Error("".concat(property, " is required."));
6107 }
6108 }
6109 /**
6110 * Function requireArgumentType().
6111 *
6112 * Validate property in args using `type === typeof(args.whatever)`.
6113 *
6114 * @param {string} property
6115 * @param {string} type
6116 * @param {{}} args
6117 *
6118 * @throws {Error}
6119 *
6120 */
6121
6122 }, {
6123 key: "requireArgumentType",
6124 value: function requireArgumentType(property, type) {
6125 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
6126 this.requireArgument(property, args);
6127
6128 if ((0, _typeof2.default)(args[property]) !== type) {
6129 throw Error("".concat(property, " invalid type: ").concat(type, "."));
6130 }
6131 }
6132 /**
6133 * Function requireArgumentInstance().
6134 *
6135 * Validate property in args using `args.whatever instanceof instance`.
6136 *
6137 * @param {string} property
6138 * @param {instanceof} instance
6139 * @param {{}} args
6140 *
6141 * @throws {Error}
6142 *
6143 */
6144
6145 }, {
6146 key: "requireArgumentInstance",
6147 value: function requireArgumentInstance(property, instance) {
6148 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
6149 this.requireArgument(property, args);
6150
6151 if (!(args[property] instanceof instance)) {
6152 throw Error("".concat(property, " invalid instance."));
6153 }
6154 }
6155 /**
6156 * Function requireArgumentConstructor().
6157 *
6158 * Validate property in args using `type === args.whatever.constructor`.
6159 *
6160 * @param {string} property
6161 * @param {*} type
6162 * @param {{}} args
6163 *
6164 * @throws {Error}
6165 *
6166 */
6167
6168 }, {
6169 key: "requireArgumentConstructor",
6170 value: function requireArgumentConstructor(property, type) {
6171 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
6172 this.requireArgument(property, args);
6173
6174 if (args[property].constructor !== type) {
6175 throw Error("".concat(property, " invalid constructor type."));
6176 }
6177 }
6178 }]);
6179 return ArgsObject;
6180 }(_instanceType.default);
6181
6182 exports.default = ArgsObject;
6183
6184 /***/ }),
6185 /* 221 */
6186 /***/ (function(module, exports, __webpack_require__) {
6187
6188 "use strict";
6189
6190
6191 var _interopRequireDefault = __webpack_require__(0);
6192
6193 var _Object$defineProperty = __webpack_require__(1);
6194
6195 _Object$defineProperty(exports, "__esModule", {
6196 value: true
6197 });
6198
6199 exports.default = exports.After = void 0;
6200
6201 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
6202
6203 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
6204
6205 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
6206
6207 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
6208
6209 var _base = _interopRequireDefault(__webpack_require__(285));
6210
6211 var After = /*#__PURE__*/function (_Base) {
6212 (0, _inherits2.default)(After, _Base);
6213
6214 var _super = (0, _createSuper2.default)(After);
6215
6216 function After() {
6217 (0, _classCallCheck2.default)(this, After);
6218 return _super.apply(this, arguments);
6219 }
6220
6221 (0, _createClass2.default)(After, [{
6222 key: "register",
6223 value: function register() {
6224 $e.hooks.registerDataAfter(this);
6225 }
6226 }]);
6227 return After;
6228 }(_base.default);
6229
6230 exports.After = After;
6231 var _default = After;
6232 exports.default = _default;
6233
6234 /***/ }),
6235 /* 222 */,
6236 /* 223 */
6237 /***/ (function(module, exports, __webpack_require__) {
6238
6239 "use strict";
6240
6241 var global = __webpack_require__(8);
6242 var core = __webpack_require__(6);
6243 var dP = __webpack_require__(15);
6244 var DESCRIPTORS = __webpack_require__(14);
6245 var SPECIES = __webpack_require__(10)('species');
6246
6247 module.exports = function (KEY) {
6248 var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];
6249 if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
6250 configurable: true,
6251 get: function () { return this; }
6252 });
6253 };
6254
6255
6256 /***/ }),
6257 /* 224 */
6258 /***/ (function(module, exports, __webpack_require__) {
6259
6260 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
6261 var anObject = __webpack_require__(18);
6262 var dPs = __webpack_require__(237);
6263 var enumBugKeys = __webpack_require__(144);
6264 var IE_PROTO = __webpack_require__(127)('IE_PROTO');
6265 var Empty = function () { /* empty */ };
6266 var PROTOTYPE = 'prototype';
6267
6268 // Create object with fake `null` prototype: use iframe Object with cleared prototype
6269 var createDict = function () {
6270 // Thrash, waste and sodomy: IE GC bug
6271 var iframe = __webpack_require__(107)('iframe');
6272 var i = enumBugKeys.length;
6273 var lt = '<';
6274 var gt = '>';
6275 var iframeDocument;
6276 iframe.style.display = 'none';
6277 __webpack_require__(225).appendChild(iframe);
6278 iframe.src = 'javascript:'; // eslint-disable-line no-script-url
6279 // createDict = iframe.contentWindow.Object;
6280 // html.removeChild(iframe);
6281 iframeDocument = iframe.contentWindow.document;
6282 iframeDocument.open();
6283 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
6284 iframeDocument.close();
6285 createDict = iframeDocument.F;
6286 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
6287 return createDict();
6288 };
6289
6290 module.exports = Object.create || function create(O, Properties) {
6291 var result;
6292 if (O !== null) {
6293 Empty[PROTOTYPE] = anObject(O);
6294 result = new Empty();
6295 Empty[PROTOTYPE] = null;
6296 // add "__proto__" for Object.getPrototypeOf polyfill
6297 result[IE_PROTO] = O;
6298 } else result = createDict();
6299 return Properties === undefined ? result : dPs(result, Properties);
6300 };
6301
6302
6303 /***/ }),
6304 /* 225 */
6305 /***/ (function(module, exports, __webpack_require__) {
6306
6307 var document = __webpack_require__(17).document;
6308 module.exports = document && document.documentElement;
6309
6310
6311 /***/ }),
6312 /* 226 */
6313 /***/ (function(module, exports, __webpack_require__) {
6314
6315 __webpack_require__(60);
6316 __webpack_require__(227);
6317 module.exports = __webpack_require__(6).Array.from;
6318
6319
6320 /***/ }),
6321 /* 227 */
6322 /***/ (function(module, exports, __webpack_require__) {
6323
6324 "use strict";
6325
6326 var ctx = __webpack_require__(31);
6327 var $export = __webpack_require__(7);
6328 var toObject = __webpack_require__(32);
6329 var call = __webpack_require__(140);
6330 var isArrayIter = __webpack_require__(141);
6331 var toLength = __webpack_require__(74);
6332 var createProperty = __webpack_require__(196);
6333 var getIterFn = __webpack_require__(119);
6334
6335 $export($export.S + $export.F * !__webpack_require__(150)(function (iter) { Array.from(iter); }), 'Array', {
6336 // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
6337 from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
6338 var O = toObject(arrayLike);
6339 var C = typeof this == 'function' ? this : Array;
6340 var aLen = arguments.length;
6341 var mapfn = aLen > 1 ? arguments[1] : undefined;
6342 var mapping = mapfn !== undefined;
6343 var index = 0;
6344 var iterFn = getIterFn(O);
6345 var length, result, step, iterator;
6346 if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
6347 // if object isn't iterable or it's array with default iterator - use simple case
6348 if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
6349 for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
6350 createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
6351 }
6352 } else {
6353 length = toLength(O.length);
6354 for (result = new C(length); length > index; index++) {
6355 createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
6356 }
6357 }
6358 result.length = index;
6359 return result;
6360 }
6361 });
6362
6363
6364 /***/ }),
6365 /* 228 */
6366 /***/ (function(module, exports, __webpack_require__) {
6367
6368 __webpack_require__(62);
6369 __webpack_require__(60);
6370 module.exports = __webpack_require__(229);
6371
6372
6373 /***/ }),
6374 /* 229 */
6375 /***/ (function(module, exports, __webpack_require__) {
6376
6377 var classof = __webpack_require__(97);
6378 var ITERATOR = __webpack_require__(10)('iterator');
6379 var Iterators = __webpack_require__(34);
6380 module.exports = __webpack_require__(6).isIterable = function (it) {
6381 var O = Object(it);
6382 return O[ITERATOR] !== undefined
6383 || '@@iterator' in O
6384 // eslint-disable-next-line no-prototype-builtins
6385 || Iterators.hasOwnProperty(classof(O));
6386 };
6387
6388
6389 /***/ }),
6390 /* 230 */,
6391 /* 231 */,
6392 /* 232 */,
6393 /* 233 */
6394 /***/ (function(module, exports, __webpack_require__) {
6395
6396 __webpack_require__(234);
6397 module.exports = __webpack_require__(6).Object.values;
6398
6399
6400 /***/ }),
6401 /* 234 */
6402 /***/ (function(module, exports, __webpack_require__) {
6403
6404 // https://github.com/tc39/proposal-object-values-entries
6405 var $export = __webpack_require__(7);
6406 var $values = __webpack_require__(184)(false);
6407
6408 $export($export.S, 'Object', {
6409 values: function values(it) {
6410 return $values(it);
6411 }
6412 });
6413
6414
6415 /***/ }),
6416 /* 235 */
6417 /***/ (function(module, exports) {
6418
6419 module.exports = function (done, value) {
6420 return { value: value, done: !!done };
6421 };
6422
6423
6424 /***/ }),
6425 /* 236 */
6426 /***/ (function(module, exports, __webpack_require__) {
6427
6428 "use strict";
6429
6430 var create = __webpack_require__(224);
6431 var descriptor = __webpack_require__(99);
6432 var setToStringTag = __webpack_require__(152);
6433 var IteratorPrototype = {};
6434
6435 // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
6436 __webpack_require__(30)(IteratorPrototype, __webpack_require__(11)('iterator'), function () { return this; });
6437
6438 module.exports = function (Constructor, NAME, next) {
6439 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
6440 setToStringTag(Constructor, NAME + ' Iterator');
6441 };
6442
6443
6444 /***/ }),
6445 /* 237 */
6446 /***/ (function(module, exports, __webpack_require__) {
6447
6448 var dP = __webpack_require__(44);
6449 var anObject = __webpack_require__(18);
6450 var getKeys = __webpack_require__(183);
6451
6452 module.exports = __webpack_require__(27) ? Object.defineProperties : function defineProperties(O, Properties) {
6453 anObject(O);
6454 var keys = getKeys(Properties);
6455 var length = keys.length;
6456 var i = 0;
6457 var P;
6458 while (length > i) dP.f(O, P = keys[i++], Properties[P]);
6459 return O;
6460 };
6461
6462
6463 /***/ }),
6464 /* 238 */
6465 /***/ (function(module, exports, __webpack_require__) {
6466
6467 // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
6468 var has = __webpack_require__(61);
6469 var toObject = __webpack_require__(92);
6470 var IE_PROTO = __webpack_require__(127)('IE_PROTO');
6471 var ObjectProto = Object.prototype;
6472
6473 module.exports = Object.getPrototypeOf || function (O) {
6474 O = toObject(O);
6475 if (has(O, IE_PROTO)) return O[IE_PROTO];
6476 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
6477 return O.constructor.prototype;
6478 } return O instanceof Object ? ObjectProto : null;
6479 };
6480
6481
6482 /***/ }),
6483 /* 239 */
6484 /***/ (function(module, exports, __webpack_require__) {
6485
6486 "use strict";
6487
6488 var global = __webpack_require__(8);
6489 var $export = __webpack_require__(7);
6490 var meta = __webpack_require__(81);
6491 var fails = __webpack_require__(22);
6492 var hide = __webpack_require__(25);
6493 var redefineAll = __webpack_require__(132);
6494 var forOf = __webpack_require__(98);
6495 var anInstance = __webpack_require__(131);
6496 var isObject = __webpack_require__(9);
6497 var setToStringTag = __webpack_require__(54);
6498 var dP = __webpack_require__(15).f;
6499 var each = __webpack_require__(153)(0);
6500 var DESCRIPTORS = __webpack_require__(14);
6501
6502 module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
6503 var Base = global[NAME];
6504 var C = Base;
6505 var ADDER = IS_MAP ? 'set' : 'add';
6506 var proto = C && C.prototype;
6507 var O = {};
6508 if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {
6509 new C().entries().next();
6510 }))) {
6511 // create collection constructor
6512 C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
6513 redefineAll(C.prototype, methods);
6514 meta.NEED = true;
6515 } else {
6516 C = wrapper(function (target, iterable) {
6517 anInstance(target, C, NAME, '_c');
6518 target._c = new Base();
6519 if (iterable != undefined) forOf(iterable, IS_MAP, target[ADDER], target);
6520 });
6521 each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
6522 var IS_ADDER = KEY == 'add' || KEY == 'set';
6523 if (KEY in proto && !(IS_WEAK && KEY == 'clear')) hide(C.prototype, KEY, function (a, b) {
6524 anInstance(this, C, KEY);
6525 if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;
6526 var result = this._c[KEY](a === 0 ? 0 : a, b);
6527 return IS_ADDER ? this : result;
6528 });
6529 });
6530 IS_WEAK || dP(C.prototype, 'size', {
6531 get: function () {
6532 return this._c.size;
6533 }
6534 });
6535 }
6536
6537 setToStringTag(C, NAME);
6538
6539 O[NAME] = C;
6540 $export($export.G + $export.W + $export.F, O);
6541
6542 if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
6543
6544 return C;
6545 };
6546
6547
6548 /***/ }),
6549 /* 240 */
6550 /***/ (function(module, exports, __webpack_require__) {
6551
6552 "use strict";
6553
6554 // https://tc39.github.io/proposal-setmap-offrom/
6555 var $export = __webpack_require__(7);
6556
6557 module.exports = function (COLLECTION) {
6558 $export($export.S, COLLECTION, { of: function of() {
6559 var length = arguments.length;
6560 var A = new Array(length);
6561 while (length--) A[length] = arguments[length];
6562 return new this(A);
6563 } });
6564 };
6565
6566
6567 /***/ }),
6568 /* 241 */
6569 /***/ (function(module, exports, __webpack_require__) {
6570
6571 "use strict";
6572
6573 // https://tc39.github.io/proposal-setmap-offrom/
6574 var $export = __webpack_require__(7);
6575 var aFunction = __webpack_require__(38);
6576 var ctx = __webpack_require__(31);
6577 var forOf = __webpack_require__(98);
6578
6579 module.exports = function (COLLECTION) {
6580 $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) {
6581 var mapFn = arguments[1];
6582 var mapping, A, n, cb;
6583 aFunction(this);
6584 mapping = mapFn !== undefined;
6585 if (mapping) aFunction(mapFn);
6586 if (source == undefined) return new this();
6587 A = [];
6588 if (mapping) {
6589 n = 0;
6590 cb = ctx(mapFn, arguments[2], 2);
6591 forOf(source, false, function (nextItem) {
6592 A.push(cb(nextItem, n++));
6593 });
6594 } else {
6595 forOf(source, false, A.push, A);
6596 }
6597 return new this(A);
6598 } });
6599 };
6600
6601
6602 /***/ }),
6603 /* 242 */
6604 /***/ (function(module, exports, __webpack_require__) {
6605
6606 module.exports = __webpack_require__(259);
6607
6608 /***/ }),
6609 /* 243 */
6610 /***/ (function(module, exports, __webpack_require__) {
6611
6612 "use strict";
6613
6614
6615 var _interopRequireDefault = __webpack_require__(0);
6616
6617 var _Object$defineProperty = __webpack_require__(1);
6618
6619 _Object$defineProperty(exports, "__esModule", {
6620 value: true
6621 });
6622
6623 exports.default = void 0;
6624
6625 __webpack_require__(36);
6626
6627 var _isArray = _interopRequireDefault(__webpack_require__(82));
6628
6629 var _hasInstance = _interopRequireDefault(__webpack_require__(244));
6630
6631 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
6632
6633 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
6634
6635 var _get2 = _interopRequireDefault(__webpack_require__(23));
6636
6637 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
6638
6639 var InstanceType = /*#__PURE__*/function () {
6640 (0, _createClass2.default)(InstanceType, null, [{
6641 key: _hasInstance.default,
6642 value: function value(target) {
6643 /**
6644 * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
6645 * its give's opportunity to mange capabilities of instanceOf operator.
6646 * saving current class each time will give option later to handle instanceOf manually.
6647 */
6648 var result = (0, _get2.default)((0, _getPrototypeOf2.default)(InstanceType), _hasInstance.default, this).call(this, target); // Act normal when validate a class, which does not have instance type.
6649
6650 if (target && !target.constructor.getInstanceType) {
6651 return result;
6652 }
6653
6654 if (target) {
6655 if (!target.instanceTypes) {
6656 target.instanceTypes = [];
6657 }
6658
6659 if (!result) {
6660 if (this.getInstanceType() === target.constructor.getInstanceType()) {
6661 result = true;
6662 }
6663 }
6664
6665 if (result) {
6666 var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType();
6667
6668 if (-1 === target.instanceTypes.indexOf(name)) {
6669 target.instanceTypes.push(name);
6670 }
6671 }
6672 }
6673
6674 if (!result && target) {
6675 // Check if the given 'target', is instance of known types.
6676 result = target.instanceTypes && (0, _isArray.default)(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType());
6677 }
6678
6679 return result;
6680 }
6681 }]);
6682
6683 function InstanceType() {
6684 var _this = this;
6685
6686 (0, _classCallCheck2.default)(this, InstanceType);
6687 // Since anonymous classes sometimes do not get validated by babel, do it manually.
6688 var target = this instanceof InstanceType ? this.constructor : void 0;
6689 var prototypes = [];
6690
6691 while (target.__proto__ && target.__proto__.name) {
6692 prototypes.push(target.__proto__);
6693 target = target.__proto__;
6694 }
6695
6696 prototypes.reverse().forEach(function (proto) {
6697 return _this instanceof proto;
6698 });
6699 }
6700
6701 (0, _createClass2.default)(InstanceType, null, [{
6702 key: "getInstanceType",
6703 value: function getInstanceType() {
6704 elementorModules.ForceMethodImplementation();
6705 }
6706 }]);
6707 return InstanceType;
6708 }();
6709
6710 exports.default = InstanceType;
6711
6712 /***/ }),
6713 /* 244 */
6714 /***/ (function(module, exports, __webpack_require__) {
6715
6716 module.exports = __webpack_require__(245);
6717
6718 /***/ }),
6719 /* 245 */
6720 /***/ (function(module, exports, __webpack_require__) {
6721
6722 __webpack_require__(246);
6723 module.exports = __webpack_require__(63).f('hasInstance');
6724
6725
6726 /***/ }),
6727 /* 246 */
6728 /***/ (function(module, exports, __webpack_require__) {
6729
6730 "use strict";
6731
6732 var isObject = __webpack_require__(9);
6733 var getPrototypeOf = __webpack_require__(64);
6734 var HAS_INSTANCE = __webpack_require__(10)('hasInstance');
6735 var FunctionProto = Function.prototype;
6736 // 19.2.3.6 Function.prototype[@@hasInstance](V)
6737 if (!(HAS_INSTANCE in FunctionProto)) __webpack_require__(15).f(FunctionProto, HAS_INSTANCE, { value: function (O) {
6738 if (typeof this != 'function' || !isObject(O)) return false;
6739 if (!isObject(this.prototype)) return O instanceof this;
6740 // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:
6741 while (O = getPrototypeOf(O)) if (this.prototype === O) return true;
6742 return false;
6743 } });
6744
6745
6746 /***/ }),
6747 /* 247 */
6748 /***/ (function(module, exports, __webpack_require__) {
6749
6750 var _Object$defineProperty = __webpack_require__(1);
6751
6752 var _Object$defineProperties = __webpack_require__(300);
6753
6754 var _Object$getOwnPropertyDescriptors = __webpack_require__(319);
6755
6756 var _Object$getOwnPropertyDescriptor = __webpack_require__(126);
6757
6758 var _Object$getOwnPropertySymbols = __webpack_require__(323);
6759
6760 var _Object$keys = __webpack_require__(24);
6761
6762 var defineProperty = __webpack_require__(28);
6763
6764 function ownKeys(object, enumerableOnly) {
6765 var keys = _Object$keys(object);
6766
6767 if (_Object$getOwnPropertySymbols) {
6768 var symbols = _Object$getOwnPropertySymbols(object);
6769
6770 if (enumerableOnly) symbols = symbols.filter(function (sym) {
6771 return _Object$getOwnPropertyDescriptor(object, sym).enumerable;
6772 });
6773 keys.push.apply(keys, symbols);
6774 }
6775
6776 return keys;
6777 }
6778
6779 function _objectSpread2(target) {
6780 for (var i = 1; i < arguments.length; i++) {
6781 var source = arguments[i] != null ? arguments[i] : {};
6782
6783 if (i % 2) {
6784 ownKeys(Object(source), true).forEach(function (key) {
6785 defineProperty(target, key, source[key]);
6786 });
6787 } else if (_Object$getOwnPropertyDescriptors) {
6788 _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source));
6789 } else {
6790 ownKeys(Object(source)).forEach(function (key) {
6791 _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key));
6792 });
6793 }
6794 }
6795
6796 return target;
6797 }
6798
6799 module.exports = _objectSpread2;
6800
6801 /***/ }),
6802 /* 248 */,
6803 /* 249 */
6804 /***/ (function(module, exports, __webpack_require__) {
6805
6806 __webpack_require__(101);
6807 __webpack_require__(60);
6808 __webpack_require__(62);
6809 __webpack_require__(250);
6810 __webpack_require__(253);
6811 __webpack_require__(254);
6812 module.exports = __webpack_require__(6).Promise;
6813
6814
6815 /***/ }),
6816 /* 250 */
6817 /***/ (function(module, exports, __webpack_require__) {
6818
6819 "use strict";
6820
6821 var LIBRARY = __webpack_require__(46);
6822 var global = __webpack_require__(8);
6823 var ctx = __webpack_require__(31);
6824 var classof = __webpack_require__(97);
6825 var $export = __webpack_require__(7);
6826 var isObject = __webpack_require__(9);
6827 var aFunction = __webpack_require__(38);
6828 var anInstance = __webpack_require__(131);
6829 var forOf = __webpack_require__(98);
6830 var speciesConstructor = __webpack_require__(200);
6831 var task = __webpack_require__(201).set;
6832 var microtask = __webpack_require__(251)();
6833 var newPromiseCapabilityModule = __webpack_require__(142);
6834 var perform = __webpack_require__(202);
6835 var userAgent = __webpack_require__(252);
6836 var promiseResolve = __webpack_require__(203);
6837 var PROMISE = 'Promise';
6838 var TypeError = global.TypeError;
6839 var process = global.process;
6840 var versions = process && process.versions;
6841 var v8 = versions && versions.v8 || '';
6842 var $Promise = global[PROMISE];
6843 var isNode = classof(process) == 'process';
6844 var empty = function () { /* empty */ };
6845 var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
6846 var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;
6847
6848 var USE_NATIVE = !!function () {
6849 try {
6850 // correct subclassing with @@species support
6851 var promise = $Promise.resolve(1);
6852 var FakePromise = (promise.constructor = {})[__webpack_require__(10)('species')] = function (exec) {
6853 exec(empty, empty);
6854 };
6855 // unhandled rejections tracking support, NodeJS Promise without it fails @@species test
6856 return (isNode || typeof PromiseRejectionEvent == 'function')
6857 && promise.then(empty) instanceof FakePromise
6858 // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
6859 // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
6860 // we can't detect it synchronously, so just check versions
6861 && v8.indexOf('6.6') !== 0
6862 && userAgent.indexOf('Chrome/66') === -1;
6863 } catch (e) { /* empty */ }
6864 }();
6865
6866 // helpers
6867 var isThenable = function (it) {
6868 var then;
6869 return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
6870 };
6871 var notify = function (promise, isReject) {
6872 if (promise._n) return;
6873 promise._n = true;
6874 var chain = promise._c;
6875 microtask(function () {
6876 var value = promise._v;
6877 var ok = promise._s == 1;
6878 var i = 0;
6879 var run = function (reaction) {
6880 var handler = ok ? reaction.ok : reaction.fail;
6881 var resolve = reaction.resolve;
6882 var reject = reaction.reject;
6883 var domain = reaction.domain;
6884 var result, then, exited;
6885 try {
6886 if (handler) {
6887 if (!ok) {
6888 if (promise._h == 2) onHandleUnhandled(promise);
6889 promise._h = 1;
6890 }
6891 if (handler === true) result = value;
6892 else {
6893 if (domain) domain.enter();
6894 result = handler(value); // may throw
6895 if (domain) {
6896 domain.exit();
6897 exited = true;
6898 }
6899 }
6900 if (result === reaction.promise) {
6901 reject(TypeError('Promise-chain cycle'));
6902 } else if (then = isThenable(result)) {
6903 then.call(result, resolve, reject);
6904 } else resolve(result);
6905 } else reject(value);
6906 } catch (e) {
6907 if (domain && !exited) domain.exit();
6908 reject(e);
6909 }
6910 };
6911 while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
6912 promise._c = [];
6913 promise._n = false;
6914 if (isReject && !promise._h) onUnhandled(promise);
6915 });
6916 };
6917 var onUnhandled = function (promise) {
6918 task.call(global, function () {
6919 var value = promise._v;
6920 var unhandled = isUnhandled(promise);
6921 var result, handler, console;
6922 if (unhandled) {
6923 result = perform(function () {
6924 if (isNode) {
6925 process.emit('unhandledRejection', value, promise);
6926 } else if (handler = global.onunhandledrejection) {
6927 handler({ promise: promise, reason: value });
6928 } else if ((console = global.console) && console.error) {
6929 console.error('Unhandled promise rejection', value);
6930 }
6931 });
6932 // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
6933 promise._h = isNode || isUnhandled(promise) ? 2 : 1;
6934 } promise._a = undefined;
6935 if (unhandled && result.e) throw result.v;
6936 });
6937 };
6938 var isUnhandled = function (promise) {
6939 return promise._h !== 1 && (promise._a || promise._c).length === 0;
6940 };
6941 var onHandleUnhandled = function (promise) {
6942 task.call(global, function () {
6943 var handler;
6944 if (isNode) {
6945 process.emit('rejectionHandled', promise);
6946 } else if (handler = global.onrejectionhandled) {
6947 handler({ promise: promise, reason: promise._v });
6948 }
6949 });
6950 };
6951 var $reject = function (value) {
6952 var promise = this;
6953 if (promise._d) return;
6954 promise._d = true;
6955 promise = promise._w || promise; // unwrap
6956 promise._v = value;
6957 promise._s = 2;
6958 if (!promise._a) promise._a = promise._c.slice();
6959 notify(promise, true);
6960 };
6961 var $resolve = function (value) {
6962 var promise = this;
6963 var then;
6964 if (promise._d) return;
6965 promise._d = true;
6966 promise = promise._w || promise; // unwrap
6967 try {
6968 if (promise === value) throw TypeError("Promise can't be resolved itself");
6969 if (then = isThenable(value)) {
6970 microtask(function () {
6971 var wrapper = { _w: promise, _d: false }; // wrap
6972 try {
6973 then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
6974 } catch (e) {
6975 $reject.call(wrapper, e);
6976 }
6977 });
6978 } else {
6979 promise._v = value;
6980 promise._s = 1;
6981 notify(promise, false);
6982 }
6983 } catch (e) {
6984 $reject.call({ _w: promise, _d: false }, e); // wrap
6985 }
6986 };
6987
6988 // constructor polyfill
6989 if (!USE_NATIVE) {
6990 // 25.4.3.1 Promise(executor)
6991 $Promise = function Promise(executor) {
6992 anInstance(this, $Promise, PROMISE, '_h');
6993 aFunction(executor);
6994 Internal.call(this);
6995 try {
6996 executor(ctx($resolve, this, 1), ctx($reject, this, 1));
6997 } catch (err) {
6998 $reject.call(this, err);
6999 }
7000 };
7001 // eslint-disable-next-line no-unused-vars
7002 Internal = function Promise(executor) {
7003 this._c = []; // <- awaiting reactions
7004 this._a = undefined; // <- checked in isUnhandled reactions
7005 this._s = 0; // <- state
7006 this._d = false; // <- done
7007 this._v = undefined; // <- value
7008 this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
7009 this._n = false; // <- notify
7010 };
7011 Internal.prototype = __webpack_require__(132)($Promise.prototype, {
7012 // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
7013 then: function then(onFulfilled, onRejected) {
7014 var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
7015 reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
7016 reaction.fail = typeof onRejected == 'function' && onRejected;
7017 reaction.domain = isNode ? process.domain : undefined;
7018 this._c.push(reaction);
7019 if (this._a) this._a.push(reaction);
7020 if (this._s) notify(this, false);
7021 return reaction.promise;
7022 },
7023 // 25.4.5.1 Promise.prototype.catch(onRejected)
7024 'catch': function (onRejected) {
7025 return this.then(undefined, onRejected);
7026 }
7027 });
7028 OwnPromiseCapability = function () {
7029 var promise = new Internal();
7030 this.promise = promise;
7031 this.resolve = ctx($resolve, promise, 1);
7032 this.reject = ctx($reject, promise, 1);
7033 };
7034 newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
7035 return C === $Promise || C === Wrapper
7036 ? new OwnPromiseCapability(C)
7037 : newGenericPromiseCapability(C);
7038 };
7039 }
7040
7041 $export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });
7042 __webpack_require__(54)($Promise, PROMISE);
7043 __webpack_require__(223)(PROMISE);
7044 Wrapper = __webpack_require__(6)[PROMISE];
7045
7046 // statics
7047 $export($export.S + $export.F * !USE_NATIVE, PROMISE, {
7048 // 25.4.4.5 Promise.reject(r)
7049 reject: function reject(r) {
7050 var capability = newPromiseCapability(this);
7051 var $$reject = capability.reject;
7052 $$reject(r);
7053 return capability.promise;
7054 }
7055 });
7056 $export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
7057 // 25.4.4.6 Promise.resolve(x)
7058 resolve: function resolve(x) {
7059 return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);
7060 }
7061 });
7062 $export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(150)(function (iter) {
7063 $Promise.all(iter)['catch'](empty);
7064 })), PROMISE, {
7065 // 25.4.4.1 Promise.all(iterable)
7066 all: function all(iterable) {
7067 var C = this;
7068 var capability = newPromiseCapability(C);
7069 var resolve = capability.resolve;
7070 var reject = capability.reject;
7071 var result = perform(function () {
7072 var values = [];
7073 var index = 0;
7074 var remaining = 1;
7075 forOf(iterable, false, function (promise) {
7076 var $index = index++;
7077 var alreadyCalled = false;
7078 values.push(undefined);
7079 remaining++;
7080 C.resolve(promise).then(function (value) {
7081 if (alreadyCalled) return;
7082 alreadyCalled = true;
7083 values[$index] = value;
7084 --remaining || resolve(values);
7085 }, reject);
7086 });
7087 --remaining || resolve(values);
7088 });
7089 if (result.e) reject(result.v);
7090 return capability.promise;
7091 },
7092 // 25.4.4.4 Promise.race(iterable)
7093 race: function race(iterable) {
7094 var C = this;
7095 var capability = newPromiseCapability(C);
7096 var reject = capability.reject;
7097 var result = perform(function () {
7098 forOf(iterable, false, function (promise) {
7099 C.resolve(promise).then(capability.resolve, reject);
7100 });
7101 });
7102 if (result.e) reject(result.v);
7103 return capability.promise;
7104 }
7105 });
7106
7107
7108 /***/ }),
7109 /* 251 */
7110 /***/ (function(module, exports, __webpack_require__) {
7111
7112 var global = __webpack_require__(8);
7113 var macrotask = __webpack_require__(201).set;
7114 var Observer = global.MutationObserver || global.WebKitMutationObserver;
7115 var process = global.process;
7116 var Promise = global.Promise;
7117 var isNode = __webpack_require__(55)(process) == 'process';
7118
7119 module.exports = function () {
7120 var head, last, notify;
7121
7122 var flush = function () {
7123 var parent, fn;
7124 if (isNode && (parent = process.domain)) parent.exit();
7125 while (head) {
7126 fn = head.fn;
7127 head = head.next;
7128 try {
7129 fn();
7130 } catch (e) {
7131 if (head) notify();
7132 else last = undefined;
7133 throw e;
7134 }
7135 } last = undefined;
7136 if (parent) parent.enter();
7137 };
7138
7139 // Node.js
7140 if (isNode) {
7141 notify = function () {
7142 process.nextTick(flush);
7143 };
7144 // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339
7145 } else if (Observer && !(global.navigator && global.navigator.standalone)) {
7146 var toggle = true;
7147 var node = document.createTextNode('');
7148 new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
7149 notify = function () {
7150 node.data = toggle = !toggle;
7151 };
7152 // environments with maybe non-completely correct, but existent Promise
7153 } else if (Promise && Promise.resolve) {
7154 // Promise.resolve without an argument throws an error in LG WebOS 2
7155 var promise = Promise.resolve(undefined);
7156 notify = function () {
7157 promise.then(flush);
7158 };
7159 // for other environments - macrotask based on:
7160 // - setImmediate
7161 // - MessageChannel
7162 // - window.postMessag
7163 // - onreadystatechange
7164 // - setTimeout
7165 } else {
7166 notify = function () {
7167 // strange IE + webpack dev server bug - use .call(global)
7168 macrotask.call(global, flush);
7169 };
7170 }
7171
7172 return function (fn) {
7173 var task = { fn: fn, next: undefined };
7174 if (last) last.next = task;
7175 if (!head) {
7176 head = task;
7177 notify();
7178 } last = task;
7179 };
7180 };
7181
7182
7183 /***/ }),
7184 /* 252 */
7185 /***/ (function(module, exports, __webpack_require__) {
7186
7187 var global = __webpack_require__(8);
7188 var navigator = global.navigator;
7189
7190 module.exports = navigator && navigator.userAgent || '';
7191
7192
7193 /***/ }),
7194 /* 253 */
7195 /***/ (function(module, exports, __webpack_require__) {
7196
7197 "use strict";
7198 // https://github.com/tc39/proposal-promise-finally
7199
7200 var $export = __webpack_require__(7);
7201 var core = __webpack_require__(6);
7202 var global = __webpack_require__(8);
7203 var speciesConstructor = __webpack_require__(200);
7204 var promiseResolve = __webpack_require__(203);
7205
7206 $export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {
7207 var C = speciesConstructor(this, core.Promise || global.Promise);
7208 var isFunction = typeof onFinally == 'function';
7209 return this.then(
7210 isFunction ? function (x) {
7211 return promiseResolve(C, onFinally()).then(function () { return x; });
7212 } : onFinally,
7213 isFunction ? function (e) {
7214 return promiseResolve(C, onFinally()).then(function () { throw e; });
7215 } : onFinally
7216 );
7217 } });
7218
7219
7220 /***/ }),
7221 /* 254 */
7222 /***/ (function(module, exports, __webpack_require__) {
7223
7224 "use strict";
7225
7226 // https://github.com/tc39/proposal-promise-try
7227 var $export = __webpack_require__(7);
7228 var newPromiseCapability = __webpack_require__(142);
7229 var perform = __webpack_require__(202);
7230
7231 $export($export.S, 'Promise', { 'try': function (callbackfn) {
7232 var promiseCapability = newPromiseCapability.f(this);
7233 var result = perform(callbackfn);
7234 (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
7235 return promiseCapability.promise;
7236 } });
7237
7238
7239 /***/ }),
7240 /* 255 */
7241 /***/ (function(module, exports, __webpack_require__) {
7242
7243 // 9.4.2.3 ArraySpeciesCreate(originalArray, length)
7244 var speciesConstructor = __webpack_require__(256);
7245
7246 module.exports = function (original, length) {
7247 return new (speciesConstructor(original))(length);
7248 };
7249
7250
7251 /***/ }),
7252 /* 256 */
7253 /***/ (function(module, exports, __webpack_require__) {
7254
7255 var isObject = __webpack_require__(9);
7256 var isArray = __webpack_require__(96);
7257 var SPECIES = __webpack_require__(10)('species');
7258
7259 module.exports = function (original) {
7260 var C;
7261 if (isArray(original)) {
7262 C = original.constructor;
7263 // cross-realm fallback
7264 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
7265 if (isObject(C)) {
7266 C = C[SPECIES];
7267 if (C === null) C = undefined;
7268 }
7269 } return C === undefined ? Array : C;
7270 };
7271
7272
7273 /***/ }),
7274 /* 257 */
7275 /***/ (function(module, exports, __webpack_require__) {
7276
7277 var _Array$isArray = __webpack_require__(82);
7278
7279 function _arrayWithHoles(arr) {
7280 if (_Array$isArray(arr)) return arr;
7281 }
7282
7283 module.exports = _arrayWithHoles;
7284
7285 /***/ }),
7286 /* 258 */
7287 /***/ (function(module, exports, __webpack_require__) {
7288
7289 var _getIterator = __webpack_require__(242);
7290
7291 var _isIterable = __webpack_require__(215);
7292
7293 var _Symbol = __webpack_require__(111);
7294
7295 function _iterableToArrayLimit(arr, i) {
7296 if (typeof _Symbol === "undefined" || !_isIterable(Object(arr))) return;
7297 var _arr = [];
7298 var _n = true;
7299 var _d = false;
7300 var _e = undefined;
7301
7302 try {
7303 for (var _i = _getIterator(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {
7304 _arr.push(_s.value);
7305
7306 if (i && _arr.length === i) break;
7307 }
7308 } catch (err) {
7309 _d = true;
7310 _e = err;
7311 } finally {
7312 try {
7313 if (!_n && _i["return"] != null) _i["return"]();
7314 } finally {
7315 if (_d) throw _e;
7316 }
7317 }
7318
7319 return _arr;
7320 }
7321
7322 module.exports = _iterableToArrayLimit;
7323
7324 /***/ }),
7325 /* 259 */
7326 /***/ (function(module, exports, __webpack_require__) {
7327
7328 __webpack_require__(62);
7329 __webpack_require__(60);
7330 module.exports = __webpack_require__(260);
7331
7332
7333 /***/ }),
7334 /* 260 */
7335 /***/ (function(module, exports, __webpack_require__) {
7336
7337 var anObject = __webpack_require__(12);
7338 var get = __webpack_require__(119);
7339 module.exports = __webpack_require__(6).getIterator = function (it) {
7340 var iterFn = get(it);
7341 if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
7342 return anObject(iterFn.call(it));
7343 };
7344
7345
7346 /***/ }),
7347 /* 261 */
7348 /***/ (function(module, exports) {
7349
7350 function _nonIterableRest() {
7351 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7352 }
7353
7354 module.exports = _nonIterableRest;
7355
7356 /***/ }),
7357 /* 262 */
7358 /***/ (function(module, exports, __webpack_require__) {
7359
7360 __webpack_require__(263);
7361 module.exports = __webpack_require__(6).Object.entries;
7362
7363
7364 /***/ }),
7365 /* 263 */
7366 /***/ (function(module, exports, __webpack_require__) {
7367
7368 // https://github.com/tc39/proposal-object-values-entries
7369 var $export = __webpack_require__(7);
7370 var $entries = __webpack_require__(184)(true);
7371
7372 $export($export.S, 'Object', {
7373 entries: function entries(it) {
7374 return $entries(it);
7375 }
7376 });
7377
7378
7379 /***/ }),
7380 /* 264 */
7381 /***/ (function(module, exports, __webpack_require__) {
7382
7383 "use strict";
7384
7385 var $at = __webpack_require__(137)(true);
7386
7387 // 21.1.3.27 String.prototype[@@iterator]()
7388 __webpack_require__(193)(String, 'String', function (iterated) {
7389 this._t = String(iterated); // target
7390 this._i = 0; // next index
7391 // 21.1.5.2.1 %StringIteratorPrototype%.next()
7392 }, function () {
7393 var O = this._t;
7394 var index = this._i;
7395 var point;
7396 if (index >= O.length) return { value: undefined, done: true };
7397 point = $at(O, index);
7398 this._i += point.length;
7399 return { value: point, done: false };
7400 });
7401
7402
7403 /***/ }),
7404 /* 265 */
7405 /***/ (function(module, exports, __webpack_require__) {
7406
7407 "use strict";
7408
7409
7410 var _Object$defineProperty = __webpack_require__(1);
7411
7412 _Object$defineProperty(exports, "__esModule", {
7413 value: true
7414 });
7415
7416 exports.default = void 0;
7417 var userAgent = navigator.userAgent;
7418 var _default = {
7419 webkit: -1 !== userAgent.indexOf('AppleWebKit'),
7420 firefox: -1 !== userAgent.indexOf('Firefox'),
7421 ie: /Trident|MSIE/.test(userAgent),
7422 edge: -1 !== userAgent.indexOf('Edge'),
7423 mac: -1 !== userAgent.indexOf('Macintosh'),
7424 safari: /^((?!chrome|android).)*safari/i.test(userAgent)
7425 };
7426 exports.default = _default;
7427
7428 /***/ }),
7429 /* 266 */,
7430 /* 267 */,
7431 /* 268 */,
7432 /* 269 */,
7433 /* 270 */
7434 /***/ (function(module, exports, __webpack_require__) {
7435
7436 "use strict";
7437 // 21.1.3.18 String.prototype.startsWith(searchString [, position ])
7438
7439 var $export = __webpack_require__(37);
7440 var toLength = __webpack_require__(42);
7441 var context = __webpack_require__(205);
7442 var STARTS_WITH = 'startsWith';
7443 var $startsWith = ''[STARTS_WITH];
7444
7445 $export($export.P + $export.F * __webpack_require__(206)(STARTS_WITH), 'String', {
7446 startsWith: function startsWith(searchString /* , position = 0 */) {
7447 var that = context(this, searchString, STARTS_WITH);
7448 var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));
7449 var search = String(searchString);
7450 return $startsWith
7451 ? $startsWith.call(that, search, index)
7452 : that.slice(index, index + search.length) === search;
7453 }
7454 });
7455
7456
7457 /***/ }),
7458 /* 271 */
7459 /***/ (function(module, exports, __webpack_require__) {
7460
7461 "use strict";
7462
7463
7464 var _interopRequireDefault = __webpack_require__(0);
7465
7466 var _Object$defineProperty = __webpack_require__(1);
7467
7468 _Object$defineProperty(exports, "__esModule", {
7469 value: true
7470 });
7471
7472 exports.default = exports.After = void 0;
7473
7474 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7475
7476 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7477
7478 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7479
7480 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7481
7482 var _base = _interopRequireDefault(__webpack_require__(308));
7483
7484 var After = /*#__PURE__*/function (_Base) {
7485 (0, _inherits2.default)(After, _Base);
7486
7487 var _super = (0, _createSuper2.default)(After);
7488
7489 function After() {
7490 (0, _classCallCheck2.default)(this, After);
7491 return _super.apply(this, arguments);
7492 }
7493
7494 (0, _createClass2.default)(After, [{
7495 key: "register",
7496 value: function register() {
7497 $e.hooks.registerUIAfter(this);
7498 }
7499 }]);
7500 return After;
7501 }(_base.default);
7502
7503 exports.After = After;
7504 var _default = After;
7505 exports.default = _default;
7506
7507 /***/ }),
7508 /* 272 */,
7509 /* 273 */
7510 /***/ (function(module, exports, __webpack_require__) {
7511
7512 // 21.2.5.3 get RegExp.prototype.flags()
7513 if (__webpack_require__(27) && /./g.flags != 'g') __webpack_require__(44).f(RegExp.prototype, 'flags', {
7514 configurable: true,
7515 get: __webpack_require__(103)
7516 });
7517
7518
7519 /***/ }),
7520 /* 274 */,
7521 /* 275 */
7522 /***/ (function(module, exports, __webpack_require__) {
7523
7524 module.exports = __webpack_require__(276);
7525
7526 /***/ }),
7527 /* 276 */
7528 /***/ (function(module, exports, __webpack_require__) {
7529
7530 __webpack_require__(101);
7531 __webpack_require__(62);
7532 __webpack_require__(277);
7533 __webpack_require__(279);
7534 __webpack_require__(280);
7535 module.exports = __webpack_require__(6).WeakMap;
7536
7537
7538 /***/ }),
7539 /* 277 */
7540 /***/ (function(module, exports, __webpack_require__) {
7541
7542 "use strict";
7543
7544 var global = __webpack_require__(8);
7545 var each = __webpack_require__(153)(0);
7546 var redefine = __webpack_require__(93);
7547 var meta = __webpack_require__(81);
7548 var assign = __webpack_require__(218);
7549 var weak = __webpack_require__(278);
7550 var isObject = __webpack_require__(9);
7551 var validate = __webpack_require__(133);
7552 var NATIVE_WEAK_MAP = __webpack_require__(133);
7553 var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
7554 var WEAK_MAP = 'WeakMap';
7555 var getWeak = meta.getWeak;
7556 var isExtensible = Object.isExtensible;
7557 var uncaughtFrozenStore = weak.ufstore;
7558 var InternalMap;
7559
7560 var wrapper = function (get) {
7561 return function WeakMap() {
7562 return get(this, arguments.length > 0 ? arguments[0] : undefined);
7563 };
7564 };
7565
7566 var methods = {
7567 // 23.3.3.3 WeakMap.prototype.get(key)
7568 get: function get(key) {
7569 if (isObject(key)) {
7570 var data = getWeak(key);
7571 if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);
7572 return data ? data[this._i] : undefined;
7573 }
7574 },
7575 // 23.3.3.5 WeakMap.prototype.set(key, value)
7576 set: function set(key, value) {
7577 return weak.def(validate(this, WEAK_MAP), key, value);
7578 }
7579 };
7580
7581 // 23.3 WeakMap Objects
7582 var $WeakMap = module.exports = __webpack_require__(239)(WEAK_MAP, wrapper, methods, weak, true, true);
7583
7584 // IE11 WeakMap frozen keys fix
7585 if (NATIVE_WEAK_MAP && IS_IE11) {
7586 InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
7587 assign(InternalMap.prototype, methods);
7588 meta.NEED = true;
7589 each(['delete', 'has', 'get', 'set'], function (key) {
7590 var proto = $WeakMap.prototype;
7591 var method = proto[key];
7592 redefine(proto, key, function (a, b) {
7593 // store frozen objects on internal weakmap shim
7594 if (isObject(a) && !isExtensible(a)) {
7595 if (!this._f) this._f = new InternalMap();
7596 var result = this._f[key](a, b);
7597 return key == 'set' ? this : result;
7598 // store all the rest on native weakmap
7599 } return method.call(this, a, b);
7600 });
7601 });
7602 }
7603
7604
7605 /***/ }),
7606 /* 278 */
7607 /***/ (function(module, exports, __webpack_require__) {
7608
7609 "use strict";
7610
7611 var redefineAll = __webpack_require__(132);
7612 var getWeak = __webpack_require__(81).getWeak;
7613 var anObject = __webpack_require__(12);
7614 var isObject = __webpack_require__(9);
7615 var anInstance = __webpack_require__(131);
7616 var forOf = __webpack_require__(98);
7617 var createArrayMethod = __webpack_require__(153);
7618 var $has = __webpack_require__(19);
7619 var validate = __webpack_require__(133);
7620 var arrayFind = createArrayMethod(5);
7621 var arrayFindIndex = createArrayMethod(6);
7622 var id = 0;
7623
7624 // fallback for uncaught frozen keys
7625 var uncaughtFrozenStore = function (that) {
7626 return that._l || (that._l = new UncaughtFrozenStore());
7627 };
7628 var UncaughtFrozenStore = function () {
7629 this.a = [];
7630 };
7631 var findUncaughtFrozen = function (store, key) {
7632 return arrayFind(store.a, function (it) {
7633 return it[0] === key;
7634 });
7635 };
7636 UncaughtFrozenStore.prototype = {
7637 get: function (key) {
7638 var entry = findUncaughtFrozen(this, key);
7639 if (entry) return entry[1];
7640 },
7641 has: function (key) {
7642 return !!findUncaughtFrozen(this, key);
7643 },
7644 set: function (key, value) {
7645 var entry = findUncaughtFrozen(this, key);
7646 if (entry) entry[1] = value;
7647 else this.a.push([key, value]);
7648 },
7649 'delete': function (key) {
7650 var index = arrayFindIndex(this.a, function (it) {
7651 return it[0] === key;
7652 });
7653 if (~index) this.a.splice(index, 1);
7654 return !!~index;
7655 }
7656 };
7657
7658 module.exports = {
7659 getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
7660 var C = wrapper(function (that, iterable) {
7661 anInstance(that, C, NAME, '_i');
7662 that._t = NAME; // collection type
7663 that._i = id++; // collection id
7664 that._l = undefined; // leak store for uncaught frozen objects
7665 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
7666 });
7667 redefineAll(C.prototype, {
7668 // 23.3.3.2 WeakMap.prototype.delete(key)
7669 // 23.4.3.3 WeakSet.prototype.delete(value)
7670 'delete': function (key) {
7671 if (!isObject(key)) return false;
7672 var data = getWeak(key);
7673 if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);
7674 return data && $has(data, this._i) && delete data[this._i];
7675 },
7676 // 23.3.3.4 WeakMap.prototype.has(key)
7677 // 23.4.3.4 WeakSet.prototype.has(value)
7678 has: function has(key) {
7679 if (!isObject(key)) return false;
7680 var data = getWeak(key);
7681 if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);
7682 return data && $has(data, this._i);
7683 }
7684 });
7685 return C;
7686 },
7687 def: function (that, key, value) {
7688 var data = getWeak(anObject(key), true);
7689 if (data === true) uncaughtFrozenStore(that).set(key, value);
7690 else data[that._i] = value;
7691 return that;
7692 },
7693 ufstore: uncaughtFrozenStore
7694 };
7695
7696
7697 /***/ }),
7698 /* 279 */
7699 /***/ (function(module, exports, __webpack_require__) {
7700
7701 // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of
7702 __webpack_require__(240)('WeakMap');
7703
7704
7705 /***/ }),
7706 /* 280 */
7707 /***/ (function(module, exports, __webpack_require__) {
7708
7709 // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from
7710 __webpack_require__(241)('WeakMap');
7711
7712
7713 /***/ }),
7714 /* 281 */,
7715 /* 282 */,
7716 /* 283 */,
7717 /* 284 */,
7718 /* 285 */
7719 /***/ (function(module, exports, __webpack_require__) {
7720
7721 "use strict";
7722
7723
7724 var _interopRequireDefault = __webpack_require__(0);
7725
7726 var _Object$defineProperty = __webpack_require__(1);
7727
7728 _Object$defineProperty(exports, "__esModule", {
7729 value: true
7730 });
7731
7732 exports.default = exports.Base = void 0;
7733
7734 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7735
7736 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7737
7738 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7739
7740 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7741
7742 var _hookBase = _interopRequireDefault(__webpack_require__(291));
7743
7744 var Base = /*#__PURE__*/function (_HookBase) {
7745 (0, _inherits2.default)(Base, _HookBase);
7746
7747 var _super = (0, _createSuper2.default)(Base);
7748
7749 function Base() {
7750 (0, _classCallCheck2.default)(this, Base);
7751 return _super.apply(this, arguments);
7752 }
7753
7754 (0, _createClass2.default)(Base, [{
7755 key: "getType",
7756 value: function getType() {
7757 return 'data';
7758 }
7759 }]);
7760 return Base;
7761 }(_hookBase.default);
7762
7763 exports.Base = Base;
7764 var _default = Base;
7765 exports.default = _default;
7766
7767 /***/ }),
7768 /* 286 */
7769 /***/ (function(module, exports, __webpack_require__) {
7770
7771 "use strict";
7772
7773
7774 var _interopRequireWildcard = __webpack_require__(39);
7775
7776 var _interopRequireDefault = __webpack_require__(0);
7777
7778 var _Object$defineProperty = __webpack_require__(1);
7779
7780 _Object$defineProperty(exports, "__esModule", {
7781 value: true
7782 });
7783
7784 exports.default = void 0;
7785
7786 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7787
7788 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7789
7790 var _get2 = _interopRequireDefault(__webpack_require__(23));
7791
7792 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
7793
7794 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7795
7796 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7797
7798 var _componentBase = _interopRequireDefault(__webpack_require__(79));
7799
7800 var commands = _interopRequireWildcard(__webpack_require__(315));
7801
7802 var ComponentModalBase = /*#__PURE__*/function (_ComponentBase) {
7803 (0, _inherits2.default)(ComponentModalBase, _ComponentBase);
7804
7805 var _super = (0, _createSuper2.default)(ComponentModalBase);
7806
7807 function ComponentModalBase() {
7808 (0, _classCallCheck2.default)(this, ComponentModalBase);
7809 return _super.apply(this, arguments);
7810 }
7811
7812 (0, _createClass2.default)(ComponentModalBase, [{
7813 key: "registerAPI",
7814 value: function registerAPI() {
7815 var _this = this;
7816
7817 (0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "registerAPI", this).call(this);
7818 $e.shortcuts.register('esc', {
7819 scopes: [this.getNamespace()],
7820 callback: function callback() {
7821 return _this.close();
7822 }
7823 });
7824 }
7825 }, {
7826 key: "defaultCommands",
7827 value: function defaultCommands() {
7828 return this.importCommands(commands);
7829 }
7830 }, {
7831 key: "defaultRoutes",
7832 value: function defaultRoutes() {
7833 return {
7834 '': function _() {
7835 /* Nothing to do, it's already rendered. */
7836 }
7837 };
7838 }
7839 }, {
7840 key: "open",
7841 value: function open() {
7842 var _this2 = this;
7843
7844 if (!this.layout) {
7845 var layout = this.getModalLayout();
7846 this.layout = new layout({
7847 component: this
7848 });
7849 this.layout.getModal().on('hide', function () {
7850 return _this2.close();
7851 });
7852 }
7853
7854 this.layout.showModal();
7855 return true;
7856 }
7857 }, {
7858 key: "close",
7859 value: function close() {
7860 if (!(0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "close", this).call(this)) {
7861 return false;
7862 }
7863
7864 this.layout.getModal().hide();
7865 return true;
7866 }
7867 }, {
7868 key: "getModalLayout",
7869 value: function getModalLayout() {
7870 elementorModules.ForceMethodImplementation();
7871 }
7872 }]);
7873 return ComponentModalBase;
7874 }(_componentBase.default);
7875
7876 exports.default = ComponentModalBase;
7877
7878 /***/ }),
7879 /* 287 */
7880 /***/ (function(module, exports, __webpack_require__) {
7881
7882 __webpack_require__(288);
7883 module.exports = __webpack_require__(6).Object.assign;
7884
7885
7886 /***/ }),
7887 /* 288 */
7888 /***/ (function(module, exports, __webpack_require__) {
7889
7890 // 19.1.3.1 Object.assign(target, source)
7891 var $export = __webpack_require__(7);
7892
7893 $export($export.S + $export.F, 'Object', { assign: __webpack_require__(218) });
7894
7895
7896 /***/ }),
7897 /* 289 */,
7898 /* 290 */,
7899 /* 291 */
7900 /***/ (function(module, exports, __webpack_require__) {
7901
7902 "use strict";
7903
7904
7905 var _interopRequireDefault = __webpack_require__(0);
7906
7907 var _Object$defineProperty = __webpack_require__(1);
7908
7909 _Object$defineProperty(exports, "__esModule", {
7910 value: true
7911 });
7912
7913 exports.default = void 0;
7914
7915 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7916
7917 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7918
7919 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
7920
7921 var HookBase = /*#__PURE__*/function () {
7922 /**
7923 * Callback type, eg ( hook, event ).
7924 *
7925 * @type {string}
7926 */
7927
7928 /**
7929 * Full command address, that will hook the callback.
7930 *
7931 * @type (string)
7932 */
7933
7934 /**
7935 * Unique id of the callback.
7936 *
7937 * @type {string}
7938 */
7939
7940 /**
7941 * Function constructor().
7942 *
7943 * Create callback base.
7944 */
7945 function HookBase() {
7946 (0, _classCallCheck2.default)(this, HookBase);
7947 (0, _defineProperty2.default)(this, "type", void 0);
7948 (0, _defineProperty2.default)(this, "command", void 0);
7949 (0, _defineProperty2.default)(this, "id", void 0);
7950 this.initialize();
7951 this.type = this.getType();
7952 this.command = this.getCommand();
7953 this.id = this.getId();
7954 }
7955 /**
7956 * Function initialize().
7957 *
7958 * Called after creation of the base, used for initialize extras.
7959 * Without expending constructor.
7960 */
7961
7962
7963 (0, _createClass2.default)(HookBase, [{
7964 key: "initialize",
7965 value: function initialize() {}
7966 /**
7967 * Function register().
7968 *
7969 * Used to register the callback.
7970 *
7971 * @throws {Error}
7972 */
7973
7974 }, {
7975 key: "register",
7976 value: function register() {
7977 elementorModules.ForceMethodImplementation();
7978 }
7979 /**
7980 * Function getType().
7981 *
7982 * Get type eg: ( hook, event, etc ... ).
7983 *
7984 * @returns {string}
7985 *
7986 * @throws {Error}
7987 */
7988
7989 }, {
7990 key: "getType",
7991 value: function getType() {
7992 elementorModules.ForceMethodImplementation();
7993 }
7994 /**
7995 * Function getCommand().
7996 *
7997 * Returns the full command path for callback binding.
7998 *
7999 * Supports array of strings ( commands ).
8000 *
8001 * @returns {string}
8002 *
8003 * @throws {Error}
8004 */
8005
8006 }, {
8007 key: "getCommand",
8008 value: function getCommand() {
8009 elementorModules.ForceMethodImplementation();
8010 }
8011 /**
8012 * Function getId().
8013 *
8014 * Returns command id for the hook (should be unique).
8015 *
8016 * @returns {string}
8017 *
8018 * @throws {Error}
8019 */
8020
8021 }, {
8022 key: "getId",
8023 value: function getId() {
8024 elementorModules.ForceMethodImplementation();
8025 }
8026 /**
8027 * Function getContainerType().
8028 *
8029 * Bind eContainer type to callback.
8030 *
8031 * Used to gain performance.
8032 *
8033 * @return {string} type
8034 */
8035
8036 }, {
8037 key: "getContainerType",
8038 value: function getContainerType() {}
8039 /**
8040 * Function getConditions().
8041 *
8042 * Condition for running the callback, if true, call to apply().
8043 *
8044 * @param [args={}]
8045 * @param [result=*]
8046 *
8047 * @returns {boolean}
8048 */
8049
8050 }, {
8051 key: "getConditions",
8052 value: function getConditions() {
8053 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8054 var result = arguments.length > 1 ? arguments[1] : undefined;
8055 // eslint-disable-line no-unused-vars
8056 return true;
8057 }
8058 /**
8059 * Function apply().
8060 *
8061 * Apply the callback, ( The actual affect of the callback ).
8062 *
8063 * @param [args={}]
8064 *
8065 * @returns {*}
8066 */
8067
8068 }, {
8069 key: "apply",
8070 value: function apply(args) {
8071 // eslint-disable-line no-unused-vars
8072 elementorModules.ForceMethodImplementation();
8073 }
8074 /**
8075 * Function run().
8076 *
8077 * Run the callback.
8078 *
8079 * @param {*} args
8080 *
8081 * @returns {*}
8082 */
8083
8084 }, {
8085 key: "run",
8086 value: function run() {
8087 var _ref = arguments.length <= 0 ? undefined : arguments[0],
8088 _ref$options = _ref.options,
8089 options = _ref$options === void 0 ? {} : _ref$options; // Disable callback if requested by args.options.
8090
8091
8092 if (options.callbacks && false === options.callbacks[this.id]) {
8093 return true;
8094 }
8095
8096 if (this.getConditions.apply(this, arguments)) {
8097 if ($e.devTools) {
8098 $e.devTools.log.callbacks().active(this.type, this.command, this.id);
8099 }
8100
8101 return this.apply.apply(this, arguments);
8102 }
8103
8104 return true;
8105 }
8106 }]);
8107 return HookBase;
8108 }();
8109
8110 exports.default = HookBase;
8111
8112 /***/ }),
8113 /* 292 */
8114 /***/ (function(module, exports, __webpack_require__) {
8115
8116 var global = __webpack_require__(17);
8117 var inheritIfRequired = __webpack_require__(304);
8118 var dP = __webpack_require__(44).f;
8119 var gOPN = __webpack_require__(306).f;
8120 var isRegExp = __webpack_require__(120);
8121 var $flags = __webpack_require__(103);
8122 var $RegExp = global.RegExp;
8123 var Base = $RegExp;
8124 var proto = $RegExp.prototype;
8125 var re1 = /a/g;
8126 var re2 = /a/g;
8127 // "new" creates a new object, old webkit buggy here
8128 var CORRECT_NEW = new $RegExp(re1) !== re1;
8129
8130 if (__webpack_require__(27) && (!CORRECT_NEW || __webpack_require__(33)(function () {
8131 re2[__webpack_require__(11)('match')] = false;
8132 // RegExp constructor can alter flags and IsRegExp works correct with @@match
8133 return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';
8134 }))) {
8135 $RegExp = function RegExp(p, f) {
8136 var tiRE = this instanceof $RegExp;
8137 var piRE = isRegExp(p);
8138 var fiU = f === undefined;
8139 return !tiRE && piRE && p.constructor === $RegExp && fiU ? p
8140 : inheritIfRequired(CORRECT_NEW
8141 ? new Base(piRE && !fiU ? p.source : p, f)
8142 : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)
8143 , tiRE ? this : proto, $RegExp);
8144 };
8145 var proxy = function (key) {
8146 key in $RegExp || dP($RegExp, key, {
8147 configurable: true,
8148 get: function () { return Base[key]; },
8149 set: function (it) { Base[key] = it; }
8150 });
8151 };
8152 for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);
8153 proto.constructor = $RegExp;
8154 $RegExp.prototype = proto;
8155 __webpack_require__(35)(global, 'RegExp', $RegExp);
8156 }
8157
8158 __webpack_require__(303)('RegExp');
8159
8160
8161 /***/ }),
8162 /* 293 */,
8163 /* 294 */,
8164 /* 295 */,
8165 /* 296 */,
8166 /* 297 */,
8167 /* 298 */,
8168 /* 299 */,
8169 /* 300 */
8170 /***/ (function(module, exports, __webpack_require__) {
8171
8172 module.exports = __webpack_require__(301);
8173
8174 /***/ }),
8175 /* 301 */
8176 /***/ (function(module, exports, __webpack_require__) {
8177
8178 __webpack_require__(302);
8179 var $Object = __webpack_require__(6).Object;
8180 module.exports = function defineProperties(T, D) {
8181 return $Object.defineProperties(T, D);
8182 };
8183
8184
8185 /***/ }),
8186 /* 302 */
8187 /***/ (function(module, exports, __webpack_require__) {
8188
8189 var $export = __webpack_require__(7);
8190 // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
8191 $export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperties: __webpack_require__(136) });
8192
8193
8194 /***/ }),
8195 /* 303 */
8196 /***/ (function(module, exports, __webpack_require__) {
8197
8198 "use strict";
8199
8200 var global = __webpack_require__(17);
8201 var dP = __webpack_require__(44);
8202 var DESCRIPTORS = __webpack_require__(27);
8203 var SPECIES = __webpack_require__(11)('species');
8204
8205 module.exports = function (KEY) {
8206 var C = global[KEY];
8207 if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
8208 configurable: true,
8209 get: function () { return this; }
8210 });
8211 };
8212
8213
8214 /***/ }),
8215 /* 304 */
8216 /***/ (function(module, exports, __webpack_require__) {
8217
8218 var isObject = __webpack_require__(29);
8219 var setPrototypeOf = __webpack_require__(330).set;
8220 module.exports = function (that, target, C) {
8221 var S = target.constructor;
8222 var P;
8223 if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
8224 setPrototypeOf(that, P);
8225 } return that;
8226 };
8227
8228
8229 /***/ }),
8230 /* 305 */
8231 /***/ (function(module, exports, __webpack_require__) {
8232
8233 var pIE = __webpack_require__(331);
8234 var createDesc = __webpack_require__(99);
8235 var toIObject = __webpack_require__(102);
8236 var toPrimitive = __webpack_require__(121);
8237 var has = __webpack_require__(61);
8238 var IE8_DOM_DEFINE = __webpack_require__(125);
8239 var gOPD = Object.getOwnPropertyDescriptor;
8240
8241 exports.f = __webpack_require__(27) ? gOPD : function getOwnPropertyDescriptor(O, P) {
8242 O = toIObject(O);
8243 P = toPrimitive(P, true);
8244 if (IE8_DOM_DEFINE) try {
8245 return gOPD(O, P);
8246 } catch (e) { /* empty */ }
8247 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
8248 };
8249
8250
8251 /***/ }),
8252 /* 306 */
8253 /***/ (function(module, exports, __webpack_require__) {
8254
8255 // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
8256 var $keys = __webpack_require__(211);
8257 var hiddenKeys = __webpack_require__(144).concat('length', 'prototype');
8258
8259 exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
8260 return $keys(O, hiddenKeys);
8261 };
8262
8263
8264 /***/ }),
8265 /* 307 */
8266 /***/ (function(module, exports, __webpack_require__) {
8267
8268 "use strict";
8269
8270
8271 var _interopRequireDefault = __webpack_require__(0);
8272
8273 var _Object$defineProperty = __webpack_require__(1);
8274
8275 _Object$defineProperty(exports, "__esModule", {
8276 value: true
8277 });
8278
8279 exports.default = void 0;
8280
8281 var _assign = _interopRequireDefault(__webpack_require__(147));
8282
8283 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8284
8285 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(47));
8286
8287 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8288
8289 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8290
8291 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8292
8293 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
8294
8295 var _commandBase = _interopRequireDefault(__webpack_require__(20));
8296
8297 var CommandData = /*#__PURE__*/function (_CommandBase) {
8298 (0, _inherits2.default)(CommandData, _CommandBase);
8299
8300 var _super = (0, _createSuper2.default)(CommandData);
8301
8302 (0, _createClass2.default)(CommandData, null, [{
8303 key: "getInstanceType",
8304
8305 /**
8306 * Data returned from remote.
8307 *
8308 * @type {*}
8309 */
8310
8311 /**
8312 * Fetch type.
8313 *
8314 * @type {DataTypes}
8315 */
8316 value: function getInstanceType() {
8317 return 'CommandData';
8318 }
8319 }]);
8320
8321 function CommandData(args) {
8322 var _this$args$options;
8323
8324 var _this;
8325
8326 var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.data;
8327 (0, _classCallCheck2.default)(this, CommandData);
8328 _this = _super.call(this, args, commandsAPI);
8329 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "data", void 0);
8330 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "type", void 0);
8331
8332 if ((_this$args$options = _this.args.options) === null || _this$args$options === void 0 ? void 0 : _this$args$options.type) {
8333 _this.type = _this.args.options.type;
8334 }
8335
8336 return _this;
8337 }
8338 /**
8339 * Function getEndpointFormat().
8340 *
8341 * @returns {(null|string)}
8342 */
8343
8344
8345 (0, _createClass2.default)(CommandData, [{
8346 key: "getApplyMethods",
8347
8348 /**
8349 * @param {DataTypes} type
8350 *
8351 * @returns {boolean|{before: (function(*=): {}), after: (function({}, *=): {})}}
8352 */
8353 value: function getApplyMethods() {
8354 var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.type;
8355 var before, after;
8356
8357 switch (type) {
8358 case 'create':
8359 before = this.applyBeforeCreate;
8360 after = this.applyAfterCreate;
8361 break;
8362
8363 case 'delete':
8364 before = this.applyBeforeDelete;
8365 after = this.applyAfterDelete;
8366 break;
8367
8368 case 'get':
8369 before = this.applyBeforeGet;
8370 after = this.applyAfterGet;
8371 break;
8372
8373 case 'update':
8374 before = this.applyBeforeUpdate;
8375 after = this.applyAfterUpdate;
8376 break;
8377
8378 default:
8379 return false;
8380 }
8381
8382 return {
8383 before: before,
8384 after: after
8385 };
8386 }
8387 /**
8388 * Function getRequestData().
8389 *
8390 * @returns {RequestData}
8391 */
8392
8393 }, {
8394 key: "getRequestData",
8395 value: function getRequestData() {
8396 return {
8397 type: this.type,
8398 args: this.args,
8399 timestamp: new Date().getTime(),
8400 component: this.component,
8401 command: this.currentCommand,
8402 endpoint: $e.data.commandToEndpoint(this.currentCommand, elementorCommon.helpers.cloneObject(this.args), this.constructor.getEndpointFormat())
8403 };
8404 }
8405 }, {
8406 key: "apply",
8407 value: function apply() {
8408 var _this2 = this;
8409
8410 var applyMethods = this.getApplyMethods(); // Run 'before' method.
8411
8412 this.args = applyMethods.before(this.args);
8413 var requestData = this.getRequestData();
8414 return $e.data.fetch(requestData).then(function (data) {
8415 _this2.data = data; // Run 'after' method.
8416
8417 _this2.data = applyMethods.after(data, _this2.args);
8418 _this2.data = {
8419 data: _this2.data
8420 }; // Append requestData.
8421
8422 _this2.data = (0, _assign.default)({
8423 __requestData__: requestData
8424 }, _this2.data);
8425 return _this2.data;
8426 });
8427 }
8428 /**
8429 * @param [args={}]
8430 * @returns {{}} filtered args
8431 */
8432
8433 }, {
8434 key: "applyBeforeCreate",
8435 value: function applyBeforeCreate() {
8436 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8437 return args;
8438 }
8439 /**
8440 * @param {{}} data
8441 * @param [args={}]
8442 * @returns {{}} filtered result
8443 */
8444
8445 }, {
8446 key: "applyAfterCreate",
8447 value: function applyAfterCreate(data) {
8448 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8449 // eslint-disable-line no-unused-vars
8450 return data;
8451 }
8452 /**
8453 * @param [args={}]
8454 * @returns {{}} filtered args
8455 */
8456
8457 }, {
8458 key: "applyBeforeDelete",
8459 value: function applyBeforeDelete() {
8460 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8461 return args;
8462 }
8463 /**
8464 * @param {{}} data
8465 * @param [args={}]
8466 * @returns {{}} filtered result
8467 */
8468
8469 }, {
8470 key: "applyAfterDelete",
8471 value: function applyAfterDelete(data) {
8472 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8473 // eslint-disable-line no-unused-vars
8474 return data;
8475 }
8476 /**
8477 * @param [args={}]
8478 * @returns {{}} filtered args
8479 */
8480
8481 }, {
8482 key: "applyBeforeGet",
8483 value: function applyBeforeGet() {
8484 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8485 return args;
8486 }
8487 /**
8488 * @param {{}} data
8489 * @param [args={}]
8490 * @returns {{}} filtered result
8491 */
8492
8493 }, {
8494 key: "applyAfterGet",
8495 value: function applyAfterGet(data) {
8496 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8497 // eslint-disable-line no-unused-vars
8498 return data;
8499 }
8500 /**
8501 * @param [args={}]
8502 * @returns {{}} filtered args
8503 */
8504
8505 }, {
8506 key: "applyBeforeUpdate",
8507 value: function applyBeforeUpdate() {
8508 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8509 return args;
8510 }
8511 /**
8512 * @param {{}} data
8513 * @param [args={}]
8514 * @returns {{}} filtered result
8515 */
8516
8517 }, {
8518 key: "applyAfterUpdate",
8519 value: function applyAfterUpdate(data) {
8520 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8521 // eslint-disable-line no-unused-vars
8522 return data;
8523 }
8524 }], [{
8525 key: "getEndpointFormat",
8526 value: function getEndpointFormat() {
8527 return null;
8528 }
8529 }]);
8530 return CommandData;
8531 }(_commandBase.default);
8532
8533 exports.default = CommandData;
8534
8535 /***/ }),
8536 /* 308 */
8537 /***/ (function(module, exports, __webpack_require__) {
8538
8539 "use strict";
8540
8541
8542 var _interopRequireDefault = __webpack_require__(0);
8543
8544 var _Object$defineProperty = __webpack_require__(1);
8545
8546 _Object$defineProperty(exports, "__esModule", {
8547 value: true
8548 });
8549
8550 exports.default = exports.Base = void 0;
8551
8552 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8553
8554 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8555
8556 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8557
8558 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8559
8560 var _hookBase = _interopRequireDefault(__webpack_require__(291));
8561
8562 var Base = /*#__PURE__*/function (_HookBase) {
8563 (0, _inherits2.default)(Base, _HookBase);
8564
8565 var _super = (0, _createSuper2.default)(Base);
8566
8567 function Base() {
8568 (0, _classCallCheck2.default)(this, Base);
8569 return _super.apply(this, arguments);
8570 }
8571
8572 (0, _createClass2.default)(Base, [{
8573 key: "getType",
8574 value: function getType() {
8575 return 'ui';
8576 }
8577 }]);
8578 return Base;
8579 }(_hookBase.default);
8580
8581 exports.Base = Base;
8582 var _default = Base;
8583 exports.default = _default;
8584
8585 /***/ }),
8586 /* 309 */,
8587 /* 310 */
8588 /***/ (function(module, exports, __webpack_require__) {
8589
8590 var core = __webpack_require__(6);
8591 var $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify });
8592 module.exports = function stringify(it) { // eslint-disable-line no-unused-vars
8593 return $JSON.stringify.apply($JSON, arguments);
8594 };
8595
8596
8597 /***/ }),
8598 /* 311 */,
8599 /* 312 */,
8600 /* 313 */,
8601 /* 314 */,
8602 /* 315 */
8603 /***/ (function(module, exports, __webpack_require__) {
8604
8605 "use strict";
8606
8607
8608 var _Object$defineProperty = __webpack_require__(1);
8609
8610 _Object$defineProperty(exports, "__esModule", {
8611 value: true
8612 });
8613
8614 _Object$defineProperty(exports, "Close", {
8615 enumerable: true,
8616 get: function get() {
8617 return _close.Close;
8618 }
8619 });
8620
8621 _Object$defineProperty(exports, "Open", {
8622 enumerable: true,
8623 get: function get() {
8624 return _open.Open;
8625 }
8626 });
8627
8628 _Object$defineProperty(exports, "Toggle", {
8629 enumerable: true,
8630 get: function get() {
8631 return _toggle.Toggle;
8632 }
8633 });
8634
8635 var _close = __webpack_require__(316);
8636
8637 var _open = __webpack_require__(317);
8638
8639 var _toggle = __webpack_require__(318);
8640
8641 /***/ }),
8642 /* 316 */
8643 /***/ (function(module, exports, __webpack_require__) {
8644
8645 "use strict";
8646
8647
8648 var _interopRequireDefault = __webpack_require__(0);
8649
8650 var _Object$defineProperty = __webpack_require__(1);
8651
8652 _Object$defineProperty(exports, "__esModule", {
8653 value: true
8654 });
8655
8656 exports.default = exports.Close = void 0;
8657
8658 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8659
8660 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8661
8662 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8663
8664 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8665
8666 var _commandBase = _interopRequireDefault(__webpack_require__(20));
8667
8668 var Close = /*#__PURE__*/function (_CommandBase) {
8669 (0, _inherits2.default)(Close, _CommandBase);
8670
8671 var _super = (0, _createSuper2.default)(Close);
8672
8673 function Close() {
8674 (0, _classCallCheck2.default)(this, Close);
8675 return _super.apply(this, arguments);
8676 }
8677
8678 (0, _createClass2.default)(Close, [{
8679 key: "apply",
8680 value: function apply() {
8681 this.component.close();
8682 }
8683 }]);
8684 return Close;
8685 }(_commandBase.default);
8686
8687 exports.Close = Close;
8688 var _default = Close;
8689 exports.default = _default;
8690
8691 /***/ }),
8692 /* 317 */
8693 /***/ (function(module, exports, __webpack_require__) {
8694
8695 "use strict";
8696
8697
8698 var _interopRequireDefault = __webpack_require__(0);
8699
8700 var _Object$defineProperty = __webpack_require__(1);
8701
8702 _Object$defineProperty(exports, "__esModule", {
8703 value: true
8704 });
8705
8706 exports.default = exports.Open = void 0;
8707
8708 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8709
8710 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8711
8712 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8713
8714 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8715
8716 var _commandBase = _interopRequireDefault(__webpack_require__(20));
8717
8718 var Open = /*#__PURE__*/function (_CommandBase) {
8719 (0, _inherits2.default)(Open, _CommandBase);
8720
8721 var _super = (0, _createSuper2.default)(Open);
8722
8723 function Open() {
8724 (0, _classCallCheck2.default)(this, Open);
8725 return _super.apply(this, arguments);
8726 }
8727
8728 (0, _createClass2.default)(Open, [{
8729 key: "apply",
8730 value: function apply() {
8731 $e.route(this.component.getNamespace());
8732 }
8733 }]);
8734 return Open;
8735 }(_commandBase.default);
8736
8737 exports.Open = Open;
8738 var _default = Open;
8739 exports.default = _default;
8740
8741 /***/ }),
8742 /* 318 */
8743 /***/ (function(module, exports, __webpack_require__) {
8744
8745 "use strict";
8746
8747
8748 var _interopRequireDefault = __webpack_require__(0);
8749
8750 var _Object$defineProperty = __webpack_require__(1);
8751
8752 _Object$defineProperty(exports, "__esModule", {
8753 value: true
8754 });
8755
8756 exports.default = exports.Toggle = void 0;
8757
8758 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8759
8760 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8761
8762 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8763
8764 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8765
8766 var _commandBase = _interopRequireDefault(__webpack_require__(20));
8767
8768 var Toggle = /*#__PURE__*/function (_CommandBase) {
8769 (0, _inherits2.default)(Toggle, _CommandBase);
8770
8771 var _super = (0, _createSuper2.default)(Toggle);
8772
8773 function Toggle() {
8774 (0, _classCallCheck2.default)(this, Toggle);
8775 return _super.apply(this, arguments);
8776 }
8777
8778 (0, _createClass2.default)(Toggle, [{
8779 key: "apply",
8780 value: function apply() {
8781 if (this.component.isOpen) {
8782 this.component.close();
8783 } else {
8784 $e.route(this.component.getNamespace());
8785 }
8786 }
8787 }]);
8788 return Toggle;
8789 }(_commandBase.default);
8790
8791 exports.Toggle = Toggle;
8792 var _default = Toggle;
8793 exports.default = _default;
8794
8795 /***/ }),
8796 /* 319 */
8797 /***/ (function(module, exports, __webpack_require__) {
8798
8799 module.exports = __webpack_require__(320);
8800
8801 /***/ }),
8802 /* 320 */
8803 /***/ (function(module, exports, __webpack_require__) {
8804
8805 __webpack_require__(321);
8806 module.exports = __webpack_require__(6).Object.getOwnPropertyDescriptors;
8807
8808
8809 /***/ }),
8810 /* 321 */
8811 /***/ (function(module, exports, __webpack_require__) {
8812
8813 // https://github.com/tc39/proposal-object-getownpropertydescriptors
8814 var $export = __webpack_require__(7);
8815 var ownKeys = __webpack_require__(322);
8816 var toIObject = __webpack_require__(21);
8817 var gOPD = __webpack_require__(53);
8818 var createProperty = __webpack_require__(196);
8819
8820 $export($export.S, 'Object', {
8821 getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
8822 var O = toIObject(object);
8823 var getDesc = gOPD.f;
8824 var keys = ownKeys(O);
8825 var result = {};
8826 var i = 0;
8827 var key, desc;
8828 while (keys.length > i) {
8829 desc = getDesc(O, key = keys[i++]);
8830 if (desc !== undefined) createProperty(result, key, desc);
8831 }
8832 return result;
8833 }
8834 });
8835
8836
8837 /***/ }),
8838 /* 322 */
8839 /***/ (function(module, exports, __webpack_require__) {
8840
8841 // all object keys, includes non-enumerable and symbols
8842 var gOPN = __webpack_require__(100);
8843 var gOPS = __webpack_require__(78);
8844 var anObject = __webpack_require__(12);
8845 var Reflect = __webpack_require__(8).Reflect;
8846 module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {
8847 var keys = gOPN.f(anObject(it));
8848 var getSymbols = gOPS.f;
8849 return getSymbols ? keys.concat(getSymbols(it)) : keys;
8850 };
8851
8852
8853 /***/ }),
8854 /* 323 */
8855 /***/ (function(module, exports, __webpack_require__) {
8856
8857 module.exports = __webpack_require__(324);
8858
8859 /***/ }),
8860 /* 324 */
8861 /***/ (function(module, exports, __webpack_require__) {
8862
8863 __webpack_require__(139);
8864 module.exports = __webpack_require__(6).Object.getOwnPropertySymbols;
8865
8866
8867 /***/ }),
8868 /* 325 */,
8869 /* 326 */,
8870 /* 327 */,
8871 /* 328 */,
8872 /* 329 */,
8873 /* 330 */
8874 /***/ (function(module, exports, __webpack_require__) {
8875
8876 // Works with __proto__ only. Old v8 can't work with null proto objects.
8877 /* eslint-disable no-proto */
8878 var isObject = __webpack_require__(29);
8879 var anObject = __webpack_require__(18);
8880 var check = function (O, proto) {
8881 anObject(O);
8882 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
8883 };
8884 module.exports = {
8885 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
8886 function (test, buggy, set) {
8887 try {
8888 set = __webpack_require__(70)(Function.call, __webpack_require__(305).f(Object.prototype, '__proto__').set, 2);
8889 set(test, []);
8890 buggy = !(test instanceof Array);
8891 } catch (e) { buggy = true; }
8892 return function setPrototypeOf(O, proto) {
8893 check(O, proto);
8894 if (buggy) O.__proto__ = proto;
8895 else set(O, proto);
8896 return O;
8897 };
8898 }({}, false) : undefined),
8899 check: check
8900 };
8901
8902
8903 /***/ }),
8904 /* 331 */
8905 /***/ (function(module, exports) {
8906
8907 exports.f = {}.propertyIsEnumerable;
8908
8909
8910 /***/ }),
8911 /* 332 */,
8912 /* 333 */,
8913 /* 334 */,
8914 /* 335 */,
8915 /* 336 */,
8916 /* 337 */,
8917 /* 338 */,
8918 /* 339 */,
8919 /* 340 */
8920 /***/ (function(module, exports, __webpack_require__) {
8921
8922 "use strict";
8923
8924
8925 var _interopRequireDefault = __webpack_require__(0);
8926
8927 var _Object$defineProperty = __webpack_require__(1);
8928
8929 _Object$defineProperty(exports, "__esModule", {
8930 value: true
8931 });
8932
8933 exports.default = void 0;
8934
8935 var _values = _interopRequireDefault(__webpack_require__(51));
8936
8937 __webpack_require__(143);
8938
8939 __webpack_require__(116);
8940
8941 __webpack_require__(69);
8942
8943 var _keys = _interopRequireDefault(__webpack_require__(24));
8944
8945 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8946
8947 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8948
8949 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8950
8951 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8952
8953 var _commands = _interopRequireDefault(__webpack_require__(626));
8954
8955 var Commands = /*#__PURE__*/function (_CommandsBackwardsCom) {
8956 (0, _inherits2.default)(Commands, _CommandsBackwardsCom);
8957
8958 var _super = (0, _createSuper2.default)(Commands);
8959
8960 /**
8961 * Function constructor().
8962 *
8963 * Create `$e.commands` API.
8964 *
8965 * @param {{}} args
8966 */
8967 function Commands() {
8968 var _this;
8969
8970 (0, _classCallCheck2.default)(this, Commands);
8971
8972 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8973 args[_key] = arguments[_key];
8974 }
8975
8976 _this = _super.call.apply(_super, [this].concat(args));
8977 _this.current = {};
8978 _this.currentArgs = {};
8979 _this.currentTrace = [];
8980 _this.commands = {};
8981 _this.components = {};
8982 _this.classes = {};
8983 return _this;
8984 }
8985 /**
8986 * @param id
8987 * @returns {CommandBase}
8988 */
8989
8990
8991 (0, _createClass2.default)(Commands, [{
8992 key: "getCommandClass",
8993 value: function getCommandClass(id) {
8994 return this.classes[id];
8995 }
8996 /**
8997 * Function getAll().
8998 *
8999 * Receive all loaded commands.
9000 *
9001 * @returns {string[]}
9002 */
9003
9004 }, {
9005 key: "getAll",
9006 value: function getAll() {
9007 return (0, _keys.default)(this.commands).sort();
9008 }
9009 /**
9010 * Function register().
9011 *
9012 * Register new command.
9013 *
9014 * @param {ComponentBase|string} component
9015 * @param {string} command
9016 * @param {function()} callback
9017 *
9018 * @returns {Commands}
9019 */
9020
9021 }, {
9022 key: "register",
9023 value: function register(component, command, callback) {
9024 var _this2 = this;
9025
9026 var namespace;
9027
9028 if ('string' === typeof component) {
9029 namespace = component;
9030 component = $e.components.get(namespace);
9031
9032 if (!component) {
9033 this.error("'".concat(namespace, "' component is not exist."));
9034 }
9035 } else {
9036 namespace = component.getNamespace();
9037 }
9038
9039 var fullCommand = namespace + (command ? '/' + command : '');
9040
9041 if (this.commands[fullCommand]) {
9042 this.error("`".concat(fullCommand, "` is already registered."));
9043 }
9044
9045 this.commands[fullCommand] = callback;
9046 this.components[fullCommand] = namespace;
9047 var shortcuts = component.getShortcuts(),
9048 shortcut = shortcuts[command];
9049
9050 if (shortcut) {
9051 shortcut.command = fullCommand;
9052
9053 shortcut.callback = function (event) {
9054 return _this2.runShortcut(fullCommand, event);
9055 };
9056
9057 $e.shortcuts.register(shortcut.keys, shortcut);
9058 }
9059
9060 return this;
9061 }
9062 }, {
9063 key: "unregister",
9064 value: function unregister(component, command) {
9065 var namespace;
9066
9067 if ('string' === typeof component) {
9068 namespace = component;
9069 component = $e.components.get(namespace);
9070
9071 if (!component) {
9072 this.error("'".concat(namespace, "' component is not exist."));
9073 }
9074 } else {
9075 namespace = component.getNamespace();
9076 }
9077
9078 var fullCommand = namespace + (command ? '/' + command : '');
9079
9080 if (!this.commands[fullCommand]) {
9081 this.error("`".concat(fullCommand, "` not exist."));
9082 }
9083
9084 delete this.commands[fullCommand];
9085 delete this.components[fullCommand];
9086 var shortcuts = component.getShortcuts(),
9087 shortcut = shortcuts[command];
9088
9089 if (shortcut) {
9090 $e.shortcuts.unregister(shortcut.keys, shortcut);
9091 }
9092
9093 return this;
9094 }
9095 /**
9096 * Function getComponent().
9097 *
9098 * Receive Component of the command.
9099 *
9100 * @param {string} command
9101 *
9102 * @returns {Component}
9103 */
9104
9105 }, {
9106 key: "getComponent",
9107 value: function getComponent(command) {
9108 var namespace = this.components[command];
9109 return $e.components.get(namespace);
9110 }
9111 /**
9112 * Function is().
9113 *
9114 * Checks if current running command is the same parameter command.
9115 *
9116 * @param {string} command
9117 *
9118 * @returns {boolean}
9119 */
9120
9121 }, {
9122 key: "is",
9123 value: function is(command) {
9124 var component = this.getComponent(command);
9125
9126 if (!component) {
9127 return false;
9128 }
9129
9130 return command === this.current[component.getRootContainer()];
9131 }
9132 /**
9133 * Function isCurrentFirstTrace().
9134 *
9135 * Checks if parameter command is the first command in trace that currently running.
9136 *
9137 * @param {string} command
9138 *
9139 * @returns {boolean}
9140 */
9141
9142 }, {
9143 key: "isCurrentFirstTrace",
9144 value: function isCurrentFirstTrace(command) {
9145 return command === this.getCurrentFirstTrace();
9146 }
9147 /**
9148 * Function getCurrent().
9149 *
9150 * Receive currently running components and its commands.
9151 *
9152 * @param {string} container
9153 *
9154 * @returns {{}|boolean|*}
9155 */
9156
9157 }, {
9158 key: "getCurrent",
9159 value: function getCurrent() {
9160 var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
9161
9162 if (container) {
9163 if (!this.current[container]) {
9164 return false;
9165 }
9166
9167 return this.current[container];
9168 }
9169
9170 return this.current;
9171 }
9172 /**
9173 * Function getCurrentArgs().
9174 *
9175 * Receive currently running command args.
9176 *
9177 * @param {string} container
9178 *
9179 * @returns {{}|boolean|*}
9180 */
9181
9182 }, {
9183 key: "getCurrentArgs",
9184 value: function getCurrentArgs() {
9185 var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
9186
9187 if (container) {
9188 if (!this.currentArgs[container]) {
9189 return false;
9190 }
9191
9192 return this.currentArgs[container];
9193 }
9194
9195 return this.currentArgs;
9196 }
9197 /**
9198 * Function getCurrentFirst().
9199 *
9200 * Receive first command that currently running.
9201 *
9202 * @returns {string}
9203 */
9204
9205 }, {
9206 key: "getCurrentFirst",
9207 value: function getCurrentFirst() {
9208 return (0, _values.default)(this.current)[0];
9209 }
9210 /**
9211 * Function getCurrentLast().
9212 *
9213 * Receive last command that currently running.
9214 *
9215 * @returns {string}
9216 */
9217
9218 }, {
9219 key: "getCurrentLast",
9220 value: function getCurrentLast() {
9221 var current = (0, _values.default)(this.current);
9222 return current[current.length - 1];
9223 }
9224 /**
9225 * Function getCurrentFirstTrace().
9226 *
9227 * Receive first command in trace that currently running
9228 *
9229 * @returns {string}
9230 */
9231
9232 }, {
9233 key: "getCurrentFirstTrace",
9234 value: function getCurrentFirstTrace() {
9235 return this.currentTrace[0];
9236 }
9237 /**
9238 * Function beforeRun().
9239 *
9240 * @param {string} command
9241 * @param {} args
9242 *
9243 * @returns {boolean} dependency result
9244 */
9245
9246 }, {
9247 key: "beforeRun",
9248 value: function beforeRun(command) {
9249 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9250
9251 if (!this.commands[command]) {
9252 this.error("`".concat(command, "` not found."));
9253 }
9254
9255 this.currentTrace.push(command);
9256 return this.getComponent(command).dependency(command, args);
9257 }
9258 /**
9259 * Function run().
9260 *
9261 * Runs a command.
9262 *
9263 * @param {string} command
9264 * @param {{}} args
9265 *
9266 * @returns {boolean|*} results
9267 */
9268
9269 }, {
9270 key: "run",
9271 value: function run(command) {
9272 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9273
9274 if (!this.beforeRun(command, args)) {
9275 return false;
9276 }
9277
9278 var component = this.getComponent(command),
9279 container = component.getRootContainer();
9280 this.current[container] = command;
9281 this.currentArgs[container] = args;
9282 this.trigger('run:before', component, command, args);
9283
9284 if (args.onBefore) {
9285 args.onBefore.apply(component, [args]);
9286 }
9287
9288 var results = this.commands[command].apply(component, [args]); // TODO: Consider add results to `$e.devTools`.
9289
9290 if (args.onAfter) {
9291 args.onAfter.apply(component, [args, results]);
9292 }
9293
9294 this.trigger('run:after', component, command, args, results);
9295 this.afterRun(command);
9296
9297 if (false === args.returnValue) {
9298 return true;
9299 }
9300
9301 return results;
9302 }
9303 /**
9304 * Function runShortcut().
9305 *
9306 * Run shortcut.
9307 *
9308 * It's separated in order to allow override.
9309 *
9310 * @param {string} command
9311 * @param {*} event
9312 *
9313 * @returns {boolean|*}
9314 */
9315
9316 }, {
9317 key: "runShortcut",
9318 value: function runShortcut(command, event) {
9319 return this.run(command, event);
9320 }
9321 /**
9322 * Function afterRun().
9323 *
9324 * Method fired after the command runs.
9325 *
9326 * @param {string} command
9327 */
9328
9329 }, {
9330 key: "afterRun",
9331 value: function afterRun(command) {
9332 var component = this.getComponent(command),
9333 container = component.getRootContainer();
9334 this.currentTrace.pop();
9335 delete this.current[container];
9336 delete this.currentArgs[container];
9337 }
9338 /**
9339 * Function error().
9340 *
9341 * Throws error.
9342 *
9343 * @throw {Error}
9344 *
9345 * @param {string} message
9346 */
9347
9348 }, {
9349 key: "error",
9350 value: function error(message) {
9351 throw Error("Commands: ".concat(message));
9352 }
9353 }]);
9354 return Commands;
9355 }(_commands.default);
9356
9357 exports.default = Commands;
9358
9359 /***/ }),
9360 /* 341 */
9361 /***/ (function(module, exports, __webpack_require__) {
9362
9363 var _Object$create = __webpack_require__(135);
9364
9365 var _Map = __webpack_require__(389);
9366
9367 var getPrototypeOf = __webpack_require__(16);
9368
9369 var setPrototypeOf = __webpack_require__(134);
9370
9371 var isNativeFunction = __webpack_require__(398);
9372
9373 var construct = __webpack_require__(399);
9374
9375 function _wrapNativeSuper(Class) {
9376 var _cache = typeof _Map === "function" ? new _Map() : undefined;
9377
9378 module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
9379 if (Class === null || !isNativeFunction(Class)) return Class;
9380
9381 if (typeof Class !== "function") {
9382 throw new TypeError("Super expression must either be null or a function");
9383 }
9384
9385 if (typeof _cache !== "undefined") {
9386 if (_cache.has(Class)) return _cache.get(Class);
9387
9388 _cache.set(Class, Wrapper);
9389 }
9390
9391 function Wrapper() {
9392 return construct(Class, arguments, getPrototypeOf(this).constructor);
9393 }
9394
9395 Wrapper.prototype = _Object$create(Class.prototype, {
9396 constructor: {
9397 value: Wrapper,
9398 enumerable: false,
9399 writable: true,
9400 configurable: true
9401 }
9402 });
9403 return setPrototypeOf(Wrapper, Class);
9404 };
9405
9406 return _wrapNativeSuper(Class);
9407 }
9408
9409 module.exports = _wrapNativeSuper;
9410
9411 /***/ }),
9412 /* 342 */
9413 /***/ (function(module, exports, __webpack_require__) {
9414
9415 "use strict";
9416
9417
9418 var _interopRequireDefault = __webpack_require__(0);
9419
9420 var _Object$defineProperty = __webpack_require__(1);
9421
9422 _Object$defineProperty(exports, "__esModule", {
9423 value: true
9424 });
9425
9426 exports.default = exports.Dependency = void 0;
9427
9428 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
9429
9430 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
9431
9432 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
9433
9434 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
9435
9436 var _base = _interopRequireDefault(__webpack_require__(285));
9437
9438 var Dependency = /*#__PURE__*/function (_Base) {
9439 (0, _inherits2.default)(Dependency, _Base);
9440
9441 var _super = (0, _createSuper2.default)(Dependency);
9442
9443 function Dependency() {
9444 (0, _classCallCheck2.default)(this, Dependency);
9445 return _super.apply(this, arguments);
9446 }
9447
9448 (0, _createClass2.default)(Dependency, [{
9449 key: "register",
9450 value: function register() {
9451 $e.hooks.registerDataDependency(this);
9452 }
9453 }]);
9454 return Dependency;
9455 }(_base.default);
9456
9457 exports.Dependency = Dependency;
9458 var _default = Dependency;
9459 exports.default = _default;
9460
9461 /***/ }),
9462 /* 343 */,
9463 /* 344 */,
9464 /* 345 */,
9465 /* 346 */,
9466 /* 347 */,
9467 /* 348 */,
9468 /* 349 */,
9469 /* 350 */,
9470 /* 351 */,
9471 /* 352 */,
9472 /* 353 */,
9473 /* 354 */,
9474 /* 355 */,
9475 /* 356 */,
9476 /* 357 */,
9477 /* 358 */,
9478 /* 359 */,
9479 /* 360 */,
9480 /* 361 */,
9481 /* 362 */,
9482 /* 363 */,
9483 /* 364 */,
9484 /* 365 */,
9485 /* 366 */,
9486 /* 367 */,
9487 /* 368 */,
9488 /* 369 */,
9489 /* 370 */,
9490 /* 371 */,
9491 /* 372 */,
9492 /* 373 */,
9493 /* 374 */,
9494 /* 375 */,
9495 /* 376 */,
9496 /* 377 */,
9497 /* 378 */,
9498 /* 379 */,
9499 /* 380 */,
9500 /* 381 */,
9501 /* 382 */,
9502 /* 383 */,
9503 /* 384 */,
9504 /* 385 */,
9505 /* 386 */,
9506 /* 387 */,
9507 /* 388 */,
9508 /* 389 */
9509 /***/ (function(module, exports, __webpack_require__) {
9510
9511 module.exports = __webpack_require__(390);
9512
9513 /***/ }),
9514 /* 390 */
9515 /***/ (function(module, exports, __webpack_require__) {
9516
9517 __webpack_require__(101);
9518 __webpack_require__(60);
9519 __webpack_require__(62);
9520 __webpack_require__(391);
9521 __webpack_require__(393);
9522 __webpack_require__(396);
9523 __webpack_require__(397);
9524 module.exports = __webpack_require__(6).Map;
9525
9526
9527 /***/ }),
9528 /* 391 */
9529 /***/ (function(module, exports, __webpack_require__) {
9530
9531 "use strict";
9532
9533 var strong = __webpack_require__(392);
9534 var validate = __webpack_require__(133);
9535 var MAP = 'Map';
9536
9537 // 23.1 Map Objects
9538 module.exports = __webpack_require__(239)(MAP, function (get) {
9539 return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
9540 }, {
9541 // 23.1.3.6 Map.prototype.get(key)
9542 get: function get(key) {
9543 var entry = strong.getEntry(validate(this, MAP), key);
9544 return entry && entry.v;
9545 },
9546 // 23.1.3.9 Map.prototype.set(key, value)
9547 set: function set(key, value) {
9548 return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);
9549 }
9550 }, strong, true);
9551
9552
9553 /***/ }),
9554 /* 392 */
9555 /***/ (function(module, exports, __webpack_require__) {
9556
9557 "use strict";
9558
9559 var dP = __webpack_require__(15).f;
9560 var create = __webpack_require__(50);
9561 var redefineAll = __webpack_require__(132);
9562 var ctx = __webpack_require__(31);
9563 var anInstance = __webpack_require__(131);
9564 var forOf = __webpack_require__(98);
9565 var $iterDefine = __webpack_require__(106);
9566 var step = __webpack_require__(146);
9567 var setSpecies = __webpack_require__(223);
9568 var DESCRIPTORS = __webpack_require__(14);
9569 var fastKey = __webpack_require__(81).fastKey;
9570 var validate = __webpack_require__(133);
9571 var SIZE = DESCRIPTORS ? '_s' : 'size';
9572
9573 var getEntry = function (that, key) {
9574 // fast case
9575 var index = fastKey(key);
9576 var entry;
9577 if (index !== 'F') return that._i[index];
9578 // frozen object case
9579 for (entry = that._f; entry; entry = entry.n) {
9580 if (entry.k == key) return entry;
9581 }
9582 };
9583
9584 module.exports = {
9585 getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
9586 var C = wrapper(function (that, iterable) {
9587 anInstance(that, C, NAME, '_i');
9588 that._t = NAME; // collection type
9589 that._i = create(null); // index
9590 that._f = undefined; // first entry
9591 that._l = undefined; // last entry
9592 that[SIZE] = 0; // size
9593 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
9594 });
9595 redefineAll(C.prototype, {
9596 // 23.1.3.1 Map.prototype.clear()
9597 // 23.2.3.2 Set.prototype.clear()
9598 clear: function clear() {
9599 for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
9600 entry.r = true;
9601 if (entry.p) entry.p = entry.p.n = undefined;
9602 delete data[entry.i];
9603 }
9604 that._f = that._l = undefined;
9605 that[SIZE] = 0;
9606 },
9607 // 23.1.3.3 Map.prototype.delete(key)
9608 // 23.2.3.4 Set.prototype.delete(value)
9609 'delete': function (key) {
9610 var that = validate(this, NAME);
9611 var entry = getEntry(that, key);
9612 if (entry) {
9613 var next = entry.n;
9614 var prev = entry.p;
9615 delete that._i[entry.i];
9616 entry.r = true;
9617 if (prev) prev.n = next;
9618 if (next) next.p = prev;
9619 if (that._f == entry) that._f = next;
9620 if (that._l == entry) that._l = prev;
9621 that[SIZE]--;
9622 } return !!entry;
9623 },
9624 // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
9625 // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
9626 forEach: function forEach(callbackfn /* , that = undefined */) {
9627 validate(this, NAME);
9628 var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
9629 var entry;
9630 while (entry = entry ? entry.n : this._f) {
9631 f(entry.v, entry.k, this);
9632 // revert to the last existing entry
9633 while (entry && entry.r) entry = entry.p;
9634 }
9635 },
9636 // 23.1.3.7 Map.prototype.has(key)
9637 // 23.2.3.7 Set.prototype.has(value)
9638 has: function has(key) {
9639 return !!getEntry(validate(this, NAME), key);
9640 }
9641 });
9642 if (DESCRIPTORS) dP(C.prototype, 'size', {
9643 get: function () {
9644 return validate(this, NAME)[SIZE];
9645 }
9646 });
9647 return C;
9648 },
9649 def: function (that, key, value) {
9650 var entry = getEntry(that, key);
9651 var prev, index;
9652 // change existing entry
9653 if (entry) {
9654 entry.v = value;
9655 // create new entry
9656 } else {
9657 that._l = entry = {
9658 i: index = fastKey(key, true), // <- index
9659 k: key, // <- key
9660 v: value, // <- value
9661 p: prev = that._l, // <- previous entry
9662 n: undefined, // <- next entry
9663 r: false // <- removed
9664 };
9665 if (!that._f) that._f = entry;
9666 if (prev) prev.n = entry;
9667 that[SIZE]++;
9668 // add to index
9669 if (index !== 'F') that._i[index] = entry;
9670 } return that;
9671 },
9672 getEntry: getEntry,
9673 setStrong: function (C, NAME, IS_MAP) {
9674 // add .keys, .values, .entries, [@@iterator]
9675 // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
9676 $iterDefine(C, NAME, function (iterated, kind) {
9677 this._t = validate(iterated, NAME); // target
9678 this._k = kind; // kind
9679 this._l = undefined; // previous
9680 }, function () {
9681 var that = this;
9682 var kind = that._k;
9683 var entry = that._l;
9684 // revert to the last existing entry
9685 while (entry && entry.r) entry = entry.p;
9686 // get next entry
9687 if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
9688 // or finish the iteration
9689 that._t = undefined;
9690 return step(1);
9691 }
9692 // return step by kind
9693 if (kind == 'keys') return step(0, entry.k);
9694 if (kind == 'values') return step(0, entry.v);
9695 return step(0, [entry.k, entry.v]);
9696 }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
9697
9698 // add [@@species], 23.1.2.2, 23.2.2.2
9699 setSpecies(NAME);
9700 }
9701 };
9702
9703
9704 /***/ }),
9705 /* 393 */
9706 /***/ (function(module, exports, __webpack_require__) {
9707
9708 // https://github.com/DavidBruant/Map-Set.prototype.toJSON
9709 var $export = __webpack_require__(7);
9710
9711 $export($export.P + $export.R, 'Map', { toJSON: __webpack_require__(394)('Map') });
9712
9713
9714 /***/ }),
9715 /* 394 */
9716 /***/ (function(module, exports, __webpack_require__) {
9717
9718 // https://github.com/DavidBruant/Map-Set.prototype.toJSON
9719 var classof = __webpack_require__(97);
9720 var from = __webpack_require__(395);
9721 module.exports = function (NAME) {
9722 return function toJSON() {
9723 if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic");
9724 return from(this);
9725 };
9726 };
9727
9728
9729 /***/ }),
9730 /* 395 */
9731 /***/ (function(module, exports, __webpack_require__) {
9732
9733 var forOf = __webpack_require__(98);
9734
9735 module.exports = function (iter, ITERATOR) {
9736 var result = [];
9737 forOf(iter, false, result.push, result, ITERATOR);
9738 return result;
9739 };
9740
9741
9742 /***/ }),
9743 /* 396 */
9744 /***/ (function(module, exports, __webpack_require__) {
9745
9746 // https://tc39.github.io/proposal-setmap-offrom/#sec-map.of
9747 __webpack_require__(240)('Map');
9748
9749
9750 /***/ }),
9751 /* 397 */
9752 /***/ (function(module, exports, __webpack_require__) {
9753
9754 // https://tc39.github.io/proposal-setmap-offrom/#sec-map.from
9755 __webpack_require__(241)('Map');
9756
9757
9758 /***/ }),
9759 /* 398 */
9760 /***/ (function(module, exports) {
9761
9762 function _isNativeFunction(fn) {
9763 return Function.toString.call(fn).indexOf("[native code]") !== -1;
9764 }
9765
9766 module.exports = _isNativeFunction;
9767
9768 /***/ }),
9769 /* 399 */
9770 /***/ (function(module, exports, __webpack_require__) {
9771
9772 var _Reflect$construct = __webpack_require__(105);
9773
9774 var setPrototypeOf = __webpack_require__(134);
9775
9776 var isNativeReflectConstruct = __webpack_require__(145);
9777
9778 function _construct(Parent, args, Class) {
9779 if (isNativeReflectConstruct()) {
9780 module.exports = _construct = _Reflect$construct;
9781 } else {
9782 module.exports = _construct = function _construct(Parent, args, Class) {
9783 var a = [null];
9784 a.push.apply(a, args);
9785 var Constructor = Function.bind.apply(Parent, a);
9786 var instance = new Constructor();
9787 if (Class) setPrototypeOf(instance, Class.prototype);
9788 return instance;
9789 };
9790 }
9791
9792 return _construct.apply(null, arguments);
9793 }
9794
9795 module.exports = _construct;
9796
9797 /***/ }),
9798 /* 400 */,
9799 /* 401 */,
9800 /* 402 */,
9801 /* 403 */,
9802 /* 404 */,
9803 /* 405 */,
9804 /* 406 */,
9805 /* 407 */,
9806 /* 408 */
9807 /***/ (function(module, exports, __webpack_require__) {
9808
9809 "use strict";
9810
9811
9812 var _interopRequireDefault = __webpack_require__(0);
9813
9814 var _Object$defineProperty = __webpack_require__(1);
9815
9816 _Object$defineProperty(exports, "__esModule", {
9817 value: true
9818 });
9819
9820 exports.default = void 0;
9821
9822 var _keys = _interopRequireDefault(__webpack_require__(24));
9823
9824 var _values = _interopRequireDefault(__webpack_require__(51));
9825
9826 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
9827
9828 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
9829
9830 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
9831
9832 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
9833
9834 var HooksBase = /*#__PURE__*/function (_elementorModules$Mod) {
9835 (0, _inherits2.default)(HooksBase, _elementorModules$Mod);
9836
9837 var _super = (0, _createSuper2.default)(HooksBase);
9838
9839 /**
9840 * Function constructor().
9841 *
9842 * Create hooks base.
9843 *
9844 * @param {{}} args
9845 */
9846 function HooksBase() {
9847 var _this;
9848
9849 (0, _classCallCheck2.default)(this, HooksBase);
9850
9851 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9852 args[_key] = arguments[_key];
9853 }
9854
9855 _this = _super.call.apply(_super, [this].concat(args));
9856 /**
9857 * Current command.
9858 *
9859 * @type {string}
9860 */
9861
9862 _this.current = '';
9863 /**
9864 * Array of ids which in use.
9865 *
9866 * @type {Array}
9867 */
9868
9869 _this.usedIds = [];
9870 /**
9871 * Object of callbacks that was bound by container type.
9872 *
9873 * @type {{}}
9874 */
9875
9876 _this.callbacks = {
9877 after: {},
9878 catch: {}
9879 };
9880 /**
9881 * Object of depth.
9882 *
9883 * @type {{}}
9884 */
9885
9886 _this.depth = {
9887 after: {},
9888 catch: {}
9889 };
9890 _this.callbacksFlatList = {};
9891 return _this;
9892 }
9893
9894 (0, _createClass2.default)(HooksBase, [{
9895 key: "activate",
9896 value: function activate() {
9897 (0, _values.default)(this.getAll(true)).forEach(function (callback) {
9898 callback.activate();
9899 });
9900 }
9901 }, {
9902 key: "deactivate",
9903 value: function deactivate() {
9904 (0, _values.default)(this.getAll(true)).forEach(function (callback) {
9905 callback.deactivate();
9906 });
9907 }
9908 /**
9909 * Function getType().
9910 *
9911 * Returns type eg: ( event, hook, etc ... ).
9912 *
9913 * @returns {string} type
9914 */
9915
9916 }, {
9917 key: "getType",
9918 value: function getType() {
9919 elementorModules.forceMethodImplementation();
9920 }
9921 }, {
9922 key: "get",
9923 value: function get(id) {
9924 return this.callbacksFlatList[id];
9925 }
9926 /**
9927 * Function getAll().
9928 *
9929 * Return all possible callbacks.
9930 *
9931 * @param {boolean} flat
9932 *
9933 * @returns {{}}
9934 */
9935
9936 }, {
9937 key: "getAll",
9938 value: function getAll() {
9939 var _this2 = this;
9940
9941 var flat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
9942
9943 if (flat) {
9944 return this.callbacksFlatList;
9945 }
9946
9947 var result = {};
9948 (0, _keys.default)(this.callbacks).forEach(function (event) {
9949 if (!result[event]) {
9950 result[event] = [];
9951 }
9952
9953 (0, _keys.default)(_this2.callbacks[event]).forEach(function (command) {
9954 result[event].push({
9955 command: command,
9956 callbacks: _this2.callbacks[event][command]
9957 });
9958 });
9959 });
9960 return result;
9961 }
9962 /**
9963 * Function getCurrent();
9964 *
9965 * Return current command.
9966 *
9967 * @returns {string}
9968 */
9969
9970 }, {
9971 key: "getCurrent",
9972 value: function getCurrent() {
9973 return this.current;
9974 }
9975 /**
9976 * Function getUsedIds().
9977 *
9978 * Returns the current used ids.
9979 *
9980 * @returns {Array}
9981 */
9982
9983 }, {
9984 key: "getUsedIds",
9985 value: function getUsedIds() {
9986 return this.usedIds;
9987 }
9988 /**
9989 * Function getCallbacks().
9990 *
9991 * Get available callbacks for specific event and command.
9992 *
9993 * @param {string} event
9994 * @param {string} command
9995 *
9996 * @returns {(array|boolean)} callbacks
9997 */
9998
9999 }, {
10000 key: "getCallbacks",
10001 value: function getCallbacks(event, command, args) {
10002 var _args$containers = args.containers,
10003 containers = _args$containers === void 0 ? [args.container] : _args$containers,
10004 containerType = containers[0] ? containers[0].type : false;
10005 var callbacks = [];
10006
10007 if (this.callbacks[event] && this.callbacks[event][command]) {
10008 if (containerType && this.callbacks[event][command][containerType]) {
10009 callbacks = callbacks.concat(this.callbacks[event][command][containerType]);
10010 }
10011
10012 if (this.callbacks[event][command].all) {
10013 callbacks = callbacks.concat(this.callbacks[event][command].all);
10014 }
10015 }
10016
10017 if (callbacks.length) {
10018 return callbacks;
10019 }
10020
10021 return false;
10022 }
10023 /**
10024 * function checkEvent().
10025 *
10026 * Validate if the event is available.
10027 *
10028 * @param {string} event
10029 */
10030
10031 }, {
10032 key: "checkEvent",
10033 value: function checkEvent(event) {
10034 if (-1 === (0, _keys.default)(this.callbacks).indexOf(event)) {
10035 throw Error("".concat(this.getType(), ": '").concat(event, "' is not available."));
10036 }
10037 }
10038 /**
10039 * Function checkInstance().
10040 *
10041 * Validate given instance.
10042 *
10043 * @param {HookBase} instance
10044 */
10045
10046 }, {
10047 key: "checkInstance",
10048 value: function checkInstance(instance) {
10049 if (instance.getType() !== this.getType()) {
10050 throw new Error("invalid instance, please use: 'elementor-api/modules/hook-base.js'. ");
10051 }
10052 }
10053 /**
10054 * Function checkId().
10055 *
10056 * Validate if the id is not used before.
10057 *
10058 * @param {string} id
10059 */
10060
10061 }, {
10062 key: "checkId",
10063 value: function checkId(id) {
10064 if (-1 !== this.usedIds.indexOf(id)) {
10065 throw Error("id: '".concat(id, "' is already in use."));
10066 }
10067 }
10068 /**
10069 * Function shouldRun().
10070 *
10071 * Determine if the event should run.
10072 *
10073 * @param {array} callbacks
10074 *
10075 * @return {boolean}
10076 *
10077 * @throw {Error}
10078 */
10079
10080 }, {
10081 key: "shouldRun",
10082 value: function shouldRun(callbacks) {
10083 return !!callbacks && callbacks.length;
10084 }
10085 /**
10086 * Function register().
10087 *
10088 * Register the callback instance.
10089 *
10090 * @param {string} event
10091 * @param {HookBase} instance
10092 *
10093 * @returns {{}} Created callback
10094 */
10095
10096 }, {
10097 key: "register",
10098 value: function register(event, instance) {
10099 var command = instance.getCommand(),
10100 id = instance.getId(),
10101 containerType = instance.getContainerType();
10102 this.checkEvent(event);
10103 this.checkInstance(instance);
10104 this.checkId(id);
10105 return this.registerCallback(id, event, command, instance, containerType);
10106 }
10107 /**
10108 * Function registerCallback().
10109 *
10110 * Register callback.
10111 *
10112 * @param {string} id
10113 * @param {string} event
10114 * @param {string} command
10115 * @param {HookBase} instance
10116 * @param {string} containerType
10117 *
10118 * TODO: Consider replace with typedef.
10119 * @returns {{callback: *, id: *, isActive: boolean}}
10120 */
10121
10122 }, {
10123 key: "registerCallback",
10124 value: function registerCallback(id, event, command, instance, containerType) {
10125 if (!this.callbacks[event][command]) {
10126 this.callbacks[event][command] = [];
10127 } // Save used id(s).
10128
10129
10130 this.usedIds.push(id);
10131
10132 if (!this.callbacks[event][command]) {
10133 this.callbacks[event][command] = {};
10134 } // TODO: Create HookCallback class/type.
10135
10136
10137 var callback = {
10138 id: id,
10139 callback: instance.run.bind(instance),
10140 isActive: true,
10141 activate: function activate() {
10142 this.isActive = true;
10143 },
10144 deactivate: function deactivate() {
10145 this.isActive = false;
10146 }
10147 };
10148
10149 if (containerType) {
10150 if (!this.callbacks[event][command][containerType]) {
10151 this.callbacks[event][command][containerType] = [];
10152 }
10153
10154 this.callbacks[event][command][containerType].push(callback);
10155 } else {
10156 if (!this.callbacks[event][command].all) {
10157 this.callbacks[event][command].all = [];
10158 }
10159
10160 this.callbacks[event][command].all.push(callback);
10161 }
10162
10163 this.callbacksFlatList[callback.id] = callback;
10164 return callback;
10165 }
10166 /**
10167 * Function run().
10168 *
10169 * Run the callbacks.
10170 *
10171 * @param {string} event
10172 * @param {string} command
10173 * @param {{}} args
10174 * @param {*} result
10175 *
10176 * @returns {*}
10177 */
10178
10179 }, {
10180 key: "run",
10181 value: function run(event, command, args) {
10182 var result = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
10183 var callbacks = this.getCallbacks(event, command, args);
10184
10185 if (this.shouldRun(callbacks)) {
10186 this.current = command;
10187 this.onRun(command, args, event);
10188 return this.runCallbacks(event, command, callbacks, args, result);
10189 }
10190
10191 return false;
10192 }
10193 /**
10194 * Function runCallbacks().
10195 *
10196 * Run's the given callbacks.
10197 *
10198 * @param {string} event
10199 * @param {string} command
10200 * @param {array} callbacks
10201 * @param {{}} args
10202 * @param {[]} result
10203 */
10204
10205 }, {
10206 key: "runCallbacks",
10207 value: function runCallbacks(event, command, callbacks, args, result) {
10208 var callbacksResult = [];
10209
10210 for (var i in callbacks) {
10211 var callback = callbacks[i];
10212
10213 if (!callback.isActive) {
10214 continue;
10215 } // If not exist, set zero.
10216
10217
10218 if (undefined === this.depth[event][callback.id]) {
10219 this.depth[event][callback.id] = 0;
10220 }
10221
10222 this.depth[event][callback.id]++; // Prevent recursive hooks.
10223
10224 if (1 === this.depth[event][callback.id]) {
10225 this.onCallback(command, args, event, callback.id);
10226
10227 try {
10228 var callbackResult = this.runCallback(event, callback, args, result);
10229
10230 if (!callbackResult) {
10231 throw Error("Callback failed, event: '".concat(event, "'"));
10232 }
10233
10234 callbacksResult.push(callbackResult);
10235 } catch (e) {
10236 // If its 'Hook-Break' then parent `try {}` will handle it.
10237 if (e instanceof $e.modules.HookBreak) {
10238 throw e;
10239 }
10240
10241 elementorCommon.helpers.consoleError(e);
10242 }
10243 }
10244
10245 this.depth[event][callback.id]--;
10246 }
10247
10248 return callbacksResult;
10249 }
10250 /**
10251 * Function runCallback().
10252 *
10253 * Run's the given callback.
10254 *
10255 * @param {string} event
10256 * @param {{}} callback
10257 * @param {{}} args
10258 * @param {*} result
10259 *
10260 * @returns {*}
10261 *
10262 * @throw {Error}
10263 */
10264
10265 }, {
10266 key: "runCallback",
10267 value: function runCallback(event, callback, args, result) {
10268 // eslint-disable-line no-unused-vars
10269 elementorModules.forceMethodImplementation();
10270 }
10271 /**
10272 * Function onRun().
10273 *
10274 * Called before run a set of callbacks.
10275 *
10276 * @param {string} command
10277 * @param {{}} args
10278 * @param {string} event
10279 *
10280 * @throw {Error}
10281 */
10282
10283 }, {
10284 key: "onRun",
10285 value: function onRun(command, args, event) {
10286 // eslint-disable-line no-unused-vars
10287 elementorModules.forceMethodImplementation();
10288 }
10289 /**
10290 * Function onCallback().
10291 *
10292 * Called before a single callback.
10293 *
10294 * @param {string} command
10295 * @param {{}} args
10296 * @param {string} event
10297 * @param {string} id
10298 *
10299 * @throw {Error}
10300 */
10301
10302 }, {
10303 key: "onCallback",
10304 value: function onCallback(command, args, event, id) {
10305 // eslint-disable-line no-unused-vars
10306 elementorModules.forceMethodImplementation();
10307 }
10308 }]);
10309 return HooksBase;
10310 }(elementorModules.Module);
10311
10312 exports.default = HooksBase;
10313
10314 /***/ }),
10315 /* 409 */,
10316 /* 410 */,
10317 /* 411 */,
10318 /* 412 */,
10319 /* 413 */,
10320 /* 414 */,
10321 /* 415 */,
10322 /* 416 */,
10323 /* 417 */,
10324 /* 418 */,
10325 /* 419 */,
10326 /* 420 */,
10327 /* 421 */,
10328 /* 422 */,
10329 /* 423 */,
10330 /* 424 */,
10331 /* 425 */,
10332 /* 426 */,
10333 /* 427 */,
10334 /* 428 */,
10335 /* 429 */,
10336 /* 430 */,
10337 /* 431 */,
10338 /* 432 */,
10339 /* 433 */,
10340 /* 434 */,
10341 /* 435 */,
10342 /* 436 */,
10343 /* 437 */,
10344 /* 438 */,
10345 /* 439 */,
10346 /* 440 */,
10347 /* 441 */,
10348 /* 442 */,
10349 /* 443 */,
10350 /* 444 */,
10351 /* 445 */,
10352 /* 446 */,
10353 /* 447 */,
10354 /* 448 */,
10355 /* 449 */,
10356 /* 450 */,
10357 /* 451 */,
10358 /* 452 */,
10359 /* 453 */,
10360 /* 454 */,
10361 /* 455 */,
10362 /* 456 */,
10363 /* 457 */,
10364 /* 458 */,
10365 /* 459 */,
10366 /* 460 */,
10367 /* 461 */,
10368 /* 462 */,
10369 /* 463 */,
10370 /* 464 */,
10371 /* 465 */,
10372 /* 466 */,
10373 /* 467 */,
10374 /* 468 */,
10375 /* 469 */,
10376 /* 470 */,
10377 /* 471 */,
10378 /* 472 */,
10379 /* 473 */,
10380 /* 474 */,
10381 /* 475 */,
10382 /* 476 */,
10383 /* 477 */,
10384 /* 478 */,
10385 /* 479 */,
10386 /* 480 */,
10387 /* 481 */,
10388 /* 482 */,
10389 /* 483 */,
10390 /* 484 */,
10391 /* 485 */,
10392 /* 486 */,
10393 /* 487 */,
10394 /* 488 */,
10395 /* 489 */,
10396 /* 490 */,
10397 /* 491 */,
10398 /* 492 */,
10399 /* 493 */,
10400 /* 494 */,
10401 /* 495 */,
10402 /* 496 */,
10403 /* 497 */,
10404 /* 498 */,
10405 /* 499 */,
10406 /* 500 */,
10407 /* 501 */,
10408 /* 502 */,
10409 /* 503 */,
10410 /* 504 */,
10411 /* 505 */,
10412 /* 506 */,
10413 /* 507 */,
10414 /* 508 */,
10415 /* 509 */,
10416 /* 510 */,
10417 /* 511 */,
10418 /* 512 */,
10419 /* 513 */,
10420 /* 514 */,
10421 /* 515 */,
10422 /* 516 */,
10423 /* 517 */,
10424 /* 518 */,
10425 /* 519 */,
10426 /* 520 */,
10427 /* 521 */,
10428 /* 522 */,
10429 /* 523 */,
10430 /* 524 */,
10431 /* 525 */,
10432 /* 526 */,
10433 /* 527 */,
10434 /* 528 */,
10435 /* 529 */,
10436 /* 530 */,
10437 /* 531 */,
10438 /* 532 */,
10439 /* 533 */,
10440 /* 534 */,
10441 /* 535 */,
10442 /* 536 */,
10443 /* 537 */,
10444 /* 538 */,
10445 /* 539 */,
10446 /* 540 */,
10447 /* 541 */,
10448 /* 542 */,
10449 /* 543 */,
10450 /* 544 */,
10451 /* 545 */,
10452 /* 546 */,
10453 /* 547 */,
10454 /* 548 */,
10455 /* 549 */,
10456 /* 550 */,
10457 /* 551 */,
10458 /* 552 */,
10459 /* 553 */,
10460 /* 554 */,
10461 /* 555 */,
10462 /* 556 */,
10463 /* 557 */,
10464 /* 558 */,
10465 /* 559 */,
10466 /* 560 */,
10467 /* 561 */,
10468 /* 562 */,
10469 /* 563 */,
10470 /* 564 */,
10471 /* 565 */,
10472 /* 566 */,
10473 /* 567 */,
10474 /* 568 */,
10475 /* 569 */,
10476 /* 570 */,
10477 /* 571 */,
10478 /* 572 */,
10479 /* 573 */,
10480 /* 574 */,
10481 /* 575 */,
10482 /* 576 */,
10483 /* 577 */,
10484 /* 578 */,
10485 /* 579 */,
10486 /* 580 */,
10487 /* 581 */,
10488 /* 582 */,
10489 /* 583 */,
10490 /* 584 */,
10491 /* 585 */,
10492 /* 586 */,
10493 /* 587 */,
10494 /* 588 */,
10495 /* 589 */,
10496 /* 590 */,
10497 /* 591 */,
10498 /* 592 */,
10499 /* 593 */,
10500 /* 594 */,
10501 /* 595 */,
10502 /* 596 */,
10503 /* 597 */,
10504 /* 598 */,
10505 /* 599 */,
10506 /* 600 */,
10507 /* 601 */,
10508 /* 602 */,
10509 /* 603 */,
10510 /* 604 */,
10511 /* 605 */,
10512 /* 606 */,
10513 /* 607 */,
10514 /* 608 */,
10515 /* 609 */,
10516 /* 610 */,
10517 /* 611 */,
10518 /* 612 */,
10519 /* 613 */,
10520 /* 614 */,
10521 /* 615 */,
10522 /* 616 */,
10523 /* 617 */,
10524 /* 618 */,
10525 /* 619 */,
10526 /* 620 */,
10527 /* 621 */,
10528 /* 622 */,
10529 /* 623 */,
10530 /* 624 */,
10531 /* 625 */
10532 /***/ (function(module, exports, __webpack_require__) {
10533
10534 "use strict";
10535
10536
10537 var _interopRequireDefault = __webpack_require__(0);
10538
10539 var _Object$defineProperty = __webpack_require__(1);
10540
10541 _Object$defineProperty(exports, "__esModule", {
10542 value: true
10543 });
10544
10545 exports.default = void 0;
10546
10547 var _stringify = _interopRequireDefault(__webpack_require__(199));
10548
10549 var _keys = _interopRequireDefault(__webpack_require__(24));
10550
10551 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10552
10553 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10554
10555 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
10556
10557 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
10558
10559 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
10560 (0, _inherits2.default)(_default, _elementorModules$Mod);
10561
10562 var _super = (0, _createSuper2.default)(_default);
10563
10564 function _default() {
10565 (0, _classCallCheck2.default)(this, _default);
10566 return _super.apply(this, arguments);
10567 }
10568
10569 (0, _createClass2.default)(_default, [{
10570 key: "get",
10571 value: function get(key, options) {
10572 options = options || {};
10573 var storage;
10574
10575 try {
10576 storage = options.session ? sessionStorage : localStorage;
10577 } catch (e) {
10578 return key ? undefined : {};
10579 }
10580
10581 var elementorStorage = storage.getItem('elementor');
10582
10583 if (elementorStorage) {
10584 elementorStorage = JSON.parse(elementorStorage);
10585 } else {
10586 elementorStorage = {};
10587 }
10588
10589 if (!elementorStorage.__expiration) {
10590 elementorStorage.__expiration = {};
10591 }
10592
10593 var expiration = elementorStorage.__expiration;
10594 var expirationToCheck = [];
10595
10596 if (key) {
10597 if (expiration[key]) {
10598 expirationToCheck = [key];
10599 }
10600 } else {
10601 expirationToCheck = (0, _keys.default)(expiration);
10602 }
10603
10604 var entryExpired = false;
10605 expirationToCheck.forEach(function (expirationKey) {
10606 if (new Date(expiration[expirationKey]) < new Date()) {
10607 delete elementorStorage[expirationKey];
10608 delete expiration[expirationKey];
10609 entryExpired = true;
10610 }
10611 });
10612
10613 if (entryExpired) {
10614 this.save(elementorStorage, options.session);
10615 }
10616
10617 if (key) {
10618 return elementorStorage[key];
10619 }
10620
10621 return elementorStorage;
10622 }
10623 }, {
10624 key: "set",
10625 value: function set(key, value, options) {
10626 options = options || {};
10627 var elementorStorage = this.get(null, options);
10628 elementorStorage[key] = value;
10629
10630 if (options.lifetimeInSeconds) {
10631 var date = new Date();
10632 date.setTime(date.getTime() + options.lifetimeInSeconds * 1000);
10633 elementorStorage.__expiration[key] = date.getTime();
10634 }
10635
10636 this.save(elementorStorage, options.session);
10637 }
10638 }, {
10639 key: "save",
10640 value: function save(object, session) {
10641 var storage;
10642
10643 try {
10644 storage = session ? sessionStorage : localStorage;
10645 } catch (e) {
10646 return;
10647 }
10648
10649 storage.setItem('elementor', (0, _stringify.default)(object));
10650 }
10651 }]);
10652 return _default;
10653 }(elementorModules.Module);
10654
10655 exports.default = _default;
10656
10657 /***/ }),
10658 /* 626 */
10659 /***/ (function(module, exports, __webpack_require__) {
10660
10661 "use strict";
10662
10663
10664 var _interopRequireDefault = __webpack_require__(0);
10665
10666 var _Object$defineProperty = __webpack_require__(1);
10667
10668 _Object$defineProperty(exports, "__esModule", {
10669 value: true
10670 });
10671
10672 exports.default = void 0;
10673
10674 __webpack_require__(56);
10675
10676 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10677
10678 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10679
10680 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(47));
10681
10682 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
10683
10684 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
10685
10686 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
10687
10688 var CommandsBackwardsCompatibility = /*#__PURE__*/function (_elementorModules$Mod) {
10689 (0, _inherits2.default)(CommandsBackwardsCompatibility, _elementorModules$Mod);
10690
10691 var _super = (0, _createSuper2.default)(CommandsBackwardsCompatibility);
10692
10693 function CommandsBackwardsCompatibility() {
10694 var _this;
10695
10696 (0, _classCallCheck2.default)(this, CommandsBackwardsCompatibility);
10697
10698 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10699 args[_key] = arguments[_key];
10700 }
10701
10702 _this = _super.call.apply(_super, [this].concat(args));
10703 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "on", function (eventName, callback) {
10704 if ('run' === eventName) {
10705 var componentName = _this.getConstructorID(); // Regex takes the first letter and convert it to lower case.
10706
10707
10708 componentName = componentName.replace(/^./, function (val) {
10709 return val.toLowerCase();
10710 });
10711 elementorCommon.helpers.softDeprecated("$e.".concat(componentName, ".on( 'run', ... )"), '3.0.0', "$e.".concat(componentName, ".on( 'run:before', ... )"));
10712
10713 _this.onOrig('run:before', callback);
10714
10715 return;
10716 }
10717
10718 _this.onOrig(eventName, callback);
10719 });
10720 return _this;
10721 }
10722
10723 (0, _createClass2.default)(CommandsBackwardsCompatibility, [{
10724 key: "__construct",
10725 value: function __construct() {
10726 this.onOrig = this.on;
10727 }
10728 }]);
10729 return CommandsBackwardsCompatibility;
10730 }(elementorModules.Module);
10731
10732 exports.default = CommandsBackwardsCompatibility;
10733
10734 /***/ }),
10735 /* 627 */
10736 /***/ (function(module, exports, __webpack_require__) {
10737
10738 "use strict";
10739
10740
10741 var _interopRequireDefault = __webpack_require__(0);
10742
10743 var _Object$defineProperty = __webpack_require__(1);
10744
10745 _Object$defineProperty(exports, "__esModule", {
10746 value: true
10747 });
10748
10749 exports.default = exports.ALLMETHODS = exports.DELETABLE = exports.EDITABLE = exports.CREATABLE = exports.READABLE = void 0;
10750
10751 var _regenerator = _interopRequireDefault(__webpack_require__(87));
10752
10753 __webpack_require__(68);
10754
10755 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(88));
10756
10757 var _promise = _interopRequireDefault(__webpack_require__(130));
10758
10759 var _stringify = _interopRequireDefault(__webpack_require__(199));
10760
10761 __webpack_require__(292);
10762
10763 __webpack_require__(182);
10764
10765 __webpack_require__(69);
10766
10767 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(110));
10768
10769 var _entries = _interopRequireDefault(__webpack_require__(85));
10770
10771 __webpack_require__(26);
10772
10773 __webpack_require__(56);
10774
10775 __webpack_require__(80);
10776
10777 __webpack_require__(148);
10778
10779 __webpack_require__(185);
10780
10781 var _values = _interopRequireDefault(__webpack_require__(51));
10782
10783 var _assign = _interopRequireDefault(__webpack_require__(147));
10784
10785 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10786
10787 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10788
10789 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(47));
10790
10791 var _get2 = _interopRequireDefault(__webpack_require__(23));
10792
10793 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
10794
10795 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
10796
10797 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
10798
10799 var _argsObject = _interopRequireDefault(__webpack_require__(220));
10800
10801 var _commands = _interopRequireDefault(__webpack_require__(340));
10802
10803 var _cache = _interopRequireDefault(__webpack_require__(628));
10804
10805 /**
10806 * @typedef {('create'|'delete'|'get'|'update')} DataTypes
10807 */
10808
10809 /**
10810 * @typedef {{}} RequestData
10811 * @property {ComponentBase} component
10812 * @property {string} command
10813 * @property {string} endpoint
10814 * @property {DataTypes} [type]
10815 * @property {{}} [args]
10816 * @property {number} [timestamp]
10817 * @property {('hit'|'miss')} [cache]
10818 */
10819
10820 /**
10821 * @typedef {object} ExtractedCommand
10822 * @property {string} command
10823 * @property {object} args
10824 */
10825 // TODO: Return it from the server. Original at WP_REST_Server.
10826 var READABLE = ['GET'],
10827 CREATABLE = ['POST'],
10828 EDITABLE = ['POST', 'PUT', 'PATCH'],
10829 DELETABLE = ['DELETE'],
10830 ALLMETHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'];
10831 exports.ALLMETHODS = ALLMETHODS;
10832 exports.DELETABLE = DELETABLE;
10833 exports.EDITABLE = EDITABLE;
10834 exports.CREATABLE = CREATABLE;
10835 exports.READABLE = READABLE;
10836
10837 var Data = /*#__PURE__*/function (_Commands) {
10838 (0, _inherits2.default)(Data, _Commands);
10839
10840 var _super = (0, _createSuper2.default)(Data);
10841
10842 function Data() {
10843 var _this;
10844
10845 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
10846 (0, _classCallCheck2.default)(this, Data);
10847 _this = _super.call(this, args);
10848 _this.args = (0, _assign.default)(args, {
10849 namespace: 'elementor',
10850 version: '1'
10851 });
10852 _this.cache = new _cache.default((0, _assertThisInitialized2.default)(_this));
10853 _this.validatedRequests = {};
10854 _this.commandFormats = {};
10855 _this.baseEndpointAddress = '';
10856 var _this$args = _this.args,
10857 namespace = _this$args.namespace,
10858 version = _this$args.version;
10859 _this.baseEndpointAddress = "".concat(elementorCommon.config.urls.rest).concat(namespace, "/v").concat(version, "/");
10860 return _this;
10861 }
10862 /**
10863 * Function getHTTPMethod().
10864 *
10865 * Returns HTTP Method by type.
10866 *
10867 * @param {DataTypes} type
10868 *
10869 * @return {string|boolean}
10870 */
10871
10872
10873 (0, _createClass2.default)(Data, [{
10874 key: "getHTTPMethod",
10875 value: function getHTTPMethod(type) {
10876 switch (type) {
10877 case 'create':
10878 return 'POST';
10879
10880 case 'delete':
10881 return 'DELETE';
10882
10883 case 'get':
10884 return 'GET';
10885
10886 case 'update':
10887 return 'PUT';
10888 }
10889
10890 return false;
10891 }
10892 /**
10893 * Function getAllowedMethods().
10894 *
10895 * Returns allowed HTTP methods by type.
10896 *
10897 * @param {DataTypes} type
10898 *
10899 * @return {[string]|boolean}
10900 */
10901
10902 }, {
10903 key: "getAllowedMethods",
10904 value: function getAllowedMethods(type) {
10905 switch (type) {
10906 case 'create':
10907 return CREATABLE;
10908
10909 case 'delete':
10910 return DELETABLE;
10911
10912 case 'get':
10913 return READABLE;
10914
10915 case 'update':
10916 return EDITABLE;
10917 }
10918
10919 return false;
10920 }
10921 /**
10922 * Function commandToEndpoint().
10923 *
10924 * Convert command to endpoint.
10925 *
10926 * For example `component/command/{arg}` => `controller/endpoint/8`.
10927 *
10928 * TODO: Find a better solution.
10929 *
10930 * @param {string} command
10931 * @param {{}} args
10932 * @param {string|null} [format]
10933 *
10934 * @returns {string} endpoint
10935 */
10936
10937 }, {
10938 key: "commandToEndpoint",
10939 value: function commandToEndpoint(command, args) {
10940 var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
10941 var endpoint = command;
10942 var argsQueryLength = (args === null || args === void 0 ? void 0 : args.query) ? (0, _values.default)(args.query).length : 0;
10943
10944 if (argsQueryLength) {
10945 if (format && format.includes('/{')) {
10946 // Means command includes magic query arguments ( controller/endpoint/{whatever} ).
10947 var magicParams = format.split('/').filter(function (str) {
10948 return '{' === str.charAt(0);
10949 });
10950 magicParams.forEach(function (param) {
10951 // Remove the '{', '}'.
10952 param = param.replace('{', '');
10953 param = param.replace('}', '');
10954 var formatted = (0, _entries.default)(args.query).find(function (_ref) {
10955 var _ref2 = (0, _slicedToArray2.default)(_ref, 1),
10956 key = _ref2[0];
10957
10958 return key === param;
10959 });
10960
10961 if (!formatted) {
10962 return;
10963 }
10964
10965 var key = formatted[0],
10966 value = formatted[1].toString(); // Replace magic params with values.
10967
10968 format = format.replace(new RegExp('{' + param + '}', 'g'), value);
10969 delete args.query[key];
10970 });
10971 endpoint = format;
10972 }
10973 } else if (format) {
10974 // No magic params, but still format,
10975 endpoint = format;
10976 } // If requested magic param does not exist in args, need to remove it to have fixed endpoint.
10977 // eg: 'documents/{documentId}/elements/{elementId}' and args { documentId: 4123 }.
10978 // result: 'documents/4123/elements'
10979
10980
10981 if (format && endpoint.includes('/{')) {
10982 endpoint = endpoint.substring(0, endpoint.indexOf('/{'));
10983 }
10984
10985 if (args.query && (0, _values.default)(args.query).length) {
10986 // Sorting since the endpoint later will be used as key to store the cache.
10987 var queryEntries = (0, _entries.default)(args.query).sort(function (_ref3, _ref4) {
10988 var _ref5 = (0, _slicedToArray2.default)(_ref3, 1),
10989 aKey = _ref5[0];
10990
10991 var _ref6 = (0, _slicedToArray2.default)(_ref4, 1),
10992 bKey = _ref6[0];
10993
10994 return aKey - bKey;
10995 } // Sort by param name.
10996 ); // `args.query` will become a part of GET params.
10997
10998 if (queryEntries.length) {
10999 endpoint += '?';
11000 queryEntries.forEach(function (_ref7) {
11001 var _ref8 = (0, _slicedToArray2.default)(_ref7, 2),
11002 name = _ref8[0],
11003 value = _ref8[1];
11004
11005 endpoint += name + '=' + value + '&';
11006 });
11007 } // If last character is '&' remove it.
11008
11009
11010 endpoint = endpoint.replace(/&$/, '');
11011 }
11012
11013 return endpoint;
11014 }
11015 /**
11016 * Function commandExtractArgs().
11017 *
11018 * If the command have query convert it to args.
11019 *
11020 * @param {string} command
11021 * @param {object} args
11022 *
11023 * @returns {ExtractedCommand} command
11024 */
11025
11026 }, {
11027 key: "commandExtractArgs",
11028 value: function commandExtractArgs(command) {
11029 var _command;
11030
11031 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11032
11033 if ((_command = command) === null || _command === void 0 ? void 0 : _command.includes('?')) {
11034 if (!args.query) {
11035 args.query = {};
11036 }
11037
11038 var commandParts = command.split('?'),
11039 pureCommand = commandParts[0],
11040 queryString = commandParts[1],
11041 query = new URLSearchParams(queryString);
11042 (0, _assign.default)(args.query, Object.fromEntries(query));
11043 command = pureCommand;
11044 }
11045
11046 return {
11047 command: command,
11048 args: args
11049 };
11050 }
11051 /**
11052 * Function validateRequestData().
11053 *
11054 * Validate request data requirements.
11055 *
11056 * @param {RequestData} requestData
11057 * @param {boolean} [requireArgsData]
11058 */
11059
11060 }, {
11061 key: "validateRequestData",
11062 value: function validateRequestData(requestData) {
11063 var requireArgsData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
11064
11065 // Do not validate if its already valid.
11066 if (requestData.timestamp && this.validatedRequests[requestData.timestamp]) {
11067 return;
11068 }
11069
11070 var argsObject = new _argsObject.default(requestData);
11071 argsObject.requireArgument('component');
11072 argsObject.requireArgumentType('command', 'string');
11073 argsObject.requireArgumentType('endpoint', 'string');
11074
11075 if (requireArgsData) {
11076 argsObject.requireArgumentType('data', 'object', requestData.args);
11077 } // Ensure timestamp.
11078
11079
11080 if (!requestData.timestamp) {
11081 requestData.timestamp = new Date().getTime();
11082 }
11083
11084 this.validatedRequests[requestData.timestamp] = true;
11085 }
11086 /**
11087 * Function prepareHeaders().
11088 *
11089 * @param {RequestData} requestData
11090 *
11091 * @return {{}} params
11092 */
11093
11094 }, {
11095 key: "prepareHeaders",
11096 value: function prepareHeaders(requestData) {
11097 /* global wpApiSettings */
11098 var type = requestData.type,
11099 nonce = wpApiSettings.nonce,
11100 params = {
11101 credentials: 'include' // cookies is required for wp reset.
11102
11103 },
11104 headers = {
11105 'X-WP-Nonce': nonce
11106 };
11107 /**
11108 * Translate:
11109 * 'create, delete, get, update' to HTTP Methods:
11110 * 'GET, POST, PUT, PATCH, DELETE'
11111 */
11112
11113 var allowedMethods = this.getAllowedMethods(type),
11114 method = this.getHTTPMethod(type);
11115
11116 if ('GET' === method) {
11117 (0, _assign.default)(params, {
11118 headers: headers
11119 });
11120 } else if (allowedMethods) {
11121 var _requestData$args;
11122
11123 if (['POST', 'PUT'].includes(method) && !((_requestData$args = requestData.args) === null || _requestData$args === void 0 ? void 0 : _requestData$args.data)) {
11124 throw Error('Invalid requestData.args.data');
11125 }
11126
11127 (0, _assign.default)(headers, {
11128 'Content-Type': 'application/json'
11129 });
11130 (0, _assign.default)(params, {
11131 method: method,
11132 headers: headers,
11133 body: (0, _stringify.default)(requestData.args.data)
11134 });
11135 } else {
11136 throw Error("Invalid type: '".concat(type, "'"));
11137 }
11138
11139 return params;
11140 }
11141 /**
11142 * Function fetch().
11143 *
11144 * @param {RequestData} requestData
11145 * @param {function(input: RequestInfo, init?) : Promise<Response> } [fetchAPI]
11146 *
11147 * @return {{}} params
11148 */
11149
11150 }, {
11151 key: "fetch",
11152 value: function fetch(requestData) {
11153 var _requestData$args$opt,
11154 _this2 = this;
11155
11156 var fetchAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.fetch;
11157 requestData.cache = 'miss';
11158 var params = this.prepareHeaders(requestData),
11159 refresh = (_requestData$args$opt = requestData.args.options) === null || _requestData$args$opt === void 0 ? void 0 : _requestData$args$opt.refresh,
11160 getCache = 'get' === requestData.type && !refresh,
11161 saveCache = ['create', 'get'].includes(requestData.type) && !refresh;
11162
11163 if (getCache) {
11164 var cachePromise = this.cache.getAsync(requestData);
11165
11166 if (cachePromise) {
11167 return cachePromise;
11168 }
11169 }
11170
11171 return new _promise.default( /*#__PURE__*/function () {
11172 var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(resolve, reject) {
11173 var request, response;
11174 return _regenerator.default.wrap(function _callee2$(_context2) {
11175 while (1) {
11176 switch (_context2.prev = _context2.next) {
11177 case 0:
11178 _context2.prev = 0;
11179 request = fetchAPI(_this2.baseEndpointAddress + requestData.endpoint, params);
11180 _context2.next = 4;
11181 return request.then( /*#__PURE__*/function () {
11182 var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_response) {
11183 return _regenerator.default.wrap(function _callee$(_context) {
11184 while (1) {
11185 switch (_context.prev = _context.next) {
11186 case 0:
11187 if (_response.ok) {
11188 _context.next = 6;
11189 break;
11190 }
11191
11192 if (!_response.headers.get('content-type').includes('application/json')) {
11193 _context.next = 5;
11194 break;
11195 }
11196
11197 _context.next = 4;
11198 return _response.json();
11199
11200 case 4:
11201 _response = _context.sent;
11202
11203 case 5:
11204 throw _response;
11205
11206 case 6:
11207 return _context.abrupt("return", _response.json());
11208
11209 case 7:
11210 case "end":
11211 return _context.stop();
11212 }
11213 }
11214 }, _callee);
11215 }));
11216
11217 return function (_x3) {
11218 return _ref10.apply(this, arguments);
11219 };
11220 }());
11221
11222 case 4:
11223 response = _context2.sent;
11224
11225 // At this point, it got the resolved response from remote.
11226 // So load cache, and resolve it.
11227 if (saveCache) {
11228 _this2.cache.set(requestData, response);
11229 }
11230
11231 resolve(response);
11232 _context2.next = 12;
11233 break;
11234
11235 case 9:
11236 _context2.prev = 9;
11237 _context2.t0 = _context2["catch"](0);
11238 reject(_context2.t0);
11239
11240 case 12:
11241 case "end":
11242 return _context2.stop();
11243 }
11244 }
11245 }, _callee2, null, [[0, 9]]);
11246 }));
11247
11248 return function (_x, _x2) {
11249 return _ref9.apply(this, arguments);
11250 };
11251 }());
11252 }
11253 /**
11254 * Function getCache().
11255 *
11256 * @param {ComponentBase} component
11257 * @param {string} command
11258 * @param {{}} query
11259 *
11260 * @returns {{}}
11261 */
11262
11263 }, {
11264 key: "getCache",
11265 value: function getCache(component, command) {
11266 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11267 var args = {
11268 query: query
11269 };
11270 return this.cache.get({
11271 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11272 component: component,
11273 command: command,
11274 args: args
11275 });
11276 }
11277 /**
11278 * Function setCache().
11279 *
11280 * @param {ComponentBase} component
11281 * @param {string} command
11282 * @param {{}} query
11283 * @param {*} data
11284 */
11285
11286 }, {
11287 key: "setCache",
11288 value: function setCache(component, command, query, data) {
11289 var args = {
11290 query: query
11291 };
11292 this.cache.set({
11293 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11294 component: component,
11295 command: command,
11296 args: args
11297 }, data);
11298 }
11299 /**
11300 * Function updateCache().
11301 *
11302 * The difference between 'setCache' and 'updateCache' is update will only modify exist values.
11303 * and 'setCache' will create or update.
11304 *
11305 * @param {ComponentBase} component
11306 * @param {string} command
11307 * @param {{}} query
11308 * @param {*} data
11309 */
11310
11311 }, {
11312 key: "updateCache",
11313 value: function updateCache(component, command, query, data) {
11314 var args = {
11315 query: query,
11316 data: data
11317 };
11318 this.cache.update({
11319 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11320 component: component,
11321 command: command,
11322 args: args
11323 });
11324 }
11325 /**
11326 * Function deleteCache().
11327 *
11328 * @param {ComponentBase} component
11329 * @param {string} command
11330 * @param {{}} query
11331 */
11332
11333 }, {
11334 key: "deleteCache",
11335 value: function deleteCache(component, command) {
11336 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11337 var args = {
11338 query: query
11339 };
11340 this.cache.delete({
11341 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11342 component: component,
11343 command: command,
11344 args: args
11345 });
11346 }
11347 /**
11348 * Function registerFormat().
11349 *
11350 * Register's format for each command.
11351 *
11352 * @param {string} command
11353 * @param {string} format
11354 */
11355
11356 }, {
11357 key: "registerFormat",
11358 value: function registerFormat(command, format) {
11359 this.commandFormats[command] = format;
11360 }
11361 }, {
11362 key: "create",
11363 value: function create(command, data) {
11364 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11365 var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
11366 return this.run('create', command, {
11367 query: query,
11368 options: options,
11369 data: data
11370 });
11371 }
11372 }, {
11373 key: "delete",
11374 value: function _delete(command) {
11375 var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11376 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11377 return this.run('delete', command, {
11378 query: query,
11379 options: options
11380 });
11381 }
11382 }, {
11383 key: "get",
11384 value: function get(command) {
11385 var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11386 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11387 return this.run('get', command, {
11388 query: query,
11389 options: options
11390 });
11391 }
11392 }, {
11393 key: "update",
11394 value: function update(command, data) {
11395 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11396 var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
11397 return this.run('update', command, {
11398 query: query,
11399 options: options,
11400 data: data
11401 });
11402 }
11403 /**
11404 * @param {ComponentBase} component
11405 * @param {string} command
11406 * @param callback
11407 */
11408
11409 }, {
11410 key: "register",
11411 value: function register(component, command, callback) {
11412 (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "register", this).call(this, component, command, callback);
11413 var fullCommandName = component.getNamespace() + '/' + command,
11414 commandInstance = $e.commands.getCommandClass(fullCommandName),
11415 format = (commandInstance === null || commandInstance === void 0 ? void 0 : commandInstance.getEndpointFormat) ? commandInstance.getEndpointFormat() : false;
11416
11417 if (format) {
11418 $e.data.registerFormat(fullCommandName, format);
11419 }
11420 }
11421 /**
11422 * TODO: Add JSDOC typedef for args ( query and options ).
11423 *
11424 * @param {DataTypes} type
11425 * @param {string} command
11426 * @param {{}} args
11427 *
11428 * @return {*}
11429 */
11430
11431 }, {
11432 key: "run",
11433 value: function run(type, command, args) {
11434 args.options.type = type;
11435
11436 var _this$commandExtractA = this.commandExtractArgs(command, args);
11437
11438 command = _this$commandExtractA.command;
11439 args = _this$commandExtractA.args;
11440 return (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "run", this).call(this, command, args);
11441 }
11442 }, {
11443 key: "error",
11444 value: function error(message) {
11445 throw Error('Data commands: ' + message);
11446 }
11447 }]);
11448 return Data;
11449 }(_commands.default);
11450
11451 exports.default = Data;
11452
11453 /***/ }),
11454 /* 628 */
11455 /***/ (function(module, exports, __webpack_require__) {
11456
11457 "use strict";
11458
11459
11460 var _interopRequireDefault = __webpack_require__(0);
11461
11462 var _Object$defineProperty = __webpack_require__(1);
11463
11464 _Object$defineProperty(exports, "__esModule", {
11465 value: true
11466 });
11467
11468 exports.default = void 0;
11469
11470 var _typeof2 = _interopRequireDefault(__webpack_require__(48));
11471
11472 var _keys = _interopRequireDefault(__webpack_require__(24));
11473
11474 var _values = _interopRequireDefault(__webpack_require__(51));
11475
11476 __webpack_require__(148);
11477
11478 __webpack_require__(185);
11479
11480 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(110));
11481
11482 var _entries = _interopRequireDefault(__webpack_require__(85));
11483
11484 var _assign = _interopRequireDefault(__webpack_require__(147));
11485
11486 __webpack_require__(80);
11487
11488 __webpack_require__(56);
11489
11490 var _regenerator = _interopRequireDefault(__webpack_require__(87));
11491
11492 __webpack_require__(68);
11493
11494 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(88));
11495
11496 var _promise = _interopRequireDefault(__webpack_require__(130));
11497
11498 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
11499
11500 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
11501
11502 var _localStorage = _interopRequireDefault(__webpack_require__(629));
11503
11504 /**
11505 * TODO: Search common logic, create functions to reduce code size.
11506 */
11507 var Cache = /*#__PURE__*/function () {
11508 /**
11509 * Function constructor().
11510 *
11511 * Create cache.
11512 *
11513 * @param {Data} manager
11514 */
11515 function Cache(manager) {
11516 (0, _classCallCheck2.default)(this, Cache);
11517 this.manager = manager;
11518 this.storage = new _localStorage.default();
11519 }
11520 /**
11521 * Function getAsync().
11522 *
11523 * Receive from cache. the difference between getAsync() and get() is that receive return it as promise...
11524 * to fake fetch mechanism.
11525 *
11526 * @param {RequestData} requestData
11527 *
11528 * @return {(Promise|boolean)}
11529 */
11530
11531
11532 (0, _createClass2.default)(Cache, [{
11533 key: "getAsync",
11534 value: function getAsync(requestData) {
11535 var data = this.get(requestData);
11536
11537 if (null !== data) {
11538 // If data comes from cache, add 'cache = hit' to requestData.
11539 requestData.cache = 'hit';
11540 return new _promise.default( /*#__PURE__*/function () {
11541 var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(resolve) {
11542 return _regenerator.default.wrap(function _callee$(_context) {
11543 while (1) {
11544 switch (_context.prev = _context.next) {
11545 case 0:
11546 resolve(data);
11547
11548 case 1:
11549 case "end":
11550 return _context.stop();
11551 }
11552 }
11553 }, _callee);
11554 }));
11555
11556 return function (_x) {
11557 return _ref.apply(this, arguments);
11558 };
11559 }());
11560 } // TODO: Check if possible, always return promise and reject it.
11561
11562
11563 return false;
11564 }
11565 /**
11566 * Function set().
11567 *
11568 * set data to cache.
11569 *
11570 * The difference between set() and update() is that set, will modify the data anyway...
11571 * when update() will only modify exist objects/values.
11572 *
11573 * @param {RequestData} requestData
11574 * @param {*} data
11575 */
11576
11577 }, {
11578 key: "set",
11579 value: function set(requestData, data) {
11580 $e.data.validateRequestData(requestData);
11581 var componentName = requestData.component.getNamespace(),
11582 pureEndpoint = requestData.endpoint.replace(componentName + '/', ''),
11583 pureEndpointParts = pureEndpoint.split('/');
11584 var newData = {}; // Example of working with reaming endpoint part(s) can be found at 'cache.spec.js' test: 'load(): deep'.
11585 // Analyze reaming endpoint.
11586
11587 if (pureEndpointParts.length && pureEndpoint !== componentName) {
11588 // Using reaming endpoint parts, to build new data object.
11589 var result = pureEndpointParts.reduce(function (accumulator, pureEndpointPart) {
11590 accumulator[pureEndpointPart] = {};
11591 return accumulator[pureEndpointPart];
11592 }, newData); // 'result' is equal to 'newData' with a deeper pointer, build based on 'pureEndpointParts' ( will effect newData ).
11593
11594 (0, _assign.default)(result, data);
11595 } else {
11596 newData = data;
11597 }
11598
11599 var oldData = this.storage.getItem(componentName); // When have old data, merge it recursively with newData using jQuery.extend().
11600
11601 if (oldData !== null) {
11602 newData = jQuery.extend(true, oldData, newData);
11603 }
11604
11605 this.storage.setItem(componentName, newData);
11606 }
11607 /**
11608 * Function get().
11609 *
11610 * Get from exist storage.
11611 *
11612 * @param {RequestData} requestData
11613 *
11614 * @return {{}}
11615 */
11616
11617 }, {
11618 key: "get",
11619 value: function get(requestData) {
11620 $e.data.validateRequestData(requestData);
11621 var componentName = requestData.component.getNamespace(),
11622 componentData = this.storage.getItem(componentName);
11623
11624 if (componentData !== null) {
11625 if (componentName === requestData.endpoint) {
11626 return componentData;
11627 } // Example of working with reaming endpoint part(s) can be found at 'cache.spec.js' test: 'get(): complex'.
11628 // Analyze reaming endpoint (Using reduce over endpoint parts, build the right index).
11629
11630
11631 var pureEndpoint = requestData.endpoint.replace(requestData.component.getNamespace() + '/', ''),
11632 pureEndpointParts = pureEndpoint.split('/'),
11633 result = pureEndpointParts.reduce(function (accumulator, endpointPart) {
11634 if (accumulator && accumulator[endpointPart]) {
11635 return accumulator[endpointPart];
11636 }
11637 }, componentData); // Since $e.data.cache.receive will reject only if null is the result.
11638
11639 return result || null;
11640 }
11641
11642 return null;
11643 }
11644 /**
11645 * Function update().
11646 *
11647 * Update only already exist storage, runs over all storage
11648 *
11649 * @param {RequestData} requestData
11650 *
11651 * @return {boolean} is updated
11652 */
11653
11654 }, {
11655 key: "update",
11656 value: function update(requestData) {
11657 $e.data.validateRequestData(requestData, true);
11658 var endpoint = requestData.endpoint;
11659 var response = {}; // Simulate response from cache.
11660
11661 (0, _entries.default)(this.storage.getAll()).forEach(function (_ref2) {
11662 var _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
11663 endpointKey = _ref3[0],
11664
11665 /*string*/
11666 endpointValue = _ref3[1];
11667
11668 if (endpointValue && endpoint.includes(endpointKey)) {
11669 // Assuming it is a specific endpoint.
11670 var oldData = endpointValue,
11671 pureEndpoint = requestData.endpoint.replace(requestData.component.getNamespace() + '/', ''),
11672 pureEndpointParts = pureEndpoint.split('/'),
11673 isComponentUpdate = 1 === pureEndpointParts.length && endpointKey === requestData.endpoint && endpointKey === requestData.component.getNamespace(); // Component update or specific update?
11674
11675 if (isComponentUpdate) {
11676 response = jQuery.extend(true, oldData, requestData.args.data);
11677 } else {
11678 var oldSpecificData = pureEndpointParts.reduce(function (accumulator, pureEndpointPart) {
11679 return accumulator[pureEndpointPart];
11680 }, oldData);
11681 response = jQuery.extend(true, oldSpecificData, requestData.args.data);
11682 }
11683 }
11684 }); // If response not found.
11685
11686 if (0 === (0, _values.default)(response).length) {
11687 return false;
11688 } // Update cache.
11689
11690
11691 this.set(requestData, response);
11692 return true;
11693 }
11694 /**
11695 * Function delete().
11696 *
11697 * Delete endpoint from storage.
11698 *
11699 * @param {RequestData} requestData
11700 *
11701 * @return {boolean} is deleted
11702 */
11703
11704 }, {
11705 key: "delete",
11706 value: function _delete(requestData) {
11707 $e.data.validateRequestData(requestData);
11708 var result = false;
11709 var componentName = requestData.component.getNamespace();
11710
11711 if (componentName !== requestData.endpoint) {
11712 var oldData = this.storage.getItem(componentName),
11713 newData = {};
11714
11715 if (null === oldData) {
11716 return false;
11717 }
11718
11719 var pureEndpoint = requestData.endpoint.replace(componentName + '/', ''),
11720 pureEndpointParts = pureEndpoint.split('/'),
11721 lastEndpointPart = pureEndpointParts[pureEndpointParts.length - 1];
11722 pureEndpointParts.reduce(function (accumulator, pureEndpointPart) {
11723 if (pureEndpointPart === lastEndpointPart) {
11724 // Null, means delete.
11725 accumulator[pureEndpointPart] = null;
11726 } else {
11727 accumulator[pureEndpointPart] = {};
11728 }
11729
11730 return accumulator[pureEndpointPart];
11731 }, newData);
11732
11733 if ((0, _keys.default)(oldData).length) {
11734 var deleteKeys = function deleteKeys(target, nullsObject) {
11735 if (nullsObject) {
11736 (0, _keys.default)(nullsObject).forEach(function (key) {
11737 if (nullsObject[key] && 'object' === (0, _typeof2.default)(nullsObject[key])) {
11738 deleteKeys(target[key], nullsObject[key]);
11739 } else if (null === nullsObject[key]) {
11740 delete target[key];
11741 result = true;
11742 }
11743 });
11744 } else {
11745 // Means need to clear all the object.
11746 (0, _keys.default)(target).forEach(function (key) {
11747 return delete target[key];
11748 });
11749 }
11750
11751 return target;
11752 };
11753
11754 this.storage.setItem(componentName, deleteKeys(oldData, newData));
11755 }
11756 } else {
11757 for (var key in this.storage.getAll()) {
11758 if (key === requestData.endpoint) {
11759 this.storage.removeItem(requestData.endpoint);
11760 result = true;
11761 break;
11762 }
11763 }
11764 }
11765
11766 return result;
11767 }
11768 }]);
11769 return Cache;
11770 }();
11771
11772 exports.default = Cache;
11773
11774 /***/ }),
11775 /* 629 */
11776 /***/ (function(module, exports, __webpack_require__) {
11777
11778 "use strict";
11779
11780
11781 var _interopRequireDefault = __webpack_require__(0);
11782
11783 var _Object$defineProperty = __webpack_require__(1);
11784
11785 _Object$defineProperty(exports, "__esModule", {
11786 value: true
11787 });
11788
11789 exports.default = void 0;
11790
11791 var _keys = _interopRequireDefault(__webpack_require__(24));
11792
11793 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
11794
11795 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
11796
11797 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
11798
11799 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
11800
11801 var _basePrefixStorage = _interopRequireDefault(__webpack_require__(630));
11802
11803 var LocalStorage = /*#__PURE__*/function (_BasePrefixStorage) {
11804 (0, _inherits2.default)(LocalStorage, _BasePrefixStorage);
11805
11806 var _super = (0, _createSuper2.default)(LocalStorage);
11807
11808 function LocalStorage() {
11809 var _this;
11810
11811 (0, _classCallCheck2.default)(this, LocalStorage);
11812 _this = _super.call(this, localStorage);
11813
11814 _this.clear();
11815
11816 return _this;
11817 }
11818
11819 (0, _createClass2.default)(LocalStorage, [{
11820 key: "debug",
11821 value: function debug() {
11822 var entries = this.getAll(),
11823 ordered = {};
11824 (0, _keys.default)(entries).sort().forEach(function (key) {
11825 var value = entries[key];
11826 ordered[key] = value;
11827 });
11828 return ordered;
11829 }
11830 }]);
11831 return LocalStorage;
11832 }(_basePrefixStorage.default);
11833
11834 exports.default = LocalStorage;
11835
11836 /***/ }),
11837 /* 630 */
11838 /***/ (function(module, exports, __webpack_require__) {
11839
11840 "use strict";
11841
11842
11843 var _interopRequireDefault = __webpack_require__(0);
11844
11845 var _Object$defineProperty = __webpack_require__(1);
11846
11847 _Object$defineProperty(exports, "__esModule", {
11848 value: true
11849 });
11850
11851 exports.default = void 0;
11852
11853 __webpack_require__(56);
11854
11855 __webpack_require__(270);
11856
11857 var _keys = _interopRequireDefault(__webpack_require__(24));
11858
11859 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
11860
11861 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
11862
11863 var _get2 = _interopRequireDefault(__webpack_require__(23));
11864
11865 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
11866
11867 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
11868
11869 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
11870
11871 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
11872
11873 var _baseStorage = _interopRequireDefault(__webpack_require__(631));
11874
11875 var BasePrefixStorage = /*#__PURE__*/function (_BaseStorage) {
11876 (0, _inherits2.default)(BasePrefixStorage, _BaseStorage);
11877
11878 var _super = (0, _createSuper2.default)(BasePrefixStorage);
11879
11880 function BasePrefixStorage() {
11881 (0, _classCallCheck2.default)(this, BasePrefixStorage);
11882 return _super.apply(this, arguments);
11883 }
11884
11885 (0, _createClass2.default)(BasePrefixStorage, [{
11886 key: "clear",
11887 value: function clear() {
11888 var _this = this;
11889
11890 (0, _keys.default)(this.getAll()).forEach(function (key) {
11891 return _this.removeItem(key);
11892 });
11893 }
11894 }, {
11895 key: "getItem",
11896 value: function getItem(key) {
11897 return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "getItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key);
11898 }
11899 }, {
11900 key: "removeItem",
11901 value: function removeItem(key) {
11902 return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "removeItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key);
11903 }
11904 }, {
11905 key: "setItem",
11906 value: function setItem(key, value) {
11907 return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "setItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key, value);
11908 }
11909 }, {
11910 key: "getAll",
11911 value: function getAll() {
11912 var _this2 = this;
11913
11914 var DEFAULT_KEY_PREFIX = BasePrefixStorage.DEFAULT_KEY_PREFIX,
11915 keys = (0, _keys.default)(this.provider),
11916 result = {};
11917 keys.forEach(function (key) {
11918 if (key.startsWith(DEFAULT_KEY_PREFIX)) {
11919 key = key.replace(DEFAULT_KEY_PREFIX, '');
11920 result[key] = _this2.getItem(key);
11921 }
11922 });
11923 return result;
11924 }
11925 }]);
11926 return BasePrefixStorage;
11927 }(_baseStorage.default);
11928
11929 exports.default = BasePrefixStorage;
11930 (0, _defineProperty2.default)(BasePrefixStorage, "DEFAULT_KEY_PREFIX", 'e_');
11931
11932 /***/ }),
11933 /* 631 */
11934 /***/ (function(module, exports, __webpack_require__) {
11935
11936 "use strict";
11937
11938
11939 var _interopRequireDefault = __webpack_require__(0);
11940
11941 var _Object$defineProperty = __webpack_require__(1);
11942
11943 _Object$defineProperty(exports, "__esModule", {
11944 value: true
11945 });
11946
11947 exports.default = void 0;
11948
11949 var _keys = _interopRequireDefault(__webpack_require__(24));
11950
11951 var _stringify = _interopRequireDefault(__webpack_require__(199));
11952
11953 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
11954
11955 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
11956
11957 /**
11958 * TODO: Merge all storage's to one.
11959 * Using this technique give's the ability to use JSDOC from 'window.storage'.
11960 *
11961 * @implements {Storage}
11962 */
11963 var BaseStorage = /*#__PURE__*/function () {
11964 /**
11965 * Create storage wrapper.
11966 *
11967 * @param {Storage} provider
11968 */
11969 function BaseStorage(provider) {
11970 (0, _classCallCheck2.default)(this, BaseStorage);
11971
11972 if (BaseStorage === (this instanceof BaseStorage ? this.constructor : void 0)) {
11973 throw new TypeError('Cannot construct BaseStorage instances directly');
11974 }
11975
11976 this.provider = provider;
11977 }
11978
11979 (0, _createClass2.default)(BaseStorage, [{
11980 key: "clear",
11981 value: function clear() {
11982 return this.provider.clear();
11983 }
11984 }, {
11985 key: "getItem",
11986 value: function getItem(key) {
11987 var result = this.provider.getItem(key);
11988
11989 if (null !== result) {
11990 return JSON.parse(result);
11991 }
11992
11993 return result;
11994 }
11995 }, {
11996 key: "key",
11997 value: function key(index) {
11998 return this.provider.key(index);
11999 }
12000 }, {
12001 key: "removeItem",
12002 value: function removeItem(key) {
12003 return this.provider.removeItem(key);
12004 }
12005 }, {
12006 key: "setItem",
12007 value: function setItem(key, value) {
12008 return this.provider.setItem(key, (0, _stringify.default)(value));
12009 }
12010 }, {
12011 key: "getAll",
12012 value: function getAll() {
12013 var _this = this;
12014
12015 var keys = (0, _keys.default)(this.provider),
12016 result = {};
12017 keys.forEach(function (key) {
12018 result[key] = _this.getItem(key);
12019 });
12020 return result;
12021 }
12022 }]);
12023 return BaseStorage;
12024 }();
12025
12026 exports.default = BaseStorage;
12027
12028 /***/ }),
12029 /* 632 */
12030 /***/ (function(module, exports, __webpack_require__) {
12031
12032 "use strict";
12033
12034
12035 var _interopRequireDefault = __webpack_require__(0);
12036
12037 var _Object$defineProperty = __webpack_require__(1);
12038
12039 _Object$defineProperty(exports, "__esModule", {
12040 value: true
12041 });
12042
12043 exports.default = void 0;
12044
12045 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12046
12047 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12048
12049 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12050
12051 var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(341));
12052
12053 var HookBreak = /*#__PURE__*/function (_Error) {
12054 (0, _inherits2.default)(HookBreak, _Error);
12055
12056 var _super = (0, _createSuper2.default)(HookBreak);
12057
12058 function HookBreak() {
12059 (0, _classCallCheck2.default)(this, HookBreak);
12060 return _super.call(this, 'HookBreak');
12061 }
12062
12063 return HookBreak;
12064 }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
12065
12066 exports.default = HookBreak;
12067
12068 /***/ }),
12069 /* 633 */
12070 /***/ (function(module, exports, __webpack_require__) {
12071
12072 "use strict";
12073
12074
12075 var _interopRequireDefault = __webpack_require__(0);
12076
12077 var _Object$defineProperty = __webpack_require__(1);
12078
12079 _Object$defineProperty(exports, "__esModule", {
12080 value: true
12081 });
12082
12083 exports.default = exports.Before = void 0;
12084
12085 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12086
12087 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12088
12089 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12090
12091 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12092
12093 var _base = _interopRequireDefault(__webpack_require__(308));
12094
12095 var Before = /*#__PURE__*/function (_Base) {
12096 (0, _inherits2.default)(Before, _Base);
12097
12098 var _super = (0, _createSuper2.default)(Before);
12099
12100 function Before() {
12101 (0, _classCallCheck2.default)(this, Before);
12102 return _super.apply(this, arguments);
12103 }
12104
12105 (0, _createClass2.default)(Before, [{
12106 key: "register",
12107 value: function register() {
12108 $e.hooks.registerUIBefore(this);
12109 }
12110 }]);
12111 return Before;
12112 }(_base.default);
12113
12114 exports.Before = Before;
12115 var _default = Before;
12116 exports.default = _default;
12117
12118 /***/ }),
12119 /* 634 */
12120 /***/ (function(module, exports, __webpack_require__) {
12121
12122 "use strict";
12123
12124
12125 var _interopRequireDefault = __webpack_require__(0);
12126
12127 var _Object$defineProperty = __webpack_require__(1);
12128
12129 _Object$defineProperty(exports, "__esModule", {
12130 value: true
12131 });
12132
12133 exports.default = exports.Catch = void 0;
12134
12135 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12136
12137 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12138
12139 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12140
12141 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12142
12143 var _base = _interopRequireDefault(__webpack_require__(308));
12144
12145 var Catch = /*#__PURE__*/function (_Base) {
12146 (0, _inherits2.default)(Catch, _Base);
12147
12148 var _super = (0, _createSuper2.default)(Catch);
12149
12150 function Catch() {
12151 (0, _classCallCheck2.default)(this, Catch);
12152 return _super.apply(this, arguments);
12153 }
12154
12155 (0, _createClass2.default)(Catch, [{
12156 key: "register",
12157 value: function register() {
12158 $e.hooks.registerUICatch(this);
12159 }
12160 }]);
12161 return Catch;
12162 }(_base.default);
12163
12164 exports.Catch = Catch;
12165 var _default = Catch;
12166 exports.default = _default;
12167
12168 /***/ }),
12169 /* 635 */,
12170 /* 636 */,
12171 /* 637 */,
12172 /* 638 */,
12173 /* 639 */,
12174 /* 640 */,
12175 /* 641 */,
12176 /* 642 */,
12177 /* 643 */,
12178 /* 644 */,
12179 /* 645 */,
12180 /* 646 */,
12181 /* 647 */,
12182 /* 648 */,
12183 /* 649 */,
12184 /* 650 */,
12185 /* 651 */,
12186 /* 652 */,
12187 /* 653 */,
12188 /* 654 */,
12189 /* 655 */,
12190 /* 656 */,
12191 /* 657 */,
12192 /* 658 */,
12193 /* 659 */,
12194 /* 660 */,
12195 /* 661 */,
12196 /* 662 */,
12197 /* 663 */,
12198 /* 664 */,
12199 /* 665 */,
12200 /* 666 */,
12201 /* 667 */,
12202 /* 668 */,
12203 /* 669 */
12204 /***/ (function(module, exports, __webpack_require__) {
12205
12206 "use strict";
12207
12208
12209 var _interopRequireDefault = __webpack_require__(0);
12210
12211 var _Object$defineProperty = __webpack_require__(1);
12212
12213 _Object$defineProperty(exports, "__esModule", {
12214 value: true
12215 });
12216
12217 exports.default = void 0;
12218
12219 var _values = _interopRequireDefault(__webpack_require__(51));
12220
12221 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12222
12223 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12224
12225 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12226
12227 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12228
12229 var _item = _interopRequireDefault(__webpack_require__(708));
12230
12231 var _item2 = _interopRequireDefault(__webpack_require__(709));
12232
12233 var _default = /*#__PURE__*/function (_Marionette$Composite) {
12234 (0, _inherits2.default)(_default, _Marionette$Composite);
12235
12236 var _super = (0, _createSuper2.default)(_default);
12237
12238 function _default() {
12239 (0, _classCallCheck2.default)(this, _default);
12240 return _super.apply(this, arguments);
12241 }
12242
12243 (0, _createClass2.default)(_default, [{
12244 key: "className",
12245 value: function className() {
12246 return 'elementor-finder__results__category';
12247 }
12248 }, {
12249 key: "getTemplate",
12250 value: function getTemplate() {
12251 return '#tmpl-elementor-finder__results__category';
12252 }
12253 }, {
12254 key: "getChildView",
12255 value: function getChildView() {
12256 return _item.default;
12257 }
12258 }, {
12259 key: "initialize",
12260 value: function initialize() {
12261 this.childViewContainer = '.elementor-finder__results__category__items';
12262 this.isVisible = true;
12263 var items = this.model.get('items');
12264
12265 if (items) {
12266 items = (0, _values.default)(items);
12267 }
12268
12269 this.collection = new Backbone.Collection(items, {
12270 model: _item2.default
12271 });
12272 }
12273 }, {
12274 key: "filter",
12275 value: function filter(childModel) {
12276 var textFilter = this.getTextFilter();
12277
12278 if (childModel.get('title').toLowerCase().indexOf(textFilter) >= 0) {
12279 return true;
12280 }
12281
12282 return childModel.get('keywords').some(function (keyword) {
12283 return keyword.indexOf(textFilter) >= 0;
12284 });
12285 }
12286 }, {
12287 key: "getTextFilter",
12288 value: function getTextFilter() {
12289 return elementorCommon.finder.channel.request('filter:text').trim().toLowerCase();
12290 }
12291 }, {
12292 key: "toggleElement",
12293 value: function toggleElement() {
12294 var isCurrentlyVisible = !!this.children.length;
12295
12296 if (isCurrentlyVisible !== this.isVisible) {
12297 this.isVisible = isCurrentlyVisible;
12298 this.$el.toggle(isCurrentlyVisible);
12299 this.triggerMethod('toggle:visibility');
12300 }
12301 }
12302 }, {
12303 key: "onRender",
12304 value: function onRender() {
12305 this.listenTo(elementorCommon.finder.channel, 'filter:change', this.onFilterChange.bind(this));
12306 }
12307 }, {
12308 key: "onFilterChange",
12309 value: function onFilterChange() {
12310 this._renderChildren();
12311 }
12312 }, {
12313 key: "onRenderCollection",
12314 value: function onRenderCollection() {
12315 this.toggleElement();
12316 }
12317 }]);
12318 return _default;
12319 }(Marionette.CompositeView);
12320
12321 exports.default = _default;
12322
12323 /***/ }),
12324 /* 670 */,
12325 /* 671 */,
12326 /* 672 */,
12327 /* 673 */,
12328 /* 674 */,
12329 /* 675 */,
12330 /* 676 */,
12331 /* 677 */,
12332 /* 678 */,
12333 /* 679 */,
12334 /* 680 */,
12335 /* 681 */,
12336 /* 682 */,
12337 /* 683 */,
12338 /* 684 */,
12339 /* 685 */,
12340 /* 686 */,
12341 /* 687 */,
12342 /* 688 */,
12343 /* 689 */,
12344 /* 690 */,
12345 /* 691 */,
12346 /* 692 */,
12347 /* 693 */,
12348 /* 694 */,
12349 /* 695 */,
12350 /* 696 */,
12351 /* 697 */,
12352 /* 698 */,
12353 /* 699 */,
12354 /* 700 */
12355 /***/ (function(module, exports, __webpack_require__) {
12356
12357 "use strict";
12358
12359
12360 var _interopRequireDefault = __webpack_require__(0);
12361
12362 __webpack_require__(56);
12363
12364 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12365
12366 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12367
12368 var _get2 = _interopRequireDefault(__webpack_require__(23));
12369
12370 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
12371
12372 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12373
12374 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12375
12376 var _helpers = _interopRequireDefault(__webpack_require__(701));
12377
12378 var _storage = _interopRequireDefault(__webpack_require__(625));
12379
12380 var _ajax = _interopRequireDefault(__webpack_require__(702));
12381
12382 var _finder = _interopRequireDefault(__webpack_require__(703));
12383
12384 var _connect = _interopRequireDefault(__webpack_require__(715));
12385
12386 var _api = _interopRequireDefault(__webpack_require__(716));
12387
12388 var ElementorCommonApp = /*#__PURE__*/function (_elementorModules$Vie) {
12389 (0, _inherits2.default)(ElementorCommonApp, _elementorModules$Vie);
12390
12391 var _super = (0, _createSuper2.default)(ElementorCommonApp);
12392
12393 function ElementorCommonApp() {
12394 (0, _classCallCheck2.default)(this, ElementorCommonApp);
12395 return _super.apply(this, arguments);
12396 }
12397
12398 (0, _createClass2.default)(ElementorCommonApp, [{
12399 key: "setMarionetteTemplateCompiler",
12400 value: function setMarionetteTemplateCompiler() {
12401 Marionette.TemplateCache.prototype.compileTemplate = function (rawTemplate, options) {
12402 options = {
12403 evaluate: /<#([\s\S]+?)#>/g,
12404 interpolate: /{{{([\s\S]+?)}}}/g,
12405 escape: /{{([^}]+?)}}(?!})/g
12406 };
12407 return _.template(rawTemplate, options);
12408 };
12409 }
12410 }, {
12411 key: "getDefaultElements",
12412 value: function getDefaultElements() {
12413 return {
12414 $window: jQuery(window),
12415 $document: jQuery(document),
12416 $body: jQuery(document.body)
12417 };
12418 }
12419 }, {
12420 key: "initComponents",
12421 value: function initComponents() {
12422 this.helpers = new _helpers.default();
12423 this.storage = new _storage.default();
12424 this.dialogsManager = new DialogsManager.Instance();
12425 this.api = new _api.default();
12426 this.initModules();
12427 }
12428 }, {
12429 key: "initModules",
12430 value: function initModules() {
12431 var _this = this;
12432
12433 var activeModules = this.config.activeModules;
12434 var modules = {
12435 ajax: _ajax.default,
12436 finder: _finder.default,
12437 connect: _connect.default
12438 };
12439 activeModules.forEach(function (name) {
12440 if (modules[name]) {
12441 _this[name] = new modules[name](_this.config[name]);
12442 }
12443 });
12444 }
12445 }, {
12446 key: "compileArrayTemplateArgs",
12447 value: function compileArrayTemplateArgs(template, templateArgs) {
12448 return template.replace(/%(?:(\d+)\$)?s/g, function (match, number) {
12449 if (!number) {
12450 number = 1;
12451 }
12452
12453 number--;
12454 return undefined !== templateArgs[number] ? templateArgs[number] : match;
12455 });
12456 }
12457 }, {
12458 key: "compileObjectTemplateArgs",
12459 value: function compileObjectTemplateArgs(template, templateArgs) {
12460 return template.replace(/{{(?:([ \w]+))}}/g, function (match, name) {
12461 return templateArgs[name] ? templateArgs[name] : match;
12462 });
12463 }
12464 }, {
12465 key: "compileTemplate",
12466 value: function compileTemplate(template, templateArgs) {
12467 return jQuery.isPlainObject(templateArgs) ? this.compileObjectTemplateArgs(template, templateArgs) : this.compileArrayTemplateArgs(template, templateArgs);
12468 }
12469 }, {
12470 key: "translate",
12471 value: function translate(stringKey, context, templateArgs, i18nStack) {
12472 if (context) {
12473 i18nStack = this.config[context].i18n;
12474 }
12475
12476 if (!i18nStack) {
12477 i18nStack = this.config.i18n;
12478 }
12479
12480 var string = i18nStack[stringKey];
12481
12482 if (undefined === string) {
12483 string = stringKey;
12484 }
12485
12486 if (templateArgs) {
12487 string = this.compileTemplate(string, templateArgs);
12488 }
12489
12490 return string;
12491 }
12492 }, {
12493 key: "onInit",
12494 value: function onInit() {
12495 (0, _get2.default)((0, _getPrototypeOf2.default)(ElementorCommonApp.prototype), "onInit", this).call(this);
12496 this.config = elementorCommonConfig;
12497 this.setMarionetteTemplateCompiler();
12498 }
12499 }]);
12500 return ElementorCommonApp;
12501 }(elementorModules.ViewModule);
12502
12503 window.elementorCommon = new ElementorCommonApp();
12504 elementorCommon.initComponents();
12505
12506 /***/ }),
12507 /* 701 */
12508 /***/ (function(module, exports, __webpack_require__) {
12509
12510 "use strict";
12511
12512
12513 var _interopRequireDefault = __webpack_require__(0);
12514
12515 var _Object$defineProperty = __webpack_require__(1);
12516
12517 _Object$defineProperty(exports, "__esModule", {
12518 value: true
12519 });
12520
12521 exports.default = void 0;
12522
12523 __webpack_require__(182);
12524
12525 __webpack_require__(69);
12526
12527 __webpack_require__(56);
12528
12529 var _stringify = _interopRequireDefault(__webpack_require__(199));
12530
12531 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12532
12533 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12534
12535 var Helpers = /*#__PURE__*/function () {
12536 function Helpers() {
12537 (0, _classCallCheck2.default)(this, Helpers);
12538 }
12539
12540 (0, _createClass2.default)(Helpers, [{
12541 key: "softDeprecated",
12542 value: function softDeprecated(name, version, replacement) {
12543 if (elementorCommon.config.isDebug) {
12544 this.deprecatedMessage('soft', name, version, replacement);
12545 }
12546 }
12547 }, {
12548 key: "hardDeprecated",
12549 value: function hardDeprecated(name, version, replacement) {
12550 this.deprecatedMessage('hard', name, version, replacement);
12551 }
12552 }, {
12553 key: "deprecatedMessage",
12554 value: function deprecatedMessage(type, name, version, replacement) {
12555 var message = "%c %c`".concat(name, "` is ").concat(type, " deprecated since ").concat(version);
12556
12557 if (replacement) {
12558 message += " - Use `".concat(replacement, "` instead");
12559 }
12560
12561 this.consoleWarn(message);
12562 }
12563 }, {
12564 key: "consoleWarn",
12565 value: function consoleWarn() {
12566 var _console;
12567
12568 var style = "font-size: 12px; background-image: url(\"".concat(elementorCommon.config.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;");
12569
12570 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12571 args[_key] = arguments[_key];
12572 }
12573
12574 args.push(style, '');
12575
12576 (_console = console).warn.apply(_console, args); // eslint-disable-line no-console
12577
12578 }
12579 }, {
12580 key: "consoleError",
12581 value: function consoleError(message) {
12582 // TODO: function is part of $e.
12583 // Show an error if devTools is available.
12584 if ($e.devTools) {
12585 $e.devTools.log.error(message);
12586 } // If not a 'Hook-Break' then show error.
12587
12588
12589 if (!(message instanceof $e.modules.HookBreak)) {
12590 // eslint-disable-next-line no-console
12591 console.error(message);
12592 }
12593 }
12594 }, {
12595 key: "deprecatedMethod",
12596 value: function deprecatedMethod(methodName, version, replacement) {
12597 this.deprecatedMessage('hard', methodName, version, replacement); // This itself is deprecated.
12598
12599 this.softDeprecated('elementorCommon.helpers.deprecatedMethod', '2.8.0', 'elementorCommon.helpers.softDeprecated || elementorCommon.helpers.hardDeprecated');
12600 }
12601 }, {
12602 key: "cloneObject",
12603 value: function cloneObject(object) {
12604 return JSON.parse((0, _stringify.default)(object));
12605 }
12606 }, {
12607 key: "upperCaseWords",
12608 value: function upperCaseWords(string) {
12609 return (string + '').replace(/^(.)|\s+(.)/g, function ($1) {
12610 return $1.toUpperCase();
12611 });
12612 }
12613 }, {
12614 key: "getUniqueId",
12615 value: function getUniqueId() {
12616 return Math.random().toString(16).substr(2, 7);
12617 }
12618 }]);
12619 return Helpers;
12620 }();
12621
12622 exports.default = Helpers;
12623
12624 /***/ }),
12625 /* 702 */
12626 /***/ (function(module, exports, __webpack_require__) {
12627
12628 "use strict";
12629
12630
12631 var _interopRequireDefault = __webpack_require__(0);
12632
12633 var _Object$defineProperty = __webpack_require__(1);
12634
12635 _Object$defineProperty(exports, "__esModule", {
12636 value: true
12637 });
12638
12639 exports.default = void 0;
12640
12641 var _values = _interopRequireDefault(__webpack_require__(51));
12642
12643 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(110));
12644
12645 var _entries = _interopRequireDefault(__webpack_require__(85));
12646
12647 var _stringify = _interopRequireDefault(__webpack_require__(199));
12648
12649 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12650
12651 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(47));
12652
12653 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12654
12655 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12656
12657 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12658
12659 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
12660 (0, _inherits2.default)(_default, _elementorModules$Mod);
12661
12662 var _super = (0, _createSuper2.default)(_default);
12663
12664 (0, _createClass2.default)(_default, [{
12665 key: "getDefaultSettings",
12666 value: function getDefaultSettings() {
12667 return {
12668 ajaxParams: {
12669 type: 'POST',
12670 url: elementorCommon.config.ajax.url,
12671 data: {},
12672 dataType: 'json'
12673 },
12674 actionPrefix: 'elementor_'
12675 };
12676 }
12677 }]);
12678
12679 function _default() {
12680 var _this;
12681
12682 (0, _classCallCheck2.default)(this, _default);
12683
12684 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12685 args[_key] = arguments[_key];
12686 }
12687
12688 _this = _super.call.apply(_super, [this].concat(args));
12689 _this.requests = {};
12690 _this.cache = {};
12691
12692 _this.initRequestConstants();
12693
12694 _this.debounceSendBatch = _.debounce(_this.sendBatch.bind((0, _assertThisInitialized2.default)(_this)), 500);
12695 return _this;
12696 }
12697
12698 (0, _createClass2.default)(_default, [{
12699 key: "initRequestConstants",
12700 value: function initRequestConstants() {
12701 this.requestConstants = {
12702 _nonce: this.getSettings('nonce')
12703 };
12704 }
12705 }, {
12706 key: "addRequestConstant",
12707 value: function addRequestConstant(key, value) {
12708 this.requestConstants[key] = value;
12709 }
12710 }, {
12711 key: "getCacheKey",
12712 value: function getCacheKey(request) {
12713 return (0, _stringify.default)({
12714 unique_id: request.unique_id,
12715 data: request.data
12716 });
12717 }
12718 }, {
12719 key: "loadObjects",
12720 value: function loadObjects(options) {
12721 var _this2 = this;
12722
12723 var dataCollection = {};
12724 var deferredArray = [];
12725
12726 if (options.before) {
12727 options.before();
12728 }
12729
12730 options.ids.forEach(function (objectId) {
12731 deferredArray.push(_this2.load({
12732 action: options.action,
12733 unique_id: options.data.unique_id + objectId,
12734 data: jQuery.extend({
12735 id: objectId
12736 }, options.data)
12737 }).done(function (data) {
12738 return dataCollection = jQuery.extend(dataCollection, data);
12739 }));
12740 });
12741 jQuery.when.apply(jQuery, deferredArray).done(function () {
12742 return options.success(dataCollection);
12743 });
12744 }
12745 }, {
12746 key: "load",
12747 value: function load(request, immediately) {
12748 var _this3 = this;
12749
12750 if (!request.unique_id) {
12751 request.unique_id = request.action;
12752 }
12753
12754 if (request.before) {
12755 request.before();
12756 }
12757
12758 var deferred;
12759 var cacheKey = this.getCacheKey(request);
12760
12761 if (_.has(this.cache, cacheKey)) {
12762 deferred = jQuery.Deferred().done(request.success).resolve(this.cache[cacheKey]);
12763 } else {
12764 deferred = this.addRequest(request.action, {
12765 data: request.data,
12766 unique_id: request.unique_id,
12767 success: function success(data) {
12768 return _this3.cache[cacheKey] = data;
12769 }
12770 }, immediately).done(request.success);
12771 }
12772
12773 return deferred;
12774 }
12775 }, {
12776 key: "addRequest",
12777 value: function addRequest(action, options, immediately) {
12778 options = options || {};
12779
12780 if (!options.unique_id) {
12781 options.unique_id = action;
12782 }
12783
12784 options.deferred = jQuery.Deferred().done(options.success).fail(options.error).always(options.complete);
12785 var request = {
12786 action: action,
12787 options: options
12788 };
12789
12790 if (immediately) {
12791 var requests = {};
12792 requests[options.unique_id] = request;
12793 options.deferred.jqXhr = this.sendBatch(requests);
12794 } else {
12795 this.requests[options.unique_id] = request;
12796 this.debounceSendBatch();
12797 }
12798
12799 return options.deferred;
12800 }
12801 }, {
12802 key: "sendBatch",
12803 value: function sendBatch(requests) {
12804 var actions = {};
12805
12806 if (!requests) {
12807 requests = this.requests; // Empty for next batch.
12808
12809 this.requests = {};
12810 }
12811
12812 (0, _entries.default)(requests).forEach(function (_ref) {
12813 var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
12814 id = _ref2[0],
12815 request = _ref2[1];
12816
12817 return actions[id] = {
12818 action: request.action,
12819 data: request.options.data
12820 };
12821 });
12822 return this.send('ajax', {
12823 data: {
12824 actions: (0, _stringify.default)(actions)
12825 },
12826 success: function success(data) {
12827 (0, _entries.default)(data.responses).forEach(function (_ref3) {
12828 var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
12829 id = _ref4[0],
12830 response = _ref4[1];
12831
12832 var options = requests[id].options;
12833
12834 if (options) {
12835 if (response.success) {
12836 options.deferred.resolve(response.data);
12837 } else if (!response.success) {
12838 options.deferred.reject(response.data);
12839 }
12840 }
12841 });
12842 },
12843 error: function error(data) {
12844 return (0, _values.default)(requests).forEach(function (args) {
12845 if (args.options) {
12846 args.options.deferred.reject(data);
12847 }
12848 });
12849 }
12850 });
12851 }
12852 }, {
12853 key: "prepareSend",
12854 value: function prepareSend(action, options) {
12855 var _this4 = this;
12856
12857 var settings = this.getSettings(),
12858 ajaxParams = elementorCommon.helpers.cloneObject(settings.ajaxParams);
12859 options = options || {};
12860 action = settings.actionPrefix + action;
12861 jQuery.extend(ajaxParams, options);
12862 var requestConstants = elementorCommon.helpers.cloneObject(this.requestConstants);
12863 requestConstants.action = action;
12864 var isFormData = ajaxParams.data instanceof FormData;
12865 (0, _entries.default)(requestConstants).forEach(function (_ref5) {
12866 var _ref6 = (0, _slicedToArray2.default)(_ref5, 2),
12867 key = _ref6[0],
12868 value = _ref6[1];
12869
12870 if (isFormData) {
12871 ajaxParams.data.append(key, value);
12872 } else {
12873 ajaxParams.data[key] = value;
12874 }
12875 });
12876 var successCallback = ajaxParams.success,
12877 errorCallback = ajaxParams.error;
12878
12879 if (successCallback || errorCallback) {
12880 ajaxParams.success = function (response) {
12881 if (response.success && successCallback) {
12882 successCallback(response.data);
12883 }
12884
12885 if (!response.success && errorCallback) {
12886 errorCallback(response.data);
12887 }
12888 };
12889
12890 if (errorCallback) {
12891 ajaxParams.error = function (data) {
12892 return errorCallback(data);
12893 };
12894 } else {
12895 ajaxParams.error = function (xmlHttpRequest) {
12896 if (xmlHttpRequest.readyState || 'abort' !== xmlHttpRequest.statusText) {
12897 _this4.trigger('request:unhandledError', xmlHttpRequest);
12898 }
12899 };
12900 }
12901 }
12902
12903 return ajaxParams;
12904 }
12905 }, {
12906 key: "send",
12907 value: function send(action, options) {
12908 return jQuery.ajax(this.prepareSend(action, options));
12909 }
12910 }, {
12911 key: "addRequestCache",
12912 value: function addRequestCache(request, data) {
12913 var cacheKey = this.getCacheKey(request);
12914 this.cache[cacheKey] = data;
12915 }
12916 }, {
12917 key: "invalidateCache",
12918 value: function invalidateCache(request) {
12919 var cacheKey = this.getCacheKey(request);
12920 delete this.cache[cacheKey];
12921 }
12922 }]);
12923 return _default;
12924 }(elementorModules.Module);
12925
12926 exports.default = _default;
12927
12928 /***/ }),
12929 /* 703 */
12930 /***/ (function(module, exports, __webpack_require__) {
12931
12932 "use strict";
12933
12934
12935 var _interopRequireDefault = __webpack_require__(0);
12936
12937 var _Object$defineProperty = __webpack_require__(1);
12938
12939 _Object$defineProperty(exports, "__esModule", {
12940 value: true
12941 });
12942
12943 exports.default = void 0;
12944
12945 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12946
12947 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12948
12949 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12950
12951 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12952
12953 var _component = _interopRequireDefault(__webpack_require__(704));
12954
12955 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
12956 (0, _inherits2.default)(_default, _elementorModules$Mod);
12957
12958 var _super = (0, _createSuper2.default)(_default);
12959
12960 function _default() {
12961 (0, _classCallCheck2.default)(this, _default);
12962 return _super.apply(this, arguments);
12963 }
12964
12965 (0, _createClass2.default)(_default, [{
12966 key: "onInit",
12967 value: function onInit() {
12968 this.channel = Backbone.Radio.channel('ELEMENTOR:finder');
12969 $e.components.register(new _component.default({
12970 manager: this
12971 }));
12972 }
12973 }]);
12974 return _default;
12975 }(elementorModules.Module);
12976
12977 exports.default = _default;
12978
12979 /***/ }),
12980 /* 704 */
12981 /***/ (function(module, exports, __webpack_require__) {
12982
12983 "use strict";
12984
12985
12986 var _interopRequireWildcard = __webpack_require__(39);
12987
12988 var _interopRequireDefault = __webpack_require__(0);
12989
12990 var _Object$defineProperty = __webpack_require__(1);
12991
12992 _Object$defineProperty(exports, "__esModule", {
12993 value: true
12994 });
12995
12996 exports.default = void 0;
12997
12998 var _objectSpread2 = _interopRequireDefault(__webpack_require__(247));
12999
13000 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13001
13002 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13003
13004 var _get2 = _interopRequireDefault(__webpack_require__(23));
13005
13006 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
13007
13008 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13009
13010 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13011
13012 var _componentModalBase = _interopRequireDefault(__webpack_require__(286));
13013
13014 var _layout = _interopRequireDefault(__webpack_require__(705));
13015
13016 var commands = _interopRequireWildcard(__webpack_require__(711));
13017
13018 var Component = /*#__PURE__*/function (_ComponentModalBase) {
13019 (0, _inherits2.default)(Component, _ComponentModalBase);
13020
13021 var _super = (0, _createSuper2.default)(Component);
13022
13023 function Component() {
13024 (0, _classCallCheck2.default)(this, Component);
13025 return _super.apply(this, arguments);
13026 }
13027
13028 (0, _createClass2.default)(Component, [{
13029 key: "getNamespace",
13030 value: function getNamespace() {
13031 return 'finder';
13032 }
13033 }, {
13034 key: "defaultShortcuts",
13035 value: function defaultShortcuts() {
13036 var _this = this;
13037
13038 return {
13039 '': {
13040 keys: 'ctrl+e'
13041 },
13042 'navigate-down': {
13043 keys: 'down',
13044 scopes: [this.getNamespace()],
13045 dependency: function dependency() {
13046 return _this.getItemsView();
13047 }
13048 },
13049 'navigate-up': {
13050 keys: 'up',
13051 scopes: [this.getNamespace()],
13052 dependency: function dependency() {
13053 return _this.getItemsView();
13054 }
13055 },
13056 'navigate-select': {
13057 keys: 'enter',
13058 scopes: [this.getNamespace()],
13059 dependency: function dependency() {
13060 return _this.getItemsView().$activeItem;
13061 }
13062 }
13063 };
13064 }
13065 }, {
13066 key: "defaultCommands",
13067 value: function defaultCommands() {
13068 var modalCommands = (0, _get2.default)((0, _getPrototypeOf2.default)(Component.prototype), "defaultCommands", this).call(this);
13069 return (0, _objectSpread2.default)((0, _objectSpread2.default)({
13070 'navigate/down': function navigateDown() {
13071 elementorCommon.helpers.softDeprecated("$e.run( 'finder/navigate/down' )", '3.0.0', "$e.run( 'finder/navigate-down' )");
13072 $e.run('finder/navigate-down');
13073 },
13074 'navigate/up': function navigateUp() {
13075 elementorCommon.helpers.softDeprecated("$e.run( 'finder/navigate/up' )", '3.0.0', "$e.run( 'finder/navigate-up' )");
13076 $e.run('finder/navigate-up');
13077 },
13078 'navigate/select': function navigateSelect(event) {
13079 elementorCommon.helpers.softDeprecated("$e.run( 'finder/navigate/select', event )", '3.0.0', "$e.run( 'finder/navigate-select', event )"); // TODO: Fix $e.shortcuts use args. ( args.event ).
13080
13081 $e.run('finder/navigate-select', event);
13082 }
13083 }, modalCommands), this.importCommands(commands));
13084 }
13085 }, {
13086 key: "getModalLayout",
13087 value: function getModalLayout() {
13088 return _layout.default;
13089 }
13090 }, {
13091 key: "getItemsView",
13092 value: function getItemsView() {
13093 return this.layout.modalContent.currentView.content.currentView;
13094 }
13095 }]);
13096 return Component;
13097 }(_componentModalBase.default);
13098
13099 exports.default = Component;
13100
13101 /***/ }),
13102 /* 705 */
13103 /***/ (function(module, exports, __webpack_require__) {
13104
13105 "use strict";
13106
13107
13108 var _interopRequireDefault = __webpack_require__(0);
13109
13110 var _Object$defineProperty = __webpack_require__(1);
13111
13112 _Object$defineProperty(exports, "__esModule", {
13113 value: true
13114 });
13115
13116 exports.default = void 0;
13117
13118 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13119
13120 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13121
13122 var _get4 = _interopRequireDefault(__webpack_require__(23));
13123
13124 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
13125
13126 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13127
13128 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13129
13130 var _content = _interopRequireDefault(__webpack_require__(706));
13131
13132 var _default = /*#__PURE__*/function (_elementorModules$com) {
13133 (0, _inherits2.default)(_default, _elementorModules$com);
13134
13135 var _super = (0, _createSuper2.default)(_default);
13136
13137 function _default() {
13138 (0, _classCallCheck2.default)(this, _default);
13139 return _super.apply(this, arguments);
13140 }
13141
13142 (0, _createClass2.default)(_default, [{
13143 key: "getModalOptions",
13144 value: function getModalOptions() {
13145 return {
13146 id: 'elementor-finder__modal',
13147 draggable: true,
13148 effects: {
13149 show: 'show',
13150 hide: 'hide'
13151 },
13152 position: {
13153 enable: false
13154 }
13155 };
13156 }
13157 }, {
13158 key: "getLogoOptions",
13159 value: function getLogoOptions() {
13160 return {
13161 title: elementorCommon.translate('finder', 'finder')
13162 };
13163 }
13164 }, {
13165 key: "initialize",
13166 value: function initialize() {
13167 var _get2;
13168
13169 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13170 args[_key] = arguments[_key];
13171 }
13172
13173 (_get2 = (0, _get4.default)((0, _getPrototypeOf2.default)(_default.prototype), "initialize", this)).call.apply(_get2, [this].concat(args));
13174
13175 this.showLogo();
13176 this.showContentView();
13177 }
13178 }, {
13179 key: "showContentView",
13180 value: function showContentView() {
13181 this.modalContent.show(new _content.default());
13182 }
13183 }, {
13184 key: "showModal",
13185 value: function showModal() {
13186 var _get3;
13187
13188 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
13189 args[_key2] = arguments[_key2];
13190 }
13191
13192 (_get3 = (0, _get4.default)((0, _getPrototypeOf2.default)(_default.prototype), "showModal", this)).call.apply(_get3, [this].concat(args));
13193
13194 this.modalContent.currentView.ui.searchInput.focus();
13195 }
13196 }]);
13197 return _default;
13198 }(elementorModules.common.views.modal.Layout);
13199
13200 exports.default = _default;
13201
13202 /***/ }),
13203 /* 706 */
13204 /***/ (function(module, exports, __webpack_require__) {
13205
13206 "use strict";
13207
13208
13209 var _interopRequireDefault = __webpack_require__(0);
13210
13211 var _Object$defineProperty = __webpack_require__(1);
13212
13213 _Object$defineProperty(exports, "__esModule", {
13214 value: true
13215 });
13216
13217 exports.default = void 0;
13218
13219 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13220
13221 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13222
13223 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13224
13225 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13226
13227 var _categories = _interopRequireDefault(__webpack_require__(707));
13228
13229 var _default = /*#__PURE__*/function (_Marionette$LayoutVie) {
13230 (0, _inherits2.default)(_default, _Marionette$LayoutVie);
13231
13232 var _super = (0, _createSuper2.default)(_default);
13233
13234 function _default() {
13235 (0, _classCallCheck2.default)(this, _default);
13236 return _super.apply(this, arguments);
13237 }
13238
13239 (0, _createClass2.default)(_default, [{
13240 key: "id",
13241 value: function id() {
13242 return 'elementor-finder';
13243 }
13244 }, {
13245 key: "getTemplate",
13246 value: function getTemplate() {
13247 return '#tmpl-elementor-finder';
13248 }
13249 }, {
13250 key: "ui",
13251 value: function ui() {
13252 return {
13253 searchInput: '#elementor-finder__search__input'
13254 };
13255 }
13256 }, {
13257 key: "events",
13258 value: function events() {
13259 return {
13260 'input @ui.searchInput': 'onSearchInputInput'
13261 };
13262 }
13263 }, {
13264 key: "regions",
13265 value: function regions() {
13266 return {
13267 content: '#elementor-finder__content'
13268 };
13269 }
13270 }, {
13271 key: "showCategoriesView",
13272 value: function showCategoriesView() {
13273 this.content.show(new _categories.default());
13274 }
13275 }, {
13276 key: "onSearchInputInput",
13277 value: function onSearchInputInput() {
13278 var value = this.ui.searchInput.val();
13279
13280 if (value) {
13281 elementorCommon.finder.channel.reply('filter:text', value).trigger('filter:change');
13282
13283 if (!(this.content.currentView instanceof _categories.default)) {
13284 this.showCategoriesView();
13285 }
13286 }
13287
13288 this.content.currentView.$el.toggle(!!value);
13289 }
13290 }]);
13291 return _default;
13292 }(Marionette.LayoutView);
13293
13294 exports.default = _default;
13295
13296 /***/ }),
13297 /* 707 */
13298 /***/ (function(module, exports, __webpack_require__) {
13299
13300 "use strict";
13301
13302
13303 var _interopRequireDefault = __webpack_require__(0);
13304
13305 var _Object$defineProperty = __webpack_require__(1);
13306
13307 _Object$defineProperty(exports, "__esModule", {
13308 value: true
13309 });
13310
13311 exports.default = void 0;
13312
13313 var _values = _interopRequireDefault(__webpack_require__(51));
13314
13315 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13316
13317 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13318
13319 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13320
13321 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13322
13323 var _category = _interopRequireDefault(__webpack_require__(669));
13324
13325 var _dynamicCategory = _interopRequireDefault(__webpack_require__(710));
13326
13327 var _default = /*#__PURE__*/function (_Marionette$Composite) {
13328 (0, _inherits2.default)(_default, _Marionette$Composite);
13329
13330 var _super = (0, _createSuper2.default)(_default);
13331
13332 function _default() {
13333 (0, _classCallCheck2.default)(this, _default);
13334 return _super.apply(this, arguments);
13335 }
13336
13337 (0, _createClass2.default)(_default, [{
13338 key: "id",
13339 value: function id() {
13340 return 'elementor-finder__results-container';
13341 }
13342 }, {
13343 key: "ui",
13344 value: function ui() {
13345 return {
13346 noResults: '#elementor-finder__no-results',
13347 categoryItem: '.elementor-finder__results__item'
13348 };
13349 }
13350 }, {
13351 key: "events",
13352 value: function events() {
13353 return {
13354 'mouseenter @ui.categoryItem': 'onCategoryItemMouseEnter'
13355 };
13356 }
13357 }, {
13358 key: "getTemplate",
13359 value: function getTemplate() {
13360 return '#tmpl-elementor-finder-results-container';
13361 }
13362 }, {
13363 key: "getChildView",
13364 value: function getChildView(childModel) {
13365 return childModel.get('dynamic') ? _dynamicCategory.default : _category.default;
13366 }
13367 }, {
13368 key: "initialize",
13369 value: function initialize() {
13370 this.$activeItem = null;
13371 this.childViewContainer = '#elementor-finder__results';
13372 this.collection = new Backbone.Collection((0, _values.default)(elementorCommon.finder.getSettings('data')));
13373 }
13374 }, {
13375 key: "activateItem",
13376 value: function activateItem($item) {
13377 if (this.$activeItem) {
13378 this.$activeItem.removeClass('elementor-active');
13379 }
13380
13381 $item.addClass('elementor-active');
13382 this.$activeItem = $item;
13383 }
13384 }, {
13385 key: "activateNextItem",
13386 value: function activateNextItem(reverse) {
13387 var $allItems = jQuery(this.ui.categoryItem.selector);
13388 var nextItemIndex = 0;
13389
13390 if (this.$activeItem) {
13391 nextItemIndex = $allItems.index(this.$activeItem) + (reverse ? -1 : 1);
13392
13393 if (nextItemIndex >= $allItems.length) {
13394 nextItemIndex = 0;
13395 } else if (nextItemIndex < 0) {
13396 nextItemIndex = $allItems.length - 1;
13397 }
13398 }
13399
13400 var $nextItem = $allItems.eq(nextItemIndex);
13401 this.activateItem($nextItem);
13402 $nextItem[0].scrollIntoView({
13403 block: 'nearest'
13404 });
13405 }
13406 }, {
13407 key: "goToActiveItem",
13408 value: function goToActiveItem(event) {
13409 var $a = this.$activeItem.children('a'),
13410 isControlClicked = $e.shortcuts.isControlEvent(event);
13411
13412 if (isControlClicked) {
13413 $a.attr('target', '_blank');
13414 }
13415
13416 $a[0].click();
13417
13418 if (isControlClicked) {
13419 $a.removeAttr('target');
13420 }
13421 }
13422 }, {
13423 key: "onCategoryItemMouseEnter",
13424 value: function onCategoryItemMouseEnter(event) {
13425 this.activateItem(jQuery(event.currentTarget));
13426 }
13427 }, {
13428 key: "onChildviewToggleVisibility",
13429 value: function onChildviewToggleVisibility() {
13430 var allCategoriesAreEmpty = this.children.every(function (child) {
13431 return !child.isVisible;
13432 });
13433 this.ui.noResults.toggle(allCategoriesAreEmpty);
13434 }
13435 }]);
13436 return _default;
13437 }(Marionette.CompositeView);
13438
13439 exports.default = _default;
13440
13441 /***/ }),
13442 /* 708 */
13443 /***/ (function(module, exports, __webpack_require__) {
13444
13445 "use strict";
13446
13447
13448 var _interopRequireDefault = __webpack_require__(0);
13449
13450 var _Object$defineProperty = __webpack_require__(1);
13451
13452 _Object$defineProperty(exports, "__esModule", {
13453 value: true
13454 });
13455
13456 exports.default = void 0;
13457
13458 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13459
13460 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13461
13462 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13463
13464 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13465
13466 var _default = /*#__PURE__*/function (_Marionette$ItemView) {
13467 (0, _inherits2.default)(_default, _Marionette$ItemView);
13468
13469 var _super = (0, _createSuper2.default)(_default);
13470
13471 function _default() {
13472 (0, _classCallCheck2.default)(this, _default);
13473 return _super.apply(this, arguments);
13474 }
13475
13476 (0, _createClass2.default)(_default, [{
13477 key: "className",
13478 value: function className() {
13479 return 'elementor-finder__results__item';
13480 }
13481 }, {
13482 key: "getTemplate",
13483 value: function getTemplate() {
13484 return '#tmpl-elementor-finder__results__item';
13485 }
13486 }]);
13487 return _default;
13488 }(Marionette.ItemView);
13489
13490 exports.default = _default;
13491
13492 /***/ }),
13493 /* 709 */
13494 /***/ (function(module, exports, __webpack_require__) {
13495
13496 "use strict";
13497
13498
13499 var _interopRequireDefault = __webpack_require__(0);
13500
13501 var _Object$defineProperty = __webpack_require__(1);
13502
13503 _Object$defineProperty(exports, "__esModule", {
13504 value: true
13505 });
13506
13507 exports.default = void 0;
13508
13509 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13510
13511 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13512
13513 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13514
13515 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13516
13517 var _default = /*#__PURE__*/function (_Backbone$Model) {
13518 (0, _inherits2.default)(_default, _Backbone$Model);
13519
13520 var _super = (0, _createSuper2.default)(_default);
13521
13522 function _default() {
13523 (0, _classCallCheck2.default)(this, _default);
13524 return _super.apply(this, arguments);
13525 }
13526
13527 (0, _createClass2.default)(_default, [{
13528 key: "defaults",
13529 value: function defaults() {
13530 return {
13531 description: '',
13532 icon: 'settings',
13533 url: '',
13534 keywords: [],
13535 actions: []
13536 };
13537 }
13538 }]);
13539 return _default;
13540 }(Backbone.Model);
13541
13542 exports.default = _default;
13543
13544 /***/ }),
13545 /* 710 */
13546 /***/ (function(module, exports, __webpack_require__) {
13547
13548 "use strict";
13549
13550
13551 var _interopRequireDefault = __webpack_require__(0);
13552
13553 var _Object$defineProperty = __webpack_require__(1);
13554
13555 _Object$defineProperty(exports, "__esModule", {
13556 value: true
13557 });
13558
13559 exports.default = void 0;
13560
13561 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13562
13563 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13564
13565 var _get2 = _interopRequireDefault(__webpack_require__(23));
13566
13567 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
13568
13569 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13570
13571 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13572
13573 var _category = _interopRequireDefault(__webpack_require__(669));
13574
13575 var _default = /*#__PURE__*/function (_Category) {
13576 (0, _inherits2.default)(_default, _Category);
13577
13578 var _super = (0, _createSuper2.default)(_default);
13579
13580 function _default() {
13581 (0, _classCallCheck2.default)(this, _default);
13582 return _super.apply(this, arguments);
13583 }
13584
13585 (0, _createClass2.default)(_default, [{
13586 key: "className",
13587 value: function className() {
13588 return (0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "className", this).call(this) + ' elementor-finder__results__category--dynamic';
13589 }
13590 }, {
13591 key: "ui",
13592 value: function ui() {
13593 return {
13594 title: '.elementor-finder__results__category__title'
13595 };
13596 }
13597 }, {
13598 key: "fetchData",
13599 value: function fetchData() {
13600 var _this = this;
13601
13602 this.ui.loadingIcon.show();
13603 elementorCommon.ajax.addRequest('finder_get_category_items', {
13604 data: {
13605 category: this.model.get('name'),
13606 filter: this.getTextFilter()
13607 },
13608 success: function success(data) {
13609 if (_this.isDestroyed) {
13610 return;
13611 }
13612
13613 _this.collection.set(data);
13614
13615 _this.toggleElement();
13616
13617 _this.ui.loadingIcon.hide();
13618 }
13619 });
13620 }
13621 }, {
13622 key: "filter",
13623 value: function filter() {
13624 return true;
13625 }
13626 }, {
13627 key: "onFilterChange",
13628 value: function onFilterChange() {
13629 this.fetchData();
13630 }
13631 }, {
13632 key: "onRender",
13633 value: function onRender() {
13634 (0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "onRender", this).call(this);
13635 this.ui.loadingIcon = jQuery('<i>', {
13636 class: 'eicon-loading eicon-animation-spin'
13637 });
13638 this.ui.title.after(this.ui.loadingIcon);
13639 this.fetchData();
13640 }
13641 }]);
13642 return _default;
13643 }(_category.default);
13644
13645 exports.default = _default;
13646
13647 /***/ }),
13648 /* 711 */
13649 /***/ (function(module, exports, __webpack_require__) {
13650
13651 "use strict";
13652
13653
13654 var _Object$defineProperty = __webpack_require__(1);
13655
13656 _Object$defineProperty(exports, "__esModule", {
13657 value: true
13658 });
13659
13660 _Object$defineProperty(exports, "NavigateDown", {
13661 enumerable: true,
13662 get: function get() {
13663 return _navigateDown.NavigateDown;
13664 }
13665 });
13666
13667 _Object$defineProperty(exports, "NavigateSelect", {
13668 enumerable: true,
13669 get: function get() {
13670 return _navigateSelect.NavigateSelect;
13671 }
13672 });
13673
13674 _Object$defineProperty(exports, "NavigateUp", {
13675 enumerable: true,
13676 get: function get() {
13677 return _navigateUp.NavigateUp;
13678 }
13679 });
13680
13681 var _navigateDown = __webpack_require__(712);
13682
13683 var _navigateSelect = __webpack_require__(713);
13684
13685 var _navigateUp = __webpack_require__(714);
13686
13687 /***/ }),
13688 /* 712 */
13689 /***/ (function(module, exports, __webpack_require__) {
13690
13691 "use strict";
13692
13693
13694 var _interopRequireDefault = __webpack_require__(0);
13695
13696 var _Object$defineProperty = __webpack_require__(1);
13697
13698 _Object$defineProperty(exports, "__esModule", {
13699 value: true
13700 });
13701
13702 exports.default = exports.NavigateDown = void 0;
13703
13704 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13705
13706 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13707
13708 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13709
13710 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13711
13712 var _commandBase = _interopRequireDefault(__webpack_require__(20));
13713
13714 var NavigateDown = /*#__PURE__*/function (_CommandBase) {
13715 (0, _inherits2.default)(NavigateDown, _CommandBase);
13716
13717 var _super = (0, _createSuper2.default)(NavigateDown);
13718
13719 function NavigateDown() {
13720 (0, _classCallCheck2.default)(this, NavigateDown);
13721 return _super.apply(this, arguments);
13722 }
13723
13724 (0, _createClass2.default)(NavigateDown, [{
13725 key: "apply",
13726 value: function apply() {
13727 this.component.getItemsView().activateNextItem();
13728 }
13729 }]);
13730 return NavigateDown;
13731 }(_commandBase.default);
13732
13733 exports.NavigateDown = NavigateDown;
13734 var _default = NavigateDown;
13735 exports.default = _default;
13736
13737 /***/ }),
13738 /* 713 */
13739 /***/ (function(module, exports, __webpack_require__) {
13740
13741 "use strict";
13742
13743
13744 var _interopRequireDefault = __webpack_require__(0);
13745
13746 var _Object$defineProperty = __webpack_require__(1);
13747
13748 _Object$defineProperty(exports, "__esModule", {
13749 value: true
13750 });
13751
13752 exports.default = exports.NavigateSelect = void 0;
13753
13754 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13755
13756 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13757
13758 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13759
13760 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13761
13762 var _commandBase = _interopRequireDefault(__webpack_require__(20));
13763
13764 var NavigateSelect = /*#__PURE__*/function (_CommandBase) {
13765 (0, _inherits2.default)(NavigateSelect, _CommandBase);
13766
13767 var _super = (0, _createSuper2.default)(NavigateSelect);
13768
13769 function NavigateSelect() {
13770 (0, _classCallCheck2.default)(this, NavigateSelect);
13771 return _super.apply(this, arguments);
13772 }
13773
13774 (0, _createClass2.default)(NavigateSelect, [{
13775 key: "apply",
13776 value: function apply(args) {
13777 this.component.getItemsView().goToActiveItem(args);
13778 }
13779 }]);
13780 return NavigateSelect;
13781 }(_commandBase.default);
13782
13783 exports.NavigateSelect = NavigateSelect;
13784 var _default = NavigateSelect;
13785 exports.default = _default;
13786
13787 /***/ }),
13788 /* 714 */
13789 /***/ (function(module, exports, __webpack_require__) {
13790
13791 "use strict";
13792
13793
13794 var _interopRequireDefault = __webpack_require__(0);
13795
13796 var _Object$defineProperty = __webpack_require__(1);
13797
13798 _Object$defineProperty(exports, "__esModule", {
13799 value: true
13800 });
13801
13802 exports.default = exports.NavigateUp = void 0;
13803
13804 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13805
13806 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13807
13808 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13809
13810 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13811
13812 var _commandBase = _interopRequireDefault(__webpack_require__(20));
13813
13814 var NavigateUp = /*#__PURE__*/function (_CommandBase) {
13815 (0, _inherits2.default)(NavigateUp, _CommandBase);
13816
13817 var _super = (0, _createSuper2.default)(NavigateUp);
13818
13819 function NavigateUp() {
13820 (0, _classCallCheck2.default)(this, NavigateUp);
13821 return _super.apply(this, arguments);
13822 }
13823
13824 (0, _createClass2.default)(NavigateUp, [{
13825 key: "apply",
13826 value: function apply() {
13827 this.component.getItemsView().activateNextItem(true);
13828 }
13829 }]);
13830 return NavigateUp;
13831 }(_commandBase.default);
13832
13833 exports.NavigateUp = NavigateUp;
13834 var _default = NavigateUp;
13835 exports.default = _default;
13836
13837 /***/ }),
13838 /* 715 */
13839 /***/ (function(module, exports, __webpack_require__) {
13840
13841 "use strict";
13842
13843
13844 var _interopRequireDefault = __webpack_require__(0);
13845
13846 var _Object$defineProperty = __webpack_require__(1);
13847
13848 _Object$defineProperty(exports, "__esModule", {
13849 value: true
13850 });
13851
13852 exports.default = void 0;
13853
13854 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13855
13856 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13857
13858 var _get2 = _interopRequireDefault(__webpack_require__(23));
13859
13860 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
13861
13862 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13863
13864 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13865
13866 var _default = /*#__PURE__*/function (_elementorModules$Vie) {
13867 (0, _inherits2.default)(_default, _elementorModules$Vie);
13868
13869 var _super = (0, _createSuper2.default)(_default);
13870
13871 function _default() {
13872 (0, _classCallCheck2.default)(this, _default);
13873 return _super.apply(this, arguments);
13874 }
13875
13876 (0, _createClass2.default)(_default, [{
13877 key: "addPopupPlugin",
13878 value: function addPopupPlugin() {
13879 var counter = 0;
13880
13881 jQuery.fn.elementorConnect = function (options) {
13882 var settings = jQuery.extend({
13883 // These are the defaults.
13884 success: function success() {
13885 return location.reload();
13886 },
13887 error: function error() {
13888 elementor.notifications.showToast({
13889 message: elementor.translate('connect_error')
13890 });
13891 }
13892 }, options);
13893 this.each(function () {
13894 counter++;
13895 var $this = jQuery(this),
13896 callbackId = 'cb' + counter;
13897 $this.attr({
13898 target: '_blank',
13899 href: $this.attr('href') + '&mode=popup&callback_id=' + callbackId
13900 });
13901 elementorCommon.elements.$window.on('elementor/connect/success/' + callbackId, settings.success).on('elementor/connect/error/' + callbackId, settings.error);
13902 });
13903 return this;
13904 };
13905 }
13906 }, {
13907 key: "getDefaultSettings",
13908 value: function getDefaultSettings() {
13909 return {
13910 selectors: {
13911 connectButton: '#elementor-template-library-connect__button'
13912 }
13913 };
13914 }
13915 }, {
13916 key: "getDefaultElements",
13917 value: function getDefaultElements() {
13918 return {
13919 $connectButton: jQuery(this.getSettings('selectors.connectButton'))
13920 };
13921 }
13922 }, {
13923 key: "applyPopup",
13924 value: function applyPopup() {
13925 this.elements.$connectButton.elementorConnect();
13926 }
13927 }, {
13928 key: "onInit",
13929 value: function onInit() {
13930 (0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "onInit", this).call(this);
13931 this.addPopupPlugin();
13932 this.applyPopup();
13933 }
13934 }]);
13935 return _default;
13936 }(elementorModules.ViewModule);
13937
13938 exports.default = _default;
13939
13940 /***/ }),
13941 /* 716 */
13942 /***/ (function(module, exports, __webpack_require__) {
13943
13944 "use strict";
13945
13946
13947 var _interopRequireWildcard = __webpack_require__(39);
13948
13949 var _interopRequireDefault = __webpack_require__(0);
13950
13951 var _Object$defineProperty = __webpack_require__(1);
13952
13953 _Object$defineProperty(exports, "__esModule", {
13954 value: true
13955 });
13956
13957 exports.default = void 0;
13958
13959 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13960
13961 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13962
13963 var _backwardsCompatibility = _interopRequireDefault(__webpack_require__(717));
13964
13965 var _commandBase = _interopRequireDefault(__webpack_require__(20));
13966
13967 var _commandInternalBase = _interopRequireDefault(__webpack_require__(198));
13968
13969 var _commandData = _interopRequireDefault(__webpack_require__(307));
13970
13971 var _commands = _interopRequireDefault(__webpack_require__(340));
13972
13973 var _commandsInternal = _interopRequireDefault(__webpack_require__(718));
13974
13975 var _componentBase = _interopRequireDefault(__webpack_require__(79));
13976
13977 var _componentModalBase = _interopRequireDefault(__webpack_require__(286));
13978
13979 var _components = _interopRequireDefault(__webpack_require__(719));
13980
13981 var _data = _interopRequireDefault(__webpack_require__(627));
13982
13983 var _hookBreak = _interopRequireDefault(__webpack_require__(632));
13984
13985 var _hooks = _interopRequireDefault(__webpack_require__(720));
13986
13987 var _routes = _interopRequireDefault(__webpack_require__(723));
13988
13989 var _shortcuts = _interopRequireDefault(__webpack_require__(724));
13990
13991 var hookData = _interopRequireWildcard(__webpack_require__(725));
13992
13993 var hookUI = _interopRequireWildcard(__webpack_require__(727));
13994
13995 /* Alphabetical order */
13996 var API = /*#__PURE__*/function () {
13997 /**
13998 * Function constructor().
13999 *
14000 * Create's 'elementor' api.
14001 */
14002 function API() {
14003 (0, _classCallCheck2.default)(this, API);
14004 window.$e = this;
14005 this.components = new _components.default();
14006 this.commands = new _commands.default();
14007 this.commandsInternal = new _commandsInternal.default();
14008 this.hooks = new _hooks.default();
14009 this.routes = new _routes.default();
14010 this.shortcuts = new _shortcuts.default(jQuery(window));
14011 this.data = new _data.default();
14012 this.modules = {
14013 CommandBase: _commandBase.default,
14014 CommandInternalBase: _commandInternalBase.default,
14015 CommandData: _commandData.default,
14016 ComponentBase: _componentBase.default,
14017 ComponentModalBase: _componentModalBase.default,
14018 HookBreak: _hookBreak.default,
14019 hookData: hookData,
14020 hookUI: hookUI
14021 }; // Backwards compatibility should be last, in order to handle others.
14022
14023 this.bc = new _backwardsCompatibility.default();
14024 }
14025 /**
14026 * Function run().
14027 *
14028 * Alias of `$e.commands.run()`.
14029 *
14030 * @param {string} command
14031 * @param [args={}]
14032 *
14033 * @returns {*}
14034 */
14035
14036
14037 (0, _createClass2.default)(API, [{
14038 key: "run",
14039 value: function run(command) {
14040 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14041 return $e.commands.run(command, args);
14042 }
14043 /**
14044 * Function internal().
14045 *
14046 * Alias of `$e.commandsInternal.run()`.
14047 *
14048 * @param {string} command
14049 * @param [args={}]
14050 *
14051 * @returns {boolean}
14052 */
14053
14054 }, {
14055 key: "internal",
14056 value: function internal(command) {
14057 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14058 return $e.commandsInternal.run(command, args);
14059 }
14060 /**
14061 * Function route().
14062 *
14063 * Alias of `$e.routes.to()`.
14064 *
14065 * @param {string} route
14066 * @param [args={}]
14067 */
14068
14069 }, {
14070 key: "route",
14071 value: function route(_route) {
14072 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14073 return $e.routes.to(_route, args);
14074 } // TODO: shortcut();
14075
14076 }]);
14077 return API;
14078 }();
14079
14080 exports.default = API;
14081
14082 /***/ }),
14083 /* 717 */
14084 /***/ (function(module, exports, __webpack_require__) {
14085
14086 "use strict";
14087
14088
14089 var _interopRequireDefault = __webpack_require__(0);
14090
14091 var _Object$defineProperty = __webpack_require__(1);
14092
14093 _Object$defineProperty(exports, "__esModule", {
14094 value: true
14095 });
14096
14097 exports.default = void 0;
14098
14099 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14100
14101 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14102
14103 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14104
14105 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14106
14107 var _componentBase = _interopRequireDefault(__webpack_require__(79));
14108
14109 var BackwardsCompatibility = /*#__PURE__*/function () {
14110 function BackwardsCompatibility() {
14111 (0, _classCallCheck2.default)(this, BackwardsCompatibility);
14112 }
14113
14114 (0, _createClass2.default)(BackwardsCompatibility, [{
14115 key: "ensureTab",
14116 value: function ensureTab(namespace, tabSlug) {
14117 var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
14118 var component = $e.components.get(namespace);
14119
14120 if (!component) {
14121 var Component = /*#__PURE__*/function (_ComponentBase) {
14122 (0, _inherits2.default)(Component, _ComponentBase);
14123
14124 var _super = (0, _createSuper2.default)(Component);
14125
14126 function Component() {
14127 (0, _classCallCheck2.default)(this, Component);
14128 return _super.apply(this, arguments);
14129 }
14130
14131 (0, _createClass2.default)(Component, [{
14132 key: "getNamespace",
14133 value: function getNamespace() {
14134 return namespace;
14135 }
14136 }, {
14137 key: "renderTab",
14138 value: function renderTab(tab) {
14139 elementor.getPanelView().setPage(page).activateTab(tab);
14140 }
14141 }]);
14142 return Component;
14143 }(_componentBase.default);
14144
14145 component = $e.components.register(new Component());
14146 }
14147
14148 if (!component.hasTab(tabSlug) && elementor.config.tabs[tabSlug]) {
14149 component.addTab(tabSlug, {
14150 title: elementor.config.tabs[tabSlug]
14151 });
14152 }
14153 }
14154 }]);
14155 return BackwardsCompatibility;
14156 }();
14157
14158 exports.default = BackwardsCompatibility;
14159
14160 /***/ }),
14161 /* 718 */
14162 /***/ (function(module, exports, __webpack_require__) {
14163
14164 "use strict";
14165
14166
14167 var _interopRequireDefault = __webpack_require__(0);
14168
14169 var _Object$defineProperty = __webpack_require__(1);
14170
14171 _Object$defineProperty(exports, "__esModule", {
14172 value: true
14173 });
14174
14175 exports.default = void 0;
14176
14177 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14178
14179 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14180
14181 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14182
14183 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14184
14185 var _commands = _interopRequireDefault(__webpack_require__(340));
14186
14187 var CommandsInternal = /*#__PURE__*/function (_Commands) {
14188 (0, _inherits2.default)(CommandsInternal, _Commands);
14189
14190 var _super = (0, _createSuper2.default)(CommandsInternal);
14191
14192 function CommandsInternal() {
14193 (0, _classCallCheck2.default)(this, CommandsInternal);
14194 return _super.apply(this, arguments);
14195 }
14196
14197 (0, _createClass2.default)(CommandsInternal, [{
14198 key: "error",
14199 value: function error(message) {
14200 throw Error('Commands internal: ' + message);
14201 }
14202 }]);
14203 return CommandsInternal;
14204 }(_commands.default);
14205
14206 exports.default = CommandsInternal;
14207
14208 /***/ }),
14209 /* 719 */
14210 /***/ (function(module, exports, __webpack_require__) {
14211
14212 "use strict";
14213
14214
14215 var _interopRequireDefault = __webpack_require__(0);
14216
14217 var _Object$defineProperty = __webpack_require__(1);
14218
14219 _Object$defineProperty(exports, "__esModule", {
14220 value: true
14221 });
14222
14223 exports.default = void 0;
14224
14225 var _keys = _interopRequireDefault(__webpack_require__(24));
14226
14227 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14228
14229 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14230
14231 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14232
14233 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14234
14235 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
14236 (0, _inherits2.default)(_default, _elementorModules$Mod);
14237
14238 var _super = (0, _createSuper2.default)(_default);
14239
14240 function _default() {
14241 var _this;
14242
14243 (0, _classCallCheck2.default)(this, _default);
14244
14245 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14246 args[_key] = arguments[_key];
14247 }
14248
14249 _this = _super.call.apply(_super, [this].concat(args));
14250 _this.components = {};
14251 _this.activeComponents = {};
14252 return _this;
14253 }
14254
14255 (0, _createClass2.default)(_default, [{
14256 key: "getAll",
14257 value: function getAll() {
14258 return (0, _keys.default)(this.components).sort();
14259 }
14260 }, {
14261 key: "register",
14262 value: function register(component) {
14263 if (this.components[component.getNamespace()]) {
14264 return;
14265 }
14266
14267 component.registerAPI();
14268 this.components[component.getNamespace()] = component;
14269 return component;
14270 }
14271 /**
14272 * @returns {Component}
14273 */
14274
14275 }, {
14276 key: "get",
14277 value: function get(id) {
14278 return this.components[id];
14279 }
14280 }, {
14281 key: "getActive",
14282 value: function getActive() {
14283 return this.activeComponents;
14284 }
14285 }, {
14286 key: "activate",
14287 value: function activate(namespace) {
14288 // Add as last.
14289 this.inactivate(namespace);
14290 this.activeComponents[namespace] = true;
14291 }
14292 }, {
14293 key: "inactivate",
14294 value: function inactivate(namespace) {
14295 delete this.activeComponents[namespace];
14296 }
14297 }, {
14298 key: "isActive",
14299 value: function isActive(namespace) {
14300 return !!this.activeComponents[namespace];
14301 }
14302 }]);
14303 return _default;
14304 }(elementorModules.Module);
14305
14306 exports.default = _default;
14307
14308 /***/ }),
14309 /* 720 */
14310 /***/ (function(module, exports, __webpack_require__) {
14311
14312 "use strict";
14313
14314
14315 var _interopRequireDefault = __webpack_require__(0);
14316
14317 var _Object$defineProperty = __webpack_require__(1);
14318
14319 _Object$defineProperty(exports, "__esModule", {
14320 value: true
14321 });
14322
14323 exports.default = void 0;
14324
14325 __webpack_require__(26);
14326
14327 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14328
14329 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14330
14331 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
14332
14333 var _data = _interopRequireDefault(__webpack_require__(721));
14334
14335 var _ui = _interopRequireDefault(__webpack_require__(722));
14336
14337 var Hooks = /*#__PURE__*/function () {
14338 function Hooks() {
14339 (0, _classCallCheck2.default)(this, Hooks);
14340 (0, _defineProperty2.default)(this, "data", new _data.default());
14341 (0, _defineProperty2.default)(this, "ui", new _ui.default());
14342 }
14343
14344 (0, _createClass2.default)(Hooks, [{
14345 key: "activate",
14346
14347 /**
14348 * Function activate().
14349 *
14350 * Activate all hooks.
14351 */
14352 value: function activate() {
14353 this.getTypes().forEach(function (hooksType) {
14354 hooksType.activate();
14355 });
14356 }
14357 /**
14358 * Function deactivate().
14359 *
14360 * Deactivate all hooks.
14361 */
14362
14363 }, {
14364 key: "deactivate",
14365 value: function deactivate() {
14366 this.getTypes().forEach(function (hooksType) {
14367 hooksType.deactivate();
14368 });
14369 }
14370 }, {
14371 key: "getAll",
14372 value: function getAll() {
14373 var flat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
14374 var result = {};
14375 this.getTypes().forEach(function (hooksType) {
14376 result[hooksType.getType()] = hooksType.getAll(flat);
14377 });
14378 return result;
14379 }
14380 }, {
14381 key: "getTypes",
14382 value: function getTypes() {
14383 return [this.data, this.ui];
14384 }
14385 }, {
14386 key: "getType",
14387 value: function getType(type) {
14388 return this.getTypes().find(function (hooks) {
14389 return type === hooks.getType();
14390 });
14391 }
14392 /**
14393 * Function register().
14394 *
14395 * Register hook.
14396 *
14397 * @param {string} type
14398 * @param {string} event
14399 * @param {HookBase} instance
14400 *
14401 * @returns {{}} Created callback
14402 */
14403
14404 }, {
14405 key: "register",
14406 value: function register(type, event, instance) {
14407 return this.getType(type).register(event, instance);
14408 }
14409 /**
14410 * Function run().
14411 *
14412 * Run's a hook.
14413 *
14414 * @param {string} type
14415 * @param {string} event
14416 * @param {string} command
14417 * @param {{}} args
14418 * @param {*} result
14419 *
14420 * @returns {boolean}
14421 */
14422
14423 }, {
14424 key: "run",
14425 value: function run(type, event, command, args) {
14426 var result = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
14427 return this.getType(type).run(event, command, args, result);
14428 }
14429 /**
14430 * Function registerDataAfter().
14431 *
14432 * Register data hook that's run after the command.
14433 *
14434 * @param {HookBase} instance
14435 *
14436 * @returns {{}}
14437 */
14438
14439 }, {
14440 key: "registerDataAfter",
14441 value: function registerDataAfter(instance) {
14442 return this.register('data', 'after', instance);
14443 }
14444 /**
14445 * Function registerDataCatch().
14446 *
14447 * Register data hook that's run when the command fails.
14448 *
14449 * @param {HookBase} instance
14450 *
14451 * @returns {{}}
14452 */
14453
14454 }, {
14455 key: "registerDataCatch",
14456 value: function registerDataCatch(instance) {
14457 return this.register('data', 'catch', instance);
14458 }
14459 /**
14460 * Function registerDataDependency().
14461 *
14462 * Register data hook that's run before the command as dependency.
14463 *
14464 * @param {HookBase} instance
14465 *
14466 * @returns {{}}
14467 */
14468
14469 }, {
14470 key: "registerDataDependency",
14471 value: function registerDataDependency(instance) {
14472 return this.register('data', 'dependency', instance);
14473 }
14474 /**
14475 * Function registerUIAfter().
14476 *
14477 * Register UI hook that's run after the commands run.
14478 *
14479 * @param {HookBase} instance
14480 *
14481 * @returns {{}}
14482 */
14483
14484 }, {
14485 key: "registerUIAfter",
14486 value: function registerUIAfter(instance) {
14487 return this.register('ui', 'after', instance);
14488 }
14489 /**
14490 * Function registerUICatch().
14491 *
14492 * Register UI hook that's run when the command fails.
14493 *
14494 * @param {HookBase} instance
14495 *
14496 * @returns {{}}
14497 */
14498
14499 }, {
14500 key: "registerUICatch",
14501 value: function registerUICatch(instance) {
14502 return this.register('ui', 'catch', instance);
14503 }
14504 /**
14505 * Function registerUIBefore().
14506 *
14507 * Register UI hook that's run before the command.
14508 *
14509 * @param {HookBase} instance
14510 *
14511 * @returns {{}}
14512 */
14513
14514 }, {
14515 key: "registerUIBefore",
14516 value: function registerUIBefore(instance) {
14517 return this.register('ui', 'before', instance);
14518 }
14519 /**
14520 * Function runDataAfter().
14521 *
14522 * Run data hook that's run after the command.
14523 *
14524 * @param {string} command
14525 * @param {{}} args
14526 * @param {*} result
14527 *
14528 * @returns {boolean}
14529 */
14530
14531 }, {
14532 key: "runDataAfter",
14533 value: function runDataAfter(command, args, result) {
14534 return this.run('data', 'after', command, args, result);
14535 }
14536 /**
14537 * Function runDataCatch().
14538 *
14539 * Run data hook that's run when the command fails.
14540 *
14541 * @param {string} command
14542 * @param {{}} args
14543 * @param {*} error
14544 *
14545 * @returns {boolean}
14546 */
14547
14548 }, {
14549 key: "runDataCatch",
14550 value: function runDataCatch(command, args, error) {
14551 return this.run('data', 'catch', command, args, error);
14552 }
14553 /**
14554 * Function runDataDependency().
14555 *
14556 * Run data hook that's run before the command as dependency.
14557 *
14558 * @param {string} command
14559 * @param {{}} args
14560 *
14561 * @returns {boolean}
14562 */
14563
14564 }, {
14565 key: "runDataDependency",
14566 value: function runDataDependency(command, args) {
14567 return this.run('data', 'dependency', command, args);
14568 }
14569 /**
14570 * Function runUIAfter().
14571 *
14572 * Run UI hook that's run after the commands run.
14573 *
14574 * @param {string} command
14575 * @param {{}} args
14576 * @param {*} result
14577 *
14578 * @returns {boolean}
14579 */
14580
14581 }, {
14582 key: "runUIAfter",
14583 value: function runUIAfter(command, args, result) {
14584 return this.run('ui', 'after', command, args, result);
14585 }
14586 /**
14587 * Function runUICatch().
14588 *
14589 * Run UI hook that's run when the command fails.
14590 *
14591 * @param {string} command
14592 * @param {{}} args
14593 * @param {*} e
14594 *
14595 * @returns {boolean}
14596 */
14597
14598 }, {
14599 key: "runUICatch",
14600 value: function runUICatch(command, args, e) {
14601 return this.run('ui', 'catch', command, args, e);
14602 }
14603 /**
14604 * Function runUIBefore().
14605 *
14606 * Run UI hook that's run before the command.
14607 *
14608 * @param {string} command
14609 * @param {{}} args
14610 *
14611 * @returns {boolean}
14612 */
14613
14614 }, {
14615 key: "runUIBefore",
14616 value: function runUIBefore(command, args) {
14617 return this.run('ui', 'before', command, args);
14618 }
14619 }]);
14620 return Hooks;
14621 }();
14622
14623 exports.default = Hooks;
14624
14625 /***/ }),
14626 /* 721 */
14627 /***/ (function(module, exports, __webpack_require__) {
14628
14629 "use strict";
14630
14631
14632 var _interopRequireDefault = __webpack_require__(0);
14633
14634 var _Object$defineProperty = __webpack_require__(1);
14635
14636 _Object$defineProperty(exports, "__esModule", {
14637 value: true
14638 });
14639
14640 exports.default = void 0;
14641
14642 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14643
14644 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14645
14646 var _get2 = _interopRequireDefault(__webpack_require__(23));
14647
14648 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
14649
14650 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14651
14652 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14653
14654 var _base = _interopRequireDefault(__webpack_require__(408));
14655
14656 var Data = /*#__PURE__*/function (_HooksBase) {
14657 (0, _inherits2.default)(Data, _HooksBase);
14658
14659 var _super = (0, _createSuper2.default)(Data);
14660
14661 function Data() {
14662 var _this;
14663
14664 (0, _classCallCheck2.default)(this, Data);
14665
14666 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14667 args[_key] = arguments[_key];
14668 }
14669
14670 _this = _super.call.apply(_super, [this].concat(args));
14671 _this.callbacks.dependency = {};
14672 _this.depth.dependency = {};
14673 return _this;
14674 }
14675
14676 (0, _createClass2.default)(Data, [{
14677 key: "getType",
14678 value: function getType() {
14679 return 'data';
14680 }
14681 }, {
14682 key: "runCallback",
14683 value: function runCallback(event, callback, args, result) {
14684 switch (event) {
14685 case 'dependency':
14686 {
14687 // If callback returns false and its dependency, then 'Hook-Break'.
14688 if (!callback.callback(args)) {
14689 this.depth[event][callback.id]--; // Throw custom break to be catch by the base for 'Safe' exit.
14690
14691 throw new $e.modules.HookBreak();
14692 }
14693
14694 return true;
14695 }
14696
14697 case 'catch':
14698 case 'after':
14699 {
14700 /**
14701 * When handling HOOK which is data after (not breakable),
14702 * even the result of the callback is negative, it is required to return positive,
14703 * since result of runCallback determine if the callback succeeded.
14704 */
14705 return callback.callback(args, result) || 'after' === event;
14706 }
14707 }
14708
14709 return false;
14710 }
14711 }, {
14712 key: "shouldRun",
14713 value: function shouldRun(callbacks) {
14714 return (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "shouldRun", this).call(this, callbacks) && elementor.documents.getCurrent().history.getActive();
14715 }
14716 }, {
14717 key: "onRun",
14718 value: function onRun(command, args, event) {
14719 if (!$e.devTools) {
14720 return;
14721 }
14722
14723 $e.devTools.log.callbacks().run(this.getType(), command, args, event);
14724 }
14725 }, {
14726 key: "onCallback",
14727 value: function onCallback(command, args, event, id) {
14728 if (!$e.devTools) {
14729 return;
14730 }
14731
14732 $e.devTools.log.callbacks().callback(this.getType(), command, args, event, id);
14733 }
14734 }]);
14735 return Data;
14736 }(_base.default);
14737
14738 exports.default = Data;
14739
14740 /***/ }),
14741 /* 722 */
14742 /***/ (function(module, exports, __webpack_require__) {
14743
14744 "use strict";
14745
14746
14747 var _interopRequireDefault = __webpack_require__(0);
14748
14749 var _Object$defineProperty = __webpack_require__(1);
14750
14751 _Object$defineProperty(exports, "__esModule", {
14752 value: true
14753 });
14754
14755 exports.default = void 0;
14756
14757 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14758
14759 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14760
14761 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14762
14763 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14764
14765 var _base = _interopRequireDefault(__webpack_require__(408));
14766
14767 var Ui = /*#__PURE__*/function (_HooksBase) {
14768 (0, _inherits2.default)(Ui, _HooksBase);
14769
14770 var _super = (0, _createSuper2.default)(Ui);
14771
14772 function Ui() {
14773 var _this;
14774
14775 (0, _classCallCheck2.default)(this, Ui);
14776
14777 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14778 args[_key] = arguments[_key];
14779 }
14780
14781 _this = _super.call.apply(_super, [this].concat(args));
14782 _this.callbacks.before = {};
14783 _this.depth.before = {};
14784 return _this;
14785 }
14786
14787 (0, _createClass2.default)(Ui, [{
14788 key: "getType",
14789 value: function getType() {
14790 return 'ui';
14791 }
14792 }, {
14793 key: "runCallback",
14794 value: function runCallback(event, callback, args, result) {
14795 switch (event) {
14796 case 'before':
14797 callback.callback(args);
14798 break;
14799
14800 case 'catch':
14801 case 'after':
14802 callback.callback(args, result);
14803 break;
14804
14805 default:
14806 return false;
14807 }
14808
14809 return true;
14810 }
14811 }, {
14812 key: "onRun",
14813 value: function onRun(command, args, event) {
14814 if (!$e.devTools) {
14815 return;
14816 }
14817
14818 $e.devTools.log.callbacks().run(this.getType(), command, args, event);
14819 }
14820 }, {
14821 key: "onCallback",
14822 value: function onCallback(command, args, event, id) {
14823 if (!$e.devTools) {
14824 return;
14825 }
14826
14827 $e.devTools.log.callbacks().callback(this.getType(), command, args, event, id);
14828 }
14829 }]);
14830 return Ui;
14831 }(_base.default);
14832
14833 exports.default = Ui;
14834
14835 /***/ }),
14836 /* 723 */
14837 /***/ (function(module, exports, __webpack_require__) {
14838
14839 "use strict";
14840
14841
14842 var _interopRequireDefault = __webpack_require__(0);
14843
14844 var _Object$defineProperty = __webpack_require__(1);
14845
14846 _Object$defineProperty(exports, "__esModule", {
14847 value: true
14848 });
14849
14850 exports.default = void 0;
14851
14852 __webpack_require__(80);
14853
14854 var _keys = _interopRequireDefault(__webpack_require__(24));
14855
14856 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14857
14858 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14859
14860 var _get2 = _interopRequireDefault(__webpack_require__(23));
14861
14862 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
14863
14864 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14865
14866 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14867
14868 var _commands = _interopRequireDefault(__webpack_require__(340));
14869
14870 var Routes = /*#__PURE__*/function (_Commands) {
14871 (0, _inherits2.default)(Routes, _Commands);
14872
14873 var _super = (0, _createSuper2.default)(Routes);
14874
14875 function Routes() {
14876 var _this;
14877
14878 (0, _classCallCheck2.default)(this, Routes);
14879
14880 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14881 args[_key] = arguments[_key];
14882 }
14883
14884 _this = _super.call.apply(_super, [this].concat(args));
14885 _this.savedStates = {};
14886 _this.historyPerComponent = {};
14887 return _this;
14888 }
14889
14890 (0, _createClass2.default)(Routes, [{
14891 key: "refreshContainer",
14892 value: function refreshContainer(container) {
14893 var currentRoute = this.getCurrent(container),
14894 currentArgs = this.getCurrentArgs(container);
14895 this.clearCurrent(container);
14896 this.to(currentRoute, currentArgs);
14897 }
14898 }, {
14899 key: "getHistory",
14900 value: function getHistory() {
14901 var namespaceRoot = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
14902
14903 if (namespaceRoot) {
14904 return this.historyPerComponent[namespaceRoot] || [];
14905 }
14906
14907 return this.historyPerComponent;
14908 }
14909 }, {
14910 key: "clearHistory",
14911 value: function clearHistory(namespaceRoot) {
14912 delete this.historyPerComponent[namespaceRoot];
14913 }
14914 }, {
14915 key: "clearCurrent",
14916 value: function clearCurrent(container) {
14917 var route = this.current[container];
14918
14919 if (!route) {
14920 return;
14921 }
14922
14923 delete this.current[container];
14924 delete this.currentArgs[container];
14925 this.getComponent(route).onCloseRoute(route);
14926 }
14927 }, {
14928 key: "clear",
14929 value: function clear() {
14930 var _this2 = this;
14931
14932 (0, _keys.default)(this.current).forEach(function (container) {
14933 return _this2.clearCurrent(container);
14934 });
14935 }
14936 }, {
14937 key: "saveState",
14938 value: function saveState(container) {
14939 this.savedStates[container] = {
14940 route: this.current[container],
14941 args: this.currentArgs[container]
14942 };
14943 return this;
14944 }
14945 }, {
14946 key: "restoreState",
14947 value: function restoreState(container) {
14948 if (!this.savedStates[container]) {
14949 return false;
14950 }
14951
14952 this.to(this.savedStates[container].route, this.savedStates[container].args);
14953 return true;
14954 }
14955 }, {
14956 key: "beforeRun",
14957 value: function beforeRun(route, args) {
14958 if (!(0, _get2.default)((0, _getPrototypeOf2.default)(Routes.prototype), "beforeRun", this).call(this, route, args)) {
14959 return false;
14960 }
14961
14962 if (this.is(route, args) && !args.refresh) {
14963 return false;
14964 }
14965
14966 var component = this.getComponent(route),
14967 container = component.getRootContainer(),
14968 oldRoute = this.current[container];
14969
14970 if (oldRoute) {
14971 this.getComponent(oldRoute).onCloseRoute(oldRoute);
14972 }
14973
14974 if (!component.isOpen || args.reOpen) {
14975 component.isOpen = component.open(args);
14976 }
14977
14978 return component.isOpen;
14979 }
14980 }, {
14981 key: "to",
14982 value: function to(route, args) {
14983 this.run(route, args);
14984 var namespaceRoot = this.getComponent(route).getRootContainer();
14985
14986 if (!this.historyPerComponent[namespaceRoot]) {
14987 this.historyPerComponent[namespaceRoot] = [];
14988 }
14989
14990 this.historyPerComponent[namespaceRoot].push({
14991 route: route,
14992 args: args
14993 });
14994 }
14995 }, {
14996 key: "back",
14997 value: function back(namespaceRoot) {
14998 var history = this.getHistory(namespaceRoot); // Remove current;
14999
15000 history.pop();
15001 var last = history.pop();
15002
15003 if (!last) {
15004 return;
15005 }
15006
15007 this.to(last.route, last.args);
15008 } // Don't use the event object.
15009
15010 }, {
15011 key: "runShortcut",
15012 value: function runShortcut(command) {
15013 this.to(command);
15014 } // Don't clear current route.
15015
15016 }, {
15017 key: "afterRun",
15018 value: function afterRun(route, args) {
15019 this.getComponent(route).onRoute(route, args);
15020 }
15021 }, {
15022 key: "is",
15023 value: function is(route) {
15024 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15025
15026 if (!(0, _get2.default)((0, _getPrototypeOf2.default)(Routes.prototype), "is", this).call(this, route)) {
15027 return false;
15028 }
15029
15030 var container = this.getComponent(route).getRootContainer();
15031 return _.isEqual(args, this.currentArgs[container]);
15032 }
15033 }, {
15034 key: "isPartOf",
15035 value: function isPartOf(route) {
15036 /**
15037 * Check against current command hierarchically.
15038 * For example `is( 'panel' )` will be true for `panel/elements`
15039 * `is( 'panel/editor' )` will be true for `panel/editor/style`
15040 */
15041 var parts = route.split('/'),
15042 container = parts[0],
15043 toCheck = [],
15044 currentParts = this.current[container] ? this.current[container].split('/') : [];
15045 var match = false;
15046 currentParts.forEach(function (part) {
15047 toCheck.push(part);
15048
15049 if (toCheck.join('/') === route) {
15050 match = true;
15051 }
15052 });
15053 return match;
15054 }
15055 }, {
15056 key: "error",
15057 value: function error(message) {
15058 throw Error('Routes: ' + message);
15059 }
15060 }]);
15061 return Routes;
15062 }(_commands.default);
15063
15064 exports.default = Routes;
15065
15066 /***/ }),
15067 /* 724 */
15068 /***/ (function(module, exports, __webpack_require__) {
15069
15070 "use strict";
15071
15072
15073 var _interopRequireDefault = __webpack_require__(0);
15074
15075 var _Object$defineProperty = __webpack_require__(1);
15076
15077 _Object$defineProperty(exports, "__esModule", {
15078 value: true
15079 });
15080
15081 exports.default = void 0;
15082
15083 var _keys = _interopRequireDefault(__webpack_require__(24));
15084
15085 __webpack_require__(56);
15086
15087 __webpack_require__(80);
15088
15089 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
15090
15091 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
15092
15093 var _environment = _interopRequireDefault(__webpack_require__(265));
15094
15095 var Shortcuts = /*#__PURE__*/function () {
15096 function Shortcuts($window) {
15097 (0, _classCallCheck2.default)(this, Shortcuts);
15098 this.specialKeys = {
15099 13: 'enter',
15100 27: 'esc',
15101 38: 'up',
15102 40: 'down',
15103 46: 'del',
15104 191: '?'
15105 };
15106 this.component = '';
15107 this.handlers = {};
15108 this.bindListener($window);
15109 }
15110
15111 (0, _createClass2.default)(Shortcuts, [{
15112 key: "bindListener",
15113 value: function bindListener($window) {
15114 var _this = this;
15115
15116 $window.on('keydown', function (event) {
15117 return _this.handle(event);
15118 });
15119 }
15120 }, {
15121 key: "getAll",
15122 value: function getAll() {
15123 var shortcuts = {};
15124 jQuery.each(this.handlers, function (key, handler) {
15125 jQuery.each(handler, function (index, config) {
15126 shortcuts[config.command] = key;
15127 });
15128 });
15129 return shortcuts;
15130 }
15131 /**
15132 * @param shortcuts
15133 * @param {{callback: (function(): boolean), scopes: [void]}} args
15134 * @param {callback} args.callback Required
15135 * @param {string} args.component Optional
15136 * @param {callback} args.dependency Optional
15137 * @param {array} args.exclude Optional
15138 * @param {bool} args.allowAltKey Optional
15139 */
15140
15141 }, {
15142 key: "register",
15143 value: function register(shortcuts, args) {
15144 var _this2 = this;
15145
15146 shortcuts.replace(' ', '').split(',').forEach(function (shortcut) {
15147 if (!_this2.handlers[shortcut]) {
15148 _this2.handlers[shortcut] = [];
15149 }
15150
15151 _this2.handlers[shortcut].push(args);
15152 });
15153 }
15154 }, {
15155 key: "unregister",
15156 value: function unregister(shortcuts, args) {
15157 var _this3 = this;
15158
15159 shortcuts.replace(' ', '').split(',').forEach(function (shortcut) {
15160 _this3.handlers[shortcut].forEach(function (index, handler) {
15161 if (args === handler) {
15162 delete _this3.handlers[shortcut][index];
15163 }
15164 });
15165 });
15166 }
15167 }, {
15168 key: "handle",
15169 value: function handle(event) {
15170 var handlers = this.getHandlersByPriority(event);
15171
15172 if (!handlers) {
15173 return;
15174 }
15175
15176 var filteredHandlers = handlers.filter(function (handler) {
15177 if (handler.exclude && -1 !== handler.exclude.indexOf('input')) {
15178 var $target = jQuery(event.target);
15179
15180 if ($target.is(':input, .elementor-input') || $target.closest('[contenteditable="true"]').length) {
15181 return false;
15182 }
15183 }
15184
15185 if (handler.dependency && !handler.dependency(event)) {
15186 return false;
15187 } // Fix for some keyboard sources that consider alt key as ctrl key
15188
15189
15190 if (!handler.allowAltKey && event.altKey) {
15191 return false;
15192 }
15193
15194 return true;
15195 });
15196
15197 if (!filteredHandlers.length) {
15198 return;
15199 }
15200
15201 if (1 < filteredHandlers.length && elementorCommon.config.isDebug) {
15202 elementorCommon.helpers.consoleWarn('Multiple handlers for shortcut.', filteredHandlers, event);
15203 }
15204
15205 event.preventDefault();
15206 filteredHandlers[0].callback(event);
15207 }
15208 }, {
15209 key: "isControlEvent",
15210 value: function isControlEvent(event) {
15211 return event[_environment.default.mac ? 'metaKey' : 'ctrlKey'];
15212 }
15213 }, {
15214 key: "getEventShortcut",
15215 value: function getEventShortcut(event) {
15216 var shortcut = [];
15217
15218 if (event.altKey) {
15219 shortcut.push('alt');
15220 }
15221
15222 if (this.isControlEvent(event)) {
15223 shortcut.push('ctrl');
15224 }
15225
15226 if (event.shiftKey) {
15227 shortcut.push('shift');
15228 }
15229
15230 if (this.specialKeys[event.which]) {
15231 shortcut.push(this.specialKeys[event.which]);
15232 } else {
15233 shortcut.push(String.fromCharCode(event.which).toLowerCase());
15234 }
15235
15236 return shortcut.join('+');
15237 }
15238 }, {
15239 key: "isActiveScope",
15240 value: function isActiveScope(scopes) {
15241 var activeComponents = (0, _keys.default)($e.components.activeComponents),
15242 activeComponent = activeComponents[activeComponents.length - 1],
15243 component = $e.components.get(activeComponent);
15244
15245 if (!component) {
15246 return false;
15247 }
15248
15249 var namespace = component.getNamespace(),
15250 namespaceRoot = component.getRootContainer();
15251 var filteredByNamespace = scopes.some(function (scope) {
15252 return namespace === scope;
15253 });
15254
15255 if (filteredByNamespace) {
15256 return true;
15257 } // Else filter by namespaceRoot.
15258
15259
15260 return scopes.some(function (scope) {
15261 return namespaceRoot === scope;
15262 });
15263 }
15264 }, {
15265 key: "getHandlersByPriority",
15266 value: function getHandlersByPriority(event) {
15267 var _this4 = this;
15268
15269 var handlers = this.handlers[this.getEventShortcut(event)];
15270
15271 if (!handlers) {
15272 return false;
15273 } // TODO: Prioritize current scope before roo scope.
15274
15275
15276 var inCurrentScope = handlers.filter(function (handler) {
15277 return handler.scopes && _this4.isActiveScope(handler.scopes);
15278 });
15279
15280 if (inCurrentScope.length) {
15281 return inCurrentScope;
15282 }
15283
15284 var noScope = handlers.filter(function (handler) {
15285 return !handler.scopes;
15286 });
15287
15288 if (noScope.length) {
15289 return noScope;
15290 }
15291 }
15292 }]);
15293 return Shortcuts;
15294 }();
15295
15296 exports.default = Shortcuts;
15297
15298 /***/ }),
15299 /* 725 */
15300 /***/ (function(module, exports, __webpack_require__) {
15301
15302 "use strict";
15303
15304
15305 var _Object$defineProperty = __webpack_require__(1);
15306
15307 _Object$defineProperty(exports, "__esModule", {
15308 value: true
15309 });
15310
15311 _Object$defineProperty(exports, "After", {
15312 enumerable: true,
15313 get: function get() {
15314 return _after.After;
15315 }
15316 });
15317
15318 _Object$defineProperty(exports, "Base", {
15319 enumerable: true,
15320 get: function get() {
15321 return _base.Base;
15322 }
15323 });
15324
15325 _Object$defineProperty(exports, "Catch", {
15326 enumerable: true,
15327 get: function get() {
15328 return _catch.Catch;
15329 }
15330 });
15331
15332 _Object$defineProperty(exports, "Dependency", {
15333 enumerable: true,
15334 get: function get() {
15335 return _dependency.Dependency;
15336 }
15337 });
15338
15339 var _after = __webpack_require__(221);
15340
15341 var _base = __webpack_require__(285);
15342
15343 var _catch = __webpack_require__(726);
15344
15345 var _dependency = __webpack_require__(342);
15346
15347 /***/ }),
15348 /* 726 */
15349 /***/ (function(module, exports, __webpack_require__) {
15350
15351 "use strict";
15352
15353
15354 var _interopRequireDefault = __webpack_require__(0);
15355
15356 var _Object$defineProperty = __webpack_require__(1);
15357
15358 _Object$defineProperty(exports, "__esModule", {
15359 value: true
15360 });
15361
15362 exports.default = exports.Catch = void 0;
15363
15364 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
15365
15366 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
15367
15368 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
15369
15370 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
15371
15372 var _base = _interopRequireDefault(__webpack_require__(285));
15373
15374 var Catch = /*#__PURE__*/function (_Base) {
15375 (0, _inherits2.default)(Catch, _Base);
15376
15377 var _super = (0, _createSuper2.default)(Catch);
15378
15379 function Catch() {
15380 (0, _classCallCheck2.default)(this, Catch);
15381 return _super.apply(this, arguments);
15382 }
15383
15384 (0, _createClass2.default)(Catch, [{
15385 key: "register",
15386 value: function register() {
15387 $e.hooks.registerDataCatch(this);
15388 }
15389 }]);
15390 return Catch;
15391 }(_base.default);
15392
15393 exports.Catch = Catch;
15394 var _default = Catch;
15395 exports.default = _default;
15396
15397 /***/ }),
15398 /* 727 */
15399 /***/ (function(module, exports, __webpack_require__) {
15400
15401 "use strict";
15402
15403
15404 var _Object$defineProperty = __webpack_require__(1);
15405
15406 _Object$defineProperty(exports, "__esModule", {
15407 value: true
15408 });
15409
15410 _Object$defineProperty(exports, "After", {
15411 enumerable: true,
15412 get: function get() {
15413 return _after.After;
15414 }
15415 });
15416
15417 _Object$defineProperty(exports, "Base", {
15418 enumerable: true,
15419 get: function get() {
15420 return _base.Base;
15421 }
15422 });
15423
15424 _Object$defineProperty(exports, "Before", {
15425 enumerable: true,
15426 get: function get() {
15427 return _before.Before;
15428 }
15429 });
15430
15431 _Object$defineProperty(exports, "Catch", {
15432 enumerable: true,
15433 get: function get() {
15434 return _catch.Catch;
15435 }
15436 });
15437
15438 var _after = __webpack_require__(271);
15439
15440 var _base = __webpack_require__(308);
15441
15442 var _before = __webpack_require__(633);
15443
15444 var _catch = __webpack_require__(634);
15445
15446 /***/ })
15447 /******/ ]);
15448 //# sourceMappingURL=common.js.map