1 | (function (global, factory) {
|
2 | typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
|
3 | typeof define === 'function' && define.amd ? define(['jquery'], factory) :
|
4 | (global = global || self, factory(global.jQuery));
|
5 | }(this, function ($) { 'use strict';
|
6 |
|
7 | $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
|
8 |
|
9 | var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
10 |
|
11 | function createCommonjsModule(fn, module) {
|
12 | return module = { exports: {} }, fn(module, module.exports), module.exports;
|
13 | }
|
14 |
|
15 | var O = 'object';
|
16 | var check = function (it) {
|
17 | return it && it.Math == Math && it;
|
18 | };
|
19 |
|
20 |
|
21 | var global_1 =
|
22 |
|
23 | check(typeof globalThis == O && globalThis) ||
|
24 | check(typeof window == O && window) ||
|
25 | check(typeof self == O && self) ||
|
26 | check(typeof commonjsGlobal == O && commonjsGlobal) ||
|
27 |
|
28 | Function('return this')();
|
29 |
|
30 | var fails = function (exec) {
|
31 | try {
|
32 | return !!exec();
|
33 | } catch (error) {
|
34 | return true;
|
35 | }
|
36 | };
|
37 |
|
38 |
|
39 | var descriptors = !fails(function () {
|
40 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
41 | });
|
42 |
|
43 | var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
|
44 | var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
45 |
|
46 |
|
47 | var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
|
48 |
|
49 |
|
50 |
|
51 | var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
52 | var descriptor = getOwnPropertyDescriptor(this, V);
|
53 | return !!descriptor && descriptor.enumerable;
|
54 | } : nativePropertyIsEnumerable;
|
55 |
|
56 | var objectPropertyIsEnumerable = {
|
57 | f: f
|
58 | };
|
59 |
|
60 | var createPropertyDescriptor = function (bitmap, value) {
|
61 | return {
|
62 | enumerable: !(bitmap & 1),
|
63 | configurable: !(bitmap & 2),
|
64 | writable: !(bitmap & 4),
|
65 | value: value
|
66 | };
|
67 | };
|
68 |
|
69 | var toString = {}.toString;
|
70 |
|
71 | var classofRaw = function (it) {
|
72 | return toString.call(it).slice(8, -1);
|
73 | };
|
74 |
|
75 | var split = ''.split;
|
76 |
|
77 |
|
78 | var indexedObject = fails(function () {
|
79 |
|
80 |
|
81 | return !Object('z').propertyIsEnumerable(0);
|
82 | }) ? function (it) {
|
83 | return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
|
84 | } : Object;
|
85 |
|
86 |
|
87 |
|
88 | var requireObjectCoercible = function (it) {
|
89 | if (it == undefined) throw TypeError("Can't call method on " + it);
|
90 | return it;
|
91 | };
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 | var toIndexedObject = function (it) {
|
98 | return indexedObject(requireObjectCoercible(it));
|
99 | };
|
100 |
|
101 | var isObject = function (it) {
|
102 | return typeof it === 'object' ? it !== null : typeof it === 'function';
|
103 | };
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 | var toPrimitive = function (input, PREFERRED_STRING) {
|
110 | if (!isObject(input)) return input;
|
111 | var fn, val;
|
112 | if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
|
113 | if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
|
114 | if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
|
115 | throw TypeError("Can't convert object to primitive value");
|
116 | };
|
117 |
|
118 | var hasOwnProperty = {}.hasOwnProperty;
|
119 |
|
120 | var has = function (it, key) {
|
121 | return hasOwnProperty.call(it, key);
|
122 | };
|
123 |
|
124 | var document = global_1.document;
|
125 |
|
126 | var EXISTS = isObject(document) && isObject(document.createElement);
|
127 |
|
128 | var documentCreateElement = function (it) {
|
129 | return EXISTS ? document.createElement(it) : {};
|
130 | };
|
131 |
|
132 |
|
133 | var ie8DomDefine = !descriptors && !fails(function () {
|
134 | return Object.defineProperty(documentCreateElement('div'), 'a', {
|
135 | get: function () { return 7; }
|
136 | }).a != 7;
|
137 | });
|
138 |
|
139 | var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
140 |
|
141 |
|
142 |
|
143 | var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
144 | O = toIndexedObject(O);
|
145 | P = toPrimitive(P, true);
|
146 | if (ie8DomDefine) try {
|
147 | return nativeGetOwnPropertyDescriptor(O, P);
|
148 | } catch (error) { }
|
149 | if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
|
150 | };
|
151 |
|
152 | var objectGetOwnPropertyDescriptor = {
|
153 | f: f$1
|
154 | };
|
155 |
|
156 | var anObject = function (it) {
|
157 | if (!isObject(it)) {
|
158 | throw TypeError(String(it) + ' is not an object');
|
159 | } return it;
|
160 | };
|
161 |
|
162 | var nativeDefineProperty = Object.defineProperty;
|
163 |
|
164 |
|
165 |
|
166 | var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
|
167 | anObject(O);
|
168 | P = toPrimitive(P, true);
|
169 | anObject(Attributes);
|
170 | if (ie8DomDefine) try {
|
171 | return nativeDefineProperty(O, P, Attributes);
|
172 | } catch (error) { }
|
173 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
174 | if ('value' in Attributes) O[P] = Attributes.value;
|
175 | return O;
|
176 | };
|
177 |
|
178 | var objectDefineProperty = {
|
179 | f: f$2
|
180 | };
|
181 |
|
182 | var hide = descriptors ? function (object, key, value) {
|
183 | return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
|
184 | } : function (object, key, value) {
|
185 | object[key] = value;
|
186 | return object;
|
187 | };
|
188 |
|
189 | var setGlobal = function (key, value) {
|
190 | try {
|
191 | hide(global_1, key, value);
|
192 | } catch (error) {
|
193 | global_1[key] = value;
|
194 | } return value;
|
195 | };
|
196 |
|
197 | var shared = createCommonjsModule(function (module) {
|
198 | var SHARED = '__core-js_shared__';
|
199 | var store = global_1[SHARED] || setGlobal(SHARED, {});
|
200 |
|
201 | (module.exports = function (key, value) {
|
202 | return store[key] || (store[key] = value !== undefined ? value : {});
|
203 | })('versions', []).push({
|
204 | version: '3.1.3',
|
205 | mode: 'global',
|
206 | copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
|
207 | });
|
208 | });
|
209 |
|
210 | var functionToString = shared('native-function-to-string', Function.toString);
|
211 |
|
212 | var WeakMap = global_1.WeakMap;
|
213 |
|
214 | var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(functionToString.call(WeakMap));
|
215 |
|
216 | var id = 0;
|
217 | var postfix = Math.random();
|
218 |
|
219 | var uid = function (key) {
|
220 | return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
221 | };
|
222 |
|
223 | var keys = shared('keys');
|
224 |
|
225 | var sharedKey = function (key) {
|
226 | return keys[key] || (keys[key] = uid(key));
|
227 | };
|
228 |
|
229 | var hiddenKeys = {};
|
230 |
|
231 | var WeakMap$1 = global_1.WeakMap;
|
232 | var set, get, has$1;
|
233 |
|
234 | var enforce = function (it) {
|
235 | return has$1(it) ? get(it) : set(it, {});
|
236 | };
|
237 |
|
238 | var getterFor = function (TYPE) {
|
239 | return function (it) {
|
240 | var state;
|
241 | if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
242 | throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
243 | } return state;
|
244 | };
|
245 | };
|
246 |
|
247 | if (nativeWeakMap) {
|
248 | var store = new WeakMap$1();
|
249 | var wmget = store.get;
|
250 | var wmhas = store.has;
|
251 | var wmset = store.set;
|
252 | set = function (it, metadata) {
|
253 | wmset.call(store, it, metadata);
|
254 | return metadata;
|
255 | };
|
256 | get = function (it) {
|
257 | return wmget.call(store, it) || {};
|
258 | };
|
259 | has$1 = function (it) {
|
260 | return wmhas.call(store, it);
|
261 | };
|
262 | } else {
|
263 | var STATE = sharedKey('state');
|
264 | hiddenKeys[STATE] = true;
|
265 | set = function (it, metadata) {
|
266 | hide(it, STATE, metadata);
|
267 | return metadata;
|
268 | };
|
269 | get = function (it) {
|
270 | return has(it, STATE) ? it[STATE] : {};
|
271 | };
|
272 | has$1 = function (it) {
|
273 | return has(it, STATE);
|
274 | };
|
275 | }
|
276 |
|
277 | var internalState = {
|
278 | set: set,
|
279 | get: get,
|
280 | has: has$1,
|
281 | enforce: enforce,
|
282 | getterFor: getterFor
|
283 | };
|
284 |
|
285 | var redefine = createCommonjsModule(function (module) {
|
286 | var getInternalState = internalState.get;
|
287 | var enforceInternalState = internalState.enforce;
|
288 | var TEMPLATE = String(functionToString).split('toString');
|
289 |
|
290 | shared('inspectSource', function (it) {
|
291 | return functionToString.call(it);
|
292 | });
|
293 |
|
294 | (module.exports = function (O, key, value, options) {
|
295 | var unsafe = options ? !!options.unsafe : false;
|
296 | var simple = options ? !!options.enumerable : false;
|
297 | var noTargetGet = options ? !!options.noTargetGet : false;
|
298 | if (typeof value == 'function') {
|
299 | if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
|
300 | enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
301 | }
|
302 | if (O === global_1) {
|
303 | if (simple) O[key] = value;
|
304 | else setGlobal(key, value);
|
305 | return;
|
306 | } else if (!unsafe) {
|
307 | delete O[key];
|
308 | } else if (!noTargetGet && O[key]) {
|
309 | simple = true;
|
310 | }
|
311 | if (simple) O[key] = value;
|
312 | else hide(O, key, value);
|
313 |
|
314 | })(Function.prototype, 'toString', function toString() {
|
315 | return typeof this == 'function' && getInternalState(this).source || functionToString.call(this);
|
316 | });
|
317 | });
|
318 |
|
319 | var path = global_1;
|
320 |
|
321 | var aFunction = function (variable) {
|
322 | return typeof variable == 'function' ? variable : undefined;
|
323 | };
|
324 |
|
325 | var getBuiltIn = function (namespace, method) {
|
326 | return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
|
327 | : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
|
328 | };
|
329 |
|
330 | var ceil = Math.ceil;
|
331 | var floor = Math.floor;
|
332 |
|
333 |
|
334 |
|
335 | var toInteger = function (argument) {
|
336 | return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
|
337 | };
|
338 |
|
339 | var min = Math.min;
|
340 |
|
341 |
|
342 |
|
343 | var toLength = function (argument) {
|
344 | return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0;
|
345 | };
|
346 |
|
347 | var max = Math.max;
|
348 | var min$1 = Math.min;
|
349 |
|
350 |
|
351 |
|
352 |
|
353 | var toAbsoluteIndex = function (index, length) {
|
354 | var integer = toInteger(index);
|
355 | return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
356 | };
|
357 |
|
358 |
|
359 | var createMethod = function (IS_INCLUDES) {
|
360 | return function ($this, el, fromIndex) {
|
361 | var O = toIndexedObject($this);
|
362 | var length = toLength(O.length);
|
363 | var index = toAbsoluteIndex(fromIndex, length);
|
364 | var value;
|
365 |
|
366 |
|
367 | if (IS_INCLUDES && el != el) while (length > index) {
|
368 | value = O[index++];
|
369 |
|
370 | if (value != value) return true;
|
371 |
|
372 | } else for (;length > index; index++) {
|
373 | if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
374 | } return !IS_INCLUDES && -1;
|
375 | };
|
376 | };
|
377 |
|
378 | var arrayIncludes = {
|
379 |
|
380 |
|
381 | includes: createMethod(true),
|
382 |
|
383 |
|
384 | indexOf: createMethod(false)
|
385 | };
|
386 |
|
387 | var indexOf = arrayIncludes.indexOf;
|
388 |
|
389 |
|
390 | var objectKeysInternal = function (object, names) {
|
391 | var O = toIndexedObject(object);
|
392 | var i = 0;
|
393 | var result = [];
|
394 | var key;
|
395 | for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
|
396 |
|
397 | while (names.length > i) if (has(O, key = names[i++])) {
|
398 | ~indexOf(result, key) || result.push(key);
|
399 | }
|
400 | return result;
|
401 | };
|
402 |
|
403 |
|
404 | var enumBugKeys = [
|
405 | 'constructor',
|
406 | 'hasOwnProperty',
|
407 | 'isPrototypeOf',
|
408 | 'propertyIsEnumerable',
|
409 | 'toLocaleString',
|
410 | 'toString',
|
411 | 'valueOf'
|
412 | ];
|
413 |
|
414 | var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
415 |
|
416 |
|
417 |
|
418 | var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
419 | return objectKeysInternal(O, hiddenKeys$1);
|
420 | };
|
421 |
|
422 | var objectGetOwnPropertyNames = {
|
423 | f: f$3
|
424 | };
|
425 |
|
426 | var f$4 = Object.getOwnPropertySymbols;
|
427 |
|
428 | var objectGetOwnPropertySymbols = {
|
429 | f: f$4
|
430 | };
|
431 |
|
432 |
|
433 | var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
434 | var keys = objectGetOwnPropertyNames.f(anObject(it));
|
435 | var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
436 | return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
437 | };
|
438 |
|
439 | var copyConstructorProperties = function (target, source) {
|
440 | var keys = ownKeys(source);
|
441 | var defineProperty = objectDefineProperty.f;
|
442 | var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
443 | for (var i = 0; i < keys.length; i++) {
|
444 | var key = keys[i];
|
445 | if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
446 | }
|
447 | };
|
448 |
|
449 | var replacement = /#|\.prototype\./;
|
450 |
|
451 | var isForced = function (feature, detection) {
|
452 | var value = data[normalize(feature)];
|
453 | return value == POLYFILL ? true
|
454 | : value == NATIVE ? false
|
455 | : typeof detection == 'function' ? fails(detection)
|
456 | : !!detection;
|
457 | };
|
458 |
|
459 | var normalize = isForced.normalize = function (string) {
|
460 | return String(string).replace(replacement, '.').toLowerCase();
|
461 | };
|
462 |
|
463 | var data = isForced.data = {};
|
464 | var NATIVE = isForced.NATIVE = 'N';
|
465 | var POLYFILL = isForced.POLYFILL = 'P';
|
466 |
|
467 | var isForced_1 = isForced;
|
468 |
|
469 | var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
470 |
|
471 |
|
472 |
|
473 |
|
474 |
|
475 |
|
476 | |
477 |
|
478 |
|
479 |
|
480 |
|
481 |
|
482 |
|
483 |
|
484 |
|
485 |
|
486 |
|
487 |
|
488 |
|
489 |
|
490 | var _export = function (options, source) {
|
491 | var TARGET = options.target;
|
492 | var GLOBAL = options.global;
|
493 | var STATIC = options.stat;
|
494 | var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
495 | if (GLOBAL) {
|
496 | target = global_1;
|
497 | } else if (STATIC) {
|
498 | target = global_1[TARGET] || setGlobal(TARGET, {});
|
499 | } else {
|
500 | target = (global_1[TARGET] || {}).prototype;
|
501 | }
|
502 | if (target) for (key in source) {
|
503 | sourceProperty = source[key];
|
504 | if (options.noTargetGet) {
|
505 | descriptor = getOwnPropertyDescriptor$1(target, key);
|
506 | targetProperty = descriptor && descriptor.value;
|
507 | } else targetProperty = target[key];
|
508 | FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
509 |
|
510 | if (!FORCED && targetProperty !== undefined) {
|
511 | if (typeof sourceProperty === typeof targetProperty) continue;
|
512 | copyConstructorProperties(sourceProperty, targetProperty);
|
513 | }
|
514 |
|
515 | if (options.sham || (targetProperty && targetProperty.sham)) {
|
516 | hide(sourceProperty, 'sham', true);
|
517 | }
|
518 |
|
519 | redefine(target, key, sourceProperty, options);
|
520 | }
|
521 | };
|
522 |
|
523 | var aFunction$1 = function (it) {
|
524 | if (typeof it != 'function') {
|
525 | throw TypeError(String(it) + ' is not a function');
|
526 | } return it;
|
527 | };
|
528 |
|
529 |
|
530 | var bindContext = function (fn, that, length) {
|
531 | aFunction$1(fn);
|
532 | if (that === undefined) return fn;
|
533 | switch (length) {
|
534 | case 0: return function () {
|
535 | return fn.call(that);
|
536 | };
|
537 | case 1: return function (a) {
|
538 | return fn.call(that, a);
|
539 | };
|
540 | case 2: return function (a, b) {
|
541 | return fn.call(that, a, b);
|
542 | };
|
543 | case 3: return function (a, b, c) {
|
544 | return fn.call(that, a, b, c);
|
545 | };
|
546 | }
|
547 | return function (/* ...args */) {
|
548 | return fn.apply(that, arguments);
|
549 | };
|
550 | };
|
551 |
|
552 |
|
553 |
|
554 | var toObject = function (argument) {
|
555 | return Object(requireObjectCoercible(argument));
|
556 | };
|
557 |
|
558 |
|
559 |
|
560 | var isArray = Array.isArray || function isArray(arg) {
|
561 | return classofRaw(arg) == 'Array';
|
562 | };
|
563 |
|
564 | var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
565 |
|
566 |
|
567 | return !String(Symbol());
|
568 | });
|
569 |
|
570 | var Symbol$1 = global_1.Symbol;
|
571 | var store$1 = shared('wks');
|
572 |
|
573 | var wellKnownSymbol = function (name) {
|
574 | return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
|
575 | || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
|
576 | };
|
577 |
|
578 | var SPECIES = wellKnownSymbol('species');
|
579 |
|
580 |
|
581 |
|
582 | var arraySpeciesCreate = function (originalArray, length) {
|
583 | var C;
|
584 | if (isArray(originalArray)) {
|
585 | C = originalArray.constructor;
|
586 |
|
587 | if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
|
588 | else if (isObject(C)) {
|
589 | C = C[SPECIES];
|
590 | if (C === null) C = undefined;
|
591 | }
|
592 | } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
|
593 | };
|
594 |
|
595 | var push = [].push;
|
596 |
|
597 |
|
598 | var createMethod$1 = function (TYPE) {
|
599 | var IS_MAP = TYPE == 1;
|
600 | var IS_FILTER = TYPE == 2;
|
601 | var IS_SOME = TYPE == 3;
|
602 | var IS_EVERY = TYPE == 4;
|
603 | var IS_FIND_INDEX = TYPE == 6;
|
604 | var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
605 | return function ($this, callbackfn, that, specificCreate) {
|
606 | var O = toObject($this);
|
607 | var self = indexedObject(O);
|
608 | var boundFunction = bindContext(callbackfn, that, 3);
|
609 | var length = toLength(self.length);
|
610 | var index = 0;
|
611 | var create = specificCreate || arraySpeciesCreate;
|
612 | var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
|
613 | var value, result;
|
614 | for (;length > index; index++) if (NO_HOLES || index in self) {
|
615 | value = self[index];
|
616 | result = boundFunction(value, index, O);
|
617 | if (TYPE) {
|
618 | if (IS_MAP) target[index] = result;
|
619 | else if (result) switch (TYPE) {
|
620 | case 3: return true;
|
621 | case 5: return value;
|
622 | case 6: return index;
|
623 | case 2: push.call(target, value);
|
624 | } else if (IS_EVERY) return false;
|
625 | }
|
626 | }
|
627 | return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
628 | };
|
629 | };
|
630 |
|
631 | var arrayIteration = {
|
632 |
|
633 |
|
634 | forEach: createMethod$1(0),
|
635 |
|
636 |
|
637 | map: createMethod$1(1),
|
638 |
|
639 |
|
640 | filter: createMethod$1(2),
|
641 |
|
642 |
|
643 | some: createMethod$1(3),
|
644 |
|
645 |
|
646 | every: createMethod$1(4),
|
647 |
|
648 |
|
649 | find: createMethod$1(5),
|
650 |
|
651 |
|
652 | findIndex: createMethod$1(6)
|
653 | };
|
654 |
|
655 | var SPECIES$1 = wellKnownSymbol('species');
|
656 |
|
657 | var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
|
658 | return !fails(function () {
|
659 | var array = [];
|
660 | var constructor = array.constructor = {};
|
661 | constructor[SPECIES$1] = function () {
|
662 | return { foo: 1 };
|
663 | };
|
664 | return array[METHOD_NAME](Boolean).foo !== 1;
|
665 | });
|
666 | };
|
667 |
|
668 | var $filter = arrayIteration.filter;
|
669 |
|
670 |
|
671 |
|
672 |
|
673 |
|
674 | _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('filter') }, {
|
675 | filter: function filter(callbackfn /* , thisArg */) {
|
676 | return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
677 | }
|
678 | });
|
679 |
|
680 |
|
681 |
|
682 | var objectKeys = Object.keys || function keys(O) {
|
683 | return objectKeysInternal(O, enumBugKeys);
|
684 | };
|
685 |
|
686 |
|
687 |
|
688 | var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
|
689 | anObject(O);
|
690 | var keys = objectKeys(Properties);
|
691 | var length = keys.length;
|
692 | var index = 0;
|
693 | var key;
|
694 | while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
|
695 | return O;
|
696 | };
|
697 |
|
698 | var html = getBuiltIn('document', 'documentElement');
|
699 |
|
700 | var IE_PROTO = sharedKey('IE_PROTO');
|
701 |
|
702 | var PROTOTYPE = 'prototype';
|
703 | var Empty = function () { };
|
704 |
|
705 |
|
706 | var createDict = function () {
|
707 |
|
708 | var iframe = documentCreateElement('iframe');
|
709 | var length = enumBugKeys.length;
|
710 | var lt = '<';
|
711 | var script = 'script';
|
712 | var gt = '>';
|
713 | var js = 'java' + script + ':';
|
714 | var iframeDocument;
|
715 | iframe.style.display = 'none';
|
716 | html.appendChild(iframe);
|
717 | iframe.src = String(js);
|
718 | iframeDocument = iframe.contentWindow.document;
|
719 | iframeDocument.open();
|
720 | iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt);
|
721 | iframeDocument.close();
|
722 | createDict = iframeDocument.F;
|
723 | while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
|
724 | return createDict();
|
725 | };
|
726 |
|
727 |
|
728 |
|
729 | var objectCreate = Object.create || function create(O, Properties) {
|
730 | var result;
|
731 | if (O !== null) {
|
732 | Empty[PROTOTYPE] = anObject(O);
|
733 | result = new Empty();
|
734 | Empty[PROTOTYPE] = null;
|
735 |
|
736 | result[IE_PROTO] = O;
|
737 | } else result = createDict();
|
738 | return Properties === undefined ? result : objectDefineProperties(result, Properties);
|
739 | };
|
740 |
|
741 | hiddenKeys[IE_PROTO] = true;
|
742 |
|
743 | var UNSCOPABLES = wellKnownSymbol('unscopables');
|
744 | var ArrayPrototype = Array.prototype;
|
745 |
|
746 |
|
747 |
|
748 | if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
749 | hide(ArrayPrototype, UNSCOPABLES, objectCreate(null));
|
750 | }
|
751 |
|
752 |
|
753 | var addToUnscopables = function (key) {
|
754 | ArrayPrototype[UNSCOPABLES][key] = true;
|
755 | };
|
756 |
|
757 | var $find = arrayIteration.find;
|
758 |
|
759 |
|
760 | var FIND = 'find';
|
761 | var SKIPS_HOLES = true;
|
762 |
|
763 |
|
764 | if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
765 |
|
766 |
|
767 |
|
768 | _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
769 | find: function find(callbackfn /* , that = undefined */) {
|
770 | return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
771 | }
|
772 | });
|
773 |
|
774 |
|
775 | addToUnscopables(FIND);
|
776 |
|
777 | var createProperty = function (object, key, value) {
|
778 | var propertyKey = toPrimitive(key);
|
779 | if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
780 | else object[propertyKey] = value;
|
781 | };
|
782 |
|
783 | var SPECIES$2 = wellKnownSymbol('species');
|
784 | var nativeSlice = [].slice;
|
785 | var max$1 = Math.max;
|
786 |
|
787 |
|
788 |
|
789 |
|
790 | _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('slice') }, {
|
791 | slice: function slice(start, end) {
|
792 | var O = toIndexedObject(this);
|
793 | var length = toLength(O.length);
|
794 | var k = toAbsoluteIndex(start, length);
|
795 | var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
796 |
|
797 | var Constructor, result, n;
|
798 | if (isArray(O)) {
|
799 | Constructor = O.constructor;
|
800 |
|
801 | if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
|
802 | Constructor = undefined;
|
803 | } else if (isObject(Constructor)) {
|
804 | Constructor = Constructor[SPECIES$2];
|
805 | if (Constructor === null) Constructor = undefined;
|
806 | }
|
807 | if (Constructor === Array || Constructor === undefined) {
|
808 | return nativeSlice.call(O, k, fin);
|
809 | }
|
810 | }
|
811 | result = new (Constructor === undefined ? Array : Constructor)(max$1(fin - k, 0));
|
812 | for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
|
813 | result.length = n;
|
814 | return result;
|
815 | }
|
816 | });
|
817 |
|
818 | |
819 |
|
820 |
|
821 |
|
822 |
|
823 |
|
824 |
|
825 | var filterFn = function filterFn() {
|
826 | if (!Array.prototype.filter) {
|
827 | Array.prototype.filter = function (fun
|
828 | /* , thisArg*/
|
829 | ) {
|
830 | if (this === undefined || this === null) {
|
831 | throw new TypeError();
|
832 | }
|
833 |
|
834 | var t = Object(this);
|
835 | var len = t.length >>> 0;
|
836 |
|
837 | if (typeof fun !== 'function') {
|
838 | throw new TypeError();
|
839 | }
|
840 |
|
841 | var res = [];
|
842 | var thisArg = arguments.length >= 2 ? arguments[1] : undefined;
|
843 |
|
844 | for (var i = 0; i < len; i++) {
|
845 | if (i in t) {
|
846 | var val = t[i];
|
847 |
|
848 |
|
849 |
|
850 |
|
851 |
|
852 | if (fun.call(thisArg, val, i, t)) {
|
853 | res.push(val);
|
854 | }
|
855 | }
|
856 | }
|
857 |
|
858 | return res;
|
859 | };
|
860 | }
|
861 | };
|
862 |
|
863 | $.extend($.fn.bootstrapTable.defaults, {
|
864 | reorderableColumns: false,
|
865 | maxMovingRows: 10,
|
866 | onReorderColumn: function onReorderColumn(headerFields) {
|
867 | return false;
|
868 | },
|
869 | dragaccept: null
|
870 | });
|
871 | $.extend($.fn.bootstrapTable.Constructor.EVENTS, {
|
872 | 'reorder-column.bs.table': 'onReorderColumn'
|
873 | });
|
874 | var BootstrapTable = $.fn.bootstrapTable.Constructor;
|
875 | var _initHeader = BootstrapTable.prototype.initHeader;
|
876 | var _toggleColumn = BootstrapTable.prototype._toggleColumn;
|
877 | var _toggleView = BootstrapTable.prototype.toggleView;
|
878 | var _resetView = BootstrapTable.prototype.resetView;
|
879 |
|
880 | BootstrapTable.prototype.initHeader = function () {
|
881 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
882 | args[_key] = arguments[_key];
|
883 | }
|
884 |
|
885 | _initHeader.apply(this, Array.prototype.slice.apply(args));
|
886 |
|
887 | if (!this.options.reorderableColumns) {
|
888 | return;
|
889 | }
|
890 |
|
891 | this.makeRowsReorderable();
|
892 | };
|
893 |
|
894 | BootstrapTable.prototype._toggleColumn = function () {
|
895 | for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
896 | args[_key2] = arguments[_key2];
|
897 | }
|
898 |
|
899 | _toggleColumn.apply(this, Array.prototype.slice.apply(args));
|
900 |
|
901 | if (!this.options.reorderableColumns) {
|
902 | return;
|
903 | }
|
904 |
|
905 | this.makeRowsReorderable();
|
906 | };
|
907 |
|
908 | BootstrapTable.prototype.toggleView = function () {
|
909 | for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
910 | args[_key3] = arguments[_key3];
|
911 | }
|
912 |
|
913 | _toggleView.apply(this, Array.prototype.slice.apply(args));
|
914 |
|
915 | if (!this.options.reorderableColumns) {
|
916 | return;
|
917 | }
|
918 |
|
919 | if (this.options.cardView) {
|
920 | return;
|
921 | }
|
922 |
|
923 | this.makeRowsReorderable();
|
924 | };
|
925 |
|
926 | BootstrapTable.prototype.resetView = function () {
|
927 | for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
928 | args[_key4] = arguments[_key4];
|
929 | }
|
930 |
|
931 | _resetView.apply(this, Array.prototype.slice.apply(args));
|
932 |
|
933 | if (!this.options.reorderableColumns) {
|
934 | return;
|
935 | }
|
936 |
|
937 | this.makeRowsReorderable();
|
938 | };
|
939 |
|
940 | BootstrapTable.prototype.makeRowsReorderable = function () {
|
941 | var that = this;
|
942 |
|
943 | try {
|
944 | $(this.$el).dragtable('destroy');
|
945 | } catch (e) {
|
946 | }
|
947 |
|
948 | $(this.$el).dragtable({
|
949 | maxMovingRows: that.options.maxMovingRows,
|
950 | dragaccept: that.options.dragaccept,
|
951 | clickDelay: 200,
|
952 | dragHandle: '.th-inner',
|
953 | beforeStop: function beforeStop() {
|
954 | var ths = [];
|
955 | var formatters = [];
|
956 | var columns = [];
|
957 | var columnsHidden = [];
|
958 | var columnIndex = -1;
|
959 | var optionsColumns = [];
|
960 | that.$header.find('th').each(function (i) {
|
961 | ths.push($(this).data('field'));
|
962 | formatters.push($(this).data('formatter'));
|
963 | });
|
964 |
|
965 | if (ths.length < that.columns.length) {
|
966 | columnsHidden = that.columns.filter(function (column) {
|
967 | return !column.visible;
|
968 | });
|
969 |
|
970 | for (var i = 0; i < columnsHidden.length; i++) {
|
971 | ths.push(columnsHidden[i].field);
|
972 | formatters.push(columnsHidden[i].formatter);
|
973 | }
|
974 | }
|
975 |
|
976 | for (var _i = 0; _i < ths.length; _i++) {
|
977 | columnIndex = that.fieldsColumnsIndex[ths[_i]];
|
978 |
|
979 | if (columnIndex !== -1) {
|
980 | that.fieldsColumnsIndex[ths[_i]] = _i;
|
981 | that.columns[columnIndex].fieldIndex = _i;
|
982 | columns.push(that.columns[columnIndex]);
|
983 | }
|
984 | }
|
985 |
|
986 | that.columns = columns;
|
987 | filterFn();
|
988 |
|
989 | $.each(that.columns, function (i, column) {
|
990 | var found = false;
|
991 | var field = column.field;
|
992 | that.options.columns[0].filter(function (item) {
|
993 | if (!found && item['field'] === field) {
|
994 | optionsColumns.push(item);
|
995 | found = true;
|
996 | return false;
|
997 | }
|
998 |
|
999 | return true;
|
1000 | });
|
1001 | });
|
1002 | that.options.columns[0] = optionsColumns;
|
1003 | that.header.fields = ths;
|
1004 | that.header.formatters = formatters;
|
1005 | that.initHeader();
|
1006 | that.initToolbar();
|
1007 | that.initSearchText();
|
1008 | that.initBody();
|
1009 | that.resetView();
|
1010 | that.trigger('reorder-column', ths);
|
1011 | }
|
1012 | });
|
1013 | };
|
1014 |
|
1015 | }));
|