@mjhls/mjh-framework 1.0.1089-webcastAddition-v1 → 1.0.1089
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/cjs/AD300x250.js +1 -1
- package/dist/cjs/AD300x250x600.js +1 -1
- package/dist/cjs/AD728x90.js +1 -1
- package/dist/cjs/ADFloatingFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -1
- package/dist/cjs/{ADInfeed-25f53b70.js → ADInfeed-3eabeab4.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +1 -1
- package/dist/cjs/ADSponsoredResources.js +1 -1
- package/dist/cjs/ADWebcast.js +1 -1
- package/dist/cjs/ADWelcome.js +1 -1
- package/dist/cjs/{ADlgInfeed-5d21496c.js → ADlgInfeed-fc42f8c4.js} +1 -1
- package/dist/cjs/AdSlot.js +1 -1
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/AlgoliaSearch.js +454 -198
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +4 -4
- package/dist/cjs/ArticleSeriesLandingPage.js +4 -4
- package/dist/cjs/ArticleSeriesListing.js +2 -2
- package/dist/cjs/AuthWrapper.js +245 -629
- package/dist/cjs/CEDeckSupabase.js +2 -6
- package/dist/cjs/CMEDeck.js +2 -6
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +1 -1
- package/dist/cjs/ContentCardPaginated.js +3 -3
- package/dist/cjs/DeckContent.js +3 -3
- package/dist/cjs/DeckQueue.js +2 -2
- package/dist/cjs/DeckQueuePaginated.js +2 -2
- package/dist/cjs/EventsDeck.js +3 -3
- package/dist/cjs/ExternalResources.js +5 -5
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/ForbesHero.js +1 -1
- package/dist/cjs/GridContent.js +4 -4
- package/dist/cjs/GridContentPaginated.js +4 -4
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/HamMagazine.js +2 -2
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +4 -4
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/{ImageSlider-eb866353.js → ImageSlider-d65bc9c8.js} +159 -114
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +6 -6
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +4 -4
- package/dist/cjs/MasterDeckPaginated.js +3 -3
- package/dist/cjs/MediaSeriesCard.js +4 -4
- package/dist/cjs/MediaSeriesLanding.js +9 -9
- package/dist/cjs/MediaSeriesLandingPaginated.js +9 -9
- package/dist/cjs/NavMagazine.js +2 -2
- package/dist/cjs/NavNative.js +1 -1
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +7 -8
- package/dist/cjs/PartnerDetailListingPaginated.js +7 -8
- package/dist/cjs/PodcastsLanding.js +7 -7
- package/dist/cjs/PtceDeck.js +1 -1
- package/dist/cjs/PubSection.js +4 -4
- package/dist/cjs/QueueDeckExpanded.js +4 -4
- package/dist/cjs/QueueDeckExpandedPaginated.js +4 -4
- package/dist/cjs/RelatedContent.js +1 -1
- package/dist/cjs/SeriesListingDeck.js +2 -2
- package/dist/cjs/{SeriesSlider-086a8319.js → SeriesSlider-a8b51591.js} +1 -1
- package/dist/cjs/{SocialSearchComponent-d7e5d3a6.js → SocialSearchComponent-9d272141.js} +1 -1
- package/dist/cjs/TaxonomyDescription.js +4 -4
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/{Tooltip-8011d690.js → Tooltip-66c1a867.js} +131 -76
- package/dist/cjs/Ustream.js +1 -1
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +4 -4
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +4 -4
- package/dist/cjs/VideoSeriesListing.js +2 -2
- package/dist/cjs/View.js +5 -7
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/{brightcove-react-player-loader.es-4c7825a1.js → brightcove-react-player-loader.es-35faab67.js} +3 -3
- package/dist/cjs/getRelatedArticle.js +22 -4
- package/dist/cjs/getSerializers.js +4 -4
- package/dist/cjs/{index-b0e9a7b6.js → index-4aba677d.js} +234 -15
- package/dist/cjs/index-4d21663c.js +1573 -0
- package/dist/cjs/{index-50be6759.js → index-9ec837cc.js} +9 -25
- package/dist/cjs/index.js +11 -12
- package/dist/cjs/{main-ae8472f3.js → main-812888f1.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-f730814d.js} +95 -80
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/{ADInfeed-ca4bb13c.js → ADInfeed-8fd14c74.js} +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/{ADlgInfeed-142ddf4d.js → ADlgInfeed-9c3fc2ec.js} +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/AlgoliaSearch.js +453 -197
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +4 -4
- package/dist/esm/ArticleSeriesLandingPage.js +4 -4
- package/dist/esm/ArticleSeriesListing.js +2 -2
- package/dist/esm/AuthWrapper.js +243 -627
- package/dist/esm/CEDeckSupabase.js +2 -6
- package/dist/esm/CMEDeck.js +2 -6
- package/dist/esm/Column3.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +1 -1
- package/dist/esm/ContentCardPaginated.js +3 -3
- package/dist/esm/DeckContent.js +3 -3
- package/dist/esm/DeckQueue.js +2 -2
- package/dist/esm/DeckQueuePaginated.js +2 -2
- package/dist/esm/EventsDeck.js +3 -3
- package/dist/esm/ExternalResources.js +5 -5
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +4 -4
- package/dist/esm/GridContentPaginated.js +4 -4
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/HamMagazine.js +2 -2
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +4 -4
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/{ImageSlider-ea441f66.js → ImageSlider-801685f8.js} +160 -115
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueLanding.js +6 -6
- package/dist/esm/LeftNav.js +1 -1
- package/dist/esm/MasterDeck.js +4 -4
- package/dist/esm/MasterDeckPaginated.js +3 -3
- package/dist/esm/MediaSeriesCard.js +4 -4
- package/dist/esm/MediaSeriesLanding.js +9 -9
- package/dist/esm/MediaSeriesLandingPaginated.js +9 -9
- package/dist/esm/NavMagazine.js +2 -2
- package/dist/esm/NavNative.js +1 -1
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/Pagination-9fe9f61d.js +1 -1
- package/dist/esm/PartnerDetailListing.js +7 -8
- package/dist/esm/PartnerDetailListingPaginated.js +7 -8
- package/dist/esm/PodcastsLanding.js +7 -7
- package/dist/esm/PtceDeck.js +1 -1
- package/dist/esm/PubSection.js +4 -4
- package/dist/esm/QueueDeckExpanded.js +4 -4
- package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
- package/dist/esm/RelatedContent.js +1 -1
- package/dist/esm/SeriesListingDeck.js +2 -2
- package/dist/esm/{SeriesSlider-acbdf4c9.js → SeriesSlider-5757414b.js} +1 -1
- package/dist/esm/{SocialSearchComponent-9e65c8d6.js → SocialSearchComponent-98bfc990.js} +1 -1
- package/dist/esm/TaxonomyDescription.js +4 -4
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/{Tooltip-2cdd0895.js → Tooltip-0b3b4558.js} +290 -235
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +4 -4
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +4 -4
- package/dist/esm/VideoSeriesListing.js +2 -2
- package/dist/esm/View.js +5 -7
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-a2422c4b.js} +3 -3
- package/dist/esm/getRelatedArticle.js +23 -5
- package/dist/esm/getSerializers.js +4 -4
- package/dist/esm/{index-98ca9cec.js → index-0ce54f8a.js} +10 -25
- package/dist/esm/index-887c1f5e.js +1571 -0
- package/dist/esm/{index-cf4b8124.js → index-fcb8d351.js} +234 -15
- package/dist/esm/index.js +11 -12
- package/dist/esm/{main-754d4992.js → main-dde1592e.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-48faeb9c.js} +95 -80
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/visibility-sensor-72fd8f8b.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/defineProperty-19580e93.js +0 -71
- package/dist/cjs/index-96c331fd.js +0 -1572
- package/dist/esm/defineProperty-e8022d1e.js +0 -66
- package/dist/esm/index-30a6257d.js +0 -1570
package/dist/cjs/AuthWrapper.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var slicedToArray$1 = require('./slicedToArray-067dd3bc.js');
|
|
4
4
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
5
|
-
var defineProperty = require('./defineProperty-19580e93.js');
|
|
6
5
|
var React = require('react');
|
|
7
6
|
var reactBootstrap = require('react-bootstrap');
|
|
8
7
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
@@ -19,7 +18,6 @@ function _interopRequireDefault(obj) {
|
|
|
19
18
|
"default": obj
|
|
20
19
|
};
|
|
21
20
|
}
|
|
22
|
-
|
|
23
21
|
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
24
22
|
});
|
|
25
23
|
|
|
@@ -35,277 +33,122 @@ function _typeof(obj) {
|
|
|
35
33
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
36
34
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
37
35
|
}
|
|
38
|
-
|
|
39
36
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
40
37
|
});
|
|
41
38
|
|
|
42
39
|
_commonjsHelpers.unwrapExports(_typeof_1);
|
|
43
40
|
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
61
|
-
|
|
41
|
+
var regeneratorRuntime$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
42
|
+
var _typeof = _typeof_1["default"];
|
|
43
|
+
function _regeneratorRuntime() {
|
|
44
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
45
|
+
return exports;
|
|
46
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
47
|
+
var exports = {},
|
|
48
|
+
Op = Object.prototype,
|
|
49
|
+
hasOwn = Op.hasOwnProperty,
|
|
50
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
51
|
+
obj[key] = desc.value;
|
|
52
|
+
},
|
|
53
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
54
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
55
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
56
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
62
57
|
function define(obj, key, value) {
|
|
63
|
-
Object.defineProperty(obj, key, {
|
|
58
|
+
return Object.defineProperty(obj, key, {
|
|
64
59
|
value: value,
|
|
65
|
-
enumerable:
|
|
66
|
-
configurable:
|
|
67
|
-
writable:
|
|
68
|
-
});
|
|
69
|
-
return obj[key];
|
|
60
|
+
enumerable: !0,
|
|
61
|
+
configurable: !0,
|
|
62
|
+
writable: !0
|
|
63
|
+
}), obj[key];
|
|
70
64
|
}
|
|
71
65
|
try {
|
|
72
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
73
66
|
define({}, "");
|
|
74
67
|
} catch (err) {
|
|
75
|
-
define = function(obj, key, value) {
|
|
68
|
+
define = function define(obj, key, value) {
|
|
76
69
|
return obj[key] = value;
|
|
77
70
|
};
|
|
78
71
|
}
|
|
79
|
-
|
|
80
72
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
// .throw, and .return methods.
|
|
88
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
89
|
-
|
|
90
|
-
return generator;
|
|
73
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
74
|
+
generator = Object.create(protoGenerator.prototype),
|
|
75
|
+
context = new Context(tryLocsList || []);
|
|
76
|
+
return defineProperty(generator, "_invoke", {
|
|
77
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
78
|
+
}), generator;
|
|
91
79
|
}
|
|
92
|
-
exports.wrap = wrap;
|
|
93
|
-
|
|
94
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
95
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
96
|
-
// have been (and was previously) designed to take a closure to be
|
|
97
|
-
// invoked without arguments, but in all the cases we care about we
|
|
98
|
-
// already have an existing method we want to call, so there's no need
|
|
99
|
-
// to create a new function object. We can even get away with assuming
|
|
100
|
-
// the method takes exactly one argument, since that happens to be true
|
|
101
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
102
|
-
// only additional allocation required is the completion record, which
|
|
103
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
104
80
|
function tryCatch(fn, obj, arg) {
|
|
105
81
|
try {
|
|
106
|
-
return {
|
|
82
|
+
return {
|
|
83
|
+
type: "normal",
|
|
84
|
+
arg: fn.call(obj, arg)
|
|
85
|
+
};
|
|
107
86
|
} catch (err) {
|
|
108
|
-
return {
|
|
87
|
+
return {
|
|
88
|
+
type: "throw",
|
|
89
|
+
arg: err
|
|
90
|
+
};
|
|
109
91
|
}
|
|
110
92
|
}
|
|
111
|
-
|
|
112
|
-
var GenStateSuspendedStart = "suspendedStart";
|
|
113
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
114
|
-
var GenStateExecuting = "executing";
|
|
115
|
-
var GenStateCompleted = "completed";
|
|
116
|
-
|
|
117
|
-
// Returning this object from the innerFn has the same effect as
|
|
118
|
-
// breaking out of the dispatch switch statement.
|
|
93
|
+
exports.wrap = wrap;
|
|
119
94
|
var ContinueSentinel = {};
|
|
120
|
-
|
|
121
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
122
|
-
// .constructor.prototype properties for functions that return Generator
|
|
123
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
124
|
-
// minifier not to mangle the names of these two functions.
|
|
125
95
|
function Generator() {}
|
|
126
96
|
function GeneratorFunction() {}
|
|
127
97
|
function GeneratorFunctionPrototype() {}
|
|
128
|
-
|
|
129
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
|
130
|
-
// don't natively support it.
|
|
131
98
|
var IteratorPrototype = {};
|
|
132
99
|
define(IteratorPrototype, iteratorSymbol, function () {
|
|
133
100
|
return this;
|
|
134
101
|
});
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
NativeIteratorPrototype !== Op &&
|
|
140
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
141
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
142
|
-
// of the polyfill.
|
|
143
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
147
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
148
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
149
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
150
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
151
|
-
GeneratorFunction.displayName = define(
|
|
152
|
-
GeneratorFunctionPrototype,
|
|
153
|
-
toStringTagSymbol,
|
|
154
|
-
"GeneratorFunction"
|
|
155
|
-
);
|
|
156
|
-
|
|
157
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
158
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
102
|
+
var getProto = Object.getPrototypeOf,
|
|
103
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
104
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
105
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
159
106
|
function defineIteratorMethods(prototype) {
|
|
160
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
161
|
-
define(prototype, method, function(arg) {
|
|
107
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
108
|
+
define(prototype, method, function (arg) {
|
|
162
109
|
return this._invoke(method, arg);
|
|
163
110
|
});
|
|
164
111
|
});
|
|
165
112
|
}
|
|
166
|
-
|
|
167
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
168
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
169
|
-
return ctor
|
|
170
|
-
? ctor === GeneratorFunction ||
|
|
171
|
-
// For the native GeneratorFunction constructor, the best we can
|
|
172
|
-
// do is to check its .name property.
|
|
173
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
174
|
-
: false;
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
exports.mark = function(genFun) {
|
|
178
|
-
if (Object.setPrototypeOf) {
|
|
179
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
180
|
-
} else {
|
|
181
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
182
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
183
|
-
}
|
|
184
|
-
genFun.prototype = Object.create(Gp);
|
|
185
|
-
return genFun;
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
// Within the body of any async function, `await x` is transformed to
|
|
189
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
190
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
191
|
-
// meant to be awaited.
|
|
192
|
-
exports.awrap = function(arg) {
|
|
193
|
-
return { __await: arg };
|
|
194
|
-
};
|
|
195
|
-
|
|
196
113
|
function AsyncIterator(generator, PromiseImpl) {
|
|
197
114
|
function invoke(method, arg, resolve, reject) {
|
|
198
115
|
var record = tryCatch(generator[method], generator, arg);
|
|
199
|
-
if (record.type
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}, function(err) {
|
|
210
|
-
invoke("throw", err, resolve, reject);
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
215
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
216
|
-
// the .value of the Promise<{value,done}> result for the
|
|
217
|
-
// current iteration.
|
|
218
|
-
result.value = unwrapped;
|
|
219
|
-
resolve(result);
|
|
220
|
-
}, function(error) {
|
|
221
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
222
|
-
// into the async generator function so it can be handled there.
|
|
116
|
+
if ("throw" !== record.type) {
|
|
117
|
+
var result = record.arg,
|
|
118
|
+
value = result.value;
|
|
119
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
120
|
+
invoke("next", value, resolve, reject);
|
|
121
|
+
}, function (err) {
|
|
122
|
+
invoke("throw", err, resolve, reject);
|
|
123
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
124
|
+
result.value = unwrapped, resolve(result);
|
|
125
|
+
}, function (error) {
|
|
223
126
|
return invoke("throw", error, resolve, reject);
|
|
224
127
|
});
|
|
225
128
|
}
|
|
129
|
+
reject(record.arg);
|
|
226
130
|
}
|
|
227
|
-
|
|
228
131
|
var previousPromise;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
132
|
+
defineProperty(this, "_invoke", {
|
|
133
|
+
value: function value(method, arg) {
|
|
134
|
+
function callInvokeWithMethodAndArg() {
|
|
135
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
136
|
+
invoke(method, arg, resolve, reject);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
235
140
|
}
|
|
236
|
-
|
|
237
|
-
return previousPromise =
|
|
238
|
-
// If enqueue has been called before, then we want to wait until
|
|
239
|
-
// all previous Promises have been resolved before calling invoke,
|
|
240
|
-
// so that results are always delivered in the correct order. If
|
|
241
|
-
// enqueue has not been called before, then it is important to
|
|
242
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
243
|
-
// so that the async generator function has the opportunity to do
|
|
244
|
-
// any necessary setup in a predictable way. This predictability
|
|
245
|
-
// is why the Promise constructor synchronously invokes its
|
|
246
|
-
// executor callback, and why async functions synchronously
|
|
247
|
-
// execute code before the first await. Since we implement simple
|
|
248
|
-
// async functions in terms of async generators, it is especially
|
|
249
|
-
// important to get this right, even though it requires care.
|
|
250
|
-
previousPromise ? previousPromise.then(
|
|
251
|
-
callInvokeWithMethodAndArg,
|
|
252
|
-
// Avoid propagating failures to Promises returned by later
|
|
253
|
-
// invocations of the iterator.
|
|
254
|
-
callInvokeWithMethodAndArg
|
|
255
|
-
) : callInvokeWithMethodAndArg();
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// Define the unified helper method that is used to implement .next,
|
|
259
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
260
|
-
this._invoke = enqueue;
|
|
141
|
+
});
|
|
261
142
|
}
|
|
262
|
-
|
|
263
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
264
|
-
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
265
|
-
return this;
|
|
266
|
-
});
|
|
267
|
-
exports.AsyncIterator = AsyncIterator;
|
|
268
|
-
|
|
269
|
-
// Note that simple async functions are implemented on top of
|
|
270
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
271
|
-
// the final result produced by the iterator.
|
|
272
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
273
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
274
|
-
|
|
275
|
-
var iter = new AsyncIterator(
|
|
276
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
277
|
-
PromiseImpl
|
|
278
|
-
);
|
|
279
|
-
|
|
280
|
-
return exports.isGeneratorFunction(outerFn)
|
|
281
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
282
|
-
: iter.next().then(function(result) {
|
|
283
|
-
return result.done ? result.value : iter.next();
|
|
284
|
-
});
|
|
285
|
-
};
|
|
286
|
-
|
|
287
143
|
function makeInvokeMethod(innerFn, self, context) {
|
|
288
|
-
var state =
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
if (
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
if (state === GenStateCompleted) {
|
|
296
|
-
if (method === "throw") {
|
|
297
|
-
throw arg;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
301
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
144
|
+
var state = "suspendedStart";
|
|
145
|
+
return function (method, arg) {
|
|
146
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
147
|
+
if ("completed" === state) {
|
|
148
|
+
if ("throw" === method) throw arg;
|
|
302
149
|
return doneResult();
|
|
303
150
|
}
|
|
304
|
-
|
|
305
|
-
context.method = method;
|
|
306
|
-
context.arg = arg;
|
|
307
|
-
|
|
308
|
-
while (true) {
|
|
151
|
+
for (context.method = method, context.arg = arg;;) {
|
|
309
152
|
var delegate = context.delegate;
|
|
310
153
|
if (delegate) {
|
|
311
154
|
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
@@ -314,496 +157,281 @@ var runtime = (function (exports) {
|
|
|
314
157
|
return delegateResult;
|
|
315
158
|
}
|
|
316
159
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
// Setting context._sent for legacy support of Babel's
|
|
320
|
-
// function.sent implementation.
|
|
321
|
-
context.sent = context._sent = context.arg;
|
|
322
|
-
|
|
323
|
-
} else if (context.method === "throw") {
|
|
324
|
-
if (state === GenStateSuspendedStart) {
|
|
325
|
-
state = GenStateCompleted;
|
|
326
|
-
throw context.arg;
|
|
327
|
-
}
|
|
328
|
-
|
|
160
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
161
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
329
162
|
context.dispatchException(context.arg);
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
context.abrupt("return", context.arg);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
state = GenStateExecuting;
|
|
336
|
-
|
|
163
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
164
|
+
state = "executing";
|
|
337
165
|
var record = tryCatch(innerFn, self, context);
|
|
338
|
-
if (record.type
|
|
339
|
-
|
|
340
|
-
// GenStateExecuting and loop back for another invocation.
|
|
341
|
-
state = context.done
|
|
342
|
-
? GenStateCompleted
|
|
343
|
-
: GenStateSuspendedYield;
|
|
344
|
-
|
|
345
|
-
if (record.arg === ContinueSentinel) {
|
|
346
|
-
continue;
|
|
347
|
-
}
|
|
348
|
-
|
|
166
|
+
if ("normal" === record.type) {
|
|
167
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
349
168
|
return {
|
|
350
169
|
value: record.arg,
|
|
351
170
|
done: context.done
|
|
352
171
|
};
|
|
353
|
-
|
|
354
|
-
} else if (record.type === "throw") {
|
|
355
|
-
state = GenStateCompleted;
|
|
356
|
-
// Dispatch the exception by looping back around to the
|
|
357
|
-
// context.dispatchException(context.arg) call above.
|
|
358
|
-
context.method = "throw";
|
|
359
|
-
context.arg = record.arg;
|
|
360
172
|
}
|
|
173
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
361
174
|
}
|
|
362
175
|
};
|
|
363
176
|
}
|
|
364
|
-
|
|
365
|
-
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
366
|
-
// result, either by returning a { value, done } result from the
|
|
367
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
|
368
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
369
177
|
function maybeInvokeDelegate(delegate, context) {
|
|
370
178
|
var method = delegate.iterator[context.method];
|
|
371
|
-
if (
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
if (context.method === "throw") {
|
|
377
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
378
|
-
if (delegate.iterator["return"]) {
|
|
379
|
-
// If the delegate iterator has a return method, give it a
|
|
380
|
-
// chance to clean up.
|
|
381
|
-
context.method = "return";
|
|
382
|
-
context.arg = undefined$1;
|
|
383
|
-
maybeInvokeDelegate(delegate, context);
|
|
384
|
-
|
|
385
|
-
if (context.method === "throw") {
|
|
386
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
387
|
-
// "return" to "throw", let that override the TypeError below.
|
|
388
|
-
return ContinueSentinel;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
context.method = "throw";
|
|
393
|
-
context.arg = new TypeError(
|
|
394
|
-
"The iterator does not provide a 'throw' method");
|
|
179
|
+
if (undefined === method) {
|
|
180
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
181
|
+
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
182
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
395
183
|
}
|
|
396
|
-
|
|
397
184
|
return ContinueSentinel;
|
|
398
185
|
}
|
|
399
|
-
|
|
400
186
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
401
|
-
|
|
402
|
-
if (record.type === "throw") {
|
|
403
|
-
context.method = "throw";
|
|
404
|
-
context.arg = record.arg;
|
|
405
|
-
context.delegate = null;
|
|
406
|
-
return ContinueSentinel;
|
|
407
|
-
}
|
|
408
|
-
|
|
187
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
409
188
|
var info = record.arg;
|
|
410
|
-
|
|
411
|
-
if (! info) {
|
|
412
|
-
context.method = "throw";
|
|
413
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
414
|
-
context.delegate = null;
|
|
415
|
-
return ContinueSentinel;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
if (info.done) {
|
|
419
|
-
// Assign the result of the finished delegate to the temporary
|
|
420
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
421
|
-
context[delegate.resultName] = info.value;
|
|
422
|
-
|
|
423
|
-
// Resume execution at the desired location (see delegateYield).
|
|
424
|
-
context.next = delegate.nextLoc;
|
|
425
|
-
|
|
426
|
-
// If context.method was "throw" but the delegate handled the
|
|
427
|
-
// exception, let the outer generator proceed normally. If
|
|
428
|
-
// context.method was "next", forget context.arg since it has been
|
|
429
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
430
|
-
// "return", allow the original .return call to continue in the
|
|
431
|
-
// outer generator.
|
|
432
|
-
if (context.method !== "return") {
|
|
433
|
-
context.method = "next";
|
|
434
|
-
context.arg = undefined$1;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
} else {
|
|
438
|
-
// Re-yield the result returned by the delegate method.
|
|
439
|
-
return info;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
443
|
-
// the outer generator.
|
|
444
|
-
context.delegate = null;
|
|
445
|
-
return ContinueSentinel;
|
|
189
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
446
190
|
}
|
|
447
|
-
|
|
448
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
449
|
-
// unified ._invoke helper method.
|
|
450
|
-
defineIteratorMethods(Gp);
|
|
451
|
-
|
|
452
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
453
|
-
|
|
454
|
-
// A Generator should always return itself as the iterator object when the
|
|
455
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
456
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
457
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
458
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
459
|
-
define(Gp, iteratorSymbol, function() {
|
|
460
|
-
return this;
|
|
461
|
-
});
|
|
462
|
-
|
|
463
|
-
define(Gp, "toString", function() {
|
|
464
|
-
return "[object Generator]";
|
|
465
|
-
});
|
|
466
|
-
|
|
467
191
|
function pushTryEntry(locs) {
|
|
468
|
-
var entry = {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
if (2 in locs) {
|
|
475
|
-
entry.finallyLoc = locs[2];
|
|
476
|
-
entry.afterLoc = locs[3];
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
this.tryEntries.push(entry);
|
|
192
|
+
var entry = {
|
|
193
|
+
tryLoc: locs[0]
|
|
194
|
+
};
|
|
195
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
480
196
|
}
|
|
481
|
-
|
|
482
197
|
function resetTryEntry(entry) {
|
|
483
198
|
var record = entry.completion || {};
|
|
484
|
-
record.type = "normal";
|
|
485
|
-
delete record.arg;
|
|
486
|
-
entry.completion = record;
|
|
199
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
487
200
|
}
|
|
488
|
-
|
|
489
201
|
function Context(tryLocsList) {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
494
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
495
|
-
this.reset(true);
|
|
202
|
+
this.tryEntries = [{
|
|
203
|
+
tryLoc: "root"
|
|
204
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
496
205
|
}
|
|
497
|
-
|
|
498
|
-
exports.keys = function(object) {
|
|
499
|
-
var keys = [];
|
|
500
|
-
for (var key in object) {
|
|
501
|
-
keys.push(key);
|
|
502
|
-
}
|
|
503
|
-
keys.reverse();
|
|
504
|
-
|
|
505
|
-
// Rather than returning an object with a next method, we keep
|
|
506
|
-
// things simple and return the next function itself.
|
|
507
|
-
return function next() {
|
|
508
|
-
while (keys.length) {
|
|
509
|
-
var key = keys.pop();
|
|
510
|
-
if (key in object) {
|
|
511
|
-
next.value = key;
|
|
512
|
-
next.done = false;
|
|
513
|
-
return next;
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
// To avoid creating an additional object, we just hang the .value
|
|
518
|
-
// and .done properties off the next function object itself. This
|
|
519
|
-
// also ensures that the minifier will not anonymize the function.
|
|
520
|
-
next.done = true;
|
|
521
|
-
return next;
|
|
522
|
-
};
|
|
523
|
-
};
|
|
524
|
-
|
|
525
206
|
function values(iterable) {
|
|
526
207
|
if (iterable) {
|
|
527
208
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
528
|
-
if (iteratorMethod)
|
|
529
|
-
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
if (typeof iterable.next === "function") {
|
|
533
|
-
return iterable;
|
|
534
|
-
}
|
|
535
|
-
|
|
209
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
210
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
536
211
|
if (!isNaN(iterable.length)) {
|
|
537
|
-
var i = -1,
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
next.value = iterable[i];
|
|
541
|
-
next.done = false;
|
|
542
|
-
return next;
|
|
212
|
+
var i = -1,
|
|
213
|
+
next = function next() {
|
|
214
|
+
for (; ++i < iterable.length;) {
|
|
215
|
+
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
543
216
|
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
next.value = undefined$1;
|
|
547
|
-
next.done = true;
|
|
548
|
-
|
|
549
|
-
return next;
|
|
550
|
-
};
|
|
551
|
-
|
|
217
|
+
return next.value = undefined, next.done = !0, next;
|
|
218
|
+
};
|
|
552
219
|
return next.next = next;
|
|
553
220
|
}
|
|
554
221
|
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
222
|
+
return {
|
|
223
|
+
next: doneResult
|
|
224
|
+
};
|
|
558
225
|
}
|
|
559
|
-
exports.values = values;
|
|
560
|
-
|
|
561
226
|
function doneResult() {
|
|
562
|
-
return {
|
|
227
|
+
return {
|
|
228
|
+
value: undefined,
|
|
229
|
+
done: !0
|
|
230
|
+
};
|
|
563
231
|
}
|
|
564
|
-
|
|
565
|
-
|
|
232
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
233
|
+
value: GeneratorFunctionPrototype,
|
|
234
|
+
configurable: !0
|
|
235
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
236
|
+
value: GeneratorFunction,
|
|
237
|
+
configurable: !0
|
|
238
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
239
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
240
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
241
|
+
}, exports.mark = function (genFun) {
|
|
242
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
243
|
+
}, exports.awrap = function (arg) {
|
|
244
|
+
return {
|
|
245
|
+
__await: arg
|
|
246
|
+
};
|
|
247
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
248
|
+
return this;
|
|
249
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
250
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
251
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
252
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
253
|
+
return result.done ? result.value : iter.next();
|
|
254
|
+
});
|
|
255
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
256
|
+
return this;
|
|
257
|
+
}), define(Gp, "toString", function () {
|
|
258
|
+
return "[object Generator]";
|
|
259
|
+
}), exports.keys = function (val) {
|
|
260
|
+
var object = Object(val),
|
|
261
|
+
keys = [];
|
|
262
|
+
for (var key in object) {
|
|
263
|
+
keys.push(key);
|
|
264
|
+
}
|
|
265
|
+
return keys.reverse(), function next() {
|
|
266
|
+
for (; keys.length;) {
|
|
267
|
+
var key = keys.pop();
|
|
268
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
269
|
+
}
|
|
270
|
+
return next.done = !0, next;
|
|
271
|
+
};
|
|
272
|
+
}, exports.values = values, Context.prototype = {
|
|
566
273
|
constructor: Context,
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
this.next = 0;
|
|
571
|
-
// Resetting context._sent for legacy support of Babel's
|
|
572
|
-
// function.sent implementation.
|
|
573
|
-
this.sent = this._sent = undefined$1;
|
|
574
|
-
this.done = false;
|
|
575
|
-
this.delegate = null;
|
|
576
|
-
|
|
577
|
-
this.method = "next";
|
|
578
|
-
this.arg = undefined$1;
|
|
579
|
-
|
|
580
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
581
|
-
|
|
582
|
-
if (!skipTempReset) {
|
|
583
|
-
for (var name in this) {
|
|
584
|
-
// Not sure about the optimal order of these conditions:
|
|
585
|
-
if (name.charAt(0) === "t" &&
|
|
586
|
-
hasOwn.call(this, name) &&
|
|
587
|
-
!isNaN(+name.slice(1))) {
|
|
588
|
-
this[name] = undefined$1;
|
|
589
|
-
}
|
|
590
|
-
}
|
|
274
|
+
reset: function reset(skipTempReset) {
|
|
275
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
|
|
276
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
591
277
|
}
|
|
592
278
|
},
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
var rootEntry = this.tryEntries[0];
|
|
598
|
-
var rootRecord = rootEntry.completion;
|
|
599
|
-
if (rootRecord.type === "throw") {
|
|
600
|
-
throw rootRecord.arg;
|
|
601
|
-
}
|
|
602
|
-
|
|
279
|
+
stop: function stop() {
|
|
280
|
+
this.done = !0;
|
|
281
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
282
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
603
283
|
return this.rval;
|
|
604
284
|
},
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
if (this.done) {
|
|
608
|
-
throw exception;
|
|
609
|
-
}
|
|
610
|
-
|
|
285
|
+
dispatchException: function dispatchException(exception) {
|
|
286
|
+
if (this.done) throw exception;
|
|
611
287
|
var context = this;
|
|
612
288
|
function handle(loc, caught) {
|
|
613
|
-
record.type = "throw";
|
|
614
|
-
record.arg = exception;
|
|
615
|
-
context.next = loc;
|
|
616
|
-
|
|
617
|
-
if (caught) {
|
|
618
|
-
// If the dispatched exception was caught by a catch block,
|
|
619
|
-
// then let that catch block handle the exception normally.
|
|
620
|
-
context.method = "next";
|
|
621
|
-
context.arg = undefined$1;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
return !! caught;
|
|
289
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
625
290
|
}
|
|
626
|
-
|
|
627
291
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
628
|
-
var entry = this.tryEntries[i]
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
if (entry.tryLoc === "root") {
|
|
632
|
-
// Exception thrown outside of any try block that could handle
|
|
633
|
-
// it, so set the completion value of the entire function to
|
|
634
|
-
// throw the exception.
|
|
635
|
-
return handle("end");
|
|
636
|
-
}
|
|
637
|
-
|
|
292
|
+
var entry = this.tryEntries[i],
|
|
293
|
+
record = entry.completion;
|
|
294
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
638
295
|
if (entry.tryLoc <= this.prev) {
|
|
639
|
-
var hasCatch = hasOwn.call(entry, "catchLoc")
|
|
640
|
-
|
|
641
|
-
|
|
296
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
297
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
642
298
|
if (hasCatch && hasFinally) {
|
|
643
|
-
if (this.prev < entry.catchLoc)
|
|
644
|
-
|
|
645
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
646
|
-
return handle(entry.finallyLoc);
|
|
647
|
-
}
|
|
648
|
-
|
|
299
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
300
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
649
301
|
} else if (hasCatch) {
|
|
650
|
-
if (this.prev < entry.catchLoc)
|
|
651
|
-
return handle(entry.catchLoc, true);
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
} else if (hasFinally) {
|
|
655
|
-
if (this.prev < entry.finallyLoc) {
|
|
656
|
-
return handle(entry.finallyLoc);
|
|
657
|
-
}
|
|
658
|
-
|
|
302
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
659
303
|
} else {
|
|
660
|
-
throw new Error("try statement without catch or finally");
|
|
304
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
305
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
661
306
|
}
|
|
662
307
|
}
|
|
663
308
|
}
|
|
664
309
|
},
|
|
665
|
-
|
|
666
|
-
abrupt: function(type, arg) {
|
|
310
|
+
abrupt: function abrupt(type, arg) {
|
|
667
311
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
668
312
|
var entry = this.tryEntries[i];
|
|
669
|
-
if (entry.tryLoc <= this.prev &&
|
|
670
|
-
hasOwn.call(entry, "finallyLoc") &&
|
|
671
|
-
this.prev < entry.finallyLoc) {
|
|
313
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
672
314
|
var finallyEntry = entry;
|
|
673
315
|
break;
|
|
674
316
|
}
|
|
675
317
|
}
|
|
676
|
-
|
|
677
|
-
if (finallyEntry &&
|
|
678
|
-
(type === "break" ||
|
|
679
|
-
type === "continue") &&
|
|
680
|
-
finallyEntry.tryLoc <= arg &&
|
|
681
|
-
arg <= finallyEntry.finallyLoc) {
|
|
682
|
-
// Ignore the finally entry if control is not jumping to a
|
|
683
|
-
// location outside the try/catch block.
|
|
684
|
-
finallyEntry = null;
|
|
685
|
-
}
|
|
686
|
-
|
|
318
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
687
319
|
var record = finallyEntry ? finallyEntry.completion : {};
|
|
688
|
-
record.type = type;
|
|
689
|
-
record.arg = arg;
|
|
690
|
-
|
|
691
|
-
if (finallyEntry) {
|
|
692
|
-
this.method = "next";
|
|
693
|
-
this.next = finallyEntry.finallyLoc;
|
|
694
|
-
return ContinueSentinel;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
return this.complete(record);
|
|
320
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
698
321
|
},
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
throw record.arg;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
if (record.type === "break" ||
|
|
706
|
-
record.type === "continue") {
|
|
707
|
-
this.next = record.arg;
|
|
708
|
-
} else if (record.type === "return") {
|
|
709
|
-
this.rval = this.arg = record.arg;
|
|
710
|
-
this.method = "return";
|
|
711
|
-
this.next = "end";
|
|
712
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
713
|
-
this.next = afterLoc;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
return ContinueSentinel;
|
|
322
|
+
complete: function complete(record, afterLoc) {
|
|
323
|
+
if ("throw" === record.type) throw record.arg;
|
|
324
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
717
325
|
},
|
|
718
|
-
|
|
719
|
-
finish: function(finallyLoc) {
|
|
326
|
+
finish: function finish(finallyLoc) {
|
|
720
327
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
721
328
|
var entry = this.tryEntries[i];
|
|
722
|
-
if (entry.finallyLoc === finallyLoc)
|
|
723
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
724
|
-
resetTryEntry(entry);
|
|
725
|
-
return ContinueSentinel;
|
|
726
|
-
}
|
|
329
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
727
330
|
}
|
|
728
331
|
},
|
|
729
|
-
|
|
730
|
-
"catch": function(tryLoc) {
|
|
332
|
+
"catch": function _catch(tryLoc) {
|
|
731
333
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
732
334
|
var entry = this.tryEntries[i];
|
|
733
335
|
if (entry.tryLoc === tryLoc) {
|
|
734
336
|
var record = entry.completion;
|
|
735
|
-
if (record.type
|
|
337
|
+
if ("throw" === record.type) {
|
|
736
338
|
var thrown = record.arg;
|
|
737
339
|
resetTryEntry(entry);
|
|
738
340
|
}
|
|
739
341
|
return thrown;
|
|
740
342
|
}
|
|
741
343
|
}
|
|
742
|
-
|
|
743
|
-
// The context.catch method must only be called with a location
|
|
744
|
-
// argument that corresponds to a known catch block.
|
|
745
344
|
throw new Error("illegal catch attempt");
|
|
746
345
|
},
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
this.delegate = {
|
|
346
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
347
|
+
return this.delegate = {
|
|
750
348
|
iterator: values(iterable),
|
|
751
349
|
resultName: resultName,
|
|
752
350
|
nextLoc: nextLoc
|
|
753
|
-
};
|
|
754
|
-
|
|
755
|
-
if (this.method === "next") {
|
|
756
|
-
// Deliberately forget the last sent value so that we don't
|
|
757
|
-
// accidentally pass it on to the delegate.
|
|
758
|
-
this.arg = undefined$1;
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
return ContinueSentinel;
|
|
351
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
762
352
|
}
|
|
763
|
-
};
|
|
353
|
+
}, exports;
|
|
354
|
+
}
|
|
355
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
_commonjsHelpers.unwrapExports(regeneratorRuntime$1);
|
|
764
359
|
|
|
765
|
-
|
|
766
|
-
// or not, return the runtime object so that we can declare the variable
|
|
767
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
768
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
769
|
-
return exports;
|
|
360
|
+
// TODO(Babel 8): Remove this file.
|
|
770
361
|
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
774
|
-
// object. Either way, the resulting object will be used to initialize
|
|
775
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
776
|
-
module.exports
|
|
777
|
-
));
|
|
362
|
+
var runtime = regeneratorRuntime$1();
|
|
363
|
+
var regenerator = runtime;
|
|
778
364
|
|
|
365
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
779
366
|
try {
|
|
780
367
|
regeneratorRuntime = runtime;
|
|
781
368
|
} catch (accidentalStrictMode) {
|
|
782
|
-
// This module should not be running in strict mode, so the above
|
|
783
|
-
// assignment should always work unless something is misconfigured. Just
|
|
784
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
785
|
-
// we can explicitly access globalThis. In older engines we can escape
|
|
786
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
787
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
788
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
789
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
790
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
791
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
792
369
|
if (typeof globalThis === "object") {
|
|
793
370
|
globalThis.regeneratorRuntime = runtime;
|
|
794
371
|
} else {
|
|
795
372
|
Function("r", "regeneratorRuntime = r")(runtime);
|
|
796
373
|
}
|
|
797
374
|
}
|
|
375
|
+
|
|
376
|
+
var defineProperty = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
377
|
+
function _defineProperty(obj, key, value) {
|
|
378
|
+
if (key in obj) {
|
|
379
|
+
Object.defineProperty(obj, key, {
|
|
380
|
+
value: value,
|
|
381
|
+
enumerable: true,
|
|
382
|
+
configurable: true,
|
|
383
|
+
writable: true
|
|
384
|
+
});
|
|
385
|
+
} else {
|
|
386
|
+
obj[key] = value;
|
|
387
|
+
}
|
|
388
|
+
return obj;
|
|
389
|
+
}
|
|
390
|
+
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
798
391
|
});
|
|
799
392
|
|
|
800
|
-
|
|
393
|
+
_commonjsHelpers.unwrapExports(defineProperty);
|
|
394
|
+
|
|
395
|
+
var asyncToGenerator = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
396
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
397
|
+
try {
|
|
398
|
+
var info = gen[key](arg);
|
|
399
|
+
var value = info.value;
|
|
400
|
+
} catch (error) {
|
|
401
|
+
reject(error);
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
if (info.done) {
|
|
405
|
+
resolve(value);
|
|
406
|
+
} else {
|
|
407
|
+
Promise.resolve(value).then(_next, _throw);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
function _asyncToGenerator(fn) {
|
|
411
|
+
return function () {
|
|
412
|
+
var self = this,
|
|
413
|
+
args = arguments;
|
|
414
|
+
return new Promise(function (resolve, reject) {
|
|
415
|
+
var gen = fn.apply(self, args);
|
|
416
|
+
function _next(value) {
|
|
417
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
418
|
+
}
|
|
419
|
+
function _throw(err) {
|
|
420
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
421
|
+
}
|
|
422
|
+
_next(undefined);
|
|
423
|
+
});
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
427
|
+
});
|
|
428
|
+
|
|
429
|
+
_commonjsHelpers.unwrapExports(asyncToGenerator);
|
|
801
430
|
|
|
802
431
|
var arrayWithHoles = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
803
432
|
function _arrayWithHoles(arr) {
|
|
804
433
|
if (Array.isArray(arr)) return arr;
|
|
805
434
|
}
|
|
806
|
-
|
|
807
435
|
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
808
436
|
});
|
|
809
437
|
|
|
@@ -812,18 +440,14 @@ _commonjsHelpers.unwrapExports(arrayWithHoles);
|
|
|
812
440
|
var iterableToArrayLimit = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
813
441
|
function _iterableToArrayLimit(arr, i) {
|
|
814
442
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
815
|
-
|
|
816
443
|
if (_i == null) return;
|
|
817
444
|
var _arr = [];
|
|
818
445
|
var _n = true;
|
|
819
446
|
var _d = false;
|
|
820
|
-
|
|
821
447
|
var _s, _e;
|
|
822
|
-
|
|
823
448
|
try {
|
|
824
449
|
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
825
450
|
_arr.push(_s.value);
|
|
826
|
-
|
|
827
451
|
if (i && _arr.length === i) break;
|
|
828
452
|
}
|
|
829
453
|
} catch (err) {
|
|
@@ -836,10 +460,8 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
836
460
|
if (_d) throw _e;
|
|
837
461
|
}
|
|
838
462
|
}
|
|
839
|
-
|
|
840
463
|
return _arr;
|
|
841
464
|
}
|
|
842
|
-
|
|
843
465
|
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
844
466
|
});
|
|
845
467
|
|
|
@@ -848,14 +470,11 @@ _commonjsHelpers.unwrapExports(iterableToArrayLimit);
|
|
|
848
470
|
var arrayLikeToArray = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
849
471
|
function _arrayLikeToArray(arr, len) {
|
|
850
472
|
if (len == null || len > arr.length) len = arr.length;
|
|
851
|
-
|
|
852
473
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
853
474
|
arr2[i] = arr[i];
|
|
854
475
|
}
|
|
855
|
-
|
|
856
476
|
return arr2;
|
|
857
477
|
}
|
|
858
|
-
|
|
859
478
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
860
479
|
});
|
|
861
480
|
|
|
@@ -870,7 +489,6 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
870
489
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
871
490
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
|
872
491
|
}
|
|
873
|
-
|
|
874
492
|
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
875
493
|
});
|
|
876
494
|
|
|
@@ -880,7 +498,6 @@ var nonIterableRest = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
|
880
498
|
function _nonIterableRest() {
|
|
881
499
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
882
500
|
}
|
|
883
|
-
|
|
884
501
|
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
885
502
|
});
|
|
886
503
|
|
|
@@ -890,7 +507,6 @@ var slicedToArray = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
|
890
507
|
function _slicedToArray(arr, i) {
|
|
891
508
|
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
|
|
892
509
|
}
|
|
893
|
-
|
|
894
510
|
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
895
511
|
});
|
|
896
512
|
|
|
@@ -1035,9 +651,9 @@ exports.default = void 0;
|
|
|
1035
651
|
|
|
1036
652
|
var _regenerator = interopRequireDefault(regenerator);
|
|
1037
653
|
|
|
1038
|
-
var _defineProperty2 = interopRequireDefault(defineProperty
|
|
654
|
+
var _defineProperty2 = interopRequireDefault(defineProperty);
|
|
1039
655
|
|
|
1040
|
-
var _asyncToGenerator2 = interopRequireDefault(
|
|
656
|
+
var _asyncToGenerator2 = interopRequireDefault(asyncToGenerator);
|
|
1041
657
|
|
|
1042
658
|
var _slicedToArray2 = interopRequireDefault(slicedToArray);
|
|
1043
659
|
|