@ably/ui 8.7.0-dev.0d89184 → 8.7.0-dev.0eee65d

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.
Files changed (166) hide show
  1. package/README.md +15 -4
  2. package/core/Code/component.css +3 -3
  3. package/core/Code/component.js +1 -1
  4. package/core/Code.jsx +373 -7273
  5. package/core/CompanyAutocomplete/component.js +2 -1
  6. package/core/CompanyAutocomplete/component.js.LICENSE.txt +1 -0
  7. package/core/ConnectStateWrapper/component.js +1 -1
  8. package/core/ConnectStateWrapper.jsx +16 -7
  9. package/core/ContactFooter/component.js +1 -1
  10. package/core/ContactFooter.jsx +20 -126
  11. package/core/CookieMessage/component.js +1 -1
  12. package/core/CookieMessage.jsx +24 -296
  13. package/core/CustomerLogos/component.js +1 -1
  14. package/core/CustomerLogos.jsx +12 -117
  15. package/core/DropdownMenu/component.js +1 -1
  16. package/core/DropdownMenu.jsx +16 -126
  17. package/core/FeatureFooter/component.js +1 -1
  18. package/core/FeaturedLink/component.js +1 -1
  19. package/core/FeaturedLink.jsx +15 -121
  20. package/core/Flash/component.js +1 -1
  21. package/core/Flash.jsx +151 -1533
  22. package/core/Footer/component.css +21 -1
  23. package/core/Footer/component.js +1 -1
  24. package/core/Footer.jsx +172 -192
  25. package/core/Icon/component.js +1 -1
  26. package/core/Icon.jsx +12 -117
  27. package/core/Loader/component.js +1 -1
  28. package/core/Loader.jsx +12 -117
  29. package/core/Logo/component.js +1 -1
  30. package/core/Logo.jsx +38 -228
  31. package/core/Meganav/component.css +59 -20
  32. package/core/Meganav/component.js +1 -2
  33. package/core/Meganav/component.json +2 -2
  34. package/core/Meganav.jsx +2876 -10312
  35. package/core/MeganavBlogPostsList/component.js +2 -1
  36. package/core/MeganavBlogPostsList/component.js.LICENSE.txt +1 -0
  37. package/core/MeganavBlogPostsList.jsx +18 -125
  38. package/core/MeganavContentCompany/component.js +1 -1
  39. package/core/MeganavContentCompany.jsx +326 -822
  40. package/core/MeganavContentDevelopers/component.js +1 -1
  41. package/core/MeganavContentDevelopers.jsx +122 -187
  42. package/core/{MeganavContentPlatform → MeganavContentProducts}/component.js +1 -1
  43. package/core/{MeganavContentPlatform.jsx → MeganavContentProducts.jsx} +39 -170
  44. package/core/MeganavContentUseCases/component.js +1 -1
  45. package/core/MeganavContentUseCases.jsx +68 -166
  46. package/core/MeganavControl/component.js +1 -1
  47. package/core/MeganavControl.jsx +15 -121
  48. package/core/MeganavControlMobileDropdown/component.js +1 -1
  49. package/core/MeganavControlMobileDropdown.jsx +16 -122
  50. package/core/MeganavControlMobilePanelClose/component.js +1 -1
  51. package/core/MeganavControlMobilePanelClose.jsx +15 -121
  52. package/core/MeganavControlMobilePanelOpen/component.js +1 -1
  53. package/core/MeganavControlMobilePanelOpen.jsx +15 -121
  54. package/core/MeganavItemsDesktop/component.js +1 -1
  55. package/core/MeganavItemsDesktop.jsx +22 -130
  56. package/core/MeganavItemsMobile/component.js +1 -1
  57. package/core/MeganavItemsMobile.jsx +44 -158
  58. package/core/MeganavItemsSignedIn/component.js +1 -1
  59. package/core/MeganavItemsSignedIn.jsx +38 -151
  60. package/core/MeganavSearch/component.js +1 -1
  61. package/core/MeganavSearch.jsx +28 -138
  62. package/core/MeganavSearchAutocomplete/component.js +1 -2
  63. package/core/MeganavSearchAutocomplete.jsx +4 -4
  64. package/core/MeganavSearchPanel/component.js +1 -1
  65. package/core/MeganavSearchPanel.jsx +24 -133
  66. package/core/MeganavSearchSuggestions/component.js +1 -1
  67. package/core/MeganavSearchSuggestions.jsx +18 -125
  68. package/core/Notice/component.js +1 -2
  69. package/core/Notice.jsx +187 -2189
  70. package/core/Showcase/component.js +1 -1
  71. package/core/Showcase.jsx +1 -1
  72. package/core/SignOutLink/component.js +1 -1
  73. package/core/SignOutLink.jsx +12 -117
  74. package/core/Slider/component.js +1 -1
  75. package/core/Slider.jsx +31 -588
  76. package/core/Uptime/component.js +1 -1
  77. package/core/Uptime.jsx +294 -812
  78. package/core/images/ably-logo.png +0 -0
  79. package/core/images/best-support-2023.svg +1 -0
  80. package/core/images/fastest-implementation-2023.svg +1 -0
  81. package/core/images/high-performer-2022.png +0 -0
  82. package/core/images/high-performer-2023.svg +1 -0
  83. package/core/images/highest-user-adoption-2022.png +0 -0
  84. package/core/images/highest-user-adoption-2023.svg +1 -0
  85. package/core/images/users-love-us-2022.png +0 -0
  86. package/core/scripts.js +2 -1
  87. package/core/scripts.js.LICENSE.txt +1 -0
  88. package/core/sprites.svg +135 -1
  89. package/core/styles.css +3 -7
  90. package/package.json +8 -8
  91. package/reset/scripts.js +1 -1
  92. package/reset/styles.css +1 -11
  93. package/src/core/Code/component.css +1 -67
  94. package/src/core/Code/component.js +11 -46
  95. package/src/core/Code/component.jsx +7 -3
  96. package/src/core/DropdownMenu/component.jsx +0 -2
  97. package/src/core/FeatureFooter/component.html.erb +1 -1
  98. package/src/core/Flash/component.jsx +40 -14
  99. package/src/core/Footer/component.css +21 -1
  100. package/src/core/Footer/component.html.erb +120 -63
  101. package/src/core/Footer/component.jsx +128 -61
  102. package/src/core/HeadwayWidget/HeadwayWidget.jsx +229 -0
  103. package/src/core/HeadwayWidget/index.js +5 -0
  104. package/src/core/Logo/component.html.erb +2 -27
  105. package/src/core/Logo/component.jsx +7 -40
  106. package/src/core/Logo/component.rb +15 -6
  107. package/src/core/Meganav/MeganavHeadwayPortal.jsx +20 -0
  108. package/src/core/Meganav/component.css +59 -18
  109. package/src/core/Meganav/component.html.erb +1 -1
  110. package/src/core/Meganav/component.json +2 -2
  111. package/src/core/Meganav/component.jsx +16 -12
  112. package/src/core/Meganav/component.rb +7 -6
  113. package/src/core/MeganavContentCompany/component.html.erb +9 -0
  114. package/src/core/MeganavContentCompany/component.jsx +9 -0
  115. package/src/core/MeganavContentDevelopers/component.html.erb +51 -22
  116. package/src/core/MeganavContentDevelopers/component.js +26 -0
  117. package/src/core/MeganavContentDevelopers/component.jsx +52 -23
  118. package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.html.erb +15 -33
  119. package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.jsx +18 -39
  120. package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.rb +1 -1
  121. package/src/core/MeganavContentUseCases/component.html.erb +43 -39
  122. package/src/core/MeganavContentUseCases/component.jsx +42 -39
  123. package/src/core/MeganavItemsDesktop/component.jsx +1 -1
  124. package/src/core/MeganavItemsDesktop/component.rb +1 -1
  125. package/src/core/MeganavSearchSuggestions/component.html.erb +1 -1
  126. package/src/core/core.rb +16 -4
  127. package/src/core/icons/github.svg +1 -1
  128. package/src/core/icons/google.svg +3 -0
  129. package/src/core/icons/icon-display-asset-tracking-col.svg +18 -0
  130. package/src/core/icons/icon-display-chat-col.svg +4 -0
  131. package/src/core/icons/icon-display-data-broadcast-col.svg +26 -0
  132. package/src/core/icons/icon-display-data-synchronization-col.svg +14 -0
  133. package/src/core/icons/icon-display-events-col.svg +13 -0
  134. package/src/core/icons/icon-display-examples-col.svg +11 -0
  135. package/src/core/icons/icon-display-integrations-col.svg +8 -0
  136. package/src/core/icons/icon-display-kafka-at-the-edge-col.svg +8 -0
  137. package/src/core/icons/icon-display-push-notifications-col.svg +6 -0
  138. package/src/core/icons/icon-gui-check-circled-fill-black.svg +4 -0
  139. package/src/core/icons/icon-gui-filter-flow-step-1.svg +5 -0
  140. package/src/core/icons/icon-gui-filter-flow-step-2.svg +5 -0
  141. package/src/core/icons/icon-gui-filter-flow-step-3.svg +5 -0
  142. package/src/core/icons/icon-gui-resources.svg +3 -0
  143. package/src/core/icons/icon-social-x.svg +3 -0
  144. package/src/core/icons/icon-tech-apachekafka.svg +3 -0
  145. package/src/core/icons/stackoverflow.svg +3 -0
  146. package/src/core/icons/youtube.svg +11 -0
  147. package/src/core/images/ably-logo.png +0 -0
  148. package/src/core/images/best-support-2023.svg +1 -0
  149. package/src/core/images/fastest-implementation-2023.svg +1 -0
  150. package/src/core/images/high-performer-2022.png +0 -0
  151. package/src/core/images/high-performer-2023.svg +1 -0
  152. package/src/core/images/highest-user-adoption-2022.png +0 -0
  153. package/src/core/images/highest-user-adoption-2023.svg +1 -0
  154. package/src/core/images/users-love-us-2022.png +0 -0
  155. package/src/core/styles/properties.css +2 -0
  156. package/src/core/styles/text.css +1 -1
  157. package/src/core/utils/syntax-highlighter-registry.js +63 -0
  158. package/src/core/utils/syntax-highlighter.css +69 -0
  159. package/src/core/utils/syntax-highlighter.js +103 -0
  160. package/tailwind.config.js +1 -0
  161. package/core/DropdownMenuPreview/component.js +0 -6
  162. package/core/DropdownMenuPreview.jsx +0 -6
  163. package/core/Meganav/component.js.LICENSE.txt +0 -7
  164. package/core/MeganavSearchAutocomplete/component.js.LICENSE.txt +0 -7
  165. package/core/Notice/component.js.LICENSE.txt +0 -9
  166. /package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.js +0 -0
