bootstrap-table-rails 1.18.1 → 1.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +31 -133
  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 +375 -306
  11. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +585 -1374
  12. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +1499 -2288
  13. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +12 -2
  14. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +7534 -7805
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1787 -1671
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +1224 -1137
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +2610 -3020
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +1255 -1176
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +1269 -1193
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +876 -815
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +1912 -2459
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +2238 -2742
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +3163 -3028
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +2442 -2367
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +1622 -1547
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +1619 -1542
  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 +1473 -1377
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +1305 -1232
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +1809 -1760
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.css +5 -2
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +1132 -1061
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +343 -309
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +1660 -2282
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +1486 -1407
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +1067 -984
  37. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +927 -711
  38. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +1263 -1160
  39. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +2049 -2634
  40. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +1250 -1918
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +149 -120
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +149 -120
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +149 -120
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +149 -120
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +149 -120
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +149 -120
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +188 -120
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +149 -120
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +149 -120
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +149 -120
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +149 -120
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +149 -120
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +149 -120
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +167 -137
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +149 -120
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +149 -120
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +149 -120
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +149 -120
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +168 -139
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +149 -120
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +149 -120
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +149 -120
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +149 -120
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +149 -120
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +149 -120
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +149 -120
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +149 -120
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +149 -120
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +149 -120
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +149 -120
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +149 -120
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +149 -120
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +149 -120
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +149 -120
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +149 -120
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +149 -120
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +149 -120
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +149 -120
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +172 -143
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +149 -120
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +172 -143
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +149 -120
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +149 -120
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +149 -120
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +149 -120
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +149 -120
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +149 -120
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +149 -120
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +149 -120
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +149 -120
  91. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +149 -120
  92. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +149 -120
  93. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +149 -120
  94. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +11 -1
  95. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +1133 -1044
  96. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +11 -1
  97. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +1125 -1036
  98. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +15 -1
  99. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +1141 -1052
  100. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +15 -1
  101. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +1134 -1045
  102. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +11 -1
  103. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +1102 -1013
  104. metadata +8 -3
@@ -1,10 +1,12 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
3
3
  typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4
- (global = global || self, factory(global.jQuery));
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, 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
 
@@ -18,13 +20,14 @@
18
20
 
19
21
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
20
22
  var global_1 =
21
- // eslint-disable-next-line no-undef
23
+ // eslint-disable-next-line es/no-global-this -- safe
22
24
  check(typeof globalThis == 'object' && globalThis) ||
23
25
  check(typeof window == 'object' && window) ||
26
+ // eslint-disable-next-line no-restricted-globals -- safe
24
27
  check(typeof self == 'object' && self) ||
25
28
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
26
- // eslint-disable-next-line no-new-func
27
- Function('return this')();
29
+ // eslint-disable-next-line no-new-func -- fallback
30
+ (function () { return this; })() || Function('return this')();
28
31
 
29
32
  var fails = function (exec) {
30
33
  try {
@@ -34,26 +37,28 @@
34
37
  }
35
38
  };
36
39
 
37
- // Thank's IE8 for his funny defineProperty
40
+ // Detect IE8's incomplete defineProperty implementation
38
41
  var descriptors = !fails(function () {
39
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
42
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
43
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
40
44
  });
41
45
 
42
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
43
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
46
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
47
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
48
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
44
49
 
45
50
  // Nashorn ~ JDK8 bug
46
- var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
51
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
47
52
 
48
53
  // `Object.prototype.propertyIsEnumerable` method implementation
49
- // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
50
- var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
51
- var descriptor = getOwnPropertyDescriptor(this, V);
54
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
55
+ var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
56
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
52
57
  return !!descriptor && descriptor.enumerable;
53
- } : nativePropertyIsEnumerable;
58
+ } : $propertyIsEnumerable;
54
59
 
55
60
  var objectPropertyIsEnumerable = {
56
- f: f
61
+ f: f$4
57
62
  };
58
63
 
