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
 
@@ -57,6 +60,9 @@
57
60
  configurable: true
58
61
  }
59
62
  });
63
+ Object.defineProperty(subClass, "prototype", {
64
+ writable: false
65
+ });
60
66
  if (superClass) _setPrototypeOf(subClass, superClass);
61
67
  }
62
68
 
@@ -100,6 +106,8 @@
100
106
  function _possibleConstructorReturn(self, call) {
101
107
  if (call && (typeof call === "object" || typeof call === "function")) {
102
108
  return call;
109
+ } else if (call !== void 0) {
110
+ throw new TypeError("Derived constructors may only return object or undefined");
103
111
  }
104
112
 
105
113
  return _assertThisInitialized(self);
@@ -133,7 +141,7 @@
133
141
  return object;
134
142
  }
135
143
 
136
- function _get(target, property, receiver) {
144
+ function _get() {
137
145
  if (typeof Reflect !== "undefined" && Reflect.get) {
138
146
  _get = Reflect.get;
139
147
  } else {
@@ -144,14 +152,14 @@
144
152
  var desc = Object.getOwnPropertyDescriptor(base, property);
145
153
 
146
154
  if (desc.get) {
147
- return desc.get.call(receiver);
155
+ return desc.get.call(arguments.length < 3 ? target : receiver);
148
156
  }
149
157
 
150
158
  return desc.value;
151
159
  };
152
160
  }
153
161
 
154
- return _get(target, property, receiver || target);
162
+ return _get.apply(this, arguments);
155
163
  }
156
164
 
157
165
  function _unsupportedIterableToArray(o, minLen) {
@@ -172,9 +180,9 @@
172
180
  }
173
181
 
174
182
  function _createForOfIteratorHelper(o, allowArrayLike) {
175
- var it;
183
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
176
184
 
177
- if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
185
+ if (!it) {
178
186
  if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
179
187
  if (it) o = it;
180
188
  var i = 0;
@@ -207,7 +215,7 @@
207
215
  err;
208
216
  return {
209
217
  s: function () {
210
- it = o[Symbol.iterator]();
218
+ it = it.call(o);
211
219
  },
212
220
  n: function () {
213
221
  var step = it.next();
@@ -240,9 +248,10 @@
240
248
 
241
249
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
242
250
  var global_1 =
243
- /* global globalThis -- safe */
251
+ // eslint-disable-next-line es/no-global-this -- safe
244
252
  check(typeof globalThis == 'object' && globalThis) ||
245
253
  check(typeof window == 'object' && window) ||
254
+ // eslint-disable-next-line no-restricted-globals -- safe
246
255
  check(typeof self == 'object' && self) ||
247
256
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
248
257
  // eslint-disable-next-line no-new-func -- fallback
@@ -258,24 +267,38 @@
258
267
 
259
268
  // Detect IE8's incomplete defineProperty implementation
260
269
  var descriptors = !fails(function () {
270
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
261
271
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
262
272
  });
263
273
 
264
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
274
+ var functionBindNative = !fails(function () {
275
+ var test = (function () { /* empty */ }).bind();
276
+ // eslint-disable-next-line no-prototype-builtins -- safe
277
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
278
+ });
279
+
280
+ var call$2 = Function.prototype.call;
281
+
282
+ var functionCall = functionBindNative ? call$2.bind(call$2) : function () {
283
+ return call$2.apply(call$2, arguments);
284
+ };
285
+
286
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
287
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
265
288
  var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
266
289
 
267
290
  // Nashorn ~ JDK8 bug
268
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
291
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
269
292
 
270
293
  // `Object.prototype.propertyIsEnumerable` method implementation
271
294
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
272
- var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
295
+ var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
273
296
  var descriptor = getOwnPropertyDescriptor$1(this, V);
274
297
  return !!descriptor && descriptor.enumerable;
275
- } : nativePropertyIsEnumerable;
298
+ } : $propertyIsEnumerable;
276
299
 
277
300
  var objectPropertyIsEnumerable = {
278
- f: f$4
301
+ f: f$5
279
302
  };
280
303
 
281
304
  var createPropertyDescriptor = function (bitmap, value) {
@@ -287,27 +310,44 @@
287
310
  };
288
311
  };
289
312
 
290
- var toString = {}.toString;
313
+ var FunctionPrototype$2 = Function.prototype;
314
+ var bind$1 = FunctionPrototype$2.bind;
315
+ var call$1 = FunctionPrototype$2.call;
316
+ var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
317
+
318
+ var functionUncurryThis = functionBindNative ? function (fn) {
319
+ return fn && uncurryThis(fn);
320
+ } : function (fn) {
321
+ return fn && function () {
322
+ return call$1.apply(fn, arguments);
323
+ };
324
+ };
325
+
326
+ var toString$1 = functionUncurryThis({}.toString);
327
+ var stringSlice$5 = functionUncurryThis(''.slice);
291
328
 
292
329
  var classofRaw = function (it) {
293
- return toString.call(it).slice(8, -1);
330
+ return stringSlice$5(toString$1(it), 8, -1);
294
331
  };
295
332
 
296
- var split = ''.split;
333
+ var Object$4 = global_1.Object;
334
+ var split = functionUncurryThis(''.split);
297
335
 
298
336
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
299
337
  var indexedObject = fails(function () {
300
338
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
301
339
  // eslint-disable-next-line no-prototype-builtins -- safe
302
- return !Object('z').propertyIsEnumerable(0);
340
+ return !Object$4('z').propertyIsEnumerable(0);
303
341
  }) ? function (it) {
304
- return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
305
- } : Object;
342
+ return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
343
+ } : Object$4;
344
+
345
+ var TypeError$a = global_1.TypeError;
306
346
 
307
347
  // `RequireObjectCoercible` abstract operation
308
348
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
309
349
  var requireObjectCoercible = function (it) {
310
- if (it == undefined) throw TypeError("Can't call method on " + it);
350
+ if (it == undefined) throw TypeError$a("Can't call method on " + it);
311
351
  return it;
312
352
  };
313
353
 
@@ -319,85 +359,309 @@
319
359
  return indexedObject(requireObjectCoercible(it));
320
360
  };
321
361
 
362
+ // `IsCallable` abstract operation
363
+ // https://tc39.es/ecma262/#sec-iscallable
364
+ var isCallable = function (argument) {
365
+ return typeof argument == 'function';
366
+ };
367
+
322
368
  var isObject = function (it) {
323
- return typeof it === 'object' ? it !== null : typeof it === 'function';
369
+ return typeof it == 'object' ? it !== null : isCallable(it);
324
370
  };
325
371
 
326
- // `ToPrimitive` abstract operation
327
- // https://tc39.es/ecma262/#sec-toprimitive
328
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
329
- // and the second argument - flag - preferred type is a string
330
- var toPrimitive = function (input, PREFERRED_STRING) {
331
- if (!isObject(input)) return input;
372
+ var aFunction = function (argument) {
373
+ return isCallable(argument) ? argument : undefined;
374
+ };
375
+
376
+ var getBuiltIn = function (namespace, method) {
377
+ return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
378
+ };
379
+
380
+ var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
381
+
382
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
383
+
384
+ var process = global_1.process;
385
+ var Deno = global_1.Deno;
386
+ var versions = process && process.versions || Deno && Deno.version;
387
+ var v8 = versions && versions.v8;
388
+ var match, version;
389
+
390
+ if (v8) {
391
+ match = v8.split('.');
392
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
393
+ // but their correct versions are not interesting for us
394
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
395
+ }
396
+
397
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
398
+ // so check `userAgent` even if `.v8` exists, but 0
399
+ if (!version && engineUserAgent) {
400
+ match = engineUserAgent.match(/Edge\/(\d+)/);
401
+ if (!match || match[1] >= 74) {
402
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
403
+ if (match) version = +match[1];
404
+ }
405
+ }
406
+
407
+ var engineV8Version = version;
408
+
409
+ /* eslint-disable es/no-symbol -- required for testing */
410
+
411
+
412
+
413
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
414
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
415
+ var symbol = Symbol();
416
+ // Chrome 38 Symbol has incorrect toString conversion
417
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
418
+ return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
419
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
420
+ !Symbol.sham && engineV8Version && engineV8Version < 41;
421
+ });
422
+
423
+ /* eslint-disable es/no-symbol -- required for testing */
424
+
425
+
426
+ var useSymbolAsUid = nativeSymbol
427
+ && !Symbol.sham
428
+ && typeof Symbol.iterator == 'symbol';
429
+
430
+ var Object$3 = global_1.Object;
431
+
432
+ var isSymbol = useSymbolAsUid ? function (it) {
433
+ return typeof it == 'symbol';
434
+ } : function (it) {
435
+ var $Symbol = getBuiltIn('Symbol');
436
+ return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
437
+ };
438
+
439
+ var String$3 = global_1.String;
440
+
441
+ var tryToString = function (argument) {
442
+ try {
443
+ return String$3(argument);
444
+ } catch (error) {
445
+ return 'Object';
446
+ }
447
+ };
448
+
449
+ var TypeError$9 = global_1.TypeError;
450
+
451
+ // `Assert: IsCallable(argument) is true`
452
+ var aCallable = function (argument) {
453
+ if (isCallable(argument)) return argument;
454
+ throw TypeError$9(tryToString(argument) + ' is not a function');
455
+ };
456
+
457
+ // `GetMethod` abstract operation
458
+ // https://tc39.es/ecma262/#sec-getmethod
459
+ var getMethod = function (V, P) {
460
+ var func = V[P];
461
+ return func == null ? undefined : aCallable(func);
462
+ };
463
+
464
+ var TypeError$8 = global_1.TypeError;
465
+
466
+ // `OrdinaryToPrimitive` abstract operation
467
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
468
+ var ordinaryToPrimitive = function (input, pref) {
332
469
  var fn, val;
333
- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
334
- if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
335
- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
336
- throw TypeError("Can't convert object to primitive value");
470
+ if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
471
+ if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
472
+ if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
473
+ throw TypeError$8("Can't convert object to primitive value");
474
+ };
475
+
476
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
477
+ var defineProperty$1 = Object.defineProperty;
478
+
479
+ var setGlobal = function (key, value) {
480
+ try {
481
+ defineProperty$1(global_1, key, { value: value, configurable: true, writable: true });
482
+ } catch (error) {
483
+ global_1[key] = value;
484
+ } return value;
485
+ };
486
+
487
+ var SHARED = '__core-js_shared__';
488
+ var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
489
+
490
+ var sharedStore = store$1;
491
+
492
+ var shared = createCommonjsModule(function (module) {
493
+ (module.exports = function (key, value) {
494
+ return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
495
+ })('versions', []).push({
496
+ version: '3.21.1',
497
+ mode: 'global',
498
+ copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
499
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
500
+ source: 'https://github.com/zloirock/core-js'
501
+ });
502
+ });
503
+
504
+ var Object$2 = global_1.Object;
505
+
506
+ // `ToObject` abstract operation
507
+ // https://tc39.es/ecma262/#sec-toobject
508
+ var toObject = function (argument) {
509
+ return Object$2(requireObjectCoercible(argument));
337
510
  };
338
511
 
339
- var hasOwnProperty = {}.hasOwnProperty;
512
+ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
340
513
 
