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,28 +2,12 @@
|
|
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
|
|
9
9
|
var $__default = /*#__PURE__*/_interopDefaultLegacy($);
|
10
10
|
|
11
|
-
function _typeof(obj) {
|
12
|
-
"@babel/helpers - typeof";
|
13
|
-
|
14
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
15
|
-
_typeof = function (obj) {
|
16
|
-
return typeof obj;
|
17
|
-
};
|
18
|
-
} else {
|
19
|
-
_typeof = function (obj) {
|
20
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
21
|
-
};
|
22
|
-
}
|
23
|
-
|
24
|
-
return _typeof(obj);
|
25
|
-
}
|
26
|
-
|
27
11
|
function _classCallCheck(instance, Constructor) {
|
28
12
|
if (!(instance instanceof Constructor)) {
|
29
13
|
throw new TypeError("Cannot call a class as a function");
|
@@ -43,6 +27,9 @@
|
|
43
27
|
function _createClass(Constructor, protoProps, staticProps) {
|
44
28
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
45
29
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
30
|
+
Object.defineProperty(Constructor, "prototype", {
|
31
|
+
writable: false
|
32
|
+
});
|
46
33
|
return Constructor;
|
47
34
|
}
|
48
35
|
|
@@ -58,6 +45,9 @@
|
|
58
45
|
configurable: true
|
59
46
|
}
|
60
47
|
});
|
48
|
+
Object.defineProperty(subClass, "prototype", {
|
49
|
+
writable: false
|
50
|
+
});
|
61
51
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
62
52
|
}
|
63
53
|
|
@@ -101,6 +91,8 @@
|
|
101
91
|
function _possibleConstructorReturn(self, call) {
|
102
92
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
103
93
|
return call;
|
94
|
+
} else if (call !== void 0) {
|
95
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
104
96
|
}
|
105
97
|
|
106
98
|
return _assertThisInitialized(self);
|
@@ -134,7 +126,7 @@
|
|
134
126
|
return object;
|
135
127
|
}
|
136
128
|
|
137
|
-
function _get(
|
129
|
+
function _get() {
|
138
130
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
139
131
|
_get = Reflect.get;
|
140
132
|
} else {
|
@@ -145,14 +137,14 @@
|
|
145
137
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
146
138
|
|
147
139
|
if (desc.get) {
|
148
|
-
return desc.get.call(receiver);
|
140
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
149
141
|
}
|
150
142
|
|
151
143
|
return desc.value;
|
152
144
|
};
|
153
145
|
}
|
154
146
|
|
155
|
-
return _get(
|
147
|
+
return _get.apply(this, arguments);
|
156
148
|
}
|
157
149
|
|
158
150
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
@@ -167,7 +159,7 @@
|
|
167
159
|
|
168
160
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
169
161
|
var global_1 =
|
170
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
162
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
171
163
|
check(typeof globalThis == 'object' && globalThis) ||
|
172
164
|
check(typeof window == 'object' && window) ||
|
173
165
|
// eslint-disable-next-line no-restricted-globals -- safe
|
@@ -186,12 +178,25 @@
|
|
186
178
|
|
187
179
|
// Detect IE8's incomplete defineProperty implementation
|
188
180
|
var descriptors = !fails(function () {
|
189
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
181
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
190
182
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
191
183
|
});
|
192
184
|
|
185
|
+
var functionBindNative = !fails(function () {
|
186
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
187
|
+
var test = (function () { /* empty */ }).bind();
|
188
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
189
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
190
|
+
});
|
191
|
+
|
192
|
+
var call$1 = Function.prototype.call;
|
193
|
+
|
194
|
+
var functionCall = functionBindNative ? call$1.bind(call$1) : function () {
|
195
|
+
return call$1.apply(call$1, arguments);
|
196
|
+
};
|
197
|
+
|
193
198
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
194
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
199
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
195
200
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
196
201
|
|
197
202
|
// Nashorn ~ JDK8 bug
|
@@ -199,13 +204,13 @@
|
|
199
204
|
|
200
205
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
201
206
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
202
|
-
var f$
|
207
|
+
var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
203
208
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
204
209
|
return !!descriptor && descriptor.enumerable;
|
205
210
|
} : $propertyIsEnumerable;
|
206
211
|
|
207
212
|
var objectPropertyIsEnumerable = {
|
208
|
-
f: f$
|
213
|
+
f: f$5
|
209
214
|
};
|
210
215
|
|
211
216
|
var createPropertyDescriptor = function (bitmap, value) {
|
@@ -217,27 +222,44 @@
|
|
217
222
|
};
|
218
223
|
};
|
219
224
|
|
220
|
-
var
|
225
|
+
var FunctionPrototype$1 = Function.prototype;
|
226
|
+
var bind$1 = FunctionPrototype$1.bind;
|
227
|
+
var call = FunctionPrototype$1.call;
|
228
|
+
var uncurryThis = functionBindNative && bind$1.bind(call, call);
|
229
|
+
|
230
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
231
|
+
return fn && uncurryThis(fn);
|
232
|
+
} : function (fn) {
|
233
|
+
return fn && function () {
|
234
|
+
return call.apply(fn, arguments);
|
235
|
+
};
|
236
|
+
};
|
237
|
+
|
238
|
+
var toString$1 = functionUncurryThis({}.toString);
|
239
|
+
var stringSlice = functionUncurryThis(''.slice);
|
221
240
|
|
222
241
|
var classofRaw = function (it) {
|
223
|
-
return toString
|
242
|
+
return stringSlice(toString$1(it), 8, -1);
|
224
243
|
};
|
225
244
|
|
226
|
-
var
|
245
|
+
var Object$4 = global_1.Object;
|
246
|
+
var split = functionUncurryThis(''.split);
|
227
247
|
|
228
248
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
229
249
|
var indexedObject = fails(function () {
|
230
250
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
231
251
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
232
|
-
return !Object('z').propertyIsEnumerable(0);
|
252
|
+
return !Object$4('z').propertyIsEnumerable(0);
|
233
253
|
}) ? function (it) {
|
234
|
-
return classofRaw(it) == 'String' ? split
|
235
|
-
} : Object;
|
254
|
+
return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
|
255
|
+
} : Object$4;
|
256
|
+
|
257
|
+
var TypeError$8 = global_1.TypeError;
|
236
258
|
|
237
259
|
// `RequireObjectCoercible` abstract operation
|
238
260
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
239
261
|
var requireObjectCoercible = function (it) {
|
240
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
262
|
+
if (it == undefined) throw TypeError$8("Can't call method on " + it);
|
241
263
|
return it;
|
242
264
|
};
|
243
265
|
|
@@ -249,88 +271,310 @@
|
|
249
271
|
return indexedObject(requireObjectCoercible(it));
|
250
272
|
};
|
251
273
|
|
274
|
+
// `IsCallable` abstract operation
|
275
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
276
|
+
var isCallable = function (argument) {
|
277
|
+
return typeof argument == 'function';
|
278
|
+
};
|
279
|
+
|
252
280
|
var isObject = function (it) {
|
253
|
-
return typeof it
|
281
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
254
282
|
};
|
255
283
|
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
var
|
261
|
-
|
284
|
+
var aFunction = function (argument) {
|
285
|
+
return isCallable(argument) ? argument : undefined;
|
286
|
+
};
|
287
|
+
|
288
|
+
var getBuiltIn = function (namespace, method) {
|
289
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
290
|
+
};
|
291
|
+
|
292
|
+
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
293
|
+
|
294
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
295
|
+
|
296
|
+
var process = global_1.process;
|
297
|
+
var Deno = global_1.Deno;
|
298
|
+
var versions = process && process.versions || Deno && Deno.version;
|
299
|
+
var v8 = versions && versions.v8;
|
300
|
+
var match, version;
|
301
|
+
|
302
|
+
if (v8) {
|
303
|
+
match = v8.split('.');
|
304
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
305
|
+
// but their correct versions are not interesting for us
|
306
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
307
|
+
}
|
308
|
+
|
309
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
310
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
311
|
+
if (!version && engineUserAgent) {
|
312
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
313
|
+
if (!match || match[1] >= 74) {
|
314
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
315
|
+
if (match) version = +match[1];
|
316
|
+
}
|
317
|
+
}
|
318
|
+
|
319
|
+
var engineV8Version = version;
|
320
|
+
|
321
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
326
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
327
|
+
var symbol = Symbol();
|
328
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
329
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
330
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
331
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
332
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
333
|
+
});
|
334
|
+
|
335
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
336
|
+
|
337
|
+
|
338
|
+
var useSymbolAsUid = nativeSymbol
|
339
|
+
&& !Symbol.sham
|
340
|
+
&& typeof Symbol.iterator == 'symbol';
|
341
|
+
|
342
|
+
var Object$3 = global_1.Object;
|
343
|
+
|
344
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
345
|
+
return typeof it == 'symbol';
|
346
|
+
} : function (it) {
|
347
|
+
var $Symbol = getBuiltIn('Symbol');
|
348
|
+
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
|
349
|
+
};
|
350
|
+
|
351
|
+
var String$3 = global_1.String;
|
352
|
+
|
353
|
+
var tryToString = function (argument) {
|
354
|
+
try {
|
355
|
+
return String$3(argument);
|
356
|
+
} catch (error) {
|
357
|
+
return 'Object';
|
358
|
+
}
|
359
|
+
};
|
360
|
+
|
361
|
+
var TypeError$7 = global_1.TypeError;
|
362
|
+
|
363
|
+
// `Assert: IsCallable(argument) is true`
|
364
|
+
var aCallable = function (argument) {
|
365
|
+
if (isCallable(argument)) return argument;
|
366
|
+
throw TypeError$7(tryToString(argument) + ' is not a function');
|
367
|
+
};
|
368
|
+
|
369
|
+
// `GetMethod` abstract operation
|
370
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
371
|
+
var getMethod = function (V, P) {
|
372
|
+
var func = V[P];
|
373
|
+
return func == null ? undefined : aCallable(func);
|
374
|
+
};
|
375
|
+
|
376
|
+
var TypeError$6 = global_1.TypeError;
|
377
|
+
|
378
|
+
// `OrdinaryToPrimitive` abstract operation
|
379
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
380
|
+
var ordinaryToPrimitive = function (input, pref) {
|
262
381
|
var fn, val;
|
263
|
-
if (
|
264
|
-
if (
|
265
|
-
if (
|
266
|
-
throw TypeError("Can't convert object to primitive value");
|
382
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
383
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
384
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
385
|
+
throw TypeError$6("Can't convert object to primitive value");
|
386
|
+
};
|
387
|
+
|
388
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
389
|
+
var defineProperty = Object.defineProperty;
|
390
|
+
|
391
|
+
var setGlobal = function (key, value) {
|
392
|
+
try {
|
393
|
+
defineProperty(global_1, key, { value: value, configurable: true, writable: true });
|
394
|
+
} catch (error) {
|
395
|
+
global_1[key] = value;
|
396
|
+
} return value;
|
397
|
+
};
|
398
|
+
|
399
|
+
var SHARED = '__core-js_shared__';
|
400
|
+
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
401
|
+
|
402
|
+
var sharedStore = store$1;
|
403
|
+
|
404
|
+
var shared = createCommonjsModule(function (module) {
|
405
|
+
(module.exports = function (key, value) {
|
406
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
407
|
+
})('versions', []).push({
|
408
|
+
version: '3.22.4',
|
409
|
+
mode: 'global',
|
410
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
411
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
|
412
|
+
source: 'https://github.com/zloirock/core-js'
|
413
|
+
});
|
414
|
+
});
|
415
|
+
|
416
|
+
var Object$2 = global_1.Object;
|
417
|
+
|
418
|
+
// `ToObject` abstract operation
|
419
|
+
// https://tc39.es/ecma262/#sec-toobject
|
420
|
+
var toObject = function (argument) {
|
421
|
+
return Object$2(requireObjectCoercible(argument));
|
422
|
+
};
|
423
|
+
|
424
|
+
var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
425
|
+
|
426
|
+
// `HasOwnProperty` abstract operation
|
427
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
428
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
429
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
430
|
+
return hasOwnProperty(toObject(it), key);
|
431
|
+
};
|
432
|
+
|
433
|
+
var id = 0;
|
434
|
+
var postfix = Math.random();
|
435
|
+
var toString = functionUncurryThis(1.0.toString);
|
436
|
+
|
437
|
+
var uid = function (key) {
|
438
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
267
439
|
};
|
268
440
|
|
269
|
-
var
|
441
|
+
var WellKnownSymbolsStore = shared('wks');
|
442
|
+
var Symbol$2 = global_1.Symbol;
|
443
|
+
var symbolFor = Symbol$2 && Symbol$2['for'];
|
444
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid;
|
270
445
|
|
271
|
-
var
|
272
|
-
|
446
|
+
var wellKnownSymbol = function (name) {
|
447
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
448
|
+
var description = 'Symbol.' + name;
|
449
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$2, name)) {
|
450
|
+
WellKnownSymbolsStore[name] = Symbol$2[name];
|
451
|
+
} else if (useSymbolAsUid && symbolFor) {
|
452
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
453
|
+
} else {
|
454
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
455
|
+
}
|
456
|
+
} return WellKnownSymbolsStore[name];
|
457
|
+
};
|
458
|
+
|
459
|
+
var TypeError$5 = global_1.TypeError;
|
460
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
461
|
+
|
462
|
+
// `ToPrimitive` abstract operation
|
463
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
464
|
+
var toPrimitive = function (input, pref) {
|
465
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
466
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
467
|
+
var result;
|
468
|
+
if (exoticToPrim) {
|
469
|
+
if (pref === undefined) pref = 'default';
|
470
|
+
result = functionCall(exoticToPrim, input, pref);
|
471
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
472
|
+
throw TypeError$5("Can't convert object to primitive value");
|
473
|
+
}
|
474
|
+
if (pref === undefined) pref = 'number';
|
475
|
+
return ordinaryToPrimitive(input, pref);
|
476
|
+
};
|
477
|
+
|
478
|
+
// `ToPropertyKey` abstract operation
|
479
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
480
|
+
var toPropertyKey = function (argument) {
|
481
|
+
var key = toPrimitive(argument, 'string');
|
482
|
+
return isSymbol(key) ? key : key + '';
|
273
483
|
};
|
274
484
|
|
275
485
|
var document$1 = global_1.document;
|
276
486
|
// typeof document.createElement is 'object' in old IE
|
277
|
-
var EXISTS = isObject(document$1) && isObject(document$1.createElement);
|
487
|
+
var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
|
278
488
|
|
279
489
|
var documentCreateElement = function (it) {
|
280
|
-
return EXISTS ? document$1.createElement(it) : {};
|
490
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
281
491
|
};
|
282
492
|
|
283
|
-
//
|
493
|
+
// Thanks to IE8 for its funny defineProperty
|
284
494
|
var ie8DomDefine = !descriptors && !fails(function () {
|
285
|
-
// eslint-disable-next-line es/no-object-defineproperty --
|
495
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
286
496
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
287
497
|
get: function () { return 7; }
|
288
498
|
}).a != 7;
|
289
499
|
});
|
290
500
|
|
291
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
292
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
501
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
502
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
293
503
|
|
294
504
|
// `Object.getOwnPropertyDescriptor` method
|
295
505
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
296
|
-
var f$
|
506
|
+
var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
297
507
|
O = toIndexedObject(O);
|
298
|
-
P =
|
508
|
+
P = toPropertyKey(P);
|
299
509
|
if (ie8DomDefine) try {
|
300
|
-
return $getOwnPropertyDescriptor(O, P);
|
510
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
301
511
|
} catch (error) { /* empty */ }
|
302
|
-
if (
|
512
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
|
303
513
|
};
|
304
514
|
|
305
515
|
var objectGetOwnPropertyDescriptor = {
|
306
|
-
f: f$
|
516
|
+
f: f$4
|
307
517
|
};
|
308
518
|
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
519
|
+
// V8 ~ Chrome 36-
|
520
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
521
|
+
var v8PrototypeDefineBug = descriptors && fails(function () {
|
522
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
523
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
524
|
+
value: 42,
|
525
|
+
writable: false
|
526
|
+
}).prototype != 42;
|
527
|
+
});
|
528
|
+
|
529
|
+
var String$2 = global_1.String;
|
530
|
+
var TypeError$4 = global_1.TypeError;
|
531
|
+
|
532
|
+
// `Assert: Type(argument) is Object`
|
533
|
+
var anObject = function (argument) {
|
534
|
+
if (isObject(argument)) return argument;
|
535
|
+
throw TypeError$4(String$2(argument) + ' is not an object');
|
313
536
|
};
|
314
537
|
|
315
|
-
|
538
|
+
var TypeError$3 = global_1.TypeError;
|
539
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
316
540
|
var $defineProperty = Object.defineProperty;
|
541
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
542
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
543
|
+
var ENUMERABLE = 'enumerable';
|
544
|
+
var CONFIGURABLE$1 = 'configurable';
|
545
|
+
var WRITABLE = 'writable';
|
317
546
|
|
318
547
|
// `Object.defineProperty` method
|
319
548
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
320
|
-
var f$
|
549
|
+
var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
321
550
|
anObject(O);
|
322
|
-
P =
|
551
|
+
P = toPropertyKey(P);
|
552
|
+
anObject(Attributes);
|
553
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
554
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
555
|
+
if (current && current[WRITABLE]) {
|
556
|
+
O[P] = Attributes.value;
|
557
|
+
Attributes = {
|
558
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
559
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
560
|
+
writable: false
|
561
|
+
};
|
562
|
+
}
|
563
|
+
} return $defineProperty(O, P, Attributes);
|
564
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
565
|
+
anObject(O);
|
566
|
+
P = toPropertyKey(P);
|
323
567
|
anObject(Attributes);
|
324
568
|
if (ie8DomDefine) try {
|
325
569
|
return $defineProperty(O, P, Attributes);
|
326
570
|
} catch (error) { /* empty */ }
|
327
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
571
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$3('Accessors not supported');
|
328
572
|
if ('value' in Attributes) O[P] = Attributes.value;
|
329
573
|
return O;
|
330
574
|
};
|
331
575
|
|
332
576
|
var objectDefineProperty = {
|
333
|
-
f: f$
|
577
|
+
f: f$3
|
334
578
|
};
|
335
579
|
|
336
580
|
var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
@@ -340,25 +584,27 @@
|
|
340
584
|
return object;
|
341
585
|
};
|
342
586
|
|
343
|
-
var
|
344
|
-
|
345
|
-
|
346
|
-
} catch (error) {
|
347
|
-
global_1[key] = value;
|
348
|
-
} return value;
|
349
|
-
};
|
587
|
+
var FunctionPrototype = Function.prototype;
|
588
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
589
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
350
590
|
|
351
|
-
var
|
352
|
-
|
591
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype, 'name');
|
592
|
+
// additional protection from minified / mangled / dropped function names
|
593
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
594
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
|
353
595
|
|
354
|
-
var
|
596
|
+
var functionName = {
|
597
|
+
EXISTS: EXISTS,
|
598
|
+
PROPER: PROPER,
|
599
|
+
CONFIGURABLE: CONFIGURABLE
|
600
|
+
};
|
355
601
|
|
356
|
-
var functionToString = Function.toString;
|
602
|
+
var functionToString = functionUncurryThis(Function.toString);
|
357
603
|
|
358
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
359
|
-
if (
|
604
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
605
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
360
606
|
sharedStore.inspectSource = function (it) {
|
361
|
-
return functionToString
|
607
|
+
return functionToString(it);
|
362
608
|
};
|
363
609
|
}
|
364
610
|
|
@@ -366,24 +612,7 @@
|
|
366
612
|
|
367
613
|
var WeakMap$1 = global_1.WeakMap;
|
368
614
|
|
369
|
-
var nativeWeakMap =
|
370
|
-
|
371
|
-
var shared = createCommonjsModule(function (module) {
|
372
|
-
(module.exports = function (key, value) {
|
373
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
374
|
-
})('versions', []).push({
|
375
|
-
version: '3.10.1',
|
376
|
-
mode: 'global',
|
377
|
-
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
378
|
-
});
|
379
|
-
});
|
380
|
-
|
381
|
-
var id = 0;
|
382
|
-
var postfix = Math.random();
|
383
|
-
|
384
|
-
var uid = function (key) {
|
385
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
386
|
-
};
|
615
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
387
616
|
|
388
617
|
var keys = shared('keys');
|
389
618
|
|
@@ -393,6 +622,8 @@
|
|
393
622
|
|
394
623
|
var hiddenKeys$1 = {};
|
395
624
|
|
625
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
626
|
+
var TypeError$2 = global_1.TypeError;
|
396
627
|
var WeakMap = global_1.WeakMap;
|
397
628
|
var set, get, has;
|
398
629
|
|
@@ -404,40 +635,42 @@
|
|
404
635
|
return function (it) {
|
405
636
|
var state;
|
406
637
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
407
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
638
|
+
throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
408
639
|
} return state;
|
409
640
|
};
|
410
641
|
};
|
411
642
|
|
412
|
-
if (nativeWeakMap) {
|
643
|
+
if (nativeWeakMap || sharedStore.state) {
|
413
644
|
var store = sharedStore.state || (sharedStore.state = new WeakMap());
|
414
|
-
var wmget = store.get;
|
415
|
-
var wmhas = store.has;
|
416
|
-
var wmset = store.set;
|
645
|
+
var wmget = functionUncurryThis(store.get);
|
646
|
+
var wmhas = functionUncurryThis(store.has);
|
647
|
+
var wmset = functionUncurryThis(store.set);
|
417
648
|
set = function (it, metadata) {
|
649
|
+
if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
418
650
|
metadata.facade = it;
|
419
|
-
wmset
|
651
|
+
wmset(store, it, metadata);
|
420
652
|
return metadata;
|
421
653
|
};
|
422
654
|
get = function (it) {
|
423
|
-
return wmget
|
655
|
+
return wmget(store, it) || {};
|
424
656
|
};
|
425
657
|
has = function (it) {
|
426
|
-
return wmhas
|
658
|
+
return wmhas(store, it);
|
427
659
|
};
|
428
660
|
} else {
|
429
661
|
var STATE = sharedKey('state');
|
430
662
|
hiddenKeys$1[STATE] = true;
|
431
663
|
set = function (it, metadata) {
|
664
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
432
665
|
metadata.facade = it;
|
433
666
|
createNonEnumerableProperty(it, STATE, metadata);
|
434
667
|
return metadata;
|
435
668
|
};
|
436
669
|
get = function (it) {
|
437
|
-
return
|
670
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
438
671
|
};
|
439
672
|
has = function (it) {
|
440
|
-
return
|
673
|
+
return hasOwnProperty_1(it, STATE);
|
441
674
|
};
|
442
675
|
}
|
443
676
|
|
@@ -449,29 +682,56 @@
|
|
449
682
|
getterFor: getterFor
|
450
683
|
};
|
451
684
|
|
452
|
-
var
|
453
|
-
var
|
685
|
+
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
686
|
+
var defineProperty = objectDefineProperty.f;
|
687
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
688
|
+
|
689
|
+
|
690
|
+
|
454
691
|
var enforceInternalState = internalState.enforce;
|
692
|
+
var getInternalState = internalState.get;
|
693
|
+
|
694
|
+
var CONFIGURABLE_LENGTH = !fails(function () {
|
695
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
696
|
+
});
|
697
|
+
|
455
698
|
var TEMPLATE = String(String).split('String');
|
456
699
|
|
457
|
-
|
700
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
701
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
702
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
703
|
+
}
|
704
|
+
if (options && options.getter) name = 'get ' + name;
|
705
|
+
if (options && options.setter) name = 'set ' + name;
|
706
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
707
|
+
defineProperty(value, 'name', { value: name, configurable: true });
|
708
|
+
}
|
709
|
+
if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
|
710
|
+
defineProperty(value, 'length', { value: options.arity });
|
711
|
+
}
|
712
|
+
var state = enforceInternalState(value);
|
713
|
+
if (!hasOwnProperty_1(state, 'source')) {
|
714
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
715
|
+
} return value;
|
716
|
+
};
|
717
|
+
|
718
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
719
|
+
// eslint-disable-next-line no-extend-native -- required
|
720
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
721
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
722
|
+
}, 'toString');
|
723
|
+
});
|
724
|
+
|
725
|
+
var defineBuiltIn = function (O, key, value, options) {
|
458
726
|
var unsafe = options ? !!options.unsafe : false;
|
459
727
|
var simple = options ? !!options.enumerable : false;
|
460
728
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
461
|
-
var
|
462
|
-
if (
|
463
|
-
if (typeof key == 'string' && !has$1(value, 'name')) {
|
464
|
-
createNonEnumerableProperty(value, 'name', key);
|
465
|
-
}
|
466
|
-
state = enforceInternalState(value);
|
467
|
-
if (!state.source) {
|
468
|
-
state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
469
|
-
}
|
470
|
-
}
|
729
|
+
var name = options && options.name !== undefined ? options.name : key;
|
730
|
+
if (isCallable(value)) makeBuiltIn_1(value, name, options);
|
471
731
|
if (O === global_1) {
|
472
732
|
if (simple) O[key] = value;
|
473
733
|
else setGlobal(key, value);
|
474
|
-
return;
|
734
|
+
return O;
|
475
735
|
} else if (!unsafe) {
|
476
736
|
delete O[key];
|
477
737
|
} else if (!noTargetGet && O[key]) {
|
@@ -479,56 +739,50 @@
|
|
479
739
|
}
|
480
740
|
if (simple) O[key] = value;
|
481
741
|
else createNonEnumerableProperty(O, key, value);
|
482
|
-
|
483
|
-
})(Function.prototype, 'toString', function toString() {
|
484
|
-
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
485
|
-
});
|
486
|
-
});
|
487
|
-
|
488
|
-
var path = global_1;
|
489
|
-
|
490
|
-
var aFunction$1 = function (variable) {
|
491
|
-
return typeof variable == 'function' ? variable : undefined;
|
492
|
-
};
|
493
|
-
|
494
|
-
var getBuiltIn = function (namespace, method) {
|
495
|
-
return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global_1[namespace])
|
496
|
-
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
|
742
|
+
return O;
|
497
743
|
};
|
498
744
|
|
499
745
|
var ceil = Math.ceil;
|
500
746
|
var floor = Math.floor;
|
501
747
|
|
502
|
-
// `
|
503
|
-
// https://tc39.es/ecma262/#sec-
|
504
|
-
var
|
505
|
-
|
748
|
+
// `ToIntegerOrInfinity` abstract operation
|
749
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
750
|
+
var toIntegerOrInfinity = function (argument) {
|
751
|
+
var number = +argument;
|
752
|
+
// eslint-disable-next-line no-self-compare -- safe
|
753
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
|
506
754
|
};
|
507
755
|
|
756
|
+
var max = Math.max;
|
508
757
|
var min$1 = Math.min;
|
509
758
|
|
759
|
+
// Helper for a popular repeating case of the spec:
|
760
|
+
// Let integer be ? ToInteger(index).
|
761
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
762
|
+
var toAbsoluteIndex = function (index, length) {
|
763
|
+
var integer = toIntegerOrInfinity(index);
|
764
|
+
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
765
|
+
};
|
766
|
+
|
767
|
+
var min = Math.min;
|
768
|
+
|
510
769
|
// `ToLength` abstract operation
|
511
770
|
// https://tc39.es/ecma262/#sec-tolength
|
512
771
|
var toLength = function (argument) {
|
513
|
-
return argument > 0 ? min
|
772
|
+
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
514
773
|
};
|
515
774
|
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
// Let integer be ? ToInteger(index).
|
521
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
522
|
-
var toAbsoluteIndex = function (index, length) {
|
523
|
-
var integer = toInteger(index);
|
524
|
-
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
775
|
+
// `LengthOfArrayLike` abstract operation
|
776
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
777
|
+
var lengthOfArrayLike = function (obj) {
|
778
|
+
return toLength(obj.length);
|
525
779
|
};
|
526
780
|
|
527
781
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
528
782
|
var createMethod$2 = function (IS_INCLUDES) {
|
529
783
|
return function ($this, el, fromIndex) {
|
530
784
|
var O = toIndexedObject($this);
|
531
|
-
var length =
|
785
|
+
var length = lengthOfArrayLike(O);
|
532
786
|
var index = toAbsoluteIndex(fromIndex, length);
|
533
787
|
var value;
|
534
788
|
// Array#includes uses SameValueZero equality algorithm
|
@@ -556,15 +810,17 @@
|
|
556
810
|
var indexOf = arrayIncludes.indexOf;
|
557
811
|
|
558
812
|
|
813
|
+
var push$1 = functionUncurryThis([].push);
|
814
|
+
|
559
815
|
var objectKeysInternal = function (object, names) {
|
560
816
|
var O = toIndexedObject(object);
|
561
817
|
var i = 0;
|
562
818
|
var result = [];
|
563
819
|
var key;
|
564
|
-
for (key in O) !
|
820
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$1(result, key);
|
565
821
|
// Don't enum bug & hidden keys
|
566
|
-
while (names.length > i) if (
|
567
|
-
~indexOf(result, key) ||
|
822
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
823
|
+
~indexOf(result, key) || push$1(result, key);
|
568
824
|
}
|
569
825
|
return result;
|
570
826
|
};
|
@@ -584,36 +840,40 @@
|
|
584
840
|
|
585
841
|
// `Object.getOwnPropertyNames` method
|
586
842
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
587
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
588
|
-
var f$
|
843
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
844
|
+
var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
589
845
|
return objectKeysInternal(O, hiddenKeys);
|
590
846
|
};
|
591
847
|
|
592
848
|
var objectGetOwnPropertyNames = {
|
593
|
-
f: f$
|
849
|
+
f: f$2
|
594
850
|
};
|
595
851
|
|
596
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
597
|
-
var f = Object.getOwnPropertySymbols;
|
852
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
853
|
+
var f$1 = Object.getOwnPropertySymbols;
|
598
854
|
|
599
855
|
var objectGetOwnPropertySymbols = {
|
600
|
-
f: f
|
856
|
+
f: f$1
|
601
857
|
};
|
602
858
|
|
859
|
+
var concat = functionUncurryThis([].concat);
|
860
|
+
|
603
861
|
// all object keys, includes non-enumerable and symbols
|
604
862
|
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
605
863
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
606
864
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
607
|
-
return getOwnPropertySymbols ?
|
865
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
608
866
|
};
|
609
867
|
|
610
|
-
var copyConstructorProperties = function (target, source) {
|
868
|
+
var copyConstructorProperties = function (target, source, exceptions) {
|
611
869
|
var keys = ownKeys(source);
|
612
870
|
var defineProperty = objectDefineProperty.f;
|
613
871
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
614
872
|
for (var i = 0; i < keys.length; i++) {
|
615
873
|
var key = keys[i];
|
616
|
-
if (!
|
874
|
+
if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
|
875
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
876
|
+
}
|
617
877
|
}
|
618
878
|
};
|
619
879
|
|
@@ -623,7 +883,7 @@
|
|
623
883
|
var value = data[normalize(feature)];
|
624
884
|
return value == POLYFILL ? true
|
625
885
|
: value == NATIVE ? false
|
626
|
-
:
|
886
|
+
: isCallable(detection) ? fails(detection)
|
627
887
|
: !!detection;
|
628
888
|
};
|
629
889
|
|
@@ -657,6 +917,7 @@
|
|
657
917
|
options.sham - add a flag to not completely full polyfills
|
658
918
|
options.enumerable - export as enumerable property
|
659
919
|
options.noTargetGet - prevent calling a getter on target
|
920
|
+
options.name - the .name of the function if it does not match the key
|
660
921
|
*/
|
661
922
|
var _export = function (options, source) {
|
662
923
|
var TARGET = options.target;
|
@@ -679,148 +940,155 @@
|
|
679
940
|
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
680
941
|
// contained in target
|
681
942
|
if (!FORCED && targetProperty !== undefined) {
|
682
|
-
if (typeof sourceProperty
|
943
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
683
944
|
copyConstructorProperties(sourceProperty, targetProperty);
|
684
945
|
}
|
685
946
|
// add a flag to not completely full polyfills
|
686
947
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
687
948
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
688
949
|
}
|
689
|
-
|
690
|
-
redefine(target, key, sourceProperty, options);
|
950
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
691
951
|
}
|
692
952
|
};
|
693
953
|
|
694
|
-
var
|
695
|
-
if (typeof it != 'function') {
|
696
|
-
throw TypeError(String(it) + ' is not a function');
|
697
|
-
} return it;
|
698
|
-
};
|
954
|
+
var bind = functionUncurryThis(functionUncurryThis.bind);
|
699
955
|
|
700
956
|
// optional / simple context binding
|
701
|
-
var functionBindContext = function (fn, that
|
702
|
-
|
703
|
-
|
704
|
-
switch (length) {
|
705
|
-
case 0: return function () {
|
706
|
-
return fn.call(that);
|
707
|
-
};
|
708
|
-
case 1: return function (a) {
|
709
|
-
return fn.call(that, a);
|
710
|
-
};
|
711
|
-
case 2: return function (a, b) {
|
712
|
-
return fn.call(that, a, b);
|
713
|
-
};
|
714
|
-
case 3: return function (a, b, c) {
|
715
|
-
return fn.call(that, a, b, c);
|
716
|
-
};
|
717
|
-
}
|
718
|
-
return function (/* ...args */) {
|
957
|
+
var functionBindContext = function (fn, that) {
|
958
|
+
aCallable(fn);
|
959
|
+
return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) {
|
719
960
|
return fn.apply(that, arguments);
|
720
961
|
};
|
721
962
|
};
|
722
963
|
|
723
|
-
// `ToObject` abstract operation
|
724
|
-
// https://tc39.es/ecma262/#sec-toobject
|
725
|
-
var toObject = function (argument) {
|
726
|
-
return Object(requireObjectCoercible(argument));
|
727
|
-
};
|
728
|
-
|
729
964
|
// `IsArray` abstract operation
|
730
965
|
// https://tc39.es/ecma262/#sec-isarray
|
731
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
732
|
-
var isArray = Array.isArray || function isArray(
|
733
|
-
return classofRaw(
|
966
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
967
|
+
var isArray = Array.isArray || function isArray(argument) {
|
968
|
+
return classofRaw(argument) == 'Array';
|
734
969
|
};
|
735
970
|
|
736
|
-
var
|
971
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
972
|
+
var test$1 = {};
|
737
973
|
|
738
|
-
|
974
|
+
test$1[TO_STRING_TAG$1] = 'z';
|
739
975
|
|
740
|
-
var
|
741
|
-
var versions = process && process.versions;
|
742
|
-
var v8 = versions && versions.v8;
|
743
|
-
var match, version;
|
976
|
+
var toStringTagSupport = String(test$1) === '[object z]';
|
744
977
|
|
745
|
-
|
746
|
-
|
747
|
-
version = match[0] + match[1];
|
748
|
-
} else if (engineUserAgent) {
|
749
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
750
|
-
if (!match || match[1] >= 74) {
|
751
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
752
|
-
if (match) version = match[1];
|
753
|
-
}
|
754
|
-
}
|
978
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
979
|
+
var Object$1 = global_1.Object;
|
755
980
|
|
756
|
-
|
981
|
+
// ES3 wrong here
|
982
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
757
983
|
|
758
|
-
//
|
759
|
-
var
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
|
765
|
-
});
|
984
|
+
// fallback for IE11 Script Access Denied error
|
985
|
+
var tryGet = function (it, key) {
|
986
|
+
try {
|
987
|
+
return it[key];
|
988
|
+
} catch (error) { /* empty */ }
|
989
|
+
};
|
766
990
|
|
767
|
-
|
991
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
992
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
993
|
+
var O, tag, result;
|
994
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
995
|
+
// @@toStringTag case
|
996
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
997
|
+
// builtinTag case
|
998
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
999
|
+
// ES3 arguments fallback
|
1000
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
1001
|
+
};
|
768
1002
|
|
1003
|
+
var noop = function () { /* empty */ };
|
1004
|
+
var empty = [];
|
1005
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
1006
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
1007
|
+
var exec$1 = functionUncurryThis(constructorRegExp.exec);
|
1008
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
769
1009
|
|
770
|
-
var
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
1010
|
+
var isConstructorModern = function isConstructor(argument) {
|
1011
|
+
if (!isCallable(argument)) return false;
|
1012
|
+
try {
|
1013
|
+
construct(noop, empty, argument);
|
1014
|
+
return true;
|
1015
|
+
} catch (error) {
|
1016
|
+
return false;
|
1017
|
+
}
|
1018
|
+
};
|
777
1019
|
|
778
|
-
var
|
779
|
-
if (!
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
1020
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
1021
|
+
if (!isCallable(argument)) return false;
|
1022
|
+
switch (classof(argument)) {
|
1023
|
+
case 'AsyncFunction':
|
1024
|
+
case 'GeneratorFunction':
|
1025
|
+
case 'AsyncGeneratorFunction': return false;
|
1026
|
+
}
|
1027
|
+
try {
|
1028
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
1029
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
1030
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
1031
|
+
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
|
1032
|
+
} catch (error) {
|
1033
|
+
return true;
|
1034
|
+
}
|
786
1035
|
};
|
787
1036
|
|
1037
|
+
isConstructorLegacy.sham = true;
|
1038
|
+
|
1039
|
+
// `IsConstructor` abstract operation
|
1040
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
1041
|
+
var isConstructor = !construct || fails(function () {
|
1042
|
+
var called;
|
1043
|
+
return isConstructorModern(isConstructorModern.call)
|
1044
|
+
|| !isConstructorModern(Object)
|
1045
|
+
|| !isConstructorModern(function () { called = true; })
|
1046
|
+
|| called;
|
1047
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
1048
|
+
|
788
1049
|
var SPECIES$1 = wellKnownSymbol('species');
|
1050
|
+
var Array$1 = global_1.Array;
|
789
1051
|
|
790
|
-
// `ArraySpeciesCreate` abstract operation
|
1052
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
791
1053
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
792
|
-
var
|
1054
|
+
var arraySpeciesConstructor = function (originalArray) {
|
793
1055
|
var C;
|
794
1056
|
if (isArray(originalArray)) {
|
795
1057
|
C = originalArray.constructor;
|
796
1058
|
// cross-realm fallback
|
797
|
-
if (
|
1059
|
+
if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
|
798
1060
|
else if (isObject(C)) {
|
799
1061
|
C = C[SPECIES$1];
|
800
1062
|
if (C === null) C = undefined;
|
801
1063
|
}
|
802
|
-
} return
|
1064
|
+
} return C === undefined ? Array$1 : C;
|
803
1065
|
};
|
804
1066
|
|
805
|
-
|
1067
|
+
// `ArraySpeciesCreate` abstract operation
|
1068
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1069
|
+
var arraySpeciesCreate = function (originalArray, length) {
|
1070
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
1071
|
+
};
|
1072
|
+
|
1073
|
+
var push = functionUncurryThis([].push);
|
806
1074
|
|
807
|
-
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex,
|
1075
|
+
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
808
1076
|
var createMethod$1 = function (TYPE) {
|
809
1077
|
var IS_MAP = TYPE == 1;
|
810
1078
|
var IS_FILTER = TYPE == 2;
|
811
1079
|
var IS_SOME = TYPE == 3;
|
812
1080
|
var IS_EVERY = TYPE == 4;
|
813
1081
|
var IS_FIND_INDEX = TYPE == 6;
|
814
|
-
var
|
1082
|
+
var IS_FILTER_REJECT = TYPE == 7;
|
815
1083
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
816
1084
|
return function ($this, callbackfn, that, specificCreate) {
|
817
1085
|
var O = toObject($this);
|
818
1086
|
var self = indexedObject(O);
|
819
|
-
var boundFunction = functionBindContext(callbackfn, that
|
820
|
-
var length =
|
1087
|
+
var boundFunction = functionBindContext(callbackfn, that);
|
1088
|
+
var length = lengthOfArrayLike(self);
|
821
1089
|
var index = 0;
|
822
1090
|
var create = specificCreate || arraySpeciesCreate;
|
823
|
-
var target = IS_MAP ? create($this, length) : IS_FILTER ||
|
1091
|
+
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
824
1092
|
var value, result;
|
825
1093
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
826
1094
|
value = self[index];
|
@@ -831,10 +1099,10 @@
|
|
831
1099
|
case 3: return true; // some
|
832
1100
|
case 5: return value; // find
|
833
1101
|
case 6: return index; // findIndex
|
834
|
-
case 2: push
|
1102
|
+
case 2: push(target, value); // filter
|
835
1103
|
} else switch (TYPE) {
|
836
1104
|
case 4: return false; // every
|
837
|
-
case 7: push
|
1105
|
+
case 7: push(target, value); // filterReject
|
838
1106
|
}
|
839
1107
|
}
|
840
1108
|
}
|
@@ -864,33 +1132,47 @@
|
|
864
1132
|
// `Array.prototype.findIndex` method
|
865
1133
|
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
866
1134
|
findIndex: createMethod$1(6),
|
867
|
-
// `Array.prototype.
|
1135
|
+
// `Array.prototype.filterReject` method
|
868
1136
|
// https://github.com/tc39/proposal-array-filtering
|
869
|
-
|
1137
|
+
filterReject: createMethod$1(7)
|
870
1138
|
};
|
871
1139
|
|
872
1140
|
// `Object.keys` method
|
873
1141
|
// https://tc39.es/ecma262/#sec-object.keys
|
874
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
1142
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
875
1143
|
var objectKeys = Object.keys || function keys(O) {
|
876
1144
|
return objectKeysInternal(O, enumBugKeys);
|
877
1145
|
};
|
878
1146
|
|
879
1147
|
// `Object.defineProperties` method
|
880
1148
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
881
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
882
|
-
var
|
1149
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
1150
|
+
var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
883
1151
|
anObject(O);
|
1152
|
+
var props = toIndexedObject(Properties);
|
884
1153
|
var keys = objectKeys(Properties);
|
885
1154
|
var length = keys.length;
|
886
1155
|
var index = 0;
|
887
1156
|
var key;
|
888
|
-
while (length > index) objectDefineProperty.f(O, key = keys[index++],
|
1157
|
+
while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
|
889
1158
|
return O;
|
890
1159
|
};
|
891
1160
|
|
1161
|
+
var objectDefineProperties = {
|
1162
|
+
f: f
|
1163
|
+
};
|
1164
|
+
|
892
1165
|
var html = getBuiltIn('document', 'documentElement');
|
893
1166
|
|
1167
|
+
/* global ActiveXObject -- old IE, WSH */
|
1168
|
+
|
1169
|
+
|
1170
|
+
|
1171
|
+
|
1172
|
+
|
1173
|
+
|
1174
|
+
|
1175
|
+
|
894
1176
|
var GT = '>';
|
895
1177
|
var LT = '<';
|
896
1178
|
var PROTOTYPE = 'prototype';
|
@@ -937,10 +1219,13 @@
|
|
937
1219
|
var activeXDocument;
|
938
1220
|
var NullProtoObject = function () {
|
939
1221
|
try {
|
940
|
-
|
941
|
-
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
1222
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
942
1223
|
} catch (error) { /* ignore */ }
|
943
|
-
NullProtoObject =
|
1224
|
+
NullProtoObject = typeof document != 'undefined'
|
1225
|
+
? document.domain && activeXDocument
|
1226
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
1227
|
+
: NullProtoObjectViaIFrame()
|
1228
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
944
1229
|
var length = enumBugKeys.length;
|
945
1230
|
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
946
1231
|
return NullProtoObject();
|
@@ -950,6 +1235,7 @@
|
|
950
1235
|
|
951
1236
|
// `Object.create` method
|
952
1237
|
// https://tc39.es/ecma262/#sec-object.create
|
1238
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
953
1239
|
var objectCreate = Object.create || function create(O, Properties) {
|
954
1240
|
var result;
|
955
1241
|
if (O !== null) {
|
@@ -959,7 +1245,7 @@
|
|
959
1245
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
960
1246
|
result[IE_PROTO] = O;
|
961
1247
|
} else result = NullProtoObject();
|
962
|
-
return Properties === undefined ? result : objectDefineProperties(result, Properties);
|
1248
|
+
return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
|
963
1249
|
};
|
964
1250
|
|
965
1251
|
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
@@ -999,8 +1285,20 @@
|
|
999
1285
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
1000
1286
|
addToUnscopables(FIND);
|
1001
1287
|
|
1288
|
+
// `Object.prototype.toString` method implementation
|
1289
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1290
|
+
var objectToString = toStringTagSupport ? {}.toString : function toString() {
|
1291
|
+
return '[object ' + classof(this) + ']';
|
1292
|
+
};
|
1293
|
+
|
1294
|
+
// `Object.prototype.toString` method
|
1295
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1296
|
+
if (!toStringTagSupport) {
|
1297
|
+
defineBuiltIn(Object.prototype, 'toString', objectToString, { unsafe: true });
|
1298
|
+
}
|
1299
|
+
|
1002
1300
|
var createProperty = function (object, key, value) {
|
1003
|
-
var propertyKey =
|
1301
|
+
var propertyKey = toPropertyKey(key);
|
1004
1302
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
1005
1303
|
else object[propertyKey] = value;
|
1006
1304
|
};
|
@@ -1024,6 +1322,7 @@
|
|
1024
1322
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
1025
1323
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
1026
1324
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1325
|
+
var TypeError$1 = global_1.TypeError;
|
1027
1326
|
|
1028
1327
|
// We can't use this feature detection in V8 since it causes
|
1029
1328
|
// deoptimization and serious performance degradation
|
@@ -1047,7 +1346,7 @@
|
|
1047
1346
|
// `Array.prototype.concat` method
|
1048
1347
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
1049
1348
|
// with adding support of @@isConcatSpreadable and @@species
|
1050
|
-
_export({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
1349
|
+
_export({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
|
1051
1350
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
1052
1351
|
concat: function concat(arg) {
|
1053
1352
|
var O = toObject(this);
|
@@ -1057,11 +1356,11 @@
|
|
1057
1356
|
for (i = -1, length = arguments.length; i < length; i++) {
|
1058
1357
|
E = i === -1 ? O : arguments[i];
|
1059
1358
|
if (isConcatSpreadable(E)) {
|
1060
|
-
len =
|
1061
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1359
|
+
len = lengthOfArrayLike(E);
|
1360
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1062
1361
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
1063
1362
|
} else {
|
1064
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1363
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1065
1364
|
createProperty(A, n++, E);
|
1066
1365
|
}
|
1067
1366
|
}
|
@@ -1070,7 +1369,7 @@
|
|
1070
1369
|
}
|
1071
1370
|
});
|
1072
1371
|
|
1073
|
-
var
|
1372
|
+
var un$Reverse = functionUncurryThis([].reverse);
|
1074
1373
|
var test = [1, 2];
|
1075
1374
|
|
1076
1375
|
// `Array.prototype.reverse` method
|
@@ -1081,14 +1380,22 @@
|
|
1081
1380
|
reverse: function reverse() {
|
1082
1381
|
// eslint-disable-next-line no-self-assign -- dirty hack
|
1083
1382
|
if (isArray(this)) this.length = this.length;
|
1084
|
-
return
|
1383
|
+
return un$Reverse(this);
|
1085
1384
|
}
|
1086
1385
|
});
|
1087
1386
|
|
1387
|
+
var String$1 = global_1.String;
|
1388
|
+
|
1389
|
+
var toString_1 = function (argument) {
|
1390
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
1391
|
+
return String$1(argument);
|
1392
|
+
};
|
1393
|
+
|
1088
1394
|
// a string of all valid unicode whitespaces
|
1089
1395
|
var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
1090
1396
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
1091
1397
|
|
1398
|
+
var replace = functionUncurryThis(''.replace);
|
1092
1399
|
var whitespace = '[' + whitespaces + ']';
|
1093
1400
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
1094
1401
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
@@ -1096,9 +1403,9 @@
|
|
1096
1403
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
1097
1404
|
var createMethod = function (TYPE) {
|
1098
1405
|
return function ($this) {
|
1099
|
-
var string =
|
1100
|
-
if (TYPE & 1) string =
|
1101
|
-
if (TYPE & 2) string =
|
1406
|
+
var string = toString_1(requireObjectCoercible($this));
|
1407
|
+
if (TYPE & 1) string = replace(string, ltrim, '');
|
1408
|
+
if (TYPE & 2) string = replace(string, rtrim, '');
|
1102
1409
|
return string;
|
1103
1410
|
};
|
1104
1411
|
};
|
@@ -1119,14 +1426,19 @@
|
|
1119
1426
|
|
1120
1427
|
|
1121
1428
|
var $parseInt = global_1.parseInt;
|
1122
|
-
var
|
1123
|
-
var
|
1429
|
+
var Symbol$1 = global_1.Symbol;
|
1430
|
+
var ITERATOR = Symbol$1 && Symbol$1.iterator;
|
1431
|
+
var hex = /^[+-]?0x/i;
|
1432
|
+
var exec = functionUncurryThis(hex.exec);
|
1433
|
+
var FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22
|
1434
|
+
// MS Edge 18- broken with boxed symbols
|
1435
|
+
|| (ITERATOR && !fails(function () { $parseInt(Object(ITERATOR)); }));
|
1124
1436
|
|
1125
1437
|
// `parseInt` method
|
1126
1438
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
1127
1439
|
var numberParseInt = FORCED ? function parseInt(string, radix) {
|
1128
|
-
var S = trim(
|
1129
|
-
return $parseInt(S, (radix >>> 0) || (hex
|
1440
|
+
var S = trim(toString_1(string));
|
1441
|
+
return $parseInt(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
|
1130
1442
|
} : $parseInt;
|
1131
1443
|
|
1132
1444
|
// `parseInt` method
|
@@ -1138,29 +1450,31 @@
|
|
1138
1450
|
var arrayMethodIsStrict = function (METHOD_NAME, argument) {
|
1139
1451
|
var method = [][METHOD_NAME];
|
1140
1452
|
return !!method && fails(function () {
|
1141
|
-
// eslint-disable-next-line no-useless-call
|
1142
|
-
method.call(null, argument || function () {
|
1453
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
1454
|
+
method.call(null, argument || function () { return 1; }, 1);
|
1143
1455
|
});
|
1144
1456
|
};
|
1145
1457
|
|
1146
|
-
/* eslint-disable es/no-array-prototype-indexof -- required for testing */
|
1458
|
+
/* eslint-disable es-x/no-array-prototype-indexof -- required for testing */
|
1459
|
+
|
1147
1460
|
|
1148
|
-
var $
|
1461
|
+
var $IndexOf = arrayIncludes.indexOf;
|
1149
1462
|
|
1150
1463
|
|
1151
|
-
var
|
1464
|
+
var un$IndexOf = functionUncurryThis([].indexOf);
|
1152
1465
|
|
1153
|
-
var NEGATIVE_ZERO = !!
|
1466
|
+
var NEGATIVE_ZERO = !!un$IndexOf && 1 / un$IndexOf([1], 1, -0) < 0;
|
1154
1467
|
var STRICT_METHOD = arrayMethodIsStrict('indexOf');
|
1155
1468
|
|
1156
1469
|
// `Array.prototype.indexOf` method
|
1157
1470
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
1158
1471
|
_export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, {
|
1159
1472
|
indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
|
1473
|
+
var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
|
1160
1474
|
return NEGATIVE_ZERO
|
1161
1475
|
// convert -0 to +0
|
1162
|
-
?
|
1163
|
-
: $
|
1476
|
+
? un$IndexOf(this, searchElement, fromIndex) || 0
|
1477
|
+
: $IndexOf(this, searchElement, fromIndex);
|
1164
1478
|
}
|
1165
1479
|
});
|
1166
1480
|
|
@@ -1168,7 +1482,7 @@
|
|
1168
1482
|
* @author zhixin wen <wenzhixin2010@gmail.com>
|
1169
1483
|
*/
|
1170
1484
|
|
1171
|
-
var Utils = $__default[
|
1485
|
+
var Utils = $__default["default"].fn.bootstrapTable.utils; // Reasonable defaults
|
1172
1486
|
|
1173
1487
|
var PIXEL_STEP = 10;
|
1174
1488
|
var LINE_HEIGHT = 40;
|
@@ -1246,13 +1560,13 @@
|
|
1246
1560
|
};
|
1247
1561
|
}
|
1248
1562
|
|
1249
|
-
$__default[
|
1563
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
|
1250
1564
|
fixedColumns: false,
|
1251
1565
|
fixedNumber: 0,
|
1252
1566
|
fixedRightNumber: 0
|
1253
1567
|
});
|
1254
1568
|
|
1255
|
-
$__default[
|
1569
|
+
$__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
|
1256
1570
|
_inherits(_class, _$$BootstrapTable);
|
1257
1571
|
|
1258
1572
|
var _super = _createSuper(_class);
|
@@ -1356,13 +1670,13 @@
|
|
1356
1670
|
}
|
1357
1671
|
|
1358
1672
|
this.$tableBody.find('tr').each(function (i, el) {
|
1359
|
-
var $el = $__default[
|
1673
|
+
var $el = $__default["default"](el);
|
1360
1674
|
var index = $el.data('index');
|
1361
1675
|
var classes = $el.attr('class');
|
1362
1676
|
var inputSelector = "[name=\"".concat(_this.options.selectItemName, "\"]");
|
1363
1677
|
var $input = $el.find(inputSelector);
|
1364
1678
|
|
1365
|
-
if (
|
1679
|
+
if (typeof index === 'undefined') {
|
1366
1680
|
return;
|
1367
1681
|
}
|
1368
1682
|
|
@@ -1498,7 +1812,7 @@
|
|
1498
1812
|
var _this4 = this;
|
1499
1813
|
|
1500
1814
|
var toggleHover = function toggleHover(e, toggle) {
|
1501
|
-
var tr = "tr[data-index=\"".concat($__default[
|
1815
|
+
var tr = "tr[data-index=\"".concat($__default["default"](e.currentTarget).data('index'), "\"]");
|
1502
1816
|
|
1503
1817
|
var $trs = _this4.$tableBody.find(tr);
|
1504
1818
|
|
@@ -1510,7 +1824,7 @@
|
|
1510
1824
|
$trs = $trs.add(_this4.$fixedBodyRight.find(tr));
|
1511
1825
|
}
|
1512
1826
|
|
1513
|
-
$trs.css('background-color', toggle ? $__default[
|
1827
|
+
$trs.css('background-color', toggle ? $__default["default"](e.currentTarget).css('background-color') : '');
|
1514
1828
|
};
|
1515
1829
|
|
1516
1830
|
this.$tableBody.find('tr').hover(function (e) {
|
@@ -1570,8 +1884,8 @@
|
|
1570
1884
|
}
|
1571
1885
|
|
1572
1886
|
if (this.options.filterControl) {
|
1573
|
-
$__default[
|
1574
|
-
var $target = $__default[
|
1887
|
+
$__default["default"](this.$fixedColumns).off('keyup change').on('keyup change', function (e) {
|
1888
|
+
var $target = $__default["default"](e.target);
|
1575
1889
|
var value = $target.val();
|
1576
1890
|
var field = $target.parents('th').data('field');
|
1577
1891
|
|
@@ -1622,6 +1936,6 @@
|
|
1622
1936
|
}]);
|
1623
1937
|
|
1624
1938
|
return _class;
|
1625
|
-
}($__default[
|
1939
|
+
}($__default["default"].BootstrapTable);
|
1626
1940
|
|
1627
|
-
}))
|
1941
|
+
}));
|