package/core/Uptime.jsx CHANGED
@@ -1,24 +1,16 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("react"));
3
+ module.exports = factory(require("react"), require("prop-types"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define([], factory);
5
+ define([, ], factory);
6
6
  else {
7
- var a = typeof exports === 'object' ? factory(require("react")) : factory(root[undefined]);
7
+ var a = typeof exports === 'object' ? factory(require("react"), require("prop-types")) : factory(root[undefined], root[undefined]);
8
8
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
9
  }
10
- })(this, function(__WEBPACK_EXTERNAL_MODULE__9281__) {
10
+ })(this, (__WEBPACK_EXTERNAL_MODULE__5225__, __WEBPACK_EXTERNAL_MODULE__6073__) => {
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
 
@@ -26,9 +18,9 @@ module.exports = __webpack_require__(5666);
26
18
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27
19
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
28
20
  /* harmony export */ });
29
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
21
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5225);
30
22
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
31
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5697);
23
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6073);
32
24
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
33
25
  /* harmony import */ var _Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9008);
34
26
 
@@ -50,7 +42,7 @@ var FeaturedLink = function FeaturedLink(_ref) {
50
42
  style: {
51
43
  "--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
52
44
  }
53
- }, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__.default, {
45
+ }, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
54
46
  name: "icon-gui-link-arrow",
55
47
  size: "calc(var(--featured-link-icon-size) * 1.25)",
56
48
  color: iconColor,
@@ -76,9 +68,9 @@ FeaturedLink.propTypes = {
76
68
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
77
69
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
78
70
  /* harmony export */ });
79
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
71
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5225);
80
72
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
81
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5697);
73
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6073);
82
74
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
83
75
  var _excluded = ["name", "size", "color", "additionalCSS"];
84
76
 
@@ -122,878 +114,368 @@ Icon.propTypes = {
122
114
 
123
115
  /***/ }),
124
116
 
