{"ast":null,"code":"import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nvar __jsx = React.createElement;\n\nfunction _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nimport { Router, appWithTranslation } from '~/utils/i18n';\nimport App from 'next/app';\nimport { GlobalStyle } from '~/utils/style';\nimport Head from 'next/head';\nimport Layout from '~/components/Layout';\nimport NProgress from 'nprogress';\nimport React from 'react';\nimport { SWRConfig } from 'swr';\nimport { fetcher } from '~/utils/fetch';\nRouter.events.on('routeChangeStart', function () {\n  return NProgress.start();\n});\nRouter.events.on('routeChangeComplete', function () {\n  return NProgress.done();\n});\nRouter.events.on('routeChangeError', function () {\n  return NProgress.done();\n});\n\nvar VDLApp = /*#__PURE__*/function (_App) {\n  _inherits(VDLApp, _App);\n\n  var _super = _createSuper(VDLApp);\n\n  function VDLApp() {\n    _classCallCheck(this, VDLApp);\n\n    return _super.apply(this, arguments);\n  }\n\n  _createClass(VDLApp, [{\n    key: \"render\",\n    value: function render() {\n      var _this$props = this.props,\n          Component = _this$props.Component,\n          pageProps = _this$props.pageProps;\n      return __jsx(React.Fragment, null, __jsx(Head, null, __jsx(\"title\", null, process.env.title), __jsx(\"link\", {\n        rel: \"shortcut icon\",\n        href: \"\".concat(process.env.PUBLIC_PATH, \"/favicon.ico\")\n      }), __jsx(\"meta\", {\n        name: \"viewport\",\n        content: \"width=device-width,minimum-scale=1,maximum-scale=1,initial-scale=1,user-scalable=no,shrink-to-fit=no\"\n      }), __jsx(\"meta\", {\n        name: \"description\",\n        content: process.env.description\n      }), __jsx(\"meta\", {\n        name: \"keywords\",\n        content: process.env.keywords\n      }), __jsx(\"meta\", {\n        name: \"author\",\n        content: process.env.author\n      })), __jsx(GlobalStyle, null), __jsx(SWRConfig, {\n        value: {\n          fetcher: fetcher,\n          revalidateOnFocus: false,\n          revalidateOnReconnect: false\n        }\n      }, __jsx(Layout, null, __jsx(Component, pageProps))));\n    }\n  }]);\n\n  return VDLApp;\n}(App);\n\nexport default appWithTranslation(VDLApp);","map":null,"metadata":{},"sourceType":"module"}