59
64
  var createPropertyDescriptor = function (bitmap, value) {
@@ -76,14 +81,14 @@
76
81
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
77
82
  var indexedObject = fails(function () {
78
83
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
79
- // eslint-disable-next-line no-prototype-builtins
84
+ // eslint-disable-next-line no-prototype-builtins -- safe
80
85
  return !Object('z').propertyIsEnumerable(0);
81
86
  }) ? function (it) {
82
87
  return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
83
88
  } : Object;
84
89
 
85
90
  // `RequireObjectCoercible` abstract operation
86
- // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
91
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
87
92
  var requireObjectCoercible = function (it) {
88
93
  if (it == undefined) throw TypeError("Can't call method on " + it);
89
94
  return it;
@@ -102,7 +107,7 @@
102
107
  };
103
108
 
104
109
  // `ToPrimitive` abstract operation
105
- // https://tc39.github.io/ecma262/#sec-toprimitive
110
+ // https://tc39.es/ecma262/#sec-toprimitive
106
111
  // instead of the ES6 spec version, we didn't implement @@toPrimitive case
107
112
  // and the second argument - flag - preferred type is a string
108
113
  var toPrimitive = function (input, PREFERRED_STRING) {
@@ -116,7 +121,7 @@
116
121
 
117
122
  var hasOwnProperty = {}.hasOwnProperty;
118
123
 
119
- var has = function (it, key) {
124
+ var has$1 = function (it, key) {
120
125
  return hasOwnProperty.call(it, key);
121
126
  };
122
127
 
@@ -130,26 +135,28 @@
130
135
 
131
136
  // Thank's IE8 for his funny defineProperty
132
137
  var ie8DomDefine = !descriptors && !fails(function () {
138
+ // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
133
139
  return Object.defineProperty(documentCreateElement('div'), 'a', {
134
140
  get: function () { return 7; }
135
141
  }).a != 7;
136
142
  });
137
143
 
138
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
144
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
145
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
139
146
 
140
147
  // `Object.getOwnPropertyDescriptor` method
141
- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
142
- var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
148
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
149
+ var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
143
150
  O = toIndexedObject(O);
144
151
  P = toPrimitive(P, true);
145
152
  if (ie8DomDefine) try {
146
- return nativeGetOwnPropertyDescriptor(O, P);
153
+ return $getOwnPropertyDescriptor(O, P);
147
154
  } catch (error) { /* empty */ }
148
- if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
155
+ if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
149
156
  };
150
157
 
151
158
  var objectGetOwnPropertyDescriptor = {
152
- f: f$1
159
+ f: f$3
153
160
  };
154
161
 
155
162
  var anObject = function (it) {
@@ -158,16 +165,17 @@
158
165
  } return it;
159
166
  };
160
167
 
161
- var nativeDefineProperty = Object.defineProperty;
168
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
169
+ var $defineProperty = Object.defineProperty;
162
170
 
163
171
  // `Object.defineProperty` method
164
- // https://tc39.github.io/ecma262/#sec-object.defineproperty
165
- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
172
+ // https://tc39.es/ecma262/#sec-object.defineproperty
173
+ var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
166
174
  anObject(O);
167
175
  P = toPrimitive(P, true);
168
176
  anObject(Attributes);
169
177
  if (ie8DomDefine) try {
170
- return nativeDefineProperty(O, P, Attributes);
178
+ return $defineProperty(O, P, Attributes);
171
179
  } catch (error) { /* empty */ }
172
180
  if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
173
181
  if ('value' in Attributes) O[P] = Attributes.value;
@@ -194,9 +202,9 @@
194
202
  };
195
203
 
196
204
  var SHARED = '__core-js_shared__';
197
- var store = global_1[SHARED] || setGlobal(SHARED, {});
205
+ var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
198
206
 
199
- var sharedStore = store;
207
+ var sharedStore = store$1;
200
208
 
201
209
  var functionToString = Function.toString;
202
210
 
@@ -209,17 +217,17 @@
209
217
 
210
218
  var inspectSource = sharedStore.inspectSource;
211
219
 
212
- var WeakMap = global_1.WeakMap;
220
+ var WeakMap$1 = global_1.WeakMap;
213
221
 
214
- var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
222
+ var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
215
223
 
216
224
  var shared = createCommonjsModule(function (module) {
217
225
  (module.exports = function (key, value) {
218
226
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
219
227
  })('versions', []).push({
220
- version: '3.6.0',
221
- mode: 'global',
222
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
228
+ version: '3.10.1',
229
+ mode: 'global',
230
+ copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
223
231
  });
224
232
  });
225
233
 
@@ -236,13 +244,13 @@
236
244
  return keys[key] || (keys[key] = uid(key));
237
245
  };
238
246
 
239
- var hiddenKeys = {};
247
+ var hiddenKeys$1 = {};
240
248
 
241
- var WeakMap$1 = global_1.WeakMap;
242
- var set, get, has$1;
249
+ var WeakMap = global_1.WeakMap;
250
+ var set, get, has;
243
251
 
244
252
  var enforce = function (it) {
245
- return has$1(it) ? get(it) : set(it, {});
253
+ return has(it) ? get(it) : set(it, {});
246
254
  };
247
255
 
248
256
  var getterFor = function (TYPE) {
@@ -255,39 +263,41 @@
255
263
  };
256
264
 
