bootstrap-table-rails 1.20.1 → 1.20.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) 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 +1117 -898
  6. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +31 -1773
  7. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +31 -1773
  8. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +1 -1
  9. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +1337 -773
  10. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +795 -462
  11. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +570 -304
  12. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +861 -479
  13. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +584 -310
  14. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +599 -318
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +464 -245
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +720 -403
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +1107 -736
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +1322 -754
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +918 -515
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +592 -318
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +700 -373
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +642 -356
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +600 -320
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +739 -395
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +543 -290
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +548 -291
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +719 -385
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +592 -318
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +492 -261
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +464 -245
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +543 -290
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +754 -418
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +551 -290
  34. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +464 -245
  35. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +464 -245
  36. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +464 -245
  37. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +464 -245
  38. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +464 -245
  39. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +464 -245
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +464 -245
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +464 -245
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +464 -245
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +464 -245
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +464 -245
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +464 -245
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +464 -245
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +464 -245
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +464 -245
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +464 -245
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +464 -245
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +464 -245
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +464 -245
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +464 -245
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +464 -245
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +464 -245
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +464 -245
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +464 -245
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +464 -245
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +464 -245
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +464 -245
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +464 -245
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +464 -245
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +464 -245
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +464 -245
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +464 -245
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +464 -245
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +464 -245
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +464 -245
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +464 -245
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +464 -245
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +464 -245
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +464 -245
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +464 -245
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +464 -245
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +464 -245
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +464 -245
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +464 -245
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +464 -245
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +464 -245
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +464 -245
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +464 -245
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +464 -245
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +464 -245
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +464 -245
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +464 -245
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +464 -245
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +464 -245
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +464 -245
  89. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +543 -291
  90. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +543 -291
  91. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +543 -291
  92. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +543 -291
  93. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +543 -291
  94. metadata +1 -1
