adata-ui 0.1.13 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adata-ui.common.js +1874 -21
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.umd.js +1874 -21
- package/dist/adata-ui.umd.js.map +1 -1
- package/dist/adata-ui.umd.min.js +1 -1
- package/dist/adata-ui.umd.min.js.map +1 -1
- package/package-lock.json +107 -101
- package/package.json +2 -2
- package/src/components/Header/Header.stories.js +2 -1
- package/src/components/Header/Header.vue +6 -4
- package/src/components/Header/Profile.vue +29 -8
- package/src/configs/navigationBarConfig.js +1 -1
package/dist/adata-ui.umd.js
CHANGED
|
@@ -153,6 +153,36 @@ test[TO_STRING_TAG] = 'z';
|
|
|
153
153
|
module.exports = String(test) === '[object z]';
|
|
154
154
|
|
|
155
155
|
|
|
156
|
+
/***/ }),
|
|
157
|
+
|
|
158
|
+
/***/ "01b4":
|
|
159
|
+
/***/ (function(module, exports) {
|
|
160
|
+
|
|
161
|
+
var Queue = function () {
|
|
162
|
+
this.head = null;
|
|
163
|
+
this.tail = null;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
Queue.prototype = {
|
|
167
|
+
add: function (item) {
|
|
168
|
+
var entry = { item: item, next: null };
|
|
169
|
+
if (this.head) this.tail.next = entry;
|
|
170
|
+
else this.head = entry;
|
|
171
|
+
this.tail = entry;
|
|
172
|
+
},
|
|
173
|
+
get: function () {
|
|
174
|
+
var entry = this.head;
|
|
175
|
+
if (entry) {
|
|
176
|
+
this.head = entry.next;
|
|
177
|
+
if (this.tail === entry) this.tail = null;
|
|
178
|
+
return entry.item;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
module.exports = Queue;
|
|
184
|
+
|
|
185
|
+
|
|
156
186
|
/***/ }),
|
|
157
187
|
|
|
158
188
|
/***/ "0366":
|
|
@@ -484,6 +514,22 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
|
484
514
|
} : [].forEach;
|
|
485
515
|
|
|
486
516
|
|
|
517
|
+
/***/ }),
|
|
518
|
+
|
|
519
|
+
/***/ "19aa":
|
|
520
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
521
|
+
|
|
522
|
+
var global = __webpack_require__("da84");
|
|
523
|
+
var isPrototypeOf = __webpack_require__("3a9b");
|
|
524
|
+
|
|
525
|
+
var TypeError = global.TypeError;
|
|
526
|
+
|
|
527
|
+
module.exports = function (it, Prototype) {
|
|
528
|
+
if (isPrototypeOf(Prototype, it)) return it;
|
|
529
|
+
throw TypeError('Incorrect invocation');
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
|
|
487
533
|
/***/ }),
|
|
488
534
|
|
|
489
535
|
/***/ "1a2d":
|
|
@@ -556,6 +602,16 @@ module.exports = function (exec, SKIP_CLOSING) {
|
|
|
556
602
|
};
|
|
557
603
|
|
|
558
604
|
|
|
605
|
+
/***/ }),
|
|
606
|
+
|
|
607
|
+
/***/ "1cdc":
|
|
608
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
609
|
+
|
|
610
|
+
var userAgent = __webpack_require__("342f");
|
|
611
|
+
|
|
612
|
+
module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);
|
|
613
|
+
|
|
614
|
+
|
|
559
615
|
/***/ }),
|
|
560
616
|
|
|
561
617
|
/***/ "1d80":
|
|
@@ -599,6 +655,79 @@ module.exports = function (METHOD_NAME) {
|
|
|
599
655
|
};
|
|
600
656
|
|
|
601
657
|
|
|
658
|
+
/***/ }),
|
|
659
|
+
|
|
660
|
+
/***/ "2266":
|
|
661
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
662
|
+
|
|
663
|
+
var global = __webpack_require__("da84");
|
|
664
|
+
var bind = __webpack_require__("0366");
|
|
665
|
+
var call = __webpack_require__("c65b");
|
|
666
|
+
var anObject = __webpack_require__("825a");
|
|
667
|
+
var tryToString = __webpack_require__("0d51");
|
|
668
|
+
var isArrayIteratorMethod = __webpack_require__("e95a");
|
|
669
|
+
var lengthOfArrayLike = __webpack_require__("07fa");
|
|
670
|
+
var isPrototypeOf = __webpack_require__("3a9b");
|
|
671
|
+
var getIterator = __webpack_require__("9a1f");
|
|
672
|
+
var getIteratorMethod = __webpack_require__("35a1");
|
|
673
|
+
var iteratorClose = __webpack_require__("2a62");
|
|
674
|
+
|
|
675
|
+
var TypeError = global.TypeError;
|
|
676
|
+
|
|
677
|
+
var Result = function (stopped, result) {
|
|
678
|
+
this.stopped = stopped;
|
|
679
|
+
this.result = result;
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
var ResultPrototype = Result.prototype;
|
|
683
|
+
|
|
684
|
+
module.exports = function (iterable, unboundFunction, options) {
|
|
685
|
+
var that = options && options.that;
|
|
686
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
687
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
688
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
689
|
+
var fn = bind(unboundFunction, that);
|
|
690
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
691
|
+
|
|
692
|
+
var stop = function (condition) {
|
|
693
|
+
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
694
|
+
return new Result(true, condition);
|
|
695
|
+
};
|
|
696
|
+
|
|
697
|
+
var callFn = function (value) {
|
|
698
|
+
if (AS_ENTRIES) {
|
|
699
|
+
anObject(value);
|
|
700
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
701
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
if (IS_ITERATOR) {
|
|
705
|
+
iterator = iterable;
|
|
706
|
+
} else {
|
|
707
|
+
iterFn = getIteratorMethod(iterable);
|
|
708
|
+
if (!iterFn) throw TypeError(tryToString(iterable) + ' is not iterable');
|
|
709
|
+
// optimisation for array iterators
|
|
710
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
711
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
712
|
+
result = callFn(iterable[index]);
|
|
713
|
+
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
714
|
+
} return new Result(false);
|
|
715
|
+
}
|
|
716
|
+
iterator = getIterator(iterable, iterFn);
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
next = iterator.next;
|
|
720
|
+
while (!(step = call(next, iterator)).done) {
|
|
721
|
+
try {
|
|
722
|
+
result = callFn(step.value);
|
|
723
|
+
} catch (error) {
|
|
724
|
+
iteratorClose(iterator, 'throw', error);
|
|
725
|
+
}
|
|
726
|
+
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
727
|
+
} return new Result(false);
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
|
|
602
731
|
/***/ }),
|
|
603
732
|
|
|
604
733
|
/***/ "23cb":
|
|
@@ -765,6 +894,33 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
765
894
|
}
|
|
766
895
|
|
|
767
896
|
|
|
897
|
+
/***/ }),
|
|
898
|
+
|
|
899
|
+
/***/ "2626":
|
|
900
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
901
|
+
|
|
902
|
+
"use strict";
|
|
903
|
+
|
|
904
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
905
|
+
var definePropertyModule = __webpack_require__("9bf2");
|
|
906
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
907
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
908
|
+
|
|
909
|
+
var SPECIES = wellKnownSymbol('species');
|
|
910
|
+
|
|
911
|
+
module.exports = function (CONSTRUCTOR_NAME) {
|
|
912
|
+
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
|
913
|
+
var defineProperty = definePropertyModule.f;
|
|
914
|
+
|
|
915
|
+
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
|
916
|
+
defineProperty(Constructor, SPECIES, {
|
|
917
|
+
configurable: true,
|
|
918
|
+
get: function () { return this; }
|
|
919
|
+
});
|
|
920
|
+
}
|
|
921
|
+
};
|
|
922
|
+
|
|
923
|
+
|
|
768
924
|
/***/ }),
|
|
769
925
|
|
|
770
926
|
/***/ "2a09":
|
|
@@ -819,6 +975,126 @@ module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? c
|
|
|
819
975
|
});
|
|
820
976
|
|
|
821
977
|
|
|
978
|
+
/***/ }),
|
|
979
|
+
|
|
980
|
+
/***/ "2cf4":
|
|
981
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
982
|
+
|
|
983
|
+
var global = __webpack_require__("da84");
|
|
984
|
+
var apply = __webpack_require__("2ba4");
|
|
985
|
+
var bind = __webpack_require__("0366");
|
|
986
|
+
var isCallable = __webpack_require__("1626");
|
|
987
|
+
var hasOwn = __webpack_require__("1a2d");
|
|
988
|
+
var fails = __webpack_require__("d039");
|
|
989
|
+
var html = __webpack_require__("1be4");
|
|
990
|
+
var arraySlice = __webpack_require__("f36a");
|
|
991
|
+
var createElement = __webpack_require__("cc12");
|
|
992
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
993
|
+
var IS_NODE = __webpack_require__("605d");
|
|
994
|
+
|
|
995
|
+
var set = global.setImmediate;
|
|
996
|
+
var clear = global.clearImmediate;
|
|
997
|
+
var process = global.process;
|
|
998
|
+
var Dispatch = global.Dispatch;
|
|
999
|
+
var Function = global.Function;
|
|
1000
|
+
var MessageChannel = global.MessageChannel;
|
|
1001
|
+
var String = global.String;
|
|
1002
|
+
var counter = 0;
|
|
1003
|
+
var queue = {};
|
|
1004
|
+
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
1005
|
+
var location, defer, channel, port;
|
|
1006
|
+
|
|
1007
|
+
try {
|
|
1008
|
+
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
1009
|
+
location = global.location;
|
|
1010
|
+
} catch (error) { /* empty */ }
|
|
1011
|
+
|
|
1012
|
+
var run = function (id) {
|
|
1013
|
+
if (hasOwn(queue, id)) {
|
|
1014
|
+
var fn = queue[id];
|
|
1015
|
+
delete queue[id];
|
|
1016
|
+
fn();
|
|
1017
|
+
}
|
|
1018
|
+
};
|
|
1019
|
+
|
|
1020
|
+
var runner = function (id) {
|
|
1021
|
+
return function () {
|
|
1022
|
+
run(id);
|
|
1023
|
+
};
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1026
|
+
var listener = function (event) {
|
|
1027
|
+
run(event.data);
|
|
1028
|
+
};
|
|
1029
|
+
|
|
1030
|
+
var post = function (id) {
|
|
1031
|
+
// old engines have not location.origin
|
|
1032
|
+
global.postMessage(String(id), location.protocol + '//' + location.host);
|
|
1033
|
+
};
|
|
1034
|
+
|
|
1035
|
+
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
1036
|
+
if (!set || !clear) {
|
|
1037
|
+
set = function setImmediate(fn) {
|
|
1038
|
+
var args = arraySlice(arguments, 1);
|
|
1039
|
+
queue[++counter] = function () {
|
|
1040
|
+
apply(isCallable(fn) ? fn : Function(fn), undefined, args);
|
|
1041
|
+
};
|
|
1042
|
+
defer(counter);
|
|
1043
|
+
return counter;
|
|
1044
|
+
};
|
|
1045
|
+
clear = function clearImmediate(id) {
|
|
1046
|
+
delete queue[id];
|
|
1047
|
+
};
|
|
1048
|
+
// Node.js 0.8-
|
|
1049
|
+
if (IS_NODE) {
|
|
1050
|
+
defer = function (id) {
|
|
1051
|
+
process.nextTick(runner(id));
|
|
1052
|
+
};
|
|
1053
|
+
// Sphere (JS game engine) Dispatch API
|
|
1054
|
+
} else if (Dispatch && Dispatch.now) {
|
|
1055
|
+
defer = function (id) {
|
|
1056
|
+
Dispatch.now(runner(id));
|
|
1057
|
+
};
|
|
1058
|
+
// Browsers with MessageChannel, includes WebWorkers
|
|
1059
|
+
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
1060
|
+
} else if (MessageChannel && !IS_IOS) {
|
|
1061
|
+
channel = new MessageChannel();
|
|
1062
|
+
port = channel.port2;
|
|
1063
|
+
channel.port1.onmessage = listener;
|
|
1064
|
+
defer = bind(port.postMessage, port);
|
|
1065
|
+
// Browsers with postMessage, skip WebWorkers
|
|
1066
|
+
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
1067
|
+
} else if (
|
|
1068
|
+
global.addEventListener &&
|
|
1069
|
+
isCallable(global.postMessage) &&
|
|
1070
|
+
!global.importScripts &&
|
|
1071
|
+
location && location.protocol !== 'file:' &&
|
|
1072
|
+
!fails(post)
|
|
1073
|
+
) {
|
|
1074
|
+
defer = post;
|
|
1075
|
+
global.addEventListener('message', listener, false);
|
|
1076
|
+
// IE8-
|
|
1077
|
+
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
1078
|
+
defer = function (id) {
|
|
1079
|
+
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
|
1080
|
+
html.removeChild(this);
|
|
1081
|
+
run(id);
|
|
1082
|
+
};
|
|
1083
|
+
};
|
|
1084
|
+
// Rest old browsers
|
|
1085
|
+
} else {
|
|
1086
|
+
defer = function (id) {
|
|
1087
|
+
setTimeout(runner(id), 0);
|
|
1088
|
+
};
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
module.exports = {
|
|
1093
|
+
set: set,
|
|
1094
|
+
clear: clear
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
|
|
822
1098
|
/***/ }),
|
|
823
1099
|
|
|
824
1100
|
/***/ "2d00":
|
|
@@ -1093,6 +1369,21 @@ module.exports = function (key) {
|
|
|
1093
1369
|
};
|
|
1094
1370
|
|
|
1095
1371
|
|
|
1372
|
+
/***/ }),
|
|
1373
|
+
|
|
1374
|
+
/***/ "44de":
|
|
1375
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1376
|
+
|
|
1377
|
+
var global = __webpack_require__("da84");
|
|
1378
|
+
|
|
1379
|
+
module.exports = function (a, b) {
|
|
1380
|
+
var console = global.console;
|
|
1381
|
+
if (console && console.error) {
|
|
1382
|
+
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
|
1383
|
+
}
|
|
1384
|
+
};
|
|
1385
|
+
|
|
1386
|
+
|
|
1096
1387
|
/***/ }),
|
|
1097
1388
|
|
|
1098
1389
|
/***/ "44e7":
|
|
@@ -1112,6 +1403,26 @@ module.exports = function (it) {
|
|
|
1112
1403
|
};
|
|
1113
1404
|
|
|
1114
1405
|
|
|
1406
|
+
/***/ }),
|
|
1407
|
+
|
|
1408
|
+
/***/ "4840":
|
|
1409
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1410
|
+
|
|
1411
|
+
var anObject = __webpack_require__("825a");
|
|
1412
|
+
var aConstructor = __webpack_require__("5087");
|
|
1413
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
1414
|
+
|
|
1415
|
+
var SPECIES = wellKnownSymbol('species');
|
|
1416
|
+
|
|
1417
|
+
// `SpeciesConstructor` abstract operation
|
|
1418
|
+
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
1419
|
+
module.exports = function (O, defaultConstructor) {
|
|
1420
|
+
var C = anObject(O).constructor;
|
|
1421
|
+
var S;
|
|
1422
|
+
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aConstructor(S);
|
|
1423
|
+
};
|
|
1424
|
+
|
|
1425
|
+
|
|
1115
1426
|
/***/ }),
|
|
1116
1427
|
|
|
1117
1428
|
/***/ "485a":
|
|
@@ -1303,6 +1614,24 @@ module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undef
|
|
|
1303
1614
|
};
|
|
1304
1615
|
|
|
1305
1616
|
|
|
1617
|
+
/***/ }),
|
|
1618
|
+
|
|
1619
|
+
/***/ "5087":
|
|
1620
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1621
|
+
|
|
1622
|
+
var global = __webpack_require__("da84");
|
|
1623
|
+
var isConstructor = __webpack_require__("68ee");
|
|
1624
|
+
var tryToString = __webpack_require__("0d51");
|
|
1625
|
+
|
|
1626
|
+
var TypeError = global.TypeError;
|
|
1627
|
+
|
|
1628
|
+
// `Assert: IsConstructor(argument) is true`
|
|
1629
|
+
module.exports = function (argument) {
|
|
1630
|
+
if (isConstructor(argument)) return argument;
|
|
1631
|
+
throw TypeError(tryToString(argument) + ' is not a constructor');
|
|
1632
|
+
};
|
|
1633
|
+
|
|
1634
|
+
|
|
1306
1635
|
/***/ }),
|
|
1307
1636
|
|
|
1308
1637
|
/***/ "50c4":
|
|
@@ -1669,6 +1998,25 @@ module.exports = {
|
|
|
1669
1998
|
};
|
|
1670
1999
|
|
|
1671
2000
|
|
|
2001
|
+
/***/ }),
|
|
2002
|
+
|
|
2003
|
+
/***/ "605d":
|
|
2004
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2005
|
+
|
|
2006
|
+
var classof = __webpack_require__("c6b6");
|
|
2007
|
+
var global = __webpack_require__("da84");
|
|
2008
|
+
|
|
2009
|
+
module.exports = classof(global.process) == 'process';
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
/***/ }),
|
|
2013
|
+
|
|
2014
|
+
/***/ "6069":
|
|
2015
|
+
/***/ (function(module, exports) {
|
|
2016
|
+
|
|
2017
|
+
module.exports = typeof window == 'object';
|
|
2018
|
+
|
|
2019
|
+
|
|
1672
2020
|
/***/ }),
|
|
1673
2021
|
|
|
1674
2022
|
/***/ "6547":
|
|
@@ -2132,6 +2480,35 @@ module.exports = Object.create || function create(O, Properties) {
|
|
|
2132
2480
|
};
|
|
2133
2481
|
|
|
2134
2482
|
|
|
2483
|
+
/***/ }),
|
|
2484
|
+
|
|
2485
|
+
/***/ "7db0":
|
|
2486
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2487
|
+
|
|
2488
|
+
"use strict";
|
|
2489
|
+
|
|
2490
|
+
var $ = __webpack_require__("23e7");
|
|
2491
|
+
var $find = __webpack_require__("b727").find;
|
|
2492
|
+
var addToUnscopables = __webpack_require__("44d2");
|
|
2493
|
+
|
|
2494
|
+
var FIND = 'find';
|
|
2495
|
+
var SKIPS_HOLES = true;
|
|
2496
|
+
|
|
2497
|
+
// Shouldn't skip holes
|
|
2498
|
+
if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
|
2499
|
+
|
|
2500
|
+
// `Array.prototype.find` method
|
|
2501
|
+
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
2502
|
+
$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
2503
|
+
find: function find(callbackfn /* , that = undefined */) {
|
|
2504
|
+
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
2505
|
+
}
|
|
2506
|
+
});
|
|
2507
|
+
|
|
2508
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2509
|
+
addToUnscopables(FIND);
|
|
2510
|
+
|
|
2511
|
+
|
|
2135
2512
|
/***/ }),
|
|
2136
2513
|
|
|
2137
2514
|
/***/ "7dd0":
|
|
@@ -2638,6 +3015,767 @@ var POLYFILL = isForced.POLYFILL = 'P';
|
|
|
2638
3015
|
module.exports = isForced;
|
|
2639
3016
|
|
|
2640
3017
|
|
|
3018
|
+
/***/ }),
|
|
3019
|
+
|
|
3020
|
+
/***/ "96cf":
|
|
3021
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3022
|
+
|
|
3023
|
+
/**
|
|
3024
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
3025
|
+
*
|
|
3026
|
+
* This source code is licensed under the MIT license found in the
|
|
3027
|
+
* LICENSE file in the root directory of this source tree.
|
|
3028
|
+
*/
|
|
3029
|
+
|
|
3030
|
+
var runtime = (function (exports) {
|
|
3031
|
+
"use strict";
|
|
3032
|
+
|
|
3033
|
+
var Op = Object.prototype;
|
|
3034
|
+
var hasOwn = Op.hasOwnProperty;
|
|
3035
|
+
var undefined; // More compressible than void 0.
|
|
3036
|
+
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
3037
|
+
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
3038
|
+
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
3039
|
+
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
3040
|
+
|
|
3041
|
+
function define(obj, key, value) {
|
|
3042
|
+
Object.defineProperty(obj, key, {
|
|
3043
|
+
value: value,
|
|
3044
|
+
enumerable: true,
|
|
3045
|
+
configurable: true,
|
|
3046
|
+
writable: true
|
|
3047
|
+
});
|
|
3048
|
+
return obj[key];
|
|
3049
|
+
}
|
|
3050
|
+
try {
|
|
3051
|
+
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
3052
|
+
define({}, "");
|
|
3053
|
+
} catch (err) {
|
|
3054
|
+
define = function(obj, key, value) {
|
|
3055
|
+
return obj[key] = value;
|
|
3056
|
+
};
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
3060
|
+
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
3061
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
3062
|
+
var generator = Object.create(protoGenerator.prototype);
|
|
3063
|
+
var context = new Context(tryLocsList || []);
|
|
3064
|
+
|
|
3065
|
+
// The ._invoke method unifies the implementations of the .next,
|
|
3066
|
+
// .throw, and .return methods.
|
|
3067
|
+
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
3068
|
+
|
|
3069
|
+
return generator;
|
|
3070
|
+
}
|
|
3071
|
+
exports.wrap = wrap;
|
|
3072
|
+
|
|
3073
|
+
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
3074
|
+
// record like context.tryEntries[i].completion. This interface could
|
|
3075
|
+
// have been (and was previously) designed to take a closure to be
|
|
3076
|
+
// invoked without arguments, but in all the cases we care about we
|
|
3077
|
+
// already have an existing method we want to call, so there's no need
|
|
3078
|
+
// to create a new function object. We can even get away with assuming
|
|
3079
|
+
// the method takes exactly one argument, since that happens to be true
|
|
3080
|
+
// in every case, so we don't have to touch the arguments object. The
|
|
3081
|
+
// only additional allocation required is the completion record, which
|
|
3082
|
+
// has a stable shape and so hopefully should be cheap to allocate.
|
|
3083
|
+
function tryCatch(fn, obj, arg) {
|
|
3084
|
+
try {
|
|
3085
|
+
return { type: "normal", arg: fn.call(obj, arg) };
|
|
3086
|
+
} catch (err) {
|
|
3087
|
+
return { type: "throw", arg: err };
|
|
3088
|
+
}
|
|
3089
|
+
}
|
|
3090
|
+
|
|
3091
|
+
var GenStateSuspendedStart = "suspendedStart";
|
|
3092
|
+
var GenStateSuspendedYield = "suspendedYield";
|
|
3093
|
+
var GenStateExecuting = "executing";
|
|
3094
|
+
var GenStateCompleted = "completed";
|
|
3095
|
+
|
|
3096
|
+
// Returning this object from the innerFn has the same effect as
|
|
3097
|
+
// breaking out of the dispatch switch statement.
|
|
3098
|
+
var ContinueSentinel = {};
|
|
3099
|
+
|
|
3100
|
+
// Dummy constructor functions that we use as the .constructor and
|
|
3101
|
+
// .constructor.prototype properties for functions that return Generator
|
|
3102
|
+
// objects. For full spec compliance, you may wish to configure your
|
|
3103
|
+
// minifier not to mangle the names of these two functions.
|
|
3104
|
+
function Generator() {}
|
|
3105
|
+
function GeneratorFunction() {}
|
|
3106
|
+
function GeneratorFunctionPrototype() {}
|
|
3107
|
+
|
|
3108
|
+
// This is a polyfill for %IteratorPrototype% for environments that
|
|
3109
|
+
// don't natively support it.
|
|
3110
|
+
var IteratorPrototype = {};
|
|
3111
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
3112
|
+
return this;
|
|
3113
|
+
});
|
|
3114
|
+
|
|
3115
|
+
var getProto = Object.getPrototypeOf;
|
|
3116
|
+
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
3117
|
+
if (NativeIteratorPrototype &&
|
|
3118
|
+
NativeIteratorPrototype !== Op &&
|
|
3119
|
+
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
3120
|
+
// This environment has a native %IteratorPrototype%; use it instead
|
|
3121
|
+
// of the polyfill.
|
|
3122
|
+
IteratorPrototype = NativeIteratorPrototype;
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
var Gp = GeneratorFunctionPrototype.prototype =
|
|
3126
|
+
Generator.prototype = Object.create(IteratorPrototype);
|
|
3127
|
+
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
3128
|
+
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
3129
|
+
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
3130
|
+
GeneratorFunction.displayName = define(
|
|
3131
|
+
GeneratorFunctionPrototype,
|
|
3132
|
+
toStringTagSymbol,
|
|
3133
|
+
"GeneratorFunction"
|
|
3134
|
+
);
|
|
3135
|
+
|
|
3136
|
+
// Helper for defining the .next, .throw, and .return methods of the
|
|
3137
|
+
// Iterator interface in terms of a single ._invoke method.
|
|
3138
|
+
function defineIteratorMethods(prototype) {
|
|
3139
|
+
["next", "throw", "return"].forEach(function(method) {
|
|
3140
|
+
define(prototype, method, function(arg) {
|
|
3141
|
+
return this._invoke(method, arg);
|
|
3142
|
+
});
|
|
3143
|
+
});
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
exports.isGeneratorFunction = function(genFun) {
|
|
3147
|
+
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
3148
|
+
return ctor
|
|
3149
|
+
? ctor === GeneratorFunction ||
|
|
3150
|
+
// For the native GeneratorFunction constructor, the best we can
|
|
3151
|
+
// do is to check its .name property.
|
|
3152
|
+
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
3153
|
+
: false;
|
|
3154
|
+
};
|
|
3155
|
+
|
|
3156
|
+
exports.mark = function(genFun) {
|
|
3157
|
+
if (Object.setPrototypeOf) {
|
|
3158
|
+
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
3159
|
+
} else {
|
|
3160
|
+
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
3161
|
+
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
3162
|
+
}
|
|
3163
|
+
genFun.prototype = Object.create(Gp);
|
|
3164
|
+
return genFun;
|
|
3165
|
+
};
|
|
3166
|
+
|
|
3167
|
+
// Within the body of any async function, `await x` is transformed to
|
|
3168
|
+
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
3169
|
+
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
3170
|
+
// meant to be awaited.
|
|
3171
|
+
exports.awrap = function(arg) {
|
|
3172
|
+
return { __await: arg };
|
|
3173
|
+
};
|
|
3174
|
+
|
|
3175
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
3176
|
+
function invoke(method, arg, resolve, reject) {
|
|
3177
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
3178
|
+
if (record.type === "throw") {
|
|
3179
|
+
reject(record.arg);
|
|
3180
|
+
} else {
|
|
3181
|
+
var result = record.arg;
|
|
3182
|
+
var value = result.value;
|
|
3183
|
+
if (value &&
|
|
3184
|
+
typeof value === "object" &&
|
|
3185
|
+
hasOwn.call(value, "__await")) {
|
|
3186
|
+
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
3187
|
+
invoke("next", value, resolve, reject);
|
|
3188
|
+
}, function(err) {
|
|
3189
|
+
invoke("throw", err, resolve, reject);
|
|
3190
|
+
});
|
|
3191
|
+
}
|
|
3192
|
+
|
|
3193
|
+
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
3194
|
+
// When a yielded Promise is resolved, its final value becomes
|
|
3195
|
+
// the .value of the Promise<{value,done}> result for the
|
|
3196
|
+
// current iteration.
|
|
3197
|
+
result.value = unwrapped;
|
|
3198
|
+
resolve(result);
|
|
3199
|
+
}, function(error) {
|
|
3200
|
+
// If a rejected Promise was yielded, throw the rejection back
|
|
3201
|
+
// into the async generator function so it can be handled there.
|
|
3202
|
+
return invoke("throw", error, resolve, reject);
|
|
3203
|
+
});
|
|
3204
|
+
}
|
|
3205
|
+
}
|
|
3206
|
+
|
|
3207
|
+
var previousPromise;
|
|
3208
|
+
|
|
3209
|
+
function enqueue(method, arg) {
|
|
3210
|
+
function callInvokeWithMethodAndArg() {
|
|
3211
|
+
return new PromiseImpl(function(resolve, reject) {
|
|
3212
|
+
invoke(method, arg, resolve, reject);
|
|
3213
|
+
});
|
|
3214
|
+
}
|
|
3215
|
+
|
|
3216
|
+
return previousPromise =
|
|
3217
|
+
// If enqueue has been called before, then we want to wait until
|
|
3218
|
+
// all previous Promises have been resolved before calling invoke,
|
|
3219
|
+
// so that results are always delivered in the correct order. If
|
|
3220
|
+
// enqueue has not been called before, then it is important to
|
|
3221
|
+
// call invoke immediately, without waiting on a callback to fire,
|
|
3222
|
+
// so that the async generator function has the opportunity to do
|
|
3223
|
+
// any necessary setup in a predictable way. This predictability
|
|
3224
|
+
// is why the Promise constructor synchronously invokes its
|
|
3225
|
+
// executor callback, and why async functions synchronously
|
|
3226
|
+
// execute code before the first await. Since we implement simple
|
|
3227
|
+
// async functions in terms of async generators, it is especially
|
|
3228
|
+
// important to get this right, even though it requires care.
|
|
3229
|
+
previousPromise ? previousPromise.then(
|
|
3230
|
+
callInvokeWithMethodAndArg,
|
|
3231
|
+
// Avoid propagating failures to Promises returned by later
|
|
3232
|
+
// invocations of the iterator.
|
|
3233
|
+
callInvokeWithMethodAndArg
|
|
3234
|
+
) : callInvokeWithMethodAndArg();
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
// Define the unified helper method that is used to implement .next,
|
|
3238
|
+
// .throw, and .return (see defineIteratorMethods).
|
|
3239
|
+
this._invoke = enqueue;
|
|
3240
|
+
}
|
|
3241
|
+
|
|
3242
|
+
defineIteratorMethods(AsyncIterator.prototype);
|
|
3243
|
+
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
3244
|
+
return this;
|
|
3245
|
+
});
|
|
3246
|
+
exports.AsyncIterator = AsyncIterator;
|
|
3247
|
+
|
|
3248
|
+
// Note that simple async functions are implemented on top of
|
|
3249
|
+
// AsyncIterator objects; they just return a Promise for the value of
|
|
3250
|
+
// the final result produced by the iterator.
|
|
3251
|
+
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
3252
|
+
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
3253
|
+
|
|
3254
|
+
var iter = new AsyncIterator(
|
|
3255
|
+
wrap(innerFn, outerFn, self, tryLocsList),
|
|
3256
|
+
PromiseImpl
|
|
3257
|
+
);
|
|
3258
|
+
|
|
3259
|
+
return exports.isGeneratorFunction(outerFn)
|
|
3260
|
+
? iter // If outerFn is a generator, return the full iterator.
|
|
3261
|
+
: iter.next().then(function(result) {
|
|
3262
|
+
return result.done ? result.value : iter.next();
|
|
3263
|
+
});
|
|
3264
|
+
};
|
|
3265
|
+
|
|
3266
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
3267
|
+
var state = GenStateSuspendedStart;
|
|
3268
|
+
|
|
3269
|
+
return function invoke(method, arg) {
|
|
3270
|
+
if (state === GenStateExecuting) {
|
|
3271
|
+
throw new Error("Generator is already running");
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
if (state === GenStateCompleted) {
|
|
3275
|
+
if (method === "throw") {
|
|
3276
|
+
throw arg;
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3279
|
+
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
3280
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
3281
|
+
return doneResult();
|
|
3282
|
+
}
|
|
3283
|
+
|
|
3284
|
+
context.method = method;
|
|
3285
|
+
context.arg = arg;
|
|
3286
|
+
|
|
3287
|
+
while (true) {
|
|
3288
|
+
var delegate = context.delegate;
|
|
3289
|
+
if (delegate) {
|
|
3290
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
3291
|
+
if (delegateResult) {
|
|
3292
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
3293
|
+
return delegateResult;
|
|
3294
|
+
}
|
|
3295
|
+
}
|
|
3296
|
+
|
|
3297
|
+
if (context.method === "next") {
|
|
3298
|
+
// Setting context._sent for legacy support of Babel's
|
|
3299
|
+
// function.sent implementation.
|
|
3300
|
+
context.sent = context._sent = context.arg;
|
|
3301
|
+
|
|
3302
|
+
} else if (context.method === "throw") {
|
|
3303
|
+
if (state === GenStateSuspendedStart) {
|
|
3304
|
+
state = GenStateCompleted;
|
|
3305
|
+
throw context.arg;
|
|
3306
|
+
}
|
|
3307
|
+
|
|
3308
|
+
context.dispatchException(context.arg);
|
|
3309
|
+
|
|
3310
|
+
} else if (context.method === "return") {
|
|
3311
|
+
context.abrupt("return", context.arg);
|
|
3312
|
+
}
|
|
3313
|
+
|
|
3314
|
+
state = GenStateExecuting;
|
|
3315
|
+
|
|
3316
|
+
var record = tryCatch(innerFn, self, context);
|
|
3317
|
+
if (record.type === "normal") {
|
|
3318
|
+
// If an exception is thrown from innerFn, we leave state ===
|
|
3319
|
+
// GenStateExecuting and loop back for another invocation.
|
|
3320
|
+
state = context.done
|
|
3321
|
+
? GenStateCompleted
|
|
3322
|
+
: GenStateSuspendedYield;
|
|
3323
|
+
|
|
3324
|
+
if (record.arg === ContinueSentinel) {
|
|
3325
|
+
continue;
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3328
|
+
return {
|
|
3329
|
+
value: record.arg,
|
|
3330
|
+
done: context.done
|
|
3331
|
+
};
|
|
3332
|
+
|
|
3333
|
+
} else if (record.type === "throw") {
|
|
3334
|
+
state = GenStateCompleted;
|
|
3335
|
+
// Dispatch the exception by looping back around to the
|
|
3336
|
+
// context.dispatchException(context.arg) call above.
|
|
3337
|
+
context.method = "throw";
|
|
3338
|
+
context.arg = record.arg;
|
|
3339
|
+
}
|
|
3340
|
+
}
|
|
3341
|
+
};
|
|
3342
|
+
}
|
|
3343
|
+
|
|
3344
|
+
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
3345
|
+
// result, either by returning a { value, done } result from the
|
|
3346
|
+
// delegate iterator, or by modifying context.method and context.arg,
|
|
3347
|
+
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
3348
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
3349
|
+
var method = delegate.iterator[context.method];
|
|
3350
|
+
if (method === undefined) {
|
|
3351
|
+
// A .throw or .return when the delegate iterator has no .throw
|
|
3352
|
+
// method always terminates the yield* loop.
|
|
3353
|
+
context.delegate = null;
|
|
3354
|
+
|
|
3355
|
+
if (context.method === "throw") {
|
|
3356
|
+
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
3357
|
+
if (delegate.iterator["return"]) {
|
|
3358
|
+
// If the delegate iterator has a return method, give it a
|
|
3359
|
+
// chance to clean up.
|
|
3360
|
+
context.method = "return";
|
|
3361
|
+
context.arg = undefined;
|
|
3362
|
+
maybeInvokeDelegate(delegate, context);
|
|
3363
|
+
|
|
3364
|
+
if (context.method === "throw") {
|
|
3365
|
+
// If maybeInvokeDelegate(context) changed context.method from
|
|
3366
|
+
// "return" to "throw", let that override the TypeError below.
|
|
3367
|
+
return ContinueSentinel;
|
|
3368
|
+
}
|
|
3369
|
+
}
|
|
3370
|
+
|
|
3371
|
+
context.method = "throw";
|
|
3372
|
+
context.arg = new TypeError(
|
|
3373
|
+
"The iterator does not provide a 'throw' method");
|
|
3374
|
+
}
|
|
3375
|
+
|
|
3376
|
+
return ContinueSentinel;
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
3380
|
+
|
|
3381
|
+
if (record.type === "throw") {
|
|
3382
|
+
context.method = "throw";
|
|
3383
|
+
context.arg = record.arg;
|
|
3384
|
+
context.delegate = null;
|
|
3385
|
+
return ContinueSentinel;
|
|
3386
|
+
}
|
|
3387
|
+
|
|
3388
|
+
var info = record.arg;
|
|
3389
|
+
|
|
3390
|
+
if (! info) {
|
|
3391
|
+
context.method = "throw";
|
|
3392
|
+
context.arg = new TypeError("iterator result is not an object");
|
|
3393
|
+
context.delegate = null;
|
|
3394
|
+
return ContinueSentinel;
|
|
3395
|
+
}
|
|
3396
|
+
|
|
3397
|
+
if (info.done) {
|
|
3398
|
+
// Assign the result of the finished delegate to the temporary
|
|
3399
|
+
// variable specified by delegate.resultName (see delegateYield).
|
|
3400
|
+
context[delegate.resultName] = info.value;
|
|
3401
|
+
|
|
3402
|
+
// Resume execution at the desired location (see delegateYield).
|
|
3403
|
+
context.next = delegate.nextLoc;
|
|
3404
|
+
|
|
3405
|
+
// If context.method was "throw" but the delegate handled the
|
|
3406
|
+
// exception, let the outer generator proceed normally. If
|
|
3407
|
+
// context.method was "next", forget context.arg since it has been
|
|
3408
|
+
// "consumed" by the delegate iterator. If context.method was
|
|
3409
|
+
// "return", allow the original .return call to continue in the
|
|
3410
|
+
// outer generator.
|
|
3411
|
+
if (context.method !== "return") {
|
|
3412
|
+
context.method = "next";
|
|
3413
|
+
context.arg = undefined;
|
|
3414
|
+
}
|
|
3415
|
+
|
|
3416
|
+
} else {
|
|
3417
|
+
// Re-yield the result returned by the delegate method.
|
|
3418
|
+
return info;
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
// The delegate iterator is finished, so forget it and continue with
|
|
3422
|
+
// the outer generator.
|
|
3423
|
+
context.delegate = null;
|
|
3424
|
+
return ContinueSentinel;
|
|
3425
|
+
}
|
|
3426
|
+
|
|
3427
|
+
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
3428
|
+
// unified ._invoke helper method.
|
|
3429
|
+
defineIteratorMethods(Gp);
|
|
3430
|
+
|
|
3431
|
+
define(Gp, toStringTagSymbol, "Generator");
|
|
3432
|
+
|
|
3433
|
+
// A Generator should always return itself as the iterator object when the
|
|
3434
|
+
// @@iterator function is called on it. Some browsers' implementations of the
|
|
3435
|
+
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
3436
|
+
// object to not be returned from this call. This ensures that doesn't happen.
|
|
3437
|
+
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
3438
|
+
define(Gp, iteratorSymbol, function() {
|
|
3439
|
+
return this;
|
|
3440
|
+
});
|
|
3441
|
+
|
|
3442
|
+
define(Gp, "toString", function() {
|
|
3443
|
+
return "[object Generator]";
|
|
3444
|
+
});
|
|
3445
|
+
|
|
3446
|
+
function pushTryEntry(locs) {
|
|
3447
|
+
var entry = { tryLoc: locs[0] };
|
|
3448
|
+
|
|
3449
|
+
if (1 in locs) {
|
|
3450
|
+
entry.catchLoc = locs[1];
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
if (2 in locs) {
|
|
3454
|
+
entry.finallyLoc = locs[2];
|
|
3455
|
+
entry.afterLoc = locs[3];
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
this.tryEntries.push(entry);
|
|
3459
|
+
}
|
|
3460
|
+
|
|
3461
|
+
function resetTryEntry(entry) {
|
|
3462
|
+
var record = entry.completion || {};
|
|
3463
|
+
record.type = "normal";
|
|
3464
|
+
delete record.arg;
|
|
3465
|
+
entry.completion = record;
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
function Context(tryLocsList) {
|
|
3469
|
+
// The root entry object (effectively a try statement without a catch
|
|
3470
|
+
// or a finally block) gives us a place to store values thrown from
|
|
3471
|
+
// locations where there is no enclosing try statement.
|
|
3472
|
+
this.tryEntries = [{ tryLoc: "root" }];
|
|
3473
|
+
tryLocsList.forEach(pushTryEntry, this);
|
|
3474
|
+
this.reset(true);
|
|
3475
|
+
}
|
|
3476
|
+
|
|
3477
|
+
exports.keys = function(object) {
|
|
3478
|
+
var keys = [];
|
|
3479
|
+
for (var key in object) {
|
|
3480
|
+
keys.push(key);
|
|
3481
|
+
}
|
|
3482
|
+
keys.reverse();
|
|
3483
|
+
|
|
3484
|
+
// Rather than returning an object with a next method, we keep
|
|
3485
|
+
// things simple and return the next function itself.
|
|
3486
|
+
return function next() {
|
|
3487
|
+
while (keys.length) {
|
|
3488
|
+
var key = keys.pop();
|
|
3489
|
+
if (key in object) {
|
|
3490
|
+
next.value = key;
|
|
3491
|
+
next.done = false;
|
|
3492
|
+
return next;
|
|
3493
|
+
}
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3496
|
+
// To avoid creating an additional object, we just hang the .value
|
|
3497
|
+
// and .done properties off the next function object itself. This
|
|
3498
|
+
// also ensures that the minifier will not anonymize the function.
|
|
3499
|
+
next.done = true;
|
|
3500
|
+
return next;
|
|
3501
|
+
};
|
|
3502
|
+
};
|
|
3503
|
+
|
|
3504
|
+
function values(iterable) {
|
|
3505
|
+
if (iterable) {
|
|
3506
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
3507
|
+
if (iteratorMethod) {
|
|
3508
|
+
return iteratorMethod.call(iterable);
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
if (typeof iterable.next === "function") {
|
|
3512
|
+
return iterable;
|
|
3513
|
+
}
|
|
3514
|
+
|
|
3515
|
+
if (!isNaN(iterable.length)) {
|
|
3516
|
+
var i = -1, next = function next() {
|
|
3517
|
+
while (++i < iterable.length) {
|
|
3518
|
+
if (hasOwn.call(iterable, i)) {
|
|
3519
|
+
next.value = iterable[i];
|
|
3520
|
+
next.done = false;
|
|
3521
|
+
return next;
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
|
|
3525
|
+
next.value = undefined;
|
|
3526
|
+
next.done = true;
|
|
3527
|
+
|
|
3528
|
+
return next;
|
|
3529
|
+
};
|
|
3530
|
+
|
|
3531
|
+
return next.next = next;
|
|
3532
|
+
}
|
|
3533
|
+
}
|
|
3534
|
+
|
|
3535
|
+
// Return an iterator with no values.
|
|
3536
|
+
return { next: doneResult };
|
|
3537
|
+
}
|
|
3538
|
+
exports.values = values;
|
|
3539
|
+
|
|
3540
|
+
function doneResult() {
|
|
3541
|
+
return { value: undefined, done: true };
|
|
3542
|
+
}
|
|
3543
|
+
|
|
3544
|
+
Context.prototype = {
|
|
3545
|
+
constructor: Context,
|
|
3546
|
+
|
|
3547
|
+
reset: function(skipTempReset) {
|
|
3548
|
+
this.prev = 0;
|
|
3549
|
+
this.next = 0;
|
|
3550
|
+
// Resetting context._sent for legacy support of Babel's
|
|
3551
|
+
// function.sent implementation.
|
|
3552
|
+
this.sent = this._sent = undefined;
|
|
3553
|
+
this.done = false;
|
|
3554
|
+
this.delegate = null;
|
|
3555
|
+
|
|
3556
|
+
this.method = "next";
|
|
3557
|
+
this.arg = undefined;
|
|
3558
|
+
|
|
3559
|
+
this.tryEntries.forEach(resetTryEntry);
|
|
3560
|
+
|
|
3561
|
+
if (!skipTempReset) {
|
|
3562
|
+
for (var name in this) {
|
|
3563
|
+
// Not sure about the optimal order of these conditions:
|
|
3564
|
+
if (name.charAt(0) === "t" &&
|
|
3565
|
+
hasOwn.call(this, name) &&
|
|
3566
|
+
!isNaN(+name.slice(1))) {
|
|
3567
|
+
this[name] = undefined;
|
|
3568
|
+
}
|
|
3569
|
+
}
|
|
3570
|
+
}
|
|
3571
|
+
},
|
|
3572
|
+
|
|
3573
|
+
stop: function() {
|
|
3574
|
+
this.done = true;
|
|
3575
|
+
|
|
3576
|
+
var rootEntry = this.tryEntries[0];
|
|
3577
|
+
var rootRecord = rootEntry.completion;
|
|
3578
|
+
if (rootRecord.type === "throw") {
|
|
3579
|
+
throw rootRecord.arg;
|
|
3580
|
+
}
|
|
3581
|
+
|
|
3582
|
+
return this.rval;
|
|
3583
|
+
},
|
|
3584
|
+
|
|
3585
|
+
dispatchException: function(exception) {
|
|
3586
|
+
if (this.done) {
|
|
3587
|
+
throw exception;
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3590
|
+
var context = this;
|
|
3591
|
+
function handle(loc, caught) {
|
|
3592
|
+
record.type = "throw";
|
|
3593
|
+
record.arg = exception;
|
|
3594
|
+
context.next = loc;
|
|
3595
|
+
|
|
3596
|
+
if (caught) {
|
|
3597
|
+
// If the dispatched exception was caught by a catch block,
|
|
3598
|
+
// then let that catch block handle the exception normally.
|
|
3599
|
+
context.method = "next";
|
|
3600
|
+
context.arg = undefined;
|
|
3601
|
+
}
|
|
3602
|
+
|
|
3603
|
+
return !! caught;
|
|
3604
|
+
}
|
|
3605
|
+
|
|
3606
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3607
|
+
var entry = this.tryEntries[i];
|
|
3608
|
+
var record = entry.completion;
|
|
3609
|
+
|
|
3610
|
+
if (entry.tryLoc === "root") {
|
|
3611
|
+
// Exception thrown outside of any try block that could handle
|
|
3612
|
+
// it, so set the completion value of the entire function to
|
|
3613
|
+
// throw the exception.
|
|
3614
|
+
return handle("end");
|
|
3615
|
+
}
|
|
3616
|
+
|
|
3617
|
+
if (entry.tryLoc <= this.prev) {
|
|
3618
|
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
3619
|
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
3620
|
+
|
|
3621
|
+
if (hasCatch && hasFinally) {
|
|
3622
|
+
if (this.prev < entry.catchLoc) {
|
|
3623
|
+
return handle(entry.catchLoc, true);
|
|
3624
|
+
} else if (this.prev < entry.finallyLoc) {
|
|
3625
|
+
return handle(entry.finallyLoc);
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
} else if (hasCatch) {
|
|
3629
|
+
if (this.prev < entry.catchLoc) {
|
|
3630
|
+
return handle(entry.catchLoc, true);
|
|
3631
|
+
}
|
|
3632
|
+
|
|
3633
|
+
} else if (hasFinally) {
|
|
3634
|
+
if (this.prev < entry.finallyLoc) {
|
|
3635
|
+
return handle(entry.finallyLoc);
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3638
|
+
} else {
|
|
3639
|
+
throw new Error("try statement without catch or finally");
|
|
3640
|
+
}
|
|
3641
|
+
}
|
|
3642
|
+
}
|
|
3643
|
+
},
|
|
3644
|
+
|
|
3645
|
+
abrupt: function(type, arg) {
|
|
3646
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3647
|
+
var entry = this.tryEntries[i];
|
|
3648
|
+
if (entry.tryLoc <= this.prev &&
|
|
3649
|
+
hasOwn.call(entry, "finallyLoc") &&
|
|
3650
|
+
this.prev < entry.finallyLoc) {
|
|
3651
|
+
var finallyEntry = entry;
|
|
3652
|
+
break;
|
|
3653
|
+
}
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
if (finallyEntry &&
|
|
3657
|
+
(type === "break" ||
|
|
3658
|
+
type === "continue") &&
|
|
3659
|
+
finallyEntry.tryLoc <= arg &&
|
|
3660
|
+
arg <= finallyEntry.finallyLoc) {
|
|
3661
|
+
// Ignore the finally entry if control is not jumping to a
|
|
3662
|
+
// location outside the try/catch block.
|
|
3663
|
+
finallyEntry = null;
|
|
3664
|
+
}
|
|
3665
|
+
|
|
3666
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
3667
|
+
record.type = type;
|
|
3668
|
+
record.arg = arg;
|
|
3669
|
+
|
|
3670
|
+
if (finallyEntry) {
|
|
3671
|
+
this.method = "next";
|
|
3672
|
+
this.next = finallyEntry.finallyLoc;
|
|
3673
|
+
return ContinueSentinel;
|
|
3674
|
+
}
|
|
3675
|
+
|
|
3676
|
+
return this.complete(record);
|
|
3677
|
+
},
|
|
3678
|
+
|
|
3679
|
+
complete: function(record, afterLoc) {
|
|
3680
|
+
if (record.type === "throw") {
|
|
3681
|
+
throw record.arg;
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3684
|
+
if (record.type === "break" ||
|
|
3685
|
+
record.type === "continue") {
|
|
3686
|
+
this.next = record.arg;
|
|
3687
|
+
} else if (record.type === "return") {
|
|
3688
|
+
this.rval = this.arg = record.arg;
|
|
3689
|
+
this.method = "return";
|
|
3690
|
+
this.next = "end";
|
|
3691
|
+
} else if (record.type === "normal" && afterLoc) {
|
|
3692
|
+
this.next = afterLoc;
|
|
3693
|
+
}
|
|
3694
|
+
|
|
3695
|
+
return ContinueSentinel;
|
|
3696
|
+
},
|
|
3697
|
+
|
|
3698
|
+
finish: function(finallyLoc) {
|
|
3699
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3700
|
+
var entry = this.tryEntries[i];
|
|
3701
|
+
if (entry.finallyLoc === finallyLoc) {
|
|
3702
|
+
this.complete(entry.completion, entry.afterLoc);
|
|
3703
|
+
resetTryEntry(entry);
|
|
3704
|
+
return ContinueSentinel;
|
|
3705
|
+
}
|
|
3706
|
+
}
|
|
3707
|
+
},
|
|
3708
|
+
|
|
3709
|
+
"catch": function(tryLoc) {
|
|
3710
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3711
|
+
var entry = this.tryEntries[i];
|
|
3712
|
+
if (entry.tryLoc === tryLoc) {
|
|
3713
|
+
var record = entry.completion;
|
|
3714
|
+
if (record.type === "throw") {
|
|
3715
|
+
var thrown = record.arg;
|
|
3716
|
+
resetTryEntry(entry);
|
|
3717
|
+
}
|
|
3718
|
+
return thrown;
|
|
3719
|
+
}
|
|
3720
|
+
}
|
|
3721
|
+
|
|
3722
|
+
// The context.catch method must only be called with a location
|
|
3723
|
+
// argument that corresponds to a known catch block.
|
|
3724
|
+
throw new Error("illegal catch attempt");
|
|
3725
|
+
},
|
|
3726
|
+
|
|
3727
|
+
delegateYield: function(iterable, resultName, nextLoc) {
|
|
3728
|
+
this.delegate = {
|
|
3729
|
+
iterator: values(iterable),
|
|
3730
|
+
resultName: resultName,
|
|
3731
|
+
nextLoc: nextLoc
|
|
3732
|
+
};
|
|
3733
|
+
|
|
3734
|
+
if (this.method === "next") {
|
|
3735
|
+
// Deliberately forget the last sent value so that we don't
|
|
3736
|
+
// accidentally pass it on to the delegate.
|
|
3737
|
+
this.arg = undefined;
|
|
3738
|
+
}
|
|
3739
|
+
|
|
3740
|
+
return ContinueSentinel;
|
|
3741
|
+
}
|
|
3742
|
+
};
|
|
3743
|
+
|
|
3744
|
+
// Regardless of whether this script is executing as a CommonJS module
|
|
3745
|
+
// or not, return the runtime object so that we can declare the variable
|
|
3746
|
+
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
3747
|
+
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
3748
|
+
return exports;
|
|
3749
|
+
|
|
3750
|
+
}(
|
|
3751
|
+
// If this script is executing as a CommonJS module, use module.exports
|
|
3752
|
+
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
3753
|
+
// object. Either way, the resulting object will be used to initialize
|
|
3754
|
+
// the regeneratorRuntime variable at the top of this file.
|
|
3755
|
+
true ? module.exports : undefined
|
|
3756
|
+
));
|
|
3757
|
+
|
|
3758
|
+
try {
|
|
3759
|
+
regeneratorRuntime = runtime;
|
|
3760
|
+
} catch (accidentalStrictMode) {
|
|
3761
|
+
// This module should not be running in strict mode, so the above
|
|
3762
|
+
// assignment should always work unless something is misconfigured. Just
|
|
3763
|
+
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
3764
|
+
// we can explicitly access globalThis. In older engines we can escape
|
|
3765
|
+
// strict mode using a global Function call. This could conceivably fail
|
|
3766
|
+
// if a Content Security Policy forbids using Function, but in that case
|
|
3767
|
+
// the proper solution is to fix the accidental strict mode problem. If
|
|
3768
|
+
// you've misconfigured your bundler to force strict mode and applied a
|
|
3769
|
+
// CSP to forbid Function, and you're not willing to fix either of those
|
|
3770
|
+
// problems, please detail your unique predicament in a GitHub issue.
|
|
3771
|
+
if (typeof globalThis === "object") {
|
|
3772
|
+
globalThis.regeneratorRuntime = runtime;
|
|
3773
|
+
} else {
|
|
3774
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
3775
|
+
}
|
|
3776
|
+
}
|
|
3777
|
+
|
|
3778
|
+
|
|
2641
3779
|
/***/ }),
|
|
2642
3780
|
|
|
2643
3781
|
/***/ "9a1f":
|
|
@@ -2805,6 +3943,16 @@ module.exports = function (argument) {
|
|
|
2805
3943
|
};
|
|
2806
3944
|
|
|
2807
3945
|
|
|
3946
|
+
/***/ }),
|
|
3947
|
+
|
|
3948
|
+
/***/ "a4b4":
|
|
3949
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3950
|
+
|
|
3951
|
+
var userAgent = __webpack_require__("342f");
|
|
3952
|
+
|
|
3953
|
+
module.exports = /web0s(?!.*chrome)/i.test(userAgent);
|
|
3954
|
+
|
|
3955
|
+
|
|
2808
3956
|
/***/ }),
|
|
2809
3957
|
|
|
2810
3958
|
/***/ "a4d3":
|
|
@@ -3488,6 +4636,98 @@ if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
|
|
|
3488
4636
|
}
|
|
3489
4637
|
|
|
3490
4638
|
|
|
4639
|
+
/***/ }),
|
|
4640
|
+
|
|
4641
|
+
/***/ "b575":
|
|
4642
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4643
|
+
|
|
4644
|
+
var global = __webpack_require__("da84");
|
|
4645
|
+
var bind = __webpack_require__("0366");
|
|
4646
|
+
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
|
4647
|
+
var macrotask = __webpack_require__("2cf4").set;
|
|
4648
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
4649
|
+
var IS_IOS_PEBBLE = __webpack_require__("d4c3");
|
|
4650
|
+
var IS_WEBOS_WEBKIT = __webpack_require__("a4b4");
|
|
4651
|
+
var IS_NODE = __webpack_require__("605d");
|
|
4652
|
+
|
|
4653
|
+
var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
|
|
4654
|
+
var document = global.document;
|
|
4655
|
+
var process = global.process;
|
|
4656
|
+
var Promise = global.Promise;
|
|
4657
|
+
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
4658
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
|
|
4659
|
+
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
4660
|
+
|
|
4661
|
+
var flush, head, last, notify, toggle, node, promise, then;
|
|
4662
|
+
|
|
4663
|
+
// modern engines have queueMicrotask method
|
|
4664
|
+
if (!queueMicrotask) {
|
|
4665
|
+
flush = function () {
|
|
4666
|
+
var parent, fn;
|
|
4667
|
+
if (IS_NODE && (parent = process.domain)) parent.exit();
|
|
4668
|
+
while (head) {
|
|
4669
|
+
fn = head.fn;
|
|
4670
|
+
head = head.next;
|
|
4671
|
+
try {
|
|
4672
|
+
fn();
|
|
4673
|
+
} catch (error) {
|
|
4674
|
+
if (head) notify();
|
|
4675
|
+
else last = undefined;
|
|
4676
|
+
throw error;
|
|
4677
|
+
}
|
|
4678
|
+
} last = undefined;
|
|
4679
|
+
if (parent) parent.enter();
|
|
4680
|
+
};
|
|
4681
|
+
|
|
4682
|
+
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
4683
|
+
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
4684
|
+
if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {
|
|
4685
|
+
toggle = true;
|
|
4686
|
+
node = document.createTextNode('');
|
|
4687
|
+
new MutationObserver(flush).observe(node, { characterData: true });
|
|
4688
|
+
notify = function () {
|
|
4689
|
+
node.data = toggle = !toggle;
|
|
4690
|
+
};
|
|
4691
|
+
// environments with maybe non-completely correct, but existent Promise
|
|
4692
|
+
} else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {
|
|
4693
|
+
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
4694
|
+
promise = Promise.resolve(undefined);
|
|
4695
|
+
// workaround of WebKit ~ iOS Safari 10.1 bug
|
|
4696
|
+
promise.constructor = Promise;
|
|
4697
|
+
then = bind(promise.then, promise);
|
|
4698
|
+
notify = function () {
|
|
4699
|
+
then(flush);
|
|
4700
|
+
};
|
|
4701
|
+
// Node.js without promises
|
|
4702
|
+
} else if (IS_NODE) {
|
|
4703
|
+
notify = function () {
|
|
4704
|
+
process.nextTick(flush);
|
|
4705
|
+
};
|
|
4706
|
+
// for other environments - macrotask based on:
|
|
4707
|
+
// - setImmediate
|
|
4708
|
+
// - MessageChannel
|
|
4709
|
+
// - window.postMessag
|
|
4710
|
+
// - onreadystatechange
|
|
4711
|
+
// - setTimeout
|
|
4712
|
+
} else {
|
|
4713
|
+
// strange IE + webpack dev server bug - use .bind(global)
|
|
4714
|
+
macrotask = bind(macrotask, global);
|
|
4715
|
+
notify = function () {
|
|
4716
|
+
macrotask(flush);
|
|
4717
|
+
};
|
|
4718
|
+
}
|
|
4719
|
+
}
|
|
4720
|
+
|
|
4721
|
+
module.exports = queueMicrotask || function (fn) {
|
|
4722
|
+
var task = { fn: fn, next: undefined };
|
|
4723
|
+
if (last) last.next = task;
|
|
4724
|
+
if (!head) {
|
|
4725
|
+
head = task;
|
|
4726
|
+
notify();
|
|
4727
|
+
} last = task;
|
|
4728
|
+
};
|
|
4729
|
+
|
|
4730
|
+
|
|
3491
4731
|
/***/ }),
|
|
3492
4732
|
|
|
3493
4733
|
/***/ "b622":
|
|
@@ -3862,6 +5102,25 @@ module.exports = function (it) {
|
|
|
3862
5102
|
};
|
|
3863
5103
|
|
|
3864
5104
|
|
|
5105
|
+
/***/ }),
|
|
5106
|
+
|
|
5107
|
+
/***/ "cdf9":
|
|
5108
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5109
|
+
|
|
5110
|
+
var anObject = __webpack_require__("825a");
|
|
5111
|
+
var isObject = __webpack_require__("861d");
|
|
5112
|
+
var newPromiseCapability = __webpack_require__("f069");
|
|
5113
|
+
|
|
5114
|
+
module.exports = function (C, x) {
|
|
5115
|
+
anObject(C);
|
|
5116
|
+
if (isObject(x) && x.constructor === C) return x;
|
|
5117
|
+
var promiseCapability = newPromiseCapability.f(C);
|
|
5118
|
+
var resolve = promiseCapability.resolve;
|
|
5119
|
+
resolve(x);
|
|
5120
|
+
return promiseCapability.promise;
|
|
5121
|
+
};
|
|
5122
|
+
|
|
5123
|
+
|
|
3865
5124
|
/***/ }),
|
|
3866
5125
|
|
|
3867
5126
|
/***/ "ce4e":
|
|
@@ -4023,6 +5282,17 @@ module.exports = function (target, TAG, STATIC) {
|
|
|
4023
5282
|
};
|
|
4024
5283
|
|
|
4025
5284
|
|
|
5285
|
+
/***/ }),
|
|
5286
|
+
|
|
5287
|
+
/***/ "d4c3":
|
|
5288
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5289
|
+
|
|
5290
|
+
var userAgent = __webpack_require__("342f");
|
|
5291
|
+
var global = __webpack_require__("da84");
|
|
5292
|
+
|
|
5293
|
+
module.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefined;
|
|
5294
|
+
|
|
5295
|
+
|
|
4026
5296
|
/***/ }),
|
|
4027
5297
|
|
|
4028
5298
|
/***/ "d784":
|
|
@@ -4477,6 +5747,19 @@ if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
|
|
|
4477
5747
|
} catch (error) { /* empty */ }
|
|
4478
5748
|
|
|
4479
5749
|
|
|
5750
|
+
/***/ }),
|
|
5751
|
+
|
|
5752
|
+
/***/ "e2cc":
|
|
5753
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5754
|
+
|
|
5755
|
+
var redefine = __webpack_require__("6eeb");
|
|
5756
|
+
|
|
5757
|
+
module.exports = function (target, src, options) {
|
|
5758
|
+
for (var key in src) redefine(target, key, src[key], options);
|
|
5759
|
+
return target;
|
|
5760
|
+
};
|
|
5761
|
+
|
|
5762
|
+
|
|
4480
5763
|
/***/ }),
|
|
4481
5764
|
|
|
4482
5765
|
/***/ "e330":
|
|
@@ -4588,6 +5871,430 @@ module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
|
4588
5871
|
};
|
|
4589
5872
|
|
|
4590
5873
|
|
|
5874
|
+
/***/ }),
|
|
5875
|
+
|
|
5876
|
+
/***/ "e667":
|
|
5877
|
+
/***/ (function(module, exports) {
|
|
5878
|
+
|
|
5879
|
+
module.exports = function (exec) {
|
|
5880
|
+
try {
|
|
5881
|
+
return { error: false, value: exec() };
|
|
5882
|
+
} catch (error) {
|
|
5883
|
+
return { error: true, value: error };
|
|
5884
|
+
}
|
|
5885
|
+
};
|
|
5886
|
+
|
|
5887
|
+
|
|
5888
|
+
/***/ }),
|
|
5889
|
+
|
|
5890
|
+
/***/ "e6cf":
|
|
5891
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5892
|
+
|
|
5893
|
+
"use strict";
|
|
5894
|
+
|
|
5895
|
+
var $ = __webpack_require__("23e7");
|
|
5896
|
+
var IS_PURE = __webpack_require__("c430");
|
|
5897
|
+
var global = __webpack_require__("da84");
|
|
5898
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
5899
|
+
var call = __webpack_require__("c65b");
|
|
5900
|
+
var NativePromise = __webpack_require__("fea9");
|
|
5901
|
+
var redefine = __webpack_require__("6eeb");
|
|
5902
|
+
var redefineAll = __webpack_require__("e2cc");
|
|
5903
|
+
var setPrototypeOf = __webpack_require__("d2bb");
|
|
5904
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
5905
|
+
var setSpecies = __webpack_require__("2626");
|
|
5906
|
+
var aCallable = __webpack_require__("59ed");
|
|
5907
|
+
var isCallable = __webpack_require__("1626");
|
|
5908
|
+
var isObject = __webpack_require__("861d");
|
|
5909
|
+
var anInstance = __webpack_require__("19aa");
|
|
5910
|
+
var inspectSource = __webpack_require__("8925");
|
|
5911
|
+
var iterate = __webpack_require__("2266");
|
|
5912
|
+
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
|
5913
|
+
var speciesConstructor = __webpack_require__("4840");
|
|
5914
|
+
var task = __webpack_require__("2cf4").set;
|
|
5915
|
+
var microtask = __webpack_require__("b575");
|
|
5916
|
+
var promiseResolve = __webpack_require__("cdf9");
|
|
5917
|
+
var hostReportErrors = __webpack_require__("44de");
|
|
5918
|
+
var newPromiseCapabilityModule = __webpack_require__("f069");
|
|
5919
|
+
var perform = __webpack_require__("e667");
|
|
5920
|
+
var Queue = __webpack_require__("01b4");
|
|
5921
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
5922
|
+
var isForced = __webpack_require__("94ca");
|
|
5923
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
5924
|
+
var IS_BROWSER = __webpack_require__("6069");
|
|
5925
|
+
var IS_NODE = __webpack_require__("605d");
|
|
5926
|
+
var V8_VERSION = __webpack_require__("2d00");
|
|
5927
|
+
|
|
5928
|
+
var SPECIES = wellKnownSymbol('species');
|
|
5929
|
+
var PROMISE = 'Promise';
|
|
5930
|
+
|
|
5931
|
+
var getInternalState = InternalStateModule.getterFor(PROMISE);
|
|
5932
|
+
var setInternalState = InternalStateModule.set;
|
|
5933
|
+
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
5934
|
+
var NativePromisePrototype = NativePromise && NativePromise.prototype;
|
|
5935
|
+
var PromiseConstructor = NativePromise;
|
|
5936
|
+
var PromisePrototype = NativePromisePrototype;
|
|
5937
|
+
var TypeError = global.TypeError;
|
|
5938
|
+
var document = global.document;
|
|
5939
|
+
var process = global.process;
|
|
5940
|
+
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
5941
|
+
var newGenericPromiseCapability = newPromiseCapability;
|
|
5942
|
+
|
|
5943
|
+
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
|
|
5944
|
+
var NATIVE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);
|
|
5945
|
+
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
5946
|
+
var REJECTION_HANDLED = 'rejectionhandled';
|
|
5947
|
+
var PENDING = 0;
|
|
5948
|
+
var FULFILLED = 1;
|
|
5949
|
+
var REJECTED = 2;
|
|
5950
|
+
var HANDLED = 1;
|
|
5951
|
+
var UNHANDLED = 2;
|
|
5952
|
+
var SUBCLASSING = false;
|
|
5953
|
+
|
|
5954
|
+
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
5955
|
+
|
|
5956
|
+
var FORCED = isForced(PROMISE, function () {
|
|
5957
|
+
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
|
|
5958
|
+
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
|
|
5959
|
+
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
5960
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
5961
|
+
// We can't detect it synchronously, so just check versions
|
|
5962
|
+
if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
|
|
5963
|
+
// We need Promise#finally in the pure version for preventing prototype pollution
|
|
5964
|
+
if (IS_PURE && !PromisePrototype['finally']) return true;
|
|
5965
|
+
// We can't use @@species feature detection in V8 since it causes
|
|
5966
|
+
// deoptimization and performance degradation
|
|
5967
|
+
// https://github.com/zloirock/core-js/issues/679
|
|
5968
|
+
if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
|
|
5969
|
+
// Detect correctness of subclassing with @@species support
|
|
5970
|
+
var promise = new PromiseConstructor(function (resolve) { resolve(1); });
|
|
5971
|
+
var FakePromise = function (exec) {
|
|
5972
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
5973
|
+
};
|
|
5974
|
+
var constructor = promise.constructor = {};
|
|
5975
|
+
constructor[SPECIES] = FakePromise;
|
|
5976
|
+
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
5977
|
+
if (!SUBCLASSING) return true;
|
|
5978
|
+
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
5979
|
+
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
|
|
5980
|
+
});
|
|
5981
|
+
|
|
5982
|
+
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
|
|
5983
|
+
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
|
|
5984
|
+
});
|
|
5985
|
+
|
|
5986
|
+
// helpers
|
|
5987
|
+
var isThenable = function (it) {
|
|
5988
|
+
var then;
|
|
5989
|
+
return isObject(it) && isCallable(then = it.then) ? then : false;
|
|
5990
|
+
};
|
|
5991
|
+
|
|
5992
|
+
var callReaction = function (reaction, state) {
|
|
5993
|
+
var value = state.value;
|
|
5994
|
+
var ok = state.state == FULFILLED;
|
|
5995
|
+
var handler = ok ? reaction.ok : reaction.fail;
|
|
5996
|
+
var resolve = reaction.resolve;
|
|
5997
|
+
var reject = reaction.reject;
|
|
5998
|
+
var domain = reaction.domain;
|
|
5999
|
+
var result, then, exited;
|
|
6000
|
+
try {
|
|
6001
|
+
if (handler) {
|
|
6002
|
+
if (!ok) {
|
|
6003
|
+
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
|
6004
|
+
state.rejection = HANDLED;
|
|
6005
|
+
}
|
|
6006
|
+
if (handler === true) result = value;
|
|
6007
|
+
else {
|
|
6008
|
+
if (domain) domain.enter();
|
|
6009
|
+
result = handler(value); // can throw
|
|
6010
|
+
if (domain) {
|
|
6011
|
+
domain.exit();
|
|
6012
|
+
exited = true;
|
|
6013
|
+
}
|
|
6014
|
+
}
|
|
6015
|
+
if (result === reaction.promise) {
|
|
6016
|
+
reject(TypeError('Promise-chain cycle'));
|
|
6017
|
+
} else if (then = isThenable(result)) {
|
|
6018
|
+
call(then, result, resolve, reject);
|
|
6019
|
+
} else resolve(result);
|
|
6020
|
+
} else reject(value);
|
|
6021
|
+
} catch (error) {
|
|
6022
|
+
if (domain && !exited) domain.exit();
|
|
6023
|
+
reject(error);
|
|
6024
|
+
}
|
|
6025
|
+
};
|
|
6026
|
+
|
|
6027
|
+
var notify = function (state, isReject) {
|
|
6028
|
+
if (state.notified) return;
|
|
6029
|
+
state.notified = true;
|
|
6030
|
+
microtask(function () {
|
|
6031
|
+
var reactions = state.reactions;
|
|
6032
|
+
var reaction;
|
|
6033
|
+
while (reaction = reactions.get()) {
|
|
6034
|
+
callReaction(reaction, state);
|
|
6035
|
+
}
|
|
6036
|
+
state.notified = false;
|
|
6037
|
+
if (isReject && !state.rejection) onUnhandled(state);
|
|
6038
|
+
});
|
|
6039
|
+
};
|
|
6040
|
+
|
|
6041
|
+
var dispatchEvent = function (name, promise, reason) {
|
|
6042
|
+
var event, handler;
|
|
6043
|
+
if (DISPATCH_EVENT) {
|
|
6044
|
+
event = document.createEvent('Event');
|
|
6045
|
+
event.promise = promise;
|
|
6046
|
+
event.reason = reason;
|
|
6047
|
+
event.initEvent(name, false, true);
|
|
6048
|
+
global.dispatchEvent(event);
|
|
6049
|
+
} else event = { promise: promise, reason: reason };
|
|
6050
|
+
if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
|
|
6051
|
+
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
6052
|
+
};
|
|
6053
|
+
|
|
6054
|
+
var onUnhandled = function (state) {
|
|
6055
|
+
call(task, global, function () {
|
|
6056
|
+
var promise = state.facade;
|
|
6057
|
+
var value = state.value;
|
|
6058
|
+
var IS_UNHANDLED = isUnhandled(state);
|
|
6059
|
+
var result;
|
|
6060
|
+
if (IS_UNHANDLED) {
|
|
6061
|
+
result = perform(function () {
|
|
6062
|
+
if (IS_NODE) {
|
|
6063
|
+
process.emit('unhandledRejection', value, promise);
|
|
6064
|
+
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
6065
|
+
});
|
|
6066
|
+
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
6067
|
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
6068
|
+
if (result.error) throw result.value;
|
|
6069
|
+
}
|
|
6070
|
+
});
|
|
6071
|
+
};
|
|
6072
|
+
|
|
6073
|
+
var isUnhandled = function (state) {
|
|
6074
|
+
return state.rejection !== HANDLED && !state.parent;
|
|
6075
|
+
};
|
|
6076
|
+
|
|
6077
|
+
var onHandleUnhandled = function (state) {
|
|
6078
|
+
call(task, global, function () {
|
|
6079
|
+
var promise = state.facade;
|
|
6080
|
+
if (IS_NODE) {
|
|
6081
|
+
process.emit('rejectionHandled', promise);
|
|
6082
|
+
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
6083
|
+
});
|
|
6084
|
+
};
|
|
6085
|
+
|
|
6086
|
+
var bind = function (fn, state, unwrap) {
|
|
6087
|
+
return function (value) {
|
|
6088
|
+
fn(state, value, unwrap);
|
|
6089
|
+
};
|
|
6090
|
+
};
|
|
6091
|
+
|
|
6092
|
+
var internalReject = function (state, value, unwrap) {
|
|
6093
|
+
if (state.done) return;
|
|
6094
|
+
state.done = true;
|
|
6095
|
+
if (unwrap) state = unwrap;
|
|
6096
|
+
state.value = value;
|
|
6097
|
+
state.state = REJECTED;
|
|
6098
|
+
notify(state, true);
|
|
6099
|
+
};
|
|
6100
|
+
|
|
6101
|
+
var internalResolve = function (state, value, unwrap) {
|
|
6102
|
+
if (state.done) return;
|
|
6103
|
+
state.done = true;
|
|
6104
|
+
if (unwrap) state = unwrap;
|
|
6105
|
+
try {
|
|
6106
|
+
if (state.facade === value) throw TypeError("Promise can't be resolved itself");
|
|
6107
|
+
var then = isThenable(value);
|
|
6108
|
+
if (then) {
|
|
6109
|
+
microtask(function () {
|
|
6110
|
+
var wrapper = { done: false };
|
|
6111
|
+
try {
|
|
6112
|
+
call(then, value,
|
|
6113
|
+
bind(internalResolve, wrapper, state),
|
|
6114
|
+
bind(internalReject, wrapper, state)
|
|
6115
|
+
);
|
|
6116
|
+
} catch (error) {
|
|
6117
|
+
internalReject(wrapper, error, state);
|
|
6118
|
+
}
|
|
6119
|
+
});
|
|
6120
|
+
} else {
|
|
6121
|
+
state.value = value;
|
|
6122
|
+
state.state = FULFILLED;
|
|
6123
|
+
notify(state, false);
|
|
6124
|
+
}
|
|
6125
|
+
} catch (error) {
|
|
6126
|
+
internalReject({ done: false }, error, state);
|
|
6127
|
+
}
|
|
6128
|
+
};
|
|
6129
|
+
|
|
6130
|
+
// constructor polyfill
|
|
6131
|
+
if (FORCED) {
|
|
6132
|
+
// 25.4.3.1 Promise(executor)
|
|
6133
|
+
PromiseConstructor = function Promise(executor) {
|
|
6134
|
+
anInstance(this, PromisePrototype);
|
|
6135
|
+
aCallable(executor);
|
|
6136
|
+
call(Internal, this);
|
|
6137
|
+
var state = getInternalState(this);
|
|
6138
|
+
try {
|
|
6139
|
+
executor(bind(internalResolve, state), bind(internalReject, state));
|
|
6140
|
+
} catch (error) {
|
|
6141
|
+
internalReject(state, error);
|
|
6142
|
+
}
|
|
6143
|
+
};
|
|
6144
|
+
PromisePrototype = PromiseConstructor.prototype;
|
|
6145
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
6146
|
+
Internal = function Promise(executor) {
|
|
6147
|
+
setInternalState(this, {
|
|
6148
|
+
type: PROMISE,
|
|
6149
|
+
done: false,
|
|
6150
|
+
notified: false,
|
|
6151
|
+
parent: false,
|
|
6152
|
+
reactions: new Queue(),
|
|
6153
|
+
rejection: false,
|
|
6154
|
+
state: PENDING,
|
|
6155
|
+
value: undefined
|
|
6156
|
+
});
|
|
6157
|
+
};
|
|
6158
|
+
Internal.prototype = redefineAll(PromisePrototype, {
|
|
6159
|
+
// `Promise.prototype.then` method
|
|
6160
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
6161
|
+
// eslint-disable-next-line unicorn/no-thenable -- safe
|
|
6162
|
+
then: function then(onFulfilled, onRejected) {
|
|
6163
|
+
var state = getInternalPromiseState(this);
|
|
6164
|
+
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
|
6165
|
+
state.parent = true;
|
|
6166
|
+
reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
|
|
6167
|
+
reaction.fail = isCallable(onRejected) && onRejected;
|
|
6168
|
+
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
6169
|
+
if (state.state == PENDING) state.reactions.add(reaction);
|
|
6170
|
+
else microtask(function () {
|
|
6171
|
+
callReaction(reaction, state);
|
|
6172
|
+
});
|
|
6173
|
+
return reaction.promise;
|
|
6174
|
+
},
|
|
6175
|
+
// `Promise.prototype.catch` method
|
|
6176
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
6177
|
+
'catch': function (onRejected) {
|
|
6178
|
+
return this.then(undefined, onRejected);
|
|
6179
|
+
}
|
|
6180
|
+
});
|
|
6181
|
+
OwnPromiseCapability = function () {
|
|
6182
|
+
var promise = new Internal();
|
|
6183
|
+
var state = getInternalState(promise);
|
|
6184
|
+
this.promise = promise;
|
|
6185
|
+
this.resolve = bind(internalResolve, state);
|
|
6186
|
+
this.reject = bind(internalReject, state);
|
|
6187
|
+
};
|
|
6188
|
+
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
|
6189
|
+
return C === PromiseConstructor || C === PromiseWrapper
|
|
6190
|
+
? new OwnPromiseCapability(C)
|
|
6191
|
+
: newGenericPromiseCapability(C);
|
|
6192
|
+
};
|
|
6193
|
+
|
|
6194
|
+
if (!IS_PURE && isCallable(NativePromise) && NativePromisePrototype !== Object.prototype) {
|
|
6195
|
+
nativeThen = NativePromisePrototype.then;
|
|
6196
|
+
|
|
6197
|
+
if (!SUBCLASSING) {
|
|
6198
|
+
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
6199
|
+
redefine(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
6200
|
+
var that = this;
|
|
6201
|
+
return new PromiseConstructor(function (resolve, reject) {
|
|
6202
|
+
call(nativeThen, that, resolve, reject);
|
|
6203
|
+
}).then(onFulfilled, onRejected);
|
|
6204
|
+
// https://github.com/zloirock/core-js/issues/640
|
|
6205
|
+
}, { unsafe: true });
|
|
6206
|
+
|
|
6207
|
+
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
6208
|
+
redefine(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
|
|
6209
|
+
}
|
|
6210
|
+
|
|
6211
|
+
// make `.constructor === Promise` work for native promise-based APIs
|
|
6212
|
+
try {
|
|
6213
|
+
delete NativePromisePrototype.constructor;
|
|
6214
|
+
} catch (error) { /* empty */ }
|
|
6215
|
+
|
|
6216
|
+
// make `instanceof Promise` work for native promise-based APIs
|
|
6217
|
+
if (setPrototypeOf) {
|
|
6218
|
+
setPrototypeOf(NativePromisePrototype, PromisePrototype);
|
|
6219
|
+
}
|
|
6220
|
+
}
|
|
6221
|
+
}
|
|
6222
|
+
|
|
6223
|
+
$({ global: true, wrap: true, forced: FORCED }, {
|
|
6224
|
+
Promise: PromiseConstructor
|
|
6225
|
+
});
|
|
6226
|
+
|
|
6227
|
+
setToStringTag(PromiseConstructor, PROMISE, false, true);
|
|
6228
|
+
setSpecies(PROMISE);
|
|
6229
|
+
|
|
6230
|
+
PromiseWrapper = getBuiltIn(PROMISE);
|
|
6231
|
+
|
|
6232
|
+
// statics
|
|
6233
|
+
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
6234
|
+
// `Promise.reject` method
|
|
6235
|
+
// https://tc39.es/ecma262/#sec-promise.reject
|
|
6236
|
+
reject: function reject(r) {
|
|
6237
|
+
var capability = newPromiseCapability(this);
|
|
6238
|
+
call(capability.reject, undefined, r);
|
|
6239
|
+
return capability.promise;
|
|
6240
|
+
}
|
|
6241
|
+
});
|
|
6242
|
+
|
|
6243
|
+
$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
|
|
6244
|
+
// `Promise.resolve` method
|
|
6245
|
+
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
6246
|
+
resolve: function resolve(x) {
|
|
6247
|
+
return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
|
|
6248
|
+
}
|
|
6249
|
+
});
|
|
6250
|
+
|
|
6251
|
+
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
6252
|
+
// `Promise.all` method
|
|
6253
|
+
// https://tc39.es/ecma262/#sec-promise.all
|
|
6254
|
+
all: function all(iterable) {
|
|
6255
|
+
var C = this;
|
|
6256
|
+
var capability = newPromiseCapability(C);
|
|
6257
|
+
var resolve = capability.resolve;
|
|
6258
|
+
var reject = capability.reject;
|
|
6259
|
+
var result = perform(function () {
|
|
6260
|
+
var $promiseResolve = aCallable(C.resolve);
|
|
6261
|
+
var values = [];
|
|
6262
|
+
var counter = 0;
|
|
6263
|
+
var remaining = 1;
|
|
6264
|
+
iterate(iterable, function (promise) {
|
|
6265
|
+
var index = counter++;
|
|
6266
|
+
var alreadyCalled = false;
|
|
6267
|
+
remaining++;
|
|
6268
|
+
call($promiseResolve, C, promise).then(function (value) {
|
|
6269
|
+
if (alreadyCalled) return;
|
|
6270
|
+
alreadyCalled = true;
|
|
6271
|
+
values[index] = value;
|
|
6272
|
+
--remaining || resolve(values);
|
|
6273
|
+
}, reject);
|
|
6274
|
+
});
|
|
6275
|
+
--remaining || resolve(values);
|
|
6276
|
+
});
|
|
6277
|
+
if (result.error) reject(result.value);
|
|
6278
|
+
return capability.promise;
|
|
6279
|
+
},
|
|
6280
|
+
// `Promise.race` method
|
|
6281
|
+
// https://tc39.es/ecma262/#sec-promise.race
|
|
6282
|
+
race: function race(iterable) {
|
|
6283
|
+
var C = this;
|
|
6284
|
+
var capability = newPromiseCapability(C);
|
|
6285
|
+
var reject = capability.reject;
|
|
6286
|
+
var result = perform(function () {
|
|
6287
|
+
var $promiseResolve = aCallable(C.resolve);
|
|
6288
|
+
iterate(iterable, function (promise) {
|
|
6289
|
+
call($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
6290
|
+
});
|
|
6291
|
+
});
|
|
6292
|
+
if (result.error) reject(result.value);
|
|
6293
|
+
return capability.promise;
|
|
6294
|
+
}
|
|
6295
|
+
});
|
|
6296
|
+
|
|
6297
|
+
|
|
4591
6298
|
/***/ }),
|
|
4592
6299
|
|
|
4593
6300
|
/***/ "e893":
|
|
@@ -4654,6 +6361,33 @@ module.exports = function (it) {
|
|
|
4654
6361
|
/* unused harmony reexport * */
|
|
4655
6362
|
|
|
4656
6363
|
|
|
6364
|
+
/***/ }),
|
|
6365
|
+
|
|
6366
|
+
/***/ "f069":
|
|
6367
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6368
|
+
|
|
6369
|
+
"use strict";
|
|
6370
|
+
|
|
6371
|
+
var aCallable = __webpack_require__("59ed");
|
|
6372
|
+
|
|
6373
|
+
var PromiseCapability = function (C) {
|
|
6374
|
+
var resolve, reject;
|
|
6375
|
+
this.promise = new C(function ($$resolve, $$reject) {
|
|
6376
|
+
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
|
6377
|
+
resolve = $$resolve;
|
|
6378
|
+
reject = $$reject;
|
|
6379
|
+
});
|
|
6380
|
+
this.resolve = aCallable(resolve);
|
|
6381
|
+
this.reject = aCallable(reject);
|
|
6382
|
+
};
|
|
6383
|
+
|
|
6384
|
+
// `NewPromiseCapability` abstract operation
|
|
6385
|
+
// https://tc39.es/ecma262/#sec-newpromisecapability
|
|
6386
|
+
module.exports.f = function (C) {
|
|
6387
|
+
return new PromiseCapability(C);
|
|
6388
|
+
};
|
|
6389
|
+
|
|
6390
|
+
|
|
4657
6391
|
/***/ }),
|
|
4658
6392
|
|
|
4659
6393
|
/***/ "f36a":
|
|
@@ -5258,14 +6992,14 @@ var Alert_component = normalizeComponent(
|
|
|
5258
6992
|
)
|
|
5259
6993
|
|
|
5260
6994
|
/* harmony default export */ var Alert = (Alert_component.exports);
|
|
5261
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"526e57d7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Header/Header.vue?vue&type=template&id=
|
|
5262
|
-
var
|
|
6995
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"526e57d7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Header/Header.vue?vue&type=template&id=0267d418&
|
|
6996
|
+
var Headervue_type_template_id_0267d418_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('header',{staticClass:"a-header",class:[{'bordered': _vm.isBordered}, {'fixed': _vm.isFixed}]},[_c('div',{staticClass:"container"},[_c('div',{staticClass:"a-header__left"},[_c('a',{staticClass:"logo",attrs:{"href":_vm.toAdtdev('https://adata.kz')}},[_c('svg',{staticClass:"adata-logo",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 166 48"}},[_c('path',{attrs:{"d":"M62.926 38.22v-28h10.316c10.342 0 15.511 4.55 15.508 13.652 0 4.36-1.41 7.843-4.232 10.448-2.822 2.605-6.58 3.907-11.276 3.904l-10.316-.004zm6.56-22.868v17.752h3.248c2.839 0 5.069-.82 6.69-2.46 1.622-1.64 2.43-3.873 2.424-6.7 0-2.667-.8-4.767-2.403-6.3-1.602-1.533-3.853-2.297-6.752-2.292h-3.206zM118.5 38.22h-7.131l-2.079-6.228H98.958l-2.079 6.228h-7.093l10.598-28h7.775l10.341 28zm-10.723-11.072l-3.127-9.416a11.94 11.94 0 01-.486-2.516h-.162c-.07.83-.24 1.649-.508 2.44l-3.168 9.492h7.451zm31.833-11.796h-8.316V38.22h-6.557V15.352h-8.274v-5.136h23.147v5.136zM166 38.22h-7.143l-2.079-6.228h-10.349l-2.05 6.228h-7.106l10.598-28h7.776l10.353 28zm-10.719-11.072l-3.127-9.416a11.94 11.94 0 01-.486-2.516h-.163c-.069.83-.239 1.649-.507 2.44l-3.168 9.492h7.451zM24.553 15.252h-.163c-.069.83-.24 1.649-.507 2.44L20.715 27.2h7.45l-3.126-9.412a12.02 12.02 0 01-.486-2.536z"}}),_c('path',{attrs:{"d":"M44.905 0H4.99a5.091 5.091 0 00-3.528 1.406A4.71 4.71 0 000 4.8v38.4a4.71 4.71 0 001.461 3.394A5.091 5.091 0 004.99 48h39.916a5.091 5.091 0 003.528-1.406 4.71 4.71 0 001.462-3.394V4.8a4.71 4.71 0 00-1.462-3.394A5.091 5.091 0 0044.905 0zM31.737 38.26l-2.079-6.232H19.305l-2.05 6.232h-7.097l10.598-28h7.776l10.353 28h-7.148z"}})])]),(_vm.subheaderItems.length > 0)?_c('div',{staticClass:"menu"},_vm._l((_vm.subheaderItems),function(item,index){return _c('a',{key:index,staticClass:"menu__wrapper menu__items",class:{active: _vm.locationUrl.includes(_vm.toAdtdev(item.url))},attrs:{"href":item.url}},[_vm._v(" "+_vm._s(item.name)+" ")])}),0):_vm._e()]),_c('div',{staticClass:"a-header__right"},[_vm._t("chooseCountry"),_c('Profile',{attrs:{"profileDropDown":_vm.profileDropDown,"isDev":_vm.isDev,"isAuthenticated":_vm.isAuthenticated,"requestCount":_vm.requestCount,"daysRemaining":_vm.daysRemaining,"email":_vm.email,"loginUrl":_vm.loginUrl,"activeTabKey":_vm.activeTabKey},on:{"showBalanceModal":function (val) { _vm.$emit('showBalanceModal', val) },"setShowModal":function (val) { _vm.$emit('setShowModal', val) },"logout":function($event){return _vm.$emit('logout')},"setIsReplenishModal":function (val) { _vm.$emit('setIsReplenishModal', val) }}}),_c('div',{staticClass:"menu_mobile--switcher",on:{"click":_vm.changeValue}},[_c('svg',{attrs:{"width":"24","height":"24","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2 4h20v2H2V4zm0 14h20v2H2v-2zm0-7h20v2H2v-2z","fill":"#2C3E50"}})])])],2)]),_c('MobileToggle',{scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
5263
6997
|
var animationClass = ref.animationClass;
|
|
5264
6998
|
return [_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.subheaderItems.length > 0 && _vm.isOpen),expression:"subheaderItems.length > 0 && isOpen"}],staticClass:"menu_mobile",class:animationClass},[_c('div',{staticClass:"mobile-table-head",on:{"click":function($event){$event.stopPropagation();return _vm.changeValue.apply(null, arguments)}}},[_c('svg',{attrs:{"width":"18","height":"18","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M4.414 18.142L18.556 4l1.415 1.414L5.828 19.556l-1.414-1.414z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M5.414 4l14.142 14.142-1.414 1.414L4 5.414 5.414 4z","fill":"#2C3E50"}})])]),_vm._l((_vm.subheaderItems),function(item,index){return _c('div',{key:index,staticClass:"menu_mobile-wrapper",class:{'active-burger-tab': _vm.locationUrl.includes(_vm.toAdtdev(item.url))},on:{"click":function($event){return _vm.handleClick(item.url)}}},[_vm._v(" "+_vm._s(item.name)+" ")])})],2)]}}])})],1)}
|
|
5265
|
-
var
|
|
6999
|
+
var Headervue_type_template_id_0267d418_staticRenderFns = []
|
|
5266
7000
|
|
|
5267
7001
|
|
|
5268
|
-
// CONCATENATED MODULE: ./src/components/Header/Header.vue?vue&type=template&id=
|
|
7002
|
+
// CONCATENATED MODULE: ./src/components/Header/Header.vue?vue&type=template&id=0267d418&
|
|
5269
7003
|
|
|
5270
7004
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
5271
7005
|
var es_number_constructor = __webpack_require__("a9e3");
|
|
@@ -5282,21 +7016,63 @@ var es_function_name = __webpack_require__("b0c0");
|
|
|
5282
7016
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
5283
7017
|
var es_regexp_to_string = __webpack_require__("25f0");
|
|
5284
7018
|
|
|
5285
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"526e57d7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Header/Profile.vue?vue&type=template&id=
|
|
5286
|
-
var
|
|
7019
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"526e57d7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Header/Profile.vue?vue&type=template&id=4ff2c258&
|
|
7020
|
+
var Profilevue_type_template_id_4ff2c258_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"profile",class:{ active: _vm.active }},[_c('div',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () {_vm.active = false}),expression:"() => {active = false}"}]},[_c('div',{staticClass:"profile__inner"},[(_vm.requestCount !== null && _vm.isAuthenticated)?_c('div',{staticClass:"requests__link"},[_vm._v(" Суточный лимит запросов: "),_c('span',[_vm._v(" "+_vm._s(_vm.requestCount)+" "+_vm._s((_vm.daysRemaining === null || _vm.daysRemaining === '-') ? '' : ("(" + _vm.daysRemaining + ")"))+" ")])]):_vm._e(),_c('div',{staticClass:"profile__item",on:{"click":function($event){_vm.active = !_vm.active}}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isAuthenticated),expression:"isAuthenticated"}],staticClass:"profile__item-link"},[_c('span',{staticClass:"desktop"},[_vm._v(_vm._s(_vm.email))]),_c('svg',{staticClass:"desktop arrow-svg",class:{ rotate: _vm.active },attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 16 16"}},[_c('path',{attrs:{"fill":"none","d":"M0 0h16v16H0z"}}),_c('path',{attrs:{"fill":"none","d":"M3 6.5L8 10l5-3.5","stroke":"#2C3E50","stroke-linecap":"round","stroke-linejoin":"round"}})])]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isAuthenticated),expression:"isAuthenticated"}],staticClass:"profile__item-link"},[_c('svg',{staticClass:"user",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M15.5 8a3.5 3.5 0 11-7 0 3.5 3.5 0 017 0zm-1.023 4.344a5 5 0 10-4.954 0C5.757 13.417 3 16.874 3 20.974V21h1.543v-.026c0-4.106 3.339-7.435 7.457-7.435 4.119 0 7.457 3.329 7.457 7.435V21H21v-.026c0-4.1-2.757-7.557-6.523-8.63z","fill":"#2C3E50"}})])]),_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isAuthenticated),expression:"!isAuthenticated"}],staticClass:"sign",attrs:{"href":_vm.loginUrl}},[_c('svg',{staticClass:"desktop",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 16 16"}},[_c('path',{attrs:{"fill":"#fff","d":"M0 0h16v16H0z","stroke":"none"}}),_c('path',{attrs:{"d":"M8 10l2-2.054L8.077 6","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}}),_c('path',{attrs:{"d":"M6 4.1V2h8v12H6v-1.65M9 8H2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}})]),_c('svg',{staticClass:"user",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M13 7.94L17.06 12 13 16.06 11.94 15l3-3-3-3L13 7.94z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M8.25 2.25h13.5v19.5H8.25v-4.5h1.5v3h10.5V3.75H9.75v3h-1.5v-4.5z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2.25 11.25h13.5v1.5H2.25v-1.5z","fill":"#2C3E50"}})]),_c('span',{staticClass:"sign_text"},[_vm._v("Вход")])])])]),_c('SlideToggle',{scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
5287
7021
|
var animationClass = ref.animationClass;
|
|
5288
|
-
return [(_vm.isAuthenticated)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.active),expression:"active"}],staticClass:"profile-menu",class:animationClass},[_c('div',{staticClass:"profile-menu__inner"},[(_vm.listDropDown.length)?_c('div',{staticClass:"profile-menu__items"},_vm._l((_vm.listDropDown),function(elem,index){return _c('div',{key:index},[(elem.url)?_c('div',{staticClass:"gray-text",class:elem.link ? 'profile-menu__balance-link': 'profile-menu__links',on:{"click":function($event){return _vm.handleClick(elem.url, elem.name)}}},[_c('div',[_vm._v(" "+_vm._s(elem.name)+" ")]),(elem.link)?_c('span',{staticClass:"profile-menu__balance",on:{"click":function($event){return _vm.
|
|
7022
|
+
return [(_vm.isAuthenticated)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.active),expression:"active"}],staticClass:"profile-menu",class:animationClass},[_c('div',{staticClass:"profile-menu__inner"},[(_vm.listDropDown.length)?_c('div',{staticClass:"profile-menu__items"},_vm._l((_vm.listDropDown),function(elem,index){return _c('div',{key:index},[(elem.url)?_c('div',{staticClass:"gray-text",class:elem.link ? 'profile-menu__balance-link': 'profile-menu__links',on:{"click":function($event){return _vm.handleClick(elem.url, elem.name)}}},[_c('div',[_vm._v(" "+_vm._s(elem.name)+" ")]),(elem.link)?_c('span',{staticClass:"profile-menu__balance",on:{"click":function($event){return _vm.showModal(elem.url, elem.name)}}},[_vm._v(" "+_vm._s(elem.link)+" ")]):_vm._e()]):_vm._e(),(elem.children)?_c('div',{staticClass:"gray-text profile-menu__item",on:{"click":function($event){return _vm.rotateItem(index)}}},[_c('div',{staticClass:"profile-menu__item__children"},[_vm._v(_vm._s(elem.name)+" "),(elem.children.length > 0)?_c('span',[_c('svg',{class:{'rotated': elem.opened},attrs:{"width":"12","height":"8","viewBox":"0 0 12 8","fill":"none","xmlns":"http://www.w3.org/2000/svg"}},[_c('path',{attrs:{"d":"M1 1.5L6 6.5L11 1.5","stroke":"#69797D","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])]):_vm._e()]),_c('SlideToggle',{class:animationClass,scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
5289
7023
|
var animationClass = ref.animationClass;
|
|
5290
7024
|
return [(elem.opened)?_c('div',[_vm._l((elem.children),function(child,idx){return [(child.url)?_c('div',{key:idx + 'link',staticClass:"profile-menu__item__child",on:{"click":function($event){return _vm.handleClick(child.url, child.name)}}},[_c('span',[_c('svg',{attrs:{"width":"4","height":"4","viewBox":"0 0 4 4","fill":"none","xmlns":"http://www.w3.org/2000/svg"}},[_c('circle',{attrs:{"cx":"2","cy":"2","r":"2","fill":"#2C3E50"}})]),_vm._v(" "+_vm._s(child.name)+" ")])]):_vm._e()]})],2):_vm._e()]}}],null,true)})],1):_vm._e()])}),0):_vm._e(),_c('div',{staticClass:"exit",on:{"click":_vm.logout}},[_c('svg',{attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 16 16"}},[_c('path',{attrs:{"d":"M11 10l2-2.054L11.077 6M10 11.9V14H2V2h8v1.65M12 8H5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}})]),_vm._v(" Выход ")])])]):_vm._e()]}}])}),_c('MobileToggle',{scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
5291
7025
|
var animationClass = ref.animationClass;
|
|
5292
7026
|
return [_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isAuthenticated && _vm.active),expression:"isAuthenticated && active"}],staticClass:"mobile-table",class:animationClass},[_c('div',{staticClass:"mobile-table-head"},[_c('p',[_vm._v("Профиль пользователя")]),_c('svg',{attrs:{"fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","id":"close_hamburger"},on:{"click":function($event){$event.stopPropagation();_vm.active = !_vm.active}}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M4.414 18.142L18.556 4l1.415 1.414L5.828 19.556l-1.414-1.414z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M5.414 4l14.142 14.142-1.414 1.414L4 5.414 5.414 4z","fill":"#2C3E50"}})])]),_c('div',{staticClass:"profile-menu-mobile"},[_c('div',{staticClass:"profile-menu-mobile__inner"},[(_vm.listDropDown.length > 0)?_c('div',{staticClass:"profile-menu-mobile__items"},_vm._l((_vm.listDropDown),function(elem,index){return _c('div',{key:index,staticClass:"bb"},[(elem.url)?_c('div',{class:elem.link ? 'profile-menu-mobile__balance-link': 'profile-menu-mobile__links',on:{"click":function($event){return _vm.handleClick(elem.url, elem.name)}}},[(!elem.link)?_c('div',{staticClass:"button-inner"},[_c('div',[_vm._v(_vm._s(elem.name))]),_c('svg',{attrs:{"width":"18","height":"18","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 10 18"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2.108.59L9.318 9l-7.21 8.41L.59 16.108 6.683 9 .59 1.892 2.108.59z","fill":"#2C3E50"}})])]):_vm._e(),(elem.link)?_c('div',{staticClass:"profile-menu-mobile__balance-items"},[_c('div',{staticClass:"profile-menu-mobile__balance-items__upper-text"},[_vm._v(" "+_vm._s(elem.name.substr(0, 15))+" ")]),_c('div',{staticClass:"profile-menu-mobile__balance__bot-text"},[_vm._v(" "+_vm._s(elem.name.substr(15))+" ")])]):_vm._e(),(elem.link)?_c('span',{staticClass:"profile-menu-mobile__balance",on:{"click":function($event){return _vm.$emit('showBalanceModal', true)}}},[_vm._v(" "+_vm._s(elem.link)+" ")]):_vm._e()]):_vm._e(),(elem.children)?_c('div',{staticClass:"profile-menu-mobile__links",on:{"click":function($event){return _vm.rotateItem(index)}}},[_c('div',{staticClass:"button-inner"},[_c('div',[_vm._v(_vm._s(elem.name))]),_c('svg',{attrs:{"width":"18","height":"18","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 10 18"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2.108.59L9.318 9l-7.21 8.41L.59 16.108 6.683 9 .59 1.892 2.108.59z","fill":"#2C3E50"}})])])]):_vm._e()])}),0):_vm._e()]),_c('div',{staticClass:"exit-mob",on:{"click":_vm.logout}},[_c('svg',{staticClass:"arrow-svg",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M17.7501 7.93933L21.8108 12L17.7501 16.0607L16.6895 15L19.6895 12L16.6895 8.99999L17.7501 7.93933Z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M15.5 2.25H2V21.75H15.5V17.25H14V20.25H3.5V3.75H14V6.75H15.5V2.25Z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M7 11.25L20.5 11.25L20.5 12.75L7 12.75L7 11.25Z","fill":"#2C3E50"}})]),_vm._v(" Выход ")])])])]}}])}),_c('MobileToggle',{scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
5293
7027
|
var animationClass = ref.animationClass;
|
|
5294
7028
|
return [_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.someMobileOpened.length > 0 && _vm.chosenElem && _vm.chosenElem.children.length > 0),expression:"someMobileOpened.length > 0 && chosenElem && chosenElem.children.length > 0"}],staticClass:"mobile-table",class:animationClass},[_c('div',{staticClass:"mobile-table-head mobile-table-head-chosen"},[_c('div',{on:{"click":function($event){_vm.chosenElem.opened = false}}},[_c('svg',{staticClass:"rotated",attrs:{"width":"18","height":"18","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 10 18"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2.108.59L9.318 9l-7.21 8.41L.59 16.108 6.683 9 .59 1.892 2.108.59z","fill":"#2C3E50"}})])]),_c('p',[_vm._v(_vm._s(_vm.chosenElem.name))])]),_c('div',{staticClass:"profile-menu-mobile"},[_c('div',{staticClass:"profile-menu-mobile__inner"},[(_vm.chosenElem.children.length > 0)?_c('div',{staticClass:"profile-menu-mobile__items"},_vm._l((_vm.chosenElem.children),function(elem,index){return _c('div',{key:index,staticClass:"bb"},[(elem.url)?_c('div',{class:elem.link ? 'profile-menu-mobile__balance-link': 'profile-menu-mobile__links',on:{"click":function($event){return _vm.handleClick(elem.url, elem.name)}}},[_c('div',{staticClass:"button-inner"},[_c('div',[_vm._v(_vm._s(elem.name))])])]):_vm._e()])}),0):_vm._e()]),_c('div',{staticClass:"exit-mob",on:{"click":_vm.logout}},[_c('svg',{staticClass:"arrow-svg",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M17.7501 7.93933L21.8108 12L17.7501 16.0607L16.6895 15L19.6895 12L16.6895 8.99999L17.7501 7.93933Z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M15.5 2.25H2V21.75H15.5V17.25H14V20.25H3.5V3.75H14V6.75H15.5V2.25Z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M7 11.25L20.5 11.25L20.5 12.75L7 12.75L7 11.25Z","fill":"#2C3E50"}})]),_vm._v(" Выход ")])])])]}}])})],1)])}
|
|
5295
|
-
var
|
|
7029
|
+
var Profilevue_type_template_id_4ff2c258_staticRenderFns = []
|
|
7030
|
+
|
|
7031
|
+
|
|
7032
|
+
// CONCATENATED MODULE: ./src/components/Header/Profile.vue?vue&type=template&id=4ff2c258&
|
|
7033
|
+
|
|
7034
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
7035
|
+
var es_promise = __webpack_require__("e6cf");
|
|
7036
|
+
|
|
7037
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
7038
|
+
|
|
7039
|
+
|
|
5296
7040
|
|
|
7041
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
7042
|
+
try {
|
|
7043
|
+
var info = gen[key](arg);
|
|
7044
|
+
var value = info.value;
|
|
7045
|
+
} catch (error) {
|
|
7046
|
+
reject(error);
|
|
7047
|
+
return;
|
|
7048
|
+
}
|
|
7049
|
+
|
|
7050
|
+
if (info.done) {
|
|
7051
|
+
resolve(value);
|
|
7052
|
+
} else {
|
|
7053
|
+
Promise.resolve(value).then(_next, _throw);
|
|
7054
|
+
}
|
|
7055
|
+
}
|
|
5297
7056
|
|
|
5298
|
-
|
|
7057
|
+
function _asyncToGenerator(fn) {
|
|
7058
|
+
return function () {
|
|
7059
|
+
var self = this,
|
|
7060
|
+
args = arguments;
|
|
7061
|
+
return new Promise(function (resolve, reject) {
|
|
7062
|
+
var gen = fn.apply(self, args);
|
|
5299
7063
|
|
|
7064
|
+
function _next(value) {
|
|
7065
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
7066
|
+
}
|
|
7067
|
+
|
|
7068
|
+
function _throw(err) {
|
|
7069
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
7070
|
+
}
|
|
7071
|
+
|
|
7072
|
+
_next(undefined);
|
|
7073
|
+
});
|
|
7074
|
+
};
|
|
7075
|
+
}
|
|
5300
7076
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
5301
7077
|
function _arrayLikeToArray(arr, len) {
|
|
5302
7078
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -5384,6 +7160,12 @@ function _nonIterableSpread() {
|
|
|
5384
7160
|
function _toConsumableArray(arr) {
|
|
5385
7161
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
5386
7162
|
}
|
|
7163
|
+
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
7164
|
+
var runtime = __webpack_require__("96cf");
|
|
7165
|
+
|
|
7166
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
7167
|
+
var es_array_find = __webpack_require__("7db0");
|
|
7168
|
+
|
|
5387
7169
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
5388
7170
|
var es_array_filter = __webpack_require__("4de4");
|
|
5389
7171
|
|
|
@@ -5578,6 +7360,11 @@ var VerticalMobileToggle_component = normalizeComponent(
|
|
|
5578
7360
|
|
|
5579
7361
|
|
|
5580
7362
|
|
|
7363
|
+
|
|
7364
|
+
|
|
7365
|
+
|
|
7366
|
+
|
|
7367
|
+
//
|
|
5581
7368
|
//
|
|
5582
7369
|
//
|
|
5583
7370
|
//
|
|
@@ -5846,6 +7633,11 @@ var VerticalMobileToggle_component = normalizeComponent(
|
|
|
5846
7633
|
type: String,
|
|
5847
7634
|
default: "",
|
|
5848
7635
|
required: true
|
|
7636
|
+
},
|
|
7637
|
+
activeTabKey: {
|
|
7638
|
+
type: String,
|
|
7639
|
+
default: "",
|
|
7640
|
+
required: true
|
|
5849
7641
|
}
|
|
5850
7642
|
},
|
|
5851
7643
|
components: {
|
|
@@ -5865,6 +7657,22 @@ var VerticalMobileToggle_component = normalizeComponent(
|
|
|
5865
7657
|
if (this.profileDropDown && this.profileDropDown.length > 0) {
|
|
5866
7658
|
this.listDropDown = _toConsumableArray(this.profileDropDown);
|
|
5867
7659
|
}
|
|
7660
|
+
|
|
7661
|
+
if (this.activeTabKey === 'counterparty') {
|
|
7662
|
+
this.chosenElem = this.listDropDown.find(function (el) {
|
|
7663
|
+
return el.name === 'Контрагенты';
|
|
7664
|
+
});
|
|
7665
|
+
} else if (this.activeTabKey === 'tender') {
|
|
7666
|
+
this.chosenElem = this.listDropDown.find(function (el) {
|
|
7667
|
+
return el.name === 'Тендеры';
|
|
7668
|
+
});
|
|
7669
|
+
} else if (this.activeTabKey === 'work') {
|
|
7670
|
+
this.chosenElem = this.listDropDown.find(function (el) {
|
|
7671
|
+
return el.name === 'Работа';
|
|
7672
|
+
});
|
|
7673
|
+
}
|
|
7674
|
+
|
|
7675
|
+
this.chosenElem.opened = true;
|
|
5868
7676
|
},
|
|
5869
7677
|
computed: {
|
|
5870
7678
|
someMobileOpened: function someMobileOpened() {
|
|
@@ -5880,16 +7688,49 @@ var VerticalMobileToggle_component = normalizeComponent(
|
|
|
5880
7688
|
logout: function logout() {
|
|
5881
7689
|
this.$emit("logout");
|
|
5882
7690
|
},
|
|
7691
|
+
showModal: function showModal(url, name) {
|
|
7692
|
+
var _this = this;
|
|
7693
|
+
|
|
7694
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
7695
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
7696
|
+
while (1) {
|
|
7697
|
+
switch (_context.prev = _context.next) {
|
|
7698
|
+
case 0:
|
|
7699
|
+
if (!name.includes('Текущий')) {
|
|
7700
|
+
_context.next = 8;
|
|
7701
|
+
break;
|
|
7702
|
+
}
|
|
7703
|
+
|
|
7704
|
+
if (!window.location.href.includes(_this.toAdtdev(url))) {
|
|
7705
|
+
_context.next = 6;
|
|
7706
|
+
break;
|
|
7707
|
+
}
|
|
7708
|
+
|
|
7709
|
+
_this.$emit("setIsReplenishModal", true);
|
|
7710
|
+
|
|
7711
|
+
_this.setShowModal(true);
|
|
7712
|
+
|
|
7713
|
+
_context.next = 8;
|
|
7714
|
+
break;
|
|
7715
|
+
|
|
7716
|
+
case 6:
|
|
7717
|
+
_context.next = 8;
|
|
7718
|
+
return window.open(_this.toAdtdev(url) + "&modal=show", "_self");
|
|
7719
|
+
|
|
7720
|
+
case 8:
|
|
7721
|
+
case "end":
|
|
7722
|
+
return _context.stop();
|
|
7723
|
+
}
|
|
7724
|
+
}
|
|
7725
|
+
}, _callee);
|
|
7726
|
+
}))();
|
|
7727
|
+
},
|
|
5883
7728
|
handleClick: function handleClick(url, name) {
|
|
5884
|
-
if (name.includes('Текущий')) {
|
|
5885
|
-
window.open(this.toAdtdev(url), "_self");
|
|
5886
|
-
this.$emit("setIsReplenishModal", true);
|
|
5887
|
-
} else {
|
|
7729
|
+
if (!name.includes('Текущий')) {
|
|
5888
7730
|
window.open(this.toAdtdev(url), "_self");
|
|
7731
|
+
this.active = false;
|
|
7732
|
+
if (this.chosenElem) this.chosenElem.opened = false;
|
|
5889
7733
|
}
|
|
5890
|
-
|
|
5891
|
-
this.active = false;
|
|
5892
|
-
if (this.chosenElem) this.chosenElem.opened = false;
|
|
5893
7734
|
},
|
|
5894
7735
|
rotateItem: function rotateItem(index) {
|
|
5895
7736
|
this.chosenElem = this.listDropDown[index];
|
|
@@ -5916,8 +7757,8 @@ var Profilevue_type_style_index_0_lang_scss_ = __webpack_require__("ee80");
|
|
|
5916
7757
|
|
|
5917
7758
|
var Profile_component = normalizeComponent(
|
|
5918
7759
|
Header_Profilevue_type_script_lang_js_,
|
|
5919
|
-
|
|
5920
|
-
|
|
7760
|
+
Profilevue_type_template_id_4ff2c258_render,
|
|
7761
|
+
Profilevue_type_template_id_4ff2c258_staticRenderFns,
|
|
5921
7762
|
false,
|
|
5922
7763
|
null,
|
|
5923
7764
|
null,
|
|
@@ -6106,6 +7947,7 @@ var profileDropDown = [{
|
|
|
6106
7947
|
//
|
|
6107
7948
|
//
|
|
6108
7949
|
//
|
|
7950
|
+
//
|
|
6109
7951
|
|
|
6110
7952
|
|
|
6111
7953
|
|
|
@@ -6151,7 +7993,8 @@ var profileDropDown = [{
|
|
|
6151
7993
|
},
|
|
6152
7994
|
activeTabKey: {
|
|
6153
7995
|
type: String,
|
|
6154
|
-
default:
|
|
7996
|
+
default: "",
|
|
7997
|
+
required: true
|
|
6155
7998
|
},
|
|
6156
7999
|
balance: {
|
|
6157
8000
|
type: Number,
|
|
@@ -6216,8 +8059,8 @@ var Headervue_type_style_index_0_lang_scss_ = __webpack_require__("52f3");
|
|
|
6216
8059
|
|
|
6217
8060
|
var Header_component = normalizeComponent(
|
|
6218
8061
|
Header_Headervue_type_script_lang_js_,
|
|
6219
|
-
|
|
6220
|
-
|
|
8062
|
+
Headervue_type_template_id_0267d418_render,
|
|
8063
|
+
Headervue_type_template_id_0267d418_staticRenderFns,
|
|
6221
8064
|
false,
|
|
6222
8065
|
null,
|
|
6223
8066
|
null,
|
|
@@ -6498,6 +8341,16 @@ module.exports = NATIVE_SYMBOL
|
|
|
6498
8341
|
&& typeof Symbol.iterator == 'symbol';
|
|
6499
8342
|
|
|
6500
8343
|
|
|
8344
|
+
/***/ }),
|
|
8345
|
+
|
|
8346
|
+
/***/ "fea9":
|
|
8347
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8348
|
+
|
|
8349
|
+
var global = __webpack_require__("da84");
|
|
8350
|
+
|
|
8351
|
+
module.exports = global.Promise;
|
|
8352
|
+
|
|
8353
|
+
|
|
6501
8354
|
/***/ })
|
|
6502
8355
|
|
|
6503
8356
|
/******/ });
|