UNPKG

298 kBJavaScriptView Raw
1module.exports =
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 = "fb15");
86/******/ })
87/************************************************************************/
88/******/ ({
89
90/***/ "00ee":
91/***/ (function(module, exports, __webpack_require__) {
92
93var wellKnownSymbol = __webpack_require__("b622");
94
95var TO_STRING_TAG = wellKnownSymbol('toStringTag');
96var test = {};
97
98test[TO_STRING_TAG] = 'z';
99
100module.exports = String(test) === '[object z]';
101
102
103/***/ }),
104
105/***/ "0366":
106/***/ (function(module, exports, __webpack_require__) {
107
108var aFunction = __webpack_require__("1c0b");
109
110// optional / simple context binding
111module.exports = function (fn, that, length) {
112 aFunction(fn);
113 if (that === undefined) return fn;
114 switch (length) {
115 case 0: return function () {
116 return fn.call(that);
117 };
118 case 1: return function (a) {
119 return fn.call(that, a);
120 };
121 case 2: return function (a, b) {
122 return fn.call(that, a, b);
123 };
124 case 3: return function (a, b, c) {
125 return fn.call(that, a, b, c);
126 };
127 }
128 return function (/* ...args */) {
129 return fn.apply(that, arguments);
130 };
131};
132
133
134/***/ }),
135
136/***/ "0538":
137/***/ (function(module, exports, __webpack_require__) {
138
139"use strict";
140
141var aFunction = __webpack_require__("1c0b");
142var isObject = __webpack_require__("861d");
143
144var slice = [].slice;
145var factories = {};
146
147var construct = function (C, argsLength, args) {
148 if (!(argsLength in factories)) {
149 for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';
150 // eslint-disable-next-line no-new-func -- we have no proper alternatives, IE8- only
151 factories[argsLength] = Function('C,a', 'return new C(' + list.join(',') + ')');
152 } return factories[argsLength](C, args);
153};
154
155// `Function.prototype.bind` method implementation
156// https://tc39.es/ecma262/#sec-function.prototype.bind
157module.exports = Function.bind || function bind(that /* , ...args */) {
158 var fn = aFunction(this);
159 var partArgs = slice.call(arguments, 1);
160 var boundFunction = function bound(/* args... */) {
161 var args = partArgs.concat(slice.call(arguments));
162 return this instanceof boundFunction ? construct(fn, args.length, args) : fn.apply(that, args);
163 };
164 if (isObject(fn.prototype)) boundFunction.prototype = fn.prototype;
165 return boundFunction;
166};
167
168
169/***/ }),
170
171/***/ "057f":
172/***/ (function(module, exports, __webpack_require__) {
173
174/* eslint-disable es/no-object-getownpropertynames -- safe */
175var toIndexedObject = __webpack_require__("fc6a");
176var $getOwnPropertyNames = __webpack_require__("241c").f;
177
178var toString = {}.toString;
179
180var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
181 ? Object.getOwnPropertyNames(window) : [];
182
183var getWindowNames = function (it) {
184 try {
185 return $getOwnPropertyNames(it);
186 } catch (error) {
187 return windowNames.slice();
188 }
189};
190
191// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
192module.exports.f = function getOwnPropertyNames(it) {
193 return windowNames && toString.call(it) == '[object Window]'
194 ? getWindowNames(it)
195 : $getOwnPropertyNames(toIndexedObject(it));
196};
197
198
199/***/ }),
200
201/***/ "06cf":
202/***/ (function(module, exports, __webpack_require__) {
203
204var DESCRIPTORS = __webpack_require__("83ab");
205var propertyIsEnumerableModule = __webpack_require__("d1e7");
206var createPropertyDescriptor = __webpack_require__("5c6c");
207var toIndexedObject = __webpack_require__("fc6a");
208var toPrimitive = __webpack_require__("c04e");
209var has = __webpack_require__("5135");
210var IE8_DOM_DEFINE = __webpack_require__("0cfb");
211
212// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
213var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
214
215// `Object.getOwnPropertyDescriptor` method
216// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
217exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
218 O = toIndexedObject(O);
219 P = toPrimitive(P, true);
220 if (IE8_DOM_DEFINE) try {
221 return $getOwnPropertyDescriptor(O, P);
222 } catch (error) { /* empty */ }
223 if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
224};
225
226
227/***/ }),
228
229/***/ "0cb2":
230/***/ (function(module, exports, __webpack_require__) {
231
232var toObject = __webpack_require__("7b0b");
233
234var floor = Math.floor;
235var replace = ''.replace;
236var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
237var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
238
239// https://tc39.es/ecma262/#sec-getsubstitution
240module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
241 var tailPos = position + matched.length;
242 var m = captures.length;
243 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
244 if (namedCaptures !== undefined) {
245 namedCaptures = toObject(namedCaptures);
246 symbols = SUBSTITUTION_SYMBOLS;
247 }
248 return replace.call(replacement, symbols, function (match, ch) {
249 var capture;
250 switch (ch.charAt(0)) {
251 case '$': return '$';
252 case '&': return matched;
253 case '`': return str.slice(0, position);
254 case "'": return str.slice(tailPos);
255 case '<':
256 capture = namedCaptures[ch.slice(1, -1)];
257 break;
258 default: // \d\d?
259 var n = +ch;
260 if (n === 0) return match;
261 if (n > m) {
262 var f = floor(n / 10);
263 if (f === 0) return match;
264 if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
265 return match;
266 }
267 capture = captures[n - 1];
268 }
269 return capture === undefined ? '' : capture;
270 });
271};
272
273
274/***/ }),
275
276/***/ "0cfb":
277/***/ (function(module, exports, __webpack_require__) {
278
279var DESCRIPTORS = __webpack_require__("83ab");
280var fails = __webpack_require__("d039");
281var createElement = __webpack_require__("cc12");
282
283// Thank's IE8 for his funny defineProperty
284module.exports = !DESCRIPTORS && !fails(function () {
285 // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
286 return Object.defineProperty(createElement('div'), 'a', {
287 get: function () { return 7; }
288 }).a != 7;
289});
290
291
292/***/ }),
293
294/***/ "1276":
295/***/ (function(module, exports, __webpack_require__) {
296
297"use strict";
298
299var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
300var isRegExp = __webpack_require__("44e7");
301var anObject = __webpack_require__("825a");
302var requireObjectCoercible = __webpack_require__("1d80");
303var speciesConstructor = __webpack_require__("4840");
304var advanceStringIndex = __webpack_require__("8aa5");
305var toLength = __webpack_require__("50c4");
306var callRegExpExec = __webpack_require__("14c3");
307var regexpExec = __webpack_require__("9263");
308var stickyHelpers = __webpack_require__("9f7f");
309
310var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
311var arrayPush = [].push;
312var min = Math.min;
313var MAX_UINT32 = 0xFFFFFFFF;
314
315// @@split logic
316fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
317 var internalSplit;
318 if (
319 'abbc'.split(/(b)*/)[1] == 'c' ||
320 // eslint-disable-next-line regexp/no-empty-group -- required for testing
321 'test'.split(/(?:)/, -1).length != 4 ||
322 'ab'.split(/(?:ab)*/).length != 2 ||
323 '.'.split(/(.?)(.?)/).length != 4 ||
324 // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
325 '.'.split(/()()/).length > 1 ||
326 ''.split(/.?/).length
327 ) {
328 // based on es5-shim implementation, need to rework it
329 internalSplit = function (separator, limit) {
330 var string = String(requireObjectCoercible(this));
331 var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
332 if (lim === 0) return [];
333 if (separator === undefined) return [string];
334 // If `separator` is not a regex, use native split
335 if (!isRegExp(separator)) {
336 return nativeSplit.call(string, separator, lim);
337 }
338 var output = [];
339 var flags = (separator.ignoreCase ? 'i' : '') +
340 (separator.multiline ? 'm' : '') +
341 (separator.unicode ? 'u' : '') +
342 (separator.sticky ? 'y' : '');
343 var lastLastIndex = 0;
344 // Make `global` and avoid `lastIndex` issues by working with a copy
345 var separatorCopy = new RegExp(separator.source, flags + 'g');
346 var match, lastIndex, lastLength;
347 while (match = regexpExec.call(separatorCopy, string)) {
348 lastIndex = separatorCopy.lastIndex;
349 if (lastIndex > lastLastIndex) {
350 output.push(string.slice(lastLastIndex, match.index));
351 if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
352 lastLength = match[0].length;
353 lastLastIndex = lastIndex;
354 if (output.length >= lim) break;
355 }
356 if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
357 }
358 if (lastLastIndex === string.length) {
359 if (lastLength || !separatorCopy.test('')) output.push('');
360 } else output.push(string.slice(lastLastIndex));
361 return output.length > lim ? output.slice(0, lim) : output;
362 };
363 // Chakra, V8
364 } else if ('0'.split(undefined, 0).length) {
365 internalSplit = function (separator, limit) {
366 return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
367 };
368 } else internalSplit = nativeSplit;
369
370 return [
371 // `String.prototype.split` method
372 // https://tc39.es/ecma262/#sec-string.prototype.split
373 function split(separator, limit) {
374 var O = requireObjectCoercible(this);
375 var splitter = separator == undefined ? undefined : separator[SPLIT];
376 return splitter !== undefined
377 ? splitter.call(separator, O, limit)
378 : internalSplit.call(String(O), separator, limit);
379 },
380 // `RegExp.prototype[@@split]` method
381 // https://tc39.es/ecma262/#sec-regexp.prototype-@@split
382 //
383 // NOTE: This cannot be properly polyfilled in engines that don't support
384 // the 'y' flag.
385 function (regexp, limit) {
386 var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
387 if (res.done) return res.value;
388
389 var rx = anObject(regexp);
390 var S = String(this);
391 var C = speciesConstructor(rx, RegExp);
392
393 var unicodeMatching = rx.unicode;
394 var flags = (rx.ignoreCase ? 'i' : '') +
395 (rx.multiline ? 'm' : '') +
396 (rx.unicode ? 'u' : '') +
397 (UNSUPPORTED_Y ? 'g' : 'y');
398
399 // ^(? + rx + ) is needed, in combination with some S slicing, to
400 // simulate the 'y' flag.
401 var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
402 var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
403 if (lim === 0) return [];
404 if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
405 var p = 0;
406 var q = 0;
407 var A = [];
408 while (q < S.length) {
409 splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
410 var z = callRegExpExec(splitter, UNSUPPORTED_Y ? S.slice(q) : S);
411 var e;
412 if (
413 z === null ||
414 (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
415 ) {
416 q = advanceStringIndex(S, q, unicodeMatching);
417 } else {
418 A.push(S.slice(p, q));
419 if (A.length === lim) return A;
420 for (var i = 1; i <= z.length - 1; i++) {
421 A.push(z[i]);
422 if (A.length === lim) return A;
423 }
424 q = p = e;
425 }
426 }
427 A.push(S.slice(p));
428 return A;
429 }
430 ];
431}, UNSUPPORTED_Y);
432
433
434/***/ }),
435
436/***/ "14c3":
437/***/ (function(module, exports, __webpack_require__) {
438
439var classof = __webpack_require__("c6b6");
440var regexpExec = __webpack_require__("9263");
441
442// `RegExpExec` abstract operation
443// https://tc39.es/ecma262/#sec-regexpexec
444module.exports = function (R, S) {
445 var exec = R.exec;
446 if (typeof exec === 'function') {
447 var result = exec.call(R, S);
448 if (typeof result !== 'object') {
449 throw TypeError('RegExp exec method returned something other than an Object or null');
450 }
451 return result;
452 }
453
454 if (classof(R) !== 'RegExp') {
455 throw TypeError('RegExp#exec called on incompatible receiver');
456 }
457
458 return regexpExec.call(R, S);
459};
460
461
462
463/***/ }),
464
465/***/ "159b":
466/***/ (function(module, exports, __webpack_require__) {
467
468var global = __webpack_require__("da84");
469var DOMIterables = __webpack_require__("fdbc");
470var forEach = __webpack_require__("17c2");
471var createNonEnumerableProperty = __webpack_require__("9112");
472
473for (var COLLECTION_NAME in DOMIterables) {
474 var Collection = global[COLLECTION_NAME];
475 var CollectionPrototype = Collection && Collection.prototype;
476 // some Chrome versions have non-configurable methods on DOMTokenList
477 if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
478 createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
479 } catch (error) {
480 CollectionPrototype.forEach = forEach;
481 }
482}
483
484
485/***/ }),
486
487/***/ "17c2":
488/***/ (function(module, exports, __webpack_require__) {
489
490"use strict";
491
492var $forEach = __webpack_require__("b727").forEach;
493var arrayMethodIsStrict = __webpack_require__("a640");
494
495var STRICT_METHOD = arrayMethodIsStrict('forEach');
496
497// `Array.prototype.forEach` method implementation
498// https://tc39.es/ecma262/#sec-array.prototype.foreach
499module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
500 return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
501// eslint-disable-next-line es/no-array-prototype-foreach -- safe
502} : [].forEach;
503
504
505/***/ }),
506
507/***/ "19aa":
508/***/ (function(module, exports) {
509
510module.exports = function (it, Constructor, name) {
511 if (!(it instanceof Constructor)) {
512 throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
513 } return it;
514};
515
516
517/***/ }),
518
519/***/ "1be4":
520/***/ (function(module, exports, __webpack_require__) {
521
522var getBuiltIn = __webpack_require__("d066");
523
524module.exports = getBuiltIn('document', 'documentElement');
525
526
527/***/ }),
528
529/***/ "1c0b":
530/***/ (function(module, exports) {
531
532module.exports = function (it) {
533 if (typeof it != 'function') {
534 throw TypeError(String(it) + ' is not a function');
535 } return it;
536};
537
538
539/***/ }),
540
541/***/ "1c7e":
542/***/ (function(module, exports, __webpack_require__) {
543
544var wellKnownSymbol = __webpack_require__("b622");
545
546var ITERATOR = wellKnownSymbol('iterator');
547var SAFE_CLOSING = false;
548
549try {
550 var called = 0;
551 var iteratorWithReturn = {
552 next: function () {
553 return { done: !!called++ };
554 },
555 'return': function () {
556 SAFE_CLOSING = true;
557 }
558 };
559 iteratorWithReturn[ITERATOR] = function () {
560 return this;
561 };
562 // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
563 Array.from(iteratorWithReturn, function () { throw 2; });
564} catch (error) { /* empty */ }
565
566module.exports = function (exec, SKIP_CLOSING) {
567 if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
568 var ITERATION_SUPPORT = false;
569 try {
570 var object = {};
571 object[ITERATOR] = function () {
572 return {
573 next: function () {
574 return { done: ITERATION_SUPPORT = true };
575 }
576 };
577 };
578 exec(object);
579 } catch (error) { /* empty */ }
580 return ITERATION_SUPPORT;
581};
582
583
584/***/ }),
585
586/***/ "1cdc":
587/***/ (function(module, exports, __webpack_require__) {
588
589var userAgent = __webpack_require__("342f");
590
591module.exports = /(?:iphone|ipod|ipad).*applewebkit/i.test(userAgent);
592
593
594/***/ }),
595
596/***/ "1d80":
597/***/ (function(module, exports) {
598
599// `RequireObjectCoercible` abstract operation
600// https://tc39.es/ecma262/#sec-requireobjectcoercible
601module.exports = function (it) {
602 if (it == undefined) throw TypeError("Can't call method on " + it);
603 return it;
604};
605
606
607/***/ }),
608
609/***/ "1dde":
610/***/ (function(module, exports, __webpack_require__) {
611
612var fails = __webpack_require__("d039");
613var wellKnownSymbol = __webpack_require__("b622");
614var V8_VERSION = __webpack_require__("2d00");
615
616var SPECIES = wellKnownSymbol('species');
617
618module.exports = function (METHOD_NAME) {
619 // We can't use this feature detection in V8 since it causes
620 // deoptimization and serious performance degradation
621 // https://github.com/zloirock/core-js/issues/677
622 return V8_VERSION >= 51 || !fails(function () {
623 var array = [];
624 var constructor = array.constructor = {};
625 constructor[SPECIES] = function () {
626 return { foo: 1 };
627 };
628 return array[METHOD_NAME](Boolean).foo !== 1;
629 });
630};
631
632
633/***/ }),
634
635/***/ "2266":
636/***/ (function(module, exports, __webpack_require__) {
637
638var anObject = __webpack_require__("825a");
639var isArrayIteratorMethod = __webpack_require__("e95a");
640var toLength = __webpack_require__("50c4");
641var bind = __webpack_require__("0366");
642var getIteratorMethod = __webpack_require__("35a1");
643var iteratorClose = __webpack_require__("2a62");
644
645var Result = function (stopped, result) {
646 this.stopped = stopped;
647 this.result = result;
648};
649
650module.exports = function (iterable, unboundFunction, options) {
651 var that = options && options.that;
652 var AS_ENTRIES = !!(options && options.AS_ENTRIES);
653 var IS_ITERATOR = !!(options && options.IS_ITERATOR);
654 var INTERRUPTED = !!(options && options.INTERRUPTED);
655 var fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);
656 var iterator, iterFn, index, length, result, next, step;
657
658 var stop = function (condition) {
659 if (iterator) iteratorClose(iterator);
660 return new Result(true, condition);
661 };
662
663 var callFn = function (value) {
664 if (AS_ENTRIES) {
665 anObject(value);
666 return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
667 } return INTERRUPTED ? fn(value, stop) : fn(value);
668 };
669
670 if (IS_ITERATOR) {
671 iterator = iterable;
672 } else {
673 iterFn = getIteratorMethod(iterable);
674 if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
675 // optimisation for array iterators
676 if (isArrayIteratorMethod(iterFn)) {
677 for (index = 0, length = toLength(iterable.length); length > index; index++) {
678 result = callFn(iterable[index]);
679 if (result && result instanceof Result) return result;
680 } return new Result(false);
681 }
682 iterator = iterFn.call(iterable);
683 }
684
685 next = iterator.next;
686 while (!(step = next.call(iterator)).done) {
687 try {
688 result = callFn(step.value);
689 } catch (error) {
690 iteratorClose(iterator);
691 throw error;
692 }
693 if (typeof result == 'object' && result && result instanceof Result) return result;
694 } return new Result(false);
695};
696
697
698/***/ }),
699
700/***/ "23cb":
701/***/ (function(module, exports, __webpack_require__) {
702
703var toInteger = __webpack_require__("a691");
704
705var max = Math.max;
706var min = Math.min;
707
708// Helper for a popular repeating case of the spec:
709// Let integer be ? ToInteger(index).
710// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
711module.exports = function (index, length) {
712 var integer = toInteger(index);
713 return integer < 0 ? max(integer + length, 0) : min(integer, length);
714};
715
716
717/***/ }),
718
719/***/ "23e7":
720/***/ (function(module, exports, __webpack_require__) {
721
722var global = __webpack_require__("da84");
723var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
724var createNonEnumerableProperty = __webpack_require__("9112");
725var redefine = __webpack_require__("6eeb");
726var setGlobal = __webpack_require__("ce4e");
727var copyConstructorProperties = __webpack_require__("e893");
728var isForced = __webpack_require__("94ca");
729
730/*
731 options.target - name of the target object
732 options.global - target is the global object
733 options.stat - export as static methods of target
734 options.proto - export as prototype methods of target
735 options.real - real prototype method for the `pure` version
736 options.forced - export even if the native feature is available
737 options.bind - bind methods to the target, required for the `pure` version
738 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
739 options.unsafe - use the simple assignment of property instead of delete + defineProperty
740 options.sham - add a flag to not completely full polyfills
741 options.enumerable - export as enumerable property
742 options.noTargetGet - prevent calling a getter on target
743*/
744module.exports = function (options, source) {
745 var TARGET = options.target;
746 var GLOBAL = options.global;
747 var STATIC = options.stat;
748 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
749 if (GLOBAL) {
750 target = global;
751 } else if (STATIC) {
752 target = global[TARGET] || setGlobal(TARGET, {});
753 } else {
754 target = (global[TARGET] || {}).prototype;
755 }
756 if (target) for (key in source) {
757 sourceProperty = source[key];
758 if (options.noTargetGet) {
759 descriptor = getOwnPropertyDescriptor(target, key);
760 targetProperty = descriptor && descriptor.value;
761 } else targetProperty = target[key];
762 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
763 // contained in target
764 if (!FORCED && targetProperty !== undefined) {
765 if (typeof sourceProperty === typeof targetProperty) continue;
766 copyConstructorProperties(sourceProperty, targetProperty);
767 }
768 // add a flag to not completely full polyfills
769 if (options.sham || (targetProperty && targetProperty.sham)) {
770 createNonEnumerableProperty(sourceProperty, 'sham', true);
771 }
772 // extend global
773 redefine(target, key, sourceProperty, options);
774 }
775};
776
777
778/***/ }),
779
780/***/ "241c":
781/***/ (function(module, exports, __webpack_require__) {
782
783var internalObjectKeys = __webpack_require__("ca84");
784var enumBugKeys = __webpack_require__("7839");
785
786var hiddenKeys = enumBugKeys.concat('length', 'prototype');
787
788// `Object.getOwnPropertyNames` method
789// https://tc39.es/ecma262/#sec-object.getownpropertynames
790// eslint-disable-next-line es/no-object-getownpropertynames -- safe
791exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
792 return internalObjectKeys(O, hiddenKeys);
793};
794
795
796/***/ }),
797
798/***/ "25f0":
799/***/ (function(module, exports, __webpack_require__) {
800
801"use strict";
802
803var redefine = __webpack_require__("6eeb");
804var anObject = __webpack_require__("825a");
805var fails = __webpack_require__("d039");
806var flags = __webpack_require__("ad6d");
807
808var TO_STRING = 'toString';
809var RegExpPrototype = RegExp.prototype;
810var nativeToString = RegExpPrototype[TO_STRING];
811
812var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
813// FF44- RegExp#toString has a wrong name
814var INCORRECT_NAME = nativeToString.name != TO_STRING;
815
816// `RegExp.prototype.toString` method
817// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
818if (NOT_GENERIC || INCORRECT_NAME) {
819 redefine(RegExp.prototype, TO_STRING, function toString() {
820 var R = anObject(this);
821 var p = String(R.source);
822 var rf = R.flags;
823 var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);
824 return '/' + p + '/' + f;
825 }, { unsafe: true });
826}
827
828
829/***/ }),
830
831/***/ "2626":
832/***/ (function(module, exports, __webpack_require__) {
833
834"use strict";
835
836var getBuiltIn = __webpack_require__("d066");
837var definePropertyModule = __webpack_require__("9bf2");
838var wellKnownSymbol = __webpack_require__("b622");
839var DESCRIPTORS = __webpack_require__("83ab");
840
841var SPECIES = wellKnownSymbol('species');
842
843module.exports = function (CONSTRUCTOR_NAME) {
844 var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
845 var defineProperty = definePropertyModule.f;
846
847 if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
848 defineProperty(Constructor, SPECIES, {
849 configurable: true,
850 get: function () { return this; }
851 });
852 }
853};
854
855
856/***/ }),
857
858/***/ "2a62":
859/***/ (function(module, exports, __webpack_require__) {
860
861var anObject = __webpack_require__("825a");
862
863module.exports = function (iterator) {
864 var returnMethod = iterator['return'];
865 if (returnMethod !== undefined) {
866 return anObject(returnMethod.call(iterator)).value;
867 }
868};
869
870
871/***/ }),
872
873/***/ "2cf4":
874/***/ (function(module, exports, __webpack_require__) {
875
876var global = __webpack_require__("da84");
877var fails = __webpack_require__("d039");
878var bind = __webpack_require__("0366");
879var html = __webpack_require__("1be4");
880var createElement = __webpack_require__("cc12");
881var IS_IOS = __webpack_require__("1cdc");
882var IS_NODE = __webpack_require__("605d");
883
884var location = global.location;
885var set = global.setImmediate;
886var clear = global.clearImmediate;
887var process = global.process;
888var MessageChannel = global.MessageChannel;
889var Dispatch = global.Dispatch;
890var counter = 0;
891var queue = {};
892var ONREADYSTATECHANGE = 'onreadystatechange';
893var defer, channel, port;
894
895var run = function (id) {
896 // eslint-disable-next-line no-prototype-builtins -- safe
897 if (queue.hasOwnProperty(id)) {
898 var fn = queue[id];
899 delete queue[id];
900 fn();
901 }
902};
903
904var runner = function (id) {
905 return function () {
906 run(id);
907 };
908};
909
910var listener = function (event) {
911 run(event.data);
912};
913
914var post = function (id) {
915 // old engines have not location.origin
916 global.postMessage(id + '', location.protocol + '//' + location.host);
917};
918
919// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
920if (!set || !clear) {
921 set = function setImmediate(fn) {
922 var args = [];
923 var i = 1;
924 while (arguments.length > i) args.push(arguments[i++]);
925 queue[++counter] = function () {
926 // eslint-disable-next-line no-new-func -- spec requirement
927 (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
928 };
929 defer(counter);
930 return counter;
931 };
932 clear = function clearImmediate(id) {
933 delete queue[id];
934 };
935 // Node.js 0.8-
936 if (IS_NODE) {
937 defer = function (id) {
938 process.nextTick(runner(id));
939 };
940 // Sphere (JS game engine) Dispatch API
941 } else if (Dispatch && Dispatch.now) {
942 defer = function (id) {
943 Dispatch.now(runner(id));
944 };
945 // Browsers with MessageChannel, includes WebWorkers
946 // except iOS - https://github.com/zloirock/core-js/issues/624
947 } else if (MessageChannel && !IS_IOS) {
948 channel = new MessageChannel();
949 port = channel.port2;
950 channel.port1.onmessage = listener;
951 defer = bind(port.postMessage, port, 1);
952 // Browsers with postMessage, skip WebWorkers
953 // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
954 } else if (
955 global.addEventListener &&
956 typeof postMessage == 'function' &&
957 !global.importScripts &&
958 location && location.protocol !== 'file:' &&
959 !fails(post)
960 ) {
961 defer = post;
962 global.addEventListener('message', listener, false);
963 // IE8-
964 } else if (ONREADYSTATECHANGE in createElement('script')) {
965 defer = function (id) {
966 html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
967 html.removeChild(this);
968 run(id);
969 };
970 };
971 // Rest old browsers
972 } else {
973 defer = function (id) {
974 setTimeout(runner(id), 0);
975 };
976 }
977}
978
979module.exports = {
980 set: set,
981 clear: clear
982};
983
984
985/***/ }),
986
987/***/ "2d00":
988/***/ (function(module, exports, __webpack_require__) {
989
990var global = __webpack_require__("da84");
991var userAgent = __webpack_require__("342f");
992
993var process = global.process;
994var versions = process && process.versions;
995var v8 = versions && versions.v8;
996var match, version;
997
998if (v8) {
999 match = v8.split('.');
1000 version = match[0] + match[1];
1001} else if (userAgent) {
1002 match = userAgent.match(/Edge\/(\d+)/);
1003 if (!match || match[1] >= 74) {
1004 match = userAgent.match(/Chrome\/(\d+)/);
1005 if (match) version = match[1];
1006 }
1007}
1008
1009module.exports = version && +version;
1010
1011
1012/***/ }),
1013
1014/***/ "3410":
1015/***/ (function(module, exports, __webpack_require__) {
1016
1017var $ = __webpack_require__("23e7");
1018var fails = __webpack_require__("d039");
1019var toObject = __webpack_require__("7b0b");
1020var nativeGetPrototypeOf = __webpack_require__("e163");
1021var CORRECT_PROTOTYPE_GETTER = __webpack_require__("e177");
1022
1023var FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });
1024
1025// `Object.getPrototypeOf` method
1026// https://tc39.es/ecma262/#sec-object.getprototypeof
1027$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {
1028 getPrototypeOf: function getPrototypeOf(it) {
1029 return nativeGetPrototypeOf(toObject(it));
1030 }
1031});
1032
1033
1034
1035/***/ }),
1036
1037/***/ "342f":
1038/***/ (function(module, exports, __webpack_require__) {
1039
1040var getBuiltIn = __webpack_require__("d066");
1041
1042module.exports = getBuiltIn('navigator', 'userAgent') || '';
1043
1044
1045/***/ }),
1046
1047/***/ "35a1":
1048/***/ (function(module, exports, __webpack_require__) {
1049
1050var classof = __webpack_require__("f5df");
1051var Iterators = __webpack_require__("3f8c");
1052var wellKnownSymbol = __webpack_require__("b622");
1053
1054var ITERATOR = wellKnownSymbol('iterator');
1055
1056module.exports = function (it) {
1057 if (it != undefined) return it[ITERATOR]
1058 || it['@@iterator']
1059 || Iterators[classof(it)];
1060};
1061
1062
1063/***/ }),
1064
1065/***/ "37e8":
1066/***/ (function(module, exports, __webpack_require__) {
1067
1068var DESCRIPTORS = __webpack_require__("83ab");
1069var definePropertyModule = __webpack_require__("9bf2");
1070var anObject = __webpack_require__("825a");
1071var objectKeys = __webpack_require__("df75");
1072
1073// `Object.defineProperties` method
1074// https://tc39.es/ecma262/#sec-object.defineproperties
1075// eslint-disable-next-line es/no-object-defineproperties -- safe
1076module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
1077 anObject(O);
1078 var keys = objectKeys(Properties);
1079 var length = keys.length;
1080 var index = 0;
1081 var key;
1082 while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
1083 return O;
1084};
1085
1086
1087/***/ }),
1088
1089/***/ "3bbe":
1090/***/ (function(module, exports, __webpack_require__) {
1091
1092var isObject = __webpack_require__("861d");
1093
1094module.exports = function (it) {
1095 if (!isObject(it) && it !== null) {
1096 throw TypeError("Can't set " + String(it) + ' as a prototype');
1097 } return it;
1098};
1099
1100
1101/***/ }),
1102
1103/***/ "3ca3":
1104/***/ (function(module, exports, __webpack_require__) {
1105
1106"use strict";
1107
1108var charAt = __webpack_require__("6547").charAt;
1109var InternalStateModule = __webpack_require__("69f3");
1110var defineIterator = __webpack_require__("7dd0");
1111
1112var STRING_ITERATOR = 'String Iterator';
1113var setInternalState = InternalStateModule.set;
1114var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
1115
1116// `String.prototype[@@iterator]` method
1117// https://tc39.es/ecma262/#sec-string.prototype-@@iterator
1118defineIterator(String, 'String', function (iterated) {
1119 setInternalState(this, {
1120 type: STRING_ITERATOR,
1121 string: String(iterated),
1122 index: 0
1123 });
1124// `%StringIteratorPrototype%.next` method
1125// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
1126}, function next() {
1127 var state = getInternalState(this);
1128 var string = state.string;
1129 var index = state.index;
1130 var point;
1131 if (index >= string.length) return { value: undefined, done: true };
1132 point = charAt(string, index);
1133 state.index += point.length;
1134 return { value: point, done: false };
1135});
1136
1137
1138/***/ }),
1139
1140/***/ "3f8c":
1141/***/ (function(module, exports) {
1142
1143module.exports = {};
1144
1145
1146/***/ }),
1147
1148/***/ "428f":
1149/***/ (function(module, exports, __webpack_require__) {
1150
1151var global = __webpack_require__("da84");
1152
1153module.exports = global;
1154
1155
1156/***/ }),
1157
1158/***/ "44ad":
1159/***/ (function(module, exports, __webpack_require__) {
1160
1161var fails = __webpack_require__("d039");
1162var classof = __webpack_require__("c6b6");
1163
1164var split = ''.split;
1165
1166// fallback for non-array-like ES3 and non-enumerable old V8 strings
1167module.exports = fails(function () {
1168 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
1169 // eslint-disable-next-line no-prototype-builtins -- safe
1170 return !Object('z').propertyIsEnumerable(0);
1171}) ? function (it) {
1172 return classof(it) == 'String' ? split.call(it, '') : Object(it);
1173} : Object;
1174
1175
1176/***/ }),
1177
1178/***/ "44d2":
1179/***/ (function(module, exports, __webpack_require__) {
1180
1181var wellKnownSymbol = __webpack_require__("b622");
1182var create = __webpack_require__("7c73");
1183var definePropertyModule = __webpack_require__("9bf2");
1184
1185var UNSCOPABLES = wellKnownSymbol('unscopables');
1186var ArrayPrototype = Array.prototype;
1187
1188// Array.prototype[@@unscopables]
1189// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1190if (ArrayPrototype[UNSCOPABLES] == undefined) {
1191 definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
1192 configurable: true,
1193 value: create(null)
1194 });
1195}
1196
1197// add a key to Array.prototype[@@unscopables]
1198module.exports = function (key) {
1199 ArrayPrototype[UNSCOPABLES][key] = true;
1200};
1201
1202
1203/***/ }),
1204
1205/***/ "44de":
1206/***/ (function(module, exports, __webpack_require__) {
1207
1208var global = __webpack_require__("da84");
1209
1210module.exports = function (a, b) {
1211 var console = global.console;
1212 if (console && console.error) {
1213 arguments.length === 1 ? console.error(a) : console.error(a, b);
1214 }
1215};
1216
1217
1218/***/ }),
1219
1220/***/ "44e7":
1221/***/ (function(module, exports, __webpack_require__) {
1222
1223var isObject = __webpack_require__("861d");
1224var classof = __webpack_require__("c6b6");
1225var wellKnownSymbol = __webpack_require__("b622");
1226
1227var MATCH = wellKnownSymbol('match');
1228
1229// `IsRegExp` abstract operation
1230// https://tc39.es/ecma262/#sec-isregexp
1231module.exports = function (it) {
1232 var isRegExp;
1233 return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
1234};
1235
1236
1237/***/ }),
1238
1239/***/ "466d":
1240/***/ (function(module, exports, __webpack_require__) {
1241
1242"use strict";
1243
1244var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
1245var anObject = __webpack_require__("825a");
1246var toLength = __webpack_require__("50c4");
1247var requireObjectCoercible = __webpack_require__("1d80");
1248var advanceStringIndex = __webpack_require__("8aa5");
1249var regExpExec = __webpack_require__("14c3");
1250
1251// @@match logic
1252fixRegExpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
1253 return [
1254 // `String.prototype.match` method
1255 // https://tc39.es/ecma262/#sec-string.prototype.match
1256 function match(regexp) {
1257 var O = requireObjectCoercible(this);
1258 var matcher = regexp == undefined ? undefined : regexp[MATCH];
1259 return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
1260 },
1261 // `RegExp.prototype[@@match]` method
1262 // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
1263 function (regexp) {
1264 var res = maybeCallNative(nativeMatch, regexp, this);
1265 if (res.done) return res.value;
1266
1267 var rx = anObject(regexp);
1268 var S = String(this);
1269
1270 if (!rx.global) return regExpExec(rx, S);
1271
1272 var fullUnicode = rx.unicode;
1273 rx.lastIndex = 0;
1274 var A = [];
1275 var n = 0;
1276 var result;
1277 while ((result = regExpExec(rx, S)) !== null) {
1278 var matchStr = String(result[0]);
1279 A[n] = matchStr;
1280 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1281 n++;
1282 }
1283 return n === 0 ? null : A;
1284 }
1285 ];
1286});
1287
1288
1289/***/ }),
1290
1291/***/ "4840":
1292/***/ (function(module, exports, __webpack_require__) {
1293
1294var anObject = __webpack_require__("825a");
1295var aFunction = __webpack_require__("1c0b");
1296var wellKnownSymbol = __webpack_require__("b622");
1297
1298var SPECIES = wellKnownSymbol('species');
1299
1300// `SpeciesConstructor` abstract operation
1301// https://tc39.es/ecma262/#sec-speciesconstructor
1302module.exports = function (O, defaultConstructor) {
1303 var C = anObject(O).constructor;
1304 var S;
1305 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);
1306};
1307
1308
1309/***/ }),
1310
1311/***/ "4930":
1312/***/ (function(module, exports, __webpack_require__) {
1313
1314var IS_NODE = __webpack_require__("605d");
1315var V8_VERSION = __webpack_require__("2d00");
1316var fails = __webpack_require__("d039");
1317
1318// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
1319module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
1320 // eslint-disable-next-line es/no-symbol -- required for testing
1321 return !Symbol.sham &&
1322 // Chrome 38 Symbol has incorrect toString conversion
1323 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
1324 (IS_NODE ? V8_VERSION === 38 : V8_VERSION > 37 && V8_VERSION < 41);
1325});
1326
1327
1328/***/ }),
1329
1330/***/ "4ae1":
1331/***/ (function(module, exports, __webpack_require__) {
1332
1333var $ = __webpack_require__("23e7");
1334var getBuiltIn = __webpack_require__("d066");
1335var aFunction = __webpack_require__("1c0b");
1336var anObject = __webpack_require__("825a");
1337var isObject = __webpack_require__("861d");
1338var create = __webpack_require__("7c73");
1339var bind = __webpack_require__("0538");
1340var fails = __webpack_require__("d039");
1341
1342var nativeConstruct = getBuiltIn('Reflect', 'construct');
1343
1344// `Reflect.construct` method
1345// https://tc39.es/ecma262/#sec-reflect.construct
1346// MS Edge supports only 2 arguments and argumentsList argument is optional
1347// FF Nightly sets third argument as `new.target`, but does not create `this` from it
1348var NEW_TARGET_BUG = fails(function () {
1349 function F() { /* empty */ }
1350 return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);
1351});
1352var ARGS_BUG = !fails(function () {
1353 nativeConstruct(function () { /* empty */ });
1354});
1355var FORCED = NEW_TARGET_BUG || ARGS_BUG;
1356
1357$({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, {
1358 construct: function construct(Target, args /* , newTarget */) {
1359 aFunction(Target);
1360 anObject(args);
1361 var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
1362 if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);
1363 if (Target == newTarget) {
1364 // w/o altered newTarget, optimization for 0-4 arguments
1365 switch (args.length) {
1366 case 0: return new Target();
1367 case 1: return new Target(args[0]);
1368 case 2: return new Target(args[0], args[1]);
1369 case 3: return new Target(args[0], args[1], args[2]);
1370 case 4: return new Target(args[0], args[1], args[2], args[3]);
1371 }
1372 // w/o altered newTarget, lot of arguments case
1373 var $args = [null];
1374 $args.push.apply($args, args);
1375 return new (bind.apply(Target, $args))();
1376 }
1377 // with altered newTarget, not support built-in constructors
1378 var proto = newTarget.prototype;
1379 var instance = create(isObject(proto) ? proto : Object.prototype);
1380 var result = Function.apply.call(Target, instance, args);
1381 return isObject(result) ? result : instance;
1382 }
1383});
1384
1385
1386/***/ }),
1387
1388/***/ "4d64":
1389/***/ (function(module, exports, __webpack_require__) {
1390
1391var toIndexedObject = __webpack_require__("fc6a");
1392var toLength = __webpack_require__("50c4");
1393var toAbsoluteIndex = __webpack_require__("23cb");
1394
1395// `Array.prototype.{ indexOf, includes }` methods implementation
1396var createMethod = function (IS_INCLUDES) {
1397 return function ($this, el, fromIndex) {
1398 var O = toIndexedObject($this);
1399 var length = toLength(O.length);
1400 var index = toAbsoluteIndex(fromIndex, length);
1401 var value;
1402 // Array#includes uses SameValueZero equality algorithm
1403 // eslint-disable-next-line no-self-compare -- NaN check
1404 if (IS_INCLUDES && el != el) while (length > index) {
1405 value = O[index++];
1406 // eslint-disable-next-line no-self-compare -- NaN check
1407 if (value != value) return true;
1408 // Array#indexOf ignores holes, Array#includes - not
1409 } else for (;length > index; index++) {
1410 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1411 } return !IS_INCLUDES && -1;
1412 };
1413};
1414
1415module.exports = {
1416 // `Array.prototype.includes` method
1417 // https://tc39.es/ecma262/#sec-array.prototype.includes
1418 includes: createMethod(true),
1419 // `Array.prototype.indexOf` method
1420 // https://tc39.es/ecma262/#sec-array.prototype.indexof
1421 indexOf: createMethod(false)
1422};
1423
1424
1425/***/ }),
1426
1427/***/ "4de4":
1428/***/ (function(module, exports, __webpack_require__) {
1429
1430"use strict";
1431
1432var $ = __webpack_require__("23e7");
1433var $filter = __webpack_require__("b727").filter;
1434var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
1435
1436var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
1437
1438// `Array.prototype.filter` method
1439// https://tc39.es/ecma262/#sec-array.prototype.filter
1440// with adding support of @@species
1441$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
1442 filter: function filter(callbackfn /* , thisArg */) {
1443 return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1444 }
1445});
1446
1447
1448/***/ }),
1449
1450/***/ "4df4":
1451/***/ (function(module, exports, __webpack_require__) {
1452
1453"use strict";
1454
1455var bind = __webpack_require__("0366");
1456var toObject = __webpack_require__("7b0b");
1457var callWithSafeIterationClosing = __webpack_require__("9bdd");
1458var isArrayIteratorMethod = __webpack_require__("e95a");
1459var toLength = __webpack_require__("50c4");
1460var createProperty = __webpack_require__("8418");
1461var getIteratorMethod = __webpack_require__("35a1");
1462
1463// `Array.from` method implementation
1464// https://tc39.es/ecma262/#sec-array.from
1465module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
1466 var O = toObject(arrayLike);
1467 var C = typeof this == 'function' ? this : Array;
1468 var argumentsLength = arguments.length;
1469 var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
1470 var mapping = mapfn !== undefined;
1471 var iteratorMethod = getIteratorMethod(O);
1472 var index = 0;
1473 var length, result, step, iterator, next, value;
1474 if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
1475 // if the target is not iterable or it's an array with the default iterator - use a simple case
1476 if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
1477 iterator = iteratorMethod.call(O);
1478 next = iterator.next;
1479 result = new C();
1480 for (;!(step = next.call(iterator)).done; index++) {
1481 value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
1482 createProperty(result, index, value);
1483 }
1484 } else {
1485 length = toLength(O.length);
1486 result = new C(length);
1487 for (;length > index; index++) {
1488 value = mapping ? mapfn(O[index], index) : O[index];
1489 createProperty(result, index, value);
1490 }
1491 }
1492 result.length = index;
1493 return result;
1494};
1495
1496
1497/***/ }),
1498
1499/***/ "50c4":
1500/***/ (function(module, exports, __webpack_require__) {
1501
1502var toInteger = __webpack_require__("a691");
1503
1504var min = Math.min;
1505
1506// `ToLength` abstract operation
1507// https://tc39.es/ecma262/#sec-tolength
1508module.exports = function (argument) {
1509 return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1510};
1511
1512
1513/***/ }),
1514
1515/***/ "5135":
1516/***/ (function(module, exports) {
1517
1518var hasOwnProperty = {}.hasOwnProperty;
1519
1520module.exports = function (it, key) {
1521 return hasOwnProperty.call(it, key);
1522};
1523
1524
1525/***/ }),
1526
1527/***/ "5319":
1528/***/ (function(module, exports, __webpack_require__) {
1529
1530"use strict";
1531
1532var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
1533var anObject = __webpack_require__("825a");
1534var toLength = __webpack_require__("50c4");
1535var toInteger = __webpack_require__("a691");
1536var requireObjectCoercible = __webpack_require__("1d80");
1537var advanceStringIndex = __webpack_require__("8aa5");
1538var getSubstitution = __webpack_require__("0cb2");
1539var regExpExec = __webpack_require__("14c3");
1540
1541var max = Math.max;
1542var min = Math.min;
1543
1544var maybeToString = function (it) {
1545 return it === undefined ? it : String(it);
1546};
1547
1548// @@replace logic
1549fixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1550 var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
1551 var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
1552 var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1553
1554 return [
1555 // `String.prototype.replace` method
1556 // https://tc39.es/ecma262/#sec-string.prototype.replace
1557 function replace(searchValue, replaceValue) {
1558 var O = requireObjectCoercible(this);
1559 var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
1560 return replacer !== undefined
1561 ? replacer.call(searchValue, O, replaceValue)
1562 : nativeReplace.call(String(O), searchValue, replaceValue);
1563 },
1564 // `RegExp.prototype[@@replace]` method
1565 // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1566 function (regexp, replaceValue) {
1567 if (
1568 (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
1569 (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
1570 ) {
1571 var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1572 if (res.done) return res.value;
1573 }
1574
1575 var rx = anObject(regexp);
1576 var S = String(this);
1577
1578 var functionalReplace = typeof replaceValue === 'function';
1579 if (!functionalReplace) replaceValue = String(replaceValue);
1580
1581 var global = rx.global;
1582 if (global) {
1583 var fullUnicode = rx.unicode;
1584 rx.lastIndex = 0;
1585 }
1586 var results = [];
1587 while (true) {
1588 var result = regExpExec(rx, S);
1589 if (result === null) break;
1590
1591 results.push(result);
1592 if (!global) break;
1593
1594 var matchStr = String(result[0]);
1595 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1596 }
1597
1598 var accumulatedResult = '';
1599 var nextSourcePosition = 0;
1600 for (var i = 0; i < results.length; i++) {
1601 result = results[i];
1602
1603 var matched = String(result[0]);
1604 var position = max(min(toInteger(result.index), S.length), 0);
1605 var captures = [];
1606 // NOTE: This is equivalent to
1607 // captures = result.slice(1).map(maybeToString)
1608 // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1609 // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1610 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1611 for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1612 var namedCaptures = result.groups;
1613 if (functionalReplace) {
1614 var replacerArgs = [matched].concat(captures, position, S);
1615 if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1616 var replacement = String(replaceValue.apply(undefined, replacerArgs));
1617 } else {
1618 replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1619 }
1620 if (position >= nextSourcePosition) {
1621 accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1622 nextSourcePosition = position + matched.length;
1623 }
1624 }
1625 return accumulatedResult + S.slice(nextSourcePosition);
1626 }
1627 ];
1628});
1629
1630
1631/***/ }),
1632
1633/***/ "5692":
1634/***/ (function(module, exports, __webpack_require__) {
1635
1636var IS_PURE = __webpack_require__("c430");
1637var store = __webpack_require__("c6cd");
1638
1639(module.exports = function (key, value) {
1640 return store[key] || (store[key] = value !== undefined ? value : {});
1641})('versions', []).push({
1642 version: '3.10.1',
1643 mode: IS_PURE ? 'pure' : 'global',
1644 copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
1645});
1646
1647
1648/***/ }),
1649
1650/***/ "56ef":
1651/***/ (function(module, exports, __webpack_require__) {
1652
1653var getBuiltIn = __webpack_require__("d066");
1654var getOwnPropertyNamesModule = __webpack_require__("241c");
1655var getOwnPropertySymbolsModule = __webpack_require__("7418");
1656var anObject = __webpack_require__("825a");
1657
1658// all object keys, includes non-enumerable and symbols
1659module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1660 var keys = getOwnPropertyNamesModule.f(anObject(it));
1661 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1662 return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
1663};
1664
1665
1666/***/ }),
1667
1668/***/ "5c6c":
1669/***/ (function(module, exports) {
1670
1671module.exports = function (bitmap, value) {
1672 return {
1673 enumerable: !(bitmap & 1),
1674 configurable: !(bitmap & 2),
1675 writable: !(bitmap & 4),
1676 value: value
1677 };
1678};
1679
1680
1681/***/ }),
1682
1683/***/ "605d":
1684/***/ (function(module, exports, __webpack_require__) {
1685
1686var classof = __webpack_require__("c6b6");
1687var global = __webpack_require__("da84");
1688
1689module.exports = classof(global.process) == 'process';
1690
1691
1692/***/ }),
1693
1694/***/ "6547":
1695/***/ (function(module, exports, __webpack_require__) {
1696
1697var toInteger = __webpack_require__("a691");
1698var requireObjectCoercible = __webpack_require__("1d80");
1699
1700// `String.prototype.{ codePointAt, at }` methods implementation
1701var createMethod = function (CONVERT_TO_STRING) {
1702 return function ($this, pos) {
1703 var S = String(requireObjectCoercible($this));
1704 var position = toInteger(pos);
1705 var size = S.length;
1706 var first, second;
1707 if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1708 first = S.charCodeAt(position);
1709 return first < 0xD800 || first > 0xDBFF || position + 1 === size
1710 || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1711 ? CONVERT_TO_STRING ? S.charAt(position) : first
1712 : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1713 };
1714};
1715
1716module.exports = {
1717 // `String.prototype.codePointAt` method
1718 // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1719 codeAt: createMethod(false),
1720 // `String.prototype.at` method
1721 // https://github.com/mathiasbynens/String.prototype.at
1722 charAt: createMethod(true)
1723};
1724
1725
1726/***/ }),
1727
1728/***/ "65f0":
1729/***/ (function(module, exports, __webpack_require__) {
1730
1731var isObject = __webpack_require__("861d");
1732var isArray = __webpack_require__("e8b5");
1733var wellKnownSymbol = __webpack_require__("b622");
1734
1735var SPECIES = wellKnownSymbol('species');
1736
1737// `ArraySpeciesCreate` abstract operation
1738// https://tc39.es/ecma262/#sec-arrayspeciescreate
1739module.exports = function (originalArray, length) {
1740 var C;
1741 if (isArray(originalArray)) {
1742 C = originalArray.constructor;
1743 // cross-realm fallback
1744 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
1745 else if (isObject(C)) {
1746 C = C[SPECIES];
1747 if (C === null) C = undefined;
1748 }
1749 } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
1750};
1751
1752
1753/***/ }),
1754
1755/***/ "69f3":
1756/***/ (function(module, exports, __webpack_require__) {
1757
1758var NATIVE_WEAK_MAP = __webpack_require__("7f9a");
1759var global = __webpack_require__("da84");
1760var isObject = __webpack_require__("861d");
1761var createNonEnumerableProperty = __webpack_require__("9112");
1762var objectHas = __webpack_require__("5135");
1763var shared = __webpack_require__("c6cd");
1764var sharedKey = __webpack_require__("f772");
1765var hiddenKeys = __webpack_require__("d012");
1766
1767var WeakMap = global.WeakMap;
1768var set, get, has;
1769
1770var enforce = function (it) {
1771 return has(it) ? get(it) : set(it, {});
1772};
1773
1774var getterFor = function (TYPE) {
1775 return function (it) {
1776 var state;
1777 if (!isObject(it) || (state = get(it)).type !== TYPE) {
1778 throw TypeError('Incompatible receiver, ' + TYPE + ' required');
1779 } return state;
1780 };
1781};
1782
1783if (NATIVE_WEAK_MAP) {
1784 var store = shared.state || (shared.state = new WeakMap());
1785 var wmget = store.get;
1786 var wmhas = store.has;
1787 var wmset = store.set;
1788 set = function (it, metadata) {
1789 metadata.facade = it;
1790 wmset.call(store, it, metadata);
1791 return metadata;
1792 };
1793 get = function (it) {
1794 return wmget.call(store, it) || {};
1795 };
1796 has = function (it) {
1797 return wmhas.call(store, it);
1798 };
1799} else {
1800 var STATE = sharedKey('state');
1801 hiddenKeys[STATE] = true;
1802 set = function (it, metadata) {
1803 metadata.facade = it;
1804 createNonEnumerableProperty(it, STATE, metadata);
1805 return metadata;
1806 };
1807 get = function (it) {
1808 return objectHas(it, STATE) ? it[STATE] : {};
1809 };
1810 has = function (it) {
1811 return objectHas(it, STATE);
1812 };
1813}
1814
1815module.exports = {
1816 set: set,
1817 get: get,
1818 has: has,
1819 enforce: enforce,
1820 getterFor: getterFor
1821};
1822
1823
1824/***/ }),
1825
1826/***/ "6eeb":
1827/***/ (function(module, exports, __webpack_require__) {
1828
1829var global = __webpack_require__("da84");
1830var createNonEnumerableProperty = __webpack_require__("9112");
1831var has = __webpack_require__("5135");
1832var setGlobal = __webpack_require__("ce4e");
1833var inspectSource = __webpack_require__("8925");
1834var InternalStateModule = __webpack_require__("69f3");
1835
1836var getInternalState = InternalStateModule.get;
1837var enforceInternalState = InternalStateModule.enforce;
1838var TEMPLATE = String(String).split('String');
1839
1840(module.exports = function (O, key, value, options) {
1841 var unsafe = options ? !!options.unsafe : false;
1842 var simple = options ? !!options.enumerable : false;
1843 var noTargetGet = options ? !!options.noTargetGet : false;
1844 var state;
1845 if (typeof value == 'function') {
1846 if (typeof key == 'string' && !has(value, 'name')) {
1847 createNonEnumerableProperty(value, 'name', key);
1848 }
1849 state = enforceInternalState(value);
1850 if (!state.source) {
1851 state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
1852 }
1853 }
1854 if (O === global) {
1855 if (simple) O[key] = value;
1856 else setGlobal(key, value);
1857 return;
1858 } else if (!unsafe) {
1859 delete O[key];
1860 } else if (!noTargetGet && O[key]) {
1861 simple = true;
1862 }
1863 if (simple) O[key] = value;
1864 else createNonEnumerableProperty(O, key, value);
1865// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1866})(Function.prototype, 'toString', function toString() {
1867 return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
1868});
1869
1870
1871/***/ }),
1872
1873/***/ "7037":
1874/***/ (function(module, exports, __webpack_require__) {
1875
1876__webpack_require__("a4d3");
1877
1878__webpack_require__("e01a");
1879
1880__webpack_require__("d3b7");
1881
1882__webpack_require__("d28b");
1883
1884__webpack_require__("e260");
1885
1886__webpack_require__("3ca3");
1887
1888__webpack_require__("ddb0");
1889
1890function _typeof(obj) {
1891 "@babel/helpers - typeof";
1892
1893 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
1894 module.exports = _typeof = function _typeof(obj) {
1895 return typeof obj;
1896 };
1897
1898 module.exports["default"] = module.exports, module.exports.__esModule = true;
1899 } else {
1900 module.exports = _typeof = function _typeof(obj) {
1901 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1902 };
1903
1904 module.exports["default"] = module.exports, module.exports.__esModule = true;
1905 }
1906
1907 return _typeof(obj);
1908}
1909
1910module.exports = _typeof;
1911module.exports["default"] = module.exports, module.exports.__esModule = true;
1912
1913/***/ }),
1914
1915/***/ "7418":
1916/***/ (function(module, exports) {
1917
1918// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1919exports.f = Object.getOwnPropertySymbols;
1920
1921
1922/***/ }),
1923
1924/***/ "746f":
1925/***/ (function(module, exports, __webpack_require__) {
1926
1927var path = __webpack_require__("428f");
1928var has = __webpack_require__("5135");
1929var wrappedWellKnownSymbolModule = __webpack_require__("e538");
1930var defineProperty = __webpack_require__("9bf2").f;
1931
1932module.exports = function (NAME) {
1933 var Symbol = path.Symbol || (path.Symbol = {});
1934 if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
1935 value: wrappedWellKnownSymbolModule.f(NAME)
1936 });
1937};
1938
1939
1940/***/ }),
1941
1942/***/ "7839":
1943/***/ (function(module, exports) {
1944
1945// IE8- don't enum bug keys
1946module.exports = [
1947 'constructor',
1948 'hasOwnProperty',
1949 'isPrototypeOf',
1950 'propertyIsEnumerable',
1951 'toLocaleString',
1952 'toString',
1953 'valueOf'
1954];
1955
1956
1957/***/ }),
1958
1959/***/ "7b0b":
1960/***/ (function(module, exports, __webpack_require__) {
1961
1962var requireObjectCoercible = __webpack_require__("1d80");
1963
1964// `ToObject` abstract operation
1965// https://tc39.es/ecma262/#sec-toobject
1966module.exports = function (argument) {
1967 return Object(requireObjectCoercible(argument));
1968};
1969
1970
1971/***/ }),
1972
1973/***/ "7c73":
1974/***/ (function(module, exports, __webpack_require__) {
1975
1976var anObject = __webpack_require__("825a");
1977var defineProperties = __webpack_require__("37e8");
1978var enumBugKeys = __webpack_require__("7839");
1979var hiddenKeys = __webpack_require__("d012");
1980var html = __webpack_require__("1be4");
1981var documentCreateElement = __webpack_require__("cc12");
1982var sharedKey = __webpack_require__("f772");
1983
1984var GT = '>';
1985var LT = '<';
1986var PROTOTYPE = 'prototype';
1987var SCRIPT = 'script';
1988var IE_PROTO = sharedKey('IE_PROTO');
1989
1990var EmptyConstructor = function () { /* empty */ };
1991
1992var scriptTag = function (content) {
1993 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1994};
1995
1996// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1997var NullProtoObjectViaActiveX = function (activeXDocument) {
1998 activeXDocument.write(scriptTag(''));
1999 activeXDocument.close();
2000 var temp = activeXDocument.parentWindow.Object;
2001 activeXDocument = null; // avoid memory leak
2002 return temp;
2003};
2004
2005// Create object with fake `null` prototype: use iframe Object with cleared prototype
2006var NullProtoObjectViaIFrame = function () {
2007 // Thrash, waste and sodomy: IE GC bug
2008 var iframe = documentCreateElement('iframe');
2009 var JS = 'java' + SCRIPT + ':';
2010 var iframeDocument;
2011 iframe.style.display = 'none';
2012 html.appendChild(iframe);
2013 // https://github.com/zloirock/core-js/issues/475
2014 iframe.src = String(JS);
2015 iframeDocument = iframe.contentWindow.document;
2016 iframeDocument.open();
2017 iframeDocument.write(scriptTag('document.F=Object'));
2018 iframeDocument.close();
2019 return iframeDocument.F;
2020};
2021
2022// Check for document.domain and active x support
2023// No need to use active x approach when document.domain is not set
2024// see https://github.com/es-shims/es5-shim/issues/150
2025// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
2026// avoid IE GC bug
2027var activeXDocument;
2028var NullProtoObject = function () {
2029 try {
2030 /* global ActiveXObject -- old IE */
2031 activeXDocument = document.domain && new ActiveXObject('htmlfile');
2032 } catch (error) { /* ignore */ }
2033 NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
2034 var length = enumBugKeys.length;
2035 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
2036 return NullProtoObject();
2037};
2038
2039hiddenKeys[IE_PROTO] = true;
2040
2041// `Object.create` method
2042// https://tc39.es/ecma262/#sec-object.create
2043module.exports = Object.create || function create(O, Properties) {
2044 var result;
2045 if (O !== null) {
2046 EmptyConstructor[PROTOTYPE] = anObject(O);
2047 result = new EmptyConstructor();
2048 EmptyConstructor[PROTOTYPE] = null;
2049 // add "__proto__" for Object.getPrototypeOf polyfill
2050 result[IE_PROTO] = O;
2051 } else result = NullProtoObject();
2052 return Properties === undefined ? result : defineProperties(result, Properties);
2053};
2054
2055
2056/***/ }),
2057
2058/***/ "7db0":
2059/***/ (function(module, exports, __webpack_require__) {
2060
2061"use strict";
2062
2063var $ = __webpack_require__("23e7");
2064var $find = __webpack_require__("b727").find;
2065var addToUnscopables = __webpack_require__("44d2");
2066
2067var FIND = 'find';
2068var SKIPS_HOLES = true;
2069
2070// Shouldn't skip holes
2071if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
2072
2073// `Array.prototype.find` method
2074// https://tc39.es/ecma262/#sec-array.prototype.find
2075$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
2076 find: function find(callbackfn /* , that = undefined */) {
2077 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2078 }
2079});
2080
2081// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2082addToUnscopables(FIND);
2083
2084
2085/***/ }),
2086
2087/***/ "7dd0":
2088/***/ (function(module, exports, __webpack_require__) {
2089
2090"use strict";
2091
2092var $ = __webpack_require__("23e7");
2093var createIteratorConstructor = __webpack_require__("9ed3");
2094var getPrototypeOf = __webpack_require__("e163");
2095var setPrototypeOf = __webpack_require__("d2bb");
2096var setToStringTag = __webpack_require__("d44e");
2097var createNonEnumerableProperty = __webpack_require__("9112");
2098var redefine = __webpack_require__("6eeb");
2099var wellKnownSymbol = __webpack_require__("b622");
2100var IS_PURE = __webpack_require__("c430");
2101var Iterators = __webpack_require__("3f8c");
2102var IteratorsCore = __webpack_require__("ae93");
2103
2104var IteratorPrototype = IteratorsCore.IteratorPrototype;
2105var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
2106var ITERATOR = wellKnownSymbol('iterator');
2107var KEYS = 'keys';
2108var VALUES = 'values';
2109var ENTRIES = 'entries';
2110
2111var returnThis = function () { return this; };
2112
2113module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
2114 createIteratorConstructor(IteratorConstructor, NAME, next);
2115
2116 var getIterationMethod = function (KIND) {
2117 if (KIND === DEFAULT && defaultIterator) return defaultIterator;
2118 if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
2119 switch (KIND) {
2120 case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
2121 case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
2122 case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
2123 } return function () { return new IteratorConstructor(this); };
2124 };
2125
2126 var TO_STRING_TAG = NAME + ' Iterator';
2127 var INCORRECT_VALUES_NAME = false;
2128 var IterablePrototype = Iterable.prototype;
2129 var nativeIterator = IterablePrototype[ITERATOR]
2130 || IterablePrototype['@@iterator']
2131 || DEFAULT && IterablePrototype[DEFAULT];
2132 var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
2133 var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
2134 var CurrentIteratorPrototype, methods, KEY;
2135
2136 // fix native
2137 if (anyNativeIterator) {
2138 CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
2139 if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
2140 if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
2141 if (setPrototypeOf) {
2142 setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
2143 } else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {
2144 createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);
2145 }
2146 }
2147 // Set @@toStringTag to native iterators
2148 setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
2149 if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
2150 }
2151 }
2152
2153 // fix Array#{values, @@iterator}.name in V8 / FF
2154 if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
2155 INCORRECT_VALUES_NAME = true;
2156 defaultIterator = function values() { return nativeIterator.call(this); };
2157 }
2158
2159 // define iterator
2160 if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
2161 createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);
2162 }
2163 Iterators[NAME] = defaultIterator;
2164
2165 // export additional methods
2166 if (DEFAULT) {
2167 methods = {
2168 values: getIterationMethod(VALUES),
2169 keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
2170 entries: getIterationMethod(ENTRIES)
2171 };
2172 if (FORCED) for (KEY in methods) {
2173 if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
2174 redefine(IterablePrototype, KEY, methods[KEY]);
2175 }
2176 } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2177 }
2178
2179 return methods;
2180};
2181
2182
2183/***/ }),
2184
2185/***/ "7f9a":
2186/***/ (function(module, exports, __webpack_require__) {
2187
2188var global = __webpack_require__("da84");
2189var inspectSource = __webpack_require__("8925");
2190
2191var WeakMap = global.WeakMap;
2192
2193module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
2194
2195
2196/***/ }),
2197
2198/***/ "825a":
2199/***/ (function(module, exports, __webpack_require__) {
2200
2201var isObject = __webpack_require__("861d");
2202
2203module.exports = function (it) {
2204 if (!isObject(it)) {
2205 throw TypeError(String(it) + ' is not an object');
2206 } return it;
2207};
2208
2209
2210/***/ }),
2211
2212/***/ "83ab":
2213/***/ (function(module, exports, __webpack_require__) {
2214
2215var fails = __webpack_require__("d039");
2216
2217// Detect IE8's incomplete defineProperty implementation
2218module.exports = !fails(function () {
2219 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2220 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
2221});
2222
2223
2224/***/ }),
2225
2226/***/ "8418":
2227/***/ (function(module, exports, __webpack_require__) {
2228
2229"use strict";
2230
2231var toPrimitive = __webpack_require__("c04e");
2232var definePropertyModule = __webpack_require__("9bf2");
2233var createPropertyDescriptor = __webpack_require__("5c6c");
2234
2235module.exports = function (object, key, value) {
2236 var propertyKey = toPrimitive(key);
2237 if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
2238 else object[propertyKey] = value;
2239};
2240
2241
2242/***/ }),
2243
2244/***/ "861d":
2245/***/ (function(module, exports) {
2246
2247module.exports = function (it) {
2248 return typeof it === 'object' ? it !== null : typeof it === 'function';
2249};
2250
2251
2252/***/ }),
2253
2254/***/ "8875":
2255/***/ (function(module, exports, __webpack_require__) {
2256
2257var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller
2258// MIT license
2259// source: https://github.com/amiller-gh/currentScript-polyfill
2260
2261// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505
2262
2263(function (root, factory) {
2264 if (true) {
2265 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
2266 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
2267 (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
2268 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
2269 } else {}
2270}(typeof self !== 'undefined' ? self : this, function () {
2271 function getCurrentScript () {
2272 var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
2273 // for chrome
2274 if (!descriptor && 'currentScript' in document && document.currentScript) {
2275 return document.currentScript
2276 }
2277
2278 // for other browsers with native support for currentScript
2279 if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
2280 return document.currentScript
2281 }
2282
2283 // IE 8-10 support script readyState
2284 // IE 11+ & Firefox support stack trace
2285 try {
2286 throw new Error();
2287 }
2288 catch (err) {
2289 // Find the second match for the "at" string to get file src url from stack.
2290 var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig,
2291 ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig,
2292 stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),
2293 scriptLocation = (stackDetails && stackDetails[1]) || false,
2294 line = (stackDetails && stackDetails[2]) || false,
2295 currentLocation = document.location.href.replace(document.location.hash, ''),
2296 pageSource,
2297 inlineScriptSourceRegExp,
2298 inlineScriptSource,
2299 scripts = document.getElementsByTagName('script'); // Live NodeList collection
2300
2301 if (scriptLocation === currentLocation) {
2302 pageSource = document.documentElement.outerHTML;
2303 inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i');
2304 inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();
2305 }
2306
2307 for (var i = 0; i < scripts.length; i++) {
2308 // If ready state is interactive, return the script tag
2309 if (scripts[i].readyState === 'interactive') {
2310 return scripts[i];
2311 }
2312
2313 // If src matches, return the script tag
2314 if (scripts[i].src === scriptLocation) {
2315 return scripts[i];
2316 }
2317
2318 // If inline source matches, return the script tag
2319 if (
2320 scriptLocation === currentLocation &&
2321 scripts[i].innerHTML &&
2322 scripts[i].innerHTML.trim() === inlineScriptSource
2323 ) {
2324 return scripts[i];
2325 }
2326 }
2327
2328 // If no match, return null
2329 return null;
2330 }
2331 };
2332
2333 return getCurrentScript
2334}));
2335
2336
2337/***/ }),
2338
2339/***/ "8925":
2340/***/ (function(module, exports, __webpack_require__) {
2341
2342var store = __webpack_require__("c6cd");
2343
2344var functionToString = Function.toString;
2345
2346// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
2347if (typeof store.inspectSource != 'function') {
2348 store.inspectSource = function (it) {
2349 return functionToString.call(it);
2350 };
2351}
2352
2353module.exports = store.inspectSource;
2354
2355
2356/***/ }),
2357
2358/***/ "8aa5":
2359/***/ (function(module, exports, __webpack_require__) {
2360
2361"use strict";
2362
2363var charAt = __webpack_require__("6547").charAt;
2364
2365// `AdvanceStringIndex` abstract operation
2366// https://tc39.es/ecma262/#sec-advancestringindex
2367module.exports = function (S, index, unicode) {
2368 return index + (unicode ? charAt(S, index).length : 1);
2369};
2370
2371
2372/***/ }),
2373
2374/***/ "8bbf":
2375/***/ (function(module, exports) {
2376
2377module.exports = require("vue");
2378
2379/***/ }),
2380
2381/***/ "90e3":
2382/***/ (function(module, exports) {
2383
2384var id = 0;
2385var postfix = Math.random();
2386
2387module.exports = function (key) {
2388 return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
2389};
2390
2391
2392/***/ }),
2393
2394/***/ "9112":
2395/***/ (function(module, exports, __webpack_require__) {
2396
2397var DESCRIPTORS = __webpack_require__("83ab");
2398var definePropertyModule = __webpack_require__("9bf2");
2399var createPropertyDescriptor = __webpack_require__("5c6c");
2400
2401module.exports = DESCRIPTORS ? function (object, key, value) {
2402 return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
2403} : function (object, key, value) {
2404 object[key] = value;
2405 return object;
2406};
2407
2408
2409/***/ }),
2410
2411/***/ "9263":
2412/***/ (function(module, exports, __webpack_require__) {
2413
2414"use strict";
2415
2416var regexpFlags = __webpack_require__("ad6d");
2417var stickyHelpers = __webpack_require__("9f7f");
2418var shared = __webpack_require__("5692");
2419
2420var nativeExec = RegExp.prototype.exec;
2421var nativeReplace = shared('native-string-replace', String.prototype.replace);
2422
2423var patchedExec = nativeExec;
2424
2425var UPDATES_LAST_INDEX_WRONG = (function () {
2426 var re1 = /a/;
2427 var re2 = /b*/g;
2428 nativeExec.call(re1, 'a');
2429 nativeExec.call(re2, 'a');
2430 return re1.lastIndex !== 0 || re2.lastIndex !== 0;
2431})();
2432
2433var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET;
2434
2435// nonparticipating capturing group, copied from es5-shim's String#split patch.
2436// eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
2437var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
2438
2439var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
2440
2441if (PATCH) {
2442 patchedExec = function exec(str) {
2443 var re = this;
2444 var lastIndex, reCopy, match, i;
2445 var sticky = UNSUPPORTED_Y && re.sticky;
2446 var flags = regexpFlags.call(re);
2447 var source = re.source;
2448 var charsAdded = 0;
2449 var strCopy = str;
2450
2451 if (sticky) {
2452 flags = flags.replace('y', '');
2453 if (flags.indexOf('g') === -1) {
2454 flags += 'g';
2455 }
2456
2457 strCopy = String(str).slice(re.lastIndex);
2458 // Support anchored sticky behavior.
2459 if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
2460 source = '(?: ' + source + ')';
2461 strCopy = ' ' + strCopy;
2462 charsAdded++;
2463 }
2464 // ^(? + rx + ) is needed, in combination with some str slicing, to
2465 // simulate the 'y' flag.
2466 reCopy = new RegExp('^(?:' + source + ')', flags);
2467 }
2468
2469 if (NPCG_INCLUDED) {
2470 reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
2471 }
2472 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
2473
2474 match = nativeExec.call(sticky ? reCopy : re, strCopy);
2475
2476 if (sticky) {
2477 if (match) {
2478 match.input = match.input.slice(charsAdded);
2479 match[0] = match[0].slice(charsAdded);
2480 match.index = re.lastIndex;
2481 re.lastIndex += match[0].length;
2482 } else re.lastIndex = 0;
2483 } else if (UPDATES_LAST_INDEX_WRONG && match) {
2484 re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
2485 }
2486 if (NPCG_INCLUDED && match && match.length > 1) {
2487 // Fix browsers whose `exec` methods don't consistently return `undefined`
2488 // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
2489 nativeReplace.call(match[0], reCopy, function () {
2490 for (i = 1; i < arguments.length - 2; i++) {
2491 if (arguments[i] === undefined) match[i] = undefined;
2492 }
2493 });
2494 }
2495
2496 return match;
2497 };
2498}
2499
2500module.exports = patchedExec;
2501
2502
2503/***/ }),
2504
2505/***/ "94ca":
2506/***/ (function(module, exports, __webpack_require__) {
2507
2508var fails = __webpack_require__("d039");
2509
2510var replacement = /#|\.prototype\./;
2511
2512var isForced = function (feature, detection) {
2513 var value = data[normalize(feature)];
2514 return value == POLYFILL ? true
2515 : value == NATIVE ? false
2516 : typeof detection == 'function' ? fails(detection)
2517 : !!detection;
2518};
2519
2520var normalize = isForced.normalize = function (string) {
2521 return String(string).replace(replacement, '.').toLowerCase();
2522};
2523
2524var data = isForced.data = {};
2525var NATIVE = isForced.NATIVE = 'N';
2526var POLYFILL = isForced.POLYFILL = 'P';
2527
2528module.exports = isForced;
2529
2530
2531/***/ }),
2532
2533/***/ "99af":
2534/***/ (function(module, exports, __webpack_require__) {
2535
2536"use strict";
2537
2538var $ = __webpack_require__("23e7");
2539var fails = __webpack_require__("d039");
2540var isArray = __webpack_require__("e8b5");
2541var isObject = __webpack_require__("861d");
2542var toObject = __webpack_require__("7b0b");
2543var toLength = __webpack_require__("50c4");
2544var createProperty = __webpack_require__("8418");
2545var arraySpeciesCreate = __webpack_require__("65f0");
2546var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
2547var wellKnownSymbol = __webpack_require__("b622");
2548var V8_VERSION = __webpack_require__("2d00");
2549
2550var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
2551var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
2552var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
2553
2554// We can't use this feature detection in V8 since it causes
2555// deoptimization and serious performance degradation
2556// https://github.com/zloirock/core-js/issues/679
2557var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
2558 var array = [];
2559 array[IS_CONCAT_SPREADABLE] = false;
2560 return array.concat()[0] !== array;
2561});
2562
2563var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
2564
2565var isConcatSpreadable = function (O) {
2566 if (!isObject(O)) return false;
2567 var spreadable = O[IS_CONCAT_SPREADABLE];
2568 return spreadable !== undefined ? !!spreadable : isArray(O);
2569};
2570
2571var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
2572
2573// `Array.prototype.concat` method
2574// https://tc39.es/ecma262/#sec-array.prototype.concat
2575// with adding support of @@isConcatSpreadable and @@species
2576$({ target: 'Array', proto: true, forced: FORCED }, {
2577 // eslint-disable-next-line no-unused-vars -- required for `.length`
2578 concat: function concat(arg) {
2579 var O = toObject(this);
2580 var A = arraySpeciesCreate(O, 0);
2581 var n = 0;
2582 var i, k, length, len, E;
2583 for (i = -1, length = arguments.length; i < length; i++) {
2584 E = i === -1 ? O : arguments[i];
2585 if (isConcatSpreadable(E)) {
2586 len = toLength(E.length);
2587 if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
2588 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
2589 } else {
2590 if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
2591 createProperty(A, n++, E);
2592 }
2593 }
2594 A.length = n;
2595 return A;
2596 }
2597});
2598
2599
2600/***/ }),
2601
2602/***/ "9bdd":
2603/***/ (function(module, exports, __webpack_require__) {
2604
2605var anObject = __webpack_require__("825a");
2606var iteratorClose = __webpack_require__("2a62");
2607
2608// call something on iterator step with safe closing on error
2609module.exports = function (iterator, fn, value, ENTRIES) {
2610 try {
2611 return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
2612 // 7.4.6 IteratorClose(iterator, completion)
2613 } catch (error) {
2614 iteratorClose(iterator);
2615 throw error;
2616 }
2617};
2618
2619
2620/***/ }),
2621
2622/***/ "9bf2":
2623/***/ (function(module, exports, __webpack_require__) {
2624
2625var DESCRIPTORS = __webpack_require__("83ab");
2626var IE8_DOM_DEFINE = __webpack_require__("0cfb");
2627var anObject = __webpack_require__("825a");
2628var toPrimitive = __webpack_require__("c04e");
2629
2630// eslint-disable-next-line es/no-object-defineproperty -- safe
2631var $defineProperty = Object.defineProperty;
2632
2633// `Object.defineProperty` method
2634// https://tc39.es/ecma262/#sec-object.defineproperty
2635exports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attributes) {
2636 anObject(O);
2637 P = toPrimitive(P, true);
2638 anObject(Attributes);
2639 if (IE8_DOM_DEFINE) try {
2640 return $defineProperty(O, P, Attributes);
2641 } catch (error) { /* empty */ }
2642 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
2643 if ('value' in Attributes) O[P] = Attributes.value;
2644 return O;
2645};
2646
2647
2648/***/ }),
2649
2650/***/ "9ed3":
2651/***/ (function(module, exports, __webpack_require__) {
2652
2653"use strict";
2654
2655var IteratorPrototype = __webpack_require__("ae93").IteratorPrototype;
2656var create = __webpack_require__("7c73");
2657var createPropertyDescriptor = __webpack_require__("5c6c");
2658var setToStringTag = __webpack_require__("d44e");
2659var Iterators = __webpack_require__("3f8c");
2660
2661var returnThis = function () { return this; };
2662
2663module.exports = function (IteratorConstructor, NAME, next) {
2664 var TO_STRING_TAG = NAME + ' Iterator';
2665 IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });
2666 setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
2667 Iterators[TO_STRING_TAG] = returnThis;
2668 return IteratorConstructor;
2669};
2670
2671
2672/***/ }),
2673
2674/***/ "9f7f":
2675/***/ (function(module, exports, __webpack_require__) {
2676
2677"use strict";
2678
2679
2680var fails = __webpack_require__("d039");
2681
2682// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
2683// so we use an intermediate function.
2684function RE(s, f) {
2685 return RegExp(s, f);
2686}
2687
2688exports.UNSUPPORTED_Y = fails(function () {
2689 // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
2690 var re = RE('a', 'y');
2691 re.lastIndex = 2;
2692 return re.exec('abcd') != null;
2693});
2694
2695exports.BROKEN_CARET = fails(function () {
2696 // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
2697 var re = RE('^r', 'gy');
2698 re.lastIndex = 2;
2699 return re.exec('str') != null;
2700});
2701
2702
2703/***/ }),
2704
2705/***/ "a434":
2706/***/ (function(module, exports, __webpack_require__) {
2707
2708"use strict";
2709
2710var $ = __webpack_require__("23e7");
2711var toAbsoluteIndex = __webpack_require__("23cb");
2712var toInteger = __webpack_require__("a691");
2713var toLength = __webpack_require__("50c4");
2714var toObject = __webpack_require__("7b0b");
2715var arraySpeciesCreate = __webpack_require__("65f0");
2716var createProperty = __webpack_require__("8418");
2717var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
2718
2719var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
2720
2721var max = Math.max;
2722var min = Math.min;
2723var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
2724var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
2725
2726// `Array.prototype.splice` method
2727// https://tc39.es/ecma262/#sec-array.prototype.splice
2728// with adding support of @@species
2729$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
2730 splice: function splice(start, deleteCount /* , ...items */) {
2731 var O = toObject(this);
2732 var len = toLength(O.length);
2733 var actualStart = toAbsoluteIndex(start, len);
2734 var argumentsLength = arguments.length;
2735 var insertCount, actualDeleteCount, A, k, from, to;
2736 if (argumentsLength === 0) {
2737 insertCount = actualDeleteCount = 0;
2738 } else if (argumentsLength === 1) {
2739 insertCount = 0;
2740 actualDeleteCount = len - actualStart;
2741 } else {
2742 insertCount = argumentsLength - 2;
2743 actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);
2744 }
2745 if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
2746 throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
2747 }
2748 A = arraySpeciesCreate(O, actualDeleteCount);
2749 for (k = 0; k < actualDeleteCount; k++) {
2750 from = actualStart + k;
2751 if (from in O) createProperty(A, k, O[from]);
2752 }
2753 A.length = actualDeleteCount;
2754 if (insertCount < actualDeleteCount) {
2755 for (k = actualStart; k < len - actualDeleteCount; k++) {
2756 from = k + actualDeleteCount;
2757 to = k + insertCount;
2758 if (from in O) O[to] = O[from];
2759 else delete O[to];
2760 }
2761 for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
2762 } else if (insertCount > actualDeleteCount) {
2763 for (k = len - actualDeleteCount; k > actualStart; k--) {
2764 from = k + actualDeleteCount - 1;
2765 to = k + insertCount - 1;
2766 if (from in O) O[to] = O[from];
2767 else delete O[to];
2768 }
2769 }
2770 for (k = 0; k < insertCount; k++) {
2771 O[k + actualStart] = arguments[k + 2];
2772 }
2773 O.length = len - actualDeleteCount + insertCount;
2774 return A;
2775 }
2776});
2777
2778
2779/***/ }),
2780
2781/***/ "a4b4":
2782/***/ (function(module, exports, __webpack_require__) {
2783
2784var userAgent = __webpack_require__("342f");
2785
2786module.exports = /web0s(?!.*chrome)/i.test(userAgent);
2787
2788
2789/***/ }),
2790
2791/***/ "a4d3":
2792/***/ (function(module, exports, __webpack_require__) {
2793
2794"use strict";
2795
2796var $ = __webpack_require__("23e7");
2797var global = __webpack_require__("da84");
2798var getBuiltIn = __webpack_require__("d066");
2799var IS_PURE = __webpack_require__("c430");
2800var DESCRIPTORS = __webpack_require__("83ab");
2801var NATIVE_SYMBOL = __webpack_require__("4930");
2802var USE_SYMBOL_AS_UID = __webpack_require__("fdbf");
2803var fails = __webpack_require__("d039");
2804var has = __webpack_require__("5135");
2805var isArray = __webpack_require__("e8b5");
2806var isObject = __webpack_require__("861d");
2807var anObject = __webpack_require__("825a");
2808var toObject = __webpack_require__("7b0b");
2809var toIndexedObject = __webpack_require__("fc6a");
2810var toPrimitive = __webpack_require__("c04e");
2811var createPropertyDescriptor = __webpack_require__("5c6c");
2812var nativeObjectCreate = __webpack_require__("7c73");
2813var objectKeys = __webpack_require__("df75");
2814var getOwnPropertyNamesModule = __webpack_require__("241c");
2815var getOwnPropertyNamesExternal = __webpack_require__("057f");
2816var getOwnPropertySymbolsModule = __webpack_require__("7418");
2817var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
2818var definePropertyModule = __webpack_require__("9bf2");
2819var propertyIsEnumerableModule = __webpack_require__("d1e7");
2820var createNonEnumerableProperty = __webpack_require__("9112");
2821var redefine = __webpack_require__("6eeb");
2822var shared = __webpack_require__("5692");
2823var sharedKey = __webpack_require__("f772");
2824var hiddenKeys = __webpack_require__("d012");
2825var uid = __webpack_require__("90e3");
2826var wellKnownSymbol = __webpack_require__("b622");
2827var wrappedWellKnownSymbolModule = __webpack_require__("e538");
2828var defineWellKnownSymbol = __webpack_require__("746f");
2829var setToStringTag = __webpack_require__("d44e");
2830var InternalStateModule = __webpack_require__("69f3");
2831var $forEach = __webpack_require__("b727").forEach;
2832
2833var HIDDEN = sharedKey('hidden');
2834var SYMBOL = 'Symbol';
2835var PROTOTYPE = 'prototype';
2836var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
2837var setInternalState = InternalStateModule.set;
2838var getInternalState = InternalStateModule.getterFor(SYMBOL);
2839var ObjectPrototype = Object[PROTOTYPE];
2840var $Symbol = global.Symbol;
2841var $stringify = getBuiltIn('JSON', 'stringify');
2842var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
2843var nativeDefineProperty = definePropertyModule.f;
2844var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
2845var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
2846var AllSymbols = shared('symbols');
2847var ObjectPrototypeSymbols = shared('op-symbols');
2848var StringToSymbolRegistry = shared('string-to-symbol-registry');
2849var SymbolToStringRegistry = shared('symbol-to-string-registry');
2850var WellKnownSymbolsStore = shared('wks');
2851var QObject = global.QObject;
2852// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
2853var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
2854
2855// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
2856var setSymbolDescriptor = DESCRIPTORS && fails(function () {
2857 return nativeObjectCreate(nativeDefineProperty({}, 'a', {
2858 get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
2859 })).a != 7;
2860}) ? function (O, P, Attributes) {
2861 var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
2862 if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
2863 nativeDefineProperty(O, P, Attributes);
2864 if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
2865 nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
2866 }
2867} : nativeDefineProperty;
2868
2869var wrap = function (tag, description) {
2870 var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);
2871 setInternalState(symbol, {
2872 type: SYMBOL,
2873 tag: tag,
2874 description: description
2875 });
2876 if (!DESCRIPTORS) symbol.description = description;
2877 return symbol;
2878};
2879
2880var isSymbol = USE_SYMBOL_AS_UID ? function (it) {
2881 return typeof it == 'symbol';
2882} : function (it) {
2883 return Object(it) instanceof $Symbol;
2884};
2885
2886var $defineProperty = function defineProperty(O, P, Attributes) {
2887 if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
2888 anObject(O);
2889 var key = toPrimitive(P, true);
2890 anObject(Attributes);
2891 if (has(AllSymbols, key)) {
2892 if (!Attributes.enumerable) {
2893 if (!has(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
2894 O[HIDDEN][key] = true;
2895 } else {
2896 if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
2897 Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
2898 } return setSymbolDescriptor(O, key, Attributes);
2899 } return nativeDefineProperty(O, key, Attributes);
2900};
2901
2902var $defineProperties = function defineProperties(O, Properties) {
2903 anObject(O);
2904 var properties = toIndexedObject(Properties);
2905 var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
2906 $forEach(keys, function (key) {
2907 if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
2908 });
2909 return O;
2910};
2911
2912var $create = function create(O, Properties) {
2913 return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
2914};
2915
2916var $propertyIsEnumerable = function propertyIsEnumerable(V) {
2917 var P = toPrimitive(V, true);
2918 var enumerable = nativePropertyIsEnumerable.call(this, P);
2919 if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
2920 return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
2921};
2922
2923var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
2924 var it = toIndexedObject(O);
2925 var key = toPrimitive(P, true);
2926 if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
2927 var descriptor = nativeGetOwnPropertyDescriptor(it, key);
2928 if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
2929 descriptor.enumerable = true;
2930 }
2931 return descriptor;
2932};
2933
2934var $getOwnPropertyNames = function getOwnPropertyNames(O) {
2935 var names = nativeGetOwnPropertyNames(toIndexedObject(O));
2936 var result = [];
2937 $forEach(names, function (key) {
2938 if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
2939 });
2940 return result;
2941};
2942
2943var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
2944 var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
2945 var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
2946 var result = [];
2947 $forEach(names, function (key) {
2948 if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
2949 result.push(AllSymbols[key]);
2950 }
2951 });
2952 return result;
2953};
2954
2955// `Symbol` constructor
2956// https://tc39.es/ecma262/#sec-symbol-constructor
2957if (!NATIVE_SYMBOL) {
2958 $Symbol = function Symbol() {
2959 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
2960 var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
2961 var tag = uid(description);
2962 var setter = function (value) {
2963 if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
2964 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
2965 setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
2966 };
2967 if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
2968 return wrap(tag, description);
2969 };
2970
2971 redefine($Symbol[PROTOTYPE], 'toString', function toString() {
2972 return getInternalState(this).tag;
2973 });
2974
2975 redefine($Symbol, 'withoutSetter', function (description) {
2976 return wrap(uid(description), description);
2977 });
2978
2979 propertyIsEnumerableModule.f = $propertyIsEnumerable;
2980 definePropertyModule.f = $defineProperty;
2981 getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
2982 getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
2983 getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
2984
2985 wrappedWellKnownSymbolModule.f = function (name) {
2986 return wrap(wellKnownSymbol(name), name);
2987 };
2988
2989 if (DESCRIPTORS) {
2990 // https://github.com/tc39/proposal-Symbol-description
2991 nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
2992 configurable: true,
2993 get: function description() {
2994 return getInternalState(this).description;
2995 }
2996 });
2997 if (!IS_PURE) {
2998 redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
2999 }
3000 }
3001}
3002
3003$({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
3004 Symbol: $Symbol
3005});
3006
3007$forEach(objectKeys(WellKnownSymbolsStore), function (name) {
3008 defineWellKnownSymbol(name);
3009});
3010
3011$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
3012 // `Symbol.for` method
3013 // https://tc39.es/ecma262/#sec-symbol.for
3014 'for': function (key) {
3015 var string = String(key);
3016 if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
3017 var symbol = $Symbol(string);
3018 StringToSymbolRegistry[string] = symbol;
3019 SymbolToStringRegistry[symbol] = string;
3020 return symbol;
3021 },
3022 // `Symbol.keyFor` method
3023 // https://tc39.es/ecma262/#sec-symbol.keyfor
3024 keyFor: function keyFor(sym) {
3025 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
3026 if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
3027 },
3028 useSetter: function () { USE_SETTER = true; },
3029 useSimple: function () { USE_SETTER = false; }
3030});
3031
3032$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
3033 // `Object.create` method
3034 // https://tc39.es/ecma262/#sec-object.create
3035 create: $create,
3036 // `Object.defineProperty` method
3037 // https://tc39.es/ecma262/#sec-object.defineproperty
3038 defineProperty: $defineProperty,
3039 // `Object.defineProperties` method
3040 // https://tc39.es/ecma262/#sec-object.defineproperties
3041 defineProperties: $defineProperties,
3042 // `Object.getOwnPropertyDescriptor` method
3043 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
3044 getOwnPropertyDescriptor: $getOwnPropertyDescriptor
3045});
3046
3047$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
3048 // `Object.getOwnPropertyNames` method
3049 // https://tc39.es/ecma262/#sec-object.getownpropertynames
3050 getOwnPropertyNames: $getOwnPropertyNames,
3051 // `Object.getOwnPropertySymbols` method
3052 // https://tc39.es/ecma262/#sec-object.getownpropertysymbols
3053 getOwnPropertySymbols: $getOwnPropertySymbols
3054});
3055
3056// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
3057// https://bugs.chromium.org/p/v8/issues/detail?id=3443
3058$({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {
3059 getOwnPropertySymbols: function getOwnPropertySymbols(it) {
3060 return getOwnPropertySymbolsModule.f(toObject(it));
3061 }
3062});
3063
3064// `JSON.stringify` method behavior with symbols
3065// https://tc39.es/ecma262/#sec-json.stringify
3066if ($stringify) {
3067 var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {
3068 var symbol = $Symbol();
3069 // MS Edge converts symbol values to JSON as {}
3070 return $stringify([symbol]) != '[null]'
3071 // WebKit converts symbol values to JSON as null
3072 || $stringify({ a: symbol }) != '{}'
3073 // V8 throws on boxed symbols
3074 || $stringify(Object(symbol)) != '{}';
3075 });
3076
3077 $({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
3078 // eslint-disable-next-line no-unused-vars -- required for `.length`
3079 stringify: function stringify(it, replacer, space) {
3080 var args = [it];
3081 var index = 1;
3082 var $replacer;
3083 while (arguments.length > index) args.push(arguments[index++]);
3084 $replacer = replacer;
3085 if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
3086 if (!isArray(replacer)) replacer = function (key, value) {
3087 if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
3088 if (!isSymbol(value)) return value;
3089 };
3090 args[1] = replacer;
3091 return $stringify.apply(null, args);
3092 }
3093 });
3094}
3095
3096// `Symbol.prototype[@@toPrimitive]` method
3097// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
3098if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
3099 createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
3100}
3101// `Symbol.prototype[@@toStringTag]` property
3102// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
3103setToStringTag($Symbol, SYMBOL);
3104
3105hiddenKeys[HIDDEN] = true;
3106
3107
3108/***/ }),
3109
3110/***/ "a630":
3111/***/ (function(module, exports, __webpack_require__) {
3112
3113var $ = __webpack_require__("23e7");
3114var from = __webpack_require__("4df4");
3115var checkCorrectnessOfIteration = __webpack_require__("1c7e");
3116
3117var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
3118 // eslint-disable-next-line es/no-array-from -- required for testing
3119 Array.from(iterable);
3120});
3121
3122// `Array.from` method
3123// https://tc39.es/ecma262/#sec-array.from
3124$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
3125 from: from
3126});
3127
3128
3129/***/ }),
3130
3131/***/ "a640":
3132/***/ (function(module, exports, __webpack_require__) {
3133
3134"use strict";
3135
3136var fails = __webpack_require__("d039");
3137
3138module.exports = function (METHOD_NAME, argument) {
3139 var method = [][METHOD_NAME];
3140 return !!method && fails(function () {
3141 // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
3142 method.call(null, argument || function () { throw 1; }, 1);
3143 });
3144};
3145
3146
3147/***/ }),
3148
3149/***/ "a691":
3150/***/ (function(module, exports) {
3151
3152var ceil = Math.ceil;
3153var floor = Math.floor;
3154
3155// `ToInteger` abstract operation
3156// https://tc39.es/ecma262/#sec-tointeger
3157module.exports = function (argument) {
3158 return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
3159};
3160
3161
3162/***/ }),
3163
3164/***/ "ac1f":
3165/***/ (function(module, exports, __webpack_require__) {
3166
3167"use strict";
3168
3169var $ = __webpack_require__("23e7");
3170var exec = __webpack_require__("9263");
3171
3172// `RegExp.prototype.exec` method
3173// https://tc39.es/ecma262/#sec-regexp.prototype.exec
3174$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
3175 exec: exec
3176});
3177
3178
3179/***/ }),
3180
3181/***/ "ad6d":
3182/***/ (function(module, exports, __webpack_require__) {
3183
3184"use strict";
3185
3186var anObject = __webpack_require__("825a");
3187
3188// `RegExp.prototype.flags` getter implementation
3189// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
3190module.exports = function () {
3191 var that = anObject(this);
3192 var result = '';
3193 if (that.global) result += 'g';
3194 if (that.ignoreCase) result += 'i';
3195 if (that.multiline) result += 'm';
3196 if (that.dotAll) result += 's';
3197 if (that.unicode) result += 'u';
3198 if (that.sticky) result += 'y';
3199 return result;
3200};
3201
3202
3203/***/ }),
3204
3205/***/ "ae93":
3206/***/ (function(module, exports, __webpack_require__) {
3207
3208"use strict";
3209
3210var fails = __webpack_require__("d039");
3211var getPrototypeOf = __webpack_require__("e163");
3212var createNonEnumerableProperty = __webpack_require__("9112");
3213var has = __webpack_require__("5135");
3214var wellKnownSymbol = __webpack_require__("b622");
3215var IS_PURE = __webpack_require__("c430");
3216
3217var ITERATOR = wellKnownSymbol('iterator');
3218var BUGGY_SAFARI_ITERATORS = false;
3219
3220var returnThis = function () { return this; };
3221
3222// `%IteratorPrototype%` object
3223// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
3224var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
3225
3226/* eslint-disable es/no-array-prototype-keys -- safe */
3227if ([].keys) {
3228 arrayIterator = [].keys();
3229 // Safari 8 has buggy iterators w/o `next`
3230 if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
3231 else {
3232 PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
3233 if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
3234 }
3235}
3236
3237var NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {
3238 var test = {};
3239 // FF44- legacy iterators case
3240 return IteratorPrototype[ITERATOR].call(test) !== test;
3241});
3242
3243if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
3244
3245// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
3246if ((!IS_PURE || NEW_ITERATOR_PROTOTYPE) && !has(IteratorPrototype, ITERATOR)) {
3247 createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
3248}
3249
3250module.exports = {
3251 IteratorPrototype: IteratorPrototype,
3252 BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
3253};
3254
3255
3256/***/ }),
3257
3258/***/ "b041":
3259/***/ (function(module, exports, __webpack_require__) {
3260
3261"use strict";
3262
3263var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
3264var classof = __webpack_require__("f5df");
3265
3266// `Object.prototype.toString` method implementation
3267// https://tc39.es/ecma262/#sec-object.prototype.tostring
3268module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
3269 return '[object ' + classof(this) + ']';
3270};
3271
3272
3273/***/ }),
3274
3275/***/ "b0c0":
3276/***/ (function(module, exports, __webpack_require__) {
3277
3278var DESCRIPTORS = __webpack_require__("83ab");
3279var defineProperty = __webpack_require__("9bf2").f;
3280
3281var FunctionPrototype = Function.prototype;
3282var FunctionPrototypeToString = FunctionPrototype.toString;
3283var nameRE = /^\s*function ([^ (]*)/;
3284var NAME = 'name';
3285
3286// Function instances `.name` property
3287// https://tc39.es/ecma262/#sec-function-instances-name
3288if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
3289 defineProperty(FunctionPrototype, NAME, {
3290 configurable: true,
3291 get: function () {
3292 try {
3293 return FunctionPrototypeToString.call(this).match(nameRE)[1];
3294 } catch (error) {
3295 return '';
3296 }
3297 }
3298 });
3299}
3300
3301
3302/***/ }),
3303
3304/***/ "b575":
3305/***/ (function(module, exports, __webpack_require__) {
3306
3307var global = __webpack_require__("da84");
3308var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
3309var macrotask = __webpack_require__("2cf4").set;
3310var IS_IOS = __webpack_require__("1cdc");
3311var IS_WEBOS_WEBKIT = __webpack_require__("a4b4");
3312var IS_NODE = __webpack_require__("605d");
3313
3314var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
3315var document = global.document;
3316var process = global.process;
3317var Promise = global.Promise;
3318// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
3319var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
3320var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
3321
3322var flush, head, last, notify, toggle, node, promise, then;
3323
3324// modern engines have queueMicrotask method
3325if (!queueMicrotask) {
3326 flush = function () {
3327 var parent, fn;
3328 if (IS_NODE && (parent = process.domain)) parent.exit();
3329 while (head) {
3330 fn = head.fn;
3331 head = head.next;
3332 try {
3333 fn();
3334 } catch (error) {
3335 if (head) notify();
3336 else last = undefined;
3337 throw error;
3338 }
3339 } last = undefined;
3340 if (parent) parent.enter();
3341 };
3342
3343 // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
3344 // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
3345 if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {
3346 toggle = true;
3347 node = document.createTextNode('');
3348 new MutationObserver(flush).observe(node, { characterData: true });
3349 notify = function () {
3350 node.data = toggle = !toggle;
3351 };
3352 // environments with maybe non-completely correct, but existent Promise
3353 } else if (Promise && Promise.resolve) {
3354 // Promise.resolve without an argument throws an error in LG WebOS 2
3355 promise = Promise.resolve(undefined);
3356 then = promise.then;
3357 notify = function () {
3358 then.call(promise, flush);
3359 };
3360 // Node.js without promises
3361 } else if (IS_NODE) {
3362 notify = function () {
3363 process.nextTick(flush);
3364 };
3365 // for other environments - macrotask based on:
3366 // - setImmediate
3367 // - MessageChannel
3368 // - window.postMessag
3369 // - onreadystatechange
3370 // - setTimeout
3371 } else {
3372 notify = function () {
3373 // strange IE + webpack dev server bug - use .call(global)
3374 macrotask.call(global, flush);
3375 };
3376 }
3377}
3378
3379module.exports = queueMicrotask || function (fn) {
3380 var task = { fn: fn, next: undefined };
3381 if (last) last.next = task;
3382 if (!head) {
3383 head = task;
3384 notify();
3385 } last = task;
3386};
3387
3388
3389/***/ }),
3390
3391/***/ "b622":
3392/***/ (function(module, exports, __webpack_require__) {
3393
3394var global = __webpack_require__("da84");
3395var shared = __webpack_require__("5692");
3396var has = __webpack_require__("5135");
3397var uid = __webpack_require__("90e3");
3398var NATIVE_SYMBOL = __webpack_require__("4930");
3399var USE_SYMBOL_AS_UID = __webpack_require__("fdbf");
3400
3401var WellKnownSymbolsStore = shared('wks');
3402var Symbol = global.Symbol;
3403var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
3404
3405module.exports = function (name) {
3406 if (!has(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
3407 if (NATIVE_SYMBOL && has(Symbol, name)) {
3408 WellKnownSymbolsStore[name] = Symbol[name];
3409 } else {
3410 WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
3411 }
3412 } return WellKnownSymbolsStore[name];
3413};
3414
3415
3416/***/ }),
3417
3418/***/ "b64b":
3419/***/ (function(module, exports, __webpack_require__) {
3420
3421var $ = __webpack_require__("23e7");
3422var toObject = __webpack_require__("7b0b");
3423var nativeKeys = __webpack_require__("df75");
3424var fails = __webpack_require__("d039");
3425
3426var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });
3427
3428// `Object.keys` method
3429// https://tc39.es/ecma262/#sec-object.keys
3430$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
3431 keys: function keys(it) {
3432 return nativeKeys(toObject(it));
3433 }
3434});
3435
3436
3437/***/ }),
3438
3439/***/ "b727":
3440/***/ (function(module, exports, __webpack_require__) {
3441
3442var bind = __webpack_require__("0366");
3443var IndexedObject = __webpack_require__("44ad");
3444var toObject = __webpack_require__("7b0b");
3445var toLength = __webpack_require__("50c4");
3446var arraySpeciesCreate = __webpack_require__("65f0");
3447
3448var push = [].push;
3449
3450// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
3451var createMethod = function (TYPE) {
3452 var IS_MAP = TYPE == 1;
3453 var IS_FILTER = TYPE == 2;
3454 var IS_SOME = TYPE == 3;
3455 var IS_EVERY = TYPE == 4;
3456 var IS_FIND_INDEX = TYPE == 6;
3457 var IS_FILTER_OUT = TYPE == 7;
3458 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
3459 return function ($this, callbackfn, that, specificCreate) {
3460 var O = toObject($this);
3461 var self = IndexedObject(O);
3462 var boundFunction = bind(callbackfn, that, 3);
3463 var length = toLength(self.length);
3464 var index = 0;
3465 var create = specificCreate || arraySpeciesCreate;
3466 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
3467 var value, result;
3468 for (;length > index; index++) if (NO_HOLES || index in self) {
3469 value = self[index];
3470 result = boundFunction(value, index, O);
3471 if (TYPE) {
3472 if (IS_MAP) target[index] = result; // map
3473 else if (result) switch (TYPE) {
3474 case 3: return true; // some
3475 case 5: return value; // find
3476 case 6: return index; // findIndex
3477 case 2: push.call(target, value); // filter
3478 } else switch (TYPE) {
3479 case 4: return false; // every
3480 case 7: push.call(target, value); // filterOut
3481 }
3482 }
3483 }
3484 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
3485 };
3486};
3487
3488module.exports = {
3489 // `Array.prototype.forEach` method
3490 // https://tc39.es/ecma262/#sec-array.prototype.foreach
3491 forEach: createMethod(0),
3492 // `Array.prototype.map` method
3493 // https://tc39.es/ecma262/#sec-array.prototype.map
3494 map: createMethod(1),
3495 // `Array.prototype.filter` method
3496 // https://tc39.es/ecma262/#sec-array.prototype.filter
3497 filter: createMethod(2),
3498 // `Array.prototype.some` method
3499 // https://tc39.es/ecma262/#sec-array.prototype.some
3500 some: createMethod(3),
3501 // `Array.prototype.every` method
3502 // https://tc39.es/ecma262/#sec-array.prototype.every
3503 every: createMethod(4),
3504 // `Array.prototype.find` method
3505 // https://tc39.es/ecma262/#sec-array.prototype.find
3506 find: createMethod(5),
3507 // `Array.prototype.findIndex` method
3508 // https://tc39.es/ecma262/#sec-array.prototype.findIndex
3509 findIndex: createMethod(6),
3510 // `Array.prototype.filterOut` method
3511 // https://github.com/tc39/proposal-array-filtering
3512 filterOut: createMethod(7)
3513};
3514
3515
3516/***/ }),
3517
3518/***/ "c04e":
3519/***/ (function(module, exports, __webpack_require__) {
3520
3521var isObject = __webpack_require__("861d");
3522
3523// `ToPrimitive` abstract operation
3524// https://tc39.es/ecma262/#sec-toprimitive
3525// instead of the ES6 spec version, we didn't implement @@toPrimitive case
3526// and the second argument - flag - preferred type is a string
3527module.exports = function (input, PREFERRED_STRING) {
3528 if (!isObject(input)) return input;
3529 var fn, val;
3530 if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
3531 if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
3532 if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
3533 throw TypeError("Can't convert object to primitive value");
3534};
3535
3536
3537/***/ }),
3538
3539/***/ "c430":
3540/***/ (function(module, exports) {
3541
3542module.exports = false;
3543
3544
3545/***/ }),
3546
3547/***/ "c6b6":
3548/***/ (function(module, exports) {
3549
3550var toString = {}.toString;
3551
3552module.exports = function (it) {
3553 return toString.call(it).slice(8, -1);
3554};
3555
3556
3557/***/ }),
3558
3559/***/ "c6cd":
3560/***/ (function(module, exports, __webpack_require__) {
3561
3562var global = __webpack_require__("da84");
3563var setGlobal = __webpack_require__("ce4e");
3564
3565var SHARED = '__core-js_shared__';
3566var store = global[SHARED] || setGlobal(SHARED, {});
3567
3568module.exports = store;
3569
3570
3571/***/ }),
3572
3573/***/ "c8ba":
3574/***/ (function(module, exports) {
3575
3576var g;
3577
3578// This works in non-strict mode
3579g = (function() {
3580 return this;
3581})();
3582
3583try {
3584 // This works if eval is allowed (see CSP)
3585 g = g || new Function("return this")();
3586} catch (e) {
3587 // This works if the window reference is available
3588 if (typeof window === "object") g = window;
3589}
3590
3591// g can still be undefined, but nothing to do about it...
3592// We return undefined, instead of nothing here, so it's
3593// easier to handle this case. if(!global) { ...}
3594
3595module.exports = g;
3596
3597
3598/***/ }),
3599
3600/***/ "ca84":
3601/***/ (function(module, exports, __webpack_require__) {
3602
3603var has = __webpack_require__("5135");
3604var toIndexedObject = __webpack_require__("fc6a");
3605var indexOf = __webpack_require__("4d64").indexOf;
3606var hiddenKeys = __webpack_require__("d012");
3607
3608module.exports = function (object, names) {
3609 var O = toIndexedObject(object);
3610 var i = 0;
3611 var result = [];
3612 var key;
3613 for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
3614 // Don't enum bug & hidden keys
3615 while (names.length > i) if (has(O, key = names[i++])) {
3616 ~indexOf(result, key) || result.push(key);
3617 }
3618 return result;
3619};
3620
3621
3622/***/ }),
3623
3624/***/ "cc12":
3625/***/ (function(module, exports, __webpack_require__) {
3626
3627var global = __webpack_require__("da84");
3628var isObject = __webpack_require__("861d");
3629
3630var document = global.document;
3631// typeof document.createElement is 'object' in old IE
3632var EXISTS = isObject(document) && isObject(document.createElement);
3633
3634module.exports = function (it) {
3635 return EXISTS ? document.createElement(it) : {};
3636};
3637
3638
3639/***/ }),
3640
3641/***/ "cdf9":
3642/***/ (function(module, exports, __webpack_require__) {
3643
3644var anObject = __webpack_require__("825a");
3645var isObject = __webpack_require__("861d");
3646var newPromiseCapability = __webpack_require__("f069");
3647
3648module.exports = function (C, x) {
3649 anObject(C);
3650 if (isObject(x) && x.constructor === C) return x;
3651 var promiseCapability = newPromiseCapability.f(C);
3652 var resolve = promiseCapability.resolve;
3653 resolve(x);
3654 return promiseCapability.promise;
3655};
3656
3657
3658/***/ }),
3659
3660/***/ "ce4e":
3661/***/ (function(module, exports, __webpack_require__) {
3662
3663var global = __webpack_require__("da84");
3664var createNonEnumerableProperty = __webpack_require__("9112");
3665
3666module.exports = function (key, value) {
3667 try {
3668 createNonEnumerableProperty(global, key, value);
3669 } catch (error) {
3670 global[key] = value;
3671 } return value;
3672};
3673
3674
3675/***/ }),
3676
3677/***/ "d012":
3678/***/ (function(module, exports) {
3679
3680module.exports = {};
3681
3682
3683/***/ }),
3684
3685/***/ "d039":
3686/***/ (function(module, exports) {
3687
3688module.exports = function (exec) {
3689 try {
3690 return !!exec();
3691 } catch (error) {
3692 return true;
3693 }
3694};
3695
3696
3697/***/ }),
3698
3699/***/ "d066":
3700/***/ (function(module, exports, __webpack_require__) {
3701
3702var path = __webpack_require__("428f");
3703var global = __webpack_require__("da84");
3704
3705var aFunction = function (variable) {
3706 return typeof variable == 'function' ? variable : undefined;
3707};
3708
3709module.exports = function (namespace, method) {
3710 return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
3711 : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
3712};
3713
3714
3715/***/ }),
3716
3717/***/ "d1e7":
3718/***/ (function(module, exports, __webpack_require__) {
3719
3720"use strict";
3721
3722var $propertyIsEnumerable = {}.propertyIsEnumerable;
3723// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
3724var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
3725
3726// Nashorn ~ JDK8 bug
3727var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
3728
3729// `Object.prototype.propertyIsEnumerable` method implementation
3730// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
3731exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
3732 var descriptor = getOwnPropertyDescriptor(this, V);
3733 return !!descriptor && descriptor.enumerable;
3734} : $propertyIsEnumerable;
3735
3736
3737/***/ }),
3738
3739/***/ "d28b":
3740/***/ (function(module, exports, __webpack_require__) {
3741
3742var defineWellKnownSymbol = __webpack_require__("746f");
3743
3744// `Symbol.iterator` well-known symbol
3745// https://tc39.es/ecma262/#sec-symbol.iterator
3746defineWellKnownSymbol('iterator');
3747
3748
3749/***/ }),
3750
3751/***/ "d2bb":
3752/***/ (function(module, exports, __webpack_require__) {
3753
3754/* eslint-disable no-proto -- safe */
3755var anObject = __webpack_require__("825a");
3756var aPossiblePrototype = __webpack_require__("3bbe");
3757
3758// `Object.setPrototypeOf` method
3759// https://tc39.es/ecma262/#sec-object.setprototypeof
3760// Works with __proto__ only. Old v8 can't work with null proto objects.
3761// eslint-disable-next-line es/no-object-setprototypeof -- safe
3762module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
3763 var CORRECT_SETTER = false;
3764 var test = {};
3765 var setter;
3766 try {
3767 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
3768 setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
3769 setter.call(test, []);
3770 CORRECT_SETTER = test instanceof Array;
3771 } catch (error) { /* empty */ }
3772 return function setPrototypeOf(O, proto) {
3773 anObject(O);
3774 aPossiblePrototype(proto);
3775 if (CORRECT_SETTER) setter.call(O, proto);
3776 else O.__proto__ = proto;
3777 return O;
3778 };
3779}() : undefined);
3780
3781
3782/***/ }),
3783
3784/***/ "d3b7":
3785/***/ (function(module, exports, __webpack_require__) {
3786
3787var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
3788var redefine = __webpack_require__("6eeb");
3789var toString = __webpack_require__("b041");
3790
3791// `Object.prototype.toString` method
3792// https://tc39.es/ecma262/#sec-object.prototype.tostring
3793if (!TO_STRING_TAG_SUPPORT) {
3794 redefine(Object.prototype, 'toString', toString, { unsafe: true });
3795}
3796
3797
3798/***/ }),
3799
3800/***/ "d44e":
3801/***/ (function(module, exports, __webpack_require__) {
3802
3803var defineProperty = __webpack_require__("9bf2").f;
3804var has = __webpack_require__("5135");
3805var wellKnownSymbol = __webpack_require__("b622");
3806
3807var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3808
3809module.exports = function (it, TAG, STATIC) {
3810 if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
3811 defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
3812 }
3813};
3814
3815
3816/***/ }),
3817
3818/***/ "d784":
3819/***/ (function(module, exports, __webpack_require__) {
3820
3821"use strict";
3822
3823// TODO: Remove from `core-js@4` since it's moved to entry points
3824__webpack_require__("ac1f");
3825var redefine = __webpack_require__("6eeb");
3826var fails = __webpack_require__("d039");
3827var wellKnownSymbol = __webpack_require__("b622");
3828var createNonEnumerableProperty = __webpack_require__("9112");
3829
3830var SPECIES = wellKnownSymbol('species');
3831
3832var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
3833 // #replace needs built-in support for named groups.
3834 // #match works fine because it just return the exec results, even if it has
3835 // a "grops" property.
3836 var re = /./;
3837 re.exec = function () {
3838 var result = [];
3839 result.groups = { a: '7' };
3840 return result;
3841 };
3842 return ''.replace(re, '$<a>') !== '7';
3843});
3844
3845// IE <= 11 replaces $0 with the whole match, as if it was $&
3846// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
3847var REPLACE_KEEPS_$0 = (function () {
3848 // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
3849 return 'a'.replace(/./, '$0') === '$0';
3850})();
3851
3852var REPLACE = wellKnownSymbol('replace');
3853// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
3854var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
3855 if (/./[REPLACE]) {
3856 return /./[REPLACE]('a', '$0') === '';
3857 }
3858 return false;
3859})();
3860
3861// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
3862// Weex JS has frozen built-in prototypes, so use try / catch wrapper
3863var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
3864 // eslint-disable-next-line regexp/no-empty-group -- required for testing
3865 var re = /(?:)/;
3866 var originalExec = re.exec;
3867 re.exec = function () { return originalExec.apply(this, arguments); };
3868 var result = 'ab'.split(re);
3869 return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
3870});
3871
3872module.exports = function (KEY, length, exec, sham) {
3873 var SYMBOL = wellKnownSymbol(KEY);
3874
3875 var DELEGATES_TO_SYMBOL = !fails(function () {
3876 // String methods call symbol-named RegEp methods
3877 var O = {};
3878 O[SYMBOL] = function () { return 7; };
3879 return ''[KEY](O) != 7;
3880 });
3881
3882 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
3883 // Symbol-named RegExp methods call .exec
3884 var execCalled = false;
3885 var re = /a/;
3886
3887 if (KEY === 'split') {
3888 // We can't use real regex here since it causes deoptimization
3889 // and serious performance degradation in V8
3890 // https://github.com/zloirock/core-js/issues/306
3891 re = {};
3892 // RegExp[@@split] doesn't call the regex's exec method, but first creates
3893 // a new one. We need to return the patched regex when creating the new one.
3894 re.constructor = {};
3895 re.constructor[SPECIES] = function () { return re; };
3896 re.flags = '';
3897 re[SYMBOL] = /./[SYMBOL];
3898 }
3899
3900 re.exec = function () { execCalled = true; return null; };
3901
3902 re[SYMBOL]('');
3903 return !execCalled;
3904 });
3905
3906 if (
3907 !DELEGATES_TO_SYMBOL ||
3908 !DELEGATES_TO_EXEC ||
3909 (KEY === 'replace' && !(
3910 REPLACE_SUPPORTS_NAMED_GROUPS &&
3911 REPLACE_KEEPS_$0 &&
3912 !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
3913 )) ||
3914 (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
3915 ) {
3916 var nativeRegExpMethod = /./[SYMBOL];
3917 var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
3918 if (regexp.exec === RegExp.prototype.exec) {
3919 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
3920 // The native String method already delegates to @@method (this
3921 // polyfilled function), leasing to infinite recursion.
3922 // We avoid it by directly calling the native @@method method.
3923 return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
3924 }
3925 return { done: true, value: nativeMethod.call(str, regexp, arg2) };
3926 }
3927 return { done: false };
3928 }, {
3929 REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
3930 REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
3931 });
3932 var stringMethod = methods[0];
3933 var regexMethod = methods[1];
3934
3935 redefine(String.prototype, KEY, stringMethod);
3936 redefine(RegExp.prototype, SYMBOL, length == 2
3937 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
3938 // 21.2.5.11 RegExp.prototype[@@split](string, limit)
3939 ? function (string, arg) { return regexMethod.call(string, this, arg); }
3940 // 21.2.5.6 RegExp.prototype[@@match](string)
3941 // 21.2.5.9 RegExp.prototype[@@search](string)
3942 : function (string) { return regexMethod.call(string, this); }
3943 );
3944 }
3945
3946 if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
3947};
3948
3949
3950/***/ }),
3951
3952/***/ "d81d":
3953/***/ (function(module, exports, __webpack_require__) {
3954
3955"use strict";
3956
3957var $ = __webpack_require__("23e7");
3958var $map = __webpack_require__("b727").map;
3959var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
3960
3961var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
3962
3963// `Array.prototype.map` method
3964// https://tc39.es/ecma262/#sec-array.prototype.map
3965// with adding support of @@species
3966$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
3967 map: function map(callbackfn /* , thisArg */) {
3968 return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
3969 }
3970});
3971
3972
3973/***/ }),
3974
3975/***/ "da84":
3976/***/ (function(module, exports, __webpack_require__) {
3977
3978/* WEBPACK VAR INJECTION */(function(global) {var check = function (it) {
3979 return it && it.Math == Math && it;
3980};
3981
3982// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
3983module.exports =
3984 // eslint-disable-next-line es/no-global-this -- safe
3985 check(typeof globalThis == 'object' && globalThis) ||
3986 check(typeof window == 'object' && window) ||
3987 // eslint-disable-next-line no-restricted-globals -- safe
3988 check(typeof self == 'object' && self) ||
3989 check(typeof global == 'object' && global) ||
3990 // eslint-disable-next-line no-new-func -- fallback
3991 (function () { return this; })() || Function('return this')();
3992
3993/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
3994
3995/***/ }),
3996
3997/***/ "dbb4":
3998/***/ (function(module, exports, __webpack_require__) {
3999
4000var $ = __webpack_require__("23e7");
4001var DESCRIPTORS = __webpack_require__("83ab");
4002var ownKeys = __webpack_require__("56ef");
4003var toIndexedObject = __webpack_require__("fc6a");
4004var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
4005var createProperty = __webpack_require__("8418");
4006
4007// `Object.getOwnPropertyDescriptors` method
4008// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
4009$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
4010 getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
4011 var O = toIndexedObject(object);
4012 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
4013 var keys = ownKeys(O);
4014 var result = {};
4015 var index = 0;
4016 var key, descriptor;
4017 while (keys.length > index) {
4018 descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);
4019 if (descriptor !== undefined) createProperty(result, key, descriptor);
4020 }
4021 return result;
4022 }
4023});
4024
4025
4026/***/ }),
4027
4028/***/ "ddb0":
4029/***/ (function(module, exports, __webpack_require__) {
4030
4031var global = __webpack_require__("da84");
4032var DOMIterables = __webpack_require__("fdbc");
4033var ArrayIteratorMethods = __webpack_require__("e260");
4034var createNonEnumerableProperty = __webpack_require__("9112");
4035var wellKnownSymbol = __webpack_require__("b622");
4036
4037var ITERATOR = wellKnownSymbol('iterator');
4038var TO_STRING_TAG = wellKnownSymbol('toStringTag');
4039var ArrayValues = ArrayIteratorMethods.values;
4040
4041for (var COLLECTION_NAME in DOMIterables) {
4042 var Collection = global[COLLECTION_NAME];
4043 var CollectionPrototype = Collection && Collection.prototype;
4044 if (CollectionPrototype) {
4045 // some Chrome versions have non-configurable methods on DOMTokenList
4046 if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
4047 createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
4048 } catch (error) {
4049 CollectionPrototype[ITERATOR] = ArrayValues;
4050 }
4051 if (!CollectionPrototype[TO_STRING_TAG]) {
4052 createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
4053 }
4054 if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
4055 // some Chrome versions have non-configurable methods on DOMTokenList
4056 if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
4057 createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
4058 } catch (error) {
4059 CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
4060 }
4061 }
4062 }
4063}
4064
4065
4066/***/ }),
4067
4068/***/ "df75":
4069/***/ (function(module, exports, __webpack_require__) {
4070
4071var internalObjectKeys = __webpack_require__("ca84");
4072var enumBugKeys = __webpack_require__("7839");
4073
4074// `Object.keys` method
4075// https://tc39.es/ecma262/#sec-object.keys
4076// eslint-disable-next-line es/no-object-keys -- safe
4077module.exports = Object.keys || function keys(O) {
4078 return internalObjectKeys(O, enumBugKeys);
4079};
4080
4081
4082/***/ }),
4083
4084/***/ "e01a":
4085/***/ (function(module, exports, __webpack_require__) {
4086
4087"use strict";
4088// `Symbol.prototype.description` getter
4089// https://tc39.es/ecma262/#sec-symbol.prototype.description
4090
4091var $ = __webpack_require__("23e7");
4092var DESCRIPTORS = __webpack_require__("83ab");
4093var global = __webpack_require__("da84");
4094var has = __webpack_require__("5135");
4095var isObject = __webpack_require__("861d");
4096var defineProperty = __webpack_require__("9bf2").f;
4097var copyConstructorProperties = __webpack_require__("e893");
4098
4099var NativeSymbol = global.Symbol;
4100
4101if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
4102 // Safari 12 bug
4103 NativeSymbol().description !== undefined
4104)) {
4105 var EmptyStringDescriptionStore = {};
4106 // wrap Symbol constructor for correct work with undefined description
4107 var SymbolWrapper = function Symbol() {
4108 var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
4109 var result = this instanceof SymbolWrapper
4110 ? new NativeSymbol(description)
4111 // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
4112 : description === undefined ? NativeSymbol() : NativeSymbol(description);
4113 if (description === '') EmptyStringDescriptionStore[result] = true;
4114 return result;
4115 };
4116 copyConstructorProperties(SymbolWrapper, NativeSymbol);
4117 var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
4118 symbolPrototype.constructor = SymbolWrapper;
4119
4120 var symbolToString = symbolPrototype.toString;
4121 var native = String(NativeSymbol('test')) == 'Symbol(test)';
4122 var regexp = /^Symbol\((.*)\)[^)]+$/;
4123 defineProperty(symbolPrototype, 'description', {
4124 configurable: true,
4125 get: function description() {
4126 var symbol = isObject(this) ? this.valueOf() : this;
4127 var string = symbolToString.call(symbol);
4128 if (has(EmptyStringDescriptionStore, symbol)) return '';
4129 var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
4130 return desc === '' ? undefined : desc;
4131 }
4132 });
4133
4134 $({ global: true, forced: true }, {
4135 Symbol: SymbolWrapper
4136 });
4137}
4138
4139
4140/***/ }),
4141
4142/***/ "e163":
4143/***/ (function(module, exports, __webpack_require__) {
4144
4145var has = __webpack_require__("5135");
4146var toObject = __webpack_require__("7b0b");
4147var sharedKey = __webpack_require__("f772");
4148var CORRECT_PROTOTYPE_GETTER = __webpack_require__("e177");
4149
4150var IE_PROTO = sharedKey('IE_PROTO');
4151var ObjectPrototype = Object.prototype;
4152
4153// `Object.getPrototypeOf` method
4154// https://tc39.es/ecma262/#sec-object.getprototypeof
4155// eslint-disable-next-line es/no-object-getprototypeof -- safe
4156module.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
4157 O = toObject(O);
4158 if (has(O, IE_PROTO)) return O[IE_PROTO];
4159 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
4160 return O.constructor.prototype;
4161 } return O instanceof Object ? ObjectPrototype : null;
4162};
4163
4164
4165/***/ }),
4166
4167/***/ "e177":
4168/***/ (function(module, exports, __webpack_require__) {
4169
4170var fails = __webpack_require__("d039");
4171
4172module.exports = !fails(function () {
4173 function F() { /* empty */ }
4174 F.prototype.constructor = null;
4175 // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
4176 return Object.getPrototypeOf(new F()) !== F.prototype;
4177});
4178
4179
4180/***/ }),
4181
4182/***/ "e260":
4183/***/ (function(module, exports, __webpack_require__) {
4184
4185"use strict";
4186
4187var toIndexedObject = __webpack_require__("fc6a");
4188var addToUnscopables = __webpack_require__("44d2");
4189var Iterators = __webpack_require__("3f8c");
4190var InternalStateModule = __webpack_require__("69f3");
4191var defineIterator = __webpack_require__("7dd0");
4192
4193var ARRAY_ITERATOR = 'Array Iterator';
4194var setInternalState = InternalStateModule.set;
4195var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
4196
4197// `Array.prototype.entries` method
4198// https://tc39.es/ecma262/#sec-array.prototype.entries
4199// `Array.prototype.keys` method
4200// https://tc39.es/ecma262/#sec-array.prototype.keys
4201// `Array.prototype.values` method
4202// https://tc39.es/ecma262/#sec-array.prototype.values
4203// `Array.prototype[@@iterator]` method
4204// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
4205// `CreateArrayIterator` internal method
4206// https://tc39.es/ecma262/#sec-createarrayiterator
4207module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
4208 setInternalState(this, {
4209 type: ARRAY_ITERATOR,
4210 target: toIndexedObject(iterated), // target
4211 index: 0, // next index
4212 kind: kind // kind
4213 });
4214// `%ArrayIteratorPrototype%.next` method
4215// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
4216}, function () {
4217 var state = getInternalState(this);
4218 var target = state.target;
4219 var kind = state.kind;
4220 var index = state.index++;
4221 if (!target || index >= target.length) {
4222 state.target = undefined;
4223 return { value: undefined, done: true };
4224 }
4225 if (kind == 'keys') return { value: index, done: false };
4226 if (kind == 'values') return { value: target[index], done: false };
4227 return { value: [index, target[index]], done: false };
4228}, 'values');
4229
4230// argumentsList[@@iterator] is %ArrayProto_values%
4231// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
4232// https://tc39.es/ecma262/#sec-createmappedargumentsobject
4233Iterators.Arguments = Iterators.Array;
4234
4235// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
4236addToUnscopables('keys');
4237addToUnscopables('values');
4238addToUnscopables('entries');
4239
4240
4241/***/ }),
4242
4243/***/ "e2cc":
4244/***/ (function(module, exports, __webpack_require__) {
4245
4246var redefine = __webpack_require__("6eeb");
4247
4248module.exports = function (target, src, options) {
4249 for (var key in src) redefine(target, key, src[key], options);
4250 return target;
4251};
4252
4253
4254/***/ }),
4255
4256/***/ "e439":
4257/***/ (function(module, exports, __webpack_require__) {
4258
4259var $ = __webpack_require__("23e7");
4260var fails = __webpack_require__("d039");
4261var toIndexedObject = __webpack_require__("fc6a");
4262var nativeGetOwnPropertyDescriptor = __webpack_require__("06cf").f;
4263var DESCRIPTORS = __webpack_require__("83ab");
4264
4265var FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });
4266var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;
4267
4268// `Object.getOwnPropertyDescriptor` method
4269// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
4270$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
4271 getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
4272 return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
4273 }
4274});
4275
4276
4277/***/ }),
4278
4279/***/ "e538":
4280/***/ (function(module, exports, __webpack_require__) {
4281
4282var wellKnownSymbol = __webpack_require__("b622");
4283
4284exports.f = wellKnownSymbol;
4285
4286
4287/***/ }),
4288
4289/***/ "e667":
4290/***/ (function(module, exports) {
4291
4292module.exports = function (exec) {
4293 try {
4294 return { error: false, value: exec() };
4295 } catch (error) {
4296 return { error: true, value: error };
4297 }
4298};
4299
4300
4301/***/ }),
4302
4303/***/ "e6cf":
4304/***/ (function(module, exports, __webpack_require__) {
4305
4306"use strict";
4307
4308var $ = __webpack_require__("23e7");
4309var IS_PURE = __webpack_require__("c430");
4310var global = __webpack_require__("da84");
4311var getBuiltIn = __webpack_require__("d066");
4312var NativePromise = __webpack_require__("fea9");
4313var redefine = __webpack_require__("6eeb");
4314var redefineAll = __webpack_require__("e2cc");
4315var setToStringTag = __webpack_require__("d44e");
4316var setSpecies = __webpack_require__("2626");
4317var isObject = __webpack_require__("861d");
4318var aFunction = __webpack_require__("1c0b");
4319var anInstance = __webpack_require__("19aa");
4320var inspectSource = __webpack_require__("8925");
4321var iterate = __webpack_require__("2266");
4322var checkCorrectnessOfIteration = __webpack_require__("1c7e");
4323var speciesConstructor = __webpack_require__("4840");
4324var task = __webpack_require__("2cf4").set;
4325var microtask = __webpack_require__("b575");
4326var promiseResolve = __webpack_require__("cdf9");
4327var hostReportErrors = __webpack_require__("44de");
4328var newPromiseCapabilityModule = __webpack_require__("f069");
4329var perform = __webpack_require__("e667");
4330var InternalStateModule = __webpack_require__("69f3");
4331var isForced = __webpack_require__("94ca");
4332var wellKnownSymbol = __webpack_require__("b622");
4333var IS_NODE = __webpack_require__("605d");
4334var V8_VERSION = __webpack_require__("2d00");
4335
4336var SPECIES = wellKnownSymbol('species');
4337var PROMISE = 'Promise';
4338var getInternalState = InternalStateModule.get;
4339var setInternalState = InternalStateModule.set;
4340var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
4341var PromiseConstructor = NativePromise;
4342var TypeError = global.TypeError;
4343var document = global.document;
4344var process = global.process;
4345var $fetch = getBuiltIn('fetch');
4346var newPromiseCapability = newPromiseCapabilityModule.f;
4347var newGenericPromiseCapability = newPromiseCapability;
4348var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
4349var NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function';
4350var UNHANDLED_REJECTION = 'unhandledrejection';
4351var REJECTION_HANDLED = 'rejectionhandled';
4352var PENDING = 0;
4353var FULFILLED = 1;
4354var REJECTED = 2;
4355var HANDLED = 1;
4356var UNHANDLED = 2;
4357var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
4358
4359var FORCED = isForced(PROMISE, function () {
4360 var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
4361 if (!GLOBAL_CORE_JS_PROMISE) {
4362 // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
4363 // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
4364 // We can't detect it synchronously, so just check versions
4365 if (V8_VERSION === 66) return true;
4366 // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
4367 if (!IS_NODE && !NATIVE_REJECTION_EVENT) return true;
4368 }
4369 // We need Promise#finally in the pure version for preventing prototype pollution
4370 if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
4371 // We can't use @@species feature detection in V8 since it causes
4372 // deoptimization and performance degradation
4373 // https://github.com/zloirock/core-js/issues/679
4374 if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
4375 // Detect correctness of subclassing with @@species support
4376 var promise = PromiseConstructor.resolve(1);
4377 var FakePromise = function (exec) {
4378 exec(function () { /* empty */ }, function () { /* empty */ });
4379 };
4380 var constructor = promise.constructor = {};
4381 constructor[SPECIES] = FakePromise;
4382 return !(promise.then(function () { /* empty */ }) instanceof FakePromise);
4383});
4384
4385var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
4386 PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
4387});
4388
4389// helpers
4390var isThenable = function (it) {
4391 var then;
4392 return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
4393};
4394
4395var notify = function (state, isReject) {
4396 if (state.notified) return;
4397 state.notified = true;
4398 var chain = state.reactions;
4399 microtask(function () {
4400 var value = state.value;
4401 var ok = state.state == FULFILLED;
4402 var index = 0;
4403 // variable length - can't use forEach
4404 while (chain.length > index) {
4405 var reaction = chain[index++];
4406 var handler = ok ? reaction.ok : reaction.fail;
4407 var resolve = reaction.resolve;
4408 var reject = reaction.reject;
4409 var domain = reaction.domain;
4410 var result, then, exited;
4411 try {
4412 if (handler) {
4413 if (!ok) {
4414 if (state.rejection === UNHANDLED) onHandleUnhandled(state);
4415 state.rejection = HANDLED;
4416 }
4417 if (handler === true) result = value;
4418 else {
4419 if (domain) domain.enter();
4420 result = handler(value); // can throw
4421 if (domain) {
4422 domain.exit();
4423 exited = true;
4424 }
4425 }
4426 if (result === reaction.promise) {
4427 reject(TypeError('Promise-chain cycle'));
4428 } else if (then = isThenable(result)) {
4429 then.call(result, resolve, reject);
4430 } else resolve(result);
4431 } else reject(value);
4432 } catch (error) {
4433 if (domain && !exited) domain.exit();
4434 reject(error);
4435 }
4436 }
4437 state.reactions = [];
4438 state.notified = false;
4439 if (isReject && !state.rejection) onUnhandled(state);
4440 });
4441};
4442
4443var dispatchEvent = function (name, promise, reason) {
4444 var event, handler;
4445 if (DISPATCH_EVENT) {
4446 event = document.createEvent('Event');
4447 event.promise = promise;
4448 event.reason = reason;
4449 event.initEvent(name, false, true);
4450 global.dispatchEvent(event);
4451 } else event = { promise: promise, reason: reason };
4452 if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
4453 else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
4454};
4455
4456var onUnhandled = function (state) {
4457 task.call(global, function () {
4458 var promise = state.facade;
4459 var value = state.value;
4460 var IS_UNHANDLED = isUnhandled(state);
4461 var result;
4462 if (IS_UNHANDLED) {
4463 result = perform(function () {
4464 if (IS_NODE) {
4465 process.emit('unhandledRejection', value, promise);
4466 } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
4467 });
4468 // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
4469 state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
4470 if (result.error) throw result.value;
4471 }
4472 });
4473};
4474
4475var isUnhandled = function (state) {
4476 return state.rejection !== HANDLED && !state.parent;
4477};
4478
4479var onHandleUnhandled = function (state) {
4480 task.call(global, function () {
4481 var promise = state.facade;
4482 if (IS_NODE) {
4483 process.emit('rejectionHandled', promise);
4484 } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
4485 });
4486};
4487
4488var bind = function (fn, state, unwrap) {
4489 return function (value) {
4490 fn(state, value, unwrap);
4491 };
4492};
4493
4494var internalReject = function (state, value, unwrap) {
4495 if (state.done) return;
4496 state.done = true;
4497 if (unwrap) state = unwrap;
4498 state.value = value;
4499 state.state = REJECTED;
4500 notify(state, true);
4501};
4502
4503var internalResolve = function (state, value, unwrap) {
4504 if (state.done) return;
4505 state.done = true;
4506 if (unwrap) state = unwrap;
4507 try {
4508 if (state.facade === value) throw TypeError("Promise can't be resolved itself");
4509 var then = isThenable(value);
4510 if (then) {
4511 microtask(function () {
4512 var wrapper = { done: false };
4513 try {
4514 then.call(value,
4515 bind(internalResolve, wrapper, state),
4516 bind(internalReject, wrapper, state)
4517 );
4518 } catch (error) {
4519 internalReject(wrapper, error, state);
4520 }
4521 });
4522 } else {
4523 state.value = value;
4524 state.state = FULFILLED;
4525 notify(state, false);
4526 }
4527 } catch (error) {
4528 internalReject({ done: false }, error, state);
4529 }
4530};
4531
4532// constructor polyfill
4533if (FORCED) {
4534 // 25.4.3.1 Promise(executor)
4535 PromiseConstructor = function Promise(executor) {
4536 anInstance(this, PromiseConstructor, PROMISE);
4537 aFunction(executor);
4538 Internal.call(this);
4539 var state = getInternalState(this);
4540 try {
4541 executor(bind(internalResolve, state), bind(internalReject, state));
4542 } catch (error) {
4543 internalReject(state, error);
4544 }
4545 };
4546 // eslint-disable-next-line no-unused-vars -- required for `.length`
4547 Internal = function Promise(executor) {
4548 setInternalState(this, {
4549 type: PROMISE,
4550 done: false,
4551 notified: false,
4552 parent: false,
4553 reactions: [],
4554 rejection: false,
4555 state: PENDING,
4556 value: undefined
4557 });
4558 };
4559 Internal.prototype = redefineAll(PromiseConstructor.prototype, {
4560 // `Promise.prototype.then` method
4561 // https://tc39.es/ecma262/#sec-promise.prototype.then
4562 then: function then(onFulfilled, onRejected) {
4563 var state = getInternalPromiseState(this);
4564 var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
4565 reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
4566 reaction.fail = typeof onRejected == 'function' && onRejected;
4567 reaction.domain = IS_NODE ? process.domain : undefined;
4568 state.parent = true;
4569 state.reactions.push(reaction);
4570 if (state.state != PENDING) notify(state, false);
4571 return reaction.promise;
4572 },
4573 // `Promise.prototype.catch` method
4574 // https://tc39.es/ecma262/#sec-promise.prototype.catch
4575 'catch': function (onRejected) {
4576 return this.then(undefined, onRejected);
4577 }
4578 });
4579 OwnPromiseCapability = function () {
4580 var promise = new Internal();
4581 var state = getInternalState(promise);
4582 this.promise = promise;
4583 this.resolve = bind(internalResolve, state);
4584 this.reject = bind(internalReject, state);
4585 };
4586 newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
4587 return C === PromiseConstructor || C === PromiseWrapper
4588 ? new OwnPromiseCapability(C)
4589 : newGenericPromiseCapability(C);
4590 };
4591
4592 if (!IS_PURE && typeof NativePromise == 'function') {
4593 nativeThen = NativePromise.prototype.then;
4594
4595 // wrap native Promise#then for native async functions
4596 redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
4597 var that = this;
4598 return new PromiseConstructor(function (resolve, reject) {
4599 nativeThen.call(that, resolve, reject);
4600 }).then(onFulfilled, onRejected);
4601 // https://github.com/zloirock/core-js/issues/640
4602 }, { unsafe: true });
4603
4604 // wrap fetch result
4605 if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
4606 // eslint-disable-next-line no-unused-vars -- required for `.length`
4607 fetch: function fetch(input /* , init */) {
4608 return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
4609 }
4610 });
4611 }
4612}
4613
4614$({ global: true, wrap: true, forced: FORCED }, {
4615 Promise: PromiseConstructor
4616});
4617
4618setToStringTag(PromiseConstructor, PROMISE, false, true);
4619setSpecies(PROMISE);
4620
4621PromiseWrapper = getBuiltIn(PROMISE);
4622
4623// statics
4624$({ target: PROMISE, stat: true, forced: FORCED }, {
4625 // `Promise.reject` method
4626 // https://tc39.es/ecma262/#sec-promise.reject
4627 reject: function reject(r) {
4628 var capability = newPromiseCapability(this);
4629 capability.reject.call(undefined, r);
4630 return capability.promise;
4631 }
4632});
4633
4634$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
4635 // `Promise.resolve` method
4636 // https://tc39.es/ecma262/#sec-promise.resolve
4637 resolve: function resolve(x) {
4638 return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
4639 }
4640});
4641
4642$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
4643 // `Promise.all` method
4644 // https://tc39.es/ecma262/#sec-promise.all
4645 all: function all(iterable) {
4646 var C = this;
4647 var capability = newPromiseCapability(C);
4648 var resolve = capability.resolve;
4649 var reject = capability.reject;
4650 var result = perform(function () {
4651 var $promiseResolve = aFunction(C.resolve);
4652 var values = [];
4653 var counter = 0;
4654 var remaining = 1;
4655 iterate(iterable, function (promise) {
4656 var index = counter++;
4657 var alreadyCalled = false;
4658 values.push(undefined);
4659 remaining++;
4660 $promiseResolve.call(C, promise).then(function (value) {
4661 if (alreadyCalled) return;
4662 alreadyCalled = true;
4663 values[index] = value;
4664 --remaining || resolve(values);
4665 }, reject);
4666 });
4667 --remaining || resolve(values);
4668 });
4669 if (result.error) reject(result.value);
4670 return capability.promise;
4671 },
4672 // `Promise.race` method
4673 // https://tc39.es/ecma262/#sec-promise.race
4674 race: function race(iterable) {
4675 var C = this;
4676 var capability = newPromiseCapability(C);
4677 var reject = capability.reject;
4678 var result = perform(function () {
4679 var $promiseResolve = aFunction(C.resolve);
4680 iterate(iterable, function (promise) {
4681 $promiseResolve.call(C, promise).then(capability.resolve, reject);
4682 });
4683 });
4684 if (result.error) reject(result.value);
4685 return capability.promise;
4686 }
4687});
4688
4689
4690/***/ }),
4691
4692/***/ "e893":
4693/***/ (function(module, exports, __webpack_require__) {
4694
4695var has = __webpack_require__("5135");
4696var ownKeys = __webpack_require__("56ef");
4697var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
4698var definePropertyModule = __webpack_require__("9bf2");
4699
4700module.exports = function (target, source) {
4701 var keys = ownKeys(source);
4702 var defineProperty = definePropertyModule.f;
4703 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
4704 for (var i = 0; i < keys.length; i++) {
4705 var key = keys[i];
4706 if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
4707 }
4708};
4709
4710
4711/***/ }),
4712
4713/***/ "e8b5":
4714/***/ (function(module, exports, __webpack_require__) {
4715
4716var classof = __webpack_require__("c6b6");
4717
4718// `IsArray` abstract operation
4719// https://tc39.es/ecma262/#sec-isarray
4720// eslint-disable-next-line es/no-array-isarray -- safe
4721module.exports = Array.isArray || function isArray(arg) {
4722 return classof(arg) == 'Array';
4723};
4724
4725
4726/***/ }),
4727
4728/***/ "e95a":
4729/***/ (function(module, exports, __webpack_require__) {
4730
4731var wellKnownSymbol = __webpack_require__("b622");
4732var Iterators = __webpack_require__("3f8c");
4733
4734var ITERATOR = wellKnownSymbol('iterator');
4735var ArrayPrototype = Array.prototype;
4736
4737// check on default Array iterator
4738module.exports = function (it) {
4739 return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
4740};
4741
4742
4743/***/ }),
4744
4745/***/ "f069":
4746/***/ (function(module, exports, __webpack_require__) {
4747
4748"use strict";
4749
4750var aFunction = __webpack_require__("1c0b");
4751
4752var PromiseCapability = function (C) {
4753 var resolve, reject;
4754 this.promise = new C(function ($$resolve, $$reject) {
4755 if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
4756 resolve = $$resolve;
4757 reject = $$reject;
4758 });
4759 this.resolve = aFunction(resolve);
4760 this.reject = aFunction(reject);
4761};
4762
4763// 25.4.1.5 NewPromiseCapability(C)
4764module.exports.f = function (C) {
4765 return new PromiseCapability(C);
4766};
4767
4768
4769/***/ }),
4770
4771/***/ "f5df":
4772/***/ (function(module, exports, __webpack_require__) {
4773
4774var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
4775var classofRaw = __webpack_require__("c6b6");
4776var wellKnownSymbol = __webpack_require__("b622");
4777
4778var TO_STRING_TAG = wellKnownSymbol('toStringTag');
4779// ES3 wrong here
4780var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
4781
4782// fallback for IE11 Script Access Denied error
4783var tryGet = function (it, key) {
4784 try {
4785 return it[key];
4786 } catch (error) { /* empty */ }
4787};
4788
4789// getting tag from ES6+ `Object.prototype.toString`
4790module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
4791 var O, tag, result;
4792 return it === undefined ? 'Undefined' : it === null ? 'Null'
4793 // @@toStringTag case
4794 : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
4795 // builtinTag case
4796 : CORRECT_ARGUMENTS ? classofRaw(O)
4797 // ES3 arguments fallback
4798 : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
4799};
4800
4801
4802/***/ }),
4803
4804/***/ "f772":
4805/***/ (function(module, exports, __webpack_require__) {
4806
4807var shared = __webpack_require__("5692");
4808var uid = __webpack_require__("90e3");
4809
4810var keys = shared('keys');
4811
4812module.exports = function (key) {
4813 return keys[key] || (keys[key] = uid(key));
4814};
4815
4816
4817/***/ }),
4818
4819/***/ "fb15":
4820/***/ (function(module, __webpack_exports__, __webpack_require__) {
4821
4822"use strict";
4823// ESM COMPAT FLAG
4824__webpack_require__.r(__webpack_exports__);
4825
4826// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
4827// This file is imported into lib/wc client bundles.
4828
4829if (typeof window !== 'undefined') {
4830 var currentScript = window.document.currentScript
4831 if (true) {
4832 var getCurrentScript = __webpack_require__("8875")
4833 currentScript = getCurrentScript()
4834
4835 // for backward compatibility, because previously we directly included the polyfill
4836 if (!('currentScript' in document)) {
4837 Object.defineProperty(document, 'currentScript', { get: getCurrentScript })
4838 }
4839 }
4840
4841 var setPublicPath_src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
4842 if (setPublicPath_src) {
4843 __webpack_require__.p = setPublicPath_src[1] // eslint-disable-line
4844 }
4845}
4846
4847// Indicate to webpack that this file can be concatenated
4848/* harmony default export */ var setPublicPath = (null);
4849
4850// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
4851var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
4852
4853// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./src/components/LightGallery.vue?vue&type=template&id=47173610
4854
4855var _hoisted_1 = {
4856 ref: "container",
4857 class: "lightgallery-vue"
4858};
4859function render(_ctx, _cache, $props, $setup, $data, $options) {
4860 return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", _hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "default")], 512);
4861}
4862// CONCATENATED MODULE: ./src/components/LightGallery.vue?vue&type=template&id=47173610
4863
4864// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
4865var es_object_keys = __webpack_require__("b64b");
4866
4867// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
4868var es_symbol = __webpack_require__("a4d3");
4869
4870// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
4871var es_array_filter = __webpack_require__("4de4");
4872
4873// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptor.js
4874var es_object_get_own_property_descriptor = __webpack_require__("e439");
4875
4876// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
4877var web_dom_collections_for_each = __webpack_require__("159b");
4878
4879// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptors.js
4880var es_object_get_own_property_descriptors = __webpack_require__("dbb4");
4881
4882// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
4883function _defineProperty(obj, key, value) {
4884 if (key in obj) {
4885 Object.defineProperty(obj, key, {
4886 value: value,
4887 enumerable: true,
4888 configurable: true,
4889 writable: true
4890 });
4891 } else {
4892 obj[key] = value;
4893 }
4894
4895 return obj;
4896}
4897// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
4898
4899
4900
4901
4902
4903
4904
4905
4906function ownKeys(object, enumerableOnly) {
4907 var keys = Object.keys(object);
4908
4909 if (Object.getOwnPropertySymbols) {
4910 var symbols = Object.getOwnPropertySymbols(object);
4911 if (enumerableOnly) symbols = symbols.filter(function (sym) {
4912 return Object.getOwnPropertyDescriptor(object, sym).enumerable;
4913 });
4914 keys.push.apply(keys, symbols);
4915 }
4916
4917 return keys;
4918}
4919
4920function _objectSpread2(target) {
4921 for (var i = 1; i < arguments.length; i++) {
4922 var source = arguments[i] != null ? arguments[i] : {};
4923
4924 if (i % 2) {
4925 ownKeys(Object(source), true).forEach(function (key) {
4926 _defineProperty(target, key, source[key]);
4927 });
4928 } else if (Object.getOwnPropertyDescriptors) {
4929 Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
4930 } else {
4931 ownKeys(Object(source)).forEach(function (key) {
4932 Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
4933 });
4934 }
4935 }
4936
4937 return target;
4938}
4939// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
4940function _classCallCheck(instance, Constructor) {
4941 if (!(instance instanceof Constructor)) {
4942 throw new TypeError("Cannot call a class as a function");
4943 }
4944}
4945// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
4946function _defineProperties(target, props) {
4947 for (var i = 0; i < props.length; i++) {
4948 var descriptor = props[i];
4949 descriptor.enumerable = descriptor.enumerable || false;
4950 descriptor.configurable = true;
4951 if ("value" in descriptor) descriptor.writable = true;
4952 Object.defineProperty(target, descriptor.key, descriptor);
4953 }
4954}
4955
4956function _createClass(Constructor, protoProps, staticProps) {
4957 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
4958 if (staticProps) _defineProperties(Constructor, staticProps);
4959 return Constructor;
4960}
4961// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
4962function _setPrototypeOf(o, p) {
4963 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
4964 o.__proto__ = p;
4965 return o;
4966 };
4967
4968 return _setPrototypeOf(o, p);
4969}
4970// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
4971
4972function _inherits(subClass, superClass) {
4973 if (typeof superClass !== "function" && superClass !== null) {
4974 throw new TypeError("Super expression must either be null or a function");
4975 }
4976
4977 subClass.prototype = Object.create(superClass && superClass.prototype, {
4978 constructor: {
4979 value: subClass,
4980 writable: true,
4981 configurable: true
4982 }
4983 });
4984 if (superClass) _setPrototypeOf(subClass, superClass);
4985}
4986// EXTERNAL MODULE: ./node_modules/core-js/modules/es.reflect.construct.js
4987var es_reflect_construct = __webpack_require__("4ae1");
4988
4989// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-prototype-of.js
4990var es_object_get_prototype_of = __webpack_require__("3410");
4991
4992// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
4993
4994function _getPrototypeOf(o) {
4995 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
4996 return o.__proto__ || Object.getPrototypeOf(o);
4997 };
4998 return _getPrototypeOf(o);
4999}
5000// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
5001
5002function _isNativeReflectConstruct() {
5003 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
5004 if (Reflect.construct.sham) return false;
5005 if (typeof Proxy === "function") return true;
5006
5007 try {
5008 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
5009 return true;
5010 } catch (e) {
5011 return false;
5012 }
5013}
5014// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/typeof.js
5015var helpers_typeof = __webpack_require__("7037");
5016var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
5017
5018// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
5019function _assertThisInitialized(self) {
5020 if (self === void 0) {
5021 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5022 }
5023
5024 return self;
5025}
5026// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
5027
5028
5029function _possibleConstructorReturn(self, call) {
5030 if (call && (typeof_default()(call) === "object" || typeof call === "function")) {
5031 return call;
5032 }
5033
5034 return _assertThisInitialized(self);
5035}
5036// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
5037
5038
5039
5040
5041function _createSuper(Derived) {
5042 var hasNativeReflectConstruct = _isNativeReflectConstruct();
5043 return function _createSuperInternal() {
5044 var Super = _getPrototypeOf(Derived),
5045 result;
5046
5047 if (hasNativeReflectConstruct) {
5048 var NewTarget = _getPrototypeOf(this).constructor;
5049 result = Reflect.construct(Super, arguments, NewTarget);
5050 } else {
5051 result = Super.apply(this, arguments);
5052 }
5053
5054 return _possibleConstructorReturn(this, result);
5055 };
5056}
5057// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
5058var es_array_slice = __webpack_require__("fb6a");
5059
5060// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
5061var es_regexp_exec = __webpack_require__("ac1f");
5062
5063// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
5064var es_string_split = __webpack_require__("1276");
5065
5066// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.js
5067/*! *****************************************************************************
5068Copyright (c) Microsoft Corporation.
5069
5070Permission to use, copy, modify, and/or distribute this software for any
5071purpose with or without fee is hereby granted.
5072
5073THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
5074REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
5075AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
5076INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
5077LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
5078OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5079PERFORMANCE OF THIS SOFTWARE.
5080***************************************************************************** */
5081/* global Reflect, Promise */
5082
5083var extendStatics = function(d, b) {
5084 extendStatics = Object.setPrototypeOf ||
5085 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5086 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5087 return extendStatics(d, b);
5088};
5089
5090function __extends(d, b) {
5091 extendStatics(d, b);
5092 function __() { this.constructor = d; }
5093 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5094}
5095
5096var __assign = function() {
5097 __assign = Object.assign || function __assign(t) {
5098 for (var s, i = 1, n = arguments.length; i < n; i++) {
5099 s = arguments[i];
5100 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
5101 }
5102 return t;
5103 }
5104 return __assign.apply(this, arguments);
5105}
5106
5107function __rest(s, e) {
5108 var t = {};
5109 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5110 t[p] = s[p];
5111 if (s != null && typeof Object.getOwnPropertySymbols === "function")
5112 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
5113 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
5114 t[p[i]] = s[p[i]];
5115 }
5116 return t;
5117}
5118
5119function __decorate(decorators, target, key, desc) {
5120 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5121 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5122 else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5123 return c > 3 && r && Object.defineProperty(target, key, r), r;
5124}
5125
5126function __param(paramIndex, decorator) {
5127 return function (target, key) { decorator(target, key, paramIndex); }
5128}
5129
5130function __metadata(metadataKey, metadataValue) {
5131 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
5132}
5133
5134function __awaiter(thisArg, _arguments, P, generator) {
5135 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5136 return new (P || (P = Promise))(function (resolve, reject) {
5137 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5138 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
5139 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
5140 step((generator = generator.apply(thisArg, _arguments || [])).next());
5141 });
5142}
5143
5144function __generator(thisArg, body) {
5145 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
5146 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
5147 function verb(n) { return function (v) { return step([n, v]); }; }
5148 function step(op) {
5149 if (f) throw new TypeError("Generator is already executing.");
5150 while (_) try {
5151 if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
5152 if (y = 0, t) op = [op[0] & 2, t.value];
5153 switch (op[0]) {
5154 case 0: case 1: t = op; break;
5155 case 4: _.label++; return { value: op[1], done: false };
5156 case 5: _.label++; y = op[1]; op = [0]; continue;
5157 case 7: op = _.ops.pop(); _.trys.pop(); continue;
5158 default:
5159 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
5160 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
5161 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
5162 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
5163 if (t[2]) _.ops.pop();
5164 _.trys.pop(); continue;
5165 }
5166 op = body.call(thisArg, _);
5167 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
5168 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
5169 }
5170}
5171
5172function __createBinding(o, m, k, k2) {
5173 if (k2 === undefined) k2 = k;
5174 o[k2] = m[k];
5175}
5176
5177function __exportStar(m, exports) {
5178 for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
5179}
5180
5181function __values(o) {
5182 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
5183 if (m) return m.call(o);
5184 if (o && typeof o.length === "number") return {
5185 next: function () {
5186 if (o && i >= o.length) o = void 0;
5187 return { value: o && o[i++], done: !o };
5188 }
5189 };
5190 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
5191}
5192
5193function __read(o, n) {
5194 var m = typeof Symbol === "function" && o[Symbol.iterator];
5195 if (!m) return o;
5196 var i = m.call(o), r, ar = [], e;
5197 try {
5198 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
5199 }
5200 catch (error) { e = { error: error }; }
5201 finally {
5202 try {
5203 if (r && !r.done && (m = i["return"])) m.call(i);
5204 }
5205 finally { if (e) throw e.error; }
5206 }
5207 return ar;
5208}
5209
5210function __spread() {
5211 for (var ar = [], i = 0; i < arguments.length; i++)
5212 ar = ar.concat(__read(arguments[i]));
5213 return ar;
5214}
5215
5216function __spreadArrays() {
5217 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
5218 for (var r = Array(s), k = 0, i = 0; i < il; i++)
5219 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
5220 r[k] = a[j];
5221 return r;
5222};
5223
5224function __await(v) {
5225 return this instanceof __await ? (this.v = v, this) : new __await(v);
5226}
5227
5228function __asyncGenerator(thisArg, _arguments, generator) {
5229 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
5230 var g = generator.apply(thisArg, _arguments || []), i, q = [];
5231 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
5232 function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
5233 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
5234 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
5235 function fulfill(value) { resume("next", value); }
5236 function reject(value) { resume("throw", value); }
5237 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
5238}
5239
5240function __asyncDelegator(o) {
5241 var i, p;
5242 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
5243 function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
5244}
5245
5246function __asyncValues(o) {
5247 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
5248 var m = o[Symbol.asyncIterator], i;
5249 return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
5250 function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
5251 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
5252}
5253
5254function __makeTemplateObject(cooked, raw) {
5255 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
5256 return cooked;
5257};
5258
5259function __importStar(mod) {
5260 if (mod && mod.__esModule) return mod;
5261 var result = {};
5262 if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
5263 result.default = mod;
5264 return result;
5265}
5266
5267function __importDefault(mod) {
5268 return (mod && mod.__esModule) ? mod : { default: mod };
5269}
5270
5271function __classPrivateFieldGet(receiver, privateMap) {
5272 if (!privateMap.has(receiver)) {
5273 throw new TypeError("attempted to get private field on non-instance");
5274 }
5275 return privateMap.get(receiver);
5276}
5277
5278function __classPrivateFieldSet(receiver, privateMap, value) {
5279 if (!privateMap.has(receiver)) {
5280 throw new TypeError("attempted to set private field on non-instance");
5281 }
5282 privateMap.set(receiver, value);
5283 return value;
5284}
5285
5286// CONCATENATED MODULE: ./node_modules/vue-class-component/dist/vue-class-component.esm-bundler.js
5287/**
5288 * vue-class-component v8.0.0-rc.1
5289 * (c) 2015-present Evan You
5290 * @license MIT
5291 */
5292
5293
5294function vue_class_component_esm_bundler_classCallCheck(instance, Constructor) {
5295 if (!(instance instanceof Constructor)) {
5296 throw new TypeError("Cannot call a class as a function");
5297 }
5298}
5299
5300function vue_class_component_esm_bundler_defineProperties(target, props) {
5301 for (var i = 0; i < props.length; i++) {
5302 var descriptor = props[i];
5303 descriptor.enumerable = descriptor.enumerable || false;
5304 descriptor.configurable = true;
5305 if ("value" in descriptor) descriptor.writable = true;
5306 Object.defineProperty(target, descriptor.key, descriptor);
5307 }
5308}
5309
5310function vue_class_component_esm_bundler_createClass(Constructor, protoProps, staticProps) {
5311 if (protoProps) vue_class_component_esm_bundler_defineProperties(Constructor.prototype, protoProps);
5312 if (staticProps) vue_class_component_esm_bundler_defineProperties(Constructor, staticProps);
5313 return Constructor;
5314}
5315
5316function vue_class_component_esm_bundler_defineProperty(obj, key, value) {
5317 if (key in obj) {
5318 Object.defineProperty(obj, key, {
5319 value: value,
5320 enumerable: true,
5321 configurable: true,
5322 writable: true
5323 });
5324 } else {
5325 obj[key] = value;
5326 }
5327
5328 return obj;
5329}
5330
5331function vue_class_component_esm_bundler_ownKeys(object, enumerableOnly) {
5332 var keys = Object.keys(object);
5333
5334 if (Object.getOwnPropertySymbols) {
5335 var symbols = Object.getOwnPropertySymbols(object);
5336 if (enumerableOnly) symbols = symbols.filter(function (sym) {
5337 return Object.getOwnPropertyDescriptor(object, sym).enumerable;
5338 });
5339 keys.push.apply(keys, symbols);
5340 }
5341
5342 return keys;
5343}
5344
5345function vue_class_component_esm_bundler_objectSpread2(target) {
5346 for (var i = 1; i < arguments.length; i++) {
5347 var source = arguments[i] != null ? arguments[i] : {};
5348
5349 if (i % 2) {
5350 vue_class_component_esm_bundler_ownKeys(Object(source), true).forEach(function (key) {
5351 vue_class_component_esm_bundler_defineProperty(target, key, source[key]);
5352 });
5353 } else if (Object.getOwnPropertyDescriptors) {
5354 Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
5355 } else {
5356 vue_class_component_esm_bundler_ownKeys(Object(source)).forEach(function (key) {
5357 Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
5358 });
5359 }
5360 }
5361
5362 return target;
5363}
5364
5365function vue_class_component_esm_bundler_inherits(subClass, superClass) {
5366 if (typeof superClass !== "function" && superClass !== null) {
5367 throw new TypeError("Super expression must either be null or a function");
5368 }
5369
5370 subClass.prototype = Object.create(superClass && superClass.prototype, {
5371 constructor: {
5372 value: subClass,
5373 writable: true,
5374 configurable: true
5375 }
5376 });
5377 if (superClass) vue_class_component_esm_bundler_setPrototypeOf(subClass, superClass);
5378}
5379
5380function vue_class_component_esm_bundler_getPrototypeOf(o) {
5381 vue_class_component_esm_bundler_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
5382 return o.__proto__ || Object.getPrototypeOf(o);
5383 };
5384 return vue_class_component_esm_bundler_getPrototypeOf(o);
5385}
5386
5387function vue_class_component_esm_bundler_setPrototypeOf(o, p) {
5388 vue_class_component_esm_bundler_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
5389 o.__proto__ = p;
5390 return o;
5391 };
5392
5393 return vue_class_component_esm_bundler_setPrototypeOf(o, p);
5394}
5395
5396function vue_class_component_esm_bundler_isNativeReflectConstruct() {
5397 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
5398 if (Reflect.construct.sham) return false;
5399 if (typeof Proxy === "function") return true;
5400
5401 try {
5402 Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
5403 return true;
5404 } catch (e) {
5405 return false;
5406 }
5407}
5408
5409function _construct(Parent, args, Class) {
5410 if (vue_class_component_esm_bundler_isNativeReflectConstruct()) {
5411 _construct = Reflect.construct;
5412 } else {
5413 _construct = function _construct(Parent, args, Class) {
5414 var a = [null];
5415 a.push.apply(a, args);
5416 var Constructor = Function.bind.apply(Parent, a);
5417 var instance = new Constructor();
5418 if (Class) vue_class_component_esm_bundler_setPrototypeOf(instance, Class.prototype);
5419 return instance;
5420 };
5421 }
5422
5423 return _construct.apply(null, arguments);
5424}
5425
5426function vue_class_component_esm_bundler_assertThisInitialized(self) {
5427 if (self === void 0) {
5428 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5429 }
5430
5431 return self;
5432}
5433
5434function vue_class_component_esm_bundler_possibleConstructorReturn(self, call) {
5435 if (call && (typeof call === "object" || typeof call === "function")) {
5436 return call;
5437 }
5438
5439 return vue_class_component_esm_bundler_assertThisInitialized(self);
5440}
5441
5442function vue_class_component_esm_bundler_createSuper(Derived) {
5443 var hasNativeReflectConstruct = vue_class_component_esm_bundler_isNativeReflectConstruct();
5444
5445 return function _createSuperInternal() {
5446 var Super = vue_class_component_esm_bundler_getPrototypeOf(Derived),
5447 result;
5448
5449 if (hasNativeReflectConstruct) {
5450 var NewTarget = vue_class_component_esm_bundler_getPrototypeOf(this).constructor;
5451
5452 result = Reflect.construct(Super, arguments, NewTarget);
5453 } else {
5454 result = Super.apply(this, arguments);
5455 }
5456
5457 return vue_class_component_esm_bundler_possibleConstructorReturn(this, result);
5458 };
5459}
5460
5461function _toConsumableArray(arr) {
5462 return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
5463}
5464
5465function _arrayWithoutHoles(arr) {
5466 if (Array.isArray(arr)) return _arrayLikeToArray(arr);
5467}
5468
5469function _iterableToArray(iter) {
5470 if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
5471}
5472
5473function _unsupportedIterableToArray(o, minLen) {
5474 if (!o) return;
5475 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
5476 var n = Object.prototype.toString.call(o).slice(8, -1);
5477 if (n === "Object" && o.constructor) n = o.constructor.name;
5478 if (n === "Map" || n === "Set") return Array.from(o);
5479 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
5480}
5481
5482function _arrayLikeToArray(arr, len) {
5483 if (len == null || len > arr.length) len = arr.length;
5484
5485 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
5486
5487 return arr2;
5488}
5489
5490function _nonIterableSpread() {
5491 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5492}
5493
5494function defineGetter(obj, key, getter) {
5495 Object.defineProperty(obj, key, {
5496 get: getter,
5497 enumerable: false,
5498 configurable: true
5499 });
5500}
5501
5502function defineProxy(proxy, key, target) {
5503 Object.defineProperty(proxy, key, {
5504 get: function get() {
5505 return target[key].value;
5506 },
5507 set: function set(value) {
5508 target[key].value = value;
5509 },
5510 enumerable: true,
5511 configurable: true
5512 });
5513}
5514
5515function getSuper(Ctor) {
5516 var superProto = Object.getPrototypeOf(Ctor.prototype);
5517
5518 if (!superProto) {
5519 return undefined;
5520 }
5521
5522 return superProto.constructor;
5523}
5524
5525function getOwn(value, key) {
5526 return value.hasOwnProperty(key) ? value[key] : undefined;
5527}
5528
5529var vue_class_component_esm_bundler_VueImpl = /*#__PURE__*/function () {
5530 function VueImpl(props, ctx) {
5531 var _this = this;
5532
5533 vue_class_component_esm_bundler_classCallCheck(this, VueImpl);
5534
5535 defineGetter(this, '$props', function () {
5536 return props;
5537 });
5538 defineGetter(this, '$attrs', function () {
5539 return ctx.attrs;
5540 });
5541 defineGetter(this, '$slots', function () {
5542 return ctx.slots;
5543 });
5544 defineGetter(this, '$emit', function () {
5545 return ctx.emit;
5546 });
5547 Object.keys(props).forEach(function (key) {
5548 Object.defineProperty(_this, key, {
5549 enumerable: false,
5550 configurable: true,
5551 writable: true,
5552 value: props[key]
5553 });
5554 });
5555 }
5556
5557 vue_class_component_esm_bundler_createClass(VueImpl, null, [{
5558 key: "registerHooks",
5559 value: function registerHooks(keys) {
5560 var _this$__h;
5561
5562 (_this$__h = this.__h).push.apply(_this$__h, _toConsumableArray(keys));
5563 }
5564 }, {
5565 key: "with",
5566 value: function _with(Props) {
5567 var propsMeta = new Props();
5568 var props = {};
5569 Object.keys(propsMeta).forEach(function (key) {
5570 var meta = propsMeta[key];
5571 props[key] = meta !== null && meta !== void 0 ? meta : null;
5572 });
5573
5574 var PropsMixin = /*#__PURE__*/function (_this2) {
5575 vue_class_component_esm_bundler_inherits(PropsMixin, _this2);
5576
5577 var _super = vue_class_component_esm_bundler_createSuper(PropsMixin);
5578
5579 function PropsMixin() {
5580 vue_class_component_esm_bundler_classCallCheck(this, PropsMixin);
5581
5582 return _super.apply(this, arguments);
5583 }
5584
5585 return PropsMixin;
5586 }(this);
5587
5588 PropsMixin.__b = {
5589 props: props
5590 };
5591 return PropsMixin;
5592 }
5593 }, {
5594 key: "__vccOpts",
5595 get: function get() {
5596 // Early return if `this` is base class as it does not have any options
5597 if (this === Vue) {
5598 return {};
5599 }
5600
5601 var Ctor = this;
5602 var cache = getOwn(Ctor, '__c');
5603
5604 if (cache) {
5605 return cache;
5606 } // If the options are provided via decorator use it as a base
5607
5608
5609 var options = vue_class_component_esm_bundler_objectSpread2({}, getOwn(Ctor, '__o'));
5610
5611 Ctor.__c = options; // Handle super class options
5612
5613 var Super = getSuper(Ctor);
5614
5615 if (Super) {
5616 options["extends"] = Super.__vccOpts;
5617 } // Inject base options as a mixin
5618
5619
5620 var base = getOwn(Ctor, '__b');
5621
5622 if (base) {
5623 options.mixins = options.mixins || [];
5624 options.mixins.unshift(base);
5625 }
5626
5627 options.methods = vue_class_component_esm_bundler_objectSpread2({}, options.methods);
5628 options.computed = vue_class_component_esm_bundler_objectSpread2({}, options.computed);
5629 var proto = Ctor.prototype;
5630 Object.getOwnPropertyNames(proto).forEach(function (key) {
5631 if (key === 'constructor') {
5632 return;
5633 } // hooks
5634
5635
5636 if (Ctor.__h.indexOf(key) > -1) {
5637 options[key] = proto[key];
5638 return;
5639 }
5640
5641 var descriptor = Object.getOwnPropertyDescriptor(proto, key); // methods
5642
5643 if (typeof descriptor.value === 'function') {
5644 options.methods[key] = descriptor.value;
5645 return;
5646 } // computed properties
5647
5648
5649 if (descriptor.get || descriptor.set) {
5650 options.computed[key] = {
5651 get: descriptor.get,
5652 set: descriptor.set
5653 };
5654 return;
5655 }
5656 });
5657
5658 options.setup = function (props, ctx) {
5659 var _promise;
5660
5661 var data = new Ctor(props, ctx);
5662 var dataKeys = Object.keys(data);
5663 var plainData = {};
5664 var promise = null; // Initialize reactive data and convert constructor `this` to a proxy
5665
5666 dataKeys.forEach(function (key) {
5667 // Skip if the value is undefined not to make it reactive.
5668 // If the value has `__s`, it's a value from `setup` helper, proceed it later.
5669 if (data[key] === undefined || data[key] && data[key].__s) {
5670 return;
5671 }
5672
5673 plainData[key] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(data[key]);
5674 defineProxy(data, key, plainData);
5675 }); // Invoke composition functions
5676
5677 dataKeys.forEach(function (key) {
5678 if (data[key] && data[key].__s) {
5679 var setupState = data[key].__s();
5680
5681 if (setupState instanceof Promise) {
5682 if (!promise) {
5683 promise = Promise.resolve(plainData);
5684 }
5685
5686 promise = promise.then(function () {
5687 return setupState.then(function (value) {
5688 plainData[key] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["proxyRefs"])(value);
5689 return plainData;
5690 });
5691 });
5692 } else {
5693 plainData[key] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["proxyRefs"])(setupState);
5694 }
5695 }
5696 });
5697 return (_promise = promise) !== null && _promise !== void 0 ? _promise : plainData;
5698 };
5699
5700 var decorators = getOwn(Ctor, '__d');
5701
5702 if (decorators) {
5703 decorators.forEach(function (fn) {
5704 return fn(options);
5705 });
5706 } // from Vue Loader
5707
5708
5709 var injections = ['render', 'ssrRender', '__file', '__cssModules', '__scopeId', '__hmrId'];
5710 injections.forEach(function (key) {
5711 if (Ctor[key]) {
5712 options[key] = Ctor[key];
5713 }
5714 });
5715 return options;
5716 }
5717 }]);
5718
5719 return VueImpl;
5720}();
5721
5722vue_class_component_esm_bundler_VueImpl.__h = ['data', 'beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeUnmount', 'unmounted', 'beforeUpdate', 'updated', 'activated', 'deactivated', 'render', 'errorCaptured', 'serverPrefetch'];
5723var Vue = vue_class_component_esm_bundler_VueImpl;
5724
5725function Options(options) {
5726 return function (Component) {
5727 Component.__o = options;
5728 return Component;
5729 };
5730}
5731function createDecorator(factory) {
5732 return function (target, key, index) {
5733 var Ctor = typeof target === 'function' ? target : target.constructor;
5734
5735 if (!Ctor.__d) {
5736 Ctor.__d = [];
5737 }
5738
5739 if (typeof index !== 'number') {
5740 index = undefined;
5741 }
5742
5743 Ctor.__d.push(function (options) {
5744 return factory(options, key, index);
5745 });
5746 };
5747}
5748function mixins() {
5749 for (var _len = arguments.length, Ctors = new Array(_len), _key = 0; _key < _len; _key++) {
5750 Ctors[_key] = arguments[_key];
5751 }
5752
5753 var _a;
5754
5755 return _a = /*#__PURE__*/function (_Vue) {
5756 vue_class_component_esm_bundler_inherits(MixedVue, _Vue);
5757
5758 var _super = vue_class_component_esm_bundler_createSuper(MixedVue);
5759
5760 function MixedVue() {
5761 var _this;
5762
5763 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5764 args[_key2] = arguments[_key2];
5765 }
5766
5767 vue_class_component_esm_bundler_classCallCheck(this, MixedVue);
5768
5769 _this = _super.call.apply(_super, [this].concat(args));
5770 Ctors.forEach(function (Ctor) {
5771 var data = _construct(Ctor, args);
5772
5773 Object.keys(data).forEach(function (key) {
5774 _this[key] = data[key];
5775 });
5776 });
5777 return _this;
5778 }
5779
5780 return MixedVue;
5781 }(Vue), _a.__b = {
5782 mixins: Ctors.map(function (Ctor) {
5783 return Ctor.__vccOpts;
5784 })
5785 }, _a;
5786}
5787function setup(setupFn) {
5788 // Hack to delay the invocation of setup function.
5789 // Will be called after dealing with class properties.
5790 return {
5791 __s: setupFn
5792 };
5793}
5794
5795// Actual implementation
5796function prop(options) {
5797 return options;
5798}
5799
5800
5801
5802// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
5803var es_array_concat = __webpack_require__("99af");
5804
5805// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
5806var es_array_find = __webpack_require__("7db0");
5807
5808// CONCATENATED MODULE: ../src/lg-events.ts
5809/**
5810 * List of lightGallery events
5811 * All events should be documented here
5812 * Below interfaces are used to build the website documentations
5813 * */
5814var lGEvents = {
5815 afterAppendSlide: 'lgAfterAppendSlide',
5816 init: 'lgInit',
5817 hasVideo: 'lgHasVideo',
5818 containerResize: 'lgContainerResize',
5819 updateSlides: 'lgUpdateSlides',
5820 afterAppendSubHtml: 'lgAfterAppendSubHtml',
5821 beforeOpen: 'lgBeforeOpen',
5822 afterOpen: 'lgAfterOpen',
5823 slideItemLoad: 'lgSlideItemLoad',
5824 beforeSlide: 'lgBeforeSlide',
5825 afterSlide: 'lgAfterSlide',
5826 posterClick: 'lgPosterClick',
5827 dragStart: 'lgDragStart',
5828 dragMove: 'lgDragMove',
5829 dragEnd: 'lgDragEnd',
5830 beforeNextSlide: 'lgBeforeNextSlide',
5831 beforePrevSlide: 'lgBeforePrevSlide',
5832 beforeClose: 'lgBeforeClose',
5833 afterClose: 'lgAfterClose',
5834 rotateLeft: 'lgRotateLeft',
5835 rotateRight: 'lgRotateRight',
5836 flipHorizontal: 'lgFlipHorizontal',
5837 flipVertical: 'lgFlipVertical',
5838 autoplay: 'lgAutoplay',
5839 autoplayStart: 'lgAutoplayStart',
5840 autoplayStop: 'lgAutoplayStop'
5841};
5842// CONCATENATED MODULE: ../src/lg-settings.ts
5843var lightGalleryCoreSettings = {
5844 mode: 'lg-slide',
5845 easing: 'ease',
5846 speed: 400,
5847 licenseKey: '0000-0000-000-0000',
5848 height: '100%',
5849 width: '100%',
5850 addClass: '',
5851 startClass: 'lg-start-zoom',
5852 backdropDuration: 300,
5853 container: '',
5854 startAnimationDuration: 400,
5855 zoomFromOrigin: true,
5856 hideBarsDelay: 0,
5857 showBarsAfter: 10000,
5858 slideDelay: 0,
5859 supportLegacyBrowser: true,
5860 allowMediaOverlap: false,
5861 videoMaxSize: '1280-720',
5862 loadYouTubePoster: true,
5863 defaultCaptionHeight: 0,
5864 ariaLabelledby: '',
5865 ariaDescribedby: '',
5866 resetScrollPosition: true,
5867 hideScrollbar: false,
5868 closable: true,
5869 swipeToClose: true,
5870 closeOnTap: true,
5871 showCloseIcon: true,
5872 showMaximizeIcon: false,
5873 loop: true,
5874 escKey: true,
5875 keyPress: true,
5876 trapFocus: true,
5877 controls: true,
5878 slideEndAnimation: true,
5879 hideControlOnEnd: false,
5880 mousewheel: false,
5881 getCaptionFromTitleOrAlt: true,
5882 appendSubHtmlTo: '.lg-sub-html',
5883 subHtmlSelectorRelative: false,
5884 preload: 2,
5885 numberOfSlideItemsInDom: 10,
5886 selector: '',
5887 selectWithin: '',
5888 nextHtml: '',
5889 prevHtml: '',
5890 index: 0,
5891 iframeWidth: '100%',
5892 iframeHeight: '100%',
5893 iframeMaxWidth: '100%',
5894 iframeMaxHeight: '100%',
5895 download: true,
5896 counter: true,
5897 appendCounterTo: '.lg-toolbar',
5898 swipeThreshold: 50,
5899 enableSwipe: true,
5900 enableDrag: true,
5901 dynamic: false,
5902 dynamicEl: [],
5903 extraProps: [],
5904 exThumbImage: '',
5905 isMobile: undefined,
5906 mobileSettings: {
5907 controls: false,
5908 showCloseIcon: false,
5909 download: false
5910 },
5911 plugins: [],
5912 strings: {
5913 closeGallery: 'Close gallery',
5914 toggleMaximize: 'Toggle maximize',
5915 previousSlide: 'Previous slide',
5916 nextSlide: 'Next slide',
5917 download: 'Download',
5918 playVideo: 'Play video'
5919 }
5920};
5921// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
5922function arrayLikeToArray_arrayLikeToArray(arr, len) {
5923 if (len == null || len > arr.length) len = arr.length;
5924
5925 for (var i = 0, arr2 = new Array(len); i < len; i++) {
5926 arr2[i] = arr[i];
5927 }
5928
5929 return arr2;
5930}
5931// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
5932
5933function arrayWithoutHoles_arrayWithoutHoles(arr) {
5934 if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
5935}
5936// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
5937var es_symbol_description = __webpack_require__("e01a");
5938
5939// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
5940var es_object_to_string = __webpack_require__("d3b7");
5941
5942// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js
5943var es_symbol_iterator = __webpack_require__("d28b");
5944
5945// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
5946var es_array_iterator = __webpack_require__("e260");
5947
5948// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
5949var es_string_iterator = __webpack_require__("3ca3");
5950
5951// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
5952var web_dom_collections_iterator = __webpack_require__("ddb0");
5953
5954// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
5955var es_array_from = __webpack_require__("a630");
5956
5957// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
5958
5959
5960
5961
5962
5963
5964
5965
5966function iterableToArray_iterableToArray(iter) {
5967 if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
5968}
5969// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
5970var es_function_name = __webpack_require__("b0c0");
5971
5972// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
5973
5974
5975
5976
5977
5978
5979function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
5980 if (!o) return;
5981 if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
5982 var n = Object.prototype.toString.call(o).slice(8, -1);
5983 if (n === "Object" && o.constructor) n = o.constructor.name;
5984 if (n === "Map" || n === "Set") return Array.from(o);
5985 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
5986}
5987// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
5988function nonIterableSpread_nonIterableSpread() {
5989 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5990}
5991// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
5992
5993
5994
5995
5996function toConsumableArray_toConsumableArray(arr) {
5997 return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
5998}
5999// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
6000var es_string_replace = __webpack_require__("5319");
6001
6002// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
6003var es_array_map = __webpack_require__("d81d");
6004
6005// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
6006var es_array_splice = __webpack_require__("a434");
6007
6008// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
6009var es_string_match = __webpack_require__("466d");
6010
6011// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
6012var es_promise = __webpack_require__("e6cf");
6013
6014// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
6015var es_regexp_to_string = __webpack_require__("25f0");
6016
6017// CONCATENATED MODULE: ../src/lgQuery.ts
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031function initLgPolyfills() {
6032 (function () {
6033 if (typeof window.CustomEvent === 'function') return false;
6034
6035 function CustomEvent(event, params) {
6036 params = params || {
6037 bubbles: false,
6038 cancelable: false,
6039 detail: null
6040 };
6041 var evt = document.createEvent('CustomEvent');
6042 evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
6043 return evt;
6044 }
6045
6046 window.CustomEvent = CustomEvent;
6047 })();
6048
6049 (function () {
6050 if (!Element.prototype.matches) {
6051 Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
6052 }
6053 })();
6054}
6055
6056var lgQuery_lgQuery = /*#__PURE__*/function () {
6057 function lgQuery(selector) {
6058 _classCallCheck(this, lgQuery);
6059
6060 this.cssVenderPrefixes = ['TransitionDuration', 'TransitionTimingFunction', 'Transform', 'Transition'];
6061 this.selector = this._getSelector(selector);
6062 this.firstElement = this._getFirstEl();
6063 return this;
6064 }
6065
6066 _createClass(lgQuery, [{
6067 key: "_getSelector",
6068 value: function _getSelector(selector) {
6069 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
6070
6071 if (typeof selector !== 'string') {
6072 return selector;
6073 }
6074
6075 context = context || document;
6076 var fl = selector.substring(0, 1);
6077
6078 if (fl === '#') {
6079 return context.querySelector(selector);
6080 } else {
6081 return context.querySelectorAll(selector);
6082 }
6083 }
6084 }, {
6085 key: "_each",
6086 value: function _each(func) {
6087 if (!this.selector) {
6088 return this;
6089 }
6090
6091 if (this.selector.length !== undefined) {
6092 [].forEach.call(this.selector, func);
6093 } else {
6094 func(this.selector, 0);
6095 }
6096
6097 return this;
6098 }
6099 }, {
6100 key: "_setCssVendorPrefix",
6101 value: function _setCssVendorPrefix(el, cssProperty, value) {
6102 // prettier-ignore
6103 var property = cssProperty.replace(/-([a-z])/gi, function (s, group1) {
6104 return group1.toUpperCase();
6105 });
6106
6107 if (this.cssVenderPrefixes.indexOf(property) !== -1) {
6108 el.style[property.charAt(0).toLowerCase() + property.slice(1)] = value;
6109 el.style['webkit' + property] = value;
6110 el.style['moz' + property] = value;
6111 el.style['ms' + property] = value;
6112 el.style['o' + property] = value;
6113 } else {
6114 el.style[property] = value;
6115 }
6116 }
6117 }, {
6118 key: "_getFirstEl",
6119 value: function _getFirstEl() {
6120 if (this.selector && this.selector.length !== undefined) {
6121 return this.selector[0];
6122 } else {
6123 return this.selector;
6124 }
6125 }
6126 }, {
6127 key: "isEventMatched",
6128 value: function isEventMatched(event, eventName) {
6129 var eventNamespace = eventName.split('.');
6130 return event.split('.').filter(function (e) {
6131 return e;
6132 }).every(function (e) {
6133 return eventNamespace.indexOf(e) !== -1;
6134 });
6135 }
6136 }, {
6137 key: "attr",
6138 value: function attr(_attr, value) {
6139 if (value === undefined) {
6140 if (!this.firstElement) {
6141 return '';
6142 }
6143
6144 return this.firstElement.getAttribute(_attr);
6145 }
6146
6147 this._each(function (el) {
6148 el.setAttribute(_attr, value);
6149 });
6150
6151 return this;
6152 }
6153 }, {
6154 key: "find",
6155 value: function find(selector) {
6156 return $LG(this._getSelector(selector, this.selector));
6157 }
6158 }, {
6159 key: "first",
6160 value: function first() {
6161 if (this.selector && this.selector.length !== undefined) {
6162 return $LG(this.selector[0]);
6163 } else {
6164 return $LG(this.selector);
6165 }
6166 }
6167 }, {
6168 key: "eq",
6169 value: function eq(index) {
6170 return $LG(this.selector[index]);
6171 }
6172 }, {
6173 key: "parent",
6174 value: function parent() {
6175 return $LG(this.selector.parentElement);
6176 }
6177 }, {
6178 key: "get",
6179 value: function get() {
6180 return this._getFirstEl();
6181 }
6182 }, {
6183 key: "removeAttr",
6184 value: function removeAttr(attributes) {
6185 var attrs = attributes.split(' ');
6186
6187 this._each(function (el) {
6188 attrs.forEach(function (attr) {
6189 return el.removeAttribute(attr);
6190 });
6191 });
6192
6193 return this;
6194 }
6195 }, {
6196 key: "wrap",
6197 value: function wrap(className) {
6198 if (!this.firstElement) {
6199 return this;
6200 }
6201
6202 var wrapper = document.createElement('div');
6203 wrapper.className = className;
6204 this.firstElement.parentNode.insertBefore(wrapper, this.firstElement);
6205 this.firstElement.parentNode.removeChild(this.firstElement);
6206 wrapper.appendChild(this.firstElement);
6207 return this;
6208 }
6209 }, {
6210 key: "addClass",
6211 value: function addClass() {
6212 var classNames = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
6213
6214 this._each(function (el) {
6215 // IE doesn't support multiple arguments
6216 classNames.split(' ').forEach(function (className) {
6217 if (className) {
6218 el.classList.add(className);
6219 }
6220 });
6221 });
6222
6223 return this;
6224 }
6225 }, {
6226 key: "removeClass",
6227 value: function removeClass(classNames) {
6228 this._each(function (el) {
6229 // IE doesn't support multiple arguments
6230 classNames.split(' ').forEach(function (className) {
6231 if (className) {
6232 el.classList.remove(className);
6233 }
6234 });
6235 });
6236
6237 return this;
6238 }
6239 }, {
6240 key: "hasClass",
6241 value: function hasClass(className) {
6242 if (!this.firstElement) {
6243 return false;
6244 }
6245
6246 return this.firstElement.classList.contains(className);
6247 }
6248 }, {
6249 key: "hasAttribute",
6250 value: function hasAttribute(attribute) {
6251 if (!this.firstElement) {
6252 return false;
6253 }
6254
6255 return this.firstElement.hasAttribute(attribute);
6256 }
6257 }, {
6258 key: "toggleClass",
6259 value: function toggleClass(className) {
6260 if (!this.firstElement) {
6261 return this;
6262 }
6263
6264 if (this.hasClass(className)) {
6265 this.removeClass(className);
6266 } else {
6267 this.addClass(className);
6268 }
6269
6270 return this;
6271 }
6272 }, {
6273 key: "css",
6274 value: function css(property, value) {
6275 var _this = this;
6276
6277 this._each(function (el) {
6278 _this._setCssVendorPrefix(el, property, value);
6279 });
6280
6281 return this;
6282 } // Need to pass separate namespaces for separate elements
6283
6284 }, {
6285 key: "on",
6286 value: function on(events, listener) {
6287 var _this2 = this;
6288
6289 if (!this.selector) {
6290 return this;
6291 }
6292
6293 events.split(' ').forEach(function (event) {
6294 if (!Array.isArray(lgQuery.eventListeners[event])) {
6295 lgQuery.eventListeners[event] = [];
6296 }
6297
6298 lgQuery.eventListeners[event].push(listener);
6299
6300 _this2.selector.addEventListener(event.split('.')[0], listener);
6301 });
6302 return this;
6303 } // @todo - test this
6304
6305 }, {
6306 key: "once",
6307 value: function once(event, listener) {
6308 var _this3 = this;
6309
6310 this.on(event, function () {
6311 _this3.off(event);
6312
6313 listener(event);
6314 });
6315 return this;
6316 }
6317 }, {
6318 key: "off",
6319 value: function off(event) {
6320 var _this4 = this;
6321
6322 if (!this.selector) {
6323 return this;
6324 }
6325
6326 Object.keys(lgQuery.eventListeners).forEach(function (eventName) {
6327 if (_this4.isEventMatched(event, eventName)) {
6328 lgQuery.eventListeners[eventName].forEach(function (listener) {
6329 _this4.selector.removeEventListener(eventName.split('.')[0], listener);
6330 });
6331 lgQuery.eventListeners[eventName] = [];
6332 }
6333 });
6334 return this;
6335 }
6336 }, {
6337 key: "trigger",
6338 value: function trigger(event, detail) {
6339 if (!this.firstElement) {
6340 return this;
6341 }
6342
6343 var customEvent = new CustomEvent(event.split('.')[0], {
6344 detail: detail || null
6345 });
6346 this.firstElement.dispatchEvent(customEvent);
6347 return this;
6348 } // Does not support IE
6349
6350 }, {
6351 key: "load",
6352 value: function load(url) {
6353 var _this5 = this;
6354
6355 fetch(url).then(function (res) {
6356 return res.text();
6357 }).then(function (html) {
6358 _this5.selector.innerHTML = html;
6359 });
6360 return this;
6361 }
6362 }, {
6363 key: "html",
6364 value: function html(_html) {
6365 if (_html === undefined) {
6366 if (!this.firstElement) {
6367 return '';
6368 }
6369
6370 return this.firstElement.innerHTML;
6371 }
6372
6373 this._each(function (el) {
6374 el.innerHTML = _html;
6375 });
6376
6377 return this;
6378 }
6379 }, {
6380 key: "append",
6381 value: function append(html) {
6382 this._each(function (el) {
6383 if (typeof html === 'string') {
6384 el.insertAdjacentHTML('beforeend', html);
6385 } else {
6386 el.appendChild(html);
6387 }
6388 });
6389
6390 return this;
6391 }
6392 }, {
6393 key: "prepend",
6394 value: function prepend(html) {
6395 this._each(function (el) {
6396 el.insertAdjacentHTML('afterbegin', html);
6397 });
6398
6399 return this;
6400 }
6401 }, {
6402 key: "remove",
6403 value: function remove() {
6404 this._each(function (el) {
6405 el.parentNode.removeChild(el);
6406 });
6407
6408 return this;
6409 }
6410 }, {
6411 key: "empty",
6412 value: function empty() {
6413 this._each(function (el) {
6414 el.innerHTML = '';
6415 });
6416
6417 return this;
6418 }
6419 }, {
6420 key: "scrollTop",
6421 value: function scrollTop(_scrollTop) {
6422 if (_scrollTop !== undefined) {
6423 document.body.scrollTop = _scrollTop;
6424 document.documentElement.scrollTop = _scrollTop;
6425 return this;
6426 } else {
6427 return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
6428 }
6429 }
6430 }, {
6431 key: "scrollLeft",
6432 value: function scrollLeft(_scrollLeft) {
6433 if (_scrollLeft !== undefined) {
6434 document.body.scrollLeft = _scrollLeft;
6435 document.documentElement.scrollLeft = _scrollLeft;
6436 return this;
6437 } else {
6438 return window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
6439 }
6440 }
6441 }, {
6442 key: "offset",
6443 value: function offset() {
6444 if (!this.firstElement) {
6445 return {
6446 left: 0,
6447 top: 0
6448 };
6449 }
6450
6451 var rect = this.firstElement.getBoundingClientRect();
6452 var bodyMarginLeft = $LG('body').style().marginLeft; // Minus body margin - https://stackoverflow.com/questions/30711548/is-getboundingclientrect-left-returning-a-wrong-value
6453
6454 return {
6455 left: rect.left - parseFloat(bodyMarginLeft) + this.scrollLeft(),
6456 top: rect.top + this.scrollTop()
6457 };
6458 }
6459 }, {
6460 key: "style",
6461 value: function style() {
6462 if (!this.firstElement) {
6463 return {};
6464 }
6465
6466 return this.firstElement.currentStyle || window.getComputedStyle(this.firstElement);
6467 } // Width without padding and border even if box-sizing is used.
6468
6469 }, {
6470 key: "width",
6471 value: function width() {
6472 var style = this.style();
6473 return this.firstElement.clientWidth - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight);
6474 } // Height without padding and border even if box-sizing is used.
6475
6476 }, {
6477 key: "height",
6478 value: function height() {
6479 var style = this.style();
6480 return this.firstElement.clientHeight - parseFloat(style.paddingTop) - parseFloat(style.paddingBottom);
6481 }
6482 }], [{
6483 key: "generateUUID",
6484 value: function generateUUID() {
6485 return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
6486 var r = Math.random() * 16 | 0,
6487 v = c == 'x' ? r : r & 0x3 | 0x8;
6488 return v.toString(16);
6489 });
6490 }
6491 }]);
6492
6493 return lgQuery;
6494}();
6495lgQuery_lgQuery.eventListeners = {};
6496function $LG(selector) {
6497 initLgPolyfills();
6498 return new lgQuery_lgQuery(selector);
6499}
6500// CONCATENATED MODULE: ../src/lg-utils.ts
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516var defaultDynamicOptions = ['src', 'sources', 'subHtml', 'subHtmlUrl', 'html', 'video', 'poster', 'slideName', 'responsive', 'srcset', 'sizes', 'iframe', 'downloadUrl', 'download', 'width', 'facebookShareUrl', 'tweetText', 'iframeTitle', 'twitterShareUrl', 'pinterestShareUrl', 'pinterestText', 'fbHtml', 'disqusIdentifier', 'disqusUrl']; // Convert html data-attribute to camalcase
6517
6518function convertToData(attr) {
6519 // FInd a way for lgsize
6520 if (attr === 'href') {
6521 return 'src';
6522 }
6523
6524 attr = attr.replace('data-', '');
6525 attr = attr.charAt(0).toLowerCase() + attr.slice(1);
6526 attr = attr.replace(/-([a-z])/g, function (g) {
6527 return g[1].toUpperCase();
6528 });
6529 return attr;
6530}
6531var utils = {
6532 /**
6533 * get possible width and height from the lgSize attribute. Used for ZoomFromOrigin option
6534 */
6535 getSize: function getSize(el, container) {
6536 var spacing = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
6537 var defaultLgSize = arguments.length > 3 ? arguments[3] : undefined;
6538 var LGel = $LG(el);
6539 var lgSize = LGel.attr('data-lg-size') || defaultLgSize;
6540
6541 if (!lgSize) {
6542 return;
6543 }
6544
6545 var isResponsiveSizes = lgSize.split(','); // if at-least two viewport sizes are available
6546
6547 if (isResponsiveSizes[1]) {
6548 var wWidth = window.innerWidth;
6549
6550 for (var i = 0; i < isResponsiveSizes.length; i++) {
6551 var _size = isResponsiveSizes[i];
6552 var responsiveWidth = parseInt(_size.split('-')[2], 10);
6553
6554 if (responsiveWidth > wWidth) {
6555 lgSize = _size;
6556 break;
6557 } // take last item as last option
6558
6559
6560 if (i === isResponsiveSizes.length - 1) {
6561 lgSize = _size;
6562 }
6563 }
6564 }
6565
6566 var size = lgSize.split('-');
6567 var width = parseInt(size[0], 10);
6568 var height = parseInt(size[1], 10);
6569 var cWidth = container.width();
6570 var cHeight = container.height() - spacing;
6571 var maxWidth = Math.min(cWidth, width);
6572 var maxHeight = Math.min(cHeight, height);
6573 var ratio = Math.min(maxWidth / width, maxHeight / height);
6574 return {
6575 width: width * ratio,
6576 height: height * ratio
6577 };
6578 },
6579
6580 /**
6581 * @desc Get transform value based on the imageSize. Used for ZoomFromOrigin option
6582 * @param {jQuery Element}
6583 * @returns {String} Transform CSS string
6584 */
6585 getTransform: function getTransform(el, container, top, bottom, imageSize) {
6586 if (!imageSize) {
6587 return;
6588 }
6589
6590 var LGel = $LG(el).find('img').first();
6591
6592 if (!LGel.get()) {
6593 return;
6594 }
6595
6596 var containerRect = container.get().getBoundingClientRect();
6597 var wWidth = containerRect.width; // using innerWidth to include mobile safari bottom bar
6598
6599 var wHeight = container.height() - (top + bottom);
6600 var elWidth = LGel.width();
6601 var elHeight = LGel.height();
6602 var elStyle = LGel.style();
6603 var x = (wWidth - elWidth) / 2 - LGel.offset().left + (parseFloat(elStyle.paddingLeft) || 0) + (parseFloat(elStyle.borderLeft) || 0) + $LG(window).scrollLeft() + containerRect.left;
6604 var y = (wHeight - elHeight) / 2 - LGel.offset().top + (parseFloat(elStyle.paddingTop) || 0) + (parseFloat(elStyle.borderTop) || 0) + $LG(window).scrollTop() + top;
6605 var scX = elWidth / imageSize.width;
6606 var scY = elHeight / imageSize.height;
6607 var transform = 'translate3d(' + (x *= -1) + 'px, ' + (y *= -1) + 'px, 0) scale3d(' + scX + ', ' + scY + ', 1)';
6608 return transform;
6609 },
6610 getIframeMarkup: function getIframeMarkup(iframeWidth, iframeHeight, iframeMaxWidth, iframeMaxHeight, src, iframeTitle) {
6611 var title = iframeTitle ? 'title="' + iframeTitle + '"' : '';
6612 return "<div class=\"lg-video-cont lg-has-iframe\" style=\"width:".concat(iframeWidth, "; max-width:").concat(iframeMaxWidth, "; height: ").concat(iframeHeight, "; max-height:").concat(iframeMaxHeight, "\">\n <iframe class=\"lg-object\" frameborder=\"0\" ").concat(title, " src=\"").concat(src, "\" allowfullscreen=\"true\"></iframe>\n </div>");
6613 },
6614 getImgMarkup: function getImgMarkup(index, src, altAttr, srcset, sizes, sources) {
6615 var srcsetAttr = srcset ? "srcset=\"".concat(srcset, "\"") : '';
6616 var sizesAttr = sizes ? "sizes=\"".concat(sizes, "\"") : '';
6617 var imgMarkup = "<img ".concat(altAttr, " ").concat(srcsetAttr, " ").concat(sizesAttr, " class=\"lg-object lg-image\" data-index=\"").concat(index, "\" src=\"").concat(src, "\" />");
6618 var sourceTag = '';
6619
6620 if (sources) {
6621 var sourceObj = typeof sources === 'string' ? JSON.parse(sources) : sources;
6622 sourceTag = sourceObj.map(function (source) {
6623 var attrs = '';
6624 Object.keys(source).forEach(function (key) {
6625 // Do not remove the first space as it is required to separate the attributes
6626 attrs += " ".concat(key, "=\"").concat(source[key], "\"");
6627 });
6628 return "<source ".concat(attrs, "></source>");
6629 });
6630 }
6631
6632 return "".concat(sourceTag).concat(imgMarkup);
6633 },
6634 // Get src from responsive src
6635 getResponsiveSrc: function getResponsiveSrc(srcItms) {
6636 var rsWidth = [];
6637 var rsSrc = [];
6638 var src = '';
6639
6640 for (var i = 0; i < srcItms.length; i++) {
6641 var _src = srcItms[i].split(' '); // Manage empty space
6642
6643
6644 if (_src[0] === '') {
6645 _src.splice(0, 1);
6646 }
6647
6648 rsSrc.push(_src[0]);
6649 rsWidth.push(_src[1]);
6650 }
6651
6652 var wWidth = window.innerWidth;
6653
6654 for (var j = 0; j < rsWidth.length; j++) {
6655 if (parseInt(rsWidth[j], 10) > wWidth) {
6656 src = rsSrc[j];
6657 break;
6658 }
6659 }
6660
6661 return src;
6662 },
6663 isImageLoaded: function isImageLoaded(img) {
6664 if (!img) return false; // During the onload event, IE correctly identifies any images that
6665 // weren’t downloaded as not complete. Others should too. Gecko-based
6666 // browsers act like NS4 in that they report this incorrectly.
6667
6668 if (!img.complete) {
6669 return false;
6670 } // However, they do have two very useful properties: naturalWidth and
6671 // naturalHeight. These give the true size of the image. If it failed
6672 // to load, either of these should be zero.
6673
6674
6675 if (img.naturalWidth === 0) {
6676 return false;
6677 } // No other way of checking: assume it’s ok.
6678
6679
6680 return true;
6681 },
6682 getVideoPosterMarkup: function getVideoPosterMarkup(_poster, dummyImg, videoContStyle, playVideoString, _isVideo) {
6683 var videoClass = '';
6684
6685 if (_isVideo && _isVideo.youtube) {
6686 videoClass = 'lg-has-youtube';
6687 } else if (_isVideo && _isVideo.vimeo) {
6688 videoClass = 'lg-has-vimeo';
6689 } else {
6690 videoClass = 'lg-has-html5';
6691 }
6692
6693 return "<div class=\"lg-video-cont ".concat(videoClass, "\" style=\"").concat(videoContStyle, "\">\n <div class=\"lg-video-play-button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"xMidYMid\"\n focusable=\"false\"\n aria-labelledby=\"").concat(playVideoString, "\"\n role=\"img\"\n class=\"lg-video-play-icon\"\n >\n <title>").concat(playVideoString, "</title>\n <polygon class=\"lg-video-play-icon-inner\" points=\"1,0 20,10 1,20\"></polygon>\n </svg>\n <svg class=\"lg-video-play-icon-bg\" viewBox=\"0 0 50 50\" focusable=\"false\">\n <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle></svg>\n <svg class=\"lg-video-play-icon-circle\" viewBox=\"0 0 50 50\" focusable=\"false\">\n <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle>\n </svg>\n </div>\n ").concat(dummyImg || '', "\n <img class=\"lg-object lg-video-poster\" src=\"").concat(_poster, "\" />\n </div>");
6694 },
6695 getFocusableElements: function getFocusableElements(container) {
6696 var elements = container.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])');
6697 var visibleElements = [].filter.call(elements, function (element) {
6698 var style = window.getComputedStyle(element);
6699 return style.display !== 'none' && style.visibility !== 'hidden';
6700 });
6701 return visibleElements;
6702 },
6703
6704 /**
6705 * @desc Create dynamic elements array from gallery items when dynamic option is false
6706 * It helps to avoid frequent DOM interaction
6707 * and avoid multiple checks for dynamic elments
6708 *
6709 * @returns {Array} dynamicEl
6710 */
6711 getDynamicOptions: function getDynamicOptions(items, extraProps, getCaptionFromTitleOrAlt, exThumbImage) {
6712 var dynamicElements = [];
6713 var availableDynamicOptions = [].concat(defaultDynamicOptions, toConsumableArray_toConsumableArray(extraProps));
6714 [].forEach.call(items, function (item) {
6715 var dynamicEl = {};
6716
6717 for (var i = 0; i < item.attributes.length; i++) {
6718 var attr = item.attributes[i];
6719
6720 if (attr.specified) {
6721 var dynamicAttr = convertToData(attr.name);
6722 var label = '';
6723
6724 if (availableDynamicOptions.indexOf(dynamicAttr) > -1) {
6725 label = dynamicAttr;
6726 }
6727
6728 if (label) {
6729 dynamicEl[label] = attr.value;
6730 }
6731 }
6732 }
6733
6734 var currentItem = $LG(item);
6735 var alt = currentItem.find('img').first().attr('alt');
6736 var title = currentItem.attr('title');
6737 var thumb = exThumbImage ? currentItem.attr(exThumbImage) : currentItem.find('img').first().attr('src');
6738 dynamicEl.thumb = thumb;
6739
6740 if (getCaptionFromTitleOrAlt && !dynamicEl.subHtml) {
6741 dynamicEl.subHtml = title || alt || '';
6742 }
6743
6744 dynamicEl.alt = alt || title || '';
6745 dynamicElements.push(dynamicEl);
6746 });
6747 return dynamicElements;
6748 },
6749 isMobile: function isMobile() {
6750 return /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
6751 },
6752
6753 /**
6754 * @desc Check the given src is video
6755 * @param {String} src
6756 * @return {Object} video type
6757 * Ex:{ youtube : ["//www.youtube.com/watch?v=c0asJgSyxcY", "c0asJgSyxcY"] }
6758 *
6759 * @todo - this information can be moved to dynamicEl to avoid frequent calls
6760 */
6761 isVideo: function isVideo(src, isHTML5VIdeo, index) {
6762 if (!src) {
6763 if (isHTML5VIdeo) {
6764 return {
6765 html5: true
6766 };
6767 } else {
6768 console.error('lightGallery :- data-src is not provided on slide item ' + (index + 1) + '. Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/');
6769 return;
6770 }
6771 }
6772
6773 var youtube = src.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i);
6774 var vimeo = src.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i);
6775 var wistia = src.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);
6776
6777 if (youtube) {
6778 return {
6779 youtube: youtube
6780 };
6781 } else if (vimeo) {
6782 return {
6783 vimeo: vimeo
6784 };
6785 } else if (wistia) {
6786 return {
6787 wistia: wistia
6788 };
6789 }
6790 }
6791};
6792/* harmony default export */ var lg_utils = (utils);
6793// CONCATENATED MODULE: ../src/lightgallery.ts
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805 // @ref - https://stackoverflow.com/questions/3971841/how-to-resize-images-proportionally-keeping-the-aspect-ratio
6806// @ref - https://2ality.com/2017/04/setting-up-multi-platform-packages.html
6807// Unique id for each gallery
6808
6809var lgId = 0;
6810var lightgallery_LightGallery = /*#__PURE__*/function () {
6811 function LightGallery(element, options) {
6812 _classCallCheck(this, LightGallery);
6813
6814 this.lgOpened = false;
6815 this.index = 0; // lightGallery modules
6816
6817 this.plugins = []; // false when lightGallery load first slide content;
6818
6819 this.lGalleryOn = false; // True when a slide animation is in progress
6820
6821 this.lgBusy = false;
6822 this.currentItemsInDom = []; // Scroll top value before lightGallery is opened
6823
6824 this.prevScrollTop = 0;
6825 this.bodyPaddingRight = 0;
6826 this.isDummyImageRemoved = false;
6827 this.dragOrSwipeEnabled = false;
6828 this.mediaContainerPosition = {
6829 top: 0,
6830 bottom: 0
6831 };
6832
6833 if (!element) {
6834 return this;
6835 }
6836
6837 lgId++;
6838 this.lgId = lgId;
6839 this.el = element;
6840 this.LGel = $LG(element);
6841 this.generateSettings(options);
6842 this.buildModules(); // When using dynamic mode, ensure dynamicEl is an array
6843
6844 if (this.settings.dynamic && this.settings.dynamicEl !== undefined && !Array.isArray(this.settings.dynamicEl)) {
6845 throw 'When using dynamic mode, you must also define dynamicEl as an Array.';
6846 }
6847
6848 this.galleryItems = this.getItems();
6849 this.normalizeSettings(); // Gallery items
6850
6851 this.init();
6852 this.validateLicense();
6853 return this;
6854 }
6855
6856 _createClass(LightGallery, [{
6857 key: "generateSettings",
6858 value: function generateSettings(options) {
6859 // lightGallery settings
6860 this.settings = _objectSpread2(_objectSpread2({}, lightGalleryCoreSettings), options);
6861
6862 if (this.settings.isMobile && typeof this.settings.isMobile === 'function' ? this.settings.isMobile() : lg_utils.isMobile()) {
6863 var mobileSettings = _objectSpread2(_objectSpread2({}, this.settings.mobileSettings), this.settings.mobileSettings);
6864
6865 this.settings = _objectSpread2(_objectSpread2({}, this.settings), mobileSettings);
6866 }
6867 }
6868 }, {
6869 key: "normalizeSettings",
6870 value: function normalizeSettings() {
6871 if (this.settings.slideEndAnimation) {
6872 this.settings.hideControlOnEnd = false;
6873 }
6874
6875 if (!this.settings.closable) {
6876 this.settings.swipeToClose = false;
6877 } // And reset it on close to get the correct value next time
6878
6879
6880 this.zoomFromOrigin = this.settings.zoomFromOrigin; // At the moment, Zoom from image doesn't support dynamic options
6881 // @todo add zoomFromOrigin support for dynamic images
6882
6883 if (this.settings.dynamic) {
6884 this.zoomFromOrigin = false;
6885 }
6886
6887 if (!this.settings.container) {
6888 this.settings.container = document.body;
6889 } // settings.preload should not be grater than $item.length
6890
6891
6892 this.settings.preload = Math.min(this.settings.preload, this.galleryItems.length);
6893 }
6894 }, {
6895 key: "init",
6896 value: function init() {
6897 var _this = this;
6898
6899 this.addSlideVideoInfo(this.galleryItems);
6900 this.buildStructure();
6901 this.LGel.trigger(lGEvents.init, {
6902 instance: this
6903 });
6904
6905 if (this.settings.keyPress) {
6906 this.keyPress();
6907 }
6908
6909 setTimeout(function () {
6910 _this.enableDrag();
6911
6912 _this.enableSwipe();
6913
6914 _this.triggerPosterClick();
6915 }, 50);
6916 this.arrow();
6917
6918 if (this.settings.mousewheel) {
6919 this.mousewheel();
6920 }
6921
6922 if (!this.settings.dynamic) {
6923 this.openGalleryOnItemClick();
6924 }
6925 }
6926 }, {
6927 key: "openGalleryOnItemClick",
6928 value: function openGalleryOnItemClick() {
6929 var _this2 = this;
6930
6931 var _loop2 = function _loop2(index) {
6932 var element = _this2.items[index];
6933 var $element = $LG(element); // Using different namespace for click because click event should not unbind if selector is same object('this')
6934 // @todo manage all event listners - should have namespace that represent element
6935
6936 var uuid = lgQuery_lgQuery.generateUUID();
6937 $element.attr('data-lg-id', uuid).on("click.lgcustom-item-".concat(uuid), function (e) {
6938 e.preventDefault();
6939 var currentItemIndex = _this2.settings.index || index;
6940
6941 _this2.openGallery(currentItemIndex, element);
6942 });
6943 };
6944
6945 // Using for loop instead of using bubbling as the items can be any html element.
6946 for (var index = 0; index < this.items.length; index++) {
6947 _loop2(index);
6948 }
6949 }
6950 /**
6951 * Module constructor
6952 * Modules are build incrementally.
6953 * Gallery should be opened only once all the modules are initialized.
6954 * use moduleBuildTimeout to make sure this
6955 */
6956
6957 }, {
6958 key: "buildModules",
6959 value: function buildModules() {
6960 var _this3 = this;
6961
6962 this.settings.plugins.forEach(function (plugin) {
6963 _this3.plugins.push(new plugin(_this3, $LG));
6964 });
6965 }
6966 }, {
6967 key: "validateLicense",
6968 value: function validateLicense() {
6969 if (!this.settings.licenseKey) {
6970 console.error('Please provide a valid license key');
6971 } else if (this.settings.licenseKey === '0000-0000-000-0000') {
6972 console.warn("lightGallery: ".concat(this.settings.licenseKey, " license key is not valid for production use"));
6973 }
6974 }
6975 }, {
6976 key: "getSlideItem",
6977 value: function getSlideItem(index) {
6978 return $LG(this.getSlideItemId(index));
6979 }
6980 }, {
6981 key: "getSlideItemId",
6982 value: function getSlideItemId(index) {
6983 return "#lg-item-".concat(this.lgId, "-").concat(index);
6984 }
6985 }, {
6986 key: "getIdName",
6987 value: function getIdName(id) {
6988 return "".concat(id, "-").concat(this.lgId);
6989 }
6990 }, {
6991 key: "getElementById",
6992 value: function getElementById(id) {
6993 return $LG("#".concat(this.getIdName(id)));
6994 }
6995 }, {
6996 key: "manageSingleSlideClassName",
6997 value: function manageSingleSlideClassName() {
6998 if (this.galleryItems.length < 2) {
6999 this.outer.addClass('lg-single-item');
7000 } else {
7001 this.outer.removeClass('lg-single-item');
7002 }
7003 }
7004 }, {
7005 key: "buildStructure",
7006 value: function buildStructure() {
7007 var _this4 = this;
7008
7009 var container = this.$container && this.$container.get();
7010
7011 if (container) {
7012 return;
7013 }
7014
7015 var controls = '';
7016 var subHtmlCont = ''; // Create controls
7017
7018 if (this.settings.controls) {
7019 controls = "<button type=\"button\" id=\"".concat(this.getIdName('lg-prev'), "\" aria-label=\"").concat(this.settings.strings['previousSlide'], "\" class=\"lg-prev lg-icon\"> ").concat(this.settings.prevHtml, " </button>\n <button type=\"button\" id=\"").concat(this.getIdName('lg-next'), "\" aria-label=\"").concat(this.settings.strings['nextSlide'], "\" class=\"lg-next lg-icon\"> ").concat(this.settings.nextHtml, " </button>");
7020 }
7021
7022 if (this.settings.appendSubHtmlTo !== '.lg-item') {
7023 subHtmlCont = '<div class="lg-sub-html" role="status" aria-live="polite"></div>';
7024 }
7025
7026 var addClasses = '';
7027
7028 if (this.settings.allowMediaOverlap) {
7029 // Do not remove space before last single quote
7030 addClasses += 'lg-media-overlap ';
7031 }
7032
7033 var ariaLabelledby = this.settings.ariaLabelledby ? 'aria-labelledby="' + this.settings.ariaLabelledby + '"' : '';
7034 var ariaDescribedby = this.settings.ariaDescribedby ? 'aria-describedby="' + this.settings.ariaDescribedby + '"' : '';
7035 var containerClassName = "lg-container ".concat(this.settings.addClass, " ").concat(document.body !== this.settings.container ? 'lg-inline' : '');
7036 var closeIcon = this.settings.closable && this.settings.showCloseIcon ? "<button type=\"button\" aria-label=\"".concat(this.settings.strings['closeGallery'], "\" id=\"").concat(this.getIdName('lg-close'), "\" class=\"lg-close lg-icon\"></button>") : '';
7037 var maximizeIcon = this.settings.showMaximizeIcon ? "<button type=\"button\" aria-label=\"".concat(this.settings.strings['toggleMaximize'], "\" id=\"").concat(this.getIdName('lg-maximize'), "\" class=\"lg-maximize lg-icon\"></button>") : '';
7038 var template = "\n <div class=\"".concat(containerClassName, "\" id=\"").concat(this.getIdName('lg-container'), "\" tabindex=\"-1\" aria-modal=\"true\" ").concat(ariaLabelledby, " ").concat(ariaDescribedby, " role=\"dialog\"\n >\n <div id=\"").concat(this.getIdName('lg-backdrop'), "\" class=\"lg-backdrop\"></div>\n\n <div id=\"").concat(this.getIdName('lg-outer'), "\" class=\"lg-outer lg-use-css3 lg-css3 lg-hide-items ").concat(addClasses, " \">\n\n <div id=\"").concat(this.getIdName('lg-content'), "\" class=\"lg-content\">\n <div id=\"").concat(this.getIdName('lg-inner'), "\" class=\"lg-inner\">\n </div>\n ").concat(controls, "\n </div>\n <div id=\"").concat(this.getIdName('lg-toolbar'), "\" class=\"lg-toolbar lg-group\">\n ").concat(maximizeIcon, "\n ").concat(closeIcon, "\n </div>\n ").concat(this.settings.appendSubHtmlTo === '.lg-outer' ? subHtmlCont : '', "\n <div id=\"").concat(this.getIdName('lg-components'), "\" class=\"lg-components\">\n ").concat(this.settings.appendSubHtmlTo === '.lg-sub-html' ? subHtmlCont : '', "\n </div>\n </div>\n </div>\n ");
7039 $LG(this.settings.container).append(template);
7040
7041 if (document.body !== this.settings.container) {
7042 $LG(this.settings.container).css('position', 'relative');
7043 }
7044
7045 this.outer = this.getElementById('lg-outer');
7046 this.$lgComponents = this.getElementById('lg-components');
7047 this.$backdrop = this.getElementById('lg-backdrop');
7048 this.$container = this.getElementById('lg-container');
7049 this.$inner = this.getElementById('lg-inner');
7050 this.$content = this.getElementById('lg-content');
7051 this.$toolbar = this.getElementById('lg-toolbar');
7052 this.$backdrop.css('transition-duration', this.settings.backdropDuration + 'ms');
7053 var outerClassNames = "".concat(this.settings.mode, " ");
7054 this.manageSingleSlideClassName();
7055
7056 if (this.settings.enableDrag) {
7057 outerClassNames += 'lg-grab ';
7058 }
7059
7060 this.outer.addClass(outerClassNames);
7061 this.$inner.css('transition-timing-function', this.settings.easing);
7062 this.$inner.css('transition-duration', this.settings.speed + 'ms');
7063
7064 if (this.settings.download) {
7065 this.$toolbar.append("<a id=\"".concat(this.getIdName('lg-download'), "\" target=\"_blank\" rel=\"noopener\" aria-label=\"").concat(this.settings.strings['download'], "\" download class=\"lg-download lg-icon\"></a>"));
7066 }
7067
7068 this.counter();
7069 $LG(window).on("resize.lg.global".concat(this.lgId, " orientationchange.lg.global").concat(this.lgId), function () {
7070 _this4.refreshOnResize();
7071 });
7072 this.hideBars();
7073 this.manageCloseGallery();
7074 this.toggleMaximize();
7075 this.initModules();
7076 }
7077 }, {
7078 key: "refreshOnResize",
7079 value: function refreshOnResize() {
7080 if (this.lgOpened) {
7081 var currentGalleryItem = this.galleryItems[this.index];
7082 var __slideVideoInfo = currentGalleryItem.__slideVideoInfo;
7083 this.mediaContainerPosition = this.getMediaContainerPosition();
7084 var _this$mediaContainerP = this.mediaContainerPosition,
7085 top = _this$mediaContainerP.top,
7086 bottom = _this$mediaContainerP.bottom;
7087 this.currentImageSize = lg_utils.getSize(this.items[this.index], this.outer, top + bottom, __slideVideoInfo && this.settings.videoMaxSize);
7088
7089 if (__slideVideoInfo) {
7090 this.resizeVideoSlide(this.index, this.currentImageSize);
7091 }
7092
7093 if (this.zoomFromOrigin && !this.isDummyImageRemoved) {
7094 var imgStyle = this.getDummyImgStyles(this.currentImageSize);
7095 this.outer.find('.lg-current .lg-dummy-img').first().attr('style', imgStyle);
7096 }
7097
7098 this.LGel.trigger(lGEvents.containerResize);
7099 }
7100 }
7101 }, {
7102 key: "resizeVideoSlide",
7103 value: function resizeVideoSlide(index, imageSize) {
7104 var lgVideoStyle = this.getVideoContStyle(imageSize);
7105 var currentSlide = this.getSlideItem(index);
7106 currentSlide.find('.lg-video-cont').attr('style', lgVideoStyle);
7107 }
7108 /**
7109 * Update slides dynamically.
7110 * Add, edit or delete slides dynamically when lightGallery is opened.
7111 * Modify the current gallery items and pass it via updateSlides method
7112 * @note
7113 * - Do not mutate existing lightGallery items directly.
7114 * - Always pass new list of gallery items
7115 * - You need to take care of thumbnails outside the gallery if any
7116 * - user this method only if you want to update slides when the gallery is opened. Otherwise, use `refresh()` method.
7117 * @param items Gallery items
7118 * @param index After the update operation, which slide gallery should navigate to
7119 * @category lGPublicMethods
7120 * @example
7121 * const plugin = lightGallery();
7122 *
7123 * // Adding slides dynamically
7124 * let galleryItems = [
7125 * // Access existing lightGallery items
7126 * // galleryItems are automatically generated internally from the gallery HTML markup
7127 * // or directly from galleryItems when dynamic gallery is used
7128 * ...plugin.galleryItems,
7129 * ...[
7130 * {
7131 * src: 'img/img-1.png',
7132 * thumb: 'img/thumb1.png',
7133 * },
7134 * ],
7135 * ];
7136 * plugin.updateSlides(
7137 * galleryItems,
7138 * plugin.index,
7139 * );
7140 *
7141 *
7142 * // Remove slides dynamically
7143 * galleryItems = JSON.parse(
7144 * JSON.stringify(updateSlideInstance.galleryItems),
7145 * );
7146 * galleryItems.shift();
7147 * updateSlideInstance.updateSlides(galleryItems, 1);
7148 * @see <a href="/demos/update-slides/">Demo</a>
7149 */
7150
7151 }, {
7152 key: "updateSlides",
7153 value: function updateSlides(items, index) {
7154 if (this.index > items.length - 1) {
7155 this.index = items.length - 1;
7156 }
7157
7158 if (items.length === 1) {
7159 this.index = 0;
7160 }
7161
7162 if (!items.length) {
7163 this.closeGallery();
7164 return;
7165 }
7166
7167 var currentSrc = this.galleryItems[index].src;
7168 this.galleryItems = items;
7169 this.updateControls();
7170 this.$inner.empty();
7171 this.currentItemsInDom = [];
7172 var _index = 0; // Find the current index based on source value of the slide
7173
7174 this.galleryItems.some(function (galleryItem, itemIndex) {
7175 if (galleryItem.src === currentSrc) {
7176 _index = itemIndex;
7177 return true;
7178 }
7179
7180 return false;
7181 });
7182 this.currentItemsInDom = this.organizeSlideItems(_index, -1);
7183 this.loadContent(_index, true);
7184 this.getSlideItem(_index).addClass('lg-current');
7185 this.index = _index;
7186 this.updateCurrentCounter(_index);
7187 this.LGel.trigger(lGEvents.updateSlides);
7188 } // Get gallery items based on multiple conditions
7189
7190 }, {
7191 key: "getItems",
7192 value: function getItems() {
7193 // Gallery items
7194 this.items = [];
7195
7196 if (!this.settings.dynamic) {
7197 if (this.settings.selector === 'this') {
7198 this.items.push(this.el);
7199 } else if (this.settings.selector) {
7200 if (typeof this.settings.selector === 'string') {
7201 if (this.settings.selectWithin) {
7202 var selectWithin = $LG(this.settings.selectWithin);
7203 this.items = selectWithin.find(this.settings.selector).get();
7204 } else {
7205 this.items = this.el.querySelectorAll(this.settings.selector);
7206 }
7207 } else {
7208 this.items = this.settings.selector;
7209 }
7210 } else {
7211 this.items = this.el.children;
7212 }
7213
7214 return lg_utils.getDynamicOptions(this.items, this.settings.extraProps, this.settings.getCaptionFromTitleOrAlt, this.settings.exThumbImage);
7215 } else {
7216 return this.settings.dynamicEl || [];
7217 }
7218 }
7219 }, {
7220 key: "shouldHideScrollbar",
7221 value: function shouldHideScrollbar() {
7222 return this.settings.hideScrollbar && document.body === this.settings.container;
7223 }
7224 }, {
7225 key: "hideScrollbar",
7226 value: function hideScrollbar() {
7227 if (!this.shouldHideScrollbar()) {
7228 return;
7229 }
7230
7231 this.bodyPaddingRight = parseFloat($LG('body').style().paddingRight);
7232 var bodyRect = document.documentElement.getBoundingClientRect();
7233 var scrollbarWidth = window.innerWidth - bodyRect.width;
7234 $LG(document.body).css('padding-right', scrollbarWidth + this.bodyPaddingRight + 'px');
7235 $LG(document.body).addClass('lg-overlay-open');
7236 }
7237 }, {
7238 key: "resetScrollBar",
7239 value: function resetScrollBar() {
7240 if (!this.shouldHideScrollbar()) {
7241 return;
7242 }
7243
7244 $LG(document.body).css('padding-right', this.bodyPaddingRight + 'px');
7245 $LG(document.body).removeClass('lg-overlay-open');
7246 }
7247 /**
7248 * Open lightGallery.
7249 * Open gallery with specific slide by passing index of the slide as parameter.
7250 * @category lGPublicMethods
7251 * @param {Number} index - index of the slide
7252 * @param {HTMLElement} element - Which image lightGallery should zoom from
7253 *
7254 * @example
7255 * const $dynamicGallery = document.getElementById('dynamic-gallery-demo');
7256 * const dynamicGallery = lightGallery($dynamicGallery, {
7257 * dynamic: true,
7258 * dynamicEl: [
7259 * {
7260 * src: 'img/1.jpg',
7261 * thumb: 'img/thumb-1.jpg',
7262 * subHtml: '<h4>Image 1 title</h4><p>Image 1 descriptions.</p>',
7263 * },
7264 * ...
7265 * ],
7266 * });
7267 * $dynamicGallery.addEventListener('click', function () {
7268 * // Starts with third item.(Optional).
7269 * // This is useful if you want use dynamic mode with
7270 * // custom thumbnails (thumbnails outside gallery),
7271 * dynamicGallery.openGallery(2);
7272 * });
7273 *
7274 */
7275
7276 }, {
7277 key: "openGallery",
7278 value: function openGallery() {
7279 var _this5 = this;
7280
7281 var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.settings.index;
7282 var element = arguments.length > 1 ? arguments[1] : undefined;
7283 // prevent accidental double execution
7284 if (this.lgOpened) return;
7285 this.lgOpened = true;
7286 this.outer.removeClass('lg-hide-items');
7287 this.hideScrollbar(); // Add display block, but still has opacity 0
7288
7289 this.$container.addClass('lg-show');
7290 var itemsToBeInsertedToDom = this.getItemsToBeInsertedToDom(index, index);
7291 this.currentItemsInDom = itemsToBeInsertedToDom;
7292 var items = '';
7293 itemsToBeInsertedToDom.forEach(function (item) {
7294 items = items + "<div id=\"".concat(item, "\" class=\"lg-item\"></div>");
7295 });
7296 this.$inner.append(items);
7297 this.addHtml(index);
7298 var transform = '';
7299 this.mediaContainerPosition = this.getMediaContainerPosition();
7300 var _this$mediaContainerP2 = this.mediaContainerPosition,
7301 top = _this$mediaContainerP2.top,
7302 bottom = _this$mediaContainerP2.bottom;
7303
7304 if (!this.settings.allowMediaOverlap) {
7305 this.setMediaContainerPosition(top, bottom);
7306 }
7307
7308 var __slideVideoInfo = this.galleryItems[index].__slideVideoInfo;
7309
7310 if (this.zoomFromOrigin && element) {
7311 this.currentImageSize = lg_utils.getSize(element, this.outer, top + bottom, __slideVideoInfo && this.settings.videoMaxSize);
7312 transform = lg_utils.getTransform(element, this.outer, top, bottom, this.currentImageSize);
7313 }
7314
7315 if (!this.zoomFromOrigin || !transform) {
7316 this.outer.addClass(this.settings.startClass);
7317 this.getSlideItem(index).removeClass('lg-complete');
7318 }
7319
7320 var timeout = this.settings.zoomFromOrigin ? 100 : this.settings.backdropDuration;
7321 setTimeout(function () {
7322 _this5.outer.addClass('lg-components-open');
7323 }, timeout);
7324 this.index = index;
7325 this.LGel.trigger(lGEvents.beforeOpen); // add class lg-current to remove initial transition
7326
7327 this.getSlideItem(index).addClass('lg-current');
7328 this.lGalleryOn = false; // Store the current scroll top value to scroll back after closing the gallery..
7329
7330 this.prevScrollTop = $LG(window).scrollTop();
7331 setTimeout(function () {
7332 // Need to check both zoomFromOrigin and transform values as we need to set set the
7333 // default opening animation if user missed to add the lg-size attribute
7334 if (_this5.zoomFromOrigin && transform) {
7335 var currentSlide = _this5.getSlideItem(index);
7336
7337 currentSlide.css('transform', transform);
7338 setTimeout(function () {
7339 currentSlide.addClass('lg-start-progress lg-start-end-progress').css('transition-duration', _this5.settings.startAnimationDuration + 'ms');
7340
7341 _this5.outer.addClass('lg-zoom-from-image');
7342 });
7343 setTimeout(function () {
7344 currentSlide.css('transform', 'translate3d(0, 0, 0)');
7345 }, 100);
7346 }
7347
7348 setTimeout(function () {
7349 _this5.$backdrop.addClass('in');
7350
7351 _this5.$container.addClass('lg-show-in');
7352 }, 10);
7353 setTimeout(function () {
7354 if (_this5.settings.trapFocus && document.body === _this5.settings.container) {
7355 _this5.trapFocus();
7356 }
7357 }, _this5.settings.backdropDuration + 50); // lg-visible class resets gallery opacity to 1
7358
7359 if (!_this5.zoomFromOrigin || !transform) {
7360 setTimeout(function () {
7361 _this5.outer.addClass('lg-visible');
7362 }, _this5.settings.backdropDuration);
7363 } // initiate slide function
7364
7365
7366 _this5.slide(index, false, false, false);
7367
7368 _this5.LGel.trigger(lGEvents.afterOpen);
7369 });
7370
7371 if (document.body === this.settings.container) {
7372 $LG('html').addClass('lg-on');
7373 }
7374 }
7375 /**
7376 * Note - Changing the position of the media on every slide transition creates a flickering effect.
7377 * Therefore, The height of the caption is calculated dynamically, only once based on the first slide caption.
7378 * if you have dynamic captions for each media,
7379 * you can provide an appropriate height for the captions via allowMediaOverlap option
7380 */
7381
7382 }, {
7383 key: "getMediaContainerPosition",
7384 value: function getMediaContainerPosition() {
7385 if (this.settings.allowMediaOverlap) {
7386 return {
7387 top: 0,
7388 bottom: 0
7389 };
7390 }
7391
7392 var top = this.$toolbar.get().clientHeight || 0;
7393 var subHtml = this.outer.find('.lg-components .lg-sub-html').get();
7394 var captionHeight = this.settings.defaultCaptionHeight || subHtml && subHtml.clientHeight || 0;
7395 var thumbContainer = this.outer.find('.lg-thumb-outer').get();
7396 var thumbHeight = thumbContainer ? thumbContainer.clientHeight : 0;
7397 var bottom = thumbHeight + captionHeight;
7398 return {
7399 top: top,
7400 bottom: bottom
7401 };
7402 }
7403 }, {
7404 key: "setMediaContainerPosition",
7405 value: function setMediaContainerPosition() {
7406 var top = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
7407 var bottom = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
7408 this.$content.css('top', top + 'px').css('bottom', bottom + 'px');
7409 }
7410 }, {
7411 key: "hideBars",
7412 value: function hideBars() {
7413 var _this6 = this;
7414
7415 // Hide controllers if mouse doesn't move for some period
7416 setTimeout(function () {
7417 _this6.outer.removeClass('lg-hide-items');
7418
7419 if (_this6.settings.hideBarsDelay > 0) {
7420 _this6.outer.on('mousemove.lg click.lg touchstart.lg', function () {
7421 _this6.outer.removeClass('lg-hide-items');
7422
7423 clearTimeout(_this6.hideBarTimeout); // Timeout will be cleared on each slide movement also
7424
7425 _this6.hideBarTimeout = setTimeout(function () {
7426 _this6.outer.addClass('lg-hide-items');
7427 }, _this6.settings.hideBarsDelay);
7428 });
7429
7430 _this6.outer.trigger('mousemove.lg');
7431 }
7432 }, this.settings.showBarsAfter);
7433 }
7434 }, {
7435 key: "initPictureFill",
7436 value: function initPictureFill($img) {
7437 if (this.settings.supportLegacyBrowser) {
7438 try {
7439 picturefill({
7440 elements: [$img.get()]
7441 });
7442 } catch (e) {
7443 console.warn('lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.');
7444 }
7445 }
7446 }
7447 /**
7448 * @desc Create image counter
7449 * Ex: 1/10
7450 */
7451
7452 }, {
7453 key: "counter",
7454 value: function counter() {
7455 if (this.settings.counter) {
7456 var counterHtml = "<div class=\"lg-counter\" role=\"status\" aria-live=\"polite\">\n <span id=\"".concat(this.getIdName('lg-counter-current'), "\" class=\"lg-counter-current\">").concat(this.index + 1, " </span> /\n <span id=\"").concat(this.getIdName('lg-counter-all'), "\" class=\"lg-counter-all\">").concat(this.galleryItems.length, " </span></div>");
7457 this.outer.find(this.settings.appendCounterTo).append(counterHtml);
7458 }
7459 }
7460 /**
7461 * @desc add sub-html into the slide
7462 * @param {Number} index - index of the slide
7463 */
7464
7465 }, {
7466 key: "addHtml",
7467 value: function addHtml(index) {
7468 var subHtml;
7469 var subHtmlUrl;
7470
7471 if (this.galleryItems[index].subHtmlUrl) {
7472 subHtmlUrl = this.galleryItems[index].subHtmlUrl;
7473 } else {
7474 subHtml = this.galleryItems[index].subHtml;
7475 }
7476
7477 if (!subHtmlUrl) {
7478 if (subHtml) {
7479 // get first letter of sub-html
7480 // if first letter starts with . or # get the html form the jQuery object
7481 var fL = subHtml.substring(0, 1);
7482
7483 if (fL === '.' || fL === '#') {
7484 if (this.settings.subHtmlSelectorRelative && !this.settings.dynamic) {
7485 subHtml = $LG(this.items).eq(index).find(subHtml).first().html();
7486 } else {
7487 subHtml = $LG(subHtml).first().html();
7488 }
7489 }
7490 } else {
7491 subHtml = '';
7492 }
7493 }
7494
7495 if (this.settings.appendSubHtmlTo !== '.lg-item') {
7496 if (subHtmlUrl) {
7497 this.outer.find('.lg-sub-html').load(subHtmlUrl);
7498 } else {
7499 this.outer.find('.lg-sub-html').html(subHtml);
7500 }
7501 } else {
7502 var currentSlide = $LG(this.getSlideItemId(index));
7503
7504 if (subHtmlUrl) {
7505 currentSlide.load(subHtmlUrl);
7506 } else {
7507 currentSlide.append("<div class=\"lg-sub-html\">".concat(subHtml, "</div>"));
7508 }
7509 } // Add lg-empty-html class if title doesn't exist
7510
7511
7512 if (typeof subHtml !== 'undefined' && subHtml !== null) {
7513 if (subHtml === '') {
7514 this.outer.find(this.settings.appendSubHtmlTo).addClass('lg-empty-html');
7515 } else {
7516 this.outer.find(this.settings.appendSubHtmlTo).removeClass('lg-empty-html');
7517 }
7518 }
7519
7520 this.LGel.trigger(lGEvents.afterAppendSubHtml, {
7521 index: index
7522 });
7523 }
7524 /**
7525 * @desc Preload slides
7526 * @param {Number} index - index of the slide
7527 * @todo preload not working for the first slide, Also, should work for the first and last slide as well
7528 */
7529
7530 }, {
7531 key: "preload",
7532 value: function preload(index) {
7533 for (var i = 1; i <= this.settings.preload; i++) {
7534 if (i >= this.galleryItems.length - index) {
7535 break;
7536 }
7537
7538 this.loadContent(index + i, false);
7539 }
7540
7541 for (var j = 1; j <= this.settings.preload; j++) {
7542 if (index - j < 0) {
7543 break;
7544 }
7545
7546 this.loadContent(index - j, false);
7547 }
7548 }
7549 }, {
7550 key: "getDummyImgStyles",
7551 value: function getDummyImgStyles(imageSize) {
7552 if (!imageSize) return '';
7553 return "width:".concat(imageSize.width, "px;\n margin-left: -").concat(imageSize.width / 2, "px;\n margin-top: -").concat(imageSize.height / 2, "px;\n height:").concat(imageSize.height, "px");
7554 }
7555 }, {
7556 key: "getVideoContStyle",
7557 value: function getVideoContStyle(imageSize) {
7558 if (!imageSize) return '';
7559 return "width:".concat(imageSize.width, "px;\n height:").concat(imageSize.height, "px");
7560 }
7561 }, {
7562 key: "getDummyImageContent",
7563 value: function getDummyImageContent($currentSlide, index, alt) {
7564 var $currentItem;
7565
7566 if (!this.settings.dynamic) {
7567 $currentItem = $LG(this.items).eq(index);
7568 }
7569
7570 if ($currentItem) {
7571 var _dummyImgSrc;
7572
7573 if (!this.settings.exThumbImage) {
7574 _dummyImgSrc = $currentItem.find('img').first().attr('src');
7575 } else {
7576 _dummyImgSrc = $currentItem.attr(this.settings.exThumbImage);
7577 }
7578
7579 if (!_dummyImgSrc) return '';
7580 var imgStyle = this.getDummyImgStyles(this.currentImageSize);
7581 var dummyImgContent = "<img ".concat(alt, " style=\"").concat(imgStyle, "\" class=\"lg-dummy-img\" src=\"").concat(_dummyImgSrc, "\" />");
7582 $currentSlide.addClass('lg-first-slide');
7583 this.outer.addClass('lg-first-slide-loading');
7584 return dummyImgContent;
7585 }
7586
7587 return '';
7588 }
7589 }, {
7590 key: "setImgMarkup",
7591 value: function setImgMarkup(src, $currentSlide, index) {
7592 var currentGalleryItem = this.galleryItems[index];
7593 var alt = currentGalleryItem.alt,
7594 srcset = currentGalleryItem.srcset,
7595 sizes = currentGalleryItem.sizes,
7596 sources = currentGalleryItem.sources; // Use the thumbnail as dummy image which will be resized to actual image size and
7597 // displayed on top of actual image
7598
7599 var imgContent = '';
7600 var altAttr = alt ? 'alt="' + alt + '"' : '';
7601
7602 if (this.isFirstSlideWithZoomAnimation()) {
7603 imgContent = this.getDummyImageContent($currentSlide, index, altAttr);
7604 } else {
7605 imgContent = lg_utils.getImgMarkup(index, src, altAttr, srcset, sizes, sources);
7606 }
7607
7608 var imgMarkup = "<picture class=\"lg-img-wrap\"> ".concat(imgContent, "</picture>");
7609 $currentSlide.prepend(imgMarkup);
7610 }
7611 }, {
7612 key: "onSlideObjectLoad",
7613 value: function onSlideObjectLoad($slide, isHTML5VideoWithoutPoster, onLoad, onError) {
7614 var mediaObject = $slide.find('.lg-object').first();
7615
7616 if (lg_utils.isImageLoaded(mediaObject.get()) || isHTML5VideoWithoutPoster) {
7617 onLoad();
7618 } else {
7619 mediaObject.on('load.lg error.lg', function () {
7620 onLoad && onLoad();
7621 });
7622 mediaObject.on('error.lg', function () {
7623 onError && onError();
7624 });
7625 }
7626 }
7627 /**
7628 *
7629 * @param $el Current slide item
7630 * @param index
7631 * @param delay Delay is 0 except first time
7632 * @param speed Speed is same as delay, except it is 0 if gallery is opened via hash plugin
7633 * @param isFirstSlide
7634 */
7635
7636 }, {
7637 key: "onLgObjectLoad",
7638 value: function onLgObjectLoad(currentSlide, index, delay, speed, isFirstSlide, isHTML5VideoWithoutPoster) {
7639 var _this7 = this;
7640
7641 this.onSlideObjectLoad(currentSlide, isHTML5VideoWithoutPoster, function () {
7642 _this7.triggerSlideItemLoad(currentSlide, index, delay, speed, isFirstSlide);
7643 }, function () {
7644 currentSlide.addClass('lg-complete lg-complete_');
7645 currentSlide.html('<span class="lg-error-msg">Oops... Failed to load content...</span>');
7646 });
7647 }
7648 }, {
7649 key: "triggerSlideItemLoad",
7650 value: function triggerSlideItemLoad($currentSlide, index, delay, speed, isFirstSlide) {
7651 var _this8 = this;
7652
7653 var currentGalleryItem = this.galleryItems[index]; // Adding delay for video slides without poster for better performance and user experience
7654 // Videos should start playing once once the gallery is completely loaded
7655
7656 var _speed = isFirstSlide && this.getSlideType(currentGalleryItem) === 'video' && !currentGalleryItem.poster ? speed : 0;
7657
7658 setTimeout(function () {
7659 $currentSlide.addClass('lg-complete lg-complete_');
7660
7661 _this8.LGel.trigger(lGEvents.slideItemLoad, {
7662 index: index,
7663 delay: delay || 0,
7664 isFirstSlide: isFirstSlide
7665 });
7666 }, _speed);
7667 }
7668 }, {
7669 key: "isFirstSlideWithZoomAnimation",
7670 value: function isFirstSlideWithZoomAnimation() {
7671 return !!(!this.lGalleryOn && this.zoomFromOrigin && this.currentImageSize);
7672 } // Add video slideInfo
7673
7674 }, {
7675 key: "addSlideVideoInfo",
7676 value: function addSlideVideoInfo(items) {
7677 var _this9 = this;
7678
7679 items.forEach(function (element, index) {
7680 element.__slideVideoInfo = lg_utils.isVideo(element.src, !!element.video, index);
7681
7682 if (element.__slideVideoInfo && _this9.settings.loadYouTubePoster && !element.poster && element.__slideVideoInfo.youtube) {
7683 element.poster = "//img.youtube.com/vi/".concat(element.__slideVideoInfo.youtube[1], "/maxresdefault.jpg");
7684 }
7685 });
7686 }
7687 /**
7688 * Load slide content into slide.
7689 * This is used to load content into slides that is not visible too
7690 * @param {Number} index - index of the slide.
7691 * @param {Boolean} rec - if true call loadcontent() function again.
7692 */
7693
7694 }, {
7695 key: "loadContent",
7696 value: function loadContent(index, rec) {
7697 var _this10 = this;
7698
7699 var currentGalleryItem = this.galleryItems[index];
7700 var $currentSlide = $LG(this.getSlideItemId(index));
7701 var poster = currentGalleryItem.poster,
7702 srcset = currentGalleryItem.srcset,
7703 sizes = currentGalleryItem.sizes,
7704 sources = currentGalleryItem.sources;
7705 var src = currentGalleryItem.src;
7706 var video = currentGalleryItem.video;
7707
7708 var _html5Video = video && typeof video === 'string' ? JSON.parse(video) : video;
7709
7710 if (currentGalleryItem.responsive) {
7711 var srcDyItms = currentGalleryItem.responsive.split(',');
7712 src = lg_utils.getResponsiveSrc(srcDyItms) || src;
7713 }
7714
7715 var videoInfo = currentGalleryItem.__slideVideoInfo;
7716 var lgVideoStyle = '';
7717 var iframe = !!currentGalleryItem.iframe;
7718 var isFirstSlide = !this.lGalleryOn; // delay for adding complete class. it is 0 except first time.
7719
7720 var delay = 0;
7721
7722 if (isFirstSlide) {
7723 if (this.zoomFromOrigin && this.currentImageSize) {
7724 delay = this.settings.startAnimationDuration + 10;
7725 } else {
7726 delay = this.settings.backdropDuration + 10;
7727 }
7728 }
7729
7730 if (!$currentSlide.hasClass('lg-loaded')) {
7731 if (videoInfo) {
7732 var _this$mediaContainerP3 = this.mediaContainerPosition,
7733 top = _this$mediaContainerP3.top,
7734 bottom = _this$mediaContainerP3.bottom;
7735 var videoSize = lg_utils.getSize(this.items[index], this.outer, top + bottom, videoInfo && this.settings.videoMaxSize);
7736 lgVideoStyle = this.getVideoContStyle(videoSize);
7737 }
7738
7739 if (iframe) {
7740 var markup = lg_utils.getIframeMarkup(this.settings.iframeWidth, this.settings.iframeHeight, this.settings.iframeMaxWidth, this.settings.iframeMaxHeight, src, currentGalleryItem.iframeTitle);
7741 $currentSlide.prepend(markup);
7742 } else if (poster) {
7743 var dummyImg = '';
7744 var hasStartAnimation = isFirstSlide && this.zoomFromOrigin && this.currentImageSize;
7745
7746 if (hasStartAnimation) {
7747 dummyImg = this.getDummyImageContent($currentSlide, index, '');
7748 }
7749
7750 var _markup = lg_utils.getVideoPosterMarkup(poster, dummyImg || '', lgVideoStyle, this.settings.strings['playVideo'], videoInfo);
7751
7752 $currentSlide.prepend(_markup);
7753 } else if (videoInfo) {
7754 var _markup2 = "<div class=\"lg-video-cont \" style=\"".concat(lgVideoStyle, "\"></div>");
7755
7756 $currentSlide.prepend(_markup2);
7757 } else {
7758 this.setImgMarkup(src, $currentSlide, index);
7759
7760 if (srcset || sources) {
7761 var $img = $currentSlide.find('.lg-object');
7762 this.initPictureFill($img);
7763 }
7764 }
7765
7766 if (poster || videoInfo) {
7767 this.LGel.trigger(lGEvents.hasVideo, {
7768 index: index,
7769 src: src,
7770 html5Video: _html5Video,
7771 hasPoster: !!poster
7772 });
7773 }
7774
7775 this.LGel.trigger(lGEvents.afterAppendSlide, {
7776 index: index
7777 });
7778
7779 if (this.lGalleryOn && this.settings.appendSubHtmlTo === '.lg-item') {
7780 this.addHtml(index);
7781 }
7782 } // For first time add some delay for displaying the start animation.
7783
7784
7785 var _speed = 0; // Do not change the delay value because it is required for zoom plugin.
7786 // If gallery opened from direct url (hash) speed value should be 0
7787
7788 if (delay && !$LG(document.body).hasClass('lg-from-hash')) {
7789 _speed = delay;
7790 } // Only for first slide and zoomFromOrigin is enabled
7791
7792
7793 if (this.isFirstSlideWithZoomAnimation()) {
7794 setTimeout(function () {
7795 $currentSlide.removeClass('lg-start-end-progress lg-start-progress').removeAttr('style');
7796 }, this.settings.startAnimationDuration + 100);
7797
7798 if (!$currentSlide.hasClass('lg-loaded')) {
7799 setTimeout(function () {
7800 if (_this10.getSlideType(currentGalleryItem) === 'image') {
7801 var alt = currentGalleryItem.alt;
7802 var altAttr = alt ? 'alt="' + alt + '"' : '';
7803 $currentSlide.find('.lg-img-wrap').append(lg_utils.getImgMarkup(index, src, altAttr, srcset, sizes, currentGalleryItem.sources));
7804
7805 if (srcset || sources) {
7806 var _$img = $currentSlide.find('.lg-object');
7807
7808 _this10.initPictureFill(_$img);
7809 }
7810 }
7811
7812 if (_this10.getSlideType(currentGalleryItem) === 'image' || _this10.getSlideType(currentGalleryItem) === 'video' && poster) {
7813 _this10.onLgObjectLoad($currentSlide, index, delay, _speed, true, false); // load remaining slides once the slide is completely loaded
7814
7815
7816 _this10.onSlideObjectLoad($currentSlide, !!(videoInfo && videoInfo.html5 && !poster), function () {
7817 _this10.loadContentOnFirstSlideLoad(index, $currentSlide, _speed);
7818 }, function () {
7819 _this10.loadContentOnFirstSlideLoad(index, $currentSlide, _speed);
7820 });
7821 }
7822 }, this.settings.startAnimationDuration + 100);
7823 }
7824 } // SLide content has been added to dom
7825
7826
7827 $currentSlide.addClass('lg-loaded');
7828
7829 if (!this.isFirstSlideWithZoomAnimation() || this.getSlideType(currentGalleryItem) === 'video' && !poster) {
7830 this.onLgObjectLoad($currentSlide, index, delay, _speed, isFirstSlide, !!(videoInfo && videoInfo.html5 && !poster));
7831 } // When gallery is opened once content is loaded (second time) need to add lg-complete class for css styling
7832
7833
7834 if ((!this.zoomFromOrigin || !this.currentImageSize) && $currentSlide.hasClass('lg-complete_') && !this.lGalleryOn) {
7835 setTimeout(function () {
7836 $currentSlide.addClass('lg-complete');
7837 }, this.settings.backdropDuration);
7838 } // Content loaded
7839 // Need to set lGalleryOn before calling preload function
7840
7841
7842 this.lGalleryOn = true;
7843
7844 if (rec === true) {
7845 if (!$currentSlide.hasClass('lg-complete_')) {
7846 $currentSlide.find('.lg-object').first().on('load.lg error.lg', function () {
7847 _this10.preload(index);
7848 });
7849 } else {
7850 this.preload(index);
7851 }
7852 }
7853 }
7854 /**
7855 * @desc Remove dummy image content and load next slides
7856 * Called only for the first time if zoomFromOrigin animation is enabled
7857 * @param index
7858 * @param $currentSlide
7859 * @param speed
7860 */
7861
7862 }, {
7863 key: "loadContentOnFirstSlideLoad",
7864 value: function loadContentOnFirstSlideLoad(index, $currentSlide, speed) {
7865 var _this11 = this;
7866
7867 setTimeout(function () {
7868 $currentSlide.find('.lg-dummy-img').remove();
7869 $currentSlide.removeClass('lg-first-slide');
7870
7871 _this11.outer.removeClass('lg-first-slide-loading');
7872
7873 _this11.isDummyImageRemoved = true;
7874
7875 _this11.preload(index);
7876 }, speed + 300);
7877 }
7878 }, {
7879 key: "getItemsToBeInsertedToDom",
7880 value: function getItemsToBeInsertedToDom(index, prevIndex) {
7881 var _this12 = this;
7882
7883 var numberOfItems = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
7884 var itemsToBeInsertedToDom = []; // Minimum 2 items should be there
7885
7886 var possibleNumberOfItems = Math.max(numberOfItems, 3);
7887 possibleNumberOfItems = Math.min(possibleNumberOfItems, this.galleryItems.length);
7888 var prevIndexItem = "lg-item-".concat(this.lgId, "-").concat(prevIndex);
7889
7890 if (this.galleryItems.length <= 3) {
7891 this.galleryItems.forEach(function (_element, index) {
7892 itemsToBeInsertedToDom.push("lg-item-".concat(_this12.lgId, "-").concat(index));
7893 });
7894 return itemsToBeInsertedToDom;
7895 }
7896
7897 if (index < (this.galleryItems.length - 1) / 2) {
7898 for (var idx = index; idx > index - possibleNumberOfItems / 2 && idx >= 0; idx--) {
7899 itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(idx));
7900 }
7901
7902 var numberOfExistingItems = itemsToBeInsertedToDom.length;
7903
7904 for (var _idx = 0; _idx < possibleNumberOfItems - numberOfExistingItems; _idx++) {
7905 itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(index + _idx + 1));
7906 }
7907 } else {
7908 for (var _idx2 = index; _idx2 <= this.galleryItems.length - 1 && _idx2 < index + possibleNumberOfItems / 2; _idx2++) {
7909 itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(_idx2));
7910 }
7911
7912 var _numberOfExistingItems = itemsToBeInsertedToDom.length;
7913
7914 for (var _idx3 = 0; _idx3 < possibleNumberOfItems - _numberOfExistingItems; _idx3++) {
7915 itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(index - _idx3 - 1));
7916 }
7917 }
7918
7919 if (this.settings.loop) {
7920 if (index === this.galleryItems.length - 1) {
7921 itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-", 0));
7922 } else if (index === 0) {
7923 itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(this.galleryItems.length - 1));
7924 }
7925 }
7926
7927 if (itemsToBeInsertedToDom.indexOf(prevIndexItem) === -1) {
7928 itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(prevIndex));
7929 }
7930
7931 return itemsToBeInsertedToDom;
7932 }
7933 }, {
7934 key: "organizeSlideItems",
7935 value: function organizeSlideItems(index, prevIndex) {
7936 var _this13 = this;
7937
7938 var itemsToBeInsertedToDom = this.getItemsToBeInsertedToDom(index, prevIndex, this.settings.numberOfSlideItemsInDom);
7939 itemsToBeInsertedToDom.forEach(function (item) {
7940 if (_this13.currentItemsInDom.indexOf(item) === -1) {
7941 _this13.$inner.append("<div id=\"".concat(item, "\" class=\"lg-item\"></div>"));
7942 }
7943 });
7944 this.currentItemsInDom.forEach(function (item) {
7945 if (itemsToBeInsertedToDom.indexOf(item) === -1) {
7946 $LG("#".concat(item)).remove();
7947 }
7948 });
7949 return itemsToBeInsertedToDom;
7950 }
7951 /**
7952 * Get previous index of the slide
7953 */
7954
7955 }, {
7956 key: "getPreviousSlideIndex",
7957 value: function getPreviousSlideIndex() {
7958 var prevIndex = 0;
7959
7960 try {
7961 var currentItemId = this.outer.find('.lg-current').first().attr('id');
7962 prevIndex = parseInt(currentItemId.split('-')[3]) || 0;
7963 } catch (error) {
7964 prevIndex = 0;
7965 }
7966
7967 return prevIndex;
7968 }
7969 }, {
7970 key: "setDownloadValue",
7971 value: function setDownloadValue(index) {
7972 if (this.settings.download) {
7973 var currentGalleryItem = this.galleryItems[index];
7974 var hideDownloadBtn = currentGalleryItem.downloadUrl === false || currentGalleryItem.downloadUrl === 'false';
7975
7976 if (hideDownloadBtn) {
7977 this.outer.addClass('lg-hide-download');
7978 } else {
7979 var $download = this.getElementById('lg-download');
7980 this.outer.removeClass('lg-hide-download');
7981 $download.attr('href', currentGalleryItem.downloadUrl || currentGalleryItem.src);
7982
7983 if (currentGalleryItem.download) {
7984 $download.attr('download', currentGalleryItem.download);
7985 }
7986 }
7987 }
7988 }
7989 }, {
7990 key: "makeSlideAnimation",
7991 value: function makeSlideAnimation(direction, currentSlideItem, previousSlideItem) {
7992 var _this14 = this;
7993
7994 if (this.lGalleryOn) {
7995 previousSlideItem.addClass('lg-slide-progress');
7996 }
7997
7998 setTimeout(function () {
7999 // remove all transitions
8000 _this14.outer.addClass('lg-no-trans');
8001
8002 _this14.outer.find('.lg-item').removeClass('lg-prev-slide lg-next-slide');
8003
8004 if (direction === 'prev') {
8005 //prevslide
8006 currentSlideItem.addClass('lg-prev-slide');
8007 previousSlideItem.addClass('lg-next-slide');
8008 } else {
8009 // next slide
8010 currentSlideItem.addClass('lg-next-slide');
8011 previousSlideItem.addClass('lg-prev-slide');
8012 } // give 50 ms for browser to add/remove class
8013
8014
8015 setTimeout(function () {
8016 _this14.outer.find('.lg-item').removeClass('lg-current');
8017
8018 currentSlideItem.addClass('lg-current'); // reset all transitions
8019
8020 _this14.outer.removeClass('lg-no-trans');
8021 }, 50);
8022 }, this.lGalleryOn ? this.settings.slideDelay : 0);
8023 }
8024 /**
8025 * Goto a specific slide.
8026 * @param {Number} index - index of the slide
8027 * @param {Boolean} fromTouch - true if slide function called via touch event or mouse drag
8028 * @param {Boolean} fromThumb - true if slide function called via thumbnail click
8029 * @param {String} direction - Direction of the slide(next/prev)
8030 * @category lGPublicMethods
8031 * @example
8032 * const plugin = lightGallery();
8033 * // to go to 3rd slide
8034 * plugin.slide(2);
8035 *
8036 */
8037
8038 }, {
8039 key: "slide",
8040 value: function slide(index, fromTouch, fromThumb, direction) {
8041 var _this15 = this;
8042
8043 var prevIndex = this.getPreviousSlideIndex();
8044 this.currentItemsInDom = this.organizeSlideItems(index, prevIndex); // Prevent multiple call, Required for hsh plugin
8045
8046 if (this.lGalleryOn && prevIndex === index) {
8047 return;
8048 }
8049
8050 var numberOfGalleryItems = this.galleryItems.length;
8051
8052 if (!this.lgBusy) {
8053 if (this.settings.counter) {
8054 this.updateCurrentCounter(index);
8055 }
8056
8057 var currentSlideItem = this.getSlideItem(index);
8058 var previousSlideItem = this.getSlideItem(prevIndex);
8059 var currentGalleryItem = this.galleryItems[index];
8060 var videoInfo = currentGalleryItem.__slideVideoInfo;
8061 this.outer.attr('data-lg-slide-type', this.getSlideType(currentGalleryItem));
8062 this.setDownloadValue(index);
8063
8064 if (videoInfo) {
8065 var _this$mediaContainerP4 = this.mediaContainerPosition,
8066 top = _this$mediaContainerP4.top,
8067 bottom = _this$mediaContainerP4.bottom;
8068 var videoSize = lg_utils.getSize(this.items[index], this.outer, top + bottom, videoInfo && this.settings.videoMaxSize);
8069 this.resizeVideoSlide(index, videoSize);
8070 }
8071
8072 this.LGel.trigger(lGEvents.beforeSlide, {
8073 prevIndex: prevIndex,
8074 index: index,
8075 fromTouch: !!fromTouch,
8076 fromThumb: !!fromThumb
8077 });
8078 this.lgBusy = true;
8079 clearTimeout(this.hideBarTimeout);
8080 this.arrowDisable(index);
8081
8082 if (!direction) {
8083 if (index < prevIndex) {
8084 direction = 'prev';
8085 } else if (index > prevIndex) {
8086 direction = 'next';
8087 }
8088 }
8089
8090 if (!fromTouch) {
8091 this.makeSlideAnimation(direction, currentSlideItem, previousSlideItem);
8092 } else {
8093 this.outer.find('.lg-item').removeClass('lg-prev-slide lg-current lg-next-slide');
8094 var touchPrev;
8095 var touchNext;
8096
8097 if (numberOfGalleryItems > 2) {
8098 touchPrev = index - 1;
8099 touchNext = index + 1;
8100
8101 if (index === 0 && prevIndex === numberOfGalleryItems - 1) {
8102 // next slide
8103 touchNext = 0;
8104 touchPrev = numberOfGalleryItems - 1;
8105 } else if (index === numberOfGalleryItems - 1 && prevIndex === 0) {
8106 // prev slide
8107 touchNext = 0;
8108 touchPrev = numberOfGalleryItems - 1;
8109 }
8110 } else {
8111 touchPrev = 0;
8112 touchNext = 1;
8113 }
8114
8115 if (direction === 'prev') {
8116 this.getSlideItem(touchNext).addClass('lg-next-slide');
8117 } else {
8118 this.getSlideItem(touchPrev).addClass('lg-prev-slide');
8119 }
8120
8121 currentSlideItem.addClass('lg-current');
8122 } // Do not put load content in set timeout as it needs to load immediately when the gallery is opened
8123
8124
8125 if (!this.lGalleryOn) {
8126 this.loadContent(index, true);
8127 } else {
8128 setTimeout(function () {
8129 _this15.loadContent(index, true); // Add title if this.settings.appendSubHtmlTo === lg-sub-html
8130
8131
8132 if (_this15.settings.appendSubHtmlTo !== '.lg-item') {
8133 _this15.addHtml(index);
8134 }
8135 }, this.settings.speed + 50 + (fromTouch ? 0 : this.settings.slideDelay));
8136 }
8137
8138 setTimeout(function () {
8139 _this15.lgBusy = false;
8140 previousSlideItem.removeClass('lg-slide-progress');
8141
8142 _this15.LGel.trigger(lGEvents.afterSlide, {
8143 prevIndex: prevIndex,
8144 index: index,
8145 fromTouch: fromTouch,
8146 fromThumb: fromThumb
8147 });
8148 }, (this.lGalleryOn ? this.settings.speed + 100 : 100) + (fromTouch ? 0 : this.settings.slideDelay));
8149 }
8150
8151 this.index = index;
8152 }
8153 }, {
8154 key: "updateCurrentCounter",
8155 value: function updateCurrentCounter(index) {
8156 this.getElementById('lg-counter-current').html(index + 1 + '');
8157 }
8158 }, {
8159 key: "updateCounterTotal",
8160 value: function updateCounterTotal() {
8161 this.getElementById('lg-counter-all').html(this.galleryItems.length + '');
8162 }
8163 }, {
8164 key: "getSlideType",
8165 value: function getSlideType(item) {
8166 if (item.__slideVideoInfo) {
8167 return 'video';
8168 } else if (item.iframe) {
8169 return 'iframe';
8170 } else {
8171 return 'image';
8172 }
8173 }
8174 }, {
8175 key: "touchMove",
8176 value: function touchMove(startCoords, endCoords, e) {
8177 var distanceX = endCoords.pageX - startCoords.pageX;
8178 var distanceY = endCoords.pageY - startCoords.pageY;
8179 var allowSwipe = false;
8180
8181 if (this.swipeDirection) {
8182 allowSwipe = true;
8183 } else {
8184 if (Math.abs(distanceX) > 15) {
8185 this.swipeDirection = 'horizontal';
8186 allowSwipe = true;
8187 } else if (Math.abs(distanceY) > 15) {
8188 this.swipeDirection = 'vertical';
8189 allowSwipe = true;
8190 }
8191 }
8192
8193 if (!allowSwipe) {
8194 return;
8195 }
8196
8197 var $currentSlide = this.getSlideItem(this.index);
8198
8199 if (this.swipeDirection === 'horizontal') {
8200 e === null || e === void 0 ? void 0 : e.preventDefault(); // reset opacity and transition duration
8201
8202 this.outer.addClass('lg-dragging'); // move current slide
8203
8204 this.setTranslate($currentSlide, distanceX, 0); // move next and prev slide with current slide
8205
8206 var width = $currentSlide.get().offsetWidth;
8207 var slideWidthAmount = width * 15 / 100;
8208 var gutter = slideWidthAmount - Math.abs(distanceX * 10 / 100);
8209 this.setTranslate(this.outer.find('.lg-prev-slide').first(), -width + distanceX - gutter, 0);
8210 this.setTranslate(this.outer.find('.lg-next-slide').first(), width + distanceX + gutter, 0);
8211 } else if (this.swipeDirection === 'vertical') {
8212 if (this.settings.swipeToClose) {
8213 e === null || e === void 0 ? void 0 : e.preventDefault();
8214 this.$container.addClass('lg-dragging-vertical');
8215 var opacity = 1 - Math.abs(distanceY) / window.innerHeight;
8216 this.$backdrop.css('opacity', opacity);
8217 var scale = 1 - Math.abs(distanceY) / (window.innerWidth * 2);
8218 this.setTranslate($currentSlide, 0, distanceY, scale, scale);
8219
8220 if (Math.abs(distanceY) > 100) {
8221 this.outer.addClass('lg-hide-items').removeClass('lg-components-open');
8222 }
8223 }
8224 }
8225 }
8226 }, {
8227 key: "touchEnd",
8228 value: function touchEnd(endCoords, startCoords, event) {
8229 var _this16 = this;
8230
8231 var distance; // keep slide animation for any mode while dragg/swipe
8232
8233 if (this.settings.mode !== 'lg-slide') {
8234 this.outer.addClass('lg-slide');
8235 } // set transition duration
8236
8237
8238 setTimeout(function () {
8239 _this16.$container.removeClass('lg-dragging-vertical');
8240
8241 _this16.outer.removeClass('lg-dragging lg-hide-items').addClass('lg-components-open');
8242
8243 var triggerClick = true;
8244
8245 if (_this16.swipeDirection === 'horizontal') {
8246 distance = endCoords.pageX - startCoords.pageX;
8247 var distanceAbs = Math.abs(endCoords.pageX - startCoords.pageX);
8248
8249 if (distance < 0 && distanceAbs > _this16.settings.swipeThreshold) {
8250 _this16.goToNextSlide(true);
8251
8252 triggerClick = false;
8253 } else if (distance > 0 && distanceAbs > _this16.settings.swipeThreshold) {
8254 _this16.goToPrevSlide(true);
8255
8256 triggerClick = false;
8257 }
8258 } else if (_this16.swipeDirection === 'vertical') {
8259 distance = Math.abs(endCoords.pageY - startCoords.pageY);
8260
8261 if (_this16.settings.closable && _this16.settings.swipeToClose && distance > 100) {
8262 _this16.closeGallery();
8263
8264 return;
8265 } else {
8266 _this16.$backdrop.css('opacity', 1);
8267 }
8268 }
8269
8270 _this16.outer.find('.lg-item').removeAttr('style');
8271
8272 if (triggerClick && Math.abs(endCoords.pageX - startCoords.pageX) < 5) {
8273 // Trigger click if distance is less than 5 pix
8274 var target = $LG(event.target);
8275
8276 if (_this16.isPosterElement(target)) {
8277 _this16.LGel.trigger(lGEvents.posterClick);
8278 }
8279 }
8280
8281 _this16.swipeDirection = undefined;
8282 }); // remove slide class once drag/swipe is completed if mode is not slide
8283
8284 setTimeout(function () {
8285 if (!_this16.outer.hasClass('lg-dragging') && _this16.settings.mode !== 'lg-slide') {
8286 _this16.outer.removeClass('lg-slide');
8287 }
8288 }, this.settings.speed + 100);
8289 }
8290 }, {
8291 key: "enableSwipe",
8292 value: function enableSwipe() {
8293 var _this17 = this;
8294
8295 var startCoords = {};
8296 var endCoords = {};
8297 var isMoved = false;
8298 var isSwiping = false;
8299
8300 if (this.settings.enableSwipe) {
8301 this.$inner.on('touchstart.lg', function (e) {
8302 _this17.dragOrSwipeEnabled = true;
8303
8304 var $item = _this17.getSlideItem(_this17.index);
8305
8306 if (($LG(e.target).hasClass('lg-item') || $item.get().contains(e.target)) && !_this17.outer.hasClass('lg-zoomed') && !_this17.lgBusy && e.touches.length === 1) {
8307 isSwiping = true;
8308 _this17.touchAction = 'swipe';
8309
8310 _this17.manageSwipeClass();
8311
8312 startCoords = {
8313 pageX: e.touches[0].pageX,
8314 pageY: e.touches[0].pageY
8315 };
8316 }
8317 });
8318 this.$inner.on('touchmove.lg', function (e) {
8319 if (isSwiping && _this17.touchAction === 'swipe' && e.touches.length === 1) {
8320 endCoords = {
8321 pageX: e.touches[0].pageX,
8322 pageY: e.touches[0].pageY
8323 };
8324
8325 _this17.touchMove(startCoords, endCoords, e);
8326
8327 isMoved = true;
8328 }
8329 });
8330 this.$inner.on('touchend.lg', function (event) {
8331 if (_this17.touchAction === 'swipe') {
8332 if (isMoved) {
8333 isMoved = false;
8334
8335 _this17.touchEnd(endCoords, startCoords, event);
8336 } else if (isSwiping) {
8337 var target = $LG(event.target);
8338
8339 if (_this17.isPosterElement(target)) {
8340 _this17.LGel.trigger(lGEvents.posterClick);
8341 }
8342 }
8343
8344 _this17.touchAction = undefined;
8345 isSwiping = false;
8346 }
8347 });
8348 }
8349 }
8350 }, {
8351 key: "enableDrag",
8352 value: function enableDrag() {
8353 var _this18 = this;
8354
8355 var startCoords = {};
8356 var endCoords = {};
8357 var isDraging = false;
8358 var isMoved = false;
8359
8360 if (this.settings.enableDrag) {
8361 this.outer.on('mousedown.lg', function (e) {
8362 _this18.dragOrSwipeEnabled = true;
8363
8364 var $item = _this18.getSlideItem(_this18.index);
8365
8366 if ($LG(e.target).hasClass('lg-item') || $item.get().contains(e.target)) {
8367 if (!_this18.outer.hasClass('lg-zoomed') && !_this18.lgBusy) {
8368 e.preventDefault();
8369
8370 if (!_this18.lgBusy) {
8371 _this18.manageSwipeClass();
8372
8373 startCoords = {
8374 pageX: e.pageX,
8375 pageY: e.pageY
8376 };
8377 isDraging = true; // ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723
8378
8379 _this18.outer.get().scrollLeft += 1;
8380 _this18.outer.get().scrollLeft -= 1; // *
8381
8382 _this18.outer.removeClass('lg-grab').addClass('lg-grabbing');
8383
8384 _this18.LGel.trigger(lGEvents.dragStart);
8385 }
8386 }
8387 }
8388 });
8389 $LG(window).on("mousemove.lg.global".concat(this.lgId), function (e) {
8390 if (isDraging && _this18.lgOpened) {
8391 isMoved = true;
8392 endCoords = {
8393 pageX: e.pageX,
8394 pageY: e.pageY
8395 };
8396
8397 _this18.touchMove(startCoords, endCoords);
8398
8399 _this18.LGel.trigger(lGEvents.dragMove);
8400 }
8401 });
8402 $LG(window).on("mouseup.lg.global".concat(this.lgId), function (event) {
8403 if (!_this18.lgOpened) {
8404 return;
8405 }
8406
8407 var target = $LG(event.target);
8408
8409 if (isMoved) {
8410 isMoved = false;
8411
8412 _this18.touchEnd(endCoords, startCoords, event);
8413
8414 _this18.LGel.trigger(lGEvents.dragEnd);
8415 } else if (_this18.isPosterElement(target)) {
8416 _this18.LGel.trigger(lGEvents.posterClick);
8417 } // Prevent execution on click
8418
8419
8420 if (isDraging) {
8421 isDraging = false;
8422
8423 _this18.outer.removeClass('lg-grabbing').addClass('lg-grab');
8424 }
8425 });
8426 }
8427 }
8428 }, {
8429 key: "triggerPosterClick",
8430 value: function triggerPosterClick() {
8431 var _this19 = this;
8432
8433 this.$inner.on('click.lg', function (event) {
8434 if (!_this19.dragOrSwipeEnabled && _this19.isPosterElement($LG(event.target))) {
8435 _this19.LGel.trigger(lGEvents.posterClick);
8436 }
8437 });
8438 }
8439 }, {
8440 key: "manageSwipeClass",
8441 value: function manageSwipeClass() {
8442 var _touchNext = this.index + 1;
8443
8444 var _touchPrev = this.index - 1;
8445
8446 if (this.settings.loop && this.galleryItems.length > 2) {
8447 if (this.index === 0) {
8448 _touchPrev = this.galleryItems.length - 1;
8449 } else if (this.index === this.galleryItems.length - 1) {
8450 _touchNext = 0;
8451 }
8452 }
8453
8454 this.outer.find('.lg-item').removeClass('lg-next-slide lg-prev-slide');
8455
8456 if (_touchPrev > -1) {
8457 this.getSlideItem(_touchPrev).addClass('lg-prev-slide');
8458 }
8459
8460 this.getSlideItem(_touchNext).addClass('lg-next-slide');
8461 }
8462 /**
8463 * Go to next slide
8464 * @param {Boolean} fromTouch - true if slide function called via touch event
8465 * @category lGPublicMethods
8466 * @example
8467 * const plugin = lightGallery();
8468 * plugin.goToNextSlide();
8469 * @see <a href="/demos/methods/">Demo</a>
8470 */
8471
8472 }, {
8473 key: "goToNextSlide",
8474 value: function goToNextSlide(fromTouch) {
8475 var _this20 = this;
8476
8477 var _loop = this.settings.loop;
8478
8479 if (fromTouch && this.galleryItems.length < 3) {
8480 _loop = false;
8481 }
8482
8483 if (!this.lgBusy) {
8484 if (this.index + 1 < this.galleryItems.length) {
8485 this.index++;
8486 this.LGel.trigger(lGEvents.beforeNextSlide, {
8487 index: this.index
8488 });
8489 this.slide(this.index, !!fromTouch, false, 'next');
8490 } else {
8491 if (_loop) {
8492 this.index = 0;
8493 this.LGel.trigger(lGEvents.beforeNextSlide, {
8494 index: this.index
8495 });
8496 this.slide(this.index, !!fromTouch, false, 'next');
8497 } else if (this.settings.slideEndAnimation && !fromTouch) {
8498 this.outer.addClass('lg-right-end');
8499 setTimeout(function () {
8500 _this20.outer.removeClass('lg-right-end');
8501 }, 400);
8502 }
8503 }
8504 }
8505 }
8506 /**
8507 * Go to previous slides
8508 * @param {Boolean} fromTouch - true if slide function called via touch event
8509 * @category lGPublicMethods
8510 * @example
8511 * const plugin = lightGallery({});
8512 * plugin.goToPrevSlide();
8513 * @see <a href="/demos/methods/">Demo</a>
8514 *
8515 */
8516
8517 }, {
8518 key: "goToPrevSlide",
8519 value: function goToPrevSlide(fromTouch) {
8520 var _this21 = this;
8521
8522 var _loop = this.settings.loop;
8523
8524 if (fromTouch && this.galleryItems.length < 3) {
8525 _loop = false;
8526 }
8527
8528 if (!this.lgBusy) {
8529 if (this.index > 0) {
8530 this.index--;
8531 this.LGel.trigger(lGEvents.beforePrevSlide, {
8532 index: this.index,
8533 fromTouch: fromTouch
8534 });
8535 this.slide(this.index, !!fromTouch, false, 'prev');
8536 } else {
8537 if (_loop) {
8538 this.index = this.galleryItems.length - 1;
8539 this.LGel.trigger(lGEvents.beforePrevSlide, {
8540 index: this.index,
8541 fromTouch: fromTouch
8542 });
8543 this.slide(this.index, !!fromTouch, false, 'prev');
8544 } else if (this.settings.slideEndAnimation && !fromTouch) {
8545 this.outer.addClass('lg-left-end');
8546 setTimeout(function () {
8547 _this21.outer.removeClass('lg-left-end');
8548 }, 400);
8549 }
8550 }
8551 }
8552 }
8553 }, {
8554 key: "keyPress",
8555 value: function keyPress() {
8556 var _this22 = this;
8557
8558 $LG(window).on("keydown.lg.global".concat(this.lgId), function (e) {
8559 if (_this22.lgOpened && _this22.settings.escKey === true && e.keyCode === 27) {
8560 e.preventDefault();
8561
8562 if (_this22.settings.allowMediaOverlap && _this22.outer.hasClass('lg-can-toggle') && _this22.outer.hasClass('lg-components-open')) {
8563 _this22.outer.removeClass('lg-components-open');
8564 } else {
8565 _this22.closeGallery();
8566 }
8567 }
8568
8569 if (_this22.lgOpened && _this22.galleryItems.length > 1) {
8570 if (e.keyCode === 37) {
8571 e.preventDefault();
8572
8573 _this22.goToPrevSlide();
8574 }
8575
8576 if (e.keyCode === 39) {
8577 e.preventDefault();
8578
8579 _this22.goToNextSlide();
8580 }
8581 }
8582 });
8583 }
8584 }, {
8585 key: "arrow",
8586 value: function arrow() {
8587 var _this23 = this;
8588
8589 this.getElementById('lg-prev').on('click.lg', function () {
8590 _this23.goToPrevSlide();
8591 });
8592 this.getElementById('lg-next').on('click.lg', function () {
8593 _this23.goToNextSlide();
8594 });
8595 }
8596 }, {
8597 key: "arrowDisable",
8598 value: function arrowDisable(index) {
8599 // Disable arrows if settings.hideControlOnEnd is true
8600 if (!this.settings.loop && this.settings.hideControlOnEnd) {
8601 var $prev = this.getElementById('lg-prev');
8602 var $next = this.getElementById('lg-next');
8603
8604 if (index + 1 === this.galleryItems.length) {
8605 $next.attr('disabled', 'disabled').addClass('disabled');
8606 } else {
8607 $next.removeAttr('disabled').removeClass('disabled');
8608 }
8609
8610 if (index === 0) {
8611 $prev.attr('disabled', 'disabled').addClass('disabled');
8612 } else {
8613 $prev.removeAttr('disabled').removeClass('disabled');
8614 }
8615 }
8616 }
8617 }, {
8618 key: "setTranslate",
8619 value: function setTranslate($el, xValue, yValue) {
8620 var scaleX = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
8621 var scaleY = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
8622 $el.css('transform', 'translate3d(' + xValue + 'px, ' + yValue + 'px, 0px) scale3d(' + scaleX + ', ' + scaleY + ', 1)');
8623 }
8624 }, {
8625 key: "mousewheel",
8626 value: function mousewheel() {
8627 var _this24 = this;
8628
8629 var lastCall = 0;
8630 this.outer.on('wheel.lg', function (e) {
8631 if (!e.deltaY || _this24.galleryItems.length < 2) {
8632 return;
8633 }
8634
8635 e.preventDefault();
8636 var now = new Date().getTime();
8637
8638 if (now - lastCall < 1000) {
8639 return;
8640 }
8641
8642 lastCall = now;
8643
8644 if (e.deltaY > 0) {
8645 _this24.goToNextSlide();
8646 } else if (e.deltaY < 0) {
8647 _this24.goToPrevSlide();
8648 }
8649 });
8650 }
8651 }, {
8652 key: "isSlideElement",
8653 value: function isSlideElement(target) {
8654 return target.hasClass('lg-outer') || target.hasClass('lg-item') || target.hasClass('lg-img-wrap');
8655 }
8656 }, {
8657 key: "isPosterElement",
8658 value: function isPosterElement(target) {
8659 var playButton = this.getSlideItem(this.index).find('.lg-video-play-button').get();
8660 return target.hasClass('lg-video-poster') || target.hasClass('lg-video-play-button') || playButton && playButton.contains(target.get());
8661 }
8662 /**
8663 * Maximize minimize inline gallery.
8664 * @category lGPublicMethods
8665 */
8666
8667 }, {
8668 key: "toggleMaximize",
8669 value: function toggleMaximize() {
8670 var _this25 = this;
8671
8672 this.getElementById('lg-maximize').on('click.lg', function () {
8673 _this25.$container.toggleClass('lg-inline');
8674
8675 _this25.refreshOnResize();
8676 });
8677 }
8678 }, {
8679 key: "invalidateItems",
8680 value: function invalidateItems() {
8681 for (var index = 0; index < this.items.length; index++) {
8682 var element = this.items[index];
8683 var $element = $LG(element);
8684 $element.off("click.lgcustom-item-".concat($element.attr('data-lg-id')));
8685 }
8686 }
8687 }, {
8688 key: "trapFocus",
8689 value: function trapFocus() {
8690 var _this26 = this;
8691
8692 this.$container.get().focus({
8693 preventScroll: true
8694 });
8695 $LG(window).on("keydown.lg.global".concat(this.lgId), function (e) {
8696 if (!_this26.lgOpened) {
8697 return;
8698 }
8699
8700 var isTabPressed = e.key === 'Tab' || e.keyCode === 9;
8701
8702 if (!isTabPressed) {
8703 return;
8704 }
8705
8706 var focusableEls = lg_utils.getFocusableElements(_this26.$container.get());
8707 var firstFocusableEl = focusableEls[0];
8708 var lastFocusableEl = focusableEls[focusableEls.length - 1];
8709
8710 if (e.shiftKey) {
8711 if (document.activeElement === firstFocusableEl) {
8712 lastFocusableEl.focus();
8713 e.preventDefault();
8714 }
8715 } else {
8716 if (document.activeElement === lastFocusableEl) {
8717 firstFocusableEl.focus();
8718 e.preventDefault();
8719 }
8720 }
8721 });
8722 }
8723 }, {
8724 key: "manageCloseGallery",
8725 value: function manageCloseGallery() {
8726 var _this27 = this;
8727
8728 if (!this.settings.closable) return;
8729 var mousedown = false;
8730 this.getElementById('lg-close').on('click.lg', function () {
8731 _this27.closeGallery();
8732 });
8733
8734 if (this.settings.closeOnTap) {
8735 // If you drag the slide and release outside gallery gets close on chrome
8736 // for preventing this check mousedown and mouseup happened on .lg-item or lg-outer
8737 this.outer.on('mousedown.lg', function (e) {
8738 var target = $LG(e.target);
8739
8740 if (_this27.isSlideElement(target)) {
8741 mousedown = true;
8742 } else {
8743 mousedown = false;
8744 }
8745 });
8746 this.outer.on('mousemove.lg', function () {
8747 mousedown = false;
8748 });
8749 this.outer.on('mouseup.lg', function (e) {
8750 var target = $LG(e.target);
8751
8752 if (_this27.isSlideElement(target) && mousedown) {
8753 if (!_this27.outer.hasClass('lg-dragging')) {
8754 _this27.closeGallery();
8755 }
8756 }
8757 });
8758 }
8759 }
8760 /**
8761 * Close lightGallery if it is opened.
8762 *
8763 * @description If closable is false in the settings, you need to pass true via closeGallery method to force close gallery
8764 * @return returns the estimated time to close gallery completely including the close animation duration
8765 * @category lGPublicMethods
8766 * @example
8767 * const plugin = lightGallery();
8768 * plugin.closeGallery();
8769 *
8770 */
8771
8772 }, {
8773 key: "closeGallery",
8774 value: function closeGallery(force) {
8775 var _this28 = this;
8776
8777 if (!this.lgOpened || !this.settings.closable && !force) {
8778 return 0;
8779 }
8780
8781 this.LGel.trigger(lGEvents.beforeClose);
8782
8783 if (this.settings.resetScrollPosition && !this.settings.hideScrollbar) {
8784 $LG(window).scrollTop(this.prevScrollTop);
8785 }
8786
8787 var currentItem = this.items[this.index];
8788 var transform;
8789
8790 if (this.zoomFromOrigin && currentItem) {
8791 var _this$mediaContainerP5 = this.mediaContainerPosition,
8792 top = _this$mediaContainerP5.top,
8793 bottom = _this$mediaContainerP5.bottom;
8794 var _this$galleryItems$th = this.galleryItems[this.index],
8795 __slideVideoInfo = _this$galleryItems$th.__slideVideoInfo,
8796 poster = _this$galleryItems$th.poster;
8797 var imageSize = lg_utils.getSize(currentItem, this.outer, top + bottom, __slideVideoInfo && poster && this.settings.videoMaxSize);
8798 transform = lg_utils.getTransform(currentItem, this.outer, top, bottom, imageSize);
8799 }
8800
8801 if (this.zoomFromOrigin && transform) {
8802 this.outer.addClass('lg-closing lg-zoom-from-image');
8803 this.getSlideItem(this.index).addClass('lg-start-end-progress').css('transition-duration', this.settings.startAnimationDuration + 'ms').css('transform', transform);
8804 } else {
8805 this.outer.addClass('lg-hide-items'); // lg-zoom-from-image is used for setting the opacity to 1 if zoomFromOrigin is true
8806 // If the closing item doesn't have the lg-size attribute, remove this class to avoid the closing css conflicts
8807
8808 this.outer.removeClass('lg-zoom-from-image');
8809 } // Unbind all events added by lightGallery
8810 // @todo
8811 //this.$el.off('.lg.tm');
8812
8813
8814 this.destroyModules();
8815 this.lGalleryOn = false;
8816 this.isDummyImageRemoved = false;
8817 this.zoomFromOrigin = this.settings.zoomFromOrigin;
8818 clearTimeout(this.hideBarTimeout);
8819 this.hideBarTimeout = false;
8820 $LG('html').removeClass('lg-on');
8821 this.outer.removeClass('lg-visible lg-components-open'); // Resetting opacity to 0 isd required as vertical swipe to close function adds inline opacity.
8822
8823 this.$backdrop.removeClass('in').css('opacity', 0);
8824 var removeTimeout = this.zoomFromOrigin && transform ? Math.max(this.settings.startAnimationDuration, this.settings.backdropDuration) : this.settings.backdropDuration;
8825 this.$container.removeClass('lg-show-in'); // Once the closign animation is completed and gallery is invisible
8826
8827 setTimeout(function () {
8828 if (_this28.zoomFromOrigin && transform) {
8829 _this28.outer.removeClass('lg-zoom-from-image');
8830 }
8831
8832 _this28.$container.removeClass('lg-show'); // Reset scrollbar
8833
8834
8835 _this28.resetScrollBar(); // Need to remove inline opacity as it is used in the stylesheet as well
8836
8837
8838 _this28.$backdrop.removeAttr('style').css('transition-duration', _this28.settings.backdropDuration + 'ms');
8839
8840 _this28.outer.removeClass("lg-closing ".concat(_this28.settings.startClass));
8841
8842 _this28.getSlideItem(_this28.index).removeClass('lg-start-end-progress');
8843
8844 _this28.$inner.empty();
8845
8846 if (_this28.lgOpened) {
8847 _this28.LGel.trigger(lGEvents.afterClose, {
8848 instance: _this28
8849 });
8850 }
8851
8852 if (_this28.$container.get()) {
8853 _this28.$container.get().blur();
8854 }
8855
8856 _this28.lgOpened = false;
8857 }, removeTimeout + 100);
8858 return removeTimeout + 100;
8859 }
8860 }, {
8861 key: "initModules",
8862 value: function initModules() {
8863 this.plugins.forEach(function (module) {
8864 try {
8865 module.init();
8866 } catch (err) {
8867 console.warn("lightGallery:- make sure lightGallery module is properly initiated");
8868 }
8869 });
8870 }
8871 }, {
8872 key: "destroyModules",
8873 value: function destroyModules(destroy) {
8874 this.plugins.forEach(function (module) {
8875 try {
8876 if (destroy) {
8877 module.destroy();
8878 } else {
8879 module.closeGallery && module.closeGallery();
8880 }
8881 } catch (err) {
8882 console.warn("lightGallery:- make sure lightGallery module is properly destroyed");
8883 }
8884 });
8885 }
8886 /**
8887 * Refresh lightGallery with new set of children.
8888 *
8889 * @description This is useful to update the gallery when the child elements are changed without calling destroy method.
8890 *
8891 * If you are using dynamic mode, you can pass the modified array of dynamicEl as the first parameter to refresh the dynamic gallery
8892 * @see <a href="/demos/dynamic-mode/">Demo</a>
8893 * @category lGPublicMethods
8894 * @example
8895 * const plugin = lightGallery();
8896 * // Delete or add children, then call
8897 * plugin.refresh();
8898 *
8899 */
8900
8901 }, {
8902 key: "refresh",
8903 value: function refresh(galleryItems) {
8904 if (!this.settings.dynamic) {
8905 this.invalidateItems();
8906 }
8907
8908 if (galleryItems) {
8909 this.galleryItems = galleryItems;
8910 } else {
8911 this.galleryItems = this.getItems();
8912 }
8913
8914 this.updateControls();
8915 this.openGalleryOnItemClick();
8916 this.LGel.trigger(lGEvents.updateSlides);
8917 }
8918 }, {
8919 key: "updateControls",
8920 value: function updateControls() {
8921 this.addSlideVideoInfo(this.galleryItems);
8922 this.updateCounterTotal();
8923 this.manageSingleSlideClassName();
8924 }
8925 }, {
8926 key: "destroyGallery",
8927 value: function destroyGallery() {
8928 this.destroyModules(true);
8929
8930 if (!this.settings.dynamic) {
8931 this.invalidateItems();
8932 }
8933
8934 $LG(window).off(".lg.global".concat(this.lgId));
8935 this.LGel.off('.lg');
8936 this.$container.remove();
8937 }
8938 /**
8939 * Destroy lightGallery.
8940 * Destroy lightGallery and its plugin instances completely
8941 *
8942 * @description This method also calls CloseGallery function internally. Returns the time takes to completely close and destroy the instance.
8943 * In case if you want to re-initialize lightGallery right after destroying it, initialize it only once the destroy process is completed.
8944 * You can use refresh method most of the times.
8945 * @category lGPublicMethods
8946 * @example
8947 * const plugin = lightGallery();
8948 * plugin.destroy();
8949 *
8950 */
8951
8952 }, {
8953 key: "destroy",
8954 value: function destroy() {
8955 var closeTimeout = this.closeGallery(true);
8956
8957 if (closeTimeout) {
8958 setTimeout(this.destroyGallery.bind(this), closeTimeout);
8959 } else {
8960 this.destroyGallery();
8961 }
8962
8963 return closeTimeout;
8964 }
8965 }]);
8966
8967 return LightGallery;
8968}();
8969// CONCATENATED MODULE: ../src/index.ts
8970
8971
8972function lightGallery(el, options) {
8973 return new lightgallery_LightGallery(el, options);
8974}
8975
8976/* harmony default export */ var src_0 = (lightGallery);
8977// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--14-1!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./src/components/LightGallery.vue?vue&type=script&lang=ts
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993var LightGalleryvue_type_script_lang_ts_Lightgallery = /*#__PURE__*/function (_Vue) {
8994 _inherits(Lightgallery, _Vue);
8995
8996 var _super = _createSuper(Lightgallery);
8997
8998 function Lightgallery() {
8999 _classCallCheck(this, Lightgallery);
9000
9001 return _super.apply(this, arguments);
9002 }
9003
9004 _createClass(Lightgallery, [{
9005 key: "mounted",
9006 value: function mounted() {
9007 this.registerEvents.call(this);
9008 this.LG = src_0(this.$refs.container, _objectSpread2({}, this.settings));
9009 }
9010 }, {
9011 key: "unmounted",
9012 value: function unmounted() {
9013 this.LG.destroy();
9014 }
9015 /* eslint-disable */
9016
9017 }, {
9018 key: "getMethodName",
9019 value: function getMethodName(word) {
9020 return "on".concat(word.charAt(0).toUpperCase() + word.slice(1));
9021 }
9022 /* eslint-enable */
9023
9024 }, {
9025 key: "registerEvents",
9026 value: function registerEvents() {
9027 var _this = this;
9028
9029 Object.keys(lGEvents).forEach(function (key) {
9030 // https://github.com/microsoft/TypeScript/issues/28357
9031 _this.$refs.container.addEventListener(lGEvents[key].split('.')[0], function (event) {
9032 if (_this[_this.getMethodName(key)]) {
9033 _this[_this.getMethodName.call(_this, key)](event.detail);
9034 }
9035 });
9036 });
9037 }
9038 }]);
9039
9040 return Lightgallery;
9041}(Vue);
9042
9043LightGalleryvue_type_script_lang_ts_Lightgallery = __decorate([Options({
9044 props: {
9045 settings: {
9046 type: Object
9047 },
9048 onAfterAppendSlide: {
9049 type: Function
9050 },
9051 onInit: {
9052 type: Function
9053 },
9054 onHasVideo: {
9055 type: Function
9056 },
9057 onContainerResize: {
9058 type: Function
9059 },
9060 onAfterAppendSubHtml: {
9061 type: Function
9062 },
9063 onBeforeOpen: {
9064 type: Function
9065 },
9066 onAfterOpen: {
9067 type: Function
9068 },
9069 onSlideItemLoad: {
9070 type: Function
9071 },
9072 onBeforeSlide: {
9073 type: Function
9074 },
9075 onAfterSlide: {
9076 type: Function
9077 },
9078 onPosterClick: {
9079 type: Function
9080 },
9081 onDragStart: {
9082 type: Function
9083 },
9084 onDragMove: {
9085 type: Function
9086 },
9087 onDragEnd: {
9088 type: Function
9089 },
9090 onBeforeNextSlide: {
9091 type: Function
9092 },
9093 onBeforePrevSlide: {
9094 type: Function
9095 },
9096 onBeforeClose: {
9097 type: Function
9098 },
9099 onAfterClose: {
9100 type: Function
9101 },
9102 onRotateLeft: {
9103 type: Function
9104 },
9105 onRotateRight: {
9106 type: Function
9107 },
9108 onFlipHorizontal: {
9109 type: Function
9110 },
9111 onFlipVertical: {
9112 type: Function
9113 }
9114 }
9115})], LightGalleryvue_type_script_lang_ts_Lightgallery);
9116/* harmony default export */ var LightGalleryvue_type_script_lang_ts = (LightGalleryvue_type_script_lang_ts_Lightgallery);
9117// CONCATENATED MODULE: ./src/components/LightGallery.vue?vue&type=script&lang=ts
9118
9119// CONCATENATED MODULE: ./src/components/LightGallery.vue
9120
9121
9122
9123LightGalleryvue_type_script_lang_ts.render = render
9124
9125/* harmony default export */ var components_LightGallery = (LightGalleryvue_type_script_lang_ts);
9126// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
9127
9128
9129/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (components_LightGallery);
9130
9131
9132
9133/***/ }),
9134
9135/***/ "fb6a":
9136/***/ (function(module, exports, __webpack_require__) {
9137
9138"use strict";
9139
9140var $ = __webpack_require__("23e7");
9141var isObject = __webpack_require__("861d");
9142var isArray = __webpack_require__("e8b5");
9143var toAbsoluteIndex = __webpack_require__("23cb");
9144var toLength = __webpack_require__("50c4");
9145var toIndexedObject = __webpack_require__("fc6a");
9146var createProperty = __webpack_require__("8418");
9147var wellKnownSymbol = __webpack_require__("b622");
9148var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
9149
9150var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
9151
9152var SPECIES = wellKnownSymbol('species');
9153var nativeSlice = [].slice;
9154var max = Math.max;
9155
9156// `Array.prototype.slice` method
9157// https://tc39.es/ecma262/#sec-array.prototype.slice
9158// fallback for not array-like ES3 strings and DOM objects
9159$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
9160 slice: function slice(start, end) {
9161 var O = toIndexedObject(this);
9162 var length = toLength(O.length);
9163 var k = toAbsoluteIndex(start, length);
9164 var fin = toAbsoluteIndex(end === undefined ? length : end, length);
9165 // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
9166 var Constructor, result, n;
9167 if (isArray(O)) {
9168 Constructor = O.constructor;
9169 // cross-realm fallback
9170 if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
9171 Constructor = undefined;
9172 } else if (isObject(Constructor)) {
9173 Constructor = Constructor[SPECIES];
9174 if (Constructor === null) Constructor = undefined;
9175 }
9176 if (Constructor === Array || Constructor === undefined) {
9177 return nativeSlice.call(O, k, fin);
9178 }
9179 }
9180 result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
9181 for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
9182 result.length = n;
9183 return result;
9184 }
9185});
9186
9187
9188/***/ }),
9189
9190/***/ "fc6a":
9191/***/ (function(module, exports, __webpack_require__) {
9192
9193// toObject with fallback for non-array-like ES3 strings
9194var IndexedObject = __webpack_require__("44ad");
9195var requireObjectCoercible = __webpack_require__("1d80");
9196
9197module.exports = function (it) {
9198 return IndexedObject(requireObjectCoercible(it));
9199};
9200
9201
9202/***/ }),
9203
9204/***/ "fdbc":
9205/***/ (function(module, exports) {
9206
9207// iterable DOM collections
9208// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
9209module.exports = {
9210 CSSRuleList: 0,
9211 CSSStyleDeclaration: 0,
9212 CSSValueList: 0,
9213 ClientRectList: 0,
9214 DOMRectList: 0,
9215 DOMStringList: 0,
9216 DOMTokenList: 1,
9217 DataTransferItemList: 0,
9218 FileList: 0,
9219 HTMLAllCollection: 0,
9220 HTMLCollection: 0,
9221 HTMLFormElement: 0,
9222 HTMLSelectElement: 0,
9223 MediaList: 0,
9224 MimeTypeArray: 0,
9225 NamedNodeMap: 0,
9226 NodeList: 1,
9227 PaintRequestList: 0,
9228 Plugin: 0,
9229 PluginArray: 0,
9230 SVGLengthList: 0,
9231 SVGNumberList: 0,
9232 SVGPathSegList: 0,
9233 SVGPointList: 0,
9234 SVGStringList: 0,
9235 SVGTransformList: 0,
9236 SourceBufferList: 0,
9237 StyleSheetList: 0,
9238 TextTrackCueList: 0,
9239 TextTrackList: 0,
9240 TouchList: 0
9241};
9242
9243
9244/***/ }),
9245
9246/***/ "fdbf":
9247/***/ (function(module, exports, __webpack_require__) {
9248
9249/* eslint-disable es/no-symbol -- required for testing */
9250var NATIVE_SYMBOL = __webpack_require__("4930");
9251
9252module.exports = NATIVE_SYMBOL
9253 && !Symbol.sham
9254 && typeof Symbol.iterator == 'symbol';
9255
9256
9257/***/ }),
9258
9259/***/ "fea9":
9260/***/ (function(module, exports, __webpack_require__) {
9261
9262var global = __webpack_require__("da84");
9263
9264module.exports = global.Promise;
9265
9266
9267/***/ })
9268
9269/******/ })["default"];
9270//# sourceMappingURL=LightGalleryVue.common.js.map
\No newline at end of file