bootstrap-table-rails 1.18.3 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +1 -1
  4. data/bootstrap-table-rails.gemspec +2 -2
  5. data/lib/bootstrap-table-rails/version.rb +1 -1
  6. data/vendor/assets/javascripts/.DS_Store +0 -0
  7. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +939 -357
  8. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +947 -392
  9. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +953 -396
  10. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +3 -1
  11. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +3034 -2119
  12. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1017 -430
  13. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +564 -249
  14. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1488 -961
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +579 -260
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +574 -258
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +486 -189
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +909 -538
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +921 -501
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +9 -1
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +2712 -1132
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +1326 -747
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +586 -275
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +892 -425
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +16 -8
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +670 -357
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +590 -252
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +820 -386
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.css +5 -2
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +549 -240
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +557 -251
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +773 -304
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +586 -258
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +547 -205
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +487 -189
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +559 -247
  37. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +901 -551
  38. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +600 -245
  39. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +472 -183
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +472 -183
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +480 -191
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +472 -183
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +492 -203
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +472 -183
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +472 -183
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +472 -183
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +472 -183
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +472 -183
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +472 -183
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +472 -183
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +472 -183
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +490 -200
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +472 -183
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +472 -183
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +472 -183
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +472 -183
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +472 -183
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +472 -183
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +472 -183
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +472 -183
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +472 -183
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +475 -185
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +472 -183
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +1083 -0
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +472 -183
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +472 -183
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +472 -183
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +472 -183
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +472 -183
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +472 -183
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +497 -207
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +1083 -0
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +472 -183
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +472 -183
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +511 -183
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +511 -183
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +472 -183
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +472 -183
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +472 -183
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +472 -183
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +472 -183
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +472 -183
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +472 -183
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +472 -183
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +472 -183
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +472 -183
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +472 -183
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +472 -183
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +472 -183
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +472 -183
  91. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +472 -183
  92. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +472 -183
  93. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +472 -183
  94. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +2 -0
  95. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +564 -258
  96. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +2 -0
  97. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +560 -238
  98. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +2 -0
  99. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +564 -242
  100. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +2 -0
  101. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +562 -255
  102. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +2 -0
  103. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +558 -236
  104. metadata +8 -6
@@ -2,7 +2,7 @@
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 ($) { 'use strict';
5
+ })(this, (function ($) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -27,6 +27,9 @@
27
27
  function _createClass(Constructor, protoProps, staticProps) {
28
28
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
29
29
  if (staticProps) _defineProperties(Constructor, staticProps);
30
+ Object.defineProperty(Constructor, "prototype", {
31
+ writable: false
32
+ });
30
33
  return Constructor;
31
34
  }
32
35
 
@@ -42,6 +45,9 @@
42
45
  configurable: true
43
46
  }
44
47
  });
48
+ Object.defineProperty(subClass, "prototype", {
49
+ writable: false
50
+ });
45
51
  if (superClass) _setPrototypeOf(subClass, superClass);
46
52
  }
47
53
 
@@ -85,6 +91,8 @@
85
91
  function _possibleConstructorReturn(self, call) {
86
92
  if (call && (typeof call === "object" || typeof call === "function")) {
87
93
  return call;
94
+ } else if (call !== void 0) {
95
+ throw new TypeError("Derived constructors may only return object or undefined");
88
96
  }
89
97
 
90
98
  return _assertThisInitialized(self);
@@ -118,7 +126,7 @@
118
126
  return object;
119
127
  }
120
128
 
121
- function _get(target, property, receiver) {
129
+ function _get() {
122
130
  if (typeof Reflect !== "undefined" && Reflect.get) {
123
131
  _get = Reflect.get;
124
132
  } else {
@@ -129,14 +137,14 @@
129
137
  var desc = Object.getOwnPropertyDescriptor(base, property);
130
138
 
131
139
  if (desc.get) {
132
- return desc.get.call(receiver);
140
+ return desc.get.call(arguments.length < 3 ? target : receiver);
133
141
  }
134
142
 
135
143
  return desc.value;
136
144
  };
137
145
  }
138
146
 
139
- return _get(target, property, receiver || target);
147
+ return _get.apply(this, arguments);
140
148
  }
141
149
 
142
150
  function _slicedToArray(arr, i) {
@@ -148,14 +156,17 @@
148
156
  }
149
157
 
150
158
  function _iterableToArrayLimit(arr, i) {
151
- if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
159
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
160
+
161
+ if (_i == null) return;
152
162
  var _arr = [];
153
163
  var _n = true;
154
164
  var _d = false;
155
- var _e = undefined;
165
+
166
+ var _s, _e;
156
167
 
157
168
  try {
158
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
169
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
159
170
  _arr.push(_s.value);
160
171
 
161
172
  if (i && _arr.length === i) break;
@@ -207,9 +218,10 @@
207
218
 
208
219
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
209
220
  var global_1 =
210
- /* global globalThis -- safe */
221
+ // eslint-disable-next-line es/no-global-this -- safe
211
222
  check(typeof globalThis == 'object' && globalThis) ||
212
223
  check(typeof window == 'object' && window) ||
224
+ // eslint-disable-next-line no-restricted-globals -- safe
213
225
  check(typeof self == 'object' && self) ||
214
226
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
215
227
  // eslint-disable-next-line no-new-func -- fallback
@@ -225,24 +237,38 @@
225
237
 
226
238
  // Detect IE8's incomplete defineProperty implementation
227
239
  var descriptors = !fails(function () {
240
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
228
241
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
229
242
  });
230
243
 
231
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
244
+ var functionBindNative = !fails(function () {
245
+ var test = (function () { /* empty */ }).bind();
246
+ // eslint-disable-next-line no-prototype-builtins -- safe
247
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
248
+ });
249
+
250
+ var call$2 = Function.prototype.call;
251
+
252
+ var functionCall = functionBindNative ? call$2.bind(call$2) : function () {
253
+ return call$2.apply(call$2, arguments);
254
+ };
255
+
256
+ var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
257
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
232
258
  var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
233
259
 
234
260
  // Nashorn ~ JDK8 bug
235
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
261
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
236
262
 
237
263
  // `Object.prototype.propertyIsEnumerable` method implementation
238
264
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
239
- var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
265
+ var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
240
266
  var descriptor = getOwnPropertyDescriptor$1(this, V);
241
267
  return !!descriptor && descriptor.enumerable;
242
- } : nativePropertyIsEnumerable;
268
+ } : $propertyIsEnumerable$1;
243
269
 
244
270
  var objectPropertyIsEnumerable = {
245
- f: f$4
271
+ f: f$5
246
272
  };
247
273
 
248
274
  var createPropertyDescriptor = function (bitmap, value) {
@@ -254,27 +280,44 @@
254
280
  };
255
281
  };
256
282
 
257
- var toString = {}.toString;
283
+ var FunctionPrototype$2 = Function.prototype;
284
+ var bind = FunctionPrototype$2.bind;
285
+ var call$1 = FunctionPrototype$2.call;
286
+ var uncurryThis = functionBindNative && bind.bind(call$1, call$1);
287
+
288
+ var functionUncurryThis = functionBindNative ? function (fn) {
289
+ return fn && uncurryThis(fn);
290
+ } : function (fn) {
291
+ return fn && function () {
292
+ return call$1.apply(fn, arguments);
293
+ };
294
+ };
295
+
296
+ var toString$1 = functionUncurryThis({}.toString);
297
+ var stringSlice$5 = functionUncurryThis(''.slice);
258
298
 
259
299
  var classofRaw = function (it) {
260
- return toString.call(it).slice(8, -1);
300
+ return stringSlice$5(toString$1(it), 8, -1);
261
301
  };
262
302
 
263
- var split = ''.split;
303
+ var Object$4 = global_1.Object;
304
+ var split = functionUncurryThis(''.split);
264
305
 
265
306
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
266
307
  var indexedObject = fails(function () {
267
308
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
268
309
  // eslint-disable-next-line no-prototype-builtins -- safe
269
- return !Object('z').propertyIsEnumerable(0);
310
+ return !Object$4('z').propertyIsEnumerable(0);
270
311
  }) ? function (it) {
271
- return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
272
- } : Object;
312
+ return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
313
+ } : Object$4;
314
+
315
+ var TypeError$a = global_1.TypeError;
273
316
 
274
317
  // `RequireObjectCoercible` abstract operation
275
318
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
276
319
  var requireObjectCoercible = function (it) {
277
- if (it == undefined) throw TypeError("Can't call method on " + it);
320
+ if (it == undefined) throw TypeError$a("Can't call method on " + it);
278
321
  return it;
279
322
  };
280
323
 
@@ -286,85 +329,309 @@
286
329
  return indexedObject(requireObjectCoercible(it));
287
330
  };
288
331
 
332
+ // `IsCallable` abstract operation
333
+ // https://tc39.es/ecma262/#sec-iscallable
334
+ var isCallable = function (argument) {
335
+ return typeof argument == 'function';
336
+ };
337
+
289
338
  var isObject = function (it) {
290
- return typeof it === 'object' ? it !== null : typeof it === 'function';
339
+ return typeof it == 'object' ? it !== null : isCallable(it);
291
340
  };
292
341
 