125
- /***/ 2703:
126
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
117
+ /***/ 6073:
118
+ /***/ ((module) => {
127
119
 
128
120
  "use strict";
129
- /**
130
- * Copyright (c) 2013-present, Facebook, Inc.
131
- *
132
- * This source code is licensed under the MIT license found in the
133
- * LICENSE file in the root directory of this source tree.
134
- */
135
-
136
-
137
-
138
- var ReactPropTypesSecret = __webpack_require__(414);
139
-
140
- function emptyFunction() {}
141
- function emptyFunctionWithReset() {}
142
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
143
-
144
- module.exports = function() {
145
- function shim(props, propName, componentName, location, propFullName, secret) {
146
- if (secret === ReactPropTypesSecret) {
147
- // It is still safe when called from React.
148
- return;
149
- }
150
- var err = new Error(
151
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
152
- 'Use PropTypes.checkPropTypes() to call them. ' +
153
- 'Read more at http://fb.me/use-check-prop-types'
154
- );
155
- err.name = 'Invariant Violation';
156
- throw err;
157
- };
158
- shim.isRequired = shim;
159
- function getShim() {
160
- return shim;
161
- };
162
- // Important!
163
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
164
- var ReactPropTypes = {
165
- array: shim,
166
- bool: shim,
167
- func: shim,
168
- number: shim,
169
- object: shim,
170
- string: shim,
171
- symbol: shim,
172
-
173
- any: shim,
174
- arrayOf: getShim,
175
- element: shim,
176
- elementType: shim,
177
- instanceOf: getShim,
178
- node: shim,
179
- objectOf: getShim,
180
- oneOf: getShim,
181
- oneOfType: getShim,
182
- shape: getShim,
183
- exact: getShim,
184
-
185
- checkPropTypes: emptyFunctionWithReset,
186
- resetWarningCache: emptyFunction
187
- };
188
-
189
- ReactPropTypes.PropTypes = ReactPropTypes;
190
-
191
- return ReactPropTypes;
192
- };
193
-
194
-
195
- /***/ }),
196
-
197
- /***/ 5697:
198
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
199
-
200
- /**
201
- * Copyright (c) 2013-present, Facebook, Inc.
202
- *
203
- * This source code is licensed under the MIT license found in the
204
- * LICENSE file in the root directory of this source tree.
205
- */
206
-
207
- if (false) { var throwOnDirectAccess, ReactIs; } else {
208
- // By explicitly using `prop-types` you are opting into new production behavior.
209
- // http://fb.me/prop-types-in-prod
210
- module.exports = __webpack_require__(2703)();
211
- }
212
-
121
+ module.exports = __WEBPACK_EXTERNAL_MODULE__6073__;
213
122
 
214
123
  /***/ }),
215
124
 
216
- /***/ 414:
125
+ /***/ 5225:
217
126
  /***/ ((module) => {
218
127
 
219
128
  "use strict";
220
- /**
221
- * Copyright (c) 2013-present, Facebook, Inc.
222
- *
223
- * This source code is licensed under the MIT license found in the
224
- * LICENSE file in the root directory of this source tree.
225
- */
226
-
227
-
228
-
229
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
230
-
231
- module.exports = ReactPropTypesSecret;
232
-
129
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5225__;
233
130
 
234
131
  /***/ }),
235
132
 
