UNPKG

61.2 kBJavaScriptView Raw
1(function (global, factory) {
2 typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3 typeof define === 'function' && define.amd ? define(factory) :
4 (global = global || self, global.BootstrapTable = factory());
5}(this, function () { 'use strict';
6
7 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
9 function createCommonjsModule(fn, module) {
10 return module = { exports: {} }, fn(module, module.exports), module.exports;
11 }
12
13 var O = 'object';
14 var check = function (it) {
15 return it && it.Math == Math && it;
16 };
17
18 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
19 var global_1 =
20 // eslint-disable-next-line no-undef
21 check(typeof globalThis == O && globalThis) ||
22 check(typeof window == O && window) ||
23 check(typeof self == O && self) ||
24 check(typeof commonjsGlobal == O && commonjsGlobal) ||
25 // eslint-disable-next-line no-new-func
26 Function('return this')();
27
28 var fails = function (exec) {
29 try {
30 return !!exec();
31 } catch (error) {
32 return true;
33 }
34 };
35
36 // Thank's IE8 for his funny defineProperty
37 var descriptors = !fails(function () {
38 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
39 });
40
41 var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
42 var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
43
44 // Nashorn ~ JDK8 bug
45 var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
46
47 // `Object.prototype.propertyIsEnumerable` method implementation
48 // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
49 var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
50 var descriptor = getOwnPropertyDescriptor(this, V);
51 return !!descriptor && descriptor.enumerable;
52 } : nativePropertyIsEnumerable;
53
54 var objectPropertyIsEnumerable = {
55 f: f
56 };
57
58 var createPropertyDescriptor = function (bitmap, value) {
59 return {
60 enumerable: !(bitmap & 1),
61 configurable: !(bitmap & 2),
62 writable: !(bitmap & 4),
63 value: value
64 };
65 };
66
67 var toString = {}.toString;
68
69 var classofRaw = function (it) {
70 return toString.call(it).slice(8, -1);
71 };
72
73 var split = ''.split;
74
75 // fallback for non-array-like ES3 and non-enumerable old V8 strings
76 var indexedObject = fails(function () {
77 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
78 // eslint-disable-next-line no-prototype-builtins
79 return !Object('z').propertyIsEnumerable(0);
80 }) ? function (it) {
81 return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
82 } : Object;
83
84 // `RequireObjectCoercible` abstract operation
85 // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
86 var requireObjectCoercible = function (it) {
87 if (it == undefined) throw TypeError("Can't call method on " + it);
88 return it;
89 };
90
91 // toObject with fallback for non-array-like ES3 strings
92
93
94
95 var toIndexedObject = function (it) {
96 return indexedObject(requireObjectCoercible(it));
97 };
98
99 var isObject = function (it) {
100 return typeof it === 'object' ? it !== null : typeof it === 'function';
101 };
102
103 // `ToPrimitive` abstract operation
104 // https://tc39.github.io/ecma262/#sec-toprimitive
105 // instead of the ES6 spec version, we didn't implement @@toPrimitive case
106 // and the second argument - flag - preferred type is a string
107 var toPrimitive = function (input, PREFERRED_STRING) {
108 if (!isObject(input)) return input;
109 var fn, val;
110 if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
111 if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
112 if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
113 throw TypeError("Can't convert object to primitive value");
114 };
115
116 var hasOwnProperty = {}.hasOwnProperty;
117
118 var has = function (it, key) {
119 return hasOwnProperty.call(it, key);
120 };
121
122 var document = global_1.document;
123 // typeof document.createElement is 'object' in old IE
124 var EXISTS = isObject(document) && isObject(document.createElement);
125
126 var documentCreateElement = function (it) {
127 return EXISTS ? document.createElement(it) : {};
128 };
129
130 // Thank's IE8 for his funny defineProperty
131 var ie8DomDefine = !descriptors && !fails(function () {
132 return Object.defineProperty(documentCreateElement('div'), 'a', {
133 get: function () { return 7; }
134 }).a != 7;
135 });
136
137 var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
138
139 // `Object.getOwnPropertyDescriptor` method
140 // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
141 var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
142 O = toIndexedObject(O);
143 P = toPrimitive(P, true);
144 if (ie8DomDefine) try {
145 return nativeGetOwnPropertyDescriptor(O, P);
146 } catch (error) { /* empty */ }
147 if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
148 };
149
150 var objectGetOwnPropertyDescriptor = {
151 f: f$1
152 };
153
154 var anObject = function (it) {
155 if (!isObject(it)) {
156 throw TypeError(String(it) + ' is not an object');
157 } return it;
158 };
159
160 var nativeDefineProperty = Object.defineProperty;
161
162 // `Object.defineProperty` method
163 // https://tc39.github.io/ecma262/#sec-object.defineproperty
164 var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
165 anObject(O);
166 P = toPrimitive(P, true);
167 anObject(Attributes);
168 if (ie8DomDefine) try {
169 return nativeDefineProperty(O, P, Attributes);
170 } catch (error) { /* empty */ }
171 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
172 if ('value' in Attributes) O[P] = Attributes.value;
173 return O;
174 };
175
176 var objectDefineProperty = {
177 f: f$2
178 };
179
180 var hide = descriptors ? function (object, key, value) {
181 return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
182 } : function (object, key, value) {
183 object[key] = value;
184 return object;
185 };
186
187 var setGlobal = function (key, value) {
188 try {
189 hide(global_1, key, value);
190 } catch (error) {
191 global_1[key] = value;
192 } return value;
193 };
194
195 var shared = createCommonjsModule(function (module) {
196 var SHARED = '__core-js_shared__';
197 var store = global_1[SHARED] || setGlobal(SHARED, {});
198
199 (module.exports = function (key, value) {
200 return store[key] || (store[key] = value !== undefined ? value : {});
201 })('versions', []).push({
202 version: '3.1.3',
203 mode: 'global',
204 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
205 });
206 });
207
208 var functionToString = shared('native-function-to-string', Function.toString);
209
210 var WeakMap = global_1.WeakMap;
211
212 var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(functionToString.call(WeakMap));
213
214 var id = 0;
215 var postfix = Math.random();
216
217 var uid = function (key) {
218 return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
219 };
220
221 var keys = shared('keys');
222
223 var sharedKey = function (key) {
224 return keys[key] || (keys[key] = uid(key));
225 };
226
227 var hiddenKeys = {};
228
229 var WeakMap$1 = global_1.WeakMap;
230 var set, get, has$1;
231
232 var enforce = function (it) {
233 return has$1(it) ? get(it) : set(it, {});
234 };
235
236 var getterFor = function (TYPE) {
237 return function (it) {
238 var state;
239 if (!isObject(it) || (state = get(it)).type !== TYPE) {
240 throw TypeError('Incompatible receiver, ' + TYPE + ' required');
241 } return state;
242 };
243 };
244
245 if (nativeWeakMap) {
246 var store = new WeakMap$1();
247 var wmget = store.get;
248 var wmhas = store.has;
249 var wmset = store.set;
250 set = function (it, metadata) {
251 wmset.call(store, it, metadata);
252 return metadata;
253 };
254 get = function (it) {
255 return wmget.call(store, it) || {};
256 };
257 has$1 = function (it) {
258 return wmhas.call(store, it);
259 };
260 } else {
261 var STATE = sharedKey('state');
262 hiddenKeys[STATE] = true;
263 set = function (it, metadata) {
264 hide(it, STATE, metadata);
265 return metadata;
266 };
267 get = function (it) {
268 return has(it, STATE) ? it[STATE] : {};
269 };
270 has$1 = function (it) {
271 return has(it, STATE);
272 };
273 }
274
275 var internalState = {
276 set: set,
277 get: get,
278 has: has$1,
279 enforce: enforce,
280 getterFor: getterFor
281 };
282
283 var redefine = createCommonjsModule(function (module) {
284 var getInternalState = internalState.get;
285 var enforceInternalState = internalState.enforce;
286 var TEMPLATE = String(functionToString).split('toString');
287
288 shared('inspectSource', function (it) {
289 return functionToString.call(it);
290 });
291
292 (module.exports = function (O, key, value, options) {
293 var unsafe = options ? !!options.unsafe : false;
294 var simple = options ? !!options.enumerable : false;
295 var noTargetGet = options ? !!options.noTargetGet : false;
296 if (typeof value == 'function') {
297 if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
298 enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
299 }
300 if (O === global_1) {
301 if (simple) O[key] = value;
302 else setGlobal(key, value);
303 return;
304 } else if (!unsafe) {
305 delete O[key];
306 } else if (!noTargetGet && O[key]) {
307 simple = true;
308 }
309 if (simple) O[key] = value;
310 else hide(O, key, value);
311 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
312 })(Function.prototype, 'toString', function toString() {
313 return typeof this == 'function' && getInternalState(this).source || functionToString.call(this);
314 });
315 });
316
317 var path = global_1;
318
319 var aFunction = function (variable) {
320 return typeof variable == 'function' ? variable : undefined;
321 };
322
323 var getBuiltIn = function (namespace, method) {
324 return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
325 : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
326 };
327
328 var ceil = Math.ceil;
329 var floor = Math.floor;
330
331 // `ToInteger` abstract operation
332 // https://tc39.github.io/ecma262/#sec-tointeger
333 var toInteger = function (argument) {
334 return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
335 };
336
337 var min = Math.min;
338
339 // `ToLength` abstract operation
340 // https://tc39.github.io/ecma262/#sec-tolength
341 var toLength = function (argument) {
342 return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
343 };
344
345 var max = Math.max;
346 var min$1 = Math.min;
347
348 // Helper for a popular repeating case of the spec:
349 // Let integer be ? ToInteger(index).
350 // If integer < 0, let result be max((length + integer), 0); else let result be min(length, length).
351 var toAbsoluteIndex = function (index, length) {
352 var integer = toInteger(index);
353 return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
354 };
355
356 // `Array.prototype.{ indexOf, includes }` methods implementation
357 var createMethod = function (IS_INCLUDES) {
358 return function ($this, el, fromIndex) {
359 var O = toIndexedObject($this);
360 var length = toLength(O.length);
361 var index = toAbsoluteIndex(fromIndex, length);
362 var value;
363 // Array#includes uses SameValueZero equality algorithm
364 // eslint-disable-next-line no-self-compare
365 if (IS_INCLUDES && el != el) while (length > index) {
366 value = O[index++];
367 // eslint-disable-next-line no-self-compare
368 if (value != value) return true;
369 // Array#indexOf ignores holes, Array#includes - not
370 } else for (;length > index; index++) {
371 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
372 } return !IS_INCLUDES && -1;
373 };
374 };
375
376 var arrayIncludes = {
377 // `Array.prototype.includes` method
378 // https://tc39.github.io/ecma262/#sec-array.prototype.includes
379 includes: createMethod(true),
380 // `Array.prototype.indexOf` method
381 // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
382 indexOf: createMethod(false)
383 };
384
385 var indexOf = arrayIncludes.indexOf;
386
387
388 var objectKeysInternal = function (object, names) {
389 var O = toIndexedObject(object);
390 var i = 0;
391 var result = [];
392 var key;
393 for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
394 // Don't enum bug & hidden keys
395 while (names.length > i) if (has(O, key = names[i++])) {
396 ~indexOf(result, key) || result.push(key);
397 }
398 return result;
399 };
400
401 // IE8- don't enum bug keys
402 var enumBugKeys = [
403 'constructor',
404 'hasOwnProperty',
405 'isPrototypeOf',
406 'propertyIsEnumerable',
407 'toLocaleString',
408 'toString',
409 'valueOf'
410 ];
411
412 var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
413
414 // `Object.getOwnPropertyNames` method
415 // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
416 var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
417 return objectKeysInternal(O, hiddenKeys$1);
418 };
419
420 var objectGetOwnPropertyNames = {
421 f: f$3
422 };
423
424 var f$4 = Object.getOwnPropertySymbols;
425
426 var objectGetOwnPropertySymbols = {
427 f: f$4
428 };
429
430 // all object keys, includes non-enumerable and symbols
431 var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
432 var keys = objectGetOwnPropertyNames.f(anObject(it));
433 var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
434 return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
435 };
436
437 var copyConstructorProperties = function (target, source) {
438 var keys = ownKeys(source);
439 var defineProperty = objectDefineProperty.f;
440 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
441 for (var i = 0; i < keys.length; i++) {
442 var key = keys[i];
443 if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
444 }
445 };
446
447 var replacement = /#|\.prototype\./;
448
449 var isForced = function (feature, detection) {
450 var value = data[normalize(feature)];
451 return value == POLYFILL ? true
452 : value == NATIVE ? false
453 : typeof detection == 'function' ? fails(detection)
454 : !!detection;
455 };
456
457 var normalize = isForced.normalize = function (string) {
458 return String(string).replace(replacement, '.').toLowerCase();
459 };
460
461 var data = isForced.data = {};
462 var NATIVE = isForced.NATIVE = 'N';
463 var POLYFILL = isForced.POLYFILL = 'P';
464
465 var isForced_1 = isForced;
466
467 var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
468
469
470
471
472
473
474 /*
475 options.target - name of the target object
476 options.global - target is the global object
477 options.stat - export as static methods of target
478 options.proto - export as prototype methods of target
479 options.real - real prototype method for the `pure` version
480 options.forced - export even if the native feature is available
481 options.bind - bind methods to the target, required for the `pure` version
482 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
483 options.unsafe - use the simple assignment of property instead of delete + defineProperty
484 options.sham - add a flag to not completely full polyfills
485 options.enumerable - export as enumerable property
486 options.noTargetGet - prevent calling a getter on target
487 */
488 var _export = function (options, source) {
489 var TARGET = options.target;
490 var GLOBAL = options.global;
491 var STATIC = options.stat;
492 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
493 if (GLOBAL) {
494 target = global_1;
495 } else if (STATIC) {
496 target = global_1[TARGET] || setGlobal(TARGET, {});
497 } else {
498 target = (global_1[TARGET] || {}).prototype;
499 }
500 if (target) for (key in source) {
501 sourceProperty = source[key];
502 if (options.noTargetGet) {
503 descriptor = getOwnPropertyDescriptor$1(target, key);
504 targetProperty = descriptor && descriptor.value;
505 } else targetProperty = target[key];
506 FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
507 // contained in target
508 if (!FORCED && targetProperty !== undefined) {
509 if (typeof sourceProperty === typeof targetProperty) continue;
510 copyConstructorProperties(sourceProperty, targetProperty);
511 }
512 // add a flag to not completely full polyfills
513 if (options.sham || (targetProperty && targetProperty.sham)) {
514 hide(sourceProperty, 'sham', true);
515 }
516 // extend global
517 redefine(target, key, sourceProperty, options);
518 }
519 };
520
521 var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
522 // Chrome 38 Symbol has incorrect toString conversion
523 // eslint-disable-next-line no-undef
524 return !String(Symbol());
525 });
526
527 // `IsArray` abstract operation
528 // https://tc39.github.io/ecma262/#sec-isarray
529 var isArray = Array.isArray || function isArray(arg) {
530 return classofRaw(arg) == 'Array';
531 };
532
533 // `ToObject` abstract operation
534 // https://tc39.github.io/ecma262/#sec-toobject
535 var toObject = function (argument) {
536 return Object(requireObjectCoercible(argument));
537 };
538
539 // `Object.keys` method
540 // https://tc39.github.io/ecma262/#sec-object.keys
541 var objectKeys = Object.keys || function keys(O) {
542 return objectKeysInternal(O, enumBugKeys);
543 };
544
545 // `Object.defineProperties` method
546 // https://tc39.github.io/ecma262/#sec-object.defineproperties
547 var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
548 anObject(O);
549 var keys = objectKeys(Properties);
550 var length = keys.length;
551 var index = 0;
552 var key;
553 while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
554 return O;
555 };
556
557 var html = getBuiltIn('document', 'documentElement');
558
559 var IE_PROTO = sharedKey('IE_PROTO');
560
561 var PROTOTYPE = 'prototype';
562 var Empty = function () { /* empty */ };
563
564 // Create object with fake `null` prototype: use iframe Object with cleared prototype
565 var createDict = function () {
566 // Thrash, waste and sodomy: IE GC bug
567 var iframe = documentCreateElement('iframe');
568 var length = enumBugKeys.length;
569 var lt = '<';
570 var script = 'script';
571 var gt = '>';
572 var js = 'java' + script + ':';
573 var iframeDocument;
574 iframe.style.display = 'none';
575 html.appendChild(iframe);
576 iframe.src = String(js);
577 iframeDocument = iframe.contentWindow.document;
578 iframeDocument.open();
579 iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt);
580 iframeDocument.close();
581 createDict = iframeDocument.F;
582 while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
583 return createDict();
584 };
585
586 // `Object.create` method
587 // https://tc39.github.io/ecma262/#sec-object.create
588 var objectCreate = Object.create || function create(O, Properties) {
589 var result;
590 if (O !== null) {
591 Empty[PROTOTYPE] = anObject(O);
592 result = new Empty();
593 Empty[PROTOTYPE] = null;
594 // add "__proto__" for Object.getPrototypeOf polyfill
595 result[IE_PROTO] = O;
596 } else result = createDict();
597 return Properties === undefined ? result : objectDefineProperties(result, Properties);
598 };
599
600 hiddenKeys[IE_PROTO] = true;
601
602 var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
603
604 var toString$1 = {}.toString;
605
606 var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
607 ? Object.getOwnPropertyNames(window) : [];
608
609 var getWindowNames = function (it) {
610 try {
611 return nativeGetOwnPropertyNames(it);
612 } catch (error) {
613 return windowNames.slice();
614 }
615 };
616
617 // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
618 var f$5 = function getOwnPropertyNames(it) {
619 return windowNames && toString$1.call(it) == '[object Window]'
620 ? getWindowNames(it)
621 : nativeGetOwnPropertyNames(toIndexedObject(it));
622 };
623
624 var objectGetOwnPropertyNamesExternal = {
625 f: f$5
626 };
627
628 var Symbol$1 = global_1.Symbol;
629 var store$1 = shared('wks');
630
631 var wellKnownSymbol = function (name) {
632 return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
633 || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
634 };
635
636 var f$6 = wellKnownSymbol;
637
638 var wrappedWellKnownSymbol = {
639 f: f$6
640 };
641
642 var defineProperty = objectDefineProperty.f;
643
644 var defineWellKnownSymbol = function (NAME) {
645 var Symbol = path.Symbol || (path.Symbol = {});
646 if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
647 value: wrappedWellKnownSymbol.f(NAME)
648 });
649 };
650
651 var defineProperty$1 = objectDefineProperty.f;
652
653
654
655 var TO_STRING_TAG = wellKnownSymbol('toStringTag');
656
657 var setToStringTag = function (it, TAG, STATIC) {
658 if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
659 defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });
660 }
661 };
662
663 var aFunction$1 = function (it) {
664 if (typeof it != 'function') {
665 throw TypeError(String(it) + ' is not a function');
666 } return it;
667 };
668
669 // optional / simple context binding
670 var bindContext = function (fn, that, length) {
671 aFunction$1(fn);
672 if (that === undefined) return fn;
673 switch (length) {
674 case 0: return function () {
675 return fn.call(that);
676 };
677 case 1: return function (a) {
678 return fn.call(that, a);
679 };
680 case 2: return function (a, b) {
681 return fn.call(that, a, b);
682 };
683 case 3: return function (a, b, c) {
684 return fn.call(that, a, b, c);
685 };
686 }
687 return function (/* ...args */) {
688 return fn.apply(that, arguments);
689 };
690 };
691
692 var SPECIES = wellKnownSymbol('species');
693
694 // `ArraySpeciesCreate` abstract operation
695 // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
696 var arraySpeciesCreate = function (originalArray, length) {
697 var C;
698 if (isArray(originalArray)) {
699 C = originalArray.constructor;
700 // cross-realm fallback
701 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
702 else if (isObject(C)) {
703 C = C[SPECIES];
704 if (C === null) C = undefined;
705 }
706 } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
707 };
708
709 var push = [].push;
710
711 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
712 var createMethod$1 = function (TYPE) {
713 var IS_MAP = TYPE == 1;
714 var IS_FILTER = TYPE == 2;
715 var IS_SOME = TYPE == 3;
716 var IS_EVERY = TYPE == 4;
717 var IS_FIND_INDEX = TYPE == 6;
718 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
719 return function ($this, callbackfn, that, specificCreate) {
720 var O = toObject($this);
721 var self = indexedObject(O);
722 var boundFunction = bindContext(callbackfn, that, 3);
723 var length = toLength(self.length);
724 var index = 0;
725 var create = specificCreate || arraySpeciesCreate;
726 var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
727 var value, result;
728 for (;length > index; index++) if (NO_HOLES || index in self) {
729 value = self[index];
730 result = boundFunction(value, index, O);
731 if (TYPE) {
732 if (IS_MAP) target[index] = result; // map
733 else if (result) switch (TYPE) {
734 case 3: return true; // some
735 case 5: return value; // find
736 case 6: return index; // findIndex
737 case 2: push.call(target, value); // filter
738 } else if (IS_EVERY) return false; // every
739 }
740 }
741 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
742 };
743 };
744
745 var arrayIteration = {
746 // `Array.prototype.forEach` method
747 // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
748 forEach: createMethod$1(0),
749 // `Array.prototype.map` method
750 // https://tc39.github.io/ecma262/#sec-array.prototype.map
751 map: createMethod$1(1),
752 // `Array.prototype.filter` method
753 // https://tc39.github.io/ecma262/#sec-array.prototype.filter
754 filter: createMethod$1(2),
755 // `Array.prototype.some` method
756 // https://tc39.github.io/ecma262/#sec-array.prototype.some
757 some: createMethod$1(3),
758 // `Array.prototype.every` method
759 // https://tc39.github.io/ecma262/#sec-array.prototype.every
760 every: createMethod$1(4),
761 // `Array.prototype.find` method
762 // https://tc39.github.io/ecma262/#sec-array.prototype.find
763 find: createMethod$1(5),
764 // `Array.prototype.findIndex` method
765 // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
766 findIndex: createMethod$1(6)
767 };
768
769 var $forEach = arrayIteration.forEach;
770
771 var HIDDEN = sharedKey('hidden');
772 var SYMBOL = 'Symbol';
773 var PROTOTYPE$1 = 'prototype';
774 var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
775 var setInternalState = internalState.set;
776 var getInternalState = internalState.getterFor(SYMBOL);
777 var ObjectPrototype = Object[PROTOTYPE$1];
778 var $Symbol = global_1.Symbol;
779 var JSON = global_1.JSON;
780 var nativeJSONStringify = JSON && JSON.stringify;
781 var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
782 var nativeDefineProperty$1 = objectDefineProperty.f;
783 var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
784 var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;
785 var AllSymbols = shared('symbols');
786 var ObjectPrototypeSymbols = shared('op-symbols');
787 var StringToSymbolRegistry = shared('string-to-symbol-registry');
788 var SymbolToStringRegistry = shared('symbol-to-string-registry');
789 var WellKnownSymbolsStore = shared('wks');
790 var QObject = global_1.QObject;
791 // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
792 var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
793
794 // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
795 var setSymbolDescriptor = descriptors && fails(function () {
796 return objectCreate(nativeDefineProperty$1({}, 'a', {
797 get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
798 })).a != 7;
799 }) ? function (O, P, Attributes) {
800 var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);
801 if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
802 nativeDefineProperty$1(O, P, Attributes);
803 if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
804 nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);
805 }
806 } : nativeDefineProperty$1;
807
808 var wrap = function (tag, description) {
809 var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);
810 setInternalState(symbol, {
811 type: SYMBOL,
812 tag: tag,
813 description: description
814 });
815 if (!descriptors) symbol.description = description;
816 return symbol;
817 };
818
819 var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {
820 return typeof it == 'symbol';
821 } : function (it) {
822 return Object(it) instanceof $Symbol;
823 };
824
825 var $defineProperty = function defineProperty(O, P, Attributes) {
826 if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
827 anObject(O);
828 var key = toPrimitive(P, true);
829 anObject(Attributes);
830 if (has(AllSymbols, key)) {
831 if (!Attributes.enumerable) {
832 if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));
833 O[HIDDEN][key] = true;
834 } else {
835 if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
836 Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
837 } return setSymbolDescriptor(O, key, Attributes);
838 } return nativeDefineProperty$1(O, key, Attributes);
839 };
840
841 var $defineProperties = function defineProperties(O, Properties) {
842 anObject(O);
843 var properties = toIndexedObject(Properties);
844 var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
845 $forEach(keys, function (key) {
846 if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
847 });
848 return O;
849 };
850
851 var $create = function create(O, Properties) {
852 return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);
853 };
854
855 var $propertyIsEnumerable = function propertyIsEnumerable(V) {
856 var P = toPrimitive(V, true);
857 var enumerable = nativePropertyIsEnumerable$1.call(this, P);
858 if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
859 return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
860 };
861
862 var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
863 var it = toIndexedObject(O);
864 var key = toPrimitive(P, true);
865 if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
866 var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);
867 if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
868 descriptor.enumerable = true;
869 }
870 return descriptor;
871 };
872
873 var $getOwnPropertyNames = function getOwnPropertyNames(O) {
874 var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));
875 var result = [];
876 $forEach(names, function (key) {
877 if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
878 });
879 return result;
880 };
881
882 var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
883 var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
884 var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
885 var result = [];
886 $forEach(names, function (key) {
887 if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
888 result.push(AllSymbols[key]);
889 }
890 });
891 return result;
892 };
893
894 // `Symbol` constructor
895 // https://tc39.github.io/ecma262/#sec-symbol-constructor
896 if (!nativeSymbol) {
897 $Symbol = function Symbol() {
898 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
899 var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
900 var tag = uid(description);
901 var setter = function (value) {
902 if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
903 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
904 setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
905 };
906 if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
907 return wrap(tag, description);
908 };
909
910 redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {
911 return getInternalState(this).tag;
912 });
913
914 objectPropertyIsEnumerable.f = $propertyIsEnumerable;
915 objectDefineProperty.f = $defineProperty;
916 objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;
917 objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
918 objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;
919
920 if (descriptors) {
921 // https://github.com/tc39/proposal-Symbol-description
922 nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {
923 configurable: true,
924 get: function description() {
925 return getInternalState(this).description;
926 }
927 });
928 {
929 redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
930 }
931 }
932
933 wrappedWellKnownSymbol.f = function (name) {
934 return wrap(wellKnownSymbol(name), name);
935 };
936 }
937
938 _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {
939 Symbol: $Symbol
940 });
941
942 $forEach(objectKeys(WellKnownSymbolsStore), function (name) {
943 defineWellKnownSymbol(name);
944 });
945
946 _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {
947 // `Symbol.for` method
948 // https://tc39.github.io/ecma262/#sec-symbol.for
949 'for': function (key) {
950 var string = String(key);
951 if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
952 var symbol = $Symbol(string);
953 StringToSymbolRegistry[string] = symbol;
954 SymbolToStringRegistry[symbol] = string;
955 return symbol;
956 },
957 // `Symbol.keyFor` method
958 // https://tc39.github.io/ecma262/#sec-symbol.keyfor
959 keyFor: function keyFor(sym) {
960 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
961 if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
962 },
963 useSetter: function () { USE_SETTER = true; },
964 useSimple: function () { USE_SETTER = false; }
965 });
966
967 _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {
968 // `Object.create` method
969 // https://tc39.github.io/ecma262/#sec-object.create
970 create: $create,
971 // `Object.defineProperty` method
972 // https://tc39.github.io/ecma262/#sec-object.defineproperty
973 defineProperty: $defineProperty,
974 // `Object.defineProperties` method
975 // https://tc39.github.io/ecma262/#sec-object.defineproperties
976 defineProperties: $defineProperties,
977 // `Object.getOwnPropertyDescriptor` method
978 // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
979 getOwnPropertyDescriptor: $getOwnPropertyDescriptor
980 });
981
982 _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {
983 // `Object.getOwnPropertyNames` method
984 // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
985 getOwnPropertyNames: $getOwnPropertyNames,
986 // `Object.getOwnPropertySymbols` method
987 // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
988 getOwnPropertySymbols: $getOwnPropertySymbols
989 });
990
991 // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
992 // https://bugs.chromium.org/p/v8/issues/detail?id=3443
993 _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {
994 getOwnPropertySymbols: function getOwnPropertySymbols(it) {
995 return objectGetOwnPropertySymbols.f(toObject(it));
996 }
997 });
998
999 // `JSON.stringify` method behavior with symbols
1000 // https://tc39.github.io/ecma262/#sec-json.stringify
1001 JSON && _export({ target: 'JSON', stat: true, forced: !nativeSymbol || fails(function () {
1002 var symbol = $Symbol();
1003 // MS Edge converts symbol values to JSON as {}
1004 return nativeJSONStringify([symbol]) != '[null]'
1005 // WebKit converts symbol values to JSON as null
1006 || nativeJSONStringify({ a: symbol }) != '{}'
1007 // V8 throws on boxed symbols
1008 || nativeJSONStringify(Object(symbol)) != '{}';
1009 }) }, {
1010 stringify: function stringify(it) {
1011 var args = [it];
1012 var index = 1;
1013 var replacer, $replacer;
1014 while (arguments.length > index) args.push(arguments[index++]);
1015 $replacer = replacer = args[1];
1016 if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
1017 if (!isArray(replacer)) replacer = function (key, value) {
1018 if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1019 if (!isSymbol(value)) return value;
1020 };
1021 args[1] = replacer;
1022 return nativeJSONStringify.apply(JSON, args);
1023 }
1024 });
1025
1026 // `Symbol.prototype[@@toPrimitive]` method
1027 // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
1028 if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) hide($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
1029 // `Symbol.prototype[@@toStringTag]` property
1030 // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
1031 setToStringTag($Symbol, SYMBOL);
1032
1033 hiddenKeys[HIDDEN] = true;
1034
1035 var defineProperty$2 = objectDefineProperty.f;
1036
1037
1038 var NativeSymbol = global_1.Symbol;
1039
1040 if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
1041 // Safari 12 bug
1042 NativeSymbol().description !== undefined
1043 )) {
1044 var EmptyStringDescriptionStore = {};
1045 // wrap Symbol constructor for correct work with undefined description
1046 var SymbolWrapper = function Symbol() {
1047 var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
1048 var result = this instanceof SymbolWrapper
1049 ? new NativeSymbol(description)
1050 // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
1051 : description === undefined ? NativeSymbol() : NativeSymbol(description);
1052 if (description === '') EmptyStringDescriptionStore[result] = true;
1053 return result;
1054 };
1055 copyConstructorProperties(SymbolWrapper, NativeSymbol);
1056 var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
1057 symbolPrototype.constructor = SymbolWrapper;
1058
1059 var symbolToString = symbolPrototype.toString;
1060 var native = String(NativeSymbol('test')) == 'Symbol(test)';
1061 var regexp = /^Symbol\((.*)\)[^)]+$/;
1062 defineProperty$2(symbolPrototype, 'description', {
1063 configurable: true,
1064 get: function description() {
1065 var symbol = isObject(this) ? this.valueOf() : this;
1066 var string = symbolToString.call(symbol);
1067 if (has(EmptyStringDescriptionStore, symbol)) return '';
1068 var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
1069 return desc === '' ? undefined : desc;
1070 }
1071 });
1072
1073 _export({ global: true, forced: true }, {
1074 Symbol: SymbolWrapper
1075 });
1076 }
1077
1078 // `Symbol.iterator` well-known symbol
1079 // https://tc39.github.io/ecma262/#sec-symbol.iterator
1080 defineWellKnownSymbol('iterator');
1081
1082 var createProperty = function (object, key, value) {
1083 var propertyKey = toPrimitive(key);
1084 if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1085 else object[propertyKey] = value;
1086 };
1087
1088 var SPECIES$1 = wellKnownSymbol('species');
1089
1090 var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1091 return !fails(function () {
1092 var array = [];
1093 var constructor = array.constructor = {};
1094 constructor[SPECIES$1] = function () {
1095 return { foo: 1 };
1096 };
1097 return array[METHOD_NAME](Boolean).foo !== 1;
1098 });
1099 };
1100
1101 var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1102 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1103 var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1104
1105 var IS_CONCAT_SPREADABLE_SUPPORT = !fails(function () {
1106 var array = [];
1107 array[IS_CONCAT_SPREADABLE] = false;
1108 return array.concat()[0] !== array;
1109 });
1110
1111 var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
1112
1113 var isConcatSpreadable = function (O) {
1114 if (!isObject(O)) return false;
1115 var spreadable = O[IS_CONCAT_SPREADABLE];
1116 return spreadable !== undefined ? !!spreadable : isArray(O);
1117 };
1118
1119 var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1120
1121 // `Array.prototype.concat` method
1122 // https://tc39.github.io/ecma262/#sec-array.prototype.concat
1123 // with adding support of @@isConcatSpreadable and @@species
1124 _export({ target: 'Array', proto: true, forced: FORCED }, {
1125 concat: function concat(arg) { // eslint-disable-line no-unused-vars
1126 var O = toObject(this);
1127 var A = arraySpeciesCreate(O, 0);
1128 var n = 0;
1129 var i, k, length, len, E;
1130 for (i = -1, length = arguments.length; i < length; i++) {
1131 E = i === -1 ? O : arguments[i];
1132 if (isConcatSpreadable(E)) {
1133 len = toLength(E.length);
1134 if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1135 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1136 } else {
1137 if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1138 createProperty(A, n++, E);
1139 }
1140 }
1141 A.length = n;
1142 return A;
1143 }
1144 });
1145
1146 var UNSCOPABLES = wellKnownSymbol('unscopables');
1147 var ArrayPrototype = Array.prototype;
1148
1149 // Array.prototype[@@unscopables]
1150 // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1151 if (ArrayPrototype[UNSCOPABLES] == undefined) {
1152 hide(ArrayPrototype, UNSCOPABLES, objectCreate(null));
1153 }
1154
1155 // add a key to Array.prototype[@@unscopables]
1156 var addToUnscopables = function (key) {
1157 ArrayPrototype[UNSCOPABLES][key] = true;
1158 };
1159
1160 var correctPrototypeGetter = !fails(function () {
1161 function F() { /* empty */ }
1162 F.prototype.constructor = null;
1163 return Object.getPrototypeOf(new F()) !== F.prototype;
1164 });
1165
1166 var IE_PROTO$1 = sharedKey('IE_PROTO');
1167 var ObjectPrototype$1 = Object.prototype;
1168
1169 // `Object.getPrototypeOf` method
1170 // https://tc39.github.io/ecma262/#sec-object.getprototypeof
1171 var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
1172 O = toObject(O);
1173 if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];
1174 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
1175 return O.constructor.prototype;
1176 } return O instanceof Object ? ObjectPrototype$1 : null;
1177 };
1178
1179 var ITERATOR = wellKnownSymbol('iterator');
1180 var BUGGY_SAFARI_ITERATORS = false;
1181
1182 var returnThis = function () { return this; };
1183
1184 // `%IteratorPrototype%` object
1185 // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
1186 var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
1187
1188 if ([].keys) {
1189 arrayIterator = [].keys();
1190 // Safari 8 has buggy iterators w/o `next`
1191 if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
1192 else {
1193 PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
1194 if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
1195 }
1196 }
1197
1198 if (IteratorPrototype == undefined) IteratorPrototype = {};
1199
1200 // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
1201 if ( !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);
1202
1203 var iteratorsCore = {
1204 IteratorPrototype: IteratorPrototype,
1205 BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
1206 };
1207
1208 var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1209
1210 var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
1211 var TO_STRING_TAG = NAME + ' Iterator';
1212 IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
1213 setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
1214 return IteratorConstructor;
1215 };
1216
1217 var aPossiblePrototype = function (it) {
1218 if (!isObject(it) && it !== null) {
1219 throw TypeError("Can't set " + String(it) + ' as a prototype');
1220 } return it;
1221 };
1222
1223 // `Object.setPrototypeOf` method
1224 // https://tc39.github.io/ecma262/#sec-object.setprototypeof
1225 // Works with __proto__ only. Old v8 can't work with null proto objects.
1226 /* eslint-disable no-proto */
1227 var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1228 var CORRECT_SETTER = false;
1229 var test = {};
1230 var setter;
1231 try {
1232 setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
1233 setter.call(test, []);
1234 CORRECT_SETTER = test instanceof Array;
1235 } catch (error) { /* empty */ }
1236 return function setPrototypeOf(O, proto) {
1237 anObject(O);
1238 aPossiblePrototype(proto);
1239 if (CORRECT_SETTER) setter.call(O, proto);
1240 else O.__proto__ = proto;
1241 return O;
1242 };
1243 }() : undefined);
1244
1245 var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
1246 var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
1247 var ITERATOR$1 = wellKnownSymbol('iterator');
1248 var KEYS = 'keys';
1249 var VALUES = 'values';
1250 var ENTRIES = 'entries';
1251
1252 var returnThis$1 = function () { return this; };
1253
1254 var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1255 createIteratorConstructor(IteratorConstructor, NAME, next);
1256
1257 var getIterationMethod = function (KIND) {
1258 if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1259 if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
1260 switch (KIND) {
1261 case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1262 case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1263 case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1264 } return function () { return new IteratorConstructor(this); };
1265 };
1266
1267 var TO_STRING_TAG = NAME + ' Iterator';
1268 var INCORRECT_VALUES_NAME = false;
1269 var IterablePrototype = Iterable.prototype;
1270 var nativeIterator = IterablePrototype[ITERATOR$1]
1271 || IterablePrototype['@@iterator']
1272 || DEFAULT && IterablePrototype[DEFAULT];
1273 var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
1274 var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1275 var CurrentIteratorPrototype, methods, KEY;
1276
1277 // fix native
1278 if (anyNativeIterator) {
1279 CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
1280 if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
1281 if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
1282 if (objectSetPrototypeOf) {
1283 objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
1284 } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
1285 hide(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
1286 }
1287 }
1288 // Set @@toStringTag to native iterators
1289 setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1290 }
1291 }
1292
1293 // fix Array#{values, @@iterator}.name in V8 / FF
1294 if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1295 INCORRECT_VALUES_NAME = true;
1296 defaultIterator = function values() { return nativeIterator.call(this); };
1297 }
1298
1299 // define iterator
1300 if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
1301 hide(IterablePrototype, ITERATOR$1, defaultIterator);
1302 }
1303
1304 // export additional methods
1305 if (DEFAULT) {
1306 methods = {
1307 values: getIterationMethod(VALUES),
1308 keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1309 entries: getIterationMethod(ENTRIES)
1310 };
1311 if (FORCED) for (KEY in methods) {
1312 if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1313 redefine(IterablePrototype, KEY, methods[KEY]);
1314 }
1315 } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
1316 }
1317
1318 return methods;
1319 };
1320
1321 var ARRAY_ITERATOR = 'Array Iterator';
1322 var setInternalState$1 = internalState.set;
1323 var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);
1324
1325 // `Array.prototype.entries` method
1326 // https://tc39.github.io/ecma262/#sec-array.prototype.entries
1327 // `Array.prototype.keys` method
1328 // https://tc39.github.io/ecma262/#sec-array.prototype.keys
1329 // `Array.prototype.values` method
1330 // https://tc39.github.io/ecma262/#sec-array.prototype.values
1331 // `Array.prototype[@@iterator]` method
1332 // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
1333 // `CreateArrayIterator` internal method
1334 // https://tc39.github.io/ecma262/#sec-createarrayiterator
1335 var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1336 setInternalState$1(this, {
1337 type: ARRAY_ITERATOR,
1338 target: toIndexedObject(iterated), // target
1339 index: 0, // next index
1340 kind: kind // kind
1341 });
1342 // `%ArrayIteratorPrototype%.next` method
1343 // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
1344 }, function () {
1345 var state = getInternalState$1(this);
1346 var target = state.target;
1347 var kind = state.kind;
1348 var index = state.index++;
1349 if (!target || index >= target.length) {
1350 state.target = undefined;
1351 return { value: undefined, done: true };
1352 }
1353 if (kind == 'keys') return { value: index, done: false };
1354 if (kind == 'values') return { value: target[index], done: false };
1355 return { value: [index, target[index]], done: false };
1356 }, 'values');
1357
1358 // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1359 addToUnscopables('keys');
1360 addToUnscopables('values');
1361 addToUnscopables('entries');
1362
1363 var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
1364 // ES3 wrong here
1365 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1366
1367 // fallback for IE11 Script Access Denied error
1368 var tryGet = function (it, key) {
1369 try {
1370 return it[key];
1371 } catch (error) { /* empty */ }
1372 };
1373
1374 // getting tag from ES6+ `Object.prototype.toString`
1375 var classof = function (it) {
1376 var O, tag, result;
1377 return it === undefined ? 'Undefined' : it === null ? 'Null'
1378 // @@toStringTag case
1379 : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$1)) == 'string' ? tag
1380 // builtinTag case
1381 : CORRECT_ARGUMENTS ? classofRaw(O)
1382 // ES3 arguments fallback
1383 : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
1384 };
1385
1386 var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
1387 var test = {};
1388
1389 test[TO_STRING_TAG$2] = 'z';
1390
1391 // `Object.prototype.toString` method implementation
1392 // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1393 var objectToString = String(test) !== '[object z]' ? function toString() {
1394 return '[object ' + classof(this) + ']';
1395 } : test.toString;
1396
1397 var ObjectPrototype$2 = Object.prototype;
1398
1399 // `Object.prototype.toString` method
1400 // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1401 if (objectToString !== ObjectPrototype$2.toString) {
1402 redefine(ObjectPrototype$2, 'toString', objectToString, { unsafe: true });
1403 }
1404
1405 // `String.prototype.{ codePointAt, at }` methods implementation
1406 var createMethod$2 = function (CONVERT_TO_STRING) {
1407 return function ($this, pos) {
1408 var S = String(requireObjectCoercible($this));
1409 var position = toInteger(pos);
1410 var size = S.length;
1411 var first, second;
1412 if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1413 first = S.charCodeAt(position);
1414 return first < 0xD800 || first > 0xDBFF || position + 1 === size
1415 || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1416 ? CONVERT_TO_STRING ? S.charAt(position) : first
1417 : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1418 };
1419 };
1420
1421 var stringMultibyte = {
1422 // `String.prototype.codePointAt` method
1423 // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
1424 codeAt: createMethod$2(false),
1425 // `String.prototype.at` method
1426 // https://github.com/mathiasbynens/String.prototype.at
1427 charAt: createMethod$2(true)
1428 };
1429
1430 var charAt = stringMultibyte.charAt;
1431
1432
1433
1434 var STRING_ITERATOR = 'String Iterator';
1435 var setInternalState$2 = internalState.set;
1436 var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
1437
1438 // `String.prototype[@@iterator]` method
1439 // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
1440 defineIterator(String, 'String', function (iterated) {
1441 setInternalState$2(this, {
1442 type: STRING_ITERATOR,
1443 string: String(iterated),
1444 index: 0
1445 });
1446 // `%StringIteratorPrototype%.next` method
1447 // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
1448 }, function next() {
1449 var state = getInternalState$2(this);
1450 var string = state.string;
1451 var index = state.index;
1452 var point;
1453 if (index >= string.length) return { value: undefined, done: true };
1454 point = charAt(string, index);
1455 state.index += point.length;
1456 return { value: point, done: false };
1457 });
1458
1459 // iterable DOM collections
1460 // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1461 var domIterables = {
1462 CSSRuleList: 0,
1463 CSSStyleDeclaration: 0,
1464 CSSValueList: 0,
1465 ClientRectList: 0,
1466 DOMRectList: 0,
1467 DOMStringList: 0,
1468 DOMTokenList: 1,
1469 DataTransferItemList: 0,
1470 FileList: 0,
1471 HTMLAllCollection: 0,
1472 HTMLCollection: 0,
1473 HTMLFormElement: 0,
1474 HTMLSelectElement: 0,
1475 MediaList: 0,
1476 MimeTypeArray: 0,
1477 NamedNodeMap: 0,
1478 NodeList: 1,
1479 PaintRequestList: 0,
1480 Plugin: 0,
1481 PluginArray: 0,
1482 SVGLengthList: 0,
1483 SVGNumberList: 0,
1484 SVGPathSegList: 0,
1485 SVGPointList: 0,
1486 SVGStringList: 0,
1487 SVGTransformList: 0,
1488 SourceBufferList: 0,
1489 StyleSheetList: 0,
1490 TextTrackCueList: 0,
1491 TextTrackList: 0,
1492 TouchList: 0
1493 };
1494
1495 var ITERATOR$2 = wellKnownSymbol('iterator');
1496 var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
1497 var ArrayValues = es_array_iterator.values;
1498
1499 for (var COLLECTION_NAME in domIterables) {
1500 var Collection = global_1[COLLECTION_NAME];
1501 var CollectionPrototype = Collection && Collection.prototype;
1502 if (CollectionPrototype) {
1503 // some Chrome versions have non-configurable methods on DOMTokenList
1504 if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
1505 hide(CollectionPrototype, ITERATOR$2, ArrayValues);
1506 } catch (error) {
1507 CollectionPrototype[ITERATOR$2] = ArrayValues;
1508 }
1509 if (!CollectionPrototype[TO_STRING_TAG$3]) hide(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
1510 if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
1511 // some Chrome versions have non-configurable methods on DOMTokenList
1512 if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
1513 hide(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
1514 } catch (error) {
1515 CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
1516 }
1517 }
1518 }
1519 }
1520
1521 function _defineProperty(obj, key, value) {
1522 if (key in obj) {
1523 Object.defineProperty(obj, key, {
1524 value: value,
1525 enumerable: true,
1526 configurable: true,
1527 writable: true
1528 });
1529 } else {
1530 obj[key] = value;
1531 }
1532
1533 return obj;
1534 }
1535
1536 function _objectSpread(target) {
1537 for (var i = 1; i < arguments.length; i++) {
1538 var source = arguments[i] != null ? arguments[i] : {};
1539 var ownKeys = Object.keys(source);
1540
1541 if (typeof Object.getOwnPropertySymbols === 'function') {
1542 ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
1543 return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1544 }));
1545 }
1546
1547 ownKeys.forEach(function (key) {
1548 _defineProperty(target, key, source[key]);
1549 });
1550 }
1551
1552 return target;
1553 }
1554
1555 function _toConsumableArray(arr) {
1556 return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
1557 }
1558
1559 function _arrayWithoutHoles(arr) {
1560 if (Array.isArray(arr)) {
1561 for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
1562
1563 return arr2;
1564 }
1565 }
1566
1567 function _iterableToArray(iter) {
1568 if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
1569 }
1570
1571 function _nonIterableSpread() {
1572 throw new TypeError("Invalid attempt to spread non-iterable instance");
1573 }
1574
1575 //
1576 //
1577 //
1578 //
1579 var $ = window.jQuery;
1580
1581 var deepCopy = function deepCopy(arg) {
1582 return $.extend(true, Array.isArray(arg) ? [] : {}, arg);
1583 };
1584
1585 var script = {
1586 name: 'BootstrapTable',
1587 props: {
1588 columns: {
1589 type: Array,
1590 require: true
1591 },
1592 data: {
1593 type: [Array, Object],
1594 default: function _default() {
1595 return undefined;
1596 }
1597 },
1598 options: {
1599 type: Object,
1600 default: function _default() {
1601 return {};
1602 }
1603 }
1604 },
1605 mounted: function mounted() {
1606 var _this = this;
1607
1608 this.$table = $(this.$el);
1609 this.$table.on('all.bs.table', function (e, name, args) {
1610 _this.$emit.apply(_this, [$.fn.bootstrapTable.events[name]].concat(_toConsumableArray(args)));
1611 });
1612
1613 this._initTable();
1614 },
1615 methods: _objectSpread({
1616 _initTable: function _initTable() {
1617 var options = _objectSpread({}, deepCopy(this.options), {
1618 columns: deepCopy(this.columns),
1619 data: deepCopy(this.data)
1620 });
1621
1622 if (!this._hasInit) {
1623 this.$table.bootstrapTable(options);
1624 this._hasInit = true;
1625 } else {
1626 this.refreshOptions(options);
1627 }
1628 }
1629 }, function () {
1630 var res = {};
1631 var _iteratorNormalCompletion = true;
1632 var _didIteratorError = false;
1633 var _iteratorError = undefined;
1634
1635 try {
1636 var _loop = function _loop() {
1637 var method = _step.value;
1638
1639 res[method] = function () {
1640 var _this$$table;
1641
1642 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1643 args[_key] = arguments[_key];
1644 }
1645
1646 return (_this$$table = this.$table).bootstrapTable.apply(_this$$table, [method].concat(args));
1647 };
1648 };
1649
1650 for (var _iterator = $.fn.bootstrapTable.methods[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
1651 _loop();
1652 }
1653 } catch (err) {
1654 _didIteratorError = true;
1655 _iteratorError = err;
1656 } finally {
1657 try {
1658 if (!_iteratorNormalCompletion && _iterator.return != null) {
1659 _iterator.return();
1660 }
1661 } finally {
1662 if (_didIteratorError) {
1663 throw _iteratorError;
1664 }
1665 }
1666 }
1667
1668 return res;
1669 }()),
1670 watch: {
1671 options: {
1672 handler: function handler() {
1673 this._initTable();
1674 },
1675 deep: true
1676 },
1677 columns: {
1678 handler: function handler() {
1679 this._initTable();
1680 },
1681 deep: true
1682 },
1683 data: {
1684 handler: function handler() {
1685 this.load(deepCopy(this.data));
1686 },
1687 deep: true
1688 }
1689 }
1690 };
1691
1692 function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
1693 /* server only */
1694 , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
1695 if (typeof shadowMode !== 'boolean') {
1696 createInjectorSSR = createInjector;
1697 createInjector = shadowMode;
1698 shadowMode = false;
1699 } // Vue.extend constructor export interop.
1700
1701
1702 var options = typeof script === 'function' ? script.options : script; // render functions
1703
1704 if (template && template.render) {
1705 options.render = template.render;
1706 options.staticRenderFns = template.staticRenderFns;
1707 options._compiled = true; // functional template
1708
1709 if (isFunctionalTemplate) {
1710 options.functional = true;
1711 }
1712 } // scopedId
1713
1714
1715 if (scopeId) {
1716 options._scopeId = scopeId;
1717 }
1718
1719 var hook;
1720
1721 if (moduleIdentifier) {
1722 // server build
1723 hook = function hook(context) {
1724 // 2.3 injection
1725 context = context || // cached call
1726 this.$vnode && this.$vnode.ssrContext || // stateful
1727 this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
1728 // 2.2 with runInNewContext: true
1729
1730 if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1731 context = __VUE_SSR_CONTEXT__;
1732 } // inject component styles
1733
1734
1735 if (style) {
1736 style.call(this, createInjectorSSR(context));
1737 } // register component module identifier for async chunk inference
1738
1739
1740 if (context && context._registeredComponents) {
1741 context._registeredComponents.add(moduleIdentifier);
1742 }
1743 }; // used by ssr in case component is cached and beforeCreate
1744 // never gets called
1745
1746
1747 options._ssrRegister = hook;
1748 } else if (style) {
1749 hook = shadowMode ? function () {
1750 style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
1751 } : function (context) {
1752 style.call(this, createInjector(context));
1753 };
1754 }
1755
1756 if (hook) {
1757 if (options.functional) {
1758 // register for functional component in vue file
1759 var originalRender = options.render;
1760
1761 options.render = function renderWithStyleInjection(h, context) {
1762 hook.call(context);
1763 return originalRender(h, context);
1764 };
1765 } else {
1766 // inject component registration as beforeCreate hook
1767 var existing = options.beforeCreate;
1768 options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
1769 }
1770 }
1771
1772 return script;
1773 }
1774
1775 var normalizeComponent_1 = normalizeComponent;
1776
1777 /* script */
1778 const __vue_script__ = script;
1779
1780 /* template */
1781 var __vue_render__ = function() {
1782 var _vm = this;
1783 var _h = _vm.$createElement;
1784 var _c = _vm._self._c || _h;
1785 return _c("table")
1786 };
1787 var __vue_staticRenderFns__ = [];
1788 __vue_render__._withStripped = true;
1789
1790 /* style */
1791 const __vue_inject_styles__ = undefined;
1792 /* scoped */
1793 const __vue_scope_id__ = undefined;
1794 /* module identifier */
1795 const __vue_module_identifier__ = undefined;
1796 /* functional template */
1797 const __vue_is_functional_template__ = false;
1798 /* style inject */
1799
1800 /* style inject SSR */
1801
1802
1803
1804 var BootstrapTable = normalizeComponent_1(
1805 { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
1806 __vue_inject_styles__,
1807 __vue_script__,
1808 __vue_scope_id__,
1809 __vue_is_functional_template__,
1810 __vue_module_identifier__,
1811 undefined,
1812 undefined
1813 );
1814
1815 return BootstrapTable;
1816
1817}));