@ably/ui 8.7.0-dev.d70b391 → 8.7.0-dev.dff3090

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.
@@ -1,3279 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("react"));
4
- else if(typeof define === 'function' && define.amd)
5
- define([], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("react")) : factory(root[undefined]);
8
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
- }
10
- })(this, function(__WEBPACK_EXTERNAL_MODULE_react__) {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ var __webpack_modules__ = ({
13
-
14
- /***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
15
- /*!*******************************************************************!*\
16
- !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
17
- \*******************************************************************/
18
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
19
-
20
- "use strict";
21
- __webpack_require__.r(__webpack_exports__);
22
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
- /* harmony export */ "default": () => (/* binding */ _defineProperty)
24
- /* harmony export */ });
25
- function _defineProperty(obj, key, value) {
26
- if (key in obj) {
27
- Object.defineProperty(obj, key, {
28
- value: value,
29
- enumerable: true,
30
- configurable: true,
31
- writable: true
32
- });
33
- } else {
34
- obj[key] = value;
35
- }
36
-
37
- return obj;
38
- }
39
-
40
- /***/ }),
41
-
42
- /***/ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js":
43
- /*!******************************************************************!*\
44
- !*** ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
45
- \******************************************************************/
46
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
47
-
48
- "use strict";
49
- __webpack_require__.r(__webpack_exports__);
50
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
51
- /* harmony export */ "default": () => (/* binding */ _objectSpread2)
52
- /* harmony export */ });
53
- /* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
54
-
55
-
56
- function ownKeys(object, enumerableOnly) {
57
- var keys = Object.keys(object);
58
-
59
- if (Object.getOwnPropertySymbols) {
60
- var symbols = Object.getOwnPropertySymbols(object);
61
-
62
- if (enumerableOnly) {
63
- symbols = symbols.filter(function (sym) {
64
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
65
- });
66
- }
67
-
68
- keys.push.apply(keys, symbols);
69
- }
70
-
71
- return keys;
72
- }
73
-
74
- function _objectSpread2(target) {
75
- for (var i = 1; i < arguments.length; i++) {
76
- var source = arguments[i] != null ? arguments[i] : {};
77
-
78
- if (i % 2) {
79
- ownKeys(Object(source), true).forEach(function (key) {
80
- (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.default)(target, key, source[key]);
81
- });
82
- } else if (Object.getOwnPropertyDescriptors) {
83
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
84
- } else {
85
- ownKeys(Object(source)).forEach(function (key) {
86
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
87
- });
88
- }
89
- }
90
-
91
- return target;
92
- }
93
-
94
- /***/ }),
95
-
96
- /***/ "./node_modules/@babel/runtime/regenerator/index.js":
97
- /*!**********************************************************!*\
98
- !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
99
- \**********************************************************/
100
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
101
-
102
- module.exports = __webpack_require__(/*! regenerator-runtime */ "./node_modules/regenerator-runtime/runtime.js");
103
-
104
-
105
- /***/ }),
106
-
107
- /***/ "./src/core/ConnectStateWrapper/component.jsx":
108
- /*!****************************************************!*\
109
- !*** ./src/core/ConnectStateWrapper/component.jsx ***!
110
- \****************************************************/
111
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
112
-
113
- "use strict";
114
- __webpack_require__.r(__webpack_exports__);
115
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
116
- /* harmony export */ "ConnectStateWrapper": () => (/* binding */ ConnectStateWrapper),
117
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
118
- /* harmony export */ });
119
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
120
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
121
- /* harmony import */ var _remote_data_store__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../remote-data-store */ "./src/core/remote-data-store.js");
122
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
123
-
124
- 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; }
125
-
126
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
127
-
128
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
129
-
130
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
131
-
132
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
133
-
134
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
135
-
136
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
137
-
138
- function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
139
-
140
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
141
-
142
-
143
-
144
- /*
145
- Connect a react component to a global store.
146
- This is similar to what react-redux does but uses our global store so
147
- can share state with other React mount points or anything that uses the
148
- store.
149
- - selectors is an object where keys are your prop names and values are your select
150
- functions that work on the store to retrieve the state you are interested in
151
- - initial state is set in useEffect so the wrapped component needs to handle it's props set to undefined initially
152
- */
153
-
154
- var ConnectStateWrapper = function ConnectStateWrapper(Component, selectors) {
155
- var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),
156
- _useState2 = _slicedToArray(_useState, 2),
157
- state = _useState2[0],
158
- setState = _useState2[1];
159
-
160
- var setStateForKey = function setStateForKey(key) {
161
- return function (storeState) {
162
- return setState(function () {
163
- return _defineProperty({}, key, storeState);
164
- });
165
- };
166
- };
167
-
168
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
169
- var store = (0,_remote_data_store__WEBPACK_IMPORTED_MODULE_1__.getRemoteDataStore)();
170
- var resolvedState = Object.keys(selectors).reduce(function (acc, key) {
171
- return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, key, selectors[key](store)));
172
- }, {}); // Set initial state
173
-
174
- setState(resolvedState); // Create a store subscription for each selector. Depending on your use case, this can be inefficient.
175
- // When optimising for renders, look for wins with selectors better for your use and using connectState directly.
176
-
177
- Object.keys(selectors).forEach(function (key) {
178
- (0,_remote_data_store__WEBPACK_IMPORTED_MODULE_1__.connectState)(selectors[key], setStateForKey(key));
179
- });
180
- }, []);
181
-
182
- var WrappedComponent = function WrappedComponent(props) {
183
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Component, _extends({}, props, state));
184
- };
185
-
186
- return WrappedComponent;
187
- };
188
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ConnectStateWrapper);
189
-
190
- /***/ }),
191
-
192
- /***/ "./src/core/FeaturedLink/component.jsx":
193
- /*!*********************************************!*\
194
- !*** ./src/core/FeaturedLink/component.jsx ***!
195
- \*********************************************/
196
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
197
-
198
- "use strict";
199
- __webpack_require__.r(__webpack_exports__);
200
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
201
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
202
- /* harmony export */ });
203
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
204
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
205
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
206
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
207
- /* harmony import */ var _Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Icon/component.jsx */ "./src/core/Icon/component.jsx");
208
-
209
-
210
-
211
-
212
- var FeaturedLink = function FeaturedLink(_ref) {
213
- var url = _ref.url,
214
- _ref$textSize = _ref.textSize,
215
- textSize = _ref$textSize === void 0 ? "text-menu3" : _ref$textSize,
216
- _ref$iconColor = _ref.iconColor,
217
- iconColor = _ref$iconColor === void 0 ? "text-cool-black" : _ref$iconColor,
218
- _ref$flush = _ref.flush,
219
- flush = _ref$flush === void 0 ? false : _ref$flush,
220
- children = _ref.children;
221
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
222
- href: url,
223
- className: "ui-featured-link ".concat(textSize, " ").concat(flush ? "" : "py-8", " "),
224
- style: {
225
- "--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
226
- }
227
- }, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__.default, {
228
- name: "icon-gui-link-arrow",
229
- size: "calc(var(--featured-link-icon-size) * 1.25)",
230
- color: iconColor,
231
- additionalCSS: "ui-featured-link-icon"
232
- }));
233
- };
234
-
235
- FeaturedLink.propTypes = {
236
- url: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
237
- children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
238
- textSize: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
239
- iconColor: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
240
- flush: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
241
- };
242
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FeaturedLink);
243
-
244
- /***/ }),
245
-
246
- /***/ "./src/core/Icon/component.jsx":
247
- /*!*************************************!*\
248
- !*** ./src/core/Icon/component.jsx ***!
249
- \*************************************/
250
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
251
-
252
- "use strict";
253
- __webpack_require__.r(__webpack_exports__);
254
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
255
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
256
- /* harmony export */ });
257
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
258
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
259
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
260
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
261
- var _excluded = ["name", "size", "color", "additionalCSS"];
262
-
263
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
264
-
265
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
266
-
267
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
268
-
269
-
270
-
271
-
272
- var Icon = function Icon(_ref) {
273
- var name = _ref.name,
274
- _ref$size = _ref.size,
275
- size = _ref$size === void 0 ? "0.75rem" : _ref$size,
276
- _ref$color = _ref.color,
277
- color = _ref$color === void 0 ? "" : _ref$color,
278
- _ref$additionalCSS = _ref.additionalCSS,
279
- additionalCSS = _ref$additionalCSS === void 0 ? "" : _ref$additionalCSS,
280
- additionalAttributes = _objectWithoutProperties(_ref, _excluded);
281
-
282
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", _extends({
283
- className: "".concat(color, " ").concat(additionalCSS),
284
- style: {
285
- width: size,
286
- height: size
287
- }
288
- }, additionalAttributes), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("use", {
289
- xlinkHref: "#sprite-".concat(name)
290
- }));
291
- };
292
-
293
- Icon.propTypes = {
294
- name: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired),
295
- size: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
296
- color: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
297
- additionalCSS: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
298
- };
299
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Icon);
300
-
301
- /***/ }),
302
-
303
- /***/ "./src/core/MeganavBlogPostsList/component.jsx":
304
- /*!*****************************************************!*\
305
- !*** ./src/core/MeganavBlogPostsList/component.jsx ***!
306
- \*****************************************************/
307
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
308
-
309
- "use strict";
310
- __webpack_require__.r(__webpack_exports__);
311
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
312
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
313
- /* harmony export */ });
314
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
315
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
316
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
317
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
318
- /* harmony import */ var _FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../FeaturedLink/component.jsx */ "./src/core/FeaturedLink/component.jsx");
319
-
320
-
321
-
322
-
323
- var MeganavBlogPostsList = function MeganavBlogPostsList(_ref) {
324
- var recentBlogPosts = _ref.recentBlogPosts,
325
- absUrl = _ref.absUrl;
326
- return recentBlogPosts ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h3", {
327
- className: "ui-meganav-overline",
328
- id: "meganav-why-ably-panel-list-blog"
329
- }, "Blog"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("ul", {
330
- className: "mb-8",
331
- "aria-labelledby": "meganav-why-ably-panel-list-blog"
332
- }, recentBlogPosts.map(function (post) {
333
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", {
334
- key: post.link
335
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
336
- href: post.link,
337
- className: "ui-meganav-media group"
338
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
339
- className: "ui-meganav-media-heading"
340
- }, post.title), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
341
- className: "ui-meganav-media-copy"
342
- }, post.pubDate)));
343
- })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_2__.default, {
344
- url: absUrl("/blog")
345
- }, "More from our Blog")) : null;
346
- };
347
-
348
- MeganavBlogPostsList.propTypes = {
349
- recentBlogPosts: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
350
- link: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
351
- title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
352
- pubDate: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
353
- })),
354
- absUrl: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)
355
- };
356
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MeganavBlogPostsList);
357
-
358
- /***/ }),
359
-
360
- /***/ "./src/core/remote-blogs-posts.js":
361
- /*!****************************************!*\
362
- !*** ./src/core/remote-blogs-posts.js ***!
363
- \****************************************/
364
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
365
-
366
- "use strict";
367
- __webpack_require__.r(__webpack_exports__);
368
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
369
- /* harmony export */ "fetchBlogPosts": () => (/* binding */ fetchBlogPosts),
370
- /* harmony export */ "reducerBlogPosts": () => (/* binding */ reducerBlogPosts),
371
- /* harmony export */ "selectRecentBlogPosts": () => (/* binding */ selectRecentBlogPosts)
372
- /* harmony export */ });
373
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
374
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
375
- /* harmony import */ var _remote_data_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./remote-data-util */ "./src/core/remote-data-util.js");
376
- 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; }
377
-
378
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
379
-
380
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
381
-
382
-
383
-
384
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
385
-
386
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
387
-
388
-
389
-
390
- var fetchBlogPosts = /*#__PURE__*/function () {
391
- var _ref = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(store, blogUrl) {
392
- var res, payload;
393
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
394
- while (1) {
395
- switch (_context.prev = _context.next) {
396
- case 0:
397
- _context.prev = 0;
398
-
399
- if (blogUrl) {
400
- _context.next = 4;
401
- break;
402
- }
403
-
404
- console.log("Skipping fetching blog posts, invalid blogUrl: \"".concat(blogUrl, "\""));
405
- return _context.abrupt("return");
406
-
407
- case 4:
408
- _context.next = 6;
409
- return fetch(blogUrl);
410
-
411
- case 6:
412
- res = _context.sent;
413
-
414
- if (!(0,_remote_data_util__WEBPACK_IMPORTED_MODULE_1__.isJsonResponse)(res.headers.get("content-type"))) {
415
- _context.next = 14;
416
- break;
417
- }
418
-
419
- _context.next = 10;
420
- return res.json();
421
-
422
- case 10:
423
- payload = _context.sent;
424
- store.dispatch({
425
- type: "blog/loaded",
426
- payload: payload
427
- });
428
- _context.next = 15;
429
- break;
430
-
431
- case 14:
432
- throw new Error("Blog posts url is not serving json");
433
-
434
- case 15:
435
- _context.next = 20;
436
- break;
437
-
438
- case 17:
439
- _context.prev = 17;
440
- _context.t0 = _context["catch"](0);
441
- console.warn("Could not fetch blog posts due to error:", _context.t0);
442
-
443
- case 20:
444
- case "end":
445
- return _context.stop();
446
- }
447
- }
448
- }, _callee, null, [[0, 17]]);
449
- }));
450
-
451
- return function fetchBlogPosts(_x, _x2) {
452
- return _ref.apply(this, arguments);
453
- };
454
- }();
455
-
456
- var initialState = {
457
- recent: null
458
- };
459
- var REDUCER_KEY = "blogPosts";
460
-
461
- var reducerBlogPosts = _defineProperty({}, REDUCER_KEY, function () {
462
- var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
463
- var action = arguments.length > 1 ? arguments[1] : undefined;
464
-
465
- switch (action.type) {
466
- case "blog/loaded":
467
- return _objectSpread(_objectSpread({}, state), {}, {
468
- recent: action.payload
469
- });
470
-
471
- default:
472
- return state;
473
- }
474
- });
475
-
476
- var selectRecentBlogPosts = function selectRecentBlogPosts(store) {
477
- var _store$getState$REDUC;
478
-
479
- return (_store$getState$REDUC = store.getState()[REDUCER_KEY]) === null || _store$getState$REDUC === void 0 ? void 0 : _store$getState$REDUC.recent;
480
- };
481
-
482
-
483
-
484
- /***/ }),
485
-
486
- /***/ "./src/core/remote-data-store.js":
487
- /*!***************************************!*\
488
- !*** ./src/core/remote-data-store.js ***!
489
- \***************************************/
490
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
491
-
492
- "use strict";
493
- __webpack_require__.r(__webpack_exports__);
494
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
495
- /* harmony export */ "attachStoreToWindow": () => (/* binding */ attachStoreToWindow),
496
- /* harmony export */ "getRemoteDataStore": () => (/* binding */ getRemoteDataStore),
497
- /* harmony export */ "connectState": () => (/* binding */ connectState),
498
- /* harmony export */ "createRemoteDataStore": () => (/* binding */ createRemoteDataStore)
499
- /* harmony export */ });
500
- /* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "./node_modules/redux/es/redux.js");
501
-
502
- var attachStoreToWindow = function attachStoreToWindow(store) {
503
- window.AblyUi = window.AblyUi || {};
504
- window.AblyUi.RemoteDataStore = store;
505
- };
506
- var getRemoteDataStore = function getRemoteDataStore() {
507
- if (!window.AblyUi.RemoteDataStore) {
508
- throw new Error("Remote store was called before one was created");
509
- }
510
-
511
- return window.AblyUi.RemoteDataStore;
512
- };
513
- var connectState = function connectState(selector, setState) {
514
- var store = getRemoteDataStore();
515
- var cachedOldState = selector(store);
516
- store.subscribe(function () {
517
- var newState = selector(store); // Do nothing, state is the same
518
-
519
- if (newState === cachedOldState) {
520
- return;
521
- }
522
-
523
- cachedOldState = newState;
524
- setState(newState);
525
- });
526
- };
527
- var createRemoteDataStore = function createRemoteDataStore(reducers) {
528
- return (0,redux__WEBPACK_IMPORTED_MODULE_0__.createStore)((0,redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers)(reducers));
529
- };
530
-
531
- /***/ }),
532
-
533
- /***/ "./src/core/remote-data-util.js":
534
- /*!**************************************!*\
535
- !*** ./src/core/remote-data-util.js ***!
536
- \**************************************/
537
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
538
-
539
- "use strict";
540
- __webpack_require__.r(__webpack_exports__);
541
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
542
- /* harmony export */ "isJsonResponse": () => (/* binding */ isJsonResponse)
543
- /* harmony export */ });
544
- // isJsonResponse is useful for environments where hitting an endpoint
545
- // would return an html page (eg. Gatsby local dev)
546
- var isJsonResponse = function isJsonResponse(contentType) {
547
- return contentType && contentType.includes("application/json");
548
- };
549
-
550
- /***/ }),
551
-
552
- /***/ "./node_modules/object-assign/index.js":
553
- /*!*********************************************!*\
554
- !*** ./node_modules/object-assign/index.js ***!
555
- \*********************************************/
556
- /***/ ((module) => {
557
-
558
- "use strict";
559
- /*
560
- object-assign
561
- (c) Sindre Sorhus
562
- @license MIT
563
- */
564
-
565
-
566
- /* eslint-disable no-unused-vars */
567
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
568
- var hasOwnProperty = Object.prototype.hasOwnProperty;
569
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
570
-
571
- function toObject(val) {
572
- if (val === null || val === undefined) {
573
- throw new TypeError('Object.assign cannot be called with null or undefined');
574
- }
575
-
576
- return Object(val);
577
- }
578
-
579
- function shouldUseNative() {
580
- try {
581
- if (!Object.assign) {
582
- return false;
583
- }
584
-
585
- // Detect buggy property enumeration order in older V8 versions.
586
-
587
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
588
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
589
- test1[5] = 'de';
590
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
591
- return false;
592
- }
593
-
594
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
595
- var test2 = {};
596
- for (var i = 0; i < 10; i++) {
597
- test2['_' + String.fromCharCode(i)] = i;
598
- }
599
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
600
- return test2[n];
601
- });
602
- if (order2.join('') !== '0123456789') {
603
- return false;
604
- }
605
-
606
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
607
- var test3 = {};
608
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
609
- test3[letter] = letter;
610
- });
611
- if (Object.keys(Object.assign({}, test3)).join('') !==
612
- 'abcdefghijklmnopqrst') {
613
- return false;
614
- }
615
-
616
- return true;
617
- } catch (err) {
618
- // We don't expect any of the above to throw, but better to be safe.
619
- return false;
620
- }
621
- }
622
-
623
- module.exports = shouldUseNative() ? Object.assign : function (target, source) {
624
- var from;
625
- var to = toObject(target);
626
- var symbols;
627
-
628
- for (var s = 1; s < arguments.length; s++) {
629
- from = Object(arguments[s]);
630
-
631
- for (var key in from) {
632
- if (hasOwnProperty.call(from, key)) {
633
- to[key] = from[key];
634
- }
635
- }
636
-
637
- if (getOwnPropertySymbols) {
638
- symbols = getOwnPropertySymbols(from);
639
- for (var i = 0; i < symbols.length; i++) {
640
- if (propIsEnumerable.call(from, symbols[i])) {
641
- to[symbols[i]] = from[symbols[i]];
642
- }
643
- }
644
- }
645
- }
646
-
647
- return to;
648
- };
649
-
650
-
651
- /***/ }),
652
-
653
- /***/ "./node_modules/prop-types/checkPropTypes.js":
654
- /*!***************************************************!*\
655
- !*** ./node_modules/prop-types/checkPropTypes.js ***!
656
- \***************************************************/
657
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
658
-
659
- "use strict";
660
- /**
661
- * Copyright (c) 2013-present, Facebook, Inc.
662
- *
663
- * This source code is licensed under the MIT license found in the
664
- * LICENSE file in the root directory of this source tree.
665
- */
666
-
667
-
668
-
669
- var printWarning = function() {};
670
-
671
- if (true) {
672
- var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
673
- var loggedTypeFailures = {};
674
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
675
-
676
- printWarning = function(text) {
677
- var message = 'Warning: ' + text;
678
- if (typeof console !== 'undefined') {
679
- console.error(message);
680
- }
681
- try {
682
- // --- Welcome to debugging React ---
683
- // This error was thrown as a convenience so that you can use this stack
684
- // to find the callsite that caused this warning to fire.
685
- throw new Error(message);
686
- } catch (x) {}
687
- };
688
- }
689
-
690
- /**
691
- * Assert that the values match with the type specs.
692
- * Error messages are memorized and will only be shown once.
693
- *
694
- * @param {object} typeSpecs Map of name to a ReactPropType
695
- * @param {object} values Runtime values that need to be type-checked
696
- * @param {string} location e.g. "prop", "context", "child context"
697
- * @param {string} componentName Name of the component for error messages.
698
- * @param {?Function} getStack Returns the component stack.
699
- * @private
700
- */
701
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
702
- if (true) {
703
- for (var typeSpecName in typeSpecs) {
704
- if (has(typeSpecs, typeSpecName)) {
705
- var error;
706
- // Prop type validation may throw. In case they do, we don't want to
707
- // fail the render phase where it didn't fail before. So we log it.
708
- // After these have been cleaned up, we'll let them throw.
709
- try {
710
- // This is intentionally an invariant that gets caught. It's the same
711
- // behavior as without this statement except with a better message.
712
- if (typeof typeSpecs[typeSpecName] !== 'function') {
713
- var err = Error(
714
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
715
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
716
- );
717
- err.name = 'Invariant Violation';
718
- throw err;
719
- }
720
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
721
- } catch (ex) {
722
- error = ex;
723
- }
724
- if (error && !(error instanceof Error)) {
725
- printWarning(
726
- (componentName || 'React class') + ': type specification of ' +
727
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
728
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
729
- 'You may have forgotten to pass an argument to the type checker ' +
730
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
731
- 'shape all require an argument).'
732
- );
733
- }
734
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
735
- // Only monitor this failure once because there tends to be a lot of the
736
- // same error.
737
- loggedTypeFailures[error.message] = true;
738
-
739
- var stack = getStack ? getStack() : '';
740
-
741
- printWarning(
742
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
743
- );
744
- }
745
- }
746
- }
747
- }
748
- }
749
-
750
- /**
751
- * Resets warning cache when testing.
752
- *
753
- * @private
754
- */
755
- checkPropTypes.resetWarningCache = function() {
756
- if (true) {
757
- loggedTypeFailures = {};
758
- }
759
- }
760
-
761
- module.exports = checkPropTypes;
762
-
763
-
764
- /***/ }),
765
-
766
- /***/ "./node_modules/prop-types/factoryWithTypeCheckers.js":
767
- /*!************************************************************!*\
768
- !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
769
- \************************************************************/
770
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
771
-
772
- "use strict";
773
- /**
774
- * Copyright (c) 2013-present, Facebook, Inc.
775
- *
776
- * This source code is licensed under the MIT license found in the
777
- * LICENSE file in the root directory of this source tree.
778
- */
779
-
780
-
781
-
782
- var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
783
- var assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
784
-
785
- var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
786
- var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
787
-
788
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
789
- var printWarning = function() {};
790
-
791
- if (true) {
792
- printWarning = function(text) {
793
- var message = 'Warning: ' + text;
794
- if (typeof console !== 'undefined') {
795
- console.error(message);
796
- }
797
- try {
798
- // --- Welcome to debugging React ---
799
- // This error was thrown as a convenience so that you can use this stack
800
- // to find the callsite that caused this warning to fire.
801
- throw new Error(message);
802
- } catch (x) {}
803
- };
804
- }
805
-
806
- function emptyFunctionThatReturnsNull() {
807
- return null;
808
- }
809
-
810
- module.exports = function(isValidElement, throwOnDirectAccess) {
811
- /* global Symbol */
812
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
813
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
814
-
815
- /**
816
- * Returns the iterator method function contained on the iterable object.
817
- *
818
- * Be sure to invoke the function with the iterable as context:
819
- *
820
- * var iteratorFn = getIteratorFn(myIterable);
821
- * if (iteratorFn) {
822
- * var iterator = iteratorFn.call(myIterable);
823
- * ...
824
- * }
825
- *
826
- * @param {?object} maybeIterable
827
- * @return {?function}
828
- */
829
- function getIteratorFn(maybeIterable) {
830
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
831
- if (typeof iteratorFn === 'function') {
832
- return iteratorFn;
833
- }
834
- }
835
-
836
- /**
837
- * Collection of methods that allow declaration and validation of props that are
838
- * supplied to React components. Example usage:
839
- *
840
- * var Props = require('ReactPropTypes');
841
- * var MyArticle = React.createClass({
842
- * propTypes: {
843
- * // An optional string prop named "description".
844
- * description: Props.string,
845
- *
846
- * // A required enum prop named "category".
847
- * category: Props.oneOf(['News','Photos']).isRequired,
848
- *
849
- * // A prop named "dialog" that requires an instance of Dialog.
850
- * dialog: Props.instanceOf(Dialog).isRequired
851
- * },
852
- * render: function() { ... }
853
- * });
854
- *
855
- * A more formal specification of how these methods are used:
856
- *
857
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
858
- * decl := ReactPropTypes.{type}(.isRequired)?
859
- *
860
- * Each and every declaration produces a function with the same signature. This
861
- * allows the creation of custom validation functions. For example:
862
- *
863
- * var MyLink = React.createClass({
864
- * propTypes: {
865
- * // An optional string or URI prop named "href".
866
- * href: function(props, propName, componentName) {
867
- * var propValue = props[propName];
868
- * if (propValue != null && typeof propValue !== 'string' &&
869
- * !(propValue instanceof URI)) {
870
- * return new Error(
871
- * 'Expected a string or an URI for ' + propName + ' in ' +
872
- * componentName
873
- * );
874
- * }
875
- * }
876
- * },
877
- * render: function() {...}
878
- * });
879
- *
880
- * @internal
881
- */
882
-
883
- var ANONYMOUS = '<<anonymous>>';
884
-
885
- // Important!
886
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
887
- var ReactPropTypes = {
888
- array: createPrimitiveTypeChecker('array'),
889
- bool: createPrimitiveTypeChecker('boolean'),
890
- func: createPrimitiveTypeChecker('function'),
891
- number: createPrimitiveTypeChecker('number'),
892
- object: createPrimitiveTypeChecker('object'),
893
- string: createPrimitiveTypeChecker('string'),
894
- symbol: createPrimitiveTypeChecker('symbol'),
895
-
896
- any: createAnyTypeChecker(),
897
- arrayOf: createArrayOfTypeChecker,
898
- element: createElementTypeChecker(),
899
- elementType: createElementTypeTypeChecker(),
900
- instanceOf: createInstanceTypeChecker,
901
- node: createNodeChecker(),
902
- objectOf: createObjectOfTypeChecker,
903
- oneOf: createEnumTypeChecker,
904
- oneOfType: createUnionTypeChecker,
905
- shape: createShapeTypeChecker,
906
- exact: createStrictShapeTypeChecker,
907
- };
908
-
909
- /**
910
- * inlined Object.is polyfill to avoid requiring consumers ship their own
911
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
912
- */
913
- /*eslint-disable no-self-compare*/
914
- function is(x, y) {
915
- // SameValue algorithm
916
- if (x === y) {
917
- // Steps 1-5, 7-10
918
- // Steps 6.b-6.e: +0 != -0
919
- return x !== 0 || 1 / x === 1 / y;
920
- } else {
921
- // Step 6.a: NaN == NaN
922
- return x !== x && y !== y;
923
- }
924
- }
925
- /*eslint-enable no-self-compare*/
926
-
927
- /**
928
- * We use an Error-like object for backward compatibility as people may call
929
- * PropTypes directly and inspect their output. However, we don't use real
930
- * Errors anymore. We don't inspect their stack anyway, and creating them
931
- * is prohibitively expensive if they are created too often, such as what
932
- * happens in oneOfType() for any type before the one that matched.
933
- */
934
- function PropTypeError(message) {
935
- this.message = message;
936
- this.stack = '';
937
- }
938
- // Make `instanceof Error` still work for returned errors.
939
- PropTypeError.prototype = Error.prototype;
940
-
941
- function createChainableTypeChecker(validate) {
942
- if (true) {
943
- var manualPropTypeCallCache = {};
944
- var manualPropTypeWarningCount = 0;
945
- }
946
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
947
- componentName = componentName || ANONYMOUS;
948
- propFullName = propFullName || propName;
949
-
950
- if (secret !== ReactPropTypesSecret) {
951
- if (throwOnDirectAccess) {
952
- // New behavior only for users of `prop-types` package
953
- var err = new Error(
954
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
955
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
956
- 'Read more at http://fb.me/use-check-prop-types'
957
- );
958
- err.name = 'Invariant Violation';
959
- throw err;
960
- } else if ( true && typeof console !== 'undefined') {
961
- // Old behavior for people using React.PropTypes
962
- var cacheKey = componentName + ':' + propName;
963
- if (
964
- !manualPropTypeCallCache[cacheKey] &&
965
- // Avoid spamming the console because they are often not actionable except for lib authors
966
- manualPropTypeWarningCount < 3
967
- ) {
968
- printWarning(
969
- 'You are manually calling a React.PropTypes validation ' +
970
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
971
- 'and will throw in the standalone `prop-types` package. ' +
972
- 'You may be seeing this warning due to a third-party PropTypes ' +
973
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
974
- );
975
- manualPropTypeCallCache[cacheKey] = true;
976
- manualPropTypeWarningCount++;
977
- }
978
- }
979
- }
980
- if (props[propName] == null) {
981
- if (isRequired) {
982
- if (props[propName] === null) {
983
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
984
- }
985
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
986
- }
987
- return null;
988
- } else {
989
- return validate(props, propName, componentName, location, propFullName);
990
- }
991
- }
992
-
993
- var chainedCheckType = checkType.bind(null, false);
994
- chainedCheckType.isRequired = checkType.bind(null, true);
995
-
996
- return chainedCheckType;
997
- }
998
-
999
- function createPrimitiveTypeChecker(expectedType) {
1000
- function validate(props, propName, componentName, location, propFullName, secret) {
1001
- var propValue = props[propName];
1002
- var propType = getPropType(propValue);
1003
- if (propType !== expectedType) {
1004
- // `propValue` being instance of, say, date/regexp, pass the 'object'
1005
- // check, but we can offer a more precise error message here rather than
1006
- // 'of type `object`'.
1007
- var preciseType = getPreciseType(propValue);
1008
-
1009
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
1010
- }
1011
- return null;
1012
- }
1013
- return createChainableTypeChecker(validate);
1014
- }
1015
-
1016
- function createAnyTypeChecker() {
1017
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
1018
- }
1019
-
1020
- function createArrayOfTypeChecker(typeChecker) {
1021
- function validate(props, propName, componentName, location, propFullName) {
1022
- if (typeof typeChecker !== 'function') {
1023
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1024
- }
1025
- var propValue = props[propName];
1026
- if (!Array.isArray(propValue)) {
1027
- var propType = getPropType(propValue);
1028
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1029
- }
1030
- for (var i = 0; i < propValue.length; i++) {
1031
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
1032
- if (error instanceof Error) {
1033
- return error;
1034
- }
1035
- }
1036
- return null;
1037
- }
1038
- return createChainableTypeChecker(validate);
1039
- }
1040
-
1041
- function createElementTypeChecker() {
1042
- function validate(props, propName, componentName, location, propFullName) {
1043
- var propValue = props[propName];
1044
- if (!isValidElement(propValue)) {
1045
- var propType = getPropType(propValue);
1046
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1047
- }
1048
- return null;
1049
- }
1050
- return createChainableTypeChecker(validate);
1051
- }
1052
-
1053
- function createElementTypeTypeChecker() {
1054
- function validate(props, propName, componentName, location, propFullName) {
1055
- var propValue = props[propName];
1056
- if (!ReactIs.isValidElementType(propValue)) {
1057
- var propType = getPropType(propValue);
1058
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1059
- }
1060
- return null;
1061
- }
1062
- return createChainableTypeChecker(validate);
1063
- }
1064
-
1065
- function createInstanceTypeChecker(expectedClass) {
1066
- function validate(props, propName, componentName, location, propFullName) {
1067
- if (!(props[propName] instanceof expectedClass)) {
1068
- var expectedClassName = expectedClass.name || ANONYMOUS;
1069
- var actualClassName = getClassName(props[propName]);
1070
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1071
- }
1072
- return null;
1073
- }
1074
- return createChainableTypeChecker(validate);
1075
- }
1076
-
1077
- function createEnumTypeChecker(expectedValues) {
1078
- if (!Array.isArray(expectedValues)) {
1079
- if (true) {
1080
- if (arguments.length > 1) {
1081
- printWarning(
1082
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
1083
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
1084
- );
1085
- } else {
1086
- printWarning('Invalid argument supplied to oneOf, expected an array.');
1087
- }
1088
- }
1089
- return emptyFunctionThatReturnsNull;
1090
- }
1091
-
1092
- function validate(props, propName, componentName, location, propFullName) {
1093
- var propValue = props[propName];
1094
- for (var i = 0; i < expectedValues.length; i++) {
1095
- if (is(propValue, expectedValues[i])) {
1096
- return null;
1097
- }
1098
- }
1099
-
1100
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1101
- var type = getPreciseType(value);
1102
- if (type === 'symbol') {
1103
- return String(value);
1104
- }
1105
- return value;
1106
- });
1107
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1108
- }
1109
- return createChainableTypeChecker(validate);
1110
- }
1111
-
1112
- function createObjectOfTypeChecker(typeChecker) {
1113
- function validate(props, propName, componentName, location, propFullName) {
1114
- if (typeof typeChecker !== 'function') {
1115
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1116
- }
1117
- var propValue = props[propName];
1118
- var propType = getPropType(propValue);
1119
- if (propType !== 'object') {
1120
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1121
- }
1122
- for (var key in propValue) {
1123
- if (has(propValue, key)) {
1124
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1125
- if (error instanceof Error) {
1126
- return error;
1127
- }
1128
- }
1129
- }
1130
- return null;
1131
- }
1132
- return createChainableTypeChecker(validate);
1133
- }
1134
-
1135
- function createUnionTypeChecker(arrayOfTypeCheckers) {
1136
- if (!Array.isArray(arrayOfTypeCheckers)) {
1137
- true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
1138
- return emptyFunctionThatReturnsNull;
1139
- }
1140
-
1141
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1142
- var checker = arrayOfTypeCheckers[i];
1143
- if (typeof checker !== 'function') {
1144
- printWarning(
1145
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1146
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1147
- );
1148
- return emptyFunctionThatReturnsNull;
1149
- }
1150
- }
1151
-
1152
- function validate(props, propName, componentName, location, propFullName) {
1153
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1154
- var checker = arrayOfTypeCheckers[i];
1155
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
1156
- return null;
1157
- }
1158
- }
1159
-
1160
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
1161
- }
1162
- return createChainableTypeChecker(validate);
1163
- }
1164
-
1165
- function createNodeChecker() {
1166
- function validate(props, propName, componentName, location, propFullName) {
1167
- if (!isNode(props[propName])) {
1168
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1169
- }
1170
- return null;
1171
- }
1172
- return createChainableTypeChecker(validate);
1173
- }
1174
-
1175
- function createShapeTypeChecker(shapeTypes) {
1176
- function validate(props, propName, componentName, location, propFullName) {
1177
- var propValue = props[propName];
1178
- var propType = getPropType(propValue);
1179
- if (propType !== 'object') {
1180
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1181
- }
1182
- for (var key in shapeTypes) {
1183
- var checker = shapeTypes[key];
1184
- if (!checker) {
1185
- continue;
1186
- }
1187
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1188
- if (error) {
1189
- return error;
1190
- }
1191
- }
1192
- return null;
1193
- }
1194
- return createChainableTypeChecker(validate);
1195
- }
1196
-
1197
- function createStrictShapeTypeChecker(shapeTypes) {
1198
- function validate(props, propName, componentName, location, propFullName) {
1199
- var propValue = props[propName];
1200
- var propType = getPropType(propValue);
1201
- if (propType !== 'object') {
1202
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1203
- }
1204
- // We need to check all keys in case some are required but missing from
1205
- // props.
1206
- var allKeys = assign({}, props[propName], shapeTypes);
1207
- for (var key in allKeys) {
1208
- var checker = shapeTypes[key];
1209
- if (!checker) {
1210
- return new PropTypeError(
1211
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1212
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1213
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1214
- );
1215
- }
1216
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1217
- if (error) {
1218
- return error;
1219
- }
1220
- }
1221
- return null;
1222
- }
1223
-
1224
- return createChainableTypeChecker(validate);
1225
- }
1226
-
1227
- function isNode(propValue) {
1228
- switch (typeof propValue) {
1229
- case 'number':
1230
- case 'string':
1231
- case 'undefined':
1232
- return true;
1233
- case 'boolean':
1234
- return !propValue;
1235
- case 'object':
1236
- if (Array.isArray(propValue)) {
1237
- return propValue.every(isNode);
1238
- }
1239
- if (propValue === null || isValidElement(propValue)) {
1240
- return true;
1241
- }
1242
-
1243
- var iteratorFn = getIteratorFn(propValue);
1244
- if (iteratorFn) {
1245
- var iterator = iteratorFn.call(propValue);
1246
- var step;
1247
- if (iteratorFn !== propValue.entries) {
1248
- while (!(step = iterator.next()).done) {
1249
- if (!isNode(step.value)) {
1250
- return false;
1251
- }
1252
- }
1253
- } else {
1254
- // Iterator will provide entry [k,v] tuples rather than values.
1255
- while (!(step = iterator.next()).done) {
1256
- var entry = step.value;
1257
- if (entry) {
1258
- if (!isNode(entry[1])) {
1259
- return false;
1260
- }
1261
- }
1262
- }
1263
- }
1264
- } else {
1265
- return false;
1266
- }
1267
-
1268
- return true;
1269
- default:
1270
- return false;
1271
- }
1272
- }
1273
-
1274
- function isSymbol(propType, propValue) {
1275
- // Native Symbol.
1276
- if (propType === 'symbol') {
1277
- return true;
1278
- }
1279
-
1280
- // falsy value can't be a Symbol
1281
- if (!propValue) {
1282
- return false;
1283
- }
1284
-
1285
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1286
- if (propValue['@@toStringTag'] === 'Symbol') {
1287
- return true;
1288
- }
1289
-
1290
- // Fallback for non-spec compliant Symbols which are polyfilled.
1291
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1292
- return true;
1293
- }
1294
-
1295
- return false;
1296
- }
1297
-
1298
- // Equivalent of `typeof` but with special handling for array and regexp.
1299
- function getPropType(propValue) {
1300
- var propType = typeof propValue;
1301
- if (Array.isArray(propValue)) {
1302
- return 'array';
1303
- }
1304
- if (propValue instanceof RegExp) {
1305
- // Old webkits (at least until Android 4.0) return 'function' rather than
1306
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1307
- // passes PropTypes.object.
1308
- return 'object';
1309
- }
1310
- if (isSymbol(propType, propValue)) {
1311
- return 'symbol';
1312
- }
1313
- return propType;
1314
- }
1315
-
1316
- // This handles more types than `getPropType`. Only used for error messages.
1317
- // See `createPrimitiveTypeChecker`.
1318
- function getPreciseType(propValue) {
1319
- if (typeof propValue === 'undefined' || propValue === null) {
1320
- return '' + propValue;
1321
- }
1322
- var propType = getPropType(propValue);
1323
- if (propType === 'object') {
1324
- if (propValue instanceof Date) {
1325
- return 'date';
1326
- } else if (propValue instanceof RegExp) {
1327
- return 'regexp';
1328
- }
1329
- }
1330
- return propType;
1331
- }
1332
-
1333
- // Returns a string that is postfixed to a warning about an invalid type.
1334
- // For example, "undefined" or "of type array"
1335
- function getPostfixForTypeWarning(value) {
1336
- var type = getPreciseType(value);
1337
- switch (type) {
1338
- case 'array':
1339
- case 'object':
1340
- return 'an ' + type;
1341
- case 'boolean':
1342
- case 'date':
1343
- case 'regexp':
1344
- return 'a ' + type;
1345
- default:
1346
- return type;
1347
- }
1348
- }
1349
-
1350
- // Returns class name of the object, if any.
1351
- function getClassName(propValue) {
1352
- if (!propValue.constructor || !propValue.constructor.name) {
1353
- return ANONYMOUS;
1354
- }
1355
- return propValue.constructor.name;
1356
- }
1357
-
1358
- ReactPropTypes.checkPropTypes = checkPropTypes;
1359
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1360
- ReactPropTypes.PropTypes = ReactPropTypes;
1361
-
1362
- return ReactPropTypes;
1363
- };
1364
-
1365
-
1366
- /***/ }),
1367
-
1368
- /***/ "./node_modules/prop-types/index.js":
1369
- /*!******************************************!*\
1370
- !*** ./node_modules/prop-types/index.js ***!
1371
- \******************************************/
1372
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1373
-
1374
- /**
1375
- * Copyright (c) 2013-present, Facebook, Inc.
1376
- *
1377
- * This source code is licensed under the MIT license found in the
1378
- * LICENSE file in the root directory of this source tree.
1379
- */
1380
-
1381
- if (true) {
1382
- var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
1383
-
1384
- // By explicitly using `prop-types` you are opting into new development behavior.
1385
- // http://fb.me/prop-types-in-prod
1386
- var throwOnDirectAccess = true;
1387
- module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "./node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
1388
- } else {}
1389
-
1390
-
1391
- /***/ }),
1392
-
1393
- /***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js":
1394
- /*!*************************************************************!*\
1395
- !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
1396
- \*************************************************************/
1397
- /***/ ((module) => {
1398
-
1399
- "use strict";
1400
- /**
1401
- * Copyright (c) 2013-present, Facebook, Inc.
1402
- *
1403
- * This source code is licensed under the MIT license found in the
1404
- * LICENSE file in the root directory of this source tree.
1405
- */
1406
-
1407
-
1408
-
1409
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1410
-
1411
- module.exports = ReactPropTypesSecret;
1412
-
1413
-
1414
- /***/ }),
1415
-
1416
- /***/ "./node_modules/react-is/cjs/react-is.development.js":
1417
- /*!***********************************************************!*\
1418
- !*** ./node_modules/react-is/cjs/react-is.development.js ***!
1419
- \***********************************************************/
1420
- /***/ ((__unused_webpack_module, exports) => {
1421
-
1422
- "use strict";
1423
- /** @license React v16.13.1
1424
- * react-is.development.js
1425
- *
1426
- * Copyright (c) Facebook, Inc. and its affiliates.
1427
- *
1428
- * This source code is licensed under the MIT license found in the
1429
- * LICENSE file in the root directory of this source tree.
1430
- */
1431
-
1432
-
1433
-
1434
-
1435
-
1436
- if (true) {
1437
- (function() {
1438
- 'use strict';
1439
-
1440
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1441
- // nor polyfill, then a plain number is used for performance.
1442
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1443
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1444
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1445
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1446
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1447
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1448
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1449
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1450
- // (unstable) APIs that have been removed. Can we remove the symbols?
1451
-
1452
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1453
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1454
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1455
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1456
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1457
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1458
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1459
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1460
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1461
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1462
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1463
-
1464
- function isValidElementType(type) {
1465
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1466
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1467
- }
1468
-
1469
- function typeOf(object) {
1470
- if (typeof object === 'object' && object !== null) {
1471
- var $$typeof = object.$$typeof;
1472
-
1473
- switch ($$typeof) {
1474
- case REACT_ELEMENT_TYPE:
1475
- var type = object.type;
1476
-
1477
- switch (type) {
1478
- case REACT_ASYNC_MODE_TYPE:
1479
- case REACT_CONCURRENT_MODE_TYPE:
1480
- case REACT_FRAGMENT_TYPE:
1481
- case REACT_PROFILER_TYPE:
1482
- case REACT_STRICT_MODE_TYPE:
1483
- case REACT_SUSPENSE_TYPE:
1484
- return type;
1485
-
1486
- default:
1487
- var $$typeofType = type && type.$$typeof;
1488
-
1489
- switch ($$typeofType) {
1490
- case REACT_CONTEXT_TYPE:
1491
- case REACT_FORWARD_REF_TYPE:
1492
- case REACT_LAZY_TYPE:
1493
- case REACT_MEMO_TYPE:
1494
- case REACT_PROVIDER_TYPE:
1495
- return $$typeofType;
1496
-
1497
- default:
1498
- return $$typeof;
1499
- }
1500
-
1501
- }
1502
-
1503
- case REACT_PORTAL_TYPE:
1504
- return $$typeof;
1505
- }
1506
- }
1507
-
1508
- return undefined;
1509
- } // AsyncMode is deprecated along with isAsyncMode
1510
-
1511
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
1512
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1513
- var ContextConsumer = REACT_CONTEXT_TYPE;
1514
- var ContextProvider = REACT_PROVIDER_TYPE;
1515
- var Element = REACT_ELEMENT_TYPE;
1516
- var ForwardRef = REACT_FORWARD_REF_TYPE;
1517
- var Fragment = REACT_FRAGMENT_TYPE;
1518
- var Lazy = REACT_LAZY_TYPE;
1519
- var Memo = REACT_MEMO_TYPE;
1520
- var Portal = REACT_PORTAL_TYPE;
1521
- var Profiler = REACT_PROFILER_TYPE;
1522
- var StrictMode = REACT_STRICT_MODE_TYPE;
1523
- var Suspense = REACT_SUSPENSE_TYPE;
1524
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1525
-
1526
- function isAsyncMode(object) {
1527
- {
1528
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1529
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1530
-
1531
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
1532
- }
1533
- }
1534
-
1535
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1536
- }
1537
- function isConcurrentMode(object) {
1538
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1539
- }
1540
- function isContextConsumer(object) {
1541
- return typeOf(object) === REACT_CONTEXT_TYPE;
1542
- }
1543
- function isContextProvider(object) {
1544
- return typeOf(object) === REACT_PROVIDER_TYPE;
1545
- }
1546
- function isElement(object) {
1547
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1548
- }
1549
- function isForwardRef(object) {
1550
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
1551
- }
1552
- function isFragment(object) {
1553
- return typeOf(object) === REACT_FRAGMENT_TYPE;
1554
- }
1555
- function isLazy(object) {
1556
- return typeOf(object) === REACT_LAZY_TYPE;
1557
- }
1558
- function isMemo(object) {
1559
- return typeOf(object) === REACT_MEMO_TYPE;
1560
- }
1561
- function isPortal(object) {
1562
- return typeOf(object) === REACT_PORTAL_TYPE;
1563
- }
1564
- function isProfiler(object) {
1565
- return typeOf(object) === REACT_PROFILER_TYPE;
1566
- }
1567
- function isStrictMode(object) {
1568
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
1569
- }
1570
- function isSuspense(object) {
1571
- return typeOf(object) === REACT_SUSPENSE_TYPE;
1572
- }
1573
-
1574
- exports.AsyncMode = AsyncMode;
1575
- exports.ConcurrentMode = ConcurrentMode;
1576
- exports.ContextConsumer = ContextConsumer;
1577
- exports.ContextProvider = ContextProvider;
1578
- exports.Element = Element;
1579
- exports.ForwardRef = ForwardRef;
1580
- exports.Fragment = Fragment;
1581
- exports.Lazy = Lazy;
1582
- exports.Memo = Memo;
1583
- exports.Portal = Portal;
1584
- exports.Profiler = Profiler;
1585
- exports.StrictMode = StrictMode;
1586
- exports.Suspense = Suspense;
1587
- exports.isAsyncMode = isAsyncMode;
1588
- exports.isConcurrentMode = isConcurrentMode;
1589
- exports.isContextConsumer = isContextConsumer;
1590
- exports.isContextProvider = isContextProvider;
1591
- exports.isElement = isElement;
1592
- exports.isForwardRef = isForwardRef;
1593
- exports.isFragment = isFragment;
1594
- exports.isLazy = isLazy;
1595
- exports.isMemo = isMemo;
1596
- exports.isPortal = isPortal;
1597
- exports.isProfiler = isProfiler;
1598
- exports.isStrictMode = isStrictMode;
1599
- exports.isSuspense = isSuspense;
1600
- exports.isValidElementType = isValidElementType;
1601
- exports.typeOf = typeOf;
1602
- })();
1603
- }
1604
-
1605
-
1606
- /***/ }),
1607
-
1608
- /***/ "./node_modules/react-is/index.js":
1609
- /*!****************************************!*\
1610
- !*** ./node_modules/react-is/index.js ***!
1611
- \****************************************/
1612
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1613
-
1614
- "use strict";
1615
-
1616
-
1617
- if (false) {} else {
1618
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
1619
- }
1620
-
1621
-
1622
- /***/ }),
1623
-
1624
- /***/ "./node_modules/redux/es/redux.js":
1625
- /*!****************************************!*\
1626
- !*** ./node_modules/redux/es/redux.js ***!
1627
- \****************************************/
1628
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1629
-
1630
- "use strict";
1631
- __webpack_require__.r(__webpack_exports__);
1632
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1633
- /* harmony export */ "__DO_NOT_USE__ActionTypes": () => (/* binding */ ActionTypes),
1634
- /* harmony export */ "applyMiddleware": () => (/* binding */ applyMiddleware),
1635
- /* harmony export */ "bindActionCreators": () => (/* binding */ bindActionCreators),
1636
- /* harmony export */ "combineReducers": () => (/* binding */ combineReducers),
1637
- /* harmony export */ "compose": () => (/* binding */ compose),
1638
- /* harmony export */ "createStore": () => (/* binding */ createStore)
1639
- /* harmony export */ });
1640
- /* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
1641
-
1642
-
1643
- /**
1644
- * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
1645
- *
1646
- * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
1647
- * during build.
1648
- * @param {number} code
1649
- */
1650
- function formatProdErrorMessage(code) {
1651
- return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. ';
1652
- }
1653
-
1654
- // Inlined version of the `symbol-observable` polyfill
1655
- var $$observable = (function () {
1656
- return typeof Symbol === 'function' && Symbol.observable || '@@observable';
1657
- })();
1658
-
1659
- /**
1660
- * These are private action types reserved by Redux.
1661
- * For any unknown actions, you must return the current state.
1662
- * If the current state is undefined, you must return the initial state.
1663
- * Do not reference these action types directly in your code.
1664
- */
1665
- var randomString = function randomString() {
1666
- return Math.random().toString(36).substring(7).split('').join('.');
1667
- };
1668
-
1669
- var ActionTypes = {
1670
- INIT: "@@redux/INIT" + randomString(),
1671
- REPLACE: "@@redux/REPLACE" + randomString(),
1672
- PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
1673
- return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
1674
- }
1675
- };
1676
-
1677
- /**
1678
- * @param {any} obj The object to inspect.
1679
- * @returns {boolean} True if the argument appears to be a plain object.
1680
- */
1681
- function isPlainObject(obj) {
1682
- if (typeof obj !== 'object' || obj === null) return false;
1683
- var proto = obj;
1684
-
1685
- while (Object.getPrototypeOf(proto) !== null) {
1686
- proto = Object.getPrototypeOf(proto);
1687
- }
1688
-
1689
- return Object.getPrototypeOf(obj) === proto;
1690
- }
1691
-
1692
- function kindOf(val) {
1693
- var typeOfVal = typeof val;
1694
-
1695
- if (true) {
1696
- // Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
1697
- function miniKindOf(val) {
1698
- if (val === void 0) return 'undefined';
1699
- if (val === null) return 'null';
1700
- var type = typeof val;
1701
-
1702
- switch (type) {
1703
- case 'boolean':
1704
- case 'string':
1705
- case 'number':
1706
- case 'symbol':
1707
- case 'function':
1708
- {
1709
- return type;
1710
- }
1711
- }
1712
-
1713
- if (Array.isArray(val)) return 'array';
1714
- if (isDate(val)) return 'date';
1715
- if (isError(val)) return 'error';
1716
- var constructorName = ctorName(val);
1717
-
1718
- switch (constructorName) {
1719
- case 'Symbol':
1720
- case 'Promise':
1721
- case 'WeakMap':
1722
- case 'WeakSet':
1723
- case 'Map':
1724
- case 'Set':
1725
- return constructorName;
1726
- } // other
1727
-
1728
-
1729
- return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
1730
- }
1731
-
1732
- function ctorName(val) {
1733
- return typeof val.constructor === 'function' ? val.constructor.name : null;
1734
- }
1735
-
1736
- function isError(val) {
1737
- return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
1738
- }
1739
-
1740
- function isDate(val) {
1741
- if (val instanceof Date) return true;
1742
- return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
1743
- }
1744
-
1745
- typeOfVal = miniKindOf(val);
1746
- }
1747
-
1748
- return typeOfVal;
1749
- }
1750
-
1751
- /**
1752
- * Creates a Redux store that holds the state tree.
1753
- * The only way to change the data in the store is to call `dispatch()` on it.
1754
- *
1755
- * There should only be a single store in your app. To specify how different
1756
- * parts of the state tree respond to actions, you may combine several reducers
1757
- * into a single reducer function by using `combineReducers`.
1758
- *
1759
- * @param {Function} reducer A function that returns the next state tree, given
1760
- * the current state tree and the action to handle.
1761
- *
1762
- * @param {any} [preloadedState] The initial state. You may optionally specify it
1763
- * to hydrate the state from the server in universal apps, or to restore a
1764
- * previously serialized user session.
1765
- * If you use `combineReducers` to produce the root reducer function, this must be
1766
- * an object with the same shape as `combineReducers` keys.
1767
- *
1768
- * @param {Function} [enhancer] The store enhancer. You may optionally specify it
1769
- * to enhance the store with third-party capabilities such as middleware,
1770
- * time travel, persistence, etc. The only store enhancer that ships with Redux
1771
- * is `applyMiddleware()`.
1772
- *
1773
- * @returns {Store} A Redux store that lets you read the state, dispatch actions
1774
- * and subscribe to changes.
1775
- */
1776
-
1777
- function createStore(reducer, preloadedState, enhancer) {
1778
- var _ref2;
1779
-
1780
- if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
1781
- throw new Error( false ? 0 : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');
1782
- }
1783
-
1784
- if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
1785
- enhancer = preloadedState;
1786
- preloadedState = undefined;
1787
- }
1788
-
1789
- if (typeof enhancer !== 'undefined') {
1790
- if (typeof enhancer !== 'function') {
1791
- throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'");
1792
- }
1793
-
1794
- return enhancer(createStore)(reducer, preloadedState);
1795
- }
1796
-
1797
- if (typeof reducer !== 'function') {
1798
- throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'");
1799
- }
1800
-
1801
- var currentReducer = reducer;
1802
- var currentState = preloadedState;
1803
- var currentListeners = [];
1804
- var nextListeners = currentListeners;
1805
- var isDispatching = false;
1806
- /**
1807
- * This makes a shallow copy of currentListeners so we can use
1808
- * nextListeners as a temporary list while dispatching.
1809
- *
1810
- * This prevents any bugs around consumers calling
1811
- * subscribe/unsubscribe in the middle of a dispatch.
1812
- */
1813
-
1814
- function ensureCanMutateNextListeners() {
1815
- if (nextListeners === currentListeners) {
1816
- nextListeners = currentListeners.slice();
1817
- }
1818
- }
1819
- /**
1820
- * Reads the state tree managed by the store.
1821
- *
1822
- * @returns {any} The current state tree of your application.
1823
- */
1824
-
1825
-
1826
- function getState() {
1827
- if (isDispatching) {
1828
- throw new Error( false ? 0 : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
1829
- }
1830
-
1831
- return currentState;
1832
- }
1833
- /**
1834
- * Adds a change listener. It will be called any time an action is dispatched,
1835
- * and some part of the state tree may potentially have changed. You may then
1836
- * call `getState()` to read the current state tree inside the callback.
1837
- *
1838
- * You may call `dispatch()` from a change listener, with the following
1839
- * caveats:
1840
- *
1841
- * 1. The subscriptions are snapshotted just before every `dispatch()` call.
1842
- * If you subscribe or unsubscribe while the listeners are being invoked, this
1843
- * will not have any effect on the `dispatch()` that is currently in progress.
1844
- * However, the next `dispatch()` call, whether nested or not, will use a more
1845
- * recent snapshot of the subscription list.
1846
- *
1847
- * 2. The listener should not expect to see all state changes, as the state
1848
- * might have been updated multiple times during a nested `dispatch()` before
1849
- * the listener is called. It is, however, guaranteed that all subscribers
1850
- * registered before the `dispatch()` started will be called with the latest
1851
- * state by the time it exits.
1852
- *
1853
- * @param {Function} listener A callback to be invoked on every dispatch.
1854
- * @returns {Function} A function to remove this change listener.
1855
- */
1856
-
1857
-
1858
- function subscribe(listener) {
1859
- if (typeof listener !== 'function') {
1860
- throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'");
1861
- }
1862
-
1863
- if (isDispatching) {
1864
- throw new Error( false ? 0 : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
1865
- }
1866
-
1867
- var isSubscribed = true;
1868
- ensureCanMutateNextListeners();
1869
- nextListeners.push(listener);
1870
- return function unsubscribe() {
1871
- if (!isSubscribed) {
1872
- return;
1873
- }
1874
-
1875
- if (isDispatching) {
1876
- throw new Error( false ? 0 : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
1877
- }
1878
-
1879
- isSubscribed = false;
1880
- ensureCanMutateNextListeners();
1881
- var index = nextListeners.indexOf(listener);
1882
- nextListeners.splice(index, 1);
1883
- currentListeners = null;
1884
- };
1885
- }
1886
- /**
1887
- * Dispatches an action. It is the only way to trigger a state change.
1888
- *
1889
- * The `reducer` function, used to create the store, will be called with the
1890
- * current state tree and the given `action`. Its return value will
1891
- * be considered the **next** state of the tree, and the change listeners
1892
- * will be notified.
1893
- *
1894
- * The base implementation only supports plain object actions. If you want to
1895
- * dispatch a Promise, an Observable, a thunk, or something else, you need to
1896
- * wrap your store creating function into the corresponding middleware. For
1897
- * example, see the documentation for the `redux-thunk` package. Even the
1898
- * middleware will eventually dispatch plain object actions using this method.
1899
- *
1900
- * @param {Object} action A plain object representing “what changed”. It is
1901
- * a good idea to keep actions serializable so you can record and replay user
1902
- * sessions, or use the time travelling `redux-devtools`. An action must have
1903
- * a `type` property which may not be `undefined`. It is a good idea to use
1904
- * string constants for action types.
1905
- *
1906
- * @returns {Object} For convenience, the same action object you dispatched.
1907
- *
1908
- * Note that, if you use a custom middleware, it may wrap `dispatch()` to
1909
- * return something else (for example, a Promise you can await).
1910
- */
1911
-
1912
-
1913
- function dispatch(action) {
1914
- if (!isPlainObject(action)) {
1915
- throw new Error( false ? 0 : "Actions must be plain objects. Instead, the actual type was: '" + kindOf(action) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
1916
- }
1917
-
1918
- if (typeof action.type === 'undefined') {
1919
- throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
1920
- }
1921
-
1922
- if (isDispatching) {
1923
- throw new Error( false ? 0 : 'Reducers may not dispatch actions.');
1924
- }
1925
-
1926
- try {
1927
- isDispatching = true;
1928
- currentState = currentReducer(currentState, action);
1929
- } finally {
1930
- isDispatching = false;
1931
- }
1932
-
1933
- var listeners = currentListeners = nextListeners;
1934
-
1935
- for (var i = 0; i < listeners.length; i++) {
1936
- var listener = listeners[i];
1937
- listener();
1938
- }
1939
-
1940
- return action;
1941
- }
1942
- /**
1943
- * Replaces the reducer currently used by the store to calculate the state.
1944
- *
1945
- * You might need this if your app implements code splitting and you want to
1946
- * load some of the reducers dynamically. You might also need this if you
1947
- * implement a hot reloading mechanism for Redux.
1948
- *
1949
- * @param {Function} nextReducer The reducer for the store to use instead.
1950
- * @returns {void}
1951
- */
1952
-
1953
-
1954
- function replaceReducer(nextReducer) {
1955
- if (typeof nextReducer !== 'function') {
1956
- throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer));
1957
- }
1958
-
1959
- currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
1960
- // Any reducers that existed in both the new and old rootReducer
1961
- // will receive the previous state. This effectively populates
1962
- // the new state tree with any relevant data from the old one.
1963
-
1964
- dispatch({
1965
- type: ActionTypes.REPLACE
1966
- });
1967
- }
1968
- /**
1969
- * Interoperability point for observable/reactive libraries.
1970
- * @returns {observable} A minimal observable of state changes.
1971
- * For more information, see the observable proposal:
1972
- * https://github.com/tc39/proposal-observable
1973
- */
1974
-
1975
-
1976
- function observable() {
1977
- var _ref;
1978
-
1979
- var outerSubscribe = subscribe;
1980
- return _ref = {
1981
- /**
1982
- * The minimal observable subscription method.
1983
- * @param {Object} observer Any object that can be used as an observer.
1984
- * The observer object should have a `next` method.
1985
- * @returns {subscription} An object with an `unsubscribe` method that can
1986
- * be used to unsubscribe the observable from the store, and prevent further
1987
- * emission of values from the observable.
1988
- */
1989
- subscribe: function subscribe(observer) {
1990
- if (typeof observer !== 'object' || observer === null) {
1991
- throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'");
1992
- }
1993
-
1994
- function observeState() {
1995
- if (observer.next) {
1996
- observer.next(getState());
1997
- }
1998
- }
1999
-
2000
- observeState();
2001
- var unsubscribe = outerSubscribe(observeState);
2002
- return {
2003
- unsubscribe: unsubscribe
2004
- };
2005
- }
2006
- }, _ref[$$observable] = function () {
2007
- return this;
2008
- }, _ref;
2009
- } // When a store is created, an "INIT" action is dispatched so that every
2010
- // reducer returns their initial state. This effectively populates
2011
- // the initial state tree.
2012
-
2013
-
2014
- dispatch({
2015
- type: ActionTypes.INIT
2016
- });
2017
- return _ref2 = {
2018
- dispatch: dispatch,
2019
- subscribe: subscribe,
2020
- getState: getState,
2021
- replaceReducer: replaceReducer
2022
- }, _ref2[$$observable] = observable, _ref2;
2023
- }
2024
-
2025
- /**
2026
- * Prints a warning in the console if it exists.
2027
- *
2028
- * @param {String} message The warning message.
2029
- * @returns {void}
2030
- */
2031
- function warning(message) {
2032
- /* eslint-disable no-console */
2033
- if (typeof console !== 'undefined' && typeof console.error === 'function') {
2034
- console.error(message);
2035
- }
2036
- /* eslint-enable no-console */
2037
-
2038
-
2039
- try {
2040
- // This error was thrown as a convenience so that if you enable
2041
- // "break on all exceptions" in your console,
2042
- // it would pause the execution at this line.
2043
- throw new Error(message);
2044
- } catch (e) {} // eslint-disable-line no-empty
2045
-
2046
- }
2047
-
2048
- function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
2049
- var reducerKeys = Object.keys(reducers);
2050
- var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
2051
-
2052
- if (reducerKeys.length === 0) {
2053
- return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
2054
- }
2055
-
2056
- if (!isPlainObject(inputState)) {
2057
- return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
2058
- }
2059
-
2060
- var unexpectedKeys = Object.keys(inputState).filter(function (key) {
2061
- return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
2062
- });
2063
- unexpectedKeys.forEach(function (key) {
2064
- unexpectedKeyCache[key] = true;
2065
- });
2066
- if (action && action.type === ActionTypes.REPLACE) return;
2067
-
2068
- if (unexpectedKeys.length > 0) {
2069
- return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored.");
2070
- }
2071
- }
2072
-
2073
- function assertReducerShape(reducers) {
2074
- Object.keys(reducers).forEach(function (key) {
2075
- var reducer = reducers[key];
2076
- var initialState = reducer(undefined, {
2077
- type: ActionTypes.INIT
2078
- });
2079
-
2080
- if (typeof initialState === 'undefined') {
2081
- throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
2082
- }
2083
-
2084
- if (typeof reducer(undefined, {
2085
- type: ActionTypes.PROBE_UNKNOWN_ACTION()
2086
- }) === 'undefined') {
2087
- throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle '" + ActionTypes.INIT + "' or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
2088
- }
2089
- });
2090
- }
2091
- /**
2092
- * Turns an object whose values are different reducer functions, into a single
2093
- * reducer function. It will call every child reducer, and gather their results
2094
- * into a single state object, whose keys correspond to the keys of the passed
2095
- * reducer functions.
2096
- *
2097
- * @param {Object} reducers An object whose values correspond to different
2098
- * reducer functions that need to be combined into one. One handy way to obtain
2099
- * it is to use ES6 `import * as reducers` syntax. The reducers may never return
2100
- * undefined for any action. Instead, they should return their initial state
2101
- * if the state passed to them was undefined, and the current state for any
2102
- * unrecognized action.
2103
- *
2104
- * @returns {Function} A reducer function that invokes every reducer inside the
2105
- * passed object, and builds a state object with the same shape.
2106
- */
2107
-
2108
-
2109
- function combineReducers(reducers) {
2110
- var reducerKeys = Object.keys(reducers);
2111
- var finalReducers = {};
2112
-
2113
- for (var i = 0; i < reducerKeys.length; i++) {
2114
- var key = reducerKeys[i];
2115
-
2116
- if (true) {
2117
- if (typeof reducers[key] === 'undefined') {
2118
- warning("No reducer provided for key \"" + key + "\"");
2119
- }
2120
- }
2121
-
2122
- if (typeof reducers[key] === 'function') {
2123
- finalReducers[key] = reducers[key];
2124
- }
2125
- }
2126
-
2127
- var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
2128
- // keys multiple times.
2129
-
2130
- var unexpectedKeyCache;
2131
-
2132
- if (true) {
2133
- unexpectedKeyCache = {};
2134
- }
2135
-
2136
- var shapeAssertionError;
2137
-
2138
- try {
2139
- assertReducerShape(finalReducers);
2140
- } catch (e) {
2141
- shapeAssertionError = e;
2142
- }
2143
-
2144
- return function combination(state, action) {
2145
- if (state === void 0) {
2146
- state = {};
2147
- }
2148
-
2149
- if (shapeAssertionError) {
2150
- throw shapeAssertionError;
2151
- }
2152
-
2153
- if (true) {
2154
- var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
2155
-
2156
- if (warningMessage) {
2157
- warning(warningMessage);
2158
- }
2159
- }
2160
-
2161
- var hasChanged = false;
2162
- var nextState = {};
2163
-
2164
- for (var _i = 0; _i < finalReducerKeys.length; _i++) {
2165
- var _key = finalReducerKeys[_i];
2166
- var reducer = finalReducers[_key];
2167
- var previousStateForKey = state[_key];
2168
- var nextStateForKey = reducer(previousStateForKey, action);
2169
-
2170
- if (typeof nextStateForKey === 'undefined') {
2171
- var actionType = action && action.type;
2172
- throw new Error( false ? 0 : "When called with an action of type " + (actionType ? "\"" + String(actionType) + "\"" : '(unknown type)') + ", the slice reducer for key \"" + _key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.");
2173
- }
2174
-
2175
- nextState[_key] = nextStateForKey;
2176
- hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
2177
- }
2178
-
2179
- hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
2180
- return hasChanged ? nextState : state;
2181
- };
2182
- }
2183
-
2184
- function bindActionCreator(actionCreator, dispatch) {
2185
- return function () {
2186
- return dispatch(actionCreator.apply(this, arguments));
2187
- };
2188
- }
2189
- /**
2190
- * Turns an object whose values are action creators, into an object with the
2191
- * same keys, but with every function wrapped into a `dispatch` call so they
2192
- * may be invoked directly. This is just a convenience method, as you can call
2193
- * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
2194
- *
2195
- * For convenience, you can also pass an action creator as the first argument,
2196
- * and get a dispatch wrapped function in return.
2197
- *
2198
- * @param {Function|Object} actionCreators An object whose values are action
2199
- * creator functions. One handy way to obtain it is to use ES6 `import * as`
2200
- * syntax. You may also pass a single function.
2201
- *
2202
- * @param {Function} dispatch The `dispatch` function available on your Redux
2203
- * store.
2204
- *
2205
- * @returns {Function|Object} The object mimicking the original object, but with
2206
- * every action creator wrapped into the `dispatch` call. If you passed a
2207
- * function as `actionCreators`, the return value will also be a single
2208
- * function.
2209
- */
2210
-
2211
-
2212
- function bindActionCreators(actionCreators, dispatch) {
2213
- if (typeof actionCreators === 'function') {
2214
- return bindActionCreator(actionCreators, dispatch);
2215
- }
2216
-
2217
- if (typeof actionCreators !== 'object' || actionCreators === null) {
2218
- throw new Error( false ? 0 : "bindActionCreators expected an object or a function, but instead received: '" + kindOf(actionCreators) + "'. " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
2219
- }
2220
-
2221
- var boundActionCreators = {};
2222
-
2223
- for (var key in actionCreators) {
2224
- var actionCreator = actionCreators[key];
2225
-
2226
- if (typeof actionCreator === 'function') {
2227
- boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
2228
- }
2229
- }
2230
-
2231
- return boundActionCreators;
2232
- }
2233
-
2234
- /**
2235
- * Composes single-argument functions from right to left. The rightmost
2236
- * function can take multiple arguments as it provides the signature for
2237
- * the resulting composite function.
2238
- *
2239
- * @param {...Function} funcs The functions to compose.
2240
- * @returns {Function} A function obtained by composing the argument functions
2241
- * from right to left. For example, compose(f, g, h) is identical to doing
2242
- * (...args) => f(g(h(...args))).
2243
- */
2244
- function compose() {
2245
- for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
2246
- funcs[_key] = arguments[_key];
2247
- }
2248
-
2249
- if (funcs.length === 0) {
2250
- return function (arg) {
2251
- return arg;
2252
- };
2253
- }
2254
-
2255
- if (funcs.length === 1) {
2256
- return funcs[0];
2257
- }
2258
-
2259
- return funcs.reduce(function (a, b) {
2260
- return function () {
2261
- return a(b.apply(void 0, arguments));
2262
- };
2263
- });
2264
- }
2265
-
2266
- /**
2267
- * Creates a store enhancer that applies middleware to the dispatch method
2268
- * of the Redux store. This is handy for a variety of tasks, such as expressing
2269
- * asynchronous actions in a concise manner, or logging every action payload.
2270
- *
2271
- * See `redux-thunk` package as an example of the Redux middleware.
2272
- *
2273
- * Because middleware is potentially asynchronous, this should be the first
2274
- * store enhancer in the composition chain.
2275
- *
2276
- * Note that each middleware will be given the `dispatch` and `getState` functions
2277
- * as named arguments.
2278
- *
2279
- * @param {...Function} middlewares The middleware chain to be applied.
2280
- * @returns {Function} A store enhancer applying the middleware.
2281
- */
2282
-
2283
- function applyMiddleware() {
2284
- for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
2285
- middlewares[_key] = arguments[_key];
2286
- }
2287
-
2288
- return function (createStore) {
2289
- return function () {
2290
- var store = createStore.apply(void 0, arguments);
2291
-
2292
- var _dispatch = function dispatch() {
2293
- throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
2294
- };
2295
-
2296
- var middlewareAPI = {
2297
- getState: store.getState,
2298
- dispatch: function dispatch() {
2299
- return _dispatch.apply(void 0, arguments);
2300
- }
2301
- };
2302
- var chain = middlewares.map(function (middleware) {
2303
- return middleware(middlewareAPI);
2304
- });
2305
- _dispatch = compose.apply(void 0, chain)(store.dispatch);
2306
- return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__.default)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__.default)({}, store), {}, {
2307
- dispatch: _dispatch
2308
- });
2309
- };
2310
- };
2311
- }
2312
-
2313
- /*
2314
- * This is a dummy function to check if the function name has been altered by minification.
2315
- * If the function has been minified and NODE_ENV !== 'production', warn the user.
2316
- */
2317
-
2318
- function isCrushed() {}
2319
-
2320
- if ( true && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
2321
- warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
2322
- }
2323
-
2324
-
2325
-
2326
-
2327
- /***/ }),
2328
-
2329
- /***/ "./node_modules/regenerator-runtime/runtime.js":
2330
- /*!*****************************************************!*\
2331
- !*** ./node_modules/regenerator-runtime/runtime.js ***!
2332
- \*****************************************************/
2333
- /***/ ((module) => {
2334
-
2335
- /**
2336
- * Copyright (c) 2014-present, Facebook, Inc.
2337
- *
2338
- * This source code is licensed under the MIT license found in the
2339
- * LICENSE file in the root directory of this source tree.
2340
- */
2341
-
2342
- var runtime = (function (exports) {
2343
- "use strict";
2344
-
2345
- var Op = Object.prototype;
2346
- var hasOwn = Op.hasOwnProperty;
2347
- var undefined; // More compressible than void 0.
2348
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
2349
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
2350
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
2351
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
2352
-
2353
- function define(obj, key, value) {
2354
- Object.defineProperty(obj, key, {
2355
- value: value,
2356
- enumerable: true,
2357
- configurable: true,
2358
- writable: true
2359
- });
2360
- return obj[key];
2361
- }
2362
- try {
2363
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
2364
- define({}, "");
2365
- } catch (err) {
2366
- define = function(obj, key, value) {
2367
- return obj[key] = value;
2368
- };
2369
- }
2370
-
2371
- function wrap(innerFn, outerFn, self, tryLocsList) {
2372
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
2373
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
2374
- var generator = Object.create(protoGenerator.prototype);
2375
- var context = new Context(tryLocsList || []);
2376
-
2377
- // The ._invoke method unifies the implementations of the .next,
2378
- // .throw, and .return methods.
2379
- generator._invoke = makeInvokeMethod(innerFn, self, context);
2380
-
2381
- return generator;
2382
- }
2383
- exports.wrap = wrap;
2384
-
2385
- // Try/catch helper to minimize deoptimizations. Returns a completion
2386
- // record like context.tryEntries[i].completion. This interface could
2387
- // have been (and was previously) designed to take a closure to be
2388
- // invoked without arguments, but in all the cases we care about we
2389
- // already have an existing method we want to call, so there's no need
2390
- // to create a new function object. We can even get away with assuming
2391
- // the method takes exactly one argument, since that happens to be true
2392
- // in every case, so we don't have to touch the arguments object. The
2393
- // only additional allocation required is the completion record, which
2394
- // has a stable shape and so hopefully should be cheap to allocate.
2395
- function tryCatch(fn, obj, arg) {
2396
- try {
2397
- return { type: "normal", arg: fn.call(obj, arg) };
2398
- } catch (err) {
2399
- return { type: "throw", arg: err };
2400
- }
2401
- }
2402
-
2403
- var GenStateSuspendedStart = "suspendedStart";
2404
- var GenStateSuspendedYield = "suspendedYield";
2405
- var GenStateExecuting = "executing";
2406
- var GenStateCompleted = "completed";
2407
-
2408
- // Returning this object from the innerFn has the same effect as
2409
- // breaking out of the dispatch switch statement.
2410
- var ContinueSentinel = {};
2411
-
2412
- // Dummy constructor functions that we use as the .constructor and
2413
- // .constructor.prototype properties for functions that return Generator
2414
- // objects. For full spec compliance, you may wish to configure your
2415
- // minifier not to mangle the names of these two functions.
2416
- function Generator() {}
2417
- function GeneratorFunction() {}
2418
- function GeneratorFunctionPrototype() {}
2419
-
2420
- // This is a polyfill for %IteratorPrototype% for environments that
2421
- // don't natively support it.
2422
- var IteratorPrototype = {};
2423
- IteratorPrototype[iteratorSymbol] = function () {
2424
- return this;
2425
- };
2426
-
2427
- var getProto = Object.getPrototypeOf;
2428
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
2429
- if (NativeIteratorPrototype &&
2430
- NativeIteratorPrototype !== Op &&
2431
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
2432
- // This environment has a native %IteratorPrototype%; use it instead
2433
- // of the polyfill.
2434
- IteratorPrototype = NativeIteratorPrototype;
2435
- }
2436
-
2437
- var Gp = GeneratorFunctionPrototype.prototype =
2438
- Generator.prototype = Object.create(IteratorPrototype);
2439
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
2440
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
2441
- GeneratorFunction.displayName = define(
2442
- GeneratorFunctionPrototype,
2443
- toStringTagSymbol,
2444
- "GeneratorFunction"
2445
- );
2446
-
2447
- // Helper for defining the .next, .throw, and .return methods of the
2448
- // Iterator interface in terms of a single ._invoke method.
2449
- function defineIteratorMethods(prototype) {
2450
- ["next", "throw", "return"].forEach(function(method) {
2451
- define(prototype, method, function(arg) {
2452
- return this._invoke(method, arg);
2453
- });
2454
- });
2455
- }
2456
-
2457
- exports.isGeneratorFunction = function(genFun) {
2458
- var ctor = typeof genFun === "function" && genFun.constructor;
2459
- return ctor
2460
- ? ctor === GeneratorFunction ||
2461
- // For the native GeneratorFunction constructor, the best we can
2462
- // do is to check its .name property.
2463
- (ctor.displayName || ctor.name) === "GeneratorFunction"
2464
- : false;
2465
- };
2466
-
2467
- exports.mark = function(genFun) {
2468
- if (Object.setPrototypeOf) {
2469
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
2470
- } else {
2471
- genFun.__proto__ = GeneratorFunctionPrototype;
2472
- define(genFun, toStringTagSymbol, "GeneratorFunction");
2473
- }
2474
- genFun.prototype = Object.create(Gp);
2475
- return genFun;
2476
- };
2477
-
2478
- // Within the body of any async function, `await x` is transformed to
2479
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
2480
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
2481
- // meant to be awaited.
2482
- exports.awrap = function(arg) {
2483
- return { __await: arg };
2484
- };
2485
-
2486
- function AsyncIterator(generator, PromiseImpl) {
2487
- function invoke(method, arg, resolve, reject) {
2488
- var record = tryCatch(generator[method], generator, arg);
2489
- if (record.type === "throw") {
2490
- reject(record.arg);
2491
- } else {
2492
- var result = record.arg;
2493
- var value = result.value;
2494
- if (value &&
2495
- typeof value === "object" &&
2496
- hasOwn.call(value, "__await")) {
2497
- return PromiseImpl.resolve(value.__await).then(function(value) {
2498
- invoke("next", value, resolve, reject);
2499
- }, function(err) {
2500
- invoke("throw", err, resolve, reject);
2501
- });
2502
- }
2503
-
2504
- return PromiseImpl.resolve(value).then(function(unwrapped) {
2505
- // When a yielded Promise is resolved, its final value becomes
2506
- // the .value of the Promise<{value,done}> result for the
2507
- // current iteration.
2508
- result.value = unwrapped;
2509
- resolve(result);
2510
- }, function(error) {
2511
- // If a rejected Promise was yielded, throw the rejection back
2512
- // into the async generator function so it can be handled there.
2513
- return invoke("throw", error, resolve, reject);
2514
- });
2515
- }
2516
- }
2517
-
2518
- var previousPromise;
2519
-
2520
- function enqueue(method, arg) {
2521
- function callInvokeWithMethodAndArg() {
2522
- return new PromiseImpl(function(resolve, reject) {
2523
- invoke(method, arg, resolve, reject);
2524
- });
2525
- }
2526
-
2527
- return previousPromise =
2528
- // If enqueue has been called before, then we want to wait until
2529
- // all previous Promises have been resolved before calling invoke,
2530
- // so that results are always delivered in the correct order. If
2531
- // enqueue has not been called before, then it is important to
2532
- // call invoke immediately, without waiting on a callback to fire,
2533
- // so that the async generator function has the opportunity to do
2534
- // any necessary setup in a predictable way. This predictability
2535
- // is why the Promise constructor synchronously invokes its
2536
- // executor callback, and why async functions synchronously
2537
- // execute code before the first await. Since we implement simple
2538
- // async functions in terms of async generators, it is especially
2539
- // important to get this right, even though it requires care.
2540
- previousPromise ? previousPromise.then(
2541
- callInvokeWithMethodAndArg,
2542
- // Avoid propagating failures to Promises returned by later
2543
- // invocations of the iterator.
2544
- callInvokeWithMethodAndArg
2545
- ) : callInvokeWithMethodAndArg();
2546
- }
2547
-
2548
- // Define the unified helper method that is used to implement .next,
2549
- // .throw, and .return (see defineIteratorMethods).
2550
- this._invoke = enqueue;
2551
- }
2552
-
2553
- defineIteratorMethods(AsyncIterator.prototype);
2554
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
2555
- return this;
2556
- };
2557
- exports.AsyncIterator = AsyncIterator;
2558
-
2559
- // Note that simple async functions are implemented on top of
2560
- // AsyncIterator objects; they just return a Promise for the value of
2561
- // the final result produced by the iterator.
2562
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
2563
- if (PromiseImpl === void 0) PromiseImpl = Promise;
2564
-
2565
- var iter = new AsyncIterator(
2566
- wrap(innerFn, outerFn, self, tryLocsList),
2567
- PromiseImpl
2568
- );
2569
-
2570
- return exports.isGeneratorFunction(outerFn)
2571
- ? iter // If outerFn is a generator, return the full iterator.
2572
- : iter.next().then(function(result) {
2573
- return result.done ? result.value : iter.next();
2574
- });
2575
- };
2576
-
2577
- function makeInvokeMethod(innerFn, self, context) {
2578
- var state = GenStateSuspendedStart;
2579
-
2580
- return function invoke(method, arg) {
2581
- if (state === GenStateExecuting) {
2582
- throw new Error("Generator is already running");
2583
- }
2584
-
2585
- if (state === GenStateCompleted) {
2586
- if (method === "throw") {
2587
- throw arg;
2588
- }
2589
-
2590
- // Be forgiving, per 25.3.3.3.3 of the spec:
2591
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
2592
- return doneResult();
2593
- }
2594
-
2595
- context.method = method;
2596
- context.arg = arg;
2597
-
2598
- while (true) {
2599
- var delegate = context.delegate;
2600
- if (delegate) {
2601
- var delegateResult = maybeInvokeDelegate(delegate, context);
2602
- if (delegateResult) {
2603
- if (delegateResult === ContinueSentinel) continue;
2604
- return delegateResult;
2605
- }
2606
- }
2607
-
2608
- if (context.method === "next") {
2609
- // Setting context._sent for legacy support of Babel's
2610
- // function.sent implementation.
2611
- context.sent = context._sent = context.arg;
2612
-
2613
- } else if (context.method === "throw") {
2614
- if (state === GenStateSuspendedStart) {
2615
- state = GenStateCompleted;
2616
- throw context.arg;
2617
- }
2618
-
2619
- context.dispatchException(context.arg);
2620
-
2621
- } else if (context.method === "return") {
2622
- context.abrupt("return", context.arg);
2623
- }
2624
-
2625
- state = GenStateExecuting;
2626
-
2627
- var record = tryCatch(innerFn, self, context);
2628
- if (record.type === "normal") {
2629
- // If an exception is thrown from innerFn, we leave state ===
2630
- // GenStateExecuting and loop back for another invocation.
2631
- state = context.done
2632
- ? GenStateCompleted
2633
- : GenStateSuspendedYield;
2634
-
2635
- if (record.arg === ContinueSentinel) {
2636
- continue;
2637
- }
2638
-
2639
- return {
2640
- value: record.arg,
2641
- done: context.done
2642
- };
2643
-
2644
- } else if (record.type === "throw") {
2645
- state = GenStateCompleted;
2646
- // Dispatch the exception by looping back around to the
2647
- // context.dispatchException(context.arg) call above.
2648
- context.method = "throw";
2649
- context.arg = record.arg;
2650
- }
2651
- }
2652
- };
2653
- }
2654
-
2655
- // Call delegate.iterator[context.method](context.arg) and handle the
2656
- // result, either by returning a { value, done } result from the
2657
- // delegate iterator, or by modifying context.method and context.arg,
2658
- // setting context.delegate to null, and returning the ContinueSentinel.
2659
- function maybeInvokeDelegate(delegate, context) {
2660
- var method = delegate.iterator[context.method];
2661
- if (method === undefined) {
2662
- // A .throw or .return when the delegate iterator has no .throw
2663
- // method always terminates the yield* loop.
2664
- context.delegate = null;
2665
-
2666
- if (context.method === "throw") {
2667
- // Note: ["return"] must be used for ES3 parsing compatibility.
2668
- if (delegate.iterator["return"]) {
2669
- // If the delegate iterator has a return method, give it a
2670
- // chance to clean up.
2671
- context.method = "return";
2672
- context.arg = undefined;
2673
- maybeInvokeDelegate(delegate, context);
2674
-
2675
- if (context.method === "throw") {
2676
- // If maybeInvokeDelegate(context) changed context.method from
2677
- // "return" to "throw", let that override the TypeError below.
2678
- return ContinueSentinel;
2679
- }
2680
- }
2681
-
2682
- context.method = "throw";
2683
- context.arg = new TypeError(
2684
- "The iterator does not provide a 'throw' method");
2685
- }
2686
-
2687
- return ContinueSentinel;
2688
- }
2689
-
2690
- var record = tryCatch(method, delegate.iterator, context.arg);
2691
-
2692
- if (record.type === "throw") {
2693
- context.method = "throw";
2694
- context.arg = record.arg;
2695
- context.delegate = null;
2696
- return ContinueSentinel;
2697
- }
2698
-
2699
- var info = record.arg;
2700
-
2701
- if (! info) {
2702
- context.method = "throw";
2703
- context.arg = new TypeError("iterator result is not an object");
2704
- context.delegate = null;
2705
- return ContinueSentinel;
2706
- }
2707
-
2708
- if (info.done) {
2709
- // Assign the result of the finished delegate to the temporary
2710
- // variable specified by delegate.resultName (see delegateYield).
2711
- context[delegate.resultName] = info.value;
2712
-
2713
- // Resume execution at the desired location (see delegateYield).
2714
- context.next = delegate.nextLoc;
2715
-
2716
- // If context.method was "throw" but the delegate handled the
2717
- // exception, let the outer generator proceed normally. If
2718
- // context.method was "next", forget context.arg since it has been
2719
- // "consumed" by the delegate iterator. If context.method was
2720
- // "return", allow the original .return call to continue in the
2721
- // outer generator.
2722
- if (context.method !== "return") {
2723
- context.method = "next";
2724
- context.arg = undefined;
2725
- }
2726
-
2727
- } else {
2728
- // Re-yield the result returned by the delegate method.
2729
- return info;
2730
- }
2731
-
2732
- // The delegate iterator is finished, so forget it and continue with
2733
- // the outer generator.
2734
- context.delegate = null;
2735
- return ContinueSentinel;
2736
- }
2737
-
2738
- // Define Generator.prototype.{next,throw,return} in terms of the
2739
- // unified ._invoke helper method.
2740
- defineIteratorMethods(Gp);
2741
-
2742
- define(Gp, toStringTagSymbol, "Generator");
2743
-
2744
- // A Generator should always return itself as the iterator object when the
2745
- // @@iterator function is called on it. Some browsers' implementations of the
2746
- // iterator prototype chain incorrectly implement this, causing the Generator
2747
- // object to not be returned from this call. This ensures that doesn't happen.
2748
- // See https://github.com/facebook/regenerator/issues/274 for more details.
2749
- Gp[iteratorSymbol] = function() {
2750
- return this;
2751
- };
2752
-
2753
- Gp.toString = function() {
2754
- return "[object Generator]";
2755
- };
2756
-
2757
- function pushTryEntry(locs) {
2758
- var entry = { tryLoc: locs[0] };
2759
-
2760
- if (1 in locs) {
2761
- entry.catchLoc = locs[1];
2762
- }
2763
-
2764
- if (2 in locs) {
2765
- entry.finallyLoc = locs[2];
2766
- entry.afterLoc = locs[3];
2767
- }
2768
-
2769
- this.tryEntries.push(entry);
2770
- }
2771
-
2772
- function resetTryEntry(entry) {
2773
- var record = entry.completion || {};
2774
- record.type = "normal";
2775
- delete record.arg;
2776
- entry.completion = record;
2777
- }
2778
-
2779
- function Context(tryLocsList) {
2780
- // The root entry object (effectively a try statement without a catch
2781
- // or a finally block) gives us a place to store values thrown from
2782
- // locations where there is no enclosing try statement.
2783
- this.tryEntries = [{ tryLoc: "root" }];
2784
- tryLocsList.forEach(pushTryEntry, this);
2785
- this.reset(true);
2786
- }
2787
-
2788
- exports.keys = function(object) {
2789
- var keys = [];
2790
- for (var key in object) {
2791
- keys.push(key);
2792
- }
2793
- keys.reverse();
2794
-
2795
- // Rather than returning an object with a next method, we keep
2796
- // things simple and return the next function itself.
2797
- return function next() {
2798
- while (keys.length) {
2799
- var key = keys.pop();
2800
- if (key in object) {
2801
- next.value = key;
2802
- next.done = false;
2803
- return next;
2804
- }
2805
- }
2806
-
2807
- // To avoid creating an additional object, we just hang the .value
2808
- // and .done properties off the next function object itself. This
2809
- // also ensures that the minifier will not anonymize the function.
2810
- next.done = true;
2811
- return next;
2812
- };
2813
- };
2814
-
2815
- function values(iterable) {
2816
- if (iterable) {
2817
- var iteratorMethod = iterable[iteratorSymbol];
2818
- if (iteratorMethod) {
2819
- return iteratorMethod.call(iterable);
2820
- }
2821
-
2822
- if (typeof iterable.next === "function") {
2823
- return iterable;
2824
- }
2825
-
2826
- if (!isNaN(iterable.length)) {
2827
- var i = -1, next = function next() {
2828
- while (++i < iterable.length) {
2829
- if (hasOwn.call(iterable, i)) {
2830
- next.value = iterable[i];
2831
- next.done = false;
2832
- return next;
2833
- }
2834
- }
2835
-
2836
- next.value = undefined;
2837
- next.done = true;
2838
-
2839
- return next;
2840
- };
2841
-
2842
- return next.next = next;
2843
- }
2844
- }
2845
-
2846
- // Return an iterator with no values.
2847
- return { next: doneResult };
2848
- }
2849
- exports.values = values;
2850
-
2851
- function doneResult() {
2852
- return { value: undefined, done: true };
2853
- }
2854
-
2855
- Context.prototype = {
2856
- constructor: Context,
2857
-
2858
- reset: function(skipTempReset) {
2859
- this.prev = 0;
2860
- this.next = 0;
2861
- // Resetting context._sent for legacy support of Babel's
2862
- // function.sent implementation.
2863
- this.sent = this._sent = undefined;
2864
- this.done = false;
2865
- this.delegate = null;
2866
-
2867
- this.method = "next";
2868
- this.arg = undefined;
2869
-
2870
- this.tryEntries.forEach(resetTryEntry);
2871
-
2872
- if (!skipTempReset) {
2873
- for (var name in this) {
2874
- // Not sure about the optimal order of these conditions:
2875
- if (name.charAt(0) === "t" &&
2876
- hasOwn.call(this, name) &&
2877
- !isNaN(+name.slice(1))) {
2878
- this[name] = undefined;
2879
- }
2880
- }
2881
- }
2882
- },
2883
-
2884
- stop: function() {
2885
- this.done = true;
2886
-
2887
- var rootEntry = this.tryEntries[0];
2888
- var rootRecord = rootEntry.completion;
2889
- if (rootRecord.type === "throw") {
2890
- throw rootRecord.arg;
2891
- }
2892
-
2893
- return this.rval;
2894
- },
2895
-
2896
- dispatchException: function(exception) {
2897
- if (this.done) {
2898
- throw exception;
2899
- }
2900
-
2901
- var context = this;
2902
- function handle(loc, caught) {
2903
- record.type = "throw";
2904
- record.arg = exception;
2905
- context.next = loc;
2906
-
2907
- if (caught) {
2908
- // If the dispatched exception was caught by a catch block,
2909
- // then let that catch block handle the exception normally.
2910
- context.method = "next";
2911
- context.arg = undefined;
2912
- }
2913
-
2914
- return !! caught;
2915
- }
2916
-
2917
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2918
- var entry = this.tryEntries[i];
2919
- var record = entry.completion;
2920
-
2921
- if (entry.tryLoc === "root") {
2922
- // Exception thrown outside of any try block that could handle
2923
- // it, so set the completion value of the entire function to
2924
- // throw the exception.
2925
- return handle("end");
2926
- }
2927
-
2928
- if (entry.tryLoc <= this.prev) {
2929
- var hasCatch = hasOwn.call(entry, "catchLoc");
2930
- var hasFinally = hasOwn.call(entry, "finallyLoc");
2931
-
2932
- if (hasCatch && hasFinally) {
2933
- if (this.prev < entry.catchLoc) {
2934
- return handle(entry.catchLoc, true);
2935
- } else if (this.prev < entry.finallyLoc) {
2936
- return handle(entry.finallyLoc);
2937
- }
2938
-
2939
- } else if (hasCatch) {
2940
- if (this.prev < entry.catchLoc) {
2941
- return handle(entry.catchLoc, true);
2942
- }
2943
-
2944
- } else if (hasFinally) {
2945
- if (this.prev < entry.finallyLoc) {
2946
- return handle(entry.finallyLoc);
2947
- }
2948
-
2949
- } else {
2950
- throw new Error("try statement without catch or finally");
2951
- }
2952
- }
2953
- }
2954
- },
2955
-
2956
- abrupt: function(type, arg) {
2957
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2958
- var entry = this.tryEntries[i];
2959
- if (entry.tryLoc <= this.prev &&
2960
- hasOwn.call(entry, "finallyLoc") &&
2961
- this.prev < entry.finallyLoc) {
2962
- var finallyEntry = entry;
2963
- break;
2964
- }
2965
- }
2966
-
2967
- if (finallyEntry &&
2968
- (type === "break" ||
2969
- type === "continue") &&
2970
- finallyEntry.tryLoc <= arg &&
2971
- arg <= finallyEntry.finallyLoc) {
2972
- // Ignore the finally entry if control is not jumping to a
2973
- // location outside the try/catch block.
2974
- finallyEntry = null;
2975
- }
2976
-
2977
- var record = finallyEntry ? finallyEntry.completion : {};
2978
- record.type = type;
2979
- record.arg = arg;
2980
-
2981
- if (finallyEntry) {
2982
- this.method = "next";
2983
- this.next = finallyEntry.finallyLoc;
2984
- return ContinueSentinel;
2985
- }
2986
-
2987
- return this.complete(record);
2988
- },
2989
-
2990
- complete: function(record, afterLoc) {
2991
- if (record.type === "throw") {
2992
- throw record.arg;
2993
- }
2994
-
2995
- if (record.type === "break" ||
2996
- record.type === "continue") {
2997
- this.next = record.arg;
2998
- } else if (record.type === "return") {
2999
- this.rval = this.arg = record.arg;
3000
- this.method = "return";
3001
- this.next = "end";
3002
- } else if (record.type === "normal" && afterLoc) {
3003
- this.next = afterLoc;
3004
- }
3005
-
3006
- return ContinueSentinel;
3007
- },
3008
-
3009
- finish: function(finallyLoc) {
3010
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
3011
- var entry = this.tryEntries[i];
3012
- if (entry.finallyLoc === finallyLoc) {
3013
- this.complete(entry.completion, entry.afterLoc);
3014
- resetTryEntry(entry);
3015
- return ContinueSentinel;
3016
- }
3017
- }
3018
- },
3019
-
3020
- "catch": function(tryLoc) {
3021
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
3022
- var entry = this.tryEntries[i];
3023
- if (entry.tryLoc === tryLoc) {
3024
- var record = entry.completion;
3025
- if (record.type === "throw") {
3026
- var thrown = record.arg;
3027
- resetTryEntry(entry);
3028
- }
3029
- return thrown;
3030
- }
3031
- }
3032
-
3033
- // The context.catch method must only be called with a location
3034
- // argument that corresponds to a known catch block.
3035
- throw new Error("illegal catch attempt");
3036
- },
3037
-
3038
- delegateYield: function(iterable, resultName, nextLoc) {
3039
- this.delegate = {
3040
- iterator: values(iterable),
3041
- resultName: resultName,
3042
- nextLoc: nextLoc
3043
- };
3044
-
3045
- if (this.method === "next") {
3046
- // Deliberately forget the last sent value so that we don't
3047
- // accidentally pass it on to the delegate.
3048
- this.arg = undefined;
3049
- }
3050
-
3051
- return ContinueSentinel;
3052
- }
3053
- };
3054
-
3055
- // Regardless of whether this script is executing as a CommonJS module
3056
- // or not, return the runtime object so that we can declare the variable
3057
- // regeneratorRuntime in the outer scope, which allows this module to be
3058
- // injected easily by `bin/regenerator --include-runtime script.js`.
3059
- return exports;
3060
-
3061
- }(
3062
- // If this script is executing as a CommonJS module, use module.exports
3063
- // as the regeneratorRuntime namespace. Otherwise create a new empty
3064
- // object. Either way, the resulting object will be used to initialize
3065
- // the regeneratorRuntime variable at the top of this file.
3066
- true ? module.exports : 0
3067
- ));
3068
-
3069
- try {
3070
- regeneratorRuntime = runtime;
3071
- } catch (accidentalStrictMode) {
3072
- // This module should not be running in strict mode, so the above
3073
- // assignment should always work unless something is misconfigured. Just
3074
- // in case runtime.js accidentally runs in strict mode, we can escape
3075
- // strict mode using a global Function call. This could conceivably fail
3076
- // if a Content Security Policy forbids using Function, but in that case
3077
- // the proper solution is to fix the accidental strict mode problem. If
3078
- // you've misconfigured your bundler to force strict mode and applied a
3079
- // CSP to forbid Function, and you're not willing to fix either of those
3080
- // problems, please detail your unique predicament in a GitHub issue.
3081
- Function("r", "regeneratorRuntime = r")(runtime);
3082
- }
3083
-
3084
-
3085
- /***/ }),
3086
-
3087
- /***/ "react":
3088
- /*!*********************************************************!*\
3089
- !*** external {"commonjs":"react","commonjs2":"react"} ***!
3090
- \*********************************************************/
3091
- /***/ ((module) => {
3092
-
3093
- "use strict";
3094
- module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
3095
-
3096
- /***/ })
3097
-
3098
- /******/ });
3099
- /************************************************************************/
3100
- /******/ // The module cache
3101
- /******/ var __webpack_module_cache__ = {};
3102
- /******/
3103
- /******/ // The require function
3104
- /******/ function __webpack_require__(moduleId) {
3105
- /******/ // Check if module is in cache
3106
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
3107
- /******/ if (cachedModule !== undefined) {
3108
- /******/ return cachedModule.exports;
3109
- /******/ }
3110
- /******/ // Create a new module (and put it into the cache)
3111
- /******/ var module = __webpack_module_cache__[moduleId] = {
3112
- /******/ // no module.id needed
3113
- /******/ // no module.loaded needed
3114
- /******/ exports: {}
3115
- /******/ };
3116
- /******/
3117
- /******/ // Execute the module function
3118
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
3119
- /******/
3120
- /******/ // Return the exports of the module
3121
- /******/ return module.exports;
3122
- /******/ }
3123
- /******/
3124
- /************************************************************************/
3125
- /******/ /* webpack/runtime/compat get default export */
3126
- /******/ (() => {
3127
- /******/ // getDefaultExport function for compatibility with non-harmony modules
3128
- /******/ __webpack_require__.n = (module) => {
3129
- /******/ var getter = module && module.__esModule ?
3130
- /******/ () => (module['default']) :
3131
- /******/ () => (module);
3132
- /******/ __webpack_require__.d(getter, { a: getter });
3133
- /******/ return getter;
3134
- /******/ };
3135
- /******/ })();
3136
- /******/
3137
- /******/ /* webpack/runtime/define property getters */
3138
- /******/ (() => {
3139
- /******/ // define getter functions for harmony exports
3140
- /******/ __webpack_require__.d = (exports, definition) => {
3141
- /******/ for(var key in definition) {
3142
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
3143
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
3144
- /******/ }
3145
- /******/ }
3146
- /******/ };
3147
- /******/ })();
3148
- /******/
3149
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
3150
- /******/ (() => {
3151
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
3152
- /******/ })();
3153
- /******/
3154
- /******/ /* webpack/runtime/make namespace object */
3155
- /******/ (() => {
3156
- /******/ // define __esModule on exports
3157
- /******/ __webpack_require__.r = (exports) => {
3158
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
3159
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3160
- /******/ }
3161
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
3162
- /******/ };
3163
- /******/ })();
3164
- /******/
3165
- /************************************************************************/
3166
- var __webpack_exports__ = {};
3167
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
3168
- (() => {
3169
- "use strict";
3170
- /*!******************************************************!*\
3171
- !*** ./src/core/MeganavContentWhyAbly/component.jsx ***!
3172
- \******************************************************/
3173
- __webpack_require__.r(__webpack_exports__);
3174
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3175
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
3176
- /* harmony export */ });
3177
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
3178
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3179
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
3180
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
3181
- /* harmony import */ var _FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../FeaturedLink/component.jsx */ "./src/core/FeaturedLink/component.jsx");
3182
- /* harmony import */ var _MeganavBlogPostsList_component_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../MeganavBlogPostsList/component.jsx */ "./src/core/MeganavBlogPostsList/component.jsx");
3183
- /* harmony import */ var _ConnectStateWrapper_component_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ConnectStateWrapper/component.jsx */ "./src/core/ConnectStateWrapper/component.jsx");
3184
- /* harmony import */ var _remote_blogs_posts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../remote-blogs-posts */ "./src/core/remote-blogs-posts.js");
3185
-
3186
-
3187
-
3188
-
3189
-
3190
-
3191
-
3192
- var MeganavContentWhyAbly = function MeganavContentWhyAbly(_ref) {
3193
- var absUrl = _ref.absUrl;
3194
- var BlogPostsList = (0,_ConnectStateWrapper_component_jsx__WEBPACK_IMPORTED_MODULE_4__.default)(_MeganavBlogPostsList_component_jsx__WEBPACK_IMPORTED_MODULE_3__.default, {
3195
- recentBlogPosts: _remote_blogs_posts__WEBPACK_IMPORTED_MODULE_5__.selectRecentBlogPosts
3196
- });
3197
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("section", {
3198
- className: "ui-meganav-content ui-grid-gap md:grid-cols-3"
3199
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h3", {
3200
- className: "ui-meganav-overline",
3201
- id: "meganav-why-ably-panel-list-why-companies"
3202
- }, "Why companies choose Ably"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("ul", {
3203
- "aria-labelledby": "meganav-why-ably-panel-list-why-companies"
3204
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
3205
- href: absUrl("/customers"),
3206
- className: "group ui-meganav-media py-12"
3207
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
3208
- className: "ui-meganav-media-heading"
3209
- }, "Customers"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
3210
- href: absUrl("/case-studies"),
3211
- className: "group ui-meganav-media py-12"
3212
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
3213
- className: "ui-meganav-media-heading"
3214
- }, "Case studies"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
3215
- href: absUrl("/compare"),
3216
- className: "group ui-meganav-media py-12"
3217
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
3218
- className: "ui-meganav-media-heading"
3219
- }, "Compare our tech"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
3220
- href: absUrl("/aws"),
3221
- className: "group ui-meganav-media py-12"
3222
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
3223
- className: "ui-meganav-media-heading"
3224
- }, "Ably & AWS"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
3225
- href: absUrl("/resources"),
3226
- className: "group ui-meganav-media py-12"
3227
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
3228
- className: "ui-meganav-media-heading"
3229
- }, "Resources"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h3", {
3230
- className: "ui-meganav-overline",
3231
- id: "meganav-why-ably-panel-list-four-pillars"
3232
- }, "Four pillars of dependability"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("ul", {
3233
- className: "mb-8",
3234
- "aria-labelledby": "meganav-why-ably-panel-list-four-pillars"
3235
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
3236
- href: absUrl("/four-pillars-of-dependability#performance"),
3237
- className: "ui-meganav-media group"
3238
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
3239
- className: "ui-meganav-media-heading"
3240
- }, "Predictable performance"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
3241
- className: "ui-meganav-media-copy"
3242
- }, "A low-latency global edge network across 200+ PoPs."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
3243
- href: absUrl("/four-pillars-of-dependability#integrity"),
3244
- className: "ui-meganav-media group"
3245
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
3246
- className: "ui-meganav-media-heading"
3247
- }, "Guaranteed ordering & delivery"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
3248
- className: "ui-meganav-media-copy"
3249
- }, "We guarantee in-order data delivery, even after disconnections."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
3250
- href: absUrl("/four-pillars-of-dependability#reliability"),
3251
- className: "ui-meganav-media group"
3252
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
3253
- className: "ui-meganav-media-heading"
3254
- }, "Fault tolerant infrastructure"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
3255
- className: "ui-meganav-media-copy"
3256
- }, "Redundant at regional and global levels with 99.999% uptime SLAs."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
3257
- href: absUrl("/four-pillars-of-dependability#availability"),
3258
- className: "ui-meganav-media group"
3259
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
3260
- className: "ui-meganav-media-heading"
3261
- }, "High scalability & availability"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
3262
- className: "ui-meganav-media-copy"
3263
- }, "Elastic, battle-tested global infrastructure for massive scale.")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_2__.default, {
3264
- url: absUrl("/four-pillars-of-dependability")
3265
- }, "Explore our Four Pillars of Dependability")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(BlogPostsList, {
3266
- absUrl: absUrl
3267
- }));
3268
- };
3269
-
3270
- MeganavContentWhyAbly.propTypes = {
3271
- absUrl: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)
3272
- };
3273
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MeganavContentWhyAbly);
3274
- })();
3275
-
3276
- /******/ return __webpack_exports__;
3277
- /******/ })()
3278
- ;
3279
- });