@phoenix-cg/v-filters 0.2.2 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v-filters.common.js +1847 -186
- package/dist/v-filters.common.js.map +1 -1
- package/dist/v-filters.umd.js +1847 -186
- package/dist/v-filters.umd.js.map +1 -1
- package/dist/v-filters.umd.min.js +1 -1
- package/dist/v-filters.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/VFilters.vue +17 -3
package/dist/v-filters.common.js
CHANGED
|
@@ -314,6 +314,18 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
|
314
314
|
} : [].forEach;
|
|
315
315
|
|
|
316
316
|
|
|
317
|
+
/***/ }),
|
|
318
|
+
|
|
319
|
+
/***/ "19aa":
|
|
320
|
+
/***/ (function(module, exports) {
|
|
321
|
+
|
|
322
|
+
module.exports = function (it, Constructor, name) {
|
|
323
|
+
if (!(it instanceof Constructor)) {
|
|
324
|
+
throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
|
|
325
|
+
} return it;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
|
|
317
329
|
/***/ }),
|
|
318
330
|
|
|
319
331
|
/***/ "1be4":
|
|
@@ -381,6 +393,16 @@ module.exports = function (exec, SKIP_CLOSING) {
|
|
|
381
393
|
};
|
|
382
394
|
|
|
383
395
|
|
|
396
|
+
/***/ }),
|
|
397
|
+
|
|
398
|
+
/***/ "1cdc":
|
|
399
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
400
|
+
|
|
401
|
+
var userAgent = __webpack_require__("342f");
|
|
402
|
+
|
|
403
|
+
module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
|
404
|
+
|
|
405
|
+
|
|
384
406
|
/***/ }),
|
|
385
407
|
|
|
386
408
|
/***/ "1d80":
|
|
@@ -420,6 +442,71 @@ module.exports = function (METHOD_NAME) {
|
|
|
420
442
|
};
|
|
421
443
|
|
|
422
444
|
|
|
445
|
+
/***/ }),
|
|
446
|
+
|
|
447
|
+
/***/ "2266":
|
|
448
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
449
|
+
|
|
450
|
+
var anObject = __webpack_require__("825a");
|
|
451
|
+
var isArrayIteratorMethod = __webpack_require__("e95a");
|
|
452
|
+
var toLength = __webpack_require__("50c4");
|
|
453
|
+
var bind = __webpack_require__("0366");
|
|
454
|
+
var getIteratorMethod = __webpack_require__("35a1");
|
|
455
|
+
var iteratorClose = __webpack_require__("2a62");
|
|
456
|
+
|
|
457
|
+
var Result = function (stopped, result) {
|
|
458
|
+
this.stopped = stopped;
|
|
459
|
+
this.result = result;
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
module.exports = function (iterable, unboundFunction, options) {
|
|
463
|
+
var that = options && options.that;
|
|
464
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
465
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
466
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
467
|
+
var fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);
|
|
468
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
469
|
+
|
|
470
|
+
var stop = function (condition) {
|
|
471
|
+
if (iterator) iteratorClose(iterator);
|
|
472
|
+
return new Result(true, condition);
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
var callFn = function (value) {
|
|
476
|
+
if (AS_ENTRIES) {
|
|
477
|
+
anObject(value);
|
|
478
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
479
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
if (IS_ITERATOR) {
|
|
483
|
+
iterator = iterable;
|
|
484
|
+
} else {
|
|
485
|
+
iterFn = getIteratorMethod(iterable);
|
|
486
|
+
if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
|
|
487
|
+
// optimisation for array iterators
|
|
488
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
489
|
+
for (index = 0, length = toLength(iterable.length); length > index; index++) {
|
|
490
|
+
result = callFn(iterable[index]);
|
|
491
|
+
if (result && result instanceof Result) return result;
|
|
492
|
+
} return new Result(false);
|
|
493
|
+
}
|
|
494
|
+
iterator = iterFn.call(iterable);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
next = iterator.next;
|
|
498
|
+
while (!(step = next.call(iterator)).done) {
|
|
499
|
+
try {
|
|
500
|
+
result = callFn(step.value);
|
|
501
|
+
} catch (error) {
|
|
502
|
+
iteratorClose(iterator);
|
|
503
|
+
throw error;
|
|
504
|
+
}
|
|
505
|
+
if (typeof result == 'object' && result && result instanceof Result) return result;
|
|
506
|
+
} return new Result(false);
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
|
|
423
510
|
/***/ }),
|
|
424
511
|
|
|
425
512
|
/***/ "23cb":
|
|
@@ -572,6 +659,33 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
572
659
|
}
|
|
573
660
|
|
|
574
661
|
|
|
662
|
+
/***/ }),
|
|
663
|
+
|
|
664
|
+
/***/ "2626":
|
|
665
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
666
|
+
|
|
667
|
+
"use strict";
|
|
668
|
+
|
|
669
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
670
|
+
var definePropertyModule = __webpack_require__("9bf2");
|
|
671
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
672
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
673
|
+
|
|
674
|
+
var SPECIES = wellKnownSymbol('species');
|
|
675
|
+
|
|
676
|
+
module.exports = function (CONSTRUCTOR_NAME) {
|
|
677
|
+
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
|
678
|
+
var defineProperty = definePropertyModule.f;
|
|
679
|
+
|
|
680
|
+
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
|
681
|
+
defineProperty(Constructor, SPECIES, {
|
|
682
|
+
configurable: true,
|
|
683
|
+
get: function () { return this; }
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
|
|
575
689
|
/***/ }),
|
|
576
690
|
|
|
577
691
|
/***/ "2a62":
|
|
@@ -587,6 +701,120 @@ module.exports = function (iterator) {
|
|
|
587
701
|
};
|
|
588
702
|
|
|
589
703
|
|
|
704
|
+
/***/ }),
|
|
705
|
+
|
|
706
|
+
/***/ "2cf4":
|
|
707
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
708
|
+
|
|
709
|
+
var global = __webpack_require__("da84");
|
|
710
|
+
var fails = __webpack_require__("d039");
|
|
711
|
+
var bind = __webpack_require__("0366");
|
|
712
|
+
var html = __webpack_require__("1be4");
|
|
713
|
+
var createElement = __webpack_require__("cc12");
|
|
714
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
715
|
+
var IS_NODE = __webpack_require__("605d");
|
|
716
|
+
|
|
717
|
+
var location = global.location;
|
|
718
|
+
var set = global.setImmediate;
|
|
719
|
+
var clear = global.clearImmediate;
|
|
720
|
+
var process = global.process;
|
|
721
|
+
var MessageChannel = global.MessageChannel;
|
|
722
|
+
var Dispatch = global.Dispatch;
|
|
723
|
+
var counter = 0;
|
|
724
|
+
var queue = {};
|
|
725
|
+
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
726
|
+
var defer, channel, port;
|
|
727
|
+
|
|
728
|
+
var run = function (id) {
|
|
729
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
730
|
+
if (queue.hasOwnProperty(id)) {
|
|
731
|
+
var fn = queue[id];
|
|
732
|
+
delete queue[id];
|
|
733
|
+
fn();
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
var runner = function (id) {
|
|
738
|
+
return function () {
|
|
739
|
+
run(id);
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
|
|
743
|
+
var listener = function (event) {
|
|
744
|
+
run(event.data);
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
var post = function (id) {
|
|
748
|
+
// old engines have not location.origin
|
|
749
|
+
global.postMessage(id + '', location.protocol + '//' + location.host);
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
753
|
+
if (!set || !clear) {
|
|
754
|
+
set = function setImmediate(fn) {
|
|
755
|
+
var args = [];
|
|
756
|
+
var i = 1;
|
|
757
|
+
while (arguments.length > i) args.push(arguments[i++]);
|
|
758
|
+
queue[++counter] = function () {
|
|
759
|
+
// eslint-disable-next-line no-new-func -- spec requirement
|
|
760
|
+
(typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
|
|
761
|
+
};
|
|
762
|
+
defer(counter);
|
|
763
|
+
return counter;
|
|
764
|
+
};
|
|
765
|
+
clear = function clearImmediate(id) {
|
|
766
|
+
delete queue[id];
|
|
767
|
+
};
|
|
768
|
+
// Node.js 0.8-
|
|
769
|
+
if (IS_NODE) {
|
|
770
|
+
defer = function (id) {
|
|
771
|
+
process.nextTick(runner(id));
|
|
772
|
+
};
|
|
773
|
+
// Sphere (JS game engine) Dispatch API
|
|
774
|
+
} else if (Dispatch && Dispatch.now) {
|
|
775
|
+
defer = function (id) {
|
|
776
|
+
Dispatch.now(runner(id));
|
|
777
|
+
};
|
|
778
|
+
// Browsers with MessageChannel, includes WebWorkers
|
|
779
|
+
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
780
|
+
} else if (MessageChannel && !IS_IOS) {
|
|
781
|
+
channel = new MessageChannel();
|
|
782
|
+
port = channel.port2;
|
|
783
|
+
channel.port1.onmessage = listener;
|
|
784
|
+
defer = bind(port.postMessage, port, 1);
|
|
785
|
+
// Browsers with postMessage, skip WebWorkers
|
|
786
|
+
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
787
|
+
} else if (
|
|
788
|
+
global.addEventListener &&
|
|
789
|
+
typeof postMessage == 'function' &&
|
|
790
|
+
!global.importScripts &&
|
|
791
|
+
location && location.protocol !== 'file:' &&
|
|
792
|
+
!fails(post)
|
|
793
|
+
) {
|
|
794
|
+
defer = post;
|
|
795
|
+
global.addEventListener('message', listener, false);
|
|
796
|
+
// IE8-
|
|
797
|
+
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
798
|
+
defer = function (id) {
|
|
799
|
+
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
|
800
|
+
html.removeChild(this);
|
|
801
|
+
run(id);
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
// Rest old browsers
|
|
805
|
+
} else {
|
|
806
|
+
defer = function (id) {
|
|
807
|
+
setTimeout(runner(id), 0);
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
module.exports = {
|
|
813
|
+
set: set,
|
|
814
|
+
clear: clear
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
|
|
590
818
|
/***/ }),
|
|
591
819
|
|
|
592
820
|
/***/ "2d00":
|
|
@@ -781,6 +1009,21 @@ module.exports = function (key) {
|
|
|
781
1009
|
};
|
|
782
1010
|
|
|
783
1011
|
|
|
1012
|
+
/***/ }),
|
|
1013
|
+
|
|
1014
|
+
/***/ "44de":
|
|
1015
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1016
|
+
|
|
1017
|
+
var global = __webpack_require__("da84");
|
|
1018
|
+
|
|
1019
|
+
module.exports = function (a, b) {
|
|
1020
|
+
var console = global.console;
|
|
1021
|
+
if (console && console.error) {
|
|
1022
|
+
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
1023
|
+
}
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1026
|
+
|
|
784
1027
|
/***/ }),
|
|
785
1028
|
|
|
786
1029
|
/***/ "44e7":
|
|
@@ -800,6 +1043,26 @@ module.exports = function (it) {
|
|
|
800
1043
|
};
|
|
801
1044
|
|
|
802
1045
|
|
|
1046
|
+
/***/ }),
|
|
1047
|
+
|
|
1048
|
+
/***/ "4840":
|
|
1049
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1050
|
+
|
|
1051
|
+
var anObject = __webpack_require__("825a");
|
|
1052
|
+
var aFunction = __webpack_require__("1c0b");
|
|
1053
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
1054
|
+
|
|
1055
|
+
var SPECIES = wellKnownSymbol('species');
|
|
1056
|
+
|
|
1057
|
+
// `SpeciesConstructor` abstract operation
|
|
1058
|
+
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
1059
|
+
module.exports = function (O, defaultConstructor) {
|
|
1060
|
+
var C = anObject(O).constructor;
|
|
1061
|
+
var S;
|
|
1062
|
+
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);
|
|
1063
|
+
};
|
|
1064
|
+
|
|
1065
|
+
|
|
803
1066
|
/***/ }),
|
|
804
1067
|
|
|
805
1068
|
/***/ "4930":
|
|
@@ -2412,121 +2675,876 @@ module.exports = isForced;
|
|
|
2412
2675
|
|
|
2413
2676
|
/***/ }),
|
|
2414
2677
|
|
|
2415
|
-
/***/ "
|
|
2678
|
+
/***/ "96cf":
|
|
2416
2679
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2417
2680
|
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
var toObject = __webpack_require__("7b0b");
|
|
2425
|
-
var toLength = __webpack_require__("50c4");
|
|
2426
|
-
var createProperty = __webpack_require__("8418");
|
|
2427
|
-
var arraySpeciesCreate = __webpack_require__("65f0");
|
|
2428
|
-
var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
|
|
2429
|
-
var wellKnownSymbol = __webpack_require__("b622");
|
|
2430
|
-
var V8_VERSION = __webpack_require__("2d00");
|
|
2681
|
+
/**
|
|
2682
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
2683
|
+
*
|
|
2684
|
+
* This source code is licensed under the MIT license found in the
|
|
2685
|
+
* LICENSE file in the root directory of this source tree.
|
|
2686
|
+
*/
|
|
2431
2687
|
|
|
2432
|
-
var
|
|
2433
|
-
|
|
2434
|
-
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
2688
|
+
var runtime = (function (exports) {
|
|
2689
|
+
"use strict";
|
|
2435
2690
|
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
//
|
|
2439
|
-
var
|
|
2440
|
-
var
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
});
|
|
2691
|
+
var Op = Object.prototype;
|
|
2692
|
+
var hasOwn = Op.hasOwnProperty;
|
|
2693
|
+
var undefined; // More compressible than void 0.
|
|
2694
|
+
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
2695
|
+
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
2696
|
+
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
2697
|
+
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
2444
2698
|
|
|
2445
|
-
|
|
2699
|
+
function define(obj, key, value) {
|
|
2700
|
+
Object.defineProperty(obj, key, {
|
|
2701
|
+
value: value,
|
|
2702
|
+
enumerable: true,
|
|
2703
|
+
configurable: true,
|
|
2704
|
+
writable: true
|
|
2705
|
+
});
|
|
2706
|
+
return obj[key];
|
|
2707
|
+
}
|
|
2708
|
+
try {
|
|
2709
|
+
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
2710
|
+
define({}, "");
|
|
2711
|
+
} catch (err) {
|
|
2712
|
+
define = function(obj, key, value) {
|
|
2713
|
+
return obj[key] = value;
|
|
2714
|
+
};
|
|
2715
|
+
}
|
|
2446
2716
|
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2717
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
2718
|
+
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
2719
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
2720
|
+
var generator = Object.create(protoGenerator.prototype);
|
|
2721
|
+
var context = new Context(tryLocsList || []);
|
|
2452
2722
|
|
|
2453
|
-
|
|
2723
|
+
// The ._invoke method unifies the implementations of the .next,
|
|
2724
|
+
// .throw, and .return methods.
|
|
2725
|
+
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
2454
2726
|
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
//
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
}
|
|
2727
|
+
return generator;
|
|
2728
|
+
}
|
|
2729
|
+
exports.wrap = wrap;
|
|
2730
|
+
|
|
2731
|
+
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
2732
|
+
// record like context.tryEntries[i].completion. This interface could
|
|
2733
|
+
// have been (and was previously) designed to take a closure to be
|
|
2734
|
+
// invoked without arguments, but in all the cases we care about we
|
|
2735
|
+
// already have an existing method we want to call, so there's no need
|
|
2736
|
+
// to create a new function object. We can even get away with assuming
|
|
2737
|
+
// the method takes exactly one argument, since that happens to be true
|
|
2738
|
+
// in every case, so we don't have to touch the arguments object. The
|
|
2739
|
+
// only additional allocation required is the completion record, which
|
|
2740
|
+
// has a stable shape and so hopefully should be cheap to allocate.
|
|
2741
|
+
function tryCatch(fn, obj, arg) {
|
|
2742
|
+
try {
|
|
2743
|
+
return { type: "normal", arg: fn.call(obj, arg) };
|
|
2744
|
+
} catch (err) {
|
|
2745
|
+
return { type: "throw", arg: err };
|
|
2475
2746
|
}
|
|
2476
|
-
A.length = n;
|
|
2477
|
-
return A;
|
|
2478
2747
|
}
|
|
2479
|
-
});
|
|
2480
|
-
|
|
2481
2748
|
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2749
|
+
var GenStateSuspendedStart = "suspendedStart";
|
|
2750
|
+
var GenStateSuspendedYield = "suspendedYield";
|
|
2751
|
+
var GenStateExecuting = "executing";
|
|
2752
|
+
var GenStateCompleted = "completed";
|
|
2753
|
+
|
|
2754
|
+
// Returning this object from the innerFn has the same effect as
|
|
2755
|
+
// breaking out of the dispatch switch statement.
|
|
2756
|
+
var ContinueSentinel = {};
|
|
2757
|
+
|
|
2758
|
+
// Dummy constructor functions that we use as the .constructor and
|
|
2759
|
+
// .constructor.prototype properties for functions that return Generator
|
|
2760
|
+
// objects. For full spec compliance, you may wish to configure your
|
|
2761
|
+
// minifier not to mangle the names of these two functions.
|
|
2762
|
+
function Generator() {}
|
|
2763
|
+
function GeneratorFunction() {}
|
|
2764
|
+
function GeneratorFunctionPrototype() {}
|
|
2765
|
+
|
|
2766
|
+
// This is a polyfill for %IteratorPrototype% for environments that
|
|
2767
|
+
// don't natively support it.
|
|
2768
|
+
var IteratorPrototype = {};
|
|
2769
|
+
IteratorPrototype[iteratorSymbol] = function () {
|
|
2770
|
+
return this;
|
|
2771
|
+
};
|
|
2486
2772
|
|
|
2487
|
-
var
|
|
2488
|
-
var
|
|
2773
|
+
var getProto = Object.getPrototypeOf;
|
|
2774
|
+
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
2775
|
+
if (NativeIteratorPrototype &&
|
|
2776
|
+
NativeIteratorPrototype !== Op &&
|
|
2777
|
+
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
2778
|
+
// This environment has a native %IteratorPrototype%; use it instead
|
|
2779
|
+
// of the polyfill.
|
|
2780
|
+
IteratorPrototype = NativeIteratorPrototype;
|
|
2781
|
+
}
|
|
2489
2782
|
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2783
|
+
var Gp = GeneratorFunctionPrototype.prototype =
|
|
2784
|
+
Generator.prototype = Object.create(IteratorPrototype);
|
|
2785
|
+
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
2786
|
+
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
2787
|
+
GeneratorFunction.displayName = define(
|
|
2788
|
+
GeneratorFunctionPrototype,
|
|
2789
|
+
toStringTagSymbol,
|
|
2790
|
+
"GeneratorFunction"
|
|
2791
|
+
);
|
|
2792
|
+
|
|
2793
|
+
// Helper for defining the .next, .throw, and .return methods of the
|
|
2794
|
+
// Iterator interface in terms of a single ._invoke method.
|
|
2795
|
+
function defineIteratorMethods(prototype) {
|
|
2796
|
+
["next", "throw", "return"].forEach(function(method) {
|
|
2797
|
+
define(prototype, method, function(arg) {
|
|
2798
|
+
return this._invoke(method, arg);
|
|
2799
|
+
});
|
|
2800
|
+
});
|
|
2498
2801
|
}
|
|
2499
|
-
};
|
|
2500
2802
|
|
|
2803
|
+
exports.isGeneratorFunction = function(genFun) {
|
|
2804
|
+
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
2805
|
+
return ctor
|
|
2806
|
+
? ctor === GeneratorFunction ||
|
|
2807
|
+
// For the native GeneratorFunction constructor, the best we can
|
|
2808
|
+
// do is to check its .name property.
|
|
2809
|
+
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
2810
|
+
: false;
|
|
2811
|
+
};
|
|
2501
2812
|
|
|
2502
|
-
|
|
2813
|
+
exports.mark = function(genFun) {
|
|
2814
|
+
if (Object.setPrototypeOf) {
|
|
2815
|
+
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
2816
|
+
} else {
|
|
2817
|
+
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
2818
|
+
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
2819
|
+
}
|
|
2820
|
+
genFun.prototype = Object.create(Gp);
|
|
2821
|
+
return genFun;
|
|
2822
|
+
};
|
|
2503
2823
|
|
|
2504
|
-
|
|
2505
|
-
|
|
2824
|
+
// Within the body of any async function, `await x` is transformed to
|
|
2825
|
+
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
2826
|
+
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
2827
|
+
// meant to be awaited.
|
|
2828
|
+
exports.awrap = function(arg) {
|
|
2829
|
+
return { __await: arg };
|
|
2830
|
+
};
|
|
2506
2831
|
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
var
|
|
2510
|
-
|
|
2832
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
2833
|
+
function invoke(method, arg, resolve, reject) {
|
|
2834
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
2835
|
+
if (record.type === "throw") {
|
|
2836
|
+
reject(record.arg);
|
|
2837
|
+
} else {
|
|
2838
|
+
var result = record.arg;
|
|
2839
|
+
var value = result.value;
|
|
2840
|
+
if (value &&
|
|
2841
|
+
typeof value === "object" &&
|
|
2842
|
+
hasOwn.call(value, "__await")) {
|
|
2843
|
+
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
2844
|
+
invoke("next", value, resolve, reject);
|
|
2845
|
+
}, function(err) {
|
|
2846
|
+
invoke("throw", err, resolve, reject);
|
|
2847
|
+
});
|
|
2848
|
+
}
|
|
2511
2849
|
|
|
2512
|
-
|
|
2850
|
+
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
2851
|
+
// When a yielded Promise is resolved, its final value becomes
|
|
2852
|
+
// the .value of the Promise<{value,done}> result for the
|
|
2853
|
+
// current iteration.
|
|
2854
|
+
result.value = unwrapped;
|
|
2855
|
+
resolve(result);
|
|
2856
|
+
}, function(error) {
|
|
2857
|
+
// If a rejected Promise was yielded, throw the rejection back
|
|
2858
|
+
// into the async generator function so it can be handled there.
|
|
2859
|
+
return invoke("throw", error, resolve, reject);
|
|
2860
|
+
});
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2513
2863
|
|
|
2514
|
-
|
|
2515
|
-
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
2516
|
-
exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
|
|
2517
|
-
anObject(O);
|
|
2518
|
-
P = toPrimitive(P, true);
|
|
2519
|
-
anObject(Attributes);
|
|
2520
|
-
if (IE8_DOM_DEFINE) try {
|
|
2521
|
-
return nativeDefineProperty(O, P, Attributes);
|
|
2522
|
-
} catch (error) { /* empty */ }
|
|
2523
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
|
2524
|
-
if ('value' in Attributes) O[P] = Attributes.value;
|
|
2525
|
-
return O;
|
|
2526
|
-
};
|
|
2864
|
+
var previousPromise;
|
|
2527
2865
|
|
|
2866
|
+
function enqueue(method, arg) {
|
|
2867
|
+
function callInvokeWithMethodAndArg() {
|
|
2868
|
+
return new PromiseImpl(function(resolve, reject) {
|
|
2869
|
+
invoke(method, arg, resolve, reject);
|
|
2870
|
+
});
|
|
2871
|
+
}
|
|
2528
2872
|
|
|
2529
|
-
|
|
2873
|
+
return previousPromise =
|
|
2874
|
+
// If enqueue has been called before, then we want to wait until
|
|
2875
|
+
// all previous Promises have been resolved before calling invoke,
|
|
2876
|
+
// so that results are always delivered in the correct order. If
|
|
2877
|
+
// enqueue has not been called before, then it is important to
|
|
2878
|
+
// call invoke immediately, without waiting on a callback to fire,
|
|
2879
|
+
// so that the async generator function has the opportunity to do
|
|
2880
|
+
// any necessary setup in a predictable way. This predictability
|
|
2881
|
+
// is why the Promise constructor synchronously invokes its
|
|
2882
|
+
// executor callback, and why async functions synchronously
|
|
2883
|
+
// execute code before the first await. Since we implement simple
|
|
2884
|
+
// async functions in terms of async generators, it is especially
|
|
2885
|
+
// important to get this right, even though it requires care.
|
|
2886
|
+
previousPromise ? previousPromise.then(
|
|
2887
|
+
callInvokeWithMethodAndArg,
|
|
2888
|
+
// Avoid propagating failures to Promises returned by later
|
|
2889
|
+
// invocations of the iterator.
|
|
2890
|
+
callInvokeWithMethodAndArg
|
|
2891
|
+
) : callInvokeWithMethodAndArg();
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
// Define the unified helper method that is used to implement .next,
|
|
2895
|
+
// .throw, and .return (see defineIteratorMethods).
|
|
2896
|
+
this._invoke = enqueue;
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
defineIteratorMethods(AsyncIterator.prototype);
|
|
2900
|
+
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
2901
|
+
return this;
|
|
2902
|
+
};
|
|
2903
|
+
exports.AsyncIterator = AsyncIterator;
|
|
2904
|
+
|
|
2905
|
+
// Note that simple async functions are implemented on top of
|
|
2906
|
+
// AsyncIterator objects; they just return a Promise for the value of
|
|
2907
|
+
// the final result produced by the iterator.
|
|
2908
|
+
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
2909
|
+
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
2910
|
+
|
|
2911
|
+
var iter = new AsyncIterator(
|
|
2912
|
+
wrap(innerFn, outerFn, self, tryLocsList),
|
|
2913
|
+
PromiseImpl
|
|
2914
|
+
);
|
|
2915
|
+
|
|
2916
|
+
return exports.isGeneratorFunction(outerFn)
|
|
2917
|
+
? iter // If outerFn is a generator, return the full iterator.
|
|
2918
|
+
: iter.next().then(function(result) {
|
|
2919
|
+
return result.done ? result.value : iter.next();
|
|
2920
|
+
});
|
|
2921
|
+
};
|
|
2922
|
+
|
|
2923
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
2924
|
+
var state = GenStateSuspendedStart;
|
|
2925
|
+
|
|
2926
|
+
return function invoke(method, arg) {
|
|
2927
|
+
if (state === GenStateExecuting) {
|
|
2928
|
+
throw new Error("Generator is already running");
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
if (state === GenStateCompleted) {
|
|
2932
|
+
if (method === "throw") {
|
|
2933
|
+
throw arg;
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
2937
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
2938
|
+
return doneResult();
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
context.method = method;
|
|
2942
|
+
context.arg = arg;
|
|
2943
|
+
|
|
2944
|
+
while (true) {
|
|
2945
|
+
var delegate = context.delegate;
|
|
2946
|
+
if (delegate) {
|
|
2947
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
2948
|
+
if (delegateResult) {
|
|
2949
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
2950
|
+
return delegateResult;
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
if (context.method === "next") {
|
|
2955
|
+
// Setting context._sent for legacy support of Babel's
|
|
2956
|
+
// function.sent implementation.
|
|
2957
|
+
context.sent = context._sent = context.arg;
|
|
2958
|
+
|
|
2959
|
+
} else if (context.method === "throw") {
|
|
2960
|
+
if (state === GenStateSuspendedStart) {
|
|
2961
|
+
state = GenStateCompleted;
|
|
2962
|
+
throw context.arg;
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
context.dispatchException(context.arg);
|
|
2966
|
+
|
|
2967
|
+
} else if (context.method === "return") {
|
|
2968
|
+
context.abrupt("return", context.arg);
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
state = GenStateExecuting;
|
|
2972
|
+
|
|
2973
|
+
var record = tryCatch(innerFn, self, context);
|
|
2974
|
+
if (record.type === "normal") {
|
|
2975
|
+
// If an exception is thrown from innerFn, we leave state ===
|
|
2976
|
+
// GenStateExecuting and loop back for another invocation.
|
|
2977
|
+
state = context.done
|
|
2978
|
+
? GenStateCompleted
|
|
2979
|
+
: GenStateSuspendedYield;
|
|
2980
|
+
|
|
2981
|
+
if (record.arg === ContinueSentinel) {
|
|
2982
|
+
continue;
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2985
|
+
return {
|
|
2986
|
+
value: record.arg,
|
|
2987
|
+
done: context.done
|
|
2988
|
+
};
|
|
2989
|
+
|
|
2990
|
+
} else if (record.type === "throw") {
|
|
2991
|
+
state = GenStateCompleted;
|
|
2992
|
+
// Dispatch the exception by looping back around to the
|
|
2993
|
+
// context.dispatchException(context.arg) call above.
|
|
2994
|
+
context.method = "throw";
|
|
2995
|
+
context.arg = record.arg;
|
|
2996
|
+
}
|
|
2997
|
+
}
|
|
2998
|
+
};
|
|
2999
|
+
}
|
|
3000
|
+
|
|
3001
|
+
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
3002
|
+
// result, either by returning a { value, done } result from the
|
|
3003
|
+
// delegate iterator, or by modifying context.method and context.arg,
|
|
3004
|
+
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
3005
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
3006
|
+
var method = delegate.iterator[context.method];
|
|
3007
|
+
if (method === undefined) {
|
|
3008
|
+
// A .throw or .return when the delegate iterator has no .throw
|
|
3009
|
+
// method always terminates the yield* loop.
|
|
3010
|
+
context.delegate = null;
|
|
3011
|
+
|
|
3012
|
+
if (context.method === "throw") {
|
|
3013
|
+
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
3014
|
+
if (delegate.iterator["return"]) {
|
|
3015
|
+
// If the delegate iterator has a return method, give it a
|
|
3016
|
+
// chance to clean up.
|
|
3017
|
+
context.method = "return";
|
|
3018
|
+
context.arg = undefined;
|
|
3019
|
+
maybeInvokeDelegate(delegate, context);
|
|
3020
|
+
|
|
3021
|
+
if (context.method === "throw") {
|
|
3022
|
+
// If maybeInvokeDelegate(context) changed context.method from
|
|
3023
|
+
// "return" to "throw", let that override the TypeError below.
|
|
3024
|
+
return ContinueSentinel;
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
|
|
3028
|
+
context.method = "throw";
|
|
3029
|
+
context.arg = new TypeError(
|
|
3030
|
+
"The iterator does not provide a 'throw' method");
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
return ContinueSentinel;
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
3037
|
+
|
|
3038
|
+
if (record.type === "throw") {
|
|
3039
|
+
context.method = "throw";
|
|
3040
|
+
context.arg = record.arg;
|
|
3041
|
+
context.delegate = null;
|
|
3042
|
+
return ContinueSentinel;
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
var info = record.arg;
|
|
3046
|
+
|
|
3047
|
+
if (! info) {
|
|
3048
|
+
context.method = "throw";
|
|
3049
|
+
context.arg = new TypeError("iterator result is not an object");
|
|
3050
|
+
context.delegate = null;
|
|
3051
|
+
return ContinueSentinel;
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
if (info.done) {
|
|
3055
|
+
// Assign the result of the finished delegate to the temporary
|
|
3056
|
+
// variable specified by delegate.resultName (see delegateYield).
|
|
3057
|
+
context[delegate.resultName] = info.value;
|
|
3058
|
+
|
|
3059
|
+
// Resume execution at the desired location (see delegateYield).
|
|
3060
|
+
context.next = delegate.nextLoc;
|
|
3061
|
+
|
|
3062
|
+
// If context.method was "throw" but the delegate handled the
|
|
3063
|
+
// exception, let the outer generator proceed normally. If
|
|
3064
|
+
// context.method was "next", forget context.arg since it has been
|
|
3065
|
+
// "consumed" by the delegate iterator. If context.method was
|
|
3066
|
+
// "return", allow the original .return call to continue in the
|
|
3067
|
+
// outer generator.
|
|
3068
|
+
if (context.method !== "return") {
|
|
3069
|
+
context.method = "next";
|
|
3070
|
+
context.arg = undefined;
|
|
3071
|
+
}
|
|
3072
|
+
|
|
3073
|
+
} else {
|
|
3074
|
+
// Re-yield the result returned by the delegate method.
|
|
3075
|
+
return info;
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
// The delegate iterator is finished, so forget it and continue with
|
|
3079
|
+
// the outer generator.
|
|
3080
|
+
context.delegate = null;
|
|
3081
|
+
return ContinueSentinel;
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
3085
|
+
// unified ._invoke helper method.
|
|
3086
|
+
defineIteratorMethods(Gp);
|
|
3087
|
+
|
|
3088
|
+
define(Gp, toStringTagSymbol, "Generator");
|
|
3089
|
+
|
|
3090
|
+
// A Generator should always return itself as the iterator object when the
|
|
3091
|
+
// @@iterator function is called on it. Some browsers' implementations of the
|
|
3092
|
+
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
3093
|
+
// object to not be returned from this call. This ensures that doesn't happen.
|
|
3094
|
+
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
3095
|
+
Gp[iteratorSymbol] = function() {
|
|
3096
|
+
return this;
|
|
3097
|
+
};
|
|
3098
|
+
|
|
3099
|
+
Gp.toString = function() {
|
|
3100
|
+
return "[object Generator]";
|
|
3101
|
+
};
|
|
3102
|
+
|
|
3103
|
+
function pushTryEntry(locs) {
|
|
3104
|
+
var entry = { tryLoc: locs[0] };
|
|
3105
|
+
|
|
3106
|
+
if (1 in locs) {
|
|
3107
|
+
entry.catchLoc = locs[1];
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
if (2 in locs) {
|
|
3111
|
+
entry.finallyLoc = locs[2];
|
|
3112
|
+
entry.afterLoc = locs[3];
|
|
3113
|
+
}
|
|
3114
|
+
|
|
3115
|
+
this.tryEntries.push(entry);
|
|
3116
|
+
}
|
|
3117
|
+
|
|
3118
|
+
function resetTryEntry(entry) {
|
|
3119
|
+
var record = entry.completion || {};
|
|
3120
|
+
record.type = "normal";
|
|
3121
|
+
delete record.arg;
|
|
3122
|
+
entry.completion = record;
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
function Context(tryLocsList) {
|
|
3126
|
+
// The root entry object (effectively a try statement without a catch
|
|
3127
|
+
// or a finally block) gives us a place to store values thrown from
|
|
3128
|
+
// locations where there is no enclosing try statement.
|
|
3129
|
+
this.tryEntries = [{ tryLoc: "root" }];
|
|
3130
|
+
tryLocsList.forEach(pushTryEntry, this);
|
|
3131
|
+
this.reset(true);
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
exports.keys = function(object) {
|
|
3135
|
+
var keys = [];
|
|
3136
|
+
for (var key in object) {
|
|
3137
|
+
keys.push(key);
|
|
3138
|
+
}
|
|
3139
|
+
keys.reverse();
|
|
3140
|
+
|
|
3141
|
+
// Rather than returning an object with a next method, we keep
|
|
3142
|
+
// things simple and return the next function itself.
|
|
3143
|
+
return function next() {
|
|
3144
|
+
while (keys.length) {
|
|
3145
|
+
var key = keys.pop();
|
|
3146
|
+
if (key in object) {
|
|
3147
|
+
next.value = key;
|
|
3148
|
+
next.done = false;
|
|
3149
|
+
return next;
|
|
3150
|
+
}
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3153
|
+
// To avoid creating an additional object, we just hang the .value
|
|
3154
|
+
// and .done properties off the next function object itself. This
|
|
3155
|
+
// also ensures that the minifier will not anonymize the function.
|
|
3156
|
+
next.done = true;
|
|
3157
|
+
return next;
|
|
3158
|
+
};
|
|
3159
|
+
};
|
|
3160
|
+
|
|
3161
|
+
function values(iterable) {
|
|
3162
|
+
if (iterable) {
|
|
3163
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
3164
|
+
if (iteratorMethod) {
|
|
3165
|
+
return iteratorMethod.call(iterable);
|
|
3166
|
+
}
|
|
3167
|
+
|
|
3168
|
+
if (typeof iterable.next === "function") {
|
|
3169
|
+
return iterable;
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
if (!isNaN(iterable.length)) {
|
|
3173
|
+
var i = -1, next = function next() {
|
|
3174
|
+
while (++i < iterable.length) {
|
|
3175
|
+
if (hasOwn.call(iterable, i)) {
|
|
3176
|
+
next.value = iterable[i];
|
|
3177
|
+
next.done = false;
|
|
3178
|
+
return next;
|
|
3179
|
+
}
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
next.value = undefined;
|
|
3183
|
+
next.done = true;
|
|
3184
|
+
|
|
3185
|
+
return next;
|
|
3186
|
+
};
|
|
3187
|
+
|
|
3188
|
+
return next.next = next;
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
// Return an iterator with no values.
|
|
3193
|
+
return { next: doneResult };
|
|
3194
|
+
}
|
|
3195
|
+
exports.values = values;
|
|
3196
|
+
|
|
3197
|
+
function doneResult() {
|
|
3198
|
+
return { value: undefined, done: true };
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3201
|
+
Context.prototype = {
|
|
3202
|
+
constructor: Context,
|
|
3203
|
+
|
|
3204
|
+
reset: function(skipTempReset) {
|
|
3205
|
+
this.prev = 0;
|
|
3206
|
+
this.next = 0;
|
|
3207
|
+
// Resetting context._sent for legacy support of Babel's
|
|
3208
|
+
// function.sent implementation.
|
|
3209
|
+
this.sent = this._sent = undefined;
|
|
3210
|
+
this.done = false;
|
|
3211
|
+
this.delegate = null;
|
|
3212
|
+
|
|
3213
|
+
this.method = "next";
|
|
3214
|
+
this.arg = undefined;
|
|
3215
|
+
|
|
3216
|
+
this.tryEntries.forEach(resetTryEntry);
|
|
3217
|
+
|
|
3218
|
+
if (!skipTempReset) {
|
|
3219
|
+
for (var name in this) {
|
|
3220
|
+
// Not sure about the optimal order of these conditions:
|
|
3221
|
+
if (name.charAt(0) === "t" &&
|
|
3222
|
+
hasOwn.call(this, name) &&
|
|
3223
|
+
!isNaN(+name.slice(1))) {
|
|
3224
|
+
this[name] = undefined;
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
}
|
|
3228
|
+
},
|
|
3229
|
+
|
|
3230
|
+
stop: function() {
|
|
3231
|
+
this.done = true;
|
|
3232
|
+
|
|
3233
|
+
var rootEntry = this.tryEntries[0];
|
|
3234
|
+
var rootRecord = rootEntry.completion;
|
|
3235
|
+
if (rootRecord.type === "throw") {
|
|
3236
|
+
throw rootRecord.arg;
|
|
3237
|
+
}
|
|
3238
|
+
|
|
3239
|
+
return this.rval;
|
|
3240
|
+
},
|
|
3241
|
+
|
|
3242
|
+
dispatchException: function(exception) {
|
|
3243
|
+
if (this.done) {
|
|
3244
|
+
throw exception;
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
var context = this;
|
|
3248
|
+
function handle(loc, caught) {
|
|
3249
|
+
record.type = "throw";
|
|
3250
|
+
record.arg = exception;
|
|
3251
|
+
context.next = loc;
|
|
3252
|
+
|
|
3253
|
+
if (caught) {
|
|
3254
|
+
// If the dispatched exception was caught by a catch block,
|
|
3255
|
+
// then let that catch block handle the exception normally.
|
|
3256
|
+
context.method = "next";
|
|
3257
|
+
context.arg = undefined;
|
|
3258
|
+
}
|
|
3259
|
+
|
|
3260
|
+
return !! caught;
|
|
3261
|
+
}
|
|
3262
|
+
|
|
3263
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3264
|
+
var entry = this.tryEntries[i];
|
|
3265
|
+
var record = entry.completion;
|
|
3266
|
+
|
|
3267
|
+
if (entry.tryLoc === "root") {
|
|
3268
|
+
// Exception thrown outside of any try block that could handle
|
|
3269
|
+
// it, so set the completion value of the entire function to
|
|
3270
|
+
// throw the exception.
|
|
3271
|
+
return handle("end");
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
if (entry.tryLoc <= this.prev) {
|
|
3275
|
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
3276
|
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
3277
|
+
|
|
3278
|
+
if (hasCatch && hasFinally) {
|
|
3279
|
+
if (this.prev < entry.catchLoc) {
|
|
3280
|
+
return handle(entry.catchLoc, true);
|
|
3281
|
+
} else if (this.prev < entry.finallyLoc) {
|
|
3282
|
+
return handle(entry.finallyLoc);
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
} else if (hasCatch) {
|
|
3286
|
+
if (this.prev < entry.catchLoc) {
|
|
3287
|
+
return handle(entry.catchLoc, true);
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
} else if (hasFinally) {
|
|
3291
|
+
if (this.prev < entry.finallyLoc) {
|
|
3292
|
+
return handle(entry.finallyLoc);
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
} else {
|
|
3296
|
+
throw new Error("try statement without catch or finally");
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
}
|
|
3300
|
+
},
|
|
3301
|
+
|
|
3302
|
+
abrupt: function(type, arg) {
|
|
3303
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3304
|
+
var entry = this.tryEntries[i];
|
|
3305
|
+
if (entry.tryLoc <= this.prev &&
|
|
3306
|
+
hasOwn.call(entry, "finallyLoc") &&
|
|
3307
|
+
this.prev < entry.finallyLoc) {
|
|
3308
|
+
var finallyEntry = entry;
|
|
3309
|
+
break;
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
if (finallyEntry &&
|
|
3314
|
+
(type === "break" ||
|
|
3315
|
+
type === "continue") &&
|
|
3316
|
+
finallyEntry.tryLoc <= arg &&
|
|
3317
|
+
arg <= finallyEntry.finallyLoc) {
|
|
3318
|
+
// Ignore the finally entry if control is not jumping to a
|
|
3319
|
+
// location outside the try/catch block.
|
|
3320
|
+
finallyEntry = null;
|
|
3321
|
+
}
|
|
3322
|
+
|
|
3323
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
3324
|
+
record.type = type;
|
|
3325
|
+
record.arg = arg;
|
|
3326
|
+
|
|
3327
|
+
if (finallyEntry) {
|
|
3328
|
+
this.method = "next";
|
|
3329
|
+
this.next = finallyEntry.finallyLoc;
|
|
3330
|
+
return ContinueSentinel;
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
return this.complete(record);
|
|
3334
|
+
},
|
|
3335
|
+
|
|
3336
|
+
complete: function(record, afterLoc) {
|
|
3337
|
+
if (record.type === "throw") {
|
|
3338
|
+
throw record.arg;
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3341
|
+
if (record.type === "break" ||
|
|
3342
|
+
record.type === "continue") {
|
|
3343
|
+
this.next = record.arg;
|
|
3344
|
+
} else if (record.type === "return") {
|
|
3345
|
+
this.rval = this.arg = record.arg;
|
|
3346
|
+
this.method = "return";
|
|
3347
|
+
this.next = "end";
|
|
3348
|
+
} else if (record.type === "normal" && afterLoc) {
|
|
3349
|
+
this.next = afterLoc;
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
return ContinueSentinel;
|
|
3353
|
+
},
|
|
3354
|
+
|
|
3355
|
+
finish: function(finallyLoc) {
|
|
3356
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3357
|
+
var entry = this.tryEntries[i];
|
|
3358
|
+
if (entry.finallyLoc === finallyLoc) {
|
|
3359
|
+
this.complete(entry.completion, entry.afterLoc);
|
|
3360
|
+
resetTryEntry(entry);
|
|
3361
|
+
return ContinueSentinel;
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3364
|
+
},
|
|
3365
|
+
|
|
3366
|
+
"catch": function(tryLoc) {
|
|
3367
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3368
|
+
var entry = this.tryEntries[i];
|
|
3369
|
+
if (entry.tryLoc === tryLoc) {
|
|
3370
|
+
var record = entry.completion;
|
|
3371
|
+
if (record.type === "throw") {
|
|
3372
|
+
var thrown = record.arg;
|
|
3373
|
+
resetTryEntry(entry);
|
|
3374
|
+
}
|
|
3375
|
+
return thrown;
|
|
3376
|
+
}
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
// The context.catch method must only be called with a location
|
|
3380
|
+
// argument that corresponds to a known catch block.
|
|
3381
|
+
throw new Error("illegal catch attempt");
|
|
3382
|
+
},
|
|
3383
|
+
|
|
3384
|
+
delegateYield: function(iterable, resultName, nextLoc) {
|
|
3385
|
+
this.delegate = {
|
|
3386
|
+
iterator: values(iterable),
|
|
3387
|
+
resultName: resultName,
|
|
3388
|
+
nextLoc: nextLoc
|
|
3389
|
+
};
|
|
3390
|
+
|
|
3391
|
+
if (this.method === "next") {
|
|
3392
|
+
// Deliberately forget the last sent value so that we don't
|
|
3393
|
+
// accidentally pass it on to the delegate.
|
|
3394
|
+
this.arg = undefined;
|
|
3395
|
+
}
|
|
3396
|
+
|
|
3397
|
+
return ContinueSentinel;
|
|
3398
|
+
}
|
|
3399
|
+
};
|
|
3400
|
+
|
|
3401
|
+
// Regardless of whether this script is executing as a CommonJS module
|
|
3402
|
+
// or not, return the runtime object so that we can declare the variable
|
|
3403
|
+
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
3404
|
+
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
3405
|
+
return exports;
|
|
3406
|
+
|
|
3407
|
+
}(
|
|
3408
|
+
// If this script is executing as a CommonJS module, use module.exports
|
|
3409
|
+
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
3410
|
+
// object. Either way, the resulting object will be used to initialize
|
|
3411
|
+
// the regeneratorRuntime variable at the top of this file.
|
|
3412
|
+
true ? module.exports : undefined
|
|
3413
|
+
));
|
|
3414
|
+
|
|
3415
|
+
try {
|
|
3416
|
+
regeneratorRuntime = runtime;
|
|
3417
|
+
} catch (accidentalStrictMode) {
|
|
3418
|
+
// This module should not be running in strict mode, so the above
|
|
3419
|
+
// assignment should always work unless something is misconfigured. Just
|
|
3420
|
+
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
3421
|
+
// strict mode using a global Function call. This could conceivably fail
|
|
3422
|
+
// if a Content Security Policy forbids using Function, but in that case
|
|
3423
|
+
// the proper solution is to fix the accidental strict mode problem. If
|
|
3424
|
+
// you've misconfigured your bundler to force strict mode and applied a
|
|
3425
|
+
// CSP to forbid Function, and you're not willing to fix either of those
|
|
3426
|
+
// problems, please detail your unique predicament in a GitHub issue.
|
|
3427
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
3428
|
+
}
|
|
3429
|
+
|
|
3430
|
+
|
|
3431
|
+
/***/ }),
|
|
3432
|
+
|
|
3433
|
+
/***/ "99af":
|
|
3434
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3435
|
+
|
|
3436
|
+
"use strict";
|
|
3437
|
+
|
|
3438
|
+
var $ = __webpack_require__("23e7");
|
|
3439
|
+
var fails = __webpack_require__("d039");
|
|
3440
|
+
var isArray = __webpack_require__("e8b5");
|
|
3441
|
+
var isObject = __webpack_require__("861d");
|
|
3442
|
+
var toObject = __webpack_require__("7b0b");
|
|
3443
|
+
var toLength = __webpack_require__("50c4");
|
|
3444
|
+
var createProperty = __webpack_require__("8418");
|
|
3445
|
+
var arraySpeciesCreate = __webpack_require__("65f0");
|
|
3446
|
+
var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
|
|
3447
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
3448
|
+
var V8_VERSION = __webpack_require__("2d00");
|
|
3449
|
+
|
|
3450
|
+
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
|
3451
|
+
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
3452
|
+
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
3453
|
+
|
|
3454
|
+
// We can't use this feature detection in V8 since it causes
|
|
3455
|
+
// deoptimization and serious performance degradation
|
|
3456
|
+
// https://github.com/zloirock/core-js/issues/679
|
|
3457
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
|
|
3458
|
+
var array = [];
|
|
3459
|
+
array[IS_CONCAT_SPREADABLE] = false;
|
|
3460
|
+
return array.concat()[0] !== array;
|
|
3461
|
+
});
|
|
3462
|
+
|
|
3463
|
+
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
|
|
3464
|
+
|
|
3465
|
+
var isConcatSpreadable = function (O) {
|
|
3466
|
+
if (!isObject(O)) return false;
|
|
3467
|
+
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
3468
|
+
return spreadable !== undefined ? !!spreadable : isArray(O);
|
|
3469
|
+
};
|
|
3470
|
+
|
|
3471
|
+
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
|
3472
|
+
|
|
3473
|
+
// `Array.prototype.concat` method
|
|
3474
|
+
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
|
3475
|
+
// with adding support of @@isConcatSpreadable and @@species
|
|
3476
|
+
$({ target: 'Array', proto: true, forced: FORCED }, {
|
|
3477
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
3478
|
+
concat: function concat(arg) {
|
|
3479
|
+
var O = toObject(this);
|
|
3480
|
+
var A = arraySpeciesCreate(O, 0);
|
|
3481
|
+
var n = 0;
|
|
3482
|
+
var i, k, length, len, E;
|
|
3483
|
+
for (i = -1, length = arguments.length; i < length; i++) {
|
|
3484
|
+
E = i === -1 ? O : arguments[i];
|
|
3485
|
+
if (isConcatSpreadable(E)) {
|
|
3486
|
+
len = toLength(E.length);
|
|
3487
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
3488
|
+
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
|
3489
|
+
} else {
|
|
3490
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
3491
|
+
createProperty(A, n++, E);
|
|
3492
|
+
}
|
|
3493
|
+
}
|
|
3494
|
+
A.length = n;
|
|
3495
|
+
return A;
|
|
3496
|
+
}
|
|
3497
|
+
});
|
|
3498
|
+
|
|
3499
|
+
|
|
3500
|
+
/***/ }),
|
|
3501
|
+
|
|
3502
|
+
/***/ "9bdd":
|
|
3503
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3504
|
+
|
|
3505
|
+
var anObject = __webpack_require__("825a");
|
|
3506
|
+
var iteratorClose = __webpack_require__("2a62");
|
|
3507
|
+
|
|
3508
|
+
// call something on iterator step with safe closing on error
|
|
3509
|
+
module.exports = function (iterator, fn, value, ENTRIES) {
|
|
3510
|
+
try {
|
|
3511
|
+
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
|
|
3512
|
+
// 7.4.6 IteratorClose(iterator, completion)
|
|
3513
|
+
} catch (error) {
|
|
3514
|
+
iteratorClose(iterator);
|
|
3515
|
+
throw error;
|
|
3516
|
+
}
|
|
3517
|
+
};
|
|
3518
|
+
|
|
3519
|
+
|
|
3520
|
+
/***/ }),
|
|
3521
|
+
|
|
3522
|
+
/***/ "9bf2":
|
|
3523
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3524
|
+
|
|
3525
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
3526
|
+
var IE8_DOM_DEFINE = __webpack_require__("0cfb");
|
|
3527
|
+
var anObject = __webpack_require__("825a");
|
|
3528
|
+
var toPrimitive = __webpack_require__("c04e");
|
|
3529
|
+
|
|
3530
|
+
var nativeDefineProperty = Object.defineProperty;
|
|
3531
|
+
|
|
3532
|
+
// `Object.defineProperty` method
|
|
3533
|
+
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
3534
|
+
exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
|
|
3535
|
+
anObject(O);
|
|
3536
|
+
P = toPrimitive(P, true);
|
|
3537
|
+
anObject(Attributes);
|
|
3538
|
+
if (IE8_DOM_DEFINE) try {
|
|
3539
|
+
return nativeDefineProperty(O, P, Attributes);
|
|
3540
|
+
} catch (error) { /* empty */ }
|
|
3541
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
|
3542
|
+
if ('value' in Attributes) O[P] = Attributes.value;
|
|
3543
|
+
return O;
|
|
3544
|
+
};
|
|
3545
|
+
|
|
3546
|
+
|
|
3547
|
+
/***/ }),
|
|
2530
3548
|
|
|
2531
3549
|
/***/ "9ed3":
|
|
2532
3550
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -2581,6 +3599,16 @@ exports.BROKEN_CARET = fails(function () {
|
|
|
2581
3599
|
});
|
|
2582
3600
|
|
|
2583
3601
|
|
|
3602
|
+
/***/ }),
|
|
3603
|
+
|
|
3604
|
+
/***/ "a4b4":
|
|
3605
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3606
|
+
|
|
3607
|
+
var userAgent = __webpack_require__("342f");
|
|
3608
|
+
|
|
3609
|
+
module.exports = /web0s(?!.*chrome)/i.test(userAgent);
|
|
3610
|
+
|
|
3611
|
+
|
|
2584
3612
|
/***/ }),
|
|
2585
3613
|
|
|
2586
3614
|
/***/ "a4d3":
|
|
@@ -3213,6 +4241,93 @@ if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
|
|
|
3213
4241
|
/* unused harmony reexport * */
|
|
3214
4242
|
|
|
3215
4243
|
|
|
4244
|
+
/***/ }),
|
|
4245
|
+
|
|
4246
|
+
/***/ "b575":
|
|
4247
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4248
|
+
|
|
4249
|
+
var global = __webpack_require__("da84");
|
|
4250
|
+
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
|
4251
|
+
var macrotask = __webpack_require__("2cf4").set;
|
|
4252
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
4253
|
+
var IS_WEBOS_WEBKIT = __webpack_require__("a4b4");
|
|
4254
|
+
var IS_NODE = __webpack_require__("605d");
|
|
4255
|
+
|
|
4256
|
+
var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
|
|
4257
|
+
var document = global.document;
|
|
4258
|
+
var process = global.process;
|
|
4259
|
+
var Promise = global.Promise;
|
|
4260
|
+
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
4261
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
|
|
4262
|
+
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
4263
|
+
|
|
4264
|
+
var flush, head, last, notify, toggle, node, promise, then;
|
|
4265
|
+
|
|
4266
|
+
// modern engines have queueMicrotask method
|
|
4267
|
+
if (!queueMicrotask) {
|
|
4268
|
+
flush = function () {
|
|
4269
|
+
var parent, fn;
|
|
4270
|
+
if (IS_NODE && (parent = process.domain)) parent.exit();
|
|
4271
|
+
while (head) {
|
|
4272
|
+
fn = head.fn;
|
|
4273
|
+
head = head.next;
|
|
4274
|
+
try {
|
|
4275
|
+
fn();
|
|
4276
|
+
} catch (error) {
|
|
4277
|
+
if (head) notify();
|
|
4278
|
+
else last = undefined;
|
|
4279
|
+
throw error;
|
|
4280
|
+
}
|
|
4281
|
+
} last = undefined;
|
|
4282
|
+
if (parent) parent.enter();
|
|
4283
|
+
};
|
|
4284
|
+
|
|
4285
|
+
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
4286
|
+
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
4287
|
+
if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {
|
|
4288
|
+
toggle = true;
|
|
4289
|
+
node = document.createTextNode('');
|
|
4290
|
+
new MutationObserver(flush).observe(node, { characterData: true });
|
|
4291
|
+
notify = function () {
|
|
4292
|
+
node.data = toggle = !toggle;
|
|
4293
|
+
};
|
|
4294
|
+
// environments with maybe non-completely correct, but existent Promise
|
|
4295
|
+
} else if (Promise && Promise.resolve) {
|
|
4296
|
+
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
4297
|
+
promise = Promise.resolve(undefined);
|
|
4298
|
+
then = promise.then;
|
|
4299
|
+
notify = function () {
|
|
4300
|
+
then.call(promise, flush);
|
|
4301
|
+
};
|
|
4302
|
+
// Node.js without promises
|
|
4303
|
+
} else if (IS_NODE) {
|
|
4304
|
+
notify = function () {
|
|
4305
|
+
process.nextTick(flush);
|
|
4306
|
+
};
|
|
4307
|
+
// for other environments - macrotask based on:
|
|
4308
|
+
// - setImmediate
|
|
4309
|
+
// - MessageChannel
|
|
4310
|
+
// - window.postMessag
|
|
4311
|
+
// - onreadystatechange
|
|
4312
|
+
// - setTimeout
|
|
4313
|
+
} else {
|
|
4314
|
+
notify = function () {
|
|
4315
|
+
// strange IE + webpack dev server bug - use .call(global)
|
|
4316
|
+
macrotask.call(global, flush);
|
|
4317
|
+
};
|
|
4318
|
+
}
|
|
4319
|
+
}
|
|
4320
|
+
|
|
4321
|
+
module.exports = queueMicrotask || function (fn) {
|
|
4322
|
+
var task = { fn: fn, next: undefined };
|
|
4323
|
+
if (last) last.next = task;
|
|
4324
|
+
if (!head) {
|
|
4325
|
+
head = task;
|
|
4326
|
+
notify();
|
|
4327
|
+
} last = task;
|
|
4328
|
+
};
|
|
4329
|
+
|
|
4330
|
+
|
|
3216
4331
|
/***/ }),
|
|
3217
4332
|
|
|
3218
4333
|
/***/ "b622":
|
|
@@ -3486,6 +4601,25 @@ module.exports = function (it) {
|
|
|
3486
4601
|
};
|
|
3487
4602
|
|
|
3488
4603
|
|
|
4604
|
+
/***/ }),
|
|
4605
|
+
|
|
4606
|
+
/***/ "cdf9":
|
|
4607
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4608
|
+
|
|
4609
|
+
var anObject = __webpack_require__("825a");
|
|
4610
|
+
var isObject = __webpack_require__("861d");
|
|
4611
|
+
var newPromiseCapability = __webpack_require__("f069");
|
|
4612
|
+
|
|
4613
|
+
module.exports = function (C, x) {
|
|
4614
|
+
anObject(C);
|
|
4615
|
+
if (isObject(x) && x.constructor === C) return x;
|
|
4616
|
+
var promiseCapability = newPromiseCapability.f(C);
|
|
4617
|
+
var resolve = promiseCapability.resolve;
|
|
4618
|
+
resolve(x);
|
|
4619
|
+
return promiseCapability.promise;
|
|
4620
|
+
};
|
|
4621
|
+
|
|
4622
|
+
|
|
3489
4623
|
/***/ }),
|
|
3490
4624
|
|
|
3491
4625
|
/***/ "ce4e":
|
|
@@ -4103,43 +5237,459 @@ module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
|
4103
5237
|
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
4104
5238
|
Iterators.Arguments = Iterators.Array;
|
|
4105
5239
|
|
|
4106
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
4107
|
-
addToUnscopables('keys');
|
|
4108
|
-
addToUnscopables('values');
|
|
4109
|
-
addToUnscopables('entries');
|
|
5240
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
5241
|
+
addToUnscopables('keys');
|
|
5242
|
+
addToUnscopables('values');
|
|
5243
|
+
addToUnscopables('entries');
|
|
5244
|
+
|
|
5245
|
+
|
|
5246
|
+
/***/ }),
|
|
5247
|
+
|
|
5248
|
+
/***/ "e2cc":
|
|
5249
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5250
|
+
|
|
5251
|
+
var redefine = __webpack_require__("6eeb");
|
|
5252
|
+
|
|
5253
|
+
module.exports = function (target, src, options) {
|
|
5254
|
+
for (var key in src) redefine(target, key, src[key], options);
|
|
5255
|
+
return target;
|
|
5256
|
+
};
|
|
5257
|
+
|
|
5258
|
+
|
|
5259
|
+
/***/ }),
|
|
5260
|
+
|
|
5261
|
+
/***/ "e439":
|
|
5262
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5263
|
+
|
|
5264
|
+
var $ = __webpack_require__("23e7");
|
|
5265
|
+
var fails = __webpack_require__("d039");
|
|
5266
|
+
var toIndexedObject = __webpack_require__("fc6a");
|
|
5267
|
+
var nativeGetOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
|
5268
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
5269
|
+
|
|
5270
|
+
var FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });
|
|
5271
|
+
var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;
|
|
5272
|
+
|
|
5273
|
+
// `Object.getOwnPropertyDescriptor` method
|
|
5274
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
5275
|
+
$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
|
|
5276
|
+
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
|
|
5277
|
+
return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
|
|
5278
|
+
}
|
|
5279
|
+
});
|
|
5280
|
+
|
|
5281
|
+
|
|
5282
|
+
/***/ }),
|
|
5283
|
+
|
|
5284
|
+
/***/ "e538":
|
|
5285
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5286
|
+
|
|
5287
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
5288
|
+
|
|
5289
|
+
exports.f = wellKnownSymbol;
|
|
5290
|
+
|
|
5291
|
+
|
|
5292
|
+
/***/ }),
|
|
5293
|
+
|
|
5294
|
+
/***/ "e667":
|
|
5295
|
+
/***/ (function(module, exports) {
|
|
5296
|
+
|
|
5297
|
+
module.exports = function (exec) {
|
|
5298
|
+
try {
|
|
5299
|
+
return { error: false, value: exec() };
|
|
5300
|
+
} catch (error) {
|
|
5301
|
+
return { error: true, value: error };
|
|
5302
|
+
}
|
|
5303
|
+
};
|
|
5304
|
+
|
|
5305
|
+
|
|
5306
|
+
/***/ }),
|
|
5307
|
+
|
|
5308
|
+
/***/ "e6cf":
|
|
5309
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5310
|
+
|
|
5311
|
+
"use strict";
|
|
5312
|
+
|
|
5313
|
+
var $ = __webpack_require__("23e7");
|
|
5314
|
+
var IS_PURE = __webpack_require__("c430");
|
|
5315
|
+
var global = __webpack_require__("da84");
|
|
5316
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
5317
|
+
var NativePromise = __webpack_require__("fea9");
|
|
5318
|
+
var redefine = __webpack_require__("6eeb");
|
|
5319
|
+
var redefineAll = __webpack_require__("e2cc");
|
|
5320
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
5321
|
+
var setSpecies = __webpack_require__("2626");
|
|
5322
|
+
var isObject = __webpack_require__("861d");
|
|
5323
|
+
var aFunction = __webpack_require__("1c0b");
|
|
5324
|
+
var anInstance = __webpack_require__("19aa");
|
|
5325
|
+
var inspectSource = __webpack_require__("8925");
|
|
5326
|
+
var iterate = __webpack_require__("2266");
|
|
5327
|
+
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
|
5328
|
+
var speciesConstructor = __webpack_require__("4840");
|
|
5329
|
+
var task = __webpack_require__("2cf4").set;
|
|
5330
|
+
var microtask = __webpack_require__("b575");
|
|
5331
|
+
var promiseResolve = __webpack_require__("cdf9");
|
|
5332
|
+
var hostReportErrors = __webpack_require__("44de");
|
|
5333
|
+
var newPromiseCapabilityModule = __webpack_require__("f069");
|
|
5334
|
+
var perform = __webpack_require__("e667");
|
|
5335
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
5336
|
+
var isForced = __webpack_require__("94ca");
|
|
5337
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
5338
|
+
var IS_NODE = __webpack_require__("605d");
|
|
5339
|
+
var V8_VERSION = __webpack_require__("2d00");
|
|
5340
|
+
|
|
5341
|
+
var SPECIES = wellKnownSymbol('species');
|
|
5342
|
+
var PROMISE = 'Promise';
|
|
5343
|
+
var getInternalState = InternalStateModule.get;
|
|
5344
|
+
var setInternalState = InternalStateModule.set;
|
|
5345
|
+
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
5346
|
+
var PromiseConstructor = NativePromise;
|
|
5347
|
+
var TypeError = global.TypeError;
|
|
5348
|
+
var document = global.document;
|
|
5349
|
+
var process = global.process;
|
|
5350
|
+
var $fetch = getBuiltIn('fetch');
|
|
5351
|
+
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
5352
|
+
var newGenericPromiseCapability = newPromiseCapability;
|
|
5353
|
+
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
|
|
5354
|
+
var NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function';
|
|
5355
|
+
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
5356
|
+
var REJECTION_HANDLED = 'rejectionhandled';
|
|
5357
|
+
var PENDING = 0;
|
|
5358
|
+
var FULFILLED = 1;
|
|
5359
|
+
var REJECTED = 2;
|
|
5360
|
+
var HANDLED = 1;
|
|
5361
|
+
var UNHANDLED = 2;
|
|
5362
|
+
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
5363
|
+
|
|
5364
|
+
var FORCED = isForced(PROMISE, function () {
|
|
5365
|
+
var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
|
|
5366
|
+
if (!GLOBAL_CORE_JS_PROMISE) {
|
|
5367
|
+
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
5368
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
5369
|
+
// We can't detect it synchronously, so just check versions
|
|
5370
|
+
if (V8_VERSION === 66) return true;
|
|
5371
|
+
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
5372
|
+
if (!IS_NODE && !NATIVE_REJECTION_EVENT) return true;
|
|
5373
|
+
}
|
|
5374
|
+
// We need Promise#finally in the pure version for preventing prototype pollution
|
|
5375
|
+
if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
|
|
5376
|
+
// We can't use @@species feature detection in V8 since it causes
|
|
5377
|
+
// deoptimization and performance degradation
|
|
5378
|
+
// https://github.com/zloirock/core-js/issues/679
|
|
5379
|
+
if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
|
|
5380
|
+
// Detect correctness of subclassing with @@species support
|
|
5381
|
+
var promise = PromiseConstructor.resolve(1);
|
|
5382
|
+
var FakePromise = function (exec) {
|
|
5383
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
5384
|
+
};
|
|
5385
|
+
var constructor = promise.constructor = {};
|
|
5386
|
+
constructor[SPECIES] = FakePromise;
|
|
5387
|
+
return !(promise.then(function () { /* empty */ }) instanceof FakePromise);
|
|
5388
|
+
});
|
|
5389
|
+
|
|
5390
|
+
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
|
|
5391
|
+
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
|
|
5392
|
+
});
|
|
5393
|
+
|
|
5394
|
+
// helpers
|
|
5395
|
+
var isThenable = function (it) {
|
|
5396
|
+
var then;
|
|
5397
|
+
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
|
|
5398
|
+
};
|
|
5399
|
+
|
|
5400
|
+
var notify = function (state, isReject) {
|
|
5401
|
+
if (state.notified) return;
|
|
5402
|
+
state.notified = true;
|
|
5403
|
+
var chain = state.reactions;
|
|
5404
|
+
microtask(function () {
|
|
5405
|
+
var value = state.value;
|
|
5406
|
+
var ok = state.state == FULFILLED;
|
|
5407
|
+
var index = 0;
|
|
5408
|
+
// variable length - can't use forEach
|
|
5409
|
+
while (chain.length > index) {
|
|
5410
|
+
var reaction = chain[index++];
|
|
5411
|
+
var handler = ok ? reaction.ok : reaction.fail;
|
|
5412
|
+
var resolve = reaction.resolve;
|
|
5413
|
+
var reject = reaction.reject;
|
|
5414
|
+
var domain = reaction.domain;
|
|
5415
|
+
var result, then, exited;
|
|
5416
|
+
try {
|
|
5417
|
+
if (handler) {
|
|
5418
|
+
if (!ok) {
|
|
5419
|
+
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
|
5420
|
+
state.rejection = HANDLED;
|
|
5421
|
+
}
|
|
5422
|
+
if (handler === true) result = value;
|
|
5423
|
+
else {
|
|
5424
|
+
if (domain) domain.enter();
|
|
5425
|
+
result = handler(value); // can throw
|
|
5426
|
+
if (domain) {
|
|
5427
|
+
domain.exit();
|
|
5428
|
+
exited = true;
|
|
5429
|
+
}
|
|
5430
|
+
}
|
|
5431
|
+
if (result === reaction.promise) {
|
|
5432
|
+
reject(TypeError('Promise-chain cycle'));
|
|
5433
|
+
} else if (then = isThenable(result)) {
|
|
5434
|
+
then.call(result, resolve, reject);
|
|
5435
|
+
} else resolve(result);
|
|
5436
|
+
} else reject(value);
|
|
5437
|
+
} catch (error) {
|
|
5438
|
+
if (domain && !exited) domain.exit();
|
|
5439
|
+
reject(error);
|
|
5440
|
+
}
|
|
5441
|
+
}
|
|
5442
|
+
state.reactions = [];
|
|
5443
|
+
state.notified = false;
|
|
5444
|
+
if (isReject && !state.rejection) onUnhandled(state);
|
|
5445
|
+
});
|
|
5446
|
+
};
|
|
5447
|
+
|
|
5448
|
+
var dispatchEvent = function (name, promise, reason) {
|
|
5449
|
+
var event, handler;
|
|
5450
|
+
if (DISPATCH_EVENT) {
|
|
5451
|
+
event = document.createEvent('Event');
|
|
5452
|
+
event.promise = promise;
|
|
5453
|
+
event.reason = reason;
|
|
5454
|
+
event.initEvent(name, false, true);
|
|
5455
|
+
global.dispatchEvent(event);
|
|
5456
|
+
} else event = { promise: promise, reason: reason };
|
|
5457
|
+
if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
|
|
5458
|
+
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
5459
|
+
};
|
|
5460
|
+
|
|
5461
|
+
var onUnhandled = function (state) {
|
|
5462
|
+
task.call(global, function () {
|
|
5463
|
+
var promise = state.facade;
|
|
5464
|
+
var value = state.value;
|
|
5465
|
+
var IS_UNHANDLED = isUnhandled(state);
|
|
5466
|
+
var result;
|
|
5467
|
+
if (IS_UNHANDLED) {
|
|
5468
|
+
result = perform(function () {
|
|
5469
|
+
if (IS_NODE) {
|
|
5470
|
+
process.emit('unhandledRejection', value, promise);
|
|
5471
|
+
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
5472
|
+
});
|
|
5473
|
+
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
5474
|
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
5475
|
+
if (result.error) throw result.value;
|
|
5476
|
+
}
|
|
5477
|
+
});
|
|
5478
|
+
};
|
|
4110
5479
|
|
|
5480
|
+
var isUnhandled = function (state) {
|
|
5481
|
+
return state.rejection !== HANDLED && !state.parent;
|
|
5482
|
+
};
|
|
4111
5483
|
|
|
4112
|
-
|
|
5484
|
+
var onHandleUnhandled = function (state) {
|
|
5485
|
+
task.call(global, function () {
|
|
5486
|
+
var promise = state.facade;
|
|
5487
|
+
if (IS_NODE) {
|
|
5488
|
+
process.emit('rejectionHandled', promise);
|
|
5489
|
+
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
5490
|
+
});
|
|
5491
|
+
};
|
|
4113
5492
|
|
|
4114
|
-
|
|
4115
|
-
|
|
5493
|
+
var bind = function (fn, state, unwrap) {
|
|
5494
|
+
return function (value) {
|
|
5495
|
+
fn(state, value, unwrap);
|
|
5496
|
+
};
|
|
5497
|
+
};
|
|
4116
5498
|
|
|
4117
|
-
var
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
5499
|
+
var internalReject = function (state, value, unwrap) {
|
|
5500
|
+
if (state.done) return;
|
|
5501
|
+
state.done = true;
|
|
5502
|
+
if (unwrap) state = unwrap;
|
|
5503
|
+
state.value = value;
|
|
5504
|
+
state.state = REJECTED;
|
|
5505
|
+
notify(state, true);
|
|
5506
|
+
};
|
|
4122
5507
|
|
|
4123
|
-
var
|
|
4124
|
-
|
|
5508
|
+
var internalResolve = function (state, value, unwrap) {
|
|
5509
|
+
if (state.done) return;
|
|
5510
|
+
state.done = true;
|
|
5511
|
+
if (unwrap) state = unwrap;
|
|
5512
|
+
try {
|
|
5513
|
+
if (state.facade === value) throw TypeError("Promise can't be resolved itself");
|
|
5514
|
+
var then = isThenable(value);
|
|
5515
|
+
if (then) {
|
|
5516
|
+
microtask(function () {
|
|
5517
|
+
var wrapper = { done: false };
|
|
5518
|
+
try {
|
|
5519
|
+
then.call(value,
|
|
5520
|
+
bind(internalResolve, wrapper, state),
|
|
5521
|
+
bind(internalReject, wrapper, state)
|
|
5522
|
+
);
|
|
5523
|
+
} catch (error) {
|
|
5524
|
+
internalReject(wrapper, error, state);
|
|
5525
|
+
}
|
|
5526
|
+
});
|
|
5527
|
+
} else {
|
|
5528
|
+
state.value = value;
|
|
5529
|
+
state.state = FULFILLED;
|
|
5530
|
+
notify(state, false);
|
|
5531
|
+
}
|
|
5532
|
+
} catch (error) {
|
|
5533
|
+
internalReject({ done: false }, error, state);
|
|
5534
|
+
}
|
|
5535
|
+
};
|
|
4125
5536
|
|
|
4126
|
-
//
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
5537
|
+
// constructor polyfill
|
|
5538
|
+
if (FORCED) {
|
|
5539
|
+
// 25.4.3.1 Promise(executor)
|
|
5540
|
+
PromiseConstructor = function Promise(executor) {
|
|
5541
|
+
anInstance(this, PromiseConstructor, PROMISE);
|
|
5542
|
+
aFunction(executor);
|
|
5543
|
+
Internal.call(this);
|
|
5544
|
+
var state = getInternalState(this);
|
|
5545
|
+
try {
|
|
5546
|
+
executor(bind(internalResolve, state), bind(internalReject, state));
|
|
5547
|
+
} catch (error) {
|
|
5548
|
+
internalReject(state, error);
|
|
5549
|
+
}
|
|
5550
|
+
};
|
|
5551
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
5552
|
+
Internal = function Promise(executor) {
|
|
5553
|
+
setInternalState(this, {
|
|
5554
|
+
type: PROMISE,
|
|
5555
|
+
done: false,
|
|
5556
|
+
notified: false,
|
|
5557
|
+
parent: false,
|
|
5558
|
+
reactions: [],
|
|
5559
|
+
rejection: false,
|
|
5560
|
+
state: PENDING,
|
|
5561
|
+
value: undefined
|
|
5562
|
+
});
|
|
5563
|
+
};
|
|
5564
|
+
Internal.prototype = redefineAll(PromiseConstructor.prototype, {
|
|
5565
|
+
// `Promise.prototype.then` method
|
|
5566
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
5567
|
+
then: function then(onFulfilled, onRejected) {
|
|
5568
|
+
var state = getInternalPromiseState(this);
|
|
5569
|
+
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
|
5570
|
+
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
|
5571
|
+
reaction.fail = typeof onRejected == 'function' && onRejected;
|
|
5572
|
+
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
5573
|
+
state.parent = true;
|
|
5574
|
+
state.reactions.push(reaction);
|
|
5575
|
+
if (state.state != PENDING) notify(state, false);
|
|
5576
|
+
return reaction.promise;
|
|
5577
|
+
},
|
|
5578
|
+
// `Promise.prototype.catch` method
|
|
5579
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
5580
|
+
'catch': function (onRejected) {
|
|
5581
|
+
return this.then(undefined, onRejected);
|
|
5582
|
+
}
|
|
5583
|
+
});
|
|
5584
|
+
OwnPromiseCapability = function () {
|
|
5585
|
+
var promise = new Internal();
|
|
5586
|
+
var state = getInternalState(promise);
|
|
5587
|
+
this.promise = promise;
|
|
5588
|
+
this.resolve = bind(internalResolve, state);
|
|
5589
|
+
this.reject = bind(internalReject, state);
|
|
5590
|
+
};
|
|
5591
|
+
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
|
5592
|
+
return C === PromiseConstructor || C === PromiseWrapper
|
|
5593
|
+
? new OwnPromiseCapability(C)
|
|
5594
|
+
: newGenericPromiseCapability(C);
|
|
5595
|
+
};
|
|
5596
|
+
|
|
5597
|
+
if (!IS_PURE && typeof NativePromise == 'function') {
|
|
5598
|
+
nativeThen = NativePromise.prototype.then;
|
|
5599
|
+
|
|
5600
|
+
// wrap native Promise#then for native async functions
|
|
5601
|
+
redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
|
|
5602
|
+
var that = this;
|
|
5603
|
+
return new PromiseConstructor(function (resolve, reject) {
|
|
5604
|
+
nativeThen.call(that, resolve, reject);
|
|
5605
|
+
}).then(onFulfilled, onRejected);
|
|
5606
|
+
// https://github.com/zloirock/core-js/issues/640
|
|
5607
|
+
}, { unsafe: true });
|
|
5608
|
+
|
|
5609
|
+
// wrap fetch result
|
|
5610
|
+
if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
|
|
5611
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
5612
|
+
fetch: function fetch(input /* , init */) {
|
|
5613
|
+
return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
|
|
5614
|
+
}
|
|
5615
|
+
});
|
|
4131
5616
|
}
|
|
5617
|
+
}
|
|
5618
|
+
|
|
5619
|
+
$({ global: true, wrap: true, forced: FORCED }, {
|
|
5620
|
+
Promise: PromiseConstructor
|
|
4132
5621
|
});
|
|
4133
5622
|
|
|
5623
|
+
setToStringTag(PromiseConstructor, PROMISE, false, true);
|
|
5624
|
+
setSpecies(PROMISE);
|
|
4134
5625
|
|
|
4135
|
-
|
|
5626
|
+
PromiseWrapper = getBuiltIn(PROMISE);
|
|
4136
5627
|
|
|
4137
|
-
|
|
4138
|
-
|
|
5628
|
+
// statics
|
|
5629
|
+
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
5630
|
+
// `Promise.reject` method
|
|
5631
|
+
// https://tc39.es/ecma262/#sec-promise.reject
|
|
5632
|
+
reject: function reject(r) {
|
|
5633
|
+
var capability = newPromiseCapability(this);
|
|
5634
|
+
capability.reject.call(undefined, r);
|
|
5635
|
+
return capability.promise;
|
|
5636
|
+
}
|
|
5637
|
+
});
|
|
4139
5638
|
|
|
4140
|
-
|
|
5639
|
+
$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
|
|
5640
|
+
// `Promise.resolve` method
|
|
5641
|
+
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
5642
|
+
resolve: function resolve(x) {
|
|
5643
|
+
return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
|
|
5644
|
+
}
|
|
5645
|
+
});
|
|
4141
5646
|
|
|
4142
|
-
|
|
5647
|
+
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
5648
|
+
// `Promise.all` method
|
|
5649
|
+
// https://tc39.es/ecma262/#sec-promise.all
|
|
5650
|
+
all: function all(iterable) {
|
|
5651
|
+
var C = this;
|
|
5652
|
+
var capability = newPromiseCapability(C);
|
|
5653
|
+
var resolve = capability.resolve;
|
|
5654
|
+
var reject = capability.reject;
|
|
5655
|
+
var result = perform(function () {
|
|
5656
|
+
var $promiseResolve = aFunction(C.resolve);
|
|
5657
|
+
var values = [];
|
|
5658
|
+
var counter = 0;
|
|
5659
|
+
var remaining = 1;
|
|
5660
|
+
iterate(iterable, function (promise) {
|
|
5661
|
+
var index = counter++;
|
|
5662
|
+
var alreadyCalled = false;
|
|
5663
|
+
values.push(undefined);
|
|
5664
|
+
remaining++;
|
|
5665
|
+
$promiseResolve.call(C, promise).then(function (value) {
|
|
5666
|
+
if (alreadyCalled) return;
|
|
5667
|
+
alreadyCalled = true;
|
|
5668
|
+
values[index] = value;
|
|
5669
|
+
--remaining || resolve(values);
|
|
5670
|
+
}, reject);
|
|
5671
|
+
});
|
|
5672
|
+
--remaining || resolve(values);
|
|
5673
|
+
});
|
|
5674
|
+
if (result.error) reject(result.value);
|
|
5675
|
+
return capability.promise;
|
|
5676
|
+
},
|
|
5677
|
+
// `Promise.race` method
|
|
5678
|
+
// https://tc39.es/ecma262/#sec-promise.race
|
|
5679
|
+
race: function race(iterable) {
|
|
5680
|
+
var C = this;
|
|
5681
|
+
var capability = newPromiseCapability(C);
|
|
5682
|
+
var reject = capability.reject;
|
|
5683
|
+
var result = perform(function () {
|
|
5684
|
+
var $promiseResolve = aFunction(C.resolve);
|
|
5685
|
+
iterate(iterable, function (promise) {
|
|
5686
|
+
$promiseResolve.call(C, promise).then(capability.resolve, reject);
|
|
5687
|
+
});
|
|
5688
|
+
});
|
|
5689
|
+
if (result.error) reject(result.value);
|
|
5690
|
+
return capability.promise;
|
|
5691
|
+
}
|
|
5692
|
+
});
|
|
4143
5693
|
|
|
4144
5694
|
|
|
4145
5695
|
/***/ }),
|
|
@@ -4194,6 +5744,32 @@ module.exports = function (it) {
|
|
|
4194
5744
|
};
|
|
4195
5745
|
|
|
4196
5746
|
|
|
5747
|
+
/***/ }),
|
|
5748
|
+
|
|
5749
|
+
/***/ "f069":
|
|
5750
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5751
|
+
|
|
5752
|
+
"use strict";
|
|
5753
|
+
|
|
5754
|
+
var aFunction = __webpack_require__("1c0b");
|
|
5755
|
+
|
|
5756
|
+
var PromiseCapability = function (C) {
|
|
5757
|
+
var resolve, reject;
|
|
5758
|
+
this.promise = new C(function ($$resolve, $$reject) {
|
|
5759
|
+
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
|
5760
|
+
resolve = $$resolve;
|
|
5761
|
+
reject = $$reject;
|
|
5762
|
+
});
|
|
5763
|
+
this.resolve = aFunction(resolve);
|
|
5764
|
+
this.reject = aFunction(reject);
|
|
5765
|
+
};
|
|
5766
|
+
|
|
5767
|
+
// 25.4.1.5 NewPromiseCapability(C)
|
|
5768
|
+
module.exports.f = function (C) {
|
|
5769
|
+
return new PromiseCapability(C);
|
|
5770
|
+
};
|
|
5771
|
+
|
|
5772
|
+
|
|
4197
5773
|
/***/ }),
|
|
4198
5774
|
|
|
4199
5775
|
/***/ "f234":
|
|
@@ -4407,7 +5983,7 @@ if (typeof window !== 'undefined') {
|
|
|
4407
5983
|
// Indicate to webpack that this file can be concatenated
|
|
4408
5984
|
/* harmony default export */ var setPublicPath = (null);
|
|
4409
5985
|
|
|
4410
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
5986
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"266873a8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VFilters.vue?vue&type=template&id=98effcdc&
|
|
4411
5987
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"v-filters"},[_c('div',{staticClass:"v-filters_fields"},[_vm._t("before-fields"),_vm._l((_vm.fields),function(field){return _c(_vm.fieldComponentName,{key:field._name,tag:"component",class:[("__" + (field._name))],attrs:{"title":field.title}},[_c(_vm.componentsMap[field._type],_vm._b({key:_vm.fieldKey,tag:"component",on:{"input":function($event){return _vm.handleFieldChange(field._name, $event)}},model:{value:(_vm.filters[field._name]),callback:function ($$v) {_vm.$set(_vm.filters, field._name, $$v)},expression:"filters[field._name]"}},'component',field._fieldProps || {},false))],1)}),_vm._t("after-fields"),_vm._t("actions",[_c(_vm.fieldComponentName,{tag:"component"},[(!_vm.immediate)?_c('button',{staticClass:"v-button v-filters_button",on:{"click":_vm.showResult}},[_vm._v(" "+_vm._s(_vm.actionTitle)+" ")]):_vm._e(),(_vm.edited)?_c('button',{staticClass:"v-button v-filters_button __reset",on:{"click":_vm.resetFilters}},[_vm._v(" Сбросить параметры ")]):_vm._e()])],null,{
|
|
4412
5988
|
showResult: _vm.showResult,
|
|
4413
5989
|
resetFilters: _vm.resetFilters,
|
|
@@ -4424,93 +6000,63 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
|
|
|
4424
6000
|
var staticRenderFns = []
|
|
4425
6001
|
|
|
4426
6002
|
|
|
4427
|
-
// CONCATENATED MODULE: ./src/components/VFilters.vue?vue&type=template&id=
|
|
6003
|
+
// CONCATENATED MODULE: ./src/components/VFilters.vue?vue&type=template&id=98effcdc&
|
|
4428
6004
|
|
|
4429
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.
|
|
4430
|
-
var
|
|
6005
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
6006
|
+
var es_promise = __webpack_require__("e6cf");
|
|
4431
6007
|
|
|
4432
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.
|
|
4433
|
-
var
|
|
6008
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
6009
|
+
var es_object_to_string = __webpack_require__("d3b7");
|
|
4434
6010
|
|
|
4435
|
-
//
|
|
4436
|
-
var es_array_filter = __webpack_require__("4de4");
|
|
6011
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
4437
6012
|
|
|
4438
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptor.js
|
|
4439
|
-
var es_object_get_own_property_descriptor = __webpack_require__("e439");
|
|
4440
6013
|
|
|
4441
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
4442
|
-
var web_dom_collections_for_each = __webpack_require__("159b");
|
|
4443
6014
|
|
|
4444
|
-
|
|
4445
|
-
|
|
6015
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
6016
|
+
try {
|
|
6017
|
+
var info = gen[key](arg);
|
|
6018
|
+
var value = info.value;
|
|
6019
|
+
} catch (error) {
|
|
6020
|
+
reject(error);
|
|
6021
|
+
return;
|
|
6022
|
+
}
|
|
4446
6023
|
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
if (key in obj) {
|
|
4450
|
-
Object.defineProperty(obj, key, {
|
|
4451
|
-
value: value,
|
|
4452
|
-
enumerable: true,
|
|
4453
|
-
configurable: true,
|
|
4454
|
-
writable: true
|
|
4455
|
-
});
|
|
6024
|
+
if (info.done) {
|
|
6025
|
+
resolve(value);
|
|
4456
6026
|
} else {
|
|
4457
|
-
|
|
6027
|
+
Promise.resolve(value).then(_next, _throw);
|
|
4458
6028
|
}
|
|
4459
|
-
|
|
4460
|
-
return obj;
|
|
4461
6029
|
}
|
|
4462
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
6030
|
|
|
6031
|
+
function _asyncToGenerator(fn) {
|
|
6032
|
+
return function () {
|
|
6033
|
+
var self = this,
|
|
6034
|
+
args = arguments;
|
|
6035
|
+
return new Promise(function (resolve, reject) {
|
|
6036
|
+
var gen = fn.apply(self, args);
|
|
4469
6037
|
|
|
6038
|
+
function _next(value) {
|
|
6039
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
6040
|
+
}
|
|
4470
6041
|
|
|
4471
|
-
function
|
|
4472
|
-
|
|
6042
|
+
function _throw(err) {
|
|
6043
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
6044
|
+
}
|
|
4473
6045
|
|
|
4474
|
-
|
|
4475
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
4476
|
-
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
4477
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
6046
|
+
_next(undefined);
|
|
4478
6047
|
});
|
|
4479
|
-
|
|
4480
|
-
}
|
|
4481
|
-
|
|
4482
|
-
return keys;
|
|
4483
|
-
}
|
|
4484
|
-
|
|
4485
|
-
function _objectSpread2(target) {
|
|
4486
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
4487
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
4488
|
-
|
|
4489
|
-
if (i % 2) {
|
|
4490
|
-
ownKeys(Object(source), true).forEach(function (key) {
|
|
4491
|
-
_defineProperty(target, key, source[key]);
|
|
4492
|
-
});
|
|
4493
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
4494
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
4495
|
-
} else {
|
|
4496
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
4497
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
4498
|
-
});
|
|
4499
|
-
}
|
|
4500
|
-
}
|
|
4501
|
-
|
|
4502
|
-
return target;
|
|
6048
|
+
};
|
|
4503
6049
|
}
|
|
4504
6050
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
4505
6051
|
function _arrayWithHoles(arr) {
|
|
4506
6052
|
if (Array.isArray(arr)) return arr;
|
|
4507
6053
|
}
|
|
6054
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
|
6055
|
+
var es_symbol = __webpack_require__("a4d3");
|
|
6056
|
+
|
|
4508
6057
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
|
|
4509
6058
|
var es_symbol_description = __webpack_require__("e01a");
|
|
4510
6059
|
|
|
4511
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
4512
|
-
var es_object_to_string = __webpack_require__("d3b7");
|
|
4513
|
-
|
|
4514
6060
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js
|
|
4515
6061
|
var es_symbol_iterator = __webpack_require__("d28b");
|
|
4516
6062
|
|
|
@@ -4632,6 +6178,81 @@ function _nonIterableSpread() {
|
|
|
4632
6178
|
function _toConsumableArray(arr) {
|
|
4633
6179
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
4634
6180
|
}
|
|
6181
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
6182
|
+
var es_object_keys = __webpack_require__("b64b");
|
|
6183
|
+
|
|
6184
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
6185
|
+
var es_array_filter = __webpack_require__("4de4");
|
|
6186
|
+
|
|
6187
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptor.js
|
|
6188
|
+
var es_object_get_own_property_descriptor = __webpack_require__("e439");
|
|
6189
|
+
|
|
6190
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
6191
|
+
var web_dom_collections_for_each = __webpack_require__("159b");
|
|
6192
|
+
|
|
6193
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptors.js
|
|
6194
|
+
var es_object_get_own_property_descriptors = __webpack_require__("dbb4");
|
|
6195
|
+
|
|
6196
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
6197
|
+
function _defineProperty(obj, key, value) {
|
|
6198
|
+
if (key in obj) {
|
|
6199
|
+
Object.defineProperty(obj, key, {
|
|
6200
|
+
value: value,
|
|
6201
|
+
enumerable: true,
|
|
6202
|
+
configurable: true,
|
|
6203
|
+
writable: true
|
|
6204
|
+
});
|
|
6205
|
+
} else {
|
|
6206
|
+
obj[key] = value;
|
|
6207
|
+
}
|
|
6208
|
+
|
|
6209
|
+
return obj;
|
|
6210
|
+
}
|
|
6211
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
6212
|
+
|
|
6213
|
+
|
|
6214
|
+
|
|
6215
|
+
|
|
6216
|
+
|
|
6217
|
+
|
|
6218
|
+
|
|
6219
|
+
|
|
6220
|
+
function ownKeys(object, enumerableOnly) {
|
|
6221
|
+
var keys = Object.keys(object);
|
|
6222
|
+
|
|
6223
|
+
if (Object.getOwnPropertySymbols) {
|
|
6224
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
6225
|
+
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
6226
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
6227
|
+
});
|
|
6228
|
+
keys.push.apply(keys, symbols);
|
|
6229
|
+
}
|
|
6230
|
+
|
|
6231
|
+
return keys;
|
|
6232
|
+
}
|
|
6233
|
+
|
|
6234
|
+
function _objectSpread2(target) {
|
|
6235
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
6236
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
6237
|
+
|
|
6238
|
+
if (i % 2) {
|
|
6239
|
+
ownKeys(Object(source), true).forEach(function (key) {
|
|
6240
|
+
_defineProperty(target, key, source[key]);
|
|
6241
|
+
});
|
|
6242
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
6243
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6244
|
+
} else {
|
|
6245
|
+
ownKeys(Object(source)).forEach(function (key) {
|
|
6246
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6247
|
+
});
|
|
6248
|
+
}
|
|
6249
|
+
}
|
|
6250
|
+
|
|
6251
|
+
return target;
|
|
6252
|
+
}
|
|
6253
|
+
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
6254
|
+
var runtime = __webpack_require__("96cf");
|
|
6255
|
+
|
|
4635
6256
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
4636
6257
|
var es_number_constructor = __webpack_require__("a9e3");
|
|
4637
6258
|
|
|
@@ -5163,6 +6784,8 @@ _curry2(function equals(a, b) {
|
|
|
5163
6784
|
|
|
5164
6785
|
|
|
5165
6786
|
|
|
6787
|
+
|
|
6788
|
+
|
|
5166
6789
|
//
|
|
5167
6790
|
//
|
|
5168
6791
|
//
|
|
@@ -5310,6 +6933,12 @@ var VFiltersvue_type_script_lang_js_unserialize = function unserialize(input) {
|
|
|
5310
6933
|
return {};
|
|
5311
6934
|
}
|
|
5312
6935
|
},
|
|
6936
|
+
filterParamsToInclude: {
|
|
6937
|
+
type: Object,
|
|
6938
|
+
default: function _default() {
|
|
6939
|
+
return {};
|
|
6940
|
+
}
|
|
6941
|
+
},
|
|
5313
6942
|
notArrayValueFields: {
|
|
5314
6943
|
type: Array,
|
|
5315
6944
|
default: function _default() {
|
|
@@ -5348,7 +6977,8 @@ var VFiltersvue_type_script_lang_js_unserialize = function unserialize(input) {
|
|
|
5348
6977
|
flatFilters: function flatFilters() {
|
|
5349
6978
|
var _this = this;
|
|
5350
6979
|
|
|
5351
|
-
var filters = {};
|
|
6980
|
+
var filters = _objectSpread2({}, this.filterParamsToInclude);
|
|
6981
|
+
|
|
5352
6982
|
var fieldsToInclude = [].concat(_toConsumableArray(this.editedFields), _toConsumableArray(this.alwaysSendFields));
|
|
5353
6983
|
Object.keys(this.filters).forEach(function (name) {
|
|
5354
6984
|
if (fieldsToInclude.includes(name) || _this.sendAllFields) {
|
|
@@ -5481,9 +7111,30 @@ var VFiltersvue_type_script_lang_js_unserialize = function unserialize(input) {
|
|
|
5481
7111
|
!isUpdate && this.doAction(true);
|
|
5482
7112
|
},
|
|
5483
7113
|
resetFilters: function resetFilters() {
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
7114
|
+
var _this3 = this;
|
|
7115
|
+
|
|
7116
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
7117
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
7118
|
+
while (1) {
|
|
7119
|
+
switch (_context.prev = _context.next) {
|
|
7120
|
+
case 0:
|
|
7121
|
+
_this3.$set('editedFields', []);
|
|
7122
|
+
|
|
7123
|
+
_this3.setUrlParams(true, {});
|
|
7124
|
+
|
|
7125
|
+
_context.next = 4;
|
|
7126
|
+
return _this3.$nextTick();
|
|
7127
|
+
|
|
7128
|
+
case 4:
|
|
7129
|
+
_this3.$emit('reset-filters', _this3.flatFilters);
|
|
7130
|
+
|
|
7131
|
+
case 5:
|
|
7132
|
+
case "end":
|
|
7133
|
+
return _context.stop();
|
|
7134
|
+
}
|
|
7135
|
+
}
|
|
7136
|
+
}, _callee);
|
|
7137
|
+
}))();
|
|
5487
7138
|
},
|
|
5488
7139
|
addEditedField: function addEditedField(name) {
|
|
5489
7140
|
if (!this.editedFields.includes(name)) {
|
|
@@ -5818,6 +7469,16 @@ module.exports = NATIVE_SYMBOL
|
|
|
5818
7469
|
&& typeof Symbol.iterator == 'symbol';
|
|
5819
7470
|
|
|
5820
7471
|
|
|
7472
|
+
/***/ }),
|
|
7473
|
+
|
|
7474
|
+
/***/ "fea9":
|
|
7475
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7476
|
+
|
|
7477
|
+
var global = __webpack_require__("da84");
|
|
7478
|
+
|
|
7479
|
+
module.exports = global.Promise;
|
|
7480
|
+
|
|
7481
|
+
|
|
5821
7482
|
/***/ })
|
|
5822
7483
|
|
|
5823
7484
|
/******/ });
|