bootstrap-table-rails 1.18.1 → 1.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +30 -132
  5. data/lib/bootstrap-table-rails/version.rb +1 -1
  6. data/vendor/.DS_Store +0 -0
  7. data/vendor/assets/.DS_Store +0 -0
  8. data/vendor/assets/javascripts/.DS_Store +0 -0
  9. data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
  10. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +196 -147
  11. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +179 -990
  12. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +180 -991
  13. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +9 -1
  14. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +731 -1114
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +122 -35
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +115 -39
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +458 -911
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +124 -48
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +122 -43
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +66 -24
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +433 -977
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +460 -951
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +275 -140
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +176 -86
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +128 -48
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +164 -75
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +45 -11
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +136 -36
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +227 -141
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +148 -94
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +111 -35
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +93 -49
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +396 -999
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +144 -56
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +104 -33
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +283 -87
  37. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +116 -40
  38. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +456 -1034
  39. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +278 -990
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +30 -20
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +30 -20
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +30 -20
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +30 -20
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +30 -20
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +30 -20
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +69 -20
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +30 -20
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +30 -20
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +30 -20
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +30 -20
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +30 -20
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +30 -20
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +30 -20
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +30 -20
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +30 -20
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +30 -20
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +30 -20
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +30 -20
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +30 -20
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +30 -20
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +30 -20
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +30 -20
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +30 -20
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +30 -20
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +30 -20
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +30 -20
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +30 -20
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +30 -20
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +30 -20
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +30 -20
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +30 -20
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +30 -20
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +30 -20
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +30 -20
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +30 -20
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +30 -20
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +30 -20
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +30 -20
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +30 -20
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +53 -43
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +30 -20
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +30 -20
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +30 -20
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +30 -20
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +30 -20
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +30 -20
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +30 -20
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +30 -20
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +30 -20
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +30 -20
  91. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +30 -20
  92. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +30 -20
  93. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +8 -0
  94. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +114 -35
  95. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +8 -0
  96. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +109 -30
  97. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +8 -0
  98. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +113 -34
  99. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +8 -0
  100. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +110 -31
  101. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +8 -0
  102. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +107 -28
  103. metadata +6 -1
@@ -1,10 +1,12 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) :
3
3
  typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4
- (global = global || self, global.BootstrapTable = factory(global.jQuery));
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BootstrapTable = factory(global.jQuery));
5
5
  }(this, (function ($) { 'use strict';
6
6
 
7
- $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var $__default = /*#__PURE__*/_interopDefaultLegacy($);
8
10
 
9
11
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
12
 
@@ -24,7 +26,7 @@
24
26
  check(typeof self == 'object' && self) ||
25
27
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
26
28
  // eslint-disable-next-line no-new-func
27
- Function('return this')();
29
+ (function () { return this; })() || Function('return this')();
28
30
 
29
31
  var fails = function (exec) {
30
32
  try {
@@ -36,7 +38,7 @@
36
38
 
37
39
  // Thank's IE8 for his funny defineProperty
38
40
  var descriptors = !fails(function () {
39
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
41
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
40
42
  });
41
43
 
42
44
  var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
@@ -217,9 +219,9 @@
217
219
  (module.exports = function (key, value) {
218
220
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
219
221
  })('versions', []).push({
220
- version: '3.6.0',
222
+ version: '3.8.1',
221
223
  mode: 'global',
222
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
224
+ copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
223
225
  });
224
226
  });
225
227
 
@@ -255,11 +257,12 @@
255
257
  };
256
258
 
257
259
  if (nativeWeakMap) {
258
- var store$1 = new WeakMap$1();
260
+ var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$1());
259
261
  var wmget = store$1.get;
260
262
  var wmhas = store$1.has;
261
263
  var wmset = store$1.set;
262
264
  set = function (it, metadata) {
265
+ metadata.facade = it;
263
266
  wmset.call(store$1, it, metadata);
264
267
  return metadata;
265
268
  };
@@ -273,6 +276,7 @@
273
276
  var STATE = sharedKey('state');
274
277
  hiddenKeys[STATE] = true;
275
278
  set = function (it, metadata) {
279
+ metadata.facade = it;
276
280
  createNonEnumerableProperty(it, STATE, metadata);
277
281
  return metadata;
278
282
  };
@@ -301,9 +305,15 @@
301
305
  var unsafe = options ? !!options.unsafe : false;
302
306
  var simple = options ? !!options.enumerable : false;
303
307
  var noTargetGet = options ? !!options.noTargetGet : false;
308
+ var state;
304
309
  if (typeof value == 'function') {
305
- if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
306
- enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
310
+ if (typeof key == 'string' && !has(value, 'name')) {
311
+ createNonEnumerableProperty(value, 'name', key);
312
+ }
313
+ state = enforceInternalState(value);
314
+ if (!state.source) {
315
+ state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
316
+ }
307
317
  }
308
318
  if (O === global_1) {
309
319
  if (simple) O[key] = value;
@@ -526,18 +536,6 @@
526
536
  }
527
537
  };
528
538
 
529
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
530
- // Chrome 38 Symbol has incorrect toString conversion
531
- // eslint-disable-next-line no-undef
532
- return !String(Symbol());
533
- });
534
-
535
- var useSymbolAsUid = nativeSymbol
536
- // eslint-disable-next-line no-undef
537
- && !Symbol.sham
538
- // eslint-disable-next-line no-undef
539
- && typeof Symbol() == 'symbol';
540
-
541
539
  // `IsArray` abstract operation
542
540
  // https://tc39.github.io/ecma262/#sec-isarray
543
541
  var isArray = Array.isArray || function isArray(arg) {
@@ -550,126 +548,27 @@
550
548
  return Object(requireObjectCoercible(argument));
551
549
  };
552
550
 
553
- // `Object.keys` method
554
- // https://tc39.github.io/ecma262/#sec-object.keys
555
- var objectKeys = Object.keys || function keys(O) {
556
- return objectKeysInternal(O, enumBugKeys);
557
- };
558
-
559
- // `Object.defineProperties` method
560
- // https://tc39.github.io/ecma262/#sec-object.defineproperties
561
- var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
562
- anObject(O);
563
- var keys = objectKeys(Properties);
564
- var length = keys.length;
565
- var index = 0;
566
- var key;
567
- while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
568
- return O;
569
- };
570
-
571
- var html = getBuiltIn('document', 'documentElement');
572
-
573
- var GT = '>';
574
- var LT = '<';
575
- var PROTOTYPE = 'prototype';
576
- var SCRIPT = 'script';
577
- var IE_PROTO = sharedKey('IE_PROTO');
578
-
579
- var EmptyConstructor = function () { /* empty */ };
580
-
581
- var scriptTag = function (content) {
582
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
583
- };
584
-
585
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
586
- var NullProtoObjectViaActiveX = function (activeXDocument) {
587
- activeXDocument.write(scriptTag(''));
588
- activeXDocument.close();
589
- var temp = activeXDocument.parentWindow.Object;
590
- activeXDocument = null; // avoid memory leak
591
- return temp;
592
- };
593
-
594
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
595
- var NullProtoObjectViaIFrame = function () {
596
- // Thrash, waste and sodomy: IE GC bug
597
- var iframe = documentCreateElement('iframe');
598
- var JS = 'java' + SCRIPT + ':';
599
- var iframeDocument;
600
- iframe.style.display = 'none';
601
- html.appendChild(iframe);
602
- // https://github.com/zloirock/core-js/issues/475
603
- iframe.src = String(JS);
604
- iframeDocument = iframe.contentWindow.document;
605
- iframeDocument.open();
606
- iframeDocument.write(scriptTag('document.F=Object'));
607
- iframeDocument.close();
608
- return iframeDocument.F;
609
- };
610
-
611
- // Check for document.domain and active x support
612
- // No need to use active x approach when document.domain is not set
613
- // see https://github.com/es-shims/es5-shim/issues/150
614
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
615
- // avoid IE GC bug
616
- var activeXDocument;
617
- var NullProtoObject = function () {
618
- try {
619
- /* global ActiveXObject */
620
- activeXDocument = document.domain && new ActiveXObject('htmlfile');
621
- } catch (error) { /* ignore */ }
622
- NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
623
- var length = enumBugKeys.length;
624
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
625
- return NullProtoObject();
626
- };
627
-
628
- hiddenKeys[IE_PROTO] = true;
629
-
630
- // `Object.create` method
631
- // https://tc39.github.io/ecma262/#sec-object.create
632
- var objectCreate = Object.create || function create(O, Properties) {
633
- var result;
634
- if (O !== null) {
635
- EmptyConstructor[PROTOTYPE] = anObject(O);
636
- result = new EmptyConstructor();
637
- EmptyConstructor[PROTOTYPE] = null;
638
- // add "__proto__" for Object.getPrototypeOf polyfill
639
- result[IE_PROTO] = O;
640
- } else result = NullProtoObject();
641
- return Properties === undefined ? result : objectDefineProperties(result, Properties);
642
- };
643
-
644
- var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
645
-
646
- var toString$1 = {}.toString;
647
-
648
- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
649
- ? Object.getOwnPropertyNames(window) : [];
650
-
651
- var getWindowNames = function (it) {
652
- try {
653
- return nativeGetOwnPropertyNames(it);
654
- } catch (error) {
655
- return windowNames.slice();
656
- }
551
+ var createProperty = function (object, key, value) {
552
+ var propertyKey = toPrimitive(key);
553
+ if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
554
+ else object[propertyKey] = value;
657
555
  };
658
556
 
659
- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
660
- var f$5 = function getOwnPropertyNames(it) {
661
- return windowNames && toString$1.call(it) == '[object Window]'
662
- ? getWindowNames(it)
663
- : nativeGetOwnPropertyNames(toIndexedObject(it));
664
- };
557
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
558
+ // Chrome 38 Symbol has incorrect toString conversion
559
+ // eslint-disable-next-line no-undef
560
+ return !String(Symbol());
561
+ });
665
562
 
666
- var objectGetOwnPropertyNamesExternal = {
667
- f: f$5
668
- };
563
+ var useSymbolAsUid = nativeSymbol
564
+ // eslint-disable-next-line no-undef
565
+ && !Symbol.sham
566
+ // eslint-disable-next-line no-undef
567
+ && typeof Symbol.iterator == 'symbol';
669
568
 
670
569
  var WellKnownSymbolsStore = shared('wks');
671
570
  var Symbol$1 = global_1.Symbol;
672
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
571
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
673
572
 
674
573
  var wellKnownSymbol = function (name) {
675
574
  if (!has(WellKnownSymbolsStore, name)) {
@@ -678,32 +577,106 @@
678
577
  } return WellKnownSymbolsStore[name];
679
578
  };
680
579
 
681
- var f$6 = wellKnownSymbol;
580
+ var SPECIES = wellKnownSymbol('species');
682
581
 
683
- var wrappedWellKnownSymbol = {
684
- f: f$6
582
+ // `ArraySpeciesCreate` abstract operation
583
+ // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
584
+ var arraySpeciesCreate = function (originalArray, length) {
585
+ var C;
586
+ if (isArray(originalArray)) {
587
+ C = originalArray.constructor;
588
+ // cross-realm fallback
589
+ if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
590
+ else if (isObject(C)) {
591
+ C = C[SPECIES];
592
+ if (C === null) C = undefined;
593
+ }
594
+ } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
685
595
  };
686
596
 
687
- var defineProperty = objectDefineProperty.f;
597
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
598
+
599
+ var process = global_1.process;
600
+ var versions = process && process.versions;
601
+ var v8 = versions && versions.v8;
602
+ var match, version;
603
+
604
+ if (v8) {
605
+ match = v8.split('.');
606
+ version = match[0] + match[1];
607
+ } else if (engineUserAgent) {
608
+ match = engineUserAgent.match(/Edge\/(\d+)/);
609
+ if (!match || match[1] >= 74) {
610
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
611
+ if (match) version = match[1];
612
+ }
613
+ }
614
+
615
+ var engineV8Version = version && +version;
688
616
 
689
- var defineWellKnownSymbol = function (NAME) {
690
- var Symbol = path.Symbol || (path.Symbol = {});
691
- if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
692
- value: wrappedWellKnownSymbol.f(NAME)
617
+ var SPECIES$1 = wellKnownSymbol('species');
618
+
619
+ var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
620
+ // We can't use this feature detection in V8 since it causes
621
+ // deoptimization and serious performance degradation
622
+ // https://github.com/zloirock/core-js/issues/677
623
+ return engineV8Version >= 51 || !fails(function () {
624
+ var array = [];
625
+ var constructor = array.constructor = {};
626
+ constructor[SPECIES$1] = function () {
627
+ return { foo: 1 };
628
+ };
629
+ return array[METHOD_NAME](Boolean).foo !== 1;
693
630
  });
694
631
  };
695
632
 
696
- var defineProperty$1 = objectDefineProperty.f;
633
+ var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
634
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
635
+ var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
697
636
 
637
+ // We can't use this feature detection in V8 since it causes
638
+ // deoptimization and serious performance degradation
639
+ // https://github.com/zloirock/core-js/issues/679
640
+ var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
641
+ var array = [];
642
+ array[IS_CONCAT_SPREADABLE] = false;
643
+ return array.concat()[0] !== array;
644
+ });
698
645
 
646
+ var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
699
647
 
700
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
648
+ var isConcatSpreadable = function (O) {
649
+ if (!isObject(O)) return false;
650
+ var spreadable = O[IS_CONCAT_SPREADABLE];
651
+ return spreadable !== undefined ? !!spreadable : isArray(O);
652
+ };
701
653
 
702
- var setToStringTag = function (it, TAG, STATIC) {
703
- if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
704
- defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });
654
+ var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
655
+
656
+ // `Array.prototype.concat` method
657
+ // https://tc39.github.io/ecma262/#sec-array.prototype.concat
658
+ // with adding support of @@isConcatSpreadable and @@species
659
+ _export({ target: 'Array', proto: true, forced: FORCED }, {
660
+ concat: function concat(arg) { // eslint-disable-line no-unused-vars
661
+ var O = toObject(this);
662
+ var A = arraySpeciesCreate(O, 0);
663
+ var n = 0;
664
+ var i, k, length, len, E;
665
+ for (i = -1, length = arguments.length; i < length; i++) {
666
+ E = i === -1 ? O : arguments[i];
667
+ if (isConcatSpreadable(E)) {
668
+ len = toLength(E.length);
669
+ if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
670
+ for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
671
+ } else {
672
+ if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
673
+ createProperty(A, n++, E);
674
+ }
675
+ }
676
+ A.length = n;
677
+ return A;
705
678
  }
706
- };
679
+ });
707
680
 
708
681
  var aFunction$1 = function (it) {
709
682
  if (typeof it != 'function') {
@@ -712,7 +685,7 @@
712
685
  };
713
686
 
714
687
  // optional / simple context binding
715
- var bindContext = function (fn, that, length) {
688
+ var functionBindContext = function (fn, that, length) {
716
689
  aFunction$1(fn);
717
690
  if (that === undefined) return fn;
718
691
  switch (length) {
@@ -734,41 +707,25 @@
734
707
  };
735
708
  };
736
709
 
737
- var SPECIES = wellKnownSymbol('species');
738
-
739
- // `ArraySpeciesCreate` abstract operation
740
- // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
741
- var arraySpeciesCreate = function (originalArray, length) {
742
- var C;
743
- if (isArray(originalArray)) {
744
- C = originalArray.constructor;
745
- // cross-realm fallback
746
- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
747
- else if (isObject(C)) {
748
- C = C[SPECIES];
749
- if (C === null) C = undefined;
750
- }
751
- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
752
- };
753
-
754
710
  var push = [].push;
755
711
 
756
- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
712
+ // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
757
713
  var createMethod$1 = function (TYPE) {
758
714
  var IS_MAP = TYPE == 1;
759
715
  var IS_FILTER = TYPE == 2;
760
716
  var IS_SOME = TYPE == 3;
761
717
  var IS_EVERY = TYPE == 4;
762
718
  var IS_FIND_INDEX = TYPE == 6;
719
+ var IS_FILTER_OUT = TYPE == 7;
763
720
  var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
764
721
  return function ($this, callbackfn, that, specificCreate) {
765
722
  var O = toObject($this);
766
723
  var self = indexedObject(O);
767
- var boundFunction = bindContext(callbackfn, that, 3);
724
+ var boundFunction = functionBindContext(callbackfn, that, 3);
768
725
  var length = toLength(self.length);
769
726
  var index = 0;
770
727
  var create = specificCreate || arraySpeciesCreate;
771
- var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
728
+ var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
772
729
  var value, result;
773
730
  for (;length > index; index++) if (NO_HOLES || index in self) {
774
731
  value = self[index];
@@ -780,7 +737,10 @@
780
737
  case 5: return value; // find
781
738
  case 6: return index; // findIndex
782
739
  case 2: push.call(target, value); // filter
783
- } else if (IS_EVERY) return false; // every
740
+ } else switch (TYPE) {
741
+ case 4: return false; // every
742
+ case 7: push.call(target, value); // filterOut
743
+ }
784
744
  }
785
745
  }
786
746
  return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
@@ -808,438 +768,143 @@
808
768
  find: createMethod$1(5),
809
769
  // `Array.prototype.findIndex` method
810
770
  // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
811
- findIndex: createMethod$1(6)
812
- };
813
-
814
- var $forEach = arrayIteration.forEach;
815
-
816
- var HIDDEN = sharedKey('hidden');
817
- var SYMBOL = 'Symbol';
818
- var PROTOTYPE$1 = 'prototype';
819
- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
820
- var setInternalState = internalState.set;
821
- var getInternalState = internalState.getterFor(SYMBOL);
822
- var ObjectPrototype = Object[PROTOTYPE$1];
823
- var $Symbol = global_1.Symbol;
824
- var $stringify = getBuiltIn('JSON', 'stringify');
825
- var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
826
- var nativeDefineProperty$1 = objectDefineProperty.f;
827
- var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
828
- var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;
829
- var AllSymbols = shared('symbols');
830
- var ObjectPrototypeSymbols = shared('op-symbols');
831
- var StringToSymbolRegistry = shared('string-to-symbol-registry');
832
- var SymbolToStringRegistry = shared('symbol-to-string-registry');
833
- var WellKnownSymbolsStore$1 = shared('wks');
834
- var QObject = global_1.QObject;
835
- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
836
- var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
837
-
838
- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
839
- var setSymbolDescriptor = descriptors && fails(function () {
840
- return objectCreate(nativeDefineProperty$1({}, 'a', {
841
- get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
842
- })).a != 7;
843
- }) ? function (O, P, Attributes) {
844
- var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);
845
- if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
846
- nativeDefineProperty$1(O, P, Attributes);
847
- if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
848
- nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);
849
- }
850
- } : nativeDefineProperty$1;
851
-
852
- var wrap = function (tag, description) {
853
- var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);
854
- setInternalState(symbol, {
855
- type: SYMBOL,
856
- tag: tag,
857
- description: description
858
- });
859
- if (!descriptors) symbol.description = description;
860
- return symbol;
861
- };
862
-
863
- var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {
864
- return typeof it == 'symbol';
865
- } : function (it) {
866
- return Object(it) instanceof $Symbol;
771
+ findIndex: createMethod$1(6),
772
+ // `Array.prototype.filterOut` method
773
+ // https://github.com/tc39/proposal-array-filtering
774
+ filterOut: createMethod$1(7)
867
775
  };