257
265
  if (nativeWeakMap) {
258
- var store$1 = new WeakMap$1();
259
- var wmget = store$1.get;
260
- var wmhas = store$1.has;
261
- var wmset = store$1.set;
266
+ var store = sharedStore.state || (sharedStore.state = new WeakMap());
267
+ var wmget = store.get;
268
+ var wmhas = store.has;
269
+ var wmset = store.set;
262
270
  set = function (it, metadata) {
263
- wmset.call(store$1, it, metadata);
271
+ metadata.facade = it;
272
+ wmset.call(store, it, metadata);
264
273
  return metadata;
265
274
  };
266
275
  get = function (it) {
267
- return wmget.call(store$1, it) || {};
276
+ return wmget.call(store, it) || {};
268
277
  };
269
- has$1 = function (it) {
270
- return wmhas.call(store$1, it);
278
+ has = function (it) {
279
+ return wmhas.call(store, it);
271
280
  };
272
281
  } else {
273
282
  var STATE = sharedKey('state');
274
- hiddenKeys[STATE] = true;
283
+ hiddenKeys$1[STATE] = true;
275
284
  set = function (it, metadata) {
285
+ metadata.facade = it;
276
286
  createNonEnumerableProperty(it, STATE, metadata);
277
287
  return metadata;
278
288
  };
279
289
  get = function (it) {
280
- return has(it, STATE) ? it[STATE] : {};
290
+ return has$1(it, STATE) ? it[STATE] : {};
281
291
  };
282
- has$1 = function (it) {
283
- return has(it, STATE);
292
+ has = function (it) {
293
+ return has$1(it, STATE);
284
294
  };
285
295
  }
286
296
 
287
297
  var internalState = {
288
298
  set: set,
289
299
  get: get,
290
- has: has$1,
300
+ has: has,
291
301
  enforce: enforce,
292
302
  getterFor: getterFor
293
303
  };
@@ -301,9 +311,15 @@
301
311
  var unsafe = options ? !!options.unsafe : false;
302
312
  var simple = options ? !!options.enumerable : false;
303
313
  var noTargetGet = options ? !!options.noTargetGet : false;
314
+ var state;
304
315
  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 : '');
316
+ if (typeof key == 'string' && !has$1(value, 'name')) {
317
+ createNonEnumerableProperty(value, 'name', key);
318
+ }
319
+ state = enforceInternalState(value);
320
+ if (!state.source) {
321
+ state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
322
+ }
307
323
  }