341
- var has$1 = function (it, key) {
342
- return hasOwnProperty.call(it, key);
514
+ // `HasOwnProperty` abstract operation
515
+ // https://tc39.es/ecma262/#sec-hasownproperty
516
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
517
+ return hasOwnProperty(toObject(it), key);
518
+ };
519
+
520
+ var id = 0;
521
+ var postfix = Math.random();
522
+ var toString = functionUncurryThis(1.0.toString);
523
+
524
+ var uid = function (key) {
525
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
526
+ };
527
+
528
+ var WellKnownSymbolsStore = shared('wks');
529
+ var Symbol$1 = global_1.Symbol;
530
+ var symbolFor = Symbol$1 && Symbol$1['for'];
531
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
532
+
533
+ var wellKnownSymbol = function (name) {
534
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
535
+ var description = 'Symbol.' + name;
536
+ if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
537
+ WellKnownSymbolsStore[name] = Symbol$1[name];
538
+ } else if (useSymbolAsUid && symbolFor) {
539
+ WellKnownSymbolsStore[name] = symbolFor(description);
540
+ } else {
541
+ WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
542
+ }
543
+ } return WellKnownSymbolsStore[name];
544
+ };
545
+
546
+ var TypeError$7 = global_1.TypeError;
547
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
548
+
549
+ // `ToPrimitive` abstract operation
550
+ // https://tc39.es/ecma262/#sec-toprimitive
551
+ var toPrimitive = function (input, pref) {
552
+ if (!isObject(input) || isSymbol(input)) return input;
553
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
554
+ var result;
555
+ if (exoticToPrim) {
556
+ if (pref === undefined) pref = 'default';
557
+ result = functionCall(exoticToPrim, input, pref);
558
+ if (!isObject(result) || isSymbol(result)) return result;
559
+ throw TypeError$7("Can't convert object to primitive value");
560
+ }
561
+ if (pref === undefined) pref = 'number';
562
+ return ordinaryToPrimitive(input, pref);
563
+ };
564
+
565
+ // `ToPropertyKey` abstract operation
566
+ // https://tc39.es/ecma262/#sec-topropertykey
567
+ var toPropertyKey = function (argument) {
568
+ var key = toPrimitive(argument, 'string');
569
+ return isSymbol(key) ? key : key + '';
343
570
  };
344
571
 
345
572
  var document$1 = global_1.document;
346
573
  // typeof document.createElement is 'object' in old IE
347
- var EXISTS = isObject(document$1) && isObject(document$1.createElement);
574
+ var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
348
575
 
349
576
  var documentCreateElement = function (it) {
350
- return EXISTS ? document$1.createElement(it) : {};
577
+ return EXISTS$1 ? document$1.createElement(it) : {};
351
578
  };
352
579
 
353
- // Thank's IE8 for his funny defineProperty
580
+ // Thanks to IE8 for its funny defineProperty
354
581
  var ie8DomDefine = !descriptors && !fails(function () {
582
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
355
583
  return Object.defineProperty(documentCreateElement('div'), 'a', {
356
584
  get: function () { return 7; }
357
585
  }).a != 7;
358
586
  });
359
587
 
360
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
588
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
589
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
361
590
 
362
591
  // `Object.getOwnPropertyDescriptor` method
363
592
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
364
- var f$3 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
593
+ var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
365
594
  O = toIndexedObject(O);
366
- P = toPrimitive(P, true);
595
+ P = toPropertyKey(P);
367
596
  if (ie8DomDefine) try {
368
- return nativeGetOwnPropertyDescriptor(O, P);
597
+ return $getOwnPropertyDescriptor$1(O, P);
369
598
  } catch (error) { /* empty */ }
370
- if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
599
+ if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
371
600
  };
372
601
 
373
602
  var objectGetOwnPropertyDescriptor = {
374
- f: f$3
603
+ f: f$4
375
604
  };
376
605
 
377
- var anObject = function (it) {
378
- if (!isObject(it)) {
379
- throw TypeError(String(it) + ' is not an object');
380
- } return it;
606
+ // V8 ~ Chrome 36-
607
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
608
+ var v8PrototypeDefineBug = descriptors && fails(function () {
609
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
610
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
611
+ value: 42,
612
+ writable: false
613
+ }).prototype != 42;
614
+ });
615
+
616
+ var String$2 = global_1.String;
617
+ var TypeError$6 = global_1.TypeError;
618
+
619
+ // `Assert: Type(argument) is Object`
620
+ var anObject = function (argument) {
621
+ if (isObject(argument)) return argument;
622
+ throw TypeError$6(String$2(argument) + ' is not an object');
381
623
  };
382
624
 
383
- var nativeDefineProperty = Object.defineProperty;
625
+ var TypeError$5 = global_1.TypeError;
626
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
627
+ var $defineProperty = Object.defineProperty;
628
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
629
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
630
+ var ENUMERABLE = 'enumerable';
631
+ var CONFIGURABLE$1 = 'configurable';
632
+ var WRITABLE = 'writable';
384
633
 
385
634
  // `Object.defineProperty` method
386
635
  // https://tc39.es/ecma262/#sec-object.defineproperty
387
- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
636
+ var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
388
637
  anObject(O);
389
- P = toPrimitive(P, true);
638
+ P = toPropertyKey(P);
639
+ anObject(Attributes);
640
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
641
+ var current = $getOwnPropertyDescriptor(O, P);
642
+ if (current && current[WRITABLE]) {
643
+ O[P] = Attributes.value;
644
+ Attributes = {
645
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
646
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
647
+ writable: false
648
+ };
649
+ }
650
+ } return $defineProperty(O, P, Attributes);
651
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
652
+ anObject(O);
653
+ P = toPropertyKey(P);
390
654
  anObject(Attributes);
391
655
  if (ie8DomDefine) try {
392
- return nativeDefineProperty(O, P, Attributes);
656
+ return $defineProperty(O, P, Attributes);
393
657
  } catch (error) { /* empty */ }
394
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
658
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError$5('Accessors not supported');
395
659
  if ('value' in Attributes) O[P] = Attributes.value;
396
660
  return O;
397
661
  };
398
662
 
399
663
  var objectDefineProperty = {
400
- f: f$2
664
+ f: f$3
401
665
  };
402
666
 
403
667
  var createNonEnumerableProperty = descriptors ? function (object, key, value) {
@@ -407,25 +671,12 @@
407
671
  return object;
408
672
  };
409
673
 
410
- var setGlobal = function (key, value) {
411
- try {
412
- createNonEnumerableProperty(global_1, key, value);
413
- } catch (error) {
414
- global_1[key] = value;
415
- } return value;
416
- };
417
-
418
- var SHARED = '__core-js_shared__';
419
- var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
420
-
421
- var sharedStore = store$1;
422
-
423
- var functionToString = Function.toString;
674
+ var functionToString = functionUncurryThis(Function.toString);
424
675
 
425
- // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
426
- if (typeof sharedStore.inspectSource != 'function') {
676
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
677
+ if (!isCallable(sharedStore.inspectSource)) {
427
678
  sharedStore.inspectSource = function (it) {
428
- return functionToString.call(it);
679
+ return functionToString(it);
429
680
  };
430
681
  }
431
682
 
@@ -433,24 +684,7 @@
433
684
 
434
685
  var WeakMap$1 = global_1.WeakMap;
435
686
 
436
- var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
437
-
438
- var shared = createCommonjsModule(function (module) {
439
- (module.exports = function (key, value) {
440
- return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
441
- })('versions', []).push({
442
- version: '3.9.1',
443
- mode: 'global',
444
- copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
445
- });
446
- });
447
-
448
- var id = 0;
449
- var postfix = Math.random();
450
-
451
- var uid = function (key) {
452
- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
453
- };
687
+ var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
454
688
 
455
689
  var keys = shared('keys');
456
690
 
@@ -460,6 +694,8 @@
460
694
 
461
695
  var hiddenKeys$1 = {};
462
696
 
697
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
698
+ var TypeError$4 = global_1.TypeError;
463
699
  var WeakMap = global_1.WeakMap;
464
700
  var set, get, has;
465
701
 
@@ -471,40 +707,42 @@
471
707
  return function (it) {
472
708
  var state;
473
709
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
474
- throw TypeError('Incompatible receiver, ' + TYPE + ' required');
710
+ throw TypeError$4('Incompatible receiver, ' + TYPE + ' required');
475
711
  } return state;
476
712
  };
477
713
  };
478
714
 
