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/addrbar/bootstrap-table-addrbar.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 ($$3) { '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($$3);
|
|
10
10
|
|
|
11
11
|
function _classCallCheck(instance, Constructor) {
|
|
12
12
|
if (!(instance instanceof Constructor)) {
|
|
@@ -208,16 +208,12 @@
|
|
|
208
208
|
|
|
209
209
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
210
210
|
|
|
211
|
-
function createCommonjsModule(fn, module) {
|
|
212
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
211
|
var check = function (it) {
|
|
216
212
|
return it && it.Math == Math && it;
|
|
217
213
|
};
|
|
218
214
|
|
|
219
215
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
220
|
-
var
|
|
216
|
+
var global$v =
|
|
221
217
|
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
222
218
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
223
219
|
check(typeof window == 'object' && window) ||
|
|
@@ -227,7 +223,9 @@
|
|
|
227
223
|
// eslint-disable-next-line no-new-func -- fallback
|
|
228
224
|
(function () { return this; })() || Function('return this')();
|
|
229
225
|
|
|
230
|
-
var
|
|
226
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
227
|
+
|
|
228
|
+
var fails$i = function (exec) {
|
|
231
229
|
try {
|
|
232
230
|
return !!exec();
|
|
233
231
|
} catch (error) {
|
|
@@ -235,25 +233,33 @@
|
|
|
235
233
|
}
|
|
236
234
|
};
|
|
237
235
|
|
|
236
|
+
var fails$h = fails$i;
|
|
237
|
+
|
|
238
238
|
// Detect IE8's incomplete defineProperty implementation
|
|
239
|
-
var descriptors = !fails(function () {
|
|
239
|
+
var descriptors = !fails$h(function () {
|
|
240
240
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
241
241
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
242
242
|
});
|
|
243
243
|
|
|
244
|
-
var
|
|
244
|
+
var fails$g = fails$i;
|
|
245
|
+
|
|
246
|
+
var functionBindNative = !fails$g(function () {
|
|
245
247
|
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
246
248
|
var test = (function () { /* empty */ }).bind();
|
|
247
249
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
248
250
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
249
251
|
});
|
|
250
252
|
|
|
251
|
-
var
|
|
253
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
252
254
|
|
|
253
|
-
var
|
|
254
|
-
|
|
255
|
+
var call$b = Function.prototype.call;
|
|
256
|
+
|
|
257
|
+
var functionCall = NATIVE_BIND$2 ? call$b.bind(call$b) : function () {
|
|
258
|
+
return call$b.apply(call$b, arguments);
|
|
255
259
|
};
|
|
256
260
|
|
|
261
|
+
var objectPropertyIsEnumerable = {};
|
|
262
|
+
|
|
257
263
|
var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
|
|
258
264
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
259
265
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
@@ -263,16 +269,12 @@
|
|
|
263
269
|
|
|
264
270
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
265
271
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
266
|
-
|
|
272
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
267
273
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
268
274
|
return !!descriptor && descriptor.enumerable;
|
|
269
275
|
} : $propertyIsEnumerable$1;
|
|
270
276
|
|
|
271
|
-
var
|
|
272
|
-
f: f$5
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
var createPropertyDescriptor = function (bitmap, value) {
|
|
277
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
276
278
|
return {
|
|
277
279
|
enumerable: !(bitmap & 1),
|
|
278
280
|
configurable: !(bitmap & 2),
|
|
@@ -281,79 +283,102 @@
|
|
|
281
283
|
};
|
|
282
284
|
};
|
|
283
285
|
|
|
286
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
287
|
+
|
|
284
288
|
var FunctionPrototype$2 = Function.prototype;
|
|
285
289
|
var bind = FunctionPrototype$2.bind;
|
|
286
|
-
var call$
|
|
287
|
-
var uncurryThis =
|
|
290
|
+
var call$a = FunctionPrototype$2.call;
|
|
291
|
+
var uncurryThis$i = NATIVE_BIND$1 && bind.bind(call$a, call$a);
|
|
288
292
|
|
|
289
|
-
var functionUncurryThis =
|
|
290
|
-
return fn && uncurryThis(fn);
|
|
293
|
+
var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
|
|
294
|
+
return fn && uncurryThis$i(fn);
|
|
291
295
|
} : function (fn) {
|
|
292
296
|
return fn && function () {
|
|
293
|
-
return call$
|
|
297
|
+
return call$a.apply(fn, arguments);
|
|
294
298
|
};
|
|
295
299
|
};
|
|
296
300
|
|
|
297
|
-
var
|
|
298
|
-
var stringSlice$5 = functionUncurryThis(''.slice);
|
|
301
|
+
var uncurryThis$h = functionUncurryThis;
|
|
299
302
|
|
|
300
|
-
var
|
|
301
|
-
|
|
303
|
+
var toString$8 = uncurryThis$h({}.toString);
|
|
304
|
+
var stringSlice$5 = uncurryThis$h(''.slice);
|
|
305
|
+
|
|
306
|
+
var classofRaw$1 = function (it) {
|
|
307
|
+
return stringSlice$5(toString$8(it), 8, -1);
|
|
302
308
|
};
|
|
303
309
|
|
|
304
|
-
var
|
|
305
|
-
var
|
|
310
|
+
var global$u = global$v;
|
|
311
|
+
var uncurryThis$g = functionUncurryThis;
|
|
312
|
+
var fails$f = fails$i;
|
|
313
|
+
var classof$6 = classofRaw$1;
|
|
314
|
+
|
|
315
|
+
var Object$4 = global$u.Object;
|
|
316
|
+
var split = uncurryThis$g(''.split);
|
|
306
317
|
|
|
307
318
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
308
|
-
var indexedObject = fails(function () {
|
|
319
|
+
var indexedObject = fails$f(function () {
|
|
309
320
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
310
321
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
311
322
|
return !Object$4('z').propertyIsEnumerable(0);
|
|
312
323
|
}) ? function (it) {
|
|
313
|
-
return
|
|
324
|
+
return classof$6(it) == 'String' ? split(it, '') : Object$4(it);
|
|
314
325
|
} : Object$4;
|
|
315
326
|
|
|
316
|
-
var
|
|
327
|
+
var global$t = global$v;
|
|
328
|
+
|
|
329
|
+
var TypeError$a = global$t.TypeError;
|
|
317
330
|
|
|
318
331
|
// `RequireObjectCoercible` abstract operation
|
|
319
332
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
320
|
-
var requireObjectCoercible = function (it) {
|
|
333
|
+
var requireObjectCoercible$6 = function (it) {
|
|
321
334
|
if (it == undefined) throw TypeError$a("Can't call method on " + it);
|
|
322
335
|
return it;
|
|
323
336
|
};
|
|
324
337
|
|
|
325
338
|
// toObject with fallback for non-array-like ES3 strings
|
|
339
|
+
var IndexedObject = indexedObject;
|
|
340
|
+
var requireObjectCoercible$5 = requireObjectCoercible$6;
|
|
326
341
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
var toIndexedObject = function (it) {
|
|
330
|
-
return indexedObject(requireObjectCoercible(it));
|
|
342
|
+
var toIndexedObject$5 = function (it) {
|
|
343
|
+
return IndexedObject(requireObjectCoercible$5(it));
|
|
331
344
|
};
|
|
332
345
|
|
|
333
346
|
// `IsCallable` abstract operation
|
|
334
347
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
335
|
-
var isCallable = function (argument) {
|
|
348
|
+
var isCallable$g = function (argument) {
|
|
336
349
|
return typeof argument == 'function';
|
|
337
350
|
};
|
|
338
351
|
|
|
339
|
-
var
|
|
340
|
-
|
|
352
|
+
var isCallable$f = isCallable$g;
|
|
353
|
+
|
|
354
|
+
var isObject$9 = function (it) {
|
|
355
|
+
return typeof it == 'object' ? it !== null : isCallable$f(it);
|
|
341
356
|
};
|
|
342
357
|
|
|
358
|
+
var global$s = global$v;
|
|
359
|
+
var isCallable$e = isCallable$g;
|
|
360
|
+
|
|
343
361
|
var aFunction = function (argument) {
|
|
344
|
-
return isCallable(argument) ? argument : undefined;
|
|
362
|
+
return isCallable$e(argument) ? argument : undefined;
|
|
345
363
|
};
|
|
346
364
|
|
|
347
|
-
var getBuiltIn = function (namespace, method) {
|
|
348
|
-
return arguments.length < 2 ? aFunction(
|
|
365
|
+
var getBuiltIn$6 = function (namespace, method) {
|
|
366
|
+
return arguments.length < 2 ? aFunction(global$s[namespace]) : global$s[namespace] && global$s[namespace][method];
|
|
349
367
|
};
|
|
350
368
|
|
|
351
|
-
var
|
|
369
|
+
var uncurryThis$f = functionUncurryThis;
|
|
370
|
+
|
|
371
|
+
var objectIsPrototypeOf = uncurryThis$f({}.isPrototypeOf);
|
|
372
|
+
|
|
373
|
+
var getBuiltIn$5 = getBuiltIn$6;
|
|
374
|
+
|
|
375
|
+
var engineUserAgent = getBuiltIn$5('navigator', 'userAgent') || '';
|
|
352
376
|
|
|
353
|
-
var
|
|
377
|
+
var global$r = global$v;
|
|
378
|
+
var userAgent = engineUserAgent;
|
|
354
379
|
|
|
355
|
-
var process =
|
|
356
|
-
var Deno =
|
|
380
|
+
var process = global$r.process;
|
|
381
|
+
var Deno = global$r.Deno;
|
|
357
382
|
var versions = process && process.versions || Deno && Deno.version;
|
|
358
383
|
var v8 = versions && versions.v8;
|
|
359
384
|
var match, version;
|
|
@@ -367,10 +392,10 @@
|
|
|
367
392
|
|
|
368
393
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
369
394
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
370
|
-
if (!version &&
|
|
371
|
-
match =
|
|
395
|
+
if (!version && userAgent) {
|
|
396
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
372
397
|
if (!match || match[1] >= 74) {
|
|
373
|
-
match =
|
|
398
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
374
399
|
if (match) version = +match[1];
|
|
375
400
|
}
|
|
376
401
|
}
|
|
@@ -379,37 +404,47 @@
|
|
|
379
404
|
|
|
380
405
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
381
406
|
|
|
382
|
-
|
|
407
|
+
var V8_VERSION$2 = engineV8Version;
|
|
408
|
+
var fails$e = fails$i;
|
|
383
409
|
|
|
384
410
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
385
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
411
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$e(function () {
|
|
386
412
|
var symbol = Symbol();
|
|
387
413
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
388
414
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
389
415
|
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
390
416
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
391
|
-
!Symbol.sham &&
|
|
417
|
+
!Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
|
|
392
418
|
});
|
|
393
419
|
|
|
394
420
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
395
421
|
|
|
422
|
+
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
396
423
|
|
|
397
|
-
var useSymbolAsUid =
|
|
424
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
398
425
|
&& !Symbol.sham
|
|
399
426
|
&& typeof Symbol.iterator == 'symbol';
|
|
400
427
|
|
|
401
|
-
var
|
|
428
|
+
var global$q = global$v;
|
|
429
|
+
var getBuiltIn$4 = getBuiltIn$6;
|
|
430
|
+
var isCallable$d = isCallable$g;
|
|
431
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
432
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
433
|
+
|
|
434
|
+
var Object$3 = global$q.Object;
|
|
402
435
|
|
|
403
|
-
var isSymbol =
|
|
436
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
404
437
|
return typeof it == 'symbol';
|
|
405
438
|
} : function (it) {
|
|
406
|
-
var $Symbol = getBuiltIn('Symbol');
|
|
407
|
-
return isCallable($Symbol) &&
|
|
439
|
+
var $Symbol = getBuiltIn$4('Symbol');
|
|
440
|
+
return isCallable$d($Symbol) && isPrototypeOf$2($Symbol.prototype, Object$3(it));
|
|
408
441
|
};
|
|
409
442
|
|
|
410
|
-
var
|
|
443
|
+
var global$p = global$v;
|
|
444
|
+
|
|
445
|
+
var String$4 = global$p.String;
|
|
411
446
|
|
|
412
|
-
var tryToString = function (argument) {
|
|
447
|
+
var tryToString$1 = function (argument) {
|
|
413
448
|
try {
|
|
414
449
|
return String$4(argument);
|
|
415
450
|
} catch (error) {
|
|
@@ -417,97 +452,130 @@
|
|
|
417
452
|
}
|
|
418
453
|
};
|
|
419
454
|
|
|
420
|
-
var
|
|
455
|
+
var global$o = global$v;
|
|
456
|
+
var isCallable$c = isCallable$g;
|
|
457
|
+
var tryToString = tryToString$1;
|
|
458
|
+
|
|
459
|
+
var TypeError$9 = global$o.TypeError;
|
|
421
460
|
|
|
422
461
|
// `Assert: IsCallable(argument) is true`
|
|
423
|
-
var aCallable = function (argument) {
|
|
424
|
-
if (isCallable(argument)) return argument;
|
|
462
|
+
var aCallable$1 = function (argument) {
|
|
463
|
+
if (isCallable$c(argument)) return argument;
|
|
425
464
|
throw TypeError$9(tryToString(argument) + ' is not a function');
|
|
426
465
|
};
|
|
427
466
|
|
|
467
|
+
var aCallable = aCallable$1;
|
|
468
|
+
|
|
428
469
|
// `GetMethod` abstract operation
|
|
429
470
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
430
|
-
var getMethod = function (V, P) {
|
|
471
|
+
var getMethod$4 = function (V, P) {
|
|
431
472
|
var func = V[P];
|
|
432
473
|
return func == null ? undefined : aCallable(func);
|
|
433
474
|
};
|
|
434
475
|
|
|
435
|
-
var
|
|
476
|
+
var global$n = global$v;
|
|
477
|
+
var call$9 = functionCall;
|
|
478
|
+
var isCallable$b = isCallable$g;
|
|
479
|
+
var isObject$8 = isObject$9;
|
|
480
|
+
|
|
481
|
+
var TypeError$8 = global$n.TypeError;
|
|
436
482
|
|
|
437
483
|
// `OrdinaryToPrimitive` abstract operation
|
|
438
484
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
439
|
-
var ordinaryToPrimitive = function (input, pref) {
|
|
485
|
+
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
440
486
|
var fn, val;
|
|
441
|
-
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val =
|
|
442
|
-
if (isCallable(fn = input.valueOf) && !isObject(val =
|
|
443
|
-
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val =
|
|
487
|
+
if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$8(val = call$9(fn, input))) return val;
|
|
488
|
+
if (isCallable$b(fn = input.valueOf) && !isObject$8(val = call$9(fn, input))) return val;
|
|
489
|
+
if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$8(val = call$9(fn, input))) return val;
|
|
444
490
|
throw TypeError$8("Can't convert object to primitive value");
|
|
445
491
|
};
|
|
446
492
|
|
|
493
|
+
var shared$4 = {exports: {}};
|
|
494
|
+
|
|
495
|
+
var global$m = global$v;
|
|
496
|
+
|
|
447
497
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
448
|
-
var defineProperty$
|
|
498
|
+
var defineProperty$2 = Object.defineProperty;
|
|
449
499
|
|
|
450
|
-
var setGlobal = function (key, value) {
|
|
500
|
+
var setGlobal$3 = function (key, value) {
|
|
451
501
|
try {
|
|
452
|
-
defineProperty$
|
|
502
|
+
defineProperty$2(global$m, key, { value: value, configurable: true, writable: true });
|
|
453
503
|
} catch (error) {
|
|
454
|
-
|
|
504
|
+
global$m[key] = value;
|
|
455
505
|
} return value;
|
|
456
506
|
};
|
|
457
507
|
|
|
508
|
+
var global$l = global$v;
|
|
509
|
+
var setGlobal$2 = setGlobal$3;
|
|
510
|
+
|
|
458
511
|
var SHARED = '__core-js_shared__';
|
|
459
|
-
var store$
|
|
512
|
+
var store$3 = global$l[SHARED] || setGlobal$2(SHARED, {});
|
|
460
513
|
|
|
461
|
-
var sharedStore = store$
|
|
514
|
+
var sharedStore = store$3;
|
|
462
515
|
|
|
463
|
-
var
|
|
464
|
-
|
|
465
|
-
|
|
516
|
+
var store$2 = sharedStore;
|
|
517
|
+
|
|
518
|
+
(shared$4.exports = function (key, value) {
|
|
519
|
+
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
466
520
|
})('versions', []).push({
|
|
467
|
-
version: '3.22.
|
|
521
|
+
version: '3.22.5',
|
|
468
522
|
mode: 'global',
|
|
469
523
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
470
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.22.
|
|
524
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE',
|
|
471
525
|
source: 'https://github.com/zloirock/core-js'
|
|
472
526
|
});
|
|
473
|
-
});
|
|
474
527
|
|
|
475
|
-
var
|
|
528
|
+
var global$k = global$v;
|
|
529
|
+
var requireObjectCoercible$4 = requireObjectCoercible$6;
|
|
530
|
+
|
|
531
|
+
var Object$2 = global$k.Object;
|
|
476
532
|
|
|
477
533
|
// `ToObject` abstract operation
|
|
478
534
|
// https://tc39.es/ecma262/#sec-toobject
|
|
479
|
-
var toObject = function (argument) {
|
|
480
|
-
return Object$2(requireObjectCoercible(argument));
|
|
535
|
+
var toObject$3 = function (argument) {
|
|
536
|
+
return Object$2(requireObjectCoercible$4(argument));
|
|
481
537
|
};
|
|
482
538
|
|
|
483
|
-
var
|
|
539
|
+
var uncurryThis$e = functionUncurryThis;
|
|
540
|
+
var toObject$2 = toObject$3;
|
|
541
|
+
|
|
542
|
+
var hasOwnProperty = uncurryThis$e({}.hasOwnProperty);
|
|
484
543
|
|
|
485
544
|
// `HasOwnProperty` abstract operation
|
|
486
545
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
487
546
|
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
488
547
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
489
|
-
return hasOwnProperty(toObject(it), key);
|
|
548
|
+
return hasOwnProperty(toObject$2(it), key);
|
|
490
549
|
};
|
|
491
550
|
|
|
551
|
+
var uncurryThis$d = functionUncurryThis;
|
|
552
|
+
|
|
492
553
|
var id = 0;
|
|
493
554
|
var postfix = Math.random();
|
|
494
|
-
var toString =
|
|
555
|
+
var toString$7 = uncurryThis$d(1.0.toString);
|
|
495
556
|
|
|
496
|
-
var uid = function (key) {
|
|
497
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
557
|
+
var uid$2 = function (key) {
|
|
558
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$7(++id + postfix, 36);
|
|
498
559
|
};
|
|
499
560
|
|
|
500
|
-
var
|
|
501
|
-
var
|
|
561
|
+
var global$j = global$v;
|
|
562
|
+
var shared$3 = shared$4.exports;
|
|
563
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
564
|
+
var uid$1 = uid$2;
|
|
565
|
+
var NATIVE_SYMBOL = nativeSymbol;
|
|
566
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
567
|
+
|
|
568
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
569
|
+
var Symbol$1 = global$j.Symbol;
|
|
502
570
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
503
|
-
var createWellKnownSymbol =
|
|
571
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
504
572
|
|
|
505
|
-
var wellKnownSymbol = function (name) {
|
|
506
|
-
if (!
|
|
573
|
+
var wellKnownSymbol$b = function (name) {
|
|
574
|
+
if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
507
575
|
var description = 'Symbol.' + name;
|
|
508
|
-
if (
|
|
576
|
+
if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
|
|
509
577
|
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
510
|
-
} else if (
|
|
578
|
+
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
511
579
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
512
580
|
} else {
|
|
513
581
|
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
@@ -515,69 +583,97 @@
|
|
|
515
583
|
} return WellKnownSymbolsStore[name];
|
|
516
584
|
};
|
|
517
585
|
|
|
518
|
-
var
|
|
519
|
-
var
|
|
586
|
+
var global$i = global$v;
|
|
587
|
+
var call$8 = functionCall;
|
|
588
|
+
var isObject$7 = isObject$9;
|
|
589
|
+
var isSymbol$1 = isSymbol$2;
|
|
590
|
+
var getMethod$3 = getMethod$4;
|
|
591
|
+
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
592
|
+
var wellKnownSymbol$a = wellKnownSymbol$b;
|
|
593
|
+
|
|
594
|
+
var TypeError$7 = global$i.TypeError;
|
|
595
|
+
var TO_PRIMITIVE = wellKnownSymbol$a('toPrimitive');
|
|
520
596
|
|
|
521
597
|
// `ToPrimitive` abstract operation
|
|
522
598
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
523
|
-
var toPrimitive = function (input, pref) {
|
|
524
|
-
if (!isObject(input) || isSymbol(input)) return input;
|
|
525
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
599
|
+
var toPrimitive$1 = function (input, pref) {
|
|
600
|
+
if (!isObject$7(input) || isSymbol$1(input)) return input;
|
|
601
|
+
var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
|
|
526
602
|
var result;
|
|
527
603
|
if (exoticToPrim) {
|
|
528
604
|
if (pref === undefined) pref = 'default';
|
|
529
|
-
result =
|
|
530
|
-
if (!isObject(result) || isSymbol(result)) return result;
|
|
605
|
+
result = call$8(exoticToPrim, input, pref);
|
|
606
|
+
if (!isObject$7(result) || isSymbol$1(result)) return result;
|
|
531
607
|
throw TypeError$7("Can't convert object to primitive value");
|
|
532
608
|
}
|
|
533
609
|
if (pref === undefined) pref = 'number';
|
|
534
610
|
return ordinaryToPrimitive(input, pref);
|
|
535
611
|
};
|
|
536
612
|
|
|
613
|
+
var toPrimitive = toPrimitive$1;
|
|
614
|
+
var isSymbol = isSymbol$2;
|
|
615
|
+
|
|
537
616
|
// `ToPropertyKey` abstract operation
|
|
538
617
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
539
|
-
var toPropertyKey = function (argument) {
|
|
618
|
+
var toPropertyKey$3 = function (argument) {
|
|
540
619
|
var key = toPrimitive(argument, 'string');
|
|
541
620
|
return isSymbol(key) ? key : key + '';
|
|
542
621
|
};
|
|
543
622
|
|
|
544
|
-
var
|
|
623
|
+
var global$h = global$v;
|
|
624
|
+
var isObject$6 = isObject$9;
|
|
625
|
+
|
|
626
|
+
var document$1 = global$h.document;
|
|
545
627
|
// typeof document.createElement is 'object' in old IE
|
|
546
|
-
var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
|
|
628
|
+
var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
|
|
547
629
|
|
|
548
|
-
var documentCreateElement = function (it) {
|
|
630
|
+
var documentCreateElement$1 = function (it) {
|
|
549
631
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
550
632
|
};
|
|
551
633
|
|
|
634
|
+
var DESCRIPTORS$a = descriptors;
|
|
635
|
+
var fails$d = fails$i;
|
|
636
|
+
var createElement = documentCreateElement$1;
|
|
637
|
+
|
|
552
638
|
// Thanks to IE8 for its funny defineProperty
|
|
553
|
-
var ie8DomDefine = !
|
|
639
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$d(function () {
|
|
554
640
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
555
|
-
return Object.defineProperty(
|
|
641
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
|
556
642
|
get: function () { return 7; }
|
|
557
643
|
}).a != 7;
|
|
558
644
|
});
|
|
559
645
|
|
|
646
|
+
var DESCRIPTORS$9 = descriptors;
|
|
647
|
+
var call$7 = functionCall;
|
|
648
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
649
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
650
|
+
var toIndexedObject$4 = toIndexedObject$5;
|
|
651
|
+
var toPropertyKey$2 = toPropertyKey$3;
|
|
652
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
653
|
+
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
654
|
+
|
|
560
655
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
561
656
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
562
657
|
|
|
563
658
|
// `Object.getOwnPropertyDescriptor` method
|
|
564
659
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
565
|
-
|
|
566
|
-
O = toIndexedObject(O);
|
|
567
|
-
P = toPropertyKey(P);
|
|
568
|
-
if (
|
|
660
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
661
|
+
O = toIndexedObject$4(O);
|
|
662
|
+
P = toPropertyKey$2(P);
|
|
663
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
569
664
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
570
665
|
} catch (error) { /* empty */ }
|
|
571
|
-
if (
|
|
666
|
+
if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$7(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
572
667
|
};
|
|
573
668
|
|
|
574
|
-
var
|
|
575
|
-
|
|
576
|
-
|
|
669
|
+
var objectDefineProperty = {};
|
|
670
|
+
|
|
671
|
+
var DESCRIPTORS$8 = descriptors;
|
|
672
|
+
var fails$c = fails$i;
|
|
577
673
|
|
|
578
674
|
// V8 ~ Chrome 36-
|
|
579
675
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
580
|
-
var v8PrototypeDefineBug =
|
|
676
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$c(function () {
|
|
581
677
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
582
678
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
583
679
|
value: 42,
|
|
@@ -585,16 +681,26 @@
|
|
|
585
681
|
}).prototype != 42;
|
|
586
682
|
});
|
|
587
683
|
|
|
588
|
-
var
|
|
589
|
-
var
|
|
684
|
+
var global$g = global$v;
|
|
685
|
+
var isObject$5 = isObject$9;
|
|
686
|
+
|
|
687
|
+
var String$3 = global$g.String;
|
|
688
|
+
var TypeError$6 = global$g.TypeError;
|
|
590
689
|
|
|
591
690
|
// `Assert: Type(argument) is Object`
|
|
592
|
-
var anObject = function (argument) {
|
|
593
|
-
if (isObject(argument)) return argument;
|
|
691
|
+
var anObject$b = function (argument) {
|
|
692
|
+
if (isObject$5(argument)) return argument;
|
|
594
693
|
throw TypeError$6(String$3(argument) + ' is not an object');
|
|
595
694
|
};
|
|
596
695
|
|
|
597
|
-
var
|
|
696
|
+
var global$f = global$v;
|
|
697
|
+
var DESCRIPTORS$7 = descriptors;
|
|
698
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
699
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
700
|
+
var anObject$a = anObject$b;
|
|
701
|
+
var toPropertyKey$1 = toPropertyKey$3;
|
|
702
|
+
|
|
703
|
+
var TypeError$5 = global$f.TypeError;
|
|
598
704
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
599
705
|
var $defineProperty = Object.defineProperty;
|
|
600
706
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -605,10 +711,10 @@
|
|
|
605
711
|
|
|
606
712
|
// `Object.defineProperty` method
|
|
607
713
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
608
|
-
|
|
609
|
-
anObject(O);
|
|
610
|
-
P = toPropertyKey(P);
|
|
611
|
-
anObject(Attributes);
|
|
714
|
+
objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
715
|
+
anObject$a(O);
|
|
716
|
+
P = toPropertyKey$1(P);
|
|
717
|
+
anObject$a(Attributes);
|
|
612
718
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
613
719
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
614
720
|
if (current && current[WRITABLE]) {
|
|
@@ -621,10 +727,10 @@
|
|
|
621
727
|
}
|
|
622
728
|
} return $defineProperty(O, P, Attributes);
|
|
623
729
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
624
|
-
anObject(O);
|
|
625
|
-
P = toPropertyKey(P);
|
|
626
|
-
anObject(Attributes);
|
|
627
|
-
if (
|
|
730
|
+
anObject$a(O);
|
|
731
|
+
P = toPropertyKey$1(P);
|
|
732
|
+
anObject$a(Attributes);
|
|
733
|
+
if (IE8_DOM_DEFINE) try {
|
|
628
734
|
return $defineProperty(O, P, Attributes);
|
|
629
735
|
} catch (error) { /* empty */ }
|
|
630
736
|
if ('get' in Attributes || 'set' in Attributes) throw TypeError$5('Accessors not supported');
|
|
@@ -632,25 +738,30 @@
|
|
|
632
738
|
return O;
|
|
633
739
|
};
|
|
634
740
|
|
|
635
|
-
var
|
|
636
|
-
|
|
637
|
-
|
|
741
|
+
var DESCRIPTORS$6 = descriptors;
|
|
742
|
+
var definePropertyModule$4 = objectDefineProperty;
|
|
743
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
638
744
|
|
|
639
|
-
var createNonEnumerableProperty =
|
|
640
|
-
return
|
|
745
|
+
var createNonEnumerableProperty$5 = DESCRIPTORS$6 ? function (object, key, value) {
|
|
746
|
+
return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
|
|
641
747
|
} : function (object, key, value) {
|
|
642
748
|
object[key] = value;
|
|
643
749
|
return object;
|
|
644
750
|
};
|
|
645
751
|
|
|
752
|
+
var makeBuiltIn$2 = {exports: {}};
|
|
753
|
+
|
|
754
|
+
var DESCRIPTORS$5 = descriptors;
|
|
755
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
756
|
+
|
|
646
757
|
var FunctionPrototype$1 = Function.prototype;
|
|
647
758
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
648
|
-
var getDescriptor =
|
|
759
|
+
var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
|
|
649
760
|
|
|
650
|
-
var EXISTS =
|
|
761
|
+
var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
|
|
651
762
|
// additional protection from minified / mangled / dropped function names
|
|
652
763
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
653
|
-
var CONFIGURABLE = EXISTS && (!
|
|
764
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
654
765
|
|
|
655
766
|
var functionName = {
|
|
656
767
|
EXISTS: EXISTS,
|
|
@@ -658,32 +769,53 @@
|
|
|
658
769
|
CONFIGURABLE: CONFIGURABLE
|
|
659
770
|
};
|
|
660
771
|
|
|
661
|
-
var
|
|
772
|
+
var uncurryThis$c = functionUncurryThis;
|
|
773
|
+
var isCallable$a = isCallable$g;
|
|
774
|
+
var store$1 = sharedStore;
|
|
775
|
+
|
|
776
|
+
var functionToString = uncurryThis$c(Function.toString);
|
|
662
777
|
|
|
663
778
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
664
|
-
if (!isCallable(
|
|
665
|
-
|
|
779
|
+
if (!isCallable$a(store$1.inspectSource)) {
|
|
780
|
+
store$1.inspectSource = function (it) {
|
|
666
781
|
return functionToString(it);
|
|
667
782
|
};
|
|
668
783
|
}
|
|
669
784
|
|
|
670
|
-
var inspectSource =
|
|
785
|
+
var inspectSource$3 = store$1.inspectSource;
|
|
671
786
|
|
|
672
|
-
var
|
|
787
|
+
var global$e = global$v;
|
|
788
|
+
var isCallable$9 = isCallable$g;
|
|
789
|
+
var inspectSource$2 = inspectSource$3;
|
|
673
790
|
|
|
674
|
-
var
|
|
791
|
+
var WeakMap$1 = global$e.WeakMap;
|
|
675
792
|
|
|
676
|
-
var
|
|
793
|
+
var nativeWeakMap = isCallable$9(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
|
|
677
794
|
|
|
678
|
-
var
|
|
795
|
+
var shared$2 = shared$4.exports;
|
|
796
|
+
var uid = uid$2;
|
|
797
|
+
|
|
798
|
+
var keys$1 = shared$2('keys');
|
|
799
|
+
|
|
800
|
+
var sharedKey$2 = function (key) {
|
|
679
801
|
return keys$1[key] || (keys$1[key] = uid(key));
|
|
680
802
|
};
|
|
681
803
|
|
|
682
|
-
var hiddenKeys$
|
|
804
|
+
var hiddenKeys$4 = {};
|
|
805
|
+
|
|
806
|
+
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
807
|
+
var global$d = global$v;
|
|
808
|
+
var uncurryThis$b = functionUncurryThis;
|
|
809
|
+
var isObject$4 = isObject$9;
|
|
810
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
811
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
812
|
+
var shared$1 = sharedStore;
|
|
813
|
+
var sharedKey$1 = sharedKey$2;
|
|
814
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
683
815
|
|
|
684
816
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
685
|
-
var TypeError$4 =
|
|
686
|
-
var WeakMap =
|
|
817
|
+
var TypeError$4 = global$d.TypeError;
|
|
818
|
+
var WeakMap = global$d.WeakMap;
|
|
687
819
|
var set, get, has;
|
|
688
820
|
|
|
689
821
|
var enforce = function (it) {
|
|
@@ -693,17 +825,17 @@
|
|
|
693
825
|
var getterFor = function (TYPE) {
|
|
694
826
|
return function (it) {
|
|
695
827
|
var state;
|
|
696
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
828
|
+
if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
|
|
697
829
|
throw TypeError$4('Incompatible receiver, ' + TYPE + ' required');
|
|
698
830
|
} return state;
|
|
699
831
|
};
|
|
700
832
|
};
|
|
701
833
|
|
|
702
|
-
if (
|
|
703
|
-
var store =
|
|
704
|
-
var wmget =
|
|
705
|
-
var wmhas =
|
|
706
|
-
var wmset =
|
|
834
|
+
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
835
|
+
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
836
|
+
var wmget = uncurryThis$b(store.get);
|
|
837
|
+
var wmhas = uncurryThis$b(store.has);
|
|
838
|
+
var wmset = uncurryThis$b(store.set);
|
|
707
839
|
set = function (it, metadata) {
|
|
708
840
|
if (wmhas(store, it)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
709
841
|
metadata.facade = it;
|
|
@@ -717,19 +849,19 @@
|
|
|
717
849
|
return wmhas(store, it);
|
|
718
850
|
};
|
|
719
851
|
} else {
|
|
720
|
-
var STATE = sharedKey('state');
|
|
721
|
-
hiddenKeys$
|
|
852
|
+
var STATE = sharedKey$1('state');
|
|
853
|
+
hiddenKeys$3[STATE] = true;
|
|
722
854
|
set = function (it, metadata) {
|
|
723
|
-
if (
|
|
855
|
+
if (hasOwn$5(it, STATE)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
724
856
|
metadata.facade = it;
|
|
725
|
-
createNonEnumerableProperty(it, STATE, metadata);
|
|
857
|
+
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
726
858
|
return metadata;
|
|
727
859
|
};
|
|
728
860
|
get = function (it) {
|
|
729
|
-
return
|
|
861
|
+
return hasOwn$5(it, STATE) ? it[STATE] : {};
|
|
730
862
|
};
|
|
731
863
|
has = function (it) {
|
|
732
|
-
return
|
|
864
|
+
return hasOwn$5(it, STATE);
|
|
733
865
|
};
|
|
734
866
|
}
|
|
735
867
|
|
|
@@ -741,55 +873,69 @@
|
|
|
741
873
|
getterFor: getterFor
|
|
742
874
|
};
|
|
743
875
|
|
|
744
|
-
var
|
|
745
|
-
var
|
|
876
|
+
var fails$b = fails$i;
|
|
877
|
+
var isCallable$8 = isCallable$g;
|
|
878
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
879
|
+
var DESCRIPTORS$4 = descriptors;
|
|
746
880
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
881
|
+
var inspectSource$1 = inspectSource$3;
|
|
882
|
+
var InternalStateModule = internalState;
|
|
747
883
|
|
|
884
|
+
var enforceInternalState$1 = InternalStateModule.enforce;
|
|
885
|
+
var getInternalState$1 = InternalStateModule.get;
|
|
886
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
887
|
+
var defineProperty$1 = Object.defineProperty;
|
|
748
888
|
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
var getInternalState = internalState.get;
|
|
752
|
-
|
|
753
|
-
var CONFIGURABLE_LENGTH = !fails(function () {
|
|
754
|
-
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
889
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$b(function () {
|
|
890
|
+
return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
755
891
|
});
|
|
756
892
|
|
|
757
893
|
var TEMPLATE = String(String).split('String');
|
|
758
894
|
|
|
759
|
-
var makeBuiltIn =
|
|
895
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
760
896
|
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
761
897
|
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
762
898
|
}
|
|
763
899
|
if (options && options.getter) name = 'get ' + name;
|
|
764
900
|
if (options && options.setter) name = 'set ' + name;
|
|
765
|
-
if (!
|
|
766
|
-
defineProperty(value, 'name', { value: name, configurable: true });
|
|
901
|
+
if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
902
|
+
defineProperty$1(value, 'name', { value: name, configurable: true });
|
|
767
903
|
}
|
|
768
|
-
if (CONFIGURABLE_LENGTH && options &&
|
|
769
|
-
defineProperty(value, 'length', { value: options.arity });
|
|
904
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
|
|
905
|
+
defineProperty$1(value, 'length', { value: options.arity });
|
|
770
906
|
}
|
|
771
|
-
|
|
772
|
-
|
|
907
|
+
if (options && hasOwn$4(options, 'constructor') && options.constructor) {
|
|
908
|
+
if (DESCRIPTORS$4) try {
|
|
909
|
+
defineProperty$1(value, 'prototype', { writable: false });
|
|
910
|
+
} catch (error) { /* empty */ }
|
|
911
|
+
} else value.prototype = undefined;
|
|
912
|
+
var state = enforceInternalState$1(value);
|
|
913
|
+
if (!hasOwn$4(state, 'source')) {
|
|
773
914
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
774
915
|
} return value;
|
|
775
916
|
};
|
|
776
917
|
|
|
777
918
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
778
919
|
// eslint-disable-next-line no-extend-native -- required
|
|
779
|
-
Function.prototype.toString = makeBuiltIn(function toString() {
|
|
780
|
-
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
|
920
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
921
|
+
return isCallable$8(this) && getInternalState$1(this).source || inspectSource$1(this);
|
|
781
922
|
}, 'toString');
|
|
782
|
-
});
|
|
783
923
|
|
|
784
|
-
var
|
|
924
|
+
var global$c = global$v;
|
|
925
|
+
var isCallable$7 = isCallable$g;
|
|
926
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
927
|
+
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
928
|
+
var setGlobal$1 = setGlobal$3;
|
|
929
|
+
|
|
930
|
+
var defineBuiltIn$4 = function (O, key, value, options) {
|
|
785
931
|
var unsafe = options ? !!options.unsafe : false;
|
|
786
932
|
var simple = options ? !!options.enumerable : false;
|
|
787
933
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
788
934
|
var name = options && options.name !== undefined ? options.name : key;
|
|
789
|
-
if (isCallable(value))
|
|
790
|
-
if (O ===
|
|
935
|
+
if (isCallable$7(value)) makeBuiltIn(value, name, options);
|
|
936
|
+
if (O === global$c) {
|
|
791
937
|
if (simple) O[key] = value;
|
|
792
|
-
else setGlobal(key, value);
|
|
938
|
+
else setGlobal$1(key, value);
|
|
793
939
|
return O;
|
|
794
940
|
} else if (!unsafe) {
|
|
795
941
|
delete O[key];
|
|
@@ -797,51 +943,63 @@
|
|
|
797
943
|
simple = true;
|
|
798
944
|
}
|
|
799
945
|
if (simple) O[key] = value;
|
|
800
|
-
else createNonEnumerableProperty(O, key, value);
|
|
946
|
+
else createNonEnumerableProperty$3(O, key, value);
|
|
801
947
|
return O;
|
|
802
948
|
};
|
|
803
949
|
|
|
950
|
+
var objectGetOwnPropertyNames = {};
|
|
951
|
+
|
|
804
952
|
var ceil = Math.ceil;
|
|
805
953
|
var floor$1 = Math.floor;
|
|
806
954
|
|
|
807
955
|
// `ToIntegerOrInfinity` abstract operation
|
|
808
956
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
809
|
-
var toIntegerOrInfinity = function (argument) {
|
|
957
|
+
var toIntegerOrInfinity$4 = function (argument) {
|
|
810
958
|
var number = +argument;
|
|
811
959
|
// eslint-disable-next-line no-self-compare -- safe
|
|
812
960
|
return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
|
|
813
961
|
};
|
|
814
962
|
|
|
963
|
+
var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
|
|
964
|
+
|
|
815
965
|
var max$1 = Math.max;
|
|
816
966
|
var min$2 = Math.min;
|
|
817
967
|
|
|
818
968
|
// Helper for a popular repeating case of the spec:
|
|
819
969
|
// Let integer be ? ToInteger(index).
|
|
820
970
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
821
|
-
var toAbsoluteIndex = function (index, length) {
|
|
822
|
-
var integer = toIntegerOrInfinity(index);
|
|
971
|
+
var toAbsoluteIndex$1 = function (index, length) {
|
|
972
|
+
var integer = toIntegerOrInfinity$3(index);
|
|
823
973
|
return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
|
|
824
974
|
};
|
|
825
975
|
|
|
976
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
|
|
977
|
+
|
|
826
978
|
var min$1 = Math.min;
|
|
827
979
|
|
|
828
980
|
// `ToLength` abstract operation
|
|
829
981
|
// https://tc39.es/ecma262/#sec-tolength
|
|
830
|
-
var toLength = function (argument) {
|
|
831
|
-
return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
982
|
+
var toLength$3 = function (argument) {
|
|
983
|
+
return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
832
984
|
};
|
|
833
985
|
|
|
986
|
+
var toLength$2 = toLength$3;
|
|
987
|
+
|
|
834
988
|
// `LengthOfArrayLike` abstract operation
|
|
835
989
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
836
|
-
var lengthOfArrayLike = function (obj) {
|
|
837
|
-
return toLength(obj.length);
|
|
990
|
+
var lengthOfArrayLike$2 = function (obj) {
|
|
991
|
+
return toLength$2(obj.length);
|
|
838
992
|
};
|
|
839
993
|
|
|
994
|
+
var toIndexedObject$3 = toIndexedObject$5;
|
|
995
|
+
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
996
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
997
|
+
|
|
840
998
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
841
999
|
var createMethod$2 = function (IS_INCLUDES) {
|
|
842
1000
|
return function ($this, el, fromIndex) {
|
|
843
|
-
var O = toIndexedObject($this);
|
|
844
|
-
var length = lengthOfArrayLike(O);
|
|
1001
|
+
var O = toIndexedObject$3($this);
|
|
1002
|
+
var length = lengthOfArrayLike$1(O);
|
|
845
1003
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
846
1004
|
var value;
|
|
847
1005
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -866,26 +1024,29 @@
|
|
|
866
1024
|
indexOf: createMethod$2(false)
|
|
867
1025
|
};
|
|
868
1026
|
|
|
1027
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1028
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1029
|
+
var toIndexedObject$2 = toIndexedObject$5;
|
|
869
1030
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
1031
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
|
870
1032
|
|
|
871
|
-
|
|
872
|
-
var push$2 = functionUncurryThis([].push);
|
|
1033
|
+
var push$2 = uncurryThis$a([].push);
|
|
873
1034
|
|
|
874
1035
|
var objectKeysInternal = function (object, names) {
|
|
875
|
-
var O = toIndexedObject(object);
|
|
1036
|
+
var O = toIndexedObject$2(object);
|
|
876
1037
|
var i = 0;
|
|
877
1038
|
var result = [];
|
|
878
1039
|
var key;
|
|
879
|
-
for (key in O) !
|
|
1040
|
+
for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$2(result, key);
|
|
880
1041
|
// Don't enum bug & hidden keys
|
|
881
|
-
while (names.length > i) if (
|
|
1042
|
+
while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
|
|
882
1043
|
~indexOf$1(result, key) || push$2(result, key);
|
|
883
1044
|
}
|
|
884
1045
|
return result;
|
|
885
1046
|
};
|
|
886
1047
|
|
|
887
1048
|
// IE8- don't enum bug keys
|
|
888
|
-
var enumBugKeys = [
|
|
1049
|
+
var enumBugKeys$3 = [
|
|
889
1050
|
'constructor',
|
|
890
1051
|
'hasOwnProperty',
|
|
891
1052
|
'isPrototypeOf',
|
|
@@ -895,73 +1056,85 @@
|
|
|
895
1056
|
'valueOf'
|
|
896
1057
|
];
|
|
897
1058
|
|
|
898
|
-
var
|
|
1059
|
+
var internalObjectKeys$1 = objectKeysInternal;
|
|
1060
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
|
1061
|
+
|
|
1062
|
+
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
899
1063
|
|
|
900
1064
|
// `Object.getOwnPropertyNames` method
|
|
901
1065
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
902
1066
|
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
903
|
-
|
|
904
|
-
return
|
|
1067
|
+
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
1068
|
+
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
905
1069
|
};
|
|
906
1070
|
|
|
907
|
-
var
|
|
908
|
-
f: f$2
|
|
909
|
-
};
|
|
1071
|
+
var objectGetOwnPropertySymbols = {};
|
|
910
1072
|
|
|
911
1073
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
912
|
-
|
|
1074
|
+
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
913
1075
|
|
|
914
|
-
var
|
|
915
|
-
|
|
916
|
-
|
|
1076
|
+
var getBuiltIn$3 = getBuiltIn$6;
|
|
1077
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1078
|
+
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1079
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1080
|
+
var anObject$9 = anObject$b;
|
|
917
1081
|
|
|
918
|
-
var concat$1 =
|
|
1082
|
+
var concat$1 = uncurryThis$9([].concat);
|
|
919
1083
|
|
|
920
1084
|
// all object keys, includes non-enumerable and symbols
|
|
921
|
-
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
922
|
-
var keys =
|
|
923
|
-
var getOwnPropertySymbols =
|
|
1085
|
+
var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1086
|
+
var keys = getOwnPropertyNamesModule.f(anObject$9(it));
|
|
1087
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
924
1088
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
925
1089
|
};
|
|
926
1090
|
|
|
927
|
-
var
|
|
1091
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1092
|
+
var ownKeys = ownKeys$1;
|
|
1093
|
+
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1094
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
1095
|
+
|
|
1096
|
+
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
928
1097
|
var keys = ownKeys(source);
|
|
929
|
-
var defineProperty =
|
|
930
|
-
var getOwnPropertyDescriptor =
|
|
1098
|
+
var defineProperty = definePropertyModule$3.f;
|
|
1099
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
931
1100
|
for (var i = 0; i < keys.length; i++) {
|
|
932
1101
|
var key = keys[i];
|
|
933
|
-
if (!
|
|
1102
|
+
if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
|
|
934
1103
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
935
1104
|
}
|
|
936
1105
|
}
|
|
937
1106
|
};
|
|
938
1107
|
|
|
1108
|
+
var fails$a = fails$i;
|
|
1109
|
+
var isCallable$6 = isCallable$g;
|
|
1110
|
+
|
|
939
1111
|
var replacement = /#|\.prototype\./;
|
|
940
1112
|
|
|
941
|
-
var isForced = function (feature, detection) {
|
|
1113
|
+
var isForced$2 = function (feature, detection) {
|
|
942
1114
|
var value = data[normalize(feature)];
|
|
943
1115
|
return value == POLYFILL ? true
|
|
944
1116
|
: value == NATIVE ? false
|
|
945
|
-
: isCallable(detection) ? fails(detection)
|
|
1117
|
+
: isCallable$6(detection) ? fails$a(detection)
|
|
946
1118
|
: !!detection;
|
|
947
1119
|
};
|
|
948
1120
|
|
|
949
|
-
var normalize = isForced.normalize = function (string) {
|
|
1121
|
+
var normalize = isForced$2.normalize = function (string) {
|
|
950
1122
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
951
1123
|
};
|
|
952
1124
|
|
|
953
|
-
var data = isForced.data = {};
|
|
954
|
-
var NATIVE = isForced.NATIVE = 'N';
|
|
955
|
-
var POLYFILL = isForced.POLYFILL = 'P';
|
|
1125
|
+
var data = isForced$2.data = {};
|
|
1126
|
+
var NATIVE = isForced$2.NATIVE = 'N';
|
|
1127
|
+
var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
956
1128
|
|
|
957
|
-
var isForced_1 = isForced;
|
|
1129
|
+
var isForced_1 = isForced$2;
|
|
958
1130
|
|
|
1131
|
+
var global$b = global$v;
|
|
959
1132
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
1133
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
1134
|
+
var defineBuiltIn$3 = defineBuiltIn$4;
|
|
1135
|
+
var setGlobal = setGlobal$3;
|
|
1136
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1137
|
+
var isForced$1 = isForced_1;
|
|
965
1138
|
|
|
966
1139
|
/*
|
|
967
1140
|
options.target - name of the target object
|
|
@@ -984,11 +1157,11 @@
|
|
|
984
1157
|
var STATIC = options.stat;
|
|
985
1158
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
986
1159
|
if (GLOBAL) {
|
|
987
|
-
target =
|
|
1160
|
+
target = global$b;
|
|
988
1161
|
} else if (STATIC) {
|
|
989
|
-
target =
|
|
1162
|
+
target = global$b[TARGET] || setGlobal(TARGET, {});
|
|
990
1163
|
} else {
|
|
991
|
-
target = (
|
|
1164
|
+
target = (global$b[TARGET] || {}).prototype;
|
|
992
1165
|
}
|
|
993
1166
|
if (target) for (key in source) {
|
|
994
1167
|
sourceProperty = source[key];
|
|
@@ -996,7 +1169,7 @@
|
|
|
996
1169
|
descriptor = getOwnPropertyDescriptor(target, key);
|
|
997
1170
|
targetProperty = descriptor && descriptor.value;
|
|
998
1171
|
} else targetProperty = target[key];
|
|
999
|
-
FORCED =
|
|
1172
|
+
FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1000
1173
|
// contained in target
|
|
1001
1174
|
if (!FORCED && targetProperty !== undefined) {
|
|
1002
1175
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
@@ -1004,21 +1177,29 @@
|
|
|
1004
1177
|
}
|
|
1005
1178
|
// add a flag to not completely full polyfills
|
|
1006
1179
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1007
|
-
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
1180
|
+
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
1008
1181
|
}
|
|
1009
|
-
defineBuiltIn(target, key, sourceProperty, options);
|
|
1182
|
+
defineBuiltIn$3(target, key, sourceProperty, options);
|
|
1010
1183
|
}
|
|
1011
1184
|
};
|
|
1012
1185
|
|
|
1013
|
-
var
|
|
1186
|
+
var wellKnownSymbol$9 = wellKnownSymbol$b;
|
|
1187
|
+
|
|
1188
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$9('toStringTag');
|
|
1014
1189
|
var test = {};
|
|
1015
1190
|
|
|
1016
1191
|
test[TO_STRING_TAG$1] = 'z';
|
|
1017
1192
|
|
|
1018
1193
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1019
1194
|
|
|
1020
|
-
var
|
|
1021
|
-
var
|
|
1195
|
+
var global$a = global$v;
|
|
1196
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1197
|
+
var isCallable$5 = isCallable$g;
|
|
1198
|
+
var classofRaw = classofRaw$1;
|
|
1199
|
+
var wellKnownSymbol$8 = wellKnownSymbol$b;
|
|
1200
|
+
|
|
1201
|
+
var TO_STRING_TAG = wellKnownSymbol$8('toStringTag');
|
|
1202
|
+
var Object$1 = global$a.Object;
|
|
1022
1203
|
|
|
1023
1204
|
// ES3 wrong here
|
|
1024
1205
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -1031,7 +1212,7 @@
|
|
|
1031
1212
|
};
|
|
1032
1213
|
|
|
1033
1214
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1034
|
-
var classof =
|
|
1215
|
+
var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1035
1216
|
var O, tag, result;
|
|
1036
1217
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1037
1218
|
// @@toStringTag case
|
|
@@ -1039,20 +1220,25 @@
|
|
|
1039
1220
|
// builtinTag case
|
|
1040
1221
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1041
1222
|
// ES3 arguments fallback
|
|
1042
|
-
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
1223
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
1043
1224
|
};
|
|
1044
1225
|
|
|
1045
|
-
var
|
|
1226
|
+
var global$9 = global$v;
|
|
1227
|
+
var classof$4 = classof$5;
|
|
1046
1228
|
|
|
1047
|
-
var
|
|
1048
|
-
|
|
1229
|
+
var String$2 = global$9.String;
|
|
1230
|
+
|
|
1231
|
+
var toString$6 = function (argument) {
|
|
1232
|
+
if (classof$4(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1049
1233
|
return String$2(argument);
|
|
1050
1234
|
};
|
|
1051
1235
|
|
|
1236
|
+
var anObject$8 = anObject$b;
|
|
1237
|
+
|
|
1052
1238
|
// `RegExp.prototype.flags` getter implementation
|
|
1053
1239
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1054
|
-
var regexpFlags = function () {
|
|
1055
|
-
var that = anObject(this);
|
|
1240
|
+
var regexpFlags$1 = function () {
|
|
1241
|
+
var that = anObject$8(this);
|
|
1056
1242
|
var result = '';
|
|
1057
1243
|
if (that.hasIndices) result += 'd';
|
|
1058
1244
|
if (that.global) result += 'g';
|
|
@@ -1064,10 +1250,13 @@
|
|
|
1064
1250
|
return result;
|
|
1065
1251
|
};
|
|
1066
1252
|
|
|
1253
|
+
var fails$9 = fails$i;
|
|
1254
|
+
var global$8 = global$v;
|
|
1255
|
+
|
|
1067
1256
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1068
|
-
var $RegExp$2 =
|
|
1257
|
+
var $RegExp$2 = global$8.RegExp;
|
|
1069
1258
|
|
|
1070
|
-
var UNSUPPORTED_Y$2 = fails(function () {
|
|
1259
|
+
var UNSUPPORTED_Y$2 = fails$9(function () {
|
|
1071
1260
|
var re = $RegExp$2('a', 'y');
|
|
1072
1261
|
re.lastIndex = 2;
|
|
1073
1262
|
return re.exec('abcd') != null;
|
|
@@ -1075,11 +1264,11 @@
|
|
|
1075
1264
|
|
|
1076
1265
|
// UC Browser bug
|
|
1077
1266
|
// https://github.com/zloirock/core-js/issues/1008
|
|
1078
|
-
var MISSED_STICKY$1 = UNSUPPORTED_Y$2 || fails(function () {
|
|
1267
|
+
var MISSED_STICKY$1 = UNSUPPORTED_Y$2 || fails$9(function () {
|
|
1079
1268
|
return !$RegExp$2('a', 'y').sticky;
|
|
1080
1269
|
});
|
|
1081
1270
|
|
|
1082
|
-
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails(function () {
|
|
1271
|
+
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$9(function () {
|
|
1083
1272
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1084
1273
|
var re = $RegExp$2('^r', 'gy');
|
|
1085
1274
|
re.lastIndex = 2;
|
|
@@ -1092,41 +1281,52 @@
|
|
|
1092
1281
|
UNSUPPORTED_Y: UNSUPPORTED_Y$2
|
|
1093
1282
|
};
|
|
1094
1283
|
|
|
1284
|
+
var objectDefineProperties = {};
|
|
1285
|
+
|
|
1286
|
+
var internalObjectKeys = objectKeysInternal;
|
|
1287
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
1288
|
+
|
|
1095
1289
|
// `Object.keys` method
|
|
1096
1290
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
1097
1291
|
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
1098
|
-
var objectKeys = Object.keys || function keys(O) {
|
|
1099
|
-
return
|
|
1292
|
+
var objectKeys$2 = Object.keys || function keys(O) {
|
|
1293
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
1100
1294
|
};
|
|
1101
1295
|
|
|
1296
|
+
var DESCRIPTORS$3 = descriptors;
|
|
1297
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1298
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
1299
|
+
var anObject$7 = anObject$b;
|
|
1300
|
+
var toIndexedObject$1 = toIndexedObject$5;
|
|
1301
|
+
var objectKeys$1 = objectKeys$2;
|
|
1302
|
+
|
|
1102
1303
|
// `Object.defineProperties` method
|
|
1103
1304
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1104
1305
|
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
1105
|
-
|
|
1106
|
-
anObject(O);
|
|
1107
|
-
var props = toIndexedObject(Properties);
|
|
1108
|
-
var keys = objectKeys(Properties);
|
|
1306
|
+
objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1307
|
+
anObject$7(O);
|
|
1308
|
+
var props = toIndexedObject$1(Properties);
|
|
1309
|
+
var keys = objectKeys$1(Properties);
|
|
1109
1310
|
var length = keys.length;
|
|
1110
1311
|
var index = 0;
|
|
1111
1312
|
var key;
|
|
1112
|
-
while (length > index)
|
|
1313
|
+
while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
|
|
1113
1314
|
return O;
|
|
1114
1315
|
};
|
|
1115
1316
|
|
|
1116
|
-
var
|
|
1117
|
-
f: f
|
|
1118
|
-
};
|
|
1317
|
+
var getBuiltIn$2 = getBuiltIn$6;
|
|
1119
1318
|
|
|
1120
|
-
var html = getBuiltIn('document', 'documentElement');
|
|
1319
|
+
var html$1 = getBuiltIn$2('document', 'documentElement');
|
|
1121
1320
|
|
|
1122
1321
|
/* global ActiveXObject -- old IE, WSH */
|
|
1123
1322
|
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1323
|
+
var anObject$6 = anObject$b;
|
|
1324
|
+
var definePropertiesModule = objectDefineProperties;
|
|
1325
|
+
var enumBugKeys = enumBugKeys$3;
|
|
1326
|
+
var hiddenKeys = hiddenKeys$4;
|
|
1327
|
+
var html = html$1;
|
|
1328
|
+
var documentCreateElement = documentCreateElement$1;
|
|
1329
|
+
var sharedKey = sharedKey$2;
|
|
1130
1330
|
|
|
1131
1331
|
var GT = '>';
|
|
1132
1332
|
var LT = '<';
|
|
@@ -1186,7 +1386,7 @@
|
|
|
1186
1386
|
return NullProtoObject();
|
|
1187
1387
|
};
|
|
1188
1388
|
|
|
1189
|
-
hiddenKeys
|
|
1389
|
+
hiddenKeys[IE_PROTO] = true;
|
|
1190
1390
|
|
|
1191
1391
|
// `Object.create` method
|
|
1192
1392
|
// https://tc39.es/ecma262/#sec-object.create
|
|
@@ -1194,27 +1394,33 @@
|
|
|
1194
1394
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1195
1395
|
var result;
|
|
1196
1396
|
if (O !== null) {
|
|
1197
|
-
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
1397
|
+
EmptyConstructor[PROTOTYPE] = anObject$6(O);
|
|
1198
1398
|
result = new EmptyConstructor();
|
|
1199
1399
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1200
1400
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1201
1401
|
result[IE_PROTO] = O;
|
|
1202
1402
|
} else result = NullProtoObject();
|
|
1203
|
-
return Properties === undefined ? result :
|
|
1403
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1204
1404
|
};
|
|
1205
1405
|
|
|
1406
|
+
var fails$8 = fails$i;
|
|
1407
|
+
var global$7 = global$v;
|
|
1408
|
+
|
|
1206
1409
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1207
|
-
var $RegExp$1 =
|
|
1410
|
+
var $RegExp$1 = global$7.RegExp;
|
|
1208
1411
|
|
|
1209
|
-
var regexpUnsupportedDotAll = fails(function () {
|
|
1412
|
+
var regexpUnsupportedDotAll = fails$8(function () {
|
|
1210
1413
|
var re = $RegExp$1('.', 's');
|
|
1211
1414
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
1212
1415
|
});
|
|
1213
1416
|
|
|
1417
|
+
var fails$7 = fails$i;
|
|
1418
|
+
var global$6 = global$v;
|
|
1419
|
+
|
|
1214
1420
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1215
|
-
var $RegExp =
|
|
1421
|
+
var $RegExp = global$6.RegExp;
|
|
1216
1422
|
|
|
1217
|
-
var regexpUnsupportedNcg = fails(function () {
|
|
1423
|
+
var regexpUnsupportedNcg = fails$7(function () {
|
|
1218
1424
|
var re = $RegExp('(?<a>b)', 'g');
|
|
1219
1425
|
return re.exec('b').groups.a !== 'b' ||
|
|
1220
1426
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -1222,58 +1428,58 @@
|
|
|
1222
1428
|
|
|
1223
1429
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1224
1430
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1431
|
+
var call$6 = functionCall;
|
|
1432
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
1433
|
+
var toString$5 = toString$6;
|
|
1434
|
+
var regexpFlags = regexpFlags$1;
|
|
1435
|
+
var stickyHelpers$1 = regexpStickyHelpers;
|
|
1436
|
+
var shared = shared$4.exports;
|
|
1437
|
+
var create = objectCreate;
|
|
1232
1438
|
var getInternalState = internalState.get;
|
|
1233
|
-
|
|
1234
|
-
|
|
1439
|
+
var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll;
|
|
1440
|
+
var UNSUPPORTED_NCG$1 = regexpUnsupportedNcg;
|
|
1235
1441
|
|
|
1236
1442
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
1237
1443
|
var nativeExec = RegExp.prototype.exec;
|
|
1238
1444
|
var patchedExec = nativeExec;
|
|
1239
|
-
var charAt$4 =
|
|
1240
|
-
var indexOf =
|
|
1241
|
-
var replace$2 =
|
|
1242
|
-
var stringSlice$4 =
|
|
1445
|
+
var charAt$4 = uncurryThis$8(''.charAt);
|
|
1446
|
+
var indexOf = uncurryThis$8(''.indexOf);
|
|
1447
|
+
var replace$2 = uncurryThis$8(''.replace);
|
|
1448
|
+
var stringSlice$4 = uncurryThis$8(''.slice);
|
|
1243
1449
|
|
|
1244
1450
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1245
1451
|
var re1 = /a/;
|
|
1246
1452
|
var re2 = /b*/g;
|
|
1247
|
-
|
|
1248
|
-
|
|
1453
|
+
call$6(nativeExec, re1, 'a');
|
|
1454
|
+
call$6(nativeExec, re2, 'a');
|
|
1249
1455
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1250
1456
|
})();
|
|
1251
1457
|
|
|
1252
|
-
var UNSUPPORTED_Y$1 =
|
|
1458
|
+
var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
|
|
1253
1459
|
|
|
1254
1460
|
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
1255
1461
|
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
1256
1462
|
|
|
1257
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 ||
|
|
1463
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG$1;
|
|
1258
1464
|
|
|
1259
1465
|
if (PATCH) {
|
|
1260
1466
|
patchedExec = function exec(string) {
|
|
1261
1467
|
var re = this;
|
|
1262
1468
|
var state = getInternalState(re);
|
|
1263
|
-
var str =
|
|
1469
|
+
var str = toString$5(string);
|
|
1264
1470
|
var raw = state.raw;
|
|
1265
1471
|
var result, reCopy, lastIndex, match, i, object, group;
|
|
1266
1472
|
|
|
1267
1473
|
if (raw) {
|
|
1268
1474
|
raw.lastIndex = re.lastIndex;
|
|
1269
|
-
result =
|
|
1475
|
+
result = call$6(patchedExec, raw, str);
|
|
1270
1476
|
re.lastIndex = raw.lastIndex;
|
|
1271
1477
|
return result;
|
|
1272
1478
|
}
|
|
1273
1479
|
|
|
1274
1480
|
var groups = state.groups;
|
|
1275
1481
|
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
1276
|
-
var flags =
|
|
1482
|
+
var flags = call$6(regexpFlags, re);
|
|
1277
1483
|
var source = re.source;
|
|
1278
1484
|
var charsAdded = 0;
|
|
1279
1485
|
var strCopy = str;
|
|
@@ -1301,7 +1507,7 @@
|
|
|
1301
1507
|
}
|
|
1302
1508
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1303
1509
|
|
|
1304
|
-
match =
|
|
1510
|
+
match = call$6(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1305
1511
|
|
|
1306
1512
|
if (sticky) {
|
|
1307
1513
|
if (match) {
|
|
@@ -1316,7 +1522,7 @@
|
|
|
1316
1522
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1317
1523
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1318
1524
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
1319
|
-
|
|
1525
|
+
call$6(nativeReplace, match[0], reCopy, function () {
|
|
1320
1526
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
1321
1527
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
1322
1528
|
}
|
|
@@ -1324,7 +1530,7 @@
|
|
|
1324
1530
|
}
|
|
1325
1531
|
|
|
1326
1532
|
if (match && groups) {
|
|
1327
|
-
match.groups = object =
|
|
1533
|
+
match.groups = object = create(null);
|
|
1328
1534
|
for (i = 0; i < groups.length; i++) {
|
|
1329
1535
|
group = groups[i];
|
|
1330
1536
|
object[group[0]] = match[group[1]];
|
|
@@ -1335,37 +1541,40 @@
|
|
|
1335
1541
|
};
|
|
1336
1542
|
}
|
|
1337
1543
|
|
|
1338
|
-
var regexpExec = patchedExec;
|
|
1544
|
+
var regexpExec$2 = patchedExec;
|
|
1545
|
+
|
|
1546
|
+
var $$2 = _export;
|
|
1547
|
+
var exec$2 = regexpExec$2;
|
|
1339
1548
|
|
|
1340
1549
|
// `RegExp.prototype.exec` method
|
|
1341
1550
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
1342
|
-
|
|
1343
|
-
exec:
|
|
1551
|
+
$$2({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
|
|
1552
|
+
exec: exec$2
|
|
1344
1553
|
});
|
|
1345
1554
|
|
|
1346
1555
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1347
1556
|
|
|
1557
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1558
|
+
var defineBuiltIn$2 = defineBuiltIn$4;
|
|
1559
|
+
var regexpExec$1 = regexpExec$2;
|
|
1560
|
+
var fails$6 = fails$i;
|
|
1561
|
+
var wellKnownSymbol$7 = wellKnownSymbol$b;
|
|
1562
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
1348
1563
|
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
var SPECIES$3 = wellKnownSymbol('species');
|
|
1564
|
+
var SPECIES$3 = wellKnownSymbol$7('species');
|
|
1356
1565
|
var RegExpPrototype$3 = RegExp.prototype;
|
|
1357
1566
|
|
|
1358
1567
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
1359
|
-
var SYMBOL = wellKnownSymbol(KEY);
|
|
1568
|
+
var SYMBOL = wellKnownSymbol$7(KEY);
|
|
1360
1569
|
|
|
1361
|
-
var DELEGATES_TO_SYMBOL = !fails(function () {
|
|
1570
|
+
var DELEGATES_TO_SYMBOL = !fails$6(function () {
|
|
1362
1571
|
// String methods call symbol-named RegEp methods
|
|
1363
1572
|
var O = {};
|
|
1364
1573
|
O[SYMBOL] = function () { return 7; };
|
|
1365
1574
|
return ''[KEY](O) != 7;
|
|
1366
1575
|
});
|
|
1367
1576
|
|
|
1368
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
|
1577
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$6(function () {
|
|
1369
1578
|
// Symbol-named RegExp methods call .exec
|
|
1370
1579
|
var execCalled = false;
|
|
1371
1580
|
var re = /a/;
|
|
@@ -1394,11 +1603,11 @@
|
|
|
1394
1603
|
!DELEGATES_TO_EXEC ||
|
|
1395
1604
|
FORCED
|
|
1396
1605
|
) {
|
|
1397
|
-
var uncurriedNativeRegExpMethod =
|
|
1606
|
+
var uncurriedNativeRegExpMethod = uncurryThis$7(/./[SYMBOL]);
|
|
1398
1607
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
1399
|
-
var uncurriedNativeMethod =
|
|
1608
|
+
var uncurriedNativeMethod = uncurryThis$7(nativeMethod);
|
|
1400
1609
|
var $exec = regexp.exec;
|
|
1401
|
-
if ($exec === regexpExec || $exec === RegExpPrototype$3.exec) {
|
|
1610
|
+
if ($exec === regexpExec$1 || $exec === RegExpPrototype$3.exec) {
|
|
1402
1611
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
1403
1612
|
// The native String method already delegates to @@method (this
|
|
1404
1613
|
// polyfilled function), leasing to infinite recursion.
|
|
@@ -1410,76 +1619,96 @@
|
|
|
1410
1619
|
return { done: false };
|
|
1411
1620
|
});
|
|
1412
1621
|
|
|
1413
|
-
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
1414
|
-
defineBuiltIn(RegExpPrototype$3, SYMBOL, methods[1]);
|
|
1622
|
+
defineBuiltIn$2(String.prototype, KEY, methods[0]);
|
|
1623
|
+
defineBuiltIn$2(RegExpPrototype$3, SYMBOL, methods[1]);
|
|
1415
1624
|
}
|
|
1416
1625
|
|
|
1417
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype$3[SYMBOL], 'sham', true);
|
|
1626
|
+
if (SHAM) createNonEnumerableProperty$1(RegExpPrototype$3[SYMBOL], 'sham', true);
|
|
1418
1627
|
};
|
|
1419
1628
|
|
|
1420
1629
|
// `SameValue` abstract operation
|
|
1421
1630
|
// https://tc39.es/ecma262/#sec-samevalue
|
|
1422
1631
|
// eslint-disable-next-line es-x/no-object-is -- safe
|
|
1423
|
-
var sameValue = Object.is || function is(x, y) {
|
|
1632
|
+
var sameValue$1 = Object.is || function is(x, y) {
|
|
1424
1633
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
1425
1634
|
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
|
1426
1635
|
};
|
|
1427
1636
|
|
|
1428
|
-
var
|
|
1637
|
+
var global$5 = global$v;
|
|
1638
|
+
var call$5 = functionCall;
|
|
1639
|
+
var anObject$5 = anObject$b;
|
|
1640
|
+
var isCallable$4 = isCallable$g;
|
|
1641
|
+
var classof$3 = classofRaw$1;
|
|
1642
|
+
var regexpExec = regexpExec$2;
|
|
1643
|
+
|
|
1644
|
+
var TypeError$3 = global$5.TypeError;
|
|
1429
1645
|
|
|
1430
1646
|
// `RegExpExec` abstract operation
|
|
1431
1647
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
1432
1648
|
var regexpExecAbstract = function (R, S) {
|
|
1433
1649
|
var exec = R.exec;
|
|
1434
|
-
if (isCallable(exec)) {
|
|
1435
|
-
var result =
|
|
1436
|
-
if (result !== null) anObject(result);
|
|
1650
|
+
if (isCallable$4(exec)) {
|
|
1651
|
+
var result = call$5(exec, R, S);
|
|
1652
|
+
if (result !== null) anObject$5(result);
|
|
1437
1653
|
return result;
|
|
1438
1654
|
}
|
|
1439
|
-
if (
|
|
1655
|
+
if (classof$3(R) === 'RegExp') return call$5(regexpExec, R, S);
|
|
1440
1656
|
throw TypeError$3('RegExp#exec called on incompatible receiver');
|
|
1441
1657
|
};
|
|
1442
1658
|
|
|
1659
|
+
var call$4 = functionCall;
|
|
1660
|
+
var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
|
|
1661
|
+
var anObject$4 = anObject$b;
|
|
1662
|
+
var requireObjectCoercible$3 = requireObjectCoercible$6;
|
|
1663
|
+
var sameValue = sameValue$1;
|
|
1664
|
+
var toString$4 = toString$6;
|
|
1665
|
+
var getMethod$2 = getMethod$4;
|
|
1666
|
+
var regExpExec$2 = regexpExecAbstract;
|
|
1667
|
+
|
|
1443
1668
|
// @@search logic
|
|
1444
|
-
|
|
1669
|
+
fixRegExpWellKnownSymbolLogic$2('search', function (SEARCH, nativeSearch, maybeCallNative) {
|
|
1445
1670
|
return [
|
|
1446
1671
|
// `String.prototype.search` method
|
|
1447
1672
|
// https://tc39.es/ecma262/#sec-string.prototype.search
|
|
1448
1673
|
function search(regexp) {
|
|
1449
|
-
var O = requireObjectCoercible(this);
|
|
1450
|
-
var searcher = regexp == undefined ? undefined : getMethod(regexp, SEARCH);
|
|
1451
|
-
return searcher ?
|
|
1674
|
+
var O = requireObjectCoercible$3(this);
|
|
1675
|
+
var searcher = regexp == undefined ? undefined : getMethod$2(regexp, SEARCH);
|
|
1676
|
+
return searcher ? call$4(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$4(O));
|
|
1452
1677
|
},
|
|
1453
1678
|
// `RegExp.prototype[@@search]` method
|
|
1454
1679
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
|
|
1455
1680
|
function (string) {
|
|
1456
|
-
var rx = anObject(this);
|
|
1457
|
-
var S =
|
|
1681
|
+
var rx = anObject$4(this);
|
|
1682
|
+
var S = toString$4(string);
|
|
1458
1683
|
var res = maybeCallNative(nativeSearch, rx, S);
|
|
1459
1684
|
|
|
1460
1685
|
if (res.done) return res.value;
|
|
1461
1686
|
|
|
1462
1687
|
var previousLastIndex = rx.lastIndex;
|
|
1463
1688
|
if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
|
|
1464
|
-
var result =
|
|
1689
|
+
var result = regExpExec$2(rx, S);
|
|
1465
1690
|
if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
|
|
1466
1691
|
return result === null ? -1 : result.index;
|
|
1467
1692
|
}
|
|
1468
1693
|
];
|
|
1469
1694
|
});
|
|
1470
1695
|
|
|
1471
|
-
var
|
|
1472
|
-
var
|
|
1696
|
+
var global$4 = global$v;
|
|
1697
|
+
var isCallable$3 = isCallable$g;
|
|
1698
|
+
|
|
1699
|
+
var String$1 = global$4.String;
|
|
1700
|
+
var TypeError$2 = global$4.TypeError;
|
|
1473
1701
|
|
|
1474
|
-
var aPossiblePrototype = function (argument) {
|
|
1475
|
-
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
1702
|
+
var aPossiblePrototype$1 = function (argument) {
|
|
1703
|
+
if (typeof argument == 'object' || isCallable$3(argument)) return argument;
|
|
1476
1704
|
throw TypeError$2("Can't set " + String$1(argument) + ' as a prototype');
|
|
1477
1705
|
};
|
|
1478
1706
|
|
|
1479
1707
|
/* eslint-disable no-proto -- safe */
|
|
1480
1708
|
|
|
1481
|
-
|
|
1482
|
-
|
|
1709
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1710
|
+
var anObject$3 = anObject$b;
|
|
1711
|
+
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1483
1712
|
|
|
1484
1713
|
// `Object.setPrototypeOf` method
|
|
1485
1714
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
@@ -1491,12 +1720,12 @@
|
|
|
1491
1720
|
var setter;
|
|
1492
1721
|
try {
|
|
1493
1722
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
1494
|
-
setter =
|
|
1723
|
+
setter = uncurryThis$6(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
1495
1724
|
setter(test, []);
|
|
1496
1725
|
CORRECT_SETTER = test instanceof Array;
|
|
1497
1726
|
} catch (error) { /* empty */ }
|
|
1498
1727
|
return function setPrototypeOf(O, proto) {
|
|
1499
|
-
anObject(O);
|
|
1728
|
+
anObject$3(O);
|
|
1500
1729
|
aPossiblePrototype(proto);
|
|
1501
1730
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1502
1731
|
else O.__proto__ = proto;
|
|
@@ -1504,41 +1733,54 @@
|
|
|
1504
1733
|
};
|
|
1505
1734
|
}() : undefined);
|
|
1506
1735
|
|
|
1736
|
+
var isCallable$2 = isCallable$g;
|
|
1737
|
+
var isObject$3 = isObject$9;
|
|
1738
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
1739
|
+
|
|
1507
1740
|
// makes subclassing work correct for wrapped built-ins
|
|
1508
|
-
var inheritIfRequired = function ($this, dummy, Wrapper) {
|
|
1741
|
+
var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
1509
1742
|
var NewTarget, NewTargetPrototype;
|
|
1510
1743
|
if (
|
|
1511
1744
|
// it can work only with native `setPrototypeOf`
|
|
1512
|
-
|
|
1745
|
+
setPrototypeOf &&
|
|
1513
1746
|
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
1514
|
-
isCallable(NewTarget = dummy.constructor) &&
|
|
1747
|
+
isCallable$2(NewTarget = dummy.constructor) &&
|
|
1515
1748
|
NewTarget !== Wrapper &&
|
|
1516
|
-
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
|
1749
|
+
isObject$3(NewTargetPrototype = NewTarget.prototype) &&
|
|
1517
1750
|
NewTargetPrototype !== Wrapper.prototype
|
|
1518
|
-
)
|
|
1751
|
+
) setPrototypeOf($this, NewTargetPrototype);
|
|
1519
1752
|
return $this;
|
|
1520
1753
|
};
|
|
1521
1754
|
|
|
1522
|
-
var
|
|
1755
|
+
var isObject$2 = isObject$9;
|
|
1756
|
+
var classof$2 = classofRaw$1;
|
|
1757
|
+
var wellKnownSymbol$6 = wellKnownSymbol$b;
|
|
1758
|
+
|
|
1759
|
+
var MATCH$1 = wellKnownSymbol$6('match');
|
|
1523
1760
|
|
|
1524
1761
|
// `IsRegExp` abstract operation
|
|
1525
1762
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
1526
1763
|
var isRegexp = function (it) {
|
|
1527
1764
|
var isRegExp;
|
|
1528
|
-
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp :
|
|
1765
|
+
return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$2(it) == 'RegExp');
|
|
1529
1766
|
};
|
|
1530
1767
|
|
|
1768
|
+
var call$3 = functionCall;
|
|
1769
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1770
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1771
|
+
var regExpFlags = regexpFlags$1;
|
|
1772
|
+
|
|
1531
1773
|
var RegExpPrototype$2 = RegExp.prototype;
|
|
1532
1774
|
|
|
1533
1775
|
var regexpGetFlags = function (R) {
|
|
1534
1776
|
var flags = R.flags;
|
|
1535
|
-
return flags === undefined && !('flags' in RegExpPrototype$2) && !
|
|
1536
|
-
?
|
|
1777
|
+
return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$1(R, 'flags') && isPrototypeOf$1(RegExpPrototype$2, R)
|
|
1778
|
+
? call$3(regExpFlags, R) : flags;
|
|
1537
1779
|
};
|
|
1538
1780
|
|
|
1539
1781
|
var defineProperty = objectDefineProperty.f;
|
|
1540
1782
|
|
|
1541
|
-
var proxyAccessor = function (Target, Source, key) {
|
|
1783
|
+
var proxyAccessor$1 = function (Target, Source, key) {
|
|
1542
1784
|
key in Target || defineProperty(Target, key, {
|
|
1543
1785
|
configurable: true,
|
|
1544
1786
|
get: function () { return Source[key]; },
|
|
@@ -1546,13 +1788,18 @@
|
|
|
1546
1788
|
});
|
|
1547
1789
|
};
|
|
1548
1790
|
|
|
1549
|
-
var
|
|
1791
|
+
var getBuiltIn$1 = getBuiltIn$6;
|
|
1792
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
1793
|
+
var wellKnownSymbol$5 = wellKnownSymbol$b;
|
|
1794
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1550
1795
|
|
|
1551
|
-
var
|
|
1552
|
-
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
|
1553
|
-
var defineProperty = objectDefineProperty.f;
|
|
1796
|
+
var SPECIES$2 = wellKnownSymbol$5('species');
|
|
1554
1797
|
|
|
1555
|
-
|
|
1798
|
+
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
1799
|
+
var Constructor = getBuiltIn$1(CONSTRUCTOR_NAME);
|
|
1800
|
+
var defineProperty = definePropertyModule$1.f;
|
|
1801
|
+
|
|
1802
|
+
if (DESCRIPTORS$2 && Constructor && !Constructor[SPECIES$2]) {
|
|
1556
1803
|
defineProperty(Constructor, SPECIES$2, {
|
|
1557
1804
|
configurable: true,
|
|
1558
1805
|
get: function () { return this; }
|
|
@@ -1560,31 +1807,37 @@
|
|
|
1560
1807
|
}
|
|
1561
1808
|
};
|
|
1562
1809
|
|
|
1810
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1811
|
+
var global$3 = global$v;
|
|
1812
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1813
|
+
var isForced = isForced_1;
|
|
1814
|
+
var inheritIfRequired = inheritIfRequired$1;
|
|
1815
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
1563
1816
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1817
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
1818
|
+
var isRegExp = isRegexp;
|
|
1819
|
+
var toString$3 = toString$6;
|
|
1820
|
+
var getRegExpFlags$1 = regexpGetFlags;
|
|
1821
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
1822
|
+
var proxyAccessor = proxyAccessor$1;
|
|
1823
|
+
var defineBuiltIn$1 = defineBuiltIn$4;
|
|
1824
|
+
var fails$5 = fails$i;
|
|
1825
|
+
var hasOwn = hasOwnProperty_1;
|
|
1573
1826
|
var enforceInternalState = internalState.enforce;
|
|
1827
|
+
var setSpecies = setSpecies$1;
|
|
1828
|
+
var wellKnownSymbol$4 = wellKnownSymbol$b;
|
|
1829
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
1830
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
1574
1831
|
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
var MATCH = wellKnownSymbol('match');
|
|
1580
|
-
var NativeRegExp = global_1.RegExp;
|
|
1832
|
+
var MATCH = wellKnownSymbol$4('match');
|
|
1833
|
+
var NativeRegExp = global$3.RegExp;
|
|
1581
1834
|
var RegExpPrototype$1 = NativeRegExp.prototype;
|
|
1582
|
-
var SyntaxError =
|
|
1583
|
-
var exec$1 =
|
|
1584
|
-
var charAt$3 =
|
|
1585
|
-
var replace$1 =
|
|
1586
|
-
var stringIndexOf$1 =
|
|
1587
|
-
var stringSlice$3 =
|
|
1835
|
+
var SyntaxError = global$3.SyntaxError;
|
|
1836
|
+
var exec$1 = uncurryThis$5(RegExpPrototype$1.exec);
|
|
1837
|
+
var charAt$3 = uncurryThis$5(''.charAt);
|
|
1838
|
+
var replace$1 = uncurryThis$5(''.replace);
|
|
1839
|
+
var stringIndexOf$1 = uncurryThis$5(''.indexOf);
|
|
1840
|
+
var stringSlice$3 = uncurryThis$5(''.slice);
|
|
1588
1841
|
// TODO: Use only propper RegExpIdentifierName
|
|
1589
1842
|
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
|
|
1590
1843
|
var re1 = /a/g;
|
|
@@ -1593,11 +1846,11 @@
|
|
|
1593
1846
|
// "new" should create a new object, old webkit bug
|
|
1594
1847
|
var CORRECT_NEW = new NativeRegExp(re1) !== re1;
|
|
1595
1848
|
|
|
1596
|
-
var MISSED_STICKY =
|
|
1597
|
-
var UNSUPPORTED_Y =
|
|
1849
|
+
var MISSED_STICKY = stickyHelpers.MISSED_STICKY;
|
|
1850
|
+
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
1598
1851
|
|
|
1599
|
-
var BASE_FORCED =
|
|
1600
|
-
(!CORRECT_NEW || MISSED_STICKY ||
|
|
1852
|
+
var BASE_FORCED = DESCRIPTORS$1 &&
|
|
1853
|
+
(!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails$5(function () {
|
|
1601
1854
|
re2[MATCH] = false;
|
|
1602
1855
|
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
|
1603
1856
|
return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
|
|
@@ -1657,7 +1910,7 @@
|
|
|
1657
1910
|
groupid++;
|
|
1658
1911
|
continue;
|
|
1659
1912
|
case chr === '>' && ncg:
|
|
1660
|
-
if (groupname === '' ||
|
|
1913
|
+
if (groupname === '' || hasOwn(names, groupname)) {
|
|
1661
1914
|
throw new SyntaxError('Invalid capture group name');
|
|
1662
1915
|
}
|
|
1663
1916
|
names[groupname] = true;
|
|
@@ -1673,10 +1926,10 @@
|
|
|
1673
1926
|
|
|
1674
1927
|
// `RegExp` constructor
|
|
1675
1928
|
// https://tc39.es/ecma262/#sec-regexp-constructor
|
|
1676
|
-
if (
|
|
1929
|
+
if (isForced('RegExp', BASE_FORCED)) {
|
|
1677
1930
|
var RegExpWrapper = function RegExp(pattern, flags) {
|
|
1678
|
-
var thisIsRegExp =
|
|
1679
|
-
var patternIsRegExp =
|
|
1931
|
+
var thisIsRegExp = isPrototypeOf(RegExpPrototype$1, this);
|
|
1932
|
+
var patternIsRegExp = isRegExp(pattern);
|
|
1680
1933
|
var flagsAreUndefined = flags === undefined;
|
|
1681
1934
|
var groups = [];
|
|
1682
1935
|
var rawPattern = pattern;
|
|
@@ -1686,16 +1939,16 @@
|
|
|
1686
1939
|
return pattern;
|
|
1687
1940
|
}
|
|
1688
1941
|
|
|
1689
|
-
if (patternIsRegExp ||
|
|
1942
|
+
if (patternIsRegExp || isPrototypeOf(RegExpPrototype$1, pattern)) {
|
|
1690
1943
|
pattern = pattern.source;
|
|
1691
|
-
if (flagsAreUndefined) flags =
|
|
1944
|
+
if (flagsAreUndefined) flags = getRegExpFlags$1(rawPattern);
|
|
1692
1945
|
}
|
|
1693
1946
|
|
|
1694
|
-
pattern = pattern === undefined ? '' :
|
|
1695
|
-
flags = flags === undefined ? '' :
|
|
1947
|
+
pattern = pattern === undefined ? '' : toString$3(pattern);
|
|
1948
|
+
flags = flags === undefined ? '' : toString$3(flags);
|
|
1696
1949
|
rawPattern = pattern;
|
|
1697
1950
|
|
|
1698
|
-
if (
|
|
1951
|
+
if (UNSUPPORTED_DOT_ALL && 'dotAll' in re1) {
|
|
1699
1952
|
dotAll = !!flags && stringIndexOf$1(flags, 's') > -1;
|
|
1700
1953
|
if (dotAll) flags = replace$1(flags, /s/g, '');
|
|
1701
1954
|
}
|
|
@@ -1707,7 +1960,7 @@
|
|
|
1707
1960
|
if (sticky && UNSUPPORTED_Y) flags = replace$1(flags, /y/g, '');
|
|
1708
1961
|
}
|
|
1709
1962
|
|
|
1710
|
-
if (
|
|
1963
|
+
if (UNSUPPORTED_NCG) {
|
|
1711
1964
|
handled = handleNCG(pattern);
|
|
1712
1965
|
pattern = handled[0];
|
|
1713
1966
|
groups = handled[1];
|
|
@@ -1739,24 +1992,24 @@
|
|
|
1739
1992
|
|
|
1740
1993
|
RegExpPrototype$1.constructor = RegExpWrapper;
|
|
1741
1994
|
RegExpWrapper.prototype = RegExpPrototype$1;
|
|
1742
|
-
defineBuiltIn(
|
|
1995
|
+
defineBuiltIn$1(global$3, 'RegExp', RegExpWrapper, { constructor: true });
|
|
1743
1996
|
}
|
|
1744
1997
|
|
|
1745
1998
|
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
|
1746
1999
|
setSpecies('RegExp');
|
|
1747
2000
|
|
|
1748
2001
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
2002
|
+
var defineBuiltIn = defineBuiltIn$4;
|
|
2003
|
+
var anObject$2 = anObject$b;
|
|
2004
|
+
var $toString = toString$6;
|
|
2005
|
+
var fails$4 = fails$i;
|
|
2006
|
+
var getRegExpFlags = regexpGetFlags;
|
|
1754
2007
|
|
|
1755
2008
|
var TO_STRING = 'toString';
|
|
1756
2009
|
var RegExpPrototype = RegExp.prototype;
|
|
1757
2010
|
var n$ToString = RegExpPrototype[TO_STRING];
|
|
1758
2011
|
|
|
1759
|
-
var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
2012
|
+
var NOT_GENERIC = fails$4(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
1760
2013
|
// FF44- RegExp#toString has a wrong name
|
|
1761
2014
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
|
|
1762
2015
|
|
|
@@ -1764,21 +2017,26 @@
|
|
|
1764
2017
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
1765
2018
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
1766
2019
|
defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
|
|
1767
|
-
var R = anObject(this);
|
|
1768
|
-
var pattern =
|
|
1769
|
-
var flags =
|
|
2020
|
+
var R = anObject$2(this);
|
|
2021
|
+
var pattern = $toString(R.source);
|
|
2022
|
+
var flags = $toString(getRegExpFlags(R));
|
|
1770
2023
|
return '/' + pattern + '/' + flags;
|
|
1771
2024
|
}, { unsafe: true });
|
|
1772
2025
|
}
|
|
1773
2026
|
|
|
1774
|
-
var
|
|
1775
|
-
var
|
|
1776
|
-
var
|
|
2027
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
2028
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
2029
|
+
var toString$2 = toString$6;
|
|
2030
|
+
var requireObjectCoercible$2 = requireObjectCoercible$6;
|
|
2031
|
+
|
|
2032
|
+
var charAt$2 = uncurryThis$4(''.charAt);
|
|
2033
|
+
var charCodeAt = uncurryThis$4(''.charCodeAt);
|
|
2034
|
+
var stringSlice$2 = uncurryThis$4(''.slice);
|
|
1777
2035
|
|
|
1778
2036
|
var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
1779
2037
|
return function ($this, pos) {
|
|
1780
|
-
var S =
|
|
1781
|
-
var position = toIntegerOrInfinity(pos);
|
|
2038
|
+
var S = toString$2(requireObjectCoercible$2($this));
|
|
2039
|
+
var position = toIntegerOrInfinity$1(pos);
|
|
1782
2040
|
var size = S.length;
|
|
1783
2041
|
var first, second;
|
|
1784
2042
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
@@ -1807,40 +2065,50 @@
|
|
|
1807
2065
|
|
|
1808
2066
|
// `AdvanceStringIndex` abstract operation
|
|
1809
2067
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
1810
|
-
var advanceStringIndex = function (S, index, unicode) {
|
|
2068
|
+
var advanceStringIndex$2 = function (S, index, unicode) {
|
|
1811
2069
|
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
1812
2070
|
};
|
|
1813
2071
|
|
|
2072
|
+
var call$2 = functionCall;
|
|
2073
|
+
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
2074
|
+
var anObject$1 = anObject$b;
|
|
2075
|
+
var toLength$1 = toLength$3;
|
|
2076
|
+
var toString$1 = toString$6;
|
|
2077
|
+
var requireObjectCoercible$1 = requireObjectCoercible$6;
|
|
2078
|
+
var getMethod$1 = getMethod$4;
|
|
2079
|
+
var advanceStringIndex$1 = advanceStringIndex$2;
|
|
2080
|
+
var regExpExec$1 = regexpExecAbstract;
|
|
2081
|
+
|
|
1814
2082
|
// @@match logic
|
|
1815
|
-
|
|
2083
|
+
fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCallNative) {
|
|
1816
2084
|
return [
|
|
1817
2085
|
// `String.prototype.match` method
|
|
1818
2086
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
|
1819
2087
|
function match(regexp) {
|
|
1820
|
-
var O = requireObjectCoercible(this);
|
|
1821
|
-
var matcher = regexp == undefined ? undefined : getMethod(regexp, MATCH);
|
|
1822
|
-
return matcher ?
|
|
2088
|
+
var O = requireObjectCoercible$1(this);
|
|
2089
|
+
var matcher = regexp == undefined ? undefined : getMethod$1(regexp, MATCH);
|
|
2090
|
+
return matcher ? call$2(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$1(O));
|
|
1823
2091
|
},
|
|
1824
2092
|
// `RegExp.prototype[@@match]` method
|
|
1825
2093
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
1826
2094
|
function (string) {
|
|
1827
|
-
var rx = anObject(this);
|
|
1828
|
-
var S =
|
|
2095
|
+
var rx = anObject$1(this);
|
|
2096
|
+
var S = toString$1(string);
|
|
1829
2097
|
var res = maybeCallNative(nativeMatch, rx, S);
|
|
1830
2098
|
|
|
1831
2099
|
if (res.done) return res.value;
|
|
1832
2100
|
|
|
1833
|
-
if (!rx.global) return
|
|
2101
|
+
if (!rx.global) return regExpExec$1(rx, S);
|
|
1834
2102
|
|
|
1835
2103
|
var fullUnicode = rx.unicode;
|
|
1836
2104
|
rx.lastIndex = 0;
|
|
1837
2105
|
var A = [];
|
|
1838
2106
|
var n = 0;
|
|
1839
2107
|
var result;
|
|
1840
|
-
while ((result =
|
|
1841
|
-
var matchStr =
|
|
2108
|
+
while ((result = regExpExec$1(rx, S)) !== null) {
|
|
2109
|
+
var matchStr = toString$1(result[0]);
|
|
1842
2110
|
A[n] = matchStr;
|
|
1843
|
-
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
2111
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$1(rx.lastIndex), fullUnicode);
|
|
1844
2112
|
n++;
|
|
1845
2113
|
}
|
|
1846
2114
|
return n === 0 ? null : A;
|
|
@@ -1848,10 +2116,14 @@
|
|
|
1848
2116
|
];
|
|
1849
2117
|
});
|
|
1850
2118
|
|
|
2119
|
+
var DESCRIPTORS = descriptors;
|
|
2120
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
2121
|
+
var objectKeys = objectKeys$2;
|
|
2122
|
+
var toIndexedObject = toIndexedObject$5;
|
|
1851
2123
|
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
1852
2124
|
|
|
1853
|
-
var propertyIsEnumerable =
|
|
1854
|
-
var push$1 =
|
|
2125
|
+
var propertyIsEnumerable = uncurryThis$3($propertyIsEnumerable);
|
|
2126
|
+
var push$1 = uncurryThis$3([].push);
|
|
1855
2127
|
|
|
1856
2128
|
// `Object.{ entries, values }` methods implementation
|
|
1857
2129
|
var createMethod = function (TO_ENTRIES) {
|
|
@@ -1864,7 +2136,7 @@
|
|
|
1864
2136
|
var key;
|
|
1865
2137
|
while (length > i) {
|
|
1866
2138
|
key = keys[i++];
|
|
1867
|
-
if (!
|
|
2139
|
+
if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {
|
|
1868
2140
|
push$1(result, TO_ENTRIES ? [key, O[key]] : O[key]);
|
|
1869
2141
|
}
|
|
1870
2142
|
}
|
|
@@ -1881,38 +2153,52 @@
|
|
|
1881
2153
|
values: createMethod(false)
|
|
1882
2154
|
};
|
|
1883
2155
|
|
|
2156
|
+
var $$1 = _export;
|
|
1884
2157
|
var $entries = objectToArray.entries;
|
|
1885
2158
|
|
|
1886
2159
|
// `Object.entries` method
|
|
1887
2160
|
// https://tc39.es/ecma262/#sec-object.entries
|
|
1888
|
-
|
|
2161
|
+
$$1({ target: 'Object', stat: true }, {
|
|
1889
2162
|
entries: function entries(O) {
|
|
1890
2163
|
return $entries(O);
|
|
1891
2164
|
}
|
|
1892
2165
|
});
|
|
1893
2166
|
|
|
2167
|
+
var classof$1 = classofRaw$1;
|
|
2168
|
+
|
|
1894
2169
|
// `IsArray` abstract operation
|
|
1895
2170
|
// https://tc39.es/ecma262/#sec-isarray
|
|
1896
2171
|
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
|
1897
|
-
var isArray = Array.isArray || function isArray(argument) {
|
|
1898
|
-
return
|
|
2172
|
+
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
2173
|
+
return classof$1(argument) == 'Array';
|
|
1899
2174
|
};
|
|
1900
2175
|
|
|
1901
|
-
var
|
|
2176
|
+
var toPropertyKey = toPropertyKey$3;
|
|
2177
|
+
var definePropertyModule = objectDefineProperty;
|
|
2178
|
+
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
2179
|
+
|
|
2180
|
+
var createProperty$1 = function (object, key, value) {
|
|
1902
2181
|
var propertyKey = toPropertyKey(key);
|
|
1903
|
-
if (propertyKey in object)
|
|
2182
|
+
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
1904
2183
|
else object[propertyKey] = value;
|
|
1905
2184
|
};
|
|
1906
2185
|
|
|
2186
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
2187
|
+
var fails$3 = fails$i;
|
|
2188
|
+
var isCallable$1 = isCallable$g;
|
|
2189
|
+
var classof = classof$5;
|
|
2190
|
+
var getBuiltIn = getBuiltIn$6;
|
|
2191
|
+
var inspectSource = inspectSource$3;
|
|
2192
|
+
|
|
1907
2193
|
var noop = function () { /* empty */ };
|
|
1908
2194
|
var empty = [];
|
|
1909
2195
|
var construct = getBuiltIn('Reflect', 'construct');
|
|
1910
2196
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1911
|
-
var exec =
|
|
2197
|
+
var exec = uncurryThis$2(constructorRegExp.exec);
|
|
1912
2198
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1913
2199
|
|
|
1914
2200
|
var isConstructorModern = function isConstructor(argument) {
|
|
1915
|
-
if (!isCallable(argument)) return false;
|
|
2201
|
+
if (!isCallable$1(argument)) return false;
|
|
1916
2202
|
try {
|
|
1917
2203
|
construct(noop, empty, argument);
|
|
1918
2204
|
return true;
|
|
@@ -1922,7 +2208,7 @@
|
|
|
1922
2208
|
};
|
|
1923
2209
|
|
|
1924
2210
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
1925
|
-
if (!isCallable(argument)) return false;
|
|
2211
|
+
if (!isCallable$1(argument)) return false;
|
|
1926
2212
|
switch (classof(argument)) {
|
|
1927
2213
|
case 'AsyncFunction':
|
|
1928
2214
|
case 'GeneratorFunction':
|
|
@@ -1942,7 +2228,7 @@
|
|
|
1942
2228
|
|
|
1943
2229
|
// `IsConstructor` abstract operation
|
|
1944
2230
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1945
|
-
var isConstructor = !construct || fails(function () {
|
|
2231
|
+
var isConstructor$1 = !construct || fails$3(function () {
|
|
1946
2232
|
var called;
|
|
1947
2233
|
return isConstructorModern(isConstructorModern.call)
|
|
1948
2234
|
|| !isConstructorModern(Object)
|
|
@@ -1950,37 +2236,49 @@
|
|
|
1950
2236
|
|| called;
|
|
1951
2237
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
1952
2238
|
|
|
1953
|
-
var
|
|
1954
|
-
var
|
|
2239
|
+
var global$2 = global$v;
|
|
2240
|
+
var isArray$1 = isArray$2;
|
|
2241
|
+
var isConstructor = isConstructor$1;
|
|
2242
|
+
var isObject$1 = isObject$9;
|
|
2243
|
+
var wellKnownSymbol$3 = wellKnownSymbol$b;
|
|
2244
|
+
|
|
2245
|
+
var SPECIES$1 = wellKnownSymbol$3('species');
|
|
2246
|
+
var Array$1 = global$2.Array;
|
|
1955
2247
|
|
|
1956
2248
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
1957
2249
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
1958
|
-
var arraySpeciesConstructor = function (originalArray) {
|
|
2250
|
+
var arraySpeciesConstructor$1 = function (originalArray) {
|
|
1959
2251
|
var C;
|
|
1960
|
-
if (isArray(originalArray)) {
|
|
2252
|
+
if (isArray$1(originalArray)) {
|
|
1961
2253
|
C = originalArray.constructor;
|
|
1962
2254
|
// cross-realm fallback
|
|
1963
|
-
if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
|
|
1964
|
-
else if (isObject(C)) {
|
|
2255
|
+
if (isConstructor(C) && (C === Array$1 || isArray$1(C.prototype))) C = undefined;
|
|
2256
|
+
else if (isObject$1(C)) {
|
|
1965
2257
|
C = C[SPECIES$1];
|
|
1966
2258
|
if (C === null) C = undefined;
|
|
1967
2259
|
}
|
|
1968
2260
|
} return C === undefined ? Array$1 : C;
|
|
1969
2261
|
};
|
|
1970
2262
|
|
|
2263
|
+
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
2264
|
+
|
|
1971
2265
|
// `ArraySpeciesCreate` abstract operation
|
|
1972
2266
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
1973
|
-
var arraySpeciesCreate = function (originalArray, length) {
|
|
2267
|
+
var arraySpeciesCreate$1 = function (originalArray, length) {
|
|
1974
2268
|
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
1975
2269
|
};
|
|
1976
2270
|
|
|
1977
|
-
var
|
|
2271
|
+
var fails$2 = fails$i;
|
|
2272
|
+
var wellKnownSymbol$2 = wellKnownSymbol$b;
|
|
2273
|
+
var V8_VERSION$1 = engineV8Version;
|
|
1978
2274
|
|
|
1979
|
-
var
|
|
2275
|
+
var SPECIES = wellKnownSymbol$2('species');
|
|
2276
|
+
|
|
2277
|
+
var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
|
|
1980
2278
|
// We can't use this feature detection in V8 since it causes
|
|
1981
2279
|
// deoptimization and serious performance degradation
|
|
1982
2280
|
// https://github.com/zloirock/core-js/issues/677
|
|
1983
|
-
return
|
|
2281
|
+
return V8_VERSION$1 >= 51 || !fails$2(function () {
|
|
1984
2282
|
var array = [];
|
|
1985
2283
|
var constructor = array.constructor = {};
|
|
1986
2284
|
constructor[SPECIES] = function () {
|
|
@@ -1990,15 +2288,28 @@
|
|
|
1990
2288
|
});
|
|
1991
2289
|
};
|
|
1992
2290
|
|
|
1993
|
-
var
|
|
2291
|
+
var $ = _export;
|
|
2292
|
+
var global$1 = global$v;
|
|
2293
|
+
var fails$1 = fails$i;
|
|
2294
|
+
var isArray = isArray$2;
|
|
2295
|
+
var isObject = isObject$9;
|
|
2296
|
+
var toObject$1 = toObject$3;
|
|
2297
|
+
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
2298
|
+
var createProperty = createProperty$1;
|
|
2299
|
+
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
2300
|
+
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
|
|
2301
|
+
var wellKnownSymbol$1 = wellKnownSymbol$b;
|
|
2302
|
+
var V8_VERSION = engineV8Version;
|
|
2303
|
+
|
|
2304
|
+
var IS_CONCAT_SPREADABLE = wellKnownSymbol$1('isConcatSpreadable');
|
|
1994
2305
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
1995
2306
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
1996
|
-
var TypeError$1 =
|
|
2307
|
+
var TypeError$1 = global$1.TypeError;
|
|
1997
2308
|
|
|
1998
2309
|
// We can't use this feature detection in V8 since it causes
|
|
1999
2310
|
// deoptimization and serious performance degradation
|
|
2000
2311
|
// https://github.com/zloirock/core-js/issues/679
|
|
2001
|
-
var IS_CONCAT_SPREADABLE_SUPPORT =
|
|
2312
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$1(function () {
|
|
2002
2313
|
var array = [];
|
|
2003
2314
|
array[IS_CONCAT_SPREADABLE] = false;
|
|
2004
2315
|
return array.concat()[0] !== array;
|
|
@@ -2017,10 +2328,10 @@
|
|
|
2017
2328
|
// `Array.prototype.concat` method
|
|
2018
2329
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
|
2019
2330
|
// with adding support of @@isConcatSpreadable and @@species
|
|
2020
|
-
|
|
2331
|
+
$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
2021
2332
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2022
2333
|
concat: function concat(arg) {
|
|
2023
|
-
var O = toObject(this);
|
|
2334
|
+
var O = toObject$1(this);
|
|
2024
2335
|
var A = arraySpeciesCreate(O, 0);
|
|
2025
2336
|
var n = 0;
|
|
2026
2337
|
var i, k, length, len, E;
|
|
@@ -2040,25 +2351,30 @@
|
|
|
2040
2351
|
}
|
|
2041
2352
|
});
|
|
2042
2353
|
|
|
2354
|
+
var NATIVE_BIND = functionBindNative;
|
|
2355
|
+
|
|
2043
2356
|
var FunctionPrototype = Function.prototype;
|
|
2044
|
-
var apply = FunctionPrototype.apply;
|
|
2045
|
-
var call = FunctionPrototype.call;
|
|
2357
|
+
var apply$1 = FunctionPrototype.apply;
|
|
2358
|
+
var call$1 = FunctionPrototype.call;
|
|
2046
2359
|
|
|
2047
2360
|
// eslint-disable-next-line es-x/no-reflect -- safe
|
|
2048
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (
|
|
2049
|
-
return call.apply(apply, arguments);
|
|
2361
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$1.bind(apply$1) : function () {
|
|
2362
|
+
return call$1.apply(apply$1, arguments);
|
|
2050
2363
|
});
|
|
2051
2364
|
|
|
2365
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
2366
|
+
var toObject = toObject$3;
|
|
2367
|
+
|
|
2052
2368
|
var floor = Math.floor;
|
|
2053
|
-
var charAt =
|
|
2054
|
-
var replace =
|
|
2055
|
-
var stringSlice$1 =
|
|
2369
|
+
var charAt = uncurryThis$1(''.charAt);
|
|
2370
|
+
var replace = uncurryThis$1(''.replace);
|
|
2371
|
+
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
2056
2372
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
2057
2373
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
2058
2374
|
|
|
2059
2375
|
// `GetSubstitution` abstract operation
|
|
2060
2376
|
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
2061
|
-
var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
2377
|
+
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
2062
2378
|
var tailPos = position + matched.length;
|
|
2063
2379
|
var m = captures.length;
|
|
2064
2380
|
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
@@ -2091,13 +2407,30 @@
|
|
|
2091
2407
|
});
|
|
2092
2408
|
};
|
|
2093
2409
|
|
|
2410
|
+
var apply = functionApply;
|
|
2411
|
+
var call = functionCall;
|
|
2412
|
+
var uncurryThis = functionUncurryThis;
|
|
2413
|
+
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
2414
|
+
var fails = fails$i;
|
|
2415
|
+
var anObject = anObject$b;
|
|
2416
|
+
var isCallable = isCallable$g;
|
|
2417
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
2418
|
+
var toLength = toLength$3;
|
|
2419
|
+
var toString = toString$6;
|
|
2420
|
+
var requireObjectCoercible = requireObjectCoercible$6;
|
|
2421
|
+
var advanceStringIndex = advanceStringIndex$2;
|
|
2422
|
+
var getMethod = getMethod$4;
|
|
2423
|
+
var getSubstitution = getSubstitution$1;
|
|
2424
|
+
var regExpExec = regexpExecAbstract;
|
|
2425
|
+
var wellKnownSymbol = wellKnownSymbol$b;
|
|
2426
|
+
|
|
2094
2427
|
var REPLACE = wellKnownSymbol('replace');
|
|
2095
2428
|
var max = Math.max;
|
|
2096
2429
|
var min = Math.min;
|
|
2097
|
-
var concat =
|
|
2098
|
-
var push =
|
|
2099
|
-
var stringIndexOf =
|
|
2100
|
-
var stringSlice =
|
|
2430
|
+
var concat = uncurryThis([].concat);
|
|
2431
|
+
var push = uncurryThis([].push);
|
|
2432
|
+
var stringIndexOf = uncurryThis(''.indexOf);
|
|
2433
|
+
var stringSlice = uncurryThis(''.slice);
|
|
2101
2434
|
|
|
2102
2435
|
var maybeToString = function (it) {
|
|
2103
2436
|
return it === undefined ? it : String(it);
|
|
@@ -2130,7 +2463,7 @@
|
|
|
2130
2463
|
});
|
|
2131
2464
|
|
|
2132
2465
|
// @@replace logic
|
|
2133
|
-
|
|
2466
|
+
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
2134
2467
|
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
2135
2468
|
|
|
2136
2469
|
return [
|
|
@@ -2140,14 +2473,14 @@
|
|
|
2140
2473
|
var O = requireObjectCoercible(this);
|
|
2141
2474
|
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
|
2142
2475
|
return replacer
|
|
2143
|
-
?
|
|
2144
|
-
:
|
|
2476
|
+
? call(replacer, searchValue, O, replaceValue)
|
|
2477
|
+
: call(nativeReplace, toString(O), searchValue, replaceValue);
|
|
2145
2478
|
},
|
|
2146
2479
|
// `RegExp.prototype[@@replace]` method
|
|
2147
2480
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
2148
2481
|
function (string, replaceValue) {
|
|
2149
2482
|
var rx = anObject(this);
|
|
2150
|
-
var S =
|
|
2483
|
+
var S = toString(string);
|
|
2151
2484
|
|
|
2152
2485
|
if (
|
|
2153
2486
|
typeof replaceValue == 'string' &&
|
|
@@ -2159,7 +2492,7 @@
|
|
|
2159
2492
|
}
|
|
2160
2493
|
|
|
2161
2494
|
var functionalReplace = isCallable(replaceValue);
|
|
2162
|
-
if (!functionalReplace) replaceValue =
|
|
2495
|
+
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
2163
2496
|
|
|
2164
2497
|
var global = rx.global;
|
|
2165
2498
|
if (global) {
|
|
@@ -2168,13 +2501,13 @@
|
|
|
2168
2501
|
}
|
|
2169
2502
|
var results = [];
|
|
2170
2503
|
while (true) {
|
|
2171
|
-
var result =
|
|
2504
|
+
var result = regExpExec(rx, S);
|
|
2172
2505
|
if (result === null) break;
|
|
2173
2506
|
|
|
2174
2507
|
push(results, result);
|
|
2175
2508
|
if (!global) break;
|
|
2176
2509
|
|
|
2177
|
-
var matchStr =
|
|
2510
|
+
var matchStr = toString(result[0]);
|
|
2178
2511
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
2179
2512
|
}
|
|
2180
2513
|
|
|
@@ -2183,7 +2516,7 @@
|
|
|
2183
2516
|
for (var i = 0; i < results.length; i++) {
|
|
2184
2517
|
result = results[i];
|
|
2185
2518
|
|
|
2186
|
-
var matched =
|
|
2519
|
+
var matched = toString(result[0]);
|
|
2187
2520
|
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
2188
2521
|
var captures = [];
|
|
2189
2522
|
// NOTE: This is equivalent to
|
|
@@ -2196,7 +2529,7 @@
|
|
|
2196
2529
|
if (functionalReplace) {
|
|
2197
2530
|
var replacerArgs = concat([matched], captures, position, S);
|
|
2198
2531
|
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
2199
|
-
var replacement =
|
|
2532
|
+
var replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
2200
2533
|
} else {
|
|
2201
2534
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
2202
2535
|
}
|