@ably/ui 11.7.0 → 11.7.1-dev.1344841
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 +7 -7
- package/core/Code/component.css +2 -0
- package/core/CompanyAutocomplete/component.js +2 -1
- package/core/CompanyAutocomplete/component.js.LICENSE.txt +1 -0
- package/core/ContactFooter.jsx +8 -8
- package/core/DropdownMenu.jsx +1 -1
- package/core/FeaturedLink/component.css +0 -15
- package/core/FeaturedLink/component.js +1 -1
- package/core/FeaturedLink.jsx +17 -6
- package/core/Flash/component.css +0 -4
- package/core/Flash.jsx +1 -1
- package/core/Footer/component.css +3 -3
- package/core/Footer.jsx +15 -15
- package/core/Meganav/component.css +6 -6
- package/core/Meganav.jsx +355 -759
- package/core/MeganavBlogPostsList/component.js +2 -1
- package/core/MeganavBlogPostsList/component.js.LICENSE.txt +1 -0
- package/core/MeganavBlogPostsList.jsx +17 -6
- package/core/MeganavContentCompany.jsx +312 -716
- package/core/MeganavContentDevelopers.jsx +1 -1
- package/core/MeganavContentProducts.jsx +18 -7
- package/core/MeganavItemsMobile.jsx +17 -6
- package/core/MeganavItemsSignedIn.jsx +17 -6
- package/core/MeganavSearch.jsx +17 -6
- package/core/MeganavSearchPanel.jsx +17 -6
- package/core/MeganavSearchSuggestions.jsx +17 -6
- package/core/Notice/component.js +1 -1
- package/core/Notice.jsx +4 -4
- package/core/Uptime/component.css +1 -1
- package/core/Uptime.jsx +307 -711
- package/core/fonts/jetBrains-mono.css +3 -0
- package/core/fonts/manrope.css +3 -0
- package/core/scripts.js +2 -1
- package/core/scripts.js.LICENSE.txt +1 -0
- package/core/styles.css +225 -115
- package/package.json +3 -3
- package/src/core/ContactFooter/component.html.erb +8 -8
- package/src/core/ContactFooter/component.jsx +8 -8
- package/src/core/DropdownMenu/component.jsx +1 -1
- package/src/core/FeatureFooter/component.html.erb +6 -6
- package/src/core/FeaturedLink/component.html.erb +14 -5
- package/src/core/FeaturedLink/component.js +0 -1
- package/src/core/FeaturedLink/component.jsx +27 -4
- package/src/core/FeaturedLink/component.rb +3 -1
- package/src/core/Flash/component.css +0 -4
- package/src/core/Flash/component.jsx +1 -1
- package/src/core/Footer/component.css +3 -3
- package/src/core/Footer/component.html.erb +14 -14
- package/src/core/Footer/component.jsx +15 -15
- package/src/core/Meganav/component.css +6 -6
- package/src/core/MeganavContentDevelopers/component.html.erb +1 -1
- package/src/core/MeganavContentDevelopers/component.jsx +1 -1
- package/src/core/MeganavContentProducts/component.html.erb +1 -1
- package/src/core/MeganavContentProducts/component.jsx +1 -1
- package/src/core/Notice/component.html.erb +3 -3
- package/src/core/Notice/component.jsx +3 -3
- package/src/core/Showcase/component.html.erb +7 -7
- package/src/core/Uptime/component.css +1 -1
- package/src/core/Uptime/component.jsx +1 -1
- package/src/core/fonts/jetBrains-mono.css +3 -0
- package/src/core/fonts/manrope.css +3 -0
- package/src/core/styles/buttons.css +5 -5
- package/src/core/styles/forms.css +5 -5
- package/src/core/styles/properties.css +153 -45
- package/src/core/styles/text.css +62 -60
- package/src/core/utils/syntax-highlighter.css +2 -0
- package/tailwind.config.js +179 -49
- package/src/core/FeaturedLink/component.css +0 -15
package/core/Uptime.jsx
CHANGED
|
@@ -11,14 +11,6 @@
|
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
-
/***/ 7757:
|
|
15
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
16
|
-
|
|
17
|
-
module.exports = __webpack_require__(5666);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/***/ }),
|
|
21
|
-
|
|
22
14
|
/***/ 5751:
|
|
23
15
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
24
16
|
|
|
@@ -38,24 +30,33 @@ module.exports = __webpack_require__(5666);
|
|
|
38
30
|
var FeaturedLink = function FeaturedLink(_ref) {
|
|
39
31
|
var url = _ref.url,
|
|
40
32
|
_ref$textSize = _ref.textSize,
|
|
41
|
-
textSize = _ref$textSize === void 0 ? "text-
|
|
33
|
+
textSize = _ref$textSize === void 0 ? "text-p2" : _ref$textSize,
|
|
42
34
|
_ref$iconColor = _ref.iconColor,
|
|
43
35
|
iconColor = _ref$iconColor === void 0 ? "text-cool-black" : _ref$iconColor,
|
|
44
36
|
_ref$flush = _ref.flush,
|
|
45
37
|
flush = _ref$flush === void 0 ? false : _ref$flush,
|
|
38
|
+
_ref$reverse = _ref.reverse,
|
|
39
|
+
reverse = _ref$reverse === void 0 ? false : _ref$reverse,
|
|
40
|
+
_ref$additionalCSS = _ref.additionalCSS,
|
|
41
|
+
additionalCSS = _ref$additionalCSS === void 0 ? "" : _ref$additionalCSS,
|
|
46
42
|
children = _ref.children;
|
|
47
43
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
48
44
|
href: url,
|
|
49
|
-
className: "
|
|
45
|
+
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
50
46
|
style: {
|
|
51
47
|
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
52
48
|
}
|
|
53
|
-
},
|
|
49
|
+
}, reverse ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
54
50
|
name: "icon-gui-link-arrow",
|
|
55
51
|
size: "calc(var(--featured-link-icon-size) * 1.25)",
|
|
56
52
|
color: iconColor,
|
|
57
|
-
additionalCSS: "
|
|
58
|
-
}))
|
|
53
|
+
additionalCSS: "align-middle mr-8 relative -top-1 -right-4 transition-all group-hover:right-0 transform rotate-180"
|
|
54
|
+
}), children) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
55
|
+
name: "icon-gui-link-arrow",
|
|
56
|
+
size: "calc(var(--featured-link-icon-size) * 1.25)",
|
|
57
|
+
color: iconColor,
|
|
58
|
+
additionalCSS: "align-middle ml-8 relative -top-1 -left-4 transition-all group-hover:left-0"
|
|
59
|
+
})));
|
|
59
60
|
};
|
|
60
61
|
|
|
61
62
|
FeaturedLink.propTypes = {
|
|
@@ -63,7 +64,9 @@ FeaturedLink.propTypes = {
|
|
|
63
64
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
|
64
65
|
textSize: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
65
66
|
iconColor: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
66
|
-
flush: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
|
|
67
|
+
flush: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
68
|
+
reverse: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
69
|
+
additionalCSS: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
67
70
|
};
|
|
68
71
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FeaturedLink);
|
|
69
72
|
|
|
@@ -122,774 +125,367 @@ Icon.propTypes = {
|
|
|
122
125
|
|
|
123
126
|
/***/ }),
|
|
124
127
|
|
|
125
|
-
/***/
|
|
128
|
+
/***/ 6073:
|
|
126
129
|
/***/ ((module) => {
|
|
127
130
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
131
|
+
"use strict";
|
|
132
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__6073__;
|
|
133
|
+
|
|
134
|
+
/***/ }),
|
|
135
|
+
|
|
136
|
+
/***/ 5225:
|
|
137
|
+
/***/ ((module) => {
|
|
138
|
+
|
|
139
|
+
"use strict";
|
|
140
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__5225__;
|
|
141
|
+
|
|
142
|
+
/***/ }),
|
|
143
|
+
|
|
144
|
+
/***/ 7061:
|
|
145
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
146
|
+
|
|
147
|
+
var _typeof = (__webpack_require__(8698)["default"]);
|
|
148
|
+
function _regeneratorRuntime() {
|
|
149
|
+
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
150
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
151
|
+
return e;
|
|
152
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
153
|
+
var t,
|
|
154
|
+
e = {},
|
|
155
|
+
r = Object.prototype,
|
|
156
|
+
n = r.hasOwnProperty,
|
|
157
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
158
|
+
t[e] = r.value;
|
|
159
|
+
},
|
|
160
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
161
|
+
a = i.iterator || "@@iterator",
|
|
162
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
163
|
+
u = i.toStringTag || "@@toStringTag";
|
|
164
|
+
function define(t, e, r) {
|
|
165
|
+
return Object.defineProperty(t, e, {
|
|
166
|
+
value: r,
|
|
167
|
+
enumerable: !0,
|
|
168
|
+
configurable: !0,
|
|
169
|
+
writable: !0
|
|
170
|
+
}), t[e];
|
|
154
171
|
}
|
|
155
172
|
try {
|
|
156
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
157
173
|
define({}, "");
|
|
158
|
-
} catch (
|
|
159
|
-
define = function(
|
|
160
|
-
return
|
|
174
|
+
} catch (t) {
|
|
175
|
+
define = function define(t, e, r) {
|
|
176
|
+
return t[e] = r;
|
|
161
177
|
};
|
|
162
178
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
// The ._invoke method unifies the implementations of the .next,
|
|
171
|
-
// .throw, and .return methods.
|
|
172
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
173
|
-
|
|
174
|
-
return generator;
|
|
179
|
+
function wrap(t, e, r, n) {
|
|
180
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
181
|
+
a = Object.create(i.prototype),
|
|
182
|
+
c = new Context(n || []);
|
|
183
|
+
return o(a, "_invoke", {
|
|
184
|
+
value: makeInvokeMethod(t, r, c)
|
|
185
|
+
}), a;
|
|
175
186
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
179
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
180
|
-
// have been (and was previously) designed to take a closure to be
|
|
181
|
-
// invoked without arguments, but in all the cases we care about we
|
|
182
|
-
// already have an existing method we want to call, so there's no need
|
|
183
|
-
// to create a new function object. We can even get away with assuming
|
|
184
|
-
// the method takes exactly one argument, since that happens to be true
|
|
185
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
186
|
-
// only additional allocation required is the completion record, which
|
|
187
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
188
|
-
function tryCatch(fn, obj, arg) {
|
|
187
|
+
function tryCatch(t, e, r) {
|
|
189
188
|
try {
|
|
190
|
-
return {
|
|
191
|
-
|
|
192
|
-
|
|
189
|
+
return {
|
|
190
|
+
type: "normal",
|
|
191
|
+
arg: t.call(e, r)
|
|
192
|
+
};
|
|
193
|
+
} catch (t) {
|
|
194
|
+
return {
|
|
195
|
+
type: "throw",
|
|
196
|
+
arg: t
|
|
197
|
+
};
|
|
193
198
|
}
|
|
194
199
|
}
|
|
195
|
-
|
|
196
|
-
var
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
// Returning this object from the innerFn has the same effect as
|
|
202
|
-
// breaking out of the dispatch switch statement.
|
|
203
|
-
var ContinueSentinel = {};
|
|
204
|
-
|
|
205
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
206
|
-
// .constructor.prototype properties for functions that return Generator
|
|
207
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
208
|
-
// minifier not to mangle the names of these two functions.
|
|
200
|
+
e.wrap = wrap;
|
|
201
|
+
var h = "suspendedStart",
|
|
202
|
+
l = "suspendedYield",
|
|
203
|
+
f = "executing",
|
|
204
|
+
s = "completed",
|
|
205
|
+
y = {};
|
|
209
206
|
function Generator() {}
|
|
210
207
|
function GeneratorFunction() {}
|
|
211
208
|
function GeneratorFunctionPrototype() {}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
// don't natively support it.
|
|
215
|
-
var IteratorPrototype = {};
|
|
216
|
-
IteratorPrototype[iteratorSymbol] = function () {
|
|
209
|
+
var p = {};
|
|
210
|
+
define(p, a, function () {
|
|
217
211
|
return this;
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
231
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
232
|
-
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
233
|
-
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
234
|
-
GeneratorFunction.displayName = define(
|
|
235
|
-
GeneratorFunctionPrototype,
|
|
236
|
-
toStringTagSymbol,
|
|
237
|
-
"GeneratorFunction"
|
|
238
|
-
);
|
|
239
|
-
|
|
240
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
241
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
242
|
-
function defineIteratorMethods(prototype) {
|
|
243
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
244
|
-
define(prototype, method, function(arg) {
|
|
245
|
-
return this._invoke(method, arg);
|
|
212
|
+
});
|
|
213
|
+
var d = Object.getPrototypeOf,
|
|
214
|
+
v = d && d(d(values([])));
|
|
215
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
216
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
217
|
+
function defineIteratorMethods(t) {
|
|
218
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
219
|
+
define(t, e, function (t) {
|
|
220
|
+
return this._invoke(e, t);
|
|
246
221
|
});
|
|
247
222
|
});
|
|
248
223
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
} else {
|
|
264
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
265
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
266
|
-
}
|
|
267
|
-
genFun.prototype = Object.create(Gp);
|
|
268
|
-
return genFun;
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
// Within the body of any async function, `await x` is transformed to
|
|
272
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
273
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
274
|
-
// meant to be awaited.
|
|
275
|
-
exports.awrap = function(arg) {
|
|
276
|
-
return { __await: arg };
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
280
|
-
function invoke(method, arg, resolve, reject) {
|
|
281
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
282
|
-
if (record.type === "throw") {
|
|
283
|
-
reject(record.arg);
|
|
284
|
-
} else {
|
|
285
|
-
var result = record.arg;
|
|
286
|
-
var value = result.value;
|
|
287
|
-
if (value &&
|
|
288
|
-
typeof value === "object" &&
|
|
289
|
-
hasOwn.call(value, "__await")) {
|
|
290
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
291
|
-
invoke("next", value, resolve, reject);
|
|
292
|
-
}, function(err) {
|
|
293
|
-
invoke("throw", err, resolve, reject);
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
298
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
299
|
-
// the .value of the Promise<{value,done}> result for the
|
|
300
|
-
// current iteration.
|
|
301
|
-
result.value = unwrapped;
|
|
302
|
-
resolve(result);
|
|
303
|
-
}, function(error) {
|
|
304
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
305
|
-
// into the async generator function so it can be handled there.
|
|
306
|
-
return invoke("throw", error, resolve, reject);
|
|
224
|
+
function AsyncIterator(t, e) {
|
|
225
|
+
function invoke(r, o, i, a) {
|
|
226
|
+
var c = tryCatch(t[r], t, o);
|
|
227
|
+
if ("throw" !== c.type) {
|
|
228
|
+
var u = c.arg,
|
|
229
|
+
h = u.value;
|
|
230
|
+
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
231
|
+
invoke("next", t, i, a);
|
|
232
|
+
}, function (t) {
|
|
233
|
+
invoke("throw", t, i, a);
|
|
234
|
+
}) : e.resolve(h).then(function (t) {
|
|
235
|
+
u.value = t, i(u);
|
|
236
|
+
}, function (t) {
|
|
237
|
+
return invoke("throw", t, i, a);
|
|
307
238
|
});
|
|
308
239
|
}
|
|
240
|
+
a(c.arg);
|
|
309
241
|
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
}
|
|
242
|
+
var r;
|
|
243
|
+
o(this, "_invoke", {
|
|
244
|
+
value: function value(t, n) {
|
|
245
|
+
function callInvokeWithMethodAndArg() {
|
|
246
|
+
return new e(function (e, r) {
|
|
247
|
+
invoke(t, n, e, r);
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
318
251
|
}
|
|
319
|
-
|
|
320
|
-
return previousPromise =
|
|
321
|
-
// If enqueue has been called before, then we want to wait until
|
|
322
|
-
// all previous Promises have been resolved before calling invoke,
|
|
323
|
-
// so that results are always delivered in the correct order. If
|
|
324
|
-
// enqueue has not been called before, then it is important to
|
|
325
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
326
|
-
// so that the async generator function has the opportunity to do
|
|
327
|
-
// any necessary setup in a predictable way. This predictability
|
|
328
|
-
// is why the Promise constructor synchronously invokes its
|
|
329
|
-
// executor callback, and why async functions synchronously
|
|
330
|
-
// execute code before the first await. Since we implement simple
|
|
331
|
-
// async functions in terms of async generators, it is especially
|
|
332
|
-
// important to get this right, even though it requires care.
|
|
333
|
-
previousPromise ? previousPromise.then(
|
|
334
|
-
callInvokeWithMethodAndArg,
|
|
335
|
-
// Avoid propagating failures to Promises returned by later
|
|
336
|
-
// invocations of the iterator.
|
|
337
|
-
callInvokeWithMethodAndArg
|
|
338
|
-
) : callInvokeWithMethodAndArg();
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
// Define the unified helper method that is used to implement .next,
|
|
342
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
343
|
-
this._invoke = enqueue;
|
|
252
|
+
});
|
|
344
253
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
356
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
357
|
-
|
|
358
|
-
var iter = new AsyncIterator(
|
|
359
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
360
|
-
PromiseImpl
|
|
361
|
-
);
|
|
362
|
-
|
|
363
|
-
return exports.isGeneratorFunction(outerFn)
|
|
364
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
365
|
-
: iter.next().then(function(result) {
|
|
366
|
-
return result.done ? result.value : iter.next();
|
|
367
|
-
});
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
371
|
-
var state = GenStateSuspendedStart;
|
|
372
|
-
|
|
373
|
-
return function invoke(method, arg) {
|
|
374
|
-
if (state === GenStateExecuting) {
|
|
375
|
-
throw new Error("Generator is already running");
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
if (state === GenStateCompleted) {
|
|
379
|
-
if (method === "throw") {
|
|
380
|
-
throw arg;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
384
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
385
|
-
return doneResult();
|
|
254
|
+
function makeInvokeMethod(e, r, n) {
|
|
255
|
+
var o = h;
|
|
256
|
+
return function (i, a) {
|
|
257
|
+
if (o === f) throw new Error("Generator is already running");
|
|
258
|
+
if (o === s) {
|
|
259
|
+
if ("throw" === i) throw a;
|
|
260
|
+
return {
|
|
261
|
+
value: t,
|
|
262
|
+
done: !0
|
|
263
|
+
};
|
|
386
264
|
}
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
395
|
-
if (delegateResult) {
|
|
396
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
397
|
-
return delegateResult;
|
|
265
|
+
for (n.method = i, n.arg = a;;) {
|
|
266
|
+
var c = n.delegate;
|
|
267
|
+
if (c) {
|
|
268
|
+
var u = maybeInvokeDelegate(c, n);
|
|
269
|
+
if (u) {
|
|
270
|
+
if (u === y) continue;
|
|
271
|
+
return u;
|
|
398
272
|
}
|
|
399
273
|
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
if (
|
|
408
|
-
state = GenStateCompleted;
|
|
409
|
-
throw context.arg;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
context.dispatchException(context.arg);
|
|
413
|
-
|
|
414
|
-
} else if (context.method === "return") {
|
|
415
|
-
context.abrupt("return", context.arg);
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
state = GenStateExecuting;
|
|
419
|
-
|
|
420
|
-
var record = tryCatch(innerFn, self, context);
|
|
421
|
-
if (record.type === "normal") {
|
|
422
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
423
|
-
// GenStateExecuting and loop back for another invocation.
|
|
424
|
-
state = context.done
|
|
425
|
-
? GenStateCompleted
|
|
426
|
-
: GenStateSuspendedYield;
|
|
427
|
-
|
|
428
|
-
if (record.arg === ContinueSentinel) {
|
|
429
|
-
continue;
|
|
430
|
-
}
|
|
431
|
-
|
|
274
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
275
|
+
if (o === h) throw o = s, n.arg;
|
|
276
|
+
n.dispatchException(n.arg);
|
|
277
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
278
|
+
o = f;
|
|
279
|
+
var p = tryCatch(e, r, n);
|
|
280
|
+
if ("normal" === p.type) {
|
|
281
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
432
282
|
return {
|
|
433
|
-
value:
|
|
434
|
-
done:
|
|
283
|
+
value: p.arg,
|
|
284
|
+
done: n.done
|
|
435
285
|
};
|
|
436
|
-
|
|
437
|
-
} else if (record.type === "throw") {
|
|
438
|
-
state = GenStateCompleted;
|
|
439
|
-
// Dispatch the exception by looping back around to the
|
|
440
|
-
// context.dispatchException(context.arg) call above.
|
|
441
|
-
context.method = "throw";
|
|
442
|
-
context.arg = record.arg;
|
|
443
286
|
}
|
|
287
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
444
288
|
}
|
|
445
289
|
};
|
|
446
290
|
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
var
|
|
454
|
-
|
|
455
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
456
|
-
// method always terminates the yield* loop.
|
|
457
|
-
context.delegate = null;
|
|
458
|
-
|
|
459
|
-
if (context.method === "throw") {
|
|
460
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
461
|
-
if (delegate.iterator["return"]) {
|
|
462
|
-
// If the delegate iterator has a return method, give it a
|
|
463
|
-
// chance to clean up.
|
|
464
|
-
context.method = "return";
|
|
465
|
-
context.arg = undefined;
|
|
466
|
-
maybeInvokeDelegate(delegate, context);
|
|
467
|
-
|
|
468
|
-
if (context.method === "throw") {
|
|
469
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
470
|
-
// "return" to "throw", let that override the TypeError below.
|
|
471
|
-
return ContinueSentinel;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
context.method = "throw";
|
|
476
|
-
context.arg = new TypeError(
|
|
477
|
-
"The iterator does not provide a 'throw' method");
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
return ContinueSentinel;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
484
|
-
|
|
485
|
-
if (record.type === "throw") {
|
|
486
|
-
context.method = "throw";
|
|
487
|
-
context.arg = record.arg;
|
|
488
|
-
context.delegate = null;
|
|
489
|
-
return ContinueSentinel;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
var info = record.arg;
|
|
493
|
-
|
|
494
|
-
if (! info) {
|
|
495
|
-
context.method = "throw";
|
|
496
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
497
|
-
context.delegate = null;
|
|
498
|
-
return ContinueSentinel;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
if (info.done) {
|
|
502
|
-
// Assign the result of the finished delegate to the temporary
|
|
503
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
504
|
-
context[delegate.resultName] = info.value;
|
|
505
|
-
|
|
506
|
-
// Resume execution at the desired location (see delegateYield).
|
|
507
|
-
context.next = delegate.nextLoc;
|
|
508
|
-
|
|
509
|
-
// If context.method was "throw" but the delegate handled the
|
|
510
|
-
// exception, let the outer generator proceed normally. If
|
|
511
|
-
// context.method was "next", forget context.arg since it has been
|
|
512
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
513
|
-
// "return", allow the original .return call to continue in the
|
|
514
|
-
// outer generator.
|
|
515
|
-
if (context.method !== "return") {
|
|
516
|
-
context.method = "next";
|
|
517
|
-
context.arg = undefined;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
} else {
|
|
521
|
-
// Re-yield the result returned by the delegate method.
|
|
522
|
-
return info;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
526
|
-
// the outer generator.
|
|
527
|
-
context.delegate = null;
|
|
528
|
-
return ContinueSentinel;
|
|
291
|
+
function maybeInvokeDelegate(e, r) {
|
|
292
|
+
var n = r.method,
|
|
293
|
+
o = e.iterator[n];
|
|
294
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
295
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
296
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
297
|
+
var a = i.arg;
|
|
298
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
529
299
|
}
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
536
|
-
|
|
537
|
-
// A Generator should always return itself as the iterator object when the
|
|
538
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
539
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
540
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
541
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
542
|
-
Gp[iteratorSymbol] = function() {
|
|
543
|
-
return this;
|
|
544
|
-
};
|
|
545
|
-
|
|
546
|
-
Gp.toString = function() {
|
|
547
|
-
return "[object Generator]";
|
|
548
|
-
};
|
|
549
|
-
|
|
550
|
-
function pushTryEntry(locs) {
|
|
551
|
-
var entry = { tryLoc: locs[0] };
|
|
552
|
-
|
|
553
|
-
if (1 in locs) {
|
|
554
|
-
entry.catchLoc = locs[1];
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
if (2 in locs) {
|
|
558
|
-
entry.finallyLoc = locs[2];
|
|
559
|
-
entry.afterLoc = locs[3];
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
this.tryEntries.push(entry);
|
|
300
|
+
function pushTryEntry(t) {
|
|
301
|
+
var e = {
|
|
302
|
+
tryLoc: t[0]
|
|
303
|
+
};
|
|
304
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
563
305
|
}
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
record.type = "normal";
|
|
568
|
-
delete record.arg;
|
|
569
|
-
entry.completion = record;
|
|
306
|
+
function resetTryEntry(t) {
|
|
307
|
+
var e = t.completion || {};
|
|
308
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
570
309
|
}
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
// locations where there is no enclosing try statement.
|
|
576
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
577
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
578
|
-
this.reset(true);
|
|
310
|
+
function Context(t) {
|
|
311
|
+
this.tryEntries = [{
|
|
312
|
+
tryLoc: "root"
|
|
313
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
579
314
|
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
var key = keys.pop();
|
|
593
|
-
if (key in object) {
|
|
594
|
-
next.value = key;
|
|
595
|
-
next.done = false;
|
|
596
|
-
return next;
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
// To avoid creating an additional object, we just hang the .value
|
|
601
|
-
// and .done properties off the next function object itself. This
|
|
602
|
-
// also ensures that the minifier will not anonymize the function.
|
|
603
|
-
next.done = true;
|
|
604
|
-
return next;
|
|
605
|
-
};
|
|
606
|
-
};
|
|
607
|
-
|
|
608
|
-
function values(iterable) {
|
|
609
|
-
if (iterable) {
|
|
610
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
611
|
-
if (iteratorMethod) {
|
|
612
|
-
return iteratorMethod.call(iterable);
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
if (typeof iterable.next === "function") {
|
|
616
|
-
return iterable;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
if (!isNaN(iterable.length)) {
|
|
620
|
-
var i = -1, next = function next() {
|
|
621
|
-
while (++i < iterable.length) {
|
|
622
|
-
if (hasOwn.call(iterable, i)) {
|
|
623
|
-
next.value = iterable[i];
|
|
624
|
-
next.done = false;
|
|
625
|
-
return next;
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
next.value = undefined;
|
|
630
|
-
next.done = true;
|
|
631
|
-
|
|
632
|
-
return next;
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
return next.next = next;
|
|
315
|
+
function values(e) {
|
|
316
|
+
if (e || "" === e) {
|
|
317
|
+
var r = e[a];
|
|
318
|
+
if (r) return r.call(e);
|
|
319
|
+
if ("function" == typeof e.next) return e;
|
|
320
|
+
if (!isNaN(e.length)) {
|
|
321
|
+
var o = -1,
|
|
322
|
+
i = function next() {
|
|
323
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
324
|
+
return next.value = t, next.done = !0, next;
|
|
325
|
+
};
|
|
326
|
+
return i.next = i;
|
|
636
327
|
}
|
|
637
328
|
}
|
|
638
|
-
|
|
639
|
-
// Return an iterator with no values.
|
|
640
|
-
return { next: doneResult };
|
|
641
|
-
}
|
|
642
|
-
exports.values = values;
|
|
643
|
-
|
|
644
|
-
function doneResult() {
|
|
645
|
-
return { value: undefined, done: true };
|
|
329
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
|
646
330
|
}
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
331
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
332
|
+
value: GeneratorFunctionPrototype,
|
|
333
|
+
configurable: !0
|
|
334
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
335
|
+
value: GeneratorFunction,
|
|
336
|
+
configurable: !0
|
|
337
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
338
|
+
var e = "function" == typeof t && t.constructor;
|
|
339
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
340
|
+
}, e.mark = function (t) {
|
|
341
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
342
|
+
}, e.awrap = function (t) {
|
|
343
|
+
return {
|
|
344
|
+
__await: t
|
|
345
|
+
};
|
|
346
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
347
|
+
return this;
|
|
348
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
349
|
+
void 0 === i && (i = Promise);
|
|
350
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
351
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
352
|
+
return t.done ? t.value : a.next();
|
|
353
|
+
});
|
|
354
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
355
|
+
return this;
|
|
356
|
+
}), define(g, "toString", function () {
|
|
357
|
+
return "[object Generator]";
|
|
358
|
+
}), e.keys = function (t) {
|
|
359
|
+
var e = Object(t),
|
|
360
|
+
r = [];
|
|
361
|
+
for (var n in e) r.push(n);
|
|
362
|
+
return r.reverse(), function next() {
|
|
363
|
+
for (; r.length;) {
|
|
364
|
+
var t = r.pop();
|
|
365
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
674
366
|
}
|
|
367
|
+
return next.done = !0, next;
|
|
368
|
+
};
|
|
369
|
+
}, e.values = values, Context.prototype = {
|
|
370
|
+
constructor: Context,
|
|
371
|
+
reset: function reset(e) {
|
|
372
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
675
373
|
},
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
var rootEntry = this.tryEntries[0];
|
|
681
|
-
var rootRecord = rootEntry.completion;
|
|
682
|
-
if (rootRecord.type === "throw") {
|
|
683
|
-
throw rootRecord.arg;
|
|
684
|
-
}
|
|
685
|
-
|
|
374
|
+
stop: function stop() {
|
|
375
|
+
this.done = !0;
|
|
376
|
+
var t = this.tryEntries[0].completion;
|
|
377
|
+
if ("throw" === t.type) throw t.arg;
|
|
686
378
|
return this.rval;
|
|
687
379
|
},
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
var context = this;
|
|
695
|
-
function handle(loc, caught) {
|
|
696
|
-
record.type = "throw";
|
|
697
|
-
record.arg = exception;
|
|
698
|
-
context.next = loc;
|
|
699
|
-
|
|
700
|
-
if (caught) {
|
|
701
|
-
// If the dispatched exception was caught by a catch block,
|
|
702
|
-
// then let that catch block handle the exception normally.
|
|
703
|
-
context.method = "next";
|
|
704
|
-
context.arg = undefined;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
return !! caught;
|
|
380
|
+
dispatchException: function dispatchException(e) {
|
|
381
|
+
if (this.done) throw e;
|
|
382
|
+
var r = this;
|
|
383
|
+
function handle(n, o) {
|
|
384
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
708
385
|
}
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
if (entry.tryLoc <= this.prev) {
|
|
722
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
723
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
724
|
-
|
|
725
|
-
if (hasCatch && hasFinally) {
|
|
726
|
-
if (this.prev < entry.catchLoc) {
|
|
727
|
-
return handle(entry.catchLoc, true);
|
|
728
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
729
|
-
return handle(entry.finallyLoc);
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
} else if (hasCatch) {
|
|
733
|
-
if (this.prev < entry.catchLoc) {
|
|
734
|
-
return handle(entry.catchLoc, true);
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
} else if (hasFinally) {
|
|
738
|
-
if (this.prev < entry.finallyLoc) {
|
|
739
|
-
return handle(entry.finallyLoc);
|
|
740
|
-
}
|
|
741
|
-
|
|
386
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
387
|
+
var i = this.tryEntries[o],
|
|
388
|
+
a = i.completion;
|
|
389
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
390
|
+
if (i.tryLoc <= this.prev) {
|
|
391
|
+
var c = n.call(i, "catchLoc"),
|
|
392
|
+
u = n.call(i, "finallyLoc");
|
|
393
|
+
if (c && u) {
|
|
394
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
395
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
396
|
+
} else if (c) {
|
|
397
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
742
398
|
} else {
|
|
743
|
-
throw new Error("try statement without catch or finally");
|
|
399
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
400
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
744
401
|
}
|
|
745
402
|
}
|
|
746
403
|
}
|
|
747
404
|
},
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
hasOwn.call(entry, "finallyLoc") &&
|
|
754
|
-
this.prev < entry.finallyLoc) {
|
|
755
|
-
var finallyEntry = entry;
|
|
405
|
+
abrupt: function abrupt(t, e) {
|
|
406
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
407
|
+
var o = this.tryEntries[r];
|
|
408
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
409
|
+
var i = o;
|
|
756
410
|
break;
|
|
757
411
|
}
|
|
758
412
|
}
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
type === "continue") &&
|
|
763
|
-
finallyEntry.tryLoc <= arg &&
|
|
764
|
-
arg <= finallyEntry.finallyLoc) {
|
|
765
|
-
// Ignore the finally entry if control is not jumping to a
|
|
766
|
-
// location outside the try/catch block.
|
|
767
|
-
finallyEntry = null;
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
771
|
-
record.type = type;
|
|
772
|
-
record.arg = arg;
|
|
773
|
-
|
|
774
|
-
if (finallyEntry) {
|
|
775
|
-
this.method = "next";
|
|
776
|
-
this.next = finallyEntry.finallyLoc;
|
|
777
|
-
return ContinueSentinel;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
return this.complete(record);
|
|
413
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
414
|
+
var a = i ? i.completion : {};
|
|
415
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
781
416
|
},
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
throw record.arg;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
if (record.type === "break" ||
|
|
789
|
-
record.type === "continue") {
|
|
790
|
-
this.next = record.arg;
|
|
791
|
-
} else if (record.type === "return") {
|
|
792
|
-
this.rval = this.arg = record.arg;
|
|
793
|
-
this.method = "return";
|
|
794
|
-
this.next = "end";
|
|
795
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
796
|
-
this.next = afterLoc;
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
return ContinueSentinel;
|
|
417
|
+
complete: function complete(t, e) {
|
|
418
|
+
if ("throw" === t.type) throw t.arg;
|
|
419
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
800
420
|
},
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
806
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
807
|
-
resetTryEntry(entry);
|
|
808
|
-
return ContinueSentinel;
|
|
809
|
-
}
|
|
421
|
+
finish: function finish(t) {
|
|
422
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
423
|
+
var r = this.tryEntries[e];
|
|
424
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
810
425
|
}
|
|
811
426
|
},
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
resetTryEntry(entry);
|
|
427
|
+
"catch": function _catch(t) {
|
|
428
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
429
|
+
var r = this.tryEntries[e];
|
|
430
|
+
if (r.tryLoc === t) {
|
|
431
|
+
var n = r.completion;
|
|
432
|
+
if ("throw" === n.type) {
|
|
433
|
+
var o = n.arg;
|
|
434
|
+
resetTryEntry(r);
|
|
821
435
|
}
|
|
822
|
-
return
|
|
436
|
+
return o;
|
|
823
437
|
}
|
|
824
438
|
}
|
|
825
|
-
|
|
826
|
-
// The context.catch method must only be called with a location
|
|
827
|
-
// argument that corresponds to a known catch block.
|
|
828
439
|
throw new Error("illegal catch attempt");
|
|
829
440
|
},
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
};
|
|
837
|
-
|
|
838
|
-
if (this.method === "next") {
|
|
839
|
-
// Deliberately forget the last sent value so that we don't
|
|
840
|
-
// accidentally pass it on to the delegate.
|
|
841
|
-
this.arg = undefined;
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
return ContinueSentinel;
|
|
441
|
+
delegateYield: function delegateYield(e, r, n) {
|
|
442
|
+
return this.delegate = {
|
|
443
|
+
iterator: values(e),
|
|
444
|
+
resultName: r,
|
|
445
|
+
nextLoc: n
|
|
446
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
845
447
|
}
|
|
846
|
-
};
|
|
448
|
+
}, e;
|
|
449
|
+
}
|
|
450
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
451
|
+
|
|
452
|
+
/***/ }),
|
|
847
453
|
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
851
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
852
|
-
return exports;
|
|
454
|
+
/***/ 8698:
|
|
455
|
+
/***/ ((module) => {
|
|
853
456
|
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
857
|
-
// object. Either way, the resulting object will be used to initialize
|
|
858
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
859
|
-
true ? module.exports : 0
|
|
860
|
-
));
|
|
457
|
+
function _typeof(o) {
|
|
458
|
+
"@babel/helpers - typeof";
|
|
861
459
|
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
868
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
869
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
870
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
871
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
872
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
873
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
874
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
460
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
461
|
+
return typeof o;
|
|
462
|
+
} : function (o) {
|
|
463
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
464
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
|
875
465
|
}
|
|
876
|
-
|
|
466
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
877
467
|
|
|
878
468
|
/***/ }),
|
|
879
469
|
|
|
880
|
-
/***/
|
|
881
|
-
/***/ ((module) => {
|
|
470
|
+
/***/ 4687:
|
|
471
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
882
472
|
|
|
883
|
-
|
|
884
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__6073__;
|
|
473
|
+
// TODO(Babel 8): Remove this file.
|
|
885
474
|
|
|
886
|
-
|
|
475
|
+
var runtime = __webpack_require__(7061)();
|
|
476
|
+
module.exports = runtime;
|
|
887
477
|
|
|
888
|
-
|
|
889
|
-
|
|
478
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
479
|
+
try {
|
|
480
|
+
regeneratorRuntime = runtime;
|
|
481
|
+
} catch (accidentalStrictMode) {
|
|
482
|
+
if (typeof globalThis === "object") {
|
|
483
|
+
globalThis.regeneratorRuntime = runtime;
|
|
484
|
+
} else {
|
|
485
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
890
488
|
|
|
891
|
-
"use strict";
|
|
892
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__5225__;
|
|
893
489
|
|
|
894
490
|
/***/ })
|
|
895
491
|
|
|
@@ -971,7 +567,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
971
567
|
/* harmony export */ "default": () => (/* binding */ Uptime),
|
|
972
568
|
/* harmony export */ "themes": () => (/* binding */ themes)
|
|
973
569
|
/* harmony export */ });
|
|
974
|
-
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
570
|
+
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4687);
|
|
975
571
|
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
|
976
572
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5225);
|
|
977
573
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
@@ -1225,7 +821,7 @@ function Uptime(_ref8) {
|
|
|
1225
821
|
|
|
1226
822
|
if (data && data.error) {
|
|
1227
823
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
|
1228
|
-
className: "flex sm:flex-row justify-center items-center p-24 border rounded
|
|
824
|
+
className: "flex sm:flex-row justify-center items-center p-24 border rounded ui-text-p2 ".concat(themes[theme].text),
|
|
1229
825
|
"data-id": "uptime-error"
|
|
1230
826
|
}, "Sorry, we can\u2019t retrieve uptime data right now.");
|
|
1231
827
|
}
|