479
- if (nativeWeakMap) {
715
+ if (nativeWeakMap || sharedStore.state) {
480
716
  var store = sharedStore.state || (sharedStore.state = new WeakMap());
481
- var wmget = store.get;
482
- var wmhas = store.has;
483
- var wmset = store.set;
717
+ var wmget = functionUncurryThis(store.get);
718
+ var wmhas = functionUncurryThis(store.has);
719
+ var wmset = functionUncurryThis(store.set);
484
720
  set = function (it, metadata) {
721
+ if (wmhas(store, it)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
485
722
  metadata.facade = it;
486
- wmset.call(store, it, metadata);
723
+ wmset(store, it, metadata);
487
724
  return metadata;
488
725
  };
489
726
  get = function (it) {
490
- return wmget.call(store, it) || {};
727
+ return wmget(store, it) || {};
491
728
  };
492
729
  has = function (it) {
493
- return wmhas.call(store, it);
730
+ return wmhas(store, it);
494
731
  };
495
732
  } else {
496
733
  var STATE = sharedKey('state');
497
734
  hiddenKeys$1[STATE] = true;
498
735
  set = function (it, metadata) {
736
+ if (hasOwnProperty_1(it, STATE)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
499
737
  metadata.facade = it;
500
738
  createNonEnumerableProperty(it, STATE, metadata);
501
739
  return metadata;
502
740
  };
503
741
  get = function (it) {
504
- return has$1(it, STATE) ? it[STATE] : {};
742
+ return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
505
743
  };
506
744
  has = function (it) {
507
- return has$1(it, STATE);
745
+ return hasOwnProperty_1(it, STATE);
508
746
  };
509
747
  }
510
748
 
@@ -516,7 +754,24 @@
516
754
  getterFor: getterFor
517
755
  };
518
756
 
757
+ var FunctionPrototype$1 = Function.prototype;
758
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
759
+ var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
760
+
761
+ var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
762
+ // additional protection from minified / mangled / dropped function names
763
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
764
+ var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
765
+
766
+ var functionName = {
767
+ EXISTS: EXISTS,
768
+ PROPER: PROPER,
769
+ CONFIGURABLE: CONFIGURABLE
770
+ };
771
+
519
772
  var redefine = createCommonjsModule(function (module) {
773
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
774
+
520
775
  var getInternalState = internalState.get;
521
776
  var enforceInternalState = internalState.enforce;
522
777
  var TEMPLATE = String(String).split('String');
@@ -525,14 +780,18 @@
525
780
  var unsafe = options ? !!options.unsafe : false;
526
781
  var simple = options ? !!options.enumerable : false;
527
782
  var noTargetGet = options ? !!options.noTargetGet : false;
783
+ var name = options && options.name !== undefined ? options.name : key;
528
784
  var state;
529
- if (typeof value == 'function') {
530
- if (typeof key == 'string' && !has$1(value, 'name')) {
531
- createNonEnumerableProperty(value, 'name', key);
785
+ if (isCallable(value)) {
786
+ if (String(name).slice(0, 7) === 'Symbol(') {
787
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
788
+ }
789
+ if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
790
+ createNonEnumerableProperty(value, 'name', name);
532
791
  }
533
792
  state = enforceInternalState(value);
534
793
  if (!state.source) {
535
- state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
794
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
536
795
  }
537
796
  }
538
797
  if (O === global_1) {
@@ -548,54 +807,51 @@
548
807
  else createNonEnumerableProperty(O, key, value);
549
808
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
550
809
  })(Function.prototype, 'toString', function toString() {
551
- return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
810
+ return isCallable(this) && getInternalState(this).source || inspectSource(this);
552
811
  });
553
812
  });
554
813
 
555
- var path = global_1;
556
-
557
- var aFunction$1 = function (variable) {
558
- return typeof variable == 'function' ? variable : undefined;
559
- };
560
-
561
- var getBuiltIn = function (namespace, method) {
562
- return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global_1[namespace])
563
- : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
564
- };
565
-
566
814
  var ceil = Math.ceil;
567
815
  var floor$1 = Math.floor;
568
816
 
569
- // `ToInteger` abstract operation
570
- // https://tc39.es/ecma262/#sec-tointeger
571
- var toInteger = function (argument) {
572
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$1 : ceil)(argument);
817
+ // `ToIntegerOrInfinity` abstract operation
818
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
819
+ var toIntegerOrInfinity = function (argument) {
820
+ var number = +argument;
821
+ // eslint-disable-next-line no-self-compare -- safe
822
+ return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
573
823
  };
574
824
 
825
+ var max$3 = Math.max;
575
826
  var min$3 = Math.min;
576
827
 
828
+ // Helper for a popular repeating case of the spec:
829
+ // Let integer be ? ToInteger(index).
830
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
831
+ var toAbsoluteIndex = function (index, length) {
832
+ var integer = toIntegerOrInfinity(index);
833
+ return integer < 0 ? max$3(integer + length, 0) : min$3(integer, length);
834
+ };
835
+
836
+ var min$2 = Math.min;
837
+
577
838
  // `ToLength` abstract operation
578
839
  // https://tc39.es/ecma262/#sec-tolength
579
840
  var toLength = function (argument) {
580
- return argument > 0 ? min$3(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
841
+ return argument > 0 ? min$2(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
581
842
  };
582
843
 
583
- var max$2 = Math.max;
584
- var min$2 = Math.min;
585
-
586
- // Helper for a popular repeating case of the spec:
587
- // Let integer be ? ToInteger(index).
588
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
589
- var toAbsoluteIndex = function (index, length) {
590
- var integer = toInteger(index);
591
- return integer < 0 ? max$2(integer + length, 0) : min$2(integer, length);
844
+ // `LengthOfArrayLike` abstract operation
845
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
846
+ var lengthOfArrayLike = function (obj) {
847
+ return toLength(obj.length);
592
848
  };
593
849
 
594
850
  // `Array.prototype.{ indexOf, includes }` methods implementation
595
851
  var createMethod$2 = function (IS_INCLUDES) {
596
852
  return function ($this, el, fromIndex) {
597
853
  var O = toIndexedObject($this);
598
- var length = toLength(O.length);
854
+ var length = lengthOfArrayLike(O);
599
855
  var index = toAbsoluteIndex(fromIndex, length);
600
856
  var value;
601
857
  // Array#includes uses SameValueZero equality algorithm
@@ -620,18 +876,20 @@
620
876
  indexOf: createMethod$2(false)
621
877
  };
622
878
 
623
- var indexOf = arrayIncludes.indexOf;
879
+ var indexOf$1 = arrayIncludes.indexOf;
880
+
624
881
 
882
+ var push$3 = functionUncurryThis([].push);
625
883
 
626
884
  var objectKeysInternal = function (object, names) {
627
885
  var O = toIndexedObject(object);
628
886
  var i = 0;
629
887
  var result = [];
630
888
  var key;
631
- for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
889
+ for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$3(result, key);
632
890
  // Don't enum bug & hidden keys
633
- while (names.length > i) if (has$1(O, key = names[i++])) {
634
- ~indexOf(result, key) || result.push(key);
891
+ while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
892
+ ~indexOf$1(result, key) || push$3(result, key);
635
893
  }
636
894
  return result;
637
895
  };
@@ -651,34 +909,40 @@
651
909
 
652
910
  // `Object.getOwnPropertyNames` method
653
911
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
654
- var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
912
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
913
+ var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
655
914
  return objectKeysInternal(O, hiddenKeys);
656
915
  };
657
916
 
658
917
  var objectGetOwnPropertyNames = {
659
- f: f$1
918
+ f: f$2
660
919
  };
661
920
 
662
- var f = Object.getOwnPropertySymbols;
921
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
922
+ var f$1 = Object.getOwnPropertySymbols;
663
923
 
664
924
  var objectGetOwnPropertySymbols = {
665
- f: f
925
+ f: f$1
666
926
  };
667
927
 
928
+ var concat$2 = functionUncurryThis([].concat);
929
+
668
930
  // all object keys, includes non-enumerable and symbols
669
931
  var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
670
932
  var keys = objectGetOwnPropertyNames.f(anObject(it));
671
933
  var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
672
- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
934
+ return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
673
935
  };
674
936
 
675
- var copyConstructorProperties = function (target, source) {
937
+ var copyConstructorProperties = function (target, source, exceptions) {
676
938
  var keys = ownKeys(source);
677
939
  var defineProperty = objectDefineProperty.f;
678
940
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
679
941
  for (var i = 0; i < keys.length; i++) {
680
942
  var key = keys[i];
681
- if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
943
+ if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
944
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
945
+ }
682
946
  }
683
947
  };
684
948
 
@@ -688,7 +952,7 @@
688
952
  var value = data[normalize(feature)];
689
953
  return value == POLYFILL ? true
690
954
  : value == NATIVE ? false
691
- : typeof detection == 'function' ? fails(detection)
955
+ : isCallable(detection) ? fails(detection)
692
956
  : !!detection;
693
957
  };
694
958
 
@@ -722,6 +986,7 @@
722
986
  options.sham - add a flag to not completely full polyfills
723
987
  options.enumerable - export as enumerable property
724
988
  options.noTargetGet - prevent calling a getter on target
989
+ options.name - the .name of the function if it does not match the key
725
990
  */
726
991
  var _export = function (options, source) {
727
992
  var TARGET = options.target;
@@ -744,7 +1009,7 @@
744
1009
  FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
745
1010
  // contained in target
746
1011
  if (!FORCED && targetProperty !== undefined) {
747
- if (typeof sourceProperty === typeof targetProperty) continue;
1012
+ if (typeof sourceProperty == typeof targetProperty) continue;
748
1013
  copyConstructorProperties(sourceProperty, targetProperty);
749
1014
  }
750
1015
  // add a flag to not completely full polyfills
@@ -756,132 +1021,144 @@
756
1021
  }
757
1022
  };
758
1023
 
759
- var aFunction = function (it) {
760
- if (typeof it != 'function') {
761
- throw TypeError(String(it) + ' is not a function');
762
- } return it;
763
- };
1024
+ var bind = functionUncurryThis(functionUncurryThis.bind);
764
1025
 
765
1026
  // optional / simple context binding
766
- var functionBindContext = function (fn, that, length) {
767
- aFunction(fn);
768
- if (that === undefined) return fn;
769
- switch (length) {
770
- case 0: return function () {
771
- return fn.call(that);
772
- };
773
- case 1: return function (a) {
774
- return fn.call(that, a);
775
- };
776
- case 2: return function (a, b) {
777
- return fn.call(that, a, b);
778
- };
779
- case 3: return function (a, b, c) {
780
- return fn.call(that, a, b, c);
781
- };
782
- }
783
- return function (/* ...args */) {
1027
+ var functionBindContext = function (fn, that) {
1028
+ aCallable(fn);
1029
+ return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) {
784
1030
  return fn.apply(that, arguments);
785
1031
  };
786
1032
  };
787
1033
 
788
- // `ToObject` abstract operation
789
- // https://tc39.es/ecma262/#sec-toobject
790
- var toObject = function (argument) {
791
- return Object(requireObjectCoercible(argument));
792
- };
793
-
794
1034
  // `IsArray` abstract operation
795
1035
  // https://tc39.es/ecma262/#sec-isarray
796
- var isArray = Array.isArray || function isArray(arg) {
797
- return classofRaw(arg) == 'Array';
1036
+ // eslint-disable-next-line es/no-array-isarray -- safe
1037
+ var isArray = Array.isArray || function isArray(argument) {
1038
+ return classofRaw(argument) == 'Array';
798
1039
  };
799
1040
 
800
- var engineIsNode = classofRaw(global_1.process) == 'process';
1041
+ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
1042
+ var test = {};
801
1043
 
802
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
1044
+ test[TO_STRING_TAG$1] = 'z';
803
1045
 
804
- var process = global_1.process;
805
- var versions = process && process.versions;
806
- var v8 = versions && versions.v8;
807
- var match, version;
1046
+ var toStringTagSupport = String(test) === '[object z]';
808
1047
 
809
- if (v8) {
810
- match = v8.split('.');
811
- version = match[0] + match[1];
812
- } else if (engineUserAgent) {
813
- match = engineUserAgent.match(/Edge\/(\d+)/);
814
- if (!match || match[1] >= 74) {
815
- match = engineUserAgent.match(/Chrome\/(\d+)/);
816
- if (match) version = match[1];
817
- }
818
- }
1048
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1049
+ var Object$1 = global_1.Object;
819
1050
 
820
- var engineV8Version = version && +version;
1051
+ // ES3 wrong here
1052
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
821
1053
 
822
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
823
- /* global Symbol -- required for testing */
824
- return !Symbol.sham &&
825
- // Chrome 38 Symbol has incorrect toString conversion
826
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
827
- (engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
828
- });
1054
+ // fallback for IE11 Script Access Denied error
1055
+ var tryGet = function (it, key) {
1056
+ try {
1057
+ return it[key];
1058
+ } catch (error) { /* empty */ }
1059
+ };
829
1060
 
830
- var useSymbolAsUid = nativeSymbol
831
- /* global Symbol -- safe */
832
- && !Symbol.sham
833
- && typeof Symbol.iterator == 'symbol';
1061
+ // getting tag from ES6+ `Object.prototype.toString`
1062
+ var classof = toStringTagSupport ? classofRaw : function (it) {
1063
+ var O, tag, result;
1064
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1065
+ // @@toStringTag case
1066
+ : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
1067
+ // builtinTag case
1068
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1069
+ // ES3 arguments fallback
1070
+ : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1071
+ };
834
1072
 
835
- var WellKnownSymbolsStore = shared('wks');
836
- var Symbol$1 = global_1.Symbol;
837
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
1073
+ var noop = function () { /* empty */ };
1074
+ var empty = [];
1075
+ var construct = getBuiltIn('Reflect', 'construct');
1076
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1077
+ var exec$1 = functionUncurryThis(constructorRegExp.exec);
1078
+ var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
838
1079
 
839
- var wellKnownSymbol = function (name) {
840
- if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
841
- if (nativeSymbol && has$1(Symbol$1, name)) {
842
- WellKnownSymbolsStore[name] = Symbol$1[name];
843
- } else {
844
- WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
845
- }
846
- } return WellKnownSymbolsStore[name];
1080
+ var isConstructorModern = function isConstructor(argument) {
1081
+ if (!isCallable(argument)) return false;
1082
+ try {
1083
+ construct(noop, empty, argument);
1084
+ return true;
1085
+ } catch (error) {
1086
+ return false;
1087
+ }
1088
+ };
1089
+
1090
+ var isConstructorLegacy = function isConstructor(argument) {
1091
+ if (!isCallable(argument)) return false;
1092
+ switch (classof(argument)) {
1093
+ case 'AsyncFunction':
1094
+ case 'GeneratorFunction':
1095
+ case 'AsyncGeneratorFunction': return false;
1096
+ }
1097
+ try {
1098
+ // we can't check .prototype since constructors produced by .bind haven't it
1099
+ // `Function#toString` throws on some built-it function in some legacy engines
1100
+ // (for example, `DOMQuad` and similar in FF41-)
1101
+ return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
1102
+ } catch (error) {
1103
+ return true;
1104
+ }
847
1105
  };
848
1106
 
1107
+ isConstructorLegacy.sham = true;
1108
+
1109
+ // `IsConstructor` abstract operation
1110
+ // https://tc39.es/ecma262/#sec-isconstructor
1111
+ var isConstructor = !construct || fails(function () {
1112
+ var called;
1113
+ return isConstructorModern(isConstructorModern.call)
1114
+ || !isConstructorModern(Object)
1115
+ || !isConstructorModern(function () { called = true; })
1116
+ || called;
1117
+ }) ? isConstructorLegacy : isConstructorModern;
1118
+
849
1119
  var SPECIES$4 = wellKnownSymbol('species');
1120
+ var Array$3 = global_1.Array;
850
1121
 
851
- // `ArraySpeciesCreate` abstract operation
1122
+ // a part of `ArraySpeciesCreate` abstract operation
852
1123
  // https://tc39.es/ecma262/#sec-arrayspeciescreate
853
- var arraySpeciesCreate = function (originalArray, length) {
1124
+ var arraySpeciesConstructor = function (originalArray) {
854
1125
  var C;
855
1126
  if (isArray(originalArray)) {
856
1127
  C = originalArray.constructor;
857
1128
  // cross-realm fallback
858
- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
1129
+ if (isConstructor(C) && (C === Array$3 || isArray(C.prototype))) C = undefined;
859
1130
  else if (isObject(C)) {
860
1131
  C = C[SPECIES$4];
861
1132
  if (C === null) C = undefined;
862
1133
  }
863
- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
1134
+ } return C === undefined ? Array$3 : C;
864
1135
  };
865
1136
 
866
- var push = [].push;
1137
+ // `ArraySpeciesCreate` abstract operation
1138
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
1139
+ var arraySpeciesCreate = function (originalArray, length) {
1140
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1141
+ };
1142
+
1143
+ var push$2 = functionUncurryThis([].push);
867
1144
 
868
- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
1145
+ // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
869
1146
  var createMethod$1 = function (TYPE) {
870
1147
  var IS_MAP = TYPE == 1;
871
1148
  var IS_FILTER = TYPE == 2;
872
1149
  var IS_SOME = TYPE == 3;
873
1150
  var IS_EVERY = TYPE == 4;
874
1151
  var IS_FIND_INDEX = TYPE == 6;
875
- var IS_FILTER_OUT = TYPE == 7;
1152
+ var IS_FILTER_REJECT = TYPE == 7;
876
1153
  var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
877
1154
  return function ($this, callbackfn, that, specificCreate) {
878
1155
  var O = toObject($this);
879
1156
  var self = indexedObject(O);
880
- var boundFunction = functionBindContext(callbackfn, that, 3);
881
- var length = toLength(self.length);
1157
+ var boundFunction = functionBindContext(callbackfn, that);
1158
+ var length = lengthOfArrayLike(self);
882
1159
  var index = 0;
883
1160
  var create = specificCreate || arraySpeciesCreate;
884
- var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
1161
+ var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
885
1162
  var value, result;
886
1163
  for (;length > index; index++) if (NO_HOLES || index in self) {
887
1164
  value = self[index];
@@ -892,10 +1169,10 @@
892
1169
  case 3: return true; // some
893
1170
  case 5: return value; // find
894
1171
  case 6: return index; // findIndex
895
- case 2: push.call(target, value); // filter
1172
+ case 2: push$2(target, value); // filter
896
1173
  } else switch (TYPE) {
897
1174
  case 4: return false; // every
898
- case 7: push.call(target, value); // filterOut
1175
+ case 7: push$2(target, value); // filterReject
899
1176
  }
900
1177
  }
901
1178
  }
@@ -925,31 +1202,47 @@
925
1202
  // `Array.prototype.findIndex` method
926
1203
  // https://tc39.es/ecma262/#sec-array.prototype.findIndex
927
1204
  findIndex: createMethod$1(6),
928
- // `Array.prototype.filterOut` method
1205
+ // `Array.prototype.filterReject` method
929
1206
  // https://github.com/tc39/proposal-array-filtering
930
- filterOut: createMethod$1(7)
1207
+ filterReject: createMethod$1(7)
931
1208
  };
932
1209
 
933
1210
  // `Object.keys` method
934
1211
  // https://tc39.es/ecma262/#sec-object.keys
1212
+ // eslint-disable-next-line es/no-object-keys -- safe
935
1213
  var objectKeys = Object.keys || function keys(O) {
936
1214
  return objectKeysInternal(O, enumBugKeys);
937
1215
  };
938
1216
 
939
1217
  // `Object.defineProperties` method
940
1218
  // https://tc39.es/ecma262/#sec-object.defineproperties
941
- var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
1219
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1220
+ var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
942
1221
  anObject(O);
1222
+ var props = toIndexedObject(Properties);
943
1223
  var keys = objectKeys(Properties);
944
1224
  var length = keys.length;
945
1225
  var index = 0;
946
1226
  var key;
947
- while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
1227
+ while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
948
1228
  return O;
949
1229
  };
950
1230
 
1231
+ var objectDefineProperties = {
1232
+ f: f
1233
+ };
1234
+
951
1235
  var html = getBuiltIn('document', 'documentElement');
952
1236
 
1237
+ /* global ActiveXObject -- old IE, WSH */
1238
+
1239
+
1240
+
1241
+
1242
+
1243
+
1244
+
1245
+
953
1246
  var GT = '>';
954
1247
  var LT = '<';
955
1248
  var PROTOTYPE = 'prototype';
@@ -996,10 +1289,13 @@
996
1289
  var activeXDocument;
997
1290
  var NullProtoObject = function () {
998
1291
  try {
999
- /* global ActiveXObject -- old IE */
1000
- activeXDocument = document.domain && new ActiveXObject('htmlfile');
1292
+ activeXDocument = new ActiveXObject('htmlfile');
1001
1293
  } catch (error) { /* ignore */ }
1002
- NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
1294
+ NullProtoObject = typeof document != 'undefined'
1295
+ ? document.domain && activeXDocument
1296
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1297
+ : NullProtoObjectViaIFrame()
1298
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1003
1299
  var length = enumBugKeys.length;
1004
1300
  while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1005
1301
  return NullProtoObject();
@@ -1018,7 +1314,7 @@
1018
1314
  // add "__proto__" for Object.getPrototypeOf polyfill
1019
1315
  result[IE_PROTO] = O;
1020
1316
  } else result = NullProtoObject();
1021
- return Properties === undefined ? result : objectDefineProperties(result, Properties);
1317
+ return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
1022
1318
  };
