1
(function webpackUniversalModuleDefinition(root, factory) {
2
if(typeof exports === 'object' && typeof module === 'object')
3
module.exports = factory();
4
else if(typeof define === 'function' && define.amd)
8
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
12
var __webpack_modules__ = ({
17
module.exports = function (it) {
18
if (typeof it != 'function') {
19
throw TypeError(String(it) + ' is not a function');
27
(function(module, __unused_webpack_exports, __webpack_require__) {
29
var isObject = __webpack_require__(111);
31
module.exports = function (it) {
32
if (!isObject(it) && it !== null) {
33
throw TypeError("Can't set " + String(it) + ' as a prototype');
41
(function(module, __unused_webpack_exports, __webpack_require__) {
43
var wellKnownSymbol = __webpack_require__(5112);
44
var create = __webpack_require__(30);
45
var definePropertyModule = __webpack_require__(3070);
47
var UNSCOPABLES = wellKnownSymbol('unscopables');
48
var ArrayPrototype = Array.prototype;
52
if (ArrayPrototype[UNSCOPABLES] == undefined) {
53
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
60
module.exports = function (key) {
61
ArrayPrototype[UNSCOPABLES][key] = true;
68
(function(module, __unused_webpack_exports, __webpack_require__) {
72
var charAt = __webpack_require__(8710).charAt;
76
module.exports = function (S, index, unicode) {
77
return index + (unicode ? charAt(S, index).length : 1);
86
module.exports = function (it, Constructor, name) {
87
if (!(it instanceof Constructor)) {
88
throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
96
(function(module, __unused_webpack_exports, __webpack_require__) {
98
var isObject = __webpack_require__(111);
100
module.exports = function (it) {
102
throw TypeError(String(it) + ' is not an object');
112
module.exports = typeof ArrayBuffer !== 'undefined' && typeof DataView !== 'undefined';
118
(function(module, __unused_webpack_exports, __webpack_require__) {
122
var NATIVE_ARRAY_BUFFER = __webpack_require__(4019);
123
var DESCRIPTORS = __webpack_require__(9781);
124
var global = __webpack_require__(7854);
125
var isObject = __webpack_require__(111);
126
var has = __webpack_require__(6656);
127
var classof = __webpack_require__(648);
128
var createNonEnumerableProperty = __webpack_require__(8880);
129
var redefine = __webpack_require__(1320);
130
var defineProperty = __webpack_require__(3070).f;
131
var getPrototypeOf = __webpack_require__(9518);
132
var setPrototypeOf = __webpack_require__(7674);
133
var wellKnownSymbol = __webpack_require__(5112);
134
var uid = __webpack_require__(9711);
136
var Int8Array = global.Int8Array;
137
var Int8ArrayPrototype = Int8Array && Int8Array.prototype;
138
var Uint8ClampedArray = global.Uint8ClampedArray;
139
var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;
140
var TypedArray = Int8Array && getPrototypeOf(Int8Array);
141
var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);
142
var ObjectPrototype = Object.prototype;
143
var isPrototypeOf = ObjectPrototype.isPrototypeOf;
145
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
146
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
148
var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global.opera) !== 'Opera';
149
var TYPED_ARRAY_TAG_REQIRED = false;
152
var TypedArrayConstructorsList = {
155
Uint8ClampedArray: 1,
164
var BigIntArrayConstructorsList = {
169
var isView = function isView(it) {
170
if (!isObject(it)) return false;
171
var klass = classof(it);
172
return klass === 'DataView'
173
|| has(TypedArrayConstructorsList, klass)
174
|| has(BigIntArrayConstructorsList, klass);
177
var isTypedArray = function (it) {
178
if (!isObject(it)) return false;
179
var klass = classof(it);
180
return has(TypedArrayConstructorsList, klass)
181
|| has(BigIntArrayConstructorsList, klass);
184
var aTypedArray = function (it) {
185
if (isTypedArray(it)) return it;
186
throw TypeError('Target is not a typed array');
189
var aTypedArrayConstructor = function (C) {
190
if (setPrototypeOf) {
191
if (isPrototypeOf.call(TypedArray, C)) return C;
192
} else for (var ARRAY in TypedArrayConstructorsList) if (has(TypedArrayConstructorsList, NAME)) {
193
var TypedArrayConstructor = global[ARRAY];
194
if (TypedArrayConstructor && (C === TypedArrayConstructor || isPrototypeOf.call(TypedArrayConstructor, C))) {
197
} throw TypeError('Target is not a typed array constructor');
200
var exportTypedArrayMethod = function (KEY, property, forced) {
201
if (!DESCRIPTORS) return;
202
if (forced) for (var ARRAY in TypedArrayConstructorsList) {
203
var TypedArrayConstructor = global[ARRAY];
204
if (TypedArrayConstructor && has(TypedArrayConstructor.prototype, KEY)) {
205
delete TypedArrayConstructor.prototype[KEY];
208
if (!TypedArrayPrototype[KEY] || forced) {
209
redefine(TypedArrayPrototype, KEY, forced ? property
210
: NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property);
214
var exportTypedArrayStaticMethod = function (KEY, property, forced) {
215
var ARRAY, TypedArrayConstructor;
216
if (!DESCRIPTORS) return;
217
if (setPrototypeOf) {
218
if (forced) for (ARRAY in TypedArrayConstructorsList) {
219
TypedArrayConstructor = global[ARRAY];
220
if (TypedArrayConstructor && has(TypedArrayConstructor, KEY)) {
221
delete TypedArrayConstructor[KEY];
224
if (!TypedArray[KEY] || forced) {
227
return redefine(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && Int8Array[KEY] || property);
231
for (ARRAY in TypedArrayConstructorsList) {
232
TypedArrayConstructor = global[ARRAY];
233
if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
234
redefine(TypedArrayConstructor, KEY, property);
239
for (NAME in TypedArrayConstructorsList) {
240
if (!global[NAME]) NATIVE_ARRAY_BUFFER_VIEWS = false;
244
if (!NATIVE_ARRAY_BUFFER_VIEWS || typeof TypedArray != 'function' || TypedArray === Function.prototype) {
246
TypedArray = function TypedArray() {
247
throw TypeError('Incorrect invocation');
249
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
250
if (global[NAME]) setPrototypeOf(global[NAME], TypedArray);
254
if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {
255
TypedArrayPrototype = TypedArray.prototype;
256
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
257
if (global[NAME]) setPrototypeOf(global[NAME].prototype, TypedArrayPrototype);
262
if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {
263
setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);
266
if (DESCRIPTORS && !has(TypedArrayPrototype, TO_STRING_TAG)) {
267
TYPED_ARRAY_TAG_REQIRED = true;
268
defineProperty(TypedArrayPrototype, TO_STRING_TAG, { get: function () {
269
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
271
for (NAME in TypedArrayConstructorsList) if (global[NAME]) {
272
createNonEnumerableProperty(global[NAME], TYPED_ARRAY_TAG, NAME);
277
NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,
278
TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQIRED && TYPED_ARRAY_TAG,
279
aTypedArray: aTypedArray,
280
aTypedArrayConstructor: aTypedArrayConstructor,
281
exportTypedArrayMethod: exportTypedArrayMethod,
282
exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,
284
isTypedArray: isTypedArray,
285
TypedArray: TypedArray,
286
TypedArrayPrototype: TypedArrayPrototype
293
(function(module, __unused_webpack_exports, __webpack_require__) {
297
var global = __webpack_require__(7854);
298
var DESCRIPTORS = __webpack_require__(9781);
299
var NATIVE_ARRAY_BUFFER = __webpack_require__(4019);
300
var createNonEnumerableProperty = __webpack_require__(8880);
301
var redefineAll = __webpack_require__(2248);
302
var fails = __webpack_require__(7293);
303
var anInstance = __webpack_require__(5787);
304
var toInteger = __webpack_require__(9958);
305
var toLength = __webpack_require__(7466);
306
var toIndex = __webpack_require__(7067);
307
var IEEE754 = __webpack_require__(1179);
308
var getPrototypeOf = __webpack_require__(9518);
309
var setPrototypeOf = __webpack_require__(7674);
310
var getOwnPropertyNames = __webpack_require__(8006).f;
311
var defineProperty = __webpack_require__(3070).f;
312
var arrayFill = __webpack_require__(1285);
313
var setToStringTag = __webpack_require__(8003);
314
var InternalStateModule = __webpack_require__(9909);
316
var getInternalState = InternalStateModule.get;
317
var setInternalState = InternalStateModule.set;
318
var ARRAY_BUFFER = 'ArrayBuffer';
319
var DATA_VIEW = 'DataView';
320
var PROTOTYPE = 'prototype';
321
var WRONG_LENGTH = 'Wrong length';
322
var WRONG_INDEX = 'Wrong index';
323
var NativeArrayBuffer = global[ARRAY_BUFFER];
324
var $ArrayBuffer = NativeArrayBuffer;
325
var $DataView = global[DATA_VIEW];
326
var $DataViewPrototype = $DataView && $DataView[PROTOTYPE];
327
var ObjectPrototype = Object.prototype;
328
var RangeError = global.RangeError;
330
var packIEEE754 = IEEE754.pack;
331
var unpackIEEE754 = IEEE754.unpack;
333
var packInt8 = function (number) {
334
return [number & 0xFF];
337
var packInt16 = function (number) {
338
return [number & 0xFF, number >> 8 & 0xFF];
341
var packInt32 = function (number) {
342
return [number & 0xFF, number >> 8 & 0xFF, number >> 16 & 0xFF, number >> 24 & 0xFF];
345
var unpackInt32 = function (buffer) {
346
return buffer[3] << 24 | buffer[2] << 16 | buffer[1] << 8 | buffer[0];
349
var packFloat32 = function (number) {
350
return packIEEE754(number, 23, 4);
353
var packFloat64 = function (number) {
354
return packIEEE754(number, 52, 8);
357
var addGetter = function (Constructor, key) {
358
defineProperty(Constructor[PROTOTYPE], key, { get: function () { return getInternalState(this)[key]; } });
361
var get = function (view, count, index, isLittleEndian) {
362
var intIndex = toIndex(index);
363
var store = getInternalState(view);
364
if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX);
365
var bytes = getInternalState(store.buffer).bytes;
366
var start = intIndex + store.byteOffset;
367
var pack = bytes.slice(start, start + count);
368
return isLittleEndian ? pack : pack.reverse();
371
var set = function (view, count, index, conversion, value, isLittleEndian) {
372
var intIndex = toIndex(index);
373
var store = getInternalState(view);
374
if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX);
375
var bytes = getInternalState(store.buffer).bytes;
376
var start = intIndex + store.byteOffset;
377
var pack = conversion(+value);
378
for (var i = 0; i < count; i++) bytes[start + i] = pack[isLittleEndian ? i : count - i - 1];
381
if (!NATIVE_ARRAY_BUFFER) {
382
$ArrayBuffer = function ArrayBuffer(length) {
383
anInstance(this, $ArrayBuffer, ARRAY_BUFFER);
384
var byteLength = toIndex(length);
385
setInternalState(this, {
386
bytes: arrayFill.call(new Array(byteLength), 0),
387
byteLength: byteLength
389
if (!DESCRIPTORS) this.byteLength = byteLength;
392
$DataView = function DataView(buffer, byteOffset, byteLength) {
393
anInstance(this, $DataView, DATA_VIEW);
394
anInstance(buffer, $ArrayBuffer, DATA_VIEW);
395
var bufferLength = getInternalState(buffer).byteLength;
396
var offset = toInteger(byteOffset);
397
if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset');
398
byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);
399
if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH);
400
setInternalState(this, {
402
byteLength: byteLength,
406
this.buffer = buffer;
407
this.byteLength = byteLength;
408
this.byteOffset = offset;
413
addGetter($ArrayBuffer, 'byteLength');
414
addGetter($DataView, 'buffer');
415
addGetter($DataView, 'byteLength');
416
addGetter($DataView, 'byteOffset');
419
redefineAll($DataView[PROTOTYPE], {
420
getInt8: function getInt8(byteOffset) {
421
return get(this, 1, byteOffset)[0] << 24 >> 24;
423
getUint8: function getUint8(byteOffset) {
424
return get(this, 1, byteOffset)[0];
426
getInt16: function getInt16(byteOffset ) {
427
var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : undefined);
428
return (bytes[1] << 8 | bytes[0]) << 16 >> 16;
430
getUint16: function getUint16(byteOffset ) {
431
var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : undefined);
432
return bytes[1] << 8 | bytes[0];
434
getInt32: function getInt32(byteOffset ) {
435
return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined));
437
getUint32: function getUint32(byteOffset ) {
438
return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined)) >>> 0;
440
getFloat32: function getFloat32(byteOffset ) {
441
return unpackIEEE754(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined), 23);
443
getFloat64: function getFloat64(byteOffset ) {
444
return unpackIEEE754(get(this, 8, byteOffset, arguments.length > 1 ? arguments[1] : undefined), 52);
446
setInt8: function setInt8(byteOffset, value) {
447
set(this, 1, byteOffset, packInt8, value);
449
setUint8: function setUint8(byteOffset, value) {
450
set(this, 1, byteOffset, packInt8, value);
452
setInt16: function setInt16(byteOffset, value ) {
453
set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : undefined);
455
setUint16: function setUint16(byteOffset, value ) {
456
set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : undefined);
458
setInt32: function setInt32(byteOffset, value ) {
459
set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : undefined);
461
setUint32: function setUint32(byteOffset, value ) {
462
set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : undefined);
464
setFloat32: function setFloat32(byteOffset, value ) {
465
set(this, 4, byteOffset, packFloat32, value, arguments.length > 2 ? arguments[2] : undefined);
467
setFloat64: function setFloat64(byteOffset, value ) {
468
set(this, 8, byteOffset, packFloat64, value, arguments.length > 2 ? arguments[2] : undefined);
473
if (!fails(function () {
474
NativeArrayBuffer(1);
475
}) || !fails(function () {
476
new NativeArrayBuffer(-1);
477
}) || fails(function () {
478
new NativeArrayBuffer();
479
new NativeArrayBuffer(1.5);
480
new NativeArrayBuffer(NaN);
481
return NativeArrayBuffer.name != ARRAY_BUFFER;
484
$ArrayBuffer = function ArrayBuffer(length) {
485
anInstance(this, $ArrayBuffer);
486
return new NativeArrayBuffer(toIndex(length));
488
var ArrayBufferPrototype = $ArrayBuffer[PROTOTYPE] = NativeArrayBuffer[PROTOTYPE];
489
for (var keys = getOwnPropertyNames(NativeArrayBuffer), j = 0, key; keys.length > j;) {
490
if (!((key = keys[j++]) in $ArrayBuffer)) {
491
createNonEnumerableProperty($ArrayBuffer, key, NativeArrayBuffer[key]);
494
ArrayBufferPrototype.constructor = $ArrayBuffer;
498
if (setPrototypeOf && getPrototypeOf($DataViewPrototype) !== ObjectPrototype) {
499
setPrototypeOf($DataViewPrototype, ObjectPrototype);
503
var testView = new $DataView(new $ArrayBuffer(2));
504
var nativeSetInt8 = $DataViewPrototype.setInt8;
505
testView.setInt8(0, 2147483648);
506
testView.setInt8(1, 2147483649);
507
if (testView.getInt8(0) || !testView.getInt8(1)) redefineAll($DataViewPrototype, {
508
setInt8: function setInt8(byteOffset, value) {
509
nativeSetInt8.call(this, byteOffset, value << 24 >> 24);
511
setUint8: function setUint8(byteOffset, value) {
512
nativeSetInt8.call(this, byteOffset, value << 24 >> 24);
514
}, { unsafe: true });
517
setToStringTag($ArrayBuffer, ARRAY_BUFFER);
518
setToStringTag($DataView, DATA_VIEW);
521
ArrayBuffer: $ArrayBuffer,
529
(function(module, __unused_webpack_exports, __webpack_require__) {
533
var toObject = __webpack_require__(7908);
534
var toAbsoluteIndex = __webpack_require__(1400);
535
var toLength = __webpack_require__(7466);
541
module.exports = [].copyWithin || function copyWithin(target , start ) {
542
var O = toObject(this);
543
var len = toLength(O.length);
544
var to = toAbsoluteIndex(target, len);
545
var from = toAbsoluteIndex(start, len);
546
var end = arguments.length > 2 ? arguments[2] : undefined;
547
var count = min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to);
549
if (from < to && to < from + count) {
554
while (count-- > 0) {
555
if (from in O) O[to] = O[from];
566
(function(module, __unused_webpack_exports, __webpack_require__) {
570
var toObject = __webpack_require__(7908);
571
var toAbsoluteIndex = __webpack_require__(1400);
572
var toLength = __webpack_require__(7466);
576
module.exports = function fill(value ) {
577
var O = toObject(this);
578
var length = toLength(O.length);
579
var argumentsLength = arguments.length;
580
var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length);
581
var end = argumentsLength > 2 ? arguments[2] : undefined;
582
var endPos = end === undefined ? length : toAbsoluteIndex(end, length);
583
while (endPos > index) O[index++] = value;
591
(function(module, __unused_webpack_exports, __webpack_require__) {
595
var $forEach = __webpack_require__(2092).forEach;
596
var arrayMethodIsStrict = __webpack_require__(9341);
598
var STRICT_METHOD = arrayMethodIsStrict('forEach');
602
module.exports = !STRICT_METHOD ? function forEach(callbackfn ) {
603
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
610
(function(module, __unused_webpack_exports, __webpack_require__) {
614
var bind = __webpack_require__(9974);
615
var toObject = __webpack_require__(7908);
616
var callWithSafeIterationClosing = __webpack_require__(3411);
617
var isArrayIteratorMethod = __webpack_require__(7659);
618
var toLength = __webpack_require__(7466);
619
var createProperty = __webpack_require__(6135);
620
var getIteratorMethod = __webpack_require__(1246);
624
module.exports = function from(arrayLike ) {
625
var O = toObject(arrayLike);
626
var C = typeof this == 'function' ? this : Array;
627
var argumentsLength = arguments.length;
628
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
629
var mapping = mapfn !== undefined;
630
var iteratorMethod = getIteratorMethod(O);
632
var length, result, step, iterator, next, value;
633
if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
635
if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
636
iterator = iteratorMethod.call(O);
637
next = iterator.next;
639
for (;!(step = next.call(iterator)).done; index++) {
640
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
641
createProperty(result, index, value);
644
length = toLength(O.length);
645
result = new C(length);
646
for (;length > index; index++) {
647
value = mapping ? mapfn(O[index], index) : O[index];
648
createProperty(result, index, value);
651
result.length = index;
659
(function(module, __unused_webpack_exports, __webpack_require__) {
661
var toIndexedObject = __webpack_require__(5656);
662
var toLength = __webpack_require__(7466);
663
var toAbsoluteIndex = __webpack_require__(1400);
666
var createMethod = function (IS_INCLUDES) {
667
return function ($this, el, fromIndex) {
668
var O = toIndexedObject($this);
669
var length = toLength(O.length);
670
var index = toAbsoluteIndex(fromIndex, length);
674
if (IS_INCLUDES && el != el) while (length > index) {
677
if (value != value) return true;
679
} else for (;length > index; index++) {
680
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
681
} return !IS_INCLUDES && -1;
688
includes: createMethod(true),
691
indexOf: createMethod(false)
698
(function(module, __unused_webpack_exports, __webpack_require__) {
700
var bind = __webpack_require__(9974);
701
var IndexedObject = __webpack_require__(8361);
702
var toObject = __webpack_require__(7908);
703
var toLength = __webpack_require__(7466);
704
var arraySpeciesCreate = __webpack_require__(5417);
709
var createMethod = function (TYPE) {
710
var IS_MAP = TYPE == 1;
711
var IS_FILTER = TYPE == 2;
712
var IS_SOME = TYPE == 3;
713
var IS_EVERY = TYPE == 4;
714
var IS_FIND_INDEX = TYPE == 6;
715
var IS_FILTER_OUT = TYPE == 7;
716
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
717
return function ($this, callbackfn, that, specificCreate) {
718
var O = toObject($this);
719
var self = IndexedObject(O);
720
var boundFunction = bind(callbackfn, that, 3);
721
var length = toLength(self.length);
723
var create = specificCreate || arraySpeciesCreate;
724
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
726
for (;length > index; index++) if (NO_HOLES || index in self) {
728
result = boundFunction(value, index, O);
730
if (IS_MAP) target[index] = result;
731
else if (result) switch (TYPE) {
733
case 5: return value;
734
case 6: return index;
735
case 2: push.call(target, value);
736
} else switch (TYPE) {
737
case 4: return false;
738
case 7: push.call(target, value);
742
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
749
forEach: createMethod(0),
752
map: createMethod(1),
755
filter: createMethod(2),
758
some: createMethod(3),
761
every: createMethod(4),
764
find: createMethod(5),
767
findIndex: createMethod(6),
770
filterOut: createMethod(7)
777
(function(module, __unused_webpack_exports, __webpack_require__) {
781
var toIndexedObject = __webpack_require__(5656);
782
var toInteger = __webpack_require__(9958);
783
var toLength = __webpack_require__(7466);
784
var arrayMethodIsStrict = __webpack_require__(9341);
787
var nativeLastIndexOf = [].lastIndexOf;
788
var NEGATIVE_ZERO = !!nativeLastIndexOf && 1 / [1].lastIndexOf(1, -0) < 0;
789
var STRICT_METHOD = arrayMethodIsStrict('lastIndexOf');
790
var FORCED = NEGATIVE_ZERO || !STRICT_METHOD;
794
module.exports = FORCED ? function lastIndexOf(searchElement ) {
796
if (NEGATIVE_ZERO) return nativeLastIndexOf.apply(this, arguments) || 0;
797
var O = toIndexedObject(this);
798
var length = toLength(O.length);
799
var index = length - 1;
800
if (arguments.length > 1) index = min(index, toInteger(arguments[1]));
801
if (index < 0) index = length + index;
802
for (;index >= 0; index--) if (index in O && O[index] === searchElement) return index || 0;
804
} : nativeLastIndexOf;
810
(function(module, __unused_webpack_exports, __webpack_require__) {
812
var fails = __webpack_require__(7293);
813
var wellKnownSymbol = __webpack_require__(5112);
814
var V8_VERSION = __webpack_require__(7392);
816
var SPECIES = wellKnownSymbol('species');
818
module.exports = function (METHOD_NAME) {
822
return V8_VERSION >= 51 || !fails(function () {
824
var constructor = array.constructor = {};
825
constructor[SPECIES] = function () {
828
return array[METHOD_NAME](Boolean).foo !== 1;
836
(function(module, __unused_webpack_exports, __webpack_require__) {
840
var fails = __webpack_require__(7293);
842
module.exports = function (METHOD_NAME, argument) {
843
var method = [][METHOD_NAME];
844
return !!method && fails(function () {
846
method.call(null, argument || function () { throw 1; }, 1);
854
(function(module, __unused_webpack_exports, __webpack_require__) {
856
var aFunction = __webpack_require__(3099);
857
var toObject = __webpack_require__(7908);
858
var IndexedObject = __webpack_require__(8361);
859
var toLength = __webpack_require__(7466);
862
var createMethod = function (IS_RIGHT) {
863
return function (that, callbackfn, argumentsLength, memo) {
864
aFunction(callbackfn);
865
var O = toObject(that);
866
var self = IndexedObject(O);
867
var length = toLength(O.length);
868
var index = IS_RIGHT ? length - 1 : 0;
869
var i = IS_RIGHT ? -1 : 1;
870
if (argumentsLength < 2) while (true) {
877
if (IS_RIGHT ? index < 0 : length <= index) {
878
throw TypeError('Reduce of empty array with no initial value');
881
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
882
memo = callbackfn(memo, self[index], index, O);
891
left: createMethod(false),
894
right: createMethod(true)
901
(function(module, __unused_webpack_exports, __webpack_require__) {
903
var isObject = __webpack_require__(111);
904
var isArray = __webpack_require__(3157);
905
var wellKnownSymbol = __webpack_require__(5112);
907
var SPECIES = wellKnownSymbol('species');
911
module.exports = function (originalArray, length) {
913
if (isArray(originalArray)) {
914
C = originalArray.constructor;
916
if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
917
else if (isObject(C)) {
919
if (C === null) C = undefined;
921
} return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
928
(function(module, __unused_webpack_exports, __webpack_require__) {
930
var anObject = __webpack_require__(9670);
931
var iteratorClose = __webpack_require__(9212);
934
module.exports = function (iterator, fn, value, ENTRIES) {
936
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
939
iteratorClose(iterator);
948
(function(module, __unused_webpack_exports, __webpack_require__) {
950
var wellKnownSymbol = __webpack_require__(5112);
952
var ITERATOR = wellKnownSymbol('iterator');
953
var SAFE_CLOSING = false;
957
var iteratorWithReturn = {
959
return { done: !!called++ };
961
'return': function () {
965
iteratorWithReturn[ITERATOR] = function () {
969
Array.from(iteratorWithReturn, function () { throw 2; });
972
module.exports = function (exec, SKIP_CLOSING) {
973
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
974
var ITERATION_SUPPORT = false;
977
object[ITERATOR] = function () {
980
return { done: ITERATION_SUPPORT = true };
986
return ITERATION_SUPPORT;
995
var toString = {}.toString;
997
module.exports = function (it) {
998
return toString.call(it).slice(8, -1);
1005
(function(module, __unused_webpack_exports, __webpack_require__) {
1007
var TO_STRING_TAG_SUPPORT = __webpack_require__(1694);
1008
var classofRaw = __webpack_require__(4326);
1009
var wellKnownSymbol = __webpack_require__(5112);
1011
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1013
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1016
var tryGet = function (it, key) {
1023
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1025
return it === undefined ? 'Undefined' : it === null ? 'Null'
1027
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
1029
: CORRECT_ARGUMENTS ? classofRaw(O)
1031
: (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
1038
(function(module, __unused_webpack_exports, __webpack_require__) {
1040
var has = __webpack_require__(6656);
1041
var ownKeys = __webpack_require__(3887);
1042
var getOwnPropertyDescriptorModule = __webpack_require__(1236);
1043
var definePropertyModule = __webpack_require__(3070);
1045
module.exports = function (target, source) {
1046
var keys = ownKeys(source);
1047
var defineProperty = definePropertyModule.f;
1048
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1049
for (var i = 0; i < keys.length; i++) {
1051
if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1059
(function(module, __unused_webpack_exports, __webpack_require__) {
1061
var fails = __webpack_require__(7293);
1063
module.exports = !fails(function () {
1065
F.prototype.constructor = null;
1066
return Object.getPrototypeOf(new F()) !== F.prototype;
1073
(function(module, __unused_webpack_exports, __webpack_require__) {
1077
var IteratorPrototype = __webpack_require__(3383).IteratorPrototype;
1078
var create = __webpack_require__(30);
1079
var createPropertyDescriptor = __webpack_require__(9114);
1080
var setToStringTag = __webpack_require__(8003);
1081
var Iterators = __webpack_require__(7497);
1083
var returnThis = function () { return this; };
1085
module.exports = function (IteratorConstructor, NAME, next) {
1086
var TO_STRING_TAG = NAME + ' Iterator';
1087
IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });
1088
setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
1089
Iterators[TO_STRING_TAG] = returnThis;
1090
return IteratorConstructor;
1097
(function(module, __unused_webpack_exports, __webpack_require__) {
1099
var DESCRIPTORS = __webpack_require__(9781);
1100
var definePropertyModule = __webpack_require__(3070);
1101
var createPropertyDescriptor = __webpack_require__(9114);
1103
module.exports = DESCRIPTORS ? function (object, key, value) {
1104
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
1105
} : function (object, key, value) {
1106
object[key] = value;
1116
module.exports = function (bitmap, value) {
1118
enumerable: !(bitmap & 1),
1119
configurable: !(bitmap & 2),
1120
writable: !(bitmap & 4),
1129
(function(module, __unused_webpack_exports, __webpack_require__) {
1133
var toPrimitive = __webpack_require__(7593);
1134
var definePropertyModule = __webpack_require__(3070);
1135
var createPropertyDescriptor = __webpack_require__(9114);
1137
module.exports = function (object, key, value) {
1138
var propertyKey = toPrimitive(key);
1139
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
1140
else object[propertyKey] = value;
1147
(function(module, __unused_webpack_exports, __webpack_require__) {
1151
var $ = __webpack_require__(2109);
1152
var createIteratorConstructor = __webpack_require__(4994);
1153
var getPrototypeOf = __webpack_require__(9518);
1154
var setPrototypeOf = __webpack_require__(7674);
1155
var setToStringTag = __webpack_require__(8003);
1156
var createNonEnumerableProperty = __webpack_require__(8880);
1157
var redefine = __webpack_require__(1320);
1158
var wellKnownSymbol = __webpack_require__(5112);
1159
var IS_PURE = __webpack_require__(1913);
1160
var Iterators = __webpack_require__(7497);
1161
var IteratorsCore = __webpack_require__(3383);
1163
var IteratorPrototype = IteratorsCore.IteratorPrototype;
1164
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1165
var ITERATOR = wellKnownSymbol('iterator');
1167
var VALUES = 'values';
1168
var ENTRIES = 'entries';
1170
var returnThis = function () { return this; };
1172
module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1173
createIteratorConstructor(IteratorConstructor, NAME, next);
1175
var getIterationMethod = function (KIND) {
1176
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1177
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
1179
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1180
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1181
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1182
} return function () { return new IteratorConstructor(this); };
1185
var TO_STRING_TAG = NAME + ' Iterator';
1186
var INCORRECT_VALUES_NAME = false;
1187
var IterablePrototype = Iterable.prototype;
1188
var nativeIterator = IterablePrototype[ITERATOR]
1189
|| IterablePrototype['@@iterator']
1190
|| DEFAULT && IterablePrototype[DEFAULT];
1191
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1192
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1193
var CurrentIteratorPrototype, methods, KEY;
1196
if (anyNativeIterator) {
1197
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1198
if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1199
if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1200
if (setPrototypeOf) {
1201
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1202
} else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {
1203
createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);
1207
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
1208
if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
1213
if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1214
INCORRECT_VALUES_NAME = true;
1215
defaultIterator = function values() { return nativeIterator.call(this); };
1219
if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
1220
createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);
1222
Iterators[NAME] = defaultIterator;
1227
values: getIterationMethod(VALUES),
1228
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1229
entries: getIterationMethod(ENTRIES)
1231
if (FORCED) for (KEY in methods) {
1232
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1233
redefine(IterablePrototype, KEY, methods[KEY]);
1235
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1245
(function(module, __unused_webpack_exports, __webpack_require__) {
1247
var fails = __webpack_require__(7293);
1250
module.exports = !fails(function () {
1251
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
1258
(function(module, __unused_webpack_exports, __webpack_require__) {
1260
var global = __webpack_require__(7854);
1261
var isObject = __webpack_require__(111);
1263
var document = global.document;
1265
var EXISTS = isObject(document) && isObject(document.createElement);
1267
module.exports = function (it) {
1268
return EXISTS ? document.createElement(it) : {};
1281
CSSStyleDeclaration: 0,
1287
DataTransferItemList: 0,
1289
HTMLAllCollection: 0,
1292
HTMLSelectElement: 0,
1297
PaintRequestList: 0,
1305
SVGTransformList: 0,
1306
SourceBufferList: 0,
1308
TextTrackCueList: 0,
1317
(function(module, __unused_webpack_exports, __webpack_require__) {
1319
var getBuiltIn = __webpack_require__(5005);
1321
module.exports = getBuiltIn('navigator', 'userAgent') || '';
1327
(function(module, __unused_webpack_exports, __webpack_require__) {
1329
var global = __webpack_require__(7854);
1330
var userAgent = __webpack_require__(8113);
1332
var process = global.process;
1333
var versions = process && process.versions;
1334
var v8 = versions && versions.v8;
1338
match = v8.split('.');
1339
version = match[0] + match[1];
1340
} else if (userAgent) {
1341
match = userAgent.match(/Edge\/(\d+)/);
1342
if (!match || match[1] >= 74) {
1343
match = userAgent.match(/Chrome\/(\d+)/);
1344
if (match) version = match[1];
1348
module.exports = version && +version;
1361
'propertyIsEnumerable',
1371
(function(module, __unused_webpack_exports, __webpack_require__) {
1373
var global = __webpack_require__(7854);
1374
var getOwnPropertyDescriptor = __webpack_require__(1236).f;
1375
var createNonEnumerableProperty = __webpack_require__(8880);
1376
var redefine = __webpack_require__(1320);
1377
var setGlobal = __webpack_require__(3505);
1378
var copyConstructorProperties = __webpack_require__(9920);
1379
var isForced = __webpack_require__(4705);
1395
module.exports = function (options, source) {
1396
var TARGET = options.target;
1397
var GLOBAL = options.global;
1398
var STATIC = options.stat;
1399
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1402
} else if (STATIC) {
1403
target = global[TARGET] || setGlobal(TARGET, {});
1405
target = (global[TARGET] || {}).prototype;
1407
if (target) for (key in source) {
1408
sourceProperty = source[key];
1409
if (options.noTargetGet) {
1410
descriptor = getOwnPropertyDescriptor(target, key);
1411
targetProperty = descriptor && descriptor.value;
1412
} else targetProperty = target[key];
1413
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1415
if (!FORCED && targetProperty !== undefined) {
1416
if (typeof sourceProperty === typeof targetProperty) continue;
1417
copyConstructorProperties(sourceProperty, targetProperty);
1420
if (options.sham || (targetProperty && targetProperty.sham)) {
1421
createNonEnumerableProperty(sourceProperty, 'sham', true);
1424
redefine(target, key, sourceProperty, options);
1434
module.exports = function (exec) {
1446
(function(module, __unused_webpack_exports, __webpack_require__) {
1451
__webpack_require__(4916);
1452
var redefine = __webpack_require__(1320);
1453
var fails = __webpack_require__(7293);
1454
var wellKnownSymbol = __webpack_require__(5112);
1455
var regexpExec = __webpack_require__(2261);
1456
var createNonEnumerableProperty = __webpack_require__(8880);
1458
var SPECIES = wellKnownSymbol('species');
1460
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1465
re.exec = function () {
1467
result.groups = { a: '7' };
1470
return ''.replace(re, '$<a>') !== '7';
1475
var REPLACE_KEEPS_$0 = (function () {
1476
return 'a'.replace(/./, '$0') === '$0';
1479
var REPLACE = wellKnownSymbol('replace');
1481
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
1483
return /./[REPLACE]('a', '$0') === '';
1490
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
1493
var originalExec = re.exec;
1494
re.exec = function () { return originalExec.apply(this, arguments); };
1495
var result = 'ab'.split(re);
1496
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
1499
module.exports = function (KEY, length, exec, sham) {
1500
var SYMBOL = wellKnownSymbol(KEY);
1502
var DELEGATES_TO_SYMBOL = !fails(function () {
1505
O[SYMBOL] = function () { return 7; };
1506
return ''[KEY](O) != 7;
1509
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
1511
var execCalled = false;
1514
if (KEY === 'split') {
1521
re.constructor = {};
1522
re.constructor[SPECIES] = function () { return re; };
1524
re[SYMBOL] = /./[SYMBOL];
1527
re.exec = function () { execCalled = true; return null; };
1534
!DELEGATES_TO_SYMBOL ||
1535
!DELEGATES_TO_EXEC ||
1536
(KEY === 'replace' && !(
1537
REPLACE_SUPPORTS_NAMED_GROUPS &&
1539
!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1541
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1543
var nativeRegExpMethod = /./[SYMBOL];
1544
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1545
if (regexp.exec === regexpExec) {
1546
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1550
return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
1552
return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1554
return { done: false };
1556
REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
1557
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1559
var stringMethod = methods[0];
1560
var regexMethod = methods[1];
1562
redefine(String.prototype, KEY, stringMethod);
1563
redefine(RegExp.prototype, SYMBOL, length == 2
1566
? function (string, arg) { return regexMethod.call(string, this, arg); }
1569
: function (string) { return regexMethod.call(string, this); }
1573
if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1580
(function(module, __unused_webpack_exports, __webpack_require__) {
1582
var aFunction = __webpack_require__(3099);
1585
module.exports = function (fn, that, length) {
1587
if (that === undefined) return fn;
1589
case 0: return function () {
1590
return fn.call(that);
1592
case 1: return function (a) {
1593
return fn.call(that, a);
1595
case 2: return function (a, b) {
1596
return fn.call(that, a, b);
1598
case 3: return function (a, b, c) {
1599
return fn.call(that, a, b, c);
1602
return function () {
1603
return fn.apply(that, arguments);
1611
(function(module, __unused_webpack_exports, __webpack_require__) {
1613
var path = __webpack_require__(857);
1614
var global = __webpack_require__(7854);
1616
var aFunction = function (variable) {
1617
return typeof variable == 'function' ? variable : undefined;
1620
module.exports = function (namespace, method) {
1621
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
1622
: path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
1629
(function(module, __unused_webpack_exports, __webpack_require__) {
1631
var classof = __webpack_require__(648);
1632
var Iterators = __webpack_require__(7497);
1633
var wellKnownSymbol = __webpack_require__(5112);
1635
var ITERATOR = wellKnownSymbol('iterator');
1637
module.exports = function (it) {
1638
if (it != undefined) return it[ITERATOR]
1640
|| Iterators[classof(it)];
1647
(function(module, __unused_webpack_exports, __webpack_require__) {
1649
var anObject = __webpack_require__(9670);
1650
var getIteratorMethod = __webpack_require__(1246);
1652
module.exports = function (it) {
1653
var iteratorMethod = getIteratorMethod(it);
1654
if (typeof iteratorMethod != 'function') {
1655
throw TypeError(String(it) + ' is not iterable');
1656
} return anObject(iteratorMethod.call(it));
1663
(function(module, __unused_webpack_exports, __webpack_require__) {
1665
var toObject = __webpack_require__(7908);
1667
var floor = Math.floor;
1668
var replace = ''.replace;
1669
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
1670
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
1673
module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
1674
var tailPos = position + matched.length;
1675
var m = captures.length;
1676
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1677
if (namedCaptures !== undefined) {
1678
namedCaptures = toObject(namedCaptures);
1679
symbols = SUBSTITUTION_SYMBOLS;
1681
return replace.call(replacement, symbols, function (match, ch) {
1683
switch (ch.charAt(0)) {
1684
case '$': return '$';
1685
case '&': return matched;
1686
case '`': return str.slice(0, position);
1687
case "'": return str.slice(tailPos);
1689
capture = namedCaptures[ch.slice(1, -1)];
1693
if (n === 0) return match;
1695
var f = floor(n / 10);
1696
if (f === 0) return match;
1697
if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1700
capture = captures[n - 1];
1702
return capture === undefined ? '' : capture;
1710
(function(module, __unused_webpack_exports, __webpack_require__) {
1712
var check = function (it) {
1713
return it && it.Math == Math && it;
1719
check(typeof globalThis == 'object' && globalThis) ||
1720
check(typeof window == 'object' && window) ||
1721
check(typeof self == 'object' && self) ||
1722
check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
1724
(function () { return this; })() || Function('return this')();
1732
var hasOwnProperty = {}.hasOwnProperty;
1734
module.exports = function (it, key) {
1735
return hasOwnProperty.call(it, key);
1750
(function(module, __unused_webpack_exports, __webpack_require__) {
1752
var getBuiltIn = __webpack_require__(5005);
1754
module.exports = getBuiltIn('document', 'documentElement');
1760
(function(module, __unused_webpack_exports, __webpack_require__) {
1762
var DESCRIPTORS = __webpack_require__(9781);
1763
var fails = __webpack_require__(7293);
1764
var createElement = __webpack_require__(317);
1767
module.exports = !DESCRIPTORS && !fails(function () {
1768
return Object.defineProperty(createElement('div'), 'a', {
1769
get: function () { return 7; }
1782
var floor = Math.floor;
1786
var pack = function (number, mantissaLength, bytes) {
1787
var buffer = new Array(bytes);
1788
var exponentLength = bytes * 8 - mantissaLength - 1;
1789
var eMax = (1 << exponentLength) - 1;
1790
var eBias = eMax >> 1;
1791
var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0;
1792
var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0;
1794
var exponent, mantissa, c;
1795
number = abs(number);
1797
if (number != number || number === Infinity) {
1799
mantissa = number != number ? 1 : 0;
1802
exponent = floor(log(number) / LN2);
1803
if (number * (c = pow(2, -exponent)) < 1) {
1807
if (exponent + eBias >= 1) {
1810
number += rt * pow(2, 1 - eBias);
1812
if (number * c >= 2) {
1816
if (exponent + eBias >= eMax) {
1819
} else if (exponent + eBias >= 1) {
1820
mantissa = (number * c - 1) * pow(2, mantissaLength);
1821
exponent = exponent + eBias;
1823
mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength);
1827
for (; mantissaLength >= 8; buffer[index++] = mantissa & 255, mantissa /= 256, mantissaLength -= 8);
1828
exponent = exponent << mantissaLength | mantissa;
1829
exponentLength += mantissaLength;
1830
for (; exponentLength > 0; buffer[index++] = exponent & 255, exponent /= 256, exponentLength -= 8);
1831
buffer[--index] |= sign * 128;
1835
var unpack = function (buffer, mantissaLength) {
1836
var bytes = buffer.length;
1837
var exponentLength = bytes * 8 - mantissaLength - 1;
1838
var eMax = (1 << exponentLength) - 1;
1839
var eBias = eMax >> 1;
1840
var nBits = exponentLength - 7;
1841
var index = bytes - 1;
1842
var sign = buffer[index--];
1843
var exponent = sign & 127;
1846
for (; nBits > 0; exponent = exponent * 256 + buffer[index], index--, nBits -= 8);
1847
mantissa = exponent & (1 << -nBits) - 1;
1848
exponent >>= -nBits;
1849
nBits += mantissaLength;
1850
for (; nBits > 0; mantissa = mantissa * 256 + buffer[index], index--, nBits -= 8);
1851
if (exponent === 0) {
1852
exponent = 1 - eBias;
1853
} else if (exponent === eMax) {
1854
return mantissa ? NaN : sign ? -Infinity : Infinity;
1856
mantissa = mantissa + pow(2, mantissaLength);
1857
exponent = exponent - eBias;
1858
} return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength);
1870
(function(module, __unused_webpack_exports, __webpack_require__) {
1872
var fails = __webpack_require__(7293);
1873
var classof = __webpack_require__(4326);
1875
var split = ''.split;
1878
module.exports = fails(function () {
1881
return !Object('z').propertyIsEnumerable(0);
1883
return classof(it) == 'String' ? split.call(it, '') : Object(it);
1890
(function(module, __unused_webpack_exports, __webpack_require__) {
1892
var isObject = __webpack_require__(111);
1893
var setPrototypeOf = __webpack_require__(7674);
1896
module.exports = function ($this, dummy, Wrapper) {
1897
var NewTarget, NewTargetPrototype;
1902
typeof (NewTarget = dummy.constructor) == 'function' &&
1903
NewTarget !== Wrapper &&
1904
isObject(NewTargetPrototype = NewTarget.prototype) &&
1905
NewTargetPrototype !== Wrapper.prototype
1906
) setPrototypeOf($this, NewTargetPrototype);
1914
(function(module, __unused_webpack_exports, __webpack_require__) {
1916
var store = __webpack_require__(5465);
1918
var functionToString = Function.toString;
1921
if (typeof store.inspectSource != 'function') {
1922
store.inspectSource = function (it) {
1923
return functionToString.call(it);
1927
module.exports = store.inspectSource;
1933
(function(module, __unused_webpack_exports, __webpack_require__) {
1935
var NATIVE_WEAK_MAP = __webpack_require__(8536);
1936
var global = __webpack_require__(7854);
1937
var isObject = __webpack_require__(111);
1938
var createNonEnumerableProperty = __webpack_require__(8880);
1939
var objectHas = __webpack_require__(6656);
1940
var shared = __webpack_require__(5465);
1941
var sharedKey = __webpack_require__(6200);
1942
var hiddenKeys = __webpack_require__(3501);
1944
var WeakMap = global.WeakMap;
1947
var enforce = function (it) {
1948
return has(it) ? get(it) : set(it, {});
1951
var getterFor = function (TYPE) {
1952
return function (it) {
1954
if (!isObject(it) || (state = get(it)).type !== TYPE) {
1955
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
1960
if (NATIVE_WEAK_MAP) {
1961
var store = shared.state || (shared.state = new WeakMap());
1962
var wmget = store.get;
1963
var wmhas = store.has;
1964
var wmset = store.set;
1965
set = function (it, metadata) {
1966
metadata.facade = it;
1967
wmset.call(store, it, metadata);
1970
get = function (it) {
1971
return wmget.call(store, it) || {};
1973
has = function (it) {
1974
return wmhas.call(store, it);
1977
var STATE = sharedKey('state');
1978
hiddenKeys[STATE] = true;
1979
set = function (it, metadata) {
1980
metadata.facade = it;
1981
createNonEnumerableProperty(it, STATE, metadata);
1984
get = function (it) {
1985
return objectHas(it, STATE) ? it[STATE] : {};
1987
has = function (it) {
1988
return objectHas(it, STATE);
1997
getterFor: getterFor
2004
(function(module, __unused_webpack_exports, __webpack_require__) {
2006
var wellKnownSymbol = __webpack_require__(5112);
2007
var Iterators = __webpack_require__(7497);
2009
var ITERATOR = wellKnownSymbol('iterator');
2010
var ArrayPrototype = Array.prototype;
2013
module.exports = function (it) {
2014
return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
2021
(function(module, __unused_webpack_exports, __webpack_require__) {
2023
var classof = __webpack_require__(4326);
2027
module.exports = Array.isArray || function isArray(arg) {
2028
return classof(arg) == 'Array';
2035
(function(module, __unused_webpack_exports, __webpack_require__) {
2037
var fails = __webpack_require__(7293);
2039
var replacement = /#|\.prototype\./;
2041
var isForced = function (feature, detection) {
2042
var value = data[normalize(feature)];
2043
return value == POLYFILL ? true
2044
: value == NATIVE ? false
2045
: typeof detection == 'function' ? fails(detection)
2049
var normalize = isForced.normalize = function (string) {
2050
return String(string).replace(replacement, '.').toLowerCase();
2053
var data = isForced.data = {};
2054
var NATIVE = isForced.NATIVE = 'N';
2055
var POLYFILL = isForced.POLYFILL = 'P';
2057
module.exports = isForced;
2065
module.exports = function (it) {
2066
return typeof it === 'object' ? it !== null : typeof it === 'function';
2075
module.exports = false;
2081
(function(module, __unused_webpack_exports, __webpack_require__) {
2083
var isObject = __webpack_require__(111);
2084
var classof = __webpack_require__(4326);
2085
var wellKnownSymbol = __webpack_require__(5112);
2087
var MATCH = wellKnownSymbol('match');
2091
module.exports = function (it) {
2093
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
2100
(function(module, __unused_webpack_exports, __webpack_require__) {
2102
var anObject = __webpack_require__(9670);
2104
module.exports = function (iterator) {
2105
var returnMethod = iterator['return'];
2106
if (returnMethod !== undefined) {
2107
return anObject(returnMethod.call(iterator)).value;
2115
(function(module, __unused_webpack_exports, __webpack_require__) {
2119
var fails = __webpack_require__(7293);
2120
var getPrototypeOf = __webpack_require__(9518);
2121
var createNonEnumerableProperty = __webpack_require__(8880);
2122
var has = __webpack_require__(6656);
2123
var wellKnownSymbol = __webpack_require__(5112);
2124
var IS_PURE = __webpack_require__(1913);
2126
var ITERATOR = wellKnownSymbol('iterator');
2127
var BUGGY_SAFARI_ITERATORS = false;
2129
var returnThis = function () { return this; };
2133
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
2136
arrayIterator = [].keys();
2138
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
2140
PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
2141
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
2145
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {
2148
return IteratorPrototype[ITERATOR].call(test) !== test;
2151
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
2154
if ((!IS_PURE || NEW_ITERATOR_PROTOTYPE) && !has(IteratorPrototype, ITERATOR)) {
2155
createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
2159
IteratorPrototype: IteratorPrototype,
2160
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
2175
(function(module, __unused_webpack_exports, __webpack_require__) {
2177
var fails = __webpack_require__(7293);
2179
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
2182
return !String(Symbol());
2189
(function(module, __unused_webpack_exports, __webpack_require__) {
2191
var fails = __webpack_require__(7293);
2192
var wellKnownSymbol = __webpack_require__(5112);
2193
var IS_PURE = __webpack_require__(1913);
2195
var ITERATOR = wellKnownSymbol('iterator');
2197
module.exports = !fails(function () {
2198
var url = new URL('b?a=1&b=2&c=3', 'http://a');
2199
var searchParams = url.searchParams;
2201
url.pathname = 'c%20d';
2202
searchParams.forEach(function (value, key) {
2203
searchParams['delete']('b');
2204
result += key + value;
2206
return (IS_PURE && !url.toJSON)
2207
|| !searchParams.sort
2208
|| url.href !== 'http://a/c%20d?a=1&c=3'
2209
|| searchParams.get('c') !== '3'
2210
|| String(new URLSearchParams('?a=1')) !== 'a=1'
2211
|| !searchParams[ITERATOR]
2213
|| new URL('https://a@b').username !== 'a'
2214
|| new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
2216
|| new URL('http://тест').host !== 'xn--e1aybc'
2218
|| new URL('http://a#б').hash !== '#%D0%B1'
2220
|| result !== 'a1c3'
2222
|| new URL('http://x', undefined).host !== 'x';
2229
(function(module, __unused_webpack_exports, __webpack_require__) {
2231
var global = __webpack_require__(7854);
2232
var inspectSource = __webpack_require__(2788);
2234
var WeakMap = global.WeakMap;
2236
module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
2242
(function(module, __unused_webpack_exports, __webpack_require__) {
2246
var DESCRIPTORS = __webpack_require__(9781);
2247
var fails = __webpack_require__(7293);
2248
var objectKeys = __webpack_require__(1956);
2249
var getOwnPropertySymbolsModule = __webpack_require__(5181);
2250
var propertyIsEnumerableModule = __webpack_require__(5296);
2251
var toObject = __webpack_require__(7908);
2252
var IndexedObject = __webpack_require__(8361);
2254
var nativeAssign = Object.assign;
2255
var defineProperty = Object.defineProperty;
2259
module.exports = !nativeAssign || fails(function () {
2261
if (DESCRIPTORS && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
2264
defineProperty(this, 'b', {
2269
}), { b: 2 })).b !== 1) return true;
2274
var symbol = Symbol();
2275
var alphabet = 'abcdefghijklmnopqrst';
2277
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2278
return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
2279
}) ? function assign(target, source) {
2280
var T = toObject(target);
2281
var argumentsLength = arguments.length;
2283
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2284
var propertyIsEnumerable = propertyIsEnumerableModule.f;
2285
while (argumentsLength > index) {
2286
var S = IndexedObject(arguments[index++]);
2287
var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
2288
var length = keys.length;
2291
while (length > j) {
2293
if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];
2302
(function(module, __unused_webpack_exports, __webpack_require__) {
2304
var anObject = __webpack_require__(9670);
2305
var defineProperties = __webpack_require__(6048);
2306
var enumBugKeys = __webpack_require__(748);
2307
var hiddenKeys = __webpack_require__(3501);
2308
var html = __webpack_require__(490);
2309
var documentCreateElement = __webpack_require__(317);
2310
var sharedKey = __webpack_require__(6200);
2314
var PROTOTYPE = 'prototype';
2315
var SCRIPT = 'script';
2316
var IE_PROTO = sharedKey('IE_PROTO');
2318
var EmptyConstructor = function () { };
2320
var scriptTag = function (content) {
2321
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
2325
var NullProtoObjectViaActiveX = function (activeXDocument) {
2326
activeXDocument.write(scriptTag(''));
2327
activeXDocument.close();
2328
var temp = activeXDocument.parentWindow.Object;
2329
activeXDocument = null;
2334
var NullProtoObjectViaIFrame = function () {
2336
var iframe = documentCreateElement('iframe');
2337
var JS = 'java' + SCRIPT + ':';
2339
iframe.style.display = 'none';
2340
html.appendChild(iframe);
2342
iframe.src = String(JS);
2343
iframeDocument = iframe.contentWindow.document;
2344
iframeDocument.open();
2345
iframeDocument.write(scriptTag('document.F=Object'));
2346
iframeDocument.close();
2347
return iframeDocument.F;
2356
var NullProtoObject = function () {
2359
activeXDocument = document.domain && new ActiveXObject('htmlfile');
2361
NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
2362
var length = enumBugKeys.length;
2363
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
2364
return NullProtoObject();
2367
hiddenKeys[IE_PROTO] = true;
2371
module.exports = Object.create || function create(O, Properties) {
2374
EmptyConstructor[PROTOTYPE] = anObject(O);
2375
result = new EmptyConstructor();
2376
EmptyConstructor[PROTOTYPE] = null;
2378
result[IE_PROTO] = O;
2379
} else result = NullProtoObject();
2380
return Properties === undefined ? result : defineProperties(result, Properties);
2387
(function(module, __unused_webpack_exports, __webpack_require__) {
2389
var DESCRIPTORS = __webpack_require__(9781);
2390
var definePropertyModule = __webpack_require__(3070);
2391
var anObject = __webpack_require__(9670);
2392
var objectKeys = __webpack_require__(1956);
2396
module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
2398
var keys = objectKeys(Properties);
2399
var length = keys.length;
2402
while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
2410
(function(__unused_webpack_module, exports, __webpack_require__) {
2412
var DESCRIPTORS = __webpack_require__(9781);
2413
var IE8_DOM_DEFINE = __webpack_require__(4664);
2414
var anObject = __webpack_require__(9670);
2415
var toPrimitive = __webpack_require__(7593);
2417
var nativeDefineProperty = Object.defineProperty;
2421
exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
2423
P = toPrimitive(P, true);
2424
anObject(Attributes);
2425
if (IE8_DOM_DEFINE) try {
2426
return nativeDefineProperty(O, P, Attributes);
2428
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
2429
if ('value' in Attributes) O[P] = Attributes.value;
2437
(function(__unused_webpack_module, exports, __webpack_require__) {
2439
var DESCRIPTORS = __webpack_require__(9781);
2440
var propertyIsEnumerableModule = __webpack_require__(5296);
2441
var createPropertyDescriptor = __webpack_require__(9114);
2442
var toIndexedObject = __webpack_require__(5656);
2443
var toPrimitive = __webpack_require__(7593);
2444
var has = __webpack_require__(6656);
2445
var IE8_DOM_DEFINE = __webpack_require__(4664);
2447
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2451
exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
2452
O = toIndexedObject(O);
2453
P = toPrimitive(P, true);
2454
if (IE8_DOM_DEFINE) try {
2455
return nativeGetOwnPropertyDescriptor(O, P);
2457
if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
2464
(function(__unused_webpack_module, exports, __webpack_require__) {
2466
var internalObjectKeys = __webpack_require__(6324);
2467
var enumBugKeys = __webpack_require__(748);
2469
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
2473
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
2474
return internalObjectKeys(O, hiddenKeys);
2481
(function(__unused_webpack_module, exports) {
2483
exports.f = Object.getOwnPropertySymbols;
2489
(function(module, __unused_webpack_exports, __webpack_require__) {
2491
var has = __webpack_require__(6656);
2492
var toObject = __webpack_require__(7908);
2493
var sharedKey = __webpack_require__(6200);
2494
var CORRECT_PROTOTYPE_GETTER = __webpack_require__(8544);
2496
var IE_PROTO = sharedKey('IE_PROTO');
2497
var ObjectPrototype = Object.prototype;
2501
module.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
2503
if (has(O, IE_PROTO)) return O[IE_PROTO];
2504
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
2505
return O.constructor.prototype;
2506
} return O instanceof Object ? ObjectPrototype : null;
2513
(function(module, __unused_webpack_exports, __webpack_require__) {
2515
var has = __webpack_require__(6656);
2516
var toIndexedObject = __webpack_require__(5656);
2517
var indexOf = __webpack_require__(1318).indexOf;
2518
var hiddenKeys = __webpack_require__(3501);
2520
module.exports = function (object, names) {
2521
var O = toIndexedObject(object);
2525
for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
2527
while (names.length > i) if (has(O, key = names[i++])) {
2528
~indexOf(result, key) || result.push(key);
2537
(function(module, __unused_webpack_exports, __webpack_require__) {
2539
var internalObjectKeys = __webpack_require__(6324);
2540
var enumBugKeys = __webpack_require__(748);
2544
module.exports = Object.keys || function keys(O) {
2545
return internalObjectKeys(O, enumBugKeys);
2552
(function(__unused_webpack_module, exports) {
2556
var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
2557
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2560
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
2564
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
2565
var descriptor = getOwnPropertyDescriptor(this, V);
2566
return !!descriptor && descriptor.enumerable;
2567
} : nativePropertyIsEnumerable;
2573
(function(module, __unused_webpack_exports, __webpack_require__) {
2576
var anObject = __webpack_require__(9670);
2577
var aPossiblePrototype = __webpack_require__(6077);
2582
module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
2583
var CORRECT_SETTER = false;
2587
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
2588
setter.call(test, []);
2589
CORRECT_SETTER = test instanceof Array;
2591
return function setPrototypeOf(O, proto) {
2593
aPossiblePrototype(proto);
2594
if (CORRECT_SETTER) setter.call(O, proto);
2595
else O.__proto__ = proto;
2604
(function(module, __unused_webpack_exports, __webpack_require__) {
2608
var TO_STRING_TAG_SUPPORT = __webpack_require__(1694);
2609
var classof = __webpack_require__(648);
2613
module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
2614
return '[object ' + classof(this) + ']';
2621
(function(module, __unused_webpack_exports, __webpack_require__) {
2623
var getBuiltIn = __webpack_require__(5005);
2624
var getOwnPropertyNamesModule = __webpack_require__(8006);
2625
var getOwnPropertySymbolsModule = __webpack_require__(5181);
2626
var anObject = __webpack_require__(9670);
2629
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
2630
var keys = getOwnPropertyNamesModule.f(anObject(it));
2631
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2632
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
2639
(function(module, __unused_webpack_exports, __webpack_require__) {
2641
var global = __webpack_require__(7854);
2643
module.exports = global;
2649
(function(module, __unused_webpack_exports, __webpack_require__) {
2651
var redefine = __webpack_require__(1320);
2653
module.exports = function (target, src, options) {
2654
for (var key in src) redefine(target, key, src[key], options);
2662
(function(module, __unused_webpack_exports, __webpack_require__) {
2664
var global = __webpack_require__(7854);
2665
var createNonEnumerableProperty = __webpack_require__(8880);
2666
var has = __webpack_require__(6656);
2667
var setGlobal = __webpack_require__(3505);
2668
var inspectSource = __webpack_require__(2788);
2669
var InternalStateModule = __webpack_require__(9909);
2671
var getInternalState = InternalStateModule.get;
2672
var enforceInternalState = InternalStateModule.enforce;
2673
var TEMPLATE = String(String).split('String');
2675
(module.exports = function (O, key, value, options) {
2676
var unsafe = options ? !!options.unsafe : false;
2677
var simple = options ? !!options.enumerable : false;
2678
var noTargetGet = options ? !!options.noTargetGet : false;
2680
if (typeof value == 'function') {
2681
if (typeof key == 'string' && !has(value, 'name')) {
2682
createNonEnumerableProperty(value, 'name', key);
2684
state = enforceInternalState(value);
2685
if (!state.source) {
2686
state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
2690
if (simple) O[key] = value;
2691
else setGlobal(key, value);
2693
} else if (!unsafe) {
2695
} else if (!noTargetGet && O[key]) {
2698
if (simple) O[key] = value;
2699
else createNonEnumerableProperty(O, key, value);
2701
})(Function.prototype, 'toString', function toString() {
2702
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
2709
(function(module, __unused_webpack_exports, __webpack_require__) {
2711
var classof = __webpack_require__(4326);
2712
var regexpExec = __webpack_require__(2261);
2716
module.exports = function (R, S) {
2718
if (typeof exec === 'function') {
2719
var result = exec.call(R, S);
2720
if (typeof result !== 'object') {
2721
throw TypeError('RegExp exec method returned something other than an Object or null');
2726
if (classof(R) !== 'RegExp') {
2727
throw TypeError('RegExp#exec called on incompatible receiver');
2730
return regexpExec.call(R, S);
2738
(function(module, __unused_webpack_exports, __webpack_require__) {
2742
var regexpFlags = __webpack_require__(7066);
2743
var stickyHelpers = __webpack_require__(2999);
2745
var nativeExec = RegExp.prototype.exec;
2749
var nativeReplace = String.prototype.replace;
2751
var patchedExec = nativeExec;
2753
var UPDATES_LAST_INDEX_WRONG = (function () {
2756
nativeExec.call(re1, 'a');
2757
nativeExec.call(re2, 'a');
2758
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
2761
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET;
2765
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
2767
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
2770
patchedExec = function exec(str) {
2772
var lastIndex, reCopy, match, i;
2773
var sticky = UNSUPPORTED_Y && re.sticky;
2774
var flags = regexpFlags.call(re);
2775
var source = re.source;
2780
flags = flags.replace('y', '');
2781
if (flags.indexOf('g') === -1) {
2785
strCopy = String(str).slice(re.lastIndex);
2787
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
2788
source = '(?: ' + source + ')';
2789
strCopy = ' ' + strCopy;
2794
reCopy = new RegExp('^(?:' + source + ')', flags);
2797
if (NPCG_INCLUDED) {
2798
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
2800
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
2802
match = nativeExec.call(sticky ? reCopy : re, strCopy);
2806
match.input = match.input.slice(charsAdded);
2807
match[0] = match[0].slice(charsAdded);
2808
match.index = re.lastIndex;
2809
re.lastIndex += match[0].length;
2810
} else re.lastIndex = 0;
2811
} else if (UPDATES_LAST_INDEX_WRONG && match) {
2812
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
2814
if (NPCG_INCLUDED && match && match.length > 1) {
2817
nativeReplace.call(match[0], reCopy, function () {
2818
for (i = 1; i < arguments.length - 2; i++) {
2819
if (arguments[i] === undefined) match[i] = undefined;
2828
module.exports = patchedExec;
2834
(function(module, __unused_webpack_exports, __webpack_require__) {
2838
var anObject = __webpack_require__(9670);
2842
module.exports = function () {
2843
var that = anObject(this);
2845
if (that.global) result += 'g';
2846
if (that.ignoreCase) result += 'i';
2847
if (that.multiline) result += 'm';
2848
if (that.dotAll) result += 's';
2849
if (that.unicode) result += 'u';
2850
if (that.sticky) result += 'y';
2858
(function(__unused_webpack_module, exports, __webpack_require__) {
2863
var fails = __webpack_require__(7293);
2868
return RegExp(s, f);
2871
exports.UNSUPPORTED_Y = fails(function () {
2873
var re = RE('a', 'y');
2875
return re.exec('abcd') != null;
2878
exports.BROKEN_CARET = fails(function () {
2880
var re = RE('^r', 'gy');
2882
return re.exec('str') != null;
2893
module.exports = function (it) {
2894
if (it == undefined) throw TypeError("Can't call method on " + it);
2902
(function(module, __unused_webpack_exports, __webpack_require__) {
2904
var global = __webpack_require__(7854);
2905
var createNonEnumerableProperty = __webpack_require__(8880);
2907
module.exports = function (key, value) {
2909
createNonEnumerableProperty(global, key, value);
2911
global[key] = value;
2919
(function(module, __unused_webpack_exports, __webpack_require__) {
2923
var getBuiltIn = __webpack_require__(5005);
2924
var definePropertyModule = __webpack_require__(3070);
2925
var wellKnownSymbol = __webpack_require__(5112);
2926
var DESCRIPTORS = __webpack_require__(9781);
2928
var SPECIES = wellKnownSymbol('species');
2930
module.exports = function (CONSTRUCTOR_NAME) {
2931
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
2932
var defineProperty = definePropertyModule.f;
2934
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
2935
defineProperty(Constructor, SPECIES, {
2937
get: function () { return this; }
2946
(function(module, __unused_webpack_exports, __webpack_require__) {
2948
var defineProperty = __webpack_require__(3070).f;
2949
var has = __webpack_require__(6656);
2950
var wellKnownSymbol = __webpack_require__(5112);
2952
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
2954
module.exports = function (it, TAG, STATIC) {
2955
if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
2956
defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
2964
(function(module, __unused_webpack_exports, __webpack_require__) {
2966
var shared = __webpack_require__(2309);
2967
var uid = __webpack_require__(9711);
2969
var keys = shared('keys');
2971
module.exports = function (key) {
2972
return keys[key] || (keys[key] = uid(key));
2979
(function(module, __unused_webpack_exports, __webpack_require__) {
2981
var global = __webpack_require__(7854);
2982
var setGlobal = __webpack_require__(3505);
2984
var SHARED = '__core-js_shared__';
2985
var store = global[SHARED] || setGlobal(SHARED, {});
2987
module.exports = store;
2993
(function(module, __unused_webpack_exports, __webpack_require__) {
2995
var IS_PURE = __webpack_require__(1913);
2996
var store = __webpack_require__(5465);
2998
(module.exports = function (key, value) {
2999
return store[key] || (store[key] = value !== undefined ? value : {});
3000
})('versions', []).push({
3002
mode: IS_PURE ? 'pure' : 'global',
3003
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
3010
(function(module, __unused_webpack_exports, __webpack_require__) {
3012
var anObject = __webpack_require__(9670);
3013
var aFunction = __webpack_require__(3099);
3014
var wellKnownSymbol = __webpack_require__(5112);
3016
var SPECIES = wellKnownSymbol('species');
3020
module.exports = function (O, defaultConstructor) {
3021
var C = anObject(O).constructor;
3023
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);
3030
(function(module, __unused_webpack_exports, __webpack_require__) {
3032
var toInteger = __webpack_require__(9958);
3033
var requireObjectCoercible = __webpack_require__(4488);
3036
var createMethod = function (CONVERT_TO_STRING) {
3037
return function ($this, pos) {
3038
var S = String(requireObjectCoercible($this));
3039
var position = toInteger(pos);
3040
var size = S.length;
3042
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
3043
first = S.charCodeAt(position);
3044
return first < 0xD800 || first > 0xDBFF || position + 1 === size
3045
|| (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
3046
? CONVERT_TO_STRING ? S.charAt(position) : first
3047
: CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
3054
codeAt: createMethod(false),
3057
charAt: createMethod(true)
3069
var maxInt = 2147483647;
3075
var initialBias = 72;
3078
var regexNonASCII = /[^\0-\u007E]/;
3079
var regexSeparators = /[.\u3002\uFF0E\uFF61]/g;
3080
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
3081
var baseMinusTMin = base - tMin;
3082
var floor = Math.floor;
3083
var stringFromCharCode = String.fromCharCode;
3092
var ucs2decode = function (string) {
3095
var length = string.length;
3096
while (counter < length) {
3097
var value = string.charCodeAt(counter++);
3098
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
3100
var extra = string.charCodeAt(counter++);
3101
if ((extra & 0xFC00) == 0xDC00) {
3102
output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
3119
var digitToBasic = function (digit) {
3122
return digit + 22 + 75 * (digit < 26);
3129
var adapt = function (delta, numPoints, firstTime) {
3131
delta = firstTime ? floor(delta / damp) : delta >> 1;
3132
delta += floor(delta / numPoints);
3133
for (; delta > baseMinusTMin * tMax >> 1; k += base) {
3134
delta = floor(delta / baseMinusTMin);
3136
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
3144
var encode = function (input) {
3148
input = ucs2decode(input);
3151
var inputLength = input.length;
3156
var bias = initialBias;
3157
var i, currentValue;
3160
for (i = 0; i < input.length; i++) {
3161
currentValue = input[i];
3162
if (currentValue < 0x80) {
3163
output.push(stringFromCharCode(currentValue));
3167
var basicLength = output.length;
3168
var handledCPCount = basicLength;
3172
output.push(delimiter);
3176
while (handledCPCount < inputLength) {
3179
for (i = 0; i < input.length; i++) {
3180
currentValue = input[i];
3181
if (currentValue >= n && currentValue < m) {
3187
var handledCPCountPlusOne = handledCPCount + 1;
3188
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
3189
throw RangeError(OVERFLOW_ERROR);
3192
delta += (m - n) * handledCPCountPlusOne;
3195
for (i = 0; i < input.length; i++) {
3196
currentValue = input[i];
3197
if (currentValue < n && ++delta > maxInt) {
3198
throw RangeError(OVERFLOW_ERROR);
3200
if (currentValue == n) {
3203
for (var k = base; ; k += base) {
3204
var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
3206
var qMinusT = q - t;
3207
var baseMinusT = base - t;
3208
output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
3209
q = floor(qMinusT / baseMinusT);
3212
output.push(stringFromCharCode(digitToBasic(q)));
3213
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
3222
return output.join('');
3225
module.exports = function (input) {
3227
var labels = input.toLowerCase().replace(regexSeparators, '\u002E').split('.');
3229
for (i = 0; i < labels.length; i++) {
3231
encoded.push(regexNonASCII.test(label) ? 'xn--' + encode(label) : label);
3233
return encoded.join('.');
3240
(function(module, __unused_webpack_exports, __webpack_require__) {
3242
var fails = __webpack_require__(7293);
3243
var whitespaces = __webpack_require__(1361);
3245
var non = '\u200B\u0085\u180E';
3249
module.exports = function (METHOD_NAME) {
3250
return fails(function () {
3251
return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
3259
(function(module, __unused_webpack_exports, __webpack_require__) {
3261
var requireObjectCoercible = __webpack_require__(4488);
3262
var whitespaces = __webpack_require__(1361);
3264
var whitespace = '[' + whitespaces + ']';
3265
var ltrim = RegExp('^' + whitespace + whitespace + '*');
3266
var rtrim = RegExp(whitespace + whitespace + '*$');
3269
var createMethod = function (TYPE) {
3270
return function ($this) {
3271
var string = String(requireObjectCoercible($this));
3272
if (TYPE & 1) string = string.replace(ltrim, '');
3273
if (TYPE & 2) string = string.replace(rtrim, '');
3281
start: createMethod(1),
3284
end: createMethod(2),
3287
trim: createMethod(3)
3294
(function(module, __unused_webpack_exports, __webpack_require__) {
3296
var toInteger = __webpack_require__(9958);
3304
module.exports = function (index, length) {
3305
var integer = toInteger(index);
3306
return integer < 0 ? max(integer + length, 0) : min(integer, length);
3313
(function(module, __unused_webpack_exports, __webpack_require__) {
3315
var toInteger = __webpack_require__(9958);
3316
var toLength = __webpack_require__(7466);
3320
module.exports = function (it) {
3321
if (it === undefined) return 0;
3322
var number = toInteger(it);
3323
var length = toLength(number);
3324
if (number !== length) throw RangeError('Wrong length or index');
3332
(function(module, __unused_webpack_exports, __webpack_require__) {
3335
var IndexedObject = __webpack_require__(8361);
3336
var requireObjectCoercible = __webpack_require__(4488);
3338
module.exports = function (it) {
3339
return IndexedObject(requireObjectCoercible(it));
3348
var ceil = Math.ceil;
3349
var floor = Math.floor;
3353
module.exports = function (argument) {
3354
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
3361
(function(module, __unused_webpack_exports, __webpack_require__) {
3363
var toInteger = __webpack_require__(9958);
3369
module.exports = function (argument) {
3370
return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0;
3377
(function(module, __unused_webpack_exports, __webpack_require__) {
3379
var requireObjectCoercible = __webpack_require__(4488);
3383
module.exports = function (argument) {
3384
return Object(requireObjectCoercible(argument));
3391
(function(module, __unused_webpack_exports, __webpack_require__) {
3393
var toPositiveInteger = __webpack_require__(3002);
3395
module.exports = function (it, BYTES) {
3396
var offset = toPositiveInteger(it);
3397
if (offset % BYTES) throw RangeError('Wrong offset');
3405
(function(module, __unused_webpack_exports, __webpack_require__) {
3407
var toInteger = __webpack_require__(9958);
3409
module.exports = function (it) {
3410
var result = toInteger(it);
3411
if (result < 0) throw RangeError("The argument can't be less than 0");
3419
(function(module, __unused_webpack_exports, __webpack_require__) {
3421
var isObject = __webpack_require__(111);
3427
module.exports = function (input, PREFERRED_STRING) {
3428
if (!isObject(input)) return input;
3430
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
3431
if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
3432
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
3433
throw TypeError("Can't convert object to primitive value");
3440
(function(module, __unused_webpack_exports, __webpack_require__) {
3442
var wellKnownSymbol = __webpack_require__(5112);
3444
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3447
test[TO_STRING_TAG] = 'z';
3449
module.exports = String(test) === '[object z]';
3455
(function(module, __unused_webpack_exports, __webpack_require__) {
3459
var $ = __webpack_require__(2109);
3460
var global = __webpack_require__(7854);
3461
var DESCRIPTORS = __webpack_require__(9781);
3462
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = __webpack_require__(3832);
3463
var ArrayBufferViewCore = __webpack_require__(260);
3464
var ArrayBufferModule = __webpack_require__(3331);
3465
var anInstance = __webpack_require__(5787);
3466
var createPropertyDescriptor = __webpack_require__(9114);
3467
var createNonEnumerableProperty = __webpack_require__(8880);
3468
var toLength = __webpack_require__(7466);
3469
var toIndex = __webpack_require__(7067);
3470
var toOffset = __webpack_require__(4590);
3471
var toPrimitive = __webpack_require__(7593);
3472
var has = __webpack_require__(6656);
3473
var classof = __webpack_require__(648);
3474
var isObject = __webpack_require__(111);
3475
var create = __webpack_require__(30);
3476
var setPrototypeOf = __webpack_require__(7674);
3477
var getOwnPropertyNames = __webpack_require__(8006).f;
3478
var typedArrayFrom = __webpack_require__(7321);
3479
var forEach = __webpack_require__(2092).forEach;
3480
var setSpecies = __webpack_require__(6340);
3481
var definePropertyModule = __webpack_require__(3070);
3482
var getOwnPropertyDescriptorModule = __webpack_require__(1236);
3483
var InternalStateModule = __webpack_require__(9909);
3484
var inheritIfRequired = __webpack_require__(9587);
3486
var getInternalState = InternalStateModule.get;
3487
var setInternalState = InternalStateModule.set;
3488
var nativeDefineProperty = definePropertyModule.f;
3489
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
3490
var round = Math.round;
3491
var RangeError = global.RangeError;
3492
var ArrayBuffer = ArrayBufferModule.ArrayBuffer;
3493
var DataView = ArrayBufferModule.DataView;
3494
var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
3495
var TYPED_ARRAY_TAG = ArrayBufferViewCore.TYPED_ARRAY_TAG;
3496
var TypedArray = ArrayBufferViewCore.TypedArray;
3497
var TypedArrayPrototype = ArrayBufferViewCore.TypedArrayPrototype;
3498
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
3499
var isTypedArray = ArrayBufferViewCore.isTypedArray;
3500
var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';
3501
var WRONG_LENGTH = 'Wrong length';
3503
var fromList = function (C, list) {
3505
var length = list.length;
3506
var result = new (aTypedArrayConstructor(C))(length);
3507
while (length > index) result[index] = list[index++];
3511
var addGetter = function (it, key) {
3512
nativeDefineProperty(it, key, { get: function () {
3513
return getInternalState(this)[key];
3517
var isArrayBuffer = function (it) {
3519
return it instanceof ArrayBuffer || (klass = classof(it)) == 'ArrayBuffer' || klass == 'SharedArrayBuffer';
3522
var isTypedArrayIndex = function (target, key) {
3523
return isTypedArray(target)
3524
&& typeof key != 'symbol'
3526
&& String(+key) == String(key);
3529
var wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) {
3530
return isTypedArrayIndex(target, key = toPrimitive(key, true))
3531
? createPropertyDescriptor(2, target[key])
3532
: nativeGetOwnPropertyDescriptor(target, key);
3535
var wrappedDefineProperty = function defineProperty(target, key, descriptor) {
3536
if (isTypedArrayIndex(target, key = toPrimitive(key, true))
3537
&& isObject(descriptor)
3538
&& has(descriptor, 'value')
3539
&& !has(descriptor, 'get')
3540
&& !has(descriptor, 'set')
3542
&& !descriptor.configurable
3543
&& (!has(descriptor, 'writable') || descriptor.writable)
3544
&& (!has(descriptor, 'enumerable') || descriptor.enumerable)
3546
target[key] = descriptor.value;
3548
} return nativeDefineProperty(target, key, descriptor);
3552
if (!NATIVE_ARRAY_BUFFER_VIEWS) {
3553
getOwnPropertyDescriptorModule.f = wrappedGetOwnPropertyDescriptor;
3554
definePropertyModule.f = wrappedDefineProperty;
3555
addGetter(TypedArrayPrototype, 'buffer');
3556
addGetter(TypedArrayPrototype, 'byteOffset');
3557
addGetter(TypedArrayPrototype, 'byteLength');
3558
addGetter(TypedArrayPrototype, 'length');
3561
$({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
3562
getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor,
3563
defineProperty: wrappedDefineProperty
3566
module.exports = function (TYPE, wrapper, CLAMPED) {
3567
var BYTES = TYPE.match(/\d+$/)[0] / 8;
3568
var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? 'Clamped' : '') + 'Array';
3569
var GETTER = 'get' + TYPE;
3570
var SETTER = 'set' + TYPE;
3571
var NativeTypedArrayConstructor = global[CONSTRUCTOR_NAME];
3572
var TypedArrayConstructor = NativeTypedArrayConstructor;
3573
var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype;
3576
var getter = function (that, index) {
3577
var data = getInternalState(that);
3578
return data.view[GETTER](index * BYTES + data.byteOffset, true);
3581
var setter = function (that, index, value) {
3582
var data = getInternalState(that);
3583
if (CLAMPED) value = (value = round(value)) < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF;
3584
data.view[SETTER](index * BYTES + data.byteOffset, value, true);
3587
var addElement = function (that, index) {
3588
nativeDefineProperty(that, index, {
3590
return getter(this, index);
3592
set: function (value) {
3593
return setter(this, index, value);
3599
if (!NATIVE_ARRAY_BUFFER_VIEWS) {
3600
TypedArrayConstructor = wrapper(function (that, data, offset, $length) {
3601
anInstance(that, TypedArrayConstructor, CONSTRUCTOR_NAME);
3604
var buffer, byteLength, length;
3605
if (!isObject(data)) {
3606
length = toIndex(data);
3607
byteLength = length * BYTES;
3608
buffer = new ArrayBuffer(byteLength);
3609
} else if (isArrayBuffer(data)) {
3611
byteOffset = toOffset(offset, BYTES);
3612
var $len = data.byteLength;
3613
if ($length === undefined) {
3614
if ($len % BYTES) throw RangeError(WRONG_LENGTH);
3615
byteLength = $len - byteOffset;
3616
if (byteLength < 0) throw RangeError(WRONG_LENGTH);
3618
byteLength = toLength($length) * BYTES;
3619
if (byteLength + byteOffset > $len) throw RangeError(WRONG_LENGTH);
3621
length = byteLength / BYTES;
3622
} else if (isTypedArray(data)) {
3623
return fromList(TypedArrayConstructor, data);
3625
return typedArrayFrom.call(TypedArrayConstructor, data);
3627
setInternalState(that, {
3629
byteOffset: byteOffset,
3630
byteLength: byteLength,
3632
view: new DataView(buffer)
3634
while (index < length) addElement(that, index++);
3637
if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray);
3638
TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create(TypedArrayPrototype);
3639
} else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) {
3640
TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {
3641
anInstance(dummy, TypedArrayConstructor, CONSTRUCTOR_NAME);
3642
return inheritIfRequired(function () {
3643
if (!isObject(data)) return new NativeTypedArrayConstructor(toIndex(data));
3644
if (isArrayBuffer(data)) return $length !== undefined
3645
? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES), $length)
3646
: typedArrayOffset !== undefined
3647
? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES))
3648
: new NativeTypedArrayConstructor(data);
3649
if (isTypedArray(data)) return fromList(TypedArrayConstructor, data);
3650
return typedArrayFrom.call(TypedArrayConstructor, data);
3651
}(), dummy, TypedArrayConstructor);
3654
if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray);
3655
forEach(getOwnPropertyNames(NativeTypedArrayConstructor), function (key) {
3656
if (!(key in TypedArrayConstructor)) {
3657
createNonEnumerableProperty(TypedArrayConstructor, key, NativeTypedArrayConstructor[key]);
3660
TypedArrayConstructor.prototype = TypedArrayConstructorPrototype;
3663
if (TypedArrayConstructorPrototype.constructor !== TypedArrayConstructor) {
3664
createNonEnumerableProperty(TypedArrayConstructorPrototype, 'constructor', TypedArrayConstructor);
3667
if (TYPED_ARRAY_TAG) {
3668
createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME);
3671
exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;
3674
global: true, forced: TypedArrayConstructor != NativeTypedArrayConstructor, sham: !NATIVE_ARRAY_BUFFER_VIEWS
3677
if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) {
3678
createNonEnumerableProperty(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES);
3681
if (!(BYTES_PER_ELEMENT in TypedArrayConstructorPrototype)) {
3682
createNonEnumerableProperty(TypedArrayConstructorPrototype, BYTES_PER_ELEMENT, BYTES);
3685
setSpecies(CONSTRUCTOR_NAME);
3687
} else module.exports = function () { };
3693
(function(module, __unused_webpack_exports, __webpack_require__) {
3696
var global = __webpack_require__(7854);
3697
var fails = __webpack_require__(7293);
3698
var checkCorrectnessOfIteration = __webpack_require__(7072);
3699
var NATIVE_ARRAY_BUFFER_VIEWS = __webpack_require__(260).NATIVE_ARRAY_BUFFER_VIEWS;
3701
var ArrayBuffer = global.ArrayBuffer;
3702
var Int8Array = global.Int8Array;
3704
module.exports = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function () {
3706
}) || !fails(function () {
3708
}) || !checkCorrectnessOfIteration(function (iterable) {
3710
new Int8Array(null);
3712
new Int8Array(iterable);
3713
}, true) || fails(function () {
3715
return new Int8Array(new ArrayBuffer(2), 1, undefined).length !== 1;
3722
(function(module, __unused_webpack_exports, __webpack_require__) {
3724
var aTypedArrayConstructor = __webpack_require__(260).aTypedArrayConstructor;
3725
var speciesConstructor = __webpack_require__(6707);
3727
module.exports = function (instance, list) {
3728
var C = speciesConstructor(instance, instance.constructor);
3730
var length = list.length;
3731
var result = new (aTypedArrayConstructor(C))(length);
3732
while (length > index) result[index] = list[index++];
3740
(function(module, __unused_webpack_exports, __webpack_require__) {
3742
var toObject = __webpack_require__(7908);
3743
var toLength = __webpack_require__(7466);
3744
var getIteratorMethod = __webpack_require__(1246);
3745
var isArrayIteratorMethod = __webpack_require__(7659);
3746
var bind = __webpack_require__(9974);
3747
var aTypedArrayConstructor = __webpack_require__(260).aTypedArrayConstructor;
3749
module.exports = function from(source ) {
3750
var O = toObject(source);
3751
var argumentsLength = arguments.length;
3752
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
3753
var mapping = mapfn !== undefined;
3754
var iteratorMethod = getIteratorMethod(O);
3755
var i, length, result, step, iterator, next;
3756
if (iteratorMethod != undefined && !isArrayIteratorMethod(iteratorMethod)) {
3757
iterator = iteratorMethod.call(O);
3758
next = iterator.next;
3760
while (!(step = next.call(iterator)).done) {
3764
if (mapping && argumentsLength > 2) {
3765
mapfn = bind(mapfn, arguments[2], 2);
3767
length = toLength(O.length);
3768
result = new (aTypedArrayConstructor(this))(length);
3769
for (i = 0; length > i; i++) {
3770
result[i] = mapping ? mapfn(O[i], i) : O[i];
3782
var postfix = Math.random();
3784
module.exports = function (key) {
3785
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
3792
(function(module, __unused_webpack_exports, __webpack_require__) {
3794
var NATIVE_SYMBOL = __webpack_require__(133);
3796
module.exports = NATIVE_SYMBOL
3799
&& typeof Symbol.iterator == 'symbol';
3805
(function(module, __unused_webpack_exports, __webpack_require__) {
3807
var global = __webpack_require__(7854);
3808
var shared = __webpack_require__(2309);
3809
var has = __webpack_require__(6656);
3810
var uid = __webpack_require__(9711);
3811
var NATIVE_SYMBOL = __webpack_require__(133);
3812
var USE_SYMBOL_AS_UID = __webpack_require__(3307);
3814
var WellKnownSymbolsStore = shared('wks');
3815
var Symbol = global.Symbol;
3816
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
3818
module.exports = function (name) {
3819
if (!has(WellKnownSymbolsStore, name)) {
3820
if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];
3821
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
3822
} return WellKnownSymbolsStore[name];
3832
module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
3833
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
3839
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3843
var $ = __webpack_require__(2109);
3844
var global = __webpack_require__(7854);
3845
var arrayBufferModule = __webpack_require__(3331);
3846
var setSpecies = __webpack_require__(6340);
3848
var ARRAY_BUFFER = 'ArrayBuffer';
3849
var ArrayBuffer = arrayBufferModule[ARRAY_BUFFER];
3850
var NativeArrayBuffer = global[ARRAY_BUFFER];
3854
$({ global: true, forced: NativeArrayBuffer !== ArrayBuffer }, {
3855
ArrayBuffer: ArrayBuffer
3858
setSpecies(ARRAY_BUFFER);
3864
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3868
var $ = __webpack_require__(2109);
3869
var fails = __webpack_require__(7293);
3870
var isArray = __webpack_require__(3157);
3871
var isObject = __webpack_require__(111);
3872
var toObject = __webpack_require__(7908);
3873
var toLength = __webpack_require__(7466);
3874
var createProperty = __webpack_require__(6135);
3875
var arraySpeciesCreate = __webpack_require__(5417);
3876
var arrayMethodHasSpeciesSupport = __webpack_require__(1194);
3877
var wellKnownSymbol = __webpack_require__(5112);
3878
var V8_VERSION = __webpack_require__(7392);
3880
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
3881
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
3882
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
3887
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
3889
array[IS_CONCAT_SPREADABLE] = false;
3890
return array.concat()[0] !== array;
3893
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
3895
var isConcatSpreadable = function (O) {
3896
if (!isObject(O)) return false;
3897
var spreadable = O[IS_CONCAT_SPREADABLE];
3898
return spreadable !== undefined ? !!spreadable : isArray(O);
3901
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
3906
$({ target: 'Array', proto: true, forced: FORCED }, {
3908
concat: function concat(arg) {
3909
var O = toObject(this);
3910
var A = arraySpeciesCreate(O, 0);
3912
var i, k, length, len, E;
3913
for (i = -1, length = arguments.length; i < length; i++) {
3914
E = i === -1 ? O : arguments[i];
3915
if (isConcatSpreadable(E)) {
3916
len = toLength(E.length);
3917
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
3918
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
3920
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
3921
createProperty(A, n++, E);
3933
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3937
var $ = __webpack_require__(2109);
3938
var $filter = __webpack_require__(2092).filter;
3939
var arrayMethodHasSpeciesSupport = __webpack_require__(1194);
3941
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
3946
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
3947
filter: function filter(callbackfn ) {
3948
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
3956
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3960
var $ = __webpack_require__(2109);
3961
var $indexOf = __webpack_require__(1318).indexOf;
3962
var arrayMethodIsStrict = __webpack_require__(9341);
3964
var nativeIndexOf = [].indexOf;
3966
var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
3967
var STRICT_METHOD = arrayMethodIsStrict('indexOf');
3971
$({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, {
3972
indexOf: function indexOf(searchElement ) {
3973
return NEGATIVE_ZERO
3975
? nativeIndexOf.apply(this, arguments) || 0
3976
: $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);
3984
(function(module, __unused_webpack_exports, __webpack_require__) {
3988
var toIndexedObject = __webpack_require__(5656);
3989
var addToUnscopables = __webpack_require__(1223);
3990
var Iterators = __webpack_require__(7497);
3991
var InternalStateModule = __webpack_require__(9909);
3992
var defineIterator = __webpack_require__(654);
3994
var ARRAY_ITERATOR = 'Array Iterator';
3995
var setInternalState = InternalStateModule.set;
3996
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
4008
module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
4009
setInternalState(this, {
4010
type: ARRAY_ITERATOR,
4011
target: toIndexedObject(iterated),
4018
var state = getInternalState(this);
4019
var target = state.target;
4020
var kind = state.kind;
4021
var index = state.index++;
4022
if (!target || index >= target.length) {
4023
state.target = undefined;
4024
return { value: undefined, done: true };
4026
if (kind == 'keys') return { value: index, done: false };
4027
if (kind == 'values') return { value: target[index], done: false };
4028
return { value: [index, target[index]], done: false };
4034
Iterators.Arguments = Iterators.Array;
4037
addToUnscopables('keys');
4038
addToUnscopables('values');
4039
addToUnscopables('entries');
4045
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4049
var $ = __webpack_require__(2109);
4050
var $map = __webpack_require__(2092).map;
4051
var arrayMethodHasSpeciesSupport = __webpack_require__(1194);
4053
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
4058
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
4059
map: function map(callbackfn ) {
4060
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
4068
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4072
var $ = __webpack_require__(2109);
4073
var isObject = __webpack_require__(111);
4074
var isArray = __webpack_require__(3157);
4075
var toAbsoluteIndex = __webpack_require__(1400);
4076
var toLength = __webpack_require__(7466);
4077
var toIndexedObject = __webpack_require__(5656);
4078
var createProperty = __webpack_require__(6135);
4079
var wellKnownSymbol = __webpack_require__(5112);
4080
var arrayMethodHasSpeciesSupport = __webpack_require__(1194);
4082
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
4084
var SPECIES = wellKnownSymbol('species');
4085
var nativeSlice = [].slice;
4091
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
4092
slice: function slice(start, end) {
4093
var O = toIndexedObject(this);
4094
var length = toLength(O.length);
4095
var k = toAbsoluteIndex(start, length);
4096
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
4098
var Constructor, result, n;
4100
Constructor = O.constructor;
4102
if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
4103
Constructor = undefined;
4104
} else if (isObject(Constructor)) {
4105
Constructor = Constructor[SPECIES];
4106
if (Constructor === null) Constructor = undefined;
4108
if (Constructor === Array || Constructor === undefined) {
4109
return nativeSlice.call(O, k, fin);
4112
result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
4113
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
4123
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4127
var $ = __webpack_require__(2109);
4128
var toAbsoluteIndex = __webpack_require__(1400);
4129
var toInteger = __webpack_require__(9958);
4130
var toLength = __webpack_require__(7466);
4131
var toObject = __webpack_require__(7908);
4132
var arraySpeciesCreate = __webpack_require__(5417);
4133
var createProperty = __webpack_require__(6135);
4134
var arrayMethodHasSpeciesSupport = __webpack_require__(1194);
4136
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
4140
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
4141
var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
4146
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
4147
splice: function splice(start, deleteCount ) {
4148
var O = toObject(this);
4149
var len = toLength(O.length);
4150
var actualStart = toAbsoluteIndex(start, len);
4151
var argumentsLength = arguments.length;
4152
var insertCount, actualDeleteCount, A, k, from, to;
4153
if (argumentsLength === 0) {
4154
insertCount = actualDeleteCount = 0;
4155
} else if (argumentsLength === 1) {
4157
actualDeleteCount = len - actualStart;
4159
insertCount = argumentsLength - 2;
4160
actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);
4162
if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
4163
throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
4165
A = arraySpeciesCreate(O, actualDeleteCount);
4166
for (k = 0; k < actualDeleteCount; k++) {
4167
from = actualStart + k;
4168
if (from in O) createProperty(A, k, O[from]);
4170
A.length = actualDeleteCount;
4171
if (insertCount < actualDeleteCount) {
4172
for (k = actualStart; k < len - actualDeleteCount; k++) {
4173
from = k + actualDeleteCount;
4174
to = k + insertCount;
4175
if (from in O) O[to] = O[from];
4178
for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
4179
} else if (insertCount > actualDeleteCount) {
4180
for (k = len - actualDeleteCount; k > actualStart; k--) {
4181
from = k + actualDeleteCount - 1;
4182
to = k + insertCount - 1;
4183
if (from in O) O[to] = O[from];
4187
for (k = 0; k < insertCount; k++) {
4188
O[k + actualStart] = arguments[k + 2];
4190
O.length = len - actualDeleteCount + insertCount;
4199
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4201
var DESCRIPTORS = __webpack_require__(9781);
4202
var defineProperty = __webpack_require__(3070).f;
4204
var FunctionPrototype = Function.prototype;
4205
var FunctionPrototypeToString = FunctionPrototype.toString;
4206
var nameRE = /^\s*function ([^ (]*)/;
4211
if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
4212
defineProperty(FunctionPrototype, NAME, {
4216
return FunctionPrototypeToString.call(this).match(nameRE)[1];
4228
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4230
var $ = __webpack_require__(2109);
4231
var fails = __webpack_require__(7293);
4232
var toObject = __webpack_require__(7908);
4233
var nativeGetPrototypeOf = __webpack_require__(9518);
4234
var CORRECT_PROTOTYPE_GETTER = __webpack_require__(8544);
4236
var FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });
4240
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {
4241
getPrototypeOf: function getPrototypeOf(it) {
4242
return nativeGetPrototypeOf(toObject(it));
4251
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4253
var TO_STRING_TAG_SUPPORT = __webpack_require__(1694);
4254
var redefine = __webpack_require__(1320);
4255
var toString = __webpack_require__(288);
4259
if (!TO_STRING_TAG_SUPPORT) {
4260
redefine(Object.prototype, 'toString', toString, { unsafe: true });
4267
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4271
var $ = __webpack_require__(2109);
4272
var exec = __webpack_require__(2261);
4276
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
4284
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4288
var redefine = __webpack_require__(1320);
4289
var anObject = __webpack_require__(9670);
4290
var fails = __webpack_require__(7293);
4291
var flags = __webpack_require__(7066);
4293
var TO_STRING = 'toString';
4294
var RegExpPrototype = RegExp.prototype;
4295
var nativeToString = RegExpPrototype[TO_STRING];
4297
var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
4299
var INCORRECT_NAME = nativeToString.name != TO_STRING;
4303
if (NOT_GENERIC || INCORRECT_NAME) {
4304
redefine(RegExp.prototype, TO_STRING, function toString() {
4305
var R = anObject(this);
4306
var p = String(R.source);
4308
var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);
4309
return '/' + p + '/' + f;
4310
}, { unsafe: true });
4317
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4321
var charAt = __webpack_require__(8710).charAt;
4322
var InternalStateModule = __webpack_require__(9909);
4323
var defineIterator = __webpack_require__(654);
4325
var STRING_ITERATOR = 'String Iterator';
4326
var setInternalState = InternalStateModule.set;
4327
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
4331
defineIterator(String, 'String', function (iterated) {
4332
setInternalState(this, {
4333
type: STRING_ITERATOR,
4334
string: String(iterated),
4340
var state = getInternalState(this);
4341
var string = state.string;
4342
var index = state.index;
4344
if (index >= string.length) return { value: undefined, done: true };
4345
point = charAt(string, index);
4346
state.index += point.length;
4347
return { value: point, done: false };
4354
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4358
var fixRegExpWellKnownSymbolLogic = __webpack_require__(7007);
4359
var anObject = __webpack_require__(9670);
4360
var toLength = __webpack_require__(7466);
4361
var requireObjectCoercible = __webpack_require__(4488);
4362
var advanceStringIndex = __webpack_require__(1530);
4363
var regExpExec = __webpack_require__(7651);
4366
fixRegExpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
4370
function match(regexp) {
4371
var O = requireObjectCoercible(this);
4372
var matcher = regexp == undefined ? undefined : regexp[MATCH];
4373
return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
4378
var res = maybeCallNative(nativeMatch, regexp, this);
4379
if (res.done) return res.value;
4381
var rx = anObject(regexp);
4382
var S = String(this);
4384
if (!rx.global) return regExpExec(rx, S);
4386
var fullUnicode = rx.unicode;
4391
while ((result = regExpExec(rx, S)) !== null) {
4392
var matchStr = String(result[0]);
4394
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
4397
return n === 0 ? null : A;
4406
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4410
var fixRegExpWellKnownSymbolLogic = __webpack_require__(7007);
4411
var anObject = __webpack_require__(9670);
4412
var toLength = __webpack_require__(7466);
4413
var toInteger = __webpack_require__(9958);
4414
var requireObjectCoercible = __webpack_require__(4488);
4415
var advanceStringIndex = __webpack_require__(1530);
4416
var getSubstitution = __webpack_require__(647);
4417
var regExpExec = __webpack_require__(7651);
4422
var maybeToString = function (it) {
4423
return it === undefined ? it : String(it);
4427
fixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
4428
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
4429
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
4430
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
4435
function replace(searchValue, replaceValue) {
4436
var O = requireObjectCoercible(this);
4437
var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
4438
return replacer !== undefined
4439
? replacer.call(searchValue, O, replaceValue)
4440
: nativeReplace.call(String(O), searchValue, replaceValue);
4444
function (regexp, replaceValue) {
4446
(!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
4447
(typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
4449
var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
4450
if (res.done) return res.value;
4453
var rx = anObject(regexp);
4454
var S = String(this);
4456
var functionalReplace = typeof replaceValue === 'function';
4457
if (!functionalReplace) replaceValue = String(replaceValue);
4459
var global = rx.global;
4461
var fullUnicode = rx.unicode;
4466
var result = regExpExec(rx, S);
4467
if (result === null) break;
4469
results.push(result);
4472
var matchStr = String(result[0]);
4473
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
4476
var accumulatedResult = '';
4477
var nextSourcePosition = 0;
4478
for (var i = 0; i < results.length; i++) {
4479
result = results[i];
4481
var matched = String(result[0]);
4482
var position = max(min(toInteger(result.index), S.length), 0);
4489
for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
4490
var namedCaptures = result.groups;
4491
if (functionalReplace) {
4492
var replacerArgs = [matched].concat(captures, position, S);
4493
if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
4494
var replacement = String(replaceValue.apply(undefined, replacerArgs));
4496
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
4498
if (position >= nextSourcePosition) {
4499
accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
4500
nextSourcePosition = position + matched.length;
4503
return accumulatedResult + S.slice(nextSourcePosition);
4512
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4516
var fixRegExpWellKnownSymbolLogic = __webpack_require__(7007);
4517
var isRegExp = __webpack_require__(7850);
4518
var anObject = __webpack_require__(9670);
4519
var requireObjectCoercible = __webpack_require__(4488);
4520
var speciesConstructor = __webpack_require__(6707);
4521
var advanceStringIndex = __webpack_require__(1530);
4522
var toLength = __webpack_require__(7466);
4523
var callRegExpExec = __webpack_require__(7651);
4524
var regexpExec = __webpack_require__(2261);
4525
var fails = __webpack_require__(7293);
4527
var arrayPush = [].push;
4529
var MAX_UINT32 = 0xFFFFFFFF;
4532
var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
4535
fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
4538
'abbc'.split(/(b)*/)[1] == 'c' ||
4540
'test'.split(/(?:)/, -1).length != 4 ||
4541
'ab'.split(/(?:ab)*/).length != 2 ||
4542
'.'.split(/(.?)(.?)/).length != 4 ||
4544
'.'.split(/()()/).length > 1 ||
4545
''.split(/.?/).length
4548
internalSplit = function (separator, limit) {
4549
var string = String(requireObjectCoercible(this));
4550
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
4551
if (lim === 0) return [];
4552
if (separator === undefined) return [string];
4554
if (!isRegExp(separator)) {
4555
return nativeSplit.call(string, separator, lim);
4558
var flags = (separator.ignoreCase ? 'i' : '') +
4559
(separator.multiline ? 'm' : '') +
4560
(separator.unicode ? 'u' : '') +
4561
(separator.sticky ? 'y' : '');
4562
var lastLastIndex = 0;
4564
var separatorCopy = new RegExp(separator.source, flags + 'g');
4565
var match, lastIndex, lastLength;
4566
while (match = regexpExec.call(separatorCopy, string)) {
4567
lastIndex = separatorCopy.lastIndex;
4568
if (lastIndex > lastLastIndex) {
4569
output.push(string.slice(lastLastIndex, match.index));
4570
if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
4571
lastLength = match[0].length;
4572
lastLastIndex = lastIndex;
4573
if (output.length >= lim) break;
4575
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++;
4577
if (lastLastIndex === string.length) {
4578
if (lastLength || !separatorCopy.test('')) output.push('');
4579
} else output.push(string.slice(lastLastIndex));
4580
return output.length > lim ? output.slice(0, lim) : output;
4583
} else if ('0'.split(undefined, 0).length) {
4584
internalSplit = function (separator, limit) {
4585
return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
4587
} else internalSplit = nativeSplit;
4592
function split(separator, limit) {
4593
var O = requireObjectCoercible(this);
4594
var splitter = separator == undefined ? undefined : separator[SPLIT];
4595
return splitter !== undefined
4596
? splitter.call(separator, O, limit)
4597
: internalSplit.call(String(O), separator, limit);
4604
function (regexp, limit) {
4605
var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
4606
if (res.done) return res.value;
4608
var rx = anObject(regexp);
4609
var S = String(this);
4610
var C = speciesConstructor(rx, RegExp);
4612
var unicodeMatching = rx.unicode;
4613
var flags = (rx.ignoreCase ? 'i' : '') +
4614
(rx.multiline ? 'm' : '') +
4615
(rx.unicode ? 'u' : '') +
4616
(SUPPORTS_Y ? 'y' : 'g');
4620
var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
4621
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
4622
if (lim === 0) return [];
4623
if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
4627
while (q < S.length) {
4628
splitter.lastIndex = SUPPORTS_Y ? q : 0;
4629
var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
4633
(e = min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
4635
q = advanceStringIndex(S, q, unicodeMatching);
4637
A.push(S.slice(p, q));
4638
if (A.length === lim) return A;
4639
for (var i = 1; i <= z.length - 1; i++) {
4641
if (A.length === lim) return A;
4656
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4660
var $ = __webpack_require__(2109);
4661
var $trim = __webpack_require__(3111).trim;
4662
var forcedStringTrimMethod = __webpack_require__(6091);
4666
$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
4667
trim: function trim() {
4676
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4680
var ArrayBufferViewCore = __webpack_require__(260);
4681
var $copyWithin = __webpack_require__(1048);
4683
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4684
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
4688
exportTypedArrayMethod('copyWithin', function copyWithin(target, start ) {
4689
return $copyWithin.call(aTypedArray(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
4696
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4700
var ArrayBufferViewCore = __webpack_require__(260);
4701
var $every = __webpack_require__(2092).every;
4703
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4704
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
4708
exportTypedArrayMethod('every', function every(callbackfn ) {
4709
return $every(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
4716
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4720
var ArrayBufferViewCore = __webpack_require__(260);
4721
var $fill = __webpack_require__(1285);
4723
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4724
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
4729
exportTypedArrayMethod('fill', function fill(value ) {
4730
return $fill.apply(aTypedArray(this), arguments);
4737
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4741
var ArrayBufferViewCore = __webpack_require__(260);
4742
var $filter = __webpack_require__(2092).filter;
4743
var fromSpeciesAndList = __webpack_require__(3074);
4745
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4746
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
4750
exportTypedArrayMethod('filter', function filter(callbackfn ) {
4751
var list = $filter(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
4752
return fromSpeciesAndList(this, list);
4759
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4763
var ArrayBufferViewCore = __webpack_require__(260);
4764
var $findIndex = __webpack_require__(2092).findIndex;
4766
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4767
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
4771
exportTypedArrayMethod('findIndex', function findIndex(predicate ) {
4772
return $findIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
4779
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4783
var ArrayBufferViewCore = __webpack_require__(260);
4784
var $find = __webpack_require__(2092).find;
4786
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4787
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
4791
exportTypedArrayMethod('find', function find(predicate ) {
4792
return $find(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
4799
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4803
var ArrayBufferViewCore = __webpack_require__(260);
4804
var $forEach = __webpack_require__(2092).forEach;
4806
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4807
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
4811
exportTypedArrayMethod('forEach', function forEach(callbackfn ) {
4812
$forEach(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
4819
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4823
var ArrayBufferViewCore = __webpack_require__(260);
4824
var $includes = __webpack_require__(1318).includes;
4826
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4827
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
4831
exportTypedArrayMethod('includes', function includes(searchElement ) {
4832
return $includes(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
4839
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4843
var ArrayBufferViewCore = __webpack_require__(260);
4844
var $indexOf = __webpack_require__(1318).indexOf;
4846
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4847
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
4851
exportTypedArrayMethod('indexOf', function indexOf(searchElement ) {
4852
return $indexOf(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
4859
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4863
var global = __webpack_require__(7854);
4864
var ArrayBufferViewCore = __webpack_require__(260);
4865
var ArrayIterators = __webpack_require__(6992);
4866
var wellKnownSymbol = __webpack_require__(5112);
4868
var ITERATOR = wellKnownSymbol('iterator');
4869
var Uint8Array = global.Uint8Array;
4870
var arrayValues = ArrayIterators.values;
4871
var arrayKeys = ArrayIterators.keys;
4872
var arrayEntries = ArrayIterators.entries;
4873
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4874
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
4875
var nativeTypedArrayIterator = Uint8Array && Uint8Array.prototype[ITERATOR];
4877
var CORRECT_ITER_NAME = !!nativeTypedArrayIterator
4878
&& (nativeTypedArrayIterator.name == 'values' || nativeTypedArrayIterator.name == undefined);
4880
var typedArrayValues = function values() {
4881
return arrayValues.call(aTypedArray(this));
4886
exportTypedArrayMethod('entries', function entries() {
4887
return arrayEntries.call(aTypedArray(this));
4891
exportTypedArrayMethod('keys', function keys() {
4892
return arrayKeys.call(aTypedArray(this));
4896
exportTypedArrayMethod('values', typedArrayValues, !CORRECT_ITER_NAME);
4899
exportTypedArrayMethod(ITERATOR, typedArrayValues, !CORRECT_ITER_NAME);
4905
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4909
var ArrayBufferViewCore = __webpack_require__(260);
4911
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4912
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
4918
exportTypedArrayMethod('join', function join(separator) {
4919
return $join.apply(aTypedArray(this), arguments);
4926
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4930
var ArrayBufferViewCore = __webpack_require__(260);
4931
var $lastIndexOf = __webpack_require__(6583);
4933
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4934
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
4939
exportTypedArrayMethod('lastIndexOf', function lastIndexOf(searchElement ) {
4940
return $lastIndexOf.apply(aTypedArray(this), arguments);
4947
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4951
var ArrayBufferViewCore = __webpack_require__(260);
4952
var $map = __webpack_require__(2092).map;
4953
var speciesConstructor = __webpack_require__(6707);
4955
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4956
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
4957
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
4961
exportTypedArrayMethod('map', function map(mapfn ) {
4962
return $map(aTypedArray(this), mapfn, arguments.length > 1 ? arguments[1] : undefined, function (O, length) {
4963
return new (aTypedArrayConstructor(speciesConstructor(O, O.constructor)))(length);
4971
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4975
var ArrayBufferViewCore = __webpack_require__(260);
4976
var $reduceRight = __webpack_require__(3671).right;
4978
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4979
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
4983
exportTypedArrayMethod('reduceRight', function reduceRight(callbackfn ) {
4984
return $reduceRight(aTypedArray(this), callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
4991
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4995
var ArrayBufferViewCore = __webpack_require__(260);
4996
var $reduce = __webpack_require__(3671).left;
4998
var aTypedArray = ArrayBufferViewCore.aTypedArray;
4999
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
5003
exportTypedArrayMethod('reduce', function reduce(callbackfn ) {
5004
return $reduce(aTypedArray(this), callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
5011
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5015
var ArrayBufferViewCore = __webpack_require__(260);
5017
var aTypedArray = ArrayBufferViewCore.aTypedArray;
5018
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
5019
var floor = Math.floor;
5023
exportTypedArrayMethod('reverse', function reverse() {
5025
var length = aTypedArray(that).length;
5026
var middle = floor(length / 2);
5029
while (index < middle) {
5030
value = that[index];
5031
that[index++] = that[--length];
5032
that[length] = value;
5040
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5044
var ArrayBufferViewCore = __webpack_require__(260);
5045
var toLength = __webpack_require__(7466);
5046
var toOffset = __webpack_require__(4590);
5047
var toObject = __webpack_require__(7908);
5048
var fails = __webpack_require__(7293);
5050
var aTypedArray = ArrayBufferViewCore.aTypedArray;
5051
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
5053
var FORCED = fails(function () {
5055
new Int8Array(1).set({});
5060
exportTypedArrayMethod('set', function set(arrayLike ) {
5062
var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);
5063
var length = this.length;
5064
var src = toObject(arrayLike);
5065
var len = toLength(src.length);
5067
if (len + offset > length) throw RangeError('Wrong length');
5068
while (index < len) this[offset + index] = src[index++];
5075
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5079
var ArrayBufferViewCore = __webpack_require__(260);
5080
var speciesConstructor = __webpack_require__(6707);
5081
var fails = __webpack_require__(7293);
5083
var aTypedArray = ArrayBufferViewCore.aTypedArray;
5084
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
5085
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
5086
var $slice = [].slice;
5088
var FORCED = fails(function () {
5090
new Int8Array(1).slice();
5095
exportTypedArrayMethod('slice', function slice(start, end) {
5096
var list = $slice.call(aTypedArray(this), start, end);
5097
var C = speciesConstructor(this, this.constructor);
5099
var length = list.length;
5100
var result = new (aTypedArrayConstructor(C))(length);
5101
while (length > index) result[index] = list[index++];
5109
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5113
var ArrayBufferViewCore = __webpack_require__(260);
5114
var $some = __webpack_require__(2092).some;
5116
var aTypedArray = ArrayBufferViewCore.aTypedArray;
5117
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
5121
exportTypedArrayMethod('some', function some(callbackfn ) {
5122
return $some(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
5129
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5133
var ArrayBufferViewCore = __webpack_require__(260);
5135
var aTypedArray = ArrayBufferViewCore.aTypedArray;
5136
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
5141
exportTypedArrayMethod('sort', function sort(comparefn) {
5142
return $sort.call(aTypedArray(this), comparefn);
5149
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5153
var ArrayBufferViewCore = __webpack_require__(260);
5154
var toLength = __webpack_require__(7466);
5155
var toAbsoluteIndex = __webpack_require__(1400);
5156
var speciesConstructor = __webpack_require__(6707);
5158
var aTypedArray = ArrayBufferViewCore.aTypedArray;
5159
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
5163
exportTypedArrayMethod('subarray', function subarray(begin, end) {
5164
var O = aTypedArray(this);
5165
var length = O.length;
5166
var beginIndex = toAbsoluteIndex(begin, length);
5167
return new (speciesConstructor(O, O.constructor))(
5169
O.byteOffset + beginIndex * O.BYTES_PER_ELEMENT,
5170
toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - beginIndex)
5178
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5182
var global = __webpack_require__(7854);
5183
var ArrayBufferViewCore = __webpack_require__(260);
5184
var fails = __webpack_require__(7293);
5186
var Int8Array = global.Int8Array;
5187
var aTypedArray = ArrayBufferViewCore.aTypedArray;
5188
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
5189
var $toLocaleString = [].toLocaleString;
5190
var $slice = [].slice;
5193
var TO_LOCALE_STRING_BUG = !!Int8Array && fails(function () {
5194
$toLocaleString.call(new Int8Array(1));
5197
var FORCED = fails(function () {
5198
return [1, 2].toLocaleString() != new Int8Array([1, 2]).toLocaleString();
5199
}) || !fails(function () {
5200
Int8Array.prototype.toLocaleString.call([1, 2]);
5205
exportTypedArrayMethod('toLocaleString', function toLocaleString() {
5206
return $toLocaleString.apply(TO_LOCALE_STRING_BUG ? $slice.call(aTypedArray(this)) : aTypedArray(this), arguments);
5213
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5217
var exportTypedArrayMethod = __webpack_require__(260).exportTypedArrayMethod;
5218
var fails = __webpack_require__(7293);
5219
var global = __webpack_require__(7854);
5221
var Uint8Array = global.Uint8Array;
5222
var Uint8ArrayPrototype = Uint8Array && Uint8Array.prototype || {};
5223
var arrayToString = [].toString;
5224
var arrayJoin = [].join;
5226
if (fails(function () { arrayToString.call({}); })) {
5227
arrayToString = function toString() {
5228
return arrayJoin.call(this);
5232
var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString != arrayToString;
5236
exportTypedArrayMethod('toString', arrayToString, IS_NOT_ARRAY_METHOD);
5242
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5244
var createTypedArrayConstructor = __webpack_require__(9843);
5248
createTypedArrayConstructor('Uint8', function (init) {
5249
return function Uint8Array(data, byteOffset, length) {
5250
return init(this, data, byteOffset, length);
5258
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5260
var global = __webpack_require__(7854);
5261
var DOMIterables = __webpack_require__(8324);
5262
var forEach = __webpack_require__(8533);
5263
var createNonEnumerableProperty = __webpack_require__(8880);
5265
for (var COLLECTION_NAME in DOMIterables) {
5266
var Collection = global[COLLECTION_NAME];
5267
var CollectionPrototype = Collection && Collection.prototype;
5269
if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
5270
createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
5272
CollectionPrototype.forEach = forEach;
5280
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5282
var global = __webpack_require__(7854);
5283
var DOMIterables = __webpack_require__(8324);
5284
var ArrayIteratorMethods = __webpack_require__(6992);
5285
var createNonEnumerableProperty = __webpack_require__(8880);
5286
var wellKnownSymbol = __webpack_require__(5112);
5288
var ITERATOR = wellKnownSymbol('iterator');
5289
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
5290
var ArrayValues = ArrayIteratorMethods.values;
5292
for (var COLLECTION_NAME in DOMIterables) {
5293
var Collection = global[COLLECTION_NAME];
5294
var CollectionPrototype = Collection && Collection.prototype;
5295
if (CollectionPrototype) {
5297
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
5298
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
5300
CollectionPrototype[ITERATOR] = ArrayValues;
5302
if (!CollectionPrototype[TO_STRING_TAG]) {
5303
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
5305
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
5307
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
5308
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
5310
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
5320
(function(module, __unused_webpack_exports, __webpack_require__) {
5325
__webpack_require__(6992);
5326
var $ = __webpack_require__(2109);
5327
var getBuiltIn = __webpack_require__(5005);
5328
var USE_NATIVE_URL = __webpack_require__(590);
5329
var redefine = __webpack_require__(1320);
5330
var redefineAll = __webpack_require__(2248);
5331
var setToStringTag = __webpack_require__(8003);
5332
var createIteratorConstructor = __webpack_require__(4994);
5333
var InternalStateModule = __webpack_require__(9909);
5334
var anInstance = __webpack_require__(5787);
5335
var hasOwn = __webpack_require__(6656);
5336
var bind = __webpack_require__(9974);
5337
var classof = __webpack_require__(648);
5338
var anObject = __webpack_require__(9670);
5339
var isObject = __webpack_require__(111);
5340
var create = __webpack_require__(30);
5341
var createPropertyDescriptor = __webpack_require__(9114);
5342
var getIterator = __webpack_require__(8554);
5343
var getIteratorMethod = __webpack_require__(1246);
5344
var wellKnownSymbol = __webpack_require__(5112);
5346
var $fetch = getBuiltIn('fetch');
5347
var Headers = getBuiltIn('Headers');
5348
var ITERATOR = wellKnownSymbol('iterator');
5349
var URL_SEARCH_PARAMS = 'URLSearchParams';
5350
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
5351
var setInternalState = InternalStateModule.set;
5352
var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
5353
var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
5356
var sequences = Array(4);
5358
var percentSequence = function (bytes) {
5359
return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
5362
var percentDecode = function (sequence) {
5364
return decodeURIComponent(sequence);
5370
var deserialize = function (it) {
5371
var result = it.replace(plus, ' ');
5374
return decodeURIComponent(result);
5377
result = result.replace(percentSequence(bytes--), percentDecode);
5383
var find = /[!'()~]|%20/g;
5394
var replacer = function (match) {
5395
return replace[match];
5398
var serialize = function (it) {
5399
return encodeURIComponent(it).replace(find, replacer);
5402
var parseSearchParams = function (result, query) {
5404
var attributes = query.split('&');
5406
var attribute, entry;
5407
while (index < attributes.length) {
5408
attribute = attributes[index++];
5409
if (attribute.length) {
5410
entry = attribute.split('=');
5412
key: deserialize(entry.shift()),
5413
value: deserialize(entry.join('='))
5420
var updateSearchParams = function (query) {
5421
this.entries.length = 0;
5422
parseSearchParams(this.entries, query);
5425
var validateArgumentsLength = function (passed, required) {
5426
if (passed < required) throw TypeError('Not enough arguments');
5429
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
5430
setInternalState(this, {
5431
type: URL_SEARCH_PARAMS_ITERATOR,
5432
iterator: getIterator(getInternalParamsState(params).entries),
5435
}, 'Iterator', function next() {
5436
var state = getInternalIteratorState(this);
5437
var kind = state.kind;
5438
var step = state.iterator.next();
5439
var entry = step.value;
5441
step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];
5447
var URLSearchParamsConstructor = function URLSearchParams() {
5448
anInstance(this, URLSearchParamsConstructor, URL_SEARCH_PARAMS);
5449
var init = arguments.length > 0 ? arguments[0] : undefined;
5452
var iteratorMethod, iterator, next, step, entryIterator, entryNext, first, second, key;
5454
setInternalState(that, {
5455
type: URL_SEARCH_PARAMS,
5457
updateURL: function () { },
5458
updateSearchParams: updateSearchParams
5461
if (init !== undefined) {
5462
if (isObject(init)) {
5463
iteratorMethod = getIteratorMethod(init);
5464
if (typeof iteratorMethod === 'function') {
5465
iterator = iteratorMethod.call(init);
5466
next = iterator.next;
5467
while (!(step = next.call(iterator)).done) {
5468
entryIterator = getIterator(anObject(step.value));
5469
entryNext = entryIterator.next;
5471
(first = entryNext.call(entryIterator)).done ||
5472
(second = entryNext.call(entryIterator)).done ||
5473
!entryNext.call(entryIterator).done
5474
) throw TypeError('Expected sequence with length 2');
5475
entries.push({ key: first.value + '', value: second.value + '' });
5477
} else for (key in init) if (hasOwn(init, key)) entries.push({ key: key, value: init[key] + '' });
5479
parseSearchParams(entries, typeof init === 'string' ? init.charAt(0) === '?' ? init.slice(1) : init : init + '');
5484
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
5486
redefineAll(URLSearchParamsPrototype, {
5489
append: function append(name, value) {
5490
validateArgumentsLength(arguments.length, 2);
5491
var state = getInternalParamsState(this);
5492
state.entries.push({ key: name + '', value: value + '' });
5497
'delete': function (name) {
5498
validateArgumentsLength(arguments.length, 1);
5499
var state = getInternalParamsState(this);
5500
var entries = state.entries;
5501
var key = name + '';
5503
while (index < entries.length) {
5504
if (entries[index].key === key) entries.splice(index, 1);
5511
get: function get(name) {
5512
validateArgumentsLength(arguments.length, 1);
5513
var entries = getInternalParamsState(this).entries;
5514
var key = name + '';
5516
for (; index < entries.length; index++) {
5517
if (entries[index].key === key) return entries[index].value;
5523
getAll: function getAll(name) {
5524
validateArgumentsLength(arguments.length, 1);
5525
var entries = getInternalParamsState(this).entries;
5526
var key = name + '';
5529
for (; index < entries.length; index++) {
5530
if (entries[index].key === key) result.push(entries[index].value);
5536
has: function has(name) {
5537
validateArgumentsLength(arguments.length, 1);
5538
var entries = getInternalParamsState(this).entries;
5539
var key = name + '';
5541
while (index < entries.length) {
5542
if (entries[index++].key === key) return true;
5548
set: function set(name, value) {
5549
validateArgumentsLength(arguments.length, 1);
5550
var state = getInternalParamsState(this);
5551
var entries = state.entries;
5553
var key = name + '';
5554
var val = value + '';
5557
for (; index < entries.length; index++) {
5558
entry = entries[index];
5559
if (entry.key === key) {
5560
if (found) entries.splice(index--, 1);
5567
if (!found) entries.push({ key: key, value: val });
5572
sort: function sort() {
5573
var state = getInternalParamsState(this);
5574
var entries = state.entries;
5576
var slice = entries.slice();
5577
var entry, entriesIndex, sliceIndex;
5579
for (sliceIndex = 0; sliceIndex < slice.length; sliceIndex++) {
5580
entry = slice[sliceIndex];
5581
for (entriesIndex = 0; entriesIndex < sliceIndex; entriesIndex++) {
5582
if (entries[entriesIndex].key > entry.key) {
5583
entries.splice(entriesIndex, 0, entry);
5587
if (entriesIndex === sliceIndex) entries.push(entry);
5592
forEach: function forEach(callback ) {
5593
var entries = getInternalParamsState(this).entries;
5594
var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined, 3);
5597
while (index < entries.length) {
5598
entry = entries[index++];
5599
boundFunction(entry.value, entry.key, this);
5603
keys: function keys() {
5604
return new URLSearchParamsIterator(this, 'keys');
5607
values: function values() {
5608
return new URLSearchParamsIterator(this, 'values');
5611
entries: function entries() {
5612
return new URLSearchParamsIterator(this, 'entries');
5614
}, { enumerable: true });
5617
redefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries);
5621
redefine(URLSearchParamsPrototype, 'toString', function toString() {
5622
var entries = getInternalParamsState(this).entries;
5626
while (index < entries.length) {
5627
entry = entries[index++];
5628
result.push(serialize(entry.key) + '=' + serialize(entry.value));
5629
} return result.join('&');
5630
}, { enumerable: true });
5632
setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
5634
$({ global: true, forced: !USE_NATIVE_URL }, {
5635
URLSearchParams: URLSearchParamsConstructor
5640
if (!USE_NATIVE_URL && typeof $fetch == 'function' && typeof Headers == 'function') {
5641
$({ global: true, enumerable: true, forced: true }, {
5642
fetch: function fetch(input ) {
5644
var init, body, headers;
5645
if (arguments.length > 1) {
5646
init = arguments[1];
5647
if (isObject(init)) {
5649
if (classof(body) === URL_SEARCH_PARAMS) {
5650
headers = init.headers ? new Headers(init.headers) : new Headers();
5651
if (!headers.has('content-type')) {
5652
headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
5654
init = create(init, {
5655
body: createPropertyDescriptor(0, String(body)),
5656
headers: createPropertyDescriptor(0, headers)
5661
} return $fetch.apply(this, args);
5667
URLSearchParams: URLSearchParamsConstructor,
5668
getState: getInternalParamsState
5675
(function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5680
__webpack_require__(8783);
5681
var $ = __webpack_require__(2109);
5682
var DESCRIPTORS = __webpack_require__(9781);
5683
var USE_NATIVE_URL = __webpack_require__(590);
5684
var global = __webpack_require__(7854);
5685
var defineProperties = __webpack_require__(6048);
5686
var redefine = __webpack_require__(1320);
5687
var anInstance = __webpack_require__(5787);
5688
var has = __webpack_require__(6656);
5689
var assign = __webpack_require__(1574);
5690
var arrayFrom = __webpack_require__(8457);
5691
var codeAt = __webpack_require__(8710).codeAt;
5692
var toASCII = __webpack_require__(3197);
5693
var setToStringTag = __webpack_require__(8003);
5694
var URLSearchParamsModule = __webpack_require__(1637);
5695
var InternalStateModule = __webpack_require__(9909);
5697
var NativeURL = global.URL;
5698
var URLSearchParams = URLSearchParamsModule.URLSearchParams;
5699
var getInternalSearchParamsState = URLSearchParamsModule.getState;
5700
var setInternalState = InternalStateModule.set;
5701
var getInternalURLState = InternalStateModule.getterFor('URL');
5702
var floor = Math.floor;
5705
var INVALID_AUTHORITY = 'Invalid authority';
5706
var INVALID_SCHEME = 'Invalid scheme';
5707
var INVALID_HOST = 'Invalid host';
5708
var INVALID_PORT = 'Invalid port';
5710
var ALPHA = /[A-Za-z]/;
5711
var ALPHANUMERIC = /[\d+-.A-Za-z]/;
5713
var HEX_START = /^(0x|0X)/;
5714
var OCT = /^[0-7]+$/;
5716
var HEX = /^[\dA-Fa-f]+$/;
5718
var FORBIDDEN_HOST_CODE_POINT = /[\u0000\t\u000A\u000D #%/:?@[\\]]/;
5719
var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\u0000\t\u000A\u000D #/:?@[\\]]/;
5720
var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g;
5721
var TAB_AND_NEW_LINE = /[\t\u000A\u000D]/g;
5725
var parseHost = function (url, input) {
5726
var result, codePoints, index;
5727
if (input.charAt(0) == '[') {
5728
if (input.charAt(input.length - 1) != ']') return INVALID_HOST;
5729
result = parseIPv6(input.slice(1, -1));
5730
if (!result) return INVALID_HOST;
5733
} else if (!isSpecial(url)) {
5734
if (FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input)) return INVALID_HOST;
5736
codePoints = arrayFrom(input);
5737
for (index = 0; index < codePoints.length; index++) {
5738
result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
5742
input = toASCII(input);
5743
if (FORBIDDEN_HOST_CODE_POINT.test(input)) return INVALID_HOST;
5744
result = parseIPv4(input);
5745
if (result === null) return INVALID_HOST;
5750
var parseIPv4 = function (input) {
5751
var parts = input.split('.');
5752
var partsLength, numbers, index, part, radix, number, ipv4;
5753
if (parts.length && parts[parts.length - 1] == '') {
5756
partsLength = parts.length;
5757
if (partsLength > 4) return input;
5759
for (index = 0; index < partsLength; index++) {
5760
part = parts[index];
5761
if (part == '') return input;
5763
if (part.length > 1 && part.charAt(0) == '0') {
5764
radix = HEX_START.test(part) ? 16 : 8;
5765
part = part.slice(radix == 8 ? 1 : 2);
5770
if (!(radix == 10 ? DEC : radix == 8 ? OCT : HEX).test(part)) return input;
5771
number = parseInt(part, radix);
5773
numbers.push(number);
5775
for (index = 0; index < partsLength; index++) {
5776
number = numbers[index];
5777
if (index == partsLength - 1) {
5778
if (number >= pow(256, 5 - partsLength)) return null;
5779
} else if (number > 255) return null;
5781
ipv4 = numbers.pop();
5782
for (index = 0; index < numbers.length; index++) {
5783
ipv4 += numbers[index] * pow(256, 3 - index);
5789
var parseIPv6 = function (input) {
5790
var address = [0, 0, 0, 0, 0, 0, 0, 0];
5792
var compress = null;
5794
var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
5796
var char = function () {
5797
return input.charAt(pointer);
5800
if (char() == ':') {
5801
if (input.charAt(1) != ':') return;
5804
compress = pieceIndex;
5807
if (pieceIndex == 8) return;
5808
if (char() == ':') {
5809
if (compress !== null) return;
5812
compress = pieceIndex;
5816
while (length < 4 && HEX.test(char())) {
5817
value = value * 16 + parseInt(char(), 16);
5821
if (char() == '.') {
5822
if (length == 0) return;
5824
if (pieceIndex > 6) return;
5828
if (numbersSeen > 0) {
5829
if (char() == '.' && numbersSeen < 4) pointer++;
5832
if (!DIGIT.test(char())) return;
5833
while (DIGIT.test(char())) {
5834
number = parseInt(char(), 10);
5835
if (ipv4Piece === null) ipv4Piece = number;
5836
else if (ipv4Piece == 0) return;
5837
else ipv4Piece = ipv4Piece * 10 + number;
5838
if (ipv4Piece > 255) return;
5841
address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
5843
if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++;
5845
if (numbersSeen != 4) return;
5847
} else if (char() == ':') {
5849
if (!char()) return;
5850
} else if (char()) return;
5851
address[pieceIndex++] = value;
5853
if (compress !== null) {
5854
swaps = pieceIndex - compress;
5856
while (pieceIndex != 0 && swaps > 0) {
5857
swap = address[pieceIndex];
5858
address[pieceIndex--] = address[compress + swaps - 1];
5859
address[compress + --swaps] = swap;
5861
} else if (pieceIndex != 8) return;
5865
var findLongestZeroSequence = function (ipv6) {
5866
var maxIndex = null;
5868
var currStart = null;
5871
for (; index < 8; index++) {
5872
if (ipv6[index] !== 0) {
5873
if (currLength > maxLength) {
5874
maxIndex = currStart;
5875
maxLength = currLength;
5880
if (currStart === null) currStart = index;
5884
if (currLength > maxLength) {
5885
maxIndex = currStart;
5886
maxLength = currLength;
5891
var serializeHost = function (host) {
5892
var result, index, compress, ignore0;
5894
if (typeof host == 'number') {
5896
for (index = 0; index < 4; index++) {
5897
result.unshift(host % 256);
5898
host = floor(host / 256);
5899
} return result.join('.');
5901
} else if (typeof host == 'object') {
5903
compress = findLongestZeroSequence(host);
5904
for (index = 0; index < 8; index++) {
5905
if (ignore0 && host[index] === 0) continue;
5906
if (ignore0) ignore0 = false;
5907
if (compress === index) {
5908
result += index ? ':' : '::';
5911
result += host[index].toString(16);
5912
if (index < 7) result += ':';
5915
return '[' + result + ']';
5919
var C0ControlPercentEncodeSet = {};
5920
var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
5921
' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
5923
var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
5924
'#': 1, '?': 1, '{': 1, '}': 1
5926
var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
5927
'/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
5930
var percentEncode = function (char, set) {
5931
var code = codeAt(char, 0);
5932
return code > 0x20 && code < 0x7F && !has(set, char) ? char : encodeURIComponent(char);
5935
var specialSchemes = {
5944
var isSpecial = function (url) {
5945
return has(specialSchemes, url.scheme);
5948
var includesCredentials = function (url) {
5949
return url.username != '' || url.password != '';
5952
var cannotHaveUsernamePasswordPort = function (url) {
5953
return !url.host || url.cannotBeABaseURL || url.scheme == 'file';
5956
var isWindowsDriveLetter = function (string, normalized) {
5958
return string.length == 2 && ALPHA.test(string.charAt(0))
5959
&& ((second = string.charAt(1)) == ':' || (!normalized && second == '|'));
5962
var startsWithWindowsDriveLetter = function (string) {
5964
return string.length > 1 && isWindowsDriveLetter(string.slice(0, 2)) && (
5965
string.length == 2 ||
5966
((third = string.charAt(2)) === '/' || third === '\\' || third === '?' || third === '#')
5970
var shortenURLsPath = function (url) {
5971
var path = url.path;
5972
var pathSize = path.length;
5973
if (pathSize && (url.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
5978
var isSingleDot = function (segment) {
5979
return segment === '.' || segment.toLowerCase() === '%2e';
5982
var isDoubleDot = function (segment) {
5983
segment = segment.toLowerCase();
5984
return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
5988
var SCHEME_START = {};
5991
var SPECIAL_RELATIVE_OR_AUTHORITY = {};
5992
var PATH_OR_AUTHORITY = {};
5994
var RELATIVE_SLASH = {};
5995
var SPECIAL_AUTHORITY_SLASHES = {};
5996
var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
6006
var CANNOT_BE_A_BASE_URL_PATH = {};
6011
var parseURL = function (url, input, stateOverride, base) {
6012
var state = stateOverride || SCHEME_START;
6016
var seenBracket = false;
6017
var seenPasswordToken = false;
6018
var codePoints, char, bufferCodePoints, failure;
6020
if (!stateOverride) {
6028
url.fragment = null;
6029
url.cannotBeABaseURL = false;
6030
input = input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, '');
6033
input = input.replace(TAB_AND_NEW_LINE, '');
6035
codePoints = arrayFrom(input);
6037
while (pointer <= codePoints.length) {
6038
char = codePoints[pointer];
6041
if (char && ALPHA.test(char)) {
6042
buffer += char.toLowerCase();
6044
} else if (!stateOverride) {
6047
} else return INVALID_SCHEME;
6051
if (char && (ALPHANUMERIC.test(char) || char == '+' || char == '-' || char == '.')) {
6052
buffer += char.toLowerCase();
6053
} else if (char == ':') {
6054
if (stateOverride && (
6055
(isSpecial(url) != has(specialSchemes, buffer)) ||
6056
(buffer == 'file' && (includesCredentials(url) || url.port !== null)) ||
6057
(url.scheme == 'file' && !url.host)
6059
url.scheme = buffer;
6060
if (stateOverride) {
6061
if (isSpecial(url) && specialSchemes[url.scheme] == url.port) url.port = null;
6065
if (url.scheme == 'file') {
6067
} else if (isSpecial(url) && base && base.scheme == url.scheme) {
6068
state = SPECIAL_RELATIVE_OR_AUTHORITY;
6069
} else if (isSpecial(url)) {
6070
state = SPECIAL_AUTHORITY_SLASHES;
6071
} else if (codePoints[pointer + 1] == '/') {
6072
state = PATH_OR_AUTHORITY;
6075
url.cannotBeABaseURL = true;
6077
state = CANNOT_BE_A_BASE_URL_PATH;
6079
} else if (!stateOverride) {
6084
} else return INVALID_SCHEME;
6088
if (!base || (base.cannotBeABaseURL && char != '#')) return INVALID_SCHEME;
6089
if (base.cannotBeABaseURL && char == '#') {
6090
url.scheme = base.scheme;
6091
url.path = base.path.slice();
6092
url.query = base.query;
6094
url.cannotBeABaseURL = true;
6098
state = base.scheme == 'file' ? FILE : RELATIVE;
6101
case SPECIAL_RELATIVE_OR_AUTHORITY:
6102
if (char == '/' && codePoints[pointer + 1] == '/') {
6103
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
6110
case PATH_OR_AUTHORITY:
6120
url.scheme = base.scheme;
6122
url.username = base.username;
6123
url.password = base.password;
6124
url.host = base.host;
6125
url.port = base.port;
6126
url.path = base.path.slice();
6127
url.query = base.query;
6128
} else if (char == '/' || (char == '\\' && isSpecial(url))) {
6129
state = RELATIVE_SLASH;
6130
} else if (char == '?') {
6131
url.username = base.username;
6132
url.password = base.password;
6133
url.host = base.host;
6134
url.port = base.port;
6135
url.path = base.path.slice();
6138
} else if (char == '#') {
6139
url.username = base.username;
6140
url.password = base.password;
6141
url.host = base.host;
6142
url.port = base.port;
6143
url.path = base.path.slice();
6144
url.query = base.query;
6148
url.username = base.username;
6149
url.password = base.password;
6150
url.host = base.host;
6151
url.port = base.port;
6152
url.path = base.path.slice();
6158
case RELATIVE_SLASH:
6159
if (isSpecial(url) && (char == '/' || char == '\\')) {
6160
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
6161
} else if (char == '/') {
6164
url.username = base.username;
6165
url.password = base.password;
6166
url.host = base.host;
6167
url.port = base.port;
6172
case SPECIAL_AUTHORITY_SLASHES:
6173
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
6174
if (char != '/' || buffer.charAt(pointer + 1) != '/') continue;
6178
case SPECIAL_AUTHORITY_IGNORE_SLASHES:
6179
if (char != '/' && char != '\\') {
6186
if (seenAt) buffer = '%40' + buffer;
6188
bufferCodePoints = arrayFrom(buffer);
6189
for (var i = 0; i < bufferCodePoints.length; i++) {
6190
var codePoint = bufferCodePoints[i];
6191
if (codePoint == ':' && !seenPasswordToken) {
6192
seenPasswordToken = true;
6195
var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
6196
if (seenPasswordToken) url.password += encodedCodePoints;
6197
else url.username += encodedCodePoints;
6201
char == EOF || char == '/' || char == '?' || char == '#' ||
6202
(char == '\\' && isSpecial(url))
6204
if (seenAt && buffer == '') return INVALID_AUTHORITY;
6205
pointer -= arrayFrom(buffer).length + 1;
6208
} else buffer += char;
6213
if (stateOverride && url.scheme == 'file') {
6216
} else if (char == ':' && !seenBracket) {
6217
if (buffer == '') return INVALID_HOST;
6218
failure = parseHost(url, buffer);
6219
if (failure) return failure;
6222
if (stateOverride == HOSTNAME) return;
6224
char == EOF || char == '/' || char == '?' || char == '#' ||
6225
(char == '\\' && isSpecial(url))
6227
if (isSpecial(url) && buffer == '') return INVALID_HOST;
6228
if (stateOverride && buffer == '' && (includesCredentials(url) || url.port !== null)) return;
6229
failure = parseHost(url, buffer);
6230
if (failure) return failure;
6233
if (stateOverride) return;
6236
if (char == '[') seenBracket = true;
6237
else if (char == ']') seenBracket = false;
6242
if (DIGIT.test(char)) {
6245
char == EOF || char == '/' || char == '?' || char == '#' ||
6246
(char == '\\' && isSpecial(url)) ||
6250
var port = parseInt(buffer, 10);
6251
if (port > 0xFFFF) return INVALID_PORT;
6252
url.port = (isSpecial(url) && port === specialSchemes[url.scheme]) ? null : port;
6255
if (stateOverride) return;
6258
} else return INVALID_PORT;
6262
url.scheme = 'file';
6263
if (char == '/' || char == '\\') state = FILE_SLASH;
6264
else if (base && base.scheme == 'file') {
6266
url.host = base.host;
6267
url.path = base.path.slice();
6268
url.query = base.query;
6269
} else if (char == '?') {
6270
url.host = base.host;
6271
url.path = base.path.slice();
6274
} else if (char == '#') {
6275
url.host = base.host;
6276
url.path = base.path.slice();
6277
url.query = base.query;
6281
if (!startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {
6282
url.host = base.host;
6283
url.path = base.path.slice();
6284
shortenURLsPath(url);
6295
if (char == '/' || char == '\\') {
6299
if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {
6300
if (isWindowsDriveLetter(base.path[0], true)) url.path.push(base.path[0]);
6301
else url.host = base.host;
6307
if (char == EOF || char == '/' || char == '\\' || char == '?' || char == '#') {
6308
if (!stateOverride && isWindowsDriveLetter(buffer)) {
6310
} else if (buffer == '') {
6312
if (stateOverride) return;
6315
failure = parseHost(url, buffer);
6316
if (failure) return failure;
6317
if (url.host == 'localhost') url.host = '';
6318
if (stateOverride) return;
6322
} else buffer += char;
6326
if (isSpecial(url)) {
6328
if (char != '/' && char != '\\') continue;
6329
} else if (!stateOverride && char == '?') {
6332
} else if (!stateOverride && char == '#') {
6335
} else if (char != EOF) {
6337
if (char != '/') continue;
6342
char == EOF || char == '/' ||
6343
(char == '\\' && isSpecial(url)) ||
6344
(!stateOverride && (char == '?' || char == '#'))
6346
if (isDoubleDot(buffer)) {
6347
shortenURLsPath(url);
6348
if (char != '/' && !(char == '\\' && isSpecial(url))) {
6351
} else if (isSingleDot(buffer)) {
6352
if (char != '/' && !(char == '\\' && isSpecial(url))) {
6356
if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
6357
if (url.host) url.host = '';
6358
buffer = buffer.charAt(0) + ':';
6360
url.path.push(buffer);
6363
if (url.scheme == 'file' && (char == EOF || char == '?' || char == '#')) {
6364
while (url.path.length > 1 && url.path[0] === '') {
6371
} else if (char == '#') {
6376
buffer += percentEncode(char, pathPercentEncodeSet);
6379
case CANNOT_BE_A_BASE_URL_PATH:
6383
} else if (char == '#') {
6386
} else if (char != EOF) {
6387
url.path[0] += percentEncode(char, C0ControlPercentEncodeSet);
6391
if (!stateOverride && char == '#') {
6394
} else if (char != EOF) {
6395
if (char == "'" && isSpecial(url)) url.query += '%27';
6396
else if (char == '#') url.query += '%23';
6397
else url.query += percentEncode(char, C0ControlPercentEncodeSet);
6401
if (char != EOF) url.fragment += percentEncode(char, fragmentPercentEncodeSet);
6411
var URLConstructor = function URL(url ) {
6412
var that = anInstance(this, URLConstructor, 'URL');
6413
var base = arguments.length > 1 ? arguments[1] : undefined;
6414
var urlString = String(url);
6415
var state = setInternalState(that, { type: 'URL' });
6416
var baseState, failure;
6417
if (base !== undefined) {
6418
if (base instanceof URLConstructor) baseState = getInternalURLState(base);
6420
failure = parseURL(baseState = {}, String(base));
6421
if (failure) throw TypeError(failure);
6424
failure = parseURL(state, urlString, null, baseState);
6425
if (failure) throw TypeError(failure);
6426
var searchParams = state.searchParams = new URLSearchParams();
6427
var searchParamsState = getInternalSearchParamsState(searchParams);
6428
searchParamsState.updateSearchParams(state.query);
6429
searchParamsState.updateURL = function () {
6430
state.query = String(searchParams) || null;
6433
that.href = serializeURL.call(that);
6434
that.origin = getOrigin.call(that);
6435
that.protocol = getProtocol.call(that);
6436
that.username = getUsername.call(that);
6437
that.password = getPassword.call(that);
6438
that.host = getHost.call(that);
6439
that.hostname = getHostname.call(that);
6440
that.port = getPort.call(that);
6441
that.pathname = getPathname.call(that);
6442
that.search = getSearch.call(that);
6443
that.searchParams = getSearchParams.call(that);
6444
that.hash = getHash.call(that);
6448
var URLPrototype = URLConstructor.prototype;
6450
var serializeURL = function () {
6451
var url = getInternalURLState(this);
6452
var scheme = url.scheme;
6453
var username = url.username;
6454
var password = url.password;
6455
var host = url.host;
6456
var port = url.port;
6457
var path = url.path;
6458
var query = url.query;
6459
var fragment = url.fragment;
6460
var output = scheme + ':';
6461
if (host !== null) {
6463
if (includesCredentials(url)) {
6464
output += username + (password ? ':' + password : '') + '@';
6466
output += serializeHost(host);
6467
if (port !== null) output += ':' + port;
6468
} else if (scheme == 'file') output += '//';
6469
output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';
6470
if (query !== null) output += '?' + query;
6471
if (fragment !== null) output += '#' + fragment;
6475
var getOrigin = function () {
6476
var url = getInternalURLState(this);
6477
var scheme = url.scheme;
6478
var port = url.port;
6479
if (scheme == 'blob') try {
6480
return new URL(scheme.path[0]).origin;
6484
if (scheme == 'file' || !isSpecial(url)) return 'null';
6485
return scheme + '://' + serializeHost(url.host) + (port !== null ? ':' + port : '');
6488
var getProtocol = function () {
6489
return getInternalURLState(this).scheme + ':';
6492
var getUsername = function () {
6493
return getInternalURLState(this).username;
6496
var getPassword = function () {
6497
return getInternalURLState(this).password;
6500
var getHost = function () {
6501
var url = getInternalURLState(this);
6502
var host = url.host;
6503
var port = url.port;
6504
return host === null ? ''
6505
: port === null ? serializeHost(host)
6506
: serializeHost(host) + ':' + port;
6509
var getHostname = function () {
6510
var host = getInternalURLState(this).host;
6511
return host === null ? '' : serializeHost(host);
6514
var getPort = function () {
6515
var port = getInternalURLState(this).port;
6516
return port === null ? '' : String(port);
6519
var getPathname = function () {
6520
var url = getInternalURLState(this);
6521
var path = url.path;
6522
return url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';
6525
var getSearch = function () {
6526
var query = getInternalURLState(this).query;
6527
return query ? '?' + query : '';
6530
var getSearchParams = function () {
6531
return getInternalURLState(this).searchParams;
6534
var getHash = function () {
6535
var fragment = getInternalURLState(this).fragment;
6536
return fragment ? '#' + fragment : '';
6539
var accessorDescriptor = function (getter, setter) {
6540
return { get: getter, set: setter, configurable: true, enumerable: true };
6544
defineProperties(URLPrototype, {
6547
href: accessorDescriptor(serializeURL, function (href) {
6548
var url = getInternalURLState(this);
6549
var urlString = String(href);
6550
var failure = parseURL(url, urlString);
6551
if (failure) throw TypeError(failure);
6552
getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);
6556
origin: accessorDescriptor(getOrigin),
6559
protocol: accessorDescriptor(getProtocol, function (protocol) {
6560
var url = getInternalURLState(this);
6561
parseURL(url, String(protocol) + ':', SCHEME_START);
6565
username: accessorDescriptor(getUsername, function (username) {
6566
var url = getInternalURLState(this);
6567
var codePoints = arrayFrom(String(username));
6568
if (cannotHaveUsernamePasswordPort(url)) return;
6570
for (var i = 0; i < codePoints.length; i++) {
6571
url.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
6576
password: accessorDescriptor(getPassword, function (password) {
6577
var url = getInternalURLState(this);
6578
var codePoints = arrayFrom(String(password));
6579
if (cannotHaveUsernamePasswordPort(url)) return;
6581
for (var i = 0; i < codePoints.length; i++) {
6582
url.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
6587
host: accessorDescriptor(getHost, function (host) {
6588
var url = getInternalURLState(this);
6589
if (url.cannotBeABaseURL) return;
6590
parseURL(url, String(host), HOST);
6594
hostname: accessorDescriptor(getHostname, function (hostname) {
6595
var url = getInternalURLState(this);
6596
if (url.cannotBeABaseURL) return;
6597
parseURL(url, String(hostname), HOSTNAME);
6601
port: accessorDescriptor(getPort, function (port) {
6602
var url = getInternalURLState(this);
6603
if (cannotHaveUsernamePasswordPort(url)) return;
6604
port = String(port);
6605
if (port == '') url.port = null;
6606
else parseURL(url, port, PORT);
6610
pathname: accessorDescriptor(getPathname, function (pathname) {
6611
var url = getInternalURLState(this);
6612
if (url.cannotBeABaseURL) return;
6614
parseURL(url, pathname + '', PATH_START);
6618
search: accessorDescriptor(getSearch, function (search) {
6619
var url = getInternalURLState(this);
6620
search = String(search);
6624
if ('?' == search.charAt(0)) search = search.slice(1);
6626
parseURL(url, search, QUERY);
6628
getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);
6632
searchParams: accessorDescriptor(getSearchParams),
6635
hash: accessorDescriptor(getHash, function (hash) {
6636
var url = getInternalURLState(this);
6637
hash = String(hash);
6639
url.fragment = null;
6642
if ('#' == hash.charAt(0)) hash = hash.slice(1);
6644
parseURL(url, hash, FRAGMENT);
6651
redefine(URLPrototype, 'toJSON', function toJSON() {
6652
return serializeURL.call(this);
6653
}, { enumerable: true });
6657
redefine(URLPrototype, 'toString', function toString() {
6658
return serializeURL.call(this);
6659
}, { enumerable: true });
6662
var nativeCreateObjectURL = NativeURL.createObjectURL;
6663
var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
6667
if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', function createObjectURL(blob) {
6668
return nativeCreateObjectURL.apply(NativeURL, arguments);
6673
if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', function revokeObjectURL(url) {
6674
return nativeRevokeObjectURL.apply(NativeURL, arguments);
6678
setToStringTag(URLConstructor, 'URL');
6680
$({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
6690
var __webpack_module_cache__ = {};
6693
function __webpack_require__(moduleId) {
6695
if(__webpack_module_cache__[moduleId]) {
6696
return __webpack_module_cache__[moduleId].exports;
6699
var module = __webpack_module_cache__[moduleId] = {
6706
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
6709
return module.exports;
6716
__webpack_require__.d = function(exports, definition) {
6717
for(var key in definition) {
6718
if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
6719
Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
6727
__webpack_require__.g = (function() {
6728
if (typeof globalThis === 'object') return globalThis;
6730
return this || new Function('return this')();
6732
if (typeof window === 'object') return window;
6739
__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
6745
__webpack_require__.r = function(exports) {
6746
if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
6747
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6749
Object.defineProperty(exports, '__esModule', { value: true });
6754
var __webpack_exports__ = {};
6759
__webpack_require__.r(__webpack_exports__);
6762
__webpack_require__.d(__webpack_exports__, {
6763
"Dropzone": function() { return Dropzone; },
6764
"default": function() { return dropzone_dist; }
6768
var es_array_concat = __webpack_require__(2222);
6770
var es_array_filter = __webpack_require__(7327);
6772
var es_array_index_of = __webpack_require__(2772);
6774
var es_array_iterator = __webpack_require__(6992);
6776
var es_array_map = __webpack_require__(1249);
6778
var es_array_slice = __webpack_require__(7042);
6780
var es_array_splice = __webpack_require__(561);
6782
var es_array_buffer_constructor = __webpack_require__(8264);
6784
var es_function_name = __webpack_require__(8309);
6786
var es_object_get_prototype_of = __webpack_require__(489);
6788
var es_object_to_string = __webpack_require__(1539);
6790
var es_regexp_exec = __webpack_require__(4916);
6792
var es_regexp_to_string = __webpack_require__(9714);
6794
var es_string_iterator = __webpack_require__(8783);
6796
var es_string_match = __webpack_require__(4723);
6798
var es_string_replace = __webpack_require__(5306);
6800
var es_string_split = __webpack_require__(3123);
6802
var es_string_trim = __webpack_require__(3210);
6804
var es_typed_array_uint8_array = __webpack_require__(2472);
6806
var es_typed_array_copy_within = __webpack_require__(2990);
6808
var es_typed_array_every = __webpack_require__(8927);
6810
var es_typed_array_fill = __webpack_require__(3105);
6812
var es_typed_array_filter = __webpack_require__(5035);
6814
var es_typed_array_find = __webpack_require__(4345);
6816
var es_typed_array_find_index = __webpack_require__(7174);
6818
var es_typed_array_for_each = __webpack_require__(2846);
6820
var es_typed_array_includes = __webpack_require__(4731);
6822
var es_typed_array_index_of = __webpack_require__(7209);
6824
var es_typed_array_iterator = __webpack_require__(6319);
6826
var es_typed_array_join = __webpack_require__(8867);
6828
var es_typed_array_last_index_of = __webpack_require__(7789);
6830
var es_typed_array_map = __webpack_require__(3739);
6832
var es_typed_array_reduce = __webpack_require__(9368);
6834
var es_typed_array_reduce_right = __webpack_require__(4483);
6836
var es_typed_array_reverse = __webpack_require__(2056);
6838
var es_typed_array_set = __webpack_require__(3462);
6840
var es_typed_array_slice = __webpack_require__(678);
6842
var es_typed_array_some = __webpack_require__(7462);
6844
var es_typed_array_sort = __webpack_require__(3824);
6846
var es_typed_array_subarray = __webpack_require__(5021);
6848
var es_typed_array_to_locale_string = __webpack_require__(2974);
6850
var es_typed_array_to_string = __webpack_require__(5016);
6852
var web_dom_collections_for_each = __webpack_require__(4747);
6854
var web_dom_collections_iterator = __webpack_require__(3948);
6856
var web_url = __webpack_require__(285);
6860
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
6862
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6864
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
6866
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6868
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
6870
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6876
var Emitter = function () {
6877
function Emitter() {
6878
_classCallCheck(this, Emitter);
6881
_createClass(Emitter, [{
6884
function on(event, fn) {
6885
this._callbacks = this._callbacks || {};
6887
if (!this._callbacks[event]) {
6888
this._callbacks[event] = [];
6891
this._callbacks[event].push(fn);
6897
value: function emit(event) {
6898
this._callbacks = this._callbacks || {};
6899
var callbacks = this._callbacks[event];
6901
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
6902
args[_key - 1] = arguments[_key];
6906
var _iterator = _createForOfIteratorHelper(callbacks, true),
6910
for (_iterator.s(); !(_step = _iterator.n()).done;) {
6911
var callback = _step.value;
6912
callback.apply(this, args);
6923
this.element.dispatchEvent(this.makeEvent("dropzone:" + event, {
6932
value: function makeEvent(eventName, detail) {
6939
if (typeof window.CustomEvent === "function") {
6940
return new CustomEvent(eventName, params);
6944
var evt = document.createEvent("CustomEvent");
6945
evt.initCustomEvent(eventName, params.bubbles, params.cancelable, params.detail);
6954
value: function off(event, fn) {
6955
if (!this._callbacks || arguments.length === 0) {
6956
this._callbacks = {};
6961
var callbacks = this._callbacks[event];
6968
if (arguments.length === 1) {
6969
delete this._callbacks[event];
6974
for (var i = 0; i < callbacks.length; i++) {
6975
var callback = callbacks[i];
6977
if (callback === fn) {
6978
callbacks.splice(i, 1);
6993
var code = "<div class=\"dz-preview dz-file-preview\"> <div class=\"dz-image\"><img data-dz-thumbnail/></div> <div class=\"dz-details\"> <div class=\"dz-size\"><span data-dz-size></span></div> <div class=\"dz-filename\"><span data-dz-name></span></div> </div> <div class=\"dz-progress\"> <span class=\"dz-upload\" data-dz-uploadprogress></span> </div> <div class=\"dz-error-message\"><span data-dz-errormessage></span></div> <div class=\"dz-success-mark\"> <svg width=\"54px\" height=\"54px\" viewBox=\"0 0 54 54\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"> <title>Check</title> <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"> <path d=\"M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z\" stroke-opacity=\"0.198794158\" stroke=\"#747474\" fill-opacity=\"0.816519475\" fill=\"#FFFFFF\"></path> </g> </svg> </div> <div class=\"dz-error-mark\"> <svg width=\"54px\" height=\"54px\" viewBox=\"0 0 54 54\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"> <title>Error</title> <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"> <g stroke=\"#747474\" stroke-opacity=\"0.198794158\" fill=\"#FFFFFF\" fill-opacity=\"0.816519475\"> <path d=\"M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z\"></path> </g> </g> </svg> </div> </div> ";
6995
var preview_template = (code);
7002
function options_createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = options_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
7004
function options_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return options_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return options_arrayLikeToArray(o, minLen); }
7006
function options_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
7010
var defaultOptions = {
7028
withCredentials: false,
7049
uploadMultiple: false,
7064
forceChunking: false,
7074
parallelChunkUploads: false,
7084
retryChunksLimit: 3,
7101
createImageThumbnails: true,
7106
maxThumbnailFilesize: 10,
7111
thumbnailWidth: 120,
7116
thumbnailHeight: 120,
7122
thumbnailMethod: "crop",
7144
resizeMimeType: null,
7155
resizeMethod: "contain",
7193
ignoreHiddenFiles: true,
7206
acceptedFiles: null,
7212
acceptedMimeTypes: null,
7224
autoProcessQueue: true,
7237
addRemoveLinks: false,
7245
previewsContainer: null,
7250
disablePreviews: false,
7259
hiddenInputContainer: "body",
7274
renameFilename: null,
7289
forceFallback: false,
7294
dictDefaultMessage: "Drop files here to upload",
7299
dictFallbackMessage: "Your browser does not support drag'n'drop file uploads.",
7306
dictFallbackText: "Please use the fallback form below to upload your files like in the olden days.",
7312
dictFileTooBig: "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",
7317
dictInvalidFileType: "You can't upload files of this type.",
7323
dictResponseError: "Server responded with {{statusCode}} code.",
7328
dictCancelUpload: "Cancel upload",
7333
dictUploadCanceled: "Upload canceled.",
7338
dictCancelUploadConfirmation: "Are you sure you want to cancel this upload?",
7343
dictRemoveFile: "Remove file",
7348
dictRemoveFileConfirmation: null,
7354
dictMaxFilesExceeded: "You can not upload any more files.",
7360
dictFileSizeUnits: {
7372
init: function init() {},
7384
params: function params(files, xhr, chunk) {
7387
dzuuid: chunk.file.upload.uuid,
7388
dzchunkindex: chunk.index,
7389
dztotalfilesize: chunk.file.size,
7390
dzchunksize: this.options.chunkSize,
7391
dztotalchunkcount: chunk.file.upload.totalChunkCount,
7392
dzchunkbyteoffset: chunk.index * this.options.chunkSize
7406
accept: function accept(file, done) {
7416
chunksUploaded: function chunksUploaded(file, done) {
7425
fallback: function fallback() {
7428
this.element.className = "".concat(this.element.className, " dz-browser-not-supported");
7430
var _iterator = options_createForOfIteratorHelper(this.element.getElementsByTagName("div"), true),
7434
for (_iterator.s(); !(_step = _iterator.n()).done;) {
7435
var child = _step.value;
7437
if (/(^| )dz-message($| )/.test(child.className)) {
7438
messageElement = child;
7439
child.className = "dz-message";
7450
if (!messageElement) {
7451
messageElement = Dropzone.createElement('<div class="dz-message"><span></span></div>');
7452
this.element.appendChild(messageElement);
7455
var span = messageElement.getElementsByTagName("span")[0];
7458
if (span.textContent != null) {
7459
span.textContent = this.options.dictFallbackMessage;
7460
} else if (span.innerText != null) {
7461
span.innerText = this.options.dictFallbackMessage;
7465
return this.element.appendChild(this.getFallbackForm());
7480
resize: function resize(file, width, height, resizeMethod) {
7484
srcWidth: file.width,
7485
srcHeight: file.height
7487
var srcRatio = file.width / file.height;
7489
if (width == null && height == null) {
7490
width = info.srcWidth;
7491
height = info.srcHeight;
7492
} else if (width == null) {
7493
width = height * srcRatio;
7494
} else if (height == null) {
7495
height = width / srcRatio;
7499
width = Math.min(width, info.srcWidth);
7500
height = Math.min(height, info.srcHeight);
7501
var trgRatio = width / height;
7503
if (info.srcWidth > width || info.srcHeight > height) {
7505
if (resizeMethod === "crop") {
7506
if (srcRatio > trgRatio) {
7507
info.srcHeight = file.height;
7508
info.srcWidth = info.srcHeight * trgRatio;
7510
info.srcWidth = file.width;
7511
info.srcHeight = info.srcWidth / trgRatio;
7513
} else if (resizeMethod === "contain") {
7515
if (srcRatio > trgRatio) {
7516
height = width / srcRatio;
7518
width = height * srcRatio;
7521
throw new Error("Unknown resizeMethod '".concat(resizeMethod, "'"));
7525
info.srcX = (file.width - info.srcWidth) / 2;
7526
info.srcY = (file.height - info.srcHeight) / 2;
7527
info.trgWidth = width;
7528
info.trgHeight = height;
7541
transformFile: function transformFile(file, done) {
7542
if ((this.options.resizeWidth || this.options.resizeHeight) && file.type.match(/image.*/)) {
7543
return this.resizeImage(file, this.options.resizeWidth, this.options.resizeHeight, this.options.resizeMethod, done);
7563
previewTemplate: preview_template,
7574
drop: function drop(e) {
7575
return this.element.classList.remove("dz-drag-hover");
7577
dragstart: function dragstart(e) {},
7578
dragend: function dragend(e) {
7579
return this.element.classList.remove("dz-drag-hover");
7581
dragenter: function dragenter(e) {
7582
return this.element.classList.add("dz-drag-hover");
7584
dragover: function dragover(e) {
7585
return this.element.classList.add("dz-drag-hover");
7587
dragleave: function dragleave(e) {
7588
return this.element.classList.remove("dz-drag-hover");
7590
paste: function paste(e) {},
7593
reset: function reset() {
7594
return this.element.classList.remove("dz-started");
7598
addedfile: function addedfile(file) {
7601
if (this.element === this.previewsContainer) {
7602
this.element.classList.add("dz-started");
7605
if (this.previewsContainer && !this.options.disablePreviews) {
7606
file.previewElement = Dropzone.createElement(this.options.previewTemplate.trim());
7607
file.previewTemplate = file.previewElement;
7609
this.previewsContainer.appendChild(file.previewElement);
7611
var _iterator2 = options_createForOfIteratorHelper(file.previewElement.querySelectorAll("[data-dz-name]"), true),
7615
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
7616
var node = _step2.value;
7617
node.textContent = file.name;
7625
var _iterator3 = options_createForOfIteratorHelper(file.previewElement.querySelectorAll("[data-dz-size]"), true),
7629
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
7630
node = _step3.value;
7631
node.innerHTML = this.filesize(file.size);
7639
if (this.options.addRemoveLinks) {
7640
file._removeLink = Dropzone.createElement("<a class=\"dz-remove\" href=\"javascript:undefined;\" data-dz-remove>".concat(this.options.dictRemoveFile, "</a>"));
7641
file.previewElement.appendChild(file._removeLink);
7644
var removeFileEvent = function removeFileEvent(e) {
7646
e.stopPropagation();
7648
if (file.status === Dropzone.UPLOADING) {
7649
return Dropzone.confirm(_this.options.dictCancelUploadConfirmation, function () {
7650
return _this.removeFile(file);
7653
if (_this.options.dictRemoveFileConfirmation) {
7654
return Dropzone.confirm(_this.options.dictRemoveFileConfirmation, function () {
7655
return _this.removeFile(file);
7658
return _this.removeFile(file);
7663
var _iterator4 = options_createForOfIteratorHelper(file.previewElement.querySelectorAll("[data-dz-remove]"), true),
7667
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
7668
var removeLink = _step4.value;
7669
removeLink.addEventListener("click", removeFileEvent);
7679
removedfile: function removedfile(file) {
7680
if (file.previewElement != null && file.previewElement.parentNode != null) {
7681
file.previewElement.parentNode.removeChild(file.previewElement);
7684
return this._updateMaxFilesReachedClass();
7688
thumbnail: function thumbnail(file, dataUrl) {
7689
if (file.previewElement) {
7690
file.previewElement.classList.remove("dz-file-preview");
7692
var _iterator5 = options_createForOfIteratorHelper(file.previewElement.querySelectorAll("[data-dz-thumbnail]"), true),
7696
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
7697
var thumbnailElement = _step5.value;
7698
thumbnailElement.alt = file.name;
7699
thumbnailElement.src = dataUrl;
7707
return setTimeout(function () {
7708
return file.previewElement.classList.add("dz-image-preview");
7714
error: function error(file, message) {
7715
if (file.previewElement) {
7716
file.previewElement.classList.add("dz-error");
7718
if (typeof message !== "string" && message.error) {
7719
message = message.error;
7722
var _iterator6 = options_createForOfIteratorHelper(file.previewElement.querySelectorAll("[data-dz-errormessage]"), true),
7726
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
7727
var node = _step6.value;
7728
node.textContent = message;
7737
errormultiple: function errormultiple() {},
7741
processing: function processing(file) {
7742
if (file.previewElement) {
7743
file.previewElement.classList.add("dz-processing");
7745
if (file._removeLink) {
7746
return file._removeLink.innerHTML = this.options.dictCancelUpload;
7750
processingmultiple: function processingmultiple() {},
7754
uploadprogress: function uploadprogress(file, progress, bytesSent) {
7755
if (file.previewElement) {
7756
var _iterator7 = options_createForOfIteratorHelper(file.previewElement.querySelectorAll("[data-dz-uploadprogress]"), true),
7760
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
7761
var node = _step7.value;
7762
node.nodeName === "PROGRESS" ? node.value = progress : node.style.width = "".concat(progress, "%");
7773
totaluploadprogress: function totaluploadprogress() {},
7777
sending: function sending() {},
7778
sendingmultiple: function sendingmultiple() {},
7781
success: function success(file) {
7782
if (file.previewElement) {
7783
return file.previewElement.classList.add("dz-success");
7786
successmultiple: function successmultiple() {},
7788
canceled: function canceled(file) {
7789
return this.emit("error", file, this.options.dictUploadCanceled);
7791
canceledmultiple: function canceledmultiple() {},
7794
complete: function complete(file) {
7795
if (file._removeLink) {
7796
file._removeLink.innerHTML = this.options.dictRemoveFile;
7799
if (file.previewElement) {
7800
return file.previewElement.classList.add("dz-complete");
7803
completemultiple: function completemultiple() {},
7804
maxfilesexceeded: function maxfilesexceeded() {},
7805
maxfilesreached: function maxfilesreached() {},
7806
queuecomplete: function queuecomplete() {},
7807
addedfiles: function addedfiles() {}
7809
var src_options = (defaultOptions);
7811
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
7859
function dropzone_createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = dropzone_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
7861
function dropzone_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return dropzone_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return dropzone_arrayLikeToArray(o, minLen); }
7863
function dropzone_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
7865
function dropzone_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7867
function dropzone_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
7869
function dropzone_createClass(Constructor, protoProps, staticProps) { if (protoProps) dropzone_defineProperties(Constructor.prototype, protoProps); if (staticProps) dropzone_defineProperties(Constructor, staticProps); return Constructor; }
7871
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
7873
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7875
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7877
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
7879
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
7881
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
7883
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7888
var Dropzone = function (_Emitter) {
7889
_inherits(Dropzone, _Emitter);
7891
var _super = _createSuper(Dropzone);
7893
function Dropzone(el, options) {
7896
dropzone_classCallCheck(this, Dropzone);
7898
_this = _super.call(this);
7902
_this.version = Dropzone.version;
7903
_this.clickableElements = [];
7904
_this.listeners = [];
7907
if (typeof _this.element === "string") {
7908
_this.element = document.querySelector(_this.element);
7912
if (!_this.element || _this.element.nodeType == null) {
7913
throw new Error("Invalid dropzone element.");
7916
if (_this.element.dropzone) {
7917
throw new Error("Dropzone already attached.");
7921
Dropzone.instances.push(_assertThisInitialized(_this));
7923
_this.element.dropzone = _assertThisInitialized(_this);
7924
var elementOptions = (left = Dropzone.optionsForElement(_this.element)) != null ? left : {};
7925
_this.options = Dropzone.extend({}, src_options, elementOptions, options != null ? options : {});
7926
_this.options.previewTemplate = _this.options.previewTemplate.replace(/\n*/g, "");
7928
if (_this.options.forceFallback || !Dropzone.isBrowserSupported()) {
7929
return _possibleConstructorReturn(_this, _this.options.fallback.call(_assertThisInitialized(_this)));
7933
if (_this.options.url == null) {
7934
_this.options.url = _this.element.getAttribute("action");
7937
if (!_this.options.url) {
7938
throw new Error("No URL provided.");
7941
if (_this.options.acceptedFiles && _this.options.acceptedMimeTypes) {
7942
throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");
7945
if (_this.options.uploadMultiple && _this.options.chunking) {
7946
throw new Error("You cannot set both: uploadMultiple and chunking.");
7950
if (_this.options.acceptedMimeTypes) {
7951
_this.options.acceptedFiles = _this.options.acceptedMimeTypes;
7952
delete _this.options.acceptedMimeTypes;
7956
if (_this.options.renameFilename != null) {
7957
_this.options.renameFile = function (file) {
7958
return _this.options.renameFilename.call(_assertThisInitialized(_this), file.name, file);
7962
if (typeof _this.options.method === "string") {
7963
_this.options.method = _this.options.method.toUpperCase();
7966
if ((fallback = _this.getExistingFallback()) && fallback.parentNode) {
7968
fallback.parentNode.removeChild(fallback);
7972
if (_this.options.previewsContainer !== false) {
7973
if (_this.options.previewsContainer) {
7974
_this.previewsContainer = Dropzone.getElement(_this.options.previewsContainer, "previewsContainer");
7976
_this.previewsContainer = _this.element;
7980
if (_this.options.clickable) {
7981
if (_this.options.clickable === true) {
7982
_this.clickableElements = [_this.element];
7984
_this.clickableElements = Dropzone.getElements(_this.options.clickable, "clickable");
7994
dropzone_createClass(Dropzone, [{
7995
key: "getAcceptedFiles",
7996
value: function getAcceptedFiles() {
7997
return this.files.filter(function (file) {
7998
return file.accepted;
7999
}).map(function (file) {
8006
key: "getRejectedFiles",
8007
value: function getRejectedFiles() {
8008
return this.files.filter(function (file) {
8009
return !file.accepted;
8010
}).map(function (file) {
8015
key: "getFilesWithStatus",
8016
value: function getFilesWithStatus(status) {
8017
return this.files.filter(function (file) {
8018
return file.status === status;
8019
}).map(function (file) {
8025
key: "getQueuedFiles",
8026
value: function getQueuedFiles() {
8027
return this.getFilesWithStatus(Dropzone.QUEUED);
8030
key: "getUploadingFiles",
8031
value: function getUploadingFiles() {
8032
return this.getFilesWithStatus(Dropzone.UPLOADING);
8035
key: "getAddedFiles",
8036
value: function getAddedFiles() {
8037
return this.getFilesWithStatus(Dropzone.ADDED);
8041
key: "getActiveFiles",
8042
value: function getActiveFiles() {
8043
return this.files.filter(function (file) {
8044
return file.status === Dropzone.UPLOADING || file.status === Dropzone.QUEUED;
8045
}).map(function (file) {
8053
value: function init() {
8057
if (this.element.tagName === "form") {
8058
this.element.setAttribute("enctype", "multipart/form-data");
8061
if (this.element.classList.contains("dropzone") && !this.element.querySelector(".dz-message")) {
8062
this.element.appendChild(Dropzone.createElement("<div class=\"dz-default dz-message\"><button class=\"dz-button\" type=\"button\">".concat(this.options.dictDefaultMessage, "</button></div>")));
8065
if (this.clickableElements.length) {
8066
var setupHiddenFileInput = function setupHiddenFileInput() {
8067
if (_this2.hiddenFileInput) {
8068
_this2.hiddenFileInput.parentNode.removeChild(_this2.hiddenFileInput);
8071
_this2.hiddenFileInput = document.createElement("input");
8073
_this2.hiddenFileInput.setAttribute("type", "file");
8075
if (_this2.options.maxFiles === null || _this2.options.maxFiles > 1) {
8076
_this2.hiddenFileInput.setAttribute("multiple", "multiple");
8079
_this2.hiddenFileInput.className = "dz-hidden-input";
8081
if (_this2.options.acceptedFiles !== null) {
8082
_this2.hiddenFileInput.setAttribute("accept", _this2.options.acceptedFiles);
8085
if (_this2.options.capture !== null) {
8086
_this2.hiddenFileInput.setAttribute("capture", _this2.options.capture);
8090
_this2.hiddenFileInput.setAttribute("tabindex", "-1");
8094
_this2.hiddenFileInput.style.visibility = "hidden";
8095
_this2.hiddenFileInput.style.position = "absolute";
8096
_this2.hiddenFileInput.style.top = "0";
8097
_this2.hiddenFileInput.style.left = "0";
8098
_this2.hiddenFileInput.style.height = "0";
8099
_this2.hiddenFileInput.style.width = "0";
8100
Dropzone.getElement(_this2.options.hiddenInputContainer, "hiddenInputContainer").appendChild(_this2.hiddenFileInput);
8102
_this2.hiddenFileInput.addEventListener("change", function () {
8103
var files = _this2.hiddenFileInput.files;
8106
var _iterator = dropzone_createForOfIteratorHelper(files, true),
8110
for (_iterator.s(); !(_step = _iterator.n()).done;) {
8111
var file = _step.value;
8113
_this2.addFile(file);
8122
_this2.emit("addedfiles", files);
8124
setupHiddenFileInput();
8128
setupHiddenFileInput();
8131
this.URL = window.URL !== null ? window.URL : window.webkitURL;
8135
var _iterator2 = dropzone_createForOfIteratorHelper(this.events, true),
8139
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
8140
var eventName = _step2.value;
8141
this.on(eventName, this.options[eventName]);
8149
this.on("uploadprogress", function () {
8150
return _this2.updateTotalUploadProgress();
8152
this.on("removedfile", function () {
8153
return _this2.updateTotalUploadProgress();
8155
this.on("canceled", function (file) {
8156
return _this2.emit("complete", file);
8159
this.on("complete", function (file) {
8160
if (_this2.getAddedFiles().length === 0 && _this2.getUploadingFiles().length === 0 && _this2.getQueuedFiles().length === 0) {
8162
return setTimeout(function () {
8163
return _this2.emit("queuecomplete");
8168
var containsFiles = function containsFiles(e) {
8169
if (e.dataTransfer.types) {
8173
for (var i = 0; i < e.dataTransfer.types.length; i++) {
8174
if (e.dataTransfer.types[i] === "Files") return true;
8181
var noPropagation = function noPropagation(e) {
8185
if (!containsFiles(e)) return;
8186
e.stopPropagation();
8188
if (e.preventDefault) {
8189
return e.preventDefault();
8191
return e.returnValue = false;
8197
element: this.element,
8199
dragstart: function dragstart(e) {
8200
return _this2.emit("dragstart", e);
8202
dragenter: function dragenter(e) {
8204
return _this2.emit("dragenter", e);
8206
dragover: function dragover(e) {
8213
efct = e.dataTransfer.effectAllowed;
8216
e.dataTransfer.dropEffect = "move" === efct || "linkMove" === efct ? "move" : "copy";
8218
return _this2.emit("dragover", e);
8220
dragleave: function dragleave(e) {
8221
return _this2.emit("dragleave", e);
8223
drop: function drop(e) {
8225
return _this2.drop(e);
8227
dragend: function dragend(e) {
8228
return _this2.emit("dragend", e);
8236
this.clickableElements.forEach(function (clickableElement) {
8237
return _this2.listeners.push({
8238
element: clickableElement,
8240
click: function click(evt) {
8242
if (clickableElement !== _this2.element || evt.target === _this2.element || Dropzone.elementInside(evt.target, _this2.element.querySelector(".dz-message"))) {
8243
_this2.hiddenFileInput.click();
8253
return this.options.init.call(this);
8258
value: function destroy() {
8260
this.removeAllFiles(true);
8262
if (this.hiddenFileInput != null ? this.hiddenFileInput.parentNode : undefined) {
8263
this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput);
8264
this.hiddenFileInput = null;
8267
delete this.element.dropzone;
8268
return Dropzone.instances.splice(Dropzone.instances.indexOf(this), 1);
8271
key: "updateTotalUploadProgress",
8272
value: function updateTotalUploadProgress() {
8273
var totalUploadProgress;
8274
var totalBytesSent = 0;
8276
var activeFiles = this.getActiveFiles();
8278
if (activeFiles.length) {
8279
var _iterator3 = dropzone_createForOfIteratorHelper(this.getActiveFiles(), true),
8283
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
8284
var file = _step3.value;
8285
totalBytesSent += file.upload.bytesSent;
8286
totalBytes += file.upload.total;
8294
totalUploadProgress = 100 * totalBytesSent / totalBytes;
8296
totalUploadProgress = 100;
8299
return this.emit("totaluploadprogress", totalUploadProgress, totalBytes, totalBytesSent);
8304
key: "_getParamName",
8305
value: function _getParamName(n) {
8306
if (typeof this.options.paramName === "function") {
8307
return this.options.paramName(n);
8309
return "".concat(this.options.paramName).concat(this.options.uploadMultiple ? "[".concat(n, "]") : "");
8316
value: function _renameFile(file) {
8317
if (typeof this.options.renameFile !== "function") {
8321
return this.options.renameFile(file);
8328
key: "getFallbackForm",
8329
value: function getFallbackForm() {
8330
var existingFallback, form;
8332
if (existingFallback = this.getExistingFallback()) {
8333
return existingFallback;
8336
var fieldsString = '<div class="dz-fallback">';
8338
if (this.options.dictFallbackText) {
8339
fieldsString += "<p>".concat(this.options.dictFallbackText, "</p>");
8342
fieldsString += "<input type=\"file\" name=\"".concat(this._getParamName(0), "\" ").concat(this.options.uploadMultiple ? 'multiple="multiple"' : undefined, " /><input type=\"submit\" value=\"Upload!\"></div>");
8343
var fields = Dropzone.createElement(fieldsString);
8345
if (this.element.tagName !== "FORM") {
8346
form = Dropzone.createElement("<form action=\"".concat(this.options.url, "\" enctype=\"multipart/form-data\" method=\"").concat(this.options.method, "\"></form>"));
8347
form.appendChild(fields);
8350
this.element.setAttribute("enctype", "multipart/form-data");
8351
this.element.setAttribute("method", this.options.method);
8354
return form != null ? form : fields;
8360
key: "getExistingFallback",
8361
value: function getExistingFallback() {
8362
var getFallback = function getFallback(elements) {
8363
var _iterator4 = dropzone_createForOfIteratorHelper(elements, true),
8367
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
8368
var el = _step4.value;
8370
if (/(^| )fallback($| )/.test(el.className)) {
8381
for (var _i = 0, _arr = ["div", "form"]; _i < _arr.length; _i++) {
8382
var tagName = _arr[_i];
8385
if (fallback = getFallback(this.element.getElementsByTagName(tagName))) {
8392
key: "setupEventListeners",
8393
value: function setupEventListeners() {
8394
return this.listeners.map(function (elementListeners) {
8395
return function () {
8398
for (var event in elementListeners.events) {
8399
var listener = elementListeners.events[event];
8400
result.push(elementListeners.element.addEventListener(event, listener, false));
8409
key: "removeEventListeners",
8410
value: function removeEventListeners() {
8411
return this.listeners.map(function (elementListeners) {
8412
return function () {
8415
for (var event in elementListeners.events) {
8416
var listener = elementListeners.events[event];
8417
result.push(elementListeners.element.removeEventListener(event, listener, false));
8427
value: function disable() {
8430
this.clickableElements.forEach(function (element) {
8431
return element.classList.remove("dz-clickable");
8433
this.removeEventListeners();
8434
this.disabled = true;
8435
return this.files.map(function (file) {
8436
return _this3.cancelUpload(file);
8441
value: function enable() {
8442
delete this.disabled;
8443
this.clickableElements.forEach(function (element) {
8444
return element.classList.add("dz-clickable");
8446
return this.setupEventListeners();
8451
value: function filesize(size) {
8452
var selectedSize = 0;
8453
var selectedUnit = "b";
8456
var units = ["tb", "gb", "mb", "kb", "b"];
8458
for (var i = 0; i < units.length; i++) {
8459
var unit = units[i];
8460
var cutoff = Math.pow(this.options.filesizeBase, 4 - i) / 10;
8462
if (size >= cutoff) {
8463
selectedSize = size / Math.pow(this.options.filesizeBase, 4 - i);
8464
selectedUnit = unit;
8469
selectedSize = Math.round(10 * selectedSize) / 10;
8472
return "<strong>".concat(selectedSize, "</strong> ").concat(this.options.dictFileSizeUnits[selectedUnit]);
8476
key: "_updateMaxFilesReachedClass",
8477
value: function _updateMaxFilesReachedClass() {
8478
if (this.options.maxFiles != null && this.getAcceptedFiles().length >= this.options.maxFiles) {
8479
if (this.getAcceptedFiles().length === this.options.maxFiles) {
8480
this.emit("maxfilesreached", this.files);
8483
return this.element.classList.add("dz-max-files-reached");
8485
return this.element.classList.remove("dz-max-files-reached");
8490
value: function drop(e) {
8491
if (!e.dataTransfer) {
8495
this.emit("drop", e);
8500
for (var i = 0; i < e.dataTransfer.files.length; i++) {
8501
files[i] = e.dataTransfer.files[i];
8506
var items = e.dataTransfer.items;
8508
if (items && items.length && items[0].webkitGetAsEntry != null) {
8510
this._addFilesFromItems(items);
8512
this.handleFiles(files);
8516
this.emit("addedfiles", files);
8520
value: function paste(e) {
8521
if (__guard__(e != null ? e.clipboardData : undefined, function (x) {
8527
this.emit("paste", e);
8528
var items = e.clipboardData.items;
8531
return this._addFilesFromItems(items);
8536
value: function handleFiles(files) {
8537
var _iterator5 = dropzone_createForOfIteratorHelper(files, true),
8541
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
8542
var file = _step5.value;
8554
key: "_addFilesFromItems",
8555
value: function _addFilesFromItems(items) {
8558
return function () {
8561
var _iterator6 = dropzone_createForOfIteratorHelper(items, true),
8565
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
8566
var item = _step6.value;
8569
if (item.webkitGetAsEntry != null && (entry = item.webkitGetAsEntry())) {
8571
result.push(_this4.addFile(item.getAsFile()));
8572
} else if (entry.isDirectory) {
8574
result.push(_this4._addFilesFromDirectory(entry, entry.name));
8576
result.push(undefined);
8578
} else if (item.getAsFile != null) {
8579
if (item.kind == null || item.kind === "file") {
8580
result.push(_this4.addFile(item.getAsFile()));
8582
result.push(undefined);
8585
result.push(undefined);
8599
key: "_addFilesFromDirectory",
8600
value: function _addFilesFromDirectory(directory, path) {
8603
var dirReader = directory.createReader();
8605
var errorHandler = function errorHandler(error) {
8606
return __guardMethod__(console, "log", function (o) {
8607
return o.log(error);
8611
var readEntries = function readEntries() {
8612
return dirReader.readEntries(function (entries) {
8613
if (entries.length > 0) {
8614
var _iterator7 = dropzone_createForOfIteratorHelper(entries, true),
8618
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
8619
var entry = _step7.value;
8622
entry.file(function (file) {
8623
if (_this5.options.ignoreHiddenFiles && file.name.substring(0, 1) === ".") {
8627
file.fullPath = "".concat(path, "/").concat(file.name);
8628
return _this5.addFile(file);
8630
} else if (entry.isDirectory) {
8631
_this5._addFilesFromDirectory(entry, "".concat(path, "/").concat(entry.name));
8650
return readEntries();
8660
value: function accept(file, done) {
8661
if (this.options.maxFilesize && file.size > this.options.maxFilesize * 1024 * 1024) {
8662
done(this.options.dictFileTooBig.replace("{{filesize}}", Math.round(file.size / 1024 / 10.24) / 100).replace("{{maxFilesize}}", this.options.maxFilesize));
8663
} else if (!Dropzone.isValidFile(file, this.options.acceptedFiles)) {
8664
done(this.options.dictInvalidFileType);
8665
} else if (this.options.maxFiles != null && this.getAcceptedFiles().length >= this.options.maxFiles) {
8666
done(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}", this.options.maxFiles));
8667
this.emit("maxfilesexceeded", file);
8669
this.options.accept.call(this, file, done);
8674
value: function addFile(file) {
8678
uuid: Dropzone.uuidv4(),
8684
filename: this._renameFile(file)
8689
this.files.push(file);
8690
file.status = Dropzone.ADDED;
8691
this.emit("addedfile", file);
8693
this._enqueueThumbnail(file);
8695
this.accept(file, function (error) {
8697
file.accepted = false;
8699
_this6._errorProcessing([file], error);
8702
file.accepted = true;
8704
if (_this6.options.autoQueue) {
8705
_this6.enqueueFile(file);
8710
_this6._updateMaxFilesReachedClass();
8715
key: "enqueueFiles",
8716
value: function enqueueFiles(files) {
8717
var _iterator8 = dropzone_createForOfIteratorHelper(files, true),
8721
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
8722
var file = _step8.value;
8723
this.enqueueFile(file);
8735
value: function enqueueFile(file) {
8738
if (file.status === Dropzone.ADDED && file.accepted === true) {
8739
file.status = Dropzone.QUEUED;
8741
if (this.options.autoProcessQueue) {
8742
return setTimeout(function () {
8743
return _this7.processQueue();
8747
throw new Error("This file can't be queued because it has already been processed or was rejected.");
8751
key: "_enqueueThumbnail",
8752
value: function _enqueueThumbnail(file) {
8755
if (this.options.createImageThumbnails && file.type.match(/image.*/) && file.size <= this.options.maxThumbnailFilesize * 1024 * 1024) {
8756
this._thumbnailQueue.push(file);
8758
return setTimeout(function () {
8759
return _this8._processThumbnailQueue();
8764
key: "_processThumbnailQueue",
8765
value: function _processThumbnailQueue() {
8768
if (this._processingThumbnail || this._thumbnailQueue.length === 0) {
8772
this._processingThumbnail = true;
8774
var file = this._thumbnailQueue.shift();
8776
return this.createThumbnail(file, this.options.thumbnailWidth, this.options.thumbnailHeight, this.options.thumbnailMethod, true, function (dataUrl) {
8777
_this9.emit("thumbnail", file, dataUrl);
8779
_this9._processingThumbnail = false;
8780
return _this9._processThumbnailQueue();
8786
value: function removeFile(file) {
8787
if (file.status === Dropzone.UPLOADING) {
8788
this.cancelUpload(file);
8791
this.files = without(this.files, file);
8792
this.emit("removedfile", file);
8794
if (this.files.length === 0) {
8795
return this.emit("reset");
8800
key: "removeAllFiles",
8801
value: function removeAllFiles(cancelIfNecessary) {
8803
if (cancelIfNecessary == null) {
8804
cancelIfNecessary = false;
8807
var _iterator9 = dropzone_createForOfIteratorHelper(this.files.slice(), true),
8811
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
8812
var file = _step9.value;
8814
if (file.status !== Dropzone.UPLOADING || cancelIfNecessary) {
8815
this.removeFile(file);
8831
value: function resizeImage(file, width, height, resizeMethod, callback) {
8834
return this.createThumbnail(file, width, height, resizeMethod, true, function (dataUrl, canvas) {
8835
if (canvas == null) {
8837
return callback(file);
8839
var resizeMimeType = _this10.options.resizeMimeType;
8841
if (resizeMimeType == null) {
8842
resizeMimeType = file.type;
8845
var resizedDataURL = canvas.toDataURL(resizeMimeType, _this10.options.resizeQuality);
8847
if (resizeMimeType === "image/jpeg" || resizeMimeType === "image/jpg") {
8849
resizedDataURL = ExifRestore.restore(file.dataURL, resizedDataURL);
8852
return callback(Dropzone.dataURItoBlob(resizedDataURL));
8857
key: "createThumbnail",
8858
value: function createThumbnail(file, width, height, resizeMethod, fixOrientation, callback) {
8861
var fileReader = new FileReader();
8863
fileReader.onload = function () {
8864
file.dataURL = fileReader.result;
8866
if (file.type === "image/svg+xml") {
8867
if (callback != null) {
8868
callback(fileReader.result);
8874
_this11.createThumbnailFromUrl(file, width, height, resizeMethod, fixOrientation, callback);
8877
fileReader.readAsDataURL(file);
8886
key: "displayExistingFile",
8887
value: function displayExistingFile(mockFile, imageUrl, callback, crossOrigin) {
8890
var resizeThumbnail = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
8891
this.emit("addedfile", mockFile);
8892
this.emit("complete", mockFile);
8894
if (!resizeThumbnail) {
8895
this.emit("thumbnail", mockFile, imageUrl);
8896
if (callback) callback();
8898
var onDone = function onDone(thumbnail) {
8899
_this12.emit("thumbnail", mockFile, thumbnail);
8901
if (callback) callback();
8904
mockFile.dataURL = imageUrl;
8905
this.createThumbnailFromUrl(mockFile, this.options.thumbnailWidth, this.options.thumbnailHeight, this.options.thumbnailMethod, this.options.fixOrientation, onDone, crossOrigin);
8909
key: "createThumbnailFromUrl",
8910
value: function createThumbnailFromUrl(file, width, height, resizeMethod, fixOrientation, callback, crossOrigin) {
8915
var img = document.createElement("img");
8918
img.crossOrigin = crossOrigin;
8922
fixOrientation = getComputedStyle(document.body)["imageOrientation"] == "from-image" ? false : fixOrientation;
8924
img.onload = function () {
8925
var loadExif = function loadExif(callback) {
8929
if (typeof EXIF !== "undefined" && EXIF !== null && fixOrientation) {
8930
loadExif = function loadExif(callback) {
8931
return EXIF.getData(img, function () {
8932
return callback(EXIF.getTag(this, "Orientation"));
8937
return loadExif(function (orientation) {
8938
file.width = img.width;
8939
file.height = img.height;
8941
var resizeInfo = _this13.options.resize.call(_this13, file, width, height, resizeMethod);
8943
var canvas = document.createElement("canvas");
8944
var ctx = canvas.getContext("2d");
8945
canvas.width = resizeInfo.trgWidth;
8946
canvas.height = resizeInfo.trgHeight;
8948
if (orientation > 4) {
8949
canvas.width = resizeInfo.trgHeight;
8950
canvas.height = resizeInfo.trgWidth;
8953
switch (orientation) {
8956
ctx.translate(canvas.width, 0);
8962
ctx.translate(canvas.width, canvas.height);
8963
ctx.rotate(Math.PI);
8968
ctx.translate(0, canvas.height);
8974
ctx.rotate(0.5 * Math.PI);
8980
ctx.rotate(0.5 * Math.PI);
8981
ctx.translate(0, -canvas.width);
8986
ctx.rotate(0.5 * Math.PI);
8987
ctx.translate(canvas.height, -canvas.width);
8993
ctx.rotate(-0.5 * Math.PI);
8994
ctx.translate(-canvas.height, 0);
8999
drawImageIOSFix(ctx, img, resizeInfo.srcX != null ? resizeInfo.srcX : 0, resizeInfo.srcY != null ? resizeInfo.srcY : 0, resizeInfo.srcWidth, resizeInfo.srcHeight, resizeInfo.trgX != null ? resizeInfo.trgX : 0, resizeInfo.trgY != null ? resizeInfo.trgY : 0, resizeInfo.trgWidth, resizeInfo.trgHeight);
9000
var thumbnail = canvas.toDataURL("image/png");
9002
if (callback != null) {
9003
return callback(thumbnail, canvas);
9008
if (callback != null) {
9009
img.onerror = callback;
9012
return img.src = file.dataURL;
9016
key: "processQueue",
9017
value: function processQueue() {
9018
var parallelUploads = this.options.parallelUploads;
9019
var processingLength = this.getUploadingFiles().length;
9020
var i = processingLength;
9022
if (processingLength >= parallelUploads) {
9026
var queuedFiles = this.getQueuedFiles();
9028
if (!(queuedFiles.length > 0)) {
9032
if (this.options.uploadMultiple) {
9034
return this.processFiles(queuedFiles.slice(0, parallelUploads - processingLength));
9036
while (i < parallelUploads) {
9037
if (!queuedFiles.length) {
9042
this.processFile(queuedFiles.shift());
9050
value: function processFile(file) {
9051
return this.processFiles([file]);
9055
key: "processFiles",
9056
value: function processFiles(files) {
9057
var _iterator10 = dropzone_createForOfIteratorHelper(files, true),
9061
for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
9062
var file = _step10.value;
9063
file.processing = true;
9065
file.status = Dropzone.UPLOADING;
9066
this.emit("processing", file);
9074
if (this.options.uploadMultiple) {
9075
this.emit("processingmultiple", files);
9078
return this.uploadFiles(files);
9081
key: "_getFilesWithXhr",
9082
value: function _getFilesWithXhr(xhr) {
9084
return files = this.files.filter(function (file) {
9085
return file.xhr === xhr;
9086
}).map(function (file) {
9095
key: "cancelUpload",
9096
value: function cancelUpload(file) {
9097
if (file.status === Dropzone.UPLOADING) {
9098
var groupedFiles = this._getFilesWithXhr(file.xhr);
9100
var _iterator11 = dropzone_createForOfIteratorHelper(groupedFiles, true),
9104
for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
9105
var groupedFile = _step11.value;
9106
groupedFile.status = Dropzone.CANCELED;
9114
if (typeof file.xhr !== "undefined") {
9118
var _iterator12 = dropzone_createForOfIteratorHelper(groupedFiles, true),
9122
for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
9123
var _groupedFile = _step12.value;
9124
this.emit("canceled", _groupedFile);
9132
if (this.options.uploadMultiple) {
9133
this.emit("canceledmultiple", groupedFiles);
9135
} else if (file.status === Dropzone.ADDED || file.status === Dropzone.QUEUED) {
9136
file.status = Dropzone.CANCELED;
9137
this.emit("canceled", file);
9139
if (this.options.uploadMultiple) {
9140
this.emit("canceledmultiple", [file]);
9144
if (this.options.autoProcessQueue) {
9145
return this.processQueue();
9149
key: "resolveOption",
9150
value: function resolveOption(option) {
9151
if (typeof option === "function") {
9152
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
9153
args[_key - 1] = arguments[_key];
9156
return option.apply(this, args);
9163
value: function uploadFile(file) {
9164
return this.uploadFiles([file]);
9168
value: function uploadFiles(files) {
9171
this._transformFiles(files, function (transformedFiles) {
9172
if (_this14.options.chunking) {
9175
var transformedFile = transformedFiles[0];
9176
files[0].upload.chunked = _this14.options.chunking && (_this14.options.forceChunking || transformedFile.size > _this14.options.chunkSize);
9177
files[0].upload.totalChunkCount = Math.ceil(transformedFile.size / _this14.options.chunkSize);
9180
if (files[0].upload.chunked) {
9184
var file = files[0];
9185
var _transformedFile = transformedFiles[0];
9186
var startedChunkCount = 0;
9187
file.upload.chunks = [];
9189
var handleNextChunk = function handleNextChunk() {
9192
while (file.upload.chunks[chunkIndex] !== undefined) {
9197
if (chunkIndex >= file.upload.totalChunkCount) return;
9198
startedChunkCount++;
9199
var start = chunkIndex * _this14.options.chunkSize;
9200
var end = Math.min(start + _this14.options.chunkSize, _transformedFile.size);
9202
name: _this14._getParamName(0),
9203
data: _transformedFile.webkitSlice ? _transformedFile.webkitSlice(start, end) : _transformedFile.slice(start, end),
9204
filename: file.upload.filename,
9205
chunkIndex: chunkIndex
9207
file.upload.chunks[chunkIndex] = {
9210
dataBlock: dataBlock,
9212
status: Dropzone.UPLOADING,
9218
_this14._uploadData(files, [dataBlock]);
9221
file.upload.finishedChunkUpload = function (chunk, response) {
9222
var allFinished = true;
9223
chunk.status = Dropzone.SUCCESS;
9225
chunk.dataBlock = null;
9229
for (var i = 0; i < file.upload.totalChunkCount; i++) {
9230
if (file.upload.chunks[i] === undefined) {
9231
return handleNextChunk();
9234
if (file.upload.chunks[i].status !== Dropzone.SUCCESS) {
9235
allFinished = false;
9240
_this14.options.chunksUploaded(file, function () {
9241
_this14._finished(files, response, null);
9246
if (_this14.options.parallelChunkUploads) {
9247
for (var i = 0; i < file.upload.totalChunkCount; i++) {
9254
var dataBlocks = [];
9256
for (var _i2 = 0; _i2 < files.length; _i2++) {
9258
name: _this14._getParamName(_i2),
9259
data: transformedFiles[_i2],
9260
filename: files[_i2].upload.filename
9264
_this14._uploadData(files, dataBlocks);
9271
value: function _getChunk(file, xhr) {
9272
for (var i = 0; i < file.upload.totalChunkCount; i++) {
9273
if (file.upload.chunks[i] !== undefined && file.upload.chunks[i].xhr === xhr) {
9274
return file.upload.chunks[i];
9283
value: function _uploadData(files, dataBlocks) {
9286
var xhr = new XMLHttpRequest();
9288
var _iterator13 = dropzone_createForOfIteratorHelper(files, true),
9292
for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
9293
var file = _step13.value;
9302
if (files[0].upload.chunked) {
9304
files[0].upload.chunks[dataBlocks[0].chunkIndex].xhr = xhr;
9307
var method = this.resolveOption(this.options.method, files);
9308
var url = this.resolveOption(this.options.url, files);
9309
xhr.open(method, url, true);
9311
var timeout = this.resolveOption(this.options.timeout, files);
9312
if (timeout) xhr.timeout = this.resolveOption(this.options.timeout, files);
9314
xhr.withCredentials = !!this.options.withCredentials;
9316
xhr.onload = function (e) {
9317
_this15._finishedUploading(files, xhr, e);
9320
xhr.ontimeout = function () {
9321
_this15._handleUploadError(files, xhr, "Request timedout after ".concat(_this15.options.timeout / 1000, " seconds"));
9324
xhr.onerror = function () {
9325
_this15._handleUploadError(files, xhr);
9329
var progressObj = xhr.upload != null ? xhr.upload : xhr;
9331
progressObj.onprogress = function (e) {
9332
return _this15._updateFilesUploadProgress(files, xhr, e);
9336
Accept: "application/json",
9337
"Cache-Control": "no-cache",
9338
"X-Requested-With": "XMLHttpRequest"
9341
if (this.options.headers) {
9342
Dropzone.extend(headers, this.options.headers);
9345
for (var headerName in headers) {
9346
var headerValue = headers[headerName];
9349
xhr.setRequestHeader(headerName, headerValue);
9353
var formData = new FormData();
9355
if (this.options.params) {
9356
var additionalParams = this.options.params;
9358
if (typeof additionalParams === "function") {
9359
additionalParams = additionalParams.call(this, files, xhr, files[0].upload.chunked ? this._getChunk(files[0], xhr) : null);
9362
for (var key in additionalParams) {
9363
var value = additionalParams[key];
9365
if (Array.isArray(value)) {
9369
for (var i = 0; i < value.length; i++) {
9370
formData.append(key, value[i]);
9373
formData.append(key, value);
9379
var _iterator14 = dropzone_createForOfIteratorHelper(files, true),
9383
for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
9384
var _file = _step14.value;
9385
this.emit("sending", _file, xhr, formData);
9393
if (this.options.uploadMultiple) {
9394
this.emit("sendingmultiple", files, xhr, formData);
9397
this._addFormElementData(formData);
9401
for (var _i3 = 0; _i3 < dataBlocks.length; _i3++) {
9402
var dataBlock = dataBlocks[_i3];
9403
formData.append(dataBlock.name, dataBlock.data, dataBlock.filename);
9406
this.submitRequest(xhr, formData, files);
9410
key: "_transformFiles",
9411
value: function _transformFiles(files, done) {
9414
var transformedFiles = [];
9416
var doneCounter = 0;
9418
var _loop = function _loop(i) {
9419
_this16.options.transformFile.call(_this16, files[i], function (transformedFile) {
9420
transformedFiles[i] = transformedFile;
9422
if (++doneCounter === files.length) {
9423
done(transformedFiles);
9428
for (var i = 0; i < files.length; i++) {
9434
key: "_addFormElementData",
9435
value: function _addFormElementData(formData) {
9437
if (this.element.tagName === "FORM") {
9438
var _iterator15 = dropzone_createForOfIteratorHelper(this.element.querySelectorAll("input, textarea, select, button"), true),
9442
for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
9443
var input = _step15.value;
9444
var inputName = input.getAttribute("name");
9445
var inputType = input.getAttribute("type");
9446
if (inputType) inputType = inputType.toLowerCase();
9448
if (typeof inputName === "undefined" || inputName === null) continue;
9450
if (input.tagName === "SELECT" && input.hasAttribute("multiple")) {
9452
var _iterator16 = dropzone_createForOfIteratorHelper(input.options, true),
9456
for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
9457
var option = _step16.value;
9459
if (option.selected) {
9460
formData.append(inputName, option.value);
9468
} else if (!inputType || inputType !== "checkbox" && inputType !== "radio" || input.checked) {
9469
formData.append(inputName, input.value);
9482
key: "_updateFilesUploadProgress",
9483
value: function _updateFilesUploadProgress(files, xhr, e) {
9484
if (!files[0].upload.chunked) {
9486
var _iterator17 = dropzone_createForOfIteratorHelper(files, true),
9490
for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {
9491
var file = _step17.value;
9493
if (file.upload.total && file.upload.bytesSent && file.upload.bytesSent == file.upload.total) {
9501
file.upload.progress = 100 * e.loaded / e.total;
9502
file.upload.total = e.total;
9503
file.upload.bytesSent = e.loaded;
9506
file.upload.progress = 100;
9507
file.upload.bytesSent = file.upload.total;
9510
this.emit("uploadprogress", file, file.upload.progress, file.upload.bytesSent);
9521
var _file2 = files[0];
9524
var chunk = this._getChunk(_file2, xhr);
9527
chunk.progress = 100 * e.loaded / e.total;
9528
chunk.total = e.total;
9529
chunk.bytesSent = e.loaded;
9532
chunk.progress = 100;
9533
chunk.bytesSent = chunk.total;
9537
_file2.upload.progress = 0;
9538
_file2.upload.total = 0;
9539
_file2.upload.bytesSent = 0;
9541
for (var i = 0; i < _file2.upload.totalChunkCount; i++) {
9542
if (_file2.upload.chunks[i] && typeof _file2.upload.chunks[i].progress !== "undefined") {
9543
_file2.upload.progress += _file2.upload.chunks[i].progress;
9544
_file2.upload.total += _file2.upload.chunks[i].total;
9545
_file2.upload.bytesSent += _file2.upload.chunks[i].bytesSent;
9551
_file2.upload.progress = _file2.upload.progress / _file2.upload.totalChunkCount;
9552
this.emit("uploadprogress", _file2, _file2.upload.progress, _file2.upload.bytesSent);
9556
key: "_finishedUploading",
9557
value: function _finishedUploading(files, xhr, e) {
9560
if (files[0].status === Dropzone.CANCELED) {
9564
if (xhr.readyState !== 4) {
9568
if (xhr.responseType !== "arraybuffer" && xhr.responseType !== "blob") {
9569
response = xhr.responseText;
9571
if (xhr.getResponseHeader("content-type") && ~xhr.getResponseHeader("content-type").indexOf("application/json")) {
9573
response = JSON.parse(response);
9576
response = "Invalid JSON response from server.";
9581
this._updateFilesUploadProgress(files, xhr);
9583
if (!(200 <= xhr.status && xhr.status < 300)) {
9584
this._handleUploadError(files, xhr, response);
9586
if (files[0].upload.chunked) {
9587
files[0].upload.finishedChunkUpload(this._getChunk(files[0], xhr), response);
9589
this._finished(files, response, e);
9594
key: "_handleUploadError",
9595
value: function _handleUploadError(files, xhr, response) {
9596
if (files[0].status === Dropzone.CANCELED) {
9600
if (files[0].upload.chunked && this.options.retryChunks) {
9601
var chunk = this._getChunk(files[0], xhr);
9603
if (chunk.retries++ < this.options.retryChunksLimit) {
9604
this._uploadData(files, [chunk.dataBlock]);
9608
console.warn("Retried this chunk too often. Giving up.");
9612
this._errorProcessing(files, response || this.options.dictResponseError.replace("{{statusCode}}", xhr.status), xhr);
9615
key: "submitRequest",
9616
value: function submitRequest(xhr, formData, files) {
9617
if (xhr.readyState != 1) {
9618
console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");
9628
value: function _finished(files, responseText, e) {
9629
var _iterator18 = dropzone_createForOfIteratorHelper(files, true),
9633
for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
9634
var file = _step18.value;
9635
file.status = Dropzone.SUCCESS;
9636
this.emit("success", file, responseText, e);
9637
this.emit("complete", file);
9645
if (this.options.uploadMultiple) {
9646
this.emit("successmultiple", files, responseText, e);
9647
this.emit("completemultiple", files);
9650
if (this.options.autoProcessQueue) {
9651
return this.processQueue();
9657
key: "_errorProcessing",
9658
value: function _errorProcessing(files, message, xhr) {
9659
var _iterator19 = dropzone_createForOfIteratorHelper(files, true),
9663
for (_iterator19.s(); !(_step19 = _iterator19.n()).done;) {
9664
var file = _step19.value;
9665
file.status = Dropzone.ERROR;
9666
this.emit("error", file, message, xhr);
9667
this.emit("complete", file);
9675
if (this.options.uploadMultiple) {
9676
this.emit("errormultiple", files, message, xhr);
9677
this.emit("completemultiple", files);
9680
if (this.options.autoProcessQueue) {
9681
return this.processQueue();
9686
value: function initClass() {
9688
this.prototype.Emitter = Emitter;
9695
this.prototype.events = ["drop", "dragstart", "dragend", "dragenter", "dragover", "dragleave", "addedfile", "addedfiles", "removedfile", "thumbnail", "error", "errormultiple", "processing", "processingmultiple", "uploadprogress", "totaluploadprogress", "sending", "sendingmultiple", "success", "successmultiple", "canceled", "canceledmultiple", "complete", "completemultiple", "reset", "maxfilesexceeded", "maxfilesreached", "queuecomplete"];
9696
this.prototype._thumbnailQueue = [];
9697
this.prototype._processingThumbnail = false;
9702
value: function extend(target) {
9703
for (var _len2 = arguments.length, objects = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
9704
objects[_key2 - 1] = arguments[_key2];
9707
for (var _i4 = 0, _objects = objects; _i4 < _objects.length; _i4++) {
9708
var object = _objects[_i4];
9710
for (var key in object) {
9711
var val = object[key];
9720
value: function uuidv4() {
9721
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
9722
var r = Math.random() * 16 | 0,
9723
v = c === "x" ? r : r & 0x3 | 0x8;
9724
return v.toString(16);
9733
Dropzone.initClass();
9734
Dropzone.version = "5.9.3";
9749
Dropzone.options = {};
9751
Dropzone.optionsForElement = function (element) {
9753
if (element.getAttribute("id")) {
9754
return Dropzone.options[camelize(element.getAttribute("id"))];
9761
Dropzone.instances = [];
9763
Dropzone.forElement = function (element) {
9764
if (typeof element === "string") {
9765
element = document.querySelector(element);
9768
if ((element != null ? element.dropzone : undefined) == null) {
9769
throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");
9772
return element.dropzone;
9776
Dropzone.autoDiscover = true;
9778
Dropzone.discover = function () {
9781
if (document.querySelectorAll) {
9782
dropzones = document.querySelectorAll(".dropzone");
9786
var checkElements = function checkElements(elements) {
9787
return function () {
9790
var _iterator20 = dropzone_createForOfIteratorHelper(elements, true),
9794
for (_iterator20.s(); !(_step20 = _iterator20.n()).done;) {
9795
var el = _step20.value;
9797
if (/(^| )dropzone($| )/.test(el.className)) {
9798
result.push(dropzones.push(el));
9800
result.push(undefined);
9813
checkElements(document.getElementsByTagName("div"));
9814
checkElements(document.getElementsByTagName("form"));
9817
return function () {
9820
var _iterator21 = dropzone_createForOfIteratorHelper(dropzones, true),
9824
for (_iterator21.s(); !(_step21 = _iterator21.n()).done;) {
9825
var dropzone = _step21.value;
9828
if (Dropzone.optionsForElement(dropzone) !== false) {
9829
result.push(new Dropzone(dropzone));
9831
result.push(undefined);
9854
Dropzone.blockedBrowsers = [
9855
/opera.*(Macintosh|Windows Phone).*version\/12/i];
9857
Dropzone.isBrowserSupported = function () {
9858
var capableBrowser = true;
9860
if (window.File && window.FileReader && window.FileList && window.Blob && window.FormData && document.querySelector) {
9861
if (!("classList" in document.createElement("a"))) {
9862
capableBrowser = false;
9864
if (Dropzone.blacklistedBrowsers !== undefined) {
9867
Dropzone.blockedBrowsers = Dropzone.blacklistedBrowsers;
9871
var _iterator22 = dropzone_createForOfIteratorHelper(Dropzone.blockedBrowsers, true),
9875
for (_iterator22.s(); !(_step22 = _iterator22.n()).done;) {
9876
var regex = _step22.value;
9878
if (regex.test(navigator.userAgent)) {
9879
capableBrowser = false;
9890
capableBrowser = false;
9893
return capableBrowser;
9896
Dropzone.dataURItoBlob = function (dataURI) {
9899
var byteString = atob(dataURI.split(",")[1]);
9901
var mimeString = dataURI.split(",")[0].split(":")[1].split(";")[0];
9903
var ab = new ArrayBuffer(byteString.length);
9904
var ia = new Uint8Array(ab);
9906
for (var i = 0, end = byteString.length, asc = 0 <= end; asc ? i <= end : i >= end; asc ? i++ : i--) {
9907
ia[i] = byteString.charCodeAt(i);
9911
return new Blob([ab], {
9917
var without = function without(list, rejectedItem) {
9918
return list.filter(function (item) {
9919
return item !== rejectedItem;
9920
}).map(function (item) {
9926
var camelize = function camelize(str) {
9927
return str.replace(/[\-_](\w)/g, function (match) {
9928
return match.charAt(1).toUpperCase();
9933
Dropzone.createElement = function (string) {
9934
var div = document.createElement("div");
9935
div.innerHTML = string;
9936
return div.childNodes[0];
9940
Dropzone.elementInside = function (element, container) {
9941
if (element === container) {
9946
while (element = element.parentNode) {
9947
if (element === container) {
9955
Dropzone.getElement = function (el, name) {
9958
if (typeof el === "string") {
9959
element = document.querySelector(el);
9960
} else if (el.nodeType != null) {
9964
if (element == null) {
9965
throw new Error("Invalid `".concat(name, "` option provided. Please provide a CSS selector or a plain HTML element."));
9971
Dropzone.getElements = function (els, name) {
9974
if (els instanceof Array) {
9978
var _iterator23 = dropzone_createForOfIteratorHelper(els, true),
9982
for (_iterator23.s(); !(_step23 = _iterator23.n()).done;) {
9984
elements.push(this.getElement(el, name));
9994
} else if (typeof els === "string") {
9997
var _iterator24 = dropzone_createForOfIteratorHelper(document.querySelectorAll(els), true),
10001
for (_iterator24.s(); !(_step24 = _iterator24.n()).done;) {
10002
el = _step24.value;
10006
_iterator24.e(err);
10010
} else if (els.nodeType != null) {
10014
if (elements == null || !elements.length) {
10015
throw new Error("Invalid `".concat(name, "` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));
10025
Dropzone.confirm = function (question, accepted, rejected) {
10026
if (window.confirm(question)) {
10028
} else if (rejected != null) {
10036
Dropzone.isValidFile = function (file, acceptedFiles) {
10037
if (!acceptedFiles) {
10042
acceptedFiles = acceptedFiles.split(",");
10043
var mimeType = file.type;
10044
var baseMimeType = mimeType.replace(/\/.*$/, "");
10046
var _iterator25 = dropzone_createForOfIteratorHelper(acceptedFiles, true),
10050
for (_iterator25.s(); !(_step25 = _iterator25.n()).done;) {
10051
var validType = _step25.value;
10052
validType = validType.trim();
10054
if (validType.charAt(0) === ".") {
10055
if (file.name.toLowerCase().indexOf(validType.toLowerCase(), file.name.length - validType.length) !== -1) {
10058
} else if (/\/\*$/.test(validType)) {
10060
if (baseMimeType === validType.replace(/\/.*$/, "")) {
10064
if (mimeType === validType) {
10070
_iterator25.e(err);
10079
if (typeof jQuery !== "undefined" && jQuery !== null) {
10080
jQuery.fn.dropzone = function (options) {
10081
return this.each(function () {
10082
return new Dropzone(this, options);
10088
Dropzone.ADDED = "added";
10089
Dropzone.QUEUED = "queued";
10092
Dropzone.ACCEPTED = Dropzone.QUEUED;
10093
Dropzone.UPLOADING = "uploading";
10094
Dropzone.PROCESSING = Dropzone.UPLOADING;
10096
Dropzone.CANCELED = "canceled";
10097
Dropzone.ERROR = "error";
10098
Dropzone.SUCCESS = "success";
10110
var detectVerticalSquash = function detectVerticalSquash(img) {
10111
var iw = img.naturalWidth;
10112
var ih = img.naturalHeight;
10113
var canvas = document.createElement("canvas");
10115
canvas.height = ih;
10116
var ctx = canvas.getContext("2d");
10117
ctx.drawImage(img, 0, 0);
10119
var _ctx$getImageData = ctx.getImageData(1, 0, 1, ih),
10120
data = _ctx$getImageData.data;
10128
var alpha = data[(py - 1) * 4 + 3];
10139
var ratio = py / ih;
10150
var drawImageIOSFix = function drawImageIOSFix(ctx, img, sx, sy, sw, sh, dx, dy, dw, dh) {
10151
var vertSquashRatio = detectVerticalSquash(img);
10152
return ctx.drawImage(img, sx, sy, sw, sh, dx, dy, dw, dh / vertSquashRatio);
10158
var ExifRestore = function () {
10159
function ExifRestore() {
10160
dropzone_classCallCheck(this, ExifRestore);
10163
dropzone_createClass(ExifRestore, null, [{
10165
value: function initClass() {
10166
this.KEY_STR = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
10170
value: function encode64(input) {
10172
var chr1 = undefined;
10173
var chr2 = undefined;
10175
var enc1 = undefined;
10176
var enc2 = undefined;
10177
var enc3 = undefined;
10186
enc2 = (chr1 & 3) << 4 | chr2 >> 4;
10187
enc3 = (chr2 & 15) << 2 | chr3 >> 6;
10192
} else if (isNaN(chr3)) {
10196
output = output + this.KEY_STR.charAt(enc1) + this.KEY_STR.charAt(enc2) + this.KEY_STR.charAt(enc3) + this.KEY_STR.charAt(enc4);
10197
chr1 = chr2 = chr3 = "";
10198
enc1 = enc2 = enc3 = enc4 = "";
10200
if (!(i < input.length)) {
10209
value: function restore(origFileBase64, resizedFileBase64) {
10210
if (!origFileBase64.match("data:image/jpeg;base64,")) {
10211
return resizedFileBase64;
10214
var rawImage = this.decode64(origFileBase64.replace("data:image/jpeg;base64,", ""));
10215
var segments = this.slice2Segments(rawImage);
10216
var image = this.exifManipulation(resizedFileBase64, segments);
10217
return "data:image/jpeg;base64,".concat(this.encode64(image));
10220
key: "exifManipulation",
10221
value: function exifManipulation(resizedFileBase64, segments) {
10222
var exifArray = this.getExifArray(segments);
10223
var newImageArray = this.insertExif(resizedFileBase64, exifArray);
10224
var aBuffer = new Uint8Array(newImageArray);
10228
key: "getExifArray",
10229
value: function getExifArray(segments) {
10230
var seg = undefined;
10233
while (x < segments.length) {
10236
if (seg[0] === 255 & seg[1] === 225) {
10247
value: function insertExif(resizedFileBase64, exifArray) {
10248
var imageData = resizedFileBase64.replace("data:image/jpeg;base64,", "");
10249
var buf = this.decode64(imageData);
10250
var separatePoint = buf.indexOf(255, 3);
10251
var mae = buf.slice(0, separatePoint);
10252
var ato = buf.slice(separatePoint);
10254
array = array.concat(exifArray);
10255
array = array.concat(ato);
10259
key: "slice2Segments",
10260
value: function slice2Segments(rawImageArray) {
10267
if (rawImageArray[head] === 255 & rawImageArray[head + 1] === 218) {
10271
if (rawImageArray[head] === 255 & rawImageArray[head + 1] === 216) {
10274
length = rawImageArray[head + 2] * 256 + rawImageArray[head + 3];
10275
var endPoint = head + length + 2;
10276
var seg = rawImageArray.slice(head, endPoint);
10277
segments.push(seg);
10281
if (head > rawImageArray.length) {
10290
value: function decode64(input) {
10292
var chr1 = undefined;
10293
var chr2 = undefined;
10295
var enc1 = undefined;
10296
var enc2 = undefined;
10297
var enc3 = undefined;
10302
var base64test = /[^A-Za-z0-9\+\/\=]/g;
10304
if (base64test.exec(input)) {
10305
console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding.");
10308
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
10311
enc1 = this.KEY_STR.indexOf(input.charAt(i++));
10312
enc2 = this.KEY_STR.indexOf(input.charAt(i++));
10313
enc3 = this.KEY_STR.indexOf(input.charAt(i++));
10314
enc4 = this.KEY_STR.indexOf(input.charAt(i++));
10315
chr1 = enc1 << 2 | enc2 >> 4;
10316
chr2 = (enc2 & 15) << 4 | enc3 >> 2;
10317
chr3 = (enc3 & 3) << 6 | enc4;
10328
chr1 = chr2 = chr3 = "";
10329
enc1 = enc2 = enc3 = enc4 = "";
10331
if (!(i < input.length)) {
10340
return ExifRestore;
10343
ExifRestore.initClass();
10360
var contentLoaded = function contentLoaded(win, fn) {
10363
var doc = win.document;
10364
var root = doc.documentElement;
10365
var add = doc.addEventListener ? "addEventListener" : "attachEvent";
10366
var rem = doc.addEventListener ? "removeEventListener" : "detachEvent";
10367
var pre = doc.addEventListener ? "" : "on";
10369
var init = function init(e) {
10370
if (e.type === "readystatechange" && doc.readyState !== "complete") {
10374
(e.type === "load" ? win : doc)[rem](pre + e.type, init, false);
10376
if (!done && (done = true)) {
10377
return fn.call(win, e.type || e);
10381
var poll = function poll() {
10383
root.doScroll("left");
10385
setTimeout(poll, 50);
10389
return init("poll");
10392
if (doc.readyState !== "complete") {
10393
if (doc.createEventObject && root.doScroll) {
10395
top = !win.frameElement;
10403
doc[add](pre + "DOMContentLoaded", init, false);
10404
doc[add](pre + "readystatechange", init, false);
10405
return win[add](pre + "load", init, false);
10410
Dropzone._autoDiscoverFunction = function () {
10411
if (Dropzone.autoDiscover) {
10412
return Dropzone.discover();
10416
contentLoaded(window, Dropzone._autoDiscoverFunction);
10418
function __guard__(value, transform) {
10419
return typeof value !== "undefined" && value !== null ? transform(value) : undefined;
10422
function __guardMethod__(obj, methodName, transform) {
10423
if (typeof obj !== "undefined" && obj !== null && typeof obj[methodName] === "function") {
10424
return transform(obj, methodName);
10434
window.Dropzone = Dropzone;
10435
var dropzone_dist = (Dropzone);
10438
return __webpack_exports__;