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