1023
1319
 
1024
1320
  var UNSCOPABLES = wellKnownSymbol('unscopables');
@@ -1058,6 +1354,25 @@
1058
1354
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1059
1355
  addToUnscopables(FIND);
1060
1356
 
1357
+ // `Object.prototype.toString` method implementation
1358
+ // https://tc39.es/ecma262/#sec-object.prototype.tostring
1359
+ var objectToString = toStringTagSupport ? {}.toString : function toString() {
1360
+ return '[object ' + classof(this) + ']';
1361
+ };
1362
+
1363
+ // `Object.prototype.toString` method
1364
+ // https://tc39.es/ecma262/#sec-object.prototype.tostring
1365
+ if (!toStringTagSupport) {
1366
+ redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
1367
+ }
1368
+
1369
+ var String$1 = global_1.String;
1370
+
1371
+ var toString_1 = function (argument) {
1372
+ if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1373
+ return String$1(argument);
1374
+ };
1375
+
1061
1376
  // `RegExp.prototype.flags` getter implementation
1062
1377
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1063
1378
  var regexpFlags = function () {
@@ -1072,74 +1387,118 @@
1072
1387
  return result;
1073
1388
  };
1074
1389
 
1075
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
1076
- // so we use an intermediate function.
1077
- function RE(s, f) {
1078
- return RegExp(s, f);
1079
- }
1390
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1391
+ var $RegExp$2 = global_1.RegExp;
1080
1392
 
