bootstrap-table-rails 1.19.1 → 1.20.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/lib/bootstrap-table-rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/.DS_Store +0 -0
  5. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +1745 -938
  6. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +33 -1320
  7. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +34 -1321
  8. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +7 -6
  9. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +3722 -2300
  10. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1534 -600
  11. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +953 -371
  12. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1948 -1072
  13. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +976 -386
  14. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +989 -390
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +816 -293
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +1360 -664
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +1565 -766
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +9 -1
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +3382 -1203
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +1893 -892
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +993 -405
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +1366 -572
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +16 -8
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +1095 -487
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +1010 -381
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +1326 -538
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +924 -356
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +937 -369
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +1269 -459
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +998 -390
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +883 -319
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +816 -293
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +931 -363
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +1401 -705
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +931 -360
  36. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +802 -287
  37. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +802 -287
  38. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +810 -295
  39. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +802 -287
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +822 -307
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +802 -287
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +802 -287
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +802 -287
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +802 -287
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +802 -287
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +802 -287
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +802 -287
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +802 -287
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +802 -287
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +802 -287
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +802 -287
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +802 -287
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +802 -287
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +802 -287
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +802 -287
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +802 -287
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +802 -287
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +802 -287
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +805 -289
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +802 -287
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +1321 -0
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +802 -287
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +802 -287
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +802 -287
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +802 -287
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +802 -287
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +802 -287
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +827 -311
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +1321 -0
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +802 -287
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +802 -287
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +841 -287
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +841 -287
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +802 -287
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +802 -287
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +802 -287
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +802 -287
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +802 -287
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +802 -287
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +802 -287
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +802 -287
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +802 -287
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +802 -287
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +802 -287
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +802 -287
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +802 -287
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +802 -287
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +802 -287
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +802 -287
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +802 -287
  91. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +6 -5
  92. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +940 -370
  93. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +6 -5
  94. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +936 -350
  95. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +6 -5
  96. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +940 -354
  97. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +6 -5
  98. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +938 -367
  99. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +6 -5
  100. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +934 -348
  101. metadata +5 -4
  102. data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
