├── out
├── .nojekyll
├── _next
│ └── static
│ │ ├── 3BYvFjBDnxjgCpDtkq_jQ
│ │ └── pages
│ │ │ ├── index.js
│ │ │ ├── about.js
│ │ │ ├── _app.js
│ │ │ └── _error.js
│ │ ├── bqq8JZKWQgPcMP4QWkUVt
│ │ └── pages
│ │ │ ├── index.js
│ │ │ ├── about.js
│ │ │ ├── _app.js
│ │ │ └── _error.js
│ │ └── runtime
│ │ ├── webpack-08f7b238829422e3b9b2.js
│ │ ├── polyfills-9c535165bd1cf7fca8c5.js
│ │ └── main-8bedfe204fbe9606c247.js
├── index.html
├── about.html
└── 404.html
├── .gitignore
├── env-config.js
├── pages
├── index.js
└── about.js
├── .babelrc.js
├── package.json
├── next.config.js
├── README-next.js.md
└── README.md
/out/.nojekyll:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .next
3 |
--------------------------------------------------------------------------------
/env-config.js:
--------------------------------------------------------------------------------
1 | const prod = process.env.NODE_ENV === 'production'
2 |
3 | module.exports = {
4 | 'process.env.BACKEND_URL': prod ? '/Next-gh-page-example' : ''
5 | }
6 |
--------------------------------------------------------------------------------
/pages/index.js:
--------------------------------------------------------------------------------
1 | import Link from 'next/link'
2 | export default () => (
3 |
4 | )
5 |
--------------------------------------------------------------------------------
/.babelrc.js:
--------------------------------------------------------------------------------
1 | const env = require('./env-config')
2 |
3 | module.exports = {
4 | 'presets': [
5 | 'next/babel'
6 | ],
7 | 'plugins': [
8 | ['transform-define', env]
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pages/about.js:
--------------------------------------------------------------------------------
1 | import Link from 'next/link'
2 | export default () => (
3 |
7 | )
8 |
--------------------------------------------------------------------------------
/out/_next/static/3BYvFjBDnxjgCpDtkq_jQ/pages/index.js:
--------------------------------------------------------------------------------
1 | (window.webpackJsonp=window.webpackJsonp||[]).push([[5],{RNiq:function(n,e,t){"use strict";t.r(e);var o=t("q1tI"),u=t.n(o),a=t("YFqc"),i=t.n(a),l=u.a.createElement;e.default=function(){return l("div",null,"Hello World. ",l(i.a,{href:"/about",as:"/Next-gh-page-example/about"},l("a",null,"About")))}},vlRD:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t("RNiq")}])}},[["vlRD",0,1]]]);
--------------------------------------------------------------------------------
/out/_next/static/bqq8JZKWQgPcMP4QWkUVt/pages/index.js:
--------------------------------------------------------------------------------
1 | (window.webpackJsonp=window.webpackJsonp||[]).push([[11],{RNiq:function(n,e,t){"use strict";t.r(e);var o=t("q1tI"),u=t.n(o),a=t("YFqc"),i=t.n(a),l=u.a.createElement;e.default=function(){return l("div",null,"Hello World. ",l(i.a,{href:"/about",as:"/Next-gh-page-example/about"},l("a",null,"About")))}},vlRD:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t("RNiq")}])}},[["vlRD",0,1]]]);
--------------------------------------------------------------------------------
/out/_next/static/3BYvFjBDnxjgCpDtkq_jQ/pages/about.js:
--------------------------------------------------------------------------------
1 | (window.webpackJsonp=window.webpackJsonp||[]).push([[4],{Juyh:function(n,u,e){"use strict";e.r(u);var t=e("q1tI"),o=e.n(t),a=e("YFqc"),i=e.n(a),l=o.a.createElement;u.default=function(){return l("div",null,l("div",null,"About us"),l("div",null,"Back to ",l(i.a,{href:"/",as:"/Next-gh-page-example/"},l("a",null,"Home"))))}},rB5V:function(n,u,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/about",function(){return e("Juyh")}])}},[["rB5V",0,1]]]);
--------------------------------------------------------------------------------
/out/_next/static/bqq8JZKWQgPcMP4QWkUVt/pages/about.js:
--------------------------------------------------------------------------------
1 | (window.webpackJsonp=window.webpackJsonp||[]).push([[10],{Juyh:function(n,u,e){"use strict";e.r(u);var t=e("q1tI"),o=e.n(t),a=e("YFqc"),i=e.n(a),l=o.a.createElement;u.default=function(){return l("div",null,l("div",null,"About us"),l("div",null,"Back to ",l(i.a,{href:"/",as:"/Next-gh-page-example/"},l("a",null,"Home"))))}},rB5V:function(n,u,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/about",function(){return e("Juyh")}])}},[["rB5V",0,1]]]);
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "gh-pages",
3 | "author": "thierryc",
4 | "version": "1.0.2",
5 | "scripts": {
6 | "dev": "next",
7 | "build": "next build",
8 | "start": "next start",
9 | "export": "next export",
10 | "deploy": "rm -rf node_modules/.cache && rimraf out && next build && next export && touch out/.nojekyll && gh-pages -d out -t true"
11 | },
12 | "dependencies": {
13 | "next": "latest",
14 | "react": "^16.12.0",
15 | "react-dom": "^16.12.0"
16 | },
17 | "license": "ISC",
18 | "devDependencies": {
19 | "rimraf": "^3.0.0",
20 | "gh-pages": "^2.1.1",
21 | "babel-plugin-transform-define": "^1.3.2"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/next.config.js:
--------------------------------------------------------------------------------
1 | // This file is not going through babel transformation.
2 | // So, we write it in vanilla JS
3 | // (But you could use ES2015 features supported by your Node.js version)
4 |
5 | const debug = process.env.NODE_ENV !== "production";
6 |
7 | module.exports = {
8 | exportPathMap: function () {
9 | return {
10 | "/": { page: "/" },
11 | "/about": { page: "/about" },
12 | }
13 | },
14 | //assetPrefix: '',
15 | assetPrefix: !debug ? '/Next-gh-page-example/' : '',
16 | webpack: (config, { dev }) => {
17 | // Perform customizations to webpack config
18 | // console.log('webpack');
19 | // console.log(config.module.rules, dev);
20 | config.module.rules = config.module.rules.map(rule => {
21 | if(rule.loader === 'babel-loader') {
22 | rule.options.cacheDirectory = false
23 | }
24 | return rule
25 | })
26 | // Important: return the modified config
27 | return config
28 | }/*,
29 | webpackDevMiddleware: (config) => {
30 | // Perform customizations to webpack dev middleware config
31 | // console.log('webpackDevMiddleware');
32 | // console.log(config);
33 | // Important: return the modified config
34 | return config
35 | }, */
36 | }
37 |
--------------------------------------------------------------------------------
/README-next.js.md:
--------------------------------------------------------------------------------
1 | # gh-pages Hello World example
2 |
3 | ## How to use
4 |
5 | ### Download manually
6 |
7 | Download the example [or clone the repo](https://github.com/zeit/next.js):
8 |
9 | ```bash
10 | curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/gh-pages
11 | cd gh-pages
12 | ```
13 |
14 | Install it and run:
15 |
16 | ```bash
17 | npm install
18 | npm run dev
19 | ```
20 |
21 | Deploy it to github
22 |
23 | Edit ```env-config.js``` and replace ```'Next-gh-page-example'``` by your project name.
24 |
25 | Edit ```next.config.js``` and replace ```'Next-gh-page-example'``` by your project name.
26 |
27 | 1. Create repository.
28 | 2. Link it to your github account.
29 | 3. Publish your master branch.
30 |
31 | ```bash
32 | npm run deploy
33 | ```
34 |
35 | Test it:
36 |
37 | Reaplce 'github-user-name' and 'github-projet-name'
38 |
39 | ```bash
40 |
41 | https://github-user-name.github.io/github-projet-name/
42 |
43 | ```
44 |
45 | Example:
46 |
47 | ```bash
48 |
49 | https://github.com/thierryc/Next-gh-page-example/
50 |
51 | https://thierryc.github.io/Next-gh-page-example/
52 |
53 | ```
54 |
55 | ## The idea behind the example
56 |
57 | This example shows the most basic idea behind Next. We have 2 pages: `pages/index.js` and `pages/about.js`. The former responds to `/` requests and the latter to `/about`. Using `next/link` you can add hyperlinks between them with universal routing capabilities.
58 |
--------------------------------------------------------------------------------
/out/_next/static/runtime/webpack-08f7b238829422e3b9b2.js:
--------------------------------------------------------------------------------
1 | !function(e){function r(r){for(var n,l,f=r[0],i=r[1],a=r[2],c=0,s=[];c
--------------------------------------------------------------------------------
/out/about.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Next.js gh-pages Hello World example
2 |
3 | This repository is a gh-pages example built with Next.js
4 |
5 | https://thierryc.github.io/Next-gh-page-example/
6 |
7 | Install it and run:
8 |
9 | ```bash
10 | npm install
11 | npm run dev
12 | ```
13 |
14 | Deploy it to github
15 |
16 | Edit ```env-config.js``` and replace ```'Next-gh-page-example'``` by your project name.
17 |
18 | Edit ```next.config.js``` and replace ```'Next-gh-page-example'``` by your project name.
19 |
20 | 1. Create repository.
21 | 2. Link it to your github account.
22 | 3. Publish your master branch.
23 |
24 | ```bash
25 | npm run deploy
26 | ```
27 |
28 | Test it:
29 |
30 | Replace 'github-user-name' and 'github-project-name'
31 |
32 | ```bash
33 |
34 | https://github-user-name.github.io/github-project-name/
35 |
36 | ```
37 |
38 | ## Custom domain setting
39 |
40 | You can add on to the deploy command to create the CNAME file for you. GitHub detects this file and automatically updates the custom domain setting. Edit the package.json deploy script and replace example.com with your custom domain. (Thank you to @jabacchetta)
41 |
42 | ```bash
43 |
44 | rm -rf node_modules/.cache
45 | && rimraf out
46 | && next build
47 | && next export
48 | && touch out/.nojekyll
49 | && touch out/CNAME
50 | && echo \"example.com\" >> out/CNAME
51 | && gh-pages -d out
52 |
53 | ```
54 |
55 | Example:
56 |
57 | ```bash
58 |
59 | https://github.com/thierryc/Next-gh-page-example/
60 |
61 | https://thierryc.github.io/Next-gh-page-example/
62 |
63 | ```
64 |
65 |
66 | ## The idea behind the example
67 |
68 | This example shows the most basic idea behind Next. We have 2 pages: `pages/index.js` and `pages/about.js`. The former responds to `/` requests and the latter to `/about`. Using `next/link` you can add hyperlinks between them with universal routing capabilities.
69 |
--------------------------------------------------------------------------------
/out/404.html:
--------------------------------------------------------------------------------
1 | 404
This page could not be found.
--------------------------------------------------------------------------------
/out/_next/static/3BYvFjBDnxjgCpDtkq_jQ/pages/_error.js:
--------------------------------------------------------------------------------
1 | (window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+iuc":function(e,t,n){n("wgeU"),n("FlQf"),n("bBy9"),n("B9jh"),n("dL40"),n("xvv9"),n("V+O7"),e.exports=n("WEpk").Set},"/0+H":function(e,t,n){"use strict";var r=n("hfKm"),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};r(t,"__esModule",{value:!0});var i=a(n("q1tI")),o=n("lwAK");function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,a=void 0!==r&&r,i=e.hasQuery;return n||a&&(void 0!==i&&i)}t.isInAmpMode=u,t.useAmp=function(){return u(i.default.useContext(o.AmpStateContext))}},"/a9y":function(e,t,n){"use strict";var r=n("/HRN"),a=n("WaGi"),i=n("ZDA2"),o=n("/+P4"),u=n("N9n2"),l=n("KI45");t.__esModule=!0,t.default=void 0;var c=l(n("q1tI")),f=l(n("8Kt/")),s={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"},d=function(e){function t(){return r(this,t),i(this,o(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){var e=this.props.statusCode,t=this.props.title||s[e]||"An unexpected error has occurred";return c.default.createElement("div",{style:p.error},c.default.createElement(f.default,null,c.default.createElement("title",null,e,": ",t)),c.default.createElement("div",null,c.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body { margin: 0 }"}}),e?c.default.createElement("h1",{style:p.h1},e):null,c.default.createElement("div",{style:p.desc},c.default.createElement("h2",{style:p.h2},t,"."))))}}],[{key:"getInitialProps",value:function(e){var t=e.res,n=e.err;return{statusCode:t&&t.statusCode?t.statusCode:n?n.statusCode:404}}}]),t}(c.default.Component);t.default=d,d.displayName="ErrorPage";var p={error:{color:"#000",background:"#fff",fontFamily:'-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block",textAlign:"left",lineHeight:"49px",height:"49px",verticalAlign:"middle"},h1:{display:"inline-block",borderRight:"1px solid rgba(0, 0, 0,.3)",margin:0,marginRight:"20px",padding:"10px 23px 10px 0",fontSize:"24px",fontWeight:500,verticalAlign:"top"},h2:{fontSize:"14px",fontWeight:"normal",lineHeight:"inherit",margin:0,padding:0}}},"04ac":function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return n("/a9y")}])},"0tVQ":function(e,t,n){n("FlQf"),n("VJsP"),e.exports=n("WEpk").Array.from},"2PDY":function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},"8Kt/":function(e,t,n){"use strict";var r=n("ttDY"),a=n("hfKm"),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};a(t,"__esModule",{value:!0});var o=i(n("q1tI")),u=i(n("Xuae")),l=n("lwAK"),c=n("FYa8"),f=n("/0+H");function s(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[o.default.createElement("meta",{key:"charSet",charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{key:"viewport",name:"viewport",content:"width=device-width,minimum-scale=1,initial-scale=1"})),t}function d(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce(function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)},[])):e.concat(t)}t.defaultHead=s;var p=["name","httpEquiv","charSet","itemProp"];function h(e,t){return e.reduce(function(e,t){var n=o.default.Children.toArray(t.props.children);return e.concat(n)},[]).reduce(d,[]).reverse().concat(s(t.inAmpMode)).filter(function(){var e=new r,t=new r,n=new r,a={};return function(i){if(i.key&&"number"!==typeof i.key&&0===i.key.indexOf(".$"))return!e.has(i.key)&&(e.add(i.key),!0);if(e.has(".$".concat(i.key)))return!1;switch(i.type){case"title":case"base":if(t.has(i.type))return!1;t.add(i.type);break;case"meta":for(var o=0,u=p.length;o0?arguments[0]:void 0)}},{add:function(e){return r.def(a(this,"Set"),e=0===e?0:e,e)}},r)},IP1Z:function(e,t,n){"use strict";var r=n("2faE"),a=n("rr1i");e.exports=function(e,t,n){t in e?r.f(e,t,a(0,n)):e[t]=n}},PQJW:function(e,t,n){var r=n("d04V"),a=n("yLu3");e.exports=function(e){if(a(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return r(e)}},TbGu:function(e,t,n){var r=n("fGSI"),a=n("PQJW"),i=n("2PDY");e.exports=function(e){return r(e)||a(e)||i()}},"V+O7":function(e,t,n){n("aPfg")("Set")},VJsP:function(e,t,n){"use strict";var r=n("2GTP"),a=n("Y7ZC"),i=n("JB68"),o=n("sNwI"),u=n("NwJ3"),l=n("tEej"),c=n("IP1Z"),f=n("fNZA");a(a.S+a.F*!n("TuGD")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,a,s,d=i(e),p="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,y=0,g=f(d);if(m&&(v=r(v,h>2?arguments[2]:void 0,2)),void 0==g||p==Array&&u(g))for(n=new p(t=l(d.length));t>y;y++)c(n,y,m?v(d[y],y):d[y]);else for(s=g.call(d),n=new p;!(a=s.next()).done;y++)c(n,y,m?o(s,v,[a.value,y],!0):a.value);return n.length=y,n}})},Xuae:function(e,t,n){"use strict";var r=n("/HRN"),a=n("ZDA2"),i=n("/+P4"),o=n("K47E"),u=n("WaGi"),l=n("N9n2"),c=n("TbGu"),f=n("ttDY");n("hfKm")(t,"__esModule",{value:!0});var s=n("q1tI"),d=!1;t.default=function(){var e,t=new f;function n(n){e=n.props.reduceComponentsToState(c(t),n.props),n.props.handleStateChange&&n.props.handleStateChange(e)}return function(c){function f(e){var u;return r(this,f),u=a(this,i(f).call(this,e)),d&&(t.add(o(u)),n(o(u))),u}return l(f,c),u(f,null,[{key:"rewind",value:function(){var n=e;return e=void 0,t.clear(),n}}]),u(f,[{key:"componentDidMount",value:function(){t.add(this),n(this)}},{key:"componentDidUpdate",value:function(){n(this)}},{key:"componentWillUnmount",value:function(){t.delete(this),n(this)}},{key:"render",value:function(){return null}}]),f}(s.Component)}},d04V:function(e,t,n){e.exports=n("0tVQ")},dL40:function(e,t,n){var r=n("Y7ZC");r(r.P+r.R,"Set",{toJSON:n("8iia")("Set")})},fGSI:function(e,t,n){var r=n("p0XB");e.exports=function(e){if(r(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,a=void 0!==r&&r,i=e.hasQuery;return n||a&&(void 0!==i&&i)}t.isInAmpMode=u,t.useAmp=function(){return u(i.default.useContext(o.AmpStateContext))}},"/a9y":function(e,t,n){"use strict";var r=n("/HRN"),a=n("WaGi"),i=n("ZDA2"),o=n("/+P4"),u=n("N9n2"),l=n("KI45");t.__esModule=!0,t.default=void 0;var c=l(n("q1tI")),f=l(n("8Kt/")),s={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"},d=function(e){function t(){return r(this,t),i(this,o(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){var e=this.props.statusCode,t=this.props.title||s[e]||"An unexpected error has occurred";return c.default.createElement("div",{style:p.error},c.default.createElement(f.default,null,c.default.createElement("title",null,e,": ",t)),c.default.createElement("div",null,c.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body { margin: 0 }"}}),e?c.default.createElement("h1",{style:p.h1},e):null,c.default.createElement("div",{style:p.desc},c.default.createElement("h2",{style:p.h2},t,"."))))}}],[{key:"getInitialProps",value:function(e){var t=e.res,n=e.err;return{statusCode:t&&t.statusCode?t.statusCode:n?n.statusCode:404}}}]),t}(c.default.Component);t.default=d,d.displayName="ErrorPage";var p={error:{color:"#000",background:"#fff",fontFamily:'-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block",textAlign:"left",lineHeight:"49px",height:"49px",verticalAlign:"middle"},h1:{display:"inline-block",borderRight:"1px solid rgba(0, 0, 0,.3)",margin:0,marginRight:"20px",padding:"10px 23px 10px 0",fontSize:"24px",fontWeight:500,verticalAlign:"top"},h2:{fontSize:"14px",fontWeight:"normal",lineHeight:"inherit",margin:0,padding:0}}},"04ac":function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return n("/a9y")}])},"0tVQ":function(e,t,n){n("FlQf"),n("VJsP"),e.exports=n("WEpk").Array.from},"2PDY":function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},"8Kt/":function(e,t,n){"use strict";var r=n("ttDY"),a=n("hfKm"),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};a(t,"__esModule",{value:!0});var o=i(n("q1tI")),u=i(n("Xuae")),l=n("lwAK"),c=n("FYa8"),f=n("/0+H");function s(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[o.default.createElement("meta",{key:"charSet",charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{key:"viewport",name:"viewport",content:"width=device-width,minimum-scale=1,initial-scale=1"})),t}function d(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce(function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)},[])):e.concat(t)}t.defaultHead=s;var p=["name","httpEquiv","charSet","itemProp"];function h(e,t){return e.reduce(function(e,t){var n=o.default.Children.toArray(t.props.children);return e.concat(n)},[]).reduce(d,[]).reverse().concat(s(t.inAmpMode)).filter(function(){var e=new r,t=new r,n=new r,a={};return function(i){if(i.key&&"number"!==typeof i.key&&0===i.key.indexOf(".$"))return!e.has(i.key)&&(e.add(i.key),!0);if(e.has(".$".concat(i.key)))return!1;switch(i.type){case"title":case"base":if(t.has(i.type))return!1;t.add(i.type);break;case"meta":for(var o=0,u=p.length;o0?arguments[0]:void 0)}},{add:function(e){return r.def(a(this,"Set"),e=0===e?0:e,e)}},r)},IP1Z:function(e,t,n){"use strict";var r=n("2faE"),a=n("rr1i");e.exports=function(e,t,n){t in e?r.f(e,t,a(0,n)):e[t]=n}},PQJW:function(e,t,n){var r=n("d04V"),a=n("yLu3");e.exports=function(e){if(a(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return r(e)}},TbGu:function(e,t,n){var r=n("fGSI"),a=n("PQJW"),i=n("2PDY");e.exports=function(e){return r(e)||a(e)||i()}},"V+O7":function(e,t,n){n("aPfg")("Set")},VJsP:function(e,t,n){"use strict";var r=n("2GTP"),a=n("Y7ZC"),i=n("JB68"),o=n("sNwI"),u=n("NwJ3"),l=n("tEej"),c=n("IP1Z"),f=n("fNZA");a(a.S+a.F*!n("TuGD")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,a,s,d=i(e),p="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,y=0,g=f(d);if(m&&(v=r(v,h>2?arguments[2]:void 0,2)),void 0==g||p==Array&&u(g))for(n=new p(t=l(d.length));t>y;y++)c(n,y,m?v(d[y],y):d[y]);else for(s=g.call(d),n=new p;!(a=s.next()).done;y++)c(n,y,m?o(s,v,[a.value,y],!0):a.value);return n.length=y,n}})},Xuae:function(e,t,n){"use strict";var r=n("/HRN"),a=n("ZDA2"),i=n("/+P4"),o=n("K47E"),u=n("WaGi"),l=n("N9n2"),c=n("TbGu"),f=n("ttDY");n("hfKm")(t,"__esModule",{value:!0});var s=n("q1tI"),d=!1;t.default=function(){var e,t=new f;function n(n){e=n.props.reduceComponentsToState(c(t),n.props),n.props.handleStateChange&&n.props.handleStateChange(e)}return function(c){function f(e){var u;return r(this,f),u=a(this,i(f).call(this,e)),d&&(t.add(o(u)),n(o(u))),u}return l(f,c),u(f,null,[{key:"rewind",value:function(){var n=e;return e=void 0,t.clear(),n}}]),u(f,[{key:"componentDidMount",value:function(){t.add(this),n(this)}},{key:"componentDidUpdate",value:function(){n(this)}},{key:"componentWillUnmount",value:function(){t.delete(this),n(this)}},{key:"render",value:function(){return null}}]),f}(s.Component)}},d04V:function(e,t,n){e.exports=n("0tVQ")},dL40:function(e,t,n){var r=n("Y7ZC");r(r.P+r.R,"Set",{toJSON:n("8iia")("Set")})},fGSI:function(e,t,n){var r=n("p0XB");e.exports=function(e){if(r(e)){for(var t=0,n=new Array(e.length);t-1};function n(t){if("string"!==typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function i(t){return"string"!==typeof t&&(t=String(t)),t}function s(t){var r={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e.iterable&&(r[Symbol.iterator]=function(){return r}),r}function a(t){this.map={},t instanceof a?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function u(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function h(t){var e=new FileReader,r=f(e);return e.readAsArrayBuffer(t),r}function c(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function l(){return this.bodyUsed=!1,this._initBody=function(t){var r;this._bodyInit=t,t?"string"===typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&(r=t)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=c(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||o(t))?this._bodyArrayBuffer=c(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"===typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=u(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=u(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=f(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function y(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(n))}}),e}function b(t){var e=new a,r=t.replace(/\r?\n[\t ]+/g," ");return r.split(/\r?\n/).forEach(function(t){var r=t.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();e.append(o,n)}}),e}function m(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new a(e.headers),this.url=e.url||"",this._initBody(t)}p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},l.call(p.prototype),l.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},m.error=function(){var t=new m(null,{status:0,statusText:""});return t.type="error",t};var w=[301,302,303,307,308];m.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new m(null,{status:e,headers:{location:t}})},t.DOMException=self.DOMException;try{new t.DOMException}catch(g){t.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function v(r,o){return new Promise(function(n,i){var s=new p(r,o);if(s.signal&&s.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t={status:a.status,statusText:a.statusText,headers:b(a.getAllResponseHeaders()||"")};t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL");var e="response"in a?a.response:a.responseText;n(new m(e,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&e.blob&&(a.responseType="blob"),s.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send("undefined"===typeof s._bodyInit?null:s._bodyInit)})}v.polyfill=!0,self.fetch||(self.fetch=v,self.Headers=a,self.Request=p,self.Response=m),t.Headers=a,t.Request=p,t.Response=m,t.fetch=v,Object.defineProperty(t,"__esModule",{value:!0})}(e)},XLER:function(t,e,r){"use strict";r("Wg5T"),Object.assign=r("MgzW")}},[["XLER",0]]]);
--------------------------------------------------------------------------------
/out/_next/static/runtime/main-8bedfe204fbe9606c247.js:
--------------------------------------------------------------------------------
1 | (window.webpackJsonp=window.webpackJsonp||[]).push([[6],{"0IRE":function(e,t,r){"use strict";var n=r("LX0d"),a=r("/HRN"),o=r("WaGi");r("hfKm")(t,"__esModule",{value:!0});var u=function(){function e(t){a(this,e),this.data=new n(t)}return o(e,[{key:"getData",value:function(){return this.data}},{key:"get",value:function(e){return this.data.get(e)}},{key:"set",value:function(e,t){this.data.set(e,t)}},{key:"overwrite",value:function(e){this.data=new n(e)}}]),e}();t.DataManager=u},BMP1:function(e,t,r){"use strict";var n=r("5Uuq")(r("IKlv"));window.next=n,(0,n.default)().catch(function(e){console.error(e.message+"\n"+e.stack)})},DqTX:function(e,t,r){"use strict";var n=r("/HRN"),a=r("WaGi"),o=r("KI45");t.__esModule=!0,t.default=void 0;var u=o(r("eVuF")),i={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},c=function(){function e(){var t=this;n(this,e),this.updateHead=function(e){var r=t.updatePromise=u.default.resolve().then(function(){r===t.updatePromise&&(t.updatePromise=null,t.doUpdateHead(e))})},this.updatePromise=null}return a(e,[{key:"doUpdateHead",value:function(e){var t=this,r={};e.forEach(function(e){var t=r[e.type]||[];t.push(e),r[e.type]=t}),this.updateTitle(r.title?r.title[0]:null);["meta","base","link","style","script"].forEach(function(e){t.updateElements(e,r[e]||[])})}},{key:"updateTitle",value:function(e){var t="";if(e){var r=e.props.children;t="string"===typeof r?r:r.join("")}t!==document.title&&(document.title=t)}},{key:"updateElements",value:function(e,t){var r=document.getElementsByTagName("head")[0],n=r.querySelector("meta[name=next-head-count]");for(var a=Number(n.content),o=[],u=0,i=n.previousElementSibling;u