1081
- var UNSUPPORTED_Y$1 = fails(function () {
1082
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1083
- var re = RE('a', 'y');
1393
+ var UNSUPPORTED_Y$2 = fails(function () {
1394
+ var re = $RegExp$2('a', 'y');
1084
1395
  re.lastIndex = 2;
1085
1396
  return re.exec('abcd') != null;
1086
1397
  });
1087
1398
 
1088
- var BROKEN_CARET = fails(function () {
1399
+ // UC Browser bug
1400
+ // https://github.com/zloirock/core-js/issues/1008
1401
+ var MISSED_STICKY = UNSUPPORTED_Y$2 || fails(function () {
1402
+ return !$RegExp$2('a', 'y').sticky;
1403
+ });
1404
+
1405
+ var BROKEN_CARET = UNSUPPORTED_Y$2 || fails(function () {
1089
1406
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1090
- var re = RE('^r', 'gy');
1407
+ var re = $RegExp$2('^r', 'gy');
1091
1408
  re.lastIndex = 2;
1092
1409
  return re.exec('str') != null;
1093
1410
  });
1094
1411
 
1095
1412
  var regexpStickyHelpers = {
1096
- UNSUPPORTED_Y: UNSUPPORTED_Y$1,
1097
- BROKEN_CARET: BROKEN_CARET
1413
+ BROKEN_CARET: BROKEN_CARET,
1414
+ MISSED_STICKY: MISSED_STICKY,
1415
+ UNSUPPORTED_Y: UNSUPPORTED_Y$2
1098
1416
  };
1099
1417
 
1100
- var nativeExec = RegExp.prototype.exec;
1101
- // This always refers to the native implementation, because the
1102
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
1103
- // which loads this file before patching the method.
1104
- var nativeReplace = String.prototype.replace;
1418
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1419
+ var $RegExp$1 = global_1.RegExp;
1420
+
1421
+ var regexpUnsupportedDotAll = fails(function () {
1422
+ var re = $RegExp$1('.', 's');
1423
+ return !(re.dotAll && re.exec('\n') && re.flags === 's');
1424
+ });
1425
+
1426
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1427
+ var $RegExp = global_1.RegExp;
1428
+
1429
+ var regexpUnsupportedNcg = fails(function () {
1430
+ var re = $RegExp('(?<a>b)', 'g');
1431
+ return re.exec('b').groups.a !== 'b' ||
1432
+ 'b'.replace(re, '$<a>c') !== 'bc';
1433
+ });
1434
+
1435
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1436
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
1105
1437
 
1438
+
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+ var getInternalState = internalState.get;
1445
+
1446
+
1447
+
1448
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
1449
+ var nativeExec = RegExp.prototype.exec;
1106
1450
  var patchedExec = nativeExec;
1451
+ var charAt$3 = functionUncurryThis(''.charAt);
1452
+ var indexOf = functionUncurryThis(''.indexOf);
1453
+ var replace$1 = functionUncurryThis(''.replace);
1454
+ var stringSlice$4 = functionUncurryThis(''.slice);
1107
1455
 
1108
1456
  var UPDATES_LAST_INDEX_WRONG = (function () {
1109
1457
  var re1 = /a/;
1110
1458
  var re2 = /b*/g;
1111
- nativeExec.call(re1, 'a');
1112
- nativeExec.call(re2, 'a');
1459
+ functionCall(nativeExec, re1, 'a');
1460
+ functionCall(nativeExec, re2, 'a');
1113
1461
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1114
1462
  })();
1115
1463
 
1116
- var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
1464
+ var UNSUPPORTED_Y$1 = regexpStickyHelpers.BROKEN_CARET;
1117
1465
 
1118
1466
  // nonparticipating capturing group, copied from es5-shim's String#split patch.
1119
- // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
1120
1467
  var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1121
1468
 
1122
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
1469
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || regexpUnsupportedDotAll || regexpUnsupportedNcg;
1123
1470
 
1124
1471
  if (PATCH) {
1125
- patchedExec = function exec(str) {
1472
+ patchedExec = function exec(string) {
1126
1473
  var re = this;
1127
- var lastIndex, reCopy, match, i;
1128
- var sticky = UNSUPPORTED_Y && re.sticky;
1129
- var flags = regexpFlags.call(re);
1474
+ var state = getInternalState(re);
1475
+ var str = toString_1(string);
1476
+ var raw = state.raw;
1477
+ var result, reCopy, lastIndex, match, i, object, group;
1478
+
1479
+ if (raw) {
1480
+ raw.lastIndex = re.lastIndex;
1481
+ result = functionCall(patchedExec, raw, str);
1482
+ re.lastIndex = raw.lastIndex;
1483
+ return result;
1484
+ }
1485
+
1486
+ var groups = state.groups;
1487
+ var sticky = UNSUPPORTED_Y$1 && re.sticky;
1488
+ var flags = functionCall(regexpFlags, re);
1130
1489
  var source = re.source;
1131
1490
  var charsAdded = 0;
1132
1491
  var strCopy = str;
1133
1492
 
1134
1493
  if (sticky) {
1135
- flags = flags.replace('y', '');
1136
- if (flags.indexOf('g') === -1) {
1494
+ flags = replace$1(flags, 'y', '');
1495
+ if (indexOf(flags, 'g') === -1) {
1137
1496
  flags += 'g';
1138
1497
  }
1139
1498
 
1140
- strCopy = String(str).slice(re.lastIndex);
1499
+ strCopy = stringSlice$4(str, re.lastIndex);
1141
1500
  // Support anchored sticky behavior.
1142
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
1501
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
1143
1502
  source = '(?: ' + source + ')';
1144
1503
  strCopy = ' ' + strCopy;
1145
1504
  charsAdded++;
@@ -1154,12 +1513,12 @@
1154
1513
  }
1155
1514
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1156
1515
 
1157
- match = nativeExec.call(sticky ? reCopy : re, strCopy);
1516
+ match = functionCall(nativeExec, sticky ? reCopy : re, strCopy);
1158
1517
 
1159
1518
  if (sticky) {
1160
1519
  if (match) {
1161
- match.input = match.input.slice(charsAdded);
1162
- match[0] = match[0].slice(charsAdded);
1520
+ match.input = stringSlice$4(match.input, charsAdded);
1521
+ match[0] = stringSlice$4(match[0], charsAdded);
1163
1522
  match.index = re.lastIndex;
1164
1523
  re.lastIndex += match[0].length;
1165
1524
  } else re.lastIndex = 0;
@@ -1169,13 +1528,21 @@
1169
1528
  if (NPCG_INCLUDED && match && match.length > 1) {
1170
1529
  // Fix browsers whose `exec` methods don't consistently return `undefined`
1171
1530
  // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
1172
- nativeReplace.call(match[0], reCopy, function () {
1531
+ functionCall(nativeReplace, match[0], reCopy, function () {
1173
1532
  for (i = 1; i < arguments.length - 2; i++) {
1174
1533
  if (arguments[i] === undefined) match[i] = undefined;
1175
1534
  }
1176
1535
  });
1177
1536
  }
1178
1537
 
1538
+ if (match && groups) {
1539
+ match.groups = object = objectCreate(null);
1540
+ for (i = 0; i < groups.length; i++) {
1541
+ group = groups[i];
1542
+ object[group[0]] = match[group[1]];
1543
+ }
1544
+ }
1545
+
1179
1546
  return match;
1180
1547
  };
1181
1548
  }
@@ -1188,56 +1555,28 @@
1188
1555
  exec: regexpExec
1189
1556
  });
1190
1557
 
1191
- // TODO: Remove from `core-js@4` since it's moved to entry points
1558
+ var FunctionPrototype = Function.prototype;
1559
+ var apply = FunctionPrototype.apply;
1560
+ var call = FunctionPrototype.call;
1192
1561
 
1562
+ // eslint-disable-next-line es/no-reflect -- safe
1563
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
1564
+ return call.apply(apply, arguments);
1565
+ });
1193
1566
 
1567
+ // TODO: Remove from `core-js@4` since it's moved to entry points
1194
1568
 
1195
1569
 
1196
1570
 
1197
1571
 
1198
1572
 
1199
- var SPECIES$3 = wellKnownSymbol('species');
1200
1573
 
1201
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1202
- // #replace needs built-in support for named groups.
1203
- // #match works fine because it just return the exec results, even if it has
1204
- // a "grops" property.
1205
- var re = /./;
1206
- re.exec = function () {
1207
- var result = [];
1208
- result.groups = { a: '7' };
1209
- return result;
1210
- };
1211
- return ''.replace(re, '$<a>') !== '7';
1212
- });
1213
1574
 
1214
- // IE <= 11 replaces $0 with the whole match, as if it was $&
1215
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1216
- var REPLACE_KEEPS_$0 = (function () {
1217
- return 'a'.replace(/./, '$0') === '$0';
1218
- })();
1219
1575
 
1220
- var REPLACE = wellKnownSymbol('replace');
1221
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
1222
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
1223
- if (/./[REPLACE]) {
1224
- return /./[REPLACE]('a', '$0') === '';
1225
- }
1226
- return false;
1227
- })();
1228
-
1229
- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1230
- // Weex JS has frozen built-in prototypes, so use try / catch wrapper
1231
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
1232
- // eslint-disable-next-line regexp/no-empty-group -- required for testing
1233
- var re = /(?:)/;
1234
- var originalExec = re.exec;
1235
- re.exec = function () { return originalExec.apply(this, arguments); };
1236
- var result = 'ab'.split(re);
1237
- return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
1238
- });
1576
+ var SPECIES$3 = wellKnownSymbol('species');
1577
+ var RegExpPrototype = RegExp.prototype;
1239
1578
 
1240
- var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
1579
+ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1241
1580
  var SYMBOL = wellKnownSymbol(KEY);
1242
1581
 
1243
1582
  var DELEGATES_TO_SYMBOL = !fails(function () {
@@ -1274,44 +1613,29 @@
1274
1613
  if (
1275
1614
  !DELEGATES_TO_SYMBOL ||
1276
1615
  !DELEGATES_TO_EXEC ||
1277
- (KEY === 'replace' && !(
1278
- REPLACE_SUPPORTS_NAMED_GROUPS &&
1279
- REPLACE_KEEPS_$0 &&
1280
- !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1281
- )) ||
1282
- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1616
+ FORCED
1283
1617
  ) {
1284
- var nativeRegExpMethod = /./[SYMBOL];
1618
+ var uncurriedNativeRegExpMethod = functionUncurryThis(/./[SYMBOL]);
1285
1619
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1286
- if (regexp.exec === regexpExec) {
1620
+ var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
1621
+ var $exec = regexp.exec;
1622
+ if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
1287
1623
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1288
1624
  // The native String method already delegates to @@method (this
1289
1625
  // polyfilled function), leasing to infinite recursion.
1290
1626
  // We avoid it by directly calling the native @@method method.
1291
- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
1627
+ return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
1292
1628
  }
1293
- return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1629
+ return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
1294
1630
  }
1295
1631
  return { done: false };
1296
- }, {
1297
- REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
1298
- REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1299
1632
  });
1300
- var stringMethod = methods[0];
1301
- var regexMethod = methods[1];
1302
-
1303
- redefine(String.prototype, KEY, stringMethod);
1304
- redefine(RegExp.prototype, SYMBOL, length == 2
1305
- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
1306
- // 21.2.5.11 RegExp.prototype[@@split](string, limit)
1307
- ? function (string, arg) { return regexMethod.call(string, this, arg); }
1308
- // 21.2.5.6 RegExp.prototype[@@match](string)
1309
- // 21.2.5.9 RegExp.prototype[@@search](string)
1310
- : function (string) { return regexMethod.call(string, this); }
1311
- );
1633
+
1634
+ redefine(String.prototype, KEY, methods[0]);
1635
+ redefine(RegExpPrototype, SYMBOL, methods[1]);
1312
1636
  }
1313
1637
 
1314
- if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1638
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
1315
1639
  };
1316
1640
 
1317
1641
  var MATCH = wellKnownSymbol('match');
@@ -1323,6 +1647,14 @@
1323
1647
  return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
1324
1648
  };
1325
1649
 
1650
+ var TypeError$3 = global_1.TypeError;
1651
+
1652
+ // `Assert: IsConstructor(argument) is true`
1653
+ var aConstructor = function (argument) {
1654
+ if (isConstructor(argument)) return argument;
1655
+ throw TypeError$3(tryToString(argument) + ' is not a constructor');
1656
+ };
1657
+
1326
1658
  var SPECIES$2 = wellKnownSymbol('species');
1327
1659
 
1328
1660
  // `SpeciesConstructor` abstract operation
@@ -1330,22 +1662,29 @@
1330
1662
  var speciesConstructor = function (O, defaultConstructor) {
1331
1663
  var C = anObject(O).constructor;
1332
1664
  var S;
1333
- return C === undefined || (S = anObject(C)[SPECIES$2]) == undefined ? defaultConstructor : aFunction(S);
1665
+ return C === undefined || (S = anObject(C)[SPECIES$2]) == undefined ? defaultConstructor : aConstructor(S);
1334
1666
  };
1335
1667
 
1336
- // `String.prototype.{ codePointAt, at }` methods implementation
1668
+ var charAt$2 = functionUncurryThis(''.charAt);
1669
+ var charCodeAt = functionUncurryThis(''.charCodeAt);
1670
+ var stringSlice$3 = functionUncurryThis(''.slice);
1671
+
1337
1672
  var createMethod = function (CONVERT_TO_STRING) {
1338
1673
  return function ($this, pos) {
1339
- var S = String(requireObjectCoercible($this));
1340
- var position = toInteger(pos);
1674
+ var S = toString_1(requireObjectCoercible($this));
1675
+ var position = toIntegerOrInfinity(pos);
1341
1676
  var size = S.length;
1342
1677
  var first, second;
1343
1678
  if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1344
- first = S.charCodeAt(position);
1679
+ first = charCodeAt(S, position);
1345
1680
  return first < 0xD800 || first > 0xDBFF || position + 1 === size
1346
- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1347
- ? CONVERT_TO_STRING ? S.charAt(position) : first
1348
- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1681
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
1682
+ ? CONVERT_TO_STRING
1683
+ ? charAt$2(S, position)
1684
+ : first
1685
+ : CONVERT_TO_STRING
1686
+ ? stringSlice$3(S, position, position + 2)
1687
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1349
1688
  };
1350
1689
  };
1351
1690
 
@@ -1358,42 +1697,69 @@
1358
1697
  charAt: createMethod(true)
1359
1698
  };
1360
1699
 
1361
- var charAt = stringMultibyte.charAt;
1700
+ var charAt$1 = stringMultibyte.charAt;
1362
1701
 
1363
1702
  // `AdvanceStringIndex` abstract operation
1364
1703
  // https://tc39.es/ecma262/#sec-advancestringindex
1365
1704
  var advanceStringIndex = function (S, index, unicode) {
1366
- return index + (unicode ? charAt(S, index).length : 1);
1705
+ return index + (unicode ? charAt$1(S, index).length : 1);
1706
+ };
1707
+
1708
+ var createProperty = function (object, key, value) {
1709
+ var propertyKey = toPropertyKey(key);
1710
+ if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1711
+ else object[propertyKey] = value;
1712
+ };
1713
+
1714
+ var Array$2 = global_1.Array;
1715
+ var max$2 = Math.max;
1716
+
1717
+ var arraySliceSimple = function (O, start, end) {
1718
+ var length = lengthOfArrayLike(O);
1719
+ var k = toAbsoluteIndex(start, length);
1720
+ var fin = toAbsoluteIndex(end === undefined ? length : end, length);
1721
+ var result = Array$2(max$2(fin - k, 0));
1722
+ for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
1723
+ result.length = n;
1724
+ return result;
1367
1725
  };