293
- // `ToPrimitive` abstract operation
294
- // https://tc39.es/ecma262/#sec-toprimitive
295
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
296
- // and the second argument - flag - preferred type is a string
297
- var toPrimitive = function (input, PREFERRED_STRING) {
298
- if (!isObject(input)) return input;
342
+ var aFunction = function (argument) {
343
+ return isCallable(argument) ? argument : undefined;
344
+ };
345
+
346
+ var getBuiltIn = function (namespace, method) {
347
+ return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
348
+ };
349
+
350
+ var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
351
+
352
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
353
+
354
+ var process = global_1.process;
355
+ var Deno = global_1.Deno;
356
+ var versions = process && process.versions || Deno && Deno.version;
357
+ var v8 = versions && versions.v8;
358
+ var match, version;
359
+
360
+ if (v8) {
361
+ match = v8.split('.');
362
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
363
+ // but their correct versions are not interesting for us
364
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
365
+ }
366
+
367
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
368
+ // so check `userAgent` even if `.v8` exists, but 0
369
+ if (!version && engineUserAgent) {
370
+ match = engineUserAgent.match(/Edge\/(\d+)/);
371
+ if (!match || match[1] >= 74) {
372
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
373
+ if (match) version = +match[1];
374
+ }
375
+ }
376
+
377
+ var engineV8Version = version;
378
+
379
+ /* eslint-disable es/no-symbol -- required for testing */
380
+
381
+
382
+
383
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
384
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
385
+ var symbol = Symbol();
386
+ // Chrome 38 Symbol has incorrect toString conversion
387
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
388
+ return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
389
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
390
+ !Symbol.sham && engineV8Version && engineV8Version < 41;
391
+ });
392
+
393
+ /* eslint-disable es/no-symbol -- required for testing */
394
+
395
+
396
+ var useSymbolAsUid = nativeSymbol
397
+ && !Symbol.sham
398
+ && typeof Symbol.iterator == 'symbol';
399
+
400
+ var Object$3 = global_1.Object;
401
+
402
+ var isSymbol = useSymbolAsUid ? function (it) {
403
+ return typeof it == 'symbol';
404
+ } : function (it) {
405
+ var $Symbol = getBuiltIn('Symbol');
406
+ return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
407
+ };
408
+
409
+ var String$4 = global_1.String;
410
+
411
+ var tryToString = function (argument) {
412
+ try {
413
+ return String$4(argument);
414
+ } catch (error) {
415
+ return 'Object';
416
+ }
417
+ };
418
+
419
+ var TypeError$9 = global_1.TypeError;
420
+
421
+ // `Assert: IsCallable(argument) is true`
422
+ var aCallable = function (argument) {
423
+ if (isCallable(argument)) return argument;
424
+ throw TypeError$9(tryToString(argument) + ' is not a function');
425
+ };
426
+
427
+ // `GetMethod` abstract operation
428
+ // https://tc39.es/ecma262/#sec-getmethod
429
+ var getMethod = function (V, P) {
430
+ var func = V[P];
431
+ return func == null ? undefined : aCallable(func);
432
+ };
433
+
434
+ var TypeError$8 = global_1.TypeError;
435
+
436
+ // `OrdinaryToPrimitive` abstract operation
437
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
438
+ var ordinaryToPrimitive = function (input, pref) {
299
439
  var fn, val;
300
- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
301
- if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
302
- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
303
- throw TypeError("Can't convert object to primitive value");
440
+ if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
441
+ if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
442
+ if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
443
+ throw TypeError$8("Can't convert object to primitive value");
304
444
  };
305
445
 
306
- var hasOwnProperty = {}.hasOwnProperty;
446
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
447
+ var defineProperty$1 = Object.defineProperty;
307
448
 
308
- var has$1 = function (it, key) {
309
- return hasOwnProperty.call(it, key);
449
+ var setGlobal = function (key, value) {
450
+ try {
451
+ defineProperty$1(global_1, key, { value: value, configurable: true, writable: true });
452
+ } catch (error) {
453
+ global_1[key] = value;
454
+ } return value;
310
455
  };
311
456
 
312
- var document = global_1.document;
457
+ var SHARED = '__core-js_shared__';
458
+ var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
459
+
460
+ var sharedStore = store$1;
461
+
462
+ var shared = createCommonjsModule(function (module) {
463
+ (module.exports = function (key, value) {
464
+ return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
465
+ })('versions', []).push({
466
+ version: '3.21.1',
467
+ mode: 'global',
468
+ copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
469
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
470
+ source: 'https://github.com/zloirock/core-js'
471
+ });
472
+ });
473
+
474
+ var Object$2 = global_1.Object;
475
+
476
+ // `ToObject` abstract operation
477
+ // https://tc39.es/ecma262/#sec-toobject
478
+ var toObject = function (argument) {
479
+ return Object$2(requireObjectCoercible(argument));
480
+ };
481
+
482
+ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
483
+
484
+ // `HasOwnProperty` abstract operation
485
+ // https://tc39.es/ecma262/#sec-hasownproperty
486
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
487
+ return hasOwnProperty(toObject(it), key);
488
+ };
489
+
490
+ var id = 0;
491
+ var postfix = Math.random();
492
+ var toString = functionUncurryThis(1.0.toString);
493
+
494
+ var uid = function (key) {
495
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
496
+ };
497
+
498
+ var WellKnownSymbolsStore = shared('wks');
499
+ var Symbol$1 = global_1.Symbol;
500
+ var symbolFor = Symbol$1 && Symbol$1['for'];
501
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
502
+
503
+ var wellKnownSymbol = function (name) {
504
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
505
+ var description = 'Symbol.' + name;
506
+ if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
507
+ WellKnownSymbolsStore[name] = Symbol$1[name];
508
+ } else if (useSymbolAsUid && symbolFor) {
509
+ WellKnownSymbolsStore[name] = symbolFor(description);
510
+ } else {
511
+ WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
512
+ }
513
+ } return WellKnownSymbolsStore[name];
514
+ };
515
+
516
+ var TypeError$7 = global_1.TypeError;
517
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
518
+
519
+ // `ToPrimitive` abstract operation
520
+ // https://tc39.es/ecma262/#sec-toprimitive
521
+ var toPrimitive = function (input, pref) {
522
+ if (!isObject(input) || isSymbol(input)) return input;
523
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
524
+ var result;
525
+ if (exoticToPrim) {
526
+ if (pref === undefined) pref = 'default';
527
+ result = functionCall(exoticToPrim, input, pref);
528
+ if (!isObject(result) || isSymbol(result)) return result;
529
+ throw TypeError$7("Can't convert object to primitive value");
530
+ }
531
+ if (pref === undefined) pref = 'number';
532
+ return ordinaryToPrimitive(input, pref);
533
+ };
534
+
535
+ // `ToPropertyKey` abstract operation
536
+ // https://tc39.es/ecma262/#sec-topropertykey
537
+ var toPropertyKey = function (argument) {
538
+ var key = toPrimitive(argument, 'string');
539
+ return isSymbol(key) ? key : key + '';
540
+ };
541
+
542
+ var document$1 = global_1.document;
313
543
  // typeof document.createElement is 'object' in old IE
314
- var EXISTS = isObject(document) && isObject(document.createElement);
544
+ var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
315
545
 
316
546
  var documentCreateElement = function (it) {
317
- return EXISTS ? document.createElement(it) : {};
547
+ return EXISTS$1 ? document$1.createElement(it) : {};
318
548
  };
319
549
 
320
- // Thank's IE8 for his funny defineProperty
550
+ // Thanks to IE8 for its funny defineProperty
321
551
  var ie8DomDefine = !descriptors && !fails(function () {
552
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
322
553
  return Object.defineProperty(documentCreateElement('div'), 'a', {
323
554
  get: function () { return 7; }
324
555
  }).a != 7;
325
556
  });
326
557
 
327
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
558
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
559
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
328
560
 
329
561
  // `Object.getOwnPropertyDescriptor` method
330
562
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
331
- var f$3 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
563
+ var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
332
564
  O = toIndexedObject(O);
333
- P = toPrimitive(P, true);
565
+ P = toPropertyKey(P);
334
566
  if (ie8DomDefine) try {
335
- return nativeGetOwnPropertyDescriptor(O, P);
567
+ return $getOwnPropertyDescriptor$1(O, P);
336
568
  } catch (error) { /* empty */ }
337
- if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
569
+ if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
338
570
  };
339
571
 
340
572
  var objectGetOwnPropertyDescriptor = {
341
- f: f$3
573
+ f: f$4
342
574
  };
343
575
 
344
- var anObject = function (it) {
345
- if (!isObject(it)) {
346
- throw TypeError(String(it) + ' is not an object');
347
- } return it;
576
+ // V8 ~ Chrome 36-
577
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
578
+ var v8PrototypeDefineBug = descriptors && fails(function () {
579
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
580
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
581
+ value: 42,
582
+ writable: false
583
+ }).prototype != 42;
584
+ });
585
+
586
+ var String$3 = global_1.String;
587
+ var TypeError$6 = global_1.TypeError;
588
+
589
+ // `Assert: Type(argument) is Object`
590
+ var anObject = function (argument) {
591
+ if (isObject(argument)) return argument;
592
+ throw TypeError$6(String$3(argument) + ' is not an object');
348
593
  };
349
594
 
350
- var nativeDefineProperty = Object.defineProperty;
595
+ var TypeError$5 = global_1.TypeError;
596
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
597
+ var $defineProperty = Object.defineProperty;
598
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
599
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
600
+ var ENUMERABLE = 'enumerable';
601
+ var CONFIGURABLE$1 = 'configurable';
602
+ var WRITABLE = 'writable';
351
603
 
352
604
  // `Object.defineProperty` method
353
605
  // https://tc39.es/ecma262/#sec-object.defineproperty
354
- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
606
+ var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
355
607
  anObject(O);
356
- P = toPrimitive(P, true);
608
+ P = toPropertyKey(P);
609
+ anObject(Attributes);
610
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
611
+ var current = $getOwnPropertyDescriptor(O, P);
612
+ if (current && current[WRITABLE]) {
613
+ O[P] = Attributes.value;
614
+ Attributes = {
615
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
616
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
617
+ writable: false
618
+ };
619
+ }
620
+ } return $defineProperty(O, P, Attributes);
621
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
622
+ anObject(O);
623
+ P = toPropertyKey(P);
357
624
  anObject(Attributes);
358
625
  if (ie8DomDefine) try {
359
- return nativeDefineProperty(O, P, Attributes);
626
+ return $defineProperty(O, P, Attributes);
360
627
  } catch (error) { /* empty */ }
361
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
628
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError$5('Accessors not supported');
362
629
  if ('value' in Attributes) O[P] = Attributes.value;
363
630
  return O;
364
631
  };
365
632
 
366
633
  var objectDefineProperty = {
367
- f: f$2
634
+ f: f$3
368
635
  };
369
636
 
370
637
  var createNonEnumerableProperty = descriptors ? function (object, key, value) {
@@ -374,25 +641,12 @@
374
641
  return object;
375
642
  };
376
643
 
377
- var setGlobal = function (key, value) {
378
- try {
379
- createNonEnumerableProperty(global_1, key, value);
380
- } catch (error) {
381
- global_1[key] = value;
382
- } return value;
383
- };
384
-
385
- var SHARED = '__core-js_shared__';
386
- var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
644
+ var functionToString = functionUncurryThis(Function.toString);
387
645
 
