bootstrap-table-rails 1.20.1 → 1.20.2

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