@sedoo/unidoo 0.0.52 → 0.0.53
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/unidoo.common.js +1631 -23
- package/dist/unidoo.common.js.map +1 -1
- package/dist/unidoo.umd.js +1631 -23
- package/dist/unidoo.umd.js.map +1 -1
- package/dist/unidoo.umd.min.js +2 -2
- package/dist/unidoo.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/UnidooConfirmDialog.vue +7 -4
package/dist/unidoo.umd.js
CHANGED
|
@@ -949,7 +949,7 @@ module.exports = baseRest;
|
|
|
949
949
|
// ESM COMPAT FLAG
|
|
950
950
|
__webpack_require__.r(__webpack_exports__);
|
|
951
951
|
|
|
952
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
952
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/image-viewer/image-viewer.vue?vue&type=template&id=ad825130&scoped=true&
|
|
953
953
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-col',{staticStyle:{"display":"flex","height":"100%"},attrs:{"justify":"center"}},[_c('v-row',{staticStyle:{"height":"100%"},attrs:{"justify":"center"}},[(_vm.url)?_c('img',{attrs:{"viewer-img":"","src":_vm.url,"aspect-ratio":"1","alt":_vm.title}}):_vm._e()])],1)}
|
|
954
954
|
var staticRenderFns = []
|
|
955
955
|
|
|
@@ -1529,7 +1529,7 @@ module.exports = isMasked;
|
|
|
1529
1529
|
// ESM COMPAT FLAG
|
|
1530
1530
|
__webpack_require__.r(__webpack_exports__);
|
|
1531
1531
|
|
|
1532
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1532
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/unidoo-simple-player/UnidooSimplePlayer.vue?vue&type=template&id=3dbfabf0&scoped=true&
|
|
1533
1533
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('unidoo-player-layout',{ref:"player",attrs:{"initialValue":0,"min":0,"max":_vm.max,"autoPlay":_vm.autoPlay,"graduation":_vm.graduation,"frequency":300,"loadedFrames":_vm.loadedFrames,"progressBarTitle":"Loading image"},on:{"reload-frames":function($event){return _vm.preloadFrames(_vm.loadIndex)}},scopedSlots:_vm._u([{key:"displayer",fn:function(){return [_c('image-viewer',{style:({ opacity : ((_vm.isLoadingFirstFrame) ? '0.5' : '1')}),attrs:{"url":_vm.currentUrl,"title":_vm.frameTitle}})]},proxy:true},{key:"frameTitle",fn:function(){return [_c('v-col',[(_vm.max > 0 && _vm.loadedFrames < (_vm.max + 1))?_c('div',{attrs:{"player-title":"","justify":"center"}},[_c('div',{attrs:{"spinner":""}},[_c('loading-component')],1)]):_c('div',{attrs:{"frame-title":""}},[_vm._v(_vm._s(_vm.frameTitle))])])]},proxy:true}]),model:{value:(_vm.playerCounter),callback:function ($$v) {_vm.playerCounter=$$v},expression:"playerCounter"}})],1)}
|
|
1534
1534
|
var staticRenderFns = []
|
|
1535
1535
|
|
|
@@ -1902,7 +1902,7 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
1902
1902
|
// ESM COMPAT FLAG
|
|
1903
1903
|
__webpack_require__.r(__webpack_exports__);
|
|
1904
1904
|
|
|
1905
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1905
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/unidoo-progress-bar/UnidooProgressBar.vue?vue&type=template&id=780ca0b2&scoped=true&
|
|
1906
1906
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{style:({ background: _vm.barColor }),attrs:{"progress-bar":""}},[_c('div',{style:({ width: _vm.barWidth, background: _vm.barColor }),attrs:{"progress":""}}),_c('span',{attrs:{"detail":""}},[_vm._v(_vm._s(_vm.title)+" "+_vm._s(_vm.current)+"/"+_vm._s(_vm.max))])])])}
|
|
1907
1907
|
var staticRenderFns = []
|
|
1908
1908
|
|
|
@@ -2662,17 +2662,67 @@ const baseMixins = Object(mixins["a" /* default */])(activatable["a" /* default
|
|
|
2662
2662
|
// ESM COMPAT FLAG
|
|
2663
2663
|
__webpack_require__.r(__webpack_exports__);
|
|
2664
2664
|
|
|
2665
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2666
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{"persistent":"","width":_vm.width},model:{value:(_vm.confirmDialog),callback:function ($$v) {_vm.confirmDialog=$$v},expression:"confirmDialog"}},[_c('v-card',[_c('v-card-title',{class:_vm.titleClasses},[_vm._v(_vm._s(_vm.title))]),_c('v-card-text',[_vm._v(_vm._s(_vm.message))]),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{on:{"click":function($event){_vm.confirmDialog=false}}},[_vm._v(_vm._s(_vm.cancelButtonLabel))]),_c('v-btn',{attrs:{"color":"info"},on:{"click":_vm.confirm}},[_vm._v(_vm._s(_vm.confirmButtonLabel))])],1)],1)],1)}
|
|
2665
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/UnidooConfirmDialog.vue?vue&type=template&id=73c9da81&scoped=true&
|
|
2666
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{"persistent":"","width":_vm.width},model:{value:(_vm.confirmDialog),callback:function ($$v) {_vm.confirmDialog=$$v},expression:"confirmDialog"}},[_c('v-card',[_c('v-card-title',{class:_vm.titleClasses},[_vm._v(_vm._s(_vm.title))]),_c('v-card-text',[_vm._v(_vm._s(_vm.message))]),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{on:{"click":function($event){_vm.confirmDialog=false}}},[_vm._v(_vm._s(_vm.cancelButtonLabel))]),_c('v-btn',{attrs:{"color":"info","loading":_vm.loading},on:{"click":_vm.confirm}},[_vm._v(_vm._s(_vm.confirmButtonLabel))])],1)],1)],1)}
|
|
2667
2667
|
var staticRenderFns = []
|
|
2668
2668
|
|
|
2669
2669
|
|
|
2670
|
-
// CONCATENATED MODULE: ./src/components/UnidooConfirmDialog.vue?vue&type=template&id=
|
|
2670
|
+
// CONCATENATED MODULE: ./src/components/UnidooConfirmDialog.vue?vue&type=template&id=73c9da81&scoped=true&
|
|
2671
|
+
|
|
2672
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
2673
|
+
var es_object_to_string = __webpack_require__("d3b7");
|
|
2674
|
+
|
|
2675
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
2676
|
+
var es_promise = __webpack_require__("e6cf");
|
|
2677
|
+
|
|
2678
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
2679
|
+
|
|
2680
|
+
|
|
2681
|
+
|
|
2682
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2683
|
+
try {
|
|
2684
|
+
var info = gen[key](arg);
|
|
2685
|
+
var value = info.value;
|
|
2686
|
+
} catch (error) {
|
|
2687
|
+
reject(error);
|
|
2688
|
+
return;
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
if (info.done) {
|
|
2692
|
+
resolve(value);
|
|
2693
|
+
} else {
|
|
2694
|
+
Promise.resolve(value).then(_next, _throw);
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
function _asyncToGenerator(fn) {
|
|
2699
|
+
return function () {
|
|
2700
|
+
var self = this,
|
|
2701
|
+
args = arguments;
|
|
2702
|
+
return new Promise(function (resolve, reject) {
|
|
2703
|
+
var gen = fn.apply(self, args);
|
|
2704
|
+
|
|
2705
|
+
function _next(value) {
|
|
2706
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
function _throw(err) {
|
|
2710
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
_next(undefined);
|
|
2714
|
+
});
|
|
2715
|
+
};
|
|
2716
|
+
}
|
|
2717
|
+
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
2718
|
+
var runtime = __webpack_require__("96cf");
|
|
2671
2719
|
|
|
2672
2720
|
// EXTERNAL MODULE: ./src/plugin.js
|
|
2673
2721
|
var src_plugin = __webpack_require__("fe83");
|
|
2674
2722
|
|
|
2675
2723
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/UnidooConfirmDialog.vue?vue&type=script&lang=js&
|
|
2724
|
+
|
|
2725
|
+
|
|
2676
2726
|
//
|
|
2677
2727
|
//
|
|
2678
2728
|
//
|
|
@@ -2699,13 +2749,34 @@ var src_plugin = __webpack_require__("fe83");
|
|
|
2699
2749
|
width: '500px',
|
|
2700
2750
|
cancelButtonLabel: "Cancel",
|
|
2701
2751
|
confirmButtonLabel: "Confirm",
|
|
2702
|
-
callback: {}
|
|
2752
|
+
callback: {},
|
|
2753
|
+
loading: false
|
|
2703
2754
|
};
|
|
2704
2755
|
},
|
|
2705
2756
|
methods: {
|
|
2706
2757
|
confirm: function confirm() {
|
|
2707
|
-
|
|
2708
|
-
|
|
2758
|
+
var _this = this;
|
|
2759
|
+
|
|
2760
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
2761
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
2762
|
+
while (1) {
|
|
2763
|
+
switch (_context.prev = _context.next) {
|
|
2764
|
+
case 0:
|
|
2765
|
+
_this.loading = true;
|
|
2766
|
+
_context.next = 3;
|
|
2767
|
+
return _this.callback();
|
|
2768
|
+
|
|
2769
|
+
case 3:
|
|
2770
|
+
_this.confirmDialog = false;
|
|
2771
|
+
_this.loading = false;
|
|
2772
|
+
|
|
2773
|
+
case 5:
|
|
2774
|
+
case "end":
|
|
2775
|
+
return _context.stop();
|
|
2776
|
+
}
|
|
2777
|
+
}
|
|
2778
|
+
}, _callee);
|
|
2779
|
+
}))();
|
|
2709
2780
|
},
|
|
2710
2781
|
show: function show(params) {
|
|
2711
2782
|
if (params.message) {
|
|
@@ -2741,13 +2812,13 @@ var src_plugin = __webpack_require__("fe83");
|
|
|
2741
2812
|
params: function params(_params) {}
|
|
2742
2813
|
},
|
|
2743
2814
|
beforeMount: function beforeMount() {
|
|
2744
|
-
var
|
|
2815
|
+
var _this2 = this;
|
|
2745
2816
|
|
|
2746
2817
|
src_plugin["a" /* default */].EventBus.$on('unidoo-confirm-dialog-show', function (params) {
|
|
2747
|
-
|
|
2818
|
+
_this2.show(params);
|
|
2748
2819
|
});
|
|
2749
2820
|
src_plugin["a" /* default */].EventBus.$on('unidoo-confirm-dialog-params', function (params) {
|
|
2750
|
-
|
|
2821
|
+
_this2.params(params);
|
|
2751
2822
|
});
|
|
2752
2823
|
}
|
|
2753
2824
|
});
|
|
@@ -2789,7 +2860,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
2789
2860
|
staticRenderFns,
|
|
2790
2861
|
false,
|
|
2791
2862
|
null,
|
|
2792
|
-
"
|
|
2863
|
+
"73c9da81",
|
|
2793
2864
|
null
|
|
2794
2865
|
|
|
2795
2866
|
)
|
|
@@ -2920,6 +2991,18 @@ module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callback
|
|
|
2920
2991
|
}));
|
|
2921
2992
|
//# sourceMappingURL=VListItemAction.js.map
|
|
2922
2993
|
|
|
2994
|
+
/***/ }),
|
|
2995
|
+
|
|
2996
|
+
/***/ "19aa":
|
|
2997
|
+
/***/ (function(module, exports) {
|
|
2998
|
+
|
|
2999
|
+
module.exports = function (it, Constructor, name) {
|
|
3000
|
+
if (!(it instanceof Constructor)) {
|
|
3001
|
+
throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
|
|
3002
|
+
} return it;
|
|
3003
|
+
};
|
|
3004
|
+
|
|
3005
|
+
|
|
2923
3006
|
/***/ }),
|
|
2924
3007
|
|
|
2925
3008
|
/***/ "1a8c":
|
|
@@ -3323,6 +3406,16 @@ module.exports = function (exec, SKIP_CLOSING) {
|
|
|
3323
3406
|
}));
|
|
3324
3407
|
//# sourceMappingURL=index.js.map
|
|
3325
3408
|
|
|
3409
|
+
/***/ }),
|
|
3410
|
+
|
|
3411
|
+
/***/ "1cdc":
|
|
3412
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3413
|
+
|
|
3414
|
+
var userAgent = __webpack_require__("342f");
|
|
3415
|
+
|
|
3416
|
+
module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
|
3417
|
+
|
|
3418
|
+
|
|
3326
3419
|
/***/ }),
|
|
3327
3420
|
|
|
3328
3421
|
/***/ "1cec":
|
|
@@ -3514,7 +3607,7 @@ var update = add("36265086", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
3514
3607
|
// ESM COMPAT FLAG
|
|
3515
3608
|
__webpack_require__.r(__webpack_exports__);
|
|
3516
3609
|
|
|
3517
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3610
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/UnidooPlayer.vue?vue&type=template&id=bf817e56&scoped=true&
|
|
3518
3611
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-col',{staticStyle:{"position":"relative"}},[_c('div',{attrs:{"level-selector":""}},[_c('level-selector',{attrs:{"data":_vm.data},model:{value:(_vm.entries),callback:function ($$v) {_vm.entries=$$v},expression:"entries"}})],1),_c('unidoo-simple-player',{attrs:{"constrained":"","label":_vm.label,"entries":_vm.entries}})],1)}
|
|
3519
3612
|
var staticRenderFns = []
|
|
3520
3613
|
|
|
@@ -3683,6 +3776,56 @@ installComponents_default()(component, {VCol: VCol["a" /* default */]})
|
|
|
3683
3776
|
}));
|
|
3684
3777
|
//# sourceMappingURL=index.js.map
|
|
3685
3778
|
|
|
3779
|
+
/***/ }),
|
|
3780
|
+
|
|
3781
|
+
/***/ "2266":
|
|
3782
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3783
|
+
|
|
3784
|
+
var anObject = __webpack_require__("825a");
|
|
3785
|
+
var isArrayIteratorMethod = __webpack_require__("e95a");
|
|
3786
|
+
var toLength = __webpack_require__("50c4");
|
|
3787
|
+
var bind = __webpack_require__("0366");
|
|
3788
|
+
var getIteratorMethod = __webpack_require__("35a1");
|
|
3789
|
+
var callWithSafeIterationClosing = __webpack_require__("9bdd");
|
|
3790
|
+
|
|
3791
|
+
var Result = function (stopped, result) {
|
|
3792
|
+
this.stopped = stopped;
|
|
3793
|
+
this.result = result;
|
|
3794
|
+
};
|
|
3795
|
+
|
|
3796
|
+
var iterate = module.exports = function (iterable, fn, that, AS_ENTRIES, IS_ITERATOR) {
|
|
3797
|
+
var boundFunction = bind(fn, that, AS_ENTRIES ? 2 : 1);
|
|
3798
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
3799
|
+
|
|
3800
|
+
if (IS_ITERATOR) {
|
|
3801
|
+
iterator = iterable;
|
|
3802
|
+
} else {
|
|
3803
|
+
iterFn = getIteratorMethod(iterable);
|
|
3804
|
+
if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
|
|
3805
|
+
// optimisation for array iterators
|
|
3806
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
3807
|
+
for (index = 0, length = toLength(iterable.length); length > index; index++) {
|
|
3808
|
+
result = AS_ENTRIES
|
|
3809
|
+
? boundFunction(anObject(step = iterable[index])[0], step[1])
|
|
3810
|
+
: boundFunction(iterable[index]);
|
|
3811
|
+
if (result && result instanceof Result) return result;
|
|
3812
|
+
} return new Result(false);
|
|
3813
|
+
}
|
|
3814
|
+
iterator = iterFn.call(iterable);
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3817
|
+
next = iterator.next;
|
|
3818
|
+
while (!(step = next.call(iterator)).done) {
|
|
3819
|
+
result = callWithSafeIterationClosing(iterator, boundFunction, step.value, AS_ENTRIES);
|
|
3820
|
+
if (typeof result == 'object' && result && result instanceof Result) return result;
|
|
3821
|
+
} return new Result(false);
|
|
3822
|
+
};
|
|
3823
|
+
|
|
3824
|
+
iterate.stop = function (result) {
|
|
3825
|
+
return new Result(true, result);
|
|
3826
|
+
};
|
|
3827
|
+
|
|
3828
|
+
|
|
3686
3829
|
/***/ }),
|
|
3687
3830
|
|
|
3688
3831
|
/***/ "2286":
|
|
@@ -4452,6 +4595,33 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
4452
4595
|
}
|
|
4453
4596
|
|
|
4454
4597
|
|
|
4598
|
+
/***/ }),
|
|
4599
|
+
|
|
4600
|
+
/***/ "2626":
|
|
4601
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4602
|
+
|
|
4603
|
+
"use strict";
|
|
4604
|
+
|
|
4605
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
4606
|
+
var definePropertyModule = __webpack_require__("9bf2");
|
|
4607
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
4608
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
4609
|
+
|
|
4610
|
+
var SPECIES = wellKnownSymbol('species');
|
|
4611
|
+
|
|
4612
|
+
module.exports = function (CONSTRUCTOR_NAME) {
|
|
4613
|
+
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
|
4614
|
+
var defineProperty = definePropertyModule.f;
|
|
4615
|
+
|
|
4616
|
+
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
|
4617
|
+
defineProperty(Constructor, SPECIES, {
|
|
4618
|
+
configurable: true,
|
|
4619
|
+
get: function () { return this; }
|
|
4620
|
+
});
|
|
4621
|
+
}
|
|
4622
|
+
};
|
|
4623
|
+
|
|
4624
|
+
|
|
4455
4625
|
/***/ }),
|
|
4456
4626
|
|
|
4457
4627
|
/***/ "27fb":
|
|
@@ -5134,6 +5304,120 @@ $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGE
|
|
|
5134
5304
|
});
|
|
5135
5305
|
|
|
5136
5306
|
|
|
5307
|
+
/***/ }),
|
|
5308
|
+
|
|
5309
|
+
/***/ "2cf4":
|
|
5310
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5311
|
+
|
|
5312
|
+
var global = __webpack_require__("da84");
|
|
5313
|
+
var fails = __webpack_require__("d039");
|
|
5314
|
+
var classof = __webpack_require__("c6b6");
|
|
5315
|
+
var bind = __webpack_require__("0366");
|
|
5316
|
+
var html = __webpack_require__("1be4");
|
|
5317
|
+
var createElement = __webpack_require__("cc12");
|
|
5318
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
5319
|
+
|
|
5320
|
+
var location = global.location;
|
|
5321
|
+
var set = global.setImmediate;
|
|
5322
|
+
var clear = global.clearImmediate;
|
|
5323
|
+
var process = global.process;
|
|
5324
|
+
var MessageChannel = global.MessageChannel;
|
|
5325
|
+
var Dispatch = global.Dispatch;
|
|
5326
|
+
var counter = 0;
|
|
5327
|
+
var queue = {};
|
|
5328
|
+
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
5329
|
+
var defer, channel, port;
|
|
5330
|
+
|
|
5331
|
+
var run = function (id) {
|
|
5332
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
5333
|
+
if (queue.hasOwnProperty(id)) {
|
|
5334
|
+
var fn = queue[id];
|
|
5335
|
+
delete queue[id];
|
|
5336
|
+
fn();
|
|
5337
|
+
}
|
|
5338
|
+
};
|
|
5339
|
+
|
|
5340
|
+
var runner = function (id) {
|
|
5341
|
+
return function () {
|
|
5342
|
+
run(id);
|
|
5343
|
+
};
|
|
5344
|
+
};
|
|
5345
|
+
|
|
5346
|
+
var listener = function (event) {
|
|
5347
|
+
run(event.data);
|
|
5348
|
+
};
|
|
5349
|
+
|
|
5350
|
+
var post = function (id) {
|
|
5351
|
+
// old engines have not location.origin
|
|
5352
|
+
global.postMessage(id + '', location.protocol + '//' + location.host);
|
|
5353
|
+
};
|
|
5354
|
+
|
|
5355
|
+
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
5356
|
+
if (!set || !clear) {
|
|
5357
|
+
set = function setImmediate(fn) {
|
|
5358
|
+
var args = [];
|
|
5359
|
+
var i = 1;
|
|
5360
|
+
while (arguments.length > i) args.push(arguments[i++]);
|
|
5361
|
+
queue[++counter] = function () {
|
|
5362
|
+
// eslint-disable-next-line no-new-func
|
|
5363
|
+
(typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
|
|
5364
|
+
};
|
|
5365
|
+
defer(counter);
|
|
5366
|
+
return counter;
|
|
5367
|
+
};
|
|
5368
|
+
clear = function clearImmediate(id) {
|
|
5369
|
+
delete queue[id];
|
|
5370
|
+
};
|
|
5371
|
+
// Node.js 0.8-
|
|
5372
|
+
if (classof(process) == 'process') {
|
|
5373
|
+
defer = function (id) {
|
|
5374
|
+
process.nextTick(runner(id));
|
|
5375
|
+
};
|
|
5376
|
+
// Sphere (JS game engine) Dispatch API
|
|
5377
|
+
} else if (Dispatch && Dispatch.now) {
|
|
5378
|
+
defer = function (id) {
|
|
5379
|
+
Dispatch.now(runner(id));
|
|
5380
|
+
};
|
|
5381
|
+
// Browsers with MessageChannel, includes WebWorkers
|
|
5382
|
+
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
5383
|
+
} else if (MessageChannel && !IS_IOS) {
|
|
5384
|
+
channel = new MessageChannel();
|
|
5385
|
+
port = channel.port2;
|
|
5386
|
+
channel.port1.onmessage = listener;
|
|
5387
|
+
defer = bind(port.postMessage, port, 1);
|
|
5388
|
+
// Browsers with postMessage, skip WebWorkers
|
|
5389
|
+
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
5390
|
+
} else if (
|
|
5391
|
+
global.addEventListener &&
|
|
5392
|
+
typeof postMessage == 'function' &&
|
|
5393
|
+
!global.importScripts &&
|
|
5394
|
+
!fails(post) &&
|
|
5395
|
+
location.protocol !== 'file:'
|
|
5396
|
+
) {
|
|
5397
|
+
defer = post;
|
|
5398
|
+
global.addEventListener('message', listener, false);
|
|
5399
|
+
// IE8-
|
|
5400
|
+
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
5401
|
+
defer = function (id) {
|
|
5402
|
+
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
|
5403
|
+
html.removeChild(this);
|
|
5404
|
+
run(id);
|
|
5405
|
+
};
|
|
5406
|
+
};
|
|
5407
|
+
// Rest old browsers
|
|
5408
|
+
} else {
|
|
5409
|
+
defer = function (id) {
|
|
5410
|
+
setTimeout(runner(id), 0);
|
|
5411
|
+
};
|
|
5412
|
+
}
|
|
5413
|
+
}
|
|
5414
|
+
|
|
5415
|
+
module.exports = {
|
|
5416
|
+
set: set,
|
|
5417
|
+
clear: clear
|
|
5418
|
+
};
|
|
5419
|
+
|
|
5420
|
+
|
|
5137
5421
|
/***/ }),
|
|
5138
5422
|
|
|
5139
5423
|
/***/ "2d00":
|
|
@@ -5983,7 +6267,7 @@ const baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__[/* default *
|
|
|
5983
6267
|
// ESM COMPAT FLAG
|
|
5984
6268
|
__webpack_require__.r(__webpack_exports__);
|
|
5985
6269
|
|
|
5986
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
6270
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/unidoo-player-layout/UnidooPlayerLayout.vue?vue&type=template&id=d5466258&scoped=true&
|
|
5987
6271
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"root":""}},[_c('div',{class:{ zoomed: _vm.isZoomed },attrs:{"player-layout":"","elevation":"0"}},[_c('div',{attrs:{"mask":""},on:{"click":_vm.zoomPlayer}}),_c('div',{staticStyle:{"height":"100%, margin: auto"},attrs:{"body":""}},[_c('div',{style:(_vm.subBodyStyle),attrs:{"sub-body":""}},[_c('v-divider',{staticStyle:{"order":"1"}}),_c('v-row',{style:({ order: ((_vm.playerBarTop) ? 2 : 4) }),attrs:{"viewer-part":""}},[_c('v-list-item',{attrs:{"player-layout-slider-part":""}},[_c('v-col',[_c('div',{staticStyle:{"display":"flex","justify-content":"center"}},[_vm._t("frameTitle"),(_vm.canPlay)?_c('v-btn',{attrs:{"reload-button":"","icon":"","x-small":"","color":"grey","title":"reload frames"},on:{"click":function($event){return _vm.emitReloadFrames()}}},[_c('v-icon',[_vm._v("mdi-cached")])],1):_vm._e()],2),(_vm.showProgressBar)?_c('unidoo-progress-bar',{attrs:{"title":_vm.progressBarTitle,"current":_vm.loadedFrames,"max":_vm.max + 1}}):(_vm.canPlay)?_c('v-slider',{ref:"slider",staticStyle:{"margin-top":"-10px","padding":"0 5px"},attrs:{"id":_vm.id,"max":_vm.max,"min":_vm.min,"tick-labels":_vm.filteredGraduation,"hide-details":"","ticks":"always","tick-size":"4"},on:{"click":_vm.playOrStopSlider},scopedSlots:_vm._u([{key:"prepend",fn:function(){return [_c('div',{attrs:{"buttons":""}},[_c('v-btn',{staticStyle:{"margin-right":"5px"},attrs:{"color":"primary","fab":"","x-small":"","dark":""},on:{"click":_vm.previous}},[_c('v-icon',[_vm._v("mdi-skip-previous")])],1),(!_vm.isPlaying)?_c('v-btn',{attrs:{"color":"primary","fab":"","small":"","dark":""},on:{"click":_vm.clicPlay}},[_c('v-icon',[_vm._v("mdi-play")])],1):_vm._e(),(_vm.isPlaying)?_c('v-btn',{attrs:{"color":"primary","fab":"","small":"","dark":""},on:{"click":_vm.clickStop}},[_c('v-icon',[_vm._v("mdi-stop")])],1):_vm._e(),_c('v-btn',{staticStyle:{"margin-left":"5px"},attrs:{"color":"primary","fab":"","x-small":"","dark":""},on:{"click":_vm.next}},[_c('v-icon',[_vm._v("mdi-skip-next")])],1)],1)]},proxy:true}]),model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}}):_vm._e(),_c('iframe',{ref:"sizeHandlerIframe",staticStyle:{"width":"100%","height":"0","border":"0"},attrs:{"src":"about:blank"}})],1)],1)],1),_c('v-divider',{staticStyle:{"order":"3"}}),_c('v-row',{style:({ order: ((_vm.playerBarTop) ? 4 : 2) }),attrs:{"player-part":""}},[(_vm.clickableFrame)?_c('v-list-item',{attrs:{"player-layout-displayer":"","ripple":false},on:{"click":_vm.playOrStopFrame}},[_vm._t("displayer")],2):_vm._t("displayer",null,{"playerLayoutDisplayer":""})],2),_c('v-divider',{staticStyle:{"order":"5"}})],1)])])])}
|
|
5988
6272
|
var staticRenderFns = []
|
|
5989
6273
|
|
|
@@ -7641,6 +7925,21 @@ module.exports = function (key) {
|
|
|
7641
7925
|
};
|
|
7642
7926
|
|
|
7643
7927
|
|
|
7928
|
+
/***/ }),
|
|
7929
|
+
|
|
7930
|
+
/***/ "44de":
|
|
7931
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7932
|
+
|
|
7933
|
+
var global = __webpack_require__("da84");
|
|
7934
|
+
|
|
7935
|
+
module.exports = function (a, b) {
|
|
7936
|
+
var console = global.console;
|
|
7937
|
+
if (console && console.error) {
|
|
7938
|
+
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
7939
|
+
}
|
|
7940
|
+
};
|
|
7941
|
+
|
|
7942
|
+
|
|
7644
7943
|
/***/ }),
|
|
7645
7944
|
|
|
7646
7945
|
/***/ "44e7":
|
|
@@ -11108,7 +11407,7 @@ var update = add("601a32f1", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
11108
11407
|
// ESM COMPAT FLAG
|
|
11109
11408
|
__webpack_require__.r(__webpack_exports__);
|
|
11110
11409
|
|
|
11111
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
11410
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/loading-component/loading-component.vue?vue&type=template&id=cf5a287e&scoped=true&
|
|
11112
11411
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{attrs:{"loading":""}})}
|
|
11113
11412
|
var staticRenderFns = []
|
|
11114
11413
|
|
|
@@ -12623,7 +12922,7 @@ function makeWatcher(property) {
|
|
|
12623
12922
|
// ESM COMPAT FLAG
|
|
12624
12923
|
__webpack_require__.r(__webpack_exports__);
|
|
12625
12924
|
|
|
12626
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
12925
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/UnidooAlert.vue?vue&type=template&id=7d9e73c4&scoped=true&
|
|
12627
12926
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('v-snackbar',{attrs:{"color":_vm.type,"timeout":_vm.timeout,"centered":_vm.position == 'centered',"top":_vm.position == 'top',"bottom":_vm.position == 'bottom'},model:{value:(_vm.snackbar),callback:function ($$v) {_vm.snackbar=$$v},expression:"snackbar"}},[_vm._v(" "+_vm._s(_vm.message)+" "),_c('v-btn',{attrs:{"dark":"","text":""},on:{"click":function($event){_vm.snackbar = false}}},[_vm._v(_vm._s(_vm.closeButtonLabel))])],1)],1)}
|
|
12628
12927
|
var staticRenderFns = []
|
|
12629
12928
|
|
|
@@ -15187,7 +15486,7 @@ var update = add("5cce6597", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
15187
15486
|
// ESM COMPAT FLAG
|
|
15188
15487
|
__webpack_require__.r(__webpack_exports__);
|
|
15189
15488
|
|
|
15190
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
15489
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/level-selector/level-selector-row.vue?vue&type=template&id=b8789e80&scoped=true&
|
|
15191
15490
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"selector-row":""}},[_c('v-row',{attrs:{"container":""}},[_c('span',{attrs:{"label":""}},[_vm._v(_vm._s(_vm.label)+" : ")]),(_vm.options && _vm.options.length > 0)?_c('span',{attrs:{"line":""}},_vm._l((_vm.options),function(key){return _c('span',{key:key,class:'level ' + ((_vm.availableOptions.includes(key)) ? 'clickable-level ' : 'disabled-level ') + _vm.focus(key),attrs:{"value":""},on:{"click":function($event){_vm.emitInput(key, (_vm.availableOptions.includes(key)))}}},[_vm._v(_vm._s(key))])}),0):_c('span',{attrs:{"line":""}},_vm._l((_vm.availableOptions),function(key){return _c('span',{key:key,class:'level ' + 'clickable-level ' + _vm.focus(key),attrs:{"value":""},on:{"click":function($event){return _vm.$emit('input', key)}}},[_vm._v(_vm._s(key))])}),0)])],1)}
|
|
15192
15491
|
var staticRenderFns = []
|
|
15193
15492
|
|
|
@@ -15746,6 +16045,761 @@ function eq(value, other) {
|
|
|
15746
16045
|
module.exports = eq;
|
|
15747
16046
|
|
|
15748
16047
|
|
|
16048
|
+
/***/ }),
|
|
16049
|
+
|
|
16050
|
+
/***/ "96cf":
|
|
16051
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
16052
|
+
|
|
16053
|
+
/**
|
|
16054
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
16055
|
+
*
|
|
16056
|
+
* This source code is licensed under the MIT license found in the
|
|
16057
|
+
* LICENSE file in the root directory of this source tree.
|
|
16058
|
+
*/
|
|
16059
|
+
|
|
16060
|
+
var runtime = (function (exports) {
|
|
16061
|
+
"use strict";
|
|
16062
|
+
|
|
16063
|
+
var Op = Object.prototype;
|
|
16064
|
+
var hasOwn = Op.hasOwnProperty;
|
|
16065
|
+
var undefined; // More compressible than void 0.
|
|
16066
|
+
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
16067
|
+
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
16068
|
+
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
16069
|
+
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
16070
|
+
|
|
16071
|
+
function define(obj, key, value) {
|
|
16072
|
+
Object.defineProperty(obj, key, {
|
|
16073
|
+
value: value,
|
|
16074
|
+
enumerable: true,
|
|
16075
|
+
configurable: true,
|
|
16076
|
+
writable: true
|
|
16077
|
+
});
|
|
16078
|
+
return obj[key];
|
|
16079
|
+
}
|
|
16080
|
+
try {
|
|
16081
|
+
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
16082
|
+
define({}, "");
|
|
16083
|
+
} catch (err) {
|
|
16084
|
+
define = function(obj, key, value) {
|
|
16085
|
+
return obj[key] = value;
|
|
16086
|
+
};
|
|
16087
|
+
}
|
|
16088
|
+
|
|
16089
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
16090
|
+
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
16091
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
16092
|
+
var generator = Object.create(protoGenerator.prototype);
|
|
16093
|
+
var context = new Context(tryLocsList || []);
|
|
16094
|
+
|
|
16095
|
+
// The ._invoke method unifies the implementations of the .next,
|
|
16096
|
+
// .throw, and .return methods.
|
|
16097
|
+
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
16098
|
+
|
|
16099
|
+
return generator;
|
|
16100
|
+
}
|
|
16101
|
+
exports.wrap = wrap;
|
|
16102
|
+
|
|
16103
|
+
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
16104
|
+
// record like context.tryEntries[i].completion. This interface could
|
|
16105
|
+
// have been (and was previously) designed to take a closure to be
|
|
16106
|
+
// invoked without arguments, but in all the cases we care about we
|
|
16107
|
+
// already have an existing method we want to call, so there's no need
|
|
16108
|
+
// to create a new function object. We can even get away with assuming
|
|
16109
|
+
// the method takes exactly one argument, since that happens to be true
|
|
16110
|
+
// in every case, so we don't have to touch the arguments object. The
|
|
16111
|
+
// only additional allocation required is the completion record, which
|
|
16112
|
+
// has a stable shape and so hopefully should be cheap to allocate.
|
|
16113
|
+
function tryCatch(fn, obj, arg) {
|
|
16114
|
+
try {
|
|
16115
|
+
return { type: "normal", arg: fn.call(obj, arg) };
|
|
16116
|
+
} catch (err) {
|
|
16117
|
+
return { type: "throw", arg: err };
|
|
16118
|
+
}
|
|
16119
|
+
}
|
|
16120
|
+
|
|
16121
|
+
var GenStateSuspendedStart = "suspendedStart";
|
|
16122
|
+
var GenStateSuspendedYield = "suspendedYield";
|
|
16123
|
+
var GenStateExecuting = "executing";
|
|
16124
|
+
var GenStateCompleted = "completed";
|
|
16125
|
+
|
|
16126
|
+
// Returning this object from the innerFn has the same effect as
|
|
16127
|
+
// breaking out of the dispatch switch statement.
|
|
16128
|
+
var ContinueSentinel = {};
|
|
16129
|
+
|
|
16130
|
+
// Dummy constructor functions that we use as the .constructor and
|
|
16131
|
+
// .constructor.prototype properties for functions that return Generator
|
|
16132
|
+
// objects. For full spec compliance, you may wish to configure your
|
|
16133
|
+
// minifier not to mangle the names of these two functions.
|
|
16134
|
+
function Generator() {}
|
|
16135
|
+
function GeneratorFunction() {}
|
|
16136
|
+
function GeneratorFunctionPrototype() {}
|
|
16137
|
+
|
|
16138
|
+
// This is a polyfill for %IteratorPrototype% for environments that
|
|
16139
|
+
// don't natively support it.
|
|
16140
|
+
var IteratorPrototype = {};
|
|
16141
|
+
IteratorPrototype[iteratorSymbol] = function () {
|
|
16142
|
+
return this;
|
|
16143
|
+
};
|
|
16144
|
+
|
|
16145
|
+
var getProto = Object.getPrototypeOf;
|
|
16146
|
+
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
16147
|
+
if (NativeIteratorPrototype &&
|
|
16148
|
+
NativeIteratorPrototype !== Op &&
|
|
16149
|
+
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
16150
|
+
// This environment has a native %IteratorPrototype%; use it instead
|
|
16151
|
+
// of the polyfill.
|
|
16152
|
+
IteratorPrototype = NativeIteratorPrototype;
|
|
16153
|
+
}
|
|
16154
|
+
|
|
16155
|
+
var Gp = GeneratorFunctionPrototype.prototype =
|
|
16156
|
+
Generator.prototype = Object.create(IteratorPrototype);
|
|
16157
|
+
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
16158
|
+
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
16159
|
+
GeneratorFunction.displayName = define(
|
|
16160
|
+
GeneratorFunctionPrototype,
|
|
16161
|
+
toStringTagSymbol,
|
|
16162
|
+
"GeneratorFunction"
|
|
16163
|
+
);
|
|
16164
|
+
|
|
16165
|
+
// Helper for defining the .next, .throw, and .return methods of the
|
|
16166
|
+
// Iterator interface in terms of a single ._invoke method.
|
|
16167
|
+
function defineIteratorMethods(prototype) {
|
|
16168
|
+
["next", "throw", "return"].forEach(function(method) {
|
|
16169
|
+
define(prototype, method, function(arg) {
|
|
16170
|
+
return this._invoke(method, arg);
|
|
16171
|
+
});
|
|
16172
|
+
});
|
|
16173
|
+
}
|
|
16174
|
+
|
|
16175
|
+
exports.isGeneratorFunction = function(genFun) {
|
|
16176
|
+
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
16177
|
+
return ctor
|
|
16178
|
+
? ctor === GeneratorFunction ||
|
|
16179
|
+
// For the native GeneratorFunction constructor, the best we can
|
|
16180
|
+
// do is to check its .name property.
|
|
16181
|
+
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
16182
|
+
: false;
|
|
16183
|
+
};
|
|
16184
|
+
|
|
16185
|
+
exports.mark = function(genFun) {
|
|
16186
|
+
if (Object.setPrototypeOf) {
|
|
16187
|
+
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
16188
|
+
} else {
|
|
16189
|
+
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
16190
|
+
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
16191
|
+
}
|
|
16192
|
+
genFun.prototype = Object.create(Gp);
|
|
16193
|
+
return genFun;
|
|
16194
|
+
};
|
|
16195
|
+
|
|
16196
|
+
// Within the body of any async function, `await x` is transformed to
|
|
16197
|
+
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
16198
|
+
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
16199
|
+
// meant to be awaited.
|
|
16200
|
+
exports.awrap = function(arg) {
|
|
16201
|
+
return { __await: arg };
|
|
16202
|
+
};
|
|
16203
|
+
|
|
16204
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
16205
|
+
function invoke(method, arg, resolve, reject) {
|
|
16206
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
16207
|
+
if (record.type === "throw") {
|
|
16208
|
+
reject(record.arg);
|
|
16209
|
+
} else {
|
|
16210
|
+
var result = record.arg;
|
|
16211
|
+
var value = result.value;
|
|
16212
|
+
if (value &&
|
|
16213
|
+
typeof value === "object" &&
|
|
16214
|
+
hasOwn.call(value, "__await")) {
|
|
16215
|
+
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
16216
|
+
invoke("next", value, resolve, reject);
|
|
16217
|
+
}, function(err) {
|
|
16218
|
+
invoke("throw", err, resolve, reject);
|
|
16219
|
+
});
|
|
16220
|
+
}
|
|
16221
|
+
|
|
16222
|
+
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
16223
|
+
// When a yielded Promise is resolved, its final value becomes
|
|
16224
|
+
// the .value of the Promise<{value,done}> result for the
|
|
16225
|
+
// current iteration.
|
|
16226
|
+
result.value = unwrapped;
|
|
16227
|
+
resolve(result);
|
|
16228
|
+
}, function(error) {
|
|
16229
|
+
// If a rejected Promise was yielded, throw the rejection back
|
|
16230
|
+
// into the async generator function so it can be handled there.
|
|
16231
|
+
return invoke("throw", error, resolve, reject);
|
|
16232
|
+
});
|
|
16233
|
+
}
|
|
16234
|
+
}
|
|
16235
|
+
|
|
16236
|
+
var previousPromise;
|
|
16237
|
+
|
|
16238
|
+
function enqueue(method, arg) {
|
|
16239
|
+
function callInvokeWithMethodAndArg() {
|
|
16240
|
+
return new PromiseImpl(function(resolve, reject) {
|
|
16241
|
+
invoke(method, arg, resolve, reject);
|
|
16242
|
+
});
|
|
16243
|
+
}
|
|
16244
|
+
|
|
16245
|
+
return previousPromise =
|
|
16246
|
+
// If enqueue has been called before, then we want to wait until
|
|
16247
|
+
// all previous Promises have been resolved before calling invoke,
|
|
16248
|
+
// so that results are always delivered in the correct order. If
|
|
16249
|
+
// enqueue has not been called before, then it is important to
|
|
16250
|
+
// call invoke immediately, without waiting on a callback to fire,
|
|
16251
|
+
// so that the async generator function has the opportunity to do
|
|
16252
|
+
// any necessary setup in a predictable way. This predictability
|
|
16253
|
+
// is why the Promise constructor synchronously invokes its
|
|
16254
|
+
// executor callback, and why async functions synchronously
|
|
16255
|
+
// execute code before the first await. Since we implement simple
|
|
16256
|
+
// async functions in terms of async generators, it is especially
|
|
16257
|
+
// important to get this right, even though it requires care.
|
|
16258
|
+
previousPromise ? previousPromise.then(
|
|
16259
|
+
callInvokeWithMethodAndArg,
|
|
16260
|
+
// Avoid propagating failures to Promises returned by later
|
|
16261
|
+
// invocations of the iterator.
|
|
16262
|
+
callInvokeWithMethodAndArg
|
|
16263
|
+
) : callInvokeWithMethodAndArg();
|
|
16264
|
+
}
|
|
16265
|
+
|
|
16266
|
+
// Define the unified helper method that is used to implement .next,
|
|
16267
|
+
// .throw, and .return (see defineIteratorMethods).
|
|
16268
|
+
this._invoke = enqueue;
|
|
16269
|
+
}
|
|
16270
|
+
|
|
16271
|
+
defineIteratorMethods(AsyncIterator.prototype);
|
|
16272
|
+
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
16273
|
+
return this;
|
|
16274
|
+
};
|
|
16275
|
+
exports.AsyncIterator = AsyncIterator;
|
|
16276
|
+
|
|
16277
|
+
// Note that simple async functions are implemented on top of
|
|
16278
|
+
// AsyncIterator objects; they just return a Promise for the value of
|
|
16279
|
+
// the final result produced by the iterator.
|
|
16280
|
+
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
16281
|
+
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
16282
|
+
|
|
16283
|
+
var iter = new AsyncIterator(
|
|
16284
|
+
wrap(innerFn, outerFn, self, tryLocsList),
|
|
16285
|
+
PromiseImpl
|
|
16286
|
+
);
|
|
16287
|
+
|
|
16288
|
+
return exports.isGeneratorFunction(outerFn)
|
|
16289
|
+
? iter // If outerFn is a generator, return the full iterator.
|
|
16290
|
+
: iter.next().then(function(result) {
|
|
16291
|
+
return result.done ? result.value : iter.next();
|
|
16292
|
+
});
|
|
16293
|
+
};
|
|
16294
|
+
|
|
16295
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
16296
|
+
var state = GenStateSuspendedStart;
|
|
16297
|
+
|
|
16298
|
+
return function invoke(method, arg) {
|
|
16299
|
+
if (state === GenStateExecuting) {
|
|
16300
|
+
throw new Error("Generator is already running");
|
|
16301
|
+
}
|
|
16302
|
+
|
|
16303
|
+
if (state === GenStateCompleted) {
|
|
16304
|
+
if (method === "throw") {
|
|
16305
|
+
throw arg;
|
|
16306
|
+
}
|
|
16307
|
+
|
|
16308
|
+
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
16309
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
16310
|
+
return doneResult();
|
|
16311
|
+
}
|
|
16312
|
+
|
|
16313
|
+
context.method = method;
|
|
16314
|
+
context.arg = arg;
|
|
16315
|
+
|
|
16316
|
+
while (true) {
|
|
16317
|
+
var delegate = context.delegate;
|
|
16318
|
+
if (delegate) {
|
|
16319
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
16320
|
+
if (delegateResult) {
|
|
16321
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
16322
|
+
return delegateResult;
|
|
16323
|
+
}
|
|
16324
|
+
}
|
|
16325
|
+
|
|
16326
|
+
if (context.method === "next") {
|
|
16327
|
+
// Setting context._sent for legacy support of Babel's
|
|
16328
|
+
// function.sent implementation.
|
|
16329
|
+
context.sent = context._sent = context.arg;
|
|
16330
|
+
|
|
16331
|
+
} else if (context.method === "throw") {
|
|
16332
|
+
if (state === GenStateSuspendedStart) {
|
|
16333
|
+
state = GenStateCompleted;
|
|
16334
|
+
throw context.arg;
|
|
16335
|
+
}
|
|
16336
|
+
|
|
16337
|
+
context.dispatchException(context.arg);
|
|
16338
|
+
|
|
16339
|
+
} else if (context.method === "return") {
|
|
16340
|
+
context.abrupt("return", context.arg);
|
|
16341
|
+
}
|
|
16342
|
+
|
|
16343
|
+
state = GenStateExecuting;
|
|
16344
|
+
|
|
16345
|
+
var record = tryCatch(innerFn, self, context);
|
|
16346
|
+
if (record.type === "normal") {
|
|
16347
|
+
// If an exception is thrown from innerFn, we leave state ===
|
|
16348
|
+
// GenStateExecuting and loop back for another invocation.
|
|
16349
|
+
state = context.done
|
|
16350
|
+
? GenStateCompleted
|
|
16351
|
+
: GenStateSuspendedYield;
|
|
16352
|
+
|
|
16353
|
+
if (record.arg === ContinueSentinel) {
|
|
16354
|
+
continue;
|
|
16355
|
+
}
|
|
16356
|
+
|
|
16357
|
+
return {
|
|
16358
|
+
value: record.arg,
|
|
16359
|
+
done: context.done
|
|
16360
|
+
};
|
|
16361
|
+
|
|
16362
|
+
} else if (record.type === "throw") {
|
|
16363
|
+
state = GenStateCompleted;
|
|
16364
|
+
// Dispatch the exception by looping back around to the
|
|
16365
|
+
// context.dispatchException(context.arg) call above.
|
|
16366
|
+
context.method = "throw";
|
|
16367
|
+
context.arg = record.arg;
|
|
16368
|
+
}
|
|
16369
|
+
}
|
|
16370
|
+
};
|
|
16371
|
+
}
|
|
16372
|
+
|
|
16373
|
+
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
16374
|
+
// result, either by returning a { value, done } result from the
|
|
16375
|
+
// delegate iterator, or by modifying context.method and context.arg,
|
|
16376
|
+
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
16377
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
16378
|
+
var method = delegate.iterator[context.method];
|
|
16379
|
+
if (method === undefined) {
|
|
16380
|
+
// A .throw or .return when the delegate iterator has no .throw
|
|
16381
|
+
// method always terminates the yield* loop.
|
|
16382
|
+
context.delegate = null;
|
|
16383
|
+
|
|
16384
|
+
if (context.method === "throw") {
|
|
16385
|
+
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
16386
|
+
if (delegate.iterator["return"]) {
|
|
16387
|
+
// If the delegate iterator has a return method, give it a
|
|
16388
|
+
// chance to clean up.
|
|
16389
|
+
context.method = "return";
|
|
16390
|
+
context.arg = undefined;
|
|
16391
|
+
maybeInvokeDelegate(delegate, context);
|
|
16392
|
+
|
|
16393
|
+
if (context.method === "throw") {
|
|
16394
|
+
// If maybeInvokeDelegate(context) changed context.method from
|
|
16395
|
+
// "return" to "throw", let that override the TypeError below.
|
|
16396
|
+
return ContinueSentinel;
|
|
16397
|
+
}
|
|
16398
|
+
}
|
|
16399
|
+
|
|
16400
|
+
context.method = "throw";
|
|
16401
|
+
context.arg = new TypeError(
|
|
16402
|
+
"The iterator does not provide a 'throw' method");
|
|
16403
|
+
}
|
|
16404
|
+
|
|
16405
|
+
return ContinueSentinel;
|
|
16406
|
+
}
|
|
16407
|
+
|
|
16408
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
16409
|
+
|
|
16410
|
+
if (record.type === "throw") {
|
|
16411
|
+
context.method = "throw";
|
|
16412
|
+
context.arg = record.arg;
|
|
16413
|
+
context.delegate = null;
|
|
16414
|
+
return ContinueSentinel;
|
|
16415
|
+
}
|
|
16416
|
+
|
|
16417
|
+
var info = record.arg;
|
|
16418
|
+
|
|
16419
|
+
if (! info) {
|
|
16420
|
+
context.method = "throw";
|
|
16421
|
+
context.arg = new TypeError("iterator result is not an object");
|
|
16422
|
+
context.delegate = null;
|
|
16423
|
+
return ContinueSentinel;
|
|
16424
|
+
}
|
|
16425
|
+
|
|
16426
|
+
if (info.done) {
|
|
16427
|
+
// Assign the result of the finished delegate to the temporary
|
|
16428
|
+
// variable specified by delegate.resultName (see delegateYield).
|
|
16429
|
+
context[delegate.resultName] = info.value;
|
|
16430
|
+
|
|
16431
|
+
// Resume execution at the desired location (see delegateYield).
|
|
16432
|
+
context.next = delegate.nextLoc;
|
|
16433
|
+
|
|
16434
|
+
// If context.method was "throw" but the delegate handled the
|
|
16435
|
+
// exception, let the outer generator proceed normally. If
|
|
16436
|
+
// context.method was "next", forget context.arg since it has been
|
|
16437
|
+
// "consumed" by the delegate iterator. If context.method was
|
|
16438
|
+
// "return", allow the original .return call to continue in the
|
|
16439
|
+
// outer generator.
|
|
16440
|
+
if (context.method !== "return") {
|
|
16441
|
+
context.method = "next";
|
|
16442
|
+
context.arg = undefined;
|
|
16443
|
+
}
|
|
16444
|
+
|
|
16445
|
+
} else {
|
|
16446
|
+
// Re-yield the result returned by the delegate method.
|
|
16447
|
+
return info;
|
|
16448
|
+
}
|
|
16449
|
+
|
|
16450
|
+
// The delegate iterator is finished, so forget it and continue with
|
|
16451
|
+
// the outer generator.
|
|
16452
|
+
context.delegate = null;
|
|
16453
|
+
return ContinueSentinel;
|
|
16454
|
+
}
|
|
16455
|
+
|
|
16456
|
+
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
16457
|
+
// unified ._invoke helper method.
|
|
16458
|
+
defineIteratorMethods(Gp);
|
|
16459
|
+
|
|
16460
|
+
define(Gp, toStringTagSymbol, "Generator");
|
|
16461
|
+
|
|
16462
|
+
// A Generator should always return itself as the iterator object when the
|
|
16463
|
+
// @@iterator function is called on it. Some browsers' implementations of the
|
|
16464
|
+
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
16465
|
+
// object to not be returned from this call. This ensures that doesn't happen.
|
|
16466
|
+
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
16467
|
+
Gp[iteratorSymbol] = function() {
|
|
16468
|
+
return this;
|
|
16469
|
+
};
|
|
16470
|
+
|
|
16471
|
+
Gp.toString = function() {
|
|
16472
|
+
return "[object Generator]";
|
|
16473
|
+
};
|
|
16474
|
+
|
|
16475
|
+
function pushTryEntry(locs) {
|
|
16476
|
+
var entry = { tryLoc: locs[0] };
|
|
16477
|
+
|
|
16478
|
+
if (1 in locs) {
|
|
16479
|
+
entry.catchLoc = locs[1];
|
|
16480
|
+
}
|
|
16481
|
+
|
|
16482
|
+
if (2 in locs) {
|
|
16483
|
+
entry.finallyLoc = locs[2];
|
|
16484
|
+
entry.afterLoc = locs[3];
|
|
16485
|
+
}
|
|
16486
|
+
|
|
16487
|
+
this.tryEntries.push(entry);
|
|
16488
|
+
}
|
|
16489
|
+
|
|
16490
|
+
function resetTryEntry(entry) {
|
|
16491
|
+
var record = entry.completion || {};
|
|
16492
|
+
record.type = "normal";
|
|
16493
|
+
delete record.arg;
|
|
16494
|
+
entry.completion = record;
|
|
16495
|
+
}
|
|
16496
|
+
|
|
16497
|
+
function Context(tryLocsList) {
|
|
16498
|
+
// The root entry object (effectively a try statement without a catch
|
|
16499
|
+
// or a finally block) gives us a place to store values thrown from
|
|
16500
|
+
// locations where there is no enclosing try statement.
|
|
16501
|
+
this.tryEntries = [{ tryLoc: "root" }];
|
|
16502
|
+
tryLocsList.forEach(pushTryEntry, this);
|
|
16503
|
+
this.reset(true);
|
|
16504
|
+
}
|
|
16505
|
+
|
|
16506
|
+
exports.keys = function(object) {
|
|
16507
|
+
var keys = [];
|
|
16508
|
+
for (var key in object) {
|
|
16509
|
+
keys.push(key);
|
|
16510
|
+
}
|
|
16511
|
+
keys.reverse();
|
|
16512
|
+
|
|
16513
|
+
// Rather than returning an object with a next method, we keep
|
|
16514
|
+
// things simple and return the next function itself.
|
|
16515
|
+
return function next() {
|
|
16516
|
+
while (keys.length) {
|
|
16517
|
+
var key = keys.pop();
|
|
16518
|
+
if (key in object) {
|
|
16519
|
+
next.value = key;
|
|
16520
|
+
next.done = false;
|
|
16521
|
+
return next;
|
|
16522
|
+
}
|
|
16523
|
+
}
|
|
16524
|
+
|
|
16525
|
+
// To avoid creating an additional object, we just hang the .value
|
|
16526
|
+
// and .done properties off the next function object itself. This
|
|
16527
|
+
// also ensures that the minifier will not anonymize the function.
|
|
16528
|
+
next.done = true;
|
|
16529
|
+
return next;
|
|
16530
|
+
};
|
|
16531
|
+
};
|
|
16532
|
+
|
|
16533
|
+
function values(iterable) {
|
|
16534
|
+
if (iterable) {
|
|
16535
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
16536
|
+
if (iteratorMethod) {
|
|
16537
|
+
return iteratorMethod.call(iterable);
|
|
16538
|
+
}
|
|
16539
|
+
|
|
16540
|
+
if (typeof iterable.next === "function") {
|
|
16541
|
+
return iterable;
|
|
16542
|
+
}
|
|
16543
|
+
|
|
16544
|
+
if (!isNaN(iterable.length)) {
|
|
16545
|
+
var i = -1, next = function next() {
|
|
16546
|
+
while (++i < iterable.length) {
|
|
16547
|
+
if (hasOwn.call(iterable, i)) {
|
|
16548
|
+
next.value = iterable[i];
|
|
16549
|
+
next.done = false;
|
|
16550
|
+
return next;
|
|
16551
|
+
}
|
|
16552
|
+
}
|
|
16553
|
+
|
|
16554
|
+
next.value = undefined;
|
|
16555
|
+
next.done = true;
|
|
16556
|
+
|
|
16557
|
+
return next;
|
|
16558
|
+
};
|
|
16559
|
+
|
|
16560
|
+
return next.next = next;
|
|
16561
|
+
}
|
|
16562
|
+
}
|
|
16563
|
+
|
|
16564
|
+
// Return an iterator with no values.
|
|
16565
|
+
return { next: doneResult };
|
|
16566
|
+
}
|
|
16567
|
+
exports.values = values;
|
|
16568
|
+
|
|
16569
|
+
function doneResult() {
|
|
16570
|
+
return { value: undefined, done: true };
|
|
16571
|
+
}
|
|
16572
|
+
|
|
16573
|
+
Context.prototype = {
|
|
16574
|
+
constructor: Context,
|
|
16575
|
+
|
|
16576
|
+
reset: function(skipTempReset) {
|
|
16577
|
+
this.prev = 0;
|
|
16578
|
+
this.next = 0;
|
|
16579
|
+
// Resetting context._sent for legacy support of Babel's
|
|
16580
|
+
// function.sent implementation.
|
|
16581
|
+
this.sent = this._sent = undefined;
|
|
16582
|
+
this.done = false;
|
|
16583
|
+
this.delegate = null;
|
|
16584
|
+
|
|
16585
|
+
this.method = "next";
|
|
16586
|
+
this.arg = undefined;
|
|
16587
|
+
|
|
16588
|
+
this.tryEntries.forEach(resetTryEntry);
|
|
16589
|
+
|
|
16590
|
+
if (!skipTempReset) {
|
|
16591
|
+
for (var name in this) {
|
|
16592
|
+
// Not sure about the optimal order of these conditions:
|
|
16593
|
+
if (name.charAt(0) === "t" &&
|
|
16594
|
+
hasOwn.call(this, name) &&
|
|
16595
|
+
!isNaN(+name.slice(1))) {
|
|
16596
|
+
this[name] = undefined;
|
|
16597
|
+
}
|
|
16598
|
+
}
|
|
16599
|
+
}
|
|
16600
|
+
},
|
|
16601
|
+
|
|
16602
|
+
stop: function() {
|
|
16603
|
+
this.done = true;
|
|
16604
|
+
|
|
16605
|
+
var rootEntry = this.tryEntries[0];
|
|
16606
|
+
var rootRecord = rootEntry.completion;
|
|
16607
|
+
if (rootRecord.type === "throw") {
|
|
16608
|
+
throw rootRecord.arg;
|
|
16609
|
+
}
|
|
16610
|
+
|
|
16611
|
+
return this.rval;
|
|
16612
|
+
},
|
|
16613
|
+
|
|
16614
|
+
dispatchException: function(exception) {
|
|
16615
|
+
if (this.done) {
|
|
16616
|
+
throw exception;
|
|
16617
|
+
}
|
|
16618
|
+
|
|
16619
|
+
var context = this;
|
|
16620
|
+
function handle(loc, caught) {
|
|
16621
|
+
record.type = "throw";
|
|
16622
|
+
record.arg = exception;
|
|
16623
|
+
context.next = loc;
|
|
16624
|
+
|
|
16625
|
+
if (caught) {
|
|
16626
|
+
// If the dispatched exception was caught by a catch block,
|
|
16627
|
+
// then let that catch block handle the exception normally.
|
|
16628
|
+
context.method = "next";
|
|
16629
|
+
context.arg = undefined;
|
|
16630
|
+
}
|
|
16631
|
+
|
|
16632
|
+
return !! caught;
|
|
16633
|
+
}
|
|
16634
|
+
|
|
16635
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
16636
|
+
var entry = this.tryEntries[i];
|
|
16637
|
+
var record = entry.completion;
|
|
16638
|
+
|
|
16639
|
+
if (entry.tryLoc === "root") {
|
|
16640
|
+
// Exception thrown outside of any try block that could handle
|
|
16641
|
+
// it, so set the completion value of the entire function to
|
|
16642
|
+
// throw the exception.
|
|
16643
|
+
return handle("end");
|
|
16644
|
+
}
|
|
16645
|
+
|
|
16646
|
+
if (entry.tryLoc <= this.prev) {
|
|
16647
|
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
16648
|
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
16649
|
+
|
|
16650
|
+
if (hasCatch && hasFinally) {
|
|
16651
|
+
if (this.prev < entry.catchLoc) {
|
|
16652
|
+
return handle(entry.catchLoc, true);
|
|
16653
|
+
} else if (this.prev < entry.finallyLoc) {
|
|
16654
|
+
return handle(entry.finallyLoc);
|
|
16655
|
+
}
|
|
16656
|
+
|
|
16657
|
+
} else if (hasCatch) {
|
|
16658
|
+
if (this.prev < entry.catchLoc) {
|
|
16659
|
+
return handle(entry.catchLoc, true);
|
|
16660
|
+
}
|
|
16661
|
+
|
|
16662
|
+
} else if (hasFinally) {
|
|
16663
|
+
if (this.prev < entry.finallyLoc) {
|
|
16664
|
+
return handle(entry.finallyLoc);
|
|
16665
|
+
}
|
|
16666
|
+
|
|
16667
|
+
} else {
|
|
16668
|
+
throw new Error("try statement without catch or finally");
|
|
16669
|
+
}
|
|
16670
|
+
}
|
|
16671
|
+
}
|
|
16672
|
+
},
|
|
16673
|
+
|
|
16674
|
+
abrupt: function(type, arg) {
|
|
16675
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
16676
|
+
var entry = this.tryEntries[i];
|
|
16677
|
+
if (entry.tryLoc <= this.prev &&
|
|
16678
|
+
hasOwn.call(entry, "finallyLoc") &&
|
|
16679
|
+
this.prev < entry.finallyLoc) {
|
|
16680
|
+
var finallyEntry = entry;
|
|
16681
|
+
break;
|
|
16682
|
+
}
|
|
16683
|
+
}
|
|
16684
|
+
|
|
16685
|
+
if (finallyEntry &&
|
|
16686
|
+
(type === "break" ||
|
|
16687
|
+
type === "continue") &&
|
|
16688
|
+
finallyEntry.tryLoc <= arg &&
|
|
16689
|
+
arg <= finallyEntry.finallyLoc) {
|
|
16690
|
+
// Ignore the finally entry if control is not jumping to a
|
|
16691
|
+
// location outside the try/catch block.
|
|
16692
|
+
finallyEntry = null;
|
|
16693
|
+
}
|
|
16694
|
+
|
|
16695
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
16696
|
+
record.type = type;
|
|
16697
|
+
record.arg = arg;
|
|
16698
|
+
|
|
16699
|
+
if (finallyEntry) {
|
|
16700
|
+
this.method = "next";
|
|
16701
|
+
this.next = finallyEntry.finallyLoc;
|
|
16702
|
+
return ContinueSentinel;
|
|
16703
|
+
}
|
|
16704
|
+
|
|
16705
|
+
return this.complete(record);
|
|
16706
|
+
},
|
|
16707
|
+
|
|
16708
|
+
complete: function(record, afterLoc) {
|
|
16709
|
+
if (record.type === "throw") {
|
|
16710
|
+
throw record.arg;
|
|
16711
|
+
}
|
|
16712
|
+
|
|
16713
|
+
if (record.type === "break" ||
|
|
16714
|
+
record.type === "continue") {
|
|
16715
|
+
this.next = record.arg;
|
|
16716
|
+
} else if (record.type === "return") {
|
|
16717
|
+
this.rval = this.arg = record.arg;
|
|
16718
|
+
this.method = "return";
|
|
16719
|
+
this.next = "end";
|
|
16720
|
+
} else if (record.type === "normal" && afterLoc) {
|
|
16721
|
+
this.next = afterLoc;
|
|
16722
|
+
}
|
|
16723
|
+
|
|
16724
|
+
return ContinueSentinel;
|
|
16725
|
+
},
|
|
16726
|
+
|
|
16727
|
+
finish: function(finallyLoc) {
|
|
16728
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
16729
|
+
var entry = this.tryEntries[i];
|
|
16730
|
+
if (entry.finallyLoc === finallyLoc) {
|
|
16731
|
+
this.complete(entry.completion, entry.afterLoc);
|
|
16732
|
+
resetTryEntry(entry);
|
|
16733
|
+
return ContinueSentinel;
|
|
16734
|
+
}
|
|
16735
|
+
}
|
|
16736
|
+
},
|
|
16737
|
+
|
|
16738
|
+
"catch": function(tryLoc) {
|
|
16739
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
16740
|
+
var entry = this.tryEntries[i];
|
|
16741
|
+
if (entry.tryLoc === tryLoc) {
|
|
16742
|
+
var record = entry.completion;
|
|
16743
|
+
if (record.type === "throw") {
|
|
16744
|
+
var thrown = record.arg;
|
|
16745
|
+
resetTryEntry(entry);
|
|
16746
|
+
}
|
|
16747
|
+
return thrown;
|
|
16748
|
+
}
|
|
16749
|
+
}
|
|
16750
|
+
|
|
16751
|
+
// The context.catch method must only be called with a location
|
|
16752
|
+
// argument that corresponds to a known catch block.
|
|
16753
|
+
throw new Error("illegal catch attempt");
|
|
16754
|
+
},
|
|
16755
|
+
|
|
16756
|
+
delegateYield: function(iterable, resultName, nextLoc) {
|
|
16757
|
+
this.delegate = {
|
|
16758
|
+
iterator: values(iterable),
|
|
16759
|
+
resultName: resultName,
|
|
16760
|
+
nextLoc: nextLoc
|
|
16761
|
+
};
|
|
16762
|
+
|
|
16763
|
+
if (this.method === "next") {
|
|
16764
|
+
// Deliberately forget the last sent value so that we don't
|
|
16765
|
+
// accidentally pass it on to the delegate.
|
|
16766
|
+
this.arg = undefined;
|
|
16767
|
+
}
|
|
16768
|
+
|
|
16769
|
+
return ContinueSentinel;
|
|
16770
|
+
}
|
|
16771
|
+
};
|
|
16772
|
+
|
|
16773
|
+
// Regardless of whether this script is executing as a CommonJS module
|
|
16774
|
+
// or not, return the runtime object so that we can declare the variable
|
|
16775
|
+
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
16776
|
+
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
16777
|
+
return exports;
|
|
16778
|
+
|
|
16779
|
+
}(
|
|
16780
|
+
// If this script is executing as a CommonJS module, use module.exports
|
|
16781
|
+
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
16782
|
+
// object. Either way, the resulting object will be used to initialize
|
|
16783
|
+
// the regeneratorRuntime variable at the top of this file.
|
|
16784
|
+
true ? module.exports : undefined
|
|
16785
|
+
));
|
|
16786
|
+
|
|
16787
|
+
try {
|
|
16788
|
+
regeneratorRuntime = runtime;
|
|
16789
|
+
} catch (accidentalStrictMode) {
|
|
16790
|
+
// This module should not be running in strict mode, so the above
|
|
16791
|
+
// assignment should always work unless something is misconfigured. Just
|
|
16792
|
+
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
16793
|
+
// strict mode using a global Function call. This could conceivably fail
|
|
16794
|
+
// if a Content Security Policy forbids using Function, but in that case
|
|
16795
|
+
// the proper solution is to fix the accidental strict mode problem. If
|
|
16796
|
+
// you've misconfigured your bundler to force strict mode and applied a
|
|
16797
|
+
// CSP to forbid Function, and you're not willing to fix either of those
|
|
16798
|
+
// problems, please detail your unique predicament in a GitHub issue.
|
|
16799
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
16800
|
+
}
|
|
16801
|
+
|
|
16802
|
+
|
|
15749
16803
|
/***/ }),
|
|
15750
16804
|
|
|
15751
16805
|
/***/ "970b":
|
|
@@ -17887,7 +18941,7 @@ module.exports = isLength;
|
|
|
17887
18941
|
// ESM COMPAT FLAG
|
|
17888
18942
|
__webpack_require__.r(__webpack_exports__);
|
|
17889
18943
|
|
|
17890
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
18944
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/UnidooCrudTable.vue?vue&type=template&id=deb3d152&scoped=true&
|
|
17891
18945
|
var UnidooCrudTablevue_type_template_id_deb3d152_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.error == true)?_c('v-alert',{attrs:{"dense":"","outlined":"","type":"error"}},[_vm._v("Please enter a valid REST url root")]):_vm._e(),(_vm.url && _vm.error == false)?_c('v-data-table',{staticClass:"elevation-1",attrs:{"headers":_vm.columns,"items":_vm.alldata,"search":_vm.search},scopedSlots:_vm._u([{key:"top",fn:function(){return [_c('v-toolbar',{attrs:{"flat":""}},[_c('v-toolbar-title',[_vm._v(_vm._s(_vm.title))]),_c('v-divider',{staticClass:"mx-4",attrs:{"inset":"","vertical":""}}),_c('v-spacer'),(!_vm.onlyUpdate)?_c('v-btn',{attrs:{"color":"blue","dark":"","min-width":"150px"},on:{"click":_vm.addItem}},[_vm._v("Create Item")]):_vm._e(),_c('v-spacer'),_c('v-text-field',{attrs:{"append-icon":"mdi-magnify","label":"Search","single-line":"","hide-details":""},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:"search"}}),_c('v-dialog',{staticStyle:{"z-index":"1000"},attrs:{"max-width":"1000px"},model:{value:(_vm.itemDialog),callback:function ($$v) {_vm.itemDialog=$$v},expression:"itemDialog"}},[_c('v-card',[_c('v-card-title',[_c('span',{staticClass:"headline"},[_vm._v(_vm._s(_vm.titleEdit))])]),_c('v-card-text',[_c('v-container',[_c('v-row',_vm._l((Object.keys(_vm.defaultItem)),function(field,index){return _c('v-col',{key:index,attrs:{"cols":"12","sm":"6","md":"4"}},[(typeof _vm.editedItem[field] == 'number')?_c('v-text-field',{attrs:{"label":field,"type":"number"},model:{value:(_vm.editedItem[field]),callback:function ($$v) {_vm.$set(_vm.editedItem, field, $$v)},expression:"editedItem[field]"}}):_vm._e(),(typeof _vm.editedItem[field] == 'boolean')?_c('v-switch',{attrs:{"flat":"","label":("" + (_vm.editedItem[field].toString()))},model:{value:(_vm.editedItem[field]),callback:function ($$v) {_vm.$set(_vm.editedItem, field, $$v)},expression:"editedItem[field]"}}):_c('v-text-field',{attrs:{"label":field},model:{value:(_vm.editedItem[field]),callback:function ($$v) {_vm.$set(_vm.editedItem, field, $$v)},expression:"editedItem[field]"}})],1)}),1)],1)],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{"dark":"","color":"blue"},on:{"click":function($event){return _vm.close()}}},[_vm._v("Cancel")]),_c('v-btn',{attrs:{"dark":"","color":"success"},on:{"click":function($event){return _vm.saveItem()}}},[_vm._v("Save")])],1)],1)],1),_c('v-dialog',{staticStyle:{"z-index":"1000"},attrs:{"max-width":"1000px"},model:{value:(_vm.itemDeleteDialog),callback:function ($$v) {_vm.itemDeleteDialog=$$v},expression:"itemDeleteDialog"}},[_c('v-card',{attrs:{"flat":""}},[_c('v-card-title',[_c('span',{staticClass:"headline"},[_vm._v("Are you sure you want to delete this item ?")])]),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{"dark":"","color":"blue"},on:{"click":_vm.close}},[_vm._v("Cancel")]),_c('v-btn',{attrs:{"dark":"","color":"red darken-1"},on:{"click":function($event){return _vm.deleteThisItem()}}},[_vm._v("Yes")])],1)],1)],1)],1)]},proxy:true},{key:"item.actions",fn:function(ref){
|
|
17892
18946
|
var item = ref.item;
|
|
17893
18947
|
return [_c('v-icon',{staticClass:"ma-2",attrs:{"color":"blue"},on:{"click":function($event){return _vm.editItem(item)}}},[_vm._v("edit")]),(!_vm.onlyUpdate)?_c('v-icon',{staticClass:"ma-2",attrs:{"color":"red"},on:{"click":function($event){return _vm.deleteItem(item)}}},[_vm._v("delete")]):_vm._e()]}}],null,true)}):_vm._e()],1)}
|
|
@@ -23837,7 +24891,7 @@ installComponents_default()(component, {VAlert: VAlert_VAlert,VBtn: VBtn_VBtn["a
|
|
|
23837
24891
|
// ESM COMPAT FLAG
|
|
23838
24892
|
__webpack_require__.r(__webpack_exports__);
|
|
23839
24893
|
|
|
23840
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
24894
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/level-selector/level-selector.vue?vue&type=template&id=599621b4&scoped=true&
|
|
23841
24895
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"selector":""}},[(_vm.levels && _vm.data)?_c('v-col',{attrs:{"level-selector":""}},_vm._l((_vm.levelKeys),function(key){return _c('v-row',{key:key,staticStyle:{"margin":"0 -12px"}},[_c('level-selector-row',{attrs:{"label":_vm.levels[key].label,"availableOptions":_vm.availableOptions[key],"options":_vm.getAllOptions(key)},model:{value:(_vm.selector[key]),callback:function ($$v) {_vm.$set(_vm.selector, key, $$v)},expression:"selector[key]"}})],1)}),1):_vm._e()],1)}
|
|
23842
24896
|
var staticRenderFns = []
|
|
23843
24897
|
|
|
@@ -24258,6 +25312,91 @@ exports.push([module.i, ".theme--light.v-messages{color:rgba(0,0,0,.6)}.theme--d
|
|
|
24258
25312
|
module.exports = exports;
|
|
24259
25313
|
|
|
24260
25314
|
|
|
25315
|
+
/***/ }),
|
|
25316
|
+
|
|
25317
|
+
/***/ "b575":
|
|
25318
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
25319
|
+
|
|
25320
|
+
var global = __webpack_require__("da84");
|
|
25321
|
+
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
|
25322
|
+
var classof = __webpack_require__("c6b6");
|
|
25323
|
+
var macrotask = __webpack_require__("2cf4").set;
|
|
25324
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
25325
|
+
|
|
25326
|
+
var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
|
|
25327
|
+
var process = global.process;
|
|
25328
|
+
var Promise = global.Promise;
|
|
25329
|
+
var IS_NODE = classof(process) == 'process';
|
|
25330
|
+
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
25331
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
|
|
25332
|
+
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
25333
|
+
|
|
25334
|
+
var flush, head, last, notify, toggle, node, promise, then;
|
|
25335
|
+
|
|
25336
|
+
// modern engines have queueMicrotask method
|
|
25337
|
+
if (!queueMicrotask) {
|
|
25338
|
+
flush = function () {
|
|
25339
|
+
var parent, fn;
|
|
25340
|
+
if (IS_NODE && (parent = process.domain)) parent.exit();
|
|
25341
|
+
while (head) {
|
|
25342
|
+
fn = head.fn;
|
|
25343
|
+
head = head.next;
|
|
25344
|
+
try {
|
|
25345
|
+
fn();
|
|
25346
|
+
} catch (error) {
|
|
25347
|
+
if (head) notify();
|
|
25348
|
+
else last = undefined;
|
|
25349
|
+
throw error;
|
|
25350
|
+
}
|
|
25351
|
+
} last = undefined;
|
|
25352
|
+
if (parent) parent.enter();
|
|
25353
|
+
};
|
|
25354
|
+
|
|
25355
|
+
// Node.js
|
|
25356
|
+
if (IS_NODE) {
|
|
25357
|
+
notify = function () {
|
|
25358
|
+
process.nextTick(flush);
|
|
25359
|
+
};
|
|
25360
|
+
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
25361
|
+
} else if (MutationObserver && !IS_IOS) {
|
|
25362
|
+
toggle = true;
|
|
25363
|
+
node = document.createTextNode('');
|
|
25364
|
+
new MutationObserver(flush).observe(node, { characterData: true });
|
|
25365
|
+
notify = function () {
|
|
25366
|
+
node.data = toggle = !toggle;
|
|
25367
|
+
};
|
|
25368
|
+
// environments with maybe non-completely correct, but existent Promise
|
|
25369
|
+
} else if (Promise && Promise.resolve) {
|
|
25370
|
+
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
25371
|
+
promise = Promise.resolve(undefined);
|
|
25372
|
+
then = promise.then;
|
|
25373
|
+
notify = function () {
|
|
25374
|
+
then.call(promise, flush);
|
|
25375
|
+
};
|
|
25376
|
+
// for other environments - macrotask based on:
|
|
25377
|
+
// - setImmediate
|
|
25378
|
+
// - MessageChannel
|
|
25379
|
+
// - window.postMessag
|
|
25380
|
+
// - onreadystatechange
|
|
25381
|
+
// - setTimeout
|
|
25382
|
+
} else {
|
|
25383
|
+
notify = function () {
|
|
25384
|
+
// strange IE + webpack dev server bug - use .call(global)
|
|
25385
|
+
macrotask.call(global, flush);
|
|
25386
|
+
};
|
|
25387
|
+
}
|
|
25388
|
+
}
|
|
25389
|
+
|
|
25390
|
+
module.exports = queueMicrotask || function (fn) {
|
|
25391
|
+
var task = { fn: fn, next: undefined };
|
|
25392
|
+
if (last) last.next = task;
|
|
25393
|
+
if (!head) {
|
|
25394
|
+
head = task;
|
|
25395
|
+
notify();
|
|
25396
|
+
} last = task;
|
|
25397
|
+
};
|
|
25398
|
+
|
|
25399
|
+
|
|
24261
25400
|
/***/ }),
|
|
24262
25401
|
|
|
24263
25402
|
/***/ "b5a7":
|
|
@@ -24326,7 +25465,7 @@ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
|
|
24326
25465
|
// ESM COMPAT FLAG
|
|
24327
25466
|
__webpack_require__.r(__webpack_exports__);
|
|
24328
25467
|
|
|
24329
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
25468
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/UnidooCaptcha.vue?vue&type=template&id=c1e33a78&scoped=true&
|
|
24330
25469
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('div',{ref:"captcha"}),_c('div',[_c('v-text-field',{attrs:{"label":_vm.textFieldLabel},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:"text"}}),_c('v-btn',{attrs:{"color":_vm.color},on:{"click":_vm.refresh}},[_vm._v(_vm._s(_vm.refreshButtonLabel))])],1)])}
|
|
24331
25470
|
var staticRenderFns = []
|
|
24332
25471
|
|
|
@@ -25651,7 +26790,7 @@ module.exports = function (it) {
|
|
|
25651
26790
|
// ESM COMPAT FLAG
|
|
25652
26791
|
__webpack_require__.r(__webpack_exports__);
|
|
25653
26792
|
|
|
25654
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
26793
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-heatmap/UnidooHeatmap.vue?vue&type=template&id=1418a964&scoped=true&
|
|
25655
26794
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',[_c('section',{attrs:{"heatmap-calendar":""}},_vm._l((_vm.heatmap.monthCalendar),function(month,monthIndex){return _c('div',{key:monthIndex,attrs:{"month":""}},[_c('header',[_vm._v(_vm._s(_vm.lo.months[monthIndex]))]),_c('div',{attrs:{"days":""}},_vm._l((month),function(day,dayIndex){return _c('div',{directives:[{name:"tooltip",rawName:"v-tooltip",value:(_vm.tooltipOptions(day)),expression:"tooltipOptions(day)"}],key:dayIndex,class:_vm.computeClass(day),style:({ opacity : ((day.date <= _vm.now) ? 1 : 0.3), backgroundColor: _vm.getColor(day.colorIndex) }),attrs:{"data-day":_vm.formatDate(day.date),"data-count":day.count,"data-color":day.colorIndex},on:{"click":function($event){return _vm.handleClick($event,day)}}},[(day.date < _vm.now)?_c('div',{style:({ color: _vm.getTextColor(day) })},[_vm._v(_vm._s(dayIndex + 1))]):_vm._e()])}),0)])}),0)])}
|
|
25656
26795
|
var staticRenderFns = []
|
|
25657
26796
|
|
|
@@ -26255,6 +27394,25 @@ function identity(value) {
|
|
|
26255
27394
|
module.exports = identity;
|
|
26256
27395
|
|
|
26257
27396
|
|
|
27397
|
+
/***/ }),
|
|
27398
|
+
|
|
27399
|
+
/***/ "cdf9":
|
|
27400
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
27401
|
+
|
|
27402
|
+
var anObject = __webpack_require__("825a");
|
|
27403
|
+
var isObject = __webpack_require__("861d");
|
|
27404
|
+
var newPromiseCapability = __webpack_require__("f069");
|
|
27405
|
+
|
|
27406
|
+
module.exports = function (C, x) {
|
|
27407
|
+
anObject(C);
|
|
27408
|
+
if (isObject(x) && x.constructor === C) return x;
|
|
27409
|
+
var promiseCapability = newPromiseCapability.f(C);
|
|
27410
|
+
var resolve = promiseCapability.resolve;
|
|
27411
|
+
resolve(x);
|
|
27412
|
+
return promiseCapability.promise;
|
|
27413
|
+
};
|
|
27414
|
+
|
|
27415
|
+
|
|
26258
27416
|
/***/ }),
|
|
26259
27417
|
|
|
26260
27418
|
/***/ "ce4e":
|
|
@@ -29094,7 +30252,7 @@ module.exports = !fails(function () {
|
|
|
29094
30252
|
// ESM COMPAT FLAG
|
|
29095
30253
|
__webpack_require__.r(__webpack_exports__);
|
|
29096
30254
|
|
|
29097
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
30255
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/UnidooTrajectoryMap.vue?vue&type=template&id=3b14a195&
|
|
29098
30256
|
var UnidooTrajectoryMapvue_type_template_id_3b14a195_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"map-root",staticStyle:{"width":"100%","height":"100%"}})}
|
|
29099
30257
|
var staticRenderFns = []
|
|
29100
30258
|
|
|
@@ -66284,6 +67442,19 @@ addToUnscopables('values');
|
|
|
66284
67442
|
addToUnscopables('entries');
|
|
66285
67443
|
|
|
66286
67444
|
|
|
67445
|
+
/***/ }),
|
|
67446
|
+
|
|
67447
|
+
/***/ "e2cc":
|
|
67448
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
67449
|
+
|
|
67450
|
+
var redefine = __webpack_require__("6eeb");
|
|
67451
|
+
|
|
67452
|
+
module.exports = function (target, src, options) {
|
|
67453
|
+
for (var key in src) redefine(target, key, src[key], options);
|
|
67454
|
+
return target;
|
|
67455
|
+
};
|
|
67456
|
+
|
|
67457
|
+
|
|
66287
67458
|
/***/ }),
|
|
66288
67459
|
|
|
66289
67460
|
/***/ "e37d":
|
|
@@ -68451,6 +69622,407 @@ module.exports = cloneBuffer;
|
|
|
68451
69622
|
|
|
68452
69623
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module)))
|
|
68453
69624
|
|
|
69625
|
+
/***/ }),
|
|
69626
|
+
|
|
69627
|
+
/***/ "e667":
|
|
69628
|
+
/***/ (function(module, exports) {
|
|
69629
|
+
|
|
69630
|
+
module.exports = function (exec) {
|
|
69631
|
+
try {
|
|
69632
|
+
return { error: false, value: exec() };
|
|
69633
|
+
} catch (error) {
|
|
69634
|
+
return { error: true, value: error };
|
|
69635
|
+
}
|
|
69636
|
+
};
|
|
69637
|
+
|
|
69638
|
+
|
|
69639
|
+
/***/ }),
|
|
69640
|
+
|
|
69641
|
+
/***/ "e6cf":
|
|
69642
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
69643
|
+
|
|
69644
|
+
"use strict";
|
|
69645
|
+
|
|
69646
|
+
var $ = __webpack_require__("23e7");
|
|
69647
|
+
var IS_PURE = __webpack_require__("c430");
|
|
69648
|
+
var global = __webpack_require__("da84");
|
|
69649
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
69650
|
+
var NativePromise = __webpack_require__("fea9");
|
|
69651
|
+
var redefine = __webpack_require__("6eeb");
|
|
69652
|
+
var redefineAll = __webpack_require__("e2cc");
|
|
69653
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
69654
|
+
var setSpecies = __webpack_require__("2626");
|
|
69655
|
+
var isObject = __webpack_require__("861d");
|
|
69656
|
+
var aFunction = __webpack_require__("1c0b");
|
|
69657
|
+
var anInstance = __webpack_require__("19aa");
|
|
69658
|
+
var classof = __webpack_require__("c6b6");
|
|
69659
|
+
var inspectSource = __webpack_require__("8925");
|
|
69660
|
+
var iterate = __webpack_require__("2266");
|
|
69661
|
+
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
|
69662
|
+
var speciesConstructor = __webpack_require__("4840");
|
|
69663
|
+
var task = __webpack_require__("2cf4").set;
|
|
69664
|
+
var microtask = __webpack_require__("b575");
|
|
69665
|
+
var promiseResolve = __webpack_require__("cdf9");
|
|
69666
|
+
var hostReportErrors = __webpack_require__("44de");
|
|
69667
|
+
var newPromiseCapabilityModule = __webpack_require__("f069");
|
|
69668
|
+
var perform = __webpack_require__("e667");
|
|
69669
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
69670
|
+
var isForced = __webpack_require__("94ca");
|
|
69671
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
69672
|
+
var V8_VERSION = __webpack_require__("2d00");
|
|
69673
|
+
|
|
69674
|
+
var SPECIES = wellKnownSymbol('species');
|
|
69675
|
+
var PROMISE = 'Promise';
|
|
69676
|
+
var getInternalState = InternalStateModule.get;
|
|
69677
|
+
var setInternalState = InternalStateModule.set;
|
|
69678
|
+
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
69679
|
+
var PromiseConstructor = NativePromise;
|
|
69680
|
+
var TypeError = global.TypeError;
|
|
69681
|
+
var document = global.document;
|
|
69682
|
+
var process = global.process;
|
|
69683
|
+
var $fetch = getBuiltIn('fetch');
|
|
69684
|
+
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
69685
|
+
var newGenericPromiseCapability = newPromiseCapability;
|
|
69686
|
+
var IS_NODE = classof(process) == 'process';
|
|
69687
|
+
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
|
|
69688
|
+
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
69689
|
+
var REJECTION_HANDLED = 'rejectionhandled';
|
|
69690
|
+
var PENDING = 0;
|
|
69691
|
+
var FULFILLED = 1;
|
|
69692
|
+
var REJECTED = 2;
|
|
69693
|
+
var HANDLED = 1;
|
|
69694
|
+
var UNHANDLED = 2;
|
|
69695
|
+
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
69696
|
+
|
|
69697
|
+
var FORCED = isForced(PROMISE, function () {
|
|
69698
|
+
var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
|
|
69699
|
+
if (!GLOBAL_CORE_JS_PROMISE) {
|
|
69700
|
+
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
69701
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
69702
|
+
// We can't detect it synchronously, so just check versions
|
|
69703
|
+
if (V8_VERSION === 66) return true;
|
|
69704
|
+
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
69705
|
+
if (!IS_NODE && typeof PromiseRejectionEvent != 'function') return true;
|
|
69706
|
+
}
|
|
69707
|
+
// We need Promise#finally in the pure version for preventing prototype pollution
|
|
69708
|
+
if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
|
|
69709
|
+
// We can't use @@species feature detection in V8 since it causes
|
|
69710
|
+
// deoptimization and performance degradation
|
|
69711
|
+
// https://github.com/zloirock/core-js/issues/679
|
|
69712
|
+
if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
|
|
69713
|
+
// Detect correctness of subclassing with @@species support
|
|
69714
|
+
var promise = PromiseConstructor.resolve(1);
|
|
69715
|
+
var FakePromise = function (exec) {
|
|
69716
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
69717
|
+
};
|
|
69718
|
+
var constructor = promise.constructor = {};
|
|
69719
|
+
constructor[SPECIES] = FakePromise;
|
|
69720
|
+
return !(promise.then(function () { /* empty */ }) instanceof FakePromise);
|
|
69721
|
+
});
|
|
69722
|
+
|
|
69723
|
+
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
|
|
69724
|
+
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
|
|
69725
|
+
});
|
|
69726
|
+
|
|
69727
|
+
// helpers
|
|
69728
|
+
var isThenable = function (it) {
|
|
69729
|
+
var then;
|
|
69730
|
+
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
|
|
69731
|
+
};
|
|
69732
|
+
|
|
69733
|
+
var notify = function (promise, state, isReject) {
|
|
69734
|
+
if (state.notified) return;
|
|
69735
|
+
state.notified = true;
|
|
69736
|
+
var chain = state.reactions;
|
|
69737
|
+
microtask(function () {
|
|
69738
|
+
var value = state.value;
|
|
69739
|
+
var ok = state.state == FULFILLED;
|
|
69740
|
+
var index = 0;
|
|
69741
|
+
// variable length - can't use forEach
|
|
69742
|
+
while (chain.length > index) {
|
|
69743
|
+
var reaction = chain[index++];
|
|
69744
|
+
var handler = ok ? reaction.ok : reaction.fail;
|
|
69745
|
+
var resolve = reaction.resolve;
|
|
69746
|
+
var reject = reaction.reject;
|
|
69747
|
+
var domain = reaction.domain;
|
|
69748
|
+
var result, then, exited;
|
|
69749
|
+
try {
|
|
69750
|
+
if (handler) {
|
|
69751
|
+
if (!ok) {
|
|
69752
|
+
if (state.rejection === UNHANDLED) onHandleUnhandled(promise, state);
|
|
69753
|
+
state.rejection = HANDLED;
|
|
69754
|
+
}
|
|
69755
|
+
if (handler === true) result = value;
|
|
69756
|
+
else {
|
|
69757
|
+
if (domain) domain.enter();
|
|
69758
|
+
result = handler(value); // can throw
|
|
69759
|
+
if (domain) {
|
|
69760
|
+
domain.exit();
|
|
69761
|
+
exited = true;
|
|
69762
|
+
}
|
|
69763
|
+
}
|
|
69764
|
+
if (result === reaction.promise) {
|
|
69765
|
+
reject(TypeError('Promise-chain cycle'));
|
|
69766
|
+
} else if (then = isThenable(result)) {
|
|
69767
|
+
then.call(result, resolve, reject);
|
|
69768
|
+
} else resolve(result);
|
|
69769
|
+
} else reject(value);
|
|
69770
|
+
} catch (error) {
|
|
69771
|
+
if (domain && !exited) domain.exit();
|
|
69772
|
+
reject(error);
|
|
69773
|
+
}
|
|
69774
|
+
}
|
|
69775
|
+
state.reactions = [];
|
|
69776
|
+
state.notified = false;
|
|
69777
|
+
if (isReject && !state.rejection) onUnhandled(promise, state);
|
|
69778
|
+
});
|
|
69779
|
+
};
|
|
69780
|
+
|
|
69781
|
+
var dispatchEvent = function (name, promise, reason) {
|
|
69782
|
+
var event, handler;
|
|
69783
|
+
if (DISPATCH_EVENT) {
|
|
69784
|
+
event = document.createEvent('Event');
|
|
69785
|
+
event.promise = promise;
|
|
69786
|
+
event.reason = reason;
|
|
69787
|
+
event.initEvent(name, false, true);
|
|
69788
|
+
global.dispatchEvent(event);
|
|
69789
|
+
} else event = { promise: promise, reason: reason };
|
|
69790
|
+
if (handler = global['on' + name]) handler(event);
|
|
69791
|
+
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
69792
|
+
};
|
|
69793
|
+
|
|
69794
|
+
var onUnhandled = function (promise, state) {
|
|
69795
|
+
task.call(global, function () {
|
|
69796
|
+
var value = state.value;
|
|
69797
|
+
var IS_UNHANDLED = isUnhandled(state);
|
|
69798
|
+
var result;
|
|
69799
|
+
if (IS_UNHANDLED) {
|
|
69800
|
+
result = perform(function () {
|
|
69801
|
+
if (IS_NODE) {
|
|
69802
|
+
process.emit('unhandledRejection', value, promise);
|
|
69803
|
+
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
69804
|
+
});
|
|
69805
|
+
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
69806
|
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
69807
|
+
if (result.error) throw result.value;
|
|
69808
|
+
}
|
|
69809
|
+
});
|
|
69810
|
+
};
|
|
69811
|
+
|
|
69812
|
+
var isUnhandled = function (state) {
|
|
69813
|
+
return state.rejection !== HANDLED && !state.parent;
|
|
69814
|
+
};
|
|
69815
|
+
|
|
69816
|
+
var onHandleUnhandled = function (promise, state) {
|
|
69817
|
+
task.call(global, function () {
|
|
69818
|
+
if (IS_NODE) {
|
|
69819
|
+
process.emit('rejectionHandled', promise);
|
|
69820
|
+
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
69821
|
+
});
|
|
69822
|
+
};
|
|
69823
|
+
|
|
69824
|
+
var bind = function (fn, promise, state, unwrap) {
|
|
69825
|
+
return function (value) {
|
|
69826
|
+
fn(promise, state, value, unwrap);
|
|
69827
|
+
};
|
|
69828
|
+
};
|
|
69829
|
+
|
|
69830
|
+
var internalReject = function (promise, state, value, unwrap) {
|
|
69831
|
+
if (state.done) return;
|
|
69832
|
+
state.done = true;
|
|
69833
|
+
if (unwrap) state = unwrap;
|
|
69834
|
+
state.value = value;
|
|
69835
|
+
state.state = REJECTED;
|
|
69836
|
+
notify(promise, state, true);
|
|
69837
|
+
};
|
|
69838
|
+
|
|
69839
|
+
var internalResolve = function (promise, state, value, unwrap) {
|
|
69840
|
+
if (state.done) return;
|
|
69841
|
+
state.done = true;
|
|
69842
|
+
if (unwrap) state = unwrap;
|
|
69843
|
+
try {
|
|
69844
|
+
if (promise === value) throw TypeError("Promise can't be resolved itself");
|
|
69845
|
+
var then = isThenable(value);
|
|
69846
|
+
if (then) {
|
|
69847
|
+
microtask(function () {
|
|
69848
|
+
var wrapper = { done: false };
|
|
69849
|
+
try {
|
|
69850
|
+
then.call(value,
|
|
69851
|
+
bind(internalResolve, promise, wrapper, state),
|
|
69852
|
+
bind(internalReject, promise, wrapper, state)
|
|
69853
|
+
);
|
|
69854
|
+
} catch (error) {
|
|
69855
|
+
internalReject(promise, wrapper, error, state);
|
|
69856
|
+
}
|
|
69857
|
+
});
|
|
69858
|
+
} else {
|
|
69859
|
+
state.value = value;
|
|
69860
|
+
state.state = FULFILLED;
|
|
69861
|
+
notify(promise, state, false);
|
|
69862
|
+
}
|
|
69863
|
+
} catch (error) {
|
|
69864
|
+
internalReject(promise, { done: false }, error, state);
|
|
69865
|
+
}
|
|
69866
|
+
};
|
|
69867
|
+
|
|
69868
|
+
// constructor polyfill
|
|
69869
|
+
if (FORCED) {
|
|
69870
|
+
// 25.4.3.1 Promise(executor)
|
|
69871
|
+
PromiseConstructor = function Promise(executor) {
|
|
69872
|
+
anInstance(this, PromiseConstructor, PROMISE);
|
|
69873
|
+
aFunction(executor);
|
|
69874
|
+
Internal.call(this);
|
|
69875
|
+
var state = getInternalState(this);
|
|
69876
|
+
try {
|
|
69877
|
+
executor(bind(internalResolve, this, state), bind(internalReject, this, state));
|
|
69878
|
+
} catch (error) {
|
|
69879
|
+
internalReject(this, state, error);
|
|
69880
|
+
}
|
|
69881
|
+
};
|
|
69882
|
+
// eslint-disable-next-line no-unused-vars
|
|
69883
|
+
Internal = function Promise(executor) {
|
|
69884
|
+
setInternalState(this, {
|
|
69885
|
+
type: PROMISE,
|
|
69886
|
+
done: false,
|
|
69887
|
+
notified: false,
|
|
69888
|
+
parent: false,
|
|
69889
|
+
reactions: [],
|
|
69890
|
+
rejection: false,
|
|
69891
|
+
state: PENDING,
|
|
69892
|
+
value: undefined
|
|
69893
|
+
});
|
|
69894
|
+
};
|
|
69895
|
+
Internal.prototype = redefineAll(PromiseConstructor.prototype, {
|
|
69896
|
+
// `Promise.prototype.then` method
|
|
69897
|
+
// https://tc39.github.io/ecma262/#sec-promise.prototype.then
|
|
69898
|
+
then: function then(onFulfilled, onRejected) {
|
|
69899
|
+
var state = getInternalPromiseState(this);
|
|
69900
|
+
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
|
69901
|
+
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
|
69902
|
+
reaction.fail = typeof onRejected == 'function' && onRejected;
|
|
69903
|
+
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
69904
|
+
state.parent = true;
|
|
69905
|
+
state.reactions.push(reaction);
|
|
69906
|
+
if (state.state != PENDING) notify(this, state, false);
|
|
69907
|
+
return reaction.promise;
|
|
69908
|
+
},
|
|
69909
|
+
// `Promise.prototype.catch` method
|
|
69910
|
+
// https://tc39.github.io/ecma262/#sec-promise.prototype.catch
|
|
69911
|
+
'catch': function (onRejected) {
|
|
69912
|
+
return this.then(undefined, onRejected);
|
|
69913
|
+
}
|
|
69914
|
+
});
|
|
69915
|
+
OwnPromiseCapability = function () {
|
|
69916
|
+
var promise = new Internal();
|
|
69917
|
+
var state = getInternalState(promise);
|
|
69918
|
+
this.promise = promise;
|
|
69919
|
+
this.resolve = bind(internalResolve, promise, state);
|
|
69920
|
+
this.reject = bind(internalReject, promise, state);
|
|
69921
|
+
};
|
|
69922
|
+
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
|
69923
|
+
return C === PromiseConstructor || C === PromiseWrapper
|
|
69924
|
+
? new OwnPromiseCapability(C)
|
|
69925
|
+
: newGenericPromiseCapability(C);
|
|
69926
|
+
};
|
|
69927
|
+
|
|
69928
|
+
if (!IS_PURE && typeof NativePromise == 'function') {
|
|
69929
|
+
nativeThen = NativePromise.prototype.then;
|
|
69930
|
+
|
|
69931
|
+
// wrap native Promise#then for native async functions
|
|
69932
|
+
redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
|
|
69933
|
+
var that = this;
|
|
69934
|
+
return new PromiseConstructor(function (resolve, reject) {
|
|
69935
|
+
nativeThen.call(that, resolve, reject);
|
|
69936
|
+
}).then(onFulfilled, onRejected);
|
|
69937
|
+
// https://github.com/zloirock/core-js/issues/640
|
|
69938
|
+
}, { unsafe: true });
|
|
69939
|
+
|
|
69940
|
+
// wrap fetch result
|
|
69941
|
+
if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
|
|
69942
|
+
// eslint-disable-next-line no-unused-vars
|
|
69943
|
+
fetch: function fetch(input /* , init */) {
|
|
69944
|
+
return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
|
|
69945
|
+
}
|
|
69946
|
+
});
|
|
69947
|
+
}
|
|
69948
|
+
}
|
|
69949
|
+
|
|
69950
|
+
$({ global: true, wrap: true, forced: FORCED }, {
|
|
69951
|
+
Promise: PromiseConstructor
|
|
69952
|
+
});
|
|
69953
|
+
|
|
69954
|
+
setToStringTag(PromiseConstructor, PROMISE, false, true);
|
|
69955
|
+
setSpecies(PROMISE);
|
|
69956
|
+
|
|
69957
|
+
PromiseWrapper = getBuiltIn(PROMISE);
|
|
69958
|
+
|
|
69959
|
+
// statics
|
|
69960
|
+
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
69961
|
+
// `Promise.reject` method
|
|
69962
|
+
// https://tc39.github.io/ecma262/#sec-promise.reject
|
|
69963
|
+
reject: function reject(r) {
|
|
69964
|
+
var capability = newPromiseCapability(this);
|
|
69965
|
+
capability.reject.call(undefined, r);
|
|
69966
|
+
return capability.promise;
|
|
69967
|
+
}
|
|
69968
|
+
});
|
|
69969
|
+
|
|
69970
|
+
$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
|
|
69971
|
+
// `Promise.resolve` method
|
|
69972
|
+
// https://tc39.github.io/ecma262/#sec-promise.resolve
|
|
69973
|
+
resolve: function resolve(x) {
|
|
69974
|
+
return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
|
|
69975
|
+
}
|
|
69976
|
+
});
|
|
69977
|
+
|
|
69978
|
+
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
69979
|
+
// `Promise.all` method
|
|
69980
|
+
// https://tc39.github.io/ecma262/#sec-promise.all
|
|
69981
|
+
all: function all(iterable) {
|
|
69982
|
+
var C = this;
|
|
69983
|
+
var capability = newPromiseCapability(C);
|
|
69984
|
+
var resolve = capability.resolve;
|
|
69985
|
+
var reject = capability.reject;
|
|
69986
|
+
var result = perform(function () {
|
|
69987
|
+
var $promiseResolve = aFunction(C.resolve);
|
|
69988
|
+
var values = [];
|
|
69989
|
+
var counter = 0;
|
|
69990
|
+
var remaining = 1;
|
|
69991
|
+
iterate(iterable, function (promise) {
|
|
69992
|
+
var index = counter++;
|
|
69993
|
+
var alreadyCalled = false;
|
|
69994
|
+
values.push(undefined);
|
|
69995
|
+
remaining++;
|
|
69996
|
+
$promiseResolve.call(C, promise).then(function (value) {
|
|
69997
|
+
if (alreadyCalled) return;
|
|
69998
|
+
alreadyCalled = true;
|
|
69999
|
+
values[index] = value;
|
|
70000
|
+
--remaining || resolve(values);
|
|
70001
|
+
}, reject);
|
|
70002
|
+
});
|
|
70003
|
+
--remaining || resolve(values);
|
|
70004
|
+
});
|
|
70005
|
+
if (result.error) reject(result.value);
|
|
70006
|
+
return capability.promise;
|
|
70007
|
+
},
|
|
70008
|
+
// `Promise.race` method
|
|
70009
|
+
// https://tc39.github.io/ecma262/#sec-promise.race
|
|
70010
|
+
race: function race(iterable) {
|
|
70011
|
+
var C = this;
|
|
70012
|
+
var capability = newPromiseCapability(C);
|
|
70013
|
+
var reject = capability.reject;
|
|
70014
|
+
var result = perform(function () {
|
|
70015
|
+
var $promiseResolve = aFunction(C.resolve);
|
|
70016
|
+
iterate(iterable, function (promise) {
|
|
70017
|
+
$promiseResolve.call(C, promise).then(capability.resolve, reject);
|
|
70018
|
+
});
|
|
70019
|
+
});
|
|
70020
|
+
if (result.error) reject(result.value);
|
|
70021
|
+
return capability.promise;
|
|
70022
|
+
}
|
|
70023
|
+
});
|
|
70024
|
+
|
|
70025
|
+
|
|
68454
70026
|
/***/ }),
|
|
68455
70027
|
|
|
68456
70028
|
/***/ "e893":
|
|
@@ -68733,6 +70305,32 @@ function stackClear() {
|
|
|
68733
70305
|
module.exports = stackClear;
|
|
68734
70306
|
|
|
68735
70307
|
|
|
70308
|
+
/***/ }),
|
|
70309
|
+
|
|
70310
|
+
/***/ "f069":
|
|
70311
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
70312
|
+
|
|
70313
|
+
"use strict";
|
|
70314
|
+
|
|
70315
|
+
var aFunction = __webpack_require__("1c0b");
|
|
70316
|
+
|
|
70317
|
+
var PromiseCapability = function (C) {
|
|
70318
|
+
var resolve, reject;
|
|
70319
|
+
this.promise = new C(function ($$resolve, $$reject) {
|
|
70320
|
+
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
|
70321
|
+
resolve = $$resolve;
|
|
70322
|
+
reject = $$reject;
|
|
70323
|
+
});
|
|
70324
|
+
this.resolve = aFunction(resolve);
|
|
70325
|
+
this.reject = aFunction(reject);
|
|
70326
|
+
};
|
|
70327
|
+
|
|
70328
|
+
// 25.4.1.5 NewPromiseCapability(C)
|
|
70329
|
+
module.exports.f = function (C) {
|
|
70330
|
+
return new PromiseCapability(C);
|
|
70331
|
+
};
|
|
70332
|
+
|
|
70333
|
+
|
|
68736
70334
|
/***/ }),
|
|
68737
70335
|
|
|
68738
70336
|
/***/ "f0bd":
|
|
@@ -72125,6 +73723,16 @@ var requireComponent = __webpack_require__("4daf"); // Default export is library
|
|
|
72125
73723
|
// export {components}
|
|
72126
73724
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
72127
73725
|
|
|
73726
|
+
/***/ }),
|
|
73727
|
+
|
|
73728
|
+
/***/ "fea9":
|
|
73729
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
73730
|
+
|
|
73731
|
+
var global = __webpack_require__("da84");
|
|
73732
|
+
|
|
73733
|
+
module.exports = global.Promise;
|
|
73734
|
+
|
|
73735
|
+
|
|
72128
73736
|
/***/ }),
|
|
72129
73737
|
|
|
72130
73738
|
/***/ "ffc4":
|