Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

3351 linhas
118 KiB

  1. (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["static\\development\\pages\\index.js"],{
  2. /***/ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
  3. /*!**************************************************************************!*\
  4. !*** ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
  5. \**************************************************************************/
  6. /*! exports provided: default */
  7. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8. "use strict";
  9. __webpack_require__.r(__webpack_exports__);
  10. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _assertThisInitialized; });
  11. function _assertThisInitialized(self) {
  12. if (self === void 0) {
  13. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  14. }
  15. return self;
  16. }
  17. /***/ }),
  18. /***/ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
  19. /*!*******************************************************************!*\
  20. !*** ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
  21. \*******************************************************************/
  22. /*! exports provided: default */
  23. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  24. "use strict";
  25. __webpack_require__.r(__webpack_exports__);
  26. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _classCallCheck; });
  27. function _classCallCheck(instance, Constructor) {
  28. if (!(instance instanceof Constructor)) {
  29. throw new TypeError("Cannot call a class as a function");
  30. }
  31. }
  32. /***/ }),
  33. /***/ "./node_modules/@babel/runtime/helpers/esm/createClass.js":
  34. /*!****************************************************************!*\
  35. !*** ./node_modules/@babel/runtime/helpers/esm/createClass.js ***!
  36. \****************************************************************/
  37. /*! exports provided: default */
  38. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39. "use strict";
  40. __webpack_require__.r(__webpack_exports__);
  41. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _createClass; });
  42. function _defineProperties(target, props) {
  43. for (var i = 0; i < props.length; i++) {
  44. var descriptor = props[i];
  45. descriptor.enumerable = descriptor.enumerable || false;
  46. descriptor.configurable = true;
  47. if ("value" in descriptor) descriptor.writable = true;
  48. Object.defineProperty(target, descriptor.key, descriptor);
  49. }
  50. }
  51. function _createClass(Constructor, protoProps, staticProps) {
  52. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  53. if (staticProps) _defineProperties(Constructor, staticProps);
  54. return Constructor;
  55. }
  56. /***/ }),
  57. /***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
  58. /*!*******************************************************************!*\
  59. !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
  60. \*******************************************************************/
  61. /*! exports provided: default */
  62. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63. "use strict";
  64. __webpack_require__.r(__webpack_exports__);
  65. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _defineProperty; });
  66. function _defineProperty(obj, key, value) {
  67. if (key in obj) {
  68. Object.defineProperty(obj, key, {
  69. value: value,
  70. enumerable: true,
  71. configurable: true,
  72. writable: true
  73. });
  74. } else {
  75. obj[key] = value;
  76. }
  77. return obj;
  78. }
  79. /***/ }),
  80. /***/ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js":
  81. /*!*******************************************************************!*\
  82. !*** ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***!
  83. \*******************************************************************/
  84. /*! exports provided: default */
  85. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  86. "use strict";
  87. __webpack_require__.r(__webpack_exports__);
  88. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _getPrototypeOf; });
  89. function _getPrototypeOf(o) {
  90. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
  91. return o.__proto__ || Object.getPrototypeOf(o);
  92. };
  93. return _getPrototypeOf(o);
  94. }
  95. /***/ }),
  96. /***/ "./node_modules/@babel/runtime/helpers/esm/inherits.js":
  97. /*!*************************************************************!*\
  98. !*** ./node_modules/@babel/runtime/helpers/esm/inherits.js ***!
  99. \*************************************************************/
  100. /*! exports provided: default */
  101. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  102. "use strict";
  103. __webpack_require__.r(__webpack_exports__);
  104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _inherits; });
  105. /* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");
  106. function _inherits(subClass, superClass) {
  107. if (typeof superClass !== "function" && superClass !== null) {
  108. throw new TypeError("Super expression must either be null or a function");
  109. }
  110. subClass.prototype = Object.create(superClass && superClass.prototype, {
  111. constructor: {
  112. value: subClass,
  113. writable: true,
  114. configurable: true
  115. }
  116. });
  117. if (superClass) Object(_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__["default"])(subClass, superClass);
  118. }
  119. /***/ }),
  120. /***/ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js":
  121. /*!******************************************************************************!*\
  122. !*** ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***!
  123. \******************************************************************************/
  124. /*! exports provided: default */
  125. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  126. "use strict";
  127. __webpack_require__.r(__webpack_exports__);
  128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _possibleConstructorReturn; });
  129. /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
  130. /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  131. /* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
  132. function _possibleConstructorReturn(self, call) {
  133. if (call && (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(call) === "object" || typeof call === "function")) {
  134. return call;
  135. }
  136. return Object(_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__["default"])(self);
  137. }
  138. /***/ }),
  139. /***/ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
  140. /*!*******************************************************************!*\
  141. !*** ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
  142. \*******************************************************************/
  143. /*! exports provided: default */
  144. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  145. "use strict";
  146. __webpack_require__.r(__webpack_exports__);
  147. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _setPrototypeOf; });
  148. function _setPrototypeOf(o, p) {
  149. _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
  150. o.__proto__ = p;
  151. return o;
  152. };
  153. return _setPrototypeOf(o, p);
  154. }
  155. /***/ }),
  156. /***/ "./node_modules/@babel/runtime/helpers/typeof.js":
  157. /*!*******************************************************!*\
  158. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  159. \*******************************************************/
  160. /*! no static exports found */
  161. /***/ (function(module, exports) {
  162. function _typeof(obj) {
  163. "@babel/helpers - typeof";
  164. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  165. module.exports = _typeof = function _typeof(obj) {
  166. return typeof obj;
  167. };
  168. module.exports["default"] = module.exports, module.exports.__esModule = true;
  169. } else {
  170. module.exports = _typeof = function _typeof(obj) {
  171. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  172. };
  173. module.exports["default"] = module.exports, module.exports.__esModule = true;
  174. }
  175. return _typeof(obj);
  176. }
  177. module.exports = _typeof;
  178. module.exports["default"] = module.exports, module.exports.__esModule = true;
  179. /***/ }),
  180. /***/ "./node_modules/native-url/dist/index.js":
  181. /*!***********************************************!*\
  182. !*** ./node_modules/native-url/dist/index.js ***!
  183. \***********************************************/
  184. /*! no static exports found */
  185. /***/ (function(module, exports, __webpack_require__) {
  186. var e,t=(e=__webpack_require__(/*! querystring */ "./node_modules/querystring-es3/index.js"))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function o(e){"string"==typeof e&&(e=g(e));var o=function(e,t,r){var o=e.auth,a=e.hostname,s=e.protocol||"",c=e.pathname||"",h=e.hash||"",p=e.query||"",n=!1;o=o?encodeURIComponent(o).replace(/%3A/i,":")+"@":"",e.host?n=o+e.host:a&&(n=o+(~a.indexOf(":")?"["+a+"]":a),e.port&&(n+=":"+e.port)),p&&"object"==typeof p&&(p=t.encode(p));var l=e.search||p&&"?"+p||"";return s&&":"!==s.substr(-1)&&(s+=":"),e.slashes||(!s||r.test(s))&&!1!==n?(n="//"+(n||""),c&&"/"!==c[0]&&(c="/"+c)):n||(n=""),h&&"#"!==h[0]&&(h="#"+h),l&&"?"!==l[0]&&(l="?"+l),{protocol:s,host:n,pathname:c=c.replace(/[?#]/g,encodeURIComponent),search:l=l.replace("#","%23"),hash:h}}(e,t,r);return""+o.protocol+o.host+o.pathname+o.search+o.hash}var a="http://",s="w.w",c=a+s,h=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,p=/https?|ftp|gopher|file/;function n(e,t){var r="string"==typeof e?g(e):e;e="object"==typeof e?o(e):e;var s=g(t),n="";r.protocol&&!r.slashes&&(n=r.protocol,e=e.replace(r.protocol,""),n+="/"===t[0]||"/"===e[0]?"/":""),n&&s.protocol&&(n="",s.slashes||(n=s.protocol,t=t.replace(s.protocol,"")));var l=e.match(h);l&&!s.protocol&&(e=e.substr((n=l[1]+(l[2]||"")).length),/^\/\/[^/]/.test(t)&&(n=n.slice(0,-1)));var i=new URL(e,c+"/"),f=new URL(t,i).toString().replace(c,""),u=s.protocol||r.protocol;return u+=r.slashes||s.slashes?"//":"",!n&&u?f=f.replace(a,u):n&&(f=f.replace(a,"")),p.test(f)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==f.slice(-1)||(f=f.slice(0,-1)),n&&(f=n+("/"===f[0]?f.substr(1):f)),f}function l(){}l.parse=g,l.format=o,l.resolve=n,l.resolveObject=n;var i=/^https?|ftp|gopher|file/,f=/^(.*?)([#?].*)/,u=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,v=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function d(e){try{return decodeURI(e)}catch(t){return e}}function g(e,r,a){if(void 0===r&&(r=!1),void 0===a&&(a=!1),e&&"object"==typeof e&&e instanceof l)return e;var h=(e=e.trim()).match(f);e=h?d(h[1]).replace(/\\/g,"/")+h[2]:d(e).replace(/\\/g,"/"),v.test(e)&&"/"!==e.slice(-1)&&(e+="/");var p=!/(^javascript)/.test(e)&&e.match(u),n=m.test(e),g="";p&&(i.test(p[1])||(g=p[1].toLowerCase(),e=""+p[2]+p[3]),p[2]||(n=!1,i.test(p[1])?(g=p[1],e=""+p[3]):e="//"+p[3]),3!==p[2].length&&1!==p[2].length||(g=p[1],e="/"+p[3]));var b,y=(h?h[1]:e).match(/(:[0-9]+)/),j="";y&&y[1]&&3===y[1].length&&(e=e.replace(j=y[1],j+"00"));var w=new l,x="",U="";try{b=new URL(e)}catch(t){x=t,g||a||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(U="/",e=e.substr(1));try{b=new URL(e,c)}catch(e){return w.protocol=g,w.href=g,w}}w.slashes=n&&!U,w.host=b.host===s?"":b.host,w.hostname=b.hostname===s?"":b.hostname.replace(/(\[|\])/g,""),w.protocol=x?g||null:b.protocol,w.search=b.search.replace(/\\/g,"%5C"),w.hash=b.hash.replace(/\\/g,"%5C");var R=e.split("#");!w.search&&~R[0].indexOf("?")&&(w.search="?"),w.hash||""!==R[1]||(w.hash="#"),w.query=r?t.decode(b.search.substr(1)):w.search.substr(1),w.pathname=U+d(b.pathname).replace(/"/g,"%22"),"about:"===w.protocol&&"blank"===w.pathname&&(w.protocol="",w.pathname=""),x&&"/"!==e[0]&&(w.pathname=w.pathname.substr(1)),g&&!i.test(g)&&"/"!==e.slice(-1)&&"/"===w.pathname&&(w.pathname=""),w.path=w.pathname+w.search,w.auth=[b.username,b.password].map(decodeURIComponent).filter(Boolean).join(":"),w.port=b.port,j&&(w.host=w.host.replace(j+"00",j),w.port=w.port.slice(0,-2)),w.href=U?""+w.pathname+w.search+w.hash:o(w);var O=/^(file)/.test(w.href)?["host","hostname"]:[];return Object.keys(w).forEach(function(e){~O.indexOf(e)||(w[e]=w[e]||null)}),w}exports.parse=g,exports.format=o,exports.resolve=n,exports.resolveObject=function(e,t){return g(n(e,t))},exports.Url=l;
  187. //# sourceMappingURL=index.js.map
  188. /***/ }),
  189. /***/ "./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?page=%2F&absolutePagePath=C%3A%5CThamrin%20Brothers%5Ctbg-ecomm-nextjs%5Cpages%5Cindex.js&hotRouterUpdates=true!./":
  190. /*!**************************************************************************************************************************************************************************************************!*\
  191. !*** ./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?page=%2F&absolutePagePath=C%3A%5CThamrin%20Brothers%5Ctbg-ecomm-nextjs%5Cpages%5Cindex.js&hotRouterUpdates=true ***!
  192. \**************************************************************************************************************************************************************************************************/
  193. /*! no static exports found */
  194. /***/ (function(module, exports, __webpack_require__) {
  195. (window.__NEXT_P = window.__NEXT_P || []).push([
  196. "/",
  197. function () {
  198. var mod = __webpack_require__(/*! ./pages/index.js */ "./pages/index.js");
  199. if (true) {
  200. module.hot.accept(/*! ./pages/index.js */ "./pages/index.js", function () {
  201. if (!next.router.components["/"]) return;
  202. var updatedPage = __webpack_require__(/*! ./pages/index.js */ "./pages/index.js");
  203. next.router.update("/", updatedPage);
  204. });
  205. }
  206. return mod;
  207. }
  208. ]);
  209. /***/ }),
  210. /***/ "./node_modules/next/dist/client/router.js":
  211. /*!*************************************************!*\
  212. !*** ./node_modules/next/dist/client/router.js ***!
  213. \*************************************************/
  214. /*! no static exports found */
  215. /***/ (function(module, exports, __webpack_require__) {
  216. "use strict";
  217. var _construct = __webpack_require__(/*! @babel/runtime/helpers/construct */ "./node_modules/next/node_modules/@babel/runtime/helpers/construct.js");
  218. function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
  219. 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); }
  220. 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; }
  221. var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/next/node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
  222. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/next/node_modules/@babel/runtime/helpers/interopRequireDefault.js");
  223. exports.__esModule = true;
  224. exports.useRouter = useRouter;
  225. exports.makePublicRouterInstance = makePublicRouterInstance;
  226. exports.createRouter = exports.withRouter = exports["default"] = void 0;
  227. var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
  228. var _router2 = _interopRequireWildcard(__webpack_require__(/*! ../next-server/lib/router/router */ "./node_modules/next/dist/next-server/lib/router/router.js"));
  229. exports.Router = _router2["default"];
  230. exports.NextRouter = _router2.NextRouter;
  231. var _routerContext = __webpack_require__(/*! ../next-server/lib/router-context */ "./node_modules/next/dist/next-server/lib/router-context.js");
  232. var _withRouter = _interopRequireDefault(__webpack_require__(/*! ./with-router */ "./node_modules/next/dist/client/with-router.js"));
  233. exports.withRouter = _withRouter["default"];
  234. /* global window */
  235. var singletonRouter = {
  236. router: null,
  237. // holds the actual router instance
  238. readyCallbacks: [],
  239. ready: function ready(cb) {
  240. if (this.router) return cb();
  241. if (true) {
  242. this.readyCallbacks.push(cb);
  243. }
  244. }
  245. }; // Create public properties and methods of the router in the singletonRouter
  246. var urlPropertyFields = ['pathname', 'route', 'query', 'asPath', 'components', 'isFallback', 'basePath'];
  247. var routerEvents = ['routeChangeStart', 'beforeHistoryChange', 'routeChangeComplete', 'routeChangeError', 'hashChangeStart', 'hashChangeComplete'];
  248. var coreMethodFields = ['push', 'replace', 'reload', 'back', 'prefetch', 'beforePopState']; // Events is a static property on the router, the router doesn't have to be initialized to use it
  249. Object.defineProperty(singletonRouter, 'events', {
  250. get: function get() {
  251. return _router2["default"].events;
  252. }
  253. });
  254. urlPropertyFields.forEach(function (field) {
  255. // Here we need to use Object.defineProperty because, we need to return
  256. // the property assigned to the actual router
  257. // The value might get changed as we change routes and this is the
  258. // proper way to access it
  259. Object.defineProperty(singletonRouter, field, {
  260. get: function get() {
  261. var router = getRouter();
  262. return router[field];
  263. }
  264. });
  265. });
  266. coreMethodFields.forEach(function (field) {
  267. // We don't really know the types here, so we add them later instead
  268. ;
  269. singletonRouter[field] = function () {
  270. var router = getRouter();
  271. return router[field].apply(router, arguments);
  272. };
  273. });
  274. routerEvents.forEach(function (event) {
  275. singletonRouter.ready(function () {
  276. _router2["default"].events.on(event, function () {
  277. var eventField = "on" + event.charAt(0).toUpperCase() + event.substring(1);
  278. var _singletonRouter = singletonRouter;
  279. if (_singletonRouter[eventField]) {
  280. try {
  281. _singletonRouter[eventField].apply(_singletonRouter, arguments);
  282. } catch (err) {
  283. // tslint:disable-next-line:no-console
  284. console.error("Error when running the Router event: " + eventField); // tslint:disable-next-line:no-console
  285. console.error(err.message + "\n" + err.stack);
  286. }
  287. }
  288. });
  289. });
  290. });
  291. function getRouter() {
  292. if (!singletonRouter.router) {
  293. var message = 'No router instance found.\n' + 'You should only use "next/router" inside the client side of your app.\n';
  294. throw new Error(message);
  295. }
  296. return singletonRouter.router;
  297. } // Export the singletonRouter and this is the public API.
  298. var _default = singletonRouter; // Reexport the withRoute HOC
  299. exports["default"] = _default;
  300. function useRouter() {
  301. return _react["default"].useContext(_routerContext.RouterContext);
  302. } // INTERNAL APIS
  303. // -------------
  304. // (do not use following exports inside the app)
  305. // Create a router and assign it as the singleton instance.
  306. // This is used in client side when we are initilizing the app.
  307. // This should **not** use inside the server.
  308. var createRouter = function createRouter() {
  309. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  310. args[_key] = arguments[_key];
  311. }
  312. singletonRouter.router = _construct(_router2["default"], args);
  313. singletonRouter.readyCallbacks.forEach(function (cb) {
  314. return cb();
  315. });
  316. singletonRouter.readyCallbacks = [];
  317. return singletonRouter.router;
  318. }; // This function is used to create the `withRouter` router instance
  319. exports.createRouter = createRouter;
  320. function makePublicRouterInstance(router) {
  321. var _router = router;
  322. var instance = {};
  323. var _iterator = _createForOfIteratorHelper(urlPropertyFields),
  324. _step;
  325. try {
  326. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  327. var property = _step.value;
  328. if (typeof _router[property] === 'object') {
  329. instance[property] = Object.assign({}, _router[property]); // makes sure query is not stateful
  330. continue;
  331. }
  332. instance[property] = _router[property];
  333. } // Events is a static property on the router, the router doesn't have to be initialized to use it
  334. } catch (err) {
  335. _iterator.e(err);
  336. } finally {
  337. _iterator.f();
  338. }
  339. instance.events = _router2["default"].events;
  340. coreMethodFields.forEach(function (field) {
  341. instance[field] = function () {
  342. return _router[field].apply(_router, arguments);
  343. };
  344. });
  345. return instance;
  346. }
  347. /***/ }),
  348. /***/ "./node_modules/next/dist/client/with-router.js":
  349. /*!******************************************************!*\
  350. !*** ./node_modules/next/dist/client/with-router.js ***!
  351. \******************************************************/
  352. /*! no static exports found */
  353. /***/ (function(module, exports, __webpack_require__) {
  354. "use strict";
  355. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/next/node_modules/@babel/runtime/helpers/interopRequireDefault.js");
  356. exports.__esModule = true;
  357. exports["default"] = withRouter;
  358. var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
  359. var _router = __webpack_require__(/*! ./router */ "./node_modules/next/dist/client/router.js");
  360. function withRouter(ComposedComponent) {
  361. function WithRouterWrapper(props) {
  362. return _react["default"].createElement(ComposedComponent, Object.assign({
  363. router: (0, _router.useRouter)()
  364. }, props));
  365. }
  366. WithRouterWrapper.getInitialProps = ComposedComponent.getInitialProps // This is needed to allow checking for custom getInitialProps in _app
  367. ;
  368. WithRouterWrapper.origGetInitialProps = ComposedComponent.origGetInitialProps;
  369. if (true) {
  370. var name = ComposedComponent.displayName || ComposedComponent.name || 'Unknown';
  371. WithRouterWrapper.displayName = "withRouter(" + name + ")";
  372. }
  373. return WithRouterWrapper;
  374. }
  375. /***/ }),
  376. /***/ "./node_modules/next/dist/next-server/lib/mitt.js":
  377. /*!********************************************************!*\
  378. !*** ./node_modules/next/dist/next-server/lib/mitt.js ***!
  379. \********************************************************/
  380. /*! no static exports found */
  381. /***/ (function(module, exports, __webpack_require__) {
  382. "use strict";
  383. /*
  384. MIT License
  385. Copyright (c) Jason Miller (https://jasonformat.com/)
  386. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  387. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  388. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  389. */
  390. Object.defineProperty(exports, "__esModule", {
  391. value: true
  392. });
  393. function mitt() {
  394. var all = Object.create(null);
  395. return {
  396. on: function on(type, handler) {
  397. ;
  398. (all[type] || (all[type] = [])).push(handler);
  399. },
  400. off: function off(type, handler) {
  401. if (all[type]) {
  402. // tslint:disable-next-line:no-bitwise
  403. all[type].splice(all[type].indexOf(handler) >>> 0, 1);
  404. }
  405. },
  406. emit: function emit(type) {
  407. for (var _len = arguments.length, evts = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  408. evts[_key - 1] = arguments[_key];
  409. }
  410. // eslint-disable-next-line array-callback-return
  411. ;
  412. (all[type] || []).slice().map(function (handler) {
  413. handler.apply(void 0, evts);
  414. });
  415. }
  416. };
  417. }
  418. exports["default"] = mitt;
  419. /***/ }),
  420. /***/ "./node_modules/next/dist/next-server/lib/router-context.js":
  421. /*!******************************************************************!*\
  422. !*** ./node_modules/next/dist/next-server/lib/router-context.js ***!
  423. \******************************************************************/
  424. /*! no static exports found */
  425. /***/ (function(module, exports, __webpack_require__) {
  426. "use strict";
  427. var __importStar = this && this.__importStar || function (mod) {
  428. if (mod && mod.__esModule) return mod;
  429. var result = {};
  430. if (mod != null) for (var k in mod) {
  431. if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  432. }
  433. result["default"] = mod;
  434. return result;
  435. };
  436. Object.defineProperty(exports, "__esModule", {
  437. value: true
  438. });
  439. var React = __importStar(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
  440. exports.RouterContext = React.createContext(null);
  441. if (true) {
  442. exports.RouterContext.displayName = 'RouterContext';
  443. }
  444. /***/ }),
  445. /***/ "./node_modules/next/dist/next-server/lib/router/router.js":
  446. /*!*****************************************************************!*\
  447. !*** ./node_modules/next/dist/next-server/lib/router/router.js ***!
  448. \*****************************************************************/
  449. /*! no static exports found */
  450. /***/ (function(module, exports, __webpack_require__) {
  451. "use strict";
  452. var _regeneratorRuntime = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/next/node_modules/@babel/runtime/regenerator/index.js");
  453. var _slicedToArray = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/next/node_modules/@babel/runtime/helpers/slicedToArray.js");
  454. var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/next/node_modules/@babel/runtime/helpers/classCallCheck.js");
  455. var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/next/node_modules/@babel/runtime/helpers/createClass.js");
  456. var __importDefault = this && this.__importDefault || function (mod) {
  457. return mod && mod.__esModule ? mod : {
  458. "default": mod
  459. };
  460. };
  461. Object.defineProperty(exports, "__esModule", {
  462. value: true
  463. });
  464. var url_1 = __webpack_require__(/*! url */ "./node_modules/native-url/dist/index.js");
  465. var mitt_1 = __importDefault(__webpack_require__(/*! ../mitt */ "./node_modules/next/dist/next-server/lib/mitt.js"));
  466. var utils_1 = __webpack_require__(/*! ../utils */ "./node_modules/next/dist/next-server/lib/utils.js");
  467. var is_dynamic_1 = __webpack_require__(/*! ./utils/is-dynamic */ "./node_modules/next/dist/next-server/lib/router/utils/is-dynamic.js");
  468. var route_matcher_1 = __webpack_require__(/*! ./utils/route-matcher */ "./node_modules/next/dist/next-server/lib/router/utils/route-matcher.js");
  469. var route_regex_1 = __webpack_require__(/*! ./utils/route-regex */ "./node_modules/next/dist/next-server/lib/router/utils/route-regex.js");
  470. var basePath = false || '';
  471. function addBasePath(path) {
  472. return path.indexOf(basePath) !== 0 ? basePath + path : path;
  473. }
  474. exports.addBasePath = addBasePath;
  475. function delBasePath(path) {
  476. return path.indexOf(basePath) === 0 ? path.substr(basePath.length) || '/' : path;
  477. }
  478. exports.delBasePath = delBasePath;
  479. function toRoute(path) {
  480. return path.replace(/\/$/, '') || '/';
  481. }
  482. var prepareRoute = function prepareRoute(path) {
  483. return toRoute(!path || path === '/' ? '/index' : path);
  484. };
  485. function fetchNextData(pathname, query, isServerRender, cb) {
  486. var attempts = isServerRender ? 3 : 1;
  487. function getResponse() {
  488. return fetch(utils_1.formatWithValidation({
  489. pathname: addBasePath( // @ts-ignore __NEXT_DATA__
  490. "/_next/data/".concat(__NEXT_DATA__.buildId).concat(delBasePath(pathname), ".json")),
  491. query: query
  492. }), {
  493. // Cookies are required to be present for Next.js' SSG "Preview Mode".
  494. // Cookies may also be required for `getServerSideProps`.
  495. //
  496. // > `fetch` won’t send cookies, unless you set the credentials init
  497. // > option.
  498. // https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
  499. //
  500. // > For maximum browser compatibility when it comes to sending &
  501. // > receiving cookies, always supply the `credentials: 'same-origin'`
  502. // > option instead of relying on the default.
  503. // https://github.com/github/fetch#caveats
  504. credentials: 'same-origin'
  505. }).then(function (res) {
  506. if (!res.ok) {
  507. if (--attempts > 0 && res.status >= 500) {
  508. return getResponse();
  509. }
  510. throw new Error("Failed to load static props");
  511. }
  512. return res.json();
  513. });
  514. }
  515. return getResponse().then(function (data) {
  516. return cb ? cb(data) : data;
  517. })["catch"](function (err) {
  518. // We should only trigger a server-side transition if this was caused
  519. // on a client-side transition. Otherwise, we'd get into an infinite
  520. // loop.
  521. if (!isServerRender) {
  522. ;
  523. err.code = 'PAGE_LOAD_ERROR';
  524. }
  525. throw err;
  526. });
  527. }
  528. var Router = /*#__PURE__*/function () {
  529. function Router(pathname, query, as, _ref) {
  530. var _this = this;
  531. var initialProps = _ref.initialProps,
  532. pageLoader = _ref.pageLoader,
  533. App = _ref.App,
  534. wrapApp = _ref.wrapApp,
  535. Component = _ref.Component,
  536. err = _ref.err,
  537. subscription = _ref.subscription,
  538. isFallback = _ref.isFallback;
  539. _classCallCheck(this, Router);
  540. // Static Data Cache
  541. this.sdc = {};
  542. this.onPopState = function (e) {
  543. if (!e.state) {
  544. // We get state as undefined for two reasons.
  545. // 1. With older safari (< 8) and older chrome (< 34)
  546. // 2. When the URL changed with #
  547. //
  548. // In the both cases, we don't need to proceed and change the route.
  549. // (as it's already changed)
  550. // But we can simply replace the state with the new changes.
  551. // Actually, for (1) we don't need to nothing. But it's hard to detect that event.
  552. // So, doing the following for (1) does no harm.
  553. var _pathname = _this.pathname,
  554. _query = _this.query;
  555. _this.changeState('replaceState', utils_1.formatWithValidation({
  556. pathname: _pathname,
  557. query: _query
  558. }), utils_1.getURL());
  559. return;
  560. } // Make sure we don't re-render on initial load,
  561. // can be caused by navigating back from an external site
  562. if (e.state && _this.isSsr && e.state.as === _this.asPath && url_1.parse(e.state.url).pathname === _this.pathname) {
  563. return;
  564. } // If the downstream application returns falsy, return.
  565. // They will then be responsible for handling the event.
  566. if (_this._bps && !_this._bps(e.state)) {
  567. return;
  568. }
  569. var _e$state = e.state,
  570. url = _e$state.url,
  571. as = _e$state.as,
  572. options = _e$state.options;
  573. if (true) {
  574. if (typeof url === 'undefined' || typeof as === 'undefined') {
  575. console.warn('`popstate` event triggered but `event.state` did not have `url` or `as` https://err.sh/zeit/next.js/popstate-state-empty');
  576. }
  577. }
  578. _this.replace(url, as, options);
  579. };
  580. this._getStaticData = function (asPath) {
  581. var pathname = prepareRoute(url_1.parse(asPath).pathname);
  582. return false ? undefined : fetchNextData(pathname, null, _this.isSsr, function (data) {
  583. return _this.sdc[pathname] = data;
  584. });
  585. };
  586. this._getServerData = function (asPath) {
  587. var _url_1$parse = url_1.parse(asPath, true),
  588. pathname = _url_1$parse.pathname,
  589. query = _url_1$parse.query;
  590. pathname = prepareRoute(pathname);
  591. return fetchNextData(pathname, query, _this.isSsr);
  592. }; // represents the current component key
  593. this.route = toRoute(pathname); // set up the component cache (by route keys)
  594. this.components = {}; // We should not keep the cache, if there's an error
  595. // Otherwise, this cause issues when when going back and
  596. // come again to the errored page.
  597. if (pathname !== '/_error') {
  598. this.components[this.route] = {
  599. Component: Component,
  600. props: initialProps,
  601. err: err,
  602. __N_SSG: initialProps && initialProps.__N_SSG,
  603. __N_SSP: initialProps && initialProps.__N_SSP
  604. };
  605. }
  606. this.components['/_app'] = {
  607. Component: App
  608. }; // Backwards compat for Router.router.events
  609. // TODO: Should be remove the following major version as it was never documented
  610. this.events = Router.events;
  611. this.pageLoader = pageLoader;
  612. this.pathname = pathname;
  613. this.query = query; // if auto prerendered and dynamic route wait to update asPath
  614. // until after mount to prevent hydration mismatch
  615. this.asPath = // @ts-ignore this is temporarily global (attached to window)
  616. is_dynamic_1.isDynamicRoute(pathname) && __NEXT_DATA__.autoExport ? pathname : as;
  617. this.basePath = basePath;
  618. this.sub = subscription;
  619. this.clc = null;
  620. this._wrapApp = wrapApp; // make sure to ignore extra popState in safari on navigating
  621. // back from external site
  622. this.isSsr = true;
  623. this.isFallback = isFallback;
  624. if (true) {
  625. // make sure "as" doesn't start with double slashes or else it can
  626. // throw an error as it's considered invalid
  627. if (as.substr(0, 2) !== '//') {
  628. // in order for `e.state` to work on the `onpopstate` event
  629. // we have to register the initial route upon initialization
  630. this.changeState('replaceState', utils_1.formatWithValidation({
  631. pathname: pathname,
  632. query: query
  633. }), as);
  634. }
  635. window.addEventListener('popstate', this.onPopState);
  636. }
  637. } // @deprecated backwards compatibility even though it's a private method.
  638. _createClass(Router, [{
  639. key: "update",
  640. value: function update(route, mod) {
  641. var Component = mod["default"] || mod;
  642. var data = this.components[route];
  643. if (!data) {
  644. throw new Error("Cannot update unavailable route: ".concat(route));
  645. }
  646. var newData = Object.assign(Object.assign({}, data), {
  647. Component: Component,
  648. __N_SSG: mod.__N_SSG,
  649. __N_SSP: mod.__N_SSP
  650. });
  651. this.components[route] = newData; // pages/_app.js updated
  652. if (route === '/_app') {
  653. this.notify(this.components[this.route]);
  654. return;
  655. }
  656. if (route === this.route) {
  657. this.notify(newData);
  658. }
  659. }
  660. }, {
  661. key: "reload",
  662. value: function reload() {
  663. window.location.reload();
  664. }
  665. /**
  666. * Go back in history
  667. */
  668. }, {
  669. key: "back",
  670. value: function back() {
  671. window.history.back();
  672. }
  673. /**
  674. * Performs a `pushState` with arguments
  675. * @param url of the route
  676. * @param as masks `url` for the browser
  677. * @param options object you can define `shallow` and other options
  678. */
  679. }, {
  680. key: "push",
  681. value: function push(url) {
  682. var as = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : url;
  683. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  684. return this.change('pushState', url, as, options);
  685. }
  686. /**
  687. * Performs a `replaceState` with arguments
  688. * @param url of the route
  689. * @param as masks `url` for the browser
  690. * @param options object you can define `shallow` and other options
  691. */
  692. }, {
  693. key: "replace",
  694. value: function replace(url) {
  695. var as = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : url;
  696. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  697. return this.change('replaceState', url, as, options);
  698. }
  699. }, {
  700. key: "change",
  701. value: function change(method, _url, _as, options) {
  702. var _this2 = this;
  703. return new Promise(function (resolve, reject) {
  704. if (!options._h) {
  705. _this2.isSsr = false;
  706. } // marking route changes as a navigation start entry
  707. if (utils_1.ST) {
  708. performance.mark('routeChange');
  709. } // If url and as provided as an object representation,
  710. // we'll format them into the string version here.
  711. var url = typeof _url === 'object' ? utils_1.formatWithValidation(_url) : _url;
  712. var as = typeof _as === 'object' ? utils_1.formatWithValidation(_as) : _as;
  713. url = addBasePath(url);
  714. as = addBasePath(as); // Add the ending slash to the paths. So, we can serve the
  715. // "<page>/index.html" directly for the SSR page.
  716. if (false) { var rewriteUrlForNextExport; }
  717. _this2.abortComponentLoad(as); // If the url change is only related to a hash change
  718. // We should not proceed. We should only change the state.
  719. // WARNING: `_h` is an internal option for handing Next.js client-side
  720. // hydration. Your app should _never_ use this property. It may change at
  721. // any time without notice.
  722. if (!options._h && _this2.onlyAHashChange(as)) {
  723. _this2.asPath = as;
  724. Router.events.emit('hashChangeStart', as);
  725. _this2.changeState(method, url, as, options);
  726. _this2.scrollToHash(as);
  727. Router.events.emit('hashChangeComplete', as);
  728. return resolve(true);
  729. }
  730. var _url_1$parse2 = url_1.parse(url, true),
  731. pathname = _url_1$parse2.pathname,
  732. query = _url_1$parse2.query,
  733. protocol = _url_1$parse2.protocol;
  734. if (!pathname || protocol) {
  735. if (true) {
  736. throw new Error("Invalid href passed to router: ".concat(url, " https://err.sh/zeit/next.js/invalid-href-passed"));
  737. }
  738. return resolve(false);
  739. } // If asked to change the current URL we should reload the current page
  740. // (not location.reload() but reload getInitialProps and other Next.js stuffs)
  741. // We also need to set the method = replaceState always
  742. // as this should not go into the history (That's how browsers work)
  743. // We should compare the new asPath to the current asPath, not the url
  744. if (!_this2.urlIsNew(as)) {
  745. method = 'replaceState';
  746. }
  747. var route = toRoute(pathname);
  748. var _options$shallow = options.shallow,
  749. shallow = _options$shallow === void 0 ? false : _options$shallow;
  750. if (is_dynamic_1.isDynamicRoute(route)) {
  751. var _url_1$parse3 = url_1.parse(as),
  752. asPathname = _url_1$parse3.pathname;
  753. var routeRegex = route_regex_1.getRouteRegex(route);
  754. var routeMatch = route_matcher_1.getRouteMatcher(routeRegex)(asPathname);
  755. if (!routeMatch) {
  756. var missingParams = Object.keys(routeRegex.groups).filter(function (param) {
  757. return !query[param];
  758. });
  759. if (missingParams.length > 0) {
  760. if (true) {
  761. console.warn("Mismatching `as` and `href` failed to manually provide " + "the params: ".concat(missingParams.join(', '), " in the `href`'s `query`"));
  762. }
  763. return reject(new Error("The provided `as` value (".concat(asPathname, ") is incompatible with the `href` value (").concat(route, "). ") + "Read more: https://err.sh/zeit/next.js/incompatible-href-as"));
  764. }
  765. } else {
  766. // Merge params into `query`, overwriting any specified in search
  767. Object.assign(query, routeMatch);
  768. }
  769. }
  770. Router.events.emit('routeChangeStart', as); // If shallow is true and the route exists in the router cache we reuse the previous result
  771. _this2.getRouteInfo(route, pathname, query, as, shallow).then(function (routeInfo) {
  772. var error = routeInfo.error;
  773. if (error && error.cancelled) {
  774. return resolve(false);
  775. }
  776. Router.events.emit('beforeHistoryChange', as);
  777. _this2.changeState(method, url, as, options);
  778. if (true) {
  779. var appComp = _this2.components['/_app'].Component;
  780. window.next.isPrerendered = appComp.getInitialProps === appComp.origGetInitialProps && !routeInfo.Component.getInitialProps;
  781. }
  782. _this2.set(route, pathname, query, as, routeInfo);
  783. if (error) {
  784. Router.events.emit('routeChangeError', error, as);
  785. throw error;
  786. }
  787. Router.events.emit('routeChangeComplete', as);
  788. return resolve(true);
  789. }, reject);
  790. });
  791. }
  792. }, {
  793. key: "changeState",
  794. value: function changeState(method, url, as) {
  795. var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  796. if (true) {
  797. if (typeof window.history === 'undefined') {
  798. console.error("Warning: window.history is not available.");
  799. return;
  800. }
  801. if (typeof window.history[method] === 'undefined') {
  802. console.error("Warning: window.history.".concat(method, " is not available"));
  803. return;
  804. }
  805. }
  806. if (method !== 'pushState' || utils_1.getURL() !== as) {
  807. window.history[method]({
  808. url: url,
  809. as: as,
  810. options: options
  811. }, // Most browsers currently ignores this parameter, although they may use it in the future.
  812. // Passing the empty string here should be safe against future changes to the method.
  813. // https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
  814. '', as);
  815. }
  816. }
  817. }, {
  818. key: "getRouteInfo",
  819. value: function getRouteInfo(route, pathname, query, as) {
  820. var _this3 = this;
  821. var shallow = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  822. var cachedRouteInfo = this.components[route]; // If there is a shallow route transition possible
  823. // If the route is already rendered on the screen.
  824. if (shallow && cachedRouteInfo && this.route === route) {
  825. return Promise.resolve(cachedRouteInfo);
  826. }
  827. var handleError = function handleError(err, loadErrorFail) {
  828. return new Promise(function (resolve) {
  829. if (err.code === 'PAGE_LOAD_ERROR' || loadErrorFail) {
  830. // If we can't load the page it could be one of following reasons
  831. // 1. Page doesn't exists
  832. // 2. Page does exist in a different zone
  833. // 3. Internal error while loading the page
  834. // So, doing a hard reload is the proper way to deal with this.
  835. window.location.href = as; // Changing the URL doesn't block executing the current code path.
  836. // So, we need to mark it as a cancelled error and stop the routing logic.
  837. err.cancelled = true; // @ts-ignore TODO: fix the control flow here
  838. return resolve({
  839. error: err
  840. });
  841. }
  842. if (err.cancelled) {
  843. // @ts-ignore TODO: fix the control flow here
  844. return resolve({
  845. error: err
  846. });
  847. }
  848. resolve(_this3.fetchComponent('/_error').then(function (res) {
  849. var Component = res.page;
  850. var routeInfo = {
  851. Component: Component,
  852. err: err
  853. };
  854. return new Promise(function (resolve) {
  855. _this3.getInitialProps(Component, {
  856. err: err,
  857. pathname: pathname,
  858. query: query
  859. }).then(function (props) {
  860. routeInfo.props = props;
  861. routeInfo.error = err;
  862. resolve(routeInfo);
  863. }, function (gipErr) {
  864. console.error('Error in error page `getInitialProps`: ', gipErr);
  865. routeInfo.error = err;
  866. routeInfo.props = {};
  867. resolve(routeInfo);
  868. });
  869. });
  870. })["catch"](function (err) {
  871. return handleError(err, true);
  872. }));
  873. });
  874. };
  875. return new Promise(function (resolve, reject) {
  876. if (cachedRouteInfo) {
  877. return resolve(cachedRouteInfo);
  878. }
  879. _this3.fetchComponent(route).then(function (res) {
  880. return resolve({
  881. Component: res.page,
  882. __N_SSG: res.mod.__N_SSG,
  883. __N_SSP: res.mod.__N_SSP
  884. });
  885. }, reject);
  886. }).then(function (routeInfo) {
  887. var Component = routeInfo.Component,
  888. __N_SSG = routeInfo.__N_SSG,
  889. __N_SSP = routeInfo.__N_SSP;
  890. if (true) {
  891. var _require = __webpack_require__(/*! react-is */ "./node_modules/next/node_modules/react-is/index.js"),
  892. isValidElementType = _require.isValidElementType;
  893. if (!isValidElementType(Component)) {
  894. throw new Error("The default export is not a React Component in page: \"".concat(pathname, "\""));
  895. }
  896. }
  897. return _this3._getData(function () {
  898. return __N_SSG ? _this3._getStaticData(as) : __N_SSP ? _this3._getServerData(as) : _this3.getInitialProps(Component, // we provide AppTree later so this needs to be `any`
  899. {
  900. pathname: pathname,
  901. query: query,
  902. asPath: as
  903. });
  904. }).then(function (props) {
  905. routeInfo.props = props;
  906. _this3.components[route] = routeInfo;
  907. return routeInfo;
  908. });
  909. })["catch"](handleError);
  910. }
  911. }, {
  912. key: "set",
  913. value: function set(route, pathname, query, as, data) {
  914. this.isFallback = false;
  915. this.route = route;
  916. this.pathname = pathname;
  917. this.query = query;
  918. this.asPath = as;
  919. this.notify(data);
  920. }
  921. /**
  922. * Callback to execute before replacing router state
  923. * @param cb callback to be executed
  924. */
  925. }, {
  926. key: "beforePopState",
  927. value: function beforePopState(cb) {
  928. this._bps = cb;
  929. }
  930. }, {
  931. key: "onlyAHashChange",
  932. value: function onlyAHashChange(as) {
  933. if (!this.asPath) return false;
  934. var _this$asPath$split = this.asPath.split('#'),
  935. _this$asPath$split2 = _slicedToArray(_this$asPath$split, 2),
  936. oldUrlNoHash = _this$asPath$split2[0],
  937. oldHash = _this$asPath$split2[1];
  938. var _as$split = as.split('#'),
  939. _as$split2 = _slicedToArray(_as$split, 2),
  940. newUrlNoHash = _as$split2[0],
  941. newHash = _as$split2[1]; // Makes sure we scroll to the provided hash if the url/hash are the same
  942. if (newHash && oldUrlNoHash === newUrlNoHash && oldHash === newHash) {
  943. return true;
  944. } // If the urls are change, there's more than a hash change
  945. if (oldUrlNoHash !== newUrlNoHash) {
  946. return false;
  947. } // If the hash has changed, then it's a hash only change.
  948. // This check is necessary to handle both the enter and
  949. // leave hash === '' cases. The identity case falls through
  950. // and is treated as a next reload.
  951. return oldHash !== newHash;
  952. }
  953. }, {
  954. key: "scrollToHash",
  955. value: function scrollToHash(as) {
  956. var _as$split3 = as.split('#'),
  957. _as$split4 = _slicedToArray(_as$split3, 2),
  958. hash = _as$split4[1]; // Scroll to top if the hash is just `#` with no value
  959. if (hash === '') {
  960. window.scrollTo(0, 0);
  961. return;
  962. } // First we check if the element by id is found
  963. var idEl = document.getElementById(hash);
  964. if (idEl) {
  965. idEl.scrollIntoView();
  966. return;
  967. } // If there's no element with the id, we check the `name` property
  968. // To mirror browsers
  969. var nameEl = document.getElementsByName(hash)[0];
  970. if (nameEl) {
  971. nameEl.scrollIntoView();
  972. }
  973. }
  974. }, {
  975. key: "urlIsNew",
  976. value: function urlIsNew(asPath) {
  977. return this.asPath !== asPath;
  978. }
  979. /**
  980. * Prefetch page code, you may wait for the data during page rendering.
  981. * This feature only works in production!
  982. * @param url the href of prefetched page
  983. * @param asPath the as path of the prefetched page
  984. */
  985. }, {
  986. key: "prefetch",
  987. value: function prefetch(url) {
  988. var _this4 = this;
  989. var asPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : url;
  990. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  991. return new Promise(function (resolve, reject) {
  992. var _url_1$parse4 = url_1.parse(url),
  993. pathname = _url_1$parse4.pathname,
  994. protocol = _url_1$parse4.protocol;
  995. if (!pathname || protocol) {
  996. if (true) {
  997. throw new Error("Invalid href passed to router: ".concat(url, " https://err.sh/zeit/next.js/invalid-href-passed"));
  998. }
  999. return;
  1000. } // Prefetch is not supported in development mode because it would trigger on-demand-entries
  1001. if (true) {
  1002. return;
  1003. }
  1004. var route = delBasePath(toRoute(pathname));
  1005. Promise.all([_this4.pageLoader.prefetchData(url, delBasePath(asPath)), _this4.pageLoader[options.priority ? 'loadPage' : 'prefetch'](route)]).then(function () {
  1006. return resolve();
  1007. }, reject);
  1008. });
  1009. }
  1010. }, {
  1011. key: "fetchComponent",
  1012. value: function fetchComponent(route) {
  1013. var cancelled, cancel, componentResult, error;
  1014. return _regeneratorRuntime.async(function fetchComponent$(_context) {
  1015. while (1) {
  1016. switch (_context.prev = _context.next) {
  1017. case 0:
  1018. cancelled = false;
  1019. cancel = this.clc = function () {
  1020. cancelled = true;
  1021. };
  1022. route = delBasePath(route);
  1023. _context.next = 5;
  1024. return _regeneratorRuntime.awrap(this.pageLoader.loadPage(route));
  1025. case 5:
  1026. componentResult = _context.sent;
  1027. if (!cancelled) {
  1028. _context.next = 10;
  1029. break;
  1030. }
  1031. error = new Error("Abort fetching component for route: \"".concat(route, "\""));
  1032. error.cancelled = true;
  1033. throw error;
  1034. case 10:
  1035. if (cancel === this.clc) {
  1036. this.clc = null;
  1037. }
  1038. return _context.abrupt("return", componentResult);
  1039. case 12:
  1040. case "end":
  1041. return _context.stop();
  1042. }
  1043. }
  1044. }, null, this, null, Promise);
  1045. }
  1046. }, {
  1047. key: "_getData",
  1048. value: function _getData(fn) {
  1049. var _this5 = this;
  1050. var cancelled = false;
  1051. var cancel = function cancel() {
  1052. cancelled = true;
  1053. };
  1054. this.clc = cancel;
  1055. return fn().then(function (data) {
  1056. if (cancel === _this5.clc) {
  1057. _this5.clc = null;
  1058. }
  1059. if (cancelled) {
  1060. var err = new Error('Loading initial props cancelled');
  1061. err.cancelled = true;
  1062. throw err;
  1063. }
  1064. return data;
  1065. });
  1066. }
  1067. }, {
  1068. key: "getInitialProps",
  1069. value: function getInitialProps(Component, ctx) {
  1070. var App = this.components['/_app'].Component;
  1071. var AppTree = this._wrapApp(App);
  1072. ctx.AppTree = AppTree;
  1073. return utils_1.loadGetInitialProps(App, {
  1074. AppTree: AppTree,
  1075. Component: Component,
  1076. router: this,
  1077. ctx: ctx
  1078. });
  1079. }
  1080. }, {
  1081. key: "abortComponentLoad",
  1082. value: function abortComponentLoad(as) {
  1083. if (this.clc) {
  1084. var e = new Error('Route Cancelled');
  1085. e.cancelled = true;
  1086. Router.events.emit('routeChangeError', e, as);
  1087. this.clc();
  1088. this.clc = null;
  1089. }
  1090. }
  1091. }, {
  1092. key: "notify",
  1093. value: function notify(data) {
  1094. this.sub(data, this.components['/_app'].Component);
  1095. }
  1096. }], [{
  1097. key: "_rewriteUrlForNextExport",
  1098. value: function _rewriteUrlForNextExport(url) {
  1099. if (false) { var rewriteUrlForNextExport; } else {
  1100. return url;
  1101. }
  1102. }
  1103. }]);
  1104. return Router;
  1105. }();
  1106. exports["default"] = Router;
  1107. Router.events = mitt_1["default"]();
  1108. /***/ }),
  1109. /***/ "./node_modules/next/dist/next-server/lib/router/utils/is-dynamic.js":
  1110. /*!***************************************************************************!*\
  1111. !*** ./node_modules/next/dist/next-server/lib/router/utils/is-dynamic.js ***!
  1112. \***************************************************************************/
  1113. /*! no static exports found */
  1114. /***/ (function(module, exports, __webpack_require__) {
  1115. "use strict";
  1116. Object.defineProperty(exports, "__esModule", {
  1117. value: true
  1118. }); // Identify /[param]/ in route string
  1119. var TEST_ROUTE = /\/\[[^/]+?\](?=\/|$)/;
  1120. function isDynamicRoute(route) {
  1121. return TEST_ROUTE.test(route);
  1122. }
  1123. exports.isDynamicRoute = isDynamicRoute;
  1124. /***/ }),
  1125. /***/ "./node_modules/next/dist/next-server/lib/router/utils/route-matcher.js":
  1126. /*!******************************************************************************!*\
  1127. !*** ./node_modules/next/dist/next-server/lib/router/utils/route-matcher.js ***!
  1128. \******************************************************************************/
  1129. /*! no static exports found */
  1130. /***/ (function(module, exports, __webpack_require__) {
  1131. "use strict";
  1132. Object.defineProperty(exports, "__esModule", {
  1133. value: true
  1134. });
  1135. function getRouteMatcher(routeRegex) {
  1136. var re = routeRegex.re,
  1137. groups = routeRegex.groups;
  1138. return function (pathname) {
  1139. var routeMatch = re.exec(pathname);
  1140. if (!routeMatch) {
  1141. return false;
  1142. }
  1143. var decode = function decode(param) {
  1144. try {
  1145. return decodeURIComponent(param);
  1146. } catch (_) {
  1147. var err = new Error('failed to decode param');
  1148. err.code = 'DECODE_FAILED';
  1149. throw err;
  1150. }
  1151. };
  1152. var params = {};
  1153. Object.keys(groups).forEach(function (slugName) {
  1154. var g = groups[slugName];
  1155. var m = routeMatch[g.pos];
  1156. if (m !== undefined) {
  1157. params[slugName] = ~m.indexOf('/') ? m.split('/').map(function (entry) {
  1158. return decode(entry);
  1159. }) : g.repeat ? [decode(m)] : decode(m);
  1160. }
  1161. });
  1162. return params;
  1163. };
  1164. }
  1165. exports.getRouteMatcher = getRouteMatcher;
  1166. /***/ }),
  1167. /***/ "./node_modules/next/dist/next-server/lib/router/utils/route-regex.js":
  1168. /*!****************************************************************************!*\
  1169. !*** ./node_modules/next/dist/next-server/lib/router/utils/route-regex.js ***!
  1170. \****************************************************************************/
  1171. /*! no static exports found */
  1172. /***/ (function(module, exports, __webpack_require__) {
  1173. "use strict";
  1174. Object.defineProperty(exports, "__esModule", {
  1175. value: true
  1176. }); // this isn't importing the escape-string-regex module
  1177. // to reduce bytes
  1178. function escapeRegex(str) {
  1179. return str.replace(/[|\\{}()[\]^$+*?.-]/g, '\\$&');
  1180. }
  1181. function getRouteRegex(normalizedRoute) {
  1182. // Escape all characters that could be considered RegEx
  1183. var escapedRoute = escapeRegex(normalizedRoute.replace(/\/$/, '') || '/');
  1184. var groups = {};
  1185. var groupIndex = 1;
  1186. var parameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, function (_, $1) {
  1187. var isCatchAll = /^(\\\.){3}/.test($1);
  1188. groups[$1 // Un-escape key
  1189. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '') // eslint-disable-next-line no-sequences
  1190. ] = {
  1191. pos: groupIndex++,
  1192. repeat: isCatchAll
  1193. };
  1194. return isCatchAll ? '/(.+?)' : '/([^/]+?)';
  1195. });
  1196. var namedParameterizedRoute; // dead code eliminate for browser since it's only needed
  1197. // while generating routes-manifest
  1198. if (false) {}
  1199. return Object.assign({
  1200. re: new RegExp('^' + parameterizedRoute + '(?:/)?$', 'i'),
  1201. groups: groups
  1202. }, namedParameterizedRoute ? {
  1203. namedRegex: "^".concat(namedParameterizedRoute, "(?:/)?$")
  1204. } : {});
  1205. }
  1206. exports.getRouteRegex = getRouteRegex;
  1207. /***/ }),
  1208. /***/ "./node_modules/next/dist/next-server/lib/utils.js":
  1209. /*!*********************************************************!*\
  1210. !*** ./node_modules/next/dist/next-server/lib/utils.js ***!
  1211. \*********************************************************/
  1212. /*! no static exports found */
  1213. /***/ (function(module, exports, __webpack_require__) {
  1214. "use strict";
  1215. var _regeneratorRuntime = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/next/node_modules/@babel/runtime/regenerator/index.js");
  1216. Object.defineProperty(exports, "__esModule", {
  1217. value: true
  1218. });
  1219. var url_1 = __webpack_require__(/*! url */ "./node_modules/native-url/dist/index.js");
  1220. /**
  1221. * Utils
  1222. */
  1223. function execOnce(fn) {
  1224. var used = false;
  1225. var result;
  1226. return function () {
  1227. if (!used) {
  1228. used = true;
  1229. result = fn.apply(void 0, arguments);
  1230. }
  1231. return result;
  1232. };
  1233. }
  1234. exports.execOnce = execOnce;
  1235. function getLocationOrigin() {
  1236. var _window$location = window.location,
  1237. protocol = _window$location.protocol,
  1238. hostname = _window$location.hostname,
  1239. port = _window$location.port;
  1240. return "".concat(protocol, "//").concat(hostname).concat(port ? ':' + port : '');
  1241. }
  1242. exports.getLocationOrigin = getLocationOrigin;
  1243. function getURL() {
  1244. var href = window.location.href;
  1245. var origin = getLocationOrigin();
  1246. return href.substring(origin.length);
  1247. }
  1248. exports.getURL = getURL;
  1249. function getDisplayName(Component) {
  1250. return typeof Component === 'string' ? Component : Component.displayName || Component.name || 'Unknown';
  1251. }
  1252. exports.getDisplayName = getDisplayName;
  1253. function isResSent(res) {
  1254. return res.finished || res.headersSent;
  1255. }
  1256. exports.isResSent = isResSent;
  1257. function loadGetInitialProps(App, ctx) {
  1258. var _a, message, res, props, _message;
  1259. return _regeneratorRuntime.async(function loadGetInitialProps$(_context) {
  1260. while (1) {
  1261. switch (_context.prev = _context.next) {
  1262. case 0:
  1263. if (false) {}
  1264. if (!((_a = App.prototype) === null || _a === void 0 ? void 0 : _a.getInitialProps)) {
  1265. _context.next = 4;
  1266. break;
  1267. }
  1268. message = "\"".concat(getDisplayName(App), ".getInitialProps()\" is defined as an instance method - visit https://err.sh/zeit/next.js/get-initial-props-as-an-instance-method for more information.");
  1269. throw new Error(message);
  1270. case 4:
  1271. // when called from _app `ctx` is nested in `ctx`
  1272. res = ctx.res || ctx.ctx && ctx.ctx.res;
  1273. if (App.getInitialProps) {
  1274. _context.next = 12;
  1275. break;
  1276. }
  1277. if (!(ctx.ctx && ctx.Component)) {
  1278. _context.next = 11;
  1279. break;
  1280. }
  1281. _context.next = 9;
  1282. return _regeneratorRuntime.awrap(loadGetInitialProps(ctx.Component, ctx.ctx));
  1283. case 9:
  1284. _context.t0 = _context.sent;
  1285. return _context.abrupt("return", {
  1286. pageProps: _context.t0
  1287. });
  1288. case 11:
  1289. return _context.abrupt("return", {});
  1290. case 12:
  1291. _context.next = 14;
  1292. return _regeneratorRuntime.awrap(App.getInitialProps(ctx));
  1293. case 14:
  1294. props = _context.sent;
  1295. if (!(res && isResSent(res))) {
  1296. _context.next = 17;
  1297. break;
  1298. }
  1299. return _context.abrupt("return", props);
  1300. case 17:
  1301. if (props) {
  1302. _context.next = 20;
  1303. break;
  1304. }
  1305. _message = "\"".concat(getDisplayName(App), ".getInitialProps()\" should resolve to an object. But found \"").concat(props, "\" instead.");
  1306. throw new Error(_message);
  1307. case 20:
  1308. if (true) {
  1309. if (Object.keys(props).length === 0 && !ctx.ctx) {
  1310. console.warn("".concat(getDisplayName(App), " returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://err.sh/zeit/next.js/empty-object-getInitialProps"));
  1311. }
  1312. }
  1313. return _context.abrupt("return", props);
  1314. case 22:
  1315. case "end":
  1316. return _context.stop();
  1317. }
  1318. }
  1319. }, null, null, null, Promise);
  1320. }
  1321. exports.loadGetInitialProps = loadGetInitialProps;
  1322. exports.urlObjectKeys = ['auth', 'hash', 'host', 'hostname', 'href', 'path', 'pathname', 'port', 'protocol', 'query', 'search', 'slashes'];
  1323. function formatWithValidation(url, options) {
  1324. if (true) {
  1325. if (url !== null && typeof url === 'object') {
  1326. Object.keys(url).forEach(function (key) {
  1327. if (exports.urlObjectKeys.indexOf(key) === -1) {
  1328. console.warn("Unknown key passed via urlObject into url.format: ".concat(key));
  1329. }
  1330. });
  1331. }
  1332. }
  1333. return url_1.format(url, options);
  1334. }
  1335. exports.formatWithValidation = formatWithValidation;
  1336. exports.SP = typeof performance !== 'undefined';
  1337. exports.ST = exports.SP && typeof performance.mark === 'function' && typeof performance.measure === 'function';
  1338. /***/ }),
  1339. /***/ "./node_modules/next/node_modules/@babel/runtime/helpers/arrayWithHoles.js":
  1340. /*!*********************************************************************************!*\
  1341. !*** ./node_modules/next/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  1342. \*********************************************************************************/
  1343. /*! no static exports found */
  1344. /***/ (function(module, exports) {
  1345. function _arrayWithHoles(arr) {
  1346. if (Array.isArray(arr)) return arr;
  1347. }
  1348. module.exports = _arrayWithHoles;
  1349. /***/ }),
  1350. /***/ "./node_modules/next/node_modules/@babel/runtime/helpers/classCallCheck.js":
  1351. /*!*********************************************************************************!*\
  1352. !*** ./node_modules/next/node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  1353. \*********************************************************************************/
  1354. /*! no static exports found */
  1355. /***/ (function(module, exports) {
  1356. function _classCallCheck(instance, Constructor) {
  1357. if (!(instance instanceof Constructor)) {
  1358. throw new TypeError("Cannot call a class as a function");
  1359. }
  1360. }
  1361. module.exports = _classCallCheck;
  1362. /***/ }),
  1363. /***/ "./node_modules/next/node_modules/@babel/runtime/helpers/construct.js":
  1364. /*!****************************************************************************!*\
  1365. !*** ./node_modules/next/node_modules/@babel/runtime/helpers/construct.js ***!
  1366. \****************************************************************************/
  1367. /*! no static exports found */
  1368. /***/ (function(module, exports, __webpack_require__) {
  1369. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf */ "./node_modules/next/node_modules/@babel/runtime/helpers/setPrototypeOf.js");
  1370. function isNativeReflectConstruct() {
  1371. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  1372. if (Reflect.construct.sham) return false;
  1373. if (typeof Proxy === "function") return true;
  1374. try {
  1375. Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
  1376. return true;
  1377. } catch (e) {
  1378. return false;
  1379. }
  1380. }
  1381. function _construct(Parent, args, Class) {
  1382. if (isNativeReflectConstruct()) {
  1383. module.exports = _construct = Reflect.construct;
  1384. } else {
  1385. module.exports = _construct = function _construct(Parent, args, Class) {
  1386. var a = [null];
  1387. a.push.apply(a, args);
  1388. var Constructor = Function.bind.apply(Parent, a);
  1389. var instance = new Constructor();
  1390. if (Class) setPrototypeOf(instance, Class.prototype);
  1391. return instance;
  1392. };
  1393. }
  1394. return _construct.apply(null, arguments);
  1395. }
  1396. module.exports = _construct;
  1397. /***/ }),
  1398. /***/ "./node_modules/next/node_modules/@babel/runtime/helpers/createClass.js":
  1399. /*!******************************************************************************!*\
  1400. !*** ./node_modules/next/node_modules/@babel/runtime/helpers/createClass.js ***!
  1401. \******************************************************************************/
  1402. /*! no static exports found */
  1403. /***/ (function(module, exports) {
  1404. function _defineProperties(target, props) {
  1405. for (var i = 0; i < props.length; i++) {
  1406. var descriptor = props[i];
  1407. descriptor.enumerable = descriptor.enumerable || false;
  1408. descriptor.configurable = true;
  1409. if ("value" in descriptor) descriptor.writable = true;
  1410. Object.defineProperty(target, descriptor.key, descriptor);
  1411. }
  1412. }
  1413. function _createClass(Constructor, protoProps, staticProps) {
  1414. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  1415. if (staticProps) _defineProperties(Constructor, staticProps);
  1416. return Constructor;
  1417. }
  1418. module.exports = _createClass;
  1419. /***/ }),
  1420. /***/ "./node_modules/next/node_modules/@babel/runtime/helpers/interopRequireDefault.js":
  1421. /*!****************************************************************************************!*\
  1422. !*** ./node_modules/next/node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  1423. \****************************************************************************************/
  1424. /*! no static exports found */
  1425. /***/ (function(module, exports) {
  1426. function _interopRequireDefault(obj) {
  1427. return obj && obj.__esModule ? obj : {
  1428. "default": obj
  1429. };
  1430. }
  1431. module.exports = _interopRequireDefault;
  1432. /***/ }),
  1433. /***/ "./node_modules/next/node_modules/@babel/runtime/helpers/interopRequireWildcard.js":
  1434. /*!*****************************************************************************************!*\
  1435. !*** ./node_modules/next/node_modules/@babel/runtime/helpers/interopRequireWildcard.js ***!
  1436. \*****************************************************************************************/
  1437. /*! no static exports found */
  1438. /***/ (function(module, exports, __webpack_require__) {
  1439. var _typeof = __webpack_require__(/*! ../helpers/typeof */ "./node_modules/next/node_modules/@babel/runtime/helpers/typeof.js");
  1440. function _getRequireWildcardCache() {
  1441. if (typeof WeakMap !== "function") return null;
  1442. var cache = new WeakMap();
  1443. _getRequireWildcardCache = function _getRequireWildcardCache() {
  1444. return cache;
  1445. };
  1446. return cache;
  1447. }
  1448. function _interopRequireWildcard(obj) {
  1449. if (obj && obj.__esModule) {
  1450. return obj;
  1451. }
  1452. if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
  1453. return {
  1454. "default": obj
  1455. };
  1456. }
  1457. var cache = _getRequireWildcardCache();
  1458. if (cache && cache.has(obj)) {
  1459. return cache.get(obj);
  1460. }
  1461. var newObj = {};
  1462. var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
  1463. for (var key in obj) {
  1464. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  1465. var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
  1466. if (desc && (desc.get || desc.set)) {
  1467. Object.defineProperty(newObj, key, desc);
  1468. } else {
  1469. newObj[key] = obj[key];
  1470. }
  1471. }
  1472. }
  1473. newObj["default"] = obj;
  1474. if (cache) {
  1475. cache.set(obj, newObj);
  1476. }
  1477. return newObj;
  1478. }
  1479. module.exports = _interopRequireWildcard;
  1480. /***/ }),
  1481. /***/ "./node_modules/next/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
  1482. /*!***************************************************************************************!*\
  1483. !*** ./node_modules/next/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  1484. \***************************************************************************************/
  1485. /*! no static exports found */
  1486. /***/ (function(module, exports) {
  1487. function _iterableToArrayLimit(arr, i) {
  1488. if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
  1489. return;
  1490. }
  1491. var _arr = [];
  1492. var _n = true;
  1493. var _d = false;
  1494. var _e = undefined;
  1495. try {
  1496. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  1497. _arr.push(_s.value);
  1498. if (i && _arr.length === i) break;
  1499. }
  1500. } catch (err) {
  1501. _d = true;
  1502. _e = err;
  1503. } finally {
  1504. try {
  1505. if (!_n && _i["return"] != null) _i["return"]();
  1506. } finally {
  1507. if (_d) throw _e;
  1508. }
  1509. }
  1510. return _arr;
  1511. }
  1512. module.exports = _iterableToArrayLimit;
  1513. /***/ }),
  1514. /***/ "./node_modules/next/node_modules/@babel/runtime/helpers/nonIterableRest.js":
  1515. /*!**********************************************************************************!*\
  1516. !*** ./node_modules/next/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  1517. \**********************************************************************************/
  1518. /*! no static exports found */
  1519. /***/ (function(module, exports) {
  1520. function _nonIterableRest() {
  1521. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  1522. }
  1523. module.exports = _nonIterableRest;
  1524. /***/ }),
  1525. /***/ "./node_modules/next/node_modules/@babel/runtime/helpers/setPrototypeOf.js":
  1526. /*!*********************************************************************************!*\
  1527. !*** ./node_modules/next/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  1528. \*********************************************************************************/
  1529. /*! no static exports found */
  1530. /***/ (function(module, exports) {
  1531. function _setPrototypeOf(o, p) {
  1532. module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
  1533. o.__proto__ = p;
  1534. return o;
  1535. };
  1536. return _setPrototypeOf(o, p);
  1537. }
  1538. module.exports = _setPrototypeOf;
  1539. /***/ }),
  1540. /***/ "./node_modules/next/node_modules/@babel/runtime/helpers/slicedToArray.js":
  1541. /*!********************************************************************************!*\
  1542. !*** ./node_modules/next/node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  1543. \********************************************************************************/
  1544. /*! no static exports found */
  1545. /***/ (function(module, exports, __webpack_require__) {
  1546. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles */ "./node_modules/next/node_modules/@babel/runtime/helpers/arrayWithHoles.js");
  1547. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit */ "./node_modules/next/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
  1548. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest */ "./node_modules/next/node_modules/@babel/runtime/helpers/nonIterableRest.js");
  1549. function _slicedToArray(arr, i) {
  1550. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();
  1551. }
  1552. module.exports = _slicedToArray;
  1553. /***/ }),
  1554. /***/ "./node_modules/next/node_modules/@babel/runtime/helpers/typeof.js":
  1555. /*!*************************************************************************!*\
  1556. !*** ./node_modules/next/node_modules/@babel/runtime/helpers/typeof.js ***!
  1557. \*************************************************************************/
  1558. /*! no static exports found */
  1559. /***/ (function(module, exports) {
  1560. function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
  1561. function _typeof(obj) {
  1562. if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
  1563. module.exports = _typeof = function _typeof(obj) {
  1564. return _typeof2(obj);
  1565. };
  1566. } else {
  1567. module.exports = _typeof = function _typeof(obj) {
  1568. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
  1569. };
  1570. }
  1571. return _typeof(obj);
  1572. }
  1573. module.exports = _typeof;
  1574. /***/ }),
  1575. /***/ "./node_modules/next/node_modules/@babel/runtime/regenerator/index.js":
  1576. /*!****************************************************************************!*\
  1577. !*** ./node_modules/next/node_modules/@babel/runtime/regenerator/index.js ***!
  1578. \****************************************************************************/
  1579. /*! no static exports found */
  1580. /***/ (function(module, exports, __webpack_require__) {
  1581. module.exports = __webpack_require__(/*! regenerator-runtime */ "./node_modules/regenerator-runtime/runtime.js");
  1582. /***/ }),
  1583. /***/ "./node_modules/next/node_modules/react-is/cjs/react-is.development.js":
  1584. /*!*****************************************************************************!*\
  1585. !*** ./node_modules/next/node_modules/react-is/cjs/react-is.development.js ***!
  1586. \*****************************************************************************/
  1587. /*! no static exports found */
  1588. /***/ (function(module, exports, __webpack_require__) {
  1589. "use strict";
  1590. /** @license React v16.8.6
  1591. * react-is.development.js
  1592. *
  1593. * Copyright (c) Facebook, Inc. and its affiliates.
  1594. *
  1595. * This source code is licensed under the MIT license found in the
  1596. * LICENSE file in the root directory of this source tree.
  1597. */
  1598. if (true) {
  1599. (function() {
  1600. 'use strict';
  1601. Object.defineProperty(exports, '__esModule', { value: true });
  1602. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  1603. // nor polyfill, then a plain number is used for performance.
  1604. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  1605. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  1606. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  1607. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  1608. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  1609. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  1610. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  1611. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  1612. var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
  1613. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  1614. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  1615. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  1616. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  1617. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  1618. function isValidElementType(type) {
  1619. return typeof type === 'string' || typeof type === 'function' ||
  1620. // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  1621. type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_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);
  1622. }
  1623. /**
  1624. * Forked from fbjs/warning:
  1625. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  1626. *
  1627. * Only change is we use console.warn instead of console.error,
  1628. * and do nothing when 'console' is not supported.
  1629. * This really simplifies the code.
  1630. * ---
  1631. * Similar to invariant but only logs a warning if the condition is not met.
  1632. * This can be used to log issues in development environments in critical
  1633. * paths. Removing the logging code for production environments will keep the
  1634. * same logic and follow the same code paths.
  1635. */
  1636. var lowPriorityWarning = function () {};
  1637. {
  1638. var printWarning = function (format) {
  1639. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  1640. args[_key - 1] = arguments[_key];
  1641. }
  1642. var argIndex = 0;
  1643. var message = 'Warning: ' + format.replace(/%s/g, function () {
  1644. return args[argIndex++];
  1645. });
  1646. if (typeof console !== 'undefined') {
  1647. console.warn(message);
  1648. }
  1649. try {
  1650. // --- Welcome to debugging React ---
  1651. // This error was thrown as a convenience so that you can use this stack
  1652. // to find the callsite that caused this warning to fire.
  1653. throw new Error(message);
  1654. } catch (x) {}
  1655. };
  1656. lowPriorityWarning = function (condition, format) {
  1657. if (format === undefined) {
  1658. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  1659. }
  1660. if (!condition) {
  1661. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  1662. args[_key2 - 2] = arguments[_key2];
  1663. }
  1664. printWarning.apply(undefined, [format].concat(args));
  1665. }
  1666. };
  1667. }
  1668. var lowPriorityWarning$1 = lowPriorityWarning;
  1669. function typeOf(object) {
  1670. if (typeof object === 'object' && object !== null) {
  1671. var $$typeof = object.$$typeof;
  1672. switch ($$typeof) {
  1673. case REACT_ELEMENT_TYPE:
  1674. var type = object.type;
  1675. switch (type) {
  1676. case REACT_ASYNC_MODE_TYPE:
  1677. case REACT_CONCURRENT_MODE_TYPE:
  1678. case REACT_FRAGMENT_TYPE:
  1679. case REACT_PROFILER_TYPE:
  1680. case REACT_STRICT_MODE_TYPE:
  1681. case REACT_SUSPENSE_TYPE:
  1682. return type;
  1683. default:
  1684. var $$typeofType = type && type.$$typeof;
  1685. switch ($$typeofType) {
  1686. case REACT_CONTEXT_TYPE:
  1687. case REACT_FORWARD_REF_TYPE:
  1688. case REACT_PROVIDER_TYPE:
  1689. return $$typeofType;
  1690. default:
  1691. return $$typeof;
  1692. }
  1693. }
  1694. case REACT_LAZY_TYPE:
  1695. case REACT_MEMO_TYPE:
  1696. case REACT_PORTAL_TYPE:
  1697. return $$typeof;
  1698. }
  1699. }
  1700. return undefined;
  1701. }
  1702. // AsyncMode is deprecated along with isAsyncMode
  1703. var AsyncMode = REACT_ASYNC_MODE_TYPE;
  1704. var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  1705. var ContextConsumer = REACT_CONTEXT_TYPE;
  1706. var ContextProvider = REACT_PROVIDER_TYPE;
  1707. var Element = REACT_ELEMENT_TYPE;
  1708. var ForwardRef = REACT_FORWARD_REF_TYPE;
  1709. var Fragment = REACT_FRAGMENT_TYPE;
  1710. var Lazy = REACT_LAZY_TYPE;
  1711. var Memo = REACT_MEMO_TYPE;
  1712. var Portal = REACT_PORTAL_TYPE;
  1713. var Profiler = REACT_PROFILER_TYPE;
  1714. var StrictMode = REACT_STRICT_MODE_TYPE;
  1715. var Suspense = REACT_SUSPENSE_TYPE;
  1716. var hasWarnedAboutDeprecatedIsAsyncMode = false;
  1717. // AsyncMode should be deprecated
  1718. function isAsyncMode(object) {
  1719. {
  1720. if (!hasWarnedAboutDeprecatedIsAsyncMode) {
  1721. hasWarnedAboutDeprecatedIsAsyncMode = true;
  1722. lowPriorityWarning$1(false, '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.');
  1723. }
  1724. }
  1725. return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
  1726. }
  1727. function isConcurrentMode(object) {
  1728. return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
  1729. }
  1730. function isContextConsumer(object) {
  1731. return typeOf(object) === REACT_CONTEXT_TYPE;
  1732. }
  1733. function isContextProvider(object) {
  1734. return typeOf(object) === REACT_PROVIDER_TYPE;
  1735. }
  1736. function isElement(object) {
  1737. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  1738. }
  1739. function isForwardRef(object) {
  1740. return typeOf(object) === REACT_FORWARD_REF_TYPE;
  1741. }
  1742. function isFragment(object) {
  1743. return typeOf(object) === REACT_FRAGMENT_TYPE;
  1744. }
  1745. function isLazy(object) {
  1746. return typeOf(object) === REACT_LAZY_TYPE;
  1747. }
  1748. function isMemo(object) {
  1749. return typeOf(object) === REACT_MEMO_TYPE;
  1750. }
  1751. function isPortal(object) {
  1752. return typeOf(object) === REACT_PORTAL_TYPE;
  1753. }
  1754. function isProfiler(object) {
  1755. return typeOf(object) === REACT_PROFILER_TYPE;
  1756. }
  1757. function isStrictMode(object) {
  1758. return typeOf(object) === REACT_STRICT_MODE_TYPE;
  1759. }
  1760. function isSuspense(object) {
  1761. return typeOf(object) === REACT_SUSPENSE_TYPE;
  1762. }
  1763. exports.typeOf = typeOf;
  1764. exports.AsyncMode = AsyncMode;
  1765. exports.ConcurrentMode = ConcurrentMode;
  1766. exports.ContextConsumer = ContextConsumer;
  1767. exports.ContextProvider = ContextProvider;
  1768. exports.Element = Element;
  1769. exports.ForwardRef = ForwardRef;
  1770. exports.Fragment = Fragment;
  1771. exports.Lazy = Lazy;
  1772. exports.Memo = Memo;
  1773. exports.Portal = Portal;
  1774. exports.Profiler = Profiler;
  1775. exports.StrictMode = StrictMode;
  1776. exports.Suspense = Suspense;
  1777. exports.isValidElementType = isValidElementType;
  1778. exports.isAsyncMode = isAsyncMode;
  1779. exports.isConcurrentMode = isConcurrentMode;
  1780. exports.isContextConsumer = isContextConsumer;
  1781. exports.isContextProvider = isContextProvider;
  1782. exports.isElement = isElement;
  1783. exports.isForwardRef = isForwardRef;
  1784. exports.isFragment = isFragment;
  1785. exports.isLazy = isLazy;
  1786. exports.isMemo = isMemo;
  1787. exports.isPortal = isPortal;
  1788. exports.isProfiler = isProfiler;
  1789. exports.isStrictMode = isStrictMode;
  1790. exports.isSuspense = isSuspense;
  1791. })();
  1792. }
  1793. /***/ }),
  1794. /***/ "./node_modules/next/node_modules/react-is/index.js":
  1795. /*!**********************************************************!*\
  1796. !*** ./node_modules/next/node_modules/react-is/index.js ***!
  1797. \**********************************************************/
  1798. /*! no static exports found */
  1799. /***/ (function(module, exports, __webpack_require__) {
  1800. "use strict";
  1801. if (false) {} else {
  1802. module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/next/node_modules/react-is/cjs/react-is.development.js");
  1803. }
  1804. /***/ }),
  1805. /***/ "./node_modules/querystring-es3/decode.js":
  1806. /*!************************************************!*\
  1807. !*** ./node_modules/querystring-es3/decode.js ***!
  1808. \************************************************/
  1809. /*! no static exports found */
  1810. /***/ (function(module, exports, __webpack_require__) {
  1811. "use strict";
  1812. // Copyright Joyent, Inc. and other Node contributors.
  1813. //
  1814. // Permission is hereby granted, free of charge, to any person obtaining a
  1815. // copy of this software and associated documentation files (the
  1816. // "Software"), to deal in the Software without restriction, including
  1817. // without limitation the rights to use, copy, modify, merge, publish,
  1818. // distribute, sublicense, and/or sell copies of the Software, and to permit
  1819. // persons to whom the Software is furnished to do so, subject to the
  1820. // following conditions:
  1821. //
  1822. // The above copyright notice and this permission notice shall be included
  1823. // in all copies or substantial portions of the Software.
  1824. //
  1825. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  1826. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  1827. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  1828. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  1829. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  1830. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  1831. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  1832. // If obj.hasOwnProperty has been overridden, then calling
  1833. // obj.hasOwnProperty(prop) will break.
  1834. // See: https://github.com/joyent/node/issues/1707
  1835. function hasOwnProperty(obj, prop) {
  1836. return Object.prototype.hasOwnProperty.call(obj, prop);
  1837. }
  1838. module.exports = function(qs, sep, eq, options) {
  1839. sep = sep || '&';
  1840. eq = eq || '=';
  1841. var obj = {};
  1842. if (typeof qs !== 'string' || qs.length === 0) {
  1843. return obj;
  1844. }
  1845. var regexp = /\+/g;
  1846. qs = qs.split(sep);
  1847. var maxKeys = 1000;
  1848. if (options && typeof options.maxKeys === 'number') {
  1849. maxKeys = options.maxKeys;
  1850. }
  1851. var len = qs.length;
  1852. // maxKeys <= 0 means that we should not limit keys count
  1853. if (maxKeys > 0 && len > maxKeys) {
  1854. len = maxKeys;
  1855. }
  1856. for (var i = 0; i < len; ++i) {
  1857. var x = qs[i].replace(regexp, '%20'),
  1858. idx = x.indexOf(eq),
  1859. kstr, vstr, k, v;
  1860. if (idx >= 0) {
  1861. kstr = x.substr(0, idx);
  1862. vstr = x.substr(idx + 1);
  1863. } else {
  1864. kstr = x;
  1865. vstr = '';
  1866. }
  1867. k = decodeURIComponent(kstr);
  1868. v = decodeURIComponent(vstr);
  1869. if (!hasOwnProperty(obj, k)) {
  1870. obj[k] = v;
  1871. } else if (isArray(obj[k])) {
  1872. obj[k].push(v);
  1873. } else {
  1874. obj[k] = [obj[k], v];
  1875. }
  1876. }
  1877. return obj;
  1878. };
  1879. var isArray = Array.isArray || function (xs) {
  1880. return Object.prototype.toString.call(xs) === '[object Array]';
  1881. };
  1882. /***/ }),
  1883. /***/ "./node_modules/querystring-es3/encode.js":
  1884. /*!************************************************!*\
  1885. !*** ./node_modules/querystring-es3/encode.js ***!
  1886. \************************************************/
  1887. /*! no static exports found */
  1888. /***/ (function(module, exports, __webpack_require__) {
  1889. "use strict";
  1890. // Copyright Joyent, Inc. and other Node contributors.
  1891. //
  1892. // Permission is hereby granted, free of charge, to any person obtaining a
  1893. // copy of this software and associated documentation files (the
  1894. // "Software"), to deal in the Software without restriction, including
  1895. // without limitation the rights to use, copy, modify, merge, publish,
  1896. // distribute, sublicense, and/or sell copies of the Software, and to permit
  1897. // persons to whom the Software is furnished to do so, subject to the
  1898. // following conditions:
  1899. //
  1900. // The above copyright notice and this permission notice shall be included
  1901. // in all copies or substantial portions of the Software.
  1902. //
  1903. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  1904. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  1905. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  1906. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  1907. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  1908. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  1909. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  1910. var stringifyPrimitive = function(v) {
  1911. switch (typeof v) {
  1912. case 'string':
  1913. return v;
  1914. case 'boolean':
  1915. return v ? 'true' : 'false';
  1916. case 'number':
  1917. return isFinite(v) ? v : '';
  1918. default:
  1919. return '';
  1920. }
  1921. };
  1922. module.exports = function(obj, sep, eq, name) {
  1923. sep = sep || '&';
  1924. eq = eq || '=';
  1925. if (obj === null) {
  1926. obj = undefined;
  1927. }
  1928. if (typeof obj === 'object') {
  1929. return map(objectKeys(obj), function(k) {
  1930. var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;
  1931. if (isArray(obj[k])) {
  1932. return map(obj[k], function(v) {
  1933. return ks + encodeURIComponent(stringifyPrimitive(v));
  1934. }).join(sep);
  1935. } else {
  1936. return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
  1937. }
  1938. }).join(sep);
  1939. }
  1940. if (!name) return '';
  1941. return encodeURIComponent(stringifyPrimitive(name)) + eq +
  1942. encodeURIComponent(stringifyPrimitive(obj));
  1943. };
  1944. var isArray = Array.isArray || function (xs) {
  1945. return Object.prototype.toString.call(xs) === '[object Array]';
  1946. };
  1947. function map (xs, f) {
  1948. if (xs.map) return xs.map(f);
  1949. var res = [];
  1950. for (var i = 0; i < xs.length; i++) {
  1951. res.push(f(xs[i], i));
  1952. }
  1953. return res;
  1954. }
  1955. var objectKeys = Object.keys || function (obj) {
  1956. var res = [];
  1957. for (var key in obj) {
  1958. if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);
  1959. }
  1960. return res;
  1961. };
  1962. /***/ }),
  1963. /***/ "./node_modules/querystring-es3/index.js":
  1964. /*!***********************************************!*\
  1965. !*** ./node_modules/querystring-es3/index.js ***!
  1966. \***********************************************/
  1967. /*! no static exports found */
  1968. /***/ (function(module, exports, __webpack_require__) {
  1969. "use strict";
  1970. exports.decode = exports.parse = __webpack_require__(/*! ./decode */ "./node_modules/querystring-es3/decode.js");
  1971. exports.encode = exports.stringify = __webpack_require__(/*! ./encode */ "./node_modules/querystring-es3/encode.js");
  1972. /***/ }),
  1973. /***/ "./node_modules/react/index.js":
  1974. /*!*******************************************************************************************!*\
  1975. !*** delegated ./node_modules/react/index.js from dll-reference dll_2adc2403d89adc16ead0 ***!
  1976. \*******************************************************************************************/
  1977. /*! no static exports found */
  1978. /***/ (function(module, exports, __webpack_require__) {
  1979. module.exports = (__webpack_require__(/*! dll-reference dll_2adc2403d89adc16ead0 */ "dll-reference dll_2adc2403d89adc16ead0"))("./node_modules/react/index.js");
  1980. /***/ }),
  1981. /***/ "./node_modules/regenerator-runtime/runtime.js":
  1982. /*!*****************************************************!*\
  1983. !*** ./node_modules/regenerator-runtime/runtime.js ***!
  1984. \*****************************************************/
  1985. /*! no static exports found */
  1986. /***/ (function(module, exports, __webpack_require__) {
  1987. /**
  1988. * Copyright (c) 2014-present, Facebook, Inc.
  1989. *
  1990. * This source code is licensed under the MIT license found in the
  1991. * LICENSE file in the root directory of this source tree.
  1992. */
  1993. var runtime = (function (exports) {
  1994. "use strict";
  1995. var Op = Object.prototype;
  1996. var hasOwn = Op.hasOwnProperty;
  1997. var undefined; // More compressible than void 0.
  1998. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  1999. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  2000. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  2001. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  2002. function define(obj, key, value) {
  2003. Object.defineProperty(obj, key, {
  2004. value: value,
  2005. enumerable: true,
  2006. configurable: true,
  2007. writable: true
  2008. });
  2009. return obj[key];
  2010. }
  2011. try {
  2012. // IE 8 has a broken Object.defineProperty that only works on DOM objects.
  2013. define({}, "");
  2014. } catch (err) {
  2015. define = function(obj, key, value) {
  2016. return obj[key] = value;
  2017. };
  2018. }
  2019. function wrap(innerFn, outerFn, self, tryLocsList) {
  2020. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  2021. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  2022. var generator = Object.create(protoGenerator.prototype);
  2023. var context = new Context(tryLocsList || []);
  2024. // The ._invoke method unifies the implementations of the .next,
  2025. // .throw, and .return methods.
  2026. generator._invoke = makeInvokeMethod(innerFn, self, context);
  2027. return generator;
  2028. }
  2029. exports.wrap = wrap;
  2030. // Try/catch helper to minimize deoptimizations. Returns a completion
  2031. // record like context.tryEntries[i].completion. This interface could
  2032. // have been (and was previously) designed to take a closure to be
  2033. // invoked without arguments, but in all the cases we care about we
  2034. // already have an existing method we want to call, so there's no need
  2035. // to create a new function object. We can even get away with assuming
  2036. // the method takes exactly one argument, since that happens to be true
  2037. // in every case, so we don't have to touch the arguments object. The
  2038. // only additional allocation required is the completion record, which
  2039. // has a stable shape and so hopefully should be cheap to allocate.
  2040. function tryCatch(fn, obj, arg) {
  2041. try {
  2042. return { type: "normal", arg: fn.call(obj, arg) };
  2043. } catch (err) {
  2044. return { type: "throw", arg: err };
  2045. }
  2046. }
  2047. var GenStateSuspendedStart = "suspendedStart";
  2048. var GenStateSuspendedYield = "suspendedYield";
  2049. var GenStateExecuting = "executing";
  2050. var GenStateCompleted = "completed";
  2051. // Returning this object from the innerFn has the same effect as
  2052. // breaking out of the dispatch switch statement.
  2053. var ContinueSentinel = {};
  2054. // Dummy constructor functions that we use as the .constructor and
  2055. // .constructor.prototype properties for functions that return Generator
  2056. // objects. For full spec compliance, you may wish to configure your
  2057. // minifier not to mangle the names of these two functions.
  2058. function Generator() {}
  2059. function GeneratorFunction() {}
  2060. function GeneratorFunctionPrototype() {}
  2061. // This is a polyfill for %IteratorPrototype% for environments that
  2062. // don't natively support it.
  2063. var IteratorPrototype = {};
  2064. IteratorPrototype[iteratorSymbol] = function () {
  2065. return this;
  2066. };
  2067. var getProto = Object.getPrototypeOf;
  2068. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  2069. if (NativeIteratorPrototype &&
  2070. NativeIteratorPrototype !== Op &&
  2071. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  2072. // This environment has a native %IteratorPrototype%; use it instead
  2073. // of the polyfill.
  2074. IteratorPrototype = NativeIteratorPrototype;
  2075. }
  2076. var Gp = GeneratorFunctionPrototype.prototype =
  2077. Generator.prototype = Object.create(IteratorPrototype);
  2078. GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  2079. GeneratorFunctionPrototype.constructor = GeneratorFunction;
  2080. GeneratorFunction.displayName = define(
  2081. GeneratorFunctionPrototype,
  2082. toStringTagSymbol,
  2083. "GeneratorFunction"
  2084. );
  2085. // Helper for defining the .next, .throw, and .return methods of the
  2086. // Iterator interface in terms of a single ._invoke method.
  2087. function defineIteratorMethods(prototype) {
  2088. ["next", "throw", "return"].forEach(function(method) {
  2089. define(prototype, method, function(arg) {
  2090. return this._invoke(method, arg);
  2091. });
  2092. });
  2093. }
  2094. exports.isGeneratorFunction = function(genFun) {
  2095. var ctor = typeof genFun === "function" && genFun.constructor;
  2096. return ctor
  2097. ? ctor === GeneratorFunction ||
  2098. // For the native GeneratorFunction constructor, the best we can
  2099. // do is to check its .name property.
  2100. (ctor.displayName || ctor.name) === "GeneratorFunction"
  2101. : false;
  2102. };
  2103. exports.mark = function(genFun) {
  2104. if (Object.setPrototypeOf) {
  2105. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  2106. } else {
  2107. genFun.__proto__ = GeneratorFunctionPrototype;
  2108. define(genFun, toStringTagSymbol, "GeneratorFunction");
  2109. }
  2110. genFun.prototype = Object.create(Gp);
  2111. return genFun;
  2112. };
  2113. // Within the body of any async function, `await x` is transformed to
  2114. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  2115. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  2116. // meant to be awaited.
  2117. exports.awrap = function(arg) {
  2118. return { __await: arg };
  2119. };
  2120. function AsyncIterator(generator, PromiseImpl) {
  2121. function invoke(method, arg, resolve, reject) {
  2122. var record = tryCatch(generator[method], generator, arg);
  2123. if (record.type === "throw") {
  2124. reject(record.arg);
  2125. } else {
  2126. var result = record.arg;
  2127. var value = result.value;
  2128. if (value &&
  2129. typeof value === "object" &&
  2130. hasOwn.call(value, "__await")) {
  2131. return PromiseImpl.resolve(value.__await).then(function(value) {
  2132. invoke("next", value, resolve, reject);
  2133. }, function(err) {
  2134. invoke("throw", err, resolve, reject);
  2135. });
  2136. }
  2137. return PromiseImpl.resolve(value).then(function(unwrapped) {
  2138. // When a yielded Promise is resolved, its final value becomes
  2139. // the .value of the Promise<{value,done}> result for the
  2140. // current iteration.
  2141. result.value = unwrapped;
  2142. resolve(result);
  2143. }, function(error) {
  2144. // If a rejected Promise was yielded, throw the rejection back
  2145. // into the async generator function so it can be handled there.
  2146. return invoke("throw", error, resolve, reject);
  2147. });
  2148. }
  2149. }
  2150. var previousPromise;
  2151. function enqueue(method, arg) {
  2152. function callInvokeWithMethodAndArg() {
  2153. return new PromiseImpl(function(resolve, reject) {
  2154. invoke(method, arg, resolve, reject);
  2155. });
  2156. }
  2157. return previousPromise =
  2158. // If enqueue has been called before, then we want to wait until
  2159. // all previous Promises have been resolved before calling invoke,
  2160. // so that results are always delivered in the correct order. If
  2161. // enqueue has not been called before, then it is important to
  2162. // call invoke immediately, without waiting on a callback to fire,
  2163. // so that the async generator function has the opportunity to do
  2164. // any necessary setup in a predictable way. This predictability
  2165. // is why the Promise constructor synchronously invokes its
  2166. // executor callback, and why async functions synchronously
  2167. // execute code before the first await. Since we implement simple
  2168. // async functions in terms of async generators, it is especially
  2169. // important to get this right, even though it requires care.
  2170. previousPromise ? previousPromise.then(
  2171. callInvokeWithMethodAndArg,
  2172. // Avoid propagating failures to Promises returned by later
  2173. // invocations of the iterator.
  2174. callInvokeWithMethodAndArg
  2175. ) : callInvokeWithMethodAndArg();
  2176. }
  2177. // Define the unified helper method that is used to implement .next,
  2178. // .throw, and .return (see defineIteratorMethods).
  2179. this._invoke = enqueue;
  2180. }
  2181. defineIteratorMethods(AsyncIterator.prototype);
  2182. AsyncIterator.prototype[asyncIteratorSymbol] = function () {
  2183. return this;
  2184. };
  2185. exports.AsyncIterator = AsyncIterator;
  2186. // Note that simple async functions are implemented on top of
  2187. // AsyncIterator objects; they just return a Promise for the value of
  2188. // the final result produced by the iterator.
  2189. exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  2190. if (PromiseImpl === void 0) PromiseImpl = Promise;
  2191. var iter = new AsyncIterator(
  2192. wrap(innerFn, outerFn, self, tryLocsList),
  2193. PromiseImpl
  2194. );
  2195. return exports.isGeneratorFunction(outerFn)
  2196. ? iter // If outerFn is a generator, return the full iterator.
  2197. : iter.next().then(function(result) {
  2198. return result.done ? result.value : iter.next();
  2199. });
  2200. };
  2201. function makeInvokeMethod(innerFn, self, context) {
  2202. var state = GenStateSuspendedStart;
  2203. return function invoke(method, arg) {
  2204. if (state === GenStateExecuting) {
  2205. throw new Error("Generator is already running");
  2206. }
  2207. if (state === GenStateCompleted) {
  2208. if (method === "throw") {
  2209. throw arg;
  2210. }
  2211. // Be forgiving, per 25.3.3.3.3 of the spec:
  2212. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  2213. return doneResult();
  2214. }
  2215. context.method = method;
  2216. context.arg = arg;
  2217. while (true) {
  2218. var delegate = context.delegate;
  2219. if (delegate) {
  2220. var delegateResult = maybeInvokeDelegate(delegate, context);
  2221. if (delegateResult) {
  2222. if (delegateResult === ContinueSentinel) continue;
  2223. return delegateResult;
  2224. }
  2225. }
  2226. if (context.method === "next") {
  2227. // Setting context._sent for legacy support of Babel's
  2228. // function.sent implementation.
  2229. context.sent = context._sent = context.arg;
  2230. } else if (context.method === "throw") {
  2231. if (state === GenStateSuspendedStart) {
  2232. state = GenStateCompleted;
  2233. throw context.arg;
  2234. }
  2235. context.dispatchException(context.arg);
  2236. } else if (context.method === "return") {
  2237. context.abrupt("return", context.arg);
  2238. }
  2239. state = GenStateExecuting;
  2240. var record = tryCatch(innerFn, self, context);
  2241. if (record.type === "normal") {
  2242. // If an exception is thrown from innerFn, we leave state ===
  2243. // GenStateExecuting and loop back for another invocation.
  2244. state = context.done
  2245. ? GenStateCompleted
  2246. : GenStateSuspendedYield;
  2247. if (record.arg === ContinueSentinel) {
  2248. continue;
  2249. }
  2250. return {
  2251. value: record.arg,
  2252. done: context.done
  2253. };
  2254. } else if (record.type === "throw") {
  2255. state = GenStateCompleted;
  2256. // Dispatch the exception by looping back around to the
  2257. // context.dispatchException(context.arg) call above.
  2258. context.method = "throw";
  2259. context.arg = record.arg;
  2260. }
  2261. }
  2262. };
  2263. }
  2264. // Call delegate.iterator[context.method](context.arg) and handle the
  2265. // result, either by returning a { value, done } result from the
  2266. // delegate iterator, or by modifying context.method and context.arg,
  2267. // setting context.delegate to null, and returning the ContinueSentinel.
  2268. function maybeInvokeDelegate(delegate, context) {
  2269. var method = delegate.iterator[context.method];
  2270. if (method === undefined) {
  2271. // A .throw or .return when the delegate iterator has no .throw
  2272. // method always terminates the yield* loop.
  2273. context.delegate = null;
  2274. if (context.method === "throw") {
  2275. // Note: ["return"] must be used for ES3 parsing compatibility.
  2276. if (delegate.iterator["return"]) {
  2277. // If the delegate iterator has a return method, give it a
  2278. // chance to clean up.
  2279. context.method = "return";
  2280. context.arg = undefined;
  2281. maybeInvokeDelegate(delegate, context);
  2282. if (context.method === "throw") {
  2283. // If maybeInvokeDelegate(context) changed context.method from
  2284. // "return" to "throw", let that override the TypeError below.
  2285. return ContinueSentinel;
  2286. }
  2287. }
  2288. context.method = "throw";
  2289. context.arg = new TypeError(
  2290. "The iterator does not provide a 'throw' method");
  2291. }
  2292. return ContinueSentinel;
  2293. }
  2294. var record = tryCatch(method, delegate.iterator, context.arg);
  2295. if (record.type === "throw") {
  2296. context.method = "throw";
  2297. context.arg = record.arg;
  2298. context.delegate = null;
  2299. return ContinueSentinel;
  2300. }
  2301. var info = record.arg;
  2302. if (! info) {
  2303. context.method = "throw";
  2304. context.arg = new TypeError("iterator result is not an object");
  2305. context.delegate = null;
  2306. return ContinueSentinel;
  2307. }
  2308. if (info.done) {
  2309. // Assign the result of the finished delegate to the temporary
  2310. // variable specified by delegate.resultName (see delegateYield).
  2311. context[delegate.resultName] = info.value;
  2312. // Resume execution at the desired location (see delegateYield).
  2313. context.next = delegate.nextLoc;
  2314. // If context.method was "throw" but the delegate handled the
  2315. // exception, let the outer generator proceed normally. If
  2316. // context.method was "next", forget context.arg since it has been
  2317. // "consumed" by the delegate iterator. If context.method was
  2318. // "return", allow the original .return call to continue in the
  2319. // outer generator.
  2320. if (context.method !== "return") {
  2321. context.method = "next";
  2322. context.arg = undefined;
  2323. }
  2324. } else {
  2325. // Re-yield the result returned by the delegate method.
  2326. return info;
  2327. }
  2328. // The delegate iterator is finished, so forget it and continue with
  2329. // the outer generator.
  2330. context.delegate = null;
  2331. return ContinueSentinel;
  2332. }
  2333. // Define Generator.prototype.{next,throw,return} in terms of the
  2334. // unified ._invoke helper method.
  2335. defineIteratorMethods(Gp);
  2336. define(Gp, toStringTagSymbol, "Generator");
  2337. // A Generator should always return itself as the iterator object when the
  2338. // @@iterator function is called on it. Some browsers' implementations of the
  2339. // iterator prototype chain incorrectly implement this, causing the Generator
  2340. // object to not be returned from this call. This ensures that doesn't happen.
  2341. // See https://github.com/facebook/regenerator/issues/274 for more details.
  2342. Gp[iteratorSymbol] = function() {
  2343. return this;
  2344. };
  2345. Gp.toString = function() {
  2346. return "[object Generator]";
  2347. };
  2348. function pushTryEntry(locs) {
  2349. var entry = { tryLoc: locs[0] };
  2350. if (1 in locs) {
  2351. entry.catchLoc = locs[1];
  2352. }
  2353. if (2 in locs) {
  2354. entry.finallyLoc = locs[2];
  2355. entry.afterLoc = locs[3];
  2356. }
  2357. this.tryEntries.push(entry);
  2358. }
  2359. function resetTryEntry(entry) {
  2360. var record = entry.completion || {};
  2361. record.type = "normal";
  2362. delete record.arg;
  2363. entry.completion = record;
  2364. }
  2365. function Context(tryLocsList) {
  2366. // The root entry object (effectively a try statement without a catch
  2367. // or a finally block) gives us a place to store values thrown from
  2368. // locations where there is no enclosing try statement.
  2369. this.tryEntries = [{ tryLoc: "root" }];
  2370. tryLocsList.forEach(pushTryEntry, this);
  2371. this.reset(true);
  2372. }
  2373. exports.keys = function(object) {
  2374. var keys = [];
  2375. for (var key in object) {
  2376. keys.push(key);
  2377. }
  2378. keys.reverse();
  2379. // Rather than returning an object with a next method, we keep
  2380. // things simple and return the next function itself.
  2381. return function next() {
  2382. while (keys.length) {
  2383. var key = keys.pop();
  2384. if (key in object) {
  2385. next.value = key;
  2386. next.done = false;
  2387. return next;
  2388. }
  2389. }
  2390. // To avoid creating an additional object, we just hang the .value
  2391. // and .done properties off the next function object itself. This
  2392. // also ensures that the minifier will not anonymize the function.
  2393. next.done = true;
  2394. return next;
  2395. };
  2396. };
  2397. function values(iterable) {
  2398. if (iterable) {
  2399. var iteratorMethod = iterable[iteratorSymbol];
  2400. if (iteratorMethod) {
  2401. return iteratorMethod.call(iterable);
  2402. }
  2403. if (typeof iterable.next === "function") {
  2404. return iterable;
  2405. }
  2406. if (!isNaN(iterable.length)) {
  2407. var i = -1, next = function next() {
  2408. while (++i < iterable.length) {
  2409. if (hasOwn.call(iterable, i)) {
  2410. next.value = iterable[i];
  2411. next.done = false;
  2412. return next;
  2413. }
  2414. }
  2415. next.value = undefined;
  2416. next.done = true;
  2417. return next;
  2418. };
  2419. return next.next = next;
  2420. }
  2421. }
  2422. // Return an iterator with no values.
  2423. return { next: doneResult };
  2424. }
  2425. exports.values = values;
  2426. function doneResult() {
  2427. return { value: undefined, done: true };
  2428. }
  2429. Context.prototype = {
  2430. constructor: Context,
  2431. reset: function(skipTempReset) {
  2432. this.prev = 0;
  2433. this.next = 0;
  2434. // Resetting context._sent for legacy support of Babel's
  2435. // function.sent implementation.
  2436. this.sent = this._sent = undefined;
  2437. this.done = false;
  2438. this.delegate = null;
  2439. this.method = "next";
  2440. this.arg = undefined;
  2441. this.tryEntries.forEach(resetTryEntry);
  2442. if (!skipTempReset) {
  2443. for (var name in this) {
  2444. // Not sure about the optimal order of these conditions:
  2445. if (name.charAt(0) === "t" &&
  2446. hasOwn.call(this, name) &&
  2447. !isNaN(+name.slice(1))) {
  2448. this[name] = undefined;
  2449. }
  2450. }
  2451. }
  2452. },
  2453. stop: function() {
  2454. this.done = true;
  2455. var rootEntry = this.tryEntries[0];
  2456. var rootRecord = rootEntry.completion;
  2457. if (rootRecord.type === "throw") {
  2458. throw rootRecord.arg;
  2459. }
  2460. return this.rval;
  2461. },
  2462. dispatchException: function(exception) {
  2463. if (this.done) {
  2464. throw exception;
  2465. }
  2466. var context = this;
  2467. function handle(loc, caught) {
  2468. record.type = "throw";
  2469. record.arg = exception;
  2470. context.next = loc;
  2471. if (caught) {
  2472. // If the dispatched exception was caught by a catch block,
  2473. // then let that catch block handle the exception normally.
  2474. context.method = "next";
  2475. context.arg = undefined;
  2476. }
  2477. return !! caught;
  2478. }
  2479. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  2480. var entry = this.tryEntries[i];
  2481. var record = entry.completion;
  2482. if (entry.tryLoc === "root") {
  2483. // Exception thrown outside of any try block that could handle
  2484. // it, so set the completion value of the entire function to
  2485. // throw the exception.
  2486. return handle("end");
  2487. }
  2488. if (entry.tryLoc <= this.prev) {
  2489. var hasCatch = hasOwn.call(entry, "catchLoc");
  2490. var hasFinally = hasOwn.call(entry, "finallyLoc");
  2491. if (hasCatch && hasFinally) {
  2492. if (this.prev < entry.catchLoc) {
  2493. return handle(entry.catchLoc, true);
  2494. } else if (this.prev < entry.finallyLoc) {
  2495. return handle(entry.finallyLoc);
  2496. }
  2497. } else if (hasCatch) {
  2498. if (this.prev < entry.catchLoc) {
  2499. return handle(entry.catchLoc, true);
  2500. }
  2501. } else if (hasFinally) {
  2502. if (this.prev < entry.finallyLoc) {
  2503. return handle(entry.finallyLoc);
  2504. }
  2505. } else {
  2506. throw new Error("try statement without catch or finally");
  2507. }
  2508. }
  2509. }
  2510. },
  2511. abrupt: function(type, arg) {
  2512. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  2513. var entry = this.tryEntries[i];
  2514. if (entry.tryLoc <= this.prev &&
  2515. hasOwn.call(entry, "finallyLoc") &&
  2516. this.prev < entry.finallyLoc) {
  2517. var finallyEntry = entry;
  2518. break;
  2519. }
  2520. }
  2521. if (finallyEntry &&
  2522. (type === "break" ||
  2523. type === "continue") &&
  2524. finallyEntry.tryLoc <= arg &&
  2525. arg <= finallyEntry.finallyLoc) {
  2526. // Ignore the finally entry if control is not jumping to a
  2527. // location outside the try/catch block.
  2528. finallyEntry = null;
  2529. }
  2530. var record = finallyEntry ? finallyEntry.completion : {};
  2531. record.type = type;
  2532. record.arg = arg;
  2533. if (finallyEntry) {
  2534. this.method = "next";
  2535. this.next = finallyEntry.finallyLoc;
  2536. return ContinueSentinel;
  2537. }
  2538. return this.complete(record);
  2539. },
  2540. complete: function(record, afterLoc) {
  2541. if (record.type === "throw") {
  2542. throw record.arg;
  2543. }
  2544. if (record.type === "break" ||
  2545. record.type === "continue") {
  2546. this.next = record.arg;
  2547. } else if (record.type === "return") {
  2548. this.rval = this.arg = record.arg;
  2549. this.method = "return";
  2550. this.next = "end";
  2551. } else if (record.type === "normal" && afterLoc) {
  2552. this.next = afterLoc;
  2553. }
  2554. return ContinueSentinel;
  2555. },
  2556. finish: function(finallyLoc) {
  2557. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  2558. var entry = this.tryEntries[i];
  2559. if (entry.finallyLoc === finallyLoc) {
  2560. this.complete(entry.completion, entry.afterLoc);
  2561. resetTryEntry(entry);
  2562. return ContinueSentinel;
  2563. }
  2564. }
  2565. },
  2566. "catch": function(tryLoc) {
  2567. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  2568. var entry = this.tryEntries[i];
  2569. if (entry.tryLoc === tryLoc) {
  2570. var record = entry.completion;
  2571. if (record.type === "throw") {
  2572. var thrown = record.arg;
  2573. resetTryEntry(entry);
  2574. }
  2575. return thrown;
  2576. }
  2577. }
  2578. // The context.catch method must only be called with a location
  2579. // argument that corresponds to a known catch block.
  2580. throw new Error("illegal catch attempt");
  2581. },
  2582. delegateYield: function(iterable, resultName, nextLoc) {
  2583. this.delegate = {
  2584. iterator: values(iterable),
  2585. resultName: resultName,
  2586. nextLoc: nextLoc
  2587. };
  2588. if (this.method === "next") {
  2589. // Deliberately forget the last sent value so that we don't
  2590. // accidentally pass it on to the delegate.
  2591. this.arg = undefined;
  2592. }
  2593. return ContinueSentinel;
  2594. }
  2595. };
  2596. // Regardless of whether this script is executing as a CommonJS module
  2597. // or not, return the runtime object so that we can declare the variable
  2598. // regeneratorRuntime in the outer scope, which allows this module to be
  2599. // injected easily by `bin/regenerator --include-runtime script.js`.
  2600. return exports;
  2601. }(
  2602. // If this script is executing as a CommonJS module, use module.exports
  2603. // as the regeneratorRuntime namespace. Otherwise create a new empty
  2604. // object. Either way, the resulting object will be used to initialize
  2605. // the regeneratorRuntime variable at the top of this file.
  2606. true ? module.exports : undefined
  2607. ));
  2608. try {
  2609. regeneratorRuntime = runtime;
  2610. } catch (accidentalStrictMode) {
  2611. // This module should not be running in strict mode, so the above
  2612. // assignment should always work unless something is misconfigured. Just
  2613. // in case runtime.js accidentally runs in strict mode, we can escape
  2614. // strict mode using a global Function call. This could conceivably fail
  2615. // if a Content Security Policy forbids using Function, but in that case
  2616. // the proper solution is to fix the accidental strict mode problem. If
  2617. // you've misconfigured your bundler to force strict mode and applied a
  2618. // CSP to forbid Function, and you're not willing to fix either of those
  2619. // problems, please detail your unique predicament in a GitHub issue.
  2620. Function("r", "regeneratorRuntime = r")(runtime);
  2621. }
  2622. /***/ }),
  2623. /***/ "./pages/index.js":
  2624. /*!************************!*\
  2625. !*** ./pages/index.js ***!
  2626. \************************/
  2627. /*! exports provided: default */
  2628. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2629. "use strict";
  2630. __webpack_require__.r(__webpack_exports__);
  2631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Index; });
  2632. /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
  2633. /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
  2634. /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
  2635. /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
  2636. /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
  2637. /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
  2638. /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
  2639. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
  2640. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
  2641. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! next/router */ "./node_modules/next/dist/client/router.js");
  2642. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_8__);
  2643. var _jsxFileName = "C:\\Thamrin Brothers\\tbg-ecomm-nextjs\\pages\\index.js";
  2644. var __jsx = react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement;
  2645. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__["default"])(this, result); }; }
  2646. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  2647. var Index = /*#__PURE__*/function (_Component) {
  2648. Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__["default"])(Index, _Component);
  2649. var _super = _createSuper(Index);
  2650. function Index() {
  2651. var _this;
  2652. Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, Index);
  2653. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  2654. args[_key] = arguments[_key];
  2655. }
  2656. _this = _super.call.apply(_super, [this].concat(args));
  2657. Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this), "componentDidMount", function () {
  2658. next_router__WEBPACK_IMPORTED_MODULE_8___default.a.push("/home");
  2659. });
  2660. return _this;
  2661. }
  2662. Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(Index, [{
  2663. key: "render",
  2664. value: function render() {
  2665. return __jsx("div", {
  2666. __self: this,
  2667. __source: {
  2668. fileName: _jsxFileName,
  2669. lineNumber: 10,
  2670. columnNumber: 12
  2671. }
  2672. });
  2673. }
  2674. }]);
  2675. return Index;
  2676. }(react__WEBPACK_IMPORTED_MODULE_7__["Component"]);
  2677. /***/ }),
  2678. /***/ 2:
  2679. /*!******************************************************************************************************************************************************!*\
  2680. !*** multi next-client-pages-loader?page=%2F&absolutePagePath=C%3A%5CThamrin%20Brothers%5Ctbg-ecomm-nextjs%5Cpages%5Cindex.js&hotRouterUpdates=true ***!
  2681. \******************************************************************************************************************************************************/
  2682. /*! no static exports found */
  2683. /***/ (function(module, exports, __webpack_require__) {
  2684. module.exports = __webpack_require__(/*! next-client-pages-loader?page=%2F&absolutePagePath=C%3A%5CThamrin%20Brothers%5Ctbg-ecomm-nextjs%5Cpages%5Cindex.js&hotRouterUpdates=true! */"./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?page=%2F&absolutePagePath=C%3A%5CThamrin%20Brothers%5Ctbg-ecomm-nextjs%5Cpages%5Cindex.js&hotRouterUpdates=true!./");
  2685. /***/ }),
  2686. /***/ "dll-reference dll_2adc2403d89adc16ead0":
  2687. /*!*******************************************!*\
  2688. !*** external "dll_2adc2403d89adc16ead0" ***!
  2689. \*******************************************/
  2690. /*! no static exports found */
  2691. /***/ (function(module, exports) {
  2692. module.exports = dll_2adc2403d89adc16ead0;
  2693. /***/ })
  2694. },[[2,"static/runtime/webpack.js"]]]);
  2695. //# sourceMappingURL=index.js.map