388
- var sharedStore = store$1;
389
-
390
- var functionToString = Function.toString;
391
-
392
- // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
393
- if (typeof sharedStore.inspectSource != 'function') {
646
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
647
+ if (!isCallable(sharedStore.inspectSource)) {
394
648
  sharedStore.inspectSource = function (it) {
395
- return functionToString.call(it);
649
+ return functionToString(it);
396
650
  };
397
651
  }
398
652
 
@@ -400,24 +654,7 @@
400
654
 
401
655
  var WeakMap$1 = global_1.WeakMap;
402
656
 
403
- var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
404
-
405
- var shared = createCommonjsModule(function (module) {
406
- (module.exports = function (key, value) {
407
- return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
408
- })('versions', []).push({
409
- version: '3.9.1',
410
- mode: 'global',
411
- copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
412
- });
413
- });
414
-
415
- var id = 0;
416
- var postfix = Math.random();
417
-
418
- var uid = function (key) {
419
- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
420
- };
657
+ var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
421
658
 
422
659
  var keys$1 = shared('keys');
423
660
 
@@ -427,6 +664,8 @@
427
664
 
428
665
  var hiddenKeys$1 = {};
429
666
 
667
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
668
+ var TypeError$4 = global_1.TypeError;
430
669
  var WeakMap = global_1.WeakMap;
431
670
  var set, get, has;
432
671
 
@@ -438,40 +677,42 @@
438
677
  return function (it) {
439
678
  var state;
440
679
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
441
- throw TypeError('Incompatible receiver, ' + TYPE + ' required');
680
+ throw TypeError$4('Incompatible receiver, ' + TYPE + ' required');
442
681
  } return state;
443
682
  };
444
683
  };
445
684
 