868
776
 
869
- var $defineProperty = function defineProperty(O, P, Attributes) {
870
- if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
871
- anObject(O);
872
- var key = toPrimitive(P, true);
873
- anObject(Attributes);
874
- if (has(AllSymbols, key)) {
875
- if (!Attributes.enumerable) {
876
- if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));
877
- O[HIDDEN][key] = true;
878
- } else {
879
- if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
880
- Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
881
- } return setSymbolDescriptor(O, key, Attributes);
882
- } return nativeDefineProperty$1(O, key, Attributes);
883
- };
777
+ var defineProperty = Object.defineProperty;
778
+ var cache = {};
884
779
 
885
- var $defineProperties = function defineProperties(O, Properties) {
886
- anObject(O);
887
- var properties = toIndexedObject(Properties);
888
- var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
889
- $forEach(keys, function (key) {
890
- if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
891
- });
892
- return O;
893
- };
894
-
895
- var $create = function create(O, Properties) {
896
- return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);
897
- };
780
+ var thrower = function (it) { throw it; };
898
781
 
899
- var $propertyIsEnumerable = function propertyIsEnumerable(V) {
900
- var P = toPrimitive(V, true);
901
- var enumerable = nativePropertyIsEnumerable$1.call(this, P);
902
- if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
903
- return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
904
- };
782
+ var arrayMethodUsesToLength = function (METHOD_NAME, options) {
783
+ if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];
784
+ if (!options) options = {};
785
+ var method = [][METHOD_NAME];
786
+ var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;
787
+ var argument0 = has(options, 0) ? options[0] : thrower;
788
+ var argument1 = has(options, 1) ? options[1] : undefined;
905
789
 
906
- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
907
- var it = toIndexedObject(O);
908
- var key = toPrimitive(P, true);
909
- if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
910
- var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);
911
- if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
912
- descriptor.enumerable = true;
913
- }
914
- return descriptor;
915
- };
790
+ return cache[METHOD_NAME] = !!method && !fails(function () {
791
+ if (ACCESSORS && !descriptors) return true;
792
+ var O = { length: -1 };
916
793
 
917
- var $getOwnPropertyNames = function getOwnPropertyNames(O) {
918
- var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));
919
- var result = [];
920
- $forEach(names, function (key) {
921
- if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
922
- });
923
- return result;
924
- };
794
+ if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });
795
+ else O[1] = 1;
925
796
 
926
- var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
927
- var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
928
- var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
929
- var result = [];
930
- $forEach(names, function (key) {
931
- if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
932
- result.push(AllSymbols[key]);
933
- }
797
+ method.call(O, argument0, argument1);
934
798
  });
935
- return result;
936
799
  };
937
800
 
938
- // `Symbol` constructor
939
- // https://tc39.github.io/ecma262/#sec-symbol-constructor
940
- if (!nativeSymbol) {
941
- $Symbol = function Symbol() {
942
- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
943
- var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
944
- var tag = uid(description);
945
- var setter = function (value) {
946
- if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
947
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
948
- setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
949
- };
950
- if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
951
- return wrap(tag, description);
952
- };
953
-
954
- redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {
955
- return getInternalState(this).tag;
956
- });
957
-
958
- objectPropertyIsEnumerable.f = $propertyIsEnumerable;
959
- objectDefineProperty.f = $defineProperty;
960
- objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;
961
- objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
962
- objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;
963
-
964
- if (descriptors) {
965
- // https://github.com/tc39/proposal-Symbol-description
966
- nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {
967
- configurable: true,
968
- get: function description() {
969
- return getInternalState(this).description;
970
- }
971
- });
972
- {
973
- redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
974
- }
975
- }
976
- }
977
-
978
- if (!useSymbolAsUid) {
979
- wrappedWellKnownSymbol.f = function (name) {
980
- return wrap(wellKnownSymbol(name), name);
981
- };
982
- }
983
-
984
- _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {
985
- Symbol: $Symbol
986
- });
987
-
988
- $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {
989
- defineWellKnownSymbol(name);
990
- });
801
+ var $filter = arrayIteration.filter;
991
802
 
992
- _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {
993
- // `Symbol.for` method
994
- // https://tc39.github.io/ecma262/#sec-symbol.for
995
- 'for': function (key) {
996
- var string = String(key);
997
- if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
998
- var symbol = $Symbol(string);
999
- StringToSymbolRegistry[string] = symbol;
1000
- SymbolToStringRegistry[symbol] = string;
1001
- return symbol;
1002
- },
1003
- // `Symbol.keyFor` method
1004
- // https://tc39.github.io/ecma262/#sec-symbol.keyfor
1005
- keyFor: function keyFor(sym) {
1006
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
1007
- if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
1008
- },
1009
- useSetter: function () { USE_SETTER = true; },
1010
- useSimple: function () { USE_SETTER = false; }
1011
- });
1012
803
 
1013
- _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {
1014
- // `Object.create` method
1015
- // https://tc39.github.io/ecma262/#sec-object.create
1016
- create: $create,
1017
- // `Object.defineProperty` method
1018
- // https://tc39.github.io/ecma262/#sec-object.defineproperty
1019
- defineProperty: $defineProperty,
1020
- // `Object.defineProperties` method
1021
- // https://tc39.github.io/ecma262/#sec-object.defineproperties
1022
- defineProperties: $defineProperties,
1023
- // `Object.getOwnPropertyDescriptor` method
1024
- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
1025
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor
1026
- });
1027
804
 
1028
- _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {
1029
- // `Object.getOwnPropertyNames` method
1030
- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
1031
- getOwnPropertyNames: $getOwnPropertyNames,
1032
- // `Object.getOwnPropertySymbols` method
1033
- // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
1034
- getOwnPropertySymbols: $getOwnPropertySymbols
1035
- });
805
+ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
806
+ // Edge 14- issue
807
+ var USES_TO_LENGTH = arrayMethodUsesToLength('filter');
1036
808
 
1037
- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
1038
- // https://bugs.chromium.org/p/v8/issues/detail?id=3443
1039
- _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {
1040
- getOwnPropertySymbols: function getOwnPropertySymbols(it) {
1041
- return objectGetOwnPropertySymbols.f(toObject(it));
809
+ // `Array.prototype.filter` method
810
+ // https://tc39.github.io/ecma262/#sec-array.prototype.filter
811
+ // with adding support of @@species
812
+ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
813
+ filter: function filter(callbackfn /* , thisArg */) {
814
+ return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1042
815
  }
1043
816
  });
1044
817
 
1045
- // `JSON.stringify` method behavior with symbols
1046
- // https://tc39.github.io/ecma262/#sec-json.stringify
1047
- if ($stringify) {
1048
- var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {
1049
- var symbol = $Symbol();
1050
- // MS Edge converts symbol values to JSON as {}
1051
- return $stringify([symbol]) != '[null]'
1052
- // WebKit converts symbol values to JSON as null
1053
- || $stringify({ a: symbol }) != '{}'
1054
- // V8 throws on boxed symbols
1055
- || $stringify(Object(symbol)) != '{}';
1056
- });
1057
-
1058
- _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
1059
- // eslint-disable-next-line no-unused-vars
1060
- stringify: function stringify(it, replacer, space) {
1061
- var args = [it];
1062
- var index = 1;
1063
- var $replacer;
1064
- while (arguments.length > index) args.push(arguments[index++]);
1065
- $replacer = replacer;
1066
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
1067
- if (!isArray(replacer)) replacer = function (key, value) {
1068
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1069
- if (!isSymbol(value)) return value;
1070
- };
1071
- args[1] = replacer;
1072
- return $stringify.apply(null, args);
1073
- }
1074
- });
1075
- }
1076
-
1077
- // `Symbol.prototype[@@toPrimitive]` method
1078
- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
1079
- if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {
1080
- createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
1081
- }
1082
- // `Symbol.prototype[@@toStringTag]` property
1083
- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
1084
- setToStringTag($Symbol, SYMBOL);
1085
-
1086
- hiddenKeys[HIDDEN] = true;
1087
-
1088
- var defineProperty$2 = objectDefineProperty.f;
1089
-
1090
-
1091
- var NativeSymbol = global_1.Symbol;
1092
-
1093
- if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
1094
- // Safari 12 bug
1095
- NativeSymbol().description !== undefined
1096
- )) {
1097
- var EmptyStringDescriptionStore = {};
1098
- // wrap Symbol constructor for correct work with undefined description
1099
- var SymbolWrapper = function Symbol() {
1100
- var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
1101
- var result = this instanceof SymbolWrapper
1102
- ? new NativeSymbol(description)
1103
- // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
1104
- : description === undefined ? NativeSymbol() : NativeSymbol(description);
1105
- if (description === '') EmptyStringDescriptionStore[result] = true;
1106
- return result;
1107
- };
1108
- copyConstructorProperties(SymbolWrapper, NativeSymbol);
1109
- var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
1110
- symbolPrototype.constructor = SymbolWrapper;
1111
-
1112
- var symbolToString = symbolPrototype.toString;
1113
- var native = String(NativeSymbol('test')) == 'Symbol(test)';
1114
- var regexp = /^Symbol\((.*)\)[^)]+$/;
1115
- defineProperty$2(symbolPrototype, 'description', {
1116
- configurable: true,
1117
- get: function description() {
1118
- var symbol = isObject(this) ? this.valueOf() : this;
1119
- var string = symbolToString.call(symbol);
1120
- if (has(EmptyStringDescriptionStore, symbol)) return '';
1121
- var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
1122
- return desc === '' ? undefined : desc;
1123
- }
1124
- });
1125
-
1126
- _export({ global: true, forced: true }, {
1127
- Symbol: SymbolWrapper
1128
- });
1129
- }
1130
-
1131
- // `Symbol.iterator` well-known symbol
1132
- // https://tc39.github.io/ecma262/#sec-symbol.iterator
1133
- defineWellKnownSymbol('iterator');
1134
-
1135
- var createProperty = function (object, key, value) {
1136
- var propertyKey = toPrimitive(key);
1137
- if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1138
- else object[propertyKey] = value;
818
+ // `Object.keys` method
819
+ // https://tc39.github.io/ecma262/#sec-object.keys
820
+ var objectKeys = Object.keys || function keys(O) {
821
+ return objectKeysInternal(O, enumBugKeys);
1139
822
  };
1140
823
 
1141
- var userAgent = getBuiltIn('navigator', 'userAgent') || '';
1142
-
1143
- var process = global_1.process;
1144
- var versions = process && process.versions;
1145
- var v8 = versions && versions.v8;
1146
- var match, version;
1147
-
1148
- if (v8) {
1149
- match = v8.split('.');
1150
- version = match[0] + match[1];
1151
- } else if (userAgent) {
1152
- match = userAgent.match(/Edge\/(\d+)/);
1153
- if (!match || match[1] >= 74) {
1154
- match = userAgent.match(/Chrome\/(\d+)/);
1155
- if (match) version = match[1];
1156
- }
1157
- }
1158
-
1159
- var v8Version = version && +version;
1160
-
1161
- var SPECIES$1 = wellKnownSymbol('species');
1162
-
1163
- var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1164
- // We can't use this feature detection in V8 since it causes
1165
- // deoptimization and serious performance degradation
1166
- // https://github.com/zloirock/core-js/issues/677
1167
- return v8Version >= 51 || !fails(function () {
1168
- var array = [];
1169
- var constructor = array.constructor = {};
1170
- constructor[SPECIES$1] = function () {
1171
- return { foo: 1 };
1172
- };
1173
- return array[METHOD_NAME](Boolean).foo !== 1;
1174
- });
824
+ // `Object.defineProperties` method
825
+ // https://tc39.github.io/ecma262/#sec-object.defineproperties
826
+ var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
827
+ anObject(O);
828
+ var keys = objectKeys(Properties);
829
+ var length = keys.length;
830
+ var index = 0;
831
+ var key;
832
+ while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
833
+ return O;
1175
834
  };
1176
835
 
1177
- var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1178
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1179
- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
836
+ var html = getBuiltIn('document', 'documentElement');
1180
837
 
1181
- // We can't use this feature detection in V8 since it causes
1182
- // deoptimization and serious performance degradation
1183
- // https://github.com/zloirock/core-js/issues/679
1184
- var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {
1185
- var array = [];
1186
- array[IS_CONCAT_SPREADABLE] = false;
1187
- return array.concat()[0] !== array;
1188
- });
838
+ var GT = '>';
839
+ var LT = '<';
840
+ var PROTOTYPE = 'prototype';
841
+ var SCRIPT = 'script';
842
+ var IE_PROTO = sharedKey('IE_PROTO');
1189
843
 
1190
- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
844
+ var EmptyConstructor = function () { /* empty */ };
1191
845
 
1192
- var isConcatSpreadable = function (O) {
1193
- if (!isObject(O)) return false;
1194
- var spreadable = O[IS_CONCAT_SPREADABLE];
1195
- return spreadable !== undefined ? !!spreadable : isArray(O);
846
+ var scriptTag = function (content) {
847
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1196
848
  };
1197
849
 
1198
- var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1199
-
1200
- // `Array.prototype.concat` method
1201
- // https://tc39.github.io/ecma262/#sec-array.prototype.concat
1202
- // with adding support of @@isConcatSpreadable and @@species
1203
- _export({ target: 'Array', proto: true, forced: FORCED }, {
1204
- concat: function concat(arg) { // eslint-disable-line no-unused-vars
1205
- var O = toObject(this);
1206
- var A = arraySpeciesCreate(O, 0);
1207
- var n = 0;
1208
- var i, k, length, len, E;
1209
- for (i = -1, length = arguments.length; i < length; i++) {
1210
- E = i === -1 ? O : arguments[i];
1211
- if (isConcatSpreadable(E)) {
1212
- len = toLength(E.length);
1213
- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1214
- for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1215
- } else {
1216
- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1217
- createProperty(A, n++, E);
1218
- }
1219
- }
1220
- A.length = n;
1221
- return A;
1222
- }
1223
- });
1224
-
1225
- var $filter = arrayIteration.filter;
850
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
851
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
852
+ activeXDocument.write(scriptTag(''));
853
+ activeXDocument.close();
854
+ var temp = activeXDocument.parentWindow.Object;
855
+ activeXDocument = null; // avoid memory leak
856
+ return temp;
857
+ };
1226
858
 
859
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
860
+ var NullProtoObjectViaIFrame = function () {
861
+ // Thrash, waste and sodomy: IE GC bug
862
+ var iframe = documentCreateElement('iframe');
863
+ var JS = 'java' + SCRIPT + ':';
864
+ var iframeDocument;
865
+ iframe.style.display = 'none';
866
+ html.appendChild(iframe);
867
+ // https://github.com/zloirock/core-js/issues/475
868
+ iframe.src = String(JS);
869
+ iframeDocument = iframe.contentWindow.document;
870
+ iframeDocument.open();
871
+ iframeDocument.write(scriptTag('document.F=Object'));
872
+ iframeDocument.close();
873
+ return iframeDocument.F;
874
+ };
1227
875
 
876
+ // Check for document.domain and active x support
877
+ // No need to use active x approach when document.domain is not set
878
+ // see https://github.com/es-shims/es5-shim/issues/150
879
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
880
+ // avoid IE GC bug
881
+ var activeXDocument;
882
+ var NullProtoObject = function () {
883
+ try {
884
+ /* global ActiveXObject */
885
+ activeXDocument = document.domain && new ActiveXObject('htmlfile');
886
+ } catch (error) { /* ignore */ }
887
+ NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
888
+ var length = enumBugKeys.length;
889
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
890
+ return NullProtoObject();
891
+ };
1228
892
 
1229
- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
1230
- // Edge 14- issue
1231
- var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {
1232
- [].filter.call({ length: -1, 0: 1 }, function (it) { throw it; });
1233
- });
893
+ hiddenKeys[IE_PROTO] = true;
1234
894
 
