bootstrap-table-rails 1.19.1 → 1.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bootstrap-table-rails/version.rb +1 -1
- data/vendor/assets/javascripts/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +906 -337
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +816 -382
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +817 -383
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +2 -1
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +2787 -2003
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1003 -429
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +536 -240
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1381 -923
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +546 -250
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +547 -249
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +471 -186
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +883 -525
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +852 -449
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +9 -1
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +2649 -1097
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +1276 -710
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +566 -272
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +861 -414
- data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +16 -8
- data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +652 -351
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +572 -249
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +782 -370
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +532 -237
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +538 -246
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +744 -294
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +572 -258
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +510 -200
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +471 -186
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +539 -244
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +864 -531
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +526 -235
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +465 -188
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +477 -200
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +460 -182
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +1083 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +482 -204
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +1083 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +496 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +496 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +547 -255
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +543 -235
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +547 -239
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +545 -252
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +541 -233
- metadata +5 -3
data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
|
3
3
|
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
|
5
|
-
}(this, (function ($) { 'use strict';
|
5
|
+
})(this, (function ($) { 'use strict';
|
6
6
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
8
8
|
|
@@ -27,6 +27,9 @@
|
|
27
27
|
function _createClass(Constructor, protoProps, staticProps) {
|
28
28
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
29
29
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
30
|
+
Object.defineProperty(Constructor, "prototype", {
|
31
|
+
writable: false
|
32
|
+
});
|
30
33
|
return Constructor;
|
31
34
|
}
|
32
35
|
|
@@ -42,6 +45,9 @@
|
|
42
45
|
configurable: true
|
43
46
|
}
|
44
47
|
});
|
48
|
+
Object.defineProperty(subClass, "prototype", {
|
49
|
+
writable: false
|
50
|
+
});
|
45
51
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
46
52
|
}
|
47
53
|
|
@@ -85,6 +91,8 @@
|
|
85
91
|
function _possibleConstructorReturn(self, call) {
|
86
92
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
87
93
|
return call;
|
94
|
+
} else if (call !== void 0) {
|
95
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
88
96
|
}
|
89
97
|
|
90
98
|
return _assertThisInitialized(self);
|
@@ -118,7 +126,7 @@
|
|
118
126
|
return object;
|
119
127
|
}
|
120
128
|
|
121
|
-
function _get(
|
129
|
+
function _get() {
|
122
130
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
123
131
|
_get = Reflect.get;
|
124
132
|
} else {
|
@@ -129,14 +137,14 @@
|
|
129
137
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
130
138
|
|
131
139
|
if (desc.get) {
|
132
|
-
return desc.get.call(receiver);
|
140
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
133
141
|
}
|
134
142
|
|
135
143
|
return desc.value;
|
136
144
|
};
|
137
145
|
}
|
138
146
|
|
139
|
-
return _get(
|
147
|
+
return _get.apply(this, arguments);
|
140
148
|
}
|
141
149
|
|
142
150
|
function _slicedToArray(arr, i) {
|
@@ -156,18 +164,21 @@
|
|
156
164
|
}
|
157
165
|
|
158
166
|
function _iterableToArray(iter) {
|
159
|
-
if (typeof Symbol !== "undefined" && Symbol.iterator
|
167
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
160
168
|
}
|
161
169
|
|
162
170
|
function _iterableToArrayLimit(arr, i) {
|
163
|
-
|
171
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
172
|
+
|
173
|
+
if (_i == null) return;
|
164
174
|
var _arr = [];
|
165
175
|
var _n = true;
|
166
176
|
var _d = false;
|
167
|
-
|
177
|
+
|
178
|
+
var _s, _e;
|
168
179
|
|
169
180
|
try {
|
170
|
-
for (
|
181
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
171
182
|
_arr.push(_s.value);
|
172
183
|
|
173
184
|
if (i && _arr.length === i) break;
|
@@ -212,9 +223,9 @@
|
|
212
223
|
}
|
213
224
|
|
214
225
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
215
|
-
var it;
|
226
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
216
227
|
|
217
|
-
if (
|
228
|
+
if (!it) {
|
218
229
|
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
219
230
|
if (it) o = it;
|
220
231
|
var i = 0;
|
@@ -247,7 +258,7 @@
|
|
247
258
|
err;
|
248
259
|
return {
|
249
260
|
s: function () {
|
250
|
-
it =
|
261
|
+
it = it.call(o);
|
251
262
|
},
|
252
263
|
n: function () {
|
253
264
|
var step = it.next();
|
@@ -303,22 +314,34 @@
|
|
303
314
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
304
315
|
});
|
305
316
|
|
306
|
-
var
|
317
|
+
var functionBindNative = !fails(function () {
|
318
|
+
var test = (function () { /* empty */ }).bind();
|
319
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
320
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
321
|
+
});
|
322
|
+
|
323
|
+
var call$1 = Function.prototype.call;
|
324
|
+
|
325
|
+
var functionCall = functionBindNative ? call$1.bind(call$1) : function () {
|
326
|
+
return call$1.apply(call$1, arguments);
|
327
|
+
};
|
328
|
+
|
329
|
+
var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
|
307
330
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
308
331
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
309
332
|
|
310
333
|
// Nashorn ~ JDK8 bug
|
311
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
334
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
|
312
335
|
|
313
336
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
314
337
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
315
|
-
var f$
|
338
|
+
var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
316
339
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
317
340
|
return !!descriptor && descriptor.enumerable;
|
318
|
-
} : $propertyIsEnumerable;
|
341
|
+
} : $propertyIsEnumerable$1;
|
319
342
|
|
320
343
|
var objectPropertyIsEnumerable = {
|
321
|
-
f: f$
|
344
|
+
f: f$5
|
322
345
|
};
|
323
346
|
|
324
347
|
var createPropertyDescriptor = function (bitmap, value) {
|
@@ -330,27 +353,44 @@
|
|
330
353
|
};
|
331
354
|
};
|
332
355
|
|
333
|
-
var
|
356
|
+
var FunctionPrototype$1 = Function.prototype;
|
357
|
+
var bind$1 = FunctionPrototype$1.bind;
|
358
|
+
var call = FunctionPrototype$1.call;
|
359
|
+
var uncurryThis = functionBindNative && bind$1.bind(call, call);
|
360
|
+
|
361
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
362
|
+
return fn && uncurryThis(fn);
|
363
|
+
} : function (fn) {
|
364
|
+
return fn && function () {
|
365
|
+
return call.apply(fn, arguments);
|
366
|
+
};
|
367
|
+
};
|
368
|
+
|
369
|
+
var toString$1 = functionUncurryThis({}.toString);
|
370
|
+
var stringSlice$1 = functionUncurryThis(''.slice);
|
334
371
|
|
335
372
|
var classofRaw = function (it) {
|
336
|
-
return toString
|
373
|
+
return stringSlice$1(toString$1(it), 8, -1);
|
337
374
|
};
|
338
375
|
|
339
|
-
var
|
376
|
+
var Object$4 = global_1.Object;
|
377
|
+
var split = functionUncurryThis(''.split);
|
340
378
|
|
341
379
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
342
380
|
var indexedObject = fails(function () {
|
343
381
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
344
382
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
345
|
-
return !Object('z').propertyIsEnumerable(0);
|
383
|
+
return !Object$4('z').propertyIsEnumerable(0);
|
346
384
|
}) ? function (it) {
|
347
|
-
return classofRaw(it) == 'String' ? split
|
348
|
-
} : Object;
|
385
|
+
return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
|
386
|
+
} : Object$4;
|
387
|
+
|
388
|
+
var TypeError$a = global_1.TypeError;
|
349
389
|
|
350
390
|
// `RequireObjectCoercible` abstract operation
|
351
391
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
352
392
|
var requireObjectCoercible = function (it) {
|
353
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
393
|
+
if (it == undefined) throw TypeError$a("Can't call method on " + it);
|
354
394
|
return it;
|
355
395
|
};
|
356
396
|
|
@@ -362,88 +402,309 @@
|
|
362
402
|
return indexedObject(requireObjectCoercible(it));
|
363
403
|
};
|
364
404
|
|
405
|
+
// `IsCallable` abstract operation
|
406
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
407
|
+
var isCallable = function (argument) {
|
408
|
+
return typeof argument == 'function';
|
409
|
+
};
|
410
|
+
|
365
411
|
var isObject = function (it) {
|
366
|
-
return typeof it
|
412
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
367
413
|
};
|
368
414
|
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
var
|
374
|
-
|
415
|
+
var aFunction = function (argument) {
|
416
|
+
return isCallable(argument) ? argument : undefined;
|
417
|
+
};
|
418
|
+
|
419
|
+
var getBuiltIn = function (namespace, method) {
|
420
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
421
|
+
};
|
422
|
+
|
423
|
+
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
424
|
+
|
425
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
426
|
+
|
427
|
+
var process = global_1.process;
|
428
|
+
var Deno = global_1.Deno;
|
429
|
+
var versions = process && process.versions || Deno && Deno.version;
|
430
|
+
var v8 = versions && versions.v8;
|
431
|
+
var match, version;
|
432
|
+
|
433
|
+
if (v8) {
|
434
|
+
match = v8.split('.');
|
435
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
436
|
+
// but their correct versions are not interesting for us
|
437
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
438
|
+
}
|
439
|
+
|
440
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
441
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
442
|
+
if (!version && engineUserAgent) {
|
443
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
444
|
+
if (!match || match[1] >= 74) {
|
445
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
446
|
+
if (match) version = +match[1];
|
447
|
+
}
|
448
|
+
}
|
449
|
+
|
450
|
+
var engineV8Version = version;
|
451
|
+
|
452
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
457
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
458
|
+
var symbol = Symbol();
|
459
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
460
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
461
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
462
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
463
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
464
|
+
});
|
465
|
+
|
466
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
467
|
+
|
468
|
+
|
469
|
+
var useSymbolAsUid = nativeSymbol
|
470
|
+
&& !Symbol.sham
|
471
|
+
&& typeof Symbol.iterator == 'symbol';
|
472
|
+
|
473
|
+
var Object$3 = global_1.Object;
|
474
|
+
|
475
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
476
|
+
return typeof it == 'symbol';
|
477
|
+
} : function (it) {
|
478
|
+
var $Symbol = getBuiltIn('Symbol');
|
479
|
+
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
|
480
|
+
};
|
481
|
+
|
482
|
+
var String$3 = global_1.String;
|
483
|
+
|
484
|
+
var tryToString = function (argument) {
|
485
|
+
try {
|
486
|
+
return String$3(argument);
|
487
|
+
} catch (error) {
|
488
|
+
return 'Object';
|
489
|
+
}
|
490
|
+
};
|
491
|
+
|
492
|
+
var TypeError$9 = global_1.TypeError;
|
493
|
+
|
494
|
+
// `Assert: IsCallable(argument) is true`
|
495
|
+
var aCallable = function (argument) {
|
496
|
+
if (isCallable(argument)) return argument;
|
497
|
+
throw TypeError$9(tryToString(argument) + ' is not a function');
|
498
|
+
};
|
499
|
+
|
500
|
+
// `GetMethod` abstract operation
|
501
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
502
|
+
var getMethod = function (V, P) {
|
503
|
+
var func = V[P];
|
504
|
+
return func == null ? undefined : aCallable(func);
|
505
|
+
};
|
506
|
+
|
507
|
+
var TypeError$8 = global_1.TypeError;
|
508
|
+
|
509
|
+
// `OrdinaryToPrimitive` abstract operation
|
510
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
511
|
+
var ordinaryToPrimitive = function (input, pref) {
|
375
512
|
var fn, val;
|
376
|
-
if (
|
377
|
-
if (
|
378
|
-
if (
|
379
|
-
throw TypeError("Can't convert object to primitive value");
|
513
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
514
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
515
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
516
|
+
throw TypeError$8("Can't convert object to primitive value");
|
517
|
+
};
|
518
|
+
|
519
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
520
|
+
var defineProperty$1 = Object.defineProperty;
|
521
|
+
|
522
|
+
var setGlobal = function (key, value) {
|
523
|
+
try {
|
524
|
+
defineProperty$1(global_1, key, { value: value, configurable: true, writable: true });
|
525
|
+
} catch (error) {
|
526
|
+
global_1[key] = value;
|
527
|
+
} return value;
|
528
|
+
};
|
529
|
+
|
530
|
+
var SHARED = '__core-js_shared__';
|
531
|
+
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
532
|
+
|
533
|
+
var sharedStore = store$1;
|
534
|
+
|
535
|
+
var shared = createCommonjsModule(function (module) {
|
536
|
+
(module.exports = function (key, value) {
|
537
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
538
|
+
})('versions', []).push({
|
539
|
+
version: '3.21.1',
|
540
|
+
mode: 'global',
|
541
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
542
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
|
543
|
+
source: 'https://github.com/zloirock/core-js'
|
544
|
+
});
|
545
|
+
});
|
546
|
+
|
547
|
+
var Object$2 = global_1.Object;
|
548
|
+
|
549
|
+
// `ToObject` abstract operation
|
550
|
+
// https://tc39.es/ecma262/#sec-toobject
|
551
|
+
var toObject = function (argument) {
|
552
|
+
return Object$2(requireObjectCoercible(argument));
|
553
|
+
};
|
554
|
+
|
555
|
+
var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
556
|
+
|
557
|
+
// `HasOwnProperty` abstract operation
|
558
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
559
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
560
|
+
return hasOwnProperty(toObject(it), key);
|
561
|
+
};
|
562
|
+
|
563
|
+
var id = 0;
|
564
|
+
var postfix = Math.random();
|
565
|
+
var toString = functionUncurryThis(1.0.toString);
|
566
|
+
|
567
|
+
var uid = function (key) {
|
568
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
380
569
|
};
|
381
570
|
|
382
|
-
var
|
571
|
+
var WellKnownSymbolsStore = shared('wks');
|
572
|
+
var Symbol$1 = global_1.Symbol;
|
573
|
+
var symbolFor = Symbol$1 && Symbol$1['for'];
|
574
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
575
|
+
|
576
|
+
var wellKnownSymbol = function (name) {
|
577
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
578
|
+
var description = 'Symbol.' + name;
|
579
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
580
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
581
|
+
} else if (useSymbolAsUid && symbolFor) {
|
582
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
583
|
+
} else {
|
584
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
585
|
+
}
|
586
|
+
} return WellKnownSymbolsStore[name];
|
587
|
+
};
|
588
|
+
|
589
|
+
var TypeError$7 = global_1.TypeError;
|
590
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
591
|
+
|
592
|
+
// `ToPrimitive` abstract operation
|
593
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
594
|
+
var toPrimitive = function (input, pref) {
|
595
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
596
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
597
|
+
var result;
|
598
|
+
if (exoticToPrim) {
|
599
|
+
if (pref === undefined) pref = 'default';
|
600
|
+
result = functionCall(exoticToPrim, input, pref);
|
601
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
602
|
+
throw TypeError$7("Can't convert object to primitive value");
|
603
|
+
}
|
604
|
+
if (pref === undefined) pref = 'number';
|
605
|
+
return ordinaryToPrimitive(input, pref);
|
606
|
+
};
|
383
607
|
|
384
|
-
|
385
|
-
|
608
|
+
// `ToPropertyKey` abstract operation
|
609
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
610
|
+
var toPropertyKey = function (argument) {
|
611
|
+
var key = toPrimitive(argument, 'string');
|
612
|
+
return isSymbol(key) ? key : key + '';
|
386
613
|
};
|
387
614
|
|
388
615
|
var document$1 = global_1.document;
|
389
616
|
// typeof document.createElement is 'object' in old IE
|
390
|
-
var EXISTS = isObject(document$1) && isObject(document$1.createElement);
|
617
|
+
var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
|
391
618
|
|
392
619
|
var documentCreateElement = function (it) {
|
393
|
-
return EXISTS ? document$1.createElement(it) : {};
|
620
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
394
621
|
};
|
395
622
|
|
396
|
-
//
|
623
|
+
// Thanks to IE8 for its funny defineProperty
|
397
624
|
var ie8DomDefine = !descriptors && !fails(function () {
|
398
|
-
// eslint-disable-next-line es/no-object-defineproperty --
|
625
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
399
626
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
400
627
|
get: function () { return 7; }
|
401
628
|
}).a != 7;
|
402
629
|
});
|
403
630
|
|
404
631
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
405
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
632
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
406
633
|
|
407
634
|
// `Object.getOwnPropertyDescriptor` method
|
408
635
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
409
|
-
var f$
|
636
|
+
var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
410
637
|
O = toIndexedObject(O);
|
411
|
-
P =
|
638
|
+
P = toPropertyKey(P);
|
412
639
|
if (ie8DomDefine) try {
|
413
|
-
return $getOwnPropertyDescriptor(O, P);
|
640
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
414
641
|
} catch (error) { /* empty */ }
|
415
|
-
if (
|
642
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
|
416
643
|
};
|
417
644
|
|
418
645
|
var objectGetOwnPropertyDescriptor = {
|
419
|
-
f: f$
|
646
|
+
f: f$4
|
420
647
|
};
|
421
648
|
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
649
|
+
// V8 ~ Chrome 36-
|
650
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
651
|
+
var v8PrototypeDefineBug = descriptors && fails(function () {
|
652
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
653
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
654
|
+
value: 42,
|
655
|
+
writable: false
|
656
|
+
}).prototype != 42;
|
657
|
+
});
|
658
|
+
|
659
|
+
var String$2 = global_1.String;
|
660
|
+
var TypeError$6 = global_1.TypeError;
|
661
|
+
|
662
|
+
// `Assert: Type(argument) is Object`
|
663
|
+
var anObject = function (argument) {
|
664
|
+
if (isObject(argument)) return argument;
|
665
|
+
throw TypeError$6(String$2(argument) + ' is not an object');
|
426
666
|
};
|
427
667
|
|
668
|
+
var TypeError$5 = global_1.TypeError;
|
428
669
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
429
670
|
var $defineProperty = Object.defineProperty;
|
671
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
672
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
673
|
+
var ENUMERABLE = 'enumerable';
|
674
|
+
var CONFIGURABLE$1 = 'configurable';
|
675
|
+
var WRITABLE = 'writable';
|
430
676
|
|
431
677
|
// `Object.defineProperty` method
|
432
678
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
433
|
-
var f$
|
679
|
+
var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
680
|
+
anObject(O);
|
681
|
+
P = toPropertyKey(P);
|
682
|
+
anObject(Attributes);
|
683
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
684
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
685
|
+
if (current && current[WRITABLE]) {
|
686
|
+
O[P] = Attributes.value;
|
687
|
+
Attributes = {
|
688
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
689
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
690
|
+
writable: false
|
691
|
+
};
|
692
|
+
}
|
693
|
+
} return $defineProperty(O, P, Attributes);
|
694
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
434
695
|
anObject(O);
|
435
|
-
P =
|
696
|
+
P = toPropertyKey(P);
|
436
697
|
anObject(Attributes);
|
437
698
|
if (ie8DomDefine) try {
|
438
699
|
return $defineProperty(O, P, Attributes);
|
439
700
|
} catch (error) { /* empty */ }
|
440
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
701
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$5('Accessors not supported');
|
441
702
|
if ('value' in Attributes) O[P] = Attributes.value;
|
442
703
|
return O;
|
443
704
|
};
|
444
705
|
|
445
706
|
var objectDefineProperty = {
|
446
|
-
f: f$
|
707
|
+
f: f$3
|
447
708
|
};
|
448
709
|
|
449
710
|
var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
@@ -453,25 +714,12 @@
|
|
453
714
|
return object;
|
454
715
|
};
|
455
716
|
|
456
|
-
var
|
457
|
-
try {
|
458
|
-
createNonEnumerableProperty(global_1, key, value);
|
459
|
-
} catch (error) {
|
460
|
-
global_1[key] = value;
|
461
|
-
} return value;
|
462
|
-
};
|
463
|
-
|
464
|
-
var SHARED = '__core-js_shared__';
|
465
|
-
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
466
|
-
|
467
|
-
var sharedStore = store$1;
|
468
|
-
|
469
|
-
var functionToString = Function.toString;
|
717
|
+
var functionToString = functionUncurryThis(Function.toString);
|
470
718
|
|
471
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
472
|
-
if (
|
719
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
720
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
473
721
|
sharedStore.inspectSource = function (it) {
|
474
|
-
return functionToString
|
722
|
+
return functionToString(it);
|
475
723
|
};
|
476
724
|
}
|
477
725
|
|
@@ -479,24 +727,7 @@
|
|
479
727
|
|
480
728
|
var WeakMap$1 = global_1.WeakMap;
|
481
729
|
|
482
|
-
var nativeWeakMap =
|
483
|
-
|
484
|
-
var shared = createCommonjsModule(function (module) {
|
485
|
-
(module.exports = function (key, value) {
|
486
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
487
|
-
})('versions', []).push({
|
488
|
-
version: '3.10.1',
|
489
|
-
mode: 'global',
|
490
|
-
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
491
|
-
});
|
492
|
-
});
|
493
|
-
|
494
|
-
var id = 0;
|
495
|
-
var postfix = Math.random();
|
496
|
-
|
497
|
-
var uid = function (key) {
|
498
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
499
|
-
};
|
730
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
500
731
|
|
501
732
|
var keys = shared('keys');
|
502
733
|
|
@@ -506,6 +737,8 @@
|
|
506
737
|
|
507
738
|
var hiddenKeys$1 = {};
|
508
739
|
|
740
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
741
|
+
var TypeError$4 = global_1.TypeError;
|
509
742
|
var WeakMap = global_1.WeakMap;
|
510
743
|
var set, get, has;
|
511
744
|
|
@@ -517,40 +750,42 @@
|
|
517
750
|
return function (it) {
|
518
751
|
var state;
|
519
752
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
520
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
753
|
+
throw TypeError$4('Incompatible receiver, ' + TYPE + ' required');
|
521
754
|
} return state;
|
522
755
|
};
|
523
756
|
};
|
524
757
|
|
525
|
-
if (nativeWeakMap) {
|
758
|
+
if (nativeWeakMap || sharedStore.state) {
|
526
759
|
var store = sharedStore.state || (sharedStore.state = new WeakMap());
|
527
|
-
var wmget = store.get;
|
528
|
-
var wmhas = store.has;
|
529
|
-
var wmset = store.set;
|
760
|
+
var wmget = functionUncurryThis(store.get);
|
761
|
+
var wmhas = functionUncurryThis(store.has);
|
762
|
+
var wmset = functionUncurryThis(store.set);
|
530
763
|
set = function (it, metadata) {
|
764
|
+
if (wmhas(store, it)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
531
765
|
metadata.facade = it;
|
532
|
-
wmset
|
766
|
+
wmset(store, it, metadata);
|
533
767
|
return metadata;
|
534
768
|
};
|
535
769
|
get = function (it) {
|
536
|
-
return wmget
|
770
|
+
return wmget(store, it) || {};
|
537
771
|
};
|
538
772
|
has = function (it) {
|
539
|
-
return wmhas
|
773
|
+
return wmhas(store, it);
|
540
774
|
};
|
541
775
|
} else {
|
542
776
|
var STATE = sharedKey('state');
|
543
777
|
hiddenKeys$1[STATE] = true;
|
544
778
|
set = function (it, metadata) {
|
779
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
545
780
|
metadata.facade = it;
|
546
781
|
createNonEnumerableProperty(it, STATE, metadata);
|
547
782
|
return metadata;
|
548
783
|
};
|
549
784
|
get = function (it) {
|
550
|
-
return
|
785
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
551
786
|
};
|
552
787
|
has = function (it) {
|
553
|
-
return
|
788
|
+
return hasOwnProperty_1(it, STATE);
|
554
789
|
};
|
555
790
|
}
|
556
791
|
|
@@ -562,7 +797,24 @@
|
|
562
797
|
getterFor: getterFor
|
563
798
|
};
|
564
799
|
|
800
|
+
var FunctionPrototype = Function.prototype;
|
801
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
802
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
803
|
+
|
804
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype, 'name');
|
805
|
+
// additional protection from minified / mangled / dropped function names
|
806
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
807
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
|
808
|
+
|
809
|
+
var functionName = {
|
810
|
+
EXISTS: EXISTS,
|
811
|
+
PROPER: PROPER,
|
812
|
+
CONFIGURABLE: CONFIGURABLE
|
813
|
+
};
|
814
|
+
|
565
815
|
var redefine = createCommonjsModule(function (module) {
|
816
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
817
|
+
|
566
818
|
var getInternalState = internalState.get;
|
567
819
|
var enforceInternalState = internalState.enforce;
|
568
820
|
var TEMPLATE = String(String).split('String');
|
@@ -571,14 +823,18 @@
|
|
571
823
|
var unsafe = options ? !!options.unsafe : false;
|
572
824
|
var simple = options ? !!options.enumerable : false;
|
573
825
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
826
|
+
var name = options && options.name !== undefined ? options.name : key;
|
574
827
|
var state;
|
575
|
-
if (
|
576
|
-
if (
|
577
|
-
|
828
|
+
if (isCallable(value)) {
|
829
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
830
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
831
|
+
}
|
832
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
833
|
+
createNonEnumerableProperty(value, 'name', name);
|
578
834
|
}
|
579
835
|
state = enforceInternalState(value);
|
580
836
|
if (!state.source) {
|
581
|
-
state.source = TEMPLATE.join(typeof
|
837
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
582
838
|
}
|
583
839
|
}
|
584
840
|
if (O === global_1) {
|
@@ -594,54 +850,51 @@
|
|
594
850
|
else createNonEnumerableProperty(O, key, value);
|
595
851
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
596
852
|
})(Function.prototype, 'toString', function toString() {
|
597
|
-
return
|
853
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
598
854
|
});
|
599
855
|
});
|
600
856
|
|
601
|
-
var path = global_1;
|
602
|
-
|
603
|
-
var aFunction$1 = function (variable) {
|
604
|
-
return typeof variable == 'function' ? variable : undefined;
|
605
|
-
};
|
606
|
-
|
607
|
-
var getBuiltIn = function (namespace, method) {
|
608
|
-
return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global_1[namespace])
|
609
|
-
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
|
610
|
-
};
|
611
|
-
|
612
857
|
var ceil = Math.ceil;
|
613
858
|
var floor = Math.floor;
|
614
859
|
|
615
|
-
// `
|
616
|
-
// https://tc39.es/ecma262/#sec-
|
617
|
-
var
|
618
|
-
|
860
|
+
// `ToIntegerOrInfinity` abstract operation
|
861
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
862
|
+
var toIntegerOrInfinity = function (argument) {
|
863
|
+
var number = +argument;
|
864
|
+
// eslint-disable-next-line no-self-compare -- safe
|
865
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
|
619
866
|
};
|
620
867
|
|
868
|
+
var max = Math.max;
|
621
869
|
var min$1 = Math.min;
|
622
870
|
|
871
|
+
// Helper for a popular repeating case of the spec:
|
872
|
+
// Let integer be ? ToInteger(index).
|
873
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
874
|
+
var toAbsoluteIndex = function (index, length) {
|
875
|
+
var integer = toIntegerOrInfinity(index);
|
876
|
+
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
877
|
+
};
|
878
|
+
|
879
|
+
var min = Math.min;
|
880
|
+
|
623
881
|
// `ToLength` abstract operation
|
624
882
|
// https://tc39.es/ecma262/#sec-tolength
|
625
883
|
var toLength = function (argument) {
|
626
|
-
return argument > 0 ? min
|
884
|
+
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
627
885
|
};
|
628
886
|
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
// Let integer be ? ToInteger(index).
|
634
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
635
|
-
var toAbsoluteIndex = function (index, length) {
|
636
|
-
var integer = toInteger(index);
|
637
|
-
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
887
|
+
// `LengthOfArrayLike` abstract operation
|
888
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
889
|
+
var lengthOfArrayLike = function (obj) {
|
890
|
+
return toLength(obj.length);
|
638
891
|
};
|
639
892
|
|
640
893
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
641
894
|
var createMethod$3 = function (IS_INCLUDES) {
|
642
895
|
return function ($this, el, fromIndex) {
|
643
896
|
var O = toIndexedObject($this);
|
644
|
-
var length =
|
897
|
+
var length = lengthOfArrayLike(O);
|
645
898
|
var index = toAbsoluteIndex(fromIndex, length);
|
646
899
|
var value;
|
647
900
|
// Array#includes uses SameValueZero equality algorithm
|
@@ -666,18 +919,20 @@
|
|
666
919
|
indexOf: createMethod$3(false)
|
667
920
|
};
|
668
921
|
|
669
|
-
var indexOf = arrayIncludes.indexOf;
|
922
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
923
|
+
|
670
924
|
|
925
|
+
var push$2 = functionUncurryThis([].push);
|
671
926
|
|
672
927
|
var objectKeysInternal = function (object, names) {
|
673
928
|
var O = toIndexedObject(object);
|
674
929
|
var i = 0;
|
675
930
|
var result = [];
|
676
931
|
var key;
|
677
|
-
for (key in O) !
|
932
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$2(result, key);
|
678
933
|
// Don't enum bug & hidden keys
|
679
|
-
while (names.length > i) if (
|
680
|
-
~indexOf(result, key) ||
|
934
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
935
|
+
~indexOf$1(result, key) || push$2(result, key);
|
681
936
|
}
|
682
937
|
return result;
|
683
938
|
};
|
@@ -698,35 +953,39 @@
|
|
698
953
|
// `Object.getOwnPropertyNames` method
|
699
954
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
700
955
|
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
701
|
-
var f$
|
956
|
+
var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
702
957
|
return objectKeysInternal(O, hiddenKeys);
|
703
958
|
};
|
704
959
|
|
705
960
|
var objectGetOwnPropertyNames = {
|
706
|
-
f: f$
|
961
|
+
f: f$2
|
707
962
|
};
|
708
963
|
|
709
964
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
710
|
-
var f = Object.getOwnPropertySymbols;
|
965
|
+
var f$1 = Object.getOwnPropertySymbols;
|
711
966
|
|
712
967
|
var objectGetOwnPropertySymbols = {
|
713
|
-
f: f
|
968
|
+
f: f$1
|
714
969
|
};
|
715
970
|
|
971
|
+
var concat$1 = functionUncurryThis([].concat);
|
972
|
+
|
716
973
|
// all object keys, includes non-enumerable and symbols
|
717
974
|
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
718
975
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
719
976
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
720
|
-
return getOwnPropertySymbols ?
|
977
|
+
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
721
978
|
};
|
722
979
|
|
723
|
-
var copyConstructorProperties = function (target, source) {
|
980
|
+
var copyConstructorProperties = function (target, source, exceptions) {
|
724
981
|
var keys = ownKeys(source);
|
725
982
|
var defineProperty = objectDefineProperty.f;
|
726
983
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
727
984
|
for (var i = 0; i < keys.length; i++) {
|
728
985
|
var key = keys[i];
|
729
|
-
if (!
|
986
|
+
if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
|
987
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
988
|
+
}
|
730
989
|
}
|
731
990
|
};
|
732
991
|
|
@@ -736,7 +995,7 @@
|
|
736
995
|
var value = data[normalize(feature)];
|
737
996
|
return value == POLYFILL ? true
|
738
997
|
: value == NATIVE ? false
|
739
|
-
:
|
998
|
+
: isCallable(detection) ? fails(detection)
|
740
999
|
: !!detection;
|
741
1000
|
};
|
742
1001
|
|
@@ -770,6 +1029,7 @@
|
|
770
1029
|
options.sham - add a flag to not completely full polyfills
|
771
1030
|
options.enumerable - export as enumerable property
|
772
1031
|
options.noTargetGet - prevent calling a getter on target
|
1032
|
+
options.name - the .name of the function if it does not match the key
|
773
1033
|
*/
|
774
1034
|
var _export = function (options, source) {
|
775
1035
|
var TARGET = options.target;
|
@@ -792,7 +1052,7 @@
|
|
792
1052
|
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
793
1053
|
// contained in target
|
794
1054
|
if (!FORCED && targetProperty !== undefined) {
|
795
|
-
if (typeof sourceProperty
|
1055
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
796
1056
|
copyConstructorProperties(sourceProperty, targetProperty);
|
797
1057
|
}
|
798
1058
|
// add a flag to not completely full polyfills
|
@@ -804,6 +1064,45 @@
|
|
804
1064
|
}
|
805
1065
|
};
|
806
1066
|
|
1067
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
1068
|
+
var test = {};
|
1069
|
+
|
1070
|
+
test[TO_STRING_TAG$1] = 'z';
|
1071
|
+
|
1072
|
+
var toStringTagSupport = String(test) === '[object z]';
|
1073
|
+
|
1074
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
1075
|
+
var Object$1 = global_1.Object;
|
1076
|
+
|
1077
|
+
// ES3 wrong here
|
1078
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
1079
|
+
|
1080
|
+
// fallback for IE11 Script Access Denied error
|
1081
|
+
var tryGet = function (it, key) {
|
1082
|
+
try {
|
1083
|
+
return it[key];
|
1084
|
+
} catch (error) { /* empty */ }
|
1085
|
+
};
|
1086
|
+
|
1087
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
1088
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
1089
|
+
var O, tag, result;
|
1090
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
1091
|
+
// @@toStringTag case
|
1092
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
1093
|
+
// builtinTag case
|
1094
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
1095
|
+
// ES3 arguments fallback
|
1096
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
1097
|
+
};
|
1098
|
+
|
1099
|
+
var String$1 = global_1.String;
|
1100
|
+
|
1101
|
+
var toString_1 = function (argument) {
|
1102
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
1103
|
+
return String$1(argument);
|
1104
|
+
};
|
1105
|
+
|
807
1106
|
// `RegExp.prototype.flags` getter implementation
|
808
1107
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
809
1108
|
var regexpFlags = function () {
|
@@ -818,71 +1117,228 @@
|
|
818
1117
|
return result;
|
819
1118
|
};
|
820
1119
|
|
821
|
-
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
822
|
-
|
823
|
-
function RE(s, f) {
|
824
|
-
return RegExp(s, f);
|
825
|
-
}
|
1120
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
1121
|
+
var $RegExp$2 = global_1.RegExp;
|
826
1122
|
|
827
1123
|
var UNSUPPORTED_Y$1 = fails(function () {
|
828
|
-
|
829
|
-
var re = RE('a', 'y');
|
1124
|
+
var re = $RegExp$2('a', 'y');
|
830
1125
|
re.lastIndex = 2;
|
831
1126
|
return re.exec('abcd') != null;
|
832
1127
|
});
|
833
1128
|
|
834
|
-
|
1129
|
+
// UC Browser bug
|
1130
|
+
// https://github.com/zloirock/core-js/issues/1008
|
1131
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails(function () {
|
1132
|
+
return !$RegExp$2('a', 'y').sticky;
|
1133
|
+
});
|
1134
|
+
|
1135
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails(function () {
|
835
1136
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
836
|
-
var re =
|
1137
|
+
var re = $RegExp$2('^r', 'gy');
|
837
1138
|
re.lastIndex = 2;
|
838
1139
|
return re.exec('str') != null;
|
839
1140
|
});
|
840
1141
|
|
841
1142
|
var regexpStickyHelpers = {
|
842
|
-
|
843
|
-
|
1143
|
+
BROKEN_CARET: BROKEN_CARET,
|
1144
|
+
MISSED_STICKY: MISSED_STICKY,
|
1145
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
844
1146
|
};
|
845
1147
|
|
846
|
-
|
847
|
-
|
1148
|
+
// `Object.keys` method
|
1149
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
1150
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
1151
|
+
var objectKeys = Object.keys || function keys(O) {
|
1152
|
+
return objectKeysInternal(O, enumBugKeys);
|
1153
|
+
};
|
848
1154
|
|
849
|
-
|
1155
|
+
// `Object.defineProperties` method
|
1156
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
1157
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
1158
|
+
var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
1159
|
+
anObject(O);
|
1160
|
+
var props = toIndexedObject(Properties);
|
1161
|
+
var keys = objectKeys(Properties);
|
1162
|
+
var length = keys.length;
|
1163
|
+
var index = 0;
|
1164
|
+
var key;
|
1165
|
+
while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
|
1166
|
+
return O;
|
1167
|
+
};
|
850
1168
|
|
851
|
-
var
|
852
|
-
|
853
|
-
|
854
|
-
nativeExec.call(re1, 'a');
|
855
|
-
nativeExec.call(re2, 'a');
|
856
|
-
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
857
|
-
})();
|
1169
|
+
var objectDefineProperties = {
|
1170
|
+
f: f
|
1171
|
+
};
|
858
1172
|
|
859
|
-
var
|
1173
|
+
var html = getBuiltIn('document', 'documentElement');
|
860
1174
|
|
861
|
-
|
862
|
-
// eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
|
863
|
-
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
1175
|
+
/* global ActiveXObject -- old IE, WSH */
|
864
1176
|
|
865
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
|
866
1177
|
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
1178
|
+
|
1179
|
+
|
1180
|
+
|
1181
|
+
|
1182
|
+
|
1183
|
+
|
1184
|
+
var GT = '>';
|
1185
|
+
var LT = '<';
|
1186
|
+
var PROTOTYPE = 'prototype';
|
1187
|
+
var SCRIPT = 'script';
|
1188
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
1189
|
+
|
1190
|
+
var EmptyConstructor = function () { /* empty */ };
|
1191
|
+
|
1192
|
+
var scriptTag = function (content) {
|
1193
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
1194
|
+
};
|
1195
|
+
|
1196
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
1197
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
1198
|
+
activeXDocument.write(scriptTag(''));
|
1199
|
+
activeXDocument.close();
|
1200
|
+
var temp = activeXDocument.parentWindow.Object;
|
1201
|
+
activeXDocument = null; // avoid memory leak
|
1202
|
+
return temp;
|
1203
|
+
};
|
1204
|
+
|
1205
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
1206
|
+
var NullProtoObjectViaIFrame = function () {
|
1207
|
+
// Thrash, waste and sodomy: IE GC bug
|
1208
|
+
var iframe = documentCreateElement('iframe');
|
1209
|
+
var JS = 'java' + SCRIPT + ':';
|
1210
|
+
var iframeDocument;
|
1211
|
+
iframe.style.display = 'none';
|
1212
|
+
html.appendChild(iframe);
|
1213
|
+
// https://github.com/zloirock/core-js/issues/475
|
1214
|
+
iframe.src = String(JS);
|
1215
|
+
iframeDocument = iframe.contentWindow.document;
|
1216
|
+
iframeDocument.open();
|
1217
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
1218
|
+
iframeDocument.close();
|
1219
|
+
return iframeDocument.F;
|
1220
|
+
};
|
1221
|
+
|
1222
|
+
// Check for document.domain and active x support
|
1223
|
+
// No need to use active x approach when document.domain is not set
|
1224
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
1225
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
1226
|
+
// avoid IE GC bug
|
1227
|
+
var activeXDocument;
|
1228
|
+
var NullProtoObject = function () {
|
1229
|
+
try {
|
1230
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
1231
|
+
} catch (error) { /* ignore */ }
|
1232
|
+
NullProtoObject = typeof document != 'undefined'
|
1233
|
+
? document.domain && activeXDocument
|
1234
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
1235
|
+
: NullProtoObjectViaIFrame()
|
1236
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
1237
|
+
var length = enumBugKeys.length;
|
1238
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
1239
|
+
return NullProtoObject();
|
1240
|
+
};
|
1241
|
+
|
1242
|
+
hiddenKeys$1[IE_PROTO] = true;
|
1243
|
+
|
1244
|
+
// `Object.create` method
|
1245
|
+
// https://tc39.es/ecma262/#sec-object.create
|
1246
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
1247
|
+
var result;
|
1248
|
+
if (O !== null) {
|
1249
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
1250
|
+
result = new EmptyConstructor();
|
1251
|
+
EmptyConstructor[PROTOTYPE] = null;
|
1252
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
1253
|
+
result[IE_PROTO] = O;
|
1254
|
+
} else result = NullProtoObject();
|
1255
|
+
return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
|
1256
|
+
};
|
1257
|
+
|
1258
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
1259
|
+
var $RegExp$1 = global_1.RegExp;
|
1260
|
+
|
1261
|
+
var regexpUnsupportedDotAll = fails(function () {
|
1262
|
+
var re = $RegExp$1('.', 's');
|
1263
|
+
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
1264
|
+
});
|
1265
|
+
|
1266
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
1267
|
+
var $RegExp = global_1.RegExp;
|
1268
|
+
|
1269
|
+
var regexpUnsupportedNcg = fails(function () {
|
1270
|
+
var re = $RegExp('(?<a>b)', 'g');
|
1271
|
+
return re.exec('b').groups.a !== 'b' ||
|
1272
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
1273
|
+
});
|
1274
|
+
|
1275
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
1276
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
1277
|
+
|
1278
|
+
|
1279
|
+
|
1280
|
+
|
1281
|
+
|
1282
|
+
|
1283
|
+
|
1284
|
+
var getInternalState = internalState.get;
|
1285
|
+
|
1286
|
+
|
1287
|
+
|
1288
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
1289
|
+
var nativeExec = RegExp.prototype.exec;
|
1290
|
+
var patchedExec = nativeExec;
|
1291
|
+
var charAt = functionUncurryThis(''.charAt);
|
1292
|
+
var indexOf = functionUncurryThis(''.indexOf);
|
1293
|
+
var replace$1 = functionUncurryThis(''.replace);
|
1294
|
+
var stringSlice = functionUncurryThis(''.slice);
|
1295
|
+
|
1296
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
1297
|
+
var re1 = /a/;
|
1298
|
+
var re2 = /b*/g;
|
1299
|
+
functionCall(nativeExec, re1, 'a');
|
1300
|
+
functionCall(nativeExec, re2, 'a');
|
1301
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
1302
|
+
})();
|
1303
|
+
|
1304
|
+
var UNSUPPORTED_Y = regexpStickyHelpers.BROKEN_CARET;
|
1305
|
+
|
1306
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
1307
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
1308
|
+
|
1309
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || regexpUnsupportedDotAll || regexpUnsupportedNcg;
|
1310
|
+
|
1311
|
+
if (PATCH) {
|
1312
|
+
patchedExec = function exec(string) {
|
1313
|
+
var re = this;
|
1314
|
+
var state = getInternalState(re);
|
1315
|
+
var str = toString_1(string);
|
1316
|
+
var raw = state.raw;
|
1317
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
1318
|
+
|
1319
|
+
if (raw) {
|
1320
|
+
raw.lastIndex = re.lastIndex;
|
1321
|
+
result = functionCall(patchedExec, raw, str);
|
1322
|
+
re.lastIndex = raw.lastIndex;
|
1323
|
+
return result;
|
1324
|
+
}
|
1325
|
+
|
1326
|
+
var groups = state.groups;
|
871
1327
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
872
|
-
var flags = regexpFlags
|
1328
|
+
var flags = functionCall(regexpFlags, re);
|
873
1329
|
var source = re.source;
|
874
1330
|
var charsAdded = 0;
|
875
1331
|
var strCopy = str;
|
876
1332
|
|
877
1333
|
if (sticky) {
|
878
|
-
flags =
|
879
|
-
if (
|
1334
|
+
flags = replace$1(flags, 'y', '');
|
1335
|
+
if (indexOf(flags, 'g') === -1) {
|
880
1336
|
flags += 'g';
|
881
1337
|
}
|
882
1338
|
|
883
|
-
strCopy =
|
1339
|
+
strCopy = stringSlice(str, re.lastIndex);
|
884
1340
|
// Support anchored sticky behavior.
|
885
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str
|
1341
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
|
886
1342
|
source = '(?: ' + source + ')';
|
887
1343
|
strCopy = ' ' + strCopy;
|
888
1344
|
charsAdded++;
|
@@ -897,12 +1353,12 @@
|
|
897
1353
|
}
|
898
1354
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
899
1355
|
|
900
|
-
match = nativeExec
|
1356
|
+
match = functionCall(nativeExec, sticky ? reCopy : re, strCopy);
|
901
1357
|
|
902
1358
|
if (sticky) {
|
903
1359
|
if (match) {
|
904
|
-
match.input = match.input
|
905
|
-
match[0] = match[0]
|
1360
|
+
match.input = stringSlice(match.input, charsAdded);
|
1361
|
+
match[0] = stringSlice(match[0], charsAdded);
|
906
1362
|
match.index = re.lastIndex;
|
907
1363
|
re.lastIndex += match[0].length;
|
908
1364
|
} else re.lastIndex = 0;
|
@@ -912,13 +1368,21 @@
|
|
912
1368
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
913
1369
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
914
1370
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
915
|
-
nativeReplace
|
1371
|
+
functionCall(nativeReplace, match[0], reCopy, function () {
|
916
1372
|
for (i = 1; i < arguments.length - 2; i++) {
|
917
1373
|
if (arguments[i] === undefined) match[i] = undefined;
|
918
1374
|
}
|
919
1375
|
});
|
920
1376
|
}
|
921
1377
|
|
1378
|
+
if (match && groups) {
|
1379
|
+
match.groups = object = objectCreate(null);
|
1380
|
+
for (i = 0; i < groups.length; i++) {
|
1381
|
+
group = groups[i];
|
1382
|
+
object[group[0]] = match[group[1]];
|
1383
|
+
}
|
1384
|
+
}
|
1385
|
+
|
922
1386
|
return match;
|
923
1387
|
};
|
924
1388
|
}
|
@@ -931,58 +1395,6 @@
|
|
931
1395
|
exec: regexpExec
|
932
1396
|
});
|
933
1397
|
|
934
|
-
var engineIsNode = classofRaw(global_1.process) == 'process';
|
935
|
-
|
936
|
-
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
937
|
-
|
938
|
-
var process = global_1.process;
|
939
|
-
var versions = process && process.versions;
|
940
|
-
var v8 = versions && versions.v8;
|
941
|
-
var match, version;
|
942
|
-
|
943
|
-
if (v8) {
|
944
|
-
match = v8.split('.');
|
945
|
-
version = match[0] + match[1];
|
946
|
-
} else if (engineUserAgent) {
|
947
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
948
|
-
if (!match || match[1] >= 74) {
|
949
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
950
|
-
if (match) version = match[1];
|
951
|
-
}
|
952
|
-
}
|
953
|
-
|
954
|
-
var engineV8Version = version && +version;
|
955
|
-
|
956
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
957
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
958
|
-
// eslint-disable-next-line es/no-symbol -- required for testing
|
959
|
-
return !Symbol.sham &&
|
960
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
961
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
962
|
-
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
|
963
|
-
});
|
964
|
-
|
965
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
966
|
-
|
967
|
-
|
968
|
-
var useSymbolAsUid = nativeSymbol
|
969
|
-
&& !Symbol.sham
|
970
|
-
&& typeof Symbol.iterator == 'symbol';
|
971
|
-
|
972
|
-
var WellKnownSymbolsStore = shared('wks');
|
973
|
-
var Symbol$1 = global_1.Symbol;
|
974
|
-
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
975
|
-
|
976
|
-
var wellKnownSymbol = function (name) {
|
977
|
-
if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
978
|
-
if (nativeSymbol && has$1(Symbol$1, name)) {
|
979
|
-
WellKnownSymbolsStore[name] = Symbol$1[name];
|
980
|
-
} else {
|
981
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
982
|
-
}
|
983
|
-
} return WellKnownSymbolsStore[name];
|
984
|
-
};
|
985
|
-
|
986
1398
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
987
1399
|
|
988
1400
|
|
@@ -990,49 +1402,12 @@
|
|
990
1402
|
|
991
1403
|
|
992
1404
|
|
993
|
-
var SPECIES$2 = wellKnownSymbol('species');
|
994
1405
|
|
995
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
996
|
-
// #replace needs built-in support for named groups.
|
997
|
-
// #match works fine because it just return the exec results, even if it has
|
998
|
-
// a "grops" property.
|
999
|
-
var re = /./;
|
1000
|
-
re.exec = function () {
|
1001
|
-
var result = [];
|
1002
|
-
result.groups = { a: '7' };
|
1003
|
-
return result;
|
1004
|
-
};
|
1005
|
-
return ''.replace(re, '$<a>') !== '7';
|
1006
|
-
});
|
1007
|
-
|
1008
|
-
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
1009
|
-
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
1010
|
-
var REPLACE_KEEPS_$0 = (function () {
|
1011
|
-
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
1012
|
-
return 'a'.replace(/./, '$0') === '$0';
|
1013
|
-
})();
|
1014
|
-
|
1015
|
-
var REPLACE = wellKnownSymbol('replace');
|
1016
|
-
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
1017
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
1018
|
-
if (/./[REPLACE]) {
|
1019
|
-
return /./[REPLACE]('a', '$0') === '';
|
1020
|
-
}
|
1021
|
-
return false;
|
1022
|
-
})();
|
1023
1406
|
|
1024
|
-
|
1025
|
-
|
1026
|
-
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
1027
|
-
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
1028
|
-
var re = /(?:)/;
|
1029
|
-
var originalExec = re.exec;
|
1030
|
-
re.exec = function () { return originalExec.apply(this, arguments); };
|
1031
|
-
var result = 'ab'.split(re);
|
1032
|
-
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
1033
|
-
});
|
1407
|
+
var SPECIES$2 = wellKnownSymbol('species');
|
1408
|
+
var RegExpPrototype = RegExp.prototype;
|
1034
1409
|
|
1035
|
-
var fixRegexpWellKnownSymbolLogic = function (KEY,
|
1410
|
+
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
1036
1411
|
var SYMBOL = wellKnownSymbol(KEY);
|
1037
1412
|
|
1038
1413
|
var DELEGATES_TO_SYMBOL = !fails(function () {
|
@@ -1069,44 +1444,29 @@
|
|
1069
1444
|
if (
|
1070
1445
|
!DELEGATES_TO_SYMBOL ||
|
1071
1446
|
!DELEGATES_TO_EXEC ||
|
1072
|
-
|
1073
|
-
REPLACE_SUPPORTS_NAMED_GROUPS &&
|
1074
|
-
REPLACE_KEEPS_$0 &&
|
1075
|
-
!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
1076
|
-
)) ||
|
1077
|
-
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
|
1447
|
+
FORCED
|
1078
1448
|
) {
|
1079
|
-
var
|
1449
|
+
var uncurriedNativeRegExpMethod = functionUncurryThis(/./[SYMBOL]);
|
1080
1450
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
1081
|
-
|
1451
|
+
var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
|
1452
|
+
var $exec = regexp.exec;
|
1453
|
+
if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
|
1082
1454
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
1083
1455
|
// The native String method already delegates to @@method (this
|
1084
1456
|
// polyfilled function), leasing to infinite recursion.
|
1085
1457
|
// We avoid it by directly calling the native @@method method.
|
1086
|
-
return { done: true, value:
|
1458
|
+
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
1087
1459
|
}
|
1088
|
-
return { done: true, value:
|
1460
|
+
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
1089
1461
|
}
|
1090
1462
|
return { done: false };
|
1091
|
-
}, {
|
1092
|
-
REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
|
1093
|
-
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
1094
1463
|
});
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
redefine(String.prototype, KEY, stringMethod);
|
1099
|
-
redefine(RegExp.prototype, SYMBOL, length == 2
|
1100
|
-
// 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
|
1101
|
-
// 21.2.5.11 RegExp.prototype[@@split](string, limit)
|
1102
|
-
? function (string, arg) { return regexMethod.call(string, this, arg); }
|
1103
|
-
// 21.2.5.6 RegExp.prototype[@@match](string)
|
1104
|
-
// 21.2.5.9 RegExp.prototype[@@search](string)
|
1105
|
-
: function (string) { return regexMethod.call(string, this); }
|
1106
|
-
);
|
1464
|
+
|
1465
|
+
redefine(String.prototype, KEY, methods[0]);
|
1466
|
+
redefine(RegExpPrototype, SYMBOL, methods[1]);
|
1107
1467
|
}
|
1108
1468
|
|
1109
|
-
if (
|
1469
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
1110
1470
|
};
|
1111
1471
|
|
1112
1472
|
// `SameValue` abstract operation
|
@@ -1117,43 +1477,39 @@
|
|
1117
1477
|
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
1118
1478
|
};
|
1119
1479
|
|
1480
|
+
var TypeError$3 = global_1.TypeError;
|
1481
|
+
|
1120
1482
|
// `RegExpExec` abstract operation
|
1121
1483
|
// https://tc39.es/ecma262/#sec-regexpexec
|
1122
1484
|
var regexpExecAbstract = function (R, S) {
|
1123
1485
|
var exec = R.exec;
|
1124
|
-
if (
|
1125
|
-
var result = exec
|
1126
|
-
if (
|
1127
|
-
throw TypeError('RegExp exec method returned something other than an Object or null');
|
1128
|
-
}
|
1486
|
+
if (isCallable(exec)) {
|
1487
|
+
var result = functionCall(exec, R, S);
|
1488
|
+
if (result !== null) anObject(result);
|
1129
1489
|
return result;
|
1130
1490
|
}
|
1131
|
-
|
1132
|
-
|
1133
|
-
throw TypeError('RegExp#exec called on incompatible receiver');
|
1134
|
-
}
|
1135
|
-
|
1136
|
-
return regexpExec.call(R, S);
|
1491
|
+
if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
|
1492
|
+
throw TypeError$3('RegExp#exec called on incompatible receiver');
|
1137
1493
|
};
|
1138
1494
|
|
1139
1495
|
// @@search logic
|
1140
|
-
fixRegexpWellKnownSymbolLogic('search',
|
1496
|
+
fixRegexpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
|
1141
1497
|
return [
|
1142
1498
|
// `String.prototype.search` method
|
1143
1499
|
// https://tc39.es/ecma262/#sec-string.prototype.search
|
1144
1500
|
function search(regexp) {
|
1145
1501
|
var O = requireObjectCoercible(this);
|
1146
|
-
var searcher = regexp == undefined ? undefined : regexp
|
1147
|
-
return searcher
|
1502
|
+
var searcher = regexp == undefined ? undefined : getMethod(regexp, SEARCH);
|
1503
|
+
return searcher ? functionCall(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString_1(O));
|
1148
1504
|
},
|
1149
1505
|
// `RegExp.prototype[@@search]` method
|
1150
1506
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
|
1151
|
-
function (
|
1152
|
-
var
|
1153
|
-
|
1507
|
+
function (string) {
|
1508
|
+
var rx = anObject(this);
|
1509
|
+
var S = toString_1(string);
|
1510
|
+
var res = maybeCallNative(nativeSearch, rx, S);
|
1154
1511
|
|
1155
|
-
|
1156
|
-
var S = String(this);
|
1512
|
+
if (res.done) return res.value;
|
1157
1513
|
|
1158
1514
|
var previousLastIndex = rx.lastIndex;
|
1159
1515
|
if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
|
@@ -1164,23 +1520,11 @@
|
|
1164
1520
|
];
|
1165
1521
|
});
|
1166
1522
|
|
1167
|
-
// `Object.keys` method
|
1168
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
1169
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
1170
|
-
var objectKeys = Object.keys || function keys(O) {
|
1171
|
-
return objectKeysInternal(O, enumBugKeys);
|
1172
|
-
};
|
1173
|
-
|
1174
|
-
// `ToObject` abstract operation
|
1175
|
-
// https://tc39.es/ecma262/#sec-toobject
|
1176
|
-
var toObject = function (argument) {
|
1177
|
-
return Object(requireObjectCoercible(argument));
|
1178
|
-
};
|
1179
|
-
|
1180
1523
|
// eslint-disable-next-line es/no-object-assign -- safe
|
1181
1524
|
var $assign = Object.assign;
|
1182
1525
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
1183
1526
|
var defineProperty = Object.defineProperty;
|
1527
|
+
var concat = functionUncurryThis([].concat);
|
1184
1528
|
|
1185
1529
|
// `Object.assign` method
|
1186
1530
|
// https://tc39.es/ecma262/#sec-object.assign
|
@@ -1212,13 +1556,13 @@
|
|
1212
1556
|
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
1213
1557
|
while (argumentsLength > index) {
|
1214
1558
|
var S = indexedObject(arguments[index++]);
|
1215
|
-
var keys = getOwnPropertySymbols ? objectKeys(S)
|
1559
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
1216
1560
|
var length = keys.length;
|
1217
1561
|
var j = 0;
|
1218
1562
|
var key;
|
1219
1563
|
while (length > j) {
|
1220
1564
|
key = keys[j++];
|
1221
|
-
if (!descriptors || propertyIsEnumerable
|
1565
|
+
if (!descriptors || functionCall(propertyIsEnumerable, S, key)) T[key] = S[key];
|
1222
1566
|
}
|
1223
1567
|
} return T;
|
1224
1568
|
} : $assign;
|
@@ -1233,12 +1577,12 @@
|
|
1233
1577
|
var arrayMethodIsStrict = function (METHOD_NAME, argument) {
|
1234
1578
|
var method = [][METHOD_NAME];
|
1235
1579
|
return !!method && fails(function () {
|
1236
|
-
// eslint-disable-next-line no-useless-call
|
1237
|
-
method.call(null, argument || function () {
|
1580
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
1581
|
+
method.call(null, argument || function () { return 1; }, 1);
|
1238
1582
|
});
|
1239
1583
|
};
|
1240
1584
|
|
1241
|
-
var
|
1585
|
+
var un$Join = functionUncurryThis([].join);
|
1242
1586
|
|
1243
1587
|
var ES3_STRINGS = indexedObject != Object;
|
1244
1588
|
var STRICT_METHOD$1 = arrayMethodIsStrict('join', ',');
|
@@ -1247,35 +1591,16 @@
|
|
1247
1591
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
1248
1592
|
_export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
|
1249
1593
|
join: function join(separator) {
|
1250
|
-
return
|
1594
|
+
return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
|
1251
1595
|
}
|
1252
1596
|
});
|
1253
1597
|
|
1254
|
-
var
|
1255
|
-
if (typeof it != 'function') {
|
1256
|
-
throw TypeError(String(it) + ' is not a function');
|
1257
|
-
} return it;
|
1258
|
-
};
|
1598
|
+
var bind = functionUncurryThis(functionUncurryThis.bind);
|
1259
1599
|
|
1260
1600
|
// optional / simple context binding
|
1261
|
-
var functionBindContext = function (fn, that
|
1262
|
-
|
1263
|
-
|
1264
|
-
switch (length) {
|
1265
|
-
case 0: return function () {
|
1266
|
-
return fn.call(that);
|
1267
|
-
};
|
1268
|
-
case 1: return function (a) {
|
1269
|
-
return fn.call(that, a);
|
1270
|
-
};
|
1271
|
-
case 2: return function (a, b) {
|
1272
|
-
return fn.call(that, a, b);
|
1273
|
-
};
|
1274
|
-
case 3: return function (a, b, c) {
|
1275
|
-
return fn.call(that, a, b, c);
|
1276
|
-
};
|
1277
|
-
}
|
1278
|
-
return function (/* ...args */) {
|
1601
|
+
var functionBindContext = function (fn, that) {
|
1602
|
+
aCallable(fn);
|
1603
|
+
return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) {
|
1279
1604
|
return fn.apply(that, arguments);
|
1280
1605
|
};
|
1281
1606
|
};
|
@@ -1283,46 +1608,99 @@
|
|
1283
1608
|
// `IsArray` abstract operation
|
1284
1609
|
// https://tc39.es/ecma262/#sec-isarray
|
1285
1610
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
1286
|
-
var isArray = Array.isArray || function isArray(
|
1287
|
-
return classofRaw(
|
1611
|
+
var isArray = Array.isArray || function isArray(argument) {
|
1612
|
+
return classofRaw(argument) == 'Array';
|
1288
1613
|
};
|
1289
1614
|
|
1615
|
+
var noop = function () { /* empty */ };
|
1616
|
+
var empty = [];
|
1617
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
1618
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
1619
|
+
var exec = functionUncurryThis(constructorRegExp.exec);
|
1620
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
1621
|
+
|
1622
|
+
var isConstructorModern = function isConstructor(argument) {
|
1623
|
+
if (!isCallable(argument)) return false;
|
1624
|
+
try {
|
1625
|
+
construct(noop, empty, argument);
|
1626
|
+
return true;
|
1627
|
+
} catch (error) {
|
1628
|
+
return false;
|
1629
|
+
}
|
1630
|
+
};
|
1631
|
+
|
1632
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
1633
|
+
if (!isCallable(argument)) return false;
|
1634
|
+
switch (classof(argument)) {
|
1635
|
+
case 'AsyncFunction':
|
1636
|
+
case 'GeneratorFunction':
|
1637
|
+
case 'AsyncGeneratorFunction': return false;
|
1638
|
+
}
|
1639
|
+
try {
|
1640
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
1641
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
1642
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
1643
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
1644
|
+
} catch (error) {
|
1645
|
+
return true;
|
1646
|
+
}
|
1647
|
+
};
|
1648
|
+
|
1649
|
+
isConstructorLegacy.sham = true;
|
1650
|
+
|
1651
|
+
// `IsConstructor` abstract operation
|
1652
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
1653
|
+
var isConstructor = !construct || fails(function () {
|
1654
|
+
var called;
|
1655
|
+
return isConstructorModern(isConstructorModern.call)
|
1656
|
+
|| !isConstructorModern(Object)
|
1657
|
+
|| !isConstructorModern(function () { called = true; })
|
1658
|
+
|| called;
|
1659
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
1660
|
+
|
1290
1661
|
var SPECIES$1 = wellKnownSymbol('species');
|
1662
|
+
var Array$1 = global_1.Array;
|
1291
1663
|
|
1292
|
-
// `ArraySpeciesCreate` abstract operation
|
1664
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
1293
1665
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1294
|
-
var
|
1666
|
+
var arraySpeciesConstructor = function (originalArray) {
|
1295
1667
|
var C;
|
1296
1668
|
if (isArray(originalArray)) {
|
1297
1669
|
C = originalArray.constructor;
|
1298
1670
|
// cross-realm fallback
|
1299
|
-
if (
|
1671
|
+
if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
|
1300
1672
|
else if (isObject(C)) {
|
1301
1673
|
C = C[SPECIES$1];
|
1302
1674
|
if (C === null) C = undefined;
|
1303
1675
|
}
|
1304
|
-
} return
|
1676
|
+
} return C === undefined ? Array$1 : C;
|
1677
|
+
};
|
1678
|
+
|
1679
|
+
// `ArraySpeciesCreate` abstract operation
|
1680
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1681
|
+
var arraySpeciesCreate = function (originalArray, length) {
|
1682
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
1305
1683
|
};
|
1306
1684
|
|
1307
|
-
var push = [].push;
|
1685
|
+
var push$1 = functionUncurryThis([].push);
|
1308
1686
|
|
1309
|
-
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex,
|
1687
|
+
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
1310
1688
|
var createMethod$2 = function (TYPE) {
|
1311
1689
|
var IS_MAP = TYPE == 1;
|
1312
1690
|
var IS_FILTER = TYPE == 2;
|
1313
1691
|
var IS_SOME = TYPE == 3;
|
1314
1692
|
var IS_EVERY = TYPE == 4;
|
1315
1693
|
var IS_FIND_INDEX = TYPE == 6;
|
1316
|
-
var
|
1694
|
+
var IS_FILTER_REJECT = TYPE == 7;
|
1317
1695
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
1318
1696
|
return function ($this, callbackfn, that, specificCreate) {
|
1319
1697
|
var O = toObject($this);
|
1320
1698
|
var self = indexedObject(O);
|
1321
|
-
var boundFunction = functionBindContext(callbackfn, that
|
1322
|
-
var length =
|
1699
|
+
var boundFunction = functionBindContext(callbackfn, that);
|
1700
|
+
var length = lengthOfArrayLike(self);
|
1323
1701
|
var index = 0;
|
1324
1702
|
var create = specificCreate || arraySpeciesCreate;
|
1325
|
-
var target = IS_MAP ? create($this, length) : IS_FILTER ||
|
1703
|
+
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
1326
1704
|
var value, result;
|
1327
1705
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
1328
1706
|
value = self[index];
|
@@ -1333,10 +1711,10 @@
|
|
1333
1711
|
case 3: return true; // some
|
1334
1712
|
case 5: return value; // find
|
1335
1713
|
case 6: return index; // findIndex
|
1336
|
-
case 2: push
|
1714
|
+
case 2: push$1(target, value); // filter
|
1337
1715
|
} else switch (TYPE) {
|
1338
1716
|
case 4: return false; // every
|
1339
|
-
case 7: push
|
1717
|
+
case 7: push$1(target, value); // filterReject
|
1340
1718
|
}
|
1341
1719
|
}
|
1342
1720
|
}
|
@@ -1366,95 +1744,9 @@
|
|
1366
1744
|
// `Array.prototype.findIndex` method
|
1367
1745
|
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
1368
1746
|
findIndex: createMethod$2(6),
|
1369
|
-
// `Array.prototype.
|
1747
|
+
// `Array.prototype.filterReject` method
|
1370
1748
|
// https://github.com/tc39/proposal-array-filtering
|
1371
|
-
|
1372
|
-
};
|
1373
|
-
|
1374
|
-
// `Object.defineProperties` method
|
1375
|
-
// https://tc39.es/ecma262/#sec-object.defineproperties
|
1376
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
1377
|
-
var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
|
1378
|
-
anObject(O);
|
1379
|
-
var keys = objectKeys(Properties);
|
1380
|
-
var length = keys.length;
|
1381
|
-
var index = 0;
|
1382
|
-
var key;
|
1383
|
-
while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
|
1384
|
-
return O;
|
1385
|
-
};
|
1386
|
-
|
1387
|
-
var html = getBuiltIn('document', 'documentElement');
|
1388
|
-
|
1389
|
-
var GT = '>';
|
1390
|
-
var LT = '<';
|
1391
|
-
var PROTOTYPE = 'prototype';
|
1392
|
-
var SCRIPT = 'script';
|
1393
|
-
var IE_PROTO = sharedKey('IE_PROTO');
|
1394
|
-
|
1395
|
-
var EmptyConstructor = function () { /* empty */ };
|
1396
|
-
|
1397
|
-
var scriptTag = function (content) {
|
1398
|
-
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
1399
|
-
};
|
1400
|
-
|
1401
|
-
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
1402
|
-
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
1403
|
-
activeXDocument.write(scriptTag(''));
|
1404
|
-
activeXDocument.close();
|
1405
|
-
var temp = activeXDocument.parentWindow.Object;
|
1406
|
-
activeXDocument = null; // avoid memory leak
|
1407
|
-
return temp;
|
1408
|
-
};
|
1409
|
-
|
1410
|
-
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
1411
|
-
var NullProtoObjectViaIFrame = function () {
|
1412
|
-
// Thrash, waste and sodomy: IE GC bug
|
1413
|
-
var iframe = documentCreateElement('iframe');
|
1414
|
-
var JS = 'java' + SCRIPT + ':';
|
1415
|
-
var iframeDocument;
|
1416
|
-
iframe.style.display = 'none';
|
1417
|
-
html.appendChild(iframe);
|
1418
|
-
// https://github.com/zloirock/core-js/issues/475
|
1419
|
-
iframe.src = String(JS);
|
1420
|
-
iframeDocument = iframe.contentWindow.document;
|
1421
|
-
iframeDocument.open();
|
1422
|
-
iframeDocument.write(scriptTag('document.F=Object'));
|
1423
|
-
iframeDocument.close();
|
1424
|
-
return iframeDocument.F;
|
1425
|
-
};
|
1426
|
-
|
1427
|
-
// Check for document.domain and active x support
|
1428
|
-
// No need to use active x approach when document.domain is not set
|
1429
|
-
// see https://github.com/es-shims/es5-shim/issues/150
|
1430
|
-
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
1431
|
-
// avoid IE GC bug
|
1432
|
-
var activeXDocument;
|
1433
|
-
var NullProtoObject = function () {
|
1434
|
-
try {
|
1435
|
-
/* global ActiveXObject -- old IE */
|
1436
|
-
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
1437
|
-
} catch (error) { /* ignore */ }
|
1438
|
-
NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
|
1439
|
-
var length = enumBugKeys.length;
|
1440
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
1441
|
-
return NullProtoObject();
|
1442
|
-
};
|
1443
|
-
|
1444
|
-
hiddenKeys$1[IE_PROTO] = true;
|
1445
|
-
|
1446
|
-
// `Object.create` method
|
1447
|
-
// https://tc39.es/ecma262/#sec-object.create
|
1448
|
-
var objectCreate = Object.create || function create(O, Properties) {
|
1449
|
-
var result;
|
1450
|
-
if (O !== null) {
|
1451
|
-
EmptyConstructor[PROTOTYPE] = anObject(O);
|
1452
|
-
result = new EmptyConstructor();
|
1453
|
-
EmptyConstructor[PROTOTYPE] = null;
|
1454
|
-
// add "__proto__" for Object.getPrototypeOf polyfill
|
1455
|
-
result[IE_PROTO] = O;
|
1456
|
-
} else result = NullProtoObject();
|
1457
|
-
return Properties === undefined ? result : objectDefineProperties(result, Properties);
|
1749
|
+
filterReject: createMethod$2(7)
|
1458
1750
|
};
|
1459
1751
|
|
1460
1752
|
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
@@ -1494,8 +1786,20 @@
|
|
1494
1786
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
1495
1787
|
addToUnscopables(FIND);
|
1496
1788
|
|
1789
|
+
// `Object.prototype.toString` method implementation
|
1790
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1791
|
+
var objectToString = toStringTagSupport ? {}.toString : function toString() {
|
1792
|
+
return '[object ' + classof(this) + ']';
|
1793
|
+
};
|
1794
|
+
|
1795
|
+
// `Object.prototype.toString` method
|
1796
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1797
|
+
if (!toStringTagSupport) {
|
1798
|
+
redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
|
1799
|
+
}
|
1800
|
+
|
1497
1801
|
var createProperty = function (object, key, value) {
|
1498
|
-
var propertyKey =
|
1802
|
+
var propertyKey = toPropertyKey(key);
|
1499
1803
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
1500
1804
|
else object[propertyKey] = value;
|
1501
1805
|
};
|
@@ -1519,6 +1823,7 @@
|
|
1519
1823
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
1520
1824
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
1521
1825
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1826
|
+
var TypeError$2 = global_1.TypeError;
|
1522
1827
|
|
1523
1828
|
// We can't use this feature detection in V8 since it causes
|
1524
1829
|
// deoptimization and serious performance degradation
|
@@ -1552,11 +1857,11 @@
|
|
1552
1857
|
for (i = -1, length = arguments.length; i < length; i++) {
|
1553
1858
|
E = i === -1 ? O : arguments[i];
|
1554
1859
|
if (isConcatSpreadable(E)) {
|
1555
|
-
len =
|
1556
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1860
|
+
len = lengthOfArrayLike(E);
|
1861
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError$2(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1557
1862
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
1558
1863
|
} else {
|
1559
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1864
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError$2(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1560
1865
|
createProperty(A, n++, E);
|
1561
1866
|
}
|
1562
1867
|
}
|
@@ -1579,7 +1884,10 @@
|
|
1579
1884
|
}
|
1580
1885
|
});
|
1581
1886
|
|
1582
|
-
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
1887
|
+
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
1888
|
+
|
1889
|
+
var propertyIsEnumerable = functionUncurryThis($propertyIsEnumerable);
|
1890
|
+
var push = functionUncurryThis([].push);
|
1583
1891
|
|
1584
1892
|
// `Object.{ entries, values }` methods implementation
|
1585
1893
|
var createMethod$1 = function (TO_ENTRIES) {
|
@@ -1592,8 +1900,8 @@
|
|
1592
1900
|
var key;
|
1593
1901
|
while (length > i) {
|
1594
1902
|
key = keys[i++];
|
1595
|
-
if (!descriptors || propertyIsEnumerable
|
1596
|
-
|
1903
|
+
if (!descriptors || propertyIsEnumerable(O, key)) {
|
1904
|
+
push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
|
1597
1905
|
}
|
1598
1906
|
}
|
1599
1907
|
return result;
|
@@ -1621,22 +1929,24 @@
|
|
1621
1929
|
|
1622
1930
|
/* eslint-disable es/no-array-prototype-indexof -- required for testing */
|
1623
1931
|
|
1624
|
-
var $indexOf = arrayIncludes.indexOf;
|
1625
1932
|
|
1933
|
+
var $IndexOf = arrayIncludes.indexOf;
|
1626
1934
|
|
1627
|
-
var nativeIndexOf = [].indexOf;
|
1628
1935
|
|
1629
|
-
var
|
1936
|
+
var un$IndexOf = functionUncurryThis([].indexOf);
|
1937
|
+
|
1938
|
+
var NEGATIVE_ZERO = !!un$IndexOf && 1 / un$IndexOf([1], 1, -0) < 0;
|
1630
1939
|
var STRICT_METHOD = arrayMethodIsStrict('indexOf');
|
1631
1940
|
|
1632
1941
|
// `Array.prototype.indexOf` method
|
1633
1942
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
1634
1943
|
_export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, {
|
1635
1944
|
indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
|
1945
|
+
var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
|
1636
1946
|
return NEGATIVE_ZERO
|
1637
1947
|
// convert -0 to +0
|
1638
|
-
?
|
1639
|
-
: $
|
1948
|
+
? un$IndexOf(this, searchElement, fromIndex) || 0
|
1949
|
+
: $IndexOf(this, searchElement, fromIndex);
|
1640
1950
|
}
|
1641
1951
|
});
|
1642
1952
|
|
@@ -1663,9 +1973,11 @@
|
|
1663
1973
|
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
|
1664
1974
|
};
|
1665
1975
|
|
1976
|
+
var TypeError$1 = global_1.TypeError;
|
1977
|
+
|
1666
1978
|
var notARegexp = function (it) {
|
1667
1979
|
if (isRegexp(it)) {
|
1668
|
-
throw TypeError("The method doesn't accept regular expressions");
|
1980
|
+
throw TypeError$1("The method doesn't accept regular expressions");
|
1669
1981
|
} return it;
|
1670
1982
|
};
|
1671
1983
|
|
@@ -1683,12 +1995,17 @@
|
|
1683
1995
|
} return false;
|
1684
1996
|
};
|
1685
1997
|
|
1998
|
+
var stringIndexOf = functionUncurryThis(''.indexOf);
|
1999
|
+
|
1686
2000
|
// `String.prototype.includes` method
|
1687
2001
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
1688
2002
|
_export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
|
1689
2003
|
includes: function includes(searchString /* , position = 0 */) {
|
1690
|
-
return !!~
|
1691
|
-
|
2004
|
+
return !!~stringIndexOf(
|
2005
|
+
toString_1(requireObjectCoercible(this)),
|
2006
|
+
toString_1(notARegexp(searchString)),
|
2007
|
+
arguments.length > 1 ? arguments[1] : undefined
|
2008
|
+
);
|
1692
2009
|
}
|
1693
2010
|
});
|
1694
2011
|
|
@@ -1696,6 +2013,7 @@
|
|
1696
2013
|
var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
1697
2014
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
1698
2015
|
|
2016
|
+
var replace = functionUncurryThis(''.replace);
|
1699
2017
|
var whitespace = '[' + whitespaces + ']';
|
1700
2018
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
1701
2019
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
@@ -1703,9 +2021,9 @@
|
|
1703
2021
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
1704
2022
|
var createMethod = function (TYPE) {
|
1705
2023
|
return function ($this) {
|
1706
|
-
var string =
|
1707
|
-
if (TYPE & 1) string =
|
1708
|
-
if (TYPE & 2) string =
|
2024
|
+
var string = toString_1(requireObjectCoercible($this));
|
2025
|
+
if (TYPE & 1) string = replace(string, ltrim, '');
|
2026
|
+
if (TYPE & 2) string = replace(string, rtrim, '');
|
1709
2027
|
return string;
|
1710
2028
|
};
|
1711
2029
|
};
|
@@ -1722,13 +2040,19 @@
|
|
1722
2040
|
trim: createMethod(3)
|
1723
2041
|
};
|
1724
2042
|
|
2043
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
2044
|
+
|
2045
|
+
|
2046
|
+
|
1725
2047
|
var non = '\u200B\u0085\u180E';
|
1726
2048
|
|
1727
2049
|
// check that a method works with the correct list
|
1728
2050
|
// of whitespaces and has a correct name
|
1729
2051
|
var stringTrimForced = function (METHOD_NAME) {
|
1730
2052
|
return fails(function () {
|
1731
|
-
return !!whitespaces[METHOD_NAME]()
|
2053
|
+
return !!whitespaces[METHOD_NAME]()
|
2054
|
+
|| non[METHOD_NAME]() !== non
|
2055
|
+
|| (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
1732
2056
|
});
|
1733
2057
|
};
|
1734
2058
|
|
@@ -1751,20 +2075,22 @@
|
|
1751
2075
|
* @update zhixin wen <wenzhixin2010@gmail.com>
|
1752
2076
|
*/
|
1753
2077
|
|
1754
|
-
var Utils = $__default[
|
2078
|
+
var Utils = $__default["default"].fn.bootstrapTable.utils;
|
1755
2079
|
var theme = {
|
1756
2080
|
bootstrap3: {
|
1757
2081
|
icons: {
|
1758
2082
|
advancedSearchIcon: 'glyphicon-chevron-down'
|
1759
2083
|
},
|
2084
|
+
classes: {},
|
1760
2085
|
html: {
|
1761
|
-
modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <
|
2086
|
+
modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n <h4 class=\"modal-title\">%s</h4>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0px; padding-left: 0px;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
|
1762
2087
|
}
|
1763
2088
|
},
|
1764
2089
|
bootstrap4: {
|
1765
2090
|
icons: {
|
1766
2091
|
advancedSearchIcon: 'fa-chevron-down'
|
1767
2092
|
},
|
2093
|
+
classes: {},
|
1768
2094
|
html: {
|
1769
2095
|
modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h4 class=\"modal-title\">%s</h4>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0; padding-left: 0;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
|
1770
2096
|
}
|
@@ -1773,14 +2099,18 @@
|
|
1773
2099
|
icons: {
|
1774
2100
|
advancedSearchIcon: 'bi-chevron-down'
|
1775
2101
|
},
|
2102
|
+
classes: {
|
2103
|
+
formGroup: 'mb-3'
|
2104
|
+
},
|
1776
2105
|
html: {
|
1777
|
-
modal: "\n <div id=\"avdSearchModal_%s\"
|
2106
|
+
modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title\">%s</h5>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0; padding-left: 0;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
|
1778
2107
|
}
|
1779
2108
|
},
|
1780
2109
|
bulma: {
|
1781
2110
|
icons: {
|
1782
2111
|
advancedSearchIcon: 'fa-chevron-down'
|
1783
2112
|
},
|
2113
|
+
classes: {},
|
1784
2114
|
html: {
|
1785
2115
|
modal: "\n <div class=\"modal\" id=\"avdSearchModal_%s\">\n <div class=\"modal-background\"></div>\n <div class=\"modal-card\">\n <header class=\"modal-card-head\">\n <p class=\"modal-card-title\">%s</p>\n <button class=\"delete\" aria-label=\"close\"></button>\n </header>\n <section class=\"modal-card-body\" id=\"avdSearchModalContent_%s\"></section>\n <footer class=\"modal-card-foot\">\n <button class=\"button\" id=\"btnCloseAvd_%s\" data-close=\"btn btn-%s\">%s</button>\n </footer>\n </div>\n </div>\n "
|
1786
2116
|
}
|
@@ -1789,6 +2119,7 @@
|
|
1789
2119
|
icons: {
|
1790
2120
|
advancedSearchIcon: 'fa-chevron-down'
|
1791
2121
|
},
|
2122
|
+
classes: {},
|
1792
2123
|
html: {
|
1793
2124
|
modal: "\n <div class=\"reveal\" id=\"avdSearchModal_%s\" data-reveal>\n <h1>%s</h1>\n <div id=\"avdSearchModalContent_%s\">\n\n </div>\n <button class=\"close-button\" data-close aria-label=\"Close modal\" type=\"button\">\n <span aria-hidden=\"true\">×</span>\n </button>\n\n <button id=\"btnCloseAvd_%s\" class=\"%s\" type=\"button\">%s</button>\n </div>\n "
|
1794
2125
|
}
|
@@ -1797,6 +2128,7 @@
|
|
1797
2128
|
icons: {
|
1798
2129
|
advancedSearchIcon: 'expand_more'
|
1799
2130
|
},
|
2131
|
+
classes: {},
|
1800
2132
|
html: {
|
1801
2133
|
modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal\">\n <div class=\"modal-content\">\n <h4>%s</h4>\n <div id=\"avdSearchModalContent_%s\">\n\n </div>\n </div>\n <div class=\"modal-footer\">\n <a href=\"javascript:void(0)\"\" id=\"btnCloseAvd_%s\" class=\"modal-close waves-effect waves-green btn-flat %s\">%s</a>\n </div>\n </div>\n "
|
1802
2134
|
}
|
@@ -1805,12 +2137,13 @@
|
|
1805
2137
|
icons: {
|
1806
2138
|
advancedSearchIcon: 'fa-chevron-down'
|
1807
2139
|
},
|
2140
|
+
classes: {},
|
1808
2141
|
html: {
|
1809
2142
|
modal: "\n <div class=\"ui modal\" id=\"avdSearchModal_%s\">\n <i class=\"close icon\"></i>\n <div class=\"header\">\n %s\n </div>\n <div class=\"image content ui form\" id=\"avdSearchModalContent_%s\"></div>\n <div class=\"actions\">\n <div id=\"btnCloseAvd_%s\" class=\"ui black deny button %s\">%s</div>\n </div>\n </div>\n "
|
1810
2143
|
}
|
1811
2144
|
}
|
1812
|
-
}[$__default[
|
1813
|
-
$__default[
|
2145
|
+
}[$__default["default"].fn.bootstrapTable.theme];
|
2146
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
|
1814
2147
|
advancedSearch: false,
|
1815
2148
|
idForm: 'advancedSearch',
|
1816
2149
|
actionForm: '',
|
@@ -1820,13 +2153,13 @@
|
|
1820
2153
|
return false;
|
1821
2154
|
}
|
1822
2155
|
});
|
1823
|
-
$__default[
|
2156
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults.icons, {
|
1824
2157
|
advancedSearchIcon: theme.icons.advancedSearchIcon
|
1825
2158
|
});
|
1826
|
-
$__default[
|
2159
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.Constructor.EVENTS, {
|
1827
2160
|
'column-advanced-search.bs.table': 'onColumnAdvancedSearch'
|
1828
2161
|
});
|
1829
|
-
$__default[
|
2162
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.locales, {
|
1830
2163
|
formatAdvancedSearch: function formatAdvancedSearch() {
|
1831
2164
|
return 'Advanced search';
|
1832
2165
|
},
|
@@ -1834,9 +2167,9 @@
|
|
1834
2167
|
return 'Close';
|
1835
2168
|
}
|
1836
2169
|
});
|
1837
|
-
$__default[
|
2170
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, $__default["default"].fn.bootstrapTable.locales);
|
1838
2171
|
|
1839
|
-
$__default[
|
2172
|
+
$__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
|
1840
2173
|
_inherits(_class, _$$BootstrapTable);
|
1841
2174
|
|
1842
2175
|
var _super = _createSuper(_class);
|
@@ -1877,11 +2210,11 @@
|
|
1877
2210
|
var o = this.options;
|
1878
2211
|
var modalSelector = "#avdSearchModal_".concat(o.idTable);
|
1879
2212
|
|
1880
|
-
if ($__default[
|
1881
|
-
$__default[
|
2213
|
+
if ($__default["default"](modalSelector).length <= 0) {
|
2214
|
+
$__default["default"]('body').append(Utils.sprintf(theme.html.modal, o.idTable, o.formatAdvancedSearch(), o.idTable, o.idTable, o.buttonsClass, o.formatAdvancedCloseButton()));
|
1882
2215
|
var timeoutId = 0;
|
1883
|
-
$__default[
|
1884
|
-
$__default[
|
2216
|
+
$__default["default"]("#avdSearchModalContent_".concat(o.idTable)).append(this.createFormAvd().join(''));
|
2217
|
+
$__default["default"]("#".concat(o.idForm)).off('keyup blur', 'input').on('keyup blur', 'input', function (e) {
|
1885
2218
|
if (o.sidePagination === 'server') {
|
1886
2219
|
_this.onColumnAdvancedSearch(e);
|
1887
2220
|
} else {
|
@@ -1891,12 +2224,12 @@
|
|
1891
2224
|
}, o.searchTimeOut);
|
1892
2225
|
}
|
1893
2226
|
});
|
1894
|
-
$__default[
|
2227
|
+
$__default["default"]("#btnCloseAvd_".concat(o.idTable)).click(function () {
|
1895
2228
|
return _this.hideModal();
|
1896
2229
|
});
|
1897
2230
|
|
1898
|
-
if ($__default[
|
1899
|
-
$__default[
|
2231
|
+
if ($__default["default"].fn.bootstrapTable.theme === 'bulma') {
|
2232
|
+
$__default["default"](modalSelector).find('.delete').off('click').on('click', function () {
|
1900
2233
|
return _this.hideModal();
|
1901
2234
|
});
|
1902
2235
|
}
|
@@ -1911,50 +2244,50 @@
|
|
1911
2244
|
value: function showModal() {
|
1912
2245
|
var modalSelector = "#avdSearchModal_".concat(this.options.idTable);
|
1913
2246
|
|
1914
|
-
if ($__default[
|
1915
|
-
$__default[
|
1916
|
-
} else if ($__default[
|
2247
|
+
if ($__default["default"].inArray($__default["default"].fn.bootstrapTable.theme, ['bootstrap3', 'bootstrap4']) !== -1) {
|
2248
|
+
$__default["default"](modalSelector).modal();
|
2249
|
+
} else if ($__default["default"].fn.bootstrapTable.theme === 'bootstrap5') {
|
1917
2250
|
if (!this.toolbarModal) {
|
1918
2251
|
// eslint-disable-next-line no-undef
|
1919
2252
|
this.toolbarModal = new bootstrap.Modal(document.getElementById("avdSearchModal_".concat(this.options.idTable)), {});
|
1920
2253
|
}
|
1921
2254
|
|
1922
2255
|
this.toolbarModal.show();
|
1923
|
-
} else if ($__default[
|
1924
|
-
$__default[
|
1925
|
-
} else if ($__default[
|
2256
|
+
} else if ($__default["default"].fn.bootstrapTable.theme === 'bulma') {
|
2257
|
+
$__default["default"](modalSelector).toggleClass('is-active');
|
2258
|
+
} else if ($__default["default"].fn.bootstrapTable.theme === 'foundation') {
|
1926
2259
|
if (!this.toolbarModal) {
|
1927
2260
|
// eslint-disable-next-line no-undef
|
1928
|
-
this.toolbarModal = new Foundation.Reveal($__default[
|
2261
|
+
this.toolbarModal = new Foundation.Reveal($__default["default"](modalSelector));
|
1929
2262
|
}
|
1930
2263
|
|
1931
2264
|
this.toolbarModal.open();
|
1932
|
-
} else if ($__default[
|
1933
|
-
$__default[
|
1934
|
-
$__default[
|
1935
|
-
} else if ($__default[
|
1936
|
-
$__default[
|
2265
|
+
} else if ($__default["default"].fn.bootstrapTable.theme === 'materialize') {
|
2266
|
+
$__default["default"](modalSelector).modal();
|
2267
|
+
$__default["default"](modalSelector).modal('open');
|
2268
|
+
} else if ($__default["default"].fn.bootstrapTable.theme === 'semantic') {
|
2269
|
+
$__default["default"](modalSelector).modal('show');
|
1937
2270
|
}
|
1938
2271
|
}
|
1939
2272
|
}, {
|
1940
2273
|
key: "hideModal",
|
1941
2274
|
value: function hideModal() {
|
1942
|
-
var $closeModalButton = $__default[
|
2275
|
+
var $closeModalButton = $__default["default"]("#avdSearchModal_".concat(this.options.idTable));
|
1943
2276
|
var modalSelector = "#avdSearchModal_".concat(this.options.idTable);
|
1944
2277
|
|
1945
|
-
if ($__default[
|
2278
|
+
if ($__default["default"].inArray($__default["default"].fn.bootstrapTable.theme, ['bootstrap3', 'bootstrap4']) !== -1) {
|
1946
2279
|
$closeModalButton.modal('hide');
|
1947
|
-
} else if ($__default[
|
2280
|
+
} else if ($__default["default"].fn.bootstrapTable.theme === 'bootstrap5') {
|
1948
2281
|
this.toolbarModal.hide();
|
1949
|
-
} else if ($__default[
|
1950
|
-
$__default[
|
1951
|
-
$__default[
|
1952
|
-
} else if ($__default[
|
2282
|
+
} else if ($__default["default"].fn.bootstrapTable.theme === 'bulma') {
|
2283
|
+
$__default["default"]('html').toggleClass('is-clipped');
|
2284
|
+
$__default["default"](modalSelector).toggleClass('is-active');
|
2285
|
+
} else if ($__default["default"].fn.bootstrapTable.theme === 'foundation') {
|
1953
2286
|
this.toolbarModal.close();
|
1954
|
-
} else if ($__default[
|
1955
|
-
$__default[
|
1956
|
-
} else if ($__default[
|
1957
|
-
$__default[
|
2287
|
+
} else if ($__default["default"].fn.bootstrapTable.theme === 'materialize') {
|
2288
|
+
$__default["default"](modalSelector).modal('open');
|
2289
|
+
} else if ($__default["default"].fn.bootstrapTable.theme === 'semantic') {
|
2290
|
+
$__default["default"](modalSelector).modal('close');
|
1958
2291
|
}
|
1959
2292
|
|
1960
2293
|
if (this.options.sidePagination === 'server') {
|
@@ -1977,7 +2310,7 @@
|
|
1977
2310
|
var column = _step.value;
|
1978
2311
|
|
1979
2312
|
if (!column.checkbox && column.visible && column.searchable) {
|
1980
|
-
html.push("\n <div class=\"form-group row\">\n <label class=\"col-sm-4 control-label\">".concat(column.title, "</label>\n <div class=\"col-sm-6\">\n <input type=\"text\" class=\"form-control ").concat(this.constants.classes.input, "\" name=\"").concat(column.field, "\" placeholder=\"").concat(column.title, "\" id=\"").concat(column.field, "\">\n </div>\n </div>\n "));
|
2313
|
+
html.push("\n <div class=\"form-group row ".concat(theme.classes.formGroup || '', "\">\n <label class=\"col-sm-4 control-label\">").concat(column.title, "</label>\n <div class=\"col-sm-6\">\n <input type=\"text\" class=\"form-control ").concat(this.constants.classes.input, "\" name=\"").concat(column.field, "\" placeholder=\"").concat(column.title, "\" id=\"").concat(column.field, "\">\n </div>\n </div>\n "));
|
1981
2314
|
}
|
1982
2315
|
}
|
1983
2316
|
} catch (err) {
|
@@ -2000,7 +2333,7 @@
|
|
2000
2333
|
return;
|
2001
2334
|
}
|
2002
2335
|
|
2003
|
-
var fp = $__default[
|
2336
|
+
var fp = $__default["default"].isEmptyObject(this.filterColumnsPartial) ? null : this.filterColumnsPartial;
|
2004
2337
|
this.data = fp ? this.data.filter(function (item, i) {
|
2005
2338
|
for (var _i = 0, _Object$entries = Object.entries(fp); _i < _Object$entries.length; _i++) {
|
2006
2339
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
@@ -2026,10 +2359,10 @@
|
|
2026
2359
|
}, {
|
2027
2360
|
key: "onColumnAdvancedSearch",
|
2028
2361
|
value: function onColumnAdvancedSearch(e) {
|
2029
|
-
var text = $__default[
|
2030
|
-
var $field = $__default[
|
2362
|
+
var text = $__default["default"](e.currentTarget).val().trim();
|
2363
|
+
var $field = $__default["default"](e.currentTarget)[0].id;
|
2031
2364
|
|
2032
|
-
if ($__default[
|
2365
|
+
if ($__default["default"].isEmptyObject(this.filterColumnsPartial)) {
|
2033
2366
|
this.filterColumnsPartial = {};
|
2034
2367
|
}
|
2035
2368
|
|
@@ -2041,7 +2374,7 @@
|
|
2041
2374
|
|
2042
2375
|
if (this.options.sidePagination !== 'server') {
|
2043
2376
|
this.options.pageNumber = 1;
|
2044
|
-
this.
|
2377
|
+
this.initSearch();
|
2045
2378
|
this.updatePagination();
|
2046
2379
|
this.trigger('column-advanced-search', $field, text);
|
2047
2380
|
}
|
@@ -2049,6 +2382,6 @@
|
|
2049
2382
|
}]);
|
2050
2383
|
|
2051
2384
|
return _class;
|
2052
|
-
}($__default[
|
2385
|
+
}($__default["default"].BootstrapTable);
|
2053
2386
|
|
2054
|
-
}))
|
2387
|
+
}));
|