1368
1726
 
1727
+ var TypeError$2 = global_1.TypeError;
1728
+
1369
1729
  // `RegExpExec` abstract operation
1370
1730
  // https://tc39.es/ecma262/#sec-regexpexec
1371
1731
  var regexpExecAbstract = function (R, S) {
1372
1732
  var exec = R.exec;
1373
- if (typeof exec === 'function') {
1374
- var result = exec.call(R, S);
1375
- if (typeof result !== 'object') {
1376
- throw TypeError('RegExp exec method returned something other than an Object or null');
1377
- }
1733
+ if (isCallable(exec)) {
1734
+ var result = functionCall(exec, R, S);
1735
+ if (result !== null) anObject(result);
1378
1736
  return result;
1379
1737
  }
1380
-
1381
- if (classofRaw(R) !== 'RegExp') {
1382
- throw TypeError('RegExp#exec called on incompatible receiver');
1383
- }
1384
-
1385
- return regexpExec.call(R, S);
1738
+ if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
1739
+ throw TypeError$2('RegExp#exec called on incompatible receiver');
1386
1740
  };
1387
1741
 
1388
- var arrayPush = [].push;
1389
- var min$1 = Math.min;
1742
+ var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
1390
1743
  var MAX_UINT32 = 0xFFFFFFFF;
1744
+ var min$1 = Math.min;
1745
+ var $push = [].push;
1746
+ var exec = functionUncurryThis(/./.exec);
1747
+ var push$1 = functionUncurryThis($push);
1748
+ var stringSlice$2 = functionUncurryThis(''.slice);
1391
1749
 
1392
- // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
1393
- var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
1750
+ // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1751
+ // Weex JS has frozen built-in prototypes, so use try / catch wrapper
1752
+ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
1753
+ // eslint-disable-next-line regexp/no-empty-group -- required for testing
1754
+ var re = /(?:)/;
1755
+ var originalExec = re.exec;
1756
+ re.exec = function () { return originalExec.apply(this, arguments); };
1757
+ var result = 'ab'.split(re);
1758
+ return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
1759
+ });
1394
1760
 
1395
1761
  // @@split logic
1396
- fixRegexpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
1762
+ fixRegexpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
1397
1763
  var internalSplit;
1398
1764
  if (
1399
1765
  'abbc'.split(/(b)*/)[1] == 'c' ||
@@ -1401,19 +1767,19 @@
1401
1767
  'test'.split(/(?:)/, -1).length != 4 ||
1402
1768
  'ab'.split(/(?:ab)*/).length != 2 ||
1403
1769
  '.'.split(/(.?)(.?)/).length != 4 ||
1404
- // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
1770
+ // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
1405
1771
  '.'.split(/()()/).length > 1 ||
1406
1772
  ''.split(/.?/).length
1407
1773
  ) {
1408
1774
  // based on es5-shim implementation, need to rework it
1409
1775
  internalSplit = function (separator, limit) {
1410
- var string = String(requireObjectCoercible(this));
1776
+ var string = toString_1(requireObjectCoercible(this));
1411
1777
  var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
1412
1778
  if (lim === 0) return [];
1413
1779
  if (separator === undefined) return [string];
1414
1780
  // If `separator` is not a regex, use native split
1415
1781
  if (!isRegexp(separator)) {
1416
- return nativeSplit.call(string, separator, lim);
1782
+ return functionCall(nativeSplit, string, separator, lim);
1417
1783
  }
1418
1784
  var output = [];
1419
1785
  var flags = (separator.ignoreCase ? 'i' : '') +
@@ -1424,11 +1790,11 @@
1424
1790
  // Make `global` and avoid `lastIndex` issues by working with a copy
1425
1791
  var separatorCopy = new RegExp(separator.source, flags + 'g');
1426
1792
  var match, lastIndex, lastLength;
1427
- while (match = regexpExec.call(separatorCopy, string)) {
1793
+ while (match = functionCall(regexpExec, separatorCopy, string)) {
1428
1794
  lastIndex = separatorCopy.lastIndex;
1429
1795
  if (lastIndex > lastLastIndex) {
1430
- output.push(string.slice(lastLastIndex, match.index));
1431
- if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
1796
+ push$1(output, stringSlice$2(string, lastLastIndex, match.index));
1797
+ if (match.length > 1 && match.index < string.length) functionApply($push, output, arraySliceSimple(match, 1));
1432
1798
  lastLength = match[0].length;
1433
1799
  lastLastIndex = lastIndex;
1434
1800
  if (output.length >= lim) break;
@@ -1436,14 +1802,14 @@
1436
1802
  if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
1437
1803
  }
1438
1804
  if (lastLastIndex === string.length) {
1439
- if (lastLength || !separatorCopy.test('')) output.push('');
1440
- } else output.push(string.slice(lastLastIndex));
1441
- return output.length > lim ? output.slice(0, lim) : output;
1805
+ if (lastLength || !exec(separatorCopy, '')) push$1(output, '');
1806
+ } else push$1(output, stringSlice$2(string, lastLastIndex));
1807
+ return output.length > lim ? arraySliceSimple(output, 0, lim) : output;
1442
1808
  };
1443
1809
  // Chakra, V8
1444
1810
  } else if ('0'.split(undefined, 0).length) {
1445
1811
  internalSplit = function (separator, limit) {
1446
- return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
1812
+ return separator === undefined && limit === 0 ? [] : functionCall(nativeSplit, this, separator, limit);
1447
1813
  };
1448
1814
  } else internalSplit = nativeSplit;
1449
1815
 
@@ -1452,33 +1818,34 @@
1452
1818
  // https://tc39.es/ecma262/#sec-string.prototype.split
1453
1819
  function split(separator, limit) {
1454
1820
  var O = requireObjectCoercible(this);
1455
- var splitter = separator == undefined ? undefined : separator[SPLIT];
1456
- return splitter !== undefined
1457
- ? splitter.call(separator, O, limit)
1458
- : internalSplit.call(String(O), separator, limit);
1821
+ var splitter = separator == undefined ? undefined : getMethod(separator, SPLIT);
1822
+ return splitter
1823
+ ? functionCall(splitter, separator, O, limit)
1824
+ : functionCall(internalSplit, toString_1(O), separator, limit);
1459
1825
  },
1460
1826
  // `RegExp.prototype[@@split]` method
1461
1827
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@split
1462
1828
  //
1463
1829
  // NOTE: This cannot be properly polyfilled in engines that don't support
1464
1830
  // the 'y' flag.
1465
- function (regexp, limit) {
1466
- var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
1831
+ function (string, limit) {
1832
+ var rx = anObject(this);
1833
+ var S = toString_1(string);
1834
+ var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
1835
+
1467
1836
  if (res.done) return res.value;
1468
1837
 
1469
- var rx = anObject(regexp);
1470
- var S = String(this);
1471
1838
  var C = speciesConstructor(rx, RegExp);
1472
1839
 
1473
1840
  var unicodeMatching = rx.unicode;
1474
1841
  var flags = (rx.ignoreCase ? 'i' : '') +
1475
1842
  (rx.multiline ? 'm' : '') +
1476
1843
  (rx.unicode ? 'u' : '') +
1477
- (SUPPORTS_Y ? 'y' : 'g');
1844
+ (UNSUPPORTED_Y ? 'g' : 'y');
1478
1845
 
1479
1846
  // ^(? + rx + ) is needed, in combination with some S slicing, to
1480
1847
  // simulate the 'y' flag.
1481
- var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
1848
+ var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
1482
1849
  var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
1483
1850
  if (lim === 0) return [];
1484
1851
  if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];
@@ -1486,35 +1853,38 @@
1486
1853
  var q = 0;
1487
1854
  var A = [];
1488
1855
  while (q < S.length) {
1489
- splitter.lastIndex = SUPPORTS_Y ? q : 0;
1490
- var z = regexpExecAbstract(splitter, SUPPORTS_Y ? S : S.slice(q));
1856
+ splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
1857
+ var z = regexpExecAbstract(splitter, UNSUPPORTED_Y ? stringSlice$2(S, q) : S);
1491
1858
  var e;
1492
1859
  if (
1493
1860
  z === null ||
1494
- (e = min$1(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
1861
+ (e = min$1(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
1495
1862
  ) {
1496
1863
  q = advanceStringIndex(S, q, unicodeMatching);
1497
1864
  } else {
1498
- A.push(S.slice(p, q));
1865
+ push$1(A, stringSlice$2(S, p, q));
1499
1866
  if (A.length === lim) return A;
1500
1867
  for (var i = 1; i <= z.length - 1; i++) {
1501
- A.push(z[i]);
1868
+ push$1(A, z[i]);
1502
1869
  if (A.length === lim) return A;
1503
1870
  }
1504
1871
  q = p = e;
1505
1872
  }
1506
1873
  }
1507
- A.push(S.slice(p));
1874
+ push$1(A, stringSlice$2(S, p));
1508
1875
  return A;
1509
1876
  }
1510
1877
  ];
1511
- }, !SUPPORTS_Y);
1878
+ }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
1512
1879
 
1513
1880
  var floor = Math.floor;
1514
- var replace = ''.replace;
1881
+ var charAt = functionUncurryThis(''.charAt);
1882
+ var replace = functionUncurryThis(''.replace);
1883
+ var stringSlice$1 = functionUncurryThis(''.slice);
1515
1884
  var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1516
1885
  var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1517
1886
 
1887
+ // `GetSubstitution` abstract operation
1518
1888
  // https://tc39.es/ecma262/#sec-getsubstitution
1519
1889
  var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
1520
1890
  var tailPos = position + matched.length;
@@ -1524,15 +1894,15 @@
1524
1894
  namedCaptures = toObject(namedCaptures);
1525
1895
  symbols = SUBSTITUTION_SYMBOLS;
1526
1896
  }
1527
- return replace.call(replacement, symbols, function (match, ch) {
1897
+ return replace(replacement, symbols, function (match, ch) {
1528
1898
  var capture;
1529
- switch (ch.charAt(0)) {
1899
+ switch (charAt(ch, 0)) {
1530
1900
  case '$': return '$';
1531
1901
  case '&': return matched;
1532
- case '`': return str.slice(0, position);
1533
- case "'": return str.slice(tailPos);
1902
+ case '`': return stringSlice$1(str, 0, position);
1903
+ case "'": return stringSlice$1(str, tailPos);
1534
1904
  case '<':
1535
- capture = namedCaptures[ch.slice(1, -1)];
1905
+ capture = namedCaptures[stringSlice$1(ch, 1, -1)];
1536
1906
  break;
1537
1907
  default: // \d\d?
1538
1908
  var n = +ch;
@@ -1540,7 +1910,7 @@
1540
1910
  if (n > m) {
1541
1911
  var f = floor(n / 10);
1542
1912
  if (f === 0) return match;
1543
- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1913
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
1544
1914
  return match;
1545
1915
  }
1546
1916
  capture = captures[n - 1];
@@ -1549,17 +1919,46 @@
1549
1919
  });
1550
1920
  };
1551
1921
 
1922
+ var REPLACE = wellKnownSymbol('replace');
1552
1923
  var max$1 = Math.max;
1553
1924
  var min = Math.min;
1925
+ var concat$1 = functionUncurryThis([].concat);
1926
+ var push = functionUncurryThis([].push);
1927
+ var stringIndexOf = functionUncurryThis(''.indexOf);
1928
+ var stringSlice = functionUncurryThis(''.slice);
1554
1929
 
1555
1930
  var maybeToString = function (it) {
1556
1931
  return it === undefined ? it : String(it);
1557
1932
  };
1558
1933
 
1934
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
1935
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1936
+ var REPLACE_KEEPS_$0 = (function () {
1937
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
1938
+ return 'a'.replace(/./, '$0') === '$0';
1939
+ })();
1940
+
1941
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
1942
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
1943
+ if (/./[REPLACE]) {
1944
+ return /./[REPLACE]('a', '$0') === '';
1945
+ }
1946
+ return false;
1947
+ })();
1948
+
1949
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1950
+ var re = /./;
1951
+ re.exec = function () {
1952
+ var result = [];
1953
+ result.groups = { a: '7' };
1954
+ return result;
1955
+ };
1956
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
1957
+ return ''.replace(re, '$<a>') !== '7';
1958
+ });
1959
+
1559
1960
  // @@replace logic