1235
- // `Array.prototype.filter` method
1236
- // https://tc39.github.io/ecma262/#sec-array.prototype.filter
1237
- // with adding support of @@species
1238
- _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
1239
- filter: function filter(callbackfn /* , thisArg */) {
1240
- return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1241
- }
1242
- });
895
+ // `Object.create` method
896
+ // https://tc39.github.io/ecma262/#sec-object.create
897
+ var objectCreate = Object.create || function create(O, Properties) {
898
+ var result;
899
+ if (O !== null) {
900
+ EmptyConstructor[PROTOTYPE] = anObject(O);
901
+ result = new EmptyConstructor();
902
+ EmptyConstructor[PROTOTYPE] = null;
903
+ // add "__proto__" for Object.getPrototypeOf polyfill
904
+ result[IE_PROTO] = O;
905
+ } else result = NullProtoObject();
906
+ return Properties === undefined ? result : objectDefineProperties(result, Properties);
907
+ };
1243
908
 
1244
909
  var UNSCOPABLES = wellKnownSymbol('unscopables');
1245
910
  var ArrayPrototype = Array.prototype;
@@ -1261,15 +926,18 @@
1261
926
  var $find = arrayIteration.find;
1262
927
 
1263
928
 
929
+
1264
930
  var FIND = 'find';
1265
931
  var SKIPS_HOLES = true;
1266
932
 
933
+ var USES_TO_LENGTH$1 = arrayMethodUsesToLength(FIND);
934
+
1267
935
  // Shouldn't skip holes
1268
936
  if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
1269
937
 
1270
938
  // `Array.prototype.find` method
1271
939
  // https://tc39.github.io/ecma262/#sec-array.prototype.find
1272
- _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
940
+ _export({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH$1 }, {
1273
941
  find: function find(callbackfn /* , that = undefined */) {
1274
942
  return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1275
943
  }
@@ -1281,15 +949,18 @@
1281
949
  var $findIndex = arrayIteration.findIndex;
1282
950
 
1283
951
 
952
+
1284
953
  var FIND_INDEX = 'findIndex';
1285
954
  var SKIPS_HOLES$1 = true;
1286
955
 
956
+ var USES_TO_LENGTH$2 = arrayMethodUsesToLength(FIND_INDEX);
957
+
1287
958
  // Shouldn't skip holes
1288
959
  if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES$1 = false; });
1289
960
 
1290
961
  // `Array.prototype.findIndex` method
1291
962
  // https://tc39.github.io/ecma262/#sec-array.prototype.findindex
1292
- _export({ target: 'Array', proto: true, forced: SKIPS_HOLES$1 }, {
963
+ _export({ target: 'Array', proto: true, forced: SKIPS_HOLES$1 || !USES_TO_LENGTH$2 }, {
1293
964
  findIndex: function findIndex(callbackfn /* , that = undefined */) {
1294
965
  return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1295
966
  }
@@ -1298,12 +969,42 @@
1298
969
  // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1299
970
  addToUnscopables(FIND_INDEX);
1300
971
 
972
+ var arrayMethodIsStrict = function (METHOD_NAME, argument) {
973
+ var method = [][METHOD_NAME];
974
+ return !!method && fails(function () {
975
+ // eslint-disable-next-line no-useless-call,no-throw-literal
976
+ method.call(null, argument || function () { throw 1; }, 1);
977
+ });
978
+ };
979
+
980
+ var $forEach = arrayIteration.forEach;
981
+
982
+
983
+
984
+ var STRICT_METHOD = arrayMethodIsStrict('forEach');
985
+ var USES_TO_LENGTH$3 = arrayMethodUsesToLength('forEach');
986
+
987
+ // `Array.prototype.forEach` method implementation
988
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
989
+ var arrayForEach = (!STRICT_METHOD || !USES_TO_LENGTH$3) ? function forEach(callbackfn /* , thisArg */) {
990
+ return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
991
+ } : [].forEach;
992
+
993
+ // `Array.prototype.forEach` method
994
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
995
+ _export({ target: 'Array', proto: true, forced: [].forEach != arrayForEach }, {
996
+ forEach: arrayForEach
997
+ });
998
+
1301
999
  var $includes = arrayIncludes.includes;
1302
1000
 
1303
1001
 
1002
+
1003
+ var USES_TO_LENGTH$4 = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
1004
+
1304
1005
  // `Array.prototype.includes` method
1305
1006
  // https://tc39.github.io/ecma262/#sec-array.prototype.includes
1306
- _export({ target: 'Array', proto: true }, {
1007
+ _export({ target: 'Array', proto: true, forced: !USES_TO_LENGTH$4 }, {
1307
1008
  includes: function includes(el /* , fromIndex = 0 */) {
1308
1009
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1309
1010
  }
@@ -1312,25 +1013,19 @@
1312
1013
  // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1313
1014
  addToUnscopables('includes');
1314
1015
 
1315
- var sloppyArrayMethod = function (METHOD_NAME, argument) {
1316
- var method = [][METHOD_NAME];
1317
- return !method || !fails(function () {
1318
- // eslint-disable-next-line no-useless-call,no-throw-literal
1319
- method.call(null, argument || function () { throw 1; }, 1);
1320
- });
1321
- };
1322
-
1323
1016
  var $indexOf = arrayIncludes.indexOf;
1324
1017
 
1325
1018
 
1019
+
1326
1020
  var nativeIndexOf = [].indexOf;
1327
1021
 
1328
1022
  var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
1329
- var SLOPPY_METHOD = sloppyArrayMethod('indexOf');
1023
+ var STRICT_METHOD$1 = arrayMethodIsStrict('indexOf');
1024
+ var USES_TO_LENGTH$5 = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
1330
1025
 
1331
1026
  // `Array.prototype.indexOf` method
1332
1027
  // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
1333
- _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || SLOPPY_METHOD }, {
1028
+ _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD$1 || !USES_TO_LENGTH$5 }, {
1334
1029
  indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
1335
1030
  return NEGATIVE_ZERO
1336
1031
  // convert -0 to +0
@@ -1346,7 +1041,7 @@
1346
1041
  });
1347
1042
 
1348
1043
  var IE_PROTO$1 = sharedKey('IE_PROTO');
1349
- var ObjectPrototype$1 = Object.prototype;
1044
+ var ObjectPrototype = Object.prototype;
1350
1045
 
1351
1046
  // `Object.getPrototypeOf` method
1352
1047
  // https://tc39.github.io/ecma262/#sec-object.getprototypeof
@@ -1355,7 +1050,7 @@
1355
1050
  if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];
1356
1051
  if (typeof O.constructor == 'function' && O instanceof O.constructor) {
1357
1052
  return O.constructor.prototype;
1358
- } return O instanceof Object ? ObjectPrototype$1 : null;
1053
+ } return O instanceof Object ? ObjectPrototype : null;
1359
1054
  };
1360
1055
 
1361
1056
  var ITERATOR = wellKnownSymbol('iterator');
@@ -1389,6 +1084,18 @@
1389
1084
  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
1390
1085
  };
1391
1086
 
1087
+ var defineProperty$1 = objectDefineProperty.f;
1088
+
1089
+
1090
+
1091
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1092
+
1093
+ var setToStringTag = function (it, TAG, STATIC) {
1094
+ if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
1095
+ defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });
1096
+ }
1097
+ };
1098
+
1392
1099
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1393
1100
 
1394
1101
  var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
@@ -1503,8 +1210,8 @@
1503
1210
  };
1504
1211
 
1505
1212
  var ARRAY_ITERATOR = 'Array Iterator';
1506
- var setInternalState$1 = internalState.set;
1507
- var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);
1213
+ var setInternalState = internalState.set;
1214
+ var getInternalState = internalState.getterFor(ARRAY_ITERATOR);
1508
1215
 
1509
1216
  // `Array.prototype.entries` method
1510
1217
  // https://tc39.github.io/ecma262/#sec-array.prototype.entries
@@ -1517,7 +1224,7 @@
1517
1224
  // `CreateArrayIterator` internal method
1518
1225
  // https://tc39.github.io/ecma262/#sec-createarrayiterator
1519
1226
  var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1520
- setInternalState$1(this, {
1227
+ setInternalState(this, {
1521
1228
  type: ARRAY_ITERATOR,
1522
1229
  target: toIndexedObject(iterated), // target
1523
1230
  index: 0, // next index
@@ -1526,7 +1233,7 @@
1526
1233
  // `%ArrayIteratorPrototype%.next` method
1527
1234
  // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
1528
1235
  }, function () {
1529
- var state = getInternalState$1(this);
1236
+ var state = getInternalState(this);
1530
1237
  var target = state.target;
1531
1238
  var kind = state.kind;
1532
1239
  var index = state.index++;
@@ -1547,11 +1254,11 @@
1547
1254
  var nativeJoin = [].join;
1548
1255
 
1549
1256
  var ES3_STRINGS = indexedObject != Object;
1550
- var SLOPPY_METHOD$1 = sloppyArrayMethod('join', ',');
1257
+ var STRICT_METHOD$2 = arrayMethodIsStrict('join', ',');
1551
1258
 
1552
1259
  // `Array.prototype.join` method
1553
1260
  // https://tc39.github.io/ecma262/#sec-array.prototype.join
1554
- _export({ target: 'Array', proto: true, forced: ES3_STRINGS || SLOPPY_METHOD$1 }, {
1261
+ _export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$2 }, {
1555
1262
  join: function join(separator) {
1556
1263
  return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
1557
1264
  }
@@ -1563,14 +1270,12 @@
1563
1270
 
1564
1271
  var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport('map');
1565
1272
  // FF49- issue
1566
- var USES_TO_LENGTH$1 = HAS_SPECIES_SUPPORT$1 && !fails(function () {
1567
- [].map.call({ length: -1, 0: 1 }, function (it) { throw it; });
1568
- });
1273
+ var USES_TO_LENGTH$6 = arrayMethodUsesToLength('map');
1569
1274
 
1570
1275
  // `Array.prototype.map` method
1571
1276
  // https://tc39.github.io/ecma262/#sec-array.prototype.map
1572
1277
  // with adding support of @@species
1573
- _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 || !USES_TO_LENGTH$1 }, {
1278
+ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 || !USES_TO_LENGTH$6 }, {
1574
1279
  map: function map(callbackfn /* , thisArg */) {
1575
1280
  return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1576
1281
  }
@@ -1591,6 +1296,9 @@
1591
1296
  }
1592
1297
  });
1593
1298
 
1299
+ var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport('slice');
1300
+ var USES_TO_LENGTH$7 = arrayMethodUsesToLength('slice', { ACCESSORS: true, 0: 0, 1: 2 });
1301
+
1594
1302
  var SPECIES$2 = wellKnownSymbol('species');
1595
1303
  var nativeSlice = [].slice;
1596
1304
  var max$1 = Math.max;
@@ -1598,7 +1306,7 @@
1598
1306
  // `Array.prototype.slice` method
1599
1307
  // https://tc39.github.io/ecma262/#sec-array.prototype.slice
1600
1308
  // fallback for not array-like ES3 strings and DOM objects
1601
- _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('slice') }, {
1309
+ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 || !USES_TO_LENGTH$7 }, {
1602
1310
  slice: function slice(start, end) {
1603
1311
  var O = toIndexedObject(this);
1604
1312
  var length = toLength(O.length);
@@ -1638,9 +1346,9 @@
1638
1346
  test$1.sort(null);
1639
1347
  });
1640
1348
  // Old WebKit
1641
- var SLOPPY_METHOD$2 = sloppyArrayMethod('sort');
1349
+ var STRICT_METHOD$3 = arrayMethodIsStrict('sort');
1642
1350
 
1643
- var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || SLOPPY_METHOD$2;
1351
+ var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$3;
1644
1352
 
1645
1353
  // `Array.prototype.sort` method
1646
1354
  // https://tc39.github.io/ecma262/#sec-array.prototype.sort
@@ -1652,6 +1360,9 @@
1652
1360
  }
1653
1361
  });
1654
1362
 
1363
+ var HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport('splice');
1364
+ var USES_TO_LENGTH$8 = arrayMethodUsesToLength('splice', { ACCESSORS: true, 0: 0, 1: 2 });
1365
+
1655
1366
  var max$2 = Math.max;
1656
1367
  var min$2 = Math.min;
1657
1368
  var MAX_SAFE_INTEGER$1 = 0x1FFFFFFFFFFFFF;
@@ -1660,7 +1371,7 @@
1660
1371
  // `Array.prototype.splice` method
1661
1372
  // https://tc39.github.io/ecma262/#sec-array.prototype.splice
1662
1373
  // with adding support of @@species
1663
- _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('splice') }, {
1374
+ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 || !USES_TO_LENGTH$8 }, {
1664
1375
  splice: function splice(start, deleteCount /* , ...items */) {
1665
1376
  var O = toObject(this);
1666
1377
  var len = toLength(O.length);
@@ -1756,7 +1467,7 @@
1756
1467
 
1757
1468
  var getOwnPropertyNames = objectGetOwnPropertyNames.f;
1758
1469
  var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
1759
- var defineProperty$3 = objectDefineProperty.f;
1470
+ var defineProperty$2 = objectDefineProperty.f;
1760
1471
  var trim = stringTrim.trim;
1761
1472
 
1762
1473
  var NUMBER = 'Number';
@@ -1811,10 +1522,12 @@
1811
1522
  'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
1812
1523
  // ES2015 (in case, if modules with ES2015 Number statics required before):
1813
1524
  'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
1814
- 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
1525
+ 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,' +
1526
+ // ESNext
1527
+ 'fromString,range'
1815
1528
  ).split(','), j = 0, key; keys$1.length > j; j++) {
1816
1529
  if (has(NativeNumber, key = keys$1[j]) && !has(NumberWrapper, key)) {
1817
- defineProperty$3(NumberWrapper, key, getOwnPropertyDescriptor$2(NativeNumber, key));
1530
+ defineProperty$2(NumberWrapper, key, getOwnPropertyDescriptor$2(NativeNumber, key));
1818
1531
  }
1819
1532
  }
1820
1533
  NumberWrapper.prototype = NumberPrototype;
@@ -1823,16 +1536,16 @@
1823
1536
  }
1824
1537
 
1825
1538
  var nativeAssign = Object.assign;
1826
- var defineProperty$4 = Object.defineProperty;
1539
+ var defineProperty$3 = Object.defineProperty;
1827
1540
 
1828
1541
  // `Object.assign` method
1829
1542
  // https://tc39.github.io/ecma262/#sec-object.assign
