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 = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
|
5 | })(this, (function ($$4) { 'use strict';
|
6 |
|
7 | function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
8 |
|
9 | var $__default = _interopDefaultLegacy($$4);
|
10 |
|
11 | function _classCallCheck(instance, Constructor) {
|
12 | if (!(instance instanceof Constructor)) {
|
13 | throw new TypeError("Cannot call a class as a function");
|
14 | }
|
15 | }
|
16 | function _defineProperties(target, props) {
|
17 | for (var i = 0; i < props.length; i++) {
|
18 | var descriptor = props[i];
|
19 | descriptor.enumerable = descriptor.enumerable || false;
|
20 | descriptor.configurable = true;
|
21 | if ("value" in descriptor) descriptor.writable = true;
|
22 | Object.defineProperty(target, descriptor.key, descriptor);
|
23 | }
|
24 | }
|
25 | function _createClass(Constructor, protoProps, staticProps) {
|
26 | if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
27 | if (staticProps) _defineProperties(Constructor, staticProps);
|
28 | Object.defineProperty(Constructor, "prototype", {
|
29 | writable: false
|
30 | });
|
31 | return Constructor;
|
32 | }
|
33 | function _inherits(subClass, superClass) {
|
34 | if (typeof superClass !== "function" && superClass !== null) {
|
35 | throw new TypeError("Super expression must either be null or a function");
|
36 | }
|
37 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
38 | constructor: {
|
39 | value: subClass,
|
40 | writable: true,
|
41 | configurable: true
|
42 | }
|
43 | });
|
44 | Object.defineProperty(subClass, "prototype", {
|
45 | writable: false
|
46 | });
|
47 | if (superClass) _setPrototypeOf(subClass, superClass);
|
48 | }
|
49 | function _getPrototypeOf(o) {
|
50 | _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
51 | return o.__proto__ || Object.getPrototypeOf(o);
|
52 | };
|
53 | return _getPrototypeOf(o);
|
54 | }
|
55 | function _setPrototypeOf(o, p) {
|
56 | _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
57 | o.__proto__ = p;
|
58 | return o;
|
59 | };
|
60 | return _setPrototypeOf(o, p);
|
61 | }
|
62 | function _isNativeReflectConstruct() {
|
63 | if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
64 | if (Reflect.construct.sham) return false;
|
65 | if (typeof Proxy === "function") return true;
|
66 | try {
|
67 | Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
68 | return true;
|
69 | } catch (e) {
|
70 | return false;
|
71 | }
|
72 | }
|
73 | function _assertThisInitialized(self) {
|
74 | if (self === void 0) {
|
75 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
76 | }
|
77 | return self;
|
78 | }
|
79 | function _possibleConstructorReturn(self, call) {
|
80 | if (call && (typeof call === "object" || typeof call === "function")) {
|
81 | return call;
|
82 | } else if (call !== void 0) {
|
83 | throw new TypeError("Derived constructors may only return object or undefined");
|
84 | }
|
85 | return _assertThisInitialized(self);
|
86 | }
|
87 | function _createSuper(Derived) {
|
88 | var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
89 | return function _createSuperInternal() {
|
90 | var Super = _getPrototypeOf(Derived),
|
91 | result;
|
92 | if (hasNativeReflectConstruct) {
|
93 | var NewTarget = _getPrototypeOf(this).constructor;
|
94 | result = Reflect.construct(Super, arguments, NewTarget);
|
95 | } else {
|
96 | result = Super.apply(this, arguments);
|
97 | }
|
98 | return _possibleConstructorReturn(this, result);
|
99 | };
|
100 | }
|
101 | function _superPropBase(object, property) {
|
102 | while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
103 | object = _getPrototypeOf(object);
|
104 | if (object === null) break;
|
105 | }
|
106 | return object;
|
107 | }
|
108 | function _get() {
|
109 | if (typeof Reflect !== "undefined" && Reflect.get) {
|
110 | _get = Reflect.get.bind();
|
111 | } else {
|
112 | _get = function _get(target, property, receiver) {
|
113 | var base = _superPropBase(target, property);
|
114 | if (!base) return;
|
115 | var desc = Object.getOwnPropertyDescriptor(base, property);
|
116 | if (desc.get) {
|
117 | return desc.get.call(arguments.length < 3 ? target : receiver);
|
118 | }
|
119 | return desc.value;
|
120 | };
|
121 | }
|
122 | return _get.apply(this, arguments);
|
123 | }
|
124 |
|
125 | var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
126 |
|
127 | var check = function (it) {
|
128 | return it && it.Math == Math && it;
|
129 | };
|
130 |
|
131 |
|
132 | var global$a =
|
133 |
|
134 | check(typeof globalThis == 'object' && globalThis) ||
|
135 | check(typeof window == 'object' && window) ||
|
136 |
|
137 | check(typeof self == 'object' && self) ||
|
138 | check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
139 |
|
140 | (function () { return this; })() || Function('return this')();
|
141 |
|
142 | var objectGetOwnPropertyDescriptor = {};
|
143 |
|
144 | var fails$d = function (exec) {
|
145 | try {
|
146 | return !!exec();
|
147 | } catch (error) {
|
148 | return true;
|
149 | }
|
150 | };
|
151 |
|
152 | var fails$c = fails$d;
|
153 |
|
154 |
|
155 | var descriptors = !fails$c(function () {
|
156 |
|
157 | return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
158 | });
|
159 |
|
160 | var fails$b = fails$d;
|
161 |
|
162 | var functionBindNative = !fails$b(function () {
|
163 |
|
164 | var test = (function () { }).bind();
|
165 |
|
166 | return typeof test != 'function' || test.hasOwnProperty('prototype');
|
167 | });
|
168 |
|
169 | var NATIVE_BIND$2 = functionBindNative;
|
170 |
|
171 | var call$5 = Function.prototype.call;
|
172 |
|
173 | var functionCall = NATIVE_BIND$2 ? call$5.bind(call$5) : function () {
|
174 | return call$5.apply(call$5, arguments);
|
175 | };
|
176 |
|
177 | var objectPropertyIsEnumerable = {};
|
178 |
|
179 | var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
180 |
|
181 | var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
182 |
|
183 |
|
184 | var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
185 |
|
186 |
|
187 |
|
188 | objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
189 | var descriptor = getOwnPropertyDescriptor$1(this, V);
|
190 | return !!descriptor && descriptor.enumerable;
|
191 | } : $propertyIsEnumerable;
|
192 |
|
193 | var createPropertyDescriptor$3 = function (bitmap, value) {
|
194 | return {
|
195 | enumerable: !(bitmap & 1),
|
196 | configurable: !(bitmap & 2),
|
197 | writable: !(bitmap & 4),
|
198 | value: value
|
199 | };
|
200 | };
|
201 |
|
202 | var NATIVE_BIND$1 = functionBindNative;
|
203 |
|
204 | var FunctionPrototype$1 = Function.prototype;
|
205 | var call$4 = FunctionPrototype$1.call;
|
206 | var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$4, call$4);
|
207 |
|
208 | var functionUncurryThisRaw = function (fn) {
|
209 | return NATIVE_BIND$1 ? uncurryThisWithBind(fn) : function () {
|
210 | return call$4.apply(fn, arguments);
|
211 | };
|
212 | };
|
213 |
|
214 | var uncurryThisRaw$1 = functionUncurryThisRaw;
|
215 |
|
216 | var toString$2 = uncurryThisRaw$1({}.toString);
|
217 | var stringSlice = uncurryThisRaw$1(''.slice);
|
218 |
|
219 | var classofRaw$2 = function (it) {
|
220 | return stringSlice(toString$2(it), 8, -1);
|
221 | };
|
222 |
|
223 | var classofRaw$1 = classofRaw$2;
|
224 | var uncurryThisRaw = functionUncurryThisRaw;
|
225 |
|
226 | var functionUncurryThis = function (fn) {
|
227 |
|
228 |
|
229 |
|
230 | if (classofRaw$1(fn) === 'Function') return uncurryThisRaw(fn);
|
231 | };
|
232 |
|
233 | var uncurryThis$b = functionUncurryThis;
|
234 | var fails$a = fails$d;
|
235 | var classof$4 = classofRaw$2;
|
236 |
|
237 | var $Object$3 = Object;
|
238 | var split = uncurryThis$b(''.split);
|
239 |
|
240 |
|
241 | var indexedObject = fails$a(function () {
|
242 |
|
243 |
|
244 | return !$Object$3('z').propertyIsEnumerable(0);
|
245 | }) ? function (it) {
|
246 | return classof$4(it) == 'String' ? split(it, '') : $Object$3(it);
|
247 | } : $Object$3;
|
248 |
|
249 |
|
250 |
|
251 | var isNullOrUndefined$2 = function (it) {
|
252 | return it === null || it === undefined;
|
253 | };
|
254 |
|
255 | var isNullOrUndefined$1 = isNullOrUndefined$2;
|
256 |
|
257 | var $TypeError$6 = TypeError;
|
258 |
|
259 |
|
260 |
|
261 | var requireObjectCoercible$2 = function (it) {
|
262 | if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it);
|
263 | return it;
|
264 | };
|
265 |
|
266 |
|
267 | var IndexedObject$3 = indexedObject;
|
268 | var requireObjectCoercible$1 = requireObjectCoercible$2;
|
269 |
|
270 | var toIndexedObject$5 = function (it) {
|
271 | return IndexedObject$3(requireObjectCoercible$1(it));
|
272 | };
|
273 |
|
274 | var documentAll$2 = typeof document == 'object' && document.all;
|
275 |
|
276 |
|
277 | var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
|
278 |
|
279 | var documentAll_1 = {
|
280 | all: documentAll$2,
|
281 | IS_HTMLDDA: IS_HTMLDDA
|
282 | };
|
283 |
|
284 | var $documentAll$1 = documentAll_1;
|
285 |
|
286 | var documentAll$1 = $documentAll$1.all;
|
287 |
|
288 |
|
289 |
|
290 | var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) {
|
291 | return typeof argument == 'function' || argument === documentAll$1;
|
292 | } : function (argument) {
|
293 | return typeof argument == 'function';
|
294 | };
|
295 |
|
296 | var isCallable$b = isCallable$c;
|
297 | var $documentAll = documentAll_1;
|
298 |
|
299 | var documentAll = $documentAll.all;
|
300 |
|
301 | var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) {
|
302 | return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll;
|
303 | } : function (it) {
|
304 | return typeof it == 'object' ? it !== null : isCallable$b(it);
|
305 | };
|
306 |
|
307 | var global$9 = global$a;
|
308 | var isCallable$a = isCallable$c;
|
309 |
|
310 | var aFunction = function (argument) {
|
311 | return isCallable$a(argument) ? argument : undefined;
|
312 | };
|
313 |
|
314 | var getBuiltIn$5 = function (namespace, method) {
|
315 | return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
|
316 | };
|
317 |
|
318 | var uncurryThis$a = functionUncurryThis;
|
319 |
|
320 | var objectIsPrototypeOf = uncurryThis$a({}.isPrototypeOf);
|
321 |
|
322 | var getBuiltIn$4 = getBuiltIn$5;
|
323 |
|
324 | var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
|
325 |
|
326 | var global$8 = global$a;
|
327 | var userAgent = engineUserAgent;
|
328 |
|
329 | var process = global$8.process;
|
330 | var Deno = global$8.Deno;
|
331 | var versions = process && process.versions || Deno && Deno.version;
|
332 | var v8 = versions && versions.v8;
|
333 | var match, version;
|
334 |
|
335 | if (v8) {
|
336 | match = v8.split('.');
|
337 |
|
338 |
|
339 | version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
340 | }
|
341 |
|
342 |
|
343 |
|
344 | if (!version && userAgent) {
|
345 | match = userAgent.match(/Edge\/(\d+)/);
|
346 | if (!match || match[1] >= 74) {
|
347 | match = userAgent.match(/Chrome\/(\d+)/);
|
348 | if (match) version = +match[1];
|
349 | }
|
350 | }
|
351 |
|
352 | var engineV8Version = version;
|
353 |
|
354 |
|
355 |
|
356 | var V8_VERSION$2 = engineV8Version;
|
357 | var fails$9 = fails$d;
|
358 |
|
359 |
|
360 | var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
|
361 | var symbol = Symbol();
|
362 |
|
363 |
|
364 | return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
365 |
|
366 | !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
|
367 | });
|
368 |
|
369 |
|
370 |
|
371 | var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
372 |
|
373 | var useSymbolAsUid = NATIVE_SYMBOL$1
|
374 | && !Symbol.sham
|
375 | && typeof Symbol.iterator == 'symbol';
|
376 |
|
377 | var getBuiltIn$3 = getBuiltIn$5;
|
378 | var isCallable$9 = isCallable$c;
|
379 | var isPrototypeOf = objectIsPrototypeOf;
|
380 | var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
381 |
|
382 | var $Object$2 = Object;
|
383 |
|
384 | var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
385 | return typeof it == 'symbol';
|
386 | } : function (it) {
|
387 | var $Symbol = getBuiltIn$3('Symbol');
|
388 | return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
|
389 | };
|
390 |
|
391 | var $String$1 = String;
|
392 |
|
393 | var tryToString$1 = function (argument) {
|
394 | try {
|
395 | return $String$1(argument);
|
396 | } catch (error) {
|
397 | return 'Object';
|
398 | }
|
399 | };
|
400 |
|
401 | var isCallable$8 = isCallable$c;
|
402 | var tryToString = tryToString$1;
|
403 |
|
404 | var $TypeError$5 = TypeError;
|
405 |
|
406 |
|
407 | var aCallable$2 = function (argument) {
|
408 | if (isCallable$8(argument)) return argument;
|
409 | throw $TypeError$5(tryToString(argument) + ' is not a function');
|
410 | };
|
411 |
|
412 | var aCallable$1 = aCallable$2;
|
413 | var isNullOrUndefined = isNullOrUndefined$2;
|
414 |
|
415 |
|
416 |
|
417 | var getMethod$1 = function (V, P) {
|
418 | var func = V[P];
|
419 | return isNullOrUndefined(func) ? undefined : aCallable$1(func);
|
420 | };
|
421 |
|
422 | var call$3 = functionCall;
|
423 | var isCallable$7 = isCallable$c;
|
424 | var isObject$6 = isObject$7;
|
425 |
|
426 | var $TypeError$4 = TypeError;
|
427 |
|
428 |
|
429 |
|
430 | var ordinaryToPrimitive$1 = function (input, pref) {
|
431 | var fn, val;
|
432 | if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
|
433 | if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$3(fn, input))) return val;
|
434 | if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
|
435 | throw $TypeError$4("Can't convert object to primitive value");
|
436 | };
|
437 |
|
438 | var shared$3 = {exports: {}};
|
439 |
|
440 | var global$7 = global$a;
|
441 |
|
442 |
|
443 | var defineProperty$3 = Object.defineProperty;
|
444 |
|
445 | var defineGlobalProperty$3 = function (key, value) {
|
446 | try {
|
447 | defineProperty$3(global$7, key, { value: value, configurable: true, writable: true });
|
448 | } catch (error) {
|
449 | global$7[key] = value;
|
450 | } return value;
|
451 | };
|
452 |
|
453 | var global$6 = global$a;
|
454 | var defineGlobalProperty$2 = defineGlobalProperty$3;
|
455 |
|
456 | var SHARED = '__core-js_shared__';
|
457 | var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
|
458 |
|
459 | var sharedStore = store$3;
|
460 |
|
461 | var store$2 = sharedStore;
|
462 |
|
463 | (shared$3.exports = function (key, value) {
|
464 | return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
465 | })('versions', []).push({
|
466 | version: '3.25.5',
|
467 | mode: 'global',
|
468 | copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
469 | license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE',
|
470 | source: 'https://github.com/zloirock/core-js'
|
471 | });
|
472 |
|
473 | var requireObjectCoercible = requireObjectCoercible$2;
|
474 |
|
475 | var $Object$1 = Object;
|
476 |
|
477 |
|
478 |
|
479 | var toObject$4 = function (argument) {
|
480 | return $Object$1(requireObjectCoercible(argument));
|
481 | };
|
482 |
|
483 | var uncurryThis$9 = functionUncurryThis;
|
484 | var toObject$3 = toObject$4;
|
485 |
|
486 | var hasOwnProperty = uncurryThis$9({}.hasOwnProperty);
|
487 |
|
488 |
|
489 |
|
490 |
|
491 | var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
492 | return hasOwnProperty(toObject$3(it), key);
|
493 | };
|
494 |
|
495 | var uncurryThis$8 = functionUncurryThis;
|
496 |
|
497 | var id = 0;
|
498 | var postfix = Math.random();
|
499 | var toString$1 = uncurryThis$8(1.0.toString);
|
500 |
|
501 | var uid$2 = function (key) {
|
502 | return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$1(++id + postfix, 36);
|
503 | };
|
504 |
|
505 | var global$5 = global$a;
|
506 | var shared$2 = shared$3.exports;
|
507 | var hasOwn$6 = hasOwnProperty_1;
|
508 | var uid$1 = uid$2;
|
509 | var NATIVE_SYMBOL = symbolConstructorDetection;
|
510 | var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
511 |
|
512 | var WellKnownSymbolsStore = shared$2('wks');
|
513 | var Symbol$1 = global$5.Symbol;
|
514 | var symbolFor = Symbol$1 && Symbol$1['for'];
|
515 | var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
516 |
|
517 | var wellKnownSymbol$7 = function (name) {
|
518 | if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
519 | var description = 'Symbol.' + name;
|
520 | if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
|
521 | WellKnownSymbolsStore[name] = Symbol$1[name];
|
522 | } else if (USE_SYMBOL_AS_UID && symbolFor) {
|
523 | WellKnownSymbolsStore[name] = symbolFor(description);
|
524 | } else {
|
525 | WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
526 | }
|
527 | } return WellKnownSymbolsStore[name];
|
528 | };
|
529 |
|
530 | var call$2 = functionCall;
|
531 | var isObject$5 = isObject$7;
|
532 | var isSymbol$1 = isSymbol$2;
|
533 | var getMethod = getMethod$1;
|
534 | var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
535 | var wellKnownSymbol$6 = wellKnownSymbol$7;
|
536 |
|
537 | var $TypeError$3 = TypeError;
|
538 | var TO_PRIMITIVE = wellKnownSymbol$6('toPrimitive');
|
539 |
|
540 |
|
541 |
|
542 | var toPrimitive$1 = function (input, pref) {
|
543 | if (!isObject$5(input) || isSymbol$1(input)) return input;
|
544 | var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
545 | var result;
|
546 | if (exoticToPrim) {
|
547 | if (pref === undefined) pref = 'default';
|
548 | result = call$2(exoticToPrim, input, pref);
|
549 | if (!isObject$5(result) || isSymbol$1(result)) return result;
|
550 | throw $TypeError$3("Can't convert object to primitive value");
|
551 | }
|
552 | if (pref === undefined) pref = 'number';
|
553 | return ordinaryToPrimitive(input, pref);
|
554 | };
|
555 |
|
556 | var toPrimitive = toPrimitive$1;
|
557 | var isSymbol = isSymbol$2;
|
558 |
|
559 |
|
560 |
|
561 | var toPropertyKey$3 = function (argument) {
|
562 | var key = toPrimitive(argument, 'string');
|
563 | return isSymbol(key) ? key : key + '';
|
564 | };
|
565 |
|
566 | var global$4 = global$a;
|
567 | var isObject$4 = isObject$7;
|
568 |
|
569 | var document$1 = global$4.document;
|
570 |
|
571 | var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
|
572 |
|
573 | var documentCreateElement$1 = function (it) {
|
574 | return EXISTS$1 ? document$1.createElement(it) : {};
|
575 | };
|
576 |
|
577 | var DESCRIPTORS$8 = descriptors;
|
578 | var fails$8 = fails$d;
|
579 | var createElement = documentCreateElement$1;
|
580 |
|
581 |
|
582 | var ie8DomDefine = !DESCRIPTORS$8 && !fails$8(function () {
|
583 |
|
584 | return Object.defineProperty(createElement('div'), 'a', {
|
585 | get: function () { return 7; }
|
586 | }).a != 7;
|
587 | });
|
588 |
|
589 | var DESCRIPTORS$7 = descriptors;
|
590 | var call$1 = functionCall;
|
591 | var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
592 | var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
593 | var toIndexedObject$4 = toIndexedObject$5;
|
594 | var toPropertyKey$2 = toPropertyKey$3;
|
595 | var hasOwn$5 = hasOwnProperty_1;
|
596 | var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
597 |
|
598 |
|
599 | var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
600 |
|
601 |
|
602 |
|
603 | objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
604 | O = toIndexedObject$4(O);
|
605 | P = toPropertyKey$2(P);
|
606 | if (IE8_DOM_DEFINE$1) try {
|
607 | return $getOwnPropertyDescriptor$1(O, P);
|
608 | } catch (error) { }
|
609 | if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
610 | };
|
611 |
|
612 | var objectDefineProperty = {};
|
613 |
|
614 | var DESCRIPTORS$6 = descriptors;
|
615 | var fails$7 = fails$d;
|
616 |
|
617 |
|
618 |
|
619 | var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$7(function () {
|
620 |
|
621 | return Object.defineProperty(function () { }, 'prototype', {
|
622 | value: 42,
|
623 | writable: false
|
624 | }).prototype != 42;
|
625 | });
|
626 |
|
627 | var isObject$3 = isObject$7;
|
628 |
|
629 | var $String = String;
|
630 | var $TypeError$2 = TypeError;
|
631 |
|
632 |
|
633 | var anObject$4 = function (argument) {
|
634 | if (isObject$3(argument)) return argument;
|
635 | throw $TypeError$2($String(argument) + ' is not an object');
|
636 | };
|
637 |
|
638 | var DESCRIPTORS$5 = descriptors;
|
639 | var IE8_DOM_DEFINE = ie8DomDefine;
|
640 | var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
641 | var anObject$3 = anObject$4;
|
642 | var toPropertyKey$1 = toPropertyKey$3;
|
643 |
|
644 | var $TypeError$1 = TypeError;
|
645 |
|
646 | var $defineProperty = Object.defineProperty;
|
647 |
|
648 | var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
649 | var ENUMERABLE = 'enumerable';
|
650 | var CONFIGURABLE$1 = 'configurable';
|
651 | var WRITABLE = 'writable';
|
652 |
|
653 |
|
654 |
|
655 | objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
656 | anObject$3(O);
|
657 | P = toPropertyKey$1(P);
|
658 | anObject$3(Attributes);
|
659 | if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
660 | var current = $getOwnPropertyDescriptor(O, P);
|
661 | if (current && current[WRITABLE]) {
|
662 | O[P] = Attributes.value;
|
663 | Attributes = {
|
664 | configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
665 | enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
666 | writable: false
|
667 | };
|
668 | }
|
669 | } return $defineProperty(O, P, Attributes);
|
670 | } : $defineProperty : function defineProperty(O, P, Attributes) {
|
671 | anObject$3(O);
|
672 | P = toPropertyKey$1(P);
|
673 | anObject$3(Attributes);
|
674 | if (IE8_DOM_DEFINE) try {
|
675 | return $defineProperty(O, P, Attributes);
|
676 | } catch (error) { }
|
677 | if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
|
678 | if ('value' in Attributes) O[P] = Attributes.value;
|
679 | return O;
|
680 | };
|
681 |
|
682 | var DESCRIPTORS$4 = descriptors;
|
683 | var definePropertyModule$4 = objectDefineProperty;
|
684 | var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
685 |
|
686 | var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
|
687 | return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
|
688 | } : function (object, key, value) {
|
689 | object[key] = value;
|
690 | return object;
|
691 | };
|
692 |
|
693 | var makeBuiltIn$2 = {exports: {}};
|
694 |
|
695 | var DESCRIPTORS$3 = descriptors;
|
696 | var hasOwn$4 = hasOwnProperty_1;
|
697 |
|
698 | var FunctionPrototype = Function.prototype;
|
699 |
|
700 | var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
|
701 |
|
702 | var EXISTS = hasOwn$4(FunctionPrototype, 'name');
|
703 |
|
704 | var PROPER = EXISTS && (function something() { }).name === 'something';
|
705 | var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
|
706 |
|
707 | var functionName = {
|
708 | EXISTS: EXISTS,
|
709 | PROPER: PROPER,
|
710 | CONFIGURABLE: CONFIGURABLE
|
711 | };
|
712 |
|
713 | var uncurryThis$7 = functionUncurryThis;
|
714 | var isCallable$6 = isCallable$c;
|
715 | var store$1 = sharedStore;
|
716 |
|
717 | var functionToString = uncurryThis$7(Function.toString);
|
718 |
|
719 |
|
720 | if (!isCallable$6(store$1.inspectSource)) {
|
721 | store$1.inspectSource = function (it) {
|
722 | return functionToString(it);
|
723 | };
|
724 | }
|
725 |
|
726 | var inspectSource$2 = store$1.inspectSource;
|
727 |
|
728 | var global$3 = global$a;
|
729 | var isCallable$5 = isCallable$c;
|
730 |
|
731 | var WeakMap$1 = global$3.WeakMap;
|
732 |
|
733 | var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
734 |
|
735 | var shared$1 = shared$3.exports;
|
736 | var uid = uid$2;
|
737 |
|
738 | var keys = shared$1('keys');
|
739 |
|
740 | var sharedKey$2 = function (key) {
|
741 | return keys[key] || (keys[key] = uid(key));
|
742 | };
|
743 |
|
744 | var hiddenKeys$4 = {};
|
745 |
|
746 | var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
747 | var global$2 = global$a;
|
748 | var isObject$2 = isObject$7;
|
749 | var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
750 | var hasOwn$3 = hasOwnProperty_1;
|
751 | var shared = sharedStore;
|
752 | var sharedKey$1 = sharedKey$2;
|
753 | var hiddenKeys$3 = hiddenKeys$4;
|
754 |
|
755 | var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
756 | var TypeError$1 = global$2.TypeError;
|
757 | var WeakMap = global$2.WeakMap;
|
758 | var set, get, has;
|
759 |
|
760 | var enforce = function (it) {
|
761 | return has(it) ? get(it) : set(it, {});
|
762 | };
|
763 |
|
764 | var getterFor = function (TYPE) {
|
765 | return function (it) {
|
766 | var state;
|
767 | if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
|
768 | throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
769 | } return state;
|
770 | };
|
771 | };
|
772 |
|
773 | if (NATIVE_WEAK_MAP || shared.state) {
|
774 | var store = shared.state || (shared.state = new WeakMap());
|
775 |
|
776 | store.get = store.get;
|
777 | store.has = store.has;
|
778 | store.set = store.set;
|
779 |
|
780 | set = function (it, metadata) {
|
781 | if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
782 | metadata.facade = it;
|
783 | store.set(it, metadata);
|
784 | return metadata;
|
785 | };
|
786 | get = function (it) {
|
787 | return store.get(it) || {};
|
788 | };
|
789 | has = function (it) {
|
790 | return store.has(it);
|
791 | };
|
792 | } else {
|
793 | var STATE = sharedKey$1('state');
|
794 | hiddenKeys$3[STATE] = true;
|
795 | set = function (it, metadata) {
|
796 | if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
797 | metadata.facade = it;
|
798 | createNonEnumerableProperty$1(it, STATE, metadata);
|
799 | return metadata;
|
800 | };
|
801 | get = function (it) {
|
802 | return hasOwn$3(it, STATE) ? it[STATE] : {};
|
803 | };
|
804 | has = function (it) {
|
805 | return hasOwn$3(it, STATE);
|
806 | };
|
807 | }
|
808 |
|
809 | var internalState = {
|
810 | set: set,
|
811 | get: get,
|
812 | has: has,
|
813 | enforce: enforce,
|
814 | getterFor: getterFor
|
815 | };
|
816 |
|
817 | var fails$6 = fails$d;
|
818 | var isCallable$4 = isCallable$c;
|
819 | var hasOwn$2 = hasOwnProperty_1;
|
820 | var DESCRIPTORS$2 = descriptors;
|
821 | var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
822 | var inspectSource$1 = inspectSource$2;
|
823 | var InternalStateModule = internalState;
|
824 |
|
825 | var enforceInternalState = InternalStateModule.enforce;
|
826 | var getInternalState = InternalStateModule.get;
|
827 | // eslint-disable-next-line es/no-object-defineproperty -- safe
|
828 | var defineProperty$2 = Object.defineProperty;
|
829 |
|
830 | var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$6(function () {
|
831 | return defineProperty$2(function () { }, 'length', { value: 8 }).length !== 8;
|
832 | });
|
833 |
|
834 | var TEMPLATE = String(String).split('String');
|
835 |
|
836 | var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
837 | if (String(name).slice(0, 7) === 'Symbol(') {
|
838 | name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
839 | }
|
840 | if (options && options.getter) name = 'get ' + name;
|
841 | if (options && options.setter) name = 'set ' + name;
|
842 | if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
843 | if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
|
844 | else value.name = name;
|
845 | }
|
846 | if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
|
847 | defineProperty$2(value, 'length', { value: options.arity });
|
848 | }
|
849 | try {
|
850 | if (options && hasOwn$2(options, 'constructor') && options.constructor) {
|
851 | if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
|
852 |
|
853 | } else if (value.prototype) value.prototype = undefined;
|
854 | } catch (error) { }
|
855 | var state = enforceInternalState(value);
|
856 | if (!hasOwn$2(state, 'source')) {
|
857 | state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
858 | } return value;
|
859 | };
|
860 |
|
861 |
|
862 |
|
863 | Function.prototype.toString = makeBuiltIn$1(function toString() {
|
864 | return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
|
865 | }, 'toString');
|
866 |
|
867 | var isCallable$3 = isCallable$c;
|
868 | var definePropertyModule$3 = objectDefineProperty;
|
869 | var makeBuiltIn = makeBuiltIn$2.exports;
|
870 | var defineGlobalProperty$1 = defineGlobalProperty$3;
|
871 |
|
872 | var defineBuiltIn$2 = function (O, key, value, options) {
|
873 | if (!options) options = {};
|
874 | var simple = options.enumerable;
|
875 | var name = options.name !== undefined ? options.name : key;
|
876 | if (isCallable$3(value)) makeBuiltIn(value, name, options);
|
877 | if (options.global) {
|
878 | if (simple) O[key] = value;
|
879 | else defineGlobalProperty$1(key, value);
|
880 | } else {
|
881 | try {
|
882 | if (!options.unsafe) delete O[key];
|
883 | else if (O[key]) simple = true;
|
884 | } catch (error) { }
|
885 | if (simple) O[key] = value;
|
886 | else definePropertyModule$3.f(O, key, {
|
887 | value: value,
|
888 | enumerable: false,
|
889 | configurable: !options.nonConfigurable,
|
890 | writable: !options.nonWritable
|
891 | });
|
892 | } return O;
|
893 | };
|
894 |
|
895 | var objectGetOwnPropertyNames = {};
|
896 |
|
897 | var ceil = Math.ceil;
|
898 | var floor = Math.floor;
|
899 |
|
900 |
|
901 |
|
902 |
|
903 | var mathTrunc = Math.trunc || function trunc(x) {
|
904 | var n = +x;
|
905 | return (n > 0 ? floor : ceil)(n);
|
906 | };
|
907 |
|
908 | var trunc = mathTrunc;
|
909 |
|
910 |
|
911 |
|
912 | var toIntegerOrInfinity$2 = function (argument) {
|
913 | var number = +argument;
|
914 |
|
915 | return number !== number || number === 0 ? 0 : trunc(number);
|
916 | };
|
917 |
|
918 | var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
919 |
|
920 | var max = Math.max;
|
921 | var min$1 = Math.min;
|
922 |
|
923 |
|
924 |
|
925 |
|
926 | var toAbsoluteIndex$1 = function (index, length) {
|
927 | var integer = toIntegerOrInfinity$1(index);
|
928 | return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
929 | };
|
930 |
|
931 | var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
932 |
|
933 | var min = Math.min;
|
934 |
|
935 |
|
936 |
|
937 | var toLength$1 = function (argument) {
|
938 | return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0;
|
939 | };
|
940 |
|
941 | var toLength = toLength$1;
|
942 |
|
943 |
|
944 |
|
945 | var lengthOfArrayLike$3 = function (obj) {
|
946 | return toLength(obj.length);
|
947 | };
|
948 |
|
949 | var toIndexedObject$3 = toIndexedObject$5;
|
950 | var toAbsoluteIndex = toAbsoluteIndex$1;
|
951 | var lengthOfArrayLike$2 = lengthOfArrayLike$3;
|
952 |
|
953 |
|
954 | var createMethod$1 = function (IS_INCLUDES) {
|
955 | return function ($this, el, fromIndex) {
|
956 | var O = toIndexedObject$3($this);
|
957 | var length = lengthOfArrayLike$2(O);
|
958 | var index = toAbsoluteIndex(fromIndex, length);
|
959 | var value;
|
960 |
|
961 |
|
962 | if (IS_INCLUDES && el != el) while (length > index) {
|
963 | value = O[index++];
|
964 |
|
965 | if (value != value) return true;
|
966 |
|
967 | } else for (;length > index; index++) {
|
968 | if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
969 | } return !IS_INCLUDES && -1;
|
970 | };
|
971 | };
|
972 |
|
973 | var arrayIncludes = {
|
974 |
|
975 |
|
976 | includes: createMethod$1(true),
|
977 |
|
978 |
|
979 | indexOf: createMethod$1(false)
|
980 | };
|
981 |
|
982 | var uncurryThis$6 = functionUncurryThis;
|
983 | var hasOwn$1 = hasOwnProperty_1;
|
984 | var toIndexedObject$2 = toIndexedObject$5;
|
985 | var indexOf = arrayIncludes.indexOf;
|
986 | var hiddenKeys$2 = hiddenKeys$4;
|
987 |
|
988 | var push$1 = uncurryThis$6([].push);
|
989 |
|
990 | var objectKeysInternal = function (object, names) {
|
991 | var O = toIndexedObject$2(object);
|
992 | var i = 0;
|
993 | var result = [];
|
994 | var key;
|
995 | for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
|
996 |
|
997 | while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
|
998 | ~indexOf(result, key) || push$1(result, key);
|
999 | }
|
1000 | return result;
|
1001 | };
|
1002 |
|
1003 |
|
1004 | var enumBugKeys$3 = [
|
1005 | 'constructor',
|
1006 | 'hasOwnProperty',
|
1007 | 'isPrototypeOf',
|
1008 | 'propertyIsEnumerable',
|
1009 | 'toLocaleString',
|
1010 | 'toString',
|
1011 | 'valueOf'
|
1012 | ];
|
1013 |
|
1014 | var internalObjectKeys$1 = objectKeysInternal;
|
1015 | var enumBugKeys$2 = enumBugKeys$3;
|
1016 |
|
1017 | var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
1018 |
|
1019 |
|
1020 |
|
1021 |
|
1022 | objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
1023 | return internalObjectKeys$1(O, hiddenKeys$1);
|
1024 | };
|
1025 |
|
1026 | var objectGetOwnPropertySymbols = {};
|
1027 |
|
1028 |
|
1029 | objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
1030 |
|
1031 | var getBuiltIn$2 = getBuiltIn$5;
|
1032 | var uncurryThis$5 = functionUncurryThis;
|
1033 | var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
1034 | var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
1035 | var anObject$2 = anObject$4;
|
1036 |
|
1037 | var concat$1 = uncurryThis$5([].concat);
|
1038 |
|
1039 |
|
1040 | var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
1041 | var keys = getOwnPropertyNamesModule.f(anObject$2(it));
|
1042 | var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
1043 | return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
1044 | };
|
1045 |
|
1046 | var hasOwn = hasOwnProperty_1;
|
1047 | var ownKeys = ownKeys$1;
|
1048 | var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
1049 | var definePropertyModule$2 = objectDefineProperty;
|
1050 |
|
1051 | var copyConstructorProperties$1 = function (target, source, exceptions) {
|
1052 | var keys = ownKeys(source);
|
1053 | var defineProperty = definePropertyModule$2.f;
|
1054 | var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
1055 | for (var i = 0; i < keys.length; i++) {
|
1056 | var key = keys[i];
|
1057 | if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
1058 | defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
1059 | }
|
1060 | }
|
1061 | };
|
1062 |
|
1063 | var fails$5 = fails$d;
|
1064 | var isCallable$2 = isCallable$c;
|
1065 |
|
1066 | var replacement = /#|\.prototype\./;
|
1067 |
|
1068 | var isForced$1 = function (feature, detection) {
|
1069 | var value = data[normalize(feature)];
|
1070 | return value == POLYFILL ? true
|
1071 | : value == NATIVE ? false
|
1072 | : isCallable$2(detection) ? fails$5(detection)
|
1073 | : !!detection;
|
1074 | };
|
1075 |
|
1076 | var normalize = isForced$1.normalize = function (string) {
|
1077 | return String(string).replace(replacement, '.').toLowerCase();
|
1078 | };
|
1079 |
|
1080 | var data = isForced$1.data = {};
|
1081 | var NATIVE = isForced$1.NATIVE = 'N';
|
1082 | var POLYFILL = isForced$1.POLYFILL = 'P';
|
1083 |
|
1084 | var isForced_1 = isForced$1;
|
1085 |
|
1086 | var global$1 = global$a;
|
1087 | var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
1088 | var createNonEnumerableProperty = createNonEnumerableProperty$2;
|
1089 | var defineBuiltIn$1 = defineBuiltIn$2;
|
1090 | var defineGlobalProperty = defineGlobalProperty$3;
|
1091 | var copyConstructorProperties = copyConstructorProperties$1;
|
1092 | var isForced = isForced_1;
|
1093 |
|
1094 | |
1095 |
|
1096 |
|
1097 |
|
1098 |
|
1099 |
|
1100 |
|
1101 |
|
1102 |
|
1103 |
|
1104 |
|
1105 |
|
1106 |
|
1107 |
|
1108 |
|
1109 | var _export = function (options, source) {
|
1110 | var TARGET = options.target;
|
1111 | var GLOBAL = options.global;
|
1112 | var STATIC = options.stat;
|
1113 | var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
1114 | if (GLOBAL) {
|
1115 | target = global$1;
|
1116 | } else if (STATIC) {
|
1117 | target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
|
1118 | } else {
|
1119 | target = (global$1[TARGET] || {}).prototype;
|
1120 | }
|
1121 | if (target) for (key in source) {
|
1122 | sourceProperty = source[key];
|
1123 | if (options.dontCallGetSet) {
|
1124 | descriptor = getOwnPropertyDescriptor(target, key);
|
1125 | targetProperty = descriptor && descriptor.value;
|
1126 | } else targetProperty = target[key];
|
1127 | FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
1128 |
|
1129 | if (!FORCED && targetProperty !== undefined) {
|
1130 | if (typeof sourceProperty == typeof targetProperty) continue;
|
1131 | copyConstructorProperties(sourceProperty, targetProperty);
|
1132 | }
|
1133 |
|
1134 | if (options.sham || (targetProperty && targetProperty.sham)) {
|
1135 | createNonEnumerableProperty(sourceProperty, 'sham', true);
|
1136 | }
|
1137 | defineBuiltIn$1(target, key, sourceProperty, options);
|
1138 | }
|
1139 | };
|
1140 |
|
1141 | var internalObjectKeys = objectKeysInternal;
|
1142 | var enumBugKeys$1 = enumBugKeys$3;
|
1143 |
|
1144 |
|
1145 |
|
1146 |
|
1147 | var objectKeys$2 = Object.keys || function keys(O) {
|
1148 | return internalObjectKeys(O, enumBugKeys$1);
|
1149 | };
|
1150 |
|
1151 | var DESCRIPTORS$1 = descriptors;
|
1152 | var uncurryThis$4 = functionUncurryThis;
|
1153 | var call = functionCall;
|
1154 | var fails$4 = fails$d;
|
1155 | var objectKeys$1 = objectKeys$2;
|
1156 | var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
1157 | var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
1158 | var toObject$2 = toObject$4;
|
1159 | var IndexedObject$2 = indexedObject;
|
1160 |
|
1161 |
|
1162 | var $assign = Object.assign;
|
1163 |
|
1164 | var defineProperty$1 = Object.defineProperty;
|
1165 | var concat = uncurryThis$4([].concat);
|
1166 |
|
1167 |
|
1168 |
|
1169 | var objectAssign = !$assign || fails$4(function () {
|
1170 |
|
1171 | if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
|
1172 | enumerable: true,
|
1173 | get: function () {
|
1174 | defineProperty$1(this, 'b', {
|
1175 | value: 3,
|
1176 | enumerable: false
|
1177 | });
|
1178 | }
|
1179 | }), { b: 2 })).b !== 1) return true;
|
1180 |
|
1181 | var A = {};
|
1182 | var B = {};
|
1183 |
|
1184 | var symbol = Symbol();
|
1185 | var alphabet = 'abcdefghijklmnopqrst';
|
1186 | A[symbol] = 7;
|
1187 | alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
1188 | return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
|
1189 | }) ? function assign(target, source) {
|
1190 | var T = toObject$2(target);
|
1191 | var argumentsLength = arguments.length;
|
1192 | var index = 1;
|
1193 | var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
1194 | var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
1195 | while (argumentsLength > index) {
|
1196 | var S = IndexedObject$2(arguments[index++]);
|
1197 | var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
1198 | var length = keys.length;
|
1199 | var j = 0;
|
1200 | var key;
|
1201 | while (length > j) {
|
1202 | key = keys[j++];
|
1203 | if (!DESCRIPTORS$1 || call(propertyIsEnumerable, S, key)) T[key] = S[key];
|
1204 | }
|
1205 | } return T;
|
1206 | } : $assign;
|
1207 |
|
1208 | var $$3 = _export;
|
1209 | var assign = objectAssign;
|
1210 |
|
1211 |
|
1212 |
|
1213 |
|
1214 | $$3({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
1215 | assign: assign
|
1216 | });
|
1217 |
|
1218 | var classof$3 = classofRaw$2;
|
1219 |
|
1220 |
|
1221 |
|
1222 |
|
1223 | var isArray$2 = Array.isArray || function isArray(argument) {
|
1224 | return classof$3(argument) == 'Array';
|
1225 | };
|
1226 |
|
1227 | var $TypeError = TypeError;
|
1228 | var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
1229 |
|
1230 | var doesNotExceedSafeInteger$1 = function (it) {
|
1231 | if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
|
1232 | return it;
|
1233 | };
|
1234 |
|
1235 | var toPropertyKey = toPropertyKey$3;
|
1236 | var definePropertyModule$1 = objectDefineProperty;
|
1237 | var createPropertyDescriptor = createPropertyDescriptor$3;
|
1238 |
|
1239 | var createProperty$1 = function (object, key, value) {
|
1240 | var propertyKey = toPropertyKey(key);
|
1241 | if (propertyKey in object) definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor(0, value));
|
1242 | else object[propertyKey] = value;
|
1243 | };
|
1244 |
|
1245 | var wellKnownSymbol$5 = wellKnownSymbol$7;
|
1246 |
|
1247 | var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
|
1248 | var test = {};
|
1249 |
|
1250 | test[TO_STRING_TAG$1] = 'z';
|
1251 |
|
1252 | var toStringTagSupport = String(test) === '[object z]';
|
1253 |
|
1254 | var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
1255 | var isCallable$1 = isCallable$c;
|
1256 | var classofRaw = classofRaw$2;
|
1257 | var wellKnownSymbol$4 = wellKnownSymbol$7;
|
1258 |
|
1259 | var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
|
1260 | var $Object = Object;
|
1261 |
|
1262 |
|
1263 | var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
1264 |
|
1265 |
|
1266 | var tryGet = function (it, key) {
|
1267 | try {
|
1268 | return it[key];
|
1269 | } catch (error) { }
|
1270 | };
|
1271 |
|
1272 |
|
1273 | var classof$2 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
1274 | var O, tag, result;
|
1275 | return it === undefined ? 'Undefined' : it === null ? 'Null'
|
1276 |
|
1277 | : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
1278 |
|
1279 | : CORRECT_ARGUMENTS ? classofRaw(O)
|
1280 |
|
1281 | : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
|
1282 | };
|
1283 |
|
1284 | var uncurryThis$3 = functionUncurryThis;
|
1285 | var fails$3 = fails$d;
|
1286 | var isCallable = isCallable$c;
|
1287 | var classof$1 = classof$2;
|
1288 | var getBuiltIn$1 = getBuiltIn$5;
|
1289 | var inspectSource = inspectSource$2;
|
1290 |
|
1291 | var noop = function () { };
|
1292 | var empty = [];
|
1293 | var construct = getBuiltIn$1('Reflect', 'construct');
|
1294 | var constructorRegExp = /^\s*(?:class|function)\b/;
|
1295 | var exec = uncurryThis$3(constructorRegExp.exec);
|
1296 | var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
1297 |
|
1298 | var isConstructorModern = function isConstructor(argument) {
|
1299 | if (!isCallable(argument)) return false;
|
1300 | try {
|
1301 | construct(noop, empty, argument);
|
1302 | return true;
|
1303 | } catch (error) {
|
1304 | return false;
|
1305 | }
|
1306 | };
|
1307 |
|
1308 | var isConstructorLegacy = function isConstructor(argument) {
|
1309 | if (!isCallable(argument)) return false;
|
1310 | switch (classof$1(argument)) {
|
1311 | case 'AsyncFunction':
|
1312 | case 'GeneratorFunction':
|
1313 | case 'AsyncGeneratorFunction': return false;
|
1314 | }
|
1315 | try {
|
1316 |
|
1317 |
|
1318 |
|
1319 | return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
1320 | } catch (error) {
|
1321 | return true;
|
1322 | }
|
1323 | };
|
1324 |
|
1325 | isConstructorLegacy.sham = true;
|
1326 |
|
1327 |
|
1328 |
|
1329 | var isConstructor$1 = !construct || fails$3(function () {
|
1330 | var called;
|
1331 | return isConstructorModern(isConstructorModern.call)
|
1332 | || !isConstructorModern(Object)
|
1333 | || !isConstructorModern(function () { called = true; })
|
1334 | || called;
|
1335 | }) ? isConstructorLegacy : isConstructorModern;
|
1336 |
|
1337 | var isArray$1 = isArray$2;
|
1338 | var isConstructor = isConstructor$1;
|
1339 | var isObject$1 = isObject$7;
|
1340 | var wellKnownSymbol$3 = wellKnownSymbol$7;
|
1341 |
|
1342 | var SPECIES$1 = wellKnownSymbol$3('species');
|
1343 | var $Array = Array;
|
1344 |
|
1345 |
|
1346 |
|
1347 | var arraySpeciesConstructor$1 = function (originalArray) {
|
1348 | var C;
|
1349 | if (isArray$1(originalArray)) {
|
1350 | C = originalArray.constructor;
|
1351 |
|
1352 | if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
|
1353 | else if (isObject$1(C)) {
|
1354 | C = C[SPECIES$1];
|
1355 | if (C === null) C = undefined;
|
1356 | }
|
1357 | } return C === undefined ? $Array : C;
|
1358 | };
|
1359 |
|
1360 | var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
1361 |
|
1362 |
|
1363 |
|
1364 | var arraySpeciesCreate$2 = function (originalArray, length) {
|
1365 | return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
1366 | };
|
1367 |
|
1368 | var fails$2 = fails$d;
|
1369 | var wellKnownSymbol$2 = wellKnownSymbol$7;
|
1370 | var V8_VERSION$1 = engineV8Version;
|
1371 |
|
1372 | var SPECIES = wellKnownSymbol$2('species');
|
1373 |
|
1374 | var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
|
1375 |
|
1376 |
|
1377 |
|
1378 | return V8_VERSION$1 >= 51 || !fails$2(function () {
|
1379 | var array = [];
|
1380 | var constructor = array.constructor = {};
|
1381 | constructor[SPECIES] = function () {
|
1382 | return { foo: 1 };
|
1383 | };
|
1384 | return array[METHOD_NAME](Boolean).foo !== 1;
|
1385 | });
|
1386 | };
|
1387 |
|
1388 | var $$2 = _export;
|
1389 | var fails$1 = fails$d;
|
1390 | var isArray = isArray$2;
|
1391 | var isObject = isObject$7;
|
1392 | var toObject$1 = toObject$4;
|
1393 | var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
1394 | var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
1395 | var createProperty = createProperty$1;
|
1396 | var arraySpeciesCreate$1 = arraySpeciesCreate$2;
|
1397 | var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
|
1398 | var wellKnownSymbol$1 = wellKnownSymbol$7;
|
1399 | var V8_VERSION = engineV8Version;
|
1400 |
|
1401 | var IS_CONCAT_SPREADABLE = wellKnownSymbol$1('isConcatSpreadable');
|
1402 |
|
1403 |
|
1404 |
|
1405 |
|
1406 | var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$1(function () {
|
1407 | var array = [];
|
1408 | array[IS_CONCAT_SPREADABLE] = false;
|
1409 | return array.concat()[0] !== array;
|
1410 | });
|
1411 |
|
1412 | var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
|
1413 |
|
1414 | var isConcatSpreadable = function (O) {
|
1415 | if (!isObject(O)) return false;
|
1416 | var spreadable = O[IS_CONCAT_SPREADABLE];
|
1417 | return spreadable !== undefined ? !!spreadable : isArray(O);
|
1418 | };
|
1419 |
|
1420 | var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
1421 |
|
1422 |
|
1423 |
|
1424 |
|
1425 | $$2({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
1426 |
|
1427 | concat: function concat(arg) {
|
1428 | var O = toObject$1(this);
|
1429 | var A = arraySpeciesCreate$1(O, 0);
|
1430 | var n = 0;
|
1431 | var i, k, length, len, E;
|
1432 | for (i = -1, length = arguments.length; i < length; i++) {
|
1433 | E = i === -1 ? O : arguments[i];
|
1434 | if (isConcatSpreadable(E)) {
|
1435 | len = lengthOfArrayLike$1(E);
|
1436 | doesNotExceedSafeInteger(n + len);
|
1437 | for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
1438 | } else {
|
1439 | doesNotExceedSafeInteger(n + 1);
|
1440 | createProperty(A, n++, E);
|
1441 | }
|
1442 | }
|
1443 | A.length = n;
|
1444 | return A;
|
1445 | }
|
1446 | });
|
1447 |
|
1448 | var uncurryThis$2 = functionUncurryThis;
|
1449 | var aCallable = aCallable$2;
|
1450 | var NATIVE_BIND = functionBindNative;
|
1451 |
|
1452 | var bind$1 = uncurryThis$2(uncurryThis$2.bind);
|
1453 |
|
1454 |
|
1455 | var functionBindContext = function (fn, that) {
|
1456 | aCallable(fn);
|
1457 | return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
|
1458 | return fn.apply(that, arguments);
|
1459 | };
|
1460 | };
|
1461 |
|
1462 | var bind = functionBindContext;
|
1463 | var uncurryThis$1 = functionUncurryThis;
|
1464 | var IndexedObject$1 = indexedObject;
|
1465 | var toObject = toObject$4;
|
1466 | var lengthOfArrayLike = lengthOfArrayLike$3;
|
1467 | var arraySpeciesCreate = arraySpeciesCreate$2;
|
1468 |
|
1469 | var push = uncurryThis$1([].push);
|
1470 |
|
1471 |
|
1472 | var createMethod = function (TYPE) {
|
1473 | var IS_MAP = TYPE == 1;
|
1474 | var IS_FILTER = TYPE == 2;
|
1475 | var IS_SOME = TYPE == 3;
|
1476 | var IS_EVERY = TYPE == 4;
|
1477 | var IS_FIND_INDEX = TYPE == 6;
|
1478 | var IS_FILTER_REJECT = TYPE == 7;
|
1479 | var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
1480 | return function ($this, callbackfn, that, specificCreate) {
|
1481 | var O = toObject($this);
|
1482 | var self = IndexedObject$1(O);
|
1483 | var boundFunction = bind(callbackfn, that);
|
1484 | var length = lengthOfArrayLike(self);
|
1485 | var index = 0;
|
1486 | var create = specificCreate || arraySpeciesCreate;
|
1487 | var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
1488 | var value, result;
|
1489 | for (;length > index; index++) if (NO_HOLES || index in self) {
|
1490 | value = self[index];
|
1491 | result = boundFunction(value, index, O);
|
1492 | if (TYPE) {
|
1493 | if (IS_MAP) target[index] = result;
|
1494 | else if (result) switch (TYPE) {
|
1495 | case 3: return true;
|
1496 | case 5: return value;
|
1497 | case 6: return index;
|
1498 | case 2: push(target, value);
|
1499 | } else switch (TYPE) {
|
1500 | case 4: return false;
|
1501 | case 7: push(target, value);
|
1502 | }
|
1503 | }
|
1504 | }
|
1505 | return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
1506 | };
|
1507 | };
|
1508 |
|
1509 | var arrayIteration = {
|
1510 |
|
1511 |
|
1512 | forEach: createMethod(0),
|
1513 |
|
1514 |
|
1515 | map: createMethod(1),
|
1516 |
|
1517 |
|
1518 | filter: createMethod(2),
|
1519 |
|
1520 |
|
1521 | some: createMethod(3),
|
1522 |
|
1523 |
|
1524 | every: createMethod(4),
|
1525 |
|
1526 |
|
1527 | find: createMethod(5),
|
1528 |
|
1529 |
|
1530 | findIndex: createMethod(6),
|
1531 |
|
1532 |
|
1533 | filterReject: createMethod(7)
|
1534 | };
|
1535 |
|
1536 | var objectDefineProperties = {};
|
1537 |
|
1538 | var DESCRIPTORS = descriptors;
|
1539 | var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
1540 | var definePropertyModule = objectDefineProperty;
|
1541 | var anObject$1 = anObject$4;
|
1542 | var toIndexedObject$1 = toIndexedObject$5;
|
1543 | var objectKeys = objectKeys$2;
|
1544 |
|
1545 |
|
1546 |
|
1547 |
|
1548 | objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
1549 | anObject$1(O);
|
1550 | var props = toIndexedObject$1(Properties);
|
1551 | var keys = objectKeys(Properties);
|
1552 | var length = keys.length;
|
1553 | var index = 0;
|
1554 | var key;
|
1555 | while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
1556 | return O;
|
1557 | };
|
1558 |
|
1559 | var getBuiltIn = getBuiltIn$5;
|
1560 |
|
1561 | var html$1 = getBuiltIn('document', 'documentElement');
|
1562 |
|
1563 |
|
1564 |
|
1565 | var anObject = anObject$4;
|
1566 | var definePropertiesModule = objectDefineProperties;
|
1567 | var enumBugKeys = enumBugKeys$3;
|
1568 | var hiddenKeys = hiddenKeys$4;
|
1569 | var html = html$1;
|
1570 | var documentCreateElement = documentCreateElement$1;
|
1571 | var sharedKey = sharedKey$2;
|
1572 |
|
1573 | var GT = '>';
|
1574 | var LT = '<';
|
1575 | var PROTOTYPE = 'prototype';
|
1576 | var SCRIPT = 'script';
|
1577 | var IE_PROTO = sharedKey('IE_PROTO');
|
1578 |
|
1579 | var EmptyConstructor = function () { };
|
1580 |
|
1581 | var scriptTag = function (content) {
|
1582 | return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
1583 | };
|
1584 |
|
1585 |
|
1586 | var NullProtoObjectViaActiveX = function (activeXDocument) {
|
1587 | activeXDocument.write(scriptTag(''));
|
1588 | activeXDocument.close();
|
1589 | var temp = activeXDocument.parentWindow.Object;
|
1590 | activeXDocument = null;
|
1591 | return temp;
|
1592 | };
|
1593 |
|
1594 |
|
1595 | var NullProtoObjectViaIFrame = function () {
|
1596 |
|
1597 | var iframe = documentCreateElement('iframe');
|
1598 | var JS = 'java' + SCRIPT + ':';
|
1599 | var iframeDocument;
|
1600 | iframe.style.display = 'none';
|
1601 | html.appendChild(iframe);
|
1602 |
|
1603 | iframe.src = String(JS);
|
1604 | iframeDocument = iframe.contentWindow.document;
|
1605 | iframeDocument.open();
|
1606 | iframeDocument.write(scriptTag('document.F=Object'));
|
1607 | iframeDocument.close();
|
1608 | return iframeDocument.F;
|
1609 | };
|
1610 |
|
1611 |
|
1612 |
|
1613 |
|
1614 |
|
1615 |
|
1616 | var activeXDocument;
|
1617 | var NullProtoObject = function () {
|
1618 | try {
|
1619 | activeXDocument = new ActiveXObject('htmlfile');
|
1620 | } catch (error) { }
|
1621 | NullProtoObject = typeof document != 'undefined'
|
1622 | ? document.domain && activeXDocument
|
1623 | ? NullProtoObjectViaActiveX(activeXDocument)
|
1624 | : NullProtoObjectViaIFrame()
|
1625 | : NullProtoObjectViaActiveX(activeXDocument);
|
1626 | var length = enumBugKeys.length;
|
1627 | while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
1628 | return NullProtoObject();
|
1629 | };
|
1630 |
|
1631 | hiddenKeys[IE_PROTO] = true;
|
1632 |
|
1633 |
|
1634 |
|
1635 |
|
1636 | var objectCreate = Object.create || function create(O, Properties) {
|
1637 | var result;
|
1638 | if (O !== null) {
|
1639 | EmptyConstructor[PROTOTYPE] = anObject(O);
|
1640 | result = new EmptyConstructor();
|
1641 | EmptyConstructor[PROTOTYPE] = null;
|
1642 |
|
1643 | result[IE_PROTO] = O;
|
1644 | } else result = NullProtoObject();
|
1645 | return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
1646 | };
|
1647 |
|
1648 | var wellKnownSymbol = wellKnownSymbol$7;
|
1649 | var create = objectCreate;
|
1650 | var defineProperty = objectDefineProperty.f;
|
1651 |
|
1652 | var UNSCOPABLES = wellKnownSymbol('unscopables');
|
1653 | var ArrayPrototype = Array.prototype;
|
1654 |
|
1655 |
|
1656 |
|
1657 | if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
1658 | defineProperty(ArrayPrototype, UNSCOPABLES, {
|
1659 | configurable: true,
|
1660 | value: create(null)
|
1661 | });
|
1662 | }
|
1663 |
|
1664 |
|
1665 | var addToUnscopables$1 = function (key) {
|
1666 | ArrayPrototype[UNSCOPABLES][key] = true;
|
1667 | };
|
1668 |
|
1669 | var $$1 = _export;
|
1670 | var $find = arrayIteration.find;
|
1671 | var addToUnscopables = addToUnscopables$1;
|
1672 |
|
1673 | var FIND = 'find';
|
1674 | var SKIPS_HOLES = true;
|
1675 |
|
1676 |
|
1677 | if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
1678 |
|
1679 |
|
1680 |
|
1681 | $$1({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
1682 | find: function find(callbackfn /* , that = undefined */) {
|
1683 | return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
1684 | }
|
1685 | });
|
1686 |
|
1687 |
|
1688 | addToUnscopables(FIND);
|
1689 |
|
1690 | var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
|
1691 | var classof = classof$2;
|
1692 |
|
1693 |
|
1694 |
|
1695 | var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
|
1696 | return '[object ' + classof(this) + ']';
|
1697 | };
|
1698 |
|
1699 | var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
1700 | var defineBuiltIn = defineBuiltIn$2;
|
1701 | var toString = objectToString;
|
1702 |
|
1703 |
|
1704 |
|
1705 | if (!TO_STRING_TAG_SUPPORT) {
|
1706 | defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
|
1707 | }
|
1708 |
|
1709 | var fails = fails$d;
|
1710 |
|
1711 | var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
1712 | var method = [][METHOD_NAME];
|
1713 | return !!method && fails(function () {
|
1714 |
|
1715 | method.call(null, argument || function () { return 1; }, 1);
|
1716 | });
|
1717 | };
|
1718 |
|
1719 | var $ = _export;
|
1720 | var uncurryThis = functionUncurryThis;
|
1721 | var IndexedObject = indexedObject;
|
1722 | var toIndexedObject = toIndexedObject$5;
|
1723 | var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
1724 |
|
1725 | var nativeJoin = uncurryThis([].join);
|
1726 |
|
1727 | var ES3_STRINGS = IndexedObject != Object;
|
1728 | var STRICT_METHOD = arrayMethodIsStrict('join', ',');
|
1729 |
|
1730 |
|
1731 |
|
1732 | $({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
|
1733 | join: function join(separator) {
|
1734 | return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
|
1735 | }
|
1736 | });
|
1737 |
|
1738 | |
1739 |
|
1740 |
|
1741 |
|
1742 |
|
1743 | var Utils = $__default["default"].fn.bootstrapTable.utils;
|
1744 | $__default["default"].extend($__default["default"].fn.bootstrapTable.locales, {
|
1745 | formatCopyRows: function formatCopyRows() {
|
1746 | return 'Copy Rows';
|
1747 | }
|
1748 | });
|
1749 | $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, $__default["default"].fn.bootstrapTable.locales);
|
1750 | $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults.icons, {
|
1751 | copy: {
|
1752 | bootstrap3: 'glyphicon-copy icon-pencil',
|
1753 | bootstrap5: 'bi-clipboard',
|
1754 | materialize: 'content_copy',
|
1755 | 'bootstrap-table': 'icon-copy'
|
1756 | }[$__default["default"].fn.bootstrapTable.theme] || 'fa-copy'
|
1757 | });
|
1758 | var copyText = function copyText(text) {
|
1759 | var textField = document.createElement('textarea');
|
1760 | $__default["default"](textField).html(text);
|
1761 | document.body.appendChild(textField);
|
1762 | textField.select();
|
1763 | try {
|
1764 | document.execCommand('copy');
|
1765 | } catch (e) {
|
1766 | console.warn('Oops, unable to copy');
|
1767 | }
|
1768 | $__default["default"](textField).remove();
|
1769 | };
|
1770 | $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
|
1771 | showCopyRows: false,
|
1772 | copyWithHidden: false,
|
1773 | copyDelimiter: ', ',
|
1774 | copyNewline: '\n'
|
1775 | });
|
1776 | $__default["default"].extend($__default["default"].fn.bootstrapTable.columnDefaults, {
|
1777 | ignoreCopy: false,
|
1778 | rawCopy: false
|
1779 | });
|
1780 | $__default["default"].fn.bootstrapTable.methods.push('copyColumnsToClipboard');
|
1781 | $__default["default"].BootstrapTable = function (_$$BootstrapTable) {
|
1782 | _inherits(_class, _$$BootstrapTable);
|
1783 | var _super = _createSuper(_class);
|
1784 | function _class() {
|
1785 | _classCallCheck(this, _class);
|
1786 | return _super.apply(this, arguments);
|
1787 | }
|
1788 | _createClass(_class, [{
|
1789 | key: "initToolbar",
|
1790 | value: function initToolbar() {
|
1791 | var _get2;
|
1792 | if (this.options.showCopyRows && this.header.stateField) {
|
1793 | this.buttons = Object.assign(this.buttons, {
|
1794 | copyRows: {
|
1795 | text: this.options.formatCopyRows(),
|
1796 | icon: this.options.icons.copy,
|
1797 | event: this.copyColumnsToClipboard,
|
1798 | attributes: {
|
1799 | 'aria-label': this.options.formatCopyRows(),
|
1800 | title: this.options.formatCopyRows()
|
1801 | }
|
1802 | }
|
1803 | });
|
1804 | }
|
1805 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
1806 | args[_key] = arguments[_key];
|
1807 | }
|
1808 | (_get2 = _get(_getPrototypeOf(_class.prototype), "initToolbar", this)).call.apply(_get2, [this].concat(args));
|
1809 | this.$copyButton = this.$toolbar.find('>.columns [name="copyRows"]');
|
1810 | if (this.options.showCopyRows && this.header.stateField) {
|
1811 | this.updateCopyButton();
|
1812 | }
|
1813 | }
|
1814 | }, {
|
1815 | key: "copyColumnsToClipboard",
|
1816 | value: function copyColumnsToClipboard() {
|
1817 | var _this = this;
|
1818 | var rows = [];
|
1819 | $__default["default"].each(this.getSelections(), function (index, row) {
|
1820 | var cols = [];
|
1821 | $__default["default"].each(_this.options.columns[0], function (indy, column) {
|
1822 | if (column.field !== _this.header.stateField && (!_this.options.copyWithHidden || _this.options.copyWithHidden && column.visible) && !column.ignoreCopy) {
|
1823 | if (row[column.field] !== null) {
|
1824 | var columnValue = column.rawCopy ? row[column.field] : Utils.calculateObjectValue(column, _this.header.formatters[indy], [row[column.field], row, index], row[column.field]);
|
1825 | cols.push(columnValue);
|
1826 | }
|
1827 | }
|
1828 | });
|
1829 | rows.push(cols.join(_this.options.copyDelimiter));
|
1830 | });
|
1831 | copyText(rows.join(this.options.copyNewline));
|
1832 | }
|
1833 | }, {
|
1834 | key: "updateSelected",
|
1835 | value: function updateSelected() {
|
1836 | _get(_getPrototypeOf(_class.prototype), "updateSelected", this).call(this);
|
1837 | this.updateCopyButton();
|
1838 | }
|
1839 | }, {
|
1840 | key: "updateCopyButton",
|
1841 | value: function updateCopyButton() {
|
1842 | if (this.options.showCopyRows && this.header.stateField && this.$copyButton) {
|
1843 | this.$copyButton.prop('disabled', !this.getSelections().length);
|
1844 | }
|
1845 | }
|
1846 | }]);
|
1847 | return _class;
|
1848 | }($__default["default"].BootstrapTable);
|
1849 |
|
1850 | }));
|