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
@@ -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) {
|
@@ -148,14 +156,17 @@
|
|
148
156
|
}
|
149
157
|
|
150
158
|
function _iterableToArrayLimit(arr, i) {
|
151
|
-
|
159
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
160
|
+
|
161
|
+
if (_i == null) return;
|
152
162
|
var _arr = [];
|
153
163
|
var _n = true;
|
154
164
|
var _d = false;
|
155
|
-
|
165
|
+
|
166
|
+
var _s, _e;
|
156
167
|
|
157
168
|
try {
|
158
|
-
for (
|
169
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
159
170
|
_arr.push(_s.value);
|
160
171
|
|
161
172
|
if (i && _arr.length === i) break;
|
@@ -207,7 +218,7 @@
|
|
207
218
|
|
208
219
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
209
220
|
var global_1 =
|
210
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
221
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
211
222
|
check(typeof globalThis == 'object' && globalThis) ||
|
212
223
|
check(typeof window == 'object' && window) ||
|
213
224
|
// eslint-disable-next-line no-restricted-globals -- safe
|
@@ -226,26 +237,39 @@
|
|
226
237
|
|
227
238
|
// Detect IE8's incomplete defineProperty implementation
|
228
239
|
var descriptors = !fails(function () {
|
229
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
240
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
230
241
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
231
242
|
});
|
232
243
|
|
233
|
-
var
|
234
|
-
|
244
|
+
var functionBindNative = !fails(function () {
|
245
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
246
|
+
var test = (function () { /* empty */ }).bind();
|
247
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
248
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
249
|
+
});
|
250
|
+
|
251
|
+
var call$1 = Function.prototype.call;
|
252
|
+
|
253
|
+
var functionCall = functionBindNative ? call$1.bind(call$1) : function () {
|
254
|
+
return call$1.apply(call$1, arguments);
|
255
|
+
};
|
256
|
+
|
257
|
+
var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
|
258
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
235
259
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
236
260
|
|
237
261
|
// Nashorn ~ JDK8 bug
|
238
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
262
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
|
239
263
|
|
240
264
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
241
265
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
242
|
-
var f$
|
266
|
+
var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
243
267
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
244
268
|
return !!descriptor && descriptor.enumerable;
|
245
|
-
} : $propertyIsEnumerable;
|
269
|
+
} : $propertyIsEnumerable$1;
|
246
270
|
|
247
271
|
var objectPropertyIsEnumerable = {
|
248
|
-
f: f$
|
272
|
+
f: f$5
|
249
273
|
};
|
250
274
|
|
251
275
|
var createPropertyDescriptor = function (bitmap, value) {
|
@@ -257,27 +281,44 @@
|
|
257
281
|
};
|
258
282
|
};
|
259
283
|
|
260
|
-
var
|
284
|
+
var FunctionPrototype$1 = Function.prototype;
|
285
|
+
var bind$1 = FunctionPrototype$1.bind;
|
286
|
+
var call = FunctionPrototype$1.call;
|
287
|
+
var uncurryThis = functionBindNative && bind$1.bind(call, call);
|
288
|
+
|
289
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
290
|
+
return fn && uncurryThis(fn);
|
291
|
+
} : function (fn) {
|
292
|
+
return fn && function () {
|
293
|
+
return call.apply(fn, arguments);
|
294
|
+
};
|
295
|
+
};
|
296
|
+
|
297
|
+
var toString$1 = functionUncurryThis({}.toString);
|
298
|
+
var stringSlice = functionUncurryThis(''.slice);
|
261
299
|
|
262
300
|
var classofRaw = function (it) {
|
263
|
-
return toString
|
301
|
+
return stringSlice(toString$1(it), 8, -1);
|
264
302
|
};
|
265
303
|
|
266
|
-
var
|
304
|
+
var Object$4 = global_1.Object;
|
305
|
+
var split = functionUncurryThis(''.split);
|
267
306
|
|
268
307
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
269
308
|
var indexedObject = fails(function () {
|
270
309
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
271
310
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
272
|
-
return !Object('z').propertyIsEnumerable(0);
|
311
|
+
return !Object$4('z').propertyIsEnumerable(0);
|
273
312
|
}) ? function (it) {
|
274
|
-
return classofRaw(it) == 'String' ? split
|
275
|
-
} : Object;
|
313
|
+
return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
|
314
|
+
} : Object$4;
|
315
|
+
|
316
|
+
var TypeError$8 = global_1.TypeError;
|
276
317
|
|
277
318
|
// `RequireObjectCoercible` abstract operation
|
278
319
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
279
320
|
var requireObjectCoercible = function (it) {
|
280
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
321
|
+
if (it == undefined) throw TypeError$8("Can't call method on " + it);
|
281
322
|
return it;
|
282
323
|
};
|
283
324
|
|
@@ -289,88 +330,310 @@
|
|
289
330
|
return indexedObject(requireObjectCoercible(it));
|
290
331
|
};
|
291
332
|
|
333
|
+
// `IsCallable` abstract operation
|
334
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
335
|
+
var isCallable = function (argument) {
|
336
|
+
return typeof argument == 'function';
|
337
|
+
};
|
338
|
+
|
292
339
|
var isObject = function (it) {
|
293
|
-
return typeof it
|
340
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
294
341
|
};
|
295
342
|
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
var
|
301
|
-
|
343
|
+
var aFunction = function (argument) {
|
344
|
+
return isCallable(argument) ? argument : undefined;
|
345
|
+
};
|
346
|
+
|
347
|
+
var getBuiltIn = function (namespace, method) {
|
348
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
349
|
+
};
|
350
|
+
|
351
|
+
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
352
|
+
|
353
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
354
|
+
|
355
|
+
var process = global_1.process;
|
356
|
+
var Deno = global_1.Deno;
|
357
|
+
var versions = process && process.versions || Deno && Deno.version;
|
358
|
+
var v8 = versions && versions.v8;
|
359
|
+
var match, version;
|
360
|
+
|
361
|
+
if (v8) {
|
362
|
+
match = v8.split('.');
|
363
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
364
|
+
// but their correct versions are not interesting for us
|
365
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
366
|
+
}
|
367
|
+
|
368
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
369
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
370
|
+
if (!version && engineUserAgent) {
|
371
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
372
|
+
if (!match || match[1] >= 74) {
|
373
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
374
|
+
if (match) version = +match[1];
|
375
|
+
}
|
376
|
+
}
|
377
|
+
|
378
|
+
var engineV8Version = version;
|
379
|
+
|
380
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
385
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
386
|
+
var symbol = Symbol();
|
387
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
388
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
389
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
390
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
391
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
392
|
+
});
|
393
|
+
|
394
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
395
|
+
|
396
|
+
|
397
|
+
var useSymbolAsUid = nativeSymbol
|
398
|
+
&& !Symbol.sham
|
399
|
+
&& typeof Symbol.iterator == 'symbol';
|
400
|
+
|
401
|
+
var Object$3 = global_1.Object;
|
402
|
+
|
403
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
404
|
+
return typeof it == 'symbol';
|
405
|
+
} : function (it) {
|
406
|
+
var $Symbol = getBuiltIn('Symbol');
|
407
|
+
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
|
408
|
+
};
|
409
|
+
|
410
|
+
var String$3 = global_1.String;
|
411
|
+
|
412
|
+
var tryToString = function (argument) {
|
413
|
+
try {
|
414
|
+
return String$3(argument);
|
415
|
+
} catch (error) {
|
416
|
+
return 'Object';
|
417
|
+
}
|
418
|
+
};
|
419
|
+
|
420
|
+
var TypeError$7 = global_1.TypeError;
|
421
|
+
|
422
|
+
// `Assert: IsCallable(argument) is true`
|
423
|
+
var aCallable = function (argument) {
|
424
|
+
if (isCallable(argument)) return argument;
|
425
|
+
throw TypeError$7(tryToString(argument) + ' is not a function');
|
426
|
+
};
|
427
|
+
|
428
|
+
// `GetMethod` abstract operation
|
429
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
430
|
+
var getMethod = function (V, P) {
|
431
|
+
var func = V[P];
|
432
|
+
return func == null ? undefined : aCallable(func);
|
433
|
+
};
|
434
|
+
|
435
|
+
var TypeError$6 = global_1.TypeError;
|
436
|
+
|
437
|
+
// `OrdinaryToPrimitive` abstract operation
|
438
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
439
|
+
var ordinaryToPrimitive = function (input, pref) {
|
302
440
|
var fn, val;
|
303
|
-
if (
|
304
|
-
if (
|
305
|
-
if (
|
306
|
-
throw TypeError("Can't convert object to primitive value");
|
441
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
442
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
443
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
444
|
+
throw TypeError$6("Can't convert object to primitive value");
|
445
|
+
};
|
446
|
+
|
447
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
448
|
+
var defineProperty = Object.defineProperty;
|
449
|
+
|
450
|
+
var setGlobal = function (key, value) {
|
451
|
+
try {
|
452
|
+
defineProperty(global_1, key, { value: value, configurable: true, writable: true });
|
453
|
+
} catch (error) {
|
454
|
+
global_1[key] = value;
|
455
|
+
} return value;
|
456
|
+
};
|
457
|
+
|
458
|
+
var SHARED = '__core-js_shared__';
|
459
|
+
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
460
|
+
|
461
|
+
var sharedStore = store$1;
|
462
|
+
|
463
|
+
var shared = createCommonjsModule(function (module) {
|
464
|
+
(module.exports = function (key, value) {
|
465
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
466
|
+
})('versions', []).push({
|
467
|
+
version: '3.22.4',
|
468
|
+
mode: 'global',
|
469
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
470
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
|
471
|
+
source: 'https://github.com/zloirock/core-js'
|
472
|
+
});
|
473
|
+
});
|
474
|
+
|
475
|
+
var Object$2 = global_1.Object;
|
476
|
+
|
477
|
+
// `ToObject` abstract operation
|
478
|
+
// https://tc39.es/ecma262/#sec-toobject
|
479
|
+
var toObject = function (argument) {
|
480
|
+
return Object$2(requireObjectCoercible(argument));
|
481
|
+
};
|
482
|
+
|
483
|
+
var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
484
|
+
|
485
|
+
// `HasOwnProperty` abstract operation
|
486
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
487
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
488
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
489
|
+
return hasOwnProperty(toObject(it), key);
|
490
|
+
};
|
491
|
+
|
492
|
+
var id = 0;
|
493
|
+
var postfix = Math.random();
|
494
|
+
var toString = functionUncurryThis(1.0.toString);
|
495
|
+
|
496
|
+
var uid = function (key) {
|
497
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
498
|
+
};
|
499
|
+
|
500
|
+
var WellKnownSymbolsStore = shared('wks');
|
501
|
+
var Symbol$2 = global_1.Symbol;
|
502
|
+
var symbolFor = Symbol$2 && Symbol$2['for'];
|
503
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid;
|
504
|
+
|
505
|
+
var wellKnownSymbol = function (name) {
|
506
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
507
|
+
var description = 'Symbol.' + name;
|
508
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$2, name)) {
|
509
|
+
WellKnownSymbolsStore[name] = Symbol$2[name];
|
510
|
+
} else if (useSymbolAsUid && symbolFor) {
|
511
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
512
|
+
} else {
|
513
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
514
|
+
}
|
515
|
+
} return WellKnownSymbolsStore[name];
|
307
516
|
};
|
308
517
|
|
309
|
-
var
|
518
|
+
var TypeError$5 = global_1.TypeError;
|
519
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
520
|
+
|
521
|
+
// `ToPrimitive` abstract operation
|
522
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
523
|
+
var toPrimitive = function (input, pref) {
|
524
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
525
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
526
|
+
var result;
|
527
|
+
if (exoticToPrim) {
|
528
|
+
if (pref === undefined) pref = 'default';
|
529
|
+
result = functionCall(exoticToPrim, input, pref);
|
530
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
531
|
+
throw TypeError$5("Can't convert object to primitive value");
|
532
|
+
}
|
533
|
+
if (pref === undefined) pref = 'number';
|
534
|
+
return ordinaryToPrimitive(input, pref);
|
535
|
+
};
|
310
536
|
|
311
|
-
|
312
|
-
|
537
|
+
// `ToPropertyKey` abstract operation
|
538
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
539
|
+
var toPropertyKey = function (argument) {
|
540
|
+
var key = toPrimitive(argument, 'string');
|
541
|
+
return isSymbol(key) ? key : key + '';
|
313
542
|
};
|
314
543
|
|
315
544
|
var document$1 = global_1.document;
|
316
545
|
// typeof document.createElement is 'object' in old IE
|
317
|
-
var EXISTS = isObject(document$1) && isObject(document$1.createElement);
|
546
|
+
var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
|
318
547
|
|
319
548
|
var documentCreateElement = function (it) {
|
320
|
-
return EXISTS ? document$1.createElement(it) : {};
|
549
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
321
550
|
};
|
322
551
|
|
323
|
-
//
|
552
|
+
// Thanks to IE8 for its funny defineProperty
|
324
553
|
var ie8DomDefine = !descriptors && !fails(function () {
|
325
|
-
// eslint-disable-next-line es/no-object-defineproperty --
|
554
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
326
555
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
327
556
|
get: function () { return 7; }
|
328
557
|
}).a != 7;
|
329
558
|
});
|
330
559
|
|
331
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
332
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
560
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
561
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
333
562
|
|
334
563
|
// `Object.getOwnPropertyDescriptor` method
|
335
564
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
336
|
-
var f$
|
565
|
+
var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
337
566
|
O = toIndexedObject(O);
|
338
|
-
P =
|
567
|
+
P = toPropertyKey(P);
|
339
568
|
if (ie8DomDefine) try {
|
340
|
-
return $getOwnPropertyDescriptor(O, P);
|
569
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
341
570
|
} catch (error) { /* empty */ }
|
342
|
-
if (
|
571
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
|
343
572
|
};
|
344
573
|
|
345
574
|
var objectGetOwnPropertyDescriptor = {
|
346
|
-
f: f$
|
575
|
+
f: f$4
|
347
576
|
};
|
348
577
|
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
578
|
+
// V8 ~ Chrome 36-
|
579
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
580
|
+
var v8PrototypeDefineBug = descriptors && fails(function () {
|
581
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
582
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
583
|
+
value: 42,
|
584
|
+
writable: false
|
585
|
+
}).prototype != 42;
|
586
|
+
});
|
587
|
+
|
588
|
+
var String$2 = global_1.String;
|
589
|
+
var TypeError$4 = global_1.TypeError;
|
590
|
+
|
591
|
+
// `Assert: Type(argument) is Object`
|
592
|
+
var anObject = function (argument) {
|
593
|
+
if (isObject(argument)) return argument;
|
594
|
+
throw TypeError$4(String$2(argument) + ' is not an object');
|
353
595
|
};
|
354
596
|
|
355
|
-
|
597
|
+
var TypeError$3 = global_1.TypeError;
|
598
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
356
599
|
var $defineProperty = Object.defineProperty;
|
600
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
601
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
602
|
+
var ENUMERABLE = 'enumerable';
|
603
|
+
var CONFIGURABLE$1 = 'configurable';
|
604
|
+
var WRITABLE = 'writable';
|
357
605
|
|
358
606
|
// `Object.defineProperty` method
|
359
607
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
360
|
-
var f$
|
608
|
+
var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
609
|
+
anObject(O);
|
610
|
+
P = toPropertyKey(P);
|
611
|
+
anObject(Attributes);
|
612
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
613
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
614
|
+
if (current && current[WRITABLE]) {
|
615
|
+
O[P] = Attributes.value;
|
616
|
+
Attributes = {
|
617
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
618
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
619
|
+
writable: false
|
620
|
+
};
|
621
|
+
}
|
622
|
+
} return $defineProperty(O, P, Attributes);
|
623
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
361
624
|
anObject(O);
|
362
|
-
P =
|
625
|
+
P = toPropertyKey(P);
|
363
626
|
anObject(Attributes);
|
364
627
|
if (ie8DomDefine) try {
|
365
628
|
return $defineProperty(O, P, Attributes);
|
366
629
|
} catch (error) { /* empty */ }
|
367
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
630
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$3('Accessors not supported');
|
368
631
|
if ('value' in Attributes) O[P] = Attributes.value;
|
369
632
|
return O;
|
370
633
|
};
|
371
634
|
|
372
635
|
var objectDefineProperty = {
|
373
|
-
f: f$
|
636
|
+
f: f$3
|
374
637
|
};
|
375
638
|
|
376
639
|
var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
@@ -380,25 +643,27 @@
|
|
380
643
|
return object;
|
381
644
|
};
|
382
645
|
|
383
|
-
var
|
384
|
-
|
385
|
-
|
386
|
-
} catch (error) {
|
387
|
-
global_1[key] = value;
|
388
|
-
} return value;
|
389
|
-
};
|
646
|
+
var FunctionPrototype = Function.prototype;
|
647
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
648
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
390
649
|
|
391
|
-
var
|
392
|
-
|
650
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype, 'name');
|
651
|
+
// additional protection from minified / mangled / dropped function names
|
652
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
653
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
|
393
654
|
|
394
|
-
var
|
655
|
+
var functionName = {
|
656
|
+
EXISTS: EXISTS,
|
657
|
+
PROPER: PROPER,
|
658
|
+
CONFIGURABLE: CONFIGURABLE
|
659
|
+
};
|
395
660
|
|
396
|
-
var functionToString = Function.toString;
|
661
|
+
var functionToString = functionUncurryThis(Function.toString);
|
397
662
|
|
398
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
399
|
-
if (
|
663
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
664
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
400
665
|
sharedStore.inspectSource = function (it) {
|
401
|
-
return functionToString
|
666
|
+
return functionToString(it);
|
402
667
|
};
|
403
668
|
}
|
404
669
|
|
@@ -406,24 +671,7 @@
|
|
406
671
|
|
407
672
|
var WeakMap$1 = global_1.WeakMap;
|
408
673
|
|
409
|
-
var nativeWeakMap =
|
410
|
-
|
411
|
-
var shared = createCommonjsModule(function (module) {
|
412
|
-
(module.exports = function (key, value) {
|
413
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
414
|
-
})('versions', []).push({
|
415
|
-
version: '3.10.1',
|
416
|
-
mode: 'global',
|
417
|
-
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
418
|
-
});
|
419
|
-
});
|
420
|
-
|
421
|
-
var id = 0;
|
422
|
-
var postfix = Math.random();
|
423
|
-
|
424
|
-
var uid = function (key) {
|
425
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
426
|
-
};
|
674
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
427
675
|
|
428
676
|
var keys = shared('keys');
|
429
677
|
|
@@ -433,6 +681,8 @@
|
|
433
681
|
|
434
682
|
var hiddenKeys$1 = {};
|
435
683
|
|
684
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
685
|
+
var TypeError$2 = global_1.TypeError;
|
436
686
|
var WeakMap = global_1.WeakMap;
|
437
687
|
var set, get, has;
|
438
688
|
|
@@ -444,40 +694,42 @@
|
|
444
694
|
return function (it) {
|
445
695
|
var state;
|
446
696
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
447
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
697
|
+
throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
448
698
|
} return state;
|
449
699
|
};
|
450
700
|
};
|
451
701
|
|
452
|
-
if (nativeWeakMap) {
|
702
|
+
if (nativeWeakMap || sharedStore.state) {
|
453
703
|
var store = sharedStore.state || (sharedStore.state = new WeakMap());
|
454
|
-
var wmget = store.get;
|
455
|
-
var wmhas = store.has;
|
456
|
-
var wmset = store.set;
|
704
|
+
var wmget = functionUncurryThis(store.get);
|
705
|
+
var wmhas = functionUncurryThis(store.has);
|
706
|
+
var wmset = functionUncurryThis(store.set);
|
457
707
|
set = function (it, metadata) {
|
708
|
+
if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
458
709
|
metadata.facade = it;
|
459
|
-
wmset
|
710
|
+
wmset(store, it, metadata);
|
460
711
|
return metadata;
|
461
712
|
};
|
462
713
|
get = function (it) {
|
463
|
-
return wmget
|
714
|
+
return wmget(store, it) || {};
|
464
715
|
};
|
465
716
|
has = function (it) {
|
466
|
-
return wmhas
|
717
|
+
return wmhas(store, it);
|
467
718
|
};
|
468
719
|
} else {
|
469
720
|
var STATE = sharedKey('state');
|
470
721
|
hiddenKeys$1[STATE] = true;
|
471
722
|
set = function (it, metadata) {
|
723
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
472
724
|
metadata.facade = it;
|
473
725
|
createNonEnumerableProperty(it, STATE, metadata);
|
474
726
|
return metadata;
|
475
727
|
};
|
476
728
|
get = function (it) {
|
477
|
-
return
|
729
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
478
730
|
};
|
479
731
|
has = function (it) {
|
480
|
-
return
|
732
|
+
return hasOwnProperty_1(it, STATE);
|
481
733
|
};
|
482
734
|
}
|
483
735
|
|
@@ -489,29 +741,56 @@
|
|
489
741
|
getterFor: getterFor
|
490
742
|
};
|
491
743
|
|
492
|
-
var
|
493
|
-
var
|
744
|
+
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
745
|
+
var defineProperty = objectDefineProperty.f;
|
746
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
747
|
+
|
748
|
+
|
749
|
+
|
494
750
|
var enforceInternalState = internalState.enforce;
|
751
|
+
var getInternalState = internalState.get;
|
752
|
+
|
753
|
+
var CONFIGURABLE_LENGTH = !fails(function () {
|
754
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
755
|
+
});
|
756
|
+
|
495
757
|
var TEMPLATE = String(String).split('String');
|
496
758
|
|
497
|
-
|
759
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
760
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
761
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
762
|
+
}
|
763
|
+
if (options && options.getter) name = 'get ' + name;
|
764
|
+
if (options && options.setter) name = 'set ' + name;
|
765
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
766
|
+
defineProperty(value, 'name', { value: name, configurable: true });
|
767
|
+
}
|
768
|
+
if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
|
769
|
+
defineProperty(value, 'length', { value: options.arity });
|
770
|
+
}
|
771
|
+
var state = enforceInternalState(value);
|
772
|
+
if (!hasOwnProperty_1(state, 'source')) {
|
773
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
774
|
+
} return value;
|
775
|
+
};
|
776
|
+
|
777
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
778
|
+
// eslint-disable-next-line no-extend-native -- required
|
779
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
780
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
781
|
+
}, 'toString');
|
782
|
+
});
|
783
|
+
|
784
|
+
var defineBuiltIn = function (O, key, value, options) {
|
498
785
|
var unsafe = options ? !!options.unsafe : false;
|
499
786
|
var simple = options ? !!options.enumerable : false;
|
500
787
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
501
|
-
var
|
502
|
-
if (
|
503
|
-
if (typeof key == 'string' && !has$1(value, 'name')) {
|
504
|
-
createNonEnumerableProperty(value, 'name', key);
|
505
|
-
}
|
506
|
-
state = enforceInternalState(value);
|
507
|
-
if (!state.source) {
|
508
|
-
state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
509
|
-
}
|
510
|
-
}
|
788
|
+
var name = options && options.name !== undefined ? options.name : key;
|
789
|
+
if (isCallable(value)) makeBuiltIn_1(value, name, options);
|
511
790
|
if (O === global_1) {
|
512
791
|
if (simple) O[key] = value;
|
513
792
|
else setGlobal(key, value);
|
514
|
-
return;
|
793
|
+
return O;
|
515
794
|
} else if (!unsafe) {
|
516
795
|
delete O[key];
|
517
796
|
} else if (!noTargetGet && O[key]) {
|
@@ -519,56 +798,50 @@
|
|
519
798
|
}
|
520
799
|
if (simple) O[key] = value;
|
521
800
|
else createNonEnumerableProperty(O, key, value);
|
522
|
-
|
523
|
-
})(Function.prototype, 'toString', function toString() {
|
524
|
-
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
525
|
-
});
|
526
|
-
});
|
527
|
-
|
528
|
-
var path = global_1;
|
529
|
-
|
530
|
-
var aFunction$1 = function (variable) {
|
531
|
-
return typeof variable == 'function' ? variable : undefined;
|
532
|
-
};
|
533
|
-
|
534
|
-
var getBuiltIn = function (namespace, method) {
|
535
|
-
return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global_1[namespace])
|
536
|
-
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
|
801
|
+
return O;
|
537
802
|
};
|
538
803
|
|
539
804
|
var ceil = Math.ceil;
|
540
805
|
var floor = Math.floor;
|
541
806
|
|
542
|
-
// `
|
543
|
-
// https://tc39.es/ecma262/#sec-
|
544
|
-
var
|
545
|
-
|
807
|
+
// `ToIntegerOrInfinity` abstract operation
|
808
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
809
|
+
var toIntegerOrInfinity = function (argument) {
|
810
|
+
var number = +argument;
|
811
|
+
// eslint-disable-next-line no-self-compare -- safe
|
812
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
|
546
813
|
};
|
547
814
|
|
815
|
+
var max = Math.max;
|
548
816
|
var min$1 = Math.min;
|
549
817
|
|
818
|
+
// Helper for a popular repeating case of the spec:
|
819
|
+
// Let integer be ? ToInteger(index).
|
820
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
821
|
+
var toAbsoluteIndex = function (index, length) {
|
822
|
+
var integer = toIntegerOrInfinity(index);
|
823
|
+
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
824
|
+
};
|
825
|
+
|
826
|
+
var min = Math.min;
|
827
|
+
|
550
828
|
// `ToLength` abstract operation
|
551
829
|
// https://tc39.es/ecma262/#sec-tolength
|
552
830
|
var toLength = function (argument) {
|
553
|
-
return argument > 0 ? min
|
831
|
+
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
554
832
|
};
|
555
833
|
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
// Let integer be ? ToInteger(index).
|
561
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
562
|
-
var toAbsoluteIndex = function (index, length) {
|
563
|
-
var integer = toInteger(index);
|
564
|
-
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
834
|
+
// `LengthOfArrayLike` abstract operation
|
835
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
836
|
+
var lengthOfArrayLike = function (obj) {
|
837
|
+
return toLength(obj.length);
|
565
838
|
};
|
566
839
|
|
567
840
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
568
841
|
var createMethod$3 = function (IS_INCLUDES) {
|
569
842
|
return function ($this, el, fromIndex) {
|
570
843
|
var O = toIndexedObject($this);
|
571
|
-
var length =
|
844
|
+
var length = lengthOfArrayLike(O);
|
572
845
|
var index = toAbsoluteIndex(fromIndex, length);
|
573
846
|
var value;
|
574
847
|
// Array#includes uses SameValueZero equality algorithm
|
@@ -596,15 +869,17 @@
|
|
596
869
|
var indexOf = arrayIncludes.indexOf;
|
597
870
|
|
598
871
|
|
872
|
+
var push$2 = functionUncurryThis([].push);
|
873
|
+
|
599
874
|
var objectKeysInternal = function (object, names) {
|
600
875
|
var O = toIndexedObject(object);
|
601
876
|
var i = 0;
|
602
877
|
var result = [];
|
603
878
|
var key;
|
604
|
-
for (key in O) !
|
879
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$2(result, key);
|
605
880
|
// Don't enum bug & hidden keys
|
606
|
-
while (names.length > i) if (
|
607
|
-
~indexOf(result, key) ||
|
881
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
882
|
+
~indexOf(result, key) || push$2(result, key);
|
608
883
|
}
|
609
884
|
return result;
|
610
885
|
};
|
@@ -624,36 +899,40 @@
|
|
624
899
|
|
625
900
|
// `Object.getOwnPropertyNames` method
|
626
901
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
627
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
628
|
-
var f$
|
902
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
903
|
+
var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
629
904
|
return objectKeysInternal(O, hiddenKeys);
|
630
905
|
};
|
631
906
|
|
632
907
|
var objectGetOwnPropertyNames = {
|
633
|
-
f: f$
|
908
|
+
f: f$2
|
634
909
|
};
|
635
910
|
|
636
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
637
|
-
var f = Object.getOwnPropertySymbols;
|
911
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
912
|
+
var f$1 = Object.getOwnPropertySymbols;
|
638
913
|
|
639
914
|
var objectGetOwnPropertySymbols = {
|
640
|
-
f: f
|
915
|
+
f: f$1
|
641
916
|
};
|
642
917
|
|
918
|
+
var concat = functionUncurryThis([].concat);
|
919
|
+
|
643
920
|
// all object keys, includes non-enumerable and symbols
|
644
921
|
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
645
922
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
646
923
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
647
|
-
return getOwnPropertySymbols ?
|
924
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
648
925
|
};
|
649
926
|
|
650
|
-
var copyConstructorProperties = function (target, source) {
|
927
|
+
var copyConstructorProperties = function (target, source, exceptions) {
|
651
928
|
var keys = ownKeys(source);
|
652
929
|
var defineProperty = objectDefineProperty.f;
|
653
930
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
654
931
|
for (var i = 0; i < keys.length; i++) {
|
655
932
|
var key = keys[i];
|
656
|
-
if (!
|
933
|
+
if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
|
934
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
935
|
+
}
|
657
936
|
}
|
658
937
|
};
|
659
938
|
|
@@ -663,7 +942,7 @@
|
|
663
942
|
var value = data[normalize(feature)];
|
664
943
|
return value == POLYFILL ? true
|
665
944
|
: value == NATIVE ? false
|
666
|
-
:
|
945
|
+
: isCallable(detection) ? fails(detection)
|
667
946
|
: !!detection;
|
668
947
|
};
|
669
948
|
|
@@ -697,6 +976,7 @@
|
|
697
976
|
options.sham - add a flag to not completely full polyfills
|
698
977
|
options.enumerable - export as enumerable property
|
699
978
|
options.noTargetGet - prevent calling a getter on target
|
979
|
+
options.name - the .name of the function if it does not match the key
|
700
980
|
*/
|
701
981
|
var _export = function (options, source) {
|
702
982
|
var TARGET = options.target;
|
@@ -719,26 +999,28 @@
|
|
719
999
|
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
720
1000
|
// contained in target
|
721
1001
|
if (!FORCED && targetProperty !== undefined) {
|
722
|
-
if (typeof sourceProperty
|
1002
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
723
1003
|
copyConstructorProperties(sourceProperty, targetProperty);
|
724
1004
|
}
|
725
1005
|
// add a flag to not completely full polyfills
|
726
1006
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
727
1007
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
728
1008
|
}
|
729
|
-
|
730
|
-
redefine(target, key, sourceProperty, options);
|
1009
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
731
1010
|
}
|
732
1011
|
};
|
733
1012
|
|
734
1013
|
// `Object.keys` method
|
735
1014
|
// https://tc39.es/ecma262/#sec-object.keys
|
736
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
1015
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
737
1016
|
var objectKeys = Object.keys || function keys(O) {
|
738
1017
|
return objectKeysInternal(O, enumBugKeys);
|
739
1018
|
};
|
740
1019
|
|
741
|
-
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
1020
|
+
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
1021
|
+
|
1022
|
+
var propertyIsEnumerable = functionUncurryThis($propertyIsEnumerable);
|
1023
|
+
var push$1 = functionUncurryThis([].push);
|
742
1024
|
|
743
1025
|
// `Object.{ entries, values }` methods implementation
|
744
1026
|
var createMethod$2 = function (TO_ENTRIES) {
|
@@ -751,8 +1033,8 @@
|
|
751
1033
|
var key;
|
752
1034
|
while (length > i) {
|
753
1035
|
key = keys[i++];
|
754
|
-
if (!descriptors || propertyIsEnumerable
|
755
|
-
|
1036
|
+
if (!descriptors || propertyIsEnumerable(O, key)) {
|
1037
|
+
push$1(result, TO_ENTRIES ? [key, O[key]] : O[key]);
|
756
1038
|
}
|
757
1039
|
}
|
758
1040
|
return result;
|
@@ -778,136 +1060,144 @@
|
|
778
1060
|
}
|
779
1061
|
});
|
780
1062
|
|
781
|
-
var
|
782
|
-
if (typeof it != 'function') {
|
783
|
-
throw TypeError(String(it) + ' is not a function');
|
784
|
-
} return it;
|
785
|
-
};
|
1063
|
+
var bind = functionUncurryThis(functionUncurryThis.bind);
|
786
1064
|
|
787
1065
|
// optional / simple context binding
|
788
|
-
var functionBindContext = function (fn, that
|
789
|
-
|
790
|
-
|
791
|
-
switch (length) {
|
792
|
-
case 0: return function () {
|
793
|
-
return fn.call(that);
|
794
|
-
};
|
795
|
-
case 1: return function (a) {
|
796
|
-
return fn.call(that, a);
|
797
|
-
};
|
798
|
-
case 2: return function (a, b) {
|
799
|
-
return fn.call(that, a, b);
|
800
|
-
};
|
801
|
-
case 3: return function (a, b, c) {
|
802
|
-
return fn.call(that, a, b, c);
|
803
|
-
};
|
804
|
-
}
|
805
|
-
return function (/* ...args */) {
|
1066
|
+
var functionBindContext = function (fn, that) {
|
1067
|
+
aCallable(fn);
|
1068
|
+
return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) {
|
806
1069
|
return fn.apply(that, arguments);
|
807
1070
|
};
|
808
1071
|
};
|
809
1072
|
|
810
|
-
// `ToObject` abstract operation
|
811
|
-
// https://tc39.es/ecma262/#sec-toobject
|
812
|
-
var toObject = function (argument) {
|
813
|
-
return Object(requireObjectCoercible(argument));
|
814
|
-
};
|
815
|
-
|
816
1073
|
// `IsArray` abstract operation
|
817
1074
|
// https://tc39.es/ecma262/#sec-isarray
|
818
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
819
|
-
var isArray = Array.isArray || function isArray(
|
820
|
-
return classofRaw(
|
1075
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
1076
|
+
var isArray = Array.isArray || function isArray(argument) {
|
1077
|
+
return classofRaw(argument) == 'Array';
|
821
1078
|
};
|
822
1079
|
|
823
|
-
var
|
1080
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
1081
|
+
var test = {};
|
824
1082
|
|
825
|
-
|
826
|
-
|
827
|
-
var process = global_1.process;
|
828
|
-
var versions = process && process.versions;
|
829
|
-
var v8 = versions && versions.v8;
|
830
|
-
var match, version;
|
1083
|
+
test[TO_STRING_TAG$1] = 'z';
|
831
1084
|
|
832
|
-
|
833
|
-
match = v8.split('.');
|
834
|
-
version = match[0] + match[1];
|
835
|
-
} else if (engineUserAgent) {
|
836
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
837
|
-
if (!match || match[1] >= 74) {
|
838
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
839
|
-
if (match) version = match[1];
|
840
|
-
}
|
841
|
-
}
|
1085
|
+
var toStringTagSupport = String(test) === '[object z]';
|
842
1086
|
|
843
|
-
var
|
1087
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
1088
|
+
var Object$1 = global_1.Object;
|
844
1089
|
|
845
|
-
//
|
846
|
-
var
|
847
|
-
// eslint-disable-next-line es/no-symbol -- required for testing
|
848
|
-
return !Symbol.sham &&
|
849
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
850
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
851
|
-
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
|
852
|
-
});
|
1090
|
+
// ES3 wrong here
|
1091
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
853
1092
|
|
854
|
-
|
1093
|
+
// fallback for IE11 Script Access Denied error
|
1094
|
+
var tryGet = function (it, key) {
|
1095
|
+
try {
|
1096
|
+
return it[key];
|
1097
|
+
} catch (error) { /* empty */ }
|
1098
|
+
};
|
855
1099
|
|
1100
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
1101
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
1102
|
+
var O, tag, result;
|
1103
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
1104
|
+
// @@toStringTag case
|
1105
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
1106
|
+
// builtinTag case
|
1107
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
1108
|
+
// ES3 arguments fallback
|
1109
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
1110
|
+
};
|
856
1111
|
|
857
|
-
var
|
858
|
-
|
859
|
-
|
1112
|
+
var noop = function () { /* empty */ };
|
1113
|
+
var empty = [];
|
1114
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
1115
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
1116
|
+
var exec$1 = functionUncurryThis(constructorRegExp.exec);
|
1117
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
860
1118
|
|
861
|
-
var
|
862
|
-
|
863
|
-
|
1119
|
+
var isConstructorModern = function isConstructor(argument) {
|
1120
|
+
if (!isCallable(argument)) return false;
|
1121
|
+
try {
|
1122
|
+
construct(noop, empty, argument);
|
1123
|
+
return true;
|
1124
|
+
} catch (error) {
|
1125
|
+
return false;
|
1126
|
+
}
|
1127
|
+
};
|
864
1128
|
|
865
|
-
var
|
866
|
-
if (!
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
1129
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
1130
|
+
if (!isCallable(argument)) return false;
|
1131
|
+
switch (classof(argument)) {
|
1132
|
+
case 'AsyncFunction':
|
1133
|
+
case 'GeneratorFunction':
|
1134
|
+
case 'AsyncGeneratorFunction': return false;
|
1135
|
+
}
|
1136
|
+
try {
|
1137
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
1138
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
1139
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
1140
|
+
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
|
1141
|
+
} catch (error) {
|
1142
|
+
return true;
|
1143
|
+
}
|
873
1144
|
};
|
874
1145
|
|
1146
|
+
isConstructorLegacy.sham = true;
|
1147
|
+
|
1148
|
+
// `IsConstructor` abstract operation
|
1149
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
1150
|
+
var isConstructor = !construct || fails(function () {
|
1151
|
+
var called;
|
1152
|
+
return isConstructorModern(isConstructorModern.call)
|
1153
|
+
|| !isConstructorModern(Object)
|
1154
|
+
|| !isConstructorModern(function () { called = true; })
|
1155
|
+
|| called;
|
1156
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
1157
|
+
|
875
1158
|
var SPECIES$1 = wellKnownSymbol('species');
|
1159
|
+
var Array$1 = global_1.Array;
|
876
1160
|
|
877
|
-
// `ArraySpeciesCreate` abstract operation
|
1161
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
878
1162
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
879
|
-
var
|
1163
|
+
var arraySpeciesConstructor = function (originalArray) {
|
880
1164
|
var C;
|
881
1165
|
if (isArray(originalArray)) {
|
882
1166
|
C = originalArray.constructor;
|
883
1167
|
// cross-realm fallback
|
884
|
-
if (
|
1168
|
+
if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
|
885
1169
|
else if (isObject(C)) {
|
886
1170
|
C = C[SPECIES$1];
|
887
1171
|
if (C === null) C = undefined;
|
888
1172
|
}
|
889
|
-
} return
|
1173
|
+
} return C === undefined ? Array$1 : C;
|
890
1174
|
};
|
891
1175
|
|
892
|
-
|
1176
|
+
// `ArraySpeciesCreate` abstract operation
|
1177
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1178
|
+
var arraySpeciesCreate = function (originalArray, length) {
|
1179
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
1180
|
+
};
|
893
1181
|
|
894
|
-
|
1182
|
+
var push = functionUncurryThis([].push);
|
1183
|
+
|
1184
|
+
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
895
1185
|
var createMethod$1 = function (TYPE) {
|
896
1186
|
var IS_MAP = TYPE == 1;
|
897
1187
|
var IS_FILTER = TYPE == 2;
|
898
1188
|
var IS_SOME = TYPE == 3;
|
899
1189
|
var IS_EVERY = TYPE == 4;
|
900
1190
|
var IS_FIND_INDEX = TYPE == 6;
|
901
|
-
var
|
1191
|
+
var IS_FILTER_REJECT = TYPE == 7;
|
902
1192
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
903
1193
|
return function ($this, callbackfn, that, specificCreate) {
|
904
1194
|
var O = toObject($this);
|
905
1195
|
var self = indexedObject(O);
|
906
|
-
var boundFunction = functionBindContext(callbackfn, that
|
907
|
-
var length =
|
1196
|
+
var boundFunction = functionBindContext(callbackfn, that);
|
1197
|
+
var length = lengthOfArrayLike(self);
|
908
1198
|
var index = 0;
|
909
1199
|
var create = specificCreate || arraySpeciesCreate;
|
910
|
-
var target = IS_MAP ? create($this, length) : IS_FILTER ||
|
1200
|
+
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
911
1201
|
var value, result;
|
912
1202
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
913
1203
|
value = self[index];
|
@@ -918,10 +1208,10 @@
|
|
918
1208
|
case 3: return true; // some
|
919
1209
|
case 5: return value; // find
|
920
1210
|
case 6: return index; // findIndex
|
921
|
-
case 2: push
|
1211
|
+
case 2: push(target, value); // filter
|
922
1212
|
} else switch (TYPE) {
|
923
1213
|
case 4: return false; // every
|
924
|
-
case 7: push
|
1214
|
+
case 7: push(target, value); // filterReject
|
925
1215
|
}
|
926
1216
|
}
|
927
1217
|
}
|
@@ -951,26 +1241,40 @@
|
|
951
1241
|
// `Array.prototype.findIndex` method
|
952
1242
|
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
953
1243
|
findIndex: createMethod$1(6),
|
954
|
-
// `Array.prototype.
|
1244
|
+
// `Array.prototype.filterReject` method
|
955
1245
|
// https://github.com/tc39/proposal-array-filtering
|
956
|
-
|
1246
|
+
filterReject: createMethod$1(7)
|
957
1247
|
};
|
958
1248
|
|
959
1249
|
// `Object.defineProperties` method
|
960
1250
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
961
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
962
|
-
var
|
1251
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
1252
|
+
var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
963
1253
|
anObject(O);
|
1254
|
+
var props = toIndexedObject(Properties);
|
964
1255
|
var keys = objectKeys(Properties);
|
965
1256
|
var length = keys.length;
|
966
1257
|
var index = 0;
|
967
1258
|
var key;
|
968
|
-
while (length > index) objectDefineProperty.f(O, key = keys[index++],
|
1259
|
+
while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
|
969
1260
|
return O;
|
970
1261
|
};
|
971
1262
|
|
1263
|
+
var objectDefineProperties = {
|
1264
|
+
f: f
|
1265
|
+
};
|
1266
|
+
|
972
1267
|
var html = getBuiltIn('document', 'documentElement');
|
973
1268
|
|
1269
|
+
/* global ActiveXObject -- old IE, WSH */
|
1270
|
+
|
1271
|
+
|
1272
|
+
|
1273
|
+
|
1274
|
+
|
1275
|
+
|
1276
|
+
|
1277
|
+
|
974
1278
|
var GT = '>';
|
975
1279
|
var LT = '<';
|
976
1280
|
var PROTOTYPE = 'prototype';
|
@@ -1017,10 +1321,13 @@
|
|
1017
1321
|
var activeXDocument;
|
1018
1322
|
var NullProtoObject = function () {
|
1019
1323
|
try {
|
1020
|
-
|
1021
|
-
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
1324
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
1022
1325
|
} catch (error) { /* ignore */ }
|
1023
|
-
NullProtoObject =
|
1326
|
+
NullProtoObject = typeof document != 'undefined'
|
1327
|
+
? document.domain && activeXDocument
|
1328
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
1329
|
+
: NullProtoObjectViaIFrame()
|
1330
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
1024
1331
|
var length = enumBugKeys.length;
|
1025
1332
|
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
1026
1333
|
return NullProtoObject();
|
@@ -1030,6 +1337,7 @@
|
|
1030
1337
|
|
1031
1338
|
// `Object.create` method
|
1032
1339
|
// https://tc39.es/ecma262/#sec-object.create
|
1340
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
1033
1341
|
var objectCreate = Object.create || function create(O, Properties) {
|
1034
1342
|
var result;
|
1035
1343
|
if (O !== null) {
|
@@ -1039,7 +1347,7 @@
|
|
1039
1347
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
1040
1348
|
result[IE_PROTO] = O;
|
1041
1349
|
} else result = NullProtoObject();
|
1042
|
-
return Properties === undefined ? result : objectDefineProperties(result, Properties);
|
1350
|
+
return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
|
1043
1351
|
};
|
1044
1352
|
|
1045
1353
|
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
@@ -1079,10 +1387,30 @@
|
|
1079
1387
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
1080
1388
|
addToUnscopables(FIND);
|
1081
1389
|
|
1390
|
+
// `Object.prototype.toString` method implementation
|
1391
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1392
|
+
var objectToString = toStringTagSupport ? {}.toString : function toString() {
|
1393
|
+
return '[object ' + classof(this) + ']';
|
1394
|
+
};
|
1395
|
+
|
1396
|
+
// `Object.prototype.toString` method
|
1397
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1398
|
+
if (!toStringTagSupport) {
|
1399
|
+
defineBuiltIn(Object.prototype, 'toString', objectToString, { unsafe: true });
|
1400
|
+
}
|
1401
|
+
|
1402
|
+
var String$1 = global_1.String;
|
1403
|
+
|
1404
|
+
var toString_1 = function (argument) {
|
1405
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
1406
|
+
return String$1(argument);
|
1407
|
+
};
|
1408
|
+
|
1082
1409
|
// a string of all valid unicode whitespaces
|
1083
1410
|
var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
1084
1411
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
1085
1412
|
|
1413
|
+
var replace = functionUncurryThis(''.replace);
|
1086
1414
|
var whitespace = '[' + whitespaces + ']';
|
1087
1415
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
1088
1416
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
@@ -1090,9 +1418,9 @@
|
|
1090
1418
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
1091
1419
|
var createMethod = function (TYPE) {
|
1092
1420
|
return function ($this) {
|
1093
|
-
var string =
|
1094
|
-
if (TYPE & 1) string =
|
1095
|
-
if (TYPE & 2) string =
|
1421
|
+
var string = toString_1(requireObjectCoercible($this));
|
1422
|
+
if (TYPE & 1) string = replace(string, ltrim, '');
|
1423
|
+
if (TYPE & 2) string = replace(string, rtrim, '');
|
1096
1424
|
return string;
|
1097
1425
|
};
|
1098
1426
|
};
|
@@ -1113,14 +1441,19 @@
|
|
1113
1441
|
|
1114
1442
|
|
1115
1443
|
var $parseInt = global_1.parseInt;
|
1116
|
-
var
|
1117
|
-
var
|
1444
|
+
var Symbol$1 = global_1.Symbol;
|
1445
|
+
var ITERATOR = Symbol$1 && Symbol$1.iterator;
|
1446
|
+
var hex = /^[+-]?0x/i;
|
1447
|
+
var exec = functionUncurryThis(hex.exec);
|
1448
|
+
var FORCED$1 = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22
|
1449
|
+
// MS Edge 18- broken with boxed symbols
|
1450
|
+
|| (ITERATOR && !fails(function () { $parseInt(Object(ITERATOR)); }));
|
1118
1451
|
|
1119
1452
|
// `parseInt` method
|
1120
1453
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
1121
1454
|
var numberParseInt = FORCED$1 ? function parseInt(string, radix) {
|
1122
|
-
var S = trim(
|
1123
|
-
return $parseInt(S, (radix >>> 0) || (hex
|
1455
|
+
var S = trim(toString_1(string));
|
1456
|
+
return $parseInt(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
|
1124
1457
|
} : $parseInt;
|
1125
1458
|
|
1126
1459
|
// `parseInt` method
|
@@ -1160,7 +1493,7 @@
|
|
1160
1493
|
});
|
1161
1494
|
|
1162
1495
|
var createProperty = function (object, key, value) {
|
1163
|
-
var propertyKey =
|
1496
|
+
var propertyKey = toPropertyKey(key);
|
1164
1497
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
1165
1498
|
else object[propertyKey] = value;
|
1166
1499
|
};
|
@@ -1168,6 +1501,7 @@
|
|
1168
1501
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
1169
1502
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
1170
1503
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1504
|
+
var TypeError$1 = global_1.TypeError;
|
1171
1505
|
|
1172
1506
|
// We can't use this feature detection in V8 since it causes
|
1173
1507
|
// deoptimization and serious performance degradation
|
@@ -1191,7 +1525,7 @@
|
|
1191
1525
|
// `Array.prototype.concat` method
|
1192
1526
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
1193
1527
|
// with adding support of @@isConcatSpreadable and @@species
|
1194
|
-
_export({ target: 'Array', proto: true, forced: FORCED }, {
|
1528
|
+
_export({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
1195
1529
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
1196
1530
|
concat: function concat(arg) {
|
1197
1531
|
var O = toObject(this);
|
@@ -1201,11 +1535,11 @@
|
|
1201
1535
|
for (i = -1, length = arguments.length; i < length; i++) {
|
1202
1536
|
E = i === -1 ? O : arguments[i];
|
1203
1537
|
if (isConcatSpreadable(E)) {
|
1204
|
-
len =
|
1205
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1538
|
+
len = lengthOfArrayLike(E);
|
1539
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1206
1540
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
1207
1541
|
} else {
|
1208
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1542
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1209
1543
|
createProperty(A, n++, E);
|
1210
1544
|
}
|
1211
1545
|
}
|
@@ -1221,7 +1555,7 @@
|
|
1221
1555
|
* @version: v1.2.0
|
1222
1556
|
*/
|
1223
1557
|
|
1224
|
-
$__default[
|
1558
|
+
$__default["default"].akottr.dragtable.prototype._restoreState = function (persistObj) {
|
1225
1559
|
var i = 0;
|
1226
1560
|
|
1227
1561
|
for (var _i = 0, _Object$entries = Object.entries(persistObj); _i < _Object$entries.length; _i++) {
|
@@ -1282,7 +1616,7 @@
|
|
1282
1616
|
}
|
1283
1617
|
};
|
1284
1618
|
|
1285
|
-
$__default[
|
1619
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
|
1286
1620
|
reorderableColumns: false,
|
1287
1621
|
maxMovingRows: 10,
|
1288
1622
|
// eslint-disable-next-line no-unused-vars
|
@@ -1291,12 +1625,12 @@
|
|
1291
1625
|
},
|
1292
1626
|
dragaccept: null
|
1293
1627
|
});
|
1294
|
-
$__default[
|
1628
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.Constructor.EVENTS, {
|
1295
1629
|
'reorder-column.bs.table': 'onReorderColumn'
|
1296
1630
|
});
|
1297
|
-
$__default[
|
1631
|
+
$__default["default"].fn.bootstrapTable.methods.push('orderColumns');
|
1298
1632
|
|
1299
|
-
$__default[
|
1633
|
+
$__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
|
1300
1634
|
_inherits(_class, _$$BootstrapTable);
|
1301
1635
|
|
1302
1636
|
var _super = _createSuper(_class);
|
@@ -1387,11 +1721,11 @@
|
|
1387
1721
|
var order = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
1388
1722
|
|
1389
1723
|
try {
|
1390
|
-
$__default[
|
1724
|
+
$__default["default"](this.$el).dragtable('destroy');
|
1391
1725
|
} catch (e) {// do nothing
|
1392
1726
|
}
|
1393
1727
|
|
1394
|
-
$__default[
|
1728
|
+
$__default["default"](this.$el).dragtable({
|
1395
1729
|
maxMovingRows: this.options.maxMovingRows,
|
1396
1730
|
dragaccept: this.options.dragaccept,
|
1397
1731
|
clickDelay: 200,
|
@@ -1400,7 +1734,7 @@
|
|
1400
1734
|
beforeStop: function beforeStop(table) {
|
1401
1735
|
var sortOrder = {};
|
1402
1736
|
table.el.find('th').each(function (i, el) {
|
1403
|
-
sortOrder[$__default[
|
1737
|
+
sortOrder[$__default["default"](el).data('field')] = i;
|
1404
1738
|
});
|
1405
1739
|
_this.columnsSortOrder = sortOrder;
|
1406
1740
|
|
@@ -1416,8 +1750,8 @@
|
|
1416
1750
|
var optionsColumns = [];
|
1417
1751
|
|
1418
1752
|
_this.$header.find('th:not(.detail)').each(function (i, el) {
|
1419
|
-
ths.push($__default[
|
1420
|
-
formatters.push($__default[
|
1753
|
+
ths.push($__default["default"](el).data('field'));
|
1754
|
+
formatters.push($__default["default"](el).data('formatter'));
|
1421
1755
|
}); // Exist columns not shown
|
1422
1756
|
|
1423
1757
|
|
@@ -1445,7 +1779,7 @@
|
|
1445
1779
|
_this.columns = columns;
|
1446
1780
|
filterFn(); // Support <IE9
|
1447
1781
|
|
1448
|
-
$__default[
|
1782
|
+
$__default["default"].each(_this.columns, function (i, column) {
|
1449
1783
|
var found = false;
|
1450
1784
|
var field = column.field;
|
1451
1785
|
|
@@ -1486,6 +1820,6 @@
|
|
1486
1820
|
}]);
|
1487
1821
|
|
1488
1822
|
return _class;
|
1489
|
-
}($__default[
|
1823
|
+
}($__default["default"].BootstrapTable);
|
1490
1824
|
|
1491
|
-
}))
|
1825
|
+
}));
|