1560
- fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1561
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
1562
- var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
1961
+ fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
1563
1962
  var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1564
1963
 
1565
1964
  return [
@@ -1567,27 +1966,28 @@
1567
1966
  // https://tc39.es/ecma262/#sec-string.prototype.replace
1568
1967
  function replace(searchValue, replaceValue) {
1569
1968
  var O = requireObjectCoercible(this);
1570
- var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
1571
- return replacer !== undefined
1572
- ? replacer.call(searchValue, O, replaceValue)
1573
- : nativeReplace.call(String(O), searchValue, replaceValue);
1969
+ var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
1970
+ return replacer
1971
+ ? functionCall(replacer, searchValue, O, replaceValue)
1972
+ : functionCall(nativeReplace, toString_1(O), searchValue, replaceValue);
1574
1973
  },
1575
1974
  // `RegExp.prototype[@@replace]` method
1576
1975
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1577
- function (regexp, replaceValue) {
1976
+ function (string, replaceValue) {
1977
+ var rx = anObject(this);
1978
+ var S = toString_1(string);
1979
+
1578
1980
  if (
1579
- (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
1580
- (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
1981
+ typeof replaceValue == 'string' &&
1982
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
1983
+ stringIndexOf(replaceValue, '$<') === -1
1581
1984
  ) {
1582
- var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1985
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
1583
1986
  if (res.done) return res.value;
1584
1987
  }
1585
1988
 
1586
- var rx = anObject(regexp);
1587
- var S = String(this);
1588
-
1589
- var functionalReplace = typeof replaceValue === 'function';
1590
- if (!functionalReplace) replaceValue = String(replaceValue);
1989
+ var functionalReplace = isCallable(replaceValue);
1990
+ if (!functionalReplace) replaceValue = toString_1(replaceValue);
1591
1991
 
1592
1992
  var global = rx.global;
1593
1993
  if (global) {
@@ -1599,10 +1999,10 @@
1599
1999
  var result = regexpExecAbstract(rx, S);
1600
2000
  if (result === null) break;
1601
2001
 
1602
- results.push(result);
2002
+ push(results, result);
1603
2003
  if (!global) break;
1604
2004
 
1605
- var matchStr = String(result[0]);
2005
+ var matchStr = toString_1(result[0]);
1606
2006
  if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1607
2007
  }
1608
2008
 
@@ -1611,38 +2011,32 @@
1611
2011
  for (var i = 0; i < results.length; i++) {
1612
2012
  result = results[i];
1613
2013
 
1614
- var matched = String(result[0]);
1615
- var position = max$1(min(toInteger(result.index), S.length), 0);
2014
+ var matched = toString_1(result[0]);
2015
+ var position = max$1(min(toIntegerOrInfinity(result.index), S.length), 0);
1616
2016
  var captures = [];
1617
2017
  // NOTE: This is equivalent to
1618
2018
  // captures = result.slice(1).map(maybeToString)
1619
2019
  // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1620
2020
  // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1621
2021
  // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1622
- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
2022
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
1623
2023
  var namedCaptures = result.groups;
1624
2024
  if (functionalReplace) {
1625
- var replacerArgs = [matched].concat(captures, position, S);
1626
- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1627
- var replacement = String(replaceValue.apply(undefined, replacerArgs));
2025
+ var replacerArgs = concat$1([matched], captures, position, S);
2026
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
2027
+ var replacement = toString_1(functionApply(replaceValue, undefined, replacerArgs));
1628
2028
  } else {
1629
2029
  replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1630
2030
  }
1631
2031
  if (position >= nextSourcePosition) {
1632
- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
2032
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
1633
2033
  nextSourcePosition = position + matched.length;
1634
2034
  }
1635
2035
  }
1636
- return accumulatedResult + S.slice(nextSourcePosition);
2036
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
1637
2037
  }
1638
2038
  ];
1639
- });
1640
-
1641
- var createProperty = function (object, key, value) {
1642
- var propertyKey = toPrimitive(key);
1643
- if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1644
- else object[propertyKey] = value;
1645
- };
2039
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
1646
2040
 
1647
2041
  var SPECIES$1 = wellKnownSymbol('species');
1648
2042
 
@@ -1660,10 +2054,12 @@
1660
2054
  });
1661
2055
  };
1662
2056
 
2057
+ var arraySlice = functionUncurryThis([].slice);
2058
+
1663
2059
  var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport('slice');
1664
2060
 
1665
2061
  var SPECIES = wellKnownSymbol('species');
1666
- var nativeSlice = [].slice;
2062
+ var Array$1 = global_1.Array;
1667
2063
  var max = Math.max;
1668
2064
 
1669
2065
  // `Array.prototype.slice` method
@@ -1672,7 +2068,7 @@
1672
2068
  _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
1673
2069
  slice: function slice(start, end) {
1674
2070
  var O = toIndexedObject(this);
1675
- var length = toLength(O.length);
2071
+ var length = lengthOfArrayLike(O);
1676
2072
  var k = toAbsoluteIndex(start, length);
1677
2073
  var fin = toAbsoluteIndex(end === undefined ? length : end, length);
1678
2074
  // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
@@ -1680,17 +2076,17 @@
1680
2076
  if (isArray(O)) {
1681
2077
  Constructor = O.constructor;
1682
2078
  // cross-realm fallback
1683
- if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
2079
+ if (isConstructor(Constructor) && (Constructor === Array$1 || isArray(Constructor.prototype))) {
1684
2080
  Constructor = undefined;
1685
2081
  } else if (isObject(Constructor)) {
1686
2082
  Constructor = Constructor[SPECIES];
1687
2083
  if (Constructor === null) Constructor = undefined;
1688
2084
  }
1689
- if (Constructor === Array || Constructor === undefined) {
1690
- return nativeSlice.call(O, k, fin);
2085
+ if (Constructor === Array$1 || Constructor === undefined) {
2086
+ return arraySlice(O, k, fin);
1691
2087
  }
1692
2088
  }
1693
- result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
2089
+ result = new (Constructor === undefined ? Array$1 : Constructor)(max(fin - k, 0));
1694
2090
  for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
1695
2091
  result.length = n;
1696
2092
  return result;
@@ -1711,14 +2107,17 @@
1711
2107
  }
1712
2108
  });
1713
2109
 
1714
- var nativeAssign = Object.assign;
2110
+ // eslint-disable-next-line es/no-object-assign -- safe
2111
+ var $assign = Object.assign;
2112
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1715
2113
  var defineProperty = Object.defineProperty;
2114
+ var concat = functionUncurryThis([].concat);
1716
2115
 
1717
2116
  // `Object.assign` method
1718
2117
  // https://tc39.es/ecma262/#sec-object.assign
1719
- var objectAssign = !nativeAssign || fails(function () {
2118
+ var objectAssign = !$assign || fails(function () {
1720
2119
  // should have correct order of operations (Edge bug)
1721
- if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
2120
+ if (descriptors && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1722
2121
  enumerable: true,
1723
2122
  get: function () {
1724
2123
  defineProperty(this, 'b', {
@@ -1730,12 +2129,12 @@
1730
2129
  // should work with symbols and should have deterministic property order (V8 bug)
1731
2130
  var A = {};
1732
2131
  var B = {};
1733
- /* global Symbol -- required for testing */
2132
+ // eslint-disable-next-line es/no-symbol -- safe
1734
2133
  var symbol = Symbol();
1735
2134
  var alphabet = 'abcdefghijklmnopqrst';
1736
2135
  A[symbol] = 7;
1737
2136
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1738
- return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
2137
+ return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
1739
2138
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1740
2139
  var T = toObject(target);
1741
2140
  var argumentsLength = arguments.length;
@@ -1744,19 +2143,20 @@
1744
2143
  var propertyIsEnumerable = objectPropertyIsEnumerable.f;
1745
2144
  while (argumentsLength > index) {
1746
2145
  var S = indexedObject(arguments[index++]);
1747
- var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
2146
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1748
2147
  var length = keys.length;
1749
2148
  var j = 0;
1750
2149
  var key;
1751
2150
  while (length > j) {
1752
2151
  key = keys[j++];
1753
- if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
2152
+ if (!descriptors || functionCall(propertyIsEnumerable, S, key)) T[key] = S[key];
1754
2153
  }
1755
2154
  } return T;
1756
- } : nativeAssign;
2155
+ } : $assign;
1757
2156
 
1758
2157
  // `Object.assign` method
1759
2158
  // https://tc39.es/ecma262/#sec-object.assign
2159
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1760
2160
  _export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
1761
2161
  assign: objectAssign
1762
2162
  });
@@ -1764,6 +2164,7 @@
1764
2164
  var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1765
2165
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1766
2166
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
2167
+ var TypeError$1 = global_1.TypeError;
1767
2168
 
1768
2169
  // We can't use this feature detection in V8 since it causes
1769
2170
  // deoptimization and serious performance degradation
@@ -1797,11 +2198,11 @@
1797
2198
  for (i = -1, length = arguments.length; i < length; i++) {
1798
2199
  E = i === -1 ? O : arguments[i];
1799
2200
  if (isConcatSpreadable(E)) {
1800
- len = toLength(E.length);
1801
- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
2201
+ len = lengthOfArrayLike(E);
2202
+ if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1802
2203
  for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1803
2204
  } else {
1804
- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
2205
+ if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1805
2206
  createProperty(A, n++, E);
1806
2207
  }
1807
2208
  }
@@ -1813,12 +2214,12 @@
1813
2214
  var arrayMethodIsStrict = function (METHOD_NAME, argument) {
1814
2215
  var method = [][METHOD_NAME];
1815
2216
  return !!method && fails(function () {
1816
- // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
1817
- method.call(null, argument || function () { throw 1; }, 1);
2217
+ // eslint-disable-next-line no-useless-call -- required for testing
2218
+ method.call(null, argument || function () { return 1; }, 1);
1818
2219
  });
1819
2220
  };
1820
2221
 
1821
- var nativeJoin = [].join;
2222
+ var un$Join = functionUncurryThis([].join);
1822
2223
 
1823
2224
  var ES3_STRINGS = indexedObject != Object;
1824
2225
  var STRICT_METHOD$1 = arrayMethodIsStrict('join', ',');
@@ -1827,7 +2228,7 @@
1827
2228
  // https://tc39.es/ecma262/#sec-array.prototype.join
1828
2229
  _export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
1829
2230
  join: function join(separator) {
1830
- return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
2231
+ return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
1831
2232
  }
1832
2233
  });
1833
2234
 
@@ -1867,6 +2268,14 @@
1867
2268
  TouchList: 0
1868
2269
  };
1869
2270
 
2271
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
2272
+
2273
+
2274
+ var classList = documentCreateElement('span').classList;
2275
+ var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
2276
+
2277
+ var domTokenListPrototype = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
2278
+
1870
2279
  var $forEach = arrayIteration.forEach;
1871
2280
 
1872
2281
 
@@ -1876,25 +2285,32 @@
1876
2285
  // https://tc39.es/ecma262/#sec-array.prototype.foreach
1877
2286
  var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
1878
2287
  return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2288
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
1879
2289
  } : [].forEach;