308
324
  if (O === global_1) {
309
325
  if (simple) O[key] = value;
@@ -324,12 +340,12 @@
324
340
 
325
341
  var path = global_1;
326
342
 
327
- var aFunction = function (variable) {
343
+ var aFunction$1 = function (variable) {
328
344
  return typeof variable == 'function' ? variable : undefined;
329
345
  };
330
346
 
331
347
  var getBuiltIn = function (namespace, method) {
332
- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
348
+ return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global_1[namespace])
333
349
  : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
334
350
  };
335
351
 
@@ -337,42 +353,42 @@
337
353
  var floor = Math.floor;
338
354
 
339
355
  // `ToInteger` abstract operation
340
- // https://tc39.github.io/ecma262/#sec-tointeger
356
+ // https://tc39.es/ecma262/#sec-tointeger
341
357
  var toInteger = function (argument) {
342
358
  return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
343
359
  };
344
360
 
345
- var min = Math.min;
361
+ var min$1 = Math.min;
346
362
 
347
363
  // `ToLength` abstract operation
348
- // https://tc39.github.io/ecma262/#sec-tolength
364
+ // https://tc39.es/ecma262/#sec-tolength
349
365
  var toLength = function (argument) {
350
- return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
366
+ return argument > 0 ? min$1(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
351
367
  };
352
368
 
353
- var max = Math.max;
354
- var min$1 = Math.min;
369
+ var max$1 = Math.max;
370
+ var min = Math.min;
355
371
 
356
372
  // Helper for a popular repeating case of the spec:
357
373
  // Let integer be ? ToInteger(index).
358
374
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
359
375
  var toAbsoluteIndex = function (index, length) {
360
376
  var integer = toInteger(index);
361
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
377
+ return integer < 0 ? max$1(integer + length, 0) : min(integer, length);
362
378
  };
363
379
 
364
380
  // `Array.prototype.{ indexOf, includes }` methods implementation
365
- var createMethod = function (IS_INCLUDES) {
381
+ var createMethod$2 = function (IS_INCLUDES) {
366
382
  return function ($this, el, fromIndex) {
367
383
  var O = toIndexedObject($this);
368
384
  var length = toLength(O.length);
369
385
  var index = toAbsoluteIndex(fromIndex, length);
370
386
  var value;
371
387
  // Array#includes uses SameValueZero equality algorithm
372
- // eslint-disable-next-line no-self-compare
388
+ // eslint-disable-next-line no-self-compare -- NaN check
373
389
  if (IS_INCLUDES && el != el) while (length > index) {
374
390
  value = O[index++];
375
- // eslint-disable-next-line no-self-compare
391
+ // eslint-disable-next-line no-self-compare -- NaN check
376
392
  if (value != value) return true;
377
393
  // Array#indexOf ignores holes, Array#includes - not
378
394
  } else for (;length > index; index++) {
@@ -383,11 +399,11 @@
383
399
 
384
400
  var arrayIncludes = {
385
401
  // `Array.prototype.includes` method
386
- // https://tc39.github.io/ecma262/#sec-array.prototype.includes
387
- includes: createMethod(true),
402
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
403
+ includes: createMethod$2(true),
388
404
  // `Array.prototype.indexOf` method
389
- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
390
- indexOf: createMethod(false)
405
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
406
+ indexOf: createMethod$2(false)
391
407
  };
392
408
 
393
409
  var indexOf = arrayIncludes.indexOf;
@@ -398,9 +414,9 @@
398
414
  var i = 0;
399
415
  var result = [];
400
416
  var key;
401
- for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
417
+ for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
402
418
  // Don't enum bug & hidden keys
403
- while (names.length > i) if (has(O, key = names[i++])) {
419
+ while (names.length > i) if (has$1(O, key = names[i++])) {
404
420
  ~indexOf(result, key) || result.push(key);
405
421
  }
406
422
  return result;
@@ -417,22 +433,24 @@
417
433
  'valueOf'
418
434
  ];
419
435
 
420
- var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
436
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
421
437
 
422
438
  // `Object.getOwnPropertyNames` method
423
- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
424
- var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
425
- return objectKeysInternal(O, hiddenKeys$1);
439
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
440
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
441
+ var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
442
+ return objectKeysInternal(O, hiddenKeys);
426
443
  };
427
444
 
428
445
  var objectGetOwnPropertyNames = {
429
- f: f$3
446
+ f: f$1
430
447
  };
431
448
 
432
- var f$4 = Object.getOwnPropertySymbols;
449
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
450
+ var f = Object.getOwnPropertySymbols;
433
451
 
434
452
  var objectGetOwnPropertySymbols = {
435
- f: f$4
453
+ f: f
436
454
  };
437
455
 
438
456
  // all object keys, includes non-enumerable and symbols
@@ -448,7 +466,7 @@
448
466
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
449
467
  for (var i = 0; i < keys.length; i++) {
450
468
  var key = keys[i];
451
- if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
469
+ if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
452
470
  }
453
471
  };
454
472
 
@@ -472,7 +490,7 @@
472
490
 
473
491
  var isForced_1 = isForced;
474
492
 
475
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
493
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
476
494
 
477
495
 
478
496
 
@@ -508,7 +526,7 @@
508
526
  if (target) for (key in source) {
509
527
  sourceProperty = source[key];
510
528
  if (options.noTargetGet) {
511
- descriptor = getOwnPropertyDescriptor$1(target, key);
529
+ descriptor = getOwnPropertyDescriptor(target, key);
512
530
  targetProperty = descriptor && descriptor.value;
513
531
  } else targetProperty = target[key];
514
532
  FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
@@ -526,15 +544,212 @@
526
544
  }
527
545
  };
528
546
 
529
- var aFunction$1 = function (it) {
547
+ // `IsArray` abstract operation
548
+ // https://tc39.es/ecma262/#sec-isarray
549
+ // eslint-disable-next-line es/no-array-isarray -- safe
550
+ var isArray = Array.isArray || function isArray(arg) {
551
+ return classofRaw(arg) == 'Array';
552
+ };
553
+
554
+ var createProperty = function (object, key, value) {
555
+ var propertyKey = toPrimitive(key);
556
+ if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
557
+ else object[propertyKey] = value;
558
+ };
559
+
560
+ var engineIsNode = classofRaw(global_1.process) == 'process';
561
+
562
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
563
+
564
+ var process = global_1.process;
565
+ var versions = process && process.versions;
566
+ var v8 = versions && versions.v8;
567
+ var match, version;
568
+
569
+ if (v8) {
570
+ match = v8.split('.');
571
+ version = match[0] + match[1];
572
+ } else if (engineUserAgent) {
573
+ match = engineUserAgent.match(/Edge\/(\d+)/);
574
+ if (!match || match[1] >= 74) {
575
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
576
+ if (match) version = match[1];
577
+ }
578
+ }
579
+
580
+ var engineV8Version = version && +version;
581
+
582
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
583
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
584
+ // eslint-disable-next-line es/no-symbol -- required for testing
585
+ return !Symbol.sham &&
586
+ // Chrome 38 Symbol has incorrect toString conversion
587
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
588
+ (engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
589
+ });
590
+
591
+ /* eslint-disable es/no-symbol -- required for testing */
592
+
593
+
594
+ var useSymbolAsUid = nativeSymbol
595
+ && !Symbol.sham
596
+ && typeof Symbol.iterator == 'symbol';
597
+
598
+ var WellKnownSymbolsStore = shared('wks');
599
+ var Symbol$1 = global_1.Symbol;
600
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
601
+
602
+ var wellKnownSymbol = function (name) {
603
+ if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
604
+ if (nativeSymbol && has$1(Symbol$1, name)) {
605
+ WellKnownSymbolsStore[name] = Symbol$1[name];
606
+ } else {
607
+ WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
608
+ }
609
+ } return WellKnownSymbolsStore[name];
610
+ };
611
+
612
+ var SPECIES$2 = wellKnownSymbol('species');
613
+
614
+ var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
615
+ // We can't use this feature detection in V8 since it causes
616
+ // deoptimization and serious performance degradation
617
+ // https://github.com/zloirock/core-js/issues/677
618
+ return engineV8Version >= 51 || !fails(function () {
619
+ var array = [];
620
+ var constructor = array.constructor = {};
621
+ constructor[SPECIES$2] = function () {
622
+ return { foo: 1 };
623
+ };
624
+ return array[METHOD_NAME](Boolean).foo !== 1;
625
+ });
626
+ };
627
+
628
+ var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport('slice');
629
+
630
+ var SPECIES$1 = wellKnownSymbol('species');
631
+ var nativeSlice = [].slice;
632
+ var max = Math.max;
633
+
634
+ // `Array.prototype.slice` method
635
+ // https://tc39.es/ecma262/#sec-array.prototype.slice
636
+ // fallback for not array-like ES3 strings and DOM objects
637
+ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
638
+ slice: function slice(start, end) {
639
+ var O = toIndexedObject(this);
640
+ var length = toLength(O.length);
641
+ var k = toAbsoluteIndex(start, length);
642
+ var fin = toAbsoluteIndex(end === undefined ? length : end, length);
643
+ // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
644
+ var Constructor, result, n;
645
+ if (isArray(O)) {
646
+ Constructor = O.constructor;
647
+ // cross-realm fallback
648
+ if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
649
+ Constructor = undefined;
650
+ } else if (isObject(Constructor)) {
651
+ Constructor = Constructor[SPECIES$1];
652
+ if (Constructor === null) Constructor = undefined;
653
+ }
654
+ if (Constructor === Array || Constructor === undefined) {
655
+ return nativeSlice.call(O, k, fin);
656
+ }
657
+ }
658
+ result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
659
+ for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
660
+ result.length = n;
661
+ return result;
662
+ }
663
+ });
664
+
665
+ // a string of all valid unicode whitespaces
666
+ var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
667
+ '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
668
+
669
+ var whitespace = '[' + whitespaces + ']';
670
+ var ltrim = RegExp('^' + whitespace + whitespace + '*');
671
+ var rtrim = RegExp(whitespace + whitespace + '*$');
672
+
673
+ // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
674
+ var createMethod$1 = function (TYPE) {
675
+ return function ($this) {
676
+ var string = String(requireObjectCoercible($this));
677
+ if (TYPE & 1) string = string.replace(ltrim, '');
678
+ if (TYPE & 2) string = string.replace(rtrim, '');
679
+ return string;
680
+ };
681
+ };
682
+
683
+ var stringTrim = {
684
+ // `String.prototype.{ trimLeft, trimStart }` methods
685
+ // https://tc39.es/ecma262/#sec-string.prototype.trimstart
686
+ start: createMethod$1(1),
687
+ // `String.prototype.{ trimRight, trimEnd }` methods
688
+ // https://tc39.es/ecma262/#sec-string.prototype.trimend
689
+ end: createMethod$1(2),
690
+ // `String.prototype.trim` method
691
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
692
+ trim: createMethod$1(3)
693
+ };
694
+
695
+ var trim = stringTrim.trim;
696
+
697
+
698
+ var $parseInt = global_1.parseInt;
699
+ var hex = /^[+-]?0[Xx]/;
700
+ var FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22;
701
+
702
+ // `parseInt` method
703
+ // https://tc39.es/ecma262/#sec-parseint-string-radix
704
+ var numberParseInt = FORCED ? function parseInt(string, radix) {
705
+ var S = trim(String(string));
706
+ return $parseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));
707
+ } : $parseInt;
708
+
709
+ // `parseInt` method
710
+ // https://tc39.es/ecma262/#sec-parseint-string-radix
711
+ _export({ global: true, forced: parseInt != numberParseInt }, {
712
+ parseInt: numberParseInt
713
+ });
714
+
715
+ var arrayMethodIsStrict = function (METHOD_NAME, argument) {
716
+ var method = [][METHOD_NAME];
717
+ return !!method && fails(function () {
718
+ // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
719
+ method.call(null, argument || function () { throw 1; }, 1);
720
+ });
721
+ };
722
+
723
+ /* eslint-disable es/no-array-prototype-indexof -- required for testing */
724
+
725
+ var $indexOf = arrayIncludes.indexOf;
726
+
727
+
728
+ var nativeIndexOf = [].indexOf;
729
+
730
+ var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
731
+ var STRICT_METHOD = arrayMethodIsStrict('indexOf');
732
+
733
+ // `Array.prototype.indexOf` method
734
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
735
+ _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, {
736
+ indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
737
+ return NEGATIVE_ZERO
738
+ // convert -0 to +0
739
+ ? nativeIndexOf.apply(this, arguments) || 0
740
+ : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);
741
+ }
742
+ });
743
+
744
+ var aFunction = function (it) {
530
745
  if (typeof it != 'function') {
531
746
  throw TypeError(String(it) + ' is not a function');
532
747
  } return it;
533
748
  };