@@ -1,1276 +1,14 @@
1
- function _defineProperty(obj, key, value) {
2
- if (key in obj) {
3
- Object.defineProperty(obj, key, {
4
- value: value,
5
- enumerable: true,
6
- configurable: true,
7
- writable: true
8
- });
9
- } else {
10
- obj[key] = value;
11
- }
12
-
13
- return obj;
14
- }
15
-
16
- function ownKeys$1(object, enumerableOnly) {
17
- var keys = Object.keys(object);
18
-
19
- if (Object.getOwnPropertySymbols) {
20
- var symbols = Object.getOwnPropertySymbols(object);
21
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
22
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
23
- });
24
- keys.push.apply(keys, symbols);
25
- }
26
-
27
- return keys;
28
- }
29
-
30
- function _objectSpread2(target) {
31
- for (var i = 1; i < arguments.length; i++) {
32
- var source = arguments[i] != null ? arguments[i] : {};
33
-
34
- if (i % 2) {
35
- ownKeys$1(Object(source), true).forEach(function (key) {
36
- _defineProperty(target, key, source[key]);
37
- });
38
- } else if (Object.getOwnPropertyDescriptors) {
39
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
40
- } else {
41
- ownKeys$1(Object(source)).forEach(function (key) {
42
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
43
- });
44
- }
45
- }
46
-
47
- return target;
48
- }
49
-
50
- function _toConsumableArray(arr) {
51
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
52
- }
53
-
54
- function _arrayWithoutHoles(arr) {
55
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
56
- }
57
-
58
- function _iterableToArray(iter) {
59
- if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
60
- }
61
-
62
- function _unsupportedIterableToArray(o, minLen) {
63
- if (!o) return;
64
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
65
- var n = Object.prototype.toString.call(o).slice(8, -1);
66
- if (n === "Object" && o.constructor) n = o.constructor.name;
67
- if (n === "Map" || n === "Set") return Array.from(o);
68
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
69
- }
70
-
71
- function _arrayLikeToArray(arr, len) {
72
- if (len == null || len > arr.length) len = arr.length;
73
-
74
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
75
-
76
- return arr2;
77
- }
78
-
79
- function _nonIterableSpread() {
80
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
81
- }
82
-
83
- function _createForOfIteratorHelper(o, allowArrayLike) {
84
- var it;
85
-
86
- if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
87
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
88
- if (it) o = it;
89
- var i = 0;
90
-
91
- var F = function () {};
92
-
93
- return {
94
- s: F,
95
- n: function () {
96
- if (i >= o.length) return {
97
- done: true
98
- };
99
- return {
100
- done: false,
101
- value: o[i++]
102
- };
103
- },
104
- e: function (e) {
105
- throw e;
106
- },
107
- f: F
108
- };
109
- }
110
-
111
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
112
- }
113
-
114
- var normalCompletion = true,
115
- didErr = false,
116
- err;
117
- return {
118
- s: function () {
119
- it = o[Symbol.iterator]();
120
- },
121
- n: function () {
122
- var step = it.next();
123
- normalCompletion = step.done;
124
- return step;
125
- },
126
- e: function (e) {
127
- didErr = true;
128
- err = e;
129
- },
130
- f: function () {
131
- try {
132
- if (!normalCompletion && it.return != null) it.return();
133
- } finally {
134
- if (didErr) throw err;
135
- }
136
- }
137
- };
138
- }
139
-
140
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
141
-
142
- function createCommonjsModule(fn, module) {
143
- return module = { exports: {} }, fn(module, module.exports), module.exports;
144
- }
145
-
146
- var check = function (it) {
147
- return it && it.Math == Math && it;
148
- };
149
-
150
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
151
- var global_1 =
152
- // eslint-disable-next-line es/no-global-this -- safe
153
- check(typeof globalThis == 'object' && globalThis) ||
154
- check(typeof window == 'object' && window) ||
155
- // eslint-disable-next-line no-restricted-globals -- safe
156
- check(typeof self == 'object' && self) ||
157
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
158
- // eslint-disable-next-line no-new-func -- fallback
159
- (function () { return this; })() || Function('return this')();
160
-
161
- var fails = function (exec) {
162
- try {
163
- return !!exec();
164
- } catch (error) {
165
- return true;
166
- }
167
- };
168
-
169
- // Detect IE8's incomplete defineProperty implementation
170
- var descriptors = !fails(function () {
171
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
172
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
173
- });
174
-
175
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
176
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
177
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
178
-
179
- // Nashorn ~ JDK8 bug
180
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
181
-
182
- // `Object.prototype.propertyIsEnumerable` method implementation
183
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
184
- var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
185
- var descriptor = getOwnPropertyDescriptor$1(this, V);
186
- return !!descriptor && descriptor.enumerable;
187
- } : $propertyIsEnumerable;
188
-
189
- var objectPropertyIsEnumerable = {
190
- f: f$4
191
- };
192
-
193
- var createPropertyDescriptor = function (bitmap, value) {
194
- return {
195
- enumerable: !(bitmap & 1),
196
- configurable: !(bitmap & 2),
197
- writable: !(bitmap & 4),
198
- value: value
199
- };
200
- };
201
-
202
- var toString = {}.toString;
203
-
204
- var classofRaw = function (it) {
205
- return toString.call(it).slice(8, -1);
206
- };
207
-
208
- var split = ''.split;
209
-
210
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
211
- var indexedObject = fails(function () {
212
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
213
- // eslint-disable-next-line no-prototype-builtins -- safe
214
- return !Object('z').propertyIsEnumerable(0);
215
- }) ? function (it) {
216
- return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
217
- } : Object;
218
-
219
- // `RequireObjectCoercible` abstract operation
220
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
221
- var requireObjectCoercible = function (it) {
222
- if (it == undefined) throw TypeError("Can't call method on " + it);
223
- return it;
224
- };
225
-
226
- // toObject with fallback for non-array-like ES3 strings
227
-
228
-
229
-
230
- var toIndexedObject = function (it) {
231
- return indexedObject(requireObjectCoercible(it));
232
- };
233
-
234
- var isObject = function (it) {
235
- return typeof it === 'object' ? it !== null : typeof it === 'function';
236
- };
237
-
238
- // `ToPrimitive` abstract operation
239
- // https://tc39.es/ecma262/#sec-toprimitive
240
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
241
- // and the second argument - flag - preferred type is a string
242
- var toPrimitive = function (input, PREFERRED_STRING) {
243
- if (!isObject(input)) return input;
244
- var fn, val;
245
- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
246
- if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
247
- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
248
- throw TypeError("Can't convert object to primitive value");
249
- };
250
-
251
- var hasOwnProperty = {}.hasOwnProperty;
252
-
253
- var has$1 = function (it, key) {
254
- return hasOwnProperty.call(it, key);
255
- };
256
-
257
- var document = global_1.document;
258
- // typeof document.createElement is 'object' in old IE
259
- var EXISTS = isObject(document) && isObject(document.createElement);
260
-
261
- var documentCreateElement = function (it) {
262
- return EXISTS ? document.createElement(it) : {};
263
- };
264
-
265
- // Thank's IE8 for his funny defineProperty
266
- var ie8DomDefine = !descriptors && !fails(function () {
267
- // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
268
- return Object.defineProperty(documentCreateElement('div'), 'a', {
269
- get: function () { return 7; }
270
- }).a != 7;
271
- });
272
-
273
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
274
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
275
-
276
- // `Object.getOwnPropertyDescriptor` method
277
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
278
- var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
279
- O = toIndexedObject(O);
280
- P = toPrimitive(P, true);
281
- if (ie8DomDefine) try {
282
- return $getOwnPropertyDescriptor(O, P);
283
- } catch (error) { /* empty */ }
284
- if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
285
- };
286
-
287
- var objectGetOwnPropertyDescriptor = {
288
- f: f$3
289
- };
290
-
291
- var anObject = function (it) {
292
- if (!isObject(it)) {
293
- throw TypeError(String(it) + ' is not an object');
294
- } return it;
295
- };
296
-
297
- // eslint-disable-next-line es/no-object-defineproperty -- safe
298
- var $defineProperty = Object.defineProperty;
299
-
300
- // `Object.defineProperty` method
301
- // https://tc39.es/ecma262/#sec-object.defineproperty
302
- var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
303
- anObject(O);
304
- P = toPrimitive(P, true);
305
- anObject(Attributes);
306
- if (ie8DomDefine) try {
307
- return $defineProperty(O, P, Attributes);
308
- } catch (error) { /* empty */ }
309
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
310
- if ('value' in Attributes) O[P] = Attributes.value;
311
- return O;
312
- };
313
-
314
- var objectDefineProperty = {
315
- f: f$2
316
- };
317
-
318
- var createNonEnumerableProperty = descriptors ? function (object, key, value) {
319
- return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
320
- } : function (object, key, value) {
321
- object[key] = value;
322
- return object;
323
- };
324
-
325
- var setGlobal = function (key, value) {
326
- try {
327
- createNonEnumerableProperty(global_1, key, value);
328
- } catch (error) {
329
- global_1[key] = value;
330
- } return value;
331
- };
332
-
333
- var SHARED = '__core-js_shared__';
334
- var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
335
-
336
- var sharedStore = store$1;
337
-
338
- var functionToString = Function.toString;
339
-
340
- // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
341
- if (typeof sharedStore.inspectSource != 'function') {
342
- sharedStore.inspectSource = function (it) {
343
- return functionToString.call(it);
344
- };
345
- }
346
-
347
- var inspectSource = sharedStore.inspectSource;
348
-
349
- var WeakMap$1 = global_1.WeakMap;
350
-
351
- var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
352
-
353
- var shared = createCommonjsModule(function (module) {
354
- (module.exports = function (key, value) {
355
- return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
356
- })('versions', []).push({
357
- version: '3.10.1',
358
- mode: 'global',
359
- copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
360
- });
361
- });
362
-
363
- var id = 0;
364
- var postfix = Math.random();
365
-
366
- var uid = function (key) {
367
- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
368
- };
369
-
370
- var keys = shared('keys');
371
-
372
- var sharedKey = function (key) {
373
- return keys[key] || (keys[key] = uid(key));
374
- };
375
-
376
- var hiddenKeys$1 = {};
377
-
378
- var WeakMap = global_1.WeakMap;
379
- var set, get, has;
380
-
381
- var enforce = function (it) {
382
- return has(it) ? get(it) : set(it, {});
383
- };
384
-
385
- var getterFor = function (TYPE) {
386
- return function (it) {
387
- var state;
388
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
389
- throw TypeError('Incompatible receiver, ' + TYPE + ' required');
390
- } return state;
391
- };
392
- };
393
-
394
- if (nativeWeakMap) {
395
- var store = sharedStore.state || (sharedStore.state = new WeakMap());
396
- var wmget = store.get;
397
- var wmhas = store.has;
398
- var wmset = store.set;
399
- set = function (it, metadata) {
400
- metadata.facade = it;
401
- wmset.call(store, it, metadata);
402
- return metadata;
403
- };
404
- get = function (it) {
405
- return wmget.call(store, it) || {};
406
- };
407
- has = function (it) {
408
- return wmhas.call(store, it);
409
- };
410
- } else {
411
- var STATE = sharedKey('state');
412
- hiddenKeys$1[STATE] = true;
413
- set = function (it, metadata) {
414
- metadata.facade = it;
415
- createNonEnumerableProperty(it, STATE, metadata);
416
- return metadata;
417
- };
418
- get = function (it) {
419
- return has$1(it, STATE) ? it[STATE] : {};
420
- };
421
- has = function (it) {
422
- return has$1(it, STATE);
423
- };
424
- }
425
-
426
- var internalState = {
427
- set: set,
428
- get: get,
429
- has: has,
430
- enforce: enforce,
431
- getterFor: getterFor
432
- };
433
-
434
- var redefine = createCommonjsModule(function (module) {
435
- var getInternalState = internalState.get;
436
- var enforceInternalState = internalState.enforce;
437
- var TEMPLATE = String(String).split('String');
438
-
439
- (module.exports = function (O, key, value, options) {
440
- var unsafe = options ? !!options.unsafe : false;
441
- var simple = options ? !!options.enumerable : false;
442
- var noTargetGet = options ? !!options.noTargetGet : false;
443
- var state;
444
- if (typeof value == 'function') {
445
- if (typeof key == 'string' && !has$1(value, 'name')) {
446
- createNonEnumerableProperty(value, 'name', key);
447
- }
448
- state = enforceInternalState(value);
449
- if (!state.source) {
450
- state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
451
- }
452
- }
453
- if (O === global_1) {
454
- if (simple) O[key] = value;
455
- else setGlobal(key, value);
456
- return;
457
- } else if (!unsafe) {
458
- delete O[key];
459
- } else if (!noTargetGet && O[key]) {
460
- simple = true;
461
- }
462
- if (simple) O[key] = value;
463
- else createNonEnumerableProperty(O, key, value);
464
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
465
- })(Function.prototype, 'toString', function toString() {
466
- return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
467
- });
468
- });
469
-
470
- var path = global_1;
471
-
472
- var aFunction = function (variable) {
473
- return typeof variable == 'function' ? variable : undefined;
474
- };
475
-
476
- var getBuiltIn = function (namespace, method) {
477
- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
478
- : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
479
- };
480
-
481
- var ceil = Math.ceil;
482
- var floor$1 = Math.floor;
483
-
484
- // `ToInteger` abstract operation
485
- // https://tc39.es/ecma262/#sec-tointeger
486
- var toInteger = function (argument) {
487
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$1 : ceil)(argument);
488
- };
489
-
490
- var min$2 = Math.min;
491
-
492
- // `ToLength` abstract operation
493
- // https://tc39.es/ecma262/#sec-tolength
494
- var toLength = function (argument) {
495
- return argument > 0 ? min$2(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
496
- };
497
-
498
- var max$1 = Math.max;
499
- var min$1 = Math.min;
500
-
501
- // Helper for a popular repeating case of the spec:
502
- // Let integer be ? ToInteger(index).
503
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
504
- var toAbsoluteIndex = function (index, length) {
505
- var integer = toInteger(index);
506
- return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
507
- };
508
-
509
- // `Array.prototype.{ indexOf, includes }` methods implementation
510
- var createMethod$1 = function (IS_INCLUDES) {
511
- return function ($this, el, fromIndex) {
512
- var O = toIndexedObject($this);
513
- var length = toLength(O.length);
514
- var index = toAbsoluteIndex(fromIndex, length);
515
- var value;
516
- // Array#includes uses SameValueZero equality algorithm
517
- // eslint-disable-next-line no-self-compare -- NaN check
518
- if (IS_INCLUDES && el != el) while (length > index) {
519
- value = O[index++];
520
- // eslint-disable-next-line no-self-compare -- NaN check
521
- if (value != value) return true;
522
- // Array#indexOf ignores holes, Array#includes - not
523
- } else for (;length > index; index++) {
524
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
525
- } return !IS_INCLUDES && -1;
526
- };
527
- };
528
-
529
- var arrayIncludes = {
530
- // `Array.prototype.includes` method
531
- // https://tc39.es/ecma262/#sec-array.prototype.includes
532
- includes: createMethod$1(true),
533
- // `Array.prototype.indexOf` method
534
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
535
- indexOf: createMethod$1(false)
536
- };
537
-
538
- var indexOf = arrayIncludes.indexOf;
539
-
540
-
541
- var objectKeysInternal = function (object, names) {
542
- var O = toIndexedObject(object);
543
- var i = 0;
544
- var result = [];
545
- var key;
546
- for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
547
- // Don't enum bug & hidden keys
548
- while (names.length > i) if (has$1(O, key = names[i++])) {
549
- ~indexOf(result, key) || result.push(key);
550
- }
551
- return result;
552
- };
553
-
554
- // IE8- don't enum bug keys
555
- var enumBugKeys = [
556
- 'constructor',
557
- 'hasOwnProperty',
558
- 'isPrototypeOf',
559
- 'propertyIsEnumerable',
560
- 'toLocaleString',
561
- 'toString',
562
- 'valueOf'
563
- ];
564
-
565
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
566
-
567
- // `Object.getOwnPropertyNames` method
568
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
569
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
570
- var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
571
- return objectKeysInternal(O, hiddenKeys);
572
- };
573
-
574
- var objectGetOwnPropertyNames = {
575
- f: f$1
576
- };
577
-
578
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
579
- var f = Object.getOwnPropertySymbols;
580
-
581
- var objectGetOwnPropertySymbols = {
582
- f: f
583
- };
584
-
585
- // all object keys, includes non-enumerable and symbols
586
- var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
587
- var keys = objectGetOwnPropertyNames.f(anObject(it));
588
- var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
589
- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
590
- };
591
-
592
- var copyConstructorProperties = function (target, source) {
593
- var keys = ownKeys(source);
594
- var defineProperty = objectDefineProperty.f;
595
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
596
- for (var i = 0; i < keys.length; i++) {
597
- var key = keys[i];
598
- if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
599
- }
600
- };
601
-
602
- var replacement = /#|\.prototype\./;
603
-
604
- var isForced = function (feature, detection) {
605
- var value = data[normalize(feature)];
606
- return value == POLYFILL ? true
607
- : value == NATIVE ? false
608
- : typeof detection == 'function' ? fails(detection)
609
- : !!detection;
610
- };
611
-
612
- var normalize = isForced.normalize = function (string) {
613
- return String(string).replace(replacement, '.').toLowerCase();
614
- };
615
-
616
- var data = isForced.data = {};
617
- var NATIVE = isForced.NATIVE = 'N';
618
- var POLYFILL = isForced.POLYFILL = 'P';
619
-
620
- var isForced_1 = isForced;
621
-
622
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
623
-
624
-
625
-
626
-
627
-
628
-
629
- /*
630
- options.target - name of the target object
631
- options.global - target is the global object
632
- options.stat - export as static methods of target
633
- options.proto - export as prototype methods of target
634
- options.real - real prototype method for the `pure` version
635
- options.forced - export even if the native feature is available
636
- options.bind - bind methods to the target, required for the `pure` version
637
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
638
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
639
- options.sham - add a flag to not completely full polyfills
640
- options.enumerable - export as enumerable property
641
- options.noTargetGet - prevent calling a getter on target
642
- */
643
- var _export = function (options, source) {
644
- var TARGET = options.target;
645
- var GLOBAL = options.global;
646
- var STATIC = options.stat;
647
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
648
- if (GLOBAL) {
649
- target = global_1;
650
- } else if (STATIC) {
651
- target = global_1[TARGET] || setGlobal(TARGET, {});
652
- } else {
653
- target = (global_1[TARGET] || {}).prototype;
654
- }
655
- if (target) for (key in source) {
656
- sourceProperty = source[key];
657
- if (options.noTargetGet) {
658
- descriptor = getOwnPropertyDescriptor(target, key);
659
- targetProperty = descriptor && descriptor.value;
660
- } else targetProperty = target[key];
661
- FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
662
- // contained in target
663
- if (!FORCED && targetProperty !== undefined) {
664
- if (typeof sourceProperty === typeof targetProperty) continue;
665
- copyConstructorProperties(sourceProperty, targetProperty);
666
- }
667
- // add a flag to not completely full polyfills
668
- if (options.sham || (targetProperty && targetProperty.sham)) {
669
- createNonEnumerableProperty(sourceProperty, 'sham', true);
670
- }
671
- // extend global
672
- redefine(target, key, sourceProperty, options);
673
- }
674
- };
675
-
676
- // `RegExp.prototype.flags` getter implementation
677
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
678
- var regexpFlags = function () {
679
- var that = anObject(this);
680
- var result = '';
681
- if (that.global) result += 'g';
682
- if (that.ignoreCase) result += 'i';
683
- if (that.multiline) result += 'm';
684
- if (that.dotAll) result += 's';
685
- if (that.unicode) result += 'u';
686
- if (that.sticky) result += 'y';
687
- return result;
688
- };
689
-
690
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
691
- // so we use an intermediate function.
692
- function RE(s, f) {
693
- return RegExp(s, f);
694
- }
695
-
696
- var UNSUPPORTED_Y$1 = fails(function () {
697
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
698
- var re = RE('a', 'y');
699
- re.lastIndex = 2;
700
- return re.exec('abcd') != null;
701
- });
702
-
703
- var BROKEN_CARET = fails(function () {
704
- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
705
- var re = RE('^r', 'gy');
706
- re.lastIndex = 2;
707
- return re.exec('str') != null;
708
- });
709
-
710
- var regexpStickyHelpers = {
711
- UNSUPPORTED_Y: UNSUPPORTED_Y$1,
712
- BROKEN_CARET: BROKEN_CARET
713
- };
714
-
715
- var nativeExec = RegExp.prototype.exec;
716
- var nativeReplace = shared('native-string-replace', String.prototype.replace);
717
-
718
- var patchedExec = nativeExec;
719
-
720
- var UPDATES_LAST_INDEX_WRONG = (function () {
721
- var re1 = /a/;
722
- var re2 = /b*/g;
723
- nativeExec.call(re1, 'a');
724
- nativeExec.call(re2, 'a');
725
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
726
- })();
727
-
728
- var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
729
-
730
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
731
- // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
732
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
733
-
734
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
735
-
736
- if (PATCH) {
737
- patchedExec = function exec(str) {
738
- var re = this;
739
- var lastIndex, reCopy, match, i;
740
- var sticky = UNSUPPORTED_Y && re.sticky;
741
- var flags = regexpFlags.call(re);
742
- var source = re.source;
743
- var charsAdded = 0;
744
- var strCopy = str;
745
-
746
- if (sticky) {
747
- flags = flags.replace('y', '');
748
- if (flags.indexOf('g') === -1) {
749
- flags += 'g';
750
- }
751
-
752
- strCopy = String(str).slice(re.lastIndex);
753
- // Support anchored sticky behavior.
754
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
755
- source = '(?: ' + source + ')';
756
- strCopy = ' ' + strCopy;
757
- charsAdded++;
758
- }
759
- // ^(? + rx + ) is needed, in combination with some str slicing, to
760
- // simulate the 'y' flag.
761
- reCopy = new RegExp('^(?:' + source + ')', flags);
762
- }
763
-
764
- if (NPCG_INCLUDED) {
765
- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
766
- }
767
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
768
-
769
- match = nativeExec.call(sticky ? reCopy : re, strCopy);
770
-
771
- if (sticky) {
772
- if (match) {
773
- match.input = match.input.slice(charsAdded);
774
- match[0] = match[0].slice(charsAdded);
775
- match.index = re.lastIndex;
776
- re.lastIndex += match[0].length;
777
- } else re.lastIndex = 0;
778
- } else if (UPDATES_LAST_INDEX_WRONG && match) {
779
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
780
- }
781
- if (NPCG_INCLUDED && match && match.length > 1) {
782
- // Fix browsers whose `exec` methods don't consistently return `undefined`
783
- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
784
- nativeReplace.call(match[0], reCopy, function () {
785
- for (i = 1; i < arguments.length - 2; i++) {
786
- if (arguments[i] === undefined) match[i] = undefined;
787
- }
788
- });
789
- }
790
-
791
- return match;
792
- };
793
- }
794
-
795
- var regexpExec = patchedExec;
796
-
797
- // `RegExp.prototype.exec` method
798
- // https://tc39.es/ecma262/#sec-regexp.prototype.exec
799
- _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
800
- exec: regexpExec
801
- });
802
-
803
- var engineIsNode = classofRaw(global_1.process) == 'process';
804
-
805
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
806
-
807
- var process = global_1.process;
808
- var versions = process && process.versions;
809
- var v8 = versions && versions.v8;
810
- var match, version;
811
-
812
- if (v8) {
813
- match = v8.split('.');
814
- version = match[0] + match[1];
815
- } else if (engineUserAgent) {
816
- match = engineUserAgent.match(/Edge\/(\d+)/);
817
- if (!match || match[1] >= 74) {
818
- match = engineUserAgent.match(/Chrome\/(\d+)/);
819
- if (match) version = match[1];
820
- }
821
- }
822
-
823
- var engineV8Version = version && +version;
824
-
825
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
826
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
827
- // eslint-disable-next-line es/no-symbol -- required for testing
828
- return !Symbol.sham &&
829
- // Chrome 38 Symbol has incorrect toString conversion
830
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
831
- (engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
832
- });
833
-
834
- /* eslint-disable es/no-symbol -- required for testing */
835
-
836
-
837
- var useSymbolAsUid = nativeSymbol
838
- && !Symbol.sham
839
- && typeof Symbol.iterator == 'symbol';
840
-
841
- var WellKnownSymbolsStore = shared('wks');
842
- var Symbol$1 = global_1.Symbol;
843
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
844
-
845
- var wellKnownSymbol = function (name) {
846
- if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
847
- if (nativeSymbol && has$1(Symbol$1, name)) {
848
- WellKnownSymbolsStore[name] = Symbol$1[name];
849
- } else {
850
- WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
851
- }
852
- } return WellKnownSymbolsStore[name];
853
- };
854
-
855
- // TODO: Remove from `core-js@4` since it's moved to entry points
856
-
857
-
858
-
859
-
860
-
861
-
862
- var SPECIES$2 = wellKnownSymbol('species');
863
-
864
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
865
- // #replace needs built-in support for named groups.
866
- // #match works fine because it just return the exec results, even if it has
867
- // a "grops" property.
868
- var re = /./;
869
- re.exec = function () {
870
- var result = [];
871
- result.groups = { a: '7' };
872
- return result;
873
- };
874
- return ''.replace(re, '$<a>') !== '7';
875
- });
876
-
877
- // IE <= 11 replaces $0 with the whole match, as if it was $&
878
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
879
- var REPLACE_KEEPS_$0 = (function () {
880
- // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
881
- return 'a'.replace(/./, '$0') === '$0';
882
- })();
883
-
884
- var REPLACE = wellKnownSymbol('replace');
885
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
886
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
887
- if (/./[REPLACE]) {
888
- return /./[REPLACE]('a', '$0') === '';
889
- }
890
- return false;
891
- })();
892
-
893
- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
894
- // Weex JS has frozen built-in prototypes, so use try / catch wrapper
895
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
896
- // eslint-disable-next-line regexp/no-empty-group -- required for testing
897
- var re = /(?:)/;
898
- var originalExec = re.exec;
899
- re.exec = function () { return originalExec.apply(this, arguments); };
900
- var result = 'ab'.split(re);
901
- return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
902
- });
903
-
904
- var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
905
- var SYMBOL = wellKnownSymbol(KEY);
906
-
907
- var DELEGATES_TO_SYMBOL = !fails(function () {
908
- // String methods call symbol-named RegEp methods
909
- var O = {};
910
- O[SYMBOL] = function () { return 7; };
911
- return ''[KEY](O) != 7;
912
- });
913
-
914
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
915
- // Symbol-named RegExp methods call .exec
916
- var execCalled = false;
917
- var re = /a/;
918
-
919
- if (KEY === 'split') {
920
- // We can't use real regex here since it causes deoptimization
921
- // and serious performance degradation in V8
922
- // https://github.com/zloirock/core-js/issues/306
923
- re = {};
924
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
925
- // a new one. We need to return the patched regex when creating the new one.
926
- re.constructor = {};
927
- re.constructor[SPECIES$2] = function () { return re; };
928
- re.flags = '';
929
- re[SYMBOL] = /./[SYMBOL];
930
- }
931
-
932
- re.exec = function () { execCalled = true; return null; };
933
-
934
- re[SYMBOL]('');
935
- return !execCalled;
936
- });
937
-
938
- if (
939
- !DELEGATES_TO_SYMBOL ||
940
- !DELEGATES_TO_EXEC ||
941
- (KEY === 'replace' && !(
942
- REPLACE_SUPPORTS_NAMED_GROUPS &&
943
- REPLACE_KEEPS_$0 &&
944
- !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
945
- )) ||
946
- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
947
- ) {
948
- var nativeRegExpMethod = /./[SYMBOL];
949
- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
950
- if (regexp.exec === RegExp.prototype.exec) {
951
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
952
- // The native String method already delegates to @@method (this
953
- // polyfilled function), leasing to infinite recursion.
954
- // We avoid it by directly calling the native @@method method.
955
- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
956
- }
957
- return { done: true, value: nativeMethod.call(str, regexp, arg2) };
958
- }
959
- return { done: false };
960
- }, {
961
- REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
962
- REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
963
- });
964
- var stringMethod = methods[0];
965
- var regexMethod = methods[1];
966
-
967
- redefine(String.prototype, KEY, stringMethod);
968
- redefine(RegExp.prototype, SYMBOL, length == 2
969
- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
970
- // 21.2.5.11 RegExp.prototype[@@split](string, limit)
971
- ? function (string, arg) { return regexMethod.call(string, this, arg); }
972
- // 21.2.5.6 RegExp.prototype[@@match](string)
973
- // 21.2.5.9 RegExp.prototype[@@search](string)
974
- : function (string) { return regexMethod.call(string, this); }
975
- );
976
- }
977
-
978
- if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
979
- };
980
-
981
- // `String.prototype.{ codePointAt, at }` methods implementation
982
- var createMethod = function (CONVERT_TO_STRING) {
983
- return function ($this, pos) {
984
- var S = String(requireObjectCoercible($this));
985
- var position = toInteger(pos);
986
- var size = S.length;
987
- var first, second;
988
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
989
- first = S.charCodeAt(position);
990
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
991
- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
992
- ? CONVERT_TO_STRING ? S.charAt(position) : first
993
- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
994
- };
995
- };
996
-
997
- var stringMultibyte = {
998
- // `String.prototype.codePointAt` method
999
- // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1000
- codeAt: createMethod(false),
1001
- // `String.prototype.at` method
1002
- // https://github.com/mathiasbynens/String.prototype.at
1003
- charAt: createMethod(true)
1004
- };
1005
-
1006
- var charAt = stringMultibyte.charAt;
1007
-
1008
- // `AdvanceStringIndex` abstract operation
1009
- // https://tc39.es/ecma262/#sec-advancestringindex
1010
- var advanceStringIndex = function (S, index, unicode) {
1011
- return index + (unicode ? charAt(S, index).length : 1);
1012
- };
1013
-
1014
- // `ToObject` abstract operation
1015
- // https://tc39.es/ecma262/#sec-toobject
1016
- var toObject = function (argument) {
1017
- return Object(requireObjectCoercible(argument));
1018
- };
1019
-
1020
- var floor = Math.floor;
1021
- var replace = ''.replace;
1022
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1023
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1024
-
1025
- // https://tc39.es/ecma262/#sec-getsubstitution
1026
- var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
1027
- var tailPos = position + matched.length;
1028
- var m = captures.length;
1029
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1030
- if (namedCaptures !== undefined) {
1031
- namedCaptures = toObject(namedCaptures);
1032
- symbols = SUBSTITUTION_SYMBOLS;
1033
- }
1034
- return replace.call(replacement, symbols, function (match, ch) {
1035
- var capture;
1036
- switch (ch.charAt(0)) {
1037
- case '$': return '$';
1038
- case '&': return matched;
1039
- case '`': return str.slice(0, position);
1040
- case "'": return str.slice(tailPos);
1041
- case '<':
1042
- capture = namedCaptures[ch.slice(1, -1)];
1043
- break;
1044
- default: // \d\d?
1045
- var n = +ch;
1046
- if (n === 0) return match;
1047
- if (n > m) {
1048
- var f = floor(n / 10);
1049
- if (f === 0) return match;
1050
- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1051
- return match;
1052
- }
1053
- capture = captures[n - 1];
1054
- }
1055
- return capture === undefined ? '' : capture;
1056
- });
1057
- };
1058
-
1059
- // `RegExpExec` abstract operation
1060
- // https://tc39.es/ecma262/#sec-regexpexec
1061
- var regexpExecAbstract = function (R, S) {
1062
- var exec = R.exec;
1063
- if (typeof exec === 'function') {
1064
- var result = exec.call(R, S);
1065
- if (typeof result !== 'object') {
1066
- throw TypeError('RegExp exec method returned something other than an Object or null');
1067
- }
1068
- return result;
1069
- }
1070
-
1071
- if (classofRaw(R) !== 'RegExp') {
1072
- throw TypeError('RegExp#exec called on incompatible receiver');
1073
- }
1074
-
1075
- return regexpExec.call(R, S);
1076
- };
1077
-
1078
- var max = Math.max;
1079
- var min = Math.min;
1080
-
1081
- var maybeToString = function (it) {
1082
- return it === undefined ? it : String(it);
1083
- };
1084
-
1085
- // @@replace logic
1086
- fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1087
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
1088
- var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
1089
- var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1090
-
1091
- return [
1092
- // `String.prototype.replace` method
1093
- // https://tc39.es/ecma262/#sec-string.prototype.replace
1094
- function replace(searchValue, replaceValue) {
1095
- var O = requireObjectCoercible(this);
1096
- var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
1097
- return replacer !== undefined
1098
- ? replacer.call(searchValue, O, replaceValue)
1099
- : nativeReplace.call(String(O), searchValue, replaceValue);
1100
- },
1101
- // `RegExp.prototype[@@replace]` method
1102
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1103
- function (regexp, replaceValue) {
1104
- if (
1105
- (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
1106
- (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
1107
- ) {
1108
- var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1109
- if (res.done) return res.value;
1110
- }
1111
-
1112
- var rx = anObject(regexp);
1113
- var S = String(this);
1114
-
1115
- var functionalReplace = typeof replaceValue === 'function';
1116
- if (!functionalReplace) replaceValue = String(replaceValue);
1117
-
1118
- var global = rx.global;
1119
- if (global) {
1120
- var fullUnicode = rx.unicode;
1121
- rx.lastIndex = 0;
1122
- }
1123
- var results = [];
1124
- while (true) {
1125
- var result = regexpExecAbstract(rx, S);
1126
- if (result === null) break;
1127
-
1128
- results.push(result);
1129
- if (!global) break;
1130
-
1131
- var matchStr = String(result[0]);
1132
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1133
- }
1134
-
1135
- var accumulatedResult = '';
1136
- var nextSourcePosition = 0;
1137
- for (var i = 0; i < results.length; i++) {
1138
- result = results[i];
1139
-
1140
- var matched = String(result[0]);
1141
- var position = max(min(toInteger(result.index), S.length), 0);
1142
- var captures = [];
1143
- // NOTE: This is equivalent to
1144
- // captures = result.slice(1).map(maybeToString)
1145
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1146
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1147
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1148
- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1149
- var namedCaptures = result.groups;
1150
- if (functionalReplace) {
1151
- var replacerArgs = [matched].concat(captures, position, S);
1152
- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1153
- var replacement = String(replaceValue.apply(undefined, replacerArgs));
1154
- } else {
1155
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1156
- }
1157
- if (position >= nextSourcePosition) {
1158
- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1159
- nextSourcePosition = position + matched.length;
1160
- }
1161
- }
1162
- return accumulatedResult + S.slice(nextSourcePosition);
1163
- }
1164
- ];
1165
- });
1166
-
1167
- // `IsArray` abstract operation
1168
- // https://tc39.es/ecma262/#sec-isarray
1169
- // eslint-disable-next-line es/no-array-isarray -- safe
1170
- var isArray = Array.isArray || function isArray(arg) {
1171
- return classofRaw(arg) == 'Array';
1172
- };
1173
-
1174
- var createProperty = function (object, key, value) {
1175
- var propertyKey = toPrimitive(key);
1176
- if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1177
- else object[propertyKey] = value;
1178
- };
1179
-
1180
- var SPECIES$1 = wellKnownSymbol('species');
1181
-
1182
- // `ArraySpeciesCreate` abstract operation
1183
- // https://tc39.es/ecma262/#sec-arrayspeciescreate
1184
- var arraySpeciesCreate = function (originalArray, length) {
1185
- var C;
1186
- if (isArray(originalArray)) {
1187
- C = originalArray.constructor;
1188
- // cross-realm fallback
1189
- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
1190
- else if (isObject(C)) {
1191
- C = C[SPECIES$1];
1192
- if (C === null) C = undefined;
1193
- }
1194
- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
1195
- };
1196
-
1197
- var SPECIES = wellKnownSymbol('species');
1198
-
1199
- var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1200
- // We can't use this feature detection in V8 since it causes
1201
- // deoptimization and serious performance degradation
1202
- // https://github.com/zloirock/core-js/issues/677
1203
- return engineV8Version >= 51 || !fails(function () {
1204
- var array = [];
1205
- var constructor = array.constructor = {};
1206
- constructor[SPECIES] = function () {
1207
- return { foo: 1 };
1208
- };
1209
- return array[METHOD_NAME](Boolean).foo !== 1;
1210
- });
1211
- };
1212
-
1213
- var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1214
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1215
- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1216
-
1217
- // We can't use this feature detection in V8 since it causes
1218
- // deoptimization and serious performance degradation
1219
- // https://github.com/zloirock/core-js/issues/679
1220
- var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
1221
- var array = [];
1222
- array[IS_CONCAT_SPREADABLE] = false;
1223
- return array.concat()[0] !== array;
1224
- });
1225
-
1226
- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
1227
-
1228
- var isConcatSpreadable = function (O) {
1229
- if (!isObject(O)) return false;
1230
- var spreadable = O[IS_CONCAT_SPREADABLE];
1231
- return spreadable !== undefined ? !!spreadable : isArray(O);
1232
- };
1233
-
1234
- var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1235
-
1236
- // `Array.prototype.concat` method
1237
- // https://tc39.es/ecma262/#sec-array.prototype.concat
1238
- // with adding support of @@isConcatSpreadable and @@species
1239
- _export({ target: 'Array', proto: true, forced: FORCED }, {
1240
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1241
- concat: function concat(arg) {
1242
- var O = toObject(this);
1243
- var A = arraySpeciesCreate(O, 0);
1244
- var n = 0;
1245
- var i, k, length, len, E;
1246
- for (i = -1, length = arguments.length; i < length; i++) {
1247
- E = i === -1 ? O : arguments[i];
1248
- if (isConcatSpreadable(E)) {
1249
- len = toLength(E.length);
1250
- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1251
- for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1252
- } else {
1253
- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1254
- createProperty(A, n++, E);
1255
- }
1256
- }
1257
- A.length = n;
1258
- return A;
1259
- }
1260
- });
1261
-
1262
1
  //