446
- if (nativeWeakMap) {
685
+ if (nativeWeakMap || sharedStore.state) {
447
686
  var store = sharedStore.state || (sharedStore.state = new WeakMap());
448
- var wmget = store.get;
449
- var wmhas = store.has;
450
- var wmset = store.set;
687
+ var wmget = functionUncurryThis(store.get);
688
+ var wmhas = functionUncurryThis(store.has);
689
+ var wmset = functionUncurryThis(store.set);
451
690
  set = function (it, metadata) {
691
+ if (wmhas(store, it)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
452
692
  metadata.facade = it;
453
- wmset.call(store, it, metadata);
693
+ wmset(store, it, metadata);
454
694
  return metadata;
455
695
  };
456
696
  get = function (it) {
457
- return wmget.call(store, it) || {};
697
+ return wmget(store, it) || {};
458
698
  };
459
699
  has = function (it) {
460
- return wmhas.call(store, it);
700
+ return wmhas(store, it);
461
701
  };
462
702
  } else {
463
703
  var STATE = sharedKey('state');
464
704
  hiddenKeys$1[STATE] = true;
465
705
  set = function (it, metadata) {
706
+ if (hasOwnProperty_1(it, STATE)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
466
707
  metadata.facade = it;
467
708
  createNonEnumerableProperty(it, STATE, metadata);
468
709
  return metadata;
469
710
  };
470
711
  get = function (it) {
471
- return has$1(it, STATE) ? it[STATE] : {};
712
+ return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
472
713
  };
473
714
  has = function (it) {
474
- return has$1(it, STATE);
715
+ return hasOwnProperty_1(it, STATE);
475
716
  };
476
717
  }
477
718
 
@@ -483,7 +724,24 @@
483
724
  getterFor: getterFor
484
725
  };
485
726
 
727
+ var FunctionPrototype$1 = Function.prototype;
728
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
729
+ var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
730
+
731
+ var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
732
+ // additional protection from minified / mangled / dropped function names
733
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
734
+ var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
735
+
736
+ var functionName = {
737
+ EXISTS: EXISTS,
738
+ PROPER: PROPER,
739
+ CONFIGURABLE: CONFIGURABLE
740
+ };
741
+
486
742
  var redefine = createCommonjsModule(function (module) {
743
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
744
+
487
745
  var getInternalState = internalState.get;
488
746
  var enforceInternalState = internalState.enforce;
489
747
  var TEMPLATE = String(String).split('String');
@@ -492,14 +750,18 @@
492
750
  var unsafe = options ? !!options.unsafe : false;
493
751
  var simple = options ? !!options.enumerable : false;
494
752
  var noTargetGet = options ? !!options.noTargetGet : false;
753
+ var name = options && options.name !== undefined ? options.name : key;
495
754
  var state;
496
- if (typeof value == 'function') {
497
- if (typeof key == 'string' && !has$1(value, 'name')) {
498
- createNonEnumerableProperty(value, 'name', key);
755
+ if (isCallable(value)) {
756
+ if (String(name).slice(0, 7) === 'Symbol(') {
757
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
758
+ }
759
+ if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
760
+ createNonEnumerableProperty(value, 'name', name);
499
761
  }
500
762
  state = enforceInternalState(value);
501
763
  if (!state.source) {
502
- state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
764
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
503
765
  }
504
766
  }
505
767
  if (O === global_1) {
@@ -515,54 +777,51 @@
515
777
  else createNonEnumerableProperty(O, key, value);
516
778
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
517
779
  })(Function.prototype, 'toString', function toString() {
518
- return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
780
+ return isCallable(this) && getInternalState(this).source || inspectSource(this);
519
781
  });
520
782
  });
521
783
 
522
- var path = global_1;
523
-
524
- var aFunction = function (variable) {
525
- return typeof variable == 'function' ? variable : undefined;
526
- };
527
-
528
- var getBuiltIn = function (namespace, method) {
529
- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
530
- : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
531
- };
532
-
533
784
  var ceil = Math.ceil;
534
785
  var floor$1 = Math.floor;
535
786
 
536
- // `ToInteger` abstract operation
537
- // https://tc39.es/ecma262/#sec-tointeger
538
- var toInteger = function (argument) {
539
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$1 : ceil)(argument);
787
+ // `ToIntegerOrInfinity` abstract operation
788
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
789
+ var toIntegerOrInfinity = function (argument) {
790
+ var number = +argument;
791
+ // eslint-disable-next-line no-self-compare -- safe
792
+ return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
540
793
  };
541
794
 
795
+ var max$1 = Math.max;
542
796
  var min$2 = Math.min;
543
797
 
798
+ // Helper for a popular repeating case of the spec:
799
+ // Let integer be ? ToInteger(index).
800
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
801
+ var toAbsoluteIndex = function (index, length) {
802
+ var integer = toIntegerOrInfinity(index);
803
+ return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
804
+ };
805
+
806
+ var min$1 = Math.min;
807
+
544
808
  // `ToLength` abstract operation
545
809
  // https://tc39.es/ecma262/#sec-tolength
546
810
  var toLength = function (argument) {
547
- return argument > 0 ? min$2(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
811
+ return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
548
812
  };
549
813
 
550
- var max$1 = Math.max;
551
- var min$1 = Math.min;
552
-
553
- // Helper for a popular repeating case of the spec:
554
- // Let integer be ? ToInteger(index).
555
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
556
- var toAbsoluteIndex = function (index, length) {
557
- var integer = toInteger(index);
558
- return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
814
+ // `LengthOfArrayLike` abstract operation
815
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
816
+ var lengthOfArrayLike = function (obj) {
817
+ return toLength(obj.length);
559
818
  };
560
819
 
561
820
  // `Array.prototype.{ indexOf, includes }` methods implementation
562
821
  var createMethod$2 = function (IS_INCLUDES) {
563
822
  return function ($this, el, fromIndex) {
564
823
  var O = toIndexedObject($this);
565
- var length = toLength(O.length);
824
+ var length = lengthOfArrayLike(O);
566
825
  var index = toAbsoluteIndex(fromIndex, length);
567
826
  var value;
568
827
  // Array#includes uses SameValueZero equality algorithm
@@ -587,18 +846,20 @@
587
846
  indexOf: createMethod$2(false)
588
847
  };
589
848
 
590
- var indexOf = arrayIncludes.indexOf;
849
+ var indexOf$1 = arrayIncludes.indexOf;
591
850
 
592
851
 
852
+ var push$2 = functionUncurryThis([].push);
853
+
593
854
  var objectKeysInternal = function (object, names) {
594
855
  var O = toIndexedObject(object);
595
856
  var i = 0;
596
857
  var result = [];
597
858
  var key;
598
- for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
859
+ for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$2(result, key);
599
860
  // Don't enum bug & hidden keys
600
- while (names.length > i) if (has$1(O, key = names[i++])) {
601
- ~indexOf(result, key) || result.push(key);
861
+ while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
862
+ ~indexOf$1(result, key) || push$2(result, key);
602
863
  }
603
864
  return result;
604
865
  };
@@ -618,34 +879,40 @@
618
879
 
619
880
  // `Object.getOwnPropertyNames` method
620
881
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
621
- var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
882
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
883
+ var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
622
884
  return objectKeysInternal(O, hiddenKeys);
623
885
  };
624
886
 
625
887
  var objectGetOwnPropertyNames = {
626
- f: f$1
888
+ f: f$2
627
889
  };
628
890
 
629
- var f = Object.getOwnPropertySymbols;
891
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
892
+ var f$1 = Object.getOwnPropertySymbols;
630
893
 
631
894
  var objectGetOwnPropertySymbols = {
632
- f: f
895
+ f: f$1
633
896
  };
634
897
 
898
+ var concat$1 = functionUncurryThis([].concat);
899
+
635
900
  // all object keys, includes non-enumerable and symbols
636
901
  var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
637
902
  var keys = objectGetOwnPropertyNames.f(anObject(it));
638
903
  var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
639
- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
904
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
640
905
  };
641
906
 
642
- var copyConstructorProperties = function (target, source) {
907
+ var copyConstructorProperties = function (target, source, exceptions) {
643
908
  var keys = ownKeys(source);
644
909
  var defineProperty = objectDefineProperty.f;
645
910
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
646
911
  for (var i = 0; i < keys.length; i++) {
647
912
  var key = keys[i];
648
- if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
913
+ if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
914
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
915
+ }
649
916
  }
650
917
  };
651
918
 
@@ -655,7 +922,7 @@
655
922
  var value = data[normalize(feature)];
656
923
  return value == POLYFILL ? true
657
924
  : value == NATIVE ? false
658
- : typeof detection == 'function' ? fails(detection)
925
+ : isCallable(detection) ? fails(detection)
659
926
  : !!detection;
660
927
  };
661
928
 
@@ -689,6 +956,7 @@
689
956
  options.sham - add a flag to not completely full polyfills
690
957
  options.enumerable - export as enumerable property
691
958
  options.noTargetGet - prevent calling a getter on target
959
+ options.name - the .name of the function if it does not match the key
692
960
  */
693
961
  var _export = function (options, source) {
694
962
  var TARGET = options.target;
@@ -711,7 +979,7 @@
711
979
  FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
712
980
  // contained in target
713
981
  if (!FORCED && targetProperty !== undefined) {
714
- if (typeof sourceProperty === typeof targetProperty) continue;
982
+ if (typeof sourceProperty == typeof targetProperty) continue;
715
983
  copyConstructorProperties(sourceProperty, targetProperty);
716
984
  }
717
985
  // add a flag to not completely full polyfills
@@ -723,6 +991,45 @@
723
991
  }
724
992
  };
725
993
 
994
+ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
995
+ var test = {};
996
+
997
+ test[TO_STRING_TAG$1] = 'z';
998
+
999
+ var toStringTagSupport = String(test) === '[object z]';
1000
+
1001
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1002
+ var Object$1 = global_1.Object;
1003
+
1004
+ // ES3 wrong here
1005
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1006
+
1007
+ // fallback for IE11 Script Access Denied error
1008
+ var tryGet = function (it, key) {
1009
+ try {
1010
+ return it[key];
1011
+ } catch (error) { /* empty */ }
1012
+ };
1013
+
1014
+ // getting tag from ES6+ `Object.prototype.toString`
1015
+ var classof = toStringTagSupport ? classofRaw : function (it) {
1016
+ var O, tag, result;
1017
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1018
+ // @@toStringTag case
1019
+ : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
1020
+ // builtinTag case
1021
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1022
+ // ES3 arguments fallback
1023
+ : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1024
+ };
1025
+
1026
+ var String$2 = global_1.String;
1027
+
1028
+ var toString_1 = function (argument) {
1029
+ if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1030
+ return String$2(argument);
1031
+ };
1032
+
726
1033
  // `RegExp.prototype.flags` getter implementation
727
1034
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
728
1035
  var regexpFlags = function () {
@@ -737,74 +1044,228 @@
737
1044
  return result;
738
1045
  };
739
1046
 
740
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
741
- // so we use an intermediate function.
742
- function RE(s, f) {
743
- return RegExp(s, f);
744
- }
1047
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1048
+ var $RegExp$2 = global_1.RegExp;
745
1049
 
746
1050
  var UNSUPPORTED_Y$2 = fails(function () {
747
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
748
- var re = RE('a', 'y');
1051
+ var re = $RegExp$2('a', 'y');
749
1052
  re.lastIndex = 2;
750
1053
  return re.exec('abcd') != null;
751
1054
  });
752
1055
 
753
- var BROKEN_CARET = fails(function () {
1056
+ // UC Browser bug
1057
+ // https://github.com/zloirock/core-js/issues/1008
1058
+ var MISSED_STICKY$1 = UNSUPPORTED_Y$2 || fails(function () {
1059
+ return !$RegExp$2('a', 'y').sticky;
1060
+ });
1061
+
1062
+ var BROKEN_CARET = UNSUPPORTED_Y$2 || fails(function () {
754
1063
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
755
- var re = RE('^r', 'gy');
1064
+ var re = $RegExp$2('^r', 'gy');
756
1065
  re.lastIndex = 2;
757
1066
  return re.exec('str') != null;
758
1067
  });
759
1068
 
760
1069
  var regexpStickyHelpers = {
761
- UNSUPPORTED_Y: UNSUPPORTED_Y$2,
762
- BROKEN_CARET: BROKEN_CARET
1070
+ BROKEN_CARET: BROKEN_CARET,
1071
+ MISSED_STICKY: MISSED_STICKY$1,
1072
+ UNSUPPORTED_Y: UNSUPPORTED_Y$2
763
1073
  };
764
1074
 
765
- var nativeExec = RegExp.prototype.exec;
766
- // This always refers to the native implementation, because the
767
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
768
- // which loads this file before patching the method.
769
- var nativeReplace = String.prototype.replace;
1075
+ // `Object.keys` method
1076
+ // https://tc39.es/ecma262/#sec-object.keys
1077
+ // eslint-disable-next-line es/no-object-keys -- safe
1078
+ var objectKeys = Object.keys || function keys(O) {
1079
+ return objectKeysInternal(O, enumBugKeys);
1080
+ };
1081
+
1082
+ // `Object.defineProperties` method
1083
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1084
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1085
+ var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
1086
+ anObject(O);
1087
+ var props = toIndexedObject(Properties);
1088
+ var keys = objectKeys(Properties);
1089
+ var length = keys.length;
1090
+ var index = 0;
1091
+ var key;
1092
+ while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
1093
+ return O;
1094
+ };
1095
+
1096
+ var objectDefineProperties = {
1097
+ f: f
1098
+ };
1099
+
1100
+ var html = getBuiltIn('document', 'documentElement');
770
1101
 
1102
+ /* global ActiveXObject -- old IE, WSH */
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+ var GT = '>';
1112
+ var LT = '<';
1113
+ var PROTOTYPE = 'prototype';
1114
+ var SCRIPT = 'script';
1115
+ var IE_PROTO = sharedKey('IE_PROTO');
1116
+
1117
+ var EmptyConstructor = function () { /* empty */ };
1118
+
1119
+ var scriptTag = function (content) {
1120
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1121
+ };
1122
+
1123
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1124
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1125
+ activeXDocument.write(scriptTag(''));
1126
+ activeXDocument.close();
1127
+ var temp = activeXDocument.parentWindow.Object;
1128
+ activeXDocument = null; // avoid memory leak
1129
+ return temp;
1130
+ };
1131
+
1132
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1133
+ var NullProtoObjectViaIFrame = function () {
1134
+ // Thrash, waste and sodomy: IE GC bug
1135
+ var iframe = documentCreateElement('iframe');
1136
+ var JS = 'java' + SCRIPT + ':';
1137
+ var iframeDocument;
1138
+ iframe.style.display = 'none';
1139
+ html.appendChild(iframe);
1140
+ // https://github.com/zloirock/core-js/issues/475
1141
+ iframe.src = String(JS);
1142
+ iframeDocument = iframe.contentWindow.document;
1143
+ iframeDocument.open();
1144
+ iframeDocument.write(scriptTag('document.F=Object'));
1145
+ iframeDocument.close();
1146
+ return iframeDocument.F;
1147
+ };
1148
+
1149
+ // Check for document.domain and active x support
1150
+ // No need to use active x approach when document.domain is not set
1151
+ // see https://github.com/es-shims/es5-shim/issues/150
1152
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1153
+ // avoid IE GC bug
1154
+ var activeXDocument;
1155
+ var NullProtoObject = function () {
1156
+ try {
1157
+ activeXDocument = new ActiveXObject('htmlfile');
1158
+ } catch (error) { /* ignore */ }
1159
+ NullProtoObject = typeof document != 'undefined'
1160
+ ? document.domain && activeXDocument
1161
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1162
+ : NullProtoObjectViaIFrame()
1163
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1164
+ var length = enumBugKeys.length;
1165
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1166
+ return NullProtoObject();
1167
+ };
1168
+
1169
+ hiddenKeys$1[IE_PROTO] = true;
1170
+
1171
+ // `Object.create` method
1172
+ // https://tc39.es/ecma262/#sec-object.create
1173
+ var objectCreate = Object.create || function create(O, Properties) {
1174
+ var result;
1175
+ if (O !== null) {
1176
+ EmptyConstructor[PROTOTYPE] = anObject(O);
1177
+ result = new EmptyConstructor();
1178
+ EmptyConstructor[PROTOTYPE] = null;
1179
+ // add "__proto__" for Object.getPrototypeOf polyfill
1180
+ result[IE_PROTO] = O;
1181
+ } else result = NullProtoObject();
1182
+ return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
1183
+ };
1184
+
1185
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1186
+ var $RegExp$1 = global_1.RegExp;
1187
+
1188
+ var regexpUnsupportedDotAll = fails(function () {
1189
+ var re = $RegExp$1('.', 's');
1190
+ return !(re.dotAll && re.exec('\n') && re.flags === 's');
1191
+ });
1192
+
1193
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1194
+ var $RegExp = global_1.RegExp;
1195
+
1196
+ var regexpUnsupportedNcg = fails(function () {
1197
+ var re = $RegExp('(?<a>b)', 'g');
1198
+ return re.exec('b').groups.a !== 'b' ||
1199
+ 'b'.replace(re, '$<a>c') !== 'bc';
1200
+ });
1201
+
1202
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1203
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
1204
+
1205
+
1206
+
1207
+
1208
+
1209
+
1210
+
1211
+ var getInternalState = internalState.get;
1212
+
1213
+
1214
+
1215
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
1216
+ var nativeExec = RegExp.prototype.exec;
771
1217
  var patchedExec = nativeExec;
1218
+ var charAt$4 = functionUncurryThis(''.charAt);
1219
+ var indexOf = functionUncurryThis(''.indexOf);
1220
+ var replace$2 = functionUncurryThis(''.replace);
1221
+ var stringSlice$4 = functionUncurryThis(''.slice);
772
1222
 
773
1223
  var UPDATES_LAST_INDEX_WRONG = (function () {
774
1224
  var re1 = /a/;
775
1225
  var re2 = /b*/g;
776
- nativeExec.call(re1, 'a');
777
- nativeExec.call(re2, 'a');
1226
+ functionCall(nativeExec, re1, 'a');
1227
+ functionCall(nativeExec, re2, 'a');
778
1228
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
779
1229
  })();
780
1230
 
781
- var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
1231
+ var UNSUPPORTED_Y$1 = regexpStickyHelpers.BROKEN_CARET;
782
1232
 
783
1233
  // nonparticipating capturing group, copied from es5-shim's String#split patch.
784
- // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
785
1234
  var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
786
1235
 
787
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
1236
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || regexpUnsupportedDotAll || regexpUnsupportedNcg;
788
1237
 
789
1238
  if (PATCH) {
790
- patchedExec = function exec(str) {
1239
+ patchedExec = function exec(string) {
791
1240
  var re = this;
792
- var lastIndex, reCopy, match, i;
1241
+ var state = getInternalState(re);
1242
+ var str = toString_1(string);
1243
+ var raw = state.raw;
1244
+ var result, reCopy, lastIndex, match, i, object, group;
1245
+
1246
+ if (raw) {
1247
+ raw.lastIndex = re.lastIndex;
1248
+ result = functionCall(patchedExec, raw, str);
1249
+ re.lastIndex = raw.lastIndex;
1250
+ return result;
1251
+ }
1252
+
1253
+ var groups = state.groups;
793
1254
  var sticky = UNSUPPORTED_Y$1 && re.sticky;
794
- var flags = regexpFlags.call(re);
1255
+ var flags = functionCall(regexpFlags, re);
795
1256
  var source = re.source;
796
1257
  var charsAdded = 0;
797
1258
  var strCopy = str;
798
1259
 
799
1260
  if (sticky) {
800
- flags = flags.replace('y', '');
801
- if (flags.indexOf('g') === -1) {
1261
+ flags = replace$2(flags, 'y', '');
1262
+ if (indexOf(flags, 'g') === -1) {
802
1263
  flags += 'g';
803
1264
  }
804
1265
 
805
- strCopy = String(str).slice(re.lastIndex);
1266
+ strCopy = stringSlice$4(str, re.lastIndex);
806
1267
  // Support anchored sticky behavior.
807
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
1268
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$4(str, re.lastIndex - 1) !== '\n')) {
808
1269
  source = '(?: ' + source + ')';
809
1270
  strCopy = ' ' + strCopy;
810
1271
  charsAdded++;
@@ -819,12 +1280,12 @@
819
1280
  }
820
1281
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
821
1282
 
822
- match = nativeExec.call(sticky ? reCopy : re, strCopy);
1283
+ match = functionCall(nativeExec, sticky ? reCopy : re, strCopy);
823
1284
 
824
1285
  if (sticky) {
825
1286
  if (match) {
826
- match.input = match.input.slice(charsAdded);
827
- match[0] = match[0].slice(charsAdded);
1287
+ match.input = stringSlice$4(match.input, charsAdded);
1288
+ match[0] = stringSlice$4(match[0], charsAdded);
828
1289
  match.index = re.lastIndex;
829
1290
  re.lastIndex += match[0].length;
830
1291
  } else re.lastIndex = 0;
@@ -834,13 +1295,21 @@
834
1295
  if (NPCG_INCLUDED && match && match.length > 1) {
835
1296
  // Fix browsers whose `exec` methods don't consistently return `undefined`
836
1297
  // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
837
- nativeReplace.call(match[0], reCopy, function () {
1298
+ functionCall(nativeReplace, match[0], reCopy, function () {
838
1299
  for (i = 1; i < arguments.length - 2; i++) {
839
1300
  if (arguments[i] === undefined) match[i] = undefined;
840
1301
  }
841
1302
  });
842
1303
  }
843
1304
 
1305
+ if (match && groups) {
1306
+ match.groups = object = objectCreate(null);
1307
+ for (i = 0; i < groups.length; i++) {
1308
+ group = groups[i];
1309
+ object[group[0]] = match[group[1]];
1310
+ }
1311
+ }
1312
+
844
1313
  return match;
845
1314
  };
846
1315
  }
@@ -853,55 +1322,6 @@
853
1322
  exec: regexpExec
854
1323
  });
855
1324
 
856
- var engineIsNode = classofRaw(global_1.process) == 'process';
857
-
858
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
859
-
860
- var process = global_1.process;
861
- var versions = process && process.versions;
862
- var v8 = versions && versions.v8;
863
- var match, version;
864
-
865
- if (v8) {
866
- match = v8.split('.');
867
- version = match[0] + match[1];
868
- } else if (engineUserAgent) {
869
- match = engineUserAgent.match(/Edge\/(\d+)/);
870
- if (!match || match[1] >= 74) {
871
- match = engineUserAgent.match(/Chrome\/(\d+)/);
872
- if (match) version = match[1];
873
- }
874
- }
875
-
876
- var engineV8Version = version && +version;
877
-
878
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
879
- /* global Symbol -- required for testing */
880
- return !Symbol.sham &&
881
- // Chrome 38 Symbol has incorrect toString conversion
882
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
883
- (engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
884
- });
885
-
886
- var useSymbolAsUid = nativeSymbol
887
- /* global Symbol -- safe */
888
- && !Symbol.sham
889
- && typeof Symbol.iterator == 'symbol';
890
-
891
- var WellKnownSymbolsStore = shared('wks');
892
- var Symbol$1 = global_1.Symbol;
893
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
894
-
895
- var wellKnownSymbol = function (name) {
896
- if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
897
- if (nativeSymbol && has$1(Symbol$1, name)) {
898
- WellKnownSymbolsStore[name] = Symbol$1[name];
899
- } else {
900
- WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
901
- }
902
- } return WellKnownSymbolsStore[name];
903
- };
904
-
905
1325
  // TODO: Remove from `core-js@4` since it's moved to entry points
906
1326
 
907
1327
 
@@ -910,48 +1330,11 @@
910
1330
 
911
1331
 
912
1332
 
913
- var SPECIES$3 = wellKnownSymbol('species');
914
1333
 
915
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
916
- // #replace needs built-in support for named groups.
917
- // #match works fine because it just return the exec results, even if it has
918
- // a "grops" property.
919
- var re = /./;
920
- re.exec = function () {
921
- var result = [];
922
- result.groups = { a: '7' };
923
- return result;
924
- };
925
- return ''.replace(re, '$<a>') !== '7';
926
- });
927
-
928
- // IE <= 11 replaces $0 with the whole match, as if it was $&
929
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
930
- var REPLACE_KEEPS_$0 = (function () {
931
- return 'a'.replace(/./, '$0') === '$0';
932
- })();
933
-
934
- var REPLACE = wellKnownSymbol('replace');
935
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
936
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
937
- if (/./[REPLACE]) {
938
- return /./[REPLACE]('a', '$0') === '';
939
- }
940
- return false;
941
- })();
942
-
943
- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
944
- // Weex JS has frozen built-in prototypes, so use try / catch wrapper
945
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
946
- // eslint-disable-next-line regexp/no-empty-group -- required for testing
947
- var re = /(?:)/;
948
- var originalExec = re.exec;
949
- re.exec = function () { return originalExec.apply(this, arguments); };
950
- var result = 'ab'.split(re);
951
- return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
952
- });
1334
+ var SPECIES$3 = wellKnownSymbol('species');
1335
+ var RegExpPrototype$2 = RegExp.prototype;
953
1336
 