534
749
 
535
750
  // optional / simple context binding
536
- var bindContext = function (fn, that, length) {
537
- aFunction$1(fn);
751
+ var functionBindContext = function (fn, that, length) {
752
+ aFunction(fn);
538
753
  if (that === undefined) return fn;
539
754
  switch (length) {
540
755
  case 0: return function () {
@@ -556,44 +771,15 @@
556
771
  };
557
772
 
558
773
  // `ToObject` abstract operation
559
- // https://tc39.github.io/ecma262/#sec-toobject
774
+ // https://tc39.es/ecma262/#sec-toobject
560
775
  var toObject = function (argument) {
561
776
  return Object(requireObjectCoercible(argument));
562
777
  };
563
778
 
564
- // `IsArray` abstract operation
565
- // https://tc39.github.io/ecma262/#sec-isarray
566
- var isArray = Array.isArray || function isArray(arg) {
567
- return classofRaw(arg) == 'Array';
568
- };
569
-
570
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
571
- // Chrome 38 Symbol has incorrect toString conversion
572
- // eslint-disable-next-line no-undef
573
- return !String(Symbol());
574
- });
575
-
576
- var useSymbolAsUid = nativeSymbol
577
- // eslint-disable-next-line no-undef
578
- && !Symbol.sham
579
- // eslint-disable-next-line no-undef
580
- && typeof Symbol() == 'symbol';
581
-
582
- var WellKnownSymbolsStore = shared('wks');
583
- var Symbol$1 = global_1.Symbol;
584
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
585
-
586
- var wellKnownSymbol = function (name) {
587
- if (!has(WellKnownSymbolsStore, name)) {
588
- if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
589
- else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
590
- } return WellKnownSymbolsStore[name];
591
- };
592
-
593
779
  var SPECIES = wellKnownSymbol('species');
594
780
 
595
781
  // `ArraySpeciesCreate` abstract operation
596
- // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
782
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
597
783
  var arraySpeciesCreate = function (originalArray, length) {
598
784
  var C;
599
785
  if (isArray(originalArray)) {
@@ -609,22 +795,23 @@
609
795
 
610
796
  var push = [].push;
611
797
 
612
- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
613
- var createMethod$1 = function (TYPE) {
798
+ // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
799
+ var createMethod = function (TYPE) {
614
800
  var IS_MAP = TYPE == 1;
615
801
  var IS_FILTER = TYPE == 2;
616
802
  var IS_SOME = TYPE == 3;
617
803
  var IS_EVERY = TYPE == 4;
618
804
  var IS_FIND_INDEX = TYPE == 6;
805
+ var IS_FILTER_OUT = TYPE == 7;
619
806
  var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
620
807
  return function ($this, callbackfn, that, specificCreate) {
621
808
  var O = toObject($this);
622
809
  var self = indexedObject(O);
623
- var boundFunction = bindContext(callbackfn, that, 3);
810
+ var boundFunction = functionBindContext(callbackfn, that, 3);
624
811
  var length = toLength(self.length);
625
812
  var index = 0;
626
813
  var create = specificCreate || arraySpeciesCreate;
627
- var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
814
+ var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
628
815
  var value, result;
629
816
  for (;length > index; index++) if (NO_HOLES || index in self) {
630
817
  value = self[index];
@@ -636,7 +823,10 @@
636
823
  case 5: return value; // find
637
824
  case 6: return index; // findIndex
638
825
  case 2: push.call(target, value); // filter
639
- } else if (IS_EVERY) return false; // every
826
+ } else switch (TYPE) {
827
+ case 4: return false; // every
828
+ case 7: push.call(target, value); // filterOut
829
+ }
640
830
  }
641
831
  }
642
832
  return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
@@ -645,201 +835,45 @@
645
835
 
646
836
  var arrayIteration = {
647
837
  // `Array.prototype.forEach` method
648
- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
649
- forEach: createMethod$1(0),
838
+ // https://tc39.es/ecma262/#sec-array.prototype.foreach
839
+ forEach: createMethod(0),
650
840
  // `Array.prototype.map` method
651
- // https://tc39.github.io/ecma262/#sec-array.prototype.map
652
- map: createMethod$1(1),
841
+ // https://tc39.es/ecma262/#sec-array.prototype.map
842
+ map: createMethod(1),
653
843
  // `Array.prototype.filter` method
654
- // https://tc39.github.io/ecma262/#sec-array.prototype.filter
655
- filter: createMethod$1(2),
844
+ // https://tc39.es/ecma262/#sec-array.prototype.filter
845
+ filter: createMethod(2),
656
846
  // `Array.prototype.some` method
657
- // https://tc39.github.io/ecma262/#sec-array.prototype.some
658
- some: createMethod$1(3),
847
+ // https://tc39.es/ecma262/#sec-array.prototype.some
848
+ some: createMethod(3),
659
849
  // `Array.prototype.every` method
660
- // https://tc39.github.io/ecma262/#sec-array.prototype.every
661
- every: createMethod$1(4),
850
+ // https://tc39.es/ecma262/#sec-array.prototype.every
851
+ every: createMethod(4),
662
852
  // `Array.prototype.find` method
663
- // https://tc39.github.io/ecma262/#sec-array.prototype.find
664
- find: createMethod$1(5),
853
+ // https://tc39.es/ecma262/#sec-array.prototype.find
854
+ find: createMethod(5),
665
855
  // `Array.prototype.findIndex` method
666
- // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
667
- findIndex: createMethod$1(6)
668
- };
669
-
670
- var userAgent = getBuiltIn('navigator', 'userAgent') || '';
671
-
672
- var process = global_1.process;
673
- var versions = process && process.versions;
674
- var v8 = versions && versions.v8;
675
- var match, version;
676
-
677
- if (v8) {
678
- match = v8.split('.');
679
- version = match[0] + match[1];
680
- } else if (userAgent) {
681
- match = userAgent.match(/Edge\/(\d+)/);
682
- if (!match || match[1] >= 74) {
683
- match = userAgent.match(/Chrome\/(\d+)/);
684
- if (match) version = match[1];
685
- }
686
- }
687
-
688
- var v8Version = version && +version;
689
-
690
- var SPECIES$1 = wellKnownSymbol('species');
691
-
692
- var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
693
- // We can't use this feature detection in V8 since it causes
694
- // deoptimization and serious performance degradation
695
- // https://github.com/zloirock/core-js/issues/677
696
- return v8Version >= 51 || !fails(function () {
697
- var array = [];
698
- var constructor = array.constructor = {};
699
- constructor[SPECIES$1] = function () {
700
- return { foo: 1 };
701
- };
702
- return array[METHOD_NAME](Boolean).foo !== 1;
703
- });
856
+ // https://tc39.es/ecma262/#sec-array.prototype.findIndex
857
+ findIndex: createMethod(6),
858
+ // `Array.prototype.filterOut` method
859
+ // https://github.com/tc39/proposal-array-filtering
860
+ filterOut: createMethod(7)
704
861
  };
705
862
 
706
863
  var $filter = arrayIteration.filter;
707
864
 
708
865
 
709
-
710
866
  var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
711
- // Edge 14- issue
712
- var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {
713
- [].filter.call({ length: -1, 0: 1 }, function (it) { throw it; });
714
- });
715
867
 
716
868
  // `Array.prototype.filter` method
717
- // https://tc39.github.io/ecma262/#sec-array.prototype.filter
869
+ // https://tc39.es/ecma262/#sec-array.prototype.filter
718
870
  // with adding support of @@species
719
- _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
871
+ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
720
872
  filter: function filter(callbackfn /* , thisArg */) {
721
873
  return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
722
874
  }
723
875
  });