1263
2
  //
1264
3
  //
1265
4
  //
1266
- var $ = window.jQuery;
1267
5
 
1268
- var deepCopy = function deepCopy(arg) {
6
+ const $ = window.jQuery;
7
+ const deepCopy = arg => {
1269
8
  if (arg === undefined) {
1270
- return arg;
9
+ return arg
1271
10
  }
1272
-
1273
- return $.extend(true, Array.isArray(arg) ? [] : {}, arg);
11
+ return $.extend(true, Array.isArray(arg) ? [] : {}, arg)
1274
12
  };
1275
13
 
1276
14
  var script = {
@@ -1282,93 +20,68 @@ var script = {
1282
20
  },
1283
21
  data: {
1284
22
  type: [Array, Object],
1285
- default: function _default() {
1286
- return undefined;
23
+ default () {
24
+ return undefined
1287
25
  }
1288
26
  },
1289
27
  options: {
1290
28
  type: Object,
1291
- default: function _default() {
1292
- return {};
29
+ default () {
30
+ return {}
1293
31
  }
1294
32
  }
1295
33
  },
1296
- mounted: function mounted() {
1297
- var _this = this;
1298
-
34
+ mounted () {
1299
35
  this.$table = $(this.$el);
1300
- this.$table.on('all.bs.table', function (e, name, args) {
1301
- var eventName = $.fn.bootstrapTable.events[name];
1302
- eventName = eventName.replace(/([A-Z])/g, '-$1').toLowerCase();
1303
-
1304
- _this.$emit.apply(_this, ['on-all'].concat(_toConsumableArray(args)));
1305
36
 
1306
- _this.$emit.apply(_this, [eventName].concat(_toConsumableArray(args)));
37
+ this.$table.on('all.bs.table', (e, name, args) => {
38
+ let eventName = $.fn.bootstrapTable.events[name];
39
+ eventName = eventName.replace(/([A-Z])/g, '-$1').toLowerCase();
40
+ this.$emit('on-all', ...args);
41
+ this.$emit(eventName, ...args);
1307
42
  });
1308
43
 
1309
44
  this._initTable();
1310
45
  },
1311
- methods: _objectSpread2({
1312
- _initTable: function _initTable() {
1313
- var options = _objectSpread2(_objectSpread2({}, deepCopy(this.options)), {}, {
46
+ methods: {
47
+ _initTable () {
48
+ const options = {
49
+ ...deepCopy(this.options),
1314
50
  columns: deepCopy(this.columns),
1315
51
  data: deepCopy(this.data)
1316
- });
1317
-
52
+ };
1318
53
  if (!this._hasInit) {
1319
54
  this.$table.bootstrapTable(options);
1320
55
  this._hasInit = true;
1321
56
  } else {
1322
57
  this.refreshOptions(options);
1323
58
  }
1324
- }
1325
- }, function () {
1326
- var res = {};
1327
-
1328
- var _iterator = _createForOfIteratorHelper($.fn.bootstrapTable.methods),
1329
- _step;
1330
-
1331
- try {
1332
- var _loop = function _loop() {
1333
- var method = _step.value;
1334
-
1335
- res[method] = function () {
1336
- var _this$$table;
1337
-
1338
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1339
- args[_key] = arguments[_key];
1340
- }
1341
-
1342
- return (_this$$table = this.$table).bootstrapTable.apply(_this$$table, [method].concat(args));
59
+ },
60
+ ...(() => {
61
+ const res = {};
62
+ for (const method of $.fn.bootstrapTable.methods) {
63
+ res[method] = function (...args) {
64
+ return this.$table.bootstrapTable(method, ...args)
1343
65
  };
1344
- };
1345
-
1346
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
1347
- _loop();
1348
66
  }
1349
- } catch (err) {
1350
- _iterator.e(err);
1351
- } finally {
1352
- _iterator.f();
1353
- }
1354
-
1355
- return res;
1356
- }()),
67
+ return res
68
+ })()
69
+ },
1357
70
  watch: {
1358
71
  options: {
1359
- handler: function handler() {
72
+ handler () {
1360
73
  this._initTable();
1361
74
  },
1362
75
  deep: true
1363
76
  },
1364
77
  columns: {
1365
- handler: function handler() {
78
+ handler () {
1366
79
  this._initTable();
1367
80
  },
1368
81
  deep: true
1369
82
  },
1370
83
  data: {
1371
- handler: function handler() {
84
+ handler () {
1372
85
  this.load(deepCopy(this.data));
1373
86
  },
1374
87
  deep: true
@@ -1455,7 +168,7 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
1455
168
  const __vue_script__ = script;
1456
169
 
1457
170
  /* template */
1458
- var __vue_render__ = function() {
171
+ var __vue_render__ = function () {
1459
172
  var _vm = this;
1460
173
  var _h = _vm.$createElement;
1461
174
  var _c = _vm._self._c || _h;
@@ -1493,4 +206,4 @@ __vue_render__._withStripped = true;
1493
206
  undefined
1494
207
  );
1495
208
 
1496
- export default __vue_component__;
209
+ export { __vue_component__ as default };