bootstrap-table-rails 1.20.1 → 1.20.2
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.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/bootstrap-table-rails/version.rb +1 -1
- data/vendor/assets/javascripts/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +1117 -898
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +31 -1773
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +31 -1773
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +1 -1
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +1337 -773
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +795 -462
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +570 -304
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +861 -479
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +584 -310
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +599 -318
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +720 -403
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +1107 -736
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +1322 -754
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +918 -515
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +592 -318
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +700 -373
- data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +642 -356
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +600 -320
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +739 -395
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +543 -290
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +548 -291
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +719 -385
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +592 -318
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +492 -261
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +543 -290
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +754 -418
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +551 -290
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +543 -291
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +543 -291
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +543 -291
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +543 -291
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +543 -291
- metadata +1 -1
data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
|
|
5
|
-
})(this, (function (
|
|
5
|
+
})(this, (function ($$b) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
-
var $__default = /*#__PURE__*/_interopDefaultLegacy(
|
|
9
|
+
var $__default = /*#__PURE__*/_interopDefaultLegacy($$b);
|
|
10
10
|
|
|
11
11
|
function _classCallCheck(instance, Constructor) {
|
|
12
12
|
if (!(instance instanceof Constructor)) {
|
|
@@ -281,16 +281,12 @@
|
|
|
281
281
|
|
|
282
282
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
283
283
|
|
|
284
|
-
function createCommonjsModule(fn, module) {
|
|
285
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
284
|
var check = function (it) {
|
|
289
285
|
return it && it.Math == Math && it;
|
|
290
286
|
};
|
|
291
287
|
|
|
292
288
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
293
|
-
var
|
|
289
|
+
var global$u =
|
|
294
290
|
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
295
291
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
296
292
|
check(typeof window == 'object' && window) ||
|
|
@@ -300,7 +296,9 @@
|
|
|
300
296
|
// eslint-disable-next-line no-new-func -- fallback
|
|
301
297
|
(function () { return this; })() || Function('return this')();
|
|
302
298
|
|
|
303
|
-
var
|
|
299
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
300
|
+
|
|
301
|
+
var fails$j = function (exec) {
|
|
304
302
|
try {
|
|
305
303
|
return !!exec();
|
|
306
304
|
} catch (error) {
|
|
@@ -308,25 +306,33 @@
|
|
|
308
306
|
}
|
|
309
307
|
};
|
|
310
308
|
|
|
309
|
+
var fails$i = fails$j;
|
|
310
|
+
|
|
311
311
|
// Detect IE8's incomplete defineProperty implementation
|
|
312
|
-
var descriptors = !fails(function () {
|
|
312
|
+
var descriptors = !fails$i(function () {
|
|
313
313
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
314
314
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
315
315
|
});
|
|
316
316
|
|
|
317
|
-
var
|
|
317
|
+
var fails$h = fails$j;
|
|
318
|
+
|
|
319
|
+
var functionBindNative = !fails$h(function () {
|
|
318
320
|
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
319
321
|
var test = (function () { /* empty */ }).bind();
|
|
320
322
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
321
323
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
322
324
|
});
|
|
323
325
|
|
|
324
|
-
var
|
|
326
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
325
327
|
|
|
326
|
-
var
|
|
327
|
-
|
|
328
|
+
var call$8 = Function.prototype.call;
|
|
329
|
+
|
|
330
|
+
var functionCall = NATIVE_BIND$2 ? call$8.bind(call$8) : function () {
|
|
331
|
+
return call$8.apply(call$8, arguments);
|
|
328
332
|
};
|
|
329
333
|
|
|
334
|
+
var objectPropertyIsEnumerable = {};
|
|
335
|
+
|
|
330
336
|
var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
|
|
331
337
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
332
338
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
@@ -336,16 +342,12 @@
|
|
|
336
342
|
|
|
337
343
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
338
344
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
339
|
-
|
|
345
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
340
346
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
341
347
|
return !!descriptor && descriptor.enumerable;
|
|
342
348
|
} : $propertyIsEnumerable$1;
|
|
343
349
|
|
|
344
|
-
var
|
|
345
|
-
f: f$5
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
var createPropertyDescriptor = function (bitmap, value) {
|
|
350
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
349
351
|
return {
|
|
350
352
|
enumerable: !(bitmap & 1),
|
|
351
353
|
configurable: !(bitmap & 2),
|
|
@@ -354,79 +356,102 @@
|
|
|
354
356
|
};
|
|
355
357
|
};
|
|
356
358
|
|
|
359
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
360
|
+
|
|
357
361
|
var FunctionPrototype$1 = Function.prototype;
|
|
358
|
-
var bind$
|
|
359
|
-
var call = FunctionPrototype$1.call;
|
|
360
|
-
var uncurryThis =
|
|
362
|
+
var bind$2 = FunctionPrototype$1.bind;
|
|
363
|
+
var call$7 = FunctionPrototype$1.call;
|
|
364
|
+
var uncurryThis$k = NATIVE_BIND$1 && bind$2.bind(call$7, call$7);
|
|
361
365
|
|
|
362
|
-
var functionUncurryThis =
|
|
363
|
-
return fn && uncurryThis(fn);
|
|
366
|
+
var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
|
|
367
|
+
return fn && uncurryThis$k(fn);
|
|
364
368
|
} : function (fn) {
|
|
365
369
|
return fn && function () {
|
|
366
|
-
return call.apply(fn, arguments);
|
|
370
|
+
return call$7.apply(fn, arguments);
|
|
367
371
|
};
|
|
368
372
|
};
|
|
369
373
|
|
|
370
|
-
var
|
|
371
|
-
|
|
374
|
+
var uncurryThis$j = functionUncurryThis;
|
|
375
|
+
|
|
376
|
+
var toString$7 = uncurryThis$j({}.toString);
|
|
377
|
+
var stringSlice$1 = uncurryThis$j(''.slice);
|
|
372
378
|
|
|
373
|
-
var classofRaw = function (it) {
|
|
374
|
-
return stringSlice$1(toString$
|
|
379
|
+
var classofRaw$1 = function (it) {
|
|
380
|
+
return stringSlice$1(toString$7(it), 8, -1);
|
|
375
381
|
};
|
|
376
382
|
|
|
377
|
-
var
|
|
378
|
-
var
|
|
383
|
+
var global$t = global$u;
|
|
384
|
+
var uncurryThis$i = functionUncurryThis;
|
|
385
|
+
var fails$g = fails$j;
|
|
386
|
+
var classof$7 = classofRaw$1;
|
|
387
|
+
|
|
388
|
+
var Object$4 = global$t.Object;
|
|
389
|
+
var split = uncurryThis$i(''.split);
|
|
379
390
|
|
|
380
391
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
381
|
-
var indexedObject = fails(function () {
|
|
392
|
+
var indexedObject = fails$g(function () {
|
|
382
393
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
383
394
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
384
395
|
return !Object$4('z').propertyIsEnumerable(0);
|
|
385
396
|
}) ? function (it) {
|
|
386
|
-
return
|
|
397
|
+
return classof$7(it) == 'String' ? split(it, '') : Object$4(it);
|
|
387
398
|
} : Object$4;
|
|
388
399
|
|
|
389
|
-
var
|
|
400
|
+
var global$s = global$u;
|
|
401
|
+
|
|
402
|
+
var TypeError$a = global$s.TypeError;
|
|
390
403
|
|
|
391
404
|
// `RequireObjectCoercible` abstract operation
|
|
392
405
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
393
|
-
var requireObjectCoercible = function (it) {
|
|
406
|
+
var requireObjectCoercible$5 = function (it) {
|
|
394
407
|
if (it == undefined) throw TypeError$a("Can't call method on " + it);
|
|
395
408
|
return it;
|
|
396
409
|
};
|
|
397
410
|
|
|
398
411
|
// toObject with fallback for non-array-like ES3 strings
|
|
412
|
+
var IndexedObject$3 = indexedObject;
|
|
413
|
+
var requireObjectCoercible$4 = requireObjectCoercible$5;
|
|
399
414
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
var toIndexedObject = function (it) {
|
|
403
|
-
return indexedObject(requireObjectCoercible(it));
|
|
415
|
+
var toIndexedObject$6 = function (it) {
|
|
416
|
+
return IndexedObject$3(requireObjectCoercible$4(it));
|
|
404
417
|
};
|
|
405
418
|
|
|
406
419
|
// `IsCallable` abstract operation
|
|
407
420
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
408
|
-
var isCallable = function (argument) {
|
|
421
|
+
var isCallable$d = function (argument) {
|
|
409
422
|
return typeof argument == 'function';
|
|
410
423
|
};
|
|
411
424
|
|
|
412
|
-
var
|
|
413
|
-
|
|
425
|
+
var isCallable$c = isCallable$d;
|
|
426
|
+
|
|
427
|
+
var isObject$8 = function (it) {
|
|
428
|
+
return typeof it == 'object' ? it !== null : isCallable$c(it);
|
|
414
429
|
};
|
|
415
430
|
|
|
431
|
+
var global$r = global$u;
|
|
432
|
+
var isCallable$b = isCallable$d;
|
|
433
|
+
|
|
416
434
|
var aFunction = function (argument) {
|
|
417
|
-
return isCallable(argument) ? argument : undefined;
|
|
435
|
+
return isCallable$b(argument) ? argument : undefined;
|
|
418
436
|
};
|
|
419
437
|
|
|
420
|
-
var getBuiltIn = function (namespace, method) {
|
|
421
|
-
return arguments.length < 2 ? aFunction(
|
|
438
|
+
var getBuiltIn$5 = function (namespace, method) {
|
|
439
|
+
return arguments.length < 2 ? aFunction(global$r[namespace]) : global$r[namespace] && global$r[namespace][method];
|
|
422
440
|
};
|
|
423
441
|
|
|
424
|
-
var
|
|
442
|
+
var uncurryThis$h = functionUncurryThis;
|
|
443
|
+
|
|
444
|
+
var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
|
|
425
445
|
|
|
426
|
-
var
|
|
446
|
+
var getBuiltIn$4 = getBuiltIn$5;
|
|
427
447
|
|
|
428
|
-
var
|
|
429
|
-
|
|
448
|
+
var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
|
|
449
|
+
|
|
450
|
+
var global$q = global$u;
|
|
451
|
+
var userAgent = engineUserAgent;
|
|
452
|
+
|
|
453
|
+
var process = global$q.process;
|
|
454
|
+
var Deno = global$q.Deno;
|
|
430
455
|
var versions = process && process.versions || Deno && Deno.version;
|
|
431
456
|
var v8 = versions && versions.v8;
|
|
432
457
|
var match, version;
|
|
@@ -440,10 +465,10 @@
|
|
|
440
465
|
|
|
441
466
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
442
467
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
443
|
-
if (!version &&
|
|
444
|
-
match =
|
|
468
|
+
if (!version && userAgent) {
|
|
469
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
445
470
|
if (!match || match[1] >= 74) {
|
|
446
|
-
match =
|
|
471
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
447
472
|
if (match) version = +match[1];
|
|
448
473
|
}
|
|
449
474
|
}
|
|
@@ -452,37 +477,47 @@
|
|
|
452
477
|
|
|
453
478
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
454
479
|
|
|
455
|
-
|
|
480
|
+
var V8_VERSION$2 = engineV8Version;
|
|
481
|
+
var fails$f = fails$j;
|
|
456
482
|
|
|
457
483
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
458
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
484
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$f(function () {
|
|
459
485
|
var symbol = Symbol();
|
|
460
486
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
461
487
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
462
488
|
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
463
489
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
464
|
-
!Symbol.sham &&
|
|
490
|
+
!Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
|
|
465
491
|
});
|
|
466
492
|
|
|
467
493
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
468
494
|
|
|
495
|
+
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
469
496
|
|
|
470
|
-
var useSymbolAsUid =
|
|
497
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
471
498
|
&& !Symbol.sham
|
|
472
499
|
&& typeof Symbol.iterator == 'symbol';
|
|
473
500
|
|
|
474
|
-
var
|
|
501
|
+
var global$p = global$u;
|
|
502
|
+
var getBuiltIn$3 = getBuiltIn$5;
|
|
503
|
+
var isCallable$a = isCallable$d;
|
|
504
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
505
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
475
506
|
|
|
476
|
-
var
|
|
507
|
+
var Object$3 = global$p.Object;
|
|
508
|
+
|
|
509
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
477
510
|
return typeof it == 'symbol';
|
|
478
511
|
} : function (it) {
|
|
479
|
-
var $Symbol = getBuiltIn('Symbol');
|
|
480
|
-
return isCallable($Symbol) &&
|
|
512
|
+
var $Symbol = getBuiltIn$3('Symbol');
|
|
513
|
+
return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
|
|
481
514
|
};
|
|
482
515
|
|
|
483
|
-
var
|
|
516
|
+
var global$o = global$u;
|
|
517
|
+
|
|
518
|
+
var String$3 = global$o.String;
|
|
484
519
|
|
|
485
|
-
var tryToString = function (argument) {
|
|
520
|
+
var tryToString$1 = function (argument) {
|
|
486
521
|
try {
|
|
487
522
|
return String$3(argument);
|
|
488
523
|
} catch (error) {
|
|
@@ -490,97 +525,130 @@
|
|
|
490
525
|
}
|
|
491
526
|
};
|
|
492
527
|
|
|
493
|
-
var
|
|
528
|
+
var global$n = global$u;
|
|
529
|
+
var isCallable$9 = isCallable$d;
|
|
530
|
+
var tryToString = tryToString$1;
|
|
531
|
+
|
|
532
|
+
var TypeError$9 = global$n.TypeError;
|
|
494
533
|
|
|
495
534
|
// `Assert: IsCallable(argument) is true`
|
|
496
|
-
var aCallable = function (argument) {
|
|
497
|
-
if (isCallable(argument)) return argument;
|
|
535
|
+
var aCallable$2 = function (argument) {
|
|
536
|
+
if (isCallable$9(argument)) return argument;
|
|
498
537
|
throw TypeError$9(tryToString(argument) + ' is not a function');
|
|
499
538
|
};
|
|
500
539
|
|
|
540
|
+
var aCallable$1 = aCallable$2;
|
|
541
|
+
|
|
501
542
|
// `GetMethod` abstract operation
|
|
502
543
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
503
|
-
var getMethod = function (V, P) {
|
|
544
|
+
var getMethod$2 = function (V, P) {
|
|
504
545
|
var func = V[P];
|
|
505
|
-
return func == null ? undefined : aCallable(func);
|
|
546
|
+
return func == null ? undefined : aCallable$1(func);
|
|
506
547
|
};
|
|
507
548
|
|
|
508
|
-
var
|
|
549
|
+
var global$m = global$u;
|
|
550
|
+
var call$6 = functionCall;
|
|
551
|
+
var isCallable$8 = isCallable$d;
|
|
552
|
+
var isObject$7 = isObject$8;
|
|
553
|
+
|
|
554
|
+
var TypeError$8 = global$m.TypeError;
|
|
509
555
|
|
|
510
556
|
// `OrdinaryToPrimitive` abstract operation
|
|
511
557
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
512
|
-
var ordinaryToPrimitive = function (input, pref) {
|
|
558
|
+
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
513
559
|
var fn, val;
|
|
514
|
-
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val =
|
|
515
|
-
if (isCallable(fn = input.valueOf) && !isObject(val =
|
|
516
|
-
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val =
|
|
560
|
+
if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$7(val = call$6(fn, input))) return val;
|
|
561
|
+
if (isCallable$8(fn = input.valueOf) && !isObject$7(val = call$6(fn, input))) return val;
|
|
562
|
+
if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$7(val = call$6(fn, input))) return val;
|
|
517
563
|
throw TypeError$8("Can't convert object to primitive value");
|
|
518
564
|
};
|
|
519
565
|
|
|
566
|
+
var shared$4 = {exports: {}};
|
|
567
|
+
|
|
568
|
+
var global$l = global$u;
|
|
569
|
+
|
|
520
570
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
521
|
-
var defineProperty$
|
|
571
|
+
var defineProperty$2 = Object.defineProperty;
|
|
522
572
|
|
|
523
|
-
var setGlobal = function (key, value) {
|
|
573
|
+
var setGlobal$3 = function (key, value) {
|
|
524
574
|
try {
|
|
525
|
-
defineProperty$
|
|
575
|
+
defineProperty$2(global$l, key, { value: value, configurable: true, writable: true });
|
|
526
576
|
} catch (error) {
|
|
527
|
-
|
|
577
|
+
global$l[key] = value;
|
|
528
578
|
} return value;
|
|
529
579
|
};
|
|
530
580
|
|
|
581
|
+
var global$k = global$u;
|
|
582
|
+
var setGlobal$2 = setGlobal$3;
|
|
583
|
+
|
|
531
584
|
var SHARED = '__core-js_shared__';
|
|
532
|
-
var store$
|
|
585
|
+
var store$3 = global$k[SHARED] || setGlobal$2(SHARED, {});
|
|
586
|
+
|
|
587
|
+
var sharedStore = store$3;
|
|
533
588
|
|
|
534
|
-
var
|
|
589
|
+
var store$2 = sharedStore;
|
|
535
590
|
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
591
|
+
(shared$4.exports = function (key, value) {
|
|
592
|
+
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
539
593
|
})('versions', []).push({
|
|
540
|
-
version: '3.22.
|
|
594
|
+
version: '3.22.5',
|
|
541
595
|
mode: 'global',
|
|
542
596
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
543
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.22.
|
|
597
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE',
|
|
544
598
|
source: 'https://github.com/zloirock/core-js'
|
|
545
599
|
});
|
|
546
|
-
});
|
|
547
600
|
|
|
548
|
-
var
|
|
601
|
+
var global$j = global$u;
|
|
602
|
+
var requireObjectCoercible$3 = requireObjectCoercible$5;
|
|
603
|
+
|
|
604
|
+
var Object$2 = global$j.Object;
|
|
549
605
|
|
|
550
606
|
// `ToObject` abstract operation
|
|
551
607
|
// https://tc39.es/ecma262/#sec-toobject
|
|
552
|
-
var toObject = function (argument) {
|
|
553
|
-
return Object$2(requireObjectCoercible(argument));
|
|
608
|
+
var toObject$4 = function (argument) {
|
|
609
|
+
return Object$2(requireObjectCoercible$3(argument));
|
|
554
610
|
};
|
|
555
611
|
|
|
556
|
-
var
|
|
612
|
+
var uncurryThis$g = functionUncurryThis;
|
|
613
|
+
var toObject$3 = toObject$4;
|
|
614
|
+
|
|
615
|
+
var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
|
|
557
616
|
|
|
558
617
|
// `HasOwnProperty` abstract operation
|
|
559
618
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
560
619
|
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
561
620
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
562
|
-
return hasOwnProperty(toObject(it), key);
|
|
621
|
+
return hasOwnProperty(toObject$3(it), key);
|
|
563
622
|
};
|
|
564
623
|
|
|
624
|
+
var uncurryThis$f = functionUncurryThis;
|
|
625
|
+
|
|
565
626
|
var id = 0;
|
|
566
627
|
var postfix = Math.random();
|
|
567
|
-
var toString =
|
|
628
|
+
var toString$6 = uncurryThis$f(1.0.toString);
|
|
568
629
|
|
|
569
|
-
var uid = function (key) {
|
|
570
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
630
|
+
var uid$2 = function (key) {
|
|
631
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
|
|
571
632
|
};
|
|
572
633
|
|
|
573
|
-
var
|
|
574
|
-
var
|
|
634
|
+
var global$i = global$u;
|
|
635
|
+
var shared$3 = shared$4.exports;
|
|
636
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
637
|
+
var uid$1 = uid$2;
|
|
638
|
+
var NATIVE_SYMBOL = nativeSymbol;
|
|
639
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
640
|
+
|
|
641
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
642
|
+
var Symbol$1 = global$i.Symbol;
|
|
575
643
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
576
|
-
var createWellKnownSymbol =
|
|
644
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
577
645
|
|
|
578
|
-
var wellKnownSymbol = function (name) {
|
|
579
|
-
if (!
|
|
646
|
+
var wellKnownSymbol$a = function (name) {
|
|
647
|
+
if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
580
648
|
var description = 'Symbol.' + name;
|
|
581
|
-
if (
|
|
649
|
+
if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
|
|
582
650
|
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
583
|
-
} else if (
|
|
651
|
+
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
584
652
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
585
653
|
} else {
|
|
586
654
|
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
@@ -588,69 +656,97 @@
|
|
|
588
656
|
} return WellKnownSymbolsStore[name];
|
|
589
657
|
};
|
|
590
658
|
|
|
591
|
-
var
|
|
592
|
-
var
|
|
659
|
+
var global$h = global$u;
|
|
660
|
+
var call$5 = functionCall;
|
|
661
|
+
var isObject$6 = isObject$8;
|
|
662
|
+
var isSymbol$1 = isSymbol$2;
|
|
663
|
+
var getMethod$1 = getMethod$2;
|
|
664
|
+
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
665
|
+
var wellKnownSymbol$9 = wellKnownSymbol$a;
|
|
666
|
+
|
|
667
|
+
var TypeError$7 = global$h.TypeError;
|
|
668
|
+
var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
|
|
593
669
|
|
|
594
670
|
// `ToPrimitive` abstract operation
|
|
595
671
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
596
|
-
var toPrimitive = function (input, pref) {
|
|
597
|
-
if (!isObject(input) || isSymbol(input)) return input;
|
|
598
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
672
|
+
var toPrimitive$1 = function (input, pref) {
|
|
673
|
+
if (!isObject$6(input) || isSymbol$1(input)) return input;
|
|
674
|
+
var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
|
|
599
675
|
var result;
|
|
600
676
|
if (exoticToPrim) {
|
|
601
677
|
if (pref === undefined) pref = 'default';
|
|
602
|
-
result =
|
|
603
|
-
if (!isObject(result) || isSymbol(result)) return result;
|
|
678
|
+
result = call$5(exoticToPrim, input, pref);
|
|
679
|
+
if (!isObject$6(result) || isSymbol$1(result)) return result;
|
|
604
680
|
throw TypeError$7("Can't convert object to primitive value");
|
|
605
681
|
}
|
|
606
682
|
if (pref === undefined) pref = 'number';
|
|
607
683
|
return ordinaryToPrimitive(input, pref);
|
|
608
684
|
};
|
|
609
685
|
|
|
686
|
+
var toPrimitive = toPrimitive$1;
|
|
687
|
+
var isSymbol = isSymbol$2;
|
|
688
|
+
|
|
610
689
|
// `ToPropertyKey` abstract operation
|
|
611
690
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
612
|
-
var toPropertyKey = function (argument) {
|
|
691
|
+
var toPropertyKey$3 = function (argument) {
|
|
613
692
|
var key = toPrimitive(argument, 'string');
|
|
614
693
|
return isSymbol(key) ? key : key + '';
|
|
615
694
|
};
|
|
616
695
|
|
|
617
|
-
var
|
|
696
|
+
var global$g = global$u;
|
|
697
|
+
var isObject$5 = isObject$8;
|
|
698
|
+
|
|
699
|
+
var document$1 = global$g.document;
|
|
618
700
|
// typeof document.createElement is 'object' in old IE
|
|
619
|
-
var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
|
|
701
|
+
var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
|
|
620
702
|
|
|
621
|
-
var documentCreateElement = function (it) {
|
|
703
|
+
var documentCreateElement$1 = function (it) {
|
|
622
704
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
623
705
|
};
|
|
624
706
|
|
|
707
|
+
var DESCRIPTORS$9 = descriptors;
|
|
708
|
+
var fails$e = fails$j;
|
|
709
|
+
var createElement = documentCreateElement$1;
|
|
710
|
+
|
|
625
711
|
// Thanks to IE8 for its funny defineProperty
|
|
626
|
-
var ie8DomDefine = !
|
|
712
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$e(function () {
|
|
627
713
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
628
|
-
return Object.defineProperty(
|
|
714
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
|
629
715
|
get: function () { return 7; }
|
|
630
716
|
}).a != 7;
|
|
631
717
|
});
|
|
632
718
|
|
|
719
|
+
var DESCRIPTORS$8 = descriptors;
|
|
720
|
+
var call$4 = functionCall;
|
|
721
|
+
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
722
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
723
|
+
var toIndexedObject$5 = toIndexedObject$6;
|
|
724
|
+
var toPropertyKey$2 = toPropertyKey$3;
|
|
725
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
726
|
+
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
727
|
+
|
|
633
728
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
634
729
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
635
730
|
|
|
636
731
|
// `Object.getOwnPropertyDescriptor` method
|
|
637
732
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
638
|
-
|
|
639
|
-
O = toIndexedObject(O);
|
|
640
|
-
P = toPropertyKey(P);
|
|
641
|
-
if (
|
|
733
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
734
|
+
O = toIndexedObject$5(O);
|
|
735
|
+
P = toPropertyKey$2(P);
|
|
736
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
642
737
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
643
738
|
} catch (error) { /* empty */ }
|
|
644
|
-
if (
|
|
739
|
+
if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$4(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
645
740
|
};
|
|
646
741
|
|
|
647
|
-
var
|
|
648
|
-
|
|
649
|
-
|
|
742
|
+
var objectDefineProperty = {};
|
|
743
|
+
|
|
744
|
+
var DESCRIPTORS$7 = descriptors;
|
|
745
|
+
var fails$d = fails$j;
|
|
650
746
|
|
|
651
747
|
// V8 ~ Chrome 36-
|
|
652
748
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
653
|
-
var v8PrototypeDefineBug =
|
|
749
|
+
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$d(function () {
|
|
654
750
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
655
751
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
656
752
|
value: 42,
|
|
@@ -658,16 +754,26 @@
|
|
|
658
754
|
}).prototype != 42;
|
|
659
755
|
});
|
|
660
756
|
|
|
661
|
-
var
|
|
662
|
-
var
|
|
757
|
+
var global$f = global$u;
|
|
758
|
+
var isObject$4 = isObject$8;
|
|
759
|
+
|
|
760
|
+
var String$2 = global$f.String;
|
|
761
|
+
var TypeError$6 = global$f.TypeError;
|
|
663
762
|
|
|
664
763
|
// `Assert: Type(argument) is Object`
|
|
665
|
-
var anObject = function (argument) {
|
|
666
|
-
if (isObject(argument)) return argument;
|
|
764
|
+
var anObject$7 = function (argument) {
|
|
765
|
+
if (isObject$4(argument)) return argument;
|
|
667
766
|
throw TypeError$6(String$2(argument) + ' is not an object');
|
|
668
767
|
};
|
|
669
768
|
|
|
670
|
-
var
|
|
769
|
+
var global$e = global$u;
|
|
770
|
+
var DESCRIPTORS$6 = descriptors;
|
|
771
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
772
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
773
|
+
var anObject$6 = anObject$7;
|
|
774
|
+
var toPropertyKey$1 = toPropertyKey$3;
|
|
775
|
+
|
|
776
|
+
var TypeError$5 = global$e.TypeError;
|
|
671
777
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
672
778
|
var $defineProperty = Object.defineProperty;
|
|
673
779
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -678,10 +784,10 @@
|
|
|
678
784
|
|
|
679
785
|
// `Object.defineProperty` method
|
|
680
786
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
681
|
-
|
|
682
|
-
anObject(O);
|
|
683
|
-
P = toPropertyKey(P);
|
|
684
|
-
anObject(Attributes);
|
|
787
|
+
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
788
|
+
anObject$6(O);
|
|
789
|
+
P = toPropertyKey$1(P);
|
|
790
|
+
anObject$6(Attributes);
|
|
685
791
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
686
792
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
687
793
|
if (current && current[WRITABLE]) {
|
|
@@ -694,10 +800,10 @@
|
|
|
694
800
|
}
|
|
695
801
|
} return $defineProperty(O, P, Attributes);
|
|
696
802
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
697
|
-
anObject(O);
|
|
698
|
-
P = toPropertyKey(P);
|
|
699
|
-
anObject(Attributes);
|
|
700
|
-
if (
|
|
803
|
+
anObject$6(O);
|
|
804
|
+
P = toPropertyKey$1(P);
|
|
805
|
+
anObject$6(Attributes);
|
|
806
|
+
if (IE8_DOM_DEFINE) try {
|
|
701
807
|
return $defineProperty(O, P, Attributes);
|
|
702
808
|
} catch (error) { /* empty */ }
|
|
703
809
|
if ('get' in Attributes || 'set' in Attributes) throw TypeError$5('Accessors not supported');
|
|
@@ -705,25 +811,30 @@
|
|
|
705
811
|
return O;
|
|
706
812
|
};
|
|
707
813
|
|
|
708
|
-
var
|
|
709
|
-
|
|
710
|
-
|
|
814
|
+
var DESCRIPTORS$5 = descriptors;
|
|
815
|
+
var definePropertyModule$4 = objectDefineProperty;
|
|
816
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
711
817
|
|
|
712
|
-
var createNonEnumerableProperty =
|
|
713
|
-
return
|
|
818
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
819
|
+
return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
|
|
714
820
|
} : function (object, key, value) {
|
|
715
821
|
object[key] = value;
|
|
716
822
|
return object;
|
|
717
823
|
};
|
|
718
824
|
|
|
825
|
+
var makeBuiltIn$2 = {exports: {}};
|
|
826
|
+
|
|
827
|
+
var DESCRIPTORS$4 = descriptors;
|
|
828
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
829
|
+
|
|
719
830
|
var FunctionPrototype = Function.prototype;
|
|
720
831
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
721
|
-
var getDescriptor =
|
|
832
|
+
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
722
833
|
|
|
723
|
-
var EXISTS =
|
|
834
|
+
var EXISTS = hasOwn$4(FunctionPrototype, 'name');
|
|
724
835
|
// additional protection from minified / mangled / dropped function names
|
|
725
836
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
726
|
-
var CONFIGURABLE = EXISTS && (!
|
|
837
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
727
838
|
|
|
728
839
|
var functionName = {
|
|
729
840
|
EXISTS: EXISTS,
|
|
@@ -731,32 +842,53 @@
|
|
|
731
842
|
CONFIGURABLE: CONFIGURABLE
|
|
732
843
|
};
|
|
733
844
|
|
|
734
|
-
var
|
|
845
|
+
var uncurryThis$e = functionUncurryThis;
|
|
846
|
+
var isCallable$7 = isCallable$d;
|
|
847
|
+
var store$1 = sharedStore;
|
|
848
|
+
|
|
849
|
+
var functionToString = uncurryThis$e(Function.toString);
|
|
735
850
|
|
|
736
851
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
737
|
-
if (!isCallable(
|
|
738
|
-
|
|
852
|
+
if (!isCallable$7(store$1.inspectSource)) {
|
|
853
|
+
store$1.inspectSource = function (it) {
|
|
739
854
|
return functionToString(it);
|
|
740
855
|
};
|
|
741
856
|
}
|
|
742
857
|
|
|
743
|
-
var inspectSource =
|
|
858
|
+
var inspectSource$3 = store$1.inspectSource;
|
|
744
859
|
|
|
745
|
-
var
|
|
860
|
+
var global$d = global$u;
|
|
861
|
+
var isCallable$6 = isCallable$d;
|
|
862
|
+
var inspectSource$2 = inspectSource$3;
|
|
746
863
|
|
|
747
|
-
var
|
|
864
|
+
var WeakMap$1 = global$d.WeakMap;
|
|
748
865
|
|
|
749
|
-
var
|
|
866
|
+
var nativeWeakMap = isCallable$6(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
|
|
750
867
|
|
|
751
|
-
var
|
|
868
|
+
var shared$2 = shared$4.exports;
|
|
869
|
+
var uid = uid$2;
|
|
870
|
+
|
|
871
|
+
var keys = shared$2('keys');
|
|
872
|
+
|
|
873
|
+
var sharedKey$2 = function (key) {
|
|
752
874
|
return keys[key] || (keys[key] = uid(key));
|
|
753
875
|
};
|
|
754
876
|
|
|
755
|
-
var hiddenKeys$
|
|
877
|
+
var hiddenKeys$4 = {};
|
|
878
|
+
|
|
879
|
+
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
880
|
+
var global$c = global$u;
|
|
881
|
+
var uncurryThis$d = functionUncurryThis;
|
|
882
|
+
var isObject$3 = isObject$8;
|
|
883
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
884
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
885
|
+
var shared$1 = sharedStore;
|
|
886
|
+
var sharedKey$1 = sharedKey$2;
|
|
887
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
756
888
|
|
|
757
889
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
758
|
-
var TypeError$4 =
|
|
759
|
-
var WeakMap =
|
|
890
|
+
var TypeError$4 = global$c.TypeError;
|
|
891
|
+
var WeakMap = global$c.WeakMap;
|
|
760
892
|
var set, get, has;
|
|
761
893
|
|
|
762
894
|
var enforce = function (it) {
|
|
@@ -766,17 +898,17 @@
|
|
|
766
898
|
var getterFor = function (TYPE) {
|
|
767
899
|
return function (it) {
|
|
768
900
|
var state;
|
|
769
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
901
|
+
if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
|
|
770
902
|
throw TypeError$4('Incompatible receiver, ' + TYPE + ' required');
|
|
771
903
|
} return state;
|
|
772
904
|
};
|
|
773
905
|
};
|
|
774
906
|
|
|
775
|
-
if (
|
|
776
|
-
var store =
|
|
777
|
-
var wmget =
|
|
778
|
-
var wmhas =
|
|
779
|
-
var wmset =
|
|
907
|
+
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
908
|
+
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
909
|
+
var wmget = uncurryThis$d(store.get);
|
|
910
|
+
var wmhas = uncurryThis$d(store.has);
|
|
911
|
+
var wmset = uncurryThis$d(store.set);
|
|
780
912
|
set = function (it, metadata) {
|
|
781
913
|
if (wmhas(store, it)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
782
914
|
metadata.facade = it;
|
|
@@ -790,19 +922,19 @@
|
|
|
790
922
|
return wmhas(store, it);
|
|
791
923
|
};
|
|
792
924
|
} else {
|
|
793
|
-
var STATE = sharedKey('state');
|
|
794
|
-
hiddenKeys$
|
|
925
|
+
var STATE = sharedKey$1('state');
|
|
926
|
+
hiddenKeys$3[STATE] = true;
|
|
795
927
|
set = function (it, metadata) {
|
|
796
|
-
if (
|
|
928
|
+
if (hasOwn$3(it, STATE)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
797
929
|
metadata.facade = it;
|
|
798
|
-
createNonEnumerableProperty(it, STATE, metadata);
|
|
930
|
+
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
799
931
|
return metadata;
|
|
800
932
|
};
|
|
801
933
|
get = function (it) {
|
|
802
|
-
return
|
|
934
|
+
return hasOwn$3(it, STATE) ? it[STATE] : {};
|
|
803
935
|
};
|
|
804
936
|
has = function (it) {
|
|
805
|
-
return
|
|
937
|
+
return hasOwn$3(it, STATE);
|
|
806
938
|
};
|
|
807
939
|
}
|
|
808
940
|
|
|
@@ -814,55 +946,69 @@
|
|
|
814
946
|
getterFor: getterFor
|
|
815
947
|
};
|
|
816
948
|
|
|
817
|
-
var
|
|
818
|
-
var
|
|
949
|
+
var fails$c = fails$j;
|
|
950
|
+
var isCallable$5 = isCallable$d;
|
|
951
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
952
|
+
var DESCRIPTORS$3 = descriptors;
|
|
819
953
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
954
|
+
var inspectSource$1 = inspectSource$3;
|
|
955
|
+
var InternalStateModule = internalState;
|
|
820
956
|
|
|
957
|
+
var enforceInternalState = InternalStateModule.enforce;
|
|
958
|
+
var getInternalState$1 = InternalStateModule.get;
|
|
959
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
960
|
+
var defineProperty$1 = Object.defineProperty;
|
|
821
961
|
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
var getInternalState = internalState.get;
|
|
825
|
-
|
|
826
|
-
var CONFIGURABLE_LENGTH = !fails(function () {
|
|
827
|
-
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
962
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$c(function () {
|
|
963
|
+
return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
828
964
|
});
|
|
829
965
|
|
|
830
966
|
var TEMPLATE = String(String).split('String');
|
|
831
967
|
|
|
832
|
-
var makeBuiltIn =
|
|
968
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
833
969
|
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
834
970
|
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
835
971
|
}
|
|
836
972
|
if (options && options.getter) name = 'get ' + name;
|
|
837
973
|
if (options && options.setter) name = 'set ' + name;
|
|
838
|
-
if (!
|
|
839
|
-
defineProperty(value, 'name', { value: name, configurable: true });
|
|
974
|
+
if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
975
|
+
defineProperty$1(value, 'name', { value: name, configurable: true });
|
|
840
976
|
}
|
|
841
|
-
if (CONFIGURABLE_LENGTH && options &&
|
|
842
|
-
defineProperty(value, 'length', { value: options.arity });
|
|
977
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
|
|
978
|
+
defineProperty$1(value, 'length', { value: options.arity });
|
|
843
979
|
}
|
|
980
|
+
if (options && hasOwn$2(options, 'constructor') && options.constructor) {
|
|
981
|
+
if (DESCRIPTORS$3) try {
|
|
982
|
+
defineProperty$1(value, 'prototype', { writable: false });
|
|
983
|
+
} catch (error) { /* empty */ }
|
|
984
|
+
} else value.prototype = undefined;
|
|
844
985
|
var state = enforceInternalState(value);
|
|
845
|
-
if (!
|
|
986
|
+
if (!hasOwn$2(state, 'source')) {
|
|
846
987
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
847
988
|
} return value;
|
|
848
989
|
};
|
|
849
990
|
|
|
850
991
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
851
992
|
// eslint-disable-next-line no-extend-native -- required
|
|
852
|
-
Function.prototype.toString = makeBuiltIn(function toString() {
|
|
853
|
-
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
|
993
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
994
|
+
return isCallable$5(this) && getInternalState$1(this).source || inspectSource$1(this);
|
|
854
995
|
}, 'toString');
|
|
855
|
-
});
|
|
856
996
|
|
|
857
|
-
var
|
|
997
|
+
var global$b = global$u;
|
|
998
|
+
var isCallable$4 = isCallable$d;
|
|
999
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
1000
|
+
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
1001
|
+
var setGlobal$1 = setGlobal$3;
|
|
1002
|
+
|
|
1003
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
858
1004
|
var unsafe = options ? !!options.unsafe : false;
|
|
859
1005
|
var simple = options ? !!options.enumerable : false;
|
|
860
1006
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
861
1007
|
var name = options && options.name !== undefined ? options.name : key;
|
|
862
|
-
if (isCallable(value))
|
|
863
|
-
if (O ===
|
|
1008
|
+
if (isCallable$4(value)) makeBuiltIn(value, name, options);
|
|
1009
|
+
if (O === global$b) {
|
|
864
1010
|
if (simple) O[key] = value;
|
|
865
|
-
else setGlobal(key, value);
|
|
1011
|
+
else setGlobal$1(key, value);
|
|
866
1012
|
return O;
|
|
867
1013
|
} else if (!unsafe) {
|
|
868
1014
|
delete O[key];
|
|
@@ -870,51 +1016,63 @@
|
|
|
870
1016
|
simple = true;
|
|
871
1017
|
}
|
|
872
1018
|
if (simple) O[key] = value;
|
|
873
|
-
else createNonEnumerableProperty(O, key, value);
|
|
1019
|
+
else createNonEnumerableProperty$2(O, key, value);
|
|
874
1020
|
return O;
|
|
875
1021
|
};
|
|
876
1022
|
|
|
1023
|
+
var objectGetOwnPropertyNames = {};
|
|
1024
|
+
|
|
877
1025
|
var ceil = Math.ceil;
|
|
878
1026
|
var floor = Math.floor;
|
|
879
1027
|
|
|
880
1028
|
// `ToIntegerOrInfinity` abstract operation
|
|
881
1029
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
882
|
-
var toIntegerOrInfinity = function (argument) {
|
|
1030
|
+
var toIntegerOrInfinity$2 = function (argument) {
|
|
883
1031
|
var number = +argument;
|
|
884
1032
|
// eslint-disable-next-line no-self-compare -- safe
|
|
885
1033
|
return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
|
|
886
1034
|
};
|
|
887
1035
|
|
|
1036
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
1037
|
+
|
|
888
1038
|
var max = Math.max;
|
|
889
1039
|
var min$1 = Math.min;
|
|
890
1040
|
|
|
891
1041
|
// Helper for a popular repeating case of the spec:
|
|
892
1042
|
// Let integer be ? ToInteger(index).
|
|
893
1043
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
894
|
-
var toAbsoluteIndex = function (index, length) {
|
|
895
|
-
var integer = toIntegerOrInfinity(index);
|
|
1044
|
+
var toAbsoluteIndex$1 = function (index, length) {
|
|
1045
|
+
var integer = toIntegerOrInfinity$1(index);
|
|
896
1046
|
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
897
1047
|
};
|
|
898
1048
|
|
|
1049
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
1050
|
+
|
|
899
1051
|
var min = Math.min;
|
|
900
1052
|
|
|
901
1053
|
// `ToLength` abstract operation
|
|
902
1054
|
// https://tc39.es/ecma262/#sec-tolength
|
|
903
|
-
var toLength = function (argument) {
|
|
1055
|
+
var toLength$1 = function (argument) {
|
|
904
1056
|
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
905
1057
|
};
|
|
906
1058
|
|
|
1059
|
+
var toLength = toLength$1;
|
|
1060
|
+
|
|
907
1061
|
// `LengthOfArrayLike` abstract operation
|
|
908
1062
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
909
|
-
var lengthOfArrayLike = function (obj) {
|
|
1063
|
+
var lengthOfArrayLike$3 = function (obj) {
|
|
910
1064
|
return toLength(obj.length);
|
|
911
1065
|
};
|
|
912
1066
|
|
|
1067
|
+
var toIndexedObject$4 = toIndexedObject$6;
|
|
1068
|
+
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
1069
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$3;
|
|
1070
|
+
|
|
913
1071
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
914
1072
|
var createMethod$3 = function (IS_INCLUDES) {
|
|
915
1073
|
return function ($this, el, fromIndex) {
|
|
916
|
-
var O = toIndexedObject($this);
|
|
917
|
-
var length = lengthOfArrayLike(O);
|
|
1074
|
+
var O = toIndexedObject$4($this);
|
|
1075
|
+
var length = lengthOfArrayLike$2(O);
|
|
918
1076
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
919
1077
|
var value;
|
|
920
1078
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -939,26 +1097,29 @@
|
|
|
939
1097
|
indexOf: createMethod$3(false)
|
|
940
1098
|
};
|
|
941
1099
|
|
|
1100
|
+
var uncurryThis$c = functionUncurryThis;
|
|
1101
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1102
|
+
var toIndexedObject$3 = toIndexedObject$6;
|
|
942
1103
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
1104
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
|
943
1105
|
|
|
944
|
-
|
|
945
|
-
var push$2 = functionUncurryThis([].push);
|
|
1106
|
+
var push$2 = uncurryThis$c([].push);
|
|
946
1107
|
|
|
947
1108
|
var objectKeysInternal = function (object, names) {
|
|
948
|
-
var O = toIndexedObject(object);
|
|
1109
|
+
var O = toIndexedObject$3(object);
|
|
949
1110
|
var i = 0;
|
|
950
1111
|
var result = [];
|
|
951
1112
|
var key;
|
|
952
|
-
for (key in O) !
|
|
1113
|
+
for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$2(result, key);
|
|
953
1114
|
// Don't enum bug & hidden keys
|
|
954
|
-
while (names.length > i) if (
|
|
1115
|
+
while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
|
|
955
1116
|
~indexOf$1(result, key) || push$2(result, key);
|
|
956
1117
|
}
|
|
957
1118
|
return result;
|
|
958
1119
|
};
|
|
959
1120
|
|
|
960
1121
|
// IE8- don't enum bug keys
|
|
961
|
-
var enumBugKeys = [
|
|
1122
|
+
var enumBugKeys$3 = [
|
|
962
1123
|
'constructor',
|
|
963
1124
|
'hasOwnProperty',
|
|
964
1125
|
'isPrototypeOf',
|
|
@@ -968,73 +1129,85 @@
|
|
|
968
1129
|
'valueOf'
|
|
969
1130
|
];
|
|
970
1131
|
|
|
971
|
-
var
|
|
1132
|
+
var internalObjectKeys$1 = objectKeysInternal;
|
|
1133
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
|
1134
|
+
|
|
1135
|
+
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
972
1136
|
|
|
973
1137
|
// `Object.getOwnPropertyNames` method
|
|
974
1138
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
975
1139
|
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
976
|
-
|
|
977
|
-
return
|
|
1140
|
+
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
1141
|
+
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
978
1142
|
};
|
|
979
1143
|
|
|
980
|
-
var
|
|
981
|
-
f: f$2
|
|
982
|
-
};
|
|
1144
|
+
var objectGetOwnPropertySymbols = {};
|
|
983
1145
|
|
|
984
1146
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
985
|
-
|
|
1147
|
+
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
986
1148
|
|
|
987
|
-
var
|
|
988
|
-
|
|
989
|
-
|
|
1149
|
+
var getBuiltIn$2 = getBuiltIn$5;
|
|
1150
|
+
var uncurryThis$b = functionUncurryThis;
|
|
1151
|
+
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1152
|
+
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1153
|
+
var anObject$5 = anObject$7;
|
|
990
1154
|
|
|
991
|
-
var concat$1 =
|
|
1155
|
+
var concat$1 = uncurryThis$b([].concat);
|
|
992
1156
|
|
|
993
1157
|
// all object keys, includes non-enumerable and symbols
|
|
994
|
-
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
995
|
-
var keys =
|
|
996
|
-
var getOwnPropertySymbols =
|
|
1158
|
+
var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1159
|
+
var keys = getOwnPropertyNamesModule.f(anObject$5(it));
|
|
1160
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
997
1161
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
998
1162
|
};
|
|
999
1163
|
|
|
1000
|
-
var
|
|
1164
|
+
var hasOwn = hasOwnProperty_1;
|
|
1165
|
+
var ownKeys = ownKeys$1;
|
|
1166
|
+
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1167
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
1168
|
+
|
|
1169
|
+
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
1001
1170
|
var keys = ownKeys(source);
|
|
1002
|
-
var defineProperty =
|
|
1003
|
-
var getOwnPropertyDescriptor =
|
|
1171
|
+
var defineProperty = definePropertyModule$3.f;
|
|
1172
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1004
1173
|
for (var i = 0; i < keys.length; i++) {
|
|
1005
1174
|
var key = keys[i];
|
|
1006
|
-
if (!
|
|
1175
|
+
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
1007
1176
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1008
1177
|
}
|
|
1009
1178
|
}
|
|
1010
1179
|
};
|
|
1011
1180
|
|
|
1181
|
+
var fails$b = fails$j;
|
|
1182
|
+
var isCallable$3 = isCallable$d;
|
|
1183
|
+
|
|
1012
1184
|
var replacement = /#|\.prototype\./;
|
|
1013
1185
|
|
|
1014
|
-
var isForced = function (feature, detection) {
|
|
1186
|
+
var isForced$1 = function (feature, detection) {
|
|
1015
1187
|
var value = data[normalize(feature)];
|
|
1016
1188
|
return value == POLYFILL ? true
|
|
1017
1189
|
: value == NATIVE ? false
|
|
1018
|
-
: isCallable(detection) ? fails(detection)
|
|
1190
|
+
: isCallable$3(detection) ? fails$b(detection)
|
|
1019
1191
|
: !!detection;
|
|
1020
1192
|
};
|
|
1021
1193
|
|
|
1022
|
-
var normalize = isForced.normalize = function (string) {
|
|
1194
|
+
var normalize = isForced$1.normalize = function (string) {
|
|
1023
1195
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
1024
1196
|
};
|
|
1025
1197
|
|
|
1026
|
-
var data = isForced.data = {};
|
|
1027
|
-
var NATIVE = isForced.NATIVE = 'N';
|
|
1028
|
-
var POLYFILL = isForced.POLYFILL = 'P';
|
|
1198
|
+
var data = isForced$1.data = {};
|
|
1199
|
+
var NATIVE = isForced$1.NATIVE = 'N';
|
|
1200
|
+
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
1029
1201
|
|
|
1030
|
-
var isForced_1 = isForced;
|
|
1202
|
+
var isForced_1 = isForced$1;
|
|
1031
1203
|
|
|
1204
|
+
var global$a = global$u;
|
|
1032
1205
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1206
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
1207
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
1208
|
+
var setGlobal = setGlobal$3;
|
|
1209
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1210
|
+
var isForced = isForced_1;
|
|
1038
1211
|
|
|
1039
1212
|
/*
|
|
1040
1213
|
options.target - name of the target object
|
|
@@ -1057,11 +1230,11 @@
|
|
|
1057
1230
|
var STATIC = options.stat;
|
|
1058
1231
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1059
1232
|
if (GLOBAL) {
|
|
1060
|
-
target =
|
|
1233
|
+
target = global$a;
|
|
1061
1234
|
} else if (STATIC) {
|
|
1062
|
-
target =
|
|
1235
|
+
target = global$a[TARGET] || setGlobal(TARGET, {});
|
|
1063
1236
|
} else {
|
|
1064
|
-
target = (
|
|
1237
|
+
target = (global$a[TARGET] || {}).prototype;
|
|
1065
1238
|
}
|
|
1066
1239
|
if (target) for (key in source) {
|
|
1067
1240
|
sourceProperty = source[key];
|
|
@@ -1069,7 +1242,7 @@
|
|
|
1069
1242
|
descriptor = getOwnPropertyDescriptor(target, key);
|
|
1070
1243
|
targetProperty = descriptor && descriptor.value;
|
|
1071
1244
|
} else targetProperty = target[key];
|
|
1072
|
-
FORCED =
|
|
1245
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1073
1246
|
// contained in target
|
|
1074
1247
|
if (!FORCED && targetProperty !== undefined) {
|
|
1075
1248
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
@@ -1077,21 +1250,29 @@
|
|
|
1077
1250
|
}
|
|
1078
1251
|
// add a flag to not completely full polyfills
|
|
1079
1252
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1080
|
-
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
1253
|
+
createNonEnumerableProperty$1(sourceProperty, 'sham', true);
|
|
1081
1254
|
}
|
|
1082
|
-
defineBuiltIn(target, key, sourceProperty, options);
|
|
1255
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
1083
1256
|
}
|
|
1084
1257
|
};
|
|
1085
1258
|
|
|
1086
|
-
var
|
|
1259
|
+
var wellKnownSymbol$8 = wellKnownSymbol$a;
|
|
1260
|
+
|
|
1261
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
|
|
1087
1262
|
var test = {};
|
|
1088
1263
|
|
|
1089
1264
|
test[TO_STRING_TAG$1] = 'z';
|
|
1090
1265
|
|
|
1091
1266
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1092
1267
|
|
|
1093
|
-
var
|
|
1094
|
-
var
|
|
1268
|
+
var global$9 = global$u;
|
|
1269
|
+
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
1270
|
+
var isCallable$2 = isCallable$d;
|
|
1271
|
+
var classofRaw = classofRaw$1;
|
|
1272
|
+
var wellKnownSymbol$7 = wellKnownSymbol$a;
|
|
1273
|
+
|
|
1274
|
+
var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
|
|
1275
|
+
var Object$1 = global$9.Object;
|
|
1095
1276
|
|
|
1096
1277
|
// ES3 wrong here
|
|
1097
1278
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -1104,7 +1285,7 @@
|
|
|
1104
1285
|
};
|
|
1105
1286
|
|
|
1106
1287
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1107
|
-
var classof =
|
|
1288
|
+
var classof$6 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
|
1108
1289
|
var O, tag, result;
|
|
1109
1290
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1110
1291
|
// @@toStringTag case
|
|
@@ -1112,20 +1293,25 @@
|
|
|
1112
1293
|
// builtinTag case
|
|
1113
1294
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1114
1295
|
// ES3 arguments fallback
|
|
1115
|
-
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
1296
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
|
|
1116
1297
|
};
|
|
1117
1298
|
|
|
1118
|
-
var
|
|
1299
|
+
var global$8 = global$u;
|
|
1300
|
+
var classof$5 = classof$6;
|
|
1119
1301
|
|
|
1120
|
-
var
|
|
1121
|
-
|
|
1302
|
+
var String$1 = global$8.String;
|
|
1303
|
+
|
|
1304
|
+
var toString$5 = function (argument) {
|
|
1305
|
+
if (classof$5(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1122
1306
|
return String$1(argument);
|
|
1123
1307
|
};
|
|
1124
1308
|
|
|
1309
|
+
var anObject$4 = anObject$7;
|
|
1310
|
+
|
|
1125
1311
|
// `RegExp.prototype.flags` getter implementation
|
|
1126
1312
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1127
|
-
var regexpFlags = function () {
|
|
1128
|
-
var that = anObject(this);
|
|
1313
|
+
var regexpFlags$1 = function () {
|
|
1314
|
+
var that = anObject$4(this);
|
|
1129
1315
|
var result = '';
|
|
1130
1316
|
if (that.hasIndices) result += 'd';
|
|
1131
1317
|
if (that.global) result += 'g';
|
|
@@ -1137,10 +1323,13 @@
|
|
|
1137
1323
|
return result;
|
|
1138
1324
|
};
|
|
1139
1325
|
|
|
1326
|
+
var fails$a = fails$j;
|
|
1327
|
+
var global$7 = global$u;
|
|
1328
|
+
|
|
1140
1329
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1141
|
-
var $RegExp$2 =
|
|
1330
|
+
var $RegExp$2 = global$7.RegExp;
|
|
1142
1331
|
|
|
1143
|
-
var UNSUPPORTED_Y$1 = fails(function () {
|
|
1332
|
+
var UNSUPPORTED_Y$1 = fails$a(function () {
|
|
1144
1333
|
var re = $RegExp$2('a', 'y');
|
|
1145
1334
|
re.lastIndex = 2;
|
|
1146
1335
|
return re.exec('abcd') != null;
|
|
@@ -1148,11 +1337,11 @@
|
|
|
1148
1337
|
|
|
1149
1338
|
// UC Browser bug
|
|
1150
1339
|
// https://github.com/zloirock/core-js/issues/1008
|
|
1151
|
-
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails(function () {
|
|
1340
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$a(function () {
|
|
1152
1341
|
return !$RegExp$2('a', 'y').sticky;
|
|
1153
1342
|
});
|
|
1154
1343
|
|
|
1155
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails(function () {
|
|
1344
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$a(function () {
|
|
1156
1345
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1157
1346
|
var re = $RegExp$2('^r', 'gy');
|
|
1158
1347
|
re.lastIndex = 2;
|
|
@@ -1165,41 +1354,52 @@
|
|
|
1165
1354
|
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
1166
1355
|
};
|
|
1167
1356
|
|
|
1357
|
+
var objectDefineProperties = {};
|
|
1358
|
+
|
|
1359
|
+
var internalObjectKeys = objectKeysInternal;
|
|
1360
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
1361
|
+
|
|
1168
1362
|
// `Object.keys` method
|
|
1169
1363
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
1170
1364
|
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
1171
|
-
var objectKeys = Object.keys || function keys(O) {
|
|
1172
|
-
return
|
|
1365
|
+
var objectKeys$3 = Object.keys || function keys(O) {
|
|
1366
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
1173
1367
|
};
|
|
1174
1368
|
|
|
1369
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1370
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1371
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
1372
|
+
var anObject$3 = anObject$7;
|
|
1373
|
+
var toIndexedObject$2 = toIndexedObject$6;
|
|
1374
|
+
var objectKeys$2 = objectKeys$3;
|
|
1375
|
+
|
|
1175
1376
|
// `Object.defineProperties` method
|
|
1176
1377
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1177
1378
|
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
1178
|
-
|
|
1179
|
-
anObject(O);
|
|
1180
|
-
var props = toIndexedObject(Properties);
|
|
1181
|
-
var keys = objectKeys(Properties);
|
|
1379
|
+
objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1380
|
+
anObject$3(O);
|
|
1381
|
+
var props = toIndexedObject$2(Properties);
|
|
1382
|
+
var keys = objectKeys$2(Properties);
|
|
1182
1383
|
var length = keys.length;
|
|
1183
1384
|
var index = 0;
|
|
1184
1385
|
var key;
|
|
1185
|
-
while (length > index)
|
|
1386
|
+
while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
|
|
1186
1387
|
return O;
|
|
1187
1388
|
};
|
|
1188
1389
|
|
|
1189
|
-
var
|
|
1190
|
-
f: f
|
|
1191
|
-
};
|
|
1390
|
+
var getBuiltIn$1 = getBuiltIn$5;
|
|
1192
1391
|
|
|
1193
|
-
var html = getBuiltIn('document', 'documentElement');
|
|
1392
|
+
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
1194
1393
|
|
|
1195
1394
|
/* global ActiveXObject -- old IE, WSH */
|
|
1196
1395
|
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1396
|
+
var anObject$2 = anObject$7;
|
|
1397
|
+
var definePropertiesModule = objectDefineProperties;
|
|
1398
|
+
var enumBugKeys = enumBugKeys$3;
|
|
1399
|
+
var hiddenKeys = hiddenKeys$4;
|
|
1400
|
+
var html = html$1;
|
|
1401
|
+
var documentCreateElement = documentCreateElement$1;
|
|
1402
|
+
var sharedKey = sharedKey$2;
|
|
1203
1403
|
|
|
1204
1404
|
var GT = '>';
|
|
1205
1405
|
var LT = '<';
|
|
@@ -1259,7 +1459,7 @@
|
|
|
1259
1459
|
return NullProtoObject();
|
|
1260
1460
|
};
|
|
1261
1461
|
|
|
1262
|
-
hiddenKeys
|
|
1462
|
+
hiddenKeys[IE_PROTO] = true;
|
|
1263
1463
|
|
|
1264
1464
|
// `Object.create` method
|
|
1265
1465
|
// https://tc39.es/ecma262/#sec-object.create
|
|
@@ -1267,27 +1467,33 @@
|
|
|
1267
1467
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1268
1468
|
var result;
|
|
1269
1469
|
if (O !== null) {
|
|
1270
|
-
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
1470
|
+
EmptyConstructor[PROTOTYPE] = anObject$2(O);
|
|
1271
1471
|
result = new EmptyConstructor();
|
|
1272
1472
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1273
1473
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1274
1474
|
result[IE_PROTO] = O;
|
|
1275
1475
|
} else result = NullProtoObject();
|
|
1276
|
-
return Properties === undefined ? result :
|
|
1476
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1277
1477
|
};
|
|
1278
1478
|
|
|
1479
|
+
var fails$9 = fails$j;
|
|
1480
|
+
var global$6 = global$u;
|
|
1481
|
+
|
|
1279
1482
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1280
|
-
var $RegExp$1 =
|
|
1483
|
+
var $RegExp$1 = global$6.RegExp;
|
|
1281
1484
|
|
|
1282
|
-
var regexpUnsupportedDotAll = fails(function () {
|
|
1485
|
+
var regexpUnsupportedDotAll = fails$9(function () {
|
|
1283
1486
|
var re = $RegExp$1('.', 's');
|
|
1284
1487
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
1285
1488
|
});
|
|
1286
1489
|
|
|
1490
|
+
var fails$8 = fails$j;
|
|
1491
|
+
var global$5 = global$u;
|
|
1492
|
+
|
|
1287
1493
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1288
|
-
var $RegExp =
|
|
1494
|
+
var $RegExp = global$5.RegExp;
|
|
1289
1495
|
|
|
1290
|
-
var regexpUnsupportedNcg = fails(function () {
|
|
1496
|
+
var regexpUnsupportedNcg = fails$8(function () {
|
|
1291
1497
|
var re = $RegExp('(?<a>b)', 'g');
|
|
1292
1498
|
return re.exec('b').groups.a !== 'b' ||
|
|
1293
1499
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -1295,58 +1501,58 @@
|
|
|
1295
1501
|
|
|
1296
1502
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1297
1503
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1504
|
+
var call$3 = functionCall;
|
|
1505
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1506
|
+
var toString$4 = toString$5;
|
|
1507
|
+
var regexpFlags = regexpFlags$1;
|
|
1508
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
1509
|
+
var shared = shared$4.exports;
|
|
1510
|
+
var create$1 = objectCreate;
|
|
1305
1511
|
var getInternalState = internalState.get;
|
|
1306
|
-
|
|
1307
|
-
|
|
1512
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
1513
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
1308
1514
|
|
|
1309
1515
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
1310
1516
|
var nativeExec = RegExp.prototype.exec;
|
|
1311
1517
|
var patchedExec = nativeExec;
|
|
1312
|
-
var charAt =
|
|
1313
|
-
var indexOf =
|
|
1314
|
-
var replace$1 =
|
|
1315
|
-
var stringSlice =
|
|
1518
|
+
var charAt = uncurryThis$a(''.charAt);
|
|
1519
|
+
var indexOf = uncurryThis$a(''.indexOf);
|
|
1520
|
+
var replace$1 = uncurryThis$a(''.replace);
|
|
1521
|
+
var stringSlice = uncurryThis$a(''.slice);
|
|
1316
1522
|
|
|
1317
1523
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1318
1524
|
var re1 = /a/;
|
|
1319
1525
|
var re2 = /b*/g;
|
|
1320
|
-
|
|
1321
|
-
|
|
1526
|
+
call$3(nativeExec, re1, 'a');
|
|
1527
|
+
call$3(nativeExec, re2, 'a');
|
|
1322
1528
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1323
1529
|
})();
|
|
1324
1530
|
|
|
1325
|
-
var UNSUPPORTED_Y =
|
|
1531
|
+
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
1326
1532
|
|
|
1327
1533
|
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
1328
1534
|
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
1329
1535
|
|
|
1330
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y ||
|
|
1536
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
1331
1537
|
|
|
1332
1538
|
if (PATCH) {
|
|
1333
1539
|
patchedExec = function exec(string) {
|
|
1334
1540
|
var re = this;
|
|
1335
1541
|
var state = getInternalState(re);
|
|
1336
|
-
var str =
|
|
1542
|
+
var str = toString$4(string);
|
|
1337
1543
|
var raw = state.raw;
|
|
1338
1544
|
var result, reCopy, lastIndex, match, i, object, group;
|
|
1339
1545
|
|
|
1340
1546
|
if (raw) {
|
|
1341
1547
|
raw.lastIndex = re.lastIndex;
|
|
1342
|
-
result =
|
|
1548
|
+
result = call$3(patchedExec, raw, str);
|
|
1343
1549
|
re.lastIndex = raw.lastIndex;
|
|
1344
1550
|
return result;
|
|
1345
1551
|
}
|
|
1346
1552
|
|
|
1347
1553
|
var groups = state.groups;
|
|
1348
1554
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
1349
|
-
var flags =
|
|
1555
|
+
var flags = call$3(regexpFlags, re);
|
|
1350
1556
|
var source = re.source;
|
|
1351
1557
|
var charsAdded = 0;
|
|
1352
1558
|
var strCopy = str;
|
|
@@ -1374,7 +1580,7 @@
|
|
|
1374
1580
|
}
|
|
1375
1581
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1376
1582
|
|
|
1377
|
-
match =
|
|
1583
|
+
match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1378
1584
|
|
|
1379
1585
|
if (sticky) {
|
|
1380
1586
|
if (match) {
|
|
@@ -1389,7 +1595,7 @@
|
|
|
1389
1595
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1390
1596
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1391
1597
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
1392
|
-
|
|
1598
|
+
call$3(nativeReplace, match[0], reCopy, function () {
|
|
1393
1599
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
1394
1600
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
1395
1601
|
}
|
|
@@ -1397,7 +1603,7 @@
|
|
|
1397
1603
|
}
|
|
1398
1604
|
|
|
1399
1605
|
if (match && groups) {
|
|
1400
|
-
match.groups = object =
|
|
1606
|
+
match.groups = object = create$1(null);
|
|
1401
1607
|
for (i = 0; i < groups.length; i++) {
|
|
1402
1608
|
group = groups[i];
|
|
1403
1609
|
object[group[0]] = match[group[1]];
|
|
@@ -1408,37 +1614,40 @@
|
|
|
1408
1614
|
};
|
|
1409
1615
|
}
|
|
1410
1616
|
|
|
1411
|
-
var regexpExec = patchedExec;
|
|
1617
|
+
var regexpExec$2 = patchedExec;
|
|
1618
|
+
|
|
1619
|
+
var $$a = _export;
|
|
1620
|
+
var exec$1 = regexpExec$2;
|
|
1412
1621
|
|
|
1413
1622
|
// `RegExp.prototype.exec` method
|
|
1414
1623
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
1415
|
-
|
|
1416
|
-
exec:
|
|
1624
|
+
$$a({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
|
|
1625
|
+
exec: exec$1
|
|
1417
1626
|
});
|
|
1418
1627
|
|
|
1419
1628
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1420
1629
|
|
|
1630
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1631
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1632
|
+
var regexpExec$1 = regexpExec$2;
|
|
1633
|
+
var fails$7 = fails$j;
|
|
1634
|
+
var wellKnownSymbol$6 = wellKnownSymbol$a;
|
|
1635
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
1421
1636
|
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
var SPECIES$2 = wellKnownSymbol('species');
|
|
1637
|
+
var SPECIES$2 = wellKnownSymbol$6('species');
|
|
1429
1638
|
var RegExpPrototype = RegExp.prototype;
|
|
1430
1639
|
|
|
1431
1640
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
1432
|
-
var SYMBOL = wellKnownSymbol(KEY);
|
|
1641
|
+
var SYMBOL = wellKnownSymbol$6(KEY);
|
|
1433
1642
|
|
|
1434
|
-
var DELEGATES_TO_SYMBOL = !fails(function () {
|
|
1643
|
+
var DELEGATES_TO_SYMBOL = !fails$7(function () {
|
|
1435
1644
|
// String methods call symbol-named RegEp methods
|
|
1436
1645
|
var O = {};
|
|
1437
1646
|
O[SYMBOL] = function () { return 7; };
|
|
1438
1647
|
return ''[KEY](O) != 7;
|
|
1439
1648
|
});
|
|
1440
1649
|
|
|
1441
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
|
1650
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$7(function () {
|
|
1442
1651
|
// Symbol-named RegExp methods call .exec
|
|
1443
1652
|
var execCalled = false;
|
|
1444
1653
|
var re = /a/;
|
|
@@ -1467,11 +1676,11 @@
|
|
|
1467
1676
|
!DELEGATES_TO_EXEC ||
|
|
1468
1677
|
FORCED
|
|
1469
1678
|
) {
|
|
1470
|
-
var uncurriedNativeRegExpMethod =
|
|
1679
|
+
var uncurriedNativeRegExpMethod = uncurryThis$9(/./[SYMBOL]);
|
|
1471
1680
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
1472
|
-
var uncurriedNativeMethod =
|
|
1681
|
+
var uncurriedNativeMethod = uncurryThis$9(nativeMethod);
|
|
1473
1682
|
var $exec = regexp.exec;
|
|
1474
|
-
if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
|
|
1683
|
+
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
1475
1684
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
1476
1685
|
// The native String method already delegates to @@method (this
|
|
1477
1686
|
// polyfilled function), leasing to infinite recursion.
|
|
@@ -1483,8 +1692,8 @@
|
|
|
1483
1692
|
return { done: false };
|
|
1484
1693
|
});
|
|
1485
1694
|
|
|
1486
|
-
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
1487
|
-
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
1695
|
+
defineBuiltIn$1(String.prototype, KEY, methods[0]);
|
|
1696
|
+
defineBuiltIn$1(RegExpPrototype, SYMBOL, methods[1]);
|
|
1488
1697
|
}
|
|
1489
1698
|
|
|
1490
1699
|
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
@@ -1493,65 +1702,91 @@
|
|
|
1493
1702
|
// `SameValue` abstract operation
|
|
1494
1703
|
// https://tc39.es/ecma262/#sec-samevalue
|
|
1495
1704
|
// eslint-disable-next-line es-x/no-object-is -- safe
|
|
1496
|
-
var sameValue = Object.is || function is(x, y) {
|
|
1705
|
+
var sameValue$1 = Object.is || function is(x, y) {
|
|
1497
1706
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
1498
1707
|
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
|
1499
1708
|
};
|
|
1500
1709
|
|
|
1501
|
-
var
|
|
1710
|
+
var global$4 = global$u;
|
|
1711
|
+
var call$2 = functionCall;
|
|
1712
|
+
var anObject$1 = anObject$7;
|
|
1713
|
+
var isCallable$1 = isCallable$d;
|
|
1714
|
+
var classof$4 = classofRaw$1;
|
|
1715
|
+
var regexpExec = regexpExec$2;
|
|
1716
|
+
|
|
1717
|
+
var TypeError$3 = global$4.TypeError;
|
|
1502
1718
|
|
|
1503
1719
|
// `RegExpExec` abstract operation
|
|
1504
1720
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
1505
1721
|
var regexpExecAbstract = function (R, S) {
|
|
1506
1722
|
var exec = R.exec;
|
|
1507
|
-
if (isCallable(exec)) {
|
|
1508
|
-
var result =
|
|
1509
|
-
if (result !== null) anObject(result);
|
|
1723
|
+
if (isCallable$1(exec)) {
|
|
1724
|
+
var result = call$2(exec, R, S);
|
|
1725
|
+
if (result !== null) anObject$1(result);
|
|
1510
1726
|
return result;
|
|
1511
1727
|
}
|
|
1512
|
-
if (
|
|
1728
|
+
if (classof$4(R) === 'RegExp') return call$2(regexpExec, R, S);
|
|
1513
1729
|
throw TypeError$3('RegExp#exec called on incompatible receiver');
|
|
1514
1730
|
};
|
|
1515
1731
|
|
|
1732
|
+
var call$1 = functionCall;
|
|
1733
|
+
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
1734
|
+
var anObject = anObject$7;
|
|
1735
|
+
var requireObjectCoercible$2 = requireObjectCoercible$5;
|
|
1736
|
+
var sameValue = sameValue$1;
|
|
1737
|
+
var toString$3 = toString$5;
|
|
1738
|
+
var getMethod = getMethod$2;
|
|
1739
|
+
var regExpExec = regexpExecAbstract;
|
|
1740
|
+
|
|
1516
1741
|
// @@search logic
|
|
1517
|
-
|
|
1742
|
+
fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
|
|
1518
1743
|
return [
|
|
1519
1744
|
// `String.prototype.search` method
|
|
1520
1745
|
// https://tc39.es/ecma262/#sec-string.prototype.search
|
|
1521
1746
|
function search(regexp) {
|
|
1522
|
-
var O = requireObjectCoercible(this);
|
|
1747
|
+
var O = requireObjectCoercible$2(this);
|
|
1523
1748
|
var searcher = regexp == undefined ? undefined : getMethod(regexp, SEARCH);
|
|
1524
|
-
return searcher ?
|
|
1749
|
+
return searcher ? call$1(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$3(O));
|
|
1525
1750
|
},
|
|
1526
1751
|
// `RegExp.prototype[@@search]` method
|
|
1527
1752
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
|
|
1528
1753
|
function (string) {
|
|
1529
1754
|
var rx = anObject(this);
|
|
1530
|
-
var S =
|
|
1755
|
+
var S = toString$3(string);
|
|
1531
1756
|
var res = maybeCallNative(nativeSearch, rx, S);
|
|
1532
1757
|
|
|
1533
1758
|
if (res.done) return res.value;
|
|
1534
1759
|
|
|
1535
1760
|
var previousLastIndex = rx.lastIndex;
|
|
1536
1761
|
if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
|
|
1537
|
-
var result =
|
|
1762
|
+
var result = regExpExec(rx, S);
|
|
1538
1763
|
if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
|
|
1539
1764
|
return result === null ? -1 : result.index;
|
|
1540
1765
|
}
|
|
1541
1766
|
];
|
|
1542
1767
|
});
|
|
1543
1768
|
|
|
1769
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1770
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
1771
|
+
var call = functionCall;
|
|
1772
|
+
var fails$6 = fails$j;
|
|
1773
|
+
var objectKeys$1 = objectKeys$3;
|
|
1774
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1775
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1776
|
+
var toObject$2 = toObject$4;
|
|
1777
|
+
var IndexedObject$2 = indexedObject;
|
|
1778
|
+
|
|
1544
1779
|
// eslint-disable-next-line es-x/no-object-assign -- safe
|
|
1545
1780
|
var $assign = Object.assign;
|
|
1546
1781
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
1547
1782
|
var defineProperty = Object.defineProperty;
|
|
1548
|
-
var concat =
|
|
1783
|
+
var concat = uncurryThis$8([].concat);
|
|
1549
1784
|
|
|
1550
1785
|
// `Object.assign` method
|
|
1551
1786
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1552
|
-
var objectAssign = !$assign || fails(function () {
|
|
1787
|
+
var objectAssign = !$assign || fails$6(function () {
|
|
1553
1788
|
// should have correct order of operations (Edge bug)
|
|
1554
|
-
if (
|
|
1789
|
+
if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
1555
1790
|
enumerable: true,
|
|
1556
1791
|
get: function () {
|
|
1557
1792
|
defineProperty(this, 'b', {
|
|
@@ -1568,76 +1803,100 @@
|
|
|
1568
1803
|
var alphabet = 'abcdefghijklmnopqrst';
|
|
1569
1804
|
A[symbol] = 7;
|
|
1570
1805
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1571
|
-
return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
|
|
1806
|
+
return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
|
|
1572
1807
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1573
|
-
var T = toObject(target);
|
|
1808
|
+
var T = toObject$2(target);
|
|
1574
1809
|
var argumentsLength = arguments.length;
|
|
1575
1810
|
var index = 1;
|
|
1576
|
-
var getOwnPropertySymbols =
|
|
1577
|
-
var propertyIsEnumerable =
|
|
1811
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1812
|
+
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1578
1813
|
while (argumentsLength > index) {
|
|
1579
|
-
var S =
|
|
1580
|
-
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
1814
|
+
var S = IndexedObject$2(arguments[index++]);
|
|
1815
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
|
1581
1816
|
var length = keys.length;
|
|
1582
1817
|
var j = 0;
|
|
1583
1818
|
var key;
|
|
1584
1819
|
while (length > j) {
|
|
1585
1820
|
key = keys[j++];
|
|
1586
|
-
if (!
|
|
1821
|
+
if (!DESCRIPTORS$1 || call(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1587
1822
|
}
|
|
1588
1823
|
} return T;
|
|
1589
1824
|
} : $assign;
|
|
1590
1825
|
|
|
1826
|
+
var $$9 = _export;
|
|
1827
|
+
var assign = objectAssign;
|
|
1828
|
+
|
|
1591
1829
|
// `Object.assign` method
|
|
1592
1830
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1593
1831
|
// eslint-disable-next-line es-x/no-object-assign -- required for testing
|
|
1594
|
-
|
|
1595
|
-
assign:
|
|
1832
|
+
$$9({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1833
|
+
assign: assign
|
|
1596
1834
|
});
|
|
1597
1835
|
|
|
1598
|
-
var
|
|
1836
|
+
var fails$5 = fails$j;
|
|
1837
|
+
|
|
1838
|
+
var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
|
|
1599
1839
|
var method = [][METHOD_NAME];
|
|
1600
|
-
return !!method && fails(function () {
|
|
1840
|
+
return !!method && fails$5(function () {
|
|
1601
1841
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1602
1842
|
method.call(null, argument || function () { return 1; }, 1);
|
|
1603
1843
|
});
|
|
1604
1844
|
};
|
|
1605
1845
|
|
|
1606
|
-
var
|
|
1846
|
+
var $$8 = _export;
|
|
1847
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1848
|
+
var IndexedObject$1 = indexedObject;
|
|
1849
|
+
var toIndexedObject$1 = toIndexedObject$6;
|
|
1850
|
+
var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
|
|
1851
|
+
|
|
1852
|
+
var un$Join = uncurryThis$7([].join);
|
|
1607
1853
|
|
|
1608
|
-
var ES3_STRINGS =
|
|
1609
|
-
var STRICT_METHOD$1 = arrayMethodIsStrict('join', ',');
|
|
1854
|
+
var ES3_STRINGS = IndexedObject$1 != Object;
|
|
1855
|
+
var STRICT_METHOD$1 = arrayMethodIsStrict$1('join', ',');
|
|
1610
1856
|
|
|
1611
1857
|
// `Array.prototype.join` method
|
|
1612
1858
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
|
1613
|
-
|
|
1859
|
+
$$8({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
|
|
1614
1860
|
join: function join(separator) {
|
|
1615
|
-
return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
|
|
1861
|
+
return un$Join(toIndexedObject$1(this), separator === undefined ? ',' : separator);
|
|
1616
1862
|
}
|
|
1617
1863
|
});
|
|
1618
1864
|
|
|
1619
|
-
var
|
|
1865
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1866
|
+
var aCallable = aCallable$2;
|
|
1867
|
+
var NATIVE_BIND = functionBindNative;
|
|
1868
|
+
|
|
1869
|
+
var bind$1 = uncurryThis$6(uncurryThis$6.bind);
|
|
1620
1870
|
|
|
1621
1871
|
// optional / simple context binding
|
|
1622
1872
|
var functionBindContext = function (fn, that) {
|
|
1623
1873
|
aCallable(fn);
|
|
1624
|
-
return that === undefined ? fn :
|
|
1874
|
+
return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
|
|
1625
1875
|
return fn.apply(that, arguments);
|
|
1626
1876
|
};
|
|
1627
1877
|
};
|
|
1628
1878
|
|
|
1879
|
+
var classof$3 = classofRaw$1;
|
|
1880
|
+
|
|
1629
1881
|
// `IsArray` abstract operation
|
|
1630
1882
|
// https://tc39.es/ecma262/#sec-isarray
|
|
1631
1883
|
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
|
1632
|
-
var isArray = Array.isArray || function isArray(argument) {
|
|
1633
|
-
return
|
|
1884
|
+
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
1885
|
+
return classof$3(argument) == 'Array';
|
|
1634
1886
|
};
|
|
1635
1887
|
|
|
1888
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1889
|
+
var fails$4 = fails$j;
|
|
1890
|
+
var isCallable = isCallable$d;
|
|
1891
|
+
var classof$2 = classof$6;
|
|
1892
|
+
var getBuiltIn = getBuiltIn$5;
|
|
1893
|
+
var inspectSource = inspectSource$3;
|
|
1894
|
+
|
|
1636
1895
|
var noop = function () { /* empty */ };
|
|
1637
1896
|
var empty = [];
|
|
1638
1897
|
var construct = getBuiltIn('Reflect', 'construct');
|
|
1639
1898
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1640
|
-
var exec =
|
|
1899
|
+
var exec = uncurryThis$5(constructorRegExp.exec);
|
|
1641
1900
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1642
1901
|
|
|
1643
1902
|
var isConstructorModern = function isConstructor(argument) {
|
|
@@ -1652,7 +1911,7 @@
|
|
|
1652
1911
|
|
|
1653
1912
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
1654
1913
|
if (!isCallable(argument)) return false;
|
|
1655
|
-
switch (classof(argument)) {
|
|
1914
|
+
switch (classof$2(argument)) {
|
|
1656
1915
|
case 'AsyncFunction':
|
|
1657
1916
|
case 'GeneratorFunction':
|
|
1658
1917
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -1671,7 +1930,7 @@
|
|
|
1671
1930
|
|
|
1672
1931
|
// `IsConstructor` abstract operation
|
|
1673
1932
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1674
|
-
var isConstructor = !construct || fails(function () {
|
|
1933
|
+
var isConstructor$1 = !construct || fails$4(function () {
|
|
1675
1934
|
var called;
|
|
1676
1935
|
return isConstructorModern(isConstructorModern.call)
|
|
1677
1936
|
|| !isConstructorModern(Object)
|
|
@@ -1679,31 +1938,46 @@
|
|
|
1679
1938
|
|| called;
|
|
1680
1939
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
1681
1940
|
|
|
1682
|
-
var
|
|
1683
|
-
var
|
|
1941
|
+
var global$3 = global$u;
|
|
1942
|
+
var isArray$1 = isArray$2;
|
|
1943
|
+
var isConstructor = isConstructor$1;
|
|
1944
|
+
var isObject$2 = isObject$8;
|
|
1945
|
+
var wellKnownSymbol$5 = wellKnownSymbol$a;
|
|
1946
|
+
|
|
1947
|
+
var SPECIES$1 = wellKnownSymbol$5('species');
|
|
1948
|
+
var Array$1 = global$3.Array;
|
|
1684
1949
|
|
|
1685
1950
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
1686
1951
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
1687
|
-
var arraySpeciesConstructor = function (originalArray) {
|
|
1952
|
+
var arraySpeciesConstructor$1 = function (originalArray) {
|
|
1688
1953
|
var C;
|
|
1689
|
-
if (isArray(originalArray)) {
|
|
1954
|
+
if (isArray$1(originalArray)) {
|
|
1690
1955
|
C = originalArray.constructor;
|
|
1691
1956
|
// cross-realm fallback
|
|
1692
|
-
if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
|
|
1693
|
-
else if (isObject(C)) {
|
|
1957
|
+
if (isConstructor(C) && (C === Array$1 || isArray$1(C.prototype))) C = undefined;
|
|
1958
|
+
else if (isObject$2(C)) {
|
|
1694
1959
|
C = C[SPECIES$1];
|
|
1695
1960
|
if (C === null) C = undefined;
|
|
1696
1961
|
}
|
|
1697
1962
|
} return C === undefined ? Array$1 : C;
|
|
1698
1963
|
};
|
|
1699
1964
|
|
|
1965
|
+
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
1966
|
+
|
|
1700
1967
|
// `ArraySpeciesCreate` abstract operation
|
|
1701
1968
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
1702
|
-
var arraySpeciesCreate = function (originalArray, length) {
|
|
1969
|
+
var arraySpeciesCreate$2 = function (originalArray, length) {
|
|
1703
1970
|
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
1704
1971
|
};
|
|
1705
1972
|
|
|
1706
|
-
var
|
|
1973
|
+
var bind = functionBindContext;
|
|
1974
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1975
|
+
var IndexedObject = indexedObject;
|
|
1976
|
+
var toObject$1 = toObject$4;
|
|
1977
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
1978
|
+
var arraySpeciesCreate$1 = arraySpeciesCreate$2;
|
|
1979
|
+
|
|
1980
|
+
var push$1 = uncurryThis$4([].push);
|
|
1707
1981
|
|
|
1708
1982
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
1709
1983
|
var createMethod$2 = function (TYPE) {
|
|
@@ -1715,12 +1989,12 @@
|
|
|
1715
1989
|
var IS_FILTER_REJECT = TYPE == 7;
|
|
1716
1990
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
1717
1991
|
return function ($this, callbackfn, that, specificCreate) {
|
|
1718
|
-
var O = toObject($this);
|
|
1719
|
-
var self =
|
|
1720
|
-
var boundFunction =
|
|
1721
|
-
var length = lengthOfArrayLike(self);
|
|
1992
|
+
var O = toObject$1($this);
|
|
1993
|
+
var self = IndexedObject(O);
|
|
1994
|
+
var boundFunction = bind(callbackfn, that);
|
|
1995
|
+
var length = lengthOfArrayLike$1(self);
|
|
1722
1996
|
var index = 0;
|
|
1723
|
-
var create = specificCreate || arraySpeciesCreate;
|
|
1997
|
+
var create = specificCreate || arraySpeciesCreate$1;
|
|
1724
1998
|
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
|
1725
1999
|
var value, result;
|
|
1726
2000
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
@@ -1770,25 +2044,30 @@
|
|
|
1770
2044
|
filterReject: createMethod$2(7)
|
|
1771
2045
|
};
|
|
1772
2046
|
|
|
1773
|
-
var
|
|
2047
|
+
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
2048
|
+
var create = objectCreate;
|
|
2049
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
2050
|
+
|
|
2051
|
+
var UNSCOPABLES = wellKnownSymbol$4('unscopables');
|
|
1774
2052
|
var ArrayPrototype = Array.prototype;
|
|
1775
2053
|
|
|
1776
2054
|
// Array.prototype[@@unscopables]
|
|
1777
2055
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1778
2056
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
1779
|
-
|
|
2057
|
+
definePropertyModule$1.f(ArrayPrototype, UNSCOPABLES, {
|
|
1780
2058
|
configurable: true,
|
|
1781
|
-
value:
|
|
2059
|
+
value: create(null)
|
|
1782
2060
|
});
|
|
1783
2061
|
}
|
|
1784
2062
|
|
|
1785
2063
|
// add a key to Array.prototype[@@unscopables]
|
|
1786
|
-
var addToUnscopables = function (key) {
|
|
2064
|
+
var addToUnscopables$2 = function (key) {
|
|
1787
2065
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1788
2066
|
};
|
|
1789
2067
|
|
|
2068
|
+
var $$7 = _export;
|
|
1790
2069
|
var $find = arrayIteration.find;
|
|
1791
|
-
|
|
2070
|
+
var addToUnscopables$1 = addToUnscopables$2;
|
|
1792
2071
|
|
|
1793
2072
|
var FIND = 'find';
|
|
1794
2073
|
var SKIPS_HOLES = true;
|
|
@@ -1798,40 +2077,55 @@
|
|
|
1798
2077
|
|
|
1799
2078
|
// `Array.prototype.find` method
|
|
1800
2079
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
1801
|
-
|
|
2080
|
+
$$7({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
1802
2081
|
find: function find(callbackfn /* , that = undefined */) {
|
|
1803
2082
|
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
1804
2083
|
}
|
|
1805
2084
|
});
|
|
1806
2085
|
|
|
1807
2086
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1808
|
-
addToUnscopables(FIND);
|
|
2087
|
+
addToUnscopables$1(FIND);
|
|
2088
|
+
|
|
2089
|
+
var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
|
|
2090
|
+
var classof$1 = classof$6;
|
|
1809
2091
|
|
|
1810
2092
|
// `Object.prototype.toString` method implementation
|
|
1811
2093
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
1812
|
-
var objectToString =
|
|
1813
|
-
return '[object ' + classof(this) + ']';
|
|
2094
|
+
var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
|
|
2095
|
+
return '[object ' + classof$1(this) + ']';
|
|
1814
2096
|
};
|
|
1815
2097
|
|
|
2098
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
2099
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
2100
|
+
var toString$2 = objectToString;
|
|
2101
|
+
|
|
1816
2102
|
// `Object.prototype.toString` method
|
|
1817
2103
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
1818
|
-
if (!
|
|
1819
|
-
defineBuiltIn(Object.prototype, 'toString',
|
|
2104
|
+
if (!TO_STRING_TAG_SUPPORT) {
|
|
2105
|
+
defineBuiltIn(Object.prototype, 'toString', toString$2, { unsafe: true });
|
|
1820
2106
|
}
|
|
1821
2107
|
|
|
1822
|
-
var
|
|
2108
|
+
var toPropertyKey = toPropertyKey$3;
|
|
2109
|
+
var definePropertyModule = objectDefineProperty;
|
|
2110
|
+
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
2111
|
+
|
|
2112
|
+
var createProperty$1 = function (object, key, value) {
|
|
1823
2113
|
var propertyKey = toPropertyKey(key);
|
|
1824
|
-
if (propertyKey in object)
|
|
2114
|
+
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
1825
2115
|
else object[propertyKey] = value;
|
|
1826
2116
|
};
|
|
1827
2117
|
|
|
1828
|
-
var
|
|
2118
|
+
var fails$3 = fails$j;
|
|
2119
|
+
var wellKnownSymbol$3 = wellKnownSymbol$a;
|
|
2120
|
+
var V8_VERSION$1 = engineV8Version;
|
|
2121
|
+
|
|
2122
|
+
var SPECIES = wellKnownSymbol$3('species');
|
|
1829
2123
|
|
|
1830
|
-
var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
|
|
2124
|
+
var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
|
|
1831
2125
|
// We can't use this feature detection in V8 since it causes
|
|
1832
2126
|
// deoptimization and serious performance degradation
|
|
1833
2127
|
// https://github.com/zloirock/core-js/issues/677
|
|
1834
|
-
return
|
|
2128
|
+
return V8_VERSION$1 >= 51 || !fails$3(function () {
|
|
1835
2129
|
var array = [];
|
|
1836
2130
|
var constructor = array.constructor = {};
|
|
1837
2131
|
constructor[SPECIES] = function () {
|
|
@@ -1841,24 +2135,37 @@
|
|
|
1841
2135
|
});
|
|
1842
2136
|
};
|
|
1843
2137
|
|
|
1844
|
-
var
|
|
2138
|
+
var $$6 = _export;
|
|
2139
|
+
var global$2 = global$u;
|
|
2140
|
+
var fails$2 = fails$j;
|
|
2141
|
+
var isArray = isArray$2;
|
|
2142
|
+
var isObject$1 = isObject$8;
|
|
2143
|
+
var toObject = toObject$4;
|
|
2144
|
+
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
2145
|
+
var createProperty = createProperty$1;
|
|
2146
|
+
var arraySpeciesCreate = arraySpeciesCreate$2;
|
|
2147
|
+
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
|
|
2148
|
+
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
2149
|
+
var V8_VERSION = engineV8Version;
|
|
2150
|
+
|
|
2151
|
+
var IS_CONCAT_SPREADABLE = wellKnownSymbol$2('isConcatSpreadable');
|
|
1845
2152
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
1846
2153
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
1847
|
-
var TypeError$2 =
|
|
2154
|
+
var TypeError$2 = global$2.TypeError;
|
|
1848
2155
|
|
|
1849
2156
|
// We can't use this feature detection in V8 since it causes
|
|
1850
2157
|
// deoptimization and serious performance degradation
|
|
1851
2158
|
// https://github.com/zloirock/core-js/issues/679
|
|
1852
|
-
var IS_CONCAT_SPREADABLE_SUPPORT =
|
|
2159
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$2(function () {
|
|
1853
2160
|
var array = [];
|
|
1854
2161
|
array[IS_CONCAT_SPREADABLE] = false;
|
|
1855
2162
|
return array.concat()[0] !== array;
|
|
1856
2163
|
});
|
|
1857
2164
|
|
|
1858
|
-
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
|
|
2165
|
+
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('concat');
|
|
1859
2166
|
|
|
1860
2167
|
var isConcatSpreadable = function (O) {
|
|
1861
|
-
if (!isObject(O)) return false;
|
|
2168
|
+
if (!isObject$1(O)) return false;
|
|
1862
2169
|
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
1863
2170
|
return spreadable !== undefined ? !!spreadable : isArray(O);
|
|
1864
2171
|
};
|
|
@@ -1868,7 +2175,7 @@
|
|
|
1868
2175
|
// `Array.prototype.concat` method
|
|
1869
2176
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
|
1870
2177
|
// with adding support of @@isConcatSpreadable and @@species
|
|
1871
|
-
|
|
2178
|
+
$$6({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
1872
2179
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
1873
2180
|
concat: function concat(arg) {
|
|
1874
2181
|
var O = toObject(this);
|
|
@@ -1891,24 +2198,29 @@
|
|
|
1891
2198
|
}
|
|
1892
2199
|
});
|
|
1893
2200
|
|
|
2201
|
+
var $$5 = _export;
|
|
1894
2202
|
var $filter = arrayIteration.filter;
|
|
1895
|
-
|
|
2203
|
+
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$2;
|
|
1896
2204
|
|
|
1897
2205
|
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
|
|
1898
2206
|
|
|
1899
2207
|
// `Array.prototype.filter` method
|
|
1900
2208
|
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
1901
2209
|
// with adding support of @@species
|
|
1902
|
-
|
|
2210
|
+
$$5({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
1903
2211
|
filter: function filter(callbackfn /* , thisArg */) {
|
|
1904
2212
|
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
1905
2213
|
}
|
|
1906
2214
|
});
|
|
1907
2215
|
|
|
2216
|
+
var DESCRIPTORS = descriptors;
|
|
2217
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
2218
|
+
var objectKeys = objectKeys$3;
|
|
2219
|
+
var toIndexedObject = toIndexedObject$6;
|
|
1908
2220
|
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
1909
2221
|
|
|
1910
|
-
var propertyIsEnumerable =
|
|
1911
|
-
var push =
|
|
2222
|
+
var propertyIsEnumerable = uncurryThis$3($propertyIsEnumerable);
|
|
2223
|
+
var push = uncurryThis$3([].push);
|
|
1912
2224
|
|
|
1913
2225
|
// `Object.{ entries, values }` methods implementation
|
|
1914
2226
|
var createMethod$1 = function (TO_ENTRIES) {
|
|
@@ -1921,7 +2233,7 @@
|
|
|
1921
2233
|
var key;
|
|
1922
2234
|
while (length > i) {
|
|
1923
2235
|
key = keys[i++];
|
|
1924
|
-
if (!
|
|
2236
|
+
if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {
|
|
1925
2237
|
push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
|
|
1926
2238
|
}
|
|
1927
2239
|
}
|
|
@@ -1938,30 +2250,31 @@
|
|
|
1938
2250
|
values: createMethod$1(false)
|
|
1939
2251
|
};
|
|
1940
2252
|
|
|
2253
|
+
var $$4 = _export;
|
|
1941
2254
|
var $entries = objectToArray.entries;
|
|
1942
2255
|
|
|
1943
2256
|
// `Object.entries` method
|
|
1944
2257
|
// https://tc39.es/ecma262/#sec-object.entries
|
|
1945
|
-
|
|
2258
|
+
$$4({ target: 'Object', stat: true }, {
|
|
1946
2259
|
entries: function entries(O) {
|
|
1947
2260
|
return $entries(O);
|
|
1948
2261
|
}
|
|
1949
2262
|
});
|
|
1950
2263
|
|
|
1951
2264
|
/* eslint-disable es-x/no-array-prototype-indexof -- required for testing */
|
|
1952
|
-
|
|
1953
|
-
|
|
2265
|
+
var $$3 = _export;
|
|
2266
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
1954
2267
|
var $IndexOf = arrayIncludes.indexOf;
|
|
2268
|
+
var arrayMethodIsStrict = arrayMethodIsStrict$2;
|
|
1955
2269
|
|
|
1956
|
-
|
|
1957
|
-
var un$IndexOf = functionUncurryThis([].indexOf);
|
|
2270
|
+
var un$IndexOf = uncurryThis$2([].indexOf);
|
|
1958
2271
|
|
|
1959
2272
|
var NEGATIVE_ZERO = !!un$IndexOf && 1 / un$IndexOf([1], 1, -0) < 0;
|
|
1960
2273
|
var STRICT_METHOD = arrayMethodIsStrict('indexOf');
|
|
1961
2274
|
|
|
1962
2275
|
// `Array.prototype.indexOf` method
|
|
1963
2276
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
1964
|
-
|
|
2277
|
+
$$3({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, {
|
|
1965
2278
|
indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
|
|
1966
2279
|
var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
|
|
1967
2280
|
return NEGATIVE_ZERO
|
|
@@ -1971,18 +2284,19 @@
|
|
|
1971
2284
|
}
|
|
1972
2285
|
});
|
|
1973
2286
|
|
|
2287
|
+
var $$2 = _export;
|
|
1974
2288
|
var $includes = arrayIncludes.includes;
|
|
1975
|
-
|
|
1976
|
-
|
|
2289
|
+
var fails$1 = fails$j;
|
|
2290
|
+
var addToUnscopables = addToUnscopables$2;
|
|
1977
2291
|
|
|
1978
2292
|
// FF99+ bug
|
|
1979
|
-
var BROKEN_ON_SPARSE = fails(function () {
|
|
2293
|
+
var BROKEN_ON_SPARSE = fails$1(function () {
|
|
1980
2294
|
return !Array(1).includes();
|
|
1981
2295
|
});
|
|
1982
2296
|
|
|
1983
2297
|
// `Array.prototype.includes` method
|
|
1984
2298
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1985
|
-
|
|
2299
|
+
$$2({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
1986
2300
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
1987
2301
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
1988
2302
|
}
|
|
@@ -1991,23 +2305,32 @@
|
|
|
1991
2305
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1992
2306
|
addToUnscopables('includes');
|
|
1993
2307
|
|
|
1994
|
-
var
|
|
2308
|
+
var isObject = isObject$8;
|
|
2309
|
+
var classof = classofRaw$1;
|
|
2310
|
+
var wellKnownSymbol$1 = wellKnownSymbol$a;
|
|
2311
|
+
|
|
2312
|
+
var MATCH$1 = wellKnownSymbol$1('match');
|
|
1995
2313
|
|
|
1996
2314
|
// `IsRegExp` abstract operation
|
|
1997
2315
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
1998
2316
|
var isRegexp = function (it) {
|
|
1999
2317
|
var isRegExp;
|
|
2000
|
-
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp :
|
|
2318
|
+
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
|
|
2001
2319
|
};
|
|
2002
2320
|
|
|
2003
|
-
var
|
|
2321
|
+
var global$1 = global$u;
|
|
2322
|
+
var isRegExp = isRegexp;
|
|
2323
|
+
|
|
2324
|
+
var TypeError$1 = global$1.TypeError;
|
|
2004
2325
|
|
|
2005
2326
|
var notARegexp = function (it) {
|
|
2006
|
-
if (
|
|
2327
|
+
if (isRegExp(it)) {
|
|
2007
2328
|
throw TypeError$1("The method doesn't accept regular expressions");
|
|
2008
2329
|
} return it;
|
|
2009
2330
|
};
|
|
2010
2331
|
|
|
2332
|
+
var wellKnownSymbol = wellKnownSymbol$a;
|
|
2333
|
+
|
|
2011
2334
|
var MATCH = wellKnownSymbol('match');
|
|
2012
2335
|
|
|
2013
2336
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
@@ -2022,33 +2345,45 @@
|
|
|
2022
2345
|
} return false;
|
|
2023
2346
|
};
|
|
2024
2347
|
|
|
2025
|
-
var
|
|
2348
|
+
var $$1 = _export;
|
|
2349
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
2350
|
+
var notARegExp = notARegexp;
|
|
2351
|
+
var requireObjectCoercible$1 = requireObjectCoercible$5;
|
|
2352
|
+
var toString$1 = toString$5;
|
|
2353
|
+
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
2354
|
+
|
|
2355
|
+
var stringIndexOf = uncurryThis$1(''.indexOf);
|
|
2026
2356
|
|
|
2027
2357
|
// `String.prototype.includes` method
|
|
2028
2358
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
2029
|
-
|
|
2359
|
+
$$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
2030
2360
|
includes: function includes(searchString /* , position = 0 */) {
|
|
2031
2361
|
return !!~stringIndexOf(
|
|
2032
|
-
|
|
2033
|
-
|
|
2362
|
+
toString$1(requireObjectCoercible$1(this)),
|
|
2363
|
+
toString$1(notARegExp(searchString)),
|
|
2034
2364
|
arguments.length > 1 ? arguments[1] : undefined
|
|
2035
2365
|
);
|
|
2036
2366
|
}
|
|
2037
2367
|
});
|
|
2038
2368
|
|
|
2039
2369
|
// a string of all valid unicode whitespaces
|
|
2040
|
-
var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
2370
|
+
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
2041
2371
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
2042
2372
|
|
|
2043
|
-
var
|
|
2044
|
-
var
|
|
2373
|
+
var uncurryThis = functionUncurryThis;
|
|
2374
|
+
var requireObjectCoercible = requireObjectCoercible$5;
|
|
2375
|
+
var toString = toString$5;
|
|
2376
|
+
var whitespaces$1 = whitespaces$2;
|
|
2377
|
+
|
|
2378
|
+
var replace = uncurryThis(''.replace);
|
|
2379
|
+
var whitespace = '[' + whitespaces$1 + ']';
|
|
2045
2380
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
2046
2381
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
2047
2382
|
|
|
2048
2383
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
2049
2384
|
var createMethod = function (TYPE) {
|
|
2050
2385
|
return function ($this) {
|
|
2051
|
-
var string =
|
|
2386
|
+
var string = toString(requireObjectCoercible($this));
|
|
2052
2387
|
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
2053
2388
|
if (TYPE & 2) string = replace(string, rtrim, '');
|
|
2054
2389
|
return string;
|
|
@@ -2068,8 +2403,8 @@
|
|
|
2068
2403
|
};
|
|
2069
2404
|
|
|
2070
2405
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
2071
|
-
|
|
2072
|
-
|
|
2406
|
+
var fails = fails$j;
|
|
2407
|
+
var whitespaces = whitespaces$2;
|
|
2073
2408
|
|
|
2074
2409
|
var non = '\u200B\u0085\u180E';
|
|
2075
2410
|
|
|
@@ -2083,12 +2418,13 @@
|
|
|
2083
2418
|
});
|
|
2084
2419
|
};
|
|
2085
2420
|
|
|
2421
|
+
var $ = _export;
|
|
2086
2422
|
var $trim = stringTrim.trim;
|
|
2087
|
-
|
|
2423
|
+
var forcedStringTrimMethod = stringTrimForced;
|
|
2088
2424
|
|
|
2089
2425
|
// `String.prototype.trim` method
|
|
2090
2426
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
2091
|
-
|
|
2427
|
+
$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
2092
2428
|
trim: function trim() {
|
|
2093
2429
|
return $trim(this);
|
|
2094
2430
|
}
|