724
876
 
725
- var sloppyArrayMethod = function (METHOD_NAME, argument) {
726
- var method = [][METHOD_NAME];
727
- return !method || !fails(function () {
728
- // eslint-disable-next-line no-useless-call,no-throw-literal
729
- method.call(null, argument || function () { throw 1; }, 1);
730
- });
731
- };
732
-
733
- var $indexOf = arrayIncludes.indexOf;
734
-
735
-
736
- var nativeIndexOf = [].indexOf;
737
-
738
- var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
739
- var SLOPPY_METHOD = sloppyArrayMethod('indexOf');
740
-
741
- // `Array.prototype.indexOf` method
742
- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
743
- _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || SLOPPY_METHOD }, {
744
- indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
745
- return NEGATIVE_ZERO
746
- // convert -0 to +0
747
- ? nativeIndexOf.apply(this, arguments) || 0
748
- : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);
749
- }
750
- });
751
-
752
- var createProperty = function (object, key, value) {
753
- var propertyKey = toPrimitive(key);
754
- if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
755
- else object[propertyKey] = value;
756
- };
757
-
758
- var SPECIES$2 = wellKnownSymbol('species');
759
- var nativeSlice = [].slice;
760
- var max$1 = Math.max;
761
-
762
- // `Array.prototype.slice` method
763
- // https://tc39.github.io/ecma262/#sec-array.prototype.slice
764
- // fallback for not array-like ES3 strings and DOM objects
765
- _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('slice') }, {
766
- slice: function slice(start, end) {
767
- var O = toIndexedObject(this);
768
- var length = toLength(O.length);
769
- var k = toAbsoluteIndex(start, length);
770
- var fin = toAbsoluteIndex(end === undefined ? length : end, length);
771
- // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
772
- var Constructor, result, n;
773
- if (isArray(O)) {
774
- Constructor = O.constructor;
775
- // cross-realm fallback
776
- if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
777
- Constructor = undefined;
778
- } else if (isObject(Constructor)) {
779
- Constructor = Constructor[SPECIES$2];
780
- if (Constructor === null) Constructor = undefined;
781
- }
782
- if (Constructor === Array || Constructor === undefined) {
783
- return nativeSlice.call(O, k, fin);
784
- }
785
- }
786
- result = new (Constructor === undefined ? Array : Constructor)(max$1(fin - k, 0));
787
- for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
788
- result.length = n;
789
- return result;
790
- }
791
- });
792
-
793
- // a string of all valid unicode whitespaces
794
- // eslint-disable-next-line max-len
795
- var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
796
-
797
- var whitespace = '[' + whitespaces + ']';
798
- var ltrim = RegExp('^' + whitespace + whitespace + '*');
799
- var rtrim = RegExp(whitespace + whitespace + '*$');
800
-
801
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
802
- var createMethod$2 = function (TYPE) {
803
- return function ($this) {
804
- var string = String(requireObjectCoercible($this));
805
- if (TYPE & 1) string = string.replace(ltrim, '');
806
- if (TYPE & 2) string = string.replace(rtrim, '');
807
- return string;
808
- };
809
- };
810
-
811
- var stringTrim = {
812
- // `String.prototype.{ trimLeft, trimStart }` methods
813
- // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart
814
- start: createMethod$2(1),
815
- // `String.prototype.{ trimRight, trimEnd }` methods
816
- // https://tc39.github.io/ecma262/#sec-string.prototype.trimend
817
- end: createMethod$2(2),
818
- // `String.prototype.trim` method
819
- // https://tc39.github.io/ecma262/#sec-string.prototype.trim
820
- trim: createMethod$2(3)
821
- };
822
-
823
- var trim = stringTrim.trim;
824
-
825
-
826
- var nativeParseInt = global_1.parseInt;
827
- var hex = /^[+-]?0[Xx]/;
828
- var FORCED = nativeParseInt(whitespaces + '08') !== 8 || nativeParseInt(whitespaces + '0x16') !== 22;
829
-
830
- // `parseInt` method
831
- // https://tc39.github.io/ecma262/#sec-parseint-string-radix
832
- var _parseInt = FORCED ? function parseInt(string, radix) {
833
- var S = trim(String(string));
834
- return nativeParseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));
835
- } : nativeParseInt;
836
-
837
- // `parseInt` method
838
- // https://tc39.github.io/ecma262/#sec-parseint-string-radix
839
- _export({ global: true, forced: parseInt != _parseInt }, {
840
- parseInt: _parseInt
841
- });
842
-
843
877
  /**
844
878
  * @author doug-the-guy
845
879
  * @version v1.0.0
@@ -889,8 +923,8 @@
889
923
  *
890
924
  **/
