bootstrap-table-rails 1.19.0 → 1.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/bootstrap-table-rails.gemspec +2 -2
- data/lib/bootstrap-table-rails/version.rb +1 -1
- data/vendor/assets/javascripts/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +946 -358
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +858 -403
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +859 -404
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +7 -6
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +2900 -2041
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1066 -465
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +585 -268
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1443 -949
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +594 -278
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +595 -277
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +511 -207
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +921 -542
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +912 -478
- 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 +2798 -1187
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +1352 -754
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +610 -296
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +902 -435
- 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 +697 -375
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +623 -274
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +847 -403
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +575 -260
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +578 -267
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +800 -324
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +615 -281
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +555 -222
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +511 -207
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +582 -267
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +916 -556
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +566 -256
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +505 -209
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +517 -221
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +500 -203
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +1102 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +522 -225
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +1102 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +536 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +536 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +596 -278
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +592 -258
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +596 -262
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +594 -275
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +590 -256
- metadata +9 -8
- data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.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 _unsupportedIterableToArray(o, minLen) {
|
@@ -157,9 +165,9 @@
|
|
157
165
|
}
|
158
166
|
|
159
167
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
160
|
-
var it;
|
168
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
161
169
|
|
162
|
-
if (
|
170
|
+
if (!it) {
|
163
171
|
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
164
172
|
if (it) o = it;
|
165
173
|
var i = 0;
|
@@ -192,7 +200,7 @@
|
|
192
200
|
err;
|
193
201
|
return {
|
194
202
|
s: function () {
|
195
|
-
it =
|
203
|
+
it = it.call(o);
|
196
204
|
},
|
197
205
|
n: function () {
|
198
206
|
var step = it.next();
|
@@ -225,7 +233,7 @@
|
|
225
233
|
|
226
234
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
227
235
|
var global_1 =
|
228
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
236
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
229
237
|
check(typeof globalThis == 'object' && globalThis) ||
|
230
238
|
check(typeof window == 'object' && window) ||
|
231
239
|
// eslint-disable-next-line no-restricted-globals -- safe
|
@@ -244,12 +252,25 @@
|
|
244
252
|
|
245
253
|
// Detect IE8's incomplete defineProperty implementation
|
246
254
|
var descriptors = !fails(function () {
|
247
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
255
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
248
256
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
249
257
|
});
|
250
258
|
|
259
|
+
var functionBindNative = !fails(function () {
|
260
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
261
|
+
var test = (function () { /* empty */ }).bind();
|
262
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
263
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
264
|
+
});
|
265
|
+
|
266
|
+
var call$1 = Function.prototype.call;
|
267
|
+
|
268
|
+
var functionCall = functionBindNative ? call$1.bind(call$1) : function () {
|
269
|
+
return call$1.apply(call$1, arguments);
|
270
|
+
};
|
271
|
+
|
251
272
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
252
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
273
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
253
274
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
254
275
|
|
255
276
|
// Nashorn ~ JDK8 bug
|
@@ -275,27 +296,44 @@
|
|
275
296
|
};
|
276
297
|
};
|
277
298
|
|
278
|
-
var
|
299
|
+
var FunctionPrototype$1 = Function.prototype;
|
300
|
+
var bind$1 = FunctionPrototype$1.bind;
|
301
|
+
var call = FunctionPrototype$1.call;
|
302
|
+
var uncurryThis = functionBindNative && bind$1.bind(call, call);
|
303
|
+
|
304
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
305
|
+
return fn && uncurryThis(fn);
|
306
|
+
} : function (fn) {
|
307
|
+
return fn && function () {
|
308
|
+
return call.apply(fn, arguments);
|
309
|
+
};
|
310
|
+
};
|
311
|
+
|
312
|
+
var toString$1 = functionUncurryThis({}.toString);
|
313
|
+
var stringSlice = functionUncurryThis(''.slice);
|
279
314
|
|
280
315
|
var classofRaw = function (it) {
|
281
|
-
return toString
|
316
|
+
return stringSlice(toString$1(it), 8, -1);
|
282
317
|
};
|
283
318
|
|
284
|
-
var
|
319
|
+
var Object$4 = global_1.Object;
|
320
|
+
var split = functionUncurryThis(''.split);
|
285
321
|
|
286
322
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
287
323
|
var indexedObject = fails(function () {
|
288
324
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
289
325
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
290
|
-
return !Object('z').propertyIsEnumerable(0);
|
326
|
+
return !Object$4('z').propertyIsEnumerable(0);
|
291
327
|
}) ? function (it) {
|
292
|
-
return classofRaw(it) == 'String' ? split
|
293
|
-
} : Object;
|
328
|
+
return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
|
329
|
+
} : Object$4;
|
330
|
+
|
331
|
+
var TypeError$8 = global_1.TypeError;
|
294
332
|
|
295
333
|
// `RequireObjectCoercible` abstract operation
|
296
334
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
297
335
|
var requireObjectCoercible = function (it) {
|
298
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
336
|
+
if (it == undefined) throw TypeError$8("Can't call method on " + it);
|
299
337
|
return it;
|
300
338
|
};
|
301
339
|
|
@@ -307,82 +345,304 @@
|
|
307
345
|
return indexedObject(requireObjectCoercible(it));
|
308
346
|
};
|
309
347
|
|
348
|
+
// `IsCallable` abstract operation
|
349
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
350
|
+
var isCallable = function (argument) {
|
351
|
+
return typeof argument == 'function';
|
352
|
+
};
|
353
|
+
|
310
354
|
var isObject = function (it) {
|
311
|
-
return typeof it
|
355
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
312
356
|
};
|
313
357
|
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
var
|
319
|
-
|
358
|
+
var aFunction = function (argument) {
|
359
|
+
return isCallable(argument) ? argument : undefined;
|
360
|
+
};
|
361
|
+
|
362
|
+
var getBuiltIn = function (namespace, method) {
|
363
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
364
|
+
};
|
365
|
+
|
366
|
+
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
367
|
+
|
368
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
369
|
+
|
370
|
+
var process = global_1.process;
|
371
|
+
var Deno = global_1.Deno;
|
372
|
+
var versions = process && process.versions || Deno && Deno.version;
|
373
|
+
var v8 = versions && versions.v8;
|
374
|
+
var match, version;
|
375
|
+
|
376
|
+
if (v8) {
|
377
|
+
match = v8.split('.');
|
378
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
379
|
+
// but their correct versions are not interesting for us
|
380
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
381
|
+
}
|
382
|
+
|
383
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
384
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
385
|
+
if (!version && engineUserAgent) {
|
386
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
387
|
+
if (!match || match[1] >= 74) {
|
388
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
389
|
+
if (match) version = +match[1];
|
390
|
+
}
|
391
|
+
}
|
392
|
+
|
393
|
+
var engineV8Version = version;
|
394
|
+
|
395
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
400
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
401
|
+
var symbol = Symbol();
|
402
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
403
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
404
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
405
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
406
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
407
|
+
});
|
408
|
+
|
409
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
410
|
+
|
411
|
+
|
412
|
+
var useSymbolAsUid = nativeSymbol
|
413
|
+
&& !Symbol.sham
|
414
|
+
&& typeof Symbol.iterator == 'symbol';
|
415
|
+
|
416
|
+
var Object$3 = global_1.Object;
|
417
|
+
|
418
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
419
|
+
return typeof it == 'symbol';
|
420
|
+
} : function (it) {
|
421
|
+
var $Symbol = getBuiltIn('Symbol');
|
422
|
+
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
|
423
|
+
};
|
424
|
+
|
425
|
+
var String$3 = global_1.String;
|
426
|
+
|
427
|
+
var tryToString = function (argument) {
|
428
|
+
try {
|
429
|
+
return String$3(argument);
|
430
|
+
} catch (error) {
|
431
|
+
return 'Object';
|
432
|
+
}
|
433
|
+
};
|
434
|
+
|
435
|
+
var TypeError$7 = global_1.TypeError;
|
436
|
+
|
437
|
+
// `Assert: IsCallable(argument) is true`
|
438
|
+
var aCallable = function (argument) {
|
439
|
+
if (isCallable(argument)) return argument;
|
440
|
+
throw TypeError$7(tryToString(argument) + ' is not a function');
|
441
|
+
};
|
442
|
+
|
443
|
+
// `GetMethod` abstract operation
|
444
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
445
|
+
var getMethod = function (V, P) {
|
446
|
+
var func = V[P];
|
447
|
+
return func == null ? undefined : aCallable(func);
|
448
|
+
};
|
449
|
+
|
450
|
+
var TypeError$6 = global_1.TypeError;
|
451
|
+
|
452
|
+
// `OrdinaryToPrimitive` abstract operation
|
453
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
454
|
+
var ordinaryToPrimitive = function (input, pref) {
|
320
455
|
var fn, val;
|
321
|
-
if (
|
322
|
-
if (
|
323
|
-
if (
|
324
|
-
throw TypeError("Can't convert object to primitive value");
|
456
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
457
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
458
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
459
|
+
throw TypeError$6("Can't convert object to primitive value");
|
460
|
+
};
|
461
|
+
|
462
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
463
|
+
var defineProperty = Object.defineProperty;
|
464
|
+
|
465
|
+
var setGlobal = function (key, value) {
|
466
|
+
try {
|
467
|
+
defineProperty(global_1, key, { value: value, configurable: true, writable: true });
|
468
|
+
} catch (error) {
|
469
|
+
global_1[key] = value;
|
470
|
+
} return value;
|
471
|
+
};
|
472
|
+
|
473
|
+
var SHARED = '__core-js_shared__';
|
474
|
+
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
475
|
+
|
476
|
+
var sharedStore = store$1;
|
477
|
+
|
478
|
+
var shared = createCommonjsModule(function (module) {
|
479
|
+
(module.exports = function (key, value) {
|
480
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
481
|
+
})('versions', []).push({
|
482
|
+
version: '3.22.4',
|
483
|
+
mode: 'global',
|
484
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
485
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
|
486
|
+
source: 'https://github.com/zloirock/core-js'
|
487
|
+
});
|
488
|
+
});
|
489
|
+
|
490
|
+
var Object$2 = global_1.Object;
|
491
|
+
|
492
|
+
// `ToObject` abstract operation
|
493
|
+
// https://tc39.es/ecma262/#sec-toobject
|
494
|
+
var toObject = function (argument) {
|
495
|
+
return Object$2(requireObjectCoercible(argument));
|
496
|
+
};
|
497
|
+
|
498
|
+
var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
499
|
+
|
500
|
+
// `HasOwnProperty` abstract operation
|
501
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
502
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
503
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
504
|
+
return hasOwnProperty(toObject(it), key);
|
505
|
+
};
|
506
|
+
|
507
|
+
var id = 0;
|
508
|
+
var postfix = Math.random();
|
509
|
+
var toString = functionUncurryThis(1.0.toString);
|
510
|
+
|
511
|
+
var uid = function (key) {
|
512
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
325
513
|
};
|
326
514
|
|
327
|
-
var
|
515
|
+
var WellKnownSymbolsStore = shared('wks');
|
516
|
+
var Symbol$2 = global_1.Symbol;
|
517
|
+
var symbolFor = Symbol$2 && Symbol$2['for'];
|
518
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid;
|
519
|
+
|
520
|
+
var wellKnownSymbol = function (name) {
|
521
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
522
|
+
var description = 'Symbol.' + name;
|
523
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$2, name)) {
|
524
|
+
WellKnownSymbolsStore[name] = Symbol$2[name];
|
525
|
+
} else if (useSymbolAsUid && symbolFor) {
|
526
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
527
|
+
} else {
|
528
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
529
|
+
}
|
530
|
+
} return WellKnownSymbolsStore[name];
|
531
|
+
};
|
532
|
+
|
533
|
+
var TypeError$5 = global_1.TypeError;
|
534
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
535
|
+
|
536
|
+
// `ToPrimitive` abstract operation
|
537
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
538
|
+
var toPrimitive = function (input, pref) {
|
539
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
540
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
541
|
+
var result;
|
542
|
+
if (exoticToPrim) {
|
543
|
+
if (pref === undefined) pref = 'default';
|
544
|
+
result = functionCall(exoticToPrim, input, pref);
|
545
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
546
|
+
throw TypeError$5("Can't convert object to primitive value");
|
547
|
+
}
|
548
|
+
if (pref === undefined) pref = 'number';
|
549
|
+
return ordinaryToPrimitive(input, pref);
|
550
|
+
};
|
328
551
|
|
329
|
-
|
330
|
-
|
552
|
+
// `ToPropertyKey` abstract operation
|
553
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
554
|
+
var toPropertyKey = function (argument) {
|
555
|
+
var key = toPrimitive(argument, 'string');
|
556
|
+
return isSymbol(key) ? key : key + '';
|
331
557
|
};
|
332
558
|
|
333
559
|
var document = global_1.document;
|
334
560
|
// typeof document.createElement is 'object' in old IE
|
335
|
-
var EXISTS = isObject(document) && isObject(document.createElement);
|
561
|
+
var EXISTS$1 = isObject(document) && isObject(document.createElement);
|
336
562
|
|
337
563
|
var documentCreateElement = function (it) {
|
338
|
-
return EXISTS ? document.createElement(it) : {};
|
564
|
+
return EXISTS$1 ? document.createElement(it) : {};
|
339
565
|
};
|
340
566
|
|
341
|
-
//
|
567
|
+
// Thanks to IE8 for its funny defineProperty
|
342
568
|
var ie8DomDefine = !descriptors && !fails(function () {
|
343
|
-
// eslint-disable-next-line es/no-object-defineproperty --
|
569
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
344
570
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
345
571
|
get: function () { return 7; }
|
346
572
|
}).a != 7;
|
347
573
|
});
|
348
574
|
|
349
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
350
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
575
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
576
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
351
577
|
|
352
578
|
// `Object.getOwnPropertyDescriptor` method
|
353
579
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
354
|
-
var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
580
|
+
var f$3 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
355
581
|
O = toIndexedObject(O);
|
356
|
-
P =
|
582
|
+
P = toPropertyKey(P);
|
357
583
|
if (ie8DomDefine) try {
|
358
|
-
return $getOwnPropertyDescriptor(O, P);
|
584
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
359
585
|
} catch (error) { /* empty */ }
|
360
|
-
if (
|
586
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
|
361
587
|
};
|
362
588
|
|
363
589
|
var objectGetOwnPropertyDescriptor = {
|
364
590
|
f: f$3
|
365
591
|
};
|
366
592
|
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
593
|
+
// V8 ~ Chrome 36-
|
594
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
595
|
+
var v8PrototypeDefineBug = descriptors && fails(function () {
|
596
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
597
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
598
|
+
value: 42,
|
599
|
+
writable: false
|
600
|
+
}).prototype != 42;
|
601
|
+
});
|
602
|
+
|
603
|
+
var String$2 = global_1.String;
|
604
|
+
var TypeError$4 = global_1.TypeError;
|
605
|
+
|
606
|
+
// `Assert: Type(argument) is Object`
|
607
|
+
var anObject = function (argument) {
|
608
|
+
if (isObject(argument)) return argument;
|
609
|
+
throw TypeError$4(String$2(argument) + ' is not an object');
|
371
610
|
};
|
372
611
|
|
373
|
-
|
612
|
+
var TypeError$3 = global_1.TypeError;
|
613
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
374
614
|
var $defineProperty = Object.defineProperty;
|
615
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
616
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
617
|
+
var ENUMERABLE = 'enumerable';
|
618
|
+
var CONFIGURABLE$1 = 'configurable';
|
619
|
+
var WRITABLE = 'writable';
|
375
620
|
|
376
621
|
// `Object.defineProperty` method
|
377
622
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
378
|
-
var f$2 = descriptors ?
|
623
|
+
var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
624
|
+
anObject(O);
|
625
|
+
P = toPropertyKey(P);
|
626
|
+
anObject(Attributes);
|
627
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
628
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
629
|
+
if (current && current[WRITABLE]) {
|
630
|
+
O[P] = Attributes.value;
|
631
|
+
Attributes = {
|
632
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
633
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
634
|
+
writable: false
|
635
|
+
};
|
636
|
+
}
|
637
|
+
} return $defineProperty(O, P, Attributes);
|
638
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
379
639
|
anObject(O);
|
380
|
-
P =
|
640
|
+
P = toPropertyKey(P);
|
381
641
|
anObject(Attributes);
|
382
642
|
if (ie8DomDefine) try {
|
383
643
|
return $defineProperty(O, P, Attributes);
|
384
644
|
} catch (error) { /* empty */ }
|
385
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
645
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$3('Accessors not supported');
|
386
646
|
if ('value' in Attributes) O[P] = Attributes.value;
|
387
647
|
return O;
|
388
648
|
};
|
@@ -398,25 +658,27 @@
|
|
398
658
|
return object;
|
399
659
|
};
|
400
660
|
|
401
|
-
var
|
402
|
-
|
403
|
-
|
404
|
-
} catch (error) {
|
405
|
-
global_1[key] = value;
|
406
|
-
} return value;
|
407
|
-
};
|
661
|
+
var FunctionPrototype = Function.prototype;
|
662
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
663
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
408
664
|
|
409
|
-
var
|
410
|
-
|
665
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype, 'name');
|
666
|
+
// additional protection from minified / mangled / dropped function names
|
667
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
668
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
|
411
669
|
|
412
|
-
var
|
670
|
+
var functionName = {
|
671
|
+
EXISTS: EXISTS,
|
672
|
+
PROPER: PROPER,
|
673
|
+
CONFIGURABLE: CONFIGURABLE
|
674
|
+
};
|
413
675
|
|
414
|
-
var functionToString = Function.toString;
|
676
|
+
var functionToString = functionUncurryThis(Function.toString);
|
415
677
|
|
416
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
417
|
-
if (
|
678
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
679
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
418
680
|
sharedStore.inspectSource = function (it) {
|
419
|
-
return functionToString
|
681
|
+
return functionToString(it);
|
420
682
|
};
|
421
683
|
}
|
422
684
|
|
@@ -424,24 +686,7 @@
|
|
424
686
|
|
425
687
|
var WeakMap$1 = global_1.WeakMap;
|
426
688
|
|
427
|
-
var nativeWeakMap =
|
428
|
-
|
429
|
-
var shared = createCommonjsModule(function (module) {
|
430
|
-
(module.exports = function (key, value) {
|
431
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
432
|
-
})('versions', []).push({
|
433
|
-
version: '3.10.1',
|
434
|
-
mode: 'global',
|
435
|
-
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
436
|
-
});
|
437
|
-
});
|
438
|
-
|
439
|
-
var id = 0;
|
440
|
-
var postfix = Math.random();
|
441
|
-
|
442
|
-
var uid = function (key) {
|
443
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
444
|
-
};
|
689
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
445
690
|
|
446
691
|
var keys = shared('keys');
|
447
692
|
|
@@ -451,6 +696,8 @@
|
|
451
696
|
|
452
697
|
var hiddenKeys$1 = {};
|
453
698
|
|
699
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
700
|
+
var TypeError$2 = global_1.TypeError;
|
454
701
|
var WeakMap = global_1.WeakMap;
|
455
702
|
var set, get, has;
|
456
703
|
|
@@ -462,40 +709,42 @@
|
|
462
709
|
return function (it) {
|
463
710
|
var state;
|
464
711
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
465
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
712
|
+
throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
466
713
|
} return state;
|
467
714
|
};
|
468
715
|
};
|
469
716
|
|
470
|
-
if (nativeWeakMap) {
|
717
|
+
if (nativeWeakMap || sharedStore.state) {
|
471
718
|
var store = sharedStore.state || (sharedStore.state = new WeakMap());
|
472
|
-
var wmget = store.get;
|
473
|
-
var wmhas = store.has;
|
474
|
-
var wmset = store.set;
|
719
|
+
var wmget = functionUncurryThis(store.get);
|
720
|
+
var wmhas = functionUncurryThis(store.has);
|
721
|
+
var wmset = functionUncurryThis(store.set);
|
475
722
|
set = function (it, metadata) {
|
723
|
+
if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
476
724
|
metadata.facade = it;
|
477
|
-
wmset
|
725
|
+
wmset(store, it, metadata);
|
478
726
|
return metadata;
|
479
727
|
};
|
480
728
|
get = function (it) {
|
481
|
-
return wmget
|
729
|
+
return wmget(store, it) || {};
|
482
730
|
};
|
483
731
|
has = function (it) {
|
484
|
-
return wmhas
|
732
|
+
return wmhas(store, it);
|
485
733
|
};
|
486
734
|
} else {
|
487
735
|
var STATE = sharedKey('state');
|
488
736
|
hiddenKeys$1[STATE] = true;
|
489
737
|
set = function (it, metadata) {
|
738
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
490
739
|
metadata.facade = it;
|
491
740
|
createNonEnumerableProperty(it, STATE, metadata);
|
492
741
|
return metadata;
|
493
742
|
};
|
494
743
|
get = function (it) {
|
495
|
-
return
|
744
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
496
745
|
};
|
497
746
|
has = function (it) {
|
498
|
-
return
|
747
|
+
return hasOwnProperty_1(it, STATE);
|
499
748
|
};
|
500
749
|
}
|
501
750
|
|
@@ -507,29 +756,56 @@
|
|
507
756
|
getterFor: getterFor
|
508
757
|
};
|
509
758
|
|
510
|
-
var
|
511
|
-
var
|
759
|
+
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
760
|
+
var defineProperty = objectDefineProperty.f;
|
761
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
762
|
+
|
763
|
+
|
764
|
+
|
512
765
|
var enforceInternalState = internalState.enforce;
|
766
|
+
var getInternalState = internalState.get;
|
767
|
+
|
768
|
+
var CONFIGURABLE_LENGTH = !fails(function () {
|
769
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
770
|
+
});
|
771
|
+
|
513
772
|
var TEMPLATE = String(String).split('String');
|
514
773
|
|
515
|
-
|
774
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
775
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
776
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
777
|
+
}
|
778
|
+
if (options && options.getter) name = 'get ' + name;
|
779
|
+
if (options && options.setter) name = 'set ' + name;
|
780
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
781
|
+
defineProperty(value, 'name', { value: name, configurable: true });
|
782
|
+
}
|
783
|
+
if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
|
784
|
+
defineProperty(value, 'length', { value: options.arity });
|
785
|
+
}
|
786
|
+
var state = enforceInternalState(value);
|
787
|
+
if (!hasOwnProperty_1(state, 'source')) {
|
788
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
789
|
+
} return value;
|
790
|
+
};
|
791
|
+
|
792
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
793
|
+
// eslint-disable-next-line no-extend-native -- required
|
794
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
795
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
796
|
+
}, 'toString');
|
797
|
+
});
|
798
|
+
|
799
|
+
var defineBuiltIn = function (O, key, value, options) {
|
516
800
|
var unsafe = options ? !!options.unsafe : false;
|
517
801
|
var simple = options ? !!options.enumerable : false;
|
518
802
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
519
|
-
var
|
520
|
-
if (
|
521
|
-
if (typeof key == 'string' && !has$1(value, 'name')) {
|
522
|
-
createNonEnumerableProperty(value, 'name', key);
|
523
|
-
}
|
524
|
-
state = enforceInternalState(value);
|
525
|
-
if (!state.source) {
|
526
|
-
state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
527
|
-
}
|
528
|
-
}
|
803
|
+
var name = options && options.name !== undefined ? options.name : key;
|
804
|
+
if (isCallable(value)) makeBuiltIn_1(value, name, options);
|
529
805
|
if (O === global_1) {
|
530
806
|
if (simple) O[key] = value;
|
531
807
|
else setGlobal(key, value);
|
532
|
-
return;
|
808
|
+
return O;
|
533
809
|
} else if (!unsafe) {
|
534
810
|
delete O[key];
|
535
811
|
} else if (!noTargetGet && O[key]) {
|
@@ -537,56 +813,50 @@
|
|
537
813
|
}
|
538
814
|
if (simple) O[key] = value;
|
539
815
|
else createNonEnumerableProperty(O, key, value);
|
540
|
-
|
541
|
-
})(Function.prototype, 'toString', function toString() {
|
542
|
-
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
543
|
-
});
|
544
|
-
});
|
545
|
-
|
546
|
-
var path = global_1;
|
547
|
-
|
548
|
-
var aFunction$1 = function (variable) {
|
549
|
-
return typeof variable == 'function' ? variable : undefined;
|
550
|
-
};
|
551
|
-
|
552
|
-
var getBuiltIn = function (namespace, method) {
|
553
|
-
return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global_1[namespace])
|
554
|
-
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
|
816
|
+
return O;
|
555
817
|
};
|
556
818
|
|
557
819
|
var ceil = Math.ceil;
|
558
820
|
var floor = Math.floor;
|
559
821
|
|
560
|
-
// `
|
561
|
-
// https://tc39.es/ecma262/#sec-
|
562
|
-
var
|
563
|
-
|
822
|
+
// `ToIntegerOrInfinity` abstract operation
|
823
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
824
|
+
var toIntegerOrInfinity = function (argument) {
|
825
|
+
var number = +argument;
|
826
|
+
// eslint-disable-next-line no-self-compare -- safe
|
827
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
|
564
828
|
};
|
565
829
|
|
830
|
+
var max = Math.max;
|
566
831
|
var min$1 = Math.min;
|
567
832
|
|
833
|
+
// Helper for a popular repeating case of the spec:
|
834
|
+
// Let integer be ? ToInteger(index).
|
835
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
836
|
+
var toAbsoluteIndex = function (index, length) {
|
837
|
+
var integer = toIntegerOrInfinity(index);
|
838
|
+
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
839
|
+
};
|
840
|
+
|
841
|
+
var min = Math.min;
|
842
|
+
|
568
843
|
// `ToLength` abstract operation
|
569
844
|
// https://tc39.es/ecma262/#sec-tolength
|
570
845
|
var toLength = function (argument) {
|
571
|
-
return argument > 0 ? min
|
846
|
+
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
572
847
|
};
|
573
848
|
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
// Let integer be ? ToInteger(index).
|
579
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
580
|
-
var toAbsoluteIndex = function (index, length) {
|
581
|
-
var integer = toInteger(index);
|
582
|
-
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
849
|
+
// `LengthOfArrayLike` abstract operation
|
850
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
851
|
+
var lengthOfArrayLike = function (obj) {
|
852
|
+
return toLength(obj.length);
|
583
853
|
};
|
584
854
|
|
585
855
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
586
856
|
var createMethod$2 = function (IS_INCLUDES) {
|
587
857
|
return function ($this, el, fromIndex) {
|
588
858
|
var O = toIndexedObject($this);
|
589
|
-
var length =
|
859
|
+
var length = lengthOfArrayLike(O);
|
590
860
|
var index = toAbsoluteIndex(fromIndex, length);
|
591
861
|
var value;
|
592
862
|
// Array#includes uses SameValueZero equality algorithm
|
@@ -614,15 +884,17 @@
|
|
614
884
|
var indexOf = arrayIncludes.indexOf;
|
615
885
|
|
616
886
|
|
887
|
+
var push$1 = functionUncurryThis([].push);
|
888
|
+
|
617
889
|
var objectKeysInternal = function (object, names) {
|
618
890
|
var O = toIndexedObject(object);
|
619
891
|
var i = 0;
|
620
892
|
var result = [];
|
621
893
|
var key;
|
622
|
-
for (key in O) !
|
894
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$1(result, key);
|
623
895
|
// Don't enum bug & hidden keys
|
624
|
-
while (names.length > i) if (
|
625
|
-
~indexOf(result, key) ||
|
896
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
897
|
+
~indexOf(result, key) || push$1(result, key);
|
626
898
|
}
|
627
899
|
return result;
|
628
900
|
};
|
@@ -642,7 +914,7 @@
|
|
642
914
|
|
643
915
|
// `Object.getOwnPropertyNames` method
|
644
916
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
645
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
917
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
646
918
|
var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
647
919
|
return objectKeysInternal(O, hiddenKeys);
|
648
920
|
};
|
@@ -651,27 +923,31 @@
|
|
651
923
|
f: f$1
|
652
924
|
};
|
653
925
|
|
654
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
926
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
655
927
|
var f = Object.getOwnPropertySymbols;
|
656
928
|
|
657
929
|
var objectGetOwnPropertySymbols = {
|
658
930
|
f: f
|
659
931
|
};
|
660
932
|
|
933
|
+
var concat = functionUncurryThis([].concat);
|
934
|
+
|
661
935
|
// all object keys, includes non-enumerable and symbols
|
662
936
|
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
663
937
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
664
938
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
665
|
-
return getOwnPropertySymbols ?
|
939
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
666
940
|
};
|
667
941
|
|
668
|
-
var copyConstructorProperties = function (target, source) {
|
942
|
+
var copyConstructorProperties = function (target, source, exceptions) {
|
669
943
|
var keys = ownKeys(source);
|
670
944
|
var defineProperty = objectDefineProperty.f;
|
671
945
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
672
946
|
for (var i = 0; i < keys.length; i++) {
|
673
947
|
var key = keys[i];
|
674
|
-
if (!
|
948
|
+
if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
|
949
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
950
|
+
}
|
675
951
|
}
|
676
952
|
};
|
677
953
|
|
@@ -681,7 +957,7 @@
|
|
681
957
|
var value = data[normalize(feature)];
|
682
958
|
return value == POLYFILL ? true
|
683
959
|
: value == NATIVE ? false
|
684
|
-
:
|
960
|
+
: isCallable(detection) ? fails(detection)
|
685
961
|
: !!detection;
|
686
962
|
};
|
687
963
|
|
@@ -715,6 +991,7 @@
|
|
715
991
|
options.sham - add a flag to not completely full polyfills
|
716
992
|
options.enumerable - export as enumerable property
|
717
993
|
options.noTargetGet - prevent calling a getter on target
|
994
|
+
options.name - the .name of the function if it does not match the key
|
718
995
|
*/
|
719
996
|
var _export = function (options, source) {
|
720
997
|
var TARGET = options.target;
|
@@ -737,104 +1014,130 @@
|
|
737
1014
|
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
738
1015
|
// contained in target
|
739
1016
|
if (!FORCED && targetProperty !== undefined) {
|
740
|
-
if (typeof sourceProperty
|
1017
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
741
1018
|
copyConstructorProperties(sourceProperty, targetProperty);
|
742
1019
|
}
|
743
1020
|
// add a flag to not completely full polyfills
|
744
1021
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
745
1022
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
746
1023
|
}
|
747
|
-
|
748
|
-
redefine(target, key, sourceProperty, options);
|
1024
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
749
1025
|
}
|
750
1026
|
};
|
751
1027
|
|
752
1028
|
// `IsArray` abstract operation
|
753
1029
|
// https://tc39.es/ecma262/#sec-isarray
|
754
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
755
|
-
var isArray = Array.isArray || function isArray(
|
756
|
-
return classofRaw(
|
757
|
-
};
|
758
|
-
|
759
|
-
// `ToObject` abstract operation
|
760
|
-
// https://tc39.es/ecma262/#sec-toobject
|
761
|
-
var toObject = function (argument) {
|
762
|
-
return Object(requireObjectCoercible(argument));
|
1030
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
1031
|
+
var isArray = Array.isArray || function isArray(argument) {
|
1032
|
+
return classofRaw(argument) == 'Array';
|
763
1033
|
};
|
764
1034
|
|
765
1035
|
var createProperty = function (object, key, value) {
|
766
|
-
var propertyKey =
|
1036
|
+
var propertyKey = toPropertyKey(key);
|
767
1037
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
768
1038
|
else object[propertyKey] = value;
|
769
1039
|
};
|
770
1040
|
|
771
|
-
var
|
1041
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
1042
|
+
var test = {};
|
772
1043
|
|
773
|
-
|
1044
|
+
test[TO_STRING_TAG$1] = 'z';
|
774
1045
|
|
775
|
-
var
|
776
|
-
var versions = process && process.versions;
|
777
|
-
var v8 = versions && versions.v8;
|
778
|
-
var match, version;
|
1046
|
+
var toStringTagSupport = String(test) === '[object z]';
|
779
1047
|
|
780
|
-
|
781
|
-
|
782
|
-
version = match[0] + match[1];
|
783
|
-
} else if (engineUserAgent) {
|
784
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
785
|
-
if (!match || match[1] >= 74) {
|
786
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
787
|
-
if (match) version = match[1];
|
788
|
-
}
|
789
|
-
}
|
1048
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
1049
|
+
var Object$1 = global_1.Object;
|
790
1050
|
|
791
|
-
|
1051
|
+
// ES3 wrong here
|
1052
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
792
1053
|
|
793
|
-
//
|
794
|
-
var
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
|
800
|
-
});
|
801
|
-
|
802
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
1054
|
+
// fallback for IE11 Script Access Denied error
|
1055
|
+
var tryGet = function (it, key) {
|
1056
|
+
try {
|
1057
|
+
return it[key];
|
1058
|
+
} catch (error) { /* empty */ }
|
1059
|
+
};
|
803
1060
|
|
1061
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
1062
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
1063
|
+
var O, tag, result;
|
1064
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
1065
|
+
// @@toStringTag case
|
1066
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
1067
|
+
// builtinTag case
|
1068
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
1069
|
+
// ES3 arguments fallback
|
1070
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
1071
|
+
};
|
804
1072
|
|
805
|
-
var
|
806
|
-
|
807
|
-
|
1073
|
+
var noop = function () { /* empty */ };
|
1074
|
+
var empty = [];
|
1075
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
1076
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
1077
|
+
var exec$1 = functionUncurryThis(constructorRegExp.exec);
|
1078
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
808
1079
|
|
809
|
-
var
|
810
|
-
|
811
|
-
|
1080
|
+
var isConstructorModern = function isConstructor(argument) {
|
1081
|
+
if (!isCallable(argument)) return false;
|
1082
|
+
try {
|
1083
|
+
construct(noop, empty, argument);
|
1084
|
+
return true;
|
1085
|
+
} catch (error) {
|
1086
|
+
return false;
|
1087
|
+
}
|
1088
|
+
};
|
812
1089
|
|
813
|
-
var
|
814
|
-
if (!
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
1090
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
1091
|
+
if (!isCallable(argument)) return false;
|
1092
|
+
switch (classof(argument)) {
|
1093
|
+
case 'AsyncFunction':
|
1094
|
+
case 'GeneratorFunction':
|
1095
|
+
case 'AsyncGeneratorFunction': return false;
|
1096
|
+
}
|
1097
|
+
try {
|
1098
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
1099
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
1100
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
1101
|
+
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
|
1102
|
+
} catch (error) {
|
1103
|
+
return true;
|
1104
|
+
}
|
821
1105
|
};
|
822
1106
|
|
1107
|
+
isConstructorLegacy.sham = true;
|
1108
|
+
|
1109
|
+
// `IsConstructor` abstract operation
|
1110
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
1111
|
+
var isConstructor = !construct || fails(function () {
|
1112
|
+
var called;
|
1113
|
+
return isConstructorModern(isConstructorModern.call)
|
1114
|
+
|| !isConstructorModern(Object)
|
1115
|
+
|| !isConstructorModern(function () { called = true; })
|
1116
|
+
|| called;
|
1117
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
1118
|
+
|
823
1119
|
var SPECIES$1 = wellKnownSymbol('species');
|
1120
|
+
var Array$1 = global_1.Array;
|
824
1121
|
|
825
|
-
// `ArraySpeciesCreate` abstract operation
|
1122
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
826
1123
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
827
|
-
var
|
1124
|
+
var arraySpeciesConstructor = function (originalArray) {
|
828
1125
|
var C;
|
829
1126
|
if (isArray(originalArray)) {
|
830
1127
|
C = originalArray.constructor;
|
831
1128
|
// cross-realm fallback
|
832
|
-
if (
|
1129
|
+
if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
|
833
1130
|
else if (isObject(C)) {
|
834
1131
|
C = C[SPECIES$1];
|
835
1132
|
if (C === null) C = undefined;
|
836
1133
|
}
|
837
|
-
} return
|
1134
|
+
} return C === undefined ? Array$1 : C;
|
1135
|
+
};
|
1136
|
+
|
1137
|
+
// `ArraySpeciesCreate` abstract operation
|
1138
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1139
|
+
var arraySpeciesCreate = function (originalArray, length) {
|
1140
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
838
1141
|
};
|
839
1142
|
|
840
1143
|
var SPECIES = wellKnownSymbol('species');
|
@@ -856,6 +1159,7 @@
|
|
856
1159
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
857
1160
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
858
1161
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1162
|
+
var TypeError$1 = global_1.TypeError;
|
859
1163
|
|
860
1164
|
// We can't use this feature detection in V8 since it causes
|
861
1165
|
// deoptimization and serious performance degradation
|
@@ -879,7 +1183,7 @@
|
|
879
1183
|
// `Array.prototype.concat` method
|
880
1184
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
881
1185
|
// with adding support of @@isConcatSpreadable and @@species
|
882
|
-
_export({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
1186
|
+
_export({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
|
883
1187
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
884
1188
|
concat: function concat(arg) {
|
885
1189
|
var O = toObject(this);
|
@@ -889,11 +1193,11 @@
|
|
889
1193
|
for (i = -1, length = arguments.length; i < length; i++) {
|
890
1194
|
E = i === -1 ? O : arguments[i];
|
891
1195
|
if (isConcatSpreadable(E)) {
|
892
|
-
len =
|
893
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1196
|
+
len = lengthOfArrayLike(E);
|
1197
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
894
1198
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
895
1199
|
} else {
|
896
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1200
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
897
1201
|
createProperty(A, n++, E);
|
898
1202
|
}
|
899
1203
|
}
|
@@ -902,54 +1206,35 @@
|
|
902
1206
|
}
|
903
1207
|
});
|
904
1208
|
|
905
|
-
var
|
906
|
-
if (typeof it != 'function') {
|
907
|
-
throw TypeError(String(it) + ' is not a function');
|
908
|
-
} return it;
|
909
|
-
};
|
1209
|
+
var bind = functionUncurryThis(functionUncurryThis.bind);
|
910
1210
|
|
911
1211
|
// optional / simple context binding
|
912
|
-
var functionBindContext = function (fn, that
|
913
|
-
|
914
|
-
|
915
|
-
switch (length) {
|
916
|
-
case 0: return function () {
|
917
|
-
return fn.call(that);
|
918
|
-
};
|
919
|
-
case 1: return function (a) {
|
920
|
-
return fn.call(that, a);
|
921
|
-
};
|
922
|
-
case 2: return function (a, b) {
|
923
|
-
return fn.call(that, a, b);
|
924
|
-
};
|
925
|
-
case 3: return function (a, b, c) {
|
926
|
-
return fn.call(that, a, b, c);
|
927
|
-
};
|
928
|
-
}
|
929
|
-
return function (/* ...args */) {
|
1212
|
+
var functionBindContext = function (fn, that) {
|
1213
|
+
aCallable(fn);
|
1214
|
+
return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) {
|
930
1215
|
return fn.apply(that, arguments);
|
931
1216
|
};
|
932
1217
|
};
|
933
1218
|
|
934
|
-
var push = [].push;
|
1219
|
+
var push = functionUncurryThis([].push);
|
935
1220
|
|
936
|
-
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex,
|
1221
|
+
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
937
1222
|
var createMethod$1 = function (TYPE) {
|
938
1223
|
var IS_MAP = TYPE == 1;
|
939
1224
|
var IS_FILTER = TYPE == 2;
|
940
1225
|
var IS_SOME = TYPE == 3;
|
941
1226
|
var IS_EVERY = TYPE == 4;
|
942
1227
|
var IS_FIND_INDEX = TYPE == 6;
|
943
|
-
var
|
1228
|
+
var IS_FILTER_REJECT = TYPE == 7;
|
944
1229
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
945
1230
|
return function ($this, callbackfn, that, specificCreate) {
|
946
1231
|
var O = toObject($this);
|
947
1232
|
var self = indexedObject(O);
|
948
|
-
var boundFunction = functionBindContext(callbackfn, that
|
949
|
-
var length =
|
1233
|
+
var boundFunction = functionBindContext(callbackfn, that);
|
1234
|
+
var length = lengthOfArrayLike(self);
|
950
1235
|
var index = 0;
|
951
1236
|
var create = specificCreate || arraySpeciesCreate;
|
952
|
-
var target = IS_MAP ? create($this, length) : IS_FILTER ||
|
1237
|
+
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
953
1238
|
var value, result;
|
954
1239
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
955
1240
|
value = self[index];
|
@@ -960,10 +1245,10 @@
|
|
960
1245
|
case 3: return true; // some
|
961
1246
|
case 5: return value; // find
|
962
1247
|
case 6: return index; // findIndex
|
963
|
-
case 2: push
|
1248
|
+
case 2: push(target, value); // filter
|
964
1249
|
} else switch (TYPE) {
|
965
1250
|
case 4: return false; // every
|
966
|
-
case 7: push
|
1251
|
+
case 7: push(target, value); // filterReject
|
967
1252
|
}
|
968
1253
|
}
|
969
1254
|
}
|
@@ -993,9 +1278,9 @@
|
|
993
1278
|
// `Array.prototype.findIndex` method
|
994
1279
|
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
995
1280
|
findIndex: createMethod$1(6),
|
996
|
-
// `Array.prototype.
|
1281
|
+
// `Array.prototype.filterReject` method
|
997
1282
|
// https://github.com/tc39/proposal-array-filtering
|
998
|
-
|
1283
|
+
filterReject: createMethod$1(7)
|
999
1284
|
};
|
1000
1285
|
|
1001
1286
|
var $filter = arrayIteration.filter;
|
@@ -1012,15 +1297,27 @@
|
|
1012
1297
|
}
|
1013
1298
|
});
|
1014
1299
|
|
1300
|
+
// `Object.prototype.toString` method implementation
|
1301
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1302
|
+
var objectToString = toStringTagSupport ? {}.toString : function toString() {
|
1303
|
+
return '[object ' + classof(this) + ']';
|
1304
|
+
};
|
1305
|
+
|
1306
|
+
// `Object.prototype.toString` method
|
1307
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1308
|
+
if (!toStringTagSupport) {
|
1309
|
+
defineBuiltIn(Object.prototype, 'toString', objectToString, { unsafe: true });
|
1310
|
+
}
|
1311
|
+
|
1015
1312
|
var arrayMethodIsStrict = function (METHOD_NAME, argument) {
|
1016
1313
|
var method = [][METHOD_NAME];
|
1017
1314
|
return !!method && fails(function () {
|
1018
|
-
// eslint-disable-next-line no-useless-call
|
1019
|
-
method.call(null, argument || function () {
|
1315
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
1316
|
+
method.call(null, argument || function () { return 1; }, 1);
|
1020
1317
|
});
|
1021
1318
|
};
|
1022
1319
|
|
1023
|
-
var
|
1320
|
+
var un$Join = functionUncurryThis([].join);
|
1024
1321
|
|
1025
1322
|
var ES3_STRINGS = indexedObject != Object;
|
1026
1323
|
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
|
@@ -1029,14 +1326,22 @@
|
|
1029
1326
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
1030
1327
|
_export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
|
1031
1328
|
join: function join(separator) {
|
1032
|
-
return
|
1329
|
+
return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
|
1033
1330
|
}
|
1034
1331
|
});
|
1035
1332
|
|
1333
|
+
var String$1 = global_1.String;
|
1334
|
+
|
1335
|
+
var toString_1 = function (argument) {
|
1336
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
1337
|
+
return String$1(argument);
|
1338
|
+
};
|
1339
|
+
|
1036
1340
|
// a string of all valid unicode whitespaces
|
1037
1341
|
var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
1038
1342
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
1039
1343
|
|
1344
|
+
var replace = functionUncurryThis(''.replace);
|
1040
1345
|
var whitespace = '[' + whitespaces + ']';
|
1041
1346
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
1042
1347
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
@@ -1044,9 +1349,9 @@
|
|
1044
1349
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
1045
1350
|
var createMethod = function (TYPE) {
|
1046
1351
|
return function ($this) {
|
1047
|
-
var string =
|
1048
|
-
if (TYPE & 1) string =
|
1049
|
-
if (TYPE & 2) string =
|
1352
|
+
var string = toString_1(requireObjectCoercible($this));
|
1353
|
+
if (TYPE & 1) string = replace(string, ltrim, '');
|
1354
|
+
if (TYPE & 2) string = replace(string, rtrim, '');
|
1050
1355
|
return string;
|
1051
1356
|
};
|
1052
1357
|
};
|
@@ -1067,14 +1372,19 @@
|
|
1067
1372
|
|
1068
1373
|
|
1069
1374
|
var $parseInt = global_1.parseInt;
|
1070
|
-
var
|
1071
|
-
var
|
1375
|
+
var Symbol$1 = global_1.Symbol;
|
1376
|
+
var ITERATOR = Symbol$1 && Symbol$1.iterator;
|
1377
|
+
var hex = /^[+-]?0x/i;
|
1378
|
+
var exec = functionUncurryThis(hex.exec);
|
1379
|
+
var FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22
|
1380
|
+
// MS Edge 18- broken with boxed symbols
|
1381
|
+
|| (ITERATOR && !fails(function () { $parseInt(Object(ITERATOR)); }));
|
1072
1382
|
|
1073
1383
|
// `parseInt` method
|
1074
1384
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
1075
1385
|
var numberParseInt = FORCED ? function parseInt(string, radix) {
|
1076
|
-
var S = trim(
|
1077
|
-
return $parseInt(S, (radix >>> 0) || (hex
|
1386
|
+
var S = trim(toString_1(string));
|
1387
|
+
return $parseInt(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
|
1078
1388
|
} : $parseInt;
|
1079
1389
|
|
1080
1390
|
// `parseInt` method
|
@@ -1088,7 +1398,7 @@
|
|
1088
1398
|
* @update: zhixin wen <wenzhixin2010@gmail.com>
|
1089
1399
|
*/
|
1090
1400
|
|
1091
|
-
$__default[
|
1401
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
|
1092
1402
|
treeEnable: false,
|
1093
1403
|
treeShowField: null,
|
1094
1404
|
idField: 'id',
|
@@ -1096,7 +1406,7 @@
|
|
1096
1406
|
rootParentId: null
|
1097
1407
|
});
|
1098
1408
|
|
1099
|
-
$__default[
|
1409
|
+
$__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
|
1100
1410
|
_inherits(_class, _$$BootstrapTable);
|
1101
1411
|
|
1102
1412
|
var _super = _createSuper(_class);
|
@@ -1182,7 +1492,7 @@
|
|
1182
1492
|
|
1183
1493
|
for (var i = 0; i <= len; i++) {
|
1184
1494
|
var node = nodes[i];
|
1185
|
-
var defaultItem = $__default[
|
1495
|
+
var defaultItem = $__default["default"].extend(true, {}, item);
|
1186
1496
|
node._level = defaultItem._level + 1;
|
1187
1497
|
node._parent = defaultItem;
|
1188
1498
|
|
@@ -1200,7 +1510,7 @@
|
|
1200
1510
|
return res;
|
1201
1511
|
};
|
1202
1512
|
|
1203
|
-
this.initTr(node, $__default[
|
1513
|
+
this.initTr(node, $__default["default"].inArray(node, data), data, parentDom);
|
1204
1514
|
}
|
1205
1515
|
}
|
1206
1516
|
}, {
|
@@ -1250,6 +1560,6 @@
|
|
1250
1560
|
}]);
|
1251
1561
|
|
1252
1562
|
return _class;
|
1253
|
-
}($__default[
|
1563
|
+
}($__default["default"].BootstrapTable);
|
1254
1564
|
|
1255
|
-
}))
|
1565
|
+
}));
|