236
- /***/ 5666:
237
- /***/ ((module) => {
133
+ /***/ 7061:
134
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
238
135
 
239
- /**
240
- * Copyright (c) 2014-present, Facebook, Inc.
241
- *
242
- * This source code is licensed under the MIT license found in the
243
- * LICENSE file in the root directory of this source tree.
244
- */
245
-
246
- var runtime = (function (exports) {
247
- "use strict";
248
-
249
- var Op = Object.prototype;
250
- var hasOwn = Op.hasOwnProperty;
251
- var undefined; // More compressible than void 0.
252
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
253
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
254
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
255
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
256
-
257
- function define(obj, key, value) {
258
- Object.defineProperty(obj, key, {
259
- value: value,
260
- enumerable: true,
261
- configurable: true,
262
- writable: true
263
- });
264
- return obj[key];
136
+ var _typeof = (__webpack_require__(8698)["default"]);
137
+ function _regeneratorRuntime() {
138
+ "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
139
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
140
+ return e;
141
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
142
+ var t,
143
+ e = {},
144
+ r = Object.prototype,
145
+ n = r.hasOwnProperty,
146
+ o = Object.defineProperty || function (t, e, r) {
147
+ t[e] = r.value;
148
+ },
149
+ i = "function" == typeof Symbol ? Symbol : {},
150
+ a = i.iterator || "@@iterator",
151
+ c = i.asyncIterator || "@@asyncIterator",
152
+ u = i.toStringTag || "@@toStringTag";
153
+ function define(t, e, r) {
154
+ return Object.defineProperty(t, e, {
155
+ value: r,
156
+ enumerable: !0,
157
+ configurable: !0,
158
+ writable: !0
159
+ }), t[e];
265
160
  }
266
161
  try {
267
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
268
162
  define({}, "");
269
- } catch (err) {
270
- define = function(obj, key, value) {
271
- return obj[key] = value;
163
+ } catch (t) {
164
+ define = function define(t, e, r) {
165
+ return t[e] = r;
272
166
  };
273
167
  }
274
-
275
- function wrap(innerFn, outerFn, self, tryLocsList) {
276
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
277
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
278
- var generator = Object.create(protoGenerator.prototype);
279
- var context = new Context(tryLocsList || []);
280
-
281
- // The ._invoke method unifies the implementations of the .next,
282
- // .throw, and .return methods.
283
- generator._invoke = makeInvokeMethod(innerFn, self, context);
284
-
285
- return generator;
168
+ function wrap(t, e, r, n) {
169
+ var i = e && e.prototype instanceof Generator ? e : Generator,
170
+ a = Object.create(i.prototype),
171
+ c = new Context(n || []);
172
+ return o(a, "_invoke", {
173
+ value: makeInvokeMethod(t, r, c)
174
+ }), a;
286
175
  }
287
- exports.wrap = wrap;
288
-
289
- // Try/catch helper to minimize deoptimizations. Returns a completion
290
- // record like context.tryEntries[i].completion. This interface could
291
- // have been (and was previously) designed to take a closure to be
292
- // invoked without arguments, but in all the cases we care about we
293
- // already have an existing method we want to call, so there's no need
294
- // to create a new function object. We can even get away with assuming
295
- // the method takes exactly one argument, since that happens to be true
296
- // in every case, so we don't have to touch the arguments object. The
297
- // only additional allocation required is the completion record, which
298
- // has a stable shape and so hopefully should be cheap to allocate.
299
- function tryCatch(fn, obj, arg) {
176
+ function tryCatch(t, e, r) {
300
177
  try {
301
- return { type: "normal", arg: fn.call(obj, arg) };
302
- } catch (err) {
303
- return { type: "throw", arg: err };
178
+ return {
179
+ type: "normal",
180
+ arg: t.call(e, r)
181
+ };
182
+ } catch (t) {
183
+ return {
184
+ type: "throw",
185
+ arg: t
186
+ };
304
187
  }
305
188
  }
306
-
307
- var GenStateSuspendedStart = "suspendedStart";
308
- var GenStateSuspendedYield = "suspendedYield";
309
- var GenStateExecuting = "executing";
310
- var GenStateCompleted = "completed";
311
-
312
- // Returning this object from the innerFn has the same effect as
313
- // breaking out of the dispatch switch statement.
314
- var ContinueSentinel = {};
315
-
316
- // Dummy constructor functions that we use as the .constructor and
317
- // .constructor.prototype properties for functions that return Generator
318
- // objects. For full spec compliance, you may wish to configure your
319
- // minifier not to mangle the names of these two functions.
189
+ e.wrap = wrap;
190
+ var h = "suspendedStart",
191
+ l = "suspendedYield",
192
+ f = "executing",
193
+ s = "completed",
194
+ y = {};
320
195
  function Generator() {}
321
196
  function GeneratorFunction() {}
322
197
  function GeneratorFunctionPrototype() {}
323
-
324
- // This is a polyfill for %IteratorPrototype% for environments that
325
- // don't natively support it.
326
- var IteratorPrototype = {};
327
- IteratorPrototype[iteratorSymbol] = function () {
198
+ var p = {};
199
+ define(p, a, function () {
328
200
  return this;
329
- };
330
-
331
- var getProto = Object.getPrototypeOf;
332
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
333
- if (NativeIteratorPrototype &&
334
- NativeIteratorPrototype !== Op &&
335
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
336
- // This environment has a native %IteratorPrototype%; use it instead
337
- // of the polyfill.
338
- IteratorPrototype = NativeIteratorPrototype;
339
- }
340
-
341
- var Gp = GeneratorFunctionPrototype.prototype =
342
- Generator.prototype = Object.create(IteratorPrototype);
343
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
344
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
345
- GeneratorFunction.displayName = define(
346
- GeneratorFunctionPrototype,
347
- toStringTagSymbol,
348
- "GeneratorFunction"
349
- );
350
-
351
- // Helper for defining the .next, .throw, and .return methods of the
352
- // Iterator interface in terms of a single ._invoke method.
353
- function defineIteratorMethods(prototype) {
354
- ["next", "throw", "return"].forEach(function(method) {
355
- define(prototype, method, function(arg) {
356
- return this._invoke(method, arg);
201
+ });
202
+ var d = Object.getPrototypeOf,
203
+ v = d && d(d(values([])));
204
+ v && v !== r && n.call(v, a) && (p = v);
205
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
206
+ function defineIteratorMethods(t) {
207
+ ["next", "throw", "return"].forEach(function (e) {
208
+ define(t, e, function (t) {
209
+ return this._invoke(e, t);
357
210
  });
358
211
  });
359
212
  }
360
-
361
- exports.isGeneratorFunction = function(genFun) {
362
- var ctor = typeof genFun === "function" && genFun.constructor;
363
- return ctor
364
- ? ctor === GeneratorFunction ||
365
- // For the native GeneratorFunction constructor, the best we can
366
- // do is to check its .name property.
367
- (ctor.displayName || ctor.name) === "GeneratorFunction"
368
- : false;
369
- };
370
-
371
- exports.mark = function(genFun) {
372
- if (Object.setPrototypeOf) {
373
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
374
- } else {
375
- genFun.__proto__ = GeneratorFunctionPrototype;
376
- define(genFun, toStringTagSymbol, "GeneratorFunction");
377
- }
378
- genFun.prototype = Object.create(Gp);
379
- return genFun;
380
- };
381
-
382
- // Within the body of any async function, `await x` is transformed to
383
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
384
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
385
- // meant to be awaited.
386
- exports.awrap = function(arg) {
387
- return { __await: arg };
388
- };
389
-
390
- function AsyncIterator(generator, PromiseImpl) {
391
- function invoke(method, arg, resolve, reject) {
392
- var record = tryCatch(generator[method], generator, arg);
393
- if (record.type === "throw") {
394
- reject(record.arg);
395
- } else {
396
- var result = record.arg;
397
- var value = result.value;
398
- if (value &&
399
- typeof value === "object" &&
400
- hasOwn.call(value, "__await")) {
401
- return PromiseImpl.resolve(value.__await).then(function(value) {
402
- invoke("next", value, resolve, reject);
403
- }, function(err) {
404
- invoke("throw", err, resolve, reject);
405
- });
406
- }
407
-
408
- return PromiseImpl.resolve(value).then(function(unwrapped) {
409
- // When a yielded Promise is resolved, its final value becomes
410
- // the .value of the Promise<{value,done}> result for the
411
- // current iteration.
412
- result.value = unwrapped;
413
- resolve(result);
414
- }, function(error) {
415
- // If a rejected Promise was yielded, throw the rejection back
416
- // into the async generator function so it can be handled there.
417
- return invoke("throw", error, resolve, reject);
213
+ function AsyncIterator(t, e) {
214
+ function invoke(r, o, i, a) {
215
+ var c = tryCatch(t[r], t, o);
216
+ if ("throw" !== c.type) {
217
+ var u = c.arg,
218
+ h = u.value;
219
+ return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
220
+ invoke("next", t, i, a);
221
+ }, function (t) {
222
+ invoke("throw", t, i, a);
223
+ }) : e.resolve(h).then(function (t) {
224
+ u.value = t, i(u);
225
+ }, function (t) {
226
+ return invoke("throw", t, i, a);
418
227
  });
419
228
  }
229
+ a(c.arg);
420
230
  }
421
-
422
- var previousPromise;
423
-
424
- function enqueue(method, arg) {
425
- function callInvokeWithMethodAndArg() {
426
- return new PromiseImpl(function(resolve, reject) {
427
- invoke(method, arg, resolve, reject);
428
- });
231
+ var r;
232
+ o(this, "_invoke", {
233
+ value: function value(t, n) {
234
+ function callInvokeWithMethodAndArg() {
235
+ return new e(function (e, r) {
236
+ invoke(t, n, e, r);
237
+ });
238
+ }
239
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
429
240
  }
430
-
431
- return previousPromise =
432
- // If enqueue has been called before, then we want to wait until
433
- // all previous Promises have been resolved before calling invoke,
434
- // so that results are always delivered in the correct order. If
435
- // enqueue has not been called before, then it is important to
436
- // call invoke immediately, without waiting on a callback to fire,
437
- // so that the async generator function has the opportunity to do
438
- // any necessary setup in a predictable way. This predictability
439
- // is why the Promise constructor synchronously invokes its
440
- // executor callback, and why async functions synchronously
441
- // execute code before the first await. Since we implement simple
442
- // async functions in terms of async generators, it is especially
443
- // important to get this right, even though it requires care.
444
- previousPromise ? previousPromise.then(
445
- callInvokeWithMethodAndArg,
446
- // Avoid propagating failures to Promises returned by later
447
- // invocations of the iterator.
448
- callInvokeWithMethodAndArg
449
- ) : callInvokeWithMethodAndArg();
450
- }
451
-
452
- // Define the unified helper method that is used to implement .next,
453
- // .throw, and .return (see defineIteratorMethods).
454
- this._invoke = enqueue;
241
+ });
455
242
  }
456
-
457
- defineIteratorMethods(AsyncIterator.prototype);
458
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
459
- return this;
460
- };
461
- exports.AsyncIterator = AsyncIterator;
462
-
463
- // Note that simple async functions are implemented on top of
464
- // AsyncIterator objects; they just return a Promise for the value of
465
- // the final result produced by the iterator.
466
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
467
- if (PromiseImpl === void 0) PromiseImpl = Promise;
468
-
469
- var iter = new AsyncIterator(
470
- wrap(innerFn, outerFn, self, tryLocsList),
471
- PromiseImpl
472
- );
473
-
474
- return exports.isGeneratorFunction(outerFn)
475
- ? iter // If outerFn is a generator, return the full iterator.
476
- : iter.next().then(function(result) {
477
- return result.done ? result.value : iter.next();
478
- });
479
- };
480
-
481
- function makeInvokeMethod(innerFn, self, context) {
482
- var state = GenStateSuspendedStart;
483
-
484
- return function invoke(method, arg) {
485
- if (state === GenStateExecuting) {
486
- throw new Error("Generator is already running");
487
- }
488
-
489
- if (state === GenStateCompleted) {
490
- if (method === "throw") {
491
- throw arg;
492
- }
493
-
494
- // Be forgiving, per 25.3.3.3.3 of the spec:
495
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
496
- return doneResult();
243
+ function makeInvokeMethod(e, r, n) {
244
+ var o = h;
245
+ return function (i, a) {
246
+ if (o === f) throw new Error("Generator is already running");
247
+ if (o === s) {
248
+ if ("throw" === i) throw a;
249
+ return {
250
+ value: t,
251
+ done: !0
252
+ };
497
253
  }
498
-
499
- context.method = method;
500
- context.arg = arg;
501
-
502
- while (true) {
503
- var delegate = context.delegate;
504
- if (delegate) {
505
- var delegateResult = maybeInvokeDelegate(delegate, context);
506
- if (delegateResult) {
507
- if (delegateResult === ContinueSentinel) continue;
508
- return delegateResult;
254
+ for (n.method = i, n.arg = a;;) {
255
+ var c = n.delegate;
256
+ if (c) {
257
+ var u = maybeInvokeDelegate(c, n);
258
+ if (u) {
259
+ if (u === y) continue;
260
+ return u;
509
261
  }
510
262
  }
511
-
512
- if (context.method === "next") {
513
- // Setting context._sent for legacy support of Babel's
514
- // function.sent implementation.
515
- context.sent = context._sent = context.arg;
516
-
517
- } else if (context.method === "throw") {
518
- if (state === GenStateSuspendedStart) {
519
- state = GenStateCompleted;
520
- throw context.arg;
521
- }
522
-
523
- context.dispatchException(context.arg);
524
-
525
- } else if (context.method === "return") {
526
- context.abrupt("return", context.arg);
527
- }
528
-
529
- state = GenStateExecuting;
530
-
531
- var record = tryCatch(innerFn, self, context);
532
- if (record.type === "normal") {
533
- // If an exception is thrown from innerFn, we leave state ===
534
- // GenStateExecuting and loop back for another invocation.
535
- state = context.done
536
- ? GenStateCompleted
537
- : GenStateSuspendedYield;
538
-
539
- if (record.arg === ContinueSentinel) {
540
- continue;
541
- }
542
-
263
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
264
+ if (o === h) throw o = s, n.arg;
265
+ n.dispatchException(n.arg);
266
+ } else "return" === n.method && n.abrupt("return", n.arg);
267
+ o = f;
268
+ var p = tryCatch(e, r, n);
269
+ if ("normal" === p.type) {
270
+ if (o = n.done ? s : l, p.arg === y) continue;
543
271
  return {
544
- value: record.arg,
545
- done: context.done
272
+ value: p.arg,
273
+ done: n.done
546
274
  };
547
-
548
- } else if (record.type === "throw") {
549
- state = GenStateCompleted;
550
- // Dispatch the exception by looping back around to the
551
- // context.dispatchException(context.arg) call above.
552
- context.method = "throw";
553
- context.arg = record.arg;
554
275
  }
276
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
555
277
  }
556
278
  };
557
279
  }
558
-
559
- // Call delegate.iterator[context.method](context.arg) and handle the
560
- // result, either by returning a { value, done } result from the
561
- // delegate iterator, or by modifying context.method and context.arg,
562
- // setting context.delegate to null, and returning the ContinueSentinel.
563
- function maybeInvokeDelegate(delegate, context) {
564
- var method = delegate.iterator[context.method];
565
- if (method === undefined) {
566
- // A .throw or .return when the delegate iterator has no .throw
567
- // method always terminates the yield* loop.
568
- context.delegate = null;
569
-
570
- if (context.method === "throw") {
571
- // Note: ["return"] must be used for ES3 parsing compatibility.
572
- if (delegate.iterator["return"]) {
573
- // If the delegate iterator has a return method, give it a
574
- // chance to clean up.
575
- context.method = "return";
576
- context.arg = undefined;
577
- maybeInvokeDelegate(delegate, context);
578
-
579
- if (context.method === "throw") {
580
- // If maybeInvokeDelegate(context) changed context.method from
581
- // "return" to "throw", let that override the TypeError below.
582
- return ContinueSentinel;
583
- }
584
- }
585
-
586
- context.method = "throw";
587
- context.arg = new TypeError(
588
- "The iterator does not provide a 'throw' method");
589
- }
590
-
591
- return ContinueSentinel;
592
- }
593
-
594
- var record = tryCatch(method, delegate.iterator, context.arg);
595
-
596
- if (record.type === "throw") {
597
- context.method = "throw";
598
- context.arg = record.arg;
599
- context.delegate = null;
600
- return ContinueSentinel;
601
- }
602
-
603
- var info = record.arg;
604
-
605
- if (! info) {
606
- context.method = "throw";
607
- context.arg = new TypeError("iterator result is not an object");
608
- context.delegate = null;
609
- return ContinueSentinel;
610
- }
611
-
612
- if (info.done) {
613
- // Assign the result of the finished delegate to the temporary
614
- // variable specified by delegate.resultName (see delegateYield).
615
- context[delegate.resultName] = info.value;
616
-
617
- // Resume execution at the desired location (see delegateYield).
618
- context.next = delegate.nextLoc;
619
-
620
- // If context.method was "throw" but the delegate handled the
621
- // exception, let the outer generator proceed normally. If
622
- // context.method was "next", forget context.arg since it has been
623
- // "consumed" by the delegate iterator. If context.method was
624
- // "return", allow the original .return call to continue in the
625
- // outer generator.
626
- if (context.method !== "return") {
627
- context.method = "next";
628
- context.arg = undefined;
629
- }
630
-
631
- } else {
632
- // Re-yield the result returned by the delegate method.
633
- return info;
634
- }
635
-
636
- // The delegate iterator is finished, so forget it and continue with
637
- // the outer generator.
638
- context.delegate = null;
639
- return ContinueSentinel;
280
+ function maybeInvokeDelegate(e, r) {
281
+ var n = r.method,
282
+ o = e.iterator[n];
283
+ 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;
284
+ var i = tryCatch(o, e.iterator, r.arg);
285
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
286
+ var a = i.arg;
287
+ 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);
640
288
  }
641
-
642
- // Define Generator.prototype.{next,throw,return} in terms of the
643
- // unified ._invoke helper method.
644
- defineIteratorMethods(Gp);
645
-
646
- define(Gp, toStringTagSymbol, "Generator");
647
-
648
- // A Generator should always return itself as the iterator object when the
649
- // @@iterator function is called on it. Some browsers' implementations of the
650
- // iterator prototype chain incorrectly implement this, causing the Generator
651
- // object to not be returned from this call. This ensures that doesn't happen.
652
- // See https://github.com/facebook/regenerator/issues/274 for more details.
653
- Gp[iteratorSymbol] = function() {
654
- return this;
655
- };
656
-
657
- Gp.toString = function() {
658
- return "[object Generator]";
659
- };
660
-
661
- function pushTryEntry(locs) {
662
- var entry = { tryLoc: locs[0] };
663
-
664
- if (1 in locs) {
665
- entry.catchLoc = locs[1];
666
- }
667
-
668
- if (2 in locs) {
669
- entry.finallyLoc = locs[2];
670
- entry.afterLoc = locs[3];
671
- }
672
-
673
- this.tryEntries.push(entry);
289
+ function pushTryEntry(t) {
290
+ var e = {
291
+ tryLoc: t[0]
292
+ };
293
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
674
294
  }
675
-
676
- function resetTryEntry(entry) {
677
- var record = entry.completion || {};
678
- record.type = "normal";
679
- delete record.arg;
680
- entry.completion = record;
295
+ function resetTryEntry(t) {
296
+ var e = t.completion || {};
297
+ e.type = "normal", delete e.arg, t.completion = e;
681
298
  }
682
-
683
- function Context(tryLocsList) {
684
- // The root entry object (effectively a try statement without a catch
685
- // or a finally block) gives us a place to store values thrown from
686
- // locations where there is no enclosing try statement.
687
- this.tryEntries = [{ tryLoc: "root" }];
688
- tryLocsList.forEach(pushTryEntry, this);
689
- this.reset(true);
299
+ function Context(t) {
300
+ this.tryEntries = [{
301
+ tryLoc: "root"
302
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
690
303
  }
691
-
692
- exports.keys = function(object) {
693
- var keys = [];
694
- for (var key in object) {
695
- keys.push(key);
696
- }
697
- keys.reverse();
698
-
699
- // Rather than returning an object with a next method, we keep
700
- // things simple and return the next function itself.
701
- return function next() {
702
- while (keys.length) {
703
- var key = keys.pop();
704
- if (key in object) {
705
- next.value = key;
706
- next.done = false;
707
- return next;
708
- }
709
- }
710
-
711
- // To avoid creating an additional object, we just hang the .value
712
- // and .done properties off the next function object itself. This
713
- // also ensures that the minifier will not anonymize the function.
714
- next.done = true;
715
- return next;
716
- };
717
- };
718
-
719
- function values(iterable) {
720
- if (iterable) {
721
- var iteratorMethod = iterable[iteratorSymbol];
722
- if (iteratorMethod) {
723
- return iteratorMethod.call(iterable);
724
- }
725
-
726
- if (typeof iterable.next === "function") {
727
- return iterable;
728
- }
729
-
730
- if (!isNaN(iterable.length)) {
731
- var i = -1, next = function next() {
732
- while (++i < iterable.length) {
733
- if (hasOwn.call(iterable, i)) {
734
- next.value = iterable[i];
735
- next.done = false;
736
- return next;
737
- }
738
- }
739
-
740
- next.value = undefined;
741
- next.done = true;
742
-
743
- return next;
744
- };
745
-
746
- return next.next = next;
304
+ function values(e) {
305
+ if (e || "" === e) {
306
+ var r = e[a];
307
+ if (r) return r.call(e);
308
+ if ("function" == typeof e.next) return e;
309
+ if (!isNaN(e.length)) {
310
+ var o = -1,
311
+ i = function next() {
312
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
313
+ return next.value = t, next.done = !0, next;
314
+ };
315
+ return i.next = i;
747
316
  }
748
317
  }
749
-
750
- // Return an iterator with no values.
751
- return { next: doneResult };
752
- }
753
- exports.values = values;
754
-
755
- function doneResult() {
756
- return { value: undefined, done: true };
318
+ throw new TypeError(_typeof(e) + " is not iterable");
757
319
  }
758
-
759
- Context.prototype = {
760
- constructor: Context,
761
-
762
- reset: function(skipTempReset) {
763
- this.prev = 0;
764
- this.next = 0;
765
- // Resetting context._sent for legacy support of Babel's
766
- // function.sent implementation.
767
- this.sent = this._sent = undefined;
768
- this.done = false;
769
- this.delegate = null;
770
-
771
- this.method = "next";
772
- this.arg = undefined;
773
-
774
- this.tryEntries.forEach(resetTryEntry);
775
-
776
- if (!skipTempReset) {
777
- for (var name in this) {
778
- // Not sure about the optimal order of these conditions:
779
- if (name.charAt(0) === "t" &&
780
- hasOwn.call(this, name) &&
781
- !isNaN(+name.slice(1))) {
782
- this[name] = undefined;
783
- }
784
- }
320
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
321
+ value: GeneratorFunctionPrototype,
322
+ configurable: !0
323
+ }), o(GeneratorFunctionPrototype, "constructor", {
324
+ value: GeneratorFunction,
325
+ configurable: !0
326
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
327
+ var e = "function" == typeof t && t.constructor;
328
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
329
+ }, e.mark = function (t) {
330
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
331
+ }, e.awrap = function (t) {
332
+ return {
333
+ __await: t
334
+ };
335
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
336
+ return this;
337
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
338
+ void 0 === i && (i = Promise);
339
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
340
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
341
+ return t.done ? t.value : a.next();
342
+ });
343
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
344
+ return this;
345
+ }), define(g, "toString", function () {
346
+ return "[object Generator]";
347
+ }), e.keys = function (t) {
348
+ var e = Object(t),
349
+ r = [];
350
+ for (var n in e) r.push(n);
351
+ return r.reverse(), function next() {
352
+ for (; r.length;) {
353
+ var t = r.pop();
354
+ if (t in e) return next.value = t, next.done = !1, next;
785
355
  }
356
+ return next.done = !0, next;
357
+ };
358
+ }, e.values = values, Context.prototype = {
359
+ constructor: Context,
360
+ reset: function reset(e) {
361
+ 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);
786
362
  },
787
-
788
- stop: function() {
789
- this.done = true;
790
-
791
- var rootEntry = this.tryEntries[0];
792
- var rootRecord = rootEntry.completion;
793
- if (rootRecord.type === "throw") {
794
- throw rootRecord.arg;
795
- }
796
-
363
+ stop: function stop() {
364
+ this.done = !0;
365
+ var t = this.tryEntries[0].completion;
366
+ if ("throw" === t.type) throw t.arg;
797
367
  return this.rval;
798
368
  },
799
-
800
- dispatchException: function(exception) {
801
- if (this.done) {
802
- throw exception;
803
- }
804
-
805
- var context = this;
806
- function handle(loc, caught) {
807
- record.type = "throw";
808
- record.arg = exception;
809
- context.next = loc;
810
-
811
- if (caught) {
812
- // If the dispatched exception was caught by a catch block,
813
- // then let that catch block handle the exception normally.
814
- context.method = "next";
815
- context.arg = undefined;
816
- }
817
-
818
- return !! caught;
369
+ dispatchException: function dispatchException(e) {
370
+ if (this.done) throw e;
371
+ var r = this;
372
+ function handle(n, o) {
373
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
819
374
  }
820
-
821
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
822
- var entry = this.tryEntries[i];
823
- var record = entry.completion;
824
-
825
- if (entry.tryLoc === "root") {
826
- // Exception thrown outside of any try block that could handle
827
- // it, so set the completion value of the entire function to
828
- // throw the exception.
829
- return handle("end");
830
- }
831
-
832
- if (entry.tryLoc <= this.prev) {
833
- var hasCatch = hasOwn.call(entry, "catchLoc");
834
- var hasFinally = hasOwn.call(entry, "finallyLoc");
835
-
836
- if (hasCatch && hasFinally) {
837
- if (this.prev < entry.catchLoc) {
838
- return handle(entry.catchLoc, true);
839
- } else if (this.prev < entry.finallyLoc) {
840
- return handle(entry.finallyLoc);
841
- }
842
-
843
- } else if (hasCatch) {
844
- if (this.prev < entry.catchLoc) {
845
- return handle(entry.catchLoc, true);
846
- }
847
-
848
- } else if (hasFinally) {
849
- if (this.prev < entry.finallyLoc) {
850
- return handle(entry.finallyLoc);
851
- }
852
-
375
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
376
+ var i = this.tryEntries[o],
377
+ a = i.completion;
378
+ if ("root" === i.tryLoc) return handle("end");
379
+ if (i.tryLoc <= this.prev) {
380
+ var c = n.call(i, "catchLoc"),
381
+ u = n.call(i, "finallyLoc");
382
+ if (c && u) {
383
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
384
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
385
+ } else if (c) {
386
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
853
387
  } else {
854
- throw new Error("try statement without catch or finally");
388
+ if (!u) throw new Error("try statement without catch or finally");
389
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
855
390
  }
856
391
  }
857
392
  }
858
393
  },
859
-
860
- abrupt: function(type, arg) {
861
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
862
- var entry = this.tryEntries[i];
863
- if (entry.tryLoc <= this.prev &&
864
- hasOwn.call(entry, "finallyLoc") &&
865
- this.prev < entry.finallyLoc) {
866
- var finallyEntry = entry;
394
+ abrupt: function abrupt(t, e) {
395
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
396
+ var o = this.tryEntries[r];
397
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
398
+ var i = o;
867
399
  break;
868
400
  }
869
401
  }
870
-
871
- if (finallyEntry &&
872
- (type === "break" ||
873
- type === "continue") &&
874
- finallyEntry.tryLoc <= arg &&
875
- arg <= finallyEntry.finallyLoc) {
876
- // Ignore the finally entry if control is not jumping to a
877
- // location outside the try/catch block.
878
- finallyEntry = null;
879
- }
880
-
881
- var record = finallyEntry ? finallyEntry.completion : {};
882
- record.type = type;
883
- record.arg = arg;
884
-
885
- if (finallyEntry) {
886
- this.method = "next";
887
- this.next = finallyEntry.finallyLoc;
888
- return ContinueSentinel;
889
- }
890
-
891
- return this.complete(record);
402
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
403
+ var a = i ? i.completion : {};
404
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
892
405
  },
893
-
894
- complete: function(record, afterLoc) {
895
- if (record.type === "throw") {
896
- throw record.arg;
897
- }
898
-
899
- if (record.type === "break" ||
900
- record.type === "continue") {
901
- this.next = record.arg;
902
- } else if (record.type === "return") {
903
- this.rval = this.arg = record.arg;
904
- this.method = "return";
905
- this.next = "end";
906
- } else if (record.type === "normal" && afterLoc) {
907
- this.next = afterLoc;
908
- }
909
-
910
- return ContinueSentinel;
406
+ complete: function complete(t, e) {
407
+ if ("throw" === t.type) throw t.arg;
408
+ 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;
911
409
  },
912
-
913
- finish: function(finallyLoc) {
914
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
915
- var entry = this.tryEntries[i];
916
- if (entry.finallyLoc === finallyLoc) {
917
- this.complete(entry.completion, entry.afterLoc);
918
- resetTryEntry(entry);
919
- return ContinueSentinel;
920
- }
410
+ finish: function finish(t) {
411
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
412
+ var r = this.tryEntries[e];
413
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
921
414
  }
922
415
  },
923
-
924
- "catch": function(tryLoc) {
925
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
926
- var entry = this.tryEntries[i];
927
- if (entry.tryLoc === tryLoc) {
928
- var record = entry.completion;
929
- if (record.type === "throw") {
930
- var thrown = record.arg;
931
- resetTryEntry(entry);
416
+ "catch": function _catch(t) {
417
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
418
+ var r = this.tryEntries[e];
419
+ if (r.tryLoc === t) {
420
+ var n = r.completion;
421
+ if ("throw" === n.type) {
422
+ var o = n.arg;
423
+ resetTryEntry(r);
932
424
  }
933
- return thrown;
425
+ return o;
934
426
  }
935
427
  }
936
-
937
- // The context.catch method must only be called with a location
938
- // argument that corresponds to a known catch block.
939
428
  throw new Error("illegal catch attempt");
940
429
  },
430
+ delegateYield: function delegateYield(e, r, n) {
431
+ return this.delegate = {
432
+ iterator: values(e),
433
+ resultName: r,
434
+ nextLoc: n
435
+ }, "next" === this.method && (this.arg = t), y;
436
+ }
437
+ }, e;
438
+ }
439
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
941
440
 
942
- delegateYield: function(iterable, resultName, nextLoc) {
943
- this.delegate = {
944
- iterator: values(iterable),
945
- resultName: resultName,
946
- nextLoc: nextLoc
947
- };
441
+ /***/ }),
948
442
 
949
- if (this.method === "next") {
950
- // Deliberately forget the last sent value so that we don't
951
- // accidentally pass it on to the delegate.
952
- this.arg = undefined;
953
- }
443
+ /***/ 8698:
444
+ /***/ ((module) => {
954
445
 
955
- return ContinueSentinel;
956
- }
957
- };
446
+ function _typeof(o) {
447
+ "@babel/helpers - typeof";
958
448
 
959
- // Regardless of whether this script is executing as a CommonJS module
960
- // or not, return the runtime object so that we can declare the variable
961
- // regeneratorRuntime in the outer scope, which allows this module to be
962
- // injected easily by `bin/regenerator --include-runtime script.js`.
963
- return exports;
449
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
450
+ return typeof o;
451
+ } : function (o) {
452
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
453
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
454
+ }
455
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
456
+
457
+ /***/ }),
964
458
 
965
- }(
966
- // If this script is executing as a CommonJS module, use module.exports
967
- // as the regeneratorRuntime namespace. Otherwise create a new empty
968
- // object. Either way, the resulting object will be used to initialize
969
- // the regeneratorRuntime variable at the top of this file.
970
- true ? module.exports : 0
971
- ));
459
+ /***/ 4687:
460
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
972
461
 
462
+ // TODO(Babel 8): Remove this file.
463
+
464
+ var runtime = __webpack_require__(7061)();
465
+ module.exports = runtime;
466
+
467
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
973
468
  try {
974
469
  regeneratorRuntime = runtime;
975
470
  } catch (accidentalStrictMode) {
976
- // This module should not be running in strict mode, so the above
977
- // assignment should always work unless something is misconfigured. Just
978
- // in case runtime.js accidentally runs in strict mode, we can escape
979
- // strict mode using a global Function call. This could conceivably fail
980
- // if a Content Security Policy forbids using Function, but in that case
981
- // the proper solution is to fix the accidental strict mode problem. If
982
- // you've misconfigured your bundler to force strict mode and applied a
983
- // CSP to forbid Function, and you're not willing to fix either of those
984
- // problems, please detail your unique predicament in a GitHub issue.
985
- Function("r", "regeneratorRuntime = r")(runtime);
471
+ if (typeof globalThis === "object") {
472
+ globalThis.regeneratorRuntime = runtime;
473
+ } else {
474
+ Function("r", "regeneratorRuntime = r")(runtime);
475
+ }
986
476
  }
987
477
 
988
478
 
989
- /***/ }),
990
-
991
- /***/ 9281:
992
- /***/ ((module) => {
993
-
994
- "use strict";
995
- module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
996
-
997
479
  /***/ })
998
480
 
999
481
  /******/ });
@@ -1070,15 +552,15 @@ var __webpack_exports__ = {};
1070
552
  "use strict";
1071
553
  __webpack_require__.r(__webpack_exports__);
1072
554
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1073
- /* harmony export */ "themes": () => (/* binding */ themes),
1074
555
  /* harmony export */ "ThemeContext": () => (/* binding */ ThemeContext),
1075
- /* harmony export */ "default": () => (/* binding */ Uptime)
556
+ /* harmony export */ "default": () => (/* binding */ Uptime),
557
+ /* harmony export */ "themes": () => (/* binding */ themes)
1076
558
  /* harmony export */ });
1077
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7757);
559
+ /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4687);
1078
560
  /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
1079
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9281);
561
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5225);
1080
562
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1081
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5697);
563
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6073);
1082
564
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
1083
565
  /* harmony import */ var _FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5751);
1084
566
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
@@ -1217,7 +699,7 @@ function StatusCtaLink(_ref3) {
1217
699
  className: "ui-uptime-link-back"
1218
700
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ThemeContext.Consumer, null, function (_ref4) {
1219
701
  var iconColor = _ref4.iconColor;
1220
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_3__.default, {
702
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
1221
703
  url: href,
1222
704
  iconColor: iconColor
1223
705
  }, text);