@danielgindi/dom-utils 1.0.3 → 1.0.7
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/lib.cjs.js +2345 -1404
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +2 -2
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +63 -5
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +2 -2
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +2347 -1406
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +2 -2
- package/dist/lib.umd.min.js.map +1 -1
- package/lib/Css.js +46 -0
- package/lib/Dom.js +9 -1
- package/lib/ScrollHelper.js +5 -1
- package/package.json +12 -12
package/dist/lib.umd.js
CHANGED
|
@@ -1,28 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/dom-utils 1.0.
|
|
2
|
+
* @danielgindi/dom-utils 1.0.7
|
|
3
3
|
* git://github.com/danielgindi/dom-utils.git
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
6
6
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
7
7
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
8
8
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.domutils = {}));
|
|
9
|
-
}(this, (function (exports) { 'use strict';
|
|
10
|
-
|
|
11
|
-
function _typeof(obj) {
|
|
12
|
-
"@babel/helpers - typeof";
|
|
13
|
-
|
|
14
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
15
|
-
_typeof = function (obj) {
|
|
16
|
-
return typeof obj;
|
|
17
|
-
};
|
|
18
|
-
} else {
|
|
19
|
-
_typeof = function (obj) {
|
|
20
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return _typeof(obj);
|
|
25
|
-
}
|
|
9
|
+
})(this, (function (exports) { 'use strict';
|
|
26
10
|
|
|
27
11
|
var REACT_ELEMENT_TYPE;
|
|
28
12
|
|
|
@@ -65,29 +49,142 @@
|
|
|
65
49
|
return {
|
|
66
50
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
67
51
|
type: type,
|
|
68
|
-
key: key === undefined ? null :
|
|
52
|
+
key: key === undefined ? null : "" + key,
|
|
69
53
|
ref: null,
|
|
70
54
|
props: props,
|
|
71
55
|
_owner: null
|
|
72
56
|
};
|
|
73
57
|
}
|
|
74
58
|
|
|
75
|
-
function
|
|
76
|
-
var
|
|
59
|
+
function ownKeys$2(object, enumerableOnly) {
|
|
60
|
+
var keys = Object.keys(object);
|
|
77
61
|
|
|
78
|
-
if (
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
62
|
+
if (Object.getOwnPropertySymbols) {
|
|
63
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
64
|
+
|
|
65
|
+
if (enumerableOnly) {
|
|
66
|
+
symbols = symbols.filter(function (sym) {
|
|
67
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
keys.push.apply(keys, symbols);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return keys;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function _objectSpread2(target) {
|
|
78
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
79
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
80
|
+
|
|
81
|
+
if (i % 2) {
|
|
82
|
+
ownKeys$2(Object(source), true).forEach(function (key) {
|
|
83
|
+
_defineProperty(target, key, source[key]);
|
|
84
|
+
});
|
|
85
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
86
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
87
|
+
} else {
|
|
88
|
+
ownKeys$2(Object(source)).forEach(function (key) {
|
|
89
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
90
|
+
});
|
|
82
91
|
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return target;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function _typeof(obj) {
|
|
98
|
+
"@babel/helpers - typeof";
|
|
99
|
+
|
|
100
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
101
|
+
_typeof = function (obj) {
|
|
102
|
+
return typeof obj;
|
|
103
|
+
};
|
|
104
|
+
} else {
|
|
105
|
+
_typeof = function (obj) {
|
|
106
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return _typeof(obj);
|
|
111
|
+
}
|
|
83
112
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
113
|
+
function _wrapRegExp() {
|
|
114
|
+
_wrapRegExp = function (re, groups) {
|
|
115
|
+
return new BabelRegExp(re, undefined, groups);
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
var _super = RegExp.prototype;
|
|
119
|
+
|
|
120
|
+
var _groups = new WeakMap();
|
|
121
|
+
|
|
122
|
+
function BabelRegExp(re, flags, groups) {
|
|
123
|
+
var _this = new RegExp(re, flags);
|
|
124
|
+
|
|
125
|
+
_groups.set(_this, groups || _groups.get(re));
|
|
126
|
+
|
|
127
|
+
return _setPrototypeOf(_this, BabelRegExp.prototype);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
_inherits(BabelRegExp, RegExp);
|
|
131
|
+
|
|
132
|
+
BabelRegExp.prototype.exec = function (str) {
|
|
133
|
+
var result = _super.exec.call(this, str);
|
|
134
|
+
|
|
135
|
+
if (result) result.groups = buildGroups(result, this);
|
|
136
|
+
return result;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
|
140
|
+
if (typeof substitution === "string") {
|
|
141
|
+
var groups = _groups.get(this);
|
|
142
|
+
|
|
143
|
+
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
|
144
|
+
return "$" + groups[name];
|
|
145
|
+
}));
|
|
146
|
+
} else if (typeof substitution === "function") {
|
|
147
|
+
var _this = this;
|
|
148
|
+
|
|
149
|
+
return _super[Symbol.replace].call(this, str, function () {
|
|
150
|
+
var args = arguments;
|
|
151
|
+
|
|
152
|
+
if (typeof args[args.length - 1] !== "object") {
|
|
153
|
+
args = [].slice.call(args);
|
|
154
|
+
args.push(buildGroups(args, _this));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
return substitution.apply(this, args);
|
|
158
|
+
});
|
|
159
|
+
} else {
|
|
160
|
+
return _super[Symbol.replace].call(this, str, substitution);
|
|
87
161
|
}
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
function buildGroups(result, re) {
|
|
165
|
+
var g = _groups.get(re);
|
|
166
|
+
|
|
167
|
+
return Object.keys(g).reduce(function (groups, name) {
|
|
168
|
+
groups[name] = result[g[name]];
|
|
169
|
+
return groups;
|
|
170
|
+
}, Object.create(null));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return _wrapRegExp.apply(this, arguments);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function _asyncIterator(iterable) {
|
|
177
|
+
var method;
|
|
178
|
+
|
|
179
|
+
if (typeof Symbol !== "undefined") {
|
|
180
|
+
if (Symbol.asyncIterator) method = iterable[Symbol.asyncIterator];
|
|
181
|
+
if (method == null && Symbol.iterator) method = iterable[Symbol.iterator];
|
|
88
182
|
}
|
|
89
183
|
|
|
90
|
-
|
|
184
|
+
if (method == null) method = iterable["@@asyncIterator"];
|
|
185
|
+
if (method == null) method = iterable["@@iterator"];
|
|
186
|
+
if (method == null) throw new TypeError("Object is not async iterable");
|
|
187
|
+
return method.call(iterable);
|
|
91
188
|
}
|
|
92
189
|
|
|
93
190
|
function _AwaitValue(value) {
|
|
@@ -173,11 +270,9 @@
|
|
|
173
270
|
}
|
|
174
271
|
}
|
|
175
272
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
};
|
|
180
|
-
}
|
|
273
|
+
_AsyncGenerator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function () {
|
|
274
|
+
return this;
|
|
275
|
+
};
|
|
181
276
|
|
|
182
277
|
_AsyncGenerator.prototype.next = function (arg) {
|
|
183
278
|
return this._invoke("next", arg);
|
|
@@ -218,11 +313,9 @@
|
|
|
218
313
|
|
|
219
314
|
;
|
|
220
315
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
};
|
|
225
|
-
}
|
|
316
|
+
iter[typeof Symbol !== "undefined" && Symbol.iterator || "@@iterator"] = function () {
|
|
317
|
+
return this;
|
|
318
|
+
};
|
|
226
319
|
|
|
227
320
|
iter.next = function (value) {
|
|
228
321
|
if (waiting) {
|
|
@@ -393,7 +486,7 @@
|
|
|
393
486
|
var ownKeys = Object.keys(source);
|
|
394
487
|
|
|
395
488
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
396
|
-
ownKeys
|
|
489
|
+
ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
397
490
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
398
491
|
}));
|
|
399
492
|
}
|
|
@@ -406,40 +499,6 @@
|
|
|
406
499
|
return target;
|
|
407
500
|
}
|
|
408
501
|
|
|
409
|
-
function ownKeys$1(object, enumerableOnly) {
|
|
410
|
-
var keys = Object.keys(object);
|
|
411
|
-
|
|
412
|
-
if (Object.getOwnPropertySymbols) {
|
|
413
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
414
|
-
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
415
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
416
|
-
});
|
|
417
|
-
keys.push.apply(keys, symbols);
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
return keys;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
function _objectSpread2(target) {
|
|
424
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
425
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
426
|
-
|
|
427
|
-
if (i % 2) {
|
|
428
|
-
ownKeys$1(Object(source), true).forEach(function (key) {
|
|
429
|
-
_defineProperty(target, key, source[key]);
|
|
430
|
-
});
|
|
431
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
432
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
433
|
-
} else {
|
|
434
|
-
ownKeys$1(Object(source)).forEach(function (key) {
|
|
435
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
return target;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
502
|
function _inherits(subClass, superClass) {
|
|
444
503
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
445
504
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -560,19 +619,17 @@
|
|
|
560
619
|
};
|
|
561
620
|
}
|
|
562
621
|
|
|
563
|
-
function _getRequireWildcardCache() {
|
|
622
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
564
623
|
if (typeof WeakMap !== "function") return null;
|
|
565
|
-
var
|
|
566
|
-
|
|
567
|
-
_getRequireWildcardCache = function () {
|
|
568
|
-
return
|
|
569
|
-
};
|
|
570
|
-
|
|
571
|
-
return cache;
|
|
624
|
+
var cacheBabelInterop = new WeakMap();
|
|
625
|
+
var cacheNodeInterop = new WeakMap();
|
|
626
|
+
return (_getRequireWildcardCache = function (nodeInterop) {
|
|
627
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
628
|
+
})(nodeInterop);
|
|
572
629
|
}
|
|
573
630
|
|
|
574
|
-
function _interopRequireWildcard(obj) {
|
|
575
|
-
if (obj && obj.__esModule) {
|
|
631
|
+
function _interopRequireWildcard(obj, nodeInterop) {
|
|
632
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
576
633
|
return obj;
|
|
577
634
|
}
|
|
578
635
|
|
|
@@ -582,7 +639,7 @@
|
|
|
582
639
|
};
|
|
583
640
|
}
|
|
584
641
|
|
|
585
|
-
var cache = _getRequireWildcardCache();
|
|
642
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
586
643
|
|
|
587
644
|
if (cache && cache.has(obj)) {
|
|
588
645
|
return cache.get(obj);
|
|
@@ -592,7 +649,7 @@
|
|
|
592
649
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
593
650
|
|
|
594
651
|
for (var key in obj) {
|
|
595
|
-
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
652
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
596
653
|
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
597
654
|
|
|
598
655
|
if (desc && (desc.get || desc.set)) {
|
|
@@ -669,6 +726,8 @@
|
|
|
669
726
|
function _possibleConstructorReturn(self, call) {
|
|
670
727
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
671
728
|
return call;
|
|
729
|
+
} else if (call !== void 0) {
|
|
730
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
672
731
|
}
|
|
673
732
|
|
|
674
733
|
return _assertThisInitialized(self);
|
|
@@ -850,18 +909,21 @@
|
|
|
850
909
|
}
|
|
851
910
|
|
|
852
911
|
function _iterableToArray(iter) {
|
|
853
|
-
if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
912
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
854
913
|
}
|
|
855
914
|
|
|
856
915
|
function _iterableToArrayLimit(arr, i) {
|
|
857
|
-
|
|
916
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
917
|
+
|
|
918
|
+
if (_i == null) return;
|
|
858
919
|
var _arr = [];
|
|
859
920
|
var _n = true;
|
|
860
921
|
var _d = false;
|
|
861
|
-
|
|
922
|
+
|
|
923
|
+
var _s, _e;
|
|
862
924
|
|
|
863
925
|
try {
|
|
864
|
-
for (
|
|
926
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
865
927
|
_arr.push(_s.value);
|
|
866
928
|
|
|
867
929
|
if (i && _arr.length === i) break;
|
|
@@ -881,10 +943,12 @@
|
|
|
881
943
|
}
|
|
882
944
|
|
|
883
945
|
function _iterableToArrayLimitLoose(arr, i) {
|
|
884
|
-
|
|
946
|
+
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
|
947
|
+
|
|
948
|
+
if (_i == null) return;
|
|
885
949
|
var _arr = [];
|
|
886
950
|
|
|
887
|
-
for (
|
|
951
|
+
for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) {
|
|
888
952
|
_arr.push(_step.value);
|
|
889
953
|
|
|
890
954
|
if (i && _arr.length === i) break;
|
|
@@ -919,9 +983,9 @@
|
|
|
919
983
|
}
|
|
920
984
|
|
|
921
985
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
922
|
-
var it;
|
|
986
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
923
987
|
|
|
924
|
-
if (
|
|
988
|
+
if (!it) {
|
|
925
989
|
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
926
990
|
if (it) o = it;
|
|
927
991
|
var i = 0;
|
|
@@ -954,7 +1018,7 @@
|
|
|
954
1018
|
err;
|
|
955
1019
|
return {
|
|
956
1020
|
s: function () {
|
|
957
|
-
it =
|
|
1021
|
+
it = it.call(o);
|
|
958
1022
|
},
|
|
959
1023
|
n: function () {
|
|
960
1024
|
var step = it.next();
|
|
@@ -976,28 +1040,24 @@
|
|
|
976
1040
|
}
|
|
977
1041
|
|
|
978
1042
|
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
979
|
-
var it;
|
|
1043
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
1044
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
980
1045
|
|
|
981
|
-
if (
|
|
982
|
-
if (
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
done: true
|
|
988
|
-
};
|
|
989
|
-
return {
|
|
990
|
-
done: false,
|
|
991
|
-
value: o[i++]
|
|
992
|
-
};
|
|
1046
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
1047
|
+
if (it) o = it;
|
|
1048
|
+
var i = 0;
|
|
1049
|
+
return function () {
|
|
1050
|
+
if (i >= o.length) return {
|
|
1051
|
+
done: true
|
|
993
1052
|
};
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1053
|
+
return {
|
|
1054
|
+
done: false,
|
|
1055
|
+
value: o[i++]
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
997
1058
|
}
|
|
998
1059
|
|
|
999
|
-
|
|
1000
|
-
return it.next.bind(it);
|
|
1060
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1001
1061
|
}
|
|
1002
1062
|
|
|
1003
1063
|
function _skipFirstGeneratorNext(fn) {
|
|
@@ -1085,12 +1145,62 @@
|
|
|
1085
1145
|
}
|
|
1086
1146
|
|
|
1087
1147
|
function _classPrivateFieldGet(receiver, privateMap) {
|
|
1088
|
-
var descriptor = privateMap
|
|
1148
|
+
var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get");
|
|
1089
1149
|
|
|
1090
|
-
|
|
1091
|
-
|
|
1150
|
+
return _classApplyDescriptorGet(receiver, descriptor);
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
function _classPrivateFieldSet(receiver, privateMap, value) {
|
|
1154
|
+
var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set");
|
|
1155
|
+
|
|
1156
|
+
_classApplyDescriptorSet(receiver, descriptor, value);
|
|
1157
|
+
|
|
1158
|
+
return value;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
function _classPrivateFieldDestructureSet(receiver, privateMap) {
|
|
1162
|
+
var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set");
|
|
1163
|
+
|
|
1164
|
+
return _classApplyDescriptorDestructureSet(receiver, descriptor);
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
function _classExtractFieldDescriptor(receiver, privateMap, action) {
|
|
1168
|
+
if (!privateMap.has(receiver)) {
|
|
1169
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
1092
1170
|
}
|
|
1093
1171
|
|
|
1172
|
+
return privateMap.get(receiver);
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
|
|
1176
|
+
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
1177
|
+
|
|
1178
|
+
_classCheckPrivateStaticFieldDescriptor(descriptor, "get");
|
|
1179
|
+
|
|
1180
|
+
return _classApplyDescriptorGet(receiver, descriptor);
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
|
|
1184
|
+
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
1185
|
+
|
|
1186
|
+
_classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
|
1187
|
+
|
|
1188
|
+
_classApplyDescriptorSet(receiver, descriptor, value);
|
|
1189
|
+
|
|
1190
|
+
return value;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
|
|
1194
|
+
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
1195
|
+
|
|
1196
|
+
return method;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
function _classStaticPrivateMethodSet() {
|
|
1200
|
+
throw new TypeError("attempted to set read only static private field");
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
function _classApplyDescriptorGet(receiver, descriptor) {
|
|
1094
1204
|
if (descriptor.get) {
|
|
1095
1205
|
return descriptor.get.call(receiver);
|
|
1096
1206
|
}
|
|
@@ -1098,13 +1208,7 @@
|
|
|
1098
1208
|
return descriptor.value;
|
|
1099
1209
|
}
|
|
1100
1210
|
|
|
1101
|
-
function
|
|
1102
|
-
var descriptor = privateMap.get(receiver);
|
|
1103
|
-
|
|
1104
|
-
if (!descriptor) {
|
|
1105
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1211
|
+
function _classApplyDescriptorSet(receiver, descriptor, value) {
|
|
1108
1212
|
if (descriptor.set) {
|
|
1109
1213
|
descriptor.set.call(receiver, value);
|
|
1110
1214
|
} else {
|
|
@@ -1114,17 +1218,9 @@
|
|
|
1114
1218
|
|
|
1115
1219
|
descriptor.value = value;
|
|
1116
1220
|
}
|
|
1117
|
-
|
|
1118
|
-
return value;
|
|
1119
1221
|
}
|
|
1120
1222
|
|
|
1121
|
-
function
|
|
1122
|
-
if (!privateMap.has(receiver)) {
|
|
1123
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
var descriptor = privateMap.get(receiver);
|
|
1127
|
-
|
|
1223
|
+
function _classApplyDescriptorDestructureSet(receiver, descriptor) {
|
|
1128
1224
|
if (descriptor.set) {
|
|
1129
1225
|
if (!("__destrObj" in descriptor)) {
|
|
1130
1226
|
descriptor.__destrObj = {
|
|
@@ -1145,46 +1241,24 @@
|
|
|
1145
1241
|
}
|
|
1146
1242
|
}
|
|
1147
1243
|
|
|
1148
|
-
function
|
|
1149
|
-
|
|
1150
|
-
throw new TypeError("Private static access of wrong provenance");
|
|
1151
|
-
}
|
|
1244
|
+
function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) {
|
|
1245
|
+
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
1152
1246
|
|
|
1153
|
-
|
|
1154
|
-
return descriptor.get.call(receiver);
|
|
1155
|
-
}
|
|
1247
|
+
_classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
|
1156
1248
|
|
|
1157
|
-
return descriptor
|
|
1249
|
+
return _classApplyDescriptorDestructureSet(receiver, descriptor);
|
|
1158
1250
|
}
|
|
1159
1251
|
|
|
1160
|
-
function
|
|
1252
|
+
function _classCheckPrivateStaticAccess(receiver, classConstructor) {
|
|
1161
1253
|
if (receiver !== classConstructor) {
|
|
1162
1254
|
throw new TypeError("Private static access of wrong provenance");
|
|
1163
1255
|
}
|
|
1164
|
-
|
|
1165
|
-
if (descriptor.set) {
|
|
1166
|
-
descriptor.set.call(receiver, value);
|
|
1167
|
-
} else {
|
|
1168
|
-
if (!descriptor.writable) {
|
|
1169
|
-
throw new TypeError("attempted to set read only private field");
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
descriptor.value = value;
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
return value;
|
|
1176
1256
|
}
|
|
1177
1257
|
|
|
1178
|
-
function
|
|
1179
|
-
if (
|
|
1180
|
-
throw new TypeError("
|
|
1258
|
+
function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
|
|
1259
|
+
if (descriptor === undefined) {
|
|
1260
|
+
throw new TypeError("attempted to " + action + " private static field before its declaration");
|
|
1181
1261
|
}
|
|
1182
|
-
|
|
1183
|
-
return method;
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
function _classStaticPrivateMethodSet() {
|
|
1187
|
-
throw new TypeError("attempted to set read only static private field");
|
|
1188
1262
|
}
|
|
1189
1263
|
|
|
1190
1264
|
function _decorate(decorators, factory, superClass, mixins) {
|
|
@@ -1592,108 +1666,81 @@
|
|
|
1592
1666
|
return fn;
|
|
1593
1667
|
}
|
|
1594
1668
|
|
|
1595
|
-
function
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
function _wrapRegExp(re, groups) {
|
|
1600
|
-
_wrapRegExp = function (re, groups) {
|
|
1601
|
-
return new BabelRegExp(re, undefined, groups);
|
|
1602
|
-
};
|
|
1603
|
-
|
|
1604
|
-
var _RegExp = _wrapNativeSuper(RegExp);
|
|
1605
|
-
|
|
1606
|
-
var _super = RegExp.prototype;
|
|
1607
|
-
|
|
1608
|
-
var _groups = new WeakMap();
|
|
1609
|
-
|
|
1610
|
-
function BabelRegExp(re, flags, groups) {
|
|
1611
|
-
var _this = _RegExp.call(this, re, flags);
|
|
1612
|
-
|
|
1613
|
-
_groups.set(_this, groups || _groups.get(re));
|
|
1614
|
-
|
|
1615
|
-
return _this;
|
|
1669
|
+
function _checkPrivateRedeclaration(obj, privateCollection) {
|
|
1670
|
+
if (privateCollection.has(obj)) {
|
|
1671
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
1616
1672
|
}
|
|
1673
|
+
}
|
|
1617
1674
|
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
BabelRegExp.prototype.exec = function (str) {
|
|
1621
|
-
var result = _super.exec.call(this, str);
|
|
1622
|
-
|
|
1623
|
-
if (result) result.groups = buildGroups(result, this);
|
|
1624
|
-
return result;
|
|
1625
|
-
};
|
|
1626
|
-
|
|
1627
|
-
BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
|
1628
|
-
if (typeof substitution === "string") {
|
|
1629
|
-
var groups = _groups.get(this);
|
|
1630
|
-
|
|
1631
|
-
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
|
1632
|
-
return "$" + groups[name];
|
|
1633
|
-
}));
|
|
1634
|
-
} else if (typeof substitution === "function") {
|
|
1635
|
-
var _this = this;
|
|
1636
|
-
|
|
1637
|
-
return _super[Symbol.replace].call(this, str, function () {
|
|
1638
|
-
var args = [];
|
|
1639
|
-
args.push.apply(args, arguments);
|
|
1640
|
-
|
|
1641
|
-
if (typeof args[args.length - 1] !== "object") {
|
|
1642
|
-
args.push(buildGroups(args, _this));
|
|
1643
|
-
}
|
|
1675
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
1676
|
+
_checkPrivateRedeclaration(obj, privateMap);
|
|
1644
1677
|
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
} else {
|
|
1648
|
-
return _super[Symbol.replace].call(this, str, substitution);
|
|
1649
|
-
}
|
|
1650
|
-
};
|
|
1678
|
+
privateMap.set(obj, value);
|
|
1679
|
+
}
|
|
1651
1680
|
|
|
1652
|
-
|
|
1653
|
-
|
|
1681
|
+
function _classPrivateMethodInitSpec(obj, privateSet) {
|
|
1682
|
+
_checkPrivateRedeclaration(obj, privateSet);
|
|
1654
1683
|
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
return groups;
|
|
1658
|
-
}, Object.create(null));
|
|
1659
|
-
}
|
|
1684
|
+
privateSet.add(obj);
|
|
1685
|
+
}
|
|
1660
1686
|
|
|
1661
|
-
|
|
1687
|
+
function _classPrivateMethodSet() {
|
|
1688
|
+
throw new TypeError("attempted to reassign private method");
|
|
1662
1689
|
}
|
|
1663
1690
|
|
|
1664
1691
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1665
1692
|
|
|
1666
|
-
function
|
|
1667
|
-
|
|
1693
|
+
function getDefaultExportFromCjs (x) {
|
|
1694
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
1698
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
1668
1699
|
}
|
|
1669
1700
|
|
|
1670
|
-
function
|
|
1671
|
-
return
|
|
1701
|
+
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
1702
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
1672
1703
|
}
|
|
1673
1704
|
|
|
1674
|
-
function
|
|
1675
|
-
|
|
1705
|
+
function getAugmentedNamespace(n) {
|
|
1706
|
+
if (n.__esModule) return n;
|
|
1707
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
1708
|
+
Object.keys(n).forEach(function (k) {
|
|
1709
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
1710
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
1711
|
+
enumerable: true,
|
|
1712
|
+
get: function () {
|
|
1713
|
+
return n[k];
|
|
1714
|
+
}
|
|
1715
|
+
});
|
|
1716
|
+
});
|
|
1717
|
+
return a;
|
|
1676
1718
|
}
|
|
1677
1719
|
|
|
1678
|
-
function
|
|
1679
|
-
|
|
1720
|
+
function commonjsRequire (path) {
|
|
1721
|
+
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1680
1722
|
}
|
|
1681
1723
|
|
|
1724
|
+
var es_object_entries = {};
|
|
1725
|
+
|
|
1682
1726
|
var check = function (it) {
|
|
1683
1727
|
return it && it.Math == Math && it;
|
|
1684
1728
|
};
|
|
1685
1729
|
|
|
1686
1730
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
1687
|
-
var
|
|
1688
|
-
|
|
1731
|
+
var global$e =
|
|
1732
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
1689
1733
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
1690
1734
|
check(typeof window == 'object' && window) ||
|
|
1735
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
|
1691
1736
|
check(typeof self == 'object' && self) ||
|
|
1692
1737
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
1693
1738
|
// eslint-disable-next-line no-new-func -- fallback
|
|
1694
1739
|
(function () { return this; })() || Function('return this')();
|
|
1695
1740
|
|
|
1696
|
-
var
|
|
1741
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
1742
|
+
|
|
1743
|
+
var fails$f = function (exec) {
|
|
1697
1744
|
try {
|
|
1698
1745
|
return !!exec();
|
|
1699
1746
|
} catch (error) {
|
|
@@ -1701,30 +1748,32 @@
|
|
|
1701
1748
|
}
|
|
1702
1749
|
};
|
|
1703
1750
|
|
|
1751
|
+
var fails$e = fails$f;
|
|
1752
|
+
|
|
1704
1753
|
// Detect IE8's incomplete defineProperty implementation
|
|
1705
|
-
var descriptors = !fails(function () {
|
|
1754
|
+
var descriptors = !fails$e(function () {
|
|
1755
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1706
1756
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
1707
1757
|
});
|
|
1708
1758
|
|
|
1759
|
+
var objectPropertyIsEnumerable = {};
|
|
1760
|
+
|
|
1709
1761
|
'use strict';
|
|
1710
|
-
var
|
|
1711
|
-
|
|
1762
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
1763
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1764
|
+
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
1712
1765
|
|
|
1713
1766
|
// Nashorn ~ JDK8 bug
|
|
1714
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
1767
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
1715
1768
|
|
|
1716
1769
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
1717
1770
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
1718
|
-
var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
1719
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
1771
|
+
var f$4 = objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
1772
|
+
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
1720
1773
|
return !!descriptor && descriptor.enumerable;
|
|
1721
|
-
} :
|
|
1722
|
-
|
|
1723
|
-
var objectPropertyIsEnumerable = {
|
|
1724
|
-
f: f$4
|
|
1725
|
-
};
|
|
1774
|
+
} : $propertyIsEnumerable;
|
|
1726
1775
|
|
|
1727
|
-
var createPropertyDescriptor = function (bitmap, value) {
|
|
1776
|
+
var createPropertyDescriptor$2 = function (bitmap, value) {
|
|
1728
1777
|
return {
|
|
1729
1778
|
enumerable: !(bitmap & 1),
|
|
1730
1779
|
configurable: !(bitmap & 2),
|
|
@@ -1733,182 +1782,413 @@
|
|
|
1733
1782
|
};
|
|
1734
1783
|
};
|
|
1735
1784
|
|
|
1736
|
-
var toString = {}.toString;
|
|
1785
|
+
var toString$8 = {}.toString;
|
|
1737
1786
|
|
|
1738
|
-
var classofRaw = function (it) {
|
|
1739
|
-
return toString.call(it).slice(8, -1);
|
|
1787
|
+
var classofRaw$1 = function (it) {
|
|
1788
|
+
return toString$8.call(it).slice(8, -1);
|
|
1740
1789
|
};
|
|
1741
1790
|
|
|
1791
|
+
var fails$d = fails$f;
|
|
1792
|
+
var classof$6 = classofRaw$1;
|
|
1793
|
+
|
|
1742
1794
|
var split = ''.split;
|
|
1743
1795
|
|
|
1744
1796
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
1745
|
-
var indexedObject = fails(function () {
|
|
1797
|
+
var indexedObject = fails$d(function () {
|
|
1746
1798
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
1747
1799
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
1748
1800
|
return !Object('z').propertyIsEnumerable(0);
|
|
1749
1801
|
}) ? function (it) {
|
|
1750
|
-
return
|
|
1802
|
+
return classof$6(it) == 'String' ? split.call(it, '') : Object(it);
|
|
1751
1803
|
} : Object;
|
|
1752
1804
|
|
|
1753
1805
|
// `RequireObjectCoercible` abstract operation
|
|
1754
1806
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
1755
|
-
var requireObjectCoercible = function (it) {
|
|
1807
|
+
var requireObjectCoercible$8 = function (it) {
|
|
1756
1808
|
if (it == undefined) throw TypeError("Can't call method on " + it);
|
|
1757
1809
|
return it;
|
|
1758
1810
|
};
|
|
1759
1811
|
|
|
1760
1812
|
// toObject with fallback for non-array-like ES3 strings
|
|
1813
|
+
var IndexedObject$2 = indexedObject;
|
|
1814
|
+
var requireObjectCoercible$7 = requireObjectCoercible$8;
|
|
1815
|
+
|
|
1816
|
+
var toIndexedObject$4 = function (it) {
|
|
1817
|
+
return IndexedObject$2(requireObjectCoercible$7(it));
|
|
1818
|
+
};
|
|
1761
1819
|
|
|
1820
|
+
// `IsCallable` abstract operation
|
|
1821
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
|
1822
|
+
var isCallable$d = function (argument) {
|
|
1823
|
+
return typeof argument === 'function';
|
|
1824
|
+
};
|
|
1762
1825
|
|
|
1826
|
+
var isCallable$c = isCallable$d;
|
|
1763
1827
|
|
|
1764
|
-
var
|
|
1765
|
-
return
|
|
1828
|
+
var isObject$7 = function (it) {
|
|
1829
|
+
return typeof it === 'object' ? it !== null : isCallable$c(it);
|
|
1766
1830
|
};
|
|
1767
1831
|
|
|
1768
|
-
var
|
|
1769
|
-
|
|
1832
|
+
var global$d = global$e;
|
|
1833
|
+
var isCallable$b = isCallable$d;
|
|
1834
|
+
|
|
1835
|
+
var aFunction = function (argument) {
|
|
1836
|
+
return isCallable$b(argument) ? argument : undefined;
|
|
1770
1837
|
};
|
|
1771
1838
|
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
var
|
|
1777
|
-
|
|
1839
|
+
var getBuiltIn$5 = function (namespace, method) {
|
|
1840
|
+
return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
|
|
1841
|
+
};
|
|
1842
|
+
|
|
1843
|
+
var getBuiltIn$4 = getBuiltIn$5;
|
|
1844
|
+
|
|
1845
|
+
var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
|
|
1846
|
+
|
|
1847
|
+
var global$c = global$e;
|
|
1848
|
+
var userAgent = engineUserAgent;
|
|
1849
|
+
|
|
1850
|
+
var process = global$c.process;
|
|
1851
|
+
var Deno = global$c.Deno;
|
|
1852
|
+
var versions = process && process.versions || Deno && Deno.version;
|
|
1853
|
+
var v8 = versions && versions.v8;
|
|
1854
|
+
var match, version;
|
|
1855
|
+
|
|
1856
|
+
if (v8) {
|
|
1857
|
+
match = v8.split('.');
|
|
1858
|
+
version = match[0] < 4 ? 1 : match[0] + match[1];
|
|
1859
|
+
} else if (userAgent) {
|
|
1860
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
1861
|
+
if (!match || match[1] >= 74) {
|
|
1862
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
1863
|
+
if (match) version = match[1];
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
var engineV8Version = version && +version;
|
|
1868
|
+
|
|
1869
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
1870
|
+
|
|
1871
|
+
var V8_VERSION$1 = engineV8Version;
|
|
1872
|
+
var fails$c = fails$f;
|
|
1873
|
+
|
|
1874
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
1875
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$c(function () {
|
|
1876
|
+
var symbol = Symbol();
|
|
1877
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
|
1878
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
1879
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
1880
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
1881
|
+
!Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
1882
|
+
});
|
|
1883
|
+
|
|
1884
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
1885
|
+
|
|
1886
|
+
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
1887
|
+
|
|
1888
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
1889
|
+
&& !Symbol.sham
|
|
1890
|
+
&& typeof Symbol.iterator == 'symbol';
|
|
1891
|
+
|
|
1892
|
+
var isCallable$a = isCallable$d;
|
|
1893
|
+
var getBuiltIn$3 = getBuiltIn$5;
|
|
1894
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
1895
|
+
|
|
1896
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
1897
|
+
return typeof it == 'symbol';
|
|
1898
|
+
} : function (it) {
|
|
1899
|
+
var $Symbol = getBuiltIn$3('Symbol');
|
|
1900
|
+
return isCallable$a($Symbol) && Object(it) instanceof $Symbol;
|
|
1901
|
+
};
|
|
1902
|
+
|
|
1903
|
+
var tryToString$2 = function (argument) {
|
|
1904
|
+
try {
|
|
1905
|
+
return String(argument);
|
|
1906
|
+
} catch (error) {
|
|
1907
|
+
return 'Object';
|
|
1908
|
+
}
|
|
1909
|
+
};
|
|
1910
|
+
|
|
1911
|
+
var isCallable$9 = isCallable$d;
|
|
1912
|
+
var tryToString$1 = tryToString$2;
|
|
1913
|
+
|
|
1914
|
+
// `Assert: IsCallable(argument) is true`
|
|
1915
|
+
var aCallable$2 = function (argument) {
|
|
1916
|
+
if (isCallable$9(argument)) return argument;
|
|
1917
|
+
throw TypeError(tryToString$1(argument) + ' is not a function');
|
|
1918
|
+
};
|
|
1919
|
+
|
|
1920
|
+
var aCallable$1 = aCallable$2;
|
|
1921
|
+
|
|
1922
|
+
// `GetMethod` abstract operation
|
|
1923
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
|
1924
|
+
var getMethod$4 = function (V, P) {
|
|
1925
|
+
var func = V[P];
|
|
1926
|
+
return func == null ? undefined : aCallable$1(func);
|
|
1927
|
+
};
|
|
1928
|
+
|
|
1929
|
+
var isCallable$8 = isCallable$d;
|
|
1930
|
+
var isObject$6 = isObject$7;
|
|
1931
|
+
|
|
1932
|
+
// `OrdinaryToPrimitive` abstract operation
|
|
1933
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
1934
|
+
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
1778
1935
|
var fn, val;
|
|
1779
|
-
if (
|
|
1780
|
-
if (
|
|
1781
|
-
if (
|
|
1936
|
+
if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$6(val = fn.call(input))) return val;
|
|
1937
|
+
if (isCallable$8(fn = input.valueOf) && !isObject$6(val = fn.call(input))) return val;
|
|
1938
|
+
if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$6(val = fn.call(input))) return val;
|
|
1782
1939
|
throw TypeError("Can't convert object to primitive value");
|
|
1783
1940
|
};
|
|
1784
1941
|
|
|
1942
|
+
var shared$5 = {exports: {}};
|
|
1943
|
+
|
|
1944
|
+
var isPure = false;
|
|
1945
|
+
|
|
1946
|
+
var global$b = global$e;
|
|
1947
|
+
|
|
1948
|
+
var setGlobal$3 = function (key, value) {
|
|
1949
|
+
try {
|
|
1950
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1951
|
+
Object.defineProperty(global$b, key, { value: value, configurable: true, writable: true });
|
|
1952
|
+
} catch (error) {
|
|
1953
|
+
global$b[key] = value;
|
|
1954
|
+
} return value;
|
|
1955
|
+
};
|
|
1956
|
+
|
|
1957
|
+
var global$a = global$e;
|
|
1958
|
+
var setGlobal$2 = setGlobal$3;
|
|
1959
|
+
|
|
1960
|
+
var SHARED = '__core-js_shared__';
|
|
1961
|
+
var store$3 = global$a[SHARED] || setGlobal$2(SHARED, {});
|
|
1962
|
+
|
|
1963
|
+
var sharedStore = store$3;
|
|
1964
|
+
|
|
1965
|
+
var IS_PURE$1 = isPure;
|
|
1966
|
+
var store$2 = sharedStore;
|
|
1967
|
+
|
|
1968
|
+
(shared$5.exports = function (key, value) {
|
|
1969
|
+
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
1970
|
+
})('versions', []).push({
|
|
1971
|
+
version: '3.18.2',
|
|
1972
|
+
mode: IS_PURE$1 ? 'pure' : 'global',
|
|
1973
|
+
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
1974
|
+
});
|
|
1975
|
+
|
|
1976
|
+
var shared$4 = shared$5.exports;
|
|
1977
|
+
|
|
1978
|
+
var requireObjectCoercible$6 = requireObjectCoercible$8;
|
|
1979
|
+
|
|
1980
|
+
// `ToObject` abstract operation
|
|
1981
|
+
// https://tc39.es/ecma262/#sec-toobject
|
|
1982
|
+
var toObject$4 = function (argument) {
|
|
1983
|
+
return Object(requireObjectCoercible$6(argument));
|
|
1984
|
+
};
|
|
1985
|
+
|
|
1986
|
+
var toObject$3 = toObject$4;
|
|
1987
|
+
|
|
1785
1988
|
var hasOwnProperty = {}.hasOwnProperty;
|
|
1786
1989
|
|
|
1787
|
-
|
|
1788
|
-
|
|
1990
|
+
// `HasOwnProperty` abstract operation
|
|
1991
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
1992
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
1993
|
+
return hasOwnProperty.call(toObject$3(it), key);
|
|
1994
|
+
};
|
|
1995
|
+
|
|
1996
|
+
var id = 0;
|
|
1997
|
+
var postfix = Math.random();
|
|
1998
|
+
|
|
1999
|
+
var uid$2 = function (key) {
|
|
2000
|
+
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
|
2001
|
+
};
|
|
2002
|
+
|
|
2003
|
+
var global$9 = global$e;
|
|
2004
|
+
var shared$3 = shared$5.exports;
|
|
2005
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
2006
|
+
var uid$1 = uid$2;
|
|
2007
|
+
var NATIVE_SYMBOL = nativeSymbol;
|
|
2008
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
2009
|
+
|
|
2010
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
2011
|
+
var Symbol$1 = global$9.Symbol;
|
|
2012
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
2013
|
+
|
|
2014
|
+
var wellKnownSymbol$a = function (name) {
|
|
2015
|
+
if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
2016
|
+
if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
|
|
2017
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
2018
|
+
} else {
|
|
2019
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
|
2020
|
+
}
|
|
2021
|
+
} return WellKnownSymbolsStore[name];
|
|
2022
|
+
};
|
|
2023
|
+
|
|
2024
|
+
var isObject$5 = isObject$7;
|
|
2025
|
+
var isSymbol$1 = isSymbol$2;
|
|
2026
|
+
var getMethod$3 = getMethod$4;
|
|
2027
|
+
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
2028
|
+
var wellKnownSymbol$9 = wellKnownSymbol$a;
|
|
2029
|
+
|
|
2030
|
+
var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
|
|
2031
|
+
|
|
2032
|
+
// `ToPrimitive` abstract operation
|
|
2033
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
|
2034
|
+
var toPrimitive$1 = function (input, pref) {
|
|
2035
|
+
if (!isObject$5(input) || isSymbol$1(input)) return input;
|
|
2036
|
+
var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
|
|
2037
|
+
var result;
|
|
2038
|
+
if (exoticToPrim) {
|
|
2039
|
+
if (pref === undefined) pref = 'default';
|
|
2040
|
+
result = exoticToPrim.call(input, pref);
|
|
2041
|
+
if (!isObject$5(result) || isSymbol$1(result)) return result;
|
|
2042
|
+
throw TypeError("Can't convert object to primitive value");
|
|
2043
|
+
}
|
|
2044
|
+
if (pref === undefined) pref = 'number';
|
|
2045
|
+
return ordinaryToPrimitive(input, pref);
|
|
2046
|
+
};
|
|
2047
|
+
|
|
2048
|
+
var toPrimitive = toPrimitive$1;
|
|
2049
|
+
var isSymbol = isSymbol$2;
|
|
2050
|
+
|
|
2051
|
+
// `ToPropertyKey` abstract operation
|
|
2052
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
|
2053
|
+
var toPropertyKey$2 = function (argument) {
|
|
2054
|
+
var key = toPrimitive(argument, 'string');
|
|
2055
|
+
return isSymbol(key) ? key : String(key);
|
|
1789
2056
|
};
|
|
1790
2057
|
|
|
1791
|
-
var
|
|
2058
|
+
var global$8 = global$e;
|
|
2059
|
+
var isObject$4 = isObject$7;
|
|
2060
|
+
|
|
2061
|
+
var document$1 = global$8.document;
|
|
1792
2062
|
// typeof document.createElement is 'object' in old IE
|
|
1793
|
-
var EXISTS = isObject(document$1) && isObject(document$1.createElement);
|
|
2063
|
+
var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
|
|
1794
2064
|
|
|
1795
|
-
var documentCreateElement = function (it) {
|
|
1796
|
-
return EXISTS ? document$1.createElement(it) : {};
|
|
2065
|
+
var documentCreateElement$1 = function (it) {
|
|
2066
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
1797
2067
|
};
|
|
1798
2068
|
|
|
2069
|
+
var DESCRIPTORS$8 = descriptors;
|
|
2070
|
+
var fails$b = fails$f;
|
|
2071
|
+
var createElement$1 = documentCreateElement$1;
|
|
2072
|
+
|
|
1799
2073
|
// Thank's IE8 for his funny defineProperty
|
|
1800
|
-
var ie8DomDefine = !
|
|
1801
|
-
|
|
2074
|
+
var ie8DomDefine = !DESCRIPTORS$8 && !fails$b(function () {
|
|
2075
|
+
// eslint-disable-next-line es/no-object-defineproperty -- requied for testing
|
|
2076
|
+
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
1802
2077
|
get: function () { return 7; }
|
|
1803
2078
|
}).a != 7;
|
|
1804
2079
|
});
|
|
1805
2080
|
|
|
1806
|
-
var
|
|
2081
|
+
var DESCRIPTORS$7 = descriptors;
|
|
2082
|
+
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
2083
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
2084
|
+
var toIndexedObject$3 = toIndexedObject$4;
|
|
2085
|
+
var toPropertyKey$1 = toPropertyKey$2;
|
|
2086
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
2087
|
+
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
2088
|
+
|
|
2089
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2090
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1807
2091
|
|
|
1808
2092
|
// `Object.getOwnPropertyDescriptor` method
|
|
1809
2093
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
1810
|
-
var f$3 =
|
|
1811
|
-
O = toIndexedObject(O);
|
|
1812
|
-
P =
|
|
1813
|
-
if (
|
|
1814
|
-
return
|
|
2094
|
+
var f$3 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
2095
|
+
O = toIndexedObject$3(O);
|
|
2096
|
+
P = toPropertyKey$1(P);
|
|
2097
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
2098
|
+
return $getOwnPropertyDescriptor(O, P);
|
|
1815
2099
|
} catch (error) { /* empty */ }
|
|
1816
|
-
if (
|
|
2100
|
+
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!propertyIsEnumerableModule$1.f.call(O, P), O[P]);
|
|
1817
2101
|
};
|
|
1818
2102
|
|
|
1819
|
-
var
|
|
1820
|
-
f: f$3
|
|
1821
|
-
};
|
|
2103
|
+
var objectDefineProperty = {};
|
|
1822
2104
|
|
|
1823
|
-
var
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
2105
|
+
var isObject$3 = isObject$7;
|
|
2106
|
+
|
|
2107
|
+
// `Assert: Type(argument) is Object`
|
|
2108
|
+
var anObject$a = function (argument) {
|
|
2109
|
+
if (isObject$3(argument)) return argument;
|
|
2110
|
+
throw TypeError(String(argument) + ' is not an object');
|
|
1827
2111
|
};
|
|
1828
2112
|
|
|
1829
|
-
var
|
|
2113
|
+
var DESCRIPTORS$6 = descriptors;
|
|
2114
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
2115
|
+
var anObject$9 = anObject$a;
|
|
2116
|
+
var toPropertyKey = toPropertyKey$2;
|
|
2117
|
+
|
|
2118
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2119
|
+
var $defineProperty = Object.defineProperty;
|
|
1830
2120
|
|
|
1831
2121
|
// `Object.defineProperty` method
|
|
1832
2122
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
1833
|
-
var f$2 =
|
|
1834
|
-
anObject(O);
|
|
1835
|
-
P =
|
|
1836
|
-
anObject(Attributes);
|
|
1837
|
-
if (
|
|
1838
|
-
return
|
|
2123
|
+
var f$2 = objectDefineProperty.f = DESCRIPTORS$6 ? $defineProperty : function defineProperty(O, P, Attributes) {
|
|
2124
|
+
anObject$9(O);
|
|
2125
|
+
P = toPropertyKey(P);
|
|
2126
|
+
anObject$9(Attributes);
|
|
2127
|
+
if (IE8_DOM_DEFINE) try {
|
|
2128
|
+
return $defineProperty(O, P, Attributes);
|
|
1839
2129
|
} catch (error) { /* empty */ }
|
|
1840
2130
|
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
|
1841
2131
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
1842
2132
|
return O;
|
|
1843
2133
|
};
|
|
1844
2134
|
|
|
1845
|
-
var
|
|
1846
|
-
|
|
1847
|
-
|
|
2135
|
+
var DESCRIPTORS$5 = descriptors;
|
|
2136
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
2137
|
+
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
1848
2138
|
|
|
1849
|
-
var createNonEnumerableProperty =
|
|
1850
|
-
return
|
|
2139
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
2140
|
+
return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
|
|
1851
2141
|
} : function (object, key, value) {
|
|
1852
2142
|
object[key] = value;
|
|
1853
2143
|
return object;
|
|
1854
2144
|
};
|
|
1855
2145
|
|
|
1856
|
-
var
|
|
1857
|
-
try {
|
|
1858
|
-
createNonEnumerableProperty(global_1, key, value);
|
|
1859
|
-
} catch (error) {
|
|
1860
|
-
global_1[key] = value;
|
|
1861
|
-
} return value;
|
|
1862
|
-
};
|
|
1863
|
-
|
|
1864
|
-
var SHARED = '__core-js_shared__';
|
|
1865
|
-
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
|
2146
|
+
var redefine$3 = {exports: {}};
|
|
1866
2147
|
|
|
1867
|
-
var
|
|
2148
|
+
var isCallable$7 = isCallable$d;
|
|
2149
|
+
var store$1 = sharedStore;
|
|
1868
2150
|
|
|
1869
2151
|
var functionToString = Function.toString;
|
|
1870
2152
|
|
|
1871
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
|
1872
|
-
if (
|
|
1873
|
-
|
|
2153
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
2154
|
+
if (!isCallable$7(store$1.inspectSource)) {
|
|
2155
|
+
store$1.inspectSource = function (it) {
|
|
1874
2156
|
return functionToString.call(it);
|
|
1875
2157
|
};
|
|
1876
2158
|
}
|
|
1877
2159
|
|
|
1878
|
-
var inspectSource =
|
|
1879
|
-
|
|
1880
|
-
var WeakMap$2 = global_1.WeakMap;
|
|
2160
|
+
var inspectSource$3 = store$1.inspectSource;
|
|
1881
2161
|
|
|
1882
|
-
var
|
|
2162
|
+
var global$7 = global$e;
|
|
2163
|
+
var isCallable$6 = isCallable$d;
|
|
2164
|
+
var inspectSource$2 = inspectSource$3;
|
|
1883
2165
|
|
|
1884
|
-
var
|
|
1885
|
-
|
|
1886
|
-
var shared = createCommonjsModule(function (module) {
|
|
1887
|
-
(module.exports = function (key, value) {
|
|
1888
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
1889
|
-
})('versions', []).push({
|
|
1890
|
-
version: '3.9.1',
|
|
1891
|
-
mode: isPure ? 'pure' : 'global',
|
|
1892
|
-
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
1893
|
-
});
|
|
1894
|
-
});
|
|
2166
|
+
var WeakMap$2 = global$7.WeakMap;
|
|
1895
2167
|
|
|
1896
|
-
var
|
|
1897
|
-
var postfix = Math.random();
|
|
2168
|
+
var nativeWeakMap = isCallable$6(WeakMap$2) && /native code/.test(inspectSource$2(WeakMap$2));
|
|
1898
2169
|
|
|
1899
|
-
var
|
|
1900
|
-
|
|
1901
|
-
};
|
|
2170
|
+
var shared$2 = shared$5.exports;
|
|
2171
|
+
var uid = uid$2;
|
|
1902
2172
|
|
|
1903
|
-
var keys = shared('keys');
|
|
2173
|
+
var keys = shared$2('keys');
|
|
1904
2174
|
|
|
1905
|
-
var sharedKey = function (key) {
|
|
2175
|
+
var sharedKey$2 = function (key) {
|
|
1906
2176
|
return keys[key] || (keys[key] = uid(key));
|
|
1907
2177
|
};
|
|
1908
2178
|
|
|
1909
|
-
var hiddenKeys$
|
|
2179
|
+
var hiddenKeys$4 = {};
|
|
1910
2180
|
|
|
1911
|
-
var
|
|
2181
|
+
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
2182
|
+
var global$6 = global$e;
|
|
2183
|
+
var isObject$2 = isObject$7;
|
|
2184
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
2185
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
2186
|
+
var shared$1 = sharedStore;
|
|
2187
|
+
var sharedKey$1 = sharedKey$2;
|
|
2188
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
2189
|
+
|
|
2190
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
2191
|
+
var WeakMap$1 = global$6.WeakMap;
|
|
1912
2192
|
var set, get, has;
|
|
1913
2193
|
|
|
1914
2194
|
var enforce = function (it) {
|
|
@@ -1918,18 +2198,19 @@
|
|
|
1918
2198
|
var getterFor = function (TYPE) {
|
|
1919
2199
|
return function (it) {
|
|
1920
2200
|
var state;
|
|
1921
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
2201
|
+
if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
|
|
1922
2202
|
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
1923
2203
|
} return state;
|
|
1924
2204
|
};
|
|
1925
2205
|
};
|
|
1926
2206
|
|
|
1927
|
-
if (
|
|
1928
|
-
var store =
|
|
2207
|
+
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
2208
|
+
var store = shared$1.state || (shared$1.state = new WeakMap$1());
|
|
1929
2209
|
var wmget = store.get;
|
|
1930
2210
|
var wmhas = store.has;
|
|
1931
2211
|
var wmset = store.set;
|
|
1932
2212
|
set = function (it, metadata) {
|
|
2213
|
+
if (wmhas.call(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
1933
2214
|
metadata.facade = it;
|
|
1934
2215
|
wmset.call(store, it, metadata);
|
|
1935
2216
|
return metadata;
|
|
@@ -1941,18 +2222,19 @@
|
|
|
1941
2222
|
return wmhas.call(store, it);
|
|
1942
2223
|
};
|
|
1943
2224
|
} else {
|
|
1944
|
-
var STATE = sharedKey('state');
|
|
1945
|
-
hiddenKeys$
|
|
2225
|
+
var STATE = sharedKey$1('state');
|
|
2226
|
+
hiddenKeys$3[STATE] = true;
|
|
1946
2227
|
set = function (it, metadata) {
|
|
2228
|
+
if (hasOwn$4(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
1947
2229
|
metadata.facade = it;
|
|
1948
|
-
createNonEnumerableProperty(it, STATE, metadata);
|
|
2230
|
+
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
1949
2231
|
return metadata;
|
|
1950
2232
|
};
|
|
1951
2233
|
get = function (it) {
|
|
1952
|
-
return
|
|
2234
|
+
return hasOwn$4(it, STATE) ? it[STATE] : {};
|
|
1953
2235
|
};
|
|
1954
2236
|
has = function (it) {
|
|
1955
|
-
return
|
|
2237
|
+
return hasOwn$4(it, STATE);
|
|
1956
2238
|
};
|
|
1957
2239
|
}
|
|
1958
2240
|
|
|
@@ -1963,34 +2245,59 @@
|
|
|
1963
2245
|
enforce: enforce,
|
|
1964
2246
|
getterFor: getterFor
|
|
1965
2247
|
};
|
|
1966
|
-
var internalState_1 = internalState.set;
|
|
1967
|
-
var internalState_2 = internalState.get;
|
|
1968
|
-
var internalState_3 = internalState.has;
|
|
1969
|
-
var internalState_4 = internalState.enforce;
|
|
1970
|
-
var internalState_5 = internalState.getterFor;
|
|
1971
2248
|
|
|
1972
|
-
var
|
|
1973
|
-
var
|
|
1974
|
-
|
|
2249
|
+
var DESCRIPTORS$4 = descriptors;
|
|
2250
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
2251
|
+
|
|
2252
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
2253
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2254
|
+
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
2255
|
+
|
|
2256
|
+
var EXISTS = hasOwn$3(FunctionPrototype$1, 'name');
|
|
2257
|
+
// additional protection from minified / mangled / dropped function names
|
|
2258
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
2259
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
2260
|
+
|
|
2261
|
+
var functionName = {
|
|
2262
|
+
EXISTS: EXISTS,
|
|
2263
|
+
PROPER: PROPER,
|
|
2264
|
+
CONFIGURABLE: CONFIGURABLE
|
|
2265
|
+
};
|
|
2266
|
+
|
|
2267
|
+
var global$5 = global$e;
|
|
2268
|
+
var isCallable$5 = isCallable$d;
|
|
2269
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
2270
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
2271
|
+
var setGlobal$1 = setGlobal$3;
|
|
2272
|
+
var inspectSource$1 = inspectSource$3;
|
|
2273
|
+
var InternalStateModule = internalState;
|
|
2274
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
2275
|
+
|
|
2276
|
+
var getInternalState$1 = InternalStateModule.get;
|
|
2277
|
+
var enforceInternalState = InternalStateModule.enforce;
|
|
1975
2278
|
var TEMPLATE = String(String).split('String');
|
|
1976
2279
|
|
|
1977
|
-
(
|
|
2280
|
+
(redefine$3.exports = function (O, key, value, options) {
|
|
1978
2281
|
var unsafe = options ? !!options.unsafe : false;
|
|
1979
2282
|
var simple = options ? !!options.enumerable : false;
|
|
1980
2283
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
2284
|
+
var name = options && options.name !== undefined ? options.name : key;
|
|
1981
2285
|
var state;
|
|
1982
|
-
if (
|
|
1983
|
-
if (
|
|
1984
|
-
|
|
2286
|
+
if (isCallable$5(value)) {
|
|
2287
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
2288
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
2289
|
+
}
|
|
2290
|
+
if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
2291
|
+
createNonEnumerableProperty$2(value, 'name', name);
|
|
1985
2292
|
}
|
|
1986
2293
|
state = enforceInternalState(value);
|
|
1987
2294
|
if (!state.source) {
|
|
1988
|
-
state.source = TEMPLATE.join(typeof
|
|
2295
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
1989
2296
|
}
|
|
1990
2297
|
}
|
|
1991
|
-
if (O ===
|
|
2298
|
+
if (O === global$5) {
|
|
1992
2299
|
if (simple) O[key] = value;
|
|
1993
|
-
else setGlobal(key, value);
|
|
2300
|
+
else setGlobal$1(key, value);
|
|
1994
2301
|
return;
|
|
1995
2302
|
} else if (!unsafe) {
|
|
1996
2303
|
delete O[key];
|
|
@@ -1998,57 +2305,67 @@
|
|
|
1998
2305
|
simple = true;
|
|
1999
2306
|
}
|
|
2000
2307
|
if (simple) O[key] = value;
|
|
2001
|
-
else createNonEnumerableProperty(O, key, value);
|
|
2308
|
+
else createNonEnumerableProperty$2(O, key, value);
|
|
2002
2309
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
2003
2310
|
})(Function.prototype, 'toString', function toString() {
|
|
2004
|
-
return
|
|
2311
|
+
return isCallable$5(this) && getInternalState$1(this).source || inspectSource$1(this);
|
|
2005
2312
|
});
|
|
2006
|
-
});
|
|
2007
|
-
|
|
2008
|
-
var path = global_1;
|
|
2009
2313
|
|
|
2010
|
-
var
|
|
2011
|
-
return typeof variable == 'function' ? variable : undefined;
|
|
2012
|
-
};
|
|
2314
|
+
var redefine$2 = redefine$3.exports;
|
|
2013
2315
|
|
|
2014
|
-
var
|
|
2015
|
-
return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global_1[namespace])
|
|
2016
|
-
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
|
|
2017
|
-
};
|
|
2316
|
+
var objectGetOwnPropertyNames = {};
|
|
2018
2317
|
|
|
2019
2318
|
var ceil = Math.ceil;
|
|
2020
2319
|
var floor$1 = Math.floor;
|
|
2021
2320
|
|
|
2022
|
-
// `
|
|
2023
|
-
// https://tc39.es/ecma262/#sec-
|
|
2024
|
-
var
|
|
2025
|
-
|
|
2321
|
+
// `ToIntegerOrInfinity` abstract operation
|
|
2322
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
2323
|
+
var toIntegerOrInfinity$4 = function (argument) {
|
|
2324
|
+
var number = +argument;
|
|
2325
|
+
// eslint-disable-next-line no-self-compare -- safe
|
|
2326
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
|
|
2327
|
+
};
|
|
2328
|
+
|
|
2329
|
+
var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
|
|
2330
|
+
|
|
2331
|
+
var max$1 = Math.max;
|
|
2332
|
+
var min$4 = Math.min;
|
|
2333
|
+
|
|
2334
|
+
// Helper for a popular repeating case of the spec:
|
|
2335
|
+
// Let integer be ? ToInteger(index).
|
|
2336
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
2337
|
+
var toAbsoluteIndex$1 = function (index, length) {
|
|
2338
|
+
var integer = toIntegerOrInfinity$3(index);
|
|
2339
|
+
return integer < 0 ? max$1(integer + length, 0) : min$4(integer, length);
|
|
2026
2340
|
};
|
|
2027
2341
|
|
|
2342
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
|
|
2343
|
+
|
|
2028
2344
|
var min$3 = Math.min;
|
|
2029
2345
|
|
|
2030
2346
|
// `ToLength` abstract operation
|
|
2031
2347
|
// https://tc39.es/ecma262/#sec-tolength
|
|
2032
|
-
var toLength = function (argument) {
|
|
2033
|
-
return argument > 0 ? min$3(
|
|
2348
|
+
var toLength$5 = function (argument) {
|
|
2349
|
+
return argument > 0 ? min$3(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
2034
2350
|
};
|
|
2035
2351
|
|
|
2036
|
-
var
|
|
2037
|
-
var min$2 = Math.min;
|
|
2352
|
+
var toLength$4 = toLength$5;
|
|
2038
2353
|
|
|
2039
|
-
//
|
|
2040
|
-
//
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
var integer = toInteger(index);
|
|
2044
|
-
return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
|
|
2354
|
+
// `LengthOfArrayLike` abstract operation
|
|
2355
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
2356
|
+
var lengthOfArrayLike$2 = function (obj) {
|
|
2357
|
+
return toLength$4(obj.length);
|
|
2045
2358
|
};
|
|
2046
2359
|
|
|
2360
|
+
var toIndexedObject$2 = toIndexedObject$4;
|
|
2361
|
+
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
2362
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
2363
|
+
|
|
2047
2364
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
2048
|
-
var createMethod$
|
|
2365
|
+
var createMethod$4 = function (IS_INCLUDES) {
|
|
2049
2366
|
return function ($this, el, fromIndex) {
|
|
2050
|
-
var O = toIndexedObject($this);
|
|
2051
|
-
var length =
|
|
2367
|
+
var O = toIndexedObject$2($this);
|
|
2368
|
+
var length = lengthOfArrayLike$1(O);
|
|
2052
2369
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
2053
2370
|
var value;
|
|
2054
2371
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -2067,32 +2384,32 @@
|
|
|
2067
2384
|
var arrayIncludes = {
|
|
2068
2385
|
// `Array.prototype.includes` method
|
|
2069
2386
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
2070
|
-
includes: createMethod$
|
|
2387
|
+
includes: createMethod$4(true),
|
|
2071
2388
|
// `Array.prototype.indexOf` method
|
|
2072
2389
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
2073
|
-
indexOf: createMethod$
|
|
2390
|
+
indexOf: createMethod$4(false)
|
|
2074
2391
|
};
|
|
2075
|
-
var arrayIncludes_1 = arrayIncludes.includes;
|
|
2076
|
-
var arrayIncludes_2 = arrayIncludes.indexOf;
|
|
2077
2392
|
|
|
2393
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
2394
|
+
var toIndexedObject$1 = toIndexedObject$4;
|
|
2078
2395
|
var indexOf = arrayIncludes.indexOf;
|
|
2079
|
-
|
|
2396
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
|
2080
2397
|
|
|
2081
2398
|
var objectKeysInternal = function (object, names) {
|
|
2082
|
-
var O = toIndexedObject(object);
|
|
2399
|
+
var O = toIndexedObject$1(object);
|
|
2083
2400
|
var i = 0;
|
|
2084
2401
|
var result = [];
|
|
2085
2402
|
var key;
|
|
2086
|
-
for (key in O) !
|
|
2403
|
+
for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && result.push(key);
|
|
2087
2404
|
// Don't enum bug & hidden keys
|
|
2088
|
-
while (names.length > i) if (
|
|
2405
|
+
while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
|
|
2089
2406
|
~indexOf(result, key) || result.push(key);
|
|
2090
2407
|
}
|
|
2091
2408
|
return result;
|
|
2092
2409
|
};
|
|
2093
2410
|
|
|
2094
2411
|
// IE8- don't enum bug keys
|
|
2095
|
-
var enumBugKeys = [
|
|
2412
|
+
var enumBugKeys$3 = [
|
|
2096
2413
|
'constructor',
|
|
2097
2414
|
'hasOwnProperty',
|
|
2098
2415
|
'isPrototypeOf',
|
|
@@ -2102,67 +2419,80 @@
|
|
|
2102
2419
|
'valueOf'
|
|
2103
2420
|
];
|
|
2104
2421
|
|
|
2105
|
-
var
|
|
2422
|
+
var internalObjectKeys$1 = objectKeysInternal;
|
|
2423
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
|
2424
|
+
|
|
2425
|
+
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
2106
2426
|
|
|
2107
2427
|
// `Object.getOwnPropertyNames` method
|
|
2108
2428
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
2109
|
-
|
|
2110
|
-
|
|
2429
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
2430
|
+
var f$1 = objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
2431
|
+
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
2111
2432
|
};
|
|
2112
2433
|
|
|
2113
|
-
var
|
|
2114
|
-
f: f$1
|
|
2115
|
-
};
|
|
2434
|
+
var objectGetOwnPropertySymbols = {};
|
|
2116
2435
|
|
|
2117
|
-
|
|
2436
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
2437
|
+
var f = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
2118
2438
|
|
|
2119
|
-
var
|
|
2120
|
-
|
|
2121
|
-
|
|
2439
|
+
var getBuiltIn$2 = getBuiltIn$5;
|
|
2440
|
+
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
2441
|
+
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
2442
|
+
var anObject$8 = anObject$a;
|
|
2122
2443
|
|
|
2123
2444
|
// all object keys, includes non-enumerable and symbols
|
|
2124
|
-
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
2125
|
-
var keys =
|
|
2126
|
-
var getOwnPropertySymbols =
|
|
2445
|
+
var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
2446
|
+
var keys = getOwnPropertyNamesModule.f(anObject$8(it));
|
|
2447
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
2127
2448
|
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
|
2128
2449
|
};
|
|
2129
2450
|
|
|
2130
|
-
var
|
|
2451
|
+
var hasOwn = hasOwnProperty_1;
|
|
2452
|
+
var ownKeys = ownKeys$1;
|
|
2453
|
+
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
2454
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
2455
|
+
|
|
2456
|
+
var copyConstructorProperties$1 = function (target, source) {
|
|
2131
2457
|
var keys = ownKeys(source);
|
|
2132
|
-
var defineProperty =
|
|
2133
|
-
var getOwnPropertyDescriptor =
|
|
2458
|
+
var defineProperty = definePropertyModule$1.f;
|
|
2459
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
2134
2460
|
for (var i = 0; i < keys.length; i++) {
|
|
2135
2461
|
var key = keys[i];
|
|
2136
|
-
if (!
|
|
2462
|
+
if (!hasOwn(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
2137
2463
|
}
|
|
2138
2464
|
};
|
|
2139
2465
|
|
|
2466
|
+
var fails$a = fails$f;
|
|
2467
|
+
var isCallable$4 = isCallable$d;
|
|
2468
|
+
|
|
2140
2469
|
var replacement = /#|\.prototype\./;
|
|
2141
2470
|
|
|
2142
|
-
var isForced = function (feature, detection) {
|
|
2471
|
+
var isForced$1 = function (feature, detection) {
|
|
2143
2472
|
var value = data[normalize(feature)];
|
|
2144
2473
|
return value == POLYFILL ? true
|
|
2145
2474
|
: value == NATIVE ? false
|
|
2146
|
-
:
|
|
2475
|
+
: isCallable$4(detection) ? fails$a(detection)
|
|
2147
2476
|
: !!detection;
|
|
2148
2477
|
};
|
|
2149
2478
|
|
|
2150
|
-
var normalize = isForced.normalize = function (string) {
|
|
2479
|
+
var normalize = isForced$1.normalize = function (string) {
|
|
2151
2480
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
2152
2481
|
};
|
|
2153
2482
|
|
|
2154
|
-
var data = isForced.data = {};
|
|
2155
|
-
var NATIVE = isForced.NATIVE = 'N';
|
|
2156
|
-
var POLYFILL = isForced.POLYFILL = 'P';
|
|
2157
|
-
|
|
2158
|
-
var isForced_1 = isForced;
|
|
2159
|
-
|
|
2160
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2483
|
+
var data = isForced$1.data = {};
|
|
2484
|
+
var NATIVE = isForced$1.NATIVE = 'N';
|
|
2485
|
+
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
2164
2486
|
|
|
2487
|
+
var isForced_1 = isForced$1;
|
|
2165
2488
|
|
|
2489
|
+
var global$4 = global$e;
|
|
2490
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
2491
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
2492
|
+
var redefine$1 = redefine$3.exports;
|
|
2493
|
+
var setGlobal = setGlobal$3;
|
|
2494
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
|
2495
|
+
var isForced = isForced_1;
|
|
2166
2496
|
|
|
2167
2497
|
/*
|
|
2168
2498
|
options.target - name of the target object
|
|
@@ -2177,6 +2507,7 @@
|
|
|
2177
2507
|
options.sham - add a flag to not completely full polyfills
|
|
2178
2508
|
options.enumerable - export as enumerable property
|
|
2179
2509
|
options.noTargetGet - prevent calling a getter on target
|
|
2510
|
+
options.name - the .name of the function if it does not match the key
|
|
2180
2511
|
*/
|
|
2181
2512
|
var _export = function (options, source) {
|
|
2182
2513
|
var TARGET = options.target;
|
|
@@ -2184,19 +2515,19 @@
|
|
|
2184
2515
|
var STATIC = options.stat;
|
|
2185
2516
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
2186
2517
|
if (GLOBAL) {
|
|
2187
|
-
target =
|
|
2518
|
+
target = global$4;
|
|
2188
2519
|
} else if (STATIC) {
|
|
2189
|
-
target =
|
|
2520
|
+
target = global$4[TARGET] || setGlobal(TARGET, {});
|
|
2190
2521
|
} else {
|
|
2191
|
-
target = (
|
|
2522
|
+
target = (global$4[TARGET] || {}).prototype;
|
|
2192
2523
|
}
|
|
2193
2524
|
if (target) for (key in source) {
|
|
2194
2525
|
sourceProperty = source[key];
|
|
2195
2526
|
if (options.noTargetGet) {
|
|
2196
|
-
descriptor = getOwnPropertyDescriptor(target, key);
|
|
2527
|
+
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
2197
2528
|
targetProperty = descriptor && descriptor.value;
|
|
2198
2529
|
} else targetProperty = target[key];
|
|
2199
|
-
FORCED =
|
|
2530
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
2200
2531
|
// contained in target
|
|
2201
2532
|
if (!FORCED && targetProperty !== undefined) {
|
|
2202
2533
|
if (typeof sourceProperty === typeof targetProperty) continue;
|
|
@@ -2204,33 +2535,40 @@
|
|
|
2204
2535
|
}
|
|
2205
2536
|
// add a flag to not completely full polyfills
|
|
2206
2537
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
2207
|
-
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
2538
|
+
createNonEnumerableProperty$1(sourceProperty, 'sham', true);
|
|
2208
2539
|
}
|
|
2209
2540
|
// extend global
|
|
2210
|
-
redefine(target, key, sourceProperty, options);
|
|
2541
|
+
redefine$1(target, key, sourceProperty, options);
|
|
2211
2542
|
}
|
|
2212
2543
|
};
|
|
2213
2544
|
|
|
2545
|
+
var internalObjectKeys = objectKeysInternal;
|
|
2546
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
2547
|
+
|
|
2214
2548
|
// `Object.keys` method
|
|
2215
2549
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
2216
|
-
|
|
2217
|
-
|
|
2550
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
2551
|
+
var objectKeys$3 = Object.keys || function keys(O) {
|
|
2552
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
2218
2553
|
};
|
|
2219
2554
|
|
|
2555
|
+
var DESCRIPTORS$3 = descriptors;
|
|
2556
|
+
var objectKeys$2 = objectKeys$3;
|
|
2557
|
+
var toIndexedObject = toIndexedObject$4;
|
|
2220
2558
|
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
2221
2559
|
|
|
2222
2560
|
// `Object.{ entries, values }` methods implementation
|
|
2223
|
-
var createMethod$
|
|
2561
|
+
var createMethod$3 = function (TO_ENTRIES) {
|
|
2224
2562
|
return function (it) {
|
|
2225
2563
|
var O = toIndexedObject(it);
|
|
2226
|
-
var keys = objectKeys(O);
|
|
2564
|
+
var keys = objectKeys$2(O);
|
|
2227
2565
|
var length = keys.length;
|
|
2228
2566
|
var i = 0;
|
|
2229
2567
|
var result = [];
|
|
2230
2568
|
var key;
|
|
2231
2569
|
while (length > i) {
|
|
2232
2570
|
key = keys[i++];
|
|
2233
|
-
if (!
|
|
2571
|
+
if (!DESCRIPTORS$3 || propertyIsEnumerable.call(O, key)) {
|
|
2234
2572
|
result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
|
|
2235
2573
|
}
|
|
2236
2574
|
}
|
|
@@ -2241,905 +2579,1657 @@
|
|
|
2241
2579
|
var objectToArray = {
|
|
2242
2580
|
// `Object.entries` method
|
|
2243
2581
|
// https://tc39.es/ecma262/#sec-object.entries
|
|
2244
|
-
entries: createMethod$
|
|
2582
|
+
entries: createMethod$3(true),
|
|
2245
2583
|
// `Object.values` method
|
|
2246
2584
|
// https://tc39.es/ecma262/#sec-object.values
|
|
2247
|
-
values: createMethod$
|
|
2585
|
+
values: createMethod$3(false)
|
|
2248
2586
|
};
|
|
2249
|
-
var objectToArray_1 = objectToArray.entries;
|
|
2250
|
-
var objectToArray_2 = objectToArray.values;
|
|
2251
2587
|
|
|
2588
|
+
var $$7 = _export;
|
|
2252
2589
|
var $entries = objectToArray.entries;
|
|
2253
2590
|
|
|
2254
2591
|
// `Object.entries` method
|
|
2255
2592
|
// https://tc39.es/ecma262/#sec-object.entries
|
|
2256
|
-
|
|
2593
|
+
$$7({ target: 'Object', stat: true }, {
|
|
2257
2594
|
entries: function entries(O) {
|
|
2258
2595
|
return $entries(O);
|
|
2259
2596
|
}
|
|
2260
2597
|
});
|
|
2261
2598
|
|
|
2262
|
-
var
|
|
2599
|
+
var es_string_endsWith = {};
|
|
2600
|
+
|
|
2601
|
+
var wellKnownSymbol$8 = wellKnownSymbol$a;
|
|
2602
|
+
|
|
2603
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
|
|
2604
|
+
var test = {};
|
|
2263
2605
|
|
|
2606
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
2607
|
+
|
|
2608
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
2609
|
+
|
|
2610
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
2611
|
+
var isCallable$3 = isCallable$d;
|
|
2612
|
+
var classofRaw = classofRaw$1;
|
|
2613
|
+
var wellKnownSymbol$7 = wellKnownSymbol$a;
|
|
2614
|
+
|
|
2615
|
+
var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
|
|
2616
|
+
// ES3 wrong here
|
|
2617
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
2618
|
+
|
|
2619
|
+
// fallback for IE11 Script Access Denied error
|
|
2620
|
+
var tryGet = function (it, key) {
|
|
2621
|
+
try {
|
|
2622
|
+
return it[key];
|
|
2623
|
+
} catch (error) { /* empty */ }
|
|
2264
2624
|
};
|
|
2265
2625
|
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
var
|
|
2269
|
-
|
|
2270
|
-
|
|
2626
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
2627
|
+
var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
2628
|
+
var O, tag, result;
|
|
2629
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
2630
|
+
// @@toStringTag case
|
|
2631
|
+
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
2632
|
+
// builtinTag case
|
|
2633
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
2634
|
+
// ES3 arguments fallback
|
|
2635
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
|
|
2636
|
+
};
|
|
2271
2637
|
|
|
2272
|
-
|
|
2273
|
-
val = el['offset' + prop.substr(0, 1).toUpperCase() + prop.substr(1)];
|
|
2638
|
+
var classof$4 = classof$5;
|
|
2274
2639
|
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
val -= parseFloat(style.borderLeftWidth || 0);
|
|
2280
|
-
val -= parseFloat(style.borderRightWidth || 0);
|
|
2281
|
-
} else {
|
|
2282
|
-
val -= parseFloat(style.paddingTop || 0);
|
|
2283
|
-
val -= parseFloat(style.paddingBottom || 0);
|
|
2284
|
-
val -= parseFloat(style.borderTopWidth || 0);
|
|
2285
|
-
val -= parseFloat(style.borderBottomWidth || 0);
|
|
2286
|
-
}
|
|
2287
|
-
if (val < 0)
|
|
2288
|
-
val = 0;
|
|
2289
|
-
}
|
|
2290
|
-
}
|
|
2640
|
+
var toString$7 = function (argument) {
|
|
2641
|
+
if (classof$4(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
2642
|
+
return String(argument);
|
|
2643
|
+
};
|
|
2291
2644
|
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2645
|
+
var isObject$1 = isObject$7;
|
|
2646
|
+
var classof$3 = classofRaw$1;
|
|
2647
|
+
var wellKnownSymbol$6 = wellKnownSymbol$a;
|
|
2648
|
+
|
|
2649
|
+
var MATCH$1 = wellKnownSymbol$6('match');
|
|
2650
|
+
|
|
2651
|
+
// `IsRegExp` abstract operation
|
|
2652
|
+
// https://tc39.es/ecma262/#sec-isregexp
|
|
2653
|
+
var isRegexp = function (it) {
|
|
2654
|
+
var isRegExp;
|
|
2655
|
+
return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$3(it) == 'RegExp');
|
|
2295
2656
|
};
|
|
2296
2657
|
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
el.style[key] = value === undefined || value === null ? '' : String(value);}
|
|
2658
|
+
var isRegExp$1 = isRegexp;
|
|
2659
|
+
|
|
2660
|
+
var notARegexp = function (it) {
|
|
2661
|
+
if (isRegExp$1(it)) {
|
|
2662
|
+
throw TypeError("The method doesn't accept regular expressions");
|
|
2663
|
+
} return it;
|
|
2304
2664
|
};
|
|
2305
2665
|
|
|
2306
|
-
var
|
|
2307
|
-
return function () {
|
|
2308
|
-
var /**Element|ElementCSSInlineStyle*/el = arguments.length <= 0 ? undefined : arguments[0],
|
|
2309
|
-
/**string*/pseudoSelector,
|
|
2310
|
-
/**boolean*/paddings,
|
|
2311
|
-
/**boolean*/borders,
|
|
2312
|
-
/**boolean*/margins;
|
|
2666
|
+
var wellKnownSymbol$5 = wellKnownSymbol$a;
|
|
2313
2667
|
|
|
2314
|
-
|
|
2315
|
-
pseudoSelector = arguments.length <= 1 ? undefined : arguments[1];
|
|
2316
|
-
paddings = !!(arguments.length <= 2 ? undefined : arguments[2]);
|
|
2317
|
-
borders = !!(arguments.length <= 3 ? undefined : arguments[3]);
|
|
2318
|
-
margins = !!(arguments.length <= 4 ? undefined : arguments[4]);
|
|
2319
|
-
} else {
|
|
2320
|
-
paddings = !!(arguments.length <= 1 ? undefined : arguments[1]);
|
|
2321
|
-
borders = !!(arguments.length <= 2 ? undefined : arguments[2]);
|
|
2322
|
-
margins = !!(arguments.length <= 3 ? undefined : arguments[3]);
|
|
2323
|
-
}
|
|
2668
|
+
var MATCH = wellKnownSymbol$5('match');
|
|
2324
2669
|
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2670
|
+
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
2671
|
+
var regexp = /./;
|
|
2672
|
+
try {
|
|
2673
|
+
'/./'[METHOD_NAME](regexp);
|
|
2674
|
+
} catch (error1) {
|
|
2675
|
+
try {
|
|
2676
|
+
regexp[MATCH] = false;
|
|
2677
|
+
return '/./'[METHOD_NAME](regexp);
|
|
2678
|
+
} catch (error2) { /* empty */ }
|
|
2679
|
+
} return false;
|
|
2680
|
+
};
|
|
2331
2681
|
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2682
|
+
'use strict';
|
|
2683
|
+
var $$6 = _export;
|
|
2684
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
2685
|
+
var toLength$3 = toLength$5;
|
|
2686
|
+
var toString$6 = toString$7;
|
|
2687
|
+
var notARegExp = notARegexp;
|
|
2688
|
+
var requireObjectCoercible$5 = requireObjectCoercible$8;
|
|
2689
|
+
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
2690
|
+
var IS_PURE = isPure;
|
|
2691
|
+
|
|
2692
|
+
// eslint-disable-next-line es/no-string-prototype-endswith -- safe
|
|
2693
|
+
var $endsWith = ''.endsWith;
|
|
2694
|
+
var min$2 = Math.min;
|
|
2338
2695
|
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2696
|
+
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');
|
|
2697
|
+
// https://github.com/zloirock/core-js/pull/702
|
|
2698
|
+
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
|
|
2699
|
+
var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');
|
|
2700
|
+
return descriptor && !descriptor.writable;
|
|
2701
|
+
}();
|
|
2702
|
+
|
|
2703
|
+
// `String.prototype.endsWith` method
|
|
2704
|
+
// https://tc39.es/ecma262/#sec-string.prototype.endswith
|
|
2705
|
+
$$6({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
|
|
2706
|
+
endsWith: function endsWith(searchString /* , endPosition = @length */) {
|
|
2707
|
+
var that = toString$6(requireObjectCoercible$5(this));
|
|
2708
|
+
notARegExp(searchString);
|
|
2709
|
+
var endPosition = arguments.length > 1 ? arguments[1] : undefined;
|
|
2710
|
+
var len = that.length;
|
|
2711
|
+
var end = endPosition === undefined ? len : min$2(toLength$3(endPosition), len);
|
|
2712
|
+
var search = toString$6(searchString);
|
|
2713
|
+
return $endsWith
|
|
2714
|
+
? $endsWith.call(that, search, end)
|
|
2715
|
+
: that.slice(end - search.length, end) === search;
|
|
2716
|
+
}
|
|
2717
|
+
});
|
|
2344
2718
|
|
|
2345
|
-
|
|
2346
|
-
value = el.getBoundingClientRect()[dim];
|
|
2347
|
-
includesPadding = true;
|
|
2348
|
-
includesBorders = true;
|
|
2349
|
-
}
|
|
2719
|
+
var es_regexp_exec = {};
|
|
2350
2720
|
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
}
|
|
2721
|
+
'use strict';
|
|
2722
|
+
var anObject$7 = anObject$a;
|
|
2354
2723
|
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2724
|
+
// `RegExp.prototype.flags` getter implementation
|
|
2725
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
2726
|
+
var regexpFlags$1 = function () {
|
|
2727
|
+
var that = anObject$7(this);
|
|
2728
|
+
var result = '';
|
|
2729
|
+
if (that.global) result += 'g';
|
|
2730
|
+
if (that.ignoreCase) result += 'i';
|
|
2731
|
+
if (that.multiline) result += 'm';
|
|
2732
|
+
if (that.dotAll) result += 's';
|
|
2733
|
+
if (that.unicode) result += 'u';
|
|
2734
|
+
if (that.sticky) result += 'y';
|
|
2735
|
+
return result;
|
|
2736
|
+
};
|
|
2363
2737
|
|
|
2364
|
-
|
|
2365
|
-
includesPadding = true;
|
|
2366
|
-
includesBorders = true;
|
|
2367
|
-
}
|
|
2368
|
-
}
|
|
2738
|
+
var regexpStickyHelpers = {};
|
|
2369
2739
|
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
parseFloat(style["padding-".concat(endDim)] || 0);
|
|
2373
|
-
if (paddings) value += totalPadding;else
|
|
2374
|
-
value -= totalPadding;
|
|
2375
|
-
}
|
|
2740
|
+
var fails$9 = fails$f;
|
|
2741
|
+
var global$3 = global$e;
|
|
2376
2742
|
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
parseFloat(style["border-".concat(endDim, "-width")] || 0);
|
|
2380
|
-
if (borders) value += totalBorders;else
|
|
2381
|
-
value -= totalBorders;
|
|
2382
|
-
}
|
|
2743
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
2744
|
+
var $RegExp$2 = global$3.RegExp;
|
|
2383
2745
|
|
|
2384
|
-
|
|
2385
|
-
|
|
2746
|
+
var UNSUPPORTED_Y$2 = regexpStickyHelpers.UNSUPPORTED_Y = fails$9(function () {
|
|
2747
|
+
var re = $RegExp$2('a', 'y');
|
|
2748
|
+
re.lastIndex = 2;
|
|
2749
|
+
return re.exec('abcd') != null;
|
|
2750
|
+
});
|
|
2386
2751
|
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2752
|
+
var BROKEN_CARET = regexpStickyHelpers.BROKEN_CARET = fails$9(function () {
|
|
2753
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
2754
|
+
var re = $RegExp$2('^r', 'gy');
|
|
2755
|
+
re.lastIndex = 2;
|
|
2756
|
+
return re.exec('str') != null;
|
|
2757
|
+
});
|
|
2392
2758
|
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2759
|
+
var DESCRIPTORS$2 = descriptors;
|
|
2760
|
+
var definePropertyModule = objectDefineProperty;
|
|
2761
|
+
var anObject$6 = anObject$a;
|
|
2762
|
+
var objectKeys$1 = objectKeys$3;
|
|
2763
|
+
|
|
2764
|
+
// `Object.defineProperties` method
|
|
2765
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
2766
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
2767
|
+
var objectDefineProperties = DESCRIPTORS$2 ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
2768
|
+
anObject$6(O);
|
|
2769
|
+
var keys = objectKeys$1(Properties);
|
|
2770
|
+
var length = keys.length;
|
|
2771
|
+
var index = 0;
|
|
2772
|
+
var key;
|
|
2773
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
|
|
2774
|
+
return O;
|
|
2396
2775
|
};
|
|
2397
2776
|
|
|
2398
|
-
var
|
|
2399
|
-
return function ( /**Element|ElementCSSInlineStyle*/el,
|
|
2400
|
-
/**number*/value)
|
|
2401
|
-
{var paddings = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;var borders = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;var margins = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
2402
|
-
|
|
2403
|
-
if ( /**@type Window*/el === window) {
|
|
2404
|
-
return;
|
|
2405
|
-
}
|
|
2777
|
+
var getBuiltIn$1 = getBuiltIn$5;
|
|
2406
2778
|
|
|
2407
|
-
|
|
2408
|
-
return;
|
|
2409
|
-
}
|
|
2779
|
+
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
2410
2780
|
|
|
2411
|
-
|
|
2781
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
2412
2782
|
|
|
2413
|
-
|
|
2783
|
+
var anObject$5 = anObject$a;
|
|
2784
|
+
var defineProperties = objectDefineProperties;
|
|
2785
|
+
var enumBugKeys = enumBugKeys$3;
|
|
2786
|
+
var hiddenKeys = hiddenKeys$4;
|
|
2787
|
+
var html = html$1;
|
|
2788
|
+
var documentCreateElement = documentCreateElement$1;
|
|
2789
|
+
var sharedKey = sharedKey$2;
|
|
2414
2790
|
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2791
|
+
var GT = '>';
|
|
2792
|
+
var LT = '<';
|
|
2793
|
+
var PROTOTYPE = 'prototype';
|
|
2794
|
+
var SCRIPT = 'script';
|
|
2795
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
2418
2796
|
|
|
2419
|
-
|
|
2420
|
-
borders = !!borders;
|
|
2421
|
-
margins = !!margins;
|
|
2797
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
2422
2798
|
|
|
2423
|
-
|
|
2424
|
-
|
|
2799
|
+
var scriptTag = function (content) {
|
|
2800
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
2801
|
+
};
|
|
2425
2802
|
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2803
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
2804
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
2805
|
+
activeXDocument.write(scriptTag(''));
|
|
2806
|
+
activeXDocument.close();
|
|
2807
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
2808
|
+
activeXDocument = null; // avoid memory leak
|
|
2809
|
+
return temp;
|
|
2810
|
+
};
|
|
2432
2811
|
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2812
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
2813
|
+
var NullProtoObjectViaIFrame = function () {
|
|
2814
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
2815
|
+
var iframe = documentCreateElement('iframe');
|
|
2816
|
+
var JS = 'java' + SCRIPT + ':';
|
|
2817
|
+
var iframeDocument;
|
|
2818
|
+
iframe.style.display = 'none';
|
|
2819
|
+
html.appendChild(iframe);
|
|
2820
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
2821
|
+
iframe.src = String(JS);
|
|
2822
|
+
iframeDocument = iframe.contentWindow.document;
|
|
2823
|
+
iframeDocument.open();
|
|
2824
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
2825
|
+
iframeDocument.close();
|
|
2826
|
+
return iframeDocument.F;
|
|
2827
|
+
};
|
|
2439
2828
|
|
|
2440
|
-
|
|
2441
|
-
|
|
2829
|
+
// Check for document.domain and active x support
|
|
2830
|
+
// No need to use active x approach when document.domain is not set
|
|
2831
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
2832
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
2833
|
+
// avoid IE GC bug
|
|
2834
|
+
var activeXDocument;
|
|
2835
|
+
var NullProtoObject = function () {
|
|
2836
|
+
try {
|
|
2837
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
2838
|
+
} catch (error) { /* ignore */ }
|
|
2839
|
+
NullProtoObject = typeof document != 'undefined'
|
|
2840
|
+
? document.domain && activeXDocument
|
|
2841
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
2842
|
+
: NullProtoObjectViaIFrame()
|
|
2843
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
2844
|
+
var length = enumBugKeys.length;
|
|
2845
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
2846
|
+
return NullProtoObject();
|
|
2847
|
+
};
|
|
2442
2848
|
|
|
2443
|
-
|
|
2444
|
-
|
|
2849
|
+
hiddenKeys[IE_PROTO] = true;
|
|
2850
|
+
|
|
2851
|
+
// `Object.create` method
|
|
2852
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
2853
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
2854
|
+
var result;
|
|
2855
|
+
if (O !== null) {
|
|
2856
|
+
EmptyConstructor[PROTOTYPE] = anObject$5(O);
|
|
2857
|
+
result = new EmptyConstructor();
|
|
2858
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
2859
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
2860
|
+
result[IE_PROTO] = O;
|
|
2861
|
+
} else result = NullProtoObject();
|
|
2862
|
+
return Properties === undefined ? result : defineProperties(result, Properties);
|
|
2445
2863
|
};
|
|
2446
2864
|
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
* @function getElementWidth
|
|
2450
|
-
* @param {Element} el
|
|
2451
|
-
* @param {boolean} [paddings=false] - include paddings
|
|
2452
|
-
* @param {boolean} [borders=false] - include borders
|
|
2453
|
-
* @param {boolean} [margins=false] - include margins
|
|
2454
|
-
* @returns {number}
|
|
2455
|
-
*/
|
|
2456
|
-
var getElementWidth = generateGetElementSizeFn(false, 'width', 'Width', 'left', 'right');
|
|
2865
|
+
var fails$8 = fails$f;
|
|
2866
|
+
var global$2 = global$e;
|
|
2457
2867
|
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
* @function getElementHeight
|
|
2461
|
-
* @param {Element} el
|
|
2462
|
-
* @param {boolean} [paddings=false] - include paddings
|
|
2463
|
-
* @param {boolean} [borders=false] - include borders
|
|
2464
|
-
* @param {boolean} [margins=false] - include margins
|
|
2465
|
-
* @returns {number}
|
|
2466
|
-
*/
|
|
2467
|
-
var getElementHeight = generateGetElementSizeFn(false, 'height', 'Height', 'top', 'bottom');
|
|
2868
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
2869
|
+
var $RegExp$1 = global$2.RegExp;
|
|
2468
2870
|
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
* @param {string} pseudo
|
|
2474
|
-
* @param {boolean} [paddings=false] - include paddings
|
|
2475
|
-
* @param {boolean} [borders=false] - include borders
|
|
2476
|
-
* @param {boolean} [margins=false] - include margins
|
|
2477
|
-
* @returns {number}
|
|
2478
|
-
*/
|
|
2479
|
-
var getPseudoElementWidth = generateGetElementSizeFn(true, 'width', 'Width', 'left', 'right');
|
|
2871
|
+
var regexpUnsupportedDotAll = fails$8(function () {
|
|
2872
|
+
var re = $RegExp$1('.', 's');
|
|
2873
|
+
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
2874
|
+
});
|
|
2480
2875
|
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
* @function getPseudoElementHeight
|
|
2484
|
-
* @param {Element} el
|
|
2485
|
-
* @param {string} pseudo
|
|
2486
|
-
* @param {boolean} [paddings=false] - include paddings
|
|
2487
|
-
* @param {boolean} [borders=false] - include borders
|
|
2488
|
-
* @param {boolean} [margins=false] - include margins
|
|
2489
|
-
* @returns {number}
|
|
2490
|
-
*/
|
|
2491
|
-
var getPseudoElementHeight = generateGetElementSizeFn(true, 'height', 'Height', 'top', 'bottom');
|
|
2876
|
+
var fails$7 = fails$f;
|
|
2877
|
+
var global$1 = global$e;
|
|
2492
2878
|
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
* @function setElementWidth
|
|
2496
|
-
* @param {Element} el
|
|
2497
|
-
* @param {number} value
|
|
2498
|
-
* @param {boolean} [paddings=false] - include paddings
|
|
2499
|
-
* @param {boolean} [borders=false] - include borders
|
|
2500
|
-
* @param {boolean} [margins=false] - include margins
|
|
2501
|
-
*/
|
|
2502
|
-
var setElementWidth = generateSetElementSizeFn('width', 'Width', 'left', 'right');
|
|
2879
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
2880
|
+
var $RegExp = global$1.RegExp;
|
|
2503
2881
|
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
* @param {boolean} [paddings=false] - include paddings
|
|
2510
|
-
* @param {boolean} [borders=false] - include borders
|
|
2511
|
-
* @param {boolean} [margins=false] - include margins
|
|
2512
|
-
*/
|
|
2513
|
-
var setElementHeight = generateSetElementSizeFn('height', 'Height', 'top', 'bottom');
|
|
2882
|
+
var regexpUnsupportedNcg = fails$7(function () {
|
|
2883
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
2884
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
2885
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
2886
|
+
});
|
|
2514
2887
|
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
var
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2888
|
+
'use strict';
|
|
2889
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
2890
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
2891
|
+
var toString$5 = toString$7;
|
|
2892
|
+
var regexpFlags = regexpFlags$1;
|
|
2893
|
+
var stickyHelpers$1 = regexpStickyHelpers;
|
|
2894
|
+
var shared = shared$5.exports;
|
|
2895
|
+
var create = objectCreate;
|
|
2896
|
+
var getInternalState = internalState.get;
|
|
2897
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
2898
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
2524
2899
|
|
|
2525
|
-
|
|
2526
|
-
|
|
2900
|
+
var nativeExec = RegExp.prototype.exec;
|
|
2901
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
2527
2902
|
|
|
2528
|
-
|
|
2529
|
-
top: rect.top + view.pageYOffset,
|
|
2530
|
-
left: rect.left + view.pageXOffset };
|
|
2903
|
+
var patchedExec = nativeExec;
|
|
2531
2904
|
|
|
2905
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
2906
|
+
var re1 = /a/;
|
|
2907
|
+
var re2 = /b*/g;
|
|
2908
|
+
nativeExec.call(re1, 'a');
|
|
2909
|
+
nativeExec.call(re2, 'a');
|
|
2910
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
2911
|
+
})();
|
|
2912
|
+
|
|
2913
|
+
var UNSUPPORTED_Y$1 = stickyHelpers$1.UNSUPPORTED_Y || stickyHelpers$1.BROKEN_CARET;
|
|
2914
|
+
|
|
2915
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
2916
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
2917
|
+
|
|
2918
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
2919
|
+
|
|
2920
|
+
if (PATCH) {
|
|
2921
|
+
// eslint-disable-next-line max-statements -- TODO
|
|
2922
|
+
patchedExec = function exec(string) {
|
|
2923
|
+
var re = this;
|
|
2924
|
+
var state = getInternalState(re);
|
|
2925
|
+
var str = toString$5(string);
|
|
2926
|
+
var raw = state.raw;
|
|
2927
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
|
2928
|
+
|
|
2929
|
+
if (raw) {
|
|
2930
|
+
raw.lastIndex = re.lastIndex;
|
|
2931
|
+
result = patchedExec.call(raw, str);
|
|
2932
|
+
re.lastIndex = raw.lastIndex;
|
|
2933
|
+
return result;
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
var groups = state.groups;
|
|
2937
|
+
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
2938
|
+
var flags = regexpFlags.call(re);
|
|
2939
|
+
var source = re.source;
|
|
2940
|
+
var charsAdded = 0;
|
|
2941
|
+
var strCopy = str;
|
|
2942
|
+
|
|
2943
|
+
if (sticky) {
|
|
2944
|
+
flags = flags.replace('y', '');
|
|
2945
|
+
if (flags.indexOf('g') === -1) {
|
|
2946
|
+
flags += 'g';
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2949
|
+
strCopy = str.slice(re.lastIndex);
|
|
2950
|
+
// Support anchored sticky behavior.
|
|
2951
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str.charAt(re.lastIndex - 1) !== '\n')) {
|
|
2952
|
+
source = '(?: ' + source + ')';
|
|
2953
|
+
strCopy = ' ' + strCopy;
|
|
2954
|
+
charsAdded++;
|
|
2955
|
+
}
|
|
2956
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
2957
|
+
// simulate the 'y' flag.
|
|
2958
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
2959
|
+
}
|
|
2960
|
+
|
|
2961
|
+
if (NPCG_INCLUDED) {
|
|
2962
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
2963
|
+
}
|
|
2964
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
2965
|
+
|
|
2966
|
+
match = nativeExec.call(sticky ? reCopy : re, strCopy);
|
|
2967
|
+
|
|
2968
|
+
if (sticky) {
|
|
2969
|
+
if (match) {
|
|
2970
|
+
match.input = match.input.slice(charsAdded);
|
|
2971
|
+
match[0] = match[0].slice(charsAdded);
|
|
2972
|
+
match.index = re.lastIndex;
|
|
2973
|
+
re.lastIndex += match[0].length;
|
|
2974
|
+
} else re.lastIndex = 0;
|
|
2975
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
2976
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
2977
|
+
}
|
|
2978
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
2979
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
2980
|
+
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
2981
|
+
nativeReplace.call(match[0], reCopy, function () {
|
|
2982
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
|
2983
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
2984
|
+
}
|
|
2985
|
+
});
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2988
|
+
if (match && groups) {
|
|
2989
|
+
match.groups = object = create(null);
|
|
2990
|
+
for (i = 0; i < groups.length; i++) {
|
|
2991
|
+
group = groups[i];
|
|
2992
|
+
object[group[0]] = match[group[1]];
|
|
2993
|
+
}
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
return match;
|
|
2997
|
+
};
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
var regexpExec$3 = patchedExec;
|
|
3001
|
+
|
|
3002
|
+
'use strict';
|
|
3003
|
+
var $$5 = _export;
|
|
3004
|
+
var exec$1 = regexpExec$3;
|
|
3005
|
+
|
|
3006
|
+
// `RegExp.prototype.exec` method
|
|
3007
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
3008
|
+
$$5({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
|
|
3009
|
+
exec: exec$1
|
|
3010
|
+
});
|
|
3011
|
+
|
|
3012
|
+
var es_string_split = {};
|
|
3013
|
+
|
|
3014
|
+
'use strict';
|
|
3015
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
3016
|
+
|
|
3017
|
+
var redefine = redefine$3.exports;
|
|
3018
|
+
var regexpExec$2 = regexpExec$3;
|
|
3019
|
+
var fails$6 = fails$f;
|
|
3020
|
+
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
3021
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
3022
|
+
|
|
3023
|
+
var SPECIES$3 = wellKnownSymbol$4('species');
|
|
3024
|
+
var RegExpPrototype = RegExp.prototype;
|
|
3025
|
+
|
|
3026
|
+
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
3027
|
+
var SYMBOL = wellKnownSymbol$4(KEY);
|
|
3028
|
+
|
|
3029
|
+
var DELEGATES_TO_SYMBOL = !fails$6(function () {
|
|
3030
|
+
// String methods call symbol-named RegEp methods
|
|
3031
|
+
var O = {};
|
|
3032
|
+
O[SYMBOL] = function () { return 7; };
|
|
3033
|
+
return ''[KEY](O) != 7;
|
|
3034
|
+
});
|
|
3035
|
+
|
|
3036
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$6(function () {
|
|
3037
|
+
// Symbol-named RegExp methods call .exec
|
|
3038
|
+
var execCalled = false;
|
|
3039
|
+
var re = /a/;
|
|
3040
|
+
|
|
3041
|
+
if (KEY === 'split') {
|
|
3042
|
+
// We can't use real regex here since it causes deoptimization
|
|
3043
|
+
// and serious performance degradation in V8
|
|
3044
|
+
// https://github.com/zloirock/core-js/issues/306
|
|
3045
|
+
re = {};
|
|
3046
|
+
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
3047
|
+
// a new one. We need to return the patched regex when creating the new one.
|
|
3048
|
+
re.constructor = {};
|
|
3049
|
+
re.constructor[SPECIES$3] = function () { return re; };
|
|
3050
|
+
re.flags = '';
|
|
3051
|
+
re[SYMBOL] = /./[SYMBOL];
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
re.exec = function () { execCalled = true; return null; };
|
|
3055
|
+
|
|
3056
|
+
re[SYMBOL]('');
|
|
3057
|
+
return !execCalled;
|
|
3058
|
+
});
|
|
3059
|
+
|
|
3060
|
+
if (
|
|
3061
|
+
!DELEGATES_TO_SYMBOL ||
|
|
3062
|
+
!DELEGATES_TO_EXEC ||
|
|
3063
|
+
FORCED
|
|
3064
|
+
) {
|
|
3065
|
+
var nativeRegExpMethod = /./[SYMBOL];
|
|
3066
|
+
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
3067
|
+
var $exec = regexp.exec;
|
|
3068
|
+
if ($exec === regexpExec$2 || $exec === RegExpPrototype.exec) {
|
|
3069
|
+
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
3070
|
+
// The native String method already delegates to @@method (this
|
|
3071
|
+
// polyfilled function), leasing to infinite recursion.
|
|
3072
|
+
// We avoid it by directly calling the native @@method method.
|
|
3073
|
+
return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
|
|
3074
|
+
}
|
|
3075
|
+
return { done: true, value: nativeMethod.call(str, regexp, arg2) };
|
|
3076
|
+
}
|
|
3077
|
+
return { done: false };
|
|
3078
|
+
});
|
|
3079
|
+
|
|
3080
|
+
redefine(String.prototype, KEY, methods[0]);
|
|
3081
|
+
redefine(RegExpPrototype, SYMBOL, methods[1]);
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
2532
3085
|
};
|
|
2533
3086
|
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
* @param {Element} el? - the target element to base the calculations on. If `size` and `rtl` are specified - then this argument is optional.
|
|
2540
|
-
* @param {'left'|'center'|'right'|'start'|'end'|string|number} xSpec - horizontal anchor specification (could be either `'left'|'center'|'right'|'start'|'end'` or a percentage `'50%'` or a fixed decimal `Number`)
|
|
2541
|
-
* @param {'top'|'center'|'bottom'|string|number} ySpec - vertical anchor specification (could be either `'top'|'center'|'bottom'` or a percentage `'50%'` or a fixed decimal `Number`)
|
|
2542
|
-
* @param {{width: number, height: number}?} size - can be specified if already known, to avoid extra dom calculations. This is the outer size of the element, including padding and borders.
|
|
2543
|
-
* @param {boolean?} [rtl] - if not specified and values like `'start'`/`'end'` are use, then `rtl` is auto detected
|
|
2544
|
-
* @returns {{left: number, top: number, right: number, bottom: number, xSpec: string|number, ySpec: string|number}}
|
|
2545
|
-
*/
|
|
2546
|
-
var anchoredPosition = function anchoredPosition(el, xSpec, ySpec, size, rtl) {
|
|
2547
|
-
if (!size) {
|
|
2548
|
-
size = {
|
|
2549
|
-
width: getElementWidth(el, true, true),
|
|
2550
|
-
height: getElementWidth(el, true, true) };
|
|
3087
|
+
var fails$5 = fails$f;
|
|
3088
|
+
var isCallable$2 = isCallable$d;
|
|
3089
|
+
var classof$2 = classof$5;
|
|
3090
|
+
var getBuiltIn = getBuiltIn$5;
|
|
3091
|
+
var inspectSource = inspectSource$3;
|
|
2551
3092
|
|
|
3093
|
+
var empty = [];
|
|
3094
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
|
3095
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
3096
|
+
var exec = constructorRegExp.exec;
|
|
3097
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(function () { /* empty */ });
|
|
3098
|
+
|
|
3099
|
+
var isConstructorModern = function (argument) {
|
|
3100
|
+
if (!isCallable$2(argument)) return false;
|
|
3101
|
+
try {
|
|
3102
|
+
construct(Object, empty, argument);
|
|
3103
|
+
return true;
|
|
3104
|
+
} catch (error) {
|
|
3105
|
+
return false;
|
|
2552
3106
|
}
|
|
3107
|
+
};
|
|
2553
3108
|
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
3109
|
+
var isConstructorLegacy = function (argument) {
|
|
3110
|
+
if (!isCallable$2(argument)) return false;
|
|
3111
|
+
switch (classof$2(argument)) {
|
|
3112
|
+
case 'AsyncFunction':
|
|
3113
|
+
case 'GeneratorFunction':
|
|
3114
|
+
case 'AsyncGeneratorFunction': return false;
|
|
3115
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
|
3116
|
+
} return INCORRECT_TO_STRING || !!exec.call(constructorRegExp, inspectSource(argument));
|
|
3117
|
+
};
|
|
3118
|
+
|
|
3119
|
+
// `IsConstructor` abstract operation
|
|
3120
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
|
3121
|
+
var isConstructor$2 = !construct || fails$5(function () {
|
|
3122
|
+
var called;
|
|
3123
|
+
return isConstructorModern(isConstructorModern.call)
|
|
3124
|
+
|| !isConstructorModern(Object)
|
|
3125
|
+
|| !isConstructorModern(function () { called = true; })
|
|
3126
|
+
|| called;
|
|
3127
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
|
3128
|
+
|
|
3129
|
+
var isConstructor$1 = isConstructor$2;
|
|
3130
|
+
var tryToString = tryToString$2;
|
|
3131
|
+
|
|
3132
|
+
// `Assert: IsConstructor(argument) is true`
|
|
3133
|
+
var aConstructor$1 = function (argument) {
|
|
3134
|
+
if (isConstructor$1(argument)) return argument;
|
|
3135
|
+
throw TypeError(tryToString(argument) + ' is not a constructor');
|
|
3136
|
+
};
|
|
3137
|
+
|
|
3138
|
+
var anObject$4 = anObject$a;
|
|
3139
|
+
var aConstructor = aConstructor$1;
|
|
3140
|
+
var wellKnownSymbol$3 = wellKnownSymbol$a;
|
|
3141
|
+
|
|
3142
|
+
var SPECIES$2 = wellKnownSymbol$3('species');
|
|
3143
|
+
|
|
3144
|
+
// `SpeciesConstructor` abstract operation
|
|
3145
|
+
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
3146
|
+
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
3147
|
+
var C = anObject$4(O).constructor;
|
|
3148
|
+
var S;
|
|
3149
|
+
return C === undefined || (S = anObject$4(C)[SPECIES$2]) == undefined ? defaultConstructor : aConstructor(S);
|
|
3150
|
+
};
|
|
3151
|
+
|
|
3152
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
3153
|
+
var toString$4 = toString$7;
|
|
3154
|
+
var requireObjectCoercible$4 = requireObjectCoercible$8;
|
|
3155
|
+
|
|
3156
|
+
var createMethod$2 = function (CONVERT_TO_STRING) {
|
|
3157
|
+
return function ($this, pos) {
|
|
3158
|
+
var S = toString$4(requireObjectCoercible$4($this));
|
|
3159
|
+
var position = toIntegerOrInfinity$1(pos);
|
|
3160
|
+
var size = S.length;
|
|
3161
|
+
var first, second;
|
|
3162
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
3163
|
+
first = S.charCodeAt(position);
|
|
3164
|
+
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
3165
|
+
|| (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
|
|
3166
|
+
? CONVERT_TO_STRING ? S.charAt(position) : first
|
|
3167
|
+
: CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
3168
|
+
};
|
|
3169
|
+
};
|
|
3170
|
+
|
|
3171
|
+
var stringMultibyte = {
|
|
3172
|
+
// `String.prototype.codePointAt` method
|
|
3173
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
3174
|
+
codeAt: createMethod$2(false),
|
|
3175
|
+
// `String.prototype.at` method
|
|
3176
|
+
// https://github.com/mathiasbynens/String.prototype.at
|
|
3177
|
+
charAt: createMethod$2(true)
|
|
3178
|
+
};
|
|
3179
|
+
|
|
3180
|
+
'use strict';
|
|
3181
|
+
var charAt = stringMultibyte.charAt;
|
|
3182
|
+
|
|
3183
|
+
// `AdvanceStringIndex` abstract operation
|
|
3184
|
+
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
3185
|
+
var advanceStringIndex$3 = function (S, index, unicode) {
|
|
3186
|
+
return index + (unicode ? charAt(S, index).length : 1);
|
|
3187
|
+
};
|
|
3188
|
+
|
|
3189
|
+
var anObject$3 = anObject$a;
|
|
3190
|
+
var isCallable$1 = isCallable$d;
|
|
3191
|
+
var classof$1 = classofRaw$1;
|
|
3192
|
+
var regexpExec$1 = regexpExec$3;
|
|
3193
|
+
|
|
3194
|
+
// `RegExpExec` abstract operation
|
|
3195
|
+
// https://tc39.es/ecma262/#sec-regexpexec
|
|
3196
|
+
var regexpExecAbstract = function (R, S) {
|
|
3197
|
+
var exec = R.exec;
|
|
3198
|
+
if (isCallable$1(exec)) {
|
|
3199
|
+
var result = exec.call(R, S);
|
|
3200
|
+
if (result !== null) anObject$3(result);
|
|
3201
|
+
return result;
|
|
2559
3202
|
}
|
|
3203
|
+
if (classof$1(R) === 'RegExp') return regexpExec$1.call(R, S);
|
|
3204
|
+
throw TypeError('RegExp#exec called on incompatible receiver');
|
|
3205
|
+
};
|
|
2560
3206
|
|
|
2561
|
-
|
|
2562
|
-
|
|
3207
|
+
'use strict';
|
|
3208
|
+
var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
|
|
3209
|
+
var isRegExp = isRegexp;
|
|
3210
|
+
var anObject$2 = anObject$a;
|
|
3211
|
+
var requireObjectCoercible$3 = requireObjectCoercible$8;
|
|
3212
|
+
var speciesConstructor = speciesConstructor$1;
|
|
3213
|
+
var advanceStringIndex$2 = advanceStringIndex$3;
|
|
3214
|
+
var toLength$2 = toLength$5;
|
|
3215
|
+
var toString$3 = toString$7;
|
|
3216
|
+
var getMethod$2 = getMethod$4;
|
|
3217
|
+
var callRegExpExec = regexpExecAbstract;
|
|
3218
|
+
var regexpExec = regexpExec$3;
|
|
3219
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
3220
|
+
var fails$4 = fails$f;
|
|
3221
|
+
|
|
3222
|
+
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
3223
|
+
var arrayPush = [].push;
|
|
3224
|
+
var min$1 = Math.min;
|
|
3225
|
+
var MAX_UINT32 = 0xFFFFFFFF;
|
|
2563
3226
|
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
3227
|
+
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
3228
|
+
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
3229
|
+
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$4(function () {
|
|
3230
|
+
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
3231
|
+
var re = /(?:)/;
|
|
3232
|
+
var originalExec = re.exec;
|
|
3233
|
+
re.exec = function () { return originalExec.apply(this, arguments); };
|
|
3234
|
+
var result = 'ab'.split(re);
|
|
3235
|
+
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
|
3236
|
+
});
|
|
3237
|
+
|
|
3238
|
+
// @@split logic
|
|
3239
|
+
fixRegExpWellKnownSymbolLogic$2('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
3240
|
+
var internalSplit;
|
|
3241
|
+
if (
|
|
3242
|
+
'abbc'.split(/(b)*/)[1] == 'c' ||
|
|
3243
|
+
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
3244
|
+
'test'.split(/(?:)/, -1).length != 4 ||
|
|
3245
|
+
'ab'.split(/(?:ab)*/).length != 2 ||
|
|
3246
|
+
'.'.split(/(.?)(.?)/).length != 4 ||
|
|
3247
|
+
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
3248
|
+
'.'.split(/()()/).length > 1 ||
|
|
3249
|
+
''.split(/.?/).length
|
|
3250
|
+
) {
|
|
3251
|
+
// based on es5-shim implementation, need to rework it
|
|
3252
|
+
internalSplit = function (separator, limit) {
|
|
3253
|
+
var string = toString$3(requireObjectCoercible$3(this));
|
|
3254
|
+
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
3255
|
+
if (lim === 0) return [];
|
|
3256
|
+
if (separator === undefined) return [string];
|
|
3257
|
+
// If `separator` is not a regex, use native split
|
|
3258
|
+
if (!isRegExp(separator)) {
|
|
3259
|
+
return nativeSplit.call(string, separator, lim);
|
|
3260
|
+
}
|
|
3261
|
+
var output = [];
|
|
3262
|
+
var flags = (separator.ignoreCase ? 'i' : '') +
|
|
3263
|
+
(separator.multiline ? 'm' : '') +
|
|
3264
|
+
(separator.unicode ? 'u' : '') +
|
|
3265
|
+
(separator.sticky ? 'y' : '');
|
|
3266
|
+
var lastLastIndex = 0;
|
|
3267
|
+
// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
3268
|
+
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
|
3269
|
+
var match, lastIndex, lastLength;
|
|
3270
|
+
while (match = regexpExec.call(separatorCopy, string)) {
|
|
3271
|
+
lastIndex = separatorCopy.lastIndex;
|
|
3272
|
+
if (lastIndex > lastLastIndex) {
|
|
3273
|
+
output.push(string.slice(lastLastIndex, match.index));
|
|
3274
|
+
if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
|
|
3275
|
+
lastLength = match[0].length;
|
|
3276
|
+
lastLastIndex = lastIndex;
|
|
3277
|
+
if (output.length >= lim) break;
|
|
3278
|
+
}
|
|
3279
|
+
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
|
3280
|
+
}
|
|
3281
|
+
if (lastLastIndex === string.length) {
|
|
3282
|
+
if (lastLength || !separatorCopy.test('')) output.push('');
|
|
3283
|
+
} else output.push(string.slice(lastLastIndex));
|
|
3284
|
+
return output.length > lim ? output.slice(0, lim) : output;
|
|
3285
|
+
};
|
|
3286
|
+
// Chakra, V8
|
|
3287
|
+
} else if ('0'.split(undefined, 0).length) {
|
|
3288
|
+
internalSplit = function (separator, limit) {
|
|
3289
|
+
return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
|
|
3290
|
+
};
|
|
3291
|
+
} else internalSplit = nativeSplit;
|
|
3292
|
+
|
|
3293
|
+
return [
|
|
3294
|
+
// `String.prototype.split` method
|
|
3295
|
+
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
3296
|
+
function split(separator, limit) {
|
|
3297
|
+
var O = requireObjectCoercible$3(this);
|
|
3298
|
+
var splitter = separator == undefined ? undefined : getMethod$2(separator, SPLIT);
|
|
3299
|
+
return splitter
|
|
3300
|
+
? splitter.call(separator, O, limit)
|
|
3301
|
+
: internalSplit.call(toString$3(O), separator, limit);
|
|
3302
|
+
},
|
|
3303
|
+
// `RegExp.prototype[@@split]` method
|
|
3304
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
3305
|
+
//
|
|
3306
|
+
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
3307
|
+
// the 'y' flag.
|
|
3308
|
+
function (string, limit) {
|
|
3309
|
+
var rx = anObject$2(this);
|
|
3310
|
+
var S = toString$3(string);
|
|
3311
|
+
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
3312
|
+
|
|
3313
|
+
if (res.done) return res.value;
|
|
3314
|
+
|
|
3315
|
+
var C = speciesConstructor(rx, RegExp);
|
|
3316
|
+
|
|
3317
|
+
var unicodeMatching = rx.unicode;
|
|
3318
|
+
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
3319
|
+
(rx.multiline ? 'm' : '') +
|
|
3320
|
+
(rx.unicode ? 'u' : '') +
|
|
3321
|
+
(UNSUPPORTED_Y ? 'g' : 'y');
|
|
3322
|
+
|
|
3323
|
+
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
3324
|
+
// simulate the 'y' flag.
|
|
3325
|
+
var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
|
3326
|
+
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
3327
|
+
if (lim === 0) return [];
|
|
3328
|
+
if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
|
|
3329
|
+
var p = 0;
|
|
3330
|
+
var q = 0;
|
|
3331
|
+
var A = [];
|
|
3332
|
+
while (q < S.length) {
|
|
3333
|
+
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
|
3334
|
+
var z = callRegExpExec(splitter, UNSUPPORTED_Y ? S.slice(q) : S);
|
|
3335
|
+
var e;
|
|
3336
|
+
if (
|
|
3337
|
+
z === null ||
|
|
3338
|
+
(e = min$1(toLength$2(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
|
|
3339
|
+
) {
|
|
3340
|
+
q = advanceStringIndex$2(S, q, unicodeMatching);
|
|
3341
|
+
} else {
|
|
3342
|
+
A.push(S.slice(p, q));
|
|
3343
|
+
if (A.length === lim) return A;
|
|
3344
|
+
for (var i = 1; i <= z.length - 1; i++) {
|
|
3345
|
+
A.push(z[i]);
|
|
3346
|
+
if (A.length === lim) return A;
|
|
3347
|
+
}
|
|
3348
|
+
q = p = e;
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
A.push(S.slice(p));
|
|
3352
|
+
return A;
|
|
3353
|
+
}
|
|
3354
|
+
];
|
|
3355
|
+
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
3356
|
+
|
|
3357
|
+
var es_array_map = {};
|
|
3358
|
+
|
|
3359
|
+
var aCallable = aCallable$2;
|
|
3360
|
+
|
|
3361
|
+
// optional / simple context binding
|
|
3362
|
+
var functionBindContext = function (fn, that, length) {
|
|
3363
|
+
aCallable(fn);
|
|
3364
|
+
if (that === undefined) return fn;
|
|
3365
|
+
switch (length) {
|
|
3366
|
+
case 0: return function () {
|
|
3367
|
+
return fn.call(that);
|
|
3368
|
+
};
|
|
3369
|
+
case 1: return function (a) {
|
|
3370
|
+
return fn.call(that, a);
|
|
3371
|
+
};
|
|
3372
|
+
case 2: return function (a, b) {
|
|
3373
|
+
return fn.call(that, a, b);
|
|
3374
|
+
};
|
|
3375
|
+
case 3: return function (a, b, c) {
|
|
3376
|
+
return fn.call(that, a, b, c);
|
|
3377
|
+
};
|
|
3378
|
+
}
|
|
3379
|
+
return function (/* ...args */) {
|
|
3380
|
+
return fn.apply(that, arguments);
|
|
3381
|
+
};
|
|
3382
|
+
};
|
|
2580
3383
|
|
|
2581
|
-
|
|
2582
|
-
rtl = getComputedStyle(el).direction === 'rtl';
|
|
3384
|
+
var classof = classofRaw$1;
|
|
2583
3385
|
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
3386
|
+
// `IsArray` abstract operation
|
|
3387
|
+
// https://tc39.es/ecma262/#sec-isarray
|
|
3388
|
+
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
3389
|
+
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
3390
|
+
return classof(argument) == 'Array';
|
|
3391
|
+
};
|
|
3392
|
+
|
|
3393
|
+
var isArray = isArray$1;
|
|
3394
|
+
var isConstructor = isConstructor$2;
|
|
3395
|
+
var isObject = isObject$7;
|
|
3396
|
+
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
3397
|
+
|
|
3398
|
+
var SPECIES$1 = wellKnownSymbol$2('species');
|
|
3399
|
+
|
|
3400
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
|
3401
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
3402
|
+
var arraySpeciesConstructor$1 = function (originalArray) {
|
|
3403
|
+
var C;
|
|
3404
|
+
if (isArray(originalArray)) {
|
|
3405
|
+
C = originalArray.constructor;
|
|
3406
|
+
// cross-realm fallback
|
|
3407
|
+
if (isConstructor(C) && (C === Array || isArray(C.prototype))) C = undefined;
|
|
3408
|
+
else if (isObject(C)) {
|
|
3409
|
+
C = C[SPECIES$1];
|
|
3410
|
+
if (C === null) C = undefined;
|
|
2587
3411
|
}
|
|
2588
|
-
}
|
|
2589
|
-
|
|
2590
|
-
x = parseFloat(xSpec) || 0;
|
|
2591
|
-
xInverted = -x;
|
|
2592
|
-
}
|
|
3412
|
+
} return C === undefined ? Array : C;
|
|
3413
|
+
};
|
|
2593
3414
|
|
|
2594
|
-
|
|
2595
|
-
y = size.height;
|
|
2596
|
-
yInverted = 0;
|
|
2597
|
-
} else
|
|
2598
|
-
if (ySpec === 'center') {
|
|
2599
|
-
y = size.height / 2;
|
|
2600
|
-
yInverted = y;
|
|
2601
|
-
} else
|
|
2602
|
-
if (ySpec === 'top') {
|
|
2603
|
-
y = 0;
|
|
2604
|
-
yInverted = size.height;
|
|
2605
|
-
} else
|
|
2606
|
-
if (ySpec && typeof ySpec === 'string' && ySpec.charAt(ySpec.length - 1) === '%') {
|
|
2607
|
-
var _percent = (parseFloat(ySpec) || 0) / 100;
|
|
2608
|
-
y = size.height * _percent;
|
|
2609
|
-
yInverted = size.height * -_percent;
|
|
2610
|
-
} else
|
|
2611
|
-
{
|
|
2612
|
-
y = parseFloat(ySpec) || 0;
|
|
2613
|
-
yInverted = -y;
|
|
2614
|
-
}
|
|
3415
|
+
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
2615
3416
|
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
3417
|
+
// `ArraySpeciesCreate` abstract operation
|
|
3418
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
3419
|
+
var arraySpeciesCreate$1 = function (originalArray, length) {
|
|
3420
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
3421
|
+
};
|
|
3422
|
+
|
|
3423
|
+
var bind = functionBindContext;
|
|
3424
|
+
var IndexedObject$1 = indexedObject;
|
|
3425
|
+
var toObject$2 = toObject$4;
|
|
3426
|
+
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
3427
|
+
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
3428
|
+
|
|
3429
|
+
var push = [].push;
|
|
3430
|
+
|
|
3431
|
+
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
3432
|
+
var createMethod$1 = function (TYPE) {
|
|
3433
|
+
var IS_MAP = TYPE == 1;
|
|
3434
|
+
var IS_FILTER = TYPE == 2;
|
|
3435
|
+
var IS_SOME = TYPE == 3;
|
|
3436
|
+
var IS_EVERY = TYPE == 4;
|
|
3437
|
+
var IS_FIND_INDEX = TYPE == 6;
|
|
3438
|
+
var IS_FILTER_REJECT = TYPE == 7;
|
|
3439
|
+
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
3440
|
+
return function ($this, callbackfn, that, specificCreate) {
|
|
3441
|
+
var O = toObject$2($this);
|
|
3442
|
+
var self = IndexedObject$1(O);
|
|
3443
|
+
var boundFunction = bind(callbackfn, that, 3);
|
|
3444
|
+
var length = lengthOfArrayLike(self);
|
|
3445
|
+
var index = 0;
|
|
3446
|
+
var create = specificCreate || arraySpeciesCreate;
|
|
3447
|
+
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
|
3448
|
+
var value, result;
|
|
3449
|
+
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
3450
|
+
value = self[index];
|
|
3451
|
+
result = boundFunction(value, index, O);
|
|
3452
|
+
if (TYPE) {
|
|
3453
|
+
if (IS_MAP) target[index] = result; // map
|
|
3454
|
+
else if (result) switch (TYPE) {
|
|
3455
|
+
case 3: return true; // some
|
|
3456
|
+
case 5: return value; // find
|
|
3457
|
+
case 6: return index; // findIndex
|
|
3458
|
+
case 2: push.call(target, value); // filter
|
|
3459
|
+
} else switch (TYPE) {
|
|
3460
|
+
case 4: return false; // every
|
|
3461
|
+
case 7: push.call(target, value); // filterReject
|
|
3462
|
+
}
|
|
3463
|
+
}
|
|
3464
|
+
}
|
|
3465
|
+
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
|
3466
|
+
};
|
|
3467
|
+
};
|
|
2623
3468
|
|
|
3469
|
+
var arrayIteration = {
|
|
3470
|
+
// `Array.prototype.forEach` method
|
|
3471
|
+
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
3472
|
+
forEach: createMethod$1(0),
|
|
3473
|
+
// `Array.prototype.map` method
|
|
3474
|
+
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
3475
|
+
map: createMethod$1(1),
|
|
3476
|
+
// `Array.prototype.filter` method
|
|
3477
|
+
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
3478
|
+
filter: createMethod$1(2),
|
|
3479
|
+
// `Array.prototype.some` method
|
|
3480
|
+
// https://tc39.es/ecma262/#sec-array.prototype.some
|
|
3481
|
+
some: createMethod$1(3),
|
|
3482
|
+
// `Array.prototype.every` method
|
|
3483
|
+
// https://tc39.es/ecma262/#sec-array.prototype.every
|
|
3484
|
+
every: createMethod$1(4),
|
|
3485
|
+
// `Array.prototype.find` method
|
|
3486
|
+
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
3487
|
+
find: createMethod$1(5),
|
|
3488
|
+
// `Array.prototype.findIndex` method
|
|
3489
|
+
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
|
3490
|
+
findIndex: createMethod$1(6),
|
|
3491
|
+
// `Array.prototype.filterReject` method
|
|
3492
|
+
// https://github.com/tc39/proposal-array-filtering
|
|
3493
|
+
filterReject: createMethod$1(7)
|
|
2624
3494
|
};
|
|
2625
3495
|
|
|
2626
|
-
var
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
3496
|
+
var fails$3 = fails$f;
|
|
3497
|
+
var wellKnownSymbol$1 = wellKnownSymbol$a;
|
|
3498
|
+
var V8_VERSION = engineV8Version;
|
|
3499
|
+
|
|
3500
|
+
var SPECIES = wellKnownSymbol$1('species');
|
|
3501
|
+
|
|
3502
|
+
var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
|
|
3503
|
+
// We can't use this feature detection in V8 since it causes
|
|
3504
|
+
// deoptimization and serious performance degradation
|
|
3505
|
+
// https://github.com/zloirock/core-js/issues/677
|
|
3506
|
+
return V8_VERSION >= 51 || !fails$3(function () {
|
|
3507
|
+
var array = [];
|
|
3508
|
+
var constructor = array.constructor = {};
|
|
3509
|
+
constructor[SPECIES] = function () {
|
|
3510
|
+
return { foo: 1 };
|
|
3511
|
+
};
|
|
3512
|
+
return array[METHOD_NAME](Boolean).foo !== 1;
|
|
3513
|
+
});
|
|
3514
|
+
};
|
|
3515
|
+
|
|
3516
|
+
'use strict';
|
|
3517
|
+
var $$4 = _export;
|
|
3518
|
+
var $map = arrayIteration.map;
|
|
3519
|
+
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
|
|
3520
|
+
|
|
3521
|
+
var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('map');
|
|
3522
|
+
|
|
3523
|
+
// `Array.prototype.map` method
|
|
3524
|
+
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
3525
|
+
// with adding support of @@species
|
|
3526
|
+
$$4({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
|
3527
|
+
map: function map(callbackfn /* , thisArg */) {
|
|
3528
|
+
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
3529
|
+
}
|
|
2638
3530
|
});
|
|
2639
3531
|
|
|
2640
|
-
|
|
2641
|
-
* @param {string} tag
|
|
2642
|
-
* @param {Object<string, string>} [attrs]
|
|
2643
|
-
* @param {Node|Node[]} [children]
|
|
2644
|
-
* @returns {Element}
|
|
2645
|
-
*/
|
|
2646
|
-
var createElement = function createElement(tag, attrs, children) {
|
|
2647
|
-
var el = document.createElement(tag);
|
|
3532
|
+
var es_array_filter = {};
|
|
2648
3533
|
|
|
2649
|
-
|
|
2650
|
-
|
|
3534
|
+
'use strict';
|
|
3535
|
+
var $$3 = _export;
|
|
3536
|
+
var $filter = arrayIteration.filter;
|
|
3537
|
+
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$2;
|
|
3538
|
+
|
|
3539
|
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
|
|
3540
|
+
|
|
3541
|
+
// `Array.prototype.filter` method
|
|
3542
|
+
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
3543
|
+
// with adding support of @@species
|
|
3544
|
+
$$3({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
3545
|
+
filter: function filter(callbackfn /* , thisArg */) {
|
|
3546
|
+
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
3547
|
+
}
|
|
3548
|
+
});
|
|
2651
3549
|
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
3550
|
+
var es_string_match = {};
|
|
3551
|
+
|
|
3552
|
+
'use strict';
|
|
3553
|
+
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
3554
|
+
var anObject$1 = anObject$a;
|
|
3555
|
+
var toLength$1 = toLength$5;
|
|
3556
|
+
var toString$2 = toString$7;
|
|
3557
|
+
var requireObjectCoercible$2 = requireObjectCoercible$8;
|
|
3558
|
+
var getMethod$1 = getMethod$4;
|
|
3559
|
+
var advanceStringIndex$1 = advanceStringIndex$3;
|
|
3560
|
+
var regExpExec$1 = regexpExecAbstract;
|
|
3561
|
+
|
|
3562
|
+
// @@match logic
|
|
3563
|
+
fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCallNative) {
|
|
3564
|
+
return [
|
|
3565
|
+
// `String.prototype.match` method
|
|
3566
|
+
// https://tc39.es/ecma262/#sec-string.prototype.match
|
|
3567
|
+
function match(regexp) {
|
|
3568
|
+
var O = requireObjectCoercible$2(this);
|
|
3569
|
+
var matcher = regexp == undefined ? undefined : getMethod$1(regexp, MATCH);
|
|
3570
|
+
return matcher ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](toString$2(O));
|
|
3571
|
+
},
|
|
3572
|
+
// `RegExp.prototype[@@match]` method
|
|
3573
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
3574
|
+
function (string) {
|
|
3575
|
+
var rx = anObject$1(this);
|
|
3576
|
+
var S = toString$2(string);
|
|
3577
|
+
var res = maybeCallNative(nativeMatch, rx, S);
|
|
3578
|
+
|
|
3579
|
+
if (res.done) return res.value;
|
|
3580
|
+
|
|
3581
|
+
if (!rx.global) return regExpExec$1(rx, S);
|
|
3582
|
+
|
|
3583
|
+
var fullUnicode = rx.unicode;
|
|
3584
|
+
rx.lastIndex = 0;
|
|
3585
|
+
var A = [];
|
|
3586
|
+
var n = 0;
|
|
3587
|
+
var result;
|
|
3588
|
+
while ((result = regExpExec$1(rx, S)) !== null) {
|
|
3589
|
+
var matchStr = toString$2(result[0]);
|
|
3590
|
+
A[n] = matchStr;
|
|
3591
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$1(rx.lastIndex), fullUnicode);
|
|
3592
|
+
n++;
|
|
3593
|
+
}
|
|
3594
|
+
return n === 0 ? null : A;
|
|
2659
3595
|
}
|
|
2660
|
-
|
|
3596
|
+
];
|
|
3597
|
+
});
|
|
2661
3598
|
|
|
2662
|
-
|
|
3599
|
+
var es_string_trim = {};
|
|
3600
|
+
|
|
3601
|
+
// a string of all valid unicode whitespaces
|
|
3602
|
+
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
3603
|
+
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
3604
|
+
|
|
3605
|
+
var requireObjectCoercible$1 = requireObjectCoercible$8;
|
|
3606
|
+
var toString$1 = toString$7;
|
|
3607
|
+
var whitespaces$1 = whitespaces$2;
|
|
3608
|
+
|
|
3609
|
+
var whitespace = '[' + whitespaces$1 + ']';
|
|
3610
|
+
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
3611
|
+
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
3612
|
+
|
|
3613
|
+
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
3614
|
+
var createMethod = function (TYPE) {
|
|
3615
|
+
return function ($this) {
|
|
3616
|
+
var string = toString$1(requireObjectCoercible$1($this));
|
|
3617
|
+
if (TYPE & 1) string = string.replace(ltrim, '');
|
|
3618
|
+
if (TYPE & 2) string = string.replace(rtrim, '');
|
|
3619
|
+
return string;
|
|
3620
|
+
};
|
|
2663
3621
|
};
|
|
2664
3622
|
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
3623
|
+
var stringTrim = {
|
|
3624
|
+
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
3625
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
3626
|
+
start: createMethod(1),
|
|
3627
|
+
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
3628
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
3629
|
+
end: createMethod(2),
|
|
3630
|
+
// `String.prototype.trim` method
|
|
3631
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
3632
|
+
trim: createMethod(3)
|
|
3633
|
+
};
|
|
2673
3634
|
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
3635
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
3636
|
+
var fails$2 = fails$f;
|
|
3637
|
+
var whitespaces = whitespaces$2;
|
|
3638
|
+
|
|
3639
|
+
var non = '\u200B\u0085\u180E';
|
|
3640
|
+
|
|
3641
|
+
// check that a method works with the correct list
|
|
3642
|
+
// of whitespaces and has a correct name
|
|
3643
|
+
var stringTrimForced = function (METHOD_NAME) {
|
|
3644
|
+
return fails$2(function () {
|
|
3645
|
+
return !!whitespaces[METHOD_NAME]()
|
|
3646
|
+
|| non[METHOD_NAME]() !== non
|
|
3647
|
+
|| (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
|
3648
|
+
});
|
|
2682
3649
|
};
|
|
2683
3650
|
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
3651
|
+
'use strict';
|
|
3652
|
+
var $$2 = _export;
|
|
3653
|
+
var $trim = stringTrim.trim;
|
|
3654
|
+
var forcedStringTrimMethod = stringTrimForced;
|
|
3655
|
+
|
|
3656
|
+
// `String.prototype.trim` method
|
|
3657
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
3658
|
+
$$2({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
3659
|
+
trim: function trim() {
|
|
3660
|
+
return $trim(this);
|
|
3661
|
+
}
|
|
3662
|
+
});
|
|
2693
3663
|
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
3664
|
+
var getCssProps = function getCssProps(el, props) {
|
|
3665
|
+
var style = getComputedStyle(el);
|
|
3666
|
+
var res = {};var _iterator = _createForOfIteratorHelper(
|
|
3667
|
+
props),_step;try {for (_iterator.s(); !(_step = _iterator.n()).done;) {var prop = _step.value;
|
|
3668
|
+
var val = style[prop];
|
|
2697
3669
|
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
return el;
|
|
3670
|
+
if ((prop === 'width' || prop === 'height') && val === 'auto' && el instanceof HTMLElement) {
|
|
3671
|
+
val = el['offset' + prop.substr(0, 1).toUpperCase() + prop.substr(1)];
|
|
2701
3672
|
|
|
2702
|
-
|
|
2703
|
-
|
|
3673
|
+
if (style.boxSizing !== 'border-box') {
|
|
3674
|
+
if (prop === 'width') {
|
|
3675
|
+
val -= parseFloat(style.paddingLeft || 0);
|
|
3676
|
+
val -= parseFloat(style.paddingRight || 0);
|
|
3677
|
+
val -= parseFloat(style.borderLeftWidth || 0);
|
|
3678
|
+
val -= parseFloat(style.borderRightWidth || 0);
|
|
3679
|
+
} else {
|
|
3680
|
+
val -= parseFloat(style.paddingTop || 0);
|
|
3681
|
+
val -= parseFloat(style.paddingBottom || 0);
|
|
3682
|
+
val -= parseFloat(style.borderTopWidth || 0);
|
|
3683
|
+
val -= parseFloat(style.borderBottomWidth || 0);
|
|
3684
|
+
}
|
|
3685
|
+
if (val < 0)
|
|
3686
|
+
val = 0;
|
|
3687
|
+
}
|
|
2704
3688
|
|
|
2705
|
-
|
|
2706
|
-
|
|
3689
|
+
val += 'px';
|
|
3690
|
+
}
|
|
2707
3691
|
|
|
2708
|
-
|
|
3692
|
+
res[prop] = val;
|
|
3693
|
+
}} catch (err) {_iterator.e(err);} finally {_iterator.f();}
|
|
3694
|
+
return res;
|
|
2709
3695
|
};
|
|
2710
3696
|
|
|
2711
3697
|
/**
|
|
2712
|
-
* @param {
|
|
2713
|
-
* @param {string}
|
|
2714
|
-
* @returns {Element|null}
|
|
3698
|
+
* @param {ElementCSSInlineStyle} el
|
|
3699
|
+
* @param {Object<string, string>} props
|
|
2715
3700
|
*/
|
|
2716
|
-
var
|
|
2717
|
-
|
|
3701
|
+
var setCssProps = function setCssProps(el, props) {
|
|
3702
|
+
for (var _i = 0, _Object$entries = Object.entries(props); _i < _Object$entries.length; _i++) {var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),key = _Object$entries$_i[0],value = _Object$entries$_i[1];
|
|
3703
|
+
el.style[key] = value === undefined || value === null ? '' : String(value);}
|
|
3704
|
+
};
|
|
2718
3705
|
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
3706
|
+
var generateGetElementSizeFn = function generateGetElementSizeFn(pseudo, dim, dimCased, startDim, endDim) {
|
|
3707
|
+
return function () {
|
|
3708
|
+
var /**Element|ElementCSSInlineStyle*/el = arguments.length <= 0 ? undefined : arguments[0],
|
|
3709
|
+
/**string*/pseudoSelector,
|
|
3710
|
+
/**boolean*/paddings,
|
|
3711
|
+
/**boolean*/borders,
|
|
3712
|
+
/**boolean*/margins;
|
|
2722
3713
|
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
3714
|
+
if (pseudo) {
|
|
3715
|
+
pseudoSelector = arguments.length <= 1 ? undefined : arguments[1];
|
|
3716
|
+
paddings = !!(arguments.length <= 2 ? undefined : arguments[2]);
|
|
3717
|
+
borders = !!(arguments.length <= 3 ? undefined : arguments[3]);
|
|
3718
|
+
margins = !!(arguments.length <= 4 ? undefined : arguments[4]);
|
|
3719
|
+
} else {
|
|
3720
|
+
paddings = !!(arguments.length <= 1 ? undefined : arguments[1]);
|
|
3721
|
+
borders = !!(arguments.length <= 2 ? undefined : arguments[2]);
|
|
3722
|
+
margins = !!(arguments.length <= 3 ? undefined : arguments[3]);
|
|
3723
|
+
}
|
|
2726
3724
|
|
|
2727
|
-
|
|
2728
|
-
|
|
3725
|
+
if ( /**@type Window*/el === window) {
|
|
3726
|
+
return (/**@type Window*/el.document.documentElement["client".concat(dimCased)]);
|
|
3727
|
+
} else
|
|
3728
|
+
if (el.nodeType === 9) {// document
|
|
3729
|
+
var doc = /**@type Document*/el.documentElement;
|
|
3730
|
+
var body = /**@type Document*/el.body;
|
|
2729
3731
|
|
|
2730
|
-
|
|
2731
|
-
|
|
3732
|
+
return Math.max(
|
|
3733
|
+
body["scroll".concat(dimCased)],
|
|
3734
|
+
doc["scroll".concat(dimCased)],
|
|
3735
|
+
body["offset".concat(dimCased)],
|
|
3736
|
+
doc["offset".concat(dimCased)],
|
|
3737
|
+
doc["client".concat(dimCased)]);
|
|
2732
3738
|
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
3739
|
+
} else
|
|
3740
|
+
{
|
|
3741
|
+
var value;
|
|
3742
|
+
var style;
|
|
3743
|
+
var includesPadding = false,includesBorders = false;
|
|
3744
|
+
|
|
3745
|
+
if (!pseudo && 'getBoundingClientRect' in el) {
|
|
3746
|
+
value = el.getBoundingClientRect()[dim];
|
|
3747
|
+
includesPadding = true;
|
|
3748
|
+
includesBorders = true;
|
|
3749
|
+
}
|
|
3750
|
+
|
|
3751
|
+
if (value === undefined || margins || includesPadding !== paddings || includesBorders !== borders) {
|
|
3752
|
+
style = pseudo ? getComputedStyle(el, pseudoSelector) : getComputedStyle(el);
|
|
3753
|
+
}
|
|
3754
|
+
|
|
3755
|
+
if (value === undefined) {
|
|
3756
|
+
var raw = style[dim];
|
|
3757
|
+
if (raw === 'auto') {// computedStyle is no good here, probably an 'inline' element
|
|
3758
|
+
value = el["client".concat(dimCased)]; // take clientWidth/clientHeight (damn it, it's rounded)
|
|
3759
|
+
includesPadding = true;
|
|
3760
|
+
} else {
|
|
3761
|
+
value = parseFloat(raw);
|
|
3762
|
+
}
|
|
3763
|
+
|
|
3764
|
+
if (style.boxSizing === 'border-box') {
|
|
3765
|
+
includesPadding = true;
|
|
3766
|
+
includesBorders = true;
|
|
3767
|
+
}
|
|
3768
|
+
}
|
|
2740
3769
|
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
3770
|
+
if (paddings !== includesPadding) {
|
|
3771
|
+
var totalPadding = parseFloat(style["padding-".concat(startDim)] || 0) +
|
|
3772
|
+
parseFloat(style["padding-".concat(endDim)] || 0);
|
|
3773
|
+
if (paddings) value += totalPadding;else
|
|
3774
|
+
value -= totalPadding;
|
|
3775
|
+
}
|
|
2744
3776
|
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
3777
|
+
if (borders !== includesBorders) {
|
|
3778
|
+
var totalBorders = parseFloat(style["border-".concat(startDim, "-width")] || 0) +
|
|
3779
|
+
parseFloat(style["border-".concat(endDim, "-width")] || 0);
|
|
3780
|
+
if (borders) value += totalBorders;else
|
|
3781
|
+
value -= totalBorders;
|
|
3782
|
+
}
|
|
2748
3783
|
|
|
2749
|
-
|
|
2750
|
-
|
|
3784
|
+
if (value < 0)
|
|
3785
|
+
value = 0;
|
|
2751
3786
|
|
|
2752
|
-
|
|
2753
|
-
|
|
3787
|
+
if (margins) {
|
|
3788
|
+
var totalMargins = parseFloat(style["margin-".concat(startDim)] || 0) +
|
|
3789
|
+
parseFloat(style["margin-".concat(endDim)] || 0);
|
|
3790
|
+
value += totalMargins;
|
|
3791
|
+
}
|
|
2754
3792
|
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
closestUntil: closestUntil,
|
|
2760
|
-
prev: prev,
|
|
2761
|
-
next: next
|
|
2762
|
-
});
|
|
3793
|
+
return value;
|
|
3794
|
+
}
|
|
3795
|
+
};
|
|
3796
|
+
};
|
|
2763
3797
|
|
|
2764
|
-
|
|
3798
|
+
var generateSetElementSizeFn = function generateSetElementSizeFn(dim, dimCased, startDim, endDim) {
|
|
3799
|
+
return function ( /**Element|ElementCSSInlineStyle*/el,
|
|
3800
|
+
/**number*/value)
|
|
3801
|
+
{var paddings = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;var borders = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;var margins = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
2765
3802
|
|
|
3803
|
+
if ( /**@type Window*/el === window) {
|
|
3804
|
+
return;
|
|
3805
|
+
}
|
|
2766
3806
|
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
var that = anObject(this);
|
|
2771
|
-
var result = '';
|
|
2772
|
-
if (that.global) result += 'g';
|
|
2773
|
-
if (that.ignoreCase) result += 'i';
|
|
2774
|
-
if (that.multiline) result += 'm';
|
|
2775
|
-
if (that.dotAll) result += 's';
|
|
2776
|
-
if (that.unicode) result += 'u';
|
|
2777
|
-
if (that.sticky) result += 'y';
|
|
2778
|
-
return result;
|
|
2779
|
-
};
|
|
3807
|
+
if (el.nodeType === 9) {// document
|
|
3808
|
+
return;
|
|
3809
|
+
}
|
|
2780
3810
|
|
|
2781
|
-
|
|
3811
|
+
var style = getComputedStyle(el);
|
|
2782
3812
|
|
|
3813
|
+
var includesPaddingAndBorders = false;
|
|
2783
3814
|
|
|
3815
|
+
if (style.boxSizing === 'border-box') {
|
|
3816
|
+
includesPaddingAndBorders = true;
|
|
3817
|
+
}
|
|
2784
3818
|
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
return RegExp(s, f);
|
|
2789
|
-
}
|
|
3819
|
+
paddings = !!paddings;
|
|
3820
|
+
borders = !!borders;
|
|
3821
|
+
margins = !!margins;
|
|
2790
3822
|
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
var re = RE('a', 'y');
|
|
2794
|
-
re.lastIndex = 2;
|
|
2795
|
-
return re.exec('abcd') != null;
|
|
2796
|
-
});
|
|
3823
|
+
if (margins)
|
|
3824
|
+
value -= (parseFloat(style["margin-".concat(startDim)]) || 0) + (parseFloat(style["margin-".concat(endDim)]) || 0);
|
|
2797
3825
|
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
3826
|
+
if (paddings !== includesPaddingAndBorders) {
|
|
3827
|
+
var totalPadding = parseFloat(style["padding-".concat(startDim)] || 0) +
|
|
3828
|
+
parseFloat(style["padding-".concat(endDim)] || 0);
|
|
3829
|
+
if (paddings) value -= totalPadding;else
|
|
3830
|
+
value += totalPadding;
|
|
3831
|
+
}
|
|
2804
3832
|
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
3833
|
+
if (borders !== includesPaddingAndBorders) {
|
|
3834
|
+
var totalBorders = (parseFloat(style["border-".concat(startDim, "-width")]) || 0) + (
|
|
3835
|
+
parseFloat(style["border-".concat(endDim, "-width")]) || 0);
|
|
3836
|
+
if (borders) value -= totalBorders;else
|
|
3837
|
+
value += totalBorders;
|
|
3838
|
+
}
|
|
2809
3839
|
|
|
2810
|
-
|
|
3840
|
+
if (value < 0)
|
|
3841
|
+
value = 0;
|
|
2811
3842
|
|
|
3843
|
+
el.style[dim] = value + 'px';
|
|
3844
|
+
};
|
|
3845
|
+
};
|
|
2812
3846
|
|
|
3847
|
+
/**
|
|
3848
|
+
* Gets the width of an element, with fractions
|
|
3849
|
+
* @function getElementWidth
|
|
3850
|
+
* @param {Element} el
|
|
3851
|
+
* @param {boolean} [paddings=false] - include paddings
|
|
3852
|
+
* @param {boolean} [borders=false] - include borders
|
|
3853
|
+
* @param {boolean} [margins=false] - include margins
|
|
3854
|
+
* @returns {number}
|
|
3855
|
+
*/
|
|
3856
|
+
var getElementWidth = generateGetElementSizeFn(false, 'width', 'Width', 'left', 'right');
|
|
2813
3857
|
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
3858
|
+
/**
|
|
3859
|
+
* Gets the width of an element, with fractions
|
|
3860
|
+
* @function getElementHeight
|
|
3861
|
+
* @param {Element} el
|
|
3862
|
+
* @param {boolean} [paddings=false] - include paddings
|
|
3863
|
+
* @param {boolean} [borders=false] - include borders
|
|
3864
|
+
* @param {boolean} [margins=false] - include margins
|
|
3865
|
+
* @returns {number}
|
|
3866
|
+
*/
|
|
3867
|
+
var getElementHeight = generateGetElementSizeFn(false, 'height', 'Height', 'top', 'bottom');
|
|
2819
3868
|
|
|
2820
|
-
|
|
3869
|
+
/**
|
|
3870
|
+
* Gets the width of an element, with fractions
|
|
3871
|
+
* @function getPseudoElementWidth
|
|
3872
|
+
* @param {Element} el
|
|
3873
|
+
* @param {string} pseudo
|
|
3874
|
+
* @param {boolean} [paddings=false] - include paddings
|
|
3875
|
+
* @param {boolean} [borders=false] - include borders
|
|
3876
|
+
* @param {boolean} [margins=false] - include margins
|
|
3877
|
+
* @returns {number}
|
|
3878
|
+
*/
|
|
3879
|
+
var getPseudoElementWidth = generateGetElementSizeFn(true, 'width', 'Width', 'left', 'right');
|
|
2821
3880
|
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
3881
|
+
/**
|
|
3882
|
+
* Gets the width of an element, with fractions
|
|
3883
|
+
* @function getPseudoElementHeight
|
|
3884
|
+
* @param {Element} el
|
|
3885
|
+
* @param {string} pseudo
|
|
3886
|
+
* @param {boolean} [paddings=false] - include paddings
|
|
3887
|
+
* @param {boolean} [borders=false] - include borders
|
|
3888
|
+
* @param {boolean} [margins=false] - include margins
|
|
3889
|
+
* @returns {number}
|
|
3890
|
+
*/
|
|
3891
|
+
var getPseudoElementHeight = generateGetElementSizeFn(true, 'height', 'Height', 'top', 'bottom');
|
|
2829
3892
|
|
|
2830
|
-
|
|
3893
|
+
/**
|
|
3894
|
+
* Sets the width of an element
|
|
3895
|
+
* @function setElementWidth
|
|
3896
|
+
* @param {Element} el
|
|
3897
|
+
* @param {number} value
|
|
3898
|
+
* @param {boolean} [paddings=false] - include paddings
|
|
3899
|
+
* @param {boolean} [borders=false] - include borders
|
|
3900
|
+
* @param {boolean} [margins=false] - include margins
|
|
3901
|
+
*/
|
|
3902
|
+
var setElementWidth = generateSetElementSizeFn('width', 'Width', 'left', 'right');
|
|
2831
3903
|
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
3904
|
+
/**
|
|
3905
|
+
* Sets the width of an element, with fractions
|
|
3906
|
+
* @function setElementHeight
|
|
3907
|
+
* @param {Element} el
|
|
3908
|
+
* @param {number} value
|
|
3909
|
+
* @param {boolean} [paddings=false] - include paddings
|
|
3910
|
+
* @param {boolean} [borders=false] - include borders
|
|
3911
|
+
* @param {boolean} [margins=false] - include margins
|
|
3912
|
+
*/
|
|
3913
|
+
var setElementHeight = generateSetElementSizeFn('height', 'Height', 'top', 'bottom');
|
|
2835
3914
|
|
|
2836
|
-
|
|
3915
|
+
/**
|
|
3916
|
+
* Find offset of an element relative to the document, considering scroll offsets
|
|
3917
|
+
* @param {Element} el
|
|
3918
|
+
* @returns {{top: number, left: number}}
|
|
3919
|
+
*/
|
|
3920
|
+
var getElementOffset = function getElementOffset(el) {
|
|
3921
|
+
if (!el.getClientRects().length) {
|
|
3922
|
+
return { top: 0, left: 0 };
|
|
3923
|
+
}
|
|
2837
3924
|
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
var re = this;
|
|
2841
|
-
var lastIndex, reCopy, match, i;
|
|
2842
|
-
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
2843
|
-
var flags = regexpFlags.call(re);
|
|
2844
|
-
var source = re.source;
|
|
2845
|
-
var charsAdded = 0;
|
|
2846
|
-
var strCopy = str;
|
|
3925
|
+
var rect = el.getBoundingClientRect();
|
|
3926
|
+
var view = el.ownerDocument.defaultView;
|
|
2847
3927
|
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
flags += 'g';
|
|
2852
|
-
}
|
|
3928
|
+
return {
|
|
3929
|
+
top: rect.top + view.pageYOffset,
|
|
3930
|
+
left: rect.left + view.pageXOffset };
|
|
2853
3931
|
|
|
2854
|
-
|
|
2855
|
-
// Support anchored sticky behavior.
|
|
2856
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
|
|
2857
|
-
source = '(?: ' + source + ')';
|
|
2858
|
-
strCopy = ' ' + strCopy;
|
|
2859
|
-
charsAdded++;
|
|
2860
|
-
}
|
|
2861
|
-
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
2862
|
-
// simulate the 'y' flag.
|
|
2863
|
-
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
2864
|
-
}
|
|
3932
|
+
};
|
|
2865
3933
|
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
3934
|
+
/**
|
|
3935
|
+
* Calculates the anchored position relative to this element. <br />
|
|
3936
|
+
* The return value will include an `left`/`top` position on left/top axis, <br />
|
|
3937
|
+
* an `right`/`bottom` position which is the exact opposite, <br />
|
|
3938
|
+
* and the `xSpec`/`ySpec` after normalizing rtl based values (`'start'`/`'end'`).
|
|
3939
|
+
* @param {Element} el? - the target element to base the calculations on. If `size` and `rtl` are specified - then this argument is optional.
|
|
3940
|
+
* @param {'left'|'center'|'right'|'start'|'end'|string|number} xSpec - horizontal anchor specification (could be either `'left'|'center'|'right'|'start'|'end'` or a percentage `'50%'` or a fixed decimal `Number`)
|
|
3941
|
+
* @param {'top'|'center'|'bottom'|string|number} ySpec - vertical anchor specification (could be either `'top'|'center'|'bottom'` or a percentage `'50%'` or a fixed decimal `Number`)
|
|
3942
|
+
* @param {{width: number, height: number}?} size - can be specified if already known, to avoid extra dom calculations. This is the outer size of the element, including padding and borders.
|
|
3943
|
+
* @param {boolean?} [rtl] - if not specified and values like `'start'`/`'end'` are use, then `rtl` is auto detected
|
|
3944
|
+
* @returns {{left: number, top: number, right: number, bottom: number, xSpec: string|number, ySpec: string|number}}
|
|
3945
|
+
*/
|
|
3946
|
+
var anchoredPosition = function anchoredPosition(el, xSpec, ySpec, size, rtl) {
|
|
3947
|
+
if (!size) {
|
|
3948
|
+
size = {
|
|
3949
|
+
width: getElementWidth(el, true, true),
|
|
3950
|
+
height: getElementWidth(el, true, true) };
|
|
2870
3951
|
|
|
2871
|
-
|
|
3952
|
+
}
|
|
2872
3953
|
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
match[0] = match[0].slice(charsAdded);
|
|
2877
|
-
match.index = re.lastIndex;
|
|
2878
|
-
re.lastIndex += match[0].length;
|
|
2879
|
-
} else re.lastIndex = 0;
|
|
2880
|
-
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
2881
|
-
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
2882
|
-
}
|
|
2883
|
-
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
2884
|
-
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
2885
|
-
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
2886
|
-
nativeReplace.call(match[0], reCopy, function () {
|
|
2887
|
-
for (i = 1; i < arguments.length - 2; i++) {
|
|
2888
|
-
if (arguments[i] === undefined) match[i] = undefined;
|
|
2889
|
-
}
|
|
2890
|
-
});
|
|
3954
|
+
if (xSpec === 'start' || xSpec === 'end') {
|
|
3955
|
+
if ( /**@type boolean|null*/rtl === null || rtl === undefined) {
|
|
3956
|
+
rtl = getComputedStyle(el).direction === 'rtl';
|
|
2891
3957
|
}
|
|
3958
|
+
xSpec = xSpec === 'start' ? rtl ? 'right' : 'left' : rtl ? 'left' : 'right';
|
|
3959
|
+
}
|
|
2892
3960
|
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
}
|
|
2896
|
-
|
|
2897
|
-
var regexpExec = patchedExec;
|
|
3961
|
+
var x, y;
|
|
3962
|
+
var xInverted, yInverted;
|
|
2898
3963
|
|
|
2899
|
-
|
|
3964
|
+
if (xSpec === 'right') {
|
|
3965
|
+
x = size.width;
|
|
3966
|
+
xInverted = 0;
|
|
3967
|
+
} else
|
|
3968
|
+
if (xSpec === 'center') {
|
|
3969
|
+
x = size.width / 2;
|
|
3970
|
+
xInverted = x;
|
|
3971
|
+
} else
|
|
3972
|
+
if (xSpec === 'left') {
|
|
3973
|
+
x = 0;
|
|
3974
|
+
xInverted = size.width;
|
|
3975
|
+
} else
|
|
3976
|
+
if (xSpec && typeof xSpec === 'string' && xSpec.charAt(xSpec.length - 1) === '%') {
|
|
3977
|
+
var percent = (parseFloat(xSpec) || 0) / 100;
|
|
3978
|
+
x = size.width * percent;
|
|
3979
|
+
xInverted = size.width * -percent;
|
|
2900
3980
|
|
|
3981
|
+
if ( /**@type boolean|null*/rtl === null || rtl === undefined)
|
|
3982
|
+
rtl = getComputedStyle(el).direction === 'rtl';
|
|
2901
3983
|
|
|
3984
|
+
if (rtl) {
|
|
3985
|
+
x = size.width - x;
|
|
3986
|
+
xInverted = size.width - x;
|
|
3987
|
+
}
|
|
3988
|
+
} else
|
|
3989
|
+
{
|
|
3990
|
+
x = parseFloat(xSpec) || 0;
|
|
3991
|
+
xInverted = -x;
|
|
3992
|
+
}
|
|
2902
3993
|
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
3994
|
+
if (ySpec === 'bottom') {
|
|
3995
|
+
y = size.height;
|
|
3996
|
+
yInverted = 0;
|
|
3997
|
+
} else
|
|
3998
|
+
if (ySpec === 'center') {
|
|
3999
|
+
y = size.height / 2;
|
|
4000
|
+
yInverted = y;
|
|
4001
|
+
} else
|
|
4002
|
+
if (ySpec === 'top') {
|
|
4003
|
+
y = 0;
|
|
4004
|
+
yInverted = size.height;
|
|
4005
|
+
} else
|
|
4006
|
+
if (ySpec && typeof ySpec === 'string' && ySpec.charAt(ySpec.length - 1) === '%') {
|
|
4007
|
+
var _percent = (parseFloat(ySpec) || 0) / 100;
|
|
4008
|
+
y = size.height * _percent;
|
|
4009
|
+
yInverted = size.height * -_percent;
|
|
4010
|
+
} else
|
|
4011
|
+
{
|
|
4012
|
+
y = parseFloat(ySpec) || 0;
|
|
4013
|
+
yInverted = -y;
|
|
4014
|
+
}
|
|
2908
4015
|
|
|
2909
|
-
|
|
4016
|
+
return {
|
|
4017
|
+
left: x,
|
|
4018
|
+
top: y,
|
|
4019
|
+
right: xInverted,
|
|
4020
|
+
bottom: yInverted,
|
|
4021
|
+
xSpec: xSpec,
|
|
4022
|
+
ySpec: ySpec };
|
|
2910
4023
|
|
|
2911
4024
|
};
|
|
2912
4025
|
|
|
2913
|
-
var
|
|
4026
|
+
var timeToMs = function timeToMs(value) {
|
|
4027
|
+
if (!value) {
|
|
4028
|
+
return;
|
|
4029
|
+
}
|
|
2914
4030
|
|
|
2915
|
-
|
|
4031
|
+
var isMs = value.endsWith('ms');
|
|
4032
|
+
return parseFloat(value) * (isMs ? 1 : 1000);
|
|
4033
|
+
};
|
|
2916
4034
|
|
|
2917
|
-
var
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
var match, version;
|
|
4035
|
+
var isTimeString = function isTimeString(value) {
|
|
4036
|
+
return /^-?(0?\.)?\d+m?s$/.test(value);
|
|
4037
|
+
};
|
|
2921
4038
|
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
|
2929
|
-
if (match) version = match[1];
|
|
2930
|
-
}
|
|
2931
|
-
}
|
|
4039
|
+
var parseSingleTransition = function parseSingleTransition(transition) {
|
|
4040
|
+
var parts = transition.split(/\s+/),
|
|
4041
|
+
name = parts[0],
|
|
4042
|
+
duration = parts[1],
|
|
4043
|
+
timingFunctionOrDelay = parts[2],
|
|
4044
|
+
delay = parts[3];
|
|
2932
4045
|
|
|
2933
|
-
|
|
4046
|
+
if (isTimeString(timingFunctionOrDelay)) {
|
|
4047
|
+
return {
|
|
4048
|
+
delay: timeToMs(timingFunctionOrDelay),
|
|
4049
|
+
duration: timeToMs(duration),
|
|
4050
|
+
name: name };
|
|
2934
4051
|
|
|
2935
|
-
|
|
2936
|
-
/* global Symbol -- required for testing */
|
|
2937
|
-
return !Symbol.sham &&
|
|
2938
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
|
2939
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
2940
|
-
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
|
|
2941
|
-
});
|
|
4052
|
+
}
|
|
2942
4053
|
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
4054
|
+
return {
|
|
4055
|
+
delay: timeToMs(delay),
|
|
4056
|
+
duration: timeToMs(duration),
|
|
4057
|
+
name: name,
|
|
4058
|
+
timingFunction: timingFunctionOrDelay };
|
|
2947
4059
|
|
|
2948
|
-
|
|
2949
|
-
var Symbol$1 = global_1.Symbol;
|
|
2950
|
-
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
4060
|
+
};
|
|
2951
4061
|
|
|
2952
|
-
var
|
|
2953
|
-
|
|
2954
|
-
if (nativeSymbol && has$1(Symbol$1, name)) {
|
|
2955
|
-
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
2956
|
-
} else {
|
|
2957
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
|
2958
|
-
}
|
|
2959
|
-
} return WellKnownSymbolsStore[name];
|
|
4062
|
+
var parseTransition = function parseTransition(transition) {
|
|
4063
|
+
return transition.match(/([^,()]|\([^)]*\))+/g).map(function (value) {return value.trim();}).filter(function (value) {return value.length > 0;}).map(parseSingleTransition);
|
|
2960
4064
|
};
|
|
2961
4065
|
|
|
2962
|
-
|
|
2963
|
-
|
|
4066
|
+
var Css = /*#__PURE__*/Object.freeze({
|
|
4067
|
+
__proto__: null,
|
|
4068
|
+
getCssProps: getCssProps,
|
|
4069
|
+
setCssProps: setCssProps,
|
|
4070
|
+
getElementWidth: getElementWidth,
|
|
4071
|
+
getElementHeight: getElementHeight,
|
|
4072
|
+
setElementWidth: setElementWidth,
|
|
4073
|
+
setElementHeight: setElementHeight,
|
|
4074
|
+
getPseudoElementWidth: getPseudoElementWidth,
|
|
4075
|
+
getPseudoElementHeight: getPseudoElementHeight,
|
|
4076
|
+
getElementOffset: getElementOffset,
|
|
4077
|
+
anchoredPosition: anchoredPosition,
|
|
4078
|
+
parseTransition: parseTransition,
|
|
4079
|
+
parseSingleTransition: parseSingleTransition,
|
|
4080
|
+
isTimeString: isTimeString,
|
|
4081
|
+
timeToMs: timeToMs
|
|
4082
|
+
});
|
|
2964
4083
|
|
|
4084
|
+
/**
|
|
4085
|
+
* @param {string} tag
|
|
4086
|
+
* @param {Object<string, string>} [attrs]
|
|
4087
|
+
* @param {Node|Node[]} [children]
|
|
4088
|
+
* @returns {Element}
|
|
4089
|
+
*/
|
|
4090
|
+
var createElement = function createElement(tag, attrs, children) {
|
|
4091
|
+
var el = document.createElement(tag);
|
|
2965
4092
|
|
|
4093
|
+
if (attrs && _typeof(attrs) === 'object')
|
|
4094
|
+
setElementAttrs(el, attrs);
|
|
2966
4095
|
|
|
4096
|
+
if (children) {
|
|
4097
|
+
if (children instanceof Node) {
|
|
4098
|
+
el.appendChild(children);
|
|
4099
|
+
} else
|
|
4100
|
+
if (Array.isArray(children)) {var _iterator = _createForOfIteratorHelper(
|
|
4101
|
+
children),_step;try {for (_iterator.s(); !(_step = _iterator.n()).done;) {var child = _step.value;
|
|
4102
|
+
el.appendChild(child);}} catch (err) {_iterator.e(err);} finally {_iterator.f();}
|
|
4103
|
+
}
|
|
4104
|
+
}
|
|
2967
4105
|
|
|
4106
|
+
return el;
|
|
4107
|
+
};
|
|
2968
4108
|
|
|
4109
|
+
/**
|
|
4110
|
+
* @param {Element} el
|
|
4111
|
+
* @param {Object<string, string>} attrs
|
|
4112
|
+
*/
|
|
4113
|
+
var setElementAttrs = function setElementAttrs(el, attrs) {
|
|
4114
|
+
for (var _i = 0, _Object$entries = Object.entries(attrs); _i < _Object$entries.length; _i++) {var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),key = _Object$entries$_i[0],value = _Object$entries$_i[1];
|
|
4115
|
+
if (value === null || value === undefined)
|
|
4116
|
+
continue;
|
|
2969
4117
|
|
|
4118
|
+
if (key === 'innerHTML')
|
|
4119
|
+
el.innerHTML = String(value);else
|
|
4120
|
+
if (key === 'css' && 'style' in el)
|
|
4121
|
+
setCssProps(el, value);else
|
|
4122
|
+
if (key in el && key !== 'style')
|
|
4123
|
+
el[key] = value;else
|
|
4124
|
+
el.setAttribute(key, String(value));
|
|
4125
|
+
}
|
|
4126
|
+
};
|
|
2970
4127
|
|
|
2971
|
-
|
|
4128
|
+
/**
|
|
4129
|
+
* @param {Element} el
|
|
4130
|
+
* @param {string} selector
|
|
4131
|
+
* @param {Node} [until]
|
|
4132
|
+
* @returns {Node|null}
|
|
4133
|
+
*/
|
|
4134
|
+
var closestUntil = function closestUntil(el, selector, until) {
|
|
4135
|
+
if ('closest' in el && !until)
|
|
4136
|
+
return el.closest(selector);
|
|
2972
4137
|
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
// a "grops" property.
|
|
2977
|
-
var re = /./;
|
|
2978
|
-
re.exec = function () {
|
|
2979
|
-
var result = [];
|
|
2980
|
-
result.groups = { a: '7' };
|
|
2981
|
-
return result;
|
|
2982
|
-
};
|
|
2983
|
-
return ''.replace(re, '$<a>') !== '7';
|
|
2984
|
-
});
|
|
4138
|
+
var matches = Element.prototype.matches ||
|
|
4139
|
+
Element.prototype.msMatchesSelector ||
|
|
4140
|
+
Element.prototype.webkitMatchesSelector;
|
|
2985
4141
|
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
return 'a'.replace(/./, '$0') === '$0';
|
|
2990
|
-
})();
|
|
4142
|
+
do {
|
|
4143
|
+
if (matches.call(el, selector))
|
|
4144
|
+
return el;
|
|
2991
4145
|
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
2995
|
-
if (/./[REPLACE]) {
|
|
2996
|
-
return /./[REPLACE]('a', '$0') === '';
|
|
2997
|
-
}
|
|
2998
|
-
return false;
|
|
2999
|
-
})();
|
|
4146
|
+
if (until && el === until)
|
|
4147
|
+
return null;
|
|
3000
4148
|
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
|
3004
|
-
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
3005
|
-
var re = /(?:)/;
|
|
3006
|
-
var originalExec = re.exec;
|
|
3007
|
-
re.exec = function () { return originalExec.apply(this, arguments); };
|
|
3008
|
-
var result = 'ab'.split(re);
|
|
3009
|
-
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
|
3010
|
-
});
|
|
4149
|
+
el = el.parentElement || el.parentNode;
|
|
4150
|
+
} while (el !== null && el.nodeType === 1);
|
|
3011
4151
|
|
|
3012
|
-
|
|
3013
|
-
|
|
4152
|
+
return null;
|
|
4153
|
+
};
|
|
3014
4154
|
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
4155
|
+
/**
|
|
4156
|
+
* @param {Element} el
|
|
4157
|
+
* @param {string} selector
|
|
4158
|
+
* @returns {Element|null}
|
|
4159
|
+
*/
|
|
4160
|
+
var prev = function prev(el, selector) {
|
|
4161
|
+
if (!el) return null;
|
|
3021
4162
|
|
|
3022
|
-
var
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
var re = /a/;
|
|
4163
|
+
var matches = Element.prototype.matches ||
|
|
4164
|
+
Element.prototype.msMatchesSelector ||
|
|
4165
|
+
Element.prototype.webkitMatchesSelector;
|
|
3026
4166
|
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
// https://github.com/zloirock/core-js/issues/306
|
|
3031
|
-
re = {};
|
|
3032
|
-
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
3033
|
-
// a new one. We need to return the patched regex when creating the new one.
|
|
3034
|
-
re.constructor = {};
|
|
3035
|
-
re.constructor[SPECIES$1] = function () { return re; };
|
|
3036
|
-
re.flags = '';
|
|
3037
|
-
re[SYMBOL] = /./[SYMBOL];
|
|
3038
|
-
}
|
|
4167
|
+
do {
|
|
4168
|
+
if (matches.call(el, selector))
|
|
4169
|
+
return el;
|
|
3039
4170
|
|
|
3040
|
-
|
|
4171
|
+
el = el.previousElementSibling || el.previousSibling;
|
|
4172
|
+
} while (el !== null && el.nodeType === 1);
|
|
3041
4173
|
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
});
|
|
4174
|
+
return null;
|
|
4175
|
+
};
|
|
3045
4176
|
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
)) ||
|
|
3054
|
-
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
|
|
3055
|
-
) {
|
|
3056
|
-
var nativeRegExpMethod = /./[SYMBOL];
|
|
3057
|
-
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
3058
|
-
if (regexp.exec === regexpExec) {
|
|
3059
|
-
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
3060
|
-
// The native String method already delegates to @@method (this
|
|
3061
|
-
// polyfilled function), leasing to infinite recursion.
|
|
3062
|
-
// We avoid it by directly calling the native @@method method.
|
|
3063
|
-
return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
|
|
3064
|
-
}
|
|
3065
|
-
return { done: true, value: nativeMethod.call(str, regexp, arg2) };
|
|
3066
|
-
}
|
|
3067
|
-
return { done: false };
|
|
3068
|
-
}, {
|
|
3069
|
-
REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
|
|
3070
|
-
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
|
3071
|
-
});
|
|
3072
|
-
var stringMethod = methods[0];
|
|
3073
|
-
var regexMethod = methods[1];
|
|
3074
|
-
|
|
3075
|
-
redefine(String.prototype, KEY, stringMethod);
|
|
3076
|
-
redefine(RegExp.prototype, SYMBOL, length == 2
|
|
3077
|
-
// 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
|
|
3078
|
-
// 21.2.5.11 RegExp.prototype[@@split](string, limit)
|
|
3079
|
-
? function (string, arg) { return regexMethod.call(string, this, arg); }
|
|
3080
|
-
// 21.2.5.6 RegExp.prototype[@@match](string)
|
|
3081
|
-
// 21.2.5.9 RegExp.prototype[@@search](string)
|
|
3082
|
-
: function (string) { return regexMethod.call(string, this); }
|
|
3083
|
-
);
|
|
3084
|
-
}
|
|
4177
|
+
/**
|
|
4178
|
+
* @param {Element} el
|
|
4179
|
+
* @param {string} selector
|
|
4180
|
+
* @returns {null|Element}
|
|
4181
|
+
*/
|
|
4182
|
+
var next = function next(el, selector) {
|
|
4183
|
+
if (!el) return null;
|
|
3085
4184
|
|
|
3086
|
-
|
|
3087
|
-
|
|
4185
|
+
var matches = Element.prototype.matches ||
|
|
4186
|
+
Element.prototype.msMatchesSelector ||
|
|
4187
|
+
Element.prototype.webkitMatchesSelector;
|
|
3088
4188
|
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
first = S.charCodeAt(position);
|
|
3098
|
-
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
3099
|
-
|| (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
|
|
3100
|
-
? CONVERT_TO_STRING ? S.charAt(position) : first
|
|
3101
|
-
: CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
3102
|
-
};
|
|
4189
|
+
do {
|
|
4190
|
+
if (matches.call(el, selector))
|
|
4191
|
+
return el;
|
|
4192
|
+
|
|
4193
|
+
el = el.nextElementSibling || el.nextSibling;
|
|
4194
|
+
} while (el !== null && el.nodeType === 1);
|
|
4195
|
+
|
|
4196
|
+
return null;
|
|
3103
4197
|
};
|
|
3104
4198
|
|
|
3105
|
-
var
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
// https://github.com/mathiasbynens/String.prototype.at
|
|
3111
|
-
charAt: createMethod(true)
|
|
4199
|
+
var unwrapChildren = function unwrapChildren(el) {
|
|
4200
|
+
var parent = el.parentNode;
|
|
4201
|
+
while (el.firstChild) {
|
|
4202
|
+
parent.insertBefore(el.firstChild, el);}
|
|
4203
|
+
parent.removeChild(el);
|
|
3112
4204
|
};
|
|
3113
|
-
var stringMultibyte_1 = stringMultibyte.codeAt;
|
|
3114
|
-
var stringMultibyte_2 = stringMultibyte.charAt;
|
|
3115
4205
|
|
|
3116
|
-
|
|
3117
|
-
|
|
4206
|
+
var Dom = /*#__PURE__*/Object.freeze({
|
|
4207
|
+
__proto__: null,
|
|
4208
|
+
createElement: createElement,
|
|
4209
|
+
setElementAttrs: setElementAttrs,
|
|
4210
|
+
closestUntil: closestUntil,
|
|
4211
|
+
prev: prev,
|
|
4212
|
+
next: next,
|
|
4213
|
+
unwrapChildren: unwrapChildren
|
|
4214
|
+
});
|
|
3118
4215
|
|
|
3119
|
-
|
|
3120
|
-
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
3121
|
-
var advanceStringIndex = function (S, index, unicode) {
|
|
3122
|
-
return index + (unicode ? charAt(S, index).length : 1);
|
|
3123
|
-
};
|
|
4216
|
+
var es_string_replace = {};
|
|
3124
4217
|
|
|
3125
|
-
|
|
3126
|
-
// https://tc39.es/ecma262/#sec-toobject
|
|
3127
|
-
var toObject = function (argument) {
|
|
3128
|
-
return Object(requireObjectCoercible(argument));
|
|
3129
|
-
};
|
|
4218
|
+
var toObject$1 = toObject$4;
|
|
3130
4219
|
|
|
3131
4220
|
var floor = Math.floor;
|
|
3132
4221
|
var replace = ''.replace;
|
|
3133
4222
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
3134
4223
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
3135
4224
|
|
|
4225
|
+
// `GetSubstitution` abstract operation
|
|
3136
4226
|
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
3137
|
-
var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
4227
|
+
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
3138
4228
|
var tailPos = position + matched.length;
|
|
3139
4229
|
var m = captures.length;
|
|
3140
4230
|
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
3141
4231
|
if (namedCaptures !== undefined) {
|
|
3142
|
-
namedCaptures = toObject(namedCaptures);
|
|
4232
|
+
namedCaptures = toObject$1(namedCaptures);
|
|
3143
4233
|
symbols = SUBSTITUTION_SYMBOLS;
|
|
3144
4234
|
}
|
|
3145
4235
|
return replace.call(replacement, symbols, function (match, ch) {
|
|
@@ -3167,46 +4257,57 @@
|
|
|
3167
4257
|
});
|
|
3168
4258
|
};
|
|
3169
4259
|
|
|
3170
|
-
// `RegExpExec` abstract operation
|
|
3171
|
-
// https://tc39.es/ecma262/#sec-regexpexec
|
|
3172
|
-
var regexpExecAbstract = function (R, S) {
|
|
3173
|
-
var exec = R.exec;
|
|
3174
|
-
if (typeof exec === 'function') {
|
|
3175
|
-
var result = exec.call(R, S);
|
|
3176
|
-
if (typeof result !== 'object') {
|
|
3177
|
-
throw TypeError('RegExp exec method returned something other than an Object or null');
|
|
3178
|
-
}
|
|
3179
|
-
return result;
|
|
3180
|
-
}
|
|
3181
|
-
|
|
3182
|
-
if (classofRaw(R) !== 'RegExp') {
|
|
3183
|
-
throw TypeError('RegExp#exec called on incompatible receiver');
|
|
3184
|
-
}
|
|
3185
|
-
|
|
3186
|
-
return regexpExec.call(R, S);
|
|
3187
|
-
};
|
|
3188
|
-
|
|
3189
4260
|
'use strict';
|
|
4261
|
+
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
4262
|
+
var fails$1 = fails$f;
|
|
4263
|
+
var anObject = anObject$a;
|
|
4264
|
+
var isCallable = isCallable$d;
|
|
4265
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
4266
|
+
var toLength = toLength$5;
|
|
4267
|
+
var toString = toString$7;
|
|
4268
|
+
var requireObjectCoercible = requireObjectCoercible$8;
|
|
4269
|
+
var advanceStringIndex = advanceStringIndex$3;
|
|
4270
|
+
var getMethod = getMethod$4;
|
|
4271
|
+
var getSubstitution = getSubstitution$1;
|
|
4272
|
+
var regExpExec = regexpExecAbstract;
|
|
4273
|
+
var wellKnownSymbol = wellKnownSymbol$a;
|
|
3190
4274
|
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
4275
|
+
var REPLACE = wellKnownSymbol('replace');
|
|
3199
4276
|
var max = Math.max;
|
|
3200
|
-
var min
|
|
4277
|
+
var min = Math.min;
|
|
3201
4278
|
|
|
3202
4279
|
var maybeToString = function (it) {
|
|
3203
4280
|
return it === undefined ? it : String(it);
|
|
3204
4281
|
};
|
|
3205
4282
|
|
|
4283
|
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
4284
|
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
|
4285
|
+
var REPLACE_KEEPS_$0 = (function () {
|
|
4286
|
+
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
4287
|
+
return 'a'.replace(/./, '$0') === '$0';
|
|
4288
|
+
})();
|
|
4289
|
+
|
|
4290
|
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
4291
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
4292
|
+
if (/./[REPLACE]) {
|
|
4293
|
+
return /./[REPLACE]('a', '$0') === '';
|
|
4294
|
+
}
|
|
4295
|
+
return false;
|
|
4296
|
+
})();
|
|
4297
|
+
|
|
4298
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$1(function () {
|
|
4299
|
+
var re = /./;
|
|
4300
|
+
re.exec = function () {
|
|
4301
|
+
var result = [];
|
|
4302
|
+
result.groups = { a: '7' };
|
|
4303
|
+
return result;
|
|
4304
|
+
};
|
|
4305
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
4306
|
+
return ''.replace(re, '$<a>') !== '7';
|
|
4307
|
+
});
|
|
4308
|
+
|
|
3206
4309
|
// @@replace logic
|
|
3207
|
-
|
|
3208
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
|
|
3209
|
-
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
|
|
4310
|
+
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
3210
4311
|
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
3211
4312
|
|
|
3212
4313
|
return [
|
|
@@ -3214,27 +4315,28 @@
|
|
|
3214
4315
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
3215
4316
|
function replace(searchValue, replaceValue) {
|
|
3216
4317
|
var O = requireObjectCoercible(this);
|
|
3217
|
-
var replacer = searchValue == undefined ? undefined : searchValue
|
|
3218
|
-
return replacer
|
|
4318
|
+
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
|
4319
|
+
return replacer
|
|
3219
4320
|
? replacer.call(searchValue, O, replaceValue)
|
|
3220
|
-
: nativeReplace.call(
|
|
4321
|
+
: nativeReplace.call(toString(O), searchValue, replaceValue);
|
|
3221
4322
|
},
|
|
3222
4323
|
// `RegExp.prototype[@@replace]` method
|
|
3223
4324
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
3224
|
-
function (
|
|
4325
|
+
function (string, replaceValue) {
|
|
4326
|
+
var rx = anObject(this);
|
|
4327
|
+
var S = toString(string);
|
|
4328
|
+
|
|
3225
4329
|
if (
|
|
3226
|
-
|
|
3227
|
-
|
|
4330
|
+
typeof replaceValue === 'string' &&
|
|
4331
|
+
replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1 &&
|
|
4332
|
+
replaceValue.indexOf('$<') === -1
|
|
3228
4333
|
) {
|
|
3229
|
-
var res = maybeCallNative(nativeReplace,
|
|
4334
|
+
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
3230
4335
|
if (res.done) return res.value;
|
|
3231
4336
|
}
|
|
3232
4337
|
|
|
3233
|
-
var
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
var functionalReplace = typeof replaceValue === 'function';
|
|
3237
|
-
if (!functionalReplace) replaceValue = String(replaceValue);
|
|
4338
|
+
var functionalReplace = isCallable(replaceValue);
|
|
4339
|
+
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
3238
4340
|
|
|
3239
4341
|
var global = rx.global;
|
|
3240
4342
|
if (global) {
|
|
@@ -3243,13 +4345,13 @@
|
|
|
3243
4345
|
}
|
|
3244
4346
|
var results = [];
|
|
3245
4347
|
while (true) {
|
|
3246
|
-
var result =
|
|
4348
|
+
var result = regExpExec(rx, S);
|
|
3247
4349
|
if (result === null) break;
|
|
3248
4350
|
|
|
3249
4351
|
results.push(result);
|
|
3250
4352
|
if (!global) break;
|
|
3251
4353
|
|
|
3252
|
-
var matchStr =
|
|
4354
|
+
var matchStr = toString(result[0]);
|
|
3253
4355
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
3254
4356
|
}
|
|
3255
4357
|
|
|
@@ -3258,8 +4360,8 @@
|
|
|
3258
4360
|
for (var i = 0; i < results.length; i++) {
|
|
3259
4361
|
result = results[i];
|
|
3260
4362
|
|
|
3261
|
-
var matched =
|
|
3262
|
-
var position = max(min
|
|
4363
|
+
var matched = toString(result[0]);
|
|
4364
|
+
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
3263
4365
|
var captures = [];
|
|
3264
4366
|
// NOTE: This is equivalent to
|
|
3265
4367
|
// captures = result.slice(1).map(maybeToString)
|
|
@@ -3271,7 +4373,7 @@
|
|
|
3271
4373
|
if (functionalReplace) {
|
|
3272
4374
|
var replacerArgs = [matched].concat(captures, position, S);
|
|
3273
4375
|
if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
|
|
3274
|
-
var replacement =
|
|
4376
|
+
var replacement = toString(replaceValue.apply(undefined, replacerArgs));
|
|
3275
4377
|
} else {
|
|
3276
4378
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
3277
4379
|
}
|
|
@@ -3283,11 +4385,7 @@
|
|
|
3283
4385
|
return accumulatedResult + S.slice(nextSourcePosition);
|
|
3284
4386
|
}
|
|
3285
4387
|
];
|
|
3286
|
-
});
|
|
3287
|
-
|
|
3288
|
-
var es_string_replace = {
|
|
3289
|
-
|
|
3290
|
-
};
|
|
4388
|
+
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
3291
4389
|
|
|
3292
4390
|
var getRootNode = function getRootNode(el) {
|
|
3293
4391
|
if (!el) return null;
|
|
@@ -3564,172 +4662,10 @@
|
|
|
3564
4662
|
toggleClass: toggleClass
|
|
3565
4663
|
});
|
|
3566
4664
|
|
|
3567
|
-
var
|
|
3568
|
-
|
|
3569
|
-
// `IsRegExp` abstract operation
|
|
3570
|
-
// https://tc39.es/ecma262/#sec-isregexp
|
|
3571
|
-
var isRegexp = function (it) {
|
|
3572
|
-
var isRegExp;
|
|
3573
|
-
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
|
|
3574
|
-
};
|
|
3575
|
-
|
|
3576
|
-
var aFunction = function (it) {
|
|
3577
|
-
if (typeof it != 'function') {
|
|
3578
|
-
throw TypeError(String(it) + ' is not a function');
|
|
3579
|
-
} return it;
|
|
3580
|
-
};
|
|
3581
|
-
|
|
3582
|
-
var SPECIES = wellKnownSymbol('species');
|
|
3583
|
-
|
|
3584
|
-
// `SpeciesConstructor` abstract operation
|
|
3585
|
-
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
3586
|
-
var speciesConstructor = function (O, defaultConstructor) {
|
|
3587
|
-
var C = anObject(O).constructor;
|
|
3588
|
-
var S;
|
|
3589
|
-
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);
|
|
3590
|
-
};
|
|
3591
|
-
|
|
3592
|
-
'use strict';
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
var arrayPush = [].push;
|
|
3605
|
-
var min = Math.min;
|
|
3606
|
-
var MAX_UINT32 = 0xFFFFFFFF;
|
|
3607
|
-
|
|
3608
|
-
// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
|
|
3609
|
-
var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
|
|
3610
|
-
|
|
3611
|
-
// @@split logic
|
|
3612
|
-
fixRegexpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
|
|
3613
|
-
var internalSplit;
|
|
3614
|
-
if (
|
|
3615
|
-
'abbc'.split(/(b)*/)[1] == 'c' ||
|
|
3616
|
-
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
3617
|
-
'test'.split(/(?:)/, -1).length != 4 ||
|
|
3618
|
-
'ab'.split(/(?:ab)*/).length != 2 ||
|
|
3619
|
-
'.'.split(/(.?)(.?)/).length != 4 ||
|
|
3620
|
-
// eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
|
|
3621
|
-
'.'.split(/()()/).length > 1 ||
|
|
3622
|
-
''.split(/.?/).length
|
|
3623
|
-
) {
|
|
3624
|
-
// based on es5-shim implementation, need to rework it
|
|
3625
|
-
internalSplit = function (separator, limit) {
|
|
3626
|
-
var string = String(requireObjectCoercible(this));
|
|
3627
|
-
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
3628
|
-
if (lim === 0) return [];
|
|
3629
|
-
if (separator === undefined) return [string];
|
|
3630
|
-
// If `separator` is not a regex, use native split
|
|
3631
|
-
if (!isRegexp(separator)) {
|
|
3632
|
-
return nativeSplit.call(string, separator, lim);
|
|
3633
|
-
}
|
|
3634
|
-
var output = [];
|
|
3635
|
-
var flags = (separator.ignoreCase ? 'i' : '') +
|
|
3636
|
-
(separator.multiline ? 'm' : '') +
|
|
3637
|
-
(separator.unicode ? 'u' : '') +
|
|
3638
|
-
(separator.sticky ? 'y' : '');
|
|
3639
|
-
var lastLastIndex = 0;
|
|
3640
|
-
// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
3641
|
-
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
|
3642
|
-
var match, lastIndex, lastLength;
|
|
3643
|
-
while (match = regexpExec.call(separatorCopy, string)) {
|
|
3644
|
-
lastIndex = separatorCopy.lastIndex;
|
|
3645
|
-
if (lastIndex > lastLastIndex) {
|
|
3646
|
-
output.push(string.slice(lastLastIndex, match.index));
|
|
3647
|
-
if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
|
|
3648
|
-
lastLength = match[0].length;
|
|
3649
|
-
lastLastIndex = lastIndex;
|
|
3650
|
-
if (output.length >= lim) break;
|
|
3651
|
-
}
|
|
3652
|
-
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
|
3653
|
-
}
|
|
3654
|
-
if (lastLastIndex === string.length) {
|
|
3655
|
-
if (lastLength || !separatorCopy.test('')) output.push('');
|
|
3656
|
-
} else output.push(string.slice(lastLastIndex));
|
|
3657
|
-
return output.length > lim ? output.slice(0, lim) : output;
|
|
3658
|
-
};
|
|
3659
|
-
// Chakra, V8
|
|
3660
|
-
} else if ('0'.split(undefined, 0).length) {
|
|
3661
|
-
internalSplit = function (separator, limit) {
|
|
3662
|
-
return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
|
|
3663
|
-
};
|
|
3664
|
-
} else internalSplit = nativeSplit;
|
|
3665
|
-
|
|
3666
|
-
return [
|
|
3667
|
-
// `String.prototype.split` method
|
|
3668
|
-
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
3669
|
-
function split(separator, limit) {
|
|
3670
|
-
var O = requireObjectCoercible(this);
|
|
3671
|
-
var splitter = separator == undefined ? undefined : separator[SPLIT];
|
|
3672
|
-
return splitter !== undefined
|
|
3673
|
-
? splitter.call(separator, O, limit)
|
|
3674
|
-
: internalSplit.call(String(O), separator, limit);
|
|
3675
|
-
},
|
|
3676
|
-
// `RegExp.prototype[@@split]` method
|
|
3677
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
3678
|
-
//
|
|
3679
|
-
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
3680
|
-
// the 'y' flag.
|
|
3681
|
-
function (regexp, limit) {
|
|
3682
|
-
var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
|
|
3683
|
-
if (res.done) return res.value;
|
|
3684
|
-
|
|
3685
|
-
var rx = anObject(regexp);
|
|
3686
|
-
var S = String(this);
|
|
3687
|
-
var C = speciesConstructor(rx, RegExp);
|
|
3688
|
-
|
|
3689
|
-
var unicodeMatching = rx.unicode;
|
|
3690
|
-
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
3691
|
-
(rx.multiline ? 'm' : '') +
|
|
3692
|
-
(rx.unicode ? 'u' : '') +
|
|
3693
|
-
(SUPPORTS_Y ? 'y' : 'g');
|
|
3694
|
-
|
|
3695
|
-
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
3696
|
-
// simulate the 'y' flag.
|
|
3697
|
-
var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
|
|
3698
|
-
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
3699
|
-
if (lim === 0) return [];
|
|
3700
|
-
if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];
|
|
3701
|
-
var p = 0;
|
|
3702
|
-
var q = 0;
|
|
3703
|
-
var A = [];
|
|
3704
|
-
while (q < S.length) {
|
|
3705
|
-
splitter.lastIndex = SUPPORTS_Y ? q : 0;
|
|
3706
|
-
var z = regexpExecAbstract(splitter, SUPPORTS_Y ? S : S.slice(q));
|
|
3707
|
-
var e;
|
|
3708
|
-
if (
|
|
3709
|
-
z === null ||
|
|
3710
|
-
(e = min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
|
|
3711
|
-
) {
|
|
3712
|
-
q = advanceStringIndex(S, q, unicodeMatching);
|
|
3713
|
-
} else {
|
|
3714
|
-
A.push(S.slice(p, q));
|
|
3715
|
-
if (A.length === lim) return A;
|
|
3716
|
-
for (var i = 1; i <= z.length - 1; i++) {
|
|
3717
|
-
A.push(z[i]);
|
|
3718
|
-
if (A.length === lim) return A;
|
|
3719
|
-
}
|
|
3720
|
-
q = p = e;
|
|
3721
|
-
}
|
|
3722
|
-
}
|
|
3723
|
-
A.push(S.slice(p));
|
|
3724
|
-
return A;
|
|
3725
|
-
}
|
|
3726
|
-
];
|
|
3727
|
-
}, !SUPPORTS_Y);
|
|
3728
|
-
|
|
3729
|
-
var es_string_split = {
|
|
3730
|
-
|
|
3731
|
-
};
|
|
4665
|
+
var es_function_name = {};
|
|
3732
4666
|
|
|
4667
|
+
var DESCRIPTORS$1 = descriptors;
|
|
4668
|
+
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
|
3733
4669
|
var defineProperty$1 = objectDefineProperty.f;
|
|
3734
4670
|
|
|
3735
4671
|
var FunctionPrototype = Function.prototype;
|
|
@@ -3739,7 +4675,7 @@
|
|
|
3739
4675
|
|
|
3740
4676
|
// Function instances `.name` property
|
|
3741
4677
|
// https://tc39.es/ecma262/#sec-function-instances-name
|
|
3742
|
-
if (
|
|
4678
|
+
if (DESCRIPTORS$1 && !FUNCTION_NAME_EXISTS) {
|
|
3743
4679
|
defineProperty$1(FunctionPrototype, NAME, {
|
|
3744
4680
|
configurable: true,
|
|
3745
4681
|
get: function () {
|
|
@@ -3752,10 +4688,6 @@
|
|
|
3752
4688
|
});
|
|
3753
4689
|
}
|
|
3754
4690
|
|
|
3755
|
-
var es_function_name = {
|
|
3756
|
-
|
|
3757
|
-
};
|
|
3758
|
-
|
|
3759
4691
|
var DomEventsSink = /*#__PURE__*/function () {
|
|
3760
4692
|
function DomEventsSink() {_classCallCheck(this, DomEventsSink);
|
|
3761
4693
|
/**
|
|
@@ -3829,6 +4761,11 @@
|
|
|
3829
4761
|
'default': DomEventsSink
|
|
3830
4762
|
});
|
|
3831
4763
|
|
|
4764
|
+
var es_math_hypot = {};
|
|
4765
|
+
|
|
4766
|
+
var $$1 = _export;
|
|
4767
|
+
|
|
4768
|
+
// eslint-disable-next-line es/no-math-hypot -- required for testing
|
|
3832
4769
|
var $hypot = Math.hypot;
|
|
3833
4770
|
var abs = Math.abs;
|
|
3834
4771
|
var sqrt = Math.sqrt;
|
|
@@ -3839,7 +4776,7 @@
|
|
|
3839
4776
|
|
|
3840
4777
|
// `Math.hypot` method
|
|
3841
4778
|
// https://tc39.es/ecma262/#sec-math.hypot
|
|
3842
|
-
|
|
4779
|
+
$$1({ target: 'Math', stat: true, forced: BUGGY }, {
|
|
3843
4780
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
3844
4781
|
hypot: function hypot(value1, value2) {
|
|
3845
4782
|
var sum = 0;
|
|
@@ -3862,10 +4799,6 @@
|
|
|
3862
4799
|
}
|
|
3863
4800
|
});
|
|
3864
4801
|
|
|
3865
|
-
var es_math_hypot = {
|
|
3866
|
-
|
|
3867
|
-
};
|
|
3868
|
-
|
|
3869
4802
|
var bindTouchTap = function bindTouchTap(el, options) {
|
|
3870
4803
|
var currentTouchId = null;
|
|
3871
4804
|
var downPos = null;
|
|
@@ -3945,23 +4878,27 @@
|
|
|
3945
4878
|
bindTouchTap: bindTouchTap
|
|
3946
4879
|
});
|
|
3947
4880
|
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
4881
|
+
var es_object_assign = {};
|
|
3954
4882
|
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
var
|
|
4883
|
+
'use strict';
|
|
4884
|
+
var DESCRIPTORS = descriptors;
|
|
4885
|
+
var fails = fails$f;
|
|
4886
|
+
var objectKeys = objectKeys$3;
|
|
4887
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
4888
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
4889
|
+
var toObject = toObject$4;
|
|
4890
|
+
var IndexedObject = indexedObject;
|
|
4891
|
+
|
|
4892
|
+
// eslint-disable-next-line es/no-object-assign -- safe
|
|
4893
|
+
var $assign = Object.assign;
|
|
4894
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
3958
4895
|
var defineProperty = Object.defineProperty;
|
|
3959
4896
|
|
|
3960
4897
|
// `Object.assign` method
|
|
3961
4898
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
3962
|
-
var objectAssign =
|
|
4899
|
+
var objectAssign = !$assign || fails(function () {
|
|
3963
4900
|
// should have correct order of operations (Edge bug)
|
|
3964
|
-
if (
|
|
4901
|
+
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
3965
4902
|
enumerable: true,
|
|
3966
4903
|
get: function () {
|
|
3967
4904
|
defineProperty(this, 'b', {
|
|
@@ -3973,41 +4910,41 @@
|
|
|
3973
4910
|
// should work with symbols and should have deterministic property order (V8 bug)
|
|
3974
4911
|
var A = {};
|
|
3975
4912
|
var B = {};
|
|
3976
|
-
|
|
4913
|
+
// eslint-disable-next-line es/no-symbol -- safe
|
|
3977
4914
|
var symbol = Symbol();
|
|
3978
4915
|
var alphabet = 'abcdefghijklmnopqrst';
|
|
3979
4916
|
A[symbol] = 7;
|
|
3980
4917
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
3981
|
-
return
|
|
4918
|
+
return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
|
|
3982
4919
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
3983
4920
|
var T = toObject(target);
|
|
3984
4921
|
var argumentsLength = arguments.length;
|
|
3985
4922
|
var index = 1;
|
|
3986
|
-
var getOwnPropertySymbols =
|
|
3987
|
-
var propertyIsEnumerable =
|
|
4923
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
4924
|
+
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
3988
4925
|
while (argumentsLength > index) {
|
|
3989
|
-
var S =
|
|
4926
|
+
var S = IndexedObject(arguments[index++]);
|
|
3990
4927
|
var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
|
|
3991
4928
|
var length = keys.length;
|
|
3992
4929
|
var j = 0;
|
|
3993
4930
|
var key;
|
|
3994
4931
|
while (length > j) {
|
|
3995
4932
|
key = keys[j++];
|
|
3996
|
-
if (!
|
|
4933
|
+
if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];
|
|
3997
4934
|
}
|
|
3998
4935
|
} return T;
|
|
3999
|
-
} :
|
|
4936
|
+
} : $assign;
|
|
4937
|
+
|
|
4938
|
+
var $ = _export;
|
|
4939
|
+
var assign = objectAssign;
|
|
4000
4940
|
|
|
4001
4941
|
// `Object.assign` method
|
|
4002
4942
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
4003
|
-
|
|
4004
|
-
|
|
4943
|
+
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
4944
|
+
$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
4945
|
+
assign: assign
|
|
4005
4946
|
});
|
|
4006
4947
|
|
|
4007
|
-
var es_object_assign = {
|
|
4008
|
-
|
|
4009
|
-
};
|
|
4010
|
-
|
|
4011
4948
|
var rtlScrollType;
|
|
4012
4949
|
|
|
4013
4950
|
var detectRtlScrollType = function detectRtlScrollType() {
|
|
@@ -4031,7 +4968,11 @@
|
|
|
4031
4968
|
type = 'default';
|
|
4032
4969
|
} else {
|
|
4033
4970
|
definer.scrollLeft = 1;
|
|
4034
|
-
|
|
4971
|
+
|
|
4972
|
+
// bug: on some machines, chrome will have a positive delta of less than 1.
|
|
4973
|
+
// a full scroll will still be in the negative direction.
|
|
4974
|
+
// let's use Math.floor() to account for that bug.
|
|
4975
|
+
if (Math.floor(definer.scrollLeft) === 0) {
|
|
4035
4976
|
type = 'negative';
|
|
4036
4977
|
}
|
|
4037
4978
|
}
|
|
@@ -4173,6 +5114,6 @@
|
|
|
4173
5114
|
|
|
4174
5115
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4175
5116
|
|
|
4176
|
-
}))
|
|
5117
|
+
}));
|
|
4177
5118
|
|
|
4178
5119
|
//# sourceMappingURL=lib.umd.js.map
|