1880
2290
 
1881
- for (var COLLECTION_NAME in domIterables) {
1882
- var Collection = global_1[COLLECTION_NAME];
1883
- var CollectionPrototype = Collection && Collection.prototype;
2291
+ var handlePrototype = function (CollectionPrototype) {
1884
2292
  // some Chrome versions have non-configurable methods on DOMTokenList
1885
2293
  if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try {
1886
2294
  createNonEnumerableProperty(CollectionPrototype, 'forEach', arrayForEach);
1887
2295
  } catch (error) {
1888
2296
  CollectionPrototype.forEach = arrayForEach;
1889
2297
  }
2298
+ };
2299
+
2300
+ for (var COLLECTION_NAME in domIterables) {
2301
+ if (domIterables[COLLECTION_NAME]) {
2302
+ handlePrototype(global_1[COLLECTION_NAME] && global_1[COLLECTION_NAME].prototype);
2303
+ }
1890
2304
  }
1891
2305
 
2306
+ handlePrototype(domTokenListPrototype);
2307
+
1892
2308
  /**
1893
2309
  * @author zhixin wen <wenzhixin2010@gmail.com>
1894
2310
  * extensions: https://github.com/hhurz/tableExport.jquery.plugin
1895
2311
  */
1896
2312
 
1897
- var Utils = $__default['default'].fn.bootstrapTable.utils;
2313
+ var Utils = $__default["default"].fn.bootstrapTable.utils;
1898
2314
  var TYPE_NAME = {
1899
2315
  json: 'JSON',
1900
2316
  xml: 'XML',
@@ -1908,7 +2324,7 @@
1908
2324
  powerpoint: 'MS-Powerpoint',
1909
2325
  pdf: 'PDF'
1910
2326
  };
1911
- $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
2327
+ $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
1912
2328
  showExport: false,
1913
2329
  exportDataType: 'basic',
1914
2330
  // basic, all, selected
@@ -1924,35 +2340,36 @@
1924
2340
  },
1925
2341
  exportFooter: false
1926
2342
  });
1927
- $__default['default'].extend($__default['default'].fn.bootstrapTable.columnDefaults, {
2343
+ $__default["default"].extend($__default["default"].fn.bootstrapTable.columnDefaults, {
1928
2344
  forceExport: false,
1929
2345
  forceHide: false
1930
2346
  });
1931
- $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults.icons, {
2347
+ $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults.icons, {
1932
2348
  export: {
1933
2349
  bootstrap3: 'glyphicon-export icon-share',
2350
+ bootstrap5: 'bi-download',
1934
2351
  materialize: 'file_download',
1935
2352
  'bootstrap-table': 'icon-download'
1936
- }[$__default['default'].fn.bootstrapTable.theme] || 'fa-download'
2353
+ }[$__default["default"].fn.bootstrapTable.theme] || 'fa-download'
1937
2354
  });
1938
- $__default['default'].extend($__default['default'].fn.bootstrapTable.locales, {
2355
+ $__default["default"].extend($__default["default"].fn.bootstrapTable.locales, {
1939
2356
  formatExport: function formatExport() {
1940
2357
  return 'Export data';
1941
2358
  }
1942
2359
  });
1943
- $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, $__default['default'].fn.bootstrapTable.locales);
1944
- $__default['default'].fn.bootstrapTable.methods.push('exportTable');
1945
- $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
2360
+ $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, $__default["default"].fn.bootstrapTable.locales);
2361
+ $__default["default"].fn.bootstrapTable.methods.push('exportTable');
2362
+ $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
1946
2363
  // eslint-disable-next-line no-unused-vars
1947
2364
  onExportSaved: function onExportSaved(exportedRows) {
1948
2365
  return false;
1949
2366
  }
1950
2367
  });
1951
- $__default['default'].extend($__default['default'].fn.bootstrapTable.Constructor.EVENTS, {
2368
+ $__default["default"].extend($__default["default"].fn.bootstrapTable.Constructor.EVENTS, {
1952
2369
  'export-saved.bs.table': 'onExportSaved'
1953
2370
  });
1954
2371
 
1955
- $__default['default'].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
2372
+ $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
1956
2373
  _inherits(_class, _$$BootstrapTable);
1957
2374
 
1958
2375
  var _super = _createSuper(_class);
@@ -1966,8 +2383,8 @@
1966
2383
  _createClass(_class, [{
1967
2384
  key: "initToolbar",
1968
2385
  value: function initToolbar() {
1969
- var _get2,
1970
- _this = this;
2386
+ var _this = this,
2387
+ _get2;
1971
2388
 
1972
2389
  var o = this.options;
1973
2390
  var exportTypes = o.exportTypes;
@@ -1990,7 +2407,36 @@
1990
2407
 
1991
2408
  this.buttons = Object.assign(this.buttons, {
1992
2409
  export: {
1993
- html: exportTypes.length === 1 ? "\n <div class=\"export ".concat(this.constants.classes.buttonsDropdown, "\"\n data-type=\"").concat(exportTypes[0], "\">\n <button class=\"").concat(this.constants.buttonsClass, "\"\n aria-label=\"Export\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n </button>\n </div>\n ") : "\n <div class=\"export ".concat(this.constants.classes.buttonsDropdown, "\">\n <button class=\"").concat(this.constants.buttonsClass, " dropdown-toggle\"\n aria-label=\"Export\"\n ").concat(this.constants.dataToggle, "=\"dropdown\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n ").concat(this.constants.html.dropdownCaret, "\n </button>\n </div>\n ")
2410
+ html: function html() {
2411
+ if (exportTypes.length === 1) {
2412
+ return "\n <div class=\"export ".concat(_this.constants.classes.buttonsDropdown, "\"\n data-type=\"").concat(exportTypes[0], "\">\n <button class=\"").concat(_this.constants.buttonsClass, "\"\n aria-label=\"Export\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(_this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n </button>\n </div>\n ");
2413
+ }
2414
+
2415
+ var html = [];
2416
+ html.push("\n <div class=\"export ".concat(_this.constants.classes.buttonsDropdown, "\">\n <button class=\"").concat(_this.constants.buttonsClass, " dropdown-toggle\"\n aria-label=\"Export\"\n ").concat(_this.constants.dataToggle, "=\"dropdown\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(_this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n ").concat(_this.constants.html.dropdownCaret, "\n </button>\n ").concat(_this.constants.html.toolbarDropdown[0], "\n "));
2417
+
2418
+ var _iterator = _createForOfIteratorHelper(exportTypes),
2419
+ _step;
2420
+
2421
+ try {
2422
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2423
+ var type = _step.value;
2424
+
2425
+ if (TYPE_NAME.hasOwnProperty(type)) {
2426
+ var $item = $__default["default"](Utils.sprintf(_this.constants.html.pageDropdownItem, '', TYPE_NAME[type]));
2427
+ $item.attr('data-type', type);
2428
+ html.push($item.prop('outerHTML'));
2429
+ }
2430
+ }
2431
+ } catch (err) {
2432
+ _iterator.e(err);
2433
+ } finally {
2434
+ _iterator.f();
2435
+ }
2436
+
2437
+ html.push(_this.constants.html.toolbarDropdown[1], '</div>');
2438
+ return html.join('');
2439
+ }
1994
2440
  }
1995
2441
  });
1996
2442
  }
@@ -2007,42 +2453,16 @@
2007
2453
  return;
2008
2454
  }
2009
2455
 
2010
- var $menu = $__default['default'](this.constants.html.toolbarDropdown.join(''));
2011
- var $items = this.$export;
2012
-
2013
- if (exportTypes.length > 1) {
2014
- this.$export.append($menu); // themes support
2015
-
2016
- if ($menu.children().length) {
2017
- $menu = $menu.children().eq(0);
2018
- }
2019
-
2020
- var _iterator = _createForOfIteratorHelper(exportTypes),
2021
- _step;
2022
-
2023
- try {
2024
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
2025
- var type = _step.value;
2026
-
2027
- if (TYPE_NAME.hasOwnProperty(type)) {
2028
- var $item = $__default['default'](Utils.sprintf(this.constants.html.pageDropdownItem, '', TYPE_NAME[type]));
2029
- $item.attr('data-type', type);
2030
- $menu.append($item);
2031
- }
2032
- }
2033
- } catch (err) {
2034
- _iterator.e(err);
2035
- } finally {
2036
- _iterator.f();
2037
- }
2456
+ this.updateExportButton();
2457
+ var $exportButtons = this.$export.find('[data-type]');
2038
2458
 
2039
- $items = $menu.children();
2459
+ if (exportTypes.length === 1) {
2460
+ $exportButtons = this.$export;
2040
2461
  }
2041
2462
 
2042
- this.updateExportButton();
2043
- $items.click(function (e) {
2463
+ $exportButtons.click(function (e) {
2044
2464
  e.preventDefault();
2045
- var type = $__default['default'](e.currentTarget).data('type');
2465
+ var type = $__default["default"](e.currentTarget).data('type');
2046
2466
  var exportOptions = {
2047
2467
  type: type,
2048
2468
  escape: false
@@ -2099,8 +2519,8 @@
2099
2519
 
2100
2520
  var footerData = {};
2101
2521
  var footerHtml = [];
2102
- $__default['default'].each($footerRow.children(), function (index, footerCell) {
2103
- var footerCellHtml = $__default['default'](footerCell).children('.th-inner').first().html();
2522
+ $__default["default"].each($footerRow.children(), function (index, footerCell) {
2523
+ var footerCellHtml = $__default["default"](footerCell).children('.th-inner').first().html();
2104
2524
  footerData[_this2.columns[index].field] = footerCellHtml === '&nbsp;' ? null : footerCellHtml; // grab footer cell text into cell index-based array
2105
2525
 
2106
2526
  footerHtml.push(footerCellHtml);
@@ -2110,8 +2530,8 @@
2110
2530
 
2111
2531
  var $lastTableRow = _this2.$body.children().last();
2112
2532
 
2113
- $__default['default'].each($lastTableRow.children(), function (index, lastTableRowCell) {
2114
- $__default['default'](lastTableRowCell).html(footerHtml[index]);
2533
+ $__default["default"].each($lastTableRow.children(), function (index, lastTableRowCell) {
2534
+ $__default["default"](lastTableRowCell).html(footerHtml[index]);
2115
2535
  });
2116
2536
  }
2117
2537
 
@@ -2127,7 +2547,7 @@
2127
2547
  options.fileName = o.exportOptions.fileName();
2128
2548
  }
2129
2549
 
2130
- _this2.$el.tableExport($__default['default'].extend({
2550
+ _this2.$el.tableExport($__default["default"].extend({
2131
2551
  onAfterSaveToFile: function onAfterSaveToFile() {
2132
2552
  if (o.exportFooter) {
2133
2553
  _this2.load(data);
@@ -2227,6 +2647,6 @@
2227
2647
  }]);
2228
2648
 
2229
2649
  return _class;
2230
- }($__default['default'].BootstrapTable);
2650
+ }($__default["default"].BootstrapTable);
2231
2651
 
2232
- })));
2652
+ }));