bootstrap-table-rails 1.19.1 → 1.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bootstrap-table-rails/version.rb +1 -1
- data/vendor/assets/javascripts/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +906 -337
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +816 -382
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +817 -383
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +2 -1
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +2787 -2003
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1003 -429
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +536 -240
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1381 -923
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +546 -250
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +547 -249
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +471 -186
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +883 -525
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +852 -449
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +9 -1
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +2649 -1097
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +1276 -710
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +566 -272
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +861 -414
- data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +16 -8
- data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +652 -351
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +572 -249
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +782 -370
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +532 -237
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +538 -246
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +744 -294
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +572 -258
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +510 -200
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +471 -186
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +539 -244
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +864 -531
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +526 -235
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +465 -188
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +477 -200
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +460 -182
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +1083 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +482 -204
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +1083 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +496 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +496 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +547 -255
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +543 -235
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +547 -239
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +545 -252
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +541 -233
- metadata +5 -3
@@ -2,32 +2,16 @@
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
3
3
|
typeof define === 'function' && define.amd ? define(factory) :
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BootstrapTable = factory());
|
5
|
-
}(this, (function () { 'use strict';
|
6
|
-
|
7
|
-
function _defineProperty(obj, key, value) {
|
8
|
-
if (key in obj) {
|
9
|
-
Object.defineProperty(obj, key, {
|
10
|
-
value: value,
|
11
|
-
enumerable: true,
|
12
|
-
configurable: true,
|
13
|
-
writable: true
|
14
|
-
});
|
15
|
-
} else {
|
16
|
-
obj[key] = value;
|
17
|
-
}
|
18
|
-
|
19
|
-
return obj;
|
20
|
-
}
|
5
|
+
})(this, (function () { 'use strict';
|
21
6
|
|
22
7
|
function ownKeys$1(object, enumerableOnly) {
|
23
8
|
var keys = Object.keys(object);
|
24
9
|
|
25
10
|
if (Object.getOwnPropertySymbols) {
|
26
11
|
var symbols = Object.getOwnPropertySymbols(object);
|
27
|
-
|
12
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
28
13
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
29
|
-
});
|
30
|
-
keys.push.apply(keys, symbols);
|
14
|
+
})), keys.push.apply(keys, symbols);
|
31
15
|
}
|
32
16
|
|
33
17
|
return keys;
|
@@ -35,24 +19,32 @@
|
|
35
19
|
|
36
20
|
function _objectSpread2(target) {
|
37
21
|
for (var i = 1; i < arguments.length; i++) {
|
38
|
-
var source = arguments[i]
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
45
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
46
|
-
} else {
|
47
|
-
ownKeys$1(Object(source)).forEach(function (key) {
|
48
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
49
|
-
});
|
50
|
-
}
|
22
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
23
|
+
i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
|
24
|
+
_defineProperty(target, key, source[key]);
|
25
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
|
26
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
27
|
+
});
|
51
28
|
}
|
52
29
|
|
53
30
|
return target;
|
54
31
|
}
|
55
32
|
|
33
|
+
function _defineProperty(obj, key, value) {
|
34
|
+
if (key in obj) {
|
35
|
+
Object.defineProperty(obj, key, {
|
36
|
+
value: value,
|
37
|
+
enumerable: true,
|
38
|
+
configurable: true,
|
39
|
+
writable: true
|
40
|
+
});
|
41
|
+
} else {
|
42
|
+
obj[key] = value;
|
43
|
+
}
|
44
|
+
|
45
|
+
return obj;
|
46
|
+
}
|
47
|
+
|
56
48
|
function _toConsumableArray(arr) {
|
57
49
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
58
50
|
}
|
@@ -62,7 +54,7 @@
|
|
62
54
|
}
|
63
55
|
|
64
56
|
function _iterableToArray(iter) {
|
65
|
-
if (typeof Symbol !== "undefined" && Symbol.iterator
|
57
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
66
58
|
}
|
67
59
|
|
68
60
|
function _unsupportedIterableToArray(o, minLen) {
|
@@ -87,9 +79,9 @@
|
|
87
79
|
}
|
88
80
|
|
89
81
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
90
|
-
var it;
|
82
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
91
83
|
|
92
|
-
if (
|
84
|
+
if (!it) {
|
93
85
|
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
94
86
|
if (it) o = it;
|
95
87
|
var i = 0;
|
@@ -122,7 +114,7 @@
|
|
122
114
|
err;
|
123
115
|
return {
|
124
116
|
s: function () {
|
125
|
-
it =
|
117
|
+
it = it.call(o);
|
126
118
|
},
|
127
119
|
n: function () {
|
128
120
|
var step = it.next();
|
@@ -178,6 +170,18 @@
|
|
178
170
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
179
171
|
});
|
180
172
|
|
173
|
+
var functionBindNative = !fails(function () {
|
174
|
+
var test = (function () { /* empty */ }).bind();
|
175
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
176
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
177
|
+
});
|
178
|
+
|
179
|
+
var call$2 = Function.prototype.call;
|
180
|
+
|
181
|
+
var functionCall = functionBindNative ? call$2.bind(call$2) : function () {
|
182
|
+
return call$2.apply(call$2, arguments);
|
183
|
+
};
|
184
|
+
|
181
185
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
182
186
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
183
187
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
@@ -187,13 +191,13 @@
|
|
187
191
|
|
188
192
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
189
193
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
190
|
-
var f$
|
194
|
+
var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
191
195
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
192
196
|
return !!descriptor && descriptor.enumerable;
|
193
197
|
} : $propertyIsEnumerable;
|
194
198
|
|
195
199
|
var objectPropertyIsEnumerable = {
|
196
|
-
f: f$
|
200
|
+
f: f$5
|
197
201
|
};
|
198
202
|
|
199
203
|
var createPropertyDescriptor = function (bitmap, value) {
|
@@ -205,27 +209,44 @@
|
|
205
209
|
};
|
206
210
|
};
|
207
211
|
|
208
|
-
var
|
212
|
+
var FunctionPrototype$2 = Function.prototype;
|
213
|
+
var bind = FunctionPrototype$2.bind;
|
214
|
+
var call$1 = FunctionPrototype$2.call;
|
215
|
+
var uncurryThis = functionBindNative && bind.bind(call$1, call$1);
|
216
|
+
|
217
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
218
|
+
return fn && uncurryThis(fn);
|
219
|
+
} : function (fn) {
|
220
|
+
return fn && function () {
|
221
|
+
return call$1.apply(fn, arguments);
|
222
|
+
};
|
223
|
+
};
|
224
|
+
|
225
|
+
var toString$1 = functionUncurryThis({}.toString);
|
226
|
+
var stringSlice$4 = functionUncurryThis(''.slice);
|
209
227
|
|
210
228
|
var classofRaw = function (it) {
|
211
|
-
return toString
|
229
|
+
return stringSlice$4(toString$1(it), 8, -1);
|
212
230
|
};
|
213
231
|
|
214
|
-
var
|
232
|
+
var Object$4 = global_1.Object;
|
233
|
+
var split = functionUncurryThis(''.split);
|
215
234
|
|
216
235
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
217
236
|
var indexedObject = fails(function () {
|
218
237
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
219
238
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
220
|
-
return !Object('z').propertyIsEnumerable(0);
|
239
|
+
return !Object$4('z').propertyIsEnumerable(0);
|
221
240
|
}) ? function (it) {
|
222
|
-
return classofRaw(it) == 'String' ? split
|
223
|
-
} : Object;
|
241
|
+
return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
|
242
|
+
} : Object$4;
|
243
|
+
|
244
|
+
var TypeError$9 = global_1.TypeError;
|
224
245
|
|
225
246
|
// `RequireObjectCoercible` abstract operation
|
226
247
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
227
248
|
var requireObjectCoercible = function (it) {
|
228
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
249
|
+
if (it == undefined) throw TypeError$9("Can't call method on " + it);
|
229
250
|
return it;
|
230
251
|
};
|
231
252
|
|
@@ -237,88 +258,309 @@
|
|
237
258
|
return indexedObject(requireObjectCoercible(it));
|
238
259
|
};
|
239
260
|
|
261
|
+
// `IsCallable` abstract operation
|
262
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
263
|
+
var isCallable = function (argument) {
|
264
|
+
return typeof argument == 'function';
|
265
|
+
};
|
266
|
+
|
240
267
|
var isObject = function (it) {
|
241
|
-
return typeof it
|
268
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
242
269
|
};
|
243
270
|
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
var
|
249
|
-
|
271
|
+
var aFunction = function (argument) {
|
272
|
+
return isCallable(argument) ? argument : undefined;
|
273
|
+
};
|
274
|
+
|
275
|
+
var getBuiltIn = function (namespace, method) {
|
276
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
277
|
+
};
|
278
|
+
|
279
|
+
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
280
|
+
|
281
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
282
|
+
|
283
|
+
var process = global_1.process;
|
284
|
+
var Deno = global_1.Deno;
|
285
|
+
var versions = process && process.versions || Deno && Deno.version;
|
286
|
+
var v8 = versions && versions.v8;
|
287
|
+
var match, version;
|
288
|
+
|
289
|
+
if (v8) {
|
290
|
+
match = v8.split('.');
|
291
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
292
|
+
// but their correct versions are not interesting for us
|
293
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
294
|
+
}
|
295
|
+
|
296
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
297
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
298
|
+
if (!version && engineUserAgent) {
|
299
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
300
|
+
if (!match || match[1] >= 74) {
|
301
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
302
|
+
if (match) version = +match[1];
|
303
|
+
}
|
304
|
+
}
|
305
|
+
|
306
|
+
var engineV8Version = version;
|
307
|
+
|
308
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
313
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
314
|
+
var symbol = Symbol();
|
315
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
316
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
317
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
318
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
319
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
320
|
+
});
|
321
|
+
|
322
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
323
|
+
|
324
|
+
|
325
|
+
var useSymbolAsUid = nativeSymbol
|
326
|
+
&& !Symbol.sham
|
327
|
+
&& typeof Symbol.iterator == 'symbol';
|
328
|
+
|
329
|
+
var Object$3 = global_1.Object;
|
330
|
+
|
331
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
332
|
+
return typeof it == 'symbol';
|
333
|
+
} : function (it) {
|
334
|
+
var $Symbol = getBuiltIn('Symbol');
|
335
|
+
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
|
336
|
+
};
|
337
|
+
|
338
|
+
var String$3 = global_1.String;
|
339
|
+
|
340
|
+
var tryToString = function (argument) {
|
341
|
+
try {
|
342
|
+
return String$3(argument);
|
343
|
+
} catch (error) {
|
344
|
+
return 'Object';
|
345
|
+
}
|
346
|
+
};
|
347
|
+
|
348
|
+
var TypeError$8 = global_1.TypeError;
|
349
|
+
|
350
|
+
// `Assert: IsCallable(argument) is true`
|
351
|
+
var aCallable = function (argument) {
|
352
|
+
if (isCallable(argument)) return argument;
|
353
|
+
throw TypeError$8(tryToString(argument) + ' is not a function');
|
354
|
+
};
|
355
|
+
|
356
|
+
// `GetMethod` abstract operation
|
357
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
358
|
+
var getMethod = function (V, P) {
|
359
|
+
var func = V[P];
|
360
|
+
return func == null ? undefined : aCallable(func);
|
361
|
+
};
|
362
|
+
|
363
|
+
var TypeError$7 = global_1.TypeError;
|
364
|
+
|
365
|
+
// `OrdinaryToPrimitive` abstract operation
|
366
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
367
|
+
var ordinaryToPrimitive = function (input, pref) {
|
250
368
|
var fn, val;
|
251
|
-
if (
|
252
|
-
if (
|
253
|
-
if (
|
254
|
-
throw TypeError("Can't convert object to primitive value");
|
369
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
370
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
371
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
372
|
+
throw TypeError$7("Can't convert object to primitive value");
|
373
|
+
};
|
374
|
+
|
375
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
376
|
+
var defineProperty = Object.defineProperty;
|
377
|
+
|
378
|
+
var setGlobal = function (key, value) {
|
379
|
+
try {
|
380
|
+
defineProperty(global_1, key, { value: value, configurable: true, writable: true });
|
381
|
+
} catch (error) {
|
382
|
+
global_1[key] = value;
|
383
|
+
} return value;
|
384
|
+
};
|
385
|
+
|
386
|
+
var SHARED = '__core-js_shared__';
|
387
|
+
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
388
|
+
|
389
|
+
var sharedStore = store$1;
|
390
|
+
|
391
|
+
var shared = createCommonjsModule(function (module) {
|
392
|
+
(module.exports = function (key, value) {
|
393
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
394
|
+
})('versions', []).push({
|
395
|
+
version: '3.21.1',
|
396
|
+
mode: 'global',
|
397
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
398
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
|
399
|
+
source: 'https://github.com/zloirock/core-js'
|
400
|
+
});
|
401
|
+
});
|
402
|
+
|
403
|
+
var Object$2 = global_1.Object;
|
404
|
+
|
405
|
+
// `ToObject` abstract operation
|
406
|
+
// https://tc39.es/ecma262/#sec-toobject
|
407
|
+
var toObject = function (argument) {
|
408
|
+
return Object$2(requireObjectCoercible(argument));
|
255
409
|
};
|
256
410
|
|
257
|
-
var hasOwnProperty = {}.hasOwnProperty;
|
411
|
+
var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
258
412
|
|
259
|
-
|
260
|
-
|
413
|
+
// `HasOwnProperty` abstract operation
|
414
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
415
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
416
|
+
return hasOwnProperty(toObject(it), key);
|
261
417
|
};
|
262
418
|
|
263
|
-
var
|
419
|
+
var id = 0;
|
420
|
+
var postfix = Math.random();
|
421
|
+
var toString = functionUncurryThis(1.0.toString);
|
422
|
+
|
423
|
+
var uid = function (key) {
|
424
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
425
|
+
};
|
426
|
+
|
427
|
+
var WellKnownSymbolsStore = shared('wks');
|
428
|
+
var Symbol$1 = global_1.Symbol;
|
429
|
+
var symbolFor = Symbol$1 && Symbol$1['for'];
|
430
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
431
|
+
|
432
|
+
var wellKnownSymbol = function (name) {
|
433
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
434
|
+
var description = 'Symbol.' + name;
|
435
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
436
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
437
|
+
} else if (useSymbolAsUid && symbolFor) {
|
438
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
439
|
+
} else {
|
440
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
441
|
+
}
|
442
|
+
} return WellKnownSymbolsStore[name];
|
443
|
+
};
|
444
|
+
|
445
|
+
var TypeError$6 = global_1.TypeError;
|
446
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
447
|
+
|
448
|
+
// `ToPrimitive` abstract operation
|
449
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
450
|
+
var toPrimitive = function (input, pref) {
|
451
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
452
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
453
|
+
var result;
|
454
|
+
if (exoticToPrim) {
|
455
|
+
if (pref === undefined) pref = 'default';
|
456
|
+
result = functionCall(exoticToPrim, input, pref);
|
457
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
458
|
+
throw TypeError$6("Can't convert object to primitive value");
|
459
|
+
}
|
460
|
+
if (pref === undefined) pref = 'number';
|
461
|
+
return ordinaryToPrimitive(input, pref);
|
462
|
+
};
|
463
|
+
|
464
|
+
// `ToPropertyKey` abstract operation
|
465
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
466
|
+
var toPropertyKey = function (argument) {
|
467
|
+
var key = toPrimitive(argument, 'string');
|
468
|
+
return isSymbol(key) ? key : key + '';
|
469
|
+
};
|
470
|
+
|
471
|
+
var document$1 = global_1.document;
|
264
472
|
// typeof document.createElement is 'object' in old IE
|
265
|
-
var EXISTS = isObject(document) && isObject(document.createElement);
|
473
|
+
var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
|
266
474
|
|
267
475
|
var documentCreateElement = function (it) {
|
268
|
-
return EXISTS ? document.createElement(it) : {};
|
476
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
269
477
|
};
|
270
478
|
|
271
|
-
//
|
479
|
+
// Thanks to IE8 for its funny defineProperty
|
272
480
|
var ie8DomDefine = !descriptors && !fails(function () {
|
273
|
-
// eslint-disable-next-line es/no-object-defineproperty --
|
481
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
274
482
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
275
483
|
get: function () { return 7; }
|
276
484
|
}).a != 7;
|
277
485
|
});
|
278
486
|
|
279
487
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
280
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
488
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
281
489
|
|
282
490
|
// `Object.getOwnPropertyDescriptor` method
|
283
491
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
284
|
-
var f$
|
492
|
+
var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
285
493
|
O = toIndexedObject(O);
|
286
|
-
P =
|
494
|
+
P = toPropertyKey(P);
|
287
495
|
if (ie8DomDefine) try {
|
288
|
-
return $getOwnPropertyDescriptor(O, P);
|
496
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
289
497
|
} catch (error) { /* empty */ }
|
290
|
-
if (
|
498
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
|
291
499
|
};
|
292
500
|
|
293
501
|
var objectGetOwnPropertyDescriptor = {
|
294
|
-
f: f$
|
502
|
+
f: f$4
|
295
503
|
};
|
296
504
|
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
505
|
+
// V8 ~ Chrome 36-
|
506
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
507
|
+
var v8PrototypeDefineBug = descriptors && fails(function () {
|
508
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
509
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
510
|
+
value: 42,
|
511
|
+
writable: false
|
512
|
+
}).prototype != 42;
|
513
|
+
});
|
514
|
+
|
515
|
+
var String$2 = global_1.String;
|
516
|
+
var TypeError$5 = global_1.TypeError;
|
517
|
+
|
518
|
+
// `Assert: Type(argument) is Object`
|
519
|
+
var anObject = function (argument) {
|
520
|
+
if (isObject(argument)) return argument;
|
521
|
+
throw TypeError$5(String$2(argument) + ' is not an object');
|
301
522
|
};
|
302
523
|
|
524
|
+
var TypeError$4 = global_1.TypeError;
|
303
525
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
304
526
|
var $defineProperty = Object.defineProperty;
|
527
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
528
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
529
|
+
var ENUMERABLE = 'enumerable';
|
530
|
+
var CONFIGURABLE$1 = 'configurable';
|
531
|
+
var WRITABLE = 'writable';
|
305
532
|
|
306
533
|
// `Object.defineProperty` method
|
307
534
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
308
|
-
var f$
|
535
|
+
var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
536
|
+
anObject(O);
|
537
|
+
P = toPropertyKey(P);
|
538
|
+
anObject(Attributes);
|
539
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
540
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
541
|
+
if (current && current[WRITABLE]) {
|
542
|
+
O[P] = Attributes.value;
|
543
|
+
Attributes = {
|
544
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
545
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
546
|
+
writable: false
|
547
|
+
};
|
548
|
+
}
|
549
|
+
} return $defineProperty(O, P, Attributes);
|
550
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
309
551
|
anObject(O);
|
310
|
-
P =
|
552
|
+
P = toPropertyKey(P);
|
311
553
|
anObject(Attributes);
|
312
554
|
if (ie8DomDefine) try {
|
313
555
|
return $defineProperty(O, P, Attributes);
|
314
556
|
} catch (error) { /* empty */ }
|
315
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
557
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$4('Accessors not supported');
|
316
558
|
if ('value' in Attributes) O[P] = Attributes.value;
|
317
559
|
return O;
|
318
560
|
};
|
319
561
|
|
320
562
|
var objectDefineProperty = {
|
321
|
-
f: f$
|
563
|
+
f: f$3
|
322
564
|
};
|
323
565
|
|
324
566
|
var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
@@ -328,25 +570,12 @@
|
|
328
570
|
return object;
|
329
571
|
};
|
330
572
|
|
331
|
-
var
|
332
|
-
try {
|
333
|
-
createNonEnumerableProperty(global_1, key, value);
|
334
|
-
} catch (error) {
|
335
|
-
global_1[key] = value;
|
336
|
-
} return value;
|
337
|
-
};
|
338
|
-
|
339
|
-
var SHARED = '__core-js_shared__';
|
340
|
-
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
341
|
-
|
342
|
-
var sharedStore = store$1;
|
343
|
-
|
344
|
-
var functionToString = Function.toString;
|
573
|
+
var functionToString = functionUncurryThis(Function.toString);
|
345
574
|
|
346
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
347
|
-
if (
|
575
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
576
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
348
577
|
sharedStore.inspectSource = function (it) {
|
349
|
-
return functionToString
|
578
|
+
return functionToString(it);
|
350
579
|
};
|
351
580
|
}
|
352
581
|
|
@@ -354,24 +583,7 @@
|
|
354
583
|
|
355
584
|
var WeakMap$1 = global_1.WeakMap;
|
356
585
|
|
357
|
-
var nativeWeakMap =
|
358
|
-
|
359
|
-
var shared = createCommonjsModule(function (module) {
|
360
|
-
(module.exports = function (key, value) {
|
361
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
362
|
-
})('versions', []).push({
|
363
|
-
version: '3.10.1',
|
364
|
-
mode: 'global',
|
365
|
-
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
366
|
-
});
|
367
|
-
});
|
368
|
-
|
369
|
-
var id = 0;
|
370
|
-
var postfix = Math.random();
|
371
|
-
|
372
|
-
var uid = function (key) {
|
373
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
374
|
-
};
|
586
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
375
587
|
|
376
588
|
var keys = shared('keys');
|
377
589
|
|
@@ -381,6 +593,8 @@
|
|
381
593
|
|
382
594
|
var hiddenKeys$1 = {};
|
383
595
|
|
596
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
597
|
+
var TypeError$3 = global_1.TypeError;
|
384
598
|
var WeakMap = global_1.WeakMap;
|
385
599
|
var set, get, has;
|
386
600
|
|
@@ -392,40 +606,42 @@
|
|
392
606
|
return function (it) {
|
393
607
|
var state;
|
394
608
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
395
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
609
|
+
throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');
|
396
610
|
} return state;
|
397
611
|
};
|
398
612
|
};
|
399
613
|
|
400
|
-
if (nativeWeakMap) {
|
614
|
+
if (nativeWeakMap || sharedStore.state) {
|
401
615
|
var store = sharedStore.state || (sharedStore.state = new WeakMap());
|
402
|
-
var wmget = store.get;
|
403
|
-
var wmhas = store.has;
|
404
|
-
var wmset = store.set;
|
616
|
+
var wmget = functionUncurryThis(store.get);
|
617
|
+
var wmhas = functionUncurryThis(store.has);
|
618
|
+
var wmset = functionUncurryThis(store.set);
|
405
619
|
set = function (it, metadata) {
|
620
|
+
if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
|
406
621
|
metadata.facade = it;
|
407
|
-
wmset
|
622
|
+
wmset(store, it, metadata);
|
408
623
|
return metadata;
|
409
624
|
};
|
410
625
|
get = function (it) {
|
411
|
-
return wmget
|
626
|
+
return wmget(store, it) || {};
|
412
627
|
};
|
413
628
|
has = function (it) {
|
414
|
-
return wmhas
|
629
|
+
return wmhas(store, it);
|
415
630
|
};
|
416
631
|
} else {
|
417
632
|
var STATE = sharedKey('state');
|
418
633
|
hiddenKeys$1[STATE] = true;
|
419
634
|
set = function (it, metadata) {
|
635
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
|
420
636
|
metadata.facade = it;
|
421
637
|
createNonEnumerableProperty(it, STATE, metadata);
|
422
638
|
return metadata;
|
423
639
|
};
|
424
640
|
get = function (it) {
|
425
|
-
return
|
641
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
426
642
|
};
|
427
643
|
has = function (it) {
|
428
|
-
return
|
644
|
+
return hasOwnProperty_1(it, STATE);
|
429
645
|
};
|
430
646
|
}
|
431
647
|
|
@@ -437,7 +653,24 @@
|
|
437
653
|
getterFor: getterFor
|
438
654
|
};
|
439
655
|
|
656
|
+
var FunctionPrototype$1 = Function.prototype;
|
657
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
658
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
659
|
+
|
660
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
661
|
+
// additional protection from minified / mangled / dropped function names
|
662
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
663
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
664
|
+
|
665
|
+
var functionName = {
|
666
|
+
EXISTS: EXISTS,
|
667
|
+
PROPER: PROPER,
|
668
|
+
CONFIGURABLE: CONFIGURABLE
|
669
|
+
};
|
670
|
+
|
440
671
|
var redefine = createCommonjsModule(function (module) {
|
672
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
673
|
+
|
441
674
|
var getInternalState = internalState.get;
|
442
675
|
var enforceInternalState = internalState.enforce;
|
443
676
|
var TEMPLATE = String(String).split('String');
|
@@ -446,14 +679,18 @@
|
|
446
679
|
var unsafe = options ? !!options.unsafe : false;
|
447
680
|
var simple = options ? !!options.enumerable : false;
|
448
681
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
682
|
+
var name = options && options.name !== undefined ? options.name : key;
|
449
683
|
var state;
|
450
|
-
if (
|
451
|
-
if (
|
452
|
-
|
684
|
+
if (isCallable(value)) {
|
685
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
686
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
687
|
+
}
|
688
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
689
|
+
createNonEnumerableProperty(value, 'name', name);
|
453
690
|
}
|
454
691
|
state = enforceInternalState(value);
|
455
692
|
if (!state.source) {
|
456
|
-
state.source = TEMPLATE.join(typeof
|
693
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
457
694
|
}
|
458
695
|
}
|
459
696
|
if (O === global_1) {
|
@@ -469,54 +706,51 @@
|
|
469
706
|
else createNonEnumerableProperty(O, key, value);
|
470
707
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
471
708
|
})(Function.prototype, 'toString', function toString() {
|
472
|
-
return
|
709
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
473
710
|
});
|
474
711
|
});
|
475
712
|
|
476
|
-
var path = global_1;
|
477
|
-
|
478
|
-
var aFunction = function (variable) {
|
479
|
-
return typeof variable == 'function' ? variable : undefined;
|
480
|
-
};
|
481
|
-
|
482
|
-
var getBuiltIn = function (namespace, method) {
|
483
|
-
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
|
484
|
-
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
|
485
|
-
};
|
486
|
-
|
487
713
|
var ceil = Math.ceil;
|
488
714
|
var floor$1 = Math.floor;
|
489
715
|
|
490
|
-
// `
|
491
|
-
// https://tc39.es/ecma262/#sec-
|
492
|
-
var
|
493
|
-
|
716
|
+
// `ToIntegerOrInfinity` abstract operation
|
717
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
718
|
+
var toIntegerOrInfinity = function (argument) {
|
719
|
+
var number = +argument;
|
720
|
+
// eslint-disable-next-line no-self-compare -- safe
|
721
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
|
494
722
|
};
|
495
723
|
|
724
|
+
var max$1 = Math.max;
|
496
725
|
var min$2 = Math.min;
|
497
726
|
|
727
|
+
// Helper for a popular repeating case of the spec:
|
728
|
+
// Let integer be ? ToInteger(index).
|
729
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
730
|
+
var toAbsoluteIndex = function (index, length) {
|
731
|
+
var integer = toIntegerOrInfinity(index);
|
732
|
+
return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
|
733
|
+
};
|
734
|
+
|
735
|
+
var min$1 = Math.min;
|
736
|
+
|
498
737
|
// `ToLength` abstract operation
|
499
738
|
// https://tc39.es/ecma262/#sec-tolength
|
500
739
|
var toLength = function (argument) {
|
501
|
-
return argument > 0 ? min$
|
740
|
+
return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
502
741
|
};
|
503
742
|
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
// Let integer be ? ToInteger(index).
|
509
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
510
|
-
var toAbsoluteIndex = function (index, length) {
|
511
|
-
var integer = toInteger(index);
|
512
|
-
return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
|
743
|
+
// `LengthOfArrayLike` abstract operation
|
744
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
745
|
+
var lengthOfArrayLike = function (obj) {
|
746
|
+
return toLength(obj.length);
|
513
747
|
};
|
514
748
|
|
515
749
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
516
750
|
var createMethod$1 = function (IS_INCLUDES) {
|
517
751
|
return function ($this, el, fromIndex) {
|
518
752
|
var O = toIndexedObject($this);
|
519
|
-
var length =
|
753
|
+
var length = lengthOfArrayLike(O);
|
520
754
|
var index = toAbsoluteIndex(fromIndex, length);
|
521
755
|
var value;
|
522
756
|
// Array#includes uses SameValueZero equality algorithm
|
@@ -541,18 +775,20 @@
|
|
541
775
|
indexOf: createMethod$1(false)
|
542
776
|
};
|
543
777
|
|
544
|
-
var indexOf = arrayIncludes.indexOf;
|
778
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
545
779
|
|
546
780
|
|
781
|
+
var push$1 = functionUncurryThis([].push);
|
782
|
+
|
547
783
|
var objectKeysInternal = function (object, names) {
|
548
784
|
var O = toIndexedObject(object);
|
549
785
|
var i = 0;
|
550
786
|
var result = [];
|
551
787
|
var key;
|
552
|
-
for (key in O) !
|
788
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$1(result, key);
|
553
789
|
// Don't enum bug & hidden keys
|
554
|
-
while (names.length > i) if (
|
555
|
-
~indexOf(result, key) ||
|
790
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
791
|
+
~indexOf$1(result, key) || push$1(result, key);
|
556
792
|
}
|
557
793
|
return result;
|
558
794
|
};
|
@@ -573,35 +809,39 @@
|
|
573
809
|
// `Object.getOwnPropertyNames` method
|
574
810
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
575
811
|
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
576
|
-
var f$
|
812
|
+
var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
577
813
|
return objectKeysInternal(O, hiddenKeys);
|
578
814
|
};
|
579
815
|
|
580
816
|
var objectGetOwnPropertyNames = {
|
581
|
-
f: f$
|
817
|
+
f: f$2
|
582
818
|
};
|
583
819
|
|
584
820
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
585
|
-
var f = Object.getOwnPropertySymbols;
|
821
|
+
var f$1 = Object.getOwnPropertySymbols;
|
586
822
|
|
587
823
|
var objectGetOwnPropertySymbols = {
|
588
|
-
f: f
|
824
|
+
f: f$1
|
589
825
|
};
|
590
826
|
|
827
|
+
var concat$1 = functionUncurryThis([].concat);
|
828
|
+
|
591
829
|
// all object keys, includes non-enumerable and symbols
|
592
830
|
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
593
831
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
594
832
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
595
|
-
return getOwnPropertySymbols ?
|
833
|
+
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
596
834
|
};
|
597
835
|
|
598
|
-
var copyConstructorProperties = function (target, source) {
|
836
|
+
var copyConstructorProperties = function (target, source, exceptions) {
|
599
837
|
var keys = ownKeys(source);
|
600
838
|
var defineProperty = objectDefineProperty.f;
|
601
839
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
602
840
|
for (var i = 0; i < keys.length; i++) {
|
603
841
|
var key = keys[i];
|
604
|
-
if (!
|
842
|
+
if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
|
843
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
844
|
+
}
|
605
845
|
}
|
606
846
|
};
|
607
847
|
|
@@ -611,7 +851,7 @@
|
|
611
851
|
var value = data[normalize(feature)];
|
612
852
|
return value == POLYFILL ? true
|
613
853
|
: value == NATIVE ? false
|
614
|
-
:
|
854
|
+
: isCallable(detection) ? fails(detection)
|
615
855
|
: !!detection;
|
616
856
|
};
|
617
857
|
|
@@ -645,6 +885,7 @@
|
|
645
885
|
options.sham - add a flag to not completely full polyfills
|
646
886
|
options.enumerable - export as enumerable property
|
647
887
|
options.noTargetGet - prevent calling a getter on target
|
888
|
+
options.name - the .name of the function if it does not match the key
|
648
889
|
*/
|
649
890
|
var _export = function (options, source) {
|
650
891
|
var TARGET = options.target;
|
@@ -667,7 +908,7 @@
|
|
667
908
|
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
668
909
|
// contained in target
|
669
910
|
if (!FORCED && targetProperty !== undefined) {
|
670
|
-
if (typeof sourceProperty
|
911
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
671
912
|
copyConstructorProperties(sourceProperty, targetProperty);
|
672
913
|
}
|
673
914
|
// add a flag to not completely full polyfills
|
@@ -679,6 +920,45 @@
|
|
679
920
|
}
|
680
921
|
};
|
681
922
|
|
923
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
924
|
+
var test = {};
|
925
|
+
|
926
|
+
test[TO_STRING_TAG$1] = 'z';
|
927
|
+
|
928
|
+
var toStringTagSupport = String(test) === '[object z]';
|
929
|
+
|
930
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
931
|
+
var Object$1 = global_1.Object;
|
932
|
+
|
933
|
+
// ES3 wrong here
|
934
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
935
|
+
|
936
|
+
// fallback for IE11 Script Access Denied error
|
937
|
+
var tryGet = function (it, key) {
|
938
|
+
try {
|
939
|
+
return it[key];
|
940
|
+
} catch (error) { /* empty */ }
|
941
|
+
};
|
942
|
+
|
943
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
944
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
945
|
+
var O, tag, result;
|
946
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
947
|
+
// @@toStringTag case
|
948
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
949
|
+
// builtinTag case
|
950
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
951
|
+
// ES3 arguments fallback
|
952
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
953
|
+
};
|
954
|
+
|
955
|
+
var String$1 = global_1.String;
|
956
|
+
|
957
|
+
var toString_1 = function (argument) {
|
958
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
959
|
+
return String$1(argument);
|
960
|
+
};
|
961
|
+
|
682
962
|
// `RegExp.prototype.flags` getter implementation
|
683
963
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
684
964
|
var regexpFlags = function () {
|
@@ -693,71 +973,228 @@
|
|
693
973
|
return result;
|
694
974
|
};
|
695
975
|
|
696
|
-
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
697
|
-
|
698
|
-
function RE(s, f) {
|
699
|
-
return RegExp(s, f);
|
700
|
-
}
|
976
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
977
|
+
var $RegExp$2 = global_1.RegExp;
|
701
978
|
|
702
979
|
var UNSUPPORTED_Y$1 = fails(function () {
|
703
|
-
|
704
|
-
var re = RE('a', 'y');
|
980
|
+
var re = $RegExp$2('a', 'y');
|
705
981
|
re.lastIndex = 2;
|
706
982
|
return re.exec('abcd') != null;
|
707
983
|
});
|
708
984
|
|
709
|
-
|
985
|
+
// UC Browser bug
|
986
|
+
// https://github.com/zloirock/core-js/issues/1008
|
987
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails(function () {
|
988
|
+
return !$RegExp$2('a', 'y').sticky;
|
989
|
+
});
|
990
|
+
|
991
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails(function () {
|
710
992
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
711
|
-
var re =
|
993
|
+
var re = $RegExp$2('^r', 'gy');
|
712
994
|
re.lastIndex = 2;
|
713
995
|
return re.exec('str') != null;
|
714
996
|
});
|
715
997
|
|
716
998
|
var regexpStickyHelpers = {
|
717
|
-
|
718
|
-
|
999
|
+
BROKEN_CARET: BROKEN_CARET,
|
1000
|
+
MISSED_STICKY: MISSED_STICKY,
|
1001
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
719
1002
|
};
|
720
1003
|
|
721
|
-
|
722
|
-
|
1004
|
+
// `Object.keys` method
|
1005
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
1006
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
1007
|
+
var objectKeys = Object.keys || function keys(O) {
|
1008
|
+
return objectKeysInternal(O, enumBugKeys);
|
1009
|
+
};
|
1010
|
+
|
1011
|
+
// `Object.defineProperties` method
|
1012
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
1013
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
1014
|
+
var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
1015
|
+
anObject(O);
|
1016
|
+
var props = toIndexedObject(Properties);
|
1017
|
+
var keys = objectKeys(Properties);
|
1018
|
+
var length = keys.length;
|
1019
|
+
var index = 0;
|
1020
|
+
var key;
|
1021
|
+
while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
|
1022
|
+
return O;
|
1023
|
+
};
|
1024
|
+
|
1025
|
+
var objectDefineProperties = {
|
1026
|
+
f: f
|
1027
|
+
};
|
1028
|
+
|
1029
|
+
var html = getBuiltIn('document', 'documentElement');
|
1030
|
+
|
1031
|
+
/* global ActiveXObject -- old IE, WSH */
|
1032
|
+
|
1033
|
+
|
1034
|
+
|
1035
|
+
|
1036
|
+
|
1037
|
+
|
1038
|
+
|
723
1039
|
|
1040
|
+
var GT = '>';
|
1041
|
+
var LT = '<';
|
1042
|
+
var PROTOTYPE = 'prototype';
|
1043
|
+
var SCRIPT = 'script';
|
1044
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
1045
|
+
|
1046
|
+
var EmptyConstructor = function () { /* empty */ };
|
1047
|
+
|
1048
|
+
var scriptTag = function (content) {
|
1049
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
1050
|
+
};
|
1051
|
+
|
1052
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
1053
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
1054
|
+
activeXDocument.write(scriptTag(''));
|
1055
|
+
activeXDocument.close();
|
1056
|
+
var temp = activeXDocument.parentWindow.Object;
|
1057
|
+
activeXDocument = null; // avoid memory leak
|
1058
|
+
return temp;
|
1059
|
+
};
|
1060
|
+
|
1061
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
1062
|
+
var NullProtoObjectViaIFrame = function () {
|
1063
|
+
// Thrash, waste and sodomy: IE GC bug
|
1064
|
+
var iframe = documentCreateElement('iframe');
|
1065
|
+
var JS = 'java' + SCRIPT + ':';
|
1066
|
+
var iframeDocument;
|
1067
|
+
iframe.style.display = 'none';
|
1068
|
+
html.appendChild(iframe);
|
1069
|
+
// https://github.com/zloirock/core-js/issues/475
|
1070
|
+
iframe.src = String(JS);
|
1071
|
+
iframeDocument = iframe.contentWindow.document;
|
1072
|
+
iframeDocument.open();
|
1073
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
1074
|
+
iframeDocument.close();
|
1075
|
+
return iframeDocument.F;
|
1076
|
+
};
|
1077
|
+
|
1078
|
+
// Check for document.domain and active x support
|
1079
|
+
// No need to use active x approach when document.domain is not set
|
1080
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
1081
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
1082
|
+
// avoid IE GC bug
|
1083
|
+
var activeXDocument;
|
1084
|
+
var NullProtoObject = function () {
|
1085
|
+
try {
|
1086
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
1087
|
+
} catch (error) { /* ignore */ }
|
1088
|
+
NullProtoObject = typeof document != 'undefined'
|
1089
|
+
? document.domain && activeXDocument
|
1090
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
1091
|
+
: NullProtoObjectViaIFrame()
|
1092
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
1093
|
+
var length = enumBugKeys.length;
|
1094
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
1095
|
+
return NullProtoObject();
|
1096
|
+
};
|
1097
|
+
|
1098
|
+
hiddenKeys$1[IE_PROTO] = true;
|
1099
|
+
|
1100
|
+
// `Object.create` method
|
1101
|
+
// https://tc39.es/ecma262/#sec-object.create
|
1102
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
1103
|
+
var result;
|
1104
|
+
if (O !== null) {
|
1105
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
1106
|
+
result = new EmptyConstructor();
|
1107
|
+
EmptyConstructor[PROTOTYPE] = null;
|
1108
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
1109
|
+
result[IE_PROTO] = O;
|
1110
|
+
} else result = NullProtoObject();
|
1111
|
+
return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
|
1112
|
+
};
|
1113
|
+
|
1114
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
1115
|
+
var $RegExp$1 = global_1.RegExp;
|
1116
|
+
|
1117
|
+
var regexpUnsupportedDotAll = fails(function () {
|
1118
|
+
var re = $RegExp$1('.', 's');
|
1119
|
+
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
1120
|
+
});
|
1121
|
+
|
1122
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
1123
|
+
var $RegExp = global_1.RegExp;
|
1124
|
+
|
1125
|
+
var regexpUnsupportedNcg = fails(function () {
|
1126
|
+
var re = $RegExp('(?<a>b)', 'g');
|
1127
|
+
return re.exec('b').groups.a !== 'b' ||
|
1128
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
1129
|
+
});
|
1130
|
+
|
1131
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
1132
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
1133
|
+
|
1134
|
+
|
1135
|
+
|
1136
|
+
|
1137
|
+
|
1138
|
+
|
1139
|
+
|
1140
|
+
var getInternalState = internalState.get;
|
1141
|
+
|
1142
|
+
|
1143
|
+
|
1144
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
1145
|
+
var nativeExec = RegExp.prototype.exec;
|
724
1146
|
var patchedExec = nativeExec;
|
1147
|
+
var charAt$3 = functionUncurryThis(''.charAt);
|
1148
|
+
var indexOf = functionUncurryThis(''.indexOf);
|
1149
|
+
var replace$1 = functionUncurryThis(''.replace);
|
1150
|
+
var stringSlice$3 = functionUncurryThis(''.slice);
|
725
1151
|
|
726
1152
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
727
1153
|
var re1 = /a/;
|
728
1154
|
var re2 = /b*/g;
|
729
|
-
nativeExec
|
730
|
-
nativeExec
|
1155
|
+
functionCall(nativeExec, re1, 'a');
|
1156
|
+
functionCall(nativeExec, re2, 'a');
|
731
1157
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
732
1158
|
})();
|
733
1159
|
|
734
|
-
var UNSUPPORTED_Y = regexpStickyHelpers.
|
1160
|
+
var UNSUPPORTED_Y = regexpStickyHelpers.BROKEN_CARET;
|
735
1161
|
|
736
1162
|
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
737
|
-
// eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
|
738
1163
|
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
739
1164
|
|
740
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
|
1165
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || regexpUnsupportedDotAll || regexpUnsupportedNcg;
|
741
1166
|
|
742
1167
|
if (PATCH) {
|
743
|
-
patchedExec = function exec(
|
1168
|
+
patchedExec = function exec(string) {
|
744
1169
|
var re = this;
|
745
|
-
var
|
1170
|
+
var state = getInternalState(re);
|
1171
|
+
var str = toString_1(string);
|
1172
|
+
var raw = state.raw;
|
1173
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
1174
|
+
|
1175
|
+
if (raw) {
|
1176
|
+
raw.lastIndex = re.lastIndex;
|
1177
|
+
result = functionCall(patchedExec, raw, str);
|
1178
|
+
re.lastIndex = raw.lastIndex;
|
1179
|
+
return result;
|
1180
|
+
}
|
1181
|
+
|
1182
|
+
var groups = state.groups;
|
746
1183
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
747
|
-
var flags = regexpFlags
|
1184
|
+
var flags = functionCall(regexpFlags, re);
|
748
1185
|
var source = re.source;
|
749
1186
|
var charsAdded = 0;
|
750
1187
|
var strCopy = str;
|
751
1188
|
|
752
1189
|
if (sticky) {
|
753
|
-
flags =
|
754
|
-
if (
|
1190
|
+
flags = replace$1(flags, 'y', '');
|
1191
|
+
if (indexOf(flags, 'g') === -1) {
|
755
1192
|
flags += 'g';
|
756
1193
|
}
|
757
1194
|
|
758
|
-
strCopy =
|
1195
|
+
strCopy = stringSlice$3(str, re.lastIndex);
|
759
1196
|
// Support anchored sticky behavior.
|
760
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str
|
1197
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
761
1198
|
source = '(?: ' + source + ')';
|
762
1199
|
strCopy = ' ' + strCopy;
|
763
1200
|
charsAdded++;
|
@@ -772,12 +1209,12 @@
|
|
772
1209
|
}
|
773
1210
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
774
1211
|
|
775
|
-
match = nativeExec
|
1212
|
+
match = functionCall(nativeExec, sticky ? reCopy : re, strCopy);
|
776
1213
|
|
777
1214
|
if (sticky) {
|
778
1215
|
if (match) {
|
779
|
-
match.input = match.input
|
780
|
-
match[0] = match[0]
|
1216
|
+
match.input = stringSlice$3(match.input, charsAdded);
|
1217
|
+
match[0] = stringSlice$3(match[0], charsAdded);
|
781
1218
|
match.index = re.lastIndex;
|
782
1219
|
re.lastIndex += match[0].length;
|
783
1220
|
} else re.lastIndex = 0;
|
@@ -787,13 +1224,21 @@
|
|
787
1224
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
788
1225
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
789
1226
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
790
|
-
nativeReplace
|
1227
|
+
functionCall(nativeReplace, match[0], reCopy, function () {
|
791
1228
|
for (i = 1; i < arguments.length - 2; i++) {
|
792
1229
|
if (arguments[i] === undefined) match[i] = undefined;
|
793
1230
|
}
|
794
1231
|
});
|
795
1232
|
}
|
796
1233
|
|
1234
|
+
if (match && groups) {
|
1235
|
+
match.groups = object = objectCreate(null);
|
1236
|
+
for (i = 0; i < groups.length; i++) {
|
1237
|
+
group = groups[i];
|
1238
|
+
object[group[0]] = match[group[1]];
|
1239
|
+
}
|
1240
|
+
}
|
1241
|
+
|
797
1242
|
return match;
|
798
1243
|
};
|
799
1244
|
}
|
@@ -806,58 +1251,15 @@
|
|
806
1251
|
exec: regexpExec
|
807
1252
|
});
|
808
1253
|
|
809
|
-
var
|
810
|
-
|
811
|
-
var
|
1254
|
+
var FunctionPrototype = Function.prototype;
|
1255
|
+
var apply = FunctionPrototype.apply;
|
1256
|
+
var call = FunctionPrototype.call;
|
812
1257
|
|
813
|
-
|
814
|
-
var
|
815
|
-
|
816
|
-
var match, version;
|
817
|
-
|
818
|
-
if (v8) {
|
819
|
-
match = v8.split('.');
|
820
|
-
version = match[0] + match[1];
|
821
|
-
} else if (engineUserAgent) {
|
822
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
823
|
-
if (!match || match[1] >= 74) {
|
824
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
825
|
-
if (match) version = match[1];
|
826
|
-
}
|
827
|
-
}
|
828
|
-
|
829
|
-
var engineV8Version = version && +version;
|
830
|
-
|
831
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
832
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
833
|
-
// eslint-disable-next-line es/no-symbol -- required for testing
|
834
|
-
return !Symbol.sham &&
|
835
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
836
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
837
|
-
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
|
1258
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
1259
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
|
1260
|
+
return call.apply(apply, arguments);
|
838
1261
|
});
|
839
1262
|
|
840
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
841
|
-
|
842
|
-
|
843
|
-
var useSymbolAsUid = nativeSymbol
|
844
|
-
&& !Symbol.sham
|
845
|
-
&& typeof Symbol.iterator == 'symbol';
|
846
|
-
|
847
|
-
var WellKnownSymbolsStore = shared('wks');
|
848
|
-
var Symbol$1 = global_1.Symbol;
|
849
|
-
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
850
|
-
|
851
|
-
var wellKnownSymbol = function (name) {
|
852
|
-
if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
853
|
-
if (nativeSymbol && has$1(Symbol$1, name)) {
|
854
|
-
WellKnownSymbolsStore[name] = Symbol$1[name];
|
855
|
-
} else {
|
856
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
857
|
-
}
|
858
|
-
} return WellKnownSymbolsStore[name];
|
859
|
-
};
|
860
|
-
|
861
1263
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
862
1264
|
|
863
1265
|
|
@@ -865,49 +1267,12 @@
|
|
865
1267
|
|
866
1268
|
|
867
1269
|
|
868
|
-
var SPECIES$2 = wellKnownSymbol('species');
|
869
1270
|
|
870
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
871
|
-
// #replace needs built-in support for named groups.
|
872
|
-
// #match works fine because it just return the exec results, even if it has
|
873
|
-
// a "grops" property.
|
874
|
-
var re = /./;
|
875
|
-
re.exec = function () {
|
876
|
-
var result = [];
|
877
|
-
result.groups = { a: '7' };
|
878
|
-
return result;
|
879
|
-
};
|
880
|
-
return ''.replace(re, '$<a>') !== '7';
|
881
|
-
});
|
882
1271
|
|
883
|
-
|
884
|
-
|
885
|
-
var REPLACE_KEEPS_$0 = (function () {
|
886
|
-
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
887
|
-
return 'a'.replace(/./, '$0') === '$0';
|
888
|
-
})();
|
889
|
-
|
890
|
-
var REPLACE = wellKnownSymbol('replace');
|
891
|
-
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
892
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
893
|
-
if (/./[REPLACE]) {
|
894
|
-
return /./[REPLACE]('a', '$0') === '';
|
895
|
-
}
|
896
|
-
return false;
|
897
|
-
})();
|
898
|
-
|
899
|
-
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
900
|
-
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
901
|
-
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
902
|
-
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
903
|
-
var re = /(?:)/;
|
904
|
-
var originalExec = re.exec;
|
905
|
-
re.exec = function () { return originalExec.apply(this, arguments); };
|
906
|
-
var result = 'ab'.split(re);
|
907
|
-
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
908
|
-
});
|
1272
|
+
var SPECIES$2 = wellKnownSymbol('species');
|
1273
|
+
var RegExpPrototype = RegExp.prototype;
|
909
1274
|
|
910
|
-
var fixRegexpWellKnownSymbolLogic = function (KEY,
|
1275
|
+
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
911
1276
|
var SYMBOL = wellKnownSymbol(KEY);
|
912
1277
|
|
913
1278
|
var DELEGATES_TO_SYMBOL = !fails(function () {
|
@@ -944,59 +1309,51 @@
|
|
944
1309
|
if (
|
945
1310
|
!DELEGATES_TO_SYMBOL ||
|
946
1311
|
!DELEGATES_TO_EXEC ||
|
947
|
-
|
948
|
-
REPLACE_SUPPORTS_NAMED_GROUPS &&
|
949
|
-
REPLACE_KEEPS_$0 &&
|
950
|
-
!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
951
|
-
)) ||
|
952
|
-
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
|
1312
|
+
FORCED
|
953
1313
|
) {
|
954
|
-
var
|
1314
|
+
var uncurriedNativeRegExpMethod = functionUncurryThis(/./[SYMBOL]);
|
955
1315
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
956
|
-
|
1316
|
+
var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
|
1317
|
+
var $exec = regexp.exec;
|
1318
|
+
if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
|
957
1319
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
958
1320
|
// The native String method already delegates to @@method (this
|
959
1321
|
// polyfilled function), leasing to infinite recursion.
|
960
1322
|
// We avoid it by directly calling the native @@method method.
|
961
|
-
return { done: true, value:
|
1323
|
+
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
962
1324
|
}
|
963
|
-
return { done: true, value:
|
1325
|
+
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
964
1326
|
}
|
965
1327
|
return { done: false };
|
966
|
-
}, {
|
967
|
-
REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
|
968
|
-
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
969
1328
|
});
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
redefine(String.prototype, KEY, stringMethod);
|
974
|
-
redefine(RegExp.prototype, SYMBOL, length == 2
|
975
|
-
// 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
|
976
|
-
// 21.2.5.11 RegExp.prototype[@@split](string, limit)
|
977
|
-
? function (string, arg) { return regexMethod.call(string, this, arg); }
|
978
|
-
// 21.2.5.6 RegExp.prototype[@@match](string)
|
979
|
-
// 21.2.5.9 RegExp.prototype[@@search](string)
|
980
|
-
: function (string) { return regexMethod.call(string, this); }
|
981
|
-
);
|
1329
|
+
|
1330
|
+
redefine(String.prototype, KEY, methods[0]);
|
1331
|
+
redefine(RegExpPrototype, SYMBOL, methods[1]);
|
982
1332
|
}
|
983
1333
|
|
984
|
-
if (
|
1334
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
985
1335
|
};
|
986
1336
|
|
987
|
-
|
1337
|
+
var charAt$2 = functionUncurryThis(''.charAt);
|
1338
|
+
var charCodeAt = functionUncurryThis(''.charCodeAt);
|
1339
|
+
var stringSlice$2 = functionUncurryThis(''.slice);
|
1340
|
+
|
988
1341
|
var createMethod = function (CONVERT_TO_STRING) {
|
989
1342
|
return function ($this, pos) {
|
990
|
-
var S =
|
991
|
-
var position =
|
1343
|
+
var S = toString_1(requireObjectCoercible($this));
|
1344
|
+
var position = toIntegerOrInfinity(pos);
|
992
1345
|
var size = S.length;
|
993
1346
|
var first, second;
|
994
1347
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
995
|
-
first =
|
1348
|
+
first = charCodeAt(S, position);
|
996
1349
|
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
997
|
-
|| (second =
|
998
|
-
? CONVERT_TO_STRING
|
999
|
-
|
1350
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
1351
|
+
? CONVERT_TO_STRING
|
1352
|
+
? charAt$2(S, position)
|
1353
|
+
: first
|
1354
|
+
: CONVERT_TO_STRING
|
1355
|
+
? stringSlice$2(S, position, position + 2)
|
1356
|
+
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
1000
1357
|
};
|
1001
1358
|
};
|
1002
1359
|
|
@@ -1009,25 +1366,22 @@
|
|
1009
1366
|
charAt: createMethod(true)
|
1010
1367
|
};
|
1011
1368
|
|
1012
|
-
var charAt = stringMultibyte.charAt;
|
1369
|
+
var charAt$1 = stringMultibyte.charAt;
|
1013
1370
|
|
1014
1371
|
// `AdvanceStringIndex` abstract operation
|
1015
1372
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
1016
1373
|
var advanceStringIndex = function (S, index, unicode) {
|
1017
|
-
return index + (unicode ? charAt(S, index).length : 1);
|
1018
|
-
};
|
1019
|
-
|
1020
|
-
// `ToObject` abstract operation
|
1021
|
-
// https://tc39.es/ecma262/#sec-toobject
|
1022
|
-
var toObject = function (argument) {
|
1023
|
-
return Object(requireObjectCoercible(argument));
|
1374
|
+
return index + (unicode ? charAt$1(S, index).length : 1);
|
1024
1375
|
};
|
1025
1376
|
|
1026
1377
|
var floor = Math.floor;
|
1027
|
-
var
|
1378
|
+
var charAt = functionUncurryThis(''.charAt);
|
1379
|
+
var replace = functionUncurryThis(''.replace);
|
1380
|
+
var stringSlice$1 = functionUncurryThis(''.slice);
|
1028
1381
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
1029
1382
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
1030
1383
|
|
1384
|
+
// `GetSubstitution` abstract operation
|
1031
1385
|
// https://tc39.es/ecma262/#sec-getsubstitution
|
1032
1386
|
var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
|
1033
1387
|
var tailPos = position + matched.length;
|
@@ -1037,15 +1391,15 @@
|
|
1037
1391
|
namedCaptures = toObject(namedCaptures);
|
1038
1392
|
symbols = SUBSTITUTION_SYMBOLS;
|
1039
1393
|
}
|
1040
|
-
return replace
|
1394
|
+
return replace(replacement, symbols, function (match, ch) {
|
1041
1395
|
var capture;
|
1042
|
-
switch (
|
1396
|
+
switch (charAt(ch, 0)) {
|
1043
1397
|
case '$': return '$';
|
1044
1398
|
case '&': return matched;
|
1045
|
-
case '`': return str
|
1046
|
-
case "'": return str
|
1399
|
+
case '`': return stringSlice$1(str, 0, position);
|
1400
|
+
case "'": return stringSlice$1(str, tailPos);
|
1047
1401
|
case '<':
|
1048
|
-
capture = namedCaptures[ch
|
1402
|
+
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
1049
1403
|
break;
|
1050
1404
|
default: // \d\d?
|
1051
1405
|
var n = +ch;
|
@@ -1053,7 +1407,7 @@
|
|
1053
1407
|
if (n > m) {
|
1054
1408
|
var f = floor(n / 10);
|
1055
1409
|
if (f === 0) return match;
|
1056
|
-
if (f <= m) return captures[f - 1] === undefined ?
|
1410
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
1057
1411
|
return match;
|
1058
1412
|
}
|
1059
1413
|
capture = captures[n - 1];
|
@@ -1062,36 +1416,61 @@
|
|
1062
1416
|
});
|
1063
1417
|
};
|
1064
1418
|
|
1419
|
+
var TypeError$2 = global_1.TypeError;
|
1420
|
+
|
1065
1421
|
// `RegExpExec` abstract operation
|
1066
1422
|
// https://tc39.es/ecma262/#sec-regexpexec
|
1067
1423
|
var regexpExecAbstract = function (R, S) {
|
1068
1424
|
var exec = R.exec;
|
1069
|
-
if (
|
1070
|
-
var result = exec
|
1071
|
-
if (
|
1072
|
-
throw TypeError('RegExp exec method returned something other than an Object or null');
|
1073
|
-
}
|
1425
|
+
if (isCallable(exec)) {
|
1426
|
+
var result = functionCall(exec, R, S);
|
1427
|
+
if (result !== null) anObject(result);
|
1074
1428
|
return result;
|
1075
1429
|
}
|
1076
|
-
|
1077
|
-
|
1078
|
-
throw TypeError('RegExp#exec called on incompatible receiver');
|
1079
|
-
}
|
1080
|
-
|
1081
|
-
return regexpExec.call(R, S);
|
1430
|
+
if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
|
1431
|
+
throw TypeError$2('RegExp#exec called on incompatible receiver');
|
1082
1432
|
};
|
1083
1433
|
|
1434
|
+
var REPLACE = wellKnownSymbol('replace');
|
1084
1435
|
var max = Math.max;
|
1085
1436
|
var min = Math.min;
|
1437
|
+
var concat = functionUncurryThis([].concat);
|
1438
|
+
var push = functionUncurryThis([].push);
|
1439
|
+
var stringIndexOf = functionUncurryThis(''.indexOf);
|
1440
|
+
var stringSlice = functionUncurryThis(''.slice);
|
1086
1441
|
|
1087
1442
|
var maybeToString = function (it) {
|
1088
1443
|
return it === undefined ? it : String(it);
|
1089
1444
|
};
|
1090
1445
|
|
1446
|
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
1447
|
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
1448
|
+
var REPLACE_KEEPS_$0 = (function () {
|
1449
|
+
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
1450
|
+
return 'a'.replace(/./, '$0') === '$0';
|
1451
|
+
})();
|
1452
|
+
|
1453
|
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
1454
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
1455
|
+
if (/./[REPLACE]) {
|
1456
|
+
return /./[REPLACE]('a', '$0') === '';
|
1457
|
+
}
|
1458
|
+
return false;
|
1459
|
+
})();
|
1460
|
+
|
1461
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
1462
|
+
var re = /./;
|
1463
|
+
re.exec = function () {
|
1464
|
+
var result = [];
|
1465
|
+
result.groups = { a: '7' };
|
1466
|
+
return result;
|
1467
|
+
};
|
1468
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
1469
|
+
return ''.replace(re, '$<a>') !== '7';
|
1470
|
+
});
|
1471
|
+
|
1091
1472
|
// @@replace logic
|
1092
|
-
fixRegexpWellKnownSymbolLogic('replace',
|
1093
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
|
1094
|
-
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
|
1473
|
+
fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
1095
1474
|
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
1096
1475
|
|
1097
1476
|
return [
|
@@ -1099,27 +1478,28 @@
|
|
1099
1478
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
1100
1479
|
function replace(searchValue, replaceValue) {
|
1101
1480
|
var O = requireObjectCoercible(this);
|
1102
|
-
var replacer = searchValue == undefined ? undefined : searchValue
|
1103
|
-
return replacer
|
1104
|
-
? replacer
|
1105
|
-
: nativeReplace
|
1481
|
+
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
1482
|
+
return replacer
|
1483
|
+
? functionCall(replacer, searchValue, O, replaceValue)
|
1484
|
+
: functionCall(nativeReplace, toString_1(O), searchValue, replaceValue);
|
1106
1485
|
},
|
1107
1486
|
// `RegExp.prototype[@@replace]` method
|
1108
1487
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
1109
|
-
function (
|
1488
|
+
function (string, replaceValue) {
|
1489
|
+
var rx = anObject(this);
|
1490
|
+
var S = toString_1(string);
|
1491
|
+
|
1110
1492
|
if (
|
1111
|
-
|
1112
|
-
(
|
1493
|
+
typeof replaceValue == 'string' &&
|
1494
|
+
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
1495
|
+
stringIndexOf(replaceValue, '$<') === -1
|
1113
1496
|
) {
|
1114
|
-
var res = maybeCallNative(nativeReplace,
|
1497
|
+
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
1115
1498
|
if (res.done) return res.value;
|
1116
1499
|
}
|
1117
1500
|
|
1118
|
-
var
|
1119
|
-
|
1120
|
-
|
1121
|
-
var functionalReplace = typeof replaceValue === 'function';
|
1122
|
-
if (!functionalReplace) replaceValue = String(replaceValue);
|
1501
|
+
var functionalReplace = isCallable(replaceValue);
|
1502
|
+
if (!functionalReplace) replaceValue = toString_1(replaceValue);
|
1123
1503
|
|
1124
1504
|
var global = rx.global;
|
1125
1505
|
if (global) {
|
@@ -1131,10 +1511,10 @@
|
|
1131
1511
|
var result = regexpExecAbstract(rx, S);
|
1132
1512
|
if (result === null) break;
|
1133
1513
|
|
1134
|
-
|
1514
|
+
push(results, result);
|
1135
1515
|
if (!global) break;
|
1136
1516
|
|
1137
|
-
var matchStr =
|
1517
|
+
var matchStr = toString_1(result[0]);
|
1138
1518
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
1139
1519
|
}
|
1140
1520
|
|
@@ -1143,61 +1523,114 @@
|
|
1143
1523
|
for (var i = 0; i < results.length; i++) {
|
1144
1524
|
result = results[i];
|
1145
1525
|
|
1146
|
-
var matched =
|
1147
|
-
var position = max(min(
|
1526
|
+
var matched = toString_1(result[0]);
|
1527
|
+
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
1148
1528
|
var captures = [];
|
1149
1529
|
// NOTE: This is equivalent to
|
1150
1530
|
// captures = result.slice(1).map(maybeToString)
|
1151
1531
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
1152
1532
|
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
1153
1533
|
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
1154
|
-
for (var j = 1; j < result.length; j++)
|
1534
|
+
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
1155
1535
|
var namedCaptures = result.groups;
|
1156
1536
|
if (functionalReplace) {
|
1157
|
-
var replacerArgs = [matched]
|
1158
|
-
if (namedCaptures !== undefined)
|
1159
|
-
var replacement =
|
1537
|
+
var replacerArgs = concat([matched], captures, position, S);
|
1538
|
+
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
1539
|
+
var replacement = toString_1(functionApply(replaceValue, undefined, replacerArgs));
|
1160
1540
|
} else {
|
1161
1541
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
1162
1542
|
}
|
1163
1543
|
if (position >= nextSourcePosition) {
|
1164
|
-
accumulatedResult += S
|
1544
|
+
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
1165
1545
|
nextSourcePosition = position + matched.length;
|
1166
1546
|
}
|
1167
1547
|
}
|
1168
|
-
return accumulatedResult + S
|
1548
|
+
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
1169
1549
|
}
|
1170
1550
|
];
|
1171
|
-
});
|
1551
|
+
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
1172
1552
|
|
1173
1553
|
// `IsArray` abstract operation
|
1174
1554
|
// https://tc39.es/ecma262/#sec-isarray
|
1175
1555
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
1176
|
-
var isArray = Array.isArray || function isArray(
|
1177
|
-
return classofRaw(
|
1556
|
+
var isArray = Array.isArray || function isArray(argument) {
|
1557
|
+
return classofRaw(argument) == 'Array';
|
1178
1558
|
};
|
1179
1559
|
|
1180
1560
|
var createProperty = function (object, key, value) {
|
1181
|
-
var propertyKey =
|
1561
|
+
var propertyKey = toPropertyKey(key);
|
1182
1562
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
1183
1563
|
else object[propertyKey] = value;
|
1184
1564
|
};
|
1185
1565
|
|
1566
|
+
var noop = function () { /* empty */ };
|
1567
|
+
var empty = [];
|
1568
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
1569
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
1570
|
+
var exec = functionUncurryThis(constructorRegExp.exec);
|
1571
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
1572
|
+
|
1573
|
+
var isConstructorModern = function isConstructor(argument) {
|
1574
|
+
if (!isCallable(argument)) return false;
|
1575
|
+
try {
|
1576
|
+
construct(noop, empty, argument);
|
1577
|
+
return true;
|
1578
|
+
} catch (error) {
|
1579
|
+
return false;
|
1580
|
+
}
|
1581
|
+
};
|
1582
|
+
|
1583
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
1584
|
+
if (!isCallable(argument)) return false;
|
1585
|
+
switch (classof(argument)) {
|
1586
|
+
case 'AsyncFunction':
|
1587
|
+
case 'GeneratorFunction':
|
1588
|
+
case 'AsyncGeneratorFunction': return false;
|
1589
|
+
}
|
1590
|
+
try {
|
1591
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
1592
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
1593
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
1594
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
1595
|
+
} catch (error) {
|
1596
|
+
return true;
|
1597
|
+
}
|
1598
|
+
};
|
1599
|
+
|
1600
|
+
isConstructorLegacy.sham = true;
|
1601
|
+
|
1602
|
+
// `IsConstructor` abstract operation
|
1603
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
1604
|
+
var isConstructor = !construct || fails(function () {
|
1605
|
+
var called;
|
1606
|
+
return isConstructorModern(isConstructorModern.call)
|
1607
|
+
|| !isConstructorModern(Object)
|
1608
|
+
|| !isConstructorModern(function () { called = true; })
|
1609
|
+
|| called;
|
1610
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
1611
|
+
|
1186
1612
|
var SPECIES$1 = wellKnownSymbol('species');
|
1613
|
+
var Array$1 = global_1.Array;
|
1187
1614
|
|
1188
|
-
// `ArraySpeciesCreate` abstract operation
|
1615
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
1189
1616
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1190
|
-
var
|
1617
|
+
var arraySpeciesConstructor = function (originalArray) {
|
1191
1618
|
var C;
|
1192
1619
|
if (isArray(originalArray)) {
|
1193
1620
|
C = originalArray.constructor;
|
1194
1621
|
// cross-realm fallback
|
1195
|
-
if (
|
1622
|
+
if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
|
1196
1623
|
else if (isObject(C)) {
|
1197
1624
|
C = C[SPECIES$1];
|
1198
1625
|
if (C === null) C = undefined;
|
1199
1626
|
}
|
1200
|
-
} return
|
1627
|
+
} return C === undefined ? Array$1 : C;
|
1628
|
+
};
|
1629
|
+
|
1630
|
+
// `ArraySpeciesCreate` abstract operation
|
1631
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1632
|
+
var arraySpeciesCreate = function (originalArray, length) {
|
1633
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
1201
1634
|
};
|
1202
1635
|
|
1203
1636
|
var SPECIES = wellKnownSymbol('species');
|
@@ -1219,6 +1652,7 @@
|
|
1219
1652
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
1220
1653
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
1221
1654
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1655
|
+
var TypeError$1 = global_1.TypeError;
|
1222
1656
|
|
1223
1657
|
// We can't use this feature detection in V8 since it causes
|
1224
1658
|
// deoptimization and serious performance degradation
|
@@ -1252,11 +1686,11 @@
|
|
1252
1686
|
for (i = -1, length = arguments.length; i < length; i++) {
|
1253
1687
|
E = i === -1 ? O : arguments[i];
|
1254
1688
|
if (isConcatSpreadable(E)) {
|
1255
|
-
len =
|
1256
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1689
|
+
len = lengthOfArrayLike(E);
|
1690
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1257
1691
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
1258
1692
|
} else {
|
1259
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1693
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1260
1694
|
createProperty(A, n++, E);
|
1261
1695
|
}
|
1262
1696
|
}
|
@@ -1461,7 +1895,7 @@
|
|
1461
1895
|
const __vue_script__ = script;
|
1462
1896
|
|
1463
1897
|
/* template */
|
1464
|
-
var __vue_render__ = function() {
|
1898
|
+
var __vue_render__ = function () {
|
1465
1899
|
var _vm = this;
|
1466
1900
|
var _h = _vm.$createElement;
|
1467
1901
|
var _c = _vm._self._c || _h;
|
@@ -1501,4 +1935,4 @@
|
|
1501
1935
|
|
1502
1936
|
return __vue_component__;
|
1503
1937
|
|
1504
|
-
}))
|
1938
|
+
}));
|