891
925
 
892
- var Utils = $.fn.bootstrapTable.utils;
893
- $.extend($.fn.bootstrapTable.defaults, {
926
+ var Utils = $__default['default'].fn.bootstrapTable.utils;
927
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
894
928
  usePipeline: false,
895
929
  pipelineSize: 1000,
896
930
  // eslint-disable-next-line no-unused-vars
@@ -902,11 +936,11 @@
902
936
  return false;
903
937
  }
904
938
  });
905
- $.extend($.fn.bootstrapTable.Constructor.EVENTS, {
939
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.Constructor.EVENTS, {
906
940
  'cached-data-hit.bs.table': 'onCachedDataHit',
907
941
  'cached-data-reset.bs.table': 'onCachedDataReset'
908
942
  });
909
- var BootstrapTable = $.fn.bootstrapTable.Constructor;
943
+ var BootstrapTable = $__default['default'].fn.bootstrapTable.Constructor;
910
944
  var _init = BootstrapTable.prototype.init;
911
945
  var _onSearch = BootstrapTable.prototype.onSearch;
912
946
  var _onSort = BootstrapTable.prototype.onSort;
@@ -950,8 +984,8 @@
950
984
 
951
985
  BootstrapTable.prototype.onPageListChange = function (event) {
952
986
  /* rebuild cache window on page size change */
953
- var target = $(event.currentTarget);
954
- var newPageSize = parseInt(target.text());
987
+ var target = $__default['default'](event.currentTarget);
988
+ var newPageSize = parseInt(target.text(), 10);
955
989
  this.options.pipelineSize = this.calculatePipelineSize(this.options.pipelineSize, newPageSize);
956
990
  this.resetCache = true;
957
991
 
@@ -994,7 +1028,7 @@
994
1028
 
995
1029
  BootstrapTable.prototype.drawFromCache = function (offset, limit) {
996
1030
  /* draw rows from the cache using offset and limit */
997
- var res = $.extend(true, {}, this.cacheRequestJSON);
1031
+ var res = $__default['default'].extend(true, {}, this.cacheRequestJSON);
998
1032
  var drawStart = offset - this.cacheWindows[this.currWindow].lower;
999
1033
  var drawEnd = drawStart + limit;
1000
1034
  res.rows = res.rows.slice(drawStart, drawEnd);
@@ -1097,12 +1131,12 @@
1097
1131
  // continue base initServer code
1098
1132
 
1099
1133
 
1100
- if (!$.isEmptyObject(this.filterColumnsPartial)) {
1134
+ if (!$__default['default'].isEmptyObject(this.filterColumnsPartial)) {
1101
1135
  params.filter = JSON.stringify(this.filterColumnsPartial, null);
1102
1136
  }
1103
1137
 
1104
1138
  data = Utils.calculateObjectValue(this.options, this.options.queryParams, [params], data);
1105
- $.extend(data, query || {}); // false to stop request
1139
+ $__default['default'].extend(data, query || {}); // false to stop request
1106
1140
 
1107
1141
  if (data === false) {
1108
1142
  return;
@@ -1113,7 +1147,7 @@
1113
1147
  }
1114
1148
 
1115
1149
  var self = this;
1116
- request = $.extend({}, Utils.calculateObjectValue(null, this.options.ajaxOptions), {
1150
+ request = $__default['default'].extend({}, Utils.calculateObjectValue(null, this.options.ajaxOptions), {
1117
1151
  type: this.options.method,
1118
1152
  url: url || this.options.url,
1119
1153
  data: this.options.contentType === 'application/json' && this.options.method === 'post' ? JSON.stringify(data) : data,
@@ -1125,7 +1159,7 @@
1125
1159
 
1126
1160
  if (self.options.usePipeline) {
1127
1161
  // store entire request in cache
1128
- self.cacheRequestJSON = $.extend(true, {}, res); // this gets set in load() also but needs to be set before
1162
+ self.cacheRequestJSON = $__default['default'].extend(true, {}, res); // this gets set in load() also but needs to be set before
1129
1163
  // setting cacheWindows
1130
1164
 
1131
1165
  self.options.totalRows = res[self.options.totalField]; // if this is a search, potentially less results will be returned
@@ -1165,7 +1199,7 @@
1165
1199
  this._xhr.abort();
1166
1200
  }
1167
1201
 
1168
- this._xhr = $.ajax(request);
1202
+ this._xhr = $__default['default'].ajax(request);
1169
1203
  }
1170
1204
  };
1171
1205