954
- var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
1337
+ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
955
1338
  var SYMBOL = wellKnownSymbol(KEY);
956
1339
 
957
1340
  var DELEGATES_TO_SYMBOL = !fails(function () {
@@ -988,90 +1371,72 @@
988
1371
  if (
989
1372
  !DELEGATES_TO_SYMBOL ||
990
1373
  !DELEGATES_TO_EXEC ||
991
- (KEY === 'replace' && !(
992
- REPLACE_SUPPORTS_NAMED_GROUPS &&
993
- REPLACE_KEEPS_$0 &&
994
- !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
995
- )) ||
996
- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1374
+ FORCED
997
1375
  ) {
998
- var nativeRegExpMethod = /./[SYMBOL];
1376
+ var uncurriedNativeRegExpMethod = functionUncurryThis(/./[SYMBOL]);
999
1377
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1000
- if (regexp.exec === regexpExec) {
1378
+ var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
1379
+ var $exec = regexp.exec;
1380
+ if ($exec === regexpExec || $exec === RegExpPrototype$2.exec) {
1001
1381
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1002
1382
  // The native String method already delegates to @@method (this
1003
1383
  // polyfilled function), leasing to infinite recursion.
1004
1384
  // We avoid it by directly calling the native @@method method.
1005
- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
1385
+ return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
1006
1386
  }
1007
- return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1387
+ return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
1008
1388
  }
1009
1389
  return { done: false };
1010
- }, {
1011
- REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
1012
- REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1013
1390
  });
1014
- var stringMethod = methods[0];
1015
- var regexMethod = methods[1];
1016
-
1017
- redefine(String.prototype, KEY, stringMethod);
1018
- redefine(RegExp.prototype, SYMBOL, length == 2
1019
- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
1020
- // 21.2.5.11 RegExp.prototype[@@split](string, limit)
1021
- ? function (string, arg) { return regexMethod.call(string, this, arg); }
1022
- // 21.2.5.6 RegExp.prototype[@@match](string)
1023
- // 21.2.5.9 RegExp.prototype[@@search](string)
1024
- : function (string) { return regexMethod.call(string, this); }
1025
- );
1391
+
1392
+ redefine(String.prototype, KEY, methods[0]);
1393
+ redefine(RegExpPrototype$2, SYMBOL, methods[1]);
1026
1394
  }
1027
1395
 
1028
- if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1396
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype$2[SYMBOL], 'sham', true);
1029
1397
  };
1030
1398
 
1031
1399
  // `SameValue` abstract operation
1032
1400
  // https://tc39.es/ecma262/#sec-samevalue
1401
+ // eslint-disable-next-line es/no-object-is -- safe
1033
1402
  var sameValue = Object.is || function is(x, y) {
1034
1403
  // eslint-disable-next-line no-self-compare -- NaN check
1035
1404
  return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
1036
1405
  };
1037
1406
 
1407
+ var TypeError$3 = global_1.TypeError;
1408
+
1038
1409
  // `RegExpExec` abstract operation
1039
1410
  // https://tc39.es/ecma262/#sec-regexpexec