1830
1543
  var objectAssign = !nativeAssign || fails(function () {
1831
1544
  // should have correct order of operations (Edge bug)
1832
- if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty$4({}, 'a', {
1545
+ if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty$3({}, 'a', {
1833
1546
  enumerable: true,
1834
1547
  get: function () {
1835
- defineProperty$4(this, 'b', {
1548
+ defineProperty$3(this, 'b', {
1836
1549
  value: 3,
1837
1550
  enumerable: false
1838
1551
  });
@@ -1957,41 +1670,41 @@
1957
1670
  var trim$1 = stringTrim.trim;
1958
1671
 
1959
1672
 
1960
- var nativeParseFloat = global_1.parseFloat;
1961
- var FORCED$2 = 1 / nativeParseFloat(whitespaces + '-0') !== -Infinity;
1673
+ var $parseFloat = global_1.parseFloat;
1674
+ var FORCED$2 = 1 / $parseFloat(whitespaces + '-0') !== -Infinity;
1962
1675
 
1963
1676
  // `parseFloat` method
1964
1677
  // https://tc39.github.io/ecma262/#sec-parsefloat-string
1965
- var _parseFloat = FORCED$2 ? function parseFloat(string) {
1678
+ var numberParseFloat = FORCED$2 ? function parseFloat(string) {
1966
1679
  var trimmedString = trim$1(String(string));
1967
- var result = nativeParseFloat(trimmedString);
1680
+ var result = $parseFloat(trimmedString);
1968
1681
  return result === 0 && trimmedString.charAt(0) == '-' ? -0 : result;
1969
- } : nativeParseFloat;
1682
+ } : $parseFloat;
1970
1683
 
1971
1684
  // `parseFloat` method
1972
1685
  // https://tc39.github.io/ecma262/#sec-parsefloat-string
1973
- _export({ global: true, forced: parseFloat != _parseFloat }, {
1974
- parseFloat: _parseFloat
1686
+ _export({ global: true, forced: parseFloat != numberParseFloat }, {
1687
+ parseFloat: numberParseFloat
1975
1688
  });
1976
1689
 
1977
1690
  var trim$2 = stringTrim.trim;
1978
1691
 
1979
1692
 
1980
- var nativeParseInt = global_1.parseInt;
1693
+ var $parseInt = global_1.parseInt;
1981
1694
  var hex = /^[+-]?0[Xx]/;
1982
- var FORCED$3 = nativeParseInt(whitespaces + '08') !== 8 || nativeParseInt(whitespaces + '0x16') !== 22;
1695
+ var FORCED$3 = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22;
1983
1696
 
1984
1697
  // `parseInt` method
1985
1698
  // https://tc39.github.io/ecma262/#sec-parseint-string-radix
1986
- var _parseInt = FORCED$3 ? function parseInt(string, radix) {
1699
+ var numberParseInt = FORCED$3 ? function parseInt(string, radix) {
1987
1700
  var S = trim$2(String(string));
1988
- return nativeParseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));
1989
- } : nativeParseInt;
1701
+ return $parseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));
1702
+ } : $parseInt;
1990
1703
 
1991
1704
  // `parseInt` method
1992
1705
  // https://tc39.github.io/ecma262/#sec-parseint-string-radix
1993
- _export({ global: true, forced: parseInt != _parseInt }, {
1994
- parseInt: _parseInt
1706
+ _export({ global: true, forced: parseInt != numberParseInt }, {
1707
+ parseInt: numberParseInt
1995
1708
  });
1996
1709
 
1997
1710
  var MATCH = wellKnownSymbol('match');
@@ -2056,14 +1769,14 @@
2056
1769
  }
2057
1770
  };
2058
1771
 
2059
- var defineProperty$5 = objectDefineProperty.f;
1772
+ var defineProperty$4 = objectDefineProperty.f;
2060
1773
  var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
2061
1774
 
2062
1775
 
2063
1776
 
2064
1777
 
2065
1778
 
2066
- var setInternalState$2 = internalState.set;
1779
+ var setInternalState$1 = internalState.set;
2067
1780
 
2068
1781
 
2069
1782
 
@@ -2115,12 +1828,12 @@
2115
1828
  RegExpWrapper
2116
1829
  );
2117
1830
 
2118
- if (UNSUPPORTED_Y$1 && sticky) setInternalState$2(result, { sticky: sticky });
1831
+ if (UNSUPPORTED_Y$1 && sticky) setInternalState$1(result, { sticky: sticky });
2119
1832
 
2120
1833
  return result;
2121
1834
  };
2122
1835
  var proxy = function (key) {
2123
- key in RegExpWrapper || defineProperty$5(RegExpWrapper, key, {
1836
+ key in RegExpWrapper || defineProperty$4(RegExpWrapper, key, {
2124
1837
  configurable: true,
2125
1838
  get: function () { return NativeRegExp[key]; },
2126
1839
  set: function (it) { NativeRegExp[key] = it; }
@@ -2257,11 +1970,11 @@
2257
1970
  var regexp = /./;
2258
1971
  try {
2259
1972
  '/./'[METHOD_NAME](regexp);
2260
- } catch (e) {
1973
+ } catch (error1) {
2261
1974
  try {
2262
1975
  regexp[MATCH$2] = false;
2263
1976
  return '/./'[METHOD_NAME](regexp);
2264
- } catch (f) { /* empty */ }
1977
+ } catch (error2) { /* empty */ }
2265
1978
  } return false;
2266
1979
  };
2267
1980
 
@@ -2274,59 +1987,13 @@
2274
1987
  }
2275
1988
  });
2276
1989
 
2277
- // `String.prototype.{ codePointAt, at }` methods implementation
2278
- var createMethod$4 = function (CONVERT_TO_STRING) {
2279
- return function ($this, pos) {
2280
- var S = String(requireObjectCoercible($this));
2281
- var position = toInteger(pos);
2282
- var size = S.length;
2283
- var first, second;
2284
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2285
- first = S.charCodeAt(position);
2286
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
2287
- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
2288
- ? CONVERT_TO_STRING ? S.charAt(position) : first
2289
- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2290
- };
2291
- };
1990
+ // TODO: Remove from `core-js@4` since it's moved to entry points
2292
1991
 
2293
- var stringMultibyte = {
2294
- // `String.prototype.codePointAt` method
2295
- // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
2296
- codeAt: createMethod$4(false),
2297
- // `String.prototype.at` method
2298
- // https://github.com/mathiasbynens/String.prototype.at
2299
- charAt: createMethod$4(true)
2300
- };
2301
1992
 
2302
- var charAt = stringMultibyte.charAt;
2303
1993
 
2304
1994
 
2305
1995
 
2306
- var STRING_ITERATOR = 'String Iterator';
2307
- var setInternalState$3 = internalState.set;
2308
- var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
2309
1996
 
2310
- // `String.prototype[@@iterator]` method
2311
- // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
2312
- defineIterator(String, 'String', function (iterated) {
2313
- setInternalState$3(this, {
2314
- type: STRING_ITERATOR,
2315
- string: String(iterated),
2316
- index: 0
2317
- });
2318
- // `%StringIteratorPrototype%.next` method
2319
- // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
2320
- }, function next() {
2321
- var state = getInternalState$2(this);
2322
- var string = state.string;
2323
- var index = state.index;
2324
- var point;
2325
- if (index >= string.length) return { value: undefined, done: true };
2326
- point = charAt(string, index);
2327
- state.index += point.length;
2328
- return { value: point, done: false };
2329
- });
2330
1997
 
2331
1998
  var SPECIES$4 = wellKnownSymbol('species');
2332
1999
 
@@ -2349,6 +2016,15 @@
2349
2016
  return 'a'.replace(/./, '$0') === '$0';
2350
2017
  })();
2351
2018
 
2019
+ var REPLACE = wellKnownSymbol('replace');
2020
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
2021
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2022
+ if (/./[REPLACE]) {
2023
+ return /./[REPLACE]('a', '$0') === '';
2024
+ }
2025
+ return false;
2026
+ })();
2027
+
2352
2028
  // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
2353
2029
  // Weex JS has frozen built-in prototypes, so use try / catch wrapper
2354
2030
  var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
@@ -2396,7 +2072,11 @@
2396
2072
  if (
2397
2073
  !DELEGATES_TO_SYMBOL ||
2398
2074
  !DELEGATES_TO_EXEC ||
2399
- (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||
2075
+ (KEY === 'replace' && !(
2076
+ REPLACE_SUPPORTS_NAMED_GROUPS &&
2077
+ REPLACE_KEEPS_$0 &&
2078
+ !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
2079
+ )) ||
2400
2080
  (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
2401
2081
  ) {
2402
2082
  var nativeRegExpMethod = /./[SYMBOL];
@@ -2411,7 +2091,10 @@
2411
2091
  return { done: true, value: nativeMethod.call(str, regexp, arg2) };
2412
2092
  }
2413
2093
  return { done: false };
2414
- }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });
2094
+ }, {
2095
+ REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
2096
+ REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
2097
+ });
2415
2098
  var stringMethod = methods[0];
2416
2099
  var regexMethod = methods[1];
2417
2100
 
@@ -2429,12 +2112,37 @@
2429
2112
  if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
2430
2113
  };
2431
2114
 
2432
- var charAt$1 = stringMultibyte.charAt;
2115
+ // `String.prototype.{ codePointAt, at }` methods implementation
2116
+ var createMethod$4 = function (CONVERT_TO_STRING) {
2117
+ return function ($this, pos) {
2118
+ var S = String(requireObjectCoercible($this));
2119
+ var position = toInteger(pos);
2120
+ var size = S.length;
2121
+ var first, second;
2122
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2123
+ first = S.charCodeAt(position);
2124
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
2125
+ || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
2126
+ ? CONVERT_TO_STRING ? S.charAt(position) : first
2127
+ : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2128
+ };
2129
+ };
2130
+
2131
+ var stringMultibyte = {
2132
+ // `String.prototype.codePointAt` method
2133
+ // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
2134
+ codeAt: createMethod$4(false),
2135
+ // `String.prototype.at` method
2136
+ // https://github.com/mathiasbynens/String.prototype.at
2137
+ charAt: createMethod$4(true)
2138
+ };
2139
+
2140
+ var charAt = stringMultibyte.charAt;
2433
2141
 
2434
2142
  // `AdvanceStringIndex` abstract operation
2435
2143
  // https://tc39.github.io/ecma262/#sec-advancestringindex
2436
2144
  var advanceStringIndex = function (S, index, unicode) {
2437
- return index + (unicode ? charAt$1(S, index).length : 1);
2145
+ return index + (unicode ? charAt(S, index).length : 1);
2438
2146
  };
2439
2147
 
2440
2148
  // `RegExpExec` abstract operation
@@ -2468,6 +2176,10 @@
2468
2176
 
2469
2177
  // @@replace logic
2470
2178
  fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