@@ -4,1734 +4,17 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BootstrapTable = factory());
5
5
  })(this, (function () { 'use strict';
6
6
 
7
- function ownKeys$1(object, enumerableOnly) {
8
- var keys = Object.keys(object);
9
-
10
- if (Object.getOwnPropertySymbols) {
11
- var symbols = Object.getOwnPropertySymbols(object);
12
- enumerableOnly && (symbols = symbols.filter(function (sym) {
13
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
14
- })), keys.push.apply(keys, symbols);
15
- }
16
-
17
- return keys;
18
- }
19
-
20
- function _objectSpread2(target) {
21
- for (var i = 1; i < arguments.length; i++) {
22
- var source = null != arguments[i] ? arguments[i] : {};
23
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
24
- _defineProperty(target, key, source[key]);
25
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
26
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
27
- });
28
- }
29
-
30
- return target;
31
- }
32
-
33
- function _defineProperty(obj, key, value) {
34
- if (key in obj) {
35
- Object.defineProperty(obj, key, {
36
- value: value,
37
- enumerable: true,
38
- configurable: true,
39
- writable: true
40
- });
41
- } else {
42
- obj[key] = value;
43
- }
44
-
45
- return obj;
46
- }
47
-
48
- function _toConsumableArray(arr) {
49
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
50
- }
51
-
52
- function _arrayWithoutHoles(arr) {
53
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
54
- }
55
-
56
- function _iterableToArray(iter) {
57
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
58
- }
59
-
60
- function _unsupportedIterableToArray(o, minLen) {
61
- if (!o) return;
62
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
63
- var n = Object.prototype.toString.call(o).slice(8, -1);
64
- if (n === "Object" && o.constructor) n = o.constructor.name;
65
- if (n === "Map" || n === "Set") return Array.from(o);
66
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
67
- }
68
-
69
- function _arrayLikeToArray(arr, len) {
70
- if (len == null || len > arr.length) len = arr.length;
71
-
72
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
73
-
74
- return arr2;
75
- }
76
-
77
- function _nonIterableSpread() {
78
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
79
- }
80
-
81
- function _createForOfIteratorHelper(o, allowArrayLike) {
82
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
83
-
84
- if (!it) {
85
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
86
- if (it) o = it;
87
- var i = 0;
88
-
89
- var F = function () {};
90
-
91
- return {
92
- s: F,
93
- n: function () {
94
- if (i >= o.length) return {
95
- done: true
96
- };
97
- return {
98
- done: false,
99
- value: o[i++]
100
- };
101
- },
102
- e: function (e) {
103
- throw e;
104
- },
105
- f: F
106
- };
107
- }
108
-
109
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
110
- }
111
-
112
- var normalCompletion = true,
113
- didErr = false,
114
- err;
115
- return {
116
- s: function () {
117
- it = it.call(o);
118
- },
119
- n: function () {
120
- var step = it.next();
121
- normalCompletion = step.done;
122
- return step;
123
- },
124
- e: function (e) {
125
- didErr = true;
126
- err = e;
127
- },
128
- f: function () {
129
- try {
130
- if (!normalCompletion && it.return != null) it.return();
131
- } finally {
132
- if (didErr) throw err;
133
- }
134
- }
135
- };
136
- }
137
-
138
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
139
-
140
- function createCommonjsModule(fn, module) {
141
- return module = { exports: {} }, fn(module, module.exports), module.exports;
142
- }
143
-
144
- var check = function (it) {
145
- return it && it.Math == Math && it;
146
- };
147
-
148
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
149
- var global_1 =
150
- // eslint-disable-next-line es-x/no-global-this -- safe
151
- check(typeof globalThis == 'object' && globalThis) ||
152
- check(typeof window == 'object' && window) ||
153
- // eslint-disable-next-line no-restricted-globals -- safe
154
- check(typeof self == 'object' && self) ||
155
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
156
- // eslint-disable-next-line no-new-func -- fallback
157
- (function () { return this; })() || Function('return this')();
158
-
159
- var fails = function (exec) {
160
- try {
161
- return !!exec();
162
- } catch (error) {
163
- return true;
164
- }
165
- };
166
-
167
- // Detect IE8's incomplete defineProperty implementation
168
- var descriptors = !fails(function () {
169
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
170
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
171
- });
172
-
173
- var functionBindNative = !fails(function () {
174
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
175
- var test = (function () { /* empty */ }).bind();
176
- // eslint-disable-next-line no-prototype-builtins -- safe
177
- return typeof test != 'function' || test.hasOwnProperty('prototype');
178
- });
179
-
180
- var call$2 = Function.prototype.call;
181
-
182
- var functionCall = functionBindNative ? call$2.bind(call$2) : function () {
183
- return call$2.apply(call$2, arguments);
184
- };
185
-
186
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
187
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
188
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
189
-
190
- // Nashorn ~ JDK8 bug
191
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
192
-
193
- // `Object.prototype.propertyIsEnumerable` method implementation
194
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
195
- var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
196
- var descriptor = getOwnPropertyDescriptor$1(this, V);
197
- return !!descriptor && descriptor.enumerable;
198
- } : $propertyIsEnumerable;
199
-
200
- var objectPropertyIsEnumerable = {
201
- f: f$5
202
- };
203
-
204
- var createPropertyDescriptor = function (bitmap, value) {
205
- return {
206
- enumerable: !(bitmap & 1),
207
- configurable: !(bitmap & 2),
208
- writable: !(bitmap & 4),
209
- value: value
210
- };
211
- };
212
-
213
- var FunctionPrototype$2 = Function.prototype;
214
- var bind = FunctionPrototype$2.bind;
215
- var call$1 = FunctionPrototype$2.call;
216
- var uncurryThis = functionBindNative && bind.bind(call$1, call$1);
217
-
218
- var functionUncurryThis = functionBindNative ? function (fn) {
219
- return fn && uncurryThis(fn);
220
- } : function (fn) {
221
- return fn && function () {
222
- return call$1.apply(fn, arguments);
223
- };
224
- };
225
-
226
- var toString$1 = functionUncurryThis({}.toString);
227
- var stringSlice$4 = functionUncurryThis(''.slice);
228
-
229
- var classofRaw = function (it) {
230
- return stringSlice$4(toString$1(it), 8, -1);
231
- };
232
-
233
- var Object$4 = global_1.Object;
234
- var split = functionUncurryThis(''.split);
235
-
236
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
237
- var indexedObject = fails(function () {
238
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
239
- // eslint-disable-next-line no-prototype-builtins -- safe
240
- return !Object$4('z').propertyIsEnumerable(0);
241
- }) ? function (it) {
242
- return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
243
- } : Object$4;
244
-
245
- var TypeError$9 = global_1.TypeError;
246
-
247
- // `RequireObjectCoercible` abstract operation
248
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
249
- var requireObjectCoercible = function (it) {
250
- if (it == undefined) throw TypeError$9("Can't call method on " + it);
251
- return it;
252
- };
253
-
254
- // toObject with fallback for non-array-like ES3 strings
255
-
256
-
257
-
258
- var toIndexedObject = function (it) {
259
- return indexedObject(requireObjectCoercible(it));
260
- };
261
-
262
- // `IsCallable` abstract operation
263
- // https://tc39.es/ecma262/#sec-iscallable
264
- var isCallable = function (argument) {
265
- return typeof argument == 'function';
266
- };
267
-
268
- var isObject = function (it) {
269
- return typeof it == 'object' ? it !== null : isCallable(it);
270
- };
271
-
272
- var aFunction = function (argument) {
273
- return isCallable(argument) ? argument : undefined;
274
- };
275
-
276
- var getBuiltIn = function (namespace, method) {
277
- return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
278
- };
279
-
280
- var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
281
-
282
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
283
-
284
- var process = global_1.process;
285
- var Deno = global_1.Deno;
286
- var versions = process && process.versions || Deno && Deno.version;
287
- var v8 = versions && versions.v8;
288
- var match, version;
289
-
290
- if (v8) {
291
- match = v8.split('.');
292
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
293
- // but their correct versions are not interesting for us
294
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
295
- }
296
-
297
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
298
- // so check `userAgent` even if `.v8` exists, but 0
299
- if (!version && engineUserAgent) {
300
- match = engineUserAgent.match(/Edge\/(\d+)/);
301
- if (!match || match[1] >= 74) {
302
- match = engineUserAgent.match(/Chrome\/(\d+)/);
303
- if (match) version = +match[1];
304
- }
305
- }
306
-
307
- var engineV8Version = version;
308
-
309
- /* eslint-disable es-x/no-symbol -- required for testing */
310
-
311
-
312
-
313
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
314
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
315
- var symbol = Symbol();
316
- // Chrome 38 Symbol has incorrect toString conversion
317
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
318
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
319
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
320
- !Symbol.sham && engineV8Version && engineV8Version < 41;
321
- });
322
-
323
- /* eslint-disable es-x/no-symbol -- required for testing */
324
-
325
-
326
- var useSymbolAsUid = nativeSymbol
327
- && !Symbol.sham
328
- && typeof Symbol.iterator == 'symbol';
329
-
330
- var Object$3 = global_1.Object;
331
-
332
- var isSymbol = useSymbolAsUid ? function (it) {
333
- return typeof it == 'symbol';
334
- } : function (it) {
335
- var $Symbol = getBuiltIn('Symbol');
336
- return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
337
- };
338
-
339
- var String$3 = global_1.String;
340
-
341
- var tryToString = function (argument) {
342
- try {
343
- return String$3(argument);
344
- } catch (error) {
345
- return 'Object';
346
- }
347
- };
348
-
349
- var TypeError$8 = global_1.TypeError;
350
-
351
- // `Assert: IsCallable(argument) is true`
352
- var aCallable = function (argument) {
353
- if (isCallable(argument)) return argument;
354
- throw TypeError$8(tryToString(argument) + ' is not a function');
355
- };
356
-
357
- // `GetMethod` abstract operation
358
- // https://tc39.es/ecma262/#sec-getmethod
359
- var getMethod = function (V, P) {
360
- var func = V[P];
361
- return func == null ? undefined : aCallable(func);
362
- };
363
-
364
- var TypeError$7 = global_1.TypeError;
365
-
366
- // `OrdinaryToPrimitive` abstract operation
367
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
368
- var ordinaryToPrimitive = function (input, pref) {
369
- var fn, val;
370
- if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
371
- if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
372
- if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
373
- throw TypeError$7("Can't convert object to primitive value");
374
- };
375
-
376
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
377
- var defineProperty = Object.defineProperty;
378
-
379
- var setGlobal = function (key, value) {
380
- try {
381
- defineProperty(global_1, key, { value: value, configurable: true, writable: true });
382
- } catch (error) {
383
- global_1[key] = value;
384
- } return value;
385
- };
386
-
387
- var SHARED = '__core-js_shared__';
388
- var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
389
-
390
- var sharedStore = store$1;
391
-
392
- var shared = createCommonjsModule(function (module) {
393
- (module.exports = function (key, value) {
394
- return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
395
- })('versions', []).push({
396
- version: '3.22.4',
397
- mode: 'global',
398
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
399
- license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
400
- source: 'https://github.com/zloirock/core-js'
401
- });
402
- });
403
-
404
- var Object$2 = global_1.Object;
405
-
406
- // `ToObject` abstract operation
407
- // https://tc39.es/ecma262/#sec-toobject
408
- var toObject = function (argument) {
409
- return Object$2(requireObjectCoercible(argument));
410
- };
411
-
412
- var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
413
-
414
- // `HasOwnProperty` abstract operation
415
- // https://tc39.es/ecma262/#sec-hasownproperty
416
- // eslint-disable-next-line es-x/no-object-hasown -- safe
417
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
418
- return hasOwnProperty(toObject(it), key);
419
- };
420
-
421
- var id = 0;
422
- var postfix = Math.random();
423
- var toString = functionUncurryThis(1.0.toString);
424
-
425
- var uid = function (key) {
426
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
427
- };
428
-
429
- var WellKnownSymbolsStore = shared('wks');
430
- var Symbol$1 = global_1.Symbol;
431
- var symbolFor = Symbol$1 && Symbol$1['for'];
432
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
433
-
434
- var wellKnownSymbol = function (name) {
435
- if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
436
- var description = 'Symbol.' + name;
437
- if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
438
- WellKnownSymbolsStore[name] = Symbol$1[name];
439
- } else if (useSymbolAsUid && symbolFor) {
440
- WellKnownSymbolsStore[name] = symbolFor(description);
441
- } else {
442
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
443
- }
444
- } return WellKnownSymbolsStore[name];
445
- };
446
-
447
- var TypeError$6 = global_1.TypeError;
448
- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
449
-
450
- // `ToPrimitive` abstract operation
451
- // https://tc39.es/ecma262/#sec-toprimitive
452
- var toPrimitive = function (input, pref) {
453
- if (!isObject(input) || isSymbol(input)) return input;
454
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
455
- var result;
456
- if (exoticToPrim) {
457
- if (pref === undefined) pref = 'default';
458
- result = functionCall(exoticToPrim, input, pref);
459
- if (!isObject(result) || isSymbol(result)) return result;
460
- throw TypeError$6("Can't convert object to primitive value");
461
- }
462
- if (pref === undefined) pref = 'number';
463
- return ordinaryToPrimitive(input, pref);
464
- };
465
-
466
- // `ToPropertyKey` abstract operation
467
- // https://tc39.es/ecma262/#sec-topropertykey
468
- var toPropertyKey = function (argument) {
469
- var key = toPrimitive(argument, 'string');
470
- return isSymbol(key) ? key : key + '';
471
- };
472
-
473
- var document$1 = global_1.document;
474
- // typeof document.createElement is 'object' in old IE
475
- var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
476
-
477
- var documentCreateElement = function (it) {
478
- return EXISTS$1 ? document$1.createElement(it) : {};
479
- };
480
-
481
- // Thanks to IE8 for its funny defineProperty
482
- var ie8DomDefine = !descriptors && !fails(function () {
483
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
484
- return Object.defineProperty(documentCreateElement('div'), 'a', {
485
- get: function () { return 7; }
486
- }).a != 7;
487
- });
488
-
489
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
490
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
491
-
492
- // `Object.getOwnPropertyDescriptor` method
493
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
494
- var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
495
- O = toIndexedObject(O);
496
- P = toPropertyKey(P);
497
- if (ie8DomDefine) try {
498
- return $getOwnPropertyDescriptor$1(O, P);
499
- } catch (error) { /* empty */ }
500
- if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
501
- };
502
-
503
- var objectGetOwnPropertyDescriptor = {
504
- f: f$4
505
- };
506
-
507
- // V8 ~ Chrome 36-
508
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
509
- var v8PrototypeDefineBug = descriptors && fails(function () {
510
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
511
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
512
- value: 42,
513
- writable: false
514
- }).prototype != 42;
515
- });
516
-
517
- var String$2 = global_1.String;
518
- var TypeError$5 = global_1.TypeError;
519
-
520
- // `Assert: Type(argument) is Object`
521
- var anObject = function (argument) {
522
- if (isObject(argument)) return argument;
523
- throw TypeError$5(String$2(argument) + ' is not an object');
524
- };
525
-
526
- var TypeError$4 = global_1.TypeError;
527
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
528
- var $defineProperty = Object.defineProperty;
529
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
530
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
531
- var ENUMERABLE = 'enumerable';
532
- var CONFIGURABLE$1 = 'configurable';
533
- var WRITABLE = 'writable';
534
-
535
- // `Object.defineProperty` method
536
- // https://tc39.es/ecma262/#sec-object.defineproperty
537
- var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
538
- anObject(O);
539
- P = toPropertyKey(P);
540
- anObject(Attributes);
541
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
542
- var current = $getOwnPropertyDescriptor(O, P);
543
- if (current && current[WRITABLE]) {
544
- O[P] = Attributes.value;
545
- Attributes = {
546
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
547
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
548
- writable: false
549
- };
550
- }
551
- } return $defineProperty(O, P, Attributes);
552
- } : $defineProperty : function defineProperty(O, P, Attributes) {
553
- anObject(O);
554
- P = toPropertyKey(P);
555
- anObject(Attributes);
556
- if (ie8DomDefine) try {
557
- return $defineProperty(O, P, Attributes);
558
- } catch (error) { /* empty */ }
559
- if ('get' in Attributes || 'set' in Attributes) throw TypeError$4('Accessors not supported');
560
- if ('value' in Attributes) O[P] = Attributes.value;
561
- return O;
562
- };
563
-
564
- var objectDefineProperty = {
565
- f: f$3
566
- };
567
-
568
- var createNonEnumerableProperty = descriptors ? function (object, key, value) {
569
- return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
570
- } : function (object, key, value) {
571
- object[key] = value;
572
- return object;
573
- };
574
-
575
- var FunctionPrototype$1 = Function.prototype;
576
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
577
- var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
578
-
579
- var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
580
- // additional protection from minified / mangled / dropped function names
581
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
582
- var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
583
-
584
- var functionName = {
585
- EXISTS: EXISTS,
586
- PROPER: PROPER,
587
- CONFIGURABLE: CONFIGURABLE
588
- };
589
-
590
- var functionToString = functionUncurryThis(Function.toString);
591
-
592
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
593
- if (!isCallable(sharedStore.inspectSource)) {
594
- sharedStore.inspectSource = function (it) {
595
- return functionToString(it);
596
- };
597
- }
598
-
599
- var inspectSource = sharedStore.inspectSource;
600
-
601
- var WeakMap$1 = global_1.WeakMap;
602
-
603
- var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
604
-
605
- var keys = shared('keys');
606
-
607
- var sharedKey = function (key) {
608
- return keys[key] || (keys[key] = uid(key));
609
- };
610
-
611
- var hiddenKeys$1 = {};
612
-
613
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
614
- var TypeError$3 = global_1.TypeError;
615
- var WeakMap = global_1.WeakMap;
616
- var set, get, has;
617
-
618
- var enforce = function (it) {
619
- return has(it) ? get(it) : set(it, {});
620
- };
621
-
622
- var getterFor = function (TYPE) {
623
- return function (it) {
624
- var state;
625
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
626
- throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');
627
- } return state;
628
- };
629
- };
630
-
631
- if (nativeWeakMap || sharedStore.state) {
632
- var store = sharedStore.state || (sharedStore.state = new WeakMap());
633
- var wmget = functionUncurryThis(store.get);
634
- var wmhas = functionUncurryThis(store.has);
635
- var wmset = functionUncurryThis(store.set);
636
- set = function (it, metadata) {
637
- if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
638
- metadata.facade = it;
639
- wmset(store, it, metadata);
640
- return metadata;
641
- };
642
- get = function (it) {
643
- return wmget(store, it) || {};
644
- };
645
- has = function (it) {
646
- return wmhas(store, it);
647
- };
648
- } else {
649
- var STATE = sharedKey('state');
650
- hiddenKeys$1[STATE] = true;
651
- set = function (it, metadata) {
652
- if (hasOwnProperty_1(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
653
- metadata.facade = it;
654
- createNonEnumerableProperty(it, STATE, metadata);
655
- return metadata;
656
- };
657
- get = function (it) {
658
- return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
659
- };
660
- has = function (it) {
661
- return hasOwnProperty_1(it, STATE);
662
- };
663
- }
664
-
665
- var internalState = {
666
- set: set,
667
- get: get,
668
- has: has,
669
- enforce: enforce,
670
- getterFor: getterFor
671
- };
672
-
673
- var makeBuiltIn_1 = createCommonjsModule(function (module) {
674
- var defineProperty = objectDefineProperty.f;
675
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
676
-
677
-
678
-
679
- var enforceInternalState = internalState.enforce;
680
- var getInternalState = internalState.get;
681
-
682
- var CONFIGURABLE_LENGTH = !fails(function () {
683
- return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
684
- });
685
-
686
- var TEMPLATE = String(String).split('String');
687
-
688
- var makeBuiltIn = module.exports = function (value, name, options) {
689
- if (String(name).slice(0, 7) === 'Symbol(') {
690
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
691
- }
692
- if (options && options.getter) name = 'get ' + name;
693
- if (options && options.setter) name = 'set ' + name;
694
- if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
695
- defineProperty(value, 'name', { value: name, configurable: true });
696
- }
697
- if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
698
- defineProperty(value, 'length', { value: options.arity });
699
- }
700
- var state = enforceInternalState(value);
701
- if (!hasOwnProperty_1(state, 'source')) {
702
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
703
- } return value;
704
- };
705
-
706
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
707
- // eslint-disable-next-line no-extend-native -- required
708
- Function.prototype.toString = makeBuiltIn(function toString() {
709
- return isCallable(this) && getInternalState(this).source || inspectSource(this);
710
- }, 'toString');
711
- });
712
-
713
- var defineBuiltIn = function (O, key, value, options) {
714
- var unsafe = options ? !!options.unsafe : false;
715
- var simple = options ? !!options.enumerable : false;
716
- var noTargetGet = options ? !!options.noTargetGet : false;
717
- var name = options && options.name !== undefined ? options.name : key;
718
- if (isCallable(value)) makeBuiltIn_1(value, name, options);
719
- if (O === global_1) {
720
- if (simple) O[key] = value;
721
- else setGlobal(key, value);
722
- return O;
723
- } else if (!unsafe) {
724
- delete O[key];
725
- } else if (!noTargetGet && O[key]) {
726
- simple = true;
727
- }
728
- if (simple) O[key] = value;
729
- else createNonEnumerableProperty(O, key, value);
730
- return O;
731
- };
732
-
733
- var ceil = Math.ceil;
734
- var floor$1 = Math.floor;
735
-
736
- // `ToIntegerOrInfinity` abstract operation
737
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
738
- var toIntegerOrInfinity = function (argument) {
739
- var number = +argument;
740
- // eslint-disable-next-line no-self-compare -- safe
741
- return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
742
- };
743
-
744
- var max$1 = Math.max;
745
- var min$2 = Math.min;
746
-
747
- // Helper for a popular repeating case of the spec:
748
- // Let integer be ? ToInteger(index).
749
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
750
- var toAbsoluteIndex = function (index, length) {
751
- var integer = toIntegerOrInfinity(index);
752
- return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
753
- };
754
-
755
- var min$1 = Math.min;
756
-
757
- // `ToLength` abstract operation
758
- // https://tc39.es/ecma262/#sec-tolength
759
- var toLength = function (argument) {
760
- return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
761
- };
762
-
763
- // `LengthOfArrayLike` abstract operation
764
- // https://tc39.es/ecma262/#sec-lengthofarraylike
765
- var lengthOfArrayLike = function (obj) {
766
- return toLength(obj.length);
767
- };
768
-
769
- // `Array.prototype.{ indexOf, includes }` methods implementation
770
- var createMethod$1 = function (IS_INCLUDES) {
771
- return function ($this, el, fromIndex) {
772
- var O = toIndexedObject($this);
773
- var length = lengthOfArrayLike(O);
774
- var index = toAbsoluteIndex(fromIndex, length);
775
- var value;
776
- // Array#includes uses SameValueZero equality algorithm
777
- // eslint-disable-next-line no-self-compare -- NaN check
778
- if (IS_INCLUDES && el != el) while (length > index) {
779
- value = O[index++];
780
- // eslint-disable-next-line no-self-compare -- NaN check
781
- if (value != value) return true;
782
- // Array#indexOf ignores holes, Array#includes - not
783
- } else for (;length > index; index++) {
784
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
785
- } return !IS_INCLUDES && -1;
786
- };
787
- };
788
-
789
- var arrayIncludes = {
790
- // `Array.prototype.includes` method
791
- // https://tc39.es/ecma262/#sec-array.prototype.includes
792
- includes: createMethod$1(true),
793
- // `Array.prototype.indexOf` method
794
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
795
- indexOf: createMethod$1(false)
796
- };
797
-
798
- var indexOf$1 = arrayIncludes.indexOf;
799
-
800
-
801
- var push$1 = functionUncurryThis([].push);
802
-
803
- var objectKeysInternal = function (object, names) {
804
- var O = toIndexedObject(object);
805
- var i = 0;
806
- var result = [];
807
- var key;
808
- for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$1(result, key);
809
- // Don't enum bug & hidden keys
810
- while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
811
- ~indexOf$1(result, key) || push$1(result, key);
812
- }
813
- return result;
814
- };
815
-
816
- // IE8- don't enum bug keys
817
- var enumBugKeys = [
818
- 'constructor',
819
- 'hasOwnProperty',
820
- 'isPrototypeOf',
821
- 'propertyIsEnumerable',
822
- 'toLocaleString',
823
- 'toString',
824
- 'valueOf'
825
- ];
826
-
827
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
828
-
829
- // `Object.getOwnPropertyNames` method
830
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
831
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
832
- var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
833
- return objectKeysInternal(O, hiddenKeys);
834
- };
835
-
836
- var objectGetOwnPropertyNames = {
837
- f: f$2
838
- };
839
-
840
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
841
- var f$1 = Object.getOwnPropertySymbols;
842
-
843
- var objectGetOwnPropertySymbols = {
844
- f: f$1
845
- };
846
-
847
- var concat$1 = functionUncurryThis([].concat);
848
-
849
- // all object keys, includes non-enumerable and symbols
850
- var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
851
- var keys = objectGetOwnPropertyNames.f(anObject(it));
852
- var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
853
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
854
- };
855
-
856
- var copyConstructorProperties = function (target, source, exceptions) {
857
- var keys = ownKeys(source);
858
- var defineProperty = objectDefineProperty.f;
859
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
860
- for (var i = 0; i < keys.length; i++) {
861
- var key = keys[i];
862
- if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
863
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
864
- }
865
- }
866
- };
867
-
868
- var replacement = /#|\.prototype\./;
869
-
870
- var isForced = function (feature, detection) {
871
- var value = data[normalize(feature)];
872
- return value == POLYFILL ? true
873
- : value == NATIVE ? false
874
- : isCallable(detection) ? fails(detection)
875
- : !!detection;
876
- };
877
-
878
- var normalize = isForced.normalize = function (string) {
879
- return String(string).replace(replacement, '.').toLowerCase();
880
- };
881
-
882
- var data = isForced.data = {};
883
- var NATIVE = isForced.NATIVE = 'N';
884
- var POLYFILL = isForced.POLYFILL = 'P';
885
-
886
- var isForced_1 = isForced;
887
-
888
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
889
-
890
-
891
-
892
-
893
-
894
-
895
- /*
896
- options.target - name of the target object
897
- options.global - target is the global object
898
- options.stat - export as static methods of target
899
- options.proto - export as prototype methods of target
900
- options.real - real prototype method for the `pure` version
901
- options.forced - export even if the native feature is available
902
- options.bind - bind methods to the target, required for the `pure` version
903
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
904
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
905
- options.sham - add a flag to not completely full polyfills
906
- options.enumerable - export as enumerable property
907
- options.noTargetGet - prevent calling a getter on target
908
- options.name - the .name of the function if it does not match the key
909
- */
910
- var _export = function (options, source) {
911
- var TARGET = options.target;
912
- var GLOBAL = options.global;
913
- var STATIC = options.stat;
914
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
915
- if (GLOBAL) {
916
- target = global_1;
917
- } else if (STATIC) {
918
- target = global_1[TARGET] || setGlobal(TARGET, {});
919
- } else {
920
- target = (global_1[TARGET] || {}).prototype;
921
- }
922
- if (target) for (key in source) {
923
- sourceProperty = source[key];
924
- if (options.noTargetGet) {
925
- descriptor = getOwnPropertyDescriptor(target, key);
926
- targetProperty = descriptor && descriptor.value;
927
- } else targetProperty = target[key];
928
- FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
929
- // contained in target
930
- if (!FORCED && targetProperty !== undefined) {
931
- if (typeof sourceProperty == typeof targetProperty) continue;
932
- copyConstructorProperties(sourceProperty, targetProperty);
933
- }
934
- // add a flag to not completely full polyfills
935
- if (options.sham || (targetProperty && targetProperty.sham)) {
936
- createNonEnumerableProperty(sourceProperty, 'sham', true);
937
- }
938
- defineBuiltIn(target, key, sourceProperty, options);
939
- }
940
- };
941
-
942
- var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
943
- var test = {};
944
-
945
- test[TO_STRING_TAG$1] = 'z';
946
-
947
- var toStringTagSupport = String(test) === '[object z]';
948
-
949
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
950
- var Object$1 = global_1.Object;
951
-
952
- // ES3 wrong here
953
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
954
-
955
- // fallback for IE11 Script Access Denied error
956
- var tryGet = function (it, key) {
957
- try {
958
- return it[key];
959
- } catch (error) { /* empty */ }
960
- };
961
-
962
- // getting tag from ES6+ `Object.prototype.toString`
963
- var classof = toStringTagSupport ? classofRaw : function (it) {
964
- var O, tag, result;
965
- return it === undefined ? 'Undefined' : it === null ? 'Null'
966
- // @@toStringTag case
967
- : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
968
- // builtinTag case
969
- : CORRECT_ARGUMENTS ? classofRaw(O)
970
- // ES3 arguments fallback
971
- : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
972
- };
973
-
974
- var String$1 = global_1.String;
975
-
976
- var toString_1 = function (argument) {
977
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
978
- return String$1(argument);
979
- };
980
-
981
- // `RegExp.prototype.flags` getter implementation
982
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
983
- var regexpFlags = function () {
984
- var that = anObject(this);
985
- var result = '';
986
- if (that.hasIndices) result += 'd';
987
- if (that.global) result += 'g';
988
- if (that.ignoreCase) result += 'i';
989
- if (that.multiline) result += 'm';
990
- if (that.dotAll) result += 's';
991
- if (that.unicode) result += 'u';
992
- if (that.sticky) result += 'y';
993
- return result;
994
- };
995
-
996
- // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
997
- var $RegExp$2 = global_1.RegExp;
998
-
999
- var UNSUPPORTED_Y$1 = fails(function () {
1000
- var re = $RegExp$2('a', 'y');
1001
- re.lastIndex = 2;
1002
- return re.exec('abcd') != null;
1003
- });
1004
-
1005
- // UC Browser bug
1006
- // https://github.com/zloirock/core-js/issues/1008
1007
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails(function () {
1008
- return !$RegExp$2('a', 'y').sticky;
1009
- });
1010
-
1011
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails(function () {
1012
- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1013
- var re = $RegExp$2('^r', 'gy');
1014
- re.lastIndex = 2;
1015
- return re.exec('str') != null;
1016
- });
1017
-
1018
- var regexpStickyHelpers = {
1019
- BROKEN_CARET: BROKEN_CARET,
1020
- MISSED_STICKY: MISSED_STICKY,
1021
- UNSUPPORTED_Y: UNSUPPORTED_Y$1
1022
- };
1023
-
1024
- // `Object.keys` method
1025
- // https://tc39.es/ecma262/#sec-object.keys
1026
- // eslint-disable-next-line es-x/no-object-keys -- safe
1027
- var objectKeys = Object.keys || function keys(O) {
1028
- return objectKeysInternal(O, enumBugKeys);
1029
- };
1030
-
1031
- // `Object.defineProperties` method
1032
- // https://tc39.es/ecma262/#sec-object.defineproperties
1033
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
1034
- var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
1035
- anObject(O);
1036
- var props = toIndexedObject(Properties);
1037
- var keys = objectKeys(Properties);
1038
- var length = keys.length;
1039
- var index = 0;
1040
- var key;
1041
- while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
1042
- return O;
1043
- };
1044
-
1045
- var objectDefineProperties = {
1046
- f: f
1047
- };
1048
-
1049
- var html = getBuiltIn('document', 'documentElement');
1050
-
1051
- /* global ActiveXObject -- old IE, WSH */
1052
-
1053
-
1054
-
1055
-
1056
-
1057
-
1058
-
1059
-
1060
- var GT = '>';
1061
- var LT = '<';
1062
- var PROTOTYPE = 'prototype';
1063
- var SCRIPT = 'script';
1064
- var IE_PROTO = sharedKey('IE_PROTO');
1065
-
1066
- var EmptyConstructor = function () { /* empty */ };
1067
-
1068
- var scriptTag = function (content) {
1069
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1070
- };
1071
-
1072
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1073
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1074
- activeXDocument.write(scriptTag(''));
1075
- activeXDocument.close();
1076
- var temp = activeXDocument.parentWindow.Object;
1077
- activeXDocument = null; // avoid memory leak
1078
- return temp;
1079
- };
1080
-
1081
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1082
- var NullProtoObjectViaIFrame = function () {
1083
- // Thrash, waste and sodomy: IE GC bug
1084
- var iframe = documentCreateElement('iframe');
1085
- var JS = 'java' + SCRIPT + ':';
1086
- var iframeDocument;
1087
- iframe.style.display = 'none';
1088
- html.appendChild(iframe);
1089
- // https://github.com/zloirock/core-js/issues/475
1090
- iframe.src = String(JS);
1091
- iframeDocument = iframe.contentWindow.document;
1092
- iframeDocument.open();
1093
- iframeDocument.write(scriptTag('document.F=Object'));
1094
- iframeDocument.close();
1095
- return iframeDocument.F;
1096
- };
1097
-
1098
- // Check for document.domain and active x support
1099
- // No need to use active x approach when document.domain is not set
1100
- // see https://github.com/es-shims/es5-shim/issues/150
1101
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1102
- // avoid IE GC bug
1103
- var activeXDocument;
1104
- var NullProtoObject = function () {
1105
- try {
1106
- activeXDocument = new ActiveXObject('htmlfile');
1107
- } catch (error) { /* ignore */ }
1108
- NullProtoObject = typeof document != 'undefined'
1109
- ? document.domain && activeXDocument
1110
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1111
- : NullProtoObjectViaIFrame()
1112
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1113
- var length = enumBugKeys.length;
1114
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1115
- return NullProtoObject();
1116
- };
1117
-
1118
- hiddenKeys$1[IE_PROTO] = true;
1119
-
1120
- // `Object.create` method
1121
- // https://tc39.es/ecma262/#sec-object.create
1122
- // eslint-disable-next-line es-x/no-object-create -- safe
1123
- var objectCreate = Object.create || function create(O, Properties) {
1124
- var result;
1125
- if (O !== null) {
1126
- EmptyConstructor[PROTOTYPE] = anObject(O);
1127
- result = new EmptyConstructor();
1128
- EmptyConstructor[PROTOTYPE] = null;
1129
- // add "__proto__" for Object.getPrototypeOf polyfill
1130
- result[IE_PROTO] = O;
1131
- } else result = NullProtoObject();
1132
- return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
1133
- };
1134
-
1135
- // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1136
- var $RegExp$1 = global_1.RegExp;
1137
-
1138
- var regexpUnsupportedDotAll = fails(function () {
1139
- var re = $RegExp$1('.', 's');
1140
- return !(re.dotAll && re.exec('\n') && re.flags === 's');
1141
- });
1142
-
1143
- // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1144
- var $RegExp = global_1.RegExp;
1145
-
1146
- var regexpUnsupportedNcg = fails(function () {
1147
- var re = $RegExp('(?<a>b)', 'g');
1148
- return re.exec('b').groups.a !== 'b' ||
1149
- 'b'.replace(re, '$<a>c') !== 'bc';
1150
- });
1151
-
1152
- /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1153
- /* eslint-disable regexp/no-useless-quantifier -- testing */
1154
-
1155
-
1156
-
1157
-
1158
-
1159
-
1160
-
1161
- var getInternalState = internalState.get;
1162
-
1163
-
1164
-
1165
- var nativeReplace = shared('native-string-replace', String.prototype.replace);
1166
- var nativeExec = RegExp.prototype.exec;
1167
- var patchedExec = nativeExec;
1168
- var charAt$3 = functionUncurryThis(''.charAt);
1169
- var indexOf = functionUncurryThis(''.indexOf);
1170
- var replace$1 = functionUncurryThis(''.replace);
1171
- var stringSlice$3 = functionUncurryThis(''.slice);
1172
-
1173
- var UPDATES_LAST_INDEX_WRONG = (function () {
1174
- var re1 = /a/;
1175
- var re2 = /b*/g;
1176
- functionCall(nativeExec, re1, 'a');
1177
- functionCall(nativeExec, re2, 'a');
1178
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1179
- })();
1180
-
1181
- var UNSUPPORTED_Y = regexpStickyHelpers.BROKEN_CARET;
1182
-
1183
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
1184
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1185
-
1186
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || regexpUnsupportedDotAll || regexpUnsupportedNcg;
1187
-
1188
- if (PATCH) {
1189
- patchedExec = function exec(string) {
1190
- var re = this;
1191
- var state = getInternalState(re);
1192
- var str = toString_1(string);
1193
- var raw = state.raw;
1194
- var result, reCopy, lastIndex, match, i, object, group;
1195
-
1196
- if (raw) {
1197
- raw.lastIndex = re.lastIndex;
1198
- result = functionCall(patchedExec, raw, str);
1199
- re.lastIndex = raw.lastIndex;
1200
- return result;
1201
- }
1202
-
1203
- var groups = state.groups;
1204
- var sticky = UNSUPPORTED_Y && re.sticky;
1205
- var flags = functionCall(regexpFlags, re);
1206
- var source = re.source;
1207
- var charsAdded = 0;
1208
- var strCopy = str;
1209
-
1210
- if (sticky) {
1211
- flags = replace$1(flags, 'y', '');
1212
- if (indexOf(flags, 'g') === -1) {
1213
- flags += 'g';
1214
- }
1215
-
1216
- strCopy = stringSlice$3(str, re.lastIndex);
1217
- // Support anchored sticky behavior.
1218
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
1219
- source = '(?: ' + source + ')';
1220
- strCopy = ' ' + strCopy;
1221
- charsAdded++;
1222
- }
1223
- // ^(? + rx + ) is needed, in combination with some str slicing, to
1224
- // simulate the 'y' flag.
1225
- reCopy = new RegExp('^(?:' + source + ')', flags);
1226
- }
1227
-
1228
- if (NPCG_INCLUDED) {
1229
- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1230
- }
1231
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1232
-
1233
- match = functionCall(nativeExec, sticky ? reCopy : re, strCopy);
1234
-
1235
- if (sticky) {
1236
- if (match) {
1237
- match.input = stringSlice$3(match.input, charsAdded);
1238
- match[0] = stringSlice$3(match[0], charsAdded);
1239
- match.index = re.lastIndex;
1240
- re.lastIndex += match[0].length;
1241
- } else re.lastIndex = 0;
1242
- } else if (UPDATES_LAST_INDEX_WRONG && match) {
1243
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1244
- }
1245
- if (NPCG_INCLUDED && match && match.length > 1) {
1246
- // Fix browsers whose `exec` methods don't consistently return `undefined`
1247
- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
1248
- functionCall(nativeReplace, match[0], reCopy, function () {
1249
- for (i = 1; i < arguments.length - 2; i++) {
1250
- if (arguments[i] === undefined) match[i] = undefined;
1251
- }
1252
- });
1253
- }
1254
-
1255
- if (match && groups) {
1256
- match.groups = object = objectCreate(null);
1257
- for (i = 0; i < groups.length; i++) {
1258
- group = groups[i];
1259
- object[group[0]] = match[group[1]];
1260
- }
1261
- }
1262
-
1263
- return match;
1264
- };
1265
- }
1266
-
1267
- var regexpExec = patchedExec;
1268
-
1269
- // `RegExp.prototype.exec` method
1270
- // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1271
- _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
1272
- exec: regexpExec
1273
- });
1274
-
1275
- var FunctionPrototype = Function.prototype;
1276
- var apply = FunctionPrototype.apply;
1277
- var call = FunctionPrototype.call;
1278
-
1279
- // eslint-disable-next-line es-x/no-reflect -- safe
1280
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
1281
- return call.apply(apply, arguments);
1282
- });
1283
-
1284
- // TODO: Remove from `core-js@4` since it's moved to entry points
1285
-
1286
-
1287
-
1288
-
1289
-
1290
-
1291
-
1292
-
1293
- var SPECIES$2 = wellKnownSymbol('species');
1294
- var RegExpPrototype = RegExp.prototype;
1295
-
1296
- var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1297
- var SYMBOL = wellKnownSymbol(KEY);
1298
-
1299
- var DELEGATES_TO_SYMBOL = !fails(function () {
1300
- // String methods call symbol-named RegEp methods
1301
- var O = {};
1302
- O[SYMBOL] = function () { return 7; };
1303
- return ''[KEY](O) != 7;
1304
- });
1305
-
1306
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
1307
- // Symbol-named RegExp methods call .exec
1308
- var execCalled = false;
1309
- var re = /a/;
1310
-
1311
- if (KEY === 'split') {
1312
- // We can't use real regex here since it causes deoptimization
1313
- // and serious performance degradation in V8
1314
- // https://github.com/zloirock/core-js/issues/306
1315
- re = {};
1316
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
1317
- // a new one. We need to return the patched regex when creating the new one.
1318
- re.constructor = {};
1319
- re.constructor[SPECIES$2] = function () { return re; };
1320
- re.flags = '';
1321
- re[SYMBOL] = /./[SYMBOL];
1322
- }
1323
-
1324
- re.exec = function () { execCalled = true; return null; };
1325
-
1326
- re[SYMBOL]('');
1327
- return !execCalled;
1328
- });
1329
-
1330
- if (
1331
- !DELEGATES_TO_SYMBOL ||
1332
- !DELEGATES_TO_EXEC ||
1333
- FORCED
1334
- ) {
1335
- var uncurriedNativeRegExpMethod = functionUncurryThis(/./[SYMBOL]);
1336
- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1337
- var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
1338
- var $exec = regexp.exec;
1339
- if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
1340
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1341
- // The native String method already delegates to @@method (this
1342
- // polyfilled function), leasing to infinite recursion.
1343
- // We avoid it by directly calling the native @@method method.
1344
- return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
1345
- }
1346
- return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
1347
- }
1348
- return { done: false };
1349
- });
1350
-
1351
- defineBuiltIn(String.prototype, KEY, methods[0]);
1352
- defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
1353
- }
1354
-
1355
- if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
1356
- };
1357
-
1358
- var charAt$2 = functionUncurryThis(''.charAt);
1359
- var charCodeAt = functionUncurryThis(''.charCodeAt);
1360
- var stringSlice$2 = functionUncurryThis(''.slice);
1361
-
1362
- var createMethod = function (CONVERT_TO_STRING) {
1363
- return function ($this, pos) {
1364
- var S = toString_1(requireObjectCoercible($this));
1365
- var position = toIntegerOrInfinity(pos);
1366
- var size = S.length;
1367
- var first, second;
1368
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1369
- first = charCodeAt(S, position);
1370
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
1371
- || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
1372
- ? CONVERT_TO_STRING
1373
- ? charAt$2(S, position)
1374
- : first
1375
- : CONVERT_TO_STRING
1376
- ? stringSlice$2(S, position, position + 2)
1377
- : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1378
- };
1379
- };
1380
-
1381
- var stringMultibyte = {
1382
- // `String.prototype.codePointAt` method
1383
- // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1384
- codeAt: createMethod(false),
1385
- // `String.prototype.at` method
1386
- // https://github.com/mathiasbynens/String.prototype.at
1387
- charAt: createMethod(true)
1388
- };
1389
-
1390
- var charAt$1 = stringMultibyte.charAt;
1391
-
1392
- // `AdvanceStringIndex` abstract operation
1393
- // https://tc39.es/ecma262/#sec-advancestringindex
1394
- var advanceStringIndex = function (S, index, unicode) {
1395
- return index + (unicode ? charAt$1(S, index).length : 1);
1396
- };
1397
-
1398
- var floor = Math.floor;
1399
- var charAt = functionUncurryThis(''.charAt);
1400
- var replace = functionUncurryThis(''.replace);
1401
- var stringSlice$1 = functionUncurryThis(''.slice);
1402
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1403
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1404
-
1405
- // `GetSubstitution` abstract operation
1406
- // https://tc39.es/ecma262/#sec-getsubstitution
1407
- var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
1408
- var tailPos = position + matched.length;
1409
- var m = captures.length;
1410
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1411
- if (namedCaptures !== undefined) {
1412
- namedCaptures = toObject(namedCaptures);
1413
- symbols = SUBSTITUTION_SYMBOLS;
1414
- }
1415
- return replace(replacement, symbols, function (match, ch) {
1416
- var capture;
1417
- switch (charAt(ch, 0)) {
1418
- case '$': return '$';
1419
- case '&': return matched;
1420
- case '`': return stringSlice$1(str, 0, position);
1421
- case "'": return stringSlice$1(str, tailPos);
1422
- case '<':
1423
- capture = namedCaptures[stringSlice$1(ch, 1, -1)];
1424
- break;
1425
- default: // \d\d?
1426
- var n = +ch;
1427
- if (n === 0) return match;
1428
- if (n > m) {
1429
- var f = floor(n / 10);
1430
- if (f === 0) return match;
1431
- if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
1432
- return match;
1433
- }
1434
- capture = captures[n - 1];
1435
- }
1436
- return capture === undefined ? '' : capture;
1437
- });
1438
- };
1439
-
1440
- var TypeError$2 = global_1.TypeError;
1441
-
1442
- // `RegExpExec` abstract operation
1443
- // https://tc39.es/ecma262/#sec-regexpexec
1444
- var regexpExecAbstract = function (R, S) {
1445
- var exec = R.exec;
1446
- if (isCallable(exec)) {
1447
- var result = functionCall(exec, R, S);
1448
- if (result !== null) anObject(result);
1449
- return result;
1450
- }
1451
- if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
1452
- throw TypeError$2('RegExp#exec called on incompatible receiver');
1453
- };
1454
-
1455
- var REPLACE = wellKnownSymbol('replace');
1456
- var max = Math.max;
1457
- var min = Math.min;
1458
- var concat = functionUncurryThis([].concat);
1459
- var push = functionUncurryThis([].push);
1460
- var stringIndexOf = functionUncurryThis(''.indexOf);
1461
- var stringSlice = functionUncurryThis(''.slice);
1462
-
1463
- var maybeToString = function (it) {
1464
- return it === undefined ? it : String(it);
1465
- };
1466
-
1467
- // IE <= 11 replaces $0 with the whole match, as if it was $&
1468
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1469
- var REPLACE_KEEPS_$0 = (function () {
1470
- // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
1471
- return 'a'.replace(/./, '$0') === '$0';
1472
- })();
1473
-
1474
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
1475
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
1476
- if (/./[REPLACE]) {
1477
- return /./[REPLACE]('a', '$0') === '';
1478
- }
1479
- return false;
1480
- })();
1481
-
1482
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1483
- var re = /./;
1484
- re.exec = function () {
1485
- var result = [];
1486
- result.groups = { a: '7' };
1487
- return result;
1488
- };
1489
- // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
1490
- return ''.replace(re, '$<a>') !== '7';
1491
- });
1492
-
1493
- // @@replace logic
1494
- fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
1495
- var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1496
-
1497
- return [
1498
- // `String.prototype.replace` method
1499
- // https://tc39.es/ecma262/#sec-string.prototype.replace
1500
- function replace(searchValue, replaceValue) {
1501
- var O = requireObjectCoercible(this);
1502
- var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
1503
- return replacer
1504
- ? functionCall(replacer, searchValue, O, replaceValue)
1505
- : functionCall(nativeReplace, toString_1(O), searchValue, replaceValue);
1506
- },
1507
- // `RegExp.prototype[@@replace]` method
1508
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1509
- function (string, replaceValue) {
1510
- var rx = anObject(this);
1511
- var S = toString_1(string);
1512
-
1513
- if (
1514
- typeof replaceValue == 'string' &&
1515
- stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
1516
- stringIndexOf(replaceValue, '$<') === -1
1517
- ) {
1518
- var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
1519
- if (res.done) return res.value;
1520
- }
1521
-
1522
- var functionalReplace = isCallable(replaceValue);
1523
- if (!functionalReplace) replaceValue = toString_1(replaceValue);
1524
-
1525
- var global = rx.global;
1526
- if (global) {
1527
- var fullUnicode = rx.unicode;
1528
- rx.lastIndex = 0;
1529
- }
1530
- var results = [];
1531
- while (true) {
1532
- var result = regexpExecAbstract(rx, S);
1533
- if (result === null) break;
1534
-
1535
- push(results, result);
1536
- if (!global) break;
1537
-
1538
- var matchStr = toString_1(result[0]);
1539
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1540
- }
1541
-
1542
- var accumulatedResult = '';
1543
- var nextSourcePosition = 0;
1544
- for (var i = 0; i < results.length; i++) {
1545
- result = results[i];
1546
-
1547
- var matched = toString_1(result[0]);
1548
- var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
1549
- var captures = [];
1550
- // NOTE: This is equivalent to
1551
- // captures = result.slice(1).map(maybeToString)
1552
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1553
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1554
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1555
- for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
1556
- var namedCaptures = result.groups;
1557
- if (functionalReplace) {
1558
- var replacerArgs = concat([matched], captures, position, S);
1559
- if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
1560
- var replacement = toString_1(functionApply(replaceValue, undefined, replacerArgs));
1561
- } else {
1562
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1563
- }
1564
- if (position >= nextSourcePosition) {
1565
- accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
1566
- nextSourcePosition = position + matched.length;
1567
- }
1568
- }
1569
- return accumulatedResult + stringSlice(S, nextSourcePosition);
1570
- }
1571
- ];
1572
- }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
1573
-
1574
- // `IsArray` abstract operation
1575
- // https://tc39.es/ecma262/#sec-isarray
1576
- // eslint-disable-next-line es-x/no-array-isarray -- safe
1577
- var isArray = Array.isArray || function isArray(argument) {
1578
- return classofRaw(argument) == 'Array';
1579
- };
1580
-
1581
- var createProperty = function (object, key, value) {
1582
- var propertyKey = toPropertyKey(key);
1583
- if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1584
- else object[propertyKey] = value;
1585
- };
1586
-
1587
- var noop = function () { /* empty */ };
1588
- var empty = [];
1589
- var construct = getBuiltIn('Reflect', 'construct');
1590
- var constructorRegExp = /^\s*(?:class|function)\b/;
1591
- var exec = functionUncurryThis(constructorRegExp.exec);
1592
- var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1593
-
1594
- var isConstructorModern = function isConstructor(argument) {
1595
- if (!isCallable(argument)) return false;
1596
- try {
1597
- construct(noop, empty, argument);
1598
- return true;
1599
- } catch (error) {
1600
- return false;
1601
- }
1602
- };
1603
-
1604
- var isConstructorLegacy = function isConstructor(argument) {
1605
- if (!isCallable(argument)) return false;
1606
- switch (classof(argument)) {
1607
- case 'AsyncFunction':
1608
- case 'GeneratorFunction':
1609
- case 'AsyncGeneratorFunction': return false;
1610
- }
1611
- try {
1612
- // we can't check .prototype since constructors produced by .bind haven't it
1613
- // `Function#toString` throws on some built-it function in some legacy engines
1614
- // (for example, `DOMQuad` and similar in FF41-)
1615
- return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1616
- } catch (error) {
1617
- return true;
1618
- }
1619
- };
1620
-
1621
- isConstructorLegacy.sham = true;
1622
-
1623
- // `IsConstructor` abstract operation
1624
- // https://tc39.es/ecma262/#sec-isconstructor
1625
- var isConstructor = !construct || fails(function () {
1626
- var called;
1627
- return isConstructorModern(isConstructorModern.call)
1628
- || !isConstructorModern(Object)
1629
- || !isConstructorModern(function () { called = true; })
1630
- || called;
1631
- }) ? isConstructorLegacy : isConstructorModern;
1632
-
1633
- var SPECIES$1 = wellKnownSymbol('species');
1634
- var Array$1 = global_1.Array;
1635
-
1636
- // a part of `ArraySpeciesCreate` abstract operation
1637
- // https://tc39.es/ecma262/#sec-arrayspeciescreate
1638
- var arraySpeciesConstructor = function (originalArray) {
1639
- var C;
1640
- if (isArray(originalArray)) {
1641
- C = originalArray.constructor;
1642
- // cross-realm fallback
1643
- if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
1644
- else if (isObject(C)) {
1645
- C = C[SPECIES$1];
1646
- if (C === null) C = undefined;
1647
- }
1648
- } return C === undefined ? Array$1 : C;
1649
- };
1650
-
1651
- // `ArraySpeciesCreate` abstract operation
1652
- // https://tc39.es/ecma262/#sec-arrayspeciescreate
1653
- var arraySpeciesCreate = function (originalArray, length) {
1654
- return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1655
- };
1656
-
1657
- var SPECIES = wellKnownSymbol('species');
1658
-
1659
- var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1660
- // We can't use this feature detection in V8 since it causes
1661
- // deoptimization and serious performance degradation
1662
- // https://github.com/zloirock/core-js/issues/677
1663
- return engineV8Version >= 51 || !fails(function () {
1664
- var array = [];
1665
- var constructor = array.constructor = {};
1666
- constructor[SPECIES] = function () {
1667
- return { foo: 1 };
1668
- };
1669
- return array[METHOD_NAME](Boolean).foo !== 1;
1670
- });
1671
- };
1672
-
1673
- var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1674
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1675
- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1676
- var TypeError$1 = global_1.TypeError;
1677
-
1678
- // We can't use this feature detection in V8 since it causes
1679
- // deoptimization and serious performance degradation
1680
- // https://github.com/zloirock/core-js/issues/679
1681
- var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
1682
- var array = [];
1683
- array[IS_CONCAT_SPREADABLE] = false;
1684
- return array.concat()[0] !== array;
1685
- });
1686
-
1687
- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
1688
-
1689
- var isConcatSpreadable = function (O) {
1690
- if (!isObject(O)) return false;
1691
- var spreadable = O[IS_CONCAT_SPREADABLE];
1692
- return spreadable !== undefined ? !!spreadable : isArray(O);
1693
- };
1694
-
1695
- var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1696
-
1697
- // `Array.prototype.concat` method
1698
- // https://tc39.es/ecma262/#sec-array.prototype.concat
1699
- // with adding support of @@isConcatSpreadable and @@species
1700
- _export({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1701
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1702
- concat: function concat(arg) {
1703
- var O = toObject(this);
1704
- var A = arraySpeciesCreate(O, 0);
1705
- var n = 0;
1706
- var i, k, length, len, E;
1707
- for (i = -1, length = arguments.length; i < length; i++) {
1708
- E = i === -1 ? O : arguments[i];
1709
- if (isConcatSpreadable(E)) {
1710
- len = lengthOfArrayLike(E);
1711
- if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1712
- for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1713
- } else {
1714
- if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1715
- createProperty(A, n++, E);
1716
- }
1717
- }
1718
- A.length = n;
1719
- return A;
1720
- }
1721
- });
1722
-
1723
7
  //