1040
1411
  var regexpExecAbstract = function (R, S) {
1041
1412
  var exec = R.exec;
1042
- if (typeof exec === 'function') {
1043
- var result = exec.call(R, S);
1044
- if (typeof result !== 'object') {
1045
- throw TypeError('RegExp exec method returned something other than an Object or null');
1046
- }
1413
+ if (isCallable(exec)) {
1414
+ var result = functionCall(exec, R, S);
1415
+ if (result !== null) anObject(result);
1047
1416
  return result;
1048
1417
  }
1049
-
1050
- if (classofRaw(R) !== 'RegExp') {
1051
- throw TypeError('RegExp#exec called on incompatible receiver');
1052
- }
1053
-
1054
- return regexpExec.call(R, S);
1418
+ if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
1419
+ throw TypeError$3('RegExp#exec called on incompatible receiver');
1055
1420
  };
1056
1421
 
1057
1422
  // @@search logic
1058
- fixRegexpWellKnownSymbolLogic('search', 1, function (SEARCH, nativeSearch, maybeCallNative) {
1423
+ fixRegexpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
1059
1424
  return [
1060
1425
  // `String.prototype.search` method
1061
1426
  // https://tc39.es/ecma262/#sec-string.prototype.search
1062
1427
  function search(regexp) {
1063
1428
  var O = requireObjectCoercible(this);
1064
- var searcher = regexp == undefined ? undefined : regexp[SEARCH];
1065
- return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
1429
+ var searcher = regexp == undefined ? undefined : getMethod(regexp, SEARCH);
1430
+ return searcher ? functionCall(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString_1(O));
1066
1431
  },
1067
1432
  // `RegExp.prototype[@@search]` method
1068
1433
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
1069
- function (regexp) {
1070
- var res = maybeCallNative(nativeSearch, regexp, this);
1071
- if (res.done) return res.value;
1434
+ function (string) {
1435
+ var rx = anObject(this);
1436
+ var S = toString_1(string);
1437
+ var res = maybeCallNative(nativeSearch, rx, S);
1072
1438
 
1073
- var rx = anObject(regexp);
1074
- var S = String(this);
1439
+ if (res.done) return res.value;
1075
1440
 
1076
1441
  var previousLastIndex = rx.lastIndex;
1077
1442
  if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
@@ -1082,32 +1447,37 @@
1082
1447
  ];
1083
1448
  });
1084
1449
 
1085
- var aPossiblePrototype = function (it) {
1086
- if (!isObject(it) && it !== null) {
1087
- throw TypeError("Can't set " + String(it) + ' as a prototype');
1088
- } return it;
1450
+ var String$1 = global_1.String;
1451
+ var TypeError$2 = global_1.TypeError;
1452
+
1453
+ var aPossiblePrototype = function (argument) {
1454
+ if (typeof argument == 'object' || isCallable(argument)) return argument;
1455
+ throw TypeError$2("Can't set " + String$1(argument) + ' as a prototype');
1089
1456
  };
1090
1457
 
1091
1458
  /* eslint-disable no-proto -- safe */
1092
1459
 
1093
1460
 
1094
1461
 
1462
+
1095
1463
  // `Object.setPrototypeOf` method
1096
1464
  // https://tc39.es/ecma262/#sec-object.setprototypeof
1097
1465
  // Works with __proto__ only. Old v8 can't work with null proto objects.
1466
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1098
1467
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1099
1468
  var CORRECT_SETTER = false;
1100
1469
  var test = {};
1101
1470
  var setter;
1102
1471
  try {
1103
- setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
1104
- setter.call(test, []);
1472
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1473
+ setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1474
+ setter(test, []);
1105
1475
  CORRECT_SETTER = test instanceof Array;
1106
1476
  } catch (error) { /* empty */ }
1107
1477
  return function setPrototypeOf(O, proto) {
1108
1478
  anObject(O);
1109
1479
  aPossiblePrototype(proto);
1110
- if (CORRECT_SETTER) setter.call(O, proto);
1480
+ if (CORRECT_SETTER) setter(O, proto);
1111
1481
  else O.__proto__ = proto;
1112
1482
  return O;
1113
1483
  };
@@ -1120,7 +1490,7 @@
1120
1490
  // it can work only with native `setPrototypeOf`
1121
1491
  objectSetPrototypeOf &&
1122
1492
  // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
1123
- typeof (NewTarget = dummy.constructor) == 'function' &&
1493
+ isCallable(NewTarget = dummy.constructor) &&
1124
1494
  NewTarget !== Wrapper &&
1125
1495
  isObject(NewTargetPrototype = NewTarget.prototype) &&
1126
1496
  NewTargetPrototype !== Wrapper.prototype
@@ -1158,62 +1528,173 @@
1158
1528
 
1159
1529
 
1160
1530
 
1161
- var setInternalState = internalState.set;
1531
+
1532
+
1533
+
1534
+ var enforceInternalState = internalState.enforce;
1535
+
1536
+
1162
1537
 
1163
1538
 
1164
1539
 
1165
1540
  var MATCH = wellKnownSymbol('match');
1166
1541
  var NativeRegExp = global_1.RegExp;
1167
1542
  var RegExpPrototype$1 = NativeRegExp.prototype;
1543
+ var SyntaxError = global_1.SyntaxError;
1544
+ var getFlags$1 = functionUncurryThis(regexpFlags);
1545
+ var exec$1 = functionUncurryThis(RegExpPrototype$1.exec);
1546
+ var charAt$3 = functionUncurryThis(''.charAt);
1547
+ var replace$1 = functionUncurryThis(''.replace);
1548
+ var stringIndexOf$1 = functionUncurryThis(''.indexOf);
1549
+ var stringSlice$3 = functionUncurryThis(''.slice);
1550
+ // TODO: Use only propper RegExpIdentifierName
1551
+ var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
1168
1552
  var re1 = /a/g;
1169
1553
  var re2 = /a/g;
1170
1554
 
1171
1555
  // "new" should create a new object, old webkit bug
1172
1556
  var CORRECT_NEW = new NativeRegExp(re1) !== re1;
1173
1557
 
1558
+ var MISSED_STICKY = regexpStickyHelpers.MISSED_STICKY;
1174
1559
  var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
1175
1560
 
1176
- var FORCED$1 = descriptors && isForced_1('RegExp', (!CORRECT_NEW || UNSUPPORTED_Y || fails(function () {
1177
- re2[MATCH] = false;
1178
- // RegExp constructor can alter flags and IsRegExp works correct with @@match
1179
- return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
1180
- })));
1561
+ var BASE_FORCED = descriptors &&
1562
+ (!CORRECT_NEW || MISSED_STICKY || regexpUnsupportedDotAll || regexpUnsupportedNcg || fails(function () {
1563
+ re2[MATCH] = false;
1564
+ // RegExp constructor can alter flags and IsRegExp works correct with @@match
1565
+ return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
1566
+ }));
1567
+
1568
+ var handleDotAll = function (string) {
1569
+ var length = string.length;
1570
+ var index = 0;
1571
+ var result = '';
1572
+ var brackets = false;
1573
+ var chr;
1574
+ for (; index <= length; index++) {
1575
+ chr = charAt$3(string, index);
1576
+ if (chr === '\\') {
1577
+ result += chr + charAt$3(string, ++index);
1578
+ continue;
1579
+ }
1580
+ if (!brackets && chr === '.') {
1581
+ result += '[\\s\\S]';
1582
+ } else {
1583
+ if (chr === '[') {
1584
+ brackets = true;
1585
+ } else if (chr === ']') {
1586
+ brackets = false;
1587
+ } result += chr;
1588
+ }
1589
+ } return result;
1590
+ };
1591
+
1592
+ var handleNCG = function (string) {
1593
+ var length = string.length;
1594
+ var index = 0;
1595
+ var result = '';
1596
+ var named = [];
1597
+ var names = {};
1598
+ var brackets = false;
1599
+ var ncg = false;
1600
+ var groupid = 0;
1601
+ var groupname = '';
1602
+ var chr;
1603
+ for (; index <= length; index++) {
1604
+ chr = charAt$3(string, index);
1605
+ if (chr === '\\') {
1606
+ chr = chr + charAt$3(string, ++index);
1607
+ } else if (chr === ']') {
1608
+ brackets = false;
1609
+ } else if (!brackets) switch (true) {
1610
+ case chr === '[':
1611
+ brackets = true;
1612
+ break;
1613
+ case chr === '(':
1614
+ if (exec$1(IS_NCG, stringSlice$3(string, index + 1))) {
1615
+ index += 2;
1616
+ ncg = true;
1617
+ }
1618
+ result += chr;
1619
+ groupid++;
1620
+ continue;
1621
+ case chr === '>' && ncg:
1622
+ if (groupname === '' || hasOwnProperty_1(names, groupname)) {
1623
+ throw new SyntaxError('Invalid capture group name');
1624
+ }
1625
+ names[groupname] = true;
1626
+ named[named.length] = [groupname, groupid];
1627
+ ncg = false;
1628
+ groupname = '';
1629
+ continue;
1630
+ }
1631
+ if (ncg) groupname += chr;
1632
+ else result += chr;
1633
+ } return [result, named];
1634
+ };
1181
1635
 
1182
1636
  // `RegExp` constructor
1183
1637
  // https://tc39.es/ecma262/#sec-regexp-constructor
1184
- if (FORCED$1) {
1638
+ if (isForced_1('RegExp', BASE_FORCED)) {
1185
1639
  var RegExpWrapper = function RegExp(pattern, flags) {
1186
- var thisIsRegExp = this instanceof RegExpWrapper;
1640
+ var thisIsRegExp = objectIsPrototypeOf(RegExpPrototype$1, this);
1187
1641
  var patternIsRegExp = isRegexp(pattern);
1188
1642
  var flagsAreUndefined = flags === undefined;
1189
- var sticky;
1643
+ var groups = [];
1644
+ var rawPattern = pattern;
1645
+ var rawFlags, dotAll, sticky, handled, result, state;
1190
1646
 
1191
- if (!thisIsRegExp && patternIsRegExp && pattern.constructor === RegExpWrapper && flagsAreUndefined) {
1647
+ if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {
1192
1648
  return pattern;
1193
1649
  }
1194
1650
 
1195
- if (CORRECT_NEW) {
1196
- if (patternIsRegExp && !flagsAreUndefined) pattern = pattern.source;
1197
- } else if (pattern instanceof RegExpWrapper) {
1198
- if (flagsAreUndefined) flags = regexpFlags.call(pattern);
1651
+ if (patternIsRegExp || objectIsPrototypeOf(RegExpPrototype$1, pattern)) {
1199
1652
  pattern = pattern.source;
1653
+ if (flagsAreUndefined) flags = 'flags' in rawPattern ? rawPattern.flags : getFlags$1(rawPattern);
1200
1654
  }
1201
1655
 
1202
- if (UNSUPPORTED_Y) {
1203
- sticky = !!flags && flags.indexOf('y') > -1;
1204
- if (sticky) flags = flags.replace(/y/g, '');
1656
+ pattern = pattern === undefined ? '' : toString_1(pattern);
1657
+ flags = flags === undefined ? '' : toString_1(flags);
1658
+ rawPattern = pattern;
1659
+
1660
+ if (regexpUnsupportedDotAll && 'dotAll' in re1) {
1661
+ dotAll = !!flags && stringIndexOf$1(flags, 's') > -1;
1662
+ if (dotAll) flags = replace$1(flags, /s/g, '');
1205
1663
  }
1206
1664
 
1207
- var result = inheritIfRequired(
1208
- CORRECT_NEW ? new NativeRegExp(pattern, flags) : NativeRegExp(pattern, flags),
1209
- thisIsRegExp ? this : RegExpPrototype$1,
1210
- RegExpWrapper
1211
- );
1665
+ rawFlags = flags;
1666
+
1667
+ if (MISSED_STICKY && 'sticky' in re1) {
1668
+ sticky = !!flags && stringIndexOf$1(flags, 'y') > -1;
1669
+ if (sticky && UNSUPPORTED_Y) flags = replace$1(flags, /y/g, '');
1670
+ }
1671
+
1672
+ if (regexpUnsupportedNcg) {
1673
+ handled = handleNCG(pattern);
1674
+ pattern = handled[0];
1675
+ groups = handled[1];
1676
+ }
1212
1677
 
1213
- if (UNSUPPORTED_Y && sticky) setInternalState(result, { sticky: sticky });
1678
+ result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype$1, RegExpWrapper);
1679
+
1680
+ if (dotAll || sticky || groups.length) {
1681
+ state = enforceInternalState(result);
1682
+ if (dotAll) {
1683
+ state.dotAll = true;
1684
+ state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);
1685
+ }
1686
+ if (sticky) state.sticky = true;
1687
+ if (groups.length) state.groups = groups;
1688
+ }
1689
+
1690
+ if (pattern !== rawPattern) try {
1691
+ // fails in old engines, but we have no alternatives for unsupported regex syntax
1692
+ createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern);
1693
+ } catch (error) { /* empty */ }
1214
1694
 
1215
1695
  return result;
1216
1696
  };
1697
+
1217
1698
  var proxy = function (key) {
1218
1699
  key in RegExpWrapper || defineProperty(RegExpWrapper, key, {
1219
1700
  configurable: true,
@@ -1221,9 +1702,11 @@
1221
1702
  set: function (it) { NativeRegExp[key] = it; }
1222
1703
  });
1223
1704
  };
1224
- var keys = getOwnPropertyNames(NativeRegExp);
1225
- var index = 0;
1226
- while (keys.length > index) proxy(keys[index++]);
1705
+
1706
+ for (var keys = getOwnPropertyNames(NativeRegExp), index = 0; keys.length > index;) {
1707
+ proxy(keys[index++]);
1708
+ }
1709
+
1227
1710
  RegExpPrototype$1.constructor = RegExpWrapper;
1228
1711
  RegExpWrapper.prototype = RegExpPrototype$1;
1229
1712
  redefine(global_1, 'RegExp', RegExpWrapper);
@@ -1232,39 +1715,55 @@
1232
1715
  // https://tc39.es/ecma262/#sec-get-regexp-@@species
1233
1716
  setSpecies('RegExp');
1234
1717
 
1718
+ var PROPER_FUNCTION_NAME = functionName.PROPER;
1719
+
1720
+
1721
+
1722
+
1723
+
1724
+
1725
+
1235
1726
  var TO_STRING = 'toString';
1236
1727
  var RegExpPrototype = RegExp.prototype;
1237
- var nativeToString = RegExpPrototype[TO_STRING];
1728
+ var n$ToString = RegExpPrototype[TO_STRING];
1729
+ var getFlags = functionUncurryThis(regexpFlags);
1238
1730
 
1239
- var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
1731
+ var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
1240
1732
  // FF44- RegExp#toString has a wrong name
1241
- var INCORRECT_NAME = nativeToString.name != TO_STRING;
1733
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
1242
1734
 
1243
1735
  // `RegExp.prototype.toString` method
1244
1736
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
1245
1737
  if (NOT_GENERIC || INCORRECT_NAME) {
1246
1738
  redefine(RegExp.prototype, TO_STRING, function toString() {
1247
1739
  var R = anObject(this);
1248
- var p = String(R.source);
1740
+ var p = toString_1(R.source);
1249
1741
  var rf = R.flags;
1250
- var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? regexpFlags.call(R) : rf);
1742
+ var f = toString_1(rf === undefined && objectIsPrototypeOf(RegExpPrototype, R) && !('flags' in RegExpPrototype) ? getFlags(R) : rf);
1251
1743
  return '/' + p + '/' + f;
1252
1744
  }, { unsafe: true });
1253
1745
  }
1254
1746
 
1255
- // `String.prototype.{ codePointAt, at }` methods implementation
1747
+ var charAt$2 = functionUncurryThis(''.charAt);
1748
+ var charCodeAt = functionUncurryThis(''.charCodeAt);
1749
+ var stringSlice$2 = functionUncurryThis(''.slice);
1750
+
1256
1751
  var createMethod$1 = function (CONVERT_TO_STRING) {
1257
1752
  return function ($this, pos) {
1258
- var S = String(requireObjectCoercible($this));
1259
- var position = toInteger(pos);
1753
+ var S = toString_1(requireObjectCoercible($this));
1754
+ var position = toIntegerOrInfinity(pos);
1260
1755
  var size = S.length;
1261
1756
  var first, second;
1262
1757
  if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1263
- first = S.charCodeAt(position);
1758
+ first = charCodeAt(S, position);
1264
1759
  return first < 0xD800 || first > 0xDBFF || position + 1 === size
1265
- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1266
- ? CONVERT_TO_STRING ? S.charAt(position) : first
1267
- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1760
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
1761
+ ? CONVERT_TO_STRING
1762
+ ? charAt$2(S, position)
1763
+ : first
1764
+ : CONVERT_TO_STRING
1765
+ ? stringSlice$2(S, position, position + 2)
1766
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1268
1767
  };
1269
1768
  };
1270
1769
 
@@ -1277,32 +1776,32 @@
1277
1776
  charAt: createMethod$1(true)
1278
1777
  };
1279
1778
 
1280
- var charAt = stringMultibyte.charAt;
1779
+ var charAt$1 = stringMultibyte.charAt;
1281
1780
 
1282
1781
  // `AdvanceStringIndex` abstract operation
1283
1782
  // https://tc39.es/ecma262/#sec-advancestringindex
1284
1783
  var advanceStringIndex = function (S, index, unicode) {
1285
- return index + (unicode ? charAt(S, index).length : 1);
1784
+ return index + (unicode ? charAt$1(S, index).length : 1);
1286
1785
  };
1287
1786
 
1288
1787
  // @@match logic
1289
- fixRegexpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
1788
+ fixRegexpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) {
1290
1789
  return [
1291
1790
  // `String.prototype.match` method
1292
1791
  // https://tc39.es/ecma262/#sec-string.prototype.match
1293
1792
  function match(regexp) {
1294
1793
  var O = requireObjectCoercible(this);
1295
- var matcher = regexp == undefined ? undefined : regexp[MATCH];
1296
- return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
1794
+ var matcher = regexp == undefined ? undefined : getMethod(regexp, MATCH);
1795
+ return matcher ? functionCall(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString_1(O));
1297
1796
  },
1298
1797
  // `RegExp.prototype[@@match]` method
1299
1798
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
1300
- function (regexp) {
1301
- var res = maybeCallNative(nativeMatch, regexp, this);
1302
- if (res.done) return res.value;
1799
+ function (string) {
1800
+ var rx = anObject(this);
1801
+ var S = toString_1(string);
1802
+ var res = maybeCallNative(nativeMatch, rx, S);
1303
1803
 
1304
- var rx = anObject(regexp);
1305
- var S = String(this);
1804
+ if (res.done) return res.value;
1306
1805
 
1307
1806
  if (!rx.global) return regexpExecAbstract(rx, S);
1308
1807
 
@@ -1312,7 +1811,7 @@
1312
1811
  var n = 0;
1313
1812
  var result;
1314
1813
  while ((result = regexpExecAbstract(rx, S)) !== null) {
1315
- var matchStr = String(result[0]);
1814
+ var matchStr = toString_1(result[0]);
1316
1815
  A[n] = matchStr;
1317
1816
  if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1318
1817
  n++;
@@ -1322,13 +1821,10 @@
1322
1821
  ];
1323
1822
  });
1324
1823
 
1325
- // `Object.keys` method
1326
- // https://tc39.es/ecma262/#sec-object.keys
1327
- var objectKeys = Object.keys || function keys(O) {
1328
- return objectKeysInternal(O, enumBugKeys);
1329
- };
1824
+ var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
1330
1825
 
1331
- var propertyIsEnumerable = objectPropertyIsEnumerable.f;
1826
+ var propertyIsEnumerable = functionUncurryThis($propertyIsEnumerable);
1827
+ var push$1 = functionUncurryThis([].push);
1332
1828
 
1333
1829
  // `Object.{ entries, values }` methods implementation
1334
1830
  var createMethod = function (TO_ENTRIES) {
@@ -1341,8 +1837,8 @@
1341
1837
  var key;
1342
1838
  while (length > i) {
1343
1839
  key = keys[i++];
1344
- if (!descriptors || propertyIsEnumerable.call(O, key)) {
1345
- result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
1840
+ if (!descriptors || propertyIsEnumerable(O, key)) {
1841
+ push$1(result, TO_ENTRIES ? [key, O[key]] : O[key]);
1346
1842
  }
1347
1843
  }
1348
1844
  return result;
@@ -1370,37 +1866,85 @@
1370
1866
 
1371
1867
  // `IsArray` abstract operation
1372
1868
  // https://tc39.es/ecma262/#sec-isarray
1373
- var isArray = Array.isArray || function isArray(arg) {
1374
- return classofRaw(arg) == 'Array';
1375
- };
1376
-
1377
- // `ToObject` abstract operation
1378
- // https://tc39.es/ecma262/#sec-toobject
1379
- var toObject = function (argument) {
1380
- return Object(requireObjectCoercible(argument));
1869
+ // eslint-disable-next-line es/no-array-isarray -- safe
1870
+ var isArray = Array.isArray || function isArray(argument) {
1871
+ return classofRaw(argument) == 'Array';
1381
1872
  };
1382
1873
 
1383
1874
  var createProperty = function (object, key, value) {
1384
- var propertyKey = toPrimitive(key);
1875
+ var propertyKey = toPropertyKey(key);
1385
1876
  if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1386
1877
  else object[propertyKey] = value;
1387
1878
  };
1388
1879
 
1880
+ var noop = function () { /* empty */ };
1881
+ var empty = [];
1882
+ var construct = getBuiltIn('Reflect', 'construct');
1883
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1884
+ var exec = functionUncurryThis(constructorRegExp.exec);
1885
+ var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1886
+
1887
+ var isConstructorModern = function isConstructor(argument) {
1888
+ if (!isCallable(argument)) return false;
1889
+ try {
1890
+ construct(noop, empty, argument);
1891
+ return true;
1892
+ } catch (error) {
1893
+ return false;
1894
+ }
1895
+ };
1896
+
1897
+ var isConstructorLegacy = function isConstructor(argument) {
1898
+ if (!isCallable(argument)) return false;
1899
+ switch (classof(argument)) {
1900
+ case 'AsyncFunction':
1901
+ case 'GeneratorFunction':
1902
+ case 'AsyncGeneratorFunction': return false;
1903
+ }
1904
+ try {
1905
+ // we can't check .prototype since constructors produced by .bind haven't it
1906
+ // `Function#toString` throws on some built-it function in some legacy engines
1907
+ // (for example, `DOMQuad` and similar in FF41-)
1908
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1909
+ } catch (error) {
1910
+ return true;
1911
+ }
1912
+ };
1913
+
1914
+ isConstructorLegacy.sham = true;
1915
+
1916
+ // `IsConstructor` abstract operation
1917
+ // https://tc39.es/ecma262/#sec-isconstructor
1918
+ var isConstructor = !construct || fails(function () {
1919
+ var called;
1920
+ return isConstructorModern(isConstructorModern.call)
1921
+ || !isConstructorModern(Object)
1922
+ || !isConstructorModern(function () { called = true; })
1923
+ || called;
1924
+ }) ? isConstructorLegacy : isConstructorModern;
1925
+
1389
1926
  var SPECIES$1 = wellKnownSymbol('species');
1927
+ var Array$1 = global_1.Array;
1390
1928
 
1391
- // `ArraySpeciesCreate` abstract operation
1929
+ // a part of `ArraySpeciesCreate` abstract operation
1392
1930
  // https://tc39.es/ecma262/#sec-arrayspeciescreate
1393
- var arraySpeciesCreate = function (originalArray, length) {
1931
+ var arraySpeciesConstructor = function (originalArray) {
1394
1932
  var C;
1395
1933
  if (isArray(originalArray)) {
1396
1934
  C = originalArray.constructor;
1397
1935
  // cross-realm fallback
1398
- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
1936
+ if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
1399
1937
  else if (isObject(C)) {
1400
1938
  C = C[SPECIES$1];
1401
1939
  if (C === null) C = undefined;
1402
1940
  }
1403
- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
1941
+ } return C === undefined ? Array$1 : C;
1942
+ };
1943
+
1944
+ // `ArraySpeciesCreate` abstract operation
1945
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
1946
+ var arraySpeciesCreate = function (originalArray, length) {
1947
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1404
1948
  };
1405
1949
 
1406
1950
  var SPECIES = wellKnownSymbol('species');
@@ -1422,6 +1966,7 @@
1422
1966
  var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1423
1967
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1424
1968
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1969
+ var TypeError$1 = global_1.TypeError;
1425
1970
 
1426
1971
  // We can't use this feature detection in V8 since it causes
1427
1972
  // deoptimization and serious performance degradation
@@ -1455,11 +2000,11 @@
1455
2000
  for (i = -1, length = arguments.length; i < length; i++) {
1456
2001
  E = i === -1 ? O : arguments[i];
1457
2002
  if (isConcatSpreadable(E)) {
1458
- len = toLength(E.length);
1459
- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
2003
+ len = lengthOfArrayLike(E);
2004
+ if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1460
2005
  for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1461
2006
  } else {
1462
- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
2007
+ if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1463
2008
  createProperty(A, n++, E);
1464
2009
  }
1465
2010
  }
@@ -1468,11 +2013,23 @@
1468
2013
  }
1469
2014
  });
1470
2015
 
2016
+ var FunctionPrototype = Function.prototype;
2017
+ var apply = FunctionPrototype.apply;
2018
+ var call = FunctionPrototype.call;
2019
+
2020
+ // eslint-disable-next-line es/no-reflect -- safe
2021
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
2022
+ return call.apply(apply, arguments);
2023
+ });
2024
+
1471
2025
  var floor = Math.floor;
1472
- var replace = ''.replace;
2026
+ var charAt = functionUncurryThis(''.charAt);
2027
+ var replace = functionUncurryThis(''.replace);
2028
+ var stringSlice$1 = functionUncurryThis(''.slice);
1473
2029
  var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1474
2030
  var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1475
2031
 
2032
+ // `GetSubstitution` abstract operation
1476
2033
  // https://tc39.es/ecma262/#sec-getsubstitution
1477
2034
  var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
1478
2035
  var tailPos = position + matched.length;
@@ -1482,15 +2039,15 @@
1482
2039
  namedCaptures = toObject(namedCaptures);
1483
2040
  symbols = SUBSTITUTION_SYMBOLS;
1484
2041
  }
1485
- return replace.call(replacement, symbols, function (match, ch) {
2042
+ return replace(replacement, symbols, function (match, ch) {
1486
2043
  var capture;
1487
- switch (ch.charAt(0)) {
2044
+ switch (charAt(ch, 0)) {
1488
2045
  case '$': return '$';
1489
2046
  case '&': return matched;
1490
- case '`': return str.slice(0, position);
1491
- case "'": return str.slice(tailPos);
2047
+ case '`': return stringSlice$1(str, 0, position);
2048
+ case "'": return stringSlice$1(str, tailPos);
1492
2049
  case '<':
1493
- capture = namedCaptures[ch.slice(1, -1)];
2050
+ capture = namedCaptures[stringSlice$1(ch, 1, -1)];
1494
2051
  break;
1495
2052
  default: // \d\d?
1496
2053
  var n = +ch;
@@ -1498,7 +2055,7 @@
1498
2055
  if (n > m) {
1499
2056
  var f = floor(n / 10);
1500
2057
  if (f === 0) return match;
1501
- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
2058
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
1502
2059
  return match;
1503
2060
  }
1504
2061
  capture = captures[n - 1];
@@ -1507,17 +2064,46 @@
1507
2064
  });
1508
2065
  };
1509
2066
 
2067
+ var REPLACE = wellKnownSymbol('replace');
1510
2068
  var max = Math.max;
1511
2069
  var min = Math.min;
2070
+ var concat = functionUncurryThis([].concat);
2071
+ var push = functionUncurryThis([].push);
2072
+ var stringIndexOf = functionUncurryThis(''.indexOf);
2073
+ var stringSlice = functionUncurryThis(''.slice);
1512
2074
 
1513
2075
  var maybeToString = function (it) {
1514
2076
  return it === undefined ? it : String(it);
1515
2077
  };
1516
2078
 
2079
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
2080
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
2081
+ var REPLACE_KEEPS_$0 = (function () {
2082
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
2083
+ return 'a'.replace(/./, '$0') === '$0';
2084
+ })();
2085
+
2086
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
2087
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2088
+ if (/./[REPLACE]) {
2089
+ return /./[REPLACE]('a', '$0') === '';
2090
+ }
2091
+ return false;
2092
+ })();
2093
+
2094
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
2095
+ var re = /./;
2096
+ re.exec = function () {
2097
+ var result = [];
2098
+ result.groups = { a: '7' };
2099
+ return result;
2100
+ };
2101
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
2102
+ return ''.replace(re, '$<a>') !== '7';
2103
+ });
2104
+
1517
2105
  // @@replace logic
1518
- fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1519
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
1520
- var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
2106
+ fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
1521
2107
  var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1522
2108
 
1523
2109
  return [
@@ -1525,27 +2111,28 @@
1525
2111
  // https://tc39.es/ecma262/#sec-string.prototype.replace
1526
2112
  function replace(searchValue, replaceValue) {
1527
2113
  var O = requireObjectCoercible(this);
1528
- var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
1529
- return replacer !== undefined
1530
- ? replacer.call(searchValue, O, replaceValue)
1531
- : nativeReplace.call(String(O), searchValue, replaceValue);
2114
+ var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
2115
+ return replacer
2116
+ ? functionCall(replacer, searchValue, O, replaceValue)
2117
+ : functionCall(nativeReplace, toString_1(O), searchValue, replaceValue);
1532
2118
  },
1533
2119
  // `RegExp.prototype[@@replace]` method
1534
2120
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1535
- function (regexp, replaceValue) {
2121
+ function (string, replaceValue) {
2122
+ var rx = anObject(this);
2123
+ var S = toString_1(string);
2124
+
1536
2125
  if (
1537
- (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
1538
- (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
2126
+ typeof replaceValue == 'string' &&
2127
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
2128
+ stringIndexOf(replaceValue, '$<') === -1
1539
2129
  ) {
1540
- var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
2130
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
1541
2131
  if (res.done) return res.value;
1542
2132
  }
1543
2133
 
1544
- var rx = anObject(regexp);
1545
- var S = String(this);
1546
-
1547
- var functionalReplace = typeof replaceValue === 'function';
1548
- if (!functionalReplace) replaceValue = String(replaceValue);
2134
+ var functionalReplace = isCallable(replaceValue);
2135
+ if (!functionalReplace) replaceValue = toString_1(replaceValue);
1549
2136
 
1550
2137
  var global = rx.global;
1551
2138
  if (global) {
@@ -1557,10 +2144,10 @@
1557
2144
  var result = regexpExecAbstract(rx, S);
1558
2145
  if (result === null) break;
1559
2146
 
1560
- results.push(result);
2147
+ push(results, result);
1561
2148
  if (!global) break;
1562
2149
 
1563
- var matchStr = String(result[0]);
2150
+ var matchStr = toString_1(result[0]);
1564
2151
  if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1565
2152
  }
1566
2153
 
@@ -1569,32 +2156,32 @@
1569
2156
  for (var i = 0; i < results.length; i++) {
1570
2157
  result = results[i];
1571
2158
 
1572
- var matched = String(result[0]);
1573
- var position = max(min(toInteger(result.index), S.length), 0);
2159
+ var matched = toString_1(result[0]);
2160
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
1574
2161
  var captures = [];
1575
2162
  // NOTE: This is equivalent to
1576
2163
  // captures = result.slice(1).map(maybeToString)
1577
2164
  // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1578
2165
  // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1579
2166
  // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1580
- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
2167
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
1581
2168
  var namedCaptures = result.groups;
1582
2169
  if (functionalReplace) {
1583
- var replacerArgs = [matched].concat(captures, position, S);
1584
- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1585
- var replacement = String(replaceValue.apply(undefined, replacerArgs));
2170
+ var replacerArgs = concat([matched], captures, position, S);
2171
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
2172
+ var replacement = toString_1(functionApply(replaceValue, undefined, replacerArgs));
1586
2173
  } else {
1587
2174
  replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1588
2175
  }
1589
2176
  if (position >= nextSourcePosition) {
1590
- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
2177
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
1591
2178
  nextSourcePosition = position + matched.length;
1592
2179
  }
1593
2180
  }
1594
- return accumulatedResult + S.slice(nextSourcePosition);
2181
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
1595
2182
  }
1596
2183
  ];
1597
- });
2184
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
1598
2185
 
1599
2186
  /**
1600
2187
  * @author: general
@@ -1692,12 +2279,12 @@
1692
2279
  window.history.pushState({}, '', _buildUrl(params));
1693
2280
  }
1694
2281
 
1695
- $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
2282
+ $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
1696
2283
  addrbar: false,
1697
2284
  addrPrefix: ''
1698
2285
  });
1699
2286
 
1700
- $__default['default'].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
2287
+ $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
1701
2288
  _inherits(_class, _$$BootstrapTable);
1702
2289
 
1703
2290
  var _super = _createSuper(_class);
@@ -1765,15 +2352,15 @@
1765
2352
  }, {
1766
2353
  key: "getDefaultOptionValue",
1767
2354
  value: function getDefaultOptionValue(optionName, prefixName) {
1768
- if (this.options[optionName] !== $__default['default'].BootstrapTable.DEFAULTS[optionName]) {
2355
+ if (this.options[optionName] !== $__default["default"].BootstrapTable.DEFAULTS[optionName]) {
1769
2356
  return this.options[optionName];
1770
2357
  }
1771
2358
 
1772
- return _GET("".concat(this.options.addrPrefix || '').concat(prefixName)) || $__default['default'].BootstrapTable.DEFAULTS[optionName];
2359
+ return _GET("".concat(this.options.addrPrefix || '').concat(prefixName)) || $__default["default"].BootstrapTable.DEFAULTS[optionName];
1773
2360
  }
1774
2361
  }]);
1775
2362
 
1776
2363
  return _class;
1777
- }($__default['default'].BootstrapTable);
2364
+ }($__default["default"].BootstrapTable);
1778
2365
 
1779
- })));
2366
+ }));