2179
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
2180
+ var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
2181
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
2182
+
2471
2183
  return [
2472
2184
  // `String.prototype.replace` method
2473
2185
  // https://tc39.github.io/ecma262/#sec-string.prototype.replace
@@ -2481,7 +2193,10 @@
2481
2193
  // `RegExp.prototype[@@replace]` method
2482
2194
  // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
2483
2195
  function (regexp, replaceValue) {
2484
- if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) {
2196
+ if (
2197
+ (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
2198
+ (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
2199
+ ) {
2485
2200
  var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
2486
2201
  if (res.done) return res.value;
2487
2202
  }
@@ -2747,7 +2462,7 @@
2747
2462
 
2748
2463
  // check that a method works with the correct list
2749
2464
  // of whitespaces and has a correct name
2750
- var forcedStringTrimMethod = function (METHOD_NAME) {
2465
+ var stringTrimForced = function (METHOD_NAME) {
2751
2466
  return fails(function () {
2752
2467
  return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
2753
2468
  });
@@ -2758,7 +2473,7 @@
2758
2473
 
2759
2474
  // `String.prototype.trim` method
2760
2475
  // https://tc39.github.io/ecma262/#sec-string.prototype.trim
2761
- _export({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
2476
+ _export({ target: 'String', proto: true, forced: stringTrimForced('trim') }, {
2762
2477
  trim: function trim() {
2763
2478
  return $trim(this);
2764
2479
  }
@@ -2800,15 +2515,6 @@
2800
2515
  TouchList: 0
2801
2516
  };
2802
2517
 
2803
- var $forEach$1 = arrayIteration.forEach;
2804
-
2805
-
2806
- // `Array.prototype.forEach` method implementation
2807
- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
2808
- var arrayForEach = sloppyArrayMethod('forEach') ? function forEach(callbackfn /* , thisArg */) {
2809
- return $forEach$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2810
- } : [].forEach;
2811
-
2812
2518
  for (var COLLECTION_NAME in domIterables) {
2813
2519
  var Collection = global_1[COLLECTION_NAME];
2814
2520
  var CollectionPrototype = Collection && Collection.prototype;
@@ -2849,6 +2555,8 @@
2849
2555
  }
2850
2556
 
2851
2557
  function _typeof(obj) {
2558
+ "@babel/helpers - typeof";
2559
+
2852
2560
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
2853
2561
  _typeof = function (obj) {
2854
2562
  return typeof obj;
@@ -2885,19 +2593,15 @@
2885
2593
  }
2886
2594
 
2887
2595
  function _slicedToArray(arr, i) {
2888
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
2596
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
2889
2597
  }
2890
2598
 
2891
2599
  function _toConsumableArray(arr) {
2892
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
2600
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
2893
2601
  }
2894
2602
 
2895
2603
  function _arrayWithoutHoles(arr) {
2896
- if (Array.isArray(arr)) {
2897
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
2898
-
2899
- return arr2;
2900
- }
2604
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
2901
2605
  }
2902
2606
 
2903
2607
  function _arrayWithHoles(arr) {
@@ -2905,14 +2609,11 @@
2905
2609
  }
2906
2610
 
2907
2611
  function _iterableToArray(iter) {
2908
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
2612
+ if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
2909
2613
  }
2910
2614
 
2911
2615
  function _iterableToArrayLimit(arr, i) {
2912
- if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
2913
- return;
2914
- }
2915
-
2616
+ if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
2916
2617
  var _arr = [];
2917
2618
  var _n = true;
2918
2619
  var _d = false;
@@ -2938,21 +2639,95 @@
2938
2639
  return _arr;
2939
2640
  }
2940
2641
 
2642
+ function _unsupportedIterableToArray(o, minLen) {
2643
+ if (!o) return;
2644
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
2645
+ var n = Object.prototype.toString.call(o).slice(8, -1);
2646
+ if (n === "Object" && o.constructor) n = o.constructor.name;
2647
+ if (n === "Map" || n === "Set") return Array.from(o);
2648
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
2649
+ }
2650
+
2651
+ function _arrayLikeToArray(arr, len) {
2652
+ if (len == null || len > arr.length) len = arr.length;
2653
+
2654
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
2655
+
2656
+ return arr2;
2657
+ }
2658
+
2941
2659
  function _nonIterableSpread() {
2942
- throw new TypeError("Invalid attempt to spread non-iterable instance");
2660
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2943
2661
  }
2944
2662
 
2945
2663
  function _nonIterableRest() {
2946
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
2664
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2665
+ }
2666
+
2667
+ function _createForOfIteratorHelper(o, allowArrayLike) {
2668
+ var it;
2669
+
2670
+ if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
2671
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
2672
+ if (it) o = it;
2673
+ var i = 0;
2674
+
2675
+ var F = function () {};
2676
+
2677
+ return {
2678
+ s: F,
2679
+ n: function () {
2680
+ if (i >= o.length) return {
2681
+ done: true
2682
+ };
2683
+ return {
2684
+ done: false,
2685
+ value: o[i++]
2686
+ };
2687
+ },
2688
+ e: function (e) {
2689
+ throw e;
2690
+ },
2691
+ f: F
2692
+ };
2693
+ }
2694
+
2695
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2696
+ }
2697
+
2698
+ var normalCompletion = true,
2699
+ didErr = false,
2700
+ err;
2701
+ return {
2702
+ s: function () {
2703
+ it = o[Symbol.iterator]();
2704
+ },
2705
+ n: function () {
2706
+ var step = it.next();
2707
+ normalCompletion = step.done;
2708
+ return step;
2709
+ },
2710
+ e: function (e) {
2711
+ didErr = true;
2712
+ err = e;
2713
+ },
2714
+ f: function () {
2715
+ try {
2716
+ if (!normalCompletion && it.return != null) it.return();
2717
+ } finally {
2718
+ if (didErr) throw err;
2719
+ }
2720
+ }
2721
+ };
2947
2722
  }
2948
2723
 
2949
2724
  /* eslint-disable no-unused-vars */
2950
2725
 
2951
- var VERSION = '1.18.1';
2726
+ var VERSION = '1.18.2';
2952
2727
  var bootstrapVersion = 4;
2953
2728
 
2954
2729
  try {
2955
- var rawVersion = $.fn.dropdown.Constructor.VERSION; // Only try to parse VERSION if it is defined.
2730
+ var rawVersion = $__default['default'].fn.dropdown.Constructor.VERSION; // Only try to parse VERSION if it is defined.
2956
2731
  // It is undefined in older versions of Bootstrap (tested with 3.1.1).
2957
2732
 
2958
2733
  if (rawVersion !== undefined) {
@@ -3095,6 +2870,7 @@
3095
2870
  buttonActive: 'active'
3096
2871
  },
3097
2872
  html: {
2873
+ dataToggle: 'data-bs-toggle',
3098
2874
  toolbarDropdown: ['<div class="dropdown-menu dropdown-menu-right">', '</div>'],
3099
2875
  toolbarDropdownItem: '<label class="dropdown-item dropdown-item-marker">%s</label>',
3100
2876
  pageDropdown: ['<div class="dropdown-menu">', '</div>'],
@@ -3574,7 +3350,7 @@
3574
3350
  var Utils = {
3575
3351
  getSearchInput: function getSearchInput(that) {
3576
3352
  if (typeof that.options.searchSelector === 'string') {
3577
- return $(that.options.searchSelector);
3353
+ return $__default['default'](that.options.searchSelector);
3578
3354
  }
3579
3355
 
3580
3356
  return that.$toolbar.find('.search input');
@@ -3612,12 +3388,11 @@
3612
3388
  return !isNaN(parseFloat(n)) && isFinite(n);
3613
3389
  },
3614
3390
  getFieldTitle: function getFieldTitle(list, value) {
3615
- var _iteratorNormalCompletion = true;
3616
- var _didIteratorError = false;
3617
- var _iteratorError = undefined;
3391
+ var _iterator = _createForOfIteratorHelper(list),
3392
+ _step;
3618
3393
 
3619
3394
  try {
3620
- for (var _iterator = list[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
3395
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
3621
3396
  var item = _step.value;
3622
3397
 
3623
3398
  if (item.field === value) {
@@ -3625,18 +3400,9 @@
3625
3400
  }
3626
3401
  }
3627
3402
  } catch (err) {
3628
- _didIteratorError = true;
3629
- _iteratorError = err;
3403
+ _iterator.e(err);
3630
3404
  } finally {
3631
- try {
3632
- if (!_iteratorNormalCompletion && _iterator.return != null) {
3633
- _iterator.return();
3634
- }
3635
- } finally {
3636
- if (_didIteratorError) {
3637
- throw _iteratorError;
3638
- }
3639
- }
3405
+ _iterator.f();
3640
3406
  }
3641
3407
 
3642
3408
  return '';
@@ -3644,28 +3410,19 @@
3644
3410
  setFieldIndex: function setFieldIndex(columns) {
3645
3411
  var totalCol = 0;
3646
3412
  var flag = [];
3647
- var _iteratorNormalCompletion2 = true;
3648
- var _didIteratorError2 = false;
3649
- var _iteratorError2 = undefined;
3413
+
3414
+ var _iterator2 = _createForOfIteratorHelper(columns[0]),
3415
+ _step2;
3650
3416
 
3651
3417
  try {
3652
- for (var _iterator2 = columns[0][Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
3418
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
3653
3419
  var column = _step2.value;
3654
3420
  totalCol += column.colspan || 1;
3655
3421
  }
3656
3422
  } catch (err) {
3657
- _didIteratorError2 = true;
3658
- _iteratorError2 = err;
3423
+ _iterator2.e(err);
3659
3424
  } finally {
3660
- try {
3661
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
3662
- _iterator2.return();
3663
- }
3664
- } finally {
3665
- if (_didIteratorError2) {
3666
- throw _iteratorError2;
3667
- }
3668
- }
3425
+ _iterator2.f();
3669
3426
  }
3670
3427
 
3671
3428
  for (var i = 0; i < columns.length; i++) {
@@ -3677,12 +3434,11 @@
3677
3434
  }
3678
3435
 
3679
3436
  for (var _i = 0; _i < columns.length; _i++) {
3680
- var _iteratorNormalCompletion3 = true;
3681
- var _didIteratorError3 = false;
3682
- var _iteratorError3 = undefined;
3437
+ var _iterator3 = _createForOfIteratorHelper(columns[_i]),
3438
+ _step3;
3683
3439
 
3684
3440
  try {
3685
- for (var _iterator3 = columns[_i][Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
3441
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
3686
3442
  var r = _step3.value;
3687
3443
  var rowspan = r.rowspan || 1;
3688
3444
  var colspan = r.colspan || 1;
@@ -3708,18 +3464,9 @@
3708
3464
  }
3709
3465
  }
3710
3466
  } catch (err) {
3711
- _didIteratorError3 = true;
3712
- _iteratorError3 = err;
3467
+ _iterator3.e(err);
3713
3468
  } finally {
3714
- try {
3715
- if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
3716
- _iterator3.return();
3717
- }
3718
- } finally {
3719
- if (_didIteratorError3) {
3720
- throw _iteratorError3;
3721
- }
3722
- }
3469
+ _iterator3.f();
3723
3470
  }
3724
3471
  }
3725
3472
  },
@@ -3735,19 +3482,18 @@
3735
3482
 
3736
3483
  var allColumns = (_ref = []).concat.apply(_ref, _toConsumableArray(columns));
3737
3484
 
3738
- var _iteratorNormalCompletion4 = true;
3739
- var _didIteratorError4 = false;
3740
- var _iteratorError4 = undefined;
3485
+ var _iterator4 = _createForOfIteratorHelper(columns),
3486
+ _step4;
3741
3487
 
3742
3488
  try {
3743
- for (var _iterator4 = columns[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
3489
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
3744
3490
  var c = _step4.value;
3745
- var _iteratorNormalCompletion5 = true;
3746
- var _didIteratorError5 = false;
3747
- var _iteratorError5 = undefined;
3491
+
3492
+ var _iterator5 = _createForOfIteratorHelper(c),
3493
+ _step5;
3748
3494
 
3749
3495
  try {
3750
- for (var _iterator5 = c[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
3496
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
3751
3497
  var r = _step5.value;
3752
3498
 
3753
3499
  if (r.colspanGroup > 1) {
@@ -3772,41 +3518,23 @@
3772
3518
  }
3773
3519
  }
3774
3520
  } catch (err) {
3775
- _didIteratorError5 = true;
3776
- _iteratorError5 = err;
3521
+ _iterator5.e(err);
3777
3522
  } finally {
3778
- try {
3779
- if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
3780
- _iterator5.return();
3781
- }
3782
- } finally {
3783
- if (_didIteratorError5) {
3784
- throw _iteratorError5;
3785
- }
3786
- }
3523
+ _iterator5.f();
3787
3524
  }
3788
3525
  }
3789
3526
  } catch (err) {
3790
- _didIteratorError4 = true;
3791
- _iteratorError4 = err;
3527
+ _iterator4.e(err);
3792
3528
  } finally {
3793
- try {
3794
- if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
3795
- _iterator4.return();
3796
- }
3797
- } finally {
3798
- if (_didIteratorError4) {
3799
- throw _iteratorError4;
3800
- }
3801
- }
3529
+ _iterator4.f();
3802
3530
  }
3803
3531
  },
3804
3532
  getScrollBarWidth: function getScrollBarWidth() {
3805
3533
  if (this.cachedWidth === undefined) {
3806
- var $inner = $('<div/>').addClass('fixed-table-scroll-inner');
3807
- var $outer = $('<div/>').addClass('fixed-table-scroll-outer');
3534
+ var $inner = $__default['default']('<div/>').addClass('fixed-table-scroll-inner');
3535
+ var $outer = $__default['default']('<div/>').addClass('fixed-table-scroll-outer');
3808
3536
  $outer.append($inner);
3809
- $('body').append($outer);
3537
+ $__default['default']('body').append($outer);
3810
3538
  var w1 = $inner[0].offsetWidth;
3811
3539
  $outer.css('overflow', 'scroll');
3812
3540
  var w2 = $inner[0].offsetWidth;
@@ -3830,28 +3558,19 @@
3830
3558
 
3831
3559
  if (names.length > 1) {
3832
3560
  func = window;
3833
- var _iteratorNormalCompletion6 = true;
3834
- var _didIteratorError6 = false;
3835
- var _iteratorError6 = undefined;
3561
+
3562
+ var _iterator6 = _createForOfIteratorHelper(names),
3563
+ _step6;
3836
3564
 
3837
3565
  try {
3838
- for (var _iterator6 = names[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
3566
+ for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
3839
3567
  var f = _step6.value;
3840
3568
  func = func[f];
3841
3569
  }
3842
3570
  } catch (err) {
3843
- _didIteratorError6 = true;
3844
- _iteratorError6 = err;
3571
+ _iterator6.e(err);
3845
3572
  } finally {
3846
- try {
3847
- if (!_iteratorNormalCompletion6 && _iterator6.return != null) {
3848
- _iterator6.return();
3849
- }
3850
- } finally {
3851
- if (_didIteratorError6) {
3852
- throw _iteratorError6;
3853
- }
3854
- }
3573
+ _iterator6.f();
3855
3574
  }
3856
3575
  } else {
3857
3576
  func = window[name];
@@ -3928,28 +3647,19 @@
3928
3647
  }
3929
3648
 
3930
3649
  var props = field.split('.');
3931
- var _iteratorNormalCompletion7 = true;
3932
- var _didIteratorError7 = false;
3933
- var _iteratorError7 = undefined;
3650
+
3651
+ var _iterator7 = _createForOfIteratorHelper(props),
3652
+ _step7;
3934
3653
 
3935
3654
  try {
3936
- for (var _iterator7 = props[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {
3655
+ for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
3937
3656
  var p = _step7.value;
3938
3657
  value = value && value[p];
3939
3658
  }
3940
3659
  } catch (err) {
3941
- _didIteratorError7 = true;
3942
- _iteratorError7 = err;
3660
+ _iterator7.e(err);
3943
3661
  } finally {
3944
- try {
3945
- if (!_iteratorNormalCompletion7 && _iterator7.return != null) {
3946
- _iterator7.return();
3947
- }
3948
- } finally {
3949
- if (_didIteratorError7) {
3950
- throw _iteratorError7;
3951
- }
3952
- }
3662
+ _iterator7.f();
3953
3663
  }
3954
3664
 
3955
3665
  return escape ? this.escapeHTML(value) : value;
@@ -3958,12 +3668,11 @@
3958
3668
  return navigator.userAgent.includes('MSIE ') || /Trident.*rv:11\./.test(navigator.userAgent);
3959
3669
  },
3960
3670
  findIndex: function findIndex(items, item) {
3961
- var _iteratorNormalCompletion8 = true;
3962
- var _didIteratorError8 = false;
3963
- var _iteratorError8 = undefined;
3671
+ var _iterator8 = _createForOfIteratorHelper(items),
3672
+ _step8;
3964
3673
 
3965
3674
  try {
3966
- for (var _iterator8 = items[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) {
3675
+ for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
3967
3676
  var it = _step8.value;
3968
3677
 
3969
3678
  if (JSON.stringify(it) === JSON.stringify(item)) {
@@ -3971,18 +3680,9 @@
3971
3680
  }
3972
3681
  }
3973
3682
  } catch (err) {
3974
- _didIteratorError8 = true;
3975
- _iteratorError8 = err;
3683
+ _iterator8.e(err);
3976
3684
  } finally {
3977
- try {
3978
- if (!_iteratorNormalCompletion8 && _iterator8.return != null) {
3979
- _iterator8.return();
3980
- }
3981
- } finally {
3982
- if (_didIteratorError8) {
3983
- throw _iteratorError8;
3984
- }
3985
- }
3685
+ _iterator8.f();
3986
3686
  }
3987
3687
 
3988
3688
  return -1;
@@ -3993,7 +3693,7 @@
3993
3693
  var data = [];
3994
3694
  var m = [];
3995
3695
  $els.each(function (y, el) {
3996
- var $el = $(el);
3696
+ var $el = $__default['default'](el);
3997
3697
  var row = {}; // save tr's id, class and data-* attributes
3998
3698
 
3999
3699
  row._id = $el.attr('id');
@@ -4001,13 +3701,13 @@
4001
3701
  row._data = _this.getRealDataAttr($el.data());
4002
3702
  row._style = $el.attr('style');
4003
3703
  $el.find('>td,>th').each(function (_x, el) {
4004
- var $el = $(el);
3704
+ var $el = $__default['default'](el);
4005
3705
  var cspan = +$el.attr('colspan') || 1;
4006
3706
  var rspan = +$el.attr('rowspan') || 1;
4007
3707
  var x = _x; // skip already occupied cells in current row
4008
3708
 
4009
- for (; m[y] && m[y][x]; x++) {} // ignore
4010
- // mark matrix elements occupied by current cell with true
3709
+ for (; m[y] && m[y][x]; x++) {// ignore
3710
+ } // mark matrix elements occupied by current cell with true
4011
3711
 
4012
3712
 
4013
3713
  for (var tx = x; tx < x + cspan; tx++) {
@@ -4094,12 +3794,11 @@
4094
3794
  return this.hasDetailViewIcon(options) && options.detailViewAlign !== 'right' ? 1 : 0;
4095
3795
  },
4096
3796
  checkAutoMergeCells: function checkAutoMergeCells(data) {
4097
- var _iteratorNormalCompletion9 = true;
4098
- var _didIteratorError9 = false;
4099
- var _iteratorError9 = undefined;
3797
+ var _iterator9 = _createForOfIteratorHelper(data),
3798
+ _step9;
4100
3799
 
4101
3800
  try {
4102
- for (var _iterator9 = data[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) {
3801
+ for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
4103
3802
  var row = _step9.value;
4104
3803
 
4105
3804
  for (var _i4 = 0, _Object$keys = Object.keys(row); _i4 < _Object$keys.length; _i4++) {
@@ -4111,18 +3810,9 @@
4111
3810
  }
4112
3811
  }
4113
3812
  } catch (err) {
4114
- _didIteratorError9 = true;
4115
- _iteratorError9 = err;
3813
+ _iterator9.e(err);
4116
3814
  } finally {
4117
- try {
4118
- if (!_iteratorNormalCompletion9 && _iterator9.return != null) {
4119
- _iterator9.return();
4120
- }
4121
- } finally {
4122
- if (_didIteratorError9) {
4123
- throw _iteratorError9;
4124
- }
4125
- }
3815
+ _iterator9.f();
4126
3816
  }
4127
3817
 
4128
3818
  return false;
@@ -4132,16 +3822,14 @@
4132
3822
  return arg;
4133
3823
  }
4134
3824
 
4135
- return $.extend(true, Array.isArray(arg) ? [] : {}, arg);
3825
+ return $__default['default'].extend(true, Array.isArray(arg) ? [] : {}, arg);
4136
3826
  }
4137
3827
  };
4138
3828
 
4139
3829
  var BLOCK_ROWS = 50;
4140
3830
  var CLUSTER_BLOCKS = 4;
4141
3831
 
4142
- var VirtualScroll =
4143
- /*#__PURE__*/
4144
- function () {
3832
+ var VirtualScroll = /*#__PURE__*/function () {
4145
3833
  function VirtualScroll(options) {
4146
3834
  var _this = this;
4147
3835
 
@@ -4288,14 +3976,12 @@
4288
3976
  return VirtualScroll;
4289
3977
  }();
4290
3978
 
4291
- var BootstrapTable =
4292
- /*#__PURE__*/
4293
- function () {
3979
+ var BootstrapTable = /*#__PURE__*/function () {
4294
3980
  function BootstrapTable(el, options) {
4295
3981
  _classCallCheck(this, BootstrapTable);
4296
3982
 
4297
3983
  this.options = options;
4298
- this.$el = $(el);
3984
+ this.$el = $__default['default'](el);
4299
3985
  this.$el_ = this.$el.clone();
4300
3986
  this.timeoutId_ = 0;
4301
3987
  this.timeoutFooter_ = 0;
@@ -4322,7 +4008,8 @@
4322
4008
  value: function initConstants() {
4323
4009
  var opts = this.options;
4324
4010
  this.constants = Constants.CONSTANTS;
4325
- this.constants.theme = $.fn.bootstrapTable.theme;
4011
+ this.constants.theme = $__default['default'].fn.bootstrapTable.theme;
4012
+ this.constants.dataToggle = this.constants.html.dataToggle || 'data-toggle';
4326
4013
  var buttonsPrefix = opts.buttonsPrefix ? "".concat(opts.buttonsPrefix, "-") : '';
4327
4014
  this.constants.buttonsClass = [opts.buttonsPrefix, buttonsPrefix + opts.buttonsClass, Utils.sprintf("".concat(buttonsPrefix, "%s"), opts.iconSize)].join(' ').trim();
4328
4015
  this.buttons = Utils.calculateObjectValue(this, opts.buttons, [], {});
@@ -4339,7 +4026,7 @@
4339
4026
  key: "initLocale",
4340
4027
  value: function initLocale() {
4341
4028
  if (this.options.locale) {
4342
- var locales = $.fn.bootstrapTable.locales;
4029
+ var locales = $__default['default'].fn.bootstrapTable.locales;
4343
4030
  var parts = this.options.locale.split(/-|_/);
4344
4031
  parts[0] = parts[0].toLowerCase();
4345
4032
 
@@ -4348,11 +4035,11 @@
4348
4035
  }
4349
4036
 
4350
4037
  if (locales[this.options.locale]) {
4351
- $.extend(this.options, locales[this.options.locale]);
4038
+ $__default['default'].extend(this.options, locales[this.options.locale]);
4352
4039
  } else if (locales[parts.join('-')]) {
4353
- $.extend(this.options, locales[parts.join('-')]);
4040
+ $__default['default'].extend(this.options, locales[parts.join('-')]);
4354
4041
  } else if (locales[parts[0]]) {
4355
- $.extend(this.options, locales[parts[0]]);
4042
+ $__default['default'].extend(this.options, locales[parts[0]]);
4356
4043
  }
4357
4044
  }
4358
4045
  }
@@ -4362,7 +4049,7 @@
4362
4049
  var topPagination = ['top', 'both'].includes(this.options.paginationVAlign) ? '<div class="fixed-table-pagination clearfix"></div>' : '';
4363
4050
  var bottomPagination = ['bottom', 'both'].includes(this.options.paginationVAlign) ? '<div class="fixed-table-pagination"></div>' : '';
4364
4051
  var loadingTemplate = Utils.calculateObjectValue(this.options, this.options.loadingTemplate, [this.options.formatLoadingMessage()]);
4365
- this.$container = $("\n <div class=\"bootstrap-table ".concat(this.constants.theme, "\">\n <div class=\"fixed-table-toolbar\"></div>\n ").concat(topPagination, "\n <div class=\"fixed-table-container\">\n <div class=\"fixed-table-header\"><table></table></div>\n <div class=\"fixed-table-body\">\n <div class=\"fixed-table-loading\">\n ").concat(loadingTemplate, "\n </div>\n </div>\n <div class=\"fixed-table-footer\"><table><thead><tr></tr></thead></table></div>\n </div>\n ").concat(bottomPagination, "\n </div>\n "));
4052
+ this.$container = $__default['default']("\n <div class=\"bootstrap-table ".concat(this.constants.theme, "\">\n <div class=\"fixed-table-toolbar\"></div>\n ").concat(topPagination, "\n <div class=\"fixed-table-container\">\n <div class=\"fixed-table-header\"><table></table></div>\n <div class=\"fixed-table-body\">\n <div class=\"fixed-table-loading\">\n ").concat(loadingTemplate, "\n </div>\n </div>\n <div class=\"fixed-table-footer\"><table><thead><tr></tr></thead></table></div>\n </div>\n ").concat(bottomPagination, "\n </div>\n "));
4366
4053
  this.$container.insertAfter(this.$el);
4367
4054
  this.$tableContainer = this.$container.find('.fixed-table-container');
4368
4055
  this.$tableHeader = this.$container.find('.fixed-table-header');
@@ -4371,7 +4058,7 @@
4371
4058
  this.$tableFooter = this.$el.find('tfoot'); // checking if custom table-toolbar exists or not
4372
4059
 
4373
4060
  if (this.options.buttonsToolbar) {
4374
- this.$toolbar = $('body').find(this.options.buttonsToolbar);
4061
+ this.$toolbar = $__default['default']('body').find(this.options.buttonsToolbar);
4375
4062
  } else {
4376
4063
  this.$toolbar = this.$container.find('.fixed-table-toolbar');
4377
4064
  }
@@ -4407,7 +4094,7 @@
4407
4094
  this.$header = this.$el.find('>thead');
4408
4095
 
4409
4096
  if (!this.$header.length) {
4410
- this.$header = $("<thead class=\"".concat(this.options.theadClasses, "\"></thead>")).appendTo(this.$el);
4097
+ this.$header = $__default['default']("<thead class=\"".concat(this.options.theadClasses, "\"></thead>")).appendTo(this.$el);
4411
4098
  } else if (this.options.theadClasses) {
4412
4099
  this.$header.addClass(this.options.theadClasses);
4413
4100
  }
@@ -4415,16 +4102,16 @@
4415
4102
  this._headerTrClasses = [];
4416
4103
  this._headerTrStyles = [];
4417
4104
  this.$header.find('tr').each(function (i, el) {
4418
- var $tr = $(el);
4105
+ var $tr = $__default['default'](el);
4419
4106
  var column = [];
4420
4107
  $tr.find('th').each(function (i, el) {
4421
- var $th = $(el); // #2014: getFieldIndex and elsewhere assume this is string, causes issues if not
4108
+ var $th = $__default['default'](el); // #2014: getFieldIndex and elsewhere assume this is string, causes issues if not
4422
4109
 
4423
4110
  if (typeof $th.data('field') !== 'undefined') {
4424
4111
  $th.data('field', "".concat($th.data('field')));
4425
4112
  }
4426
4113
 
4427
- column.push($.extend({}, {
4114
+ column.push($__default['default'].extend({}, {
4428
4115
  title: $th.html(),
4429
4116
  class: $th.attr('class'),
4430
4117
  titleTooltip: $th.attr('title'),
@@ -4447,13 +4134,13 @@
4447
4134
  this.options.columns = [this.options.columns];
4448
4135
  }
4449
4136
 
4450
- this.options.columns = $.extend(true, [], columns, this.options.columns);
4137
+ this.options.columns = $__default['default'].extend(true, [], columns, this.options.columns);
4451
4138
  this.columns = [];
4452
4139
  this.fieldsColumnsIndex = [];
4453
4140
  Utils.setFieldIndex(this.options.columns);
4454
4141
  this.options.columns.forEach(function (columns, i) {
4455
4142
  columns.forEach(function (_column, j) {
4456
- var column = $.extend({}, BootstrapTable.COLUMN_DEFAULTS, _column);
4143
+ var column = $__default['default'].extend({}, BootstrapTable.COLUMN_DEFAULTS, _column);
4457
4144
 
4458
4145
  if (typeof column.fieldIndex !== 'undefined') {
4459
4146
  _this.columns[column.fieldIndex] = column;
@@ -4493,7 +4180,7 @@
4493
4180
  var _this2 = this;
4494
4181
 
4495
4182
  var visibleColumns = {};
4496
- var html = [];
4183
+ var headerHtml = [];
4497
4184
  this.header = {
4498
4185
  fields: [],
4499
4186
  styles: [],
@@ -4508,11 +4195,13 @@
4508
4195
  };
4509
4196
  Utils.updateFieldGroup(this.options.columns);
4510
4197
  this.options.columns.forEach(function (columns, i) {
4198
+ var html = [];
4511
4199
  html.push("<tr".concat(Utils.sprintf(' class="%s"', _this2._headerTrClasses[i]), " ").concat(Utils.sprintf(' style="%s"', _this2._headerTrStyles[i]), ">"));
4512
4200
  var detailViewTemplate = '';
4513
4201
 
4514
4202
  if (i === 0 && Utils.hasDetailViewIcon(_this2.options)) {
4515
- detailViewTemplate = "<th class=\"detail\" rowspan=\"".concat(_this2.options.columns.length, "\">\n <div class=\"fht-cell\"></div>\n </th>");
4203
+ var rowspan = _this2.options.columns.length > 1 ? " rowspan=\"".concat(_this2.options.columns.length, "\"") : '';
4204
+ detailViewTemplate = "<th class=\"detail\"".concat(rowspan, ">\n <div class=\"fht-cell\"></div>\n </th>");
4516
4205
  }
4517
4206
 
4518
4207
  if (detailViewTemplate && _this2.options.detailViewAlign !== 'right') {
@@ -4610,13 +4299,17 @@
4610
4299
  }
4611
4300
 
4612
4301
  html.push('</tr>');
4302
+
4303
+ if (html.length > 3) {
4304
+ headerHtml.push(html.join(''));
4305
+ }
4613
4306
  });
4614
- this.$header.html(html.join(''));
4307
+ this.$header.html(headerHtml.join(''));
4615
4308
  this.$header.find('th[data-field]').each(function (i, el) {
4616
- $(el).data(visibleColumns[$(el).data('field')]);
4309
+ $__default['default'](el).data(visibleColumns[$__default['default'](el).data('field')]);
4617
4310
  });
4618
4311
  this.$container.off('click', '.th-inner').on('click', '.th-inner', function (e) {
4619
- var $this = $(e.currentTarget);
4312
+ var $this = $__default['default'](e.currentTarget);
4620
4313
 
4621
4314
  if (_this2.options.detailView && !$this.parent().hasClass('bs-checkbox')) {
4622
4315
  if ($this.closest('.bootstrap-table')[0] !== _this2.$container[0]) {
@@ -4629,7 +4322,7 @@
4629
4322
  }
4630
4323
  });
4631
4324
  this.$header.children().children().off('keypress').on('keypress', function (e) {
4632
- if (_this2.options.sortable && $(e.currentTarget).data().sortable) {
4325
+ if (_this2.options.sortable && $__default['default'](e.currentTarget).data().sortable) {
4633
4326
  var code = e.keyCode || e.which;
4634
4327
 
4635
4328
  if (code === 13) {
@@ -4639,7 +4332,7 @@
4639
4332
  }
4640
4333
  });
4641
4334
  var resizeEvent = Utils.getEventName('resize.bootstrap-table', this.$el.attr('id'));
4642
- $(window).off(resizeEvent);
4335
+ $__default['default'](window).off(resizeEvent);
4643
4336
 
4644
4337
  if (!this.options.showHeader || this.options.cardView) {
4645
4338
  this.$header.hide();
@@ -4651,7 +4344,7 @@
4651
4344
  this.$tableLoading.css('top', this.$header.outerHeight() + 1); // Assign the correct sortable arrow
4652
4345
 
4653
4346
  this.getCaret();
4654
- $(window).on(resizeEvent, function () {
4347
+ $__default['default'](window).on(resizeEvent, function () {
4655
4348
  return _this2.resetView();
4656
4349
  });
4657
4350
  }
@@ -4659,7 +4352,7 @@
4659
4352
  this.$selectAll = this.$header.find('[name="btSelectAll"]');
4660
4353
  this.$selectAll.off('click').on('click', function (e) {
4661
4354
  e.stopPropagation();
4662
- var checked = $(e.currentTarget).prop('checked');
4355
+ var checked = $__default['default'](e.currentTarget).prop('checked');
4663
4356
 
4664
4357
  _this2[checked ? 'checkAll' : 'uncheckAll']();
4665
4358
 
@@ -4752,7 +4445,7 @@
4752
4445
  value: function onSort(_ref) {
4753
4446
  var type = _ref.type,
4754
4447
  currentTarget = _ref.currentTarget;
4755
- var $this = type === 'keypress' ? $(currentTarget) : $(currentTarget).parent();
4448
+ var $this = type === 'keypress' ? $__default['default'](currentTarget) : $__default['default'](currentTarget).parent();
4756
4449
  var $this_ = this.$header.find('th').eq($this.index());
4757
4450
  this.$header.add(this.$header_).find('span.order').remove();
4758
4451
 
@@ -4806,13 +4499,13 @@
4806
4499
  var switchableCount = 0;
4807
4500
 
4808
4501
  if (this.$toolbar.find('.bs-bars').children().length) {
4809
- $('body').append($(opts.toolbar));
4502
+ $__default['default']('body').append($__default['default'](opts.toolbar));
4810
4503
  }
4811
4504
 
4812
4505
  this.$toolbar.html('');
4813
4506
 
4814
4507
  if (typeof opts.toolbar === 'string' || _typeof(opts.toolbar) === 'object') {
4815
- $(Utils.sprintf('<div class="bs-bars %s-%s"></div>', this.constants.classes.pull, opts.toolbarAlign)).appendTo(this.$toolbar).append($(opts.toolbar));
4508
+ $__default['default'](Utils.sprintf('<div class="bs-bars %s-%s"></div>', this.constants.classes.pull, opts.toolbarAlign)).appendTo(this.$toolbar).append($__default['default'](opts.toolbar));
4816
4509
  } // showColumns, showToggle, showRefresh
4817
4510
 
4818
4511
 
@@ -4867,7 +4560,7 @@
4867
4560
  render: false,
4868
4561
  html: function html() {
4869
4562
  var html = [];
4870
- html.push("<div class=\"keep-open ".concat(_this4.constants.classes.buttonsDropdown, "\" title=\"").concat(opts.formatColumns(), "\">\n <button class=\"").concat(_this4.constants.buttonsClass, " dropdown-toggle\" type=\"button\" data-toggle=\"dropdown\"\n aria-label=\"Columns\" title=\"").concat(opts.formatColumns(), "\">\n ").concat(opts.showButtonIcons ? Utils.sprintf(_this4.constants.html.icon, opts.iconsPrefix, opts.icons.columns) : '', "\n ").concat(opts.showButtonText ? opts.formatColumns() : '', "\n ").concat(_this4.constants.html.dropdownCaret, "\n </button>\n ").concat(_this4.constants.html.toolbarDropdown[0]));
4563
+ html.push("<div class=\"keep-open ".concat(_this4.constants.classes.buttonsDropdown, "\" title=\"").concat(opts.formatColumns(), "\">\n <button class=\"").concat(_this4.constants.buttonsClass, " dropdown-toggle\" type=\"button\" ").concat(_this4.constants.dataToggle, "=\"dropdown\"\n aria-label=\"Columns\" title=\"").concat(opts.formatColumns(), "\">\n ").concat(opts.showButtonIcons ? Utils.sprintf(_this4.constants.html.icon, opts.iconsPrefix, opts.icons.columns) : '', "\n ").concat(opts.showButtonText ? opts.formatColumns() : '', "\n ").concat(_this4.constants.html.dropdownCaret, "\n </button>\n ").concat(_this4.constants.html.toolbarDropdown[0]));
4871
4564
 
4872
4565
  if (opts.showColumnsSearch) {
4873
4566
  html.push(Utils.sprintf(_this4.constants.html.toolbarDropdownItem, Utils.sprintf('<input type="text" class="%s" name="columnsSearch" placeholder="%s" autocomplete="off">', _this4.constants.classes.input, opts.formatSearch())));
@@ -4933,10 +4626,10 @@
4933
4626
  buttonHtml = "<button class=\"".concat(this.constants.buttonsClass, "\" type=\"button\" name=\"").concat(buttonName, "\"");
4934
4627
 
4935
4628
  if (buttonConfig.hasOwnProperty('attributes')) {
4936
- for (var _i4 = 0, _Object$entries4 = Object.entries(buttonConfig.attributes); _i4 < _Object$entries4.length; _i4++) {
4937
- var _Object$entries4$_i = _slicedToArray(_Object$entries4[_i4], 2),
4938
- attributeName = _Object$entries4$_i[0],
4939
- value = _Object$entries4$_i[1];
4629
+ for (var _i3 = 0, _Object$entries3 = Object.entries(buttonConfig.attributes); _i3 < _Object$entries3.length; _i3++) {
4630
+ var _Object$entries3$_i = _slicedToArray(_Object$entries3[_i3], 2),
4631
+ attributeName = _Object$entries3$_i[0],
4632
+ value = _Object$entries3$_i[1];
4940
4633
 
4941
4634
  buttonHtml += " ".concat(attributeName, "=\"").concat(value, "\"");
4942
4635
  }
@@ -4969,12 +4662,11 @@
4969
4662
  } // Adding the button html to the final toolbar html when the showOption is true
4970
4663
 
4971
4664
 
4972
- var _iteratorNormalCompletion = true;
4973
- var _didIteratorError = false;
4974
- var _iteratorError = undefined;
4665
+ var _iterator = _createForOfIteratorHelper(opts.buttonsOrder),
4666
+ _step;
4975
4667
 
4976
4668
  try {
4977
- for (var _iterator = opts.buttonsOrder[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
4669
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
4978
4670
  var button = _step.value;
4979
4671
  var _showOption = opts["show".concat(button.charAt(0).toUpperCase()).concat(button.substring(1))];
4980
4672
 
@@ -4983,18 +4675,9 @@
4983
4675
  }
4984
4676
  }
4985
4677
  } catch (err) {
4986
- _didIteratorError = true;
4987
- _iteratorError = err;
4678
+ _iterator.e(err);
4988
4679
  } finally {
4989
- try {
4990
- if (!_iteratorNormalCompletion && _iterator.return != null) {
4991
- _iterator.return();
4992
- }
4993
- } finally {
4994
- if (_didIteratorError) {
4995
- throw _iteratorError;
4996
- }
4997
- }
4680
+ _iterator.f();
4998
4681
  }
4999
4682
 
5000
4683
  html.push('</div>'); // Fix #188: this.showToolbar is for extensions
@@ -5003,10 +4686,10 @@
5003
4686
  this.$toolbar.append(html.join(''));
5004
4687
  }
5005
4688
 
5006
- for (var _i3 = 0, _Object$entries3 = Object.entries(this.buttons); _i3 < _Object$entries3.length; _i3++) {
5007
- var _Object$entries3$_i = _slicedToArray(_Object$entries3[_i3], 2),
5008
- _buttonName = _Object$entries3$_i[0],
5009
- _buttonConfig = _Object$entries3$_i[1];
4689
+ for (var _i4 = 0, _Object$entries4 = Object.entries(this.buttons); _i4 < _Object$entries4.length; _i4++) {
4690
+ var _Object$entries4$_i = _slicedToArray(_Object$entries4[_i4], 2),
4691
+ _buttonName = _Object$entries4$_i[0],
4692
+ _buttonConfig = _Object$entries4$_i[1];
5010
4693
 
5011
4694
  if (_buttonConfig.hasOwnProperty('event')) {
5012
4695
  if (typeof _buttonConfig.event === 'function' || typeof _buttonConfig.event === 'string') {
@@ -5055,7 +4738,7 @@
5055
4738
  });
5056
4739
  $checkboxes.off('click').on('click', function (_ref2) {
5057
4740
  var currentTarget = _ref2.currentTarget;
5058
- var $this = $(currentTarget);
4741
+ var $this = $__default['default'](currentTarget);
5059
4742
 
5060
4743
  _this4._toggleColumn($this.val(), $this.prop('checked'), false);
5061
4744
 
@@ -5068,7 +4751,7 @@
5068
4751
  $toggleAll.off('click').on('click', function (_ref3) {
5069
4752
  var currentTarget = _ref3.currentTarget;
5070
4753
 
5071
- _this4._toggleAllColumns($(currentTarget).prop('checked'));
4754
+ _this4._toggleAllColumns($__default['default'](currentTarget).prop('checked'));
5072
4755
  });
5073
4756
 
5074
4757
  if (opts.showColumnsSearch) {
@@ -5076,11 +4759,11 @@
5076
4759
  var $listItems = $keepOpen.find('.dropdown-item-marker');
5077
4760
  $columnsSearch.on('keyup paste change', function (_ref4) {
5078
4761
  var currentTarget = _ref4.currentTarget;
5079
- var $this = $(currentTarget);
4762
+ var $this = $__default['default'](currentTarget);
5080
4763
  var searchValue = $this.val().toLowerCase();
5081
4764
  $listItems.show();
5082
4765
  $checkboxes.each(function (i, el) {
5083
- var $checkbox = $(el);
4766
+ var $checkbox = $__default['default'](el);
5084
4767
  var $listItem = $checkbox.parents('.dropdown-item-marker');
5085
4768
  var text = $listItem.text().toLowerCase();
5086
4769
 
@@ -5169,18 +4852,18 @@
5169
4852
 
5170
4853
  var overwriteSearchText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
5171
4854
 
5172
- if (currentTarget !== undefined && $(currentTarget).length && overwriteSearchText) {
5173
- var text = $(currentTarget).val().trim();
4855
+ if (currentTarget !== undefined && $__default['default'](currentTarget).length && overwriteSearchText) {
4856
+ var text = $__default['default'](currentTarget).val().trim();
5174
4857
 
5175
- if (this.options.trimOnSearch && $(currentTarget).val() !== text) {
5176
- $(currentTarget).val(text);
4858
+ if (this.options.trimOnSearch && $__default['default'](currentTarget).val() !== text) {
4859
+ $__default['default'](currentTarget).val(text);
5177
4860
  }
5178
4861
 
5179
4862
  if (this.searchText === text) {
5180
4863
  return;
5181
4864
  }
5182
4865
 
5183
- if (currentTarget === Utils.getSearchInput(this)[0] || $(currentTarget).hasClass('search-input')) {
4866
+ if (currentTarget === Utils.getSearchInput(this)[0] || $__default['default'](currentTarget).hasClass('search-input')) {
5184
4867
  this.searchText = text;
5185
4868
  this.options.searchText = text;
5186
4869
  }
@@ -5436,7 +5119,7 @@
5436
5119
 
5437
5120
  if (this.paginationParts.includes('pageSize')) {
5438
5121
  html.push('<span class="page-list">');
5439
- var pageNumber = ["<span class=\"".concat(this.constants.classes.paginationDropdown, "\">\n <button class=\"").concat(this.constants.buttonsClass, " dropdown-toggle\" type=\"button\" data-toggle=\"dropdown\">\n <span class=\"page-size\">\n ").concat(allSelected ? opts.formatAllRows() : opts.pageSize, "\n </span>\n ").concat(this.constants.html.dropdownCaret, "\n </button>\n ").concat(this.constants.html.pageDropdown[0])];
5122
+ var pageNumber = ["<span class=\"".concat(this.constants.classes.paginationDropdown, "\">\n <button class=\"").concat(this.constants.buttonsClass, " dropdown-toggle\" type=\"button\" ").concat(this.constants.dataToggle, "=\"dropdown\">\n <span class=\"page-size\">\n ").concat(allSelected ? opts.formatAllRows() : opts.pageSize, "\n </span>\n ").concat(this.constants.html.dropdownCaret, "\n </button>\n ").concat(this.constants.html.pageDropdown[0])];
5440
5123
  pageList.forEach(function (page, i) {
5441
5124
  if (!opts.smartDisplay || i === 0 || pageList[i - 1] < opts.totalRows || page === opts.formatAllRows()) {
5442
5125
  var active;
@@ -5598,7 +5281,7 @@
5598
5281
  key: "updatePagination",
5599
5282
  value: function updatePagination(event) {
5600
5283
  // Fix #171: IE disabled button can be clicked bug.
5601
- if (event && $(event.currentTarget).hasClass('disabled')) {
5284
+ if (event && $__default['default'](event.currentTarget).hasClass('disabled')) {
5602
5285
  return;
5603
5286
  }
5604
5287
 
@@ -5619,7 +5302,7 @@
5619
5302
  key: "onPageListChange",
5620
5303
  value: function onPageListChange(event) {
5621
5304
  event.preventDefault();
5622
- var $this = $(event.currentTarget);
5305
+ var $this = $__default['default'](event.currentTarget);
5623
5306
  $this.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive);
5624
5307
  this.options.pageSize = $this.text().toUpperCase() === this.options.formatAllRows().toUpperCase() ? this.options.formatAllRows() : +$this.text();
5625
5308
  this.$toolbar.find('.page-size').text(this.options.pageSize);
@@ -5659,11 +5342,11 @@
5659
5342
  value: function onPageNumber(event) {
5660
5343
  event.preventDefault();
5661
5344
 
5662
- if (this.options.pageNumber === +$(event.currentTarget).text()) {
5345
+ if (this.options.pageNumber === +$__default['default'](event.currentTarget).text()) {
5663
5346
  return;
5664
5347
  }
5665
5348
 
5666
- this.options.pageNumber = +$(event.currentTarget).text();
5349
+ this.options.pageNumber = +$__default['default'](event.currentTarget).text();
5667
5350
  this.updatePagination(event);
5668
5351
  return false;
5669
5352
  } // eslint-disable-next-line no-unused-vars
@@ -5835,10 +5518,28 @@
5835
5518
  }
5836
5519
 
5837
5520
  value = Utils.calculateObjectValue(column, _this7.header.formatters[j], [value_, item, i, field], value_);
5838
- value = typeof value === 'undefined' || value === null ? _this7.options.undefinedText : value;
5839
5521
 
5840
- if (_this7.searchText !== '' && _this7.options.searchHighlight) {
5841
- value = Utils.calculateObjectValue(column, column.searchHighlightFormatter, [value, _this7.searchText], value.toString().replace(new RegExp("(".concat(_this7.searchText.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), ")"), 'gim'), '<mark>$1</mark>'));
5522
+ if (!(column.checkbox || column.radio)) {
5523
+ value = typeof value === 'undefined' || value === null ? _this7.options.undefinedText : value;
5524
+ }
5525
+
5526
+ if (column.searchable && _this7.searchText && _this7.options.searchHighlight) {
5527
+ var defValue = '';
5528
+ var regExp = new RegExp("(".concat(_this7.searchText.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), ")"), 'gim');
5529
+ var marker = '<mark>$1</mark>';
5530
+ var isHTML = value && /<(?=.*? .*?\/ ?>|br|hr|input|!--|wbr)[a-z]+.*?>|<([a-z]+).*?<\/\1>/i.test(value);
5531
+
5532
+ if (isHTML) {
5533
+ // value can contains a HTML tags
5534
+ var textContent = new DOMParser().parseFromString(value.toString(), 'text/html').documentElement.textContent;
5535
+ var textReplaced = textContent.replace(regExp, marker);
5536
+ defValue = value.replace(new RegExp("(>\\s*)(".concat(textContent, ")(\\s*)"), 'gm'), "$1".concat(textReplaced, "$3"));
5537
+ } else {
5538
+ // but usually not
5539
+ defValue = value.toString().replace(regExp, marker);
5540
+ }
5541
+
5542
+ value = Utils.calculateObjectValue(column, column.searchHighlightFormatter, [value, _this7.searchText], defValue);
5842
5543
  }
5843
5544
 
5844
5545
  if (item["_".concat(field, "_data")] && !Utils.isEmptyObject(item["_".concat(field, "_data")])) {
@@ -5899,7 +5600,7 @@
5899
5600
  this.$body = this.$el.find('>tbody');
5900
5601
 
5901
5602
  if (!this.$body.length) {
5902
- this.$body = $('<tbody></tbody>').appendTo(this.$el);
5603
+ this.$body = $__default['default']('<tbody></tbody>').appendTo(this.$el);
5903
5604
  } // Fix #389 Bootstrap-table-flatJSON is not working
5904
5605
 
5905
5606
 
@@ -5909,7 +5610,7 @@
5909
5610
  }
5910
5611
 
5911
5612
  var rows = [];
5912
- var trFragments = $(document.createDocumentFragment());
5613
+ var trFragments = $__default['default'](document.createDocumentFragment());
5913
5614
  var hasTr = false;
5914
5615
  this.autoMergeCells = Utils.checkAutoMergeCells(data.slice(this.pageFrom - 1, this.pageTo));
5915
5616
 
@@ -5973,10 +5674,10 @@
5973
5674
 
5974
5675
  // click to select by column
5975
5676
  this.$body.find('> tr[data-index] > td').off('click dblclick').on('click dblclick', function (e) {
5976
- var $td = $(e.currentTarget);
5677
+ var $td = $__default['default'](e.currentTarget);
5977
5678
  var $tr = $td.parent();
5978
- var $cardViewArr = $(e.target).parents('.card-views').children();
5979
- var $cardViewTarget = $(e.target).parents('.card-view');
5679
+ var $cardViewArr = $__default['default'](e.target).parents('.card-views').children();
5680
+ var $cardViewTarget = $__default['default'](e.target).parents('.card-view');
5980
5681
  var rowIndex = $tr.data('index');
5981
5682
  var item = _this9.data[rowIndex];
5982
5683
  var index = _this9.options.cardView ? $cardViewArr.index($cardViewTarget) : $td[0].cellIndex;
@@ -6015,14 +5716,14 @@
6015
5716
  this.$body.find('> tr[data-index] > td > .detail-icon').off('click').on('click', function (e) {
6016
5717
  e.preventDefault();
6017
5718
 
6018
- _this9.toggleDetailView($(e.currentTarget).parent().parent().data('index'));
5719
+ _this9.toggleDetailView($__default['default'](e.currentTarget).parent().parent().data('index'));
6019
5720
 
6020
5721
  return false;
6021
5722
  });
6022
5723
  this.$selectItem = this.$body.find(Utils.sprintf('[name="%s"]', this.options.selectItemName));
6023
5724
  this.$selectItem.off('click').on('click', function (e) {
6024
5725
  e.stopImmediatePropagation();
6025
- var $this = $(e.currentTarget);
5726
+ var $this = $__default['default'](e.currentTarget);
6026
5727
 
6027
5728
  _this9._toggleCheck($this.prop('checked'), $this.data('index'));
6028
5729
  });
@@ -6056,7 +5757,7 @@
6056
5757
  var event = events[key];
6057
5758
 
6058
5759
  _this9.$body.find('>tr:not(.no-records-found)').each(function (i, tr) {
6059
- var $tr = $(tr);
5760
+ var $tr = $__default['default'](tr);
6060
5761
  var $td = $tr.find(_this9.options.cardView ? '.card-views>.card-view' : '>td').eq(fieldIndex);
6061
5762
  var index = key.indexOf(' ');
6062
5763
  var name = key.substring(0, index);
@@ -6124,12 +5825,12 @@
6124
5825
  return !column.searchable;
6125
5826
  }).length) {
6126
5827
  params.searchable = [];
6127
- var _iteratorNormalCompletion2 = true;
6128
- var _didIteratorError2 = false;
6129
- var _iteratorError2 = undefined;
5828
+
5829
+ var _iterator2 = _createForOfIteratorHelper(this.columns),
5830
+ _step2;
6130
5831
 
6131
5832
  try {
6132
- for (var _iterator2 = this.columns[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
5833
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
6133
5834
  var column = _step2.value;
6134
5835
 
6135
5836
  if (!column.checkbox && column.searchable && (this.options.visibleSearch && column.visible || !this.options.visibleSearch)) {
@@ -6137,18 +5838,9 @@
6137
5838
  }
6138
5839
  }
6139
5840
  } catch (err) {
6140
- _didIteratorError2 = true;
6141
- _iteratorError2 = err;
5841
+ _iterator2.e(err);
6142
5842
  } finally {
6143
- try {
6144
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
6145
- _iterator2.return();
6146
- }
6147
- } finally {
6148
- if (_didIteratorError2) {
6149
- throw _iteratorError2;
6150
- }
6151
- }
5843
+ _iterator2.f();
6152
5844
  }
6153
5845
  }
6154
5846
 
@@ -6156,7 +5848,7 @@
6156
5848
  params.filter = JSON.stringify(this.filterColumnsPartial, null);
6157
5849
  }
6158
5850
 
6159
- $.extend(params, query || {});
5851
+ $__default['default'].extend(params, query || {});
6160
5852
  data = Utils.calculateObjectValue(this.options, this.options.queryParams, [params], data); // false to stop request
6161
5853
 
6162
5854
  if (data === false) {
@@ -6167,7 +5859,7 @@
6167
5859
  this.showLoading();
6168
5860
  }
6169
5861
 
6170
- var request = $.extend({}, Utils.calculateObjectValue(null, this.options.ajaxOptions), {
5862
+ var request = $__default['default'].extend({}, Utils.calculateObjectValue(null, this.options.ajaxOptions), {
6171
5863
  type: this.options.method,
6172
5864
  url: url || this.options.url,
6173
5865
  data: this.options.contentType === 'application/json' && this.options.method === 'post' ? JSON.stringify(data) : data,
@@ -6213,7 +5905,7 @@
6213
5905
  this._xhr.abort();
6214
5906
  }
6215
5907
 
6216
- this._xhr = $.ajax(request);
5908
+ this._xhr = $__default['default'].ajax(request);
6217
5909
  }
6218
5910
 
6219
5911
  return data;
@@ -6240,7 +5932,7 @@
6240
5932
  var _this11 = this;
6241
5933
 
6242
5934
  this.$header.find('th').each(function (i, th) {
6243
- $(th).find('.sortable').removeClass('desc asc').addClass($(th).data('field') === _this11.options.sortName ? _this11.options.sortOrder : 'both');
5935
+ $__default['default'](th).find('.sortable').removeClass('desc asc').addClass($__default['default'](th).data('field') === _this11.options.sortName ? _this11.options.sortOrder : 'both');
6244
5936
  });
6245
5937
  }
6246
5938
  }, {
@@ -6249,7 +5941,7 @@
6249
5941
  var checkAll = this.$selectItem.filter(':enabled').length && this.$selectItem.filter(':enabled').length === this.$selectItem.filter(':enabled').filter(':checked').length;
6250
5942
  this.$selectAll.add(this.$selectAll_).prop('checked', checkAll);
6251
5943
  this.$selectItem.each(function (i, el) {
6252
- $(el).closest('tr')[$(el).prop('checked') ? 'addClass' : 'removeClass']('selected');
5944
+ $__default['default'](el).closest('tr')[$__default['default'](el).prop('checked') ? 'addClass' : 'removeClass']('selected');
6253
5945
  });
6254
5946
  }
6255
5947
  }, {
@@ -6258,18 +5950,17 @@
6258
5950
  var _this12 = this;
6259
5951
 
6260
5952
  this.$selectItem.each(function (i, el) {
6261
- _this12.data[$(el).data('index')][_this12.header.stateField] = $(el).prop('checked');
5953
+ _this12.data[$__default['default'](el).data('index')][_this12.header.stateField] = $__default['default'](el).prop('checked');
6262
5954
  });
6263
5955
  }
6264
5956
  }, {
6265
5957
  key: "resetRows",
6266
5958
  value: function resetRows() {
6267
- var _iteratorNormalCompletion3 = true;
6268
- var _didIteratorError3 = false;
6269
- var _iteratorError3 = undefined;
5959
+ var _iterator3 = _createForOfIteratorHelper(this.data),
5960
+ _step3;
6270
5961
 
6271
5962
  try {
6272
- for (var _iterator3 = this.data[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
5963
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
6273
5964
  var row = _step3.value;
6274
5965
  this.$selectAll.prop('checked', false);
6275
5966
  this.$selectItem.prop('checked', false);
@@ -6279,18 +5970,9 @@
6279
5970
  }
6280
5971
  }
6281
5972
  } catch (err) {
6282
- _didIteratorError3 = true;
6283
- _iteratorError3 = err;
5973
+ _iterator3.e(err);
6284
5974
  } finally {
6285
- try {
6286
- if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
6287
- _iterator3.return();
6288
- }
6289
- } finally {
6290
- if (_didIteratorError3) {
6291
- throw _iteratorError3;
6292
- }
6293
- }
5975
+ _iterator3.f();
6294
5976
  }
6295
5977
 
6296
5978
  this.initHiddenRows();
@@ -6308,13 +5990,13 @@
6308
5990
 
6309
5991
  (_this$options = this.options)[BootstrapTable.EVENTS[name]].apply(_this$options, [].concat(args, [this]));
6310
5992
 
6311
- this.$el.trigger($.Event(name, {
5993
+ this.$el.trigger($__default['default'].Event(name, {
6312
5994
  sender: this
6313
5995
  }), args);
6314
5996
 
6315
5997
  (_this$options2 = this.options).onAll.apply(_this$options2, [name].concat([].concat(args, [this])));
6316
5998
 
6317
- this.$el.trigger($.Event('all.bs.table', {
5999
+ this.$el.trigger($__default['default'].Event('all.bs.table', {
6318
6000
  sender: this
6319
6001
  }), [name, args]);
6320
6002
  }
@@ -6345,7 +6027,7 @@
6345
6027
  var fixedBody = this.$tableBody.get(0);
6346
6028
  var scrollWidth = fixedBody.scrollWidth > fixedBody.clientWidth && fixedBody.scrollHeight > fixedBody.clientHeight + this.$header.outerHeight() ? Utils.getScrollBarWidth() : 0;
6347
6029
  this.$el.css('margin-top', -this.$header.outerHeight());
6348
- var focused = $(':focus');
6030
+ var focused = $__default['default'](':focus');
6349
6031
 
6350
6032
  if (focused.length > 0) {
6351
6033
  var $th = focused.parents('th');
@@ -6367,7 +6049,7 @@
6367
6049
  this.$selectAll_ = this.$header_.find('[name="btSelectAll"]');
6368
6050
  this.$tableHeader.css('margin-right', scrollWidth).find('table').css('width', this.$el.outerWidth()).html('').attr('class', this.$el.attr('class')).append(this.$header_);
6369
6051
  this.$tableLoading.css('width', this.$el.outerWidth());
6370
- var focusedTemp = $('.focus-temp:visible:eq(0)');
6052
+ var focusedTemp = $__default['default']('.focus-temp:visible:eq(0)');
6371
6053
 
6372
6054
  if (focusedTemp.length > 0) {
6373
6055
  focusedTemp.focus();
@@ -6376,7 +6058,7 @@
6376
6058
 
6377
6059
 
6378
6060
  this.$header.find('th[data-field]').each(function (i, el) {
6379
- _this14.$header_.find(Utils.sprintf('th[data-field="%s"]', $(el).data('field'))).data($(el).data());
6061
+ _this14.$header_.find(Utils.sprintf('th[data-field="%s"]', $__default['default'](el).data('field'))).data($__default['default'](el).data());
6380
6062
  });
6381
6063
  var visibleFields = this.getVisibleFields();
6382
6064
  var $ths = this.$header_.find('th');
@@ -6388,7 +6070,7 @@
6388
6070
 
6389
6071
  var trLength = $tr.find('> *').length;
6390
6072
  $tr.find('> *').each(function (i, el) {
6391
- var $this = $(el);
6073
+ var $this = $__default['default'](el);
6392
6074
 
6393
6075
  if (Utils.hasDetailViewIcon(_this14.options)) {
6394
6076
  if (i === 0 && _this14.options.detailViewAlign !== 'right' || i === trLength - 1 && _this14.options.detailViewAlign === 'right') {
@@ -6406,7 +6088,7 @@
6406
6088
  var $th = _this14.$header_.find(Utils.sprintf('th[data-field="%s"]', visibleFields[index]));
6407
6089
 
6408
6090
  if ($th.length > 1) {
6409
- $th = $($ths[$this[0].cellIndex]);
6091
+ $th = $__default['default']($ths[$this[0].cellIndex]);
6410
6092
  }
6411
6093
 
6412
6094
  var zoomWidth = $th.innerWidth() - $th.find('.fht-cell').width();
@@ -6435,12 +6117,11 @@
6435
6117
  html.push(detailTemplate);
6436
6118
  }
6437
6119
 
6438
- var _iteratorNormalCompletion4 = true;
6439
- var _didIteratorError4 = false;
6440
- var _iteratorError4 = undefined;
6120
+ var _iterator4 = _createForOfIteratorHelper(this.columns),
6121
+ _step4;
6441
6122
 
6442
6123
  try {
6443
- for (var _iterator4 = this.columns[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
6124
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
6444
6125
  var column = _step4.value;
6445
6126
  var falign = '';
6446
6127
  var valign = '';
@@ -6500,18 +6181,9 @@
6500
6181
  html.push('</th>');
6501
6182
  }
6502
6183
  } catch (err) {
6503
- _didIteratorError4 = true;
6504
- _iteratorError4 = err;
6184
+ _iterator4.e(err);
6505
6185
  } finally {
6506
- try {
6507
- if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
6508
- _iterator4.return();
6509
- }
6510
- } finally {
6511
- if (_didIteratorError4) {
6512
- throw _iteratorError4;
6513
- }
6514
- }
6186
+ _iterator4.f();
6515
6187
  }
6516
6188
 
6517
6189
  if (detailTemplate && this.options.detailViewAlign === 'right') {
@@ -6551,7 +6223,7 @@
6551
6223
 
6552
6224
  var trLength = $tr.find('> *').length;
6553
6225
  $tr.find('> *').each(function (i, el) {
6554
- var $this = $(el);
6226
+ var $this = $__default['default'](el);
6555
6227
 
6556
6228
  if (Utils.hasDetailViewIcon(_this15.options)) {
6557
6229
  if (i === 0 && _this15.options.detailViewAlign === 'left' || i === trLength - 1 && _this15.options.detailViewAlign === 'right') {
@@ -6595,12 +6267,12 @@
6595
6267
  key: "getVisibleFields",
6596
6268
  value: function getVisibleFields() {
6597
6269
  var visibleFields = [];
6598
- var _iteratorNormalCompletion5 = true;
6599
- var _didIteratorError5 = false;
6600
- var _iteratorError5 = undefined;
6270
+
6271
+ var _iterator5 = _createForOfIteratorHelper(this.header.fields),
6272
+ _step5;
6601
6273
 
6602
6274
  try {
6603
- for (var _iterator5 = this.header.fields[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
6275
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
6604
6276
  var field = _step5.value;
6605
6277
  var column = this.columns[this.fieldsColumnsIndex[field]];
6606
6278
 
@@ -6611,18 +6283,9 @@
6611
6283
  visibleFields.push(field);
6612
6284
  }
6613
6285
  } catch (err) {
6614
- _didIteratorError5 = true;
6615
- _iteratorError5 = err;
6286
+ _iterator5.e(err);
6616
6287
  } finally {
6617
- try {
6618
- if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
6619
- _iterator5.return();
6620
- }
6621
- } finally {
6622
- if (_didIteratorError5) {
6623
- throw _iteratorError5;
6624
- }
6625
- }
6288
+ _iterator5.f();
6626
6289
  }
6627
6290
 
6628
6291
  return visibleFields;
@@ -6638,9 +6301,9 @@
6638
6301
  key: "getOptions",
6639
6302
  value: function getOptions() {
6640
6303
  // deep copy and remove data
6641
- var options = $.extend({}, this.options);
6304
+ var options = $__default['default'].extend({}, this.options);
6642
6305
  delete options.data;
6643
- return $.extend(true, {}, options);
6306
+ return $__default['default'].extend(true, {}, options);
6644
6307
  }
6645
6308
  }, {
6646
6309
  key: "refreshOptions",
@@ -6650,7 +6313,7 @@
6650
6313
  return;
6651
6314
  }
6652
6315
 
6653
- this.options = $.extend(this.options, options);
6316
+ this.options = $__default['default'].extend(this.options, options);
6654
6317
  this.trigger('refresh-options', this.options);
6655
6318
  this.destroy();
6656
6319
  this.init();
@@ -6662,7 +6325,8 @@
6662
6325
 
6663
6326
  var data = this.options.data;
6664
6327
 
6665
- if ((this.searchText || this.options.customSearch || this.options.sortName !== undefined || !Utils.isEmptyObject(this.filterColumns) || !Utils.isEmptyObject(this.filterColumnsPartial)) && (!params || !params.unfiltered)) {
6328
+ if ((this.searchText || this.options.customSearch || this.options.sortName !== undefined || this.enableCustomSort || // Fix #4616: this.enableCustomSort is for extensions
6329
+ !Utils.isEmptyObject(this.filterColumns) || !Utils.isEmptyObject(this.filterColumnsPartial)) && (!params || !params.unfiltered)) {
6666
6330
  data = this.data;
6667
6331
  }
6668
6332
 
@@ -6802,12 +6466,12 @@
6802
6466
  key: "updateRow",
6803
6467
  value: function updateRow(params) {
6804
6468
  var allParams = Array.isArray(params) ? params : [params];
6805
- var _iteratorNormalCompletion6 = true;
6806
- var _didIteratorError6 = false;
6807
- var _iteratorError6 = undefined;
6469
+
6470
+ var _iterator6 = _createForOfIteratorHelper(allParams),
6471
+ _step6;
6808
6472
 
6809
6473
  try {
6810
- for (var _iterator6 = allParams[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
6474
+ for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
6811
6475
  var _params = _step6.value;
6812
6476
 
6813
6477
  if (!_params.hasOwnProperty('index') || !_params.hasOwnProperty('row')) {
@@ -6817,22 +6481,13 @@
6817
6481
  if (_params.hasOwnProperty('replace') && _params.replace) {
6818
6482
  this.options.data[_params.index] = _params.row;
6819
6483
  } else {
6820
- $.extend(this.options.data[_params.index], _params.row);
6484
+ $__default['default'].extend(this.options.data[_params.index], _params.row);
6821
6485
  }
6822
6486
  }
6823
6487
  } catch (err) {
6824
- _didIteratorError6 = true;
6825
- _iteratorError6 = err;
6488
+ _iterator6.e(err);
6826
6489
  } finally {
6827
- try {
6828
- if (!_iteratorNormalCompletion6 && _iterator6.return != null) {
6829
- _iterator6.return();
6830
- }
6831
- } finally {
6832
- if (_didIteratorError6) {
6833
- throw _iteratorError6;
6834
- }
6835
- }
6490
+ _iterator6.f();
6836
6491
  }
6837
6492
 
6838
6493
  this.initSearch();
@@ -6886,12 +6541,12 @@
6886
6541
  key: "updateByUniqueId",
6887
6542
  value: function updateByUniqueId(params) {
6888
6543
  var allParams = Array.isArray(params) ? params : [params];
6889
- var _iteratorNormalCompletion7 = true;
6890
- var _didIteratorError7 = false;
6891
- var _iteratorError7 = undefined;
6544
+
6545
+ var _iterator7 = _createForOfIteratorHelper(allParams),
6546
+ _step7;
6892
6547
 
6893
6548
  try {
6894
- for (var _iterator7 = allParams[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {
6549
+ for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
6895
6550
  var _params2 = _step7.value;
6896
6551
 
6897
6552
  if (!_params2.hasOwnProperty('id') || !_params2.hasOwnProperty('row')) {
@@ -6907,22 +6562,13 @@
6907
6562
  if (_params2.hasOwnProperty('replace') && _params2.replace) {
6908
6563
  this.options.data[rowId] = _params2.row;
6909
6564
  } else {
6910
- $.extend(this.options.data[rowId], _params2.row);
6565
+ $__default['default'].extend(this.options.data[rowId], _params2.row);
6911
6566
  }
6912
6567
  }
6913
6568
  } catch (err) {
6914
- _didIteratorError7 = true;
6915
- _iteratorError7 = err;
6569
+ _iterator7.e(err);
6916
6570
  } finally {
6917
- try {
6918
- if (!_iteratorNormalCompletion7 && _iterator7.return != null) {
6919
- _iterator7.return();
6920
- }
6921
- } finally {
6922
- if (_didIteratorError7) {
6923
- throw _iteratorError7;
6924
- }
6925
- }
6571
+ _iterator7.f();
6926
6572
  }
6927
6573
 
6928
6574
  this.initSearch();
@@ -7044,12 +6690,12 @@
7044
6690
 
7045
6691
  var data = this.getData();
7046
6692
  var rows = [];
7047
- var _iteratorNormalCompletion8 = true;
7048
- var _didIteratorError8 = false;
7049
- var _iteratorError8 = undefined;
6693
+
6694
+ var _iterator8 = _createForOfIteratorHelper(data),
6695
+ _step8;
7050
6696
 
7051
6697
  try {
7052
- for (var _iterator8 = data[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) {
6698
+ for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
7053
6699
  var row = _step8.value;
7054
6700
 
7055
6701
  if (this.hiddenRows.includes(row)) {
@@ -7057,18 +6703,9 @@
7057
6703
  }
7058
6704
  }
7059
6705
  } catch (err) {
7060
- _didIteratorError8 = true;
7061
- _iteratorError8 = err;
6706
+ _iterator8.e(err);
7062
6707
  } finally {
7063
- try {
7064
- if (!_iteratorNormalCompletion8 && _iterator8.return != null) {
7065
- _iterator8.return();
7066
- }
7067
- } finally {
7068
- if (_didIteratorError8) {
7069
- throw _iteratorError8;
7070
- }
7071
- }
6708
+ _iterator8.f();
7072
6709
  }
7073
6710
 
7074
6711
  this.hiddenRows = rows;
@@ -7156,12 +6793,11 @@
7156
6793
  value: function _toggleAllColumns(visible) {
7157
6794
  var _this23 = this;
7158
6795
 
7159
- var _iteratorNormalCompletion9 = true;
7160
- var _didIteratorError9 = false;
7161
- var _iteratorError9 = undefined;
6796
+ var _iterator9 = _createForOfIteratorHelper(this.columns.slice().reverse()),
6797
+ _step9;
7162
6798
 
7163
6799
  try {
7164
- for (var _iterator9 = this.columns.slice().reverse()[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) {
6800
+ for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
7165
6801
  var column = _step9.value;
7166
6802
 
7167
6803
  if (column.switchable) {
@@ -7173,18 +6809,9 @@
7173
6809
  }
7174
6810
  }
7175
6811
  } catch (err) {
7176
- _didIteratorError9 = true;
7177
- _iteratorError9 = err;
6812
+ _iterator9.e(err);
7178
6813
  } finally {
7179
- try {
7180
- if (!_iteratorNormalCompletion9 && _iterator9.return != null) {
7181
- _iterator9.return();
7182
- }
7183
- } finally {
7184
- if (_didIteratorError9) {
7185
- throw _iteratorError9;
7186
- }
7187
- }
6814
+ _iterator9.f();
7188
6815
  }
7189
6816
 
7190
6817
  this.initHeader();
@@ -7200,7 +6827,7 @@
7200
6827
  } else {
7201
6828
  $items.get().reverse().forEach(function (item) {
7202
6829
  if ($items.filter(':checked').length > _this23.options.minimumCountColumns) {
7203
- $(item).prop('checked', visible);
6830
+ $__default['default'](item).prop('checked', visible);
7204
6831
  }
7205
6832
  });
7206
6833
  }
@@ -7268,7 +6895,7 @@
7268
6895
  var $items = this.$selectItem.filter(':enabled');
7269
6896
  var checked = $items.filter(':checked');
7270
6897
  $items.each(function (i, el) {
7271
- $(el).prop('checked', !$(el).prop('checked'));
6898
+ $__default['default'](el).prop('checked', !$__default['default'](el).prop('checked'));
7272
6899
  });
7273
6900
  this.updateRows();
7274
6901
  this.updateSelected();
@@ -7293,28 +6920,18 @@
7293
6920
  var row = this.data[index];
7294
6921
 
7295
6922
  if ($el.is(':radio') || this.options.singleSelect || this.options.multipleSelectRow && !this.multipleSelectRowCtrlKey && !this.multipleSelectRowShiftKey) {
7296
- var _iteratorNormalCompletion10 = true;
7297
- var _didIteratorError10 = false;
7298
- var _iteratorError10 = undefined;
6923
+ var _iterator10 = _createForOfIteratorHelper(this.options.data),
6924
+ _step10;
7299
6925
 
7300
6926
  try {
7301
- for (var _iterator10 = this.options.data[Symbol.iterator](), _step10; !(_iteratorNormalCompletion10 = (_step10 = _iterator10.next()).done); _iteratorNormalCompletion10 = true) {
6927
+ for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
7302
6928
  var r = _step10.value;
7303
6929
  r[this.header.stateField] = false;
7304
6930
  }
7305
6931
  } catch (err) {
7306
- _didIteratorError10 = true;
7307
- _iteratorError10 = err;
6932
+ _iterator10.e(err);
7308
6933
  } finally {
7309
- try {
7310
- if (!_iteratorNormalCompletion10 && _iterator10.return != null) {
7311
- _iterator10.return();
7312
- }
7313
- } finally {
7314
- if (_didIteratorError10) {
7315
- throw _iteratorError10;
7316
- }
7317
- }
6934
+ _iterator10.f();
7318
6935
  }
7319
6936
 
7320
6937
  this.$selectItem.filter(':checked').not($el).prop('checked', false);
@@ -7409,7 +7026,7 @@
7409
7026
  key: "destroy",
7410
7027
  value: function destroy() {
7411
7028
  this.$el.insertBefore(this.$container);
7412
- $(this.options.toolbar).insertBefore(this.$el);
7029
+ $__default['default'](this.options.toolbar).insertBefore(this.$el);
7413
7030
  this.$container.next().remove();
7414
7031
  this.$container.remove();
7415
7032
  this.$el.html(this.$el_.html()).css('margin-top', '0').attr('class', this.$el_.attr('class') || ''); // reset the class
@@ -7543,7 +7160,7 @@
7543
7160
  }, {
7544
7161
  key: "filterBy",
7545
7162
  value: function filterBy(columns, options) {
7546
- this.filterOptions = Utils.isEmptyObject(options) ? this.options.filterOptions : $.extend(this.options.filterOptions, options);
7163
+ this.filterOptions = Utils.isEmptyObject(options) ? this.options.filterOptions : $__default['default'].extend(this.options.filterOptions, options);
7547
7164
  this.filterColumns = Utils.isEmptyObject(columns) ? {} : columns;
7548
7165
  this.options.pageNumber = 1;
7549
7166
  this.initSearch();
@@ -7570,7 +7187,7 @@
7570
7187
  if (options.unit === 'rows') {
7571
7188
  scrollTo = 0;
7572
7189
  this.$body.find("> tr:lt(".concat(options.value, ")")).each(function (i, el) {
7573
- scrollTo += $(el).outerHeight(true);
7190
+ scrollTo += $__default['default'](el).outerHeight(true);
7574
7191
  });
7575
7192
  }
7576
7193
 
@@ -7688,7 +7305,7 @@
7688
7305
  var trs = this.$body.find('> tr[data-index][data-has-detail-view]');
7689
7306
 
7690
7307
  for (var i = 0; i < trs.length; i++) {
7691
- this.expandRow($(trs[i]).data('index'));
7308
+ this.expandRow($__default['default'](trs[i]).data('index'));
7692
7309
  }
7693
7310
  }
7694
7311
  }, {
@@ -7697,7 +7314,7 @@
7697
7314
  var trs = this.$body.find('> tr[data-index][data-has-detail-view]');
7698
7315
 
7699
7316
  for (var i = 0; i < trs.length; i++) {
7700
- this.collapseRow($(trs[i]).data('index'));
7317
+ this.collapseRow($__default['default'](trs[i]).data('index'));
7701
7318
  }
7702
7319
  }
7703
7320
  }, {
@@ -7711,8 +7328,8 @@
7711
7328
 
7712
7329
  if (this.columns[this.fieldsColumnsIndex[params.field]].visible) {
7713
7330
  this.$header.find('th[data-field]').each(function (i, el) {
7714
- if ($(el).data('field') === params.field) {
7715
- $($(el).find('.th-inner')[0]).text(params.title);
7331
+ if ($__default['default'](el).data('field') === params.field) {
7332
+ $__default['default']($__default['default'](el).find('.th-inner')[0]).text(params.title);
7716
7333
  return false;
7717
7334
  }
7718
7335
  });
@@ -7751,17 +7368,17 @@
7751
7368
  BootstrapTable.EVENTS = Constants.EVENTS; // BOOTSTRAP TABLE PLUGIN DEFINITION
7752
7369
  // =======================
7753
7370
 
7754
- $.BootstrapTable = BootstrapTable;
7371
+ $__default['default'].BootstrapTable = BootstrapTable;
7755
7372
 
7756
- $.fn.bootstrapTable = function (option) {
7373
+ $__default['default'].fn.bootstrapTable = function (option) {
7757
7374
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key5 = 1; _key5 < _len2; _key5++) {
7758
7375
  args[_key5 - 1] = arguments[_key5];
7759
7376
  }
7760
7377
 
7761
7378
  var value;
7762
7379
  this.each(function (i, el) {
7763
- var data = $(el).data('bootstrap.table');
7764
- var options = $.extend({}, BootstrapTable.DEFAULTS, $(el).data(), _typeof(option) === 'object' && option);
7380
+ var data = $__default['default'](el).data('bootstrap.table');
7381
+ var options = $__default['default'].extend({}, BootstrapTable.DEFAULTS, $__default['default'](el).data(), _typeof(option) === 'object' && option);
7765
7382
 
7766
7383
  if (typeof option === 'string') {
7767
7384
  var _data2;
@@ -7777,32 +7394,32 @@
7777
7394
  value = (_data2 = data)[option].apply(_data2, args);
7778
7395
 
7779
7396
  if (option === 'destroy') {
7780
- $(el).removeData('bootstrap.table');
7397
+ $__default['default'](el).removeData('bootstrap.table');
7781
7398
  }
7782
7399
  }
7783
7400
 
7784
7401
  if (!data) {
7785
- data = new $.BootstrapTable(el, options);
7786
- $(el).data('bootstrap.table', data);
7402
+ data = new $__default['default'].BootstrapTable(el, options);
7403
+ $__default['default'](el).data('bootstrap.table', data);
7787
7404
  data.init();
7788
7405
  }
7789
7406
  });
7790
7407
  return typeof value === 'undefined' ? this : value;
7791
7408
  };
7792
7409
 
7793
- $.fn.bootstrapTable.Constructor = BootstrapTable;
7794
- $.fn.bootstrapTable.theme = Constants.THEME;
7795
- $.fn.bootstrapTable.VERSION = Constants.VERSION;
7796
- $.fn.bootstrapTable.defaults = BootstrapTable.DEFAULTS;
7797
- $.fn.bootstrapTable.columnDefaults = BootstrapTable.COLUMN_DEFAULTS;
7798
- $.fn.bootstrapTable.events = BootstrapTable.EVENTS;
7799
- $.fn.bootstrapTable.locales = BootstrapTable.LOCALES;
7800
- $.fn.bootstrapTable.methods = BootstrapTable.METHODS;
7801
- $.fn.bootstrapTable.utils = Utils; // BOOTSTRAP TABLE INIT
7410
+ $__default['default'].fn.bootstrapTable.Constructor = BootstrapTable;
7411
+ $__default['default'].fn.bootstrapTable.theme = Constants.THEME;
7412
+ $__default['default'].fn.bootstrapTable.VERSION = Constants.VERSION;
7413
+ $__default['default'].fn.bootstrapTable.defaults = BootstrapTable.DEFAULTS;
7414
+ $__default['default'].fn.bootstrapTable.columnDefaults = BootstrapTable.COLUMN_DEFAULTS;
7415
+ $__default['default'].fn.bootstrapTable.events = BootstrapTable.EVENTS;
7416
+ $__default['default'].fn.bootstrapTable.locales = BootstrapTable.LOCALES;
7417
+ $__default['default'].fn.bootstrapTable.methods = BootstrapTable.METHODS;
7418
+ $__default['default'].fn.bootstrapTable.utils = Utils; // BOOTSTRAP TABLE INIT
7802
7419
  // =======================
7803
7420
 
7804
- $(function () {
7805
- $('[data-toggle="table"]').bootstrapTable();
7421
+ $__default['default'](function () {
7422
+ $__default['default']('[data-toggle="table"]').bootstrapTable();
7806
7423
  });
7807
7424
 
7808
7425
  return BootstrapTable;