1724
8
  //
1725
9
  //
1726
10
  //
1727
- var $ = window.jQuery;
1728
11
 
1729
- var deepCopy = function deepCopy(arg) {
12
+ const $ = window.jQuery;
13
+ const deepCopy = arg => {
1730
14
  if (arg === undefined) {
1731
- return arg;
15
+ return arg
1732
16
  }
1733
-
1734
- return $.extend(true, Array.isArray(arg) ? [] : {}, arg);
17
+ return $.extend(true, Array.isArray(arg) ? [] : {}, arg)
1735
18
  };
1736
19
 
1737
20
  var script = {
@@ -1743,93 +26,68 @@
1743
26
  },
1744
27
  data: {
1745
28
  type: [Array, Object],
1746
- default: function _default() {
1747
- return undefined;
29
+ default () {
30
+ return undefined
1748
31
  }
1749
32
  },
1750
33
  options: {
1751
34
  type: Object,
1752
- default: function _default() {
1753
- return {};
35
+ default () {
36
+ return {}
1754
37
  }
1755
38
  }
1756
39
  },
1757
- mounted: function mounted() {
1758
- var _this = this;
1759
-
40
+ mounted () {
1760
41
  this.$table = $(this.$el);
1761
- this.$table.on('all.bs.table', function (e, name, args) {
1762
- var eventName = $.fn.bootstrapTable.events[name];
1763
- eventName = eventName.replace(/([A-Z])/g, '-$1').toLowerCase();
1764
-
1765
- _this.$emit.apply(_this, ['on-all'].concat(_toConsumableArray(args)));
1766
42
 
1767
- _this.$emit.apply(_this, [eventName].concat(_toConsumableArray(args)));
43
+ this.$table.on('all.bs.table', (e, name, args) => {
44
+ let eventName = $.fn.bootstrapTable.events[name];
45
+ eventName = eventName.replace(/([A-Z])/g, '-$1').toLowerCase();
46
+ this.$emit('on-all', ...args);
47
+ this.$emit(eventName, ...args);
1768
48
  });
1769
49
 
1770
50
  this._initTable();
1771
51
  },
1772
- methods: _objectSpread2({
1773
- _initTable: function _initTable() {
1774
- var options = _objectSpread2(_objectSpread2({}, deepCopy(this.options)), {}, {
52
+ methods: {
53
+ _initTable () {
54
+ const options = {
55
+ ...deepCopy(this.options),
1775
56
  columns: deepCopy(this.columns),
1776
57
  data: deepCopy(this.data)
1777
- });
1778
-
58
+ };
1779
59
  if (!this._hasInit) {
1780
60
  this.$table.bootstrapTable(options);
1781
61
  this._hasInit = true;
1782
62
  } else {
1783
63
  this.refreshOptions(options);
1784
64
  }
1785
- }
1786
- }, function () {
1787
- var res = {};
1788
-
1789
- var _iterator = _createForOfIteratorHelper($.fn.bootstrapTable.methods),
1790
- _step;
1791
-
1792
- try {
1793
- var _loop = function _loop() {
1794
- var method = _step.value;
1795
-
1796
- res[method] = function () {
1797
- var _this$$table;
1798
-
1799
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1800
- args[_key] = arguments[_key];
1801
- }
1802
-
1803
- return (_this$$table = this.$table).bootstrapTable.apply(_this$$table, [method].concat(args));
65
+ },
66
+ ...(() => {
67
+ const res = {};
68
+ for (const method of $.fn.bootstrapTable.methods) {
69
+ res[method] = function (...args) {
70
+ return this.$table.bootstrapTable(method, ...args)
1804
71
  };
1805
- };
1806
-
1807
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
1808
- _loop();
1809
72
  }
1810
- } catch (err) {
1811
- _iterator.e(err);
1812
- } finally {
1813
- _iterator.f();
1814
- }
1815
-
1816
- return res;
1817
- }()),
73
+ return res
74
+ })()
75
+ },
1818
76
  watch: {
1819
77
  options: {
1820
- handler: function handler() {
78
+ handler () {
1821
79
  this._initTable();
1822
80
  },
1823
81
  deep: true
1824
82
  },
1825
83
  columns: {
1826
- handler: function handler() {
84
+ handler () {
1827
85
  this._initTable();
1828
86
  },
1829
87
  deep: true
1830
88
  },
1831
89
  data: {
1832
- handler: function handler() {
90
+ handler () {
1833
91
  this.load(deepCopy(this.data));
1834
92
  },
1835
93
  deep: true